From 3e532796fd13f650e37c9fd764d0dfeecc57d6f4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:45:52 +0200 Subject: [PATCH 01/28] Fix (de-)serialization of `Fields` in custom converters (#8360) (#8364) Co-authored-by: Florian Bernd --- .../Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs | 2 +- .../_Generated/Api/SearchRequest.g.cs | 2 +- .../_Generated/Types/Core/MSearch/MultisearchBody.g.cs | 5 +++-- .../_Generated/Types/Core/Search/SourceFilter.g.cs | 10 ++++++---- .../Core/Infer/Field/Field.cs | 2 +- .../Core/Infer/Fields/Fields.cs | 2 +- .../Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs | 2 +- .../_Generated/Api/SearchRequest.g.cs | 2 +- .../_Generated/Types/Core/MSearch/MultisearchBody.g.cs | 5 +++-- .../_Generated/Types/Core/Search/SourceFilter.g.cs | 10 ++++++---- 10 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index eaa612fb23a..3619775104c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -606,7 +606,7 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value if (value.StoredFields is not null) { writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, value.StoredFields, options); + new FieldsConverter().Write(writer, value.StoredFields, options); } if (value.Suggest is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs index a117fb67133..43b83d2d913 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs @@ -660,7 +660,7 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria if (value.StoredFields is not null) { writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, value.StoredFields, options); + new FieldsConverter().Write(writer, value.StoredFields, options); } if (value.Suggest is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs index 7d80571faa9..e3593c503c5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs @@ -185,7 +185,8 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "stored_fields") { - variant.StoredFields = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + variant.StoredFields = new FieldsConverter().Read(ref reader, typeToConvert, options); continue; } @@ -380,7 +381,7 @@ public override void Write(Utf8JsonWriter writer, MultisearchBody value, JsonSer if (value.StoredFields is not null) { writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, value.StoredFields, options); + new FieldsConverter().Write(writer, value.StoredFields, options); } if (value.Suggest is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs index 6a454e55072..476fc65d917 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs @@ -41,13 +41,15 @@ public override SourceFilter Read(ref Utf8JsonReader reader, Type typeToConvert, var property = reader.GetString(); if (property == "excludes" || property == "exclude") { - variant.Excludes = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + variant.Excludes = new FieldsConverter().Read(ref reader, typeToConvert, options); continue; } if (property == "includes" || property == "include") { - variant.Includes = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + variant.Includes = new FieldsConverter().Read(ref reader, typeToConvert, options); continue; } } @@ -62,13 +64,13 @@ public override void Write(Utf8JsonWriter writer, SourceFilter value, JsonSerial if (value.Excludes is not null) { writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, value.Excludes, options); + new FieldsConverter().Write(writer, value.Excludes, options); } if (value.Includes is not null) { writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, value.Includes, options); + new FieldsConverter().Write(writer, value.Includes, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/Field.cs b/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/Field.cs index 6ecff34ef00..2b0aef9bd91 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/Field.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/Field.cs @@ -20,7 +20,7 @@ namespace Elastic.Clients.Elasticsearch; #endif [JsonConverter(typeof(FieldConverter))] -[DebuggerDisplay($"{nameof(DebuggerDisplay)},nq")] +[DebuggerDisplay($"{{{nameof(DebuggerDisplay)},nq}}")] public sealed class Field : IEquatable, IUrlParameter diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/Fields.cs b/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/Fields.cs index 0112a9e2f2b..cf610735c72 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/Fields.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/Fields.cs @@ -18,7 +18,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless; namespace Elastic.Clients.Elasticsearch; #endif -[DebuggerDisplay($"{nameof(DebuggerDisplay)},nq")] +[DebuggerDisplay($"{{{nameof(DebuggerDisplay)},nq}}")] public sealed class Fields : IEquatable, IEnumerable, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index 9b8f681bf1b..aa79a1aaf15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -606,7 +606,7 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value if (value.StoredFields is not null) { writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, value.StoredFields, options); + new FieldsConverter().Write(writer, value.StoredFields, options); } if (value.Suggest is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index c0126e9aec1..2f7583f26a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -669,7 +669,7 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria if (value.StoredFields is not null) { writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, value.StoredFields, options); + new FieldsConverter().Write(writer, value.StoredFields, options); } if (value.Suggest is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs index eba508a1054..1cac0049899 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs @@ -185,7 +185,8 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "stored_fields") { - variant.StoredFields = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + variant.StoredFields = new FieldsConverter().Read(ref reader, typeToConvert, options); continue; } @@ -380,7 +381,7 @@ public override void Write(Utf8JsonWriter writer, MultisearchBody value, JsonSer if (value.StoredFields is not null) { writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, value.StoredFields, options); + new FieldsConverter().Write(writer, value.StoredFields, options); } if (value.Suggest is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs index 64dbc8a8257..ecf27ebf675 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SourceFilter.g.cs @@ -41,13 +41,15 @@ public override SourceFilter Read(ref Utf8JsonReader reader, Type typeToConvert, var property = reader.GetString(); if (property == "excludes" || property == "exclude") { - variant.Excludes = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + variant.Excludes = new FieldsConverter().Read(ref reader, typeToConvert, options); continue; } if (property == "includes" || property == "include") { - variant.Includes = JsonSerializer.Deserialize(ref reader, options); + reader.Read(); + variant.Includes = new FieldsConverter().Read(ref reader, typeToConvert, options); continue; } } @@ -62,13 +64,13 @@ public override void Write(Utf8JsonWriter writer, SourceFilter value, JsonSerial if (value.Excludes is not null) { writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, value.Excludes, options); + new FieldsConverter().Write(writer, value.Excludes, options); } if (value.Includes is not null) { writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, value.Includes, options); + new FieldsConverter().Write(writer, value.Includes, options); } writer.WriteEndObject(); From 6bb513bab3e827feb0a002a972da76a0eb4a324a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:46:06 +0200 Subject: [PATCH 02/28] Introduce `DictionaryResponse.Values` (#8361) (#8366) Co-authored-by: Florian Bernd --- .../Core/Response/DictionaryResponse.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs b/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs index 1ad8146c5c6..63e3e4630db 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; + using Elastic.Transport.Products.Elasticsearch; #if ELASTICSEARCH_SERVERLESS @@ -25,4 +26,8 @@ internal DictionaryResponse(IReadOnlyDictionary dictionary) internal DictionaryResponse() => BackingDictionary = EmptyReadOnly.Dictionary; protected IReadOnlyDictionary BackingDictionary { get; } + + // TODO: Remove after exposing the values in the derived responses + [Obsolete("Temporary workaround. This field will be removed in the future and replaced by custom accessors in the derived classes.")] + public IReadOnlyDictionary Values => BackingDictionary; } From f9d28ca17881570e362ab251c49fbad0b913e946 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:48:37 +0200 Subject: [PATCH 03/28] Synchronize `DefaultFieldNameInferrer` and `PropertyNamingPolicy` (#8362) (#8368) Co-authored-by: Florian Bernd --- .../Core/Configuration/ElasticsearchClientSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ElasticsearchClientSettings.cs index 9be4f8fb4c2..cce890562f2 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ElasticsearchClientSettings.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ElasticsearchClientSettings.cs @@ -133,7 +133,7 @@ protected ElasticsearchClientSettingsBase( _sourceSerializer = sourceSerializerFactory?.Invoke(sourceSerializer, this) ?? sourceSerializer; _propertyMappingProvider = propertyMappingProvider ?? sourceSerializer as IPropertyMappingProvider ?? new DefaultPropertyMappingProvider(); - _defaultFieldNameInferrer = p => p.ToCamelCase(); + _defaultFieldNameInferrer = (_sourceSerializer is DefaultSourceSerializer dfs) ? p => dfs.Options?.PropertyNamingPolicy?.ConvertName(p) ?? p : p => p.ToCamelCase(); _defaultIndices = new FluentDictionary(); _defaultRelationNames = new FluentDictionary(); _inferrer = new Inferrer(this); From 209187c4a99a0bdc72e9474a8c9931e5d1cd7899 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:44:01 +0200 Subject: [PATCH 04/28] Regenerate client using the latest specification (#8369) (#8371) Co-authored-by: Florian Bernd --- .../Api/Cluster/HealthResponse.g.cs | 8 + .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 8 +- .../IndexManagement/GetDataStreamRequest.g.cs | 16 + .../IndexManagement/ResolveIndexRequest.g.cs | 36 + .../Api/Ingest/PutPipelineRequest.g.cs | 47 + .../Api/OpenPointInTimeRequest.g.cs | 116 +- .../Api/OpenPointInTimeResponse.g.cs | 8 + .../_Generated/Api/SearchRequest.g.cs | 116 -- .../_Generated/Api/Sql/QueryRequest.g.cs | 8 +- .../Api/Xpack/XpackInfoRequest.g.cs | 6 +- .../Client/ElasticsearchClient.Ingest.g.cs | 50 +- .../Aggregations/AggregateDictionary.g.cs | 8 + .../Aggregations/TimeSeriesAggregate.g.cs | 36 + .../Types/Aggregations/TimeSeriesBucket.g.cs | 87 ++ .../Types/Analysis/ClassicTokenizer.g.cs | 90 ++ .../Types/Analysis/EdgeNGramTokenizer.g.cs | 14 +- .../Analysis/KeywordMarkerTokenFilter.g.cs | 3 +- .../Types/Analysis/KeywordTokenizer.g.cs | 14 +- .../Types/Analysis/NGramTokenizer.g.cs | 14 +- .../Analysis/SimplePatternSplitTokenizer.g.cs | 90 ++ .../Analysis/SimplePatternTokenizer.g.cs | 90 ++ .../Types/Analysis/ThaiTokenizer.g.cs | 73 ++ .../_Generated/Types/Analysis/Tokenizers.g.cs | 32 + .../_Generated/Types/Cluster/CurrentNode.g.cs | 2 + .../Types/Cluster/IndexHealthStats.g.cs | 2 + .../Cluster/NodeAllocationExplanation.g.cs | 2 + .../Types/Cluster/ShardHealthStats.g.cs | 2 + .../Core/Search/AggregationProfileDebug.g.cs | 8 + .../Types/Core/Search/DfsKnnProfile.g.cs | 40 + .../Types/Core/Search/DfsProfile.g.cs | 36 + .../Core/Search/DfsStatisticsBreakdown.g.cs | 48 + .../Core/Search/DfsStatisticsProfile.g.cs | 46 + .../_Generated/Types/Core/Search/Hit.g.cs | 2 +- .../Types/Core/Search/KnnCollectorResult.g.cs | 42 + .../Core/Search/KnnQueryProfileBreakdown.g.cs | 72 ++ .../Core/Search/KnnQueryProfileResult.g.cs | 46 + .../Types/Core/Search/QueryBreakdown.g.cs | 4 + .../Types/Core/Search/ShardProfile.g.cs | 10 + .../_Generated/Types/Enrich/CacheStats.g.cs | 6 + .../_Generated/Types/Enums/Enums.Esql.g.cs | 113 ++ .../_Generated/Types/Enums/Enums.Ingest.g.cs | 172 ++- .../Types/Enums/Enums.MachineLearning.g.cs | 84 +- .../_Generated/Types/Enums/Enums.Sql.g.cs | 106 ++ .../_Generated/Types/Enums/Enums.Xpack.g.cs | 78 ++ .../Types/Ingest/AppendProcessor.g.cs | 5 +- .../Types/Ingest/DotExpanderProcessor.g.cs | 50 + .../Types/Ingest/GeoGridProcessor.g.cs | 1010 +++++++++++++++++ .../Types/Ingest/GeoIpProcessor.g.cs | 47 + .../_Generated/Types/Ingest/Pipeline.g.cs | 47 + .../_Generated/Types/Ingest/Processor.g.cs | 30 + .../Types/Ingest/RedactProcessor.g.cs | 727 ++++++++++++ .../Types/Ingest/UserAgentProcessor.g.cs | 88 +- .../Types/MachineLearning/CalendarEvent.g.cs | 78 ++ .../TrainedModelDeploymentStats.g.cs | 2 +- .../Types/Mapping/BinaryProperty.g.cs | 30 - .../Types/Mapping/BooleanProperty.g.cs | 30 - .../Types/Mapping/ByteNumberProperty.g.cs | 30 - .../Types/Mapping/CompletionProperty.g.cs | 30 - .../Types/Mapping/CompositeSubField.g.cs | 59 + .../Types/Mapping/DateNanosProperty.g.cs | 30 - .../Types/Mapping/DateProperty.g.cs | 30 - .../Types/Mapping/DateRangeProperty.g.cs | 30 - .../Types/Mapping/DoubleNumberProperty.g.cs | 30 - .../Types/Mapping/DoubleRangeProperty.g.cs | 30 - .../Types/Mapping/DynamicProperty.g.cs | 30 - .../Types/Mapping/FloatNumberProperty.g.cs | 30 - .../Types/Mapping/FloatRangeProperty.g.cs | 30 - .../Types/Mapping/GeoPointProperty.g.cs | 30 - .../Types/Mapping/GeoShapeProperty.g.cs | 30 - .../Mapping/HalfFloatNumberProperty.g.cs | 30 - .../Types/Mapping/IcuCollationProperty.g.cs | 30 - .../Types/Mapping/IntegerNumberProperty.g.cs | 30 - .../Types/Mapping/IntegerRangeProperty.g.cs | 30 - .../_Generated/Types/Mapping/IpProperty.g.cs | 30 - .../Types/Mapping/IpRangeProperty.g.cs | 30 - .../Types/Mapping/LongNumberProperty.g.cs | 30 - .../Types/Mapping/LongRangeProperty.g.cs | 30 - .../Types/Mapping/Murmur3HashProperty.g.cs | 30 - .../Types/Mapping/NestedProperty.g.cs | 30 - .../Types/Mapping/ObjectProperty.g.cs | 30 - .../Types/Mapping/PointProperty.g.cs | 30 - .../Types/Mapping/RuntimeField.g.cs | 44 + .../Mapping/ScaledFloatNumberProperty.g.cs | 30 - .../Types/Mapping/ShapeProperty.g.cs | 30 - .../Types/Mapping/ShortNumberProperty.g.cs | 30 - .../Types/Mapping/TokenCountProperty.g.cs | 30 - .../Mapping/UnsignedLongNumberProperty.g.cs | 30 - .../Types/Mapping/VersionProperty.g.cs | 30 - .../Types/Mapping/WildcardProperty.g.cs | 30 - .../_Generated/Types/Nodes/Ingest.g.cs | 2 +- .../_Generated/Types/Nodes/IngestStats.g.cs | 92 ++ .../_Generated/Types/Nodes/IngestTotal.g.cs | 16 +- .../Types/QueryDsl/TermsSetQuery.g.cs | 67 +- .../_Generated/Types/Rank.g.cs | 227 ---- .../Types/Snapshot/SnapshotShardFailure.g.cs | 2 + .../Client/ElasticsearchClient.Esql.cs | 2 +- .../Api/Cluster/HealthResponse.g.cs | 8 + .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 8 +- .../IndexManagement/GetDataStreamRequest.g.cs | 16 + .../IndexManagement/ResolveIndexRequest.g.cs | 36 + .../Api/Ingest/PutPipelineRequest.g.cs | 47 + .../Api/OpenPointInTimeRequest.g.cs | 116 +- .../Api/OpenPointInTimeResponse.g.cs | 8 + .../DeleteBehavioralAnalyticsRequest.g.cs | 2 + .../DeleteSearchApplicationRequest.g.cs | 6 +- .../GetBehavioralAnalyticsRequest.g.cs | 4 +- .../GetSearchApplicationRequest.g.cs | 4 +- .../PutBehavioralAnalyticsRequest.g.cs | 4 +- .../PutSearchApplicationRequest.g.cs | 4 +- .../SearchApplicationSearchRequest.g.cs | 8 +- .../_Generated/Api/SearchShardsResponse.g.cs | 2 +- .../Api/Security/PutRoleRequest.g.cs | 160 +++ .../_Generated/Api/Sql/QueryRequest.g.cs | 8 +- .../Api/Xpack/XpackInfoRequest.g.cs | 6 +- .../Client/ElasticsearchClient.Ingest.g.cs | 100 +- ...ElasticsearchClient.SearchApplication.g.cs | 112 +- .../Aggregations/AggregateDictionary.g.cs | 8 + .../Types/Aggregations/Aggregation.g.cs | 30 + .../RandomSamplerAggregation.g.cs | 129 +++ .../Aggregations/TimeSeriesAggregate.g.cs | 36 + .../Aggregations/TimeSeriesAggregation.g.cs} | 56 +- .../Types/Aggregations/TimeSeriesBucket.g.cs | 87 ++ .../Types/Analysis/ClassicTokenizer.g.cs | 90 ++ .../Types/Analysis/EdgeNGramTokenizer.g.cs | 14 +- .../Analysis/KeywordMarkerTokenFilter.g.cs | 3 +- .../Types/Analysis/KeywordTokenizer.g.cs | 14 +- .../Types/Analysis/NGramTokenizer.g.cs | 14 +- .../Analysis/SimplePatternSplitTokenizer.g.cs | 90 ++ .../Analysis/SimplePatternTokenizer.g.cs | 90 ++ .../Types/Analysis/ThaiTokenizer.g.cs | 73 ++ .../_Generated/Types/Analysis/Tokenizers.g.cs | 32 + .../_Generated/Types/Cluster/CurrentNode.g.cs | 2 + .../Types/Cluster/IndexHealthStats.g.cs | 2 + .../Cluster/NodeAllocationExplanation.g.cs | 2 + .../Types/Cluster/ShardHealthStats.g.cs | 2 + .../Core/Search/AggregationProfileDebug.g.cs | 8 + .../Types/Core/Search/DfsKnnProfile.g.cs | 40 + .../Types/Core/Search/DfsProfile.g.cs | 36 + .../Core/Search/DfsStatisticsBreakdown.g.cs | 48 + .../Core/Search/DfsStatisticsProfile.g.cs | 46 + .../_Generated/Types/Core/Search/Hit.g.cs | 2 +- .../Types/Core/Search/KnnCollectorResult.g.cs | 42 + .../Core/Search/KnnQueryProfileBreakdown.g.cs | 72 ++ .../Core/Search/KnnQueryProfileResult.g.cs | 46 + .../Types/Core/Search/QueryBreakdown.g.cs | 4 + .../Types/Core/Search/ShardProfile.g.cs | 10 + .../SearchShardsNodeAttributes.g.cs | 73 ++ .../_Generated/Types/Enrich/CacheStats.g.cs | 6 + .../_Generated/Types/Enums/Enums.Esql.g.cs | 113 ++ .../_Generated/Types/Enums/Enums.Ingest.g.cs | 172 ++- .../Types/Enums/Enums.MachineLearning.g.cs | 84 +- .../_Generated/Types/Enums/Enums.Sql.g.cs | 106 ++ .../_Generated/Types/Enums/Enums.Xpack.g.cs | 78 ++ .../Types/Ingest/AppendProcessor.g.cs | 5 +- .../Types/Ingest/DotExpanderProcessor.g.cs | 50 + .../Types/Ingest/GeoGridProcessor.g.cs | 1010 +++++++++++++++++ .../Types/Ingest/GeoIpProcessor.g.cs | 47 + .../_Generated/Types/Ingest/Pipeline.g.cs | 47 + .../_Generated/Types/Ingest/Processor.g.cs | 30 + .../Types/Ingest/RedactProcessor.g.cs | 727 ++++++++++++ .../Types/Ingest/UserAgentProcessor.g.cs | 88 +- .../Types/MachineLearning/CalendarEvent.g.cs | 78 ++ .../TrainedModelDeploymentStats.g.cs | 2 +- .../Types/Mapping/BinaryProperty.g.cs | 30 - .../Types/Mapping/BooleanProperty.g.cs | 30 - .../Types/Mapping/ByteNumberProperty.g.cs | 30 - .../Types/Mapping/CompletionProperty.g.cs | 30 - .../Types/Mapping/CompositeSubField.g.cs | 59 + .../Types/Mapping/DateNanosProperty.g.cs | 30 - .../Types/Mapping/DateProperty.g.cs | 30 - .../Types/Mapping/DateRangeProperty.g.cs | 30 - .../Types/Mapping/DoubleNumberProperty.g.cs | 30 - .../Types/Mapping/DoubleRangeProperty.g.cs | 30 - .../Types/Mapping/DynamicProperty.g.cs | 30 - .../Types/Mapping/FloatNumberProperty.g.cs | 30 - .../Types/Mapping/FloatRangeProperty.g.cs | 30 - .../Types/Mapping/GeoPointProperty.g.cs | 30 - .../Types/Mapping/GeoShapeProperty.g.cs | 30 - .../Mapping/HalfFloatNumberProperty.g.cs | 30 - .../Types/Mapping/IcuCollationProperty.g.cs | 30 - .../Types/Mapping/IntegerNumberProperty.g.cs | 30 - .../Types/Mapping/IntegerRangeProperty.g.cs | 30 - .../_Generated/Types/Mapping/IpProperty.g.cs | 30 - .../Types/Mapping/IpRangeProperty.g.cs | 30 - .../Types/Mapping/LongNumberProperty.g.cs | 30 - .../Types/Mapping/LongRangeProperty.g.cs | 30 - .../Types/Mapping/Murmur3HashProperty.g.cs | 30 - .../Types/Mapping/NestedProperty.g.cs | 30 - .../Types/Mapping/ObjectProperty.g.cs | 30 - .../Types/Mapping/PointProperty.g.cs | 30 - .../Types/Mapping/RuntimeField.g.cs | 44 + .../Mapping/ScaledFloatNumberProperty.g.cs | 30 - .../Types/Mapping/ShapeProperty.g.cs | 30 - .../Types/Mapping/ShortNumberProperty.g.cs | 30 - .../Types/Mapping/TokenCountProperty.g.cs | 30 - .../Mapping/UnsignedLongNumberProperty.g.cs | 30 - .../Types/Mapping/VersionProperty.g.cs | 30 - .../Types/Mapping/WildcardProperty.g.cs | 30 - .../_Generated/Types/NodeAttributes.g.cs | 4 - .../_Generated/Types/Nodes/Http.g.cs | 8 + .../_Generated/Types/Nodes/HttpRoute.g.cs | 36 + .../Types/Nodes/HttpRouteRequests.g.cs | 38 + .../Types/Nodes/HttpRouteResponses.g.cs | 40 + .../_Generated/Types/Nodes/Ingest.g.cs | 2 +- .../_Generated/Types/Nodes/IngestStats.g.cs | 92 ++ .../_Generated/Types/Nodes/IngestTotal.g.cs | 16 +- .../Types/Nodes/SizeHttpHistogram.g.cs | 38 + .../Types/Nodes/TimeHttpHistogram.g.cs | 38 + .../Types/QueryDsl/TermsSetQuery.g.cs | 67 +- .../Security/RemoteIndicesPrivileges.g.cs | 363 ++++++ .../Types/Snapshot/SnapshotShardFailure.g.cs | 2 + 211 files changed, 8948 insertions(+), 2868 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Rank.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs rename src/{Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs => Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs} (51%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Esql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Sql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Xpack.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs index a3fac39235a..609d064dd95 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs @@ -145,6 +145,14 @@ public sealed partial class HealthResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("timed_out")] public bool TimedOut { get; init; } + /// + /// + /// The number of primary shards that are not allocated. + /// + /// + [JsonInclude, JsonPropertyName("unassigned_primary_shards")] + public int UnassignedPrimaryShards { get; init; } + /// /// /// The number of shards that are not allocated. 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 index 69b18ee8d0e..3a9c22fbcf8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class EsqlQueryRequestParameters : RequestParameters /// A short version of the Accept header, e.g. json, yaml. /// /// - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } } /// @@ -92,7 +92,7 @@ public sealed partial class EsqlQueryRequest : PlainRequest /// [JsonIgnore] - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } /// /// @@ -163,7 +163,7 @@ public EsqlQueryRequestDescriptor() 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); + public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? format) => Qs("format", format); private bool? ColumnarValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } @@ -328,7 +328,7 @@ public EsqlQueryRequestDescriptor() 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); + public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? format) => Qs("format", format); private bool? ColumnarValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } 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 3a26e483e8b..88efd35baf2 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 @@ -52,6 +52,13 @@ public sealed partial class GetDataStreamRequestParameters : RequestParameters /// /// public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Whether the maximum timestamp for each data stream should be calculated and returned. + /// + /// + public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -102,6 +109,14 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamN /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Whether the maximum timestamp for each data stream should be calculated and returned. + /// + /// + [JsonIgnore] + public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -133,6 +148,7 @@ public GetDataStreamRequestDescriptor() public GetDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetDataStreamRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public GetDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetDataStreamRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public GetDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index c18ffe5c104..35ff26b1dce 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -31,6 +31,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class ResolveIndexRequestParameters : RequestParameters { + /// + /// + /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. + /// This behavior applies even if the request targets other open indices. + /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// + /// + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + /// /// /// Type of index that wildcard patterns can match. @@ -40,6 +49,13 @@ public sealed partial class ResolveIndexRequestParameters : RequestParameters /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// + /// If false, the request returns an error if it targets a missing or closed index. + /// + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } } /// @@ -62,6 +78,16 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) internal override string OperationName => "indices.resolve_index"; + /// + /// + /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. + /// This behavior applies even if the request targets other open indices. + /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// + /// + [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + /// /// /// Type of index that wildcard patterns can match. @@ -72,6 +98,14 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) /// [JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// + /// If false, the request returns an error if it targets a missing or closed index. + /// + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } } /// @@ -96,7 +130,9 @@ public ResolveIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Na internal override string OperationName => "indices.resolve_index"; + public ResolveIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ResolveIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ResolveIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs index f4488ec31d1..f4019717ca4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -97,6 +97,15 @@ public PutPipelineRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; set; } + /// /// /// Description of the ingest pipeline. @@ -170,6 +179,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch. return Self; } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -182,6 +192,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch. private Action>[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -300,6 +322,12 @@ public PutPipelineRequestDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); @@ -416,6 +444,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless. return Self; } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -428,6 +457,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless. private Action[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -546,6 +587,12 @@ public PutPipelineRequestDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs index 856765300ec..769f6db4bcb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -90,7 +90,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices i protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "open_point_in_time"; @@ -136,6 +136,14 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices i /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// + /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// + /// + [JsonInclude, JsonPropertyName("index_filter")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilter { get; set; } } /// @@ -164,7 +172,7 @@ public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "open_point_in_time"; @@ -180,8 +188,59 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elast return Self; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } + private Action> IndexFilterDescriptorAction { get; set; } + + /// + /// + /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// + /// + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) + { + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = null; + IndexFilterValue = indexFilter; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + IndexFilterValue = null; + IndexFilterDescriptorAction = null; + IndexFilterDescriptor = descriptor; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Action> configure) + { + IndexFilterValue = null; + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { + writer.WriteStartObject(); + if (IndexFilterDescriptor is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); + } + else if (IndexFilterDescriptorAction is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); + } + else if (IndexFilterValue is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterValue, options); + } + + writer.WriteEndObject(); } } @@ -207,7 +266,7 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "open_point_in_time"; @@ -223,7 +282,58 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Se return Self; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } + private Action IndexFilterDescriptorAction { get; set; } + + /// + /// + /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// + /// + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) + { + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = null; + IndexFilterValue = indexFilter; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + IndexFilterValue = null; + IndexFilterDescriptorAction = null; + IndexFilterDescriptor = descriptor; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Action configure) + { + IndexFilterValue = null; + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { + writer.WriteStartObject(); + if (IndexFilterDescriptor is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); + } + else if (IndexFilterDescriptorAction is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); + } + else if (IndexFilterValue is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterValue, options); + } + + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs index 6094b36e7d1..b31084c2922 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs @@ -30,4 +30,12 @@ public sealed partial class OpenPointInTimeResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("id")] public string Id { get; init; } + + /// + /// + /// Shards used to create the PIT + /// + /// + [JsonInclude, JsonPropertyName("_shards")] + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs index 43b83d2d913..35976debed0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs @@ -373,12 +373,6 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert continue; } - if (property == "rank") - { - variant.Rank = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "rescore") { variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); @@ -585,12 +579,6 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria JsonSerializer.Serialize(writer, value.Query, options); } - if (value.Rank is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, value.Rank, options); - } - if (value.Rescore is not null) { writer.WritePropertyName("rescore"); @@ -1128,14 +1116,6 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - /// - /// - /// Defines the Reciprocal Rank Fusion (RRF) to use. - /// - /// - [JsonInclude, JsonPropertyName("rank")] - public Elastic.Clients.Elasticsearch.Serverless.Rank? Rank { get; set; } - /// /// /// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases. @@ -1401,9 +1381,6 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action> QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Rank? RankValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RankDescriptor RankDescriptor { get; set; } - private Action RankDescriptorAction { get; set; } private ICollection? RescoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } private Action> RescoreDescriptorAction { get; set; } @@ -1790,35 +1767,6 @@ public SearchRequestDescriptor Query(Action - /// - /// Defines the Reciprocal Rank Fusion (RRF) to use. - /// - /// - public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.Rank? rank) - { - RankDescriptor = null; - RankDescriptorAction = null; - RankValue = rank; - return Self; - } - - public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.RankDescriptor descriptor) - { - RankValue = null; - RankDescriptorAction = null; - RankDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Rank(Action configure) - { - RankValue = null; - RankDescriptor = null; - RankDescriptorAction = configure; - return Self; - } - /// /// /// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases. @@ -2367,22 +2315,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryValue, options); } - if (RankDescriptor is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, RankDescriptor, options); - } - else if (RankDescriptorAction is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RankDescriptor(RankDescriptorAction), options); - } - else if (RankValue is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, RankValue, options); - } - if (RescoreDescriptor is not null) { writer.WritePropertyName("rescore"); @@ -2668,9 +2600,6 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless. private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Rank? RankValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RankDescriptor RankDescriptor { get; set; } - private Action RankDescriptorAction { get; set; } private ICollection? RescoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } private Action RescoreDescriptorAction { get; set; } @@ -3057,35 +2986,6 @@ public SearchRequestDescriptor Query(Action - /// - /// Defines the Reciprocal Rank Fusion (RRF) to use. - /// - /// - public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.Rank? rank) - { - RankDescriptor = null; - RankDescriptorAction = null; - RankValue = rank; - return Self; - } - - public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Serverless.RankDescriptor descriptor) - { - RankValue = null; - RankDescriptorAction = null; - RankDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Rank(Action configure) - { - RankValue = null; - RankDescriptor = null; - RankDescriptorAction = configure; - return Self; - } - /// /// /// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases. @@ -3634,22 +3534,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryValue, options); } - if (RankDescriptor is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, RankDescriptor, options); - } - else if (RankDescriptorAction is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RankDescriptor(RankDescriptorAction), options); - } - else if (RankValue is not null) - { - writer.WritePropertyName("rank"); - JsonSerializer.Serialize(writer, RankValue, options); - } - if (RescoreDescriptor is not null) { writer.WritePropertyName("rescore"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs index acc10e56463..c07aacaaa31 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class QueryRequestParameters : RequestParameters /// Format for the response. /// /// - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } } /// @@ -60,7 +60,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// [JsonIgnore] - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } /// /// @@ -215,7 +215,7 @@ public QueryRequestDescriptor() internal override string OperationName => "sql.query"; - public QueryRequestDescriptor Format(string? format) => Qs("format", format); + public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? format) => Qs("format", format); private string? CatalogValue { get; set; } private bool? ColumnarValue { get; set; } @@ -567,7 +567,7 @@ public QueryRequestDescriptor() internal override string OperationName => "sql.query"; - public QueryRequestDescriptor Format(string? format) => Qs("format", format); + public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? format) => Qs("format", format); private string? CatalogValue { get; set; } private bool? ColumnarValue { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 87f0195bc1a..36f4e1f3351 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class XpackInfoRequestParameters : RequestParameters /// A comma-separated list of the information categories to include in the response. For example, build,license,features. /// /// - public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } + public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } } /// @@ -75,7 +75,7 @@ public sealed partial class XpackInfoRequest : PlainRequest /// [JsonIgnore] - public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } + public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } } /// @@ -100,7 +100,7 @@ public XpackInfoRequestDescriptor() internal override string OperationName => "xpack.info"; public XpackInfoRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise); - public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories); + public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs index 903fa74a8f7..cdd7941b0fe 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -43,7 +43,7 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -55,7 +55,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -67,7 +67,7 @@ public virtual Task DeleteGeoipDatabaseAsync /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) { @@ -80,7 +80,7 @@ public virtual Task DeleteGeoipDatabaseAsync /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -94,7 +94,7 @@ public virtual Task DeleteGeoipDatabaseAsync /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -106,7 +106,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) { @@ -119,7 +119,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task GeoIpStatsAsync(Action /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -298,7 +298,7 @@ public virtual Task GetGeoipDatabaseAsync(G /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) { @@ -311,7 +311,7 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -325,7 +325,7 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) { @@ -338,7 +338,7 @@ public virtual Task GetGeoipDatabaseAsync(C /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -352,7 +352,7 @@ public virtual Task GetGeoipDatabaseAsync(A /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -364,7 +364,7 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) { @@ -377,7 +377,7 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -391,7 +391,7 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task GetGeoipDatabaseAsync(Cancellation /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -632,7 +632,7 @@ public virtual Task ProcessorGrokAsync(Action /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -644,7 +644,7 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -656,7 +656,7 @@ public virtual Task PutGeoipDatabaseAsync(P /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -669,7 +669,7 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -683,7 +683,7 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -695,7 +695,7 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -708,7 +708,7 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs index 2201077a4d4..7f1f89d7900 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs @@ -101,6 +101,7 @@ public AggregateDictionary(IReadOnlyDictionary backingDictio public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregate? GetSum(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestPercentileRanksAggregate? GetTDigestPercentileRanks(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestPercentilesAggregate? GetTDigestPercentiles(string key) => TryGet(key); + public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TimeSeriesAggregate? GetTimeSeries(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregate? GetTopHits(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregate? GetTopMetrics(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregate? GetTTest(string key) => TryGet(key); @@ -559,6 +560,13 @@ public static void ReadItem(ref Utf8JsonReader reader, JsonSerializerOptions opt break; } + case "time_series": + { + var item = JsonSerializer.Deserialize(ref reader, options); + dictionary.Add(nameParts[1], item); + break; + } + case "top_hits": { var item = JsonSerializer.Deserialize(ref reader, options); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs new file mode 100644 index 00000000000..8eeb3961a76 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; + +public sealed partial class TimeSeriesAggregate : IAggregate +{ + [JsonInclude, JsonPropertyName("buckets")] + public IReadOnlyCollection Buckets { get; init; } + [JsonInclude, JsonPropertyName("meta")] + public IReadOnlyDictionary? Meta { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs new file mode 100644 index 00000000000..920d0906f9c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs @@ -0,0 +1,87 @@ +// 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.Aggregations; + +internal sealed partial class TimeSeriesBucketConverter : JsonConverter +{ + public override TimeSeriesBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException("Unexpected JSON detected."); + long docCount = default; + IReadOnlyDictionary key = default; + Dictionary additionalProperties = null; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType == JsonTokenType.PropertyName) + { + var property = reader.GetString(); + if (property == "doc_count") + { + docCount = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "key") + { + key = JsonSerializer.Deserialize>(ref reader, options); + continue; + } + + if (property.Contains("#")) + { + additionalProperties ??= new Dictionary(); + AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); + continue; + } + + throw new JsonException("Unknown property read from JSON."); + } + } + + return new TimeSeriesBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; + } + + public override void Write(Utf8JsonWriter writer, TimeSeriesBucket value, JsonSerializerOptions options) + { + throw new NotImplementedException("'TimeSeriesBucket' is a readonly type, used only on responses and does not support being written to JSON."); + } +} + +[JsonConverter(typeof(TimeSeriesBucketConverter))] +public sealed partial class TimeSeriesBucket +{ + /// + /// + /// Nested aggregations + /// + /// + public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } + public long DocCount { get; init; } + public IReadOnlyDictionary Key { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs new file mode 100644 index 00000000000..dd3cd63d201 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs @@ -0,0 +1,90 @@ +// 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.Analysis; + +public sealed partial class ClassicTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("max_token_length")] + public int? MaxTokenLength { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "classic"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ClassicTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ClassicTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public ClassicTokenizerDescriptor() : base() + { + } + + private int? MaxTokenLengthValue { get; set; } + private string? VersionValue { get; set; } + + public ClassicTokenizerDescriptor MaxTokenLength(int? maxTokenLength) + { + MaxTokenLengthValue = maxTokenLength; + return Self; + } + + public ClassicTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MaxTokenLengthValue.HasValue) + { + writer.WritePropertyName("max_token_length"); + writer.WriteNumberValue(MaxTokenLengthValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("classic"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ClassicTokenizer IBuildableDescriptor.Build() => new() + { + MaxTokenLength = MaxTokenLengthValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs index 6992131e171..41b05db29a7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs @@ -36,7 +36,7 @@ public sealed partial class EdgeNGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("min_gram")] public int MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] - public ICollection TokenChars { get; set; } + public ICollection? TokenChars { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "edge_ngram"; @@ -56,7 +56,7 @@ public EdgeNGramTokenizerDescriptor() : base() private string? CustomTokenCharsValue { get; set; } private int MaxGramValue { get; set; } private int MinGramValue { get; set; } - private ICollection TokenCharsValue { get; set; } + private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } public EdgeNGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) @@ -77,7 +77,7 @@ public EdgeNGramTokenizerDescriptor MinGram(int minGram) return Self; } - public EdgeNGramTokenizerDescriptor TokenChars(ICollection tokenChars) + public EdgeNGramTokenizerDescriptor TokenChars(ICollection? tokenChars) { TokenCharsValue = tokenChars; return Self; @@ -102,8 +102,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxGramValue); writer.WritePropertyName("min_gram"); writer.WriteNumberValue(MinGramValue); - writer.WritePropertyName("token_chars"); - JsonSerializer.Serialize(writer, TokenCharsValue, options); + if (TokenCharsValue is not null) + { + writer.WritePropertyName("token_chars"); + JsonSerializer.Serialize(writer, TokenCharsValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("edge_ngram"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs index 9fc8bf1b52e..63c98e51412 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs @@ -32,6 +32,7 @@ public sealed partial class KeywordMarkerTokenFilter : ITokenFilter [JsonInclude, JsonPropertyName("ignore_case")] public bool? IgnoreCase { get; set; } [JsonInclude, JsonPropertyName("keywords")] + [SingleOrManyCollectionConverter(typeof(string))] public ICollection? Keywords { get; set; } [JsonInclude, JsonPropertyName("keywords_path")] public string? KeywordsPath { get; set; } @@ -101,7 +102,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (KeywordsValue is not null) { writer.WritePropertyName("keywords"); - JsonSerializer.Serialize(writer, KeywordsValue, options); + SingleOrManySerializationHelper.Serialize(KeywordsValue, writer, options); } if (!string.IsNullOrEmpty(KeywordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs index 25621e123f4..379e6bdb7e9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; public sealed partial class KeywordTokenizer : ITokenizer { [JsonInclude, JsonPropertyName("buffer_size")] - public int BufferSize { get; set; } + public int? BufferSize { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "keyword"; @@ -47,10 +47,10 @@ public KeywordTokenizerDescriptor() : base() { } - private int BufferSizeValue { get; set; } + private int? BufferSizeValue { get; set; } private string? VersionValue { get; set; } - public KeywordTokenizerDescriptor BufferSize(int bufferSize) + public KeywordTokenizerDescriptor BufferSize(int? bufferSize) { BufferSizeValue = bufferSize; return Self; @@ -65,8 +65,12 @@ public KeywordTokenizerDescriptor Version(string? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("buffer_size"); - writer.WriteNumberValue(BufferSizeValue); + if (BufferSizeValue.HasValue) + { + writer.WritePropertyName("buffer_size"); + writer.WriteNumberValue(BufferSizeValue.Value); + } + writer.WritePropertyName("type"); writer.WriteStringValue("keyword"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs index b56cc0414bb..1c685bd6ccf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs @@ -36,7 +36,7 @@ public sealed partial class NGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("min_gram")] public int MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] - public ICollection TokenChars { get; set; } + public ICollection? TokenChars { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "ngram"; @@ -56,7 +56,7 @@ public NGramTokenizerDescriptor() : base() private string? CustomTokenCharsValue { get; set; } private int MaxGramValue { get; set; } private int MinGramValue { get; set; } - private ICollection TokenCharsValue { get; set; } + private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } public NGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) @@ -77,7 +77,7 @@ public NGramTokenizerDescriptor MinGram(int minGram) return Self; } - public NGramTokenizerDescriptor TokenChars(ICollection tokenChars) + public NGramTokenizerDescriptor TokenChars(ICollection? tokenChars) { TokenCharsValue = tokenChars; return Self; @@ -102,8 +102,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxGramValue); writer.WritePropertyName("min_gram"); writer.WriteNumberValue(MinGramValue); - writer.WritePropertyName("token_chars"); - JsonSerializer.Serialize(writer, TokenCharsValue, options); + if (TokenCharsValue is not null) + { + writer.WritePropertyName("token_chars"); + JsonSerializer.Serialize(writer, TokenCharsValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("ngram"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs new file mode 100644 index 00000000000..7953d768925 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs @@ -0,0 +1,90 @@ +// 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.Analysis; + +public sealed partial class SimplePatternSplitTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("pattern")] + public string? Pattern { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "simple_pattern_split"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class SimplePatternSplitTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SimplePatternSplitTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public SimplePatternSplitTokenizerDescriptor() : base() + { + } + + private string? PatternValue { get; set; } + private string? VersionValue { get; set; } + + public SimplePatternSplitTokenizerDescriptor Pattern(string? pattern) + { + PatternValue = pattern; + return Self; + } + + public SimplePatternSplitTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(PatternValue)) + { + writer.WritePropertyName("pattern"); + writer.WriteStringValue(PatternValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("simple_pattern_split"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + SimplePatternSplitTokenizer IBuildableDescriptor.Build() => new() + { + Pattern = PatternValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs new file mode 100644 index 00000000000..922ae85dd8e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs @@ -0,0 +1,90 @@ +// 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.Analysis; + +public sealed partial class SimplePatternTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("pattern")] + public string? Pattern { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "simple_pattern"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class SimplePatternTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SimplePatternTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public SimplePatternTokenizerDescriptor() : base() + { + } + + private string? PatternValue { get; set; } + private string? VersionValue { get; set; } + + public SimplePatternTokenizerDescriptor Pattern(string? pattern) + { + PatternValue = pattern; + return Self; + } + + public SimplePatternTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(PatternValue)) + { + writer.WritePropertyName("pattern"); + writer.WriteStringValue(PatternValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("simple_pattern"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + SimplePatternTokenizer IBuildableDescriptor.Build() => new() + { + Pattern = PatternValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs new file mode 100644 index 00000000000..3d31fe4eadc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs @@ -0,0 +1,73 @@ +// 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.Analysis; + +public sealed partial class ThaiTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "thai"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ThaiTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ThaiTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public ThaiTokenizerDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ThaiTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("thai"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ThaiTokenizer IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs index e43e3e982d9..0e3c17b8211 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs @@ -69,6 +69,9 @@ public TokenizersDescriptor() : base(new Tokenizers()) public TokenizersDescriptor CharGroup(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor CharGroup(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor CharGroup(string tokenizerName, CharGroupTokenizer charGroupTokenizer) => AssignVariant(tokenizerName, charGroupTokenizer); + public TokenizersDescriptor Classic(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor Classic(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor Classic(string tokenizerName, ClassicTokenizer classicTokenizer) => AssignVariant(tokenizerName, classicTokenizer); public TokenizersDescriptor EdgeNGram(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor EdgeNGram(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor EdgeNGram(string tokenizerName, EdgeNGramTokenizer edgeNGramTokenizer) => AssignVariant(tokenizerName, edgeNGramTokenizer); @@ -99,9 +102,18 @@ public TokenizersDescriptor() : base(new Tokenizers()) public TokenizersDescriptor Pattern(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor Pattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor Pattern(string tokenizerName, PatternTokenizer patternTokenizer) => AssignVariant(tokenizerName, patternTokenizer); + public TokenizersDescriptor SimplePatternSplit(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor SimplePatternSplit(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor SimplePatternSplit(string tokenizerName, SimplePatternSplitTokenizer simplePatternSplitTokenizer) => AssignVariant(tokenizerName, simplePatternSplitTokenizer); + public TokenizersDescriptor SimplePattern(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor SimplePattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor SimplePattern(string tokenizerName, SimplePatternTokenizer simplePatternTokenizer) => AssignVariant(tokenizerName, simplePatternTokenizer); public TokenizersDescriptor Standard(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor Standard(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor Standard(string tokenizerName, StandardTokenizer standardTokenizer) => AssignVariant(tokenizerName, standardTokenizer); + public TokenizersDescriptor Thai(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor Thai(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor Thai(string tokenizerName, ThaiTokenizer thaiTokenizer) => AssignVariant(tokenizerName, thaiTokenizer); public TokenizersDescriptor UaxEmailUrl(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor UaxEmailUrl(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor UaxEmailUrl(string tokenizerName, UaxEmailUrlTokenizer uaxEmailUrlTokenizer) => AssignVariant(tokenizerName, uaxEmailUrlTokenizer); @@ -126,6 +138,8 @@ public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, J { case "char_group": return JsonSerializer.Deserialize(ref reader, options); + case "classic": + return JsonSerializer.Deserialize(ref reader, options); case "edge_ngram": return JsonSerializer.Deserialize(ref reader, options); case "icu_tokenizer": @@ -146,8 +160,14 @@ public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, J return JsonSerializer.Deserialize(ref reader, options); case "pattern": return JsonSerializer.Deserialize(ref reader, options); + case "simple_pattern_split": + return JsonSerializer.Deserialize(ref reader, options); + case "simple_pattern": + return JsonSerializer.Deserialize(ref reader, options); case "standard": return JsonSerializer.Deserialize(ref reader, options); + case "thai": + return JsonSerializer.Deserialize(ref reader, options); case "uax_url_email": return JsonSerializer.Deserialize(ref reader, options); case "whitespace": @@ -171,6 +191,9 @@ public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializ case "char_group": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CharGroupTokenizer), options); return; + case "classic": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ClassicTokenizer), options); + return; case "edge_ngram": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramTokenizer), options); return; @@ -201,9 +224,18 @@ public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializ case "pattern": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternTokenizer), options); return; + case "simple_pattern_split": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimplePatternSplitTokenizer), options); + return; + case "simple_pattern": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimplePatternTokenizer), options); + return; case "standard": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StandardTokenizer), options); return; + case "thai": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ThaiTokenizer), options); + return; case "uax_url_email": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.UaxEmailUrlTokenizer), options); return; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs index e96acb32e06..9ae6aadc90c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs @@ -35,6 +35,8 @@ public sealed partial class CurrentNode public string Id { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } [JsonInclude, JsonPropertyName("transport_address")] public string TransportAddress { get; init; } [JsonInclude, JsonPropertyName("weight_ranking")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs index e9f1e22a8a7..8731a5b847d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs @@ -45,6 +45,8 @@ public sealed partial class IndexHealthStats public IReadOnlyDictionary? Shards { get; init; } [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("unassigned_primary_shards")] + public int UnassignedPrimaryShards { get; init; } [JsonInclude, JsonPropertyName("unassigned_shards")] public int UnassignedShards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs index a7d5a34d3cb..9eddb8404ad 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs @@ -39,6 +39,8 @@ public sealed partial class NodeAllocationExplanation public string NodeId { get; init; } [JsonInclude, JsonPropertyName("node_name")] public string NodeName { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } [JsonInclude, JsonPropertyName("store")] public Elastic.Clients.Elasticsearch.Serverless.Cluster.AllocationStore? Store { get; init; } [JsonInclude, JsonPropertyName("transport_address")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs index 36433d2d2fb..0c606274b01 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs @@ -39,6 +39,8 @@ public sealed partial class ShardHealthStats public int RelocatingShards { get; init; } [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("unassigned_primary_shards")] + public int UnassignedPrimaryShards { get; init; } [JsonInclude, JsonPropertyName("unassigned_shards")] public int UnassignedShards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs index 18394575b9a..b37d0f1d624 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs @@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class AggregationProfileDebug { + [JsonInclude, JsonPropertyName("brute_force_used")] + public int? BruteForceUsed { get; init; } [JsonInclude, JsonPropertyName("built_buckets")] public int? BuiltBuckets { get; init; } [JsonInclude, JsonPropertyName("chars_fetched")] @@ -45,6 +47,10 @@ public sealed partial class AggregationProfileDebug public string? Delegate { get; init; } [JsonInclude, JsonPropertyName("delegate_debug")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.AggregationProfileDebug? DelegateDebug { get; init; } + [JsonInclude, JsonPropertyName("dynamic_pruning_attempted")] + public int? DynamicPruningAttempted { get; init; } + [JsonInclude, JsonPropertyName("dynamic_pruning_used")] + public int? DynamicPruningUsed { get; init; } [JsonInclude, JsonPropertyName("empty_collectors_used")] public int? EmptyCollectorsUsed { get; init; } [JsonInclude, JsonPropertyName("extract_count")] @@ -77,6 +83,8 @@ public sealed partial class AggregationProfileDebug public int? SegmentsWithMultiValuedOrds { get; init; } [JsonInclude, JsonPropertyName("segments_with_single_valued_ords")] public int? SegmentsWithSingleValuedOrds { get; init; } + [JsonInclude, JsonPropertyName("skipped_due_to_no_data")] + public int? SkippedDueToNoData { get; init; } [JsonInclude, JsonPropertyName("string_hashing_collectors_used")] public int? StringHashingCollectorsUsed { get; init; } [JsonInclude, JsonPropertyName("surviving_buckets")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs new file mode 100644 index 00000000000..e530248121d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs @@ -0,0 +1,40 @@ +// 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.Core.Search; + +public sealed partial class DfsKnnProfile +{ + [JsonInclude, JsonPropertyName("collector")] + public IReadOnlyCollection Collector { get; init; } + [JsonInclude, JsonPropertyName("query")] + public IReadOnlyCollection Query { get; init; } + [JsonInclude, JsonPropertyName("rewrite_time")] + public long RewriteTime { get; init; } + [JsonInclude, JsonPropertyName("vector_operations_count")] + public long? VectorOperationsCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs new file mode 100644 index 00000000000..9382b2458b4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; + +public sealed partial class DfsProfile +{ + [JsonInclude, JsonPropertyName("knn")] + public IReadOnlyCollection? Knn { get; init; } + [JsonInclude, JsonPropertyName("statistics")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsStatisticsProfile? Statistics { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs new file mode 100644 index 00000000000..c1e450ddf09 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs @@ -0,0 +1,48 @@ +// 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.Core.Search; + +public sealed partial class DfsStatisticsBreakdown +{ + [JsonInclude, JsonPropertyName("collection_statistics")] + public long CollectionStatistics { get; init; } + [JsonInclude, JsonPropertyName("collection_statistics_count")] + public long CollectionStatisticsCount { get; init; } + [JsonInclude, JsonPropertyName("create_weight")] + public long CreateWeight { get; init; } + [JsonInclude, JsonPropertyName("create_weight_count")] + public long CreateWeightCount { get; init; } + [JsonInclude, JsonPropertyName("rewrite")] + public long Rewrite { get; init; } + [JsonInclude, JsonPropertyName("rewrite_count")] + public long RewriteCount { get; init; } + [JsonInclude, JsonPropertyName("term_statistics")] + public long TermStatistics { get; init; } + [JsonInclude, JsonPropertyName("term_statistics_count")] + public long TermStatisticsCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs new file mode 100644 index 00000000000..45ca7daa2a6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs @@ -0,0 +1,46 @@ +// 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.Core.Search; + +public sealed partial class DfsStatisticsProfile +{ + [JsonInclude, JsonPropertyName("breakdown")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsStatisticsBreakdown Breakdown { get; init; } + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("debug")] + public IReadOnlyDictionary? Debug { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string Description { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_nanos")] + public long TimeInNanos { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file 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 db68c554542..4950958526d 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 @@ -40,7 +40,7 @@ public sealed partial class Hit [JsonInclude, JsonPropertyName("_ignored")] public IReadOnlyCollection? Ignored { get; init; } [JsonInclude, JsonPropertyName("ignored_field_values")] - public IReadOnlyDictionary>? IgnoredFieldValues { get; init; } + public IReadOnlyDictionary>? IgnoredFieldValues { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("inner_hits")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs new file mode 100644 index 00000000000..d75e41dce07 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs @@ -0,0 +1,42 @@ +// 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.Core.Search; + +public sealed partial class KnnCollectorResult +{ + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("reason")] + public string Reason { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_nanos")] + public long TimeInNanos { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs new file mode 100644 index 00000000000..1cd52e5c480 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs @@ -0,0 +1,72 @@ +// 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.Core.Search; + +public sealed partial class KnnQueryProfileBreakdown +{ + [JsonInclude, JsonPropertyName("advance")] + public long Advance { get; init; } + [JsonInclude, JsonPropertyName("advance_count")] + public long AdvanceCount { get; init; } + [JsonInclude, JsonPropertyName("build_scorer")] + public long BuildScorer { get; init; } + [JsonInclude, JsonPropertyName("build_scorer_count")] + public long BuildScorerCount { get; init; } + [JsonInclude, JsonPropertyName("compute_max_score")] + public long ComputeMaxScore { get; init; } + [JsonInclude, JsonPropertyName("compute_max_score_count")] + public long ComputeMaxScoreCount { get; init; } + [JsonInclude, JsonPropertyName("count_weight")] + public long CountWeight { get; init; } + [JsonInclude, JsonPropertyName("count_weight_count")] + public long CountWeightCount { get; init; } + [JsonInclude, JsonPropertyName("create_weight")] + public long CreateWeight { get; init; } + [JsonInclude, JsonPropertyName("create_weight_count")] + public long CreateWeightCount { get; init; } + [JsonInclude, JsonPropertyName("match")] + public long Match { get; init; } + [JsonInclude, JsonPropertyName("match_count")] + public long MatchCount { get; init; } + [JsonInclude, JsonPropertyName("next_doc")] + public long NextDoc { get; init; } + [JsonInclude, JsonPropertyName("next_doc_count")] + public long NextDocCount { get; init; } + [JsonInclude, JsonPropertyName("score")] + public long Score { get; init; } + [JsonInclude, JsonPropertyName("score_count")] + public long ScoreCount { get; init; } + [JsonInclude, JsonPropertyName("set_min_competitive_score")] + public long SetMinCompetitiveScore { get; init; } + [JsonInclude, JsonPropertyName("set_min_competitive_score_count")] + public long SetMinCompetitiveScoreCount { get; init; } + [JsonInclude, JsonPropertyName("shallow_advance")] + public long ShallowAdvance { get; init; } + [JsonInclude, JsonPropertyName("shallow_advance_count")] + public long ShallowAdvanceCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs new file mode 100644 index 00000000000..cc0b60423d2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs @@ -0,0 +1,46 @@ +// 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.Core.Search; + +public sealed partial class KnnQueryProfileResult +{ + [JsonInclude, JsonPropertyName("breakdown")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.KnnQueryProfileBreakdown Breakdown { get; init; } + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("debug")] + public IReadOnlyDictionary? Debug { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string Description { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_nanos")] + public long TimeInNanos { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs index 68c7c76cddf..d1437731867 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs @@ -41,6 +41,10 @@ public sealed partial class QueryBreakdown public long ComputeMaxScore { get; init; } [JsonInclude, JsonPropertyName("compute_max_score_count")] public long ComputeMaxScoreCount { get; init; } + [JsonInclude, JsonPropertyName("count_weight")] + public long CountWeight { get; init; } + [JsonInclude, JsonPropertyName("count_weight_count")] + public long CountWeightCount { get; init; } [JsonInclude, JsonPropertyName("create_weight")] public long CreateWeight { get; init; } [JsonInclude, JsonPropertyName("create_weight_count")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs index b7f93f0ad9d..f06dd7d80c0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs @@ -31,10 +31,20 @@ public sealed partial class ShardProfile { [JsonInclude, JsonPropertyName("aggregations")] public IReadOnlyCollection Aggregations { get; init; } + [JsonInclude, JsonPropertyName("cluster")] + public string Cluster { get; init; } + [JsonInclude, JsonPropertyName("dfs")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsProfile? Dfs { get; init; } [JsonInclude, JsonPropertyName("fetch")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FetchProfile? Fetch { get; init; } [JsonInclude, JsonPropertyName("id")] public string Id { get; init; } + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } [JsonInclude, JsonPropertyName("searches")] public IReadOnlyCollection Searches { get; init; } + [JsonInclude, JsonPropertyName("shard_id")] + public long ShardId { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs index bd7b388718d..333b77ee818 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs @@ -35,8 +35,14 @@ public sealed partial class CacheStats public int Evictions { get; init; } [JsonInclude, JsonPropertyName("hits")] public int Hits { get; init; } + [JsonInclude, JsonPropertyName("hits_time_in_millis")] + public long HitsTimeInMillis { get; init; } [JsonInclude, JsonPropertyName("misses")] public int Misses { get; init; } + [JsonInclude, JsonPropertyName("misses_time_in_millis")] + public long MissesTimeInMillis { get; init; } [JsonInclude, JsonPropertyName("node_id")] public string NodeId { get; init; } + [JsonInclude, JsonPropertyName("size_in_bytes")] + public long SizeInBytes { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs new file mode 100644 index 00000000000..9f3b55c714b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs @@ -0,0 +1,113 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Esql; + +[JsonConverter(typeof(EsqlFormatConverter))] +public enum EsqlFormat +{ + [EnumMember(Value = "yaml")] + Yaml, + [EnumMember(Value = "txt")] + Txt, + [EnumMember(Value = "tsv")] + Tsv, + [EnumMember(Value = "smile")] + Smile, + [EnumMember(Value = "json")] + Json, + [EnumMember(Value = "csv")] + Csv, + [EnumMember(Value = "cbor")] + Cbor, + [EnumMember(Value = "arrow")] + Arrow +} + +internal sealed class EsqlFormatConverter : JsonConverter +{ + public override EsqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "yaml": + return EsqlFormat.Yaml; + case "txt": + return EsqlFormat.Txt; + case "tsv": + return EsqlFormat.Tsv; + case "smile": + return EsqlFormat.Smile; + case "json": + return EsqlFormat.Json; + case "csv": + return EsqlFormat.Csv; + case "cbor": + return EsqlFormat.Cbor; + case "arrow": + return EsqlFormat.Arrow; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, EsqlFormat value, JsonSerializerOptions options) + { + switch (value) + { + case EsqlFormat.Yaml: + writer.WriteStringValue("yaml"); + return; + case EsqlFormat.Txt: + writer.WriteStringValue("txt"); + return; + case EsqlFormat.Tsv: + writer.WriteStringValue("tsv"); + return; + case EsqlFormat.Smile: + writer.WriteStringValue("smile"); + return; + case EsqlFormat.Json: + writer.WriteStringValue("json"); + return; + case EsqlFormat.Csv: + writer.WriteStringValue("csv"); + return; + case EsqlFormat.Cbor: + writer.WriteStringValue("cbor"); + return; + case EsqlFormat.Arrow: + writer.WriteStringValue("arrow"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs index 79956b3e4c1..6d0a3acaabb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs @@ -105,6 +105,97 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali } } +[JsonConverter(typeof(GeoGridTargetFormatConverter))] +public enum GeoGridTargetFormat +{ + [EnumMember(Value = "wkt")] + Wkt, + [EnumMember(Value = "geojson")] + Geojson +} + +internal sealed class GeoGridTargetFormatConverter : JsonConverter +{ + public override GeoGridTargetFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "wkt": + return GeoGridTargetFormat.Wkt; + case "geojson": + return GeoGridTargetFormat.Geojson; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GeoGridTargetFormat value, JsonSerializerOptions options) + { + switch (value) + { + case GeoGridTargetFormat.Wkt: + writer.WriteStringValue("wkt"); + return; + case GeoGridTargetFormat.Geojson: + writer.WriteStringValue("geojson"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(GeoGridTileTypeConverter))] +public enum GeoGridTileType +{ + [EnumMember(Value = "geotile")] + Geotile, + [EnumMember(Value = "geohex")] + Geohex, + [EnumMember(Value = "geohash")] + Geohash +} + +internal sealed class GeoGridTileTypeConverter : JsonConverter +{ + public override GeoGridTileType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "geotile": + return GeoGridTileType.Geotile; + case "geohex": + return GeoGridTileType.Geohex; + case "geohash": + return GeoGridTileType.Geohash; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GeoGridTileType value, JsonSerializerOptions options) + { + switch (value) + { + case GeoGridTileType.Geotile: + writer.WriteStringValue("geotile"); + return; + case GeoGridTileType.Geohex: + writer.WriteStringValue("geohex"); + return; + case GeoGridTileType.Geohash: + writer.WriteStringValue("geohash"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(JsonProcessorConflictStrategyConverter))] public enum JsonProcessorConflictStrategy { @@ -202,26 +293,16 @@ public override void Write(Utf8JsonWriter writer, ShapeType value, JsonSerialize [JsonConverter(typeof(UserAgentPropertyConverter))] public enum UserAgentProperty { - [EnumMember(Value = "PATCH")] - Patch, - [EnumMember(Value = "OS_NAME")] - OsName, - [EnumMember(Value = "OS_MINOR")] - OsMinor, - [EnumMember(Value = "OS_MAJOR")] - OsMajor, - [EnumMember(Value = "OS")] + [EnumMember(Value = "version")] + Version, + [EnumMember(Value = "os")] Os, - [EnumMember(Value = "NAME")] + [EnumMember(Value = "original")] + Original, + [EnumMember(Value = "name")] Name, - [EnumMember(Value = "MINOR")] - Minor, - [EnumMember(Value = "MAJOR")] - Major, - [EnumMember(Value = "DEVICE")] - Device, - [EnumMember(Value = "BUILD")] - Build + [EnumMember(Value = "device")] + Device } internal sealed class UserAgentPropertyConverter : JsonConverter @@ -231,26 +312,16 @@ public override UserAgentProperty Read(ref Utf8JsonReader reader, Type typeToCon var enumString = reader.GetString(); switch (enumString) { - case "PATCH": - return UserAgentProperty.Patch; - case "OS_NAME": - return UserAgentProperty.OsName; - case "OS_MINOR": - return UserAgentProperty.OsMinor; - case "OS_MAJOR": - return UserAgentProperty.OsMajor; - case "OS": + case "version": + return UserAgentProperty.Version; + case "os": return UserAgentProperty.Os; - case "NAME": + case "original": + return UserAgentProperty.Original; + case "name": return UserAgentProperty.Name; - case "MINOR": - return UserAgentProperty.Minor; - case "MAJOR": - return UserAgentProperty.Major; - case "DEVICE": + case "device": return UserAgentProperty.Device; - case "BUILD": - return UserAgentProperty.Build; } ThrowHelper.ThrowJsonException(); @@ -261,35 +332,20 @@ public override void Write(Utf8JsonWriter writer, UserAgentProperty value, JsonS { switch (value) { - case UserAgentProperty.Patch: - writer.WriteStringValue("PATCH"); - return; - case UserAgentProperty.OsName: - writer.WriteStringValue("OS_NAME"); - return; - case UserAgentProperty.OsMinor: - writer.WriteStringValue("OS_MINOR"); - return; - case UserAgentProperty.OsMajor: - writer.WriteStringValue("OS_MAJOR"); + case UserAgentProperty.Version: + writer.WriteStringValue("version"); return; case UserAgentProperty.Os: - writer.WriteStringValue("OS"); + writer.WriteStringValue("os"); return; - case UserAgentProperty.Name: - writer.WriteStringValue("NAME"); + case UserAgentProperty.Original: + writer.WriteStringValue("original"); return; - case UserAgentProperty.Minor: - writer.WriteStringValue("MINOR"); - return; - case UserAgentProperty.Major: - writer.WriteStringValue("MAJOR"); + case UserAgentProperty.Name: + writer.WriteStringValue("name"); return; case UserAgentProperty.Device: - writer.WriteStringValue("DEVICE"); - return; - case UserAgentProperty.Build: - writer.WriteStringValue("BUILD"); + writer.WriteStringValue("device"); return; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs index bc9ef7c13fd..31515f05fd6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs @@ -417,12 +417,32 @@ public override void Write(Utf8JsonWriter writer, DeploymentAllocationState valu [JsonConverter(typeof(DeploymentAssignmentStateConverter))] public enum DeploymentAssignmentState { + /// + /// + /// The deployment is preparing to stop and deallocate the model from the relevant nodes. + /// + /// [EnumMember(Value = "stopping")] Stopping, + /// + /// + /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes. + /// + /// [EnumMember(Value = "starting")] Starting, + /// + /// + /// The deployment is usable; at least one node has the model allocated. + /// + /// [EnumMember(Value = "started")] Started, + /// + /// + /// The deployment is on a failed state and must be re-deployed. + /// + /// [EnumMember(Value = "failed")] Failed } @@ -470,70 +490,6 @@ public override void Write(Utf8JsonWriter writer, DeploymentAssignmentState valu } } -[JsonConverter(typeof(DeploymentStateConverter))] -public enum DeploymentState -{ - /// - /// - /// The deployment is preparing to stop and deallocate the model from the relevant nodes. - /// - /// - [EnumMember(Value = "stopping")] - Stopping, - /// - /// - /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes. - /// - /// - [EnumMember(Value = "starting")] - Starting, - /// - /// - /// The deployment is usable; at least one node has the model allocated. - /// - /// - [EnumMember(Value = "started")] - Started -} - -internal sealed class DeploymentStateConverter : JsonConverter -{ - public override DeploymentState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DeploymentState.Stopping; - case "starting": - return DeploymentState.Starting; - case "started": - return DeploymentState.Started; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DeploymentState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentState.Started: - writer.WriteStringValue("started"); - return; - } - - writer.WriteNullValue(); - } -} - [JsonConverter(typeof(ExcludeFrequentConverter))] public enum ExcludeFrequent { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs new file mode 100644 index 00000000000..4cdbebbc92a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +[JsonConverter(typeof(SqlFormatConverter))] +public enum SqlFormat +{ + [EnumMember(Value = "yaml")] + Yaml, + [EnumMember(Value = "txt")] + Txt, + [EnumMember(Value = "tsv")] + Tsv, + [EnumMember(Value = "smile")] + Smile, + [EnumMember(Value = "json")] + Json, + [EnumMember(Value = "csv")] + Csv, + [EnumMember(Value = "cbor")] + Cbor +} + +internal sealed class SqlFormatConverter : JsonConverter +{ + public override SqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "yaml": + return SqlFormat.Yaml; + case "txt": + return SqlFormat.Txt; + case "tsv": + return SqlFormat.Tsv; + case "smile": + return SqlFormat.Smile; + case "json": + return SqlFormat.Json; + case "csv": + return SqlFormat.Csv; + case "cbor": + return SqlFormat.Cbor; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, SqlFormat value, JsonSerializerOptions options) + { + switch (value) + { + case SqlFormat.Yaml: + writer.WriteStringValue("yaml"); + return; + case SqlFormat.Txt: + writer.WriteStringValue("txt"); + return; + case SqlFormat.Tsv: + writer.WriteStringValue("tsv"); + return; + case SqlFormat.Smile: + writer.WriteStringValue("smile"); + return; + case SqlFormat.Json: + writer.WriteStringValue("json"); + return; + case SqlFormat.Csv: + writer.WriteStringValue("csv"); + return; + case SqlFormat.Cbor: + writer.WriteStringValue("cbor"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs new file mode 100644 index 00000000000..e217b5508b1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs @@ -0,0 +1,78 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; + +[JsonConverter(typeof(XPackCategoryConverter))] +public enum XPackCategory +{ + [EnumMember(Value = "license")] + License, + [EnumMember(Value = "features")] + Features, + [EnumMember(Value = "build")] + Build +} + +internal sealed class XPackCategoryConverter : JsonConverter +{ + public override XPackCategory Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "license": + return XPackCategory.License; + case "features": + return XPackCategory.Features; + case "build": + return XPackCategory.Build; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, XPackCategory value, JsonSerializerOptions options) + { + switch (value) + { + case XPackCategory.License: + writer.WriteStringValue("license"); + return; + case XPackCategory.Features: + writer.WriteStringValue("features"); + return; + case XPackCategory.Build: + writer.WriteStringValue("build"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs index 0e2b0839e9a..d90d96e78bf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs @@ -94,6 +94,7 @@ public sealed partial class AppendProcessor /// /// [JsonInclude, JsonPropertyName("value")] + [SingleOrManyCollectionConverter(typeof(object))] public ICollection Value { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(AppendProcessor appendProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Append(appendProcessor); @@ -331,7 +332,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); + SingleOrManySerializationHelper.Serialize(ValueValue, writer, options); writer.WriteEndObject(); } } @@ -568,7 +569,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); + SingleOrManySerializationHelper.Serialize(ValueValue, writer, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs index f311c327dd7..e0c64014ac1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs @@ -71,6 +71,16 @@ public sealed partial class DotExpanderProcessor [JsonInclude, JsonPropertyName("on_failure")] public ICollection? OnFailure { get; set; } + /// + /// + /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. + /// When false, the processor will merge conflicts by combining the old and the new values into an array. + /// When true, the value from the expanded field will overwrite the existing value. + /// + /// + [JsonInclude, JsonPropertyName("override")] + public bool? Override { get; set; } + /// /// /// The field that contains the field to expand. @@ -108,6 +118,7 @@ public DotExpanderProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action> OnFailureDescriptorAction { get; set; } private Action>[] OnFailureDescriptorActions { get; set; } + private bool? OverrideValue { get; set; } private string? PathValue { get; set; } private string? TagValue { get; set; } @@ -222,6 +233,19 @@ public DotExpanderProcessorDescriptor OnFailure(params Action + /// + /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. + /// When false, the processor will merge conflicts by combining the old and the new values into an array. + /// When true, the value from the expanded field will overwrite the existing value. + /// + /// + public DotExpanderProcessorDescriptor Override(bool? value = true) + { + OverrideValue = value; + return Self; + } + /// /// /// The field that contains the field to expand. @@ -300,6 +324,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (OverrideValue.HasValue) + { + writer.WritePropertyName("override"); + writer.WriteBooleanValue(OverrideValue.Value); + } + if (!string.IsNullOrEmpty(PathValue)) { writer.WritePropertyName("path"); @@ -332,6 +362,7 @@ public DotExpanderProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action OnFailureDescriptorAction { get; set; } private Action[] OnFailureDescriptorActions { get; set; } + private bool? OverrideValue { get; set; } private string? PathValue { get; set; } private string? TagValue { get; set; } @@ -446,6 +477,19 @@ public DotExpanderProcessorDescriptor OnFailure(params Action + /// + /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. + /// When false, the processor will merge conflicts by combining the old and the new values into an array. + /// When true, the value from the expanded field will overwrite the existing value. + /// + /// + public DotExpanderProcessorDescriptor Override(bool? value = true) + { + OverrideValue = value; + return Self; + } + /// /// /// The field that contains the field to expand. @@ -524,6 +568,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (OverrideValue.HasValue) + { + writer.WritePropertyName("override"); + writer.WriteBooleanValue(OverrideValue.Value); + } + if (!string.IsNullOrEmpty(PathValue)) { writer.WritePropertyName("path"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs new file mode 100644 index 00000000000..869d5a103e6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs @@ -0,0 +1,1010 @@ +// 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.Ingest; + +public sealed partial class GeoGridProcessor +{ + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("children_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? ChildrenField { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// The field to interpret as a geo-tile.= + /// The field format is determined by the tile_type. + /// + /// + [JsonInclude, JsonPropertyName("field")] + public string Field { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("non_children_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? NonChildrenField { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + [JsonInclude, JsonPropertyName("parent_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? ParentField { get; set; } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + [JsonInclude, JsonPropertyName("precision_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? PrecisionField { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } + + /// + /// + /// Which format to save the generated polygon in. + /// + /// + [JsonInclude, JsonPropertyName("target_format")] + public Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? TargetFormat { get; set; } + + /// + /// + /// Three tile formats are understood: geohash, geotile and geohex. + /// + /// + [JsonInclude, JsonPropertyName("tile_type")] + public Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType TileType { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(GeoGridProcessor geoGridProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.GeoGrid(geoGridProcessor); +} + +public sealed partial class GeoGridProcessorDescriptor : SerializableDescriptor> +{ + internal GeoGridProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public GeoGridProcessorDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Field? ChildrenFieldValue { get; set; } + private string? DescriptionValue { get; set; } + private string FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? NonChildrenFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? ParentFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? PrecisionFieldValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? TargetFormatValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType TileTypeValue { get; set; } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public GeoGridProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to interpret as a geo-tile.= + /// The field format is determined by the tile_type. + /// + /// + public GeoGridProcessorDescriptor Field(string field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public GeoGridProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public GeoGridProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public GeoGridProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public GeoGridProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Elastic.Clients.Elasticsearch.Serverless.Field? parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Elastic.Clients.Elasticsearch.Serverless.Field? precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public GeoGridProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Which format to save the generated polygon in. + /// + /// + public GeoGridProcessorDescriptor TargetFormat(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? targetFormat) + { + TargetFormatValue = targetFormat; + return Self; + } + + /// + /// + /// Three tile formats are understood: geohash, geotile and geohex. + /// + /// + public GeoGridProcessorDescriptor TileType(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType tileType) + { + TileTypeValue = tileType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChildrenFieldValue is not null) + { + writer.WritePropertyName("children_field"); + JsonSerializer.Serialize(writer, ChildrenFieldValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (NonChildrenFieldValue is not null) + { + writer.WritePropertyName("non_children_field"); + JsonSerializer.Serialize(writer, NonChildrenFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (ParentFieldValue is not null) + { + writer.WritePropertyName("parent_field"); + JsonSerializer.Serialize(writer, ParentFieldValue, options); + } + + if (PrecisionFieldValue is not null) + { + writer.WritePropertyName("precision_field"); + JsonSerializer.Serialize(writer, PrecisionFieldValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TargetFormatValue is not null) + { + writer.WritePropertyName("target_format"); + JsonSerializer.Serialize(writer, TargetFormatValue, options); + } + + writer.WritePropertyName("tile_type"); + JsonSerializer.Serialize(writer, TileTypeValue, options); + writer.WriteEndObject(); + } +} + +public sealed partial class GeoGridProcessorDescriptor : SerializableDescriptor +{ + internal GeoGridProcessorDescriptor(Action configure) => configure.Invoke(this); + + public GeoGridProcessorDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Field? ChildrenFieldValue { get; set; } + private string? DescriptionValue { get; set; } + private string FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? NonChildrenFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? ParentFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? PrecisionFieldValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? TargetFormatValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType TileTypeValue { get; set; } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public GeoGridProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to interpret as a geo-tile.= + /// The field format is determined by the tile_type. + /// + /// + public GeoGridProcessorDescriptor Field(string field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public GeoGridProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public GeoGridProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public GeoGridProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public GeoGridProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Elastic.Clients.Elasticsearch.Serverless.Field? parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Elastic.Clients.Elasticsearch.Serverless.Field? precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public GeoGridProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Which format to save the generated polygon in. + /// + /// + public GeoGridProcessorDescriptor TargetFormat(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? targetFormat) + { + TargetFormatValue = targetFormat; + return Self; + } + + /// + /// + /// Three tile formats are understood: geohash, geotile and geohex. + /// + /// + public GeoGridProcessorDescriptor TileType(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType tileType) + { + TileTypeValue = tileType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChildrenFieldValue is not null) + { + writer.WritePropertyName("children_field"); + JsonSerializer.Serialize(writer, ChildrenFieldValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (NonChildrenFieldValue is not null) + { + writer.WritePropertyName("non_children_field"); + JsonSerializer.Serialize(writer, NonChildrenFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (ParentFieldValue is not null) + { + writer.WritePropertyName("parent_field"); + JsonSerializer.Serialize(writer, ParentFieldValue, options); + } + + if (PrecisionFieldValue is not null) + { + writer.WritePropertyName("precision_field"); + JsonSerializer.Serialize(writer, PrecisionFieldValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TargetFormatValue is not null) + { + writer.WritePropertyName("target_format"); + JsonSerializer.Serialize(writer, TargetFormatValue, options); + } + + writer.WritePropertyName("tile_type"); + JsonSerializer.Serialize(writer, TileTypeValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs index 0a7368724f1..7cb501b0299 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs @@ -46,6 +46,15 @@ public sealed partial class GeoIpProcessor [JsonInclude, JsonPropertyName("description")] public string? Description { get; set; } + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + [JsonInclude, JsonPropertyName("download_database_on_pipeline_creation")] + public bool? DownloadDatabaseOnPipelineCreation { get; set; } + /// /// /// The field to get the ip address from for the geographical lookup. @@ -132,6 +141,7 @@ public GeoIpProcessorDescriptor() : base() private string? DatabaseFileValue { get; set; } private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private bool? FirstOnlyValue { get; set; } private string? IfValue { get; set; } @@ -168,6 +178,18 @@ public GeoIpProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public GeoIpProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + /// /// /// The field to get the ip address from for the geographical lookup. @@ -357,6 +379,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (FirstOnlyValue.HasValue) @@ -446,6 +474,7 @@ public GeoIpProcessorDescriptor() : base() private string? DatabaseFileValue { get; set; } private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private bool? FirstOnlyValue { get; set; } private string? IfValue { get; set; } @@ -482,6 +511,18 @@ public GeoIpProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public GeoIpProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + /// /// /// The field to get the ip address from for the geographical lookup. @@ -671,6 +712,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (FirstOnlyValue.HasValue) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs index 617925202ea..7cbfd0a3e85 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs @@ -29,6 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; public sealed partial class Pipeline { + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; set; } + /// /// /// Description of the ingest pipeline. @@ -79,6 +88,7 @@ public PipelineDescriptor() : base() { } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -91,6 +101,18 @@ public PipelineDescriptor() : base() private Action>[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PipelineDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -210,6 +232,12 @@ public PipelineDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); @@ -302,6 +330,7 @@ public PipelineDescriptor() : base() { } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -314,6 +343,18 @@ public PipelineDescriptor() : base() private Action[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PipelineDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -433,6 +474,12 @@ public PipelineDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs index 2480b2f8bca..e55af2cc02a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs @@ -60,6 +60,7 @@ internal Processor(string variantName, object variant) public static Processor Enrich(Elastic.Clients.Elasticsearch.Serverless.Ingest.EnrichProcessor enrichProcessor) => new Processor("enrich", enrichProcessor); public static Processor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => new Processor("fail", failProcessor); public static Processor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => new Processor("foreach", foreachProcessor); + public static Processor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => new Processor("geo_grid", geoGridProcessor); public static Processor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => new Processor("geoip", geoIpProcessor); public static Processor Grok(Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor grokProcessor) => new Processor("grok", grokProcessor); public static Processor Gsub(Elastic.Clients.Elasticsearch.Serverless.Ingest.GsubProcessor gsubProcessor) => new Processor("gsub", gsubProcessor); @@ -70,6 +71,7 @@ internal Processor(string variantName, object variant) public static Processor Kv(Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); public static Processor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => new Processor("lowercase", lowercaseProcessor); public static Processor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => new Processor("pipeline", pipelineProcessor); + public static Processor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => new Processor("redact", redactProcessor); public static Processor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => new Processor("remove", removeProcessor); public static Processor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => new Processor("rename", renameProcessor); public static Processor Reroute(Elastic.Clients.Elasticsearch.Serverless.Ingest.RerouteProcessor rerouteProcessor) => new Processor("reroute", rerouteProcessor); @@ -220,6 +222,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "geo_grid") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "geoip") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -290,6 +299,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "redact") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "remove") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -438,6 +454,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "foreach": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor)value.Variant, options); break; + case "geo_grid": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor)value.Variant, options); + break; case "geoip": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor)value.Variant, options); break; @@ -468,6 +487,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "pipeline": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor)value.Variant, options); break; + case "redact": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor)value.Variant, options); + break; case "remove": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor)value.Variant, options); break; @@ -573,6 +595,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Fail(Action> configure) => Set(configure, "fail"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action> configure) => Set(configure, "foreach"); + public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); + public ProcessorDescriptor GeoGrid(Action> configure) => Set(configure, "geo_grid"); public ProcessorDescriptor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => Set(geoIpProcessor, "geoip"); public ProcessorDescriptor Geoip(Action> configure) => Set(configure, "geoip"); public ProcessorDescriptor Grok(Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor grokProcessor) => Set(grokProcessor, "grok"); @@ -593,6 +617,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Lowercase(Action> configure) => Set(configure, "lowercase"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action> configure) => Set(configure, "pipeline"); + public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); + public ProcessorDescriptor Redact(Action> configure) => Set(configure, "redact"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action> configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); @@ -699,6 +725,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Fail(Action configure) => Set(configure, "fail"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action configure) => Set(configure, "foreach"); + public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); + public ProcessorDescriptor GeoGrid(Action configure) => Set(configure, "geo_grid"); public ProcessorDescriptor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => Set(geoIpProcessor, "geoip"); public ProcessorDescriptor Geoip(Action configure) => Set(configure, "geoip"); public ProcessorDescriptor Grok(Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor grokProcessor) => Set(grokProcessor, "grok"); @@ -719,6 +747,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Lowercase(Action configure) => Set(configure, "lowercase"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action configure) => Set(configure, "pipeline"); + public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); + public ProcessorDescriptor Redact(Action configure) => Set(configure, "redact"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs new file mode 100644 index 00000000000..34389a4e009 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs @@ -0,0 +1,727 @@ +// 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.Ingest; + +public sealed partial class RedactProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// The field to be redacted + /// + /// + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and field does not exist or is null, the processor quietly exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + [JsonInclude, JsonPropertyName("pattern_definitions")] + public IDictionary? PatternDefinitions { get; set; } + + /// + /// + /// A list of grok expressions to match and redact named captures with + /// + /// + [JsonInclude, JsonPropertyName("patterns")] + public ICollection Patterns { get; set; } + + /// + /// + /// Start a redacted section with this token + /// + /// + [JsonInclude, JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// + /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document + /// + /// + [JsonInclude, JsonPropertyName("skip_if_unlicensed")] + public bool? SkipIfUnlicensed { get; set; } + + /// + /// + /// End a redacted section with this token + /// + /// + [JsonInclude, JsonPropertyName("suffix")] + public string? Suffix { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RedactProcessor redactProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Redact(redactProcessor); +} + +public sealed partial class RedactProcessorDescriptor : SerializableDescriptor> +{ + internal RedactProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public RedactProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private IDictionary? PatternDefinitionsValue { get; set; } + private ICollection PatternsValue { get; set; } + private string? PrefixValue { get; set; } + private bool? SkipIfUnlicensedValue { get; set; } + private string? SuffixValue { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RedactProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RedactProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RedactProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist or is null, the processor quietly exits without modifying the document. + /// + /// + public RedactProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RedactProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + public RedactProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) + { + PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// A list of grok expressions to match and redact named captures with + /// + /// + public RedactProcessorDescriptor Patterns(ICollection patterns) + { + PatternsValue = patterns; + return Self; + } + + /// + /// + /// Start a redacted section with this token + /// + /// + public RedactProcessorDescriptor Prefix(string? prefix) + { + PrefixValue = prefix; + return Self; + } + + /// + /// + /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document + /// + /// + public RedactProcessorDescriptor SkipIfUnlicensed(bool? skipIfUnlicensed = true) + { + SkipIfUnlicensedValue = skipIfUnlicensed; + return Self; + } + + /// + /// + /// End a redacted section with this token + /// + /// + public RedactProcessorDescriptor Suffix(string? suffix) + { + SuffixValue = suffix; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RedactProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PatternDefinitionsValue is not null) + { + writer.WritePropertyName("pattern_definitions"); + JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); + } + + writer.WritePropertyName("patterns"); + JsonSerializer.Serialize(writer, PatternsValue, options); + if (!string.IsNullOrEmpty(PrefixValue)) + { + writer.WritePropertyName("prefix"); + writer.WriteStringValue(PrefixValue); + } + + if (SkipIfUnlicensedValue.HasValue) + { + writer.WritePropertyName("skip_if_unlicensed"); + writer.WriteBooleanValue(SkipIfUnlicensedValue.Value); + } + + if (!string.IsNullOrEmpty(SuffixValue)) + { + writer.WritePropertyName("suffix"); + writer.WriteStringValue(SuffixValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class RedactProcessorDescriptor : SerializableDescriptor +{ + internal RedactProcessorDescriptor(Action configure) => configure.Invoke(this); + + public RedactProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private IDictionary? PatternDefinitionsValue { get; set; } + private ICollection PatternsValue { get; set; } + private string? PrefixValue { get; set; } + private bool? SkipIfUnlicensedValue { get; set; } + private string? SuffixValue { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RedactProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RedactProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RedactProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist or is null, the processor quietly exits without modifying the document. + /// + /// + public RedactProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RedactProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + public RedactProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) + { + PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// A list of grok expressions to match and redact named captures with + /// + /// + public RedactProcessorDescriptor Patterns(ICollection patterns) + { + PatternsValue = patterns; + return Self; + } + + /// + /// + /// Start a redacted section with this token + /// + /// + public RedactProcessorDescriptor Prefix(string? prefix) + { + PrefixValue = prefix; + return Self; + } + + /// + /// + /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document + /// + /// + public RedactProcessorDescriptor SkipIfUnlicensed(bool? skipIfUnlicensed = true) + { + SkipIfUnlicensedValue = skipIfUnlicensed; + return Self; + } + + /// + /// + /// End a redacted section with this token + /// + /// + public RedactProcessorDescriptor Suffix(string? suffix) + { + SuffixValue = suffix; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RedactProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PatternDefinitionsValue is not null) + { + writer.WritePropertyName("pattern_definitions"); + JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); + } + + writer.WritePropertyName("patterns"); + JsonSerializer.Serialize(writer, PatternsValue, options); + if (!string.IsNullOrEmpty(PrefixValue)) + { + writer.WritePropertyName("prefix"); + writer.WriteStringValue(PrefixValue); + } + + if (SkipIfUnlicensedValue.HasValue) + { + writer.WritePropertyName("skip_if_unlicensed"); + writer.WriteBooleanValue(SkipIfUnlicensedValue.Value); + } + + if (!string.IsNullOrEmpty(SuffixValue)) + { + writer.WritePropertyName("suffix"); + writer.WriteStringValue(SuffixValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs index de8974bf964..d3686cd1ac9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs @@ -38,6 +38,14 @@ public sealed partial class UserAgentProcessor [JsonInclude, JsonPropertyName("description")] public string? Description { get; set; } + /// + /// + /// Extracts device type from the user agent string on a best-effort basis. + /// + /// + [JsonInclude, JsonPropertyName("extract_device_type")] + public bool? ExtractDeviceType { get; set; } + /// /// /// The field containing the user agent string. @@ -77,8 +85,14 @@ public sealed partial class UserAgentProcessor /// [JsonInclude, JsonPropertyName("on_failure")] public ICollection? OnFailure { get; set; } - [JsonInclude, JsonPropertyName("options")] - public ICollection? Options { get; set; } + + /// + /// + /// Controls what properties are added to target_field. + /// + /// + [JsonInclude, JsonPropertyName("properties")] + public ICollection? Properties { get; set; } /// /// @@ -117,6 +131,7 @@ public UserAgentProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private bool? ExtractDeviceTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -125,7 +140,7 @@ public UserAgentProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action> OnFailureDescriptorAction { get; set; } private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? OptionsValue { get; set; } + private ICollection? PropertiesValue { get; set; } private string? RegexFileValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } @@ -142,6 +157,17 @@ public UserAgentProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Extracts device type from the user agent string on a best-effort basis. + /// + /// + public UserAgentProcessorDescriptor ExtractDeviceType(bool? extractDeviceType = true) + { + ExtractDeviceTypeValue = extractDeviceType; + return Self; + } + /// /// /// The field containing the user agent string. @@ -249,9 +275,14 @@ public UserAgentProcessorDescriptor OnFailure(params Action Options(ICollection? options) + /// + /// + /// Controls what properties are added to target_field. + /// + /// + public UserAgentProcessorDescriptor Properties(ICollection? properties) { - OptionsValue = options; + PropertiesValue = properties; return Self; } @@ -320,6 +351,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (ExtractDeviceTypeValue.HasValue) + { + writer.WritePropertyName("extract_device_type"); + writer.WriteBooleanValue(ExtractDeviceTypeValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) @@ -371,10 +408,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } - if (OptionsValue is not null) + if (PropertiesValue is not null) { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); } if (!string.IsNullOrEmpty(RegexFileValue)) @@ -408,6 +445,7 @@ public UserAgentProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private bool? ExtractDeviceTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -416,7 +454,7 @@ public UserAgentProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action OnFailureDescriptorAction { get; set; } private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? OptionsValue { get; set; } + private ICollection? PropertiesValue { get; set; } private string? RegexFileValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } @@ -433,6 +471,17 @@ public UserAgentProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Extracts device type from the user agent string on a best-effort basis. + /// + /// + public UserAgentProcessorDescriptor ExtractDeviceType(bool? extractDeviceType = true) + { + ExtractDeviceTypeValue = extractDeviceType; + return Self; + } + /// /// /// The field containing the user agent string. @@ -540,9 +589,14 @@ public UserAgentProcessorDescriptor OnFailure(params Action? options) + /// + /// + /// Controls what properties are added to target_field. + /// + /// + public UserAgentProcessorDescriptor Properties(ICollection? properties) { - OptionsValue = options; + PropertiesValue = properties; return Self; } @@ -611,6 +665,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (ExtractDeviceTypeValue.HasValue) + { + writer.WritePropertyName("extract_device_type"); + writer.WriteBooleanValue(ExtractDeviceTypeValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) @@ -662,10 +722,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } - if (OptionsValue is not null) + if (PropertiesValue is not null) { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); } if (!string.IsNullOrEmpty(RegexFileValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs index 8b324a0c0c8..1adb1897de4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs @@ -55,6 +55,30 @@ public sealed partial class CalendarEvent [JsonInclude, JsonPropertyName("event_id")] public Elastic.Clients.Elasticsearch.Serverless.Id? EventId { get; set; } + /// + /// + /// Shift time by this many seconds. For example adjust time for daylight savings changes + /// + /// + [JsonInclude, JsonPropertyName("force_time_shift")] + public int? ForceTimeShift { get; set; } + + /// + /// + /// When true the model will not be updated for this calendar period. + /// + /// + [JsonInclude, JsonPropertyName("skip_model_update")] + public bool? SkipModelUpdate { get; set; } + + /// + /// + /// When true the model will not create results for this calendar period. + /// + /// + [JsonInclude, JsonPropertyName("skip_result")] + public bool? SkipResult { get; set; } + /// /// /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. @@ -76,6 +100,9 @@ public CalendarEventDescriptor() : base() private string DescriptionValue { get; set; } private DateTimeOffset EndTimeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Id? EventIdValue { get; set; } + private int? ForceTimeShiftValue { get; set; } + private bool? SkipModelUpdateValue { get; set; } + private bool? SkipResultValue { get; set; } private DateTimeOffset StartTimeValue { get; set; } /// @@ -117,6 +144,39 @@ public CalendarEventDescriptor EventId(Elastic.Clients.Elasticsearch.Serverless. return Self; } + /// + /// + /// Shift time by this many seconds. For example adjust time for daylight savings changes + /// + /// + public CalendarEventDescriptor ForceTimeShift(int? forceTimeShift) + { + ForceTimeShiftValue = forceTimeShift; + return Self; + } + + /// + /// + /// When true the model will not be updated for this calendar period. + /// + /// + public CalendarEventDescriptor SkipModelUpdate(bool? skipModelUpdate = true) + { + SkipModelUpdateValue = skipModelUpdate; + return Self; + } + + /// + /// + /// When true the model will not create results for this calendar period. + /// + /// + public CalendarEventDescriptor SkipResult(bool? skipResult = true) + { + SkipResultValue = skipResult; + return Self; + } + /// /// /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. @@ -147,6 +207,24 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, EventIdValue, options); } + if (ForceTimeShiftValue.HasValue) + { + writer.WritePropertyName("force_time_shift"); + writer.WriteNumberValue(ForceTimeShiftValue.Value); + } + + if (SkipModelUpdateValue.HasValue) + { + writer.WritePropertyName("skip_model_update"); + writer.WriteBooleanValue(SkipModelUpdateValue.Value); + } + + if (SkipResultValue.HasValue) + { + writer.WritePropertyName("skip_result"); + writer.WriteBooleanValue(SkipResultValue.Value); + } + writer.WritePropertyName("start_time"); JsonSerializer.Serialize(writer, StartTimeValue, options); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs index d9f682addf5..571b619d95b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs @@ -130,7 +130,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentState State { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAssignmentState State { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs index c3ded8fb693..b28e2cb4305 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs @@ -50,8 +50,6 @@ public sealed partial class BinaryProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -74,7 +72,6 @@ public BinaryPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -152,12 +149,6 @@ public BinaryPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public BinaryPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -209,12 +200,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -235,7 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -255,7 +239,6 @@ public BinaryPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -333,12 +316,6 @@ public BinaryPropertyDescriptor Properties(Action? MetaValue { get; set; } private bool? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) @@ -208,12 +205,6 @@ public BooleanPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public BooleanPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -299,12 +290,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -353,7 +338,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -379,7 +363,6 @@ public BooleanPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private bool? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) @@ -499,12 +482,6 @@ public BooleanPropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ByteNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public ByteNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ByteNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public ByteNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ByteNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public ByteNumberPropertyDescriptor Script(Action Analyzer(string? analyzer) @@ -239,12 +236,6 @@ public CompletionPropertyDescriptor SearchAnalyzer(string? searchAnal return Self; } - public CompletionPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public CompletionPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -357,12 +348,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -413,7 +398,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -442,7 +426,6 @@ public CompletionPropertyDescriptor() : base() private bool? PreserveSeparatorsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private string? SearchAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public CompletionPropertyDescriptor Analyzer(string? analyzer) @@ -586,12 +569,6 @@ public CompletionPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) return Self; } - public CompletionPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public CompletionPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -704,12 +681,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -760,7 +731,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs new file mode 100644 index 00000000000..a0d3725ffa7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs @@ -0,0 +1,59 @@ +// 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.Mapping; + +public sealed partial class CompositeSubField +{ + [JsonInclude, JsonPropertyName("type")] + public Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType Type { get; set; } +} + +public sealed partial class CompositeSubFieldDescriptor : SerializableDescriptor +{ + internal CompositeSubFieldDescriptor(Action configure) => configure.Invoke(this); + + public CompositeSubFieldDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType TypeValue { get; set; } + + public CompositeSubFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + JsonSerializer.Serialize(writer, TypeValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs index c41e1563ea2..9cc89e12a5b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs @@ -62,8 +62,6 @@ public sealed partial class DateNanosProperty : IProperty public int? PrecisionStep { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -92,7 +90,6 @@ public DateNanosPropertyDescriptor() : base() private DateTimeOffset? NullValueValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateNanosPropertyDescriptor Boost(double? boost) @@ -206,12 +203,6 @@ public DateNanosPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DateNanosPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -299,12 +290,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -331,7 +316,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -357,7 +341,6 @@ public DateNanosPropertyDescriptor() : base() private DateTimeOffset? NullValueValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateNanosPropertyDescriptor Boost(double? boost) @@ -471,12 +454,6 @@ public DateNanosPropertyDescriptor Properties(Action Boost(double? boost) @@ -244,12 +241,6 @@ public DatePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DatePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -359,12 +350,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -417,7 +402,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -447,7 +431,6 @@ public DatePropertyDescriptor() : base() private DateTimeOffset? NullValueValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DatePropertyDescriptor Boost(double? boost) @@ -591,12 +574,6 @@ public DatePropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -86,7 +84,6 @@ public DateRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateRangePropertyDescriptor Boost(double? boost) @@ -188,12 +185,6 @@ public DateRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DateRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -269,12 +260,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -299,7 +284,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -323,7 +307,6 @@ public DateRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateRangePropertyDescriptor Boost(double? boost) @@ -425,12 +408,6 @@ public DateRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DoubleNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public DoubleNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DoubleNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public DoubleNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DoubleNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public DoubleNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public DoubleRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DoubleRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public DoubleRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DoubleRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public DoubleRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DoubleRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public DoubleRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -378,12 +375,6 @@ public DynamicPropertyDescriptor SearchQuoteAnalyzer(string? searchQu return Self; } - public DynamicPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DynamicPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -587,12 +578,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchQuoteAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -693,7 +678,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Script = BuildScript(), SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -739,7 +723,6 @@ public DynamicPropertyDescriptor() : base() private Action ScriptDescriptorAction { get; set; } private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -975,12 +958,6 @@ public DynamicPropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer return Self; } - public DynamicPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DynamicPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -1184,12 +1161,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchQuoteAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -1290,7 +1261,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Script = BuildScript(), SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue 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 680f6acc55b..209758f348f 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 @@ -64,8 +64,6 @@ public sealed partial class FloatNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -97,7 +95,6 @@ public FloatNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public FloatNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public FloatNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public FloatNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public FloatNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public FloatNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public FloatNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public FloatRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public FloatRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public FloatRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public FloatRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public FloatRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public FloatRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public FloatRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -226,12 +223,6 @@ public GeoPointPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public GeoPointPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -329,12 +320,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -385,7 +370,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -413,7 +397,6 @@ public GeoPointPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -545,12 +528,6 @@ public GeoPointPropertyDescriptor Script(Action? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? StrategyValue { get; set; } @@ -205,12 +202,6 @@ public GeoShapePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public GeoShapePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -292,12 +283,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -328,7 +313,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue, Strategy = StrategyValue }; @@ -360,7 +344,6 @@ public GeoShapePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? StrategyValue { get; set; } @@ -463,12 +446,6 @@ public GeoShapePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public HalfFloatNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public HalfFloatNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public HalfFloatNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public HalfFloatNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public HalfFloatNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public HalfFloatNumberPropertyDescriptor Script(Action Rules(string? rules) return Self; } - public IcuCollationPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IcuCollationPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -454,12 +445,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(RulesValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -511,7 +496,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Numeric = NumericValue, Properties = PropertiesValue, Rules = RulesValue, - Similarity = SimilarityValue, Store = StoreValue, Strength = StrengthValue, VariableTop = VariableTopValue, @@ -547,7 +531,6 @@ public IcuCollationPropertyDescriptor() : base() private bool? NumericValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } private string? RulesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? StrengthValue { get; set; } private string? VariableTopValue { get; set; } @@ -716,12 +699,6 @@ public IcuCollationPropertyDescriptor Rules(string? rules) return Self; } - public IcuCollationPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IcuCollationPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -869,12 +846,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(RulesValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -926,7 +897,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Numeric = NumericValue, Properties = PropertiesValue, Rules = RulesValue, - Similarity = SimilarityValue, Store = StoreValue, Strength = StrengthValue, VariableTop = VariableTopValue, 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 079db51b6fd..508c776da51 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 @@ -64,8 +64,6 @@ public sealed partial class IntegerNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -97,7 +95,6 @@ public IntegerNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IntegerNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public IntegerNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IntegerNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public IntegerNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IntegerNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public IntegerNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public IntegerRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IntegerRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public IntegerRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IntegerRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public IntegerRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IntegerRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public IntegerRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IpPropertyDescriptor Boost(double? boost) @@ -226,12 +223,6 @@ public IpPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IpPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -329,12 +320,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -385,7 +370,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -413,7 +397,6 @@ public IpPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IpPropertyDescriptor Boost(double? boost) @@ -545,12 +528,6 @@ public IpPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public IpRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IpRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public IpRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IpRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public IpRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IpRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public IpRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public LongNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public LongNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public LongNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public LongNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public LongNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public LongNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public LongRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public LongRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public LongRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public LongRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public LongRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public LongRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public LongRangePropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -74,7 +72,6 @@ public Murmur3HashPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -152,12 +149,6 @@ public Murmur3HashPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public Murmur3HashPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -209,12 +200,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -235,7 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -255,7 +239,6 @@ public Murmur3HashPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -333,12 +316,6 @@ public Murmur3HashPropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -80,7 +78,6 @@ public NestedPropertyDescriptor() : base() private bool? IncludeInRootValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -170,12 +167,6 @@ public NestedPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public NestedPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -239,12 +230,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -267,7 +252,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IncludeInRoot = IncludeInRootValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -289,7 +273,6 @@ public NestedPropertyDescriptor() : base() private bool? IncludeInRootValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -379,12 +362,6 @@ public NestedPropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } [JsonInclude, JsonPropertyName("subobjects")] @@ -76,7 +74,6 @@ public ObjectPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? SubobjectsValue { get; set; } @@ -155,12 +152,6 @@ public ObjectPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ObjectPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -218,12 +209,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -250,7 +235,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue, Subobjects = SubobjectsValue }; @@ -271,7 +255,6 @@ public ObjectPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? SubobjectsValue { get; set; } @@ -350,12 +333,6 @@ public ObjectPropertyDescriptor Properties(Action? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -179,12 +176,6 @@ public PointPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public PointPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public PointPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -402,12 +385,6 @@ public PointPropertyDescriptor Properties(Action? FetchFields { get; set; } + /// + /// + /// For type composite + /// + /// + [JsonInclude, JsonPropertyName("fields")] + public IDictionary? Fields { get; set; } + /// /// /// A custom format for date type runtime fields. @@ -98,6 +106,7 @@ public RuntimeFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor FetchFieldsDescriptor { get; set; } private Action> FetchFieldsDescriptorAction { get; set; } private Action>[] FetchFieldsDescriptorActions { get; set; } + private IDictionary FieldsValue { get; set; } private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? InputFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } @@ -148,6 +157,17 @@ public RuntimeFieldDescriptor FetchFields(params Action + /// + /// For type composite + /// + /// + public RuntimeFieldDescriptor Fields(Func, FluentDescriptorDictionary> selector) + { + FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + /// /// /// A custom format for date type runtime fields. @@ -310,6 +330,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FetchFieldsValue, options); } + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + if (!string.IsNullOrEmpty(FormatValue)) { writer.WritePropertyName("format"); @@ -368,6 +394,7 @@ public RuntimeFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor FetchFieldsDescriptor { get; set; } private Action FetchFieldsDescriptorAction { get; set; } private Action[] FetchFieldsDescriptorActions { get; set; } + private IDictionary FieldsValue { get; set; } private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? InputFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } @@ -418,6 +445,17 @@ public RuntimeFieldDescriptor FetchFields(params Action + /// + /// For type composite + /// + /// + public RuntimeFieldDescriptor Fields(Func, FluentDescriptorDictionary> selector) + { + FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + /// /// /// A custom format for date type runtime fields. @@ -580,6 +618,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FetchFieldsValue, options); } + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + if (!string.IsNullOrEmpty(FormatValue)) { writer.WritePropertyName("format"); 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 343a9aaa7fd..2f3f8288c6f 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 @@ -66,8 +66,6 @@ public sealed partial class ScaledFloatNumberProperty : IProperty public double? ScalingFactor { get; set; } [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -100,7 +98,6 @@ public ScaledFloatNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ScaledFloatNumberPropertyDescriptor Boost(double? boost) @@ -244,12 +241,6 @@ public ScaledFloatNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ScaledFloatNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -359,12 +350,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -417,7 +402,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -447,7 +431,6 @@ public ScaledFloatNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ScaledFloatNumberPropertyDescriptor Boost(double? boost) @@ -591,12 +574,6 @@ public ScaledFloatNumberPropertyDescriptor Script(Action? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ShapePropertyDescriptor Coerce(bool? coerce = true) @@ -202,12 +199,6 @@ public ShapePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ShapePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -283,12 +274,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -313,7 +298,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -344,7 +328,6 @@ public ShapePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ShapePropertyDescriptor Coerce(bool? coerce = true) @@ -446,12 +429,6 @@ public ShapePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ShortNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public ShortNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ShortNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public ShortNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ShortNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public ShortNumberPropertyDescriptor Script(Action? MetaValue { get; set; } private double? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public TokenCountPropertyDescriptor Analyzer(string? analyzer) @@ -197,12 +194,6 @@ public TokenCountPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public TokenCountPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -284,12 +275,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -315,7 +300,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -340,7 +324,6 @@ public TokenCountPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public TokenCountPropertyDescriptor Analyzer(string? analyzer) @@ -448,12 +431,6 @@ public TokenCountPropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public UnsignedLongNumberPropertyDescriptor Boost(double? boost) @@ -235,12 +232,6 @@ public UnsignedLongNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public UnsignedLongNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -344,12 +335,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -401,7 +386,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -430,7 +414,6 @@ public UnsignedLongNumberPropertyDescriptor() : 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? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public UnsignedLongNumberPropertyDescriptor Boost(double? boost) @@ -568,12 +551,6 @@ public UnsignedLongNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -74,7 +72,6 @@ public VersionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -152,12 +149,6 @@ public VersionPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public VersionPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -209,12 +200,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -235,7 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -255,7 +239,6 @@ public VersionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -333,12 +316,6 @@ public VersionPropertyDescriptor Properties(Action? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -161,12 +158,6 @@ public WildcardPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public WildcardPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -224,12 +215,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -251,7 +236,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -272,7 +256,6 @@ public WildcardPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) @@ -356,12 +339,6 @@ public WildcardPropertyDescriptor Properties(Action /// [JsonInclude, JsonPropertyName("pipelines")] - public IReadOnlyDictionary? Pipelines { get; init; } + public IReadOnlyDictionary? Pipelines { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs new file mode 100644 index 00000000000..14f02675ad2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs @@ -0,0 +1,92 @@ +// 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.Nodes; + +public sealed partial class IngestStats +{ + /// + /// + /// Total number of documents ingested during the lifetime of this node. + /// + /// + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + + /// + /// + /// Total number of documents currently being ingested. + /// + /// + [JsonInclude, JsonPropertyName("current")] + public long Current { get; init; } + + /// + /// + /// Total number of failed ingest operations during the lifetime of this node. + /// + /// + [JsonInclude, JsonPropertyName("failed")] + public long Failed { get; init; } + + /// + /// + /// Total number of bytes of all documents ingested by the pipeline. + /// This field is only present on pipelines which are the first to process a document. + /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. + /// + /// + [JsonInclude, JsonPropertyName("ingested_as_first_pipeline_in_bytes")] + public long IngestedAsFirstPipelineInBytes { get; init; } + + /// + /// + /// Total number of ingest processors. + /// + /// + [JsonInclude, JsonPropertyName("processors")] + public IReadOnlyCollection> Processors { get; init; } + + /// + /// + /// Total number of bytes of all documents produced by the pipeline. + /// This field is only present on pipelines which are the first to process a document. + /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. + /// In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run. + /// + /// + [JsonInclude, JsonPropertyName("produced_as_first_pipeline_in_bytes")] + public long ProducedAsFirstPipelineInBytes { get; init; } + + /// + /// + /// Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node. + /// + /// + [JsonInclude, JsonPropertyName("time_in_millis")] + public long TimeInMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs index 28969d1c701..353d8167d58 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs @@ -35,7 +35,7 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } + public long Count { get; init; } /// /// @@ -43,7 +43,7 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("current")] - public long? Current { get; init; } + public long Current { get; init; } /// /// @@ -51,15 +51,7 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("failed")] - public long? Failed { get; init; } - - /// - /// - /// Total number of ingest processors. - /// - /// - [JsonInclude, JsonPropertyName("processors")] - public IReadOnlyCollection>? Processors { get; init; } + public long Failed { get; init; } /// /// @@ -67,5 +59,5 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("time_in_millis")] - public long? TimeInMillis { get; init; } + public long TimeInMillis { get; init; } } \ 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 64d06eaff47..8da1d26d0e4 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 @@ -48,6 +48,12 @@ public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert continue; } + if (property == "minimum_should_match") + { + variant.MinimumShouldMatch = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "minimum_should_match_field") { variant.MinimumShouldMatchField = JsonSerializer.Deserialize(ref reader, options); @@ -68,7 +74,7 @@ public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "terms") { - variant.Terms = JsonSerializer.Deserialize>(ref reader, options); + variant.Terms = JsonSerializer.Deserialize>(ref reader, options); continue; } } @@ -93,6 +99,12 @@ public override void Write(Utf8JsonWriter writer, TermsSetQuery value, JsonSeria writer.WriteNumberValue(value.Boost.Value); } + if (value.MinimumShouldMatch is not null) + { + writer.WritePropertyName("minimum_should_match"); + JsonSerializer.Serialize(writer, value.MinimumShouldMatch, options); + } + if (value.MinimumShouldMatchField is not null) { writer.WritePropertyName("minimum_should_match_field"); @@ -139,6 +151,13 @@ public TermsSetQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + /// + /// + /// Specification describing number of matching terms required to return a document. + /// + /// + public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } + /// /// /// Numeric field containing the number of matching terms required to return a document. @@ -159,7 +178,7 @@ public TermsSetQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// Array of terms you wish to find in the provided field. /// /// - public ICollection Terms { get; set; } + public ICollection Terms { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(TermsSetQuery termsSetQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.TermsSet(termsSetQuery); } @@ -174,12 +193,13 @@ public TermsSetQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { 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; } + private ICollection TermsValue { get; set; } /// /// @@ -213,6 +233,17 @@ public TermsSetQueryDescriptor Field(Expression + /// + /// Specification describing number of matching terms required to return a document. + /// + /// + public TermsSetQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) + { + MinimumShouldMatchValue = minimumShouldMatch; + return Self; + } + /// /// /// Numeric field containing the number of matching terms required to return a document. @@ -286,7 +317,7 @@ public TermsSetQueryDescriptor QueryName(string? queryName) /// Array of terms you wish to find in the provided field. /// /// - public TermsSetQueryDescriptor Terms(ICollection terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; @@ -305,6 +336,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } + if (MinimumShouldMatchValue is not null) + { + writer.WritePropertyName("minimum_should_match"); + JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); + } + if (MinimumShouldMatchFieldValue is not null) { writer.WritePropertyName("minimum_should_match_field"); @@ -350,12 +387,13 @@ public TermsSetQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { 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; } + private ICollection TermsValue { get; set; } /// /// @@ -389,6 +427,17 @@ public TermsSetQueryDescriptor Field(Expression + /// + /// Specification describing number of matching terms required to return a document. + /// + /// + public TermsSetQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) + { + MinimumShouldMatchValue = minimumShouldMatch; + return Self; + } + /// /// /// Numeric field containing the number of matching terms required to return a document. @@ -462,7 +511,7 @@ public TermsSetQueryDescriptor QueryName(string? queryName) /// Array of terms you wish to find in the provided field. /// /// - public TermsSetQueryDescriptor Terms(ICollection terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; @@ -481,6 +530,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } + if (MinimumShouldMatchValue is not null) + { + writer.WritePropertyName("minimum_should_match"); + JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); + } + if (MinimumShouldMatchFieldValue is not null) { writer.WritePropertyName("minimum_should_match_field"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Rank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Rank.g.cs deleted file mode 100644 index 1fa0ea7e982..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Rank.g.cs +++ /dev/null @@ -1,227 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -[JsonConverter(typeof(RankConverter))] -public sealed partial class Rank -{ - internal Rank(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Rank Rrf(Elastic.Clients.Elasticsearch.Serverless.RrfRank rrfRank) => new Rank("rrf", rrfRank); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class RankConverter : JsonConverter -{ - public override Rank Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "rrf") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Rank' from the response."); - } - - var result = new Rank(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Rank value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "rrf": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.RrfRank)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RankDescriptor : SerializableDescriptor> -{ - internal RankDescriptor(Action> configure) => configure.Invoke(this); - - public RankDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RankDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RankDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RankDescriptor Rrf(Elastic.Clients.Elasticsearch.Serverless.RrfRank rrfRank) => Set(rrfRank, "rrf"); - public RankDescriptor Rrf(Action configure) => Set(configure, "rrf"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RankDescriptor : SerializableDescriptor -{ - internal RankDescriptor(Action configure) => configure.Invoke(this); - - public RankDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RankDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RankDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RankDescriptor Rrf(Elastic.Clients.Elasticsearch.Serverless.RrfRank rrfRank) => Set(rrfRank, "rrf"); - public RankDescriptor Rrf(Action configure) => Set(configure, "rrf"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs index 0071b40bb4f..4c2effd0b43 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs @@ -31,6 +31,8 @@ public sealed partial class SnapshotShardFailure { [JsonInclude, JsonPropertyName("index")] public string Index { get; init; } + [JsonInclude, JsonPropertyName("index_uuid")] + public string IndexUuid { get; init; } [JsonInclude, JsonPropertyName("node_id")] public string? NodeId { get; init; } [JsonInclude, JsonPropertyName("reason")] diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.Esql.cs b/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.Esql.cs index 14c8d7ac845..76740e3fc05 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.Esql.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.Esql.cs @@ -65,7 +65,7 @@ public virtual async Task> QueryAsObjectsAsync void Configure(EsqlQueryRequestDescriptor descriptor) { configureRequest(descriptor); - descriptor.Format("JSON"); + descriptor.Format(EsqlFormat.Json); descriptor.Columnar(false); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs index abfc1200a0f..e3fca0ec657 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs @@ -145,6 +145,14 @@ public sealed partial class HealthResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("timed_out")] public bool TimedOut { get; init; } + /// + /// + /// The number of primary shards that are not allocated. + /// + /// + [JsonInclude, JsonPropertyName("unassigned_primary_shards")] + public int UnassignedPrimaryShards { get; init; } + /// /// /// The number of shards that are not allocated. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs index a4500abf0e0..625dac5748f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class EsqlQueryRequestParameters : RequestParameters /// A short version of the Accept header, e.g. json, yaml. /// /// - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } } /// @@ -92,7 +92,7 @@ public sealed partial class EsqlQueryRequest : PlainRequest /// [JsonIgnore] - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } /// /// @@ -163,7 +163,7 @@ public EsqlQueryRequestDescriptor() 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); + public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Esql.EsqlFormat? format) => Qs("format", format); private bool? ColumnarValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } @@ -328,7 +328,7 @@ public EsqlQueryRequestDescriptor() 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); + public EsqlQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Esql.EsqlFormat? format) => Qs("format", format); private bool? ColumnarValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs index 6401716d076..1ee0173f080 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs @@ -52,6 +52,13 @@ public sealed partial class GetDataStreamRequestParameters : RequestParameters /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Whether the maximum timestamp for each data stream should be calculated and returned. + /// + /// + public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -102,6 +109,14 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames? name) /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Whether the maximum timestamp for each data stream should be calculated and returned. + /// + /// + [JsonIgnore] + public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -133,6 +148,7 @@ public GetDataStreamRequestDescriptor() public GetDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetDataStreamRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public GetDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetDataStreamRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public GetDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames? name) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index 7e23ca3f0b8..e52b4679345 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -31,6 +31,15 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class ResolveIndexRequestParameters : RequestParameters { + /// + /// + /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. + /// This behavior applies even if the request targets other open indices. + /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// + /// + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + /// /// /// Type of index that wildcard patterns can match. @@ -40,6 +49,13 @@ public sealed partial class ResolveIndexRequestParameters : RequestParameters /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// + /// If false, the request returns an error if it targets a missing or closed index. + /// + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } } /// @@ -62,6 +78,16 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => internal override string OperationName => "indices.resolve_index"; + /// + /// + /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. + /// This behavior applies even if the request targets other open indices. + /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// + /// + [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + /// /// /// Type of index that wildcard patterns can match. @@ -72,6 +98,14 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => /// [JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// + /// If false, the request returns an error if it targets a missing or closed index. + /// + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } } /// @@ -96,7 +130,9 @@ public ResolveIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : internal override string OperationName => "indices.resolve_index"; + public ResolveIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ResolveIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ResolveIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs index acbda2c17ac..16eb12f2675 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -97,6 +97,15 @@ public PutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Req [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; set; } + /// /// /// Description of the ingest pipeline. @@ -170,6 +179,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch. return Self; } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -182,6 +192,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch. private Action>[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -300,6 +322,12 @@ public PutPipelineRequestDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); @@ -416,6 +444,7 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) return Self; } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -428,6 +457,18 @@ public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) private Action[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -546,6 +587,12 @@ public PutPipelineRequestDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 70c7fbf99c4..0c5914a5c35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -90,7 +90,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "open_point_in_time"; @@ -136,6 +136,14 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// + /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// + /// + [JsonInclude, JsonPropertyName("index_filter")] + public Elastic.Clients.Elasticsearch.QueryDsl.Query? IndexFilter { get; set; } } /// @@ -164,7 +172,7 @@ public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "open_point_in_time"; @@ -180,8 +188,59 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elast return Self; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? IndexFilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } + private Action> IndexFilterDescriptorAction { get; set; } + + /// + /// + /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// + /// + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) + { + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = null; + IndexFilterValue = indexFilter; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + IndexFilterValue = null; + IndexFilterDescriptorAction = null; + IndexFilterDescriptor = descriptor; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Action> configure) + { + IndexFilterValue = null; + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { + writer.WriteStartObject(); + if (IndexFilterDescriptor is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); + } + else if (IndexFilterDescriptorAction is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); + } + else if (IndexFilterValue is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterValue, options); + } + + writer.WriteEndObject(); } } @@ -207,7 +266,7 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Indices in protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "open_point_in_time"; @@ -223,7 +282,58 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.In return Self; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? IndexFilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } + private Action IndexFilterDescriptorAction { get; set; } + + /// + /// + /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// + /// + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) + { + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = null; + IndexFilterValue = indexFilter; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + IndexFilterValue = null; + IndexFilterDescriptorAction = null; + IndexFilterDescriptor = descriptor; + return Self; + } + + public OpenPointInTimeRequestDescriptor IndexFilter(Action configure) + { + IndexFilterValue = null; + IndexFilterDescriptor = null; + IndexFilterDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { + writer.WriteStartObject(); + if (IndexFilterDescriptor is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); + } + else if (IndexFilterDescriptorAction is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); + } + else if (IndexFilterValue is not null) + { + writer.WritePropertyName("index_filter"); + JsonSerializer.Serialize(writer, IndexFilterValue, options); + } + + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs index cc2ea924c79..1dd4dd1105d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeResponse.g.cs @@ -30,4 +30,12 @@ public sealed partial class OpenPointInTimeResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("id")] public string Id { get; init; } + + /// + /// + /// Shards used to create the PIT + /// + /// + [JsonInclude, JsonPropertyName("_shards")] + public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs index 393dc6f1772..bb1dd14ba0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs @@ -36,6 +36,7 @@ public sealed partial class DeleteBehavioralAnalyticsRequestParameters : Request /// /// /// Delete a behavioral analytics collection. +/// The associated data stream is also deleted. /// /// public sealed partial class DeleteBehavioralAnalyticsRequest : PlainRequest @@ -56,6 +57,7 @@ public DeleteBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Name name) /// /// /// Delete a behavioral analytics collection. +/// The associated data stream is also deleted. /// /// public sealed partial class DeleteBehavioralAnalyticsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs index 6eb2ed9f167..568ee9f3b60 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs @@ -35,7 +35,8 @@ public sealed partial class DeleteSearchApplicationRequestParameters : RequestPa /// /// -/// Deletes a search application. +/// Delete a search application. +/// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// public sealed partial class DeleteSearchApplicationRequest : PlainRequest @@ -55,7 +56,8 @@ public DeleteSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// -/// Deletes a search application. +/// Delete a search application. +/// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// public sealed partial class DeleteSearchApplicationRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs index a4916064d61..313dbe3f12f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class GetBehavioralAnalyticsRequestParameters : RequestPar /// /// -/// Returns the existing behavioral analytics collections. +/// Get behavioral analytics collections. /// /// public sealed partial class GetBehavioralAnalyticsRequest : PlainRequest @@ -59,7 +59,7 @@ public GetBehavioralAnalyticsRequest(IReadOnlyCollection /// -/// Returns the existing behavioral analytics collections. +/// Get behavioral analytics collections. /// /// public sealed partial class GetBehavioralAnalyticsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs index aa25bd1fe0d..28c41602d1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class GetSearchApplicationRequestParameters : RequestParam /// /// -/// Returns the details about a search application +/// Get search application details. /// /// public sealed partial class GetSearchApplicationRequest : PlainRequest @@ -55,7 +55,7 @@ public GetSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : ba /// /// -/// Returns the details about a search application +/// Get search application details. /// /// public sealed partial class GetSearchApplicationRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs index 32f48d14234..185a22a7f3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs @@ -35,7 +35,7 @@ public sealed partial class PutBehavioralAnalyticsRequestParameters : RequestPar /// /// -/// Creates a behavioral analytics collection. +/// Create a behavioral analytics collection. /// /// public sealed partial class PutBehavioralAnalyticsRequest : PlainRequest @@ -55,7 +55,7 @@ public PutBehavioralAnalyticsRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// -/// Creates a behavioral analytics collection. +/// Create a behavioral analytics collection. /// /// public sealed partial class PutBehavioralAnalyticsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs index 44d43d407b8..743674f4b71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs @@ -41,7 +41,7 @@ public sealed partial class PutSearchApplicationRequestParameters : RequestParam /// /// -/// Creates or updates a search application. +/// Create or update a search application. /// /// public sealed partial class PutSearchApplicationRequest : PlainRequest, ISelfSerializable @@ -76,7 +76,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Creates or updates a search application. +/// Create or update a search application. /// /// public sealed partial class PutSearchApplicationRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs index 239437b7290..28a5738d283 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs @@ -41,7 +41,9 @@ public sealed partial class SearchApplicationSearchRequestParameters : RequestPa /// /// -/// Perform a search against a search application. +/// Run a search application search. +/// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. +/// Unspecified template parameters are assigned their default values if applicable. /// /// public sealed partial class SearchApplicationSearchRequest : PlainRequest @@ -77,7 +79,9 @@ public SearchApplicationSearchRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// -/// Perform a search against a search application. +/// Run a search application search. +/// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. +/// Unspecified template parameters are assigned their default values if applicable. /// /// public sealed partial class SearchApplicationSearchRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs index ef95b045455..2914a6a88f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsResponse.g.cs @@ -32,7 +32,7 @@ public sealed partial class SearchShardsResponse : ElasticsearchResponse [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Core.SearchShards.ShardStoreIndex))] public IReadOnlyDictionary Indices { get; init; } [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } + public IReadOnlyDictionary Nodes { get; init; } [JsonInclude, JsonPropertyName("shards")] public IReadOnlyCollection> Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs index ac3f5420753..d16082dbc34 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs @@ -115,6 +115,14 @@ public PutRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Req [JsonInclude, JsonPropertyName("metadata")] public IDictionary? Metadata { get; set; } + /// + /// + /// A list of remote indices permissions entries. + /// + /// + [JsonInclude, JsonPropertyName("remote_indices")] + public ICollection? RemoteIndices { get; set; } + /// /// /// A list of users that the owners of this role can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -174,6 +182,10 @@ public PutRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Na private Action> IndicesDescriptorAction { get; set; } private Action>[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private ICollection? RemoteIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor RemoteIndicesDescriptor { get; set; } + private Action> RemoteIndicesDescriptorAction { get; set; } + private Action>[] RemoteIndicesDescriptorActions { get; set; } private ICollection? RunAsValue { get; set; } private IDictionary? TransientMetadataValue { get; set; } @@ -303,6 +315,47 @@ public PutRoleRequestDescriptor Metadata(Func + /// + /// A list of remote indices permissions entries. + /// + /// + public PutRoleRequestDescriptor RemoteIndices(ICollection? remoteIndices) + { + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesValue = remoteIndices; + return Self; + } + + public PutRoleRequestDescriptor RemoteIndices(Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor descriptor) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptor = descriptor; + return Self; + } + + public PutRoleRequestDescriptor RemoteIndices(Action> configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptorAction = configure; + return Self; + } + + public PutRoleRequestDescriptor RemoteIndices(params Action>[] configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = configure; + return Self; + } + /// /// /// A list of users that the owners of this role can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -414,6 +467,37 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RemoteIndicesDescriptor is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteIndicesDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorAction is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(RemoteIndicesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorActions is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + foreach (var action in RemoteIndicesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteIndicesValue is not null) + { + writer.WritePropertyName("remote_indices"); + JsonSerializer.Serialize(writer, RemoteIndicesValue, options); + } + if (RunAsValue is not null) { writer.WritePropertyName("run_as"); @@ -472,6 +556,10 @@ public PutRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) private Action IndicesDescriptorAction { get; set; } private Action[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private ICollection? RemoteIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor RemoteIndicesDescriptor { get; set; } + private Action RemoteIndicesDescriptorAction { get; set; } + private Action[] RemoteIndicesDescriptorActions { get; set; } private ICollection? RunAsValue { get; set; } private IDictionary? TransientMetadataValue { get; set; } @@ -601,6 +689,47 @@ public PutRoleRequestDescriptor Metadata(Func, return Self; } + /// + /// + /// A list of remote indices permissions entries. + /// + /// + public PutRoleRequestDescriptor RemoteIndices(ICollection? remoteIndices) + { + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesValue = remoteIndices; + return Self; + } + + public PutRoleRequestDescriptor RemoteIndices(Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor descriptor) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptor = descriptor; + return Self; + } + + public PutRoleRequestDescriptor RemoteIndices(Action configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptorAction = configure; + return Self; + } + + public PutRoleRequestDescriptor RemoteIndices(params Action[] configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = configure; + return Self; + } + /// /// /// A list of users that the owners of this role can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -712,6 +841,37 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RemoteIndicesDescriptor is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteIndicesDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorAction is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(RemoteIndicesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorActions is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + foreach (var action in RemoteIndicesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteIndicesValue is not null) + { + writer.WritePropertyName("remote_indices"); + JsonSerializer.Serialize(writer, RemoteIndicesValue, options); + } + if (RunAsValue is not null) { writer.WritePropertyName("run_as"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs index 3b9898c96f6..7da01d16fc0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class QueryRequestParameters : RequestParameters /// Format for the response. /// /// - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } } /// @@ -60,7 +60,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// [JsonIgnore] - public string? Format { get => Q("format"); set => Q("format", value); } + public Elastic.Clients.Elasticsearch.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } /// /// @@ -215,7 +215,7 @@ public QueryRequestDescriptor() internal override string OperationName => "sql.query"; - public QueryRequestDescriptor Format(string? format) => Qs("format", format); + public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Sql.SqlFormat? format) => Qs("format", format); private string? CatalogValue { get; set; } private bool? ColumnarValue { get; set; } @@ -567,7 +567,7 @@ public QueryRequestDescriptor() internal override string OperationName => "sql.query"; - public QueryRequestDescriptor Format(string? format) => Qs("format", format); + public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Sql.SqlFormat? format) => Qs("format", format); private string? CatalogValue { get; set; } private bool? ColumnarValue { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 651d7111d85..5bb229233bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class XpackInfoRequestParameters : RequestParameters /// A comma-separated list of the information categories to include in the response. For example, build,license,features. /// /// - public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } + public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } } /// @@ -75,7 +75,7 @@ public sealed partial class XpackInfoRequest : PlainRequest /// [JsonIgnore] - public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } + public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } } /// @@ -100,7 +100,7 @@ public XpackInfoRequestDescriptor() internal override string OperationName => "xpack.info"; public XpackInfoRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise); - public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories); + public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index d150269be2c..c9102687c74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -43,7 +43,7 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDatabaseRequest request) @@ -56,7 +56,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDataba /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDatabaseRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Delete /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id) @@ -95,7 +95,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elasti /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest) @@ -110,7 +110,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elasti /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDatabaseRequestDescriptor descriptor) @@ -123,7 +123,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDataba /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id) @@ -137,7 +137,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.E /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest) @@ -152,7 +152,7 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.E /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -164,7 +164,7 @@ public virtual Task DeleteGeoipDatabaseAsync /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) { @@ -177,7 +177,7 @@ public virtual Task DeleteGeoipDatabaseAsync /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task DeleteGeoipDatabaseAsync /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) { @@ -216,7 +216,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// Deletes a geoip database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -523,7 +523,7 @@ public virtual Task GeoIpStatsAsync(Action /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest request) @@ -536,7 +536,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -548,7 +548,7 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequestDescriptor descriptor) @@ -561,7 +561,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id) @@ -575,7 +575,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest) @@ -590,7 +590,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase() @@ -604,7 +604,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase() /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action> configureRequest) @@ -619,7 +619,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequestDescriptor descriptor) @@ -632,7 +632,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id) @@ -646,7 +646,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elastic /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest) @@ -661,7 +661,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elastic /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase() @@ -675,7 +675,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase() /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action configureRequest) @@ -690,7 +690,7 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -702,7 +702,7 @@ public virtual Task GetGeoipDatabaseAsync(G /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) { @@ -715,7 +715,7 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -729,7 +729,7 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) { @@ -742,7 +742,7 @@ public virtual Task GetGeoipDatabaseAsync(C /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -756,7 +756,7 @@ public virtual Task GetGeoipDatabaseAsync(A /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -768,7 +768,7 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) { @@ -781,7 +781,7 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -795,7 +795,7 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) { @@ -808,7 +808,7 @@ public virtual Task GetGeoipDatabaseAsync(Cancellation /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1265,7 +1265,7 @@ public virtual Task ProcessorGrokAsync(Action /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest request) @@ -1278,7 +1278,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -1290,7 +1290,7 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequestDescriptor descriptor) @@ -1303,7 +1303,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id) @@ -1317,7 +1317,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -1332,7 +1332,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequestDescriptor descriptor) @@ -1345,7 +1345,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id) @@ -1359,7 +1359,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elastic /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -1374,7 +1374,7 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elastic /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1386,7 +1386,7 @@ public virtual Task PutGeoipDatabaseAsync(P /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1399,7 +1399,7 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1413,7 +1413,7 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1425,7 +1425,7 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1438,7 +1438,7 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// Returns information about one or more geoip database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs index 559e5cdd430..fc2498eaccd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs @@ -41,7 +41,8 @@ internal SearchApplicationNamespacedClient(ElasticsearchClient client) : base(cl /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationReq /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task DeleteAsync(DeleteSearchApp /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationReq /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual DeleteSearchApplicationResponse Delete(Elastic.Clients.Elasticsea /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual DeleteSearchApplicationResponse Delete(Elastic.Clients.Elasticsea /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +126,8 @@ public virtual Task DeleteAsync(DeleteSearchApp /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +140,8 @@ public virtual Task DeleteAsync(Elastic.Clients /// /// - /// Deletes a search application. + /// Delete a search application. + /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -148,6 +156,7 @@ public virtual Task DeleteAsync(Elastic.Clients /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -161,6 +170,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Delet /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -173,6 +183,7 @@ public virtual Task DeleteBehavioralAnalytics /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -186,6 +197,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Delet /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -200,6 +212,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Elast /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -215,6 +228,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Elast /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -227,6 +241,7 @@ public virtual Task DeleteBehavioralAnalytics /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -240,6 +255,7 @@ public virtual Task DeleteBehavioralAnalytics /// /// /// Delete a behavioral analytics collection. + /// The associated data stream is also deleted. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +269,7 @@ public virtual Task DeleteBehavioralAnalytics /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +282,7 @@ public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequest requ /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -278,7 +294,7 @@ public virtual Task GetAsync(GetSearchApplicationR /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -291,7 +307,7 @@ public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequestDescr /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -305,7 +321,7 @@ public virtual GetSearchApplicationResponse Get(Elastic.Clients.Elasticsearch.Na /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +336,7 @@ public virtual GetSearchApplicationResponse Get(Elastic.Clients.Elasticsearch.Na /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -332,7 +348,7 @@ public virtual Task GetAsync(GetSearchApplicationR /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -345,7 +361,7 @@ public virtual Task GetAsync(Elastic.Clients.Elast /// /// - /// Returns the details about a search application + /// Get search application details. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +375,7 @@ public virtual Task GetAsync(Elastic.Clients.Elast /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -372,7 +388,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavior /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -384,7 +400,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -397,7 +413,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavior /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -411,7 +427,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(IReadOnlyCo /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -426,7 +442,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(IReadOnlyCo /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -440,7 +456,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics() /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -455,7 +471,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(Action /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -467,7 +483,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -480,7 +496,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -494,7 +510,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -507,7 +523,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// - /// Returns the existing behavioral analytics collections. + /// Get behavioral analytics collections. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -627,7 +643,7 @@ public virtual Task ListAsync(Action config /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -640,7 +656,7 @@ public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequest requ /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -652,7 +668,7 @@ public virtual Task PutAsync(PutSearchApplicationR /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -665,7 +681,7 @@ public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequestDescr /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -679,7 +695,7 @@ public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.Se /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -694,7 +710,7 @@ public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.Se /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -706,7 +722,7 @@ public virtual Task PutAsync(PutSearchApplicationR /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -719,7 +735,7 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// /// - /// Creates or updates a search application. + /// Create or update a search application. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -733,7 +749,7 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -746,7 +762,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavior /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -758,7 +774,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -771,7 +787,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavior /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -785,7 +801,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(Elastic.Cli /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -800,7 +816,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(Elastic.Cli /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -812,7 +828,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -825,7 +841,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// - /// Creates a behavioral analytics collection. + /// Create a behavioral analytics collection. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -839,7 +855,9 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// - /// Perform a search against a search application. + /// Run a search application search. + /// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. + /// Unspecified template parameters are assigned their default values if applicable. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -852,7 +870,9 @@ public virtual SearchApplicationSearchResponse Search(Sear /// /// - /// Perform a search against a search application. + /// Run a search application search. + /// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. + /// Unspecified template parameters are assigned their default values if applicable. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs index 890af04b65c..6198ae808d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/AggregateDictionary.g.cs @@ -101,6 +101,7 @@ public AggregateDictionary(IReadOnlyDictionary backingDictio public Elastic.Clients.Elasticsearch.Aggregations.SumAggregate? GetSum(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Aggregations.TDigestPercentileRanksAggregate? GetTDigestPercentileRanks(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Aggregations.TDigestPercentilesAggregate? GetTDigestPercentiles(string key) => TryGet(key); + public Elastic.Clients.Elasticsearch.Aggregations.TimeSeriesAggregate? GetTimeSeries(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Aggregations.TopHitsAggregate? GetTopHits(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Aggregations.TopMetricsAggregate? GetTopMetrics(string key) => TryGet(key); public Elastic.Clients.Elasticsearch.Aggregations.TTestAggregate? GetTTest(string key) => TryGet(key); @@ -559,6 +560,13 @@ public static void ReadItem(ref Utf8JsonReader reader, JsonSerializerOptions opt break; } + case "time_series": + { + var item = JsonSerializer.Deserialize(ref reader, options); + dictionary.Add(nameParts[1], item); + break; + } + case "top_hits": { var item = JsonSerializer.Deserialize(ref reader, options); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs index e6aae808b89..3ce7c7ac1d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/Aggregation.g.cs @@ -100,6 +100,7 @@ internal Aggregation(string variantName, object variant) public static Aggregation PercentileRanks(Elastic.Clients.Elasticsearch.Aggregations.PercentileRanksAggregation percentileRanksAggregation) => new Aggregation("percentile_ranks", percentileRanksAggregation); public static Aggregation Percentiles(Elastic.Clients.Elasticsearch.Aggregations.PercentilesAggregation percentilesAggregation) => new Aggregation("percentiles", percentilesAggregation); public static Aggregation PercentilesBucket(Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregation percentilesBucketAggregation) => new Aggregation("percentiles_bucket", percentilesBucketAggregation); + public static Aggregation RandomSampler(Elastic.Clients.Elasticsearch.Aggregations.RandomSamplerAggregation randomSamplerAggregation) => new Aggregation("random_sampler", randomSamplerAggregation); public static Aggregation Range(Elastic.Clients.Elasticsearch.Aggregations.RangeAggregation rangeAggregation) => new Aggregation("range", rangeAggregation); public static Aggregation RareTerms(Elastic.Clients.Elasticsearch.Aggregations.RareTermsAggregation rareTermsAggregation) => new Aggregation("rare_terms", rareTermsAggregation); public static Aggregation Rate(Elastic.Clients.Elasticsearch.Aggregations.RateAggregation rateAggregation) => new Aggregation("rate", rateAggregation); @@ -115,6 +116,7 @@ internal Aggregation(string variantName, object variant) public static Aggregation Sum(Elastic.Clients.Elasticsearch.Aggregations.SumAggregation sumAggregation) => new Aggregation("sum", sumAggregation); public static Aggregation SumBucket(Elastic.Clients.Elasticsearch.Aggregations.SumBucketAggregation sumBucketAggregation) => new Aggregation("sum_bucket", sumBucketAggregation); public static Aggregation Terms(Elastic.Clients.Elasticsearch.Aggregations.TermsAggregation termsAggregation) => new Aggregation("terms", termsAggregation); + public static Aggregation TimeSeries(Elastic.Clients.Elasticsearch.Aggregations.TimeSeriesAggregation timeSeriesAggregation) => new Aggregation("time_series", timeSeriesAggregation); public static Aggregation TopHits(Elastic.Clients.Elasticsearch.Aggregations.TopHitsAggregation topHitsAggregation) => new Aggregation("top_hits", topHitsAggregation); public static Aggregation TopMetrics(Elastic.Clients.Elasticsearch.Aggregations.TopMetricsAggregation topMetricsAggregation) => new Aggregation("top_metrics", topMetricsAggregation); public static Aggregation TTest(Elastic.Clients.Elasticsearch.Aggregations.TTestAggregation tTestAggregation) => new Aggregation("t_test", tTestAggregation); @@ -563,6 +565,13 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert, continue; } + if (propertyName == "random_sampler") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "range") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -668,6 +677,13 @@ public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert, continue; } + if (propertyName == "time_series") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "top_hits") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -901,6 +917,9 @@ public override void Write(Utf8JsonWriter writer, Aggregation value, JsonSeriali case "percentiles_bucket": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregation)value.Variant, options); break; + case "random_sampler": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Aggregations.RandomSamplerAggregation)value.Variant, options); + break; case "range": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Aggregations.RangeAggregation)value.Variant, options); break; @@ -946,6 +965,9 @@ public override void Write(Utf8JsonWriter writer, Aggregation value, JsonSeriali case "terms": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Aggregations.TermsAggregation)value.Variant, options); break; + case "time_series": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Aggregations.TimeSeriesAggregation)value.Variant, options); + break; case "top_hits": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Aggregations.TopHitsAggregation)value.Variant, options); break; @@ -1131,6 +1153,8 @@ public AggregationDescriptor Meta(Func Percentiles(Action> configure) => Set(configure, "percentiles"); public AggregationDescriptor PercentilesBucket(Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregation percentilesBucketAggregation) => Set(percentilesBucketAggregation, "percentiles_bucket"); public AggregationDescriptor PercentilesBucket(Action configure) => Set(configure, "percentiles_bucket"); + public AggregationDescriptor RandomSampler(Elastic.Clients.Elasticsearch.Aggregations.RandomSamplerAggregation randomSamplerAggregation) => Set(randomSamplerAggregation, "random_sampler"); + public AggregationDescriptor RandomSampler(Action configure) => Set(configure, "random_sampler"); public AggregationDescriptor Range(Elastic.Clients.Elasticsearch.Aggregations.RangeAggregation rangeAggregation) => Set(rangeAggregation, "range"); public AggregationDescriptor Range(Action> configure) => Set(configure, "range"); public AggregationDescriptor RareTerms(Elastic.Clients.Elasticsearch.Aggregations.RareTermsAggregation rareTermsAggregation) => Set(rareTermsAggregation, "rare_terms"); @@ -1161,6 +1185,8 @@ public AggregationDescriptor Meta(Func SumBucket(Action configure) => Set(configure, "sum_bucket"); public AggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); public AggregationDescriptor Terms(Action> configure) => Set(configure, "terms"); + public AggregationDescriptor TimeSeries(Elastic.Clients.Elasticsearch.Aggregations.TimeSeriesAggregation timeSeriesAggregation) => Set(timeSeriesAggregation, "time_series"); + public AggregationDescriptor TimeSeries(Action configure) => Set(configure, "time_series"); public AggregationDescriptor TopHits(Elastic.Clients.Elasticsearch.Aggregations.TopHitsAggregation topHitsAggregation) => Set(topHitsAggregation, "top_hits"); public AggregationDescriptor TopHits(Action> configure) => Set(configure, "top_hits"); public AggregationDescriptor TopMetrics(Elastic.Clients.Elasticsearch.Aggregations.TopMetricsAggregation topMetricsAggregation) => Set(topMetricsAggregation, "top_metrics"); @@ -1366,6 +1392,8 @@ public AggregationDescriptor Meta(Func, FluentD public AggregationDescriptor Percentiles(Action configure) => Set(configure, "percentiles"); public AggregationDescriptor PercentilesBucket(Elastic.Clients.Elasticsearch.Aggregations.PercentilesBucketAggregation percentilesBucketAggregation) => Set(percentilesBucketAggregation, "percentiles_bucket"); public AggregationDescriptor PercentilesBucket(Action configure) => Set(configure, "percentiles_bucket"); + public AggregationDescriptor RandomSampler(Elastic.Clients.Elasticsearch.Aggregations.RandomSamplerAggregation randomSamplerAggregation) => Set(randomSamplerAggregation, "random_sampler"); + public AggregationDescriptor RandomSampler(Action configure) => Set(configure, "random_sampler"); public AggregationDescriptor Range(Elastic.Clients.Elasticsearch.Aggregations.RangeAggregation rangeAggregation) => Set(rangeAggregation, "range"); public AggregationDescriptor Range(Action configure) => Set(configure, "range"); public AggregationDescriptor RareTerms(Elastic.Clients.Elasticsearch.Aggregations.RareTermsAggregation rareTermsAggregation) => Set(rareTermsAggregation, "rare_terms"); @@ -1396,6 +1424,8 @@ public AggregationDescriptor Meta(Func, FluentD public AggregationDescriptor SumBucket(Action configure) => Set(configure, "sum_bucket"); public AggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); public AggregationDescriptor Terms(Action configure) => Set(configure, "terms"); + public AggregationDescriptor TimeSeries(Elastic.Clients.Elasticsearch.Aggregations.TimeSeriesAggregation timeSeriesAggregation) => Set(timeSeriesAggregation, "time_series"); + public AggregationDescriptor TimeSeries(Action configure) => Set(configure, "time_series"); public AggregationDescriptor TopHits(Elastic.Clients.Elasticsearch.Aggregations.TopHitsAggregation topHitsAggregation) => Set(topHitsAggregation, "top_hits"); public AggregationDescriptor TopHits(Action configure) => Set(configure, "top_hits"); public AggregationDescriptor TopMetrics(Elastic.Clients.Elasticsearch.Aggregations.TopMetricsAggregation topMetricsAggregation) => Set(topMetricsAggregation, "top_metrics"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs new file mode 100644 index 00000000000..520b9aca721 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RandomSamplerAggregation.g.cs @@ -0,0 +1,129 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Aggregations; + +public sealed partial class RandomSamplerAggregation +{ + /// + /// + /// The probability that a document will be included in the aggregated data. + /// Must be greater than 0, less than 0.5, or exactly 1. + /// The lower the probability, the fewer documents are matched. + /// + /// + [JsonInclude, JsonPropertyName("probability")] + public double Probability { get; set; } + + /// + /// + /// The seed to generate the random sampling of documents. + /// When a seed is provided, the random subset of documents is the same between calls. + /// + /// + [JsonInclude, JsonPropertyName("seed")] + public int? Seed { get; set; } + + /// + /// + /// When combined with seed, setting shard_seed ensures 100% consistent sampling over shards where data is exactly the same. + /// + /// + [JsonInclude, JsonPropertyName("shard_seed")] + public int? ShardSeed { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(RandomSamplerAggregation randomSamplerAggregation) => Elastic.Clients.Elasticsearch.Aggregations.Aggregation.RandomSampler(randomSamplerAggregation); +} + +public sealed partial class RandomSamplerAggregationDescriptor : SerializableDescriptor +{ + internal RandomSamplerAggregationDescriptor(Action configure) => configure.Invoke(this); + + public RandomSamplerAggregationDescriptor() : base() + { + } + + private double ProbabilityValue { get; set; } + private int? SeedValue { get; set; } + private int? ShardSeedValue { get; set; } + + /// + /// + /// The probability that a document will be included in the aggregated data. + /// Must be greater than 0, less than 0.5, or exactly 1. + /// The lower the probability, the fewer documents are matched. + /// + /// + public RandomSamplerAggregationDescriptor Probability(double probability) + { + ProbabilityValue = probability; + return Self; + } + + /// + /// + /// The seed to generate the random sampling of documents. + /// When a seed is provided, the random subset of documents is the same between calls. + /// + /// + public RandomSamplerAggregationDescriptor Seed(int? seed) + { + SeedValue = seed; + return Self; + } + + /// + /// + /// When combined with seed, setting shard_seed ensures 100% consistent sampling over shards where data is exactly the same. + /// + /// + public RandomSamplerAggregationDescriptor ShardSeed(int? shardSeed) + { + ShardSeedValue = shardSeed; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("probability"); + writer.WriteNumberValue(ProbabilityValue); + if (SeedValue.HasValue) + { + writer.WritePropertyName("seed"); + writer.WriteNumberValue(SeedValue.Value); + } + + if (ShardSeedValue.HasValue) + { + writer.WritePropertyName("shard_seed"); + writer.WriteNumberValue(ShardSeedValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs new file mode 100644 index 00000000000..bd927b7576c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Aggregations; + +public sealed partial class TimeSeriesAggregate : IAggregate +{ + [JsonInclude, JsonPropertyName("buckets")] + public IReadOnlyCollection Buckets { get; init; } + [JsonInclude, JsonPropertyName("meta")] + public IReadOnlyDictionary? Meta { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs similarity index 51% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs index 63c54e86444..9e17f41186b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RrfRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesAggregation.g.cs @@ -17,83 +17,83 @@ #nullable restore -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.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; +namespace Elastic.Clients.Elasticsearch.Aggregations; -public sealed partial class RrfRank +public sealed partial class TimeSeriesAggregation { /// /// - /// How much influence documents in individual result sets per query have over the final ranked result set + /// Set to true to associate a unique string key with each bucket and returns the ranges as a hash rather than an array. /// /// - [JsonInclude, JsonPropertyName("rank_constant")] - public long? RankConstant { get; set; } + [JsonInclude, JsonPropertyName("keyed")] + public bool? Keyed { get; set; } /// /// - /// Size of the individual result sets per query + /// The maximum number of results to return. /// /// - [JsonInclude, JsonPropertyName("rank_window_size")] - public long? RankWindowSize { get; set; } + [JsonInclude, JsonPropertyName("size")] + public int? Size { get; set; } - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Rank(RrfRank rrfRank) => Elastic.Clients.Elasticsearch.Serverless.Rank.Rrf(rrfRank); + public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.Aggregation(TimeSeriesAggregation timeSeriesAggregation) => Elastic.Clients.Elasticsearch.Aggregations.Aggregation.TimeSeries(timeSeriesAggregation); } -public sealed partial class RrfRankDescriptor : SerializableDescriptor +public sealed partial class TimeSeriesAggregationDescriptor : SerializableDescriptor { - internal RrfRankDescriptor(Action configure) => configure.Invoke(this); + internal TimeSeriesAggregationDescriptor(Action configure) => configure.Invoke(this); - public RrfRankDescriptor() : base() + public TimeSeriesAggregationDescriptor() : base() { } - private long? RankConstantValue { get; set; } - private long? RankWindowSizeValue { get; set; } + private bool? KeyedValue { get; set; } + private int? SizeValue { get; set; } /// /// - /// How much influence documents in individual result sets per query have over the final ranked result set + /// Set to true to associate a unique string key with each bucket and returns the ranges as a hash rather than an array. /// /// - public RrfRankDescriptor RankConstant(long? rankConstant) + public TimeSeriesAggregationDescriptor Keyed(bool? keyed = true) { - RankConstantValue = rankConstant; + KeyedValue = keyed; return Self; } /// /// - /// Size of the individual result sets per query + /// The maximum number of results to return. /// /// - public RrfRankDescriptor RankWindowSize(long? rankWindowSize) + public TimeSeriesAggregationDescriptor Size(int? size) { - RankWindowSizeValue = rankWindowSize; + SizeValue = size; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (RankConstantValue.HasValue) + if (KeyedValue.HasValue) { - writer.WritePropertyName("rank_constant"); - writer.WriteNumberValue(RankConstantValue.Value); + writer.WritePropertyName("keyed"); + writer.WriteBooleanValue(KeyedValue.Value); } - if (RankWindowSizeValue.HasValue) + if (SizeValue.HasValue) { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs new file mode 100644 index 00000000000..3b391a5494c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs @@ -0,0 +1,87 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Aggregations; + +internal sealed partial class TimeSeriesBucketConverter : JsonConverter +{ + public override TimeSeriesBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException("Unexpected JSON detected."); + long docCount = default; + IReadOnlyDictionary key = default; + Dictionary additionalProperties = null; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType == JsonTokenType.PropertyName) + { + var property = reader.GetString(); + if (property == "doc_count") + { + docCount = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "key") + { + key = JsonSerializer.Deserialize>(ref reader, options); + continue; + } + + if (property.Contains("#")) + { + additionalProperties ??= new Dictionary(); + AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); + continue; + } + + throw new JsonException("Unknown property read from JSON."); + } + } + + return new TimeSeriesBucket { Aggregations = new Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; + } + + public override void Write(Utf8JsonWriter writer, TimeSeriesBucket value, JsonSerializerOptions options) + { + throw new NotImplementedException("'TimeSeriesBucket' is a readonly type, used only on responses and does not support being written to JSON."); + } +} + +[JsonConverter(typeof(TimeSeriesBucketConverter))] +public sealed partial class TimeSeriesBucket +{ + /// + /// + /// Nested aggregations + /// + /// + public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary Aggregations { get; init; } + public long DocCount { get; init; } + public IReadOnlyDictionary Key { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs new file mode 100644 index 00000000000..769294fda99 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenizer.g.cs @@ -0,0 +1,90 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ClassicTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("max_token_length")] + public int? MaxTokenLength { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "classic"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ClassicTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ClassicTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public ClassicTokenizerDescriptor() : base() + { + } + + private int? MaxTokenLengthValue { get; set; } + private string? VersionValue { get; set; } + + public ClassicTokenizerDescriptor MaxTokenLength(int? maxTokenLength) + { + MaxTokenLengthValue = maxTokenLength; + return Self; + } + + public ClassicTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MaxTokenLengthValue.HasValue) + { + writer.WritePropertyName("max_token_length"); + writer.WriteNumberValue(MaxTokenLengthValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("classic"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ClassicTokenizer IBuildableDescriptor.Build() => new() + { + MaxTokenLength = MaxTokenLengthValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs index 4141e89b468..110960e049d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs @@ -36,7 +36,7 @@ public sealed partial class EdgeNGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("min_gram")] public int MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] - public ICollection TokenChars { get; set; } + public ICollection? TokenChars { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "edge_ngram"; @@ -56,7 +56,7 @@ public EdgeNGramTokenizerDescriptor() : base() private string? CustomTokenCharsValue { get; set; } private int MaxGramValue { get; set; } private int MinGramValue { get; set; } - private ICollection TokenCharsValue { get; set; } + private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } public EdgeNGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) @@ -77,7 +77,7 @@ public EdgeNGramTokenizerDescriptor MinGram(int minGram) return Self; } - public EdgeNGramTokenizerDescriptor TokenChars(ICollection tokenChars) + public EdgeNGramTokenizerDescriptor TokenChars(ICollection? tokenChars) { TokenCharsValue = tokenChars; return Self; @@ -102,8 +102,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxGramValue); writer.WritePropertyName("min_gram"); writer.WriteNumberValue(MinGramValue); - writer.WritePropertyName("token_chars"); - JsonSerializer.Serialize(writer, TokenCharsValue, options); + if (TokenCharsValue is not null) + { + writer.WritePropertyName("token_chars"); + JsonSerializer.Serialize(writer, TokenCharsValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("edge_ngram"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs index 3fd2f033907..91a70863b7f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs @@ -32,6 +32,7 @@ public sealed partial class KeywordMarkerTokenFilter : ITokenFilter [JsonInclude, JsonPropertyName("ignore_case")] public bool? IgnoreCase { get; set; } [JsonInclude, JsonPropertyName("keywords")] + [SingleOrManyCollectionConverter(typeof(string))] public ICollection? Keywords { get; set; } [JsonInclude, JsonPropertyName("keywords_path")] public string? KeywordsPath { get; set; } @@ -101,7 +102,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (KeywordsValue is not null) { writer.WritePropertyName("keywords"); - JsonSerializer.Serialize(writer, KeywordsValue, options); + SingleOrManySerializationHelper.Serialize(KeywordsValue, writer, options); } if (!string.IsNullOrEmpty(KeywordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs index aee020454b0..23daf00166f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordTokenizer.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class KeywordTokenizer : ITokenizer { [JsonInclude, JsonPropertyName("buffer_size")] - public int BufferSize { get; set; } + public int? BufferSize { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "keyword"; @@ -47,10 +47,10 @@ public KeywordTokenizerDescriptor() : base() { } - private int BufferSizeValue { get; set; } + private int? BufferSizeValue { get; set; } private string? VersionValue { get; set; } - public KeywordTokenizerDescriptor BufferSize(int bufferSize) + public KeywordTokenizerDescriptor BufferSize(int? bufferSize) { BufferSizeValue = bufferSize; return Self; @@ -65,8 +65,12 @@ public KeywordTokenizerDescriptor Version(string? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("buffer_size"); - writer.WriteNumberValue(BufferSizeValue); + if (BufferSizeValue.HasValue) + { + writer.WritePropertyName("buffer_size"); + writer.WriteNumberValue(BufferSizeValue.Value); + } + writer.WritePropertyName("type"); writer.WriteStringValue("keyword"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs index 18208b70675..a68be22a2cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs @@ -36,7 +36,7 @@ public sealed partial class NGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("min_gram")] public int MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] - public ICollection TokenChars { get; set; } + public ICollection? TokenChars { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "ngram"; @@ -56,7 +56,7 @@ public NGramTokenizerDescriptor() : base() private string? CustomTokenCharsValue { get; set; } private int MaxGramValue { get; set; } private int MinGramValue { get; set; } - private ICollection TokenCharsValue { get; set; } + private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } public NGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) @@ -77,7 +77,7 @@ public NGramTokenizerDescriptor MinGram(int minGram) return Self; } - public NGramTokenizerDescriptor TokenChars(ICollection tokenChars) + public NGramTokenizerDescriptor TokenChars(ICollection? tokenChars) { TokenCharsValue = tokenChars; return Self; @@ -102,8 +102,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxGramValue); writer.WritePropertyName("min_gram"); writer.WriteNumberValue(MinGramValue); - writer.WritePropertyName("token_chars"); - JsonSerializer.Serialize(writer, TokenCharsValue, options); + if (TokenCharsValue is not null) + { + writer.WritePropertyName("token_chars"); + JsonSerializer.Serialize(writer, TokenCharsValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("ngram"); if (!string.IsNullOrEmpty(VersionValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs new file mode 100644 index 00000000000..efb69c647af --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs @@ -0,0 +1,90 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SimplePatternSplitTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("pattern")] + public string? Pattern { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "simple_pattern_split"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class SimplePatternSplitTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SimplePatternSplitTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public SimplePatternSplitTokenizerDescriptor() : base() + { + } + + private string? PatternValue { get; set; } + private string? VersionValue { get; set; } + + public SimplePatternSplitTokenizerDescriptor Pattern(string? pattern) + { + PatternValue = pattern; + return Self; + } + + public SimplePatternSplitTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(PatternValue)) + { + writer.WritePropertyName("pattern"); + writer.WriteStringValue(PatternValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("simple_pattern_split"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + SimplePatternSplitTokenizer IBuildableDescriptor.Build() => new() + { + Pattern = PatternValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs new file mode 100644 index 00000000000..164e4c4ffe3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs @@ -0,0 +1,90 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SimplePatternTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("pattern")] + public string? Pattern { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "simple_pattern"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class SimplePatternTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SimplePatternTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public SimplePatternTokenizerDescriptor() : base() + { + } + + private string? PatternValue { get; set; } + private string? VersionValue { get; set; } + + public SimplePatternTokenizerDescriptor Pattern(string? pattern) + { + PatternValue = pattern; + return Self; + } + + public SimplePatternTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(PatternValue)) + { + writer.WritePropertyName("pattern"); + writer.WriteStringValue(PatternValue); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("simple_pattern"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + SimplePatternTokenizer IBuildableDescriptor.Build() => new() + { + Pattern = PatternValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs new file mode 100644 index 00000000000..5ed31691456 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiTokenizer.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ThaiTokenizer : ITokenizer +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "thai"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ThaiTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ThaiTokenizerDescriptor(Action configure) => configure.Invoke(this); + + public ThaiTokenizerDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ThaiTokenizerDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("thai"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ThaiTokenizer IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Tokenizers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Tokenizers.g.cs index 8ea8d16b137..54f24ae2bab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Tokenizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Tokenizers.g.cs @@ -69,6 +69,9 @@ public TokenizersDescriptor() : base(new Tokenizers()) public TokenizersDescriptor CharGroup(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor CharGroup(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor CharGroup(string tokenizerName, CharGroupTokenizer charGroupTokenizer) => AssignVariant(tokenizerName, charGroupTokenizer); + public TokenizersDescriptor Classic(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor Classic(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor Classic(string tokenizerName, ClassicTokenizer classicTokenizer) => AssignVariant(tokenizerName, classicTokenizer); public TokenizersDescriptor EdgeNGram(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor EdgeNGram(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor EdgeNGram(string tokenizerName, EdgeNGramTokenizer edgeNGramTokenizer) => AssignVariant(tokenizerName, edgeNGramTokenizer); @@ -99,9 +102,18 @@ public TokenizersDescriptor() : base(new Tokenizers()) public TokenizersDescriptor Pattern(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor Pattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor Pattern(string tokenizerName, PatternTokenizer patternTokenizer) => AssignVariant(tokenizerName, patternTokenizer); + public TokenizersDescriptor SimplePatternSplit(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor SimplePatternSplit(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor SimplePatternSplit(string tokenizerName, SimplePatternSplitTokenizer simplePatternSplitTokenizer) => AssignVariant(tokenizerName, simplePatternSplitTokenizer); + public TokenizersDescriptor SimplePattern(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor SimplePattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor SimplePattern(string tokenizerName, SimplePatternTokenizer simplePatternTokenizer) => AssignVariant(tokenizerName, simplePatternTokenizer); public TokenizersDescriptor Standard(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor Standard(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor Standard(string tokenizerName, StandardTokenizer standardTokenizer) => AssignVariant(tokenizerName, standardTokenizer); + public TokenizersDescriptor Thai(string tokenizerName) => AssignVariant(tokenizerName, null); + public TokenizersDescriptor Thai(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); + public TokenizersDescriptor Thai(string tokenizerName, ThaiTokenizer thaiTokenizer) => AssignVariant(tokenizerName, thaiTokenizer); public TokenizersDescriptor UaxEmailUrl(string tokenizerName) => AssignVariant(tokenizerName, null); public TokenizersDescriptor UaxEmailUrl(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); public TokenizersDescriptor UaxEmailUrl(string tokenizerName, UaxEmailUrlTokenizer uaxEmailUrlTokenizer) => AssignVariant(tokenizerName, uaxEmailUrlTokenizer); @@ -126,6 +138,8 @@ public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, J { case "char_group": return JsonSerializer.Deserialize(ref reader, options); + case "classic": + return JsonSerializer.Deserialize(ref reader, options); case "edge_ngram": return JsonSerializer.Deserialize(ref reader, options); case "icu_tokenizer": @@ -146,8 +160,14 @@ public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, J return JsonSerializer.Deserialize(ref reader, options); case "pattern": return JsonSerializer.Deserialize(ref reader, options); + case "simple_pattern_split": + return JsonSerializer.Deserialize(ref reader, options); + case "simple_pattern": + return JsonSerializer.Deserialize(ref reader, options); case "standard": return JsonSerializer.Deserialize(ref reader, options); + case "thai": + return JsonSerializer.Deserialize(ref reader, options); case "uax_url_email": return JsonSerializer.Deserialize(ref reader, options); case "whitespace": @@ -171,6 +191,9 @@ public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializ case "char_group": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CharGroupTokenizer), options); return; + case "classic": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ClassicTokenizer), options); + return; case "edge_ngram": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.EdgeNGramTokenizer), options); return; @@ -201,9 +224,18 @@ public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializ case "pattern": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PatternTokenizer), options); return; + case "simple_pattern_split": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SimplePatternSplitTokenizer), options); + return; + case "simple_pattern": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SimplePatternTokenizer), options); + return; case "standard": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.StandardTokenizer), options); return; + case "thai": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ThaiTokenizer), options); + return; case "uax_url_email": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.UaxEmailUrlTokenizer), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs index 55c1a5db8bf..8943689f868 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs @@ -35,6 +35,8 @@ public sealed partial class CurrentNode public string Id { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } [JsonInclude, JsonPropertyName("transport_address")] public string TransportAddress { get; init; } [JsonInclude, JsonPropertyName("weight_ranking")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs index 6d4369248d8..a978568c8ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexHealthStats.g.cs @@ -45,6 +45,8 @@ public sealed partial class IndexHealthStats public IReadOnlyDictionary? Shards { get; init; } [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.HealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("unassigned_primary_shards")] + public int UnassignedPrimaryShards { get; init; } [JsonInclude, JsonPropertyName("unassigned_shards")] public int UnassignedShards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs index a124d639779..29ecfdb8296 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs @@ -39,6 +39,8 @@ public sealed partial class NodeAllocationExplanation public string NodeId { get; init; } [JsonInclude, JsonPropertyName("node_name")] public string NodeName { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } [JsonInclude, JsonPropertyName("store")] public Elastic.Clients.Elasticsearch.Cluster.AllocationStore? Store { get; init; } [JsonInclude, JsonPropertyName("transport_address")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs index 62534fff30d..9f29e457ded 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ShardHealthStats.g.cs @@ -39,6 +39,8 @@ public sealed partial class ShardHealthStats public int RelocatingShards { get; init; } [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.HealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("unassigned_primary_shards")] + public int UnassignedPrimaryShards { get; init; } [JsonInclude, JsonPropertyName("unassigned_shards")] public int UnassignedShards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs index 4fecff97322..8fa399791e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs @@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class AggregationProfileDebug { + [JsonInclude, JsonPropertyName("brute_force_used")] + public int? BruteForceUsed { get; init; } [JsonInclude, JsonPropertyName("built_buckets")] public int? BuiltBuckets { get; init; } [JsonInclude, JsonPropertyName("chars_fetched")] @@ -45,6 +47,10 @@ public sealed partial class AggregationProfileDebug public string? Delegate { get; init; } [JsonInclude, JsonPropertyName("delegate_debug")] public Elastic.Clients.Elasticsearch.Core.Search.AggregationProfileDebug? DelegateDebug { get; init; } + [JsonInclude, JsonPropertyName("dynamic_pruning_attempted")] + public int? DynamicPruningAttempted { get; init; } + [JsonInclude, JsonPropertyName("dynamic_pruning_used")] + public int? DynamicPruningUsed { get; init; } [JsonInclude, JsonPropertyName("empty_collectors_used")] public int? EmptyCollectorsUsed { get; init; } [JsonInclude, JsonPropertyName("extract_count")] @@ -77,6 +83,8 @@ public sealed partial class AggregationProfileDebug public int? SegmentsWithMultiValuedOrds { get; init; } [JsonInclude, JsonPropertyName("segments_with_single_valued_ords")] public int? SegmentsWithSingleValuedOrds { get; init; } + [JsonInclude, JsonPropertyName("skipped_due_to_no_data")] + public int? SkippedDueToNoData { get; init; } [JsonInclude, JsonPropertyName("string_hashing_collectors_used")] public int? StringHashingCollectorsUsed { get; init; } [JsonInclude, JsonPropertyName("surviving_buckets")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs new file mode 100644 index 00000000000..17aa732b4ba --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsKnnProfile.g.cs @@ -0,0 +1,40 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class DfsKnnProfile +{ + [JsonInclude, JsonPropertyName("collector")] + public IReadOnlyCollection Collector { get; init; } + [JsonInclude, JsonPropertyName("query")] + public IReadOnlyCollection Query { get; init; } + [JsonInclude, JsonPropertyName("rewrite_time")] + public long RewriteTime { get; init; } + [JsonInclude, JsonPropertyName("vector_operations_count")] + public long? VectorOperationsCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs new file mode 100644 index 00000000000..6daaadcb967 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsProfile.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class DfsProfile +{ + [JsonInclude, JsonPropertyName("knn")] + public IReadOnlyCollection? Knn { get; init; } + [JsonInclude, JsonPropertyName("statistics")] + public Elastic.Clients.Elasticsearch.Core.Search.DfsStatisticsProfile? Statistics { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs new file mode 100644 index 00000000000..2f335c297e1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs @@ -0,0 +1,48 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class DfsStatisticsBreakdown +{ + [JsonInclude, JsonPropertyName("collection_statistics")] + public long CollectionStatistics { get; init; } + [JsonInclude, JsonPropertyName("collection_statistics_count")] + public long CollectionStatisticsCount { get; init; } + [JsonInclude, JsonPropertyName("create_weight")] + public long CreateWeight { get; init; } + [JsonInclude, JsonPropertyName("create_weight_count")] + public long CreateWeightCount { get; init; } + [JsonInclude, JsonPropertyName("rewrite")] + public long Rewrite { get; init; } + [JsonInclude, JsonPropertyName("rewrite_count")] + public long RewriteCount { get; init; } + [JsonInclude, JsonPropertyName("term_statistics")] + public long TermStatistics { get; init; } + [JsonInclude, JsonPropertyName("term_statistics_count")] + public long TermStatisticsCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs new file mode 100644 index 00000000000..cabdc2faca5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs @@ -0,0 +1,46 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class DfsStatisticsProfile +{ + [JsonInclude, JsonPropertyName("breakdown")] + public Elastic.Clients.Elasticsearch.Core.Search.DfsStatisticsBreakdown Breakdown { get; init; } + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("debug")] + public IReadOnlyDictionary? Debug { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string Description { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_nanos")] + public long TimeInNanos { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs index 938ccad0fe5..bddd3f292b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Hit.g.cs @@ -40,7 +40,7 @@ public sealed partial class Hit [JsonInclude, JsonPropertyName("_ignored")] public IReadOnlyCollection? Ignored { get; init; } [JsonInclude, JsonPropertyName("ignored_field_values")] - public IReadOnlyDictionary>? IgnoredFieldValues { get; init; } + public IReadOnlyDictionary>? IgnoredFieldValues { get; init; } [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } [JsonInclude, JsonPropertyName("inner_hits")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs new file mode 100644 index 00000000000..aaec4e00032 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnCollectorResult.g.cs @@ -0,0 +1,42 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class KnnCollectorResult +{ + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("reason")] + public string Reason { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_nanos")] + public long TimeInNanos { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs new file mode 100644 index 00000000000..fa1f6814a4c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs @@ -0,0 +1,72 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class KnnQueryProfileBreakdown +{ + [JsonInclude, JsonPropertyName("advance")] + public long Advance { get; init; } + [JsonInclude, JsonPropertyName("advance_count")] + public long AdvanceCount { get; init; } + [JsonInclude, JsonPropertyName("build_scorer")] + public long BuildScorer { get; init; } + [JsonInclude, JsonPropertyName("build_scorer_count")] + public long BuildScorerCount { get; init; } + [JsonInclude, JsonPropertyName("compute_max_score")] + public long ComputeMaxScore { get; init; } + [JsonInclude, JsonPropertyName("compute_max_score_count")] + public long ComputeMaxScoreCount { get; init; } + [JsonInclude, JsonPropertyName("count_weight")] + public long CountWeight { get; init; } + [JsonInclude, JsonPropertyName("count_weight_count")] + public long CountWeightCount { get; init; } + [JsonInclude, JsonPropertyName("create_weight")] + public long CreateWeight { get; init; } + [JsonInclude, JsonPropertyName("create_weight_count")] + public long CreateWeightCount { get; init; } + [JsonInclude, JsonPropertyName("match")] + public long Match { get; init; } + [JsonInclude, JsonPropertyName("match_count")] + public long MatchCount { get; init; } + [JsonInclude, JsonPropertyName("next_doc")] + public long NextDoc { get; init; } + [JsonInclude, JsonPropertyName("next_doc_count")] + public long NextDocCount { get; init; } + [JsonInclude, JsonPropertyName("score")] + public long Score { get; init; } + [JsonInclude, JsonPropertyName("score_count")] + public long ScoreCount { get; init; } + [JsonInclude, JsonPropertyName("set_min_competitive_score")] + public long SetMinCompetitiveScore { get; init; } + [JsonInclude, JsonPropertyName("set_min_competitive_score_count")] + public long SetMinCompetitiveScoreCount { get; init; } + [JsonInclude, JsonPropertyName("shallow_advance")] + public long ShallowAdvance { get; init; } + [JsonInclude, JsonPropertyName("shallow_advance_count")] + public long ShallowAdvanceCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs new file mode 100644 index 00000000000..7482c065065 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs @@ -0,0 +1,46 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Search; + +public sealed partial class KnnQueryProfileResult +{ + [JsonInclude, JsonPropertyName("breakdown")] + public Elastic.Clients.Elasticsearch.Core.Search.KnnQueryProfileBreakdown Breakdown { get; init; } + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("debug")] + public IReadOnlyDictionary? Debug { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string Description { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_nanos")] + public long TimeInNanos { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs index 822a7c758e9..d89976f2084 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/QueryBreakdown.g.cs @@ -41,6 +41,10 @@ public sealed partial class QueryBreakdown public long ComputeMaxScore { get; init; } [JsonInclude, JsonPropertyName("compute_max_score_count")] public long ComputeMaxScoreCount { get; init; } + [JsonInclude, JsonPropertyName("count_weight")] + public long CountWeight { get; init; } + [JsonInclude, JsonPropertyName("count_weight_count")] + public long CountWeightCount { get; init; } [JsonInclude, JsonPropertyName("create_weight")] public long CreateWeight { get; init; } [JsonInclude, JsonPropertyName("create_weight_count")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs index d7f4b76f217..20cfb6d97b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs @@ -31,10 +31,20 @@ public sealed partial class ShardProfile { [JsonInclude, JsonPropertyName("aggregations")] public IReadOnlyCollection Aggregations { get; init; } + [JsonInclude, JsonPropertyName("cluster")] + public string Cluster { get; init; } + [JsonInclude, JsonPropertyName("dfs")] + public Elastic.Clients.Elasticsearch.Core.Search.DfsProfile? Dfs { get; init; } [JsonInclude, JsonPropertyName("fetch")] public Elastic.Clients.Elasticsearch.Core.Search.FetchProfile? Fetch { get; init; } [JsonInclude, JsonPropertyName("id")] public string Id { get; init; } + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } [JsonInclude, JsonPropertyName("searches")] public IReadOnlyCollection Searches { get; init; } + [JsonInclude, JsonPropertyName("shard_id")] + public long ShardId { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs new file mode 100644 index 00000000000..33fe1cb1b9f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/SearchShards/SearchShardsNodeAttributes.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.SearchShards; + +public sealed partial class SearchShardsNodeAttributes +{ + /// + /// + /// Lists node attributes. + /// + /// + [JsonInclude, JsonPropertyName("attributes")] + public IReadOnlyDictionary Attributes { get; init; } + + /// + /// + /// The ephemeral ID of the node. + /// + /// + [JsonInclude, JsonPropertyName("ephemeral_id")] + public string EphemeralId { get; init; } + [JsonInclude, JsonPropertyName("external_id")] + public string ExternalId { get; init; } + [JsonInclude, JsonPropertyName("max_index_version")] + public int MaxIndexVersion { get; init; } + [JsonInclude, JsonPropertyName("min_index_version")] + public int MinIndexVersion { get; init; } + + /// + /// + /// The human-readable identifier of the node. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } + + /// + /// + /// The host and port where transport HTTP connections are accepted. + /// + /// + [JsonInclude, JsonPropertyName("transport_address")] + public string TransportAddress { get; init; } + [JsonInclude, JsonPropertyName("version")] + public string Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs index ddbe347dbeb..b884acb0e98 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs @@ -35,8 +35,14 @@ public sealed partial class CacheStats public int Evictions { get; init; } [JsonInclude, JsonPropertyName("hits")] public int Hits { get; init; } + [JsonInclude, JsonPropertyName("hits_time_in_millis")] + public long HitsTimeInMillis { get; init; } [JsonInclude, JsonPropertyName("misses")] public int Misses { get; init; } + [JsonInclude, JsonPropertyName("misses_time_in_millis")] + public long MissesTimeInMillis { get; init; } [JsonInclude, JsonPropertyName("node_id")] public string NodeId { get; init; } + [JsonInclude, JsonPropertyName("size_in_bytes")] + public long SizeInBytes { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Esql.g.cs new file mode 100644 index 00000000000..88f73b46228 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Esql.g.cs @@ -0,0 +1,113 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +[JsonConverter(typeof(EsqlFormatConverter))] +public enum EsqlFormat +{ + [EnumMember(Value = "yaml")] + Yaml, + [EnumMember(Value = "txt")] + Txt, + [EnumMember(Value = "tsv")] + Tsv, + [EnumMember(Value = "smile")] + Smile, + [EnumMember(Value = "json")] + Json, + [EnumMember(Value = "csv")] + Csv, + [EnumMember(Value = "cbor")] + Cbor, + [EnumMember(Value = "arrow")] + Arrow +} + +internal sealed class EsqlFormatConverter : JsonConverter +{ + public override EsqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "yaml": + return EsqlFormat.Yaml; + case "txt": + return EsqlFormat.Txt; + case "tsv": + return EsqlFormat.Tsv; + case "smile": + return EsqlFormat.Smile; + case "json": + return EsqlFormat.Json; + case "csv": + return EsqlFormat.Csv; + case "cbor": + return EsqlFormat.Cbor; + case "arrow": + return EsqlFormat.Arrow; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, EsqlFormat value, JsonSerializerOptions options) + { + switch (value) + { + case EsqlFormat.Yaml: + writer.WriteStringValue("yaml"); + return; + case EsqlFormat.Txt: + writer.WriteStringValue("txt"); + return; + case EsqlFormat.Tsv: + writer.WriteStringValue("tsv"); + return; + case EsqlFormat.Smile: + writer.WriteStringValue("smile"); + return; + case EsqlFormat.Json: + writer.WriteStringValue("json"); + return; + case EsqlFormat.Csv: + writer.WriteStringValue("csv"); + return; + case EsqlFormat.Cbor: + writer.WriteStringValue("cbor"); + return; + case EsqlFormat.Arrow: + writer.WriteStringValue("arrow"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs index 5dc8701708d..c930a3155e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs @@ -105,6 +105,97 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali } } +[JsonConverter(typeof(GeoGridTargetFormatConverter))] +public enum GeoGridTargetFormat +{ + [EnumMember(Value = "wkt")] + Wkt, + [EnumMember(Value = "geojson")] + Geojson +} + +internal sealed class GeoGridTargetFormatConverter : JsonConverter +{ + public override GeoGridTargetFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "wkt": + return GeoGridTargetFormat.Wkt; + case "geojson": + return GeoGridTargetFormat.Geojson; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GeoGridTargetFormat value, JsonSerializerOptions options) + { + switch (value) + { + case GeoGridTargetFormat.Wkt: + writer.WriteStringValue("wkt"); + return; + case GeoGridTargetFormat.Geojson: + writer.WriteStringValue("geojson"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(GeoGridTileTypeConverter))] +public enum GeoGridTileType +{ + [EnumMember(Value = "geotile")] + Geotile, + [EnumMember(Value = "geohex")] + Geohex, + [EnumMember(Value = "geohash")] + Geohash +} + +internal sealed class GeoGridTileTypeConverter : JsonConverter +{ + public override GeoGridTileType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "geotile": + return GeoGridTileType.Geotile; + case "geohex": + return GeoGridTileType.Geohex; + case "geohash": + return GeoGridTileType.Geohash; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GeoGridTileType value, JsonSerializerOptions options) + { + switch (value) + { + case GeoGridTileType.Geotile: + writer.WriteStringValue("geotile"); + return; + case GeoGridTileType.Geohex: + writer.WriteStringValue("geohex"); + return; + case GeoGridTileType.Geohash: + writer.WriteStringValue("geohash"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(JsonProcessorConflictStrategyConverter))] public enum JsonProcessorConflictStrategy { @@ -202,26 +293,16 @@ public override void Write(Utf8JsonWriter writer, ShapeType value, JsonSerialize [JsonConverter(typeof(UserAgentPropertyConverter))] public enum UserAgentProperty { - [EnumMember(Value = "PATCH")] - Patch, - [EnumMember(Value = "OS_NAME")] - OsName, - [EnumMember(Value = "OS_MINOR")] - OsMinor, - [EnumMember(Value = "OS_MAJOR")] - OsMajor, - [EnumMember(Value = "OS")] + [EnumMember(Value = "version")] + Version, + [EnumMember(Value = "os")] Os, - [EnumMember(Value = "NAME")] + [EnumMember(Value = "original")] + Original, + [EnumMember(Value = "name")] Name, - [EnumMember(Value = "MINOR")] - Minor, - [EnumMember(Value = "MAJOR")] - Major, - [EnumMember(Value = "DEVICE")] - Device, - [EnumMember(Value = "BUILD")] - Build + [EnumMember(Value = "device")] + Device } internal sealed class UserAgentPropertyConverter : JsonConverter @@ -231,26 +312,16 @@ public override UserAgentProperty Read(ref Utf8JsonReader reader, Type typeToCon var enumString = reader.GetString(); switch (enumString) { - case "PATCH": - return UserAgentProperty.Patch; - case "OS_NAME": - return UserAgentProperty.OsName; - case "OS_MINOR": - return UserAgentProperty.OsMinor; - case "OS_MAJOR": - return UserAgentProperty.OsMajor; - case "OS": + case "version": + return UserAgentProperty.Version; + case "os": return UserAgentProperty.Os; - case "NAME": + case "original": + return UserAgentProperty.Original; + case "name": return UserAgentProperty.Name; - case "MINOR": - return UserAgentProperty.Minor; - case "MAJOR": - return UserAgentProperty.Major; - case "DEVICE": + case "device": return UserAgentProperty.Device; - case "BUILD": - return UserAgentProperty.Build; } ThrowHelper.ThrowJsonException(); @@ -261,35 +332,20 @@ public override void Write(Utf8JsonWriter writer, UserAgentProperty value, JsonS { switch (value) { - case UserAgentProperty.Patch: - writer.WriteStringValue("PATCH"); - return; - case UserAgentProperty.OsName: - writer.WriteStringValue("OS_NAME"); - return; - case UserAgentProperty.OsMinor: - writer.WriteStringValue("OS_MINOR"); - return; - case UserAgentProperty.OsMajor: - writer.WriteStringValue("OS_MAJOR"); + case UserAgentProperty.Version: + writer.WriteStringValue("version"); return; case UserAgentProperty.Os: - writer.WriteStringValue("OS"); + writer.WriteStringValue("os"); return; - case UserAgentProperty.Name: - writer.WriteStringValue("NAME"); + case UserAgentProperty.Original: + writer.WriteStringValue("original"); return; - case UserAgentProperty.Minor: - writer.WriteStringValue("MINOR"); - return; - case UserAgentProperty.Major: - writer.WriteStringValue("MAJOR"); + case UserAgentProperty.Name: + writer.WriteStringValue("name"); return; case UserAgentProperty.Device: - writer.WriteStringValue("DEVICE"); - return; - case UserAgentProperty.Build: - writer.WriteStringValue("BUILD"); + writer.WriteStringValue("device"); return; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.MachineLearning.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.MachineLearning.g.cs index 5b046096bd0..a9f89e68101 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.MachineLearning.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.MachineLearning.g.cs @@ -417,12 +417,32 @@ public override void Write(Utf8JsonWriter writer, DeploymentAllocationState valu [JsonConverter(typeof(DeploymentAssignmentStateConverter))] public enum DeploymentAssignmentState { + /// + /// + /// The deployment is preparing to stop and deallocate the model from the relevant nodes. + /// + /// [EnumMember(Value = "stopping")] Stopping, + /// + /// + /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes. + /// + /// [EnumMember(Value = "starting")] Starting, + /// + /// + /// The deployment is usable; at least one node has the model allocated. + /// + /// [EnumMember(Value = "started")] Started, + /// + /// + /// The deployment is on a failed state and must be re-deployed. + /// + /// [EnumMember(Value = "failed")] Failed } @@ -470,70 +490,6 @@ public override void Write(Utf8JsonWriter writer, DeploymentAssignmentState valu } } -[JsonConverter(typeof(DeploymentStateConverter))] -public enum DeploymentState -{ - /// - /// - /// The deployment is preparing to stop and deallocate the model from the relevant nodes. - /// - /// - [EnumMember(Value = "stopping")] - Stopping, - /// - /// - /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes. - /// - /// - [EnumMember(Value = "starting")] - Starting, - /// - /// - /// The deployment is usable; at least one node has the model allocated. - /// - /// - [EnumMember(Value = "started")] - Started -} - -internal sealed class DeploymentStateConverter : JsonConverter -{ - public override DeploymentState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DeploymentState.Stopping; - case "starting": - return DeploymentState.Starting; - case "started": - return DeploymentState.Started; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DeploymentState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentState.Started: - writer.WriteStringValue("started"); - return; - } - - writer.WriteNullValue(); - } -} - [JsonConverter(typeof(ExcludeFrequentConverter))] public enum ExcludeFrequent { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Sql.g.cs new file mode 100644 index 00000000000..5b2210e7a2a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Sql.g.cs @@ -0,0 +1,106 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Sql; + +[JsonConverter(typeof(SqlFormatConverter))] +public enum SqlFormat +{ + [EnumMember(Value = "yaml")] + Yaml, + [EnumMember(Value = "txt")] + Txt, + [EnumMember(Value = "tsv")] + Tsv, + [EnumMember(Value = "smile")] + Smile, + [EnumMember(Value = "json")] + Json, + [EnumMember(Value = "csv")] + Csv, + [EnumMember(Value = "cbor")] + Cbor +} + +internal sealed class SqlFormatConverter : JsonConverter +{ + public override SqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "yaml": + return SqlFormat.Yaml; + case "txt": + return SqlFormat.Txt; + case "tsv": + return SqlFormat.Tsv; + case "smile": + return SqlFormat.Smile; + case "json": + return SqlFormat.Json; + case "csv": + return SqlFormat.Csv; + case "cbor": + return SqlFormat.Cbor; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, SqlFormat value, JsonSerializerOptions options) + { + switch (value) + { + case SqlFormat.Yaml: + writer.WriteStringValue("yaml"); + return; + case SqlFormat.Txt: + writer.WriteStringValue("txt"); + return; + case SqlFormat.Tsv: + writer.WriteStringValue("tsv"); + return; + case SqlFormat.Smile: + writer.WriteStringValue("smile"); + return; + case SqlFormat.Json: + writer.WriteStringValue("json"); + return; + case SqlFormat.Csv: + writer.WriteStringValue("csv"); + return; + case SqlFormat.Cbor: + writer.WriteStringValue("cbor"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Xpack.g.cs new file mode 100644 index 00000000000..36d2bdbd1e9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Xpack.g.cs @@ -0,0 +1,78 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Xpack; + +[JsonConverter(typeof(XPackCategoryConverter))] +public enum XPackCategory +{ + [EnumMember(Value = "license")] + License, + [EnumMember(Value = "features")] + Features, + [EnumMember(Value = "build")] + Build +} + +internal sealed class XPackCategoryConverter : JsonConverter +{ + public override XPackCategory Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "license": + return XPackCategory.License; + case "features": + return XPackCategory.Features; + case "build": + return XPackCategory.Build; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, XPackCategory value, JsonSerializerOptions options) + { + switch (value) + { + case XPackCategory.License: + writer.WriteStringValue("license"); + return; + case XPackCategory.Features: + writer.WriteStringValue("features"); + return; + case XPackCategory.Build: + writer.WriteStringValue("build"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs index d89839c4c0b..b609af8460c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/AppendProcessor.g.cs @@ -94,6 +94,7 @@ public sealed partial class AppendProcessor /// /// [JsonInclude, JsonPropertyName("value")] + [SingleOrManyCollectionConverter(typeof(object))] public ICollection Value { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(AppendProcessor appendProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.Append(appendProcessor); @@ -331,7 +332,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); + SingleOrManySerializationHelper.Serialize(ValueValue, writer, options); writer.WriteEndObject(); } } @@ -568,7 +569,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); + SingleOrManySerializationHelper.Serialize(ValueValue, writer, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs index 43b03668fd3..0140218155e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DotExpanderProcessor.g.cs @@ -71,6 +71,16 @@ public sealed partial class DotExpanderProcessor [JsonInclude, JsonPropertyName("on_failure")] public ICollection? OnFailure { get; set; } + /// + /// + /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. + /// When false, the processor will merge conflicts by combining the old and the new values into an array. + /// When true, the value from the expanded field will overwrite the existing value. + /// + /// + [JsonInclude, JsonPropertyName("override")] + public bool? Override { get; set; } + /// /// /// The field that contains the field to expand. @@ -108,6 +118,7 @@ public DotExpanderProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action> OnFailureDescriptorAction { get; set; } private Action>[] OnFailureDescriptorActions { get; set; } + private bool? OverrideValue { get; set; } private string? PathValue { get; set; } private string? TagValue { get; set; } @@ -222,6 +233,19 @@ public DotExpanderProcessorDescriptor OnFailure(params Action + /// + /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. + /// When false, the processor will merge conflicts by combining the old and the new values into an array. + /// When true, the value from the expanded field will overwrite the existing value. + /// + /// + public DotExpanderProcessorDescriptor Override(bool? value = true) + { + OverrideValue = value; + return Self; + } + /// /// /// The field that contains the field to expand. @@ -300,6 +324,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (OverrideValue.HasValue) + { + writer.WritePropertyName("override"); + writer.WriteBooleanValue(OverrideValue.Value); + } + if (!string.IsNullOrEmpty(PathValue)) { writer.WritePropertyName("path"); @@ -332,6 +362,7 @@ public DotExpanderProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action OnFailureDescriptorAction { get; set; } private Action[] OnFailureDescriptorActions { get; set; } + private bool? OverrideValue { get; set; } private string? PathValue { get; set; } private string? TagValue { get; set; } @@ -446,6 +477,19 @@ public DotExpanderProcessorDescriptor OnFailure(params Action + /// + /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. + /// When false, the processor will merge conflicts by combining the old and the new values into an array. + /// When true, the value from the expanded field will overwrite the existing value. + /// + /// + public DotExpanderProcessorDescriptor Override(bool? value = true) + { + OverrideValue = value; + return Self; + } + /// /// /// The field that contains the field to expand. @@ -524,6 +568,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (OverrideValue.HasValue) + { + writer.WritePropertyName("override"); + writer.WriteBooleanValue(OverrideValue.Value); + } + if (!string.IsNullOrEmpty(PathValue)) { writer.WritePropertyName("path"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs new file mode 100644 index 00000000000..a0b61667ffe --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoGridProcessor.g.cs @@ -0,0 +1,1010 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class GeoGridProcessor +{ + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("children_field")] + public Elastic.Clients.Elasticsearch.Field? ChildrenField { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// The field to interpret as a geo-tile.= + /// The field format is determined by the tile_type. + /// + /// + [JsonInclude, JsonPropertyName("field")] + public string Field { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("non_children_field")] + public Elastic.Clients.Elasticsearch.Field? NonChildrenField { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + [JsonInclude, JsonPropertyName("parent_field")] + public Elastic.Clients.Elasticsearch.Field? ParentField { get; set; } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + [JsonInclude, JsonPropertyName("precision_field")] + public Elastic.Clients.Elasticsearch.Field? PrecisionField { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } + + /// + /// + /// Which format to save the generated polygon in. + /// + /// + [JsonInclude, JsonPropertyName("target_format")] + public Elastic.Clients.Elasticsearch.Ingest.GeoGridTargetFormat? TargetFormat { get; set; } + + /// + /// + /// Three tile formats are understood: geohash, geotile and geohex. + /// + /// + [JsonInclude, JsonPropertyName("tile_type")] + public Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType TileType { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(GeoGridProcessor geoGridProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.GeoGrid(geoGridProcessor); +} + +public sealed partial class GeoGridProcessorDescriptor : SerializableDescriptor> +{ + internal GeoGridProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public GeoGridProcessorDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Field? ChildrenFieldValue { get; set; } + private string? DescriptionValue { get; set; } + private string FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? NonChildrenFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Field? ParentFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? PrecisionFieldValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.GeoGridTargetFormat? TargetFormatValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType TileTypeValue { get; set; } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Elastic.Clients.Elasticsearch.Field? childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public GeoGridProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to interpret as a geo-tile.= + /// The field format is determined by the tile_type. + /// + /// + public GeoGridProcessorDescriptor Field(string field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public GeoGridProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public GeoGridProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public GeoGridProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Elastic.Clients.Elasticsearch.Field? nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public GeoGridProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Elastic.Clients.Elasticsearch.Field? parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Elastic.Clients.Elasticsearch.Field? precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public GeoGridProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Which format to save the generated polygon in. + /// + /// + public GeoGridProcessorDescriptor TargetFormat(Elastic.Clients.Elasticsearch.Ingest.GeoGridTargetFormat? targetFormat) + { + TargetFormatValue = targetFormat; + return Self; + } + + /// + /// + /// Three tile formats are understood: geohash, geotile and geohex. + /// + /// + public GeoGridProcessorDescriptor TileType(Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType tileType) + { + TileTypeValue = tileType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChildrenFieldValue is not null) + { + writer.WritePropertyName("children_field"); + JsonSerializer.Serialize(writer, ChildrenFieldValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (NonChildrenFieldValue is not null) + { + writer.WritePropertyName("non_children_field"); + JsonSerializer.Serialize(writer, NonChildrenFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (ParentFieldValue is not null) + { + writer.WritePropertyName("parent_field"); + JsonSerializer.Serialize(writer, ParentFieldValue, options); + } + + if (PrecisionFieldValue is not null) + { + writer.WritePropertyName("precision_field"); + JsonSerializer.Serialize(writer, PrecisionFieldValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TargetFormatValue is not null) + { + writer.WritePropertyName("target_format"); + JsonSerializer.Serialize(writer, TargetFormatValue, options); + } + + writer.WritePropertyName("tile_type"); + JsonSerializer.Serialize(writer, TileTypeValue, options); + writer.WriteEndObject(); + } +} + +public sealed partial class GeoGridProcessorDescriptor : SerializableDescriptor +{ + internal GeoGridProcessorDescriptor(Action configure) => configure.Invoke(this); + + public GeoGridProcessorDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Field? ChildrenFieldValue { get; set; } + private string? DescriptionValue { get; set; } + private string FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? NonChildrenFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Field? ParentFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? PrecisionFieldValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.GeoGridTargetFormat? TargetFormatValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType TileTypeValue { get; set; } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Elastic.Clients.Elasticsearch.Field? childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) + { + ChildrenFieldValue = childrenField; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public GeoGridProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to interpret as a geo-tile.= + /// The field format is determined by the tile_type. + /// + /// + public GeoGridProcessorDescriptor Field(string field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public GeoGridProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public GeoGridProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public GeoGridProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Elastic.Clients.Elasticsearch.Field? nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. + /// + /// + public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) + { + NonChildrenFieldValue = nonChildrenField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public GeoGridProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public GeoGridProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Elastic.Clients.Elasticsearch.Field? parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified and a parent tile exists, save that tile address to this field. + /// + /// + public GeoGridProcessorDescriptor ParentField(Expression> parentField) + { + ParentFieldValue = parentField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Elastic.Clients.Elasticsearch.Field? precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// If specified, save the tile precision (zoom) as an integer to this field. + /// + /// + public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) + { + PrecisionFieldValue = precisionField; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public GeoGridProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field to assign the polygon shape to, by default, the field is updated in-place. + /// + /// + public GeoGridProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Which format to save the generated polygon in. + /// + /// + public GeoGridProcessorDescriptor TargetFormat(Elastic.Clients.Elasticsearch.Ingest.GeoGridTargetFormat? targetFormat) + { + TargetFormatValue = targetFormat; + return Self; + } + + /// + /// + /// Three tile formats are understood: geohash, geotile and geohex. + /// + /// + public GeoGridProcessorDescriptor TileType(Elastic.Clients.Elasticsearch.Ingest.GeoGridTileType tileType) + { + TileTypeValue = tileType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChildrenFieldValue is not null) + { + writer.WritePropertyName("children_field"); + JsonSerializer.Serialize(writer, ChildrenFieldValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (NonChildrenFieldValue is not null) + { + writer.WritePropertyName("non_children_field"); + JsonSerializer.Serialize(writer, NonChildrenFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (ParentFieldValue is not null) + { + writer.WritePropertyName("parent_field"); + JsonSerializer.Serialize(writer, ParentFieldValue, options); + } + + if (PrecisionFieldValue is not null) + { + writer.WritePropertyName("precision_field"); + JsonSerializer.Serialize(writer, PrecisionFieldValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TargetFormatValue is not null) + { + writer.WritePropertyName("target_format"); + JsonSerializer.Serialize(writer, TargetFormatValue, options); + } + + writer.WritePropertyName("tile_type"); + JsonSerializer.Serialize(writer, TileTypeValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs index dcb30a270f1..db9452f8ded 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GeoIpProcessor.g.cs @@ -46,6 +46,15 @@ public sealed partial class GeoIpProcessor [JsonInclude, JsonPropertyName("description")] public string? Description { get; set; } + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + [JsonInclude, JsonPropertyName("download_database_on_pipeline_creation")] + public bool? DownloadDatabaseOnPipelineCreation { get; set; } + /// /// /// The field to get the ip address from for the geographical lookup. @@ -132,6 +141,7 @@ public GeoIpProcessorDescriptor() : base() private string? DatabaseFileValue { get; set; } private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private bool? FirstOnlyValue { get; set; } private string? IfValue { get; set; } @@ -168,6 +178,18 @@ public GeoIpProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public GeoIpProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + /// /// /// The field to get the ip address from for the geographical lookup. @@ -357,6 +379,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (FirstOnlyValue.HasValue) @@ -446,6 +474,7 @@ public GeoIpProcessorDescriptor() : base() private string? DatabaseFileValue { get; set; } private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private bool? FirstOnlyValue { get; set; } private string? IfValue { get; set; } @@ -482,6 +511,18 @@ public GeoIpProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public GeoIpProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + /// /// /// The field to get the ip address from for the geographical lookup. @@ -671,6 +712,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (FirstOnlyValue.HasValue) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs index 70279bc35bc..4d32454100b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Pipeline.g.cs @@ -29,6 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Ingest; public sealed partial class Pipeline { + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; set; } + /// /// /// Description of the ingest pipeline. @@ -79,6 +88,7 @@ public PipelineDescriptor() : base() { } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -91,6 +101,18 @@ public PipelineDescriptor() : base() private Action>[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PipelineDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -210,6 +232,12 @@ public PipelineDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); @@ -302,6 +330,7 @@ public PipelineDescriptor() : base() { } + private bool? DeprecatedValue { get; set; } private string? DescriptionValue { get; set; } private IDictionary? MetaValue { get; set; } private ICollection? OnFailureValue { get; set; } @@ -314,6 +343,18 @@ public PipelineDescriptor() : base() private Action[] ProcessorsDescriptorActions { get; set; } private long? VersionValue { get; set; } + /// + /// + /// Marks this ingest pipeline as deprecated. + /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. + /// + /// + public PipelineDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + /// /// /// Description of the ingest pipeline. @@ -433,6 +474,12 @@ public PipelineDescriptor Version(long? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + if (!string.IsNullOrEmpty(DescriptionValue)) { writer.WritePropertyName("description"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs index 5ee61318923..0df789b01d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs @@ -60,6 +60,7 @@ internal Processor(string variantName, object variant) public static Processor Enrich(Elastic.Clients.Elasticsearch.Ingest.EnrichProcessor enrichProcessor) => new Processor("enrich", enrichProcessor); public static Processor Fail(Elastic.Clients.Elasticsearch.Ingest.FailProcessor failProcessor) => new Processor("fail", failProcessor); public static Processor Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => new Processor("foreach", foreachProcessor); + public static Processor GeoGrid(Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor geoGridProcessor) => new Processor("geo_grid", geoGridProcessor); public static Processor Geoip(Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor geoIpProcessor) => new Processor("geoip", geoIpProcessor); public static Processor Grok(Elastic.Clients.Elasticsearch.Ingest.GrokProcessor grokProcessor) => new Processor("grok", grokProcessor); public static Processor Gsub(Elastic.Clients.Elasticsearch.Ingest.GsubProcessor gsubProcessor) => new Processor("gsub", gsubProcessor); @@ -70,6 +71,7 @@ internal Processor(string variantName, object variant) public static Processor Kv(Elastic.Clients.Elasticsearch.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); public static Processor Lowercase(Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor lowercaseProcessor) => new Processor("lowercase", lowercaseProcessor); public static Processor Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => new Processor("pipeline", pipelineProcessor); + public static Processor Redact(Elastic.Clients.Elasticsearch.Ingest.RedactProcessor redactProcessor) => new Processor("redact", redactProcessor); public static Processor Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => new Processor("remove", removeProcessor); public static Processor Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => new Processor("rename", renameProcessor); public static Processor Reroute(Elastic.Clients.Elasticsearch.Ingest.RerouteProcessor rerouteProcessor) => new Processor("reroute", rerouteProcessor); @@ -220,6 +222,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "geo_grid") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "geoip") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -290,6 +299,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "redact") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "remove") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -438,6 +454,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "foreach": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor)value.Variant, options); break; + case "geo_grid": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor)value.Variant, options); + break; case "geoip": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor)value.Variant, options); break; @@ -468,6 +487,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "pipeline": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor)value.Variant, options); break; + case "redact": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RedactProcessor)value.Variant, options); + break; case "remove": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor)value.Variant, options); break; @@ -573,6 +595,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Fail(Action> configure) => Set(configure, "fail"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action> configure) => Set(configure, "foreach"); + public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); + public ProcessorDescriptor GeoGrid(Action> configure) => Set(configure, "geo_grid"); public ProcessorDescriptor Geoip(Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor geoIpProcessor) => Set(geoIpProcessor, "geoip"); public ProcessorDescriptor Geoip(Action> configure) => Set(configure, "geoip"); public ProcessorDescriptor Grok(Elastic.Clients.Elasticsearch.Ingest.GrokProcessor grokProcessor) => Set(grokProcessor, "grok"); @@ -593,6 +617,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Lowercase(Action> configure) => Set(configure, "lowercase"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action> configure) => Set(configure, "pipeline"); + public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); + public ProcessorDescriptor Redact(Action> configure) => Set(configure, "redact"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action> configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); @@ -699,6 +725,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Fail(Action configure) => Set(configure, "fail"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action configure) => Set(configure, "foreach"); + public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); + public ProcessorDescriptor GeoGrid(Action configure) => Set(configure, "geo_grid"); public ProcessorDescriptor Geoip(Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor geoIpProcessor) => Set(geoIpProcessor, "geoip"); public ProcessorDescriptor Geoip(Action configure) => Set(configure, "geoip"); public ProcessorDescriptor Grok(Elastic.Clients.Elasticsearch.Ingest.GrokProcessor grokProcessor) => Set(grokProcessor, "grok"); @@ -719,6 +747,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Lowercase(Action configure) => Set(configure, "lowercase"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action configure) => Set(configure, "pipeline"); + public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); + public ProcessorDescriptor Redact(Action configure) => Set(configure, "redact"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs new file mode 100644 index 00000000000..d5254f4b816 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs @@ -0,0 +1,727 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class RedactProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// The field to be redacted + /// + /// + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Field Field { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and field does not exist or is null, the processor quietly exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + [JsonInclude, JsonPropertyName("pattern_definitions")] + public IDictionary? PatternDefinitions { get; set; } + + /// + /// + /// A list of grok expressions to match and redact named captures with + /// + /// + [JsonInclude, JsonPropertyName("patterns")] + public ICollection Patterns { get; set; } + + /// + /// + /// Start a redacted section with this token + /// + /// + [JsonInclude, JsonPropertyName("prefix")] + public string? Prefix { get; set; } + + /// + /// + /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document + /// + /// + [JsonInclude, JsonPropertyName("skip_if_unlicensed")] + public bool? SkipIfUnlicensed { get; set; } + + /// + /// + /// End a redacted section with this token + /// + /// + [JsonInclude, JsonPropertyName("suffix")] + public string? Suffix { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(RedactProcessor redactProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.Redact(redactProcessor); +} + +public sealed partial class RedactProcessorDescriptor : SerializableDescriptor> +{ + internal RedactProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public RedactProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private IDictionary? PatternDefinitionsValue { get; set; } + private ICollection PatternsValue { get; set; } + private string? PrefixValue { get; set; } + private bool? SkipIfUnlicensedValue { get; set; } + private string? SuffixValue { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RedactProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RedactProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RedactProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist or is null, the processor quietly exits without modifying the document. + /// + /// + public RedactProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RedactProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + public RedactProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) + { + PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// A list of grok expressions to match and redact named captures with + /// + /// + public RedactProcessorDescriptor Patterns(ICollection patterns) + { + PatternsValue = patterns; + return Self; + } + + /// + /// + /// Start a redacted section with this token + /// + /// + public RedactProcessorDescriptor Prefix(string? prefix) + { + PrefixValue = prefix; + return Self; + } + + /// + /// + /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document + /// + /// + public RedactProcessorDescriptor SkipIfUnlicensed(bool? skipIfUnlicensed = true) + { + SkipIfUnlicensedValue = skipIfUnlicensed; + return Self; + } + + /// + /// + /// End a redacted section with this token + /// + /// + public RedactProcessorDescriptor Suffix(string? suffix) + { + SuffixValue = suffix; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RedactProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PatternDefinitionsValue is not null) + { + writer.WritePropertyName("pattern_definitions"); + JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); + } + + writer.WritePropertyName("patterns"); + JsonSerializer.Serialize(writer, PatternsValue, options); + if (!string.IsNullOrEmpty(PrefixValue)) + { + writer.WritePropertyName("prefix"); + writer.WriteStringValue(PrefixValue); + } + + if (SkipIfUnlicensedValue.HasValue) + { + writer.WritePropertyName("skip_if_unlicensed"); + writer.WriteBooleanValue(SkipIfUnlicensedValue.Value); + } + + if (!string.IsNullOrEmpty(SuffixValue)) + { + writer.WritePropertyName("suffix"); + writer.WriteStringValue(SuffixValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class RedactProcessorDescriptor : SerializableDescriptor +{ + internal RedactProcessorDescriptor(Action configure) => configure.Invoke(this); + + public RedactProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private IDictionary? PatternDefinitionsValue { get; set; } + private ICollection PatternsValue { get; set; } + private string? PrefixValue { get; set; } + private bool? SkipIfUnlicensedValue { get; set; } + private string? SuffixValue { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RedactProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to be redacted + /// + /// + public RedactProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RedactProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RedactProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist or is null, the processor quietly exits without modifying the document. + /// + /// + public RedactProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RedactProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RedactProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RedactProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + public RedactProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) + { + PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// A list of grok expressions to match and redact named captures with + /// + /// + public RedactProcessorDescriptor Patterns(ICollection patterns) + { + PatternsValue = patterns; + return Self; + } + + /// + /// + /// Start a redacted section with this token + /// + /// + public RedactProcessorDescriptor Prefix(string? prefix) + { + PrefixValue = prefix; + return Self; + } + + /// + /// + /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document + /// + /// + public RedactProcessorDescriptor SkipIfUnlicensed(bool? skipIfUnlicensed = true) + { + SkipIfUnlicensedValue = skipIfUnlicensed; + return Self; + } + + /// + /// + /// End a redacted section with this token + /// + /// + public RedactProcessorDescriptor Suffix(string? suffix) + { + SuffixValue = suffix; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RedactProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PatternDefinitionsValue is not null) + { + writer.WritePropertyName("pattern_definitions"); + JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); + } + + writer.WritePropertyName("patterns"); + JsonSerializer.Serialize(writer, PatternsValue, options); + if (!string.IsNullOrEmpty(PrefixValue)) + { + writer.WritePropertyName("prefix"); + writer.WriteStringValue(PrefixValue); + } + + if (SkipIfUnlicensedValue.HasValue) + { + writer.WritePropertyName("skip_if_unlicensed"); + writer.WriteBooleanValue(SkipIfUnlicensedValue.Value); + } + + if (!string.IsNullOrEmpty(SuffixValue)) + { + writer.WritePropertyName("suffix"); + writer.WriteStringValue(SuffixValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs index d1ea59a81d4..34a08b30431 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/UserAgentProcessor.g.cs @@ -38,6 +38,14 @@ public sealed partial class UserAgentProcessor [JsonInclude, JsonPropertyName("description")] public string? Description { get; set; } + /// + /// + /// Extracts device type from the user agent string on a best-effort basis. + /// + /// + [JsonInclude, JsonPropertyName("extract_device_type")] + public bool? ExtractDeviceType { get; set; } + /// /// /// The field containing the user agent string. @@ -77,8 +85,14 @@ public sealed partial class UserAgentProcessor /// [JsonInclude, JsonPropertyName("on_failure")] public ICollection? OnFailure { get; set; } - [JsonInclude, JsonPropertyName("options")] - public ICollection? Options { get; set; } + + /// + /// + /// Controls what properties are added to target_field. + /// + /// + [JsonInclude, JsonPropertyName("properties")] + public ICollection? Properties { get; set; } /// /// @@ -117,6 +131,7 @@ public UserAgentProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private bool? ExtractDeviceTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -125,7 +140,7 @@ public UserAgentProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action> OnFailureDescriptorAction { get; set; } private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? OptionsValue { get; set; } + private ICollection? PropertiesValue { get; set; } private string? RegexFileValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } @@ -142,6 +157,17 @@ public UserAgentProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Extracts device type from the user agent string on a best-effort basis. + /// + /// + public UserAgentProcessorDescriptor ExtractDeviceType(bool? extractDeviceType = true) + { + ExtractDeviceTypeValue = extractDeviceType; + return Self; + } + /// /// /// The field containing the user agent string. @@ -249,9 +275,14 @@ public UserAgentProcessorDescriptor OnFailure(params Action Options(ICollection? options) + /// + /// + /// Controls what properties are added to target_field. + /// + /// + public UserAgentProcessorDescriptor Properties(ICollection? properties) { - OptionsValue = options; + PropertiesValue = properties; return Self; } @@ -320,6 +351,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (ExtractDeviceTypeValue.HasValue) + { + writer.WritePropertyName("extract_device_type"); + writer.WriteBooleanValue(ExtractDeviceTypeValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) @@ -371,10 +408,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } - if (OptionsValue is not null) + if (PropertiesValue is not null) { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); } if (!string.IsNullOrEmpty(RegexFileValue)) @@ -408,6 +445,7 @@ public UserAgentProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private bool? ExtractDeviceTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -416,7 +454,7 @@ public UserAgentProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action OnFailureDescriptorAction { get; set; } private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? OptionsValue { get; set; } + private ICollection? PropertiesValue { get; set; } private string? RegexFileValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } @@ -433,6 +471,17 @@ public UserAgentProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Extracts device type from the user agent string on a best-effort basis. + /// + /// + public UserAgentProcessorDescriptor ExtractDeviceType(bool? extractDeviceType = true) + { + ExtractDeviceTypeValue = extractDeviceType; + return Self; + } + /// /// /// The field containing the user agent string. @@ -540,9 +589,14 @@ public UserAgentProcessorDescriptor OnFailure(params Action? options) + /// + /// + /// Controls what properties are added to target_field. + /// + /// + public UserAgentProcessorDescriptor Properties(ICollection? properties) { - OptionsValue = options; + PropertiesValue = properties; return Self; } @@ -611,6 +665,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (ExtractDeviceTypeValue.HasValue) + { + writer.WritePropertyName("extract_device_type"); + writer.WriteBooleanValue(ExtractDeviceTypeValue.Value); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) @@ -662,10 +722,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } - if (OptionsValue is not null) + if (PropertiesValue is not null) { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); } if (!string.IsNullOrEmpty(RegexFileValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs index a0e178429e7..7bd01bd3b81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs @@ -55,6 +55,30 @@ public sealed partial class CalendarEvent [JsonInclude, JsonPropertyName("event_id")] public Elastic.Clients.Elasticsearch.Id? EventId { get; set; } + /// + /// + /// Shift time by this many seconds. For example adjust time for daylight savings changes + /// + /// + [JsonInclude, JsonPropertyName("force_time_shift")] + public int? ForceTimeShift { get; set; } + + /// + /// + /// When true the model will not be updated for this calendar period. + /// + /// + [JsonInclude, JsonPropertyName("skip_model_update")] + public bool? SkipModelUpdate { get; set; } + + /// + /// + /// When true the model will not create results for this calendar period. + /// + /// + [JsonInclude, JsonPropertyName("skip_result")] + public bool? SkipResult { get; set; } + /// /// /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. @@ -76,6 +100,9 @@ public CalendarEventDescriptor() : base() private string DescriptionValue { get; set; } private DateTimeOffset EndTimeValue { get; set; } private Elastic.Clients.Elasticsearch.Id? EventIdValue { get; set; } + private int? ForceTimeShiftValue { get; set; } + private bool? SkipModelUpdateValue { get; set; } + private bool? SkipResultValue { get; set; } private DateTimeOffset StartTimeValue { get; set; } /// @@ -117,6 +144,39 @@ public CalendarEventDescriptor EventId(Elastic.Clients.Elasticsearch.Id? eventId return Self; } + /// + /// + /// Shift time by this many seconds. For example adjust time for daylight savings changes + /// + /// + public CalendarEventDescriptor ForceTimeShift(int? forceTimeShift) + { + ForceTimeShiftValue = forceTimeShift; + return Self; + } + + /// + /// + /// When true the model will not be updated for this calendar period. + /// + /// + public CalendarEventDescriptor SkipModelUpdate(bool? skipModelUpdate = true) + { + SkipModelUpdateValue = skipModelUpdate; + return Self; + } + + /// + /// + /// When true the model will not create results for this calendar period. + /// + /// + public CalendarEventDescriptor SkipResult(bool? skipResult = true) + { + SkipResultValue = skipResult; + return Self; + } + /// /// /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. @@ -147,6 +207,24 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, EventIdValue, options); } + if (ForceTimeShiftValue.HasValue) + { + writer.WritePropertyName("force_time_shift"); + writer.WriteNumberValue(ForceTimeShiftValue.Value); + } + + if (SkipModelUpdateValue.HasValue) + { + writer.WritePropertyName("skip_model_update"); + writer.WriteBooleanValue(SkipModelUpdateValue.Value); + } + + if (SkipResultValue.HasValue) + { + writer.WritePropertyName("skip_result"); + writer.WriteBooleanValue(SkipResultValue.Value); + } + writer.WritePropertyName("start_time"); JsonSerializer.Serialize(writer, StartTimeValue, options); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs index 574d5e31fc4..145030816b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs @@ -130,7 +130,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.MachineLearning.DeploymentState State { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAssignmentState State { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs index 22981021119..a27bb3c9071 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BinaryProperty.g.cs @@ -50,8 +50,6 @@ public sealed partial class BinaryProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -74,7 +72,6 @@ public BinaryPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -152,12 +149,6 @@ public BinaryPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public BinaryPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -209,12 +200,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -235,7 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -255,7 +239,6 @@ public BinaryPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -333,12 +316,6 @@ public BinaryPropertyDescriptor Properties(Action? MetaValue { get; set; } private bool? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) @@ -208,12 +205,6 @@ public BooleanPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public BooleanPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -299,12 +290,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -353,7 +338,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -379,7 +363,6 @@ public BooleanPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private bool? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) @@ -499,12 +482,6 @@ public BooleanPropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public ByteNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ByteNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public ByteNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public ByteNumberPropertyDescriptor Script(Action Analyzer(string? analyzer) @@ -239,12 +236,6 @@ public CompletionPropertyDescriptor SearchAnalyzer(string? searchAnal return Self; } - public CompletionPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public CompletionPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -357,12 +348,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -413,7 +398,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -442,7 +426,6 @@ public CompletionPropertyDescriptor() : base() private bool? PreserveSeparatorsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private string? SearchAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public CompletionPropertyDescriptor Analyzer(string? analyzer) @@ -586,12 +569,6 @@ public CompletionPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) return Self; } - public CompletionPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public CompletionPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -704,12 +681,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -760,7 +731,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs new file mode 100644 index 00000000000..6d8b8077651 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompositeSubField.g.cs @@ -0,0 +1,59 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Mapping; + +public sealed partial class CompositeSubField +{ + [JsonInclude, JsonPropertyName("type")] + public Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType Type { get; set; } +} + +public sealed partial class CompositeSubFieldDescriptor : SerializableDescriptor +{ + internal CompositeSubFieldDescriptor(Action configure) => configure.Invoke(this); + + public CompositeSubFieldDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType TypeValue { get; set; } + + public CompositeSubFieldDescriptor Type(Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + JsonSerializer.Serialize(writer, TypeValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs index 8ee6c4ee1ce..fab89d7abb4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs @@ -62,8 +62,6 @@ public sealed partial class DateNanosProperty : IProperty public int? PrecisionStep { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -92,7 +90,6 @@ public DateNanosPropertyDescriptor() : base() private DateTimeOffset? NullValueValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateNanosPropertyDescriptor Boost(double? boost) @@ -206,12 +203,6 @@ public DateNanosPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DateNanosPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -299,12 +290,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -331,7 +316,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -357,7 +341,6 @@ public DateNanosPropertyDescriptor() : base() private DateTimeOffset? NullValueValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateNanosPropertyDescriptor Boost(double? boost) @@ -471,12 +454,6 @@ public DateNanosPropertyDescriptor Properties(Action Boost(double? boost) @@ -244,12 +241,6 @@ public DatePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DatePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -359,12 +350,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -417,7 +402,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -447,7 +431,6 @@ public DatePropertyDescriptor() : base() private DateTimeOffset? NullValueValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DatePropertyDescriptor Boost(double? boost) @@ -591,12 +574,6 @@ public DatePropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -86,7 +84,6 @@ public DateRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateRangePropertyDescriptor Boost(double? boost) @@ -188,12 +185,6 @@ public DateRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DateRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -269,12 +260,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -299,7 +284,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -323,7 +307,6 @@ public DateRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DateRangePropertyDescriptor Boost(double? boost) @@ -425,12 +408,6 @@ public DateRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public DoubleNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DoubleNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public DoubleNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public DoubleNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public DoubleRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DoubleRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public DoubleRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DoubleRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public DoubleRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public DoubleRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public DoubleRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -378,12 +375,6 @@ public DynamicPropertyDescriptor SearchQuoteAnalyzer(string? searchQu return Self; } - public DynamicPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DynamicPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -587,12 +578,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchQuoteAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -693,7 +678,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Script = BuildScript(), SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -739,7 +723,6 @@ public DynamicPropertyDescriptor() : base() private Action ScriptDescriptorAction { get; set; } private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -975,12 +958,6 @@ public DynamicPropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer return Self; } - public DynamicPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public DynamicPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -1184,12 +1161,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SearchQuoteAnalyzerValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -1290,7 +1261,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Script = BuildScript(), SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, Store = StoreValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs index 36c1706ac20..78b51afb62b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs @@ -64,8 +64,6 @@ public sealed partial class FloatNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -113,7 +111,6 @@ public FloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public FloatNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public FloatNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public FloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public FloatNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public FloatRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public FloatRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public FloatRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public FloatRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public FloatRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public FloatRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public FloatRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -226,12 +223,6 @@ public GeoPointPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public GeoPointPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -329,12 +320,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -385,7 +370,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue }; } @@ -413,7 +397,6 @@ public GeoPointPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -545,12 +528,6 @@ public GeoPointPropertyDescriptor Script(Action? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoStrategy? StrategyValue { get; set; } @@ -205,12 +202,6 @@ public GeoShapePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public GeoShapePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -292,12 +283,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -328,7 +313,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue, Strategy = StrategyValue }; @@ -360,7 +344,6 @@ public GeoShapePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoStrategy? StrategyValue { get; set; } @@ -463,12 +446,6 @@ public GeoShapePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public HalfFloatNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public HalfFloatNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public HalfFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public HalfFloatNumberPropertyDescriptor Script(Action Rules(string? rules) return Self; } - public IcuCollationPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IcuCollationPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -454,12 +445,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(RulesValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -511,7 +496,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Numeric = NumericValue, Properties = PropertiesValue, Rules = RulesValue, - Similarity = SimilarityValue, Store = StoreValue, Strength = StrengthValue, VariableTop = VariableTopValue, @@ -547,7 +531,6 @@ public IcuCollationPropertyDescriptor() : base() private bool? NumericValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private string? RulesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Analysis.IcuCollationStrength? StrengthValue { get; set; } private string? VariableTopValue { get; set; } @@ -716,12 +699,6 @@ public IcuCollationPropertyDescriptor Rules(string? rules) return Self; } - public IcuCollationPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IcuCollationPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -869,12 +846,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(RulesValue); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -926,7 +897,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Numeric = NumericValue, Properties = PropertiesValue, Rules = RulesValue, - Similarity = SimilarityValue, Store = StoreValue, Strength = StrengthValue, VariableTop = VariableTopValue, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs index 6317c6dc0e6..8d2512bed63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs @@ -64,8 +64,6 @@ public sealed partial class IntegerNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -113,7 +111,6 @@ public IntegerNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public IntegerNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IntegerNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public IntegerNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public IntegerNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public IntegerRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IntegerRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public IntegerRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IntegerRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public IntegerRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IntegerRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public IntegerRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } @@ -235,12 +232,6 @@ public IpPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IpPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -349,12 +340,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -411,7 +396,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue }; @@ -440,7 +424,6 @@ public IpPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } @@ -573,12 +556,6 @@ public IpPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public IpRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IpRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public IpRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public IpRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public IpRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public IpRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public IpRangePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public LongNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public LongNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public LongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public LongNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -83,7 +81,6 @@ public LongRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public LongRangePropertyDescriptor Boost(double? boost) @@ -179,12 +176,6 @@ public LongRangePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public LongRangePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public LongRangePropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public LongRangePropertyDescriptor Boost(double? boost) @@ -402,12 +385,6 @@ public LongRangePropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -74,7 +72,6 @@ public Murmur3HashPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -152,12 +149,6 @@ public Murmur3HashPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public Murmur3HashPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -209,12 +200,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -235,7 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -255,7 +239,6 @@ public Murmur3HashPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -333,12 +316,6 @@ public Murmur3HashPropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -80,7 +78,6 @@ public NestedPropertyDescriptor() : base() private bool? IncludeInRootValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -170,12 +167,6 @@ public NestedPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public NestedPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -239,12 +230,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -267,7 +252,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IncludeInRoot = IncludeInRootValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -289,7 +273,6 @@ public NestedPropertyDescriptor() : base() private bool? IncludeInRootValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -379,12 +362,6 @@ public NestedPropertyDescriptor Properties(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } [JsonInclude, JsonPropertyName("subobjects")] @@ -76,7 +74,6 @@ public ObjectPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? SubobjectsValue { get; set; } @@ -155,12 +152,6 @@ public ObjectPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ObjectPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -218,12 +209,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -250,7 +235,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue, Subobjects = SubobjectsValue }; @@ -271,7 +255,6 @@ public ObjectPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? SubobjectsValue { get; set; } @@ -350,12 +333,6 @@ public ObjectPropertyDescriptor Properties(Action? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -179,12 +176,6 @@ public PointPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public PointPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -254,12 +245,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -283,7 +268,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -306,7 +290,6 @@ public PointPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -402,12 +385,6 @@ public PointPropertyDescriptor Properties(Action? FetchFields { get; set; } + /// + /// + /// For type composite + /// + /// + [JsonInclude, JsonPropertyName("fields")] + public IDictionary? Fields { get; set; } + /// /// /// A custom format for date type runtime fields. @@ -98,6 +106,7 @@ public RuntimeFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldFetchFieldsDescriptor FetchFieldsDescriptor { get; set; } private Action> FetchFieldsDescriptorAction { get; set; } private Action>[] FetchFieldsDescriptorActions { get; set; } + private IDictionary FieldsValue { get; set; } private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Field? InputFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -148,6 +157,17 @@ public RuntimeFieldDescriptor FetchFields(params Action + /// + /// For type composite + /// + /// + public RuntimeFieldDescriptor Fields(Func, FluentDescriptorDictionary> selector) + { + FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + /// /// /// A custom format for date type runtime fields. @@ -310,6 +330,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FetchFieldsValue, options); } + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + if (!string.IsNullOrEmpty(FormatValue)) { writer.WritePropertyName("format"); @@ -368,6 +394,7 @@ public RuntimeFieldDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldFetchFieldsDescriptor FetchFieldsDescriptor { get; set; } private Action FetchFieldsDescriptorAction { get; set; } private Action[] FetchFieldsDescriptorActions { get; set; } + private IDictionary FieldsValue { get; set; } private string? FormatValue { get; set; } private Elastic.Clients.Elasticsearch.Field? InputFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -418,6 +445,17 @@ public RuntimeFieldDescriptor FetchFields(params Action + /// + /// For type composite + /// + /// + public RuntimeFieldDescriptor Fields(Func, FluentDescriptorDictionary> selector) + { + FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + /// /// /// A custom format for date type runtime fields. @@ -580,6 +618,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FetchFieldsValue, options); } + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + if (!string.IsNullOrEmpty(FormatValue)) { writer.WritePropertyName("format"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs index c32c2f20aa6..af85a307d39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs @@ -66,8 +66,6 @@ public sealed partial class ScaledFloatNumberProperty : IProperty public double? ScalingFactor { get; set; } [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -116,7 +114,6 @@ public ScaledFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -262,12 +259,6 @@ public ScaledFloatNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ScaledFloatNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -399,12 +390,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -469,7 +454,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, ScalingFactor = ScalingFactorValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -501,7 +485,6 @@ public ScaledFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -647,12 +630,6 @@ public ScaledFloatNumberPropertyDescriptor Script(Action? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ShapePropertyDescriptor Coerce(bool? coerce = true) @@ -202,12 +199,6 @@ public ShapePropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ShapePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -283,12 +274,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -313,7 +298,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -344,7 +328,6 @@ public ShapePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public ShapePropertyDescriptor Coerce(bool? coerce = true) @@ -446,12 +429,6 @@ public ShapePropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public ShortNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public ShortNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public ShortNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public ShortNumberPropertyDescriptor Script(Action? MetaValue { get; set; } private double? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public TokenCountPropertyDescriptor Analyzer(string? analyzer) @@ -197,12 +194,6 @@ public TokenCountPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public TokenCountPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -284,12 +275,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -315,7 +300,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -340,7 +324,6 @@ public TokenCountPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private double? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public TokenCountPropertyDescriptor Analyzer(string? analyzer) @@ -448,12 +431,6 @@ public TokenCountPropertyDescriptor Properties(Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -253,12 +250,6 @@ public UnsignedLongNumberPropertyDescriptor Script(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public UnsignedLongNumberPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -384,12 +375,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ScriptValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -453,7 +438,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Similarity = SimilarityValue, Store = StoreValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue @@ -484,7 +468,6 @@ public UnsignedLongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -624,12 +607,6 @@ public UnsignedLongNumberPropertyDescriptor Script(Action? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } @@ -74,7 +72,6 @@ public VersionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -152,12 +149,6 @@ public VersionPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public VersionPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -209,12 +200,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -235,7 +220,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -255,7 +239,6 @@ public VersionPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -333,12 +316,6 @@ public VersionPropertyDescriptor Properties(Action? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -161,12 +158,6 @@ public WildcardPropertyDescriptor Properties(Action Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - public WildcardPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -224,12 +215,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -251,7 +236,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Similarity = SimilarityValue, Store = StoreValue }; } @@ -272,7 +256,6 @@ public WildcardPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -356,12 +339,6 @@ public WildcardPropertyDescriptor Properties(Action [JsonInclude, JsonPropertyName("ephemeral_id")] public string EphemeralId { get; init; } - [JsonInclude, JsonPropertyName("external_id")] - public string? ExternalId { get; init; } /// /// @@ -62,8 +60,6 @@ public sealed partial class NodeAttributes /// [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs index 26dad0d1a8f..987f8bd961b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Http.g.cs @@ -46,6 +46,14 @@ public sealed partial class Http [JsonInclude, JsonPropertyName("current_open")] public int? CurrentOpen { get; init; } + /// + /// + /// Detailed HTTP stats broken down by route + /// + /// + [JsonInclude, JsonPropertyName("routes")] + public IReadOnlyDictionary Routes { get; init; } + /// /// /// Total number of HTTP connections opened for the node. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs new file mode 100644 index 00000000000..5a7a73b0dbd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRoute.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class HttpRoute +{ + [JsonInclude, JsonPropertyName("requests")] + public Elastic.Clients.Elasticsearch.Nodes.HttpRouteRequests Requests { get; init; } + [JsonInclude, JsonPropertyName("responses")] + public Elastic.Clients.Elasticsearch.Nodes.HttpRouteResponses Responses { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs new file mode 100644 index 00000000000..dc7a3eed1e9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteRequests.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class HttpRouteRequests +{ + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + [JsonInclude, JsonPropertyName("size_histogram")] + public IReadOnlyCollection SizeHistogram { get; init; } + [JsonInclude, JsonPropertyName("total_size_in_bytes")] + public long TotalSizeInBytes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs new file mode 100644 index 00000000000..af52dc353ce --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/HttpRouteResponses.g.cs @@ -0,0 +1,40 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class HttpRouteResponses +{ + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + [JsonInclude, JsonPropertyName("handling_time_histogram")] + public IReadOnlyCollection HandlingTimeHistogram { get; init; } + [JsonInclude, JsonPropertyName("size_histogram")] + public IReadOnlyCollection SizeHistogram { get; init; } + [JsonInclude, JsonPropertyName("total_size_in_bytes")] + public long TotalSizeInBytes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs index c006508a460..b313cac7a44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/Ingest.g.cs @@ -35,7 +35,7 @@ public sealed partial class Ingest /// /// [JsonInclude, JsonPropertyName("pipelines")] - public IReadOnlyDictionary? Pipelines { get; init; } + public IReadOnlyDictionary? Pipelines { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs new file mode 100644 index 00000000000..03ebdc03a38 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestStats.g.cs @@ -0,0 +1,92 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class IngestStats +{ + /// + /// + /// Total number of documents ingested during the lifetime of this node. + /// + /// + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + + /// + /// + /// Total number of documents currently being ingested. + /// + /// + [JsonInclude, JsonPropertyName("current")] + public long Current { get; init; } + + /// + /// + /// Total number of failed ingest operations during the lifetime of this node. + /// + /// + [JsonInclude, JsonPropertyName("failed")] + public long Failed { get; init; } + + /// + /// + /// Total number of bytes of all documents ingested by the pipeline. + /// This field is only present on pipelines which are the first to process a document. + /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. + /// + /// + [JsonInclude, JsonPropertyName("ingested_as_first_pipeline_in_bytes")] + public long IngestedAsFirstPipelineInBytes { get; init; } + + /// + /// + /// Total number of ingest processors. + /// + /// + [JsonInclude, JsonPropertyName("processors")] + public IReadOnlyCollection> Processors { get; init; } + + /// + /// + /// Total number of bytes of all documents produced by the pipeline. + /// This field is only present on pipelines which are the first to process a document. + /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. + /// In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run. + /// + /// + [JsonInclude, JsonPropertyName("produced_as_first_pipeline_in_bytes")] + public long ProducedAsFirstPipelineInBytes { get; init; } + + /// + /// + /// Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node. + /// + /// + [JsonInclude, JsonPropertyName("time_in_millis")] + public long TimeInMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs index 36be833970c..9984b1514d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/IngestTotal.g.cs @@ -35,7 +35,7 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } + public long Count { get; init; } /// /// @@ -43,7 +43,7 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("current")] - public long? Current { get; init; } + public long Current { get; init; } /// /// @@ -51,15 +51,7 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("failed")] - public long? Failed { get; init; } - - /// - /// - /// Total number of ingest processors. - /// - /// - [JsonInclude, JsonPropertyName("processors")] - public IReadOnlyCollection>? Processors { get; init; } + public long Failed { get; init; } /// /// @@ -67,5 +59,5 @@ public sealed partial class IngestTotal /// /// [JsonInclude, JsonPropertyName("time_in_millis")] - public long? TimeInMillis { get; init; } + public long TimeInMillis { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs new file mode 100644 index 00000000000..0014092d70b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/SizeHttpHistogram.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class SizeHttpHistogram +{ + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + [JsonInclude, JsonPropertyName("ge_bytes")] + public long? GeBytes { get; init; } + [JsonInclude, JsonPropertyName("lt_bytes")] + public long? LtBytes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs new file mode 100644 index 00000000000..71bc31a204f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/TimeHttpHistogram.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class TimeHttpHistogram +{ + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + [JsonInclude, JsonPropertyName("ge_millis")] + public long? GeMillis { get; init; } + [JsonInclude, JsonPropertyName("lt_millis")] + public long? LtMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs index 288028f159a..47cb8cf5415 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs @@ -48,6 +48,12 @@ public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert continue; } + if (property == "minimum_should_match") + { + variant.MinimumShouldMatch = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "minimum_should_match_field") { variant.MinimumShouldMatchField = JsonSerializer.Deserialize(ref reader, options); @@ -68,7 +74,7 @@ public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "terms") { - variant.Terms = JsonSerializer.Deserialize>(ref reader, options); + variant.Terms = JsonSerializer.Deserialize>(ref reader, options); continue; } } @@ -93,6 +99,12 @@ public override void Write(Utf8JsonWriter writer, TermsSetQuery value, JsonSeria writer.WriteNumberValue(value.Boost.Value); } + if (value.MinimumShouldMatch is not null) + { + writer.WritePropertyName("minimum_should_match"); + JsonSerializer.Serialize(writer, value.MinimumShouldMatch, options); + } + if (value.MinimumShouldMatchField is not null) { writer.WritePropertyName("minimum_should_match_field"); @@ -139,6 +151,13 @@ public TermsSetQuery(Elastic.Clients.Elasticsearch.Field field) public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Field Field { get; set; } + /// + /// + /// Specification describing number of matching terms required to return a document. + /// + /// + public Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatch { get; set; } + /// /// /// Numeric field containing the number of matching terms required to return a document. @@ -159,7 +178,7 @@ public TermsSetQuery(Elastic.Clients.Elasticsearch.Field field) /// Array of terms you wish to find in the provided field. /// /// - public ICollection Terms { get; set; } + public ICollection Terms { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(TermsSetQuery termsSetQuery) => Elastic.Clients.Elasticsearch.QueryDsl.Query.TermsSet(termsSetQuery); } @@ -174,12 +193,13 @@ public TermsSetQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } private Elastic.Clients.Elasticsearch.Field? MinimumShouldMatchFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor MinimumShouldMatchScriptDescriptor { get; set; } private Action MinimumShouldMatchScriptDescriptorAction { get; set; } private string? QueryNameValue { get; set; } - private ICollection TermsValue { get; set; } + private ICollection TermsValue { get; set; } /// /// @@ -213,6 +233,17 @@ public TermsSetQueryDescriptor Field(Expression + /// + /// Specification describing number of matching terms required to return a document. + /// + /// + public TermsSetQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.MinimumShouldMatch? minimumShouldMatch) + { + MinimumShouldMatchValue = minimumShouldMatch; + return Self; + } + /// /// /// Numeric field containing the number of matching terms required to return a document. @@ -286,7 +317,7 @@ public TermsSetQueryDescriptor QueryName(string? queryName) /// Array of terms you wish to find in the provided field. /// /// - public TermsSetQueryDescriptor Terms(ICollection terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; @@ -305,6 +336,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } + if (MinimumShouldMatchValue is not null) + { + writer.WritePropertyName("minimum_should_match"); + JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); + } + if (MinimumShouldMatchFieldValue is not null) { writer.WritePropertyName("minimum_should_match_field"); @@ -350,12 +387,13 @@ public TermsSetQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } private Elastic.Clients.Elasticsearch.Field? MinimumShouldMatchFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScriptValue { get; set; } private Elastic.Clients.Elasticsearch.ScriptDescriptor MinimumShouldMatchScriptDescriptor { get; set; } private Action MinimumShouldMatchScriptDescriptorAction { get; set; } private string? QueryNameValue { get; set; } - private ICollection TermsValue { get; set; } + private ICollection TermsValue { get; set; } /// /// @@ -389,6 +427,17 @@ public TermsSetQueryDescriptor Field(Expression + /// + /// Specification describing number of matching terms required to return a document. + /// + /// + public TermsSetQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.MinimumShouldMatch? minimumShouldMatch) + { + MinimumShouldMatchValue = minimumShouldMatch; + return Self; + } + /// /// /// Numeric field containing the number of matching terms required to return a document. @@ -462,7 +511,7 @@ public TermsSetQueryDescriptor QueryName(string? queryName) /// Array of terms you wish to find in the provided field. /// /// - public TermsSetQueryDescriptor Terms(ICollection terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; @@ -481,6 +530,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } + if (MinimumShouldMatchValue is not null) + { + writer.WritePropertyName("minimum_should_match"); + JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); + } + if (MinimumShouldMatchFieldValue is not null) { writer.WritePropertyName("minimum_should_match_field"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs new file mode 100644 index 00000000000..76e91fab6de --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs @@ -0,0 +1,363 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class RemoteIndicesPrivileges +{ + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + [JsonInclude, JsonPropertyName("allow_restricted_indices")] + public bool? AllowRestrictedIndices { get; set; } + + /// + /// + /// A list of cluster aliases to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("clusters")] + public Elastic.Clients.Elasticsearch.Names Clusters { get; set; } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + [JsonInclude, JsonPropertyName("field_security")] + public Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurity { get; set; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("names")] + public Elastic.Clients.Elasticsearch.Indices Names { get; set; } + + /// + /// + /// The index level privileges that owners of the role have on the specified indices. + /// + /// + [JsonInclude, JsonPropertyName("privileges")] + public ICollection Privileges { get; set; } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + [JsonInclude, JsonPropertyName("query")] + public object? Query { get; set; } +} + +public sealed partial class RemoteIndicesPrivilegesDescriptor : SerializableDescriptor> +{ + internal RemoteIndicesPrivilegesDescriptor(Action> configure) => configure.Invoke(this); + + public RemoteIndicesPrivilegesDescriptor() : base() + { + } + + private bool? AllowRestrictedIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Names ClustersValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } + private Action> FieldSecurityDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } + private ICollection PrivilegesValue { get; set; } + private object? QueryValue { get; set; } + + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + public RemoteIndicesPrivilegesDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) + { + AllowRestrictedIndicesValue = allowRestrictedIndices; + return Self; + } + + /// + /// + /// A list of cluster aliases to which the permissions in this entry apply. + /// + /// + public RemoteIndicesPrivilegesDescriptor Clusters(Elastic.Clients.Elasticsearch.Names clusters) + { + ClustersValue = clusters; + return Self; + } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + public RemoteIndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurity? fieldSecurity) + { + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = null; + FieldSecurityValue = fieldSecurity; + return Self; + } + + public RemoteIndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor descriptor) + { + FieldSecurityValue = null; + FieldSecurityDescriptorAction = null; + FieldSecurityDescriptor = descriptor; + return Self; + } + + public RemoteIndicesPrivilegesDescriptor FieldSecurity(Action> configure) + { + FieldSecurityValue = null; + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = configure; + return Self; + } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public RemoteIndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) + { + NamesValue = names; + return Self; + } + + /// + /// + /// The index level privileges that owners of the role have on the specified indices. + /// + /// + public RemoteIndicesPrivilegesDescriptor Privileges(ICollection privileges) + { + PrivilegesValue = privileges; + return Self; + } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + public RemoteIndicesPrivilegesDescriptor Query(object? query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowRestrictedIndicesValue.HasValue) + { + writer.WritePropertyName("allow_restricted_indices"); + writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); + } + + writer.WritePropertyName("clusters"); + JsonSerializer.Serialize(writer, ClustersValue, options); + if (FieldSecurityDescriptor is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); + } + else if (FieldSecurityDescriptorAction is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); + } + else if (FieldSecurityValue is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityValue, options); + } + + writer.WritePropertyName("names"); + JsonSerializer.Serialize(writer, NamesValue, options); + writer.WritePropertyName("privileges"); + JsonSerializer.Serialize(writer, PrivilegesValue, options); + if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class RemoteIndicesPrivilegesDescriptor : SerializableDescriptor +{ + internal RemoteIndicesPrivilegesDescriptor(Action configure) => configure.Invoke(this); + + public RemoteIndicesPrivilegesDescriptor() : base() + { + } + + private bool? AllowRestrictedIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Names ClustersValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } + private Action FieldSecurityDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } + private ICollection PrivilegesValue { get; set; } + private object? QueryValue { get; set; } + + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + public RemoteIndicesPrivilegesDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) + { + AllowRestrictedIndicesValue = allowRestrictedIndices; + return Self; + } + + /// + /// + /// A list of cluster aliases to which the permissions in this entry apply. + /// + /// + public RemoteIndicesPrivilegesDescriptor Clusters(Elastic.Clients.Elasticsearch.Names clusters) + { + ClustersValue = clusters; + return Self; + } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + public RemoteIndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurity? fieldSecurity) + { + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = null; + FieldSecurityValue = fieldSecurity; + return Self; + } + + public RemoteIndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor descriptor) + { + FieldSecurityValue = null; + FieldSecurityDescriptorAction = null; + FieldSecurityDescriptor = descriptor; + return Self; + } + + public RemoteIndicesPrivilegesDescriptor FieldSecurity(Action configure) + { + FieldSecurityValue = null; + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = configure; + return Self; + } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public RemoteIndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) + { + NamesValue = names; + return Self; + } + + /// + /// + /// The index level privileges that owners of the role have on the specified indices. + /// + /// + public RemoteIndicesPrivilegesDescriptor Privileges(ICollection privileges) + { + PrivilegesValue = privileges; + return Self; + } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + public RemoteIndicesPrivilegesDescriptor Query(object? query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowRestrictedIndicesValue.HasValue) + { + writer.WritePropertyName("allow_restricted_indices"); + writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); + } + + writer.WritePropertyName("clusters"); + JsonSerializer.Serialize(writer, ClustersValue, options); + if (FieldSecurityDescriptor is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); + } + else if (FieldSecurityDescriptorAction is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); + } + else if (FieldSecurityValue is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityValue, options); + } + + writer.WritePropertyName("names"); + JsonSerializer.Serialize(writer, NamesValue, options); + writer.WritePropertyName("privileges"); + JsonSerializer.Serialize(writer, PrivilegesValue, options); + if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs index 7609f772fa3..06ff9ad73cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs @@ -31,6 +31,8 @@ public sealed partial class SnapshotShardFailure { [JsonInclude, JsonPropertyName("index")] public string Index { get; init; } + [JsonInclude, JsonPropertyName("index_uuid")] + public string IndexUuid { get; init; } [JsonInclude, JsonPropertyName("node_id")] public string? NodeId { get; init; } [JsonInclude, JsonPropertyName("reason")] From 8c3ab780f1f011a4581daaf11c512a55f6ad0942 Mon Sep 17 00:00:00 2001 From: Marci W <333176+marciw@users.noreply.github.com> Date: Tue, 1 Oct 2024 06:10:34 -0400 Subject: [PATCH 05/28] [DOCS] Spruce up the Introduction (#8372) --- docs/intro.asciidoc | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/docs/intro.asciidoc b/docs/intro.asciidoc index 919b9f9dff1..d638ad6acac 100644 --- a/docs/intro.asciidoc +++ b/docs/intro.asciidoc @@ -5,34 +5,33 @@ *Rapidly develop applications with the .NET client for {es}.* -Designed for .NET client-application developers, you can utilize the .NET language client -library, which provides a strongly-typed API and query DSL to interact with {es}. -The .NET client library is designed to make it easy to use {es} from your .NET -applications. The .NET client includes higher-level abstractions, such as +Designed for .NET application developers, the .NET language client +library provides a strongly typed API and query DSL for interacting with {es}. +The .NET client includes higher-level abstractions, such as helpers for coordinating bulk indexing and update operations. It also comes with built-in, configurable cluster failover retry mechanisms. The {es} .NET client is available as a https://www.nuget.org/packages/Elastic.Clients.Elasticsearch[NuGet] -package that can be used in .NET Core, .NET 5+ and .NET Framework (4.6.1 and higher) +package for use with .NET Core, .NET 5+, and .NET Framework (4.6.1 and later) applications. -_NOTE: This documentation relates to the v8 .NET client for {es}, designed for use -with {es} 8.x versions. To develop applications targetting {es} v7, you should -use the https://www.elastic.co/guide/en/elasticsearch/client/net-api/7.17[v7 (NEST) client]._ +_NOTE: This documentation covers the v8 .NET client for {es}, for use +with {es} 8.x versions. To develop applications targeting {es} v7, use the +https://www.elastic.co/guide/en/elasticsearch/client/net-api/7.17[v7 (NEST) client]._ [discrete] [[features]] === Features -* One-to-one mapping with REST API. +* One-to-one mapping with the REST API. * Strongly typed requests and responses for {es} APIs. * Fluent API for building requests. * Query DSL to assist with constructing search queries. * Helpers for common tasks such as bulk indexing of documents. -* Pluggable serialization of requests and responses based on System.Text.Json. +* Pluggable serialization of requests and responses based on `System.Text.Json`. * Diagnostics, auditing, and .NET activity integration. -The .NET {es} client is built upon the Elastic Transport library which provides: +The .NET {es} client is built on the Elastic Transport library, which provides: * Connection management and load balancing across all available nodes. * Request retries and dead connections handling. @@ -40,17 +39,16 @@ The .NET {es} client is built upon the Elastic Transport library which provides: [discrete] === {es} version compatibility -Language clients are forward compatible; meaning that clients support communicating -with greater or equal minor versions of {es}. {es} language clients are only -backwards compatible with default distributions and without guarantees made. +Language clients are forward compatible: clients support communicating +with current and later minor versions of {es}. {es} language clients are +backward compatible with default distributions only and without guarantees. [discrete] === Questions, bugs, comments, feature requests -Bug reports and feature requests are more than welcome on the -{github}/issues[github issues pages]! +To submit a bug report or feature request, use +{github}/issues[GitHub issues]. -For more general questions and comments, we monitor questions and discussions -opened on our community forum, https://discuss.elastic.co/c/elasticsearch[discuss.elastic.co]. -Mentioning `.NET` in the title helps folks quickly identify what -the question is about. \ No newline at end of file +For more general questions and comments, try the community forum +on https://discuss.elastic.co/c/elasticsearch[discuss.elastic.co]. +Mention `.NET` in the title to indicate the discussion topic. \ No newline at end of file From a484f0050eb3837b597a79e2187a5365ecc43f30 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Fri, 11 Oct 2024 15:35:45 +0200 Subject: [PATCH 06/28] Move away from shared project (#8376) --- .buildkite/DockerFile | 2 +- .buildkite/pipeline.yml | 2 +- .buildkite/run-repository.ps1 | 2 +- .buildkite/run-repository.sh | 2 +- .buildkite/run-tests.ps1 | 2 +- .ci/DockerFile | 2 +- .ci/make.sh | 8 +- .ci/readme.md | 2 +- .ci/run-repository.ps1 | 10 +- .ci/run-repository.sh | 6 +- .ci/run-tests.ps1 | 6 +- .ci/test-matrix.yml | 2 +- .github/workflows/integration-jobs.yml | 15 +- .github/workflows/make-bump.yml | 8 +- .github/workflows/make-release-notes.yml | 20 +- .github/workflows/release.yml | 4 +- .github/workflows/stale-jobs.yml | 11 +- .github/workflows/test-jobs.yml | 19 +- .github/workflows/unified-release.yml | 8 +- .gitignore | 1 + Directory.Build.props | 8 +- Directory.Build.targets | 3 - Elasticsearch.sln | 121 +- benchmarks/Benchmarks/packages.lock.json | 1204 ------- benchmarks/Profiling/packages.lock.json | 130 - build/scripts/Building.fs | 1 - build/scripts/Paths.fs | 5 +- build/scripts/packages.lock.json | 1308 ------- build/scripts/scripts.fsproj | 1 - global.json | 4 +- .../packages.lock.json | 796 ----- ...ic.Clients.Elasticsearch.Serverless.csproj | 9 +- .../packages.lock.json | 771 ----- ...tic.Clients.Elasticsearch.Shared.projitems | 14 - ...lastic.Clients.Elasticsearch.Shared.shproj | 13 - .../Elastic.Clients.Elasticsearch.csproj | 8 - .../Api/AsyncSearch/GetAsyncSearchRequest.cs | 0 .../AsyncSearch/SubmitAsyncSearchRequest.cs | 0 .../_Shared}/Api/BulkRequest.cs | 0 .../_Shared}/Api/BulkResponse.cs | 0 .../_Shared}/Api/CountRequest.cs | 0 .../_Shared}/Api/CreateRequest.cs | 0 .../_Shared}/Api/DeleteRequest.cs | 0 .../_Shared}/Api/Eql/EqlGetResponse.cs | 0 .../_Shared}/Api/Esql/EsqlQueryRequest.cs | 0 .../_Shared}/Api/Esql/EsqlQueryResponse.cs | 0 .../_Shared}/Api/ExistsRequest.cs | 0 .../_Shared}/Api/ExistsResponse.cs | 0 .../_Shared}/Api/ExistsSourceResponse.cs | 0 .../Api/GetSourceRequestDescriptor.cs | 0 .../_Shared}/Api/GetSourceResponse.cs | 0 .../IndexManagement/ExistsAliasResponse.cs | 0 .../ExistsIndexTemplateResponse.cs | 0 .../Api/IndexManagement/ExistsResponse.cs | 0 .../IndexManagement/ExistsTemplateResponse.cs | 0 .../Api/IndexManagement/GetAliasResponse.cs | 0 .../GetFieldMappingResponse.cs | 0 .../Api/IndexManagement/GetIndexResponse.cs | 0 .../Api/IndexManagement/GetMappingResponse.cs | 0 .../_Shared}/Api/IndexRequest.cs | 0 .../Api/Ingest/GetPipelineResponse.cs | 0 .../_Shared}/Api/MultiSearchRequest.cs | 0 .../_Shared}/Api/ResponseItem.cs | 0 .../_Shared}/Api/ScrollResponse.cs | 0 .../_Shared}/Api/SearchRequest.cs | 0 .../_Shared}/Api/SearchResponse.cs | 0 .../_Shared}/Api/Sql/GetAsyncResponse.cs | 0 .../_Shared}/Api/Sql/QueryResponse.cs | 0 .../Client/ElasticsearchClient-BulkAll.cs | 0 .../Client/ElasticsearchClient-Manual.cs | 0 .../Client/ElasticsearchClient.Esql.cs | 0 .../_Shared}/Client/ElasticsearchClient.cs | 0 .../ElasticsearchResponseBaseExtensions.cs | 0 .../_Shared}/Client/IndexManyExtensions.cs | 0 .../_Shared}/Client/IndicesNamespace.cs | 0 .../_Shared}/Client/NamespacedClientProxy.cs | 0 .../Core/Configuration/ClrTypeDefaults.cs | 0 .../ElasticsearchClientSettings.cs | 0 .../IElasticsearchClientSettings.cs | 0 .../Core/Configuration/MemberInfoResolver.cs | 0 .../Core/DateTime/DateMath/DateMath.cs | 0 .../DateTime/DateMath/DateMathExpression.cs | 0 .../DateTime/DateMath/DateMathOperation.cs | 0 .../Core/DateTime/DateMath/DateMathTime.cs | 0 .../DateTime/DateMath/DateMathTimeUnit.cs | 0 .../_Shared}/Core/DateTime/Duration.cs | 0 .../_Shared}/Core/DateTime/TimeUnit.cs | 0 .../_Shared}/Core/EmptyReadOnly.cs | 0 .../_Shared}/Core/EmptyReadOnlyExtensions.cs | 0 .../_Shared}/Core/Exceptions/ThrowHelper.cs | 0 .../Core/Extensions/ExceptionExtensions.cs | 0 .../Core/Extensions/ExpressionExtensions.cs | 0 .../_Shared}/Core/Extensions/Extensions.cs | 0 .../Core/Extensions/StringExtensions.cs | 0 .../Core/Extensions/SuffixExtensions.cs | 0 .../Core/Extensions/TaskExtensions.cs | 0 .../Core/Extensions/TypeExtensions.cs | 0 .../_Shared}/Core/Fields/FieldValue.cs | 0 .../_Shared}/Core/Fields/FieldValues.cs | 0 .../_Shared}/Core/Fluent/Descriptor.cs | 0 .../_Shared}/Core/Fluent/Fluent.cs | 0 .../_Shared}/Core/Fluent/FluentDictionary.cs | 0 .../Core/Fluent/IBuildableDescriptor.cs | 0 .../_Shared}/Core/Fluent/Promise/IPromise.cs | 0 .../Fluent/Promise/IsADictionaryDescriptor.cs | 0 .../Core/Fluent/Promise/PromiseDescriptor.cs | 0 .../_Shared}/Core/IComplexUnion.cs | 0 .../_Shared}/Core/IEnumStruct.cs | 0 .../Infer/DefaultPropertyMappingProvider.cs | 0 .../Core/Infer/DocumentPath/DocumentPath.cs | 0 .../_Shared}/Core/Infer/Field/Field.cs | 0 .../Core/Infer/Field/FieldConverter.cs | 0 .../Infer/Field/FieldExpressionVisitor.cs | 0 .../Core/Infer/Field/FieldExtensions.cs | 0 .../Core/Infer/Field/FieldResolver.cs | 0 .../Infer/Field/ToStringExpressionVisitor.cs | 0 .../_Shared}/Core/Infer/Fields/Fields.cs | 0 .../Core/Infer/Fields/FieldsConverter.cs | 0 .../Core/Infer/Fields/FieldsDescriptor.cs | 0 .../Core/Infer/IPropertyMappingProvider.cs | 0 .../_Shared}/Core/Infer/Id/Id.cs | 0 .../_Shared}/Core/Infer/Id/IdConverter.cs | 0 .../_Shared}/Core/Infer/Id/IdExtensions.cs | 0 .../_Shared}/Core/Infer/Id/IdResolver.cs | 0 .../_Shared}/Core/Infer/Id/Ids.cs | 0 .../_Shared}/Core/Infer/Id/IdsConverter.cs | 0 .../Core/Infer/IndexName/IndexName.cs | 0 .../Infer/IndexName/IndexNameConverter.cs | 0 .../Infer/IndexName/IndexNameExtensions.cs | 0 .../Core/Infer/IndexName/IndexNameResolver.cs | 0 .../_Shared}/Core/Infer/Indices/Indices.cs | 0 .../_Shared}/Core/Infer/Inferrer.cs | 0 .../_Shared}/Core/Infer/JoinField.cs | 0 .../_Shared}/Core/Infer/JoinFieldConverter.cs | 0 .../Core/Infer/JoinFieldRouting/Routing.cs | 0 .../JoinFieldRouting/RoutingConverter.cs | 0 .../_Shared}/Core/Infer/Metric/Metrics.cs | 0 .../_Shared}/Core/Infer/PropertyMapping.cs | 0 .../Core/Infer/PropertyName/PropertyName.cs | 0 .../PropertyName/PropertyNameExtensions.cs | 0 .../Core/Infer/RelationName/RelationName.cs | 0 .../RelationName/RelationNameResolver.cs | 0 .../_Shared}/Core/Infer/RoutingResolver.cs | 0 .../Core/Infer/Timestamp/Timestamp.cs | 0 .../_Shared}/Core/IsADictionary.cs | 0 .../_Shared}/Core/IsAReadOnlyDictionary.cs | 0 .../_Shared}/Core/LazyJson.cs | 0 .../_Shared}/Core/MinimumShouldMatch.cs | 0 .../Core/OpenTelemetry/SemanticConventions.cs | 0 .../_Shared}/Core/RawJsonString.cs | 0 .../_Shared}/Core/ReadOnlyFieldDictionary.cs | 0 .../Core/ReadOnlyIndexNameDictionary.cs | 0 .../_Shared}/Core/Request/ApiUrls.cs | 2 +- .../_Shared}/Core/Request/PlainRequest.cs | 0 .../_Shared}/Core/Request/Request.cs | 0 .../Core/Request/RequestDescriptor.cs | 0 .../_Shared}/Core/Request/RouteValues.cs | 0 .../_Shared}/Core/Request/UrlLookup.cs | 0 .../Core/Response/DictionaryResponse.cs | 0 .../Response/ResolvableDictionaryProxy.cs | 0 .../_Shared}/Core/Static/Infer.cs | 0 .../_Shared}/Core/Union/Union.cs | 0 .../DataStreamNames/DataStreamName.cs | 0 .../DataStreamNames/DataStreamNames.cs | 0 .../UrlParameters/IndexAlias/IndexAlias.cs | 0 .../Core/UrlParameters/IndexUuid/IndexUuid.cs | 0 .../_Shared}/Core/UrlParameters/Name/Name.cs | 0 .../_Shared}/Core/UrlParameters/Name/Names.cs | 0 .../Core/UrlParameters/NodeIds/NodeIds.cs | 0 .../Core/UrlParameters/ScrollIds/ScrollId.cs | 0 .../Core/UrlParameters/ScrollIds/ScrollIds.cs | 0 .../Core/UrlParameters/TaskId/TaskId.cs | 0 .../Core/UrlParameters/Username/Username.cs | 0 .../_Shared}/CrossPlatform/IsExternalInit.cs | 0 .../_Shared}/CrossPlatform/NativeMethods.cs | 0 .../CrossPlatform/NullableAttributes.cs | 0 .../CrossPlatform/RuntimeInformation.cs | 0 .../_Shared}/CrossPlatform/TypeExtensions.cs | 0 .../Exceptions/UnsupportedProductException.cs | 0 .../Helpers/BlockingSubscribeExtensions.cs | 0 .../_Shared}/Helpers/BulkAllObservable.cs | 0 .../_Shared}/Helpers/BulkAllObserver.cs | 0 .../_Shared}/Helpers/BulkAllRequest.cs | 0 .../_Shared}/Helpers/BulkAllResponse.cs | 0 .../Helpers/CoordinatedRequestDefaults.cs | 0 .../Helpers/CoordinatedRequestObserverBase.cs | 0 .../_Shared}/Helpers/HelperIdentifiers.cs | 0 .../_Shared}/Helpers/IBulkAllRequest.cs | 0 .../_Shared}/Helpers/IHelperCallable.cs | 0 .../_Shared}/Helpers/PartitionHelper.cs | 0 .../Helpers/ProducerConsumerBackPressure.cs | 0 .../Helpers/RequestMetaDataExtensions.cs | 0 .../Helpers/RequestMetaDataFactory.cs | 0 .../Helpers/RequestParametersExtensions.cs | 0 .../Serialization/CustomizedNamingPolicy.cs | 0 .../DefaultRequestResponseSerializer.cs | 0 .../Serialization/DefaultSourceSerializer.cs | 0 .../DictionaryResponseConverter.cs | 0 .../DoubleWithFractionalPortionConverter.cs | 0 .../Serialization/EnumStructConverter.cs | 0 .../GenericConverterAttribute.cs | 0 .../_Shared}/Serialization/ISourceMarker.cs | 0 .../Serialization/IStreamSerializable.cs | 0 .../Serialization/IUnionVerifiable.cs | 0 .../Serialization/InterfaceConverter.cs | 0 .../InterfaceConverterAttribute.cs | 0 .../IntermediateSourceConverter.cs | 0 .../IsADictionaryConverterFactory.cs | 0 .../_Shared}/Serialization/JsonConstants.cs | 0 .../_Shared}/Serialization/JsonHelper.cs | 0 .../JsonSerializerOptionsExtensions.cs | 0 .../Serialization/KeyValuePairConverter.cs | 0 .../Serialization/MultiItemUnionConverter.cs | 0 .../Serialization/NumericAliasConverter.cs | 0 .../ObjectToInferredTypesConverter.cs | 0 .../Serialization/PropertyNameConverter.cs | 0 .../_Shared}/Serialization/QueryConverter.cs | 0 .../ReadOnlyFieldDictionaryConverter.cs | 0 .../ReadOnlyIndexNameDictionaryConverter.cs | 0 ...vableReadonlyDictionaryConverterFactory.cs | 0 .../ResponseItemConverterFactory.cs | 0 .../Serialization/SelfSerializable.cs | 0 .../SelfSerializableConverterFactory.cs | 0 .../Serialization/SerializationConstants.cs | 0 .../Serialization/SerializerExtensions.cs | 0 .../Serialization/SettingsJsonConverter.cs | 0 .../Serialization/SimpleInterfaceConverter.cs | 0 .../SingleOrManyCollectionAttribute.cs | 0 .../SingleOrManyCollectionConverter.cs | 0 .../SingleOrManySerializationHelper.cs | 0 .../SingleWithFractionalPortionConverter.cs | 0 .../_Shared}/Serialization/SourceConverter.cs | 0 .../Serialization/SourceConverterAttribute.cs | 0 .../Serialization/SourceConverterFactory.cs | 0 .../_Shared}/Serialization/SourceMarker.cs | 0 .../Serialization/SourceSerialization.cs | 0 .../Serialization/StringAliasConverter.cs | 0 .../Serialization/StringEnumAttribute.cs | 0 .../_Shared}/Serialization/Stringified.cs | 0 .../Serialization/SystemTextJsonSerializer.cs | 0 .../TermsAggregateSerializationHelper.cs | 0 .../_Shared}/Serialization/UnionConverter.cs | 0 .../Types/Aggregations/AggregateOrder.cs | 0 .../Types/Aggregations/BucketsPath.cs | 0 .../Types/Aggregations/TermsExclude.cs | 0 .../Types/Aggregations/TermsInclude.cs | 0 .../_Shared}/Types/AsyncSearch/AsyncSearch.cs | 0 .../Types/Core/Bulk/BulkCreateOperation.cs | 0 .../Bulk/BulkCreateOperationDescriptor.cs | 0 .../Types/Core/Bulk/BulkDeleteOperation.cs | 0 .../Bulk/BulkDeleteOperationDescriptor.cs | 0 .../Types/Core/Bulk/BulkIndexOperation.cs | 0 .../Core/Bulk/BulkIndexOperationDescriptor.cs | 0 .../_Shared}/Types/Core/Bulk/BulkOperation.cs | 0 .../Core/Bulk/BulkOperationDescriptor.cs | 0 .../Core/Bulk/BulkOperationsCollection.cs | 0 .../Core/Bulk/BulkResponseItemConverter.cs | 0 .../Types/Core/Bulk/BulkUpdateBody.cs | 0 .../Types/Core/Bulk/BulkUpdateOperation.cs | 0 .../Bulk/BulkUpdateOperationDescriptor.cs | 0 .../Types/Core/Bulk/BulkUpdateOperationT.cs | 0 .../Bulk/BulkUpdateOperationWithPartial.cs | 0 .../Bulk/BulkUpdateOperationWithScript.cs | 0 .../Types/Core/Bulk/IBulkOperation.cs | 0 .../Types/Core/Bulk/PartialBulkUpdateBody.cs | 0 .../Bulk/Response/BulkCreateResponseItem.cs | 0 .../Bulk/Response/BulkDeleteResponseItem.cs | 0 .../Bulk/Response/BulkIndexResponseItem.cs | 0 .../Bulk/Response/BulkUpdateResponseItem.cs | 0 .../Types/Core/Bulk/ScriptedBulkUpdateBody.cs | 0 .../Types/Core/MSearch/SearchRequestItem.cs | 0 .../SearchTemplateRequestItem.cs | 0 .../Types/Core/Search/SourceConfigParam.cs | 0 .../_Shared}/Types/FieldSort.cs | 0 .../_Shared}/Types/GeoLocation.cs | 0 .../_Shared}/Types/Mapping/Properties.cs | 0 .../Types/Mapping/PropertiesDescriptor.cs | 0 .../Types/Mapping/PropertyNameExtensions.cs | 0 .../_Shared}/Types/MultiSearchItem.cs | 0 .../_Shared}/Types/OpType.cs | 0 .../Types/PointInTimeReferenceDescriptor.cs | 0 .../_Shared}/Types/QueryDsl/BoolQuery.cs | 0 .../Types/QueryDsl/BoolQueryAndExtensions.cs | 0 .../Types/QueryDsl/BoolQueryExtensions.cs | 0 .../Types/QueryDsl/BoolQueryOrExtensions.cs | 0 .../_Shared}/Types/QueryDsl/FunctionScore.cs | 0 .../_Shared}/Types/QueryDsl/Query.cs | 0 .../_Shared}/Types/QueryDsl/RangeQuery.cs | 0 .../_Shared}/Types/QueryDsl/RawJsonQuery.cs | 0 .../_Shared}/Types/Ranges.cs | 0 .../_Shared}/Types/Refresh.cs | 0 .../_Shared}/Types/Slices.cs | 0 .../_Shared}/Types/SortOptions.cs | 0 .../_Shared}/Types/SourceConfig.cs | 0 .../_Shared}/Types/Sql/SqlRow.cs | 0 .../_Shared}/Types/Sql/SqlValue.cs | 0 .../_Shared}/Types/WaitForActiveShards.cs | 0 .../packages.lock.json | 771 ----- src/Playground/Playground.csproj | 5 +- src/Playground/packages.lock.json | 167 - src/PlaygroundV7x/Person.cs | 31 - src/PlaygroundV7x/PlaygroundV7x.csproj | 13 - src/PlaygroundV7x/Program.cs | 263 -- src/PlaygroundV7x/packages.lock.json | 113 - tests/Directory.Build.props | 3 - .../Tests.ClusterLauncher/packages.lock.json | 2628 -------------- tests/Tests.Configuration/packages.lock.json | 1119 ------ tests/Tests.Core/packages.lock.json | 1619 --------- tests/Tests.Domain/packages.lock.json | 1155 ------- .../GeoCentroidAggregationUsageTests.cs | 1 - .../OpenTelemetry/OpenTelemetryTests.cs | 4 +- .../QueryDsl/BoolDsl/OperatorUsageBase.cs | 2 +- tests/Tests/Tests.csproj | 6 + tests/Tests/packages.lock.json | 3074 ----------------- 314 files changed, 101 insertions(+), 15403 deletions(-) delete mode 100644 benchmarks/Benchmarks/packages.lock.json delete mode 100644 benchmarks/Profiling/packages.lock.json delete mode 100644 build/scripts/packages.lock.json delete mode 100644 src/Elastic.Clients.Elasticsearch.JsonNetSerializer/packages.lock.json delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/packages.lock.json delete mode 100644 src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.projitems delete mode 100644 src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.shproj rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/AsyncSearch/GetAsyncSearchRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/AsyncSearch/SubmitAsyncSearchRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/BulkRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/BulkResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/CountRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/CreateRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/DeleteRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/Eql/EqlGetResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/Esql/EsqlQueryRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/Esql/EsqlQueryResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/ExistsRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/ExistsResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/ExistsSourceResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/GetSourceRequestDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/GetSourceResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/ExistsAliasResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/ExistsIndexTemplateResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/ExistsResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/ExistsTemplateResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/GetAliasResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/GetFieldMappingResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/GetIndexResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexManagement/GetMappingResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/IndexRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/Ingest/GetPipelineResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/MultiSearchRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/ResponseItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/ScrollResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/SearchRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/SearchResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/Sql/GetAsyncResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Api/Sql/QueryResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/ElasticsearchClient-BulkAll.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/ElasticsearchClient-Manual.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/ElasticsearchClient.Esql.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/ElasticsearchClient.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/ElasticsearchResponseBaseExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/IndexManyExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/IndicesNamespace.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Client/NamespacedClientProxy.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Configuration/ClrTypeDefaults.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Configuration/ElasticsearchClientSettings.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Configuration/IElasticsearchClientSettings.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Configuration/MemberInfoResolver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/DateMath/DateMath.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/DateMath/DateMathExpression.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/DateMath/DateMathOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/DateMath/DateMathTime.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/DateMath/DateMathTimeUnit.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/Duration.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/DateTime/TimeUnit.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/EmptyReadOnly.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/EmptyReadOnlyExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Exceptions/ThrowHelper.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/ExceptionExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/ExpressionExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/Extensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/StringExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/SuffixExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/TaskExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Extensions/TypeExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fields/FieldValue.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fields/FieldValues.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/Descriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/Fluent.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/FluentDictionary.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/IBuildableDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/Promise/IPromise.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/Promise/IsADictionaryDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Fluent/Promise/PromiseDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/IComplexUnion.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/IEnumStruct.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/DefaultPropertyMappingProvider.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/DocumentPath/DocumentPath.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Field/Field.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Field/FieldConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Field/FieldExpressionVisitor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Field/FieldExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Field/FieldResolver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Field/ToStringExpressionVisitor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Fields/Fields.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Fields/FieldsConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Fields/FieldsDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/IPropertyMappingProvider.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Id/Id.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Id/IdConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Id/IdExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Id/IdResolver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Id/Ids.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Id/IdsConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/IndexName/IndexName.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/IndexName/IndexNameConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/IndexName/IndexNameExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/IndexName/IndexNameResolver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Indices/Indices.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Inferrer.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/JoinField.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/JoinFieldConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/JoinFieldRouting/Routing.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/JoinFieldRouting/RoutingConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Metric/Metrics.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/PropertyMapping.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/PropertyName/PropertyName.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/PropertyName/PropertyNameExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/RelationName/RelationName.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/RelationName/RelationNameResolver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/RoutingResolver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Infer/Timestamp/Timestamp.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/IsADictionary.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/IsAReadOnlyDictionary.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/LazyJson.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/MinimumShouldMatch.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/OpenTelemetry/SemanticConventions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/RawJsonString.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/ReadOnlyFieldDictionary.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/ReadOnlyIndexNameDictionary.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Request/ApiUrls.cs (96%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Request/PlainRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Request/Request.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Request/RequestDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Request/RouteValues.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Request/UrlLookup.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Response/DictionaryResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Response/ResolvableDictionaryProxy.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Static/Infer.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/Union/Union.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/DataStreamNames/DataStreamName.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/DataStreamNames/DataStreamNames.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/IndexAlias/IndexAlias.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/IndexUuid/IndexUuid.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/Name/Name.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/Name/Names.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/NodeIds/NodeIds.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/ScrollIds/ScrollId.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/ScrollIds/ScrollIds.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/TaskId/TaskId.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Core/UrlParameters/Username/Username.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/CrossPlatform/IsExternalInit.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/CrossPlatform/NativeMethods.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/CrossPlatform/NullableAttributes.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/CrossPlatform/RuntimeInformation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/CrossPlatform/TypeExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Exceptions/UnsupportedProductException.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/BlockingSubscribeExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/BulkAllObservable.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/BulkAllObserver.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/BulkAllRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/BulkAllResponse.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/CoordinatedRequestDefaults.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/CoordinatedRequestObserverBase.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/HelperIdentifiers.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/IBulkAllRequest.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/IHelperCallable.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/PartitionHelper.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/ProducerConsumerBackPressure.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/RequestMetaDataExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/RequestMetaDataFactory.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Helpers/RequestParametersExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/CustomizedNamingPolicy.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/DefaultRequestResponseSerializer.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/DefaultSourceSerializer.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/DictionaryResponseConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/DoubleWithFractionalPortionConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/EnumStructConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/GenericConverterAttribute.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/ISourceMarker.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/IStreamSerializable.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/IUnionVerifiable.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/InterfaceConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/InterfaceConverterAttribute.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/IntermediateSourceConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/IsADictionaryConverterFactory.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/JsonConstants.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/JsonHelper.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/JsonSerializerOptionsExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/KeyValuePairConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/MultiItemUnionConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/NumericAliasConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/ObjectToInferredTypesConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/PropertyNameConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/QueryConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/ReadOnlyFieldDictionaryConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/ReadOnlyIndexNameDictionaryConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/ResponseItemConverterFactory.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SelfSerializable.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SelfSerializableConverterFactory.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SerializationConstants.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SerializerExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SettingsJsonConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SimpleInterfaceConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SingleOrManyCollectionAttribute.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SingleOrManyCollectionConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SingleOrManySerializationHelper.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SingleWithFractionalPortionConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SourceConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SourceConverterAttribute.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SourceConverterFactory.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SourceMarker.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SourceSerialization.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/StringAliasConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/StringEnumAttribute.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/Stringified.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/SystemTextJsonSerializer.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/TermsAggregateSerializationHelper.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Serialization/UnionConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Aggregations/AggregateOrder.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Aggregations/BucketsPath.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Aggregations/TermsExclude.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Aggregations/TermsInclude.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/AsyncSearch/AsyncSearch.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkCreateOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkCreateOperationDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkDeleteOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkIndexOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkIndexOperationDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkOperationDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkOperationsCollection.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkResponseItemConverter.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkUpdateBody.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkUpdateOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkUpdateOperationT.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/BulkUpdateOperationWithScript.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/IBulkOperation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/PartialBulkUpdateBody.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/Response/BulkCreateResponseItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/Response/BulkIndexResponseItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Bulk/ScriptedBulkUpdateBody.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/MSearch/SearchRequestItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Core/Search/SourceConfigParam.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/FieldSort.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/GeoLocation.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Mapping/Properties.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Mapping/PropertiesDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Mapping/PropertyNameExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/MultiSearchItem.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/OpType.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/PointInTimeReferenceDescriptor.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/BoolQuery.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/BoolQueryAndExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/BoolQueryExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/BoolQueryOrExtensions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/FunctionScore.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/Query.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/RangeQuery.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/QueryDsl/RawJsonQuery.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Ranges.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Refresh.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Slices.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/SortOptions.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/SourceConfig.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Sql/SqlRow.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/Sql/SqlValue.cs (100%) rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch/_Shared}/Types/WaitForActiveShards.cs (100%) delete mode 100644 src/Elastic.Clients.Elasticsearch/packages.lock.json delete mode 100644 src/Playground/packages.lock.json delete mode 100644 src/PlaygroundV7x/Person.cs delete mode 100644 src/PlaygroundV7x/PlaygroundV7x.csproj delete mode 100644 src/PlaygroundV7x/Program.cs delete mode 100644 src/PlaygroundV7x/packages.lock.json delete mode 100644 tests/Tests.ClusterLauncher/packages.lock.json delete mode 100644 tests/Tests.Configuration/packages.lock.json delete mode 100644 tests/Tests.Core/packages.lock.json delete mode 100644 tests/Tests.Domain/packages.lock.json delete mode 100644 tests/Tests/packages.lock.json diff --git a/.buildkite/DockerFile b/.buildkite/DockerFile index 4c2fe405355..227524274d2 100644 --- a/.buildkite/DockerFile +++ b/.buildkite/DockerFile @@ -1,4 +1,4 @@ -ARG DOTNET_VERSION=8.0.100 +ARG DOTNET_VERSION=8.0.400 FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build ENV NUGET_SCRATCH="/tmp/NuGetScratch" diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 3593c17f1af..87f461176da 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -5,7 +5,7 @@ steps: env: TEST_SUITE: "{{ matrix.suite }}" STACK_VERSION: master-SNAPSHOT - DOTNET_VERSION: 8.0.100 + DOTNET_VERSION: 8.0.400 matrix: setup: suite: diff --git a/.buildkite/run-repository.ps1 b/.buildkite/run-repository.ps1 index fdd61a87ce6..4a290f1c625 100644 --- a/.buildkite/run-repository.ps1 +++ b/.buildkite/run-repository.ps1 @@ -14,7 +14,7 @@ param( $NODE_NAME, [string] - $DOTNET_VERSION = "8.0.100" + $DOTNET_VERSION = "8.0.400" ) $ESC = [char]27 diff --git a/.buildkite/run-repository.sh b/.buildkite/run-repository.sh index 872ff25ff83..9c212f484c1 100755 --- a/.buildkite/run-repository.sh +++ b/.buildkite/run-repository.sh @@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0)) source $script_path/functions/imports.sh set -euo pipefail -DOTNET_VERSION=${DOTNET_VERSION-8.0.100} +DOTNET_VERSION=${DOTNET_VERSION-8.0.400} ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"} elasticsearch_container=${elasticsearch_container-} diff --git a/.buildkite/run-tests.ps1 b/.buildkite/run-tests.ps1 index 9ae9100c2d3..503edd8df06 100644 --- a/.buildkite/run-tests.ps1 +++ b/.buildkite/run-tests.ps1 @@ -8,7 +8,7 @@ param ( $TEST_SUITE = "free", [string] - $DOTNET_VERSION = "8.0.100" + $DOTNET_VERSION = "8.0.400" ) $ESC = [char]27 diff --git a/.ci/DockerFile b/.ci/DockerFile index 199906c7e5e..8c642b99967 100644 --- a/.ci/DockerFile +++ b/.ci/DockerFile @@ -1,4 +1,4 @@ -ARG DOTNET_VERSION=8.0.100 +ARG DOTNET_VERSION=8.0.400 FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build ENV NUGET_SCRATCH="/tmp/NuGetScratch" diff --git a/.ci/make.sh b/.ci/make.sh index 084b07e05df..672ad78bd7d 100755 --- a/.ci/make.sh +++ b/.ci/make.sh @@ -42,7 +42,7 @@ OUTPUT_DIR="$repo/${output_folder}" REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}" mkdir -p "$OUTPUT_DIR" -DOTNET_VERSION=${DOTNET_VERSION-8.0.100} +DOTNET_VERSION=${DOTNET_VERSION-8.0.400} echo -e "\033[34;1mINFO:\033[0m PRODUCT ${product}\033[0m" echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m" @@ -116,7 +116,7 @@ esac # ------------------------------------------------------- # # Build Container # ------------------------------------------------------- # - + echo -e "\033[34;1mINFO: building $product container\033[0m" docker build --file .ci/DockerFile --tag ${product} \ @@ -140,7 +140,7 @@ docker run \ --rm \ ${product} \ /bin/bash -c "./build.sh $TASK ${TASK_ARGS[*]} && chown -R $(id -u):$(id -g) ." - + # ------------------------------------------------------- # # Post Command tasks & checks # ------------------------------------------------------- # @@ -168,4 +168,4 @@ fi if [[ "$CMD" == "examplesgen" ]]; then echo "TODO" -fi \ No newline at end of file +fi diff --git a/.ci/readme.md b/.ci/readme.md index 821a65363d9..fe87c60afd4 100644 --- a/.ci/readme.md +++ b/.ci/readme.md @@ -30,7 +30,7 @@ $ STACK_VERSION=8.0.0-SNAPSHOT ./.ci/run-tests |-------------------------|-------------|-------------| | `STACK_VERSION` | `N/A` | The elasticsearch version to target | `TEST_SUITE` | `basic` | `free` or `platinum` sets which test suite to run and which container to run against. | -| `DOTNET_VERSION` | `8.0.100` | The .NET sdk version used to grab the proper container | +| `DOTNET_VERSION` | `8.0.400` | The .NET sdk version used to grab the proper container | If you want to manually spin up elasticsearch for these tests and call the runner afterwards you can use diff --git a/.ci/run-repository.ps1 b/.ci/run-repository.ps1 index 2ae3df14705..e842f7fe215 100644 --- a/.ci/run-repository.ps1 +++ b/.ci/run-repository.ps1 @@ -6,15 +6,15 @@ param( [System.Uri] $ELASTICSEARCH_URL, - + [string] $NETWORK_NAME, - + [string] $NODE_NAME, - + [string] - $DOTNET_VERSION = "8.0.100" + $DOTNET_VERSION = "8.0.400" ) $ESC = [char]27 @@ -39,4 +39,4 @@ docker run ` --volume $repo/build/output:/sln/build/output ` --rm ` elastic/elasticsearch-net ` - ./build.sh rest-spec-tests -f count -e $ELASTICSEARCH_URL -o /sln/build/output/rest-spec-junit.xml \ No newline at end of file + ./build.sh rest-spec-tests -f count -e $ELASTICSEARCH_URL -o /sln/build/output/rest-spec-junit.xml diff --git a/.ci/run-repository.sh b/.ci/run-repository.sh index 769a484028b..0e49cdaf1bf 100755 --- a/.ci/run-repository.sh +++ b/.ci/run-repository.sh @@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0)) source $script_path/functions/imports.sh set -euo pipefail -DOTNET_VERSION=${DOTNET_VERSION-8.0.100} +DOTNET_VERSION=${DOTNET_VERSION-8.0.400} ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"} elasticsearch_container=${elasticsearch_container-} @@ -27,13 +27,13 @@ fi if [[ "$TEST_SECTION" != "" ]]; then run_script_args="${run_script_args} -s ${TEST_SECTION}" fi - + echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m" echo -e "\033[34;1mINFO:\033[0m TEST_SUITE ${TEST_SUITE}\033[0m" echo -e "\033[34;1mINFO:\033[0m URL ${ELASTICSEARCH_URL}\033[0m" echo -e "\033[34;1mINFO:\033[0m CONTAINER ${elasticsearch_container}\033[0m" echo -e "\033[34;1mINFO:\033[0m DOTNET_VERSION ${DOTNET_VERSION}\033[0m" - + echo -e "\033[1m>>>>> Build [elastic/elasticsearch-net container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" docker build --file .ci/DockerFile --tag elastic/elasticsearch-net \ diff --git a/.ci/run-tests.ps1 b/.ci/run-tests.ps1 index d7b17e82ce2..481ad155dbd 100644 --- a/.ci/run-tests.ps1 +++ b/.ci/run-tests.ps1 @@ -8,7 +8,7 @@ param ( $TEST_SUITE = "free", [string] - $DOTNET_VERSION = "8.0.100" + $DOTNET_VERSION = "8.0.400" ) $ESC = [char]27 @@ -29,7 +29,7 @@ function cleanup { $runParams = @{ NODE_NAME= $NODE_NAME NETWORK_NAME = "elasticsearch" - CLEANUP = $true + CLEANUP = $true } ./.ci/run-elasticsearch.ps1 @runParams @@ -69,7 +69,7 @@ try { ./.ci/run-repository.ps1 @runParams - cleanup + cleanup } catch { cleanup diff --git a/.ci/test-matrix.yml b/.ci/test-matrix.yml index 59e8ead4448..421f57f8973 100755 --- a/.ci/test-matrix.yml +++ b/.ci/test-matrix.yml @@ -8,6 +8,6 @@ TEST_SUITE: - platinum DOTNET_VERSION: - - 8.0.100 + - 8.0.400 exclude: ~ diff --git a/.github/workflows/integration-jobs.yml b/.github/workflows/integration-jobs.yml index 7e2413fe1bd..259c1038fbd 100644 --- a/.github/workflows/integration-jobs.yml +++ b/.github/workflows/integration-jobs.yml @@ -14,6 +14,9 @@ on: - '[0-9]+.[0-9]+' - '[0-9]+.x' +env: + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages + jobs: integration-tests: name: Tests @@ -34,17 +37,17 @@ jobs: '8.9.0-SNAPSHOT', 'latest-8' ] - + steps: - name: Checkout uses: actions/checkout@v3 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' + global-json-file: 'global.json' - uses: actions/cache@v3 with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }} restore-keys: | ${{ runner.os }}-nuget- - uses: actions/cache@v3 @@ -53,7 +56,7 @@ jobs: key: ${{ runner.os }}-elastic-managed-${{ matrix.stack_version }} restore-keys: | ${{ runner.os }}-elastic-managed- - + - run: "./build.sh integrate ${{ matrix.stack_version }} random:test_only_one --report" name: ${{ matrix.stack_version }} - name: Results ${{ matrix.stack_version }} @@ -66,4 +69,4 @@ jobs: fail_on_failure: true require_tests: true check_name: ${{ matrix.stack_version }} - + diff --git a/.github/workflows/make-bump.yml b/.github/workflows/make-bump.yml index 7ab23221172..0427913c873 100644 --- a/.github/workflows/make-bump.yml +++ b/.github/workflows/make-bump.yml @@ -20,7 +20,7 @@ jobs: - run: "./.ci/make.sh bump ${{ github.event.inputs.version }}" name: "Bump ${{ github.event.inputs.version }} on ${{ github.event.inputs.branch }}" - name: "Version bump PR ${{ github.event.inputs.version }}" - # fixate to known release. + # fixate to known release. uses: peter-evans/create-pull-request@052fc72b4198ba9fbc81b818c6e1859f747d49a8 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -30,15 +30,15 @@ jobs: commit-message: "[version] ${{ github.event.inputs.version }} bump" title: '[version] ${{ github.event.inputs.version }} bump' body: | - Updates ${{ github.event.inputs.branch }} to version ${{ github.event.inputs.version }}. + Updates ${{ github.event.inputs.branch }} to version ${{ github.event.inputs.version }}. labels: "infra,code-gen" # Add version and backport labels automatically - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' + global-json-file: 'global.json' - name: Install dotnet-script run: dotnet tool install release-notes --tool-path dotnet-tool - name: Run build script run: > - dotnet-tool/release-notes apply-labels --version ${{ github.event.inputs.version }} ${{ github.event.organization.login }} ${{ github.event.repository.name }} --token ${{ secrets.GITHUB_TOKEN }} --backportlabelformat "Backport BRANCH" \ No newline at end of file + dotnet-tool/release-notes apply-labels --version ${{ github.event.inputs.version }} ${{ github.event.organization.login }} ${{ github.event.repository.name }} --token ${{ secrets.GITHUB_TOKEN }} --backportlabelformat "Backport BRANCH" diff --git a/.github/workflows/make-release-notes.yml b/.github/workflows/make-release-notes.yml index db637c4e5c6..758b86f019f 100644 --- a/.github/workflows/make-release-notes.yml +++ b/.github/workflows/make-release-notes.yml @@ -22,20 +22,20 @@ jobs: run: | curl -s "https://artifacts-api.elastic.co/v1/branches" | jq "[ .branches[] | select(. | startswith(\"6\") | not) ]" --compact-output curl -s "https://artifacts-api.elastic.co/v1/branches" | jq "[ .branches[] | select(. | startswith(\"6\") | not) ]" --compact-output > branches.json - + - id: set-matrix name: conditional command run: | if [[ "${{ github.event.inputs.branch }}" != "" ]]; then echo "::set-output name=matrix::['${{ github.event.inputs.branch }}']" - elif [[ -f "branches.json" ]]; then + elif [[ -f "branches.json" ]]; then echo "::set-output name=matrix::$(cat branches.json)" - else + else echo "::set-output name=matrix::[]" fi outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} - + release-notes: name: Generate needs: active-branches @@ -48,14 +48,14 @@ jobs: - uses: actions/checkout@v3 with: ref: "${{ matrix.branch }}" - + - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' + global-json-file: 'global.json' - name: Install dotnet-script run: dotnet tool install release-notes --tool-path dotnet-tool - - name: Set repository name environment variable + - name: Set repository name environment variable run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV - name: Find versions for branch @@ -65,14 +65,14 @@ jobs: echo "::set-output name=current::$(echo ${lines[0]})" echo "::set-output name=next::$(echo ${lines[1]})" echo ${lines[@]} - + - name: Generate release notes run: | dotnet-tool/release-notes "${{ github.repository_owner }}" "${{ env.repository_name }}" --version ${{ steps.versions.outputs.next }} --token ${{ secrets.GITHUB_TOKEN }} --format asciidoc --output docs/release-notes rm dotnet-tool/release-notes git status - name: "PR ${{ matrix.branch }}" - # fixate to known release. + # fixate to known release. uses: peter-evans/create-pull-request@052fc72b4198ba9fbc81b818c6e1859f747d49a8 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -83,4 +83,4 @@ jobs: title: '[release-notes] Release notes ${{ steps.versions.outputs.next }} on ${{ matrix.branch }} branch' body: | Release notes ${{ steps.versions.outputs.next }} on ${{ matrix.branch }} branch - labels: "infra,code-gen" \ No newline at end of file + labels: "infra,code-gen" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95c213683f4..cb3be68dc86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ env: # Configuration BUILD_CONFIG: 'Release' GLOBAL_JSON_FILE: 'global.json' - LOCKFILE_PATTERN: '**/packages.lock.json' + CACHE_PATTERNS: '["**/*.[cf]sproj*", "**/*.Build.props"]' PACKAGE_PATH: 'nupkg' # .NET SDK related environment variables DOTNET_NOLOGO: 1 @@ -63,7 +63,7 @@ jobs: uses: 'actions/cache@v4' with: path: '~/.nuget/packages' - key: '${{ runner.os }}-nuget-${{ inputs.flavor }}-${{ hashFiles(env.LOCKFILE_PATTERN) }}' + key: '${{ runner.os }}-nuget-${{ inputs.flavor }}-${{ hashFiles(fromJson(env.CACHE_PATTERNS)) }}' restore-keys: '${{ runner.os }}-nuget-${{ inputs.flavor }}-' - name: '.NET Restore' diff --git a/.github/workflows/stale-jobs.yml b/.github/workflows/stale-jobs.yml index b4a851a1ea7..09142347407 100644 --- a/.github/workflows/stale-jobs.yml +++ b/.github/workflows/stale-jobs.yml @@ -15,6 +15,9 @@ on: - '[0-9]+.[0-9]+' - '[0-9]+.x' +env: + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages + jobs: unit-tests: name: Documentation @@ -24,17 +27,17 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' + global-json-file: 'global.json' - uses: actions/cache@v3 with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }} restore-keys: | ${{ runner.os }}-nuget- - run: ./build.sh documentation name: Build docs - + - run: | if [ -n "$(git status --porcelain)" ]; then echo Error: changes found after running documentation; git diff; git status; exit 1; fi name: 'Ensure no stale docs' diff --git a/.github/workflows/test-jobs.yml b/.github/workflows/test-jobs.yml index db3e5557b32..d23d65b9810 100644 --- a/.github/workflows/test-jobs.yml +++ b/.github/workflows/test-jobs.yml @@ -14,6 +14,9 @@ on: - '[0-9]+.[0-9]+' - '[0-9]+.x' +env: + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages + jobs: unit-tests: name: Unit @@ -23,11 +26,11 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' + global-json-file: 'global.json' - uses: actions/cache@v3 with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }} restore-keys: | ${{ runner.os }}-nuget- @@ -42,7 +45,7 @@ jobs: fail_on_failure: true require_tests: true check_name: Unit Test Results - + # Packages nuget packages first and then uses the nuget packages to test # Also builds versioned nuget packages canary-tests: @@ -53,11 +56,11 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' + global-json-file: 'global.json' - uses: actions/cache@v3 with: - path: ~/.nuget/packages - key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*', '**/*.Build.props') }} restore-keys: | ${{ runner.os }}-nuget- @@ -72,7 +75,7 @@ jobs: fail_on_failure: true require_tests: true check_name: Canary Test Results - + # Github packages requires authentication, this is likely going away in the future so for now we publish to feedz.io # Only runs on builds on heads - run: dotnet nuget push 'build/output/*.nupkg' -k ${{secrets.FEEDZ_IO_API_KEY}} -s https://f.feedz.io/elastic/all/nuget/index.json --skip-duplicate --no-symbols diff --git a/.github/workflows/unified-release.yml b/.github/workflows/unified-release.yml index 1178d437058..fe5f3a1aecd 100644 --- a/.github/workflows/unified-release.yml +++ b/.github/workflows/unified-release.yml @@ -22,13 +22,13 @@ jobs: fail-fast: false matrix: stack_version: [ '9.0.0-SNAPSHOT'] - + steps: - name: Checkout uses: actions/checkout@v3 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.100' - + global-json-file: 'global.json' + - run: "./.ci/make.sh assemble ${{ matrix.stack_version }}" - name: Assemble ${{ matrix.stack_version }} \ No newline at end of file + name: Assemble ${{ matrix.stack_version }} diff --git a/.gitignore b/.gitignore index e52252f344e..b9757daf211 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,4 @@ docs-temp # Verify Tests *.received.* +.artifacts diff --git a/Directory.Build.props b/Directory.Build.props index 2eb5c4c005d..91ddb2e93ec 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -33,11 +33,8 @@ true false true - $(OutputPathBaseDir)\$(MSBuildProjectName)\ $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.bat)) - true - true - true + $(MSBuildThisFileDirectory).artifacts $(DefineConstants);FULLFRAMEWORK $(DefineConstants);DOTNETCORE @@ -47,8 +44,7 @@ 002400000480000094000000060200000024000052534131000400000100010025d3a22bf3781ba85067374ad832dfcba3c4fa8dd89227e36121ba17b2c33ad6b6ce03e45e562050a031e2ff7fe12cff9060a50acbc6a0eef9ef32dc258d90f874b2e76b581938071ccc4b4d98204d1d6ca7a1988d7a211f9fc98efd808cf85f61675b11007d0eb0461dc86a968d6af8ebba7e6b540303b54f1c1f5325c252be - - + diff --git a/Directory.Build.targets b/Directory.Build.targets index 3468a435a15..bc6f3c8d9b3 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -5,14 +5,11 @@ $(SolutionRoot)\build\keys\keypair.snk - bin/$(Configuration)/$(TargetFramework)/ 1591,1572,1571,1573,1587,1570,NU5048 false false true - - true $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb diff --git a/Elasticsearch.sln b/Elasticsearch.sln index c6feca48733..18df1592180 100644 --- a/Elasticsearch.sln +++ b/Elasticsearch.sln @@ -4,10 +4,16 @@ Microsoft Visual Studio Solution File, Format Version 12.00 VisualStudioVersion = 17.0.31612.314 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D455EC79-E1E0-4509-B297-0DA3AED8DFF7}" + ProjectSection(SolutionItems) = preProject + src\_PublishArtifacts.Build.props = src\_PublishArtifacts.Build.props + EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Playground", "src\Playground\Playground.csproj", "{8F2EA767-8746-4816-B6EE-342BCB8F1AAB}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{362B2776-4B29-46AB-B237-56776B5372B6}" + ProjectSection(SolutionItems) = preProject + tests\Directory.Build.props = tests\Directory.Build.props + EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "tests\Tests\Tests.csproj", "{BDF1ABC2-8C52-4864-B824-B1FA27630E8E}" EndProject @@ -21,8 +27,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "benchmarks", "benchmarks", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmarks", "benchmarks\Benchmarks\Benchmarks.csproj", "{701DB05B-1F1B-485F-9EDF-0274EED4FF9F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlaygroundV7x", "src\PlaygroundV7x\PlaygroundV7x.csproj", "{7141AB85-10C5-42AE-8FC7-B14A4216A89F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Profiling", "benchmarks\Profiling\Profiling.csproj", "{5222D7CD-3663-49ED-98EA-4B5ECDF705BF}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D9FFF81B-26F3-4A26-9605-E3D22382E9A5}" @@ -57,30 +61,16 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elastic.Clients.Elasticsear EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elastic.Clients.Elasticsearch.Serverless", "src\Elastic.Clients.Elasticsearch.Serverless\Elastic.Clients.Elasticsearch.Serverless.csproj", "{49D7F5A7-AA32-492B-B957-0E3325861F55}" EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Elastic.Clients.Elasticsearch.Shared", "src\Elastic.Clients.Elasticsearch.Shared\Elastic.Clients.Elasticsearch.Shared.shproj", "{A90DD7B8-8AFB-4BE9-AA16-B159A880E79D}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Debug|x64.ActiveCfg = Debug|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Debug|x64.Build.0 = Debug|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Debug|x86.ActiveCfg = Debug|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Debug|x86.Build.0 = Debug|Any CPU {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Release|Any CPU.ActiveCfg = Release|Any CPU {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Release|Any CPU.Build.0 = Release|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Release|x64.ActiveCfg = Release|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Release|x64.Build.0 = Release|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Release|x86.ActiveCfg = Release|Any CPU - {8F2EA767-8746-4816-B6EE-342BCB8F1AAB}.Release|x86.Build.0 = Release|Any CPU {BDF1ABC2-8C52-4864-B824-B1FA27630E8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BDF1ABC2-8C52-4864-B824-B1FA27630E8E}.Debug|Any CPU.Build.0 = Debug|Any CPU {BDF1ABC2-8C52-4864-B824-B1FA27630E8E}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -95,136 +85,44 @@ Global {BDF1ABC2-8C52-4864-B824-B1FA27630E8E}.Release|x86.Build.0 = Release|Any CPU {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Debug|x64.ActiveCfg = Debug|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Debug|x64.Build.0 = Debug|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Debug|x86.ActiveCfg = Debug|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Debug|x86.Build.0 = Debug|Any CPU {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Release|Any CPU.ActiveCfg = Release|Any CPU {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Release|Any CPU.Build.0 = Release|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Release|x64.ActiveCfg = Release|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Release|x64.Build.0 = Release|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Release|x86.ActiveCfg = Release|Any CPU - {70225C3F-393A-40F5-A778-8FF71A38C4C0}.Release|x86.Build.0 = Release|Any CPU {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Debug|Any CPU.Build.0 = Debug|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Debug|x64.ActiveCfg = Debug|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Debug|x64.Build.0 = Debug|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Debug|x86.ActiveCfg = Debug|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Debug|x86.Build.0 = Debug|Any CPU {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Release|Any CPU.ActiveCfg = Release|Any CPU {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Release|Any CPU.Build.0 = Release|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Release|x64.ActiveCfg = Release|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Release|x64.Build.0 = Release|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Release|x86.ActiveCfg = Release|Any CPU - {587DE66B-6FAB-4722-9C53-2812BEFB6A44}.Release|x86.Build.0 = Release|Any CPU {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Debug|x64.ActiveCfg = Debug|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Debug|x64.Build.0 = Debug|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Debug|x86.ActiveCfg = Debug|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Debug|x86.Build.0 = Debug|Any CPU {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Release|Any CPU.ActiveCfg = Release|Any CPU {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Release|Any CPU.Build.0 = Release|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Release|x64.ActiveCfg = Release|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Release|x64.Build.0 = Release|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Release|x86.ActiveCfg = Release|Any CPU - {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C}.Release|x86.Build.0 = Release|Any CPU {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Debug|x64.ActiveCfg = Debug|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Debug|x64.Build.0 = Debug|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Debug|x86.ActiveCfg = Debug|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Debug|x86.Build.0 = Debug|Any CPU {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Release|Any CPU.ActiveCfg = Release|Any CPU {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Release|Any CPU.Build.0 = Release|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Release|x64.ActiveCfg = Release|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Release|x64.Build.0 = Release|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Release|x86.ActiveCfg = Release|Any CPU - {701DB05B-1F1B-485F-9EDF-0274EED4FF9F}.Release|x86.Build.0 = Release|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Debug|x64.ActiveCfg = Debug|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Debug|x64.Build.0 = Debug|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Debug|x86.ActiveCfg = Debug|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Debug|x86.Build.0 = Debug|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Release|Any CPU.Build.0 = Release|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Release|x64.ActiveCfg = Release|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Release|x64.Build.0 = Release|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Release|x86.ActiveCfg = Release|Any CPU - {7141AB85-10C5-42AE-8FC7-B14A4216A89F}.Release|x86.Build.0 = Release|Any CPU {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Debug|x64.ActiveCfg = Debug|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Debug|x64.Build.0 = Debug|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Debug|x86.ActiveCfg = Debug|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Debug|x86.Build.0 = Debug|Any CPU {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Release|Any CPU.ActiveCfg = Release|Any CPU {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Release|Any CPU.Build.0 = Release|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Release|x64.ActiveCfg = Release|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Release|x64.Build.0 = Release|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Release|x86.ActiveCfg = Release|Any CPU - {5222D7CD-3663-49ED-98EA-4B5ECDF705BF}.Release|x86.Build.0 = Release|Any CPU {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Debug|x64.ActiveCfg = Debug|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Debug|x64.Build.0 = Debug|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Debug|x86.ActiveCfg = Debug|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Debug|x86.Build.0 = Debug|Any CPU {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Release|Any CPU.ActiveCfg = Release|Any CPU {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Release|Any CPU.Build.0 = Release|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Release|x64.ActiveCfg = Release|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Release|x64.Build.0 = Release|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Release|x86.ActiveCfg = Release|Any CPU - {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D}.Release|x86.Build.0 = Release|Any CPU {68D1BFDC-F447-4D2C-AF81-537807636610}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {68D1BFDC-F447-4D2C-AF81-537807636610}.Debug|Any CPU.Build.0 = Debug|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Debug|x64.ActiveCfg = Debug|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Debug|x64.Build.0 = Debug|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Debug|x86.ActiveCfg = Debug|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Debug|x86.Build.0 = Debug|Any CPU {68D1BFDC-F447-4D2C-AF81-537807636610}.Release|Any CPU.ActiveCfg = Release|Any CPU {68D1BFDC-F447-4D2C-AF81-537807636610}.Release|Any CPU.Build.0 = Release|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Release|x64.ActiveCfg = Release|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Release|x64.Build.0 = Release|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Release|x86.ActiveCfg = Release|Any CPU - {68D1BFDC-F447-4D2C-AF81-537807636610}.Release|x86.Build.0 = Release|Any CPU {F6162603-D134-4121-8106-2BA4DAD7350B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F6162603-D134-4121-8106-2BA4DAD7350B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Debug|x64.ActiveCfg = Debug|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Debug|x64.Build.0 = Debug|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Debug|x86.ActiveCfg = Debug|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Debug|x86.Build.0 = Debug|Any CPU {F6162603-D134-4121-8106-2BA4DAD7350B}.Release|Any CPU.ActiveCfg = Release|Any CPU {F6162603-D134-4121-8106-2BA4DAD7350B}.Release|Any CPU.Build.0 = Release|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Release|x64.ActiveCfg = Release|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Release|x64.Build.0 = Release|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Release|x86.ActiveCfg = Release|Any CPU - {F6162603-D134-4121-8106-2BA4DAD7350B}.Release|x86.Build.0 = Release|Any CPU {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|x64.ActiveCfg = Debug|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|x64.Build.0 = Debug|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|x86.ActiveCfg = Debug|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|x86.Build.0 = Debug|Any CPU {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|Any CPU.ActiveCfg = Release|Any CPU {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|Any CPU.Build.0 = Release|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|x64.ActiveCfg = Release|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|x64.Build.0 = Release|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|x86.ActiveCfg = Release|Any CPU - {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|x86.Build.0 = Release|Any CPU {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|Any CPU.Build.0 = Debug|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|x64.ActiveCfg = Debug|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|x64.Build.0 = Debug|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|x86.ActiveCfg = Debug|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|x86.Build.0 = Debug|Any CPU {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|Any CPU.ActiveCfg = Release|Any CPU {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|Any CPU.Build.0 = Release|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|x64.ActiveCfg = Release|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|x64.Build.0 = Release|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|x86.ActiveCfg = Release|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -236,21 +134,14 @@ Global {587DE66B-6FAB-4722-9C53-2812BEFB6A44} = {362B2776-4B29-46AB-B237-56776B5372B6} {0B4DCA79-10CC-4CB8-95D3-A4EB8C98BE1C} = {362B2776-4B29-46AB-B237-56776B5372B6} {701DB05B-1F1B-485F-9EDF-0274EED4FF9F} = {B7B8819B-3197-4AB6-B61B-9E1BFD1EC302} - {7141AB85-10C5-42AE-8FC7-B14A4216A89F} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} {5222D7CD-3663-49ED-98EA-4B5ECDF705BF} = {B7B8819B-3197-4AB6-B61B-9E1BFD1EC302} {F8A7E60C-0C48-4D76-AF7F-7881DF5A263D} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} {68D1BFDC-F447-4D2C-AF81-537807636610} = {1FE49D14-216A-41EE-A177-E42BFF53E0DC} {F6162603-D134-4121-8106-2BA4DAD7350B} = {362B2776-4B29-46AB-B237-56776B5372B6} {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} {49D7F5A7-AA32-492B-B957-0E3325861F55} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} - {A90DD7B8-8AFB-4BE9-AA16-B159A880E79D} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {CE74F821-B001-4C69-A58D-CF81F8B0B632} EndGlobalSection - GlobalSection(SharedMSBuildProjectFiles) = preSolution - src\Elastic.Clients.Elasticsearch.Shared\Elastic.Clients.Elasticsearch.Shared.projitems*{49d7f5a7-aa32-492b-b957-0e3325861f55}*SharedItemsImports = 5 - src\Elastic.Clients.Elasticsearch.Shared\Elastic.Clients.Elasticsearch.Shared.projitems*{a90dd7b8-8afb-4be9-aa16-b159a880e79d}*SharedItemsImports = 13 - src\Elastic.Clients.Elasticsearch.Shared\Elastic.Clients.Elasticsearch.Shared.projitems*{f8a7e60c-0c48-4d76-af7f-7881df5a263d}*SharedItemsImports = 5 - EndGlobalSection EndGlobal diff --git a/benchmarks/Benchmarks/packages.lock.json b/benchmarks/Benchmarks/packages.lock.json deleted file mode 100644 index a71fd31a62a..00000000000 --- a/benchmarks/Benchmarks/packages.lock.json +++ /dev/null @@ -1,1204 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net6.0": { - "BenchmarkDotNet": { - "type": "Direct", - "requested": "[0.13.1, )", - "resolved": "0.13.1", - "contentHash": "LWR6kL3MWc4ByzSrqi6nccbO4UT5pySiB5h9L2LSHoqVdHySTbtLYYulz3atWhPyhtIQIMz6kQjvuBjFM03zkA==", - "dependencies": { - "BenchmarkDotNet.Annotations": "0.13.1", - "CommandLineParser": "2.4.3", - "Iced": "1.8.0", - "Microsoft.CodeAnalysis.CSharp": "2.10.0", - "Microsoft.Diagnostics.NETCore.Client": "0.2.61701", - "Microsoft.Diagnostics.Runtime": "1.1.126102", - "Microsoft.Diagnostics.Tracing.TraceEvent": "2.0.61", - "Microsoft.DotNet.PlatformAbstractions": "2.1.0", - "Microsoft.Win32.Registry": "4.5.0", - "Perfolizer": "0.2.1", - "System.Management": "4.5.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Threading.Tasks.Extensions": "4.5.2", - "System.ValueTuple": "4.5.0" - } - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "NEST": { - "type": "Direct", - "requested": "[7.16.0, )", - "resolved": "7.16.0", - "contentHash": "n/yUqofcJsDbBMRAg+x/FWWDujcFKk7we/tTY8SJkQr1AjzYJNB6h7dXLMijTlyNT5VXQ+u752wZiRAL5uC60A==", - "dependencies": { - "Elasticsearch.Net": "7.16.0" - } - }, - "BenchmarkDotNet.Annotations": { - "type": "Transitive", - "resolved": "0.13.1", - "contentHash": "OvHMw/GYfdrrJAM28zOXQ94kdv1s0s92ZrbkH+/79I557ONPEH/urMF8iNKuYYgLsziC4isw233L3GKq6Twe/A==" - }, - "CommandLineParser": { - "type": "Transitive", - "resolved": "2.4.3", - "contentHash": "U2FC9Y8NyIxxU6MpFFdWWu1xwiqz/61v/Doou7kmVjpeIEMLWyiNNkzNlSE84kyJ0O1LKApuEj5z48Ow0Hi4OQ==" - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "Elasticsearch.Net": { - "type": "Transitive", - "resolved": "7.16.0", - "contentHash": "qRKVQsALZsfBRK0A5BFthW/K/tto0/bhTK8n8DVn4RIhNzSGzRcM34jp0KjVQ4s/bFwRSIjL5cghmAMdhtVRhA==", - "dependencies": { - "Microsoft.CSharp": "4.6.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "5.0.0" - } - }, - "Iced": { - "type": "Transitive", - "resolved": "1.8.0", - "contentHash": "KQqoTZg3wf+eqG8ztGqlz9TozC/Dw/jnN82JkIRGZXTg/by0aPiQIMGb+b7hvvkOLnmCuWr3Ghr0mA2I+ASX1A==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CodeAnalysis.Analyzers": { - "type": "Transitive", - "resolved": "2.6.1", - "contentHash": "VsT6gg2SPeToP8SK7PEcsH6Ftryb7aOqnXh9xg11zBeov05+63gP3k/TvrR+v85XIa8Nn0y3+qNl4M+qzNLBfw==" - }, - "Microsoft.CodeAnalysis.Common": { - "type": "Transitive", - "resolved": "2.10.0", - "contentHash": "w57ebW3QIRFPoFFX6GCa6eF2FmuHYaWEJ/sMMHq+PBnHB51dEzLIoAQft1Byqe5nrSo4UUV6v4tad8fkTrKl8w==", - "dependencies": { - "Microsoft.CodeAnalysis.Analyzers": "2.6.1", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Collections.Immutable": "1.5.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.FileVersionInfo": "4.3.0", - "System.Diagnostics.StackTrace": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Dynamic.Runtime": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Metadata": "1.6.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.CodePages": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0", - "System.Threading.Tasks.Parallel": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.ValueTuple": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0", - "System.Xml.XPath.XDocument": "4.3.0", - "System.Xml.XmlDocument": "4.3.0" - } - }, - "Microsoft.CodeAnalysis.CSharp": { - "type": "Transitive", - "resolved": "2.10.0", - "contentHash": "bTr6j4V7G4ZPhRDUdowdtbEvXsQA4w1TYfOtXiYdv8TF7STl9ShOKtlSVzAusmeEWsZksJm9D1VSxt6XIyNB0w==", - "dependencies": { - "Microsoft.CodeAnalysis.Common": "[2.10.0]" - } - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "kxn3M2rnAGy5N5DgcIwcE8QTePWU/XiYcQVzn9HqTls2NKluVzVSmVWRjK7OUPWbljCXuZxHyhEz9kPRIQeXow==" - }, - "Microsoft.Diagnostics.NETCore.Client": { - "type": "Transitive", - "resolved": "0.2.61701", - "contentHash": "/whUqXLkTiUvG+vfSFd77DHHsLZW2HztZt+ACOpuvGyLKoGGN86M8cR1aYfRW6fxXF3SVGMKMswcL485SQEDuQ==" - }, - "Microsoft.Diagnostics.Runtime": { - "type": "Transitive", - "resolved": "1.1.126102", - "contentHash": "2lyoyld8bd/zSq5HJPkyXVtsSdfS30qr75V96S4nEJ/nUiUp0WfGjxnTcZXBLCqzwE0DLUR0lUcNpMp0gEtuzA==" - }, - "Microsoft.Diagnostics.Tracing.TraceEvent": { - "type": "Transitive", - "resolved": "2.0.61", - "contentHash": "czZJRJZEZbGyBauIXYfWIfVV6Nx88L55RARKmEb7ja+nmb1yI+LiROgnD1N0Fyh/RnzvUUD/J0YYMkAEBT1Z6w==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - } - }, - "Microsoft.DotNet.PlatformAbstractions": { - "type": "Transitive", - "resolved": "2.1.0", - "contentHash": "9KPDwvb/hLEVXYruVHVZ8BkebC8j17DmPb56LnqRF74HqSPLjCkrlFUjOtFpQPA2DeADBRTI/e69aCfRBfrhxw==", - "dependencies": { - "System.AppContext": "4.1.0", - "System.Collections": "4.0.11", - "System.IO": "4.1.0", - "System.IO.FileSystem": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.0.0" - } - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "2.0.0", - "contentHash": "VdLJOCXhZaEMY7Hm2GKiULmn7IEPFE4XC5LPSfBVCUIA8YLZVh846gtfBJalsPQF2PlzdD7ecX7DZEulJ402ZQ==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "+FWlwd//+Tt56316p00hVePBCouXyEzT86Jb3+AuRotTND0IYn0OO3obs1gnQEs/txEnt+rF2JBGLItTG+Be6A==", - "dependencies": { - "System.Security.AccessControl": "4.5.0", - "System.Security.Principal.Windows": "4.5.0" - } - }, - "Perfolizer": { - "type": "Transitive", - "resolved": "0.2.1", - "contentHash": "Dt4aCxCT8NPtWBKA8k+FsN/RezOQ2C6omNGm5o/qmYRiIwlQYF93UgFmeF1ezVNsztTnkg7P5P63AE+uNkLfrw==", - "dependencies": { - "System.Memory": "4.5.3" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.CodeDom": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "gqpR1EeXOuzNQWL7rOzmtdIz3CaXVjSQCiaGOs2ivjPwynKSJYm39X81fdlp7WuojZs/Z5t1k5ni7HtKQurhjw==" - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Collections.Immutable": { - "type": "Transitive", - "resolved": "1.5.0", - "contentHash": "EXKiDFsChZW0RjrZ4FYHu9aW6+P4MCgEDCklsVseRfhoO0F+dXeMSsMRAlVXIo06kGJ/zv+2w1a2uc2+kxxSaQ==" - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Diagnostics.FileVersionInfo": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "omCF64wzQ3Q2CeIqkD6lmmxeMZtGHUmzgFMPjfVaOsyqpR66p/JaZzManMw1s33osoAb5gqpncsjie67+yUPHQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Reflection.Metadata": "1.4.1", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Diagnostics.StackTrace": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiHg0vgtd35/DM9jvtaC1eKRpWZxr0gcQd643ABG7GnvSlf5pOkY2uyd42mMOJoOmKvnpNj0F4tuoS1pacTwYw==", - "dependencies": { - "System.IO.FileSystem": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Metadata": "1.4.1", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Dynamic.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "SNVi1E/vfWUAs/WYKhE9+qlS6KqK0YVhnlT0HQtr8pMIA8YX3lwy3uPMownDwdYISBdmAF/2holEIldVp85Wag==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Management": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "Z6ac0qPGr3yJtwZEX1SRkhwWa0Kf5NJxx7smLboYsGrApQFECNFdqhGy252T4lrZ5Nwzhd9VQiaifndR3bfHdg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "2.0.0", - "Microsoft.Win32.Registry": "4.5.0", - "System.CodeDom": "4.5.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.3", - "contentHash": "3oDzvc/zzetpTKWMShs1AADwZjQ/36HnsufHRPcOjyRAAMLDlu2iD33MBI2opxnezcVUtXyqDXXjoFMOU9c7SA==" - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "hWPhJxc453RCa8Z29O91EmfGeZIHX1ZH2A8L6lYQVSaKzku2DfArSfMEb1/MYYzPQRJZeu0c9dmYeJKxW5Fgng==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Threading": "4.0.11", - "runtime.native.System": "4.0.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.AccessControl": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "vW8Eoq0TMyz5vAG/6ce483x/CP83fgm4SJe5P8Tb1tZaobcvPrbMEL7rhH1DRdrYbbb6F0vq3OlzmK0Pkwks5A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "2.0.0", - "System.Security.Principal.Windows": "4.5.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Principal.Windows": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "U77HfRXlZlOeIXd//Yoj6Jnk8AXlbeisf1oq1os+hxOGVnuG+lGSfGqTwTZBoORFF6j/0q7HXIl8cqwQ9aUGqQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "2.0.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.CodePages": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "IRiEFUa5b/Gs5Egg8oqBVoywhtOeaO2KOx3j0RfcYY/raxqBuEK7NXRDgOwtYM8qbi+7S4RPXUbNt+ZxyY0/NQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.2", - "contentHash": "BG/TNxDFv0svAzx8OiMXDlsHfGw623BZ8tCXw4YLhDFDvDhNUEV58jKYMGRnkbJNm7c3JNNJDiN7JBMzxRBR2w==" - }, - "System.Threading.Tasks.Parallel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbjBNZHf/vQCfcdhzx7knsiygoCKgxL8mZOeocXZn5gWhCdzHIq6bYNKWX0LAJCWYP7bds4yBK8p06YkP0oa0g==", - "dependencies": { - "System.Collections.Concurrent": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.ValueTuple": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==" - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "System.Xml.XmlDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "lJ8AxvkX7GQxpC6GFCeBj8ThYVyQczx2+f/cWHJU8tjS7YfI6Cv6bon70jVEgs2CiFbmmM8b9j1oZVx0dSI2Ww==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "System.Xml.XPath": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "v1JQ5SETnQusqmS3RwStF7vwQ3L02imIzl++sewmt23VGygix04pEH+FCj1yWb+z4GDzKiljr1W7Wfvrx0YwgA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "System.Xml.XPath.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "jw9oHHEIVW53mHY9PgrQa98Xo2IZ0ZjrpdOTmtvk+Rvg4tq7dydmxdNqUvJ5YwjDqhn75mBXWttWjiKhWP53LQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0", - "System.Xml.XPath": "4.3.0" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - } - } -} \ No newline at end of file diff --git a/benchmarks/Profiling/packages.lock.json b/benchmarks/Profiling/packages.lock.json deleted file mode 100644 index ebc324c614b..00000000000 --- a/benchmarks/Profiling/packages.lock.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net6.0": { - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "JetBrains.Profiler.Api": { - "type": "Direct", - "requested": "[1.1.8, )", - "resolved": "1.1.8", - "contentHash": "a/zkJHzyzjIilu5cn5SnnCkPDbfUD+nLBpCaSivp0GCotBR6w7S8CaDymI5p0qFB1XUImgii1AqWYZsIK+Lh5g==" - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.2" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.2", - "contentHash": "8shzGaD5pZi4npuJYCM3de6pl0zlefcbyTIvXIiCdsTqauZ7lAhdaJVtJSqlhYid9VosFAOygBykoJ1SEOlGWA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - } - } -} \ No newline at end of file diff --git a/build/scripts/Building.fs b/build/scripts/Building.fs index e2a79c53f6e..5a71f5b4978 100644 --- a/build/scripts/Building.fs +++ b/build/scripts/Building.fs @@ -27,7 +27,6 @@ module Build = "CurrentVersion", (version.Full.ToString()); "CurrentAssemblyVersion", (version.Assembly.ToString()); "CurrentAssemblyFileVersion", (version.AssemblyFile.ToString()); - "ContinuousIntegrationBuild", "true"; ] |> List.map (fun (p,v) -> sprintf "%s=%s" p v) |> String.concat ";" diff --git a/build/scripts/Paths.fs b/build/scripts/Paths.fs index 8aa8a65887b..dc4494af0bb 100644 --- a/build/scripts/Paths.fs +++ b/build/scripts/Paths.fs @@ -17,9 +17,10 @@ module Paths = let Output(folder) = sprintf "%s/%s" BuildOutput folder let InplaceBuildOutput project tfm = - sprintf "src/%s/bin/Release/%s" project tfm + //sprintf "src/%s/bin/Release/%s" project tfm + sprintf ".artifacts/bin/%s/release_%s" project tfm let InplaceBuildTestOutput project tfm = - sprintf "tests/%s/bin/Release/%s" project tfm + sprintf "artifacts/bin/%s/release_%s" project tfm let MagicDocumentationFile = "src/Elasticsearch.Net/obj/Release/netstandard2.1/Elasticsearch.Net.csprojAssemblyReference.cache" diff --git a/build/scripts/packages.lock.json b/build/scripts/packages.lock.json deleted file mode 100644 index 2fc97b62a11..00000000000 --- a/build/scripts/packages.lock.json +++ /dev/null @@ -1,1308 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net8.0": { - "Bullseye": { - "type": "Direct", - "requested": "[3.3.0, )", - "resolved": "3.3.0", - "contentHash": "BjYuufZ3EucWK5vzLBFh13Fpb3a4esbnPzvPlAlDLOAzuQaSYRxBqBbHWxAM4c55170pNE07xFTF9DrXuGcCsw==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Direct", - "requested": "[0.4.3, )", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Fake.Core.Environment": { - "type": "Direct", - "requested": "[5.15.0, )", - "resolved": "5.15.0", - "contentHash": "kFlywaSoJVSdXpoRwln6+Wd/26fFOTWsFeBfXwE18I0ctz1E2uw66dOnebXsFneL5uM5RC1hCdNhMQrqy9FN9w==", - "dependencies": { - "FSharp.Core": "4.3.4" - } - }, - "Fake.Core.SemVer": { - "type": "Direct", - "requested": "[5.15.0, )", - "resolved": "5.15.0", - "contentHash": "aGGOMVP/RG+aBRK/Wp62GJW4Z8NK11c8fsJd2bRZ6WBC7b0P0sgHsGEULjadabL9zvQfKA4qL8jdUSrRJYVlZg==", - "dependencies": { - "FSharp.Core": "4.3.4", - "System.Runtime.Numerics": "4.3.0" - } - }, - "Fake.IO.FileSystem": { - "type": "Direct", - "requested": "[5.15.0, )", - "resolved": "5.15.0", - "contentHash": "YmK8izALHIuSeggQNWLlTjvI84Ga+MzNubtbLXh+v2KtHUBDXJPkZ5bXNorQAweWUlOsmsdhE930T0QgNX9a2w==", - "dependencies": { - "FSharp.Core": "4.3.4", - "Fake.Core.String": "5.15.0", - "System.Diagnostics.FileVersionInfo": "4.3.0", - "System.IO.FileSystem.Watcher": "4.3.0" - } - }, - "Fake.IO.Zip": { - "type": "Direct", - "requested": "[5.15.0, )", - "resolved": "5.15.0", - "contentHash": "PrgpzgjCMrNNWkg4lrI8H6rhYjMwEcPDOuE5K4pnKHiuAG0qlLkJC7FkVpRI9N/3iteBpZCY/I9Zs9SzF08TOA==", - "dependencies": { - "FSharp.Core": "4.3.4", - "Fake.Core.String": "5.15.0", - "Fake.IO.FileSystem": "5.15.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0" - } - }, - "Fake.Tools.Git": { - "type": "Direct", - "requested": "[5.15.0, )", - "resolved": "5.15.0", - "contentHash": "QqfAUNFZBZaV79rIvIHlPzxPoEw4N6ueVXagM3fczIXReIVdew5J5y6P61Kbdt3mS4xiZAelUpjipX6/vSXpfQ==", - "dependencies": { - "FSharp.Core": "4.3.4", - "Fake.Core.Environment": "5.15.0", - "Fake.Core.Process": "5.15.0", - "Fake.Core.SemVer": "5.15.0", - "Fake.Core.String": "5.15.0", - "Fake.Core.Trace": "5.15.0", - "Fake.IO.FileSystem": "5.15.0" - } - }, - "FSharp.Core": { - "type": "Direct", - "requested": "[6.0.4, )", - "resolved": "6.0.4", - "contentHash": "CYqAfmO7JvN38M+ACkstS8taVfl8C0mCkvSiBAshfKuu2Nut6+8MuFU7Wahu09wGIyFPlRz5ArFWxSOM5mhMSA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Octokit": { - "type": "Direct", - "requested": "[0.32.0, )", - "resolved": "0.32.0", - "contentHash": "g6fG2fJbgmjb/OXyXquCKQpKPqEtoUajNGb+mdD9wb47px8SURnxADX6azujc4tKR0uUCNkrHLYvERwl02pbYw==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "Proc": { - "type": "Direct", - "requested": "[0.6.1, )", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Fake.Core.Context": { - "type": "Transitive", - "resolved": "5.15.0", - "contentHash": "v6ah8Z3FGGIiak9tq8Bl5Vd7fLOq5BMPKvs9eNU22CMN6jxgJLVpM+Mg/raDC67Pj1b9ePU4A5rkMtlsiLSdUg==", - "dependencies": { - "FSharp.Core": "4.3.4" - } - }, - "Fake.Core.FakeVar": { - "type": "Transitive", - "resolved": "5.15.0", - "contentHash": "Hkc788UxAtRSda+SqlbmSWWlNO5Pl35Asz7aVqNyxjP2pKsiS+gMIroJbVgQ3MIiDF0s8WsUk2VTeIyOUNXUmg==", - "dependencies": { - "FSharp.Core": "4.3.4", - "Fake.Core.Context": "5.15.0" - } - }, - "Fake.Core.Process": { - "type": "Transitive", - "resolved": "5.15.0", - "contentHash": "wWLlwXeRXhLyRUK2au74xRSj2W3wq4ELCqCNF0Dqhktwn5xajb2ed77WgHXMNJmZ3IYjti/LR4IINtZzLbA/Iw==", - "dependencies": { - "FSharp.Core": "4.3.4", - "Fake.Core.Environment": "5.15.0", - "Fake.Core.FakeVar": "5.15.0", - "Fake.Core.String": "5.15.0", - "Fake.Core.Trace": "5.15.0", - "Fake.IO.FileSystem": "5.15.0", - "System.Diagnostics.Process": "4.3.0" - } - }, - "Fake.Core.String": { - "type": "Transitive", - "resolved": "5.15.0", - "contentHash": "2QR3a/57jEuuomX208Zn2K06ZSg8AQ7x/3IpnEV50jbBbi5uj5RXJ+V5E+QaIKUKoB9J6zPi6moPOETaPWmXIw==", - "dependencies": { - "FSharp.Core": "4.3.4" - } - }, - "Fake.Core.Trace": { - "type": "Transitive", - "resolved": "5.15.0", - "contentHash": "cMgJh7xsLsM8bKOML5F7DnSYTYmTnLgCbzaNww8tG1LuGesxD97zOwmercn2weNLybLm80NDQDPEROfNwENTRA==", - "dependencies": { - "FSharp.Core": "4.3.4", - "Fake.Core.Environment": "5.15.0", - "Fake.Core.FakeVar": "5.15.0" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lw1/VwLH1yxz6SfFEjVRCN0pnflLEsWgnV4qsdJ512/HhTwnKXUG+zDQ4yTO3K/EJQemGoNaBHX5InISNKTzUQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "ypsCvIdCZ4IoYASJHt6tF2fMo7N30NLgV1EbmC+snO490OMl9FvVxmumw14rhReWU3j3g7BYudG6YCrchwHJlA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.Win32.Primitives": "4.0.1", - "System.AppContext": "4.1.0", - "System.Collections": "4.0.11", - "System.Collections.Concurrent": "4.0.12", - "System.Console": "4.0.0", - "System.Diagnostics.Debug": "4.0.11", - "System.Diagnostics.Tools": "4.0.1", - "System.Diagnostics.Tracing": "4.1.0", - "System.Globalization": "4.0.11", - "System.Globalization.Calendars": "4.0.1", - "System.IO": "4.1.0", - "System.IO.Compression": "4.1.0", - "System.IO.Compression.ZipFile": "4.0.1", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.Net.Http": "4.1.0", - "System.Net.Primitives": "4.0.11", - "System.Net.Sockets": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.Handles": "4.0.1", - "System.Runtime.InteropServices": "4.1.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.0.0", - "System.Runtime.Numerics": "4.0.1", - "System.Security.Cryptography.Algorithms": "4.2.0", - "System.Security.Cryptography.Encoding": "4.0.0", - "System.Security.Cryptography.Primitives": "4.0.0", - "System.Security.Cryptography.X509Certificates": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11", - "System.Threading.Timer": "4.0.1", - "System.Xml.ReaderWriter": "4.0.11", - "System.Xml.XDocument": "4.0.11" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SemanticVersioning": { - "type": "Transitive", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "3QjO4jNV7PdKkmQAVp9atA+usVnKRwI3Kx1nMwJ93T0LcQfx7pKAYk0nKz5wn1oP5iqlhZuy6RXOFdhr7rDwow==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Collections.Immutable": { - "type": "Transitive", - "resolved": "1.3.0", - "contentHash": "zukBRPUuNxwy9m4TGWLxKAnoiMc9+B+8VXeXVyPiBPvOd7yLgAlZ1DlsRWJjMx4VsvhhF2+6q6kO2GRbPja6hA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "qSKUSOIiYA/a0g5XXdxFcUFmv1hNICBD7QZ0QhGYVipPIhvpiydY8VZqr1thmCXvmn8aipMg64zuanB4eotK9A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Runtime": "4.1.0", - "System.Text.Encoding": "4.0.11" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.FileVersionInfo": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "omCF64wzQ3Q2CeIqkD6lmmxeMZtGHUmzgFMPjfVaOsyqpR66p/JaZzManMw1s33osoAb5gqpncsjie67+yUPHQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Reflection.Metadata": "1.4.1", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.IO.FileSystem.Watcher": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "37IDFU2w6LJ4FrohcVlV1EXviUmAOJIbejVgOUtNaPQyeZW2D/0QSkH8ykehoOd19bWfxp3RRd0xj+yRRIqLhw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.Collections": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Overlapped": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Linq": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Emit": "4.0.1", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Emit.Lightweight": "4.0.1", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "xAz0N3dAV/aR/9g8r0Y5oEqU1JRsz29F5EGb/WVHmX3jVSLqi2/92M5hTad2aNWovruXrJpJtgZ9fccPMG9uSw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Net.Primitives": "4.0.11", - "System.Runtime": "4.1.0", - "System.Threading.Tasks": "4.0.11" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.0.12", - "contentHash": "tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==", - "dependencies": { - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.4.1", - "contentHash": "tc2ZyJgweHCLci5oQGuhQn9TD0Ii9DReXkHtZm3aAGp8xe40rpRjiTbMXOtZU+fr0BOQ46goE9+qIqRGjR9wGg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Collections.Immutable": "1.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.Linq": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "hWPhJxc453RCa8Z29O91EmfGeZIHX1ZH2A8L6lYQVSaKzku2DfArSfMEb1/MYYzPQRJZeu0c9dmYeJKxW5Fgng==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Threading": "4.0.11", - "runtime.native.System": "4.0.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "4F8Xe+JIkVoDJ8hDAZ7HqLkjctN/6WItJIzQaifBwClC7wmoLSda/Sv2i6i1kycqDb3hWF4JCVbpAweyOKHEUA==" - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Globalization": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Overlapped": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m3HQ2dPiX/DSTpf+yJt8B0c+SRvzfqAJKx+QDWi+VLhz8svLT23MVjEOHPF/KiSLeArKU/iHescrbLd3yVgyNg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "pH4FZDsZQ/WmgJtN4LWYmRdJAEeVkyriSwrv2Teoe5FOU0Yxlb6II6GL8dBPOfRmutHGATduj3ooMt7dJ2+i+w==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Runtime": "4.1.0", - "System.Threading.Tasks": "4.0.11" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "saGfUV8uqVW6LeURiqxcGhZ24PzuRNaUBtbhVeuUAvky1naH395A/1nY0P2bWvrw/BreRtIB/EzTDkGBpqCwEw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "ZIiLPsf67YZ9zgr31vzrFaYQqxRPX9cVHjtPSnmx4eN6lbS/yEyYNr2vs1doGDEscF0tjCZFsk9yUg1sC9e8tg==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading.Tasks": "4.0.11", - "System.Threading.Tasks.Extensions": "4.0.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "Mk2mKmPi0nWaoiYeotq1dgeNK1fqWh61+EK+w4Wu8SWuTYLzpUnschb59bJtGywaPq7SmTuPf44wrXRwbIrukg==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Diagnostics.Tools": "4.0.1", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11" - } - } - } - } -} \ No newline at end of file diff --git a/build/scripts/scripts.fsproj b/build/scripts/scripts.fsproj index 652a5fe7bf9..29ab285f8f5 100644 --- a/build/scripts/scripts.fsproj +++ b/build/scripts/scripts.fsproj @@ -35,7 +35,6 @@ make-release-notes.yml - diff --git a/global.json b/global.json index dd00ed4b0a7..c1ae6f120d3 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { - "version": "8.0.100", - "rollForward": "minor", + "version": "8.0.400", + "rollForward": "latestFeature", "allowPrerelease": false }, "version": "8.8.0-alpha.1", diff --git a/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/packages.lock.json b/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/packages.lock.json deleted file mode 100644 index 2a58420a4d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/packages.lock.json +++ /dev/null @@ -1,796 +0,0 @@ -{ - "version": 1, - "dependencies": { - ".NETFramework,Version=v4.6.2": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net462": "1.0.3" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net462": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "IzAV30z22ESCeQfxP29oVf4qEo8fBGXLXSU6oacv/9Iqe6PzgHDKCaWfwMBak7bSJQM0F5boXWoZS+kChztRIQ==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4", - "System.ValueTuple": "4.5.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.ValueTuple": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==" - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - }, - ".NETStandard,Version=v2.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "NETStandard.Library": { - "type": "Direct", - "requested": "[2.0.3, )", - "resolved": "2.0.3", - "contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - }, - ".NETStandard,Version=v2.1": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - }, - "net6.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - }, - "net8.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj index 12c277e36de..e2e4cdf3d98 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj +++ b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj @@ -22,10 +22,6 @@ - - all - runtime; build; native; contentfiles; analyzers - @@ -40,5 +36,8 @@ - + + + + \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/packages.lock.json b/src/Elastic.Clients.Elasticsearch.Serverless/packages.lock.json deleted file mode 100644 index c279af5e0db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/packages.lock.json +++ /dev/null @@ -1,771 +0,0 @@ -{ - "version": 1, - "dependencies": { - ".NETFramework,Version=v4.6.2": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net462": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net462": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "IzAV30z22ESCeQfxP29oVf4qEo8fBGXLXSU6oacv/9Iqe6PzgHDKCaWfwMBak7bSJQM0F5boXWoZS+kChztRIQ==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4", - "System.ValueTuple": "4.5.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.ValueTuple": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==" - } - }, - ".NETStandard,Version=v2.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "NETStandard.Library": { - "type": "Direct", - "requested": "[2.0.3, )", - "resolved": "2.0.3", - "contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - } - }, - ".NETStandard,Version=v2.1": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - } - }, - "net6.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - } - }, - "net8.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==" - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - } - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.projitems b/src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.projitems deleted file mode 100644 index c80a96ccde6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.projitems +++ /dev/null @@ -1,14 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - a90dd7b8-8afb-4be9-aa16-b159a880e79d - - - Elastic.Clients.Elasticsearch.Shared - - - - - \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.shproj b/src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.shproj deleted file mode 100644 index 031926721c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Shared/Elastic.Clients.Elasticsearch.Shared.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - a90dd7b8-8afb-4be9-aa16-b159a880e79d - 14.0 - - - - - - - - diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index 471b0b5f829..739f01d3602 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -22,10 +22,6 @@ - - all - runtime; build; native; contentfiles; analyzers - @@ -40,8 +36,4 @@ - - - - \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/BulkRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/BulkRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/BulkResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/BulkResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/CountRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/CountRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/CountRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/CountRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/CreateRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/CreateRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/CreateRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/CreateRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/DeleteRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/DeleteRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/DeleteRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/DeleteRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Eql/EqlGetResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Eql/EqlGetResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/Eql/EqlGetResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/Eql/EqlGetResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Esql/EsqlQueryRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/Esql/EsqlQueryRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Esql/EsqlQueryResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/Esql/EsqlQueryResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/ExistsRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/ExistsRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/ExistsResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/ExistsResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/ExistsSourceResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsSourceResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/ExistsSourceResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsSourceResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/GetSourceRequestDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceRequestDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/GetSourceRequestDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceRequestDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/GetSourceResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/GetSourceResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsAliasResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsAliasResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/ExistsTemplateResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetAliasResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetAliasResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetFieldMappingResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetFieldMappingResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetFieldMappingResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetFieldMappingResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetIndexResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetIndexResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetIndexResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetIndexResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetMappingResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetMappingResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetMappingResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetMappingResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Ingest/GetPipelineResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Ingest/GetPipelineResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/Ingest/GetPipelineResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/Ingest/GetPipelineResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/MultiSearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/MultiSearchRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/MultiSearchRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/MultiSearchRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/ResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ResponseItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/ResponseItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/ResponseItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/ScrollResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ScrollResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/ScrollResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/ScrollResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/SearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/SearchRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/SearchResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/SearchResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Sql/GetAsyncResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/GetAsyncResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/Sql/GetAsyncResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/GetAsyncResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Sql/QueryResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/QueryResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/Sql/QueryResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/QueryResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient-BulkAll.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-BulkAll.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient-BulkAll.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-BulkAll.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient-Manual.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-Manual.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient-Manual.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-Manual.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.Esql.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.Esql.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.Esql.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.Esql.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchClient.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchResponseBaseExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchResponseBaseExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/ElasticsearchResponseBaseExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchResponseBaseExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/IndexManyExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/IndexManyExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/IndexManyExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/IndexManyExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/IndicesNamespace.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/IndicesNamespace.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/IndicesNamespace.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/IndicesNamespace.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/NamespacedClientProxy.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/NamespacedClientProxy.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Client/NamespacedClientProxy.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Client/NamespacedClientProxy.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ClrTypeDefaults.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ClrTypeDefaults.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ClrTypeDefaults.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ClrTypeDefaults.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/ElasticsearchClientSettings.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/IElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/IElasticsearchClientSettings.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/IElasticsearchClientSettings.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/IElasticsearchClientSettings.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/MemberInfoResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/MemberInfoResolver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Configuration/MemberInfoResolver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/MemberInfoResolver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMath.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMath.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMath.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathExpression.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathExpression.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathExpression.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathExpression.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathTime.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTime.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathTime.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTime.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/Duration.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/Duration.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/Duration.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/Duration.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/TimeUnit.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/TimeUnit.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/DateTime/TimeUnit.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/TimeUnit.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/EmptyReadOnly.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnly.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/EmptyReadOnly.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnly.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/EmptyReadOnlyExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnlyExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/EmptyReadOnlyExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnlyExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Exceptions/ThrowHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Exceptions/ThrowHelper.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Exceptions/ThrowHelper.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Exceptions/ThrowHelper.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/ExceptionExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExceptionExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/ExceptionExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExceptionExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/ExpressionExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExpressionExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/ExpressionExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExpressionExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/Extensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/Extensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/Extensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/Extensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/StringExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/StringExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/StringExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/StringExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/SuffixExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/SuffixExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/SuffixExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/SuffixExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/TaskExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TaskExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/TaskExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TaskExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/TypeExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TypeExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Extensions/TypeExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TypeExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fields/FieldValue.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fields/FieldValue.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fields/FieldValues.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValues.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fields/FieldValues.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValues.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Descriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Descriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Descriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Descriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Fluent.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Fluent.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Fluent.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Fluent.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/FluentDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/FluentDictionary.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/FluentDictionary.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/FluentDictionary.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/IBuildableDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/IBuildableDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/IBuildableDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/IBuildableDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Promise/IPromise.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IPromise.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Promise/IPromise.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IPromise.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Promise/PromiseDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/PromiseDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Fluent/Promise/PromiseDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/PromiseDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/IComplexUnion.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IComplexUnion.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/IComplexUnion.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/IComplexUnion.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/IEnumStruct.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IEnumStruct.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/IEnumStruct.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/IEnumStruct.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/DefaultPropertyMappingProvider.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DefaultPropertyMappingProvider.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/DefaultPropertyMappingProvider.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DefaultPropertyMappingProvider.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/DocumentPath/DocumentPath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DocumentPath/DocumentPath.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/DocumentPath/DocumentPath.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DocumentPath/DocumentPath.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/Field.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/Field.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/Field.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/Field.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldExpressionVisitor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExpressionVisitor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldExpressionVisitor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExpressionVisitor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldResolver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/FieldResolver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldResolver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/ToStringExpressionVisitor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/ToStringExpressionVisitor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Field/ToStringExpressionVisitor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/ToStringExpressionVisitor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/Fields.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/Fields.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/Fields.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/Fields.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/FieldsConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/FieldsConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/FieldsDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Fields/FieldsDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IPropertyMappingProvider.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IPropertyMappingProvider.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IPropertyMappingProvider.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IPropertyMappingProvider.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/Id.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Id.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/Id.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Id.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdResolver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/Ids.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Ids.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/Ids.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Ids.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdsConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdsConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Id/IdsConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdsConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexName.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexNameConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexNameConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexNameExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexNameExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexNameResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameResolver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/IndexName/IndexNameResolver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameResolver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Indices/Indices.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Indices/Indices.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Indices/Indices.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Indices/Indices.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Inferrer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Inferrer.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Inferrer.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Inferrer.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinField.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinField.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinField.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinField.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinFieldConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinFieldConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinFieldRouting/Routing.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/Routing.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinFieldRouting/Routing.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/Routing.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Metric/Metrics.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Metric/Metrics.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Metric/Metrics.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Metric/Metrics.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/PropertyMapping.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyMapping.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/PropertyMapping.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyMapping.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/PropertyName/PropertyName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyName.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/PropertyName/PropertyName.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyName.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/RelationName/RelationName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationName.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/RelationName/RelationName.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationName.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/RelationName/RelationNameResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationNameResolver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/RelationName/RelationNameResolver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationNameResolver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/RoutingResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RoutingResolver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/RoutingResolver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RoutingResolver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Timestamp/Timestamp.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Timestamp/Timestamp.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Infer/Timestamp/Timestamp.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Timestamp/Timestamp.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/IsADictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsADictionary.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/IsADictionary.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/IsADictionary.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/IsAReadOnlyDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsAReadOnlyDictionary.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/IsAReadOnlyDictionary.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/IsAReadOnlyDictionary.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/LazyJson.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/LazyJson.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/LazyJson.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/LazyJson.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/MinimumShouldMatch.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/MinimumShouldMatch.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/MinimumShouldMatch.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/MinimumShouldMatch.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/OpenTelemetry/SemanticConventions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/OpenTelemetry/SemanticConventions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/OpenTelemetry/SemanticConventions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/OpenTelemetry/SemanticConventions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/RawJsonString.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/RawJsonString.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/RawJsonString.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/RawJsonString.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/ReadOnlyFieldDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyFieldDictionary.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/ReadOnlyFieldDictionary.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyFieldDictionary.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/ReadOnlyIndexNameDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyIndexNameDictionary.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/ReadOnlyIndexNameDictionary.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyIndexNameDictionary.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/ApiUrls.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs similarity index 96% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Request/ApiUrls.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs index 4cd324be8cd..8fbd5de5eab 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/ApiUrls.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs @@ -56,7 +56,7 @@ internal ApiUrls(string[] routes) } /// - /// Creates a lookup for number of parts <=> list of routes with that number of parts. + /// Creates a lookup for number of parts %lt;=> list of routes with that number of parts. /// allows us to quickly find the right url to use in the list. /// public Dictionary> Routes { get; } diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/PlainRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Request/PlainRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/Request.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Request/Request.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/RequestDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Request/RequestDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/RouteValues.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RouteValues.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Request/RouteValues.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RouteValues.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Request/UrlLookup.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/UrlLookup.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Request/UrlLookup.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/UrlLookup.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/DictionaryResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Response/DictionaryResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/DictionaryResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Response/ResolvableDictionaryProxy.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/ResolvableDictionaryProxy.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Response/ResolvableDictionaryProxy.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/ResolvableDictionaryProxy.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Static/Infer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Static/Infer.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Static/Infer.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Static/Infer.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/Union/Union.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Union/Union.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/Union/Union.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/Union/Union.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/Name/Name.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Name.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/Name/Name.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Name.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/Name/Names.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/Name/Names.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/NodeIds/NodeIds.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/NodeIds/NodeIds.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/NodeIds/NodeIds.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/NodeIds/NodeIds.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/ScrollIds/ScrollId.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollId.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/ScrollIds/ScrollId.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollId.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/TaskId/TaskId.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/TaskId/TaskId.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/TaskId/TaskId.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/TaskId/TaskId.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/Username/Username.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Username/Username.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Core/UrlParameters/Username/Username.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Username/Username.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/IsExternalInit.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/IsExternalInit.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/IsExternalInit.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/IsExternalInit.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/NativeMethods.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NativeMethods.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/NativeMethods.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NativeMethods.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/NullableAttributes.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NullableAttributes.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/NullableAttributes.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NullableAttributes.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/RuntimeInformation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/RuntimeInformation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/RuntimeInformation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/RuntimeInformation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/TypeExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/TypeExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/CrossPlatform/TypeExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/TypeExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Exceptions/UnsupportedProductException.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Exceptions/UnsupportedProductException.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Exceptions/UnsupportedProductException.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Exceptions/UnsupportedProductException.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BlockingSubscribeExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BlockingSubscribeExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/BlockingSubscribeExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BlockingSubscribeExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObservable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObservable.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObservable.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObservable.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObserver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObserver.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObserver.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObserver.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllResponse.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllResponse.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllResponse.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/CoordinatedRequestDefaults.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestDefaults.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/CoordinatedRequestDefaults.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestDefaults.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/CoordinatedRequestObserverBase.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestObserverBase.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/CoordinatedRequestObserverBase.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestObserverBase.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/HelperIdentifiers.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/HelperIdentifiers.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/HelperIdentifiers.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/HelperIdentifiers.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/IBulkAllRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IBulkAllRequest.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/IBulkAllRequest.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IBulkAllRequest.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/IHelperCallable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IHelperCallable.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/IHelperCallable.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IHelperCallable.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/PartitionHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/PartitionHelper.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/PartitionHelper.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/PartitionHelper.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/ProducerConsumerBackPressure.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/ProducerConsumerBackPressure.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/ProducerConsumerBackPressure.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/ProducerConsumerBackPressure.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/RequestMetaDataExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/RequestMetaDataExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/RequestMetaDataFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataFactory.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/RequestMetaDataFactory.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataFactory.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/RequestParametersExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestParametersExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Helpers/RequestParametersExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestParametersExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/CustomizedNamingPolicy.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/CustomizedNamingPolicy.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/CustomizedNamingPolicy.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/CustomizedNamingPolicy.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/DefaultRequestResponseSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/DefaultRequestResponseSerializer.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/DefaultSourceSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/DefaultSourceSerializer.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/DictionaryResponseConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DictionaryResponseConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/DictionaryResponseConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DictionaryResponseConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/DoubleWithFractionalPortionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DoubleWithFractionalPortionConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/DoubleWithFractionalPortionConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DoubleWithFractionalPortionConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/EnumStructConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/EnumStructConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/EnumStructConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/EnumStructConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/GenericConverterAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/GenericConverterAttribute.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/GenericConverterAttribute.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/GenericConverterAttribute.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/ISourceMarker.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ISourceMarker.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/ISourceMarker.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ISourceMarker.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/IStreamSerializable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IStreamSerializable.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/IStreamSerializable.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IStreamSerializable.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/IUnionVerifiable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IUnionVerifiable.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/IUnionVerifiable.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IUnionVerifiable.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/InterfaceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/InterfaceConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/InterfaceConverterAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverterAttribute.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/InterfaceConverterAttribute.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverterAttribute.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/IntermediateSourceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IntermediateSourceConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/IntermediateSourceConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IntermediateSourceConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/IsADictionaryConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IsADictionaryConverterFactory.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/IsADictionaryConverterFactory.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IsADictionaryConverterFactory.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/JsonConstants.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonConstants.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/JsonConstants.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonConstants.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/JsonHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonHelper.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/JsonHelper.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonHelper.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/JsonSerializerOptionsExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonSerializerOptionsExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/JsonSerializerOptionsExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonSerializerOptionsExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/KeyValuePairConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/KeyValuePairConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/KeyValuePairConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/KeyValuePairConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/MultiItemUnionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/MultiItemUnionConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/MultiItemUnionConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/MultiItemUnionConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/NumericAliasConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/NumericAliasConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/NumericAliasConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/NumericAliasConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/ObjectToInferredTypesConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/ObjectToInferredTypesConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/PropertyNameConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/PropertyNameConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/PropertyNameConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/PropertyNameConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/QueryConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/QueryConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/QueryConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/QueryConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/ResponseItemConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResponseItemConverterFactory.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/ResponseItemConverterFactory.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResponseItemConverterFactory.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SelfSerializable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializable.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SelfSerializable.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializable.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SelfSerializableConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializableConverterFactory.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SelfSerializableConverterFactory.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializableConverterFactory.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SerializationConstants.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializationConstants.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SerializationConstants.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializationConstants.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SerializerExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializerExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SerializerExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializerExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SettingsJsonConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SettingsJsonConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SettingsJsonConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SettingsJsonConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SimpleInterfaceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SimpleInterfaceConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SimpleInterfaceConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SimpleInterfaceConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleOrManyCollectionAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionAttribute.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleOrManyCollectionAttribute.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionAttribute.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleOrManyCollectionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleOrManyCollectionConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleOrManySerializationHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManySerializationHelper.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleOrManySerializationHelper.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManySerializationHelper.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleWithFractionalPortionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleWithFractionalPortionConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SingleWithFractionalPortionConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleWithFractionalPortionConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceConverterAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterAttribute.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceConverterAttribute.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterAttribute.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterFactory.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceConverterFactory.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterFactory.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceMarker.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceMarker.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceMarker.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceMarker.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceSerialization.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceSerialization.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SourceSerialization.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceSerialization.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/StringAliasConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringAliasConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/StringAliasConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringAliasConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/StringEnumAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringEnumAttribute.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/StringEnumAttribute.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringEnumAttribute.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/Stringified.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/Stringified.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/Stringified.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/Stringified.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/SystemTextJsonSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SystemTextJsonSerializer.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/SystemTextJsonSerializer.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SystemTextJsonSerializer.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/TermsAggregateSerializationHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/TermsAggregateSerializationHelper.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/TermsAggregateSerializationHelper.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/TermsAggregateSerializationHelper.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Serialization/UnionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/UnionConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Serialization/UnionConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Serialization/UnionConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/AggregateOrder.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/AggregateOrder.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/AggregateOrder.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/AggregateOrder.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/BucketsPath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/BucketsPath.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/TermsExclude.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsExclude.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/TermsExclude.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsExclude.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/TermsInclude.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsInclude.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Aggregations/TermsInclude.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsInclude.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/AsyncSearch/AsyncSearch.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/AsyncSearch/AsyncSearch.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/AsyncSearch/AsyncSearch.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/AsyncSearch/AsyncSearch.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkCreateOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkCreateOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkDeleteOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkDeleteOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkIndexOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkIndexOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkOperationDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkOperationsCollection.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationsCollection.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkOperationsCollection.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationsCollection.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkResponseItemConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkResponseItemConverter.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkResponseItemConverter.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkResponseItemConverter.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateBody.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationT.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationT.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationT.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationT.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/IBulkOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/IBulkOperation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/IBulkOperation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/IBulkOperation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/MSearch/SearchRequestItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/MSearch/SearchRequestItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Search/SourceConfigParam.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Search/SourceConfigParam.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Core/Search/SourceConfigParam.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Search/SourceConfigParam.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/FieldSort.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/FieldSort.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/FieldSort.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/FieldSort.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/GeoLocation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/GeoLocation.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/GeoLocation.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/GeoLocation.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Mapping/Properties.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/Properties.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Mapping/Properties.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/Properties.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Mapping/PropertiesDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertiesDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Mapping/PropertiesDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertiesDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Mapping/PropertyNameExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertyNameExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Mapping/PropertyNameExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertyNameExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/MultiSearchItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/MultiSearchItem.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/MultiSearchItem.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/MultiSearchItem.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/OpType.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/OpType.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/OpType.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/OpType.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/PointInTimeReferenceDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/PointInTimeReferenceDescriptor.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/PointInTimeReferenceDescriptor.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/PointInTimeReferenceDescriptor.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQuery.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQuery.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQuery.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQuery.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQueryAndExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryAndExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQueryAndExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryAndExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQueryExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQueryExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQueryOrExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryOrExtensions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/BoolQueryOrExtensions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryOrExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/FunctionScore.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/FunctionScore.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/FunctionScore.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/FunctionScore.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/Query.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/Query.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/Query.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/Query.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/RangeQuery.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RangeQuery.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/RangeQuery.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RangeQuery.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/RawJsonQuery.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RawJsonQuery.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/QueryDsl/RawJsonQuery.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RawJsonQuery.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Ranges.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Ranges.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Ranges.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Ranges.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Refresh.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Refresh.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Refresh.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Refresh.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Slices.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Slices.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Slices.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Slices.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/SortOptions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/SortOptions.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/SortOptions.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/SortOptions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/SourceConfig.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/SourceConfig.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/SourceConfig.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/SourceConfig.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Sql/SqlRow.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlRow.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Sql/SqlRow.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlRow.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/Sql/SqlValue.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlValue.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/Sql/SqlValue.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlValue.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Types/WaitForActiveShards.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/WaitForActiveShards.cs similarity index 100% rename from src/Elastic.Clients.Elasticsearch.Shared/Types/WaitForActiveShards.cs rename to src/Elastic.Clients.Elasticsearch/_Shared/Types/WaitForActiveShards.cs diff --git a/src/Elastic.Clients.Elasticsearch/packages.lock.json b/src/Elastic.Clients.Elasticsearch/packages.lock.json deleted file mode 100644 index c279af5e0db..00000000000 --- a/src/Elastic.Clients.Elasticsearch/packages.lock.json +++ /dev/null @@ -1,771 +0,0 @@ -{ - "version": 1, - "dependencies": { - ".NETFramework,Version=v4.6.2": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net462": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net462": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "IzAV30z22ESCeQfxP29oVf4qEo8fBGXLXSU6oacv/9Iqe6PzgHDKCaWfwMBak7bSJQM0F5boXWoZS+kChztRIQ==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4", - "System.ValueTuple": "4.5.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.ValueTuple": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==" - } - }, - ".NETStandard,Version=v2.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "NETStandard.Library": { - "type": "Direct", - "requested": "[2.0.3, )", - "resolved": "2.0.3", - "contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - } - }, - ".NETStandard,Version=v2.1": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - } - }, - "net6.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - } - }, - "net8.0": { - "ConfigureAwaitChecker.Analyzer": { - "type": "Direct", - "requested": "[5.0.0.1, )", - "resolved": "5.0.0.1", - "contentHash": "jqOPPOJzHiUajPVGNw0MJzqUYLM3nHYEXEo1X91VqbwBqvq0+u8ASgcdmlmr4E9ffWJkjIo8vPEH9EMrKh69EQ==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==" - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Microsoft.VisualStudio.Threading.Analyzers": { - "type": "Direct", - "requested": "[17.3.44, )", - "resolved": "17.3.44", - "contentHash": "96TPV4lH1a8iXNoq6sQxSTAXXCewyt2bE7luIZd3kS7Zzs1fs6Uwd9bFg2AxBt1WNPU1ozb3D1olpsoRmLKleA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - } - } - } -} \ No newline at end of file diff --git a/src/Playground/Playground.csproj b/src/Playground/Playground.csproj index 39421d601fa..5ec71553f85 100644 --- a/src/Playground/Playground.csproj +++ b/src/Playground/Playground.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable @@ -11,11 +11,10 @@ - + - diff --git a/src/Playground/packages.lock.json b/src/Playground/packages.lock.json deleted file mode 100644 index 79a711b65a4..00000000000 --- a/src/Playground/packages.lock.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net6.0": { - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Moq": { - "type": "Direct", - "requested": "[4.18.2, )", - "resolved": "4.18.2", - "contentHash": "SjxKYS5nX6prcaT8ZjbkONh3vnh0Rxru09+gQ1a07v4TM530Oe/jq3Q4dOZPfo1wq0LYmTgLOZKrqRfEx4auPw==", - "dependencies": { - "Castle.Core": "5.1.0" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "System.Text.Json": { - "type": "Direct", - "requested": "[8.0.4, )", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - }, - "Castle.Core": { - "type": "Transitive", - "resolved": "5.1.0", - "contentHash": "31UJpTHOiWq95CDOHazE3Ub/hE/PydNWsJMwnEVTqFFP4WhAugwpaVGxzOxKgNeSUUeqS2W6lxV+q7u1pAOfXg==", - "dependencies": { - "System.Diagnostics.EventLog": "6.0.0" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Diagnostics.EventLog": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "lcyUiXTsETK2ALsZrX+nWuHSIQeazhqPphLfaRxzdGaG93+0kELqpgEHtwWOlQe7+jSFnKwaCAgL4kjeZCQJnw==" - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "elastic.clients.elasticsearch.jsonnetserializer": { - "type": "Project", - "dependencies": { - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Newtonsoft.Json": "[13.0.1, )" - } - }, - "elastic.clients.elasticsearch.serverless": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - } - } - } -} \ No newline at end of file diff --git a/src/PlaygroundV7x/Person.cs b/src/PlaygroundV7x/Person.cs deleted file mode 100644 index 391566f4cdb..00000000000 --- a/src/PlaygroundV7x/Person.cs +++ /dev/null @@ -1,31 +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 Nest; - -namespace PlaygroundV7x -{ - public class Person - { - public int Id { get; set; } - - public Guid SecondaryId { get; set; } = Guid.NewGuid(); - public string? FirstName { get; init; } - public string? LastName { get; init; } - public int? Age { get; init; } - //public Routing? Routing { get; init; } - - public Id Idv3 => "testing"; - //public Guid Routing { get; init; } = Guid.NewGuid(); - - public string? Email { get; init; } - - public string Data { get; init; } = "NOTHING"; - - public DateTime Date { get; set; } - - public Guid Guid { get; set; } - } -} diff --git a/src/PlaygroundV7x/PlaygroundV7x.csproj b/src/PlaygroundV7x/PlaygroundV7x.csproj deleted file mode 100644 index f84729f7a50..00000000000 --- a/src/PlaygroundV7x/PlaygroundV7x.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - Exe - net6.0 - enable - - - - - - - diff --git a/src/PlaygroundV7x/Program.cs b/src/PlaygroundV7x/Program.cs deleted file mode 100644 index 9121aef508d..00000000000 --- a/src/PlaygroundV7x/Program.cs +++ /dev/null @@ -1,263 +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 Elasticsearch.Net; -using Nest; - -namespace PlaygroundV7x -{ - internal class Program - { - private static readonly IElasticClient Client = - new ElasticClient(new ConnectionSettings(new InMemoryConnection(Array.Empty(), 502, null, null)) - .DefaultIndex("index") - .EnableHttpCompression(false) - ); - - private static void Main() - { - var things = new List() { "a" }; - - var bulkAll = Client.BulkAll(things, r => r - .BackOffRetries(0) // Number of document retries. Can set this to zero to never retry - .BackOffTime("30s") // Time to wait between retries - .RetryDocumentPredicate((bulkResponseItem, logEntry) => false) // Decide if a document should be retried in the event of a failure. - // The default behaviour is to retry only if bulkResponseItem.Status == 429. - // This can be overridden by providing a more specific delegate, or opting to never retry failed operations. - .ContinueAfterDroppedDocuments() // Continue indexing remaining items from the IEnumerable of documents even after some are dropped. - .DroppedDocumentCallback((bulkResponseItem, logEntry) => // If a document cannot be indexed this delegate is called - { - Console.WriteLine($"{bulkResponseItem.Status} : {bulkResponseItem.Error.Reason}"); // Access operation failure information for the document - }) - .MaxDegreeOfParallelism(4) - .Size(1000)); - - try - { - bulkAll.Wait(TimeSpan.FromMinutes(10), r => Console.WriteLine("Data indexed")); - } - catch (ElasticsearchClientException ex) when (ex.Response is not null) - { - if (ex.Response.HttpStatusCode.HasValue) - { - HandleStatusCode(ex.Response.HttpStatusCode); - } - else if (ex.Response.OriginalException is ElasticsearchClientException esException && esException.FailureReason == PipelineFailure.FailedProductCheck) - { - HandleStatusCode(esException.Response?.HttpStatusCode); - } - } - - static void HandleStatusCode(int? statusCode) - { - if (statusCode.HasValue) - { - switch (statusCode.Value) - { - case 404: - Console.WriteLine("404"); // handle as required - break; - - case 410: - Console.WriteLine("410"); - break; - - // etc. - } - } - } - - - -// var aggs = new AggregationDictionary -// { -// { "startDates", new TermsAggregation("startDates") { Field = "startedOn" } }, -// { "endDates", new DateHistogramAggregation("endDates") { Field = "endedOn" } } -// }; - -// var a = new SearchRequest() -// { -// From = 10, -// Size = 20, -// Query = new Query(new MatchAllQuery()), -// Aggregations = aggs, -// PostFilter = new Query(new TermQuery -// { -// Field = "state", -// Value = "Stable" -// }) -// }; - -// var client = new ElasticClient(new ConnectionSettings(new InMemoryTransportClient()) -// .DefaultIndex("default-index") -// //.DefaultMappingFor(m => m -// //.DisableIdInference() -// //.IndexName("people")) -// //.IdProperty(id => id.SecondaryId) -// //.RoutingProperty(id => id.SecondaryId) -// //.RelationName("relation")) -// //.DefaultFieldNameInferrer(s => $"{s}_2") -// .EnableDebugMode()); - - -// var createIndexResponse = await client.Indices.CreateAsync("aa", i => i -// .Map(m => m.Properties(p => p.Boolean(b => b)))); - - - -// var filterResponse = await client.SearchAsync(s => s -// .Query(q => q -// .Bool(b => b -// .Filter( -// f => f.Term(t => t.Field(f => f.Age).Value(37)), -// f => f.Term(t => t.Field(f => f.FirstName).Value("Steve")) -// )))); - -// var person = new Person { Id = 101, FirstName = "Steve", LastName = "Gordon", Age = 37, Email = "sgordon@example.com" }; - -// var routingResponse = await client.IndexAsync(person, r => r); - -// client.Update("a", d => d.Index("test").Script(s => s.Source("script").Params(new Dictionary { { "null", new Person { FirstName = null, LastName = "test-surname" } } }))); - -// var people = new List() -// { -// new Person{ FirstName = "Steve", LastName = "Gordon"}, -// new Person{ FirstName = "Steve", LastName = "Gordon"}, -// new Person{ FirstName = "Steve", LastName = "Gordon"}, -// new Person{ FirstName = "Steve", LastName = "Gordon"}, -// new Person{ FirstName = "Steve", LastName = "Gordon"}, -// }; - -// //using var bulk = client.BulkAll(people, r => r.Index("testing-v7")); -// //var result = bulk.Wait(TimeSpan.FromSeconds(60), a => { Console.WriteLine(a.Items.Count); }); -// //var a1 = result.TotalNumberOfRetries; -// //var b1 = result.TotalNumberOfFailedBuffers; - -// using var bulk2 = client.BulkAll(people, r => r); -// var result2 = bulk2.Wait(TimeSpan.FromSeconds(60), a => { Console.WriteLine(a.Items.Count); }); -// var a12 = result2.TotalNumberOfRetries; -// var b12 = result2.TotalNumberOfFailedBuffers; - -// //var responseBulk = client.Bulk(new BulkRequest -// //{ -// // Operations = new List -// //{ -// // new BulkIndexOperation(new Person()) { Index = "people" } , -// // new BulkIndexOperation(new Person()) { Index = "people", IfSequenceNumber = -1, IfPrimaryTerm = 0 } -// //} -// //}); - -// var response = client.Index(new Person(), e => e.Index("test")); - -// var settingsResponse = await client.Indices.CreateAsync("a", i => i.Settings(s => s.Analysis(a => a.TokenFilters(tf => tf -// .Shingle("my-shingle", s => s.MinShingleSize(2)) -// .Snowball("my_snowball", s => s.Version("v1")))))); - -// //var c1 = new ElasticClient(new ConnectionSettings(new Uri("https://azure.es.eastus.azure.elastic-cloud.com:9243")).BasicAuthentication("a", "b").ThrowExceptions()); - -// //var r1 = await c1.PingAsync(); - - - - -//#pragma warning disable IDE0039 // Use local function -// Func, IBoolQuery> test = b => b.Name("thing"); -//#pragma warning restore IDE0039 // Use local function - -// static IBoolQuery TestBoolQuery(BoolQueryDescriptor b) => b.Name("thing"); - -// var thing = Query.Bool(test); -// thing = Query.Bool(TestBoolQuery); - -// var matchQueryOne = Query.Match(m => m.Field(f => f.FirstName).Query("Steve")); -// var matchQueryTwo = new Query(new MatchQuery() { Field = Infer.Field(f => f.FirstName), Query = "Steve" }); -// var matchQueryThree = new QueryDescriptor().Match(m => m.Field(f => f.FirstName).Query("Steve")); - - -// //var a = client.IndexMany(new Person[0] { }, a => a.) - -// var matchAll = new Query(new MatchAllQuery() { Name = "test_query", IsVerbatim = true }); -// //var filter = Query.Bool(b => b.Filter(f => f.Match(m => m.Field(fld => fld.FirstName).Query("Steve").Name("test_match")))); -// var boolQuery = new Query(new BoolQuery() { Filter = new[] { new Query(new MatchQuery() { Name = "test_match", Field = "firstName", Query = "Steve" }) } }); - -// var spanQuery = new Query(new SpanContainingQuery() -// { -// Big = new SpanQuery() -// { -// //SpanTerm = new SpanTermQuery { Field = "test", Value = "foo", Name = "span_term_name" }, -// SpanNear = new SpanNearQuery -// { -// Slop = 5, -// InOrder = true, -// Clauses = new ISpanQuery[] -// { -// new SpanQuery() { SpanTerm = new SpanTermQuery { Field = "test", Value = "bar", Name = "span_term_inner_name_1" } }, -// new SpanQuery() { SpanTerm = new SpanTermQuery { Field = "test", Value = "baz", Name = "span_term_inner_name_2" } }, -// } -// } -// } -// }); - -// spanQuery = new Query(new SpanNearQuery() -// { -// Clauses = new[] { new SpanQuery() { SpanGap = new SpanGapQuery() { Field = "test", Width = 10 } } } -// }); - -// //var spanQueryRaw = new SpanQuery() -// //{ -// // SpanFirst = new SpanFirstQuery(), -// // SpanContaining = new SpanContainingQuery() -// //}; - -// var search = new SearchRequest() -// { -// Query = spanQuery -// }; - -// _ = await client.SearchAsync(new SearchDescriptor()); -// _ = await client.CountAsync(new CountDescriptor()); - -// //var response = await client.SearchAsync(search); - -// var r = await client.Indices.CreateAsync("", c => c.Settings(s => s.Analysis(a => a.CharFilters(cf => cf -// .HtmlStrip("name", h => h) -// .PatternReplace("name-2", p => p))))); - -// //var indexName = Guid.NewGuid().ToString(); - -// //// Create an index -// //var createResponse = await client.Indices.CreateAsync(new CreateIndexRequest(indexName) -// //{ -// // Mappings = new TypeMapping -// // { -// // DateDetection = false, -// // Properties = new Properties -// // { -// // {"age", new NumberProperty(NumberType.Integer)}, -// // {"name", new TextProperty()}, -// // {"email", new KeywordProperty()} -// // }, -// // Meta = new Dictionary() -// // { -// // { "foo", "bar" } -// // } -// // } -// //}); - -// //var intervalsQuery = new IntervalsQuery() -// //{ -// // Match = new IntervalsMatch() -// // { - -// // }, -// // AllOf = new IntervalsAllOf() -// // { - -// // } -// //} - } - } -} diff --git a/src/PlaygroundV7x/packages.lock.json b/src/PlaygroundV7x/packages.lock.json deleted file mode 100644 index 62cf7054331..00000000000 --- a/src/PlaygroundV7x/packages.lock.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net6.0": { - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "NEST": { - "type": "Direct", - "requested": "[7.17.5, )", - "resolved": "7.17.5", - "contentHash": "bo9UyuIoVRx4IUQiuC8ZrlZuvAXKIccernC7UUKukQCEmRq2eVIk+gubHlnMQljrP51q0mN4cjgy9vv5uZPkoA==", - "dependencies": { - "Elasticsearch.Net": "7.17.5" - } - }, - "Elasticsearch.Net": { - "type": "Transitive", - "resolved": "7.17.5", - "contentHash": "orChsQi1Ceho/NyIylNOn6y4vuGcsbCfMZnCueNN0fzqYEGQmQdPfcVmsR5+3fwpXTgxCdjTUVmqOwvHpCSB+Q==", - "dependencies": { - "Microsoft.CSharp": "4.6.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "5.0.0" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "kxn3M2rnAGy5N5DgcIwcE8QTePWU/XiYcQVzn9HqTls2NKluVzVSmVWRjK7OUPWbljCXuZxHyhEz9kPRIQeXow==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "tCQTzPsGZh/A9LhhA6zrqCRV4hOHsK90/G7q3Khxmn6tnB1PuNU0cRaKANP2AWcF9bn0zsuOoZOSrHuJk6oNBA==" - } - } - } -} \ No newline at end of file diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index ef2727daa40..9607d11a937 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -4,7 +4,4 @@ CAC001 - - $(SolutionRoot)/build/output;https://api.nuget.org/v3/index.json - diff --git a/tests/Tests.ClusterLauncher/packages.lock.json b/tests/Tests.ClusterLauncher/packages.lock.json deleted file mode 100644 index 510916705b8..00000000000 --- a/tests/Tests.ClusterLauncher/packages.lock.json +++ /dev/null @@ -1,2628 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net6.0": { - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.2" - } - }, - "Bogus": { - "type": "Transitive", - "resolved": "22.1.2", - "contentHash": "FnYg++zOsFkN3wQJcPT6U4bmZoW/zDWp474QsZG2KX/ClCiEOwIfUxJ9xuKgwv46K0LvVoicQD09hgPke0FG1A==" - }, - "DiffPlex": { - "type": "Transitive", - "resolved": "1.4.1", - "contentHash": "xZLcguPf0Gl67Ygz8XIhiQmTeUIs/M4eB9ylOelNGnHMvmqxe9bQ89omVJdoSO6gvc4NSmonHGL+zfwrSEjGnA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "Elastic.Elasticsearch.Ephemeral": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==", - "dependencies": { - "Elastic.Elasticsearch.Managed": "0.4.3", - "SharpZipLib.NETStandard": "1.0.7" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Elastic.Elasticsearch.Xunit": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==", - "dependencies": { - "Elastic.Elasticsearch.Ephemeral": "0.4.3", - "xunit": "2.4.1" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "FluentAssertions": { - "type": "Transitive", - "resolved": "5.10.3", - "contentHash": "gVPEVp1hLVqcv+7Q2wiDf7kqCNn7+bQcQ0jbJ2mcRT6CeRoZl1tNkqvzSIhvekyldDptk77j1b03MXTTRIqqpg==", - "dependencies": { - "System.Configuration.ConfigurationManager": "4.4.0" - } - }, - "JunitXml.TestLogger": { - "type": "Transitive", - "resolved": "3.0.110", - "contentHash": "D0Kl9mNnbSZgEa8ZgsEAJskPvyrC9k+5BsEWUqvNr++BZJbYIb08fwe0ohvb6WEzJlMPmeLJMmvQuw5yIq3gjA==" - }, - "Microsoft.Bcl.HashCode": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "MalY0Y/uM/LjXtHfX/26l2VtN4LDNZ2OE3aumNOHDLsT4fNYy2hiHXI4CXCqKpNUNm7iJ2brrc4J89UdaL56FA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CodeCoverage": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "MsKhJmwIfHxNDbTIlgQy29UpWSWPpbZOQPhQ7xalRy+ABnl8/neFHZGzSP3XlpW2dKAXHTFrtIcKzW/kopY2Bg==" - }, - "Microsoft.NET.Test.Sdk": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "kYmkDYbcDd+jNvmMH4TMtgHjsUYbIsWENM2VcjB0X7TawXbehL5I8OIsu2TgFS/nQCgZE94InrqMxrm7WDy+Lw==", - "dependencies": { - "Microsoft.CodeCoverage": "17.2.0", - "Microsoft.TestPlatform.TestHost": "17.2.0" - } - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.2", - "contentHash": "8shzGaD5pZi4npuJYCM3de6pl0zlefcbyTIvXIiCdsTqauZ7lAhdaJVtJSqlhYid9VosFAOygBykoJ1SEOlGWA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.TestPlatform.ObjectModel": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "7j1KYDHLhU98XnCEbECMncXLydI9fNiFLcFsiBsP3lV6EkHOaj5kTPAWHYkKnPGRC9TbZUboSQq8rWI4dTQsxg==", - "dependencies": { - "NuGet.Frameworks": "5.11.0", - "System.Reflection.Metadata": "1.6.0" - } - }, - "Microsoft.TestPlatform.TestHost": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "bI67J+hers241h7eD2eecS02p9CbKcQDIeoRvO4FgMlTWg2ZTzc0D3uWLYr5U+K5x9O1pNmyMoMDbYIeWY/TWw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "17.2.0", - "Newtonsoft.Json": "9.0.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lw1/VwLH1yxz6SfFEjVRCN0pnflLEsWgnV4qsdJ512/HhTwnKXUG+zDQ4yTO3K/EJQemGoNaBHX5InISNKTzUQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.1", - "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" - } - }, - "Newtonsoft.Json": { - "type": "Transitive", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "NuGet.Frameworks": { - "type": "Transitive", - "resolved": "5.11.0", - "contentHash": "eaiXkUjC4NPcquGWzAGMXjuxvLwc6XGKMptSyOGQeT0X70BUZObuybJFZLA0OfTdueLd3US23NBPTBb6iF3V1Q==" - }, - "Nullean.VsTest.Pretty.TestLogger": { - "type": "Transitive", - "resolved": "0.3.0", - "contentHash": "11Cklf+kZ1JS+l3CRZaWQaQHmRm0Je/iIrci6bwY5c9/QXrCuYgWe/A2w0G1eYe33QU5sgUmds48Y7HQFK89mw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "15.8.0" - } - }, - "Proc": { - "type": "Transitive", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SemanticVersioning": { - "type": "Transitive", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "SharpZipLib.NETStandard": { - "type": "Transitive", - "resolved": "1.0.7", - "contentHash": "mYKPizF2CY32RQB8FITYy0e30gVgItFA63SFquruaxq+votwL1T+yOfssK10v4enBcxklr8ks48hS1emw5TTXg==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Configuration.ConfigurationManager": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "gWwQv/Ug1qWJmHCmN17nAbxJYmQBM/E94QxKLksvUiiKB1Ld3Sc/eK1lgmbSjDFxkQhVuayI/cGFZhpBSodLrg==", - "dependencies": { - "System.Security.Cryptography.ProtectedData": "4.4.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.ProtectedData": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==" - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "npvJkVKl5rKXrtl1Kkm6OhOUaYGEiF9wFbppFRWSMoApKzt2PiPHT2Bb8a5sAWxprvdOAtvaARS9QYMznEUtug==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "xunit": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "6Mj73Ont3zj2CJuoykVJfE0ZmRwn7C+pTuRP8c4bnaaTFjwNG6tGe0prJ1yIbMe9AHrpDys63ctWacSsFJWK/w==", - "dependencies": { - "xunit.analyzers": "1.0.0", - "xunit.assert": "2.4.2", - "xunit.core": "[2.4.2]" - } - }, - "xunit.abstractions": { - "type": "Transitive", - "resolved": "2.0.3", - "contentHash": "pot1I4YOxlWjIb5jmwvvQNbTrZ3lJQ+jUGkGjWE3hEFM0l5gOnBWS+H3qsex68s5cO52g+44vpGzhAt+42vwKg==" - }, - "xunit.analyzers": { - "type": "Transitive", - "resolved": "1.0.0", - "contentHash": "BeO8hEgs/c8Ls2647fPfieMngncvf0D0xYNDfIO59MolxtCtVjFRd6SRc+7tj8VMqkVOuJcnc9eh4ngI2cAmLQ==" - }, - "xunit.assert": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "pxJISOFjn2XTTi1mcDCkRZrTFb9OtRRCtx2kZFNF51GdReLr1ls2rnyxvAS4JO247K3aNtflvh5Q0346K5BROA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "xunit.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "KB4yGCxNqIVyekhJLXtKSEq6BaXVp/JO3mbGVE1hxypZTLEe7h+sTbAhpA+yZW2dPtXTuiW+C1B2oxxHEkrmOw==", - "dependencies": { - "xunit.extensibility.core": "[2.4.2]", - "xunit.extensibility.execution": "[2.4.2]" - } - }, - "xunit.extensibility.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "W1BoXTIN1C6kpVSMw25huSet25ky6IAQUNovu3zGOGN/jWnbgSoTyCrlIhmXSg0tH5nEf8q7h3OjNHOjyu5PfA==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.abstractions": "2.0.3" - } - }, - "xunit.extensibility.execution": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "CZmgcKkwpyo8FlupZdWpJCryrAOWLh1FBPG6gmVZuPQkGQsim/oL4PcP4nfrC2hHgXUFtluvaJ0Sp9PQKUMNpg==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.extensibility.core": "[2.4.2]" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "elastic.clients.elasticsearch.jsonnetserializer": { - "type": "Project", - "dependencies": { - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Newtonsoft.Json": "[13.0.1, )" - } - }, - "tests.configuration": { - "type": "Project", - "dependencies": { - "Elastic.Elasticsearch.Managed": "[0.4.3, )" - } - }, - "tests.core": { - "type": "Project", - "dependencies": { - "DiffPlex": "[1.4.1, )", - "Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )", - "Elastic.Elasticsearch.Xunit": "[0.4.3, )", - "FluentAssertions": "[5.10.3, )", - "JunitXml.TestLogger": "[3.0.110, )", - "Microsoft.Bcl.HashCode": "[1.1.1, )", - "Microsoft.NET.Test.Sdk": "[17.2.0, )", - "Nullean.VsTest.Pretty.TestLogger": "[0.3.0, )", - "Proc": "[0.6.1, )", - "Tests.Domain": "[8.0.0, )", - "xunit": "[2.4.2, )" - } - }, - "tests.domain": { - "type": "Project", - "dependencies": { - "Bogus": "[22.1.2, )", - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Elastic.Elasticsearch.Managed": "[0.4.3, )", - "Newtonsoft.Json": "[13.0.1, )", - "Tests.Configuration": "[8.0.0, )" - } - } - }, - "net8.0": { - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.2" - } - }, - "Bogus": { - "type": "Transitive", - "resolved": "22.1.2", - "contentHash": "FnYg++zOsFkN3wQJcPT6U4bmZoW/zDWp474QsZG2KX/ClCiEOwIfUxJ9xuKgwv46K0LvVoicQD09hgPke0FG1A==" - }, - "DiffPlex": { - "type": "Transitive", - "resolved": "1.4.1", - "contentHash": "xZLcguPf0Gl67Ygz8XIhiQmTeUIs/M4eB9ylOelNGnHMvmqxe9bQ89omVJdoSO6gvc4NSmonHGL+zfwrSEjGnA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "Elastic.Elasticsearch.Ephemeral": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==", - "dependencies": { - "Elastic.Elasticsearch.Managed": "0.4.3", - "SharpZipLib.NETStandard": "1.0.7" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Elastic.Elasticsearch.Xunit": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==", - "dependencies": { - "Elastic.Elasticsearch.Ephemeral": "0.4.3", - "xunit": "2.4.1" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==" - }, - "FluentAssertions": { - "type": "Transitive", - "resolved": "5.10.3", - "contentHash": "gVPEVp1hLVqcv+7Q2wiDf7kqCNn7+bQcQ0jbJ2mcRT6CeRoZl1tNkqvzSIhvekyldDptk77j1b03MXTTRIqqpg==", - "dependencies": { - "System.Configuration.ConfigurationManager": "4.4.0" - } - }, - "JunitXml.TestLogger": { - "type": "Transitive", - "resolved": "3.0.110", - "contentHash": "D0Kl9mNnbSZgEa8ZgsEAJskPvyrC9k+5BsEWUqvNr++BZJbYIb08fwe0ohvb6WEzJlMPmeLJMmvQuw5yIq3gjA==" - }, - "Microsoft.Bcl.HashCode": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "MalY0Y/uM/LjXtHfX/26l2VtN4LDNZ2OE3aumNOHDLsT4fNYy2hiHXI4CXCqKpNUNm7iJ2brrc4J89UdaL56FA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CodeCoverage": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "MsKhJmwIfHxNDbTIlgQy29UpWSWPpbZOQPhQ7xalRy+ABnl8/neFHZGzSP3XlpW2dKAXHTFrtIcKzW/kopY2Bg==" - }, - "Microsoft.NET.Test.Sdk": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "kYmkDYbcDd+jNvmMH4TMtgHjsUYbIsWENM2VcjB0X7TawXbehL5I8OIsu2TgFS/nQCgZE94InrqMxrm7WDy+Lw==", - "dependencies": { - "Microsoft.CodeCoverage": "17.2.0", - "Microsoft.TestPlatform.TestHost": "17.2.0" - } - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.2", - "contentHash": "8shzGaD5pZi4npuJYCM3de6pl0zlefcbyTIvXIiCdsTqauZ7lAhdaJVtJSqlhYid9VosFAOygBykoJ1SEOlGWA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.TestPlatform.ObjectModel": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "7j1KYDHLhU98XnCEbECMncXLydI9fNiFLcFsiBsP3lV6EkHOaj5kTPAWHYkKnPGRC9TbZUboSQq8rWI4dTQsxg==", - "dependencies": { - "NuGet.Frameworks": "5.11.0", - "System.Reflection.Metadata": "1.6.0" - } - }, - "Microsoft.TestPlatform.TestHost": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "bI67J+hers241h7eD2eecS02p9CbKcQDIeoRvO4FgMlTWg2ZTzc0D3uWLYr5U+K5x9O1pNmyMoMDbYIeWY/TWw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "17.2.0", - "Newtonsoft.Json": "9.0.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lw1/VwLH1yxz6SfFEjVRCN0pnflLEsWgnV4qsdJ512/HhTwnKXUG+zDQ4yTO3K/EJQemGoNaBHX5InISNKTzUQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.1", - "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" - } - }, - "Newtonsoft.Json": { - "type": "Transitive", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "NuGet.Frameworks": { - "type": "Transitive", - "resolved": "5.11.0", - "contentHash": "eaiXkUjC4NPcquGWzAGMXjuxvLwc6XGKMptSyOGQeT0X70BUZObuybJFZLA0OfTdueLd3US23NBPTBb6iF3V1Q==" - }, - "Nullean.VsTest.Pretty.TestLogger": { - "type": "Transitive", - "resolved": "0.3.0", - "contentHash": "11Cklf+kZ1JS+l3CRZaWQaQHmRm0Je/iIrci6bwY5c9/QXrCuYgWe/A2w0G1eYe33QU5sgUmds48Y7HQFK89mw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "15.8.0" - } - }, - "Proc": { - "type": "Transitive", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SemanticVersioning": { - "type": "Transitive", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "SharpZipLib.NETStandard": { - "type": "Transitive", - "resolved": "1.0.7", - "contentHash": "mYKPizF2CY32RQB8FITYy0e30gVgItFA63SFquruaxq+votwL1T+yOfssK10v4enBcxklr8ks48hS1emw5TTXg==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Configuration.ConfigurationManager": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "gWwQv/Ug1qWJmHCmN17nAbxJYmQBM/E94QxKLksvUiiKB1Ld3Sc/eK1lgmbSjDFxkQhVuayI/cGFZhpBSodLrg==", - "dependencies": { - "System.Security.Cryptography.ProtectedData": "4.4.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.ProtectedData": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==" - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "4F8Xe+JIkVoDJ8hDAZ7HqLkjctN/6WItJIzQaifBwClC7wmoLSda/Sv2i6i1kycqDb3hWF4JCVbpAweyOKHEUA==" - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "npvJkVKl5rKXrtl1Kkm6OhOUaYGEiF9wFbppFRWSMoApKzt2PiPHT2Bb8a5sAWxprvdOAtvaARS9QYMznEUtug==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "xunit": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "6Mj73Ont3zj2CJuoykVJfE0ZmRwn7C+pTuRP8c4bnaaTFjwNG6tGe0prJ1yIbMe9AHrpDys63ctWacSsFJWK/w==", - "dependencies": { - "xunit.analyzers": "1.0.0", - "xunit.assert": "2.4.2", - "xunit.core": "[2.4.2]" - } - }, - "xunit.abstractions": { - "type": "Transitive", - "resolved": "2.0.3", - "contentHash": "pot1I4YOxlWjIb5jmwvvQNbTrZ3lJQ+jUGkGjWE3hEFM0l5gOnBWS+H3qsex68s5cO52g+44vpGzhAt+42vwKg==" - }, - "xunit.analyzers": { - "type": "Transitive", - "resolved": "1.0.0", - "contentHash": "BeO8hEgs/c8Ls2647fPfieMngncvf0D0xYNDfIO59MolxtCtVjFRd6SRc+7tj8VMqkVOuJcnc9eh4ngI2cAmLQ==" - }, - "xunit.assert": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "pxJISOFjn2XTTi1mcDCkRZrTFb9OtRRCtx2kZFNF51GdReLr1ls2rnyxvAS4JO247K3aNtflvh5Q0346K5BROA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "xunit.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "KB4yGCxNqIVyekhJLXtKSEq6BaXVp/JO3mbGVE1hxypZTLEe7h+sTbAhpA+yZW2dPtXTuiW+C1B2oxxHEkrmOw==", - "dependencies": { - "xunit.extensibility.core": "[2.4.2]", - "xunit.extensibility.execution": "[2.4.2]" - } - }, - "xunit.extensibility.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "W1BoXTIN1C6kpVSMw25huSet25ky6IAQUNovu3zGOGN/jWnbgSoTyCrlIhmXSg0tH5nEf8q7h3OjNHOjyu5PfA==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.abstractions": "2.0.3" - } - }, - "xunit.extensibility.execution": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "CZmgcKkwpyo8FlupZdWpJCryrAOWLh1FBPG6gmVZuPQkGQsim/oL4PcP4nfrC2hHgXUFtluvaJ0Sp9PQKUMNpg==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.extensibility.core": "[2.4.2]" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "elastic.clients.elasticsearch.jsonnetserializer": { - "type": "Project", - "dependencies": { - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Newtonsoft.Json": "[13.0.1, )" - } - }, - "tests.configuration": { - "type": "Project", - "dependencies": { - "Elastic.Elasticsearch.Managed": "[0.4.3, )" - } - }, - "tests.core": { - "type": "Project", - "dependencies": { - "DiffPlex": "[1.4.1, )", - "Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )", - "Elastic.Elasticsearch.Xunit": "[0.4.3, )", - "FluentAssertions": "[5.10.3, )", - "JunitXml.TestLogger": "[3.0.110, )", - "Microsoft.Bcl.HashCode": "[1.1.1, )", - "Microsoft.NET.Test.Sdk": "[17.2.0, )", - "Nullean.VsTest.Pretty.TestLogger": "[0.3.0, )", - "Proc": "[0.6.1, )", - "Tests.Domain": "[8.0.0, )", - "xunit": "[2.4.2, )" - } - }, - "tests.domain": { - "type": "Project", - "dependencies": { - "Bogus": "[22.1.2, )", - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Elastic.Elasticsearch.Managed": "[0.4.3, )", - "Newtonsoft.Json": "[13.0.1, )", - "Tests.Configuration": "[8.0.0, )" - } - } - } - } -} \ No newline at end of file diff --git a/tests/Tests.Configuration/packages.lock.json b/tests/Tests.Configuration/packages.lock.json deleted file mode 100644 index e028ca2f851..00000000000 --- a/tests/Tests.Configuration/packages.lock.json +++ /dev/null @@ -1,1119 +0,0 @@ -{ - "version": 1, - "dependencies": { - ".NETStandard,Version=v2.1": { - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Direct", - "requested": "[0.4.3, )", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "1.0.0", - "contentHash": "K63Y4hORbBcKLWH5wnKgzyn7TOfYzevIEwIedQHBIkmkEBA9SCqgvom+XTuE+fAFGvINGkhFItaZ2dvMGdT5iw==", - "dependencies": { - "System.Threading.Tasks.Extensions": "4.5.2" - } - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lw1/VwLH1yxz6SfFEjVRCN0pnflLEsWgnV4qsdJ512/HhTwnKXUG+zDQ4yTO3K/EJQemGoNaBHX5InISNKTzUQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "ypsCvIdCZ4IoYASJHt6tF2fMo7N30NLgV1EbmC+snO490OMl9FvVxmumw14rhReWU3j3g7BYudG6YCrchwHJlA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.Win32.Primitives": "4.0.1", - "System.AppContext": "4.1.0", - "System.Collections": "4.0.11", - "System.Collections.Concurrent": "4.0.12", - "System.Console": "4.0.0", - "System.Diagnostics.Debug": "4.0.11", - "System.Diagnostics.Tools": "4.0.1", - "System.Diagnostics.Tracing": "4.1.0", - "System.Globalization": "4.0.11", - "System.Globalization.Calendars": "4.0.1", - "System.IO": "4.1.0", - "System.IO.Compression": "4.1.0", - "System.IO.Compression.ZipFile": "4.0.1", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.Net.Http": "4.1.0", - "System.Net.Primitives": "4.0.11", - "System.Net.Sockets": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.Handles": "4.0.1", - "System.Runtime.InteropServices": "4.1.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.0.0", - "System.Runtime.Numerics": "4.0.1", - "System.Security.Cryptography.Algorithms": "4.2.0", - "System.Security.Cryptography.Encoding": "4.0.0", - "System.Security.Cryptography.Primitives": "4.0.0", - "System.Security.Cryptography.X509Certificates": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11", - "System.Threading.Timer": "4.0.1", - "System.Xml.ReaderWriter": "4.0.11", - "System.Xml.XDocument": "4.0.11" - } - }, - "Proc": { - "type": "Transitive", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "Ob7nvnJBox1aaB222zSVZSkf4WrebPG4qFscfK7vmD7P7NxoSxACQLtO7ytWpqXDn2wcd/+45+EAZ7xjaPip8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SemanticVersioning": { - "type": "Transitive", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "3QjO4jNV7PdKkmQAVp9atA+usVnKRwI3Kx1nMwJ93T0LcQfx7pKAYk0nKz5wn1oP5iqlhZuy6RXOFdhr7rDwow==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "pL2ChpaRRWI/p4LXyy4RgeWlYF2sgfj/pnVMvBqwNFr5cXg7CXNnWZWxrOONLg8VGdFB8oB+EG2Qw4MLgTOe+A==" - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "qSKUSOIiYA/a0g5XXdxFcUFmv1hNICBD7QZ0QhGYVipPIhvpiydY8VZqr1thmCXvmn8aipMg64zuanB4eotK9A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Runtime": "4.1.0", - "System.Text.Encoding": "4.0.11" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "TjnBS6eztThSzeSib+WyVbLzEdLKUcEHN69VtS3u8aAsSc18FU6xCZlNWWsEd8SKcXAE+y1sOu7VbU8sUeM0sg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.IO": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.Handles": "4.0.1", - "System.Runtime.InteropServices": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11", - "runtime.native.System": "4.0.0", - "runtime.native.System.IO.Compression": "4.1.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "hBQYJzfTbQURF10nLhd+az2NHxsU6MU7AB8RUf4IolBP5lOAm4Luho851xl+CqslmhI5ZH/el8BlngEk4lBkaQ==", - "dependencies": { - "System.Buffers": "4.0.0", - "System.IO": "4.1.0", - "System.IO.Compression": "4.1.0", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.Encoding": "4.0.11" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Linq": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Emit": "4.0.1", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Emit.Lightweight": "4.0.1", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.3", - "contentHash": "3oDzvc/zzetpTKWMShs1AADwZjQ/36HnsufHRPcOjyRAAMLDlu2iD33MBI2opxnezcVUtXyqDXXjoFMOU9c7SA==", - "dependencies": { - "System.Buffers": "4.4.0", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "xAz0N3dAV/aR/9g8r0Y5oEqU1JRsz29F5EGb/WVHmX3jVSLqi2/92M5hTad2aNWovruXrJpJtgZ9fccPMG9uSw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Net.Primitives": "4.0.11", - "System.Runtime": "4.1.0", - "System.Threading.Tasks": "4.0.11" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.5.0", - "contentHash": "QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==" - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.0.12", - "contentHash": "tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==", - "dependencies": { - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "GYrtRsZcMuHF3sbmRHfMYpvxZoIN2bQGrYGerUiWLEkqdEUQZhH3TRSaC/oI4wO0II1RKBPlpIa1TOMxIcOOzQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "HxozeSlipUK7dAroTYwIcGwKDeOVpQnJlpVaOkBz7CM4TsE5b/tKlQBZecTjh6FzcSbxndYaxxpsBMz+wMJeyw==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "hWPhJxc453RCa8Z29O91EmfGeZIHX1ZH2A8L6lYQVSaKzku2DfArSfMEb1/MYYzPQRJZeu0c9dmYeJKxW5Fgng==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Threading": "4.0.11", - "runtime.native.System": "4.0.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "BXgFO8Yi7ao7hVA/nklD0Hre1Bbce048ZqryGZVFifGNPuh+2jqF1i/jLJLMfFGZIzUOw+nCIeH24SQhghDSPw==", - "dependencies": { - "System.Memory": "4.5.3" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "4F8Xe+JIkVoDJ8hDAZ7HqLkjctN/6WItJIzQaifBwClC7wmoLSda/Sv2i6i1kycqDb3hWF4JCVbpAweyOKHEUA==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "1.0.0", - "System.Buffers": "4.5.0", - "System.Memory": "4.5.3", - "System.Numerics.Vectors": "4.5.0", - "System.Runtime.CompilerServices.Unsafe": "4.6.0", - "System.Text.Encodings.Web": "4.6.0", - "System.Threading.Tasks.Extensions": "4.5.2" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Globalization": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.2", - "contentHash": "BG/TNxDFv0svAzx8OiMXDlsHfGw623BZ8tCXw4YLhDFDvDhNUEV58jKYMGRnkbJNm7c3JNNJDiN7JBMzxRBR2w==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.2" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "saGfUV8uqVW6LeURiqxcGhZ24PzuRNaUBtbhVeuUAvky1naH395A/1nY0P2bWvrw/BreRtIB/EzTDkGBpqCwEw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "ZIiLPsf67YZ9zgr31vzrFaYQqxRPX9cVHjtPSnmx4eN6lbS/yEyYNr2vs1doGDEscF0tjCZFsk9yUg1sC9e8tg==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading.Tasks": "4.0.11", - "System.Threading.Tasks.Extensions": "4.0.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "Mk2mKmPi0nWaoiYeotq1dgeNK1fqWh61+EK+w4Wu8SWuTYLzpUnschb59bJtGywaPq7SmTuPf44wrXRwbIrukg==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Diagnostics.Tools": "4.0.1", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11" - } - } - } - } -} \ No newline at end of file diff --git a/tests/Tests.Core/packages.lock.json b/tests/Tests.Core/packages.lock.json deleted file mode 100644 index 1ec9c94160b..00000000000 --- a/tests/Tests.Core/packages.lock.json +++ /dev/null @@ -1,1619 +0,0 @@ -{ - "version": 1, - "dependencies": { - ".NETStandard,Version=v2.1": { - "DiffPlex": { - "type": "Direct", - "requested": "[1.4.1, )", - "resolved": "1.4.1", - "contentHash": "xZLcguPf0Gl67Ygz8XIhiQmTeUIs/M4eB9ylOelNGnHMvmqxe9bQ89omVJdoSO6gvc4NSmonHGL+zfwrSEjGnA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Elasticsearch.Xunit": { - "type": "Direct", - "requested": "[0.4.3, )", - "resolved": "0.4.3", - "contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==", - "dependencies": { - "Elastic.Elasticsearch.Ephemeral": "0.4.3", - "xunit": "2.4.1" - } - }, - "FluentAssertions": { - "type": "Direct", - "requested": "[5.10.3, )", - "resolved": "5.10.3", - "contentHash": "gVPEVp1hLVqcv+7Q2wiDf7kqCNn7+bQcQ0jbJ2mcRT6CeRoZl1tNkqvzSIhvekyldDptk77j1b03MXTTRIqqpg==", - "dependencies": { - "System.Configuration.ConfigurationManager": "4.4.0" - } - }, - "JunitXml.TestLogger": { - "type": "Direct", - "requested": "[3.0.110, )", - "resolved": "3.0.110", - "contentHash": "D0Kl9mNnbSZgEa8ZgsEAJskPvyrC9k+5BsEWUqvNr++BZJbYIb08fwe0ohvb6WEzJlMPmeLJMmvQuw5yIq3gjA==" - }, - "Microsoft.Bcl.HashCode": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "MalY0Y/uM/LjXtHfX/26l2VtN4LDNZ2OE3aumNOHDLsT4fNYy2hiHXI4CXCqKpNUNm7iJ2brrc4J89UdaL56FA==" - }, - "Microsoft.NET.Test.Sdk": { - "type": "Direct", - "requested": "[17.2.0, )", - "resolved": "17.2.0", - "contentHash": "kYmkDYbcDd+jNvmMH4TMtgHjsUYbIsWENM2VcjB0X7TawXbehL5I8OIsu2TgFS/nQCgZE94InrqMxrm7WDy+Lw==", - "dependencies": { - "Microsoft.CodeCoverage": "17.2.0" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.2" - } - }, - "Nullean.VsTest.Pretty.TestLogger": { - "type": "Direct", - "requested": "[0.3.0, )", - "resolved": "0.3.0", - "contentHash": "11Cklf+kZ1JS+l3CRZaWQaQHmRm0Je/iIrci6bwY5c9/QXrCuYgWe/A2w0G1eYe33QU5sgUmds48Y7HQFK89mw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "15.8.0" - } - }, - "Proc": { - "type": "Direct", - "requested": "[0.6.1, )", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "xunit": { - "type": "Direct", - "requested": "[2.4.2, )", - "resolved": "2.4.2", - "contentHash": "6Mj73Ont3zj2CJuoykVJfE0ZmRwn7C+pTuRP8c4bnaaTFjwNG6tGe0prJ1yIbMe9AHrpDys63ctWacSsFJWK/w==", - "dependencies": { - "xunit.analyzers": "1.0.0", - "xunit.assert": "2.4.2", - "xunit.core": "[2.4.2]" - } - }, - "Bogus": { - "type": "Transitive", - "resolved": "22.1.2", - "contentHash": "FnYg++zOsFkN3wQJcPT6U4bmZoW/zDWp474QsZG2KX/ClCiEOwIfUxJ9xuKgwv46K0LvVoicQD09hgPke0FG1A==" - }, - "Elastic.Elasticsearch.Ephemeral": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==", - "dependencies": { - "Elastic.Elasticsearch.Managed": "0.4.3", - "SharpZipLib.NETStandard": "1.0.7" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CodeCoverage": { - "type": "Transitive", - "resolved": "17.2.0", - "contentHash": "MsKhJmwIfHxNDbTIlgQy29UpWSWPpbZOQPhQ7xalRy+ABnl8/neFHZGzSP3XlpW2dKAXHTFrtIcKzW/kopY2Bg==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.2", - "contentHash": "8shzGaD5pZi4npuJYCM3de6pl0zlefcbyTIvXIiCdsTqauZ7lAhdaJVtJSqlhYid9VosFAOygBykoJ1SEOlGWA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.TestPlatform.ObjectModel": { - "type": "Transitive", - "resolved": "15.8.0", - "contentHash": "u6qrZi8pXZrPl+vAJBn/yIaPEsl/NglcLD9FD/fh1OmBaFMcp/dp/5daTB7Fo89iDgktZa6PoACq86tZs0DYXA==", - "dependencies": { - "NETStandard.Library": "1.6.0", - "System.ComponentModel.EventBasedAsync": "4.0.11", - "System.ComponentModel.TypeConverter": "4.1.0", - "System.Diagnostics.Process": "4.1.0", - "System.Diagnostics.TextWriterTraceListener": "4.0.0", - "System.Diagnostics.TraceSource": "4.0.0", - "System.Reflection.Metadata": "1.3.0", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.0.0", - "System.Runtime.Loader": "4.0.0", - "System.Runtime.Serialization.Json": "4.0.2", - "System.Runtime.Serialization.Primitives": "4.1.1", - "System.Threading.Thread": "4.0.0", - "System.Xml.XPath.XmlDocument": "4.0.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lw1/VwLH1yxz6SfFEjVRCN0pnflLEsWgnV4qsdJ512/HhTwnKXUG+zDQ4yTO3K/EJQemGoNaBHX5InISNKTzUQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.1", - "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" - } - }, - "Newtonsoft.Json": { - "type": "Transitive", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SemanticVersioning": { - "type": "Transitive", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "SharpZipLib.NETStandard": { - "type": "Transitive", - "resolved": "1.0.7", - "contentHash": "mYKPizF2CY32RQB8FITYy0e30gVgItFA63SFquruaxq+votwL1T+yOfssK10v4enBcxklr8ks48hS1emw5TTXg==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Collections.Immutable": { - "type": "Transitive", - "resolved": "1.2.0", - "contentHash": "Cma8cBW6di16ZLibL8LYQ+cLjGzoKxpOTu/faZfDcx94ZjAGq6Nv5RO7+T1YZXqEXTZP9rt1wLVEONVpURtUqw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.Linq": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Collections.NonGeneric": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "hMxFT2RhhlffyCdKLDXjx8WEC5JfCvNozAZxCablAuFRH74SCV4AgzE8yJCh/73bFnEoZgJ9MJmkjQ0dJmnKqA==", - "dependencies": { - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Collections.Specialized": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "/HKQyVP0yH1I0YtK7KJL/28snxHNH/bi+0lgk/+MbURF6ULhAE31MDI+NZDerNWu264YbxklXCCygISgm+HMug==", - "dependencies": { - "System.Collections.NonGeneric": "4.0.1", - "System.Globalization": "4.0.11", - "System.Globalization.Extensions": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.ComponentModel": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "oBZFnm7seFiVfugsIyOvQCWobNZs7FzqDV/B7tx20Ep/l3UUFCPDkdTnCNaJZTU27zjeODmy2C/cP60u3D4c9w==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.ComponentModel.EventBasedAsync": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "Z7SO6vvQIR84daPE4uhaNdef9CjgjDMGYkas8epUhf0U3WGuaGgZ0Mm4QuNycMdbHUY8KEdZrtgxonkAiJaAlA==", - "dependencies": { - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11" - } - }, - "System.ComponentModel.Primitives": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "sc/7eVCdxPrp3ljpgTKVaQGUXiW05phNWvtv/m2kocXqrUQvTVWKou1Edas2aDjTThLPZOxPYIGNb/HN0QjURg==", - "dependencies": { - "System.ComponentModel": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.ComponentModel.TypeConverter": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "MnDAlaeJZy9pdB5ZdOlwdxfpI+LJQ6e0hmH7d2+y2LkiD8DRJynyDYl4Xxf3fWFm7SbEwBZh4elcfzONQLOoQw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Collections.NonGeneric": "4.0.1", - "System.Collections.Specialized": "4.0.1", - "System.ComponentModel": "4.0.1", - "System.ComponentModel.Primitives": "4.1.0", - "System.Globalization": "4.0.11", - "System.Linq": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Configuration.ConfigurationManager": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "gWwQv/Ug1qWJmHCmN17nAbxJYmQBM/E94QxKLksvUiiKB1Ld3Sc/eK1lgmbSjDFxkQhVuayI/cGFZhpBSodLrg==", - "dependencies": { - "System.Security.Cryptography.ProtectedData": "4.4.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.TextWriterTraceListener": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "w36Dr8yKy8xP150qPANe7Td+/zOI3G62ImRcHDIEW+oUXUuTKZHd4DHmqRx5+x8RXd85v3tXd1uhNTfsr+yxjA==", - "dependencies": { - "System.Diagnostics.TraceSource": "4.0.0", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.TraceSource": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "6WVCczFZKXwpWpzd/iJkYnsmWTSFFiU24Xx/YdHXBcu+nFI/ehTgeqdJQFbtRPzbrO3KtRNjvkhtj4t5/WwWsA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11", - "runtime.native.System": "4.0.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Private.DataContractSerialization": { - "type": "Transitive", - "resolved": "4.1.1", - "contentHash": "lcqFBUaCZxPiUkA4dlSOoPZGtZsAuuElH2XHgLwGLxd7ZozWetV5yiz0qGAV2AUYOqw97MtZBjbLMN16Xz4vXA==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Collections.Concurrent": "4.0.12", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Linq": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Emit.Lightweight": "4.0.1", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.Serialization.Primitives": "4.1.1", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11", - "System.Xml.XmlDocument": "4.0.1", - "System.Xml.XmlSerializer": "4.0.11" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.3.0", - "contentHash": "jMSCxA4LSyKBGRDm/WtfkO03FkcgRzHxwvQRib1bm2GZ8ifKM1MX1al6breGCEQK280mdl9uQS7JNPXRYk90jw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Collections.Immutable": "1.2.0", - "System.Diagnostics.Debug": "4.0.11", - "System.IO": "4.1.0", - "System.Linq": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Threading": "4.0.11" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.Loader": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "4UN78GOVU/mbDFcXkEWtetJT/sJ0yic2gGk1HSlSpWI0TDf421xnrZTDZnwNBapk1GQeYN7U1lTj/aQB1by6ow==", - "dependencies": { - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Runtime.Serialization.Json": { - "type": "Transitive", - "resolved": "4.0.2", - "contentHash": "+7DIJhnKYgCzUgcLbVTtRQb2l1M0FP549XFlFkQM5lmNiUBl44AfNbx4bz61xA8PzLtlYwfmif4JJJW7MPPnjg==", - "dependencies": { - "System.IO": "4.1.0", - "System.Private.DataContractSerialization": "4.1.1", - "System.Runtime": "4.1.0" - } - }, - "System.Runtime.Serialization.Primitives": { - "type": "Transitive", - "resolved": "4.1.1", - "contentHash": "HZ6Du5QrTG8MNJbf4e4qMO3JRAkIboGT5Fk804uZtg3Gq516S7hAqTm2UZKUHa7/6HUGdVy3AqMQKbns06G/cg==", - "dependencies": { - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.ProtectedData": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==" - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "System.Xml.XmlDocument": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "2eZu6IP+etFVBBFUFzw2w6J21DqIN5eL9Y8r8JfJWUmV28Z5P0SNU01oCisVHQgHsDhHPnmq2s1hJrJCFZWloQ==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11" - } - }, - "System.Xml.XmlSerializer": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "FrazwwqfIXTfq23mfv4zH+BjqkSFNaNFBtjzu3I9NRmG8EELYyrv/fJnttCIwRMFRR/YKXF1hmsMmMEnl55HGw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Linq": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Emit": "4.0.1", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11", - "System.Xml.XmlDocument": "4.0.1" - } - }, - "System.Xml.XPath": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "UWd1H+1IJ9Wlq5nognZ/XJdyj8qPE4XufBUkAW59ijsCPjZkZe0MUzKKJFBr+ZWBe5Wq1u1d5f2CYgE93uH7DA==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11" - } - }, - "System.Xml.XPath.XmlDocument": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "Zm2BdeanuncYs3NhCj4c9e1x3EXFzFBVv2wPEc/Dj4ZbI9R8ecLSR5frAsx4zJCPBtKQreQ7Q/KxJEohJZbfzA==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11", - "System.Xml.XPath": "4.0.1", - "System.Xml.XmlDocument": "4.0.1" - } - }, - "xunit.abstractions": { - "type": "Transitive", - "resolved": "2.0.3", - "contentHash": "pot1I4YOxlWjIb5jmwvvQNbTrZ3lJQ+jUGkGjWE3hEFM0l5gOnBWS+H3qsex68s5cO52g+44vpGzhAt+42vwKg==" - }, - "xunit.analyzers": { - "type": "Transitive", - "resolved": "1.0.0", - "contentHash": "BeO8hEgs/c8Ls2647fPfieMngncvf0D0xYNDfIO59MolxtCtVjFRd6SRc+7tj8VMqkVOuJcnc9eh4ngI2cAmLQ==" - }, - "xunit.assert": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "pxJISOFjn2XTTi1mcDCkRZrTFb9OtRRCtx2kZFNF51GdReLr1ls2rnyxvAS4JO247K3aNtflvh5Q0346K5BROA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "xunit.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "KB4yGCxNqIVyekhJLXtKSEq6BaXVp/JO3mbGVE1hxypZTLEe7h+sTbAhpA+yZW2dPtXTuiW+C1B2oxxHEkrmOw==", - "dependencies": { - "xunit.extensibility.core": "[2.4.2]", - "xunit.extensibility.execution": "[2.4.2]" - } - }, - "xunit.extensibility.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "W1BoXTIN1C6kpVSMw25huSet25ky6IAQUNovu3zGOGN/jWnbgSoTyCrlIhmXSg0tH5nEf8q7h3OjNHOjyu5PfA==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.abstractions": "2.0.3" - } - }, - "xunit.extensibility.execution": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "CZmgcKkwpyo8FlupZdWpJCryrAOWLh1FBPG6gmVZuPQkGQsim/oL4PcP4nfrC2hHgXUFtluvaJ0Sp9PQKUMNpg==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.extensibility.core": "[2.4.2]" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "elastic.clients.elasticsearch.jsonnetserializer": { - "type": "Project", - "dependencies": { - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Newtonsoft.Json": "[13.0.1, )" - } - }, - "tests.configuration": { - "type": "Project", - "dependencies": { - "Elastic.Elasticsearch.Managed": "[0.4.3, )" - } - }, - "tests.domain": { - "type": "Project", - "dependencies": { - "Bogus": "[22.1.2, )", - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Elastic.Elasticsearch.Managed": "[0.4.3, )", - "Newtonsoft.Json": "[13.0.1, )", - "Tests.Configuration": "[8.0.0, )" - } - } - } - } -} \ No newline at end of file diff --git a/tests/Tests.Domain/packages.lock.json b/tests/Tests.Domain/packages.lock.json deleted file mode 100644 index 9832722d98b..00000000000 --- a/tests/Tests.Domain/packages.lock.json +++ /dev/null @@ -1,1155 +0,0 @@ -{ - "version": 1, - "dependencies": { - ".NETStandard,Version=v2.1": { - "Bogus": { - "type": "Direct", - "requested": "[22.1.2, )", - "resolved": "22.1.2", - "contentHash": "FnYg++zOsFkN3wQJcPT6U4bmZoW/zDWp474QsZG2KX/ClCiEOwIfUxJ9xuKgwv46K0LvVoicQD09hgPke0FG1A==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Direct", - "requested": "[0.4.3, )", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.3, )", - "resolved": "1.0.3", - "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "Microsoft.CSharp": "4.7.0", - "System.Buffers": "4.5.1", - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "Microsoft.Bcl.AsyncInterfaces": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CSharp": { - "type": "Transitive", - "resolved": "4.7.0", - "contentHash": "pTj+D3uJWyN3My70i2Hqo+OXixq3Os2D1nJ2x92FFo6sk8fYS1m1WLNTs0Dc1uPaViH0YvEEwvzddQ7y4rhXmA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.3", - "contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Lw1/VwLH1yxz6SfFEjVRCN0pnflLEsWgnV4qsdJ512/HhTwnKXUG+zDQ4yTO3K/EJQemGoNaBHX5InISNKTzUQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "ypsCvIdCZ4IoYASJHt6tF2fMo7N30NLgV1EbmC+snO490OMl9FvVxmumw14rhReWU3j3g7BYudG6YCrchwHJlA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.Win32.Primitives": "4.0.1", - "System.AppContext": "4.1.0", - "System.Collections": "4.0.11", - "System.Collections.Concurrent": "4.0.12", - "System.Console": "4.0.0", - "System.Diagnostics.Debug": "4.0.11", - "System.Diagnostics.Tools": "4.0.1", - "System.Diagnostics.Tracing": "4.1.0", - "System.Globalization": "4.0.11", - "System.Globalization.Calendars": "4.0.1", - "System.IO": "4.1.0", - "System.IO.Compression": "4.1.0", - "System.IO.Compression.ZipFile": "4.0.1", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.Net.Http": "4.1.0", - "System.Net.Primitives": "4.0.11", - "System.Net.Sockets": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.Handles": "4.0.1", - "System.Runtime.InteropServices": "4.1.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.0.0", - "System.Runtime.Numerics": "4.0.1", - "System.Security.Cryptography.Algorithms": "4.2.0", - "System.Security.Cryptography.Encoding": "4.0.0", - "System.Security.Cryptography.Primitives": "4.0.0", - "System.Security.Cryptography.X509Certificates": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11", - "System.Threading.Timer": "4.0.1", - "System.Xml.ReaderWriter": "4.0.11", - "System.Xml.XDocument": "4.0.11" - } - }, - "Proc": { - "type": "Transitive", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "Ob7nvnJBox1aaB222zSVZSkf4WrebPG4qFscfK7vmD7P7NxoSxACQLtO7ytWpqXDn2wcd/+45+EAZ7xjaPip8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SemanticVersioning": { - "type": "Transitive", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "3QjO4jNV7PdKkmQAVp9atA+usVnKRwI3Kx1nMwJ93T0LcQfx7pKAYk0nKz5wn1oP5iqlhZuy6RXOFdhr7rDwow==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.5.1", - "contentHash": "Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==" - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "qSKUSOIiYA/a0g5XXdxFcUFmv1hNICBD7QZ0QhGYVipPIhvpiydY8VZqr1thmCXvmn8aipMg64zuanB4eotK9A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Runtime": "4.1.0", - "System.Text.Encoding": "4.0.11" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "xBfJ8pnd4C17dWaC9FM6aShzbJcRNMChUMD42I6772KGGrqaFdumwhn9OdM68erj1ueNo3xdQ1EwiFjK5k8p0g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "TjnBS6eztThSzeSib+WyVbLzEdLKUcEHN69VtS3u8aAsSc18FU6xCZlNWWsEd8SKcXAE+y1sOu7VbU8sUeM0sg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.IO": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.Handles": "4.0.1", - "System.Runtime.InteropServices": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading": "4.0.11", - "System.Threading.Tasks": "4.0.11", - "runtime.native.System": "4.0.0", - "runtime.native.System.IO.Compression": "4.1.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "hBQYJzfTbQURF10nLhd+az2NHxsU6MU7AB8RUf4IolBP5lOAm4Luho851xl+CqslmhI5ZH/el8BlngEk4lBkaQ==", - "dependencies": { - "System.Buffers": "4.0.0", - "System.IO": "4.1.0", - "System.IO.Compression": "4.1.0", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.Encoding": "4.0.11" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Linq": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Emit": "4.0.1", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Emit.Lightweight": "4.0.1", - "System.Reflection.Extensions": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Memory": { - "type": "Transitive", - "resolved": "4.5.5", - "contentHash": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Numerics.Vectors": "4.4.0", - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "xAz0N3dAV/aR/9g8r0Y5oEqU1JRsz29F5EGb/WVHmX3jVSLqi2/92M5hTad2aNWovruXrJpJtgZ9fccPMG9uSw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.IO": "4.1.0", - "System.Net.Primitives": "4.0.11", - "System.Runtime": "4.1.0", - "System.Threading.Tasks": "4.0.11" - } - }, - "System.Numerics.Vectors": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "UiLzLW+Lw6HLed1Hcg+8jSRttrbuXv7DANVj0DkL9g6EnnzbL75EB7EWsw5uRbhxd/4YdG8li5XizGWepmG3PQ==" - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.0.12", - "contentHash": "tAgJM1xt3ytyMoW4qn4wIqgJYm7L7TShRZG4+Q4Qsi2PCcj96pXN7nRywS9KkB3p/xDUjc2HSwP9SROyPYDYKQ==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==", - "dependencies": { - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "sSzHHXueZ5Uh0OLpUQprhr+ZYJrLPA2Cmr4gn0wj9+FftNKXx8RIMKvO9qnjk2ebPYUjZ+F2ulGdPOsvj+MEjA==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "GYrtRsZcMuHF3sbmRHfMYpvxZoIN2bQGrYGerUiWLEkqdEUQZhH3TRSaC/oI4wO0II1RKBPlpIa1TOMxIcOOzQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - } - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==", - "dependencies": { - "System.Reflection": "4.1.0", - "System.Runtime": "4.1.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.0.0", - "contentHash": "hWPhJxc453RCa8Z29O91EmfGeZIHX1ZH2A8L6lYQVSaKzku2DfArSfMEb1/MYYzPQRJZeu0c9dmYeJKxW5Fgng==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Threading": "4.0.11", - "runtime.native.System": "4.0.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "Microsoft.Bcl.AsyncInterfaces": "8.0.0", - "System.Buffers": "4.5.1", - "System.Memory": "4.5.5", - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0", - "System.Threading.Tasks.Extensions": "4.5.4" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.1.0", - "contentHash": "i88YCXpRTjCnoSQZtdlHkAOx4KNNik4hMy83n0+Ftlb7jvV6ZiZWMpnEZHhjBp6hQVh8gWd/iKNPzlPF7iyA2g==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Globalization": "4.0.11", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.5.4", - "contentHash": "zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "4.5.3" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "saGfUV8uqVW6LeURiqxcGhZ24PzuRNaUBtbhVeuUAvky1naH395A/1nY0P2bWvrw/BreRtIB/EzTDkGBpqCwEw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.0.1", - "Microsoft.NETCore.Targets": "1.0.1", - "System.Runtime": "4.1.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "ZIiLPsf67YZ9zgr31vzrFaYQqxRPX9cVHjtPSnmx4eN6lbS/yEyYNr2vs1doGDEscF0tjCZFsk9yUg1sC9e8tg==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.IO.FileSystem": "4.0.1", - "System.IO.FileSystem.Primitives": "4.0.1", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Runtime.InteropServices": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Text.Encoding.Extensions": "4.0.11", - "System.Text.RegularExpressions": "4.1.0", - "System.Threading.Tasks": "4.0.11", - "System.Threading.Tasks.Extensions": "4.0.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "Mk2mKmPi0nWaoiYeotq1dgeNK1fqWh61+EK+w4Wu8SWuTYLzpUnschb59bJtGywaPq7SmTuPf44wrXRwbIrukg==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Diagnostics.Tools": "4.0.1", - "System.Globalization": "4.0.11", - "System.IO": "4.1.0", - "System.Reflection": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Text.Encoding": "4.0.11", - "System.Threading": "4.0.11", - "System.Xml.ReaderWriter": "4.0.11" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "tests.configuration": { - "type": "Project", - "dependencies": { - "Elastic.Elasticsearch.Managed": "[0.4.3, )" - } - } - } - } -} \ No newline at end of file diff --git a/tests/Tests/Aggregations/Metric/GeoCentroidAggregationUsageTests.cs b/tests/Tests/Aggregations/Metric/GeoCentroidAggregationUsageTests.cs index baf1e564c3f..eb7de64e21f 100644 --- a/tests/Tests/Aggregations/Metric/GeoCentroidAggregationUsageTests.cs +++ b/tests/Tests/Aggregations/Metric/GeoCentroidAggregationUsageTests.cs @@ -8,7 +8,6 @@ using Tests.Domain; using Tests.Core.Extensions; using Tests.Framework.EndpointTests.TestState; -using Elastic.Clients.Elasticsearch.Experimental; using Elastic.Clients.Elasticsearch.QueryDsl; namespace Tests.Aggregations.Metric; diff --git a/tests/Tests/ClientConcepts/OpenTelemetry/OpenTelemetryTests.cs b/tests/Tests/ClientConcepts/OpenTelemetry/OpenTelemetryTests.cs index c6339d9d1af..3fb2b955881 100644 --- a/tests/Tests/ClientConcepts/OpenTelemetry/OpenTelemetryTests.cs +++ b/tests/Tests/ClientConcepts/OpenTelemetry/OpenTelemetryTests.cs @@ -4,6 +4,8 @@ using System.Diagnostics; using System.Threading.Tasks; +using Elastic.Elasticsearch.Xunit.XunitPlumbing; +using FluentAssertions; using Tests.Core.Client; using Tests.Domain; using Xunit; @@ -36,7 +38,7 @@ public async Task BasicOpenTelemetryTest() VerifyActivity(oTelActivity, "ping"); - await client.SearchAsync(s => s.Index("test").Query(q => q.MatchAll())); + await client.SearchAsync(s => s.Index("test").Query(q => q.MatchAll(m => { }))); VerifyActivity(oTelActivity, "search", "http://localhost:9200/test/_search?pretty=true&error_trace=true"); diff --git a/tests/Tests/QueryDsl/BoolDsl/OperatorUsageBase.cs b/tests/Tests/QueryDsl/BoolDsl/OperatorUsageBase.cs index 34c25690561..b8a4df4f109 100644 --- a/tests/Tests/QueryDsl/BoolDsl/OperatorUsageBase.cs +++ b/tests/Tests/QueryDsl/BoolDsl/OperatorUsageBase.cs @@ -25,7 +25,7 @@ protected static void ReturnsBool(Query combined, Action boolQueryAss boolQueryAssert(boolQuery); } - protected static void ReturnsSingleQuery(Query combined, Action queryAssert) where T : SearchQuery + protected static void ReturnsSingleQuery(Query combined, Action queryAssert) where T : Query { combined.Should().NotBeNull(); combined.TryGet(out var query).Should().BeTrue(); diff --git a/tests/Tests/Tests.csproj b/tests/Tests/Tests.csproj index b396faa7e5b..15778c2dbf2 100644 --- a/tests/Tests/Tests.csproj +++ b/tests/Tests/Tests.csproj @@ -33,4 +33,10 @@ + + + + + + \ No newline at end of file diff --git a/tests/Tests/packages.lock.json b/tests/Tests/packages.lock.json deleted file mode 100644 index db746e240ce..00000000000 --- a/tests/Tests/packages.lock.json +++ /dev/null @@ -1,3074 +0,0 @@ -{ - "version": 1, - "dependencies": { - "net6.0": { - "Ben.Demystifier": { - "type": "Direct", - "requested": "[0.1.4, )", - "resolved": "0.1.4", - "contentHash": "+t5j6MizCTkWh1oZm9RdLIJfEWYRIPFBDe7E+H0pqjAzHbRm6oyhm5Rsf8kPGQZXNdDur9YwkSyXUe7eAIRbLw==", - "dependencies": { - "System.Reflection.Metadata": "1.5.0" - } - }, - "Bogus": { - "type": "Direct", - "requested": "[22.1.2, )", - "resolved": "22.1.2", - "contentHash": "FnYg++zOsFkN3wQJcPT6U4bmZoW/zDWp474QsZG2KX/ClCiEOwIfUxJ9xuKgwv46K0LvVoicQD09hgPke0FG1A==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport.VirtualizedCluster": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "r8iOvUkTNWVsjW/1t/QkcUhH1r5LlzntT50nDW1oyEoTqRQS81JtYLvvyFrViPEbMiTh02wMUF7GIFVyQgl/Og==", - "dependencies": { - "Elastic.Transport": "0.4.22" - } - }, - "FSharp.Core": { - "type": "Direct", - "requested": "[6.0.3, )", - "resolved": "6.0.3", - "contentHash": "ywxwMhsA1nG2hsRSMl3IzYvdugrSoFg/ZY99cuBqV0SX0yp8ubD6Hee8Bh3YwaF2Ucyq/Jz8lZ0MY5VjxgogbA==" - }, - "Microsoft.NET.Test.Sdk": { - "type": "Direct", - "requested": "[17.3.1, )", - "resolved": "17.3.1", - "contentHash": "jH9W5uYannaJ3HhrPBkzSidf3WkqP6XI+Yke0ODYVuFWM6GLVtBAyNgXvU/uQXPBsHq4aysLTsrN1FvG2hlKoQ==", - "dependencies": { - "Microsoft.CodeCoverage": "17.3.1", - "Microsoft.TestPlatform.TestHost": "17.3.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.2" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "SemanticVersioning": { - "type": "Direct", - "requested": "[0.8.0, )", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "SharpZipLib": { - "type": "Direct", - "requested": "[1.3.3, )", - "resolved": "1.3.3", - "contentHash": "N8+hwhsKZm25tDJfWpBSW7EGhH/R7EMuiX+KJ4C4u+fCWVc1lJ5zg1u3S1RPPVYgTqhx/C3hxrqUpi6RwK5+Tg==" - }, - "System.Diagnostics.FileVersionInfo": { - "type": "Direct", - "requested": "[4.3.0, )", - "resolved": "4.3.0", - "contentHash": "omCF64wzQ3Q2CeIqkD6lmmxeMZtGHUmzgFMPjfVaOsyqpR66p/JaZzManMw1s33osoAb5gqpncsjie67+yUPHQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Reflection.Metadata": "1.4.1", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Reactive": { - "type": "Direct", - "requested": "[3.1.1, )", - "resolved": "3.1.1", - "contentHash": "elkQdVQoBVX39BHrYHMc3Rnbb7a9qBJIwNCvhq1psPMOEPo62/VHB0lJu671x3fOrGL4V/85n6p2Az1tw7Kvmg==", - "dependencies": { - "System.Reactive.PlatformServices": "3.1.1" - } - }, - "Verify.Xunit": { - "type": "Direct", - "requested": "[17.10.2, )", - "resolved": "17.10.2", - "contentHash": "9k4cmIA15EfWpC0oHgo9gEKHpIizxsXZs4f2y5OGea13gYUPFqa+06ncm6zaU4qL+jAewpX8jRoHVZgNpKW3Gw==", - "dependencies": { - "EmptyFiles": "2.8.0", - "Verify": "17.10.2", - "xunit.abstractions": "2.0.3", - "xunit.assert": "2.4.2", - "xunit.extensibility.execution": "2.4.2" - } - }, - "xunit.extensibility.execution": { - "type": "Direct", - "requested": "[2.4.2, )", - "resolved": "2.4.2", - "contentHash": "CZmgcKkwpyo8FlupZdWpJCryrAOWLh1FBPG6gmVZuPQkGQsim/oL4PcP4nfrC2hHgXUFtluvaJ0Sp9PQKUMNpg==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.extensibility.core": "[2.4.2]" - } - }, - "xunit.runner.visualstudio": { - "type": "Direct", - "requested": "[2.4.5, )", - "resolved": "2.4.5", - "contentHash": "OwHamvBdUKgqsXfBzWiCW/O98BTx81UKzx2bieIOQI7CZFE5NEQZGi8PBQGIKawDW96xeRffiNf20SjfC0x9hw==" - }, - "DiffEngine": { - "type": "Transitive", - "resolved": "10.0.0", - "contentHash": "H8F7V1zRHkWLP5AW9lCxZypanXlFRT8n7P9Ou8cxz189Yg8TEw5FwTqQCaXjVPRjfE8621lhblpQrghbGJgDZw==", - "dependencies": { - "EmptyFiles": "2.8.0", - "System.Management": "5.0.0" - } - }, - "DiffPlex": { - "type": "Transitive", - "resolved": "1.4.1", - "contentHash": "xZLcguPf0Gl67Ygz8XIhiQmTeUIs/M4eB9ylOelNGnHMvmqxe9bQ89omVJdoSO6gvc4NSmonHGL+zfwrSEjGnA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "Elastic.Elasticsearch.Ephemeral": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==", - "dependencies": { - "Elastic.Elasticsearch.Managed": "0.4.3", - "SharpZipLib.NETStandard": "1.0.7" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Elastic.Elasticsearch.Xunit": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==", - "dependencies": { - "Elastic.Elasticsearch.Ephemeral": "0.4.3", - "xunit": "2.4.1" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==", - "dependencies": { - "System.Diagnostics.DiagnosticSource": "8.0.0", - "System.Text.Json": "8.0.4" - } - }, - "EmptyFiles": { - "type": "Transitive", - "resolved": "2.8.0", - "contentHash": "2N6IdrlSYT+FhX5hAbasJ7wpV/ONtIX+7fN+XXukwGAgHRNjiAoO0TScQsTZcgaXmbuvGu4ogKk0jPt2dVLgTQ==" - }, - "FluentAssertions": { - "type": "Transitive", - "resolved": "5.10.3", - "contentHash": "gVPEVp1hLVqcv+7Q2wiDf7kqCNn7+bQcQ0jbJ2mcRT6CeRoZl1tNkqvzSIhvekyldDptk77j1b03MXTTRIqqpg==", - "dependencies": { - "System.Configuration.ConfigurationManager": "4.4.0" - } - }, - "JunitXml.TestLogger": { - "type": "Transitive", - "resolved": "3.0.110", - "contentHash": "D0Kl9mNnbSZgEa8ZgsEAJskPvyrC9k+5BsEWUqvNr++BZJbYIb08fwe0ohvb6WEzJlMPmeLJMmvQuw5yIq3gjA==" - }, - "Microsoft.Bcl.HashCode": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "MalY0Y/uM/LjXtHfX/26l2VtN4LDNZ2OE3aumNOHDLsT4fNYy2hiHXI4CXCqKpNUNm7iJ2brrc4J89UdaL56FA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CodeCoverage": { - "type": "Transitive", - "resolved": "17.3.1", - "contentHash": "WqB7Ik4v8ku0Y9HZShqTStZdq8R1lyhsZr7IMp8zV/OcL5sHVYvlMnardQR+SDQc3dmbniCIl9mYxYM+V7x8MA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "VyPlqzH2wavqquTcYpkIIAQ6WdenuKoFN0BdYBbCWsclXacSOHNQn66Gt4z5NBqEYW0FAPm5rlvki9ZiCij5xQ==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.2", - "contentHash": "8shzGaD5pZi4npuJYCM3de6pl0zlefcbyTIvXIiCdsTqauZ7lAhdaJVtJSqlhYid9VosFAOygBykoJ1SEOlGWA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.TestPlatform.ObjectModel": { - "type": "Transitive", - "resolved": "17.3.1", - "contentHash": "n1WSFCMiFt6KmD5JzV+Wye5Ntomez3YP2+d15bu5PS5Z1U0g+V7VBLdJIaJRnahz5BsXJDTnLYNVOUdntwjx6Q==", - "dependencies": { - "NuGet.Frameworks": "5.11.0", - "System.Reflection.Metadata": "1.6.0" - } - }, - "Microsoft.TestPlatform.TestHost": { - "type": "Transitive", - "resolved": "17.3.1", - "contentHash": "co/GMz6rGxpzn2aJYTDDim61HvEk+SHBVtbXnu2RSrz20HxkaraEh0kltCsMkmLAX/6Hz5sa6NquLngBlURTow==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "17.3.1", - "Newtonsoft.Json": "9.0.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "dDoKi0PnDz31yAyETfRntsLArTlVAVzUzCIvvEDsDsucrl33Dl8pIJG06ePTJTI3tGpeyHS9Cq7Foc/s4EeKcg==", - "dependencies": { - "System.Security.AccessControl": "5.0.0", - "System.Security.Principal.Windows": "5.0.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.1", - "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" - } - }, - "NuGet.Frameworks": { - "type": "Transitive", - "resolved": "5.11.0", - "contentHash": "eaiXkUjC4NPcquGWzAGMXjuxvLwc6XGKMptSyOGQeT0X70BUZObuybJFZLA0OfTdueLd3US23NBPTBb6iF3V1Q==" - }, - "Nullean.VsTest.Pretty.TestLogger": { - "type": "Transitive", - "resolved": "0.3.0", - "contentHash": "11Cklf+kZ1JS+l3CRZaWQaQHmRm0Je/iIrci6bwY5c9/QXrCuYgWe/A2w0G1eYe33QU5sgUmds48Y7HQFK89mw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "15.8.0" - } - }, - "Proc": { - "type": "Transitive", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SharpZipLib.NETStandard": { - "type": "Transitive", - "resolved": "1.0.7", - "contentHash": "mYKPizF2CY32RQB8FITYy0e30gVgItFA63SFquruaxq+votwL1T+yOfssK10v4enBcxklr8ks48hS1emw5TTXg==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "SimpleInfoName": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "btPTv2TaAx8AbVX/uokw+W/9Fd1y+pqgPR9tOzq7Lfu3HmXRnTCT5jgGMw/sq4QwocOj3TnVjZsPpjfwuhjcIw==" - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.CodeDom": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "JPJArwA1kdj8qDAkY2XGjSWoYnqiM7q/3yRNkt6n28Mnn95MuEGkZXUbPBf7qc3IjwrGY5ttQon7yqHZyQJmOQ==" - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ComponentModel": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "oBZFnm7seFiVfugsIyOvQCWobNZs7FzqDV/B7tx20Ep/l3UUFCPDkdTnCNaJZTU27zjeODmy2C/cP60u3D4c9w==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Configuration.ConfigurationManager": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "gWwQv/Ug1qWJmHCmN17nAbxJYmQBM/E94QxKLksvUiiKB1Ld3Sc/eK1lgmbSjDFxkQhVuayI/cGFZhpBSodLrg==", - "dependencies": { - "System.Security.Cryptography.ProtectedData": "4.4.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Contracts": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "HvQQjy712vnlpPxaloZYkuE78Gn353L0SJLJVeLcNASeg9c4qla2a1Xq8I7B3jZoDzKPtHTkyVO7AZ5tpeQGuA==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "c9xLpVz6PL9lp/djOWtk5KPDZq3cSYpmXoJQY524EOtuFl5z9ZtsotpsyrDW40U1DRnQSYvcPKEUV0X//u6gkQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Dynamic.Runtime": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "db34f6LHYM0U0JpE+sOmjar27BnqTVkbLJhgfwMpTdgTigG/Hna3m2MYVwnFzGGKnEJk2UXFuoVTr8WUbU91/A==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Emit": "4.0.1", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Management": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "MF1CHaRcC+MLFdnDthv4/bKWBZnlnSpkGqa87pKukQefgEdwtb9zFW6zs0GjPp73qtpYYg4q6PEKbzJbxCpKfw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "5.0.0", - "Microsoft.Win32.Registry": "5.0.0", - "System.CodeDom": "5.0.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reactive.Core": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "CKWC+UP1aM75taNX+sTBn2P97uHIUjKxq+z45iy7P91QGFqNFleR2tsqIC76HMVvYl7o8oWyMiycdsc9rC1Z/g==", - "dependencies": { - "System.ComponentModel": "4.0.1", - "System.Diagnostics.Contracts": "4.0.1", - "System.Dynamic.Runtime": "4.0.11", - "System.Reactive.Interfaces": "3.1.1", - "System.Threading.Thread": "4.0.0", - "System.Threading.ThreadPool": "4.0.10" - } - }, - "System.Reactive.Interfaces": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "aNVY3QoRznGFeQ+w+bMqhD8ElNWoyYq+7XTQIoxKKjBOyTOjUqIMEf1wvSdtwC4y92zg2W9q38b4Sr6cYNHVLg==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "System.Reactive.Linq": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "HwsZsoYRg51cLGBOEa0uoZ5+d4CMcHEg/KrbqePhLxoz/SLA+ULISphBtn3woABPATOQ6j5YgGZWh4jxnJ3KYQ==", - "dependencies": { - "System.Reactive.Core": "3.1.1", - "System.Runtime.InteropServices.WindowsRuntime": "4.0.1" - } - }, - "System.Reactive.PlatformServices": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "jCJ3iGDLb4duOxZ/Uo3O7PssWE48uRp0fw92AlIwrMNaZRUmZNkZyqbl0nUT+joFARBYun8XiVIDQreMJKBedA==", - "dependencies": { - "System.Reactive.Linq": "3.1.1" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.CompilerServices.Unsafe": { - "type": "Transitive", - "resolved": "6.0.0", - "contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==" - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.InteropServices.WindowsRuntime": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "oIIXM4w2y3MiEZEXA+RTtfPV+SZ1ymbFdWppHlUciNdNIL0/Uo3HW9q9iN2O7T7KUmRdvjA7C2Gv4exAyW4zEQ==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.AccessControl": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "dagJ1mHZO3Ani8GH0PHpPEe/oYO+rVdbQjvjJkBRNQkX4t0r1iaeGn8+/ybkSLEan3/slM0t59SVdHzuHf2jmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "5.0.0", - "System.Security.Principal.Windows": "5.0.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.ProtectedData": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==" - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Principal.Windows": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "t0MGLukB5WAVU9bO3MGzvlGnyJPgUlcwerXn1kzBRjwLKixT96XV0Uza41W49gVd8zEMFu9vQEFlv0IOrytICA==" - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Encodings.Web": { - "type": "Transitive", - "resolved": "8.0.0", - "contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "8.0.4", - "contentHash": "bAkhgDJ88XTsqczoxEMliSrpijKZHhbJQldhAmObj/RbrN3sU5dcokuXmWJWsdQAhiMJ9bTayWsL1C9fbbCRhw==", - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0", - "System.Text.Encodings.Web": "8.0.0" - } - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "npvJkVKl5rKXrtl1Kkm6OhOUaYGEiF9wFbppFRWSMoApKzt2PiPHT2Bb8a5sAWxprvdOAtvaARS9QYMznEUtug==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "Verify": { - "type": "Transitive", - "resolved": "17.10.2", - "contentHash": "3eMRGukcJOpwjdYqrBOewONaqOC577+aWgbuW/t2LTpmCP9t07vXuB+13GzUFTCidQdj18u1rT6ShuOg+4Jucw==", - "dependencies": { - "DiffEngine": "10.0.0", - "EmptyFiles": "2.8.0", - "Newtonsoft.Json": "13.0.1", - "SimpleInfoName": "1.1.1" - } - }, - "xunit": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "6Mj73Ont3zj2CJuoykVJfE0ZmRwn7C+pTuRP8c4bnaaTFjwNG6tGe0prJ1yIbMe9AHrpDys63ctWacSsFJWK/w==", - "dependencies": { - "xunit.analyzers": "1.0.0", - "xunit.assert": "2.4.2", - "xunit.core": "[2.4.2]" - } - }, - "xunit.abstractions": { - "type": "Transitive", - "resolved": "2.0.3", - "contentHash": "pot1I4YOxlWjIb5jmwvvQNbTrZ3lJQ+jUGkGjWE3hEFM0l5gOnBWS+H3qsex68s5cO52g+44vpGzhAt+42vwKg==" - }, - "xunit.analyzers": { - "type": "Transitive", - "resolved": "1.0.0", - "contentHash": "BeO8hEgs/c8Ls2647fPfieMngncvf0D0xYNDfIO59MolxtCtVjFRd6SRc+7tj8VMqkVOuJcnc9eh4ngI2cAmLQ==" - }, - "xunit.assert": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "pxJISOFjn2XTTi1mcDCkRZrTFb9OtRRCtx2kZFNF51GdReLr1ls2rnyxvAS4JO247K3aNtflvh5Q0346K5BROA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "xunit.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "KB4yGCxNqIVyekhJLXtKSEq6BaXVp/JO3mbGVE1hxypZTLEe7h+sTbAhpA+yZW2dPtXTuiW+C1B2oxxHEkrmOw==", - "dependencies": { - "xunit.extensibility.core": "[2.4.2]", - "xunit.extensibility.execution": "[2.4.2]" - } - }, - "xunit.extensibility.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "W1BoXTIN1C6kpVSMw25huSet25ky6IAQUNovu3zGOGN/jWnbgSoTyCrlIhmXSg0tH5nEf8q7h3OjNHOjyu5PfA==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.abstractions": "2.0.3" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "elastic.clients.elasticsearch.jsonnetserializer": { - "type": "Project", - "dependencies": { - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Newtonsoft.Json": "[13.0.1, )" - } - }, - "tests.clusterlauncher": { - "type": "Project", - "dependencies": { - "Tests.Core": "[8.0.0, )" - } - }, - "tests.configuration": { - "type": "Project", - "dependencies": { - "Elastic.Elasticsearch.Managed": "[0.4.3, )" - } - }, - "tests.core": { - "type": "Project", - "dependencies": { - "DiffPlex": "[1.4.1, )", - "Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )", - "Elastic.Elasticsearch.Xunit": "[0.4.3, )", - "FluentAssertions": "[5.10.3, )", - "JunitXml.TestLogger": "[3.0.110, )", - "Microsoft.Bcl.HashCode": "[1.1.1, )", - "Microsoft.NET.Test.Sdk": "[17.2.0, )", - "Nullean.VsTest.Pretty.TestLogger": "[0.3.0, )", - "Proc": "[0.6.1, )", - "Tests.Domain": "[8.0.0, )", - "xunit": "[2.4.2, )" - } - }, - "tests.domain": { - "type": "Project", - "dependencies": { - "Bogus": "[22.1.2, )", - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Elastic.Elasticsearch.Managed": "[0.4.3, )", - "Newtonsoft.Json": "[13.0.1, )", - "Tests.Configuration": "[8.0.0, )" - } - } - }, - "net8.0": { - "Ben.Demystifier": { - "type": "Direct", - "requested": "[0.1.4, )", - "resolved": "0.1.4", - "contentHash": "+t5j6MizCTkWh1oZm9RdLIJfEWYRIPFBDe7E+H0pqjAzHbRm6oyhm5Rsf8kPGQZXNdDur9YwkSyXUe7eAIRbLw==", - "dependencies": { - "System.Reflection.Metadata": "1.5.0" - } - }, - "Bogus": { - "type": "Direct", - "requested": "[22.1.2, )", - "resolved": "22.1.2", - "contentHash": "FnYg++zOsFkN3wQJcPT6U4bmZoW/zDWp474QsZG2KX/ClCiEOwIfUxJ9xuKgwv46K0LvVoicQD09hgPke0FG1A==" - }, - "DotNet.ReproducibleBuilds": { - "type": "Direct", - "requested": "[1.1.1, )", - "resolved": "1.1.1", - "contentHash": "+H2t/t34h6mhEoUvHi8yGXyuZ2GjSovcGYehJrS2MDm2XgmPfZL2Sdxg+uL2lKgZ4M6tTwKHIlxOob2bgh0NRQ==", - "dependencies": { - "Microsoft.SourceLink.AzureRepos.Git": "1.1.1", - "Microsoft.SourceLink.Bitbucket.Git": "1.1.1", - "Microsoft.SourceLink.GitHub": "1.1.1", - "Microsoft.SourceLink.GitLab": "1.1.1" - } - }, - "Elastic.Transport.VirtualizedCluster": { - "type": "Direct", - "requested": "[0.4.22, )", - "resolved": "0.4.22", - "contentHash": "r8iOvUkTNWVsjW/1t/QkcUhH1r5LlzntT50nDW1oyEoTqRQS81JtYLvvyFrViPEbMiTh02wMUF7GIFVyQgl/Og==", - "dependencies": { - "Elastic.Transport": "0.4.22" - } - }, - "FSharp.Core": { - "type": "Direct", - "requested": "[6.0.3, )", - "resolved": "6.0.3", - "contentHash": "ywxwMhsA1nG2hsRSMl3IzYvdugrSoFg/ZY99cuBqV0SX0yp8ubD6Hee8Bh3YwaF2Ucyq/Jz8lZ0MY5VjxgogbA==" - }, - "Microsoft.NET.Test.Sdk": { - "type": "Direct", - "requested": "[17.3.1, )", - "resolved": "17.3.1", - "contentHash": "jH9W5uYannaJ3HhrPBkzSidf3WkqP6XI+Yke0ODYVuFWM6GLVtBAyNgXvU/uQXPBsHq4aysLTsrN1FvG2hlKoQ==", - "dependencies": { - "Microsoft.CodeCoverage": "17.3.1", - "Microsoft.TestPlatform.TestHost": "17.3.1" - } - }, - "Microsoft.NETFramework.ReferenceAssemblies": { - "type": "Direct", - "requested": "[1.0.2, )", - "resolved": "1.0.2", - "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==", - "dependencies": { - "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.2" - } - }, - "Newtonsoft.Json": { - "type": "Direct", - "requested": "[13.0.1, )", - "resolved": "13.0.1", - "contentHash": "ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==" - }, - "SemanticVersioning": { - "type": "Direct", - "requested": "[0.8.0, )", - "resolved": "0.8.0", - "contentHash": "hUCnQL79hU0W6X4jPeMAtGDwoEJeBEZfGBnkT+jPG45lD7KHn4h61HgYN8y1HAjPrXmC5oJcLx3l8ygPJOqvlA==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "SharpZipLib": { - "type": "Direct", - "requested": "[1.3.3, )", - "resolved": "1.3.3", - "contentHash": "N8+hwhsKZm25tDJfWpBSW7EGhH/R7EMuiX+KJ4C4u+fCWVc1lJ5zg1u3S1RPPVYgTqhx/C3hxrqUpi6RwK5+Tg==" - }, - "System.Diagnostics.FileVersionInfo": { - "type": "Direct", - "requested": "[4.3.0, )", - "resolved": "4.3.0", - "contentHash": "omCF64wzQ3Q2CeIqkD6lmmxeMZtGHUmzgFMPjfVaOsyqpR66p/JaZzManMw1s33osoAb5gqpncsjie67+yUPHQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Reflection.Metadata": "1.4.1", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.Reactive": { - "type": "Direct", - "requested": "[3.1.1, )", - "resolved": "3.1.1", - "contentHash": "elkQdVQoBVX39BHrYHMc3Rnbb7a9qBJIwNCvhq1psPMOEPo62/VHB0lJu671x3fOrGL4V/85n6p2Az1tw7Kvmg==", - "dependencies": { - "System.Reactive.PlatformServices": "3.1.1" - } - }, - "Verify.Xunit": { - "type": "Direct", - "requested": "[17.10.2, )", - "resolved": "17.10.2", - "contentHash": "9k4cmIA15EfWpC0oHgo9gEKHpIizxsXZs4f2y5OGea13gYUPFqa+06ncm6zaU4qL+jAewpX8jRoHVZgNpKW3Gw==", - "dependencies": { - "EmptyFiles": "2.8.0", - "Verify": "17.10.2", - "xunit.abstractions": "2.0.3", - "xunit.assert": "2.4.2", - "xunit.extensibility.execution": "2.4.2" - } - }, - "xunit.extensibility.execution": { - "type": "Direct", - "requested": "[2.4.2, )", - "resolved": "2.4.2", - "contentHash": "CZmgcKkwpyo8FlupZdWpJCryrAOWLh1FBPG6gmVZuPQkGQsim/oL4PcP4nfrC2hHgXUFtluvaJ0Sp9PQKUMNpg==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.extensibility.core": "[2.4.2]" - } - }, - "xunit.runner.visualstudio": { - "type": "Direct", - "requested": "[2.4.5, )", - "resolved": "2.4.5", - "contentHash": "OwHamvBdUKgqsXfBzWiCW/O98BTx81UKzx2bieIOQI7CZFE5NEQZGi8PBQGIKawDW96xeRffiNf20SjfC0x9hw==" - }, - "DiffEngine": { - "type": "Transitive", - "resolved": "10.0.0", - "contentHash": "H8F7V1zRHkWLP5AW9lCxZypanXlFRT8n7P9Ou8cxz189Yg8TEw5FwTqQCaXjVPRjfE8621lhblpQrghbGJgDZw==", - "dependencies": { - "EmptyFiles": "2.8.0", - "System.Management": "5.0.0" - } - }, - "DiffPlex": { - "type": "Transitive", - "resolved": "1.4.1", - "contentHash": "xZLcguPf0Gl67Ygz8XIhiQmTeUIs/M4eB9ylOelNGnHMvmqxe9bQ89omVJdoSO6gvc4NSmonHGL+zfwrSEjGnA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "Elastic.Elasticsearch.Ephemeral": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "fmu7A6bm3sOTGrG+MAINRQ2Op0n6K1OjfNErNMhpTOt5mQ0UjX8zfpiZoM+nB0jA8bX1nt1YR++5YCnYGJFtRg==", - "dependencies": { - "Elastic.Elasticsearch.Managed": "0.4.3", - "SharpZipLib.NETStandard": "1.0.7" - } - }, - "Elastic.Elasticsearch.Managed": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "B7FvSMeNqYM3Yl/r/QRyROuAkMSiSQ0EvZQ36Cqrxm6uRBodlwky4yy4Im/AnOIQIl5lFLGr4vLHwWedHPharw==", - "dependencies": { - "Elastic.Stack.ArtifactsApi": "0.4.3", - "Proc": "0.6.1", - "System.Net.Http": "4.3.1" - } - }, - "Elastic.Elasticsearch.Xunit": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "kKn9Fiihel643Rywvl1bH2luQdhuefMh7wVPaLViEj8olU5Ud0bb1nZ8AFhm4PnEbLjw5PZ49Pn5hvyoYnJesQ==", - "dependencies": { - "Elastic.Elasticsearch.Ephemeral": "0.4.3", - "xunit": "2.4.1" - } - }, - "Elastic.Stack.ArtifactsApi": { - "type": "Transitive", - "resolved": "0.4.3", - "contentHash": "mqfBDj5s8Gj6QWNYmCNJo2raxbzn8fUBk+eSxA5HeDYjEXoK52kOBvFSy4bL9Qaz+EW6JvOvt8nw0cm5MorJUA==", - "dependencies": { - "SemanticVersioning": "0.8.0", - "System.Text.Json": "4.6.0" - } - }, - "Elastic.Transport": { - "type": "Transitive", - "resolved": "0.4.22", - "contentHash": "9J5GPHJcT8sewn2zVfWTrsCQvfQYgUiY/jx+IRjWUk7XNPd837qfEL42I5baH69cyW/e4RoDy8v76yxqz95tDw==" - }, - "EmptyFiles": { - "type": "Transitive", - "resolved": "2.8.0", - "contentHash": "2N6IdrlSYT+FhX5hAbasJ7wpV/ONtIX+7fN+XXukwGAgHRNjiAoO0TScQsTZcgaXmbuvGu4ogKk0jPt2dVLgTQ==" - }, - "FluentAssertions": { - "type": "Transitive", - "resolved": "5.10.3", - "contentHash": "gVPEVp1hLVqcv+7Q2wiDf7kqCNn7+bQcQ0jbJ2mcRT6CeRoZl1tNkqvzSIhvekyldDptk77j1b03MXTTRIqqpg==", - "dependencies": { - "System.Configuration.ConfigurationManager": "4.4.0" - } - }, - "JunitXml.TestLogger": { - "type": "Transitive", - "resolved": "3.0.110", - "contentHash": "D0Kl9mNnbSZgEa8ZgsEAJskPvyrC9k+5BsEWUqvNr++BZJbYIb08fwe0ohvb6WEzJlMPmeLJMmvQuw5yIq3gjA==" - }, - "Microsoft.Bcl.HashCode": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "MalY0Y/uM/LjXtHfX/26l2VtN4LDNZ2OE3aumNOHDLsT4fNYy2hiHXI4CXCqKpNUNm7iJ2brrc4J89UdaL56FA==" - }, - "Microsoft.Build.Tasks.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "AT3HlgTjsqHnWpBHSNeR0KxbLZD7bztlZVj7I8vgeYG9SYqbeFGh0TM/KVtC6fg53nrWHl3VfZFvb5BiQFcY6Q==" - }, - "Microsoft.CodeCoverage": { - "type": "Transitive", - "resolved": "17.3.1", - "contentHash": "WqB7Ik4v8ku0Y9HZShqTStZdq8R1lyhsZr7IMp8zV/OcL5sHVYvlMnardQR+SDQc3dmbniCIl9mYxYM+V7x8MA==" - }, - "Microsoft.NETCore.Platforms": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "VyPlqzH2wavqquTcYpkIIAQ6WdenuKoFN0BdYBbCWsclXacSOHNQn66Gt4z5NBqEYW0FAPm5rlvki9ZiCij5xQ==" - }, - "Microsoft.NETCore.Targets": { - "type": "Transitive", - "resolved": "1.1.0", - "contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==" - }, - "Microsoft.NETFramework.ReferenceAssemblies.net461": { - "type": "Transitive", - "resolved": "1.0.2", - "contentHash": "8shzGaD5pZi4npuJYCM3de6pl0zlefcbyTIvXIiCdsTqauZ7lAhdaJVtJSqlhYid9VosFAOygBykoJ1SEOlGWA==" - }, - "Microsoft.SourceLink.AzureRepos.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "qB5urvw9LO2bG3eVAkuL+2ughxz2rR7aYgm2iyrB8Rlk9cp2ndvGRCvehk3rNIhRuNtQaeKwctOl1KvWiklv5w==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Bitbucket.Git": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "cDzxXwlyWpLWaH0em4Idj0H3AmVo3L/6xRXKssYemx+7W52iNskj/SQ4FOmfCb8YQt39otTDNMveCZzYtMoucQ==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.Common": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "WMcGpWKrmJmzrNeuaEb23bEMnbtR/vLmvZtkAP5qWu7vQsY59GqfRJd65sFpBszbd2k/bQ8cs8eWawQKAabkVg==" - }, - "Microsoft.SourceLink.GitHub": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "IaJGnOv/M7UQjRJks7B6p7pbPnOwisYGOIzqCz5ilGFTApZ3ktOR+6zJ12ZRPInulBmdAf1SrGdDG2MU8g6XTw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.SourceLink.GitLab": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "tvsg47DDLqqedlPeYVE2lmiTpND8F0hkrealQ5hYltSmvruy/Gr5nHAKSsjyw5L3NeM/HLMI5ORv7on/M4qyZw==", - "dependencies": { - "Microsoft.Build.Tasks.Git": "1.1.1", - "Microsoft.SourceLink.Common": "1.1.1" - } - }, - "Microsoft.TestPlatform.ObjectModel": { - "type": "Transitive", - "resolved": "17.3.1", - "contentHash": "n1WSFCMiFt6KmD5JzV+Wye5Ntomez3YP2+d15bu5PS5Z1U0g+V7VBLdJIaJRnahz5BsXJDTnLYNVOUdntwjx6Q==", - "dependencies": { - "NuGet.Frameworks": "5.11.0", - "System.Reflection.Metadata": "1.6.0" - } - }, - "Microsoft.TestPlatform.TestHost": { - "type": "Transitive", - "resolved": "17.3.1", - "contentHash": "co/GMz6rGxpzn2aJYTDDim61HvEk+SHBVtbXnu2RSrz20HxkaraEh0kltCsMkmLAX/6Hz5sa6NquLngBlURTow==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "17.3.1", - "Newtonsoft.Json": "9.0.1" - } - }, - "Microsoft.Win32.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "Microsoft.Win32.Registry": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "dDoKi0PnDz31yAyETfRntsLArTlVAVzUzCIvvEDsDsucrl33Dl8pIJG06ePTJTI3tGpeyHS9Cq7Foc/s4EeKcg==", - "dependencies": { - "System.Security.AccessControl": "5.0.0", - "System.Security.Principal.Windows": "5.0.0" - } - }, - "NETStandard.Library": { - "type": "Transitive", - "resolved": "1.6.1", - "contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "System.AppContext": "4.3.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Console": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.Compression.ZipFile": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Linq": "4.3.0", - "System.Linq.Expressions": "4.3.0", - "System.Net.Http": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Net.Sockets": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.InteropServices.RuntimeInformation": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Timer": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0", - "System.Xml.XDocument": "4.3.0" - } - }, - "NuGet.Frameworks": { - "type": "Transitive", - "resolved": "5.11.0", - "contentHash": "eaiXkUjC4NPcquGWzAGMXjuxvLwc6XGKMptSyOGQeT0X70BUZObuybJFZLA0OfTdueLd3US23NBPTBb6iF3V1Q==" - }, - "Nullean.VsTest.Pretty.TestLogger": { - "type": "Transitive", - "resolved": "0.3.0", - "contentHash": "11Cklf+kZ1JS+l3CRZaWQaQHmRm0Je/iIrci6bwY5c9/QXrCuYgWe/A2w0G1eYe33QU5sgUmds48Y7HQFK89mw==", - "dependencies": { - "Microsoft.TestPlatform.ObjectModel": "15.8.0" - } - }, - "Proc": { - "type": "Transitive", - "resolved": "0.6.1", - "contentHash": "xRSCfgQNoGy60MOuvD2X1euzqvWDoyfpB8NAfVs2E5K5U1I8cA9MvVY6NbUkp5ApbOmVXls2JEPrOn8rQi2Pzg==", - "dependencies": { - "System.Diagnostics.Process": "[4.3.0]", - "System.Threading.Thread": "[4.3.0]" - } - }, - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q==" - }, - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA==" - }, - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw==" - }, - "runtime.native.System": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZVuZJqnnegJhd2k/PtAbbIcZ3aZeITq3sj06oKfMBSfphW3HDmk/t4ObvbOk/JA/swGR0LNqMksAh/f7gpTROg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DloMk88juo0OuOWr56QG7MNchmafTLYWvABy36izkrLI5VledI0rq28KGs1i9wbpeT9NPQrx/wTf8U2vazqQ3Q==", - "dependencies": { - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": "4.3.0" - } - }, - "runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==", - "dependencies": { - "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0", - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A==" - }, - "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kVXCuMTrTlxq4XOOMAysuNwsXWpYeboGddNGpIgNSZmv1b6r/s/DPk0fYMB7Q5Qo4bY68o48jt4T4y5BVecbCQ==" - }, - "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g==" - }, - "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg==" - }, - "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ==" - }, - "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A==" - }, - "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg==" - }, - "SharpZipLib.NETStandard": { - "type": "Transitive", - "resolved": "1.0.7", - "contentHash": "mYKPizF2CY32RQB8FITYy0e30gVgItFA63SFquruaxq+votwL1T+yOfssK10v4enBcxklr8ks48hS1emw5TTXg==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "SimpleInfoName": { - "type": "Transitive", - "resolved": "1.1.1", - "contentHash": "btPTv2TaAx8AbVX/uokw+W/9Fd1y+pqgPR9tOzq7Lfu3HmXRnTCT5jgGMw/sq4QwocOj3TnVjZsPpjfwuhjcIw==" - }, - "System.AppContext": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Buffers": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.CodeDom": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "JPJArwA1kdj8qDAkY2XGjSWoYnqiM7q/3yRNkt6n28Mnn95MuEGkZXUbPBf7qc3IjwrGY5ttQon7yqHZyQJmOQ==" - }, - "System.Collections": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Collections.Concurrent": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ComponentModel": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "oBZFnm7seFiVfugsIyOvQCWobNZs7FzqDV/B7tx20Ep/l3UUFCPDkdTnCNaJZTU27zjeODmy2C/cP60u3D4c9w==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Configuration.ConfigurationManager": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "gWwQv/Ug1qWJmHCmN17nAbxJYmQBM/E94QxKLksvUiiKB1Ld3Sc/eK1lgmbSjDFxkQhVuayI/cGFZhpBSodLrg==", - "dependencies": { - "System.Security.Cryptography.ProtectedData": "4.4.0" - } - }, - "System.Console": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Diagnostics.Contracts": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "HvQQjy712vnlpPxaloZYkuE78Gn353L0SJLJVeLcNASeg9c4qla2a1Xq8I7B3jZoDzKPtHTkyVO7AZ5tpeQGuA==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Diagnostics.Debug": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.DiagnosticSource": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Diagnostics.Process": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "J0wOX07+QASQblsfxmIMFc9Iq7KTXYL3zs2G/Xc704Ylv3NpuVdo6gij6V3PGiptTxqsK0K7CdXenRvKUnkA2g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.Win32.Primitives": "4.3.0", - "Microsoft.Win32.Registry": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Thread": "4.3.0", - "System.Threading.ThreadPool": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Diagnostics.Tools": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Diagnostics.Tracing": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Dynamic.Runtime": { - "type": "Transitive", - "resolved": "4.0.11", - "contentHash": "db34f6LHYM0U0JpE+sOmjar27BnqTVkbLJhgfwMpTdgTigG/Hna3m2MYVwnFzGGKnEJk2UXFuoVTr8WUbU91/A==", - "dependencies": { - "System.Collections": "4.0.11", - "System.Diagnostics.Debug": "4.0.11", - "System.Globalization": "4.0.11", - "System.Linq": "4.1.0", - "System.Linq.Expressions": "4.1.0", - "System.ObjectModel": "4.0.12", - "System.Reflection": "4.1.0", - "System.Reflection.Emit": "4.0.1", - "System.Reflection.Emit.ILGeneration": "4.0.1", - "System.Reflection.Primitives": "4.0.1", - "System.Reflection.TypeExtensions": "4.1.0", - "System.Resources.ResourceManager": "4.0.1", - "System.Runtime": "4.1.0", - "System.Runtime.Extensions": "4.1.0", - "System.Threading": "4.0.11" - } - }, - "System.Globalization": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Calendars": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Globalization.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "FhKmdR6MPG+pxow6wGtNAWdZh7noIOpdD5TwQ3CprzgIE1bBBoim0vbR1+AWsWjQmU7zXHgQo4TWSP6lCeiWcQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0" - } - }, - "System.IO": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.Compression": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Buffers": "4.3.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.IO.Compression": "4.3.0" - } - }, - "System.IO.Compression.ZipFile": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==", - "dependencies": { - "System.Buffers": "4.3.0", - "System.IO": "4.3.0", - "System.IO.Compression": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.IO.FileSystem": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.IO.FileSystem.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Linq": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Linq.Expressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Linq": "4.3.0", - "System.ObjectModel": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Emit.Lightweight": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Reflection.TypeExtensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Management": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "MF1CHaRcC+MLFdnDthv4/bKWBZnlnSpkGqa87pKukQefgEdwtb9zFW6zs0GjPp73qtpYYg4q6PEKbzJbxCpKfw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "5.0.0", - "Microsoft.Win32.Registry": "5.0.0", - "System.CodeDom": "5.0.0" - } - }, - "System.Net.Http": { - "type": "Transitive", - "resolved": "4.3.1", - "contentHash": "UrTyRczM3ZvNk6oetBuwlu67MFKKRva+r7bw4JDVZ6Y2IukyZ24td5ppsieu/4yZlogVAIuZul9GIQ3hoiz0yA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.DiagnosticSource": "4.3.0", - "System.Diagnostics.Tracing": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Extensions": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Security.Cryptography.X509Certificates": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Net.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Net.Sockets": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Net.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.ObjectModel": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Reactive.Core": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "CKWC+UP1aM75taNX+sTBn2P97uHIUjKxq+z45iy7P91QGFqNFleR2tsqIC76HMVvYl7o8oWyMiycdsc9rC1Z/g==", - "dependencies": { - "System.ComponentModel": "4.0.1", - "System.Diagnostics.Contracts": "4.0.1", - "System.Dynamic.Runtime": "4.0.11", - "System.Reactive.Interfaces": "3.1.1", - "System.Threading.Thread": "4.0.0", - "System.Threading.ThreadPool": "4.0.10" - } - }, - "System.Reactive.Interfaces": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "aNVY3QoRznGFeQ+w+bMqhD8ElNWoyYq+7XTQIoxKKjBOyTOjUqIMEf1wvSdtwC4y92zg2W9q38b4Sr6cYNHVLg==", - "dependencies": { - "NETStandard.Library": "1.6.0" - } - }, - "System.Reactive.Linq": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "HwsZsoYRg51cLGBOEa0uoZ5+d4CMcHEg/KrbqePhLxoz/SLA+ULISphBtn3woABPATOQ6j5YgGZWh4jxnJ3KYQ==", - "dependencies": { - "System.Reactive.Core": "3.1.1", - "System.Runtime.InteropServices.WindowsRuntime": "4.0.1" - } - }, - "System.Reactive.PlatformServices": { - "type": "Transitive", - "resolved": "3.1.1", - "contentHash": "jCJ3iGDLb4duOxZ/Uo3O7PssWE48uRp0fw92AlIwrMNaZRUmZNkZyqbl0nUT+joFARBYun8XiVIDQreMJKBedA==", - "dependencies": { - "System.Reactive.Linq": "3.1.1" - } - }, - "System.Reflection": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "228FG0jLcIwTVJyz8CLFKueVqQK36ANazUManGaJHkO0icjiIypKW7YLWLIWahyIkdh5M7mV2dJepllLyA1SKg==", - "dependencies": { - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.ILGeneration": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "59tBslAk9733NXLrUJrwNZEzbMAcu8k344OYo+wfSVygcgZ9lgBdGIzH/nrg3LYhXceynyvTc8t5/GD4Ri0/ng==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Emit.Lightweight": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "oadVHGSMsTmZsAF864QYN1t1QzZjIcuKU3l2S9cZOwDdDueNTrqq1yRj7koFfIGEnKpt6NjpL3rOzRhs4ryOgA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Emit.ILGeneration": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.Metadata": { - "type": "Transitive", - "resolved": "1.6.0", - "contentHash": "COC1aiAJjCoA5GBF+QKL2uLqEBew4JsCkQmoHKbN3TlOZKa2fKLz5CpiRQKDz0RsAOEGsVKqOD5bomsXq/4STQ==" - }, - "System.Reflection.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Reflection.TypeExtensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7u6ulLcZbyxB5Gq0nMkQttcdBTx57ibzw+4IOXEfR+sXYQoHvjW5LTLyNr8O22UIMrqYbchJQJnos4eooYzYJA==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Resources.ResourceManager": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Globalization": "4.3.0", - "System.Reflection": "4.3.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0" - } - }, - "System.Runtime.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.Handles": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Runtime.InteropServices": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Reflection": "4.3.0", - "System.Reflection.Primitives": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Runtime.InteropServices.RuntimeInformation": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==", - "dependencies": { - "System.Reflection": "4.3.0", - "System.Reflection.Extensions": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0" - } - }, - "System.Runtime.InteropServices.WindowsRuntime": { - "type": "Transitive", - "resolved": "4.0.1", - "contentHash": "oIIXM4w2y3MiEZEXA+RTtfPV+SZ1ymbFdWppHlUciNdNIL0/Uo3HW9q9iN2O7T7KUmRdvjA7C2Gv4exAyW4zEQ==", - "dependencies": { - "System.Runtime": "4.1.0" - } - }, - "System.Runtime.Numerics": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==", - "dependencies": { - "System.Globalization": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0" - } - }, - "System.Security.AccessControl": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "dagJ1mHZO3Ani8GH0PHpPEe/oYO+rVdbQjvjJkBRNQkX4t0r1iaeGn8+/ybkSLEan3/slM0t59SVdHzuHf2jmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "5.0.0", - "System.Security.Principal.Windows": "5.0.0" - } - }, - "System.Security.Cryptography.Algorithms": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.Apple": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Cng": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "03idZOqFlsKRL4W+LuCpJ6dBYDUWReug6lZjBa3uJWnk5sPCUXckocevTaUA8iT/MFSrY/2HXkOt753xQ/cf8g==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Security.Cryptography.Csp": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "X4s/FCkEUnRGnwR3aSfVIkldBmtURMhmexALNTwpjklzxWU7yjMk7GHLKOZTNkgnWnE0q7+BCf9N2LVRWxewaA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0" - } - }, - "System.Security.Cryptography.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Collections.Concurrent": "4.3.0", - "System.Linq": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.OpenSsl": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "h4CEgOgv5PKVF/HwaHzJRiVboL2THYCou97zpmhjghx5frc7fIvlkY1jL+lnIQyChrJDMNEXS6r7byGif8Cy4w==", - "dependencies": { - "System.Collections": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Cryptography.Primitives": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==", - "dependencies": { - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Security.Cryptography.ProtectedData": { - "type": "Transitive", - "resolved": "4.4.0", - "contentHash": "cJV7ScGW7EhatRsjehfvvYVBvtiSMKgN8bOVI0bQhnF5bU7vnHVIsH49Kva7i7GWaWYvmEzkYVk1TC+gZYBEog==" - }, - "System.Security.Cryptography.X509Certificates": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.Globalization.Calendars": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.Handles": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Runtime.Numerics": "4.3.0", - "System.Security.Cryptography.Algorithms": "4.3.0", - "System.Security.Cryptography.Cng": "4.3.0", - "System.Security.Cryptography.Csp": "4.3.0", - "System.Security.Cryptography.Encoding": "4.3.0", - "System.Security.Cryptography.OpenSsl": "4.3.0", - "System.Security.Cryptography.Primitives": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "runtime.native.System": "4.3.0", - "runtime.native.System.Net.Http": "4.3.0", - "runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0" - } - }, - "System.Security.Principal.Windows": { - "type": "Transitive", - "resolved": "5.0.0", - "contentHash": "t0MGLukB5WAVU9bO3MGzvlGnyJPgUlcwerXn1kzBRjwLKixT96XV0Uza41W49gVd8zEMFu9vQEFlv0IOrytICA==" - }, - "System.Text.Encoding": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Text.Encoding.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0", - "System.Text.Encoding": "4.3.0" - } - }, - "System.Text.Json": { - "type": "Transitive", - "resolved": "4.6.0", - "contentHash": "4F8Xe+JIkVoDJ8hDAZ7HqLkjctN/6WItJIzQaifBwClC7wmoLSda/Sv2i6i1kycqDb3hWF4JCVbpAweyOKHEUA==" - }, - "System.Text.RegularExpressions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Tasks": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Threading.Tasks.Extensions": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "npvJkVKl5rKXrtl1Kkm6OhOUaYGEiF9wFbppFRWSMoApKzt2PiPHT2Bb8a5sAWxprvdOAtvaARS9QYMznEUtug==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Runtime": "4.3.0", - "System.Threading.Tasks": "4.3.0" - } - }, - "System.Threading.Thread": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "OHmbT+Zz065NKII/ZHcH9XO1dEuLGI1L2k7uYss+9C1jLxTC9kTZZuzUOyXHayRk+dft9CiDf3I/QZ0t8JKyBQ==", - "dependencies": { - "System.Runtime": "4.3.0" - } - }, - "System.Threading.ThreadPool": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "k/+g4b7vjdd4aix83sTgC9VG6oXYKAktSfNIJUNGxPEj7ryEOfzHHhfnmsZvjxawwcD9HyWXKCXmPjX8U4zeSw==", - "dependencies": { - "System.Runtime": "4.3.0", - "System.Runtime.Handles": "4.3.0" - } - }, - "System.Threading.Timer": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==", - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0", - "Microsoft.NETCore.Targets": "1.1.0", - "System.Runtime": "4.3.0" - } - }, - "System.Xml.ReaderWriter": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.IO.FileSystem": "4.3.0", - "System.IO.FileSystem.Primitives": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Runtime.InteropServices": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Text.Encoding.Extensions": "4.3.0", - "System.Text.RegularExpressions": "4.3.0", - "System.Threading.Tasks": "4.3.0", - "System.Threading.Tasks.Extensions": "4.3.0" - } - }, - "System.Xml.XDocument": { - "type": "Transitive", - "resolved": "4.3.0", - "contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==", - "dependencies": { - "System.Collections": "4.3.0", - "System.Diagnostics.Debug": "4.3.0", - "System.Diagnostics.Tools": "4.3.0", - "System.Globalization": "4.3.0", - "System.IO": "4.3.0", - "System.Reflection": "4.3.0", - "System.Resources.ResourceManager": "4.3.0", - "System.Runtime": "4.3.0", - "System.Runtime.Extensions": "4.3.0", - "System.Text.Encoding": "4.3.0", - "System.Threading": "4.3.0", - "System.Xml.ReaderWriter": "4.3.0" - } - }, - "Verify": { - "type": "Transitive", - "resolved": "17.10.2", - "contentHash": "3eMRGukcJOpwjdYqrBOewONaqOC577+aWgbuW/t2LTpmCP9t07vXuB+13GzUFTCidQdj18u1rT6ShuOg+4Jucw==", - "dependencies": { - "DiffEngine": "10.0.0", - "EmptyFiles": "2.8.0", - "Newtonsoft.Json": "13.0.1", - "SimpleInfoName": "1.1.1" - } - }, - "xunit": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "6Mj73Ont3zj2CJuoykVJfE0ZmRwn7C+pTuRP8c4bnaaTFjwNG6tGe0prJ1yIbMe9AHrpDys63ctWacSsFJWK/w==", - "dependencies": { - "xunit.analyzers": "1.0.0", - "xunit.assert": "2.4.2", - "xunit.core": "[2.4.2]" - } - }, - "xunit.abstractions": { - "type": "Transitive", - "resolved": "2.0.3", - "contentHash": "pot1I4YOxlWjIb5jmwvvQNbTrZ3lJQ+jUGkGjWE3hEFM0l5gOnBWS+H3qsex68s5cO52g+44vpGzhAt+42vwKg==" - }, - "xunit.analyzers": { - "type": "Transitive", - "resolved": "1.0.0", - "contentHash": "BeO8hEgs/c8Ls2647fPfieMngncvf0D0xYNDfIO59MolxtCtVjFRd6SRc+7tj8VMqkVOuJcnc9eh4ngI2cAmLQ==" - }, - "xunit.assert": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "pxJISOFjn2XTTi1mcDCkRZrTFb9OtRRCtx2kZFNF51GdReLr1ls2rnyxvAS4JO247K3aNtflvh5Q0346K5BROA==", - "dependencies": { - "NETStandard.Library": "1.6.1" - } - }, - "xunit.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "KB4yGCxNqIVyekhJLXtKSEq6BaXVp/JO3mbGVE1hxypZTLEe7h+sTbAhpA+yZW2dPtXTuiW+C1B2oxxHEkrmOw==", - "dependencies": { - "xunit.extensibility.core": "[2.4.2]", - "xunit.extensibility.execution": "[2.4.2]" - } - }, - "xunit.extensibility.core": { - "type": "Transitive", - "resolved": "2.4.2", - "contentHash": "W1BoXTIN1C6kpVSMw25huSet25ky6IAQUNovu3zGOGN/jWnbgSoTyCrlIhmXSg0tH5nEf8q7h3OjNHOjyu5PfA==", - "dependencies": { - "NETStandard.Library": "1.6.1", - "xunit.abstractions": "2.0.3" - } - }, - "elastic.clients.elasticsearch": { - "type": "Project", - "dependencies": { - "Elastic.Transport": "[0.4.22, )" - } - }, - "elastic.clients.elasticsearch.jsonnetserializer": { - "type": "Project", - "dependencies": { - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Newtonsoft.Json": "[13.0.1, )" - } - }, - "tests.clusterlauncher": { - "type": "Project", - "dependencies": { - "Tests.Core": "[8.0.0, )" - } - }, - "tests.configuration": { - "type": "Project", - "dependencies": { - "Elastic.Elasticsearch.Managed": "[0.4.3, )" - } - }, - "tests.core": { - "type": "Project", - "dependencies": { - "DiffPlex": "[1.4.1, )", - "Elastic.Clients.Elasticsearch.JsonNetSerializer": "[8.0.0, )", - "Elastic.Elasticsearch.Xunit": "[0.4.3, )", - "FluentAssertions": "[5.10.3, )", - "JunitXml.TestLogger": "[3.0.110, )", - "Microsoft.Bcl.HashCode": "[1.1.1, )", - "Microsoft.NET.Test.Sdk": "[17.2.0, )", - "Nullean.VsTest.Pretty.TestLogger": "[0.3.0, )", - "Proc": "[0.6.1, )", - "Tests.Domain": "[8.0.0, )", - "xunit": "[2.4.2, )" - } - }, - "tests.domain": { - "type": "Project", - "dependencies": { - "Bogus": "[22.1.2, )", - "Elastic.Clients.Elasticsearch": "[8.0.0, )", - "Elastic.Elasticsearch.Managed": "[0.4.3, )", - "Newtonsoft.Json": "[13.0.1, )", - "Tests.Configuration": "[8.0.0, )" - } - } - } - } -} \ No newline at end of file From 06f0486c6ac5f9eedfc6530eb40d8c6f17165f18 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:02:28 +0200 Subject: [PATCH 07/28] Improve id inference (#8379) (#8382) Co-authored-by: Florian Bernd --- .../_Shared/Core/Infer/Id/IdResolver.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs index a52f871a209..70b07561a6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Concurrent; +using System.Globalization; using System.Reflection; #if ELASTICSEARCH_SERVERLESS @@ -71,7 +72,7 @@ public string Resolve(Type type, object @object) cachedLookup = o => { var v = func(o); - return v?.ToString(); + return (v is IFormattable f) ? f.ToString(null, CultureInfo.InvariantCulture) : v?.ToString(); }; if (preferLocal) _localIdDelegates.TryAdd(type, cachedLookup); From b03a711521dd3c926ff2584dc8bfdee7ceb3e6b2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:02:42 +0200 Subject: [PATCH 08/28] Add `DateTimeOffset` to the known types for `ObjectToInferredTypesConverter` (#8380) (#8384) Co-authored-by: Florian Bernd --- .../Serialization/ObjectToInferredTypesConverter.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs index e22f246fa2d..b9711de6e94 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs @@ -21,10 +21,11 @@ public override object Read( { JsonTokenType.True => true, JsonTokenType.False => false, - JsonTokenType.Number when reader.TryGetInt64(out var l) => l, + JsonTokenType.Number when reader.TryGetInt64(out var value) => value, JsonTokenType.Number => reader.GetDouble(), - JsonTokenType.String when reader.TryGetDateTime(out var datetime) => datetime, - JsonTokenType.String => reader.GetString(), + JsonTokenType.String when reader.TryGetDateTime(out var value) => value, + JsonTokenType.String when reader.TryGetDateTimeOffset(out var value) => value, + JsonTokenType.String => reader.GetString()!, _ => JsonDocument.ParseValue(ref reader).RootElement.Clone() }; From 0444ee48cf7868165e0b8d7c5d9713f33a114bf4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:02:56 +0200 Subject: [PATCH 09/28] Add `WithAlias` extensions for CreateIndexRequestDescriptor (#8373) (#8386) * Add WithAlias extension methods for CreateIndexRequestDescriptor * Fix incorrect namespaces in manual code files * Remove params overloads (for now) Co-authored-by: Steve Gordon --- .../CreateIndexRequestDescriptorExtensions.cs | 53 +++++++++++++++++++ .../IndexManagement/ExistsAliasResponse.cs | 2 +- .../ExistsIndexTemplateResponse.cs | 2 +- .../IndexManagement/ExistsTemplateResponse.cs | 2 +- 4 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs b/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs new file mode 100644 index 00000000000..5b722d75ad6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Shared/Api/Extensions/CreateIndexRequestDescriptorExtensions.cs @@ -0,0 +1,53 @@ +// 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; + +#if ELASTICSEARCH_SERVERLESS +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +#else +namespace Elastic.Clients.Elasticsearch.IndexManagement; +#endif + +public static class CreateIndexRequestDescriptorExtensions +{ + /// + /// Add multiple aliases to the index at creation time. + /// + /// A descriptor for an index request. + /// The name of the alias. + /// The to allow fluent chaining of calls to configure the indexing request. + public static CreateIndexRequestDescriptor WithAlias(this CreateIndexRequestDescriptor descriptor, string aliasName) + { +#if NET8_0_OR_GREATER + ArgumentException.ThrowIfNullOrEmpty(aliasName); +#else + if (string.IsNullOrEmpty(aliasName)) + throw new ArgumentNullException(nameof(aliasName)); +#endif + + descriptor.Aliases(a => a.Add(aliasName, static _ => { })); + return descriptor; + } + + /// + /// Adds an alias to the index at creation time. + /// + /// The type representing documents stored in this index. + /// A fluent descriptor for an index request. + /// The name of the alias. + /// The to allow fluent chaining of calls to configure the indexing request. + public static CreateIndexRequestDescriptor WithAlias(this CreateIndexRequestDescriptor descriptor, string aliasName) + { +#if NET8_0_OR_GREATER + ArgumentException.ThrowIfNullOrEmpty(aliasName); +#else + if (string.IsNullOrEmpty(aliasName)) + throw new ArgumentNullException(nameof(aliasName)); +#endif + + descriptor.Aliases(a => a.Add(aliasName, static _ => { })); + return descriptor; + } +} diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs index e55df48a596..c5c1aa04369 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs @@ -5,7 +5,7 @@ using Elastic.Transport.Products.Elasticsearch; #if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.IndexManagement.Serverless; +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; #else namespace Elastic.Clients.Elasticsearch.IndexManagement; #endif diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs index 90167ab564e..dc054dcc4c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs @@ -5,7 +5,7 @@ using Elastic.Transport.Products.Elasticsearch; #if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.IndexManagement.Serverless; +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; #else namespace Elastic.Clients.Elasticsearch.IndexManagement; #endif diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs index fd93d348d2f..a3362dc7e18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs @@ -5,7 +5,7 @@ using Elastic.Transport.Products.Elasticsearch; #if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.IndexManagement.Serverless; +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; #else namespace Elastic.Clients.Elasticsearch.IndexManagement; #endif From 077e6f5f678e1e62e3ea0dadfe1522691cd969c7 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Fri, 11 Oct 2024 16:06:21 +0200 Subject: [PATCH 10/28] Fix solution filters --- Packages.Serverless.slnf | 3 +-- Packages.Stack.slnf | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Packages.Serverless.slnf b/Packages.Serverless.slnf index 62e4819ebfd..218a457e47d 100644 --- a/Packages.Serverless.slnf +++ b/Packages.Serverless.slnf @@ -2,8 +2,7 @@ "solution": { "path": "Elasticsearch.sln", "projects": [ - "src\\Elastic.Clients.Elasticsearch.Serverless\\Elastic.Clients.Elasticsearch.Serverless.csproj", - "src\\Elastic.Clients.Elasticsearch.Shared\\Elastic.Clients.Elasticsearch.Shared.shproj" + "src\\Elastic.Clients.Elasticsearch.Serverless\\Elastic.Clients.Elasticsearch.Serverless.csproj" ] } } \ No newline at end of file diff --git a/Packages.Stack.slnf b/Packages.Stack.slnf index a2166d8b620..586cabde530 100644 --- a/Packages.Stack.slnf +++ b/Packages.Stack.slnf @@ -2,7 +2,6 @@ "solution": { "path": "Elasticsearch.sln", "projects": [ - "src\\Elastic.Clients.Elasticsearch.Shared\\Elastic.Clients.Elasticsearch.Shared.shproj", "src\\Elastic.Clients.Elasticsearch\\Elastic.Clients.Elasticsearch.csproj" ] } From a3d5f00036d71df1345389bd417a9ad69882ddcc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:26:07 +0200 Subject: [PATCH 11/28] Regenerate client using the latest specification (#8388) (#8390) Co-authored-by: Florian Bernd --- .../_Generated/Api/ApiUrlLookup.g.cs | 1 - .../Api/Cluster/ClusterStatsRequest.g.cs | 10 +- .../IndexManagement/ClearCacheResponse.g.cs | 2 +- .../Api/IndexManagement/FlushResponse.g.cs | 2 +- .../IndexManagement/ForcemergeResponse.g.cs | 2 +- .../IndexManagement/PutTemplateRequest.g.cs | 577 -------- .../Api/IndexManagement/RefreshResponse.g.cs | 2 +- .../GetBuiltinPrivilegesResponse.g.cs | 3 +- .../Api/Snapshot/RestoreResponse.g.cs | 4 +- .../Client/ElasticsearchClient.Indices.g.cs | 97 -- .../Types/Analysis/EdgeNGramTokenizer.g.cs | 28 +- .../Types/Analysis/NGramTokenizer.g.cs | 28 +- .../_Generated/Types/Enums/Enums.Ingest.g.cs | 70 + .../_Generated/Types/Enums/Enums.Mapping.g.cs | 292 ++++ .../IndexManagement/DataStreamVisibility.g.cs | 15 + .../Types/Ingest/CommunityIDProcessor.g.cs | 1310 +++++++++++++++++ .../Types/Ingest/DateProcessor.g.cs | 47 + .../Types/Ingest/FingerprintProcessor.g.cs | 676 +++++++++ .../Types/Ingest/GrokProcessor.g.cs | 47 + .../_Generated/Types/Ingest/IngestInfo.g.cs | 2 + .../Ingest/NetworkDirectionProcessor.g.cs | 866 +++++++++++ .../_Generated/Types/Ingest/Processor.g.cs | 75 + .../Ingest/Redact.g.cs} | 13 +- .../Types/Ingest/RedactProcessor.g.cs | 44 + .../Ingest/RegisteredDomainProcessor.g.cs | 629 ++++++++ .../Types/Ingest/TerminateProcessor.g.cs | 407 +++++ .../Mapping/DenseVectorIndexOptions.g.cs | 89 +- .../Types/Mapping/DenseVectorProperty.g.cs | 175 ++- .../Types/Nodes/NodeInfoSettingsNetwork.g.cs | 3 +- .../_Generated/Types/Nodes/NodeInfoXpack.g.cs | 2 + .../Types/Nodes/NodeInfoXpackMl.g.cs | 34 + .../Types/Nodes/NodeInfoXpackSecurity.g.cs | 2 +- .../Nodes/NodeInfoXpackSecurityAuthc.g.cs | 4 +- .../Types/Security/IndicesPrivileges.g.cs | 10 +- .../Types/Security/UserIndicesPrivileges.g.cs | 1 - .../_Generated/Types/Xpack/Features.g.cs | 10 - .../Api/Cluster/ClusterStatsRequest.g.cs | 10 +- .../MoveToStepRequest.g.cs | 28 +- .../IndexManagement/ClearCacheResponse.g.cs | 2 +- .../Api/IndexManagement/FlushResponse.g.cs | 2 +- .../IndexManagement/ForcemergeResponse.g.cs | 2 +- .../Api/IndexManagement/RefreshResponse.g.cs | 2 +- .../Api/Inference/PutInferenceResponse.g.cs | 2 +- .../GetBuiltinPrivilegesResponse.g.cs | 3 +- .../Api/Snapshot/RestoreResponse.g.cs | 4 +- .../Types/Analysis/EdgeNGramTokenizer.g.cs | 28 +- .../Types/Analysis/NGramTokenizer.g.cs | 28 +- .../_Generated/Types/Enums/Enums.Ingest.g.cs | 70 + .../_Generated/Types/Enums/Enums.Mapping.g.cs | 292 ++++ .../IndexLifecycleManagement/StepKey.g.cs | 28 +- .../IndexManagement/DataStreamVisibility.g.cs | 15 + .../Types/Inference/InferenceEndpoint.g.cs | 14 +- .../Inference/InferenceEndpointInfo.g.cs | 2 +- .../Types/Ingest/CommunityIDProcessor.g.cs | 1310 +++++++++++++++++ .../Types/Ingest/DateProcessor.g.cs | 47 + .../Types/Ingest/FingerprintProcessor.g.cs | 676 +++++++++ .../Types/Ingest/GrokProcessor.g.cs | 47 + .../Ingest/NetworkDirectionProcessor.g.cs | 866 +++++++++++ .../_Generated/Types/Ingest/Processor.g.cs | 75 + .../Ingest/RegisteredDomainProcessor.g.cs | 629 ++++++++ .../Types/Ingest/TerminateProcessor.g.cs | 407 +++++ .../Mapping/DenseVectorIndexOptions.g.cs | 89 +- .../Types/Mapping/DenseVectorProperty.g.cs | 175 ++- .../Types/Nodes/NodeInfoSettingsNetwork.g.cs | 3 +- .../_Generated/Types/Nodes/NodeInfoXpack.g.cs | 2 + .../Types/Nodes/NodeInfoXpackMl.g.cs | 34 + .../Types/Nodes/NodeInfoXpackSecurity.g.cs | 2 +- .../Nodes/NodeInfoXpackSecurityAuthc.g.cs | 4 +- .../Types/Security/IndicesPrivileges.g.cs | 10 +- .../Security/RemoteIndicesPrivileges.g.cs | 10 +- .../Types/Security/UserIndicesPrivileges.g.cs | 1 - .../_Generated/Types/Xpack/Features.g.cs | 14 +- 72 files changed, 9649 insertions(+), 863 deletions(-) delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/{Api/IndexManagement/PutTemplateResponse.g.cs => Types/Ingest/Redact.g.cs} (78%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs 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 5384356e455..a95353e6107 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs @@ -78,7 +78,6 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" }); internal static ApiUrls IndexManagementPutSettings = new ApiUrls(new[] { "_settings", "{index}/_settings" }); - internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" }); internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" }); internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" }); internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" }); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs index f3ac2f6392f..90fdb724cdb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -33,10 +33,10 @@ public sealed partial class ClusterStatsRequestParameters : RequestParameters { /// /// - /// If true, returns settings in flat format. + /// Include remote cluster data into the response /// /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + public bool? IncludeRemotes { get => Q("include_remotes"); set => Q("include_remotes", value); } /// /// @@ -74,11 +74,11 @@ public ClusterStatsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nod /// /// - /// If true, returns settings in flat format. + /// Include remote cluster data into the response /// /// [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + public bool? IncludeRemotes { get => Q("include_remotes"); set => Q("include_remotes", value); } /// /// @@ -117,7 +117,7 @@ public ClusterStatsRequestDescriptor() internal override string OperationName => "cluster.stats"; - public ClusterStatsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); + public ClusterStatsRequestDescriptor IncludeRemotes(bool? includeRemotes = true) => Qs("include_remotes", includeRemotes); public ClusterStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); public ClusterStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs index e81d3e2bfdf..17ef061beb2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs @@ -29,5 +29,5 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class ClearCacheResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs index cd690796910..687c6c94df6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs @@ -29,5 +29,5 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class FlushResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs index c2c25ee1c05..a26e677edd8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs @@ -29,7 +29,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class ForcemergeResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs deleted file mode 100644 index f1bc42f7dbe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ /dev/null @@ -1,577 +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.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.IndexManagement; - -public sealed partial class PutTemplateRequestParameters : RequestParameters -{ - public string? Cause { get => Q("cause"); set => Q("cause", value); } - - /// - /// - /// If true, this request cannot replace or update existing index templates. - /// - /// - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Create or update an index template. -/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. -/// -/// -public sealed partial class PutTemplateRequest : PlainRequest -{ - public PutTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_template"; - - [JsonIgnore] - public string? Cause { get => Q("cause"); set => Q("cause", value); } - - /// - /// - /// If true, this request cannot replace or update existing index templates. - /// - /// - [JsonIgnore] - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Aliases for the index. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - public IDictionary? Aliases { get; set; } - - /// - /// - /// Array of wildcard expressions used to match the names - /// of indices during creation. - /// - /// - [JsonInclude, JsonPropertyName("index_patterns")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? IndexPatterns { get; set; } - - /// - /// - /// Mapping for fields in the index. - /// - /// - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; set; } - - /// - /// - /// Order in which Elasticsearch applies this template if index - /// matches multiple templates. - /// - /// - /// Templates with lower 'order' values are merged first. Templates with higher - /// 'order' values are merged later, overriding templates with lower values. - /// - /// - [JsonInclude, JsonPropertyName("order")] - public int? Order { get; set; } - - /// - /// - /// Configuration options for the index. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Settings { get; set; } - - /// - /// - /// Version number used to manage index templates externally. This number - /// is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } -} - -/// -/// -/// Create or update an index template. -/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. -/// -/// -public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor, PutTemplateRequestParameters> -{ - internal PutTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_template"; - - public PutTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); - public PutTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public PutTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public PutTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private IDictionary> AliasesValue { get; set; } - private ICollection? IndexPatternsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action> MappingsDescriptorAction { get; set; } - private int? OrderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Aliases for the index. - /// - /// - public PutTemplateRequestDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Array of wildcard expressions used to match the names - /// of indices during creation. - /// - /// - public PutTemplateRequestDescriptor IndexPatterns(ICollection? indexPatterns) - { - IndexPatternsValue = indexPatterns; - return Self; - } - - /// - /// - /// Mapping for fields in the index. - /// - /// - public PutTemplateRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public PutTemplateRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public PutTemplateRequestDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Order in which Elasticsearch applies this template if index - /// matches multiple templates. - /// - /// - /// Templates with lower 'order' values are merged first. Templates with higher - /// 'order' values are merged later, overriding templates with lower values. - /// - /// - public PutTemplateRequestDescriptor Order(int? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// - /// - public PutTemplateRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PutTemplateRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PutTemplateRequestDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage index templates externally. This number - /// is not automatically generated by Elasticsearch. - /// - /// - public PutTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (IndexPatternsValue is not null) - { - writer.WritePropertyName("index_patterns"); - SingleOrManySerializationHelper.Serialize(IndexPatternsValue, writer, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (OrderValue.HasValue) - { - writer.WritePropertyName("order"); - writer.WriteNumberValue(OrderValue.Value); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update an index template. -/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. -/// -/// -public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor -{ - internal PutTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_template"; - - public PutTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); - public PutTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public PutTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public PutTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private IDictionary AliasesValue { get; set; } - private ICollection? IndexPatternsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action MappingsDescriptorAction { get; set; } - private int? OrderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Aliases for the index. - /// - /// - public PutTemplateRequestDescriptor Aliases(Func, FluentDescriptorDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard expressions used to match the names - /// of indices during creation. - /// - /// - public PutTemplateRequestDescriptor IndexPatterns(ICollection? indexPatterns) - { - IndexPatternsValue = indexPatterns; - return Self; - } - - /// - /// - /// Mapping for fields in the index. - /// - /// - public PutTemplateRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public PutTemplateRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public PutTemplateRequestDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Order in which Elasticsearch applies this template if index - /// matches multiple templates. - /// - /// - /// Templates with lower 'order' values are merged first. Templates with higher - /// 'order' values are merged later, overriding templates with lower values. - /// - /// - public PutTemplateRequestDescriptor Order(int? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// - /// - public PutTemplateRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PutTemplateRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PutTemplateRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage index templates externally. This number - /// is not automatically generated by Elasticsearch. - /// - /// - public PutTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (IndexPatternsValue is not null) - { - writer.WritePropertyName("index_patterns"); - SingleOrManySerializationHelper.Serialize(IndexPatternsValue, writer, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (OrderValue.HasValue) - { - writer.WritePropertyName("order"); - writer.WriteNumberValue(OrderValue.Value); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs index 179549b48e9..52956bca56e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs @@ -29,5 +29,5 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class RefreshResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index 36890a6be56..f8523f5be5e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -31,6 +31,5 @@ public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("cluster")] public IReadOnlyCollection Cluster { get; init; } [JsonInclude, JsonPropertyName("index")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Indices { get; init; } + public IReadOnlyCollection Index { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs index aa37bbc1b03..0ee5b1548b6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs @@ -28,6 +28,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; public sealed partial class RestoreResponse : ElasticsearchResponse { + [JsonInclude, JsonPropertyName("accepted")] + public bool? Accepted { get; init; } [JsonInclude, JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotRestore Snapshot { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotRestore? Snapshot { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs index 5d44684be76..7b6acfce7ab 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 @@ -3600,103 +3600,6 @@ public virtual Task PutSettingsAsync(Elastic.Clients return DoRequestAsync(descriptor, cancellationToken); } - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(PutTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutTemplateResponse, PutTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutTemplateResponse, PutTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutTemplateResponse, PutTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - /// /// /// Returns information about ongoing and completed shard recoveries for one or more indices. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs index 41b05db29a7..a4e14124507 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs @@ -32,9 +32,9 @@ public sealed partial class EdgeNGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("custom_token_chars")] public string? CustomTokenChars { get; set; } [JsonInclude, JsonPropertyName("max_gram")] - public int MaxGram { get; set; } + public int? MaxGram { get; set; } [JsonInclude, JsonPropertyName("min_gram")] - public int MinGram { get; set; } + public int? MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] public ICollection? TokenChars { get; set; } @@ -54,8 +54,8 @@ public EdgeNGramTokenizerDescriptor() : base() } private string? CustomTokenCharsValue { get; set; } - private int MaxGramValue { get; set; } - private int MinGramValue { get; set; } + private int? MaxGramValue { get; set; } + private int? MinGramValue { get; set; } private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -65,13 +65,13 @@ public EdgeNGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) return Self; } - public EdgeNGramTokenizerDescriptor MaxGram(int maxGram) + public EdgeNGramTokenizerDescriptor MaxGram(int? maxGram) { MaxGramValue = maxGram; return Self; } - public EdgeNGramTokenizerDescriptor MinGram(int minGram) + public EdgeNGramTokenizerDescriptor MinGram(int? minGram) { MinGramValue = minGram; return Self; @@ -98,10 +98,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(CustomTokenCharsValue); } - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue); - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue); + if (MaxGramValue.HasValue) + { + writer.WritePropertyName("max_gram"); + writer.WriteNumberValue(MaxGramValue.Value); + } + + if (MinGramValue.HasValue) + { + writer.WritePropertyName("min_gram"); + writer.WriteNumberValue(MinGramValue.Value); + } + if (TokenCharsValue is not null) { writer.WritePropertyName("token_chars"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs index 1c685bd6ccf..d0fddb79b9b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs @@ -32,9 +32,9 @@ public sealed partial class NGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("custom_token_chars")] public string? CustomTokenChars { get; set; } [JsonInclude, JsonPropertyName("max_gram")] - public int MaxGram { get; set; } + public int? MaxGram { get; set; } [JsonInclude, JsonPropertyName("min_gram")] - public int MinGram { get; set; } + public int? MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] public ICollection? TokenChars { get; set; } @@ -54,8 +54,8 @@ public NGramTokenizerDescriptor() : base() } private string? CustomTokenCharsValue { get; set; } - private int MaxGramValue { get; set; } - private int MinGramValue { get; set; } + private int? MaxGramValue { get; set; } + private int? MinGramValue { get; set; } private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -65,13 +65,13 @@ public NGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) return Self; } - public NGramTokenizerDescriptor MaxGram(int maxGram) + public NGramTokenizerDescriptor MaxGram(int? maxGram) { MaxGramValue = maxGram; return Self; } - public NGramTokenizerDescriptor MinGram(int minGram) + public NGramTokenizerDescriptor MinGram(int? minGram) { MinGramValue = minGram; return Self; @@ -98,10 +98,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(CustomTokenCharsValue); } - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue); - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue); + if (MaxGramValue.HasValue) + { + writer.WritePropertyName("max_gram"); + writer.WriteNumberValue(MaxGramValue.Value); + } + + if (MinGramValue.HasValue) + { + writer.WritePropertyName("min_gram"); + writer.WriteNumberValue(MinGramValue.Value); + } + if (TokenCharsValue is not null) { writer.WritePropertyName("token_chars"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs index 6d0a3acaabb..81ceefaf2ce 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs @@ -35,6 +35,8 @@ public enum ConvertType String, [EnumMember(Value = "long")] Long, + [EnumMember(Value = "ip")] + Ip, [EnumMember(Value = "integer")] Integer, [EnumMember(Value = "float")] @@ -58,6 +60,8 @@ public override ConvertType Read(ref Utf8JsonReader reader, Type typeToConvert, return ConvertType.String; case "long": return ConvertType.Long; + case "ip": + return ConvertType.Ip; case "integer": return ConvertType.Integer; case "float": @@ -84,6 +88,9 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali case ConvertType.Long: writer.WriteStringValue("long"); return; + case ConvertType.Ip: + writer.WriteStringValue("ip"); + return; case ConvertType.Integer: writer.WriteStringValue("integer"); return; @@ -105,6 +112,69 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali } } +[JsonConverter(typeof(FingerprintDigestConverter))] +public enum FingerprintDigest +{ + [EnumMember(Value = "SHA-512")] + Sha512, + [EnumMember(Value = "SHA-256")] + Sha256, + [EnumMember(Value = "SHA-1")] + Sha1, + [EnumMember(Value = "MurmurHash3")] + Murmurhash3, + [EnumMember(Value = "MD5")] + Md5 +} + +internal sealed class FingerprintDigestConverter : JsonConverter +{ + public override FingerprintDigest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "SHA-512": + return FingerprintDigest.Sha512; + case "SHA-256": + return FingerprintDigest.Sha256; + case "SHA-1": + return FingerprintDigest.Sha1; + case "MurmurHash3": + return FingerprintDigest.Murmurhash3; + case "MD5": + return FingerprintDigest.Md5; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, FingerprintDigest value, JsonSerializerOptions options) + { + switch (value) + { + case FingerprintDigest.Sha512: + writer.WriteStringValue("SHA-512"); + return; + case FingerprintDigest.Sha256: + writer.WriteStringValue("SHA-256"); + return; + case FingerprintDigest.Sha1: + writer.WriteStringValue("SHA-1"); + return; + case FingerprintDigest.Murmurhash3: + writer.WriteStringValue("MurmurHash3"); + return; + case FingerprintDigest.Md5: + writer.WriteStringValue("MD5"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(GeoGridTargetFormatConverter))] public enum GeoGridTargetFormat { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs index 22624d5e068..5fd4dcffbe2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -28,6 +28,298 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; +[JsonConverter(typeof(DenseVectorElementTypeConverter))] +public enum DenseVectorElementType +{ + /// + /// + /// Indexes a 4-byte floating-point value per dimension. + /// + /// + [EnumMember(Value = "float")] + Float, + /// + /// + /// Indexes a 1-byte integer value per dimension. + /// + /// + [EnumMember(Value = "byte")] + Byte, + /// + /// + /// Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support + /// bit vectors. + /// + /// + /// NOTE: when using bit, the number of dimensions must be a multiple of 8 and must represent the number of bits. + /// + /// + [EnumMember(Value = "bit")] + Bit +} + +internal sealed class DenseVectorElementTypeConverter : JsonConverter +{ + public override DenseVectorElementType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "float": + return DenseVectorElementType.Float; + case "byte": + return DenseVectorElementType.Byte; + case "bit": + return DenseVectorElementType.Bit; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorElementType value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorElementType.Float: + writer.WriteStringValue("float"); + return; + case DenseVectorElementType.Byte: + writer.WriteStringValue("byte"); + return; + case DenseVectorElementType.Bit: + writer.WriteStringValue("bit"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DenseVectorIndexOptionsTypeConverter))] +public enum DenseVectorIndexOptionsType +{ + /// + /// + /// The default index type for float vectors. This utilizes the HNSW algorithm in addition to automatically scalar + /// quantization for scalable approximate kNN search with element_type of float. + /// + /// + /// This can reduce the memory footprint by 4x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "int8_hnsw")] + Int8Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports + /// element_type of float. + /// + /// + [EnumMember(Value = "int8_flat")] + Int8Flat, + /// + /// + /// This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN + /// search with element_type of float. + /// + /// + /// This can reduce the memory footprint by 8x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "int4_hnsw")] + Int4Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization. + /// Only supports element_type of float. + /// + /// + [EnumMember(Value = "int4_flat")] + Int4Flat, + /// + /// + /// This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all element_type values. + /// + /// + [EnumMember(Value = "hnsw")] + Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm for exact kNN search. This supports all element_type values. + /// + /// + [EnumMember(Value = "flat")] + Flat +} + +internal sealed class DenseVectorIndexOptionsTypeConverter : JsonConverter +{ + public override DenseVectorIndexOptionsType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "int8_hnsw": + return DenseVectorIndexOptionsType.Int8Hnsw; + case "int8_flat": + return DenseVectorIndexOptionsType.Int8Flat; + case "int4_hnsw": + return DenseVectorIndexOptionsType.Int4Hnsw; + case "int4_flat": + return DenseVectorIndexOptionsType.Int4Flat; + case "hnsw": + return DenseVectorIndexOptionsType.Hnsw; + case "flat": + return DenseVectorIndexOptionsType.Flat; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorIndexOptionsType value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorIndexOptionsType.Int8Hnsw: + writer.WriteStringValue("int8_hnsw"); + return; + case DenseVectorIndexOptionsType.Int8Flat: + writer.WriteStringValue("int8_flat"); + return; + case DenseVectorIndexOptionsType.Int4Hnsw: + writer.WriteStringValue("int4_hnsw"); + return; + case DenseVectorIndexOptionsType.Int4Flat: + writer.WriteStringValue("int4_flat"); + return; + case DenseVectorIndexOptionsType.Hnsw: + writer.WriteStringValue("hnsw"); + return; + case DenseVectorIndexOptionsType.Flat: + writer.WriteStringValue("flat"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DenseVectorSimilarityConverter))] +public enum DenseVectorSimilarity +{ + /// + /// + /// Computes the maximum inner product of two vectors. This is similar to dot_product, but doesn't require vectors + /// to be normalized. This means that each vector’s magnitude can significantly effect the score. + /// + /// + /// The document _score is adjusted to prevent negative values. For max_inner_product values < 0, the _score + /// is 1 / (1 + -1 * max_inner_product(query, vector)). For non-negative max_inner_product results the _score + /// is calculated max_inner_product(query, vector) + 1. + /// + /// + [EnumMember(Value = "max_inner_product")] + MaxInnerProduct, + /// + /// + /// Computes similarity based on the L2 distance (also known as Euclidean distance) between the vectors. + /// + /// + /// The document _score is computed as 1 / (1 + l2_norm(query, vector)^2). + /// + /// + /// For bit vectors, instead of using l2_norm, the hamming distance between the vectors is used. + /// + /// + /// The _score transformation is (numBits - hamming(a, b)) / numBits. + /// + /// + [EnumMember(Value = "l2_norm")] + L2Norm, + /// + /// + /// Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity. + /// The constraints and computed score are defined by element_type. + /// + /// + /// When element_type is float, all vectors must be unit length, including both document and query vectors. + /// + /// + /// The document _score is computed as (1 + dot_product(query, vector)) / 2. + /// + /// + /// When element_type is byte, all vectors must have the same length including both document and query vectors or + /// results will be inaccurate. + /// + /// + /// The document _score is computed as 0.5 + (dot_product(query, vector) / (32768 * dims)) where dims is the + /// number of dimensions per vector. + /// + /// + [EnumMember(Value = "dot_product")] + DotProduct, + /// + /// + /// Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with cosine + /// similarity to unit length. This allows to internally use dot_product for computing similarity, which is more + /// efficient. Original un-normalized vectors can be still accessed through scripts. + /// + /// + /// The document _score is computed as (1 + cosine(query, vector)) / 2. + /// + /// + /// The cosine similarity does not allow vectors with zero magnitude, since cosine is not defined in this case. + /// + /// + [EnumMember(Value = "cosine")] + Cosine +} + +internal sealed class DenseVectorSimilarityConverter : JsonConverter +{ + public override DenseVectorSimilarity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "max_inner_product": + return DenseVectorSimilarity.MaxInnerProduct; + case "l2_norm": + return DenseVectorSimilarity.L2Norm; + case "dot_product": + return DenseVectorSimilarity.DotProduct; + case "cosine": + return DenseVectorSimilarity.Cosine; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorSimilarity value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorSimilarity.MaxInnerProduct: + writer.WriteStringValue("max_inner_product"); + return; + case DenseVectorSimilarity.L2Norm: + writer.WriteStringValue("l2_norm"); + return; + case DenseVectorSimilarity.DotProduct: + writer.WriteStringValue("dot_product"); + return; + case DenseVectorSimilarity.Cosine: + writer.WriteStringValue("cosine"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(DynamicMappingConverter))] public enum DynamicMapping { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs index 8c923b3233a..8cfbd13d9b7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs @@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class DataStreamVisibility { + [JsonInclude, JsonPropertyName("allow_custom_routing")] + public bool? AllowCustomRouting { get; set; } [JsonInclude, JsonPropertyName("hidden")] public bool? Hidden { get; set; } } @@ -41,8 +43,15 @@ public DataStreamVisibilityDescriptor() : base() { } + private bool? AllowCustomRoutingValue { get; set; } private bool? HiddenValue { get; set; } + public DataStreamVisibilityDescriptor AllowCustomRouting(bool? allowCustomRouting = true) + { + AllowCustomRoutingValue = allowCustomRouting; + return Self; + } + public DataStreamVisibilityDescriptor Hidden(bool? hidden = true) { HiddenValue = hidden; @@ -52,6 +61,12 @@ public DataStreamVisibilityDescriptor Hidden(bool? hidden = true) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowCustomRoutingValue.HasValue) + { + writer.WritePropertyName("allow_custom_routing"); + writer.WriteBooleanValue(AllowCustomRoutingValue.Value); + } + if (HiddenValue.HasValue) { writer.WritePropertyName("hidden"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs new file mode 100644 index 00000000000..5bec2b573de --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs @@ -0,0 +1,1310 @@ +// 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.Ingest; + +public sealed partial class CommunityIDProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Field containing the destination IP address. + /// + /// + [JsonInclude, JsonPropertyName("destination_ip")] + public Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIp { get; set; } + + /// + /// + /// Field containing the destination port. + /// + /// + [JsonInclude, JsonPropertyName("destination_port")] + public Elastic.Clients.Elasticsearch.Serverless.Field? DestinationPort { get; set; } + + /// + /// + /// Field containing the IANA number. + /// + /// + [JsonInclude, JsonPropertyName("iana_number")] + public Elastic.Clients.Elasticsearch.Serverless.Field? IanaNumber { get; set; } + + /// + /// + /// Field containing the ICMP code. + /// + /// + [JsonInclude, JsonPropertyName("icmp_code")] + public Elastic.Clients.Elasticsearch.Serverless.Field? IcmpCode { get; set; } + + /// + /// + /// Field containing the ICMP type. + /// + /// + [JsonInclude, JsonPropertyName("icmp_type")] + public Elastic.Clients.Elasticsearch.Serverless.Field? IcmpType { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + /// seed can prevent hash collisions between network domains, such as a staging + /// and production network that use the same addressing scheme. + /// + /// + [JsonInclude, JsonPropertyName("seed")] + public int? Seed { get; set; } + + /// + /// + /// Field containing the source IP address. + /// + /// + [JsonInclude, JsonPropertyName("source_ip")] + public Elastic.Clients.Elasticsearch.Serverless.Field? SourceIp { get; set; } + + /// + /// + /// Field containing the source port. + /// + /// + [JsonInclude, JsonPropertyName("source_port")] + public Elastic.Clients.Elasticsearch.Serverless.Field? SourcePort { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Output field for the community ID. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + [JsonInclude, JsonPropertyName("transport")] + public Elastic.Clients.Elasticsearch.Serverless.Field? Transport { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(CommunityIDProcessor communityIDProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.CommunityId(communityIDProcessor); +} + +public sealed partial class CommunityIDProcessorDescriptor : SerializableDescriptor> +{ + internal CommunityIDProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public CommunityIDProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationPortValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? IanaNumberValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpCodeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpTypeValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private int? SeedValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? SourcePortValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TransportValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public CommunityIDProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Elastic.Clients.Elasticsearch.Serverless.Field? destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Elastic.Clients.Elasticsearch.Serverless.Field? ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Elastic.Clients.Elasticsearch.Serverless.Field? icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Elastic.Clients.Elasticsearch.Serverless.Field? icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public CommunityIDProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public CommunityIDProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + /// seed can prevent hash collisions between network domains, such as a staging + /// and production network that use the same addressing scheme. + /// + /// + public CommunityIDProcessorDescriptor Seed(int? seed) + { + SeedValue = seed; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Elastic.Clients.Elasticsearch.Serverless.Field? sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public CommunityIDProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Elastic.Clients.Elasticsearch.Serverless.Field? transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (DestinationPortValue is not null) + { + writer.WritePropertyName("destination_port"); + JsonSerializer.Serialize(writer, DestinationPortValue, options); + } + + if (IanaNumberValue is not null) + { + writer.WritePropertyName("iana_number"); + JsonSerializer.Serialize(writer, IanaNumberValue, options); + } + + if (IcmpCodeValue is not null) + { + writer.WritePropertyName("icmp_code"); + JsonSerializer.Serialize(writer, IcmpCodeValue, options); + } + + if (IcmpTypeValue is not null) + { + writer.WritePropertyName("icmp_type"); + JsonSerializer.Serialize(writer, IcmpTypeValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SeedValue.HasValue) + { + writer.WritePropertyName("seed"); + writer.WriteNumberValue(SeedValue.Value); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (SourcePortValue is not null) + { + writer.WritePropertyName("source_port"); + JsonSerializer.Serialize(writer, SourcePortValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TransportValue is not null) + { + writer.WritePropertyName("transport"); + JsonSerializer.Serialize(writer, TransportValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class CommunityIDProcessorDescriptor : SerializableDescriptor +{ + internal CommunityIDProcessorDescriptor(Action configure) => configure.Invoke(this); + + public CommunityIDProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationPortValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? IanaNumberValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpCodeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpTypeValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private int? SeedValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? SourcePortValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TransportValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public CommunityIDProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Elastic.Clients.Elasticsearch.Serverless.Field? destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Elastic.Clients.Elasticsearch.Serverless.Field? ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Elastic.Clients.Elasticsearch.Serverless.Field? icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Elastic.Clients.Elasticsearch.Serverless.Field? icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public CommunityIDProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public CommunityIDProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + /// seed can prevent hash collisions between network domains, such as a staging + /// and production network that use the same addressing scheme. + /// + /// + public CommunityIDProcessorDescriptor Seed(int? seed) + { + SeedValue = seed; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Elastic.Clients.Elasticsearch.Serverless.Field? sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public CommunityIDProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Elastic.Clients.Elasticsearch.Serverless.Field? transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (DestinationPortValue is not null) + { + writer.WritePropertyName("destination_port"); + JsonSerializer.Serialize(writer, DestinationPortValue, options); + } + + if (IanaNumberValue is not null) + { + writer.WritePropertyName("iana_number"); + JsonSerializer.Serialize(writer, IanaNumberValue, options); + } + + if (IcmpCodeValue is not null) + { + writer.WritePropertyName("icmp_code"); + JsonSerializer.Serialize(writer, IcmpCodeValue, options); + } + + if (IcmpTypeValue is not null) + { + writer.WritePropertyName("icmp_type"); + JsonSerializer.Serialize(writer, IcmpTypeValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SeedValue.HasValue) + { + writer.WritePropertyName("seed"); + writer.WriteNumberValue(SeedValue.Value); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (SourcePortValue is not null) + { + writer.WritePropertyName("source_port"); + JsonSerializer.Serialize(writer, SourcePortValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TransportValue is not null) + { + writer.WritePropertyName("transport"); + JsonSerializer.Serialize(writer, TransportValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs index 667ad4196c0..4119d07eea1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs @@ -88,6 +88,15 @@ public sealed partial class DateProcessor [JsonInclude, JsonPropertyName("on_failure")] public ICollection? OnFailure { get; set; } + /// + /// + /// The format to use when writing the date to target_field. Must be a valid + /// java time pattern. + /// + /// + [JsonInclude, JsonPropertyName("output_format")] + public string? OutputFormat { get; set; } + /// /// /// Identifier for the processor. @@ -135,6 +144,7 @@ public DateProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action> OnFailureDescriptorAction { get; set; } private Action>[] OnFailureDescriptorActions { get; set; } + private string? OutputFormatValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } private string? TimezoneValue { get; set; } @@ -271,6 +281,18 @@ public DateProcessorDescriptor OnFailure(params Action + /// + /// The format to use when writing the date to target_field. Must be a valid + /// java time pattern. + /// + /// + public DateProcessorDescriptor OutputFormat(string? outputFormat) + { + OutputFormatValue = outputFormat; + return Self; + } + /// /// /// Identifier for the processor. @@ -390,6 +412,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (!string.IsNullOrEmpty(OutputFormatValue)) + { + writer.WritePropertyName("output_format"); + writer.WriteStringValue(OutputFormatValue); + } + if (!string.IsNullOrEmpty(TagValue)) { writer.WritePropertyName("tag"); @@ -430,6 +458,7 @@ public DateProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action OnFailureDescriptorAction { get; set; } private Action[] OnFailureDescriptorActions { get; set; } + private string? OutputFormatValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } private string? TimezoneValue { get; set; } @@ -566,6 +595,18 @@ public DateProcessorDescriptor OnFailure(params Action + /// + /// The format to use when writing the date to target_field. Must be a valid + /// java time pattern. + /// + /// + public DateProcessorDescriptor OutputFormat(string? outputFormat) + { + OutputFormatValue = outputFormat; + return Self; + } + /// /// /// Identifier for the processor. @@ -685,6 +726,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (!string.IsNullOrEmpty(OutputFormatValue)) + { + writer.WritePropertyName("output_format"); + writer.WriteStringValue(OutputFormatValue); + } + if (!string.IsNullOrEmpty(TagValue)) { writer.WritePropertyName("tag"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs new file mode 100644 index 00000000000..810dbfa3704 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs @@ -0,0 +1,676 @@ +// 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.Ingest; + +public sealed partial class FingerprintProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Array of fields to include in the fingerprint. For objects, the processor + /// hashes both the field key and value. For other fields, the processor hashes + /// only the field value. + /// + /// + [JsonInclude, JsonPropertyName("fields")] + [JsonConverter(typeof(SingleOrManyFieldsConverter))] + public Elastic.Clients.Elasticsearch.Serverless.Fields Fields { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true, the processor ignores any missing fields. If all fields are + /// missing, the processor silently exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + /// SHA-256, SHA-512, or MurmurHash3. + /// + /// + [JsonInclude, JsonPropertyName("method")] + public Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? Method { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Salt value for the hash function. + /// + /// + [JsonInclude, JsonPropertyName("salt")] + public string? Salt { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Output field for the fingerprint. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(FingerprintProcessor fingerprintProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Fingerprint(fingerprintProcessor); +} + +public sealed partial class FingerprintProcessorDescriptor : SerializableDescriptor> +{ + internal FingerprintProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public FingerprintProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Fields FieldsValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? MethodValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private string? SaltValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public FingerprintProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Array of fields to include in the fingerprint. For objects, the processor + /// hashes both the field key and value. For other fields, the processor hashes + /// only the field value. + /// + /// + public FingerprintProcessorDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields fields) + { + FieldsValue = fields; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public FingerprintProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public FingerprintProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true, the processor ignores any missing fields. If all fields are + /// missing, the processor silently exits without modifying the document. + /// + /// + public FingerprintProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + /// SHA-256, SHA-512, or MurmurHash3. + /// + /// + public FingerprintProcessorDescriptor Method(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? method) + { + MethodValue = method; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public FingerprintProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Salt value for the hash function. + /// + /// + public FingerprintProcessorDescriptor Salt(string? salt) + { + SaltValue = salt; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public FingerprintProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (MethodValue is not null) + { + writer.WritePropertyName("method"); + JsonSerializer.Serialize(writer, MethodValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(SaltValue)) + { + writer.WritePropertyName("salt"); + writer.WriteStringValue(SaltValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class FingerprintProcessorDescriptor : SerializableDescriptor +{ + internal FingerprintProcessorDescriptor(Action configure) => configure.Invoke(this); + + public FingerprintProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Fields FieldsValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? MethodValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private string? SaltValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public FingerprintProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Array of fields to include in the fingerprint. For objects, the processor + /// hashes both the field key and value. For other fields, the processor hashes + /// only the field value. + /// + /// + public FingerprintProcessorDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields fields) + { + FieldsValue = fields; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public FingerprintProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public FingerprintProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true, the processor ignores any missing fields. If all fields are + /// missing, the processor silently exits without modifying the document. + /// + /// + public FingerprintProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + /// SHA-256, SHA-512, or MurmurHash3. + /// + /// + public FingerprintProcessorDescriptor Method(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? method) + { + MethodValue = method; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public FingerprintProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Salt value for the hash function. + /// + /// + public FingerprintProcessorDescriptor Salt(string? salt) + { + SaltValue = salt; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public FingerprintProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (MethodValue is not null) + { + writer.WritePropertyName("method"); + JsonSerializer.Serialize(writer, MethodValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(SaltValue)) + { + writer.WritePropertyName("salt"); + writer.WriteStringValue(SaltValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs index c9ef8ec6fe7..4a802178b76 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs @@ -38,6 +38,15 @@ public sealed partial class GrokProcessor [JsonInclude, JsonPropertyName("description")] public string? Description { get; set; } + /// + /// + /// Must be disabled or v1. If v1, the processor uses patterns with Elastic + /// Common Schema (ECS) field names. + /// + /// + [JsonInclude, JsonPropertyName("ecs_compatibility")] + public string? EcsCompatibility { get; set; } + /// /// /// The field to use for grok expression parsing. @@ -125,6 +134,7 @@ public GrokProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private string? EcsCompatibilityValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -150,6 +160,18 @@ public GrokProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Must be disabled or v1. If v1, the processor uses patterns with Elastic + /// Common Schema (ECS) field names. + /// + /// + public GrokProcessorDescriptor EcsCompatibility(string? ecsCompatibility) + { + EcsCompatibilityValue = ecsCompatibility; + return Self; + } + /// /// /// The field to use for grok expression parsing. @@ -313,6 +335,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (!string.IsNullOrEmpty(EcsCompatibilityValue)) + { + writer.WritePropertyName("ecs_compatibility"); + writer.WriteStringValue(EcsCompatibilityValue); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) @@ -397,6 +425,7 @@ public GrokProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private string? EcsCompatibilityValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -422,6 +451,18 @@ public GrokProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Must be disabled or v1. If v1, the processor uses patterns with Elastic + /// Common Schema (ECS) field names. + /// + /// + public GrokProcessorDescriptor EcsCompatibility(string? ecsCompatibility) + { + EcsCompatibilityValue = ecsCompatibility; + return Self; + } + /// /// /// The field to use for grok expression parsing. @@ -585,6 +626,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (!string.IsNullOrEmpty(EcsCompatibilityValue)) + { + writer.WritePropertyName("ecs_compatibility"); + writer.WriteStringValue(EcsCompatibilityValue); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs index 781268c19f2..121ef723da6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs @@ -31,6 +31,8 @@ public sealed partial class IngestInfo { [JsonInclude, JsonPropertyName("pipeline")] public string? Pipeline { get; init; } + [JsonInclude, JsonPropertyName("_redact")] + public Elastic.Clients.Elasticsearch.Serverless.Ingest.Redact? Redact { get; init; } [JsonInclude, JsonPropertyName("timestamp")] public DateTimeOffset Timestamp { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs new file mode 100644 index 00000000000..4f17825cabc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs @@ -0,0 +1,866 @@ +// 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.Ingest; + +public sealed partial class NetworkDirectionProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Field containing the destination IP address. + /// + /// + [JsonInclude, JsonPropertyName("destination_ip")] + public Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIp { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + /// CIDR notation. Also supports the named ranges listed below. These may be + /// constructed with template snippets. Must specify only one of + /// internal_networks or internal_networks_field. + /// + /// + [JsonInclude, JsonPropertyName("internal_networks")] + public ICollection? InternalNetworks { get; set; } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + [JsonInclude, JsonPropertyName("internal_networks_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? InternalNetworksField { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Field containing the source IP address. + /// + /// + [JsonInclude, JsonPropertyName("source_ip")] + public Elastic.Clients.Elasticsearch.Serverless.Field? SourceIp { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Output field for the network direction. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(NetworkDirectionProcessor networkDirectionProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.NetworkDirection(networkDirectionProcessor); +} + +public sealed partial class NetworkDirectionProcessorDescriptor : SerializableDescriptor> +{ + internal NetworkDirectionProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public NetworkDirectionProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? InternalNetworksValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? InternalNetworksFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public NetworkDirectionProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public NetworkDirectionProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + /// CIDR notation. Also supports the named ranges listed below. These may be + /// constructed with template snippets. Must specify only one of + /// internal_networks or internal_networks_field. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworks(ICollection? internalNetworks) + { + InternalNetworksValue = internalNetworks; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Elastic.Clients.Elasticsearch.Serverless.Field? internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public NetworkDirectionProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (InternalNetworksValue is not null) + { + writer.WritePropertyName("internal_networks"); + JsonSerializer.Serialize(writer, InternalNetworksValue, options); + } + + if (InternalNetworksFieldValue is not null) + { + writer.WritePropertyName("internal_networks_field"); + JsonSerializer.Serialize(writer, InternalNetworksFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class NetworkDirectionProcessorDescriptor : SerializableDescriptor +{ + internal NetworkDirectionProcessorDescriptor(Action configure) => configure.Invoke(this); + + public NetworkDirectionProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? InternalNetworksValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? InternalNetworksFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public NetworkDirectionProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public NetworkDirectionProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + /// CIDR notation. Also supports the named ranges listed below. These may be + /// constructed with template snippets. Must specify only one of + /// internal_networks or internal_networks_field. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworks(ICollection? internalNetworks) + { + InternalNetworksValue = internalNetworks; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Elastic.Clients.Elasticsearch.Serverless.Field? internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public NetworkDirectionProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (InternalNetworksValue is not null) + { + writer.WritePropertyName("internal_networks"); + JsonSerializer.Serialize(writer, InternalNetworksValue, options); + } + + if (InternalNetworksFieldValue is not null) + { + writer.WritePropertyName("internal_networks_field"); + JsonSerializer.Serialize(writer, InternalNetworksFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs index e55af2cc02a..a9e21af1863 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs @@ -50,6 +50,7 @@ internal Processor(string variantName, object variant) public static Processor Attachment(Elastic.Clients.Elasticsearch.Serverless.Ingest.AttachmentProcessor attachmentProcessor) => new Processor("attachment", attachmentProcessor); public static Processor Bytes(Elastic.Clients.Elasticsearch.Serverless.Ingest.BytesProcessor bytesProcessor) => new Processor("bytes", bytesProcessor); public static Processor Circle(Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor circleProcessor) => new Processor("circle", circleProcessor); + public static Processor CommunityId(Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor communityIDProcessor) => new Processor("community_id", communityIDProcessor); public static Processor Convert(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor convertProcessor) => new Processor("convert", convertProcessor); public static Processor Csv(Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor csvProcessor) => new Processor("csv", csvProcessor); public static Processor Date(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateProcessor dateProcessor) => new Processor("date", dateProcessor); @@ -59,6 +60,7 @@ internal Processor(string variantName, object variant) public static Processor Drop(Elastic.Clients.Elasticsearch.Serverless.Ingest.DropProcessor dropProcessor) => new Processor("drop", dropProcessor); public static Processor Enrich(Elastic.Clients.Elasticsearch.Serverless.Ingest.EnrichProcessor enrichProcessor) => new Processor("enrich", enrichProcessor); public static Processor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => new Processor("fail", failProcessor); + public static Processor Fingerprint(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor fingerprintProcessor) => new Processor("fingerprint", fingerprintProcessor); public static Processor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => new Processor("foreach", foreachProcessor); public static Processor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => new Processor("geo_grid", geoGridProcessor); public static Processor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => new Processor("geoip", geoIpProcessor); @@ -70,8 +72,10 @@ internal Processor(string variantName, object variant) public static Processor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => new Processor("json", jsonProcessor); public static Processor Kv(Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); public static Processor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => new Processor("lowercase", lowercaseProcessor); + public static Processor NetworkDirection(Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => new Processor("network_direction", networkDirectionProcessor); public static Processor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => new Processor("pipeline", pipelineProcessor); public static Processor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => new Processor("redact", redactProcessor); + public static Processor RegisteredDomain(Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => new Processor("registered_domain", registeredDomainProcessor); public static Processor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => new Processor("remove", removeProcessor); public static Processor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => new Processor("rename", renameProcessor); public static Processor Reroute(Elastic.Clients.Elasticsearch.Serverless.Ingest.RerouteProcessor rerouteProcessor) => new Processor("reroute", rerouteProcessor); @@ -80,6 +84,7 @@ internal Processor(string variantName, object variant) public static Processor SetSecurityUser(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetSecurityUserProcessor setSecurityUserProcessor) => new Processor("set_security_user", setSecurityUserProcessor); public static Processor Sort(Elastic.Clients.Elasticsearch.Serverless.Ingest.SortProcessor sortProcessor) => new Processor("sort", sortProcessor); public static Processor Split(Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor splitProcessor) => new Processor("split", splitProcessor); + public static Processor Terminate(Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor terminateProcessor) => new Processor("terminate", terminateProcessor); public static Processor Trim(Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor trimProcessor) => new Processor("trim", trimProcessor); public static Processor Uppercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor uppercaseProcessor) => new Processor("uppercase", uppercaseProcessor); public static Processor UriParts(Elastic.Clients.Elasticsearch.Serverless.Ingest.UriPartsProcessor uriPartsProcessor) => new Processor("uri_parts", uriPartsProcessor); @@ -152,6 +157,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "community_id") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "convert") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -215,6 +227,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "fingerprint") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "foreach") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -292,6 +311,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "network_direction") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "pipeline") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -306,6 +332,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "registered_domain") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "remove") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -362,6 +395,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "terminate") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "trim") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -424,6 +464,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "circle": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor)value.Variant, options); break; + case "community_id": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor)value.Variant, options); + break; case "convert": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor)value.Variant, options); break; @@ -451,6 +494,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "fail": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor)value.Variant, options); break; + case "fingerprint": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor)value.Variant, options); + break; case "foreach": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor)value.Variant, options); break; @@ -484,12 +530,18 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "lowercase": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor)value.Variant, options); break; + case "network_direction": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor)value.Variant, options); + break; case "pipeline": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor)value.Variant, options); break; case "redact": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor)value.Variant, options); break; + case "registered_domain": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor)value.Variant, options); + break; case "remove": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor)value.Variant, options); break; @@ -514,6 +566,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "split": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor)value.Variant, options); break; + case "terminate": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor)value.Variant, options); + break; case "trim": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor)value.Variant, options); break; @@ -575,6 +630,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Bytes(Action> configure) => Set(configure, "bytes"); public ProcessorDescriptor Circle(Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor circleProcessor) => Set(circleProcessor, "circle"); public ProcessorDescriptor Circle(Action> configure) => Set(configure, "circle"); + public ProcessorDescriptor CommunityId(Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor communityIDProcessor) => Set(communityIDProcessor, "community_id"); + public ProcessorDescriptor CommunityId(Action> configure) => Set(configure, "community_id"); public ProcessorDescriptor Convert(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor convertProcessor) => Set(convertProcessor, "convert"); public ProcessorDescriptor Convert(Action> configure) => Set(configure, "convert"); public ProcessorDescriptor Csv(Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor csvProcessor) => Set(csvProcessor, "csv"); @@ -593,6 +650,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Enrich(Action> configure) => Set(configure, "enrich"); public ProcessorDescriptor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => Set(failProcessor, "fail"); public ProcessorDescriptor Fail(Action> configure) => Set(configure, "fail"); + public ProcessorDescriptor Fingerprint(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor fingerprintProcessor) => Set(fingerprintProcessor, "fingerprint"); + public ProcessorDescriptor Fingerprint(Action> configure) => Set(configure, "fingerprint"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action> configure) => Set(configure, "foreach"); public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); @@ -615,10 +674,14 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Kv(Action> configure) => Set(configure, "kv"); public ProcessorDescriptor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => Set(lowercaseProcessor, "lowercase"); public ProcessorDescriptor Lowercase(Action> configure) => Set(configure, "lowercase"); + public ProcessorDescriptor NetworkDirection(Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => Set(networkDirectionProcessor, "network_direction"); + public ProcessorDescriptor NetworkDirection(Action> configure) => Set(configure, "network_direction"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action> configure) => Set(configure, "pipeline"); public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); public ProcessorDescriptor Redact(Action> configure) => Set(configure, "redact"); + public ProcessorDescriptor RegisteredDomain(Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => Set(registeredDomainProcessor, "registered_domain"); + public ProcessorDescriptor RegisteredDomain(Action> configure) => Set(configure, "registered_domain"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action> configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); @@ -635,6 +698,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Sort(Action> configure) => Set(configure, "sort"); public ProcessorDescriptor Split(Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor splitProcessor) => Set(splitProcessor, "split"); public ProcessorDescriptor Split(Action> configure) => Set(configure, "split"); + public ProcessorDescriptor Terminate(Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor terminateProcessor) => Set(terminateProcessor, "terminate"); + public ProcessorDescriptor Terminate(Action> configure) => Set(configure, "terminate"); public ProcessorDescriptor Trim(Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor trimProcessor) => Set(trimProcessor, "trim"); public ProcessorDescriptor Trim(Action> configure) => Set(configure, "trim"); public ProcessorDescriptor Uppercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor uppercaseProcessor) => Set(uppercaseProcessor, "uppercase"); @@ -705,6 +770,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Bytes(Action configure) => Set(configure, "bytes"); public ProcessorDescriptor Circle(Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor circleProcessor) => Set(circleProcessor, "circle"); public ProcessorDescriptor Circle(Action configure) => Set(configure, "circle"); + public ProcessorDescriptor CommunityId(Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor communityIDProcessor) => Set(communityIDProcessor, "community_id"); + public ProcessorDescriptor CommunityId(Action configure) => Set(configure, "community_id"); public ProcessorDescriptor Convert(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor convertProcessor) => Set(convertProcessor, "convert"); public ProcessorDescriptor Convert(Action configure) => Set(configure, "convert"); public ProcessorDescriptor Csv(Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor csvProcessor) => Set(csvProcessor, "csv"); @@ -723,6 +790,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Enrich(Action configure) => Set(configure, "enrich"); public ProcessorDescriptor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => Set(failProcessor, "fail"); public ProcessorDescriptor Fail(Action configure) => Set(configure, "fail"); + public ProcessorDescriptor Fingerprint(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor fingerprintProcessor) => Set(fingerprintProcessor, "fingerprint"); + public ProcessorDescriptor Fingerprint(Action configure) => Set(configure, "fingerprint"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action configure) => Set(configure, "foreach"); public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); @@ -745,10 +814,14 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Kv(Action configure) => Set(configure, "kv"); public ProcessorDescriptor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => Set(lowercaseProcessor, "lowercase"); public ProcessorDescriptor Lowercase(Action configure) => Set(configure, "lowercase"); + public ProcessorDescriptor NetworkDirection(Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => Set(networkDirectionProcessor, "network_direction"); + public ProcessorDescriptor NetworkDirection(Action configure) => Set(configure, "network_direction"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action configure) => Set(configure, "pipeline"); public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); public ProcessorDescriptor Redact(Action configure) => Set(configure, "redact"); + public ProcessorDescriptor RegisteredDomain(Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => Set(registeredDomainProcessor, "registered_domain"); + public ProcessorDescriptor RegisteredDomain(Action configure) => Set(configure, "registered_domain"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); @@ -765,6 +838,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Sort(Action configure) => Set(configure, "sort"); public ProcessorDescriptor Split(Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor splitProcessor) => Set(splitProcessor, "split"); public ProcessorDescriptor Split(Action configure) => Set(configure, "split"); + public ProcessorDescriptor Terminate(Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor terminateProcessor) => Set(terminateProcessor, "terminate"); + public ProcessorDescriptor Terminate(Action configure) => Set(configure, "terminate"); public ProcessorDescriptor Trim(Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor trimProcessor) => Set(trimProcessor, "trim"); public ProcessorDescriptor Trim(Action configure) => Set(configure, "trim"); public ProcessorDescriptor Uppercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor uppercaseProcessor) => Set(uppercaseProcessor, "uppercase"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs similarity index 78% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs index 569d178560f..ab6867a45e6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs @@ -19,20 +19,21 @@ 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.Linq.Expressions; +using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; -public sealed partial class PutTemplateResponse : ElasticsearchResponse +public sealed partial class Redact { /// /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// indicates if document has been redacted /// /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } + [JsonInclude, JsonPropertyName("_is_redacted")] + public bool IsRedacted { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs index 34389a4e009..3fd46a7ab96 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs @@ -121,6 +121,14 @@ public sealed partial class RedactProcessor [JsonInclude, JsonPropertyName("tag")] public string? Tag { get; set; } + /// + /// + /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted + /// + /// + [JsonInclude, JsonPropertyName("trace_redact")] + public bool? TraceRedact { get; set; } + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RedactProcessor redactProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Redact(redactProcessor); } @@ -147,6 +155,7 @@ public RedactProcessorDescriptor() : base() private bool? SkipIfUnlicensedValue { get; set; } private string? SuffixValue { get; set; } private string? TagValue { get; set; } + private bool? TraceRedactValue { get; set; } /// /// @@ -329,6 +338,17 @@ public RedactProcessorDescriptor Tag(string? tag) return Self; } + /// + /// + /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted + /// + /// + public RedactProcessorDescriptor TraceRedact(bool? traceRedact = true) + { + TraceRedactValue = traceRedact; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -421,6 +441,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TagValue); } + if (TraceRedactValue.HasValue) + { + writer.WritePropertyName("trace_redact"); + writer.WriteBooleanValue(TraceRedactValue.Value); + } + writer.WriteEndObject(); } } @@ -448,6 +474,7 @@ public RedactProcessorDescriptor() : base() private bool? SkipIfUnlicensedValue { get; set; } private string? SuffixValue { get; set; } private string? TagValue { get; set; } + private bool? TraceRedactValue { get; set; } /// /// @@ -630,6 +657,17 @@ public RedactProcessorDescriptor Tag(string? tag) return Self; } + /// + /// + /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted + /// + /// + public RedactProcessorDescriptor TraceRedact(bool? traceRedact = true) + { + TraceRedactValue = traceRedact; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -722,6 +760,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TagValue); } + if (TraceRedactValue.HasValue) + { + writer.WritePropertyName("trace_redact"); + writer.WriteBooleanValue(TraceRedactValue.Value); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs new file mode 100644 index 00000000000..5edced6ebd3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs @@ -0,0 +1,629 @@ +// 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.Ingest; + +public sealed partial class RegisteredDomainProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Field containing the source FQDN. + /// + /// + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RegisteredDomainProcessor registeredDomainProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.RegisteredDomain(registeredDomainProcessor); +} + +public sealed partial class RegisteredDomainProcessorDescriptor : SerializableDescriptor> +{ + internal RegisteredDomainProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public RegisteredDomainProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RegisteredDomainProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RegisteredDomainProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RegisteredDomainProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class RegisteredDomainProcessorDescriptor : SerializableDescriptor +{ + internal RegisteredDomainProcessorDescriptor(Action configure) => configure.Invoke(this); + + public RegisteredDomainProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RegisteredDomainProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RegisteredDomainProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RegisteredDomainProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs new file mode 100644 index 00000000000..70b2df4e941 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs @@ -0,0 +1,407 @@ +// 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.Ingest; + +public sealed partial class TerminateProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(TerminateProcessor terminateProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Terminate(terminateProcessor); +} + +public sealed partial class TerminateProcessorDescriptor : SerializableDescriptor> +{ + internal TerminateProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public TerminateProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public TerminateProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public TerminateProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public TerminateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public TerminateProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public TerminateProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class TerminateProcessorDescriptor : SerializableDescriptor +{ + internal TerminateProcessorDescriptor(Action configure) => configure.Invoke(this); + + public TerminateProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public TerminateProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public TerminateProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public TerminateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public TerminateProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public TerminateProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file 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 4e08844157d..46d3cd22aa6 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,14 +29,56 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; public sealed partial class DenseVectorIndexOptions { + /// + /// + /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and + /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for + /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating + /// the quantization thresholds. + /// + /// + /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization + /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). + /// + /// + /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. + /// + /// + /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. + /// + /// [JsonInclude, JsonPropertyName("confidence_interval")] public float? ConfidenceInterval { get; set; } + + /// + /// + /// The number of candidates to track while assembling the list of nearest neighbors for each new node. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// [JsonInclude, JsonPropertyName("ef_construction")] public int? EfConstruction { get; set; } + + /// + /// + /// The number of neighbors each node will be connected to in the HNSW graph. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// [JsonInclude, JsonPropertyName("m")] public int? m { get; set; } + + /// + /// + /// The type of kNN algorithm to use. + /// + /// [JsonInclude, JsonPropertyName("type")] - public string Type { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsType Type { get; set; } } public sealed partial class DenseVectorIndexOptionsDescriptor : SerializableDescriptor @@ -50,27 +92,66 @@ public DenseVectorIndexOptionsDescriptor() : base() private float? ConfidenceIntervalValue { get; set; } private int? EfConstructionValue { get; set; } private int? mValue { get; set; } - private string TypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsType TypeValue { get; set; } + /// + /// + /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and + /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for + /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating + /// the quantization thresholds. + /// + /// + /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization + /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). + /// + /// + /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. + /// + /// + /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. + /// + /// public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInterval) { ConfidenceIntervalValue = confidenceInterval; return Self; } + /// + /// + /// The number of candidates to track while assembling the list of nearest neighbors for each new node. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) { EfConstructionValue = efConstruction; return Self; } + /// + /// + /// The number of neighbors each node will be connected to in the HNSW graph. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// public DenseVectorIndexOptionsDescriptor m(int? m) { mValue = m; return Self; } - public DenseVectorIndexOptionsDescriptor Type(string type) + /// + /// + /// The type of kNN algorithm to use. + /// + /// + public DenseVectorIndexOptionsDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsType type) { TypeValue = type; return Self; @@ -98,7 +179,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); + JsonSerializer.Serialize(writer, TypeValue, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs index 489ed9e9c6e..dbf11217d64 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs @@ -29,18 +29,47 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; public sealed partial class DenseVectorProperty : IProperty { + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// [JsonInclude, JsonPropertyName("dims")] public int? Dims { get; set; } [JsonInclude, JsonPropertyName("dynamic")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } + + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// [JsonInclude, JsonPropertyName("element_type")] - public string? ElementType { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? ElementType { get; set; } [JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } [JsonInclude, JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } + + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// [JsonInclude, JsonPropertyName("index")] public bool? Index { get; set; } + + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// [JsonInclude, JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? IndexOptions { get; set; } @@ -53,8 +82,28 @@ public sealed partial class DenseVectorProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } + + /// + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? Similarity { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "dense_vector"; @@ -70,7 +119,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private string? ElementTypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -79,8 +128,14 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -93,7 +148,12 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elastics return Self; } - public DenseVectorPropertyDescriptor ElementType(string? elementType) + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// + public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? elementType) { ElementTypeValue = elementType; return Self; @@ -125,12 +185,27 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -186,7 +261,26 @@ public DenseVectorPropertyDescriptor Properties(Action Similarity(string? similarity) + /// + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// + public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? similarity) { SimilarityValue = similarity; return Self; @@ -207,10 +301,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (!string.IsNullOrEmpty(ElementTypeValue)) + if (ElementTypeValue is not null) { writer.WritePropertyName("element_type"); - writer.WriteStringValue(ElementTypeValue); + JsonSerializer.Serialize(writer, ElementTypeValue, options); } if (FieldsValue is not null) @@ -259,10 +353,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) + if (SimilarityValue is not null) { writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); + JsonSerializer.Serialize(writer, SimilarityValue, options); } writer.WritePropertyName("type"); @@ -319,7 +413,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private string? ElementTypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -328,8 +422,14 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -342,7 +442,12 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serve return Self; } - public DenseVectorPropertyDescriptor ElementType(string? elementType) + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// + public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? elementType) { ElementTypeValue = elementType; return Self; @@ -374,12 +479,27 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -435,7 +555,26 @@ public DenseVectorPropertyDescriptor Properties(Action + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// + public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? similarity) { SimilarityValue = similarity; return Self; @@ -456,10 +595,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (!string.IsNullOrEmpty(ElementTypeValue)) + if (ElementTypeValue is not null) { writer.WritePropertyName("element_type"); - writer.WriteStringValue(ElementTypeValue); + JsonSerializer.Serialize(writer, ElementTypeValue, options); } if (FieldsValue is not null) @@ -508,10 +647,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) + if (SimilarityValue is not null) { writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); + JsonSerializer.Serialize(writer, SimilarityValue, options); } writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs index 842fbf686d3..f845950e3bb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs @@ -30,5 +30,6 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; public sealed partial class NodeInfoSettingsNetwork { [JsonInclude, JsonPropertyName("host")] - public string? Host { get; init; } + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection? Host { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs index d987cbd663c..5e6d49c491c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs @@ -31,6 +31,8 @@ public sealed partial class NodeInfoXpack { [JsonInclude, JsonPropertyName("license")] public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackLicense? License { get; init; } + [JsonInclude, JsonPropertyName("ml")] + public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackMl? Ml { get; init; } [JsonInclude, JsonPropertyName("notification")] public IReadOnlyDictionary? Notification { get; init; } [JsonInclude, JsonPropertyName("security")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs new file mode 100644 index 00000000000..0d47e32199a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs @@ -0,0 +1,34 @@ +// 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.Nodes; + +public sealed partial class NodeInfoXpackMl +{ + [JsonInclude, JsonPropertyName("use_auto_machine_memory_percent")] + public bool? UseAutoMachineMemoryPercent { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs index e704f5da446..52f87efcbca 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs @@ -34,7 +34,7 @@ public sealed partial class NodeInfoXpackSecurity [JsonInclude, JsonPropertyName("enabled")] public string Enabled { get; init; } [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecuritySsl Http { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecuritySsl? Http { get; init; } [JsonInclude, JsonPropertyName("transport")] public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecuritySsl? Transport { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs index 400a86e016a..4926312fafa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; public sealed partial class NodeInfoXpackSecurityAuthc { [JsonInclude, JsonPropertyName("realms")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthcRealms Realms { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthcRealms? Realms { get; init; } [JsonInclude, JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthcToken Token { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthcToken? Token { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs index 7b33b54b2a3..8bf956852fc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs @@ -43,7 +43,7 @@ public sealed partial class IndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - public Elastic.Clients.Elasticsearch.Serverless.Indices Names { get; set; } + public ICollection Names { get; set; } /// /// @@ -73,7 +73,7 @@ public IndicesPrivilegesDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurityValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } private Action> FieldSecurityDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices NamesValue { get; set; } + private ICollection NamesValue { get; set; } private ICollection PrivilegesValue { get; set; } private object? QueryValue { get; set; } @@ -111,7 +111,7 @@ public IndicesPrivilegesDescriptor FieldSecurity(Action /// - public IndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Serverless.Indices names) + public IndicesPrivilegesDescriptor Names(ICollection names) { NamesValue = names; return Self; @@ -183,7 +183,7 @@ public IndicesPrivilegesDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurityValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } private Action FieldSecurityDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices NamesValue { get; set; } + private ICollection NamesValue { get; set; } private ICollection PrivilegesValue { get; set; } private object? QueryValue { get; set; } @@ -221,7 +221,7 @@ public IndicesPrivilegesDescriptor FieldSecurity(Action /// - public IndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Serverless.Indices names) + public IndicesPrivilegesDescriptor Names(ICollection names) { NamesValue = names; return Self; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs index 3693ef101e1..10deebc1689 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs @@ -51,7 +51,6 @@ public sealed partial class UserIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection Names { get; init; } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs index 3fc5b6e9a01..8fced1722fa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs @@ -33,14 +33,8 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature AggregateMetric { get; init; } [JsonInclude, JsonPropertyName("analytics")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Analytics { get; init; } - [JsonInclude, JsonPropertyName("archive")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Archive { get; init; } [JsonInclude, JsonPropertyName("ccr")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Ccr { get; init; } - [JsonInclude, JsonPropertyName("data_frame")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature? DataFrame { get; init; } - [JsonInclude, JsonPropertyName("data_science")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature? DataScience { get; init; } [JsonInclude, JsonPropertyName("data_streams")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature DataStreams { get; init; } [JsonInclude, JsonPropertyName("data_tiers")] @@ -49,8 +43,6 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Enrich { get; init; } [JsonInclude, JsonPropertyName("eql")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Eql { get; init; } - [JsonInclude, JsonPropertyName("flattened")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature? Flattened { get; init; } [JsonInclude, JsonPropertyName("frozen_indices")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature FrozenIndices { get; init; } [JsonInclude, JsonPropertyName("graph")] @@ -79,8 +71,6 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Sql { get; init; } [JsonInclude, JsonPropertyName("transform")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Transform { get; init; } - [JsonInclude, JsonPropertyName("vectors")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature? Vectors { get; init; } [JsonInclude, JsonPropertyName("voting_only")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature VotingOnly { get; init; } [JsonInclude, JsonPropertyName("watcher")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs index 848f867049c..b35f97dfb6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -33,10 +33,10 @@ public sealed partial class ClusterStatsRequestParameters : RequestParameters { /// /// - /// If true, returns settings in flat format. + /// Include remote cluster data into the response /// /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + public bool? IncludeRemotes { get => Q("include_remotes"); set => Q("include_remotes", value); } /// /// @@ -74,11 +74,11 @@ public ClusterStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base /// /// - /// If true, returns settings in flat format. + /// Include remote cluster data into the response /// /// [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + public bool? IncludeRemotes { get => Q("include_remotes"); set => Q("include_remotes", value); } /// /// @@ -117,7 +117,7 @@ public ClusterStatsRequestDescriptor() internal override string OperationName => "cluster.stats"; - public ClusterStatsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); + public ClusterStatsRequestDescriptor IncludeRemotes(bool? includeRemotes = true) => Qs("include_remotes", includeRemotes); public ClusterStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public ClusterStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? nodeId) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs index dc57d3e8346..164f288e316 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs @@ -53,9 +53,9 @@ public MoveToStepRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r internal override string OperationName => "ilm.move_to_step"; [JsonInclude, JsonPropertyName("current_step")] - public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? CurrentStep { get; set; } + public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey CurrentStep { get; set; } [JsonInclude, JsonPropertyName("next_step")] - public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? NextStep { get; set; } + public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey NextStep { get; set; } } /// @@ -89,14 +89,14 @@ public MoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearc return Self; } - private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? CurrentStepValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey CurrentStepValue { get; set; } private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor CurrentStepDescriptor { get; set; } private Action CurrentStepDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? NextStepValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey NextStepValue { get; set; } private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor NextStepDescriptor { get; set; } private Action NextStepDescriptorAction { get; set; } - public MoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? currentStep) + public MoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey currentStep) { CurrentStepDescriptor = null; CurrentStepDescriptorAction = null; @@ -120,7 +120,7 @@ public MoveToStepRequestDescriptor CurrentStep(Action NextStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? nextStep) + public MoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey nextStep) { NextStepDescriptor = null; NextStepDescriptorAction = null; @@ -157,7 +157,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("current_step"); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor(CurrentStepDescriptorAction), options); } - else if (CurrentStepValue is not null) + else { writer.WritePropertyName("current_step"); JsonSerializer.Serialize(writer, CurrentStepValue, options); @@ -173,7 +173,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("next_step"); JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor(NextStepDescriptorAction), options); } - else if (NextStepValue is not null) + else { writer.WritePropertyName("next_step"); JsonSerializer.Serialize(writer, NextStepValue, options); @@ -210,14 +210,14 @@ public MoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName return Self; } - private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? CurrentStepValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey CurrentStepValue { get; set; } private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor CurrentStepDescriptor { get; set; } private Action CurrentStepDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? NextStepValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey NextStepValue { get; set; } private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor NextStepDescriptor { get; set; } private Action NextStepDescriptorAction { get; set; } - public MoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey? currentStep) + public MoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey currentStep) { CurrentStepDescriptor = null; CurrentStepDescriptorAction = null; @@ -241,7 +241,7 @@ public MoveToStepRequestDescriptor CurrentStep(Action /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshResponse.g.cs index 62e229a3ed0..173d7f57182 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshResponse.g.cs @@ -29,5 +29,5 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class RefreshResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs index f4c2535f6da..dca82330fc2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs @@ -58,7 +58,7 @@ public sealed partial class PutInferenceResponse : ElasticsearchResponse /// /// [JsonInclude, JsonPropertyName("task_settings")] - public object TaskSettings { get; init; } + public object? TaskSettings { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index 5b7b58c3030..0f19d1b9a0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -31,6 +31,5 @@ public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("cluster")] public IReadOnlyCollection Cluster { get; init; } [JsonInclude, JsonPropertyName("index")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Indices { get; init; } + public IReadOnlyCollection Index { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreResponse.g.cs index 6e81b6daa73..1bf5db7079d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreResponse.g.cs @@ -28,6 +28,8 @@ namespace Elastic.Clients.Elasticsearch.Snapshot; public sealed partial class RestoreResponse : ElasticsearchResponse { + [JsonInclude, JsonPropertyName("accepted")] + public bool? Accepted { get; init; } [JsonInclude, JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.Snapshot.SnapshotRestore Snapshot { get; init; } + public Elastic.Clients.Elasticsearch.Snapshot.SnapshotRestore? Snapshot { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs index 110960e049d..64fa62a915a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs @@ -32,9 +32,9 @@ public sealed partial class EdgeNGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("custom_token_chars")] public string? CustomTokenChars { get; set; } [JsonInclude, JsonPropertyName("max_gram")] - public int MaxGram { get; set; } + public int? MaxGram { get; set; } [JsonInclude, JsonPropertyName("min_gram")] - public int MinGram { get; set; } + public int? MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] public ICollection? TokenChars { get; set; } @@ -54,8 +54,8 @@ public EdgeNGramTokenizerDescriptor() : base() } private string? CustomTokenCharsValue { get; set; } - private int MaxGramValue { get; set; } - private int MinGramValue { get; set; } + private int? MaxGramValue { get; set; } + private int? MinGramValue { get; set; } private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -65,13 +65,13 @@ public EdgeNGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) return Self; } - public EdgeNGramTokenizerDescriptor MaxGram(int maxGram) + public EdgeNGramTokenizerDescriptor MaxGram(int? maxGram) { MaxGramValue = maxGram; return Self; } - public EdgeNGramTokenizerDescriptor MinGram(int minGram) + public EdgeNGramTokenizerDescriptor MinGram(int? minGram) { MinGramValue = minGram; return Self; @@ -98,10 +98,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(CustomTokenCharsValue); } - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue); - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue); + if (MaxGramValue.HasValue) + { + writer.WritePropertyName("max_gram"); + writer.WriteNumberValue(MaxGramValue.Value); + } + + if (MinGramValue.HasValue) + { + writer.WritePropertyName("min_gram"); + writer.WriteNumberValue(MinGramValue.Value); + } + if (TokenCharsValue is not null) { writer.WritePropertyName("token_chars"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs index a68be22a2cb..c4cfb90b1fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs @@ -32,9 +32,9 @@ public sealed partial class NGramTokenizer : ITokenizer [JsonInclude, JsonPropertyName("custom_token_chars")] public string? CustomTokenChars { get; set; } [JsonInclude, JsonPropertyName("max_gram")] - public int MaxGram { get; set; } + public int? MaxGram { get; set; } [JsonInclude, JsonPropertyName("min_gram")] - public int MinGram { get; set; } + public int? MinGram { get; set; } [JsonInclude, JsonPropertyName("token_chars")] public ICollection? TokenChars { get; set; } @@ -54,8 +54,8 @@ public NGramTokenizerDescriptor() : base() } private string? CustomTokenCharsValue { get; set; } - private int MaxGramValue { get; set; } - private int MinGramValue { get; set; } + private int? MaxGramValue { get; set; } + private int? MinGramValue { get; set; } private ICollection? TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -65,13 +65,13 @@ public NGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) return Self; } - public NGramTokenizerDescriptor MaxGram(int maxGram) + public NGramTokenizerDescriptor MaxGram(int? maxGram) { MaxGramValue = maxGram; return Self; } - public NGramTokenizerDescriptor MinGram(int minGram) + public NGramTokenizerDescriptor MinGram(int? minGram) { MinGramValue = minGram; return Self; @@ -98,10 +98,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(CustomTokenCharsValue); } - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue); - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue); + if (MaxGramValue.HasValue) + { + writer.WritePropertyName("max_gram"); + writer.WriteNumberValue(MaxGramValue.Value); + } + + if (MinGramValue.HasValue) + { + writer.WritePropertyName("min_gram"); + writer.WriteNumberValue(MinGramValue.Value); + } + if (TokenCharsValue is not null) { writer.WritePropertyName("token_chars"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs index c930a3155e2..6e2a0890436 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs @@ -35,6 +35,8 @@ public enum ConvertType String, [EnumMember(Value = "long")] Long, + [EnumMember(Value = "ip")] + Ip, [EnumMember(Value = "integer")] Integer, [EnumMember(Value = "float")] @@ -58,6 +60,8 @@ public override ConvertType Read(ref Utf8JsonReader reader, Type typeToConvert, return ConvertType.String; case "long": return ConvertType.Long; + case "ip": + return ConvertType.Ip; case "integer": return ConvertType.Integer; case "float": @@ -84,6 +88,9 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali case ConvertType.Long: writer.WriteStringValue("long"); return; + case ConvertType.Ip: + writer.WriteStringValue("ip"); + return; case ConvertType.Integer: writer.WriteStringValue("integer"); return; @@ -105,6 +112,69 @@ public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSeriali } } +[JsonConverter(typeof(FingerprintDigestConverter))] +public enum FingerprintDigest +{ + [EnumMember(Value = "SHA-512")] + Sha512, + [EnumMember(Value = "SHA-256")] + Sha256, + [EnumMember(Value = "SHA-1")] + Sha1, + [EnumMember(Value = "MurmurHash3")] + Murmurhash3, + [EnumMember(Value = "MD5")] + Md5 +} + +internal sealed class FingerprintDigestConverter : JsonConverter +{ + public override FingerprintDigest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "SHA-512": + return FingerprintDigest.Sha512; + case "SHA-256": + return FingerprintDigest.Sha256; + case "SHA-1": + return FingerprintDigest.Sha1; + case "MurmurHash3": + return FingerprintDigest.Murmurhash3; + case "MD5": + return FingerprintDigest.Md5; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, FingerprintDigest value, JsonSerializerOptions options) + { + switch (value) + { + case FingerprintDigest.Sha512: + writer.WriteStringValue("SHA-512"); + return; + case FingerprintDigest.Sha256: + writer.WriteStringValue("SHA-256"); + return; + case FingerprintDigest.Sha1: + writer.WriteStringValue("SHA-1"); + return; + case FingerprintDigest.Murmurhash3: + writer.WriteStringValue("MurmurHash3"); + return; + case FingerprintDigest.Md5: + writer.WriteStringValue("MD5"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(GeoGridTargetFormatConverter))] public enum GeoGridTargetFormat { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index cfbbedf34a4..b9936319efd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -28,6 +28,298 @@ namespace Elastic.Clients.Elasticsearch.Mapping; +[JsonConverter(typeof(DenseVectorElementTypeConverter))] +public enum DenseVectorElementType +{ + /// + /// + /// Indexes a 4-byte floating-point value per dimension. + /// + /// + [EnumMember(Value = "float")] + Float, + /// + /// + /// Indexes a 1-byte integer value per dimension. + /// + /// + [EnumMember(Value = "byte")] + Byte, + /// + /// + /// Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support + /// bit vectors. + /// + /// + /// NOTE: when using bit, the number of dimensions must be a multiple of 8 and must represent the number of bits. + /// + /// + [EnumMember(Value = "bit")] + Bit +} + +internal sealed class DenseVectorElementTypeConverter : JsonConverter +{ + public override DenseVectorElementType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "float": + return DenseVectorElementType.Float; + case "byte": + return DenseVectorElementType.Byte; + case "bit": + return DenseVectorElementType.Bit; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorElementType value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorElementType.Float: + writer.WriteStringValue("float"); + return; + case DenseVectorElementType.Byte: + writer.WriteStringValue("byte"); + return; + case DenseVectorElementType.Bit: + writer.WriteStringValue("bit"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DenseVectorIndexOptionsTypeConverter))] +public enum DenseVectorIndexOptionsType +{ + /// + /// + /// The default index type for float vectors. This utilizes the HNSW algorithm in addition to automatically scalar + /// quantization for scalable approximate kNN search with element_type of float. + /// + /// + /// This can reduce the memory footprint by 4x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "int8_hnsw")] + Int8Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports + /// element_type of float. + /// + /// + [EnumMember(Value = "int8_flat")] + Int8Flat, + /// + /// + /// This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN + /// search with element_type of float. + /// + /// + /// This can reduce the memory footprint by 8x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "int4_hnsw")] + Int4Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization. + /// Only supports element_type of float. + /// + /// + [EnumMember(Value = "int4_flat")] + Int4Flat, + /// + /// + /// This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all element_type values. + /// + /// + [EnumMember(Value = "hnsw")] + Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm for exact kNN search. This supports all element_type values. + /// + /// + [EnumMember(Value = "flat")] + Flat +} + +internal sealed class DenseVectorIndexOptionsTypeConverter : JsonConverter +{ + public override DenseVectorIndexOptionsType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "int8_hnsw": + return DenseVectorIndexOptionsType.Int8Hnsw; + case "int8_flat": + return DenseVectorIndexOptionsType.Int8Flat; + case "int4_hnsw": + return DenseVectorIndexOptionsType.Int4Hnsw; + case "int4_flat": + return DenseVectorIndexOptionsType.Int4Flat; + case "hnsw": + return DenseVectorIndexOptionsType.Hnsw; + case "flat": + return DenseVectorIndexOptionsType.Flat; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorIndexOptionsType value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorIndexOptionsType.Int8Hnsw: + writer.WriteStringValue("int8_hnsw"); + return; + case DenseVectorIndexOptionsType.Int8Flat: + writer.WriteStringValue("int8_flat"); + return; + case DenseVectorIndexOptionsType.Int4Hnsw: + writer.WriteStringValue("int4_hnsw"); + return; + case DenseVectorIndexOptionsType.Int4Flat: + writer.WriteStringValue("int4_flat"); + return; + case DenseVectorIndexOptionsType.Hnsw: + writer.WriteStringValue("hnsw"); + return; + case DenseVectorIndexOptionsType.Flat: + writer.WriteStringValue("flat"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DenseVectorSimilarityConverter))] +public enum DenseVectorSimilarity +{ + /// + /// + /// Computes the maximum inner product of two vectors. This is similar to dot_product, but doesn't require vectors + /// to be normalized. This means that each vector’s magnitude can significantly effect the score. + /// + /// + /// The document _score is adjusted to prevent negative values. For max_inner_product values < 0, the _score + /// is 1 / (1 + -1 * max_inner_product(query, vector)). For non-negative max_inner_product results the _score + /// is calculated max_inner_product(query, vector) + 1. + /// + /// + [EnumMember(Value = "max_inner_product")] + MaxInnerProduct, + /// + /// + /// Computes similarity based on the L2 distance (also known as Euclidean distance) between the vectors. + /// + /// + /// The document _score is computed as 1 / (1 + l2_norm(query, vector)^2). + /// + /// + /// For bit vectors, instead of using l2_norm, the hamming distance between the vectors is used. + /// + /// + /// The _score transformation is (numBits - hamming(a, b)) / numBits. + /// + /// + [EnumMember(Value = "l2_norm")] + L2Norm, + /// + /// + /// Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity. + /// The constraints and computed score are defined by element_type. + /// + /// + /// When element_type is float, all vectors must be unit length, including both document and query vectors. + /// + /// + /// The document _score is computed as (1 + dot_product(query, vector)) / 2. + /// + /// + /// When element_type is byte, all vectors must have the same length including both document and query vectors or + /// results will be inaccurate. + /// + /// + /// The document _score is computed as 0.5 + (dot_product(query, vector) / (32768 * dims)) where dims is the + /// number of dimensions per vector. + /// + /// + [EnumMember(Value = "dot_product")] + DotProduct, + /// + /// + /// Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with cosine + /// similarity to unit length. This allows to internally use dot_product for computing similarity, which is more + /// efficient. Original un-normalized vectors can be still accessed through scripts. + /// + /// + /// The document _score is computed as (1 + cosine(query, vector)) / 2. + /// + /// + /// The cosine similarity does not allow vectors with zero magnitude, since cosine is not defined in this case. + /// + /// + [EnumMember(Value = "cosine")] + Cosine +} + +internal sealed class DenseVectorSimilarityConverter : JsonConverter +{ + public override DenseVectorSimilarity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "max_inner_product": + return DenseVectorSimilarity.MaxInnerProduct; + case "l2_norm": + return DenseVectorSimilarity.L2Norm; + case "dot_product": + return DenseVectorSimilarity.DotProduct; + case "cosine": + return DenseVectorSimilarity.Cosine; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorSimilarity value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorSimilarity.MaxInnerProduct: + writer.WriteStringValue("max_inner_product"); + return; + case DenseVectorSimilarity.L2Norm: + writer.WriteStringValue("l2_norm"); + return; + case DenseVectorSimilarity.DotProduct: + writer.WriteStringValue("dot_product"); + return; + case DenseVectorSimilarity.Cosine: + writer.WriteStringValue("cosine"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(DynamicMappingConverter))] public enum DynamicMapping { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs index 8924b0ef17a..30fc8645cd8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs @@ -30,9 +30,9 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; public sealed partial class StepKey { [JsonInclude, JsonPropertyName("action")] - public string Action { get; set; } + public string? Action { get; set; } [JsonInclude, JsonPropertyName("name")] - public string Name { get; set; } + public string? Name { get; set; } [JsonInclude, JsonPropertyName("phase")] public string Phase { get; set; } } @@ -45,17 +45,17 @@ public StepKeyDescriptor() : base() { } - private string ActionValue { get; set; } - private string NameValue { get; set; } + private string? ActionValue { get; set; } + private string? NameValue { get; set; } private string PhaseValue { get; set; } - public StepKeyDescriptor Action(string action) + public StepKeyDescriptor Action(string? action) { ActionValue = action; return Self; } - public StepKeyDescriptor Name(string name) + public StepKeyDescriptor Name(string? name) { NameValue = name; return Self; @@ -70,10 +70,18 @@ public StepKeyDescriptor Phase(string phase) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("action"); - writer.WriteStringValue(ActionValue); - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); + if (!string.IsNullOrEmpty(ActionValue)) + { + writer.WritePropertyName("action"); + writer.WriteStringValue(ActionValue); + } + + if (!string.IsNullOrEmpty(NameValue)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + } + writer.WritePropertyName("phase"); writer.WriteStringValue(PhaseValue); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs index 2982f6b3c1f..3fd9f9b693d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs @@ -29,6 +29,8 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class DataStreamVisibility { + [JsonInclude, JsonPropertyName("allow_custom_routing")] + public bool? AllowCustomRouting { get; set; } [JsonInclude, JsonPropertyName("hidden")] public bool? Hidden { get; set; } } @@ -41,8 +43,15 @@ public DataStreamVisibilityDescriptor() : base() { } + private bool? AllowCustomRoutingValue { get; set; } private bool? HiddenValue { get; set; } + public DataStreamVisibilityDescriptor AllowCustomRouting(bool? allowCustomRouting = true) + { + AllowCustomRoutingValue = allowCustomRouting; + return Self; + } + public DataStreamVisibilityDescriptor Hidden(bool? hidden = true) { HiddenValue = hidden; @@ -52,6 +61,12 @@ public DataStreamVisibilityDescriptor Hidden(bool? hidden = true) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowCustomRoutingValue.HasValue) + { + writer.WritePropertyName("allow_custom_routing"); + writer.WriteBooleanValue(AllowCustomRoutingValue.Value); + } + if (HiddenValue.HasValue) { writer.WritePropertyName("hidden"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs index a1e9cf57801..cd1fd616d31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs @@ -56,7 +56,7 @@ public sealed partial class InferenceEndpoint /// /// [JsonInclude, JsonPropertyName("task_settings")] - public object TaskSettings { get; set; } + public object? TaskSettings { get; set; } } /// @@ -74,7 +74,7 @@ public InferenceEndpointDescriptor() : base() private string ServiceValue { get; set; } private object ServiceSettingsValue { get; set; } - private object TaskSettingsValue { get; set; } + private object? TaskSettingsValue { get; set; } /// /// @@ -103,7 +103,7 @@ public InferenceEndpointDescriptor ServiceSettings(object serviceSettings) /// Task settings specific to the service and task type /// /// - public InferenceEndpointDescriptor TaskSettings(object taskSettings) + public InferenceEndpointDescriptor TaskSettings(object? taskSettings) { TaskSettingsValue = taskSettings; return Self; @@ -116,8 +116,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(ServiceValue); writer.WritePropertyName("service_settings"); JsonSerializer.Serialize(writer, ServiceSettingsValue, options); - writer.WritePropertyName("task_settings"); - JsonSerializer.Serialize(writer, TaskSettingsValue, options); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs index 2863e2dea74..d0324de75cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs @@ -64,7 +64,7 @@ public sealed partial class InferenceEndpointInfo /// /// [JsonInclude, JsonPropertyName("task_settings")] - public object TaskSettings { get; init; } + public object? TaskSettings { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs new file mode 100644 index 00000000000..5b12c5802f2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/CommunityIDProcessor.g.cs @@ -0,0 +1,1310 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class CommunityIDProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Field containing the destination IP address. + /// + /// + [JsonInclude, JsonPropertyName("destination_ip")] + public Elastic.Clients.Elasticsearch.Field? DestinationIp { get; set; } + + /// + /// + /// Field containing the destination port. + /// + /// + [JsonInclude, JsonPropertyName("destination_port")] + public Elastic.Clients.Elasticsearch.Field? DestinationPort { get; set; } + + /// + /// + /// Field containing the IANA number. + /// + /// + [JsonInclude, JsonPropertyName("iana_number")] + public Elastic.Clients.Elasticsearch.Field? IanaNumber { get; set; } + + /// + /// + /// Field containing the ICMP code. + /// + /// + [JsonInclude, JsonPropertyName("icmp_code")] + public Elastic.Clients.Elasticsearch.Field? IcmpCode { get; set; } + + /// + /// + /// Field containing the ICMP type. + /// + /// + [JsonInclude, JsonPropertyName("icmp_type")] + public Elastic.Clients.Elasticsearch.Field? IcmpType { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + /// seed can prevent hash collisions between network domains, such as a staging + /// and production network that use the same addressing scheme. + /// + /// + [JsonInclude, JsonPropertyName("seed")] + public int? Seed { get; set; } + + /// + /// + /// Field containing the source IP address. + /// + /// + [JsonInclude, JsonPropertyName("source_ip")] + public Elastic.Clients.Elasticsearch.Field? SourceIp { get; set; } + + /// + /// + /// Field containing the source port. + /// + /// + [JsonInclude, JsonPropertyName("source_port")] + public Elastic.Clients.Elasticsearch.Field? SourcePort { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Output field for the community ID. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + [JsonInclude, JsonPropertyName("transport")] + public Elastic.Clients.Elasticsearch.Field? Transport { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(CommunityIDProcessor communityIDProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.CommunityId(communityIDProcessor); +} + +public sealed partial class CommunityIDProcessorDescriptor : SerializableDescriptor> +{ + internal CommunityIDProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public CommunityIDProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? DestinationIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? DestinationPortValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? IanaNumberValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? IcmpCodeValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? IcmpTypeValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private int? SeedValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? SourceIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? SourcePortValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TransportValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public CommunityIDProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Elastic.Clients.Elasticsearch.Field? destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Elastic.Clients.Elasticsearch.Field? ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Elastic.Clients.Elasticsearch.Field? icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Elastic.Clients.Elasticsearch.Field? icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public CommunityIDProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public CommunityIDProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + /// seed can prevent hash collisions between network domains, such as a staging + /// and production network that use the same addressing scheme. + /// + /// + public CommunityIDProcessorDescriptor Seed(int? seed) + { + SeedValue = seed; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Elastic.Clients.Elasticsearch.Field? sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public CommunityIDProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Elastic.Clients.Elasticsearch.Field? transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (DestinationPortValue is not null) + { + writer.WritePropertyName("destination_port"); + JsonSerializer.Serialize(writer, DestinationPortValue, options); + } + + if (IanaNumberValue is not null) + { + writer.WritePropertyName("iana_number"); + JsonSerializer.Serialize(writer, IanaNumberValue, options); + } + + if (IcmpCodeValue is not null) + { + writer.WritePropertyName("icmp_code"); + JsonSerializer.Serialize(writer, IcmpCodeValue, options); + } + + if (IcmpTypeValue is not null) + { + writer.WritePropertyName("icmp_type"); + JsonSerializer.Serialize(writer, IcmpTypeValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SeedValue.HasValue) + { + writer.WritePropertyName("seed"); + writer.WriteNumberValue(SeedValue.Value); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (SourcePortValue is not null) + { + writer.WritePropertyName("source_port"); + JsonSerializer.Serialize(writer, SourcePortValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TransportValue is not null) + { + writer.WritePropertyName("transport"); + JsonSerializer.Serialize(writer, TransportValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class CommunityIDProcessorDescriptor : SerializableDescriptor +{ + internal CommunityIDProcessorDescriptor(Action configure) => configure.Invoke(this); + + public CommunityIDProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? DestinationIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? DestinationPortValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? IanaNumberValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? IcmpCodeValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? IcmpTypeValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private int? SeedValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? SourceIpValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? SourcePortValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TransportValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public CommunityIDProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Elastic.Clients.Elasticsearch.Field? destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the destination port. + /// + /// + public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) + { + DestinationPortValue = destinationPort; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Elastic.Clients.Elasticsearch.Field? ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the IANA number. + /// + /// + public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) + { + IanaNumberValue = ianaNumber; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Elastic.Clients.Elasticsearch.Field? icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP code. + /// + /// + public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) + { + IcmpCodeValue = icmpCode; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Elastic.Clients.Elasticsearch.Field? icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Field containing the ICMP type. + /// + /// + public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) + { + IcmpTypeValue = icmpType; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public CommunityIDProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public CommunityIDProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public CommunityIDProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public CommunityIDProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The + /// seed can prevent hash collisions between network domains, such as a staging + /// and production network that use the same addressing scheme. + /// + /// + public CommunityIDProcessorDescriptor Seed(int? seed) + { + SeedValue = seed; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Elastic.Clients.Elasticsearch.Field? sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Field containing the source port. + /// + /// + public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) + { + SourcePortValue = sourcePort; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public CommunityIDProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the community ID. + /// + /// + public CommunityIDProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Elastic.Clients.Elasticsearch.Field? transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + /// + /// + /// Field containing the transport protocol name or number. Used only when the + /// iana_number field is not present. The following protocol names are currently + /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp + /// + /// + public CommunityIDProcessorDescriptor Transport(Expression> transport) + { + TransportValue = transport; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (DestinationPortValue is not null) + { + writer.WritePropertyName("destination_port"); + JsonSerializer.Serialize(writer, DestinationPortValue, options); + } + + if (IanaNumberValue is not null) + { + writer.WritePropertyName("iana_number"); + JsonSerializer.Serialize(writer, IanaNumberValue, options); + } + + if (IcmpCodeValue is not null) + { + writer.WritePropertyName("icmp_code"); + JsonSerializer.Serialize(writer, IcmpCodeValue, options); + } + + if (IcmpTypeValue is not null) + { + writer.WritePropertyName("icmp_type"); + JsonSerializer.Serialize(writer, IcmpTypeValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SeedValue.HasValue) + { + writer.WritePropertyName("seed"); + writer.WriteNumberValue(SeedValue.Value); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (SourcePortValue is not null) + { + writer.WritePropertyName("source_port"); + JsonSerializer.Serialize(writer, SourcePortValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + if (TransportValue is not null) + { + writer.WritePropertyName("transport"); + JsonSerializer.Serialize(writer, TransportValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs index cc093530e31..c74aa779235 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DateProcessor.g.cs @@ -88,6 +88,15 @@ public sealed partial class DateProcessor [JsonInclude, JsonPropertyName("on_failure")] public ICollection? OnFailure { get; set; } + /// + /// + /// The format to use when writing the date to target_field. Must be a valid + /// java time pattern. + /// + /// + [JsonInclude, JsonPropertyName("output_format")] + public string? OutputFormat { get; set; } + /// /// /// Identifier for the processor. @@ -135,6 +144,7 @@ public DateProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action> OnFailureDescriptorAction { get; set; } private Action>[] OnFailureDescriptorActions { get; set; } + private string? OutputFormatValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } private string? TimezoneValue { get; set; } @@ -271,6 +281,18 @@ public DateProcessorDescriptor OnFailure(params Action + /// + /// The format to use when writing the date to target_field. Must be a valid + /// java time pattern. + /// + /// + public DateProcessorDescriptor OutputFormat(string? outputFormat) + { + OutputFormatValue = outputFormat; + return Self; + } + /// /// /// Identifier for the processor. @@ -390,6 +412,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (!string.IsNullOrEmpty(OutputFormatValue)) + { + writer.WritePropertyName("output_format"); + writer.WriteStringValue(OutputFormatValue); + } + if (!string.IsNullOrEmpty(TagValue)) { writer.WritePropertyName("tag"); @@ -430,6 +458,7 @@ public DateProcessorDescriptor() : base() private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } private Action OnFailureDescriptorAction { get; set; } private Action[] OnFailureDescriptorActions { get; set; } + private string? OutputFormatValue { get; set; } private string? TagValue { get; set; } private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } private string? TimezoneValue { get; set; } @@ -566,6 +595,18 @@ public DateProcessorDescriptor OnFailure(params Action + /// + /// The format to use when writing the date to target_field. Must be a valid + /// java time pattern. + /// + /// + public DateProcessorDescriptor OutputFormat(string? outputFormat) + { + OutputFormatValue = outputFormat; + return Self; + } + /// /// /// Identifier for the processor. @@ -685,6 +726,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, OnFailureValue, options); } + if (!string.IsNullOrEmpty(OutputFormatValue)) + { + writer.WritePropertyName("output_format"); + writer.WriteStringValue(OutputFormatValue); + } + if (!string.IsNullOrEmpty(TagValue)) { writer.WritePropertyName("tag"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs new file mode 100644 index 00000000000..1242f11c013 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/FingerprintProcessor.g.cs @@ -0,0 +1,676 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class FingerprintProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Array of fields to include in the fingerprint. For objects, the processor + /// hashes both the field key and value. For other fields, the processor hashes + /// only the field value. + /// + /// + [JsonInclude, JsonPropertyName("fields")] + [JsonConverter(typeof(SingleOrManyFieldsConverter))] + public Elastic.Clients.Elasticsearch.Fields Fields { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true, the processor ignores any missing fields. If all fields are + /// missing, the processor silently exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + /// SHA-256, SHA-512, or MurmurHash3. + /// + /// + [JsonInclude, JsonPropertyName("method")] + public Elastic.Clients.Elasticsearch.Ingest.FingerprintDigest? Method { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Salt value for the hash function. + /// + /// + [JsonInclude, JsonPropertyName("salt")] + public string? Salt { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Output field for the fingerprint. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(FingerprintProcessor fingerprintProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.Fingerprint(fingerprintProcessor); +} + +public sealed partial class FingerprintProcessorDescriptor : SerializableDescriptor> +{ + internal FingerprintProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public FingerprintProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields FieldsValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.FingerprintDigest? MethodValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private string? SaltValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public FingerprintProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Array of fields to include in the fingerprint. For objects, the processor + /// hashes both the field key and value. For other fields, the processor hashes + /// only the field value. + /// + /// + public FingerprintProcessorDescriptor Fields(Elastic.Clients.Elasticsearch.Fields fields) + { + FieldsValue = fields; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public FingerprintProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public FingerprintProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true, the processor ignores any missing fields. If all fields are + /// missing, the processor silently exits without modifying the document. + /// + /// + public FingerprintProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + /// SHA-256, SHA-512, or MurmurHash3. + /// + /// + public FingerprintProcessorDescriptor Method(Elastic.Clients.Elasticsearch.Ingest.FingerprintDigest? method) + { + MethodValue = method; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public FingerprintProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Salt value for the hash function. + /// + /// + public FingerprintProcessorDescriptor Salt(string? salt) + { + SaltValue = salt; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public FingerprintProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (MethodValue is not null) + { + writer.WritePropertyName("method"); + JsonSerializer.Serialize(writer, MethodValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(SaltValue)) + { + writer.WritePropertyName("salt"); + writer.WriteStringValue(SaltValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class FingerprintProcessorDescriptor : SerializableDescriptor +{ + internal FingerprintProcessorDescriptor(Action configure) => configure.Invoke(this); + + public FingerprintProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields FieldsValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.FingerprintDigest? MethodValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private string? SaltValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public FingerprintProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Array of fields to include in the fingerprint. For objects, the processor + /// hashes both the field key and value. For other fields, the processor hashes + /// only the field value. + /// + /// + public FingerprintProcessorDescriptor Fields(Elastic.Clients.Elasticsearch.Fields fields) + { + FieldsValue = fields; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public FingerprintProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public FingerprintProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true, the processor ignores any missing fields. If all fields are + /// missing, the processor silently exits without modifying the document. + /// + /// + public FingerprintProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, + /// SHA-256, SHA-512, or MurmurHash3. + /// + /// + public FingerprintProcessorDescriptor Method(Elastic.Clients.Elasticsearch.Ingest.FingerprintDigest? method) + { + MethodValue = method; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public FingerprintProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public FingerprintProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Salt value for the hash function. + /// + /// + public FingerprintProcessorDescriptor Salt(string? salt) + { + SaltValue = salt; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public FingerprintProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the fingerprint. + /// + /// + public FingerprintProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (MethodValue is not null) + { + writer.WritePropertyName("method"); + JsonSerializer.Serialize(writer, MethodValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(SaltValue)) + { + writer.WritePropertyName("salt"); + writer.WriteStringValue(SaltValue); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs index 07e9afcca33..f7948688c86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs @@ -38,6 +38,15 @@ public sealed partial class GrokProcessor [JsonInclude, JsonPropertyName("description")] public string? Description { get; set; } + /// + /// + /// Must be disabled or v1. If v1, the processor uses patterns with Elastic + /// Common Schema (ECS) field names. + /// + /// + [JsonInclude, JsonPropertyName("ecs_compatibility")] + public string? EcsCompatibility { get; set; } + /// /// /// The field to use for grok expression parsing. @@ -125,6 +134,7 @@ public GrokProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private string? EcsCompatibilityValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -150,6 +160,18 @@ public GrokProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Must be disabled or v1. If v1, the processor uses patterns with Elastic + /// Common Schema (ECS) field names. + /// + /// + public GrokProcessorDescriptor EcsCompatibility(string? ecsCompatibility) + { + EcsCompatibilityValue = ecsCompatibility; + return Self; + } + /// /// /// The field to use for grok expression parsing. @@ -313,6 +335,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (!string.IsNullOrEmpty(EcsCompatibilityValue)) + { + writer.WritePropertyName("ecs_compatibility"); + writer.WriteStringValue(EcsCompatibilityValue); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) @@ -397,6 +425,7 @@ public GrokProcessorDescriptor() : base() } private string? DescriptionValue { get; set; } + private string? EcsCompatibilityValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } @@ -422,6 +451,18 @@ public GrokProcessorDescriptor Description(string? description) return Self; } + /// + /// + /// Must be disabled or v1. If v1, the processor uses patterns with Elastic + /// Common Schema (ECS) field names. + /// + /// + public GrokProcessorDescriptor EcsCompatibility(string? ecsCompatibility) + { + EcsCompatibilityValue = ecsCompatibility; + return Self; + } + /// /// /// The field to use for grok expression parsing. @@ -585,6 +626,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(DescriptionValue); } + if (!string.IsNullOrEmpty(EcsCompatibilityValue)) + { + writer.WritePropertyName("ecs_compatibility"); + writer.WriteStringValue(EcsCompatibilityValue); + } + writer.WritePropertyName("field"); JsonSerializer.Serialize(writer, FieldValue, options); if (!string.IsNullOrEmpty(IfValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs new file mode 100644 index 00000000000..22371363f48 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs @@ -0,0 +1,866 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class NetworkDirectionProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Field containing the destination IP address. + /// + /// + [JsonInclude, JsonPropertyName("destination_ip")] + public Elastic.Clients.Elasticsearch.Field? DestinationIp { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + /// CIDR notation. Also supports the named ranges listed below. These may be + /// constructed with template snippets. Must specify only one of + /// internal_networks or internal_networks_field. + /// + /// + [JsonInclude, JsonPropertyName("internal_networks")] + public ICollection? InternalNetworks { get; set; } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + [JsonInclude, JsonPropertyName("internal_networks_field")] + public Elastic.Clients.Elasticsearch.Field? InternalNetworksField { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Field containing the source IP address. + /// + /// + [JsonInclude, JsonPropertyName("source_ip")] + public Elastic.Clients.Elasticsearch.Field? SourceIp { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Output field for the network direction. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(NetworkDirectionProcessor networkDirectionProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.NetworkDirection(networkDirectionProcessor); +} + +public sealed partial class NetworkDirectionProcessorDescriptor : SerializableDescriptor> +{ + internal NetworkDirectionProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public NetworkDirectionProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? DestinationIpValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? InternalNetworksValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? InternalNetworksFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Field? SourceIpValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public NetworkDirectionProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public NetworkDirectionProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + /// CIDR notation. Also supports the named ranges listed below. These may be + /// constructed with template snippets. Must specify only one of + /// internal_networks or internal_networks_field. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworks(ICollection? internalNetworks) + { + InternalNetworksValue = internalNetworks; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Elastic.Clients.Elasticsearch.Field? internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public NetworkDirectionProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (InternalNetworksValue is not null) + { + writer.WritePropertyName("internal_networks"); + JsonSerializer.Serialize(writer, InternalNetworksValue, options); + } + + if (InternalNetworksFieldValue is not null) + { + writer.WritePropertyName("internal_networks_field"); + JsonSerializer.Serialize(writer, InternalNetworksFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class NetworkDirectionProcessorDescriptor : SerializableDescriptor +{ + internal NetworkDirectionProcessorDescriptor(Action configure) => configure.Invoke(this); + + public NetworkDirectionProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? DestinationIpValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? InternalNetworksValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? InternalNetworksFieldValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Field? SourceIpValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public NetworkDirectionProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Field? destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Field containing the destination IP address. + /// + /// + public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) + { + DestinationIpValue = destinationIp; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public NetworkDirectionProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public NetworkDirectionProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in + /// CIDR notation. Also supports the named ranges listed below. These may be + /// constructed with template snippets. Must specify only one of + /// internal_networks or internal_networks_field. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworks(ICollection? internalNetworks) + { + InternalNetworksValue = internalNetworks; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Elastic.Clients.Elasticsearch.Field? internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// A field on the given document to read the internal_networks configuration + /// from. + /// + /// + public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) + { + InternalNetworksFieldValue = internalNetworksField; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public NetworkDirectionProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public NetworkDirectionProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Field? sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Field containing the source IP address. + /// + /// + public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) + { + SourceIpValue = sourceIp; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public NetworkDirectionProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Output field for the network direction. + /// + /// + public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DestinationIpValue is not null) + { + writer.WritePropertyName("destination_ip"); + JsonSerializer.Serialize(writer, DestinationIpValue, options); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (InternalNetworksValue is not null) + { + writer.WritePropertyName("internal_networks"); + JsonSerializer.Serialize(writer, InternalNetworksValue, options); + } + + if (InternalNetworksFieldValue is not null) + { + writer.WritePropertyName("internal_networks_field"); + JsonSerializer.Serialize(writer, InternalNetworksFieldValue, options); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (SourceIpValue is not null) + { + writer.WritePropertyName("source_ip"); + JsonSerializer.Serialize(writer, SourceIpValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs index 0df789b01d2..d8402c22813 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs @@ -50,6 +50,7 @@ internal Processor(string variantName, object variant) public static Processor Attachment(Elastic.Clients.Elasticsearch.Ingest.AttachmentProcessor attachmentProcessor) => new Processor("attachment", attachmentProcessor); public static Processor Bytes(Elastic.Clients.Elasticsearch.Ingest.BytesProcessor bytesProcessor) => new Processor("bytes", bytesProcessor); public static Processor Circle(Elastic.Clients.Elasticsearch.Ingest.CircleProcessor circleProcessor) => new Processor("circle", circleProcessor); + public static Processor CommunityId(Elastic.Clients.Elasticsearch.Ingest.CommunityIDProcessor communityIDProcessor) => new Processor("community_id", communityIDProcessor); public static Processor Convert(Elastic.Clients.Elasticsearch.Ingest.ConvertProcessor convertProcessor) => new Processor("convert", convertProcessor); public static Processor Csv(Elastic.Clients.Elasticsearch.Ingest.CsvProcessor csvProcessor) => new Processor("csv", csvProcessor); public static Processor Date(Elastic.Clients.Elasticsearch.Ingest.DateProcessor dateProcessor) => new Processor("date", dateProcessor); @@ -59,6 +60,7 @@ internal Processor(string variantName, object variant) public static Processor Drop(Elastic.Clients.Elasticsearch.Ingest.DropProcessor dropProcessor) => new Processor("drop", dropProcessor); public static Processor Enrich(Elastic.Clients.Elasticsearch.Ingest.EnrichProcessor enrichProcessor) => new Processor("enrich", enrichProcessor); public static Processor Fail(Elastic.Clients.Elasticsearch.Ingest.FailProcessor failProcessor) => new Processor("fail", failProcessor); + public static Processor Fingerprint(Elastic.Clients.Elasticsearch.Ingest.FingerprintProcessor fingerprintProcessor) => new Processor("fingerprint", fingerprintProcessor); public static Processor Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => new Processor("foreach", foreachProcessor); public static Processor GeoGrid(Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor geoGridProcessor) => new Processor("geo_grid", geoGridProcessor); public static Processor Geoip(Elastic.Clients.Elasticsearch.Ingest.GeoIpProcessor geoIpProcessor) => new Processor("geoip", geoIpProcessor); @@ -70,8 +72,10 @@ internal Processor(string variantName, object variant) public static Processor Json(Elastic.Clients.Elasticsearch.Ingest.JsonProcessor jsonProcessor) => new Processor("json", jsonProcessor); public static Processor Kv(Elastic.Clients.Elasticsearch.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); public static Processor Lowercase(Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor lowercaseProcessor) => new Processor("lowercase", lowercaseProcessor); + public static Processor NetworkDirection(Elastic.Clients.Elasticsearch.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => new Processor("network_direction", networkDirectionProcessor); public static Processor Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => new Processor("pipeline", pipelineProcessor); public static Processor Redact(Elastic.Clients.Elasticsearch.Ingest.RedactProcessor redactProcessor) => new Processor("redact", redactProcessor); + public static Processor RegisteredDomain(Elastic.Clients.Elasticsearch.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => new Processor("registered_domain", registeredDomainProcessor); public static Processor Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => new Processor("remove", removeProcessor); public static Processor Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => new Processor("rename", renameProcessor); public static Processor Reroute(Elastic.Clients.Elasticsearch.Ingest.RerouteProcessor rerouteProcessor) => new Processor("reroute", rerouteProcessor); @@ -80,6 +84,7 @@ internal Processor(string variantName, object variant) public static Processor SetSecurityUser(Elastic.Clients.Elasticsearch.Ingest.SetSecurityUserProcessor setSecurityUserProcessor) => new Processor("set_security_user", setSecurityUserProcessor); public static Processor Sort(Elastic.Clients.Elasticsearch.Ingest.SortProcessor sortProcessor) => new Processor("sort", sortProcessor); public static Processor Split(Elastic.Clients.Elasticsearch.Ingest.SplitProcessor splitProcessor) => new Processor("split", splitProcessor); + public static Processor Terminate(Elastic.Clients.Elasticsearch.Ingest.TerminateProcessor terminateProcessor) => new Processor("terminate", terminateProcessor); public static Processor Trim(Elastic.Clients.Elasticsearch.Ingest.TrimProcessor trimProcessor) => new Processor("trim", trimProcessor); public static Processor Uppercase(Elastic.Clients.Elasticsearch.Ingest.UppercaseProcessor uppercaseProcessor) => new Processor("uppercase", uppercaseProcessor); public static Processor UriParts(Elastic.Clients.Elasticsearch.Ingest.UriPartsProcessor uriPartsProcessor) => new Processor("uri_parts", uriPartsProcessor); @@ -152,6 +157,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "community_id") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "convert") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -215,6 +227,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "fingerprint") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "foreach") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -292,6 +311,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "network_direction") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "pipeline") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -306,6 +332,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "registered_domain") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "remove") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -362,6 +395,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "terminate") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "trim") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -424,6 +464,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "circle": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.CircleProcessor)value.Variant, options); break; + case "community_id": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.CommunityIDProcessor)value.Variant, options); + break; case "convert": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.ConvertProcessor)value.Variant, options); break; @@ -451,6 +494,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "fail": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.FailProcessor)value.Variant, options); break; + case "fingerprint": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.FingerprintProcessor)value.Variant, options); + break; case "foreach": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor)value.Variant, options); break; @@ -484,12 +530,18 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "lowercase": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor)value.Variant, options); break; + case "network_direction": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.NetworkDirectionProcessor)value.Variant, options); + break; case "pipeline": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor)value.Variant, options); break; case "redact": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RedactProcessor)value.Variant, options); break; + case "registered_domain": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RegisteredDomainProcessor)value.Variant, options); + break; case "remove": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor)value.Variant, options); break; @@ -514,6 +566,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "split": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.SplitProcessor)value.Variant, options); break; + case "terminate": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.TerminateProcessor)value.Variant, options); + break; case "trim": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.TrimProcessor)value.Variant, options); break; @@ -575,6 +630,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Bytes(Action> configure) => Set(configure, "bytes"); public ProcessorDescriptor Circle(Elastic.Clients.Elasticsearch.Ingest.CircleProcessor circleProcessor) => Set(circleProcessor, "circle"); public ProcessorDescriptor Circle(Action> configure) => Set(configure, "circle"); + public ProcessorDescriptor CommunityId(Elastic.Clients.Elasticsearch.Ingest.CommunityIDProcessor communityIDProcessor) => Set(communityIDProcessor, "community_id"); + public ProcessorDescriptor CommunityId(Action> configure) => Set(configure, "community_id"); public ProcessorDescriptor Convert(Elastic.Clients.Elasticsearch.Ingest.ConvertProcessor convertProcessor) => Set(convertProcessor, "convert"); public ProcessorDescriptor Convert(Action> configure) => Set(configure, "convert"); public ProcessorDescriptor Csv(Elastic.Clients.Elasticsearch.Ingest.CsvProcessor csvProcessor) => Set(csvProcessor, "csv"); @@ -593,6 +650,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Enrich(Action> configure) => Set(configure, "enrich"); public ProcessorDescriptor Fail(Elastic.Clients.Elasticsearch.Ingest.FailProcessor failProcessor) => Set(failProcessor, "fail"); public ProcessorDescriptor Fail(Action> configure) => Set(configure, "fail"); + public ProcessorDescriptor Fingerprint(Elastic.Clients.Elasticsearch.Ingest.FingerprintProcessor fingerprintProcessor) => Set(fingerprintProcessor, "fingerprint"); + public ProcessorDescriptor Fingerprint(Action> configure) => Set(configure, "fingerprint"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action> configure) => Set(configure, "foreach"); public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); @@ -615,10 +674,14 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Kv(Action> configure) => Set(configure, "kv"); public ProcessorDescriptor Lowercase(Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor lowercaseProcessor) => Set(lowercaseProcessor, "lowercase"); public ProcessorDescriptor Lowercase(Action> configure) => Set(configure, "lowercase"); + public ProcessorDescriptor NetworkDirection(Elastic.Clients.Elasticsearch.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => Set(networkDirectionProcessor, "network_direction"); + public ProcessorDescriptor NetworkDirection(Action> configure) => Set(configure, "network_direction"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action> configure) => Set(configure, "pipeline"); public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); public ProcessorDescriptor Redact(Action> configure) => Set(configure, "redact"); + public ProcessorDescriptor RegisteredDomain(Elastic.Clients.Elasticsearch.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => Set(registeredDomainProcessor, "registered_domain"); + public ProcessorDescriptor RegisteredDomain(Action> configure) => Set(configure, "registered_domain"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action> configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); @@ -635,6 +698,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Sort(Action> configure) => Set(configure, "sort"); public ProcessorDescriptor Split(Elastic.Clients.Elasticsearch.Ingest.SplitProcessor splitProcessor) => Set(splitProcessor, "split"); public ProcessorDescriptor Split(Action> configure) => Set(configure, "split"); + public ProcessorDescriptor Terminate(Elastic.Clients.Elasticsearch.Ingest.TerminateProcessor terminateProcessor) => Set(terminateProcessor, "terminate"); + public ProcessorDescriptor Terminate(Action> configure) => Set(configure, "terminate"); public ProcessorDescriptor Trim(Elastic.Clients.Elasticsearch.Ingest.TrimProcessor trimProcessor) => Set(trimProcessor, "trim"); public ProcessorDescriptor Trim(Action> configure) => Set(configure, "trim"); public ProcessorDescriptor Uppercase(Elastic.Clients.Elasticsearch.Ingest.UppercaseProcessor uppercaseProcessor) => Set(uppercaseProcessor, "uppercase"); @@ -705,6 +770,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Bytes(Action configure) => Set(configure, "bytes"); public ProcessorDescriptor Circle(Elastic.Clients.Elasticsearch.Ingest.CircleProcessor circleProcessor) => Set(circleProcessor, "circle"); public ProcessorDescriptor Circle(Action configure) => Set(configure, "circle"); + public ProcessorDescriptor CommunityId(Elastic.Clients.Elasticsearch.Ingest.CommunityIDProcessor communityIDProcessor) => Set(communityIDProcessor, "community_id"); + public ProcessorDescriptor CommunityId(Action configure) => Set(configure, "community_id"); public ProcessorDescriptor Convert(Elastic.Clients.Elasticsearch.Ingest.ConvertProcessor convertProcessor) => Set(convertProcessor, "convert"); public ProcessorDescriptor Convert(Action configure) => Set(configure, "convert"); public ProcessorDescriptor Csv(Elastic.Clients.Elasticsearch.Ingest.CsvProcessor csvProcessor) => Set(csvProcessor, "csv"); @@ -723,6 +790,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Enrich(Action configure) => Set(configure, "enrich"); public ProcessorDescriptor Fail(Elastic.Clients.Elasticsearch.Ingest.FailProcessor failProcessor) => Set(failProcessor, "fail"); public ProcessorDescriptor Fail(Action configure) => Set(configure, "fail"); + public ProcessorDescriptor Fingerprint(Elastic.Clients.Elasticsearch.Ingest.FingerprintProcessor fingerprintProcessor) => Set(fingerprintProcessor, "fingerprint"); + public ProcessorDescriptor Fingerprint(Action configure) => Set(configure, "fingerprint"); public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); public ProcessorDescriptor Foreach(Action configure) => Set(configure, "foreach"); public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); @@ -745,10 +814,14 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Kv(Action configure) => Set(configure, "kv"); public ProcessorDescriptor Lowercase(Elastic.Clients.Elasticsearch.Ingest.LowercaseProcessor lowercaseProcessor) => Set(lowercaseProcessor, "lowercase"); public ProcessorDescriptor Lowercase(Action configure) => Set(configure, "lowercase"); + public ProcessorDescriptor NetworkDirection(Elastic.Clients.Elasticsearch.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => Set(networkDirectionProcessor, "network_direction"); + public ProcessorDescriptor NetworkDirection(Action configure) => Set(configure, "network_direction"); public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); public ProcessorDescriptor Pipeline(Action configure) => Set(configure, "pipeline"); public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); public ProcessorDescriptor Redact(Action configure) => Set(configure, "redact"); + public ProcessorDescriptor RegisteredDomain(Elastic.Clients.Elasticsearch.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => Set(registeredDomainProcessor, "registered_domain"); + public ProcessorDescriptor RegisteredDomain(Action configure) => Set(configure, "registered_domain"); public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); public ProcessorDescriptor Remove(Action configure) => Set(configure, "remove"); public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); @@ -765,6 +838,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor Sort(Action configure) => Set(configure, "sort"); public ProcessorDescriptor Split(Elastic.Clients.Elasticsearch.Ingest.SplitProcessor splitProcessor) => Set(splitProcessor, "split"); public ProcessorDescriptor Split(Action configure) => Set(configure, "split"); + public ProcessorDescriptor Terminate(Elastic.Clients.Elasticsearch.Ingest.TerminateProcessor terminateProcessor) => Set(terminateProcessor, "terminate"); + public ProcessorDescriptor Terminate(Action configure) => Set(configure, "terminate"); public ProcessorDescriptor Trim(Elastic.Clients.Elasticsearch.Ingest.TrimProcessor trimProcessor) => Set(trimProcessor, "trim"); public ProcessorDescriptor Trim(Action configure) => Set(configure, "trim"); public ProcessorDescriptor Uppercase(Elastic.Clients.Elasticsearch.Ingest.UppercaseProcessor uppercaseProcessor) => Set(uppercaseProcessor, "uppercase"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs new file mode 100644 index 00000000000..a8089013ea1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs @@ -0,0 +1,629 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class RegisteredDomainProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Field containing the source FQDN. + /// + /// + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Field Field { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(RegisteredDomainProcessor registeredDomainProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.RegisteredDomain(registeredDomainProcessor); +} + +public sealed partial class RegisteredDomainProcessorDescriptor : SerializableDescriptor> +{ + internal RegisteredDomainProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public RegisteredDomainProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RegisteredDomainProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RegisteredDomainProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RegisteredDomainProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class RegisteredDomainProcessorDescriptor : SerializableDescriptor +{ + internal RegisteredDomainProcessorDescriptor(Action configure) => configure.Invoke(this); + + public RegisteredDomainProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public RegisteredDomainProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Field containing the source FQDN. + /// + /// + public RegisteredDomainProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public RegisteredDomainProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and any required fields are missing, the processor quietly exits + /// without modifying the document. + /// + /// + public RegisteredDomainProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public RegisteredDomainProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public RegisteredDomainProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public RegisteredDomainProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// Object field containing extracted domain components. If an empty string, + /// the processor adds components to the document’s root. + /// + /// + public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs new file mode 100644 index 00000000000..16b80dd17d9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/TerminateProcessor.g.cs @@ -0,0 +1,407 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class TerminateProcessor +{ + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(TerminateProcessor terminateProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.Terminate(terminateProcessor); +} + +public sealed partial class TerminateProcessorDescriptor : SerializableDescriptor> +{ + internal TerminateProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public TerminateProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public TerminateProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public TerminateProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public TerminateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public TerminateProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public TerminateProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class TerminateProcessorDescriptor : SerializableDescriptor +{ + internal TerminateProcessorDescriptor(Action configure) => configure.Invoke(this); + + public TerminateProcessorDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private string? TagValue { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public TerminateProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public TerminateProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public TerminateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public TerminateProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public TerminateProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public TerminateProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs index 72b319a4a6e..b511d9b0955 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs @@ -29,14 +29,56 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class DenseVectorIndexOptions { + /// + /// + /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and + /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for + /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating + /// the quantization thresholds. + /// + /// + /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization + /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). + /// + /// + /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. + /// + /// + /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. + /// + /// [JsonInclude, JsonPropertyName("confidence_interval")] public float? ConfidenceInterval { get; set; } + + /// + /// + /// The number of candidates to track while assembling the list of nearest neighbors for each new node. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// [JsonInclude, JsonPropertyName("ef_construction")] public int? EfConstruction { get; set; } + + /// + /// + /// The number of neighbors each node will be connected to in the HNSW graph. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// [JsonInclude, JsonPropertyName("m")] public int? m { get; set; } + + /// + /// + /// The type of kNN algorithm to use. + /// + /// [JsonInclude, JsonPropertyName("type")] - public string Type { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType Type { get; set; } } public sealed partial class DenseVectorIndexOptionsDescriptor : SerializableDescriptor @@ -50,27 +92,66 @@ public DenseVectorIndexOptionsDescriptor() : base() private float? ConfidenceIntervalValue { get; set; } private int? EfConstructionValue { get; set; } private int? mValue { get; set; } - private string TypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType TypeValue { get; set; } + /// + /// + /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and + /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for + /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating + /// the quantization thresholds. + /// + /// + /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization + /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). + /// + /// + /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. + /// + /// + /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. + /// + /// public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInterval) { ConfidenceIntervalValue = confidenceInterval; return Self; } + /// + /// + /// The number of candidates to track while assembling the list of nearest neighbors for each new node. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) { EfConstructionValue = efConstruction; return Self; } + /// + /// + /// The number of neighbors each node will be connected to in the HNSW graph. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// public DenseVectorIndexOptionsDescriptor m(int? m) { mValue = m; return Self; } - public DenseVectorIndexOptionsDescriptor Type(string type) + /// + /// + /// The type of kNN algorithm to use. + /// + /// + public DenseVectorIndexOptionsDescriptor Type(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType type) { TypeValue = type; return Self; @@ -98,7 +179,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); + JsonSerializer.Serialize(writer, TypeValue, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs index 4484f144eef..945bd8cf841 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs @@ -29,18 +29,47 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class DenseVectorProperty : IProperty { + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// [JsonInclude, JsonPropertyName("dims")] public int? Dims { get; set; } [JsonInclude, JsonPropertyName("dynamic")] public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } + + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// [JsonInclude, JsonPropertyName("element_type")] - public string? ElementType { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementType { get; set; } [JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } [JsonInclude, JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } + + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// [JsonInclude, JsonPropertyName("index")] public bool? Index { get; set; } + + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// [JsonInclude, JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? IndexOptions { get; set; } @@ -53,8 +82,28 @@ public sealed partial class DenseVectorProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + + /// + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? Similarity { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "dense_vector"; @@ -70,7 +119,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private string? ElementTypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -79,8 +128,14 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -93,7 +148,12 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elastics return Self; } - public DenseVectorPropertyDescriptor ElementType(string? elementType) + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// + public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? elementType) { ElementTypeValue = elementType; return Self; @@ -125,12 +185,27 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -186,7 +261,26 @@ public DenseVectorPropertyDescriptor Properties(Action Similarity(string? similarity) + /// + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// + public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? similarity) { SimilarityValue = similarity; return Self; @@ -207,10 +301,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (!string.IsNullOrEmpty(ElementTypeValue)) + if (ElementTypeValue is not null) { writer.WritePropertyName("element_type"); - writer.WriteStringValue(ElementTypeValue); + JsonSerializer.Serialize(writer, ElementTypeValue, options); } if (FieldsValue is not null) @@ -259,10 +353,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) + if (SimilarityValue is not null) { writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); + JsonSerializer.Serialize(writer, SimilarityValue, options); } writer.WritePropertyName("type"); @@ -319,7 +413,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private string? ElementTypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -328,8 +422,14 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -342,7 +442,12 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mappi return Self; } - public DenseVectorPropertyDescriptor ElementType(string? elementType) + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// + public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? elementType) { ElementTypeValue = elementType; return Self; @@ -374,12 +479,27 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -435,7 +555,26 @@ public DenseVectorPropertyDescriptor Properties(Action + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// + public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? similarity) { SimilarityValue = similarity; return Self; @@ -456,10 +595,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (!string.IsNullOrEmpty(ElementTypeValue)) + if (ElementTypeValue is not null) { writer.WritePropertyName("element_type"); - writer.WriteStringValue(ElementTypeValue); + JsonSerializer.Serialize(writer, ElementTypeValue, options); } if (FieldsValue is not null) @@ -508,10 +647,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) + if (SimilarityValue is not null) { writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); + JsonSerializer.Serialize(writer, SimilarityValue, options); } writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs index 094f4f133f1..34db00f7452 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs @@ -30,5 +30,6 @@ namespace Elastic.Clients.Elasticsearch.Nodes; public sealed partial class NodeInfoSettingsNetwork { [JsonInclude, JsonPropertyName("host")] - public string? Host { get; init; } + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection? Host { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs index ecbfc902214..eaefaf620c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpack.g.cs @@ -31,6 +31,8 @@ public sealed partial class NodeInfoXpack { [JsonInclude, JsonPropertyName("license")] public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackLicense? License { get; init; } + [JsonInclude, JsonPropertyName("ml")] + public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackMl? Ml { get; init; } [JsonInclude, JsonPropertyName("notification")] public IReadOnlyDictionary? Notification { get; init; } [JsonInclude, JsonPropertyName("security")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs new file mode 100644 index 00000000000..e33170cb330 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs @@ -0,0 +1,34 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Nodes; + +public sealed partial class NodeInfoXpackMl +{ + [JsonInclude, JsonPropertyName("use_auto_machine_memory_percent")] + public bool? UseAutoMachineMemoryPercent { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs index 9302ad2254f..ca42856289e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs @@ -34,7 +34,7 @@ public sealed partial class NodeInfoXpackSecurity [JsonInclude, JsonPropertyName("enabled")] public string Enabled { get; init; } [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl Http { get; init; } + public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl? Http { get; init; } [JsonInclude, JsonPropertyName("transport")] public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecuritySsl? Transport { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs index f7adc9f5d06..1d408079467 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Nodes; public sealed partial class NodeInfoXpackSecurityAuthc { [JsonInclude, JsonPropertyName("realms")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthcRealms Realms { get; init; } + public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthcRealms? Realms { get; init; } [JsonInclude, JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthcToken Token { get; init; } + public Elastic.Clients.Elasticsearch.Nodes.NodeInfoXpackSecurityAuthcToken? Token { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs index 1d94b492440..3f6062507e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs @@ -51,7 +51,7 @@ public sealed partial class IndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - public Elastic.Clients.Elasticsearch.Indices Names { get; set; } + public ICollection Names { get; set; } /// /// @@ -82,7 +82,7 @@ public IndicesPrivilegesDescriptor() : base() private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } private Action> FieldSecurityDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } + private ICollection NamesValue { get; set; } private ICollection PrivilegesValue { get; set; } private object? QueryValue { get; set; } @@ -131,7 +131,7 @@ public IndicesPrivilegesDescriptor FieldSecurity(Action /// - public IndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) + public IndicesPrivilegesDescriptor Names(ICollection names) { NamesValue = names; return Self; @@ -210,7 +210,7 @@ public IndicesPrivilegesDescriptor() : base() private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } private Action FieldSecurityDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } + private ICollection NamesValue { get; set; } private ICollection PrivilegesValue { get; set; } private object? QueryValue { get; set; } @@ -259,7 +259,7 @@ public IndicesPrivilegesDescriptor FieldSecurity(Action /// - public IndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) + public IndicesPrivilegesDescriptor Names(ICollection names) { NamesValue = names; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs index 76e91fab6de..068928f43c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs @@ -59,7 +59,7 @@ public sealed partial class RemoteIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - public Elastic.Clients.Elasticsearch.Indices Names { get; set; } + public ICollection Names { get; set; } /// /// @@ -91,7 +91,7 @@ public RemoteIndicesPrivilegesDescriptor() : base() private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } private Action> FieldSecurityDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } + private ICollection NamesValue { get; set; } private ICollection PrivilegesValue { get; set; } private object? QueryValue { get; set; } @@ -151,7 +151,7 @@ public RemoteIndicesPrivilegesDescriptor FieldSecurity(Action /// - public RemoteIndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) + public RemoteIndicesPrivilegesDescriptor Names(ICollection names) { NamesValue = names; return Self; @@ -233,7 +233,7 @@ public RemoteIndicesPrivilegesDescriptor() : base() private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } private Action FieldSecurityDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Indices NamesValue { get; set; } + private ICollection NamesValue { get; set; } private ICollection PrivilegesValue { get; set; } private object? QueryValue { get; set; } @@ -293,7 +293,7 @@ public RemoteIndicesPrivilegesDescriptor FieldSecurity(Action /// - public RemoteIndicesPrivilegesDescriptor Names(Elastic.Clients.Elasticsearch.Indices names) + public RemoteIndicesPrivilegesDescriptor Names(ICollection names) { NamesValue = names; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs index 5bacdaccaa6..00564aac314 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs @@ -51,7 +51,6 @@ public sealed partial class UserIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection Names { get; init; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs index 4f64a20937c..ce73c0c79b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs @@ -37,20 +37,18 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Xpack.Feature Archive { get; init; } [JsonInclude, JsonPropertyName("ccr")] public Elastic.Clients.Elasticsearch.Xpack.Feature Ccr { get; init; } - [JsonInclude, JsonPropertyName("data_frame")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? DataFrame { get; init; } - [JsonInclude, JsonPropertyName("data_science")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? DataScience { get; init; } [JsonInclude, JsonPropertyName("data_streams")] public Elastic.Clients.Elasticsearch.Xpack.Feature DataStreams { get; init; } [JsonInclude, JsonPropertyName("data_tiers")] public Elastic.Clients.Elasticsearch.Xpack.Feature DataTiers { get; init; } [JsonInclude, JsonPropertyName("enrich")] public Elastic.Clients.Elasticsearch.Xpack.Feature Enrich { get; init; } + [JsonInclude, JsonPropertyName("enterprise_search")] + public Elastic.Clients.Elasticsearch.Xpack.Feature EnterpriseSearch { get; init; } [JsonInclude, JsonPropertyName("eql")] public Elastic.Clients.Elasticsearch.Xpack.Feature Eql { get; init; } - [JsonInclude, JsonPropertyName("flattened")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? Flattened { get; init; } + [JsonInclude, JsonPropertyName("esql")] + public Elastic.Clients.Elasticsearch.Xpack.Feature Esql { get; init; } [JsonInclude, JsonPropertyName("frozen_indices")] public Elastic.Clients.Elasticsearch.Xpack.Feature FrozenIndices { get; init; } [JsonInclude, JsonPropertyName("graph")] @@ -79,8 +77,8 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Xpack.Feature Sql { get; init; } [JsonInclude, JsonPropertyName("transform")] public Elastic.Clients.Elasticsearch.Xpack.Feature Transform { get; init; } - [JsonInclude, JsonPropertyName("vectors")] - public Elastic.Clients.Elasticsearch.Xpack.Feature? Vectors { get; init; } + [JsonInclude, JsonPropertyName("universal_profiling")] + public Elastic.Clients.Elasticsearch.Xpack.Feature UniversalProfiling { get; init; } [JsonInclude, JsonPropertyName("voting_only")] public Elastic.Clients.Elasticsearch.Xpack.Feature VotingOnly { get; init; } [JsonInclude, JsonPropertyName("watcher")] From 7a881b5123ecdd3b29d1a26f8962e75324767659 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 14:40:18 +0200 Subject: [PATCH 12/28] Improve serializer (#8391) (#8393) Co-authored-by: Florian Bernd --- ...ic.Clients.Elasticsearch.Serverless.csproj | 4 +- .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 1 + .../AsyncSearch/DeleteAsyncSearchRequest.g.cs | 1 + .../AsyncSearch/GetAsyncSearchRequest.g.cs | 1 + .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 1 + .../_Generated/Api/BulkRequest.g.cs | 1 + .../_Generated/Api/ClearScrollRequest.g.cs | 1 + .../Api/ClosePointInTimeRequest.g.cs | 1 + .../Api/Cluster/AllocationExplainRequest.g.cs | 1 + .../Api/Cluster/ClusterInfoRequest.g.cs | 1 + .../Api/Cluster/ClusterStatsRequest.g.cs | 1 + .../DeleteComponentTemplateRequest.g.cs | 1 + .../ExistsComponentTemplateRequest.g.cs | 1 + .../Cluster/GetClusterSettingsRequest.g.cs | 1 + .../Cluster/GetComponentTemplateRequest.g.cs | 1 + .../_Generated/Api/Cluster/HealthRequest.g.cs | 1 + .../Api/Cluster/PendingTasksRequest.g.cs | 1 + .../Cluster/PutComponentTemplateRequest.g.cs | 1 + .../_Generated/Api/CountRequest.g.cs | 1 + .../_Generated/Api/CreateRequest.g.cs | 5 +- .../_Generated/Api/DeleteByQueryRequest.g.cs | 1 + .../Api/DeleteByQueryRethrottleRequest.g.cs | 1 + .../_Generated/Api/DeleteRequest.g.cs | 1 + .../_Generated/Api/DeleteScriptRequest.g.cs | 1 + .../Api/Enrich/DeletePolicyRequest.g.cs | 1 + .../Api/Enrich/EnrichStatsRequest.g.cs | 1 + .../Api/Enrich/ExecutePolicyRequest.g.cs | 1 + .../Api/Enrich/GetPolicyRequest.g.cs | 1 + .../Api/Enrich/PutPolicyRequest.g.cs | 1 + .../_Generated/Api/Eql/EqlDeleteRequest.g.cs | 1 + .../_Generated/Api/Eql/EqlGetRequest.g.cs | 1 + .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 1 + .../Api/Eql/GetEqlStatusRequest.g.cs | 1 + .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 1 + .../_Generated/Api/ExistsRequest.g.cs | 1 + .../_Generated/Api/ExistsSourceRequest.g.cs | 1 + .../_Generated/Api/ExplainRequest.g.cs | 1 + .../_Generated/Api/FieldCapsRequest.g.cs | 1 + .../_Generated/Api/GetRequest.g.cs | 1 + .../_Generated/Api/GetScriptRequest.g.cs | 1 + .../_Generated/Api/GetSourceRequest.g.cs | 1 + .../_Generated/Api/Graph/ExploreRequest.g.cs | 1 + .../_Generated/Api/HealthReportRequest.g.cs | 1 + .../IndexManagement/AnalyzeIndexRequest.g.cs | 1 + .../IndexManagement/ClearCacheRequest.g.cs | 1 + .../IndexManagement/CloseIndexRequest.g.cs | 1 + .../CreateDataStreamRequest.g.cs | 1 + .../IndexManagement/CreateIndexRequest.g.cs | 1 + .../DataStreamsStatsRequest.g.cs | 1 + .../IndexManagement/DeleteAliasRequest.g.cs | 1 + .../DeleteDataLifecycleRequest.g.cs | 1 + .../DeleteDataStreamRequest.g.cs | 1 + .../IndexManagement/DeleteIndexRequest.g.cs | 1 + .../DeleteIndexTemplateRequest.g.cs | 1 + .../IndexManagement/ExistsAliasRequest.g.cs | 1 + .../ExistsIndexTemplateRequest.g.cs | 1 + .../Api/IndexManagement/ExistsRequest.g.cs | 1 + .../ExplainDataLifecycleRequest.g.cs | 1 + .../Api/IndexManagement/FlushRequest.g.cs | 1 + .../IndexManagement/ForcemergeRequest.g.cs | 1 + .../Api/IndexManagement/GetAliasRequest.g.cs | 1 + .../GetDataLifecycleRequest.g.cs | 1 + .../IndexManagement/GetDataStreamRequest.g.cs | 1 + .../Api/IndexManagement/GetIndexRequest.g.cs | 1 + .../GetIndexTemplateRequest.g.cs | 1 + .../GetIndicesSettingsRequest.g.cs | 1 + .../IndexManagement/GetMappingRequest.g.cs | 1 + .../IndexManagement/IndicesStatsRequest.g.cs | 1 + .../MigrateToDataStreamRequest.g.cs | 1 + .../ModifyDataStreamRequest.g.cs | 1 + .../Api/IndexManagement/OpenIndexRequest.g.cs | 1 + .../Api/IndexManagement/PutAliasRequest.g.cs | 1 + .../PutDataLifecycleRequest.g.cs | 1 + .../PutIndexTemplateRequest.g.cs | 1 + .../PutIndicesSettingsRequest.g.cs | 1 + .../IndexManagement/PutMappingRequest.g.cs | 1 + .../Api/IndexManagement/RecoveryRequest.g.cs | 1 + .../Api/IndexManagement/RefreshRequest.g.cs | 1 + .../IndexManagement/ResolveIndexRequest.g.cs | 1 + .../Api/IndexManagement/RolloverRequest.g.cs | 1 + .../Api/IndexManagement/SegmentsRequest.g.cs | 1 + .../SimulateIndexTemplateRequest.g.cs | 1 + .../SimulateTemplateRequest.g.cs | 1 + .../IndexManagement/UpdateAliasesRequest.g.cs | 1 + .../IndexManagement/ValidateQueryRequest.g.cs | 1 + .../_Generated/Api/IndexRequest.g.cs | 5 +- .../_Generated/Api/InfoRequest.g.cs | 1 + .../Ingest/DeleteGeoipDatabaseRequest.g.cs | 1 + .../Api/Ingest/DeletePipelineRequest.g.cs | 1 + .../Api/Ingest/GeoIpStatsRequest.g.cs | 1 + .../Api/Ingest/GetGeoipDatabaseRequest.g.cs | 1 + .../Api/Ingest/GetPipelineRequest.g.cs | 1 + .../Api/Ingest/ProcessorGrokRequest.g.cs | 1 + .../Api/Ingest/PutGeoipDatabaseRequest.g.cs | 1 + .../Api/Ingest/PutPipelineRequest.g.cs | 1 + .../Api/Ingest/SimulateRequest.g.cs | 1 + .../LicenseManagement/GetLicenseRequest.g.cs | 1 + ...earTrainedModelDeploymentCacheRequest.g.cs | 1 + .../Api/MachineLearning/CloseJobRequest.g.cs | 1 + .../DeleteCalendarEventRequest.g.cs | 1 + .../DeleteCalendarJobRequest.g.cs | 1 + .../DeleteCalendarRequest.g.cs | 1 + .../DeleteDataFrameAnalyticsRequest.g.cs | 1 + .../DeleteDatafeedRequest.g.cs | 1 + .../DeleteExpiredDataRequest.g.cs | 1 + .../MachineLearning/DeleteFilterRequest.g.cs | 1 + .../DeleteForecastRequest.g.cs | 1 + .../Api/MachineLearning/DeleteJobRequest.g.cs | 1 + .../DeleteModelSnapshotRequest.g.cs | 1 + .../DeleteTrainedModelAliasRequest.g.cs | 1 + .../DeleteTrainedModelRequest.g.cs | 1 + .../EstimateModelMemoryRequest.g.cs | 1 + .../EvaluateDataFrameRequest.g.cs | 1 + .../ExplainDataFrameAnalyticsRequest.g.cs | 1 + .../Api/MachineLearning/FlushJobRequest.g.cs | 1 + .../Api/MachineLearning/ForecastRequest.g.cs | 1 + .../MachineLearning/GetBucketsRequest.g.cs | 1 + .../GetCalendarEventsRequest.g.cs | 1 + .../MachineLearning/GetCalendarsRequest.g.cs | 1 + .../MachineLearning/GetCategoriesRequest.g.cs | 1 + .../GetDataFrameAnalyticsRequest.g.cs | 1 + .../GetDataFrameAnalyticsStatsRequest.g.cs | 1 + .../GetDatafeedStatsRequest.g.cs | 1 + .../MachineLearning/GetDatafeedsRequest.g.cs | 1 + .../MachineLearning/GetFiltersRequest.g.cs | 1 + .../GetInfluencersRequest.g.cs | 1 + .../MachineLearning/GetJobStatsRequest.g.cs | 1 + .../Api/MachineLearning/GetJobsRequest.g.cs | 1 + .../GetMemoryStatsRequest.g.cs | 1 + .../GetModelSnapshotUpgradeStatsRequest.g.cs | 1 + .../GetModelSnapshotsRequest.g.cs | 1 + .../GetOverallBucketsRequest.g.cs | 1 + .../MachineLearning/GetRecordsRequest.g.cs | 1 + .../GetTrainedModelsRequest.g.cs | 1 + .../GetTrainedModelsStatsRequest.g.cs | 1 + .../InferTrainedModelRequest.g.cs | 1 + .../Api/MachineLearning/MlInfoRequest.g.cs | 1 + .../Api/MachineLearning/OpenJobRequest.g.cs | 1 + .../PostCalendarEventsRequest.g.cs | 1 + .../PreviewDataFrameAnalyticsRequest.g.cs | 1 + .../PutCalendarJobRequest.g.cs | 1 + .../MachineLearning/PutCalendarRequest.g.cs | 1 + .../PutDataFrameAnalyticsRequest.g.cs | 1 + .../MachineLearning/PutDatafeedRequest.g.cs | 1 + .../Api/MachineLearning/PutFilterRequest.g.cs | 1 + .../Api/MachineLearning/PutJobRequest.g.cs | 1 + .../PutTrainedModelAliasRequest.g.cs | 1 + .../PutTrainedModelDefinitionPartRequest.g.cs | 1 + .../PutTrainedModelRequest.g.cs | 1 + .../PutTrainedModelVocabularyRequest.g.cs | 1 + .../Api/MachineLearning/ResetJobRequest.g.cs | 1 + .../RevertModelSnapshotRequest.g.cs | 1 + .../SetUpgradeModeRequest.g.cs | 1 + .../StartDataFrameAnalyticsRequest.g.cs | 1 + .../MachineLearning/StartDatafeedRequest.g.cs | 1 + .../StartTrainedModelDeploymentRequest.g.cs | 1 + .../StopDataFrameAnalyticsRequest.g.cs | 1 + .../MachineLearning/StopDatafeedRequest.g.cs | 1 + .../StopTrainedModelDeploymentRequest.g.cs | 1 + .../UpdateDataFrameAnalyticsRequest.g.cs | 1 + .../UpdateDatafeedRequest.g.cs | 1 + .../MachineLearning/UpdateFilterRequest.g.cs | 1 + .../Api/MachineLearning/UpdateJobRequest.g.cs | 1 + .../UpdateModelSnapshotRequest.g.cs | 1 + .../UpgradeJobSnapshotRequest.g.cs | 1 + .../ValidateDetectorRequest.g.cs | 1 + .../Api/MachineLearning/ValidateRequest.g.cs | 1 + .../_Generated/Api/MultiGetRequest.g.cs | 1 + .../_Generated/Api/MultiSearchRequest.g.cs | 1 + .../Api/MultiSearchTemplateRequest.g.cs | 1 + .../Api/MultiTermVectorsRequest.g.cs | 1 + .../Api/Nodes/HotThreadsRequest.g.cs | 1 + .../Api/Nodes/NodesInfoRequest.g.cs | 1 + .../Api/Nodes/NodesStatsRequest.g.cs | 1 + .../Api/Nodes/NodesUsageRequest.g.cs | 1 + .../Api/OpenPointInTimeRequest.g.cs | 1 + .../_Generated/Api/PingRequest.g.cs | 1 + .../_Generated/Api/PutScriptRequest.g.cs | 1 + .../Api/QueryRules/DeleteRuleRequest.g.cs | 1 + .../Api/QueryRules/DeleteRulesetRequest.g.cs | 1 + .../Api/QueryRules/GetRuleRequest.g.cs | 1 + .../Api/QueryRules/GetRulesetRequest.g.cs | 1 + .../Api/QueryRules/ListRulesetsRequest.g.cs | 1 + .../Api/QueryRules/PutRuleRequest.g.cs | 1 + .../Api/QueryRules/PutRulesetRequest.g.cs | 1 + .../_Generated/Api/RankEvalRequest.g.cs | 1 + .../_Generated/Api/ReindexRequest.g.cs | 1 + .../Api/ReindexRethrottleRequest.g.cs | 1 + .../Api/RenderSearchTemplateRequest.g.cs | 1 + .../_Generated/Api/ScrollRequest.g.cs | 1 + .../_Generated/Api/SearchMvtRequest.g.cs | 1 + .../_Generated/Api/SearchRequest.g.cs | 1 + .../_Generated/Api/SearchTemplateRequest.g.cs | 1 + .../Security/ActivateUserProfileRequest.g.cs | 1 + .../Api/Security/AuthenticateRequest.g.cs | 1 + .../Api/Security/BulkDeleteRoleRequest.g.cs | 1 + .../Api/Security/BulkPutRoleRequest.g.cs | 1 + .../Api/Security/ClearApiKeyCacheRequest.g.cs | 1 + .../ClearCachedPrivilegesRequest.g.cs | 1 + .../Security/ClearCachedRealmsRequest.g.cs | 1 + .../Api/Security/ClearCachedRolesRequest.g.cs | 1 + .../ClearCachedServiceTokensRequest.g.cs | 1 + .../Api/Security/CreateApiKeyRequest.g.cs | 1 + .../Security/CreateServiceTokenRequest.g.cs | 1 + .../Api/Security/DeletePrivilegesRequest.g.cs | 1 + .../Security/DeleteRoleMappingRequest.g.cs | 1 + .../Api/Security/DeleteRoleRequest.g.cs | 1 + .../Security/DeleteServiceTokenRequest.g.cs | 1 + .../Security/DisableUserProfileRequest.g.cs | 1 + .../Security/EnableUserProfileRequest.g.cs | 1 + .../Api/Security/GetApiKeyRequest.g.cs | 1 + .../Security/GetBuiltinPrivilegesRequest.g.cs | 1 + .../Api/Security/GetPrivilegesRequest.g.cs | 1 + .../Api/Security/GetRoleMappingRequest.g.cs | 1 + .../Api/Security/GetRoleRequest.g.cs | 1 + .../Security/GetServiceAccountsRequest.g.cs | 1 + .../GetServiceCredentialsRequest.g.cs | 1 + .../Api/Security/GetTokenRequest.g.cs | 1 + .../Security/GetUserPrivilegesRequest.g.cs | 1 + .../Api/Security/GetUserProfileRequest.g.cs | 1 + .../Api/Security/GrantApiKeyRequest.g.cs | 1 + .../Api/Security/HasPrivilegesRequest.g.cs | 1 + .../HasPrivilegesUserProfileRequest.g.cs | 1 + .../Api/Security/InvalidateApiKeyRequest.g.cs | 1 + .../Api/Security/InvalidateTokenRequest.g.cs | 1 + .../Api/Security/PutPrivilegesRequest.g.cs | 1 + .../Api/Security/PutRoleMappingRequest.g.cs | 1 + .../Api/Security/PutRoleRequest.g.cs | 1 + .../Api/Security/QueryApiKeysRequest.g.cs | 1 + .../Api/Security/QueryRoleRequest.g.cs | 1 + .../Api/Security/QueryUserRequest.g.cs | 1 + .../Api/Security/SamlAuthenticateRequest.g.cs | 1 + .../Security/SamlCompleteLogoutRequest.g.cs | 1 + .../Api/Security/SamlInvalidateRequest.g.cs | 1 + .../Api/Security/SamlLogoutRequest.g.cs | 1 + .../SamlPrepareAuthenticationRequest.g.cs | 1 + .../SamlServiceProviderMetadataRequest.g.cs | 1 + .../Security/SuggestUserProfilesRequest.g.cs | 1 + .../Api/Security/UpdateApiKeyRequest.g.cs | 1 + .../UpdateUserProfileDataRequest.g.cs | 1 + .../Snapshot/CleanupRepositoryRequest.g.cs | 1 + .../Api/Snapshot/CloneSnapshotRequest.g.cs | 1 + .../Api/Snapshot/CreateRepositoryRequest.g.cs | 1 + .../Api/Snapshot/CreateSnapshotRequest.g.cs | 1 + .../Api/Snapshot/DeleteRepositoryRequest.g.cs | 1 + .../Api/Snapshot/DeleteSnapshotRequest.g.cs | 1 + .../Api/Snapshot/GetRepositoryRequest.g.cs | 1 + .../Api/Snapshot/GetSnapshotRequest.g.cs | 1 + .../Api/Snapshot/RestoreRequest.g.cs | 1 + .../Api/Snapshot/SnapshotStatusRequest.g.cs | 1 + .../Api/Snapshot/VerifyRepositoryRequest.g.cs | 1 + .../DeleteLifecycleRequest.g.cs | 1 + .../ExecuteLifecycleRequest.g.cs | 1 + .../ExecuteRetentionRequest.g.cs | 1 + .../GetLifecycleRequest.g.cs | 1 + .../GetSlmStatusRequest.g.cs | 1 + .../GetStatsRequest.g.cs | 1 + .../PutLifecycleRequest.g.cs | 1 + .../StartSlmRequest.g.cs | 1 + .../StopSlmRequest.g.cs | 1 + .../Api/Sql/ClearCursorRequest.g.cs | 1 + .../Api/Sql/DeleteAsyncRequest.g.cs | 1 + .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 1 + .../Api/Sql/GetAsyncStatusRequest.g.cs | 1 + .../_Generated/Api/Sql/QueryRequest.g.cs | 1 + .../_Generated/Api/Sql/TranslateRequest.g.cs | 1 + .../Api/Synonyms/DeleteSynonymRequest.g.cs | 1 + .../Synonyms/DeleteSynonymRuleRequest.g.cs | 1 + .../Api/Synonyms/GetSynonymRequest.g.cs | 1 + .../Api/Synonyms/GetSynonymRuleRequest.g.cs | 1 + .../Api/Synonyms/GetSynonymsSetsRequest.g.cs | 1 + .../Api/Synonyms/PutSynonymRequest.g.cs | 1 + .../Api/Synonyms/PutSynonymRuleRequest.g.cs | 1 + .../_Generated/Api/TermVectorsRequest.g.cs | 3 +- .../_Generated/Api/TermsEnumRequest.g.cs | 1 + .../TextStructure/TestGrokPatternRequest.g.cs | 1 + .../DeleteTransformRequest.g.cs | 1 + .../GetTransformRequest.g.cs | 1 + .../GetTransformStatsRequest.g.cs | 1 + .../PreviewTransformRequest.g.cs | 1 + .../PutTransformRequest.g.cs | 1 + .../ResetTransformRequest.g.cs | 1 + .../ScheduleNowTransformRequest.g.cs | 1 + .../StartTransformRequest.g.cs | 1 + .../StopTransformRequest.g.cs | 1 + .../UpdateTransformRequest.g.cs | 1 + .../UpgradeTransformsRequest.g.cs | 1 + .../_Generated/Api/UpdateByQueryRequest.g.cs | 1 + .../Api/UpdateByQueryRethrottleRequest.g.cs | 1 + .../_Generated/Api/UpdateRequest.g.cs | 5 +- .../Api/Xpack/XpackInfoRequest.g.cs | 1 + .../Api/Xpack/XpackUsageRequest.g.cs | 1 + .../Elastic.Clients.Elasticsearch.csproj | 2 +- .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 1 + .../AsyncSearch/DeleteAsyncSearchRequest.g.cs | 1 + .../AsyncSearch/GetAsyncSearchRequest.g.cs | 1 + .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 1 + .../_Generated/Api/BulkRequest.g.cs | 1 + .../_Generated/Api/ClearScrollRequest.g.cs | 1 + .../Api/ClosePointInTimeRequest.g.cs | 1 + .../Api/Cluster/AllocationExplainRequest.g.cs | 1 + .../Api/Cluster/ClusterInfoRequest.g.cs | 1 + .../Api/Cluster/ClusterStatsRequest.g.cs | 1 + .../DeleteComponentTemplateRequest.g.cs | 1 + .../DeleteVotingConfigExclusionsRequest.g.cs | 1 + .../ExistsComponentTemplateRequest.g.cs | 1 + .../Cluster/GetClusterSettingsRequest.g.cs | 1 + .../Cluster/GetComponentTemplateRequest.g.cs | 1 + .../_Generated/Api/Cluster/HealthRequest.g.cs | 1 + .../Api/Cluster/PendingTasksRequest.g.cs | 1 + .../PostVotingConfigExclusionsRequest.g.cs | 1 + .../Cluster/PutComponentTemplateRequest.g.cs | 1 + .../_Generated/Api/CountRequest.g.cs | 1 + .../_Generated/Api/CreateRequest.g.cs | 5 +- .../CcrStatsRequest.g.cs | 1 + .../DeleteAutoFollowPatternRequest.g.cs | 1 + .../FollowInfoRequest.g.cs | 1 + .../FollowRequest.g.cs | 1 + .../FollowStatsRequest.g.cs | 1 + .../ForgetFollowerRequest.g.cs | 1 + .../GetAutoFollowPatternRequest.g.cs | 1 + .../PauseAutoFollowPatternRequest.g.cs | 1 + .../PauseFollowRequest.g.cs | 1 + .../PutAutoFollowPatternRequest.g.cs | 1 + .../ResumeAutoFollowPatternRequest.g.cs | 1 + .../ResumeFollowRequest.g.cs | 1 + .../UnfollowRequest.g.cs | 1 + .../ListDanglingIndicesRequest.g.cs | 1 + .../_Generated/Api/DeleteByQueryRequest.g.cs | 1 + .../Api/DeleteByQueryRethrottleRequest.g.cs | 1 + .../_Generated/Api/DeleteRequest.g.cs | 1 + .../_Generated/Api/DeleteScriptRequest.g.cs | 1 + .../Api/Enrich/DeletePolicyRequest.g.cs | 1 + .../Api/Enrich/EnrichStatsRequest.g.cs | 1 + .../Api/Enrich/ExecutePolicyRequest.g.cs | 1 + .../Api/Enrich/GetPolicyRequest.g.cs | 1 + .../Api/Enrich/PutPolicyRequest.g.cs | 1 + .../_Generated/Api/Eql/EqlDeleteRequest.g.cs | 1 + .../_Generated/Api/Eql/EqlGetRequest.g.cs | 1 + .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 1 + .../Api/Eql/GetEqlStatusRequest.g.cs | 1 + .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 1 + .../_Generated/Api/ExistsRequest.g.cs | 1 + .../_Generated/Api/ExistsSourceRequest.g.cs | 1 + .../_Generated/Api/ExplainRequest.g.cs | 1 + .../Api/Features/GetFeaturesRequest.g.cs | 1 + .../Api/Features/ResetFeaturesRequest.g.cs | 1 + .../_Generated/Api/FieldCapsRequest.g.cs | 1 + .../_Generated/Api/GetRequest.g.cs | 1 + .../Api/GetScriptContextRequest.g.cs | 1 + .../Api/GetScriptLanguagesRequest.g.cs | 1 + .../_Generated/Api/GetScriptRequest.g.cs | 1 + .../_Generated/Api/GetSourceRequest.g.cs | 1 + .../_Generated/Api/Graph/ExploreRequest.g.cs | 1 + .../_Generated/Api/HealthReportRequest.g.cs | 1 + .../DeleteLifecycleRequest.g.cs | 1 + .../GetIlmStatusRequest.g.cs | 1 + .../GetLifecycleRequest.g.cs | 1 + .../MigrateToDataTiersRequest.g.cs | 1 + .../MoveToStepRequest.g.cs | 1 + .../PutLifecycleRequest.g.cs | 1 + .../RemovePolicyRequest.g.cs | 1 + .../RetryRequest.g.cs | 1 + .../StartIlmRequest.g.cs | 1 + .../StopIlmRequest.g.cs | 1 + .../IndexManagement/AnalyzeIndexRequest.g.cs | 1 + .../IndexManagement/ClearCacheRequest.g.cs | 1 + .../IndexManagement/CloneIndexRequest.g.cs | 1 + .../IndexManagement/CloseIndexRequest.g.cs | 1 + .../CreateDataStreamRequest.g.cs | 1 + .../IndexManagement/CreateIndexRequest.g.cs | 1 + .../DataStreamsStatsRequest.g.cs | 1 + .../IndexManagement/DeleteAliasRequest.g.cs | 1 + .../DeleteDataLifecycleRequest.g.cs | 1 + .../DeleteDataStreamRequest.g.cs | 1 + .../IndexManagement/DeleteIndexRequest.g.cs | 1 + .../DeleteIndexTemplateRequest.g.cs | 1 + .../DeleteTemplateRequest.g.cs | 1 + .../Api/IndexManagement/DiskUsageRequest.g.cs | 1 + .../IndexManagement/DownsampleRequest.g.cs | 1 + .../IndexManagement/ExistsAliasRequest.g.cs | 1 + .../ExistsIndexTemplateRequest.g.cs | 1 + .../Api/IndexManagement/ExistsRequest.g.cs | 1 + .../ExistsTemplateRequest.g.cs | 1 + .../ExplainDataLifecycleRequest.g.cs | 1 + .../FieldUsageStatsRequest.g.cs | 1 + .../Api/IndexManagement/FlushRequest.g.cs | 1 + .../IndexManagement/ForcemergeRequest.g.cs | 1 + .../Api/IndexManagement/GetAliasRequest.g.cs | 1 + .../GetDataLifecycleRequest.g.cs | 1 + .../IndexManagement/GetDataStreamRequest.g.cs | 1 + .../GetFieldMappingRequest.g.cs | 1 + .../Api/IndexManagement/GetIndexRequest.g.cs | 1 + .../GetIndexTemplateRequest.g.cs | 1 + .../GetIndicesSettingsRequest.g.cs | 1 + .../IndexManagement/GetMappingRequest.g.cs | 1 + .../IndexManagement/GetTemplateRequest.g.cs | 1 + .../IndexManagement/IndicesStatsRequest.g.cs | 1 + .../MigrateToDataStreamRequest.g.cs | 1 + .../ModifyDataStreamRequest.g.cs | 1 + .../Api/IndexManagement/OpenIndexRequest.g.cs | 1 + .../PromoteDataStreamRequest.g.cs | 1 + .../Api/IndexManagement/PutAliasRequest.g.cs | 1 + .../PutDataLifecycleRequest.g.cs | 1 + .../PutIndexTemplateRequest.g.cs | 1 + .../PutIndicesSettingsRequest.g.cs | 1 + .../IndexManagement/PutMappingRequest.g.cs | 1 + .../IndexManagement/PutTemplateRequest.g.cs | 1 + .../Api/IndexManagement/RecoveryRequest.g.cs | 1 + .../Api/IndexManagement/RefreshRequest.g.cs | 1 + .../ReloadSearchAnalyzersRequest.g.cs | 1 + .../ResolveClusterRequest.g.cs | 1 + .../IndexManagement/ResolveIndexRequest.g.cs | 1 + .../Api/IndexManagement/RolloverRequest.g.cs | 1 + .../Api/IndexManagement/SegmentsRequest.g.cs | 1 + .../IndexManagement/ShardStoresRequest.g.cs | 1 + .../IndexManagement/ShrinkIndexRequest.g.cs | 1 + .../SimulateIndexTemplateRequest.g.cs | 1 + .../SimulateTemplateRequest.g.cs | 1 + .../IndexManagement/SplitIndexRequest.g.cs | 1 + .../IndexManagement/UpdateAliasesRequest.g.cs | 1 + .../IndexManagement/ValidateQueryRequest.g.cs | 1 + .../_Generated/Api/IndexRequest.g.cs | 5 +- .../Api/Inference/DeleteInferenceRequest.g.cs | 1 + .../Api/Inference/GetInferenceRequest.g.cs | 1 + .../Api/Inference/InferenceRequest.g.cs | 1 + .../Api/Inference/PutInferenceRequest.g.cs | 1 + .../_Generated/Api/InfoRequest.g.cs | 1 + .../Ingest/DeleteGeoipDatabaseRequest.g.cs | 1 + .../Api/Ingest/DeletePipelineRequest.g.cs | 1 + .../Api/Ingest/GeoIpStatsRequest.g.cs | 1 + .../Api/Ingest/GetGeoipDatabaseRequest.g.cs | 1 + .../Api/Ingest/GetPipelineRequest.g.cs | 1 + .../Api/Ingest/ProcessorGrokRequest.g.cs | 1 + .../Api/Ingest/PutGeoipDatabaseRequest.g.cs | 1 + .../Api/Ingest/PutPipelineRequest.g.cs | 1 + .../Api/Ingest/SimulateRequest.g.cs | 1 + .../DeleteLicenseRequest.g.cs | 1 + .../GetBasicStatusRequest.g.cs | 1 + .../LicenseManagement/GetLicenseRequest.g.cs | 1 + .../GetTrialStatusRequest.g.cs | 1 + .../Api/LicenseManagement/PostRequest.g.cs | 1 + .../PostStartBasicRequest.g.cs | 1 + .../PostStartTrialRequest.g.cs | 1 + ...earTrainedModelDeploymentCacheRequest.g.cs | 1 + .../Api/MachineLearning/CloseJobRequest.g.cs | 1 + .../DeleteCalendarEventRequest.g.cs | 1 + .../DeleteCalendarJobRequest.g.cs | 1 + .../DeleteCalendarRequest.g.cs | 1 + .../DeleteDataFrameAnalyticsRequest.g.cs | 1 + .../DeleteDatafeedRequest.g.cs | 1 + .../DeleteExpiredDataRequest.g.cs | 1 + .../MachineLearning/DeleteFilterRequest.g.cs | 1 + .../DeleteForecastRequest.g.cs | 1 + .../Api/MachineLearning/DeleteJobRequest.g.cs | 1 + .../DeleteModelSnapshotRequest.g.cs | 1 + .../DeleteTrainedModelAliasRequest.g.cs | 1 + .../DeleteTrainedModelRequest.g.cs | 1 + .../EstimateModelMemoryRequest.g.cs | 1 + .../EvaluateDataFrameRequest.g.cs | 1 + .../ExplainDataFrameAnalyticsRequest.g.cs | 1 + .../Api/MachineLearning/FlushJobRequest.g.cs | 1 + .../Api/MachineLearning/ForecastRequest.g.cs | 1 + .../MachineLearning/GetBucketsRequest.g.cs | 1 + .../GetCalendarEventsRequest.g.cs | 1 + .../MachineLearning/GetCalendarsRequest.g.cs | 1 + .../MachineLearning/GetCategoriesRequest.g.cs | 1 + .../GetDataFrameAnalyticsRequest.g.cs | 1 + .../GetDataFrameAnalyticsStatsRequest.g.cs | 1 + .../GetDatafeedStatsRequest.g.cs | 1 + .../MachineLearning/GetDatafeedsRequest.g.cs | 1 + .../MachineLearning/GetFiltersRequest.g.cs | 1 + .../GetInfluencersRequest.g.cs | 1 + .../MachineLearning/GetJobStatsRequest.g.cs | 1 + .../Api/MachineLearning/GetJobsRequest.g.cs | 1 + .../GetMemoryStatsRequest.g.cs | 1 + .../GetModelSnapshotUpgradeStatsRequest.g.cs | 1 + .../GetModelSnapshotsRequest.g.cs | 1 + .../GetOverallBucketsRequest.g.cs | 1 + .../MachineLearning/GetRecordsRequest.g.cs | 1 + .../GetTrainedModelsRequest.g.cs | 1 + .../GetTrainedModelsStatsRequest.g.cs | 1 + .../InferTrainedModelRequest.g.cs | 1 + .../Api/MachineLearning/MlInfoRequest.g.cs | 1 + .../Api/MachineLearning/OpenJobRequest.g.cs | 1 + .../PostCalendarEventsRequest.g.cs | 1 + .../PreviewDataFrameAnalyticsRequest.g.cs | 1 + .../PutCalendarJobRequest.g.cs | 1 + .../MachineLearning/PutCalendarRequest.g.cs | 1 + .../PutDataFrameAnalyticsRequest.g.cs | 1 + .../MachineLearning/PutDatafeedRequest.g.cs | 1 + .../Api/MachineLearning/PutFilterRequest.g.cs | 1 + .../Api/MachineLearning/PutJobRequest.g.cs | 1 + .../PutTrainedModelAliasRequest.g.cs | 1 + .../PutTrainedModelDefinitionPartRequest.g.cs | 1 + .../PutTrainedModelRequest.g.cs | 1 + .../PutTrainedModelVocabularyRequest.g.cs | 1 + .../Api/MachineLearning/ResetJobRequest.g.cs | 1 + .../RevertModelSnapshotRequest.g.cs | 1 + .../SetUpgradeModeRequest.g.cs | 1 + .../StartDataFrameAnalyticsRequest.g.cs | 1 + .../MachineLearning/StartDatafeedRequest.g.cs | 1 + .../StartTrainedModelDeploymentRequest.g.cs | 1 + .../StopDataFrameAnalyticsRequest.g.cs | 1 + .../MachineLearning/StopDatafeedRequest.g.cs | 1 + .../StopTrainedModelDeploymentRequest.g.cs | 1 + .../UpdateDataFrameAnalyticsRequest.g.cs | 1 + .../UpdateDatafeedRequest.g.cs | 1 + .../MachineLearning/UpdateFilterRequest.g.cs | 1 + .../Api/MachineLearning/UpdateJobRequest.g.cs | 1 + .../UpdateModelSnapshotRequest.g.cs | 1 + .../UpdateTrainedModelDeploymentRequest.g.cs | 1 + .../UpgradeJobSnapshotRequest.g.cs | 1 + .../ValidateDetectorRequest.g.cs | 1 + .../Api/MachineLearning/ValidateRequest.g.cs | 1 + .../_Generated/Api/MultiGetRequest.g.cs | 1 + .../_Generated/Api/MultiSearchRequest.g.cs | 1 + .../Api/MultiSearchTemplateRequest.g.cs | 1 + .../Api/MultiTermVectorsRequest.g.cs | 1 + ...earRepositoriesMeteringArchiveRequest.g.cs | 1 + .../GetRepositoriesMeteringInfoRequest.g.cs | 1 + .../Api/Nodes/HotThreadsRequest.g.cs | 1 + .../Api/Nodes/NodesInfoRequest.g.cs | 1 + .../Api/Nodes/NodesStatsRequest.g.cs | 1 + .../Api/Nodes/NodesUsageRequest.g.cs | 1 + .../Nodes/ReloadSecureSettingsRequest.g.cs | 1 + .../Api/OpenPointInTimeRequest.g.cs | 1 + .../_Generated/Api/PingRequest.g.cs | 1 + .../_Generated/Api/PutScriptRequest.g.cs | 1 + .../Api/QueryRules/DeleteRuleRequest.g.cs | 1 + .../Api/QueryRules/DeleteRulesetRequest.g.cs | 1 + .../Api/QueryRules/GetRuleRequest.g.cs | 1 + .../Api/QueryRules/GetRulesetRequest.g.cs | 1 + .../Api/QueryRules/ListRulesetsRequest.g.cs | 1 + .../Api/QueryRules/PutRuleRequest.g.cs | 1 + .../Api/QueryRules/PutRulesetRequest.g.cs | 1 + .../_Generated/Api/RankEvalRequest.g.cs | 1 + .../_Generated/Api/ReindexRequest.g.cs | 1 + .../Api/ReindexRethrottleRequest.g.cs | 1 + .../Api/RenderSearchTemplateRequest.g.cs | 1 + .../Api/Rollup/DeleteJobRequest.g.cs | 1 + .../_Generated/Api/Rollup/GetJobsRequest.g.cs | 1 + .../Api/Rollup/GetRollupCapsRequest.g.cs | 1 + .../Api/Rollup/GetRollupIndexCapsRequest.g.cs | 1 + .../_Generated/Api/Rollup/PutJobRequest.g.cs | 1 + .../Api/Rollup/RollupSearchRequest.g.cs | 1 + .../Api/Rollup/StartJobRequest.g.cs | 1 + .../_Generated/Api/Rollup/StopJobRequest.g.cs | 1 + .../Api/ScriptsPainlessExecuteRequest.g.cs | 1 + .../_Generated/Api/ScrollRequest.g.cs | 1 + .../DeleteBehavioralAnalyticsRequest.g.cs | 1 + .../DeleteSearchApplicationRequest.g.cs | 1 + .../GetBehavioralAnalyticsRequest.g.cs | 1 + .../GetSearchApplicationRequest.g.cs | 1 + .../Api/SearchApplication/ListRequest.g.cs | 1 + .../PutBehavioralAnalyticsRequest.g.cs | 1 + .../PutSearchApplicationRequest.g.cs | 1 + .../SearchApplicationSearchRequest.g.cs | 1 + .../_Generated/Api/SearchMvtRequest.g.cs | 1 + .../_Generated/Api/SearchRequest.g.cs | 1 + .../_Generated/Api/SearchShardsRequest.g.cs | 1 + .../_Generated/Api/SearchTemplateRequest.g.cs | 1 + .../CacheStatsRequest.g.cs | 1 + .../ClearCacheRequest.g.cs | 1 + .../Api/SearchableSnapshots/MountRequest.g.cs | 1 + .../SearchableSnapshotsStatsRequest.g.cs | 1 + .../Security/ActivateUserProfileRequest.g.cs | 1 + .../Api/Security/AuthenticateRequest.g.cs | 1 + .../Api/Security/BulkDeleteRoleRequest.g.cs | 1 + .../Api/Security/BulkPutRoleRequest.g.cs | 1 + .../Api/Security/ChangePasswordRequest.g.cs | 1 + .../Api/Security/ClearApiKeyCacheRequest.g.cs | 1 + .../ClearCachedPrivilegesRequest.g.cs | 1 + .../Security/ClearCachedRealmsRequest.g.cs | 1 + .../Api/Security/ClearCachedRolesRequest.g.cs | 1 + .../ClearCachedServiceTokensRequest.g.cs | 1 + .../Api/Security/CreateApiKeyRequest.g.cs | 1 + .../Security/CreateServiceTokenRequest.g.cs | 1 + .../Api/Security/DeletePrivilegesRequest.g.cs | 1 + .../Security/DeleteRoleMappingRequest.g.cs | 1 + .../Api/Security/DeleteRoleRequest.g.cs | 1 + .../Security/DeleteServiceTokenRequest.g.cs | 1 + .../Api/Security/DeleteUserRequest.g.cs | 1 + .../Security/DisableUserProfileRequest.g.cs | 1 + .../Api/Security/DisableUserRequest.g.cs | 1 + .../Security/EnableUserProfileRequest.g.cs | 1 + .../Api/Security/EnableUserRequest.g.cs | 1 + .../Api/Security/EnrollKibanaRequest.g.cs | 1 + .../Api/Security/EnrollNodeRequest.g.cs | 1 + .../Api/Security/GetApiKeyRequest.g.cs | 1 + .../Security/GetBuiltinPrivilegesRequest.g.cs | 1 + .../Api/Security/GetPrivilegesRequest.g.cs | 1 + .../Api/Security/GetRoleMappingRequest.g.cs | 1 + .../Api/Security/GetRoleRequest.g.cs | 1 + .../Security/GetServiceAccountsRequest.g.cs | 1 + .../GetServiceCredentialsRequest.g.cs | 1 + .../Api/Security/GetTokenRequest.g.cs | 1 + .../Security/GetUserPrivilegesRequest.g.cs | 1 + .../Api/Security/GetUserProfileRequest.g.cs | 1 + .../Api/Security/GetUserRequest.g.cs | 1 + .../Api/Security/GrantApiKeyRequest.g.cs | 1 + .../Api/Security/HasPrivilegesRequest.g.cs | 1 + .../HasPrivilegesUserProfileRequest.g.cs | 1 + .../Api/Security/InvalidateApiKeyRequest.g.cs | 1 + .../Api/Security/InvalidateTokenRequest.g.cs | 1 + .../Api/Security/PutPrivilegesRequest.g.cs | 1 + .../Api/Security/PutRoleMappingRequest.g.cs | 1 + .../Api/Security/PutRoleRequest.g.cs | 1 + .../Api/Security/PutUserRequest.g.cs | 1 + .../Api/Security/QueryApiKeysRequest.g.cs | 1 + .../Api/Security/QueryRoleRequest.g.cs | 1 + .../Api/Security/QueryUserRequest.g.cs | 1 + .../Api/Security/SamlAuthenticateRequest.g.cs | 1 + .../Security/SamlCompleteLogoutRequest.g.cs | 1 + .../Api/Security/SamlInvalidateRequest.g.cs | 1 + .../Api/Security/SamlLogoutRequest.g.cs | 1 + .../SamlPrepareAuthenticationRequest.g.cs | 1 + .../SamlServiceProviderMetadataRequest.g.cs | 1 + .../Security/SuggestUserProfilesRequest.g.cs | 1 + .../Api/Security/UpdateApiKeyRequest.g.cs | 1 + .../UpdateUserProfileDataRequest.g.cs | 1 + .../Snapshot/CleanupRepositoryRequest.g.cs | 1 + .../Api/Snapshot/CloneSnapshotRequest.g.cs | 1 + .../Api/Snapshot/CreateRepositoryRequest.g.cs | 1 + .../Api/Snapshot/CreateSnapshotRequest.g.cs | 1 + .../Api/Snapshot/DeleteRepositoryRequest.g.cs | 1 + .../Api/Snapshot/DeleteSnapshotRequest.g.cs | 1 + .../Api/Snapshot/GetRepositoryRequest.g.cs | 1 + .../Api/Snapshot/GetSnapshotRequest.g.cs | 1 + .../Api/Snapshot/RestoreRequest.g.cs | 1 + .../Api/Snapshot/SnapshotStatusRequest.g.cs | 1 + .../Api/Snapshot/VerifyRepositoryRequest.g.cs | 1 + .../DeleteLifecycleRequest.g.cs | 1 + .../ExecuteLifecycleRequest.g.cs | 1 + .../ExecuteRetentionRequest.g.cs | 1 + .../GetLifecycleRequest.g.cs | 1 + .../GetSlmStatusRequest.g.cs | 1 + .../GetStatsRequest.g.cs | 1 + .../PutLifecycleRequest.g.cs | 1 + .../StartSlmRequest.g.cs | 1 + .../StopSlmRequest.g.cs | 1 + .../Api/Sql/ClearCursorRequest.g.cs | 1 + .../Api/Sql/DeleteAsyncRequest.g.cs | 1 + .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 1 + .../Api/Sql/GetAsyncStatusRequest.g.cs | 1 + .../_Generated/Api/Sql/QueryRequest.g.cs | 1 + .../_Generated/Api/Sql/TranslateRequest.g.cs | 1 + .../Api/Synonyms/DeleteSynonymRequest.g.cs | 1 + .../Synonyms/DeleteSynonymRuleRequest.g.cs | 1 + .../Api/Synonyms/GetSynonymRequest.g.cs | 1 + .../Api/Synonyms/GetSynonymRuleRequest.g.cs | 1 + .../Api/Synonyms/GetSynonymsSetsRequest.g.cs | 1 + .../Api/Synonyms/PutSynonymRequest.g.cs | 1 + .../Api/Synonyms/PutSynonymRuleRequest.g.cs | 1 + .../_Generated/Api/Tasks/CancelRequest.g.cs | 1 + .../_Generated/Api/Tasks/GetTasksRequest.g.cs | 1 + .../_Generated/Api/Tasks/ListRequest.g.cs | 1 + .../_Generated/Api/TermVectorsRequest.g.cs | 3 +- .../_Generated/Api/TermsEnumRequest.g.cs | 1 + .../TextStructure/TestGrokPatternRequest.g.cs | 1 + .../DeleteTransformRequest.g.cs | 1 + .../GetTransformRequest.g.cs | 1 + .../GetTransformStatsRequest.g.cs | 1 + .../PreviewTransformRequest.g.cs | 1 + .../PutTransformRequest.g.cs | 1 + .../ResetTransformRequest.g.cs | 1 + .../ScheduleNowTransformRequest.g.cs | 1 + .../StartTransformRequest.g.cs | 1 + .../StopTransformRequest.g.cs | 1 + .../UpdateTransformRequest.g.cs | 1 + .../UpgradeTransformsRequest.g.cs | 1 + .../_Generated/Api/UpdateByQueryRequest.g.cs | 1 + .../Api/UpdateByQueryRethrottleRequest.g.cs | 1 + .../_Generated/Api/UpdateRequest.g.cs | 5 +- .../Api/Xpack/XpackInfoRequest.g.cs | 1 + .../Api/Xpack/XpackUsageRequest.g.cs | 1 + .../ElasticsearchClientSettings.cs | 33 ++-- .../_Shared/Core/Fields/FieldValue.cs | 25 ++- .../DefaultRequestResponseSerializer.cs | 104 +++++++---- .../Serialization/DefaultSourceSerializer.cs | 120 ++++++------- .../Serialization/SerializerExtensions.cs | 27 --- .../_Shared/Serialization/SourceConverter.cs | 6 +- .../Serialization/SourceSerialization.cs | 127 -------------- .../Serialization/SystemTextJsonSerializer.cs | 164 ------------------ .../Types/Core/Bulk/BulkCreateOperation.cs | 4 +- .../Bulk/BulkCreateOperationDescriptor.cs | 13 +- .../Types/Core/Bulk/BulkDeleteOperation.cs | 4 +- .../Bulk/BulkDeleteOperationDescriptor.cs | 9 +- .../Types/Core/Bulk/BulkIndexOperation.cs | 4 +- .../Core/Bulk/BulkIndexOperationDescriptor.cs | 11 +- .../_Shared/Types/Core/Bulk/BulkUpdateBody.cs | 5 +- .../Types/Core/Bulk/BulkUpdateOperation.cs | 1 + .../Bulk/BulkUpdateOperationDescriptor.cs | 5 +- .../Types/Core/Bulk/PartialBulkUpdateBody.cs | 3 +- .../Types/Core/Bulk/ScriptedBulkUpdateBody.cs | 3 +- .../Types/Core/MSearch/SearchRequestItem.cs | 23 +-- .../SearchTemplateRequestItem.cs | 23 +-- src/Playground/Person.cs | 2 + src/Playground/Playground.csproj | 2 +- tests/Tests/Tests.csproj | 4 +- 700 files changed, 912 insertions(+), 518 deletions(-) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializerExtensions.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceSerialization.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SystemTextJsonSerializer.cs diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj index e2e4cdf3d98..4e00bb4e38c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj +++ b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj @@ -21,7 +21,7 @@ annotations - + @@ -37,7 +37,7 @@ - + \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index 06fbaa3a2ea..c87bdfffbbe 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs index 4b524cfa19b..5f52d5657f5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index 6952b0ab921..eb6996e3141 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index 3619775104c..201bd4cacd2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 65263841972..889eec89881 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs index 7fcb74ce47c..5ef6d921fee 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs index b8a16c05cd3..fce101f4962 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs index 47b3e3d5d75..7dbc3bec9aa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 170fa7a9c24..31f8239a78c 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs index 90fdb724cdb..13e796ad368 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 d4196ab4fe1..b1deddeacbe 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 56298476081..93382cdfb0d 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs index 90cc00b8be0..f1fea9585c1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 952edd6d748..fc9c79d5584 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs index c1acf1cbf5a..147223cde7a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs index 82887bf785b..1e2e00c2840 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 ef662199d23..010a9dead81 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs index 75b17d65999..2fb04c094d4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 5b089946b08..effdf74767f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -172,7 +173,7 @@ public CreateRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(Document, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(Document, writer); } } @@ -238,6 +239,6 @@ public CreateRequestDescriptor Document(TDocument document) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(DocumentValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocumentValue, writer); } } \ No newline at end of file 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 debf47d9556..3d339e7542c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index cfa4ef28582..e56fc10d40d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 cb8667dabf2..2aad452164c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 111b0c8bda6..3f00760dcc2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 208da72b44b..6ea6f518ad4 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 28a5d38229d..1941f7b01c8 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs index 341956997e7..bfcd84f9629 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 8bdf06568c5..18a6f0883de 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 52d73b69b22..2b519e863af 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs index f908eea90e5..26bafe47bd1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs index 0bbd65326c0..c9192b2f318 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs index 086ac9ef3c4..f01dfc28fc2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs index d88d22c56bb..4c8761fbd1c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 index 3a9c22fbcf8..0d7346ea8b4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e24bcb41a50..49b0e900db4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 19dbbc8c024..2f40a52f211 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 28d5e4b07a8..b372cd2365c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs index 293d92123dd..da4e00b2404 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e63379bc27d..ab515ef772d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 1895448bcf2..9550ee70937 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 28f508e3429..a7cf0ccf4a0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs index 919bd54cfd5..98a5e46eb17 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs index a50ae8b7405..95f49997489 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs index e340047680c..19c041d5f48 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index f5c44eb2b8d..b775af01f88 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index b2b1457b415..fea6ec149ae 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 5183e7d899e..b9173b90ce0 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 3cb5cfa008b..746e53173e0 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 23ca7d0e743..71d611237d2 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 79e974c5971..7e96e2d1523 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 5c7353df9c6..d51c20ece9f 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e178b78aa84..bf4d32f7578 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 3e2f89fd832..b9999ccd09b 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs index 32f44bf2b47..41a810306d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 a622fae0b98..9f27881dc8f 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs index d7979515bbc..661999ee9f7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 ff4cda826be..0236d6f8fb4 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 9c6b9667348..e0b93bd6566 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs index aa4e5d9d7da..14a44b06337 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 64f8ea4330c..4a1a1515bfa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e9b58304329..53820d6bb2a 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 c16e10b2327..d01d9a3cf0f 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 88efd35baf2..0875d040842 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 42c8a75f74d..b75468eb210 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs index 134c2334a9a..e75aa237879 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e1453114ad2..0c47c6f8d5a 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 11da64b673d..966e283780e 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index 9ad8458a9a6..accee52904d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 c492fe65fb7..9bdaa0a0cfc 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 1145204f2c7..13a2456efc9 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index ac21682f415..2c0a31fa6b1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 36431fcb415..9a41aa815c3 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 439d6377046..3c979b58a57 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs index 0bb21806f9b..5ff90d349b1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 658feafaeb0..ea49bfef5ac 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e59d8c3dddc..64cd0a8f573 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index 40b9b4b55d0..e1995519ba4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 3bdb87f8baf..d8b77384e22 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index 35ff26b1dce..93fefd387c2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 0121d53bc30..8fb0a81cfd2 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 2f68f3a4ec4..0960e65ef67 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index 7e77705f613..b5ec5a933a7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs index d2221056b69..0eda30d559e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 5a97ea06129..eb681f76ea7 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 fab104b5d0b..74dcc20cc2e 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 b4a45e8a2a4..de8f1f2caf9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -246,7 +247,7 @@ public IndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(Document, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(Document, writer); } } @@ -316,6 +317,6 @@ public IndexRequestDescriptor Document(TDocument document) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(DocumentValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocumentValue, writer); } } \ No newline at end of file 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 5f2c5c58308..7b25a03ae4e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs index 3832abe96c9..4f5534ed14b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs index ce25577c563..8f5ab4ef007 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs index 5c504e1a06a..e8c2ad23910 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs index 9357f9a91aa..fad567b53e1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs index 1eaa9de7745..6c0946d0c25 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs index 40ea0fdd310..d215d173bb3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs index a3301b745e5..786cdeb77e0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs index f4019717ca4..fd417ebf29c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs index 836ce519196..7d516a05062 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 8b2735c6601..772b0aac731 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs index db0df6d163d..b70da8b4f0b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 9f2c6d30fc3..58d90c398c7 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs index 8c19f7e7fa3..a9193fe4006 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs index 54ca856ea5f..5926fd2b73c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs index ce43b27a948..b77793deb14 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs index 610d57b513c..7be7cfbcf04 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs index 14213fd405f..00d0678ceed 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs index 8fc811170f4..4731b95db3b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs index 7bf228c64b8..c7d73bbee0f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs index 3316c5ce8aa..65e2a4bcba5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 d80fc5507b8..b3ae38ccd95 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs index b9668f74c3f..f7f45614a18 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs index 129416bc867..8a2bb6f0332 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs index 2f389266385..a67f6f1a816 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs index 61cd20f930b..31aba530006 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs index 31bba7175d0..5e75e055fc7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs index d3ba88414e2..bcba58a723b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs index 3c31c77effa..9be14763bfa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs index 0d568f3f451..d7ab688c996 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs index 2728612b64e..000c92a69a4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs index fd707b15679..89dc4aec915 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs index 858887e8078..4ea7f49c534 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs index 62ffd0e1fd5..22c6ffe83ea 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs index 0d3fa16f386..978f87804b9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs index f2cb75d7087..37e600dff08 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs index 7ff66606245..202bb74adaa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs index e5953844a97..0c7a6c9e4bb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs index 75c987777ed..50976e51819 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs index 8465dd876ae..a2bfb5349fc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs index 4c7c1da7d14..bcaf990b9ca 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs index d1d20095279..57b18c0b024 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs index 984de164d30..566744ca06f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs index 2c1de76fc72..794d29a8ffa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs index 97a917919f1..c222148d131 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs index 2c7945a73f6..1e2877a88e7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs index ce17db2305d..5c1469f0ce4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs index 35a99be4287..309d344b1ad 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs index f8d61fd5c89..8bdac0c39d1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs index 38140045363..93354770d71 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs index f22997bf6ff..eaed39dd0d7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 3abb9f4d4e6..079c74ffe3e 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs index 9129a7de810..a4fe8a7aa03 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs index 846920231f1..18255393669 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs index e8dd1e140a3..f14d06fa9be 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs index a3e81d7d81f..30744c748b0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs index 3eab22835d9..8f5e1b2b473 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 0ebb1ea6b80..21cd468437c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs index 307c8c63327..83aece34c13 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 8e7709adc0a..a328a9024b6 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs index 50c8269a441..7e1b3290619 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs index 99d244dd5f1..46b073093ea 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs index f4e94246cc5..7d4e626063e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs index a95bd42111c..726bb60eafc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs index 6f37f08b868..aa3f166a8e7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs index abc7ec6dc2e..facea174277 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs index 163c705e894..5e1a6f0f920 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs index 0193352dfeb..c4967363ed4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs index 4e45349d057..b13efcbd0ea 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs index 8239be0b587..f84b0145fcc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs index 979254508ff..ee5fbdccf66 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs index ee776b9d3da..5e2ff84485d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs index 8c06e8ee0e2..8caf585fe7d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs index a8a95458c4e..3deec915db0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs index fd7b187677e..4a7029991d4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs index 776f304e42a..fe2b4112df2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs index 9ac634298a2..ae9051b30bc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs index 0b02574bcef..482d98fbf97 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs index 0e385cc3350..18b35ba5b71 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs index 0d71e337459..2a37e67278c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs index da1ea34eb21..74f7c612d62 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs index 1ce6fadcc65..9aa85448a96 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs index cacee94a167..8c0ef9bbda7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs index b8c319c3d88..3d32f3e4575 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs index 78dae622801..1f4602c4741 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs index a0e1f4011c6..db93be34837 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs index 2d418a9957c..4b4b4da648f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs index 2eb10229211..84bcd40044d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs index e655fd43792..2b05ccd320b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs index 769f6db4bcb..da6b9acc96f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 33dafd6f976..ca73ff8e6b8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e86f7e88aa1..dcb83136ca9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs index dd95c7a0111..68f4d45387b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs index fbccf927d64..53750c2a169 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs index 1800ee95924..82b9cfb4363 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs index e7df1907fed..713129ca4dd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs index bfac7d7d9c4..b8ac43368da 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 e8c13c62bdd..df796ed43a9 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 cd31931ffe0..c5345402201 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs index 69ff475374b..85d9c3e904c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 95d2c0f1980..2bdf65a0f2d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs index ddb5d42e4f1..d0738646824 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs index 07b1760ae43..98214e0bfa4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs index 80b60e31b90..4f722b979b8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 27cb84e2b63..5c1f2d95bc6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs index 35976debed0..79e1a49b383 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs index 9cd5b268e2c..e1288d7fefc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs index 9b7d53c88ad..51d7f4d54b2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs index 8788e7dc1ed..ecd2ad18764 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs index 49545b0f963..ee3942ef7ac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs index 0a15f6d6413..f7cf7f825e2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs index 4647a129f1b..342b9460d4d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs index cef156ee080..6222ec0725b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs index 38ff7ca998b..e867442c434 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs index 38e07e69001..63eb2f221d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs index 5bb0d3a44d7..6290641f215 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs index 1eee8df99aa..45ea6354019 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs index fd4f499ab0a..cf914c5cb46 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs index 3ba1aaaa1cf..b13523c31d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs index b9f237e97a6..51e64452bb0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs index 50ac48cefc1..8b78b92a099 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs index 11073804c2b..48fd4aeb88e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs index fc3ed9282be..ffe29e0129b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs index 2263cb4aa2b..4e0b5e25e00 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs index ab5a750f0b6..4b6499dc563 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs index 26bff95de4f..326829e915f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs index ec87394ca9e..da45eb97feb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs index a1a2f9bf581..30e94b5b7f3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs index 3b86f9ba8c9..f4132f81a2f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs index af9fd73de29..3d722b0eb8b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs index f790f6794c9..3d2a0ecfb8d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs index 3b89a43486b..0fea9bc36db 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs index 9b3f5475ff9..3f6b988aad1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs index d1fdb32c053..bb282a71b60 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs index dc869cec5ba..250badd5619 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs index 75358b5db25..dbeec56ac2a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs index 3c691698789..ec0fc8461a8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs index b07642ff132..d9256ca110e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs index 1e65b16c9c9..3f146541c72 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs index f3253850b85..ab3366a5509 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs index f0fd4a895c9..9be7d80b892 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs index 93c7b54b71c..17b733fefac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs index 4589cb5ef09..7e74a7993c4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs index fffc62f9085..87f3f201e45 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs index 68f7966e44d..0f1142d276b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs index 312f6abf4a7..148ca66cd00 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs index a12629e4ba2..66f777e8d73 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs index cf7be1c7b05..cdcc6ca1c5a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs index cd2b87084c8..0423c1881d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs index 6a4c33b6a6f..92570ab779d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs index de2a004a00a..91804f5cb3b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs index 889d901e195..48bb4800091 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs index cc892285e51..06552e2e13c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs index 80213bcee15..632005a5cc7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs index dc3a32faf69..536a9900476 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs index 895f9427c77..980e63215bd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs index f439eb01a71..aa33ea57182 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs index c5a148f5447..3ddf306d510 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs index 8f1161f20dc..9ffe834ee6e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs index e505498c8fb..d3b43160891 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs index 52143cbe9c8..42c34330963 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs index e6fbe84a0c6..cead7ac5f96 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs index 919861aeefb..1bad85d4a84 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs index 48d630754f2..380bc29ce61 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs index 60bc82b4c76..9cb312c97e3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs index 9185dfb4497..4928051cc69 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs index 94e6ed2d209..8eef429b7c5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs index 85ebef47e24..f40e8846bee 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs index 9176c90f39a..ec9a638e65a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs index 97a1b70b905..fbf1bca10a5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs index 4dfaa30bda6..f9493bf36d2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs index 8f8d136e97a..0db37421a40 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs index 394d34fdec0..30e8185be51 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs index 2492c4d0d46..f45eb97087a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs index d3f5a2a415c..cdd973674e8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs index cc741e63644..cd4a651c231 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs index 35a0477155a..67f792e1318 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs index e356874e9da..eef69541dba 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs index c07aacaaa31..52855fd1922 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs index ff1c27a038b..9d1b219c729 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs index 6020d220ab2..bbf7376e41c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs index b7738711561..4895992fa55 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs index fd701fa1eba..a3ba571e818 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs index 40e41cdafdd..551a46722fc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs index b48b61f87af..f3556c07639 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index 0c0999eee4e..eb3bc42c977 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs index 0817a1097d0..8be950cb915 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 188b3bbb320..9819d123880 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -380,7 +381,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (DocValue is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(DocValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocValue, writer); } if (FilterDescriptor is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs index bb1c84842d9..52e089690d1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs index 7a919159f1b..2dbc2a313ac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 9f3ae50b26c..5a9c2718908 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 49b4e299702..e11fc2ef49f 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 35c13f2f63f..be1b6061e59 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 522ff56db3e..723590953b8 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 5f0582187cd..7b451cfaa63 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 3f5b65e9748..332e21511e7 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 f36b141fe68..a24956050eb 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 a8ce40e696f..497f8d71a13 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 b377e5f02e9..62562870894 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 7e32990df7b..b414d107347 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 @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs index 3d6ca63425b..39f39a92812 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 880cd1eeda2..19c11702a59 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index 469b6b336ac..a10de0936d2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; 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 00b975145e3..b1c84b42bce 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -473,7 +474,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (DocValue is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(DocValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocValue, writer); } if (DocAsUpsertValue.HasValue) @@ -513,7 +514,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (UpsertValue is not null) { writer.WritePropertyName("upsert"); - SourceSerialization.Serialize(UpsertValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(UpsertValue, writer); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 36f4e1f3351..27e5362452e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs index fdd2695a5a0..e3db78bf7d7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Requests; using Elastic.Clients.Elasticsearch.Serverless.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index 739f01d3602..dcd3c9db9d8 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -21,7 +21,7 @@ annotations - + diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index 161d317eb36..15213e6dde6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs index 2712b599330..335427c3133 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index 1bf4a779425..7014f6ae88d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index aa79a1aaf15..070370fb9a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index fb0fce6ca19..c845dcfd97d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs index e67018e2e3e..44a39a87f99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs index 6dcfca5220e..9b343cb2798 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs index 3d8ef87c0ac..de7f7b38f23 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs index 301cea990ba..64573f02d86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs index b35f97dfb6a..537d7315cc5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs index 32f6d69ab35..b0db2cd21b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs index e5b72a01db5..d873078ca6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs index a751e5546b0..8f2da988a43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs index 970172b0127..34fd028b7ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs index 34c28379fae..a344e42d854 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs index ea031bcd050..faa130ea035 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs index 387562ae73b..bc8b02c27af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs index 1dfcfa937de..484e1d1d922 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs index 216951b38ec..2670838909f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 30fa707d9f5..93b2d7c8823 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs index 08a4a4efb2b..e9cf25961c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -172,7 +173,7 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(Document, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(Document, writer); } } @@ -238,6 +239,6 @@ public CreateRequestDescriptor Document(TDocument document) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(DocumentValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocumentValue, writer); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs index 9773884078a..8430cab1866 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs index aa830339381..7236742d6fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs index d0614c3f819..484ffbdbd3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs index 8f8c83045bf..34e1fcbab09 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs index b332fb34f36..84c37c5ef8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs index e0e1e13558f..534aade2b25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs index 6a3868fd049..e8792e31dfc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs index f2ec08bdcac..b1ea27244a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs index 726fa92e33a..1464d4bff6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs index d8fbbace26e..a5386b3ba9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs index cd7fb91615b..ef1b17de9f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs index 7c4fadcf762..358d2d08210 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs index 2dae9dd50fc..ff19808d599 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs index 833cfd898c5..d7bfa075bab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 838ab44281d..34541aa28c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index 0249bb3b36e..e425b31cccf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs index 21204ab4a47..479d7e6c9a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs index c04439a7ae2..42659a1f2b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs index cb1be69ee44..6e2547bbd3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs index ed7d5ceab9e..83c270e3f05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs index 322dbe70e38..ca8c85f9433 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs index c59336a0cb5..48e5c1b5181 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs index bc543c0e396..7431d4cedbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs index 1cbdbeb07fa..ab14e281da1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs index 903322e1e12..1d8a84c00ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index b3faf27c573..c5e18996c7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs index 53f7ba02bbf..7137b3d8f1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs index 625dac5748f..969deddec05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs index 1b463f0b6fc..a69f181062f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs index 121d99f6887..92ee29cc3a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs index b58e805dc24..a747706a688 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs index 6099b88f1ba..4514119121a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs index a4065f53384..5002a2fd25b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index a8f3fbe206f..4ff7e9fbd9c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs index 7e18fa17a3a..e71f67d6fca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs index 1856a615dc8..57912b0d588 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs index 6be238b44b9..fe59cc63faf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs index 379c4af08b3..27db2736d08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs index e1dd8a84b26..d44b4d6b1a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs index 64337724631..64eec4febf9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs index c8dce150535..c11068c9549 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs index 99b30b36b03..edd1ee6ec59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs index 9afa8d59465..0bff6514e2c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs index ef72ef3facc..79d2688e50f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs index 900ac672b69..6fa5fe33b0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs index 164f288e316..69e36b217a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs index ebcb14933ca..8fa6cf4d75e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs index ebc564bf799..4c6f67d3930 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs index 3d4d583350c..479a61db7d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs index 3214015dc90..01bd491b281 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs index 3ad197fb19e..212c9d3b480 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs index 2ce7315964f..03931786cec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index 05e99eb3a3a..86e5c341aa0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs index a9fc2e385ba..cf76a309e5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index 0860f19f632..ad1323dcb15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs index 6caa4e4ee99..1c318a40ef9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs index bfb3914d20f..1cab06ad5e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs index ac3674e318b..91a722ceab5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs index c67a3f52376..588bc1ad8f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs index f0834933723..0a961381c9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs index 2201248aa06..80fccc1863f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index 5c1d0777b74..f73c4862ff4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs index 857a45e04ab..196e97ac096 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs index 479970378dc..22c27dca5fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index b7d8d53cd8c..868a32e7540 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs index 88a840fb4a3..8bb12324403 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 0b0eb3e4864..6edfd5890c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs index 4da34c198c7..b31c22348c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs index 14e09bf7ce5..efbc7dff46a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs index 3cecc7f3df4..59042066550 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 2d8f18822db..003d68a2ff8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index 1bfe86a6939..aa7d0b31120 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs index 8910e29affe..5282d97d911 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index d1df3fca3d9..160e35dd659 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 20180f1f2f9..cf9ce0876a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs index 0d8b601bcf0..49f3058f361 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs index 1ee0173f080..ce6a1e7e754 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs index 7a5e9a9b217..960c83e0bab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index a8dacb0197f..69965de963b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs index de779fb2558..b4c809766b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 6bfe92db7bb..64fa5aa087b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 133962fd9aa..ef614f8fa4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs index 91a2be09939..e65ca2399a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index 3f93d18cde6..769cde5a63f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs index b3c7378b8b1..c58975294e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs index 4ce0c702852..38fe2a811e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index 660cf2282be..b1a51e3447a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs index 1e159e2413c..b5755cc4508 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs index 59bf03cedaa..19d5e829a83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index a0c4dbcdd33..34af04025ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs index ccffb40d5b5..614820e2fd8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs index de404d34892..9eb516eb4e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index e4c430e686c..708c10deaef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index 3bdebfcfa63..ada658f2136 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index f7e459716e9..5cf865ecb08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs index 8210dca5a4e..7b6446a62d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 8e620a97ea0..7f89b7399f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs index 3e0b7cd6658..102ce4a8078 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index e52b4679345..cfd7db16957 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs index e18eb9b6412..4d0efc47482 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 5069c6d6ecd..6d61bb45be9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index 2a24c32643c..48be4cb8727 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs index 74415c48e3a..3d2cd74e288 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index a45a1e88d7a..94431e9a878 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs index bf03abe9939..51e33f2427e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs index 18d894522d7..6b5c04c3f37 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs index bcfebd4b591..259de6072e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index 7f64b2e0edf..0f5e89c0d8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs index 16aa975658b..2722f0c9b24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -246,7 +247,7 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(Document, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(Document, writer); } } @@ -316,6 +317,6 @@ public IndexRequestDescriptor Document(TDocument document) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - SourceSerialization.Serialize(DocumentValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocumentValue, writer); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs index b9355fd78ad..d8514b99866 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs index d07d70e93b6..40c96fe6b8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/GetInferenceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs index 4f72aaacdfe..8c0ff5643b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs index 6604bc0e8a1..c2bd7ed809f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs index 5431bddec4b..9d5e5290857 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs index e4dd8fa7fe3..41d1afff03f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs index 9aa43b44c66..a4b9affd9a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs index bac9924090f..501f501e8ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs index 2bd1e46f6b7..d3b04df573b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs index 9f1c59e5a19..5eaf34e810c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs index f1a27f9360a..ed765789494 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs index 5bef1768d6b..ae65f9eae29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs index 16eb12f2675..22764cade99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs index 72b490af26f..33233c4c413 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs index f595e9f1b03..d07145501fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs index da5444fec6e..471bcd0d8f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs index 40a21880879..c77c0ac3ff6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs index a215fcc5198..9f57933b122 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs index 1cd5e374dde..e61bdbf3057 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs index e1e159bab5e..510341acd4c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs index 518b624883d..27880c8d610 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs index afbdc507d44..d0623e3f5cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs index 6da942d59a6..57ebbdb573f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs index 95728aebc47..c1eee87a939 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs index 2efbbececf1..c6365779a10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs index 63cd6cff4da..e96d8a0c6fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs index 1ad508259e6..0d7176897c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs index f92596ee0ec..9d4691e39ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs index b3b7187d76c..02f49150cf5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs index 4dd909d6d74..babccd97a41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs index 9c9caeeb374..f6ccf14951c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs index 20f3cd58d79..68da0f7870a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs index b976eb13e45..60154991bb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs index 84331216ff1..a2802a0df4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs index 0cee8dafcb1..11d60873725 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs index 7d75ba1bc9b..9ea7bd489fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs index e1f537fdfcd..55715713750 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs index 4666d9e8950..86ef39e34da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs index cc62240911e..7d2aad9a7b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/FlushJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs index 255f2fd482a..bfbd4285a3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ForecastRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs index 011418880cc..e24e4432ff7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs index 4fadae7cc51..66a32155f0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs index 8abeeca1ff0..a0ddc443b1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs index 44e1ab8af79..00006ea2873 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs index a49e831b1ad..0019cb46116 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs index 352af57953f..ee5420191c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs index 64a5c6adaf1..12d213290c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs index 3c31a32d258..f4cef19baa3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs index b798a7f1c3a..0ae21abfdd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs index b585c8acfce..5754873d0bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs index 8636d68a099..bea2d642d87 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs index 5938531814d..6d95ea6c52f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs index e693f56c1b7..7c8a3d1f22d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs index 859393aa134..2d88a9b0287 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs index 3a8aa1096e7..04ad8474205 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs index b08c3581204..46d90e46696 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs index 20eee000da4..1fd0c64b61b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs index fa63481c0e9..3800d44371d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs index d81e507802e..a66c834864c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs index 8169e95515a..79cf334a50c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs index 80f2b9a269c..56f1d889562 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs index 716d21aeab2..b997be7d093 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs index 9300fa6249a..254e2fb0204 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs index ff2977e5b7f..c59ce728794 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs index ef73bd30273..d8286ceaee4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs index 7cbd2502965..d475637ee75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs index 1f69c189ad5..045933cc5be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 5018e0aa34a..11705264497 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs index 6e89fd5c8b1..6e235f21ab1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutFilterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs index b531852eac7..8d6db8d33c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs index d3bd9cfbd5d..c2a8fb886fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs index f8cf0e67e3d..949f8e5915c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs index e769a627eb0..d5c5f91da95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs index 378101557a6..410059d8e85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs index 02f190ce9e7..22e01c4e863 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ResetJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs index e478a13c51b..fd5a431f6bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs index 500b0f34d60..59688096e0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs index 90d02c4cddf..cd42cb41dfa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs index 1a6d6650113..443127894dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs index 474c930da40..81f77f7f92a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs index 99155dfbeeb..86f9bcb4d1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs index 6d422cc6486..1d8fe87c595 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs index e8b4468ec3f..998d7826948 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs index bc5ac0b5719..002350b9b66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs index 9f985bebe4f..b7116b1731f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs index 97484ce9279..444d8a9d5a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs index ad241b91b88..548a6f67f0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs index 675b2bdc414..d8c88bacb00 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs index 80d597ed2b3..fbbf728cec4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs index 1981b0d076b..07886ed234a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs index 6e273c7a954..311f71a6840 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs index 39684ec9016..2f532c21c40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs index 71c373196be..479a8447f37 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index b255d3a68d4..0142870ccb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs index 64ba00a8ed3..c987991b8cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs index 448628b940e..03b4da10f08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs index 7f88d078337..5e3c83cc33a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs index 569f0cd6433..a292580e104 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs index 0c62060469c..a975f255b63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs index ac295843d91..afc2a557ec0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs index 34a0e37d17f..e5d075f10ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs index d379df24ca9..17b4a1378fb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs index 54b9958a233..35a1ab3f600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 0c5914a5c35..7eba519c3bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs index beaafdfa6b4..eef881b997d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs index d7bd298f7e4..91d6b99e3cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs index 18a81286bbb..b7dc2979ea0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs index 7d8fcd80b50..77e70e908c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs index 2e9a351e3ca..206aaa37ca8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs index 86f6758bf21..cb4d3848bf6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs index 08fa5109ef0..17c90868680 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs index 695e9c48d99..18c0aa7a6bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs index a2085a858f7..22c3f8e0639 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index c33e75d8303..a883c183c86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs index f3e99551850..fa7c00a14bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs index 964bdd57eec..c5b605c9aad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs index c57cc798307..3271a224123 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs index ba90b328ef7..22c64e0da0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs index e00924a4de1..6ef40b0b3b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs index 6f27f76a99e..84e3ca5d52a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs index 0b3df7b26d9..905c78c528a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs index d31d0c08652..eff76b4c695 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs index 1b009faea0c..d24f3feb80a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs index 7974557b569..cad0b8391f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs index ae497d7a765..696e513e8bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs index df75176b920..ddf8dbfa7ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs index 96182663489..1d1f64d6ab7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs index bb1dd14ba0a..0821769f39a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteBehavioralAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs index 568ee9f3b60..3683272e428 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/DeleteSearchApplicationRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs index 313dbe3f12f..3032d656690 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetBehavioralAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs index 28c41602d1f..e7342f567b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs index 8e216cde2e1..4a1abd18f85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs index 185a22a7f3f..9b13e1d8a6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutBehavioralAnalyticsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs index 743674f4b71..30d3c434500 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs index 28a5738d283..173d6962b99 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs index 2528376f9a8..7e67b3cc67f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 2f7583f26a0..31266e7e692 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index de6e724e796..7bd1c72a260 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index 00bf927d32c..923f66d1ae8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs index 83ae3bdd257..df6332303d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs index 9178c546e08..6f4a9c43964 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs index b58b03e111a..05fa84ac6c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs index bbfcd700251..1894a388247 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs index 55679e7bad4..cff16e81b4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs index 186cd2ecac7..ee6d297fcd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs index 1d684d4b90b..c1b55603478 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs index d7fb2065195..120d3068d6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs index 4bc433d2031..d25c22e0aae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs index db6a20d7fab..a62551acf22 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs index 35cb210f26f..a9170d3c2fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs index d10e676048e..6873cadc5f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs index 236c3e471d7..60ef63b37b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs index 3335cd52ea1..9988ce26447 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs index a435b2e2d3e..b09feb4d128 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs index 66c4cdf3077..82f0154e7e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs index 05be0c4c031..55d79f9287e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs index ab3c2fb6a40..aafbd9fe708 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs index 786ba657268..2bf1ca5061a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs index ebc4ea9867c..6183ce96414 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs index 10f7b9e77d2..6c01fdbe59e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs index fe1f12b7d2d..c0d51b98600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs index da3859780cf..1c98402cd49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs index ea1e8851737..423075f3888 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs index a475c6e3315..019ff052db9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs index 5ba28f335d2..83ced516fb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs index 3e79a389c1b..19c48694766 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs index 3b531462d74..996c419b3fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs index b93260c3b73..86da44c5865 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs index d7471e4e322..e9b962cc0ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs index 24ba915b714..3eb5c006fc7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs index fa84192133a..277814202e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs index fb27a85b150..157e7bb90ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs index 59a139b14a3..bf51be2829d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs index dc8331d6fe7..d3ade1b87c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs index 2644b772f56..903249037d0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs index 85685d66fbe..aa80263756d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs index bedc1ce683e..734533078e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs index ac32cc917fe..5f0efc84624 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs index 30169672946..3ac8a626a3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs index 3d7a11691aa..15dd0268db1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs index a9c57aeb9a6..02dbbe38899 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs index f226fbef4e9..6c7c79d4e4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs index 2ce5e12e334..61b7a74d58b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.IO; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs index 41c648f5abb..748f72aa996 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs index d16082dbc34..6f508ca957e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs index 25305c9241e..9f9434d6e73 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs index 22060338953..f58fc473b5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs index ab8757e8cbd..08bee4543e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs index 475ab9b6758..e29f3618f4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs index 40f3938107b..5de9a26fc68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs index d3063cdfca1..3fec565f907 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs index a4fda7b3fa0..c4f8d7f7257 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs index f9e3c658f8a..319b2e2d920 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs index 268c99d9459..c82dce9acf2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs index 55aa654e277..50a7c5682ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs index 33e4f77a8fe..7e54558792e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs index 0bb9d8738ad..488cea1b6d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs index e71721fa22d..1427c4ba1bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs index 2f9ab9e7ffd..4f7d24f7fa3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs index f078fc9544c..f2d56ebe57b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs index 4e2f6b00770..48f82d31977 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs index 8fe4a5c2229..9c963bf9059 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs index 9fda4025422..41acee94388 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs index b21f1b922fe..3435c965641 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs index 31c8c0b691d..5564259562b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs index 3491a21cb36..d7cfbe43e6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs index e7d9235bbfc..6ad466530e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs index 9e92916588a..cc1c9442cdf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs index 38a5562fdf9..cadffda742f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs index 320ec5bffb7..85f33535e96 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs index bb8dc91cb3c..65674da8cf3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs index 3b1416913f0..94c7e365ad6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs index 6d6625ca04a..065d37b1eea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs index 8d1eab503a0..5086212cfc6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs index 84629bdb756..60f73a9cac8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs index ecfd86c5eb2..ea93dcafd88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs index cf3d0e3fa1e..4cde81967c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs index ca7010957b7..8fb9b82af9b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs index ed3b52ea2e3..e7642520024 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs index 1e27e791903..f10354d82f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs index 77c68f95956..75b724ab11d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs index 5bf3a3783f6..002f87c77ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs index 7da01d16fc0..34519a8f721 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs index 0e985a24dce..7b29b6516d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs index ecda4dafb10..2ff242aa234 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs index 2e2e39a8d8c..fceca4690d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs index 8a9f327fa20..5422954551b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs index 0743e1542f0..aae76d746b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs index fc9c8b16439..806b9170341 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index dc2d3d4ca2e..e451898972e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs index b884d81d6bf..6a85a994be1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs index 3ac3af276bb..afad51cb35b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs index 11fdb657626..1ef20cc4469 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs index 1bc8c0ed85b..228be9745b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index 3c27f0b5801..74cf80a255d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -380,7 +381,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (DocValue is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(DocValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocValue, writer); } if (FilterDescriptor is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs index ee29eb7ecc3..75a2b05b403 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs index fedd469cdb3..f8e4bcdafdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs index 93a077fc786..4c99c8484f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs index 7aec1466cf4..c5d4152ca6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs index 7d91f1bd589..bfd538ede2c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs index 9d638131afa..c9dd9773b16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs index e015ccaf007..7572393a22f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/PutTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs index 1167b2393b5..bbe3236f756 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs index 2c98a5a62b8..b77da029d31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs index f918131e06f..c13718c4ae6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs index f07921f11be..83c77465a31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StopTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs index ca1dfce0368..bc612418057 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs index 0a5ee29800c..a562b550fb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 7449285727d..26842bb705f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index c4bc0ab4d92..5a793d21b27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs index 818525a2fe8..2b7fb9ce352 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; @@ -473,7 +474,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (DocValue is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(DocValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(DocValue, writer); } if (DocAsUpsertValue.HasValue) @@ -513,7 +514,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (UpsertValue is not null) { writer.WritePropertyName("upsert"); - SourceSerialization.Serialize(UpsertValue, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(UpsertValue, writer); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 5bb229233bb..4399788c3ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs index 099348c72fb..8a0ac0566a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -21,6 +21,7 @@ using Elastic.Clients.Elasticsearch.Requests; using Elastic.Clients.Elasticsearch.Serialization; using Elastic.Transport; +using Elastic.Transport.Extensions; using System; using System.Collections.Generic; using System.Linq.Expressions; diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs index cce890562f2..62c3e7ce566 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs @@ -8,17 +8,21 @@ using System.Linq; using System.Linq.Expressions; using System.Reflection; + #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Fluent; #else using Elastic.Clients.Elasticsearch.Fluent; #endif + #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else using Elastic.Clients.Elasticsearch.Serialization; #endif + using Elastic.Transport; +using Elastic.Transport.Extensions; using Elastic.Transport.Products; using Elastic.Transport.Products.Elasticsearch; @@ -62,12 +66,16 @@ public ElasticsearchClientSettings(string cloudId, AuthorizationHeader credentia { } - public ElasticsearchClientSettings(NodePool nodePool) : this(nodePool, null, null) { } + public ElasticsearchClientSettings(NodePool nodePool) : this(nodePool, null, null) + { + } public ElasticsearchClientSettings(NodePool nodePool, SourceSerializerFactory sourceSerializer) : this(nodePool, null, sourceSerializer) { } - public ElasticsearchClientSettings(NodePool nodePool, IRequestInvoker requestInvoker) : this(nodePool, requestInvoker, null) { } + public ElasticsearchClientSettings(NodePool nodePool, IRequestInvoker requestInvoker) : this(nodePool, requestInvoker, null) + { + } public ElasticsearchClientSettings(NodePool nodePool, IRequestInvoker requestInvoker, SourceSerializerFactory sourceSerializer) : this( nodePool, @@ -113,7 +121,7 @@ public abstract class private readonly FluentDictionary _routeProperties = new(); private readonly Serializer _sourceSerializer; private bool _experimentalEnableSerializeNullInferredValues; - private ExperimentalSettings _experimentalSettings = new (); + private ExperimentalSettings _experimentalSettings = new(); private bool _defaultDisableAllInference; private Func _defaultFieldNameInferrer; @@ -133,7 +141,9 @@ protected ElasticsearchClientSettingsBase( _sourceSerializer = sourceSerializerFactory?.Invoke(sourceSerializer, this) ?? sourceSerializer; _propertyMappingProvider = propertyMappingProvider ?? sourceSerializer as IPropertyMappingProvider ?? new DefaultPropertyMappingProvider(); - _defaultFieldNameInferrer = (_sourceSerializer is DefaultSourceSerializer dfs) ? p => dfs.Options?.PropertyNamingPolicy?.ConvertName(p) ?? p : p => p.ToCamelCase(); + _defaultFieldNameInferrer = _sourceSerializer.TryGetJsonSerializerOptions(out var options) + ? p => options.PropertyNamingPolicy?.ConvertName(p) ?? p + : p => p.ToCamelCase(); _defaultIndices = new FluentDictionary(); _defaultRelationNames = new FluentDictionary(); _inferrer = new Inferrer(this); @@ -180,12 +190,13 @@ public TConnectionSettings DefaultIndex(string defaultIndex) => /// public TConnectionSettings DefaultFieldNameInferrer(Func fieldNameInferrer) { - if (_sourceSerializer is DefaultSourceSerializer dss) - { - dss.Options.PropertyNamingPolicy = new CustomizedNamingPolicy(fieldNameInferrer); - } + if (_sourceSerializer.TryGetJsonSerializerOptions(out var options, SerializationFormatting.None)) + options.PropertyNamingPolicy = new CustomizedNamingPolicy(fieldNameInferrer); - return Assign>(fieldNameInferrer, (a, v) => a._defaultFieldNameInferrer = v); + if (_sourceSerializer.TryGetJsonSerializerOptions(out var indentedOptions, SerializationFormatting.Indented)) + indentedOptions.PropertyNamingPolicy = new CustomizedNamingPolicy(fieldNameInferrer); + + return Assign(fieldNameInferrer, (a, v) => a._defaultFieldNameInferrer = v); } public TConnectionSettings ExperimentalEnableSerializeNullInferredValues(bool enabled = true) => @@ -346,7 +357,9 @@ public ConnectionConfiguration(string cloudId, AuthorizationHeader credentials) { } - public ConnectionConfiguration(NodePool nodePool) : this(nodePool, null, null) { } + public ConnectionConfiguration(NodePool nodePool) : this(nodePool, null, null) + { + } public ConnectionConfiguration(NodePool nodePool, IRequestInvoker requestInvoker) : this(nodePool, requestInvoker, null) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs index 9ebf95304eb..a2b89956e86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs @@ -8,6 +8,9 @@ using System.Diagnostics.CodeAnalysis; using System.Collections.Generic; using System.Globalization; + +using Elastic.Transport.Extensions; + #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -27,7 +30,11 @@ namespace Elastic.Clients.Elasticsearch; [JsonConverter(typeof(FieldValueConverter))] public readonly struct FieldValue : IEquatable { - internal FieldValue(ValueKind kind, object? value) { Kind = kind; Value = value; } + internal FieldValue(ValueKind kind, object? value) + { + Kind = kind; + Value = value; + } /// /// The kind of value contained within this . @@ -98,6 +105,7 @@ public enum ValueKind // These are not expected to be required for consumer values but are used internally. internal static FieldValue Any(LazyJson value) => new(ValueKind.LazyDocument, value); + internal static FieldValue Composite(object value) => new(ValueKind.Composite, value); /// @@ -269,6 +277,7 @@ public override string ToString() => }; public override bool Equals(object? obj) => obj is FieldValue value && Equals(value); + public bool Equals(FieldValue other) => Kind == other.Kind && EqualityComparer.Default.Equals(Value, other.Value); public override int GetHashCode() @@ -283,12 +292,17 @@ public override int GetHashCode() } public static bool operator ==(FieldValue left, FieldValue right) => left.Equals(right); + public static bool operator !=(FieldValue left, FieldValue right) => !(left == right); public static implicit operator FieldValue(string value) => String(value); + public static implicit operator FieldValue(bool value) => Boolean(value); + public static implicit operator FieldValue(int value) => Long(value); + public static implicit operator FieldValue(long value) => Long(value); + public static implicit operator FieldValue(double value) => Double(value); } @@ -340,40 +354,33 @@ public override void Write(Utf8JsonWriter writer, FieldValue value, JsonSerializ { writer.WriteStringValue(stringValue); } - else if (value.TryGetBool(out var boolValue)) { writer.WriteBooleanValue(boolValue.Value); } - else if (value.TryGetLong(out var longValue)) { writer.WriteNumberValue(longValue.Value); } - else if (value.TryGetDouble(out var doubleValue)) { writer.WriteNumberValue(doubleValue.Value); } - else if (value.TryGetLazyDocument(out var lazyDocument)) { writer.WriteRawValue(lazyDocument.Value.Bytes); } - else if (value.TryGetComposite(out var objectValue)) { if (!options.TryGetClientSettings(out var settings)) ThrowHelper.ThrowJsonExceptionForMissingSettings(); - SourceSerialization.Serialize(objectValue, objectValue.GetType(), writer, settings); + settings.SourceSerializer.Serialize(objectValue, objectValue.GetType(), writer, null); } - else if (value.Kind == FieldValue.ValueKind.Null) { writer.WriteNullValue(); } - else { throw new JsonException($"Unsupported FieldValue kind. This is likely a bug and should be reported as an issue."); diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs index 3d497c3c25e..7669ee7dd10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs @@ -2,6 +2,7 @@ // 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.Collections.Generic; using System.IO; using System.Text.Json; using System.Text.Json.Serialization; @@ -17,42 +18,18 @@ namespace Elastic.Clients.Elasticsearch.Serialization; #endif /// -/// The built in internal serializer that the uses to serialize -/// built in types. +/// The built-in internal serializer that the uses to serialize built in types. /// -internal class DefaultRequestResponseSerializer : SystemTextJsonSerializer +internal sealed class DefaultRequestResponseSerializer : SystemTextJsonSerializer { - private readonly JsonSerializerOptions _jsonSerializerOptions; + private readonly IElasticsearchClientSettings _settings; - public DefaultRequestResponseSerializer(IElasticsearchClientSettings settings) : base(settings) + public DefaultRequestResponseSerializer(IElasticsearchClientSettings settings) : + base(new DefaultRequestResponseSerializerOptionsProvider(settings)) { - _jsonSerializerOptions = new JsonSerializerOptions - { - DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, - IncludeFields = true, - Converters = - { - new KeyValuePairConverterFactory(settings), - new ObjectToInferredTypesConverter(), - new SourceConverterFactory(settings), - new SelfSerializableConverterFactory(settings), - new SelfDeserializableConverterFactory(settings), - new SelfTwoWaySerializableConverterFactory(settings), - new FieldValuesConverter(), // explicitly registered before IsADictionaryConverterFactory as we want this specialised converter to match - new IsADictionaryConverterFactory(), - new ResponseItemConverterFactory(), - new DictionaryResponseConverterFactory(settings), - new UnionConverter(), - // TODO: Remove after https://github.com/elastic/elasticsearch-specification/issues/2238 is implemented - new StringifiedLongConverter(), - new StringifiedIntegerConverter(), - new StringifiedBoolConverter() - }, - PropertyNamingPolicy = JsonNamingPolicy.CamelCase, - NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.AllowNamedFloatingPointLiterals - }; - - Initialize(); + _settings = settings; + + LinkSettings(settings); } public override void Serialize(T data, Stream writableStream, @@ -60,7 +37,7 @@ public override void Serialize(T data, Stream writableStream, { if (data is IStreamSerializable streamSerializable) { - streamSerializable.Serialize(writableStream, Settings, SerializationFormatting.None); + streamSerializable.Serialize(writableStream, _settings, SerializationFormatting.None); return; } @@ -72,12 +49,67 @@ public override Task SerializeAsync(T data, Stream stream, CancellationToken cancellationToken = default) { if (data is IStreamSerializable streamSerializable) + return streamSerializable.SerializeAsync(stream, _settings, SerializationFormatting.None); + + return base.SerializeAsync(data, stream, formatting, cancellationToken); + } + + /// + /// Links the of this serializer to the given . + /// + private void LinkSettings(IElasticsearchClientSettings settings) + { + var options = GetJsonSerializerOptions(SerializationFormatting.None); + var indentedOptions = GetJsonSerializerOptions(SerializationFormatting.Indented); + + if (!ElasticsearchClient.SettingsTable.TryGetValue(options, out _)) { - return streamSerializable.SerializeAsync(stream, Settings, SerializationFormatting.None); + ElasticsearchClient.SettingsTable.Add(options, settings); } - return base.SerializeAsync(data, stream, formatting, cancellationToken); + if (!ElasticsearchClient.SettingsTable.TryGetValue(indentedOptions, out _)) + { + ElasticsearchClient.SettingsTable.Add(indentedOptions, settings); + } } +} + +/// +/// The options-provider for the built-in . +/// +internal sealed class DefaultRequestResponseSerializerOptionsProvider : + TransportSerializerOptionsProvider +{ + internal DefaultRequestResponseSerializerOptionsProvider(IElasticsearchClientSettings settings) : + base(CreateDefaultBuiltInConverters(settings), null, MutateOptions) + { + } + + private static IReadOnlyCollection CreateDefaultBuiltInConverters(IElasticsearchClientSettings settings) => + [ + new KeyValuePairConverterFactory(settings), + new ObjectToInferredTypesConverter(), + new SourceConverterFactory(settings), + new SelfSerializableConverterFactory(settings), + new SelfDeserializableConverterFactory(settings), + new SelfTwoWaySerializableConverterFactory(settings), + // Explicitly registered before `IsADictionaryConverterFactory` as we want this specialised converter to match + new FieldValuesConverter(), + new IsADictionaryConverterFactory(), + new ResponseItemConverterFactory(), + new DictionaryResponseConverterFactory(settings), + new UnionConverter(), + // TODO: Remove after https://github.com/elastic/elasticsearch-specification/issues/2238 is implemented + new StringifiedLongConverter(), + new StringifiedIntegerConverter(), + new StringifiedBoolConverter() + ]; - protected override JsonSerializerOptions CreateJsonSerializerOptions() => _jsonSerializerOptions; + private static void MutateOptions(JsonSerializerOptions options) + { + options.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull; + options.IncludeFields = true; + options.NumberHandling = JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.AllowNamedFloatingPointLiterals; + options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; + } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs index 4baffcc168c..de2bc568f4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs @@ -6,6 +6,8 @@ using System.Text.Json; using System.Text.Json.Serialization; +using Elastic.Transport; + #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -13,92 +15,80 @@ namespace Elastic.Clients.Elasticsearch.Serialization; #endif /// -/// The built in internal serializer that the uses to serialize +/// The built-in internal serializer that the uses to serialize /// source document types. /// -public class DefaultSourceSerializer : SystemTextJsonSerializer +public class DefaultSourceSerializer : + SystemTextJsonSerializer { - /// - /// Returns an array of the built in s that are used registered with the - /// source serializer by default. - /// - public static JsonConverter[] DefaultBuiltInConverters => new JsonConverter[] - { - new JsonStringEnumConverter(), - new DoubleWithFractionalPortionConverter(), - new SingleWithFractionalPortionConverter() - }; - - private readonly JsonSerializerOptions _jsonSerializerOptions; - - internal DefaultSourceSerializer(IElasticsearchClientSettings settings) : base(settings) - { - _jsonSerializerOptions = CreateDefaultJsonSerializerOptions(); - - Initialize(); - } - /// /// Constructs a new instance that accepts an that can /// be provided to customize the default . /// - /// An instance to which this - /// serializers will be linked. - /// An to customize the configuration of the - /// default . - public DefaultSourceSerializer(IElasticsearchClientSettings settings, Action configureOptions) : base(settings) - { - var options = CreateDefaultJsonSerializerOptions(); - - configureOptions?.Invoke(options); - - _jsonSerializerOptions = options; - - Initialize(); - } + /// An instance to which this serializers + /// will be linked. + /// + /// + /// An optional to customize the configuration of the default . + /// + public DefaultSourceSerializer(IElasticsearchClientSettings settings, Action? configureOptions = null) : + base(new DefaultSourceSerializerOptionsProvider(configureOptions)) => + LinkSettings(settings); /// - /// A factory method which returns a new instance of configured with the - /// default configuration applied to for serialization by the . + /// Links the of this serializer to the given . /// - /// - /// - public static JsonSerializerOptions CreateDefaultJsonSerializerOptions(bool includeDefaultConverters = true) + private void LinkSettings(IElasticsearchClientSettings settings) { - var options = new JsonSerializerOptions() - { - DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, - PropertyNamingPolicy = JsonNamingPolicy.CamelCase, - NumberHandling = JsonNumberHandling.AllowReadingFromString // For numerically mapped fields, it is possible for values in the source to be returned as strings, if they were indexed as such. - }; + var options = GetJsonSerializerOptions(SerializationFormatting.None); + var indentedOptions = GetJsonSerializerOptions(SerializationFormatting.Indented); - if (includeDefaultConverters) + if (!ElasticsearchClient.SettingsTable.TryGetValue(options, out _)) { - foreach (var converter in DefaultBuiltInConverters) - { - options.Converters.Add(converter); - } + ElasticsearchClient.SettingsTable.Add(options, settings); } - return options; + if (!ElasticsearchClient.SettingsTable.TryGetValue(indentedOptions, out _)) + { + ElasticsearchClient.SettingsTable.Add(indentedOptions, settings); + } } +} +/// +/// The options-provider for the built-in . +/// +public class DefaultSourceSerializerOptionsProvider : + TransportSerializerOptionsProvider +{ /// - /// A helper method which applies the default converters for the built in source serializer to an - /// existing instance. + /// Returns an array of the built-in s that are used registered with the source serializer by default. /// - /// The instance to which to append the default - /// built in s. - /// The instance that was provided as an argument. - public static JsonSerializerOptions AddDefaultConverters(JsonSerializerOptions options) + private static JsonConverter[] DefaultBuiltInConverters => + [ + new JsonStringEnumConverter(), + new DoubleWithFractionalPortionConverter(), + new SingleWithFractionalPortionConverter() + ]; + + public DefaultSourceSerializerOptionsProvider(Action? configureOptions = null) : + base(DefaultBuiltInConverters, null, options => MutateOptions(options, configureOptions)) { - foreach (var converter in DefaultBuiltInConverters) - { - options.Converters.Add(converter); - } + } - return options; + public DefaultSourceSerializerOptionsProvider(bool registerDefaultConverters = true, Action? configureOptions = null) : + base(registerDefaultConverters ? DefaultBuiltInConverters : [], null, options => MutateOptions(options, configureOptions)) + { } - protected sealed override JsonSerializerOptions CreateJsonSerializerOptions() => _jsonSerializerOptions; + private static void MutateOptions(JsonSerializerOptions options, Action? configureOptions) + { + options.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull; + options.PropertyNamingPolicy = JsonNamingPolicy.CamelCase; + + // For numerically mapped fields, it is possible for values in the source to be returned as strings, if they were indexed as such. + options.NumberHandling = JsonNumberHandling.AllowReadingFromString; + + configureOptions?.Invoke(options); + } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializerExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializerExtensions.cs deleted file mode 100644 index 8f756b29363..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializerExtensions.cs +++ /dev/null @@ -1,27 +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.Text.Json; -using Elastic.Transport; - -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else -namespace Elastic.Clients.Elasticsearch.Serialization; -#endif - -internal static class SerializerExtensions -{ - public static bool TryGetJsonSerializerOptions(this Serializer serializer, out JsonSerializerOptions? options) - { - if (serializer is DefaultRequestResponseSerializer defaultSerializer) - { - options = defaultSerializer.Options; - return true; - } - - options = null; - return false; - } -} diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs index 527210510c9..6c1e0295cd5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs @@ -12,6 +12,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; namespace Elastic.Clients.Elasticsearch.Serialization; #endif +using Elastic.Transport.Extensions; + internal sealed class SourceConverter : JsonConverter> { private readonly IElasticsearchClientSettings _settings; @@ -20,8 +22,8 @@ internal sealed class SourceConverter : JsonConverter> public override SourceMarker? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => new() { - Source = SourceSerialization.Deserialize(ref reader, _settings) + Source = _settings.SourceSerializer.Deserialize(ref reader, null) }; - public override void Write(Utf8JsonWriter writer, SourceMarker value, JsonSerializerOptions options) => SourceSerialization.Serialize(value.Source, writer, _settings); + public override void Write(Utf8JsonWriter writer, SourceMarker value, JsonSerializerOptions options) => _settings.SourceSerializer.Serialize(value.Source, writer, null); } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceSerialization.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceSerialization.cs deleted file mode 100644 index 78fcc25dd98..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceSerialization.cs +++ /dev/null @@ -1,127 +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.IO; -using System.Text.Json; -using Elastic.Transport; - -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else -namespace Elastic.Clients.Elasticsearch.Serialization; -#endif - -/// -/// May be used by requests that need to serialize only part of their source rather than the request object itself. -/// -internal static class SourceSerialization -{ - public static void SerializeParams(T toSerialize, Utf8JsonWriter writer, IElasticsearchClientSettings settings) - { - if (settings.Experimental.UseSourceSerializerForScriptParameters) - { - Serialize(toSerialize, writer, settings); - return; - } - - _ = settings.RequestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize(writer, toSerialize, options); - } - - public static T DeserializeParams(ref Utf8JsonReader reader, IElasticsearchClientSettings settings) - { - if (settings.Experimental.UseSourceSerializerForScriptParameters) - { - var result = Deserialize(ref reader, settings); - return result; - } - - _ = settings.RequestResponseSerializer.TryGetJsonSerializerOptions(out var options); - return JsonSerializer.Deserialize(ref reader, options); - } - - public static void Serialize(T toSerialize, Utf8JsonWriter writer, IElasticsearchClientSettings settings) => - Serialize(toSerialize, writer, settings.SourceSerializer); - - public static void Serialize(object toSerialize, Type type, Utf8JsonWriter writer, IElasticsearchClientSettings settings) => - Serialize(toSerialize, type, writer, settings.SourceSerializer); - - public static void Serialize(T toSerialize, Utf8JsonWriter writer, Serializer sourceSerializer) - { - if (sourceSerializer is DefaultSourceSerializer defaultSerializer) - { - // When the serializer is our own, which uses STJ we can avoid unnecessary allocations and serialize straight into the writer - // In most cases this is not the case as it's wrapped in the DiagnosticsSerializerProxy - // Ideally, we'd short-circuit here if we know there are no listeners or avoid wrapping the default source serializer. - JsonSerializer.Serialize(writer, toSerialize, defaultSerializer.Options); - return; - } - - // We may be using a custom serializer or most likely, we're registered via DiagnosticsSerializerProxy - // We cannot use STJ since the implementation may use another serializer. - // This path is a little less optimal - using var ms = new MemoryStream(); - sourceSerializer.Serialize(toSerialize, ms); - ms.Position = 0; -#if NET6_0_OR_GREATER - writer.WriteRawValue(ms.GetBuffer().AsSpan()[..(int)ms.Length], true); -#else - // This is not super efficient but a variant on the suggestion at https://github.com/dotnet/runtime/issues/1784#issuecomment-608331125 - using var document = JsonDocument.Parse(ms); - document.RootElement.WriteTo(writer); -#endif - } - - public static void Serialize(object toSerialize, Type type, Utf8JsonWriter writer, Serializer sourceSerializer) - { - if (sourceSerializer is DefaultSourceSerializer defaultSerializer) - { - // When the serializer is our own, which uses STJ we can avoid unnecessary allocations and serialize straight into the writer - // In most cases this is not the case as it's wrapped in the DiagnosticsSerializerProxy - // Ideally, we'd short-circuit here if we know there are no listeners or avoid wrapping the default source serializer. - JsonSerializer.Serialize(writer, toSerialize, type, defaultSerializer.Options); - return; - } - - // We may be using a custom serializer or most likely, we're registered via DiagnosticsSerializerProxy - // We cannot use STJ since the implementation may use another serializer. - // This path is a little less optimal - using var ms = new MemoryStream(); - sourceSerializer.Serialize(toSerialize, ms); - ms.Position = 0; -#if NET6_0_OR_GREATER - writer.WriteRawValue(ms.GetBuffer().AsSpan()[..(int)ms.Length], true); -#else - // This is not super efficient but a variant on the suggestion at https://github.com/dotnet/runtime/issues/1784#issuecomment-608331125 - using var document = JsonDocument.Parse(ms); - document.RootElement.WriteTo(writer); -#endif - } - - public static T Deserialize(ref Utf8JsonReader reader, IElasticsearchClientSettings settings) - { - var sourceSerializer = settings.SourceSerializer; - - if (sourceSerializer is DefaultSourceSerializer defaultSerializer) - { - // When the serializer is our own which uses STJ we can avoid unnecessary allocations and serialize straight into the writer - return JsonSerializer.Deserialize(ref reader, defaultSerializer.Options); - } - else - { - // TODO: This allocates more than we'd like. Review this post alpha - - using var jsonDoc = JsonSerializer.Deserialize(ref reader); - using var stream = settings.MemoryStreamFactory.Create(); - - var writer = new Utf8JsonWriter(stream); - jsonDoc.WriteTo(writer); - writer.Flush(); - stream.Position = 0; - - return sourceSerializer.Deserialize(stream); - } - } -} diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SystemTextJsonSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SystemTextJsonSerializer.cs deleted file mode 100644 index 5397867e0a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SystemTextJsonSerializer.cs +++ /dev/null @@ -1,164 +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.IO; -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Elastic.Transport; - -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else -namespace Elastic.Clients.Elasticsearch.Serialization; -#endif - -/// -/// An abstract implementation of the transport which serializes -/// using the Microsoft System.Text.Json library. -/// -/// This serializer is aware and able to register its -/// in such a way that built in converters for types defined in -/// Elastic.Clients.Elasticsearch can access those settings during serialization. -/// -/// -public abstract class SystemTextJsonSerializer : Serializer -{ - private bool _initialized; - - /// - /// Initializes a new instance of the class, linked to an - /// instance of . - /// - /// An instance to which this - /// serializers will be linked. - /// is null - public SystemTextJsonSerializer(IElasticsearchClientSettings settings) - { - if (settings is null) - throw new ArgumentNullException(nameof(settings)); - - Settings = settings; - } - - internal JsonSerializerOptions? Options { get; private set; } - - internal JsonSerializerOptions? IndentedOptions { get; private set; } - - /// - /// Provides access to the instance to which this - /// serializers are be linked. - /// - protected IElasticsearchClientSettings Settings { get; } - - /// - /// A factory method that can create an instance of that will - /// be used when serializing. - /// - /// - protected abstract JsonSerializerOptions? CreateJsonSerializerOptions(); - - /// - public override T Deserialize(Stream stream) - { - Initialize(); - - if (TryReturnDefault(stream, out T deserialize)) - return deserialize; - - return JsonSerializer.Deserialize(stream, Options); - } - - /// - public override object? Deserialize(Type type, Stream stream) - { - Initialize(); - - if (TryReturnDefault(stream, out object deserialize)) - return deserialize; - - return JsonSerializer.Deserialize(stream, type, Options); - } - - /// - public override ValueTask DeserializeAsync(Stream stream, CancellationToken cancellationToken = default) - { - Initialize(); - return JsonSerializer.DeserializeAsync(stream, Options, cancellationToken); - } - - /// - public override ValueTask DeserializeAsync(Type type, Stream stream, CancellationToken cancellationToken = default) - { - Initialize(); - return JsonSerializer.DeserializeAsync(stream, type, Options, cancellationToken); - } - - /// - public override void Serialize(T data, Stream writableStream, - SerializationFormatting formatting = SerializationFormatting.None) - { - Initialize(); - JsonSerializer.Serialize(writableStream, data, formatting == SerializationFormatting.Indented && IndentedOptions is not null ? IndentedOptions : Options); - } - - /// - public override Task SerializeAsync(T data, Stream stream, - SerializationFormatting formatting = SerializationFormatting.None, - CancellationToken cancellationToken = default) - { - Initialize(); - return JsonSerializer.SerializeAsync(stream, data, formatting == SerializationFormatting.Indented && IndentedOptions is not null ? IndentedOptions : Options, cancellationToken); - } - - private static bool TryReturnDefault(Stream stream, out T deserialize) - { - deserialize = default; - return stream is null || stream == Stream.Null || (stream.CanSeek && stream.Length == 0); - } - - /// - /// Initializes a serializer instance such that its - /// are populated and linked to the . - /// - protected void Initialize() - { - if (_initialized) - return; - - var options = CreateJsonSerializerOptions(); - - if (options is null) - { - Options = new JsonSerializerOptions(); - IndentedOptions = new JsonSerializerOptions { WriteIndented = true }; - } - else - { - Options = options; - IndentedOptions = new JsonSerializerOptions(options) - { - WriteIndented = true - }; - } - - LinkOptionsAndSettings(); - - _initialized = true; - } - - private void LinkOptionsAndSettings() - { - if (!ElasticsearchClient.SettingsTable.TryGetValue(Options!, out _)) - { - ElasticsearchClient.SettingsTable.Add(Options, Settings); - } - - if (!ElasticsearchClient.SettingsTable.TryGetValue(IndentedOptions!, out _)) - { - ElasticsearchClient.SettingsTable.Add(IndentedOptions, Settings); - } - } -} diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs index f04ffd238e4..f9674169a14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs @@ -8,6 +8,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using System.Threading.Tasks; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -129,8 +130,7 @@ private void SerializeOperationAction(IElasticsearchClientSettings settings, Utf var requestResponseSerializer = settings.RequestResponseSerializer; writer.WriteStartObject(); writer.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize>(writer, this, options); + requestResponseSerializer.Serialize(this, writer, settings.MemoryStreamFactory); writer.WriteEndObject(); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs index 16a1bb4e31b..e5de624043c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs @@ -19,6 +19,7 @@ using Elastic.Clients.Elasticsearch.Serialization; #endif using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; @@ -53,12 +54,11 @@ protected override void Serialize(Stream stream, IElasticsearchClientSettings se var internalWriter = new Utf8JsonWriter(stream); internalWriter.WriteStartObject(); internalWriter.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize>(internalWriter, this, options); + requestResponseSerializer.Serialize(this, internalWriter, settings.MemoryStreamFactory, formatting); internalWriter.WriteEndObject(); internalWriter.Flush(); stream.WriteByte(_newline); - settings.SourceSerializer.Serialize(GetBody(), stream); + settings.SourceSerializer.Serialize(GetBody(), stream, formatting); } protected override async Task SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting, CancellationToken cancellationToken = default) @@ -67,12 +67,11 @@ protected override async Task SerializeAsync(Stream stream, IElasticsearchClient var internalWriter = new Utf8JsonWriter(stream); internalWriter.WriteStartObject(); internalWriter.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize>(internalWriter, this, options); + requestResponseSerializer.Serialize(this, internalWriter, settings.MemoryStreamFactory, formatting); internalWriter.WriteEndObject(); - await internalWriter.FlushAsync().ConfigureAwait(false); + await internalWriter.FlushAsync(cancellationToken).ConfigureAwait(false); stream.WriteByte(_newline); - await settings.SourceSerializer.SerializeAsync(GetBody(), stream).ConfigureAwait(false); + await settings.SourceSerializer.SerializeAsync(GetBody(), stream, formatting, cancellationToken).ConfigureAwait(false); } protected override void SerializeInternal(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs index 6e91d811f93..92b16d6099d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs @@ -7,6 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using System.Threading.Tasks; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -51,8 +52,7 @@ private void SerializeInternal(IElasticsearchClientSettings settings, Utf8JsonWr var requestResponseSerializer = settings.RequestResponseSerializer; writer.WriteStartObject(); writer.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize(writer, this, options); + requestResponseSerializer.Serialize(this, writer, settings.MemoryStreamFactory); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs index 8ad8e2a4ba0..63ce144185d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs @@ -13,6 +13,7 @@ using Elastic.Clients.Elasticsearch.Serialization; #endif using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; @@ -38,8 +39,7 @@ protected override void Serialize(Stream stream, IElasticsearchClientSettings se var internalWriter = new Utf8JsonWriter(stream); internalWriter.WriteStartObject(); internalWriter.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize(internalWriter, this, options); + requestResponseSerializer.Serialize(this, internalWriter, settings.MemoryStreamFactory, formatting); internalWriter.WriteEndObject(); internalWriter.Flush(); } @@ -50,10 +50,9 @@ protected override async Task SerializeAsync(Stream stream, IElasticsearchClient var internalWriter = new Utf8JsonWriter(stream); internalWriter.WriteStartObject(); internalWriter.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize(internalWriter, this, options); + requestResponseSerializer.Serialize(this, internalWriter, settings.MemoryStreamFactory, formatting); internalWriter.WriteEndObject(); - await internalWriter.FlushAsync().ConfigureAwait(false); + await internalWriter.FlushAsync(cancellationToken).ConfigureAwait(false); } protected override void SerializeInternal(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs index 799138d6597..c71cf41949a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs @@ -8,6 +8,7 @@ using System.Text.Json; using System.Text.Json.Serialization; using System.Threading.Tasks; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -112,8 +113,7 @@ private void SerializeOperationAction(Utf8JsonWriter writer, IElasticsearchClien writer.WriteStartObject(); writer.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize>(writer, this, options); + requestResponseSerializer.Serialize(this, writer); writer.WriteEndObject(); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs index df959ebbec7..a59188d75c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs @@ -19,6 +19,7 @@ using Elastic.Clients.Elasticsearch.Serialization; #endif using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; @@ -56,8 +57,7 @@ protected override void Serialize(Stream stream, IElasticsearchClientSettings se var internalWriter = new Utf8JsonWriter(stream); internalWriter.WriteStartObject(); internalWriter.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize>(internalWriter, this, options); + requestResponseSerializer.Serialize(this, internalWriter, settings.MemoryStreamFactory); internalWriter.WriteEndObject(); internalWriter.Flush(); stream.WriteByte(_newline); @@ -70,12 +70,11 @@ protected override async Task SerializeAsync(Stream stream, IElasticsearchClient var internalWriter = new Utf8JsonWriter(stream); internalWriter.WriteStartObject(); internalWriter.WritePropertyName(Operation); - requestResponseSerializer.TryGetJsonSerializerOptions(out var options); - JsonSerializer.Serialize>(internalWriter, this, options); + requestResponseSerializer.Serialize(this, internalWriter, settings.MemoryStreamFactory); internalWriter.WriteEndObject(); - await internalWriter.FlushAsync().ConfigureAwait(false); + await internalWriter.FlushAsync(cancellationToken).ConfigureAwait(false); stream.WriteByte(_newline); - await settings.SourceSerializer.SerializeAsync(_document, stream).ConfigureAwait(false); + await settings.SourceSerializer.SerializeAsync(_document, stream, formatting, cancellationToken).ConfigureAwait(false); } protected override void SerializeInternal(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs index 0fca0d084c9..a4804b1b425 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs @@ -3,6 +3,7 @@ // See the LICENSE file in the project root for more information. using System.Text.Json; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Core.Search; #else @@ -69,7 +70,7 @@ protected override void SerializeProperties(Utf8JsonWriter writer, JsonSerialize if (PartialUpdate is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(PartialUpdate, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(PartialUpdate, writer); } if (Script is not null) @@ -93,7 +94,7 @@ protected override void SerializeProperties(Utf8JsonWriter writer, JsonSerialize if (Upsert is not null) { writer.WritePropertyName("upsert"); - SourceSerialization.Serialize(Upsert, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(Upsert, writer, null); } if (Source is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs index a36d9bb0c6c..1ddc44f3c4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs @@ -13,6 +13,7 @@ using Elastic.Clients.Elasticsearch.Serialization; #endif using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; 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 4a9e679db13..9b18c46939f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs @@ -9,6 +9,7 @@ using System.Threading; using System.Threading.Tasks; using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Core.Search; #else @@ -151,7 +152,7 @@ private void WriteBody(IElasticsearchClientSettings settings, Utf8JsonWriter wri if (_document is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(_document, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(_document, writer, null); } if (_scriptedUpsert.HasValue) @@ -169,7 +170,7 @@ private void WriteBody(IElasticsearchClientSettings settings, Utf8JsonWriter wri if (_upsert is not null) { writer.WritePropertyName("upsert"); - SourceSerialization.Serialize(_upsert, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(_upsert, writer, null); } if (_source is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs index 0be20a6f539..62d1f378193 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs @@ -3,6 +3,7 @@ // See the LICENSE file in the project root for more information. using System.Text.Json; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -32,7 +33,7 @@ protected override void SerializeProperties(Utf8JsonWriter writer, JsonSerialize if (PartialUpdate is not null) { writer.WritePropertyName("doc"); - SourceSerialization.Serialize(PartialUpdate, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(PartialUpdate, writer, null); } } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs index 2e25090e4fa..08200fe989b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs @@ -3,6 +3,7 @@ // See the LICENSE file in the project root for more information. using System.Text.Json; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS using Elastic.Clients.Elasticsearch.Serverless.Serialization; #else @@ -44,7 +45,7 @@ protected override void SerializeProperties(Utf8JsonWriter writer, JsonSerialize if (Upsert is not null) { writer.WritePropertyName("upsert"); - SourceSerialization.Serialize(Upsert, writer, settings.SourceSerializer); + settings.SourceSerializer.Serialize(Upsert, writer, null); } } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs index cf344602f0e..f3e0d25d78d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs @@ -11,6 +11,7 @@ using Elastic.Clients.Elasticsearch.Serialization; #endif using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Core.MSearch; @@ -37,13 +38,10 @@ void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings s if (Body is null) return; - if (settings.RequestResponseSerializer.TryGetJsonSerializerOptions(out var options)) - { - JsonSerializer.Serialize(stream, Header, options); - stream.WriteByte((byte)'\n'); - JsonSerializer.Serialize(stream, Body, options); - stream.WriteByte((byte)'\n'); - } + settings.RequestResponseSerializer.Serialize(Header, stream, formatting); + stream.WriteByte((byte)'\n'); + settings.RequestResponseSerializer.Serialize(Body, stream, formatting); + stream.WriteByte((byte)'\n'); } async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) @@ -51,12 +49,9 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien if (Body is null) return; - if (settings.RequestResponseSerializer.TryGetJsonSerializerOptions(out var options)) - { - await JsonSerializer.SerializeAsync(stream, Header, options).ConfigureAwait(false); - stream.WriteByte((byte)'\n'); - await JsonSerializer.SerializeAsync(stream, Body, options).ConfigureAwait(false); - stream.WriteByte((byte)'\n'); - } + await settings.RequestResponseSerializer.SerializeAsync(Header, stream, formatting).ConfigureAwait(false); + stream.WriteByte((byte)'\n'); + await settings.RequestResponseSerializer.SerializeAsync(Body, stream, formatting).ConfigureAwait(false); + stream.WriteByte((byte)'\n'); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs index 49f57a30683..c6790c7abb3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs @@ -16,6 +16,7 @@ using Elastic.Clients.Elasticsearch.Serialization; #endif using Elastic.Transport; +using Elastic.Transport.Extensions; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Core.MSearchTemplate; @@ -41,13 +42,10 @@ void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings s if (Body is null) return; - if (settings.RequestResponseSerializer.TryGetJsonSerializerOptions(out var options)) - { - JsonSerializer.Serialize(stream, Header, options); - stream.WriteByte((byte)'\n'); - JsonSerializer.Serialize(stream, Body, options); - stream.WriteByte((byte)'\n'); - } + settings.RequestResponseSerializer.Serialize(Header, stream, formatting); + stream.WriteByte((byte)'\n'); + settings.RequestResponseSerializer.Serialize(Body, stream, formatting); + stream.WriteByte((byte)'\n'); } async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) @@ -55,12 +53,9 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien if (Body is null) return; - if (settings.RequestResponseSerializer.TryGetJsonSerializerOptions(out var options)) - { - await JsonSerializer.SerializeAsync(stream, Header, options).ConfigureAwait(false); - stream.WriteByte((byte)'\n'); - await JsonSerializer.SerializeAsync(stream, Body, options).ConfigureAwait(false); - stream.WriteByte((byte)'\n'); - } + await settings.RequestResponseSerializer.SerializeAsync(Header, stream, formatting).ConfigureAwait(false); + stream.WriteByte((byte)'\n'); + await settings.RequestResponseSerializer.SerializeAsync(Body, stream, formatting).ConfigureAwait(false); + stream.WriteByte((byte)'\n'); } } diff --git a/src/Playground/Person.cs b/src/Playground/Person.cs index 538c23e0550..9fd093a4675 100644 --- a/src/Playground/Person.cs +++ b/src/Playground/Person.cs @@ -29,6 +29,8 @@ public class Person [DataMember(Name = "STEVE")] [IgnoreDataMember] public string Data { get; init; } = "NOTHING"; + + public DateTimeKind Enum { get; init; } } public class PersonV3 diff --git a/src/Playground/Playground.csproj b/src/Playground/Playground.csproj index 5ec71553f85..a2095681e91 100644 --- a/src/Playground/Playground.csproj +++ b/src/Playground/Playground.csproj @@ -10,7 +10,7 @@ - + diff --git a/tests/Tests/Tests.csproj b/tests/Tests/Tests.csproj index 15778c2dbf2..e764cc6a729 100644 --- a/tests/Tests/Tests.csproj +++ b/tests/Tests/Tests.csproj @@ -1,4 +1,4 @@ - + net6.0;net8.0 $(NoWarn);xUnit1013 @@ -10,7 +10,7 @@ - + From 7a9d63e6c864a2d8a3931a81275d761d3468ac75 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Sat, 5 Oct 2024 12:40:20 +0200 Subject: [PATCH 13/28] Add more examples to the documentation (#8374) --- docs/index.asciidoc | 2 +- docs/usage/aggregations.asciidoc | 131 +++++++++++++++++++++++++++++++ docs/usage/index.asciidoc | 3 + docs/usage/mappings.asciidoc | 34 ++++++++ docs/usage/query.asciidoc | 50 ++++++++++++ 5 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 docs/usage/aggregations.asciidoc create mode 100644 docs/usage/mappings.asciidoc create mode 100644 docs/usage/query.asciidoc diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 59a48269c40..b1202f34de2 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -6,7 +6,7 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[] :doc-tests-src: {docdir}/../tests/Tests/Documentation :net-client: Elasticsearch .NET Client -:latest-version: 8.1.0 +:latest-version: 8.15.8 :es-docs: https://www.elastic.co/guide/en/elasticsearch/reference/{branch} diff --git a/docs/usage/aggregations.asciidoc b/docs/usage/aggregations.asciidoc new file mode 100644 index 00000000000..1f159763aaa --- /dev/null +++ b/docs/usage/aggregations.asciidoc @@ -0,0 +1,131 @@ +[[aggregations]] +== Aggregation examples + +This page demonstrates how to use aggregations. + +[discrete] +=== Top-level aggreggation + +[discrete] +==== Fluent API + +[source,csharp] +---- +var response = await client + .SearchAsync(search => search + .Index("persons") + .Query(query => query + .MatchAll(_ => {}) + ) + .Aggregations(aggregations => aggregations + .Add("agg_name", aggregation => aggregation + .Max(max => max + .Field(x => x.Age) + ) + ) + ) + .Size(10) + ); +---- + +[discrete] +==== Object initializer API + +[source,csharp] +---- +var response = await client.SearchAsync(new SearchRequest("persons") +{ + Query = Query.MatchAll(new MatchAllQuery()), + Aggregations = new Dictionary + { + { "agg_name", Aggregation.Max(new MaxAggregation + { + Field = Infer.Field(x => x.Age) + })} + }, + Size = 10 +}); +---- + +[discrete] +==== Consume the response + +[source,csharp] +---- +var max = response.Aggregations!.GetMax("agg_name")!; +Console.WriteLine(max.Value); +---- + +[discrete] +=== Sub-aggregation + +[discrete] +==== Fluent API + +[source,csharp] +---- +var response = await client + .SearchAsync(search => search + .Index("persons") + .Query(query => query + .MatchAll(_ => {}) + ) + .Aggregations(aggregations => aggregations + .Add("firstnames", aggregation => aggregation + .Terms(terms => terms + .Field(x => x.FirstName) + ) + .Aggregations(aggregations => aggregations + .Add("avg_age", aggregation => aggregation + .Max(avg => avg + .Field(x => x.Age) + ) + ) + ) + ) + ) + .Size(10) + ); +---- + +[discrete] +==== Object initializer API + +[source,csharp] +---- +var topLevelAggregation = Aggregation.Terms(new TermsAggregation +{ + Field = Infer.Field(x => x.FirstName) +}); + +topLevelAggregation.Aggregations = new Dictionary +{ + { "avg_age", new MaxAggregation + { + Field = Infer.Field(x => x.Age) + }} +}; + +var response = await client.SearchAsync(new SearchRequest("persons") +{ + Query = Query.MatchAll(new MatchAllQuery()), + Aggregations = new Dictionary + { + { "firstnames", topLevelAggregation} + }, + Size = 10 +}); +---- + +[discrete] +==== Consume the response + +[source,csharp] +---- +var firstnames = response.Aggregations!.GetStringTerms("firstnames")!; +foreach (var bucket in firstnames.Buckets) +{ + var avg = bucket.Aggregations.GetAverage("avg_age")!; + Console.WriteLine($"The average age for persons named '{bucket.Key}' is {avg}"); +} +---- diff --git a/docs/usage/index.asciidoc b/docs/usage/index.asciidoc index 1d5aa7e086b..c6ae095064a 100644 --- a/docs/usage/index.asciidoc +++ b/docs/usage/index.asciidoc @@ -16,4 +16,7 @@ NOTE: This is still a work in progress, more sections will be added in the near include::recommendations.asciidoc[] include::examples.asciidoc[] +include::query.asciidoc[] +include::mappings.asciidoc[] +include::aggregations.asciidoc[] include::esql.asciidoc[] \ No newline at end of file diff --git a/docs/usage/mappings.asciidoc b/docs/usage/mappings.asciidoc new file mode 100644 index 00000000000..13d62f63147 --- /dev/null +++ b/docs/usage/mappings.asciidoc @@ -0,0 +1,34 @@ +[[mappings]] +== Custom mapping examples + +This page demonstrates how to configure custom mappings on an index. + +[discrete] +=== Configure mappings during index creation + +[source,csharp] +---- +await client.Indices.CreateAsync(index => index + .Index("index") + .Mappings(mappings => mappings + .Properties(properties => properties + .IntegerNumber(x => x.Age!) + .Keyword(x => x.FirstName!, keyword => keyword.Index(false)) + ) + ) +); +---- + +[discrete] +=== Configure mappings after index creation + +[source,csharp] +---- +await client.Indices.PutMappingAsync(mappings => mappings + .Indices("index") + .Properties(properties => properties + .IntegerNumber(x => x.Age!) + .Keyword(x => x.FirstName!, keyword => keyword.Index(false)) + ) +); +---- diff --git a/docs/usage/query.asciidoc b/docs/usage/query.asciidoc new file mode 100644 index 00000000000..b365825cdbd --- /dev/null +++ b/docs/usage/query.asciidoc @@ -0,0 +1,50 @@ +[[query]] +== Query examples + +This page demonstrates how to perform a search request. + +[discrete] +=== Fluent API + +[source,csharp] +---- +var response = await client + .SearchAsync(search => search + .Index("persons") + .Query(query => query + .Term(term => term + .Field(x => x.FirstName) + .Value("Florian") + ) + ) + .Size(10) + ); +---- + +[discrete] +=== Object initializer API + +[source,csharp] +---- +var response = await client + .SearchAsync(new SearchRequest("persons") + { + Query = Query.Term(new TermQuery(Infer.Field(x => x.FirstName)) + { + Value = "Florian" + }), + Size = 10 + }); +---- + + +[discrete] +=== Consume the response + +[source,csharp] +---- +foreach (var person in response.Documents) +{ + Console.WriteLine(person.FirstName); +} +---- From a557379ebaab03a912a80e09729b60c16ceed31d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:49:42 +0100 Subject: [PATCH 14/28] Update TFMs (#8402) (#8404) Co-authored-by: Florian Bernd --- benchmarks/Benchmarks/Benchmarks.csproj | 2 +- benchmarks/Profiling/Profiling.csproj | 2 +- .../Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj | 2 +- .../Elastic.Clients.Elasticsearch.Serverless.csproj | 2 +- .../Elastic.Clients.Elasticsearch.csproj | 2 +- tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj | 2 +- tests/Tests/Tests.csproj | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/benchmarks/Benchmarks/Benchmarks.csproj b/benchmarks/Benchmarks/Benchmarks.csproj index c0d9345a5d7..00e4ad09fd9 100644 --- a/benchmarks/Benchmarks/Benchmarks.csproj +++ b/benchmarks/Benchmarks/Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable True diff --git a/benchmarks/Profiling/Profiling.csproj b/benchmarks/Profiling/Profiling.csproj index 876544fa764..e591f4ab2c7 100644 --- a/benchmarks/Profiling/Profiling.csproj +++ b/benchmarks/Profiling/Profiling.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable diff --git a/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj b/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj index 15603cdefd1..5dcb5ab51b3 100644 --- a/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj +++ b/src/Elastic.Clients.Elasticsearch.JsonNetSerializer/Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj @@ -10,7 +10,7 @@ true true - netstandard2.0;net462;netstandard2.1;net6.0;net8.0 + netstandard2.0;net462;netstandard2.1;net8.0 diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj index 4e00bb4e38c..61cf6a25d43 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj +++ b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj @@ -15,7 +15,7 @@ true true - netstandard2.0;net462;netstandard2.1;net6.0;net8.0 + netstandard2.0;net462;netstandard2.1;net8.0 true true annotations diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index dcd3c9db9d8..1d7da48acd1 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -15,7 +15,7 @@ true true - netstandard2.0;net462;netstandard2.1;net6.0;net8.0 + netstandard2.0;net462;netstandard2.1;net8.0 true true annotations diff --git a/tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj b/tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj index 8f5d8102e48..7935ae2f92a 100644 --- a/tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj +++ b/tests/Tests.ClusterLauncher/Tests.ClusterLauncher.csproj @@ -1,7 +1,7 @@ Exe - net6.0;net8.0 + net8.0 false diff --git a/tests/Tests/Tests.csproj b/tests/Tests/Tests.csproj index e764cc6a729..aace0d9149f 100644 --- a/tests/Tests/Tests.csproj +++ b/tests/Tests/Tests.csproj @@ -1,6 +1,6 @@ - net6.0;net8.0 + net8.0 $(NoWarn);xUnit1013 True True From e7d6eb1ed7b06da677921278e75d55dbc747d905 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:50:16 +0100 Subject: [PATCH 15/28] Update `Elastic.Transport` to 0.5.2 (#8405) (#8407) Co-authored-by: Florian Bernd --- .../ElasticsearchClientProductRegistration.cs | 6 +- ...ic.Clients.Elasticsearch.Serverless.csproj | 2 +- .../ElasticsearchClientProductRegistration.cs | 2 +- .../Elastic.Clients.Elasticsearch.csproj | 2 +- .../_Shared/Api/BulkRequest.cs | 20 ++- .../_Shared/Api/Esql/EsqlQueryRequest.cs | 27 ++-- .../_Shared/Client/ElasticsearchClient.cs | 133 +++++------------- .../ElasticsearchClientSettings.cs | 22 +-- .../_Shared/Core/Request/PlainRequest.cs | 8 +- .../_Shared/Core/Request/Request.cs | 20 +-- .../_Shared/Core/Request/RequestDescriptor.cs | 15 +- .../_Shared/Helpers/BulkAllObservable.cs | 2 +- .../Helpers/RequestParametersExtensions.cs | 29 ---- src/Playground/Playground.csproj | 2 +- .../Tests.Core/Client/FixedResponseClient.cs | 6 +- tests/Tests/Tests.csproj | 2 +- 16 files changed, 100 insertions(+), 198 deletions(-) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestParametersExtensions.cs diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs b/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs index 225f124c7c1..14278786060 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs @@ -25,14 +25,14 @@ public ElasticsearchClientProductRegistration(Type markerType) : base(markerType public override string ServiceIdentifier => "esv"; - public override string DefaultMimeType => null; // Prevent base 'ElasticsearchProductRegistration' from sending the compatibility header + public override string? DefaultContentType => null; // Prevent base 'ElasticsearchProductRegistration' from sending the compatibility header public override MetaHeaderProvider MetaHeaderProvider => _metaHeaderProvider; /// /// Elastic.Clients.Elasticsearch handles 404 in its , we do not want the low level client throwing /// exceptions - /// when is enabled for 404's. The client is in charge of + /// when is enabled for 404's. The client is in charge of /// composing paths /// so a 404 never signals a wrong URL but a missing entity. /// @@ -77,7 +77,7 @@ public class ApiVersionMetaHeaderProducer : MetaHeaderProducer public override string HeaderName => "Elastic-Api-Version"; - public override string ProduceHeaderValue(RequestData requestData) => _apiVersion; + public override string ProduceHeaderValue(RequestData requestData, bool isAsync) => _apiVersion; public ApiVersionMetaHeaderProducer(VersionInfo version) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj index 61cf6a25d43..b35a3290eaf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj +++ b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj @@ -21,7 +21,7 @@ annotations - + diff --git a/src/Elastic.Clients.Elasticsearch/Core/ElasticsearchClientProductRegistration.cs b/src/Elastic.Clients.Elasticsearch/Core/ElasticsearchClientProductRegistration.cs index 3f00d9bb255..6c5e75b814e 100644 --- a/src/Elastic.Clients.Elasticsearch/Core/ElasticsearchClientProductRegistration.cs +++ b/src/Elastic.Clients.Elasticsearch/Core/ElasticsearchClientProductRegistration.cs @@ -18,7 +18,7 @@ public ElasticsearchClientProductRegistration(Type markerType) : base(markerType /// /// Elastic.Clients.Elasticsearch handles 404 in its , we do not want the low level client throwing /// exceptions - /// when is enabled for 404's. The client is in charge of + /// when is enabled for 404's. The client is in charge of /// composing paths /// so a 404 never signals a wrong URL but a missing entity. /// diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index 1d7da48acd1..71cdf552e81 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -21,7 +21,7 @@ annotations - + diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs index b9a2bf5151e..853b13a8be5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs @@ -32,13 +32,17 @@ namespace Elastic.Clients.Elasticsearch; public partial class BulkRequest : IStreamSerializable { - internal Request Self => this; + private static readonly IRequestConfiguration RequestConfigSingleton = new RequestConfiguration + { + Accept = "application/json", + ContentType = "application/x-ndjson" + }; - public BulkOperationsCollection Operations { get; set; } + internal Request Self => this; - internal override string ContentType => "application/x-ndjson"; + protected internal override IRequestConfiguration RequestConfig => RequestConfigSingleton; - internal override string Accept => "application/json"; + public BulkOperationsCollection Operations { get; set; } public void Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting = SerializationFormatting.None) { @@ -87,9 +91,13 @@ public async Task SerializeAsync(Stream stream, IElasticsearchClientSettings set public sealed partial class BulkRequestDescriptor : IStreamSerializable { - internal override string ContentType => "application/x-ndjson"; + private static readonly IRequestConfiguration RequestConfigSingleton = new RequestConfiguration + { + Accept = "application/json", + ContentType = "application/x-ndjson" + }; - internal override string Accept => "application/json"; + protected internal override IRequestConfiguration RequestConfig => RequestConfigSingleton; private readonly BulkOperationsCollection _operations = new(); diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs index 3f5821e2cb0..f4b002621f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs @@ -12,18 +12,19 @@ #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Esql; #else - namespace Elastic.Clients.Elasticsearch.Esql; #endif -internal sealed class EsqlResponseBuilder : CustomResponseBuilder +internal sealed class EsqlResponseBuilder : TypedResponseBuilder { - public override object DeserializeResponse(Serializer serializer, ApiCallDetails response, Stream stream) + protected override EsqlQueryResponse? Build(ApiCallDetails apiCallDetails, RequestData requestData, + Stream responseStream, + string contentType, long contentLength) { - var bytes = stream switch + var bytes = responseStream switch { MemoryStream ms => ms.ToArray(), - _ => BytesFromStream(stream) + _ => BytesFromStream(responseStream) }; return new EsqlQueryResponse { Data = bytes }; @@ -37,13 +38,14 @@ static byte[] BytesFromStream(Stream stream) } } - public override async Task DeserializeResponseAsync(Serializer serializer, ApiCallDetails response, Stream stream, - CancellationToken ctx = new CancellationToken()) + protected override async Task BuildAsync(ApiCallDetails apiCallDetails, RequestData requestData, + Stream responseStream, + string contentType, long contentLength, CancellationToken cancellationToken = default) { - var bytes = stream switch + var bytes = responseStream switch { MemoryStream ms => ms.ToArray(), - _ => await BytesFromStreamAsync(stream, ctx).ConfigureAwait(false) + _ => await BytesFromStreamAsync(responseStream, cancellationToken).ConfigureAwait(false) }; return new EsqlQueryResponse { Data = bytes }; @@ -62,10 +64,3 @@ static async Task BytesFromStreamAsync(Stream stream, CancellationToken } } } - -public sealed partial class EsqlQueryRequestParameters -{ - private static readonly EsqlResponseBuilder ResponseBuilder = new(); - - public EsqlQueryRequestParameters() => CustomResponseBuilder = ResponseBuilder; -} diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs index c71b196dec4..1e61176db52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs @@ -21,7 +21,6 @@ #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless; #else - namespace Elastic.Clients.Elasticsearch; #endif @@ -165,14 +164,12 @@ private ValueTask DoRequestCoreAsync SendRequest() { - var (resolvedUrl, _, resolvedRouteValues, postData) = PrepareRequest(request, forceConfiguration); + var (endpointPath, resolvedRouteValues, postData) = PrepareRequest(request); var openTelemetryData = PrepareOpenTelemetryData(request, resolvedRouteValues); return isAsync - ? new ValueTask(_transport - .RequestAsync(request.HttpMethod, resolvedUrl, postData, request.RequestParameters, in openTelemetryData, cancellationToken)) - : new ValueTask(_transport - .Request(request.HttpMethod, resolvedUrl, postData, request.RequestParameters, in openTelemetryData)); + ? new ValueTask(_transport.RequestAsync(endpointPath, postData, in openTelemetryData, request.RequestConfig, cancellationToken)) + : new ValueTask(_transport.Request(endpointPath, postData, in openTelemetryData, request.RequestConfig)); } async ValueTask SendRequestWithProductCheck() @@ -198,24 +195,22 @@ async ValueTask SendRequestWithProductCheckCore() { // Attach product check header - var hadRequestConfig = false; - HeadersList? originalHeaders = null; - - if (request.RequestParameters.RequestConfiguration is null) - request.RequestParameters.RequestConfiguration = new RequestConfiguration(); - else - { - originalHeaders = request.RequestParameters.RequestConfiguration.ResponseHeadersToParse; - hadRequestConfig = true; - } - - request.RequestParameters.RequestConfiguration.ResponseHeadersToParse = request.RequestParameters.RequestConfiguration.ResponseHeadersToParse.Count == 0 - ? new HeadersList("x-elastic-product") - : new HeadersList(request.RequestParameters.RequestConfiguration.ResponseHeadersToParse, "x-elastic-product"); + // TODO: The copy constructor should accept null values + var requestConfig = (request.RequestConfig is null) + ? new RequestConfiguration() + { + ResponseHeadersToParse = new HeadersList("x-elastic-product") + } + : new RequestConfiguration(request.RequestConfig) + { + ResponseHeadersToParse = (request.RequestConfig.ResponseHeadersToParse is { Count: > 0 }) + ? new HeadersList(request.RequestConfig.ResponseHeadersToParse, "x-elastic-product") + : new HeadersList("x-elastic-product") + }; // Send request - var (resolvedUrl, _, resolvedRouteValues, postData) = PrepareRequest(request, forceConfiguration); + var (endpointPath, resolvedRouteValues, postData) = PrepareRequest(request); var openTelemetryData = PrepareOpenTelemetryData(request, resolvedRouteValues); TResponse response; @@ -223,48 +218,36 @@ async ValueTask SendRequestWithProductCheckCore() if (isAsync) { response = await _transport - .RequestAsync(request.HttpMethod, resolvedUrl, postData, request.RequestParameters, in openTelemetryData, cancellationToken) + .RequestAsync(endpointPath, postData, in openTelemetryData, requestConfig, cancellationToken) .ConfigureAwait(false); } else { - response = _transport - .Request(request.HttpMethod, resolvedUrl, postData, request.RequestParameters, in openTelemetryData); + response = _transport.Request(endpointPath, postData, in openTelemetryData, requestConfig); } // Evaluate product check result var hasSuccessStatusCode = response.ApiCallDetails.HttpStatusCode is >= 200 and <= 299; - if (hasSuccessStatusCode) - { - var productCheckSucceeded = response.ApiCallDetails.TryGetHeader("x-elastic-product", out var values) && - values.FirstOrDefault(x => x.Equals("Elasticsearch", StringComparison.Ordinal)) is not null; - - _productCheckStatus = productCheckSucceeded - ? (int)ProductCheckStatus.Succeeded - : (int)ProductCheckStatus.Failed; - - if (_productCheckStatus == (int)ProductCheckStatus.Failed) - throw new UnsupportedProductException(UnsupportedProductException.InvalidProductError); - } - - if (request.RequestParameters.RequestConfiguration is null) - return response; - - // Reset request configuration - - if (!hadRequestConfig) - request.RequestParameters.RequestConfiguration = null; - else if (originalHeaders is { Count: > 0 }) - request.RequestParameters.RequestConfiguration.ResponseHeadersToParse = originalHeaders.Value; - if (!hasSuccessStatusCode) { // The product check is unreliable for non success status codes. // We have to re-try on the next request. _productCheckStatus = (int)ProductCheckStatus.NotChecked; + + return response; } + var productCheckSucceeded = response.ApiCallDetails.TryGetHeader("x-elastic-product", out var values) && + values.FirstOrDefault(x => x.Equals("Elasticsearch", StringComparison.Ordinal)) is not null; + + _productCheckStatus = productCheckSucceeded + ? (int)ProductCheckStatus.Succeeded + : (int)ProductCheckStatus.Failed; + + if (_productCheckStatus == (int)ProductCheckStatus.Failed) + throw new UnsupportedProductException(UnsupportedProductException.InvalidProductError); + return response; } } @@ -304,23 +287,14 @@ private static OpenTelemetryData PrepareOpenTelemetryData? resolvedRouteValues, PostData data) PrepareRequest(TRequest request, - Action? forceConfiguration) + private (EndpointPath endpointPath, Dictionary? resolvedRouteValues, PostData data) PrepareRequest(TRequest request) where TRequest : Request where TRequestParameters : RequestParameters, new() { request.ThrowIfNull(nameof(request), "A request is required."); - if (forceConfiguration is not null) - ForceConfiguration(request, forceConfiguration); - - if (request.ContentType is not null) - ForceContentType(request, request.ContentType); - - if (request.Accept is not null) - ForceAccept(request, request.Accept); - - var (resolvedUrl, urlTemplate, routeValues) = request.GetUrl(ElasticsearchClientSettings); + var (resolvedUrl, _, routeValues) = request.GetUrl(ElasticsearchClientSettings); + var pathAndQuery = request.RequestParameters.CreatePathWithQueryStrings(resolvedUrl, ElasticsearchClientSettings); var postData = request.HttpMethod == HttpMethod.GET || @@ -328,45 +302,6 @@ private static OpenTelemetryData PrepareOpenTelemetryData(Request request, Action forceConfiguration) - where TRequestParameters : RequestParameters, new() - { - var configuration = request.RequestParameters.RequestConfiguration ?? new RequestConfiguration(); - forceConfiguration(configuration); - request.RequestParameters.RequestConfiguration = configuration; - } - - private static void ForceContentType(TRequest request, string contentType) - where TRequest : Request - where TRequestParameters : RequestParameters, new() - { - var configuration = request.RequestParameters.RequestConfiguration ?? new RequestConfiguration(); - configuration.Accept = contentType; - configuration.ContentType = contentType; - request.RequestParameters.RequestConfiguration = configuration; - } - - private static void ForceAccept(TRequest request, string acceptType) - where TRequest : Request - where TRequestParameters : RequestParameters, new() - { - var configuration = request.RequestParameters.RequestConfiguration ?? new RequestConfiguration(); - configuration.Accept = acceptType; - request.RequestParameters.RequestConfiguration = configuration; - } - - internal static void ForceJson(IRequestConfiguration requestConfiguration) - { - requestConfiguration.Accept = RequestData.DefaultMimeType; - requestConfiguration.ContentType = RequestData.DefaultMimeType; - } - - internal static void ForceTextPlain(IRequestConfiguration requestConfiguration) - { - requestConfiguration.Accept = RequestData.MimeTypeTextPlain; - requestConfiguration.ContentType = RequestData.MimeTypeTextPlain; + return (new EndpointPath(request.HttpMethod, pathAndQuery), routeValues, postData); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs index 62c3e7ce566..b8381c7df40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs @@ -10,8 +10,10 @@ using System.Reflection; #if ELASTICSEARCH_SERVERLESS +using Elastic.Clients.Elasticsearch.Serverless.Esql; using Elastic.Clients.Elasticsearch.Serverless.Fluent; #else +using Elastic.Clients.Elasticsearch.Esql; using Elastic.Clients.Elasticsearch.Fluent; #endif @@ -104,9 +106,9 @@ public ElasticsearchClientSettings( /// [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] -public abstract class - ElasticsearchClientSettingsBase : ConnectionConfigurationBase, - IElasticsearchClientSettings +public abstract class ElasticsearchClientSettingsBase : + ConnectionConfigurationBase, + IElasticsearchClientSettings where TConnectionSettings : ElasticsearchClientSettingsBase, IElasticsearchClientSettings { private readonly FluentDictionary _defaultIndices; @@ -381,19 +383,21 @@ public ConnectionConfiguration(NodePool nodePool, IRequestInvoker requestInvoker /// [Browsable(false)] [EditorBrowsable(EditorBrowsableState.Never)] -public abstract class - ConnectionConfigurationBase : TransportConfigurationBase, - TransportClientConfigurationValues - where TConnectionConfiguration : ConnectionConfigurationBase, +public abstract class ConnectionConfigurationBase : + TransportConfigurationDescriptorBase, TransportClientConfigurationValues + where TConnectionConfiguration : ConnectionConfigurationBase, TransportClientConfigurationValues { private bool _includeServerStackTraceOnError; protected ConnectionConfigurationBase(NodePool nodePool, IRequestInvoker requestInvoker, Serializer? serializer, ProductRegistration registration = null) - : base(nodePool, requestInvoker, serializer, registration ?? new ElasticsearchProductRegistration(typeof(ElasticsearchClient))) => - UserAgent(ConnectionConfiguration.DefaultUserAgent); + : base(nodePool, requestInvoker, serializer, registration ?? new ElasticsearchProductRegistration(typeof(ElasticsearchClient))) + { + UserAgent(ConnectionConfiguration.DefaultUserAgent); + ResponseBuilder(new EsqlResponseBuilder()); + } bool TransportClientConfigurationValues.IncludeServerStackTraceOnError => _includeServerStackTraceOnError; diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs index 912d1a46dbd..9e36e7f3894 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs @@ -15,6 +15,8 @@ namespace Elastic.Clients.Elasticsearch.Requests; public abstract class PlainRequest : Request where TParameters : RequestParameters, new() { + private IRequestConfiguration? _requestConfiguration; // TODO: Remove this from the request classes and add to the endpoint methods instead + // This internal ctor ensures that only types defined within the Elastic.Clients.Elasticsearch assembly can derive from this base class. // We don't expect consumers to derive from this public base class. internal PlainRequest() { } @@ -75,9 +77,9 @@ public string SourceQueryString /// Specify settings for this request alone, handy if you need a custom timeout or want to bypass sniffing, retries /// [JsonIgnore] - public IRequestConfiguration RequestConfiguration + public IRequestConfiguration? RequestConfiguration { - get => RequestParameters.RequestConfiguration; - set => RequestParameters.RequestConfiguration = value; + get => _requestConfiguration; + set => _requestConfiguration = value; } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs index 2b643379e60..9d3a2470874 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Text.Json.Serialization; using Elastic.Transport; -using Elastic.Transport.Diagnostics; #if ELASTICSEARCH_SERVERLESS namespace Elastic.Clients.Elasticsearch.Serverless.Requests; @@ -23,9 +22,7 @@ public abstract class Request // We don't expect consumers to derive from this public base class. internal Request() { } - internal virtual string? Accept { get; } = null; - - internal virtual string? ContentType { get; } = null; + [JsonIgnore] protected internal virtual IRequestConfiguration? RequestConfig { get; set; } /// /// The default HTTP method for the request which is based on the Elasticsearch Specification endpoint definition. @@ -68,28 +65,19 @@ internal virtual void BeforeRequest() { } public abstract class Request : Request where TParameters : RequestParameters, new() { - private readonly TParameters _parameters; - - internal Request() => _parameters = new TParameters(); + internal Request() => RequestParameters = new TParameters(); protected Request(Func pathSelector) { pathSelector(RouteValues); - _parameters = new TParameters(); + RequestParameters = new TParameters(); } - [JsonIgnore] internal TParameters RequestParameters => _parameters; + [JsonIgnore] internal TParameters RequestParameters { get; } protected TOut? Q(string name) => RequestParameters.GetQueryStringValue(name); protected void Q(string name, object? value) => RequestParameters.SetQueryString(name, value); protected void Q(string name, IStringable value) => RequestParameters.SetQueryString(name, value.GetString()); - - protected void SetAcceptHeader(string format) - { - RequestParameters.RequestConfiguration ??= new RequestConfiguration(); - RequestParameters.RequestConfiguration.Accept = - RequestParameters.AcceptHeaderFromFormat(format); - } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs index 77ad327e1f5..05723aa7855 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs @@ -22,9 +22,10 @@ namespace Elastic.Clients.Elasticsearch.Requests; /// /// Base class for all request descriptor types. /// -public abstract partial class RequestDescriptor : Request, ISelfSerializable - where TDescriptor : RequestDescriptor - where TParameters : RequestParameters, new() +public abstract partial class RequestDescriptor : + Request, ISelfSerializable + where TDescriptor : RequestDescriptor + where TParameters : RequestParameters, new() { private readonly TDescriptor _descriptor; @@ -56,12 +57,10 @@ protected TDescriptor Qs(string name, IStringable value) /// /// Specify settings for this request alone, handy if you need a custom timeout or want to bypass sniffing, retries /// - public TDescriptor RequestConfiguration( - Func configurationSelector) + public TDescriptor RequestConfiguration(Func configurationSelector) { - var rc = RequestParameters.RequestConfiguration; - RequestParameters.RequestConfiguration = - configurationSelector?.Invoke(new RequestConfigurationDescriptor(rc)) ?? rc; + var rc = RequestConfig; + RequestConfig = configurationSelector?.Invoke(new RequestConfigurationDescriptor(rc)) ?? rc; return _descriptor; } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObservable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObservable.cs index e452e3465f1..e622b1436df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObservable.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObservable.cs @@ -124,7 +124,7 @@ private async Task BulkAsync(IList buffer, long page, int ba var response = await _client.BulkAsync(s => { - s.RequestParameters.RequestConfiguration = new RequestConfiguration { DisableAuditTrail = false }; + s.RequestConfiguration(x => x.DisableAuditTrail(false)); s.Index(request.Index); s.Timeout(request.Timeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestParametersExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestParametersExtensions.cs deleted file mode 100644 index 0640c806a70..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestParametersExtensions.cs +++ /dev/null @@ -1,29 +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 Elastic.Transport; - -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else -namespace Elastic.Clients.Elasticsearch; -#endif - -internal static class RequestParametersExtensions -{ - internal static void SetRequestMetaData(this RequestParameters parameters, RequestMetaData requestMetaData) - { - if (parameters is null) - throw new ArgumentNullException(nameof(parameters)); - - if (requestMetaData is null) - throw new ArgumentNullException(nameof(requestMetaData)); - - parameters.RequestConfiguration ??= new RequestConfiguration(); - - parameters.RequestConfiguration.RequestMetaData = requestMetaData; - } -} diff --git a/src/Playground/Playground.csproj b/src/Playground/Playground.csproj index a2095681e91..455e7a6ebd9 100644 --- a/src/Playground/Playground.csproj +++ b/src/Playground/Playground.csproj @@ -10,7 +10,7 @@ - + diff --git a/tests/Tests.Core/Client/FixedResponseClient.cs b/tests/Tests.Core/Client/FixedResponseClient.cs index 8a33f59ed50..310a216f0f1 100644 --- a/tests/Tests.Core/Client/FixedResponseClient.cs +++ b/tests/Tests.Core/Client/FixedResponseClient.cs @@ -17,7 +17,7 @@ public static ElasticsearchClient Create( object response, int statusCode = 200, Func modifySettings = null, - string contentType = RequestData.DefaultMimeType, + string contentType = RequestData.DefaultContentType, Exception exception = null ) { @@ -29,7 +29,7 @@ public static ElasticsearchClientSettings CreateConnectionSettings( object response, int statusCode = 200, Func modifySettings = null, - string contentType = RequestData.DefaultMimeType, + string contentType = RequestData.DefaultContentType, Exception exception = null, Serializer serializer = null ) @@ -46,7 +46,7 @@ public static ElasticsearchClientSettings CreateConnectionSettings( break; default: { - responseBytes = contentType == RequestData.DefaultMimeType + responseBytes = contentType == RequestData.DefaultContentType ? serializer.SerializeToBytes(response, TestClient.Default.ElasticsearchClientSettings.MemoryStreamFactory) : Encoding.UTF8.GetBytes(response.ToString()); diff --git a/tests/Tests/Tests.csproj b/tests/Tests/Tests.csproj index aace0d9149f..a99139377b6 100644 --- a/tests/Tests/Tests.csproj +++ b/tests/Tests/Tests.csproj @@ -10,7 +10,7 @@ - + From 36e93ee79ca3106947366d575264104445ece7ba Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:02:32 +0100 Subject: [PATCH 16/28] Regenerate the client using the latest specification (#8409) (#8411) Co-authored-by: Florian Bernd --- .../_Generated/Api/ApiUrlLookup.g.cs | 5 + .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 18 +- .../AsyncSearch/DeleteAsyncSearchRequest.g.cs | 18 +- .../AsyncSearch/GetAsyncSearchRequest.g.cs | 15 +- .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 47 +- .../_Generated/Api/ClearScrollRequest.g.cs | 10 +- .../Api/ClosePointInTimeRequest.g.cs | 16 +- .../Api/DeleteByQueryRethrottleRequest.g.cs | 12 +- .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 50 + .../_Generated/Api/FieldCapsRequest.g.cs | 36 +- .../IndexManagement/AnalyzeIndexRequest.g.cs | 9 +- .../IndexManagement/ExistsAliasRequest.g.cs | 17 - .../Api/IndexManagement/GetAliasRequest.g.cs | 17 - .../PutDataLifecycleRequest.g.cs | 106 +- .../Api/IndexManagement/SegmentsRequest.g.cs | 17 - .../Api/Inference/DeleteInferenceRequest.g.cs | 133 + .../Inference/DeleteInferenceResponse.g.cs | 40 + .../Api/Inference/GetInferenceRequest.g.cs | 105 + .../Api/Inference/GetInferenceResponse.g.cs | 33 + .../Api/Inference/InferenceRequest.g.cs | 199 + .../Api/Inference/InferenceResponse.g.cs | 31 + .../Api/Inference/PutInferenceRequest.g.cs | 132 + .../Api/Inference/PutInferenceResponse.g.cs | 70 + .../MachineLearning/PutDatafeedRequest.g.cs | 21 +- .../_Generated/Api/MultiGetRequest.g.cs | 21 +- .../_Generated/Api/MultiSearchRequest.g.cs | 60 +- .../Api/MultiSearchTemplateRequest.g.cs | 6 +- .../Api/MultiTermVectorsRequest.g.cs | 24 +- .../Api/OpenPointInTimeRequest.g.cs | 27 +- .../Api/QueryRules/TestRequest.g.cs | 102 + .../Api/QueryRules/TestResponse.g.cs | 35 + .../_Generated/Api/RankEvalRequest.g.cs | 15 +- .../Api/ReindexRethrottleRequest.g.cs | 10 +- .../Api/RenderSearchTemplateRequest.g.cs | 15 +- .../_Generated/Api/ScrollRequest.g.cs | 38 +- .../_Generated/Api/SearchMvtRequest.g.cs | 12 +- .../_Generated/Api/SearchRequest.g.cs | 34 +- .../_Generated/Api/SearchTemplateRequest.g.cs | 6 +- .../Security/ActivateUserProfileRequest.g.cs | 10 +- .../Api/Security/AuthenticateRequest.g.cs | 4 + .../Api/Security/BulkDeleteRoleRequest.g.cs | 6 + .../Api/Security/BulkPutRoleRequest.g.cs | 9 + .../Api/Security/ClearApiKeyCacheRequest.g.cs | 10 +- .../ClearCachedPrivilegesRequest.g.cs | 12 +- .../Security/ClearCachedRealmsRequest.g.cs | 10 +- .../Api/Security/ClearCachedRolesRequest.g.cs | 10 +- .../ClearCachedServiceTokensRequest.g.cs | 10 +- .../Api/Security/CreateApiKeyRequest.g.cs | 12 +- .../Security/CreateServiceTokenRequest.g.cs | 10 +- .../Api/Security/DeletePrivilegesRequest.g.cs | 4 +- .../Security/DeleteRoleMappingRequest.g.cs | 4 +- .../Api/Security/DeleteRoleRequest.g.cs | 10 +- .../Security/DeleteServiceTokenRequest.g.cs | 10 +- .../Security/DisableUserProfileRequest.g.cs | 10 +- .../Security/EnableUserProfileRequest.g.cs | 10 +- .../Api/Security/GetApiKeyRequest.g.cs | 4 + .../Security/GetBuiltinPrivilegesRequest.g.cs | 10 +- .../GetBuiltinPrivilegesResponse.g.cs | 2 +- .../Api/Security/GetPrivilegesRequest.g.cs | 4 +- .../Api/Security/GetRoleMappingRequest.g.cs | 14 +- .../Api/Security/GetRoleRequest.g.cs | 12 +- .../Security/GetServiceAccountsRequest.g.cs | 10 +- .../GetServiceCredentialsRequest.g.cs | 4 +- .../Api/Security/GetTokenRequest.g.cs | 10 +- .../Security/GetUserPrivilegesRequest.g.cs | 4 +- .../Api/Security/GetUserProfileRequest.g.cs | 10 +- .../Api/Security/GrantApiKeyRequest.g.cs | 21 +- .../Api/Security/HasPrivilegesRequest.g.cs | 8 +- .../HasPrivilegesUserProfileRequest.g.cs | 10 +- .../Api/Security/InvalidateApiKeyRequest.g.cs | 14 +- .../Api/Security/InvalidateTokenRequest.g.cs | 22 +- .../Api/Security/PutPrivilegesRequest.g.cs | 4 +- .../Api/Security/PutRoleMappingRequest.g.cs | 22 +- .../Api/Security/PutRoleRequest.g.cs | 18 +- .../Api/Security/QueryApiKeysRequest.g.cs | 18 +- .../Api/Security/QueryRoleRequest.g.cs | 15 +- .../Api/Security/QueryUserRequest.g.cs | 18 +- .../Api/Security/SamlAuthenticateRequest.g.cs | 10 +- .../Security/SamlCompleteLogoutRequest.g.cs | 6 + .../Api/Security/SamlInvalidateRequest.g.cs | 6 + .../Api/Security/SamlLogoutRequest.g.cs | 6 + .../SamlPrepareAuthenticationRequest.g.cs | 10 +- .../SamlServiceProviderMetadataRequest.g.cs | 6 + .../Security/SuggestUserProfilesRequest.g.cs | 6 + .../Api/Security/UpdateApiKeyRequest.g.cs | 6 + .../UpdateUserProfileDataRequest.g.cs | 10 +- .../_Generated/Api/TermVectorsRequest.g.cs | 8 +- .../_Generated/Api/TermsEnumRequest.g.cs | 39 +- .../Api/UpdateByQueryRethrottleRequest.g.cs | 12 +- .../ElasticsearchClient.AsyncSearch.g.cs | 236 +- .../Client/ElasticsearchClient.Cluster.g.cs | 108 +- .../Client/ElasticsearchClient.Enrich.g.cs | 22 +- .../Client/ElasticsearchClient.Eql.g.cs | 22 +- .../Client/ElasticsearchClient.Esql.g.cs | 14 +- .../Client/ElasticsearchClient.Graph.g.cs | 18 +- .../Client/ElasticsearchClient.Indices.g.cs | 143 +- .../Client/ElasticsearchClient.Inference.g.cs | 353 ++ .../Client/ElasticsearchClient.Ingest.g.cs | 30 +- .../Client/ElasticsearchClient.Ml.g.cs | 117 +- .../Client/ElasticsearchClient.Nodes.g.cs | 58 +- .../ElasticsearchClient.QueryRules.g.cs | 51 + .../Client/ElasticsearchClient.Security.g.cs | 1035 ++++-- .../Client/ElasticsearchClient.g.cs | 1034 +++++- .../Types/Analysis/Normalizers.g.cs | 2 +- .../_Generated/Types/ByteSize.g.cs | 2 +- .../_Generated/Types/Core/Context.g.cs | 2 +- ...ankEvalMetricDiscountedCumulativeGain.g.cs | 4 +- .../RankEvalMetricExpectedReciprocalRank.g.cs | 4 +- .../RankEvalMetricMeanReciprocalRank.g.cs | 4 +- .../RankEval/RankEvalMetricPrecision.g.cs | 4 +- .../Core/RankEval/RankEvalMetricRecall.g.cs | 4 +- .../Types/Enums/Enums.Inference.g.cs | 85 + .../Types/Enums/Enums.Security.g.cs | 23 + .../_Generated/Types/Fuzziness.g.cs | 2 +- .../IndexManagement/DataStreamLifecycle.g.cs | 53 + .../DataStreamLifecycleWithRollover.g.cs | 9 + .../DataStreamWithLifecycle.g.cs | 2 +- .../Types/IndexManagement/IndexSettings.g.cs | 6 +- .../Types/IndexManagement/IndexTemplate.g.cs | 19 + .../IndexManagement/MappingLimitSettings.g.cs | 4 +- .../Types/Inference/InferenceEndpoint.g.cs | 127 + .../Inference/InferenceEndpointInfo.g.cs | 76 + .../Types/Ingest/IpLocationProcessor.g.cs | 798 +++++ .../_Generated/Types/Ingest/Processor.g.cs | 15 + .../_Generated/Types/KnnRetriever.g.cs | 44 + .../Types/Mapping/GeoShapeProperty.g.cs | 6 +- .../Types/Mapping/ShapeProperty.g.cs | 6 +- .../_Generated/Types/QueryDsl/Like.g.cs | 2 +- .../_Generated/Types/QueryDsl/Query.g.cs | 33 - .../_Generated/Types/QueryDsl/TermsQuery.g.cs | 28 +- .../Types/QueryDsl/TextExpansionQuery.g.cs | 346 -- .../Types/QueryDsl/TokenPruningConfig.g.cs | 125 - .../Types/QueryDsl/WeightedTokensQuery.g.cs | 418 --- .../QueryRules/QueryRulesetMatchedRule.g.cs | 47 + .../_Generated/Types/RRFRetriever.g.cs | 44 + .../_Generated/Types/Retriever.g.cs | 30 + .../_Generated/Types/RuleRetriever.g.cs | 486 +++ .../Types/Security/IndicesPrivileges.g.cs | 5 +- .../_Generated/Types/Security/QueryRole.g.cs | 16 +- .../Types/Security/Restriction.g.cs | 59 + .../_Generated/Types/Security/Role.g.cs | 2 +- .../Types/Security/RoleDescriptor.g.cs | 115 + .../Types/Security/RoleDescriptorRead.g.cs | 16 +- .../Types/Security/UserIndicesPrivileges.g.cs | 1 + .../Types/TextSimilarityReranker.g.cs | 546 +++ .../_Generated/Types/Xpack/Features.g.cs | 2 + .../_Generated/Api/ApiUrlLookup.g.cs | 4 + .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 18 +- .../AsyncSearch/DeleteAsyncSearchRequest.g.cs | 18 +- .../AsyncSearch/GetAsyncSearchRequest.g.cs | 15 +- .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 47 +- .../_Generated/Api/ClearScrollRequest.g.cs | 10 +- .../Api/ClosePointInTimeRequest.g.cs | 16 +- .../FollowRequest.g.cs | 487 ++- .../ListDanglingIndicesRequest.g.cs | 18 +- .../Api/DeleteByQueryRethrottleRequest.g.cs | 12 +- .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 50 + .../_Generated/Api/FieldCapsRequest.g.cs | 36 +- .../Api/GetScriptContextRequest.g.cs | 10 +- .../Api/GetScriptLanguagesRequest.g.cs | 10 +- .../IndexManagement/AnalyzeIndexRequest.g.cs | 9 +- .../IndexManagement/ExistsAliasRequest.g.cs | 17 - .../Api/IndexManagement/GetAliasRequest.g.cs | 17 - .../PutDataLifecycleRequest.g.cs | 106 +- .../Api/IndexManagement/SegmentsRequest.g.cs | 17 - .../MachineLearning/PutDatafeedRequest.g.cs | 21 +- .../_Generated/Api/MultiGetRequest.g.cs | 21 +- .../_Generated/Api/MultiSearchRequest.g.cs | 60 +- .../Api/MultiSearchTemplateRequest.g.cs | 6 +- .../Api/MultiTermVectorsRequest.g.cs | 24 +- .../Api/OpenPointInTimeRequest.g.cs | 27 +- .../Api/QueryRules/TestRequest.g.cs | 102 + .../Api/QueryRules/TestResponse.g.cs | 35 + .../_Generated/Api/RankEvalRequest.g.cs | 15 +- .../Api/ReindexRethrottleRequest.g.cs | 10 +- .../Api/RenderSearchTemplateRequest.g.cs | 15 +- .../_Generated/Api/ScrollRequest.g.cs | 38 +- .../GetSearchApplicationResponse.g.cs | 2 +- .../Api/SearchApplication/ListResponse.g.cs | 2 +- .../PutSearchApplicationRequest.g.cs | 16 +- .../_Generated/Api/SearchMvtRequest.g.cs | 12 +- .../_Generated/Api/SearchRequest.g.cs | 34 +- .../_Generated/Api/SearchShardsRequest.g.cs | 21 +- .../_Generated/Api/SearchTemplateRequest.g.cs | 6 +- .../Security/ActivateUserProfileRequest.g.cs | 10 +- .../Api/Security/AuthenticateRequest.g.cs | 4 + .../Api/Security/BulkDeleteRoleRequest.g.cs | 6 + .../Api/Security/BulkPutRoleRequest.g.cs | 9 + .../Api/Security/ChangePasswordRequest.g.cs | 10 +- .../Api/Security/ClearApiKeyCacheRequest.g.cs | 10 +- .../ClearCachedPrivilegesRequest.g.cs | 12 +- .../Security/ClearCachedRealmsRequest.g.cs | 10 +- .../Api/Security/ClearCachedRolesRequest.g.cs | 10 +- .../ClearCachedServiceTokensRequest.g.cs | 10 +- .../Api/Security/CreateApiKeyRequest.g.cs | 12 +- .../CreateCrossClusterApiKeyRequest.g.cs | 433 +++ .../CreateCrossClusterApiKeyResponse.g.cs} | 41 +- .../Security/CreateServiceTokenRequest.g.cs | 10 +- .../Api/Security/DeletePrivilegesRequest.g.cs | 4 +- .../Security/DeleteRoleMappingRequest.g.cs | 4 +- .../Api/Security/DeleteRoleRequest.g.cs | 10 +- .../Security/DeleteServiceTokenRequest.g.cs | 10 +- .../Api/Security/DeleteUserRequest.g.cs | 10 +- .../Security/DisableUserProfileRequest.g.cs | 10 +- .../Api/Security/DisableUserRequest.g.cs | 10 +- .../Security/EnableUserProfileRequest.g.cs | 10 +- .../Api/Security/EnableUserRequest.g.cs | 10 +- .../Api/Security/EnrollKibanaRequest.g.cs | 10 +- .../Api/Security/EnrollNodeRequest.g.cs | 10 +- .../Api/Security/GetApiKeyRequest.g.cs | 4 + .../Security/GetBuiltinPrivilegesRequest.g.cs | 10 +- .../GetBuiltinPrivilegesResponse.g.cs | 4 +- .../Api/Security/GetPrivilegesRequest.g.cs | 4 +- .../Api/Security/GetRoleMappingRequest.g.cs | 14 +- .../Api/Security/GetRoleRequest.g.cs | 12 +- .../Security/GetServiceAccountsRequest.g.cs | 10 +- .../GetServiceCredentialsRequest.g.cs | 4 +- .../Api/Security/GetTokenRequest.g.cs | 10 +- .../Security/GetUserPrivilegesRequest.g.cs | 4 +- .../Api/Security/GetUserProfileRequest.g.cs | 10 +- .../Api/Security/GetUserRequest.g.cs | 10 +- .../Api/Security/GrantApiKeyRequest.g.cs | 21 +- .../Api/Security/HasPrivilegesRequest.g.cs | 8 +- .../HasPrivilegesUserProfileRequest.g.cs | 10 +- .../Api/Security/InvalidateApiKeyRequest.g.cs | 14 +- .../Api/Security/InvalidateTokenRequest.g.cs | 22 +- .../Api/Security/PutPrivilegesRequest.g.cs | 4 +- .../Api/Security/PutRoleMappingRequest.g.cs | 22 +- .../Api/Security/PutRoleRequest.g.cs | 178 +- .../Api/Security/PutUserRequest.g.cs | 12 +- .../Api/Security/QueryApiKeysRequest.g.cs | 18 +- .../Api/Security/QueryRoleRequest.g.cs | 15 +- .../Api/Security/QueryUserRequest.g.cs | 18 +- .../Api/Security/SamlAuthenticateRequest.g.cs | 10 +- .../Security/SamlCompleteLogoutRequest.g.cs | 6 + .../Api/Security/SamlInvalidateRequest.g.cs | 6 + .../Api/Security/SamlLogoutRequest.g.cs | 6 + .../SamlPrepareAuthenticationRequest.g.cs | 10 +- .../SamlServiceProviderMetadataRequest.g.cs | 6 + .../Security/SuggestUserProfilesRequest.g.cs | 6 + .../Api/Security/UpdateApiKeyRequest.g.cs | 6 + .../UpdateCrossClusterApiKeyRequest.g.cs | 347 ++ .../UpdateCrossClusterApiKeyResponse.g.cs | 39 + .../UpdateUserProfileDataRequest.g.cs | 10 +- .../RepositoryVerifyIntegrityRequest.g.cs | 215 ++ .../RepositoryVerifyIntegrityResponse.g.cs | 31 + .../_Generated/Api/Tasks/ListRequest.g.cs | 6 +- .../_Generated/Api/TermVectorsRequest.g.cs | 8 +- .../_Generated/Api/TermsEnumRequest.g.cs | 39 +- .../Api/UpdateByQueryRethrottleRequest.g.cs | 12 +- .../ElasticsearchClient.AsyncSearch.g.cs | 472 ++- .../Client/ElasticsearchClient.Ccr.g.cs | 356 +- .../Client/ElasticsearchClient.Cluster.g.cs | 248 +- .../ElasticsearchClient.DanglingIndices.g.cs | 72 +- .../Client/ElasticsearchClient.Enrich.g.cs | 44 +- .../Client/ElasticsearchClient.Eql.g.cs | 44 +- .../Client/ElasticsearchClient.Esql.g.cs | 28 +- .../Client/ElasticsearchClient.Graph.g.cs | 36 +- .../Client/ElasticsearchClient.Indices.g.cs | 406 ++- .../Client/ElasticsearchClient.Ingest.g.cs | 60 +- .../Client/ElasticsearchClient.Ml.g.cs | 234 +- .../Client/ElasticsearchClient.Nodes.g.cs | 116 +- .../ElasticsearchClient.QueryRules.g.cs | 106 + ...ElasticsearchClient.SearchApplication.g.cs | 8 +- .../Client/ElasticsearchClient.Security.g.cs | 3190 ++++++++++++++--- .../Client/ElasticsearchClient.Snapshot.g.cs | 106 + .../Client/ElasticsearchClient.Tasks.g.cs | 56 +- .../Client/ElasticsearchClient.g.cs | 2300 +++++++++--- .../Types/Analysis/Normalizers.g.cs | 2 +- .../_Generated/Types/ByteSize.g.cs | 2 +- .../_Generated/Types/Core/Context.g.cs | 2 +- ...ankEvalMetricDiscountedCumulativeGain.g.cs | 4 +- .../RankEvalMetricExpectedReciprocalRank.g.cs | 4 +- .../RankEvalMetricMeanReciprocalRank.g.cs | 4 +- .../RankEval/RankEvalMetricPrecision.g.cs | 4 +- .../Core/RankEval/RankEvalMetricRecall.g.cs | 4 +- .../FollowerIndexParameters.g.cs | 84 +- .../Types/Enums/Enums.Security.g.cs | 58 + .../_Generated/Types/Fuzziness.g.cs | 2 +- .../IndexManagement/DataStreamLifecycle.g.cs | 53 + .../DataStreamLifecycleWithRollover.g.cs | 9 + .../DataStreamWithLifecycle.g.cs | 2 +- .../Types/IndexManagement/IndexSettings.g.cs | 6 +- .../Types/IndexManagement/IndexTemplate.g.cs | 19 + .../IndexManagement/MappingLimitSettings.g.cs | 4 +- .../_Generated/Types/Ingest/IngestInfo.g.cs | 2 + .../Types/Ingest/IpLocationProcessor.g.cs | 798 +++++ .../_Generated/Types/Ingest/Processor.g.cs | 15 + .../_Generated/Types/Ingest/Redact.g.cs | 39 + .../Types/Ingest/RedactProcessor.g.cs | 44 + .../_Generated/Types/KnnRetriever.g.cs | 44 + .../Types/Mapping/GeoShapeProperty.g.cs | 6 +- .../Types/Mapping/ShapeProperty.g.cs | 6 +- .../_Generated/Types/QueryDsl/Like.g.cs | 2 +- .../_Generated/Types/QueryDsl/Query.g.cs | 33 - .../_Generated/Types/QueryDsl/TermsQuery.g.cs | 28 +- .../Types/QueryDsl/TextExpansionQuery.g.cs | 461 --- .../Types/QueryDsl/WeightedTokensQuery.g.cs | 418 --- .../QueryRules/QueryRulesetMatchedRule.g.cs | 47 + .../_Generated/Types/RRFRetriever.g.cs | 44 + .../_Generated/Types/Retriever.g.cs | 30 + .../_Generated/Types/RuleRetriever.g.cs | 486 +++ .../SearchApplication/SearchApplication.g.cs | 136 +- .../SearchApplicationParameters.g.cs | 151 + .../_Generated/Types/Security/Access.g.cs | 383 ++ .../Types/Security/IndicesPrivileges.g.cs | 5 +- .../_Generated/Types/Security/QueryRole.g.cs | 44 +- .../Security/RemoteClusterPrivileges.g.cs | 101 + .../Security/RemoteIndicesPrivileges.g.cs | 20 +- .../Types/Security/ReplicationAccess.g.cs | 96 + .../Types/Security/Restriction.g.cs | 59 + .../_Generated/Types/Security/Role.g.cs | 6 +- .../Types/Security/RoleDescriptor.g.cs | 457 +++ .../Types/Security/RoleDescriptorRead.g.cs | 44 +- .../Types/Security/SearchAccess.g.cs | 292 ++ .../Types/Security/UserIndicesPrivileges.g.cs | 1 + .../Types/TextSimilarityReranker.g.cs | 546 +++ .../_Generated/Types/Xpack/Features.g.cs | 2 + 318 files changed, 19795 insertions(+), 5421 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TokenPruningConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/{Types/SearchApplication/SearchApplicationListItem.g.cs => Api/Security/CreateCrossClusterApiKeyResponse.g.cs} (65%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs 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 a95353e6107..a417b9b437d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs @@ -88,6 +88,10 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" }); internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" }); internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" }); + internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); + internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); + internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); + internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" }); internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" }); @@ -218,6 +222,7 @@ internal static class ApiUrlLookup internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" }); internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" }); + internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" }); internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" }); internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "_security/_authenticate" }); internal static ApiUrls SecurityBulkDeleteRole = new ApiUrls(new[] { "_security/role" }); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index c87bdfffbbe..dbeb916562f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -36,8 +36,10 @@ public sealed partial class AsyncSearchStatusRequestParameters : RequestParamete /// /// -/// Get async search status -/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. +/// Get the async search status. +/// +/// +/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// /// @@ -58,8 +60,10 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) /// /// -/// Get async search status -/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. +/// Get the async search status. +/// +/// +/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// /// @@ -92,8 +96,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Get async search status -/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. +/// Get the async search status. +/// +/// +/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs index 5f52d5657f5..3d0db2d1b6f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs @@ -36,8 +36,10 @@ public sealed partial class DeleteAsyncSearchRequestParameters : RequestParamete /// /// -/// Deletes an async search by identifier. -/// If the search is still running, the search request will be cancelled. +/// Delete an async search. +/// +/// +/// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// @@ -59,8 +61,10 @@ public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) /// /// -/// Deletes an async search by identifier. -/// If the search is still running, the search request will be cancelled. +/// Delete an async search. +/// +/// +/// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// @@ -94,8 +98,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes an async search by identifier. -/// If the search is still running, the search request will be cancelled. +/// Delete an async search. +/// +/// +/// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index eb6996e3141..773597370a7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -62,7 +62,10 @@ public sealed partial class GetAsyncSearchRequestParameters : RequestParameters /// /// -/// Retrieves the results of a previously submitted async search request given its identifier. +/// Get async search results. +/// +/// +/// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// /// @@ -113,7 +116,10 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : b /// /// -/// Retrieves the results of a previously submitted async search request given its identifier. +/// Get async search results. +/// +/// +/// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// /// @@ -150,7 +156,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves the results of a previously submitted async search request given its identifier. +/// Get async search results. +/// +/// +/// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index 201bd4cacd2..eecf690c28d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -138,7 +138,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// /// public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } /// /// @@ -652,10 +651,16 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value /// /// -/// Runs a search request asynchronously. -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. -/// Warning: Async search does not support scroll nor search requests that only include the suggest section. -/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. +/// Run an async search. +/// +/// +/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. +/// +/// +/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. +/// +/// +/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// /// @@ -799,8 +804,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices /// [JsonIgnore] public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - [JsonIgnore] - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } /// /// @@ -1145,10 +1148,16 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices /// /// -/// Runs a search request asynchronously. -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. -/// Warning: Async search does not support scroll nor search requests that only include the suggest section. -/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. +/// Run an async search. +/// +/// +/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. +/// +/// +/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. +/// +/// +/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// /// @@ -1187,7 +1196,6 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); @@ -2264,10 +2272,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Runs a search request asynchronously. -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. -/// Warning: Async search does not support scroll nor search requests that only include the suggest section. -/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. +/// Run an async search. +/// +/// +/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. +/// +/// +/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. +/// +/// +/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// /// @@ -2306,7 +2320,6 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs index 5ef6d921fee..d0dec945da3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearScrollRequestParameters : RequestParameters /// /// -/// Clears the search context and results for a scrolling search. +/// Clear a scrolling search. +/// +/// +/// Clear the search context and results for a scrolling search. /// /// public sealed partial class ClearScrollRequest : PlainRequest @@ -61,7 +64,10 @@ public sealed partial class ClearScrollRequest : PlainRequest /// -/// Clears the search context and results for a scrolling search. +/// Clear a scrolling search. +/// +/// +/// Clear the search context and results for a scrolling search. /// /// public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs index fce101f4962..843be08f62d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -36,7 +36,13 @@ public sealed partial class ClosePointInTimeRequestParameters : RequestParameter /// /// -/// Closes a point-in-time. +/// Close a point in time. +/// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// A point in time is automatically closed when the keep_alive period has elapsed. +/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// /// public sealed partial class ClosePointInTimeRequest : PlainRequest @@ -60,7 +66,13 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest /// -/// Closes a point-in-time. +/// Close a point in time. +/// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// A point in time is automatically closed when the keep_alive period has elapsed. +/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// /// public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index e56fc10d40d..4b332640fe0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class DeleteByQueryRethrottleRequestParameters : RequestPa /// /// -/// Changes the number of requests per second for a particular Delete By Query operation. +/// Throttle a delete by query operation. +/// +/// +/// Change the number of requests per second for a particular delete by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest @@ -70,7 +74,11 @@ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.T /// /// -/// Changes the number of requests per second for a particular Delete By Query operation. +/// Throttle a delete by query operation. +/// +/// +/// Change the number of requests per second for a particular delete by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs index f01dfc28fc2..ed8d5a287a1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -115,6 +115,16 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices [JsonInclude, JsonPropertyName("keep_on_completion")] public bool? KeepOnCompletion { get; set; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + [JsonInclude, JsonPropertyName("max_samples_per_key")] + public int? MaxSamplesPerKey { get; set; } + /// /// /// EQL query you wish to run. @@ -202,6 +212,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Action>[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } + private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary> RuntimeMappingsValue { get; set; } @@ -354,6 +365,19 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnComple return Self; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) + { + MaxSamplesPerKeyValue = maxSamplesPerKey; + return Self; + } + /// /// /// EQL query you wish to run. @@ -551,6 +575,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } + if (MaxSamplesPerKeyValue.HasValue) + { + writer.WritePropertyName("max_samples_per_key"); + writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); + } + writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) @@ -637,6 +667,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverle private Action[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } + private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary RuntimeMappingsValue { get; set; } @@ -789,6 +820,19 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true return Self; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) + { + MaxSamplesPerKeyValue = maxSamplesPerKey; + return Self; + } + /// /// /// EQL query you wish to run. @@ -986,6 +1030,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } + if (MaxSamplesPerKeyValue.HasValue) + { + writer.WritePropertyName("max_samples_per_key"); + writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); + } + writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs index da4e00b2404..c947c938007 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs @@ -86,9 +86,15 @@ public sealed partial class FieldCapsRequestParameters : RequestParameters /// /// -/// The field capabilities API returns the information about the capabilities of fields among multiple indices. -/// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type -/// of keyword is returned as any other field that belongs to the keyword family. +/// Get the field capabilities. +/// +/// +/// Get information about the capabilities of fields among multiple indices. +/// +/// +/// For data streams, the API returns field capabilities among the stream’s backing indices. +/// It returns runtime fields like any other field. +/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// public sealed partial class FieldCapsRequest : PlainRequest @@ -196,9 +202,15 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indice /// /// -/// The field capabilities API returns the information about the capabilities of fields among multiple indices. -/// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type -/// of keyword is returned as any other field that belongs to the keyword family. +/// Get the field capabilities. +/// +/// +/// Get information about the capabilities of fields among multiple indices. +/// +/// +/// For data streams, the API returns field capabilities among the stream’s backing indices. +/// It returns runtime fields like any other field. +/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// public sealed partial class FieldCapsRequestDescriptor : RequestDescriptor, FieldCapsRequestParameters> @@ -330,9 +342,15 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The field capabilities API returns the information about the capabilities of fields among multiple indices. -/// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type -/// of keyword is returned as any other field that belongs to the keyword family. +/// Get the field capabilities. +/// +/// +/// Get information about the capabilities of fields among multiple indices. +/// +/// +/// For data streams, the API returns field capabilities among the stream’s backing indices. +/// It returns runtime fields like any other field. +/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// public sealed partial class FieldCapsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs index 19c041d5f48..81d71987457 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class AnalyzeIndexRequestParameters : RequestParameters /// /// -/// Performs analysis on a text string and returns the resulting tokens. +/// Get tokens from text analysis. +/// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// public sealed partial class AnalyzeIndexRequest : PlainRequest @@ -137,7 +138,8 @@ public AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? i /// /// -/// Performs analysis on a text string and returns the resulting tokens. +/// Get tokens from text analysis. +/// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor, AnalyzeIndexRequestParameters> @@ -368,7 +370,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Performs analysis on a text string and returns the resulting tokens. +/// Get tokens from text analysis. +/// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// public sealed partial class AnalyzeIndexRequestDescriptor : 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 9f27881dc8f..31b5341d649 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 @@ -56,13 +56,6 @@ public sealed partial class ExistsAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -116,14 +109,6 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indi /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -155,7 +140,6 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Nam public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) { @@ -203,7 +187,6 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Nam public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) { 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 53820d6bb2a..8af03179f6b 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 @@ -56,13 +56,6 @@ public sealed partial class GetAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -124,14 +117,6 @@ public GetAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -163,7 +148,6 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) { @@ -211,7 +195,6 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) { 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 3c979b58a57..39f545869db 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 @@ -65,7 +65,7 @@ public sealed partial class PutDataLifecycleRequestParameters : RequestParameter /// Update the data stream lifecycle of the specified data streams. /// /// -public sealed partial class PutDataLifecycleRequest : PlainRequest +public sealed partial class PutDataLifecycleRequest : PlainRequest, ISelfSerializable { public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) { @@ -107,25 +107,13 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle Lifecycle { get; set; } - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; set; } - - /// - /// - /// If defined, every backing index will execute the configured downsampling configuration after the backing - /// index is not the data stream write index anymore. - /// - /// - [JsonInclude, JsonPropertyName("downsampling")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, Lifecycle, options); + } } /// @@ -137,10 +125,7 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor { internal PutDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } + public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) => LifecycleValue = lifecycle; internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; @@ -160,79 +145,36 @@ public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serv return Self; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetentionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } - private Action DownsamplingDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle LifecycleValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticsearch.Serverless.Duration? dataRetention) - { - DataRetentionValue = dataRetention; - return Self; - } - - /// - /// - /// If defined, every backing index will execute the configured downsampling configuration after the backing - /// index is not the data stream write index anymore. - /// - /// - public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle lifecycle) { - DownsamplingDescriptor = null; - DownsamplingDescriptorAction = null; - DownsamplingValue = downsampling; + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; return Self; } - public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor descriptor) + public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor descriptor) { - DownsamplingValue = null; - DownsamplingDescriptorAction = null; - DownsamplingDescriptor = descriptor; + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; return Self; } - public PutDataLifecycleRequestDescriptor Downsampling(Action configure) + public PutDataLifecycleRequestDescriptor Lifecycle(Action configure) { - DownsamplingValue = null; - DownsamplingDescriptor = null; - DownsamplingDescriptorAction = configure; + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - writer.WriteStartObject(); - if (DataRetentionValue is not null) - { - writer.WritePropertyName("data_retention"); - JsonSerializer.Serialize(writer, DataRetentionValue, options); - } - - if (DownsamplingDescriptor is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); - } - else if (DownsamplingDescriptorAction is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); - } - else if (DownsamplingValue is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, DownsamplingValue, options); - } - - writer.WriteEndObject(); + JsonSerializer.Serialize(writer, LifecycleValue, options); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 0960e65ef67..81234631b70 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -56,13 +56,6 @@ public sealed partial class SegmentsRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request returns a verbose response. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -116,14 +109,6 @@ public SegmentsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request returns a verbose response. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -155,7 +140,6 @@ public SegmentsRequestDescriptor() public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) { @@ -197,7 +181,6 @@ public SegmentsRequestDescriptor() public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs new file mode 100644 index 00000000000..b2db5f61ffa --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs @@ -0,0 +1,133 @@ +// 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 Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Inference; + +public sealed partial class DeleteInferenceRequestParameters : RequestParameters +{ + /// + /// + /// When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned + /// + /// + public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } + + /// + /// + /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields + /// + /// + public bool? Force { get => Q("force"); set => Q("force", value); } +} + +/// +/// +/// Delete an inference endpoint +/// +/// +public sealed partial class DeleteInferenceRequest : PlainRequest +{ + public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "inference.delete"; + + /// + /// + /// When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned + /// + /// + [JsonIgnore] + public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } + + /// + /// + /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields + /// + /// + [JsonIgnore] + public bool? Force { get => Q("force"); set => Q("force", value); } +} + +/// +/// +/// Delete an inference endpoint +/// +/// +public sealed partial class DeleteInferenceRequestDescriptor : RequestDescriptor +{ + internal DeleteInferenceRequestDescriptor(Action configure) => configure.Invoke(this); + + public DeleteInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + public DeleteInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "inference.delete"; + + public DeleteInferenceRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); + public DeleteInferenceRequestDescriptor Force(bool? force = true) => Qs("force", force); + + public DeleteInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + public DeleteInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) + { + RouteValues.Optional("task_type", taskType); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs new file mode 100644 index 00000000000..87912c59bf7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs @@ -0,0 +1,40 @@ +// 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.Inference; + +public sealed partial class DeleteInferenceResponse : ElasticsearchResponse +{ + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + [JsonInclude, JsonPropertyName("pipelines")] + public IReadOnlyCollection Pipelines { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs new file mode 100644 index 00000000000..f18bb03711f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs @@ -0,0 +1,105 @@ +// 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 Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Inference; + +public sealed partial class GetInferenceRequestParameters : RequestParameters +{ +} + +/// +/// +/// Get an inference endpoint +/// +/// +public sealed partial class GetInferenceRequest : PlainRequest +{ + public GetInferenceRequest() + { + } + + public GetInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) : base(r => r.Optional("inference_id", inferenceId)) + { + } + + public GetInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) : base(r => r.Optional("task_type", taskType).Optional("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "inference.get"; +} + +/// +/// +/// Get an inference endpoint +/// +/// +public sealed partial class GetInferenceRequestDescriptor : RequestDescriptor +{ + internal GetInferenceRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) : base(r => r.Optional("task_type", taskType).Optional("inference_id", inferenceId)) + { + } + + public GetInferenceRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "inference.get"; + + public GetInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) + { + RouteValues.Optional("inference_id", inferenceId); + return Self; + } + + public GetInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) + { + RouteValues.Optional("task_type", taskType); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs new file mode 100644 index 00000000000..eadcef93ac5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Inference; + +public sealed partial class GetInferenceResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("endpoints")] + public IReadOnlyCollection Endpoints { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs new file mode 100644 index 00000000000..6e94c6b33af --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs @@ -0,0 +1,199 @@ +// 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 Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Inference; + +public sealed partial class InferenceRequestParameters : RequestParameters +{ + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Perform inference on the service +/// +/// +public sealed partial class InferenceRequest : PlainRequest +{ + public InferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + public InferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceInference; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.inference"; + + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("input")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Input { get; set; } + + /// + /// + /// Query input, required for rerank task. + /// Not required for other tasks. + /// + /// + [JsonInclude, JsonPropertyName("query")] + public string? Query { get; set; } + + /// + /// + /// Optional task settings + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Perform inference on the service +/// +/// +public sealed partial class InferenceRequestDescriptor : RequestDescriptor +{ + internal InferenceRequestDescriptor(Action configure) => configure.Invoke(this); + + public InferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + public InferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceInference; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.inference"; + + public InferenceRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); + + public InferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + public InferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) + { + RouteValues.Optional("task_type", taskType); + return Self; + } + + private ICollection InputValue { get; set; } + private string? QueryValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + public InferenceRequestDescriptor Input(ICollection input) + { + InputValue = input; + return Self; + } + + /// + /// + /// Query input, required for rerank task. + /// Not required for other tasks. + /// + /// + public InferenceRequestDescriptor Query(string? query) + { + QueryValue = query; + return Self; + } + + /// + /// + /// Optional task settings + /// + /// + public InferenceRequestDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input"); + SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + if (!string.IsNullOrEmpty(QueryValue)) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + } + + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs new file mode 100644 index 00000000000..0e2891aecf9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.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.Inference; + +public sealed partial class InferenceResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs new file mode 100644 index 00000000000..25fcbef1078 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -0,0 +1,132 @@ +// 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 Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Inference; + +public sealed partial class PutInferenceRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an inference endpoint +/// +/// +public sealed partial class PutInferenceRequest : PlainRequest, ISelfSerializable +{ + public PutInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + public PutInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePut; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put"; + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint InferenceConfig { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, InferenceConfig, options); + } +} + +/// +/// +/// Create an inference endpoint +/// +/// +public sealed partial class PutInferenceRequestDescriptor : RequestDescriptor +{ + internal PutInferenceRequestDescriptor(Action configure) => configure.Invoke(this); + public PutInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) => InferenceConfigValue = inferenceConfig; + public PutInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) => InferenceConfigValue = inferenceConfig; + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePut; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put"; + + public PutInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + public PutInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) + { + RouteValues.Optional("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint InferenceConfigValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpointDescriptor InferenceConfigDescriptor { get; set; } + private Action InferenceConfigDescriptorAction { get; set; } + + public PutInferenceRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig) + { + InferenceConfigDescriptor = null; + InferenceConfigDescriptorAction = null; + InferenceConfigValue = inferenceConfig; + return Self; + } + + public PutInferenceRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpointDescriptor descriptor) + { + InferenceConfigValue = null; + InferenceConfigDescriptorAction = null; + InferenceConfigDescriptor = descriptor; + return Self; + } + + public PutInferenceRequestDescriptor InferenceConfig(Action configure) + { + InferenceConfigValue = null; + InferenceConfigDescriptor = null; + InferenceConfigDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, InferenceConfigValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs new file mode 100644 index 00000000000..88c831242f4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs @@ -0,0 +1,70 @@ +// 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.Inference; + +public sealed partial class PutInferenceResponse : ElasticsearchResponse +{ + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 21cd468437c..3e60e8cecac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -254,7 +254,12 @@ public override void Write(Utf8JsonWriter writer, PutDatafeedRequest value, Json /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. +/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had +/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, +/// those credentials are used instead. +/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed +/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// [JsonConverter(typeof(PutDatafeedRequestConverter))] @@ -438,7 +443,12 @@ public PutDatafeedRequest() /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. +/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had +/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, +/// those credentials are used instead. +/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed +/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// public sealed partial class PutDatafeedRequestDescriptor : RequestDescriptor, PutDatafeedRequestParameters> @@ -871,7 +881,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. +/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had +/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, +/// those credentials are used instead. +/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed +/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// public sealed partial class PutDatafeedRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs index 9aa85448a96..e9954b360ad 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs @@ -94,7 +94,12 @@ public sealed partial class MultiGetRequestParameters : RequestParameters /// /// -/// Allows to get multiple documents in one request. +/// Get multiple documents. +/// +/// +/// Get multiple JSON documents by ID from one or more indices. +/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. +/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// public sealed partial class MultiGetRequest : PlainRequest @@ -201,7 +206,12 @@ public MultiGetRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index /// /// -/// Allows to get multiple documents in one request. +/// Get multiple documents. +/// +/// +/// Get multiple JSON documents by ID from one or more indices. +/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. +/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// public sealed partial class MultiGetRequestDescriptor : RequestDescriptor, MultiGetRequestParameters> @@ -343,7 +353,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Allows to get multiple documents in one request. +/// Get multiple documents. +/// +/// +/// Get multiple JSON documents by ID from one or more indices. +/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. +/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// public sealed partial class MultiGetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs index 8c0ef9bbda7..25f73f21209 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs @@ -121,7 +121,25 @@ public sealed partial class MultiSearchRequestParameters : RequestParameters /// /// -/// Allows to execute several search operations in one request. +/// Run multiple searches. +/// +/// +/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. +/// The structure is as follows: +/// +/// +/// header\n +/// body\n +/// header\n +/// body\n +/// +/// +/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. +/// +/// +/// IMPORTANT: The final line of data must end with a newline character \n. +/// Each newline character may be preceded by a carriage return \r. +/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// public sealed partial class MultiSearchRequest : PlainRequest, IStreamSerializable @@ -264,7 +282,25 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien /// /// -/// Allows to execute several search operations in one request. +/// Run multiple searches. +/// +/// +/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. +/// The structure is as follows: +/// +/// +/// header\n +/// body\n +/// header\n +/// body\n +/// +/// +/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. +/// +/// +/// IMPORTANT: The final line of data must end with a newline character \n. +/// Each newline character may be preceded by a carriage return \r. +/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// public sealed partial class MultiSearchRequestDescriptor : RequestDescriptor, MultiSearchRequestParameters>, IStreamSerializable @@ -343,7 +379,25 @@ public MultiSearchRequestDescriptor AddSearches(Elastic.Clients.Elast /// /// -/// Allows to execute several search operations in one request. +/// Run multiple searches. +/// +/// +/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. +/// The structure is as follows: +/// +/// +/// header\n +/// body\n +/// header\n +/// body\n +/// +/// +/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. +/// +/// +/// IMPORTANT: The final line of data must end with a newline character \n. +/// Each newline character may be preceded by a carriage return \r. +/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// public sealed partial class MultiSearchRequestDescriptor : RequestDescriptor, IStreamSerializable diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs index 3d32f3e4575..1fffa2f1906 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -74,7 +74,7 @@ public sealed partial class MultiSearchTemplateRequestParameters : RequestParame /// /// -/// Runs multiple templated searches with a single request. +/// Run multiple templated searches. /// /// public sealed partial class MultiSearchTemplateRequest : PlainRequest, IStreamSerializable @@ -163,7 +163,7 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien /// /// -/// Runs multiple templated searches with a single request. +/// Run multiple templated searches. /// /// public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, MultiSearchTemplateRequestParameters>, IStreamSerializable @@ -235,7 +235,7 @@ public MultiSearchTemplateRequestDescriptor AddSearchTemplates(Elasti /// /// -/// Runs multiple templated searches with a single request. +/// Run multiple templated searches. /// /// public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, IStreamSerializable diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs index 1f4602c4741..40cdd16d284 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -114,7 +114,13 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter /// /// -/// Returns multiple termvectors in one request. +/// Get multiple term vectors. +/// +/// +/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. +/// You can specify the index in the request body or request URI. +/// The response contains a docs array with all the fetched termvectors. +/// Each element has the structure provided by the termvectors API. /// /// public sealed partial class MultiTermVectorsRequest : PlainRequest @@ -244,7 +250,13 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexNam /// /// -/// Returns multiple termvectors in one request. +/// Get multiple term vectors. +/// +/// +/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. +/// You can specify the index in the request body or request URI. +/// The response contains a docs array with all the fetched termvectors. +/// Each element has the structure provided by the termvectors API. /// /// public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor, MultiTermVectorsRequestParameters> @@ -389,7 +401,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns multiple termvectors in one request. +/// Get multiple term vectors. +/// +/// +/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. +/// You can specify the index in the request body or request URI. +/// The response contains a docs array with all the fetched termvectors. +/// Each element has the structure provided by the termvectors API. /// /// public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs index da6b9acc96f..a9947bbed2d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -73,13 +73,20 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters /// /// -/// A search request by default executes against the most recent visible data of the target indices, +/// Open a point in time. +/// +/// +/// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// /// public sealed partial class OpenPointInTimeRequest : PlainRequest { @@ -149,13 +156,20 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices i /// /// -/// A search request by default executes against the most recent visible data of the target indices, +/// Open a point in time. +/// +/// +/// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// /// public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor, OpenPointInTimeRequestParameters> { @@ -247,13 +261,20 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// A search request by default executes against the most recent visible data of the target indices, +/// Open a point in time. +/// +/// +/// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// /// public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs new file mode 100644 index 00000000000..d29a8177928 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs @@ -0,0 +1,102 @@ +// 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 Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; + +public sealed partial class TestRequestParameters : RequestParameters +{ +} + +/// +/// +/// Creates or updates a query ruleset. +/// +/// +public sealed partial class TestRequest : PlainRequest +{ + public TestRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesTest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "query_rules.test"; + + [JsonInclude, JsonPropertyName("match_criteria")] + public IDictionary MatchCriteria { get; set; } +} + +/// +/// +/// Creates or updates a query ruleset. +/// +/// +public sealed partial class TestRequestDescriptor : RequestDescriptor +{ + internal TestRequestDescriptor(Action configure) => configure.Invoke(this); + + public TestRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesTest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "query_rules.test"; + + public TestRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) + { + RouteValues.Required("ruleset_id", rulesetId); + return Self; + } + + private IDictionary MatchCriteriaValue { get; set; } + + public TestRequestDescriptor MatchCriteria(Func, FluentDictionary> selector) + { + MatchCriteriaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("match_criteria"); + JsonSerializer.Serialize(writer, MatchCriteriaValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs new file mode 100644 index 00000000000..f2999d2d408 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; + +public sealed partial class TestResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("matched_rules")] + public IReadOnlyCollection MatchedRules { get; init; } + [JsonInclude, JsonPropertyName("total_matched_rules")] + public int TotalMatchedRules { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs index 85d9c3e904c..fea24846862 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs @@ -63,7 +63,10 @@ public sealed partial class RankEvalRequestParameters : RequestParameters /// /// -/// Enables you to evaluate the quality of ranked search results over a set of typical search queries. +/// Evaluate ranked search results. +/// +/// +/// Evaluate the quality of ranked search results over a set of typical search queries. /// /// public sealed partial class RankEvalRequest : PlainRequest @@ -135,7 +138,10 @@ public RankEvalRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices /// /// -/// Enables you to evaluate the quality of ranked search results over a set of typical search queries. +/// Evaluate ranked search results. +/// +/// +/// Evaluate the quality of ranked search results over a set of typical search queries. /// /// public sealed partial class RankEvalRequestDescriptor : RequestDescriptor, RankEvalRequestParameters> @@ -303,7 +309,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Enables you to evaluate the quality of ranked search results over a set of typical search queries. +/// Evaluate ranked search results. +/// +/// +/// Evaluate the quality of ranked search results over a set of typical search queries. /// /// public sealed partial class RankEvalRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs index d0738646824..8bcfea0159a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class ReindexRethrottleRequestParameters : RequestParamete /// /// -/// Copies documents from a source to a destination. +/// Throttle a reindex operation. +/// +/// +/// Change the number of requests per second for a particular reindex operation. /// /// public sealed partial class ReindexRethrottleRequest : PlainRequest @@ -70,7 +73,10 @@ public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.Id task /// /// -/// Copies documents from a source to a destination. +/// Throttle a reindex operation. +/// +/// +/// Change the number of requests per second for a particular reindex operation. /// /// public sealed partial class ReindexRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs index 98214e0bfa4..7a9a01ec4d1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class RenderSearchTemplateRequestParameters : RequestParam /// /// -/// Renders a search template as a search request body. +/// Render a search template. +/// +/// +/// Render a search template as a search request body. /// /// public sealed partial class RenderSearchTemplateRequest : PlainRequest @@ -84,7 +87,10 @@ public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Id? /// /// -/// Renders a search template as a search request body. +/// Render a search template. +/// +/// +/// Render a search template as a search request body. /// /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor, RenderSearchTemplateRequestParameters> @@ -177,7 +183,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Renders a search template as a search request body. +/// Render a search template. +/// +/// +/// Render a search template as a search request body. /// /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs index 4f722b979b8..c86812de36d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs @@ -42,7 +42,24 @@ public sealed partial class ScrollRequestParameters : RequestParameters /// /// -/// Allows to retrieve a large numbers of results from a single search request. +/// Run a scrolling search. +/// +/// +/// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). +/// +/// +/// The scroll API gets large sets of results from a single scrolling search request. +/// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. +/// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. +/// The search response returns a scroll ID in the _scroll_id response body parameter. +/// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. +/// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. +/// +/// +/// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. +/// +/// +/// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// public sealed partial class ScrollRequest : PlainRequest @@ -82,7 +99,24 @@ public sealed partial class ScrollRequest : PlainRequest /// -/// Allows to retrieve a large numbers of results from a single search request. +/// Run a scrolling search. +/// +/// +/// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). +/// +/// +/// The scroll API gets large sets of results from a single scrolling search request. +/// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. +/// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. +/// The search response returns a scroll ID in the _scroll_id response body parameter. +/// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. +/// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. +/// +/// +/// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. +/// +/// +/// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// public sealed partial class ScrollRequestDescriptor : RequestDescriptor 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 5c1f2d95bc6..f66e7e1f320 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs @@ -37,7 +37,9 @@ public sealed partial class SearchMvtRequestParameters : RequestParameters /// /// /// Search a vector tile. -/// Searches a vector tile for geospatial values. +/// +/// +/// Search a vector tile for geospatial values. /// /// public sealed partial class SearchMvtRequest : PlainRequest @@ -221,7 +223,9 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices /// /// /// Search a vector tile. -/// Searches a vector tile for geospatial values. +/// +/// +/// Search a vector tile for geospatial values. /// /// public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor, SearchMvtRequestParameters> @@ -672,7 +676,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Search a vector tile. -/// Searches a vector tile for geospatial values. +/// +/// +/// Search a vector tile for geospatial values. /// /// public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs index 79e1a49b383..d7dfb6182ad 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs @@ -134,14 +134,6 @@ public sealed partial class SearchRequestParameters : RequestParameters /// public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - /// - /// - /// The minimum version of the node that can handle the request - /// Any handling node with a lower version will fail the request. - /// - /// - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } - /// /// /// Nodes and shards used for the search. @@ -694,7 +686,10 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria /// /// -/// Returns search hits that match the query defined in the request. +/// Run a search. +/// +/// +/// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -833,15 +828,6 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) [JsonIgnore] public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - /// - /// - /// The minimum version of the node that can handle the request - /// Any handling node with a lower version will fail the request. - /// - /// - [JsonIgnore] - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } - /// /// /// Nodes and shards used for the search. @@ -1287,7 +1273,10 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) /// /// -/// Returns search hits that match the query defined in the request. +/// Run a search. +/// +/// +/// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -1325,7 +1314,6 @@ public SearchRequestDescriptor() public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); @@ -2506,7 +2494,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns search hits that match the query defined in the request. +/// Run a search. +/// +/// +/// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -2544,7 +2535,6 @@ public SearchRequestDescriptor() public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs index e1288d7fefc..3a37210a636 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs @@ -119,7 +119,7 @@ public sealed partial class SearchTemplateRequestParameters : RequestParameters /// /// -/// Runs a search with a search template. +/// Run a search with a search template. /// /// public sealed partial class SearchTemplateRequest : PlainRequest @@ -283,7 +283,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? i /// /// -/// Runs a search with a search template. +/// Run a search with a search template. /// /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor, SearchTemplateRequestParameters> @@ -429,7 +429,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Runs a search with a search template. +/// Run a search with a search template. /// /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs index 51d7f4d54b2..fe394e4fec3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ActivateUserProfileRequestParameters : RequestParame /// /// -/// Creates or updates a user profile on behalf of another user. +/// Activate a user profile. +/// +/// +/// Create or update a user profile on behalf of another user. /// /// public sealed partial class ActivateUserProfileRequest : PlainRequest @@ -61,7 +64,10 @@ public sealed partial class ActivateUserProfileRequest : PlainRequest /// -/// Creates or updates a user profile on behalf of another user. +/// Activate a user profile. +/// +/// +/// Create or update a user profile on behalf of another user. /// /// public sealed partial class ActivateUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs index ecd2ad18764..e87105682bd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class AuthenticateRequestParameters : RequestParameters /// /// /// Authenticate a user. +/// +/// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -57,6 +59,8 @@ public sealed partial class AuthenticateRequest : PlainRequest /// /// Authenticate a user. +/// +/// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs index ee3942ef7ac..68ea0ad9b1b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs @@ -42,6 +42,9 @@ public sealed partial class BulkDeleteRoleRequestParameters : RequestParameters /// /// +/// Bulk delete roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -75,6 +78,9 @@ public sealed partial class BulkDeleteRoleRequest : PlainRequest /// +/// Bulk delete roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs index f7cf7f825e2..459580f2125 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs @@ -42,6 +42,9 @@ public sealed partial class BulkPutRoleRequestParameters : RequestParameters /// /// +/// Bulk create or update roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -75,6 +78,9 @@ public sealed partial class BulkPutRoleRequest : PlainRequest /// +/// Bulk create or update roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -121,6 +127,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// +/// Bulk create or update roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs index 342b9460d4d..d4817ad108d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearApiKeyCacheRequestParameters : RequestParameter /// /// -/// Evicts a subset of all entries from the API key cache. +/// Clear the API key cache. +/// +/// +/// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// @@ -57,7 +60,10 @@ public ClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Serverless.Ids ids) /// /// -/// Evicts a subset of all entries from the API key cache. +/// Clear the API key cache. +/// +/// +/// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs index 6222ec0725b..71ab78556a2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs @@ -36,7 +36,11 @@ public sealed partial class ClearCachedPrivilegesRequestParameters : RequestPara /// /// -/// Evicts application privileges from the native application privileges cache. +/// Clear the privileges cache. +/// +/// +/// Evict privileges from the native application privilege cache. +/// The cache is also automatically cleared for applications that have their privileges updated. /// /// public sealed partial class ClearCachedPrivilegesRequest : PlainRequest @@ -56,7 +60,11 @@ public ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Nam /// /// -/// Evicts application privileges from the native application privileges cache. +/// Clear the privileges cache. +/// +/// +/// Evict privileges from the native application privilege cache. +/// The cache is also automatically cleared for applications that have their privileges updated. /// /// public sealed partial class ClearCachedPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs index e867442c434..88ff2437b7e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class ClearCachedRealmsRequestParameters : RequestParamete /// /// -/// Evicts users from the user cache. Can completely clear the cache or evict specific users. +/// Clear the user cache. +/// +/// +/// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// public sealed partial class ClearCachedRealmsRequest : PlainRequest @@ -70,7 +73,10 @@ public ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Serverless.Names r /// /// -/// Evicts users from the user cache. Can completely clear the cache or evict specific users. +/// Clear the user cache. +/// +/// +/// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// public sealed partial class ClearCachedRealmsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs index 63eb2f221d5..1b9b3c6c0e3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearCachedRolesRequestParameters : RequestParameter /// /// -/// Evicts roles from the native role cache. +/// Clear the roles cache. +/// +/// +/// Evict roles from the native role cache. /// /// public sealed partial class ClearCachedRolesRequest : PlainRequest @@ -56,7 +59,10 @@ public ClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Serverless.Names na /// /// -/// Evicts roles from the native role cache. +/// Clear the roles cache. +/// +/// +/// Evict roles from the native role cache. /// /// public sealed partial class ClearCachedRolesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs index 6290641f215..7005cecd4fd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearCachedServiceTokensRequestParameters : RequestP /// /// -/// Evicts tokens from the service account token caches. +/// Clear service account token caches. +/// +/// +/// Evict a subset of all entries from the service account token caches. /// /// public sealed partial class ClearCachedServiceTokensRequest : PlainRequest @@ -56,7 +59,10 @@ public ClearCachedServiceTokensRequest(string ns, string service, Elastic.Client /// /// -/// Evicts tokens from the service account token caches. +/// Clear service account token caches. +/// +/// +/// Evict a subset of all entries from the service account token caches. /// /// public sealed partial class ClearCachedServiceTokensRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs index 45ea6354019..9568152258e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs @@ -43,7 +43,9 @@ public sealed partial class CreateApiKeyRequestParameters : RequestParameters /// /// /// Create an API key. -/// Creates an API key for access without requiring basic authentication. +/// +/// +/// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -103,7 +105,9 @@ public sealed partial class CreateApiKeyRequest : PlainRequest /// /// Create an API key. -/// Creates an API key for access without requiring basic authentication. +/// +/// +/// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -210,7 +214,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Create an API key. -/// Creates an API key for access without requiring basic authentication. +/// +/// +/// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs index cf914c5cb46..1b16f173167 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class CreateServiceTokenRequestParameters : RequestParamet /// /// -/// Creates a service accounts token for access without requiring basic authentication. +/// Create a service account token. +/// +/// +/// Create a service accounts token for access without requiring basic authentication. /// /// public sealed partial class CreateServiceTokenRequest : PlainRequest @@ -74,7 +77,10 @@ public CreateServiceTokenRequest(string ns, string service) : base(r => r.Requir /// /// -/// Creates a service accounts token for access without requiring basic authentication. +/// Create a service account token. +/// +/// +/// Create a service accounts token for access without requiring basic authentication. /// /// public sealed partial class CreateServiceTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs index b13523c31d5..53e7878ab3a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class DeletePrivilegesRequestParameters : RequestParameter /// /// -/// Removes application privileges. +/// Delete application privileges. /// /// public sealed partial class DeletePrivilegesRequest : PlainRequest @@ -70,7 +70,7 @@ public DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name app /// /// -/// Removes application privileges. +/// Delete application privileges. /// /// public sealed partial class DeletePrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs index 51e64452bb0..91b20085b24 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class DeleteRoleMappingRequestParameters : RequestParamete /// /// -/// Removes role mappings. +/// Delete role mappings. /// /// public sealed partial class DeleteRoleMappingRequest : PlainRequest @@ -70,7 +70,7 @@ public DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Name na /// /// -/// Removes role mappings. +/// Delete role mappings. /// /// public sealed partial class DeleteRoleMappingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs index 8b78b92a099..511239673ca 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DeleteRoleRequestParameters : RequestParameters /// /// -/// Removes roles in the native realm. +/// Delete roles. +/// +/// +/// Delete roles in the native realm. /// /// public sealed partial class DeleteRoleRequest : PlainRequest @@ -70,7 +73,10 @@ public DeleteRoleRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : b /// /// -/// Removes roles in the native realm. +/// Delete roles. +/// +/// +/// Delete roles in the native realm. /// /// public sealed partial class DeleteRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs index 48fd4aeb88e..ce2465d95d8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DeleteServiceTokenRequestParameters : RequestParamet /// /// -/// Deletes a service account token. +/// Delete service account tokens. +/// +/// +/// Delete service account tokens for a service in a specified namespace. /// /// public sealed partial class DeleteServiceTokenRequest : PlainRequest @@ -70,7 +73,10 @@ public DeleteServiceTokenRequest(string ns, string service, Elastic.Clients.Elas /// /// -/// Deletes a service account token. +/// Delete service account tokens. +/// +/// +/// Delete service account tokens for a service in a specified namespace. /// /// public sealed partial class DeleteServiceTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs index ffe29e0129b..a3b20051197 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs @@ -44,7 +44,10 @@ public sealed partial class DisableUserProfileRequestParameters : RequestParamet /// /// -/// Disables a user profile so it's not visible in user profile searches. +/// Disable a user profile. +/// +/// +/// Disable user profiles so that they are not visible in user profile searches. /// /// public sealed partial class DisableUserProfileRequest : PlainRequest @@ -74,7 +77,10 @@ public DisableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// -/// Disables a user profile so it's not visible in user profile searches. +/// Disable a user profile. +/// +/// +/// Disable user profiles so that they are not visible in user profile searches. /// /// public sealed partial class DisableUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs index 4e0b5e25e00..68aba25f44f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs @@ -44,7 +44,10 @@ public sealed partial class EnableUserProfileRequestParameters : RequestParamete /// /// -/// Enables a user profile so it's visible in user profile searches. +/// Enable a user profile. +/// +/// +/// Enable user profiles to make them visible in user profile searches. /// /// public sealed partial class EnableUserProfileRequest : PlainRequest @@ -74,7 +77,10 @@ public EnableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// -/// Enables a user profile so it's visible in user profile searches. +/// Enable a user profile. +/// +/// +/// Enable user profiles to make them visible in user profile searches. /// /// public sealed partial class EnableUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs index 4b6499dc563..81ba73b3014 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs @@ -101,6 +101,8 @@ public sealed partial class GetApiKeyRequestParameters : RequestParameters /// /// /// Get API key information. +/// +/// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -193,6 +195,8 @@ public sealed partial class GetApiKeyRequest : PlainRequest /// /// Get API key information. +/// +/// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs index 326829e915f..b8873b769ae 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetBuiltinPrivilegesRequestParameters : RequestParam /// /// -/// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. +/// Get builtin privileges. +/// +/// +/// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// public sealed partial class GetBuiltinPrivilegesRequest : PlainRequest @@ -52,7 +55,10 @@ public sealed partial class GetBuiltinPrivilegesRequest : PlainRequest /// -/// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. +/// Get builtin privileges. +/// +/// +/// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// public sealed partial class GetBuiltinPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index f8523f5be5e..289a4f1da56 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -29,7 +29,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Security; public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } + public IReadOnlyCollection Cluster { get; init; } [JsonInclude, JsonPropertyName("index")] public IReadOnlyCollection Index { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs index da45eb97feb..a90bea1fddf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetPrivilegesRequestParameters : RequestParameters /// /// -/// Retrieves application privileges. +/// Get application privileges. /// /// public sealed partial class GetPrivilegesRequest : PlainRequest @@ -64,7 +64,7 @@ public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name? appli /// /// -/// Retrieves application privileges. +/// Get application privileges. /// /// public sealed partial class GetPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs index 30e94b5b7f3..a454c8e7319 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs @@ -36,7 +36,12 @@ public sealed partial class GetRoleMappingRequestParameters : RequestParameters /// /// -/// Retrieves role mappings. +/// Get role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. +/// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// public sealed partial class GetRoleMappingRequest : PlainRequest @@ -60,7 +65,12 @@ public GetRoleMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Names? nam /// /// -/// Retrieves role mappings. +/// Get role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. +/// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// public sealed partial class GetRoleMappingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs index f4132f81a2f..38491b40830 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs @@ -36,8 +36,10 @@ public sealed partial class GetRoleRequestParameters : RequestParameters /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The get roles API cannot retrieve roles that are defined in roles files. +/// Get roles. +/// +/// +/// Get roles in the native realm. /// /// public sealed partial class GetRoleRequest : PlainRequest @@ -61,8 +63,10 @@ public GetRoleRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : ba /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The get roles API cannot retrieve roles that are defined in roles files. +/// Get roles. +/// +/// +/// Get roles in the native realm. /// /// public sealed partial class GetRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs index 3d722b0eb8b..bf6cd184fd8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetServiceAccountsRequestParameters : RequestParamet /// /// -/// This API returns a list of service accounts that match the provided path parameter(s). +/// Get service accounts. +/// +/// +/// Get a list of service accounts that match the provided path parameters. /// /// public sealed partial class GetServiceAccountsRequest : PlainRequest @@ -64,7 +67,10 @@ public GetServiceAccountsRequest(string? ns) : base(r => r.Optional("namespace", /// /// -/// This API returns a list of service accounts that match the provided path parameter(s). +/// Get service accounts. +/// +/// +/// Get a list of service accounts that match the provided path parameters. /// /// public sealed partial class GetServiceAccountsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs index 3d2a0ecfb8d..f343ece9bb0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetServiceCredentialsRequestParameters : RequestPara /// /// -/// Retrieves information of all service credentials for a service account. +/// Get service account credentials. /// /// public sealed partial class GetServiceCredentialsRequest : PlainRequest @@ -56,7 +56,7 @@ public GetServiceCredentialsRequest(string ns, Elastic.Clients.Elasticsearch.Ser /// /// -/// Retrieves information of all service credentials for a service account. +/// Get service account credentials. /// /// public sealed partial class GetServiceCredentialsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs index 0fea9bc36db..52d992c21c1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetTokenRequestParameters : RequestParameters /// /// -/// Creates a bearer token for access without requiring basic authentication. +/// Get a token. +/// +/// +/// Create a bearer token for access without requiring basic authentication. /// /// public sealed partial class GetTokenRequest : PlainRequest @@ -65,7 +68,10 @@ public sealed partial class GetTokenRequest : PlainRequest /// -/// Creates a bearer token for access without requiring basic authentication. +/// Get a token. +/// +/// +/// Create a bearer token for access without requiring basic authentication. /// /// public sealed partial class GetTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs index 3f6b988aad1..6e0183f4d6a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs @@ -50,7 +50,7 @@ public sealed partial class GetUserPrivilegesRequestParameters : RequestParamete /// /// -/// Retrieves security privileges for the logged in user. +/// Get user privileges. /// /// public sealed partial class GetUserPrivilegesRequest : PlainRequest @@ -84,7 +84,7 @@ public sealed partial class GetUserPrivilegesRequest : PlainRequest /// -/// Retrieves security privileges for the logged in user. +/// Get user privileges. /// /// public sealed partial class GetUserPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs index bb282a71b60..5f0dd65f114 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs @@ -45,7 +45,10 @@ public sealed partial class GetUserProfileRequestParameters : RequestParameters /// /// -/// Retrieves a user's profile using the unique profile ID. +/// Get a user profile. +/// +/// +/// Get a user's profile using the unique profile ID. /// /// public sealed partial class GetUserProfileRequest : PlainRequest @@ -76,7 +79,10 @@ public GetUserProfileRequest(IReadOnlyCollection uid) : base(r => r.Requ /// /// -/// Retrieves a user's profile using the unique profile ID. +/// Get a user profile. +/// +/// +/// Get a user's profile using the unique profile ID. /// /// public sealed partial class GetUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs index 250badd5619..91b196ec00a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs @@ -36,8 +36,11 @@ public sealed partial class GrantApiKeyRequestParameters : RequestParameters /// /// -/// Creates an API key on behalf of another user. -/// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. +/// Grant an API key. +/// +/// +/// Create an API key on behalf of another user. +/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -120,8 +123,11 @@ public sealed partial class GrantApiKeyRequest : PlainRequest /// -/// Creates an API key on behalf of another user. -/// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. +/// Grant an API key. +/// +/// +/// Create an API key on behalf of another user. +/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -303,8 +309,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Creates an API key on behalf of another user. -/// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. +/// Grant an API key. +/// +/// +/// Create an API key on behalf of another user. +/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs index dbeec56ac2a..103009be8ce 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs @@ -37,7 +37,9 @@ public sealed partial class HasPrivilegesRequestParameters : RequestParameters /// /// /// Check user privileges. -/// Determines whether the specified user has a specified list of privileges. +/// +/// +/// Determine whether the specified user has a specified list of privileges. /// /// public sealed partial class HasPrivilegesRequest : PlainRequest @@ -75,7 +77,9 @@ public HasPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name? user) /// /// /// Check user privileges. -/// Determines whether the specified user has a specified list of privileges. +/// +/// +/// Determine whether the specified user has a specified list of privileges. /// /// public sealed partial class HasPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs index ec0fc8461a8..56c7c266a74 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class HasPrivilegesUserProfileRequestParameters : RequestP /// /// -/// Determines whether the users associated with the specified profile IDs have all the requested privileges. +/// Check user profile privileges. +/// +/// +/// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest @@ -63,7 +66,10 @@ public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest /// -/// Determines whether the users associated with the specified profile IDs have all the requested privileges. +/// Check user profile privileges. +/// +/// +/// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// public sealed partial class HasPrivilegesUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs index d9256ca110e..c4d81214b8a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs @@ -37,7 +37,10 @@ public sealed partial class InvalidateApiKeyRequestParameters : RequestParameter /// /// /// Invalidate API keys. -/// Invalidates one or more API keys. +/// +/// +/// This API invalidates API keys created by the create API key or grant API key APIs. +/// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -55,7 +58,7 @@ public sealed partial class InvalidateApiKeyRequestParameters : RequestParameter /// /// /// -/// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. +/// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -122,7 +125,10 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// /// Invalidate API keys. -/// Invalidates one or more API keys. +/// +/// +/// This API invalidates API keys created by the create API key or grant API key APIs. +/// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -140,7 +146,7 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// /// -/// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. +/// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs index 3f146541c72..91ad1b235ae 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs @@ -36,7 +36,16 @@ public sealed partial class InvalidateTokenRequestParameters : RequestParameters /// /// -/// Invalidates one or more access tokens or refresh tokens. +/// Invalidate a token. +/// +/// +/// The access tokens returned by the get token API have a finite period of time for which they are valid. +/// After that time period, they can no longer be used. +/// The time period is defined by the xpack.security.authc.token.timeout setting. +/// +/// +/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. +/// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// public sealed partial class InvalidateTokenRequest : PlainRequest @@ -61,7 +70,16 @@ public sealed partial class InvalidateTokenRequest : PlainRequest /// -/// Invalidates one or more access tokens or refresh tokens. +/// Invalidate a token. +/// +/// +/// The access tokens returned by the get token API have a finite period of time for which they are valid. +/// After that time period, they can no longer be used. +/// The time period is defined by the xpack.security.authc.token.timeout setting. +/// +/// +/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. +/// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// public sealed partial class InvalidateTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs index ab3366a5509..2a4b0e681d5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs @@ -44,7 +44,7 @@ public sealed partial class PutPrivilegesRequestParameters : RequestParameters /// /// -/// Adds or updates application privileges. +/// Create or update application privileges. /// /// public sealed partial class PutPrivilegesRequest : PlainRequest, ISelfSerializable @@ -74,7 +74,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Adds or updates application privileges. +/// Create or update application privileges. /// /// public sealed partial class PutPrivilegesRequestDescriptor : RequestDescriptor, ISelfSerializable diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs index 9be7d80b892..8b012008cd7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs @@ -42,7 +42,16 @@ public sealed partial class PutRoleMappingRequestParameters : RequestParameters /// /// -/// Creates and updates role mappings. +/// Create or update role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// Each mapping has rules that identify users and a list of roles that are granted to those users. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. +/// +/// +/// This API does not create roles. Rather, it maps users to existing roles. +/// Roles can be created by using the create or update roles API or roles files. /// /// public sealed partial class PutRoleMappingRequest : PlainRequest @@ -82,7 +91,16 @@ public PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) /// /// -/// Creates and updates role mappings. +/// Create or update role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// Each mapping has rules that identify users and a list of roles that are granted to those users. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. +/// +/// +/// This API does not create roles. Rather, it maps users to existing roles. +/// Roles can be created by using the create or update roles API or roles files. /// /// public sealed partial class PutRoleMappingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs index 17b733fefac..7cb42023af5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs @@ -42,8 +42,12 @@ public sealed partial class PutRoleRequestParameters : RequestParameters /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// Create or update roles. +/// +/// +/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. +/// File-based role management is not available in Elastic Serverless. /// /// public sealed partial class PutRoleRequest : PlainRequest @@ -127,8 +131,12 @@ public PutRoleRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// Create or update roles. +/// +/// +/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. +/// File-based role management is not available in Elastic Serverless. /// /// public sealed partial class PutRoleRequestDescriptor : RequestDescriptor, PutRoleRequestParameters> @@ -407,8 +415,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// Create or update roles. +/// +/// +/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. +/// File-based role management is not available in Elastic Serverless. /// /// public sealed partial class PutRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs index 7e74a7993c4..4da4639b1b7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs @@ -153,8 +153,10 @@ public override void Write(Utf8JsonWriter writer, QueryApiKeysRequest value, Jso /// /// -/// Query API keys. -/// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Find API keys with a query. +/// +/// +/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// [JsonConverter(typeof(QueryApiKeysRequestConverter))] @@ -263,8 +265,10 @@ public QueryApiKeysRequest() /// /// -/// Query API keys. -/// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Find API keys with a query. +/// +/// +/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor, QueryApiKeysRequestParameters> @@ -505,8 +509,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Query API keys. -/// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Find API keys with a query. +/// +/// +/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs index 87f3f201e45..7aea332007d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class QueryRoleRequestParameters : RequestParameters /// /// -/// Retrieves roles in a paginated manner. You can optionally filter the results with a query. +/// Find roles with a query. +/// +/// +/// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// public sealed partial class QueryRoleRequest : PlainRequest @@ -103,7 +106,10 @@ public sealed partial class QueryRoleRequest : PlainRequest /// -/// Retrieves roles in a paginated manner. You can optionally filter the results with a query. +/// Find roles with a query. +/// +/// +/// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor, QueryRoleRequestParameters> @@ -318,7 +324,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves roles in a paginated manner. You can optionally filter the results with a query. +/// Find roles with a query. +/// +/// +/// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs index 0f1142d276b..3d9242111bb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class QueryUserRequestParameters : RequestParameters /// /// -/// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. +/// Find users with a query. +/// +/// +/// Get information for users in a paginated manner. +/// You can optionally filter the results with a query. /// /// public sealed partial class QueryUserRequest : PlainRequest @@ -116,7 +120,11 @@ public sealed partial class QueryUserRequest : PlainRequest /// -/// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. +/// Find users with a query. +/// +/// +/// Get information for users in a paginated manner. +/// You can optionally filter the results with a query. /// /// public sealed partial class QueryUserRequestDescriptor : RequestDescriptor, QueryUserRequestParameters> @@ -332,7 +340,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. +/// Find users with a query. +/// +/// +/// Get information for users in a paginated manner. +/// You can optionally filter the results with a query. /// /// public sealed partial class QueryUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs index 148ca66cd00..8222f4fdbf2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class SamlAuthenticateRequestParameters : RequestParameter /// /// -/// Submits a SAML Response message to Elasticsearch for consumption. +/// Authenticate SAML. +/// +/// +/// Submits a SAML response message to Elasticsearch for consumption. /// /// public sealed partial class SamlAuthenticateRequest : PlainRequest @@ -76,7 +79,10 @@ public sealed partial class SamlAuthenticateRequest : PlainRequest /// -/// Submits a SAML Response message to Elasticsearch for consumption. +/// Authenticate SAML. +/// +/// +/// Submits a SAML response message to Elasticsearch for consumption. /// /// public sealed partial class SamlAuthenticateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs index 66f777e8d73..58b98982f3d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlCompleteLogoutRequestParameters : RequestParamet /// /// +/// Logout of SAML completely. +/// +/// /// Verifies the logout response sent from the SAML IdP. /// /// @@ -84,6 +87,9 @@ public sealed partial class SamlCompleteLogoutRequest : PlainRequest /// +/// Logout of SAML completely. +/// +/// /// Verifies the logout response sent from the SAML IdP. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs index cdcc6ca1c5a..b631761eb4c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlInvalidateRequestParameters : RequestParameters /// /// +/// Invalidate SAML. +/// +/// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// @@ -80,6 +83,9 @@ public sealed partial class SamlInvalidateRequest : PlainRequest /// +/// Invalidate SAML. +/// +/// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs index 0423c1881d5..9b2ffde5d00 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlLogoutRequestParameters : RequestParameters /// /// +/// Logout of SAML. +/// +/// /// Submits a request to invalidate an access token and refresh token. /// /// @@ -70,6 +73,9 @@ public sealed partial class SamlLogoutRequest : PlainRequest /// +/// Logout of SAML. +/// +/// /// Submits a request to invalidate an access token and refresh token. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs index 92570ab779d..fab192886e1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class SamlPrepareAuthenticationRequestParameters : Request /// /// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. +/// Prepare SAML authentication. +/// +/// +/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest @@ -79,7 +82,10 @@ public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest /// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. +/// Prepare SAML authentication. +/// +/// +/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// public sealed partial class SamlPrepareAuthenticationRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs index 91804f5cb3b..601fd669ecb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlServiceProviderMetadataRequestParameters : Reque /// /// +/// Create SAML service provider metadata. +/// +/// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// @@ -56,6 +59,9 @@ public SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Serverle /// /// +/// Create SAML service provider metadata. +/// +/// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs index 48bb4800091..8aa590fb3b4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SuggestUserProfilesRequestParameters : RequestParame /// /// +/// Suggest a user profile. +/// +/// /// Get suggestions for user profiles that match specified search criteria. /// /// @@ -92,6 +95,9 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// +/// Suggest a user profile. +/// +/// /// Get suggestions for user profiles that match specified search criteria. /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs index 06552e2e13c..aa6dbc91c92 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class UpdateApiKeyRequestParameters : RequestParameters /// /// /// Update an API key. +/// +/// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -94,6 +96,8 @@ public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : bas /// /// /// Update an API key. +/// +/// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -196,6 +200,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Update an API key. +/// +/// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs index 632005a5cc7..3b56008f30a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs @@ -58,7 +58,10 @@ public sealed partial class UpdateUserProfileDataRequestParameters : RequestPara /// /// -/// Updates specific data for the user profile that's associated with the specified unique ID. +/// Update user profile data. +/// +/// +/// Update specific data for the user profile that is associated with a unique ID. /// /// public sealed partial class UpdateUserProfileDataRequest : PlainRequest @@ -122,7 +125,10 @@ public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", ui /// /// -/// Updates specific data for the user profile that's associated with the specified unique ID. +/// Update user profile data. +/// +/// +/// Update specific data for the user profile that is associated with a unique ID. /// /// public sealed partial class UpdateUserProfileDataRequestDescriptor : 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 9819d123880..7854f379409 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs @@ -115,7 +115,9 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// /// Get term vector information. -/// Returns information and statistics about terms in the fields of a particular document. +/// +/// +/// Get information and statistics about terms in the fields of a particular document. /// /// public sealed partial class TermVectorsRequest : PlainRequest @@ -255,7 +257,9 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName ind /// /// /// Get term vector information. -/// Returns information and statistics about terms in the fields of a particular document. +/// +/// +/// Get 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/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs index 52e089690d1..5173a597bac 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs @@ -36,7 +36,18 @@ public sealed partial class TermsEnumRequestParameters : RequestParameters /// /// -/// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. +/// Get terms in an index. +/// +/// +/// Discover terms that match a partial string in an index. +/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// +/// +/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. +/// This can occur due to a few reasons, such as a request timeout or a node error. +/// +/// +/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequest : PlainRequest @@ -106,7 +117,18 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index /// /// -/// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. +/// Get terms in an index. +/// +/// +/// Discover terms that match a partial string in an index. +/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// +/// +/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. +/// This can occur due to a few reasons, such as a request timeout or a node error. +/// +/// +/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor, TermsEnumRequestParameters> @@ -314,7 +336,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. +/// Get terms in an index. +/// +/// +/// Discover terms that match a partial string in an index. +/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// +/// +/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. +/// This can occur due to a few reasons, such as a request timeout or a node error. +/// +/// +/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index a10de0936d2..a5f50b58ef1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class UpdateByQueryRethrottleRequestParameters : RequestPa /// /// -/// Changes the number of requests per second for a particular Update By Query operation. +/// Throttle an update by query operation. +/// +/// +/// Change the number of requests per second for a particular update by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class UpdateByQueryRethrottleRequest : PlainRequest @@ -70,7 +74,11 @@ public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.I /// /// -/// Changes the number of requests per second for a particular Update By Query operation. +/// Throttle an update by query operation. +/// +/// +/// Change the number of requests per second for a particular update by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class UpdateByQueryRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 95d1920cbb8..b3d675da449 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -41,12 +41,14 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -56,12 +58,14 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -71,12 +75,14 @@ public virtual Task DeleteAsync(DeleteAsyn /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -87,12 +93,14 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -104,12 +112,14 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -119,12 +129,14 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -135,12 +147,14 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -152,10 +166,13 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -165,10 +182,13 @@ public virtual Task> GetAsync(GetAs /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -178,10 +198,13 @@ public virtual Task> GetAsync(GetAs /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -192,10 +215,13 @@ public virtual Task> GetAsync(Elast /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -207,11 +233,13 @@ public virtual Task> GetAsync(Elast /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -221,11 +249,13 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -235,11 +265,13 @@ public virtual Task StatusAsync(AsyncSearc /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -250,11 +282,13 @@ public virtual Task StatusAsync(Elastic.Cl /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -266,11 +300,13 @@ public virtual Task StatusAsync(Elastic.Cl /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -280,11 +316,13 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -295,11 +333,13 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -311,13 +351,19 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -327,13 +373,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -343,13 +395,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -360,13 +418,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -378,13 +442,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -395,13 +465,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { 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 ac98b37b291..d46bb204186 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 @@ -43,7 +43,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -55,7 +55,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -67,7 +67,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -80,7 +80,7 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -96,7 +96,7 @@ public virtual Task AllocationExplainAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -110,7 +110,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { @@ -139,7 +139,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -154,7 +154,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -167,7 +167,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -180,7 +180,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { @@ -194,7 +194,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -209,7 +209,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -222,7 +222,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -235,7 +235,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) { @@ -249,7 +249,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -264,7 +264,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) { @@ -278,7 +278,7 @@ public virtual Task GetComponentTemplateAsync(Canc /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -293,7 +293,7 @@ public virtual Task GetComponentTemplateAsync(Acti /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -306,7 +306,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -319,7 +319,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -333,7 +333,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -348,7 +348,7 @@ public virtual Task GetSettingsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -361,7 +361,7 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -374,7 +374,7 @@ public virtual Task HealthAsync(HealthRequestDescript /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -388,7 +388,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -403,7 +403,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -417,7 +417,7 @@ public virtual Task HealthAsync(CancellationToken can /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -432,7 +432,7 @@ public virtual Task HealthAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -445,7 +445,7 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -459,7 +459,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Se /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -474,7 +474,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Se /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -488,7 +488,7 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -503,7 +503,7 @@ public virtual Task HealthAsync(Action /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequest request, CancellationToken cancellationToken = default) { @@ -516,7 +516,7 @@ public virtual Task InfoAsync(ClusterInfoRequest request, C /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -529,7 +529,7 @@ public virtual Task InfoAsync(ClusterInfoRequestDescriptor /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, CancellationToken cancellationToken = default) { @@ -543,7 +543,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -560,7 +560,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -575,7 +575,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -590,7 +590,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -606,7 +606,7 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -639,7 +639,7 @@ public virtual Task PendingTasksAsync(Action/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -670,7 +670,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -701,7 +701,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -733,7 +733,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -766,7 +766,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -797,7 +797,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -829,7 +829,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -844,7 +844,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -857,7 +857,7 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -870,7 +870,7 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -884,7 +884,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -899,7 +899,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -913,7 +913,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs index 374798d47c5..72a641f5893 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 @@ -98,7 +98,7 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -110,7 +110,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -135,7 +135,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -234,7 +234,7 @@ public virtual Task GetPolicyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -247,7 +247,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -260,7 +260,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -289,7 +289,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -302,7 +302,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -316,7 +316,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs index cf1153ff7cc..b1663f4cfaf 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -140,7 +140,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) { @@ -152,7 +152,7 @@ public virtual Task> GetAsync(EqlGetRequest reque /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -164,7 +164,7 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -177,7 +177,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -215,7 +215,7 @@ public virtual Task GetStatusAsync(GetEqlStatus /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -228,7 +228,7 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -242,7 +242,7 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -254,7 +254,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequestDesc /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -267,7 +267,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, 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 index e6b8033d87e..cab5032dca0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -43,7 +43,7 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) { @@ -55,7 +55,7 @@ public virtual Task QueryAsync(EsqlQueryRequest request, Canc /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -67,7 +67,7 @@ public virtual Task QueryAsync(EsqlQueryRequestDes /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -80,7 +80,7 @@ public virtual Task QueryAsync(CancellationToken c /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -94,7 +94,7 @@ public virtual Task QueryAsync(Action /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -106,7 +106,7 @@ public virtual Task QueryAsync(EsqlQueryRequestDescriptor des /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -119,7 +119,7 @@ public virtual Task QueryAsync(CancellationToken cancellation /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs index fd06cd6d387..030d6db889a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -43,7 +43,7 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -55,7 +55,7 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -67,7 +67,7 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -80,7 +80,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -94,7 +94,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(CancellationToken cancellationToken = default) { @@ -107,7 +107,7 @@ public virtual Task ExploreAsync(CancellationToken c /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -121,7 +121,7 @@ public virtual Task ExploreAsync(Action /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -133,7 +133,7 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { 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 7b6acfce7ab..093cb132d95 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 @@ -41,9 +41,10 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequest request, CancellationToken cancellationToken = default) { @@ -53,9 +54,10 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequest reque /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -65,9 +67,10 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRe /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -78,9 +81,10 @@ public virtual Task AnalyzeAsync(Elastic.Client /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -92,9 +96,10 @@ public virtual Task AnalyzeAsync(Elastic.Client /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -105,9 +110,10 @@ public virtual Task AnalyzeAsync(CancellationTo /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -119,9 +125,10 @@ public virtual Task AnalyzeAsync(Action /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -131,9 +138,10 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescri /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -144,9 +152,10 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -158,9 +167,10 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -171,9 +181,10 @@ public virtual Task AnalyzeAsync(CancellationToken cancell /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -342,7 +353,7 @@ public virtual Task ClearCacheAsync(Action /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -354,7 +365,7 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -366,7 +377,7 @@ public virtual Task CloseAsync(CloseIndexRequestD /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -379,7 +390,7 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -393,7 +404,7 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CancellationToken cancellationToken = default) { @@ -406,7 +417,7 @@ public virtual Task CloseAsync(CancellationToken /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -420,7 +431,7 @@ public virtual Task CloseAsync(Action /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -432,7 +443,7 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -445,7 +456,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -460,7 +471,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -473,7 +484,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -486,7 +497,7 @@ public virtual Task CreateAsync(CreateIndexReque /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) { @@ -500,7 +511,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -515,7 +526,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -529,7 +540,7 @@ public virtual Task CreateAsync(CancellationToke /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -544,7 +555,7 @@ public virtual Task CreateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -557,7 +568,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) { @@ -571,7 +582,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1611,7 +1622,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { @@ -1623,7 +1634,7 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1635,7 +1646,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor< /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -1648,7 +1659,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1662,7 +1673,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -1675,7 +1686,7 @@ public virtual Task FlushAsync(CancellationToken cance /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1689,7 +1700,7 @@ public virtual Task FlushAsync(Action /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1701,7 +1712,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor descriptor, /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -1714,7 +1725,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serv /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1728,7 +1739,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serv /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -1741,7 +1752,7 @@ public virtual Task FlushAsync(CancellationToken cancellationToke /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3171,9 +3182,9 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) { - var descriptor = new PutDataLifecycleRequestDescriptor(name); + var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } @@ -3185,9 +3196,9 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutDataLifecycleRequestDescriptor(name); + var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); @@ -3981,7 +3992,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -3994,7 +4005,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4007,7 +4018,7 @@ public virtual Task RolloverAsync(RolloverRequestDe /// 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. + /// 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) { @@ -4021,7 +4032,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// 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) { @@ -4036,7 +4047,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -4050,7 +4061,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4065,7 +4076,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4078,7 +4089,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// 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. + /// 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) { @@ -4092,7 +4103,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// 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) { @@ -4107,7 +4118,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -4121,7 +4132,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs new file mode 100644 index 00000000000..1ff6bc4c390 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -0,0 +1,353 @@ +// 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.Inference; + +public partial class InferenceNamespacedClient : NamespacedClientProxy +{ + /// + /// + /// Initializes a new instance of the class for mocking. + /// + /// + protected InferenceNamespacedClient() : base() + { + } + + internal InferenceNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// + /// Delete an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteInferenceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteInferenceRequestDescriptor(taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteInferenceRequestDescriptor(taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteInferenceRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteInferenceRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetInferenceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new GetInferenceRequestDescriptor(taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetInferenceRequestDescriptor(taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetInferenceRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetInferenceRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InferenceAsync(InferenceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InferenceAsync(InferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new InferenceRequestDescriptor(taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new InferenceRequestDescriptor(taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new InferenceRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new InferenceRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAsync(PutInferenceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAsync(PutInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an inference endpoint + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, inferenceId); + 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.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs index cdd7941b0fe..e612028f214 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -223,7 +223,7 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -235,7 +235,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -247,7 +247,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -260,7 +260,7 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -575,7 +575,7 @@ public virtual Task GetPipelineAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -589,7 +589,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -603,7 +603,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -618,7 +618,7 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -723,7 +723,7 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -736,7 +736,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -749,7 +749,7 @@ public virtual Task PutPipelineAsync(PutPipeline /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -763,7 +763,7 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -778,7 +778,7 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -791,7 +791,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -805,7 +805,7 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, 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 6f5f2eb4b08..6761e0e864f 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 @@ -114,7 +114,7 @@ public virtual Task ClearTrainedModelD /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequest request, CancellationToken cancellationToken = default) { @@ -130,7 +130,7 @@ public virtual Task CloseJobAsync(CloseJobRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task CloseJobAsync(CloseJobRequestDescriptor de /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) { @@ -163,7 +163,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -178,7 +178,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequest request, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -204,7 +204,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, CancellationToken cancellationToken = default) { @@ -218,7 +218,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequest request, CancellationToken cancellationToken = default) { @@ -244,7 +244,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -256,7 +256,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId, CancellationToken cancellationToken = default) { @@ -269,7 +269,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -283,7 +283,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequest request, CancellationToken cancellationToken = default) { @@ -295,7 +295,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -307,7 +307,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, CancellationToken cancellationToken = default) { @@ -320,7 +320,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -334,7 +334,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -346,7 +346,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -358,7 +358,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) { @@ -371,7 +371,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -385,7 +385,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -397,7 +397,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -409,7 +409,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -422,7 +422,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -436,7 +436,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -461,7 +461,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4303,7 +4303,12 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4319,7 +4324,12 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequest req /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4335,7 +4345,12 @@ public virtual Task PutDatafeedAsync(PutDatafeed /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4352,7 +4367,12 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4370,7 +4390,12 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4386,7 +4411,12 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequestDesc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4403,7 +4433,12 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4421,7 +4456,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -4435,7 +4470,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4449,7 +4484,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -4464,7 +4499,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4480,7 +4515,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4494,7 +4529,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -4509,7 +4544,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs index 545ba98ec16..a9882fe207b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -44,7 +44,7 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequest request, CancellationToken cancellationToken = default) { @@ -57,7 +57,7 @@ public virtual Task HotThreadsAsync(HotThreadsRequest reques /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -70,7 +70,7 @@ public virtual Task HotThreadsAsync(HotThreadsRequestDescrip /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -84,7 +84,7 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -99,7 +99,7 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(CancellationToken cancellationToken = default) { @@ -113,7 +113,7 @@ public virtual Task HotThreadsAsync(CancellationToken cancel /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -127,7 +127,7 @@ public virtual Task HotThreadsAsync(Action /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) { @@ -139,7 +139,7 @@ public virtual Task InfoAsync(NodesInfoRequest request, Cance /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -151,7 +151,7 @@ public virtual Task InfoAsync(NodesInfoRequestDescriptor desc /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) { @@ -164,7 +164,7 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.S /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -178,7 +178,7 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.S /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -205,7 +205,7 @@ public virtual Task InfoAsync(Action /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) { @@ -217,7 +217,7 @@ public virtual Task StatsAsync(NodesStatsRequest request, Ca /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -229,7 +229,7 @@ public virtual Task StatsAsync(NodesStatsRequestD /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -242,7 +242,7 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -256,7 +256,7 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -269,7 +269,7 @@ public virtual Task StatsAsync(CancellationToken /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -283,7 +283,7 @@ public virtual Task StatsAsync(Action /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -295,7 +295,7 @@ public virtual Task StatsAsync(NodesStatsRequestDescriptor d /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -308,7 +308,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -322,7 +322,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -335,7 +335,7 @@ public virtual Task StatsAsync(CancellationToken cancellatio /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -349,7 +349,7 @@ public virtual Task StatsAsync(Action /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) { @@ -361,7 +361,7 @@ public virtual Task UsageAsync(NodesUsageRequest request, Ca /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -373,7 +373,7 @@ public virtual Task UsageAsync(NodesUsageRequestDescriptor d /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) { @@ -386,7 +386,7 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -400,7 +400,7 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -413,7 +413,7 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs index 9adeb57e856..7924d7d16df 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs @@ -395,4 +395,55 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(TestRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(TestRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default) + { + var descriptor = new TestRequestDescriptor(rulesetId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new TestRequestDescriptor(rulesetId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs index 67e3c6f6217..3b630a6b91e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs @@ -41,7 +41,10 @@ internal SecurityNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +56,10 @@ public virtual Task ActivateUserProfileAsync(Activa /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +71,10 @@ public virtual Task ActivateUserProfileAsync(Activa /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +87,10 @@ public virtual Task ActivateUserProfileAsync(Cancel /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,6 +105,8 @@ public virtual Task ActivateUserProfileAsync(Action /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -109,6 +123,8 @@ public virtual Task AuthenticateAsync(AuthenticateRequest /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -125,6 +141,8 @@ public virtual Task AuthenticateAsync(AuthenticateRequestD /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -142,6 +160,8 @@ public virtual Task AuthenticateAsync(CancellationToken ca /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -159,6 +179,9 @@ public virtual Task AuthenticateAsync(Action /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -172,6 +195,9 @@ public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRe /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -185,6 +211,9 @@ public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRe /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -199,6 +228,9 @@ public virtual Task BulkDeleteRoleAsync(CancellationToke /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -214,6 +246,9 @@ public virtual Task BulkDeleteRoleAsync(Action /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -227,6 +262,9 @@ public virtual Task BulkPutRoleAsync(BulkPutRoleRequest req /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -240,6 +278,9 @@ public virtual Task BulkPutRoleAsync(BulkPutRole /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -254,6 +295,9 @@ public virtual Task BulkPutRoleAsync(Cancellatio /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -269,6 +313,9 @@ public virtual Task BulkPutRoleAsync(Action /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -282,6 +329,9 @@ public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDesc /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -296,6 +346,9 @@ public virtual Task BulkPutRoleAsync(CancellationToken canc /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -311,7 +364,10 @@ public virtual Task BulkPutRoleAsync(Action /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -324,7 +380,10 @@ public virtual Task ClearApiKeyCacheAsync(ClearApiKeyC /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -337,7 +396,10 @@ public virtual Task ClearApiKeyCacheAsync(ClearApiKeyC /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -351,7 +413,10 @@ public virtual Task ClearApiKeyCacheAsync(Elastic.Clie /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -366,7 +431,11 @@ public virtual Task ClearApiKeyCacheAsync(Elastic.Clie /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -378,7 +447,11 @@ public virtual Task ClearCachedPrivilegesAsync(Cl /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -390,7 +463,11 @@ public virtual Task ClearCachedPrivilegesAsync(Cl /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -403,7 +480,11 @@ public virtual Task ClearCachedPrivilegesAsync(El /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -417,7 +498,10 @@ public virtual Task ClearCachedPrivilegesAsync(El /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -429,7 +513,10 @@ public virtual Task ClearCachedRealmsAsync(ClearCache /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -441,7 +528,10 @@ public virtual Task ClearCachedRealmsAsync(ClearCache /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -454,7 +544,10 @@ public virtual Task ClearCachedRealmsAsync(Elastic.Cl /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -468,7 +561,10 @@ public virtual Task ClearCachedRealmsAsync(Elastic.Cl /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -480,7 +576,10 @@ public virtual Task ClearCachedRolesAsync(ClearCachedR /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -492,7 +591,10 @@ public virtual Task ClearCachedRolesAsync(ClearCachedR /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -505,7 +607,10 @@ public virtual Task ClearCachedRolesAsync(Elastic.Clie /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -519,7 +624,10 @@ public virtual Task ClearCachedRolesAsync(Elastic.Clie /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -531,7 +639,10 @@ public virtual Task ClearCachedServiceTokensAs /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -543,7 +654,10 @@ public virtual Task ClearCachedServiceTokensAs /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -556,7 +670,10 @@ public virtual Task ClearCachedServiceTokensAs /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -571,7 +688,9 @@ public virtual Task ClearCachedServiceTokensAs /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -587,7 +706,9 @@ public virtual Task CreateApiKeyAsync(CreateApiKeyRequest /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -603,7 +724,9 @@ public virtual Task CreateApiKeyAsync(CreateApi /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -620,7 +743,9 @@ public virtual Task CreateApiKeyAsync(Cancellat /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -638,7 +763,9 @@ public virtual Task CreateApiKeyAsync(Action /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -654,7 +781,9 @@ public virtual Task CreateApiKeyAsync(CreateApiKeyRequestD /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -671,7 +800,9 @@ public virtual Task CreateApiKeyAsync(CancellationToken ca /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -688,7 +819,10 @@ public virtual Task CreateApiKeyAsync(Action /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -700,7 +834,10 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -712,7 +849,10 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -725,7 +865,10 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -739,7 +882,10 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -752,7 +898,10 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -766,7 +915,7 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -778,7 +927,7 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -790,7 +939,7 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -803,7 +952,7 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -817,7 +966,10 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -829,7 +981,10 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequest reques /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -841,7 +996,10 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequestDescrip /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -854,7 +1012,10 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -868,7 +1029,7 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -880,7 +1041,7 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -892,7 +1053,7 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -905,7 +1066,7 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -919,7 +1080,10 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -931,7 +1095,10 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -943,7 +1110,10 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -956,7 +1126,10 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -970,7 +1143,10 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -982,7 +1158,10 @@ public virtual Task DisableUserProfileAsync(DisableU /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -994,7 +1173,10 @@ public virtual Task DisableUserProfileAsync(DisableU /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1007,7 +1189,10 @@ public virtual Task DisableUserProfileAsync(string u /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1021,7 +1206,10 @@ public virtual Task DisableUserProfileAsync(string u /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1033,7 +1221,10 @@ public virtual Task EnableUserProfileAsync(EnableUser /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1045,7 +1236,10 @@ public virtual Task EnableUserProfileAsync(EnableUser /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1058,7 +1252,10 @@ public virtual Task EnableUserProfileAsync(string uid /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1073,6 +1270,8 @@ public virtual Task EnableUserProfileAsync(string uid /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -1088,6 +1287,8 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequest request, /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -1103,6 +1304,8 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -1119,6 +1322,8 @@ public virtual Task GetApiKeyAsync(CancellationToken cancella /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -1135,7 +1340,10 @@ public virtual Task GetApiKeyAsync(Action /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1147,7 +1355,10 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1159,7 +1370,10 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1172,7 +1386,10 @@ public virtual Task GetBuiltinPrivilegesAsync(Canc /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1186,7 +1403,7 @@ public virtual Task GetBuiltinPrivilegesAsync(Acti /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1198,7 +1415,7 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1210,7 +1427,7 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1223,7 +1440,7 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1237,7 +1454,7 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1250,7 +1467,7 @@ public virtual Task GetPrivilegesAsync(CancellationToken /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1264,8 +1481,10 @@ public virtual Task GetPrivilegesAsync(Action /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1277,8 +1496,10 @@ public virtual Task GetRoleAsync(GetRoleRequest request, Cancel /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1290,8 +1511,10 @@ public virtual Task GetRoleAsync(GetRoleRequestDescriptor descr /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1304,8 +1527,10 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1319,8 +1544,10 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1333,8 +1560,10 @@ public virtual Task GetRoleAsync(CancellationToken cancellation /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1348,7 +1577,12 @@ public virtual Task GetRoleAsync(Action /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1360,7 +1594,12 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1372,7 +1611,12 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1385,7 +1629,12 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1399,7 +1648,12 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1412,7 +1666,12 @@ public virtual Task GetRoleMappingAsync(CancellationToke /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1426,7 +1685,10 @@ public virtual Task GetRoleMappingAsync(Action /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1438,7 +1700,10 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1450,7 +1715,10 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1463,7 +1731,10 @@ public virtual Task GetServiceAccountsAsync(string? /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1477,7 +1748,10 @@ public virtual Task GetServiceAccountsAsync(string? /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1490,7 +1764,10 @@ public virtual Task GetServiceAccountsAsync(Cancella /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1504,7 +1781,7 @@ public virtual Task GetServiceAccountsAsync(Action /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1516,7 +1793,7 @@ public virtual Task GetServiceCredentialsAsync(Ge /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1528,7 +1805,7 @@ public virtual Task GetServiceCredentialsAsync(Ge /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1541,7 +1818,7 @@ public virtual Task GetServiceCredentialsAsync(st /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1555,7 +1832,10 @@ public virtual Task GetServiceCredentialsAsync(st /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1567,7 +1847,10 @@ public virtual Task GetTokenAsync(GetTokenRequest request, Can /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1579,7 +1862,10 @@ public virtual Task GetTokenAsync(GetTokenRequestDescriptor de /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1592,7 +1878,10 @@ public virtual Task GetTokenAsync(CancellationToken cancellati /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1606,7 +1895,7 @@ public virtual Task GetTokenAsync(Action /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1618,7 +1907,7 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1630,7 +1919,7 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1643,7 +1932,7 @@ public virtual Task GetUserPrivilegesAsync(Cancellati /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1657,7 +1946,10 @@ public virtual Task GetUserPrivilegesAsync(Action /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1669,7 +1961,10 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1681,7 +1976,10 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1694,7 +1992,10 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1708,8 +2009,11 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1735,8 +2039,11 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequest req /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1762,8 +2069,11 @@ public virtual Task GrantApiKeyAsync(GrantApiKey /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1790,8 +2100,11 @@ public virtual Task GrantApiKeyAsync(Cancellatio /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1819,8 +2132,11 @@ public virtual Task GrantApiKeyAsync(Action /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1846,8 +2162,11 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDesc /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1874,8 +2193,11 @@ public virtual Task GrantApiKeyAsync(CancellationToken canc /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -1904,7 +2226,9 @@ public virtual Task GrantApiKeyAsync(Action /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1917,7 +2241,9 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1930,7 +2256,9 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1944,7 +2272,9 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1959,7 +2289,9 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1973,7 +2305,9 @@ public virtual Task HasPrivilegesAsync(CancellationToken /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1987,7 +2321,10 @@ public virtual Task HasPrivilegesAsync(Action /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1999,7 +2336,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2011,7 +2351,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2024,7 +2367,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2039,7 +2385,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -2057,7 +2406,7 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -2072,7 +2421,10 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -2090,7 +2442,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -2105,7 +2457,10 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -2123,7 +2478,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -2139,7 +2494,10 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -2157,7 +2515,7 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -2173,7 +2531,16 @@ public virtual Task InvalidateApiKeyAsync(Action /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2185,7 +2552,16 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2197,7 +2573,16 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2210,7 +2595,16 @@ public virtual Task InvalidateTokenAsync(CancellationTo /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2224,7 +2618,7 @@ public virtual Task InvalidateTokenAsync(Action /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2236,7 +2630,7 @@ public virtual Task PutPrivilegesAsync(PutPrivilegesReque /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2248,7 +2642,7 @@ public virtual Task PutPrivilegesAsync(PutPrivilegesReque /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2261,7 +2655,7 @@ public virtual Task PutPrivilegesAsync(CancellationToken /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2275,8 +2669,12 @@ public virtual Task PutPrivilegesAsync(Action /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2288,8 +2686,12 @@ public virtual Task PutRoleAsync(PutRoleRequest request, Cancel /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2301,8 +2703,12 @@ public virtual Task PutRoleAsync(PutRoleRequestDescr /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2315,8 +2721,12 @@ public virtual Task PutRoleAsync(Elastic.Clients.Ela /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2330,8 +2740,12 @@ public virtual Task PutRoleAsync(Elastic.Clients.Ela /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2343,8 +2757,12 @@ public virtual Task PutRoleAsync(PutRoleRequestDescriptor descr /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2357,8 +2775,12 @@ public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2372,7 +2794,16 @@ public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2384,7 +2815,16 @@ public virtual Task PutRoleMappingAsync(PutRoleMappingRe /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2396,7 +2836,16 @@ public virtual Task PutRoleMappingAsync(PutRoleMappingRe /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2409,7 +2858,16 @@ public virtual Task PutRoleMappingAsync(Elastic.Clients. /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2423,8 +2881,10 @@ public virtual Task PutRoleMappingAsync(Elastic.Clients. /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2436,8 +2896,10 @@ public virtual Task QueryApiKeysAsync(QueryApiKeysRequest /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2449,8 +2911,10 @@ public virtual Task QueryApiKeysAsync(QueryApiK /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2463,8 +2927,10 @@ public virtual Task QueryApiKeysAsync(Cancellat /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2478,8 +2944,10 @@ public virtual Task QueryApiKeysAsync(Action /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2491,8 +2959,10 @@ public virtual Task QueryApiKeysAsync(QueryApiKeysRequestD /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2505,8 +2975,10 @@ public virtual Task QueryApiKeysAsync(CancellationToken ca /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2520,7 +2992,10 @@ public virtual Task QueryApiKeysAsync(Action /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2532,7 +3007,10 @@ public virtual Task QueryRoleAsync(QueryRoleRequest request, /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2544,7 +3022,10 @@ public virtual Task QueryRoleAsync(QueryRoleReques /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2557,7 +3038,10 @@ public virtual Task QueryRoleAsync(CancellationTok /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2571,7 +3055,10 @@ public virtual Task QueryRoleAsync(Action /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2583,7 +3070,10 @@ public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2596,7 +3086,10 @@ public virtual Task QueryRoleAsync(CancellationToken cancella /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2610,7 +3103,11 @@ public virtual Task QueryRoleAsync(Action /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2622,7 +3119,11 @@ public virtual Task QueryUserAsync(QueryUserRequest request, /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2634,7 +3135,11 @@ public virtual Task QueryUserAsync(QueryUserReques /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2647,7 +3152,11 @@ public virtual Task QueryUserAsync(CancellationTok /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2661,7 +3170,11 @@ public virtual Task QueryUserAsync(Action /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2673,7 +3186,11 @@ public virtual Task QueryUserAsync(QueryUserRequestDescriptor /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2686,7 +3203,11 @@ public virtual Task QueryUserAsync(CancellationToken cancella /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2700,7 +3221,10 @@ public virtual Task QueryUserAsync(Action /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2712,7 +3236,10 @@ public virtual Task SamlAuthenticateAsync(SamlAuthenti /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2724,7 +3251,10 @@ public virtual Task SamlAuthenticateAsync(SamlAuthenti /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2737,7 +3267,10 @@ public virtual Task SamlAuthenticateAsync(Cancellation /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2751,6 +3284,9 @@ public virtual Task SamlAuthenticateAsync(Action /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2763,6 +3299,9 @@ public virtual Task SamlCompleteLogoutAsync(SamlComp /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2775,6 +3314,9 @@ public virtual Task SamlCompleteLogoutAsync(SamlComp /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2788,6 +3330,9 @@ public virtual Task SamlCompleteLogoutAsync(Cancella /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2802,6 +3347,9 @@ public virtual Task SamlCompleteLogoutAsync(Action /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2814,6 +3362,9 @@ public virtual Task SamlInvalidateAsync(SamlInvalidateRe /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2826,6 +3377,9 @@ public virtual Task SamlInvalidateAsync(SamlInvalidateRe /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2839,6 +3393,9 @@ public virtual Task SamlInvalidateAsync(CancellationToke /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2853,6 +3410,9 @@ public virtual Task SamlInvalidateAsync(Action /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2865,6 +3425,9 @@ public virtual Task SamlLogoutAsync(SamlLogoutRequest reques /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2877,6 +3440,9 @@ public virtual Task SamlLogoutAsync(SamlLogoutRequestDescrip /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2890,6 +3456,9 @@ public virtual Task SamlLogoutAsync(CancellationToken cancel /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2904,7 +3473,10 @@ public virtual Task SamlLogoutAsync(Action /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2916,7 +3488,10 @@ public virtual Task SamlPrepareAuthentication /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2928,7 +3503,10 @@ public virtual Task SamlPrepareAuthentication /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2941,7 +3519,10 @@ public virtual Task SamlPrepareAuthentication /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2955,6 +3536,9 @@ public virtual Task SamlPrepareAuthentication /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2967,6 +3551,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2979,6 +3566,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -2992,6 +3582,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3006,6 +3599,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3018,6 +3614,9 @@ public virtual Task SuggestUserProfilesAsync(Sugges /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3030,6 +3629,9 @@ public virtual Task SuggestUserProfilesAsync(Sugges /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3043,6 +3645,9 @@ public virtual Task SuggestUserProfilesAsync(Cancel /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3058,6 +3663,8 @@ public virtual Task SuggestUserProfilesAsync(Action /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3083,6 +3690,8 @@ public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3108,6 +3717,8 @@ public virtual Task UpdateApiKeyAsync(UpdateApi /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3134,6 +3745,8 @@ public virtual Task UpdateApiKeyAsync(Elastic.C /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3161,6 +3774,8 @@ public virtual Task UpdateApiKeyAsync(Elastic.C /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3186,6 +3801,8 @@ public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestD /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3212,6 +3829,8 @@ public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elas /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -3238,7 +3857,10 @@ public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elas /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3250,7 +3872,10 @@ public virtual Task UpdateUserProfileDataAsync(Up /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3262,7 +3887,10 @@ public virtual Task UpdateUserProfileDataAsync(Up /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3275,7 +3903,10 @@ public virtual Task UpdateUserProfileDataAsync(st /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// 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 afed21e35c8..1e4d09e5116 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs @@ -24,6 +24,7 @@ using Elastic.Clients.Elasticsearch.Serverless.Esql; using Elastic.Clients.Elasticsearch.Serverless.Graph; using Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +using Elastic.Clients.Elasticsearch.Serverless.Inference; using Elastic.Clients.Elasticsearch.Serverless.Ingest; using Elastic.Clients.Elasticsearch.Serverless.LicenseManagement; using Elastic.Clients.Elasticsearch.Serverless.MachineLearning; @@ -53,6 +54,7 @@ public partial class ElasticsearchClient public virtual EsqlNamespacedClient Esql { get; private set; } public virtual GraphNamespacedClient Graph { get; private set; } public virtual IndicesNamespacedClient Indices { get; private set; } + public virtual InferenceNamespacedClient Inference { get; private set; } public virtual IngestNamespacedClient Ingest { get; private set; } public virtual LicenseManagementNamespacedClient LicenseManagement { get; private set; } public virtual MachineLearningNamespacedClient MachineLearning { get; private set; } @@ -76,6 +78,7 @@ private partial void SetupNamespaces() Esql = new EsqlNamespacedClient(this); Graph = new GraphNamespacedClient(this); Indices = new IndicesNamespacedClient(this); + Inference = new InferenceNamespacedClient(this); Ingest = new IngestNamespacedClient(this); LicenseManagement = new LicenseManagementNamespacedClient(this); MachineLearning = new MachineLearningNamespacedClient(this); @@ -97,7 +100,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -111,7 +114,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -125,7 +128,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -140,7 +143,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -156,7 +159,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -171,7 +174,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -187,7 +190,7 @@ public virtual Task BulkAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -201,7 +204,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -216,7 +219,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -232,7 +235,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -247,7 +250,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -259,9 +262,12 @@ public virtual Task BulkAsync(Action config /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -271,9 +277,12 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. + /// + /// + /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -283,9 +292,12 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. + /// + /// + /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -296,9 +308,12 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -310,9 +325,15 @@ public virtual Task ClearScrollAsync(Action /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -322,9 +343,15 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -334,9 +361,15 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// - /// Closes a point-in-time. + /// Close a point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -347,9 +380,15 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -996,7 +1035,11 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1008,7 +1051,11 @@ public virtual Task DeleteByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1020,7 +1067,11 @@ public virtual Task DeleteByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1033,7 +1084,11 @@ public virtual Task DeleteByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1741,9 +1796,15 @@ public virtual Task> ExplainAsync(Elastic. /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1755,9 +1816,15 @@ public virtual Task FieldCapsAsync(FieldCapsRequest request, /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1769,9 +1836,15 @@ public virtual Task FieldCapsAsync(FieldCapsReques /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1784,9 +1857,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1800,9 +1879,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1815,9 +1900,15 @@ public virtual Task FieldCapsAsync(CancellationTok /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1831,9 +1922,15 @@ public virtual Task FieldCapsAsync(Action /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1845,9 +1942,15 @@ public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1860,9 +1963,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsea /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1876,9 +1985,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsea /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1891,9 +2006,15 @@ public virtual Task FieldCapsAsync(CancellationToken cancella /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2631,7 +2752,13 @@ public virtual Task InfoAsync(Action config /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2643,7 +2770,13 @@ public virtual Task MtermvectorsAsync(MultiTermVectors /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2655,7 +2788,13 @@ public virtual Task MtermvectorsAsync(Multi /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2668,7 +2807,13 @@ public virtual Task MtermvectorsAsync(Elast /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2682,7 +2827,13 @@ public virtual Task MtermvectorsAsync(Elast /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2695,7 +2846,13 @@ public virtual Task MtermvectorsAsync(Cance /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2709,7 +2866,13 @@ public virtual Task MtermvectorsAsync(Actio /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2721,7 +2884,13 @@ public virtual Task MtermvectorsAsync(MultiTermVectors /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2734,7 +2903,13 @@ public virtual Task MtermvectorsAsync(Elastic.Clients. /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2748,7 +2923,13 @@ public virtual Task MtermvectorsAsync(Elastic.Clients. /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2761,7 +2942,13 @@ public virtual Task MtermvectorsAsync(CancellationToke /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2775,7 +2962,12 @@ public virtual Task MtermvectorsAsync(Action /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2787,7 +2979,12 @@ public virtual Task> MultiGetAsync(MultiG /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2799,7 +2996,12 @@ public virtual Task> MultiGetAsync(MultiG /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2812,7 +3014,12 @@ public virtual Task> MultiGetAsync(Elasti /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2826,7 +3033,12 @@ public virtual Task> MultiGetAsync(Elasti /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2839,7 +3051,12 @@ public virtual Task> MultiGetAsync(Cancel /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2853,7 +3070,25 @@ public virtual Task> MultiGetAsync(Action /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2865,7 +3100,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2877,7 +3130,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2890,7 +3161,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2904,7 +3193,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2917,7 +3224,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2931,7 +3256,7 @@ public virtual Task> MultiSearchAsync( /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2943,7 +3268,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2955,7 +3280,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2968,7 +3293,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2982,7 +3307,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2995,7 +3320,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3009,14 +3334,21 @@ public virtual Task> MultiSearchTemplateA /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -3026,14 +3358,21 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3043,14 +3382,21 @@ public virtual Task OpenPointInTimeAsync(Ope /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -3061,14 +3407,21 @@ public virtual Task OpenPointInTimeAsync(Ela /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3080,14 +3433,21 @@ public virtual Task OpenPointInTimeAsync(Ela /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) { @@ -3098,14 +3458,21 @@ public virtual Task OpenPointInTimeAsync(Can /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3117,14 +3484,21 @@ public virtual Task OpenPointInTimeAsync(Act /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3134,14 +3508,21 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -3152,14 +3533,21 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3381,7 +3769,10 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3393,7 +3784,10 @@ public virtual Task RankEvalAsync(RankEvalRequest request, Can /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3405,7 +3799,10 @@ public virtual Task RankEvalAsync(RankEvalRequestDe /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3418,7 +3815,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.E /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3432,7 +3832,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.E /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3445,7 +3848,10 @@ public virtual Task RankEvalAsync(CancellationToken /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3459,7 +3865,10 @@ public virtual Task RankEvalAsync(Action /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3471,7 +3880,10 @@ public virtual Task RankEvalAsync(RankEvalRequestDescriptor de /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3484,7 +3896,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearc /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3498,7 +3913,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearc /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3511,7 +3929,10 @@ public virtual Task RankEvalAsync(CancellationToken cancellati /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3622,7 +4043,10 @@ public virtual Task ReindexAsync(Action /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3634,7 +4058,10 @@ public virtual Task ReindexRethrottleAsync(ReindexRet /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3646,7 +4073,10 @@ public virtual Task ReindexRethrottleAsync(ReindexRet /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3659,7 +4089,10 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3673,7 +4106,10 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3685,7 +4121,10 @@ public virtual Task RenderSearchTemplateAsync(Rend /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3697,7 +4136,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3710,7 +4152,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3724,7 +4169,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3737,7 +4185,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3751,7 +4202,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3763,7 +4217,10 @@ public virtual Task RenderSearchTemplateAsync(Rend /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3776,7 +4233,10 @@ public virtual Task RenderSearchTemplateAsync(Elas /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3790,7 +4250,10 @@ public virtual Task RenderSearchTemplateAsync(Elas /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3803,7 +4266,10 @@ public virtual Task RenderSearchTemplateAsync(Canc /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3817,7 +4283,24 @@ public virtual Task RenderSearchTemplateAsync(Acti /// /// - /// Allows to retrieve a large numbers of results from a single search request. + /// Run a scrolling search. + /// + /// + /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// + /// + /// The scroll API gets large sets of results from a single scrolling search request. + /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. + /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. + /// The search response returns a scroll ID in the _scroll_id response body parameter. + /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. + /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// + /// + /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// + /// + /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3829,7 +4312,10 @@ public virtual Task> ScrollAsync(ScrollRequ /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -3843,7 +4329,10 @@ public virtual Task> SearchAsync(SearchRequ /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -3857,7 +4346,10 @@ public virtual Task> SearchAsync(SearchRequ /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -3872,7 +4364,10 @@ public virtual Task> SearchAsync(Elastic.Cl /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -3888,7 +4383,10 @@ public virtual Task> SearchAsync(Elastic.Cl /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -3903,7 +4401,10 @@ public virtual Task> SearchAsync(Cancellati /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -3920,7 +4421,9 @@ public virtual Task> SearchAsync(Action /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3933,7 +4436,9 @@ public virtual Task SearchMvtAsync(SearchMvtRequest request, /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3946,7 +4451,9 @@ public virtual Task SearchMvtAsync(SearchMvtReques /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3960,7 +4467,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3975,7 +4484,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3989,7 +4500,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4004,7 +4517,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4017,7 +4532,9 @@ public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4031,7 +4548,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4045,7 +4564,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4057,7 +4576,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4069,7 +4588,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4082,7 +4601,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4096,7 +4615,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4109,7 +4628,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4123,7 +4642,18 @@ public virtual Task> SearchTemplateAsync /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4135,7 +4665,18 @@ public virtual Task TermsEnumAsync(TermsEnumRequest request, /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4147,7 +4688,18 @@ public virtual Task TermsEnumAsync(TermsEnumReques /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4160,7 +4712,18 @@ public virtual Task TermsEnumAsync(Elastic.Clients /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4174,7 +4737,18 @@ public virtual Task TermsEnumAsync(Elastic.Clients /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4187,7 +4761,18 @@ public virtual Task TermsEnumAsync(CancellationTok /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4201,7 +4786,18 @@ public virtual Task TermsEnumAsync(Action /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4213,7 +4809,18 @@ public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4226,7 +4833,18 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4241,7 +4859,9 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4254,7 +4874,9 @@ public virtual Task TermvectorsAsync(TermVectors /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4267,7 +4889,9 @@ public virtual Task TermvectorsAsync(TermVectors /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4281,7 +4905,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4296,7 +4922,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4310,7 +4938,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4325,7 +4955,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4339,7 +4971,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4354,7 +4988,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4368,7 +5004,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4383,7 +5021,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4397,7 +5037,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4412,7 +5054,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4426,7 +5070,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4746,7 +5392,11 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4758,7 +5408,11 @@ public virtual Task UpdateByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4770,7 +5424,11 @@ public virtual Task UpdateByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4783,7 +5441,11 @@ public virtual Task UpdateByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs index 7edf328e1ba..718dc14ebd3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs @@ -122,7 +122,7 @@ public override void Write(Utf8JsonWriter writer, INormalizer value, JsonSeriali } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(NormalizerInterfaceConverter))] public partial interface INormalizer diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs index b2d4e9e7d50..3fc70502c01 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ByteSize : Union { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs index c078dc59136..5ed663639d4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; /// /// Text or location that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Context : Union { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs index 9d1ac592068..e8159ec3121 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGain { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricDiscountedCumulativeGain /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGainDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs index 9399ba7a53b..baa2700768d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricExpectedReciprocalRank /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs index 424a709eb1a..f7a9c44621c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricMeanReciprocalRank /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs index 2f539197a3e..d59552021bb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecision { @@ -64,7 +64,7 @@ public sealed partial class RankEvalMetricPrecision /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecisionDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs index 795cc695623..cb35bfb45ca 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecall { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricRecall /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecallDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs new file mode 100644 index 00000000000..2a4deee6213 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs @@ -0,0 +1,85 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Inference; + +[JsonConverter(typeof(TaskTypeConverter))] +public enum TaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "sparse_embedding")] + SparseEmbedding, + [EnumMember(Value = "rerank")] + Rerank, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class TaskTypeConverter : JsonConverter +{ + public override TaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return TaskType.TextEmbedding; + case "sparse_embedding": + return TaskType.SparseEmbedding; + case "rerank": + return TaskType.Rerank; + case "completion": + return TaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, TaskType value, JsonSerializerOptions options) + { + switch (value) + { + case TaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case TaskType.SparseEmbedding: + writer.WriteStringValue("sparse_embedding"); + return; + case TaskType.Rerank: + writer.WriteStringValue("rerank"); + return; + case TaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs index 08429f5c021..cb3cfe32ae0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs @@ -265,6 +265,29 @@ public override void Write(Utf8JsonWriter writer, GrantType value, JsonSerialize public static bool operator !=(IndexPrivilege a, IndexPrivilege b) => !(a == b); } +[JsonConverter(typeof(EnumStructConverter))] +public readonly partial struct RestrictionWorkflow : IEnumStruct +{ + public RestrictionWorkflow(string value) => Value = value; + + RestrictionWorkflow IEnumStruct.Create(string value) => value; + + public readonly string Value { get; } + public static RestrictionWorkflow SearchApplicationQuery { get; } = new RestrictionWorkflow("search_application_query"); + + public override string ToString() => Value ?? string.Empty; + + public static implicit operator string(RestrictionWorkflow restrictionWorkflow) => restrictionWorkflow.Value; + public static implicit operator RestrictionWorkflow(string value) => new(value); + + public override int GetHashCode() => Value.GetHashCode(); + public override bool Equals(object obj) => obj is RestrictionWorkflow other && this.Equals(other); + public bool Equals(RestrictionWorkflow other) => Value == other.Value; + + public static bool operator ==(RestrictionWorkflow a, RestrictionWorkflow b) => a.Equals(b); + public static bool operator !=(RestrictionWorkflow a, RestrictionWorkflow b) => !(a == b); +} + [JsonConverter(typeof(TemplateFormatConverter))] public enum TemplateFormat { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs index 55076a1833e..1047be7f885 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Fuzziness : Union { 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 52d2669e5eb..1cd15282d5b 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 @@ -34,10 +34,32 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; /// public sealed partial class DataStreamLifecycle { + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; set; } + + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } } /// @@ -57,13 +79,26 @@ public DataStreamLifecycleDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } private Action DownsamplingDescriptorAction { get; set; } + private bool? EnabledValue { get; set; } + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Serverless.Duration? dataRetention) { DataRetentionValue = dataRetention; return Self; } + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? downsampling) { DownsamplingDescriptor = null; @@ -88,6 +123,18 @@ public DataStreamLifecycleDescriptor Downsampling(Action + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + public DataStreamLifecycleDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -113,6 +160,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DownsamplingValue, options); } + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + writer.WriteEndObject(); } } \ No newline at end of file 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 b9ccfb7f5fc..48871a55b04 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 @@ -53,6 +53,15 @@ public sealed partial class DataStreamLifecycleWithRollover [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; init; } + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; init; } + /// /// /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs index 8094905750c..3d942cd5f39 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; public sealed partial class DataStreamWithLifecycle { [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs index d006d71418f..65024976add 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -739,7 +739,7 @@ public override void Write(Utf8JsonWriter writer, IndexSettings value, JsonSeria } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(IndexSettingsConverter))] public sealed partial class IndexSettings @@ -840,7 +840,7 @@ public sealed partial class IndexSettings } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor> { @@ -2277,7 +2277,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs index 615da923b57..69e9ad496be 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs @@ -51,6 +51,25 @@ public sealed partial class IndexTemplate [JsonInclude, JsonPropertyName("data_stream")] public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateDataStreamConfiguration? DataStream { get; init; } + /// + /// + /// Marks this index template as deprecated. + /// When creating or updating a non-deprecated index template that uses deprecated components, + /// Elasticsearch will emit a deprecation warning. + /// + /// + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; init; } + + /// + /// + /// A list of component template names that are allowed to be absent. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing_component_templates")] + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection? IgnoreMissingComponentTemplates { get; init; } + /// /// /// Name of the index template. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index e0a1a5e6a2f..ee3e967c447 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettings { @@ -57,7 +57,7 @@ public sealed partial class MappingLimitSettings /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs new file mode 100644 index 00000000000..3f8912a1069 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs @@ -0,0 +1,127 @@ +// 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.Inference; + +/// +/// +/// Configuration options when storing the inference endpoint +/// +/// +public sealed partial class InferenceEndpoint +{ + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; set; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; set; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Configuration options when storing the inference endpoint +/// +/// +public sealed partial class InferenceEndpointDescriptor : SerializableDescriptor +{ + internal InferenceEndpointDescriptor(Action configure) => configure.Invoke(this); + + public InferenceEndpointDescriptor() : base() + { + } + + private string ServiceValue { get; set; } + private object ServiceSettingsValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// The service type + /// + /// + public InferenceEndpointDescriptor Service(string service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings specific to the service + /// + /// + public InferenceEndpointDescriptor ServiceSettings(object serviceSettings) + { + ServiceSettingsValue = serviceSettings; + return Self; + } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + public InferenceEndpointDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("service"); + writer.WriteStringValue(ServiceValue); + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs new file mode 100644 index 00000000000..aee66bad661 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs @@ -0,0 +1,76 @@ +// 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.Inference; + +/// +/// +/// Represents an inference endpoint as returned by the GET API +/// +/// +public sealed partial class InferenceEndpointInfo +{ + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs new file mode 100644 index 00000000000..0f8ec6efefe --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs @@ -0,0 +1,798 @@ +// 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.Ingest; + +public sealed partial class IpLocationProcessor +{ + /// + /// + /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. + /// + /// + [JsonInclude, JsonPropertyName("database_file")] + public string? DatabaseFile { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + [JsonInclude, JsonPropertyName("download_database_on_pipeline_creation")] + public bool? DownloadDatabaseOnPipelineCreation { get; set; } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// + /// If true, only the first found IP location data will be returned, even if the field contains an array. + /// + /// + [JsonInclude, JsonPropertyName("first_only")] + public bool? FirstOnly { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Controls what properties are added to the target_field based on the IP location lookup. + /// + /// + [JsonInclude, JsonPropertyName("properties")] + public ICollection? Properties { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(IpLocationProcessor ipLocationProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.IpLocation(ipLocationProcessor); +} + +public sealed partial class IpLocationProcessorDescriptor : SerializableDescriptor> +{ + internal IpLocationProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public IpLocationProcessorDescriptor() : base() + { + } + + private string? DatabaseFileValue { get; set; } + private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private bool? FirstOnlyValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private ICollection? PropertiesValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. + /// + /// + public IpLocationProcessorDescriptor DatabaseFile(string? databaseFile) + { + DatabaseFileValue = databaseFile; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public IpLocationProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public IpLocationProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// If true, only the first found IP location data will be returned, even if the field contains an array. + /// + /// + public IpLocationProcessorDescriptor FirstOnly(bool? firstOnly = true) + { + FirstOnlyValue = firstOnly; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public IpLocationProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public IpLocationProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public IpLocationProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public IpLocationProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Controls what properties are added to the target_field based on the IP location lookup. + /// + /// + public IpLocationProcessorDescriptor Properties(ICollection? properties) + { + PropertiesValue = properties; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public IpLocationProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DatabaseFileValue)) + { + writer.WritePropertyName("database_file"); + writer.WriteStringValue(DatabaseFileValue); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (FirstOnlyValue.HasValue) + { + writer.WritePropertyName("first_only"); + writer.WriteBooleanValue(FirstOnlyValue.Value); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class IpLocationProcessorDescriptor : SerializableDescriptor +{ + internal IpLocationProcessorDescriptor(Action configure) => configure.Invoke(this); + + public IpLocationProcessorDescriptor() : base() + { + } + + private string? DatabaseFileValue { get; set; } + private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } + private bool? FirstOnlyValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private ICollection? PropertiesValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } + + /// + /// + /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. + /// + /// + public IpLocationProcessorDescriptor DatabaseFile(string? databaseFile) + { + DatabaseFileValue = databaseFile; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public IpLocationProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public IpLocationProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// If true, only the first found IP location data will be returned, even if the field contains an array. + /// + /// + public IpLocationProcessorDescriptor FirstOnly(bool? firstOnly = true) + { + FirstOnlyValue = firstOnly; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public IpLocationProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public IpLocationProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public IpLocationProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public IpLocationProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Controls what properties are added to the target_field based on the IP location lookup. + /// + /// + public IpLocationProcessorDescriptor Properties(ICollection? properties) + { + PropertiesValue = properties; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public IpLocationProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DatabaseFileValue)) + { + writer.WritePropertyName("database_file"); + writer.WriteStringValue(DatabaseFileValue); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (FirstOnlyValue.HasValue) + { + writer.WritePropertyName("first_only"); + writer.WriteBooleanValue(FirstOnlyValue.Value); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs index a9e21af1863..f464444d218 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs @@ -68,6 +68,7 @@ internal Processor(string variantName, object variant) public static Processor Gsub(Elastic.Clients.Elasticsearch.Serverless.Ingest.GsubProcessor gsubProcessor) => new Processor("gsub", gsubProcessor); public static Processor HtmlStrip(Elastic.Clients.Elasticsearch.Serverless.Ingest.HtmlStripProcessor htmlStripProcessor) => new Processor("html_strip", htmlStripProcessor); public static Processor Inference(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor inferenceProcessor) => new Processor("inference", inferenceProcessor); + public static Processor IpLocation(Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor ipLocationProcessor) => new Processor("ip_location", ipLocationProcessor); public static Processor Join(Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor joinProcessor) => new Processor("join", joinProcessor); public static Processor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => new Processor("json", jsonProcessor); public static Processor Kv(Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); @@ -283,6 +284,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "ip_location") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "join") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -518,6 +526,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "inference": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor)value.Variant, options); break; + case "ip_location": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor)value.Variant, options); + break; case "join": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor)value.Variant, options); break; @@ -666,6 +677,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor HtmlStrip(Action> configure) => Set(configure, "html_strip"); public ProcessorDescriptor Inference(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor inferenceProcessor) => Set(inferenceProcessor, "inference"); public ProcessorDescriptor Inference(Action> configure) => Set(configure, "inference"); + public ProcessorDescriptor IpLocation(Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor ipLocationProcessor) => Set(ipLocationProcessor, "ip_location"); + public ProcessorDescriptor IpLocation(Action> configure) => Set(configure, "ip_location"); public ProcessorDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor joinProcessor) => Set(joinProcessor, "join"); public ProcessorDescriptor Join(Action> configure) => Set(configure, "join"); public ProcessorDescriptor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => Set(jsonProcessor, "json"); @@ -806,6 +819,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor HtmlStrip(Action configure) => Set(configure, "html_strip"); public ProcessorDescriptor Inference(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor inferenceProcessor) => Set(inferenceProcessor, "inference"); public ProcessorDescriptor Inference(Action configure) => Set(configure, "inference"); + public ProcessorDescriptor IpLocation(Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor ipLocationProcessor) => Set(ipLocationProcessor, "ip_location"); + public ProcessorDescriptor IpLocation(Action configure) => Set(configure, "ip_location"); public ProcessorDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor joinProcessor) => Set(joinProcessor, "join"); public ProcessorDescriptor Join(Action configure) => Set(configure, "join"); public ProcessorDescriptor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => Set(jsonProcessor, "json"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs index fb0452abfbd..12e19169c80 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs @@ -54,6 +54,14 @@ public sealed partial class KnnRetriever [JsonInclude, JsonPropertyName("k")] public int k { get; set; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + /// /// /// Number of nearest neighbor candidates to consider per shard. @@ -103,6 +111,7 @@ public KnnRetrieverDescriptor() : base() private Action> FilterDescriptorAction { get; set; } private Action>[] FilterDescriptorActions { get; set; } private int kValue { get; set; } + private float? MinScoreValue { get; set; } private int NumCandidatesValue { get; set; } private ICollection? QueryVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } @@ -173,6 +182,17 @@ public KnnRetrieverDescriptor k(int k) return Self; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public KnnRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// Number of nearest neighbor candidates to consider per shard. @@ -271,6 +291,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("k"); writer.WriteNumberValue(kValue); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + writer.WritePropertyName("num_candidates"); writer.WriteNumberValue(NumCandidatesValue); if (QueryVectorValue is not null) @@ -319,6 +345,7 @@ public KnnRetrieverDescriptor() : base() private Action FilterDescriptorAction { get; set; } private Action[] FilterDescriptorActions { get; set; } private int kValue { get; set; } + private float? MinScoreValue { get; set; } private int NumCandidatesValue { get; set; } private ICollection? QueryVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } @@ -389,6 +416,17 @@ public KnnRetrieverDescriptor k(int k) return Self; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public KnnRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// Number of nearest neighbor candidates to consider per shard. @@ -487,6 +525,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("k"); writer.WriteNumberValue(kValue); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + writer.WritePropertyName("num_candidates"); writer.WriteNumberValue(NumCandidatesValue); if (QueryVectorValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 3010b77459a..4329dd0d730 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapeProperty : IProperty { @@ -79,7 +79,7 @@ public sealed partial class GeoShapeProperty : IProperty /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -323,7 +323,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs index 814616b3ad7..54089be8fe1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapeProperty : IProperty { @@ -77,7 +77,7 @@ public sealed partial class ShapeProperty : IProperty /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -307,7 +307,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs index afdf01fd760..64351880ea5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; /// /// Text that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Like : Union { 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 dda17d5a3bb..a4fda513598 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 @@ -28,9 +28,6 @@ namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -/// -/// Learn more about this API in the Elasticsearch documentation. -/// [JsonConverter(typeof(QueryConverter))] public sealed partial class Query { @@ -108,8 +105,6 @@ internal Query(string variantName, object variant) public static Query Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => new Query("term", termQuery); public static Query Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => new Query("terms", termsQuery); public static Query TermsSet(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery termsSetQuery) => new Query("terms_set", termsSetQuery); - public static Query TextExpansion(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextExpansionQuery textExpansionQuery) => new Query("text_expansion", textExpansionQuery); - public static Query WeightedTokens(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WeightedTokensQuery weightedTokensQuery) => new Query("weighted_tokens", weightedTokensQuery); public static Query Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => new Query("wildcard", wildcardQuery); public static Query Wrapper(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery wrapperQuery) => new Query("wrapper", wrapperQuery); @@ -529,20 +524,6 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe continue; } - if (propertyName == "text_expansion") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "weighted_tokens") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - if (propertyName == "wildcard") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -734,12 +715,6 @@ public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOpt case "terms_set": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery)value.Variant, options); break; - case "text_expansion": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextExpansionQuery)value.Variant, options); - break; - case "weighted_tokens": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WeightedTokensQuery)value.Variant, options); - break; case "wildcard": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery)value.Variant, options); break; @@ -894,10 +869,6 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor Terms(Action> configure) => Set(configure, "terms"); public QueryDescriptor TermsSet(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); public QueryDescriptor TermsSet(Action> configure) => Set(configure, "terms_set"); - public QueryDescriptor TextExpansion(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextExpansionQuery textExpansionQuery) => Set(textExpansionQuery, "text_expansion"); - public QueryDescriptor TextExpansion(Action> configure) => Set(configure, "text_expansion"); - public QueryDescriptor WeightedTokens(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WeightedTokensQuery weightedTokensQuery) => Set(weightedTokensQuery, "weighted_tokens"); - public QueryDescriptor WeightedTokens(Action> configure) => Set(configure, "weighted_tokens"); public QueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); public QueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); public QueryDescriptor Wrapper(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); @@ -1064,10 +1035,6 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor Terms(Action configure) => Set(configure, "terms"); public QueryDescriptor TermsSet(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); public QueryDescriptor TermsSet(Action configure) => Set(configure, "terms_set"); - public QueryDescriptor TextExpansion(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextExpansionQuery textExpansionQuery) => Set(textExpansionQuery, "text_expansion"); - public QueryDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); - public QueryDescriptor WeightedTokens(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WeightedTokensQuery weightedTokensQuery) => Set(weightedTokensQuery, "weighted_tokens"); - public QueryDescriptor WeightedTokens(Action configure) => Set(configure, "weighted_tokens"); public QueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); public QueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); public QueryDescriptor Wrapper(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs index c40bc83f2ba..ed80e1a50a8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs @@ -53,7 +53,7 @@ public override TermsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, J variant.Field = property; reader.Read(); - variant.Term = JsonSerializer.Deserialize(ref reader, options); + variant.Terms = JsonSerializer.Deserialize(ref reader, options); } } @@ -63,7 +63,7 @@ public override TermsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, J public override void Write(Utf8JsonWriter writer, TermsQuery value, JsonSerializerOptions options) { writer.WriteStartObject(); - if (value.Field is not null && value.Term is not null) + if (value.Field is not null && value.Terms is not null) { if (!options.TryGetClientSettings(out var settings)) { @@ -72,7 +72,7 @@ public override void Write(Utf8JsonWriter writer, TermsQuery value, JsonSerializ var propertyName = settings.Inferrer.Field(value.Field); writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, value.Term, options); + JsonSerializer.Serialize(writer, value.Terms, options); } if (value.Boost.HasValue) @@ -105,7 +105,7 @@ public sealed partial class TermsQuery public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } public string? QueryName { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField Term { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField Terms { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Terms(termsQuery); public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Terms(termsQuery); @@ -124,7 +124,7 @@ public TermsQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField TermValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField TermsValue { get; set; } /// /// @@ -164,20 +164,20 @@ public TermsQueryDescriptor QueryName(string? queryName) return Self; } - public TermsQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField term) + public TermsQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField terms) { - TermValue = term; + TermsValue = terms; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (FieldValue is not null && TermValue is not null) + if (FieldValue is not null && TermsValue is not null) { var propertyName = settings.Inferrer.Field(FieldValue); writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, TermValue, options); + JsonSerializer.Serialize(writer, TermsValue, options); } if (BoostValue.HasValue) @@ -207,7 +207,7 @@ public TermsQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField TermValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField TermsValue { get; set; } /// /// @@ -247,20 +247,20 @@ public TermsQueryDescriptor QueryName(string? queryName) return Self; } - public TermsQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField term) + public TermsQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField terms) { - TermValue = term; + TermsValue = terms; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (FieldValue is not null && TermValue is not null) + if (FieldValue is not null && TermsValue is not null) { var propertyName = settings.Inferrer.Field(FieldValue); writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, TermValue, options); + JsonSerializer.Serialize(writer, TermsValue, options); } if (BoostValue.HasValue) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs deleted file mode 100644 index c81b812bd62..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs +++ /dev/null @@ -1,346 +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.QueryDsl; - -internal sealed partial class TextExpansionQueryConverter : JsonConverter -{ - public override TextExpansionQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new TextExpansionQuery(fieldName); - 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 == "model_id") - { - variant.ModelId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "model_text") - { - variant.ModelText = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, TextExpansionQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize TextExpansionQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - writer.WritePropertyName("model_id"); - writer.WriteStringValue(value.ModelId); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(value.ModelText); - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(TextExpansionQueryConverter))] -public sealed partial class TextExpansionQuery -{ - public TextExpansionQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// The text expansion NLP model to use - /// - /// - public string ModelId { get; set; } - - /// - /// - /// The query text - /// - /// - public string ModelText { get; set; } - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(TextExpansionQuery textExpansionQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.TextExpansion(textExpansionQuery); -} - -public sealed partial class TextExpansionQueryDescriptor : SerializableDescriptor> -{ - internal TextExpansionQueryDescriptor(Action> configure) => configure.Invoke(this); - - public TextExpansionQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string ModelIdValue { get; set; } - private string ModelTextValue { get; set; } - private string? QueryNameValue { 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 TextExpansionQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TextExpansionQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The text expansion NLP model to use - /// - /// - public TextExpansionQueryDescriptor ModelId(string modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// The query text - /// - /// - public TextExpansionQueryDescriptor ModelText(string modelText) - { - ModelTextValue = modelText; - return Self; - } - - public TextExpansionQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("model_id"); - writer.WriteStringValue(ModelIdValue); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(ModelTextValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class TextExpansionQueryDescriptor : SerializableDescriptor -{ - internal TextExpansionQueryDescriptor(Action configure) => configure.Invoke(this); - - public TextExpansionQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string ModelIdValue { get; set; } - private string ModelTextValue { get; set; } - private string? QueryNameValue { 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 TextExpansionQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TextExpansionQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The text expansion NLP model to use - /// - /// - public TextExpansionQueryDescriptor ModelId(string modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// The query text - /// - /// - public TextExpansionQueryDescriptor ModelText(string modelText) - { - ModelTextValue = modelText; - return Self; - } - - public TextExpansionQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("model_id"); - writer.WriteStringValue(ModelIdValue); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(ModelTextValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TokenPruningConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TokenPruningConfig.g.cs deleted file mode 100644 index d88690d7268..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TokenPruningConfig.g.cs +++ /dev/null @@ -1,125 +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.QueryDsl; - -public sealed partial class TokenPruningConfig -{ - /// - /// - /// Whether to only score pruned tokens, vs only scoring kept tokens. - /// - /// - [JsonInclude, JsonPropertyName("only_score_pruned_tokens")] - public bool? OnlyScorePrunedTokens { get; set; } - - /// - /// - /// Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned. - /// - /// - [JsonInclude, JsonPropertyName("tokens_freq_ratio_threshold")] - public int? TokensFreqRatioThreshold { get; set; } - - /// - /// - /// Tokens whose weight is less than this threshold are considered nonsignificant and pruned. - /// - /// - [JsonInclude, JsonPropertyName("tokens_weight_threshold")] - public float? TokensWeightThreshold { get; set; } -} - -public sealed partial class TokenPruningConfigDescriptor : SerializableDescriptor -{ - internal TokenPruningConfigDescriptor(Action configure) => configure.Invoke(this); - - public TokenPruningConfigDescriptor() : base() - { - } - - private bool? OnlyScorePrunedTokensValue { get; set; } - private int? TokensFreqRatioThresholdValue { get; set; } - private float? TokensWeightThresholdValue { get; set; } - - /// - /// - /// Whether to only score pruned tokens, vs only scoring kept tokens. - /// - /// - public TokenPruningConfigDescriptor OnlyScorePrunedTokens(bool? onlyScorePrunedTokens = true) - { - OnlyScorePrunedTokensValue = onlyScorePrunedTokens; - return Self; - } - - /// - /// - /// Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned. - /// - /// - public TokenPruningConfigDescriptor TokensFreqRatioThreshold(int? tokensFreqRatioThreshold) - { - TokensFreqRatioThresholdValue = tokensFreqRatioThreshold; - return Self; - } - - /// - /// - /// Tokens whose weight is less than this threshold are considered nonsignificant and pruned. - /// - /// - public TokenPruningConfigDescriptor TokensWeightThreshold(float? tokensWeightThreshold) - { - TokensWeightThresholdValue = tokensWeightThreshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnlyScorePrunedTokensValue.HasValue) - { - writer.WritePropertyName("only_score_pruned_tokens"); - writer.WriteBooleanValue(OnlyScorePrunedTokensValue.Value); - } - - if (TokensFreqRatioThresholdValue.HasValue) - { - writer.WritePropertyName("tokens_freq_ratio_threshold"); - writer.WriteNumberValue(TokensFreqRatioThresholdValue.Value); - } - - if (TokensWeightThresholdValue.HasValue) - { - writer.WritePropertyName("tokens_weight_threshold"); - writer.WriteNumberValue(TokensWeightThresholdValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs deleted file mode 100644 index 7a6599a9d21..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs +++ /dev/null @@ -1,418 +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.QueryDsl; - -internal sealed partial class WeightedTokensQueryConverter : JsonConverter -{ - public override WeightedTokensQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new WeightedTokensQuery(fieldName); - 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 == "pruning_config") - { - variant.PruningConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "tokens") - { - variant.Tokens = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, WeightedTokensQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize WeightedTokensQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.PruningConfig is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, value.PruningConfig, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WritePropertyName("tokens"); - JsonSerializer.Serialize(writer, value.Tokens, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(WeightedTokensQueryConverter))] -public sealed partial class WeightedTokensQuery -{ - public WeightedTokensQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Token pruning configurations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfig? PruningConfig { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// The tokens representing this query - /// - /// - public IDictionary Tokens { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(WeightedTokensQuery weightedTokensQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.WeightedTokens(weightedTokensQuery); -} - -public sealed partial class WeightedTokensQueryDescriptor : SerializableDescriptor> -{ - internal WeightedTokensQueryDescriptor(Action> configure) => configure.Invoke(this); - - public WeightedTokensQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfig? PruningConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfigDescriptor PruningConfigDescriptor { get; set; } - private Action PruningConfigDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private IDictionary TokensValue { 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 WeightedTokensQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Token pruning configurations - /// - /// - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfig? pruningConfig) - { - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = null; - PruningConfigValue = pruningConfig; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfigDescriptor descriptor) - { - PruningConfigValue = null; - PruningConfigDescriptorAction = null; - PruningConfigDescriptor = descriptor; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Action configure) - { - PruningConfigValue = null; - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = configure; - return Self; - } - - public WeightedTokensQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The tokens representing this query - /// - /// - public WeightedTokensQueryDescriptor Tokens(Func, FluentDictionary> selector) - { - TokensValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (PruningConfigDescriptor is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigDescriptor, options); - } - else if (PruningConfigDescriptorAction is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfigDescriptor(PruningConfigDescriptorAction), options); - } - else if (PruningConfigValue is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("tokens"); - JsonSerializer.Serialize(writer, TokensValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class WeightedTokensQueryDescriptor : SerializableDescriptor -{ - internal WeightedTokensQueryDescriptor(Action configure) => configure.Invoke(this); - - public WeightedTokensQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfig? PruningConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfigDescriptor PruningConfigDescriptor { get; set; } - private Action PruningConfigDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private IDictionary TokensValue { 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 WeightedTokensQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Token pruning configurations - /// - /// - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfig? pruningConfig) - { - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = null; - PruningConfigValue = pruningConfig; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfigDescriptor descriptor) - { - PruningConfigValue = null; - PruningConfigDescriptorAction = null; - PruningConfigDescriptor = descriptor; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Action configure) - { - PruningConfigValue = null; - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = configure; - return Self; - } - - public WeightedTokensQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The tokens representing this query - /// - /// - public WeightedTokensQueryDescriptor Tokens(Func, FluentDictionary> selector) - { - TokensValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (PruningConfigDescriptor is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigDescriptor, options); - } - else if (PruningConfigDescriptorAction is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TokenPruningConfigDescriptor(PruningConfigDescriptorAction), options); - } - else if (PruningConfigValue is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("tokens"); - JsonSerializer.Serialize(writer, TokensValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs new file mode 100644 index 00000000000..1cd9ee2facd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs @@ -0,0 +1,47 @@ +// 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.QueryRules; + +public sealed partial class QueryRulesetMatchedRule +{ + /// + /// + /// Rule unique identifier within that ruleset + /// + /// + [JsonInclude, JsonPropertyName("rule_id")] + public string RuleId { get; init; } + + /// + /// + /// Ruleset unique identifier + /// + /// + [JsonInclude, JsonPropertyName("ruleset_id")] + public string RulesetId { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs index 574be5754ea..100f1f40cc2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs @@ -38,6 +38,14 @@ public sealed partial class RRFRetriever [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] public ICollection? Filter { get; set; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + /// /// /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. @@ -77,6 +85,7 @@ public RRFRetrieverDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action> FilterDescriptorAction { get; set; } private Action>[] FilterDescriptorActions { get; set; } + private float? MinScoreValue { get; set; } private int? RankConstantValue { get; set; } private int? RankWindowSizeValue { get; set; } private ICollection RetrieversValue { get; set; } @@ -125,6 +134,17 @@ public RRFRetrieverDescriptor Filter(params Action + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RRFRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. @@ -220,6 +240,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); } + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + if (RankConstantValue.HasValue) { writer.WritePropertyName("rank_constant"); @@ -279,6 +305,7 @@ public RRFRetrieverDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action FilterDescriptorAction { get; set; } private Action[] FilterDescriptorActions { get; set; } + private float? MinScoreValue { get; set; } private int? RankConstantValue { get; set; } private int? RankWindowSizeValue { get; set; } private ICollection RetrieversValue { get; set; } @@ -327,6 +354,17 @@ public RRFRetrieverDescriptor Filter(params Action + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RRFRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. @@ -422,6 +460,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); } + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + if (RankConstantValue.HasValue) { writer.WritePropertyName("rank_constant"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs index 3c887d29e8e..f6ba60c8271 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs @@ -48,7 +48,9 @@ internal Retriever(string variantName, object variant) public static Retriever Knn(Elastic.Clients.Elasticsearch.Serverless.KnnRetriever knnRetriever) => new Retriever("knn", knnRetriever); public static Retriever Rrf(Elastic.Clients.Elasticsearch.Serverless.RRFRetriever rRFRetriever) => new Retriever("rrf", rRFRetriever); + public static Retriever Rule(Elastic.Clients.Elasticsearch.Serverless.RuleRetriever ruleRetriever) => new Retriever("rule", ruleRetriever); public static Retriever Standard(Elastic.Clients.Elasticsearch.Serverless.StandardRetriever standardRetriever) => new Retriever("standard", standardRetriever); + public static Retriever TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker textSimilarityReranker) => new Retriever("text_similarity_reranker", textSimilarityReranker); public bool TryGet([NotNullWhen(true)] out T? result) where T : class { @@ -102,6 +104,13 @@ public override Retriever Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "rule") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "standard") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -109,6 +118,13 @@ public override Retriever Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "text_similarity_reranker") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Retriever' from the response."); } @@ -130,9 +146,15 @@ public override void Write(Utf8JsonWriter writer, Retriever value, JsonSerialize case "rrf": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.RRFRetriever)value.Variant, options); break; + case "rule": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.RuleRetriever)value.Variant, options); + break; case "standard": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.StandardRetriever)value.Variant, options); break; + case "text_similarity_reranker": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker)value.Variant, options); + break; } } @@ -175,8 +197,12 @@ private RetrieverDescriptor Set(object variant, string variantName) public RetrieverDescriptor Knn(Action> configure) => Set(configure, "knn"); public RetrieverDescriptor Rrf(Elastic.Clients.Elasticsearch.Serverless.RRFRetriever rRFRetriever) => Set(rRFRetriever, "rrf"); public RetrieverDescriptor Rrf(Action> configure) => Set(configure, "rrf"); + public RetrieverDescriptor Rule(Elastic.Clients.Elasticsearch.Serverless.RuleRetriever ruleRetriever) => Set(ruleRetriever, "rule"); + public RetrieverDescriptor Rule(Action> configure) => Set(configure, "rule"); public RetrieverDescriptor Standard(Elastic.Clients.Elasticsearch.Serverless.StandardRetriever standardRetriever) => Set(standardRetriever, "standard"); public RetrieverDescriptor Standard(Action> configure) => Set(configure, "standard"); + public RetrieverDescriptor TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker textSimilarityReranker) => Set(textSimilarityReranker, "text_similarity_reranker"); + public RetrieverDescriptor TextSimilarityReranker(Action> configure) => Set(configure, "text_similarity_reranker"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -233,8 +259,12 @@ private RetrieverDescriptor Set(object variant, string variantName) public RetrieverDescriptor Knn(Action configure) => Set(configure, "knn"); public RetrieverDescriptor Rrf(Elastic.Clients.Elasticsearch.Serverless.RRFRetriever rRFRetriever) => Set(rRFRetriever, "rrf"); public RetrieverDescriptor Rrf(Action configure) => Set(configure, "rrf"); + public RetrieverDescriptor Rule(Elastic.Clients.Elasticsearch.Serverless.RuleRetriever ruleRetriever) => Set(ruleRetriever, "rule"); + public RetrieverDescriptor Rule(Action configure) => Set(configure, "rule"); public RetrieverDescriptor Standard(Elastic.Clients.Elasticsearch.Serverless.StandardRetriever standardRetriever) => Set(standardRetriever, "standard"); public RetrieverDescriptor Standard(Action configure) => Set(configure, "standard"); + public RetrieverDescriptor TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker textSimilarityReranker) => Set(textSimilarityReranker, "text_similarity_reranker"); + public RetrieverDescriptor TextSimilarityReranker(Action configure) => Set(configure, "text_similarity_reranker"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs new file mode 100644 index 00000000000..d4b7c4c0874 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs @@ -0,0 +1,486 @@ +// 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 RuleRetriever +{ + /// + /// + /// Query to filter the documents that can match. + /// + /// + [JsonInclude, JsonPropertyName("filter")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] + public ICollection? Filter { get; set; } + + /// + /// + /// The match criteria that will determine if a rule in the provided rulesets should be applied. + /// + /// + [JsonInclude, JsonPropertyName("match_criteria")] + public object MatchCriteria { get; set; } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + + /// + /// + /// This value determines the size of the individual result set. + /// + /// + [JsonInclude, JsonPropertyName("rank_window_size")] + public int? RankWindowSize { get; set; } + + /// + /// + /// The retriever whose results rules should be applied to. + /// + /// + [JsonInclude, JsonPropertyName("retriever")] + public Elastic.Clients.Elasticsearch.Serverless.Retriever Retriever { get; set; } + + /// + /// + /// The ruleset IDs containing the rules this retriever is evaluating against. + /// + /// + [JsonInclude, JsonPropertyName("ruleset_ids")] + public ICollection RulesetIds { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(RuleRetriever ruleRetriever) => Elastic.Clients.Elasticsearch.Serverless.Retriever.Rule(ruleRetriever); +} + +public sealed partial class RuleRetrieverDescriptor : SerializableDescriptor> +{ + internal RuleRetrieverDescriptor(Action> configure) => configure.Invoke(this); + + public RuleRetrieverDescriptor() : base() + { + } + + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private Action>[] FilterDescriptorActions { get; set; } + private object MatchCriteriaValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action> RetrieverDescriptorAction { get; set; } + private ICollection RulesetIdsValue { get; set; } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public RuleRetrieverDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public RuleRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public RuleRetrieverDescriptor Filter(params Action>[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// The match criteria that will determine if a rule in the provided rulesets should be applied. + /// + /// + public RuleRetrieverDescriptor MatchCriteria(object matchCriteria) + { + MatchCriteriaValue = matchCriteria; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RuleRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines the size of the individual result set. + /// + /// + public RuleRetrieverDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The retriever whose results rules should be applied to. + /// + /// + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Action> configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + /// + /// + /// The ruleset IDs containing the rules this retriever is evaluating against. + /// + /// + public RuleRetrieverDescriptor RulesetIds(ICollection rulesetIds) + { + RulesetIdsValue = rulesetIds; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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 (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + writer.WritePropertyName("match_criteria"); + JsonSerializer.Serialize(writer, MatchCriteriaValue, options); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WritePropertyName("ruleset_ids"); + JsonSerializer.Serialize(writer, RulesetIdsValue, options); + writer.WriteEndObject(); + } +} + +public sealed partial class RuleRetrieverDescriptor : SerializableDescriptor +{ + internal RuleRetrieverDescriptor(Action configure) => configure.Invoke(this); + + public RuleRetrieverDescriptor() : base() + { + } + + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private Action[] FilterDescriptorActions { get; set; } + private object MatchCriteriaValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action RetrieverDescriptorAction { get; set; } + private ICollection RulesetIdsValue { get; set; } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public RuleRetrieverDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public RuleRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public RuleRetrieverDescriptor Filter(params Action[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// The match criteria that will determine if a rule in the provided rulesets should be applied. + /// + /// + public RuleRetrieverDescriptor MatchCriteria(object matchCriteria) + { + MatchCriteriaValue = matchCriteria; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RuleRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines the size of the individual result set. + /// + /// + public RuleRetrieverDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The retriever whose results rules should be applied to. + /// + /// + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Action configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + /// + /// + /// The ruleset IDs containing the rules this retriever is evaluating against. + /// + /// + public RuleRetrieverDescriptor RulesetIds(ICollection rulesetIds) + { + RulesetIdsValue = rulesetIds; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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 (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + writer.WritePropertyName("match_criteria"); + JsonSerializer.Serialize(writer, MatchCriteriaValue, options); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WritePropertyName("ruleset_ids"); + JsonSerializer.Serialize(writer, RulesetIdsValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs index 8bf956852fc..45feac6f03e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs @@ -43,6 +43,7 @@ public sealed partial class IndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexName))] public ICollection Names { get; set; } /// @@ -159,7 +160,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) @@ -269,7 +270,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs index 1d0d895ca52..2c717cdc12d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs @@ -39,6 +39,7 @@ public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, Js IReadOnlyCollection? indices = default; IReadOnlyDictionary? metadata = default; string name = default; + Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction = default; IReadOnlyCollection? runAs = default; IReadOnlyCollection? sort = default; IReadOnlyDictionary? transientMetadata = default; @@ -83,6 +84,12 @@ public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (property == "restriction") + { + restriction = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "run_as") { runAs = JsonSerializer.Deserialize?>(ref reader, options); @@ -103,7 +110,7 @@ public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, Js } } - return new QueryRole { Applications = applications, Cluster = cluster, Description = description, Indices = indices, Metadata = metadata, Name = name, RunAs = runAs, Sort = sort, TransientMetadata = transientMetadata }; + return new QueryRole { Applications = applications, Cluster = cluster, Description = description, Indices = indices, Metadata = metadata, Name = name, Restriction = restriction, RunAs = runAs, Sort = sort, TransientMetadata = transientMetadata }; } public override void Write(Utf8JsonWriter writer, QueryRole value, JsonSerializerOptions options) @@ -157,6 +164,13 @@ public sealed partial class QueryRole /// public string Name { get; init; } + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? Restriction { get; init; } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs new file mode 100644 index 00000000000..0058fc7d327 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs @@ -0,0 +1,59 @@ +// 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.Security; + +public sealed partial class Restriction +{ + [JsonInclude, JsonPropertyName("workflows")] + public ICollection Workflows { get; set; } +} + +public sealed partial class RestrictionDescriptor : SerializableDescriptor +{ + internal RestrictionDescriptor(Action configure) => configure.Invoke(this); + + public RestrictionDescriptor() : base() + { + } + + private ICollection WorkflowsValue { get; set; } + + public RestrictionDescriptor Workflows(ICollection workflows) + { + WorkflowsValue = workflows; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("workflows"); + JsonSerializer.Serialize(writer, WorkflowsValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs index f78d20713c7..96d69e55dd4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs @@ -32,7 +32,7 @@ public sealed partial class Role [JsonInclude, JsonPropertyName("applications")] public IReadOnlyCollection Applications { get; init; } [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } + public IReadOnlyCollection Cluster { get; init; } [JsonInclude, JsonPropertyName("global")] public IReadOnlyDictionary>>>? Global { get; init; } [JsonInclude, JsonPropertyName("indices")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs index 237f24160fb..d12ecb7310e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs @@ -69,6 +69,12 @@ public override RoleDescriptor Read(ref Utf8JsonReader reader, Type typeToConver continue; } + if (property == "restriction") + { + variant.Restriction = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "run_as") { variant.RunAs = JsonSerializer.Deserialize?>(ref reader, options); @@ -119,6 +125,12 @@ public override void Write(Utf8JsonWriter writer, RoleDescriptor value, JsonSeri JsonSerializer.Serialize(writer, value.Metadata, options); } + if (value.Restriction is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, value.Restriction, options); + } + if (value.RunAs is not null) { writer.WritePropertyName("run_as"); @@ -173,6 +185,13 @@ public sealed partial class RoleDescriptor /// public IDictionary? Metadata { get; set; } + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? Restriction { get; set; } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -201,6 +220,9 @@ public RoleDescriptorDescriptor() : base() private Action> IndicesDescriptorAction { get; set; } private Action>[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? RestrictionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor RestrictionDescriptor { get; set; } + private Action RestrictionDescriptorAction { get; set; } private ICollection? RunAsValue { get; set; } private IDictionary? TransientMetadataValue { get; set; } @@ -319,6 +341,35 @@ public RoleDescriptorDescriptor Metadata(Func + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction) + { + RestrictionDescriptor = null; + RestrictionDescriptorAction = null; + RestrictionValue = restriction; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor descriptor) + { + RestrictionValue = null; + RestrictionDescriptorAction = null; + RestrictionDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Action configure) + { + RestrictionValue = null; + RestrictionDescriptor = null; + RestrictionDescriptorAction = configure; + return Self; + } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -419,6 +470,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RestrictionDescriptor is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionDescriptor, options); + } + else if (RestrictionDescriptorAction is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor(RestrictionDescriptorAction), options); + } + else if (RestrictionValue is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionValue, options); + } + if (RunAsValue is not null) { writer.WritePropertyName("run_as"); @@ -454,6 +521,9 @@ public RoleDescriptorDescriptor() : base() private Action IndicesDescriptorAction { get; set; } private Action[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? RestrictionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor RestrictionDescriptor { get; set; } + private Action RestrictionDescriptorAction { get; set; } private ICollection? RunAsValue { get; set; } private IDictionary? TransientMetadataValue { get; set; } @@ -572,6 +642,35 @@ public RoleDescriptorDescriptor Metadata(Func, return Self; } + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction) + { + RestrictionDescriptor = null; + RestrictionDescriptorAction = null; + RestrictionValue = restriction; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor descriptor) + { + RestrictionValue = null; + RestrictionDescriptorAction = null; + RestrictionDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Action configure) + { + RestrictionValue = null; + RestrictionDescriptor = null; + RestrictionDescriptorAction = configure; + return Self; + } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -672,6 +771,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RestrictionDescriptor is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionDescriptor, options); + } + else if (RestrictionDescriptorAction is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor(RestrictionDescriptorAction), options); + } + else if (RestrictionValue is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionValue, options); + } + if (RunAsValue is not null) { writer.WritePropertyName("run_as"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs index d34a6045e38..34ef826b7ef 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs @@ -38,6 +38,7 @@ public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToCo string? description = default; IReadOnlyCollection indices = default; IReadOnlyDictionary? metadata = default; + Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction = default; IReadOnlyCollection? runAs = default; IReadOnlyDictionary? transientMetadata = default; while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) @@ -75,6 +76,12 @@ public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToCo continue; } + if (property == "restriction") + { + restriction = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "run_as") { runAs = JsonSerializer.Deserialize?>(ref reader, options); @@ -89,7 +96,7 @@ public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToCo } } - return new RoleDescriptorRead { Applications = applications, Cluster = cluster, Description = description, Indices = indices, Metadata = metadata, RunAs = runAs, TransientMetadata = transientMetadata }; + return new RoleDescriptorRead { Applications = applications, Cluster = cluster, Description = description, Indices = indices, Metadata = metadata, Restriction = restriction, RunAs = runAs, TransientMetadata = transientMetadata }; } public override void Write(Utf8JsonWriter writer, RoleDescriptorRead value, JsonSerializerOptions options) @@ -136,6 +143,13 @@ public sealed partial class RoleDescriptorRead /// public IReadOnlyDictionary? Metadata { get; init; } + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? Restriction { get; init; } + /// /// /// A list of users that the API keys can impersonate. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs index 10deebc1689..3693ef101e1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs @@ -51,6 +51,7 @@ public sealed partial class UserIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection Names { get; init; } /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs new file mode 100644 index 00000000000..c3ac989c0e2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs @@ -0,0 +1,546 @@ +// 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 TextSimilarityReranker +{ + /// + /// + /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text + /// + /// + [JsonInclude, JsonPropertyName("field")] + public string? Field { get; set; } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + [JsonInclude, JsonPropertyName("filter")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] + public ICollection? Filter { get; set; } + + /// + /// + /// Unique identifier of the inference endpoint created using the inference API. + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string? InferenceId { get; set; } + + /// + /// + /// The text snippet used as the basis for similarity comparison + /// + /// + [JsonInclude, JsonPropertyName("inference_text")] + public string? InferenceText { get; set; } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + + /// + /// + /// This value determines how many documents we will consider from the nested retriever. + /// + /// + [JsonInclude, JsonPropertyName("rank_window_size")] + public int? RankWindowSize { get; set; } + + /// + /// + /// The nested retriever which will produce the first-level results, that will later be used for reranking. + /// + /// + [JsonInclude, JsonPropertyName("retriever")] + public Elastic.Clients.Elasticsearch.Serverless.Retriever Retriever { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(TextSimilarityReranker textSimilarityReranker) => Elastic.Clients.Elasticsearch.Serverless.Retriever.TextSimilarityReranker(textSimilarityReranker); +} + +public sealed partial class TextSimilarityRerankerDescriptor : SerializableDescriptor> +{ + internal TextSimilarityRerankerDescriptor(Action> configure) => configure.Invoke(this); + + public TextSimilarityRerankerDescriptor() : base() + { + } + + private string? FieldValue { get; set; } + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private Action>[] FilterDescriptorActions { get; set; } + private string? InferenceIdValue { get; set; } + private string? InferenceTextValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action> RetrieverDescriptorAction { get; set; } + + /// + /// + /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text + /// + /// + public TextSimilarityRerankerDescriptor Field(string? field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public TextSimilarityRerankerDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(params Action>[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// Unique identifier of the inference endpoint created using the inference API. + /// + /// + public TextSimilarityRerankerDescriptor InferenceId(string? inferenceId) + { + InferenceIdValue = inferenceId; + return Self; + } + + /// + /// + /// The text snippet used as the basis for similarity comparison + /// + /// + public TextSimilarityRerankerDescriptor InferenceText(string? inferenceText) + { + InferenceTextValue = inferenceText; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public TextSimilarityRerankerDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines how many documents we will consider from the nested retriever. + /// + /// + public TextSimilarityRerankerDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The nested retriever which will produce the first-level results, that will later be used for reranking. + /// + /// + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Action> configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(FieldValue)) + { + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + } + + 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 (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + if (!string.IsNullOrEmpty(InferenceIdValue)) + { + writer.WritePropertyName("inference_id"); + writer.WriteStringValue(InferenceIdValue); + } + + if (!string.IsNullOrEmpty(InferenceTextValue)) + { + writer.WritePropertyName("inference_text"); + writer.WriteStringValue(InferenceTextValue); + } + + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class TextSimilarityRerankerDescriptor : SerializableDescriptor +{ + internal TextSimilarityRerankerDescriptor(Action configure) => configure.Invoke(this); + + public TextSimilarityRerankerDescriptor() : base() + { + } + + private string? FieldValue { get; set; } + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private Action[] FilterDescriptorActions { get; set; } + private string? InferenceIdValue { get; set; } + private string? InferenceTextValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action RetrieverDescriptorAction { get; set; } + + /// + /// + /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text + /// + /// + public TextSimilarityRerankerDescriptor Field(string? field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public TextSimilarityRerankerDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(params Action[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// Unique identifier of the inference endpoint created using the inference API. + /// + /// + public TextSimilarityRerankerDescriptor InferenceId(string? inferenceId) + { + InferenceIdValue = inferenceId; + return Self; + } + + /// + /// + /// The text snippet used as the basis for similarity comparison + /// + /// + public TextSimilarityRerankerDescriptor InferenceText(string? inferenceText) + { + InferenceTextValue = inferenceText; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public TextSimilarityRerankerDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines how many documents we will consider from the nested retriever. + /// + /// + public TextSimilarityRerankerDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The nested retriever which will produce the first-level results, that will later be used for reranking. + /// + /// + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Action configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(FieldValue)) + { + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + } + + 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 (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + if (!string.IsNullOrEmpty(InferenceIdValue)) + { + writer.WritePropertyName("inference_id"); + writer.WriteStringValue(InferenceIdValue); + } + + if (!string.IsNullOrEmpty(InferenceTextValue)) + { + writer.WritePropertyName("inference_text"); + writer.WriteStringValue(InferenceTextValue); + } + + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs index 8fced1722fa..9b76bc470f1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs @@ -49,6 +49,8 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Graph { get; init; } [JsonInclude, JsonPropertyName("ilm")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Ilm { get; init; } + [JsonInclude, JsonPropertyName("logsdb")] + public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Logsdb { get; init; } [JsonInclude, JsonPropertyName("logstash")] public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Logstash { get; init; } [JsonInclude, JsonPropertyName("ml")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 05feceafbce..537089cf96c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -279,6 +279,7 @@ internal static class ApiUrlLookup internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" }); internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" }); + internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" }); internal static ApiUrls RollupDeleteJob = new ApiUrls(new[] { "_rollup/job/{id}" }); internal static ApiUrls RollupGetJobs = new ApiUrls(new[] { "_rollup/job/{id}", "_rollup/job" }); internal static ApiUrls RollupGetRollupCaps = new ApiUrls(new[] { "_rollup/data/{id}", "_rollup/data" }); @@ -310,6 +311,7 @@ internal static class ApiUrlLookup internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "_security/role/{name}/_clear_cache" }); internal static ApiUrls SecurityClearCachedServiceTokens = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache" }); internal static ApiUrls SecurityCreateApiKey = new ApiUrls(new[] { "_security/api_key" }); + internal static ApiUrls SecurityCreateCrossClusterApiKey = new ApiUrls(new[] { "_security/cross_cluster/api_key" }); internal static ApiUrls SecurityCreateServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}", "_security/service/{namespace}/{service}/credential/token" }); internal static ApiUrls SecurityDeletePrivileges = new ApiUrls(new[] { "_security/privilege/{application}/{name}" }); internal static ApiUrls SecurityDeleteRole = new ApiUrls(new[] { "_security/role/{name}" }); @@ -353,6 +355,7 @@ internal static class ApiUrlLookup internal static ApiUrls SecuritySamlServiceProviderMetadata = new ApiUrls(new[] { "_security/saml/metadata/{realm_name}" }); internal static ApiUrls SecuritySuggestUserProfiles = new ApiUrls(new[] { "_security/profile/_suggest" }); internal static ApiUrls SecurityUpdateApiKey = new ApiUrls(new[] { "_security/api_key/{id}" }); + internal static ApiUrls SecurityUpdateCrossClusterApiKey = new ApiUrls(new[] { "_security/cross_cluster/api_key/{id}" }); internal static ApiUrls SecurityUpdateUserProfileData = new ApiUrls(new[] { "_security/profile/{uid}/_data" }); internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" }); internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" }); @@ -371,6 +374,7 @@ internal static class ApiUrlLookup internal static ApiUrls SnapshotLifecycleManagementPutLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}" }); internal static ApiUrls SnapshotLifecycleManagementStart = new ApiUrls(new[] { "_slm/start" }); internal static ApiUrls SnapshotLifecycleManagementStop = new ApiUrls(new[] { "_slm/stop" }); + internal static ApiUrls SnapshotRepositoryVerifyIntegrity = new ApiUrls(new[] { "_snapshot/{repository}/_verify_integrity" }); internal static ApiUrls SnapshotRestore = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_restore" }); internal static ApiUrls SnapshotStatus = new ApiUrls(new[] { "_snapshot/_status", "_snapshot/{repository}/_status", "_snapshot/{repository}/{snapshot}/_status" }); internal static ApiUrls SnapshotVerifyRepository = new ApiUrls(new[] { "_snapshot/{repository}/_verify" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index 15213e6dde6..ddd279f7d46 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -36,8 +36,10 @@ public sealed partial class AsyncSearchStatusRequestParameters : RequestParamete /// /// -/// Get async search status -/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. +/// Get the async search status. +/// +/// +/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// /// @@ -58,8 +60,10 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => /// /// -/// Get async search status -/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. +/// Get the async search status. +/// +/// +/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// /// @@ -92,8 +96,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Get async search status -/// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. +/// Get the async search status. +/// +/// +/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs index 335427c3133..e59001fda74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs @@ -36,8 +36,10 @@ public sealed partial class DeleteAsyncSearchRequestParameters : RequestParamete /// /// -/// Deletes an async search by identifier. -/// If the search is still running, the search request will be cancelled. +/// Delete an async search. +/// +/// +/// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// @@ -59,8 +61,10 @@ public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => /// /// -/// Deletes an async search by identifier. -/// If the search is still running, the search request will be cancelled. +/// Delete an async search. +/// +/// +/// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// @@ -94,8 +98,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes an async search by identifier. -/// If the search is still running, the search request will be cancelled. +/// Delete an async search. +/// +/// +/// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index 7014f6ae88d..c2884fe1b43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -62,7 +62,10 @@ public sealed partial class GetAsyncSearchRequestParameters : RequestParameters /// /// -/// Retrieves the results of a previously submitted async search request given its identifier. +/// Get async search results. +/// +/// +/// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// /// @@ -113,7 +116,10 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r. /// /// -/// Retrieves the results of a previously submitted async search request given its identifier. +/// Get async search results. +/// +/// +/// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// /// @@ -150,7 +156,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves the results of a previously submitted async search request given its identifier. +/// Get async search results. +/// +/// +/// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index 070370fb9a5..3612227015a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -138,7 +138,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// /// public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } /// /// @@ -652,10 +651,16 @@ public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value /// /// -/// Runs a search request asynchronously. -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. -/// Warning: Async search does not support scroll nor search requests that only include the suggest section. -/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. +/// Run an async search. +/// +/// +/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. +/// +/// +/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. +/// +/// +/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// /// @@ -799,8 +804,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) /// [JsonIgnore] public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - [JsonIgnore] - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } /// /// @@ -1145,10 +1148,16 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) /// /// -/// Runs a search request asynchronously. -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. -/// Warning: Async search does not support scroll nor search requests that only include the suggest section. -/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. +/// Run an async search. +/// +/// +/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. +/// +/// +/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. +/// +/// +/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// /// @@ -1187,7 +1196,6 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); @@ -2264,10 +2272,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Runs a search request asynchronously. -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. -/// Warning: Async search does not support scroll nor search requests that only include the suggest section. -/// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. +/// Run an async search. +/// +/// +/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. +/// +/// +/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. +/// +/// +/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// /// @@ -2306,7 +2320,6 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs index 44a39a87f99..156d7b50847 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearScrollRequestParameters : RequestParameters /// /// -/// Clears the search context and results for a scrolling search. +/// Clear a scrolling search. +/// +/// +/// Clear the search context and results for a scrolling search. /// /// public sealed partial class ClearScrollRequest : PlainRequest @@ -61,7 +64,10 @@ public sealed partial class ClearScrollRequest : PlainRequest /// -/// Clears the search context and results for a scrolling search. +/// Clear a scrolling search. +/// +/// +/// Clear the search context and results for a scrolling search. /// /// public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs index 9b343cb2798..4bc64124f7a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -36,7 +36,13 @@ public sealed partial class ClosePointInTimeRequestParameters : RequestParameter /// /// -/// Closes a point-in-time. +/// Close a point in time. +/// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// A point in time is automatically closed when the keep_alive period has elapsed. +/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// /// public sealed partial class ClosePointInTimeRequest : PlainRequest @@ -60,7 +66,13 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest /// -/// Closes a point-in-time. +/// Close a point in time. +/// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// A point in time is automatically closed when the keep_alive period has elapsed. +/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// /// public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs index 34e1fcbab09..3280b6931ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -34,7 +34,10 @@ public sealed partial class FollowRequestParameters : RequestParameters { /// /// - /// Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be + /// active. + /// A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the + /// remote Lucene segment files to the follower index. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -61,35 +64,131 @@ public FollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => /// /// - /// Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be + /// active. + /// A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the + /// remote Lucene segment files to the follower index. /// /// [JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } + + /// + /// + /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. + /// + /// + [JsonInclude, JsonPropertyName("data_stream_name")] + public string? DataStreamName { get; set; } + + /// + /// + /// The name of the index in the leader cluster to follow. + /// + /// [JsonInclude, JsonPropertyName("leader_index")] - public Elastic.Clients.Elasticsearch.IndexName? LeaderIndex { get; set; } + public Elastic.Clients.Elasticsearch.IndexName LeaderIndex { get; set; } + + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] public long? MaxOutstandingReadRequests { get; set; } + + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] - public long? MaxOutstandingWriteRequests { get; set; } + public int? MaxOutstandingWriteRequests { get; set; } + + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_operation_count")] - public long? MaxReadRequestOperationCount { get; set; } + public int? MaxReadRequestOperationCount { get; set; } + + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_size")] - public string? MaxReadRequestSize { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; set; } + + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// [JsonInclude, JsonPropertyName("max_retry_delay")] public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; } + + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_count")] - public long? MaxWriteBufferCount { get; set; } + public int? MaxWriteBufferCount { get; set; } + + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_size")] - public string? MaxWriteBufferSize { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; set; } + + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_operation_count")] - public long? MaxWriteRequestOperationCount { get; set; } + public int? MaxWriteRequestOperationCount { get; set; } + + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_size")] - public string? MaxWriteRequestSize { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; set; } + + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// [JsonInclude, JsonPropertyName("read_poll_timeout")] public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; } + + /// + /// + /// The remote cluster containing the leader index. + /// + /// [JsonInclude, JsonPropertyName("remote_cluster")] - public string? RemoteCluster { get; set; } + public string RemoteCluster { get; set; } + + /// + /// + /// Settings to override from the leader index. + /// + /// + [JsonInclude, JsonPropertyName("settings")] + public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; set; } } /// @@ -125,100 +224,211 @@ public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.In return Self; } - private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } + private string? DataStreamNameValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName LeaderIndexValue { get; set; } private long? MaxOutstandingReadRequestsValue { get; set; } - private long? MaxOutstandingWriteRequestsValue { get; set; } - private long? MaxReadRequestOperationCountValue { get; set; } - private string? MaxReadRequestSizeValue { get; set; } + private int? MaxOutstandingWriteRequestsValue { get; set; } + private int? MaxReadRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - private long? MaxWriteBufferCountValue { get; set; } - private string? MaxWriteBufferSizeValue { get; set; } - private long? MaxWriteRequestOperationCountValue { get; set; } - private string? MaxWriteRequestSizeValue { get; set; } + private int? MaxWriteBufferCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } + private int? MaxWriteRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - private string? RemoteClusterValue { get; set; } + private string RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } + private Action> SettingsDescriptorAction { get; set; } - public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) + /// + /// + /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. + /// + /// + public FollowRequestDescriptor DataStreamName(string? dataStreamName) + { + DataStreamNameValue = dataStreamName; + return Self; + } + + /// + /// + /// The name of the index in the leader cluster to follow. + /// + /// + public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName leaderIndex) { LeaderIndexValue = leaderIndex; return Self; } + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// public FollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) { MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; return Self; } - public FollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// + public FollowRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) { MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; return Self; } - public FollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) { MaxReadRequestOperationCountValue = maxReadRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) { MaxReadRequestSizeValue = maxReadRequestSize; return Self; } + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// public FollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) { MaxRetryDelayValue = maxRetryDelay; return Self; } - public FollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) { MaxWriteBufferCountValue = maxWriteBufferCount; return Self; } - public FollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) { MaxWriteBufferSizeValue = maxWriteBufferSize; return Self; } - public FollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) { MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) { MaxWriteRequestSizeValue = maxWriteRequestSize; return Self; } + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// public FollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) { ReadPollTimeoutValue = readPollTimeout; return Self; } - public FollowRequestDescriptor RemoteCluster(string? remoteCluster) + /// + /// + /// The remote cluster containing the leader index. + /// + /// + public FollowRequestDescriptor RemoteCluster(string remoteCluster) { RemoteClusterValue = remoteCluster; return Self; } + /// + /// + /// Settings to override from the leader index. + /// + /// + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) + { + SettingsDescriptor = null; + SettingsDescriptorAction = null; + SettingsValue = settings; + return Self; + } + + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsValue = null; + SettingsDescriptorAction = null; + SettingsDescriptor = descriptor; + return Self; + } + + public FollowRequestDescriptor Settings(Action> configure) + { + SettingsValue = null; + SettingsDescriptor = null; + SettingsDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (LeaderIndexValue is not null) + if (!string.IsNullOrEmpty(DataStreamNameValue)) { - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); + writer.WritePropertyName("data_stream_name"); + writer.WriteStringValue(DataStreamNameValue); } + writer.WritePropertyName("leader_index"); + JsonSerializer.Serialize(writer, LeaderIndexValue, options); if (MaxOutstandingReadRequestsValue.HasValue) { writer.WritePropertyName("max_outstanding_read_requests"); @@ -237,10 +447,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) + if (MaxReadRequestSizeValue is not null) { writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); + JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); } if (MaxRetryDelayValue is not null) @@ -255,10 +465,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteBufferCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) + if (MaxWriteBufferSizeValue is not null) { writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); + JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); } if (MaxWriteRequestOperationCountValue.HasValue) @@ -267,10 +477,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) + if (MaxWriteRequestSizeValue is not null) { writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); + JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); } if (ReadPollTimeoutValue is not null) @@ -279,10 +489,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); } - if (!string.IsNullOrEmpty(RemoteClusterValue)) + writer.WritePropertyName("remote_cluster"); + writer.WriteStringValue(RemoteClusterValue); + if (SettingsDescriptor is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsDescriptor, options); + } + else if (SettingsDescriptorAction is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); + } + else if (SettingsValue is not null) { - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); } writer.WriteEndObject(); @@ -318,100 +540,211 @@ public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName ind return Self; } - private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } + private string? DataStreamNameValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName LeaderIndexValue { get; set; } private long? MaxOutstandingReadRequestsValue { get; set; } - private long? MaxOutstandingWriteRequestsValue { get; set; } - private long? MaxReadRequestOperationCountValue { get; set; } - private string? MaxReadRequestSizeValue { get; set; } + private int? MaxOutstandingWriteRequestsValue { get; set; } + private int? MaxReadRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - private long? MaxWriteBufferCountValue { get; set; } - private string? MaxWriteBufferSizeValue { get; set; } - private long? MaxWriteRequestOperationCountValue { get; set; } - private string? MaxWriteRequestSizeValue { get; set; } + private int? MaxWriteBufferCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } + private int? MaxWriteRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - private string? RemoteClusterValue { get; set; } + private string RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } + private Action SettingsDescriptorAction { get; set; } + + /// + /// + /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. + /// + /// + public FollowRequestDescriptor DataStreamName(string? dataStreamName) + { + DataStreamNameValue = dataStreamName; + return Self; + } - public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) + /// + /// + /// The name of the index in the leader cluster to follow. + /// + /// + public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName leaderIndex) { LeaderIndexValue = leaderIndex; return Self; } + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// public FollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) { MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; return Self; } - public FollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// + public FollowRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) { MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; return Self; } - public FollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) { MaxReadRequestOperationCountValue = maxReadRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) { MaxReadRequestSizeValue = maxReadRequestSize; return Self; } + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// public FollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) { MaxRetryDelayValue = maxRetryDelay; return Self; } - public FollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) { MaxWriteBufferCountValue = maxWriteBufferCount; return Self; } - public FollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) { MaxWriteBufferSizeValue = maxWriteBufferSize; return Self; } - public FollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) { MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) { MaxWriteRequestSizeValue = maxWriteRequestSize; return Self; } + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// public FollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) { ReadPollTimeoutValue = readPollTimeout; return Self; } - public FollowRequestDescriptor RemoteCluster(string? remoteCluster) + /// + /// + /// The remote cluster containing the leader index. + /// + /// + public FollowRequestDescriptor RemoteCluster(string remoteCluster) { RemoteClusterValue = remoteCluster; return Self; } + /// + /// + /// Settings to override from the leader index. + /// + /// + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) + { + SettingsDescriptor = null; + SettingsDescriptorAction = null; + SettingsValue = settings; + return Self; + } + + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsValue = null; + SettingsDescriptorAction = null; + SettingsDescriptor = descriptor; + return Self; + } + + public FollowRequestDescriptor Settings(Action configure) + { + SettingsValue = null; + SettingsDescriptor = null; + SettingsDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (LeaderIndexValue is not null) + if (!string.IsNullOrEmpty(DataStreamNameValue)) { - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); + writer.WritePropertyName("data_stream_name"); + writer.WriteStringValue(DataStreamNameValue); } + writer.WritePropertyName("leader_index"); + JsonSerializer.Serialize(writer, LeaderIndexValue, options); if (MaxOutstandingReadRequestsValue.HasValue) { writer.WritePropertyName("max_outstanding_read_requests"); @@ -430,10 +763,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) + if (MaxReadRequestSizeValue is not null) { writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); + JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); } if (MaxRetryDelayValue is not null) @@ -448,10 +781,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteBufferCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) + if (MaxWriteBufferSizeValue is not null) { writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); + JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); } if (MaxWriteRequestOperationCountValue.HasValue) @@ -460,10 +793,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) + if (MaxWriteRequestSizeValue is not null) { writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); + JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); } if (ReadPollTimeoutValue is not null) @@ -472,10 +805,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); } - if (!string.IsNullOrEmpty(RemoteClusterValue)) + writer.WritePropertyName("remote_cluster"); + writer.WriteStringValue(RemoteClusterValue); + if (SettingsDescriptor is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsDescriptor, options); + } + else if (SettingsDescriptorAction is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); + } + else if (SettingsValue is not null) { - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs index d7bfa075bab..651b65cef03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs @@ -36,7 +36,14 @@ public sealed partial class ListDanglingIndicesRequestParameters : RequestParame /// /// -/// Returns all dangling indices. +/// Get the dangling indices. +/// +/// +/// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. +/// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. +/// +/// +/// Use this API to list dangling indices, which you can then import or delete. /// /// public sealed partial class ListDanglingIndicesRequest : PlainRequest @@ -52,7 +59,14 @@ public sealed partial class ListDanglingIndicesRequest : PlainRequest /// -/// Returns all dangling indices. +/// Get the dangling indices. +/// +/// +/// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. +/// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. +/// +/// +/// Use this API to list dangling indices, which you can then import or delete. /// /// public sealed partial class ListDanglingIndicesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index e425b31cccf..2b09f0d917c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class DeleteByQueryRethrottleRequestParameters : RequestPa /// /// -/// Changes the number of requests per second for a particular Delete By Query operation. +/// Throttle a delete by query operation. +/// +/// +/// Change the number of requests per second for a particular delete by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest @@ -70,7 +74,11 @@ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.TaskId taskI /// /// -/// Changes the number of requests per second for a particular Delete By Query operation. +/// Throttle a delete by query operation. +/// +/// +/// Change the number of requests per second for a particular delete by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index c5e18996c7c..20a29d1a6c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -115,6 +115,16 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude, JsonPropertyName("keep_on_completion")] public bool? KeepOnCompletion { get; set; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + [JsonInclude, JsonPropertyName("max_samples_per_key")] + public int? MaxSamplesPerKey { get; set; } + /// /// /// EQL query you wish to run. @@ -202,6 +212,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Action>[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } + private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary> RuntimeMappingsValue { get; set; } @@ -354,6 +365,19 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnComple return Self; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) + { + MaxSamplesPerKeyValue = maxSamplesPerKey; + return Self; + } + /// /// /// EQL query you wish to run. @@ -551,6 +575,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } + if (MaxSamplesPerKeyValue.HasValue) + { + writer.WritePropertyName("max_samples_per_key"); + writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); + } + writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) @@ -637,6 +667,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Action[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } + private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary RuntimeMappingsValue { get; set; } @@ -789,6 +820,19 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true return Self; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) + { + MaxSamplesPerKeyValue = maxSamplesPerKey; + return Self; + } + /// /// /// EQL query you wish to run. @@ -986,6 +1030,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } + if (MaxSamplesPerKeyValue.HasValue) + { + writer.WritePropertyName("max_samples_per_key"); + writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); + } + writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index 4ff7e9fbd9c..40ca0aa9140 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -86,9 +86,15 @@ public sealed partial class FieldCapsRequestParameters : RequestParameters /// /// -/// The field capabilities API returns the information about the capabilities of fields among multiple indices. -/// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type -/// of keyword is returned as any other field that belongs to the keyword family. +/// Get the field capabilities. +/// +/// +/// Get information about the capabilities of fields among multiple indices. +/// +/// +/// For data streams, the API returns field capabilities among the stream’s backing indices. +/// It returns runtime fields like any other field. +/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// public sealed partial class FieldCapsRequest : PlainRequest @@ -196,9 +202,15 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// -/// The field capabilities API returns the information about the capabilities of fields among multiple indices. -/// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type -/// of keyword is returned as any other field that belongs to the keyword family. +/// Get the field capabilities. +/// +/// +/// Get information about the capabilities of fields among multiple indices. +/// +/// +/// For data streams, the API returns field capabilities among the stream’s backing indices. +/// It returns runtime fields like any other field. +/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// public sealed partial class FieldCapsRequestDescriptor : RequestDescriptor, FieldCapsRequestParameters> @@ -330,9 +342,15 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The field capabilities API returns the information about the capabilities of fields among multiple indices. -/// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type -/// of keyword is returned as any other field that belongs to the keyword family. +/// Get the field capabilities. +/// +/// +/// Get information about the capabilities of fields among multiple indices. +/// +/// +/// For data streams, the API returns field capabilities among the stream’s backing indices. +/// It returns runtime fields like any other field. +/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// public sealed partial class FieldCapsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs index 57912b0d588..4364f3b5fe8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptContextRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetScriptContextRequestParameters : RequestParameter /// /// -/// Returns all script contexts. +/// Get script contexts. +/// +/// +/// Get a list of supported script contexts and their methods. /// /// public sealed partial class GetScriptContextRequest : PlainRequest @@ -52,7 +55,10 @@ public sealed partial class GetScriptContextRequest : PlainRequest /// -/// Returns all script contexts. +/// Get script contexts. +/// +/// +/// Get a list of supported script contexts and their methods. /// /// public sealed partial class GetScriptContextRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs index fe59cc63faf..eb6c1779d1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptLanguagesRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetScriptLanguagesRequestParameters : RequestParamet /// /// -/// Returns available script types, languages and contexts +/// Get script languages. +/// +/// +/// Get a list of available script types, languages, and contexts. /// /// public sealed partial class GetScriptLanguagesRequest : PlainRequest @@ -52,7 +55,10 @@ public sealed partial class GetScriptLanguagesRequest : PlainRequest /// -/// Returns available script types, languages and contexts +/// Get script languages. +/// +/// +/// Get a list of available script types, languages, and contexts. /// /// public sealed partial class GetScriptLanguagesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs index 03931786cec..0a17e30d21c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class AnalyzeIndexRequestParameters : RequestParameters /// /// -/// Performs analysis on a text string and returns the resulting tokens. +/// Get tokens from text analysis. +/// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// public sealed partial class AnalyzeIndexRequest : PlainRequest @@ -137,7 +138,8 @@ public AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.IndexName? index) : bas /// /// -/// Performs analysis on a text string and returns the resulting tokens. +/// Get tokens from text analysis. +/// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor, AnalyzeIndexRequestParameters> @@ -368,7 +370,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Performs analysis on a text string and returns the resulting tokens. +/// Get tokens from text analysis. +/// The analyze API performs analysis on a text string and returns the resulting tokens. /// /// public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 6edfd5890c7..497533fe195 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -56,13 +56,6 @@ public sealed partial class ExistsAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -116,14 +109,6 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elasti /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -155,7 +140,6 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -203,7 +187,6 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index cf9ce0876a7..dde2e261da7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -56,13 +56,6 @@ public sealed partial class GetAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -124,14 +117,6 @@ public GetAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } } /// @@ -163,7 +148,6 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -211,7 +195,6 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index 34af04025ab..85d023869c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class PutDataLifecycleRequestParameters : RequestParameter /// Update the data stream lifecycle of the specified data streams. /// /// -public sealed partial class PutDataLifecycleRequest : PlainRequest +public sealed partial class PutDataLifecycleRequest : PlainRequest, ISelfSerializable { public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { @@ -107,25 +107,13 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + [JsonIgnore] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle Lifecycle { get; set; } - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } - - /// - /// - /// If defined, every backing index will execute the configured downsampling configuration after the backing - /// index is not the data stream write index anymore. - /// - /// - [JsonInclude, JsonPropertyName("downsampling")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, Lifecycle, options); + } } /// @@ -137,10 +125,7 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor { internal PutDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) - { - } + public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) => LifecycleValue = lifecycle; internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; @@ -160,79 +145,36 @@ public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Data return Self; } - private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } - private Action DownsamplingDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle LifecycleValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) - { - DataRetentionValue = dataRetention; - return Self; - } - - /// - /// - /// If defined, every backing index will execute the configured downsampling configuration after the backing - /// index is not the data stream write index anymore. - /// - /// - public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle) { - DownsamplingDescriptor = null; - DownsamplingDescriptorAction = null; - DownsamplingValue = downsampling; + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; return Self; } - public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor descriptor) + public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDescriptor descriptor) { - DownsamplingValue = null; - DownsamplingDescriptorAction = null; - DownsamplingDescriptor = descriptor; + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; return Self; } - public PutDataLifecycleRequestDescriptor Downsampling(Action configure) + public PutDataLifecycleRequestDescriptor Lifecycle(Action configure) { - DownsamplingValue = null; - DownsamplingDescriptor = null; - DownsamplingDescriptorAction = configure; + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - writer.WriteStartObject(); - if (DataRetentionValue is not null) - { - writer.WritePropertyName("data_retention"); - JsonSerializer.Serialize(writer, DataRetentionValue, options); - } - - if (DownsamplingDescriptor is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); - } - else if (DownsamplingDescriptorAction is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); - } - else if (DownsamplingValue is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, DownsamplingValue, options); - } - - writer.WriteEndObject(); + JsonSerializer.Serialize(writer, LifecycleValue, options); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 6d61bb45be9..b96487dc828 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -56,13 +56,6 @@ public sealed partial class SegmentsRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request returns a verbose response. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -116,14 +109,6 @@ public SegmentsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request returns a verbose response. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -155,7 +140,6 @@ public SegmentsRequestDescriptor() public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -197,7 +181,6 @@ public SegmentsRequestDescriptor() public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 11705264497..85695b4b409 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -254,7 +254,12 @@ public override void Write(Utf8JsonWriter writer, PutDatafeedRequest value, Json /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. +/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had +/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, +/// those credentials are used instead. +/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed +/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// [JsonConverter(typeof(PutDatafeedRequestConverter))] @@ -438,7 +443,12 @@ public PutDatafeedRequest() /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. +/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had +/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, +/// those credentials are used instead. +/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed +/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// public sealed partial class PutDatafeedRequestDescriptor : RequestDescriptor, PutDatafeedRequestParameters> @@ -871,7 +881,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. +/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had +/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, +/// those credentials are used instead. +/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed +/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// public sealed partial class PutDatafeedRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs index 479a8447f37..192b345d954 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs @@ -103,7 +103,12 @@ public sealed partial class MultiGetRequestParameters : RequestParameters /// /// -/// Allows to get multiple documents in one request. +/// Get multiple documents. +/// +/// +/// Get multiple JSON documents by ID from one or more indices. +/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. +/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// public sealed partial class MultiGetRequest : PlainRequest @@ -220,7 +225,12 @@ public MultiGetRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r /// /// -/// Allows to get multiple documents in one request. +/// Get multiple documents. +/// +/// +/// Get multiple JSON documents by ID from one or more indices. +/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. +/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// public sealed partial class MultiGetRequestDescriptor : RequestDescriptor, MultiGetRequestParameters> @@ -363,7 +373,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Allows to get multiple documents in one request. +/// Get multiple documents. +/// +/// +/// Get multiple JSON documents by ID from one or more indices. +/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. +/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// public sealed partial class MultiGetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index 0142870ccb7..526b27fa61e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -121,7 +121,25 @@ public sealed partial class MultiSearchRequestParameters : RequestParameters /// /// -/// Allows to execute several search operations in one request. +/// Run multiple searches. +/// +/// +/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. +/// The structure is as follows: +/// +/// +/// header\n +/// body\n +/// header\n +/// body\n +/// +/// +/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. +/// +/// +/// IMPORTANT: The final line of data must end with a newline character \n. +/// Each newline character may be preceded by a carriage return \r. +/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// public sealed partial class MultiSearchRequest : PlainRequest, IStreamSerializable @@ -264,7 +282,25 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien /// /// -/// Allows to execute several search operations in one request. +/// Run multiple searches. +/// +/// +/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. +/// The structure is as follows: +/// +/// +/// header\n +/// body\n +/// header\n +/// body\n +/// +/// +/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. +/// +/// +/// IMPORTANT: The final line of data must end with a newline character \n. +/// Each newline character may be preceded by a carriage return \r. +/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// public sealed partial class MultiSearchRequestDescriptor : RequestDescriptor, MultiSearchRequestParameters>, IStreamSerializable @@ -343,7 +379,25 @@ public MultiSearchRequestDescriptor AddSearches(Elastic.Clients.Elast /// /// -/// Allows to execute several search operations in one request. +/// Run multiple searches. +/// +/// +/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. +/// The structure is as follows: +/// +/// +/// header\n +/// body\n +/// header\n +/// body\n +/// +/// +/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. +/// +/// +/// IMPORTANT: The final line of data must end with a newline character \n. +/// Each newline character may be preceded by a carriage return \r. +/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// public sealed partial class MultiSearchRequestDescriptor : RequestDescriptor, IStreamSerializable diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs index c987991b8cb..2c558db006d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -74,7 +74,7 @@ public sealed partial class MultiSearchTemplateRequestParameters : RequestParame /// /// -/// Runs multiple templated searches with a single request. +/// Run multiple templated searches. /// /// public sealed partial class MultiSearchTemplateRequest : PlainRequest, IStreamSerializable @@ -163,7 +163,7 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien /// /// -/// Runs multiple templated searches with a single request. +/// Run multiple templated searches. /// /// public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, MultiSearchTemplateRequestParameters>, IStreamSerializable @@ -235,7 +235,7 @@ public MultiSearchTemplateRequestDescriptor AddSearchTemplates(Elasti /// /// -/// Runs multiple templated searches with a single request. +/// Run multiple templated searches. /// /// public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, IStreamSerializable diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs index 03b4da10f08..9a6c3ba7206 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -114,7 +114,13 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter /// /// -/// Returns multiple termvectors in one request. +/// Get multiple term vectors. +/// +/// +/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. +/// You can specify the index in the request body or request URI. +/// The response contains a docs array with all the fetched termvectors. +/// Each element has the structure provided by the termvectors API. /// /// public sealed partial class MultiTermVectorsRequest : PlainRequest @@ -244,7 +250,13 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// -/// Returns multiple termvectors in one request. +/// Get multiple term vectors. +/// +/// +/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. +/// You can specify the index in the request body or request URI. +/// The response contains a docs array with all the fetched termvectors. +/// Each element has the structure provided by the termvectors API. /// /// public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor, MultiTermVectorsRequestParameters> @@ -389,7 +401,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns multiple termvectors in one request. +/// Get multiple term vectors. +/// +/// +/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. +/// You can specify the index in the request body or request URI. +/// The response contains a docs array with all the fetched termvectors. +/// Each element has the structure provided by the termvectors API. /// /// public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 7eba519c3bc..14c783d1451 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -73,13 +73,20 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters /// /// -/// A search request by default executes against the most recent visible data of the target indices, +/// Open a point in time. +/// +/// +/// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// /// public sealed partial class OpenPointInTimeRequest : PlainRequest { @@ -149,13 +156,20 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// -/// A search request by default executes against the most recent visible data of the target indices, +/// Open a point in time. +/// +/// +/// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// /// public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor, OpenPointInTimeRequestParameters> { @@ -247,13 +261,20 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// A search request by default executes against the most recent visible data of the target indices, +/// Open a point in time. +/// +/// +/// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// +/// +/// A point in time must be opened explicitly before being used in search requests. +/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// /// public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs new file mode 100644 index 00000000000..1e726728bde --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs @@ -0,0 +1,102 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.QueryRules; + +public sealed partial class TestRequestParameters : RequestParameters +{ +} + +/// +/// +/// Creates or updates a query ruleset. +/// +/// +public sealed partial class TestRequest : PlainRequest +{ + public TestRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesTest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "query_rules.test"; + + [JsonInclude, JsonPropertyName("match_criteria")] + public IDictionary MatchCriteria { get; set; } +} + +/// +/// +/// Creates or updates a query ruleset. +/// +/// +public sealed partial class TestRequestDescriptor : RequestDescriptor +{ + internal TestRequestDescriptor(Action configure) => configure.Invoke(this); + + public TestRequestDescriptor(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesTest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "query_rules.test"; + + public TestRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Id rulesetId) + { + RouteValues.Required("ruleset_id", rulesetId); + return Self; + } + + private IDictionary MatchCriteriaValue { get; set; } + + public TestRequestDescriptor MatchCriteria(Func, FluentDictionary> selector) + { + MatchCriteriaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("match_criteria"); + JsonSerializer.Serialize(writer, MatchCriteriaValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs new file mode 100644 index 00000000000..6afa8a862e7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.QueryRules; + +public sealed partial class TestResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("matched_rules")] + public IReadOnlyCollection MatchedRules { get; init; } + [JsonInclude, JsonPropertyName("total_matched_rules")] + public int TotalMatchedRules { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index a883c183c86..c42ede2ec90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -63,7 +63,10 @@ public sealed partial class RankEvalRequestParameters : RequestParameters /// /// -/// Enables you to evaluate the quality of ranked search results over a set of typical search queries. +/// Evaluate ranked search results. +/// +/// +/// Evaluate the quality of ranked search results over a set of typical search queries. /// /// public sealed partial class RankEvalRequest : PlainRequest @@ -135,7 +138,10 @@ public RankEvalRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// -/// Enables you to evaluate the quality of ranked search results over a set of typical search queries. +/// Evaluate ranked search results. +/// +/// +/// Evaluate the quality of ranked search results over a set of typical search queries. /// /// public sealed partial class RankEvalRequestDescriptor : RequestDescriptor, RankEvalRequestParameters> @@ -303,7 +309,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Enables you to evaluate the quality of ranked search results over a set of typical search queries. +/// Evaluate ranked search results. +/// +/// +/// Evaluate the quality of ranked search results over a set of typical search queries. /// /// public sealed partial class RankEvalRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs index c5b605c9aad..88bf92f8d80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class ReindexRethrottleRequestParameters : RequestParamete /// /// -/// Copies documents from a source to a destination. +/// Throttle a reindex operation. +/// +/// +/// Change the number of requests per second for a particular reindex operation. /// /// public sealed partial class ReindexRethrottleRequest : PlainRequest @@ -70,7 +73,10 @@ public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : base( /// /// -/// Copies documents from a source to a destination. +/// Throttle a reindex operation. +/// +/// +/// Change the number of requests per second for a particular reindex operation. /// /// public sealed partial class ReindexRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs index 3271a224123..26361bc0ec5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class RenderSearchTemplateRequestParameters : RequestParam /// /// -/// Renders a search template as a search request body. +/// Render a search template. +/// +/// +/// Render a search template as a search request body. /// /// public sealed partial class RenderSearchTemplateRequest : PlainRequest @@ -84,7 +87,10 @@ public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Id? id) : base( /// /// -/// Renders a search template as a search request body. +/// Render a search template. +/// +/// +/// Render a search template as a search request body. /// /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor, RenderSearchTemplateRequestParameters> @@ -177,7 +183,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Renders a search template as a search request body. +/// Render a search template. +/// +/// +/// Render a search template as a search request body. /// /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs index 1d1f64d6ab7..71eeba5ada6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs @@ -42,7 +42,24 @@ public sealed partial class ScrollRequestParameters : RequestParameters /// /// -/// Allows to retrieve a large numbers of results from a single search request. +/// Run a scrolling search. +/// +/// +/// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). +/// +/// +/// The scroll API gets large sets of results from a single scrolling search request. +/// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. +/// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. +/// The search response returns a scroll ID in the _scroll_id response body parameter. +/// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. +/// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. +/// +/// +/// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. +/// +/// +/// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// public sealed partial class ScrollRequest : PlainRequest @@ -82,7 +99,24 @@ public sealed partial class ScrollRequest : PlainRequest /// -/// Allows to retrieve a large numbers of results from a single search request. +/// Run a scrolling search. +/// +/// +/// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). +/// +/// +/// The scroll API gets large sets of results from a single scrolling search request. +/// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. +/// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. +/// The search response returns a scroll ID in the _scroll_id response body parameter. +/// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. +/// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. +/// +/// +/// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. +/// +/// +/// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// public sealed partial class ScrollRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs index 13bcb8d5841..e8dfe37f8c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs @@ -46,7 +46,7 @@ public sealed partial class GetSearchApplicationResponse : ElasticsearchResponse /// /// - /// Search Application name. + /// Search Application name /// /// [JsonInclude, JsonPropertyName("name")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs index 634f03fc463..c1945b4a695 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs @@ -31,5 +31,5 @@ public sealed partial class ListResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("count")] public long Count { get; init; } [JsonInclude, JsonPropertyName("results")] - public IReadOnlyCollection Results { get; init; } + public IReadOnlyCollection Results { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs index 30d3c434500..09736ffa1d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs @@ -67,7 +67,7 @@ public PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : ba [JsonIgnore] public bool? Create { get => Q("create"); set => Q("create", value); } [JsonIgnore] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication SearchApplication { get; set; } + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplication { get; set; } void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -83,7 +83,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op public sealed partial class PutSearchApplicationRequestDescriptor : RequestDescriptor { internal PutSearchApplicationRequestDescriptor(Action configure) => configure.Invoke(this); - public PutSearchApplicationRequestDescriptor(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) => SearchApplicationValue = searchApplication; + public PutSearchApplicationRequestDescriptor(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) => SearchApplicationValue = searchApplication; internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationPut; @@ -101,11 +101,11 @@ public PutSearchApplicationRequestDescriptor Name(Elastic.Clients.Elasticsearch. return Self; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication SearchApplicationValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationDescriptor SearchApplicationDescriptor { get; set; } - private Action SearchApplicationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplicationValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParametersDescriptor SearchApplicationDescriptor { get; set; } + private Action SearchApplicationDescriptorAction { get; set; } - public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication) + public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication) { SearchApplicationDescriptor = null; SearchApplicationDescriptorAction = null; @@ -113,7 +113,7 @@ public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.E return Self; } - public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationDescriptor descriptor) + public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParametersDescriptor descriptor) { SearchApplicationValue = null; SearchApplicationDescriptorAction = null; @@ -121,7 +121,7 @@ public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.E return Self; } - public PutSearchApplicationRequestDescriptor SearchApplication(Action configure) + public PutSearchApplicationRequestDescriptor SearchApplication(Action configure) { SearchApplicationValue = null; SearchApplicationDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs index 7e67b3cc67f..2863e257262 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs @@ -37,7 +37,9 @@ public sealed partial class SearchMvtRequestParameters : RequestParameters /// /// /// Search a vector tile. -/// Searches a vector tile for geospatial values. +/// +/// +/// Search a vector tile for geospatial values. /// /// public sealed partial class SearchMvtRequest : PlainRequest @@ -221,7 +223,9 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// /// Search a vector tile. -/// Searches a vector tile for geospatial values. +/// +/// +/// Search a vector tile for geospatial values. /// /// public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor, SearchMvtRequestParameters> @@ -672,7 +676,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Search a vector tile. -/// Searches a vector tile for geospatial values. +/// +/// +/// Search a vector tile for geospatial values. /// /// public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 31266e7e692..7c11901438f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -143,14 +143,6 @@ public sealed partial class SearchRequestParameters : RequestParameters /// public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - /// - /// - /// The minimum version of the node that can handle the request - /// Any handling node with a lower version will fail the request. - /// - /// - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } - /// /// /// Nodes and shards used for the search. @@ -715,7 +707,10 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria /// /// -/// Returns search hits that match the query defined in the request. +/// Run a search. +/// +/// +/// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -864,15 +859,6 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonIgnore] public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - /// - /// - /// The minimum version of the node that can handle the request - /// Any handling node with a lower version will fail the request. - /// - /// - [JsonIgnore] - public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } - /// /// /// Nodes and shards used for the search. @@ -1326,7 +1312,10 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// -/// Returns search hits that match the query defined in the request. +/// Run a search. +/// +/// +/// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -1365,7 +1354,6 @@ public SearchRequestDescriptor() public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); @@ -2594,7 +2582,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns search hits that match the query defined in the request. +/// Run a search. +/// +/// +/// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -2633,7 +2624,6 @@ public SearchRequestDescriptor() public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index 7bd1c72a260..9e3baa8588e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -83,7 +83,12 @@ public sealed partial class SearchShardsRequestParameters : RequestParameters /// /// -/// Returns information about the indices and shards that a search request would be executed against. +/// Get the search shards. +/// +/// +/// Get the indices and shards that a search request would be run against. +/// This information can be useful for working out issues or planning optimizations with routing and shard preferences. +/// When filtered aliases are used, the filter is returned as part of the indices section. /// /// public sealed partial class SearchShardsRequest : PlainRequest @@ -161,7 +166,12 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas /// /// -/// Returns information about the indices and shards that a search request would be executed against. +/// Get the search shards. +/// +/// +/// Get the indices and shards that a search request would be run against. +/// This information can be useful for working out issues or planning optimizations with routing and shard preferences. +/// When filtered aliases are used, the filter is returned as part of the indices section. /// /// public sealed partial class SearchShardsRequestDescriptor : RequestDescriptor, SearchShardsRequestParameters> @@ -204,7 +214,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns information about the indices and shards that a search request would be executed against. +/// Get the search shards. +/// +/// +/// Get the indices and shards that a search request would be run against. +/// This information can be useful for working out issues or planning optimizations with routing and shard preferences. +/// When filtered aliases are used, the filter is returned as part of the indices section. /// /// public sealed partial class SearchShardsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index 923f66d1ae8..79f27aa0434 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -119,7 +119,7 @@ public sealed partial class SearchTemplateRequestParameters : RequestParameters /// /// -/// Runs a search with a search template. +/// Run a search with a search template. /// /// public sealed partial class SearchTemplateRequest : PlainRequest @@ -283,7 +283,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// -/// Runs a search with a search template. +/// Run a search with a search template. /// /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor, SearchTemplateRequestParameters> @@ -429,7 +429,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Runs a search with a search template. +/// Run a search with a search template. /// /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs index cff16e81b4f..6efb0a6afae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ActivateUserProfileRequestParameters : RequestParame /// /// -/// Creates or updates a user profile on behalf of another user. +/// Activate a user profile. +/// +/// +/// Create or update a user profile on behalf of another user. /// /// public sealed partial class ActivateUserProfileRequest : PlainRequest @@ -61,7 +64,10 @@ public sealed partial class ActivateUserProfileRequest : PlainRequest /// -/// Creates or updates a user profile on behalf of another user. +/// Activate a user profile. +/// +/// +/// Create or update a user profile on behalf of another user. /// /// public sealed partial class ActivateUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs index ee6d297fcd6..e070e72ef85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class AuthenticateRequestParameters : RequestParameters /// /// /// Authenticate a user. +/// +/// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -57,6 +59,8 @@ public sealed partial class AuthenticateRequest : PlainRequest /// /// Authenticate a user. +/// +/// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs index c1b55603478..c078ddfd772 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs @@ -42,6 +42,9 @@ public sealed partial class BulkDeleteRoleRequestParameters : RequestParameters /// /// +/// Bulk delete roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -75,6 +78,9 @@ public sealed partial class BulkDeleteRoleRequest : PlainRequest /// +/// Bulk delete roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs index 120d3068d6a..15cd7c44396 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkPutRoleRequest.g.cs @@ -42,6 +42,9 @@ public sealed partial class BulkPutRoleRequestParameters : RequestParameters /// /// +/// Bulk create or update roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -75,6 +78,9 @@ public sealed partial class BulkPutRoleRequest : PlainRequest /// +/// Bulk create or update roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -121,6 +127,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// +/// Bulk create or update roles. +/// +/// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs index d25c22e0aae..4c483138389 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ChangePasswordRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class ChangePasswordRequestParameters : RequestParameters /// /// -/// Changes the passwords of users in the native realm and built-in users. +/// Change passwords. +/// +/// +/// Change the passwords of users in the native realm and built-in users. /// /// public sealed partial class ChangePasswordRequest : PlainRequest @@ -93,7 +96,10 @@ public ChangePasswordRequest(Elastic.Clients.Elasticsearch.Username? username) : /// /// -/// Changes the passwords of users in the native realm and built-in users. +/// Change passwords. +/// +/// +/// Change the passwords of users in the native realm and built-in users. /// /// public sealed partial class ChangePasswordRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs index a62551acf22..48b0f598878 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearApiKeyCacheRequestParameters : RequestParameter /// /// -/// Evicts a subset of all entries from the API key cache. +/// Clear the API key cache. +/// +/// +/// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// @@ -57,7 +60,10 @@ public ClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Ids ids) : base(r = /// /// -/// Evicts a subset of all entries from the API key cache. +/// Clear the API key cache. +/// +/// +/// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs index a9170d3c2fd..19bedb531d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs @@ -36,7 +36,11 @@ public sealed partial class ClearCachedPrivilegesRequestParameters : RequestPara /// /// -/// Evicts application privileges from the native application privileges cache. +/// Clear the privileges cache. +/// +/// +/// Evict privileges from the native application privilege cache. +/// The cache is also automatically cleared for applications that have their privileges updated. /// /// public sealed partial class ClearCachedPrivilegesRequest : PlainRequest @@ -56,7 +60,11 @@ public ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Name applicati /// /// -/// Evicts application privileges from the native application privileges cache. +/// Clear the privileges cache. +/// +/// +/// Evict privileges from the native application privilege cache. +/// The cache is also automatically cleared for applications that have their privileges updated. /// /// public sealed partial class ClearCachedPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs index 6873cadc5f8..0687c5d5d41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class ClearCachedRealmsRequestParameters : RequestParamete /// /// -/// Evicts users from the user cache. Can completely clear the cache or evict specific users. +/// Clear the user cache. +/// +/// +/// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// public sealed partial class ClearCachedRealmsRequest : PlainRequest @@ -70,7 +73,10 @@ public ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Names realms) : ba /// /// -/// Evicts users from the user cache. Can completely clear the cache or evict specific users. +/// Clear the user cache. +/// +/// +/// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// public sealed partial class ClearCachedRealmsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs index 60ef63b37b0..1b630f2adff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRolesRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearCachedRolesRequestParameters : RequestParameter /// /// -/// Evicts roles from the native role cache. +/// Clear the roles cache. +/// +/// +/// Evict roles from the native role cache. /// /// public sealed partial class ClearCachedRolesRequest : PlainRequest @@ -56,7 +59,10 @@ public ClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Names name) : base( /// /// -/// Evicts roles from the native role cache. +/// Clear the roles cache. +/// +/// +/// Evict roles from the native role cache. /// /// public sealed partial class ClearCachedRolesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs index 9988ce26447..a018b729fd4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ClearCachedServiceTokensRequestParameters : RequestP /// /// -/// Evicts tokens from the service account token caches. +/// Clear service account token caches. +/// +/// +/// Evict a subset of all entries from the service account token caches. /// /// public sealed partial class ClearCachedServiceTokensRequest : PlainRequest @@ -56,7 +59,10 @@ public ClearCachedServiceTokensRequest(string ns, string service, Elastic.Client /// /// -/// Evicts tokens from the service account token caches. +/// Clear service account token caches. +/// +/// +/// Evict a subset of all entries from the service account token caches. /// /// public sealed partial class ClearCachedServiceTokensRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs index b09feb4d128..cc79ddf4274 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs @@ -43,7 +43,9 @@ public sealed partial class CreateApiKeyRequestParameters : RequestParameters /// /// /// Create an API key. -/// Creates an API key for access without requiring basic authentication. +/// +/// +/// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -103,7 +105,9 @@ public sealed partial class CreateApiKeyRequest : PlainRequest /// /// Create an API key. -/// Creates an API key for access without requiring basic authentication. +/// +/// +/// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -210,7 +214,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Create an API key. -/// Creates an API key for access without requiring basic authentication. +/// +/// +/// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs new file mode 100644 index 00000000000..2ca3d9d6e10 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyRequest.g.cs @@ -0,0 +1,433 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class CreateCrossClusterApiKeyRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create a cross-cluster API key. +/// +/// +/// Create an API key of the cross_cluster type for the API key based remote cluster access. +/// A cross_cluster API key cannot be used to authenticate through the REST interface. +/// +/// +/// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. +/// +/// +/// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. +/// +/// +/// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. +/// +/// +/// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. +/// +/// +/// By default, API keys never expire. You can specify expiration information when you create the API keys. +/// +/// +/// Cross-cluster API keys can only be updated with the update cross-cluster API key API. +/// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. +/// +/// +public sealed partial class CreateCrossClusterApiKeyRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateCrossClusterApiKey; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.create_cross_cluster_api_key"; + + /// + /// + /// The access to be granted to this API key. + /// The access is composed of permissions for cross-cluster search and cross-cluster replication. + /// At least one of them must be specified. + /// + /// + /// NOTE: No explicit privileges should be specified for either search or replication access. + /// The creation process automatically converts the access specification to a role descriptor which has relevant privileges assigned accordingly. + /// + /// + [JsonInclude, JsonPropertyName("access")] + public Elastic.Clients.Elasticsearch.Security.Access Access { get; set; } + + /// + /// + /// Expiration time for the API key. + /// By default, API keys never expire. + /// + /// + [JsonInclude, JsonPropertyName("expiration")] + public Elastic.Clients.Elasticsearch.Duration? Expiration { get; set; } + + /// + /// + /// Arbitrary metadata that you want to associate with the API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + [JsonInclude, JsonPropertyName("metadata")] + public IDictionary? Metadata { get; set; } + + /// + /// + /// Specifies the name for this API key. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public Elastic.Clients.Elasticsearch.Name Name { get; set; } +} + +/// +/// +/// Create a cross-cluster API key. +/// +/// +/// Create an API key of the cross_cluster type for the API key based remote cluster access. +/// A cross_cluster API key cannot be used to authenticate through the REST interface. +/// +/// +/// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. +/// +/// +/// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. +/// +/// +/// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. +/// +/// +/// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. +/// +/// +/// By default, API keys never expire. You can specify expiration information when you create the API keys. +/// +/// +/// Cross-cluster API keys can only be updated with the update cross-cluster API key API. +/// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. +/// +/// +public sealed partial class CreateCrossClusterApiKeyRequestDescriptor : RequestDescriptor, CreateCrossClusterApiKeyRequestParameters> +{ + internal CreateCrossClusterApiKeyRequestDescriptor(Action> configure) => configure.Invoke(this); + + public CreateCrossClusterApiKeyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateCrossClusterApiKey; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.create_cross_cluster_api_key"; + + private Elastic.Clients.Elasticsearch.Security.Access AccessValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.AccessDescriptor AccessDescriptor { get; set; } + private Action> AccessDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } + private IDictionary? MetadataValue { get; set; } + private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } + + /// + /// + /// The access to be granted to this API key. + /// The access is composed of permissions for cross-cluster search and cross-cluster replication. + /// At least one of them must be specified. + /// + /// + /// NOTE: No explicit privileges should be specified for either search or replication access. + /// The creation process automatically converts the access specification to a role descriptor which has relevant privileges assigned accordingly. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.Access access) + { + AccessDescriptor = null; + AccessDescriptorAction = null; + AccessValue = access; + return Self; + } + + public CreateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.AccessDescriptor descriptor) + { + AccessValue = null; + AccessDescriptorAction = null; + AccessDescriptor = descriptor; + return Self; + } + + public CreateCrossClusterApiKeyRequestDescriptor Access(Action> configure) + { + AccessValue = null; + AccessDescriptor = null; + AccessDescriptorAction = configure; + return Self; + } + + /// + /// + /// Expiration time for the API key. + /// By default, API keys never expire. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) + { + ExpirationValue = expiration; + return Self; + } + + /// + /// + /// Arbitrary metadata that you want to associate with the API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) + { + MetadataValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// Specifies the name for this API key. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + NameValue = name; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AccessDescriptor is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessDescriptor, options); + } + else if (AccessDescriptorAction is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.AccessDescriptor(AccessDescriptorAction), options); + } + else + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessValue, options); + } + + if (ExpirationValue is not null) + { + writer.WritePropertyName("expiration"); + JsonSerializer.Serialize(writer, ExpirationValue, options); + } + + if (MetadataValue is not null) + { + writer.WritePropertyName("metadata"); + JsonSerializer.Serialize(writer, MetadataValue, options); + } + + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + writer.WriteEndObject(); + } +} + +/// +/// +/// Create a cross-cluster API key. +/// +/// +/// Create an API key of the cross_cluster type for the API key based remote cluster access. +/// A cross_cluster API key cannot be used to authenticate through the REST interface. +/// +/// +/// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. +/// +/// +/// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. +/// +/// +/// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. +/// +/// +/// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. +/// +/// +/// By default, API keys never expire. You can specify expiration information when you create the API keys. +/// +/// +/// Cross-cluster API keys can only be updated with the update cross-cluster API key API. +/// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. +/// +/// +public sealed partial class CreateCrossClusterApiKeyRequestDescriptor : RequestDescriptor +{ + internal CreateCrossClusterApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); + + public CreateCrossClusterApiKeyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateCrossClusterApiKey; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.create_cross_cluster_api_key"; + + private Elastic.Clients.Elasticsearch.Security.Access AccessValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.AccessDescriptor AccessDescriptor { get; set; } + private Action AccessDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } + private IDictionary? MetadataValue { get; set; } + private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } + + /// + /// + /// The access to be granted to this API key. + /// The access is composed of permissions for cross-cluster search and cross-cluster replication. + /// At least one of them must be specified. + /// + /// + /// NOTE: No explicit privileges should be specified for either search or replication access. + /// The creation process automatically converts the access specification to a role descriptor which has relevant privileges assigned accordingly. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.Access access) + { + AccessDescriptor = null; + AccessDescriptorAction = null; + AccessValue = access; + return Self; + } + + public CreateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.AccessDescriptor descriptor) + { + AccessValue = null; + AccessDescriptorAction = null; + AccessDescriptor = descriptor; + return Self; + } + + public CreateCrossClusterApiKeyRequestDescriptor Access(Action configure) + { + AccessValue = null; + AccessDescriptor = null; + AccessDescriptorAction = configure; + return Self; + } + + /// + /// + /// Expiration time for the API key. + /// By default, API keys never expire. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) + { + ExpirationValue = expiration; + return Self; + } + + /// + /// + /// Arbitrary metadata that you want to associate with the API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) + { + MetadataValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// Specifies the name for this API key. + /// + /// + public CreateCrossClusterApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + NameValue = name; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AccessDescriptor is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessDescriptor, options); + } + else if (AccessDescriptorAction is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.AccessDescriptor(AccessDescriptorAction), options); + } + else + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessValue, options); + } + + if (ExpirationValue is not null) + { + writer.WritePropertyName("expiration"); + JsonSerializer.Serialize(writer, ExpirationValue, options); + } + + if (MetadataValue is not null) + { + writer.WritePropertyName("metadata"); + JsonSerializer.Serialize(writer, MetadataValue, options); + } + + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs similarity index 65% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs index f660ec1cfd7..3dcac6531a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateCrossClusterApiKeyResponse.g.cs @@ -19,45 +19,54 @@ using Elastic.Clients.Elasticsearch.Fluent; using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; using System; using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.SearchApplication; +namespace Elastic.Clients.Elasticsearch.Security; -public sealed partial class SearchApplicationListItem +public sealed partial class CreateCrossClusterApiKeyResponse : ElasticsearchResponse { /// /// - /// Analytics collection associated to the Search Application + /// Generated API key. /// /// - [JsonInclude, JsonPropertyName("analytics_collection_name")] - public string? AnalyticsCollectionName { get; init; } + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; init; } /// /// - /// Indices that are part of the Search Application + /// API key credentials which is the base64-encoding of + /// the UTF-8 representation of id and api_key joined + /// by a colon (:). /// /// - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } + [JsonInclude, JsonPropertyName("encoded")] + public string Encoded { get; init; } /// /// - /// Search Application name + /// Expiration in milliseconds for the API key. /// /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } + [JsonInclude, JsonPropertyName("expiration")] + public long? Expiration { get; init; } /// /// - /// Last time the Search Application was updated + /// Unique ID for this API key. /// /// - [JsonInclude, JsonPropertyName("updated_at_millis")] - public long UpdatedAtMillis { get; init; } + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + + /// + /// + /// Specifies the name for this API key. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs index 82f0154e7e6..6b8dd3f4062 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class CreateServiceTokenRequestParameters : RequestParamet /// /// -/// Creates a service accounts token for access without requiring basic authentication. +/// Create a service account token. +/// +/// +/// Create a service accounts token for access without requiring basic authentication. /// /// public sealed partial class CreateServiceTokenRequest : PlainRequest @@ -74,7 +77,10 @@ public CreateServiceTokenRequest(string ns, string service) : base(r => r.Requir /// /// -/// Creates a service accounts token for access without requiring basic authentication. +/// Create a service account token. +/// +/// +/// Create a service accounts token for access without requiring basic authentication. /// /// public sealed partial class CreateServiceTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs index 55d79f9287e..320489f1431 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class DeletePrivilegesRequestParameters : RequestParameter /// /// -/// Removes application privileges. +/// Delete application privileges. /// /// public sealed partial class DeletePrivilegesRequest : PlainRequest @@ -70,7 +70,7 @@ public DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Name application, E /// /// -/// Removes application privileges. +/// Delete application privileges. /// /// public sealed partial class DeletePrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs index aafbd9fe708..2421e540477 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class DeleteRoleMappingRequestParameters : RequestParamete /// /// -/// Removes role mappings. +/// Delete role mappings. /// /// public sealed partial class DeleteRoleMappingRequest : PlainRequest @@ -70,7 +70,7 @@ public DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base( /// /// -/// Removes role mappings. +/// Delete role mappings. /// /// public sealed partial class DeleteRoleMappingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs index 2bf1ca5061a..fd976f508f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DeleteRoleRequestParameters : RequestParameters /// /// -/// Removes roles in the native realm. +/// Delete roles. +/// +/// +/// Delete roles in the native realm. /// /// public sealed partial class DeleteRoleRequest : PlainRequest @@ -70,7 +73,10 @@ public DeleteRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r. /// /// -/// Removes roles in the native realm. +/// Delete roles. +/// +/// +/// Delete roles in the native realm. /// /// public sealed partial class DeleteRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs index 6183ce96414..94441f708bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DeleteServiceTokenRequestParameters : RequestParamet /// /// -/// Deletes a service account token. +/// Delete service account tokens. +/// +/// +/// Delete service account tokens for a service in a specified namespace. /// /// public sealed partial class DeleteServiceTokenRequest : PlainRequest @@ -70,7 +73,10 @@ public DeleteServiceTokenRequest(string ns, string service, Elastic.Clients.Elas /// /// -/// Deletes a service account token. +/// Delete service account tokens. +/// +/// +/// Delete service account tokens for a service in a specified namespace. /// /// public sealed partial class DeleteServiceTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs index 6c01fdbe59e..90e38b47654 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DeleteUserRequestParameters : RequestParameters /// /// -/// Deletes users from the native realm. +/// Delete users. +/// +/// +/// Delete users from the native realm. /// /// public sealed partial class DeleteUserRequest : PlainRequest @@ -70,7 +73,10 @@ public DeleteUserRequest(Elastic.Clients.Elasticsearch.Username username) : base /// /// -/// Deletes users from the native realm. +/// Delete users. +/// +/// +/// Delete users from the native realm. /// /// public sealed partial class DeleteUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs index c0d51b98600..ee4991e79cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs @@ -44,7 +44,10 @@ public sealed partial class DisableUserProfileRequestParameters : RequestParamet /// /// -/// Disables a user profile so it's not visible in user profile searches. +/// Disable a user profile. +/// +/// +/// Disable user profiles so that they are not visible in user profile searches. /// /// public sealed partial class DisableUserProfileRequest : PlainRequest @@ -74,7 +77,10 @@ public DisableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// -/// Disables a user profile so it's not visible in user profile searches. +/// Disable a user profile. +/// +/// +/// Disable user profiles so that they are not visible in user profile searches. /// /// public sealed partial class DisableUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs index 1c98402cd49..e8f286a5a80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class DisableUserRequestParameters : RequestParameters /// /// -/// Disables users in the native realm. +/// Disable users. +/// +/// +/// Disable users in the native realm. /// /// public sealed partial class DisableUserRequest : PlainRequest @@ -70,7 +73,10 @@ public DisableUserRequest(Elastic.Clients.Elasticsearch.Username username) : bas /// /// -/// Disables users in the native realm. +/// Disable users. +/// +/// +/// Disable users in the native realm. /// /// public sealed partial class DisableUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs index 423075f3888..725a5665805 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs @@ -44,7 +44,10 @@ public sealed partial class EnableUserProfileRequestParameters : RequestParamete /// /// -/// Enables a user profile so it's visible in user profile searches. +/// Enable a user profile. +/// +/// +/// Enable user profiles to make them visible in user profile searches. /// /// public sealed partial class EnableUserProfileRequest : PlainRequest @@ -74,7 +77,10 @@ public EnableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// -/// Enables a user profile so it's visible in user profile searches. +/// Enable a user profile. +/// +/// +/// Enable user profiles to make them visible in user profile searches. /// /// public sealed partial class EnableUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs index 019ff052db9..4758880e9f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class EnableUserRequestParameters : RequestParameters /// /// -/// Enables users in the native realm. +/// Enable users. +/// +/// +/// Enable users in the native realm. /// /// public sealed partial class EnableUserRequest : PlainRequest @@ -70,7 +73,10 @@ public EnableUserRequest(Elastic.Clients.Elasticsearch.Username username) : base /// /// -/// Enables users in the native realm. +/// Enable users. +/// +/// +/// Enable users in the native realm. /// /// public sealed partial class EnableUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs index 83ced516fb8..51c0a32e140 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class EnrollKibanaRequestParameters : RequestParameters /// /// -/// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. +/// Enroll Kibana. +/// +/// +/// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// public sealed partial class EnrollKibanaRequest : PlainRequest @@ -52,7 +55,10 @@ public sealed partial class EnrollKibanaRequest : PlainRequest /// -/// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. +/// Enroll Kibana. +/// +/// +/// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// public sealed partial class EnrollKibanaRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs index 19c48694766..580b4bc0b0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class EnrollNodeRequestParameters : RequestParameters /// /// -/// Allows a new node to join an existing cluster with security features enabled. +/// Enroll a node. +/// +/// +/// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// public sealed partial class EnrollNodeRequest : PlainRequest @@ -52,7 +55,10 @@ public sealed partial class EnrollNodeRequest : PlainRequest /// -/// Allows a new node to join an existing cluster with security features enabled. +/// Enroll a node. +/// +/// +/// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// public sealed partial class EnrollNodeRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs index 996c419b3fe..57ce8199ac0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetApiKeyRequest.g.cs @@ -101,6 +101,8 @@ public sealed partial class GetApiKeyRequestParameters : RequestParameters /// /// /// Get API key information. +/// +/// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -193,6 +195,8 @@ public sealed partial class GetApiKeyRequest : PlainRequest /// /// Get API key information. +/// +/// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs index 86da44c5865..218da5b567b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetBuiltinPrivilegesRequestParameters : RequestParam /// /// -/// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. +/// Get builtin privileges. +/// +/// +/// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// public sealed partial class GetBuiltinPrivilegesRequest : PlainRequest @@ -52,7 +55,10 @@ public sealed partial class GetBuiltinPrivilegesRequest : PlainRequest /// -/// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. +/// Get builtin privileges. +/// +/// +/// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// public sealed partial class GetBuiltinPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index 0f19d1b9a0e..2410a2d7776 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -29,7 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } + public IReadOnlyCollection Cluster { get; init; } [JsonInclude, JsonPropertyName("index")] public IReadOnlyCollection Index { get; init; } + [JsonInclude, JsonPropertyName("remote_cluster")] + public IReadOnlyCollection RemoteCluster { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs index e9b962cc0ff..54604deb0ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetPrivilegesRequestParameters : RequestParameters /// /// -/// Retrieves application privileges. +/// Get application privileges. /// /// public sealed partial class GetPrivilegesRequest : PlainRequest @@ -64,7 +64,7 @@ public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? application, Ela /// /// -/// Retrieves application privileges. +/// Get application privileges. /// /// public sealed partial class GetPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs index 3eb5c006fc7..8a4c6a97c43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleMappingRequest.g.cs @@ -36,7 +36,12 @@ public sealed partial class GetRoleMappingRequestParameters : RequestParameters /// /// -/// Retrieves role mappings. +/// Get role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. +/// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// public sealed partial class GetRoleMappingRequest : PlainRequest @@ -60,7 +65,12 @@ public GetRoleMappingRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r /// /// -/// Retrieves role mappings. +/// Get role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. +/// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// public sealed partial class GetRoleMappingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs index 277814202e1..9269177ee80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs @@ -36,8 +36,10 @@ public sealed partial class GetRoleRequestParameters : RequestParameters /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The get roles API cannot retrieve roles that are defined in roles files. +/// Get roles. +/// +/// +/// Get roles in the native realm. /// /// public sealed partial class GetRoleRequest : PlainRequest @@ -61,8 +63,10 @@ public GetRoleRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.O /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The get roles API cannot retrieve roles that are defined in roles files. +/// Get roles. +/// +/// +/// Get roles in the native realm. /// /// public sealed partial class GetRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs index 157e7bb90ee..921b203f237 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetServiceAccountsRequestParameters : RequestParamet /// /// -/// This API returns a list of service accounts that match the provided path parameter(s). +/// Get service accounts. +/// +/// +/// Get a list of service accounts that match the provided path parameters. /// /// public sealed partial class GetServiceAccountsRequest : PlainRequest @@ -64,7 +67,10 @@ public GetServiceAccountsRequest(string? ns) : base(r => r.Optional("namespace", /// /// -/// This API returns a list of service accounts that match the provided path parameter(s). +/// Get service accounts. +/// +/// +/// Get a list of service accounts that match the provided path parameters. /// /// public sealed partial class GetServiceAccountsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs index bf51be2829d..a1a5d627f24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetServiceCredentialsRequestParameters : RequestPara /// /// -/// Retrieves information of all service credentials for a service account. +/// Get service account credentials. /// /// public sealed partial class GetServiceCredentialsRequest : PlainRequest @@ -56,7 +56,7 @@ public GetServiceCredentialsRequest(string ns, Elastic.Clients.Elasticsearch.Nam /// /// -/// Retrieves information of all service credentials for a service account. +/// Get service account credentials. /// /// public sealed partial class GetServiceCredentialsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs index d3ade1b87c5..ee7fd7ce384 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class GetTokenRequestParameters : RequestParameters /// /// -/// Creates a bearer token for access without requiring basic authentication. +/// Get a token. +/// +/// +/// Create a bearer token for access without requiring basic authentication. /// /// public sealed partial class GetTokenRequest : PlainRequest @@ -65,7 +68,10 @@ public sealed partial class GetTokenRequest : PlainRequest /// -/// Creates a bearer token for access without requiring basic authentication. +/// Get a token. +/// +/// +/// Create a bearer token for access without requiring basic authentication. /// /// public sealed partial class GetTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs index 903249037d0..52d790b0458 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs @@ -50,7 +50,7 @@ public sealed partial class GetUserPrivilegesRequestParameters : RequestParamete /// /// -/// Retrieves security privileges for the logged in user. +/// Get user privileges. /// /// public sealed partial class GetUserPrivilegesRequest : PlainRequest @@ -84,7 +84,7 @@ public sealed partial class GetUserPrivilegesRequest : PlainRequest /// -/// Retrieves security privileges for the logged in user. +/// Get user privileges. /// /// public sealed partial class GetUserPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs index aa80263756d..fa92cf1108f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs @@ -45,7 +45,10 @@ public sealed partial class GetUserProfileRequestParameters : RequestParameters /// /// -/// Retrieves a user's profile using the unique profile ID. +/// Get a user profile. +/// +/// +/// Get a user's profile using the unique profile ID. /// /// public sealed partial class GetUserProfileRequest : PlainRequest @@ -76,7 +79,10 @@ public GetUserProfileRequest(IReadOnlyCollection uid) : base(r => r.Requ /// /// -/// Retrieves a user's profile using the unique profile ID. +/// Get a user profile. +/// +/// +/// Get a user's profile using the unique profile ID. /// /// public sealed partial class GetUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs index 734533078e9..9c77e91e3f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs @@ -42,7 +42,10 @@ public sealed partial class GetUserRequestParameters : RequestParameters /// /// -/// Retrieves information about users in the native realm and built-in users. +/// Get users. +/// +/// +/// Get information about users in the native realm and built-in users. /// /// public sealed partial class GetUserRequest : PlainRequest @@ -74,7 +77,10 @@ public GetUserRequest(IReadOnlyCollection /// -/// Retrieves information about users in the native realm and built-in users. +/// Get users. +/// +/// +/// Get information about users in the native realm and built-in users. /// /// public sealed partial class GetUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs index 5f0efc84624..c09da87befc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs @@ -36,8 +36,11 @@ public sealed partial class GrantApiKeyRequestParameters : RequestParameters /// /// -/// Creates an API key on behalf of another user. -/// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. +/// Grant an API key. +/// +/// +/// Create an API key on behalf of another user. +/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -120,8 +123,11 @@ public sealed partial class GrantApiKeyRequest : PlainRequest /// -/// Creates an API key on behalf of another user. -/// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. +/// Grant an API key. +/// +/// +/// Create an API key on behalf of another user. +/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -303,8 +309,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Creates an API key on behalf of another user. -/// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. +/// Grant an API key. +/// +/// +/// Create an API key on behalf of another user. +/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs index 3ac8a626a3d..623c868da87 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs @@ -37,7 +37,9 @@ public sealed partial class HasPrivilegesRequestParameters : RequestParameters /// /// /// Check user privileges. -/// Determines whether the specified user has a specified list of privileges. +/// +/// +/// Determine whether the specified user has a specified list of privileges. /// /// public sealed partial class HasPrivilegesRequest : PlainRequest @@ -75,7 +77,9 @@ public HasPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? user) : base(r = /// /// /// Check user privileges. -/// Determines whether the specified user has a specified list of privileges. +/// +/// +/// Determine whether the specified user has a specified list of privileges. /// /// public sealed partial class HasPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs index 15dd0268db1..81f80132120 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class HasPrivilegesUserProfileRequestParameters : RequestP /// /// -/// Determines whether the users associated with the specified profile IDs have all the requested privileges. +/// Check user profile privileges. +/// +/// +/// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest @@ -63,7 +66,10 @@ public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest /// -/// Determines whether the users associated with the specified profile IDs have all the requested privileges. +/// Check user profile privileges. +/// +/// +/// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// public sealed partial class HasPrivilegesUserProfileRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs index 02dbbe38899..d648b5974ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs @@ -37,7 +37,10 @@ public sealed partial class InvalidateApiKeyRequestParameters : RequestParameter /// /// /// Invalidate API keys. -/// Invalidates one or more API keys. +/// +/// +/// This API invalidates API keys created by the create API key or grant API key APIs. +/// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -55,7 +58,7 @@ public sealed partial class InvalidateApiKeyRequestParameters : RequestParameter /// /// /// -/// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. +/// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -122,7 +125,10 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// /// Invalidate API keys. -/// Invalidates one or more API keys. +/// +/// +/// This API invalidates API keys created by the create API key or grant API key APIs. +/// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -140,7 +146,7 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// /// -/// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. +/// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs index 6c7c79d4e4e..4386ef53852 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs @@ -36,7 +36,16 @@ public sealed partial class InvalidateTokenRequestParameters : RequestParameters /// /// -/// Invalidates one or more access tokens or refresh tokens. +/// Invalidate a token. +/// +/// +/// The access tokens returned by the get token API have a finite period of time for which they are valid. +/// After that time period, they can no longer be used. +/// The time period is defined by the xpack.security.authc.token.timeout setting. +/// +/// +/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. +/// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// public sealed partial class InvalidateTokenRequest : PlainRequest @@ -61,7 +70,16 @@ public sealed partial class InvalidateTokenRequest : PlainRequest /// -/// Invalidates one or more access tokens or refresh tokens. +/// Invalidate a token. +/// +/// +/// The access tokens returned by the get token API have a finite period of time for which they are valid. +/// After that time period, they can no longer be used. +/// The time period is defined by the xpack.security.authc.token.timeout setting. +/// +/// +/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. +/// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// public sealed partial class InvalidateTokenRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs index 61b7a74d58b..9ba02c01239 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs @@ -44,7 +44,7 @@ public sealed partial class PutPrivilegesRequestParameters : RequestParameters /// /// -/// Adds or updates application privileges. +/// Create or update application privileges. /// /// public sealed partial class PutPrivilegesRequest : PlainRequest, ISelfSerializable @@ -74,7 +74,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Adds or updates application privileges. +/// Create or update application privileges. /// /// public sealed partial class PutPrivilegesRequestDescriptor : RequestDescriptor, ISelfSerializable diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs index 748f72aa996..e0713523d9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs @@ -42,7 +42,16 @@ public sealed partial class PutRoleMappingRequestParameters : RequestParameters /// /// -/// Creates and updates role mappings. +/// Create or update role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// Each mapping has rules that identify users and a list of roles that are granted to those users. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. +/// +/// +/// This API does not create roles. Rather, it maps users to existing roles. +/// Roles can be created by using the create or update roles API or roles files. /// /// public sealed partial class PutRoleMappingRequest : PlainRequest @@ -82,7 +91,16 @@ public PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base(r = /// /// -/// Creates and updates role mappings. +/// Create or update role mappings. +/// +/// +/// Role mappings define which roles are assigned to each user. +/// Each mapping has rules that identify users and a list of roles that are granted to those users. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. +/// +/// +/// This API does not create roles. Rather, it maps users to existing roles. +/// Roles can be created by using the create or update roles API or roles files. /// /// public sealed partial class PutRoleMappingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs index 6f508ca957e..300912ec21c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs @@ -42,8 +42,12 @@ public sealed partial class PutRoleRequestParameters : RequestParameters /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// Create or update roles. +/// +/// +/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. +/// File-based role management is not available in Elastic Serverless. /// /// public sealed partial class PutRoleRequest : PlainRequest @@ -116,6 +120,14 @@ public PutRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Req [JsonInclude, JsonPropertyName("metadata")] public IDictionary? Metadata { get; set; } + /// + /// + /// A list of remote cluster permissions entries. + /// + /// + [JsonInclude, JsonPropertyName("remote_cluster")] + public ICollection? RemoteCluster { get; set; } + /// /// /// A list of remote indices permissions entries. @@ -143,8 +155,12 @@ public PutRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Req /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// Create or update roles. +/// +/// +/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. +/// File-based role management is not available in Elastic Serverless. /// /// public sealed partial class PutRoleRequestDescriptor : RequestDescriptor, PutRoleRequestParameters> @@ -183,6 +199,10 @@ public PutRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Na private Action> IndicesDescriptorAction { get; set; } private Action>[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private ICollection? RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor RemoteClusterDescriptor { get; set; } + private Action RemoteClusterDescriptorAction { get; set; } + private Action[] RemoteClusterDescriptorActions { get; set; } private ICollection? RemoteIndicesValue { get; set; } private Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor RemoteIndicesDescriptor { get; set; } private Action> RemoteIndicesDescriptorAction { get; set; } @@ -316,6 +336,47 @@ public PutRoleRequestDescriptor Metadata(Func + /// + /// A list of remote cluster permissions entries. + /// + /// + public PutRoleRequestDescriptor RemoteCluster(ICollection? remoteCluster) + { + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterValue = remoteCluster; + return Self; + } + + public PutRoleRequestDescriptor RemoteCluster(Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor descriptor) + { + RemoteClusterValue = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptor = descriptor; + return Self; + } + + public PutRoleRequestDescriptor RemoteCluster(Action configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptorAction = configure; + return Self; + } + + public PutRoleRequestDescriptor RemoteCluster(params Action[] configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = configure; + return Self; + } + /// /// /// A list of remote indices permissions entries. @@ -468,6 +529,37 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RemoteClusterDescriptor is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteClusterDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorAction is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(RemoteClusterDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorActions is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + foreach (var action in RemoteClusterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteClusterValue is not null) + { + writer.WritePropertyName("remote_cluster"); + JsonSerializer.Serialize(writer, RemoteClusterValue, options); + } + if (RemoteIndicesDescriptor is not null) { writer.WritePropertyName("remote_indices"); @@ -517,8 +609,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// Create or update roles. +/// +/// +/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. +/// File-based role management is not available in Elastic Serverless. /// /// public sealed partial class PutRoleRequestDescriptor : RequestDescriptor @@ -557,6 +653,10 @@ public PutRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) private Action IndicesDescriptorAction { get; set; } private Action[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private ICollection? RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor RemoteClusterDescriptor { get; set; } + private Action RemoteClusterDescriptorAction { get; set; } + private Action[] RemoteClusterDescriptorActions { get; set; } private ICollection? RemoteIndicesValue { get; set; } private Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor RemoteIndicesDescriptor { get; set; } private Action RemoteIndicesDescriptorAction { get; set; } @@ -690,6 +790,47 @@ public PutRoleRequestDescriptor Metadata(Func, return Self; } + /// + /// + /// A list of remote cluster permissions entries. + /// + /// + public PutRoleRequestDescriptor RemoteCluster(ICollection? remoteCluster) + { + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterValue = remoteCluster; + return Self; + } + + public PutRoleRequestDescriptor RemoteCluster(Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor descriptor) + { + RemoteClusterValue = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptor = descriptor; + return Self; + } + + public PutRoleRequestDescriptor RemoteCluster(Action configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptorAction = configure; + return Self; + } + + public PutRoleRequestDescriptor RemoteCluster(params Action[] configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = configure; + return Self; + } + /// /// /// A list of remote indices permissions entries. @@ -842,6 +983,37 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RemoteClusterDescriptor is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteClusterDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorAction is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(RemoteClusterDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorActions is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + foreach (var action in RemoteClusterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteClusterValue is not null) + { + writer.WritePropertyName("remote_cluster"); + JsonSerializer.Serialize(writer, RemoteClusterValue, options); + } + if (RemoteIndicesDescriptor is not null) { writer.WritePropertyName("remote_indices"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs index 9f9434d6e73..be4076b0394 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class PutUserRequestParameters : RequestParameters /// /// -/// Adds and updates users in the native realm. These users are commonly referred to as native users. +/// Create or update users. +/// +/// +/// A password is required for adding a new user but is optional when updating an existing user. +/// To change a user’s password without updating any other fields, use the change password API. /// /// public sealed partial class PutUserRequest : PlainRequest @@ -86,7 +90,11 @@ public PutUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r /// /// -/// Adds and updates users in the native realm. These users are commonly referred to as native users. +/// Create or update users. +/// +/// +/// A password is required for adding a new user but is optional when updating an existing user. +/// To change a user’s password without updating any other fields, use the change password API. /// /// public sealed partial class PutUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs index f58fc473b5c..fdd42b6136d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs @@ -153,8 +153,10 @@ public override void Write(Utf8JsonWriter writer, QueryApiKeysRequest value, Jso /// /// -/// Query API keys. -/// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Find API keys with a query. +/// +/// +/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// [JsonConverter(typeof(QueryApiKeysRequestConverter))] @@ -263,8 +265,10 @@ public QueryApiKeysRequest() /// /// -/// Query API keys. -/// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Find API keys with a query. +/// +/// +/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor, QueryApiKeysRequestParameters> @@ -505,8 +509,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Query API keys. -/// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Find API keys with a query. +/// +/// +/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs index 08bee4543e0..e55732256d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class QueryRoleRequestParameters : RequestParameters /// /// -/// Retrieves roles in a paginated manner. You can optionally filter the results with a query. +/// Find roles with a query. +/// +/// +/// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// public sealed partial class QueryRoleRequest : PlainRequest @@ -103,7 +106,10 @@ public sealed partial class QueryRoleRequest : PlainRequest /// -/// Retrieves roles in a paginated manner. You can optionally filter the results with a query. +/// Find roles with a query. +/// +/// +/// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor, QueryRoleRequestParameters> @@ -318,7 +324,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves roles in a paginated manner. You can optionally filter the results with a query. +/// Find roles with a query. +/// +/// +/// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs index e29f3618f4d..c5d98d22452 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class QueryUserRequestParameters : RequestParameters /// /// -/// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. +/// Find users with a query. +/// +/// +/// Get information for users in a paginated manner. +/// You can optionally filter the results with a query. /// /// public sealed partial class QueryUserRequest : PlainRequest @@ -116,7 +120,11 @@ public sealed partial class QueryUserRequest : PlainRequest /// -/// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. +/// Find users with a query. +/// +/// +/// Get information for users in a paginated manner. +/// You can optionally filter the results with a query. /// /// public sealed partial class QueryUserRequestDescriptor : RequestDescriptor, QueryUserRequestParameters> @@ -332,7 +340,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. +/// Find users with a query. +/// +/// +/// Get information for users in a paginated manner. +/// You can optionally filter the results with a query. /// /// public sealed partial class QueryUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs index 5de9a26fc68..478b941c9d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class SamlAuthenticateRequestParameters : RequestParameter /// /// -/// Submits a SAML Response message to Elasticsearch for consumption. +/// Authenticate SAML. +/// +/// +/// Submits a SAML response message to Elasticsearch for consumption. /// /// public sealed partial class SamlAuthenticateRequest : PlainRequest @@ -76,7 +79,10 @@ public sealed partial class SamlAuthenticateRequest : PlainRequest /// -/// Submits a SAML Response message to Elasticsearch for consumption. +/// Authenticate SAML. +/// +/// +/// Submits a SAML response message to Elasticsearch for consumption. /// /// public sealed partial class SamlAuthenticateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs index 3fec565f907..9224bf81328 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlCompleteLogoutRequestParameters : RequestParamet /// /// +/// Logout of SAML completely. +/// +/// /// Verifies the logout response sent from the SAML IdP. /// /// @@ -84,6 +87,9 @@ public sealed partial class SamlCompleteLogoutRequest : PlainRequest /// +/// Logout of SAML completely. +/// +/// /// Verifies the logout response sent from the SAML IdP. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs index c4f8d7f7257..987ee8fde44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlInvalidateRequestParameters : RequestParameters /// /// +/// Invalidate SAML. +/// +/// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// @@ -80,6 +83,9 @@ public sealed partial class SamlInvalidateRequest : PlainRequest /// +/// Invalidate SAML. +/// +/// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs index 319b2e2d920..ffa0b19985c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlLogoutRequestParameters : RequestParameters /// /// +/// Logout of SAML. +/// +/// /// Submits a request to invalidate an access token and refresh token. /// /// @@ -70,6 +73,9 @@ public sealed partial class SamlLogoutRequest : PlainRequest /// +/// Logout of SAML. +/// +/// /// Submits a request to invalidate an access token and refresh token. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs index c82dce9acf2..9afa7d595d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class SamlPrepareAuthenticationRequestParameters : Request /// /// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. +/// Prepare SAML authentication. +/// +/// +/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest @@ -79,7 +82,10 @@ public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest /// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. +/// Prepare SAML authentication. +/// +/// +/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// public sealed partial class SamlPrepareAuthenticationRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs index 50a7c5682ea..009395c49bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SamlServiceProviderMetadataRequestParameters : Reque /// /// +/// Create SAML service provider metadata. +/// +/// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// @@ -56,6 +59,9 @@ public SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Name rea /// /// +/// Create SAML service provider metadata. +/// +/// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs index 7e54558792e..c6596d47ecb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs @@ -36,6 +36,9 @@ public sealed partial class SuggestUserProfilesRequestParameters : RequestParame /// /// +/// Suggest a user profile. +/// +/// /// Get suggestions for user profiles that match specified search criteria. /// /// @@ -92,6 +95,9 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// +/// Suggest a user profile. +/// +/// /// Get suggestions for user profiles that match specified search criteria. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs index 488cea1b6d7..15a488a199c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class UpdateApiKeyRequestParameters : RequestParameters /// /// /// Update an API key. +/// +/// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -94,6 +96,8 @@ public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// /// Update an API key. +/// +/// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -196,6 +200,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Update an API key. +/// +/// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs new file mode 100644 index 00000000000..c93f01a473e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs @@ -0,0 +1,347 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class UpdateCrossClusterApiKeyRequestParameters : RequestParameters +{ +} + +/// +/// +/// Update a cross-cluster API key. +/// +/// +/// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. +/// +/// +public sealed partial class UpdateCrossClusterApiKeyRequest : PlainRequest +{ + public UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateCrossClusterApiKey; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.update_cross_cluster_api_key"; + + /// + /// + /// The access to be granted to this API key. + /// The access is composed of permissions for cross cluster search and cross cluster replication. + /// At least one of them must be specified. + /// When specified, the new access assignment fully replaces the previously assigned access. + /// + /// + [JsonInclude, JsonPropertyName("access")] + public Elastic.Clients.Elasticsearch.Security.Access Access { get; set; } + + /// + /// + /// Expiration time for the API key. + /// By default, API keys never expire. This property can be omitted to leave the value unchanged. + /// + /// + [JsonInclude, JsonPropertyName("expiration")] + public Elastic.Clients.Elasticsearch.Duration? Expiration { get; set; } + + /// + /// + /// Arbitrary metadata that you want to associate with the API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// When specified, this information fully replaces metadata previously associated with the API key. + /// + /// + [JsonInclude, JsonPropertyName("metadata")] + public IDictionary? Metadata { get; set; } +} + +/// +/// +/// Update a cross-cluster API key. +/// +/// +/// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. +/// +/// +public sealed partial class UpdateCrossClusterApiKeyRequestDescriptor : RequestDescriptor, UpdateCrossClusterApiKeyRequestParameters> +{ + internal UpdateCrossClusterApiKeyRequestDescriptor(Action> configure) => configure.Invoke(this); + + public UpdateCrossClusterApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateCrossClusterApiKey; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.update_cross_cluster_api_key"; + + public UpdateCrossClusterApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + private Elastic.Clients.Elasticsearch.Security.Access AccessValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.AccessDescriptor AccessDescriptor { get; set; } + private Action> AccessDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } + private IDictionary? MetadataValue { get; set; } + + /// + /// + /// The access to be granted to this API key. + /// The access is composed of permissions for cross cluster search and cross cluster replication. + /// At least one of them must be specified. + /// When specified, the new access assignment fully replaces the previously assigned access. + /// + /// + public UpdateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.Access access) + { + AccessDescriptor = null; + AccessDescriptorAction = null; + AccessValue = access; + return Self; + } + + public UpdateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.AccessDescriptor descriptor) + { + AccessValue = null; + AccessDescriptorAction = null; + AccessDescriptor = descriptor; + return Self; + } + + public UpdateCrossClusterApiKeyRequestDescriptor Access(Action> configure) + { + AccessValue = null; + AccessDescriptor = null; + AccessDescriptorAction = configure; + return Self; + } + + /// + /// + /// Expiration time for the API key. + /// By default, API keys never expire. This property can be omitted to leave the value unchanged. + /// + /// + public UpdateCrossClusterApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) + { + ExpirationValue = expiration; + return Self; + } + + /// + /// + /// Arbitrary metadata that you want to associate with the API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// When specified, this information fully replaces metadata previously associated with the API key. + /// + /// + public UpdateCrossClusterApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) + { + MetadataValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AccessDescriptor is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessDescriptor, options); + } + else if (AccessDescriptorAction is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.AccessDescriptor(AccessDescriptorAction), options); + } + else + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessValue, options); + } + + if (ExpirationValue is not null) + { + writer.WritePropertyName("expiration"); + JsonSerializer.Serialize(writer, ExpirationValue, options); + } + + if (MetadataValue is not null) + { + writer.WritePropertyName("metadata"); + JsonSerializer.Serialize(writer, MetadataValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// +/// Update a cross-cluster API key. +/// +/// +/// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. +/// +/// +public sealed partial class UpdateCrossClusterApiKeyRequestDescriptor : RequestDescriptor +{ + internal UpdateCrossClusterApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); + + public UpdateCrossClusterApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateCrossClusterApiKey; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.update_cross_cluster_api_key"; + + public UpdateCrossClusterApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + private Elastic.Clients.Elasticsearch.Security.Access AccessValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.AccessDescriptor AccessDescriptor { get; set; } + private Action AccessDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } + private IDictionary? MetadataValue { get; set; } + + /// + /// + /// The access to be granted to this API key. + /// The access is composed of permissions for cross cluster search and cross cluster replication. + /// At least one of them must be specified. + /// When specified, the new access assignment fully replaces the previously assigned access. + /// + /// + public UpdateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.Access access) + { + AccessDescriptor = null; + AccessDescriptorAction = null; + AccessValue = access; + return Self; + } + + public UpdateCrossClusterApiKeyRequestDescriptor Access(Elastic.Clients.Elasticsearch.Security.AccessDescriptor descriptor) + { + AccessValue = null; + AccessDescriptorAction = null; + AccessDescriptor = descriptor; + return Self; + } + + public UpdateCrossClusterApiKeyRequestDescriptor Access(Action configure) + { + AccessValue = null; + AccessDescriptor = null; + AccessDescriptorAction = configure; + return Self; + } + + /// + /// + /// Expiration time for the API key. + /// By default, API keys never expire. This property can be omitted to leave the value unchanged. + /// + /// + public UpdateCrossClusterApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) + { + ExpirationValue = expiration; + return Self; + } + + /// + /// + /// Arbitrary metadata that you want to associate with the API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// When specified, this information fully replaces metadata previously associated with the API key. + /// + /// + public UpdateCrossClusterApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) + { + MetadataValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AccessDescriptor is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessDescriptor, options); + } + else if (AccessDescriptorAction is not null) + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.AccessDescriptor(AccessDescriptorAction), options); + } + else + { + writer.WritePropertyName("access"); + JsonSerializer.Serialize(writer, AccessValue, options); + } + + if (ExpirationValue is not null) + { + writer.WritePropertyName("expiration"); + JsonSerializer.Serialize(writer, ExpirationValue, options); + } + + if (MetadataValue is not null) + { + writer.WritePropertyName("metadata"); + JsonSerializer.Serialize(writer, MetadataValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs new file mode 100644 index 00000000000..d884f62166e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyResponse.g.cs @@ -0,0 +1,39 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class UpdateCrossClusterApiKeyResponse : ElasticsearchResponse +{ + /// + /// + /// If true, the API key was updated. + /// If false, the API key didn’t change because no change was detected. + /// + /// + [JsonInclude, JsonPropertyName("updated")] + public bool Updated { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs index 1427c4ba1bb..98048ccd890 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs @@ -58,7 +58,10 @@ public sealed partial class UpdateUserProfileDataRequestParameters : RequestPara /// /// -/// Updates specific data for the user profile that's associated with the specified unique ID. +/// Update user profile data. +/// +/// +/// Update specific data for the user profile that is associated with a unique ID. /// /// public sealed partial class UpdateUserProfileDataRequest : PlainRequest @@ -122,7 +125,10 @@ public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", ui /// /// -/// Updates specific data for the user profile that's associated with the specified unique ID. +/// Update user profile data. +/// +/// +/// Update specific data for the user profile that is associated with a unique ID. /// /// public sealed partial class UpdateUserProfileDataRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs new file mode 100644 index 00000000000..cd7e8c26dd3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs @@ -0,0 +1,215 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class RepositoryVerifyIntegrityRequestParameters : RequestParameters +{ + /// + /// + /// Number of threads to use for reading blob contents + /// + /// + public int? BlobThreadPoolConcurrency { get => Q("blob_thread_pool_concurrency"); set => Q("blob_thread_pool_concurrency", value); } + + /// + /// + /// Number of snapshots to verify concurrently within each index + /// + /// + public int? IndexSnapshotVerificationConcurrency { get => Q("index_snapshot_verification_concurrency"); set => Q("index_snapshot_verification_concurrency", value); } + + /// + /// + /// Number of indices to verify concurrently + /// + /// + public int? IndexVerificationConcurrency { get => Q("index_verification_concurrency"); set => Q("index_verification_concurrency", value); } + + /// + /// + /// Rate limit for individual blob verification + /// + /// + public string? MaxBytesPerSec { get => Q("max_bytes_per_sec"); set => Q("max_bytes_per_sec", value); } + + /// + /// + /// Maximum permitted number of failed shard snapshots + /// + /// + public int? MaxFailedShardSnapshots { get => Q("max_failed_shard_snapshots"); set => Q("max_failed_shard_snapshots", value); } + + /// + /// + /// Number of threads to use for reading metadata + /// + /// + public int? MetaThreadPoolConcurrency { get => Q("meta_thread_pool_concurrency"); set => Q("meta_thread_pool_concurrency", value); } + + /// + /// + /// Number of snapshots to verify concurrently + /// + /// + public int? SnapshotVerificationConcurrency { get => Q("snapshot_verification_concurrency"); set => Q("snapshot_verification_concurrency", value); } + + /// + /// + /// Whether to verify the contents of individual blobs + /// + /// + public bool? VerifyBlobContents { get => Q("verify_blob_contents"); set => Q("verify_blob_contents", value); } +} + +/// +/// +/// Verifies the integrity of the contents of a snapshot repository +/// +/// +public sealed partial class RepositoryVerifyIntegrityRequest : PlainRequest +{ + public RepositoryVerifyIntegrityRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("repository", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRepositoryVerifyIntegrity; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "snapshot.repository_verify_integrity"; + + /// + /// + /// Number of threads to use for reading blob contents + /// + /// + [JsonIgnore] + public int? BlobThreadPoolConcurrency { get => Q("blob_thread_pool_concurrency"); set => Q("blob_thread_pool_concurrency", value); } + + /// + /// + /// Number of snapshots to verify concurrently within each index + /// + /// + [JsonIgnore] + public int? IndexSnapshotVerificationConcurrency { get => Q("index_snapshot_verification_concurrency"); set => Q("index_snapshot_verification_concurrency", value); } + + /// + /// + /// Number of indices to verify concurrently + /// + /// + [JsonIgnore] + public int? IndexVerificationConcurrency { get => Q("index_verification_concurrency"); set => Q("index_verification_concurrency", value); } + + /// + /// + /// Rate limit for individual blob verification + /// + /// + [JsonIgnore] + public string? MaxBytesPerSec { get => Q("max_bytes_per_sec"); set => Q("max_bytes_per_sec", value); } + + /// + /// + /// Maximum permitted number of failed shard snapshots + /// + /// + [JsonIgnore] + public int? MaxFailedShardSnapshots { get => Q("max_failed_shard_snapshots"); set => Q("max_failed_shard_snapshots", value); } + + /// + /// + /// Number of threads to use for reading metadata + /// + /// + [JsonIgnore] + public int? MetaThreadPoolConcurrency { get => Q("meta_thread_pool_concurrency"); set => Q("meta_thread_pool_concurrency", value); } + + /// + /// + /// Number of snapshots to verify concurrently + /// + /// + [JsonIgnore] + public int? SnapshotVerificationConcurrency { get => Q("snapshot_verification_concurrency"); set => Q("snapshot_verification_concurrency", value); } + + /// + /// + /// Whether to verify the contents of individual blobs + /// + /// + [JsonIgnore] + public bool? VerifyBlobContents { get => Q("verify_blob_contents"); set => Q("verify_blob_contents", value); } +} + +/// +/// +/// Verifies the integrity of the contents of a snapshot repository +/// +/// +public sealed partial class RepositoryVerifyIntegrityRequestDescriptor : RequestDescriptor +{ + internal RepositoryVerifyIntegrityRequestDescriptor(Action configure) => configure.Invoke(this); + + public RepositoryVerifyIntegrityRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("repository", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRepositoryVerifyIntegrity; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "snapshot.repository_verify_integrity"; + + public RepositoryVerifyIntegrityRequestDescriptor BlobThreadPoolConcurrency(int? blobThreadPoolConcurrency) => Qs("blob_thread_pool_concurrency", blobThreadPoolConcurrency); + public RepositoryVerifyIntegrityRequestDescriptor IndexSnapshotVerificationConcurrency(int? indexSnapshotVerificationConcurrency) => Qs("index_snapshot_verification_concurrency", indexSnapshotVerificationConcurrency); + public RepositoryVerifyIntegrityRequestDescriptor IndexVerificationConcurrency(int? indexVerificationConcurrency) => Qs("index_verification_concurrency", indexVerificationConcurrency); + public RepositoryVerifyIntegrityRequestDescriptor MaxBytesPerSec(string? maxBytesPerSec) => Qs("max_bytes_per_sec", maxBytesPerSec); + public RepositoryVerifyIntegrityRequestDescriptor MaxFailedShardSnapshots(int? maxFailedShardSnapshots) => Qs("max_failed_shard_snapshots", maxFailedShardSnapshots); + public RepositoryVerifyIntegrityRequestDescriptor MetaThreadPoolConcurrency(int? metaThreadPoolConcurrency) => Qs("meta_thread_pool_concurrency", metaThreadPoolConcurrency); + public RepositoryVerifyIntegrityRequestDescriptor SnapshotVerificationConcurrency(int? snapshotVerificationConcurrency) => Qs("snapshot_verification_concurrency", snapshotVerificationConcurrency); + public RepositoryVerifyIntegrityRequestDescriptor VerifyBlobContents(bool? verifyBlobContents = true) => Qs("verify_blob_contents", verifyBlobContents); + + public RepositoryVerifyIntegrityRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) + { + RouteValues.Required("repository", name); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.g.cs new file mode 100644 index 00000000000..15a2250ef7f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class RepositoryVerifyIntegrityResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs index 228be9745b7..4f382ea97d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class ListRequestParameters : RequestParameters /// Comma-separated list of node IDs or names used to limit returned information. /// /// - public ICollection? NodeId { get => Q?>("node_id"); set => Q("node_id", value); } + public Elastic.Clients.Elasticsearch.NodeIds? Nodes { get => Q("nodes"); set => Q("nodes", value); } /// /// @@ -142,7 +142,7 @@ public sealed partial class ListRequest : PlainRequest /// /// [JsonIgnore] - public ICollection? NodeId { get => Q?>("node_id"); set => Q("node_id", value); } + public Elastic.Clients.Elasticsearch.NodeIds? Nodes { get => Q("nodes"); set => Q("nodes", value); } /// /// @@ -194,7 +194,7 @@ public ListRequestDescriptor() public ListRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); public ListRequestDescriptor GroupBy(Elastic.Clients.Elasticsearch.Tasks.GroupBy? groupBy) => Qs("group_by", groupBy); public ListRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public ListRequestDescriptor NodeId(ICollection? nodeId) => Qs("node_id", nodeId); + public ListRequestDescriptor Nodes(Elastic.Clients.Elasticsearch.NodeIds? nodes) => Qs("nodes", nodes); public ListRequestDescriptor ParentTaskId(Elastic.Clients.Elasticsearch.Id? parentTaskId) => Qs("parent_task_id", parentTaskId); public ListRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public ListRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index 74cf80a255d..f9052ff3303 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -115,7 +115,9 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// /// Get term vector information. -/// Returns information and statistics about terms in the fields of a particular document. +/// +/// +/// Get information and statistics about terms in the fields of a particular document. /// /// public sealed partial class TermVectorsRequest : PlainRequest @@ -255,7 +257,9 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// /// Get term vector information. -/// Returns information and statistics about terms in the fields of a particular document. +/// +/// +/// Get 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/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs index 75a2b05b403..60b90b70370 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs @@ -36,7 +36,18 @@ public sealed partial class TermsEnumRequestParameters : RequestParameters /// /// -/// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. +/// Get terms in an index. +/// +/// +/// Discover terms that match a partial string in an index. +/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// +/// +/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. +/// This can occur due to a few reasons, such as a request timeout or a node error. +/// +/// +/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequest : PlainRequest @@ -106,7 +117,18 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// -/// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. +/// Get terms in an index. +/// +/// +/// Discover terms that match a partial string in an index. +/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// +/// +/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. +/// This can occur due to a few reasons, such as a request timeout or a node error. +/// +/// +/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor, TermsEnumRequestParameters> @@ -314,7 +336,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. +/// Get terms in an index. +/// +/// +/// Discover terms that match a partial string in an index. +/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// +/// +/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. +/// This can occur due to a few reasons, such as a request timeout or a node error. +/// +/// +/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index 5a793d21b27..6ee3ca87ed4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -42,7 +42,11 @@ public sealed partial class UpdateByQueryRethrottleRequestParameters : RequestPa /// /// -/// Changes the number of requests per second for a particular Update By Query operation. +/// Throttle an update by query operation. +/// +/// +/// Change the number of requests per second for a particular update by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class UpdateByQueryRethrottleRequest : PlainRequest @@ -70,7 +74,11 @@ public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : /// /// -/// Changes the number of requests per second for a particular Update By Query operation. +/// Throttle an update by query operation. +/// +/// +/// Change the number of requests per second for a particular update by query operation. +/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// public sealed partial class UpdateByQueryRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 0169e8ecc2f..c84b1f22823 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -41,12 +41,14 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) @@ -57,12 +59,14 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -72,12 +76,14 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) @@ -88,12 +94,14 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -105,12 +113,14 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -123,12 +133,14 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) @@ -139,12 +151,14 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescript /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -156,12 +170,14 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -174,12 +190,14 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -189,12 +207,14 @@ public virtual Task DeleteAsync(DeleteAsyn /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -205,12 +225,14 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -222,12 +244,14 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -237,12 +261,14 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -253,12 +279,14 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// - /// Deletes an async search by identifier. - /// If the search is still running, the search request will be cancelled. + /// Delete an async search. + /// + /// + /// If the asynchronous search is still running, it is cancelled. /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -270,10 +298,13 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) @@ -284,10 +315,13 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -297,10 +331,13 @@ public virtual Task> GetAsync(GetAs /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequestDescriptor descriptor) @@ -311,10 +348,13 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -326,10 +366,13 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -342,10 +385,13 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -355,10 +401,13 @@ public virtual Task> GetAsync(GetAs /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -369,10 +418,13 @@ public virtual Task> GetAsync(Elast /// /// - /// Retrieves the results of a previously submitted async search request given its identifier. + /// Get async search results. + /// + /// + /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -384,11 +436,13 @@ public virtual Task> GetAsync(Elast /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) @@ -399,11 +453,13 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -413,11 +469,13 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) @@ -428,11 +486,13 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) @@ -444,11 +504,13 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -461,11 +523,13 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) @@ -476,11 +540,13 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescript /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) @@ -492,11 +558,13 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -509,11 +577,13 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -523,11 +593,13 @@ public virtual Task StatusAsync(AsyncSearc /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -538,11 +610,13 @@ public virtual Task StatusAsync(Elastic.Cl /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -554,11 +628,13 @@ public virtual Task StatusAsync(Elastic.Cl /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -568,11 +644,13 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -583,11 +661,13 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// - /// Get async search status - /// Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results. + /// Get the async search status. + /// + /// + /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -599,13 +679,19 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) @@ -616,13 +702,19 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -632,13 +724,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) @@ -649,13 +747,19 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Elastic.Clients.Elasticsearch.Indices? indices) @@ -667,13 +771,19 @@ public virtual SubmitAsyncSearchResponse Submit(Elastic.Cl /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -686,13 +796,19 @@ public virtual SubmitAsyncSearchResponse Submit(Elastic.Cl /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit() @@ -704,13 +820,19 @@ public virtual SubmitAsyncSearchResponse Submit() /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) @@ -723,13 +845,19 @@ public virtual SubmitAsyncSearchResponse Submit(Action /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -739,13 +867,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -756,13 +890,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -774,13 +914,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -791,13 +937,19 @@ public virtual Task> SubmitAsync /// /// - /// Runs a search request asynchronously. - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested. - /// Warning: Async search does not support scroll nor search requests that only include the suggest section. - /// By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. + /// Run an async search. + /// + /// + /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. + /// + /// + /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. + /// + /// + /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs index 302f2b4bccf..c0e14ca6cc6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs @@ -43,7 +43,7 @@ internal CrossClusterReplicationNamespacedClient(ElasticsearchClient client) : b /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequest request) @@ -56,7 +56,7 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAut /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAut /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -95,7 +95,7 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.C /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -110,7 +110,7 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.C /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -135,7 +135,7 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// Deletes auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -149,7 +149,7 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequest request) @@ -162,7 +162,7 @@ public virtual FollowResponse Follow(FollowRequest request) /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequest request, CancellationToken cancellationToken = default) { @@ -174,7 +174,7 @@ public virtual Task FollowAsync(FollowRequest request, Cancellat /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) @@ -187,7 +187,7 @@ public virtual FollowResponse Follow(FollowRequestDescriptor /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) @@ -201,7 +201,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -216,7 +216,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow() @@ -230,7 +230,7 @@ public virtual FollowResponse Follow() /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Action> configureRequest) @@ -245,7 +245,7 @@ public virtual FollowResponse Follow(Action /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) @@ -258,7 +258,7 @@ public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) @@ -272,7 +272,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -287,7 +287,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -299,7 +299,7 @@ public virtual Task FollowAsync(FollowRequestDescript /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -312,7 +312,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elast /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -326,7 +326,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elast /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(CancellationToken cancellationToken = default) { @@ -339,7 +339,7 @@ public virtual Task FollowAsync(CancellationToken can /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -353,7 +353,7 @@ public virtual Task FollowAsync(Action /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -365,7 +365,7 @@ public virtual Task FollowAsync(FollowRequestDescriptor descript /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -378,7 +378,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// /// Creates a new follower index configured to follow the referenced leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -392,7 +392,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) @@ -405,7 +405,7 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequest request, CancellationToken cancellationToken = default) { @@ -417,7 +417,7 @@ public virtual Task FollowInfoAsync(FollowInfoRequest reques /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) @@ -430,7 +430,7 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescrip /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) @@ -444,7 +444,7 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -459,7 +459,7 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo() @@ -473,7 +473,7 @@ public virtual FollowInfoResponse FollowInfo() /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Action> configureRequest) @@ -488,7 +488,7 @@ public virtual FollowInfoResponse FollowInfo(Action /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) @@ -501,7 +501,7 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descrip /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) @@ -515,7 +515,7 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -530,7 +530,7 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -542,7 +542,7 @@ public virtual Task FollowInfoAsync(FollowInfoReq /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -555,7 +555,7 @@ public virtual Task FollowInfoAsync(Elastic.Clien /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -569,7 +569,7 @@ public virtual Task FollowInfoAsync(Elastic.Clien /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(CancellationToken cancellationToken = default) { @@ -582,7 +582,7 @@ public virtual Task FollowInfoAsync(CancellationT /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -596,7 +596,7 @@ public virtual Task FollowInfoAsync(Action /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -608,7 +608,7 @@ public virtual Task FollowInfoAsync(FollowInfoRequestDescrip /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -621,7 +621,7 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// /// Retrieves information about all follower indices, including parameters and status for each follower index /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -635,7 +635,7 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) @@ -648,7 +648,7 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequest request, CancellationToken cancellationToken = default) { @@ -660,7 +660,7 @@ public virtual Task FollowStatsAsync(FollowStatsRequest req /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) @@ -673,7 +673,7 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDesc /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -687,7 +687,7 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -702,7 +702,7 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats() @@ -716,7 +716,7 @@ public virtual FollowStatsResponse FollowStats() /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Action> configureRequest) @@ -731,7 +731,7 @@ public virtual FollowStatsResponse FollowStats(Action /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) @@ -744,7 +744,7 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor desc /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -758,7 +758,7 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -773,7 +773,7 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -785,7 +785,7 @@ public virtual Task FollowStatsAsync(FollowStats /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -798,7 +798,7 @@ public virtual Task FollowStatsAsync(Elastic.Cli /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -812,7 +812,7 @@ public virtual Task FollowStatsAsync(Elastic.Cli /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(CancellationToken cancellationToken = default) { @@ -825,7 +825,7 @@ public virtual Task FollowStatsAsync(Cancellatio /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -839,7 +839,7 @@ public virtual Task FollowStatsAsync(Action /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -851,7 +851,7 @@ public virtual Task FollowStatsAsync(FollowStatsRequestDesc /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -864,7 +864,7 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -878,7 +878,7 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest request) @@ -891,7 +891,7 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest reque /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequest request, CancellationToken cancellationToken = default) { @@ -903,7 +903,7 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) @@ -916,7 +916,7 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRe /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) @@ -930,7 +930,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -945,7 +945,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower() @@ -959,7 +959,7 @@ public virtual ForgetFollowerResponse ForgetFollower() /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Action> configureRequest) @@ -974,7 +974,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Action /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) @@ -987,7 +987,7 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescri /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) @@ -1001,7 +1001,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1016,7 +1016,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1028,7 +1028,7 @@ public virtual Task ForgetFollowerAsync(Forge /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1041,7 +1041,7 @@ public virtual Task ForgetFollowerAsync(Elast /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1055,7 +1055,7 @@ public virtual Task ForgetFollowerAsync(Elast /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(CancellationToken cancellationToken = default) { @@ -1068,7 +1068,7 @@ public virtual Task ForgetFollowerAsync(Cance /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1082,7 +1082,7 @@ public virtual Task ForgetFollowerAsync(Actio /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1094,7 +1094,7 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1107,7 +1107,7 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// /// Removes the follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1121,7 +1121,7 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequest request) @@ -1134,7 +1134,7 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPa /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(GetAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1146,7 +1146,7 @@ public virtual Task GetAutoFollowPatternAsync(GetA /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequestDescriptor descriptor) @@ -1159,7 +1159,7 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPa /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients.Elasticsearch.Name? name) @@ -1173,7 +1173,7 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -1188,7 +1188,7 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern() @@ -1202,7 +1202,7 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern() /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Action configureRequest) @@ -1217,7 +1217,7 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Action /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(GetAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1229,7 +1229,7 @@ public virtual Task GetAutoFollowPatternAsync(GetA /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -1242,7 +1242,7 @@ public virtual Task GetAutoFollowPatternAsync(Elas /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1256,7 +1256,7 @@ public virtual Task GetAutoFollowPatternAsync(Elas /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(CancellationToken cancellationToken = default) { @@ -1269,7 +1269,7 @@ public virtual Task GetAutoFollowPatternAsync(Canc /// /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1283,7 +1283,7 @@ public virtual Task GetAutoFollowPatternAsync(Acti /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequest request) @@ -1296,7 +1296,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(PauseAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1308,7 +1308,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequestDescriptor descriptor) @@ -1321,7 +1321,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1335,7 +1335,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1350,7 +1350,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(PauseAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1362,7 +1362,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1375,7 +1375,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// Pauses an auto-follow pattern /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1389,7 +1389,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) @@ -1402,7 +1402,7 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequest request, CancellationToken cancellationToken = default) { @@ -1414,7 +1414,7 @@ public virtual Task PauseFollowAsync(PauseFollowRequest req /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) @@ -1427,7 +1427,7 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDesc /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1441,7 +1441,7 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1456,7 +1456,7 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow() @@ -1470,7 +1470,7 @@ public virtual PauseFollowResponse PauseFollow() /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Action> configureRequest) @@ -1485,7 +1485,7 @@ public virtual PauseFollowResponse PauseFollow(Action /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) @@ -1498,7 +1498,7 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor desc /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1512,7 +1512,7 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1527,7 +1527,7 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1539,7 +1539,7 @@ public virtual Task PauseFollowAsync(PauseFollow /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1552,7 +1552,7 @@ public virtual Task PauseFollowAsync(Elastic.Cli /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1566,7 +1566,7 @@ public virtual Task PauseFollowAsync(Elastic.Cli /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(CancellationToken cancellationToken = default) { @@ -1579,7 +1579,7 @@ public virtual Task PauseFollowAsync(Cancellatio /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1593,7 +1593,7 @@ public virtual Task PauseFollowAsync(Action /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1605,7 +1605,7 @@ public virtual Task PauseFollowAsync(PauseFollowRequestDesc /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1618,7 +1618,7 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1632,7 +1632,7 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequest request) @@ -1645,7 +1645,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPa /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(PutAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1657,7 +1657,7 @@ public virtual Task PutAutoFollowPatternAsync(PutA /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequestDescriptor descriptor) @@ -1670,7 +1670,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPa /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1684,7 +1684,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1699,7 +1699,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(PutAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1711,7 +1711,7 @@ public virtual Task PutAutoFollowPatternAsync(PutA /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1724,7 +1724,7 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1738,7 +1738,7 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequest request) @@ -1751,7 +1751,7 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAut /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1763,7 +1763,7 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequestDescriptor descriptor) @@ -1776,7 +1776,7 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAut /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1790,7 +1790,7 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.C /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1805,7 +1805,7 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.C /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1817,7 +1817,7 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1830,7 +1830,7 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// Resumes an auto-follow pattern that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1844,7 +1844,7 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) @@ -1857,7 +1857,7 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequest request, CancellationToken cancellationToken = default) { @@ -1869,7 +1869,7 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequest /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) @@ -1882,7 +1882,7 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestD /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1896,7 +1896,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1911,7 +1911,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow() @@ -1925,7 +1925,7 @@ public virtual ResumeFollowResponse ResumeFollow() /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Action> configureRequest) @@ -1940,7 +1940,7 @@ public virtual ResumeFollowResponse ResumeFollow(Action /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) @@ -1953,7 +1953,7 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor d /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1967,7 +1967,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1982,7 +1982,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1994,7 +1994,7 @@ public virtual Task ResumeFollowAsync(ResumeFol /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2007,7 +2007,7 @@ public virtual Task ResumeFollowAsync(Elastic.C /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2021,7 +2021,7 @@ public virtual Task ResumeFollowAsync(Elastic.C /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(CancellationToken cancellationToken = default) { @@ -2034,7 +2034,7 @@ public virtual Task ResumeFollowAsync(Cancellat /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2048,7 +2048,7 @@ public virtual Task ResumeFollowAsync(Action /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2060,7 +2060,7 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequestD /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2073,7 +2073,7 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// /// Resumes a follower index that has been paused /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2087,7 +2087,7 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequest request) @@ -2100,7 +2100,7 @@ public virtual CcrStatsResponse Stats(CcrStatsRequest request) /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CcrStatsRequest request, CancellationToken cancellationToken = default) { @@ -2112,7 +2112,7 @@ public virtual Task StatsAsync(CcrStatsRequest request, Cancel /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequestDescriptor descriptor) @@ -2125,7 +2125,7 @@ public virtual CcrStatsResponse Stats(CcrStatsRequestDescriptor descriptor) /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats() @@ -2139,7 +2139,7 @@ public virtual CcrStatsResponse Stats() /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(Action configureRequest) @@ -2154,7 +2154,7 @@ public virtual CcrStatsResponse Stats(Action configur /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CcrStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2166,7 +2166,7 @@ public virtual Task StatsAsync(CcrStatsRequestDescriptor descr /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -2179,7 +2179,7 @@ public virtual Task StatsAsync(CancellationToken cancellationT /// /// Gets all stats related to cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2193,7 +2193,7 @@ public virtual Task StatsAsync(Action /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequest request) @@ -2206,7 +2206,7 @@ public virtual UnfollowResponse Unfollow(UnfollowRequest request) /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequest request, CancellationToken cancellationToken = default) { @@ -2218,7 +2218,7 @@ public virtual Task UnfollowAsync(UnfollowRequest request, Can /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) @@ -2231,7 +2231,7 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2245,7 +2245,7 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -2260,7 +2260,7 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow() @@ -2274,7 +2274,7 @@ public virtual UnfollowResponse Unfollow() /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Action> configureRequest) @@ -2289,7 +2289,7 @@ public virtual UnfollowResponse Unfollow(Action /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) @@ -2302,7 +2302,7 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2316,7 +2316,7 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -2331,7 +2331,7 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2343,7 +2343,7 @@ public virtual Task UnfollowAsync(UnfollowRequestDe /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2356,7 +2356,7 @@ public virtual Task UnfollowAsync(Elastic.Clients.E /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2370,7 +2370,7 @@ public virtual Task UnfollowAsync(Elastic.Clients.E /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(CancellationToken cancellationToken = default) { @@ -2383,7 +2383,7 @@ public virtual Task UnfollowAsync(CancellationToken /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2397,7 +2397,7 @@ public virtual Task UnfollowAsync(Action /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2409,7 +2409,7 @@ public virtual Task UnfollowAsync(UnfollowRequestDescriptor de /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2422,7 +2422,7 @@ public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearc /// /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index b7c03eaef6a..2bf54cd7d80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -43,7 +43,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) @@ -56,7 +56,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain() @@ -95,7 +95,7 @@ public virtual AllocationExplainResponse AllocationExplain() /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) @@ -110,7 +110,7 @@ public virtual AllocationExplainResponse AllocationExplain(Action /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -135,7 +135,7 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// Provides explanations for shard allocations in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -151,7 +151,7 @@ public virtual Task AllocationExplainAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequest request) @@ -166,7 +166,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -180,7 +180,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequestDescriptor descriptor) @@ -195,7 +195,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -211,7 +211,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -228,7 +228,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -242,7 +242,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -257,7 +257,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -271,7 +271,7 @@ public virtual Task DeleteComponentTemplateAsyn /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequest request) @@ -284,7 +284,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(DeleteVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) { @@ -296,7 +296,7 @@ public virtual Task DeleteVotingConfigExcl /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequestDescriptor descriptor) @@ -309,7 +309,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions() @@ -323,7 +323,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(Action configureRequest) @@ -338,7 +338,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(DeleteVotingConfigExclusionsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -350,7 +350,7 @@ public virtual Task DeleteVotingConfigExcl /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) { @@ -363,7 +363,7 @@ public virtual Task DeleteVotingConfigExcl /// /// Clears cluster voting config exclusions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -378,7 +378,7 @@ public virtual Task DeleteVotingConfigExcl /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequest request) @@ -392,7 +392,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsCom /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -405,7 +405,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequestDescriptor descriptor) @@ -419,7 +419,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsCom /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -434,7 +434,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.C /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -450,7 +450,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.C /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -463,7 +463,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -477,7 +477,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -492,7 +492,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequest request) @@ -506,7 +506,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -519,7 +519,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequestDescriptor descriptor) @@ -533,7 +533,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -548,7 +548,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -564,7 +564,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate() @@ -579,7 +579,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate() /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Action configureRequest) @@ -595,7 +595,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -608,7 +608,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -622,7 +622,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -637,7 +637,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) { @@ -651,7 +651,7 @@ public virtual Task GetComponentTemplateAsync(Canc /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -666,7 +666,7 @@ public virtual Task GetComponentTemplateAsync(Acti /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) @@ -680,7 +680,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -693,7 +693,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) @@ -707,7 +707,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestD /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings() @@ -722,7 +722,7 @@ public virtual GetClusterSettingsResponse GetSettings() /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) @@ -738,7 +738,7 @@ public virtual GetClusterSettingsResponse GetSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -751,7 +751,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -765,7 +765,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// Returns cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -780,7 +780,7 @@ public virtual Task GetSettingsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequest request) @@ -794,7 +794,7 @@ public virtual HealthResponse Health(HealthRequest request) /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -807,7 +807,7 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequestDescriptor descriptor) @@ -821,7 +821,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) @@ -836,7 +836,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -852,7 +852,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() @@ -867,7 +867,7 @@ public virtual HealthResponse Health() /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Action> configureRequest) @@ -883,7 +883,7 @@ public virtual HealthResponse Health(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequestDescriptor descriptor) @@ -897,7 +897,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor descriptor) /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) @@ -912,7 +912,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indi /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -928,7 +928,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indi /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() @@ -943,7 +943,7 @@ public virtual HealthResponse Health() /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Action configureRequest) @@ -959,7 +959,7 @@ public virtual HealthResponse Health(Action configureRe /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -972,7 +972,7 @@ public virtual Task HealthAsync(HealthRequestDescript /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -986,7 +986,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1001,7 +1001,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -1015,7 +1015,7 @@ public virtual Task HealthAsync(CancellationToken can /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1030,7 +1030,7 @@ public virtual Task HealthAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1043,7 +1043,7 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -1057,7 +1057,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.In /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1072,7 +1072,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.In /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -1086,7 +1086,7 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1101,7 +1101,7 @@ public virtual Task HealthAsync(Action /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequest request) @@ -1115,7 +1115,7 @@ public virtual ClusterInfoResponse Info(ClusterInfoRequest request) /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequest request, CancellationToken cancellationToken = default) { @@ -1128,7 +1128,7 @@ public virtual Task InfoAsync(ClusterInfoRequest request, C /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequestDescriptor descriptor) @@ -1142,7 +1142,7 @@ public virtual ClusterInfoResponse Info(ClusterInfoRequestDescriptor descriptor) /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(IReadOnlyCollection target) @@ -1157,7 +1157,7 @@ public virtual ClusterInfoResponse Info(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(IReadOnlyCollection target, Action configureRequest) @@ -1173,7 +1173,7 @@ public virtual ClusterInfoResponse Info(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1186,7 +1186,7 @@ public virtual Task InfoAsync(ClusterInfoRequestDescriptor /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, CancellationToken cancellationToken = default) { @@ -1200,7 +1200,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1217,7 +1217,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) @@ -1233,7 +1233,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -1248,7 +1248,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) @@ -1264,7 +1264,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor d /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks() @@ -1281,7 +1281,7 @@ public virtual PendingTasksResponse PendingTasks() /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(Action configureRequest) @@ -1299,7 +1299,7 @@ public virtual PendingTasksResponse PendingTasks(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1314,7 +1314,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -1330,7 +1330,7 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1344,7 +1344,7 @@ public virtual Task PendingTasksAsync(Action /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequest request) @@ -1357,7 +1357,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Pos /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(PostVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) { @@ -1369,7 +1369,7 @@ public virtual Task PostVotingConfigExclusio /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequestDescriptor descriptor) @@ -1382,7 +1382,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Pos /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions() @@ -1396,7 +1396,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions() /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Action configureRequest) @@ -1411,7 +1411,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Act /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(PostVotingConfigExclusionsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1423,7 +1423,7 @@ public virtual Task PostVotingConfigExclusio /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) { @@ -1436,7 +1436,7 @@ public virtual Task PostVotingConfigExclusio /// /// Updates the cluster voting config exclusions by node ids or node names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1469,7 +1469,7 @@ public virtual Task PostVotingConfigExclusio /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequest request) @@ -1501,7 +1501,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -1532,7 +1532,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequestDescriptor descriptor) @@ -1564,7 +1564,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -1597,7 +1597,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -1631,7 +1631,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequestDescriptor descriptor) @@ -1663,7 +1663,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -1696,7 +1696,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1730,7 +1730,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1761,7 +1761,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1793,7 +1793,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1826,7 +1826,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1857,7 +1857,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1889,7 +1889,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1904,7 +1904,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) @@ -1918,7 +1918,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -1931,7 +1931,7 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) @@ -1945,7 +1945,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descript /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -1960,7 +1960,7 @@ public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -1976,7 +1976,7 @@ public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats() @@ -1991,7 +1991,7 @@ public virtual ClusterStatsResponse Stats() /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Action configureRequest) @@ -2007,7 +2007,7 @@ public virtual ClusterStatsResponse Stats(Action /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2020,7 +2020,7 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -2034,7 +2034,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2049,7 +2049,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -2063,7 +2063,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// Returns cluster statistics. /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs index f4bed190814..544af02adfa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs @@ -41,7 +41,14 @@ internal DanglingIndicesNamespacedClient(ElasticsearchClient client) : base(clie /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +61,14 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndic /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +80,14 @@ public virtual Task ListDanglingIndicesAsync(ListDa /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +100,14 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndic /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +121,14 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices() /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +143,14 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(Action /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +162,14 @@ public virtual Task ListDanglingIndicesAsync(ListDa /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +182,14 @@ public virtual Task ListDanglingIndicesAsync(Cancel /// /// - /// Returns all dangling indices. + /// Get the dangling indices. + /// + /// + /// If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. + /// For example, this can happen if you delete more than cluster.indices.tombstones.size indices while an Elasticsearch node is offline. + /// + /// + /// Use this API to list dangling indices, which you can then import or delete. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs index cbb8fa9e435..def12a2fedf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -157,7 +157,7 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) @@ -170,7 +170,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -182,7 +182,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescriptor descriptor) @@ -195,7 +195,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescripto /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name) @@ -209,7 +209,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -224,7 +224,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -236,7 +236,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -249,7 +249,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// /// Creates the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -438,7 +438,7 @@ public virtual Task GetPolicyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) @@ -452,7 +452,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -465,7 +465,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) @@ -479,7 +479,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) @@ -494,7 +494,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -510,7 +510,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) @@ -524,7 +524,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) @@ -539,7 +539,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -555,7 +555,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -568,7 +568,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -582,7 +582,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -597,7 +597,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -610,7 +610,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -624,7 +624,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs index 288fe04ee8c..2867e62ebd8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -244,7 +244,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequest request) @@ -257,7 +257,7 @@ public virtual EqlGetResponse Get(EqlGetRequest request) /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) { @@ -269,7 +269,7 @@ public virtual Task> GetAsync(EqlGetRequest reque /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) @@ -282,7 +282,7 @@ public virtual EqlGetResponse Get(EqlGetRequestDescriptor /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -296,7 +296,7 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -311,7 +311,7 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -323,7 +323,7 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -336,7 +336,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -350,7 +350,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) @@ -363,7 +363,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) { @@ -375,7 +375,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) @@ -388,7 +388,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDesc /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) @@ -402,7 +402,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -417,7 +417,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) @@ -430,7 +430,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor desc /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) @@ -444,7 +444,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -459,7 +459,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -471,7 +471,7 @@ public virtual Task GetStatusAsync(GetEqlStatus /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -484,7 +484,7 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -498,7 +498,7 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -510,7 +510,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequestDesc /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -523,7 +523,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs index c0957362790..731a3cdae0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -43,7 +43,7 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequest request) @@ -56,7 +56,7 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequest request) /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task QueryAsync(EsqlQueryRequest request, Canc /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query() @@ -95,7 +95,7 @@ public virtual EsqlQueryResponse Query() /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(Action> configureRequest) @@ -110,7 +110,7 @@ public virtual EsqlQueryResponse Query(Action /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) @@ -123,7 +123,7 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query() @@ -137,7 +137,7 @@ public virtual EsqlQueryResponse Query() /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(Action configureRequest) @@ -152,7 +152,7 @@ public virtual EsqlQueryResponse Query(Action config /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -164,7 +164,7 @@ public virtual Task QueryAsync(EsqlQueryRequestDes /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -177,7 +177,7 @@ public virtual Task QueryAsync(CancellationToken c /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task QueryAsync(Action /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task QueryAsync(EsqlQueryRequestDescriptor des /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -216,7 +216,7 @@ public virtual Task QueryAsync(CancellationToken cancellation /// /// Executes an ES|QL request /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs index 81edb557a37..1dd9a1e7d63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -43,7 +43,7 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequest request) @@ -56,7 +56,7 @@ public virtual ExploreResponse Explore(ExploreRequest request) /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) @@ -95,7 +95,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -110,7 +110,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore() @@ -124,7 +124,7 @@ public virtual ExploreResponse Explore() /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Action> configureRequest) @@ -139,7 +139,7 @@ public virtual ExploreResponse Explore(Action /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) @@ -152,7 +152,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) @@ -166,7 +166,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -181,7 +181,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -193,7 +193,7 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -206,7 +206,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -220,7 +220,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(CancellationToken cancellationToken = default) { @@ -233,7 +233,7 @@ public virtual Task ExploreAsync(CancellationToken c /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -247,7 +247,7 @@ public virtual Task ExploreAsync(Action /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -259,7 +259,7 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -272,7 +272,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index db556857ddd..51145ed44bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -41,9 +41,10 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) @@ -54,9 +55,10 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequest request, CancellationToken cancellationToken = default) { @@ -66,9 +68,10 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequest reque /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descriptor) @@ -79,9 +82,10 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescri /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index) @@ -93,9 +97,10 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -108,9 +113,10 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze() @@ -122,9 +128,10 @@ public virtual AnalyzeIndexResponse Analyze() /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Action> configureRequest) @@ -137,9 +144,10 @@ public virtual AnalyzeIndexResponse Analyze(Action /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descriptor) @@ -150,9 +158,10 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descri /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index) @@ -164,9 +173,10 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -179,9 +189,10 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze() @@ -193,9 +204,10 @@ public virtual AnalyzeIndexResponse Analyze() /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Action configureRequest) @@ -208,9 +220,10 @@ public virtual AnalyzeIndexResponse Analyze(Action /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -220,9 +233,10 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRe /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -233,9 +247,10 @@ public virtual Task AnalyzeAsync(Elastic.Client /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -247,9 +262,10 @@ public virtual Task AnalyzeAsync(Elastic.Client /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -260,9 +276,10 @@ public virtual Task AnalyzeAsync(CancellationTo /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -274,9 +291,10 @@ public virtual Task AnalyzeAsync(Action /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -286,9 +304,10 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescri /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -299,9 +318,10 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -313,9 +333,10 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -326,9 +347,10 @@ public virtual Task AnalyzeAsync(CancellationToken cancell /// /// - /// Performs analysis on a text string and returns the resulting tokens. + /// Get tokens from text analysis. + /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -906,7 +928,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequest request) @@ -919,7 +941,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequest request) /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -931,7 +953,7 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) @@ -944,7 +966,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) @@ -958,7 +980,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -973,7 +995,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close() @@ -987,7 +1009,7 @@ public virtual CloseIndexResponse Close() /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Action> configureRequest) @@ -1002,7 +1024,7 @@ public virtual CloseIndexResponse Close(Action /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) @@ -1015,7 +1037,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) @@ -1029,7 +1051,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -1044,7 +1066,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1056,7 +1078,7 @@ public virtual Task CloseAsync(CloseIndexRequestD /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -1069,7 +1091,7 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1083,7 +1105,7 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CancellationToken cancellationToken = default) { @@ -1096,7 +1118,7 @@ public virtual Task CloseAsync(CancellationToken /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1110,7 +1132,7 @@ public virtual Task CloseAsync(Action /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1122,7 +1144,7 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -1135,7 +1157,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1150,7 +1172,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequest request) @@ -1164,7 +1186,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequest request) /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -1177,7 +1199,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) @@ -1191,7 +1213,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) @@ -1206,7 +1228,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1222,7 +1244,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create() @@ -1237,7 +1259,7 @@ public virtual CreateIndexResponse Create() /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Action> configureRequest) @@ -1253,7 +1275,7 @@ public virtual CreateIndexResponse Create(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) @@ -1267,7 +1289,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) @@ -1282,7 +1304,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1298,7 +1320,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1311,7 +1333,7 @@ public virtual Task CreateAsync(CreateIndexReque /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1325,7 +1347,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1340,7 +1362,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -1354,7 +1376,7 @@ public virtual Task CreateAsync(CancellationToke /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1369,7 +1391,7 @@ public virtual Task CreateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1382,7 +1404,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1396,7 +1418,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2692,7 +2714,7 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) @@ -2705,7 +2727,7 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequest request, CancellationToken cancellationToken = default) { @@ -2717,7 +2739,7 @@ public virtual Task DiskUsageAsync(DiskUsageRequest request, /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) @@ -2730,7 +2752,7 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) @@ -2744,7 +2766,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -2759,7 +2781,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage() @@ -2773,7 +2795,7 @@ public virtual DiskUsageResponse DiskUsage() /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Action> configureRequest) @@ -2788,7 +2810,7 @@ public virtual DiskUsageResponse DiskUsage(Action /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) @@ -2801,7 +2823,7 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) @@ -2815,7 +2837,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -2830,7 +2852,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2842,7 +2864,7 @@ public virtual Task DiskUsageAsync(DiskUsageReques /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2855,7 +2877,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2869,7 +2891,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(CancellationToken cancellationToken = default) { @@ -2882,7 +2904,7 @@ public virtual Task DiskUsageAsync(CancellationTok /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2896,7 +2918,7 @@ public virtual Task DiskUsageAsync(Action /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2908,7 +2930,7 @@ public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2921,7 +2943,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// /// Analyzes the disk usage of each field of an index or data stream. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2935,7 +2957,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequest request) @@ -2948,7 +2970,7 @@ public virtual DownsampleResponse Downsample(DownsampleRequest request) /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequest request, CancellationToken cancellationToken = default) { @@ -2960,7 +2982,7 @@ public virtual Task DownsampleAsync(DownsampleRequest reques /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) @@ -2973,7 +2995,7 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescrip /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) @@ -2987,7 +3009,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest) @@ -3002,7 +3024,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) @@ -3015,7 +3037,7 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descrip /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) @@ -3029,7 +3051,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest) @@ -3044,7 +3066,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3056,7 +3078,7 @@ public virtual Task DownsampleAsync(DownsampleReq /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { @@ -3069,7 +3091,7 @@ public virtual Task DownsampleAsync(Elastic.Clien /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3083,7 +3105,7 @@ public virtual Task DownsampleAsync(Elastic.Clien /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3095,7 +3117,7 @@ public virtual Task DownsampleAsync(DownsampleRequestDescrip /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { @@ -3108,7 +3130,7 @@ public virtual Task DownsampleAsync(Elastic.Clients.Elastics /// /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4428,7 +4450,7 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequest request) @@ -4441,7 +4463,7 @@ public virtual FlushResponse Flush(FlushRequest request) /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { @@ -4453,7 +4475,7 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) @@ -4466,7 +4488,7 @@ public virtual FlushResponse Flush(FlushRequestDescriptor /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) @@ -4480,7 +4502,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -4495,7 +4517,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() @@ -4509,7 +4531,7 @@ public virtual FlushResponse Flush() /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Action> configureRequest) @@ -4524,7 +4546,7 @@ public virtual FlushResponse Flush(Action /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) @@ -4537,7 +4559,7 @@ public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) @@ -4551,7 +4573,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indice /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -4566,7 +4588,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indice /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() @@ -4580,7 +4602,7 @@ public virtual FlushResponse Flush() /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Action configureRequest) @@ -4595,7 +4617,7 @@ public virtual FlushResponse Flush(Action configureReque /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4607,7 +4629,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor< /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -4620,7 +4642,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4634,7 +4656,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -4647,7 +4669,7 @@ public virtual Task FlushAsync(CancellationToken cance /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4661,7 +4683,7 @@ public virtual Task FlushAsync(Action /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4673,7 +4695,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor descriptor, /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -4686,7 +4708,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indi /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4700,7 +4722,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indi /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -4713,7 +4735,7 @@ public virtual Task FlushAsync(CancellationToken cancellationToke /// /// Flushes one or more data streams or indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8264,9 +8286,9 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) + public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name) { - var descriptor = new PutDataLifecycleRequestDescriptor(name); + var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); descriptor.BeforeRequest(); return DoRequest(descriptor); } @@ -8279,9 +8301,9 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) + public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) { - var descriptor = new PutDataLifecycleRequestDescriptor(name); + var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest(descriptor); @@ -8307,9 +8329,9 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { - var descriptor = new PutDataLifecycleRequestDescriptor(name); + var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } @@ -8321,9 +8343,9 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutDataLifecycleRequestDescriptor(name); + var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); @@ -10519,7 +10541,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequest request) @@ -10533,7 +10555,7 @@ public virtual RolloverResponse Rollover(RolloverRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -10546,7 +10568,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) @@ -10560,7 +10582,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) @@ -10575,7 +10597,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action> configureRequest) @@ -10591,7 +10613,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) @@ -10606,7 +10628,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action> configureRequest) @@ -10622,7 +10644,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) @@ -10636,7 +10658,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) @@ -10651,7 +10673,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action configureRequest) @@ -10667,7 +10689,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) @@ -10682,7 +10704,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest) @@ -10698,7 +10720,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10711,7 +10733,7 @@ public virtual Task RolloverAsync(RolloverRequestDe /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, CancellationToken cancellationToken = default) { @@ -10725,7 +10747,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10740,7 +10762,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -10754,7 +10776,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10769,7 +10791,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10782,7 +10804,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, CancellationToken cancellationToken = default) { @@ -10796,7 +10818,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10811,7 +10833,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -10825,7 +10847,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11481,7 +11503,7 @@ public virtual Task ShardStoresAsync(Action /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) @@ -11494,7 +11516,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequest request, CancellationToken cancellationToken = default) { @@ -11506,7 +11528,7 @@ public virtual Task ShrinkAsync(ShrinkIndexRequest request, /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) @@ -11519,7 +11541,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescripto /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -11533,7 +11555,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) @@ -11548,7 +11570,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) @@ -11561,7 +11583,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descripto /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -11575,7 +11597,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) @@ -11590,7 +11612,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11602,7 +11624,7 @@ public virtual Task ShrinkAsync(ShrinkIndexReque /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -11615,7 +11637,7 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11629,7 +11651,7 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11641,7 +11663,7 @@ public virtual Task ShrinkAsync(ShrinkIndexRequestDescripto /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -11654,7 +11676,7 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// /// Shrinks an existing index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12103,7 +12125,7 @@ public virtual Task SimulateTemplateAsync(Action /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequest request) @@ -12116,7 +12138,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequest request) /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequest request, CancellationToken cancellationToken = default) { @@ -12128,7 +12150,7 @@ public virtual Task SplitAsync(SplitIndexRequest request, Ca /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) @@ -12141,7 +12163,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -12155,7 +12177,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) @@ -12170,7 +12192,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) @@ -12183,7 +12205,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -12197,7 +12219,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) @@ -12212,7 +12234,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12224,7 +12246,7 @@ public virtual Task SplitAsync(SplitIndexRequestD /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -12237,7 +12259,7 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12251,7 +12273,7 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12263,7 +12285,7 @@ public virtual Task SplitAsync(SplitIndexRequestDescriptor d /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -12276,7 +12298,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// Splits an existing index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index c9102687c74..3780833c657 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -417,7 +417,7 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) @@ -430,7 +430,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -442,7 +442,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descriptor) @@ -455,7 +455,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descrip /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats() @@ -469,7 +469,7 @@ public virtual GeoIpStatsResponse GeoIpStats() /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(Action configureRequest) @@ -484,7 +484,7 @@ public virtual GeoIpStatsResponse GeoIpStats(Action /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -496,7 +496,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -509,7 +509,7 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// /// Gets download statistics for GeoIP2 databases used with the geoip processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1145,7 +1145,7 @@ public virtual Task GetPipelineAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) @@ -1160,7 +1160,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -1174,7 +1174,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescriptor descriptor) @@ -1189,7 +1189,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescripto /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok() @@ -1205,7 +1205,7 @@ public virtual ProcessorGrokResponse ProcessorGrok() /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(Action configureRequest) @@ -1222,7 +1222,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1236,7 +1236,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -1251,7 +1251,7 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1453,7 +1453,7 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) @@ -1467,7 +1467,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -1480,7 +1480,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) @@ -1494,7 +1494,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDesc /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) @@ -1509,7 +1509,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -1525,7 +1525,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) @@ -1539,7 +1539,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor desc /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) @@ -1554,7 +1554,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -1570,7 +1570,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1583,7 +1583,7 @@ public virtual Task PutPipelineAsync(PutPipeline /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1597,7 +1597,7 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1612,7 +1612,7 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1625,7 +1625,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1639,7 +1639,7 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// Creates or updates an ingest pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index 3ac1051ceb5..89c08ca6530 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -185,7 +185,7 @@ public virtual Task ClearTrainedModelD /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequest request) @@ -202,7 +202,7 @@ public virtual CloseJobResponse CloseJob(CloseJobRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequest request, CancellationToken cancellationToken = default) { @@ -218,7 +218,7 @@ public virtual Task CloseJobAsync(CloseJobRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequestDescriptor descriptor) @@ -235,7 +235,7 @@ public virtual CloseJobResponse CloseJob(CloseJobRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -253,7 +253,7 @@ public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -272,7 +272,7 @@ public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -288,7 +288,7 @@ public virtual Task CloseJobAsync(CloseJobRequestDescriptor de /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -305,7 +305,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -320,7 +320,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest request) @@ -334,7 +334,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest reque /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequest request, CancellationToken cancellationToken = default) { @@ -347,7 +347,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequestDescriptor descriptor) @@ -361,7 +361,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequestDescri /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendarId) @@ -376,7 +376,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsear /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest) @@ -392,7 +392,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsear /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -405,7 +405,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, CancellationToken cancellationToken = default) { @@ -419,7 +419,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -433,7 +433,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequest request) @@ -446,7 +446,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEve /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequest request, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequestDescriptor descriptor) @@ -471,7 +471,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEve /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId) @@ -485,7 +485,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.E /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, Action configureRequest) @@ -500,7 +500,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.E /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -512,7 +512,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, CancellationToken cancellationToken = default) { @@ -525,7 +525,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -539,7 +539,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequest request) @@ -552,7 +552,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequ /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequest request, CancellationToken cancellationToken = default) { @@ -564,7 +564,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequestDescriptor descriptor) @@ -577,7 +577,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequ /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId) @@ -591,7 +591,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elast /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest) @@ -606,7 +606,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elast /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -618,7 +618,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, CancellationToken cancellationToken = default) { @@ -631,7 +631,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -645,7 +645,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest request) @@ -658,7 +658,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest reque /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -670,7 +670,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequestDescriptor descriptor) @@ -683,7 +683,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequestDescri /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -697,7 +697,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsear /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -712,7 +712,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsear /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -724,7 +724,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -737,7 +737,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -751,7 +751,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) @@ -764,7 +764,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteD /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -776,7 +776,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) @@ -789,7 +789,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -803,7 +803,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -818,7 +818,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) @@ -831,7 +831,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteD /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -845,7 +845,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -860,7 +860,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -872,7 +872,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -885,7 +885,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -899,7 +899,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -911,7 +911,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -924,7 +924,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8825,7 +8825,12 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8842,7 +8847,12 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequest request) /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8858,7 +8868,12 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequest req /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8875,7 +8890,12 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDesc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8893,7 +8913,12 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8912,7 +8937,12 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8929,7 +8959,12 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDescriptor desc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8947,7 +8982,12 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8966,7 +9006,12 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8982,7 +9027,12 @@ public virtual Task PutDatafeedAsync(PutDatafeed /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8999,7 +9049,12 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9017,7 +9072,12 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9033,7 +9093,12 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequestDesc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9050,7 +9115,12 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed directly to the .ml-configindex. Do not give userswriteprivileges on the.ml-config` index. + /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had + /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, + /// those credentials are used instead. + /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed + /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9068,7 +9138,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequest request) @@ -9083,7 +9153,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -9097,7 +9167,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequestDescriptor descriptor) @@ -9112,7 +9182,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -9128,7 +9198,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -9145,7 +9215,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequestDescriptor descriptor) @@ -9160,7 +9230,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -9176,7 +9246,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -9193,7 +9263,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9207,7 +9277,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9222,7 +9292,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9238,7 +9308,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9252,7 +9322,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9267,7 +9337,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs index 7588571dea4..039187be17a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -280,7 +280,7 @@ public virtual Task GetRepositoriesMetering /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) @@ -294,7 +294,7 @@ public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequest request, CancellationToken cancellationToken = default) { @@ -307,7 +307,7 @@ public virtual Task HotThreadsAsync(HotThreadsRequest reques /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequestDescriptor descriptor) @@ -321,7 +321,7 @@ public virtual HotThreadsResponse HotThreads(HotThreadsRequestDescriptor descrip /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -336,7 +336,7 @@ public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeI /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -352,7 +352,7 @@ public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeI /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads() @@ -367,7 +367,7 @@ public virtual HotThreadsResponse HotThreads() /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Action configureRequest) @@ -383,7 +383,7 @@ public virtual HotThreadsResponse HotThreads(Action /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -396,7 +396,7 @@ public virtual Task HotThreadsAsync(HotThreadsRequestDescrip /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -410,7 +410,7 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -425,7 +425,7 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(CancellationToken cancellationToken = default) { @@ -439,7 +439,7 @@ public virtual Task HotThreadsAsync(CancellationToken cancel /// This API yields a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of each node’s top hot threads. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -453,7 +453,7 @@ public virtual Task HotThreadsAsync(Action /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequest request) @@ -466,7 +466,7 @@ public virtual NodesInfoResponse Info(NodesInfoRequest request) /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) { @@ -478,7 +478,7 @@ public virtual Task InfoAsync(NodesInfoRequest request, Cance /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequestDescriptor descriptor) @@ -491,7 +491,7 @@ public virtual NodesInfoResponse Info(NodesInfoRequestDescriptor descriptor) /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -505,7 +505,7 @@ public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nod /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -520,7 +520,7 @@ public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nod /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info() @@ -534,7 +534,7 @@ public virtual NodesInfoResponse Info() /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Action configureRequest) @@ -549,7 +549,7 @@ public virtual NodesInfoResponse Info(Action configu /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -561,7 +561,7 @@ public virtual Task InfoAsync(NodesInfoRequestDescriptor desc /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -574,7 +574,7 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.N /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -588,7 +588,7 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.N /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -601,7 +601,7 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// Returns cluster nodes information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -777,7 +777,7 @@ public virtual Task ReloadSecureSettingsAsync(Acti /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequest request) @@ -790,7 +790,7 @@ public virtual NodesStatsResponse Stats(NodesStatsRequest request) /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) { @@ -802,7 +802,7 @@ public virtual Task StatsAsync(NodesStatsRequest request, Ca /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) @@ -815,7 +815,7 @@ public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) @@ -829,7 +829,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action> configureRequest) @@ -844,7 +844,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats() @@ -858,7 +858,7 @@ public virtual NodesStatsResponse Stats() /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Action> configureRequest) @@ -873,7 +873,7 @@ public virtual NodesStatsResponse Stats(Action /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) @@ -886,7 +886,7 @@ public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) @@ -900,7 +900,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? n /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action configureRequest) @@ -915,7 +915,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? n /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats() @@ -929,7 +929,7 @@ public virtual NodesStatsResponse Stats() /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Action configureRequest) @@ -944,7 +944,7 @@ public virtual NodesStatsResponse Stats(Action conf /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -956,7 +956,7 @@ public virtual Task StatsAsync(NodesStatsRequestD /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -969,7 +969,7 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -983,7 +983,7 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -996,7 +996,7 @@ public virtual Task StatsAsync(CancellationToken /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1010,7 +1010,7 @@ public virtual Task StatsAsync(Action /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1022,7 +1022,7 @@ public virtual Task StatsAsync(NodesStatsRequestDescriptor d /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -1035,7 +1035,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1049,7 +1049,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -1062,7 +1062,7 @@ public virtual Task StatsAsync(CancellationToken cancellatio /// /// Returns cluster nodes statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1076,7 +1076,7 @@ public virtual Task StatsAsync(Action /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequest request) @@ -1089,7 +1089,7 @@ public virtual NodesUsageResponse Usage(NodesUsageRequest request) /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) { @@ -1101,7 +1101,7 @@ public virtual Task UsageAsync(NodesUsageRequest request, Ca /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequestDescriptor descriptor) @@ -1114,7 +1114,7 @@ public virtual NodesUsageResponse Usage(NodesUsageRequestDescriptor descriptor) /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -1128,7 +1128,7 @@ public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? n /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -1143,7 +1143,7 @@ public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? n /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage() @@ -1157,7 +1157,7 @@ public virtual NodesUsageResponse Usage() /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Action configureRequest) @@ -1172,7 +1172,7 @@ public virtual NodesUsageResponse Usage(Action conf /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1184,7 +1184,7 @@ public virtual Task UsageAsync(NodesUsageRequestDescriptor d /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -1197,7 +1197,7 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1211,7 +1211,7 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -1224,7 +1224,7 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// Returns information on the usage of features. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs index f09318cfb7b..bcd2320107b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs @@ -780,4 +780,110 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TestResponse Test(TestRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(TestRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TestResponse Test(TestRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId) + { + var descriptor = new TestRequestDescriptor(rulesetId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) + { + var descriptor = new TestRequestDescriptor(rulesetId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(TestRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) + { + var descriptor = new TestRequestDescriptor(rulesetId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Creates or updates a query ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new TestRequestDescriptor(rulesetId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs index fc2498eaccd..856c7d76569 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs @@ -686,7 +686,7 @@ public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequestDescr /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name) + public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); descriptor.BeforeRequest(); @@ -700,7 +700,7 @@ public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.Se /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); configureRequest?.Invoke(descriptor); @@ -726,7 +726,7 @@ public virtual Task PutAsync(PutSearchApplicationR /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); descriptor.BeforeRequest(); @@ -739,7 +739,7 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); configureRequest?.Invoke(descriptor); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs index d35c282ebc8..65290355da1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs @@ -41,7 +41,10 @@ internal SecurityNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +57,10 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfi /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +72,10 @@ public virtual Task ActivateUserProfileAsync(Activa /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +88,10 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfi /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +105,10 @@ public virtual ActivateUserProfileResponse ActivateUserProfile() /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +123,10 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(Action /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +138,10 @@ public virtual Task ActivateUserProfileAsync(Activa /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +154,10 @@ public virtual Task ActivateUserProfileAsync(Cancel /// /// - /// Creates or updates a user profile on behalf of another user. + /// Activate a user profile. + /// + /// + /// Create or update a user profile on behalf of another user. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -148,6 +172,8 @@ public virtual Task ActivateUserProfileAsync(Action /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -165,6 +191,8 @@ public virtual AuthenticateResponse Authenticate(AuthenticateRequest request) /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -181,6 +209,8 @@ public virtual Task AuthenticateAsync(AuthenticateRequest /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -198,6 +228,8 @@ public virtual AuthenticateResponse Authenticate(AuthenticateRequestDescriptor d /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -216,6 +248,8 @@ public virtual AuthenticateResponse Authenticate() /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -235,6 +269,8 @@ public virtual AuthenticateResponse Authenticate(Action /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -251,6 +287,8 @@ public virtual Task AuthenticateAsync(AuthenticateRequestD /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -268,6 +306,8 @@ public virtual Task AuthenticateAsync(CancellationToken ca /// /// /// Authenticate a user. + /// + /// /// Authenticates a user and returns information about the authenticated user. /// Include the user information in a basic auth header. /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. @@ -285,6 +325,9 @@ public virtual Task AuthenticateAsync(Action /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -299,6 +342,9 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole(BulkDeleteRoleRequest reque /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -312,6 +358,9 @@ public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRe /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -326,6 +375,9 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole(BulkDeleteRoleRequestDescri /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -341,6 +393,9 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole() /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -357,6 +412,9 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole(Action /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -370,6 +428,9 @@ public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRe /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -384,6 +445,9 @@ public virtual Task BulkDeleteRoleAsync(CancellationToke /// /// + /// Bulk delete roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// @@ -399,6 +463,9 @@ public virtual Task BulkDeleteRoleAsync(Action /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -413,6 +480,9 @@ public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequest request) /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -426,6 +496,9 @@ public virtual Task BulkPutRoleAsync(BulkPutRoleRequest req /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -440,6 +513,9 @@ public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequestDesc /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -455,6 +531,9 @@ public virtual BulkPutRoleResponse BulkPutRole() /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -471,6 +550,9 @@ public virtual BulkPutRoleResponse BulkPutRole(Action /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -485,6 +567,9 @@ public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequestDescriptor desc /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -500,6 +585,9 @@ public virtual BulkPutRoleResponse BulkPutRole() /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -516,6 +604,9 @@ public virtual BulkPutRoleResponse BulkPutRole(Action /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -529,6 +620,9 @@ public virtual Task BulkPutRoleAsync(BulkPutRole /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -543,6 +637,9 @@ public virtual Task BulkPutRoleAsync(Cancellatio /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -558,6 +655,9 @@ public virtual Task BulkPutRoleAsync(Action /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -571,6 +671,9 @@ public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDesc /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -585,6 +688,9 @@ public virtual Task BulkPutRoleAsync(CancellationToken canc /// /// + /// Bulk create or update roles. + /// + /// /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// @@ -600,7 +706,10 @@ public virtual Task BulkPutRoleAsync(Action /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -613,7 +722,10 @@ public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequest reque /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -625,7 +737,10 @@ public virtual Task ChangePasswordAsync(ChangePasswordRe /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -638,7 +753,10 @@ public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequestDescri /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -652,7 +770,10 @@ public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsear /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -667,7 +788,10 @@ public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsear /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -681,7 +805,10 @@ public virtual ChangePasswordResponse ChangePassword() /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -696,7 +823,10 @@ public virtual ChangePasswordResponse ChangePassword(Action /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -708,7 +838,10 @@ public virtual Task ChangePasswordAsync(ChangePasswordRe /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -721,7 +854,10 @@ public virtual Task ChangePasswordAsync(Elastic.Clients. /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -735,7 +871,10 @@ public virtual Task ChangePasswordAsync(Elastic.Clients. /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -748,7 +887,10 @@ public virtual Task ChangePasswordAsync(CancellationToke /// /// - /// Changes the passwords of users in the native realm and built-in users. + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -762,7 +904,10 @@ public virtual Task ChangePasswordAsync(Action /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -776,7 +921,10 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -789,7 +937,10 @@ public virtual Task ClearApiKeyCacheAsync(ClearApiKeyC /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -803,7 +954,10 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -818,7 +972,10 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elastic /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -834,7 +991,10 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elastic /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -847,7 +1007,10 @@ public virtual Task ClearApiKeyCacheAsync(ClearApiKeyC /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -861,7 +1024,10 @@ public virtual Task ClearApiKeyCacheAsync(Elastic.Clie /// /// - /// Evicts a subset of all entries from the API key cache. + /// Clear the API key cache. + /// + /// + /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// /// Learn more about this API in the Elasticsearch documentation. @@ -876,7 +1042,11 @@ public virtual Task ClearApiKeyCacheAsync(Elastic.Clie /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -889,7 +1059,11 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPr /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -901,7 +1075,11 @@ public virtual Task ClearCachedPrivilegesAsync(Cl /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -914,7 +1092,11 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPr /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -928,7 +1110,11 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clien /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -943,7 +1129,11 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clien /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -955,7 +1145,11 @@ public virtual Task ClearCachedPrivilegesAsync(Cl /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -968,7 +1162,11 @@ public virtual Task ClearCachedPrivilegesAsync(El /// /// - /// Evicts application privileges from the native application privileges cache. + /// Clear the privileges cache. + /// + /// + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -982,7 +1180,10 @@ public virtual Task ClearCachedPrivilegesAsync(El /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -995,7 +1196,10 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequ /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1007,7 +1211,10 @@ public virtual Task ClearCachedRealmsAsync(ClearCache /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1020,7 +1227,10 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequ /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1034,7 +1244,10 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elast /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1049,7 +1262,10 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elast /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1061,7 +1277,10 @@ public virtual Task ClearCachedRealmsAsync(ClearCache /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1074,7 +1293,10 @@ public virtual Task ClearCachedRealmsAsync(Elastic.Cl /// /// - /// Evicts users from the user cache. Can completely clear the cache or evict specific users. + /// Clear the user cache. + /// + /// + /// Evict users from the user cache. You can completely clear the cache or evict specific users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1088,7 +1310,10 @@ public virtual Task ClearCachedRealmsAsync(Elastic.Cl /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1101,7 +1326,10 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1113,7 +1341,10 @@ public virtual Task ClearCachedRolesAsync(ClearCachedR /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1126,7 +1357,10 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1140,7 +1374,10 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elastic /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1155,7 +1392,10 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elastic /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1167,7 +1407,10 @@ public virtual Task ClearCachedRolesAsync(ClearCachedR /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1180,7 +1423,10 @@ public virtual Task ClearCachedRolesAsync(Elastic.Clie /// /// - /// Evicts roles from the native role cache. + /// Clear the roles cache. + /// + /// + /// Evict roles from the native role cache. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1194,7 +1440,10 @@ public virtual Task ClearCachedRolesAsync(Elastic.Clie /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1207,7 +1456,10 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCa /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1219,7 +1471,10 @@ public virtual Task ClearCachedServiceTokensAs /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1232,7 +1487,10 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCa /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1246,7 +1504,10 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1261,7 +1522,10 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1273,7 +1537,10 @@ public virtual Task ClearCachedServiceTokensAs /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1286,7 +1553,10 @@ public virtual Task ClearCachedServiceTokensAs /// /// - /// Evicts tokens from the service account token caches. + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1301,7 +1571,9 @@ public virtual Task ClearCachedServiceTokensAs /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1318,7 +1590,9 @@ public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1334,7 +1608,9 @@ public virtual Task CreateApiKeyAsync(CreateApiKeyRequest /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1351,7 +1627,9 @@ public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestD /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1369,7 +1647,9 @@ public virtual CreateApiKeyResponse CreateApiKey() /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1388,7 +1668,9 @@ public virtual CreateApiKeyResponse CreateApiKey(Action /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1405,7 +1687,9 @@ public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor d /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1423,7 +1707,9 @@ public virtual CreateApiKeyResponse CreateApiKey() /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1442,7 +1728,9 @@ public virtual CreateApiKeyResponse CreateApiKey(Action /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1458,7 +1746,9 @@ public virtual Task CreateApiKeyAsync(CreateApi /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1475,7 +1765,9 @@ public virtual Task CreateApiKeyAsync(Cancellat /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1493,7 +1785,9 @@ public virtual Task CreateApiKeyAsync(Action /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1509,7 +1803,9 @@ public virtual Task CreateApiKeyAsync(CreateApiKeyRequestD /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1526,7 +1822,9 @@ public virtual Task CreateApiKeyAsync(CancellationToken ca /// /// /// Create an API key. - /// Creates an API key for access without requiring basic authentication. + /// + /// + /// Create an API key for access without requiring basic authentication. /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. @@ -1543,48 +1841,569 @@ public virtual Task CreateApiKeyAsync(Action /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a cross-cluster API key. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequest request) + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a cross-cluster API key. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequest request, CancellationToken cancellationToken = default) + public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a cross-cluster API key. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. /// - /// Learn more about this API in the Elasticsearch documentation. - /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action> configureRequest) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action configureRequest) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name? name) { @@ -1595,7 +2414,10 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1610,7 +2432,10 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1624,7 +2449,10 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1639,7 +2467,10 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1651,7 +2482,10 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1664,7 +2498,10 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1678,7 +2515,10 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1691,7 +2531,10 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Creates a service accounts token for access without requiring basic authentication. + /// Create a service account token. + /// + /// + /// Create a service accounts token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1705,7 +2548,7 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1718,7 +2561,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1730,7 +2573,7 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1743,7 +2586,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1757,7 +2600,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elastic /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1772,7 +2615,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elastic /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1784,7 +2627,7 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1797,7 +2640,7 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// - /// Removes application privileges. + /// Delete application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1811,7 +2654,10 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1824,7 +2670,10 @@ public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequest request) /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1836,7 +2685,10 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequest reques /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1849,7 +2701,10 @@ public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequestDescriptor descrip /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1863,7 +2718,10 @@ public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1878,7 +2736,10 @@ public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1890,7 +2751,10 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequestDescrip /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1903,7 +2767,10 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// /// - /// Removes roles in the native realm. + /// Delete roles. + /// + /// + /// Delete roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1917,7 +2784,7 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1930,7 +2797,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequ /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1942,7 +2809,7 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1955,7 +2822,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequ /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1969,7 +2836,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elast /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1984,7 +2851,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elast /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1996,7 +2863,7 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2009,7 +2876,7 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// - /// Removes role mappings. + /// Delete role mappings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2023,7 +2890,10 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2036,7 +2906,10 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenR /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2048,7 +2921,10 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2061,7 +2937,10 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenR /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2075,7 +2954,10 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string s /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2090,7 +2972,10 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string s /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2102,7 +2987,10 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2115,7 +3003,10 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// - /// Deletes a service account token. + /// Delete service account tokens. + /// + /// + /// Delete service account tokens for a service in a specified namespace. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2129,7 +3020,10 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2142,7 +3036,10 @@ public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2154,7 +3051,10 @@ public virtual Task DeleteUserAsync(DeleteUserRequest reques /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2167,7 +3067,10 @@ public virtual DeleteUserResponse DeleteUser(DeleteUserRequestDescriptor descrip /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2181,7 +3084,10 @@ public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Usern /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2196,7 +3102,10 @@ public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Usern /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2208,7 +3117,10 @@ public virtual Task DeleteUserAsync(DeleteUserRequestDescrip /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2221,7 +3133,10 @@ public virtual Task DeleteUserAsync(Elastic.Clients.Elastics /// /// - /// Deletes users from the native realm. + /// Delete users. + /// + /// + /// Delete users from the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2235,7 +3150,10 @@ public virtual Task DeleteUserAsync(Elastic.Clients.Elastics /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2248,7 +3166,10 @@ public virtual DisableUserResponse DisableUser(DisableUserRequest request) /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2260,7 +3181,10 @@ public virtual Task DisableUserAsync(DisableUserRequest req /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2273,7 +3197,10 @@ public virtual DisableUserResponse DisableUser(DisableUserRequestDescriptor desc /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2287,7 +3214,10 @@ public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Use /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2302,7 +3232,10 @@ public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Use /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2314,7 +3247,10 @@ public virtual Task DisableUserAsync(DisableUserRequestDesc /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2327,7 +3263,10 @@ public virtual Task DisableUserAsync(Elastic.Clients.Elasti /// /// - /// Disables users in the native realm. + /// Disable users. + /// + /// + /// Disable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2341,7 +3280,10 @@ public virtual Task DisableUserAsync(Elastic.Clients.Elasti /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2354,7 +3296,10 @@ public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileR /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2366,7 +3311,10 @@ public virtual Task DisableUserProfileAsync(DisableU /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2379,7 +3327,10 @@ public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileR /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2393,7 +3344,10 @@ public virtual DisableUserProfileResponse DisableUserProfile(string uid) /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2408,7 +3362,10 @@ public virtual DisableUserProfileResponse DisableUserProfile(string uid, Action< /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2420,7 +3377,10 @@ public virtual Task DisableUserProfileAsync(DisableU /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2433,7 +3393,10 @@ public virtual Task DisableUserProfileAsync(string u /// /// - /// Disables a user profile so it's not visible in user profile searches. + /// Disable a user profile. + /// + /// + /// Disable user profiles so that they are not visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2447,7 +3410,10 @@ public virtual Task DisableUserProfileAsync(string u /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2460,7 +3426,10 @@ public virtual EnableUserResponse EnableUser(EnableUserRequest request) /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2472,7 +3441,10 @@ public virtual Task EnableUserAsync(EnableUserRequest reques /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2485,7 +3457,10 @@ public virtual EnableUserResponse EnableUser(EnableUserRequestDescriptor descrip /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2499,7 +3474,10 @@ public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Usern /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2514,7 +3492,10 @@ public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Usern /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2526,7 +3507,10 @@ public virtual Task EnableUserAsync(EnableUserRequestDescrip /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2539,7 +3523,10 @@ public virtual Task EnableUserAsync(Elastic.Clients.Elastics /// /// - /// Enables users in the native realm. + /// Enable users. + /// + /// + /// Enable users in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2553,7 +3540,10 @@ public virtual Task EnableUserAsync(Elastic.Clients.Elastics /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2566,7 +3556,10 @@ public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequ /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2578,7 +3571,10 @@ public virtual Task EnableUserProfileAsync(EnableUser /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2591,7 +3587,10 @@ public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequ /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2605,7 +3604,10 @@ public virtual EnableUserProfileResponse EnableUserProfile(string uid) /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2620,7 +3622,10 @@ public virtual EnableUserProfileResponse EnableUserProfile(string uid, Action /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2632,7 +3637,10 @@ public virtual Task EnableUserProfileAsync(EnableUser /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2645,7 +3653,10 @@ public virtual Task EnableUserProfileAsync(string uid /// /// - /// Enables a user profile so it's visible in user profile searches. + /// Enable a user profile. + /// + /// + /// Enable user profiles to make them visible in user profile searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2659,7 +3670,10 @@ public virtual Task EnableUserProfileAsync(string uid /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2672,7 +3686,10 @@ public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequest request) /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2684,7 +3701,10 @@ public virtual Task EnrollKibanaAsync(EnrollKibanaRequest /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2697,7 +3717,10 @@ public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequestDescriptor d /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2711,7 +3734,10 @@ public virtual EnrollKibanaResponse EnrollKibana() /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2726,7 +3752,10 @@ public virtual EnrollKibanaResponse EnrollKibana(Action /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2738,7 +3767,10 @@ public virtual Task EnrollKibanaAsync(EnrollKibanaRequestD /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2751,7 +3783,10 @@ public virtual Task EnrollKibanaAsync(CancellationToken ca /// /// - /// Enables a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. + /// Enroll Kibana. + /// + /// + /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2765,7 +3800,10 @@ public virtual Task EnrollKibanaAsync(Action /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2778,7 +3816,10 @@ public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequest request) /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2790,7 +3831,10 @@ public virtual Task EnrollNodeAsync(EnrollNodeRequest reques /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2803,7 +3847,10 @@ public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequestDescriptor descrip /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2817,7 +3864,10 @@ public virtual EnrollNodeResponse EnrollNode() /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2832,7 +3882,10 @@ public virtual EnrollNodeResponse EnrollNode(Action /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2844,7 +3897,10 @@ public virtual Task EnrollNodeAsync(EnrollNodeRequestDescrip /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2857,7 +3913,10 @@ public virtual Task EnrollNodeAsync(CancellationToken cancel /// /// - /// Allows a new node to join an existing cluster with security features enabled. + /// Enroll a node. + /// + /// + /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2872,6 +3931,8 @@ public virtual Task EnrollNodeAsync(Action /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2888,6 +3949,8 @@ public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request) /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2903,6 +3966,8 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequest request, /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2919,6 +3984,8 @@ public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequestDescriptor descriptor /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2936,6 +4003,8 @@ public virtual GetApiKeyResponse GetApiKey() /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2954,6 +4023,8 @@ public virtual GetApiKeyResponse GetApiKey(Action co /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2969,6 +4040,8 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -2985,6 +4058,8 @@ public virtual Task GetApiKeyAsync(CancellationToken cancella /// /// /// Get API key information. + /// + /// /// Retrieves information for one or more API keys. /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. @@ -3001,7 +4076,10 @@ public virtual Task GetApiKeyAsync(Action /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3014,7 +4092,10 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivi /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3026,7 +4107,10 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3039,7 +4123,10 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivi /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3053,7 +4140,10 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges() /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3068,7 +4158,10 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(Action /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3080,7 +4173,10 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3093,7 +4189,10 @@ public virtual Task GetBuiltinPrivilegesAsync(Canc /// /// - /// Retrieves the list of cluster privileges and index privileges that are available in this version of Elasticsearch. + /// Get builtin privileges. + /// + /// + /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3107,7 +4206,7 @@ public virtual Task GetBuiltinPrivilegesAsync(Acti /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3120,7 +4219,7 @@ public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequest request) /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3132,7 +4231,7 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3145,7 +4244,7 @@ public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequestDescripto /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3159,7 +4258,7 @@ public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3174,7 +4273,7 @@ public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3188,7 +4287,7 @@ public virtual GetPrivilegesResponse GetPrivileges() /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3203,7 +4302,7 @@ public virtual GetPrivilegesResponse GetPrivileges(Action /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3215,7 +4314,7 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3228,7 +4327,7 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3242,7 +4341,7 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3255,7 +4354,7 @@ public virtual Task GetPrivilegesAsync(CancellationToken /// /// - /// Retrieves application privileges. + /// Get application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3269,8 +4368,10 @@ public virtual Task GetPrivilegesAsync(Action /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3283,8 +4384,10 @@ public virtual GetRoleResponse GetRole(GetRoleRequest request) /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3296,8 +4399,10 @@ public virtual Task GetRoleAsync(GetRoleRequest request, Cancel /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3310,8 +4415,10 @@ public virtual GetRoleResponse GetRole(GetRoleRequestDescriptor descriptor) /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3325,8 +4432,10 @@ public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3341,8 +4450,10 @@ public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3356,8 +4467,10 @@ public virtual GetRoleResponse GetRole() /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3372,8 +4485,10 @@ public virtual GetRoleResponse GetRole(Action configur /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3385,8 +4500,10 @@ public virtual Task GetRoleAsync(GetRoleRequestDescriptor descr /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3399,8 +4516,10 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3414,8 +4533,10 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3428,8 +4549,10 @@ public virtual Task GetRoleAsync(CancellationToken cancellation /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The get roles API cannot retrieve roles that are defined in roles files. + /// Get roles. + /// + /// + /// Get roles in the native realm. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3443,7 +4566,12 @@ public virtual Task GetRoleAsync(Action /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3456,7 +4584,12 @@ public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequest reque /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3468,7 +4601,12 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3481,7 +4619,12 @@ public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequestDescri /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3495,7 +4638,12 @@ public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsear /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3510,7 +4658,12 @@ public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsear /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3524,7 +4677,12 @@ public virtual GetRoleMappingResponse GetRoleMapping() /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3539,7 +4697,12 @@ public virtual GetRoleMappingResponse GetRoleMapping(Action /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3551,7 +4714,12 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3564,7 +4732,12 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3578,7 +4751,12 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3591,7 +4769,12 @@ public virtual Task GetRoleMappingAsync(CancellationToke /// /// - /// Retrieves role mappings. + /// Get role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3605,7 +4788,10 @@ public virtual Task GetRoleMappingAsync(Action /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3618,7 +4804,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsR /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3630,7 +4819,10 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3643,7 +4835,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsR /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3657,7 +4852,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3672,7 +4870,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3686,7 +4887,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts() /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3701,7 +4905,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(Action /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3713,7 +4920,10 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3726,7 +4936,10 @@ public virtual Task GetServiceAccountsAsync(string? /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3740,7 +4953,10 @@ public virtual Task GetServiceAccountsAsync(string? /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3753,7 +4969,10 @@ public virtual Task GetServiceAccountsAsync(Cancella /// /// - /// This API returns a list of service accounts that match the provided path parameter(s). + /// Get service accounts. + /// + /// + /// Get a list of service accounts that match the provided path parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3767,7 +4986,7 @@ public virtual Task GetServiceAccountsAsync(Action /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3780,7 +4999,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCre /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3792,7 +5011,7 @@ public virtual Task GetServiceCredentialsAsync(Ge /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3805,7 +5024,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCre /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3819,7 +5038,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, El /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3834,7 +5053,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, El /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3846,7 +5065,7 @@ public virtual Task GetServiceCredentialsAsync(Ge /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3859,7 +5078,7 @@ public virtual Task GetServiceCredentialsAsync(st /// /// - /// Retrieves information of all service credentials for a service account. + /// Get service account credentials. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3873,7 +5092,10 @@ public virtual Task GetServiceCredentialsAsync(st /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3886,7 +5108,10 @@ public virtual GetTokenResponse GetToken(GetTokenRequest request) /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3898,7 +5123,10 @@ public virtual Task GetTokenAsync(GetTokenRequest request, Can /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3911,7 +5139,10 @@ public virtual GetTokenResponse GetToken(GetTokenRequestDescriptor descriptor) /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3925,7 +5156,10 @@ public virtual GetTokenResponse GetToken() /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3940,7 +5174,10 @@ public virtual GetTokenResponse GetToken(Action confi /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3952,7 +5189,10 @@ public virtual Task GetTokenAsync(GetTokenRequestDescriptor de /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3965,7 +5205,10 @@ public virtual Task GetTokenAsync(CancellationToken cancellati /// /// - /// Creates a bearer token for access without requiring basic authentication. + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3979,7 +5222,10 @@ public virtual Task GetTokenAsync(Action /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3992,7 +5238,10 @@ public virtual GetUserResponse GetUser(GetUserRequest request) /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4004,7 +5253,10 @@ public virtual Task GetUserAsync(GetUserRequest request, Cancel /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4017,7 +5269,10 @@ public virtual GetUserResponse GetUser(GetUserRequestDescriptor descriptor) /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4031,7 +5286,10 @@ public virtual GetUserResponse GetUser(IReadOnlyCollection /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4046,7 +5304,10 @@ public virtual GetUserResponse GetUser(IReadOnlyCollection /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4060,7 +5321,10 @@ public virtual GetUserResponse GetUser() /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4075,7 +5339,10 @@ public virtual GetUserResponse GetUser(Action configur /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4087,7 +5354,10 @@ public virtual Task GetUserAsync(GetUserRequestDescriptor descr /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4100,7 +5370,10 @@ public virtual Task GetUserAsync(IReadOnlyCollection /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4114,7 +5387,10 @@ public virtual Task GetUserAsync(IReadOnlyCollection /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4127,7 +5403,10 @@ public virtual Task GetUserAsync(CancellationToken cancellation /// /// - /// Retrieves information about users in the native realm and built-in users. + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4141,7 +5420,7 @@ public virtual Task GetUserAsync(Action /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4154,7 +5433,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequ /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4166,7 +5445,7 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4179,7 +5458,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequ /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4193,7 +5472,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges() /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4208,7 +5487,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(Action /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4220,7 +5499,7 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4233,7 +5512,7 @@ public virtual Task GetUserPrivilegesAsync(Cancellati /// /// - /// Retrieves security privileges for the logged in user. + /// Get user privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4247,7 +5526,10 @@ public virtual Task GetUserPrivilegesAsync(Action /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4260,7 +5542,10 @@ public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequest reque /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4272,7 +5557,10 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4285,7 +5573,10 @@ public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequestDescri /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4299,7 +5590,10 @@ public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4314,7 +5608,10 @@ public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4326,7 +5623,10 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4339,7 +5639,10 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// - /// Retrieves a user's profile using the unique profile ID. + /// Get a user profile. + /// + /// + /// Get a user's profile using the unique profile ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4353,8 +5656,11 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4381,8 +5687,11 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequest request) /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4408,8 +5717,11 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequest req /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4436,8 +5748,11 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDesc /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4465,8 +5780,11 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4495,8 +5813,11 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4523,8 +5844,11 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor desc /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4552,8 +5876,11 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4582,8 +5909,11 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4609,8 +5939,11 @@ public virtual Task GrantApiKeyAsync(GrantApiKey /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4637,8 +5970,11 @@ public virtual Task GrantApiKeyAsync(Cancellatio /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4666,8 +6002,11 @@ public virtual Task GrantApiKeyAsync(Action /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4693,8 +6032,11 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDesc /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4721,8 +6063,11 @@ public virtual Task GrantApiKeyAsync(CancellationToken canc /// /// - /// Creates an API key on behalf of another user. - /// This API is similar to Create API keys, however it creates the API key for a user that is different than the user that runs the API. + /// Grant an API key. + /// + /// + /// Create an API key on behalf of another user. + /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. /// It is not possible to use this API to create an API key without that user’s credentials. /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. @@ -4751,7 +6096,9 @@ public virtual Task GrantApiKeyAsync(Action /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4765,7 +6112,9 @@ public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequest request) /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4778,7 +6127,9 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4792,7 +6143,9 @@ public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequestDescripto /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4807,7 +6160,9 @@ public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4823,7 +6178,9 @@ public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4838,7 +6195,9 @@ public virtual HasPrivilegesResponse HasPrivileges() /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4854,7 +6213,9 @@ public virtual HasPrivilegesResponse HasPrivileges(Action /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4867,7 +6228,9 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4881,7 +6244,9 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4896,7 +6261,9 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4910,7 +6277,9 @@ public virtual Task HasPrivilegesAsync(CancellationToken /// /// /// Check user privileges. - /// Determines whether the specified user has a specified list of privileges. + /// + /// + /// Determine whether the specified user has a specified list of privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4924,7 +6293,10 @@ public virtual Task HasPrivilegesAsync(Action /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4937,7 +6309,10 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPriv /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4949,7 +6324,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4962,7 +6340,10 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPriv /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4976,7 +6357,10 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile() /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4991,7 +6375,10 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(Action< /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5003,7 +6390,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5016,7 +6406,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// - /// Determines whether the users associated with the specified profile IDs have all the requested privileges. + /// Check user profile privileges. + /// + /// + /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5031,7 +6424,10 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5049,7 +6445,7 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5065,7 +6461,10 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5083,7 +6482,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5098,7 +6497,10 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5116,7 +6518,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5132,7 +6534,10 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5150,7 +6555,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5166,8 +6571,11 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey() /// /// - /// Invalidate API keys. - /// Invalidates one or more API keys. + /// Invalidate API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5185,7 +6593,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey() /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5203,7 +6611,10 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(Action /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5221,7 +6632,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(Action /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5236,7 +6647,10 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5254,7 +6668,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5270,7 +6684,10 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// Invalidate API keys. - /// Invalidates one or more API keys. + /// + /// + /// This API invalidates API keys created by the create API key or grant API key APIs. + /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. /// The manage_api_key privilege allows deleting any API keys. /// The manage_own_api_key only allows deleting API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: @@ -5288,7 +6705,7 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// - /// Or, if the request is issued by an API key, i.e. an API key invalidates itself, specify its ID in the ids field. + /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. /// /// /// @@ -5304,7 +6721,16 @@ public virtual Task InvalidateApiKeyAsync(Action /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5317,7 +6743,16 @@ public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequest re /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5329,7 +6764,16 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5342,7 +6786,16 @@ public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequestDes /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5356,7 +6809,16 @@ public virtual InvalidateTokenResponse InvalidateToken() /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5371,7 +6833,16 @@ public virtual InvalidateTokenResponse InvalidateToken(Action /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5383,7 +6854,16 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5396,7 +6876,16 @@ public virtual Task InvalidateTokenAsync(CancellationTo /// /// - /// Invalidates one or more access tokens or refresh tokens. + /// Invalidate a token. + /// + /// + /// The access tokens returned by the get token API have a finite period of time for which they are valid. + /// After that time period, they can no longer be used. + /// The time period is defined by the xpack.security.authc.token.timeout setting. + /// + /// + /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5410,7 +6899,7 @@ public virtual Task InvalidateTokenAsync(Action /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5423,7 +6912,7 @@ public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequest request) /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5435,7 +6924,7 @@ public virtual Task PutPrivilegesAsync(PutPrivilegesReque /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5448,7 +6937,7 @@ public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequestDescripto /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5462,7 +6951,7 @@ public virtual PutPrivilegesResponse PutPrivileges() /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5477,7 +6966,7 @@ public virtual PutPrivilegesResponse PutPrivileges(Action /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5489,7 +6978,7 @@ public virtual Task PutPrivilegesAsync(PutPrivilegesReque /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5502,7 +6991,7 @@ public virtual Task PutPrivilegesAsync(CancellationToken /// /// - /// Adds or updates application privileges. + /// Create or update application privileges. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5516,8 +7005,12 @@ public virtual Task PutPrivilegesAsync(Action /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5530,8 +7023,12 @@ public virtual PutRoleResponse PutRole(PutRoleRequest request) /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5543,8 +7040,12 @@ public virtual Task PutRoleAsync(PutRoleRequest request, Cancel /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5557,8 +7058,12 @@ public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5572,8 +7077,12 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5588,8 +7097,12 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5602,8 +7115,12 @@ public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5617,8 +7134,12 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5633,8 +7154,12 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5646,8 +7171,12 @@ public virtual Task PutRoleAsync(PutRoleRequestDescr /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5660,8 +7189,12 @@ public virtual Task PutRoleAsync(Elastic.Clients.Ela /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5675,8 +7208,12 @@ public virtual Task PutRoleAsync(Elastic.Clients.Ela /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5688,8 +7225,12 @@ public virtual Task PutRoleAsync(PutRoleRequestDescriptor descr /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5702,8 +7243,12 @@ public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5717,7 +7262,16 @@ public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5730,7 +7284,16 @@ public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequest reque /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5742,7 +7305,16 @@ public virtual Task PutRoleMappingAsync(PutRoleMappingRe /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5755,7 +7327,16 @@ public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequestDescri /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5769,7 +7350,16 @@ public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsear /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5784,7 +7374,16 @@ public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsear /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5796,7 +7395,16 @@ public virtual Task PutRoleMappingAsync(PutRoleMappingRe /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5809,7 +7417,16 @@ public virtual Task PutRoleMappingAsync(Elastic.Clients. /// /// - /// Creates and updates role mappings. + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5823,7 +7440,11 @@ public virtual Task PutRoleMappingAsync(Elastic.Clients. /// /// - /// Adds and updates users in the native realm. These users are commonly referred to as native users. + /// Create or update users. + /// + /// + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user’s password without updating any other fields, use the change password API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5836,7 +7457,11 @@ public virtual PutUserResponse PutUser(PutUserRequest request) /// /// - /// Adds and updates users in the native realm. These users are commonly referred to as native users. + /// Create or update users. + /// + /// + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user’s password without updating any other fields, use the change password API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5848,7 +7473,11 @@ public virtual Task PutUserAsync(PutUserRequest request, Cancel /// /// - /// Adds and updates users in the native realm. These users are commonly referred to as native users. + /// Create or update users. + /// + /// + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user’s password without updating any other fields, use the change password API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5861,7 +7490,11 @@ public virtual PutUserResponse PutUser(PutUserRequestDescriptor descriptor) /// /// - /// Adds and updates users in the native realm. These users are commonly referred to as native users. + /// Create or update users. + /// + /// + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user’s password without updating any other fields, use the change password API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5873,8 +7506,10 @@ public virtual Task PutUserAsync(PutUserRequestDescriptor descr /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5887,8 +7522,10 @@ public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequest request) /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5900,8 +7537,10 @@ public virtual Task QueryApiKeysAsync(QueryApiKeysRequest /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5914,8 +7553,10 @@ public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestD /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5929,8 +7570,10 @@ public virtual QueryApiKeysResponse QueryApiKeys() /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5945,8 +7588,10 @@ public virtual QueryApiKeysResponse QueryApiKeys(Action /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5959,8 +7604,10 @@ public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor d /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5974,8 +7621,10 @@ public virtual QueryApiKeysResponse QueryApiKeys() /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5990,8 +7639,10 @@ public virtual QueryApiKeysResponse QueryApiKeys(Action /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6003,8 +7654,10 @@ public virtual Task QueryApiKeysAsync(QueryApiK /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6017,8 +7670,10 @@ public virtual Task QueryApiKeysAsync(Cancellat /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6032,8 +7687,10 @@ public virtual Task QueryApiKeysAsync(Action /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6045,8 +7702,10 @@ public virtual Task QueryApiKeysAsync(QueryApiKeysRequestD /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6059,8 +7718,10 @@ public virtual Task QueryApiKeysAsync(CancellationToken ca /// /// - /// Query API keys. - /// Retrieves a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6074,7 +7735,10 @@ public virtual Task QueryApiKeysAsync(Action /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6087,7 +7751,10 @@ public virtual QueryRoleResponse QueryRole(QueryRoleRequest request) /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6099,7 +7766,10 @@ public virtual Task QueryRoleAsync(QueryRoleRequest request, /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6112,7 +7782,10 @@ public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6126,7 +7799,10 @@ public virtual QueryRoleResponse QueryRole() /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6141,7 +7817,10 @@ public virtual QueryRoleResponse QueryRole(Action /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6154,7 +7833,10 @@ public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6168,7 +7850,10 @@ public virtual QueryRoleResponse QueryRole() /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6183,7 +7868,10 @@ public virtual QueryRoleResponse QueryRole(Action co /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6195,7 +7883,10 @@ public virtual Task QueryRoleAsync(QueryRoleReques /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6208,7 +7899,10 @@ public virtual Task QueryRoleAsync(CancellationTok /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6222,7 +7916,10 @@ public virtual Task QueryRoleAsync(Action /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6234,7 +7931,10 @@ public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6247,7 +7947,10 @@ public virtual Task QueryRoleAsync(CancellationToken cancella /// /// - /// Retrieves roles in a paginated manner. You can optionally filter the results with a query. + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6261,7 +7964,11 @@ public virtual Task QueryRoleAsync(Action /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6274,7 +7981,11 @@ public virtual QueryUserResponse QueryUser(QueryUserRequest request) /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6286,7 +7997,11 @@ public virtual Task QueryUserAsync(QueryUserRequest request, /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6299,7 +8014,11 @@ public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6313,7 +8032,11 @@ public virtual QueryUserResponse QueryUser() /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6328,7 +8051,11 @@ public virtual QueryUserResponse QueryUser(Action /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6341,7 +8068,11 @@ public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6355,7 +8086,11 @@ public virtual QueryUserResponse QueryUser() /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6370,7 +8105,11 @@ public virtual QueryUserResponse QueryUser(Action co /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6382,7 +8121,11 @@ public virtual Task QueryUserAsync(QueryUserReques /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6395,7 +8138,11 @@ public virtual Task QueryUserAsync(CancellationTok /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6409,7 +8156,11 @@ public virtual Task QueryUserAsync(Action /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6421,7 +8172,11 @@ public virtual Task QueryUserAsync(QueryUserRequestDescriptor /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6434,7 +8189,11 @@ public virtual Task QueryUserAsync(CancellationToken cancella /// /// - /// Retrieves information for Users in a paginated manner. You can optionally filter the results with a query. + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6448,7 +8207,10 @@ public virtual Task QueryUserAsync(Action /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6461,7 +8223,10 @@ public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6473,7 +8238,10 @@ public virtual Task SamlAuthenticateAsync(SamlAuthenti /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6486,7 +8254,10 @@ public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6500,7 +8271,10 @@ public virtual SamlAuthenticateResponse SamlAuthenticate() /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6515,7 +8289,10 @@ public virtual SamlAuthenticateResponse SamlAuthenticate(Action /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6527,7 +8304,10 @@ public virtual Task SamlAuthenticateAsync(SamlAuthenti /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6540,7 +8320,10 @@ public virtual Task SamlAuthenticateAsync(Cancellation /// /// - /// Submits a SAML Response message to Elasticsearch for consumption. + /// Authenticate SAML. + /// + /// + /// Submits a SAML response message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6554,6 +8337,9 @@ public virtual Task SamlAuthenticateAsync(Action /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6567,6 +8353,9 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutR /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6579,6 +8368,9 @@ public virtual Task SamlCompleteLogoutAsync(SamlComp /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6592,6 +8384,9 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutR /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6606,6 +8401,9 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout() /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6621,6 +8419,9 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout(Action /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6633,6 +8434,9 @@ public virtual Task SamlCompleteLogoutAsync(SamlComp /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6646,6 +8450,9 @@ public virtual Task SamlCompleteLogoutAsync(Cancella /// /// + /// Logout of SAML completely. + /// + /// /// Verifies the logout response sent from the SAML IdP. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6660,6 +8467,9 @@ public virtual Task SamlCompleteLogoutAsync(Action /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6673,6 +8483,9 @@ public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequest reque /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6685,6 +8498,9 @@ public virtual Task SamlInvalidateAsync(SamlInvalidateRe /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6698,6 +8514,9 @@ public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequestDescri /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6712,6 +8531,9 @@ public virtual SamlInvalidateResponse SamlInvalidate() /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6727,6 +8549,9 @@ public virtual SamlInvalidateResponse SamlInvalidate(Action /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6739,6 +8564,9 @@ public virtual Task SamlInvalidateAsync(SamlInvalidateRe /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6752,6 +8580,9 @@ public virtual Task SamlInvalidateAsync(CancellationToke /// /// + /// Invalidate SAML. + /// + /// /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6766,6 +8597,9 @@ public virtual Task SamlInvalidateAsync(Action /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6779,6 +8613,9 @@ public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequest request) /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6791,6 +8628,9 @@ public virtual Task SamlLogoutAsync(SamlLogoutRequest reques /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6804,6 +8644,9 @@ public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequestDescriptor descrip /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6818,6 +8661,9 @@ public virtual SamlLogoutResponse SamlLogout() /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6833,6 +8679,9 @@ public virtual SamlLogoutResponse SamlLogout(Action /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6845,6 +8694,9 @@ public virtual Task SamlLogoutAsync(SamlLogoutRequestDescrip /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6858,6 +8710,9 @@ public virtual Task SamlLogoutAsync(CancellationToken cancel /// /// + /// Logout of SAML. + /// + /// /// Submits a request to invalidate an access token and refresh token. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6872,7 +8727,10 @@ public virtual Task SamlLogoutAsync(Action /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6885,7 +8743,10 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlP /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6897,7 +8758,10 @@ public virtual Task SamlPrepareAuthentication /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6910,7 +8774,10 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlP /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6924,7 +8791,10 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication() /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6939,7 +8809,10 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(Actio /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6951,7 +8824,10 @@ public virtual Task SamlPrepareAuthentication /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6964,7 +8840,10 @@ public virtual Task SamlPrepareAuthentication /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Prepare SAML authentication. + /// + /// + /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6978,6 +8857,9 @@ public virtual Task SamlPrepareAuthentication /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -6991,6 +8873,9 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(S /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7003,6 +8888,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7016,6 +8904,9 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(S /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7030,6 +8921,9 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(E /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7045,6 +8939,9 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(E /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7057,6 +8954,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7070,6 +8970,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Create SAML service provider metadata. + /// + /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7084,6 +8987,9 @@ public virtual Task SamlServiceProviderMeta /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7097,6 +9003,9 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfil /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7109,6 +9018,9 @@ public virtual Task SuggestUserProfilesAsync(Sugges /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7122,6 +9034,9 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfil /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7136,6 +9051,9 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles() /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7151,6 +9069,9 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles(Action /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7163,6 +9084,9 @@ public virtual Task SuggestUserProfilesAsync(Sugges /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7176,6 +9100,9 @@ public virtual Task SuggestUserProfilesAsync(Cancel /// /// + /// Suggest a user profile. + /// + /// /// Get suggestions for user profiles that match specified search criteria. /// /// Learn more about this API in the Elasticsearch documentation. @@ -7191,6 +9118,8 @@ public virtual Task SuggestUserProfilesAsync(Action /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7217,6 +9146,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7242,6 +9173,8 @@ public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7268,6 +9201,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestD /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7295,6 +9230,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elas /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7323,6 +9260,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elas /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7349,6 +9288,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor d /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7376,6 +9317,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.I /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7404,6 +9347,8 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.I /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7429,6 +9374,8 @@ public virtual Task UpdateApiKeyAsync(UpdateApi /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7455,6 +9402,8 @@ public virtual Task UpdateApiKeyAsync(Elastic.C /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7482,6 +9431,8 @@ public virtual Task UpdateApiKeyAsync(Elastic.C /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7507,6 +9458,8 @@ public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestD /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7533,6 +9486,8 @@ public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elas /// /// /// Update an API key. + /// + /// /// Updates attributes of an existing API key. /// Users can only update API keys that they created or that were granted to them. /// Use this API to update API keys created by the create API Key or grant API Key APIs. @@ -7559,7 +9514,239 @@ public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elas /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update a cross-cluster API key. + /// + /// + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7572,7 +9759,10 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserPro /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7584,7 +9774,10 @@ public virtual Task UpdateUserProfileDataAsync(Up /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7597,7 +9790,10 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserPro /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7611,7 +9807,10 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid) /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7626,7 +9825,10 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid, A /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7638,7 +9840,10 @@ public virtual Task UpdateUserProfileDataAsync(Up /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7651,7 +9856,10 @@ public virtual Task UpdateUserProfileDataAsync(st /// /// - /// Updates specific data for the user profile that's associated with the specified unique ID. + /// Update user profile data. + /// + /// + /// Update specific data for the user profile that is associated with a unique ID. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index cc63541ea80..4509b309db5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -943,6 +943,112 @@ public virtual Task GetRepositoryAsync(Action(descriptor, cancellationToken); } + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(RepositoryVerifyIntegrityRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RepositoryVerifyIntegrityAsync(RepositoryVerifyIntegrityRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(RepositoryVerifyIntegrityRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elastic.Clients.Elasticsearch.Names name) + { + var descriptor = new RepositoryVerifyIntegrityRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + { + var descriptor = new RepositoryVerifyIntegrityRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RepositoryVerifyIntegrityAsync(RepositoryVerifyIntegrityRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RepositoryVerifyIntegrityAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) + { + var descriptor = new RepositoryVerifyIntegrityRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Verifies the integrity of the contents of a snapshot repository + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RepositoryVerifyIntegrityAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RepositoryVerifyIntegrityRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Restores a snapshot. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs index 254c5209727..aef9a3c6a51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -43,7 +43,7 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequest request) @@ -56,7 +56,7 @@ public virtual CancelResponse Cancel(CancelRequest request) /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task CancelAsync(CancelRequest request, Cancellat /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskId) @@ -95,7 +95,7 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskId, Action configureRequest) @@ -110,7 +110,7 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel() @@ -124,7 +124,7 @@ public virtual CancelResponse Cancel() /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Action configureRequest) @@ -139,7 +139,7 @@ public virtual CancelResponse Cancel(Action configureRe /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -151,7 +151,7 @@ public virtual Task CancelAsync(CancelRequestDescriptor descript /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.TaskId? taskId, CancellationToken cancellationToken = default) { @@ -164,7 +164,7 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.TaskId? taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -178,7 +178,7 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task CancelAsync(CancellationToken cancellationTo /// /// Cancels a task, if it can be cancelled through an API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -206,7 +206,7 @@ public virtual Task CancelAsync(Action /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequest request) @@ -220,7 +220,7 @@ public virtual GetTasksResponse Get(GetTasksRequest request) /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) { @@ -233,7 +233,7 @@ public virtual Task GetAsync(GetTasksRequest request, Cancella /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) @@ -247,7 +247,7 @@ public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) @@ -262,7 +262,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) @@ -278,7 +278,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Act /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -291,7 +291,7 @@ public virtual Task GetAsync(GetTasksRequestDescriptor descrip /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { @@ -305,7 +305,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// Get task information. /// Returns information about the tasks currently executing in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -319,7 +319,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) @@ -332,7 +332,7 @@ public virtual ListResponse List(ListRequest request) /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) { @@ -344,7 +344,7 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequestDescriptor descriptor) @@ -357,7 +357,7 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List() @@ -371,7 +371,7 @@ public virtual ListResponse List() /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(Action configureRequest) @@ -386,7 +386,7 @@ public virtual ListResponse List(Action configureRequest) /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -398,7 +398,7 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) { @@ -411,7 +411,7 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index c28ef2403d0..d4166fe3227 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -124,7 +124,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequest request) @@ -139,7 +139,7 @@ public virtual BulkResponse Bulk(BulkRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -153,7 +153,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) @@ -168,7 +168,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) @@ -184,7 +184,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -201,7 +201,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk() @@ -217,7 +217,7 @@ public virtual BulkResponse Bulk() /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Action> configureRequest) @@ -234,7 +234,7 @@ public virtual BulkResponse Bulk(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) @@ -249,7 +249,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) @@ -265,7 +265,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -282,7 +282,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk() @@ -298,7 +298,7 @@ public virtual BulkResponse Bulk() /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Action configureRequest) @@ -315,7 +315,7 @@ public virtual BulkResponse Bulk(Action configureRequest) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -329,7 +329,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -344,7 +344,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -360,7 +360,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -375,7 +375,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -391,7 +391,7 @@ public virtual Task BulkAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -405,7 +405,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -420,7 +420,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -436,7 +436,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -451,7 +451,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -463,9 +463,12 @@ public virtual Task BulkAsync(Action config /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) @@ -476,9 +479,12 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. + /// + /// + /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -488,9 +494,12 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) @@ -501,9 +510,12 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor desc /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. + /// + /// + /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll() @@ -515,9 +527,12 @@ public virtual ClearScrollResponse ClearScroll() /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(Action configureRequest) @@ -530,9 +545,12 @@ public virtual ClearScrollResponse ClearScroll(Action /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. + /// + /// + /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -542,9 +560,12 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -555,9 +576,12 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// - /// Clears the search context and results for a scrolling search. + /// Clear a scrolling search. + /// + /// + /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -569,9 +593,15 @@ public virtual Task ClearScrollAsync(Action /// - /// Closes a point-in-time. + /// Close a point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) @@ -582,9 +612,15 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -594,9 +630,15 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// - /// Closes a point-in-time. + /// Close a point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) @@ -607,9 +649,15 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime() @@ -621,9 +669,15 @@ public virtual ClosePointInTimeResponse ClosePointInTime() /// /// - /// Closes a point-in-time. + /// Close a point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) @@ -636,9 +690,15 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Action /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -648,9 +708,15 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// - /// Closes a point-in-time. + /// Close a point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -661,9 +727,15 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// /// - /// Closes a point-in-time. + /// Close a point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1990,7 +2062,11 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2003,7 +2079,11 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQ /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2015,7 +2095,11 @@ public virtual Task DeleteByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2028,7 +2112,11 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQ /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2042,7 +2130,11 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.C /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2057,7 +2149,11 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.C /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2069,7 +2165,11 @@ public virtual Task DeleteByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2082,7 +2182,11 @@ public virtual Task DeleteByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Delete By Query operation. + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3533,9 +3637,15 @@ public virtual Task> ExplainAsync(Elastic. /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3548,9 +3658,15 @@ public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3562,9 +3678,15 @@ public virtual Task FieldCapsAsync(FieldCapsRequest request, /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3577,9 +3699,15 @@ public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3593,9 +3721,15 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsea /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3610,9 +3744,15 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsea /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3626,9 +3766,15 @@ public virtual FieldCapsResponse FieldCaps() /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3643,9 +3789,15 @@ public virtual FieldCapsResponse FieldCaps(Action /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3658,9 +3810,15 @@ public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3674,9 +3832,15 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3691,9 +3855,15 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3707,9 +3877,15 @@ public virtual FieldCapsResponse FieldCaps() /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3724,9 +3900,15 @@ public virtual FieldCapsResponse FieldCaps(Action co /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3738,9 +3920,15 @@ public virtual Task FieldCapsAsync(FieldCapsReques /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3753,9 +3941,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3769,9 +3963,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3784,9 +3984,15 @@ public virtual Task FieldCapsAsync(CancellationTok /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3800,9 +4006,15 @@ public virtual Task FieldCapsAsync(Action /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3814,9 +4026,15 @@ public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3829,9 +4047,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsea /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3845,9 +4069,15 @@ public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsea /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3860,9 +4090,15 @@ public virtual Task FieldCapsAsync(CancellationToken cancella /// /// - /// The field capabilities API returns the information about the capabilities of fields among multiple indices. - /// The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type - /// of keyword is returned as any other field that belongs to the keyword family. + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4431,7 +4667,10 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4444,7 +4683,10 @@ public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4456,7 +4698,10 @@ public virtual Task GetScriptContextAsync(GetScriptCon /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4469,7 +4714,10 @@ public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4483,7 +4731,10 @@ public virtual GetScriptContextResponse GetScriptContext() /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4498,7 +4749,10 @@ public virtual GetScriptContextResponse GetScriptContext(Action /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4510,7 +4764,10 @@ public virtual Task GetScriptContextAsync(GetScriptCon /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4523,7 +4780,10 @@ public virtual Task GetScriptContextAsync(Cancellation /// /// - /// Returns all script contexts. + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4537,7 +4797,10 @@ public virtual Task GetScriptContextAsync(Action /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4550,7 +4813,10 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesR /// /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4562,7 +4828,10 @@ public virtual Task GetScriptLanguagesAsync(GetScrip /// /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4575,7 +4844,10 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesR /// /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4589,7 +4861,10 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages() /// /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4604,7 +4879,10 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(Action /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4616,7 +4894,10 @@ public virtual Task GetScriptLanguagesAsync(GetScrip /// /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4629,7 +4910,10 @@ public virtual Task GetScriptLanguagesAsync(Cancella /// /// - /// Returns available script types, languages and contexts + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5587,7 +5871,13 @@ public virtual Task InfoAsync(Action config /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5600,7 +5890,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest req /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5612,7 +5908,13 @@ public virtual Task MtermvectorsAsync(MultiTermVectors /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5625,7 +5927,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectors /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5639,7 +5947,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients. /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5654,7 +5968,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients. /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5668,7 +5988,13 @@ public virtual MultiTermVectorsResponse Mtermvectors() /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5683,7 +6009,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(Action /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5696,7 +6028,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDesc /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5710,7 +6048,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsear /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5725,7 +6069,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsear /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5739,7 +6089,13 @@ public virtual MultiTermVectorsResponse Mtermvectors() /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5754,7 +6110,13 @@ public virtual MultiTermVectorsResponse Mtermvectors(Action /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5766,7 +6128,13 @@ public virtual Task MtermvectorsAsync(Multi /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5779,7 +6147,13 @@ public virtual Task MtermvectorsAsync(Elast /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5793,7 +6167,13 @@ public virtual Task MtermvectorsAsync(Elast /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5806,7 +6186,13 @@ public virtual Task MtermvectorsAsync(Cance /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5820,7 +6206,13 @@ public virtual Task MtermvectorsAsync(Actio /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5832,7 +6224,13 @@ public virtual Task MtermvectorsAsync(MultiTermVectors /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5845,7 +6243,13 @@ public virtual Task MtermvectorsAsync(Elastic.Clients. /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5859,7 +6263,13 @@ public virtual Task MtermvectorsAsync(Elastic.Clients. /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5872,7 +6282,13 @@ public virtual Task MtermvectorsAsync(CancellationToke /// /// - /// Returns multiple termvectors in one request. + /// Get multiple term vectors. + /// + /// + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5886,7 +6302,12 @@ public virtual Task MtermvectorsAsync(Action /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5899,7 +6320,12 @@ public virtual MultiGetResponse MultiGet(MultiGetRequest r /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5911,7 +6337,12 @@ public virtual Task> MultiGetAsync(MultiG /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5924,7 +6355,12 @@ public virtual MultiGetResponse MultiGet(MultiGetRequestDe /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5938,7 +6374,12 @@ public virtual MultiGetResponse MultiGet(Elastic.Clients.E /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5953,7 +6394,12 @@ public virtual MultiGetResponse MultiGet(Elastic.Clients.E /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5967,7 +6413,12 @@ public virtual MultiGetResponse MultiGet() /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5982,7 +6433,12 @@ public virtual MultiGetResponse MultiGet(Action /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5994,7 +6450,12 @@ public virtual Task> MultiGetAsync(MultiG /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6007,7 +6468,12 @@ public virtual Task> MultiGetAsync(Elasti /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6021,7 +6487,12 @@ public virtual Task> MultiGetAsync(Elasti /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6034,7 +6505,12 @@ public virtual Task> MultiGetAsync(Cancel /// /// - /// Allows to get multiple documents in one request. + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6048,7 +6524,25 @@ public virtual Task> MultiGetAsync(Action /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6061,7 +6555,25 @@ public virtual MultiSearchResponse MultiSearch(MultiSearch /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6073,7 +6585,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6086,10 +6616,28 @@ public virtual MultiSearchResponse MultiSearch(MultiSearch /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. /// - /// Learn more about this API in the Elasticsearch documentation. - /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -6100,7 +6648,25 @@ public virtual MultiSearchResponse MultiSearch(Elastic.Cli /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6115,7 +6681,25 @@ public virtual MultiSearchResponse MultiSearch(Elastic.Cli /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6129,7 +6713,25 @@ public virtual MultiSearchResponse MultiSearch() /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6144,7 +6746,25 @@ public virtual MultiSearchResponse MultiSearch(Action /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6156,7 +6776,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6169,7 +6807,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6183,7 +6839,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6196,7 +6870,25 @@ public virtual Task> MultiSearchAsync( /// /// - /// Allows to execute several search operations in one request. + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6210,7 +6902,7 @@ public virtual Task> MultiSearchAsync( /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6223,7 +6915,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6235,7 +6927,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6248,7 +6940,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6262,7 +6954,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6277,7 +6969,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6291,7 +6983,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6306,7 +6998,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6318,7 +7010,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6331,7 +7023,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6345,7 +7037,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6358,7 +7050,7 @@ public virtual Task> MultiSearchTemplateA /// /// - /// Runs multiple templated searches with a single request. + /// Run multiple templated searches. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6372,14 +7064,21 @@ public virtual Task> MultiSearchTemplateA /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) @@ -6390,14 +7089,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest re /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -6407,14 +7113,21 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) @@ -6425,14 +7138,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) @@ -6444,14 +7164,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -6464,14 +7191,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime() @@ -6483,14 +7217,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime() /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Action> configureRequest) @@ -6503,14 +7244,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Action /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) @@ -6521,14 +7269,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDes /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) @@ -6540,14 +7295,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -6560,14 +7322,21 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6577,14 +7346,21 @@ public virtual Task OpenPointInTimeAsync(Ope /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -6595,14 +7371,21 @@ public virtual Task OpenPointInTimeAsync(Ela /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6614,14 +7397,21 @@ public virtual Task OpenPointInTimeAsync(Ela /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) { @@ -6632,14 +7422,21 @@ public virtual Task OpenPointInTimeAsync(Can /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6651,14 +7448,21 @@ public virtual Task OpenPointInTimeAsync(Act /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6668,14 +7472,21 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -6686,14 +7497,21 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// - /// A search request by default executes against the most recent visible data of the target indices, + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple /// search requests using the same point in time. For example, if refreshes happen between /// search_after requests, then the results of those requests might not be consistent as changes happening /// between searches are only visible to the more recent point in time. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7140,7 +7958,10 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7153,7 +7974,10 @@ public virtual RankEvalResponse RankEval(RankEvalRequest request) /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7165,7 +7989,10 @@ public virtual Task RankEvalAsync(RankEvalRequest request, Can /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7178,7 +8005,10 @@ public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7192,7 +8022,10 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearc /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7207,7 +8040,10 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearc /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7221,7 +8057,10 @@ public virtual RankEvalResponse RankEval() /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7236,7 +8075,10 @@ public virtual RankEvalResponse RankEval(Action /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7249,7 +8091,10 @@ public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7263,7 +8108,10 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7278,7 +8126,10 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7292,7 +8143,10 @@ public virtual RankEvalResponse RankEval() /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7307,7 +8161,10 @@ public virtual RankEvalResponse RankEval(Action confi /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7319,7 +8176,10 @@ public virtual Task RankEvalAsync(RankEvalRequestDe /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7332,7 +8192,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.E /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7346,7 +8209,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.E /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7359,7 +8225,10 @@ public virtual Task RankEvalAsync(CancellationToken /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7373,7 +8242,10 @@ public virtual Task RankEvalAsync(Action /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7385,7 +8257,10 @@ public virtual Task RankEvalAsync(RankEvalRequestDescriptor de /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7398,7 +8273,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearc /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7412,7 +8290,10 @@ public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearc /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7425,7 +8306,10 @@ public virtual Task RankEvalAsync(CancellationToken cancellati /// /// - /// Enables you to evaluate the quality of ranked search results over a set of typical search queries. + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7640,7 +8524,10 @@ public virtual Task ReindexAsync(Action /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7653,7 +8540,10 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequ /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7665,7 +8555,10 @@ public virtual Task ReindexRethrottleAsync(ReindexRet /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7678,7 +8571,10 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequ /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7692,7 +8588,10 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elast /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7707,7 +8606,10 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elast /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7719,7 +8621,10 @@ public virtual Task ReindexRethrottleAsync(ReindexRet /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7732,7 +8637,10 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// /// - /// Copies documents from a source to a destination. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7746,7 +8654,10 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7759,7 +8670,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTem /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7771,7 +8685,10 @@ public virtual Task RenderSearchTemplateAsync(Rend /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7784,7 +8701,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Rend /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7798,7 +8718,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elas /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7813,7 +8736,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elas /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7827,7 +8753,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate() /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7842,7 +8771,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Acti /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7855,7 +8787,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTem /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7869,7 +8804,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7884,7 +8822,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7898,7 +8839,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate() /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7913,7 +8857,10 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7925,7 +8872,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7938,7 +8888,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7952,7 +8905,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7965,7 +8921,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7979,7 +8938,10 @@ public virtual Task RenderSearchTemplateAsync /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7991,7 +8953,10 @@ public virtual Task RenderSearchTemplateAsync(Rend /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8004,7 +8969,10 @@ public virtual Task RenderSearchTemplateAsync(Elas /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8018,7 +8986,10 @@ public virtual Task RenderSearchTemplateAsync(Elas /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8031,7 +9002,10 @@ public virtual Task RenderSearchTemplateAsync(Canc /// /// - /// Renders a search template as a search request body. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8159,7 +9133,24 @@ public virtual Task> ScriptsPainlessExec /// /// - /// Allows to retrieve a large numbers of results from a single search request. + /// Run a scrolling search. + /// + /// + /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// + /// + /// The scroll API gets large sets of results from a single scrolling search request. + /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. + /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. + /// The search response returns a scroll ID in the _scroll_id response body parameter. + /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. + /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// + /// + /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// + /// + /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8172,7 +9163,24 @@ public virtual ScrollResponse Scroll(ScrollRequest request /// /// - /// Allows to retrieve a large numbers of results from a single search request. + /// Run a scrolling search. + /// + /// + /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// + /// + /// The scroll API gets large sets of results from a single scrolling search request. + /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. + /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. + /// The search response returns a scroll ID in the _scroll_id response body parameter. + /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. + /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// + /// + /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// + /// + /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8184,7 +9192,10 @@ public virtual Task> ScrollAsync(ScrollRequ /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8199,7 +9210,10 @@ public virtual SearchResponse Search(SearchRequest request /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8213,7 +9227,10 @@ public virtual Task> SearchAsync(SearchRequ /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8228,7 +9245,10 @@ public virtual SearchResponse Search(SearchRequestDescript /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8244,7 +9264,10 @@ public virtual SearchResponse Search(Elastic.Clients.Elast /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8261,7 +9284,10 @@ public virtual SearchResponse Search(Elastic.Clients.Elast /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8277,7 +9303,10 @@ public virtual SearchResponse Search() /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8294,7 +9323,10 @@ public virtual SearchResponse Search(Action /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8308,7 +9340,10 @@ public virtual Task> SearchAsync(SearchRequ /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8323,7 +9358,10 @@ public virtual Task> SearchAsync(Elastic.Cl /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8339,7 +9377,10 @@ public virtual Task> SearchAsync(Elastic.Cl /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8354,7 +9395,10 @@ public virtual Task> SearchAsync(Cancellati /// /// - /// Returns search hits that match the query defined in the request. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// @@ -8371,7 +9415,9 @@ public virtual Task> SearchAsync(Action /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8385,7 +9431,9 @@ public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8398,7 +9446,9 @@ public virtual Task SearchMvtAsync(SearchMvtRequest request, /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8412,7 +9462,9 @@ public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8427,7 +9479,9 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8443,7 +9497,9 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8458,7 +9514,9 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8474,7 +9532,9 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8488,7 +9548,9 @@ public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8503,7 +9565,9 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8519,7 +9583,9 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8532,7 +9598,9 @@ public virtual Task SearchMvtAsync(SearchMvtReques /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8546,7 +9614,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8561,7 +9631,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8575,7 +9647,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8590,7 +9664,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8603,7 +9679,9 @@ public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8617,7 +9695,9 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// /// /// Search a vector tile. - /// Searches a vector tile for geospatial values. + /// + /// + /// Search a vector tile for geospatial values. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8631,7 +9711,12 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8644,7 +9729,12 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequest request) /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8656,7 +9746,12 @@ public virtual Task SearchShardsAsync(SearchShardsRequest /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8669,7 +9764,12 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequestD /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8683,7 +9783,12 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elas /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8698,7 +9803,12 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elas /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8712,7 +9822,12 @@ public virtual SearchShardsResponse SearchShards() /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8727,7 +9842,12 @@ public virtual SearchShardsResponse SearchShards(Action /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8740,7 +9860,12 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor d /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8754,7 +9879,12 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.I /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8769,7 +9899,12 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.I /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8783,7 +9918,12 @@ public virtual SearchShardsResponse SearchShards() /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8798,7 +9938,12 @@ public virtual SearchShardsResponse SearchShards(Action /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8810,7 +9955,12 @@ public virtual Task SearchShardsAsync(SearchSha /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8823,7 +9973,12 @@ public virtual Task SearchShardsAsync(Elastic.C /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8837,7 +9992,12 @@ public virtual Task SearchShardsAsync(Elastic.C /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8850,7 +10010,12 @@ public virtual Task SearchShardsAsync(Cancellat /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8864,7 +10029,12 @@ public virtual Task SearchShardsAsync(Action /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8876,7 +10046,12 @@ public virtual Task SearchShardsAsync(SearchShardsRequestD /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8889,7 +10064,12 @@ public virtual Task SearchShardsAsync(Elastic.Clients.Elas /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8903,7 +10083,12 @@ public virtual Task SearchShardsAsync(Elastic.Clients.Elas /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8916,7 +10101,12 @@ public virtual Task SearchShardsAsync(CancellationToken ca /// /// - /// Returns information about the indices and shards that a search request would be executed against. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8930,7 +10120,7 @@ public virtual Task SearchShardsAsync(Action /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8943,7 +10133,7 @@ public virtual SearchTemplateResponse SearchTemplate(Searc /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8955,7 +10145,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8968,7 +10158,7 @@ public virtual SearchTemplateResponse SearchTemplate(Searc /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8982,7 +10172,7 @@ public virtual SearchTemplateResponse SearchTemplate(Elast /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -8997,7 +10187,7 @@ public virtual SearchTemplateResponse SearchTemplate(Elast /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9011,7 +10201,7 @@ public virtual SearchTemplateResponse SearchTemplate() /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9026,7 +10216,7 @@ public virtual SearchTemplateResponse SearchTemplate(Actio /// /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9038,7 +10228,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9051,7 +10241,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9065,7 +10255,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9078,7 +10268,7 @@ public virtual Task> SearchTemplateAsync /// - /// Runs a search with a search template. + /// Run a search with a search template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9092,7 +10282,18 @@ public virtual Task> SearchTemplateAsync /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9105,7 +10306,18 @@ public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9117,7 +10329,18 @@ public virtual Task TermsEnumAsync(TermsEnumRequest request, /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9130,7 +10353,18 @@ public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9144,7 +10378,18 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsea /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9159,7 +10404,18 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsea /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9173,7 +10429,18 @@ public virtual TermsEnumResponse TermsEnum() /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9188,7 +10455,18 @@ public virtual TermsEnumResponse TermsEnum(Action /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9201,7 +10479,18 @@ public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9215,7 +10504,18 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexNa /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9230,7 +10530,18 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexNa /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9242,7 +10553,18 @@ public virtual Task TermsEnumAsync(TermsEnumReques /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9255,7 +10577,18 @@ public virtual Task TermsEnumAsync(Elastic.Clients /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9269,7 +10602,18 @@ public virtual Task TermsEnumAsync(Elastic.Clients /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9282,7 +10626,18 @@ public virtual Task TermsEnumAsync(CancellationTok /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9296,7 +10651,18 @@ public virtual Task TermsEnumAsync(Action /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9308,7 +10674,18 @@ public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9321,7 +10698,18 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// /// - /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// + /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9336,7 +10724,9 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9350,7 +10740,9 @@ public virtual TermVectorsResponse Termvectors(TermVectorsRequest /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9363,7 +10755,9 @@ public virtual Task TermvectorsAsync(TermVectors /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9377,7 +10771,9 @@ public virtual TermVectorsResponse Termvectors(TermVectorsRequestDesc /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9392,7 +10788,9 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9408,7 +10806,9 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9423,7 +10823,9 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9439,7 +10841,9 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9454,7 +10858,9 @@ public virtual TermVectorsResponse Termvectors(TDocument document) /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9470,7 +10876,9 @@ public virtual TermVectorsResponse Termvectors(TDocument document, Ac /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9485,7 +10893,9 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9501,7 +10911,9 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9516,7 +10928,9 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9532,7 +10946,9 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9547,7 +10963,9 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9563,7 +10981,9 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9576,7 +10996,9 @@ public virtual Task TermvectorsAsync(TermVectors /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9590,7 +11012,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9605,7 +11029,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9619,7 +11045,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9634,7 +11062,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9648,7 +11078,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9663,7 +11095,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9677,7 +11111,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9692,7 +11128,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9706,7 +11144,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9721,7 +11161,9 @@ public virtual Task TermvectorsAsync(TDocument d /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9735,7 +11177,9 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// /// /// Get term vector information. - /// Returns information and statistics about terms in the fields of a particular document. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10382,7 +11826,11 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10395,7 +11843,11 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQ /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10407,7 +11859,11 @@ public virtual Task UpdateByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10420,7 +11876,11 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQ /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10434,7 +11894,11 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10449,7 +11913,11 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10461,7 +11929,11 @@ public virtual Task UpdateByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10474,7 +11946,11 @@ public virtual Task UpdateByQueryRethrottleAsyn /// /// - /// Changes the number of requests per second for a particular Update By Query operation. + /// Throttle an update by query operation. + /// + /// + /// Change the number of requests per second for a particular update by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs index efa42e9196d..8c2e0cd884f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs @@ -122,7 +122,7 @@ public override void Write(Utf8JsonWriter writer, INormalizer value, JsonSeriali } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(NormalizerInterfaceConverter))] public partial interface INormalizer diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs index 5414414a252..c6791d2760a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ByteSize : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs index 400b13112a4..1ee285604c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; /// /// Text or location that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Context : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs index a8cc3f95f58..8f1672f3c25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGain { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricDiscountedCumulativeGain /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGainDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs index 8228aa19f04..41bb06737ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricExpectedReciprocalRank /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs index f8eb8da98ff..d55d0fb0c42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricMeanReciprocalRank /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs index f20081bf15e..a9d76d9556c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecision { @@ -64,7 +64,7 @@ public sealed partial class RankEvalMetricPrecision /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecisionDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs index a6c3382a51f..86f62abbcaa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecall { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricRecall /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecallDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs index 06ff51f8ada..95d202cef15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs @@ -29,24 +29,88 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowerIndexParameters { + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] - public int MaxOutstandingReadRequests { get; init; } + public long? MaxOutstandingReadRequests { get; init; } + + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] - public int MaxOutstandingWriteRequests { get; init; } + public int? MaxOutstandingWriteRequests { get; init; } + + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_operation_count")] - public int MaxReadRequestOperationCount { get; init; } + public int? MaxReadRequestOperationCount { get; init; } + + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_size")] - public string MaxReadRequestSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; init; } + + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// [JsonInclude, JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration MaxRetryDelay { get; init; } + public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; init; } + + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_count")] - public int MaxWriteBufferCount { get; init; } + public int? MaxWriteBufferCount { get; init; } + + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_size")] - public string MaxWriteBufferSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; init; } + + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_operation_count")] - public int MaxWriteRequestOperationCount { get; init; } + public int? MaxWriteRequestOperationCount { get; init; } + + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_size")] - public string MaxWriteRequestSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; init; } + + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// [JsonInclude, JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration ReadPollTimeout { get; init; } + public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs index 5d86de5b198..c7ab868ff14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs @@ -302,6 +302,64 @@ public override void Write(Utf8JsonWriter writer, GrantType value, JsonSerialize public static bool operator !=(IndexPrivilege a, IndexPrivilege b) => !(a == b); } +[JsonConverter(typeof(RemoteClusterPrivilegeConverter))] +public enum RemoteClusterPrivilege +{ + [EnumMember(Value = "monitor_enrich")] + MonitorEnrich +} + +internal sealed class RemoteClusterPrivilegeConverter : JsonConverter +{ + public override RemoteClusterPrivilege Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "monitor_enrich": + return RemoteClusterPrivilege.MonitorEnrich; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, RemoteClusterPrivilege value, JsonSerializerOptions options) + { + switch (value) + { + case RemoteClusterPrivilege.MonitorEnrich: + writer.WriteStringValue("monitor_enrich"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(EnumStructConverter))] +public readonly partial struct RestrictionWorkflow : IEnumStruct +{ + public RestrictionWorkflow(string value) => Value = value; + + RestrictionWorkflow IEnumStruct.Create(string value) => value; + + public readonly string Value { get; } + public static RestrictionWorkflow SearchApplicationQuery { get; } = new RestrictionWorkflow("search_application_query"); + + public override string ToString() => Value ?? string.Empty; + + public static implicit operator string(RestrictionWorkflow restrictionWorkflow) => restrictionWorkflow.Value; + public static implicit operator RestrictionWorkflow(string value) => new(value); + + public override int GetHashCode() => Value.GetHashCode(); + public override bool Equals(object obj) => obj is RestrictionWorkflow other && this.Equals(other); + public bool Equals(RestrictionWorkflow other) => Value == other.Value; + + public static bool operator ==(RestrictionWorkflow a, RestrictionWorkflow b) => a.Equals(b); + public static bool operator !=(RestrictionWorkflow a, RestrictionWorkflow b) => !(a == b); +} + [JsonConverter(typeof(TemplateFormatConverter))] public enum TemplateFormat { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs index 8e7161ffe81..f54eb66abda 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Fuzziness : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index bde86c5aa76..af6ef53abc5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -34,10 +34,32 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// public sealed partial class DataStreamLifecycle { + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } + + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } } /// @@ -57,13 +79,26 @@ public DataStreamLifecycleDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } private Action DownsamplingDescriptorAction { get; set; } + private bool? EnabledValue { get; set; } + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) { DataRetentionValue = dataRetention; return Self; } + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) { DownsamplingDescriptor = null; @@ -88,6 +123,18 @@ public DataStreamLifecycleDescriptor Downsampling(Action + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + public DataStreamLifecycleDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -113,6 +160,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DownsamplingValue, options); } + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index 67be908fbd6..974bb01a049 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -53,6 +53,15 @@ public sealed partial class DataStreamLifecycleWithRollover [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; init; } + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; init; } + /// /// /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs index f1f55abf69b..68c2b4ced4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class DataStreamWithLifecycle { [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs index 8a53108a912..cc6ae5e99ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -739,7 +739,7 @@ public override void Write(Utf8JsonWriter writer, IndexSettings value, JsonSeria } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(IndexSettingsConverter))] public sealed partial class IndexSettings @@ -840,7 +840,7 @@ public sealed partial class IndexSettings } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor> { @@ -2277,7 +2277,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs index 7b5cf8d780c..f66dc302ac4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs @@ -51,6 +51,25 @@ public sealed partial class IndexTemplate [JsonInclude, JsonPropertyName("data_stream")] public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? DataStream { get; init; } + /// + /// + /// Marks this index template as deprecated. + /// When creating or updating a non-deprecated index template that uses deprecated components, + /// Elasticsearch will emit a deprecation warning. + /// + /// + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; init; } + + /// + /// + /// A list of component template names that are allowed to be absent. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing_component_templates")] + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection? IgnoreMissingComponentTemplates { get; init; } + /// /// /// Name of the index template. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index 2dc02e63f1f..e002ee38e73 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettings { @@ -57,7 +57,7 @@ public sealed partial class MappingLimitSettings /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs index fed73dac315..45e9a06e279 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs @@ -31,6 +31,8 @@ public sealed partial class IngestInfo { [JsonInclude, JsonPropertyName("pipeline")] public string? Pipeline { get; init; } + [JsonInclude, JsonPropertyName("_redact")] + public Elastic.Clients.Elasticsearch.Ingest.Redact? Redact { get; init; } [JsonInclude, JsonPropertyName("timestamp")] public DateTimeOffset Timestamp { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs new file mode 100644 index 00000000000..c6691f1eb02 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpLocationProcessor.g.cs @@ -0,0 +1,798 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class IpLocationProcessor +{ + /// + /// + /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. + /// + /// + [JsonInclude, JsonPropertyName("database_file")] + public string? DatabaseFile { get; set; } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + [JsonInclude, JsonPropertyName("download_database_on_pipeline_creation")] + public bool? DownloadDatabaseOnPipelineCreation { get; set; } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Field Field { get; set; } + + /// + /// + /// If true, only the first found IP location data will be returned, even if the field contains an array. + /// + /// + [JsonInclude, JsonPropertyName("first_only")] + public bool? FirstOnly { get; set; } + + /// + /// + /// Conditionally execute the processor. + /// + /// + [JsonInclude, JsonPropertyName("if")] + public string? If { get; set; } + + /// + /// + /// Ignore failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("ignore_failure")] + public bool? IgnoreFailure { get; set; } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + + /// + /// + /// Handle failures for the processor. + /// + /// + [JsonInclude, JsonPropertyName("on_failure")] + public ICollection? OnFailure { get; set; } + + /// + /// + /// Controls what properties are added to the target_field based on the IP location lookup. + /// + /// + [JsonInclude, JsonPropertyName("properties")] + public ICollection? Properties { get; set; } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + [JsonInclude, JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + [JsonInclude, JsonPropertyName("target_field")] + public Elastic.Clients.Elasticsearch.Field? TargetField { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(IpLocationProcessor ipLocationProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.IpLocation(ipLocationProcessor); +} + +public sealed partial class IpLocationProcessorDescriptor : SerializableDescriptor> +{ + internal IpLocationProcessorDescriptor(Action> configure) => configure.Invoke(this); + + public IpLocationProcessorDescriptor() : base() + { + } + + private string? DatabaseFileValue { get; set; } + private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private bool? FirstOnlyValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action> OnFailureDescriptorAction { get; set; } + private Action>[] OnFailureDescriptorActions { get; set; } + private ICollection? PropertiesValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. + /// + /// + public IpLocationProcessorDescriptor DatabaseFile(string? databaseFile) + { + DatabaseFileValue = databaseFile; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public IpLocationProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public IpLocationProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// If true, only the first found IP location data will be returned, even if the field contains an array. + /// + /// + public IpLocationProcessorDescriptor FirstOnly(bool? firstOnly = true) + { + FirstOnlyValue = firstOnly; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public IpLocationProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public IpLocationProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public IpLocationProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public IpLocationProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Action> configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(params Action>[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Controls what properties are added to the target_field based on the IP location lookup. + /// + /// + public IpLocationProcessorDescriptor Properties(ICollection? properties) + { + PropertiesValue = properties; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public IpLocationProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DatabaseFileValue)) + { + writer.WritePropertyName("database_file"); + writer.WriteStringValue(DatabaseFileValue); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (FirstOnlyValue.HasValue) + { + writer.WritePropertyName("first_only"); + writer.WriteBooleanValue(FirstOnlyValue.Value); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class IpLocationProcessorDescriptor : SerializableDescriptor +{ + internal IpLocationProcessorDescriptor(Action configure) => configure.Invoke(this); + + public IpLocationProcessorDescriptor() : base() + { + } + + private string? DatabaseFileValue { get; set; } + private string? DescriptionValue { get; set; } + private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private bool? FirstOnlyValue { get; set; } + private string? IfValue { get; set; } + private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } + private ICollection? OnFailureValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } + private Action OnFailureDescriptorAction { get; set; } + private Action[] OnFailureDescriptorActions { get; set; } + private ICollection? PropertiesValue { get; set; } + private string? TagValue { get; set; } + private Elastic.Clients.Elasticsearch.Field? TargetFieldValue { get; set; } + + /// + /// + /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. + /// + /// + public IpLocationProcessorDescriptor DatabaseFile(string? databaseFile) + { + DatabaseFileValue = databaseFile; + return Self; + } + + /// + /// + /// Description of the processor. + /// Useful for describing the purpose of the processor or its configuration. + /// + /// + public IpLocationProcessorDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. + /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. + /// + /// + public IpLocationProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) + { + DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// The field to get the ip address from for the geographical lookup. + /// + /// + public IpLocationProcessorDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// If true, only the first found IP location data will be returned, even if the field contains an array. + /// + /// + public IpLocationProcessorDescriptor FirstOnly(bool? firstOnly = true) + { + FirstOnlyValue = firstOnly; + return Self; + } + + /// + /// + /// Conditionally execute the processor. + /// + /// + public IpLocationProcessorDescriptor If(string? value) + { + IfValue = value; + return Self; + } + + /// + /// + /// Ignore failures for the processor. + /// + /// + public IpLocationProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) + { + IgnoreFailureValue = ignoreFailure; + return Self; + } + + /// + /// + /// If true and field does not exist, the processor quietly exits without modifying the document. + /// + /// + public IpLocationProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + + /// + /// + /// Handle failures for the processor. + /// + /// + public IpLocationProcessorDescriptor OnFailure(ICollection? onFailure) + { + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureValue = onFailure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor descriptor) + { + OnFailureValue = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = null; + OnFailureDescriptor = descriptor; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(Action configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorActions = null; + OnFailureDescriptorAction = configure; + return Self; + } + + public IpLocationProcessorDescriptor OnFailure(params Action[] configure) + { + OnFailureValue = null; + OnFailureDescriptor = null; + OnFailureDescriptorAction = null; + OnFailureDescriptorActions = configure; + return Self; + } + + /// + /// + /// Controls what properties are added to the target_field based on the IP location lookup. + /// + /// + public IpLocationProcessorDescriptor Properties(ICollection? properties) + { + PropertiesValue = properties; + return Self; + } + + /// + /// + /// Identifier for the processor. + /// Useful for debugging and metrics. + /// + /// + public IpLocationProcessorDescriptor Tag(string? tag) + { + TagValue = tag; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Field? targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + /// + /// + /// The field that will hold the geographical information looked up from the MaxMind database. + /// + /// + public IpLocationProcessorDescriptor TargetField(Expression> targetField) + { + TargetFieldValue = targetField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DatabaseFileValue)) + { + writer.WritePropertyName("database_file"); + writer.WriteStringValue(DatabaseFileValue); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + if (DownloadDatabaseOnPipelineCreationValue.HasValue) + { + writer.WritePropertyName("download_database_on_pipeline_creation"); + writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (FirstOnlyValue.HasValue) + { + writer.WritePropertyName("first_only"); + writer.WriteBooleanValue(FirstOnlyValue.Value); + } + + if (!string.IsNullOrEmpty(IfValue)) + { + writer.WritePropertyName("if"); + writer.WriteStringValue(IfValue); + } + + if (IgnoreFailureValue.HasValue) + { + writer.WritePropertyName("ignore_failure"); + writer.WriteBooleanValue(IgnoreFailureValue.Value); + } + + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + + if (OnFailureDescriptor is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, OnFailureDescriptor, options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorAction is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); + writer.WriteEndArray(); + } + else if (OnFailureDescriptorActions is not null) + { + writer.WritePropertyName("on_failure"); + writer.WriteStartArray(); + foreach (var action in OnFailureDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (OnFailureValue is not null) + { + writer.WritePropertyName("on_failure"); + JsonSerializer.Serialize(writer, OnFailureValue, options); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (!string.IsNullOrEmpty(TagValue)) + { + writer.WritePropertyName("tag"); + writer.WriteStringValue(TagValue); + } + + if (TargetFieldValue is not null) + { + writer.WritePropertyName("target_field"); + JsonSerializer.Serialize(writer, TargetFieldValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs index d8402c22813..b7020c13d1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Processor.g.cs @@ -68,6 +68,7 @@ internal Processor(string variantName, object variant) public static Processor Gsub(Elastic.Clients.Elasticsearch.Ingest.GsubProcessor gsubProcessor) => new Processor("gsub", gsubProcessor); public static Processor HtmlStrip(Elastic.Clients.Elasticsearch.Ingest.HtmlStripProcessor htmlStripProcessor) => new Processor("html_strip", htmlStripProcessor); public static Processor Inference(Elastic.Clients.Elasticsearch.Ingest.InferenceProcessor inferenceProcessor) => new Processor("inference", inferenceProcessor); + public static Processor IpLocation(Elastic.Clients.Elasticsearch.Ingest.IpLocationProcessor ipLocationProcessor) => new Processor("ip_location", ipLocationProcessor); public static Processor Join(Elastic.Clients.Elasticsearch.Ingest.JoinProcessor joinProcessor) => new Processor("join", joinProcessor); public static Processor Json(Elastic.Clients.Elasticsearch.Ingest.JsonProcessor jsonProcessor) => new Processor("json", jsonProcessor); public static Processor Kv(Elastic.Clients.Elasticsearch.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); @@ -283,6 +284,13 @@ public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "ip_location") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "join") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -518,6 +526,9 @@ public override void Write(Utf8JsonWriter writer, Processor value, JsonSerialize case "inference": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.InferenceProcessor)value.Variant, options); break; + case "ip_location": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.IpLocationProcessor)value.Variant, options); + break; case "join": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.JoinProcessor)value.Variant, options); break; @@ -666,6 +677,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor HtmlStrip(Action> configure) => Set(configure, "html_strip"); public ProcessorDescriptor Inference(Elastic.Clients.Elasticsearch.Ingest.InferenceProcessor inferenceProcessor) => Set(inferenceProcessor, "inference"); public ProcessorDescriptor Inference(Action> configure) => Set(configure, "inference"); + public ProcessorDescriptor IpLocation(Elastic.Clients.Elasticsearch.Ingest.IpLocationProcessor ipLocationProcessor) => Set(ipLocationProcessor, "ip_location"); + public ProcessorDescriptor IpLocation(Action> configure) => Set(configure, "ip_location"); public ProcessorDescriptor Join(Elastic.Clients.Elasticsearch.Ingest.JoinProcessor joinProcessor) => Set(joinProcessor, "join"); public ProcessorDescriptor Join(Action> configure) => Set(configure, "join"); public ProcessorDescriptor Json(Elastic.Clients.Elasticsearch.Ingest.JsonProcessor jsonProcessor) => Set(jsonProcessor, "json"); @@ -806,6 +819,8 @@ private ProcessorDescriptor Set(object variant, string variantName) public ProcessorDescriptor HtmlStrip(Action configure) => Set(configure, "html_strip"); public ProcessorDescriptor Inference(Elastic.Clients.Elasticsearch.Ingest.InferenceProcessor inferenceProcessor) => Set(inferenceProcessor, "inference"); public ProcessorDescriptor Inference(Action configure) => Set(configure, "inference"); + public ProcessorDescriptor IpLocation(Elastic.Clients.Elasticsearch.Ingest.IpLocationProcessor ipLocationProcessor) => Set(ipLocationProcessor, "ip_location"); + public ProcessorDescriptor IpLocation(Action configure) => Set(configure, "ip_location"); public ProcessorDescriptor Join(Elastic.Clients.Elasticsearch.Ingest.JoinProcessor joinProcessor) => Set(joinProcessor, "join"); public ProcessorDescriptor Join(Action configure) => Set(configure, "join"); public ProcessorDescriptor Json(Elastic.Clients.Elasticsearch.Ingest.JsonProcessor jsonProcessor) => Set(jsonProcessor, "json"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs new file mode 100644 index 00000000000..28bfd168d3a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Redact.g.cs @@ -0,0 +1,39 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class Redact +{ + /// + /// + /// indicates if document has been redacted + /// + /// + [JsonInclude, JsonPropertyName("_is_redacted")] + public bool IsRedacted { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs index d5254f4b816..bc07497c735 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/RedactProcessor.g.cs @@ -121,6 +121,14 @@ public sealed partial class RedactProcessor [JsonInclude, JsonPropertyName("tag")] public string? Tag { get; set; } + /// + /// + /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted + /// + /// + [JsonInclude, JsonPropertyName("trace_redact")] + public bool? TraceRedact { get; set; } + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.Processor(RedactProcessor redactProcessor) => Elastic.Clients.Elasticsearch.Ingest.Processor.Redact(redactProcessor); } @@ -147,6 +155,7 @@ public RedactProcessorDescriptor() : base() private bool? SkipIfUnlicensedValue { get; set; } private string? SuffixValue { get; set; } private string? TagValue { get; set; } + private bool? TraceRedactValue { get; set; } /// /// @@ -329,6 +338,17 @@ public RedactProcessorDescriptor Tag(string? tag) return Self; } + /// + /// + /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted + /// + /// + public RedactProcessorDescriptor TraceRedact(bool? traceRedact = true) + { + TraceRedactValue = traceRedact; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -421,6 +441,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TagValue); } + if (TraceRedactValue.HasValue) + { + writer.WritePropertyName("trace_redact"); + writer.WriteBooleanValue(TraceRedactValue.Value); + } + writer.WriteEndObject(); } } @@ -448,6 +474,7 @@ public RedactProcessorDescriptor() : base() private bool? SkipIfUnlicensedValue { get; set; } private string? SuffixValue { get; set; } private string? TagValue { get; set; } + private bool? TraceRedactValue { get; set; } /// /// @@ -630,6 +657,17 @@ public RedactProcessorDescriptor Tag(string? tag) return Self; } + /// + /// + /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted + /// + /// + public RedactProcessorDescriptor TraceRedact(bool? traceRedact = true) + { + TraceRedactValue = traceRedact; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -722,6 +760,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TagValue); } + if (TraceRedactValue.HasValue) + { + writer.WritePropertyName("trace_redact"); + writer.WriteBooleanValue(TraceRedactValue.Value); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs index bd289b0d994..effdb6f24c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs @@ -54,6 +54,14 @@ public sealed partial class KnnRetriever [JsonInclude, JsonPropertyName("k")] public int k { get; set; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + /// /// /// Number of nearest neighbor candidates to consider per shard. @@ -103,6 +111,7 @@ public KnnRetrieverDescriptor() : base() private Action> FilterDescriptorAction { get; set; } private Action>[] FilterDescriptorActions { get; set; } private int kValue { get; set; } + private float? MinScoreValue { get; set; } private int NumCandidatesValue { get; set; } private ICollection? QueryVectorValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } @@ -173,6 +182,17 @@ public KnnRetrieverDescriptor k(int k) return Self; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public KnnRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// Number of nearest neighbor candidates to consider per shard. @@ -271,6 +291,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("k"); writer.WriteNumberValue(kValue); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + writer.WritePropertyName("num_candidates"); writer.WriteNumberValue(NumCandidatesValue); if (QueryVectorValue is not null) @@ -319,6 +345,7 @@ public KnnRetrieverDescriptor() : base() private Action FilterDescriptorAction { get; set; } private Action[] FilterDescriptorActions { get; set; } private int kValue { get; set; } + private float? MinScoreValue { get; set; } private int NumCandidatesValue { get; set; } private ICollection? QueryVectorValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } @@ -389,6 +416,17 @@ public KnnRetrieverDescriptor k(int k) return Self; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public KnnRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// Number of nearest neighbor candidates to consider per shard. @@ -487,6 +525,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("k"); writer.WriteNumberValue(kValue); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + writer.WritePropertyName("num_candidates"); writer.WriteNumberValue(NumCandidatesValue); if (QueryVectorValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 9cf39e57adf..ebe54565c68 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Mapping; /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapeProperty : IProperty { @@ -79,7 +79,7 @@ public sealed partial class GeoShapeProperty : IProperty /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -323,7 +323,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs index 85c4315328f..a2ecda6f0e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Mapping; /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapeProperty : IProperty { @@ -77,7 +77,7 @@ public sealed partial class ShapeProperty : IProperty /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -307,7 +307,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs index 7fe667bd3bb..d5d33af4a51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; /// /// Text that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Like : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs index 2413f3deea1..35c8ba75904 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs @@ -28,9 +28,6 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; -/// -/// Learn more about this API in the Elasticsearch documentation. -/// [JsonConverter(typeof(QueryConverter))] public sealed partial class Query { @@ -108,8 +105,6 @@ internal Query(string variantName, object variant) public static Query Term(Elastic.Clients.Elasticsearch.QueryDsl.TermQuery termQuery) => new Query("term", termQuery); public static Query Terms(Elastic.Clients.Elasticsearch.QueryDsl.TermsQuery termsQuery) => new Query("terms", termsQuery); public static Query TermsSet(Elastic.Clients.Elasticsearch.QueryDsl.TermsSetQuery termsSetQuery) => new Query("terms_set", termsSetQuery); - public static Query TextExpansion(Elastic.Clients.Elasticsearch.QueryDsl.TextExpansionQuery textExpansionQuery) => new Query("text_expansion", textExpansionQuery); - public static Query WeightedTokens(Elastic.Clients.Elasticsearch.QueryDsl.WeightedTokensQuery weightedTokensQuery) => new Query("weighted_tokens", weightedTokensQuery); public static Query Wildcard(Elastic.Clients.Elasticsearch.QueryDsl.WildcardQuery wildcardQuery) => new Query("wildcard", wildcardQuery); public static Query Wrapper(Elastic.Clients.Elasticsearch.QueryDsl.WrapperQuery wrapperQuery) => new Query("wrapper", wrapperQuery); @@ -529,20 +524,6 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe continue; } - if (propertyName == "text_expansion") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "weighted_tokens") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - if (propertyName == "wildcard") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -734,12 +715,6 @@ public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOpt case "terms_set": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.TermsSetQuery)value.Variant, options); break; - case "text_expansion": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.TextExpansionQuery)value.Variant, options); - break; - case "weighted_tokens": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.WeightedTokensQuery)value.Variant, options); - break; case "wildcard": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.WildcardQuery)value.Variant, options); break; @@ -894,10 +869,6 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor Terms(Action> configure) => Set(configure, "terms"); public QueryDescriptor TermsSet(Elastic.Clients.Elasticsearch.QueryDsl.TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); public QueryDescriptor TermsSet(Action> configure) => Set(configure, "terms_set"); - public QueryDescriptor TextExpansion(Elastic.Clients.Elasticsearch.QueryDsl.TextExpansionQuery textExpansionQuery) => Set(textExpansionQuery, "text_expansion"); - public QueryDescriptor TextExpansion(Action> configure) => Set(configure, "text_expansion"); - public QueryDescriptor WeightedTokens(Elastic.Clients.Elasticsearch.QueryDsl.WeightedTokensQuery weightedTokensQuery) => Set(weightedTokensQuery, "weighted_tokens"); - public QueryDescriptor WeightedTokens(Action> configure) => Set(configure, "weighted_tokens"); public QueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); public QueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); public QueryDescriptor Wrapper(Elastic.Clients.Elasticsearch.QueryDsl.WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); @@ -1064,10 +1035,6 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor Terms(Action configure) => Set(configure, "terms"); public QueryDescriptor TermsSet(Elastic.Clients.Elasticsearch.QueryDsl.TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); public QueryDescriptor TermsSet(Action configure) => Set(configure, "terms_set"); - public QueryDescriptor TextExpansion(Elastic.Clients.Elasticsearch.QueryDsl.TextExpansionQuery textExpansionQuery) => Set(textExpansionQuery, "text_expansion"); - public QueryDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); - public QueryDescriptor WeightedTokens(Elastic.Clients.Elasticsearch.QueryDsl.WeightedTokensQuery weightedTokensQuery) => Set(weightedTokensQuery, "weighted_tokens"); - public QueryDescriptor WeightedTokens(Action configure) => Set(configure, "weighted_tokens"); public QueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); public QueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); public QueryDescriptor Wrapper(Elastic.Clients.Elasticsearch.QueryDsl.WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs index d3e4b3079ad..a56cf458603 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsQuery.g.cs @@ -53,7 +53,7 @@ public override TermsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, J variant.Field = property; reader.Read(); - variant.Term = JsonSerializer.Deserialize(ref reader, options); + variant.Terms = JsonSerializer.Deserialize(ref reader, options); } } @@ -63,7 +63,7 @@ public override TermsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, J public override void Write(Utf8JsonWriter writer, TermsQuery value, JsonSerializerOptions options) { writer.WriteStartObject(); - if (value.Field is not null && value.Term is not null) + if (value.Field is not null && value.Terms is not null) { if (!options.TryGetClientSettings(out var settings)) { @@ -72,7 +72,7 @@ public override void Write(Utf8JsonWriter writer, TermsQuery value, JsonSerializ var propertyName = settings.Inferrer.Field(value.Field); writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, value.Term, options); + JsonSerializer.Serialize(writer, value.Terms, options); } if (value.Boost.HasValue) @@ -105,7 +105,7 @@ public sealed partial class TermsQuery public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Field Field { get; set; } public string? QueryName { get; set; } - public Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField Term { get; set; } + public Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField Terms { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.QueryDsl.Query.Terms(termsQuery); public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Security.ApiKeyQuery.Terms(termsQuery); @@ -124,7 +124,7 @@ public TermsQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField TermValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField TermsValue { get; set; } /// /// @@ -164,20 +164,20 @@ public TermsQueryDescriptor QueryName(string? queryName) return Self; } - public TermsQueryDescriptor Term(Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField term) + public TermsQueryDescriptor Terms(Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField terms) { - TermValue = term; + TermsValue = terms; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (FieldValue is not null && TermValue is not null) + if (FieldValue is not null && TermsValue is not null) { var propertyName = settings.Inferrer.Field(FieldValue); writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, TermValue, options); + JsonSerializer.Serialize(writer, TermsValue, options); } if (BoostValue.HasValue) @@ -207,7 +207,7 @@ public TermsQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField TermValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField TermsValue { get; set; } /// /// @@ -247,20 +247,20 @@ public TermsQueryDescriptor QueryName(string? queryName) return Self; } - public TermsQueryDescriptor Term(Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField term) + public TermsQueryDescriptor Terms(Elastic.Clients.Elasticsearch.QueryDsl.TermsQueryField terms) { - TermValue = term; + TermsValue = terms; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (FieldValue is not null && TermValue is not null) + if (FieldValue is not null && TermsValue is not null) { var propertyName = settings.Inferrer.Field(FieldValue); writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, TermValue, options); + JsonSerializer.Serialize(writer, TermsValue, options); } if (BoostValue.HasValue) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs deleted file mode 100644 index abe905037fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TextExpansionQuery.g.cs +++ /dev/null @@ -1,461 +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.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.QueryDsl; - -internal sealed partial class TextExpansionQueryConverter : JsonConverter -{ - public override TextExpansionQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new TextExpansionQuery(fieldName); - 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 == "model_id") - { - variant.ModelId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "model_text") - { - variant.ModelText = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "pruning_config") - { - variant.PruningConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, TextExpansionQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize TextExpansionQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - writer.WritePropertyName("model_id"); - writer.WriteStringValue(value.ModelId); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(value.ModelText); - if (value.PruningConfig is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, value.PruningConfig, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(TextExpansionQueryConverter))] -public sealed partial class TextExpansionQuery -{ - public TextExpansionQuery(Elastic.Clients.Elasticsearch.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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.Field Field { get; set; } - - /// - /// - /// The text expansion NLP model to use - /// - /// - public string ModelId { get; set; } - - /// - /// - /// The query text - /// - /// - public string ModelText { get; set; } - - /// - /// - /// Token pruning configurations - /// - /// - public Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? PruningConfig { get; set; } - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(TextExpansionQuery textExpansionQuery) => Elastic.Clients.Elasticsearch.QueryDsl.Query.TextExpansion(textExpansionQuery); -} - -public sealed partial class TextExpansionQueryDescriptor : SerializableDescriptor> -{ - internal TextExpansionQueryDescriptor(Action> configure) => configure.Invoke(this); - - public TextExpansionQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private string ModelIdValue { get; set; } - private string ModelTextValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? PruningConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor PruningConfigDescriptor { get; set; } - private Action PruningConfigDescriptorAction { get; set; } - private string? QueryNameValue { 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 TextExpansionQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TextExpansionQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The text expansion NLP model to use - /// - /// - public TextExpansionQueryDescriptor ModelId(string modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// The query text - /// - /// - public TextExpansionQueryDescriptor ModelText(string modelText) - { - ModelTextValue = modelText; - return Self; - } - - /// - /// - /// Token pruning configurations - /// - /// - public TextExpansionQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? pruningConfig) - { - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = null; - PruningConfigValue = pruningConfig; - return Self; - } - - public TextExpansionQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor descriptor) - { - PruningConfigValue = null; - PruningConfigDescriptorAction = null; - PruningConfigDescriptor = descriptor; - return Self; - } - - public TextExpansionQueryDescriptor PruningConfig(Action configure) - { - PruningConfigValue = null; - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = configure; - return Self; - } - - public TextExpansionQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("model_id"); - writer.WriteStringValue(ModelIdValue); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(ModelTextValue); - if (PruningConfigDescriptor is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigDescriptor, options); - } - else if (PruningConfigDescriptorAction is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor(PruningConfigDescriptorAction), options); - } - else if (PruningConfigValue is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class TextExpansionQueryDescriptor : SerializableDescriptor -{ - internal TextExpansionQueryDescriptor(Action configure) => configure.Invoke(this); - - public TextExpansionQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private string ModelIdValue { get; set; } - private string ModelTextValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? PruningConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor PruningConfigDescriptor { get; set; } - private Action PruningConfigDescriptorAction { get; set; } - private string? QueryNameValue { 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 TextExpansionQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TextExpansionQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TextExpansionQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The text expansion NLP model to use - /// - /// - public TextExpansionQueryDescriptor ModelId(string modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// The query text - /// - /// - public TextExpansionQueryDescriptor ModelText(string modelText) - { - ModelTextValue = modelText; - return Self; - } - - /// - /// - /// Token pruning configurations - /// - /// - public TextExpansionQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? pruningConfig) - { - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = null; - PruningConfigValue = pruningConfig; - return Self; - } - - public TextExpansionQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor descriptor) - { - PruningConfigValue = null; - PruningConfigDescriptorAction = null; - PruningConfigDescriptor = descriptor; - return Self; - } - - public TextExpansionQueryDescriptor PruningConfig(Action configure) - { - PruningConfigValue = null; - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = configure; - return Self; - } - - public TextExpansionQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("model_id"); - writer.WriteStringValue(ModelIdValue); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(ModelTextValue); - if (PruningConfigDescriptor is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigDescriptor, options); - } - else if (PruningConfigDescriptorAction is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor(PruningConfigDescriptorAction), options); - } - else if (PruningConfigValue is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs deleted file mode 100644 index dccca3386fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/WeightedTokensQuery.g.cs +++ /dev/null @@ -1,418 +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.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.QueryDsl; - -internal sealed partial class WeightedTokensQueryConverter : JsonConverter -{ - public override WeightedTokensQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new WeightedTokensQuery(fieldName); - 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 == "pruning_config") - { - variant.PruningConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "tokens") - { - variant.Tokens = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, WeightedTokensQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize WeightedTokensQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.PruningConfig is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, value.PruningConfig, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WritePropertyName("tokens"); - JsonSerializer.Serialize(writer, value.Tokens, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(WeightedTokensQueryConverter))] -public sealed partial class WeightedTokensQuery -{ - public WeightedTokensQuery(Elastic.Clients.Elasticsearch.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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.Field Field { get; set; } - - /// - /// - /// Token pruning configurations - /// - /// - public Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? PruningConfig { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// The tokens representing this query - /// - /// - public IDictionary Tokens { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(WeightedTokensQuery weightedTokensQuery) => Elastic.Clients.Elasticsearch.QueryDsl.Query.WeightedTokens(weightedTokensQuery); -} - -public sealed partial class WeightedTokensQueryDescriptor : SerializableDescriptor> -{ - internal WeightedTokensQueryDescriptor(Action> configure) => configure.Invoke(this); - - public WeightedTokensQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? PruningConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor PruningConfigDescriptor { get; set; } - private Action PruningConfigDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private IDictionary TokensValue { 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 WeightedTokensQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Token pruning configurations - /// - /// - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? pruningConfig) - { - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = null; - PruningConfigValue = pruningConfig; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor descriptor) - { - PruningConfigValue = null; - PruningConfigDescriptorAction = null; - PruningConfigDescriptor = descriptor; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Action configure) - { - PruningConfigValue = null; - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = configure; - return Self; - } - - public WeightedTokensQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The tokens representing this query - /// - /// - public WeightedTokensQueryDescriptor Tokens(Func, FluentDictionary> selector) - { - TokensValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (PruningConfigDescriptor is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigDescriptor, options); - } - else if (PruningConfigDescriptorAction is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor(PruningConfigDescriptorAction), options); - } - else if (PruningConfigValue is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("tokens"); - JsonSerializer.Serialize(writer, TokensValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class WeightedTokensQueryDescriptor : SerializableDescriptor -{ - internal WeightedTokensQueryDescriptor(Action configure) => configure.Invoke(this); - - public WeightedTokensQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? PruningConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor PruningConfigDescriptor { get; set; } - private Action PruningConfigDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private IDictionary TokensValue { 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 WeightedTokensQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WeightedTokensQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Token pruning configurations - /// - /// - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfig? pruningConfig) - { - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = null; - PruningConfigValue = pruningConfig; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor descriptor) - { - PruningConfigValue = null; - PruningConfigDescriptorAction = null; - PruningConfigDescriptor = descriptor; - return Self; - } - - public WeightedTokensQueryDescriptor PruningConfig(Action configure) - { - PruningConfigValue = null; - PruningConfigDescriptor = null; - PruningConfigDescriptorAction = configure; - return Self; - } - - public WeightedTokensQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The tokens representing this query - /// - /// - public WeightedTokensQueryDescriptor Tokens(Func, FluentDictionary> selector) - { - TokensValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (PruningConfigDescriptor is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigDescriptor, options); - } - else if (PruningConfigDescriptorAction is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.TokenPruningConfigDescriptor(PruningConfigDescriptorAction), options); - } - else if (PruningConfigValue is not null) - { - writer.WritePropertyName("pruning_config"); - JsonSerializer.Serialize(writer, PruningConfigValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("tokens"); - JsonSerializer.Serialize(writer, TokensValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs new file mode 100644 index 00000000000..6fa1ac86998 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs @@ -0,0 +1,47 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.QueryRules; + +public sealed partial class QueryRulesetMatchedRule +{ + /// + /// + /// Rule unique identifier within that ruleset + /// + /// + [JsonInclude, JsonPropertyName("rule_id")] + public string RuleId { get; init; } + + /// + /// + /// Ruleset unique identifier + /// + /// + [JsonInclude, JsonPropertyName("ruleset_id")] + public string RulesetId { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs index c3a1b401dab..62c90d43295 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RRFRetriever.g.cs @@ -38,6 +38,14 @@ public sealed partial class RRFRetriever [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Query))] public ICollection? Filter { get; set; } + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + /// /// /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. @@ -77,6 +85,7 @@ public RRFRetrieverDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action> FilterDescriptorAction { get; set; } private Action>[] FilterDescriptorActions { get; set; } + private float? MinScoreValue { get; set; } private int? RankConstantValue { get; set; } private int? RankWindowSizeValue { get; set; } private ICollection RetrieversValue { get; set; } @@ -125,6 +134,17 @@ public RRFRetrieverDescriptor Filter(params Action + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RRFRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. @@ -220,6 +240,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); } + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + if (RankConstantValue.HasValue) { writer.WritePropertyName("rank_constant"); @@ -279,6 +305,7 @@ public RRFRetrieverDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action FilterDescriptorAction { get; set; } private Action[] FilterDescriptorActions { get; set; } + private float? MinScoreValue { get; set; } private int? RankConstantValue { get; set; } private int? RankWindowSizeValue { get; set; } private ICollection RetrieversValue { get; set; } @@ -327,6 +354,17 @@ public RRFRetrieverDescriptor Filter(params Action + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RRFRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + /// /// /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. @@ -422,6 +460,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); } + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + if (RankConstantValue.HasValue) { writer.WritePropertyName("rank_constant"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs index 797fea39b66..5a79a236a6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retriever.g.cs @@ -48,7 +48,9 @@ internal Retriever(string variantName, object variant) public static Retriever Knn(Elastic.Clients.Elasticsearch.KnnRetriever knnRetriever) => new Retriever("knn", knnRetriever); public static Retriever Rrf(Elastic.Clients.Elasticsearch.RRFRetriever rRFRetriever) => new Retriever("rrf", rRFRetriever); + public static Retriever Rule(Elastic.Clients.Elasticsearch.RuleRetriever ruleRetriever) => new Retriever("rule", ruleRetriever); public static Retriever Standard(Elastic.Clients.Elasticsearch.StandardRetriever standardRetriever) => new Retriever("standard", standardRetriever); + public static Retriever TextSimilarityReranker(Elastic.Clients.Elasticsearch.TextSimilarityReranker textSimilarityReranker) => new Retriever("text_similarity_reranker", textSimilarityReranker); public bool TryGet([NotNullWhen(true)] out T? result) where T : class { @@ -102,6 +104,13 @@ public override Retriever Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "rule") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "standard") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -109,6 +118,13 @@ public override Retriever Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (propertyName == "text_similarity_reranker") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Retriever' from the response."); } @@ -130,9 +146,15 @@ public override void Write(Utf8JsonWriter writer, Retriever value, JsonSerialize case "rrf": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.RRFRetriever)value.Variant, options); break; + case "rule": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.RuleRetriever)value.Variant, options); + break; case "standard": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.StandardRetriever)value.Variant, options); break; + case "text_similarity_reranker": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.TextSimilarityReranker)value.Variant, options); + break; } } @@ -175,8 +197,12 @@ private RetrieverDescriptor Set(object variant, string variantName) public RetrieverDescriptor Knn(Action> configure) => Set(configure, "knn"); public RetrieverDescriptor Rrf(Elastic.Clients.Elasticsearch.RRFRetriever rRFRetriever) => Set(rRFRetriever, "rrf"); public RetrieverDescriptor Rrf(Action> configure) => Set(configure, "rrf"); + public RetrieverDescriptor Rule(Elastic.Clients.Elasticsearch.RuleRetriever ruleRetriever) => Set(ruleRetriever, "rule"); + public RetrieverDescriptor Rule(Action> configure) => Set(configure, "rule"); public RetrieverDescriptor Standard(Elastic.Clients.Elasticsearch.StandardRetriever standardRetriever) => Set(standardRetriever, "standard"); public RetrieverDescriptor Standard(Action> configure) => Set(configure, "standard"); + public RetrieverDescriptor TextSimilarityReranker(Elastic.Clients.Elasticsearch.TextSimilarityReranker textSimilarityReranker) => Set(textSimilarityReranker, "text_similarity_reranker"); + public RetrieverDescriptor TextSimilarityReranker(Action> configure) => Set(configure, "text_similarity_reranker"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -233,8 +259,12 @@ private RetrieverDescriptor Set(object variant, string variantName) public RetrieverDescriptor Knn(Action configure) => Set(configure, "knn"); public RetrieverDescriptor Rrf(Elastic.Clients.Elasticsearch.RRFRetriever rRFRetriever) => Set(rRFRetriever, "rrf"); public RetrieverDescriptor Rrf(Action configure) => Set(configure, "rrf"); + public RetrieverDescriptor Rule(Elastic.Clients.Elasticsearch.RuleRetriever ruleRetriever) => Set(ruleRetriever, "rule"); + public RetrieverDescriptor Rule(Action configure) => Set(configure, "rule"); public RetrieverDescriptor Standard(Elastic.Clients.Elasticsearch.StandardRetriever standardRetriever) => Set(standardRetriever, "standard"); public RetrieverDescriptor Standard(Action configure) => Set(configure, "standard"); + public RetrieverDescriptor TextSimilarityReranker(Elastic.Clients.Elasticsearch.TextSimilarityReranker textSimilarityReranker) => Set(textSimilarityReranker, "text_similarity_reranker"); + public RetrieverDescriptor TextSimilarityReranker(Action configure) => Set(configure, "text_similarity_reranker"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs new file mode 100644 index 00000000000..34346cfb0ce --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RuleRetriever.g.cs @@ -0,0 +1,486 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class RuleRetriever +{ + /// + /// + /// Query to filter the documents that can match. + /// + /// + [JsonInclude, JsonPropertyName("filter")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Query))] + public ICollection? Filter { get; set; } + + /// + /// + /// The match criteria that will determine if a rule in the provided rulesets should be applied. + /// + /// + [JsonInclude, JsonPropertyName("match_criteria")] + public object MatchCriteria { get; set; } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + + /// + /// + /// This value determines the size of the individual result set. + /// + /// + [JsonInclude, JsonPropertyName("rank_window_size")] + public int? RankWindowSize { get; set; } + + /// + /// + /// The retriever whose results rules should be applied to. + /// + /// + [JsonInclude, JsonPropertyName("retriever")] + public Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + + /// + /// + /// The ruleset IDs containing the rules this retriever is evaluating against. + /// + /// + [JsonInclude, JsonPropertyName("ruleset_ids")] + public ICollection RulesetIds { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Retriever(RuleRetriever ruleRetriever) => Elastic.Clients.Elasticsearch.Retriever.Rule(ruleRetriever); +} + +public sealed partial class RuleRetrieverDescriptor : SerializableDescriptor> +{ + internal RuleRetrieverDescriptor(Action> configure) => configure.Invoke(this); + + public RuleRetrieverDescriptor() : base() + { + } + + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private Action>[] FilterDescriptorActions { get; set; } + private object MatchCriteriaValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action> RetrieverDescriptorAction { get; set; } + private ICollection RulesetIdsValue { get; set; } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public RuleRetrieverDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public RuleRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public RuleRetrieverDescriptor Filter(params Action>[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// The match criteria that will determine if a rule in the provided rulesets should be applied. + /// + /// + public RuleRetrieverDescriptor MatchCriteria(object matchCriteria) + { + MatchCriteriaValue = matchCriteria; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RuleRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines the size of the individual result set. + /// + /// + public RuleRetrieverDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The retriever whose results rules should be applied to. + /// + /// + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Action> configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + /// + /// + /// The ruleset IDs containing the rules this retriever is evaluating against. + /// + /// + public RuleRetrieverDescriptor RulesetIds(ICollection rulesetIds) + { + RulesetIdsValue = rulesetIds; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + writer.WritePropertyName("match_criteria"); + JsonSerializer.Serialize(writer, MatchCriteriaValue, options); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WritePropertyName("ruleset_ids"); + JsonSerializer.Serialize(writer, RulesetIdsValue, options); + writer.WriteEndObject(); + } +} + +public sealed partial class RuleRetrieverDescriptor : SerializableDescriptor +{ + internal RuleRetrieverDescriptor(Action configure) => configure.Invoke(this); + + public RuleRetrieverDescriptor() : base() + { + } + + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private Action[] FilterDescriptorActions { get; set; } + private object MatchCriteriaValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action RetrieverDescriptorAction { get; set; } + private ICollection RulesetIdsValue { get; set; } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public RuleRetrieverDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public RuleRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public RuleRetrieverDescriptor Filter(params Action[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// The match criteria that will determine if a rule in the provided rulesets should be applied. + /// + /// + public RuleRetrieverDescriptor MatchCriteria(object matchCriteria) + { + MatchCriteriaValue = matchCriteria; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public RuleRetrieverDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines the size of the individual result set. + /// + /// + public RuleRetrieverDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The retriever whose results rules should be applied to. + /// + /// + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public RuleRetrieverDescriptor Retriever(Action configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + /// + /// + /// The ruleset IDs containing the rules this retriever is evaluating against. + /// + /// + public RuleRetrieverDescriptor RulesetIds(ICollection rulesetIds) + { + RulesetIdsValue = rulesetIds; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + writer.WritePropertyName("match_criteria"); + JsonSerializer.Serialize(writer, MatchCriteriaValue, options); + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WritePropertyName("ruleset_ids"); + JsonSerializer.Serialize(writer, RulesetIdsValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs index 645430c37b4..7dc4df34f85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs @@ -35,7 +35,7 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("analytics_collection_name")] - public Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionName { get; set; } + public string? AnalyticsCollectionName { get; init; } /// /// @@ -43,15 +43,15 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("indices")] - public ICollection Indices { get; set; } + public IReadOnlyCollection Indices { get; init; } /// /// - /// Search Application name. + /// Search Application name /// /// [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name Name { get; set; } + public string Name { get; init; } /// /// @@ -59,7 +59,7 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; set; } + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; init; } /// /// @@ -67,129 +67,5 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("updated_at_millis")] - public long UpdatedAtMillis { get; set; } -} - -public sealed partial class SearchApplicationDescriptor : SerializableDescriptor -{ - internal SearchApplicationDescriptor(Action configure) => configure.Invoke(this); - - public SearchApplicationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionNameValue { get; set; } - private ICollection IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - private long UpdatedAtMillisValue { get; set; } - - /// - /// - /// Analytics collection associated to the Search Application. - /// - /// - public SearchApplicationDescriptor AnalyticsCollectionName(Elastic.Clients.Elasticsearch.Name? analyticsCollectionName) - { - AnalyticsCollectionNameValue = analyticsCollectionName; - return Self; - } - - /// - /// - /// Indices that are part of the Search Application. - /// - /// - public SearchApplicationDescriptor Indices(ICollection indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Search Application name. - /// - /// - public SearchApplicationDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Search template to use on search operations. - /// - /// - public SearchApplicationDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public SearchApplicationDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public SearchApplicationDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Last time the Search Application was updated. - /// - /// - public SearchApplicationDescriptor UpdatedAtMillis(long updatedAtMillis) - { - UpdatedAtMillisValue = updatedAtMillis; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalyticsCollectionNameValue is not null) - { - writer.WritePropertyName("analytics_collection_name"); - JsonSerializer.Serialize(writer, AnalyticsCollectionNameValue, options); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - writer.WritePropertyName("updated_at_millis"); - writer.WriteNumberValue(UpdatedAtMillisValue); - writer.WriteEndObject(); - } + public long UpdatedAtMillis { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs new file mode 100644 index 00000000000..923ead8239e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class SearchApplicationParameters +{ + /// + /// + /// Analytics collection associated to the Search Application. + /// + /// + [JsonInclude, JsonPropertyName("analytics_collection_name")] + public Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionName { get; set; } + + /// + /// + /// Indices that are part of the Search Application. + /// + /// + [JsonInclude, JsonPropertyName("indices")] + public ICollection Indices { get; set; } + + /// + /// + /// Search template to use on search operations. + /// + /// + [JsonInclude, JsonPropertyName("template")] + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; set; } +} + +public sealed partial class SearchApplicationParametersDescriptor : SerializableDescriptor +{ + internal SearchApplicationParametersDescriptor(Action configure) => configure.Invoke(this); + + public SearchApplicationParametersDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionNameValue { get; set; } + private ICollection IndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor TemplateDescriptor { get; set; } + private Action TemplateDescriptorAction { get; set; } + + /// + /// + /// Analytics collection associated to the Search Application. + /// + /// + public SearchApplicationParametersDescriptor AnalyticsCollectionName(Elastic.Clients.Elasticsearch.Name? analyticsCollectionName) + { + AnalyticsCollectionNameValue = analyticsCollectionName; + return Self; + } + + /// + /// + /// Indices that are part of the Search Application. + /// + /// + public SearchApplicationParametersDescriptor Indices(ICollection indices) + { + IndicesValue = indices; + return Self; + } + + /// + /// + /// Search template to use on search operations. + /// + /// + public SearchApplicationParametersDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public SearchApplicationParametersDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public SearchApplicationParametersDescriptor Template(Action configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AnalyticsCollectionNameValue is not null) + { + writer.WritePropertyName("analytics_collection_name"); + JsonSerializer.Serialize(writer, AnalyticsCollectionNameValue, options); + } + + writer.WritePropertyName("indices"); + JsonSerializer.Serialize(writer, IndicesValue, options); + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor(TemplateDescriptorAction), options); + } + else if (TemplateValue is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs new file mode 100644 index 00000000000..96dc9da83d0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Access.g.cs @@ -0,0 +1,383 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class Access +{ + /// + /// + /// A list of indices permission entries for cross-cluster replication. + /// + /// + [JsonInclude, JsonPropertyName("replication")] + public ICollection? Replication { get; set; } + + /// + /// + /// A list of indices permission entries for cross-cluster search. + /// + /// + [JsonInclude, JsonPropertyName("search")] + public ICollection? Search { get; set; } +} + +public sealed partial class AccessDescriptor : SerializableDescriptor> +{ + internal AccessDescriptor(Action> configure) => configure.Invoke(this); + + public AccessDescriptor() : base() + { + } + + private ICollection? ReplicationValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor ReplicationDescriptor { get; set; } + private Action ReplicationDescriptorAction { get; set; } + private Action[] ReplicationDescriptorActions { get; set; } + private ICollection? SearchValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor SearchDescriptor { get; set; } + private Action> SearchDescriptorAction { get; set; } + private Action>[] SearchDescriptorActions { get; set; } + + /// + /// + /// A list of indices permission entries for cross-cluster replication. + /// + /// + public AccessDescriptor Replication(ICollection? replication) + { + ReplicationDescriptor = null; + ReplicationDescriptorAction = null; + ReplicationDescriptorActions = null; + ReplicationValue = replication; + return Self; + } + + public AccessDescriptor Replication(Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor descriptor) + { + ReplicationValue = null; + ReplicationDescriptorAction = null; + ReplicationDescriptorActions = null; + ReplicationDescriptor = descriptor; + return Self; + } + + public AccessDescriptor Replication(Action configure) + { + ReplicationValue = null; + ReplicationDescriptor = null; + ReplicationDescriptorActions = null; + ReplicationDescriptorAction = configure; + return Self; + } + + public AccessDescriptor Replication(params Action[] configure) + { + ReplicationValue = null; + ReplicationDescriptor = null; + ReplicationDescriptorAction = null; + ReplicationDescriptorActions = configure; + return Self; + } + + /// + /// + /// A list of indices permission entries for cross-cluster search. + /// + /// + public AccessDescriptor Search(ICollection? search) + { + SearchDescriptor = null; + SearchDescriptorAction = null; + SearchDescriptorActions = null; + SearchValue = search; + return Self; + } + + public AccessDescriptor Search(Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor descriptor) + { + SearchValue = null; + SearchDescriptorAction = null; + SearchDescriptorActions = null; + SearchDescriptor = descriptor; + return Self; + } + + public AccessDescriptor Search(Action> configure) + { + SearchValue = null; + SearchDescriptor = null; + SearchDescriptorActions = null; + SearchDescriptorAction = configure; + return Self; + } + + public AccessDescriptor Search(params Action>[] configure) + { + SearchValue = null; + SearchDescriptor = null; + SearchDescriptorAction = null; + SearchDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ReplicationDescriptor is not null) + { + writer.WritePropertyName("replication"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, ReplicationDescriptor, options); + writer.WriteEndArray(); + } + else if (ReplicationDescriptorAction is not null) + { + writer.WritePropertyName("replication"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor(ReplicationDescriptorAction), options); + writer.WriteEndArray(); + } + else if (ReplicationDescriptorActions is not null) + { + writer.WritePropertyName("replication"); + writer.WriteStartArray(); + foreach (var action in ReplicationDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (ReplicationValue is not null) + { + writer.WritePropertyName("replication"); + JsonSerializer.Serialize(writer, ReplicationValue, options); + } + + if (SearchDescriptor is not null) + { + writer.WritePropertyName("search"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, SearchDescriptor, options); + writer.WriteEndArray(); + } + else if (SearchDescriptorAction is not null) + { + writer.WritePropertyName("search"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor(SearchDescriptorAction), options); + writer.WriteEndArray(); + } + else if (SearchDescriptorActions is not null) + { + writer.WritePropertyName("search"); + writer.WriteStartArray(); + foreach (var action in SearchDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (SearchValue is not null) + { + writer.WritePropertyName("search"); + JsonSerializer.Serialize(writer, SearchValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class AccessDescriptor : SerializableDescriptor +{ + internal AccessDescriptor(Action configure) => configure.Invoke(this); + + public AccessDescriptor() : base() + { + } + + private ICollection? ReplicationValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor ReplicationDescriptor { get; set; } + private Action ReplicationDescriptorAction { get; set; } + private Action[] ReplicationDescriptorActions { get; set; } + private ICollection? SearchValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor SearchDescriptor { get; set; } + private Action SearchDescriptorAction { get; set; } + private Action[] SearchDescriptorActions { get; set; } + + /// + /// + /// A list of indices permission entries for cross-cluster replication. + /// + /// + public AccessDescriptor Replication(ICollection? replication) + { + ReplicationDescriptor = null; + ReplicationDescriptorAction = null; + ReplicationDescriptorActions = null; + ReplicationValue = replication; + return Self; + } + + public AccessDescriptor Replication(Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor descriptor) + { + ReplicationValue = null; + ReplicationDescriptorAction = null; + ReplicationDescriptorActions = null; + ReplicationDescriptor = descriptor; + return Self; + } + + public AccessDescriptor Replication(Action configure) + { + ReplicationValue = null; + ReplicationDescriptor = null; + ReplicationDescriptorActions = null; + ReplicationDescriptorAction = configure; + return Self; + } + + public AccessDescriptor Replication(params Action[] configure) + { + ReplicationValue = null; + ReplicationDescriptor = null; + ReplicationDescriptorAction = null; + ReplicationDescriptorActions = configure; + return Self; + } + + /// + /// + /// A list of indices permission entries for cross-cluster search. + /// + /// + public AccessDescriptor Search(ICollection? search) + { + SearchDescriptor = null; + SearchDescriptorAction = null; + SearchDescriptorActions = null; + SearchValue = search; + return Self; + } + + public AccessDescriptor Search(Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor descriptor) + { + SearchValue = null; + SearchDescriptorAction = null; + SearchDescriptorActions = null; + SearchDescriptor = descriptor; + return Self; + } + + public AccessDescriptor Search(Action configure) + { + SearchValue = null; + SearchDescriptor = null; + SearchDescriptorActions = null; + SearchDescriptorAction = configure; + return Self; + } + + public AccessDescriptor Search(params Action[] configure) + { + SearchValue = null; + SearchDescriptor = null; + SearchDescriptorAction = null; + SearchDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ReplicationDescriptor is not null) + { + writer.WritePropertyName("replication"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, ReplicationDescriptor, options); + writer.WriteEndArray(); + } + else if (ReplicationDescriptorAction is not null) + { + writer.WritePropertyName("replication"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor(ReplicationDescriptorAction), options); + writer.WriteEndArray(); + } + else if (ReplicationDescriptorActions is not null) + { + writer.WritePropertyName("replication"); + writer.WriteStartArray(); + foreach (var action in ReplicationDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.ReplicationAccessDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (ReplicationValue is not null) + { + writer.WritePropertyName("replication"); + JsonSerializer.Serialize(writer, ReplicationValue, options); + } + + if (SearchDescriptor is not null) + { + writer.WritePropertyName("search"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, SearchDescriptor, options); + writer.WriteEndArray(); + } + else if (SearchDescriptorAction is not null) + { + writer.WritePropertyName("search"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor(SearchDescriptorAction), options); + writer.WriteEndArray(); + } + else if (SearchDescriptorActions is not null) + { + writer.WritePropertyName("search"); + writer.WriteStartArray(); + foreach (var action in SearchDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SearchAccessDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (SearchValue is not null) + { + writer.WritePropertyName("search"); + JsonSerializer.Serialize(writer, SearchValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs index 3f6062507e6..3be8e4dec8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs @@ -51,6 +51,7 @@ public sealed partial class IndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.IndexName))] public ICollection Names { get; set; } /// @@ -185,7 +186,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) @@ -313,7 +314,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs index 53b1d944db9..e137275de92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs @@ -40,6 +40,9 @@ public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, Js IReadOnlyCollection? indices = default; IReadOnlyDictionary? metadata = default; string name = default; + IReadOnlyCollection? remoteCluster = default; + IReadOnlyCollection? remoteIndices = default; + Elastic.Clients.Elasticsearch.Security.Restriction? restriction = default; IReadOnlyCollection? runAs = default; IReadOnlyCollection? sort = default; IReadOnlyDictionary? transientMetadata = default; @@ -90,6 +93,24 @@ public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, Js continue; } + if (property == "remote_cluster") + { + remoteCluster = JsonSerializer.Deserialize?>(ref reader, options); + continue; + } + + if (property == "remote_indices") + { + remoteIndices = JsonSerializer.Deserialize?>(ref reader, options); + continue; + } + + if (property == "restriction") + { + restriction = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "run_as") { runAs = JsonSerializer.Deserialize?>(ref reader, options); @@ -110,7 +131,7 @@ public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, Js } } - return new QueryRole { Applications = applications, Cluster = cluster, Description = description, Global = global, Indices = indices, Metadata = metadata, Name = name, RunAs = runAs, Sort = sort, TransientMetadata = transientMetadata }; + return new QueryRole { Applications = applications, Cluster = cluster, Description = description, Global = global, Indices = indices, Metadata = metadata, Name = name, RemoteCluster = remoteCluster, RemoteIndices = remoteIndices, Restriction = restriction, RunAs = runAs, Sort = sort, TransientMetadata = transientMetadata }; } public override void Write(Utf8JsonWriter writer, QueryRole value, JsonSerializerOptions options) @@ -171,6 +192,27 @@ public sealed partial class QueryRole /// public string Name { get; init; } + /// + /// + /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// + /// + public IReadOnlyCollection? RemoteCluster { get; init; } + + /// + /// + /// A list of indices permissions for remote clusters. + /// + /// + public IReadOnlyCollection? RemoteIndices { get; init; } + + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public Elastic.Clients.Elasticsearch.Security.Restriction? Restriction { get; init; } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs new file mode 100644 index 00000000000..0cdfc809bc0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteClusterPrivileges.g.cs @@ -0,0 +1,101 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +/// +/// +/// The subset of cluster level privileges that can be defined for remote clusters. +/// +/// +public sealed partial class RemoteClusterPrivileges +{ + /// + /// + /// A list of cluster aliases to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("clusters")] + public Elastic.Clients.Elasticsearch.Names Clusters { get; set; } + + /// + /// + /// The cluster level privileges that owners of the role have on the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("privileges")] + public ICollection Privileges { get; set; } +} + +/// +/// +/// The subset of cluster level privileges that can be defined for remote clusters. +/// +/// +public sealed partial class RemoteClusterPrivilegesDescriptor : SerializableDescriptor +{ + internal RemoteClusterPrivilegesDescriptor(Action configure) => configure.Invoke(this); + + public RemoteClusterPrivilegesDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Names ClustersValue { get; set; } + private ICollection PrivilegesValue { get; set; } + + /// + /// + /// A list of cluster aliases to which the permissions in this entry apply. + /// + /// + public RemoteClusterPrivilegesDescriptor Clusters(Elastic.Clients.Elasticsearch.Names clusters) + { + ClustersValue = clusters; + return Self; + } + + /// + /// + /// The cluster level privileges that owners of the role have on the remote cluster. + /// + /// + public RemoteClusterPrivilegesDescriptor Privileges(ICollection privileges) + { + PrivilegesValue = privileges; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("clusters"); + JsonSerializer.Serialize(writer, ClustersValue, options); + writer.WritePropertyName("privileges"); + JsonSerializer.Serialize(writer, PrivilegesValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs index 068928f43c5..61c9a3199b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs @@ -27,6 +27,11 @@ namespace Elastic.Clients.Elasticsearch.Security; +/// +/// +/// The subset of index level privileges that can be defined for remote clusters. +/// +/// public sealed partial class RemoteIndicesPrivileges { /// @@ -59,6 +64,7 @@ public sealed partial class RemoteIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.IndexName))] public ICollection Names { get; set; } /// @@ -78,6 +84,11 @@ public sealed partial class RemoteIndicesPrivileges public object? Query { get; set; } } +/// +/// +/// The subset of index level privileges that can be defined for remote clusters. +/// +/// public sealed partial class RemoteIndicesPrivilegesDescriptor : SerializableDescriptor> { internal RemoteIndicesPrivilegesDescriptor(Action> configure) => configure.Invoke(this); @@ -207,7 +218,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) @@ -220,6 +231,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } } +/// +/// +/// The subset of index level privileges that can be defined for remote clusters. +/// +/// public sealed partial class RemoteIndicesPrivilegesDescriptor : SerializableDescriptor { internal RemoteIndicesPrivilegesDescriptor(Action configure) => configure.Invoke(this); @@ -349,7 +365,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs new file mode 100644 index 00000000000..6a19a68c4ce --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ReplicationAccess.g.cs @@ -0,0 +1,96 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class ReplicationAccess +{ + /// + /// + /// This needs to be set to true if the patterns in the names field should cover system indices. + /// + /// + [JsonInclude, JsonPropertyName("allow_restricted_indices")] + public bool? AllowRestrictedIndices { get; set; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.IndexName))] + public ICollection Names { get; set; } +} + +public sealed partial class ReplicationAccessDescriptor : SerializableDescriptor +{ + internal ReplicationAccessDescriptor(Action configure) => configure.Invoke(this); + + public ReplicationAccessDescriptor() : base() + { + } + + private bool? AllowRestrictedIndicesValue { get; set; } + private ICollection NamesValue { get; set; } + + /// + /// + /// This needs to be set to true if the patterns in the names field should cover system indices. + /// + /// + public ReplicationAccessDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) + { + AllowRestrictedIndicesValue = allowRestrictedIndices; + return Self; + } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public ReplicationAccessDescriptor Names(ICollection names) + { + NamesValue = names; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowRestrictedIndicesValue.HasValue) + { + writer.WritePropertyName("allow_restricted_indices"); + writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); + } + + writer.WritePropertyName("names"); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs new file mode 100644 index 00000000000..0f48846bd95 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs @@ -0,0 +1,59 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class Restriction +{ + [JsonInclude, JsonPropertyName("workflows")] + public ICollection Workflows { get; set; } +} + +public sealed partial class RestrictionDescriptor : SerializableDescriptor +{ + internal RestrictionDescriptor(Action configure) => configure.Invoke(this); + + public RestrictionDescriptor() : base() + { + } + + private ICollection WorkflowsValue { get; set; } + + public RestrictionDescriptor Workflows(ICollection workflows) + { + WorkflowsValue = workflows; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("workflows"); + JsonSerializer.Serialize(writer, WorkflowsValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs index 052fb4203d0..feecdc34beb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs @@ -32,13 +32,17 @@ public sealed partial class Role [JsonInclude, JsonPropertyName("applications")] public IReadOnlyCollection Applications { get; init; } [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } + public IReadOnlyCollection Cluster { get; init; } [JsonInclude, JsonPropertyName("global")] public IReadOnlyDictionary>>>? Global { get; init; } [JsonInclude, JsonPropertyName("indices")] public IReadOnlyCollection Indices { get; init; } [JsonInclude, JsonPropertyName("metadata")] public IReadOnlyDictionary Metadata { get; init; } + [JsonInclude, JsonPropertyName("remote_cluster")] + public IReadOnlyCollection? RemoteCluster { get; init; } + [JsonInclude, JsonPropertyName("remote_indices")] + public IReadOnlyCollection? RemoteIndices { get; init; } [JsonInclude, JsonPropertyName("role_templates")] public IReadOnlyCollection? RoleTemplates { get; init; } [JsonInclude, JsonPropertyName("run_as")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs index 1091a7fbe9b..3eaf8158d4c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs @@ -75,6 +75,24 @@ public override RoleDescriptor Read(ref Utf8JsonReader reader, Type typeToConver continue; } + if (property == "remote_cluster") + { + variant.RemoteCluster = JsonSerializer.Deserialize?>(ref reader, options); + continue; + } + + if (property == "remote_indices") + { + variant.RemoteIndices = JsonSerializer.Deserialize?>(ref reader, options); + continue; + } + + if (property == "restriction") + { + variant.Restriction = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "run_as") { variant.RunAs = JsonSerializer.Deserialize?>(ref reader, options); @@ -131,6 +149,24 @@ public override void Write(Utf8JsonWriter writer, RoleDescriptor value, JsonSeri JsonSerializer.Serialize(writer, value.Metadata, options); } + if (value.RemoteCluster is not null) + { + writer.WritePropertyName("remote_cluster"); + JsonSerializer.Serialize(writer, value.RemoteCluster, options); + } + + if (value.RemoteIndices is not null) + { + writer.WritePropertyName("remote_indices"); + JsonSerializer.Serialize(writer, value.RemoteIndices, options); + } + + if (value.Restriction is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, value.Restriction, options); + } + if (value.RunAs is not null) { writer.WritePropertyName("run_as"); @@ -192,6 +228,27 @@ public sealed partial class RoleDescriptor /// public IDictionary? Metadata { get; set; } + /// + /// + /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// + /// + public ICollection? RemoteCluster { get; set; } + + /// + /// + /// A list of indices permissions for remote clusters. + /// + /// + public ICollection? RemoteIndices { get; set; } + + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public Elastic.Clients.Elasticsearch.Security.Restriction? Restriction { get; set; } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -224,6 +281,17 @@ public RoleDescriptorDescriptor() : base() private Action> IndicesDescriptorAction { get; set; } private Action>[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private ICollection? RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor RemoteClusterDescriptor { get; set; } + private Action RemoteClusterDescriptorAction { get; set; } + private Action[] RemoteClusterDescriptorActions { get; set; } + private ICollection? RemoteIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor RemoteIndicesDescriptor { get; set; } + private Action> RemoteIndicesDescriptorAction { get; set; } + private Action>[] RemoteIndicesDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Security.Restriction? RestrictionValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RestrictionDescriptor RestrictionDescriptor { get; set; } + private Action RestrictionDescriptorAction { get; set; } private ICollection? RunAsValue { get; set; } private IDictionary? TransientMetadataValue { get; set; } @@ -383,6 +451,117 @@ public RoleDescriptorDescriptor Metadata(Func + /// + /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// + /// + public RoleDescriptorDescriptor RemoteCluster(ICollection? remoteCluster) + { + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterValue = remoteCluster; + return Self; + } + + public RoleDescriptorDescriptor RemoteCluster(Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor descriptor) + { + RemoteClusterValue = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor RemoteCluster(Action configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptorAction = configure; + return Self; + } + + public RoleDescriptorDescriptor RemoteCluster(params Action[] configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = configure; + return Self; + } + + /// + /// + /// A list of indices permissions for remote clusters. + /// + /// + public RoleDescriptorDescriptor RemoteIndices(ICollection? remoteIndices) + { + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesValue = remoteIndices; + return Self; + } + + public RoleDescriptorDescriptor RemoteIndices(Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor descriptor) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor RemoteIndices(Action> configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptorAction = configure; + return Self; + } + + public RoleDescriptorDescriptor RemoteIndices(params Action>[] configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = configure; + return Self; + } + + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Security.Restriction? restriction) + { + RestrictionDescriptor = null; + RestrictionDescriptorAction = null; + RestrictionValue = restriction; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Security.RestrictionDescriptor descriptor) + { + RestrictionValue = null; + RestrictionDescriptorAction = null; + RestrictionDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Action configure) + { + RestrictionValue = null; + RestrictionDescriptor = null; + RestrictionDescriptorAction = configure; + return Self; + } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -512,6 +691,84 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RemoteClusterDescriptor is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteClusterDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorAction is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(RemoteClusterDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorActions is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + foreach (var action in RemoteClusterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteClusterValue is not null) + { + writer.WritePropertyName("remote_cluster"); + JsonSerializer.Serialize(writer, RemoteClusterValue, options); + } + + if (RemoteIndicesDescriptor is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteIndicesDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorAction is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(RemoteIndicesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorActions is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + foreach (var action in RemoteIndicesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteIndicesValue is not null) + { + writer.WritePropertyName("remote_indices"); + JsonSerializer.Serialize(writer, RemoteIndicesValue, options); + } + + if (RestrictionDescriptor is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionDescriptor, options); + } + else if (RestrictionDescriptorAction is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RestrictionDescriptor(RestrictionDescriptorAction), options); + } + else if (RestrictionValue is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionValue, options); + } + if (RunAsValue is not null) { writer.WritePropertyName("run_as"); @@ -551,6 +808,17 @@ public RoleDescriptorDescriptor() : base() private Action IndicesDescriptorAction { get; set; } private Action[] IndicesDescriptorActions { get; set; } private IDictionary? MetadataValue { get; set; } + private ICollection? RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor RemoteClusterDescriptor { get; set; } + private Action RemoteClusterDescriptorAction { get; set; } + private Action[] RemoteClusterDescriptorActions { get; set; } + private ICollection? RemoteIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor RemoteIndicesDescriptor { get; set; } + private Action RemoteIndicesDescriptorAction { get; set; } + private Action[] RemoteIndicesDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Security.Restriction? RestrictionValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.RestrictionDescriptor RestrictionDescriptor { get; set; } + private Action RestrictionDescriptorAction { get; set; } private ICollection? RunAsValue { get; set; } private IDictionary? TransientMetadataValue { get; set; } @@ -710,6 +978,117 @@ public RoleDescriptorDescriptor Metadata(Func, return Self; } + /// + /// + /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// + /// + public RoleDescriptorDescriptor RemoteCluster(ICollection? remoteCluster) + { + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterValue = remoteCluster; + return Self; + } + + public RoleDescriptorDescriptor RemoteCluster(Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor descriptor) + { + RemoteClusterValue = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor RemoteCluster(Action configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorActions = null; + RemoteClusterDescriptorAction = configure; + return Self; + } + + public RoleDescriptorDescriptor RemoteCluster(params Action[] configure) + { + RemoteClusterValue = null; + RemoteClusterDescriptor = null; + RemoteClusterDescriptorAction = null; + RemoteClusterDescriptorActions = configure; + return Self; + } + + /// + /// + /// A list of indices permissions for remote clusters. + /// + /// + public RoleDescriptorDescriptor RemoteIndices(ICollection? remoteIndices) + { + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesValue = remoteIndices; + return Self; + } + + public RoleDescriptorDescriptor RemoteIndices(Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor descriptor) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor RemoteIndices(Action configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorActions = null; + RemoteIndicesDescriptorAction = configure; + return Self; + } + + public RoleDescriptorDescriptor RemoteIndices(params Action[] configure) + { + RemoteIndicesValue = null; + RemoteIndicesDescriptor = null; + RemoteIndicesDescriptorAction = null; + RemoteIndicesDescriptorActions = configure; + return Self; + } + + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Security.Restriction? restriction) + { + RestrictionDescriptor = null; + RestrictionDescriptorAction = null; + RestrictionValue = restriction; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Security.RestrictionDescriptor descriptor) + { + RestrictionValue = null; + RestrictionDescriptorAction = null; + RestrictionDescriptor = descriptor; + return Self; + } + + public RoleDescriptorDescriptor Restriction(Action configure) + { + RestrictionValue = null; + RestrictionDescriptor = null; + RestrictionDescriptorAction = configure; + return Self; + } + /// /// /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. @@ -839,6 +1218,84 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, MetadataValue, options); } + if (RemoteClusterDescriptor is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteClusterDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorAction is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(RemoteClusterDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteClusterDescriptorActions is not null) + { + writer.WritePropertyName("remote_cluster"); + writer.WriteStartArray(); + foreach (var action in RemoteClusterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteClusterPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteClusterValue is not null) + { + writer.WritePropertyName("remote_cluster"); + JsonSerializer.Serialize(writer, RemoteClusterValue, options); + } + + if (RemoteIndicesDescriptor is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RemoteIndicesDescriptor, options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorAction is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(RemoteIndicesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RemoteIndicesDescriptorActions is not null) + { + writer.WritePropertyName("remote_indices"); + writer.WriteStartArray(); + foreach (var action in RemoteIndicesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RemoteIndicesPrivilegesDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (RemoteIndicesValue is not null) + { + writer.WritePropertyName("remote_indices"); + JsonSerializer.Serialize(writer, RemoteIndicesValue, options); + } + + if (RestrictionDescriptor is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionDescriptor, options); + } + else if (RestrictionDescriptorAction is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.RestrictionDescriptor(RestrictionDescriptorAction), options); + } + else if (RestrictionValue is not null) + { + writer.WritePropertyName("restriction"); + JsonSerializer.Serialize(writer, RestrictionValue, options); + } + if (RunAsValue is not null) { writer.WritePropertyName("run_as"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs index 6df0ea3d1de..0cbba91ee67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs @@ -39,6 +39,9 @@ public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToCo IReadOnlyCollection? global = default; IReadOnlyCollection indices = default; IReadOnlyDictionary? metadata = default; + IReadOnlyCollection? remoteCluster = default; + IReadOnlyCollection? remoteIndices = default; + Elastic.Clients.Elasticsearch.Security.Restriction? restriction = default; IReadOnlyCollection? runAs = default; IReadOnlyDictionary? transientMetadata = default; while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) @@ -82,6 +85,24 @@ public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToCo continue; } + if (property == "remote_cluster") + { + remoteCluster = JsonSerializer.Deserialize?>(ref reader, options); + continue; + } + + if (property == "remote_indices") + { + remoteIndices = JsonSerializer.Deserialize?>(ref reader, options); + continue; + } + + if (property == "restriction") + { + restriction = JsonSerializer.Deserialize(ref reader, options); + continue; + } + if (property == "run_as") { runAs = JsonSerializer.Deserialize?>(ref reader, options); @@ -96,7 +117,7 @@ public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToCo } } - return new RoleDescriptorRead { Applications = applications, Cluster = cluster, Description = description, Global = global, Indices = indices, Metadata = metadata, RunAs = runAs, TransientMetadata = transientMetadata }; + return new RoleDescriptorRead { Applications = applications, Cluster = cluster, Description = description, Global = global, Indices = indices, Metadata = metadata, RemoteCluster = remoteCluster, RemoteIndices = remoteIndices, Restriction = restriction, RunAs = runAs, TransientMetadata = transientMetadata }; } public override void Write(Utf8JsonWriter writer, RoleDescriptorRead value, JsonSerializerOptions options) @@ -150,6 +171,27 @@ public sealed partial class RoleDescriptorRead /// public IReadOnlyDictionary? Metadata { get; init; } + /// + /// + /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// + /// + public IReadOnlyCollection? RemoteCluster { get; init; } + + /// + /// + /// A list of indices permissions for remote clusters. + /// + /// + public IReadOnlyCollection? RemoteIndices { get; init; } + + /// + /// + /// Restriction for when the role descriptor is allowed to be effective. + /// + /// + public Elastic.Clients.Elasticsearch.Security.Restriction? Restriction { get; init; } + /// /// /// A list of users that the API keys can impersonate. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs new file mode 100644 index 00000000000..04a4ac7ddc5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SearchAccess.g.cs @@ -0,0 +1,292 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class SearchAccess +{ + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + [JsonInclude, JsonPropertyName("allow_restricted_indices")] + public bool? AllowRestrictedIndices { get; set; } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + [JsonInclude, JsonPropertyName("field_security")] + public Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurity { get; set; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.IndexName))] + public ICollection Names { get; set; } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + [JsonInclude, JsonPropertyName("query")] + public object? Query { get; set; } +} + +public sealed partial class SearchAccessDescriptor : SerializableDescriptor> +{ + internal SearchAccessDescriptor(Action> configure) => configure.Invoke(this); + + public SearchAccessDescriptor() : base() + { + } + + private bool? AllowRestrictedIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } + private Action> FieldSecurityDescriptorAction { get; set; } + private ICollection NamesValue { get; set; } + private object? QueryValue { get; set; } + + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + public SearchAccessDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) + { + AllowRestrictedIndicesValue = allowRestrictedIndices; + return Self; + } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + public SearchAccessDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurity? fieldSecurity) + { + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = null; + FieldSecurityValue = fieldSecurity; + return Self; + } + + public SearchAccessDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor descriptor) + { + FieldSecurityValue = null; + FieldSecurityDescriptorAction = null; + FieldSecurityDescriptor = descriptor; + return Self; + } + + public SearchAccessDescriptor FieldSecurity(Action> configure) + { + FieldSecurityValue = null; + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = configure; + return Self; + } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public SearchAccessDescriptor Names(ICollection names) + { + NamesValue = names; + return Self; + } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + public SearchAccessDescriptor Query(object? query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowRestrictedIndicesValue.HasValue) + { + writer.WritePropertyName("allow_restricted_indices"); + writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); + } + + if (FieldSecurityDescriptor is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); + } + else if (FieldSecurityDescriptorAction is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); + } + else if (FieldSecurityValue is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityValue, options); + } + + writer.WritePropertyName("names"); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class SearchAccessDescriptor : SerializableDescriptor +{ + internal SearchAccessDescriptor(Action configure) => configure.Invoke(this); + + public SearchAccessDescriptor() : base() + { + } + + private bool? AllowRestrictedIndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurityValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } + private Action FieldSecurityDescriptorAction { get; set; } + private ICollection NamesValue { get; set; } + private object? QueryValue { get; set; } + + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + public SearchAccessDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) + { + AllowRestrictedIndicesValue = allowRestrictedIndices; + return Self; + } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + public SearchAccessDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurity? fieldSecurity) + { + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = null; + FieldSecurityValue = fieldSecurity; + return Self; + } + + public SearchAccessDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor descriptor) + { + FieldSecurityValue = null; + FieldSecurityDescriptorAction = null; + FieldSecurityDescriptor = descriptor; + return Self; + } + + public SearchAccessDescriptor FieldSecurity(Action configure) + { + FieldSecurityValue = null; + FieldSecurityDescriptor = null; + FieldSecurityDescriptorAction = configure; + return Self; + } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public SearchAccessDescriptor Names(ICollection names) + { + NamesValue = names; + return Self; + } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + public SearchAccessDescriptor Query(object? query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowRestrictedIndicesValue.HasValue) + { + writer.WritePropertyName("allow_restricted_indices"); + writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); + } + + if (FieldSecurityDescriptor is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); + } + else if (FieldSecurityDescriptorAction is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); + } + else if (FieldSecurityValue is not null) + { + writer.WritePropertyName("field_security"); + JsonSerializer.Serialize(writer, FieldSecurityValue, options); + } + + writer.WritePropertyName("names"); + SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs index 00564aac314..5bacdaccaa6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs @@ -51,6 +51,7 @@ public sealed partial class UserIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection Names { get; init; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs new file mode 100644 index 00000000000..95ea8843489 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextSimilarityReranker.g.cs @@ -0,0 +1,546 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class TextSimilarityReranker +{ + /// + /// + /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text + /// + /// + [JsonInclude, JsonPropertyName("field")] + public string? Field { get; set; } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + [JsonInclude, JsonPropertyName("filter")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Query))] + public ICollection? Filter { get; set; } + + /// + /// + /// Unique identifier of the inference endpoint created using the inference API. + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string? InferenceId { get; set; } + + /// + /// + /// The text snippet used as the basis for similarity comparison + /// + /// + [JsonInclude, JsonPropertyName("inference_text")] + public string? InferenceText { get; set; } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + [JsonInclude, JsonPropertyName("min_score")] + public float? MinScore { get; set; } + + /// + /// + /// This value determines how many documents we will consider from the nested retriever. + /// + /// + [JsonInclude, JsonPropertyName("rank_window_size")] + public int? RankWindowSize { get; set; } + + /// + /// + /// The nested retriever which will produce the first-level results, that will later be used for reranking. + /// + /// + [JsonInclude, JsonPropertyName("retriever")] + public Elastic.Clients.Elasticsearch.Retriever Retriever { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Retriever(TextSimilarityReranker textSimilarityReranker) => Elastic.Clients.Elasticsearch.Retriever.TextSimilarityReranker(textSimilarityReranker); +} + +public sealed partial class TextSimilarityRerankerDescriptor : SerializableDescriptor> +{ + internal TextSimilarityRerankerDescriptor(Action> configure) => configure.Invoke(this); + + public TextSimilarityRerankerDescriptor() : base() + { + } + + private string? FieldValue { get; set; } + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private Action>[] FilterDescriptorActions { get; set; } + private string? InferenceIdValue { get; set; } + private string? InferenceTextValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action> RetrieverDescriptorAction { get; set; } + + /// + /// + /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text + /// + /// + public TextSimilarityRerankerDescriptor Field(string? field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public TextSimilarityRerankerDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(params Action>[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// Unique identifier of the inference endpoint created using the inference API. + /// + /// + public TextSimilarityRerankerDescriptor InferenceId(string? inferenceId) + { + InferenceIdValue = inferenceId; + return Self; + } + + /// + /// + /// The text snippet used as the basis for similarity comparison + /// + /// + public TextSimilarityRerankerDescriptor InferenceText(string? inferenceText) + { + InferenceTextValue = inferenceText; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public TextSimilarityRerankerDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines how many documents we will consider from the nested retriever. + /// + /// + public TextSimilarityRerankerDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The nested retriever which will produce the first-level results, that will later be used for reranking. + /// + /// + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Action> configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(FieldValue)) + { + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + } + + 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + if (!string.IsNullOrEmpty(InferenceIdValue)) + { + writer.WritePropertyName("inference_id"); + writer.WriteStringValue(InferenceIdValue); + } + + if (!string.IsNullOrEmpty(InferenceTextValue)) + { + writer.WritePropertyName("inference_text"); + writer.WriteStringValue(InferenceTextValue); + } + + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class TextSimilarityRerankerDescriptor : SerializableDescriptor +{ + internal TextSimilarityRerankerDescriptor(Action configure) => configure.Invoke(this); + + public TextSimilarityRerankerDescriptor() : base() + { + } + + private string? FieldValue { get; set; } + private ICollection? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private Action[] FilterDescriptorActions { get; set; } + private string? InferenceIdValue { get; set; } + private string? InferenceTextValue { get; set; } + private float? MinScoreValue { get; set; } + private int? RankWindowSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Retriever RetrieverValue { get; set; } + private Elastic.Clients.Elasticsearch.RetrieverDescriptor RetrieverDescriptor { get; set; } + private Action RetrieverDescriptorAction { get; set; } + + /// + /// + /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text + /// + /// + public TextSimilarityRerankerDescriptor Field(string? field) + { + FieldValue = field; + return Self; + } + + /// + /// + /// Query to filter the documents that can match. + /// + /// + public TextSimilarityRerankerDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public TextSimilarityRerankerDescriptor Filter(params Action[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + /// + /// + /// Unique identifier of the inference endpoint created using the inference API. + /// + /// + public TextSimilarityRerankerDescriptor InferenceId(string? inferenceId) + { + InferenceIdValue = inferenceId; + return Self; + } + + /// + /// + /// The text snippet used as the basis for similarity comparison + /// + /// + public TextSimilarityRerankerDescriptor InferenceText(string? inferenceText) + { + InferenceTextValue = inferenceText; + return Self; + } + + /// + /// + /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. + /// + /// + public TextSimilarityRerankerDescriptor MinScore(float? minScore) + { + MinScoreValue = minScore; + return Self; + } + + /// + /// + /// This value determines how many documents we will consider from the nested retriever. + /// + /// + public TextSimilarityRerankerDescriptor RankWindowSize(int? rankWindowSize) + { + RankWindowSizeValue = rankWindowSize; + return Self; + } + + /// + /// + /// The nested retriever which will produce the first-level results, that will later be used for reranking. + /// + /// + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Retriever retriever) + { + RetrieverDescriptor = null; + RetrieverDescriptorAction = null; + RetrieverValue = retriever; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.RetrieverDescriptor descriptor) + { + RetrieverValue = null; + RetrieverDescriptorAction = null; + RetrieverDescriptor = descriptor; + return Self; + } + + public TextSimilarityRerankerDescriptor Retriever(Action configure) + { + RetrieverValue = null; + RetrieverDescriptor = null; + RetrieverDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(FieldValue)) + { + writer.WritePropertyName("field"); + writer.WriteStringValue(FieldValue); + } + + 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + if (!string.IsNullOrEmpty(InferenceIdValue)) + { + writer.WritePropertyName("inference_id"); + writer.WriteStringValue(InferenceIdValue); + } + + if (!string.IsNullOrEmpty(InferenceTextValue)) + { + writer.WritePropertyName("inference_text"); + writer.WriteStringValue(InferenceTextValue); + } + + if (MinScoreValue.HasValue) + { + writer.WritePropertyName("min_score"); + writer.WriteNumberValue(MinScoreValue.Value); + } + + if (RankWindowSizeValue.HasValue) + { + writer.WritePropertyName("rank_window_size"); + writer.WriteNumberValue(RankWindowSizeValue.Value); + } + + if (RetrieverDescriptor is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverDescriptor, options); + } + else if (RetrieverDescriptorAction is not null) + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RetrieverDescriptor(RetrieverDescriptorAction), options); + } + else + { + writer.WritePropertyName("retriever"); + JsonSerializer.Serialize(writer, RetrieverValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs index ce73c0c79b2..8648694b682 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Features.g.cs @@ -55,6 +55,8 @@ public sealed partial class Features public Elastic.Clients.Elasticsearch.Xpack.Feature Graph { get; init; } [JsonInclude, JsonPropertyName("ilm")] public Elastic.Clients.Elasticsearch.Xpack.Feature Ilm { get; init; } + [JsonInclude, JsonPropertyName("logsdb")] + public Elastic.Clients.Elasticsearch.Xpack.Feature Logsdb { get; init; } [JsonInclude, JsonPropertyName("logstash")] public Elastic.Clients.Elasticsearch.Xpack.Feature Logstash { get; init; } [JsonInclude, JsonPropertyName("ml")] From 407ca696b8491fe665b52e680e5fa3e6c9586faa Mon Sep 17 00:00:00 2001 From: Jennie Soria Date: Fri, 20 Dec 2024 09:48:38 -0500 Subject: [PATCH 17/28] Update getting-started.asciidoc The connection should be using the cloud id and API key, not the cloud endpoint. The image unfortunately will need to be updated to as it obfuscates the cloud id and highlights the endpoint copy. This would be consistent with our docs here https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/connecting.html#cloud-deployment Which states always use the cloud id, for our Elastic Cloud Hosted deployments to connect. --- docs/getting-started.asciidoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/getting-started.asciidoc b/docs/getting-started.asciidoc index aad525c2b1b..f6a7ba13ffa 100644 --- a/docs/getting-started.asciidoc +++ b/docs/getting-started.asciidoc @@ -27,16 +27,17 @@ Refer to the <> page to learn more. === Connecting You can connect to the Elastic Cloud using an API key and the Elasticsearch -endpoint. +cloud id. [source,net] ---- var client = new ElasticsearchClient("", new ApiKey("")); ---- -Your Elasticsearch endpoint can be found on the **My deployment** page of your +Your Elasticsearch cloud id can be found on the **My deployment** page of your deployment: +****** REPLACE IMAGE WITH CORRECTED ONE***** image::images/es-endpoint.jpg[alt="Finding Elasticsearch endpoint",align="center"] You can generate an API key on the **Management** page under Security. @@ -158,4 +159,4 @@ var response = await client.Indices.DeleteAsync("my_index"); == Further reading * Refer to the <> page to learn more about how to use the -client the most efficiently. \ No newline at end of file +client the most efficiently. From db42fbc89c29ba98211a7a824c97c7bcf88cbd1e Mon Sep 17 00:00:00 2001 From: Marci W <333176+marciw@users.noreply.github.com> Date: Fri, 20 Dec 2024 19:34:11 -0500 Subject: [PATCH 18/28] Small edits; add image --- docs/getting-started.asciidoc | 16 +++++++--------- docs/images/es-cloudid.jpg | Bin 0 -> 328808 bytes 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 docs/images/es-cloudid.jpg diff --git a/docs/getting-started.asciidoc b/docs/getting-started.asciidoc index f6a7ba13ffa..21d320236c0 100644 --- a/docs/getting-started.asciidoc +++ b/docs/getting-started.asciidoc @@ -26,23 +26,21 @@ Refer to the <> page to learn more. [discrete] === Connecting -You can connect to the Elastic Cloud using an API key and the Elasticsearch -cloud id. +You can connect to the Elastic Cloud using an API key and your Elasticsearch +Cloud ID. [source,net] ---- var client = new ElasticsearchClient("", new ApiKey("")); ---- -Your Elasticsearch cloud id can be found on the **My deployment** page of your -deployment: +You can find your Elasticsearch Cloud ID on the deployment page: -****** REPLACE IMAGE WITH CORRECTED ONE***** -image::images/es-endpoint.jpg[alt="Finding Elasticsearch endpoint",align="center"] +image::images/es-cloudid.jpg[alt="Cloud ID on the deployment page",align="center"] -You can generate an API key on the **Management** page under Security. - -image::images/create-api-key.png[alt="Create API key",align="center"] +To generate an API key, use the +https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html[Elasticsearch Create API key API] +or https://www.elastic.co/guide/en/kibana/current/api-keys.html#create-api-key[Kibana Stack Management]. For other connection options, refer to the <> section. diff --git a/docs/images/es-cloudid.jpg b/docs/images/es-cloudid.jpg new file mode 100644 index 0000000000000000000000000000000000000000..07177b83990b0c2a19ad4d450ba48188e2d7c8ff GIT binary patch literal 328808 zcmeEv2|QJ8xA;aP88Ty4j#;RL zOowpHWH?70hco@R-uL_7`@Q$x-~I0Q|9$s&2fMcYcs$R3p0)N`>sf2?0W4sN3H%2zi2|&@$^c-_B=*;`J(JAuZI}Uong5UWk#4|_ z-`j)t{B=D1{rBIl?BInBtl4qw_;IC2Ouv0t71(+G zi@E?42p#hdhnqJ&wkGW9`rq6tBfzqNFE}Z%9Jf_=`K|nNtL*q&x%5{X(T#27~qn09bGUP)A}60e3-C*gBZO|18YR%q%-tz+(sNj;(`rC+n|c z=kEvGuY-N-*!9=rS8rzK9pL|6J6U)Bwf^reFusGdoWiIBc-eQn-Q~){BndF{GO_S7 zF`Ae%K$uv6O_1p?K!WoGC&tFUi(~g5fSHMfg?R@HD>z@UWylsQ?cinQJD{Y!li%2Z zP0~l;_?<_u*rm=E)eBzfA{Vp}1GTWWD5wT4X+pMuIBesR*_NuYHd~T}*+q%)VlDMrcZ<`I<_S3c@`5#%- zlZ2!w29WHCW&rFj5~x1~=Nh`sw8)0GrzbKozS1cgSOf3GjDonE>=-U`>o}!=uR%fh zqW4kvmw~)Er53g~?%BKU2IR`!JXwTDI-mA-b6;Wh#3<`*k66grO;zXl+})2D05ZY~ zPAJ#f#{fDR0A2eD1Bk-J^GK^al}IAJ!yAa#{zOG?Kn@(0&Fhj{=p@@fxEa6<17HCA z+ZaHTF$37`gde4DRZNON$uZkU(P1iZOTZmVmiMaR^vv?+G~qD36i`UF~Zst`*!FCmwrF1QJKg9 z_ACsn-XJO??>Rhverx{rhPnTbic99Om;W)oH-^Ub!iO48;VlJd50KRgbMsgNWGd$8 zCmw@ULiOo;c}ADGhNkFx=%`Mjz#IID0-h2m-UE4>0f1CRjgV#lyn0lHghE-qnJ(1Yh~3zFx*w0DhytjF z0dgP%fHHuMoiMs&tun}WEZqse^DE?s(Lc~GbFo`mTL!VD#%}X;0=}WNZ!NDyy&me@-TFCFRDun?=XVQgI8bMfogO33a zRe!3-RxA18jcynnziJRNi-v^o=+LDK5LEdovb8qCGUpSZe#Die~csC@7SM(NRDKY?lkg@)@xBDdL z7H7$ju7-f4?>5APEw?50m|L3f7N}1 z<(J^qdxfj196_P+$ty+e>Fd-iXK_t@OvU7BUd(_;XynBXE~zdxE)&hv3BN7*%H zk+1BT2;R*V$A{JLVFs!e6`7!o4{}zQ(>zl0>koRU6ki;P`Xb!-;MZe$^gPMtp>i$6Q_HFYc%9}hV=j=dhhC1u#_|7>-i!N|#lLI?Mts{uRJqx;?BvW>D3 ztyv-WL{A)16HT&S-591WUMuY$K@)hmO$yBOUtO}zRhygIfJh+CXccr(1cY<}HN;le zr5=OS(k;3#bB%Hui@sT&Wm)_po?nSG3n8Z)Vljr|Z=UdGb)_qZ^LwS1CDqI~T^bKZ zBsI*$O`O1dM3ZHB7S;$ABo`2Z>*OAMXT$E39x9RF{3)G>ZK4ZrbttUmmiH(t0gDis ziIbW?UeGeMq>*++13GB!6~XG!dtmsJ)W8g!-Hob(S3?2&;)G&uH8gT!k6cm0wOi&E zo=xt&=qq|6Mk$F)Sh;sK?#k>3kq)IC10%D=eZuLfkoPJUV+qZpEJ$!+48MlFLJlTM z*FpAZXpbkbk~6Jhb^A*(d%lNYrqj@;B!yJjI=I`<-Z#Iz`*;z{ER>b}p&2wd>m8|f zV{L1O6I**DDv6r<#!vMByVNunH9gOrS%r~X~>`!9 zxUMuWjyiikgsJuqHmC=>FF{R1cZK%i;4KLcKnse#6X)7J03$4ovmg2p6p_`RZtLvC z!QtfMd%M4{jBLRGb`*70`{1#-eo`1=rl|l%ak1@LI-*b*!1ao&=j^&tbo+z*x=c}P zs+1gC4gIj}`%M%%8*Av}Q^(`Z{kS}herjQeSLC-tm{`Y}RiG_2(5?;KTShs<{(H(99kvfzox`$xJ*paOO0{JeNC@DSsW@7MQI zYm-*2oUI&`V7nC3TYIMkGGiL^FRI(1)p`{S2yQt4&4{D;9iE3rp5c^ZK3Lj=*2yEk z%M1YHhFZ14RAll59Y)?Q)tkWF!HyM-Xp$4~JrjydR2HIrMW&wA+4WR6_qRz;#O^zm z*UPbg>=axNT*#rgQAKHmrD=1a5~`o?7rZ`Zq;uh0=AMzETWyy=i5yp|gt3JS5aALa z4e_BSJ9uc3%M4(3ulplna*Fd94_N^nkws8B`@I^DKOL?5?XD-EV9ZbV+7pw5L&W)) zYpUzy;S$y>WgZH0$U=^}(Tejmry+{>TO6e>y$EWbH#aY)9tr){1@B15P>hjcv}~>8 zh<-a-zLp9i7Eh1Jn&-1bcxw~JMw)_ z&WboGJe+zsFjS#}AQ2nngYV>Po6!!@OeEN{cZi(*QotL1LE$HJlgo_)UyHHScah4d zju4f;j!UUQVmeU{(#{g3q3jfx)aC)qbCf#|PPCC^P8QBXdVO21RE_daDc5lm2p2+? zc8arbnuWDcR~O+4=o0k>D|=kLmO*u==%ecQR-0g``ibA&>5#r7tA<0#fXbqGu=7E$IzT<> zN=DIAUHY13D1Y`^RO<_US(!HLJ}gx=(&FTktWbN4cHB?~^wlT}IbBf>P(SW1~jo$-61+)I-F5op<@0(?v>pRST{($JoWn zcv{`{IW^XrRF?8eEc$Y&ZA8jMCp*;;6gF;D6xlPMEZ>^S0Ai?Y69r}}M(~S7u6|sq ztg~w?nwKM&d+$43%xD$PP~NALo_l!l%ag}mN-Gu{3Z-gR%_)sbd57ssk;{UDWEw>S zQPK=&W&mTaQT$LB*uERMsmYX-*>nhvoeI-oTQ3YEl<0S)eK$}z z?H!V`HjwpPckobQUiWA>)ZY~|4Z*9|CB$QeP-8DFpk?Qah~CZSsTKF~18iubUvTsb zi;uZZ>5srQBBnJ~jy*h*R&Tn}pJe6|k`j9`MU0CB>B# zwX}UTaafnS`@ACjAB%+D1jB}ha|+k%zim|7IcH7|VPHRAb&9VT!3S4se>iPk&cL#w zZgdXCj@w621gOI9-g`hpQn8R~Qc+=N)1=h$`Ou4erG|>ymLk3BKY6G--XFX){( zeXN?t`nA`3ufo349`jPWM`rKCpF1{-n||5)4ObxBB~c&kA7v3O+Nae?&A2}w05BcHi7HWge z)7nMLr0=DkA$N=?gr$q81`>H9x@A@Oj_^H_`y^1~)XgSfyw!+otbyiuIc3bkEKHYGp={72W$Np6 z_6q}*%G}0+iXQsT*3}4Iq$Y)B7B?MBaCAKyDx*V$pLd@_6|1UhT_fP)n7lQb2TCxu zY8)=!-#OTZRf$iBU3pKCP z6{F67|DNS3lYym13;#FS+>tmsl#r-(?5jF%k#bQA$ukfAu59vQk#HQ@Wb=0%P zIo76-rN?b*U>8$#KJ19yQ)@F37T*Qy5f2WLPat>TJB-v#6Ku*3gbuzSt`EQOV4CaE zTHCOf=A8ZJkJee^lsIJmCReIC?{lpZQa2JW+<@Lgz5KpZz3rtX4C&cREs+U7KBRMX z@r%-P@!J-!`#+7AM^aPaP2LpYW$dc{+w6T;)RS8v3qcfXvJ0t(927L+$q)0Cn7LH# zemYI$5dU%Hoy?GW3%N1k$^+8}y^)mb^g+51=s8u+ys=rBy!oA8;Y%1A)H@coak
G*t_I9vrgMNrsCa1Evzr*KNDYCiZjit?EQu3@H#rq~b zK}!Nrs~9B#e5D5M*g2?LqlKe6Nc+UuHWlCdvh&tb%T4)WOd|#-Y(tE!TaLt*pcjqs z6w1fac!^fMo`8-E&ZxsSR-VT7$091U;OQTt=ABjrf1pd@F&g^BMiQCqPSGTbnN?PF zQBQj_fL%M^lax!{4tku+6Bw})F}KVB-S}|9l-}Cq6}1_twQGKXpLrR99vxH&_hC)s zgB^x`5KV@@#55)hrj4PS6NWk)t2!6eiO_MqD5PdU;M-2_du|!SPdyjTov0uBF7V=& zNxM^t-${iQ|Jm<$3#RC!k#ms?KPbkQps(X{&!}^q?51BodxeBnx zs5#sXAqv=~=>g7b(BeV+o}x`nVhQP05m||thF`A#@j_&Iw6*_=byoK$DWNxN(Y{VA zU#J`Dd2trK0pv*H^0+Wn0sR153~w5gv^>}!Gpf($Thyjh>=G9&&&SqXvGxHLg{|;j zjGRE-4b)QXMJj->vIo&60D)g`NzAF|~a3R=7YZEJhvUGmgDmVUhf-(obF`g|llg@3e2-_hs$bmmzXmc>^aqaX9&n z&*Uc#L>S(M%7<;FEB8{ha~Xg)IU8Qyd+>d5TU>{yk3jl4hjp(NoPfUC>TpXH9M_5O zUu2?4BK#U4rJeWaGC!&?(Q9es{IUy}!=u;Mg^#tJ*fTWIF4Qqq9A$Y7p7>_?s_o4e zMeYLM%2kt(Pf^EJw)w=reyM((s$&Y-J$U`b5R}h~xY8?TIUQ?`5R66?TBahXN z60y%JCBv+oOOQS1a_D(`4-(_cuGA0tQ0!ZmD;-2rGyx0`4P5eE;gQf%?42oayavN) zm07Qmw)ju>h8sos9-;P#MvUr4EM+g~y56I86ak%3UvMM3H>cJ#VSPTc3*yE*AeaSEhT#aP!zG(DQ|5>1BXgP!d-*iG5Ig?3Q%!>9=)2nlo{ z>#ByNS$5pykjZ$>93%5``~07e10F^5&P#dP*!lH2N|CcfIH)-dYiA0$WCm{A$V1Ogv_&hjbQADks}GXCq9E z?f9GNBH+Rk@mB3@>&?ukFA{}Jk+Q=tlbp@#TY89PGYP1%5_?HPBAWd*fjc7mhTnOQ zNuuM(Q0@^A4Qy$?{LKNR-%7*H+h#bd&oSSUPnM1k32Kgsiitx*KA^WtLVqNJ6kwD-NdlY=F} zd$@r@DCls447HNDz%@NigO_p&ArB)*j42At``$=(c)Tg5{x0>hFh3ijlRY;+%q(1% z^K}wtI90YIR^9-X%Ii~XTYjr}Xo>G5UZ6lac!Z9XT7lAcjZ#$T-Jl|0dm3p?zDGHS ztGiB&D-Sdt9WvTo?|0H|>OJqd!fwfP-S^;1CSk`kp|&y^)p7kQ$;UC}Zy(=QQ0uZ; z)f5-vy_~%;@y_It$bcm0lRD-!`(=WAJrpM#(R?aAbb5FkKt;C_Lxd}^-LAg9l3REd`=u5^PMJ7NG=J|@=Dm8_-YcD^tu@eBNxb6mSaUkudc&)lGjhj_bZo(gfpz8TD|gNL z9(pH9}K61~e5tlRE-9=oig%Q|-G{K#8BDPaYiHC7R3D4_+B&gO;( zmF;^n7}5rbs?w`l#!*O8)Q)U7Zjr2Tx=D?HZe7u<-r2HHN~tKW_#G$Hgq&X4jrSQQ zi6Qw?)n1E*=*ZzmiZXE~#!t%2?Np(x&}*RKTz{dOiy}@AtQ%#n7Jfs<==C3YlX9+K zbW<#-wBF}n+IXtSWJ1urb(M3-_xt_gGl!9&6Jf^&I6j5G%QJ`GkE&RAjheD#hCqLpNygKQ2R26^*B=t*(BhM$lfNt|j1D zuaUJW`t;7r*7`(#{F_JKZ@$l|KhDq#^4h;L!kTt7RtotxG=Q`C+A%rh&j}IGa+k#{ zBBieOG-zPRx)6TU!+E@S=5VJ8E?88kufJ_?d%}BF>N{V=`@{UV)P+9MUS_;^Xci2* zGG(FvdNCK4G1qUz9r?J&JJ3^QE}N=E2GxF63}J2g?kbFl{#AmdmflG;O8Pz;nYrRa zie3zmw_;&$HF>ww{!|dwfC4I(YztGtgg_EsBnkP|v(M-%;>P@lskzzD0QrG^Z^WM7 ziO{&qe1Xa5D~DG$g$c<* z%NOYN^pAYk@ z#I;8htTYNuUKm=wNbIcRiM`!P738T$m71r$-bm-_M#>&d3wRqu;5j-MPvUPoDh>VN zG<6xHi8w)%&8S50F&pU^o7_Ob2`wG+*@TVJ%@yc=FFIFfABq`V0_c+DMZ%MYpC{ zt@gyhpQM)XhWN>ESEkAS4$roqOu8mj$1NefoAS<0kE@;Kd~O+>zExI^>zlo{@^hjw7$-Bp>MK_O62V z!OnwwPz^S3Uykl?en+2Q$sbss)vPTWyZ&_Qe-9wz1Li`y~mtINAxMZLqS)%K^J zldv4sXz~QNyfJ;XXsuaURk)YSHr>=HSImJFN&vpG)`9p6@ zYTLD_+`<{TyeGpC<-g11#^t+)Y9i0j;^+#93i_^%v4qIY>u3@*+MX5R?Qy^`O0e5O z**n^cWy5gg*iD@YUqw|WT6C>6!iK)3?7#)D3hl+_%J6|srRjvhWfpa zTvsF9lMd}}zvUu{b&@Hd7k{dWgWabqAos>Lp$V`yIv?`vO6iXm>J4fQ*Hd*@7BMPA zrinrUhi<+88sB`0W2Ovw2YgOpzd zP`?){LOyLo;JLHV-KgJv)h5`LKSPp|uCHm8a3n~hHyHkXC1G&h--4u8^&+v#bKd*@ zxLS0Uwv{i_)T!IrJfzF|WPl%=q(!!|18B~{Vo&hjWL2iI~toIDo z3s#Gbbd&FyMoYrK7YdYjy^kC7FKnD(1J!~oIHVTRN;yKtG~mq9*@g#&HnU?MuP6&n z)s)<~I%h*|9x=A+bsUC?IbG2WeMIkplt9B!H?YiBR84ZMUx>St^IN?fDYq3}@%xq; zkN59NmfiWiSUikr?sEvg*;?MAmz6vnn7Gm6l%^eIEJXv;KvON_;i9U@dZKRq)aKXS z0d=py>l8d*uV7P*yQ7-3-+u?F^U&;*SD?po0X-9zK6_5dsR#>ka!VLfU|j&Xk+1U zBp%oB;`f&BNAHD>4>3IvvMo|c5c)DAqVo@<}?@{zUE zC#6dDua=vZhs#QheIe@IYY$UKYg>W4q>Q0qXd$grR1QLRM5v$}9GCha4P!Mj+&ELe z^P^-$+q#24>zYFox~z2e^j62*)SE#qt`p?PQ(7wNV(N|i6e$;6C8X}t z8NfP0XL6`;xMKN*y3;;kY214VPLXt*ygUZQ-GRD~4pxA#3~X`f=~cHryt1$MQEA(& z%d@-POs`GAj(h6bEIuaT+q`V+p5BKwkD;egF7Dn#hAmjpL*xiz+S%@Ema!psr+wx3 zm~pn>VM;sL)OmM4@_F)M8djAnIhC415+e%|O~%%ncw%ugO`eLBQ~k{nQo%GOD*4dQ z#ZM`mVtYO$;`<{xg67~EDp!)cl6kI&-U@BSGHb~qkJ4U-o<#Jw;@|@+7!h}4J2(Cy zf*~o&Ja}56T>5&#)Uy*ev(ul82c;~q5T20U(2}XzIaDTM#eD@YB)`I9-z&DLmsNKk zFFexQyMpXgc8`kOxxXC-RS11&Y}9`{vIKM_RDR~sA)A1vCoPgz#sIpE;Me;>3yy8U z`8_dTT}I31+M}l=kt-1!{R4t=6+lLe+!>jS7-0MSpN|7Z51n>qhl6`65qjT$SN8k0R2T$lE+#JZqkWI0B zg5AKKl0p!=Ty5X5-i=cv%&SNN$17!z#yaj3IN{xGyO-J{jW+hO|lTfM|gpgCap8R~W$Vxwac#V)J-MLaiFEhRg};t}PIX zf8~0(=WGR^YPF3+jv55Wz= zrl^KD zQV2RhZGUqh+vL^!Ro{6;fGb24+JKGXJNanAxApPGA{5bdlx(I2?yW}iP-BI+Nbq`> zt?j2}t>d7OFqr@)3CR8*x7wi^azMWrm5iFS#DW~J7IX3`MC5NPp?Fg=xCI*tT{!}$ znuVn4ihtsX!~RVrgpi9wF#s*dhL9r2CZ97NTxV;6|4n7WznYMqGRuVG-`46;<Q`f7H~4tSCQZr`M<4y`zM^3kvs+bj{SE>m4!zr54msra>}u+;`Qr~F0pm(!n~6K z(bbGludhNyl!8ud8{|*u@e8+~%xVIKecKAf|0-pQ@r_QG!7zdQNMZ<cqj=EyNtwUgAICWzbT;Shh$%~Lbx6PdYxgb8f zj+3v$;xnqj-dcg6UcaPBKdnbqu?Pp5?h7ahXdu_Mx^7le*iLDZVhD<4R}3r2v@aL{ zjRLamgD%jYCOC%O_=yFVHy;!cr-jj~|B?`rQN5ckDqoNKIrG=qq8fD(ige^M16Ur0 zQ*R~Yb-wf4p6WJMw`ujC!dB?cMUk6k_NP6W3$)XNZi+gn+3-}X9Bib9@JhJ z_2|@W1|Y0QRb1u(4T;m>8jJ<)lIE`Mw%d5vriX35*p?65a&mjU*j_icb%Jf(Xj@0z z)|IzyhHcwv+lJh>kGK5<+y0VmztOh;?EkzU5yj}Gck|r!_;5}(vO!IATyTy7IKvEJ z#TW+Ujb{qxhHhP(0r| zFgmzojn40>6ppf`fO`Oc>i{7{TcSF7?O&0M=k&n7!Ym!2@A$V43FLG6(3vRAWiZP^ zCfGOj&J^e^{?%UZx9M8E-I^lURksfOxbnB=V19;e;QsqQxeG|ytC?Dt1?Qp85=rKU zX5x;qcP1+&M2d_*v_q0^OQhiqg?kEyI>cMhAI(B89XzMuFF2oiD7QTJdR;&`l(xe{ z^Sax`vA^W!0BK|^-ZIAYcN(c&at(r0CDp+69$T~=9|=Ykok#zbmNCC2@7SW{Uuizp zV1K1$i{G1rv@Eqn%gwj5|4PfC-|gRt=6aMZ38dxUIzWC;CzA75T5bnv`L{eGf1W2u z%c$R)gQUDQTZ`O3NcrE%Gy<~eHfUSPS+<|rHbHLl+V4x^wix*%1<|&I++NpyS3kEU zsm%0KL-iTor~rfn4pJ%+i1VC`t_;2vHxorY}@I3 z+rh85LxFDxM&FM7z8weupPLonU&P?^wddQ)msKLdLL<)lcK6JF?| zxXs6dJ9}ASey_;sC*rUJn;EU*#Tg+JUc{1vuk;Qwi*w%!lV81EZQC#1G8-)`3tsg;I|MR5PASmt0qohe1W;J0TVJw4sy{}ZiY}V#77)`iiM+eJw zXJ0Wtc}}huN_Ou#S#8Z+@o(kZtq=N5C?yhBUsxA*=?w~4bV7?07MZf?-@uO`!JzwE znr_w}shZd*sif{NRy#1lPc$B0eaFF#tX|#cK6|5s|6b17{I|X4iFT|dzZ%0usm`=o=yg~aN~AO)49Xvn zlV1%hRLHX$I`pFH&y*Fc}v(UfU+oI~3jFBXEEt>1y}m9z(mJy$(g+ zZk#;({E1K3(92RVETyW`D^>yH3x99CN%q5YRuxd+(l@^@VJ9>LX(n{lWv#v7GUW{e z!`i!ISDEa&3K>8ys-q=IkFvM;(vaKiT}(q1Os9I zCLa98VPshd^(m?uP7wy9{;Y~pix@xzs#*kOWWmr52^E-toB8c1EosEZ$~%WQLYv)N zKk-QPZh~KWvPv<4Cp_dl2H?0jN{@hl_NMX;(K#XsI;6c|cx}Z<6raD5pXs*%JBKnc zzc;!!zOsL=KDKx(b^NgTC%uegE%NIRxH^;&wY<&7b=R;l2X`dP zY6P7FjIF}TOa4x19AA%wUgH_OKCK|tbbH*oW;#zMO2sHdG0D@LA4YlWyL0YZz=l~0 z>&@Pc`q!uiP^An1N*~!&Z$eNt)ndmKxogVGnqG@sE$Jx`AKv>qjUzt5|I?YvCx%Zb zwHWz>9vAD*@K*ftVke#fBw+dcV?UeV*P~O6Z2HQaB*4Taj`C@$PhMXstJ<0H#`glH zAmQt~!BC-cb;Y{t_qv-}sT{MyJXKJ->Dn z*SA8`v5J8+^F=f^+JpHhh=%&)Y&`9TV?`BGc;a$`?0v*8#AA0~(neP-Bgcno|z@RN2_&R z+;gU3TkA9l6-QeGbS`d>W1dL~eC=))&5pNi>x!k}m3k0~;u zH|NN?i7Rub^`6a57JTa~SEVEt1=t=CRk~T8atq#@pbth!4G!&wmM&BI55sYa_|Qr} zJXDOT-uJSEs7NwinW!mwaqg^-1ov0#3r`dA9qx7z-2Zbw$ zQCJbWaWU|r3;kOVy=@2mzP9)y+jLDtA%xEUnX>;zAo^WJfCvm+nn zXW(qes~~{o^sn%un)O!r4#bz~o`zaL9fLxo*k8(d`xMnJohX=~urL3Rh1aAlOIYjv z&}vluxmun%2&mdndDE=P3Kx2bS!;zXS2kITe9Xkq*DuU267 zaGV~Uqn{E=<*)7v5Xc;FhnWjBgdLLGNZrkxF&J0{| z0>JE&kw{$z@a{X7{r%#PWSq zy?&@9BE^PmOjI@?!|P>j>5>=^Vz+H?U3YrNa-)9;OE4H6TArAR zqiY~yN%FLuwY{n|KivmYr8Ikfei6~OyMAZ7&oE!gLIrWY{~i{|pVW$nFJ$5q22$`d zaY!3NE1g60l{@Y{=8Zv)E9w5Vm4mT2(?<{v8x@emCbHc5AQllCxce>~rbCfLo~IRh zSL;wzsB-=O2n|{9TXW;`i;jj*cPK}A^R>B6v04=hMq5(*a4dT+;pQi7pD1RAH+5%6 z(uSQR^ksApE@qlcS7S=dH^i&epE*uNWf}La58co&U;5ySYyW-ErU`8D5OVV zq)^4dpJS2n*FSv2T*1>vb3g5{HcBe^$a7GyJtTiBGwhh&Rk106+OY&L(pyZScp;g= zY2F#4x1h@4QQ5>JqW2g8$!s{Vn3nVMeL6&~dmJ|wMuEt#pc6A`U+bJe{UDqV#Q6OM zavB4;YO_o`X>%pC3$^l2D>7k|Yb&>_5veyQ|E8HTr~MVe*URzT!Eax0JT?daAo=b} zQ{yfjiQJAfoG)(Enqs-Jo6aFkz>=O4MyUd48ylf}sx5YAkK6f@`X(Av+K${ia%5>u zru%=OD&BxqN&7GSH$&fryo96)rpD|xn>rl5G?gGD?djRG}J z*UyN1esoO?(J7Xq!3zh8w_Y3S1sUua&t3?|Lu0Bi4LS6~R1KnC?>GGbg~9HbZf}p* z#|o_uq+YPUsMTW5lqh(TE21N|sZ&traMHz7Ij~#6$Qv|6!|*jJ_o(Ipn zH`|$zYzY#X#O7;oA)^eORwn75{K>?YlTY`sKP}`8yA$~t36DE@&JFMCII*{7G0!*n z%+A6?%yuJ z*xKkCjND&McB1RnK6)|c4T@T%Yxgwm!V~&Z!C=3)6p-{pXPP{i8|!X=19VlO z6#NRLivh$#2&rT}dU!H=eG^J7(7a38OS_Kt_pd}59H%FJMm4zOA)6f5sL@#l(2_tl zLV~7Ym5@MVRe&z9q9*jHhiiGk2o_n{GI~5(t{Mmx%2SuO3dF5 z3aUw%yQo=NP=7^%(J@598MF1dt?L=4tY#|C+4leKxPOLLq9G*WhYBS#t7FqRWwp@# zPecC+TnDZCwbYQV?kSo~$EJnqpNEG24Z!cvS2sUv&CdD$9eB3@;IE%Z7aBm=R1etO@?Jx5=m_hklnPr98tZnxXaarI(9$jr)TKxSs%6D*UX z7IU0!=lf0(sx|@ASRh65Yu)U95b2l=am7}~^z9E(Z*RvI*qyqPHWdzL9H_UqmMUqy z-F1HrlMKa!YMhherhF(EzPf%1Tn1XVR|o7&w02X&mvNqN=+C^$RUiBI@GvN{TogHjXBYqTTq=jA)laS1oY1p=xwd+{~Q3B zf0_R=dVd3|^CN9`6V3JGyjWkY<-Y-L=Dz{af~^a6GiA7O8~pz!Pe0-Z{0OSihu#8T zHK&5!f{5=>&?R9EM&W9uh@iS`2;Oua&|yK>)FT~LriU0VInXemUj_Y$(zT{_;Yagf zJg(LTS^-&bgiaSA{zB>y%mp%vI58I4?1In|Ml_xyiZy5jbg%7pFMfGDYG09+d3({Z z1eF|>8quTa&XG^1;`&Dt;2BS($`o$CsMi&^%=G)o2F5@A-QhHyfGcT)NKl;#6?9(s z;AUg}X4WFDy)nm%JR<+Bw6b(MMq4t-JS_PkHYIH0`scwJ!3`&G3NL-g+%Ky)yTN-f zSyt*m(v!2_%n~2m<9kXJE>n%{69#S)I`|7 z57%9Fea(7dGlu4oQEIEJve7Fu`ZZzASG>0K#Sj>Uo~w3WXd5V_E+^bgU8Wv_aE3xa zZvyulCbR0|o`5J9Gp|?97aC=>!tTHiq3T_r*WtL)i7yyJp6ORAL_Ip70NU6oR4E;) zFq7IKzpf;b42qrVJts`*zaUVw~#iQGw)czV#PwlxR$BjsjL^uvOwi}@e!U*bM4 zzebNCrtq5^Xmni~f@hE4K90}TT9+@|Q~-0J=rnAFnG3H(LJ6NM!l}DnQ+Idy2dg?) z6upbED=&|>OqM+1$Pu%f?-DTCA62p7Lw0}r2rq2J8b ze|}jiqkPbHGmQDs z32_)#qZ@Lw!P=mxVf|Fp-U`ct#1dVuN*rbKbo9BYXh-N>$zkOA3229#@8id7wfC~505<%!SLI8gZ*T|7J ztt1!c{CX$3VXhLkiufHD4~n0V|H;i2+G=dCdh|fz)tp?P;uY#8+;dGftRc>&S@xW0+b1uNZ(U%3>N~3f z`E-b14)q`bzVH(t9NWYTJNhL121!v)_M^oyU6HFi`z7Q_k7K%ss(Qga4{B{5N$h=H z;HIgz0wx7HPexO~1+HE%RON=!4F(`YBK+}D!nP+)72NBg=W>sdS497ty+ z`+=ifBg65tR9QmLIWjMvc2v^p$m)>itv*)i9Nvc9O3g3wYx6OcL^~H&gUhygS*4W1 zizn<8T^6OJQ9nLXtqH<)JY-o^!{^&G%_vT)AVm}5XHs+i!T67hJpr*Nr_W!VvcKSH ze${g4{^!?N&Sz4fsCvTybd)jGrWed|rZG$|lzw2^cetl45NmPo?74=?=IQVl=A7>< zVZfNhqJjXnFXs6d`!A<$rs$vpB6l_a)u%;T5aa=tPYcu)>rLrOuI_krtb{mu_qfqX z@e9egq{7MozK=UuLa4v%zNKWMxA zympp3DlL%c9JCBCPQ3g+BR3}et|tx`(tuPppi;k3P}Y#UBRsSRplJn*961=4^LU=;{(kTKd*7eWy{xfBxIy8Te;a~XOz1Zq^~bv{*ptZ-eOxiasXF7f$x8qUZpSTThEpf!KdfAA)R6fo(_bX=b9 z$$HKfR_!2?QrjY@F?>36nm+y}T_GfEy0_Xs=gC?_d<@V}luoag$K_$jT-~(r^Y^&H#P3ulndnGZ*~*cXzLM_I$L? ze$_cY)w~No`8oV}ZeYiwJqYx-|9)QnkH5ly${2T`W;?L%z#lDDZF|E1461@+s4;T3V%J0u(gyArL-d|@H*JC=4t`oLiQMv!Dp!t_S^+inpjr@LPR}q6pSg9jF|XoRNR$Ghuw3`&!va-6Pd6Ho~S<>-Ra9=Wm@q zug(I%b91wX1pqat4u?!e6|qlN818~!TBECx>fBVqY^4;dkTLL!(DF(>*;MT%GGK0q zA?GQIfxSA{Q)AE5rLBKaEViVRYF3PMbK7 zx8Xz^@g{>O-WXxLJ!CGaUDs5@9NL%jI7CT0>g#*)m$N+zg`(p9u?6^XQKld-{r3nk zdVS9|<3e;5yDI|vn%U;JZYl6!JmokqJ-Dy~`{`y5aEyyPnEa#h6F-QtYp_QD;*9FJ zL|gUoHhuYLDru=@_nJz1Adb%806+9Pg`V$=)jt2c8%}JJ*j>ygZZACC(^JN3p2j`2 zlS~>Yu%9wEt-tFIkUm-DMew2jf%G9k8{_|;tMdO$g5N(&_J8vM#?g0pPw{sepE$Zp~K_Zy_V3TzVY6jzE2~0)IxRNa^ zQQOjY{ud;?>_4i6NKh|Uc5r>#$NO{q(6=oYYg9k+<>L+0XUKyME>w*fLKyorQ?rgC z1=jich}FQ4MZq6mEz_khbf6x+h@FjEei<|%<^|Qr2~!Z|KUcUYeWVJyFBJvaJF|lO zu`W5bi}CL-sU34|PUMz}p&EUZ-*A$y0uxzPW14ta=}o%>>SzCQv>9n<2sM*TrU-#G zYifRFhtA3uHtjsJ+P34?u}&(OaKL>ZN5WGpA$QC^TzjU_M{*8UtwKDuB!aB8q?x58 zdtVdE9t(6bb$ocFQ<(VzRg4XU`(}|O)mfKlT^+3c>%I}~JB9X(Tg8btjr|qlJEa~Q zO8I4NSaR&=3RLztIBRv%Wm^Gi&LpniK?2`v83(un6WbujPMDbll=XkUj#I^r;i+gM ze4=wXiDAXmW2H0oW+o+_sD5?+d6#?Nj>erGlRY+k=Ov@U?qx#IE0l)ZSRFe~4YdwJ ziQV(yU*3aU*IJ-& z>{53*2@W%KGm0r9!`?5&s)d}1u!3PMyj^E4ks!)5G!=!1kDD?NhSTS2U>llao2`A{Q>IRigNG(u{e7i)a@JCWUYhgy zZMOQC?;3|+8g}Lr?yWouOkh=mT%Dn6=s-&uN@*%&H1C7j@LnBQ}#;J$nca)bh{_U zNCB3q$m6=t;L}kWCg^O z{1?FJ!um6XT75C%naMO`y_hoZJNcuwZX^7N91UBa1IrJ`G8GL!r2j_3=e+6P;ZqEV z{T;a%a*GR2-M@XEKppN@Tv6e$E94#Zjj=X$d60d?SYYFi&DD>IML8>bY!au!<-sxy z{pIL(X*vLnAP@ZISVZQdwhKo7SV7HI(0bb1GsI?J8*)2tQJDR~SGZ=+{e!4=;ErK$q0f>{~CR-ukE{L7w3 z+f&RU7@#EkLFa&wHh91$)w~}kOA2rv!z(%Ex;{oHAzE#-lj}r+&+@Oce;f zkt{rtvV?{e2`ylDv27nMw~{~d;{_*CtF4b%O{amkOLG%$h5H_!XaBbQoXrj#*#h_q zC$POCZ`r+g>P`O8e&!Vz;Vlnxi-=}-)+D|uvgqv>THq_wut+k7~!9h zk9Y^}ArLpt{ldf2WuQg;O#{(U&m1WKxiIq@ZV*5iKJqVcoZxij#Y#}K225xWNF5Oh zxO8oZY4*Xsv*KF63TDOpcE~XQ36n?NQ!Xio?miRlOG^@C3Vj5EP9jpu{dHxejzrJ2 zJuryfQyzEmJFd49+RYbvm;YMIEhxX_+#A2R4B!Q$FAz@AN5qdBjm&5*wsF`~G z9(J)E&W-K6O1qxU*OZ~&!z^osIE%&SQ%Dv(1-i1MJqNzZ^O7s8uxcP|aTs zx!G9^>!})nbv*rJE;UWLZ>=TjCsTh$XIJwSqLGGyCo&l ziiPT76OrtLyMIhJe6}>2oU1(gSS0@8C&Fq+q`@bkv1fo(grR0P$PEw6*L3o8V7XWc zRZsZNSk!;d8{VAtcjR0BRU*HB!V!H=;1I&4_5`==X}@-yKCXpGMWf*p&`LDpHuF3y ztr8M;&0`C)yhvZ?2QF4j3dieuF1G@h>V#*a5t5=dq@!Yb8u{HTitSFM%;I51jTI1E zaZbY+DzOb+-c;<8GYRLJ4|)tpWgzTqF3Qz+mC3<+3chc)4_4S}Cy#4Q z*R-0(WuEyiLp3NXv1=|l-+#Y2#M@r=GpG1kkHZTy{ykI^3bF0*iv% zE&$VQ-6RZGlTq;Vnc_1uQt>7Gww=pz#_W_jOuxwBO~Qs<#}6x>Sj=PF#GkTUw$c9l zm*Ym1(w}}f65KDv?qu@=wRzx*uQ?m+qRuAHctpoYm{KusvR2f4&LymRt{&rkUR`5z z)US4r_u;a;I$sY!GU!7@%1^*Mqua=W6YfoWXt*?r@Tm7{V z77aU}>}bFGz7=S=^ln8D<}&g&*b$lxdM)ffJE_$Q)!Y+7AJCTc*UVilbaCVgt8kHc z_@iC&ZP>8y_4j9XR`|vH5H`fXkI8$mmQ;~wn#S}z)3zjZMnWRU@Os0uA6n7I`E8}$ z8M-I~&IgKDMZ{e&`q)i|2^-jYPNX9tRGiq^M-sIUZ)G3)e&di!(vLt{%;p0$HvN*ggo|^FdLK zfV_aFhsF}!$r0pA-FjaJE}-WcIt+J+npsdxmasoQOu}dmwv@^m2wSak-=HKog=v2yCTKng1+J*g% z7d0E)PUqczQ4%yc>ro%gzuSFe*vm16S8*;T^+S2b)r1YgI`DtOC!uCQas6rt$otE& z6KGb<$i^hlk3CSc6NFJ6^`;LYE5etTW_bCOTDI7N<&7yyF{g(Y(VDBquX3er5+eRM z-r653%sgr}nEm!WR6u4*Br&cs{aJ-b%9{tw8>}pCWB-}H19_3^#z!Hn<$H#MPRvXH%(My;WT!mZxIRzT2nIax7kNu-O)sQ5i=@KG!yYt3K(pYxzzkp{M&|CNR&cBDL@0VK7ld=wU0d0`dCwjB#tDm zx)P)sJ@b9zP^Bq+8I#yys_FFlt19t_gr#5byw4Uv2POgq6QuTqB3)TpbQEkf{hELX zD4&1k|8TVL@X4_&f#WA~t+5I7^V(oq_M6~kL+N&g%cZ27CG_uhtLOf5RJyJ!k`1$v z2Kj_2$jy{wF$;z?M`m(RHCh2Jyft;Qf@V1yYSvWw`oc|F zR6C{n(#~YXX=^#C5CAAij%8d2&946YaIJsEN=5%rQ0_`50DBXvXW5Mspu*|u_Mor& zI_eYQkAxR;={s>ljZkbjrT(W=2x?#^Y|HaQ^+&%%`wvi*8|J2 z_e|2XI*4TftRflOaXYd}R$qx-z>{S@*(AFTacfI25vWm{N0Q?ii_)|S5AYuDovLGKLuyk6Ev#eeE4f2teZuWMZ^X|N@h46&LWC-VwS$5J794uO_-|wQ-x!wB zC#_IrNdoO`r#UUG>_MbPxb!KJ3!Qv>E=;-icyYKL8a(=W*P)AlIg~77P7m>%iMj4N zlq!1*b-Jn1YPiBaVYM@yhAKE@@RespM{OXl*A@2|)HiPW+ez_(t(o=f{KY7RZ8P6e zYapGwKs1StrDg^SZ%=?lJH@52sHkXYb^-AbqGD>8nW>S;Ws?RV`mhZ2=sa}zzr31` zG*bO@eCe^_IR z?-C0A$rY}B=brjDdLQhGR_`u5l(84Mz02cIl-Lf2?LXf*neK|q4K0wAAE_~kTUp9I z;-sUr-pc0XWtbQ-&f_}Ld*289cmfFJ(8+I=^cO1$g1*NV&0YvpPn-@z_>wf4GQh@5 zVbR0P^9&<+seMX~I9R2laf!M+FTZzZ{lsT0(rWW~cSOw>h8_>M{M+0l*dwBSuFAW_ z!$4dP6OE}aJ5P}K-s-HjJ}*&IzYIB5qB@{*C2Qqn8y?y%=PtTuRaQD+%5}H0;^VXBt8k|95}VhA z!4<$e!%5^XX}A=a&q}x8>d4Ns>GHlKq{{gx@=Fx5k>}jGS@kfB_!(Mn>t3U;lgY~t zNR5_h!GOqovd1r6sgrk58S-c zePwQ+H`*+dx?6Sci@e~s8AexmtjtI(<+*?~L$N!B(?25%Tn$b?9HQ%PW;MyMl97~m z5Wve4e7&=1ODzKL&5nq{pXGVVkdeRV|3G z>_#Qc2gmjNm4ZfRlDv;s_?R7Q>Et)lJEk18~tN3hwg>A z#8|UF>U}onzPi0Hy0yVs{$#9uUm!eNo@+=RvmjM1 z6LIq92ZI>fNaL#S+wb(TqBJs_M~iV5pa6$``ko?$od)k$HQIQ})+Bgp*uGkmJ=yWY zq?Jd~`c$WcY3}2^6%@k(dx#Z-<#wX+&ziKiS&7H2FVL6V`0+~DzH1W~n-L1uv8H;T zR+ZFSM}I8nnL`b*58TKHRZ}Cc-&&d=_Y7`_L@`I6zlDL8}mIW zF@2(k|8wDumw}Zi6Z;J`bzkX(UT|UW@`v{IHRnq7T#$@D?&=aAluM1;T?G4vc_HcM zpo@4>MLQ<%lFP^6o^?F^4Nf6Bm){(9k@&2oM|!w{2!<$G_;PX^aqMRsva%**Gm@Z& z;4vgxJ-uK>AEZ5h;vL#YO_r13=A_KtGTr^7GAq}DUzX5QLH58svzWQXW$Kqrefp3Lq8wnhP>0lE)_bNg0XL|tI=G1pw-_g@B)JI3)N7mT44SxJiBf}7CN$ra zF+H|_h#e7MoZY{-<6g3(p-7Fbdd>SDPZg(DtZCSng}NIHxs`uBVP4?4bmA|7PV|Fe#}dFj94$*G?IRqf`j&6qo7|53z!=f5XZp}PV6`j2E#7^EUuFM9!c za*fmrSqcA}yw*(q%ds9~y6Z2;*tG%VMsLy3r3c79(dnBfC$KlDlT|I;F`LHfPIuz< z()2hVqbA8zRNUxS^ynov4=;_MBKN$knhG~*62ePQhF=+kAos$>Bb?(xEZDY51O{eU z4%LdFiva5P`vQ7$jVU?F5GBOuatFxJe^84vF%80xv~@~8N1gWR)!VY^Im%vXoN_c< z^0h||_QWG8-&Mygu^!Y*9Z)GDYIVz9isua+suweQZ^3_6WL2Sa%X4i{JYy0C+%#@4 zHYs#EZn=FLJ(}HudZLbw*b2267T{OPUhooE81)ksZL+Z#5c#SE1G5`qf*Y$rmZDcS zsSNtF+Bfa*?8qgrXSg_5JV7Pimguvmx)?dTzL+Ns#{C}wVSr!B1^XK?09<^ut&T~l zwH2IrS%_^)a{UDGuOa?X}l4$2+gCtJB;p!&op`&49 zFJ&Kgq&_aPJx*x%)GrF+hry+x$-q5qu3M}VpfBw%XZ7wZxg zh?Ld7F&Vb-+KMHGKw`8G*Q)_6__104riT73!@`hM)(}4Iq4E5{W4oH^?Ro&UKmN8rv!PoD22GO>zf7|GBojrdF za&1xdRk$LV$Q!tVFLmzBwY;)ya)!Csq>MG9Av!QoO~=6VMFrj2N<$d+=pT}Ny&Egq z;p}a1^e+JA>`ujXU78kM)|)|)!qL_1o9L*IWg@Yy_~neljSc7eOh!z6uAe(DqnpeQ zMC@Zr1?0`FwZ-u><*8~2_hF`KfvuY+R!6(1a4cmHisrW~7pml59;0ft5Gzza@pG~J z9QL5$WLVXp{QJtd*lFb)C4mGYDL!QRNtwE(Lkf>eE%3s-U7_?5rX-qy26(nOM0xAR zI6Z2w!IXja`Yb(p=v9QRQ#ZLTMo@8)d4E}z6S4eid@zcMWQ7v%5~A?b8%R=UE53ZI zMI>z8Y?x%EqFQoE;)#Toud2?Maf65AFOJh1yAAf7P?|te%D0p0h5yb-c*{3Grd<9- zmBIz&@2`inK|=JpcoYj%n1-HbYD_bTq}MZR(JGf+ZkAGubBn8QVh-3lgyG$mHT3pF zJWKFh$3Yfygh=^jI%@TE`UaRe9gcl6t7IzL={4?~mQ$Ycef28U;gg->`mRUPMnkmD z^v5IANXBhkHyHp%cOlZHc60@Ihr*0K)Z%|}%0{{Cr0KzgqHm^qZ|AhDsl?WCP$*9g zlvp`SObSFaUbUYUkv=cU^TjAU@%hNHImeycJ@5t z#BJZd96BaKHpANLMYaLat*PE_Tie+06QoJID|gfPW*yB=kvA7VYrs*c$SKesH1?N+ z{}!;GZ-6~-W&*3yk_2$F*-i8CySG97+58wu3DyOKc1R#B(nJ5iO0JSvS_`icEpsDP zCl_e;KFl>a*CwR@U}u_V&YjXQd)j%^v{u~OdNg|vnc)Vf(uKjjp#i&Qs__BCr2U2Y zm)^pOhiA@j#28r5-~-m?Bx@80em)QE@c3yOg|GR!(n;(4w1wW+q=rS);-Z*ZSVxbH zGgiX{jI!Lx+7xMOuZ+RCq-Cm1$PP)RIrn^me{#|w{?tFbrZ%Djq18(^COlKcTIhu(Qao#ICbhQQzwD1M9WE-1IPki?AgkXNhSj`{n*^WDy{spY3b+XqpsYoj`r(i9Bv4H$+g~v#6ZpVNXjTC z9AAN1o-e`;0Pbn3rjXo9Su#@RdvamKDe8w|X|TV^LnrN%7cX6S+YtYG{~Tww;)NI% zU`(3#SMu?KgeW5@SQ82#vf7J1BRsIo!LPe$BahF6&X4PEZbLK5LRV>0!9mlLe(EV5 z>?vc9hzY*pgHe`)v9FFlw60r3Nh4c_iNoIPJ$eiWU>2(5m_n-4fXjyt->O=R^pSnt zYTLFtp6QWs;*Zgp8uQkKc24gmWFju5I# z)#fa_87;6;gZM>-x7}{g$;XoO!dLL{D^k`*!>5O4$4qGay+aL`WL3+?jmmGw+aC6wpO|oZohQNww7P?C&TA$= zV{5=Pnqw=POIMu4s%eutF<9)Ap}9Y}L}lLEv8%KDZRv?g;lN)?+lt@;73#*lz{N>+ zba}KVw)NBYUeGEWm(w55UkxV5iE6ys_05XGON>CoAutOZ54^+VWKA zrr_+iT!DV+Md&7S2Sgb_!t!g+b$M+ATOz5{b4S&+OgyYB!sA{wKg4*g|NbQ|R=ZW? zHt4Tnwu}RhX|9H9T%wTo$RMR5TvxzdGn5d5Q!zz^t1F##oaeg;r5e}WT=)^4Sn9$K z{5lni_@2j<>|`8+TDni|^- zUM0qI5Cokb)5A4cUJNIEF#4C{u<6*(St%kzi}{#}?j-QuTa?;2 zazee(m)mQrEJI!Z?>t@^`|Pj}fu2D{M_2MAV5AZ4=W}^cTZbwaF4mi#e&Z*vhOfMO za`3hX^QyKdrB4uhj`p5F{oP?z>{R$mqek3!v!3^abdMS1l%tas6@ND&Hws_FroI|ZbU{0>$^s!F>Qf-K{VlJ3cEw_ zaYQ>YqS_*Dqfx^e;$L_(uiKRsd{-RwDG0EA_?N?8i4O7z`1Y_8`N5*Qnj+X^IGL(R zCrZY7HA!hhv&u!yyxs>i{F#YHx3!Z%a*0R4c#QJ~^@K>^zrfYVN_h zN2G+J%k}={22)-^`x_)akXWxBXeKpGxyPTC%Gg7N&r@W5m#MbA0b-9kVT*#Ci`+9B zOex?6%3>&JR+u`0b*!2|=``$D*MU$~-_*`YEz-B|)zpL>t(!}^D58EtGw})sYAXZy zdPz{1#6QaMPK?K24x{2ic$oFHxOnw1hZi{{CH0DI6j}=QloY#nI^+7p0mJvl3+@Xc z%g7)Z*@fI(zxI@lLRQAL;Sbm_uQXNIxR~(W|I1Nc$%quyH8Oe^==DrK%r~6_rYN*S z;`r*H%c-+{qmJ|f8h$yCb}XP|({ztR5yJhcXYAsXYj$mAtz{SKSWTk*sF7kuUIKa< zK>PDO;3bh+palYV$NYsu{c3^_$!xiAQQdDk73fG^h>`|@99fWy5x#=TV)r=g9qfp4 zrcSu0m*gD}{JtvjwEcd1 zb-GfM$E(lpsIotEX!NehJlyF^|d=rrr^0SARc*kYfKYrTQ2fNhP9yu(; z`6##C>(Ipt&*@&=6Q~*Z)s&aI%Ha7$>~C9BT%P8p`vYWJ{Jx_Dl2FeDZL*DC6*uNK z+<*9U;uYEPq(Zb%8DFpjwjFqdYD1fn5S!;bZOwAXKX4s;iFWdMr`%5WRGu=H@CCDF zrO!>f*~926(dAB&Tns}Kdzpp^mKok>g8R5X&pR(VY4^0iE4zj#%*K@(9gV}jc|EJY z^w<%ZTEN;_K$KJ|Y1l&}lqt*|sjXEKVRL&V>1N^&-&BN>G3F%WObKpX_Tk*Uoq3!P zo_nQ?A&0%h3PZY^iUFVTpw#(I^j?QOT!S(K_TwhveQu9J<=y*sWv_g-(BeNbQuvpn zbp%PtLvB2PKsFIIXOIZ9u*o#gr=gt~=b({FqYaFSjy~b6iCI z%(X9V$DbZ_;V={HmecY~}6X!{*-sk_lsAes))5I6Gt0y>Eqo8UKa+i4Z~rAK*%U;cy7%r>1{i zl#-!2zuTRb*ZlojMd^)Ov-44>erx&Mx=hz~bTxc3IeG&7t!VB8t zjVe=LbwJU_oO023?RDul`(8)%?09qR0rCw2KD%a8J_zhF)x~tTBYJW?(B}af3KnR;sR21InKyW2jur`j{NT?wGzb zKG7x-FM0h?;OKOA*LXUs8NARn_Bl8d_$thU(dMuQ-*3Zg<^^i+vITHTIcpv}_td*V zQ&C4B6|%p?z#dTZ)LFl3BGm%9w|6I}M_jo0twaIlHFXnPZ9L2qydk_E$CLm}sbb>4 zx_t+SBY<~MpG1$!7qB{@W_^efi6}#?tkCv@2ss(v5~*d&m418v%+PdDx0gG~SuXKJ z`@DwMo4KC}=y`7R3XR6gzRc&%Zr(y}D;6^K7F~tUF#er@2cc$O;vF=|`CC>YRw7pR ziZrp0u*rjJ6APrLRiU4&5B!1Z*I(mb&HW(OsE*<3ey}$~j=2Zqy#J)esK`*s&sKCh zZ`V8u90+`p#`ga-@u;(u(83R^i?Yp35v&+eCp#2_?r(R|_?CYk;7b2Lhx>o#a1$n| zHZV{L&RObk0^=fXk|+VN21JLtvSBMJZ_FpI@+sNbII=`K;zL5RtLKXOLG3$6!rKE3 z2c{@ByfbcWq}^dBEvU%5&}~bIboG;0O?}wuZ@q_P=8u1JkwhI2I7Sp5>DcaM3f9oq zX|atoA(M}_up{ldUwssN>LmMSjLh|uyH9)Cx;eTw(IUb*sQh)fVKUXqG`L9-)+@lO zvQoTMvGy|{L1er-)wPkRYat;RnM$8YSAXe{skd68@-pQWiU)q zl-sg~nP-nZKcT%~1y>CaH{!%tNo;Mb0SGE6G3>K6?r>k@Xi2+ITdA6U8G#Zwy26(2 zgo4!uy0Sb@pYnjqjop{Y1-550dknopjS!te6h$--$A9|fCbA$A_%V9?RLrXCu{aNo z^_|(_5~v8;R-=R&D?^<)2AV$&%@B6Lb=t*V^iPW)Uz|hKWiAHrCq9g~RTvT|>!3XB zP!eMA{S6GiH0yPfAiGNw*@}rFy~&guW-4*!SFhWC{Xr)gy1h*y_ZVlr657u9KvZuP2p`;n63-#22kW^y!B5^@eTnSI<^ z*~dC3jW{iQ;xw<9WCQ`w0r!v~dZ%93Lh^t_9)6_PYhD5`%xJBtXn&;gvnkj)@-avC zPxp_Hav!E}2!9ReKezA1@sSJ##!~9#q^jX+J4{|eQrmEbrdiUKFWGq9Gl+i#WE+|h4xv;;(qz+lTd zc9Q9*;#kLGYahnON{M}_EXWx-7Nd-?Q%=phRQ^KV?0epMx01fBs;X}w)}v%15WoXg zR-(VAk(Z4a*Om~}#6?}vDvu={6Y9M&iBI+Zlru%&CuE}=ylx#Zy?}IAqP7BVE024o zlNB8a>f+VXS$%}0ne+$SLz)Rux4uUY=mS=)D1+#zV6;pE^!os;#qf3~m!n$$azx|! z;eZ!S$~3RK@~_MJr$(DaGs{i;_~gHE8o$`}Tk4<^4n&{LszfK%aP)2*uMO6@eDDqp z8P(u>KXqiAlqBD!(MPwoX}T>;98L-g+%d6x$db7Y^uz-970<1E)`5w^&-g{|FO(e# zzk+({^sf4&8woAX4y-$#bM8;7YqRhOt_u=i+5;JrSos9#E+Q6%Q4MY|@}|e_TO6Pr z^gQ2Yl9`ax7HCem@tQ^zl9P+D;jd(rxiS{A?bZ4@~p# zK>B$QuL~@9@HAYG<|mE2L9X`Sa<(*VpY1e6Oh)5=$6w(6EE5H4U5`V|jICwhsW~Fp zb86i*46JC{E(gm24c38Cw7VXPn3YPtox`h(626o2W9I9BIac;%51;ebICuEbg&%e2 z9*5j$UDrn^LONT_nBPWImMRGd&dLeGoY4HtSW9K*PYHDkSQI5o>ZdcB34NP8wyLwMq^T=~d) zbfT?1^sqnY(WD0JswI6b&|;i!i){q2+!$pvIn-I~f&twz?ww z(qW5E%@DarqqMop`jL9tZ)RVtgBv^$5%?YKow%={<>y+oI`H-Q1CAE2Z1jmvx!v#m z-7Hz;z0;AiJjZ!@IxZe&g!hPbXQEGBZ0&A5*O5E*rn1Sl2<_6grwW#^Y-*~!mnxbjG*m^Qu4=jxcg3Lc-|KLNkfW)!zKmn2UnIukuMdVeSD%OgXuX_yF*(3$0F(h592Vg=w z$v5VgUF2KS(pG=3V}230lEaJyBJ}y!H)Rjs2AD43kp7%B6^BObfd_W|?B<_Y#@&Fm z8B{2d@|sw|PMa>izNJs?sK{IJYdX?UDton*6(w^RQrT-Ib!R+YEPr$Ozan*4$U53h++9~NWJEto%)W15Z%G7!w z69BsE4c(2k(!IN@^?sC~=nt_@1QFtDI!b8o3uOz#@8g3~*@DW)dMr-<)HVAU>~!j9 zQ~xMa>CbIeF;)_+Z8MdBd3hL7&YJ9tZt%no&#Q}OE*e%=+uZC`Z<&z@*rM&RIB>rf ztncs$Gaq97v1*yu_Z=12pAE0z6v# zONj(@ia%7dW`&nF-h$^+Ght&Qs>GCK13oG9)t#?>&0TpiJf5K(@NON$)DC>rndR`Y)&a-pZ5dxRs$Ib~jrfSXwi)k*nkxAvt<^yRhT_%{p#r z_2j#LhyEltDsA%L1jdyXVE(&3ZiYrxx>8HDvARNVX)>*H)(*UeUX}}0*d^w5s`Dy< zXJExQP5Y8MkQJ#Q(rhhl__!1OYo)+b;yvR?g0I#MnO}z$Y7OMYJfj!l=D+TJmriZc zed9jeh_A_+rYU+`#>{2DM&FAg)uz1XJ=fBGbIF^bm{(QjR&PL7@;U#PBlZB)tWKn) z#Q#Fht6`JoO4ivIWaEu~h@MI_P2TG|@P(%{<{9eS1EFr3 zSxfhOU5v1e$<1)Jj17Mi)zH-Cs-Eib zN^0xcQ{0|!Oi$|9*0vhl*>CEuJ`x3Au99|D6=y{rncVdzRNHXw)L)JQsZr*4_&4>^ z^lso5ayr5;v}gnB@N18m3`10`Qn4+_KVH4(rrL~prSjvJH1)c!*)OGKQ}}q_CsW{G zRPit8QZcjPpT@a{naF8VzA5*|Z$bj@1l(Uev7Bdf*;~zto?EecxhM3gNP`v~IDRkr zu(ANTA4G1SF(af>)*QpS%ZEY>+~b7YN?da5meZTk?TnRHA2Tohw3B?X-4@htK=VUS z4rzI8OHPovkazL0T<7xGG`}Q!Aai%zjAlS1k4tOTM5dK7?q^fi#s0wT*jUWL;IhkP4FgsrE?`BPM6P8J59(iYI1 zkZG^fzPD<6GEQ|N4pwmaga;O@*%W9o@;Rc?fBD@(&E@T&qJ_X*-iSNt$m$cjFMo+m z*sFZ+d3J)vy*c5}!k-PP3~R8h?nBK-8!#09*otuy+&ZJ*J9l>brdMLaBXl!gS~S)v z+mWxq5yR-5fAk8-fZnF^=2Uo8>8i5e2t z>bO;ivvkHk**L?N#2#fm)BX2yCz>SLgNRCGFlDIZzPv}I2;lD;hE{WG>#M^^GnmPW zPxa4=azC~4w(gj(lu`$sSP$UH5EXor1nwJtr}hpH>UbNO|44mCO8=faKUya28!&Xw zgb96Z#PRxk--o|+F{fBL{7lf70i1*RVCgi>z-dptCWWM=qAUAYA)65EbeAov^{yi2 z;h|-ZKGHz@IYQui{_otLo~o*q`RcG!1y`-30zLAijBc1PK5Wf5uC1R%-iF3dbSxFQ z%=?hx2@g!S5yhAmzRE4F?>a?E4X>sf7-BKX4`@m2f$LZ9`dRmN?+nE!L-(ObJk=yF zmRLbx9s?~ZRB*!B+XE_&kqzhFoYWp%4Y^SvQ+YD?{mwI*O{4P@nRY6t(0Wiak}ZIn zLINv(Z;kA1}*&$F4+W^hOM_5*Ux& z#DBH{^L0$OfM!gmQE>?ra%B3gE~)tY_oCbye%8LYT$&*JT)*wfv(muw=lZAL2=CMl z&tTa_3EPf_TW!{%uc$X?SBf2@lG(}^QPQE z6upi)gG&Jms-t_J-76*7NE7{pBz3l?pqd2WrwMjO#jjFV(r@MC41YhJD)l0Dy0OL; z?hDkS5Db6zC$v}u+&wsym_0bKC!E@?& z%~|0;hJy3wGwosmhi^1y`O#lu8k6hZ1sw#CtAoqbyx4@4>b_F3zZ|}V5WjIoc{NDO zHl*)o1v8&8+yYvDOqW2@QdHgNzn2~}yS4L^QT|E$XN2D?b#;vkV*8jplMwTu(rnyv z&rBhnpSgpTqp3# zzs@tc1p5%E3tn#Hf$9UUgp<8A_?ndDJj`oEjP)aT>m;%(1wpa?a9jwF*`T?3Y}Qkx z5Ac`Cm_ItIg3##eK!7UpX%fr2+2{Vt%YQl4aEZ{mq!@ z8(IIY{(2V}8}{E4ZvWTz;B1Wsb%w4z9LnC?`;cJ{8`&ybe45fqA+5SLp+r!AkD)|H zII^}*;91A1A4%x3yp`YF&o=R6$PNTQ(_$urzlCq+^AH=`kU9zX z%^=|u@+*;4k7>)vhB7zt>#yBEcJHXt9*XhuEy(ViKnd)TmOuPqJBp5grRf=YfSqi< z#y;+LmTHhv_A7l^i6>tmqND8YyNeqnZn1@^Z6)?zdn$%*&kD!d%-|#NqPiN)vqPJW z<|Jk0^`J9tBC(~mtH0$ZoK9x+pKkrc$&nE_Ys%i6z(B%w6!OaK3^@v-RyRq)x!R77 zg?3=dLU`3+<6zpV>TM$D_#dN$!y>C_$FmcVzig1p0h-m`+Yi&cb}zoTBg`jN!tAfk z#6SFPbKTf(Net_7G*3gm_rrG^h3vVwF=X2|nkl5k=6Oz2nnp$6JDVwzbbSc>_PWq= zydJCg?wF3zWjlG-ZN;O{dt7m!(G!e*lxY(5@cd5$|C!RM-Jtv|#~c08L5)>}yxkY!uzv{41r{oEZ+(AN zp;3_+#q){jxUA@&yS{*wnlut-_WVMYAFHA6nsNSs2ZJZvD11V#nj@>n>Orr^ED5av zSFshL=H0(Cue{87QPS{J%F1IF-d|*864m2kF?us8+8p#OPrb4&rSj6j@se29hl`4Z z_HI8hOO7t=z3(UlUMA4gkS-7We&)XM4bR<-Hd0WeEOA?>=Jml#4;iDDyZo`vO^&S0 z27Q{x40`4JEG9Aq!K=(Z1;6MmaOlZ)FOpI+AGwklXrybfe)?$4mE-kc9Hd$n7b^^M zCWnyAHCBpr&$%NJIC1wWfy%fWA!PP(JMV(-)Kdo|-$#6Ck$6)p7_TK{#4y5rg?O}e z7+2A_L2{|+iaZ6mcahZ4KQTEv35Ru0-c6Z3HrthWEKTar>wUKql|MW_>}j^`dtI^F z_+){wir3?lAxSS1KQ<0jr8kAQ7%CKRo-_8cO~if}skqwf<5wNdODzQMQPlvOM*^g+ z*|p+#k*D9kRFB>PlBhfd$1Zs&ifr{io7$;lS0Qrwh9>3SNG52Ak8WLyfvEODm!|RU zR}zD`&1ka4-kjm?rt~1~zJto_FNv4)4Iey2Te9296?xCA;z%P`LF%&y$S`VdQlq)n zKXpqth@0W{C{V@Vtc!-aPO>^=x~oHk>gbfsOEh$c>i@ysdxtgkb!o#OB1jdb7lVR= zRFPgJDgq)Zf*_rUNRuW4(usid66uOc5JW&qM5+jcj)3&u36Ux#K?s2q-|g?2XXa_& zl<%FnzHjE5KSF?z`#fu4)6 z{d>icy6i$0nslz-K>>(&ciyWvW!Rb4 zzDTFe;AsZOnb&)m;$_>}L#ZP8LuqIcgG_F2^7s-;R!Y@ z#Bf{`7D#W&-@whj6pH`&&_=X6@ozjuANe#*}g%;@&B`V@xH5NQDM_>1-J~+-;JOk@N<{D}Oyp6Lx5`I=ze!kbX zzeSu_ul^}w#f#HTxBB`O7QUU>CASX4S@%si61<2PadC}V8bGeQM7H^$Y?=M`zs~=C6KpzgvUzEhTq1Vd`se>og`+vu}5tCmUEs#+lrevpYaAL}4 zW?zHb?CR_d!JO^21vpnlz9d+xI2>!ba(%>(4Nmg)-4j`pC8{tq9x${(>4Ip9 zzL;xu3G!Dyj(U@>{i6B8`pMZ)2fCHU1za_HDCIfa5gi7{-9kSDi?=2}(S1mNENfZ6 zymt81&GMPN*;k&Pay9OsWFCtYj=>W189 z&J1g4y9pJQym>ZSD&iD0*6B=ZmA$X4vTCDrxs5H7NAmshnNHQ(*gl6DRKA1H(uB5J zTG^nUdb@;xx4uUW@#liadN@gQ1%}glBababVy3R*Q|}&xy!Q#^0a|74CG=AH^{eA`D7-AaR#B1g;F6O>?V62aNLp=8vKULb4x3}yW-td*-cHt1)A?((DJ=z z`1ly`qr&`Q)HdK9wj-l{PTR~`*>nWw`bBn`RHeN$cUy|?wRQVyx@4Wrb;c{)nm0r$ ze_b}#-Kr+*LGj!sxnjaw$K>(dwSxY|gq7{hE1G&Jm^DWSWw(VzL8mDi(!E2q;5nV1s)dwl#90@wV!9HK7=8FR1jM4pM!po`co-xSWtyq#)w=I-%9dG{{8nW_x|Y5r^T zU602`6tK4pN7^JONA;wG66vUnXwq?N4;&zHK;zu68$|UYiYsSKO-9`-@;-l#*OM-( zxLdUt^3C8NgH^I>r^TDEkqZOEU8<+MhG%Gp#X?!g<}Mx|Rx&18u55N~a%IlKPp?R9 zMYKrL@YM+Kq6YhjXZB*?jvnLrgvWJ6ZM*^2wB^-?4%VV(`0h=~)+e7DPiOLS=s2EN znzvIG@Qn9b-L57dU&bJtq2ov_G_K(k`7Uu0S4-`-9%|@t&oqt6PB(#9NWJvD(3tJU zJD(M38v4TXYLS*wzG_u|_xesSkg3;~JXysq9sw=5eon?jCishw=5N@{Fi4bWj-4Z( zGi`+*CeF23+$zg8GyCD;VjE~r-&V}ZR_G?EBmO{(KlKX8IgL;eG$lyGI+j}vCL*UW z$PI&%pa4o7+!-Ckuia4T>*ZbIyWkS2{>rEBMUQk*bkJ@(jc54tYjhHfJ#cFqfiZ6s zr(ZxvYc1DIJth6E2Ukyh&$}=e|C}@}9o$#6WbQe7vqw6NsCYd5gg#GnZbI&zmnwNK z3JZgl?-3txv#;LXde84!ZV)UrG&#EN3h2?q)q{U4-I@0AjHJ@?=H1jk-flB6l>Vc- zSWT7xKuq3iR57xBk<-v>5vY1y0*R`Z=;7x8=HLr<*W5de0LQtb&_|JXQKXoeZX*Fp z2@aS#iWbra2{0u+9<2=E8-lj# zE=0A!d4dFqDGTh+vY?ep7F!X!0wrR%tD)OnYrS_P?a6%Cisugd$+x08>Kxw%Y2Zw9 z*Z6zu13mK1EIRg1GjP2V_dQo%?$TomYp=fypQqnc^hOl6wxy_ zKJU*hZFh@fYUYrL(J}p_)fr-2U#+B%&tw+G`!J{`2sYL1{c6SAkN>LKfWtj=Vnt)ANOCe)(}C zrEb4yg5p+Cp&fJw05Av#gW~}Th~A5nl_-_ui*8j@t#_0COwE&YIISn#YswsU{j>dt zC{v!WwjQ4j<9h>?v!Hb)$WI1j1qhilmOb8Lqx#L;AkiWF(U}(x@`YAQgUuqF%zBTq z0N5P?e?J2UQ30Hb?m7abMD2q$b1n|6RPXZr2bxFmoMOJzmk0dzrEUtuz7Nlnr*)}4 zZE$_AZo@SfA&~f6APzEyAw*U7`IBWhc`DNgo{hRTlQR_LC4`9CnP4YZ#%|Kb&Qp0l zTFLe^{p=&2G9`0b0(SFF^i)pEf=BCen#R$Ez@v501+g%B`KhT}ol?p!#}@12qH|<8 zxwrKr=s!l0eq-OOpi!q>(enjJS}7k$l#%5snzN35`DV6N-?moZ;cUK&A5m1U=N~F$ z9-n^x#55WG%>&!9zKEYASmSs5nztr-nk|swyFYa7U2fi*c`I{lV~&~QlM@2h$??Fp zD_PFkc+scJPMV#-GlF(Qi~~Lxn5$D*Y93y><=lKl70GNQ!>BsYA&yUgPjJg_!0__p zklXTY@N|$prc2oS2yQVUWLEPm@fQt7I~~eosdXd<^L0~Xdx_uvx%va2b;p-WNaw|? zp@F8$0Qiy(hjKS)61TfC@FrQ-HBCu8TehbMh=cWcsk70#6|ix5{gi7i`2JjS3#i;? zkWYAkur2P!hA9To0*zHJ^1{k;`5F6#TUCdS>Id>I)_)FDzh-@DZc&RR#O^UmL{$p! zovY3T;f_Plze{Mag5iAf*B494cHpKTPLYjq-;TH-BQ;M~jLM8~mct#bMaB)DLcfUO zu65+($Z4=3zWY*H0g#&77bN_PrZnW#FPdTaZPe~re05lm7#`A8Tir4zw2E8HJp08_ z30YunC9~o#?QSP`^90Jr`^>eSg2K&D*fOfvZv~;iBEaW<3Cf9CFcr=Dx!frqaZ97F zruW)sp7)%Rkfc0=0?2bpi(pSdQ;#^q1R7``D)HcFESr6V6cla-=2_R-X7z5L`l&1B z7>{)ct-W9z4qFCYN)Jv8e*zdIvg73)nW$EeiQFs0ny1NUYtlBQ9foq11F}*$G%V*V z+gajI3o^e*Z8f$h=eEJs18h(W1`KOp55HRb8HkwQH`b%8IH99^*#1#Ve{59_LBx&% zL(hKz8F8=)1of!%JhK2`@t92#zqHquv>KZG8TGCS1h%;Qr>{NPUfdQ=2w8nV!9Fi) zUoz-GMj>&&fbWR44m7}3_BEnUu6-I%Fn{~pXOKnh+8~~lH{l&ia&I|61g2Ki+~Z%*}&H;saoDE>*tUwB7kDr3FKxqkF24~ zWnPhJ$pQE?$Vf75et*-nrKC__sDeN1rRTXfwy};9@0VuHMPXu*=lAWE-BLW(Ko*7v zm1&Cvr8Xl!b;RtjGZNpo+#%*KxG62)!fmGH_i&B0)$MV-h}iw+)X^C>_XGz!X(xV_ z;WeBN$WOq?9DATNku^z_tU#%0;Bw}fl_UCNk*pSLlc|K;FPHl_zroR#Ul*)Oia2To z;@u2M)u+NT$g#N-t*XuFp*bq6H<7l8d;+xE#QEgevH9f5M8=#h!rl=ED7QYk+Qi#F{L!t*+^?@AKE-Rd2Zr+uT z_@j5(fpd0XNnZpxc5zWY(7Fl*yXP{{(4IGsRV3QhZ08L&ho0Rp3lhM^yW9kvI(FAEWXuhZtiSB*!A&R|&2fO%I- z24L>TgWqvwE>aqJ7H*(pn6X&r4!TQ&y3`vz7W$au(~jhmJS0UI3*`=jh`Gx4H?BSJ ze$*;tao4}p?c`cQDpWtg^f_b+yi_`f^IC;{%O{_}5>UfX+rBAX%-DvZEwfbzM#%hZ zeb{-H6z4sT%90(!@1gY@XVY${JZ%Nz&Ek)FsRH!+{HVPLTkAvkrJhaio6cOhnTL)q zb*;(V`%?9oQSYt0&gHv&I`n+0zi2X)$(*J@8G{6NvL@9!w}KWtU5ja!FizpZHCGK- z-c;SBE1{8`@W^hCz!%+a`x+&@Z$IoVf8FA7q9JsIXI^tZ zV(jauSqrCrdIT2D)-qRxMxD6KbeTm@c;CEk=;ZAp<)2D?smIu8=f?(NFmu;_Ic>3EW5|Iv1w*=tRbR0mdr@bAgHhQR$srBcR8k^Tk>S6h)2OM8l~&2d1bGwHOZhStf-xXAycsG zz81(tmmkZ4O6~WdMIpN`|z=;E9r!l;|jDU#`nYp zX=qmH;mi=6BYHi7(Brk>yV0~D;E~*`LKe!=oBEc~T|XQxL~FtwTddkrgGKMzncWS@ z)Ux|iMhyCU0+|`il=ey>>^C|>c851%M;jTS*IHA9pZ;Z1$V$>) zQ_AFtqKawV8|81vUQpM+X>d!PapC2-Yoz*%QeOY~E0M8^&_I!cIq={|;Z2Y_2)KeF z@su4;l&o++Fo-nt#iD%7n@AdkG8$9NGf%50mL!;J!}?XGvkQ}zf6>UJCXs}b08qb= z;O(48OnNld=10gF8OTV+Mf;jtktSz#YiE71#kV~B=i`kc%RUB)k;G=F{bcp~=UQu1 zCM;J!wk=;Aj#LP}PpAGZiit;XS)~mwjszQrP%x;U#{*2V1qeWr*g^!Yg0A3ZqtvFf z7OdrOSI5rojxc17_Sb)&VbU}dJ?@q&v$)SFMkYcrQuy1rE%Ir|q%V9zo!nRE-$w|h zcr7}1_XaLBOi*HfrwLU7!6-Ud+)YYm5NlxJYRIEVtaUBylM|s16QA)ZltV7@hM`Al z=yrR6k@2uEn-}F2Si({vI5Y6n=Wr(0j%^39X4$BNxd?`^jp9Xg?QqD~(M6PnNhI$i zgOpjc(C6FdE6K0HbDM{5C!uM<5K#tp=1@ZkYyzwpNb1ot+z;weI7!Mp=qT<@|EOa3 zKDr`EyLf%vqmn^eYY}C(fzjq@e3R-9m6wCI%l@5WE9XYfTcdFz$XWOY*4-V{HgJQ( zAEqJ5+<};*hRtmYkVg2uhd@zPp~zj_75-|EEc6pF>t%6{loV@u!0?)^4+7KaNH=hC zA2jg6$1kDz*XO%V-Pt!G zLmgy(6zLANFOz|M0%ZpD=lXb^4#c8^E-t*evbouDyFP5x*4c;ki`FA<9joSR-qR{9 z&jd|(JV> zCFozl0=_4 zIXI!*EqOFY#YD)D>-*d%*!nBnlochVLC6VSq1!@H+H2)M``XrT_l+i>JJ>RUHWrbJ zdUUThRySa|siwKQpkyQSu9xQUoixxY3r!aBp zje+~IqBe&*_@92DS)pk}Nf2X5s$@Fi=Yo!6@@Vf!!*O>77k?S>1czHDA_Nz417=-{=RFS(BF-*EWhgrg0h5 zBSW$oS~zd9X3G7j+xM{U6T8?aMtD^3oWyfYyET`(oWlDbbTRh{hU!W6F)5M+cl>2 zS43(;3ET35*@aE39b7|(#(19x!_&Kr{b5#xPC;PTrgp)~xuY=MNXFj^qpBw}0#D!c zbn@=L8|!?!x83K#sn`b_eKUQ$r9WGtj3FodzK|f)<7nnpe!vGGS2LYl&wjNo>eeyg z`*z!N@x7AWCMp|sHRpBN?z^pXa=NUCi<4DRJVeNN1!x@^oagXuq{8Q~awM1VW6|Bu#m=Z!%eh;RtTK{t1#fqB`gyU%iuS}!T77J+T zr$R$RtrNIXJx|0|nA`MTL?A1m6Iz6OxLHJjA6$#*kNGO)^C&LRU7`DqP;>jjwLuec zEh%?8i7c+C!gMxMIZm0%krjb3Hsa$!A*exFjBr&|Rl@y9-dtKE73^&;lS?$>G_;K+ z*Uyc%4QHkJa;cq1Te4@;%-@#nlWLUxVC3%|i%`Hppa9d|4-ZWPlrSX1B$8g`>K3%7}WqC8&kDX{l~F zxXYbQUPp{p2PIn(7WBnGfGy3xnVdMo{#KKhIx<($(Ud?>mc^kuGDpMn8n$-SEjzhq ze1n$~r8W`}Pj0i<`?JTAVIZrIpG=j)j~4ltJgmOTx8<=E_;OL0Mp^HigDVY9=Za*e zdLSsYJ^1sm83Y=fO5*&*L!K-e2V>V<`l4*k`Jc^Ei6Kj(?am7U)13u!+N)6xqdEq+^=g7XqA$-GukQP{hVs~N3^<2#w6$J{#uK8j$joq)evmLoYBiY51 zf1UkuyQJ*;4favZ%5~F1lVF`^FXQbU&`wKK^&`~CFKJX zjs)*q^-H0)PW4e#oJS~$rudG3^xys5on+uYl~%uli;xVOQ2QJ$BOnd}3qyYRb2tR@ zYwXXgu~1?Rt_Ty=Hp4B;3aHOZ84GS|N7I+ot?%{ z=R)NTBuInYAnkcH`4|9z$@d#_bG|rZi-xQ!7VQ_`_Lp3> z#=)qJ04<@)Swq92_68H-n2s1}vONwsz>x~l_xs=zTNRYkU875~7vxX)ducJ%Zt6%p z(lJgNtnXde9_;HTSrzhRE-1`i+4LIF2}l_?$t+yrjr?pcW~Z2LJ5(D+O4@gxhY&@O z>#FmzF?#r$JCZXlw4{1a1T&v>&zM2s97frn3Kj=4@;eamTy%;qF+6td| z;jvF>_#QO(HlzdkNjIYM3-mbA1LOP5o1$xwss75c$c?-C+`Y`Rtb$1zkB%e^JeBCW zeE5)Ldj*^*CcD0u6EY@CdT8DN{OzN0(*{13rJNJ{8QdjKbDy`%5$6(*Y@*YGe`vc! z^~rhf*T2!-k}*Y11YcwUdyzzlugvT4kZ3A5Q3r^a51&n5 zT3f?ve@u5?N{iD-R=;Ha=0)y`k{jcbAvPYnS|Y+JCdww++#u?&e< ziqzf~cwgn7$YLMSc5A$v8p9I?kaaCE=<%_C-?@@&YU0%4)?YO0xKc4%+hk|W4ym%3;((a^Ko&eBV3mRnRX$OfMu}W zfkVs>qs#Z6k%iuOV$?r#2X-?P?-JBIQ;Uwugbbm39}T=UnwYA5@|2TyXP0Y8ip0O7 z%e1C>Z7pr*MnnpR%hddiRiFL@;0F8$27<@`%|OT!+n-y2{COPwqj{$L54#&O`2x8Q zJZ}!TJqEozNlMyY{`=z~xR$vx56W>_Kna+S0{jFl*RBvJ{Na80GM21Mc^UbO2I;b? z+l~DD<90%#-mWz847idNF<(>^DC!1b>MoX+PNU+&VP}pC8tOciI4#cfA)AJV=6e!Nxs+f5dwuKZrsG}otcnPGJM z6!6U(@Fu_Cf`Rl?JiF88*%x* zpy|fmQ}B34JcyD!aj5j6)&R#y4e6uzSSHiU1wYWPdD;mLd9KD%Tha5+0b9l(6o%7R zXYM;`{SbzG9du(dxzXI_LOV-l!P#CNf;xaD8ib>efXLno?@4WNQC!*IF_SZxB`|gnc8m zlBGE4y8G(%W4EpB#09BeG@pef4@^z8X*{XNaqOXW^bfq}4y{!2OQXr#AFE;~pj$7} zw4eMr((exiD9Ck{JCi8V!%q~XtJ;APchPV79Y6)`Cb z5Lmq9ykoNf{V>^J0l_w7=3JE^b$7ufhGsI$^;^<=&yg4G0l#R};KaxjDzhqB_%hka z;@%LdL20a!9)|)v8%pLdr5bACcz_O;><^fq0Zx6sauy91W$UqL3VMnL`(!uG@oD(n zoUHE;*m-!9oF+4ve{Z1kNc7Q=BV^b|e$$vbS-7QqSWg!G^5gxF@~z{$cTYEL z7xMuLN~1sO0=^TrW5|={q+Q6|Tc0Co_?4URZ^Z^NU}moGc-PbpZk)}a9{9ze3J+-N`YF^FI^oiWtTbp{Ia@cV zA?CrE;NoiHP?PSDtqS9%SM$*f|4uDizMdXS@*Y*)U!~&iFW7u9W?u=QR5=z@`8e%b*TYRZvj7n;wMw zl(ag51tE4re1)WK$wN(HeU-t<#*fZ#EA#{7kc#eBG-ZAOE+pQCK zvZhL24?(1d1K0?64M9{&X@r)sw@Ql-PH2m_9eqx4!~o`>x>mCdVSHzzMg#Xew*zc?Jm>O64i zBtRfpib&_-&VU9A@Z)M+^^`mkN;=uy(^tABb}=IGOn1S(VH;k@~)g4 zHhlC~ChFg=p#RPP)-c5e7pD*}o{jcoZB`FtEk=Kf-9L-IQh8Hp=&PyzR8!r*`3w-*p>4>W-@&1Wbej(PmcECu4N~=mYi-#?(8nb84Y~ z^C9^Z73>Gu)^ijh9GCl}0{)U=L;`-U*U%dB*B||L*X>S1zlHzT^lIM!b+3*Lh6wug znY`8#ifdG_Tf1+#|8t+I%WO?9VLHjP$s}YgW;%$WGL5X~>x)QM4}L}}KL;LM!y(Jxi>6)gd|dW~MsNY)?6>8x7dluKZ>` zz#vR(U?@cRS z0)~OPF6k&|ANDJT?HBTi=C}CF9v1^)N8&e15p+HgQVDPLI5E?S>(E7ZWN|y5?cKUz zZ~<>e<*ccI%`(u%w-!h7eeE5f6z(|U#iW|=Ii}jZFYMZAKM)Ia4z8%0^CS;pp-1c_ z@2A^FArxFws`dS!Kt;q+@6nhzs4LGz}n$`g~8wU(_;^S%UVwO3S8EkSXna1LkRgkf_T3V=xxO)$D?uD z1#sYFjA`Uj!@#ve0hh)UkNmj?^U}1>X~+a_+~0mv?%!YTU%nYSLUtq{WK8$Hbo%$+ zc`n7P3%Vi!As%Pnh4cNQ(ahVEU$T%~Mg84P{-cht+D05OMNtoj|8I-`yFKF|#PvJz zk0e2&Fc^(I)EL=6k46FnRGz#cJC%YxStK1g$Thu8XP@|JbzPPd;asfQ3@dhg=t zgsFa08Og-$>k2d1Uwm+u-4d}7lz(BI8KHIoovR7FyzoE`*`irc#Y_%g3^tGKRVuHG zDojwS+Bd!L82Rp`K^GboQq=K~2q&;oVuN@{>||bps9Kg^G?QxWZ-r||6;Hoq?dhG# zmH;M(A*!37qPLh3+!V1~34b{&>*>R?rCE~LOlIp0IO76XB}tS#%rg6M_u~(K59heI zx+t1gD-5+moPvK>C;nX{hW1zgpKF5v7muztVQ;k6W52q$?r^#qT)veP7xDa`|IfpG>dT3K!?KI?YOylh zT2I8XbMFT*`EXiEMXnoM)&ZxiiPxC3f@>ti{9#^y5&*{voanz(kb`-k431S2%g#5{ zZvOXPJ`X5S=Ka0}FzX`!vfKgu*T7#+!Ee+v-K=#WYQ8R#c+q0w<%@Z7flmh6TvKK) zlPB}fRS(JDtML(tZ9Dy$#`87ZU=1qfc8e!ljK`x;Y_P?Ix!HqbzK0lhN=I8R_g8$r z+5Xa=zC5X-!tjG&z#|4h(;FpUBZjwOlMnq%;0}OpqpZ|xmkecn_$@x4{#rRuuo>d| zEpv1jM7zT5f_NzffPN2Q4e}tyEFgI-*A80dqz1-;7Pvco<@eDal{T|F5GgHHyT1JE zlvPRr`ujw~Y4~_q5g_0RrV$0eh47Sk_(Mn>@{?|)MlcRb2puIe=g!vS!nMmk$!mEm z+Vq@ovkheP{geR}ZgLGAec|hL(bZnMZ<2jNl5mD-PZH=rY2&bFV?KrpCmy;(tK4%x zZ&N#$+_r;&&LdJ~^T%tp7brF&u;b}HDG8cKiPSC3`~1SWADM|SPeqbfM$yh;BSTwJ zsTB`{8W4*flOcD$3j1V=wLlZmpEA}{@al$mWNV4;!Y#DRJD_v=3hqx^ojy^rLy*(r zmG2`v*9ayWT;J{^iiowK5Bu2>xN%zv3Ia~(${-WP-O&=?r}kN99%9uA=CvEKDviwj zf=PP`1`?wlMs-Q^(6Z%rG*b|O*~4mrZsV6*Zo2-^n;R3dpqoxvI@GTbKRWr5`w0yCVO?y99zkP7i!PxNW2hpUD zxe*ZYRU3dZAFcqY0CAK;^m?{6eAR^FqHfvs^~I(?V0rwcGCc=jA}Qi4Oh(((hKE@V zUN+W(of)33yJ$Y%`|VWZlQ?ID)6|=(vL7&XC9wlsEfEx+DklK$(5LWVpwH6{D^Kf- zS!{?b8wWFUnfIS|o8LRm|C`r;ZraJ8L8^Vs?2wf7r`pK#hf9~>g4SSV#ak! zwIYI<7~4w~KQ;8WKQ~oe=LBGm`T;9+@V`=FYylvhTFOLpM;a(?gGdjl$U_$ z4@meS{V>itbGwBK{H^GIYwL4q9uI~~9jj_;?2bm10{_UeI{`&?Sc8if|55_Q1< z$l(Z!o#PMk!MgOQtqm>6#-1JB87@oKO_uZ*`}|zG(eFMJ@ulAttnkl4^re+NiJrJL z$a4rQ+)j29g)7l9fw%JuJ4_i7@nG=!*LQ8mBe~s1Lb+ zd!gU35&On851E3PMZj7D1|oM+z)Akwt3xp%Wbh#0egSd7#vgF14C2Eu_4faqZ)5*| zZre<@Pc}NwpO?6g)6F6Na|e8>Khb8xk3UmAS$DC(a_*|ijEBTEbY`-I{T0s{{{Egv zl@MvQm;(jx3Zp}e3+bOO{%gbRe?R-zgM$BG_Yd8#q5s$h5Ed(5tn-(q`G3am|CyD` z4qJNe6u|Zp$p}+K~RKZuK|cI;JyG`mpzyN5%ym z$(hjJtg~3b4#mMNjQW+tmDGqz<`-`1S8_$q zrKKKcu(iGe8_$awo^)#ai0HYndD0BQH}mEFv{%-P(nKeu=E~?|e92~d0ZMsDQ;vLU zv`#&EVS}g5;^J(|`{y!Swhh&RE{{DC7qlP83g>k$K6V>+j2uMdz)0Ws zVDrmwuVs4)cfHc>;!`knS?a;lOAmZm>W=vfNgfLshLo$$2Wf#IABd6=7j-N1r#B)E z5>x$iZ^1k_k=G@kr7UE$Fb0{jhn~fAr)MrU7ir}yP9Itw$#~2a{$!hJ`+U9Xs-@;R zeAKf#)^|#1teer0?nfPCm$(UR)ie1=*>w@dC&nF6nPQU7_f>P*tO;ronrVvx`5n+O z3$Bs`LN!*1t(WzdtXj{~uyn3|ba?_U{gIGYyXonAna%CN=0W`*t455%TB6CSOwq9y z^u(UhtOd|swWl3zzHi&zBf#yVuQ#d~e1xKSk!{IRGWxULJud;&K*nLySAMb!jx8S1 z-JW7CeaD<@*Ct(02&t_JByp2B=DwG^^$x{jRj_$ab}Wv^$ft|28}-e&d=GgM(mPkJ zSz;gPF~1eReRKnM^yGUQ)99U(eu4nLu3`}SIUMpyTgt1seCqkvMlO-J4DT-%?YpAJ z=f+Q9x%y(sB3`&|n~ZO@{b?2hh`W{UAVXy8ES55AIN6{aeZi?&b2hn*;ye$Fl!gl?QY2u6Of+qveQmlI1II%xe9KJgg>=#hXj%u40~lKA+_^#J#{>|)QsC=TW ztZh7IsjRYrRRQn4op`MCYvUA5kNOpYGek$BD;Zi@?dEyngJesC&J*)6DBl+Tj*#LWTi(7B|$vcYM18>j#T?c=)%Ig~5_{JqhfG9)f8 zd|_vkp2d1_wWMe?$+9#6@STy~Oy)Ba=TkSH_d%5wc)C1dlAQN|z?%%9_t23i&%%!o(F?a; zXFj`7alFG>sBNv|wBUuh^yl6DTpGvB?%`n;L5jpY92U#-tc2`?E3*7Fw&U_TdUM^u zJa@X@IE_?{ZjEB8XXKnws=iWtkvkS}L}baF2!aSv7n`7qsctoZSU3laCdnrGJ|yh9 z59mF8k|GFBSaBH&IT`{m&T^g&KL4{Xar*7G4ru>F{s?E5FEY>U_~7MT$F0MKxu-%0 zk>zQqd$pP`b7Ccqa2lGpySuG#ysNFbm(-d!o)v2RfSOACFm{_g3@y}fB4j|58N#8- z{6o%V^4yz^h;QO64X$R>HA#jwUpH*f+9lb4s382|ewp^o37{X!K82QhXI=<;gjYmG zv7sfK^5dQ__c~Q=b)=U>SpWF^is^!Cj@-)AgCl<#CXSVCuk1rW8S7N>aoQAQWr@20 zoYyaMRDVYO#<^3;PN$B`f8~`;r#Xhc%dn{OR`_E2Kc5Y%EF$JAA)~tWbXAY?GDb5^=~hAN#q)o;?|)Kq_}vDsSH6YL zlfLP)%ZYP6wt^vcho?Jo;;~}mCLP`}%%7P)s9vNw6i2JbwNEL9HyOe2LD>Ah5$TMG zuinF*q_Xtn&a{qx*zZtIY94K5TkdH@TV~%U z$z9{0CU!5mFO$HGxO?eTqAJbzJK@&!-ho0~KOyT;Bz-?qLJg5NoBSB}8uozyowm$+ zw}*@6*IS+QVsxj>f=WU^GgTe&gxxaotO^G}>Yv)gg@eY!L3NXl86ft{y_R(dAJwX^ zFJ!6xC9|C{Q&KwK;_1G0PUMWR#Pv@}O+YIgcv*9mFhJqBDv4?`;9Iphl_ffNrm|w* zD(BFVrE0fwiDf#^OA?gSt#Ngeg=a-*EapDcjM2WtIDfgUKMhS=khr|<}zmco<);0x-_{tAyXo1e*gKQ#Ag?t z2OQJo&1UvCv|-1kfc#+rd^cv}7fqYNv)NPO=D5uaseWsl*5uRLXDVEzvSTOOS0wC%_n~$}3{6a}0HQ`F`nb zOhw)KR=O%NFCIvR9+j(tMm*IVaerm`_AKJgAM?pHImiKMvA_vWaI9l(kVG5NkGSfn z^{(QK+GpJ?mQ$NKju}rnx}uqtZDBG%iVkNiJ1#(|z!wtTNEgZapj?T+*7{JFmATao zk;BzVLf_BxH5W()Wse(XrCAlTqYH9kpEF4&;j0rhcyN8qzO!n?s3P+fi?bOVS({Yq zgQ}|Pn1H(EuO=M9om~5?I4qSJ#QqL<1NO4a6o%(%gUl)q|Hk)DH#g3*84E3qL7_rU zQ{`jY9wKthABvxq3A1_L)ZU@nS&EIBIelgO*oWMdej3T2JgrEaIs7-Q`Yc4ax_QP6 zdp5H6(+#)rHbPAC!0^VYt+x@yV+@5CojzMRL2-#+&P!MdOWcQ1ILIwU( zHP53K30$XiPsN3)R%2Y#cY$ld^Wiszp*IRjU78ytaOgy`ye-y%{vr2dRnmvcLL+ZB zUKc6W;jYo?iW=!$|8&0Tupo!^DHXoFd#7*f-b#InpjL)(`3?Q9Z5fsp^k|5x;DY>= zm^S|f$hNAC`fRa?DkrUh`a_>T4`ArOmnBa5eCa;BOHy#H>x{5XL?fx}$c4jHj=|Cf zF?h=Z_T!50q(3B_vvv)cyd9jo{$XCF`lqu0<)`;v^eGZvxHG>l{CVr0NlDH~iR_2| zeI~LcV~@@orLo}jOeeTSmm1q}HVbwT4I;v!5b&hti(xEiM~{k;n9;p`uFk3DD64ft#2h>navY8EB6Hw;+u6&55!B-)Ck#fY zeXsXnZdG~&$A%dqS+c9QCd5oR#IH-aa)FGd8|w0!^ef@CvPL=7`k$-^%HU4}L;q^t zao(o=AM`iFui<~ik3zP7wylo3TJz?aXGf8xyu2Vi-4nf?Ltk821GR=1l@9FJdDwD2 z&EA;`v&laVxI1LCMrRR=X9p384Y4fAqD}ENe=zzrm_a>^=hlN69%&$$;9!xr5BA z)9gl0S1JYER_TV#gsdH+{jqpr={$9TpIie*@6o=6MI5s2rbzpz=}JmunIp@<%ol~E z>q*~A^F38gMY0d3I+0#udP)#0+_B^-A|Qg&TmGhwIU)tEgOtX0)n|MyhF)|8y5(2~ z7g*E=@1}L@9(&Ny`!??E`AZt6fWC~{fZ_}YA8>m3xh83QMN1VkEiVq8*o8?e$L>rX z+SCIoO05FVfHCb$4=A6pCD#5@ot9KF+`(#KwpnEH=f?t=BI=$4Law z5vUU?4#FY>^!N31e)IwU;{)Xn)hDfom3c(mVhiqwhS=%-yr!Qj8m>{EmKTFCXs6=o36I&Mf3d#@&GZR`_vRHmaOdFoik zn2iw8^n<~XFZO)tZX!m{rfe8f=W9zXlxc8NLb3Q7me{`WuCc1no_>-;(X{pC#53g! zqE~b{N*8#fW@z>VsLdC4~fVZ`Nn?v7KeGabrfqGM?>(d4D z60J8>*`mG~?p^;Lo2MQ35>lmL`V|eHE%2=;_6Ux|h+H7#)>+VgS+WJ$7N2K8{6CP;#0dt#nF4smr@QApNs#QvJXM5VgCn_Hl0 z-PJP9B?&8B*8TU`r>ernBp#RXpsy5#oH{5LR3j0<`GU-|6J%ZDP_gbi=eMnLhgeb! zr$eWe3N=T_OCbXmJ?-`QzBb=6F{#@4Q7mQZ$+qb>qvXK_uTA!DlE)n`A*;-0=|5_w=q-LQk@~9~XTd z&DO*mno6@sj*0&Z~|XV=Ew&Iae3(*Thjd%k3ejhm$!S~ zv9&~&vv#g-wvx#ba6I)$usxTR-TkElRb!kYD85k1M!dB`ww{S9Vo zBAoDqk_;+Y(5!9v;})6)Hmnu-9De>}lCSUHIu&9fSM4qbYlQ$_FE*p&l|eKpEbR0k zd33b9{q6^I&7BLgFH1$_sxSQ?>fSsW>OYJh70JHu>y*80NtT33WlNGuwwSUc>m+5# zn8_~NB%%n(7GkoOZS0DWB|BqC*@hW3hFQAr@9%ei=lt%u=bm%#pZ6cmam;+S_vd*( z&+BGNZCIDVts}}Q_(n^~ zW!r-QROqe96|HmsnC@s1cKAAg>%cxuM7cY^+7IL|kYy;BH)jaxM-J`@Ojhre9l|k$@T$0bd0*B&zeR~7y_L_{GIXWtDE*!zj4LerJCE15ot&= z&YM1IzJ=|Q7wzXMP$^5c?(B#t80GzE!bNz z9%j$JIrq?01aRbzBL7Rs7~fzunwyviV)JrvEr@8lp>gYU`MBOC{8hmYf63gD6Ry>b zGNDz;#>Tv@r)q=uZG`j|-&#v&ogO&-crL%eS^={)t<#uxs17ze9`KEhi~(aKBD@EP z{kov-KmyyQ&SE3H%WJ-Z&2h?QLa zsqhoDnFZ(80;N=k<)Ct^R_7*F>vo&G{*1}KqHd6Gk|QZ#ZUfbEu1y8uN`ZzbZpB6{ zf=^uHuIVIiUKQ2uT^@LGO#H6-6^b*1XIz|~&~n89)#DF(%q0YahO(FfL%(x3YOn6p zRLKt#TND$?^`4R$rQ%hos-^=gs|anXZRjL^za32h=NAK5#FbZ!q`I0|Q?qO5=OFW4 zf@^5O%=W*>A7hGubup?Dx|s(2DCK^($c0Dwwx` z(+!VxJwllV_h^;)r;9I9(r3Miw-R336Xr8S`uL$K{4?u&&wINnh5}=wtr!O9U+{c( z=qVs|Ku=+AQQi>R5^lOOOM*W_r|8(=l zzP;FX5mWw;$<6m%0My%v*&=>`sVSHY@k~SIaCV*j#}txZXdK-YqL{yU0L_DD)A?`! z+Q2G8$2yJxY7&BvDg=0N(CWO><<=XsJ%{;;xZcB;Ff92Q*RQbq7Y(%GZ)n2{13TL@ zSe2d#lAS_ky9fo$(6J6>bwi0=6NlQ?iuqAGHe!^g1AUF3;xxVS-f(+D?GXt}&V#6< zY3`4ebnkuE@FhC|atA;)ZP;jTl)x&mrNrKEJcK+~(>Oc35xl0@`u+Y%u_=O~z>gi3 z=vtOV>}&-&hF*!iPk`Wa^EZu%*^q?8;Ks7Pdu4roA5V-uUU7&~IuT$eXLjRa|8(5( zx5)x94OE9!eJ&T!%(aC~tph@L(HR)xW`2+T1k9~r85L7i+0yD0UUCuBFrsDD)c7@c z_}RlwV3*4A1mtwGM=3$ekg23)MhTXfg&f+yWS)0Oh;iHRvX;m(8~^5aM9LAZK7_o< z_x+LYA2dZVFXsaiYyq0x+Z5HtRP|qsz6p=?4k-8CTy`onuI^jnaOj72g73hyprO@Y z)LW?asoQBk_;52S@2gp$*IVmG&mR0${UgxfFJ&b!o0xFMW|0*Iq!6rO)3cqBMpOa< z2JZ4Pdga*)lrV1Nu$%l;HvNOGwq9SR5{N3AK9rJh%+eEARFg!#7M zMz&)n(gR9_ch4%N9{a2p7N66h%b!D7kRh{RveB6c2Jv{KOG9VL*T(A5@en~8Gz|Wv z)JNCi@vJ?^aW!SphYd33!@})b>WD|OIi}^ApGCL(UzXK;Sg|4SO zbxw*7@^eihvbO@i>X>C?`SGE@+n&hI=|P}lH=v#fzr zc>C^F+FSju0CDikV@0g`PYyK32Pi70dX zdey_r$aimeQI95Ah_~+?P8Nkg7^FMwU8wJmDFrSivS z+V~<_A7h1ijyw;7_<5{*{tT=S3`+Lmj#V{Q=7bWghi5Sa>=Rx@{j`6eU|{;t+~gan zCpyN3M0B?eQ|N(GdVBUlex+iW-Rr44J&)wo_b-KAoehdkKD>=d`UenJkoRtk!s$$t zk&Gc&_5S7xRk5$a30S8}%gS0mdFQ*RQB~D4<|l3Xj|rk}-3Wh;3y}#UxE_EJ`~%^? z(8IkPFjR7OuPqu1oQ9(Ecib*9dS%T2F_}bR-Ji_E&53QXVM{jrcg#IY*M3+A1qG_I zrmEb#F|=uO#Lh&4%#4-B{$D@V_J`h9moMOps@CgKm+$l$4A+c%!v7)ZOYTu_kCY4R zPN(~s{#GSlhTrIfaU9IPM|GG%1BPd8sF(V%pTJGBitufJ8ZpqpTUzC6?r%g%ir9Dp<)i>_eYh9`Oj&JkNpsr3Kn!dt6v8&ZK+C31?wNA zNjOSa96SnxQ52OEX*^5$Q+)UlqC%Q@-8^(tFU>T$CxWYShUEkG>@*=Sp4|HRsm>XlIh6{-HaJI}QR{%{s>%FY>7Px3i2jLc zfz>-i98K6A^jb<*egZ2VeuVVcU(AsQ`$3L9AAIcxcm}B#ju>Ax3y+9>l@Z(h?6G=t z=+m7d80LEZjO>LCu8P*LQWTTGB^gF?a*gvnMXM$;CPO=)SV1taO6@iqGw>_ zGsFNE&Ob|8n>hefFrz0L8=1Ph zM=ZS->UrvC;0@mdTGzBO#n*SGd@oLQKs2W<2T}A z_m4bj272mCC+Cgev3KwHEcS5I@?<(?WZ7osB9(le{)xuH7TFSYm6(W4N&il)%lNdTl46ZVw){DE1(SP|ZwpiP$fsuF`RfvMVKmj9htoHOm zV=0Gv08m)lju0`CBSE) zBWX(q?|jT zEE>vXY0u}+!sk^kK{+loiI%Cy*ms8hIHFkOt!2l(%}w|$O=~t^sFXM39h&%YF8jw} zV<%|IYR;rD4)^kL(=@?%L?g87h_1QIR>ifWPv+$a8fr_QABo6)?w;g4cUPjN`;;+U zt;C|2{tnEwMy=8~{xMaX-}uKg8sXNW3PiyZ80RQCoriqUP(SF*z*RsC*Kzng>NdXT zY^4}Zaes0Mh(BurV80qVK87G=H2h6_!qq)XE z-H>C5kR-A>{Y48mQXXMurG@&SmR{T%_lAYZo**a+%i)fR3(a6lKBm@TuJxafd&h+~ zJ!i&`rVy}v14Ef1Oq5z!Z0V2fj~Yi0{Tb~x8N3G<+k^?-gPENoH|(K#u1tW-Z5G4+GdJZ&0*&nQp1n9emfBHE)7eI9(a}gHEa4_G zj!G`4mp*QVcgspm-21u5Be`u^|LIHft)@nAd`!>7Qo8&%hpZDd=KZ|v#hc#6aJhhC zKwbBS%}y@IrBE#gsWQl3*CWxr4BfG_l)pw!5oRm?A3xs9FuTR?DuYv~t~T~rep()< zoH|Q}(yNh12y05m65n(!xrFkF!9_}qy`LTB;!u0X+dg>fg6tifK?S0{O7Y=T;7*;V zZzuEtK=*9gaS*I;>!l@4Kq}7&Wm~=N5`R;q-0qsb zj_f#t{F+}6Bf#-|vw~FMs#aS(iZK6(^2l|zp4@vZaF9?KJiU~v^5U5F6n$LLF)*ID z$ZK;GfQ zR9#iwSN)9Xf=?Yf&_G_m`kY>fP%H}!i70jO;osW$#aeF|jw(`KvyGc^jZP!GOcDZ@ zDqs|qT+F81*_=y-cS7%Ml>B1~q8DA2NgwD9_Uk;npF{OPP9jz5*~ZEUDWY=x*&OSO ze9v7~qA#|*TzRY0a>g1i5E{&{=jLX%1$+*A8D}QW;9W1Er*{!sC*R}TDfr8tMX>D{JHq) zYv-mGUKKs)%RV*FI#}=*O(>>54#h3n^guX~-*L6W(NMer<;}8Gn5NpMXRd$cyZR*5 zwrB7uUc?)HocQ&aOlg*0e}X7?@8r4WUUaW|Sxe^p%M^N^I*U@0(k@ zZiy<9QqSypB=C(Ksl85D-iG;QnFRSDH|@XWH{g1=fih0W=C>sns06s{a{PU5iN7As z>Eteuq@3TRDZ}UaQBS1AHb$%w!vNRjXk3CP}lCtUlzCVAlTRpdIsP zc`>zl36?YgW5+ILENG$!n~AXQR@?fi)4{pg7E1UR4W}=?fsgYp+(G^ z#Uv_&V_=bTXO3n?szQh32SRU^Cq>+g?Orb}frfbdg2{x_o4(lfKnkitoa$OifJ9*z zi!1SU%t3SQ}yxSEPTE1`7n#_TJzu98b8A98_-AZeUC8DM0L2diMk-f zDI(PKp;n#QrDUKk{J(zj)NOw1J=xo`vk&dPdx*qia zLs3!ggh#?^lya%gYy97qWVE|aK4_9Dx_Tn~%QpWvX^knks!!n?;~Vz(#Fatk=Kd`2%r@qvd+-!GnYh#e7= z{1i(Qu3&J$7jrb9A8vR1>n&|}rD&`#^e+wA$8R2{e#>!Na{q0e*G@0-k7w&w;kkN3 z>QOO0jHmI(H?a9lQm|xnR(C#c-MoC)ZNbnpe1hItPNMI3316CjCSNtJ`;m21*d^=~ z))rR!v@sg$yFHUc)*`{WG?OM~;9U^u(D?6Th2b12gqC2n5xAS%i`+5OKjzP99uOZ& zGlPq5DOVeC6pW9Ck|!UFO2((24PVjbiIvMT9OpG^Z#`j7xNjQUlgrU-g9txk$sbPJmw`9D0K$0kk)DZO!uGvi zryk2ex6lV3@!@XvDemAaiGSkjAnc*YzRo<+x+I&i$5Zn4b@h=KO}VvHES62BS?!pZ z3^<=Ro4?x94}&B^iI$)l!2^8&ow-T&s%4gu>O!hhk#CrZ)jh%c0(W_%`8xvi_b_uE zqgWo)V%8`$73B||$ysLoG?W{-T$oH0CO-H)RzgA8G>RnMYc&Z<^; zOyeM1WZ>wjlC#Ud)1JA;%O?FMf78_bI`HaI{zaMz9SaiSB<-| z3#qU_=D1zYe)RpQk{{nZZFZJoE57(bm&DS4i0>buF^i$9FxH%UnNi zMVzV6Z7FhdEZmjIdSF;FYaVs_w{hVg8_G$qPM8FOpZ*dI?G3Zz)>ZKvD7JM;&p1pO zd+eO9!L#~!xvANH%yiEQ>!w(-AjwX)%BE$@uNnMdy;d6S$WKtPT{_RITLT4?bE~`d56A_mH!| zIYIdu)(1wB-%dvA(e%BK<$QE>6yR>>sQjIDv%&Ii2KTeC>*mq|QTlSNA(r%tHVCp8 zbUO0mpc2RvYFU<$7=)3xr~47R?42zaV~B?MKB6$zD~P65!OwBTX4$JlM)hV5SU+5d zyFaUrhetr|NK*4_<;&=rq*e_`#y+z}k?Z+r*EOoAjX!>PnvV=LZkP4rp^A?N8c*>sc9b_HUNR!Dk=WIjoqRjH zp}=_Wb9G|G$C9%*8^2qO{xWDZPl7+Cx|1_WeO*{?#&_gdz@7^5FCtEoS(mSV?;p8y z$*5WGecq)5YSeLwIfo-}6T#3?2KGJ=iX08DSq9bl{^wow4?dZPCB^T0H|j^j!`HlO zS&WX3nwjAzPKGW{@UOhQ;WN+Wy@{UCob@8-RR2dIy$|Q71v{K*`!ZITc%I8qiX-qz zpj;0pDe6|h!fe=7sR${b06G<{f|N??8Du|<0|^b??h=K~xazgky13h*LEV43{!3() z#WT^He?FR+P3q&)MzN|bMx?es3{IOu#sDa&5Tg+lRK*-yQjK)}+-goGeqlZ@+@VMr z+7~E;OhI*c6W*nFVp-LGnLfx_5`7!Xeh_>RpoP9_*O{1{q4fMuQ_HpRJ}B`fY*v*V z-tvQSiZKp5S_r6R^rye2Jn|L}0(7jjPOHU*{`>^FJO8WY^bThLPmdP@)B#bMjCm|? ziFryCdMlZ7@RM3)O}n@7rk zY`xc2px+qR3S)4}2>SxarG->va>0%`pT{K4ZPW%mb$w+Yrg6wS{ACjgK?T@EY80X6Tv%a z&+ntZ-*ehEISEmd?nJ8D zSbAFHTe};@M_>J8!hE*(8bvh#J82ERXZh9pu^=)-qb6?W$&Iz#jJPM#v><9KI{Cs{ zOTo-UQ2A9|8C2Cn_SG(5H+VfJX~Jyn3~tzro8~hz;A?VZs1I!n{AEn)3ZCYlvl6}` zc}k7dkFa8o zw>zy(d<%TDQ8P!V!U(5mw@n+?jU0Pvo+iXpJGs5bMor$|AOm4TMbREpa!Jk%j#<4P z&FMyyx(P$gWeD$`Ip3SG@5l460rkd#vw_>!cg;dnRpz5wSnU35ry8r%%XR)U0PI|l z0mHaP+Ex^l=R0LGZ-xJ3h301Xc}~S=77Gs3pXon;aqhxnWj*qV7d9|U^6fK|zhwU$ za8g14INneU`U%oG?f=#wMMOw-?4*1dBvKrD#ZF!Fn&>)L(6$pJ6uX!V+eyxUjv|Xq zqV|4z!F~|_+iT4<56o=3u~e=N?4eKX$A=(YJmA?%9b>Tnq3SY*aKg~LbTJqueNmH_ z5`F#ixQ_U*rt!zkR&SwcTG zABXbMOvZ7d0PBdWB8pRa0h_v^SYtZIN7?*7+&QvDjm1#i7^yd;ORwz1D>t zR9^on1nj1u`+@NoD3QbngVbv@IZ7Mr{r?*O&Q~ ze$?#kVs1I=9Cq;y?h}|ik)gRafe#gf^4?U401>5G^BSIe_qE6b?{cz>y&zR-_|>_T z{!QwLs_xGH%sc+p(=MBrn<4(-|IPj}!DV1%F$(-0EL5o7ps^b+9y)Nt8gg;;?CLKE zrxo(EfPmY24)$v0&r^1)JD-(rL;i>*pcX4&L|dDwe@xx7d?Y}e&sn^W#>3-XHGUo+ zg*g++<&8JIweK+769PG^Sp4no-{oX3pXKnJLH@@+Ed|y}_0SHWl!{|Rx${l+8p&Ie zhI^%Qrp92C8TBQ(Jg?DP=Jjd6{CiUE$T6I9L8k~bCGf!&#vrT#-hrLkup(s^+DC+ znR=e6Hp{i1u-H)XbXh^NH(c#Rev{4lSCp-t5thl`CNSpp`Ew5J;4 z5)=4ezj3}>$*-4_#BE($!QJ^nFG8S5jSLP9ahLppUJQ4upU`+5UXcs4ZQ3C$KTr!$ zj)mWs_X~XPk9VA-mFo#TQ{9n=wNg@mJ|GL@2VoJQ72m=ECY908E2qmmT#5??HoXl^9GgeHg~X5eu&{U;UF^UXE5 zrXQ6aUh~7}MJDd?L)wK^dR2!F<-uEN57tlta!gjVl@73DcgXZh9vI%VV#rV9$>8nt z{`R+{=3aT#H3};6vBg-9zqp~B7AZoGr-_0t;uhFhj>b?biMxwEF;D#)p5r%68*6Km z{H}XHeKJ@(XDaRethzWuLmz+ZDd#?#q6F!N#u@8@13p2>0Jl5e9QdZQCfi!@ql18E z^(r-W`KTQUJ|;u$?)6{$M@LF~+z@C@3LDjK3f19=TFhf8kl>qm6!e*)DQ0TjSn};0 zgS>3=^Qy7)+s?1f1CF;JNc*{cj49W(4TDZEGdM!1+{j*RHH3BwlPW7tZ200?ymoVr zQrqoRlFu8ESYZ_yq%d|YQ)NkF=NW3QJms~#4taQUm}<=!z}Ce_K0yK8NVoOgM@op* zxKb^)ttOU0$lMYye0kl;;=O%0TuSUt75i^2Gvf@+l#&JRlo~2oV8=!whwq?LRCVAxF{!DR`!gc8{dXLi!U$Oagqu zBZ_=1>XLxB%ca<$x>t93&#*7G{Z|Y;rQN5$Gvp#^cL5uwklrpZ*w<%4ftQBHcV**Z z?l)yGEMIBNR6hgJwR)?DITd+4)XrTs%3u-sFcN)uCXvoe;R22_X2cL$B=pw;ptBr^ zVt;`@op=rUv=YE#2D(f5$8@z}vN`)^>0fW#Unw6K2FzX>UTvs1Pl&Zw4lmw`;G4|` zj2C6-&Hpb<&HumsFZAEf|DC-)XsmdNr`tfWwUaI7udk=)y%#2P?DC_{&OB@vM_2SD zJu^gy%tlAdJ_N3{O9$RT{a+QZO6c8eu^`Fc@xuu~Hyywl+)KT}xDOOx3GR#N%}Z2W zP~;l&_>H;(fv~?a=baqlWc`)49owWV4Os`iG3|emeMPrGco2h2Nql&=#5Tw(M%X@k z0Uc4=zAIR*mZiHbD0WIbmNo8S(egV?3X%!gJrf^`UCbpS!4j3!P^;SV9Q$jfT9Iqm zGO;?@m?g$<$&sz%P-pCRx}V$NFvw}7{AI0n#(9V&V?vUVL=8jE;W$v9d~9<{6^j_& zS<_{dfFaCK=#ql3db$4I0||ZsnqJtQ?C!2g-B~a9@G=wTs-? zn9Lrv6Zs0PQ{@x#r^sh z@83?%sj41`LU1{^h{~}AV+>8&RjRa?(`Qo3@7Do|(Q-5GqW1*z@i%q_+uijgR<**( zfg_Kxtl(z*GPEgPoj=UoOL3GNINQtx5e|tjsLcki8U2B?qgsFOE46{GItl>_V15AS zZ?lEYf^Z_Bd3IyE#d0aBHDGG3#!{}hh16Y+`F)9lm)q+&vq6v@?Fdx~VM;8e38VTT z4aW+?OR#Y**7(nl!+jt8dW};c(W4cYPbWm7-W#*O$g@xVe9dQvP39wF5?lk|bN=tL zL4YeH^N&g1i@*Uer(@KAOqVj--q4ewo|<6u!SujWj15TjzjL2>lf-(2e4qL_e3Sns z(vm*+Rdmr%ixqLTkJJ`H#{#4N3yDmNU*~BjlyUF!#6({^3xCA!7Ud;r4_3eZf)k^b1 zZ*_g%iA<#b&$iV_YI8x|bCWy#&GBYuw<#*y@pbTcSR>!&G^w^dO%a{=H(#g({glY` za$(wV;>T%}%cmjY7PL#r;0W4*LZ|XGMr1|l#hNHz?38`?OhEjS%v08A*hu{=_$HMQ zc_DD65TE)};oh}H2mLvdq(#i83DErBC8v*KeYR)&x({zRmQ!5Mw8{RcyNueT>fK}1 zCx6I4lm3}WI+OG2=ak!Zzf%q{Kk{7T(Fl+N#Tx#{a+{*WehAI%m70F6$>HQ9dd!pi zcoYBH3yuugRe4G=aZ+g<{UGKVDAi6h!>OEIP-W4E#y zk|fPI{0PCn@TEHALd2U>A%Y>#1A4)>SMH;YMpOL~N9Vg)&OMDy%w9UqJ1!Ys~tSfL_J{!Wjf?=Q1Y zb(dL=53PwMFM*d4;3?no1yFvNX+|I3rb}vGx68JEf>5uNe(U9f0?a2=u;Chq1=o*&`c z(RtF=)0w|LIUshG+k;d= zE`WLgW2jEDH4F>LUp1gvW%h9ea>l3(g}&l{`Akfr!zYP%=%M4^%s#ubOvw5hy|=se$P4 z+lLCqpfu=2f$;R}>0yx4vk2^!;q?q`#@ z;?M6vmo(D+J&)=Nng^zx(WyC}@G&QqXwQ?LorT}-#Kpll&Uz!x5lg$Wz2eRul#1Z;+^ez3ZnJAxUo198;1~j=R~pZ z$o4NuE1o`{Iy2NS9L0XKrce5wt=RMhk-lk~C`G3fVUo49kdIfFSrG?)Uphx{!-hL!`8?uGJ1^GaLokSd=XB&Ex`s@=QEQQN(>H_V5tY>@Y zUyGo9T%)umvYkPqKsyciA`v=Xcuk&m_05m+4)0B-_+XF1lqcG(5_TQRk)2ZcV|hm? z{t0DCsXco|$oD36fai z*>A=W%7UYeyH!4?kB~x*Mf-AC{i((G4ARn@S5J??s-dh5eo!N_fp$Ahfa2*(R%hwV ze$w{FU5qtG_pAJkUq`;oO68I=-5hp&f2x%K9_{>OYbqkoN!y}-1OOVWR+$jCq|$;~ zmhzov=?Oe_d}7Zswtnm*Y`wc+)S_rcpZjL$b>Y)YM-JspZz(O83z@G#+Vd&$`2_~Xt67B zp}@K)uCGf56bONS;@t6<5^gX2AIyvM_qQ)bX(i%{N>8P1ah`-Ef;nXxe;?U7AJ)=J ziC993g`U4M{`t#jU8Sk<_nVMFZsLFvbfeG`RsgA)+>9VX$Ogn)ZS0g2ML9an9xo4f zLUu8l3d#4J!mb$v)eEcnrq`QUM_5`Wmf7dr_PcTtqC!)ozd%YNBq{sL!!ydA`!gAb zxNfEA_2L>Hv6XJ8_oxO6DjVBh7TPfH69@ZOfR2L&bM0SM@p^S*f87B2Jl&M)Np7v4 z2eua=&z&GNehk^4IG9C-$1zSIE{_o!MRzLeef4h!t_SzsJr;^-1W6}$D!v_6eL!NP z$;m2{^q$8jO#HkL6Ikd8Jt3MGFnrwn=y|=cK4j2a&8zk^N1g!Z*NDSdXptv(eklB<59-*u`e?c5BiiP|pBbc~74OV7dH z&yPXXpu4!>F{oo_m+uvu$lIt|EO<7lrkM#5_WXP@>D%o35b)pRkVqG0znD%-KB9>i!+74AVqTwqFmC+l`Fg zb`>Nx#4p0Ryz@AS-OQ8Lqv|JW>SCXovo^68nrxQ8v$rz!icquN;p>4-4d78ds2RNu zNWF0ZFw=EaCCZ8WdyEyw=~wwrRiAd@IG&bmXeo!6)NU~QQ=)_9MSg?vwy`4~P$EfS zFUU^m#gOEd7M5?uZCNUZ^l3~%MwAJ@Q~??%y%u5Q zUWjn2{~SfN2vW+a@E+v~r|SB7^=DKtmojB|dVXbNdgi-eEK7q>tcaXO*3DNbQx&S^ZwX)LzMOY_Tn4wKoE?@0jJOE-UV; zhwE`7CS`G)W*)wz$>lr2IL?@8Zi(`(m?k(W$4Qm=y74rL$BCYhy8E_TU;b}R;)ltX zx38YFC6*GNfCDlp5ULw&%~+LG)RY>%6v1lP3UwI?Fdhu&4sSfT{L0gV+fu@%-*U!Y z*-&|N8GNFTqDY0(>|m*fL-k91kkC<;WZlEY=NQ(x%y(tUuZ89AzEXU&(jOh$YmH2| zwV55x$~y9 zuezaH-VTWEK6!3R0reyk`m3m@mycmF)gyDvk(tIJzT zS-ny{MgO_X+=hFPnfZF>!wx1HdW<1O3#SB?Ax=^-#XS`doIZvtH>S%UeUzGf`s?Zi zU}SegAJhLDyBLqH-NW4{Zef>)rG4@QYBH?g_>Gin&}t>#;Cpw)U2#gieI&1JdU=n! zoxx6O+Of2q{hn>0H-Mr{6Gd@kUs7hYWazbCeZkI|AFn09Rc3kc1q}4p`B;4Wdi+Iu zlnKSE3qmx-JPSVTO^5bCBq)7-O&XEM(`|nIZ8h~6D`a_JXDRshX^d8s{_)iR7KOa4 zrQ_)p^FdS{ZnKscO|GSwDtDlhf*%>D|LzO)n@B#9HyUc9^+Cxo;9iWLbrg~jJ(zG!@~c&?=k=0Tiv*@Ll5`8 z8;Ms6uY6TQcheyZb}vBsd)jd}mt{$_+gHk>wni$#bx370@LQ+)GZy8%SATI`U=X?+ zRgK%6T>>~e<9ky{^)jEJk5c%&R?AHkcaLUCoW4ALHBp$~bmcjxyK-8dnepHE<#xaJ zd2bV^}+P-9lBBgZceduhT0r=jezvnA&Gt@P2)HOaE zc%uEizk)0{D^hef@=b!wV7SdDs3MQn&|hFZheb=fA#AJrlDGu?ZyuXFZ(WADLS8De zzbMMz8*%3~U_Nq=F8#hC^!d!B*eSz`Wxft<9B7y^q}O4bNY%AKpBd2#*>8kjUpu4= z3%So2@N?F@xRt89Q=&;ZvAs#xn{GLeq3rfamd5xM3(iuWF5g6NT1Mx-b~q;1_^rB{ z=J*@yQ*Cu6H>~S&M-dWGiyt9m@MzGA1cR&Gp;8?Uw%#+>(wAJ$jE+u-%mSjGSMY~K zBVk}L$dBp}g5IBp-^{;OOM)do9%j2UFV#z|EGde%vgCr#O2fJM-~3hV^OCmTFi$q* zSVSi{Ijy=HjeM+c7EbeY4yT50xd|$BcAgW-dibrQ*ECqfr`gt0=qoxCsfhfVe~clI z9N34}NbBxW!aHhbW~a?XUw)JRVd{V8TATCLm&uvQ0baM&U)m_^RF@$K@_{%KRnGz0 zkJR~O@F%8@E;npuu`Mn!qbmMV+*6a^x)zi9QTFubfD1CJtLv&7!FK4Lc~u5`G*!PR z$g3!{w%1jM#1?yYx|`f4-8w!=H46O4q}JcVdHPNuwNT2PQn9DEtl5W}-T=I!o5dSg zVGN#F8cT5Hf!L&Sc^8{{#3t(!yL^RSF{@m|WvFna>SKz10V)z{D6l*$JlgW4aN76w z2sHZzZnh^-^0PR%sOepHHVNi(yE| z1M=n}$$nBU#MInkr!~&3@7x5Dx4zP6-pDyL3^lW`B`Zn2V7o$FPhzl#Q=!&mIPV6- zkkng-mpXa5fg$^Oe3>eE_s@ONBe8@XKR=Xc7-pvF6yDW#>dpsBGdYDzl7qtlhkEsZc>tJrcl7~fZMJDp-XLdfoDP})C*u- z8c<0Tu>`>3EB>epkL}7UAK09N8i7oCo1)aXxlDb6&?ZiH;gU;lHMSDn)v`sg#dDQy z82952KeJDM4~QS!dGYx{f?9d|F+2I)E>}?11VTM<&y6L&e4=cSgqHMD{x%YGM=|qz84z zaoIzOL+Q?+;irBNEosH%&3GQXf5B{K&RtZ&Toiqv1tuZC;A(Czct3^r*d)LN4MXrQ zqL;&=Jibqt8eW%2GoN|k+$HxxnokjbJa82IuK%Q2q0@<-!e1yb5T{GAqFN*Sok}+Y zKYokAqu6|O8*U##=o6<0{eAD9J=1ek)^%+8 z8g%4dS^D+AMCwn zSX14)HVPu5g7hjSDosE@1Vjaih%^x+B1I6Qfb=RLAR!Tu-mD<_LR3^lO6XleZx*CT z2_*#(5h4j{n3(dO;o57hZ|`;1{?1zK?CUyvf9L(-737*>&N1c~&v?rH-1il2LH{;c znn4E3bzZuT`LN<@Zcp!l)`$s7F&WsZ;Q#dnOpRxx!0g0O`&t}a9=!+M zg%mc{jpFIUZ!=bkD&mM{r|w=#(_@=ifo1_JWL4 z_jxJ!=XW1to!2p`aBj|a)>Y;~2v4Gl^&mZlrhezD`_A+yY8*%5kHdmutB@YalrsiK z#SS^u4$bI-!=F(}ipl=#<^}4_X0s~zevVHEgPo>99hwU6H5R51vBa4sO*DrRa;BT6 z7|E>g!ApY#73)mF5sv&-qc_&NGW+(Q!@NwbT#=kfV{5=GlUFT9IiSQ7kD*~l@tX>- z?a0OL!STp##v^FqD8o}U+_cUT0Dvqr#*KsK9&v_t2lWL^m>Z;4ju!9l)nZgnX(b!; zC#~3(NU46%gY8M1XDYpZ>-gu1&r6 z%*{V#G@8F@$V}!7;);XMe@5ud^9e>sV4Q%&m`La}u@keqwkVPz8CmtZ0i*JDc!5hN z$#$yJKyjPt&C_>_V6Z6Qy(}`-pvaz|k?F00B~g$1kW)(f&vR4tC7Nn8O17fENbi|> z9CzQ{Hd)|VD6;gs!<{lpS?c0RE^%Jlo5z62P}$%=14H<)B$wiPrkLiupNG%k!}mbU z*<8zsz$dMB4+HP2-9C2kyLx*9QZ=fSApz=_NAo}RzF#`+wZP7DFNKui&0r_EaMh{E z)6#dw+?#zUU+g%tRiq_3om`I*r$LrdQaW)ESYNQ(~QPkw*+27?F$Sv~`d zcQ^{vXCK!CxCkM$xo5=GP3vDH60b_7;n;aASa`8~QcS=Dt4<^!w1ZU&tY@ zR>fnk1JCPA55FXWtpo@NtZ3SK?6+2S?Qas)AS1#v&Cmj4w{BFC- z^2G-Dwb~bd`nY-IcqH47qrYY>4eUoS0zmJ5@ZY)Jc2)e&^$OGbdZ`Pxt_i}RA5h=Z^5RS2C7 zxwWfWXp{KKjaS9e%tLNVlUSNlx!w6uP4rHT*Nk=Wr>IZE$iZumlKA+fDfqJ-L(T`# zedUGa8lbDro7YHYKJTR{Y4H!}l^HudNi~U3EqsWNJ=s+rjF1enX~RP|nCUhi?}i<*i%FhQ|HC#ey;Bt;`*tz>tbSDoXydu>d0F zw(kwSpYL*$DzrT68eX@0HP2mK+=O4Nzhh}1Cm*1P}cP$LJR?m8~PJ%Tea z!hy!SeVenMJn=jBTe@T+;a&06<(5c_e%iVBr7cgR9~sE)-%OGCF+mk!+OQ;m3cR2Z zhK{>vqdsV5^eC#cwr0jUV>6^n`aqxj*~2dvQzW40Oh4b>xf(X81++}GER?|Tw}G9j zX-ZnL`B*ej=2bXoIT^g(YnQ4xC^5rl{^e=gLw1$1HcN)4n$#u;zFDi?C7Yd!mG-P{ zXdcm%#mpfj)_Zm|Y0-nv7v7lnv9cfZ4ieiJ8~@?bQUyv3%tIZzA1RC8%Q&*1n}bsWkv8~PbN*Rt>UmS$16=0z zl#H^gGt!Ql;;}lQlG^}dJ*#231A@?>#p`Kx3|j}EOK<7fgc#0FtWXzX`b{TC;KN#7 zOYpWRcNwuV=T$T>9#MzuM5@#FBq^Y{~V{PPX-{+$R3-wpRqV+qezV3;Qj$Dg;$B*Eu z_m^$Hp0mXkB0>1I`hYIRC`}-bVT6LirxnRC(T*}VjL(2x43+Ywa`WIo?)P1_F&}Z$ z_ZS-EaNlHFUpMhq;a*S?gi|cyy!|u9>@}MANtYZv%ca!!U@NL@o0IgUj>Jzsv-4#i zTT>S;CKvRVMcu{JgtA6Wpg0;wO;Z!=MAVaVxLb0*dZ5~ShQ|_rsGh!e z;5;{O^oAPKOD=_jg8Sen6*)WonLa+w_I-UwnJDx2&$(6B-cKgkFEkEFT+x49T_&p2 z2vhHVc8KcLk$xLU!x3vE|AZplphnWd=GT&NdY|=zldI>9i*~)eTmJSbX+IJ)HP!}Z zwtfv~;6ChDf88Q@3hm9AB~}gfA~NTUX{uCSrfyVHR~N^K#{XUu96`gGb=_j~i^__R zc+pooGLi(ZIc{lMBlI!OfSQIse9D8o*0m<-XADc|J0_HJpsv6#REa)mS^r`76wzBF z=w0Jx|MmO!%o&>Q&muDsFrmqV*%It$#&Z4`X}C907PX)Dw$kJ!bk7t&s`;$xK;^TB zb9%P9I;98CS-uws(v$t1KETyv!!+W&Efj*Z=Z{i@>JUOxvN5Rvd4;nN2j4NP>D}E| zk}tqc|8!3qdSv}etNZ5vr?wNP19I(&U5qJw4ZN!D-RoAY0acdO%4(^n{}$0Fu{>sP zHYubAYLDdKxz1^`@`^ax$?OyOb+6aXX*k~nzWYFog!VhvODWD7kRg!j;ygxf>bjMi zDUA02XJ0#Bd|Scpuh&|zkU~G>FbnT))QQI+_81laz`E;y8MCDt-CW21^-?$m!i)hwNyY!;%OXNF_agi+*Xm*Z@|+W;widPP zJcF3OT*kx^LT> zi6{L<%o+3h$RCB7|Lz5bKc4SjD-``plIMS$ztV+r4;-d_&K0Z7I`YHc%gf{DTRz}*`nbeiBld&1w=4fb!Pm)U=z^rG$kb;daWoj-i$ zt|ck+*`4@(0(YahcCw1;M3!V2L!M@lzDO%*D=G1>B3LiX`0cjGVm(CO>n=&!tQ2PM zY;K?}xIeKACYzw`egvg`!zIEc(Q>R1ntU?IZT+l0HlAFf=A(7FpHEKW>gC;s?Yb1X z2BY>kw!hHR?a`tvljB&OvB7@G53_w zd&7Hy0Gc4s86+7{`2oxl0IQ=jlfSdr57urDE(C?>p>y3Dy9E@+)@I3Rⅆb4J**i1KqEQf z6F3hI=dNb>86TVk#0zN971_nc@*Q+jQg2y){k;R3JO$-)l?Z9sC;2MeMG-)ybMW?? z2YawrT3c&I0~W`$7cDhO=69`>F277EQhr#-#dYll_r>*TlN=x107eW@+W}=9xDb@H zbaM1-UAf=L0ITW8aYMu*rzh`?nYBTV$7RkXapcmN&+)!P31L9>1zx8WR{~m2q7F}= z&9!6N=SyBs5?I@!Lg*MPamcKHaQVVbGr!LR;Zlc=bJAE?x+6;x!%(F4KRpYxYLU>ElhsYl^yR^D-2?nXwS+G89H%A)rjWa-v={En^A>C*^K9CIj*#^nM?tB%bsbSu2!jBvFP5fH1bnmQACdGN+#E7@-2~ zHW2R5wmiFh(_H;^LfvGTB4a&GWBm<~@o~aVwshs|FS2_WCC3*Fiy~hX9Ol>D$QU;f zsM+2X=wuusF?%o6fglKk$8FwR!IsoIetKUFYBgT$lvQJ?WukbXk(Jit=4T_*F3Z<* zhE$4|PH;!~y9q?`hP<~IG#~Mw1yl*sc3?d{AT!y)q<7z`hwlzQ|B<-rX7;h+5%xg! z;{DRVBc5JzBA|CzReG-Tlg0Q2$98NjU~i~lIIweCU4Q4=xz_u$V7!E)XCEE@dN+|8 zDV!vOG#=BjU}mSlFk?gIA+T9knk)@r+Kto%w*)AO=g8= z#khuvu91i6e(!JnZz?yF<#m33WS&6J5o?lHyXfkDO0y1B3eI2w_h1QqpA0x4{(NIb$qL? z%n(jj;eL8wwkQ2;E-8@DwWhYQ@V)fowwT-Q2Wxd|&SdlNNdDQgLD;?xZ@$J+M~SfW z0Bx?TVsD|&ILM--6pMVXhq$;RTdYErthc0yNo(t^K1RLb*BO!!eSRejK-M+Z=gC-> zq!dFHkcaytdHP;`*)2wVvoJO1$G~2#DQFh3X^I!1=WP+7Bi+%%#5$=C_>@J*j(K8c ze&wj9>b?H@RFM~rP4@*hLwcl@=wr0fUd!TD=MjJ|N_dJt1~U4PI-oURTCh&kLoVdf za*I5=bynl> z(pQK3fBHDb$M<(}869@;va~jf2Ughe-Ps6KSNZ({*zXd808*kF^gmjM0BZ?|JeK($SX8%M#h6<^|ka2B@U{c%2tkOt+{`r=s(?E*q7D!mD@tP=E>43k{R0}Q`%@dvC7~kpmHiW_Hk98D0C6|WlwKeL&NUGS5_h4 zJW1@tU*mvl~y_f#BgAG4XheWR@3ZHo# zfA$0FqkMh#{R`sJN40Fpm}*8zDQY`yiP}P&CyTF}JdIMNZZz*Z0lDz!B%E_tA95Ym zY&GRf?qqX=8=Pbvg)n68NyE-#eTkZn{jnl_VbQNHy~^B>g8Ag{tCkB}c(u7FoEu&D z1y(h&YEK%P(k128k%pwc?4ShN^&GN^rDQtLLmILVcpj@?N8EnpvQ}uVD;LzxqJu6+ zMf3<-d_*5~k&qt2YgHboc2X_QHBRlCZFNqVJY8OINeh+MINGt-tk=Lg_u+?uo^BcRWwhms9UitX9w9<>86Dv<66w zcsVn0+LxHEobJGu(9q-ug*YI~ONR^o0Nih!cM4LVgnD@She5E2uc+A~f|t3#np8gHjnxQ}I5AxpS{v(2 z|JIG=XYHlg^%yHcA9vf34P6hDzEmBHPS-3skCVzVriWZl{CZYn5jQEu(4`Bl7CnwC z?Z%5md}dkAV_{$5gytXARS&dL7wIz3?*8sK-HPO?HFRi+s#nr;E8ZUNY-62DrT zgB8*iy;_S!j=49~w9CJd@h6w$Hz|5TGN7)Qt>i@LD*{qE1a3| z`;*0!fmojDFfnLitZ*kAw1Jk-$v}bLOzjR3l5bz;2-eowXlbGeYFPV*(R0x!_d5=l zeUlWa3rmuJv2|MolL4^B@i8b*=qPA4`VOTsm7(+t!xctml&J{Snx^`Ea@lP+XOpdH zfBokEgYL@p-ILP2Hyo|+E*@I&Zp3uxv`Ilir`R`*M4r0%ULOjiXzG0Zp%?WaaV9rl zF1T>}=K3=gS@<6Q58Oz=jaPLRU-63`C*GYiA`I8*nP;OF$rHu6#^7 zcWG<5qCWE;Q<D{SIWbNQiLmrm4yvDOdT$s=FqI&81*Lh)_ z9lkU?c_|)$MSCkQF@QSF5!Hk1%Q!Y+V~;}GlNiTduo>34Avigk zB`(CcP1C;Vo<+16{Tet<*nU%_z1-;Sl?=fxomOV@@sv7a1x_D^W{00LJ<|p{w+}>p z>vB%M`6Ay}uc;0qQk&i1_GC$14u5|(#Gv>FbXfM~&h;&j41*mrkF zK|`Td{M+XwU-Ya#A?NP8e+pqwX`8qEBhTCOGDnLeeEkdq(3KP9K9-1GhnsY=6@;gY z1S)bSo9G3f@;8)CFxBl<{Z%|uk%QfF6B*wnnAu1yo`%StvZlaR3xM&IjlxirKNZ9n zq#D^qmJ5EDL|n6O0ntuS{7_)+x9*n<3fk0R3sHs zcGShVXry2R>|{mc+AE#jJ{q{RZHA9kBh3_I_yVQeOLLeGOGic?XvBj-4*7g3;r^L$ zq)Y7Sk*_kvJFjMub5tB=6??Ya-UmN8gHU;`*bS@Frp7T3v%Kl>9svIOoh!B0G90%1 z(jzLO%XqH^Q_nHTN;}BiH1Ulbmq#c0EUh%#hkYA!6-TJ)giA*Z5eyj3P<+H}q(hzL z^`8paddo%A<~m6_B0F_oN}t%*nd7BARjm~vSuP^|-AI=K(1-UYP*Gr;d0PPlrHy*y z8lj=XSR6_O799)0$hh53Jte+NU6BTw!N-y_pVhjarHEdjT^|swKNjkS1EE6?=q##F zWg`8M^-`-BDVaiN$5@CL9WPc6?_NKen!}rbs zJ+P~jSqAKi0GwWb>v6KYARrs8i}qrA*ccfMC+tiydXXV}f52Cmq;QN!&>FLMUEwNt ztQP?49FLCrO=y!d0{9%O)i)Cu10&zp(lE8K)dw^&3Kx;Q%UlN&=?_3M7OmjWTBkg? zVZgr_&aA0iLq7YZ4Kvly2dm3oeO-nUgCZh4uD<#rB^hR+^>n>2NOCUxLG_0oT|udg zy-OpF+Jp&)XfVNpRGffAc35Uhv7D)d0da z`*T<0=vay$OB2E|51Vrf8-hTVPp>XT>EyY^vK~iEiq3nTM5cI8Y|BS zPcnZAW!n2Tdv^jQkG?s%5tN93s6hU2Z3-97I8XO1$VH2&ATFQYS1&v0{@8H>UN^Ct zO)u`#0dx@9YGfv?gR>8cYO~MGoT;hLjpnk?R4mk=d-8zWwO4Yk%)YThwASC2m3_B1 zcpBD@7s2~rl7EpZkscFyzM^)``};2-`299aD#|jMttO~k!ozLB8ot}YEeKAyIat#V z=q0u)lG?*Ohw`9VWW$3HB2hu3UFa=sHm64|X*1VqW-oOQ65D)l^E&EOP~_V#z3P)O zOs2Z3*N=2%b(o1e>X?A8ckVy`+bR}bHjQm^w)@k^2|0zoCoGTK_IFv$hMdM_W$)XX zh2{Jup$z)S(lHGPmQ)Nw0W75`RCw^z(mcypDK<8o8Ebva4J+{ue=n@j;#*y}1$=M+ zbk7cMrj;4c_yO7hz%x|IrsC*=Z-71Qf=kW#6snKSm=!Oh_teDjwV*<7+kBhWElijC zO+I_)3%vJo-DLpgxy>u?xYW1$94ucYb^(xp%SKATyPs6zf>vCO|*5hr8&+cI@9yu)j^zq!fZ-t_-(|9{pm@5Al$Y^%ck+P{SJ{}VpB|093ye<39DuYD}rUnI$< z>?V+TdP$`Kc+Ve;IgPvW)X?ca|e;j+& zVrrxIU0&kk(*>&SJ*1_rnaRI54Sz8a|LEs`ttpXUg>pXRJLLVMnw*1e*L&?u&}i{B zQZ$BMocKH)zRM@0M4EKd4CC>Dbpg|XD8~e3PvL)o_JN4t63M$ACWE^Cfu%_Hc`V}N z9Q1fRS9I3*XJUdGgXtpMKm3Ggd9BSwfouNgZabdOMCh0pV-LGv6*MEiU{|7q$g}WH z4xDCO_agdO{e!Izjs^}JVeE$;x+hQSaf zlr^cM{23HX>7(u6x5>mvpl&me-ejkyyB| zyby<94VbU*V<=6gQ52I@H?%rWb00dNY(M^0f1)5*W!>tmS@+@5vjehK@w0&vMl*WV zT;hE{U@R#hy=_O==xLLK_~=WFQ?vtckpmpAp1@~rQ3~NqQ@lo$UMLcRoLai7n%4cG-j_&W>SllxP_rXP2QQm=37JbWX8C9>rR7_q)$V z6s%uP_cR09h2UK?N|LveG6n+*w*A)TsSb1J{8)6yH)m`?qL9^X!SLIc-mz6Nuy*`mbot_GU=+B`2pdZf<8QJu*q)>040vU z!|BA(95uxNvpkr10s11o$A*WZ@`wR;lt0lsOO5O+N-ke;aH7QCwf5Jqy>0a=Fr-|J zm+vhN3n>Nn;&yS~VHXl*>E^{(yO#4B*YqdQBP`C<#fyPf6BKhE9dW#J4S4h07uLWtY7%&1)yesD$ZshlKk90Tnm zvP9wC*cuC#=t?iV#(?VWb=w~!BYW->Z{m{sH z03iP*#F57N2%}xVO%*dBcJ8luc500RpJv%mhIp69om>3woCs$EStI|_qdyEESAJc8 zdi5Ktv2j}ZT=Emv1MvO*oOf{9HX}^O`BpKe8Y=XGHcOQ$KL@34tbWOhmxc5#I*Ytz zvG$$?vFCZ>I`o;KyP0<{yRhvzG|v&_Wj{dcLaH6R8936K;BtM{mu70#qX^?i?r&ny zJwX-o86Dg^zl5x|9{eFbn{yM5@x#}yv83>fv*6a5SV%>%itcX;#ZhqSH!e9U$kVqK zdu$>2YFzX59-|~`#$}ez*EA!mtKS6QmNuUi8Uy*My%JHWSV=s}3|*qYj#i^~qR1i?@y()X3;-e-ooh^=86RQFItfj>t4- z-Jq?-N35*z__XahOh`_lexJ?@e`LifKtp9DyGT{kHQt$cap?%`Yyo z4`K&r7+wXYv398oA?1g783lJ62_K>! zU45#pXcoZKTw0G*EW6fA-X67K)~1Ur!UJ7w1i`u&*vugUo+6Y6zlz<-+R;SE#-U6= z6G0b8dN?Ss6;Wbx7#r>p|C2|trP4#-+{^lSE6W8-}`-{nECvv!1_JAq{kSpRK z75z29ck*pMu`uCz)XrVbpA6yEo%$FNtz4xEN4tST&d2sFEn2Mps3BZscG?eM@v_^_Olx9r3iP(OO*Z zB|cJ=H$y!ES*<2EXqoUW59aJ5K^;uhsG<%6{uV2m5{V(HT{eMr%)CfZW>bpv`-SSQTGvNu(~ zt>#AVA@)o8(b%V_B0G43Sb`6Lgdq^N4W{ZdMLBO^LMRMVE2?^_^H_ZeW!NL~c=gFo z{#QIgweNTO%y?W=o99cz0oCj|)_L|b7L2La$J_$m?^c#Q?bAH@f>dxYZpFdzdi{;! z=^uvaFOsy4=k!EP8Ci#|_k_##@`m7P5lE2HUST8w`cXN^n*mt$Ue6bp_w~Yjn`&u{ zM`0yH0Q&(0s}YfPLuA+zTKyZXj27Q+rxxKA*oJ;V~z8g0im^z~+^5mcJU zIB`E30U4!=s7?*19=3kC(3))>5}07*c1l}_kP~clh&|s0o5n-x#XSgUf6!~dANi?> zDF}6SVz;woD7L&4sjOg13{&G`_)5&u}y+=Tr zu+>M*Q!B_?@6|r03A9EAyp?(&x1D`UZ`Qz#hQ5`n85;P~?9=g~0^Ukp(Fw&*On$y1rB5g;5$^-Pb#@a8~d50aa79bVB6$l_|A6NT)lSN}EVSKTW zb}^M1Mweympyl>t3U#_EL)s;?9TaVuIcGCX_M6gytAWpZhn=f8F+TN$rs4Z84#wpi zStqUxK}vv~0>DBtfVvrzX@N3hH-bFQt5d(sDL6?FDFO9Vgj=&6ZJMg<#vXIV$CbVX zyeL$%PGMNf2BlOIKHm^Qiefqr<4O70T3GKdj-`gBRWd!S)0uel8C3LY8q=vCLyPB&=O%s>_!wl=$}eV%vMqDAOy_B4g*;H)DX`M>_|D)RKFVQ@9K4HZ7n+vzDyD zM|W+F%&*9$J-*~Ke43F{M*N%^tmA$0(*?L!d_F^=+YXJ(ON7xt+*4Yd`1(JO31ivE{_7Wdi|4?J$8CEzU7=l7?owTd7ZrbShV<; zvHoxx&{gjLpNQnzG+=xLD)55n4s1Q^M#TgR`WhIQ-u9;Pyjka4-VH=9%t-zoql6A#^~ewQ)@Az`W{4*WxC)!%ptKCuD2Xv_-=pA*0lDX!yjk+)yv9?zWWio=j56{45evC@cZhu zCn4&}US6KWMz^+KCtY4x;*nr2pl3N!U@ZheK*8_|)6tB{Wko8AIh-y-zl0WUscrIX zlG?QpTc_!XQL9->>Eiv|9zH*axw@$cC|j)S6z^n14sP1WKI*ZQzNH?m6YvrnMYj(u zlNT?l9=mqLcx_G}Z%tRS@a^bQQ;a_tt0C5f6+tTihOecwG;~X`UxOr)PM0Vc(``kr zl?9yU9Klg|00TUnur`lm?T#bicsYFs{S1CKFusV*P6gkwfoE=i+wQT&hGQCVwO7Lm{9oLyFY4vK>?{iQs)oVj1Tb;ak zFQQeqKk<@&`RgVNwSDuqH@P^ScpuqkMtpUY3aQJg}ELJSrx%tf*R%Lx(33Z)T zPAX`#Zfq^R{jTu{Q${JYs~r8RqOJ(zS<%`M!oJz9?2@^%uzAY!2&Sbr%jCTdvIFqX ztpHg_rlvnI4WZahWL$G$_O&@VXxP1NAKkU_^>6y)Pokqsqesli4JTw*hf!4$wpm;Q zIN(>1O0c`0vmgKJOs@fC-S@g~j2DrSaRfx-s=}w<5ps9#xn-K`!}+^b{5#${+_+@x zQX5x)`s<`hmi=ScRAgeS_pchvWPK5-++oPEJ~Jaw^FDoOcO^%3Sd?4genM}dkn8Cc zGtPK5(+w+=^GV1UerS8|p%JZXX@`#P5j4XH6YGjs8^~~IPajJ{gW*fxSXC_f((IUs z*7ox_Nf%1i(pqduqiokcQ2v#BCi2K#4cdp~*+m`+9ja+jAApOgAET-AnNV=n(CNEb(nus1XE8`AX&yEgcf+=yZv*ZzkJ$D_0i1xh zhR%L0TN-A_7!&2_brn6NhJ3-d0@uRgoSlVI^n}EH&#e?ny>1u_D3*QNSa-)OvF}Xj z6LpIZ6Pw`ubr@nu4={op1MuUo02K)-Z*&jsj>->?hwsvteH}zRS^Ju4FpZ-W8fxtL z8j^H~=KQu}N<<*5s!%)tHw@&@5NGH@?XYPfMl(D4`#Z0d^R(nHqR1mxW5b+&(Mhl< z!!Gek+sC9lNqt!^9bSPZ{1}V zF~S;~z(GiO4EM*TW2=E<)ceL9(kQv)b0fDKCfq@0zCJmeuSOo_ybFyu)^$kOJvu|D z+j2$B(il5P>=^<_dtX;}{G1RS!4kugFjN^5G22+Exw<90$N5F_f$I&`dwRMKP0tK5 z!ahC`KDiBkof)U3&jlX^`Rg79sS$m{K>iD3fq}RnsG%Xp)9NafS*s-ZopfQhMW&H_ z#g~aT*oO#z!#8Zb#FqMo!lTMJ3*#@GzX%uBfINVmcx^_9F@FoWBmP~cZw1b?6oJ%B#MPOZ!I zwjM?Ah2p2rj0NDdI3Jvq@KrUh)6qRD{G~CihYnNAcAP;yL3r_PWK-bckVi+ei@%%Z zSYUXmQoHY(isino-+5;eC7=@e250AUI*g2DNoteUfG%REvt)J&1gAJAKOOfT&->)x zPe4%5Y~KmL?a`Aa@&F#i^q@O39zloUq)IF;6qAZ^#}N!&#~wqDw1gAZZ(JqcU$6hh zYO$74>9fD+-HdPAT0VC&WfO|x;#DIMeyaME3xKRhj^>YRa>ut(dNlT?}BZ*%(-jVdS32bE~wvhc-Vo&#yyfo5*Y~Uq9W5<&hINR`XxG6{A6VawQJ3*+^ z#=;Zu8lo7q*3Q{(DU|W!k^G)Z_5JASPzn6QSgE%f_f|Dhpp7yX;sb{V>gq;rxo3mz zm28&((Hq}fTj=)N#B$I(e@3oAW5Qeh)~~h=(EV%hR0O01mhUJ4o{!3>2htRB#DIIA#`G{#mTBK(1CH>N`*@4F+iF?h$U{# z+0is#fS&JBkOMWyY)L2R##d7AL9<=;t@d6H3%F+{ym>CS&rR?IycGAVP}-AC z2y+JVV8`c)(0o~VJU{Jqu zHHIv0b}l%;jRCYKJ~K+U*I2m?>Jo2L7^|atF`&j)tX<}gn2=WrQ&exA*oS?p0|HTo zkNkHooWOvj0PO-1($EG)VdcmKBW(&UrCEZQrb0jbIKZQ7G)R+D$m^7kFgAO*G`M*^ zp3j+W@quOfI4Y;zuW&c8jha^KD)o1+W^0TEowShPVDPk%p)PG6mIFHxb2S*+@13f7 z6_bh;Z8apX9QQx>4eMFI{<#y_%LL=o4Oqj1!N=dS9cO`QP4!tn zvZVEtk8RwU9tzW+POUh*ER<)cd(Gku>H4#gN|>2{J|~WBqxl0XI@eKr(KPehOn+r} zL6U2~t$70Ovx4dfWt^oG8~k$WjIMl7S-RdC_>`wIf{g6nU`dSteavYJep-yYkqi&a zPH8(vxAw_VQ-W=86>-;cCJlX}Hu|Xsj?I9 zGEhHgv5aMjrS}r+*1BO+8eMa0?56TsL+zBBf$)Z5AF+;5zbd7-l|eBVD>PYa2X=uq z#aGo2>j!8lBF75Hk{IH2I4^M$DERx%ho@YY2NmIU*+Qt3G^up$ui?0zD>=Ih-sN@E z2$y>F?!YWAxI5Cf)cqie_$Ww>Dvh^V#{?H&JZT*L)zirxS*pY3xarRMxSP0|&D4u> zB*UnH4q4c3F>@kdLI&3{A1Ql_uhj7F5?i1r5(WERrjJ$iHPL-!T)o6XYw%S<*n z<|R?GK=uPiV3H>KFzLoy=!ov2DXitlo@2dz%Xq1!X|;`U(QH;TRCe{o3p(6eh20TtUh z_?4sPJuqp`6mUK=VAbATnQ;3LwftBqr~z;l-!MpG!97Fuf3RM?Loe zzEI>Hm`p(1KGw0y5q%7#)0v>!fMr3M9gWoZ^2Y7Ufj zwg0UiK_CiWfQmW%CN$;=`u3jOMD%XI=J9(i8wu2nhGmay5@%0YthRfd;J&gBc*rX_ zgl2pvX3FjaC_e;GvIOQ1K*>eRAyF6`5u+C%@BQ_oM|}#KzRy;v?CXFeyQTg8Dy((z zIYMYPgqFBy8&n?adf)D@pN5Sy@(w-kmiNUAuNJTJ`TP4TRjigrPQkW<>J6T1KocWn zHc-Qux+uF`Mh;{l8%=nhTju=i#%#fTRrWs0d#X{Mz=z(_PcE*e>o<`>PVIqZI|UQ_Hpde`b%uAb{g_31AJ zy$8di_nT|I&*~DagWkCW)i<0?UMT=od*Rq~{|;OIzb(c(_QUI!sKvA}1{cH=%d})g zSuFehL;IT|PfXqLvbf^f8C z=UTc{(vN=0PhGZEx2?7gD;z2_jNg9sh`PzvEjq|NY*q4VI`a@`1WU6b#u0@$29T^7 zT`;eVb&%G4DZTWFv+IZtAdKqmsrbVpm;2ehRA`|Mzi4$rr|t(CKq4-`B^BnPfF?AoJ~6Cu<$ z0k#-`+GjHgpepbXqBIL?7tO=jcng%Rnpw`$rtGMFN%6^diPC!8cKUraZx-2M2jj=d z>+vTBj^`Qmb3UwmTVu?D)pQsA9!o>a27^O@W2EwG6lFE`Y@{}O^^JX_t&zSbuk5(Of1mZ>#xxXngi=X0i;Lv_7mB>V)FyLvQF2iY-!H}v{N*PCCZkZ77j7>*5 zh6YQ#9bZ;{*{ZgC@Gftv=3;`ZxV6%VdQjRyr_H6+S>_e6l)%=x5)7#;B!lS!iQ4#t zD2{e&n*#LYd0wkF<+G-HU0ZEVctPNdaKh2TIZFkZ){!!gh}b-bO9}AupBkH9;5#7K z)L{k=?c)ZQ*e@~QH_-m23@^G=l719fKH$3}Qg3zpw}net zp=p~!j3ex3IH~A&E(r|j4!q8SB_2uf?&gQIwpMqMtV1PUW}lXb4CB>fqGUyV_<0~0@ zjNmkLq&7Y#Av6f&*rjy$ds#dfJn-rqPN%ntCl59!FTn!Yej5y_9wx_;Ll0nU9155Q zu0Dl3pgT+}pJq3laZ_2V#*3(HSMA%o|6&UJvJA6mh2L_`KVvzJvc{WQynHaIGy? zGl6mCZT45cG!7u?^@kAv%Bp-G@b*Zh;YnC{RdTmRAdmG}tt=dD1b-Kk<4Gx*&!^pH zzi7zB5qx{)uVijKxodk{{HiBA9$WyD-BPQ+>Sm}h4Cy|+0nvTLc%K<%cK7qR*zbaoa=o4{LE!8@01A8q-N>3xxi`1R!>l8Utv08INB(65Hj~ASJF2U z%XTw++%!0EGvB|yBJuU!(p2oD>yt)QI;x%3hLrbbQlO7yjBL~dX)O&UPaAc)*M(Lb z`~K*StA<00#_`P6%IfJEt}lbAlAZNCZ--`F7(6WV<-X&37+BsIIZOw!6ntofQZZ3}_7mi)_Sd{pt-3dAaVAKI7h+sQ@ z;UQY_KEa}hc|35}BvB4O;qi`6@e&QAtMgW3RMD<29Zi@IU!S?Xbr#z6{tfSiI0UcX zsR8ZylMMQwJn&zJB9qvZ;P11Pw{uPr-$Y@SQ5#c?HgbgT0j0uPE!JlyVp|Z^yqITg`@Hf#r

z&Nh$cn>z*0iQj4xEBSCZmE%yZocgsZ$7G}TN%fHM%Y8Ym_Nw7BG9Jx*UF+uxmE5;0fM%ThyoJ@4mZ#F}CD z5v!6xot^QPzP1|4yn-G=*0NU*+Pk9u*wKcC&1nN>>tG${k`k>{w03*zwP$@&nSj7 z|JpGxZl`qjh@!93<&*@aLar@M82(?8zQM)mjvMc?Dm0yxi0+MP^KXL9*HZ~mpJVq| z%Deu*XsZ&o8L0_EFZ%x52Up0Azo#PGD(m_?*M;A?GGm64;0rFJzjLh+wAoya$32_^ zf&f4Ad#Atk>>L;1T^LB&71y-}X#{6sNUwPMv?H}MzWaR7hRiWFxBLUE-*=9_V+Iq> zg0qo6+pxN_LC5A|C;m(!hy$=w*i;L}k&0v<^TYDAiL~S-5`S8W;P_KPbohKe5IF4Kcp6Q;kJ19VS4M#udZx zfCiP55g+4id}9N%Yn_lMB3))p3k}Sp)T6>RWyqzQ&uKW8s5M7W9a5$(<2{ja#M+JI zeGo#x#^Y*e$f#L~%kt9VIuQPunI(|V?n|0udS2#rH0i;3j@g?#@X(lybHJ`Cuy(NX z;G{=$N7->j<3aj{_|$PJ+o*fpPesH><`6>n1U|UrT#<8lXeVIy-cmWsX<}ZeD;U}X zXGy}lh&Avu;EEmhW+Z($U@R~Y{L<>VPjh5J^Uw8j-=@tXbbX0FHPv^&dCc~RkH)_^ zq39llB(TN9?hR%y@sM#Wk$FZd&6_3C(uu4@Byx0YXrmPDEqx94Ss@@|VLSF@^ecKa zCNiWxQb@R}F(!InBY5N%_Dq`0`4f%7>74z*&Pd=%6?mF$whYRUmd%n-q+sH{8u8G6 zo*#lIU3u`Mz{F)x3`Owew0 z9m%&N@bt)#0a2|k>R>_OJ>~SmxFs9SD}QB*-VX{#H0j1?fj0xJJ`TzP)vemKq&5V8 zh1iq1ow*M+2IJL_=5<}W#+gl*aA>TP56^dY-OaMBw>7rNceG4#OgU3G2N`0Des~P& z$NaHc#W6(L0bAfbVBaCYJ-M@#qoTWX$RA%|I-s)T&R}iFg=xl*tB>;o_0zOlFHdUp zjfh!Xa~@TRait$cw;e&5BLC3#Cy{^f=KC~^6PdxeY4wYeIfg)BZ46UePA^j#c4BQS7 zY~D9K+MJR4Y1267+L<@JKkKd&&;Ar^%UR2iIP@*G!Y8r2IPeh9f{%PNN`%D|LRSrd zRVSrJh=182HKbnp^7Cq%EmiL9wEMB|epQVmzwc2+=glS;IfOJRXCc5|)M*&`X_I$tq!*mhHR$FG}NWZzEyvcU7pBhwaPCWq*@AEvHV zxSY#ix#g#wA*VfDlv3J3r5t|@8GtZE5v=_b`W4`GwK)QtErF2#f?Taq=cICC}b%uUvko1|$J8XPcaioOg{R1b?Mhm2$KSko^e9mqWy z5po*hm@Z9`X;*9ho~&qp{(>xoT%2qEF^>lXzO~>_3trxz!D;aFLx)8P4cK5cHHgMV z4?zB@G2mGfC}ZXwsDeLhFD;!YC=@U#IqtEw-F&Wl>!RPf*1A>p@e2=AP9s#vz0jo& z?1lv60G73XmwuWBh$FR;;LtJ)U}p09LD{7iD6L~o#<$9>m@ClO*+*FOLuBHl#HMG) zjGA|>XPlTuag`ye2`LMR4?gIx^tsG*v_IsoyofF6oe(beZ!#~{9{b+?bH>3KqTyd4 zS$$CZ-UTjVS4^1grz@{nRy72gk|1FAfd;Lvx&BO=GFKOl&krVmI`~cIi9SNqlD=Ik zu%Xrp?YJcp^Ypm$yxZGeF`slQJKPo33n8D@5n}bh$#y!KXm(YKPe}?(j}i05z|}Oc z(+CyrxOa22dtqi=d+O@bHqi-tYh{+xlY^ni7GbV!CkwkHp@qAuz^+Fq5Ew_o7{a`5 z7_w~;tkYf4PA)34+n$!Vu)Ds|{b2mv&Zh(Fi3P!Yk3XE_Z@_Xb%=&HvejUhOIaX*B zbimMP(+2qWWIXX^=}YIRH^YPuicGnE;Jq4BI7ahx=Y3Z@Lz#YKSlFP{6ud^?VNs10 z218(JiW6OsDODD?71@ERKh$Jf^n)M_3ikr(Pq!-#d4|5w)p~ z`t16htI8mRaBa>jW&kGcWOdKfEcv6UA;qx@t0sky&%-m|7$Ju@6 zYe`&e-=9uQU9?~DK6sqAID+()UEov? zq(ThE6M3H&JtCT`2{nlJRc~k<2X{E}XO^HDe-6>rAhvO;Fw4O92Jg`eIAJ;}UG2JP2EVz)0}4fOL(lYF;FkN29|(w$;!1LpN1 zJG?HY8?janM(z)8KmsFY$>O5X%k+by4&-pK%RptwxQY4jA0;lrt=~KOL z>hhTLw0*yax99VnM~vyv)Kpgwg4@@ji2*UAVj@)kl5Q4rBXE4~|Qy?!={BnMDI`Cg2Owlm*v(XYFWehnvCm%)w_$ ziW=-_80>Vj{A^=mdbIugN4d0XuFk8BrSA`TgYBpP@)SSx(HL)Usrk#U_~nZVm=0|A z1-iPYTj#)X0XOp<*!dyb*n1dm)%Ojx!*VHIZ4oBd44uA z0Dnt=#1{T4DL%FD)x5grd~nbNF(UBtB;yn9Prh$K-pKd~q4}a|s(*zr&eNWibsv~n z{)8CPfBfz0jQfo2DMy3virJ6apUSG!tAQ_Q{`TNkD{2Ip&}MAiG96vgdTq>LuZ=0S z_{Luo^;!d4_4&rSZeKO>9bjtMU~*&!Fd=1_jOvqJUM$;0QcIblCGYM-?^8NY5_4T#d`qOV4l+(#k+@N9$W6;OI?~fB&z~ z-v8duPP01<*+_B{X|P9-rh-dG$uq>s-Q{!qw_|)QADJ4RuELyeiXt`Iuikep>^+s? zoX{#p@37Ec<)V0!jafY4=)n1!Jh+-Vi=AAghA>l*PS0t%?NHHShE5O(A#4^SSGNZJ zta&g>dqYc0!BSCsIWv6uZu-=y2NOr<0u!6J$)6m^;tr$aQiEx8uyZfu)+3T2>zEOt&BkXG@W$FEN(_B&~nLP zEPgWiS}rA*h`ZY&5>@C-OZI*f0F@@YmAUv+GfkguS}YXWh2>}Sh3pnz)esPk!Lyb$ zx42k5U0{V0Yr%yIQJ)Mk)j@>RskXgSZZ+fG&mXa0P{wzdK%E}=*3oBBk%&2joz0@a zMYJxY2C?P~o?8&}6>PR(2H+)ej!TfLo#f0EgJ~s;p>;-}--9cD^}lQ@>L2jF_Z469 z<-%tvZOz!+zds+#(<6L4k|8<>dKc*CK$IvC@E8eSJBU_y4X|=okVnQqCVV$#v7^Cf z`~||_WNT?cLgZ`^34Ms&2vhleD#t!r7VQJ!Wr#v$7zX5>j@OGuHqZSZ<@r5+*P&3G z;7O=g4PN`ueNGcs{8{!j>ojim1q?V>2~KjcctwK1$Bt$`YLQ-sOE4g$=|kE&UAGUV zq-!%9t^E1p_wecVAF<4snIRp2WOSa=`(QWVV*PRY3Ggw&Lz;aHEII5r&~27bQ{ zC?8UbW?oVxZHOTqE09@Pdbu?pf89Y@;M0VJd{|$_uC=UcN>Zz3Dz_)La2+CK7 zk@~bkx(bS*O~F#p-q$fTi*bwO0xW04qrBxnf33BRgQwxU8$3&MC7-6=4;nDJSzkbF z{bCBt7fUn3!I}434){g7AEX@0o^@W$>#?ePuuK9B^bHtHL+ z0Bknig@aHZfm<7+J2T)ENVm4R`B-oSLcs6#r|58|hJQ)mJ$qg4uEBNft3gz9yF$9u z`L*^n*cS^!Di~&E=}Z6}pT;qy6LHmfQG!6rr~+4|n9354EuKbSN62fsrsF&|Swk45 zoyT7>ItxnMRedPVH}FrGiFe(hhO08B>g@BFt0(#-bC^0y5n#sx&1c|31)*AsAs} z>Dst*=6ThV@~hQ3j+WrC{QN`x)B*{f6Pj2774!Q=So5Jy$Uv7j%i?_sUxT| z8bq2#lZ+DA5AdEbxAZYQ7k>_}Cni{lzP(uqpSIkiN>6@?IW{<-+m5Lw^fbb0CtN!T zHL@(OiILW$QI^JjO=s~wy+bpeg)SEJ+B><_Q2OYrFT3CNcU#zlz8Vt-Y7{rSGV02tO(sJZV`@oCi_v@PxQU^tBeCqi47Dd*W3%qqh6nTz@raTztS0r2_|19tN6oQPXXd36j#PDV7@w+j4r>j zblY}%JSXTj{%+V`h~U}e7xlUULZ(wSMVyJqg5y|F6rpJWkiobUUE|9*P~Q%z8eDxA zkR1r$mysXx+<*O}NPsv#B73qwSoykI-Wkj%&U=E2Y-gtPSZQh{pMisE?0y4`9MYCd zNMLazK_^L^+mbZAD-+6V8+MTbPxQ6pFL`7*pqAZNDXaxLmQ=ntC-s@E^P>{cZKnV? z0+ER$Z`)0ppQlBV7pN;8Z~@ZL^`B)p9)Af0aZU0v!K~%Ta+UV8w`YqwtD%lUdQk)D zE8*a<$0!1St92PycQb*m?Dh@SP2e}tq1^TlHo*wf96IsHhP)Ynei;eFy2@`;$qUwE zu+Y;94;iT+PQrQyHdf;)=G1m(HQ>5dv$(&~m7_+e@NuN^8;fXCdh|sJs>?-z?2}VO z`o$0niLXOfcMtOH?4j@boOY)hYJiWgM(QBH3t1*;ZEJ?%mzYi?Fxb|phY-w ze55mMDObJlTc3XU0VPqR0m=HC1kvQ$D^CmgkR`y;vo{yCfD6)$u%w+X#8=SYjigw0 z6B6CE#{`Orw(xd}UC5&}$>&=$Gx)`R{};Me`k@*pthsf$y%jL)dVkwqx&>EV!N~70 zYX$+U9KrgAs{#9{j(%n`tVZ=N(oQ^?xLfv z55EmUnF4Ab<2ns&?HoK~P=2Hp`DQ(skP;t@qWYA-{M3e$M(lkX0tXLT6!m6bbL*c^ z#~E6lNMSwjD}3s^1wzTbK86_ZMh5L+m8!AO<20MgWcNCx>zga-#%>kwN8U9(QLN)u z%?eFE)QvxR-D7sH7;Rp2;lKA(|62g%|H|*U{$oCA|9f6im-5$)Y)6UWzn(Qk3YUHp zzbLRr)|cZ_AV1fs;dvuzpNHa~Er*9JUxzHU%7(axSv_jKrL$&WGLEZ8cgp1Z>VAYI z)?Tx8h%37MF>e1-3PXqq$hMC`NI(bZd^PVt%bMIG5hNy8Tp9`7`<}h-l2xY$ete$U ze_8vx()>MNty@be%oXNq-1o07is;G8vfpe=vN^PaV64a#0AZ`zF|!!Dg{Xl7F|ylE zyg7kaX3gC?VaA1uIMz^%7km^%43U^-j|Y%-@9MQ3=xb&&!v=Kn_%lB=*?}H8bBfPm zIzvz2XMCG?+9ECYX0HkM+ar~GZg2aXjE@TWjhoH~uE6jx7Ec6S4fP3i6rDJ8Wc1xn zwD8Fn@ATKi32UKK-+d3%{UAB^s2HvD#+~Hw{S3@h(UbjiMje8w1=>si9R)nQJprmB z2aq$GbLpL#p6#FGr?jCvGc~Ze)>$q3oW+96^ixNq#Ay3?4T%h<8CECfy3y=->l&8Mr|Uc0MDm``0lzyy-E<>*II6MtGl0x{f! zq`|lotvFZlGaErF=KRxz@B5Np1fRSv_x6Kj8?d$R>4yk``T@Ffu*1!&vqhdFMlFg! z^94#s%i_bu^VfYp)LzSQV4D%`l)54JbEwkeVE2Q5N=Q>a*0B8 z?qEKESETzT6#@YYs{C$eQOrM}(zwP2xk9SVTzr)E+xT%tMcV%X7I6MI+m{IN-Gq)nA z1ou{!zi4IEoMCZO43>2~EOebeB7fnOD=l!Rs%6Xg@#( zqVDvw|8@PvVb!n@&7zPuy`8I*@v5=za1bCsW|plnf?M^k00e{RH`8DTor@~_6OL9L z1k#JnjZ|vp(Ev6bAskUcnj5G`2KiN-y#75> zv;ncYOAhFmy^gM~txND@@k>XIuv#ztg%CLI-E-LP^Hus3>-zcvt^obD=kgd35K6_! zG^v`7!2Jtk#zCi@&Eu^4Roo8;V#wr2CEVDG%2`2AhUyAeECA^-RftYP3QK}!M5eCT zkNrf5mVZbuU$gqUCcPkhqAN`O2K#H{D;7BKxDpQ8^AsFItb_^-pG%{1JMhf^IwMZV z;;)ONe8##43ibMeMh*GSdMiagl+y%3KcB@;&b@>4f+bQ}B9$q<0k`D}if?+Kmkum@ z|LC$x*x2LjJ9ZX-%;w1;tS+_{NMopt%-2n5)2H?U<1B-w%DDN5Qi^dlD~nNcrWcQ2 zn$BpH7{+KBY|596)Pd~P5jS~zj`$Z^>;=UnL8XDt-(|z5RXcOF3 zM3Vfz5!@^odAXmw+J|S<^&5F_l^b@mCA$8si%v@Op1&no=Ny*k`6X{9{F%-0-@+m*BtB<{@(*N`2$e85HHs}|4!5T@KpX%Mo9qDp3a5Hg+Gudn%F3E= zXJx`s|2&m?{6hTg^$Q2JvNXjOuQ6vma@bOSV!uXG2Z27RhhIIuq%HlN^}7Bmih|j}A1w3^EQoM&Pk7lJXhU>s{lX;FBMGFCh!b9-uuel!g!*uVjwEWKG8~Swf zn;BiBHX2PH`myzLUv9l^Y`Gy;_8I3HV>2fP3Zn!Pw3yP^Vd&0J5igr1)VeR7KvKS$ zOKsJ(i5%@*Pgm0U)G7Zq#$W5id_@@MR@5NKkLdDIy!I5MB!=1RW!|zVxbyoj#Un3k z^xUpYyHsnv!W*dSvP;Q)d$}#Qf(L*LWGa`6WL9bEe5V<|wxcrDG~NB{$;^UvQIuHS zd`_;CRQhA~wr&g5ZFJk=CP89q<`ggWIW0NDSG1uSn~u;5T9-15@_6uTciwsM(g88s z$(0Jnmh>0?e@WU-gzCiY?_FycZ@10N26Yl8}jjGmJva@qeR5vE5l>0*P z+cSVMzCXg3H9q3-sbLsPGMuQix}VP|yg!t9@bdi%`;*6d2N(Zz|Ad_!f-0l%xSFIM zLD|#wEt z#hO6X#`-6u4AP;r9y;yfz3&Il?0GD**~1*`4!i3ZA3KMuApn91)s^|M>1+WzE#b|T z0C}aWmu0Mn73glG0kdLTmX60#)j2PH)4d{e#0;P@)GN$dnD5{emqo*93-9up>G-qy zHDD)oZD#YE(X_VkZ0S-n@1dyAQP?)jq#e*1uqk0!(aI_PM0ndpS{8Pt;80^d4is~u zU5~GhouhcmhQ;;8-%x%fb_eWckIW&LkbE>>x_4AIi^uf^YZRqTI|-Hgar;qD#H*;Z zsQ|~wkZGf=qg^I14>@XWX;wKE-g`mnQ&5JEITTWddFeE|q2A4&n0? zr`#Lhj!sVZ}dM$^gpNW|6OaeF(@oBG=EL`vc%YarR_KHzuy=%H8$GERhg=1 zAYSh;Y?{E;eu>EnTi%Iy=(sPw)cW;hOwGIgd(K@N8L_z|lhpEG_y481)&Dy>QzD`@ z|92@DL;gcP(SLN+ZsEG^xB}opEFoGMk(ENRxb@C&2agogRaAMfz?E#1!*?pK;~2-> zb1Vj&CGEb>0TDXfY8eq1ixUdIjx`99+i>v@U%aLL_{xm!jYb#e7r|n!$IS-MX|ASd z?ABCpqO=C-!mO`^s`@U$12ilP_ ziRyC-lAcfMubIWxOK!l;S);J(k~omF55`GPv_WL6+XCObtTDR4cD43>LVSn*E!N7O ztnT?fGJg!Gh5XRc_rn)aQZB4d03(+XOayt$KpkATNzFt@?)^w1g!+erwvB73ksxa({v&cROZ>Pxf2;L9@{Ta{V&ZIpjEE=a0QRC z8IJNa%^Cc%vbb1Q@!jekY5>L`L5PP}PsE`_q6(Zw2aWqL2MkR3f&0d_l+WThhN-1BkKl;Xa9*@mO#Y|bHG<#tvl)2y{4M8=1z%mqj zZrX*Zx!xgnic$2)3EgIk#V0nX_Ot{ehG^&n73Vr_%o2W$)C#w()3c^-)C7CKxB9;8 z?zn&P(;(g87pH|?op%-NAoM5-)C6nlJFs{sCuSMW1AAcUwq+ry=mLqK-PMxL`7Qo! zpO@u){-VOF$9!+DfcLw2ss}R-?Qg&=D*A&K1?h-SuAtOws-yWKHbeEPylO=bQZPM> zUZ)5i(ao;Z>@-yQklmEA^YII`r8)FuF13=zOIhqB$btn85%C*;1U1C0(i)dHO4+& zx0q1*11qJ!*(Ml-;nM3|@PDQ7{|~!R{=GWtzw!G$y?#CNs$(QbxTFBIasqxOG5t52 zl6y7KkNC~@>u|#_wtqnyEFwMn|5&aOd;d4vb;6X@Y|ko${Bml}t|#_&Nz%fo=ZJL7 zi7(TSeV)0^`CmGt30d!3XHhOKTX66BIWN||0#uVQi6*?!6iw&m6m4F+ifsFW4Ta9S z`<>VPLyzH=WU7IXAsVR5yb_l;2I!nE@)WZf<{f1qxGf`dFFZQk^3$mmjc+|Z+NAcb zc$LyfROnG|&NGtwFS%B0#TfZWaquP$pun+1Kkx%q2k+ELm)FZC4JJ1kNB|xpQSZdZ zP5qU!)C;%jIS`xLgZ=7yS{O|sFQUj#8`l09AaQqvS&o~1HX}lNM(Mt#(`4o!5?y5T zx=+-UanpV^g;+U8^^|Lm&df2^c<%#L5B9MW5Uc z*3sbPms?gDTU}87)P=DEf8T;bBjGP!V7+r&FCM|ff%Kx;|$NLqJBR&6=GbjtG zq_wkK7Z5bN+GxQV+oLA!I;+zLC`YfeKb3EC41FwaX9_MIPGQBY<7TH3lkMHp>+f0) zB5hLC9yT^crKnuGB>TYj72DpHW8kvr7Iu692(=~M7<>tF-v=xl2^p3~aMJAP!IXFN zqjt{_COZjrFUi^@pLRap^k?4syJGJi53WE{7#iR~PN0SfatxW5NUcAD-9AC~a6uY< zZl)>x%+IJj2b}#wZe5tMk$ERAG0+Kbx}w)v^-zQ8j8vxswpg1&(*GE;dp7#2|3~L+ylikmbrq2wS?R&c0ogMPVfUL2>xbLkbLD5cXXOVV>U-Stzlr)@NxIvxjQ;tX&1m~w%LhU3 zh*7`@XCam@*0Ez>rf8gG-1&o(&0=A^Fb@Pi2?%&E0!e~gBgYmKn_J4`b00F)^e26r z3==OG`t)l>%}jc3W@!Fo;WDwb!?;yk82u``?E>@w>T|zolvXB;KjnXF~$gcmzAzSev5 z8{o2yzw;fA%QIjgO}Ro`pY zpE4MRTiwan-|HzmsNN>)B5?e;s@2s5DM<4}CnAC&P6xOrk&JDF@B&%tuP|4P87-fZ z+4ZR59468)#Gv`1RvhX4Nn@vhylLk-`OE0D%nEW{rcP3mQOOS@qp*Mjmt8G_C!Dy# zM;_l-e`G#ACFQ;1ytx$mIi*FP30Pi%%@C>}GY4ryw-3zInmJfQp1Q2*Pu(nUdcdsP zKF@1v1X%Wp3} zuhBz$BfRYK#=)lArkdQrr@J~P^5%!gqGt=eLzG=k6-*rLuViL0j3{?uLM`%sFd>CI zQ->N$T$XvckL#vBc07Og&e8gtM^n}V$+^@C=6jSXsuxm`+XmraeWupc!$nb=9nWd- zj(s%sy1G2lIA?SzyHH8rOiE+R$7ni60IRCuP?@d9@(`r`Z<4e zW$r4DM8F5S4Es!IBUKS%9g}8i2@3}XW%rm@Ra}wUvxILpnuT@Az%tnJ1_JOww zl*FWxzz}?I8=hlSyYRhpD%&14h`$0`2z)SiO^5D>?ubFRHK2|&3w5rOMrxy{56ftK z4YQrr4G_OwUgL1`aJ#eS{p<~JvmbfE=l zHtj44n}-L?IkuJ_z1i8PcdGIf<>kJ0W+lM7bcZWd@AppF9;HIAlLvKmcx zx&TCSW$5SKK)Drm_pPh*1XBI=QXn%cBJg@a&^N=>g(JJdt}+U--`RJriMN&k7U>#L z;vDG&EvkceFl0x&ui1{H;kNAO#^07uN|MS|_TiU@0~2bS>K<36ukin@c2PnWC2#de zy7yPOK}O2OXaq1b?=n9i(7u8+Rk1~Y+TLj>#NK0|!q-&WC2peiv4`JqwEMAfY>4|S z^~CN_C)z>kW{*uJ)F-X_(2t=$&IrWgf z>FT#0O~ERyzmV@^PsP4;z9N?%_aQ9^HHG2(v&X_K>sKehZsu^2S@bRflsiIJ5w(N+ z4m}Z-=DXoOZO-fB+AaIGEO>-Ni}E&8QcF&fk5IYAiy8YVMgz1VPIj<8J!DwYtm*Q= zfWvNeq6CjgM%RcoKruvTY{mGveZUuUO}oR)H%JUr-|aV>nlE4Ln;aMqBZl^;i|qK9zmR-jip# zZ%**jFQGm|$j*ZauxeC2J?a~3xc+?9V0%OOjLN8qnD?tL@z_BB{dC)|wBy$+2NJu$fX%dNwsl3+r%9k4A^c+8wpx@i?HECLY`@ zdaZ^ff;>-l>ISen3qtE4&&*@Pfxr#h)7S7W94F6eszr=E;+IWnEj5huw3DZP>TK+yzpN z1rsd+UF93gQlrh0>MG|<1-l9ahOP}a8OQL2;Qjo*XvJwd3UtMl?e9KGw18Ul-}pfH zwGeeQ|3^vHaef(=WwS2}l&QDfB7XMz5jG80VAPG@Y%f=^&joXE*E8`>=a?C|YlH)= zp}g+g!_|Srwg8ttZgJJzHK+6VG~<2j{tu1L#f$B75jSXudpZThe$>qj&yrfea)_Hj;>dpqCeMaX6?y;Bpt!V)rh{qH76u3oaA1gc zo(yTz0UZ8A*-qr~9RBnv7w4&u+*wDTrA?eU%e)w)`7>CI*kG_3ndWR41Vy7l*pf^+PO|`!oqM~2z+%Xt`<-dYGdnZxWZfHt|k3b2oqFgLH8G5$bjKGwH~(L)hX+ z&wlBcQzbwWk7K~-HY`xR5rbWu*6E0pzBJfQudm6Y+T49$+#%QbXg7UtY3AdtI6Iff zRS4Y`8O{XxEYUD~4%QyzK)fA=IG-_L#~R++)11y2XysPST!{DDxH>JhwQr;gWq@wu zjR3lE?uVEkaDLO#q=6zwd5sVGH!Fkocitc{TSCI5)1Go>-(Ww~ti$4-m_y(fsnfKB zlr7>G!)bI|P{=u|V0g-E!bLao&@&E)nyM~QvlqKQ889tI2OHh1CDV9z6)NwXa(@0o zT;YaWi+iA3SuoBvQ$~w)V$9PrH0VRvj|WckUrpblzM}eZb*ezV3(|qdra<>B4=>lb z$SqDD#=H8jowcih?)`M{OxyA?>>D;YrxcbcZuSml56YO<@|(?(Ry<2c-a$dg^@)tL zmCG!djH!VnC(q!Luz^LL+&1=gqqD5`OVwS-61f{Jh}I{SyB!x7Y{;9pby|N3hz-1% zyAe|EVu()ajR8s&@-YhkMh^ea!UF!!UB|jhn@!Z-{>vTZ(d{#syOUpYg$CF3=r~)mJ)n!^LS3Rq(2LO^}?wyf~2i382LP0 zl5q;;geZm%S;TD1hgL?4@e+&|^c-IKROjR9XxVYi&A2xfKtzwSCsys&(&x}gAT*vq z)0CLFxa$mK@45Z@a^n5%j`*No?B1_u+*NZzv`O9z$%B{>Ef4N{a*zuu%v$ z*%Hw-&FR6l=CE>qd!%~2b0ft)pGegH*pv!ys=uK1>RYRJ7Uy`d*l-Y`G5O|f$S)>6 zl+`n{huH|b20MWI^qWoCH?MurHN&XBxqeS^bz^;qcGGf6BG0mss?7bI-p^L%Aq}gi zFEAz;04InC>my*=m3kb(euXt8J(#dwOLsuAxT*p>h<+*`0l zVgj;~2x3kuOF*5>bqC0lAyp{R!~tr8cd$NPM-*-z$*h&jZ(>*P0~XQ0L(MDSI8=LdTf=dmpg?)tb$KRUo(SgU-$6Lrin}$y!4C7{KI}< zVU0rdfSUG+9{^93Xnhb2RYgX(zqOfZ^kBGKOnWfcg@Hto!(#e!1UU)XOu~y!aJJ8zfB<+RF_uI;;AMH z($wtMj+XwwXCxDuYJNC@nslgZa`6b!@Mz>z2dm6Z~6VY9D{euz1XX z`sxsEiEe5>ie-7K1x^HjhurKX+Q;Vu*rvMJ{mS z@z6dZdB+D2!Sy7!xNct@$p2fb;<=f>T=T^IutAh{RG;#H;lMj>pNdAML) zT7hU1@lx?XCUpb+ z@9YkO5KD*n{ zMf@H~8^(GgN}OG-+RcLk4|MSbuD*UQSRC;)ALAMN9DoY@{(c+#cfU_6))w9479}Y< z*Hh~oAf1qy%p=!_j-AsZ)|SR~ z!!`@s+wj=MxuYkXqt%0{)^0$yEcr~U48LSg0OM{p6@>n{$BezhkRC`4x}CsB+h}(@ zpPvr)Q)2fE-G;;|kO4q>`E3Hf-5a~nTcvIs&t7YbN@Z};R>*_YhqMbtNMD-S>vzR3 z0(EcQKeKP*l)yyB>E#EOt%apOtco3v9x6Y@Q&ycZVQaATYVhNv^OfP8%h3jft7A2$ zfJ}qc+CCG-1xYweILlaJz62gn4P2``bT^~{GuuFr|670)TsZBN+^OT^$JUS^KSA^@ zxUYMg2*Y0{bbrE}UG1FzS$ayOR7PDBYfw30E_Jr3SklzHaFflL$BZ?Ay2)w>;lWOT z_046cQ%=yFJl%Z<1zEnZG+eV))IQrg@;YLFS&g6qIcywvx~)*Rzsysk394xLpbn#1 z-W1QBR^pylW<8@^W6yW9P{BzqBg?Po*M*+5Y%c1@3Kj3jWW*2Wyccb9dW`g@B?Xa_ zh(;+;4Yw(oN#xO@nPqJ7U8S>i=k*tWf)y`E>oL-sXGZF3oli#3r_c0m=P11{y|`x$ zE{$r()vjmJZ=eS2;1GRnakss^{bl(Vd`-%ZmeytWtA=W1pq@HS&c41bJs}ZSnpCDC zcBxoSTCaoT>Bv)VwBDTj`ejP%x4(z*e-E?P!OzKyA1K$^Mz5?Z_zc0ui-)OYkA*)P?fpC zrEtegQpx1}Qf&ipH$R-hcnH|}apS0tTz6$@v*z)aBOvefl^$8j&@#HY2#uP1DtR;z^`n-4IkDVCNA^lcF!)kdayDY$n!)`D(H~gQQMNY$$&IrrxV0cHxC) zu}1^UQz}Qa@jjbu_7|QM`~rS+`ta)a%U)ULN-sDs+nw4!C$@_w3gWA0t=0eR| zkjo%kfBb?Zx*=^tsGk1e7v2_Jo*B%RsZ$KyXDGkNzC>&dQwg>bHk1sjOI~suDz-e4 zMcdcjy}T)B-g&@Ec8Lq4U)|i{>1E+W_`=D5i#OJ-;ZEIMle4?d0M8M0AcYlOlV;5kViU^G>@4m)KR7nzsg)R*K+XgJF@GV zmaw^3W3OvP(T~~&h@NR;3gayeM19WtAWK(>>g#V?i+=ONx^#dVZEAk0YE$dl{rk_k zb1?l<3gQu$;3Nen0z?Khv#K+nnXrdYj?T$f3#1lK2}7P7w&~a0>!{{+-ragX*ZwRhvvMKJ3z+59&<)B*D%^wapsQvM5;R%rhe#ar;{wA6#DW%o5eLDc8PT+_g zdNAAuYByjU$Y>T1g)Wcupe*E**JlPf+pjSNGfUr(rCDhq6w?Ig1q$T4Sjx*^LHbcO)2TLD;`FG5`}aOwyB=34a`=d3!5s&xUhP{6 ztFentU65)!(60|ejTsi`j6-E@qkW5`R1^SGabe8U)!2cL6nZHA$>sswVEU(&d`p<% z(^^5AHf&Y9gjULc<`tBMd5acY%&UKMj+d4;H#;3n9oq0{*e;WkTu^TS2tRS zb||!`jPQ;5fa&?2ZT(Q=d8IZ76|4_-P4E&hm@aXnr4}>b6DB%EGg0-Y5^aKvTnqZR z4P=h_@KsqM!h5eJ$hmcB9O2OADt*&pNK+*TlI-qn3raGq$d6L7EAnDbr~PvA=?Tr# z-TBA;2m{r5SAFYahAbmbUz`^O49@PMXK&488ExR8WDoOMlc4H>ZR!fEA6^}tq2x=R z=-lA9iq`k$HD!$FrA<@|`o53!*}ft$Mt1<~F^KsvX$_pFIaomNKi;;EZux;Tc3l5t zp$@a~)o->Ub6Hg44Parin%FW!OC@I#ow}IN9xGZkFtF=pM#beH zTc;JpH{JH8FKE`JokHC6QshlbxiTY#0=kA}HT@*9XfH0{^JyA)!MUm)3%SJt* zqJ^TK5Iq&ke~ym{als$nJD73o^WgpWp--imjBtbskj(bQGbov45d9M|@@ zN^BDHuiAW;7^<3B$`C9MIMTkwZ@3sUTB?xua8apG}Obx+y5fD@!sy%99PF6%>YZx zZ5^atnUScmll(Twhwy&xe}Y;O;XiZgxg~YjP03a4v+JPnEPL8hc4l73^B*^VDMoqW z`}S}5&We}$Rlbh(;H@~V$nKY>(_b&yBiV(l2FbPR&Z@yIMozVJa6dzVd^4Z4{}uhT z6ZMz&!!QdS#&+^ucq5vcyDzV-IH4DP3`cg!~EU4Ou}lY(wPO%08! zGUs0}xmriOA6ro)Y)Ll`Zfom(w?bVcn=Y>Fr=Zr)uu2&bvpRbjcI0BhofZ|pI(fw}wPF_=M{14z-mR%# z@@Tc;=o@;^_x#Sq**npf)^yqnB)))N`q?0fziO+8wASpq33hR!8RMGHUryh*;)#{+ zti1DrjYrgj?_%_YP)s7cE|VcXNZkjiv`el<$3st4P|(Ruo-e*FHHgQ0$=jN380_cM zv5lAPM1AWfLJo`0rj-JG#J^!O@t~=n@3RjZ8}?|Mjct|mhRmv&IQpw zLf?~IjS5WCLX_QBHn4kG?eI#w4nf(>WQ;(|0h;+~3Sa20p=CoCgNH`C*32JQ&&1xN zzry!0YjJ+?bWF8VdmvmI$ws?SiiA(RtCd_uSJw2$27Kux_bn`2n>@jVr%NB)b2L|u ztr(T1F+KP_jK%%&Ez*tI0t*0su2ee&?qD&%w)X=4Y}RfB&jCTsJz6S zLnS_(Q7} zVn}$iE~rq@thQf~tf#9h+c*-sT@Z9U%a|Mmp~J2l!Mg-KJcJy@tV)kPl%Td;zctCS zZ8wR|RppYBD|6_93o^JV=Iu_XJ+xe)-;#Q2RLp+Gc69A!W6iTm@vk3o=M>(MGGoJX zu;X7Ho$76bd^BQ+na_%%z~$qvv$}CLn3N{tNYWrX^2jg)I&)-r)&1g=8dIBdBP}Be zy81qB;x8dbj;IZn5+j8dagtDZbXz%^uVo*)eSzHkGOBwa$~#()-Fl)nzUeLCQ9&2VG%5xPhG)k# z@Xi_LyP!}J_c2O`h`9rsO@i~97?Ba}_>wpiUCtfHeui=_M|3It zk;?#h`u!#zcOP2Z$cP<1AXb@`owAIyB4YVzxQ=?35G5j^rL-vE(I(#gtNZEdsc%!C z6OVi5sqe8?3Rk%-DW-A5QWF}KQUwF~QX)!v0ts3L_qDgg6B~USnh;4YX=S3`hx<9U z{-Uv$?!SBI#I_i9gCXootp&_ZYiK{!uATWr zX3u7B+L~vM5^%n^H(N=x z2CafJ6Be$X}N@dW* zzoKNo#Fz$rsH~NBy?2VO9h$7qUF~p)UWk9p!}2#Vnc1I0ue)|L!}!&(k&gy$5sEV( zpiUrdXkfu`g15y1nH+M@Y6NH&Znw=>zdq-@cKB^-fcQ(z$+h+?9qieMM$ezb+jyIX zkbzl)5{qY!uEG#yri5eS(KY9)brMW~GoWTZcg^ngb>J~N_XMxRmSQMFZZ}HrtB6p( z(=@TIP41ZOX@|t!{tFZoj}zUL+HV@^?G8`|}{s)l~V~_LlOwBgZd!n6BVqvxGg5QBc8O`CttNYwqCMar;^hM2U2rsLwPJ zBL=BjjsKi$bQslo`@FuP`TF`m=g`Zh5);PvEj!vRav)Kn9af*202LoL(KEP=8j5D- z_;6zIhZYy}dr!}N!#t@9tTvvz?flrw^IWdR>(b)+-mv+nn)dN87mYW=kh_@+cC7tI zbPI+OZ4U_{&+3Is{5<-Cw&P6k?(y{07ZEnO-|g|>prWO>rPaN(GyPA~KddobCXxbh z)mE!3SfouIt^XZO;$$NwD8Hy;MQ>?*5cR+!R)+UMLGbt1$w;4QujZbDxF!Le&#$i? z8+>P<`d`?4&!{H9w@nlUq>J<>L`4Ltf&z*_M5HLvrAUi{G%+9o5+o!F(wm}yfD&mU z(xobp(2*w6I|)HVdV&}tDZjJ*uX$&^@0?k4&Y5}7hqKOnkY|M@d6NC?eb?*0uEaD4 ziwW#Zn9LCWa{B#XQJDgBmGXB_+cTcoOb*EW{2!c-|F>H{2l@~N-EMp&t?cZcw71=_YIO`r5p`Hqo|U9037NQFw?1wbo3o4Ro=K702<|@ zZ0o6?NX%{1@u4J)_2&pP>oNb3i;k-P6=v5weo6m0TViCBrnq^`Tck+ub^GxL9V;KeR@1HQS=U4ctqPX@HwZ`Cbf*b&~2qjWu@xm%AVZrr8E z10EE3)Yhe{Rf$`j?>PJ8_NXz3ondkglZyxNOMoeNu?pt+!i8$=1nSH@m5+HGM(tj= z`kc1E;;0i!dEJy=xT70$;i-IjCjyG}uP~%El6txzGg3@WYmyjcYos`BkLb{Lez#J{ zc})XFSzN5mg8NJ7M4FzNoj0BC-Qiky*!cD-bv@i+ycWa1dUjoBeoRZt{&{VU<;Ai< zBT3#2?|X{xrLPjWqdFF3L9s4jHx4w8xEE&EoFZCJN#$I%adcs=-3XSm;FOJ;!M(;) zm0_ES@;xx>DRc*v1vNDI0})Gk*EAg5a$+1N$m3Ueinz=LnSa*dr_dwgE3$up3|pE6 z-VT_~8d!(g(`-lwUK~NYT2-BDSZ~R>+8=Qab}RDC=v-c!9yU;}=Bu+Nrsf;+3&XnN zY&Yfz{QzmwME@8yxx$wT866|ctvRSWUFLuHC(Ge?<-qndU_b-{$TKTTM_r<&kTe85aTj0hM7wJ#M3z zR7x;z0r|KZ@keRtte?iEXKr$HqG)%4FfrDL0}`)=B$#$I{<8H)YO%r7A(cnw4Lv;l zn+kJ@MhPcj_Fl&h{H|OAD#(n-Oi5-tgmg1t8fHm7Ah+;_z%S;P=}?c7$p%Wf5!yD7 z4Ml#)72Gd`8EsPj_ORd>4TdrqT|ou z1ZHQUnaZE-zKg|6p+m9{-QuqNLd2565THBPUPB zdRi5q5;x%fTGF{Z=%TZM(Z zHx1Dvby>XQ$jyS63O)@EKf%m>2Z6n3^KXt{&%i*vp_@5_9G2vOsBO5W*&BV!Q;WNe zIo6HXhN~R&H1k?Dj>~80ks7DNS$;s@^Rpv;sM=)6jizr*X+(|j-in(LrME<0L_f}$5q0ay9rPgL{w2)>O^)_27(#a-00zV(ogPcvyn%|ieRToKq zwFs zZU>#4KJGbZ+Vkp3{xh93te~JB`3!l(GUac)MtBX8N)zzMYLH_RD>yUHr_wI{+><&K z){0N@HRdsn4cdP=t_fGVJnA|AyD6@0^Ooy~`PsN7BkAcJ7XI?U+=J8xQZezhgAn}; zS?dMyTn+q1eP$RtA-)Cj#S2g-2ae$0;AaEc8gL|=A*%ABC&21`r$(2$Inhs2Ll)JS zAOfqRXM5p{^5C7$=Ur#JO}=0ws$fK;vtjqj+A_P)g!lL=Xd3{!$wxJ-fTcPKK0V^5 zIYAoTnmw3YQS;6qJV-O8^qt$8=*28m8INCQQnXm2?|8ZEcG({+tTp_^uyLd=wMk+U z{F?>dt&3_)e$9Txy>;8>4dX9 z>7Q`4EJf;(4`o$2&8VmN2Cp~z7sO|NsJT2Kob-VIy2B2G=85Xh75qE2LRggMA;fm( zG<|873nlgOl>2x05zTB%rf25o&VS5syw(`Ka-{Z&shlm)AlAJ|!GU$YN9Uq~P>AdHrt6u%DjD5p81DJ5`cw97&_&bgd1W)9ij4zrUd^@EnF|e| zT>wB2N6I0JmWIEjL&^HjE8JF_U1xpws$BX5X7{Q)2W%S_4mL&D+K<%gX}Q9j8xy{c zu+N_yZA>|5J)c#@vOl>KM!Wx)t-fZ3F62P@$#{X%Ms-PE$vyOmtd>%)t5P=O?CN61 zzMMQa@vZT8;K`?=kymB!9n~_BeemNG?5|I_NYg`ttT8eRDED4sG}1lZBfJUF$a4yH zEgt5hHso2S3Dp#;$_h=eHc~ULvu_r4Nsha3q{P0&ZQ`)U{%4X{7bY4iay%Cu%{(=N zG?C5;3#!iyXD4>z=Yv?aMtcksrd!CBQNfi*W)a#}<7MT){oZH$DBsCF_bEf6P36R8 z(}#B44=%N~?N$4&epl<8~J;2EhGe>4Fd#jtGZG2Klz!zY-eQ3IEZ_8?Q=%h0^$RnCd?}%KzvDI7p4Xey zMi5Ge7DT83>%eZxh{AbWQcsBi(Ieo9s%2iNJ+5nl#!13rE6dBawmcI-X>-BxH! zGaPt0#6x(zdVKEiAw3i3VL3o}ci`^KWLrS8WNgga7hN(y`zId}V2{Hqq^)05H)kfb z>VIoKY-bogT5O^18asft&=&%$jSMY9`y<5cK2F>VeT5zN&7+o{0f)iRr7xS4(9}5+`-z)3V9Q2jDBk_LHY@>VB z(aBWQARhD!xKYCx$zA?Pdk8D@G}X=ZkwbKdd5~esq(%J>(Kkr9eX;)ZbS<(tjoq`i zXxL;36dIuS0EMSEke~=e%u-H({RUs~apM?4i5U3n+AXO(m=Az$HkiF^sC|-lXNmXi zIe8V~ryt*2&3kVI(7c$lcuo-X-vECW0G`2}VWeRtHPJZJm6VxyPNA#T>8Tde!5kC+)#qew5$SpOJ5ObNL8nuqwA3&J(ls>TKbaTb{qM&%HMxf4$pu#HTldd zrOkR+XL#NEz;(W|4F`CZWA&BMZKhEFb>NDW`Mb(b1n?omI`%_)VzA=A4o6+geY$;$ z$2?h6vpnBeXh?ilEVE%(xi&F-37UtOKy0_-51%t8Lpr6sdM=L^9Cuo=ZcLb9vAlHW z<%iU-c_houfLNU1E*g0KnEkCcL>}Hvnng~K$lQhQK&+_e>Nac$u>Hy}%F~4oPEvYC zP&y!6wLqy4g%wV%a)~}CjWdT&o>4!>lXp0SZz{pdL8XP|IZ4u1__88>oADH@iRxxb zgLNVz^@o8;du4TZpTEO04htD8(>1&uBt0N1=J3!ybnpY-gxr?So+V=S?V)B~@q zN_;{JH9_=O44S22=``X`mRx0?oZ-mrT za}={KYnQrx4z2qWUzZBBQkYyTG<*6P>P4{g`GE>3Rsjj6wv<#nDMlok)}&fAjcQ(S zI~VPhq5vnV`==WmI{R|qNn27k9tRN*U@G`Rxpht6(~nfujL|&;-p%#q-(2JMsLf@# zpISIQr6H1BI3ph8a+rvF4okob;Qai+Q&N}&7*4QEfwk%c$N@ySgAnx`!v16XKAN2^*2zp<3KzV~Wxsl^R+9rf=sjt4{CUl&?OVnMhY0@(mTVRv%7rkwE3gCR19P(IfEDL~OI4#?y2Ly(t7n`KFW z@qCq}uR;WAL^dfY`ec|k{{8#(x1xp-ssZyG#D^k4r z8`RTu8zq4>{&upyaYWaf@AvPnwYkfEPFE*4ISaoWIM#k*2X;s$K}+~;d5Ossgk%Ss zo$SU`t+e3}JJZF!xs#!tm2or6xEQ2Tu?xEAQ%mF0;LAfvA4?ST3{_nxPpX=uyy*c{ zkQ}m)fsG!D)K8_fGV*mD2tx_E>?7~$0)!FX=GA}<23{d&dbPGOWric7Y%#P(f5bpt zgEjSMaVv^zyqwOun5;(Joj}QvRpY(yHaNYi6DXS`8%O%Ra)0mxqG7ba;_mPcQMuC3 zHEd}KmHh)H9p);;_&LEJi)=8#Q9;sq{bsuQH^=$Qx`tT<~9JvVpT#L0W z+;_}^46AiOA&5{St^>_aw;>^O{nLr&TBCL!QTl%2U+jHSC5{#xPG4}~A`JlsLqnbzTs1RdLES*N!O(Xt6aQhU-rGn( zsn8EMMfNyJcBN-#1s-&fe{tpoVv0~nN(p!9z_LX#5A#yv3CWP2&m2j*hm=E_q{7z& zl@&g6R>_vv=T*Mrd2L&w9@#Ey!`1?YY#Tk z>MA{cU0)GEe!WqAdgpzq0&Euw;6-=fXDN9j`rOmgs449kue_ze!2AC4BP`Cg99gu- zEGfsIz2aCFS(hi`+bgMNxJ5U9!Br2p70G}Z0u3hf%>UQz-HHdk0 zVX1~Yckn`E5$CEQAh>~oN*{uO~vLMdV#hrRN1emoq#Q$M%w0eJ9e?qKGy4!8}S zo76q0Ds!`To!8k9pFDtj#7NonK9Ke8ycKZc&gJP1zHr=z?UE%(a}EI{4eSU|#~7#P zEDjxAo5)W7K9L=R3FDZy5qTncQTvl)`L{149JiXd>_TJ`a4&EqgMQZs9R!C>x!Xiv z-kF!$`mVDt(nibcrk<@}opncnW*53ch|1jPF8j2y12l`|(qj zrz@kozt}=5moZGfc}5x_-fvnoWKPUb5=IfU4!2Wd!HkPGG`sdP`=MgzZrhFZV^6To zCB{w~sDRt4Ykm?El~0xi4)OD3jpaptPFS7o4G3X4?k@;+6V=7V?K)?+8v@!pYpsot z@w@+ZGVtFf1pimB|2lS#z{NN>+Yx!7)0w7JrA5DnswQd+u|=#Ebq}WWN3yxoCI3@j z&kyIGlb%_QaCh}I&fh~b7b!BNhHfytqraw4&QOf-tIEx~^S3-yU;jjfc;B}< z)ib~;+X!)ued9<_m}tkv_%qFChU)w0H$8s%b-(BuD|SU%+wVFTF-^c|oe-=I&yS&e zBTuHHZ^O0LO&Gbhms77bYFxcA`Wq(HcE51mcX;jsT2<;^`ws8vV+85Gjv1UM;6R4d zfc}pxacEaDhKqu2_b+rz@sTw`&JBhufaEz-^ao(1No%_Z?{ZvL8J&XW( zg0Cu$)%7M{Y!}5J*o7-DY?-C<<6T9~&qY)O4San1&@c7(A}2me3)xc{i)t0bGe^<2 zVx1VO!pqMQ6X}b1VFS;_R1W8bPWRjhh`G$2$qlLVW~G^@=cD@RT4zBSpZo)w`_pxXkQ)yNRS5P%Rx!bnySu2qe79r=#+pTzNk#KOx; z@3)R0zK^VJJYz2rDyp0=%V2U9fO?cy`0Pb80Sg@Ir>sX0ll*T;O zumgmKPG*$?S0z4;`B(TKPcre~vK2acM%l}L_Qb8P8Yh>$7tkbw%1D@CGlZrIhS=Zg z%RBZKyC5ycoR}l0Z*-41&Gwv9W%EwIdMDdFi`JJH`{f2^2ueK;%5@h(=`N2n*@foB z`3xG+&la!k=Z&8$w>Jwbs>}6kh>^;1|5mVx7{48|#HN4#q9N+ZD}%AptjV?!J4K@r zvw54k^de9HjLp$6f3BZRI!!2XKec$MC?f39Jj`Pk`j@zcW{;YL9YXt?119%Un!lef zaTZ_QvKJdNUoiMaHqM1zt@`@&UY6%Ir|zVf&ggw@oc;b856Dj4bce<(i4l!J{a3kzi@v=-PO&K+e6$gK5$XtL* zGWk&x^_ibdV(4Kde9k5l`Slq@*@Ko3DBE#kO@-Ai@E~!tqT|4w5ZM^4gZN~LeY7~k zZ>nwQLFsAjZKsPs_h4czc(mv0NVHBJq-rJY2X5MI-eEIB-#E9J+{ENIqv?PI1~j<7 zKxCLF%qmvTu4$EJC#OZc(QMILd+^rHBuV19&%#-{W4GD;o>8!}=7??K2b|pKxovLCRp6Zl@7E%l^-+Tizl&cu<2CYsc3EAx~BUq*E>0 zUOS%9qGVk&8r*VuXSy7e={!?bbAR|468>Cs^rx_z6Dvx~uWGD2<#hPpQ$7`MAWFs$+zw41-SZicmFk_{*@R}I>uvx(OEs!| zK!*yHk}`?&O+<^V`-R>8oEcq_A)mNc{4(-_%b%b8eastY&RAvzCZ*Ox2?Wb{m>80k zq}`egefm2GDEv^NZj;y^Vj|YiRcoJWS4YQa{BS z#5EV2o5($#dZshAk4onj`sI@I2V%k#8~bKwuE63BzGB^acH6|M#O!W&6yoY9Ax zQ0v0nobZu{R<3C#Cc^F_r^kwn&2<9pn*qqL)n<HFMXzp+?aT#Hgga{atL^W`xubG)CFt@ zClKFU5s!8e#qDCx{yZ}*o_9JIYCIFrwBl4C0S$gu`Q^R~va$_@$MZCYgUG7w6o^Iu zGLomYUJa!$vFaqZx#3gv)P7Pj0xKT^+3CF#sp&BVeHZu}w|Nt6o*YIhR*~6(I`s{E zWGz$&m)sn%xZZLK-%;Xyp$SZoP3OJ-dfm-p*3-+~E(;dW|9mu4sek2iI{!u=chTBa z%XyoRHZCQ&kDng>bUQ01`LX2pOoi4{myr5(`%Ks1hA-biKAVN9&3HjOfo>Dj1l<&e zdYU`+;kIpfI4aVwWLtD$;)KZ+-|v??BgT6--TX*3i-7Y|#DVgW3Jst+;F%*@Zigl` z8=Y@_YgY2FHu0u}>H8tJxX(L|cWcEaEJq%3*;eM@11g!Ec5RUx<>E&VU(OJE% z`p?ln3jF+zC{J=&j@hg(COc$=rf3N$9K{a9G*SJJfcA8dDD7$wDixO*fYLzmFD{ph4{ERf%_-q{n%MGH=0jDW{70r#Yef*#dq(*P4a8%UPL(L zwXTm-5RWu`4X58#%8Q`WewODk*wJmWX!!O~)C{aVIZ=~T`m}xf@(smj1;2d&3cF$`rKCS=Q##6R^G-@ z(ZB4|n+E!4)!Zw81Fh*T_WvUF2l;38-viJG^#N&fr;c1pJ4fnI}KyiU;OoF0cHUn;r~ccEZ@|Ff%z!&Mvi9IMmuzf88#^nCJBOFDVy}k0sCD zr5WhkUTZ`id{|A`tw_UD+`$4gA~F{N*_fLec`|Aj&!zHsIzK{%Fzui@X=^roF-;&C-geo(&M9OnqdCC6{yQ~YfG{OxXM zJ1)&1d7fprm$f;IIy`=NUyaG_@qvD35=wX>co!Hn(UYX~PA92Vu7l!BW`;o=FY~on zD#i&VEG6Q4N@-;N4bTB#528LNy|bJS@4;%5Lg^=hTC+nI8byh&7R0vuMW$ySf3-q( zKK0V`+=jvF7C>)LiMTy=mMNat@hE3{cE)#Ng7PS-_Y-#1S7VMVSF^PlwAS&HR+w>!tMO13x^}jUV<0`xBdv1}Fn_`nk zm#E086JO{`zb`JTweru#Y*Q?$@wD^I;r;EH-_GTR9YF|mhgb%mMzr9xrC-h{<<3Rp z+kes}s-$Gkf8CA(V_@O%a3&YNh}nsg+A3ezniwqbW1OiiVIP@m=@e@9GJUmq@({bj zgDs2La|H?=+h<>1ggAE4&eMe<2TV35WuosPMQ1`OzEySyoCF)^Kix;RqtNG&Oz)vL zbCVqy5I@s}K1>q%H#9wI02DI{h9}VNYN+gYF9P1X^ebNb;;rKUOMj`Bkw@`f<`uqQ zAiI(U^#miBQ&fOu;%(#TgmGgy69eBR2gi5651tEibJ&jz<;1!*HHG23U^dh}P_-(B zOf__1YQ)-L(sxl(6V37(ZZm#Ym4_oLeg*Yv&v-<)?G!%mKh`fED5K5ZmcI2H@`d_> z$iJCfwyH1w4GVNB?Qq@=qq>@W^PekfZt0H~83r9u5>mF>w&Tv~GkUOLdtadH&s~11 z;^8Kur7&t5asVrhfVKxx|6wtW{2Jlj(J>SvU7lNfzSqthJui}QUZkou#>RuGp)|}q ziTZ*8;mpiZhZd9#ch^#kYI2R_;$YQZGUxOB+TLC}>nBtDXm<|Tq_AT$*Xp$m3J>k}V0UtSBO)mxc%0FH)1 za16W{`HQ2dqx4`Z;Md`zx{VMe0xFTJ{<35K^r&YJ0!ClMSc4TfIr`5Z#3nFm{$X(s zh{uVBKw{CNXfX5Nk&mD)KKI$BCHu5=Iy}?Ke;%ZM^L67C%Do&H?*BbTWJvl*8Oj(~ zHyf-fa~diJ^-h+B0mTac(Z!*d-A%6XAg{)Jz%8RUq2PJaMRHRN5NhG zLVj+Xj7UvA`S#o8@ZWkSmZPe=sq;^3m0c>uJMVP9zeI>iN#6^7g7d~i?rU!>d(w1$ zoy^O7qV9~?w{1qUWS;32l`)oO>pc~krB4oOy6~e8>H{FYJdAfto^>2sb3{wacwoSk#w2lfUP%$l-|lTQJo$F@6y_JBk^8ZX>`hlybS-CbO+Th$Y!5SkIn7;xbI zLW1)!b--byuL0hZ_p9G>{%(QI> zgjN5T%T2etGfFUt<_skEWbC!n2(j(>hQlUsguoA52jHIl-ZL1 z56d_9pb5>G?qy+Xm*wbxlUn|Fyn>(izausDhr&MGgf57gt3s!r9aPL{4H>gGGX1x3 z?LYH+^uOg6{C@6;+@z-S6m#k7QNwjX!X)g{f9C!EGu{gl1tSG=wEe@92$h1~VyLxY z4k6V_5lwc9-I8|0)x-CSagC0$3E$7XlL~&wS@c*Xi8lfCN~x;+9jS2;Q8Xa~h?Zle z>8HQd@e8i+NBR&a%||vpo0~9w6ZbsPiku>a@ah8fnP$Zo-yGI8MeaUqcvgmTqFf~4(S1E75|!AS)x^f#RS<(AXMR3qD$Xf+W7j?Bqt$}#hxHo`Sk$sFbbSKYtfcV^vn`cS*o zC32gk3#~d+2(1I!qDz!t)H*Qp0Odg%kUa>o-Ha=UNH0?Jsb5wjn%>@Nx4tRTKX~O{ zVudH?tGk;Ie{}dQVg$5ptLaaulg^B0s6X(=4jYp+M??;xI6+r{gfpB_y|>%sN0V6C z`Kq8>{AnyC#E~-9^Kj&Z^Pi`OoF6zG^M`t(=5XMH`{JfRe8sH}@;!DVMh*%xNcQN^ zmnH2Z0(xX5MkfcxhL2A#FE|;C^e-N3XuaXid%gH>|0igHq9UX68IVbxAi*|iv=G!3 zv{o$=DL|8Fe%(*)z_B^I6=GG%9G!6K%@-Rk0VyNrd<@cW=(inB8Tg^suFxU0Q%o0` zbY$e|g8ZJn22e40)0BT!Q(ts{=6|XdqGT>}l?^&0N-2Ne@;m>F!OX8|t^x~vvN#*T z;dcov6Cw`14V6Ix#~AsJF3)HQ9`tJG=cntFCfY2Air_$$exVtrG5BP&6y zJFg!Wb3eI*GGtEum6`f0^vNDV^@h_pQA2p(mXq}*rV#Ha-w;imsI%4KJm&f%BX=6r zjk|6@ha{_|GED4tCS;q__oJBHhBP(Ao&|NB#!bCQ$c(N_4)4J5BE5^9@ve?H%|k@r z6gy%wB`w2Fa@ugx8@W_zw#)kI4E|xWnTG}*e?T@L8HE&Oe1HP2Qw9DQ=)dG%qWn=O z9nrTTJk;6teY8$e{qcsPt`CYeSNGf(MY7yDnYL2umahOqhFTo74yc-NQY|T_)CiJC z7wA6di}1Nm+L1HkkuX07Mrqb57k+Q)`L!>t)t;O;vkhbxg?+$X?RRaG&4PI#X~6Xc zOoy5?@}Y!m=0(!iw0QV?>Zvb?Vxt#NX}bF-B;u0DwJq|fk&oAGf- zA-{w0tQEIa)0N%c4PObuw$wemt7HBkCFEPprby5Zo7jzLU*8I z$T<}AaeWCY%#O@g8N)oinjKTFmE);5_fRxG@SYQKInVgW6vKz9b$MZSoUnf_S5(Xqiq#j-rX2!n% zknHTJoVo%r0o&#&a~@WQ?*>NuA|n~?Ep6K>12H!MY+-R&*`GsjUy-=h3lk`~Tv;vJmXk@nPdx)!H~MWO*2~X zEM1-20>&mS$?_Xy(&&vBeZ$S_`D=%uLawvO(ojue+j3pa>p1$yz{3xpjby;4Fw-7P z?jZ76VrVBo79$VBrUCOyM+EmqBIj>CTchm$tE0yvg_gIW-loJjHqL^_8Z4DF`$`Vh zP7@-j%N$Fw(Wv97HXO+wu!`X7!PvlK$-jkncBE0wXyLbzc@7I#x9uz06APSjajjNm ze6O18yzZRRO!YYW8N^%%sEL$mMkS6=k3R4>ZigWG$tE4Rm~8#@vekXtyY?Cx4fV`{ zF_Rfh?HfBAg`aXgQxxtf-j|(iI-axtH9yt&`_cDwaYhYO5o|UykZ^3z-UiCsG5Qh{ zSWP6y>b*}J;JKWGJ)1Z-NUxaAo^7j{aelVD% z$e8-Z=E9=1-E(vEfN)ISRpzUFb zD;h?8o%_Khr&=4-&4e$QD00Q;pI27@<Wg_1WL+0TWkGF43D!HyUePn+4J)4kxL%Y&{0p}adVYh)zrUTGe_!g@Kb>C8topy zNk7ZTL8@0Eji|-MCV_W;*i&GtEim}p>am76H#egIPu4L0Ala(=lL|=(O$PFD=K;|J zKorFTomvd*ZK^Zr7e$#m`hH!k%fH#6(#1y`>Ng(nQ-=2^C}aSAE7ZXT!<7a57WIMj1qTPj1#%7+aiC z`VNhTlI#Lza~5Me_zxq`!={FM#0oBrs+`+~O1^drm_BCOu)*wvH`TBBFQsH@GE`o= z++IDyalW#=HBe6yah_0pKEy^HUVf*cVW)2DPnnmY4I(qXz^<(}BVMn?no1@^+c6?& zLMfVLjuu2XcjvNUsn*0z8+$m^WMZJ*bSrpu#P8w5?1>ozk?#5E=G2$!vga#@hNe3x z%V6VXB1NeZMa-^`sIQMGc}sZyX_Gu(ow4dc(afXjYA@iL{eKS4r_CQsUVU)lrP{(Z zW(S zskrmRY_R~=gfe`J(vq~dg52g&nKu_i(xWp;b;{6>wODq!J$66D1*9JO3$G{ z3MYv@yk50B^A#6Sf^K)^wbjakCkk8Xb~gB&Ofasyl*W~L=(<3+(*7e>NNCHIL;TlX z@N$SO10c3$IIN+STTA5lb(;oakhUX$L1G$OWBC+) z7dE3!1j>)_rEO_nt^L{c`bS>`rYysb1o6E`ylbnM@4dCMeOyWw(gYi`q{{WQ!)Avl z;iREt)Iq=;*h`LyUL3TNkJPmc3T_bFkIDF9Wxo-Yswf_LrB6;S_LT>(jb=~BOeXzE zO%Loq2oFXQ-KK)`;TNLIIrq?x6a<2=-6#BP!~dS?6kE1y6Gk-qP#PH_7juWV@utaj&Jg1aN;lvd25 z=%t4-abglQbrFUvx-Fuv-1ai~6sAZAAORby@}|?nV5hh~Na{U2+=9dJG@GZz`At{` zj${IvzPK2>2|`}BNd~x|HzZNO+hT$#zkZqLrIlxOQ%Ya!?0j2p+GXnbpB)M);}ckI z##^+XT7rxKczfOJl*v9d0_^O!^dK)M|ofd$(9!W0@mHIsYi2Te%r^< zg$)7Gon2~dW`iyLIQ94vL#j2+xlQ&}MKCGz$eQ4ZsOt2uOw%vg&u-lhWE`PCV0G{A-a&%qBdRFY_Yg=C=qiM?9m)) z2NN=-G~Zb@v5b)|02kI8EjfKs2uUmU4@zQD??R2B+gQ-P<%X0eU|qv}WO&J8!DP$! z^?2m*4+a`9vjlq%^#{X$sm>ZF$YPe__dQt298BQXmS9vRhZw9F(yE&AgbpF79YI)F z#yOQPxFFv7z290IyDplylw=s{|4xAOX=>)h#Gr5NY{YDiZ?q;tZYFt~$pvBqc57-7 zO|*+F>k6v*p-WnC5W%znAs0pk?P^O+iZNpjP~Cny0y*t&a?|4H-WBmlMqaQbfZ4X0 zqY0INY40P^$Q#tyGAhR+x`U6q-zwJNTLrcwlqj)vtSz7+UV^%np??2Dqyy4{q zu|@U5K;3Cpts7TAm`N8lVRGLlmJ8XE9b%N_Mw{gqalBl{Iq&2;&4tryt_i8s`*wG% z2!1^}NNXI9z*9!S{k%}!7?QQ6G`}R@qX0g-H3?xBNL1s(cZimFSz#0}cDhba^|fiU zrQg5&IYluny(2S^e5evU@g%T`Z}BHAa8W^Hjjf36)q*ZI`Ow9YKo=tN*=vthp6l+- zaBRk((px)VC4M&MKKbLuF$#`!1AT-Vbq(CP64g0lkrf^Y_X{suTMy*5`DmhWsQjhNB>k|}#a~JB`rx^WHY-A1 z=Z8+Xx=G`i5%9(<2%c_;7?ki9SH1lhC4s0wv-|0cZ`JStY6LNiW@3$_fUfm+Vj%0= zh12Ez(2_o82%3Ex5t(h+W1pO7`3x;CW5fU4FZwJJqc?agSc7ejY$kP#W0jw(W$QY!3utL#yKwAk z&+pOg2pGvV`fiO046n|Jb4x^rqO`%JWCYfBDWK1XXVw(8w zHr22$QSZf@l5=|#X->|w4Dak4@g}9*{`Q%QQ`Sz9b95s{=3j$IRRJRcq#Q~D`P3(3 z>fzNLUyZw>XQ<)U&Y})u8T_>dL9aXoHJdY-jmdWY6C>;u0fTcKpW9sIRaVU(kQMwjS#k9E{wM30e3-}L_oAINro z_aK&?3LtAhi#;8yhiIi+U`Mv-O2k#|u+MwZTSX(9Tzd~t!*W>Bphnq4=@M;5EChEf zvpw5-HOaxAN7{j3^^xE*%IWCTYdOW?sLvR_H#98JqPp3s<^RTWcU}%@UVz@WY2B78U}F4mXzL z{i^AGpbd51-#5OqNOIJF_Muzi9b>Tr#<8UQXZs5IjTRjct5Ic5KZ)QL3(hULx8c#M zzP#b#819d`oU)OeUC6p3R2#HfCZ2elI4`@X_7wh`J@CZ!Y|U2+gzx7(`r6Ovjj_U9 zlcLP;1y^LBUmJUIqi~#d@#ydSFF!cvo}T^EHBr7`et2tQ8s+t5{6=^Q3pW#qCL}?t znr2WvZgSMyG+(+#Tod(kIL#c|`8oK3fRy9SEAsL3wheL;p{hCpuwjdDEW#ek?Yot> z?46ob)N8M%_#N%8n$7j8qy5>IEawe7VV{;wx+b=%k{%$Y?B$+ zFYqZ}&#Vb+MWz8>Qc}4<;;Z$&vhZ&l7tM|BUPrjql-g&%q2ag9Z@$y*P_py=5WL*$ zKS3+6OZ^c*$ZX@ES*NT4c4StX1Ja%9@|R{q8mUsxRk*5+ksGKK-HW#ue0KhniM_}7 z!n^TRo}d3=F_b0X+mDmwnPT$v6Eh}sxdqGVe^~07T^y9u7Y*K-l$P9wgE-assUB&i zksf)-8;PFX@|v$FN|RsSdnqfvQ`m&u`;=jqX4_#<`b%qTw*DU$6_FH&ZW(S;YA63; zR|K>t+b*}E5GJ1)JW>PMA|-xy0r$4pS&Px?6c7SF8N|&Si5o75;1QL|@J? zi|ifEO<&~a@{tj(C!LCa=XCRDeMZ0MAq*RrblJl%xlXOm-V2l&=vzI8^K`4bNi9OB zhA5^anYsv~+9Bjw5;ilU#89(tU}DC+FyN#Z&qtqlN8I?AW}S$MqXICCl>5Gi%@q+d zRpyt?VG)-R*KF#DwX^0atc!acYOzo*-3yQ?l*muXfS6#!n>WhAO^)|A(_b&YGCY`n zu&1O)bIDDU5s&l0$IB?b=y8KmVT%#o_Aj?Gwtii$&Aw?_mPD3bVQfr}A^zO2g>Quw zn@Bkc20fh#s1dm?eY(ro+TK;!+xL-uPQGuI&%R2n{lkp+)dp;wfSA+z@rMK!D-MG4T{iLd!E*2;ps5oh{9j0n(f^G7d(g{&!@4;1A3-g}q&$^KAU$O)Z0DEQZw6J{ zd{F4-7dINl^J&OPV$Jfly$=iEZv4;scaZC|J$z`c{Pe#rZx8dk{=;$uRCmLNVxZrh zK>)EnqsCxyi1NezpLJJO%KZ3}`xNp&_5auO=0}LR>c;%L%7R9-r&2eaw@hdLip+GKn1&Fq|MhNe+f<)jcC^vso1yy!B zXm0)dZ(grg<|ng!hc2o>cXQ20Hhl%83(t4e(cacEN-d);nnAT zg>Q!qnS$V}U1|cT&|g4g3kc5s`D(QhGx4IuyXN~N9;r65V{ zm<<{r!3yYr2~oq%VmBl$TFN^fetuJ4XtvxcXK?qYlP0TFbng;-Hg*Rj5bo%<^L1)d z9;P7Dc0N(IOHjg)Pqo!tyX5W!<@8fVEcI|#8rbE(j zB-2zNF21tCM+)k}@#~*i)6p*oCt{@T%ABl?ko5f#ucBJMc{}9-UsuZ~!6?={iXWH6 zJ!ac+gj!HaK!9MrNMGPvvo|SW+w7aZJOUnFrahCFp=36w-m3<`PazE+Q&-ox)UMU0 z`s$#0KMeoH#oLQdKb!ZYY`)9>IaGqp zf(Q7Vs4}Xb`r=Nri8^b(XnK~@>M z1lwd^RIxOIaxztWL<{$?nce^V23w!>@f_B2nmP2n_J!Ng_&xV4e^5>!FahB7b~K2w zZv{kQbpc&sto873sUczNtQA?V;OEGY@>SoE061^p7k`z_FE7QVj@xC5cgWz&&)KfH zFB`xf<7>U?LOhgDR5%FFNC>ir$_4JWlj;q<49T%dm$@cWhsd zsowrF8**~Et4ide_MaEeq9-)tsvpsClnKUDlnQDX-ypWJOf#d3Sr2cXQ+q15x98N- zvRhL$*BcBUa37RyNYj$-z4s?o{HTW>?&i-Alq8otSQ?CE88BrC9)1qZnmK}(LY=s) zqqmhw&g>HKd!(#$ucn#gT-2SX+TWGEAbeG8{#d8^iSIIxynojxJncrYqQ)?!YtR`` zsI8N!q}>O(j|x-PiLOP)B^*MU|XRGMTnV>ATJa;A<&oWQ@(chiEnOhE?PbB622xNYjl*|j)esfH!Y*1(6`kRQGZ8* z+Yx|;o<01%FCSqryiFb9ztDHVn>p%S8-C&@QHyxsu*&T73;rhklaO*@d*3O*a(?>% z4JM%j|BU}ngiT@pF`lZtKm~|~Gio%RnSWR|#($32GKJ-;tc^sH|7&>mZ(-X1?DaoY zqV9in0PTPOz14yL53B*lKNJ5md;9+xL%V|rSy9~o_^`^>5#4}NXC)=x$ioB!ne>?{ zA05%m(~YCbZ|fguWh7`CrdqHpC9I}@I`a9oLpNILE`*oKkEkT-zwo21SMvXyoO!7= zCI2;TWd4UE=?u#KZ6FLd-;ZJ&@{16vLPOgtG~lZ&CGyAVniKgRt!?l)OO3_wseO4v zbi87GLASp3m&lD1iaJDHWY50r7b7OBna`J3&qfqqeeM0A%uo0^L|#w0`MJWP2a9`xh;n(g zM*KRaTC7#=uXrXEN5n}|nH&GO5CAVebev+T7W%4s)0>0)#K7$W z$G!9tx-BT`1~HPGkIU2qd{~oAyz8X(f3Wx7K~08l+9-&CfJl)dH6kd|rHM+3ihziS zSg1l&ItWOUppYm?FA)$B5Ks^iDUptVgx-=jQo5B>cr;R@y_7156aXlmN8)y|;bz!So4F6IWbDR^S z-Rtm~lAxt(*S0H@{cb|rlV*<8I?wn39kqp;U=_bQ6B_I&ofTxQX#PbvN(50N_CxAz zWRn|fyUZc>?HF=!mqJLv9f=990c^ecSUaDHQOD&79Lp`3Orw?AS z-1>ZBFyN>q5VCE|C&$nr&Mh+R26YafslrB$y-o6-#`CZ>JA z&tsui1qfTsDv%^q_BP`)AaHF(+oTk0iEhR(t@oP9*b3QYMHMsHy)2(}wk2^e z!#7Xx;R@Uc?c_bPLh)pLdRIRT@w+D*6|a)_YR+BDp?SO2#{*MM`aW*3M5dspv^IUeqq9LX{FpuGQvmwGSkMn( zQ=OFW6Cho-FjdoH0pr)e3AqhUx!c?+e`iSvJy5dbE%mA>c)`W)y^4Bh&(K{3b5Yg7 zvjc+zQ{I$GDl_e_+wL|UHkz+BZEPO$e&M1gR;iVr+4bv%8-`lar`W^7+JSsl$3hLF z*?Y?JCUqPqrWxBC%P{Kv{bHoD_wxMq_O19#p9IAv4e^6zw`HG=U~1s^Ri@!U^>`2D zG^>BF<4ZbQz2gh-;$|Mz#hFsli(j-9@C(Mi-PU4@IB{<|vGyQF76b4}$T;|i%3H$&Cpnj{aMDMe6n!1bdbAev_JnI{Z7;a)LE4fW?& zPR`e-6jd2^%n{@hy}G6)UVi#^(6YVp(4YneQ2UyF=;s@SYfLoBJkJ`(g3C_cPI5+S zon{wt*e9g>)$HbN++s?jYVRPOCs*fEjTiU3`E)?&P19VYUmFWuTrBB)qUN3NOR`b+&zyHn~*eO z*nW)EShm__k?Ynb=mWY6p`ce%0E=84rRk32hR#9*yl%g7(WoQtY74EoYvBf8wtFaB z&l-wtQ%X86Ah!!54;I;Tb4y&` z8b_PdgKRIW=jsi&qev|pBZjY6Hi2o{o&50shx+{QeDj(PS9qb8-Tv<{riYKWeizU^ z=7UxLFddr*gUNmf{bOH)*uNbc({-?V-~|xnSF8Vk$^BmelKIR&R}O_&3+6E5Wa)~%s-bj6vI(5S#QbA}VDwl<~gU`}E!B}@- zLy0B_3j1GG!J~H@bsI)XCpsGCK96r0=E#&EA%0i9?fmmzEYE;cAkSk4bMEVp)g014 zcP}trHcGjnN#^|?6kPW1H9gVM2E`1SN4+vQFJaC>i4M4I&vqH#H{1+*+~JMbXwJg|E+N#XV70o=NqaBQ$AlYH@$r zh%f;pz}QhEa8^*#gyDro|1iPm_wtd|gf+LY`~J#Go#D2}S(*Gae}~aR#)h>t(dlV za-NQl>fJI$_tPXT{;#$QtME@X8~J1|%KcGDcAiT4d95BHN`1d#TP7Nu)a6j~s_b@V ze}p1jCwx|SeTOYZx8l$(6x!(T@IX*ce*0U#H{-uWHOy>Tm<*liOCv70&K}xQ>E3QA zKGf)pp2B8BCjn`(O1Sy2rA`~X61Ty=WG8Ei7Cn{OCMh{#-q^0&bUd!>e*9;b`&4Za z>l~h{hB6wLf#g)AJX{XvjGIIgilCtt(0tW&vjS>b$D`Bn4!Lf>FP<9NnY_bmZPLl7 z$kO%p(On^D#XiHCoa%xNH`;kXD+Dn(a8ClolzbvH7rD?<&F^M<=u@$$OC|bDoM6no zoSkTa!mGTX3@;RS(=~5Kdp7t3y_@k4?F35kmKMSx@!%U&Z$hn(I@zrG^ib8W2H#l; zcJn&dmu9cZ!tG{Sl9^{Q%QZ}Vcw?F{;5b#Wcfj`}e^S1Yg(HYMT8j$bMoTm>+?@)# zV|`akXy4PBZu^ODO3f_y6#FFCqQ-`p+->$-yfBHJf z5;lPzgA?q3;xT(dJAasdQ({4)LvV5W-`deWuZy-i_{N+p^=*my|7rC3zvaCZI&iM= zxW|DYXpLxti&S~YX^MIC*f8>mZ|`D`&K6Z!*GhOCv^bH)d86d^w5lb_SYpcF8X*>4 z5Z2O};peVuH}lA(dZl~_G0;he14BMb#^HX;KTIq~fkg1hKTMIJb{3GCbAvvDvF-?? z8=wHv<4cP`|Bwp-1e$MVKL)7D82&#@KW?kgIRU;ofj+-u`I8JZEC445V985A!ADaU zoEihi|6u~5M%<5VcN|p&ERlRhbVGZQKTL1(cR@5dk>`Id^gnI%Uo?&uvEjJI1_W1w z*^;Mr>vby2t>`L1&%E6~yI(G)g(dzAo5$|Q#)8N*IHmrV`DwRrnpf?(Pt5q&!&0fy zcpg5|>(!e};tIKIvb}-AC|d;H+XKX^6;{pq|Iy1G&!55nA|&`XR2}t?dfWpiR;_E` zzLoF)>Fenk-9W}oNOMaM6o4dpn}HO(D{hC`p8MY{FwHJ2KCK1zpcTdc)kgI1{`haDA>*C=H~apx8%`q-E)9M8hp9Uz7?3MJnL%R- zjRb5Yd@&!seLsgEw{aLG1|6_j0EO-eEaBE?ff`CGDiSYDPf15G(0RbvazqJjV4N^besNh#9ucLyc{)228DU zV1GPU@P|nz_$(0o8DoUQe`L79U*hP#n1AtBDZ3H^=#L_RhXRNcP14W>uyqE;!hg6R zz)9m4*n}~W@c(xUoBxX|HWG3%zw|*vy|F=4_oKVuOUh&y#=&*aCTltLMA8af+ma#x zwt2UA(2YM#4Md;Ie& zB7B?-lwfP9f7uhb-=YAn{9}3o4ZujvN{bob4}c)vVy=zZQ%KN_*EK`uhHFxON#i5- z#226UqIEK$K7~C&Fo{6-^_cA}(4PKb(!j2N#3_=Jp36B;eK}`-MLyS9iJw|+^hKOcSpE$C1GW!!YMSC{(vP&m zpAyde@^E%`c>2bxTkol*=RK_J(3jrP>{#;lEVF0|Bu-yzHKw$s} z2AE;6UC;;A=tB9S!nd<#o*qTi^!Kh~G2RI#Sx28PI_Rh#(W{(?dFXPiz`cLuHu^K( z!QB_0A<6@vza^tP7@itkrL&!GUNKH}p94DZ2USD+gr)r+79}RBDIDm`)zFL0#p(Q& zY?o&TlmHXtv`R!a-zZii1oh*vn?vzTNaE)C72Z!S(XSG2Yq3ecStLxO-EcDsKy?1a zjn4g#SeaaX1Os(yk`fyVUA!z0eLns!KZ8~ z1>_)Vz+%Xitt(_Pwo|K*+i_DaSq>uJG7-pE&%QR%D4~xQ`L!_^cugdrH)sT#egehB zX*V-3H;if&Rz0tEHL+D{&~ssZxv8cao^tHAv-5Obk{nIMW}GW;1z3p&g#Y&$)A*lPGX^As;?`wR;01LQ>%CnquqvuD- zn2tFFO;2G;R7~47&#lz!-Gx-%wmg}W9pBFwbajh}TzQ#X6_yUWJcP)`RYcMSRw&kt z_YF^AEei+c)(&fe#Hxtyf@mxc#~p)Vk7rI zO#I!zfh;5IYu1v6Wx#L%Qm@zVn4wySqHuIi!j+;lro%NXnm>8kxo_Txg}D4k1mlFI z+f~U;hbu0MNA-G-omCjoIW!lpX|U1qgYhD_@igND&Rb=wf})=>Voa?m>I#V6`RQ4i zr6=w8n7qQ==de#x#`DI;+bAi&u$Y|k0V3cUYC;neHILa_O0FR_dk@g3cH*zV%I6i& z6P1fn<448WwzH}oy*dmn%O8EOe%3!oy8(Eh9sdz6;U7vrK*&QgIh7OO0O?>hCB4K> z)Lqg{unHE-yMxf*Us9&5T(&$llRPs}>k4qjGt05t^gwhofErc)_JY*Iq;-ni&@a~V zoX(8&@v5|M#Wv2bE}lPOaIoX7vg1#-G1=1vk`Z}g&wd%vc?l5L7s3KnZmUD(2%VF< zf)9bUJpPV(ccH{}Jzwl;jYaR#m>*|q1DAEyADPznq@HQQt{%Px3SaycXr>A_qn-~o zv9FF-ssqhVbw}>9B3`R+&z@?>{9!t~5QVM*0@W)NC$QLmg8ISJ!Rd!-?F-ZM2T9+< z@~GPFYZT#WA6xA+=yI95OyUdu6`_$Vafe4T)vQr6qKwmEcgtvyDy3fr7kG;5m}e$= z)u=>j>OQdy(d)FT_AH+?3;5{fqaS#9->E@$4uR0KHX~DO>=c7MB%xXI*w~hiE}miE z@%s;xskRrfWb;^(hu;W)$MZ_m>t`0uWJEYIV3Mxn^I_Vk@JhDhBTtR{kIr*+#cD^j zB)?F78lv#m+$|K0-Da&uz_V)RCQ!9#LFi_^U;Q2z$cMlH9>(6oHG1S!xt+kjPBe|7Z zyN@7jWS$3?__@kdo!x(5|Hb25+ehKGDqP?t>@^dD8pMjG+{x43%U8y4cAkmvBx$|8 zHnQPC#!!O5A=pcwnVh;{tpn zQ~NsX<&%lUK%x>&hN=%80GmH6nvqVortz-TmFD2RV;{dfCt34m&Q5nQX?DTJ+D=MG zBU&cVO-A7aF^$iQ{SBf7cMr2?lS6qA#LOjE{xDr65#cUxU^Ucl2PGP)!BTP)x@5}zBI4byY9lj(V6k)7eg2ji?^BxZF$W( zGpFG*Vu2xHM81#$Z)|cFm99YF!7Tz^P#_sRxeIZx1AQd*V97d9cpITZ=&?o46CwTS z(*=jJoOk&WG0KS1+no0%EdI|H6hUb|Y?$_)6^T<#0rzU6DI z1NaGzg5=K7U~li^1EE#168BGvIedw43*>zM=)|$}dSmoC z0URZALc@f5+IGzZuYEWmgkW9yEt;$QVBCQN;r2%94bOazRX8=gMGU}0=}tgy;U4JH zB2?c3KYH;s?vUPzU`f(IOhCWZh0(|ahm0{znny3q;|aFnyW8`@N_Fh3#(M^6x##ZZ z3$L@#u23sLe@bldWB0RXBMg(Yf`%ltkm+?k0>*HE?uA;Q|;g? z@eaO6Edsw`EeE&7&`*(I&9UC>v%ySbm5*x4f^&1=;p6E<*-&W_KTi7m_u}(k)7Tn>Af$jD@Ez23Z1(j z9DA1B{c-s``fj5P8U36tSb+ARcHXQU_GIQ-neUfq2-=yGGPlWilvl7euIm2y7J1gT z?`>Yv2_CV+AGag-gE<_)$iO)xxX{f=fJ#eXm6&Lpm#O8gQMxe6j$5qAkw7mdN%E3eDPKq*J1-~O z4H3N^f5t!G;*Q@ixZF~>t&+hN`Z3q&^5j!P`5-2!9 zT~s2V^eoaIwd*8sl-BiZ58NmR%jLBc*_w0~Bbf&x5=R^bLE+C212mBCp+vEUmSzG!FiD}x(eqfvO6z~RAx4Ndpn^0oV+H^VN$z~8Ebb`lb^OacYV@#^!!}} z9Z2@0IZ}T@9GWy6s0+?iHB*!$OjX;qRpAJ-l)Uw#KS&^SjZ4lhj|R`71fHUI6>5Z2 zWio=Jc!={8OIocn3x{#fHmc^%*}0!GSzQg_vO8)2`T1#boL{HltmU3(upr5depm~S zYt1FvhQr1(ar_$bY}V-sOxM|rb(n2X5je15FJi$^VF#)EOoU*S3OAb; z|7xPO-h^sS#r#~ehfkL@=9p#A&b@5{yWmJFUbpes5r1OeFm30o&m_jdFaVu`*fi=) zLyP0wF*9hxQ3#HF(y>L;g}y#k^b;6&422Wtyry+~b`vXmV^1CtKX0j0&#M2Lb$eiH zn9!1Qgl=~tlE#gilGGY)aN+(uCTv3PugnO~Un>$+5*MbVx@?pyqimg>qttM$=dsfz zMidXKG+B%CU>NOUCg$d|jye!)I#MFkt7g-#D8$8A-P1HAcw1F^{}HBVoq~JaBt&bY zGNT&q6{|9>7#xHDaeeggDkVX&0OUzdU$sGH-=JzyKBGjm&%YglL;o2JfeDil? z&~Tya_DNY!DbFvXBeA}|k9CWyCaD|O>@3s^0{fP|N})#;#xm73%m?&+_>4k3TI?5^ zKbV>EcE?KRI617TRM=+NGceO6)=l-ByU@YqSlcT{e7>Zg>26g*MIYi3+!H1fu6-g+ z&;@rFjiPi!_M@j8kCQs1cNTbGje3hZy*8h<)_ESb&G_)ruHLrnILe0MKa-5PvUiZi zeMPOnCTaO*JaNV%!`{*+2xjuqGV^A>`CRifW5*OFdKd)X@RGIvhsLXzsUYaX3WQWb z)9K*&5NZwe+Y3=ANI9+3mQh;)3x^Hfc6%2EwFrc7Yl z@FFd*PQ1S$hOp5;Yw+X!C5tAC2zJ>B;sN25WEQF)2qW!V00`$?yca-JXi~rxs{R!_ z_EtD&e^f=-#_~72dCOFthCfXC0W)#q4UKCon+U2DumRLx0*Zjz_&`iU0NJ+nv020l zDWQrj(_1phMNZMT`TKV>-Puj{gj1^1IG20WutgF2Rfr?(&d7{)oKvyTcWK|ed5M|M zWkjnbT`X@2!3h8bhXd^vHEc->vqH6g*N*15r;ubS9WH($2ky{j1Qcee4IQRl-v&j32N_+p6=3)(2=SBlPx0vr2nD@rd zm>4E8-gKCJBNlA@l79V%>4vULJ4%=|Gt<5#ab>)@bjESt_ghgtvkx<)W`o2zozs>E zxI7+bQ6h8QEo##0ZXUCrX;w2A4Z}`jDhc$9OgS;;XMW=o}|V?;qV3?8B^bL7ahL zP%y#Eyf>uDER+JODKcY+2L5Nj6WS7n91N?bNhf9dGU?!F73tf0KF zX5``=7sAovkd(>$ACI@%RCp%c3$Df7jb5?qc-QGwUiRpEC+At+A}R?CwLEk)7$q*~ zNd<`Gcp&W}U63qUBOK?yZg*&*{f6$UhXjg?Hlu+w{lM&yAXdTJ#_ad(z}%NlOIW%< zBt9DlFoZO0L+S66QlIe9&7ecAZ&;3ztHo-iK0lkq;A1vB1QGfw67HV`BhW~j$XFeP zJonV;Lq&zt(+hTswllqIGUeYEgM5;>{5to=E(jsbu8b=Ik(M=!)amd^HZC{kOBv^{ zv8RbhWhN%DgVW)e0jdH}Ig=p6DCvJO2^Hv;9j2X484VVpsasL`m&87OJLxeKg)Q-^ z+(MM*0Qp6Bi1Rjx>77}F!5YpGZj#_l;JK$8)BIWuWRk5vgq!7YmE2gn z#L^%_`S49P9X62@MMp21vEP}oqSo7d8qROf_9WET#<0EIX<@%>ODf4Su^QS@QvDTg zzb0mK=Baari`A0(Ab%&*p%m!JA0|oqSpW`_s3SBRy4@(I8he<6dpgIqpx> z6`$=I7PFPx^e;qp3!yetyT9a_H_e|XFd@nhIilaZl++{1{Eo=Vvst&`w{st=tUh(T z&(P!*LB#nPi?hLXj^h`YI3HmFXxWDhw5}q3#}!XntqH$Vsw&>)Gtg)w?f0o*^KP;v zgK)uq0wc8XFw_Nr`&C^y#DxedT-TGO4&l9-JTm4(y_HSeQdQq)1re{zT`wyQ zh;#nUriKOR$$^*=AAB*(B3qPE>Oc3WwJn=tLV1VFSjWKA$1}w5y#Z@gdvQD^#WK-> zrf&?7WDG4xRI<2XoSJx3S^5MQ}j3xa!nLQlAXd?C!p)V`ZupD7hmWaKr{H1|IK z&MQDdXy+>^c?$LIz{HWVZPVfNiTINHo#yo;wobFBYxqoMxL4(+j`K(y5Y(AhCS{cZ zn0;Wmqrgq_jkFr$WnbvMBO*%6D~|@*{NnE8!g#0(W*b1w5IUeh27;?ZaDdzojRj;0 zEeE_G2{2XL{8fsY{Um?Q@Zr05KmKm+KG|I(RU#iD#|RAg2vkoUFxCU(Sknz&0gDdk zH)@@iBpW?1NwdkhlGat9X;wYFsq9o`A%9+2@=Dv@{s#`tKP-=yVm4t$n~z$xvQ}le*B1(yC1Q+5GrRD)u1vazmbui6w`(I-BgSW?Qlyd9ukURiWSjx7k3~1%L3^OXK`7Y>co~CLo@Ay$dP}y9 zt_1(ICOQ!%V_9AEqN2mrx=l8 zbn(JP_>{-3!OhHOoS^^Af&evP6mdr}O*G}3&Dh3(c=K+{dk4e^EWYtHo!a*!hO9qmK)<4;O1TsZWr6OVdU-n}Uo~4$QwOpst=| zn6l*g=zzG8waiHArk8^S3rtS+X^{A1O9FbM{w>svsDd}6g@fH04UI>FQPgH&k*<}7 zfyFh*y$`83Etl7+HLVx>kh*kvQesucP=Hw~L6aj{CyM9Sp?5^YfEis3K~|uYlD#)r zeSoS)-H7How@1_T&h)ip*(gtC&(h@~sNY-j(}`96E~&r_0k2s8&Lgxc1}E+SDkVqd zf)-G>L=B=VEr|xS^Yp-Rv;$@m-bLEU7TPw7ZFqv_t*sofaeW@^;BZL9rD3|qR>$zd z4T1Px(h)Lj;~Pp@t2LET(CAh|XCODoGiqdoLmQ+<$*RvKRW>&d?R6j>$0G#$$HtWBo-I9ahYyF^g=m zWSGq`I8?;vly^Qa(Sa>$#~#qJUWyNNEH6pPSQBgil1)!*%y1pt3_2vGeSZ4Tz}TtV zr*>4;dNY=9?f72N)sxdYS^bBpUeIZfP7~&=a@7~EPwlm@mq|8utN#%qMhc_6XS{{G zV5haOFfcf;qD%>3=_EP8O8wr_H`!Wp#|U$Jm@*}TuWs0j7|fK`kq@;tW_S+hDr}2E zT-xv4roA_8Jqe!5f|+d)KUpghOFt#Hl3sOuR4UwDWY;M}I9a=OAN$eQ4!@SvirKU+ zJ6vw9-g;{ya!p>@GSkD9 zd294biT;&dfTg)ugRx;;kZQ3k!0W^5zi}fl=$gF;bP~N<3zMWGAg;eSK7vuaGpA1o z+~A_gT__1w9NF~ZSLnYrpu48_!uw(I7jY6sS+eiTp=(FUP|c@D5P zJwx>(_!?#0B*lOjr4iM-V0NICdY_^%ZzOZwREEEecK=bR#k0hhA9b$g^N_Sd{=UON zCH08|_$E=MJV~DnHTV`o4$K6dX`XZ7cu_sC(<wVN)E_)kj5L8b>ffjkc|JhB z*u{J*HW0tS3lnL7V>fMF#Bt^71iN`C$HBy!Y0SVE0dQ#3{2e~wu=g?&I#3ASjE@=* zK2I}Vc%xl$G3SIb@x*I0ZGjmltA-m0%rVnkZeV#0{yG!=I_&EyR@A#@GE0-C{c-gE zX^+Rj8GR<7i}}H!;G^~{eQy@bl|M|n15=iiPt=0H?k}GjwE#&k-jHB0K{qGs5n9dN zEyD9^D`K{Lz8Wt_SaqqMjbMv*JaQ7D5HW2u1hkJaz@LSJWMqN4myimpv20c0ThBmu zU=RKfwTxHR(HF{HmuPRFNYo%1#$x0g_;V_Z`K$xqIi;5y=v`vpH7WrB0}^o+ZhIVG zn(bxlc2aO> zxU{f(_(^DVfn<#h^(vxKhFpD^+PID=Ih5mT1D*{Eo<@kZ`VsK2aA3+_}m z!=4Ex*4<|y_e7A`H6h$r;52LShw0>TMje`1040t#GygUsxjMOH%O`2^O>2%U~aVO|{N#CxBwUj@ozH$Ec@IVLJ551UzBi-H#%^}?y z2!C7^bg=&?lixh0?R@_uF479oO3+*q=wz4g_3Gk93{GOIKGo(doPzX8@Bp$ z_hZUasPjvm<;n!{GtCycwU{yy0kNaLLZD#xdHqsN8&9QCu2sEfWqHKx$xQRnBfhDF z!uEQIQ=xAoxKUw?4%rIZHy1@gHULZ}AmqGPN{ze!vnBfosXF$Z7XyDTWWyJ6hv<+a zhZ<&cIC2mb?2_?oTSw=(-1uv+!p@AjU&bmXRcM)@vnAHYIj=wReT4Ib{V2vf*E`M4 zwOERC!RO4-D4pbvbi$NU=8e?Wro>*Cd-o2RNSm?cI6S;6Z+z#gw3-~^rTn)LmOo6~ ztTYo;oBd(ZK&Ll9avP38SIpOussO*hG{dOG_4=KZOLYsbkLGQH;!GkU`>!24(ljs# zG;zEN-$GseL7-A4ki=SzBclls*aE7#mzRy(F}Doig!v~eGcDFL$3FODdM(5P?^!CW zA}TsJoEFhj^$-VxX9Mi3=9oJ}CH|g<63&}=+pc@TBX{fsF=wq_^vy8IKYUwz-!vrT z&H%TL?zyTwlyjO=ZfQwTOx(>#g>swq8AD7)#J)<8uL5%!mS5(xlItr*x~*sxt<#kF zrL27eZS&%_3EQpaq1u_&OWH|R&ewmeJt>mg|HR_E+7!0mj4H!cwG@wrI6jkdY3)(> zKVwXirZuIEerr~Z4%+0rWDfHdcl3EJX{1vJI=Hz zqF%uTfNN4Dpbmw00SZ3FcxcDdqphGNHCjWIpk~V@%^g9xDLyEHZ#y46*{t&z^#V15 zC|hY8fI*XRPMn8#sO7X%ME)YhL)S-><3!Y)Tik3rd-B01T#9B7oo3Y6K(@&~#7II( zBcDK=#!I*v{_R~;?}O`&Vi=>)F_}za?>R1Id-Vg)ji7|tXyb1_tGKH8t#2;9gH&1v zt{nI_!YQlc{wmzibX{5mkUged`C>xrhqX3(3_K=36i9VbeX01iap?J6eb0S14X~#c ze9{N94^US%WsUy~-B$i%0@J>qmzj9-Q45wU2x1ED7~P2R7L=bIq!uj}&7GdOMs+If zE?i5T?^ZKaRML%mY7_M~(Ynl?aHvboGP|}T%QHaPe7N&RJ_@$}m@S%I0C9OWN>cMU z=iQ)vBwu$?!Thh1Y;{T;KQ9?AE5651iaTn^qn9%XyZin|?LFa>VV!@Ngdtg^2PK!0 zu4Bye9CZ?TP1=*SeK@tEp-TG?lb_z0uj==6D-LXi@PSZ${$|$Ij&F=^<$Lver#>(3*ww;v2Cnn2{aDGyui6%fQ}r2KY&gCY#YxO zq((cqE2_L5<;~>2Hig`G|HDdP+BR=jb7*InNSvlOyQj*a3*bUEd+2DtqiVIF58~Y5 z2WH+$o&!%9yWy#*oXhNzdLrS;GmfK9q5b;=xm%W>(mD!JWAg_{oozt;kG*Muo7(bK zfyRvQjm_KNBO+>|T6pK;WgUs~OYsS>Ezx+)WEiNc$wi$(B7g(90887n#5iWLFnlu^ zkL8icaeh*DG_qDrCV1b6%YB(oXSU2-5_h0v*J4-tLk!22pD%r|}R*lU)~tFz8YR~QFBi)rarom;LDaoKNHYiOvsLu!x2x03S1$-U;MSJdUV9J3a08dn*bOyVHMa z@Rx--_jK2g+N<62OCp>SQ~ok{i`e2=))z?T-cv?PFk%1+pglIKXHbFF+>h*&<>M=! zSB&q+mk{67MyIMDRF~LGe|Ug}Y5UAacy-Q3E6sp@otzd9Dr|e8vw9+A#PjD-8tZ!} z&YAAqKo3}@1-s*|M{}fVBA8OPN8|7}@d_{Y^qX_4ft^SUqH+ZwE?PjaKphoL7Me!O zwoK>$@W`}Qe&^c6+q>Mp`)>M}bpIv4-Ip1G8$a<3;U$n10sKm>_(thVHIFgRiWL=i zxSqVetaKlldsByrF)|veimBA{v;D2IVMlXE4J}l%KSQZOvyI0{#KuI@8ZkgZ#gH`X zo2)c_?u?pF&*>taQ>lC3dP>KvwoM;f5{+p*^aqWMTo9;zkTY4)Hf}FMCRmq5l(-eX zJuRA5$7Q+zkYludu?dmkG(44S-=>S9Q;jMd{p4b5|hd(!<1kR83( zLamsLH%k!y^EY3ptzmg@b2ssS>NqlCLN7rkJ^)S)mBJBd zSCtuB+qCjq&&5dEH6T^Y4BLnfcrpK=!-~)`5ich4;`43R(9)3|EijavRH9JF{`NT4 zh=MC`7)frmVGsW{q^y)}Z1D4rw*8ClBhT9$+FN`b*~2=ominhO#4*zMKwf*vj0hf^ zho8Djw#BElSV3~@zm?1VUA>ewPbwlVS45b^A}<|#=tqh29QC@+`H_$AqBr8Vh?t37 z0>{ufQavSoT#ub6a@*DN;(*<#Qq>a$Y?a&3CH@ilO2<9k%CM(>J?9|-!Cxw!Ig`nh zXi^SQ>H}&5_NgFxhse_=DfLWhV#m&jV+2e8^ybX=5UJBuHe9>Bx#K%qXA=UHb`!|5 zM2UN}%c#i(Ue94&{<*~wx+XrTRO%D@6pXreBuXtbP*CrlZ`r12QRPCVMO}5<_72?g zM{dl|_|X4=ll+gRjVtVplLzR0y9BMjP0CsV%Eh#Z#sPR;G#(zYQ&xcVYjrABQSOQv zY~`G{nYC6bZT9o=3)t?Xq80CM8|~aQ(AZ$d=g;PMDXYfC)P8MQ zHu@RA1bls5=z<6enYy=l6STk`YA+ruNLQu?1+3`bdvl3=XDx~*^yjYo>6d>=8U_;3TgCsy$3M52Vp&nkMka*%;NRE~nl68sE23b(LThW5;R#d2{ zh~%u1TFPAqXEEE&oXtm#24waP6`DM?fKoOD_p%FYaf7#;9kM>1Rp5d1Xs`&K%FSju zQe)j-$QbMEO?{q|iDlXM>a#gjjs{}l&7$bVw>jdVE*+qkI*yU%UydIY&M3P<6a0~sjU@4-4beGl7jFay(6ly09U;Y^GBsl&&ee4^gH{Q&^>Lzrg;+t>?y|hCs>VYZz62h0c$lbTHoFJOS~a zWDXpQ2NEiQ`G6rwFC)W5A6pdbCt&8=t8uk@BBniQ)5(db3+LOC|v95NE5POq$C&T|@+r{w?kLB&Yr1LWu`aGWU z>}VR8sh@=IG{Vu%5;$)xII~h#$&thf&@K^F%p0T)VaY6ACAvX-2|2S7@ADAy-x8Yf zco`7%hY7`^=zUoIxo`aP1RzCS;i1aF+YwX1LZMA%MxWA4ZpXHnB_Q|-PdwIXtN~>e z)ky}aR(O|~ecvr&V0(e#_b#WNd~w2$wqhXO$J2tQ9>oFCaKgmj_X#9pS`e7ujn9hR z^`ywclrNRplG)#pLOkUc*e0|rs^eh(Mo-^4h*My|=o;{70Nte$s6b7TcqmC!EdsC` z5t`>8L#esHSd)|_3qSM5j)RDxt4y}lw@0T|HxI3x2Nnl1m|&-;nhez;BXt()1QiVY z{lQ>BZKFmOSTqJE5tLNw)S{^$9+maM;OsNYrS9KOJk_PoB|G09jlNL=hyH>_U0 z{1*g%>b&)AUWAbjcLDPr^);I-`$>sPv*_`JXip#C3mL8(Z>%nrZ!iZo&h=Na?k6!d zVSREV6`t|l*;%!>CKut&BK6J&A0x{)F9->ns<-|2{F?4NlvP?b+u@*?z5Y63_OWFV zA&&E^UxwT*|8MycqLVQ%M+rR?_#w121{{N~Gr}}Zq8+xVCmjax%cL5*Nw5kb$g>n) zR>jaeeqzqFr8t^(^wdeq=!G{d+92@X0_>z=Ej&~8i%?Y&G!Byt)*_pYJi*bHO z@R#pbwclwe?#kO^+f~jJ-T}1>A8j7H2Jce5)P&;YV|on&%J(#~>K+8cXo7TI>I8X# zkd39Gp%Fb82#?r5VaV(9G(i&SHFw+|D|C6CsI51vOG|U?tY^04yZV6XD9^a6xr+Eh zRWlaN#qY?KsKNozbu!h)4=@faVYlw}K54{$Rsv!Y?05f<<$?erC@UE8p>Dwe;PWli zCn-RcBeC2btPHt%fqcnkbeJ0YB=gCm8WV-0`(;)6B{M;p1vi+_pW@MFX5^3_VFK`5 z2UZ`m;%_R&zZ2T3*i4PyC;spZA%QhO;AUeg%bqGD9=OV~PRHjwh z8(}fKOO1IBA69MBBHz_FL=1zde>P90QhQZ0-%88d6!mQvU~?i$W~cL|L0qw9ZweQT zWCoAU5z-S|Mf1?rJw3eNS-TC*2W1pYZc1lNOI-ZnMy|9V5&A7I+Z&~794cVkh5G(# z^kv^dE5a**q&y3yh&n)12C_o?gH@Jb95ZXUiWxbwK#iqkueUFYHH@0}YQruE(#>S} zUKo8s_|*$>R)C4UMk=5StWz$H;#?&B%%RpXsrpFE!74MAeiPFxQ}$=3FE_L1CdtV} zH=X6AMar|HQq4`k_9P4wKrhCiNp^_oFv?|Mk7>ww2We9;?zY-neOzZV`^s~pVTA2c@y{swP-h1GfsQS>_b@rK4M9By6s)gqiQ2E;K$ea)joZj* zefWuXR<3xjc+9c4U0%%r6Oflk`ejKy{^g-X2!B@-VDoK3(>Kev^0Fi7#8w0cmje5NaCu z#8N%UhZYF)1#j0S70F-Ux;6$zu6)j((&#;4buoO?vqZvCZT6a#B63=KFB*@2D=O#r zj2;g4E|3g?575E}*AkBeeLo`>r9zd~ry3ASF3mPppj~vJV`WdV$&Cl}`tH+iJ*0o+ z?tY#!fAH$%67&@Cgq8wC1`tXPH4R1schjxINW=AZgg}*tLcb_weht(j=zAQ`gjLmB zDVCK95uXXD9ZVc3_*HKJckNy_T9E~+4}7MiJc#2h9z7{di90PiSwpJoj0jlRm^$uZ z66KX@^_{n2NdLr$_^bUL?^XD z#x>s6%l2c z_63gjWd!d?HJN#d(Tuh2!;a)0*&9+3NMK0KwD1L-jO3*inCV1Q(5E2Y8=4EvpsTc6 zL3kBSvdD>TJVG{miaIi<)E|+CueCX=$)98(t@t8V?BqRR`x{)*f!g5+<>TfNus7$n z=!ba-_At^yc-{;B z<9%wyJ3o2nGqi~}Zp z;lD!mEi^6g=;%r&f0&#z^Q|kckQ%$@i8ryVaRgjiOlqxut54IwCPTpQ6g&qr2`q16 zDT_(a|nNvJifZdY1V2ifq1X5DMJ&HI}g~>-9KjT*q-5ChvB3wNsN6 z*@~db1k#1MD6E4z<}@vUde1;-fMH3vq*Q(F=aHPYRYjZ9qzP#U4ST!rVME$JC%k9e zV%MjOZ7aVixd{*T!1xUHfqLM=I0x)hb|>DfGbj4@N;^*2#7~KmSLzX%rWI~~{bO}? z#HO*6iR*2q>$czT4}{N^p?*on-59zd1m{u;FcSecmWR7~i+G?EMyiwoDIwIv53|Um z5SxzaC!M71LM<({dkmjqM348&=za8tll#N!8%VoEkm9i)pv04fJGS^xLl9@q;!cLB zja%c91SGuj?daQ++jD9`_g5pv(r*ht3|Tw9Y=LvUqu_%8M~zlFsE=zYs=-T79C_E{ z)W#G_BUYsno2q}}#CBl(yM47fysC&>6|toiJk}vsnHq#wtM*Pn&odacMPn|9Be1=e&cNBhfwRCcfK-x9z7&wu`PX>aZN zzshc}AaRhv8SL*}IOBNETPjF%9e1|;!-V+phiSDdClgIN&$D+N0pf=n3IK8DisFE= z-NIA_-h~)QVsD34cz0x;{sM^p8~s_+h8KID^O8-ucrW(u|CrSA@O*$cUpq<{xb48d zr3CAPn&XljD9Rmrw*HMS3i8`79N;cH?@`#DPLRY-16zI!?6(&?xtTAJ!#h0Cv|xbKN7)N8!nM9a(h_g|XkH-`U6J1TsfRP2ZNfF@nTP>(^0 zG!|4J;&8)pzojsOSu9LgWBo(b7XSQSA(yGfVVP5%wcWBw$=9}I`qQ1AXPfRxo6Yqo z{F3zBdkHzg9TC+3i@NuYYP#LlMX?}C?;tHIAWBsbK`9ZXBcLK(hzdvvMMRonA|Sm9 zC@3u=A|kzp9(om!-U%HM0tqDqQoj4T&NyqYbI#uPuD!<^cbxr)!(2LN*0+Pg?^w zMzeUR(DtQ`WRKBh8kMqcc+qy{&@7hDa*p5BwflgdHV&HEIbFL;Spmlt-1l>FAkgsz zE&VJ>ax_LcFd5r~KGd9XG=ja-KuO@6LwRlFS;>wI-l0nj+fQElizb|iwa~q1!r?(BjfUKl;4fv)DL>zfwPh|` zft3Y|E@s$!toKD;>*x-`yk{E+b{$T(p!H($h8~kT#A}59@Bne|1!Ob;)JqCoWw$b# zSw?Ah$ktttxFh;0JE2BUNm|~o?9&#Ggk-Whvgr(RZUF<#$I)`kgj6G>92Hc@hsPQi zRN-*D8ds8&)?cb7a~+r)W=_p4XJ=?L;9Tyb-n~8neFmLN#Nzc(AxOLdD)dEPde*v< z$Ynx*v_tHAYlc{zhETG+HtYDq+htlu6;vLj&!k5wyc#hc?Y^+`@a84u-J;I^DeHOQ zIt8K1-GjkC=AouMk1FD`b+&TCZ$$-2IGx^9R6G4eK7UmIRBvzjn@cfwk{dg;Sq_&J zP%cNG%Yd5EvP*t0X=^rCz0cw3y^@aDCdr>mQ)M;+P~JcAW0NLmi|R~(wBV3LB#Ata z3QI8$+Y5ZTs3y_coh0ynCR#f0YFaV2mDwwxw7uz4IBhgGQm=dtH zUkfAl%|or(I7nl59a&B(0X@q`KaICPZdzKiA3(RxDtFTgN$bRCR21T(OGIIS5ne8g zqUA4`AEBP})oP}@Fp|gO%0S8S3v?olM<(m#S~5=Kv2U(?D2FgQ6DJ+sG3E)^f6+Ux z`~B$aTz}FH7AHHb!reS4mK`}3Tl>m&Jomlq=3E##NkDD58d>tA%!38Al?K*P=LP8hy)@VSjs09?Hs1?yHpwNtS#`_Z$)B!K~BgYLby@~2r8Ng zzAYH#8%+!Oe>@B~vSkPuEbyGWEI^k57|jK#!{49dNFo0HR8~nUmRgK#9mM-mIY_X2 zln7hY!6Kse^a5UYXN9J=P`c-&dO_S#Wi- za%|^Se~;=*!lsZLGd&~!$$95_y9?Tv-jASU5+0P4KBy4`cPt_rdHtVJgaz!F8~^Md z$bYTB)7?8vwPrPNo_OZY%pd-OK^aFn9ta7&x=_qD@UJsiM~=@(U0vNYd-u1$?l3U? zyW&nw71%vv(pVkIj;2))rPY51Tb|x)R57%D8K9oa|LO_*XD9Zb|J+CJe@9kIuT6&T zKWkS1Z}~hA3i*mP-DA~o_t8xJ+k8^t)?AqwZ6R3c&~le;-*!YN<31M)+rf9I^u zdEsEUg1eTje!r7*Ae}Zb$;CrTAozE`kC8+vaU{S#Z#MbHHW#-IU4+E~g=frMo-G3& zic5!+MJ!2Xi}zAq!3}?6O=CB&L`V!XOByFGb850&9Tg1KPodgnaV6?UM&%0HIRE0Y zQ?^g;09?H{d3R|W$av895;`wA zjI4z$A=|4{vT|oCLQ~bYS=#wOHttO-7(RNutLu`bVocJn_#Yz&-I)q>$R#u#3Vb`5 zcB+j00^~WD2PoE{rB4eng~`tyuAIeNTK8GwS!rVWoSld{|6b8h%39kpqS^i3=(j-^ z&w%_j%-?@A?r-0$^Jh+NRi9iEEtGInT@SI}`S`f3ahv3ow_mTZ=w>*hd&l73t7yS?C{Q~%IhH}UM zm!-SA=j6lY)R#!(OuxlH@n^M?!Al)-{GXNBArlj*_3G@19wayAB0j3)(7nVr*RQc% zdTD4Lop6%U)q1Q?e)?w13beTZ6m-IkX!qG9f!bsO^oVu8%$?{bi&^7ezb0Jo|NA=U z&lq$h3*0`s;P)=q4I@cL)~QK#)R`};ncT$BY?e3+8H$%{4J)fWQ+uivu;@S-YRixu zb}M(gIXiI9x9f6N=p4jcbhqH?!~@4IYmIJ2nM@*@A~XCKT?T}-1^6Lgs3B-R7(m2< z+p>|jWX$8&Ve)hLnzxkhg5%9k3=BeVRXA)-8QM|YJ?C3Ioa6Q(fFxBozI;Wbv)7~* z@)?Flo6!7_ix}#A$iKY|V6h`OwwiR_ovUmVevcu2pF)%33iZj%cbM5W(SOnL7?TC! z9?Lu+`_gz9ko^z}@SaMu{^4~|=pH2E1ujKOip8$XGuGD|@Fg>-{Nrm>xv3u6p1raA(nX`z1 zAp9Qp0@`Zmac8ig$RUz$M>F|LR^rh0P#hp7BDp~0V z*}4z3e(r7<=AoV=|6wxj|Kl4|LQc4$1*?Munk-)6~+Q%pT#)d?4mxbEJKWrfyTLGdZhcAxbQ*a$^Gu*`@7kt+!U z1-%8a=al(%w)!c%MLKwBJE%fT?%)+U-4HZ#riRn~a#on2=o9{)_~94kEVpANSCYQR zA4+-1KLA8y$c#6$`Ww^8-a*U~AN()62Z;xagGI>+CBuLb_2o~1$nd|mp!z`*?_sIC zF5bE!8mneC@$tjl1;J9|Pdrl=@JW%Ji|8S_hgIH!k!|Oy={(bp4OSIJ+-dP-jqrFH zxcJIy!qUQ?-S_Cp-NMlpji2S!hV366=*!~E%kO>{dhwJ&$ozIeXUOn2Y|_QQ0Qm$2 z9!gjH>=K|XE3%36mb#tA z)oFke5GoM-;8(`!I*q3ZYsCF$#^3tRK`tC!R0$NZlPo*>`NA!?n`sZEf2<&|p!-{y zQakA1&Lu|0KwZ}gL9I*ij_S4f=6>PI_f8rdDmRRd`8)1k7BM+*{-c+Su_SrU!zNzH zktAVpiWnByI*wpK$JXV&EKMVb4w1r0epkYH=f;?b0c#R9jICABD4|c ziQS@T6wAttGa^+2{g}DZSC=8(#OBk|VXyK@G3Oki)+Px$ke7 z{0itNE6}E43`l!y9JCxTVmo9WZ|XD<_F4tZQe6wYy_J&v5&XA!Z+`zac}m=TGq#H7 zaEdI2z+%c^xL~!}IDG2;6d9Lh==DXt;YVb}1+Dbj=H>W*)96AfL+3tV*i^alX|vdJ z5QCEEt*MF0yU#N3dLzsUIMt<)1Qk!H4+%suvnz}Sa z4Q&m2-sRn^9<1;|AF*2LWhocTKDNcd@*}Tm+w?x$o*kdERyTIEIW}H>i<%4d05?`1 z@g}AWztv`AlJ#D_1vKzwHO>G_%py-W>tb`a7nAv)x zei~~tv3?k!?O&d5Ha$5L9!OUjUGB>LmS2jq&i+Uwsb>*`JB^QO#Gpm89+8zO9Mz;O zLY7fUq_FwD3NJWI+PyY*!yWFA$MS9OT}kC~LBC(2E<@xU z(lJjf`u1xw`m&{^O`G4&q>kM;x0ex*eC|y(+7&pg7q!f&%=lkiaXjjE;v>TTzZrn9sHVcxs(%D|RhrPh4kQfMV8Haw-h1HE- zPyti8-UwlplXF$ofD86eQ}e8;DgNi8=ToE=vfLJ>YM%<>8kI?jbLc?IMD#UW`#EReW@2G@ zvv2$P5i6(95m|S}e`|WxED;-j(VLfr&fZ#8-}tj8auXQhjierZQuX)l$@VNrD*VeD zJ~egXT;ETcMRR+0AfwH@%g1G(dItWjs#z0IfKZc|Ha_(uBwzoRIexLDqAJc-^(E!i zPD6sx0i{=`qrW%IU2DHq6c2h8K_?~V`d=g6up5{_41FQuBE@5{{8!t|OrD^9F*-w; znEdujH@_xzAo~mZ zpv-gq7c>@#gJH)zh|U9)%SDvuguS>hX^P_$k6k@k(W*!Ou6bOiMYk7RnGGScO$QcyQL%L>#xiW-|D$}3m9<4M#mnxr~bLz<;LF%PxIZ3VL!_iwMUB{ma#Q| zT(W5D__`p~hH(N_{l@bW8##C>D{2DYRmti4=Ueco|;awMpo+c>gh8V zM_x`2V0Ls#^TgR|;QC>kDla1rJz^7%42V-;Kv z-NoB69m&?uRMf3|fOwyOX(vrwSx0wk;ssIuy`Q!|r;mpRiJ@UYizoiuy?X;U*b7fC z#O5W!Bp_2J#AmR{k4QT?+z&tC;n9%e$2oy{ibGZ$Al$KXKgdd3KC7E#0?ZOM4&3&2sH*BIDmxb1@;kv8W;nI_QfACX7oMF;}Sk+sHbF!J^FXc>z z(Ai$?G8?WlF;*AlFFG^-*;R4QIPJ?_{M>^yt4#!5QU70bg2*P|q|N~kk5%>dEGt2& z6?f5N@qMOu1(&UkU=F>lwbN3}C2jR5JTtGmOO(GZhJ0Q2ST>~Th)6+hu_hKM@~jL( zZ_xE0MFpdeMeb~cVz?2)l!y3qbS#2*-N*LKKp|$t*5Y zZapx)*qyqRQf9-N;w^e1SLcz_m(J`j7I*&q zlg`UOlOimD-R@tmy7T7 zoG0mh4)6wAK~Xkx&9>*rN<{bUbDfW?$oA(Kuuk`7$es6#y8)+dpeJwm?(;RYuY*JF zMja*ArE2oZW{y~X(U2BRXOJ#%5Y@Ckh*7%&v|r;WTw^v3aRw!%+$k~Kw6PZ?Hc_`=Sx*b0zx%R{2L7Ux zVR<&0me$`%xkWN`Sb%ZUMqnpEo%!i#7Z|6ysO&eNC2c#y$0No`Y&Rqnz7g-Jn6Jw< zL!w~(PzMn4N%@qJ)hXr#+mbwzPP_Uur-9$-F}_PT(b%=C+8ipCjMr18qwN!Ivw^WX zM!HB~f>En6j)us2%$o{99D~NF^p}R}Ay@H)!7jf0==c=J5XPIC8qX{OUmN;wQTUSQ z#n?$oO_1{Tz^BrR>8undoV3TX5#fix%1nG9!`1DZ%Rbwx%`ZK7p*A^DxkhQkG`F>> zO*MKmMFE?!nejeq1aKrDQcEy%*$pbBY`cZ@hXKm?)PC{GRF>WKuiak+h1INvm814^ z1*cKT$wpqVpL>Wq$R*DI-cY*1-UR;_+YQfKomQ#t3Mxb+_U?pm(I6(7Yrd$}V z06Kv`)*gNPVj`2C-O@qydQlc`b?Vc_VoJY2?%k?bvwC+yy}P+x?yr<8XMC?;f*db^ z(?S7>-eB=2q90P4-0>G(^a6c#atnT~tcfX2ESX-`F3=j%Z12DzTw~s41!>2KP@M3_ z;fU)2=G5#xVU?8PE!I$pT=%IBpaW zhUUWBV64A0*s2JwyzFb+@T*)Cp()%|PSauoxel>5sg=8skboY%uQma*f%jKCQ&aCOL4a@!+NBo@6$ghh>MQ4N`X08g^^oUf7j_ zhV;sky|EyqTYn4$5Oe0@k({bFMet;^Sw+0fNJfTY)HTD3>0$$Kr^oN=)Gf`oC*~hl zP4h{Jr5vcVK$t-cxD^E{e&2yh^dv;t#!fXqnJ>r5;n0tr3uJOU${$or_T~K0c0Rgk z{y3cb(w*<>?Sw+q!d2iY-=;h!7)Pn|j8nvFhAXU%%bc(J7~5}KXnExvaQ2l3Y>+2S zr%mMm}v-A^K2 z-5ngv`UbD2^qivax_Bqr95Xs)X(LBEJ`}kekPG>_PvMdyh7({oMY5=qtqNfm>oVs0 zwQ5Li^AcZw!bF4RNjkb-rn9czt{KRA z>=)t)VfWmaZC%Qu$*@cl%aXw}th8pKhC{@itI8~Im3e?b07{bzBD}d2Oa(Nq2=H^G z%t(RrSk4Ff=MoLkRSDPJMtu`TH8Vy91G(q}RE<6gE4Ra&KCKx({&p8`ZT+=Bvx^s1 z{sy7*Ym34w2&B3|C=kFs5TJzrOen8Mwwo(7q6v$==<*6vg%4i)_I6_WknchI^Of-j z5rmz26mAs|c(8b6Fx2?~A>(3uwrZs4EPAB8wyW?wI&#xO;L-7(E88-|T94zILmoSv z;b}S(R|lQTf|X&~<)+X?bvzUVz)XH-t9pct(4udK^SRrygG`;n4{kKLJ}pU6;J(fN zIf?GIk{iQ3Bn}GLVjdvM0)VqBANjHkMQoUI?P|O)OMB6G+o|cPsUBZ$mXjGzGESO} z@Q7$%+Km73mP?FYZ9+y_`^{MqYnz=}tXy(tA@Aio2F40lvhsXJ0L1qG!)izo_09Sb>}x@A$Gd z*qihhoqknZH+2efuwNF}J@r%iJHyeeBdX95+w+q{HMYJaEv=RbkmHuyjR4x`UEmo{ zBS3PPhjz;E*a9p(;MymWU9+f}f$rAkQmE!oIotpx(X%srG2@0(SJ!d`O9ER@!%0#P z*_32_o1{WE_X}QdM}IFYSWp^ZP4)D;9B$&$hew(^^mp-9ks{sf zK9g#g_t>gi!@YgrBHsMNEl_<$Rt!)k2xDgn;bwn0N!aTeG?KdY>7tc@uY2kPvse(|eNBx4hfarqpsOtGH zsCY1E4@6pbWmj#xUs)e;kb67G*~6XMG%>V%oX#sFnCL)KBp`2q#cU0@MM^ConOKzI zM}E7Y97l3WGE`0nv@j$uPs^W7^7$Bg3j)(c&EMKv=r%=6Id7i7oFd)j;AU|+OM^1y{ZP48Y2)Ps59FszdpHW z*r^JSP`S_J+HOn3Aq2VT5>Qe z&(?>=cI1&3R+j6|ev{H|^_Rd5Hn`%iBIjjFScd#*+O^-#Cpnv4d{CO$DG^zQ2Aw~)#d z_0H_5HYB3x7Jg)8Y#h5EvrjetRQRIm-mCcajLRZE-wTxbG#`5P3ysKJADk#CTh3i2 ze=Z`~pK?9@^`LL3$7|e_{B6KtlI|E!2rlzord^+6n4cm;EazSAOAN<8<+|P1J6g-q zx?iMD$SU=Vd{}*K8IT0Dp3$DSyv7}jJ$SU4x~ulFeEo#@?8z?ZM&zEb3di`3i0#*r zbV7EK2a|o4h#trf#IG$YXU}Kc7veG3`#c-oXo<9(>!>4Od0GnU&fR`<45k06RIgmP zBd5UcOij(sUv#6GSsG!l;KE(SH`1?)ho*TXZA#*-RvjzR+pHWfUYMsHZ2v`v-21Ml zIyKCvd^iRzDM5+H)?668cC0;9_t%Yf$zI${k5$zUe_Vm5RpRxv9XB!dux!uk;%zOz z-)5Du8{d4Dmun(Ie1fLeEgQ zf-y(peZ5R^ZUtYb#bT`a+qDc&P5ZCZs0nj%+Ov+Jn}gr>l~?0j?tgJL6xTsw&4c%*h7#*l|Fl-PHgoxYVN+1{BtH>O9B~ zUHEF?BzS9sV38LnNo`RbHBYg@wI&}`>EHESexRw3+eWi~($7+<-y*&M z;sZ{vki-v_fSTrxzLMt7@eY-A zwY*)%NR&&5Jwh|Un;MIO8`C33uXo^Hk~#f?Zv~Ot%q~sBQ`8$`&%T?=zniD|IHu|m zW8#n7UxXA+OsZm=P{lA@{X)@{U?a5RkM{1O9GlCS71IxNigz4}+s9}2LDcc9w>qcJ zTiqPwyP&bTM@DMhhu1Q_2gs$xyZ)E> zh92{U8n4;wGraM-7mllxHU?$I!?4RpIuss;WbqSihvKca=>2XjI5bcAd6<^s>ofA6 z?#R@%*r_dcc%J>(U=h@6v85`jFj?~y!@)I9RfLV#(pX#{b3%DY4--MNhmSDiw%eb2 zP6l(5$t^rHwhR+kcbOyDaNxPyllH-L2JeEV$k#6-Lxa;UUF zw~J^Y8dLN*VRrT;rGC)3B-Z!@RC<#F?#ZC301;}QI;&sa{7Nd>KHzydseVyvN@_iH z$Ted7x$-IWWcOwEwsrR=vZ`2==U7aIQQC{lZkxDuP#g+;CHjweJ_;ASS)CV+|N2@L zzJL;#Qrk>*aaZqkWJz#4`rH4e3VYk@SjA&Lg3=#OQwD#6m~jC%*#S8Isq?*DG)4t7 zblQ)tMdYH0185qol$3nYICMYTr7&d;e-=J zgeIqjM=kh#oSRWB533uJ^T_uoU$4qCM6vYsBaSXH1ijPU%)eJE^@8_ zi3b;p5J^yBJz1eF9@N|l)h4z<6ug^ZLNEW2(+0>O4Br_ndL*9L`DE< z7dJ)VYD5AW+C-dEV@g|6@f84+`W+qJu>w%V#=y7{7B%#z4)Xx69v8Y`1s-{KDHyhh$e7aM3AmU;|B9_ z6b^M6iADA5&l(={)^0x7wiKS>%9Tz0jLr0q;wU{!tK}jY``8QS{9fcwh+E-H`kO7) zha7kYAiqkM4{)Wv4lp6V(DU&BVnJe6;0u4QGbKJ#K@{b%zKK0|8!aad_fYCAs9oWB z?*MDdGbSm6eSBmQ%K(R#Lz`g}l~Vm72uPJ*(VjGRMyB{iz9#zT=bK-zILJdJPVzg_ zMN>WSVT;v{n1V6V_FG~Pr4DLXi;hj5 zPC1ixd@J22yd~yyy0T8O7i7$M19$=SPE=4-=43n$wV>83iYkTdvYjeuMVu+Fex9<> zy*Y7*n$C#hI$by3(A)e`wN=oxGz-7EN@G=`qG=Z_*D?IiC$NdqS9bGZp-&QVlWAQ@ zp8*a2nU9+??AB9Nact)nG}u)WFqaQj7j$qvppPA+0tn{lNjdp`t9q4D5AcwPD{wcf zb-i-3sz69sy2pi&nNdr6kDnE&H?m8Hj=!Gs2Zg1#=FM>?i`a2xQp>y&E+UH}iT4fb z`>cp$p4H*MZgnuIQcez+MsuJPt&g+MS}g0Hx~D5t3mNX%09-SA$3H@&u5#mBt+0xo zFB#mGcrmW7g#!8I*6p>glWgUjAR8QTPgCL8@q0@=ll<&ZmI?^z8Ut~h1T?x4=Mi0~ zvb2er+_xC?`kDuBKkadXMQjL($muzh$;s#acYPm6i)z;TquH*!W!0!VxL_B)UzSp!|h3y>lYS( z^fS}-i=O5$>hAnTC$>!=-~bl$3ef(fk^|(ZCLYw*^}RzVxG~;4UB4c1j?}SWS{V)N z$#?cCQXg31w+nir*}s2FMd;HRThBLxOkmzIz-(e5&&Tzn4yu!S1pkN1tcdu7U zzi#AtMf`l_kZgr6r$v5UxuyG)8oP4~)AVPB)gO1b`I~Qmd>sP^2}CBugh8kSmUO|f z`DI*)RRcz`KD%J`y)T^jG78Nx^{TY}KyyIjtnyAvu}P5m6HBD@hU%kvWYkomDfq{qf4jkErF74Q^Gly7$Qkg7AGNB9U4Tor_r`TlpEx z!#bcxTL@7L%!CQc@!tYG8R>aUC#tI-xjD=9*xs~zr#t&F;ubfnU`%sPyi>kZ86GJA zF%Y&|prxx6p^rthpX##ZRhS`))T__7_1P(#RaKAXqr@Zm!wd&?O^>KDFA-qgPEfp; z2ksQUWpM>Hw>70S=ZS}g?D0kFglF$n7C1U6JbVzoC3^Sy_apOg))sm^kA^n?@%n5#Uj3t(n=^>RlU;Dq# z$o?uk=k(!4o-Es%DU;2EkGM=q5uy=7r+N*XSZjduoTE*_Dl{b?;AtOoWm7*p6-h-o z9Pt%%&w|vTU$?zEeoD;8QP}rY2l+Y3w5W4Z?%`#MB9V6Ke8zZ&RyE$0S@`LVnGG3n z&A0BXXPHIg8MZ{xQC#5^>P<$L-IaiMH1W2NyyRisMS zUEbN}Zz_+doDJ0tMfwXm_*qe(Q5%qRpO8$@M{=PC3mEqN>)3EP@kkk!8?kF{o3a{@ zR&MD666uewDAO56Q*P~n4m)ZZn0;4S|+BM_zwN&(SGtIwCRuZ2X!QslQEtA^bTT zNy%8-m|dIjD$mk7)ne&hwp;ed(&aRf{vOaxEKtaN%Xou_U^fp!T@|2hIop4~wBqM; z2%}|F?vK7Gmi$rPT;aKQyY~`AdHd8}j+rT(?K`Yk3J}fOAfFEd)jI^z!=hgzsAScGWv!B*M~=D#qfi0Z(q0tMBrwT>jfAHFQr zEnwe!1PjODwb`r{V^YKfpXuH?9w({K**QytbGR<4kSVj4) zj|9b*yR`pBxA$8Q5FF`V2$hpscy7k1+MZogR*~Dv$(fD&4W*sRBb!r9sAV)dXop;c ztwU$KI7F?KqF#^t7=_Bp*n_s0$B)fFxakHj6x3{%g;vV}j=j z^~Q%ECI&Bg((wJuX`ydQ+F1qZ;@(A)lABOv7+k?Z+(bgpLJSH(=WcUMG4$?M+CSas z3+i77uj;rhIz_5x1qXd$zah%A6W1yiWP6Il1$L1lDSkdK4932J5O>;d5G$z~ zN$V86S5aU*H{s@KE45XzSG4zs-bO-QQe)XhY3EW3_^m_+`{cYO#N8d1J#NjfIa;P) zH%WA#?d{%P8pzI0Sld>Q9RYz249ym)&SXU!K+@BWQEMA(yx%AZRF?QFyh+f_G(otX zF|$PUdR&S>PI~W?`D7}HVQp(;mHaY5g0xB&M&lxKrJMxRQ{i5+C2mruth(VGWKu9) z!xL?0i#reGDVebYapVgY6UdelRkkPRV3NjRNe+oZ!iO$No%>=d7!=!tqb@-r96I+J zP;*>WFV`2IB?$J-pU|yD(>gO&e;sFBB0s6~xA%YY=#)ve*1e?yMqk7A(^o5MD@JOp zH&sR*W1E$`y{{eQR$FFg>ABgL|9Z7H7e|uf!}Sv?hwhL%$WTQ8vvm~nZr4}s^vy`@ z^sQ3|(Py3x(v!Q6n;)@W?rM7q!{6M3tigDofcR#TjtJxJov)}j!rA_^DC)}TVSTygnz(CqrcykyU|>Qo$eG+MrZk9lyl!;K~c{uNmJzUz12Mi<8$ozs$6veW}jz6B$MX+bJkz9a}Ef zE@MYDqh|flonUJ?|I1Sq`&hP}=}Yv{`D2vMd5i0X_U2Lhk>fmgC5m9?qA^`dR=_>d zt5prQh%du#MU+a(GQ-E;2}iT?r0==U#MQ2_riMI6a_*%wEkG$k5_15t8C>vSc6w&L zK4i_ZCPbL{eL_P@f-XEK=oqS|_3YB)BIx`^+4}g8?-?8#COLgMzAwM!%uW}+UN=3cUhZCWfZNXS?5ej>^MO`QhCB&LzL^7rs39aq;|LggX1D<&!{fc9JtG6- zMpc)oq`frZoV)3?#oH>tsHX7nEj-C0>slc?p_L%mY{6sOQ%X+^u7sM1zn{9KB6?c( z1T{bRoZ&fzIJxCV{XI~;k)fj&03~>ah_QINR$}Z}n-vZ>eW){eDNY78C9v8Zrsiv{ zRu{-1&ZYXMGm*wf$o-XZ9Zc$L#19NJO++`5)M7X~xIl1gKajz#G?cu2@=or|g&_Y+ zo)z*ltnmJv7JrY?M~QW6iP`-)_br4G9OOOaCMsfcS1tM<@9>yAZ*N;#ja5|E<8q0N zh@T>y#w2N}06OEa8oCk8JcO)4aC{4`=zjH9Z|R^Gv7&BNJ=I|()m8`K33^Y`G9T_P zfq{6B^ax)>7=dUvpneRHd zjF*ca&xJK70bw`hzzb4U)hFrQm(F9ZzW^D=U{c>fm-ABFoq z$!yvu_f0YBhIDD$OQEx0<&Yg(Kc0b>Wk4QqNp7@n-kz~y`$o`0C z{#2b%ai4?xWyZM|?!2&1y2DUaq;oEoF;t#E|Eh@8)DcG%w-mw zWtO)u*?w`YGN~b*Z3Y=Qxz)zTO_BHskdo*_F@zvNYoz#2hKgnBv#4_ldCYci z+v{JxmX|zRPF4GEG;T%nExN1ku4mozd0S`W-J>3Q!P%Czi%#FJK!JS1Tn$X54v8nv zfryKaB3E@a1>GidXU#**{ho;bk=oZ*lRQGAJM^dO0@Zs_21=4C*N z4>s4s#_Q7WnwRTRlW^KGO0xCgPF;GT_dxnGew7Z&mGyo~(ITwCJooTRGEGJj-pKh*4ncWl@a7h;hS6`?zt(`2kYm0*(a+3M(urd4hT-?n|ALU$m|5 zqqkdmjc1}$h^Ro&#U0Cp7{pWp$H)O2j1Z#Q20tPNMsbsdT zGX}T;`xNfQb_iz!)Q}88jAk4|g1QinRzt;iH*bk&<2B_=JJN9K7SeB2!{@D;PcjCC zEdoW;sfD6u%#?LIw3IDaT`-RC_tneRQzRdzQ(}Bd=zVsp>Bozq7ITrO9ep3xoov^S zE+wtv*1rAvgWr|G%C>?Le0sti5drGN!F3t;V|6|y(-i}uHua2C(*42vW;b34tRnbG z{f!6~5EO<{kbE(#p_4W+qd4QiB^0Cj^r3rN_xFz1{oK!hujp4f&~>yvpO3{MaizUZ z7G>_OmOk_DT|thmSq0iHPL3me(au$}pu&_DE|XGUS(ysaq{xAZ&8Pi@utA;N7>I!6 z8}vFr);Mg?ujYQ3-iY*y{M0FNPj0wGue5t=r+LCPjF0|i^u^9Y9bIZeoo5!XXSZcB zj{pb*DIF@$qpHr5kftHn-a7RgRd>3vphI(2^ddynf(ImDgaivnUTwV4Q|inl(}cy2 z9J}a-5ox0qvgYVZvA-T;6njtl7=6oGI)pSka#WBC}{NUHhbjPx472zP%$L6r@2|N3w8xLHS6}OW& ztP7k_Y{)q@OjuQpa8DN(ps{c=M?h-&5p!{Q(*DKc*M9fHmy3^mZ+#`Tx4w`Alr=>B zOo)kiRO40z=lD#3&PYJzKmo{Tq-?K1F88&pevy@_zK2!#N;fl!P@wM1;V62GfSIY!#{BaNaQntzP|bH&J?jyRu>LBNsI& z)~dgDVms8NCKp`4hl;Y9#$Mc1S=*sG zg&V6&eY5y;qc7&$8q2rJFSf?zc?J1HxKsO=KfFE^IM@LoG50Dll)#2lT#y63msm+K zzBok`L#Pex&aiAqeg3mtM#4A8z#BR$@;gU=oV?$>L}_Acg)&e;IZSZ)mD~W~SG<|5 z@mUX?$2c3C7Wpo%`JT{ZRu*S+bAA3$=dKNC=QY050yzzJMG6Esf+0So_yspZISVWR ziPbRcyhCt5c3E$Qn|AC9tUh8PU9*l7=JYMQWx|%X0#Y!jPx9-THCZ-s%L7dOf^FGC zuh;^koRQU+rk+FZ)$b?8H>5xwBRZh?JH}Dia+%dQbr#BPk{k3-BM5;$gTNexGD}-! zjpa`tgTg=5wqH$t*x9W0xO$4@Oje=TQ5&wnNEi3ppu(hM^QNH%1i3qd8EWvBQWy3% zmUki!VSS0IAv*2jp~uiz;^LkM?G%>mMjJ`l$Js4_PAn?KX4;R@0K<8>M4gS7zNslv zdTQm`@ry#@HWFrL9L?Pt+P6{3T~NEJ4>HKPI+Tc;`v>hEr+XV_bCqI))^V_8R8EEO zLuZqooDVlGEG!4^=_y^9BuxC;*xyFm#qpR~)c9Q^J3IeB%)NJ1Q{Ue%h|)wrl-{Eh zkuE4jT13Bqh=8E<5)qLm1f)YC0s>MaD4-}rK}4lV4L$T;q(i6)0#X7AU=4`%|9J^Js`=c+T#W`lxS5Zcu{YZ3c>ffcg@5XuvYE zgX{Es=phc8{LBY@vnDb|Gx-Vk;QcGur0)h+KP5Bz1!Pu%eCEG85j^3s5TPbDz+F2n zLdXL%c+yqgJ8a}kruODc$qL2f4<+QOo^abgm1%$ZrXX<~2cI))NAm3eJI~%Z7Yh-W z=`c0v6qc?IXKB>^6r%D$y__xD+LGtW?Tqd-MuTle7Xc$R2PH|6JIX>`JLv4RI<&Ws z^woj6ef7*U#Rd94Et`T#S1u%Z%$?4_CTg=_^Mc0)H1A2ri*TCo3{YkQGWvG5OYaQTfaq)Tilc`oPy*GJc-} zahv|~^7S4svbaoPOuO3~`#_Jf@btzk6gg+~N$qyzWBq$P5FzIvIXzqLOB>L*u*jYj zI8`8lZn07hpRq9kbmHR5N4Nk(Nd0()1Q_RlcK9*EarzfP85v8rz?K0E%Ld4}|NSq} z|MFk61Q4ax0iX#49_y#hqcUZ>o-)1JXy1KvBp$t-4V2|O(J}UXdCi3BTk#PK5|eqG z{p!_qOH%CF-0c=9_q?Z9CT!Mws601TdO#Jx=D&jbTN%ASxuXU@6`5P(bD|8X$koT! z|AavV3jUCbTLxbR#0YWZSPCRmcwv>G5qEWIyIJpOBERoKoB~en6zkz8iihF4TpS~V zzjLrLqWhuW+mrydYj^MZ1bDsPsaK3d7Ts)A?Qr=r-PR;!`2}O|89L`M_mOtl;+B@> zG;VzZ`~O*Mh0K4@l^Ca+{9mS-`B%SI*hpH9wxTA6RzZR;p<=>)4)}ge?yn>4c61D` z@`!ElFC@*!^_Tf+KW-q%Mi@MmGpKoVh0g86MUQ~5l+tjL*|HM(=I;_oA5O1eKBB zVaR+C;gtt`e-3~ULJ8&F%Bg6A3EqU10;tCUm|D1qS}LSH!)xE`Y^YD^#XY>@>eD4R zROZgY1^Ro7n~VBca2d}Y4CmC5`4)Zin*Q2Cl{ zK|u+$EEqcvs)o?Skg0zd_JBJckUNY3^M$_e4*2RM4qvZ=r}}s

public sealed partial class TestGrokPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs index 39f39a92812..0f3088cb7ff 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs @@ -50,12 +50,22 @@ public sealed partial class UpgradeTransformsRequestParameters : RequestParamete /// /// -/// Upgrades all transforms. -/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It -/// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not -/// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when -/// Elasticsearch security features are enabled; the role used to read source data and write to the destination index -/// remains unchanged. +/// Upgrade all transforms. +/// Transforms are compatible across minor versions and between supported major versions. +/// However, over time, the format of transform configuration information may change. +/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. +/// It also cleans up the internal data structures that store the transform state and checkpoints. +/// The upgrade does not affect the source and destination indices. +/// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. +/// +/// +/// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. +/// Resolve the issue then re-run the process again. +/// A summary is returned when the upgrade is finished. +/// +/// +/// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. +/// You may want to perform a recent cluster backup prior to the upgrade. /// /// public sealed partial class UpgradeTransformsRequest : PlainRequest @@ -88,12 +98,22 @@ public sealed partial class UpgradeTransformsRequest : PlainRequest /// -/// Upgrades all transforms. -/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It -/// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not -/// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when -/// Elasticsearch security features are enabled; the role used to read source data and write to the destination index -/// remains unchanged. +/// Upgrade all transforms. +/// Transforms are compatible across minor versions and between supported major versions. +/// However, over time, the format of transform configuration information may change. +/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. +/// It also cleans up the internal data structures that store the transform state and checkpoints. +/// The upgrade does not affect the source and destination indices. +/// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. +/// +/// +/// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. +/// Resolve the issue then re-run the process again. +/// A summary is returned when the upgrade is finished. +/// +/// +/// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. +/// You may want to perform a recent cluster backup prior to the upgrade. /// ///
public sealed partial class UpgradeTransformsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 27e5362452e..397e22bf78c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -49,8 +49,26 @@ public sealed partial class XpackInfoRequestParameters : RequestParameters /// /// -/// Provides general information about the installed X-Pack features. +/// Get information. +/// The information provided by the API includes: /// +/// +/// +/// +/// Build information including the build number and timestamp. +/// +/// +/// +/// +/// License information about the currently installed license. +/// +/// +/// +/// +/// Feature information for the features that are currently enabled and available under the current license. +/// +/// +/// /// public sealed partial class XpackInfoRequest : PlainRequest { @@ -81,8 +99,26 @@ public sealed partial class XpackInfoRequest : PlainRequest /// -/// Provides general information about the installed X-Pack features. +/// Get information. +/// The information provided by the API includes: +/// +/// +/// +/// +/// Build information including the build number and timestamp. +/// +/// +/// +/// +/// License information about the currently installed license. +/// +/// +/// +/// +/// Feature information for the features that are currently enabled and available under the current license. /// +/// +/// ///
public sealed partial class XpackInfoRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs index e3db78bf7d7..5d80470c1ec 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -42,7 +42,9 @@ public sealed partial class XpackUsageRequestParameters : RequestParameters /// /// -/// This API provides information about which features are currently enabled and available under the current license and some usage statistics. +/// Get usage information. +/// Get information about the features that are currently enabled and available under the current license. +/// The API also provides some usage statistics. /// /// public sealed partial class XpackUsageRequest : PlainRequest @@ -66,7 +68,9 @@ public sealed partial class XpackUsageRequest : PlainRequest /// -/// This API provides information about which features are currently enabled and available under the current license and some usage statistics. +/// Get usage information. +/// Get information about the features that are currently enabled and available under the current license. +/// The API also provides some usage statistics. /// ///
public sealed partial class XpackUsageRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index b3d675da449..180d5e8e8ef 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -48,7 +48,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -65,7 +65,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -82,7 +82,7 @@ public virtual Task DeleteAsync(DeleteAsyn /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -100,7 +100,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -119,7 +119,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -136,7 +136,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -154,7 +154,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -172,7 +172,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task> GetAsync(GetAs /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -204,7 +204,7 @@ public virtual Task> GetAsync(GetAs /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -221,7 +221,7 @@ public virtual Task> GetAsync(Elast /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -239,7 +239,7 @@ public virtual Task> GetAsync(Elast /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -255,7 +255,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -271,7 +271,7 @@ public virtual Task StatusAsync(AsyncSearc /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -288,7 +288,7 @@ public virtual Task StatusAsync(Elastic.Cl /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -306,7 +306,7 @@ public virtual Task StatusAsync(Elastic.Cl /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -322,7 +322,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -339,7 +339,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -363,7 +363,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -385,7 +385,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -407,7 +407,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -430,7 +430,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -454,7 +454,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -477,7 +477,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { 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 d46bb204186..6afbfcf0cf6 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 @@ -41,9 +41,13 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -53,9 +57,13 @@ public virtual Task AllocationExplainAsync(Allocation /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -65,9 +73,13 @@ public virtual Task AllocationExplainAsync(Allocation /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -78,9 +90,13 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -96,7 +112,7 @@ public virtual Task AllocationExplainAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -110,7 +126,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -124,7 +140,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { @@ -139,7 +155,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -154,7 +170,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -167,7 +183,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -180,7 +196,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) { @@ -194,7 +210,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -209,7 +225,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -222,7 +238,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -235,7 +251,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) { @@ -249,7 +265,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -264,7 +280,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) { @@ -278,7 +294,7 @@ public virtual Task GetComponentTemplateAsync(Canc /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -290,10 +306,10 @@ public virtual Task GetComponentTemplateAsync(Acti /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -303,10 +319,10 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -316,10 +332,10 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -330,10 +346,10 @@ public virtual Task GetSettingsAsync(CancellationTok /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -345,10 +361,20 @@ public virtual Task GetSettingsAsync(Action /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -358,10 +384,20 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -371,10 +407,20 @@ public virtual Task HealthAsync(HealthRequestDescript /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -385,10 +431,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -400,10 +456,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -414,10 +480,20 @@ public virtual Task HealthAsync(CancellationToken can /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -429,10 +505,20 @@ public virtual Task HealthAsync(Action /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -442,10 +528,20 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -456,10 +552,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Se /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -471,10 +577,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Se /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -485,10 +601,20 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -503,7 +629,7 @@ public virtual Task HealthAsync(Action /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequest request, CancellationToken cancellationToken = default) { @@ -516,7 +642,7 @@ public virtual Task InfoAsync(ClusterInfoRequest request, C /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -529,7 +655,7 @@ public virtual Task InfoAsync(ClusterInfoRequestDescriptor /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, CancellationToken cancellationToken = default) { @@ -543,7 +669,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -555,12 +681,15 @@ public virtual Task InfoAsync(IReadOnlyCollection /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -570,12 +699,15 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -585,12 +717,15 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -601,12 +736,15 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -639,7 +777,7 @@ public virtual Task PendingTasksAsync(Action/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -670,7 +808,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -701,7 +839,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -733,7 +871,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -766,7 +904,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -797,7 +935,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -829,7 +967,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -841,10 +979,10 @@ public virtual Task PutComponentTemplateAsync(Elas /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -854,10 +992,10 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -867,10 +1005,10 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -881,10 +1019,10 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -896,10 +1034,10 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -910,10 +1048,10 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs index 72a641f5893..263f7a4f19d 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 @@ -96,9 +96,10 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -108,9 +109,10 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -120,9 +122,10 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -133,9 +136,10 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -234,7 +238,7 @@ public virtual Task GetPolicyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -247,7 +251,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -260,7 +264,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -274,7 +278,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -289,7 +293,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -302,7 +306,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -316,7 +320,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs index b1663f4cfaf..2e526151b69 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -41,7 +41,8 @@ internal EqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -54,7 +55,8 @@ public virtual Task DeleteAsync(EqlDeleteRequest request, Can /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -67,7 +69,8 @@ public virtual Task DeleteAsync(EqlDeleteRequestDe /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -81,7 +84,8 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -96,7 +100,8 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -109,7 +114,8 @@ public virtual Task DeleteAsync(EqlDeleteRequestDescriptor de /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -123,7 +129,8 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -138,9 +145,10 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) { @@ -150,9 +158,10 @@ public virtual Task> GetAsync(EqlGetRequest reque /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -162,9 +171,10 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -175,9 +185,10 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -189,9 +200,10 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) { @@ -201,9 +213,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -213,9 +226,10 @@ public virtual Task GetStatusAsync(GetEqlStatus /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -226,9 +240,10 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -240,9 +255,10 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -252,9 +268,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequestDesc /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -265,9 +282,10 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -279,7 +297,9 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -291,7 +311,9 @@ public virtual Task> SearchAsync(EqlSearchRequ /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -303,7 +325,9 @@ public virtual Task> SearchAsync(EqlSearchRequ /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -316,7 +340,9 @@ public virtual Task> SearchAsync(Elastic.Clien /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -330,7 +356,9 @@ public virtual Task> SearchAsync(Elastic.Clien /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -343,7 +371,9 @@ public virtual Task> SearchAsync(CancellationT /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// 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 index cab5032dca0..54b8f92f245 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -41,9 +41,10 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) { @@ -53,9 +54,10 @@ public virtual Task QueryAsync(EsqlQueryRequest request, Canc /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -65,9 +67,10 @@ public virtual Task QueryAsync(EsqlQueryRequestDes /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -78,9 +81,10 @@ public virtual Task QueryAsync(CancellationToken c /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -92,9 +96,10 @@ public virtual Task QueryAsync(Action /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -104,9 +109,10 @@ public virtual Task QueryAsync(EsqlQueryRequestDescriptor des /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -117,9 +123,10 @@ public virtual Task QueryAsync(CancellationToken cancellation /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs index 030d6db889a..d74eed54e18 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -41,9 +41,14 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -53,9 +58,14 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -65,9 +75,14 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -78,9 +93,14 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -92,9 +112,14 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(CancellationToken cancellationToken = default) { @@ -105,9 +130,14 @@ public virtual Task ExploreAsync(CancellationToken c /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -119,9 +149,14 @@ public virtual Task ExploreAsync(Action /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -131,9 +166,14 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -144,9 +184,14 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { 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 093cb132d95..d4cd006316c 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 @@ -44,7 +44,7 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequest request, CancellationToken cancellationToken = default) { @@ -57,7 +57,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequest reque /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -70,7 +70,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRe /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -84,7 +84,7 @@ public virtual Task AnalyzeAsync(Elastic.Client /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -99,7 +99,7 @@ public virtual Task AnalyzeAsync(Elastic.Client /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -113,7 +113,7 @@ public virtual Task AnalyzeAsync(CancellationTo /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -128,7 +128,7 @@ public virtual Task AnalyzeAsync(Actionanalysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -141,7 +141,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescri /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -155,7 +155,7 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -170,7 +170,7 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -184,7 +184,7 @@ public virtual Task AnalyzeAsync(CancellationToken cancell /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -196,8 +196,9 @@ public virtual Task AnalyzeAsync(Action /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -209,8 +210,9 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -222,8 +224,9 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -236,8 +239,9 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -251,8 +255,9 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -265,8 +270,9 @@ public virtual Task ClearCacheAsync(CancellationT /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -280,8 +286,9 @@ public virtual Task ClearCacheAsync(Action /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -293,8 +300,9 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -307,8 +315,9 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -322,8 +331,9 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -336,8 +346,9 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -351,9 +362,30 @@ public virtual Task ClearCacheAsync(Action /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -363,9 +395,30 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -375,9 +428,30 @@ public virtual Task CloseAsync(CloseIndexRequestD /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -388,9 +462,30 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -402,9 +497,30 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CancellationToken cancellationToken = default) { @@ -415,9 +531,30 @@ public virtual Task CloseAsync(CancellationToken /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -429,9 +566,30 @@ public virtual Task CloseAsync(Action /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -441,9 +599,30 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -454,9 +633,30 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -471,7 +671,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -484,7 +684,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -497,7 +697,7 @@ public virtual Task CreateAsync(CreateIndexReque /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) { @@ -511,7 +711,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -526,7 +726,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -540,7 +740,7 @@ public virtual Task CreateAsync(CancellationToke /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -555,7 +755,7 @@ public virtual Task CreateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -568,7 +768,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) { @@ -582,7 +782,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1443,7 +1643,8 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1455,7 +1656,8 @@ public virtual Task ExistsIndexTemplateAsync(Exists /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1467,7 +1669,8 @@ public virtual Task ExistsIndexTemplateAsync(Exists /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1480,7 +1683,8 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1495,7 +1699,7 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// /// /// 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. + /// Get 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. /// @@ -1508,7 +1712,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// /// /// 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. + /// Get 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. /// @@ -1521,7 +1725,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -1535,7 +1739,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -1550,7 +1754,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -1564,7 +1768,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -1579,7 +1783,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -1592,7 +1796,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// /// /// 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. + /// Get 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. /// @@ -1606,7 +1810,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// /// /// 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. + /// Get 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. /// @@ -1620,9 +1824,21 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { @@ -1632,9 +1848,21 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1644,9 +1872,21 @@ public virtual Task FlushAsync(FlushRequestDescriptor< /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -1657,9 +1897,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1671,9 +1923,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -1684,9 +1948,21 @@ public virtual Task FlushAsync(CancellationToken cance /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1698,9 +1974,21 @@ public virtual Task FlushAsync(Action /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1710,9 +1998,21 @@ public virtual Task FlushAsync(FlushRequestDescriptor descriptor, /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) { @@ -1723,9 +2023,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serv /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1737,9 +2049,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serv /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -1750,9 +2074,21 @@ public virtual Task FlushAsync(CancellationToken cancellationToke /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1764,7 +2100,21 @@ public virtual Task FlushAsync(Action con /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1776,7 +2126,21 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1788,7 +2152,21 @@ public virtual Task ForcemergeAsync(ForcemergeReq /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1801,7 +2179,21 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1815,7 +2207,21 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1828,7 +2234,21 @@ public virtual Task ForcemergeAsync(CancellationT /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1842,7 +2262,21 @@ public virtual Task ForcemergeAsync(Action /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1854,7 +2288,21 @@ public virtual Task ForcemergeAsync(ForcemergeRequestDescrip /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1867,7 +2315,21 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1881,7 +2343,21 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1894,7 +2370,21 @@ public virtual Task ForcemergeAsync(CancellationToken cancel /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3613,8 +4103,56 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3626,8 +4164,56 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3639,8 +4225,56 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3653,8 +4287,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3668,8 +4350,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3682,8 +4412,56 @@ public virtual Task RecoveryAsync(CancellationToken /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3697,8 +4475,56 @@ public virtual Task RecoveryAsync(Action /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3710,8 +4536,56 @@ public virtual Task RecoveryAsync(RecoveryRequestDescriptor de /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3724,8 +4598,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3739,8 +4661,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3753,8 +4723,56 @@ public virtual Task RecoveryAsync(CancellationToken cancellati /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3934,7 +4952,8 @@ public virtual Task RefreshAsync(Action /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3947,7 +4966,8 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequest /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3960,7 +4980,8 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequestD /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3974,7 +4995,8 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -3992,7 +5014,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -4005,7 +5027,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4018,7 +5040,7 @@ public virtual Task RolloverAsync(RolloverRequestDe /// 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. + /// 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) { @@ -4032,7 +5054,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// 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) { @@ -4047,7 +5069,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -4061,7 +5083,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4076,7 +5098,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4089,7 +5111,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// 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. + /// 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) { @@ -4103,7 +5125,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// 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) { @@ -4118,7 +5140,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -4132,7 +5154,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4144,8 +5166,9 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4157,8 +5180,9 @@ public virtual Task SegmentsAsync(SegmentsRequest request, Can /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4170,8 +5194,9 @@ public virtual Task SegmentsAsync(SegmentsRequestDe /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4184,8 +5209,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4199,8 +5225,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4213,8 +5240,9 @@ public virtual Task SegmentsAsync(CancellationToken /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4228,8 +5256,9 @@ public virtual Task SegmentsAsync(Action /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4241,8 +5270,9 @@ public virtual Task SegmentsAsync(SegmentsRequestDescriptor de /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4255,8 +5285,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4270,8 +5301,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4284,8 +5316,9 @@ public virtual Task SegmentsAsync(CancellationToken cancellati /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4509,8 +5542,20 @@ public virtual Task SimulateTemplateAsync(Action /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4522,8 +5567,20 @@ public virtual Task StatsAsync(IndicesStatsRequest request /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4535,8 +5592,20 @@ public virtual Task StatsAsync(IndicesStatsRequ /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4549,8 +5618,20 @@ public virtual Task StatsAsync(Elastic.Clients. /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4564,8 +5645,20 @@ public virtual Task StatsAsync(Elastic.Clients. /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4578,8 +5671,20 @@ public virtual Task StatsAsync(CancellationToke /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4593,8 +5698,20 @@ public virtual Task StatsAsync(Action /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4606,8 +5723,20 @@ public virtual Task StatsAsync(IndicesStatsRequestDescript /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4620,8 +5749,20 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4635,8 +5776,20 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4649,8 +5802,20 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs index 1ff6bc4c390..3699a793e74 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -275,7 +275,17 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -287,7 +297,17 @@ public virtual Task PutAsync(PutInferenceRequest request, /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -299,7 +319,17 @@ public virtual Task PutAsync(PutInferenceRequestDescriptor /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -312,7 +342,17 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -326,7 +366,17 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -339,7 +389,17 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs index e612028f214..31b8355f352 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -41,7 +41,8 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +54,8 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +67,8 @@ public virtual Task DeleteGeoipDatabaseAsync /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +81,8 @@ public virtual Task DeleteGeoipDatabaseAsync /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -92,7 +96,8 @@ public virtual Task DeleteGeoipDatabaseAsync /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +109,8 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -117,7 +123,8 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -131,7 +138,98 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -143,7 +241,8 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -155,7 +254,8 @@ public virtual Task DeletePipelineAsync(Delet /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -168,7 +268,8 @@ public virtual Task DeletePipelineAsync(Elast /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -182,7 +283,8 @@ public virtual Task DeletePipelineAsync(Elast /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,7 +296,8 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -207,7 +310,8 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -221,9 +325,10 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -233,9 +338,10 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -245,9 +351,10 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -258,9 +365,10 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -272,7 +380,8 @@ public virtual Task GeoIpStatsAsync(Action /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -284,7 +393,8 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -296,7 +406,8 @@ public virtual Task GetGeoipDatabaseAsync(G /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -309,7 +420,8 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -323,7 +435,8 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -336,7 +449,8 @@ public virtual Task GetGeoipDatabaseAsync(C /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -350,7 +464,8 @@ public virtual Task GetGeoipDatabaseAsync(A /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -362,7 +477,8 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -375,7 +491,8 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -389,7 +506,8 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -402,7 +520,8 @@ public virtual Task GetGeoipDatabaseAsync(Cancellation /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -416,7 +535,152 @@ public virtual Task GetGeoipDatabaseAsync(Action /// - /// Returns information about one or more ingest pipelines. + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -429,7 +693,8 @@ public virtual Task GetPipelineAsync(GetPipelineRequest req /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -442,7 +707,8 @@ public virtual Task GetPipelineAsync(GetPipeline /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -456,7 +722,8 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -471,7 +738,8 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -485,7 +753,8 @@ public virtual Task GetPipelineAsync(Cancellatio /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -500,7 +769,8 @@ public virtual Task GetPipelineAsync(Action /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -513,7 +783,8 @@ public virtual Task GetPipelineAsync(GetPipelineRequestDesc /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -527,7 +798,8 @@ public virtual Task GetPipelineAsync(Elastic.Clients.Elasti /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -542,7 +814,8 @@ public virtual Task GetPipelineAsync(Elastic.Clients.Elasti /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -556,7 +829,8 @@ public virtual Task GetPipelineAsync(CancellationToken canc /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -571,11 +845,12 @@ public virtual Task GetPipelineAsync(Action /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -585,11 +860,12 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -599,11 +875,12 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -614,11 +891,12 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -630,7 +908,8 @@ public virtual Task ProcessorGrokAsync(Action /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -642,7 +921,8 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -654,7 +934,8 @@ public virtual Task PutGeoipDatabaseAsync(P /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -667,7 +948,8 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -681,7 +963,8 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -693,7 +976,8 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -706,7 +990,8 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -720,10 +1005,100 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// - /// Creates or updates an ingest pipeline. + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + descriptor.BeforeRequest(); + return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -733,10 +1108,10 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -746,10 +1121,10 @@ public virtual Task PutPipelineAsync(PutPipeline /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -760,10 +1135,10 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -775,10 +1150,10 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -788,10 +1163,10 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -802,10 +1177,10 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -817,7 +1192,9 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -829,7 +1206,9 @@ public virtual Task SimulateAsync(SimulateRequest request, Can /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -841,7 +1220,9 @@ public virtual Task SimulateAsync(SimulateRequestDe /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -854,7 +1235,9 @@ public virtual Task SimulateAsync(Elastic.Clients.E /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -868,7 +1251,9 @@ public virtual Task SimulateAsync(Elastic.Clients.E /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -881,7 +1266,9 @@ public virtual Task SimulateAsync(CancellationToken /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -895,7 +1282,9 @@ public virtual Task SimulateAsync(Action /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -907,7 +1296,9 @@ public virtual Task SimulateAsync(SimulateRequestDescriptor de /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -920,7 +1311,9 @@ public virtual Task SimulateAsync(Elastic.Clients.Elasticsearc /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -934,7 +1327,9 @@ public virtual Task SimulateAsync(Elastic.Clients.Elasticsearc /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -947,7 +1342,9 @@ public virtual Task SimulateAsync(CancellationToken cancellati /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// 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 9393a46cfa1..faf42c4af08 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 @@ -42,8 +42,11 @@ internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(cl /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -56,8 +59,11 @@ public virtual Task GetAsync(GetLicenseRequest request, Canc /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -70,8 +76,11 @@ public virtual Task GetAsync(GetLicenseRequestDescriptor des /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -85,8 +94,11 @@ public virtual Task GetAsync(CancellationToken cancellationT /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// 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 6761e0e864f..f01ac29e9c1 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 @@ -114,7 +114,7 @@ public virtual Task ClearTrainedModelD /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequest request, CancellationToken cancellationToken = default) { @@ -130,7 +130,7 @@ public virtual Task CloseJobAsync(CloseJobRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task CloseJobAsync(CloseJobRequestDescriptor de /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) { @@ -163,7 +163,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -178,7 +178,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequest request, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -204,7 +204,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, CancellationToken cancellationToken = default) { @@ -218,7 +218,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequest request, CancellationToken cancellationToken = default) { @@ -244,7 +244,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -256,7 +256,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId, CancellationToken cancellationToken = default) { @@ -269,7 +269,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -283,7 +283,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequest request, CancellationToken cancellationToken = default) { @@ -295,7 +295,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -307,7 +307,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, CancellationToken cancellationToken = default) { @@ -320,7 +320,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -334,7 +334,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -346,7 +346,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -358,7 +358,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) { @@ -371,7 +371,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -385,7 +385,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -397,7 +397,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -409,7 +409,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -422,7 +422,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -436,7 +436,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -461,7 +461,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3837,8 +3837,8 @@ public virtual Task InferTrainedModelAsync(Elastic.Cl /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -3856,8 +3856,8 @@ public virtual Task InfoAsync(MlInfoRequest request, Cancellatio /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -3875,8 +3875,8 @@ public virtual Task InfoAsync(MlInfoRequestDescriptor descriptor /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -3895,8 +3895,8 @@ public virtual Task InfoAsync(CancellationToken cancellationToke /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -4456,7 +4456,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -4470,7 +4470,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4484,7 +4484,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -4499,7 +4499,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4515,7 +4515,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4529,7 +4529,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -4544,7 +4544,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4639,35 +4639,6 @@ public virtual Task PutJobAsync(PutJobRequestDescript return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); } - /// - /// - /// 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) - { - var descriptor = new PutJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); - } - /// /// /// Create an anomaly detection job. @@ -4681,35 +4652,6 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript return DoRequestAsync(descriptor, cancellationToken); } - /// - /// - /// 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) - { - var descriptor = new PutJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - /// /// /// Create a trained model. @@ -6422,7 +6364,7 @@ public virtual Task ValidateAsync(Action /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6434,7 +6376,7 @@ public virtual Task ValidateDetectorAsync(ValidateDete /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6446,7 +6388,7 @@ public virtual Task ValidateDetectorAsync(V /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6459,7 +6401,7 @@ public virtual Task ValidateDetectorAsync(E /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6473,7 +6415,7 @@ public virtual Task ValidateDetectorAsync(E /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6485,7 +6427,7 @@ public virtual Task ValidateDetectorAsync(ValidateDete /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6498,7 +6440,7 @@ public virtual Task ValidateDetectorAsync(Elastic.Clie /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs index a9882fe207b..3a3cb7d2560 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -41,10 +41,11 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequest request, CancellationToken cancellationToken = default) { @@ -54,10 +55,11 @@ public virtual Task HotThreadsAsync(HotThreadsRequest reques /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -67,10 +69,11 @@ public virtual Task HotThreadsAsync(HotThreadsRequestDescrip /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -81,10 +84,11 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -96,10 +100,11 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(CancellationToken cancellationToken = default) { @@ -110,10 +115,11 @@ public virtual Task HotThreadsAsync(CancellationToken cancel /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -125,9 +131,10 @@ public virtual Task HotThreadsAsync(Action /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) { @@ -137,9 +144,10 @@ public virtual Task InfoAsync(NodesInfoRequest request, Cance /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -149,9 +157,10 @@ public virtual Task InfoAsync(NodesInfoRequestDescriptor desc /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) { @@ -162,9 +171,10 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.S /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -176,9 +186,10 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.S /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -189,9 +200,10 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -203,9 +215,11 @@ public virtual Task InfoAsync(Action /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) { @@ -215,9 +229,11 @@ public virtual Task StatsAsync(NodesStatsRequest request, Ca /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -227,9 +243,11 @@ public virtual Task StatsAsync(NodesStatsRequestD /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -240,9 +258,11 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -254,9 +274,11 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -267,9 +289,11 @@ public virtual Task StatsAsync(CancellationToken /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -281,9 +305,11 @@ public virtual Task StatsAsync(Action /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -293,9 +319,11 @@ public virtual Task StatsAsync(NodesStatsRequestDescriptor d /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -306,9 +334,11 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -320,9 +350,11 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -333,9 +365,11 @@ public virtual Task StatsAsync(CancellationToken cancellatio /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -347,9 +381,9 @@ public virtual Task StatsAsync(Action /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) { @@ -359,9 +393,9 @@ public virtual Task UsageAsync(NodesUsageRequest request, Ca /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -371,9 +405,9 @@ public virtual Task UsageAsync(NodesUsageRequestDescriptor d /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) { @@ -384,9 +418,9 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -398,9 +432,9 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -411,9 +445,9 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs index 7924d7d16df..4fc75b8a584 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs @@ -41,7 +41,8 @@ internal QueryRulesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +54,8 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequest reques /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +67,8 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequestDescrip /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +81,8 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -92,7 +96,7 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +108,7 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -116,7 +120,7 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -129,7 +133,7 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -143,7 +147,8 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -155,7 +160,8 @@ public virtual Task GetRuleAsync(GetRuleRequest request, Cancel /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -167,7 +173,8 @@ public virtual Task GetRuleAsync(GetRuleRequestDescriptor descr /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -180,7 +187,8 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,7 +202,8 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -206,7 +215,8 @@ public virtual Task GetRulesetAsync(GetRulesetRequest reques /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -218,7 +228,8 @@ public virtual Task GetRulesetAsync(GetRulesetRequestDescrip /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -231,7 +242,8 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -245,7 +257,8 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -257,7 +270,8 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequest /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -269,7 +283,8 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequestD /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -282,7 +297,8 @@ public virtual Task ListRulesetsAsync(CancellationToken ca /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -296,7 +312,8 @@ public virtual Task ListRulesetsAsync(Action /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -308,7 +325,8 @@ public virtual Task PutRuleAsync(PutRuleRequest request, Cancel /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +338,8 @@ public virtual Task PutRuleAsync(PutRuleRequestDescriptor descr /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -333,7 +352,8 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +367,7 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +379,7 @@ public virtual Task PutRulesetAsync(PutRulesetRequest reques /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -371,7 +391,7 @@ public virtual Task PutRulesetAsync(PutRulesetRequestDescrip /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -384,7 +404,7 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -398,7 +418,8 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -410,7 +431,8 @@ public virtual Task TestAsync(TestRequest request, CancellationTok /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -422,7 +444,8 @@ public virtual Task TestAsync(TestRequestDescriptor descriptor, Ca /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -435,7 +458,8 @@ public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Server /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs index 7103898eb08..fd809d45b05 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs @@ -41,7 +41,9 @@ internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +55,9 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +69,9 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +84,9 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -92,7 +100,9 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +114,9 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -116,7 +128,9 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -129,7 +143,9 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -143,7 +159,9 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -155,7 +173,9 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -167,7 +187,9 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -180,7 +202,9 @@ public virtual Task ExecuteRetentionAsync(Cancellation /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,7 +218,8 @@ public virtual Task ExecuteRetentionAsync(Action /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -206,7 +231,8 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequest /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -218,7 +244,8 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequestD /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -231,7 +258,8 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -245,7 +273,8 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -258,7 +287,8 @@ public virtual Task GetLifecycleAsync(CancellationToken ca /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -272,7 +302,8 @@ public virtual Task GetLifecycleAsync(Action /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -284,7 +315,8 @@ public virtual Task GetStatsAsync(GetStatsRequest request, Can /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -296,7 +328,8 @@ public virtual Task GetStatsAsync(GetStatsRequestDescriptor de /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -309,7 +342,8 @@ public virtual Task GetStatsAsync(CancellationToken cancellati /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -323,7 +357,7 @@ public virtual Task GetStatsAsync(Action /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -335,7 +369,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequest req /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +381,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequestDesc /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -360,7 +394,7 @@ public virtual Task GetStatusAsync(CancellationToken cance /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -374,7 +408,10 @@ public virtual Task GetStatusAsync(Action /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -386,7 +423,10 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequest /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -398,7 +438,10 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequestD /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -411,7 +454,10 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -425,7 +471,9 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -437,7 +485,9 @@ public virtual Task StartAsync(StartSlmRequest request, Cancel /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -449,7 +499,9 @@ public virtual Task StartAsync(StartSlmRequestDescriptor descr /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -462,7 +514,9 @@ public virtual Task StartAsync(CancellationToken cancellationT /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -476,7 +530,15 @@ public virtual Task StartAsync(Action /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -488,7 +550,15 @@ public virtual Task StopAsync(StopSlmRequest request, Cancellat /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -500,7 +570,15 @@ public virtual Task StopAsync(StopSlmRequestDescriptor descript /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -513,7 +591,15 @@ public virtual Task StopAsync(CancellationToken cancellationTok /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index 1993aa63876..82dcdb9e99c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -41,7 +41,8 @@ internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +54,8 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +67,8 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +81,8 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -92,7 +96,8 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +109,8 @@ public virtual Task CloneAsync(CloneSnapshotRequest reque /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -116,7 +122,8 @@ public virtual Task CloneAsync(CloneSnapshotRequestDescri /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -129,7 +136,8 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -143,7 +151,8 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -155,7 +164,8 @@ public virtual Task CreateAsync(CreateSnapshotRequest re /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -167,7 +177,8 @@ public virtual Task CreateAsync(CreateSnapshotRequestDes /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -180,7 +191,8 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,7 +206,10 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -206,7 +221,10 @@ public virtual Task CreateRepositoryAsync(CreateReposi /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -218,7 +236,10 @@ public virtual Task CreateRepositoryAsync(CreateReposi /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -231,7 +252,10 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -245,7 +269,7 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -257,7 +281,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequest re /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -269,7 +293,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequestDes /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -282,7 +306,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -296,7 +320,9 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -308,7 +334,9 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +348,9 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -333,7 +363,9 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +379,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +391,7 @@ public virtual Task GetAsync(GetSnapshotRequest request, Ca /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -371,7 +403,7 @@ public virtual Task GetAsync(GetSnapshotRequestDescriptor d /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -384,7 +416,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -398,7 +430,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -410,7 +442,7 @@ public virtual Task GetRepositoryAsync(GetRepositoryReque /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -422,7 +454,7 @@ public virtual Task GetRepositoryAsync(GetRepositoryReque /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -435,7 +467,7 @@ public virtual Task GetRepositoryAsync(Elastic.Clients.El /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -449,7 +481,7 @@ public virtual Task GetRepositoryAsync(Elastic.Clients.El /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -462,7 +494,7 @@ public virtual Task GetRepositoryAsync(CancellationToken /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -476,7 +508,28 @@ public virtual Task GetRepositoryAsync(Action /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -488,7 +541,28 @@ public virtual Task RestoreAsync(RestoreRequest request, Cancel /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -500,7 +574,28 @@ public virtual Task RestoreAsync(RestoreRequestDescr /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -513,7 +608,28 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -527,7 +643,28 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -539,7 +676,28 @@ public virtual Task RestoreAsync(RestoreRequestDescriptor descr /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -552,7 +710,28 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -566,7 +745,19 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -578,7 +769,19 @@ public virtual Task StatusAsync(SnapshotStatusRequest re /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -590,7 +793,19 @@ public virtual Task StatusAsync(SnapshotStatusRequestDes /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -603,7 +818,19 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -617,7 +844,19 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -630,7 +869,19 @@ public virtual Task StatusAsync(CancellationToken cancel /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -644,7 +895,8 @@ public virtual Task StatusAsync(Action /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -656,7 +908,8 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -668,7 +921,8 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -681,7 +935,8 @@ public virtual Task VerifyRepositoryAsync(Elastic.Clie /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs index 4fc0ea883d9..89fe8e9894a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -41,7 +41,7 @@ internal SqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +53,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequest req /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +65,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequestDesc /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +78,7 @@ public virtual Task ClearCursorAsync(CancellationToken canc /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -92,7 +92,9 @@ public virtual Task ClearCursorAsync(Action /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +106,9 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequest req /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -116,7 +120,9 @@ public virtual Task DeleteAsyncAsync(DeleteAsync /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -129,7 +135,9 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -143,7 +151,9 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -155,7 +165,9 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDesc /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -168,7 +180,9 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -182,7 +196,8 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,7 +209,8 @@ public virtual Task GetAsyncAsync(GetAsyncRequest request, Can /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -206,7 +222,8 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDe /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -219,7 +236,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -233,7 +251,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -245,7 +264,8 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor de /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -258,7 +278,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -272,7 +293,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -284,7 +306,8 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -296,7 +319,8 @@ public virtual Task GetAsyncStatusAsync(GetAs /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -309,7 +333,8 @@ public virtual Task GetAsyncStatusAsync(Elast /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -323,7 +348,8 @@ public virtual Task GetAsyncStatusAsync(Elast /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -335,7 +361,8 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -348,7 +375,8 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -362,7 +390,8 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -374,7 +403,8 @@ public virtual Task QueryAsync(QueryRequest request, Cancellation /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -386,7 +416,8 @@ public virtual Task QueryAsync(QueryRequestDescriptor< /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -399,7 +430,8 @@ public virtual Task QueryAsync(CancellationToken cance /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -413,7 +445,8 @@ public virtual Task QueryAsync(Action /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -425,7 +458,8 @@ public virtual Task QueryAsync(QueryRequestDescriptor descriptor, /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -438,7 +472,8 @@ public virtual Task QueryAsync(CancellationToken cancellationToke /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -452,7 +487,8 @@ public virtual Task QueryAsync(Action con /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -464,7 +500,8 @@ public virtual Task TranslateAsync(TranslateRequest request, /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -476,7 +513,8 @@ public virtual Task TranslateAsync(TranslateReques /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -489,7 +527,8 @@ public virtual Task TranslateAsync(CancellationTok /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -503,7 +542,8 @@ public virtual Task TranslateAsync(Action /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -515,7 +555,8 @@ public virtual Task TranslateAsync(TranslateRequestDescriptor /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -528,7 +569,8 @@ public virtual Task TranslateAsync(CancellationToken cancella /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 2682447ffa6..8be64bd2bd9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -41,7 +41,7 @@ internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +53,7 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +65,7 @@ public virtual Task DeleteSynonymAsync(DeleteS /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +78,7 @@ public virtual Task DeleteSynonymAsync(Elastic /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -92,7 +92,7 @@ public virtual Task DeleteSynonymAsync(Elastic /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +104,7 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -117,7 +117,7 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -131,7 +131,8 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -143,7 +144,8 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -155,7 +157,8 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -168,7 +171,8 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -182,7 +186,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,7 +198,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequest reques /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -206,7 +210,7 @@ public virtual Task GetSynonymAsync(GetSynonymReq /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -219,7 +223,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -233,7 +237,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -245,7 +249,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequestDescrip /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -258,7 +262,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -272,7 +276,8 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -284,7 +289,8 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -296,7 +302,8 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -309,7 +316,8 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -323,7 +331,8 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -335,7 +344,8 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +357,8 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -360,7 +371,8 @@ public virtual Task GetSynonymsSetsAsync(CancellationTo /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -374,7 +386,9 @@ public virtual Task GetSynonymsSetsAsync(Action /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -386,7 +400,9 @@ public virtual Task PutSynonymAsync(PutSynonymRequest reques /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -398,7 +414,9 @@ public virtual Task PutSynonymAsync(PutSynonymReq /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -411,7 +429,9 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -425,7 +445,9 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -437,7 +459,9 @@ public virtual Task PutSynonymAsync(PutSynonymRequestDescrip /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -450,7 +474,9 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -464,7 +490,8 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -476,7 +503,8 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -488,7 +516,8 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -501,7 +530,8 @@ public virtual Task PutSynonymRuleAsync(Elastic.Clients. /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs index 6244a645f91..d7e72514032 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs @@ -41,7 +41,9 @@ internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -53,7 +55,9 @@ public virtual Task TestGrokPatternAsync(TestGrokPatter /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -65,7 +69,9 @@ public virtual Task TestGrokPatternAsync(TestGrokPatter /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -78,7 +84,9 @@ public virtual Task TestGrokPatternAsync(CancellationTo /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// 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 162ad128d0a..ecba0eb5a5a 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 @@ -1080,12 +1080,22 @@ public virtual Task UpdateTransformAsync(Elastic.Client /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1097,12 +1107,22 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1114,12 +1134,22 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1132,12 +1162,22 @@ public virtual Task UpgradeTransformsAsync(Cancellati /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs index 10bf4564987..90810eb6645 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs @@ -41,8 +41,26 @@ internal XpackNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequest request, CancellationToken cancellationToken = default) @@ -53,8 +71,26 @@ public virtual Task InfoAsync(XpackInfoRequest request, Cance /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: + /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -65,8 +101,26 @@ public virtual Task InfoAsync(XpackInfoRequestDescriptor desc /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) @@ -78,8 +132,26 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: + /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -92,7 +164,9 @@ public virtual Task InfoAsync(Action /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -104,7 +178,9 @@ public virtual Task UsageAsync(XpackUsageRequest request, Ca /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -116,7 +192,9 @@ public virtual Task UsageAsync(XpackUsageRequestDescriptor d /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -129,7 +207,9 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// 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 1e4d09e5116..4e8ef8c6d98 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs @@ -100,7 +100,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -114,7 +114,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -128,7 +128,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -143,7 +143,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -159,7 +159,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -174,7 +174,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -190,7 +190,7 @@ public virtual Task BulkAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -204,7 +204,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) { @@ -219,7 +219,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -235,7 +235,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -250,7 +250,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -267,7 +267,7 @@ public virtual Task BulkAsync(Action config /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -282,7 +282,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -297,7 +297,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -313,7 +313,7 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -333,7 +333,7 @@ public virtual Task ClearScrollAsync(Actionkeep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -351,7 +351,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -369,7 +369,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -388,7 +388,7 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -400,7 +400,8 @@ public virtual Task ClosePointInTimeAsync(Action /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -412,7 +413,8 @@ public virtual Task CountAsync(CountRequest request, Cancellation /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -424,7 +426,8 @@ public virtual Task CountAsync(CountRequestDescriptor< /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -437,7 +440,8 @@ public virtual Task CountAsync(Elastic.Clients.Elastic /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -451,7 +455,8 @@ public virtual Task CountAsync(Elastic.Clients.Elastic /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -464,7 +469,8 @@ public virtual Task CountAsync(CancellationToken cance /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -478,7 +484,8 @@ public virtual Task CountAsync(Action /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -490,7 +497,8 @@ public virtual Task CountAsync(CountRequestDescriptor descriptor, /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -503,7 +511,8 @@ public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Serv /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -517,7 +526,8 @@ public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Serv /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -530,7 +540,8 @@ public virtual Task CountAsync(CancellationToken cancellationToke /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2467,7 +2478,29 @@ public virtual Task> GetSourceAsync(Elas /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2479,7 +2512,29 @@ public virtual Task HealthReportAsync(HealthReportRequest /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2491,7 +2546,29 @@ public virtual Task HealthReportAsync(HealthReportRequestD /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2504,7 +2581,29 @@ public virtual Task HealthReportAsync(IReadOnlyCollection< /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2518,7 +2617,29 @@ public virtual Task HealthReportAsync(IReadOnlyCollection< /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2531,7 +2652,29 @@ public virtual Task HealthReportAsync(CancellationToken ca /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3348,7 +3491,7 @@ public virtual Task> MultiSearchTemplateA /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -3372,7 +3515,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3396,7 +3539,7 @@ public virtual Task OpenPointInTimeAsync(Ope /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -3421,7 +3564,7 @@ public virtual Task OpenPointInTimeAsync(Ela /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3447,7 +3590,7 @@ public virtual Task OpenPointInTimeAsync(Ela /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) { @@ -3472,7 +3615,7 @@ public virtual Task OpenPointInTimeAsync(Can /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3498,7 +3641,7 @@ public virtual Task OpenPointInTimeAsync(Act /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3522,7 +3665,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -3547,7 +3690,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3560,7 +3703,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3573,7 +3716,7 @@ public virtual Task PingAsync(PingRequest request, CancellationTok /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3586,7 +3729,7 @@ public virtual Task PingAsync(PingRequestDescriptor descriptor, Ca /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3600,7 +3743,7 @@ public virtual Task PingAsync(CancellationToken cancellationToken /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs index 718dc14ebd3..e5111e9b1b4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs @@ -122,7 +122,7 @@ public override void Write(Utf8JsonWriter writer, INormalizer value, JsonSeriali } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(NormalizerInterfaceConverter))] public partial interface INormalizer diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs index 3fc70502c01..1a8b867dea2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ByteSize : Union { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs index 5ed663639d4..4761d78cf9c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; /// /// Text or location that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Context : Union { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs new file mode 100644 index 00000000000..50e90d939ec --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs @@ -0,0 +1,47 @@ +// 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.Core.HealthReport; + +/// +/// +/// FILE_SETTINGS +/// +/// +public sealed partial class FileSettingsIndicator +{ + [JsonInclude, JsonPropertyName("details")] + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.FileSettingsIndicatorDetails? Details { get; init; } + [JsonInclude, JsonPropertyName("diagnosis")] + public IReadOnlyCollection? Diagnosis { get; init; } + [JsonInclude, JsonPropertyName("impacts")] + public IReadOnlyCollection? Impacts { get; init; } + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("symptom")] + public string Symptom { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs new file mode 100644 index 00000000000..ee342d48d11 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport; + +public sealed partial class FileSettingsIndicatorDetails +{ + [JsonInclude, JsonPropertyName("failure_streak")] + public long FailureStreak { get; init; } + [JsonInclude, JsonPropertyName("most_recent_failure")] + public string MostRecentFailure { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs index 421938267ef..6e72eeae618 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs @@ -33,6 +33,8 @@ public sealed partial class Indicators public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DataStreamLifecycleIndicator? DataStreamLifecycle { get; init; } [JsonInclude, JsonPropertyName("disk")] public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DiskIndicator? Disk { get; init; } + [JsonInclude, JsonPropertyName("file_settings")] + public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.FileSettingsIndicator? FileSettings { get; init; } [JsonInclude, JsonPropertyName("ilm")] public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IlmIndicator? Ilm { get; init; } [JsonInclude, JsonPropertyName("master_is_stable")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs index e8159ec3121..f53eb2505da 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGain { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricDiscountedCumulativeGain /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGainDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs index baa2700768d..acf5fb54ea7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricExpectedReciprocalRank /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs index f7a9c44621c..eba098f5694 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricMeanReciprocalRank /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs index d59552021bb..fdade2d12af 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecision { @@ -64,7 +64,7 @@ public sealed partial class RankEvalMetricPrecision /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecisionDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs index cb35bfb45ca..e8e65353032 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.RankEval; /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecall { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricRecall /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecallDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs index 5fd4dcffbe2..35464a20739 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -403,6 +403,8 @@ public enum FieldType RankFeature, [EnumMember(Value = "percolator")] Percolator, + [EnumMember(Value = "passthrough")] + Passthrough, [EnumMember(Value = "object")] Object, [EnumMember(Value = "none")] @@ -504,6 +506,8 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.RankFeature; case "percolator": return FieldType.Percolator; + case "passthrough": + return FieldType.Passthrough; case "object": return FieldType.Object; case "none": @@ -618,6 +622,9 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Percolator: writer.WriteStringValue("percolator"); return; + case FieldType.Passthrough: + writer.WriteStringValue("passthrough"); + return; case FieldType.Object: writer.WriteStringValue("object"); return; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs index cb3cfe32ae0..bd9dce49136 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs @@ -126,6 +126,48 @@ public override void Write(Utf8JsonWriter writer, ApiKeyGrantType value, JsonSer } } +[JsonConverter(typeof(ApiKeyTypeConverter))] +public enum ApiKeyType +{ + [EnumMember(Value = "rest")] + Rest, + [EnumMember(Value = "cross_cluster")] + CrossCluster +} + +internal sealed class ApiKeyTypeConverter : JsonConverter +{ + public override ApiKeyType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "rest": + return ApiKeyType.Rest; + case "cross_cluster": + return ApiKeyType.CrossCluster; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ApiKeyType value, JsonSerializerOptions options) + { + switch (value) + { + case ApiKeyType.Rest: + writer.WriteStringValue("rest"); + return; + case ApiKeyType.CrossCluster: + writer.WriteStringValue("cross_cluster"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(EnumStructConverter))] public readonly partial struct ClusterPrivilege : IEnumStruct { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs index 1047be7f885..4c54c28aa4c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Fuzziness : Union { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs index 65024976add..ef149859971 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -739,7 +739,7 @@ public override void Write(Utf8JsonWriter writer, IndexSettings value, JsonSeria } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(IndexSettingsConverter))] public sealed partial class IndexSettings @@ -840,7 +840,7 @@ public sealed partial class IndexSettings } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor> { @@ -2277,7 +2277,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index ee3e967c447..5c9472e884d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettings { @@ -57,7 +57,7 @@ public sealed partial class MappingLimitSettings /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs index 95ab12b37b8..2bb334a6e3e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs @@ -39,7 +39,7 @@ public sealed partial class MappingLimitSettingsTotalFields /// /// [JsonInclude, JsonPropertyName("ignore_dynamic_beyond_limit")] - public bool? IgnoreDynamicBeyondLimit { get; set; } + public object? IgnoreDynamicBeyondLimit { get; set; } /// /// @@ -49,7 +49,7 @@ public sealed partial class MappingLimitSettingsTotalFields /// /// [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } + public object? Limit { get; set; } } public sealed partial class MappingLimitSettingsTotalFieldsDescriptor : SerializableDescriptor @@ -60,8 +60,8 @@ public MappingLimitSettingsTotalFieldsDescriptor() : base() { } - private bool? IgnoreDynamicBeyondLimitValue { get; set; } - private long? LimitValue { get; set; } + private object? IgnoreDynamicBeyondLimitValue { get; set; } + private object? LimitValue { get; set; } /// /// @@ -72,7 +72,7 @@ public MappingLimitSettingsTotalFieldsDescriptor() : base() /// The fields that were not added to the mapping will be added to the _ignored field. /// /// - public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(bool? ignoreDynamicBeyondLimit = true) + public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(object? ignoreDynamicBeyondLimit) { IgnoreDynamicBeyondLimitValue = ignoreDynamicBeyondLimit; return Self; @@ -85,7 +85,7 @@ public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(bool? /// degradations and memory issues, especially in clusters with a high load or few resources. /// /// - public MappingLimitSettingsTotalFieldsDescriptor Limit(long? limit) + public MappingLimitSettingsTotalFieldsDescriptor Limit(object? limit) { LimitValue = limit; return Self; @@ -94,16 +94,16 @@ public MappingLimitSettingsTotalFieldsDescriptor Limit(long? limit) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (IgnoreDynamicBeyondLimitValue.HasValue) + if (IgnoreDynamicBeyondLimitValue is not null) { writer.WritePropertyName("ignore_dynamic_beyond_limit"); - writer.WriteBooleanValue(IgnoreDynamicBeyondLimitValue.Value); + JsonSerializer.Serialize(writer, IgnoreDynamicBeyondLimitValue, options); } - if (LimitValue.HasValue) + if (LimitValue is not null) { writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); + JsonSerializer.Serialize(writer, LimitValue, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs index 3c5f7090bd1..bbe957c526a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs @@ -21,28 +21,289 @@ using Elastic.Clients.Elasticsearch.Serverless.Serialization; 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.Ingest; +/// +/// +/// The configuration necessary to identify which IP geolocation provider to use to download a database, as well as any provider-specific configuration necessary for such downloading. +/// At present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured. +/// A provider (either maxmind or ipinfo) must be specified. The web and local providers can be returned as read only configurations. +/// +/// +[JsonConverter(typeof(DatabaseConfigurationConverter))] public sealed partial class DatabaseConfiguration { + internal DatabaseConfiguration(string variantName, object variant) + { + if (variantName is null) + throw new ArgumentNullException(nameof(variantName)); + if (variant is null) + throw new ArgumentNullException(nameof(variant)); + if (string.IsNullOrWhiteSpace(variantName)) + throw new ArgumentException("Variant name must not be empty or whitespace."); + VariantName = variantName; + Variant = variant; + } + + internal object Variant { get; } + internal string VariantName { get; } + + public static DatabaseConfiguration Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => new DatabaseConfiguration("ipinfo", ipinfo); + public static DatabaseConfiguration Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => new DatabaseConfiguration("maxmind", maxmind); + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public Elastic.Clients.Elasticsearch.Serverless.Name Name { get; set; } + + public bool TryGet([NotNullWhen(true)] out T? result) where T : class + { + result = default; + if (Variant is T variant) + { + result = variant; + return true; + } + + return false; + } +} + +internal sealed partial class DatabaseConfigurationConverter : JsonConverter +{ + public override DatabaseConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + { + throw new JsonException("Expected start token."); + } + + object? variantValue = default; + string? variantNameValue = default; + Elastic.Clients.Elasticsearch.Serverless.Name nameValue = default; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token."); + } + + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); + } + + var propertyName = reader.GetString(); + reader.Read(); + if (propertyName == "name") + { + nameValue = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (propertyName == "ipinfo") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "maxmind") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DatabaseConfiguration' from the response."); + } + + var result = new DatabaseConfiguration(variantNameValue, variantValue); + result.Name = nameValue; + return result; + } + + public override void Write(Utf8JsonWriter writer, DatabaseConfiguration value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (value.Name is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, value.Name, options); + } + + if (value.VariantName is not null && value.Variant is not null) + { + writer.WritePropertyName(value.VariantName); + switch (value.VariantName) + { + case "ipinfo": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo)value.Variant, options); + break; + case "maxmind": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind)value.Variant, options); + break; + } + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationDescriptor : SerializableDescriptor> +{ + internal DatabaseConfigurationDescriptor(Action> configure) => configure.Invoke(this); + + public DatabaseConfigurationDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } + /// /// - /// The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. - /// At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. + /// The provider-assigned name of the IP geolocation database to download. /// /// - [JsonInclude, JsonPropertyName("maxmind")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind Maxmind { get; init; } + public DatabaseConfigurationDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (NameValue is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationDescriptor : SerializableDescriptor +{ + internal DatabaseConfigurationDescriptor(Action configure) => configure.Invoke(this); + + public DatabaseConfigurationDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } /// /// /// The provider-assigned name of the IP geolocation database to download. /// /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } + public DatabaseConfigurationDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (NameValue is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs new file mode 100644 index 00000000000..74ed0662918 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs @@ -0,0 +1,332 @@ +// 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.Diagnostics.CodeAnalysis; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; + +[JsonConverter(typeof(DatabaseConfigurationFullConverter))] +public sealed partial class DatabaseConfigurationFull +{ + internal DatabaseConfigurationFull(string variantName, object variant) + { + if (variantName is null) + throw new ArgumentNullException(nameof(variantName)); + if (variant is null) + throw new ArgumentNullException(nameof(variant)); + if (string.IsNullOrWhiteSpace(variantName)) + throw new ArgumentException("Variant name must not be empty or whitespace."); + VariantName = variantName; + Variant = variant; + } + + internal object Variant { get; } + internal string VariantName { get; } + + public static DatabaseConfigurationFull Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => new DatabaseConfigurationFull("ipinfo", ipinfo); + public static DatabaseConfigurationFull Local(Elastic.Clients.Elasticsearch.Serverless.Ingest.Local local) => new DatabaseConfigurationFull("local", local); + public static DatabaseConfigurationFull Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => new DatabaseConfigurationFull("maxmind", maxmind); + public static DatabaseConfigurationFull Web(Elastic.Clients.Elasticsearch.Serverless.Ingest.Web web) => new DatabaseConfigurationFull("web", web); + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; set; } + + public bool TryGet([NotNullWhen(true)] out T? result) where T : class + { + result = default; + if (Variant is T variant) + { + result = variant; + return true; + } + + return false; + } +} + +internal sealed partial class DatabaseConfigurationFullConverter : JsonConverter +{ + public override DatabaseConfigurationFull Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + { + throw new JsonException("Expected start token."); + } + + object? variantValue = default; + string? variantNameValue = default; + string nameValue = default; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token."); + } + + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); + } + + var propertyName = reader.GetString(); + reader.Read(); + if (propertyName == "name") + { + nameValue = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (propertyName == "ipinfo") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "local") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "maxmind") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "web") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DatabaseConfigurationFull' from the response."); + } + + var result = new DatabaseConfigurationFull(variantNameValue, variantValue); + result.Name = nameValue; + return result; + } + + public override void Write(Utf8JsonWriter writer, DatabaseConfigurationFull value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(value.Name)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(value.Name); + } + + if (value.VariantName is not null && value.Variant is not null) + { + writer.WritePropertyName(value.VariantName); + switch (value.VariantName) + { + case "ipinfo": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo)value.Variant, options); + break; + case "local": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Local)value.Variant, options); + break; + case "maxmind": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind)value.Variant, options); + break; + case "web": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Web)value.Variant, options); + break; + } + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationFullDescriptor : SerializableDescriptor> +{ + internal DatabaseConfigurationFullDescriptor(Action> configure) => configure.Invoke(this); + + public DatabaseConfigurationFullDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationFullDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationFullDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private string NameValue { get; set; } + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + public DatabaseConfigurationFullDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationFullDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationFullDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationFullDescriptor Local(Elastic.Clients.Elasticsearch.Serverless.Ingest.Local local) => Set(local, "local"); + public DatabaseConfigurationFullDescriptor Local(Action configure) => Set(configure, "local"); + public DatabaseConfigurationFullDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationFullDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + public DatabaseConfigurationFullDescriptor Web(Elastic.Clients.Elasticsearch.Serverless.Ingest.Web web) => Set(web, "web"); + public DatabaseConfigurationFullDescriptor Web(Action configure) => Set(configure, "web"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(NameValue)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationFullDescriptor : SerializableDescriptor +{ + internal DatabaseConfigurationFullDescriptor(Action configure) => configure.Invoke(this); + + public DatabaseConfigurationFullDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationFullDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationFullDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private string NameValue { get; set; } + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + public DatabaseConfigurationFullDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationFullDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationFullDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationFullDescriptor Local(Elastic.Clients.Elasticsearch.Serverless.Ingest.Local local) => Set(local, "local"); + public DatabaseConfigurationFullDescriptor Local(Action configure) => Set(configure, "local"); + public DatabaseConfigurationFullDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationFullDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + public DatabaseConfigurationFullDescriptor Web(Elastic.Clients.Elasticsearch.Serverless.Ingest.Web web) => Set(web, "web"); + public DatabaseConfigurationFullDescriptor Web(Action configure) => Set(configure, "web"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(NameValue)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs new file mode 100644 index 00000000000..d69946484e2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs @@ -0,0 +1,42 @@ +// 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.Ingest; + +public sealed partial class IpDatabaseConfigurationMetadata +{ + [JsonInclude, JsonPropertyName("database")] + public Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull Database { get; init; } + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("modified_date")] + public long? ModifiedDate { get; init; } + [JsonInclude, JsonPropertyName("modified_date_millis")] + public long? ModifiedDateMillis { get; init; } + [JsonInclude, JsonPropertyName("version")] + public long Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs new file mode 100644 index 00000000000..997db6852de --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs @@ -0,0 +1,47 @@ +// 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.Ingest; + +public sealed partial class Ipinfo +{ +} + +public sealed partial class IpinfoDescriptor : SerializableDescriptor +{ + internal IpinfoDescriptor(Action configure) => configure.Invoke(this); + + public IpinfoDescriptor() : base() + { + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs new file mode 100644 index 00000000000..0e9e69c0020 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs @@ -0,0 +1,61 @@ +// 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.Ingest; + +public sealed partial class Local +{ + [JsonInclude, JsonPropertyName("type")] + public string Type { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull(Local local) => Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull.Local(local); +} + +public sealed partial class LocalDescriptor : SerializableDescriptor +{ + internal LocalDescriptor(Action configure) => configure.Invoke(this); + + public LocalDescriptor() : base() + { + } + + private string TypeValue { get; set; } + + public LocalDescriptor Type(string type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue(TypeValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs index 8adb54ec878..565994e790c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs @@ -31,6 +31,9 @@ public sealed partial class Maxmind { [JsonInclude, JsonPropertyName("account_id")] public Elastic.Clients.Elasticsearch.Serverless.Id AccountId { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration(Maxmind maxmind) => Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration.Maxmind(maxmind); + public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull(Maxmind maxmind) => Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull.Maxmind(maxmind); } public sealed partial class MaxmindDescriptor : SerializableDescriptor diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs new file mode 100644 index 00000000000..6783a58f9d6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs @@ -0,0 +1,47 @@ +// 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.Ingest; + +public sealed partial class Web +{ +} + +public sealed partial class WebDescriptor : SerializableDescriptor +{ + internal WebDescriptor(Action configure) => configure.Invoke(this); + + public WebDescriptor() : base() + { + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs new file mode 100644 index 00000000000..8ad7a3359a5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs @@ -0,0 +1,38 @@ +// 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.MachineLearning; + +public sealed partial class AdaptiveAllocationsSettings +{ + [JsonInclude, JsonPropertyName("enabled")] + public bool Enabled { get; init; } + [JsonInclude, JsonPropertyName("max_number_of_allocations")] + public int? MaxNumberOfAllocations { get; init; } + [JsonInclude, JsonPropertyName("min_number_of_allocations")] + public int? MinNumberOfAllocations { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs index 2222f2104e5..2f42117df7a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs @@ -43,7 +43,7 @@ public sealed partial class AnalysisLimits /// /// [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelMemoryLimit { get; set; } } public sealed partial class AnalysisLimitsDescriptor : SerializableDescriptor @@ -55,7 +55,7 @@ public AnalysisLimitsDescriptor() : base() } private long? CategorizationExamplesLimitValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelMemoryLimitValue { get; set; } /// /// @@ -73,7 +73,7 @@ public AnalysisLimitsDescriptor CategorizationExamplesLimit(long? categorization /// The approximate maximum amount of memory resources that are required for analytical processing. Once this limit is approached, data pruning becomes more aggressive. Upon exceeding this limit, new entities are not modeled. If the xpack.ml.max_model_memory_limit setting has a value greater than 0 and less than 1024mb, that value is used instead of the default. The default value is relatively small to ensure that high resource usage is a conscious decision. If you have jobs that are expected to analyze high cardinality fields, you will likely need to use a higher value. If you specify a number instead of a string, the units are assumed to be MiB. Specifying a string is recommended for clarity. If you specify a byte size unit of b or kb and the number does not equate to a discrete number of megabytes, it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you specify a value less than 1 MiB, an error occurs. If you specify a value for the xpack.ml.max_model_memory_limit setting, an error occurs when you try to create jobs that have model_memory_limit values greater than that setting value. /// /// - public AnalysisLimitsDescriptor ModelMemoryLimit(string? modelMemoryLimit) + public AnalysisLimitsDescriptor ModelMemoryLimit(Elastic.Clients.Elasticsearch.Serverless.ByteSize? modelMemoryLimit) { ModelMemoryLimitValue = modelMemoryLimit; return Self; @@ -88,10 +88,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(CategorizationExamplesLimitValue.Value); } - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) + if (ModelMemoryLimitValue is not null) { writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); + JsonSerializer.Serialize(writer, ModelMemoryLimitValue, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs index 5673c68f978..312f0051f07 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs @@ -70,5 +70,5 @@ public sealed partial class DatafeedStats /// /// [JsonInclude, JsonPropertyName("timing_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedTimingStats TimingStats { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedTimingStats? TimingStats { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs index 6c407b4391c..fedc96d9873 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs @@ -44,6 +44,8 @@ public sealed partial class DatafeedTimingStats /// [JsonInclude, JsonPropertyName("bucket_count")] public long BucketCount { get; init; } + [JsonInclude, JsonPropertyName("exponential_average_calculation_context")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExponentialAverageCalculationContext? ExponentialAverageCalculationContext { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs index 83635a8a546..f5ff47be1e7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs @@ -53,6 +53,8 @@ public sealed partial class DataframeAnalyticsSummary public string Id { get; init; } [JsonInclude, JsonPropertyName("max_num_threads")] public int? MaxNumThreads { get; init; } + [JsonInclude, JsonPropertyName("_meta")] + public IReadOnlyDictionary? Meta { get; init; } [JsonInclude, JsonPropertyName("model_memory_limit")] public string? ModelMemoryLimit { get; init; } [JsonInclude, JsonPropertyName("source")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs new file mode 100644 index 00000000000..8cc5b1413aa --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs @@ -0,0 +1,312 @@ +// 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.MachineLearning; + +public sealed partial class DetectorUpdate +{ + /// + /// + /// An array of custom rule objects, which enable you to customize the way detectors operate. + /// For example, a rule may dictate to the detector conditions under which results should be skipped. + /// Kibana refers to custom rules as job rules. + /// + /// + [JsonInclude, JsonPropertyName("custom_rules")] + public ICollection? CustomRules { get; set; } + + /// + /// + /// A description of the detector. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// A unique identifier for the detector. + /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// + /// + [JsonInclude, JsonPropertyName("detector_index")] + public int DetectorIndex { get; set; } +} + +public sealed partial class DetectorUpdateDescriptor : SerializableDescriptor> +{ + internal DetectorUpdateDescriptor(Action> configure) => configure.Invoke(this); + + public DetectorUpdateDescriptor() : base() + { + } + + private ICollection? CustomRulesValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } + private Action> CustomRulesDescriptorAction { get; set; } + private Action>[] CustomRulesDescriptorActions { get; set; } + private string? DescriptionValue { get; set; } + private int DetectorIndexValue { get; set; } + + /// + /// + /// An array of custom rule objects, which enable you to customize the way detectors operate. + /// For example, a rule may dictate to the detector conditions under which results should be skipped. + /// Kibana refers to custom rules as job rules. + /// + /// + public DetectorUpdateDescriptor CustomRules(ICollection? customRules) + { + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesValue = customRules; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor descriptor) + { + CustomRulesValue = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptor = descriptor; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Action> configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptorAction = configure; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(params Action>[] configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = configure; + return Self; + } + + /// + /// + /// A description of the detector. + /// + /// + public DetectorUpdateDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// A unique identifier for the detector. + /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// + /// + public DetectorUpdateDescriptor DetectorIndex(int detectorIndex) + { + DetectorIndexValue = detectorIndex; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CustomRulesDescriptor is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorAction is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorActions is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + foreach (var action in CustomRulesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (CustomRulesValue is not null) + { + writer.WritePropertyName("custom_rules"); + JsonSerializer.Serialize(writer, CustomRulesValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("detector_index"); + writer.WriteNumberValue(DetectorIndexValue); + writer.WriteEndObject(); + } +} + +public sealed partial class DetectorUpdateDescriptor : SerializableDescriptor +{ + internal DetectorUpdateDescriptor(Action configure) => configure.Invoke(this); + + public DetectorUpdateDescriptor() : base() + { + } + + private ICollection? CustomRulesValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } + private Action CustomRulesDescriptorAction { get; set; } + private Action[] CustomRulesDescriptorActions { get; set; } + private string? DescriptionValue { get; set; } + private int DetectorIndexValue { get; set; } + + /// + /// + /// An array of custom rule objects, which enable you to customize the way detectors operate. + /// For example, a rule may dictate to the detector conditions under which results should be skipped. + /// Kibana refers to custom rules as job rules. + /// + /// + public DetectorUpdateDescriptor CustomRules(ICollection? customRules) + { + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesValue = customRules; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor descriptor) + { + CustomRulesValue = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptor = descriptor; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Action configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptorAction = configure; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(params Action[] configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = configure; + return Self; + } + + /// + /// + /// A description of the detector. + /// + /// + public DetectorUpdateDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// A unique identifier for the detector. + /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// + /// + public DetectorUpdateDescriptor DetectorIndex(int detectorIndex) + { + DetectorIndexValue = detectorIndex; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CustomRulesDescriptor is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorAction is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorActions is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + foreach (var action in CustomRulesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (CustomRulesValue is not null) + { + writer.WritePropertyName("custom_rules"); + JsonSerializer.Serialize(writer, CustomRulesValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("detector_index"); + writer.WriteNumberValue(DetectorIndexValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs new file mode 100644 index 00000000000..52d547b338e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs @@ -0,0 +1,38 @@ +// 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.MachineLearning; + +public sealed partial class ExponentialAverageCalculationContext +{ + [JsonInclude, JsonPropertyName("incremental_metric_value_ms")] + public double IncrementalMetricValueMs { get; init; } + [JsonInclude, JsonPropertyName("latest_timestamp")] + public long? LatestTimestamp { get; init; } + [JsonInclude, JsonPropertyName("previous_exponential_average_ms")] + public double? PreviousExponentialAverageMs { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs index d14b5e81fe6..4ab30dc87a1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs @@ -69,6 +69,8 @@ public sealed partial class FillMaskInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(FillMaskInferenceOptions fillMaskInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.FillMask(fillMaskInferenceOptions); } @@ -92,6 +94,9 @@ public FillMaskInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -159,6 +164,30 @@ public FillMaskInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -196,6 +225,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs index dfd3d33bb75..43e5e559dc6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs @@ -30,9 +30,13 @@ namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; public sealed partial class Limits { [JsonInclude, JsonPropertyName("effective_max_model_memory_limit")] - public string EffectiveMaxModelMemoryLimit { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize? EffectiveMaxModelMemoryLimit { get; init; } [JsonInclude, JsonPropertyName("max_model_memory_limit")] - public string? MaxModelMemoryLimit { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxModelMemoryLimit { get; init; } + [JsonInclude, JsonPropertyName("max_single_ml_node_processors")] + public int? MaxSingleMlNodeProcessors { get; init; } [JsonInclude, JsonPropertyName("total_ml_memory")] - public string TotalMlMemory { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize TotalMlMemory { get; init; } + [JsonInclude, JsonPropertyName("total_ml_processors")] + public int? TotalMlProcessors { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs new file mode 100644 index 00000000000..3152267a8f3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs @@ -0,0 +1,60 @@ +// 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.MachineLearning; + +public sealed partial class ModelPackageConfig +{ + [JsonInclude, JsonPropertyName("create_time")] + public long? CreateTime { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; init; } + [JsonInclude, JsonPropertyName("inference_config")] + public IReadOnlyDictionary? InferenceConfig { get; init; } + [JsonInclude, JsonPropertyName("metadata")] + public IReadOnlyDictionary? Metadata { get; init; } + [JsonInclude, JsonPropertyName("minimum_version")] + public string? MinimumVersion { get; init; } + [JsonInclude, JsonPropertyName("model_repository")] + public string? ModelRepository { get; init; } + [JsonInclude, JsonPropertyName("model_type")] + public string? ModelType { get; init; } + [JsonInclude, JsonPropertyName("packaged_model_id")] + public string PackagedModelId { get; init; } + [JsonInclude, JsonPropertyName("platform_architecture")] + public string? PlatformArchitecture { get; init; } + [JsonInclude, JsonPropertyName("prefix_strings")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } + [JsonInclude, JsonPropertyName("sha256")] + public string? Sha256 { get; init; } + [JsonInclude, JsonPropertyName("size")] + public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; init; } + [JsonInclude, JsonPropertyName("tags")] + public IReadOnlyCollection? Tags { get; init; } + [JsonInclude, JsonPropertyName("vocabulary_file")] + public string? VocabularyFile { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs index 911913f0982..6a4edf5c573 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs @@ -55,6 +55,8 @@ public sealed partial class ModelSizeStats public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelBytesExceeded { get; init; } [JsonInclude, JsonPropertyName("model_bytes_memory_limit")] public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelBytesMemoryLimit { get; init; } + [JsonInclude, JsonPropertyName("output_memory_allocator_bytes")] + public Elastic.Clients.Elasticsearch.Serverless.ByteSize? OutputMemoryAllocatorBytes { get; init; } [JsonInclude, JsonPropertyName("peak_model_bytes")] public Elastic.Clients.Elasticsearch.Serverless.ByteSize? PeakModelBytes { get; init; } [JsonInclude, JsonPropertyName("rare_category_count")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs index 90300b1c97b..260c112a22b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs @@ -42,6 +42,14 @@ public sealed partial class NlpRobertaTokenizationConfig [JsonInclude, JsonPropertyName("add_prefix_space")] public bool? AddPrefixSpace { get; set; } + /// + /// + /// Should the tokenizer lower case the text + /// + /// + [JsonInclude, JsonPropertyName("do_lower_case")] + public bool? DoLowerCase { get; set; } + /// /// /// Maximum input sequence length for the model @@ -91,6 +99,7 @@ public NlpRobertaTokenizationConfigDescriptor() : base() } private bool? AddPrefixSpaceValue { get; set; } + private bool? DoLowerCaseValue { get; set; } private int? MaxSequenceLengthValue { get; set; } private int? SpanValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? TruncateValue { get; set; } @@ -107,6 +116,17 @@ public NlpRobertaTokenizationConfigDescriptor AddPrefixSpace(bool? addPrefixSpac return Self; } + /// + /// + /// Should the tokenizer lower case the text + /// + /// + public NlpRobertaTokenizationConfigDescriptor DoLowerCase(bool? doLowerCase = true) + { + DoLowerCaseValue = doLowerCase; + return Self; + } + /// /// /// Maximum input sequence length for the model @@ -160,6 +180,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(AddPrefixSpaceValue.Value); } + if (DoLowerCaseValue.HasValue) + { + writer.WritePropertyName("do_lower_case"); + writer.WriteBooleanValue(DoLowerCaseValue.Value); + } + if (MaxSequenceLengthValue.HasValue) { writer.WritePropertyName("max_sequence_length"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs index 9a9557ea98a..76bd6e84c89 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs @@ -83,5 +83,5 @@ public sealed partial class OverallBucket /// /// [JsonInclude, JsonPropertyName("timestamp_string")] - public DateTimeOffset TimestampString { get; init; } + public DateTimeOffset? TimestampString { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs index 1ec7785d42c..06a6b317396 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs @@ -57,6 +57,8 @@ public sealed partial class TextEmbeddingInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.TextEmbedding(textEmbeddingInferenceOptions); } @@ -79,6 +81,9 @@ public TextEmbeddingInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -131,6 +136,30 @@ public TextEmbeddingInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -162,6 +191,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs index a99e3f66997..64ae8998c08 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs @@ -49,6 +49,8 @@ public sealed partial class TextExpansionInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(TextExpansionInferenceOptions textExpansionInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.TextExpansion(textExpansionInferenceOptions); } @@ -70,6 +72,9 @@ public TextExpansionInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -111,6 +116,30 @@ public TextExpansionInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -136,6 +165,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs index 5b609a8d592..fb54aca32fc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs @@ -52,6 +52,7 @@ internal TokenizationConfig(string variantName, object variant) internal string VariantName { get; } public static TokenizationConfig Bert(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert", nlpBertTokenizationConfig); + public static TokenizationConfig BertJa(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert_ja", nlpBertTokenizationConfig); public static TokenizationConfig Mpnet(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("mpnet", nlpBertTokenizationConfig); public static TokenizationConfig Roberta(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => new TokenizationConfig("roberta", nlpRobertaTokenizationConfig); @@ -100,6 +101,13 @@ public override TokenizationConfig Read(ref Utf8JsonReader reader, Type typeToCo continue; } + if (propertyName == "bert_ja") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "mpnet") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -132,6 +140,9 @@ public override void Write(Utf8JsonWriter writer, TokenizationConfig value, Json case "bert": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); break; + case "bert_ja": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); + break; case "mpnet": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); break; @@ -178,6 +189,8 @@ private TokenizationConfigDescriptor Set(object variant, string varia public TokenizationConfigDescriptor Bert(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert"); public TokenizationConfigDescriptor Bert(Action configure) => Set(configure, "bert"); + public TokenizationConfigDescriptor BertJa(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert_ja"); + public TokenizationConfigDescriptor BertJa(Action configure) => Set(configure, "bert_ja"); public TokenizationConfigDescriptor Mpnet(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "mpnet"); public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); @@ -236,6 +249,8 @@ private TokenizationConfigDescriptor Set(object variant, string variantName) public TokenizationConfigDescriptor Bert(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert"); public TokenizationConfigDescriptor Bert(Action configure) => Set(configure, "bert"); + public TokenizationConfigDescriptor BertJa(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert_ja"); + public TokenizationConfigDescriptor BertJa(Action configure) => Set(configure, "bert_ja"); public TokenizationConfigDescriptor Mpnet(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "mpnet"); public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs index 23465b606ae..c091d8ae2a9 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; public sealed partial class TrainedModelAssignment { + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; init; } + /// /// /// The overall assignment state. @@ -38,6 +41,8 @@ public sealed partial class TrainedModelAssignment public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAssignmentState AssignmentState { get; init; } [JsonInclude, JsonPropertyName("max_assigned_allocations")] public int? MaxAssignedAllocations { get; init; } + [JsonInclude, JsonPropertyName("reason")] + public string? Reason { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs index 8385980e2f8..7a5582dc037 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs @@ -44,7 +44,7 @@ public sealed partial class TrainedModelAssignmentRoutingTable /// /// [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } + public string? Reason { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs index 95d869c899e..180d3e5b690 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs @@ -35,7 +35,7 @@ public sealed partial class TrainedModelAssignmentTaskParameters /// /// [JsonInclude, JsonPropertyName("cache_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize CacheSize { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CacheSize { get; init; } /// /// @@ -51,7 +51,7 @@ public sealed partial class TrainedModelAssignmentTaskParameters /// /// [JsonInclude, JsonPropertyName("model_bytes")] - public int ModelBytes { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.ByteSize ModelBytes { get; init; } /// /// @@ -68,6 +68,10 @@ public sealed partial class TrainedModelAssignmentTaskParameters /// [JsonInclude, JsonPropertyName("number_of_allocations")] public int NumberOfAllocations { get; init; } + [JsonInclude, JsonPropertyName("per_allocation_memory_bytes")] + public Elastic.Clients.Elasticsearch.Serverless.ByteSize PerAllocationMemoryBytes { get; init; } + [JsonInclude, JsonPropertyName("per_deployment_memory_bytes")] + public Elastic.Clients.Elasticsearch.Serverless.ByteSize PerDeploymentMemoryBytes { get; init; } [JsonInclude, JsonPropertyName("priority")] public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority Priority { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs index 9dd9ca46448..8f5496654f3 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs @@ -129,6 +129,8 @@ public sealed partial class TrainedModelConfig /// [JsonInclude, JsonPropertyName("model_id")] public string ModelId { get; init; } + [JsonInclude, JsonPropertyName("model_package")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPackageConfig? ModelPackage { get; init; } [JsonInclude, JsonPropertyName("model_size_bytes")] public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelSizeBytes { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs index d4ca4f95618..b82df2b6ec2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs @@ -35,7 +35,17 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("average_inference_time_ms")] - public double AverageInferenceTimeMs { get; init; } + public double? AverageInferenceTimeMs { get; init; } + + /// + /// + /// The average time for each inference call to complete on this node, excluding cache + /// + /// + [JsonInclude, JsonPropertyName("average_inference_time_ms_excluding_cache_hits")] + public double? AverageInferenceTimeMsExcludingCacheHits { get; init; } + [JsonInclude, JsonPropertyName("average_inference_time_ms_last_minute")] + public double? AverageInferenceTimeMsLastMinute { get; init; } /// /// @@ -43,7 +53,11 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("error_count")] - public int ErrorCount { get; init; } + public int? ErrorCount { get; init; } + [JsonInclude, JsonPropertyName("inference_cache_hit_count")] + public long? InferenceCacheHitCount { get; init; } + [JsonInclude, JsonPropertyName("inference_cache_hit_count_last_minute")] + public long? InferenceCacheHitCountLastMinute { get; init; } /// /// @@ -51,7 +65,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } + public long? InferenceCount { get; init; } /// /// @@ -59,7 +73,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("last_access")] - public long LastAccess { get; init; } + public long? LastAccess { get; init; } /// /// @@ -67,7 +81,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } + public int? NumberOfAllocations { get; init; } /// /// @@ -75,7 +89,9 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("number_of_pending_requests")] - public int NumberOfPendingRequests { get; init; } + public int? NumberOfPendingRequests { get; init; } + [JsonInclude, JsonPropertyName("peak_throughput_per_minute")] + public long PeakThroughputPerMinute { get; init; } /// /// @@ -83,7 +99,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("rejection_execution_count")] - public int RejectionExecutionCount { get; init; } + public int? RejectionExecutionCount { get; init; } /// /// @@ -99,7 +115,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("start_time")] - public long StartTime { get; init; } + public long? StartTime { get; init; } /// /// @@ -107,7 +123,9 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } + public int? ThreadsPerAllocation { get; init; } + [JsonInclude, JsonPropertyName("throughput_last_minute")] + public int ThroughputLastMinute { get; init; } /// /// @@ -115,5 +133,5 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("timeout_count")] - public int TimeoutCount { get; init; } + public int? TimeoutCount { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs index 571b619d95b..7924cefaf6c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs @@ -29,13 +29,16 @@ namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; public sealed partial class TrainedModelDeploymentStats { + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; init; } + /// /// /// The detailed allocation status for the deployment. /// /// [JsonInclude, JsonPropertyName("allocation_status")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDeploymentAllocationStatus AllocationStatus { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDeploymentAllocationStatus? AllocationStatus { get; init; } [JsonInclude, JsonPropertyName("cache_size")] public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CacheSize { get; init; } @@ -53,7 +56,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("error_count")] - public int ErrorCount { get; init; } + public int? ErrorCount { get; init; } /// /// @@ -61,7 +64,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } + public int? InferenceCount { get; init; } /// /// @@ -86,7 +89,11 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } + public int? NumberOfAllocations { get; init; } + [JsonInclude, JsonPropertyName("peak_throughput_per_minute")] + public long PeakThroughputPerMinute { get; init; } + [JsonInclude, JsonPropertyName("priority")] + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority Priority { get; init; } /// /// @@ -94,7 +101,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("queue_capacity")] - public int QueueCapacity { get; init; } + public int? QueueCapacity { get; init; } /// /// @@ -103,7 +110,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } + public string? Reason { get; init; } /// /// @@ -114,7 +121,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("rejected_execution_count")] - public int RejectedExecutionCount { get; init; } + public int? RejectedExecutionCount { get; init; } /// /// @@ -130,7 +137,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAssignmentState State { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAssignmentState? State { get; init; } /// /// @@ -138,7 +145,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } + public int? ThreadsPerAllocation { get; init; } /// /// @@ -146,5 +153,5 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("timeout_count")] - public int TimeoutCount { get; init; } + public int? TimeoutCount { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 4329dd0d730..30917b79567 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapeProperty : IProperty { @@ -79,7 +79,7 @@ public sealed partial class GeoShapeProperty : IProperty /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -323,7 +323,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs new file mode 100644 index 00000000000..d7451d3544d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs @@ -0,0 +1,452 @@ +// 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.Mapping; + +public sealed partial class PassthroughObjectProperty : IProperty +{ + [JsonInclude, JsonPropertyName("copy_to")] + [JsonConverter(typeof(SingleOrManyFieldsConverter))] + public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } + [JsonInclude, JsonPropertyName("dynamic")] + public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + [JsonInclude, JsonPropertyName("fields")] + public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } + [JsonInclude, JsonPropertyName("ignore_above")] + public int? IgnoreAbove { get; set; } + + /// + /// + /// Metadata about the field. + /// + /// + [JsonInclude, JsonPropertyName("meta")] + public IDictionary? Meta { get; set; } + [JsonInclude, JsonPropertyName("priority")] + public int? Priority { get; set; } + [JsonInclude, JsonPropertyName("properties")] + public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("store")] + public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("time_series_dimension")] + public bool? TimeSeriesDimension { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "passthrough"; +} + +public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor +{ + internal PassthroughObjectPropertyDescriptor(Action> configure) => configure.Invoke(this); + + public PassthroughObjectPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } + private bool? EnabledValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private IDictionary? MetaValue { get; set; } + private int? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } + private bool? StoreValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } + + public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) + { + CopyToValue = copyTo; + return Self; + } + + public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public PassthroughObjectPropertyDescriptor Priority(int? priority) + { + PriorityValue = priority; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Store(bool? store = true) + { + StoreValue = store; + return Self; + } + + public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CopyToValue is not null) + { + writer.WritePropertyName("copy_to"); + JsonSerializer.Serialize(writer, CopyToValue, options); + } + + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (StoreValue.HasValue) + { + writer.WritePropertyName("store"); + writer.WriteBooleanValue(StoreValue.Value); + } + + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("passthrough"); + writer.WriteEndObject(); + } + + PassthroughObjectProperty IBuildableDescriptor.Build() => new() + { + CopyTo = CopyToValue, + Dynamic = DynamicValue, + Enabled = EnabledValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Meta = MetaValue, + Priority = PriorityValue, + Properties = PropertiesValue, + Store = StoreValue, + TimeSeriesDimension = TimeSeriesDimensionValue + }; +} + +public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PassthroughObjectPropertyDescriptor(Action configure) => configure.Invoke(this); + + public PassthroughObjectPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } + private bool? EnabledValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private IDictionary? MetaValue { get; set; } + private int? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } + private bool? StoreValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } + + public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) + { + CopyToValue = copyTo; + return Self; + } + + public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public PassthroughObjectPropertyDescriptor Priority(int? priority) + { + PriorityValue = priority; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Store(bool? store = true) + { + StoreValue = store; + return Self; + } + + public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CopyToValue is not null) + { + writer.WritePropertyName("copy_to"); + JsonSerializer.Serialize(writer, CopyToValue, options); + } + + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (StoreValue.HasValue) + { + writer.WritePropertyName("store"); + writer.WriteBooleanValue(StoreValue.Value); + } + + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("passthrough"); + writer.WriteEndObject(); + } + + PassthroughObjectProperty IBuildableDescriptor.Build() => new() + { + CopyTo = CopyToValue, + Dynamic = DynamicValue, + Enabled = EnabledValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Meta = MetaValue, + Priority = PriorityValue, + Properties = PropertiesValue, + Store = StoreValue, + TimeSeriesDimension = TimeSeriesDimensionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs index f856980eabb..1b9d4985eae 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs @@ -236,6 +236,11 @@ public PropertiesDescriptor() : base(new Properties()) public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ObjectProperty objectProperty) => AssignVariant(propertyName, objectProperty); public PropertiesDescriptor Object(Expression> propertyName) => AssignVariant, ObjectProperty>(propertyName, null); public PropertiesDescriptor Object(Expression> propertyName, Action> configure) => AssignVariant, ObjectProperty>(propertyName, configure); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, PassthroughObjectProperty passthroughObjectProperty) => AssignVariant(propertyName, passthroughObjectProperty); + public PropertiesDescriptor PassthroughObject(Expression> propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); + public PropertiesDescriptor PassthroughObject(Expression> propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, PercolatorProperty>(propertyName, null); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, PercolatorProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, PercolatorProperty percolatorProperty) => AssignVariant(propertyName, percolatorProperty); @@ -395,6 +400,8 @@ public override IProperty Read(ref Utf8JsonReader reader, Type typeToConvert, Js return JsonSerializer.Deserialize(ref reader, options); case "object": return JsonSerializer.Deserialize(ref reader, options); + case "passthrough": + return JsonSerializer.Deserialize(ref reader, options); case "percolator": return JsonSerializer.Deserialize(ref reader, options); case "point": @@ -542,6 +549,9 @@ public override void Write(Utf8JsonWriter writer, IProperty value, JsonSerialize case "object": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ObjectProperty), options); return; + case "passthrough": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.PassthroughObjectProperty), options); + return; case "percolator": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.PercolatorProperty), options); return; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs index 54089be8fe1..18ab1659da1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapeProperty : IProperty { @@ -77,7 +77,7 @@ public sealed partial class ShapeProperty : IProperty /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -307,7 +307,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs index b338a0ace56..c176bb5a08f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs @@ -30,6 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; public sealed partial class NodeInfoPath { [JsonInclude, JsonPropertyName("data")] + [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection? Data { get; init; } [JsonInclude, JsonPropertyName("home")] public string? Home { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs index 883b305c719..685edc8185f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs @@ -54,12 +54,6 @@ public override DateRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -101,12 +95,6 @@ public override DateRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver variant.TimeZone = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -135,12 +123,6 @@ public override void Write(Utf8JsonWriter writer, DateRangeQuery value, JsonSeri writer.WriteStringValue(value.Format); } - if (value.From is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, value.From, options); - } - if (value.Gt is not null) { writer.WritePropertyName("gt"); @@ -183,12 +165,6 @@ public override void Write(Utf8JsonWriter writer, DateRangeQuery value, JsonSeri writer.WriteStringValue(value.TimeZone); } - if (value.To is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, value.To, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -221,7 +197,6 @@ public DateRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// /// public string? Format { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.DateMath? From { get; set; } /// /// @@ -265,7 +240,6 @@ public DateRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// /// public string? TimeZone { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.DateMath? To { get; set; } } public sealed partial class DateRangeQueryDescriptor : SerializableDescriptor> @@ -279,7 +253,6 @@ public DateRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? FromValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DateMath? GtValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DateMath? GteValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DateMath? LtValue { get; set; } @@ -287,7 +260,6 @@ public DateRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? ToValue { get; set; } /// /// @@ -332,12 +304,6 @@ public DateRangeQueryDescriptor Format(string? format) return Self; } - public DateRangeQueryDescriptor From(Elastic.Clients.Elasticsearch.Serverless.DateMath? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -410,12 +376,6 @@ public DateRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public DateRangeQueryDescriptor To(Elastic.Clients.Elasticsearch.Serverless.DateMath? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -435,12 +395,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -483,12 +437,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -505,7 +453,6 @@ public DateRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? FromValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DateMath? GtValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DateMath? GteValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DateMath? LtValue { get; set; } @@ -513,7 +460,6 @@ public DateRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? ToValue { get; set; } /// /// @@ -558,12 +504,6 @@ public DateRangeQueryDescriptor Format(string? format) return Self; } - public DateRangeQueryDescriptor From(Elastic.Clients.Elasticsearch.Serverless.DateMath? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -636,12 +576,6 @@ public DateRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public DateRangeQueryDescriptor To(Elastic.Clients.Elasticsearch.Serverless.DateMath? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -661,12 +595,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -709,12 +637,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs index 64351880ea5..589de265849 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; /// /// Text that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Like : Union { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs index 79bcf0a8336..66640e3d2f5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs @@ -48,12 +48,6 @@ public override NumberRangeQuery Read(ref Utf8JsonReader reader, Type typeToConv continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -89,12 +83,6 @@ public override NumberRangeQuery Read(ref Utf8JsonReader reader, Type typeToConv variant.Relation = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -117,12 +105,6 @@ public override void Write(Utf8JsonWriter writer, NumberRangeQuery value, JsonSe writer.WriteNumberValue(value.Boost.Value); } - if (value.From.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(value.From.Value); - } - if (value.Gt.HasValue) { writer.WritePropertyName("gt"); @@ -159,12 +141,6 @@ public override void Write(Utf8JsonWriter writer, NumberRangeQuery value, JsonSe JsonSerializer.Serialize(writer, value.Relation, options); } - if (value.To.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(value.To.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -190,7 +166,6 @@ public NumberRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - public double? From { get; set; } /// /// @@ -227,7 +202,6 @@ public NumberRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// /// public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? Relation { get; set; } - public double? To { get; set; } } public sealed partial class NumberRangeQueryDescriptor : SerializableDescriptor> @@ -240,14 +214,12 @@ public NumberRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private double? FromValue { get; set; } private double? GtValue { get; set; } private double? GteValue { get; set; } private double? LtValue { get; set; } private double? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private double? ToValue { get; set; } /// /// @@ -281,12 +253,6 @@ public NumberRangeQueryDescriptor Field(Expression From(double? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -348,12 +314,6 @@ public NumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsea return Self; } - public NumberRangeQueryDescriptor To(double? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -367,12 +327,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - if (GtValue.HasValue) { writer.WritePropertyName("gt"); @@ -409,12 +363,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (ToValue.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(ToValue.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -430,14 +378,12 @@ public NumberRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private double? FromValue { get; set; } private double? GtValue { get; set; } private double? GteValue { get; set; } private double? LtValue { get; set; } private double? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private double? ToValue { get; set; } /// /// @@ -471,12 +417,6 @@ public NumberRangeQueryDescriptor Field(Expression /// /// Greater than. @@ -538,12 +478,6 @@ public NumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverl return Self; } - public NumberRangeQueryDescriptor To(double? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -557,12 +491,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - if (GtValue.HasValue) { writer.WritePropertyName("gt"); @@ -599,12 +527,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (ToValue.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(ToValue.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs index c400307d398..538911f2a18 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs @@ -48,12 +48,6 @@ public override TermRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -89,12 +83,6 @@ public override TermRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver variant.Relation = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -117,12 +105,6 @@ public override void Write(Utf8JsonWriter writer, TermRangeQuery value, JsonSeri writer.WriteNumberValue(value.Boost.Value); } - if (!string.IsNullOrEmpty(value.From)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(value.From); - } - if (!string.IsNullOrEmpty(value.Gt)) { writer.WritePropertyName("gt"); @@ -159,12 +141,6 @@ public override void Write(Utf8JsonWriter writer, TermRangeQuery value, JsonSeri JsonSerializer.Serialize(writer, value.Relation, options); } - if (!string.IsNullOrEmpty(value.To)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(value.To); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -190,7 +166,6 @@ public TermRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - public string? From { get; set; } /// /// @@ -227,7 +202,6 @@ public TermRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// /// public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? Relation { get; set; } - public string? To { get; set; } } public sealed partial class TermRangeQueryDescriptor : SerializableDescriptor> @@ -240,14 +214,12 @@ public TermRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FromValue { get; set; } private string? GtValue { get; set; } private string? GteValue { get; set; } private string? LtValue { get; set; } private string? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? ToValue { get; set; } /// /// @@ -281,12 +253,6 @@ public TermRangeQueryDescriptor Field(Expression From(string? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -348,12 +314,6 @@ public TermRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearc return Self; } - public TermRangeQueryDescriptor To(string? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -367,12 +327,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (!string.IsNullOrEmpty(FromValue)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(FromValue); - } - if (!string.IsNullOrEmpty(GtValue)) { writer.WritePropertyName("gt"); @@ -409,12 +363,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (!string.IsNullOrEmpty(ToValue)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(ToValue); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -430,14 +378,12 @@ public TermRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FromValue { get; set; } private string? GtValue { get; set; } private string? GteValue { get; set; } private string? LtValue { get; set; } private string? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? ToValue { get; set; } /// /// @@ -471,12 +417,6 @@ public TermRangeQueryDescriptor Field(Expression /// /// Greater than. @@ -538,12 +478,6 @@ public TermRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverles return Self; } - public TermRangeQueryDescriptor To(string? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -557,12 +491,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (!string.IsNullOrEmpty(FromValue)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(FromValue); - } - if (!string.IsNullOrEmpty(GtValue)) { writer.WritePropertyName("gt"); @@ -599,12 +527,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (!string.IsNullOrEmpty(ToValue)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(ToValue); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs index 71c878320d6..4a324ee690e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs @@ -54,12 +54,6 @@ public override UntypedRangeQuery Read(ref Utf8JsonReader reader, Type typeToCon continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -101,12 +95,6 @@ public override UntypedRangeQuery Read(ref Utf8JsonReader reader, Type typeToCon variant.TimeZone = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -135,12 +123,6 @@ public override void Write(Utf8JsonWriter writer, UntypedRangeQuery value, JsonS writer.WriteStringValue(value.Format); } - if (value.From is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, value.From, options); - } - if (value.Gt is not null) { writer.WritePropertyName("gt"); @@ -183,12 +165,6 @@ public override void Write(Utf8JsonWriter writer, UntypedRangeQuery value, JsonS writer.WriteStringValue(value.TimeZone); } - if (value.To is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, value.To, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -221,7 +197,6 @@ public UntypedRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// /// public string? Format { get; set; } - public object? From { get; set; } /// /// @@ -265,7 +240,6 @@ public UntypedRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) /// /// public string? TimeZone { get; set; } - public object? To { get; set; } } public sealed partial class UntypedRangeQueryDescriptor : SerializableDescriptor> @@ -279,7 +253,6 @@ public UntypedRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private object? FromValue { get; set; } private object? GtValue { get; set; } private object? GteValue { get; set; } private object? LtValue { get; set; } @@ -287,7 +260,6 @@ public UntypedRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private object? ToValue { get; set; } /// /// @@ -332,12 +304,6 @@ public UntypedRangeQueryDescriptor Format(string? format) return Self; } - public UntypedRangeQueryDescriptor From(object? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -410,12 +376,6 @@ public UntypedRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public UntypedRangeQueryDescriptor To(object? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -435,12 +395,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -483,12 +437,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -505,7 +453,6 @@ public UntypedRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private object? FromValue { get; set; } private object? GtValue { get; set; } private object? GteValue { get; set; } private object? LtValue { get; set; } @@ -513,7 +460,6 @@ public UntypedRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private object? ToValue { get; set; } /// /// @@ -558,12 +504,6 @@ public UntypedRangeQueryDescriptor Format(string? format) return Self; } - public UntypedRangeQueryDescriptor From(object? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -636,12 +576,6 @@ public UntypedRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public UntypedRangeQueryDescriptor To(object? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -661,12 +595,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -709,12 +637,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } 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 5c37963523b..68c61bb2325 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 @@ -31,7 +31,7 @@ public sealed partial class QueryRulesetListItem { /// /// - /// A map of criteria type to the number of rules of that type + /// A map of criteria type (e.g. exact) to the number of rules of that type /// /// [JsonInclude, JsonPropertyName("rule_criteria_types_counts")] @@ -52,4 +52,12 @@ public sealed partial class QueryRulesetListItem /// [JsonInclude, JsonPropertyName("rule_total_count")] public int RuleTotalCount { get; init; } + + /// + /// + /// A map of rule type (e.g. pinned) to the number of rules of that type + /// + /// + [JsonInclude, JsonPropertyName("rule_type_counts")] + public IReadOnlyDictionary RuleTypeCounts { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs new file mode 100644 index 00000000000..85cb5f9fb10 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs @@ -0,0 +1,47 @@ +// 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.Security; + +public sealed partial class Access +{ + /// + /// + /// A list of indices permission entries for cross-cluster replication. + /// + /// + [JsonInclude, JsonPropertyName("replication")] + public IReadOnlyCollection? Replication { get; init; } + + /// + /// + /// A list of indices permission entries for cross-cluster search. + /// + /// + [JsonInclude, JsonPropertyName("search")] + public IReadOnlyCollection? Search { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs index c31021053fd..78b78a2e8be 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs @@ -29,13 +29,24 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Security; public sealed partial class ApiKey { + /// + /// + /// The access granted to cross-cluster API keys. + /// The access is composed of permissions for cross cluster search and cross cluster replication. + /// At least one of them must be specified. + /// When specified, the new access assignment fully replaces the previously assigned access. + /// + /// + [JsonInclude, JsonPropertyName("access")] + public Elastic.Clients.Elasticsearch.Serverless.Security.Access? Access { get; init; } + /// /// /// Creation time for the API key in milliseconds. /// /// [JsonInclude, JsonPropertyName("creation")] - public long? Creation { get; init; } + public long Creation { get; init; } /// /// @@ -60,7 +71,15 @@ public sealed partial class ApiKey /// /// [JsonInclude, JsonPropertyName("invalidated")] - public bool? Invalidated { get; init; } + public bool Invalidated { get; init; } + + /// + /// + /// If the key has been invalidated, invalidation time in milliseconds. + /// + /// + [JsonInclude, JsonPropertyName("invalidation")] + public long? Invalidation { get; init; } /// /// @@ -78,7 +97,7 @@ public sealed partial class ApiKey /// /// [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary? Metadata { get; init; } + public IReadOnlyDictionary Metadata { get; init; } /// /// @@ -102,7 +121,7 @@ public sealed partial class ApiKey /// /// [JsonInclude, JsonPropertyName("realm")] - public string? Realm { get; init; } + public string Realm { get; init; } /// /// @@ -120,14 +139,28 @@ public sealed partial class ApiKey /// [JsonInclude, JsonPropertyName("role_descriptors")] public IReadOnlyDictionary? RoleDescriptors { get; init; } + + /// + /// + /// Sorting values when using the sort parameter with the security.query_api_keys API. + /// + /// [JsonInclude, JsonPropertyName("_sort")] public IReadOnlyCollection? Sort { get; init; } + /// + /// + /// The type of the API key (e.g. rest or cross_cluster). + /// + /// + [JsonInclude, JsonPropertyName("type")] + public Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyType Type { get; init; } + /// /// /// Principal for which this API key was created /// /// [JsonInclude, JsonPropertyName("username")] - public string? Username { get; init; } + public string Username { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs new file mode 100644 index 00000000000..37074c34dfd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Security; + +public sealed partial class AuthenticateApiKey +{ + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string? Name { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs new file mode 100644 index 00000000000..dfcd8cadd9d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs @@ -0,0 +1,48 @@ +// 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.Security; + +public sealed partial class ReplicationAccess +{ + /// + /// + /// This needs to be set to true if the patterns in the names field should cover system indices. + /// + /// + [JsonInclude, JsonPropertyName("allow_restricted_indices")] + public bool? AllowRestrictedIndices { get; init; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection Names { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs new file mode 100644 index 00000000000..ad56f8bdb5d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs @@ -0,0 +1,56 @@ +// 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.Security; + +public sealed partial class SearchAccess +{ + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + [JsonInclude, JsonPropertyName("field_security")] + public Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurity { get; init; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection Names { get; init; } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + [JsonInclude, JsonPropertyName("query")] + public object? Query { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs index 11a125636ed..43a33d43cd5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs @@ -37,6 +37,15 @@ public sealed partial class ParentTaskInfo public bool? Cancelled { get; init; } [JsonInclude, JsonPropertyName("children")] public IReadOnlyCollection? Children { get; init; } + + /// + /// + /// Human readable text that identifies the particular request that the task is performing. + /// For example, it might identify the search request being performed by a search task. + /// Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. + /// Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request. + /// + /// [JsonInclude, JsonPropertyName("description")] public string? Description { get; init; } [JsonInclude, JsonPropertyName("headers")] @@ -56,7 +65,10 @@ public sealed partial class ParentTaskInfo /// /// - /// Task status information can vary wildly from task to task. + /// The internal status of the task, which varies from task to task. + /// The format also varies. + /// While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. + /// Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases. /// /// [JsonInclude, JsonPropertyName("status")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs index e1eaca90fcf..0180c47de17 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs @@ -35,6 +35,15 @@ public sealed partial class TaskInfo public bool Cancellable { get; init; } [JsonInclude, JsonPropertyName("cancelled")] public bool? Cancelled { get; init; } + + /// + /// + /// Human readable text that identifies the particular request that the task is performing. + /// For example, it might identify the search request being performed by a search task. + /// Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. + /// Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request. + /// + /// [JsonInclude, JsonPropertyName("description")] public string? Description { get; init; } [JsonInclude, JsonPropertyName("headers")] @@ -54,7 +63,10 @@ public sealed partial class TaskInfo /// /// - /// Task status information can vary wildly from task to task. + /// The internal status of the task, which varies from task to task. + /// The format also varies. + /// While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. + /// Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases. /// /// [JsonInclude, JsonPropertyName("status")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 537089cf96c..31fbe774bcc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -136,12 +136,15 @@ internal static class ApiUrlLookup internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); + internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" }); internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" }); internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" }); internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" }); + internal static ApiUrls IngestGetIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database", "_ingest/ip_location/database/{id}" }); internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" }); internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" }); internal static ApiUrls IngestPutGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); + internal static ApiUrls IngestPutIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" }); internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" }); internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" }); internal static ApiUrls LicenseManagementDelete = new ApiUrls(new[] { "_license" }); @@ -394,6 +397,8 @@ internal static class ApiUrlLookup internal static ApiUrls TasksCancel = new ApiUrls(new[] { "_tasks/_cancel", "_tasks/{task_id}/_cancel" }); internal static ApiUrls TasksGet = new ApiUrls(new[] { "_tasks/{task_id}" }); internal static ApiUrls TasksList = new ApiUrls(new[] { "_tasks" }); + internal static ApiUrls TextStructureFindFieldStructure = new ApiUrls(new[] { "_text_structure/find_field_structure" }); + internal static ApiUrls TextStructureFindMessageStructure = new ApiUrls(new[] { "_text_structure/find_message_structure" }); internal static ApiUrls TextStructureTestGrokPattern = new ApiUrls(new[] { "_text_structure/test_grok_pattern" }); internal static ApiUrls TransformManagementDeleteTransform = new ApiUrls(new[] { "_transform/{transform_id}" }); internal static ApiUrls TransformManagementGetTransform = new ApiUrls(new[] { "_transform/{transform_id}", "_transform" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index ddd279f7d46..ed385a30bf7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.AsyncSearch; public sealed partial class AsyncSearchStatusRequestParameters : RequestParameters { + /// + /// + /// Specifies how long the async search needs to be available. + /// Ongoing async searches and any saved search results are deleted after this period. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } } /// @@ -56,6 +63,15 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => internal override bool SupportsBody => false; internal override string OperationName => "async_search.status"; + + /// + /// + /// Specifies how long the async search needs to be available. + /// Ongoing async searches and any saved search results are deleted after this period. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } } /// @@ -83,6 +99,8 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : internal override string OperationName => "async_search.status"; + public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) { RouteValues.Required("id", id); @@ -119,6 +137,8 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : internal override string OperationName => "async_search.status"; + public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) { RouteValues.Required("id", id); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index 3612227015a..db47e9c2ee2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -110,14 +110,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - /// - /// - /// Specifies how long the async search needs to be available. - /// Ongoing async searches and any saved search results are deleted after this period. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - /// /// /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout. @@ -148,24 +140,23 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// /// - /// The default value cannot be changed, which enforces the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped. + /// Query in the Lucene query string syntax /// /// - public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// /// - /// Query in the Lucene query string syntax + /// Specify if request cache should be used for this request or not, defaults to true /// /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// /// - /// Specify if request cache should be used for this request or not, defaults to true + /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response /// /// - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// @@ -174,7 +165,6 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// /// @@ -772,15 +762,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - /// - /// - /// Specifies how long the async search needs to be available. - /// Ongoing async searches and any saved search results are deleted after this period. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - /// /// /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout. @@ -815,28 +796,26 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) /// /// - /// The default value cannot be changed, which enforces the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped. + /// Query in the Lucene query string syntax /// /// [JsonIgnore] - public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// /// - /// Query in the Lucene query string syntax + /// Specify if request cache should be used for this request or not, defaults to true /// /// [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// /// - /// Specify if request cache should be used for this request or not, defaults to true + /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response /// /// [JsonIgnore] - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - [JsonIgnore] public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// @@ -846,8 +825,6 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// /// @@ -1192,17 +1169,14 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SubmitAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); public SubmitAsyncSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); public SubmitAsyncSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public SubmitAsyncSearchRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Duration? scroll) => Qs("scroll", scroll); public SubmitAsyncSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); public SubmitAsyncSearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); public SubmitAsyncSearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); @@ -2316,17 +2290,14 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SubmitAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SubmitAsyncSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); public SubmitAsyncSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); public SubmitAsyncSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public SubmitAsyncSearchRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Duration? scroll) => Qs("scroll", scroll); public SubmitAsyncSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); public SubmitAsyncSearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); public SubmitAsyncSearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index c845dcfd97d..6e2ebd29f2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class BulkRequestParameters : RequestParameters { + /// + /// + /// If true, the response will include the ingest pipelines that were executed for each index or create. + /// + /// + public bool? ListExecutedPipelines { get => Q("list_executed_pipelines"); set => Q("list_executed_pipelines", value); } + /// /// /// ID of the pipeline to use to preprocess incoming documents. @@ -56,6 +63,13 @@ public sealed partial class BulkRequestParameters : RequestParameters /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } + /// + /// + /// If true, the request's actions must target a data stream (existing or to-be-created). + /// + /// + public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } + /// /// /// Custom value used to route operations to a specific shard. @@ -125,6 +139,14 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r internal override string OperationName => "bulk"; + /// + /// + /// If true, the response will include the ingest pipelines that were executed for each index or create. + /// + /// + [JsonIgnore] + public bool? ListExecutedPipelines { get => Q("list_executed_pipelines"); set => Q("list_executed_pipelines", value); } + /// /// /// ID of the pipeline to use to preprocess incoming documents. @@ -152,6 +174,14 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r [JsonIgnore] public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } + /// + /// + /// If true, the request's actions must target a data stream (existing or to-be-created). + /// + /// + [JsonIgnore] + public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } + /// /// /// Custom value used to route operations to a specific shard. @@ -229,9 +259,11 @@ public BulkRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "bulk"; + public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines); public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); public BulkRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); + public BulkRequestDescriptor RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream); public BulkRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); public BulkRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? source) => Qs("_source", source); public BulkRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); @@ -279,9 +311,11 @@ public BulkRequestDescriptor() internal override string OperationName => "bulk"; + public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines); public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); public BulkRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); + public BulkRequestDescriptor RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream); public BulkRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); public BulkRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? source) => Qs("_source", source); public BulkRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs index de7f7b38f23..23e668b1bcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -49,7 +49,11 @@ public sealed partial class AllocationExplainRequestParameters : RequestParamete /// /// -/// Provides explanations for shard allocations in the cluster. +/// Explain the shard allocations. +/// Get explanations for shard allocations in the cluster. +/// For unassigned shards, it provides an explanation for why the shard is unassigned. +/// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. +/// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// /// public sealed partial class AllocationExplainRequest : PlainRequest @@ -113,7 +117,11 @@ public sealed partial class AllocationExplainRequest : PlainRequest /// -/// Provides explanations for shard allocations in the cluster. +/// Explain the shard allocations. +/// Get explanations for shard allocations in the cluster. +/// For unassigned shards, it provides an explanation for why the shard is unassigned. +/// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. +/// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// /// public sealed partial class AllocationExplainRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs index 537d7315cc5..f9395e795b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -51,8 +51,8 @@ public sealed partial class ClusterStatsRequestParameters : RequestParameters /// /// -/// Returns cluster statistics. -/// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). +/// Get cluster statistics. +/// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// /// public sealed partial class ClusterStatsRequest : PlainRequest @@ -94,8 +94,8 @@ public ClusterStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base /// /// -/// Returns cluster statistics. -/// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). +/// Get cluster statistics. +/// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// /// public sealed partial class ClusterStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs index d873078ca6b..b666916f7c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs @@ -47,7 +47,8 @@ public sealed partial class DeleteVotingConfigExclusionsRequestParameters : Requ /// /// -/// Clears cluster voting config exclusions. +/// Clear cluster voting config exclusions. +/// Remove master-eligible nodes from the voting configuration exclusion list. /// /// public sealed partial class DeleteVotingConfigExclusionsRequest : PlainRequest @@ -76,7 +77,8 @@ public sealed partial class DeleteVotingConfigExclusionsRequest : PlainRequest /// -/// Clears cluster voting config exclusions. +/// Clear cluster voting config exclusions. +/// Remove master-eligible nodes from the voting configuration exclusion list. /// /// public sealed partial class DeleteVotingConfigExclusionsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs index 34fd028b7ed..c4fc5d41325 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class GetClusterSettingsRequestParameters : RequestParamet /// /// -/// Returns cluster-wide settings. +/// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// /// @@ -116,7 +116,7 @@ public sealed partial class GetClusterSettingsRequest : PlainRequest /// -/// Returns cluster-wide settings. +/// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs index faa130ea035..07c6a721bf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs @@ -112,8 +112,18 @@ public sealed partial class HealthRequestParameters : RequestParameters /// /// -/// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. -/// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. +/// Get the cluster health status. +/// You can also use the API to get the health status of only specified data streams and indices. +/// For data streams, the API retrieves the health status of the stream’s backing indices. +/// +/// +/// The cluster health status is: green, yellow or red. +/// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. +/// The index level status is controlled by the worst shard status. +/// +/// +/// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. +/// The cluster status is controlled by the worst index status. /// /// public sealed partial class HealthRequest : PlainRequest @@ -225,8 +235,18 @@ public HealthRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// -/// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. -/// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. +/// Get the cluster health status. +/// You can also use the API to get the health status of only specified data streams and indices. +/// For data streams, the API retrieves the health status of the stream’s backing indices. +/// +/// +/// The cluster health status is: green, yellow or red. +/// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. +/// The index level status is controlled by the worst shard status. +/// +/// +/// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. +/// The cluster status is controlled by the worst index status. /// /// public sealed partial class HealthRequestDescriptor : RequestDescriptor, HealthRequestParameters> @@ -274,8 +294,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. -/// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. +/// Get the cluster health status. +/// You can also use the API to get the health status of only specified data streams and indices. +/// For data streams, the API retrieves the health status of the stream’s backing indices. +/// +/// +/// The cluster health status is: green, yellow or red. +/// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. +/// The index level status is controlled by the worst shard status. +/// +/// +/// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. +/// The cluster status is controlled by the worst index status. /// /// public sealed partial class HealthRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs index bc8b02c27af..ed40db21041 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs @@ -51,9 +51,12 @@ public sealed partial class PendingTasksRequestParameters : RequestParameters /// /// -/// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. +/// Get the pending cluster tasks. +/// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. +/// +/// /// NOTE: This API returns a list of any pending updates to the cluster state. -/// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. +/// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// /// @@ -88,9 +91,12 @@ public sealed partial class PendingTasksRequest : PlainRequest /// -/// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. +/// Get the pending cluster tasks. +/// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. +/// +/// /// NOTE: This API returns a list of any pending updates to the cluster state. -/// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. +/// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs index 484e1d1d922..75da7c39dae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs @@ -61,7 +61,27 @@ public sealed partial class PostVotingConfigExclusionsRequestParameters : Reques /// /// -/// Updates the cluster voting config exclusions by node ids or node names. +/// Update voting configuration exclusions. +/// Update the cluster voting config exclusions by node IDs or node names. +/// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. +/// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. +/// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. +/// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. +/// +/// +/// Clusters should have no voting configuration exclusions in normal operation. +/// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. +/// This API waits for the nodes to be fully removed from the cluster before it returns. +/// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. +/// +/// +/// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. +/// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. +/// In that case, you may safely retry the call. +/// +/// +/// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. +/// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// /// public sealed partial class PostVotingConfigExclusionsRequest : PlainRequest @@ -106,7 +126,27 @@ public sealed partial class PostVotingConfigExclusionsRequest : PlainRequest /// -/// Updates the cluster voting config exclusions by node ids or node names. +/// Update voting configuration exclusions. +/// Update the cluster voting config exclusions by node IDs or node names. +/// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. +/// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. +/// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. +/// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. +/// +/// +/// Clusters should have no voting configuration exclusions in normal operation. +/// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. +/// This API waits for the nodes to be fully removed from the cluster before it returns. +/// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. +/// +/// +/// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. +/// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. +/// In that case, you may safely retry the call. +/// +/// +/// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. +/// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// /// public sealed partial class PostVotingConfigExclusionsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 93b2d7c8823..a6dcb0989ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -143,7 +143,8 @@ public sealed partial class CountRequestParameters : RequestParameters /// /// -/// Returns number of documents matching a query. +/// Count search results. +/// Get the number of documents matching a query. /// /// public partial class CountRequest : PlainRequest @@ -297,7 +298,8 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// -/// Returns number of documents matching a query. +/// Count search results. +/// Get the number of documents matching a query. /// /// public sealed partial class CountRequestDescriptor : RequestDescriptor, CountRequestParameters> @@ -399,7 +401,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns number of documents matching a query. +/// Count search results. +/// Get the number of documents matching a query. /// /// public sealed partial class CountRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs index 8430cab1866..0c05bca66b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class CcrStatsRequestParameters : RequestParameters /// /// -/// Gets all stats related to cross-cluster replication. +/// Get cross-cluster replication stats. +/// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// /// public sealed partial class CcrStatsRequest : PlainRequest @@ -52,7 +53,8 @@ public sealed partial class CcrStatsRequest : PlainRequest /// -/// Gets all stats related to cross-cluster replication. +/// Get cross-cluster replication stats. +/// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// /// public sealed partial class CcrStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs index 7236742d6fc..838922632ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class DeleteAutoFollowPatternRequestParameters : RequestPa /// /// -/// Deletes auto-follow patterns. +/// Delete auto-follow patterns. +/// Delete a collection of cross-cluster replication auto-follow patterns. /// /// public sealed partial class DeleteAutoFollowPatternRequest : PlainRequest @@ -56,7 +57,8 @@ public DeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// -/// Deletes auto-follow patterns. +/// Delete auto-follow patterns. +/// Delete a collection of cross-cluster replication auto-follow patterns. /// /// public sealed partial class DeleteAutoFollowPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs index 484ffbdbd3f..75a456deb2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class FollowInfoRequestParameters : RequestParameters /// /// -/// Retrieves information about all follower indices, including parameters and status for each follower index +/// Get follower information. +/// Get information about all cross-cluster replication follower indices. +/// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// /// public sealed partial class FollowInfoRequest : PlainRequest @@ -56,7 +58,9 @@ public FollowInfoRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// -/// Retrieves information about all follower indices, including parameters and status for each follower index +/// Get follower information. +/// Get information about all cross-cluster replication follower indices. +/// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// /// public sealed partial class FollowInfoRequestDescriptor : RequestDescriptor, FollowInfoRequestParameters> @@ -92,7 +96,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves information about all follower indices, including parameters and status for each follower index +/// Get follower information. +/// Get information about all cross-cluster replication follower indices. +/// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// /// public sealed partial class FollowInfoRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs index 3280b6931ab..713e143d421 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -45,7 +45,9 @@ public sealed partial class FollowRequestParameters : RequestParameters /// /// -/// Creates a new follower index configured to follow the referenced leader index. +/// Create a follower. +/// Create a cross-cluster replication follower index that follows a specific leader index. +/// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// /// public sealed partial class FollowRequest : PlainRequest @@ -193,7 +195,9 @@ public FollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => /// /// -/// Creates a new follower index configured to follow the referenced leader index. +/// Create a follower. +/// Create a cross-cluster replication follower index that follows a specific leader index. +/// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// /// public sealed partial class FollowRequestDescriptor : RequestDescriptor, FollowRequestParameters> @@ -513,7 +517,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Creates a new follower index configured to follow the referenced leader index. +/// Create a follower. +/// Create a cross-cluster replication follower index that follows a specific leader index. +/// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// /// public sealed partial class FollowRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs index 84c37c5ef8f..a08fd5c57f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class FollowStatsRequestParameters : RequestParameters /// /// -/// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. +/// Get follower stats. +/// Get cross-cluster replication follower stats. +/// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// /// public sealed partial class FollowStatsRequest : PlainRequest @@ -56,7 +58,9 @@ public FollowStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base( /// /// -/// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. +/// Get follower stats. +/// Get cross-cluster replication follower stats. +/// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// /// public sealed partial class FollowStatsRequestDescriptor : RequestDescriptor, FollowStatsRequestParameters> @@ -92,7 +96,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. +/// Get follower stats. +/// Get cross-cluster replication follower stats. +/// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// /// public sealed partial class FollowStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs index 534aade2b25..83afef716e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs @@ -36,7 +36,20 @@ public sealed partial class ForgetFollowerRequestParameters : RequestParameters /// /// -/// Removes the follower retention leases from the leader. +/// Forget a follower. +/// Remove the cross-cluster replication follower retention leases from the leader. +/// +/// +/// A following index takes out retention leases on its leader index. +/// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. +/// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. +/// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. +/// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. +/// This API exists to enable manually removing the leases when the unfollow API is unable to do so. +/// +/// +/// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. +/// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// /// public sealed partial class ForgetFollowerRequest : PlainRequest @@ -65,7 +78,20 @@ public ForgetFollowerRequest(Elastic.Clients.Elasticsearch.IndexName index) : ba /// /// -/// Removes the follower retention leases from the leader. +/// Forget a follower. +/// Remove the cross-cluster replication follower retention leases from the leader. +/// +/// +/// A following index takes out retention leases on its leader index. +/// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. +/// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. +/// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. +/// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. +/// This API exists to enable manually removing the leases when the unfollow API is unable to do so. +/// +/// +/// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. +/// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// /// public sealed partial class ForgetFollowerRequestDescriptor : RequestDescriptor, ForgetFollowerRequestParameters> @@ -156,7 +182,20 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Removes the follower retention leases from the leader. +/// Forget a follower. +/// Remove the cross-cluster replication follower retention leases from the leader. +/// +/// +/// A following index takes out retention leases on its leader index. +/// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. +/// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. +/// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. +/// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. +/// This API exists to enable manually removing the leases when the unfollow API is unable to do so. +/// +/// +/// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. +/// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// /// public sealed partial class ForgetFollowerRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs index e8792e31dfc..0d67104509e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetAutoFollowPatternRequestParameters : RequestParam /// /// -/// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. +/// Get auto-follow patterns. +/// Get cross-cluster replication auto-follow patterns. /// /// public sealed partial class GetAutoFollowPatternRequest : PlainRequest @@ -60,7 +61,8 @@ public GetAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name? name) : b /// /// -/// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. +/// Get auto-follow patterns. +/// Get cross-cluster replication auto-follow patterns. /// /// public sealed partial class GetAutoFollowPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs index b1ea27244a0..6d1d06ba408 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs @@ -36,7 +36,15 @@ public sealed partial class PauseAutoFollowPatternRequestParameters : RequestPar /// /// -/// Pauses an auto-follow pattern +/// Pause an auto-follow pattern. +/// Pause a cross-cluster replication auto-follow pattern. +/// When the API returns, the auto-follow pattern is inactive. +/// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. +/// +/// +/// You can resume auto-following with the resume auto-follow pattern API. +/// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. +/// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// /// public sealed partial class PauseAutoFollowPatternRequest : PlainRequest @@ -56,7 +64,15 @@ public PauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// -/// Pauses an auto-follow pattern +/// Pause an auto-follow pattern. +/// Pause a cross-cluster replication auto-follow pattern. +/// When the API returns, the auto-follow pattern is inactive. +/// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. +/// +/// +/// You can resume auto-following with the resume auto-follow pattern API. +/// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. +/// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// /// public sealed partial class PauseAutoFollowPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs index 1464d4bff6e..ba974a7ce62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs @@ -36,7 +36,11 @@ public sealed partial class PauseFollowRequestParameters : RequestParameters /// /// -/// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. +/// Pause a follower. +/// Pause a cross-cluster replication follower index. +/// The follower index will not fetch any additional operations from the leader index. +/// You can resume following with the resume follower API. +/// You can pause and resume a follower index to change the configuration of the following task. /// /// public sealed partial class PauseFollowRequest : PlainRequest @@ -56,7 +60,11 @@ public PauseFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// -/// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. +/// Pause a follower. +/// Pause a cross-cluster replication follower index. +/// The follower index will not fetch any additional operations from the leader index. +/// You can resume following with the resume follower API. +/// You can pause and resume a follower index to change the configuration of the following task. /// /// public sealed partial class PauseFollowRequestDescriptor : RequestDescriptor, PauseFollowRequestParameters> @@ -92,7 +100,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. +/// Pause a follower. +/// Pause a cross-cluster replication follower index. +/// The follower index will not fetch any additional operations from the leader index. +/// You can resume following with the resume follower API. +/// You can pause and resume a follower index to change the configuration of the following task. /// /// public sealed partial class PauseFollowRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs index a5386b3ba9f..0d2b49c3377 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs @@ -36,7 +36,14 @@ public sealed partial class PutAutoFollowPatternRequestParameters : RequestParam /// /// -/// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. +/// Create or update auto-follow patterns. +/// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. +/// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. +/// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. +/// +/// +/// This API can also be used to update auto-follow patterns. +/// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// /// public sealed partial class PutAutoFollowPatternRequest : PlainRequest @@ -176,7 +183,14 @@ public PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : ba /// /// -/// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. +/// Create or update auto-follow patterns. +/// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. +/// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. +/// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. +/// +/// +/// This API can also be used to update auto-follow patterns. +/// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// /// public sealed partial class PutAutoFollowPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs index ef1b17de9f6..33dd4afe9a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class ResumeAutoFollowPatternRequestParameters : RequestPa /// /// -/// Resumes an auto-follow pattern that has been paused +/// Resume an auto-follow pattern. +/// Resume a cross-cluster replication auto-follow pattern that was paused. +/// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. +/// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// /// public sealed partial class ResumeAutoFollowPatternRequest : PlainRequest @@ -56,7 +59,10 @@ public ResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// -/// Resumes an auto-follow pattern that has been paused +/// Resume an auto-follow pattern. +/// Resume a cross-cluster replication auto-follow pattern that was paused. +/// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. +/// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// /// public sealed partial class ResumeAutoFollowPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs index 358d2d08210..ab0686ccb90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs @@ -36,7 +36,11 @@ public sealed partial class ResumeFollowRequestParameters : RequestParameters /// /// -/// Resumes a follower index that has been paused +/// Resume a follower. +/// Resume a cross-cluster replication follower index that was paused. +/// The follower index could have been paused with the pause follower API. +/// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. +/// When this API returns, the follower index will resume fetching operations from the leader index. /// /// public sealed partial class ResumeFollowRequest : PlainRequest @@ -77,7 +81,11 @@ public ResumeFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base /// /// -/// Resumes a follower index that has been paused +/// Resume a follower. +/// Resume a cross-cluster replication follower index that was paused. +/// The follower index could have been paused with the pause follower API. +/// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. +/// When this API returns, the follower index will resume fetching operations from the leader index. /// /// public sealed partial class ResumeFollowRequestDescriptor : RequestDescriptor, ResumeFollowRequestParameters> @@ -246,7 +254,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Resumes a follower index that has been paused +/// Resume a follower. +/// Resume a cross-cluster replication follower index that was paused. +/// The follower index could have been paused with the pause follower API. +/// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. +/// When this API returns, the follower index will resume fetching operations from the leader index. /// /// public sealed partial class ResumeFollowRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs index ff19808d599..ab1fab0076b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs @@ -36,7 +36,13 @@ public sealed partial class UnfollowRequestParameters : RequestParameters /// /// -/// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. +/// Unfollow an index. +/// Convert a cross-cluster replication follower index to a regular index. +/// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. +/// The follower index must be paused and closed before you call the unfollow API. +/// +/// +/// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// /// public sealed partial class UnfollowRequest : PlainRequest @@ -56,7 +62,13 @@ public UnfollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r = /// /// -/// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. +/// Unfollow an index. +/// Convert a cross-cluster replication follower index to a regular index. +/// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. +/// The follower index must be paused and closed before you call the unfollow API. +/// +/// +/// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// /// public sealed partial class UnfollowRequestDescriptor : RequestDescriptor, UnfollowRequestParameters> @@ -92,7 +104,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. +/// Unfollow an index. +/// Convert a cross-cluster replication follower index to a regular index. +/// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. +/// The follower index must be paused and closed before you call the unfollow API. +/// +/// +/// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// /// public sealed partial class UnfollowRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs index ca8c85f9433..daa404fd68f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -42,7 +42,8 @@ public sealed partial class ExecutePolicyRequestParameters : RequestParameters /// /// -/// Creates the enrich index for an existing enrich policy. +/// Run an enrich policy. +/// Create the enrich index for an existing enrich policy. /// /// public sealed partial class ExecutePolicyRequest : PlainRequest @@ -70,7 +71,8 @@ public ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => /// /// -/// Creates the enrich index for an existing enrich policy. +/// Run an enrich policy. +/// Create the enrich index for an existing enrich policy. /// /// public sealed partial class ExecutePolicyRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs index ab14e281da1..ab270a990cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlDeleteRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class EqlDeleteRequestParameters : RequestParameters /// /// -/// Deletes an async EQL search or a stored synchronous EQL search. +/// Delete an async EQL search. +/// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// @@ -57,7 +58,8 @@ public EqlDeleteRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requi /// /// -/// Deletes an async EQL search or a stored synchronous EQL search. +/// Delete an async EQL search. +/// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// @@ -90,7 +92,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes an async EQL search or a stored synchronous EQL search. +/// Delete an async EQL search. +/// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs index 1d8a84c00ad..bb6b31ce705 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetRequest.g.cs @@ -51,7 +51,8 @@ public sealed partial class EqlGetRequestParameters : RequestParameters /// /// -/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. +/// Get async EQL search results. +/// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// /// public sealed partial class EqlGetRequest : PlainRequest @@ -89,7 +90,8 @@ public EqlGetRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required /// /// -/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. +/// Get async EQL search results. +/// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// /// public sealed partial class EqlGetRequestDescriptor : RequestDescriptor, EqlGetRequestParameters> @@ -124,7 +126,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. +/// Get async EQL search results. +/// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// /// public sealed partial class EqlGetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs index b808cd86302..ccdd1f5ef9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs @@ -60,6 +60,14 @@ public sealed partial class EqlGetResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("is_running")] public bool? IsRunning { get; init; } + /// + /// + /// Contains information about shard failures (if any), in case allow_partial_search_results=true + /// + /// + [JsonInclude, JsonPropertyName("shard_failures")] + public IReadOnlyCollection? ShardFailures { get; init; } + /// /// /// If true, the request timed out before completion. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index 20a29d1a6c8..5f88564f66a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -45,7 +45,9 @@ public sealed partial class EqlSearchRequestParameters : RequestParameters /// /// -/// Returns results matching a query expressed in Event Query Language (EQL) +/// Get EQL search results. +/// Returns search results for an Event Query Language (EQL) query. +/// EQL assumes each document in a data stream or index corresponds to an event. /// /// public sealed partial class EqlSearchRequest : PlainRequest @@ -74,6 +76,10 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + [JsonInclude, JsonPropertyName("allow_partial_search_results")] + public bool? AllowPartialSearchResults { get; set; } + [JsonInclude, JsonPropertyName("allow_partial_sequence_results")] + public bool? AllowPartialSequenceResults { get; set; } [JsonInclude, JsonPropertyName("case_sensitive")] public bool? CaseSensitive { get; set; } @@ -166,7 +172,9 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// -/// Returns results matching a query expressed in Event Query Language (EQL) +/// Get EQL search results. +/// Returns search results for an Event Query Language (EQL) query. +/// EQL assumes each document in a data stream or index corresponds to an event. /// /// public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor, EqlSearchRequestParameters> @@ -199,6 +207,8 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear return Self; } + private bool? AllowPartialSearchResultsValue { get; set; } + private bool? AllowPartialSequenceResultsValue { get; set; } private bool? CaseSensitiveValue { get; set; } private Elastic.Clients.Elasticsearch.Field? EventCategoryFieldValue { get; set; } private int? FetchSizeValue { get; set; } @@ -221,6 +231,18 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Elastic.Clients.Elasticsearch.Field? TimestampFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } + public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) + { + AllowPartialSearchResultsValue = allowPartialSearchResults; + return Self; + } + + public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) + { + AllowPartialSequenceResultsValue = allowPartialSequenceResults; + return Self; + } + public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) { CaseSensitiveValue = caseSensitive; @@ -487,6 +509,18 @@ public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Cl protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowPartialSearchResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_search_results"); + writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); + } + + if (AllowPartialSequenceResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_sequence_results"); + writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); + } + if (CaseSensitiveValue.HasValue) { writer.WritePropertyName("case_sensitive"); @@ -625,7 +659,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns results matching a query expressed in Event Query Language (EQL) +/// Get EQL search results. +/// Returns search results for an Event Query Language (EQL) query. +/// EQL assumes each document in a data stream or index corresponds to an event. /// /// public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor @@ -654,6 +690,8 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices return Self; } + private bool? AllowPartialSearchResultsValue { get; set; } + private bool? AllowPartialSequenceResultsValue { get; set; } private bool? CaseSensitiveValue { get; set; } private Elastic.Clients.Elasticsearch.Field? EventCategoryFieldValue { get; set; } private int? FetchSizeValue { get; set; } @@ -676,6 +714,18 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Elastic.Clients.Elasticsearch.Field? TimestampFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } + public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) + { + AllowPartialSearchResultsValue = allowPartialSearchResults; + return Self; + } + + public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) + { + AllowPartialSequenceResultsValue = allowPartialSequenceResults; + return Self; + } + public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) { CaseSensitiveValue = caseSensitive; @@ -942,6 +992,18 @@ public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elast protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowPartialSearchResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_search_results"); + writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); + } + + if (AllowPartialSequenceResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_sequence_results"); + writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); + } + if (CaseSensitiveValue.HasValue) { writer.WritePropertyName("case_sensitive"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs index 1f4602dc9b6..720dbc35012 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs @@ -60,6 +60,14 @@ public sealed partial class EqlSearchResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("is_running")] public bool? IsRunning { get; init; } + /// + /// + /// Contains information about shard failures (if any), in case allow_partial_search_results=true + /// + /// + [JsonInclude, JsonPropertyName("shard_failures")] + public IReadOnlyCollection? ShardFailures { get; init; } + /// /// /// If true, the request timed out before completion. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs index 7137b3d8f1a..faba4187dbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/GetEqlStatusRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetEqlStatusRequestParameters : RequestParameters /// /// -/// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. +/// Get the async EQL status. +/// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// /// public sealed partial class GetEqlStatusRequest : PlainRequest @@ -56,7 +57,8 @@ public GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// -/// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. +/// Get the async EQL status. +/// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// /// public sealed partial class GetEqlStatusRequestDescriptor : RequestDescriptor, GetEqlStatusRequestParameters> @@ -88,7 +90,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. +/// Get the async EQL status. +/// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// /// public sealed partial class GetEqlStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs index 969deddec05..1947cab2686 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -57,7 +57,8 @@ public sealed partial class EsqlQueryRequestParameters : RequestParameters /// /// -/// Executes an ES|QL request +/// Run an ES|QL query. +/// Get search results for an ES|QL (Elasticsearch query language) query. /// /// public sealed partial class EsqlQueryRequest : PlainRequest @@ -143,7 +144,8 @@ public sealed partial class EsqlQueryRequest : PlainRequest /// -/// Executes an ES|QL request +/// Run an ES|QL query. +/// Get search results for an ES|QL (Elasticsearch query language) query. /// /// public sealed partial class EsqlQueryRequestDescriptor : RequestDescriptor, EsqlQueryRequestParameters> @@ -308,7 +310,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Executes an ES|QL request +/// Run an ES|QL query. +/// Get search results for an ES|QL (Elasticsearch query language) query. /// /// public sealed partial class EsqlQueryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs index 4514119121a..ec3b39f037f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs @@ -36,7 +36,18 @@ public sealed partial class GetFeaturesRequestParameters : RequestParameters /// /// -/// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot +/// Get the features. +/// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. +/// You can use this API to determine which feature states to include when taking a snapshot. +/// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. +/// +/// +/// A feature state includes one or more system indices necessary for a given feature to function. +/// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. +/// +/// +/// The features listed by this API are a combination of built-in features and features defined by plugins. +/// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// public sealed partial class GetFeaturesRequest : PlainRequest @@ -52,7 +63,18 @@ public sealed partial class GetFeaturesRequest : PlainRequest /// -/// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot +/// Get the features. +/// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. +/// You can use this API to determine which feature states to include when taking a snapshot. +/// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. +/// +/// +/// A feature state includes one or more system indices necessary for a given feature to function. +/// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. +/// +/// +/// The features listed by this API are a combination of built-in features and features defined by plugins. +/// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// public sealed partial class GetFeaturesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs index 5002a2fd25b..5a4891114bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs @@ -36,7 +36,29 @@ public sealed partial class ResetFeaturesRequestParameters : RequestParameters /// /// -/// Resets the internal state of features, usually by deleting system indices +/// Reset the features. +/// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. +/// +/// +/// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. +/// +/// +/// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. +/// This deletes all state information stored in system indices. +/// +/// +/// The response code is HTTP 200 if the state is successfully reset for all features. +/// It is HTTP 500 if the reset operation failed for any feature. +/// +/// +/// Note that select features might provide a way to reset particular system indices. +/// Using this API resets all features, both those that are built-in and implemented as plugins. +/// +/// +/// To list the features that will be affected, use the get features API. +/// +/// +/// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// public sealed partial class ResetFeaturesRequest : PlainRequest @@ -52,7 +74,29 @@ public sealed partial class ResetFeaturesRequest : PlainRequest /// -/// Resets the internal state of features, usually by deleting system indices +/// Reset the features. +/// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. +/// +/// +/// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. +/// +/// +/// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. +/// This deletes all state information stored in system indices. +/// +/// +/// The response code is HTTP 200 if the state is successfully reset for all features. +/// It is HTTP 500 if the reset operation failed for any feature. +/// +/// +/// Note that select features might provide a way to reset particular system indices. +/// Using this API resets all features, both those that are built-in and implemented as plugins. +/// +/// +/// To list the features that will be affected, use the get features API. +/// +/// +/// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// public sealed partial class ResetFeaturesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs index 64eec4febf9..9a575d572f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs @@ -51,7 +51,12 @@ public sealed partial class ExploreRequestParameters : RequestParameters /// /// -/// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. +/// Explore graph analytics. +/// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. +/// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. +/// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. +/// Subsequent requests enable you to spider out from one more vertices of interest. +/// You can exclude vertices that have already been returned. /// /// public sealed partial class ExploreRequest : PlainRequest @@ -121,7 +126,12 @@ public ExploreRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => /// /// -/// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. +/// Explore graph analytics. +/// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. +/// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. +/// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. +/// Subsequent requests enable you to spider out from one more vertices of interest. +/// You can exclude vertices that have already been returned. /// /// public sealed partial class ExploreRequestDescriptor : RequestDescriptor, ExploreRequestParameters> @@ -383,7 +393,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. +/// Explore graph analytics. +/// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. +/// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. +/// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. +/// Subsequent requests enable you to spider out from one more vertices of interest. +/// You can exclude vertices that have already been returned. /// /// public sealed partial class ExploreRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs index c11068c9549..1e319f394cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/HealthReportRequest.g.cs @@ -56,7 +56,29 @@ public sealed partial class HealthReportRequestParameters : RequestParameters /// /// -/// Returns the health of the cluster. +/// Get the cluster health. +/// Get a report with the health status of an Elasticsearch cluster. +/// The report contains a list of indicators that compose Elasticsearch functionality. +/// +/// +/// Each indicator has a health status of: green, unknown, yellow or red. +/// The indicator will provide an explanation and metadata describing the reason for its current health status. +/// +/// +/// The cluster’s status is controlled by the worst indicator status. +/// +/// +/// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. +/// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. +/// +/// +/// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. +/// The root cause and remediation steps are encapsulated in a diagnosis. +/// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. +/// +/// +/// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. +/// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// public sealed partial class HealthReportRequest : PlainRequest @@ -104,7 +126,29 @@ public HealthReportRequest(IReadOnlyCollection? feature) : base(r => r.O /// /// -/// Returns the health of the cluster. +/// Get the cluster health. +/// Get a report with the health status of an Elasticsearch cluster. +/// The report contains a list of indicators that compose Elasticsearch functionality. +/// +/// +/// Each indicator has a health status of: green, unknown, yellow or red. +/// The indicator will provide an explanation and metadata describing the reason for its current health status. +/// +/// +/// The cluster’s status is controlled by the worst indicator status. +/// +/// +/// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. +/// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. +/// +/// +/// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. +/// The root cause and remediation steps are encapsulated in a diagnosis. +/// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. +/// +/// +/// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. +/// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// public sealed partial class HealthReportRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs index edd1ee6ec59..aac721e8e18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -49,7 +49,8 @@ public sealed partial class DeleteLifecycleRequestParameters : RequestParameters /// /// -/// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. +/// Delete a lifecycle policy. +/// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// public sealed partial class DeleteLifecycleRequest : PlainRequest @@ -85,7 +86,8 @@ public DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r /// /// -/// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. +/// Delete a lifecycle policy. +/// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// public sealed partial class DeleteLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs index 0bff6514e2c..7ca469ce9c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetIlmStatusRequestParameters : RequestParameters /// /// -/// Retrieves the current index lifecycle management (ILM) status. +/// Get the ILM status. +/// Get the current index lifecycle management status. /// /// public sealed partial class GetIlmStatusRequest : PlainRequest @@ -52,7 +53,8 @@ public sealed partial class GetIlmStatusRequest : PlainRequest /// -/// Retrieves the current index lifecycle management (ILM) status. +/// Get the ILM status. +/// Get the current index lifecycle management status. /// /// public sealed partial class GetIlmStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs index 79d2688e50f..c2d33b459fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetLifecycleRequest.g.cs @@ -49,7 +49,7 @@ public sealed partial class GetLifecycleRequestParameters : RequestParameters /// /// -/// Retrieves a lifecycle policy. +/// Get lifecycle policies. /// /// public sealed partial class GetLifecycleRequest : PlainRequest @@ -89,7 +89,7 @@ public GetLifecycleRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => /// /// -/// Retrieves a lifecycle policy. +/// Get lifecycle policies. /// /// public sealed partial class GetLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs index 6fa5fe33b0f..111adb650af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersRequest.g.cs @@ -43,10 +43,36 @@ public sealed partial class MigrateToDataTiersRequestParameters : RequestParamet /// /// -/// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and -/// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ +/// Migrate to data tiers routing. +/// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. +/// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// +/// +/// Migrating away from custom node attributes routing can be manually performed. +/// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: +/// +/// +/// +/// +/// Stop setting the custom hot attribute on new indices. +/// +/// +/// +/// +/// Remove custom allocation settings from existing ILM policies. +/// +/// +/// +/// +/// Replace custom allocation settings from existing indices with the corresponding tier preference. +/// +/// +/// +/// +/// ILM must be stopped before performing the migration. +/// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. +/// /// public sealed partial class MigrateToDataTiersRequest : PlainRequest { @@ -74,10 +100,36 @@ public sealed partial class MigrateToDataTiersRequest : PlainRequest /// -/// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and -/// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ +/// Migrate to data tiers routing. +/// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. +/// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// +/// +/// Migrating away from custom node attributes routing can be manually performed. +/// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: +/// +/// +/// +/// +/// Stop setting the custom hot attribute on new indices. +/// +/// +/// +/// +/// Remove custom allocation settings from existing ILM policies. +/// +/// +/// +/// +/// Replace custom allocation settings from existing indices with the corresponding tier preference. +/// +/// +/// +/// +/// ILM must be stopped before performing the migration. +/// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. +/// /// public sealed partial class MigrateToDataTiersRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs index 69e36b217a1..e69e5d40c39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs @@ -36,7 +36,23 @@ public sealed partial class MoveToStepRequestParameters : RequestParameters /// /// -/// Manually moves an index into the specified step and executes that step. +/// Move to a lifecycle step. +/// Manually move an index into a specific step in the lifecycle policy and run that step. +/// +/// +/// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. +/// +/// +/// You must specify both the current step and the step to be executed in the body of the request. +/// The request will fail if the current step does not match the step currently running for the index +/// This is to prevent the index from being moved from an unexpected step into the next step. +/// +/// +/// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. +/// If only the phase is specified, the index will move to the first step of the first action in the target phase. +/// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. +/// Only actions specified in the ILM policy are considered valid. +/// An index cannot move to a step that is not part of its policy. /// /// public sealed partial class MoveToStepRequest : PlainRequest @@ -61,7 +77,23 @@ public MoveToStepRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// -/// Manually moves an index into the specified step and executes that step. +/// Move to a lifecycle step. +/// Manually move an index into a specific step in the lifecycle policy and run that step. +/// +/// +/// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. +/// +/// +/// You must specify both the current step and the step to be executed in the body of the request. +/// The request will fail if the current step does not match the step currently running for the index +/// This is to prevent the index from being moved from an unexpected step into the next step. +/// +/// +/// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. +/// If only the phase is specified, the index will move to the first step of the first action in the target phase. +/// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. +/// Only actions specified in the ILM policy are considered valid. +/// An index cannot move to a step that is not part of its policy. /// /// public sealed partial class MoveToStepRequestDescriptor : RequestDescriptor, MoveToStepRequestParameters> @@ -186,7 +218,23 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Manually moves an index into the specified step and executes that step. +/// Move to a lifecycle step. +/// Manually move an index into a specific step in the lifecycle policy and run that step. +/// +/// +/// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. +/// +/// +/// You must specify both the current step and the step to be executed in the body of the request. +/// The request will fail if the current step does not match the step currently running for the index +/// This is to prevent the index from being moved from an unexpected step into the next step. +/// +/// +/// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. +/// If only the phase is specified, the index will move to the first step of the first action in the target phase. +/// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. +/// Only actions specified in the ILM policy are considered valid. +/// An index cannot move to a step that is not part of its policy. /// /// public sealed partial class MoveToStepRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs index 8fa6cf4d75e..3b17d1e0c82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/PutLifecycleRequest.g.cs @@ -49,7 +49,11 @@ public sealed partial class PutLifecycleRequestParameters : RequestParameters /// /// -/// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. +/// Create or update a lifecycle policy. +/// If the specified policy exists, it is replaced and the policy version is incremented. +/// +/// +/// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// public sealed partial class PutLifecycleRequest : PlainRequest @@ -87,7 +91,11 @@ public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => /// /// -/// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. +/// Create or update a lifecycle policy. +/// If the specified policy exists, it is replaced and the policy version is incremented. +/// +/// +/// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// public sealed partial class PutLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs index 4c6f67d3930..9c0c9c4438b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RemovePolicyRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class RemovePolicyRequestParameters : RequestParameters /// /// -/// Removes the assigned lifecycle policy and stops managing the specified index +/// Remove policies from an index. +/// Remove the assigned lifecycle policies from an index or a data stream's backing indices. +/// It also stops managing the indices. /// /// public sealed partial class RemovePolicyRequest : PlainRequest @@ -56,7 +58,9 @@ public RemovePolicyRequest(Elastic.Clients.Elasticsearch.IndexName index) : base /// /// -/// Removes the assigned lifecycle policy and stops managing the specified index +/// Remove policies from an index. +/// Remove the assigned lifecycle policies from an index or a data stream's backing indices. +/// It also stops managing the indices. /// /// public sealed partial class RemovePolicyRequestDescriptor : RequestDescriptor, RemovePolicyRequestParameters> @@ -92,7 +96,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Removes the assigned lifecycle policy and stops managing the specified index +/// Remove policies from an index. +/// Remove the assigned lifecycle policies from an index or a data stream's backing indices. +/// It also stops managing the indices. /// /// public sealed partial class RemovePolicyRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs index 479a61db7d4..7ffff1bb01e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/RetryRequest.g.cs @@ -36,7 +36,10 @@ public sealed partial class RetryRequestParameters : RequestParameters /// /// -/// Retries executing the policy for an index that is in the ERROR step. +/// Retry a policy. +/// Retry running the lifecycle policy for an index that is in the ERROR step. +/// The API sets the policy back to the step where the error occurred and runs the step. +/// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// public sealed partial class RetryRequest : PlainRequest @@ -56,7 +59,10 @@ public RetryRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// -/// Retries executing the policy for an index that is in the ERROR step. +/// Retry a policy. +/// Retry running the lifecycle policy for an index that is in the ERROR step. +/// The API sets the policy back to the step where the error occurred and runs the step. +/// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// public sealed partial class RetryRequestDescriptor : RequestDescriptor, RetryRequestParameters> @@ -92,7 +98,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retries executing the policy for an index that is in the ERROR step. +/// Retry a policy. +/// Retry running the lifecycle policy for an index that is in the ERROR step. +/// The API sets the policy back to the step where the error occurred and runs the step. +/// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// public sealed partial class RetryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs index 01bd491b281..9458140d79e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs @@ -38,7 +38,10 @@ public sealed partial class StartIlmRequestParameters : RequestParameters /// /// -/// Start the index lifecycle management (ILM) plugin. +/// Start the ILM plugin. +/// Start the index lifecycle management plugin if it is currently stopped. +/// ILM is started automatically when the cluster is formed. +/// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// public sealed partial class StartIlmRequest : PlainRequest @@ -59,7 +62,10 @@ public sealed partial class StartIlmRequest : PlainRequest /// -/// Start the index lifecycle management (ILM) plugin. +/// Start the ILM plugin. +/// Start the index lifecycle management plugin if it is currently stopped. +/// ILM is started automatically when the cluster is formed. +/// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// public sealed partial class StartIlmRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs index 212c9d3b480..900918996e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs @@ -38,7 +38,13 @@ public sealed partial class StopIlmRequestParameters : RequestParameters /// /// -/// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin +/// Stop the ILM plugin. +/// Halt all lifecycle management operations and stop the index lifecycle management plugin. +/// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. +/// +/// +/// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. +/// Use the get ILM status API to check whether ILM is running. /// /// public sealed partial class StopIlmRequest : PlainRequest @@ -59,7 +65,13 @@ public sealed partial class StopIlmRequest : PlainRequest /// -/// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin +/// Stop the ILM plugin. +/// Halt all lifecycle management operations and stop the index lifecycle management plugin. +/// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. +/// +/// +/// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. +/// Use the get ILM status API to check whether ILM is running. /// /// public sealed partial class StopIlmRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index 86e5c341aa0..86ff0cc74bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -89,8 +89,9 @@ public sealed partial class ClearCacheRequestParameters : RequestParameters /// /// -/// Clears the caches of one or more indices. -/// For data streams, the API clears the caches of the stream’s backing indices. +/// Clear the cache. +/// Clear the cache of one or more indices. +/// For data streams, the API clears the caches of the stream's backing indices. /// /// public sealed partial class ClearCacheRequest : PlainRequest @@ -175,8 +176,9 @@ public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( /// /// -/// Clears the caches of one or more indices. -/// For data streams, the API clears the caches of the stream’s backing indices. +/// Clear the cache. +/// Clear the cache of one or more indices. +/// For data streams, the API clears the caches of the stream's backing indices. /// /// public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor, ClearCacheRequestParameters> @@ -220,8 +222,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Clears the caches of one or more indices. -/// For data streams, the API clears the caches of the stream’s backing indices. +/// Clear the cache. +/// Clear the cache of one or more indices. +/// For data streams, the API clears the caches of the stream's backing indices. /// /// public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs index cf76a309e5d..e6c9e2e8529 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs @@ -59,8 +59,60 @@ public sealed partial class CloneIndexRequestParameters : RequestParameters /// /// -/// Clones an existing index. +/// Clone an index. +/// Clone an existing index into a new index. +/// Each original primary shard is cloned into a new primary shard in the new index. /// +/// +/// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. +/// The API also does not copy index metadata from the original index. +/// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. +/// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. +/// +/// +/// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. +/// To set the number of replicas in the resulting index, configure these settings in the clone request. +/// +/// +/// Cloning works as follows: +/// +/// +/// +/// +/// First, it creates a new target index with the same definition as the source index. +/// +/// +/// +/// +/// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. +/// +/// +/// +/// +/// Finally, it recovers the target index as though it were a closed index which had just been re-opened. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be cloned if they meet the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have the same number of primary shards as the target index. +/// +/// +/// +/// +/// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. +/// +/// +/// /// public sealed partial class CloneIndexRequest : PlainRequest { @@ -122,8 +174,60 @@ public CloneIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. /// /// -/// Clones an existing index. +/// Clone an index. +/// Clone an existing index into a new index. +/// Each original primary shard is cloned into a new primary shard in the new index. +/// +/// +/// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. +/// The API also does not copy index metadata from the original index. +/// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. +/// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. +/// +/// +/// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. +/// To set the number of replicas in the resulting index, configure these settings in the clone request. +/// +/// +/// Cloning works as follows: +/// +/// +/// +/// +/// First, it creates a new target index with the same definition as the source index. +/// +/// +/// +/// +/// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. /// +/// +/// +/// +/// Finally, it recovers the target index as though it were a closed index which had just been re-opened. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be cloned if they meet the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have the same number of primary shards as the target index. +/// +/// +/// +/// +/// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. +/// +/// +/// /// public sealed partial class CloneIndexRequestDescriptor : RequestDescriptor, CloneIndexRequestParameters> { @@ -207,8 +311,60 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Clones an existing index. +/// Clone an index. +/// Clone an existing index into a new index. +/// Each original primary shard is cloned into a new primary shard in the new index. +/// +/// +/// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. +/// The API also does not copy index metadata from the original index. +/// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. +/// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. +/// +/// +/// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. +/// To set the number of replicas in the resulting index, configure these settings in the clone request. +/// +/// +/// Cloning works as follows: +/// +/// +/// +/// +/// First, it creates a new target index with the same definition as the source index. +/// +/// +/// +/// +/// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. +/// +/// +/// +/// +/// Finally, it recovers the target index as though it were a closed index which had just been re-opened. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be cloned if they meet the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have the same number of primary shards as the target index. +/// +/// +/// +/// +/// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. /// +/// +/// /// public sealed partial class CloneIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index ad1323dcb15..e531c9a51b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -84,7 +84,28 @@ public sealed partial class CloseIndexRequestParameters : RequestParameters /// /// -/// Closes an index. +/// Close an index. +/// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. +/// It is not possible to index documents or to search for documents in a closed index. +/// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. +/// +/// +/// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. +/// The shards will then go through the normal recovery process. +/// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. +/// +/// +/// You can open and close multiple indices. +/// An error is thrown if the request explicitly refers to a missing index. +/// This behaviour can be turned off using the ignore_unavailable=true parameter. +/// +/// +/// By default, you must explicitly name the indices you are opening or closing. +/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. +/// +/// +/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. +/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// /// public sealed partial class CloseIndexRequest : PlainRequest @@ -159,7 +180,28 @@ public CloseIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// -/// Closes an index. +/// Close an index. +/// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. +/// It is not possible to index documents or to search for documents in a closed index. +/// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. +/// +/// +/// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. +/// The shards will then go through the normal recovery process. +/// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. +/// +/// +/// You can open and close multiple indices. +/// An error is thrown if the request explicitly refers to a missing index. +/// This behaviour can be turned off using the ignore_unavailable=true parameter. +/// +/// +/// By default, you must explicitly name the indices you are opening or closing. +/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. +/// +/// +/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. +/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// /// public sealed partial class CloseIndexRequestDescriptor : RequestDescriptor, CloseIndexRequestParameters> @@ -202,7 +244,28 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Closes an index. +/// Close an index. +/// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. +/// It is not possible to index documents or to search for documents in a closed index. +/// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. +/// +/// +/// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. +/// The shards will then go through the normal recovery process. +/// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. +/// +/// +/// You can open and close multiple indices. +/// An error is thrown if the request explicitly refers to a missing index. +/// This behaviour can be turned off using the ignore_unavailable=true parameter. +/// +/// +/// By default, you must explicitly name the indices you are opening or closing. +/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. +/// +/// +/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. +/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// /// public sealed partial class CloseIndexRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index 868a32e7540..f72d916026c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -76,7 +76,10 @@ public sealed partial class DiskUsageRequestParameters : RequestParameters /// /// -/// Analyzes the disk usage of each field of an index or data stream. +/// Analyze the index disk usage. +/// Analyze the disk usage of each field of an index or data stream. +/// This API might not support indices created in previous Elasticsearch versions. +/// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// /// public sealed partial class DiskUsageRequest : PlainRequest @@ -142,7 +145,10 @@ public DiskUsageRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// -/// Analyzes the disk usage of each field of an index or data stream. +/// Analyze the index disk usage. +/// Analyze the disk usage of each field of an index or data stream. +/// This API might not support indices created in previous Elasticsearch versions. +/// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// /// public sealed partial class DiskUsageRequestDescriptor : RequestDescriptor, DiskUsageRequestParameters> @@ -184,7 +190,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Analyzes the disk usage of each field of an index or data stream. +/// Analyze the index disk usage. +/// Analyze the disk usage of each field of an index or data stream. +/// This API might not support indices created in previous Elasticsearch versions. +/// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// /// public sealed partial class DiskUsageRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs index 8bb12324403..0685bdc4ac9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DownsampleRequest.g.cs @@ -36,7 +36,15 @@ public sealed partial class DownsampleRequestParameters : RequestParameters /// /// -/// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. +/// Downsample an index. +/// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. +/// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. +/// All documents within an hour interval are summarized and stored as a single document in the downsample index. +/// +/// +/// NOTE: Only indices in a time series data stream are supported. +/// Neither field nor document level security can be defined on the source index. +/// The source index must be read only (index.blocks.write: true). /// /// public sealed partial class DownsampleRequest : PlainRequest, ISelfSerializable @@ -64,7 +72,15 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. +/// Downsample an index. +/// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. +/// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. +/// All documents within an hour interval are summarized and stored as a single document in the downsample index. +/// +/// +/// NOTE: Only indices in a time series data stream are supported. +/// Neither field nor document level security can be defined on the source index. +/// The source index must be read only (index.blocks.write: true). /// /// public sealed partial class DownsampleRequestDescriptor : RequestDescriptor, DownsampleRequestParameters> @@ -128,7 +144,15 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. +/// Downsample an index. +/// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. +/// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. +/// All documents within an hour interval are summarized and stored as a single document in the downsample index. +/// +/// +/// NOTE: Only indices in a time series data stream are supported. +/// Neither field nor document level security can be defined on the source index. +/// The source index must be read only (index.blocks.write: true). /// /// public sealed partial class DownsampleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 497533fe195..ee84ea82590 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -56,6 +56,14 @@ public sealed partial class ExistsAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -109,6 +117,15 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elasti /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -140,6 +157,7 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ExistsAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -187,6 +205,7 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ExistsAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs index b31c22348c0..0fafea15669 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs @@ -42,7 +42,8 @@ public sealed partial class ExistsIndexTemplateRequestParameters : RequestParame /// /// -/// Returns information about whether a particular index template exists. +/// Check index templates. +/// Check whether index templates exist. /// /// public sealed partial class ExistsIndexTemplateRequest : PlainRequest @@ -70,7 +71,8 @@ public ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : bas /// /// -/// Returns information about whether a particular index template exists. +/// Check index templates. +/// Check whether index templates exist. /// /// public sealed partial class ExistsIndexTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 003d68a2ff8..5eab5eca85d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -50,7 +50,7 @@ public sealed partial class ExplainDataLifecycleRequestParameters : RequestParam /// /// /// 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. +/// Get 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 @@ -87,7 +87,7 @@ public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Indices indices /// /// /// 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. +/// Get 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> @@ -127,7 +127,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// 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. +/// Get 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/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index aa7d0b31120..32d5670584b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -91,7 +91,10 @@ public sealed partial class FieldUsageStatsRequestParameters : RequestParameters /// /// -/// Returns field usage information for each shard and field of an index. +/// Get field usage stats. +/// Get field usage information for each shard and field of an index. +/// Field usage statistics are automatically captured when queries are running on a cluster. +/// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// public sealed partial class FieldUsageStatsRequest : PlainRequest @@ -174,7 +177,10 @@ public FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// -/// Returns field usage information for each shard and field of an index. +/// Get field usage stats. +/// Get field usage information for each shard and field of an index. +/// Field usage statistics are automatically captured when queries are running on a cluster. +/// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// public sealed partial class FieldUsageStatsRequestDescriptor : RequestDescriptor, FieldUsageStatsRequestParameters> @@ -218,7 +224,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns field usage information for each shard and field of an index. +/// Get field usage stats. +/// Get field usage information for each shard and field of an index. +/// Field usage statistics are automatically captured when queries are running on a cluster. +/// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// public sealed partial class FieldUsageStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs index 5282d97d911..c11cb3fc5ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -75,7 +75,19 @@ public sealed partial class FlushRequestParameters : RequestParameters /// /// -/// Flushes one or more data streams or indices. +/// Flush data streams or indices. +/// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. +/// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. +/// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. +/// +/// +/// After each operation has been flushed it is permanently stored in the Lucene index. +/// This may mean that there is no need to maintain an additional copy of it in the transaction log. +/// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. +/// +/// +/// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. +/// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// /// public sealed partial class FlushRequest : PlainRequest @@ -144,7 +156,19 @@ public FlushRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// -/// Flushes one or more data streams or indices. +/// Flush data streams or indices. +/// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. +/// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. +/// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. +/// +/// +/// After each operation has been flushed it is permanently stored in the Lucene index. +/// This may mean that there is no need to maintain an additional copy of it in the transaction log. +/// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. +/// +/// +/// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. +/// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// /// public sealed partial class FlushRequestDescriptor : RequestDescriptor, FlushRequestParameters> @@ -186,7 +210,19 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Flushes one or more data streams or indices. +/// Flush data streams or indices. +/// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. +/// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. +/// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. +/// +/// +/// After each operation has been flushed it is permanently stored in the Lucene index. +/// This may mean that there is no need to maintain an additional copy of it in the transaction log. +/// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. +/// +/// +/// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. +/// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// /// public sealed partial class FlushRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 160e35dd659..9059a333f91 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -84,7 +84,21 @@ public sealed partial class ForcemergeRequestParameters : RequestParameters /// /// -/// Performs the force merge operation on one or more indices. +/// Force a merge. +/// Perform the force merge operation on the shards of one or more indices. +/// For data streams, the API forces a merge on the shards of the stream's backing indices. +/// +/// +/// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. +/// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. +/// +/// +/// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). +/// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". +/// These soft-deleted documents are automatically cleaned up during regular segment merges. +/// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. +/// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. +/// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// public sealed partial class ForcemergeRequest : PlainRequest @@ -164,7 +178,21 @@ public ForcemergeRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( /// /// -/// Performs the force merge operation on one or more indices. +/// Force a merge. +/// Perform the force merge operation on the shards of one or more indices. +/// For data streams, the API forces a merge on the shards of the stream's backing indices. +/// +/// +/// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. +/// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. +/// +/// +/// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). +/// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". +/// These soft-deleted documents are automatically cleaned up during regular segment merges. +/// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. +/// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. +/// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor, ForcemergeRequestParameters> @@ -208,7 +236,21 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Performs the force merge operation on one or more indices. +/// Force a merge. +/// Perform the force merge operation on the shards of one or more indices. +/// For data streams, the API forces a merge on the shards of the stream's backing indices. +/// +/// +/// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. +/// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. +/// +/// +/// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). +/// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". +/// These soft-deleted documents are automatically cleaned up during regular segment merges. +/// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. +/// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. +/// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index dde2e261da7..0b66e257a11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -56,6 +56,14 @@ public sealed partial class GetAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -117,6 +125,15 @@ public GetAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -148,6 +165,7 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public GetAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -195,6 +213,7 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public GetAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index 769cde5a63f..ec9c41d2b62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -100,8 +100,20 @@ public sealed partial class IndicesStatsRequestParameters : RequestParameters /// /// -/// Returns statistics for one or more indices. -/// For data streams, the API retrieves statistics for the stream’s backing indices. +/// Get index statistics. +/// For data streams, the API retrieves statistics for the stream's backing indices. +/// +/// +/// By default, the returned statistics are index-level with primaries and total aggregations. +/// primaries are the values for only the primary shards. +/// total are the accumulated values for both primary and replica shards. +/// +/// +/// To get shard-level statistics, set the level parameter to shards. +/// +/// +/// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. +/// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// public sealed partial class IndicesStatsRequest : PlainRequest @@ -207,8 +219,20 @@ public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elast /// /// -/// Returns statistics for one or more indices. -/// For data streams, the API retrieves statistics for the stream’s backing indices. +/// Get index statistics. +/// For data streams, the API retrieves statistics for the stream's backing indices. +/// +/// +/// By default, the returned statistics are index-level with primaries and total aggregations. +/// primaries are the values for only the primary shards. +/// total are the accumulated values for both primary and replica shards. +/// +/// +/// To get shard-level statistics, set the level parameter to shards. +/// +/// +/// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. +/// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// public sealed partial class IndicesStatsRequestDescriptor : RequestDescriptor, IndicesStatsRequestParameters> @@ -260,8 +284,20 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns statistics for one or more indices. -/// For data streams, the API retrieves statistics for the stream’s backing indices. +/// Get index statistics. +/// For data streams, the API retrieves statistics for the stream's backing indices. +/// +/// +/// By default, the returned statistics are index-level with primaries and total aggregations. +/// primaries are the values for only the primary shards. +/// total are the accumulated values for both primary and replica shards. +/// +/// +/// To get shard-level statistics, set the level parameter to shards. +/// +/// +/// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. +/// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// public sealed partial class IndicesStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs index b5755cc4508..1ba3ecb759f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PromoteDataStreamRequest.g.cs @@ -42,7 +42,19 @@ public sealed partial class PromoteDataStreamRequestParameters : RequestParamete /// /// -/// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream +/// Promote a data stream. +/// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. +/// +/// +/// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. +/// These data streams can't be rolled over in the local cluster. +/// These replicated data streams roll over only if the upstream data stream rolls over. +/// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. +/// +/// +/// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. +/// If this is missing, the data stream will not be able to roll over until a matching index template is created. +/// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// public sealed partial class PromoteDataStreamRequest : PlainRequest @@ -70,7 +82,19 @@ public PromoteDataStreamRequest(Elastic.Clients.Elasticsearch.IndexName name) : /// /// -/// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream +/// Promote a data stream. +/// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. +/// +/// +/// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. +/// These data streams can't be rolled over in the local cluster. +/// These replicated data streams roll over only if the upstream data stream rolls over. +/// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. +/// +/// +/// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. +/// If this is missing, the data stream will not be able to roll over until a matching index template is created. +/// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// public sealed partial class PromoteDataStreamRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index ada658f2136..6c14ce93433 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -54,6 +54,19 @@ public sealed partial class PutTemplateRequestParameters : RequestParameters /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. +/// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. +/// +/// +/// Composable templates always take precedence over legacy templates. +/// If no composable template matches a new index, matching legacy templates are applied according to their order. +/// +/// +/// Index templates are only applied during index creation. +/// Changes to index templates do not affect existing indices. +/// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// public sealed partial class PutTemplateRequest : PlainRequest @@ -151,6 +164,19 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. +/// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. +/// +/// +/// Composable templates always take precedence over legacy templates. +/// If no composable template matches a new index, matching legacy templates are applied according to their order. +/// +/// +/// Index templates are only applied during index creation. +/// Changes to index templates do not affect existing indices. +/// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor, PutTemplateRequestParameters> @@ -366,6 +392,19 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. +/// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. +/// +/// +/// Composable templates always take precedence over legacy templates. +/// If no composable template matches a new index, matching legacy templates are applied according to their order. +/// +/// +/// Index templates are only applied during index creation. +/// Changes to index templates do not affect existing indices. +/// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index 5cf865ecb08..fa16870effe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -49,8 +49,56 @@ public sealed partial class RecoveryRequestParameters : RequestParameters /// /// -/// Returns information about ongoing and completed shard recoveries for one or more indices. -/// For data streams, the API returns information for the stream’s backing indices. +/// Get index recovery information. +/// Get information about ongoing and completed shard recoveries for one or more indices. +/// For data streams, the API returns information for the stream's backing indices. +/// +/// +/// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. +/// When a shard recovery completes, the recovered shard is available for search and indexing. +/// +/// +/// Recovery automatically occurs during the following processes: +/// +/// +/// +/// +/// When creating an index for the first time. +/// +/// +/// +/// +/// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. +/// +/// +/// +/// +/// Creation of new replica shard copies from the primary. +/// +/// +/// +/// +/// Relocation of a shard copy to a different node in the same cluster. +/// +/// +/// +/// +/// A snapshot restore operation. +/// +/// +/// +/// +/// A clone, shrink, or split operation. +/// +/// +/// +/// +/// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. +/// +/// +/// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. +/// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. +/// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// public sealed partial class RecoveryRequest : PlainRequest @@ -90,8 +138,56 @@ public RecoveryRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// -/// Returns information about ongoing and completed shard recoveries for one or more indices. -/// For data streams, the API returns information for the stream’s backing indices. +/// Get index recovery information. +/// Get information about ongoing and completed shard recoveries for one or more indices. +/// For data streams, the API returns information for the stream's backing indices. +/// +/// +/// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. +/// When a shard recovery completes, the recovered shard is available for search and indexing. +/// +/// +/// Recovery automatically occurs during the following processes: +/// +/// +/// +/// +/// When creating an index for the first time. +/// +/// +/// +/// +/// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. +/// +/// +/// +/// +/// Creation of new replica shard copies from the primary. +/// +/// +/// +/// +/// Relocation of a shard copy to a different node in the same cluster. +/// +/// +/// +/// +/// A snapshot restore operation. +/// +/// +/// +/// +/// A clone, shrink, or split operation. +/// +/// +/// +/// +/// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. +/// +/// +/// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. +/// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. +/// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// public sealed partial class RecoveryRequestDescriptor : RequestDescriptor, RecoveryRequestParameters> @@ -130,8 +226,56 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns information about ongoing and completed shard recoveries for one or more indices. -/// For data streams, the API returns information for the stream’s backing indices. +/// Get index recovery information. +/// Get information about ongoing and completed shard recoveries for one or more indices. +/// For data streams, the API returns information for the stream's backing indices. +/// +/// +/// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. +/// When a shard recovery completes, the recovered shard is available for search and indexing. +/// +/// +/// Recovery automatically occurs during the following processes: +/// +/// +/// +/// +/// When creating an index for the first time. +/// +/// +/// +/// +/// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. +/// +/// +/// +/// +/// Creation of new replica shard copies from the primary. +/// +/// +/// +/// +/// Relocation of a shard copy to a different node in the same cluster. +/// +/// +/// +/// +/// A snapshot restore operation. +/// +/// +/// +/// +/// A clone, shrink, or split operation. +/// +/// +/// +/// +/// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. +/// +/// +/// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. +/// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. +/// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// public sealed partial class RecoveryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 7f89b7399f3..736815127c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -56,7 +56,23 @@ public sealed partial class ReloadSearchAnalyzersRequestParameters : RequestPara /// /// -/// Reloads an index's search analyzers and their resources. +/// Reload search analyzers. +/// Reload an index's search analyzers and their resources. +/// For data streams, the API reloads search analyzers and resources for the stream's backing indices. +/// +/// +/// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. +/// +/// +/// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. +/// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. +/// +/// +/// NOTE: This API does not perform a reload for each shard of an index. +/// Instead, it performs a reload for each node containing index shards. +/// As a result, the total shard count returned by the API can differ from the number of index shards. +/// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. +/// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// public sealed partial class ReloadSearchAnalyzersRequest : PlainRequest @@ -100,7 +116,23 @@ public ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Indices indice /// /// -/// Reloads an index's search analyzers and their resources. +/// Reload search analyzers. +/// Reload an index's search analyzers and their resources. +/// For data streams, the API reloads search analyzers and resources for the stream's backing indices. +/// +/// +/// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. +/// +/// +/// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. +/// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. +/// +/// +/// NOTE: This API does not perform a reload for each shard of an index. +/// Instead, it performs a reload for each node containing index shards. +/// As a result, the total shard count returned by the API can differ from the number of index shards. +/// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. +/// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// public sealed partial class ReloadSearchAnalyzersRequestDescriptor : RequestDescriptor, ReloadSearchAnalyzersRequestParameters> @@ -140,7 +172,23 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Reloads an index's search analyzers and their resources. +/// Reload search analyzers. +/// Reload an index's search analyzers and their resources. +/// For data streams, the API reloads search analyzers and resources for the stream's backing indices. +/// +/// +/// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. +/// +/// +/// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. +/// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. +/// +/// +/// NOTE: This API does not perform a reload for each shard of an index. +/// Instead, it performs a reload for each node containing index shards. +/// As a result, the total shard count returned by the API can differ from the number of index shards. +/// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. +/// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// public sealed partial class ReloadSearchAnalyzersRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs index 102ce4a8078..3081c88ff9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs @@ -68,10 +68,47 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters /// /// -/// Resolves the specified index expressions to return information about each cluster, including -/// the local cluster, if included. +/// Resolve the cluster. +/// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// +/// +/// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. +/// +/// +/// You use the same index expression with this endpoint as you would for cross-cluster search. +/// Index and cluster exclusions are also supported with this endpoint. +/// +/// +/// For each cluster in the index expression, information is returned about: +/// +/// +/// +/// +/// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. +/// +/// +/// +/// +/// Whether each remote cluster is configured with skip_unavailable as true or false. +/// +/// +/// +/// +/// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. +/// +/// +/// +/// +/// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). +/// +/// +/// +/// +/// Cluster version information, including the Elasticsearch server version. +/// +/// +/// /// public sealed partial class ResolveClusterRequest : PlainRequest { @@ -127,10 +164,47 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// -/// Resolves the specified index expressions to return information about each cluster, including -/// the local cluster, if included. +/// Resolve the cluster. +/// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// +/// +/// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. +/// +/// +/// You use the same index expression with this endpoint as you would for cross-cluster search. +/// Index and cluster exclusions are also supported with this endpoint. +/// +/// +/// For each cluster in the index expression, information is returned about: +/// +/// +/// +/// +/// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. +/// +/// +/// +/// +/// Whether each remote cluster is configured with skip_unavailable as true or false. +/// +/// +/// +/// +/// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. +/// +/// +/// +/// +/// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). +/// +/// +/// +/// +/// Cluster version information, including the Elasticsearch server version. +/// +/// +/// /// public sealed partial class ResolveClusterRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index cfd7db16957..453bca1e4ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -61,7 +61,8 @@ public sealed partial class ResolveIndexRequestParameters : RequestParameters /// /// -/// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. +/// Resolve indices. +/// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// @@ -111,7 +112,8 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => /// /// -/// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. +/// Resolve indices. +/// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index b96487dc828..935d749c917 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -60,8 +60,9 @@ public sealed partial class SegmentsRequestParameters : RequestParameters /// /// -/// Returns low-level information about the Lucene segments in index shards. -/// For data streams, the API returns information about the stream’s backing indices. +/// Get index segments. +/// Get low-level information about the Lucene segments in index shards. +/// For data streams, the API returns information about the stream's backing indices. /// /// public sealed partial class SegmentsRequest : PlainRequest @@ -113,8 +114,9 @@ public SegmentsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// -/// Returns low-level information about the Lucene segments in index shards. -/// For data streams, the API returns information about the stream’s backing indices. +/// Get index segments. +/// Get low-level information about the Lucene segments in index shards. +/// For data streams, the API returns information about the stream's backing indices. /// /// public sealed partial class SegmentsRequestDescriptor : RequestDescriptor, SegmentsRequestParameters> @@ -154,8 +156,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns low-level information about the Lucene segments in index shards. -/// For data streams, the API returns information about the stream’s backing indices. +/// Get index segments. +/// Get low-level information about the Lucene segments in index shards. +/// For data streams, the API returns information about the stream's backing indices. /// /// public sealed partial class SegmentsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index 48be4cb8727..7214e3d289d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -66,8 +66,37 @@ public sealed partial class ShardStoresRequestParameters : RequestParameters /// /// -/// Retrieves store information about replica shards in one or more indices. -/// For data streams, the API retrieves store information for the stream’s backing indices. +/// Get index shard stores. +/// Get store information about replica shards in one or more indices. +/// For data streams, the API retrieves store information for the stream's backing indices. +/// +/// +/// The index shard stores API returns the following information: +/// +/// +/// +/// +/// The node on which each replica shard exists. +/// +/// +/// +/// +/// The allocation ID for each replica shard. +/// +/// +/// +/// +/// A unique ID for each replica shard. +/// +/// +/// +/// +/// Any errors encountered while opening the shard index or from an earlier failure. +/// +/// +/// +/// +/// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// public sealed partial class ShardStoresRequest : PlainRequest @@ -126,8 +155,37 @@ public ShardStoresRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base /// /// -/// Retrieves store information about replica shards in one or more indices. -/// For data streams, the API retrieves store information for the stream’s backing indices. +/// Get index shard stores. +/// Get store information about replica shards in one or more indices. +/// For data streams, the API retrieves store information for the stream's backing indices. +/// +/// +/// The index shard stores API returns the following information: +/// +/// +/// +/// +/// The node on which each replica shard exists. +/// +/// +/// +/// +/// The allocation ID for each replica shard. +/// +/// +/// +/// +/// A unique ID for each replica shard. +/// +/// +/// +/// +/// Any errors encountered while opening the shard index or from an earlier failure. +/// +/// +/// +/// +/// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// public sealed partial class ShardStoresRequestDescriptor : RequestDescriptor, ShardStoresRequestParameters> @@ -168,8 +226,37 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves store information about replica shards in one or more indices. -/// For data streams, the API retrieves store information for the stream’s backing indices. +/// Get index shard stores. +/// Get store information about replica shards in one or more indices. +/// For data streams, the API retrieves store information for the stream's backing indices. +/// +/// +/// The index shard stores API returns the following information: +/// +/// +/// +/// +/// The node on which each replica shard exists. +/// +/// +/// +/// +/// The allocation ID for each replica shard. +/// +/// +/// +/// +/// A unique ID for each replica shard. +/// +/// +/// +/// +/// Any errors encountered while opening the shard index or from an earlier failure. +/// +/// +/// +/// +/// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// public sealed partial class ShardStoresRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs index 3d2cd74e288..ad7eb567dd7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShrinkIndexRequest.g.cs @@ -59,8 +59,92 @@ public sealed partial class ShrinkIndexRequestParameters : RequestParameters /// /// -/// Shrinks an existing index into a new index with fewer primary shards. +/// Shrink an index. +/// Shrink an index into a new index with fewer primary shards. /// +/// +/// Before you can shrink an index: +/// +/// +/// +/// +/// The index must be read-only. +/// +/// +/// +/// +/// A copy of every shard in the index must reside on the same node. +/// +/// +/// +/// +/// The index must have a green health status. +/// +/// +/// +/// +/// To make shard allocation easier, we recommend you also remove the index's replica shards. +/// You can later re-add replica shards as part of the shrink operation. +/// +/// +/// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. +/// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. +/// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard +/// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. +/// +/// +/// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. +/// +/// +/// A shrink operation: +/// +/// +/// +/// +/// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. +/// +/// +/// +/// +/// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. +/// +/// +/// +/// +/// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have more primary shards than the target index. +/// +/// +/// +/// +/// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. +/// +/// +/// +/// +/// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. +/// +/// +/// +/// +/// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. +/// +/// +/// /// public sealed partial class ShrinkIndexRequest : PlainRequest { @@ -123,8 +207,92 @@ public ShrinkIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic /// /// -/// Shrinks an existing index into a new index with fewer primary shards. +/// Shrink an index. +/// Shrink an index into a new index with fewer primary shards. +/// +/// +/// Before you can shrink an index: +/// +/// +/// +/// +/// The index must be read-only. +/// +/// +/// +/// +/// A copy of every shard in the index must reside on the same node. +/// +/// +/// +/// +/// The index must have a green health status. +/// +/// +/// +/// +/// To make shard allocation easier, we recommend you also remove the index's replica shards. +/// You can later re-add replica shards as part of the shrink operation. +/// +/// +/// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. +/// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. +/// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard +/// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. +/// +/// +/// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. +/// +/// +/// A shrink operation: +/// +/// +/// +/// +/// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. +/// +/// +/// +/// +/// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. +/// +/// +/// +/// +/// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have more primary shards than the target index. +/// +/// +/// +/// +/// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. /// +/// +/// +/// +/// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. +/// +/// +/// +/// +/// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. +/// +/// +/// /// public sealed partial class ShrinkIndexRequestDescriptor : RequestDescriptor, ShrinkIndexRequestParameters> { @@ -205,8 +373,92 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Shrinks an existing index into a new index with fewer primary shards. +/// Shrink an index. +/// Shrink an index into a new index with fewer primary shards. +/// +/// +/// Before you can shrink an index: +/// +/// +/// +/// +/// The index must be read-only. +/// +/// +/// +/// +/// A copy of every shard in the index must reside on the same node. +/// +/// +/// +/// +/// The index must have a green health status. +/// +/// +/// +/// +/// To make shard allocation easier, we recommend you also remove the index's replica shards. +/// You can later re-add replica shards as part of the shrink operation. +/// +/// +/// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. +/// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. +/// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard +/// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. +/// +/// +/// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. +/// +/// +/// A shrink operation: +/// +/// +/// +/// +/// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. +/// +/// +/// +/// +/// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. +/// +/// +/// +/// +/// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have more primary shards than the target index. +/// +/// +/// +/// +/// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. +/// +/// +/// +/// +/// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. +/// +/// +/// +/// +/// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. /// +/// +/// /// public sealed partial class ShrinkIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs index 6b5c04c3f37..de7ea89236b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs @@ -59,8 +59,81 @@ public sealed partial class SplitIndexRequestParameters : RequestParameters /// /// -/// Splits an existing index into a new index with more primary shards. +/// Split an index. +/// Split an index into a new index with more primary shards. /// +/// +/// +/// +/// Before you can split an index: +/// +/// +/// +/// +/// The index must be read-only. +/// +/// +/// +/// +/// The cluster health status must be green. +/// +/// +/// +/// +/// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. +/// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. +/// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. +/// +/// +/// A split operation: +/// +/// +/// +/// +/// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. +/// +/// +/// +/// +/// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. +/// +/// +/// +/// +/// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. +/// +/// +/// +/// +/// Recovers the target index as though it were a closed index which had just been re-opened. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be split if they satisfy the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have fewer primary shards than the target index. +/// +/// +/// +/// +/// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. +/// +/// +/// +/// +/// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. +/// +/// +/// /// public sealed partial class SplitIndexRequest : PlainRequest { @@ -122,8 +195,81 @@ public SplitIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. /// /// -/// Splits an existing index into a new index with more primary shards. +/// Split an index. +/// Split an index into a new index with more primary shards. +/// +/// +/// +/// +/// Before you can split an index: +/// +/// +/// +/// +/// The index must be read-only. +/// +/// +/// +/// +/// The cluster health status must be green. +/// +/// +/// +/// +/// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. +/// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. +/// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. +/// +/// +/// A split operation: +/// +/// +/// +/// +/// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. +/// +/// +/// +/// +/// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. /// +/// +/// +/// +/// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. +/// +/// +/// +/// +/// Recovers the target index as though it were a closed index which had just been re-opened. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be split if they satisfy the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have fewer primary shards than the target index. +/// +/// +/// +/// +/// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. +/// +/// +/// +/// +/// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. +/// +/// +/// /// public sealed partial class SplitIndexRequestDescriptor : RequestDescriptor, SplitIndexRequestParameters> { @@ -203,8 +349,81 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Splits an existing index into a new index with more primary shards. +/// Split an index. +/// Split an index into a new index with more primary shards. +/// +/// +/// +/// +/// Before you can split an index: +/// +/// +/// +/// +/// The index must be read-only. +/// +/// +/// +/// +/// The cluster health status must be green. +/// +/// +/// +/// +/// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. +/// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. +/// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. +/// +/// +/// A split operation: +/// +/// +/// +/// +/// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. +/// +/// +/// +/// +/// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. +/// +/// +/// +/// +/// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. +/// +/// +/// +/// +/// Recovers the target index as though it were a closed index which had just been re-opened. +/// +/// +/// +/// +/// IMPORTANT: Indices can only be split if they satisfy the following requirements: +/// +/// +/// +/// +/// The target index must not exist. +/// +/// +/// +/// +/// The source index must have fewer primary shards than the target index. +/// +/// +/// +/// +/// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. +/// +/// +/// +/// +/// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. /// +/// +/// /// public sealed partial class SplitIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs index c2bd7ed809f..2b49b107239 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -36,7 +36,17 @@ public sealed partial class PutInferenceRequestParameters : RequestParameters /// /// -/// Create an inference endpoint +/// Create an inference endpoint. +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. +/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. +/// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// public sealed partial class PutInferenceRequest : PlainRequest, ISelfSerializable @@ -68,7 +78,17 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Create an inference endpoint +/// Create an inference endpoint. +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. +/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. +/// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// public sealed partial class PutInferenceRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs index 41d1afff03f..26a49ab502d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs @@ -50,7 +50,8 @@ public sealed partial class DeleteGeoipDatabaseRequestParameters : RequestParame /// /// -/// Deletes a geoip database configuration. +/// Delete GeoIP database configurations. +/// Delete one or more IP geolocation database configurations. /// /// public sealed partial class DeleteGeoipDatabaseRequest : PlainRequest @@ -87,7 +88,8 @@ public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r /// /// -/// Deletes a geoip database configuration. +/// Delete GeoIP database configurations. +/// Delete one or more IP geolocation database configurations. /// /// public sealed partial class DeleteGeoipDatabaseRequestDescriptor : RequestDescriptor, DeleteGeoipDatabaseRequestParameters> @@ -122,7 +124,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes a geoip database configuration. +/// Delete GeoIP database configurations. +/// Delete one or more IP geolocation database configurations. /// /// public sealed partial class DeleteGeoipDatabaseRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs new file mode 100644 index 00000000000..c59c95fc2ab --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs @@ -0,0 +1,162 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class DeleteIpLocationDatabaseRequestParameters : RequestParameters +{ + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Delete IP geolocation database configurations. +/// +/// +public sealed partial class DeleteIpLocationDatabaseRequest : PlainRequest +{ + public DeleteIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "ingest.delete_ip_location_database"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Delete IP geolocation database configurations. +/// +/// +public sealed partial class DeleteIpLocationDatabaseRequestDescriptor : RequestDescriptor, DeleteIpLocationDatabaseRequestParameters> +{ + internal DeleteIpLocationDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); + + public DeleteIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Ids id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "ingest.delete_ip_location_database"; + + public DeleteIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeleteIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public DeleteIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Ids id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Delete IP geolocation database configurations. +/// +/// +public sealed partial class DeleteIpLocationDatabaseRequestDescriptor : RequestDescriptor +{ + internal DeleteIpLocationDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); + + public DeleteIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Ids id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "ingest.delete_ip_location_database"; + + public DeleteIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeleteIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public DeleteIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Ids id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs new file mode 100644 index 00000000000..d221599c779 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class DeleteIpLocationDatabaseResponse : ElasticsearchResponse +{ + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs index a4b9affd9a7..bae10014caa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeletePipelineRequest.g.cs @@ -51,7 +51,8 @@ public sealed partial class DeletePipelineRequestParameters : RequestParameters /// /// -/// Deletes one or more existing ingest pipeline. +/// Delete pipelines. +/// Delete one or more ingest pipelines. /// /// public sealed partial class DeletePipelineRequest : PlainRequest @@ -89,7 +90,8 @@ public DeletePipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r. /// /// -/// Deletes one or more existing ingest pipeline. +/// Delete pipelines. +/// Delete one or more ingest pipelines. /// /// public sealed partial class DeletePipelineRequestDescriptor : RequestDescriptor, DeletePipelineRequestParameters> @@ -124,7 +126,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes one or more existing ingest pipeline. +/// Delete pipelines. +/// Delete one or more ingest pipelines. /// /// public sealed partial class DeletePipelineRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs index 501f501e8ed..7ca7d51ee62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GeoIpStatsRequestParameters : RequestParameters /// /// -/// Gets download statistics for GeoIP2 databases used with the geoip processor. +/// Get GeoIP statistics. +/// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// /// public sealed partial class GeoIpStatsRequest : PlainRequest @@ -52,7 +53,8 @@ public sealed partial class GeoIpStatsRequest : PlainRequest /// -/// Gets download statistics for GeoIP2 databases used with the geoip processor. +/// Get GeoIP statistics. +/// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// /// public sealed partial class GeoIpStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs index d3b04df573b..b118dfd90f7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs @@ -43,7 +43,8 @@ public sealed partial class GetGeoipDatabaseRequestParameters : RequestParameter /// /// -/// Returns information about one or more geoip database configurations. +/// Get GeoIP database configurations. +/// Get information about one or more IP geolocation database configurations. /// /// public sealed partial class GetGeoipDatabaseRequest : PlainRequest @@ -76,7 +77,8 @@ public GetGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids? id) : base(r = /// /// -/// Returns information about one or more geoip database configurations. +/// Get GeoIP database configurations. +/// Get information about one or more IP geolocation database configurations. /// /// public sealed partial class GetGeoipDatabaseRequestDescriptor : RequestDescriptor, GetGeoipDatabaseRequestParameters> @@ -114,7 +116,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns information about one or more geoip database configurations. +/// Get GeoIP database configurations. +/// Get information about one or more IP geolocation database configurations. /// /// public sealed partial class GetGeoipDatabaseRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs new file mode 100644 index 00000000000..ebded8be3a5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs @@ -0,0 +1,153 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class GetIpLocationDatabaseRequestParameters : RequestParameters +{ + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get IP geolocation database configurations. +/// +/// +public sealed partial class GetIpLocationDatabaseRequest : PlainRequest +{ + public GetIpLocationDatabaseRequest() + { + } + + public GetIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Ids? id) : base(r => r.Optional("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "ingest.get_ip_location_database"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get IP geolocation database configurations. +/// +/// +public sealed partial class GetIpLocationDatabaseRequestDescriptor : RequestDescriptor, GetIpLocationDatabaseRequestParameters> +{ + internal GetIpLocationDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); + + public GetIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Ids? id) : base(r => r.Optional("id", id)) + { + } + + public GetIpLocationDatabaseRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "ingest.get_ip_location_database"; + + public GetIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + + public GetIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Ids? id) + { + RouteValues.Optional("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Get IP geolocation database configurations. +/// +/// +public sealed partial class GetIpLocationDatabaseRequestDescriptor : RequestDescriptor +{ + internal GetIpLocationDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Ids? id) : base(r => r.Optional("id", id)) + { + } + + public GetIpLocationDatabaseRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "ingest.get_ip_location_database"; + + public GetIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + + public GetIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Ids? id) + { + RouteValues.Optional("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs new file mode 100644 index 00000000000..4e185a14181 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class GetIpLocationDatabaseResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("databases")] + public IReadOnlyCollection Databases { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs index 5eaf34e810c..39ca9bc7147 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs @@ -50,7 +50,8 @@ public sealed partial class GetPipelineRequestParameters : RequestParameters /// /// -/// Returns information about one or more ingest pipelines. +/// Get pipelines. +/// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// @@ -92,7 +93,8 @@ public GetPipelineRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Op /// /// -/// Returns information about one or more ingest pipelines. +/// Get pipelines. +/// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// @@ -132,7 +134,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns information about one or more ingest pipelines. +/// Get pipelines. +/// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs index ed765789494..32a9e9194d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs @@ -36,8 +36,9 @@ public sealed partial class ProcessorGrokRequestParameters : RequestParameters /// /// -/// Extracts structured fields out of a single text field within a document. -/// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. +/// Run a grok processor. +/// Extract structured fields out of a single text field within a document. +/// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// /// @@ -54,8 +55,9 @@ public sealed partial class ProcessorGrokRequest : PlainRequest /// -/// Extracts structured fields out of a single text field within a document. -/// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. +/// Run a grok processor. +/// Extract structured fields out of a single text field within a document. +/// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs index ae65f9eae29..8d0e30805a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs @@ -50,7 +50,8 @@ public sealed partial class PutGeoipDatabaseRequestParameters : RequestParameter /// /// -/// Returns information about one or more geoip database configurations. +/// Create or update a GeoIP database configuration. +/// Refer to the create or update IP geolocation database configuration API. /// /// public sealed partial class PutGeoipDatabaseRequest : PlainRequest @@ -104,7 +105,8 @@ public PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => /// /// -/// Returns information about one or more geoip database configurations. +/// Create or update a GeoIP database configuration. +/// Refer to the create or update IP geolocation database configuration API. /// /// public sealed partial class PutGeoipDatabaseRequestDescriptor : RequestDescriptor, PutGeoipDatabaseRequestParameters> @@ -205,7 +207,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns information about one or more geoip database configurations. +/// Create or update a GeoIP database configuration. +/// Refer to the create or update IP geolocation database configuration API. /// /// public sealed partial class PutGeoipDatabaseRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs new file mode 100644 index 00000000000..49a39028b0f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs @@ -0,0 +1,221 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class PutIpLocationDatabaseRequestParameters : RequestParameters +{ + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + /// If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. + /// A value of -1 indicates that the request should never time out. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Create or update an IP geolocation database configuration. +/// +/// +public sealed partial class PutIpLocationDatabaseRequest : PlainRequest, ISelfSerializable +{ + public PutIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "ingest.put_ip_location_database"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// A value of -1 indicates that the request should never time out. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. + /// If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. + /// A value of -1 indicates that the request should never time out. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration Configuration { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, Configuration, options); + } +} + +/// +/// +/// Create or update an IP geolocation database configuration. +/// +/// +public sealed partial class PutIpLocationDatabaseRequestDescriptor : RequestDescriptor, PutIpLocationDatabaseRequestParameters> +{ + internal PutIpLocationDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); + public PutIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) => ConfigurationValue = configuration; + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "ingest.put_ip_location_database"; + + public PutIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PutIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public PutIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + private Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration ConfigurationValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationDescriptor ConfigurationDescriptor { get; set; } + private Action ConfigurationDescriptorAction { get; set; } + + public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration) + { + ConfigurationDescriptor = null; + ConfigurationDescriptorAction = null; + ConfigurationValue = configuration; + return Self; + } + + public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationDescriptor descriptor) + { + ConfigurationValue = null; + ConfigurationDescriptorAction = null; + ConfigurationDescriptor = descriptor; + return Self; + } + + public PutIpLocationDatabaseRequestDescriptor Configuration(Action configure) + { + ConfigurationValue = null; + ConfigurationDescriptor = null; + ConfigurationDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, ConfigurationValue, options); + } +} + +/// +/// +/// Create or update an IP geolocation database configuration. +/// +/// +public sealed partial class PutIpLocationDatabaseRequestDescriptor : RequestDescriptor +{ + internal PutIpLocationDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); + public PutIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) => ConfigurationValue = configuration; + + internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutIpLocationDatabase; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "ingest.put_ip_location_database"; + + public PutIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PutIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public PutIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + private Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration ConfigurationValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationDescriptor ConfigurationDescriptor { get; set; } + private Action ConfigurationDescriptorAction { get; set; } + + public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration) + { + ConfigurationDescriptor = null; + ConfigurationDescriptorAction = null; + ConfigurationValue = configuration; + return Self; + } + + public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationDescriptor descriptor) + { + ConfigurationValue = null; + ConfigurationDescriptorAction = null; + ConfigurationDescriptor = descriptor; + return Self; + } + + public PutIpLocationDatabaseRequestDescriptor Configuration(Action configure) + { + ConfigurationValue = null; + ConfigurationDescriptor = null; + ConfigurationDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, ConfigurationValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs new file mode 100644 index 00000000000..3d865e894d1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class PutIpLocationDatabaseResponse : ElasticsearchResponse +{ + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs index 22764cade99..2cf636c625b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutPipelineRequest.g.cs @@ -56,7 +56,7 @@ public sealed partial class PutPipelineRequestParameters : RequestParameters /// /// -/// Creates or updates an ingest pipeline. +/// Create or update a pipeline. /// Changes made using this API take effect immediately. /// /// @@ -150,7 +150,7 @@ public PutPipelineRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Req /// /// -/// Creates or updates an ingest pipeline. +/// Create or update a pipeline. /// Changes made using this API take effect immediately. /// /// @@ -415,7 +415,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Creates or updates an ingest pipeline. +/// Create or update a pipeline. /// Changes made using this API take effect immediately. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs index 33233c4c413..945801158d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs @@ -42,7 +42,9 @@ public sealed partial class SimulateRequestParameters : RequestParameters /// /// -/// Executes an ingest pipeline against a set of provided documents. +/// Simulate a pipeline. +/// Run an ingest pipeline against a set of provided documents. +/// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// public sealed partial class SimulateRequest : PlainRequest @@ -92,7 +94,9 @@ public SimulateRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optio /// /// -/// Executes an ingest pipeline against a set of provided documents. +/// Simulate a pipeline. +/// Run an ingest pipeline against a set of provided documents. +/// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// public sealed partial class SimulateRequestDescriptor : RequestDescriptor, SimulateRequestParameters> @@ -259,7 +263,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Executes an ingest pipeline against a set of provided documents. +/// Simulate a pipeline. +/// Run an ingest pipeline against a set of provided documents. +/// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// public sealed partial class SimulateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs index d07145501fa..4f61497c928 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs @@ -36,7 +36,11 @@ public sealed partial class DeleteLicenseRequestParameters : RequestParameters /// /// -/// Deletes licensing information for the cluster +/// Delete the license. +/// When the license expires, your subscription level reverts to Basic. +/// +/// +/// If the operator privileges feature is enabled, only operator users can use this API. /// /// public sealed partial class DeleteLicenseRequest : PlainRequest @@ -52,7 +56,11 @@ public sealed partial class DeleteLicenseRequest : PlainRequest /// -/// Deletes licensing information for the cluster +/// Delete the license. +/// When the license expires, your subscription level reverts to Basic. +/// +/// +/// If the operator privileges feature is enabled, only operator users can use this API. /// /// public sealed partial class DeleteLicenseRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs index 471bcd0d8f8..038af0d7d54 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetBasicStatusRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetBasicStatusRequestParameters : RequestParameters /// /// -/// Retrieves information about the status of the basic license. +/// Get the basic license status. /// /// public sealed partial class GetBasicStatusRequest : PlainRequest @@ -52,7 +52,7 @@ public sealed partial class GetBasicStatusRequest : PlainRequest /// -/// Retrieves information about the status of the basic license. +/// Get the basic license status. /// /// public sealed partial class GetBasicStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs index c77c0ac3ff6..7cf79fc8f49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs @@ -43,8 +43,11 @@ public sealed partial class GetLicenseRequestParameters : RequestParameters /// /// /// 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. +/// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. +/// +/// +/// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. +/// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// public sealed partial class GetLicenseRequest : PlainRequest @@ -69,8 +72,11 @@ public sealed partial class GetLicenseRequest : PlainRequest /// /// 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. +/// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. +/// +/// +/// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. +/// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// public sealed partial class GetLicenseRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs index 9f57933b122..45d709baff7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetTrialStatusRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetTrialStatusRequestParameters : RequestParameters /// /// -/// Retrieves information about the status of the trial license. +/// Get the trial status. /// /// public sealed partial class GetTrialStatusRequest : PlainRequest @@ -52,7 +52,7 @@ public sealed partial class GetTrialStatusRequest : PlainRequest /// -/// Retrieves information about the status of the trial license. +/// Get the trial status. /// /// public sealed partial class GetTrialStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs index e61bdbf3057..44625e7feaa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs @@ -42,7 +42,15 @@ public sealed partial class PostRequestParameters : RequestParameters /// /// -/// Updates the license for the cluster. +/// Update the license. +/// You can update your license at runtime without shutting down your nodes. +/// License updates take effect immediately. +/// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. +/// You must then re-submit the API request with the acknowledge parameter set to true. +/// +/// +/// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. +/// If the operator privileges feature is enabled, only operator users can use this API. /// /// public sealed partial class PostRequest : PlainRequest @@ -76,7 +84,15 @@ public sealed partial class PostRequest : PlainRequest /// /// -/// Updates the license for the cluster. +/// Update the license. +/// You can update your license at runtime without shutting down your nodes. +/// License updates take effect immediately. +/// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. +/// You must then re-submit the API request with the acknowledge parameter set to true. +/// +/// +/// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. +/// If the operator privileges feature is enabled, only operator users can use this API. /// /// public sealed partial class PostRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs index 510341acd4c..f08108f337c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs @@ -42,8 +42,18 @@ public sealed partial class PostStartBasicRequestParameters : RequestParameters /// /// -/// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. -/// To check the status of your basic license, use the following API: Get basic status. +/// Start a basic license. +/// Start an indefinite basic license, which gives access to all the basic features. +/// +/// +/// NOTE: In order to start a basic license, you must not currently have a basic license. +/// +/// +/// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. +/// You must then re-submit the API request with the acknowledge parameter set to true. +/// +/// +/// To check the status of your basic license, use the get basic license API. /// /// public sealed partial class PostStartBasicRequest : PlainRequest @@ -67,8 +77,18 @@ public sealed partial class PostStartBasicRequest : PlainRequest /// -/// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. -/// To check the status of your basic license, use the following API: Get basic status. +/// Start a basic license. +/// Start an indefinite basic license, which gives access to all the basic features. +/// +/// +/// NOTE: In order to start a basic license, you must not currently have a basic license. +/// +/// +/// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. +/// You must then re-submit the API request with the acknowledge parameter set to true. +/// +/// +/// To check the status of your basic license, use the get basic license API. /// /// public sealed partial class PostStartBasicRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs index 27880c8d610..e15c0abbf0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs @@ -43,7 +43,15 @@ public sealed partial class PostStartTrialRequestParameters : RequestParameters /// /// -/// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. +/// Start a trial. +/// Start a 30-day trial, which gives access to all subscription features. +/// +/// +/// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. +/// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. +/// +/// +/// To check the status of your trial, use the get trial status API. /// /// public sealed partial class PostStartTrialRequest : PlainRequest @@ -69,7 +77,15 @@ public sealed partial class PostStartTrialRequest : PlainRequest /// -/// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. +/// Start a trial. +/// Start a 30-day trial, which gives access to all subscription features. +/// +/// +/// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. +/// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. +/// +/// +/// To check the status of your trial, use the get trial status API. /// /// public sealed partial class PostStartTrialRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs index 56f1d889562..a09c2cbfe9b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/MlInfoRequest.g.cs @@ -36,8 +36,8 @@ public sealed partial class MlInfoRequestParameters : RequestParameters /// /// -/// Return ML defaults and limits. -/// Returns defaults and limits used by machine learning. +/// Get machine learning information. +/// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -59,8 +59,8 @@ public sealed partial class MlInfoRequest : PlainRequest /// -/// Return ML defaults and limits. -/// Returns defaults and limits used by machine learning. +/// Get machine learning information. +/// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs index 045933cc5be..f62f35e8c15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs @@ -143,6 +143,8 @@ public PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base( /// [JsonInclude, JsonPropertyName("max_num_threads")] public int? MaxNumThreads { get; set; } + [JsonInclude, JsonPropertyName("_meta")] + public IDictionary? Meta { get; set; } /// /// @@ -209,6 +211,7 @@ public PutDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elas private Action> DestDescriptorAction { get; set; } private IDictionary>>? HeadersValue { get; set; } private int? MaxNumThreadsValue { get; set; } + private IDictionary? MetaValue { get; set; } private string? ModelMemoryLimitValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource SourceValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } @@ -380,6 +383,12 @@ public PutDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxN return Self; } + public PutDataFrameAnalyticsRequestDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + /// /// /// The approximate maximum amount of memory resources that are permitted for @@ -505,6 +514,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxNumThreadsValue.Value); } + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) { writer.WritePropertyName("model_memory_limit"); @@ -579,6 +594,7 @@ public PutDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.I private Action DestDescriptorAction { get; set; } private IDictionary>>? HeadersValue { get; set; } private int? MaxNumThreadsValue { get; set; } + private IDictionary? MetaValue { get; set; } private string? ModelMemoryLimitValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSource SourceValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } @@ -750,6 +766,12 @@ public PutDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) return Self; } + public PutDataFrameAnalyticsRequestDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + /// /// /// The approximate maximum amount of memory resources that are permitted for @@ -875,6 +897,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxNumThreadsValue.Value); } + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) { writer.WritePropertyName("model_memory_limit"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs index 099dad14f57..f09a4e42769 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs @@ -46,6 +46,8 @@ public sealed partial class PutDataFrameAnalyticsResponse : ElasticsearchRespons public string Id { get; init; } [JsonInclude, JsonPropertyName("max_num_threads")] public int MaxNumThreads { get; init; } + [JsonInclude, JsonPropertyName("_meta")] + public IReadOnlyDictionary? Meta { get; init; } [JsonInclude, JsonPropertyName("model_memory_limit")] public string ModelMemoryLimit { get; init; } [JsonInclude, JsonPropertyName("source")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 85695b4b409..f73cd9f69fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -68,7 +68,7 @@ public override PutDatafeedRequest Read(ref Utf8JsonReader reader, Type typeToCo if (reader.TokenType == JsonTokenType.PropertyName) { var property = reader.GetString(); - if (property == "aggregations") + if (property == "aggregations" || property == "aggs") { variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); continue; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs index 8d6db8d33c0..7810b59710c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -32,6 +32,55 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class PutJobRequestParameters : RequestParameters { + /// + /// + /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the + /// _all string or when no indices are specified. + /// + /// + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// + /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines + /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: + /// + /// + /// + /// + /// all: Match any data stream or index, including hidden ones. + /// + /// + /// + /// + /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. + /// + /// + /// + /// + /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both. + /// + /// + /// + /// + /// none: Wildcard patterns are not accepted. + /// + /// + /// + /// + /// open: Match open, non-hidden indices. Also matches any non-hidden data stream. + /// + /// + /// + /// + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// + /// If true, unavailable indices (missing or closed) are ignored. + /// + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } } /// @@ -54,6 +103,59 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Requi internal override string OperationName => "ml.put_job"; + /// + /// + /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the + /// _all string or when no indices are specified. + /// + /// + [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// + /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines + /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: + /// + /// + /// + /// + /// all: Match any data stream or index, including hidden ones. + /// + /// + /// + /// + /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. + /// + /// + /// + /// + /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both. + /// + /// + /// + /// + /// none: Wildcard patterns are not accepted. + /// + /// + /// + /// + /// open: Match open, non-hidden indices. Also matches any non-hidden data stream. + /// + /// + /// + /// + [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// + /// If true, unavailable indices (missing or closed) are ignored. + /// + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + /// /// /// Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. By default, if a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this option is set to true, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available. @@ -134,6 +236,14 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Requi [JsonInclude, JsonPropertyName("groups")] public ICollection? Groups { get; set; } + /// + /// + /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. + /// + /// + [JsonInclude, JsonPropertyName("job_id")] + public Elastic.Clients.Elasticsearch.Id? JobId { get; set; } + /// /// /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. @@ -185,10 +295,6 @@ public sealed partial class PutJobRequestDescriptor : RequestDescript { internal PutJobRequestDescriptor(Action> configure) => configure.Invoke(this); - public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutJob; protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; @@ -197,11 +303,9 @@ public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId) : base(r internal override string OperationName => "ml.put_job"; - public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } + public PutJobRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public PutJobRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutJobRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); private bool? AllowLazyOpenValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig AnalysisConfigValue { get; set; } @@ -221,6 +325,7 @@ public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id private Action> DatafeedConfigDescriptorAction { get; set; } private string? DescriptionValue { get; set; } private ICollection? GroupsValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } private Action> ModelPlotConfigDescriptorAction { get; set; } @@ -411,6 +516,17 @@ public PutJobRequestDescriptor Groups(ICollection? groups) return Self; } + /// + /// + /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. + /// + /// + public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) + { + JobIdValue = jobId; + return Self; + } + /// /// /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. @@ -587,6 +703,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, GroupsValue, options); } + if (JobIdValue is not null) + { + writer.WritePropertyName("job_id"); + JsonSerializer.Serialize(writer, JobIdValue, options); + } + if (ModelPlotConfigDescriptor is not null) { writer.WritePropertyName("model_plot_config"); @@ -641,10 +763,6 @@ public sealed partial class PutJobRequestDescriptor : RequestDescriptor configure) => configure.Invoke(this); - public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutJob; protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; @@ -653,11 +771,9 @@ public PutJobRequestDescriptor(Elastic.Clients.Elasticsearch.Id jobId) : base(r internal override string OperationName => "ml.put_job"; - public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } + public PutJobRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public PutJobRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutJobRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); private bool? AllowLazyOpenValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.AnalysisConfig AnalysisConfigValue { get; set; } @@ -677,6 +793,7 @@ public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id jobId) private Action DatafeedConfigDescriptorAction { get; set; } private string? DescriptionValue { get; set; } private ICollection? GroupsValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? JobIdValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } private Action ModelPlotConfigDescriptorAction { get; set; } @@ -867,6 +984,17 @@ public PutJobRequestDescriptor Groups(ICollection? groups) return Self; } + /// + /// + /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. + /// + /// + public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id? jobId) + { + JobIdValue = jobId; + return Self; + } + /// /// /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. @@ -1043,6 +1171,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, GroupsValue, options); } + if (JobIdValue is not null) + { + writer.WritePropertyName("job_id"); + JsonSerializer.Serialize(writer, JobIdValue, options); + } + if (ModelPlotConfigDescriptor is not null) { writer.WritePropertyName("model_plot_config"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs index 2fdba4e3cb8..cb1d77cd15a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs @@ -128,6 +128,8 @@ public sealed partial class PutTrainedModelResponse : ElasticsearchResponse /// [JsonInclude, JsonPropertyName("model_id")] public string ModelId { get; init; } + [JsonInclude, JsonPropertyName("model_package")] + public Elastic.Clients.Elasticsearch.MachineLearning.ModelPackageConfig? ModelPackage { get; init; } [JsonInclude, JsonPropertyName("model_size_bytes")] public Elastic.Clients.Elasticsearch.ByteSize? ModelSizeBytes { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs index 548a6f67f0e..83f7061f442 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs @@ -129,7 +129,7 @@ public UpdateJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Re /// /// [JsonInclude, JsonPropertyName("detectors")] - public ICollection? Detectors { get; set; } + public ICollection? Detectors { get; set; } /// /// @@ -222,10 +222,10 @@ public UpdateJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch private IDictionary? CustomSettingsValue { get; set; } private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } private string? DescriptionValue { get; set; } - private ICollection? DetectorsValue { get; set; } - private Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor DetectorsDescriptor { get; set; } - private Action> DetectorsDescriptorAction { get; set; } - private Action>[] DetectorsDescriptorActions { get; set; } + private ICollection? DetectorsValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor DetectorsDescriptor { get; set; } + private Action> DetectorsDescriptorAction { get; set; } + private Action>[] DetectorsDescriptorActions { get; set; } private ICollection? GroupsValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } @@ -353,7 +353,7 @@ public UpdateJobRequestDescriptor Description(string? description) /// An array of detector update objects. /// /// - public UpdateJobRequestDescriptor Detectors(ICollection? detectors) + public UpdateJobRequestDescriptor Detectors(ICollection? detectors) { DetectorsDescriptor = null; DetectorsDescriptorAction = null; @@ -362,7 +362,7 @@ public UpdateJobRequestDescriptor Detectors(ICollection Detectors(Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor descriptor) + public UpdateJobRequestDescriptor Detectors(Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor descriptor) { DetectorsValue = null; DetectorsDescriptorAction = null; @@ -371,7 +371,7 @@ public UpdateJobRequestDescriptor Detectors(Elastic.Clients.Elasticse return Self; } - public UpdateJobRequestDescriptor Detectors(Action> configure) + public UpdateJobRequestDescriptor Detectors(Action> configure) { DetectorsValue = null; DetectorsDescriptor = null; @@ -380,7 +380,7 @@ public UpdateJobRequestDescriptor Detectors(Action Detectors(params Action>[] configure) + public UpdateJobRequestDescriptor Detectors(params Action>[] configure) { DetectorsValue = null; DetectorsDescriptor = null; @@ -567,7 +567,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o { writer.WritePropertyName("detectors"); writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor(DetectorsDescriptorAction), options); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor(DetectorsDescriptorAction), options); writer.WriteEndArray(); } else if (DetectorsDescriptorActions is not null) @@ -576,7 +576,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStartArray(); foreach (var action in DetectorsDescriptorActions) { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor(action), options); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor(action), options); } writer.WriteEndArray(); @@ -690,10 +690,10 @@ public UpdateJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Id jobId) private IDictionary? CustomSettingsValue { get; set; } private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } private string? DescriptionValue { get; set; } - private ICollection? DetectorsValue { get; set; } - private Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor DetectorsDescriptor { get; set; } - private Action DetectorsDescriptorAction { get; set; } - private Action[] DetectorsDescriptorActions { get; set; } + private ICollection? DetectorsValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor DetectorsDescriptor { get; set; } + private Action DetectorsDescriptorAction { get; set; } + private Action[] DetectorsDescriptorActions { get; set; } private ICollection? GroupsValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } @@ -821,7 +821,7 @@ public UpdateJobRequestDescriptor Description(string? description) /// An array of detector update objects. /// /// - public UpdateJobRequestDescriptor Detectors(ICollection? detectors) + public UpdateJobRequestDescriptor Detectors(ICollection? detectors) { DetectorsDescriptor = null; DetectorsDescriptorAction = null; @@ -830,7 +830,7 @@ public UpdateJobRequestDescriptor Detectors(ICollection configure) + public UpdateJobRequestDescriptor Detectors(Action configure) { DetectorsValue = null; DetectorsDescriptor = null; @@ -848,7 +848,7 @@ public UpdateJobRequestDescriptor Detectors(Action[] configure) + public UpdateJobRequestDescriptor Detectors(params Action[] configure) { DetectorsValue = null; DetectorsDescriptor = null; @@ -1035,7 +1035,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o { writer.WritePropertyName("detectors"); writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor(DetectorsDescriptorAction), options); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor(DetectorsDescriptorAction), options); writer.WriteEndArray(); } else if (DetectorsDescriptorActions is not null) @@ -1044,7 +1044,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStartArray(); foreach (var action in DetectorsDescriptorActions) { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorDescriptor(action), options); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectorUpdateDescriptor(action), options); } writer.WriteEndArray(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs index 311f71a6840..0d1a079f90b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class ValidateDetectorRequestParameters : RequestParameter /// /// -/// Validates an anomaly detection detector. +/// Validate an anomaly detection job. /// /// public sealed partial class ValidateDetectorRequest : PlainRequest, ISelfSerializable @@ -60,7 +60,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Validates an anomaly detection detector. +/// Validate an anomaly detection job. /// /// public sealed partial class ValidateDetectorRequestDescriptor : RequestDescriptor, ValidateDetectorRequestParameters> @@ -112,7 +112,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Validates an anomaly detection detector. +/// Validate an anomaly detection job. /// /// public sealed partial class ValidateDetectorRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs index 5e3c83cc33a..bd81ff113e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class ClearRepositoriesMeteringArchiveRequestParameters : /// /// -/// You can use this API to clear the archived repositories metering information in the cluster. +/// Clear the archived repositories metering. +/// Clear the archived repositories metering information in the cluster. /// /// public sealed partial class ClearRepositoriesMeteringArchiveRequest : PlainRequest @@ -56,7 +57,8 @@ public ClearRepositoriesMeteringArchiveRequest(Elastic.Clients.Elasticsearch.Nod /// /// -/// You can use this API to clear the archived repositories metering information in the cluster. +/// Clear the archived repositories metering. +/// Clear the archived repositories metering information in the cluster. /// /// public sealed partial class ClearRepositoriesMeteringArchiveRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs index a292580e104..58ce8fee68b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoRequest.g.cs @@ -36,10 +36,10 @@ public sealed partial class GetRepositoriesMeteringInfoRequestParameters : Reque /// /// -/// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. -/// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the -/// information needed to compute aggregations over a period of time. Additionally, the information exposed by this -/// API is volatile, meaning that it won’t be present after node restarts. +/// Get cluster repositories metering. +/// Get repositories metering information for a cluster. +/// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. +/// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// public sealed partial class GetRepositoriesMeteringInfoRequest : PlainRequest @@ -59,10 +59,10 @@ public GetRepositoriesMeteringInfoRequest(Elastic.Clients.Elasticsearch.NodeIds /// /// -/// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. -/// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the -/// information needed to compute aggregations over a period of time. Additionally, the information exposed by this -/// API is volatile, meaning that it won’t be present after node restarts. +/// Get cluster repositories metering. +/// Get repositories metering information for a cluster. +/// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. +/// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// public sealed partial class GetRepositoriesMeteringInfoRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs index a975f255b63..0f6987065fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs @@ -95,8 +95,9 @@ public sealed partial class HotThreadsRequestParameters : RequestParameters /// /// -/// This API yields a breakdown of the hot threads on each selected node in the cluster. -/// The output is plain text with a breakdown of each node’s top hot threads. +/// Get the hot threads for nodes. +/// Get a breakdown of the hot threads on each selected node in the cluster. +/// The output is plain text with a breakdown of the top hot threads for each node. /// /// public sealed partial class HotThreadsRequest : PlainRequest @@ -188,8 +189,9 @@ public HotThreadsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r /// /// -/// This API yields a breakdown of the hot threads on each selected node in the cluster. -/// The output is plain text with a breakdown of each node’s top hot threads. +/// Get the hot threads for nodes. +/// Get a breakdown of the hot threads on each selected node in the cluster. +/// The output is plain text with a breakdown of the top hot threads for each node. /// /// public sealed partial class HotThreadsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs index afc2a557ec0..104b1f5333f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs @@ -56,7 +56,8 @@ public sealed partial class NodesInfoRequestParameters : RequestParameters /// /// -/// Returns cluster nodes information. +/// Get node information. +/// By default, the API returns all attributes and core settings for cluster nodes. /// /// public sealed partial class NodesInfoRequest : PlainRequest @@ -112,7 +113,8 @@ public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.C /// /// -/// Returns cluster nodes information. +/// Get node information. +/// By default, the API returns all attributes and core settings for cluster nodes. /// /// public sealed partial class NodesInfoRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs index e5d075f10ac..47a0483057f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs @@ -105,7 +105,9 @@ public sealed partial class NodesStatsRequestParameters : RequestParameters /// /// -/// Returns cluster nodes statistics. +/// Get node statistics. +/// Get statistics for nodes in a cluster. +/// By default, all stats are returned. You can limit the returned information by using metrics. /// /// public sealed partial class NodesStatsRequest : PlainRequest @@ -225,7 +227,9 @@ public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic. /// /// -/// Returns cluster nodes statistics. +/// Get node statistics. +/// Get statistics for nodes in a cluster. +/// By default, all stats are returned. You can limit the returned information by using metrics. /// /// public sealed partial class NodesStatsRequestDescriptor : RequestDescriptor, NodesStatsRequestParameters> @@ -284,7 +288,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns cluster nodes statistics. +/// Get node statistics. +/// Get statistics for nodes in a cluster. +/// By default, all stats are returned. You can limit the returned information by using metrics. /// /// public sealed partial class NodesStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs index 17b4a1378fb..28adaf7a654 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesUsageRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class NodesUsageRequestParameters : RequestParameters /// /// -/// Returns information on the usage of features. +/// Get feature usage information. /// /// public sealed partial class NodesUsageRequest : PlainRequest @@ -84,7 +84,7 @@ public NodesUsageRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic. /// /// -/// Returns information on the usage of features. +/// Get feature usage information. /// /// public sealed partial class NodesUsageRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs index 35a1ab3f600..5e944e764a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ReloadSecureSettingsRequest.g.cs @@ -43,7 +43,17 @@ public sealed partial class ReloadSecureSettingsRequestParameters : RequestParam /// /// -/// Reloads the keystore on nodes in the cluster. +/// Reload the keystore on nodes in the cluster. +/// +/// +/// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. +/// That is, you can change them on disk and reload them without restarting any nodes in the cluster. +/// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. +/// +/// +/// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. +/// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. +/// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// public sealed partial class ReloadSecureSettingsRequest : PlainRequest @@ -84,7 +94,17 @@ public ReloadSecureSettingsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId /// /// -/// Reloads the keystore on nodes in the cluster. +/// Reload the keystore on nodes in the cluster. +/// +/// +/// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. +/// That is, you can change them on disk and reload them without restarting any nodes in the cluster. +/// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. +/// +/// +/// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. +/// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. +/// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// public sealed partial class ReloadSecureSettingsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 14c783d1451..4741472e4d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -32,6 +32,14 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class OpenPointInTimeRequestParameters : RequestParameters { + /// + /// + /// If false, creating a point in time request when a shard is missing or unavailable will throw an exception. + /// If true, the point in time will contain all the shards that are available at the time of the request. + /// + /// + public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } + /// /// /// Type of index that wildcard patterns can match. @@ -102,6 +110,15 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b internal override string OperationName => "open_point_in_time"; + /// + /// + /// If false, creating a point in time request when a shard is missing or unavailable will throw an exception. + /// If true, the point in time will contain all the shards that are available at the time of the request. + /// + /// + [JsonIgnore] + public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } + /// /// /// Type of index that wildcard patterns can match. @@ -191,6 +208,7 @@ public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "open_point_in_time"; + public OpenPointInTimeRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); public OpenPointInTimeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public OpenPointInTimeRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration keepAlive) => Qs("keep_alive", keepAlive); @@ -292,6 +310,7 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Indices in internal override string OperationName => "open_point_in_time"; + public OpenPointInTimeRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); public OpenPointInTimeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public OpenPointInTimeRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration keepAlive) => Qs("keep_alive", keepAlive); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs index eef881b997d..34182e1e3e2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PingRequest.g.cs @@ -37,7 +37,7 @@ public sealed partial class PingRequestParameters : RequestParameters /// /// /// Ping the cluster. -/// Returns whether the cluster is running. +/// Get information about whether the cluster is running. /// /// public sealed partial class PingRequest : PlainRequest @@ -54,7 +54,7 @@ public sealed partial class PingRequest : PlainRequest /// /// /// Ping the cluster. -/// Returns whether the cluster is running. +/// Get information about whether the cluster is running. /// /// public sealed partial class PingRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs index b7dc2979ea0..5db5e648058 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class DeleteRuleRequestParameters : RequestParameters /// /// -/// Deletes a query rule within a query ruleset. +/// Delete a query rule. +/// Delete a query rule within a query ruleset. /// /// public sealed partial class DeleteRuleRequest : PlainRequest @@ -56,7 +57,8 @@ public DeleteRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Cli /// /// -/// Deletes a query rule within a query ruleset. +/// Delete a query rule. +/// Delete a query rule within a query ruleset. /// /// public sealed partial class DeleteRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs index 77e70e908c5..c9ff402c290 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class DeleteRulesetRequestParameters : RequestParameters /// /// -/// Deletes a query ruleset. +/// Delete a query ruleset. /// /// public sealed partial class DeleteRulesetRequest : PlainRequest @@ -56,7 +56,7 @@ public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r /// /// -/// Deletes a query ruleset. +/// Delete a query ruleset. /// /// public sealed partial class DeleteRulesetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs index 206aaa37ca8..947016c599d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetRuleRequestParameters : RequestParameters /// /// -/// Returns the details about a query rule within a query ruleset +/// Get a query rule. +/// Get details about a query rule within a query ruleset. /// /// public sealed partial class GetRuleRequest : PlainRequest @@ -56,7 +57,8 @@ public GetRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Client /// /// -/// Returns the details about a query rule within a query ruleset +/// Get a query rule. +/// Get details about a query rule within a query ruleset. /// /// public sealed partial class GetRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs index cb4d3848bf6..2241fbfbab8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetRulesetRequestParameters : RequestParameters /// /// -/// Returns the details about a query ruleset +/// Get a query ruleset. +/// Get details about a query ruleset. /// /// public sealed partial class GetRulesetRequest : PlainRequest @@ -56,7 +57,8 @@ public GetRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => /// /// -/// Returns the details about a query ruleset +/// Get a query ruleset. +/// Get details about a query ruleset. /// /// public sealed partial class GetRulesetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs index 17c90868680..1c0b5e1be87 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs @@ -49,7 +49,8 @@ public sealed partial class ListRulesetsRequestParameters : RequestParameters /// /// -/// Returns summarized information about existing query rulesets. +/// Get all query rulesets. +/// Get summarized information about the query rulesets. /// /// public sealed partial class ListRulesetsRequest : PlainRequest @@ -81,7 +82,8 @@ public sealed partial class ListRulesetsRequest : PlainRequest /// -/// Returns summarized information about existing query rulesets. +/// Get all query rulesets. +/// Get summarized information about the query rulesets. /// /// public sealed partial class ListRulesetsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs index 18c0aa7a6bf..b9287c5cda7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class PutRuleRequestParameters : RequestParameters /// /// -/// Creates or updates a query rule within a query ruleset. +/// Create or update a query rule. +/// Create or update a query rule within a query ruleset. /// /// public sealed partial class PutRuleRequest : PlainRequest @@ -66,7 +67,8 @@ public PutRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Client /// /// -/// Creates or updates a query rule within a query ruleset. +/// Create or update a query rule. +/// Create or update a query rule within a query ruleset. /// /// public sealed partial class PutRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs index 22c3f8e0639..3d91b4e2890 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class PutRulesetRequestParameters : RequestParameters /// /// -/// Creates or updates a query ruleset. +/// Create or update a query ruleset. /// /// public sealed partial class PutRulesetRequest : PlainRequest @@ -60,7 +60,7 @@ public PutRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => /// /// -/// Creates or updates a query ruleset. +/// Create or update a query ruleset. /// /// public sealed partial class PutRulesetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs index 1e726728bde..973d126cfdb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class TestRequestParameters : RequestParameters /// /// -/// Creates or updates a query ruleset. +/// Test a query ruleset. +/// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// public sealed partial class TestRequest : PlainRequest @@ -59,7 +60,8 @@ public TestRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => r.Req /// /// -/// Creates or updates a query ruleset. +/// Test a query ruleset. +/// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// public sealed partial class TestRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs index 22c64e0da0c..aa025a5e23b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/DeleteJobRequest.g.cs @@ -36,8 +36,32 @@ public sealed partial class DeleteJobRequestParameters : RequestParameters /// /// -/// Deletes an existing rollup job. +/// Delete a rollup job. /// +/// +/// A job must be stopped before it can be deleted. +/// If you attempt to delete a started job, an error occurs. +/// Similarly, if you attempt to delete a nonexistent job, an exception occurs. +/// +/// +/// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. +/// The API does not delete any previously rolled up data. +/// This is by design; a user may wish to roll up a static data set. +/// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). +/// Thus the job can be deleted, leaving behind the rolled up data for analysis. +/// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. +/// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: +/// +/// +/// POST my_rollup_index/_delete_by_query +/// { +/// "query": { +/// "term": { +/// "_rollup.id": "the_rollup_job_id" +/// } +/// } +/// } +/// /// public sealed partial class DeleteJobRequest : PlainRequest { @@ -56,8 +80,32 @@ public DeleteJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requi /// /// -/// Deletes an existing rollup job. +/// Delete a rollup job. +/// +/// +/// A job must be stopped before it can be deleted. +/// If you attempt to delete a started job, an error occurs. +/// Similarly, if you attempt to delete a nonexistent job, an exception occurs. /// +/// +/// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. +/// The API does not delete any previously rolled up data. +/// This is by design; a user may wish to roll up a static data set. +/// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). +/// Thus the job can be deleted, leaving behind the rolled up data for analysis. +/// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. +/// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: +/// +/// +/// POST my_rollup_index/_delete_by_query +/// { +/// "query": { +/// "term": { +/// "_rollup.id": "the_rollup_job_id" +/// } +/// } +/// } +/// /// public sealed partial class DeleteJobRequestDescriptor : RequestDescriptor, DeleteJobRequestParameters> { @@ -88,8 +136,32 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes an existing rollup job. +/// Delete a rollup job. +/// +/// +/// A job must be stopped before it can be deleted. +/// If you attempt to delete a started job, an error occurs. +/// Similarly, if you attempt to delete a nonexistent job, an exception occurs. +/// +/// +/// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. +/// The API does not delete any previously rolled up data. +/// This is by design; a user may wish to roll up a static data set. +/// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). +/// Thus the job can be deleted, leaving behind the rolled up data for analysis. +/// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. +/// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: /// +/// +/// POST my_rollup_index/_delete_by_query +/// { +/// "query": { +/// "term": { +/// "_rollup.id": "the_rollup_job_id" +/// } +/// } +/// } +/// /// public sealed partial class DeleteJobRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs index 6ef40b0b3b3..fdf23d38c7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetJobsRequest.g.cs @@ -36,7 +36,13 @@ public sealed partial class GetJobsRequestParameters : RequestParameters /// /// -/// Retrieves the configuration, stats, and status of rollup jobs. +/// Get rollup job information. +/// Get the configuration, stats, and status of rollup jobs. +/// +/// +/// NOTE: This API returns only active (both STARTED and STOPPED) jobs. +/// If a job was created, ran for a while, then was deleted, the API does not return any details about it. +/// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// public sealed partial class GetJobsRequest : PlainRequest @@ -60,7 +66,13 @@ public GetJobsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Option /// /// -/// Retrieves the configuration, stats, and status of rollup jobs. +/// Get rollup job information. +/// Get the configuration, stats, and status of rollup jobs. +/// +/// +/// NOTE: This API returns only active (both STARTED and STOPPED) jobs. +/// If a job was created, ran for a while, then was deleted, the API does not return any details about it. +/// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// public sealed partial class GetJobsRequestDescriptor : RequestDescriptor, GetJobsRequestParameters> @@ -96,7 +108,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves the configuration, stats, and status of rollup jobs. +/// Get rollup job information. +/// Get the configuration, stats, and status of rollup jobs. +/// +/// +/// NOTE: This API returns only active (both STARTED and STOPPED) jobs. +/// If a job was created, ran for a while, then was deleted, the API does not return any details about it. +/// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// public sealed partial class GetJobsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs index 84e3ca5d52a..7da32db36d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupCapsRequest.g.cs @@ -36,8 +36,26 @@ public sealed partial class GetRollupCapsRequestParameters : RequestParameters /// /// -/// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. +/// Get the rollup job capabilities. +/// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// +/// +/// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. +/// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. +/// This API enables you to inspect an index and determine: +/// +/// +/// +/// +/// Does this index have associated rollup data somewhere in the cluster? +/// +/// +/// +/// +/// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? +/// +/// +/// /// public sealed partial class GetRollupCapsRequest : PlainRequest { @@ -60,8 +78,26 @@ public GetRollupCapsRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r. /// /// -/// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. +/// Get the rollup job capabilities. +/// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. +/// +/// +/// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. +/// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. +/// This API enables you to inspect an index and determine: +/// +/// +/// +/// +/// Does this index have associated rollup data somewhere in the cluster? +/// +/// +/// +/// +/// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// +/// +/// /// public sealed partial class GetRollupCapsRequestDescriptor : RequestDescriptor, GetRollupCapsRequestParameters> { @@ -96,8 +132,26 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. +/// Get the rollup job capabilities. +/// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. +/// +/// +/// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. +/// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. +/// This API enables you to inspect an index and determine: +/// +/// +/// +/// +/// Does this index have associated rollup data somewhere in the cluster? +/// +/// +/// +/// +/// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// +/// +/// /// public sealed partial class GetRollupCapsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs index 905c78c528a..f9e818a1e27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/GetRollupIndexCapsRequest.g.cs @@ -36,8 +36,22 @@ public sealed partial class GetRollupIndexCapsRequestParameters : RequestParamet /// /// -/// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). +/// Get the rollup index capabilities. +/// Get the rollup capabilities of all jobs inside of a rollup index. +/// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// +/// +/// +/// +/// What jobs are stored in an index (or indices specified via a pattern)? +/// +/// +/// +/// +/// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? +/// +/// +/// /// public sealed partial class GetRollupIndexCapsRequest : PlainRequest { @@ -56,8 +70,22 @@ public GetRollupIndexCapsRequest(Elastic.Clients.Elasticsearch.Ids index) : base /// /// -/// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). +/// Get the rollup index capabilities. +/// Get the rollup capabilities of all jobs inside of a rollup index. +/// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: +/// +/// +/// +/// +/// What jobs are stored in an index (or indices specified via a pattern)? /// +/// +/// +/// +/// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? +/// +/// +/// /// public sealed partial class GetRollupIndexCapsRequestDescriptor : RequestDescriptor, GetRollupIndexCapsRequestParameters> { @@ -88,8 +116,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). +/// Get the rollup index capabilities. +/// Get the rollup capabilities of all jobs inside of a rollup index. +/// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: +/// +/// +/// +/// +/// What jobs are stored in an index (or indices specified via a pattern)? +/// +/// +/// +/// +/// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? /// +/// +/// /// public sealed partial class GetRollupIndexCapsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs index eff76b4c695..32ac6dc9b6b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/PutJobRequest.g.cs @@ -36,7 +36,19 @@ public sealed partial class PutJobRequestParameters : RequestParameters /// /// -/// Creates a rollup job. +/// Create a rollup job. +/// +/// +/// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. +/// +/// +/// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. +/// +/// +/// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. +/// +/// +/// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// public sealed partial class PutJobRequest : PlainRequest @@ -127,7 +139,19 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required /// /// -/// Creates a rollup job. +/// Create a rollup job. +/// +/// +/// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. +/// +/// +/// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. +/// +/// +/// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. +/// +/// +/// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// public sealed partial class PutJobRequestDescriptor : RequestDescriptor, PutJobRequestParameters> @@ -386,7 +410,19 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Creates a rollup job. +/// Create a rollup job. +/// +/// +/// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. +/// +/// +/// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. +/// +/// +/// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. +/// +/// +/// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// public sealed partial class PutJobRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs index d24f3feb80a..983b3bbff95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs @@ -109,7 +109,9 @@ public override void Write(Utf8JsonWriter writer, RollupSearchRequest value, Jso /// /// -/// Enables searching rolled-up data using the standard Query DSL. +/// Search rolled-up data. +/// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. +/// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// [JsonConverter(typeof(RollupSearchRequestConverter))] @@ -174,7 +176,9 @@ public RollupSearchRequest() /// /// -/// Enables searching rolled-up data using the standard Query DSL. +/// Search rolled-up data. +/// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. +/// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// public sealed partial class RollupSearchRequestDescriptor : RequestDescriptor, RollupSearchRequestParameters> @@ -300,7 +304,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Enables searching rolled-up data using the standard Query DSL. +/// Search rolled-up data. +/// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. +/// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// public sealed partial class RollupSearchRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs index cad0b8391f9..d5cfcc92559 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StartJobRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class StartJobRequestParameters : RequestParameters /// /// -/// Starts an existing, stopped rollup job. +/// Start rollup jobs. +/// If you try to start a job that does not exist, an exception occurs. +/// If you try to start a job that is already started, nothing happens. /// /// public sealed partial class StartJobRequest : PlainRequest @@ -56,7 +58,9 @@ public StartJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// /// -/// Starts an existing, stopped rollup job. +/// Start rollup jobs. +/// If you try to start a job that does not exist, an exception occurs. +/// If you try to start a job that is already started, nothing happens. /// /// public sealed partial class StartJobRequestDescriptor : RequestDescriptor, StartJobRequestParameters> @@ -88,7 +92,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Starts an existing, stopped rollup job. +/// Start rollup jobs. +/// If you try to start a job that does not exist, an exception occurs. +/// If you try to start a job that is already started, nothing happens. /// /// public sealed partial class StartJobRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs index 696e513e8bd..f4129512b7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs @@ -51,7 +51,9 @@ public sealed partial class StopJobRequestParameters : RequestParameters /// /// -/// Stops an existing, started rollup job. +/// Stop rollup jobs. +/// If you try to stop a job that does not exist, an exception occurs. +/// If you try to stop a job that is already stopped, nothing happens. /// /// public sealed partial class StopJobRequest : PlainRequest @@ -89,7 +91,9 @@ public StopJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Require /// /// -/// Stops an existing, started rollup job. +/// Stop rollup jobs. +/// If you try to stop a job that does not exist, an exception occurs. +/// If you try to stop a job that is already stopped, nothing happens. /// /// public sealed partial class StopJobRequestDescriptor : RequestDescriptor, StopJobRequestParameters> @@ -124,7 +128,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Stops an existing, started rollup job. +/// Stop rollup jobs. +/// If you try to stop a job that does not exist, an exception occurs. +/// If you try to stop a job that is already stopped, nothing happens. /// /// public sealed partial class StopJobRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs index df6332303d9..e7abfbbbe1c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs @@ -37,7 +37,8 @@ public sealed partial class CacheStatsRequestParameters : RequestParameters /// /// -/// Retrieve node-level cache statistics about searchable snapshots. +/// Get cache statistics. +/// Get statistics about the shared cache for partially mounted indices. /// /// public sealed partial class CacheStatsRequest : PlainRequest @@ -64,7 +65,8 @@ public CacheStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r /// /// -/// Retrieve node-level cache statistics about searchable snapshots. +/// Get cache statistics. +/// Get statistics about the shared cache for partially mounted indices. /// /// public sealed partial class CacheStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs index 6f4a9c43964..92a8547f9d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs @@ -56,7 +56,8 @@ public sealed partial class ClearCacheRequestParameters : RequestParameters /// /// -/// Clear the cache of searchable snapshots. +/// Clear the cache. +/// Clear indices and data streams from the shared cache for partially mounted indices. /// /// public sealed partial class ClearCacheRequest : PlainRequest @@ -104,7 +105,8 @@ public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( /// /// -/// Clear the cache of searchable snapshots. +/// Clear the cache. +/// Clear indices and data streams from the shared cache for partially mounted indices. /// /// public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor, ClearCacheRequestParameters> @@ -144,7 +146,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Clear the cache of searchable snapshots. +/// Clear the cache. +/// Clear indices and data streams from the shared cache for partially mounted indices. /// /// public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs index 05fa84ac6c4..fd393b4da9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs @@ -56,7 +56,10 @@ public sealed partial class MountRequestParameters : RequestParameters /// /// -/// Mount a snapshot as a searchable index. +/// Mount a snapshot. +/// Mount a snapshot as a searchable snapshot index. +/// Do not use this API for snapshots managed by index lifecycle management (ILM). +/// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// public sealed partial class MountRequest : PlainRequest @@ -108,7 +111,10 @@ public MountRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clien /// /// -/// Mount a snapshot as a searchable index. +/// Mount a snapshot. +/// Mount a snapshot as a searchable snapshot index. +/// Do not use this API for snapshots managed by index lifecycle management (ILM). +/// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// public sealed partial class MountRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs index 1894a388247..24db2126902 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/SearchableSnapshotsStatsRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class SearchableSnapshotsStatsRequestParameters : RequestP /// /// -/// Retrieve shard-level statistics about searchable snapshots. +/// Get searchable snapshot statistics. /// /// public sealed partial class SearchableSnapshotsStatsRequest : PlainRequest @@ -74,7 +74,7 @@ public SearchableSnapshotsStatsRequest(Elastic.Clients.Elasticsearch.Indices? in /// /// -/// Retrieve shard-level statistics about searchable snapshots. +/// Get searchable snapshot statistics. /// /// public sealed partial class SearchableSnapshotsStatsRequestDescriptor : RequestDescriptor, SearchableSnapshotsStatsRequestParameters> @@ -112,7 +112,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieve shard-level statistics about searchable snapshots. +/// Get searchable snapshot statistics. /// /// public sealed partial class SearchableSnapshotsStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs index dc51b50bb4d..0ce01ead1df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/AuthenticateResponse.g.cs @@ -29,7 +29,7 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class AuthenticateResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Security.ApiKey? ApiKey { get; init; } + public Elastic.Clients.Elasticsearch.Security.AuthenticateApiKey? ApiKey { get; init; } [JsonInclude, JsonPropertyName("authentication_realm")] public Elastic.Clients.Elasticsearch.Security.RealmInfo AuthenticationRealm { get; init; } [JsonInclude, JsonPropertyName("authentication_type")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs index 4f7d24f7fa3..3f7be7b5baa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs @@ -49,7 +49,8 @@ public sealed partial class CleanupRepositoryRequestParameters : RequestParamete /// /// -/// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. +/// Clean up the snapshot repository. +/// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// public sealed partial class CleanupRepositoryRequest : PlainRequest @@ -85,7 +86,8 @@ public CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Name name) : base( /// /// -/// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. +/// Clean up the snapshot repository. +/// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// public sealed partial class CleanupRepositoryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs index f2d56ebe57b..69c10ac78c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs @@ -43,7 +43,8 @@ public sealed partial class CloneSnapshotRequestParameters : RequestParameters /// /// -/// Clones indices from one snapshot into another snapshot in the same repository. +/// Clone a snapshot. +/// Clone part of all of a snapshot into another snapshot in the same repository. /// /// public sealed partial class CloneSnapshotRequest : PlainRequest @@ -75,7 +76,8 @@ public CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elast /// /// -/// Clones indices from one snapshot into another snapshot in the same repository. +/// Clone a snapshot. +/// Clone part of all of a snapshot into another snapshot in the same repository. /// /// public sealed partial class CloneSnapshotRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs index 48f82d31977..bba5de0492f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs @@ -56,7 +56,10 @@ public sealed partial class CreateRepositoryRequestParameters : RequestParameter /// /// -/// Creates a repository. +/// Create or update a snapshot repository. +/// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. +/// To register a snapshot repository, the cluster's global metadata must be writeable. +/// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// public sealed partial class CreateRepositoryRequest : PlainRequest, ISelfSerializable @@ -107,7 +110,10 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Creates a repository. +/// Create or update a snapshot repository. +/// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. +/// To register a snapshot repository, the cluster's global metadata must be writeable. +/// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// public sealed partial class CreateRepositoryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs index 9c963bf9059..974b6350300 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs @@ -49,7 +49,8 @@ public sealed partial class CreateSnapshotRequestParameters : RequestParameters /// /// -/// Creates a snapshot in a repository. +/// Create a snapshot. +/// Take a snapshot of a cluster or of data streams and indices. /// /// public sealed partial class CreateSnapshotRequest : PlainRequest @@ -133,7 +134,8 @@ public CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elas /// /// -/// Creates a snapshot in a repository. +/// Create a snapshot. +/// Take a snapshot of a cluster or of data streams and indices. /// /// public sealed partial class CreateSnapshotRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs index 41acee94388..bda787380fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs @@ -49,7 +49,9 @@ public sealed partial class DeleteRepositoryRequestParameters : RequestParameter /// /// -/// Deletes a repository. +/// Delete snapshot repositories. +/// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. +/// The snapshots themselves are left untouched and in place. /// /// public sealed partial class DeleteRepositoryRequest : PlainRequest @@ -85,7 +87,9 @@ public DeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Names name) : base( /// /// -/// Deletes a repository. +/// Delete snapshot repositories. +/// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. +/// The snapshots themselves are left untouched and in place. /// /// public sealed partial class DeleteRepositoryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs index 3435c965641..6b478e4cbff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class DeleteSnapshotRequestParameters : RequestParameters /// /// -/// Deletes one or more snapshots. +/// Delete snapshots. /// /// public sealed partial class DeleteSnapshotRequest : PlainRequest @@ -70,7 +70,7 @@ public DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elas /// /// -/// Deletes one or more snapshots. +/// Delete snapshots. /// /// public sealed partial class DeleteSnapshotRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs index 5564259562b..a6279cf9d40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs @@ -49,7 +49,7 @@ public sealed partial class GetRepositoryRequestParameters : RequestParameters /// /// -/// Returns information about a repository. +/// Get snapshot repository information. /// /// public sealed partial class GetRepositoryRequest : PlainRequest @@ -89,7 +89,7 @@ public GetRepositoryRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r /// /// -/// Returns information about a repository. +/// Get snapshot repository information. /// /// public sealed partial class GetRepositoryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs index d7cfbe43e6f..a920c821cac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs @@ -126,7 +126,7 @@ public sealed partial class GetSnapshotRequestParameters : RequestParameters /// /// -/// Returns information about a snapshot. +/// Get snapshot information. /// /// public sealed partial class GetSnapshotRequest : PlainRequest @@ -250,7 +250,7 @@ public GetSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic /// /// -/// Returns information about a snapshot. +/// Get snapshot information. /// /// public sealed partial class GetSnapshotRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs index cd7e8c26dd3..f48895454de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryVerifyIntegrityRequest.g.cs @@ -91,7 +91,62 @@ public sealed partial class RepositoryVerifyIntegrityRequestParameters : Request /// /// -/// Verifies the integrity of the contents of a snapshot repository +/// Verify the repository integrity. +/// Verify the integrity of the contents of a snapshot repository. +/// +/// +/// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. +/// +/// +/// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. +/// Until you do so: +/// +/// +/// +/// +/// It may not be possible to restore some snapshots from this repository. +/// +/// +/// +/// +/// Searchable snapshots may report errors when searched or may have unassigned shards. +/// +/// +/// +/// +/// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. +/// +/// +/// +/// +/// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. +/// +/// +/// +/// +/// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. +/// +/// +/// +/// +/// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. +/// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. +/// You must also identify what caused the damage and take action to prevent it from happening again. +/// +/// +/// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. +/// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. +/// +/// +/// Avoid all operations which write to the repository while the verify repository integrity API is running. +/// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. +/// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. +/// +/// +/// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. +/// +/// +/// NOTE: This API may not work correctly in a mixed-version cluster. /// /// public sealed partial class RepositoryVerifyIntegrityRequest : PlainRequest @@ -175,7 +230,62 @@ public RepositoryVerifyIntegrityRequest(Elastic.Clients.Elasticsearch.Names name /// /// -/// Verifies the integrity of the contents of a snapshot repository +/// Verify the repository integrity. +/// Verify the integrity of the contents of a snapshot repository. +/// +/// +/// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. +/// +/// +/// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. +/// Until you do so: +/// +/// +/// +/// +/// It may not be possible to restore some snapshots from this repository. +/// +/// +/// +/// +/// Searchable snapshots may report errors when searched or may have unassigned shards. +/// +/// +/// +/// +/// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. +/// +/// +/// +/// +/// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. +/// +/// +/// +/// +/// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. +/// +/// +/// +/// +/// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. +/// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. +/// You must also identify what caused the damage and take action to prevent it from happening again. +/// +/// +/// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. +/// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. +/// +/// +/// Avoid all operations which write to the repository while the verify repository integrity API is running. +/// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. +/// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. +/// +/// +/// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. +/// +/// +/// NOTE: This API may not work correctly in a mixed-version cluster. /// /// public sealed partial class RepositoryVerifyIntegrityRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs index 6ad466530e9..73de6d5abec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RestoreRequest.g.cs @@ -49,7 +49,28 @@ public sealed partial class RestoreRequestParameters : RequestParameters /// /// -/// Restores a snapshot. +/// Restore a snapshot. +/// Restore a snapshot of a cluster or data streams and indices. +/// +/// +/// You can restore a snapshot only to a running cluster with an elected master node. +/// The snapshot repository must be registered and available to the cluster. +/// The snapshot and cluster versions must be compatible. +/// +/// +/// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. +/// +/// +/// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: +/// +/// +/// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream +/// +/// +/// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. +/// +/// +/// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// public sealed partial class RestoreRequest : PlainRequest @@ -105,7 +126,28 @@ public RestoreRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Cli /// /// -/// Restores a snapshot. +/// Restore a snapshot. +/// Restore a snapshot of a cluster or data streams and indices. +/// +/// +/// You can restore a snapshot only to a running cluster with an elected master node. +/// The snapshot repository must be registered and available to the cluster. +/// The snapshot and cluster versions must be compatible. +/// +/// +/// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. +/// +/// +/// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: +/// +/// +/// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream +/// +/// +/// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. +/// +/// +/// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// public sealed partial class RestoreRequestDescriptor : RequestDescriptor, RestoreRequestParameters> @@ -309,7 +351,28 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Restores a snapshot. +/// Restore a snapshot. +/// Restore a snapshot of a cluster or data streams and indices. +/// +/// +/// You can restore a snapshot only to a running cluster with an elected master node. +/// The snapshot repository must be registered and available to the cluster. +/// The snapshot and cluster versions must be compatible. +/// +/// +/// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. +/// +/// +/// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: +/// +/// +/// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream +/// +/// +/// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. +/// +/// +/// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// public sealed partial class RestoreRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs index cc1c9442cdf..11e6df51119 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs @@ -49,7 +49,19 @@ public sealed partial class SnapshotStatusRequestParameters : RequestParameters /// /// -/// Returns information about the status of a snapshot. +/// Get the snapshot status. +/// Get a detailed description of the current state for each shard participating in the snapshot. +/// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. +/// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. +/// +/// +/// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. +/// The API requires a read from the repository for each shard in each snapshot. +/// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). +/// +/// +/// Depending on the latency of your storage, such requests can take an extremely long time to return results. +/// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// public sealed partial class SnapshotStatusRequest : PlainRequest @@ -93,7 +105,19 @@ public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Name? repository, Ela /// /// -/// Returns information about the status of a snapshot. +/// Get the snapshot status. +/// Get a detailed description of the current state for each shard participating in the snapshot. +/// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. +/// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. +/// +/// +/// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. +/// The API requires a read from the repository for each shard in each snapshot. +/// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). +/// +/// +/// Depending on the latency of your storage, such requests can take an extremely long time to return results. +/// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// public sealed partial class SnapshotStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs index cadffda742f..e6100f9e2f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs @@ -49,7 +49,8 @@ public sealed partial class VerifyRepositoryRequestParameters : RequestParameter /// /// -/// Verifies a repository. +/// Verify a snapshot repository. +/// Check for common misconfigurations in a snapshot repository. /// /// public sealed partial class VerifyRepositoryRequest : PlainRequest @@ -85,7 +86,8 @@ public VerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Name name) : base(r /// /// -/// Verifies a repository. +/// Verify a snapshot repository. +/// Check for common misconfigurations in a snapshot repository. /// /// public sealed partial class VerifyRepositoryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs index 85f33535e96..e50ac965692 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class DeleteLifecycleRequestParameters : RequestParameters /// /// -/// Deletes an existing snapshot lifecycle policy. +/// Delete a policy. +/// Delete a snapshot lifecycle policy definition. +/// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// public sealed partial class DeleteLifecycleRequest : PlainRequest @@ -56,7 +58,9 @@ public DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : bas /// /// -/// Deletes an existing snapshot lifecycle policy. +/// Delete a policy. +/// Delete a snapshot lifecycle policy definition. +/// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// public sealed partial class DeleteLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs index 65674da8cf3..46c763acd3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class ExecuteLifecycleRequestParameters : RequestParameter /// /// -/// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. +/// Run a policy. +/// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. +/// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// public sealed partial class ExecuteLifecycleRequest : PlainRequest @@ -56,7 +58,9 @@ public ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : ba /// /// -/// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. +/// Run a policy. +/// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. +/// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// public sealed partial class ExecuteLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs index 94c7e365ad6..14f759460ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class ExecuteRetentionRequestParameters : RequestParameter /// /// -/// Deletes any snapshots that are expired according to the policy's retention rules. +/// Run a retention policy. +/// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. +/// The retention policy is normally applied according to its schedule. /// /// public sealed partial class ExecuteRetentionRequest : PlainRequest @@ -52,7 +54,9 @@ public sealed partial class ExecuteRetentionRequest : PlainRequest /// -/// Deletes any snapshots that are expired according to the policy's retention rules. +/// Run a retention policy. +/// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. +/// The retention policy is normally applied according to its schedule. /// /// public sealed partial class ExecuteRetentionRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs index 065d37b1eea..e647bd33bb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetLifecycleRequestParameters : RequestParameters /// /// -/// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. +/// Get policy information. +/// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// public sealed partial class GetLifecycleRequest : PlainRequest @@ -60,7 +61,8 @@ public GetLifecycleRequest(Elastic.Clients.Elasticsearch.Names? policyId) : base /// /// -/// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. +/// Get policy information. +/// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// public sealed partial class GetLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs index 5086212cfc6..3b0fc096ab6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class GetSlmStatusRequestParameters : RequestParameters /// /// -/// Retrieves the status of snapshot lifecycle management (SLM). +/// Get the snapshot lifecycle management status. /// /// public sealed partial class GetSlmStatusRequest : PlainRequest @@ -52,7 +52,7 @@ public sealed partial class GetSlmStatusRequest : PlainRequest /// -/// Retrieves the status of snapshot lifecycle management (SLM). +/// Get the snapshot lifecycle management status. /// /// public sealed partial class GetSlmStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs index 60f73a9cac8..183295795da 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetStatsRequestParameters : RequestParameters /// /// -/// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. +/// Get snapshot lifecycle management statistics. +/// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// public sealed partial class GetStatsRequest : PlainRequest @@ -52,7 +53,8 @@ public sealed partial class GetStatsRequest : PlainRequest /// -/// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. +/// Get snapshot lifecycle management statistics. +/// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// public sealed partial class GetStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs index ea93dcafd88..865a2baf563 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs @@ -49,7 +49,10 @@ public sealed partial class PutLifecycleRequestParameters : RequestParameters /// /// -/// Creates or updates a snapshot lifecycle policy. +/// Create or update a policy. +/// Create or update a snapshot lifecycle policy. +/// If the policy already exists, this request increments the policy version. +/// Only the latest version of a policy is stored. /// /// public sealed partial class PutLifecycleRequest : PlainRequest @@ -125,7 +128,10 @@ public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : base(r /// /// -/// Creates or updates a snapshot lifecycle policy. +/// Create or update a policy. +/// Create or update a snapshot lifecycle policy. +/// If the policy already exists, this request increments the policy version. +/// Only the latest version of a policy is stored. /// /// public sealed partial class PutLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs index 4cde81967c5..f45719cc0a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class StartSlmRequestParameters : RequestParameters /// /// -/// Turns on snapshot lifecycle management (SLM). +/// Start snapshot lifecycle management. +/// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. +/// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// public sealed partial class StartSlmRequest : PlainRequest @@ -52,7 +54,9 @@ public sealed partial class StartSlmRequest : PlainRequest /// -/// Turns on snapshot lifecycle management (SLM). +/// Start snapshot lifecycle management. +/// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. +/// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// public sealed partial class StartSlmRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs index 8fb9b82af9b..4f8e240975d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs @@ -36,7 +36,15 @@ public sealed partial class StopSlmRequestParameters : RequestParameters /// /// -/// Turns off snapshot lifecycle management (SLM). +/// Stop snapshot lifecycle management. +/// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. +/// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. +/// Stopping SLM does not stop any snapshots that are in progress. +/// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. +/// +/// +/// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. +/// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// public sealed partial class StopSlmRequest : PlainRequest @@ -52,7 +60,15 @@ public sealed partial class StopSlmRequest : PlainRequest /// -/// Turns off snapshot lifecycle management (SLM). +/// Stop snapshot lifecycle management. +/// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. +/// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. +/// Stopping SLM does not stop any snapshots that are in progress. +/// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. +/// +/// +/// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. +/// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// public sealed partial class StopSlmRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs index e7642520024..3f9c11570d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class ClearCursorRequestParameters : RequestParameters /// /// -/// Clears the SQL cursor +/// Clear an SQL search cursor. /// /// public sealed partial class ClearCursorRequest : PlainRequest @@ -60,7 +60,7 @@ public sealed partial class ClearCursorRequest : PlainRequest /// -/// Clears the SQL cursor +/// Clear an SQL search cursor. /// /// public sealed partial class ClearCursorRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs index f10354d82f4..d306d8916d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class DeleteAsyncRequestParameters : RequestParameters /// /// -/// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. +/// Delete an async SQL search. +/// Delete an async SQL search or a stored synchronous SQL search. +/// If the search is still running, the API cancels it. /// /// public sealed partial class DeleteAsyncRequest : PlainRequest @@ -56,7 +58,9 @@ public DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Req /// /// -/// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. +/// Delete an async SQL search. +/// Delete an async SQL search or a stored synchronous SQL search. +/// If the search is still running, the API cancels it. /// /// public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor, DeleteAsyncRequestParameters> @@ -88,7 +92,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. +/// Delete an async SQL search. +/// Delete an async SQL search or a stored synchronous SQL search. +/// If the search is still running, the API cancels it. /// /// public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs index 75b724ab11d..a725dcd4bd3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -66,7 +66,8 @@ public sealed partial class GetAsyncRequestParameters : RequestParameters /// /// -/// Returns the current status and available results for an async SQL search or stored synchronous SQL search +/// Get async SQL search results. +/// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// public sealed partial class GetAsyncRequest : PlainRequest @@ -121,7 +122,8 @@ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// /// -/// Returns the current status and available results for an async SQL search or stored synchronous SQL search +/// Get async SQL search results. +/// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor, GetAsyncRequestParameters> @@ -158,7 +160,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns the current status and available results for an async SQL search or stored synchronous SQL search +/// Get async SQL search results. +/// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs index 002f87c77ac..cd754c0e812 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetAsyncStatusRequestParameters : RequestParameters /// /// -/// Returns the current status of an async SQL search or a stored synchronous SQL search +/// Get the async SQL search status. +/// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// public sealed partial class GetAsyncStatusRequest : PlainRequest @@ -56,7 +57,8 @@ public GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r. /// /// -/// Returns the current status of an async SQL search or a stored synchronous SQL search +/// Get the async SQL search status. +/// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// public sealed partial class GetAsyncStatusRequestDescriptor : RequestDescriptor, GetAsyncStatusRequestParameters> @@ -88,7 +90,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Returns the current status of an async SQL search or a stored synchronous SQL search +/// Get the async SQL search status. +/// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// public sealed partial class GetAsyncStatusRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs index 34519a8f721..a45bfdcc1cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -42,7 +42,8 @@ public sealed partial class QueryRequestParameters : RequestParameters /// /// -/// Executes a SQL request +/// Get SQL search results. +/// Run an SQL request. /// /// public sealed partial class QueryRequest : PlainRequest @@ -197,7 +198,8 @@ public sealed partial class QueryRequest : PlainRequest /// /// -/// Executes a SQL request +/// Get SQL search results. +/// Run an SQL request. /// /// public sealed partial class QueryRequestDescriptor : RequestDescriptor, QueryRequestParameters> @@ -549,7 +551,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Executes a SQL request +/// Get SQL search results. +/// Run an SQL request. /// /// public sealed partial class QueryRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs index 7b29b6516d1..33dd98cbf08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class TranslateRequestParameters : RequestParameters /// /// -/// Translates SQL into Elasticsearch queries +/// Translate SQL into Elasticsearch queries. +/// Translate an SQL search into a search API request containing Query DSL. /// /// public sealed partial class TranslateRequest : PlainRequest @@ -84,7 +85,8 @@ public sealed partial class TranslateRequest : PlainRequest /// -/// Translates SQL into Elasticsearch queries +/// Translate SQL into Elasticsearch queries. +/// Translate an SQL search into a search API request containing Query DSL. /// /// public sealed partial class TranslateRequestDescriptor : RequestDescriptor, TranslateRequestParameters> @@ -211,7 +213,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Translates SQL into Elasticsearch queries +/// Translate SQL into Elasticsearch queries. +/// Translate an SQL search into a search API request containing Query DSL. /// /// public sealed partial class TranslateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs index 2ff242aa234..8468d27085d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class DeleteSynonymRequestParameters : RequestParameters /// /// -/// Deletes a synonym set +/// Delete a synonym set. /// /// public sealed partial class DeleteSynonymRequest : PlainRequest @@ -56,7 +56,7 @@ public DeleteSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.R /// /// -/// Deletes a synonym set +/// Delete a synonym set. /// /// public sealed partial class DeleteSynonymRequestDescriptor : RequestDescriptor, DeleteSynonymRequestParameters> @@ -88,7 +88,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Deletes a synonym set +/// Delete a synonym set. /// /// public sealed partial class DeleteSynonymRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs index fceca4690d8..9bc1264b7ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class DeleteSynonymRuleRequestParameters : RequestParamete /// /// -/// Deletes a synonym rule in a synonym set +/// Delete a synonym rule. +/// Delete a synonym rule from a synonym set. /// /// public sealed partial class DeleteSynonymRuleRequest : PlainRequest @@ -56,7 +57,8 @@ public DeleteSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic. /// /// -/// Deletes a synonym rule in a synonym set +/// Delete a synonym rule. +/// Delete a synonym rule from a synonym set. /// /// public sealed partial class DeleteSynonymRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs index 5422954551b..4a03450e469 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs @@ -49,7 +49,7 @@ public sealed partial class GetSynonymRequestParameters : RequestParameters /// /// -/// Retrieves a synonym set +/// Get a synonym set. /// /// public sealed partial class GetSynonymRequest : PlainRequest @@ -85,7 +85,7 @@ public GetSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// /// -/// Retrieves a synonym set +/// Get a synonym set. /// /// public sealed partial class GetSynonymRequestDescriptor : RequestDescriptor, GetSynonymRequestParameters> @@ -120,7 +120,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Retrieves a synonym set +/// Get a synonym set. /// /// public sealed partial class GetSynonymRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs index aae76d746b6..55894c24e13 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class GetSynonymRuleRequestParameters : RequestParameters /// /// -/// Retrieves a synonym rule from a synonym set +/// Get a synonym rule. +/// Get a synonym rule from a synonym set. /// /// public sealed partial class GetSynonymRuleRequest : PlainRequest @@ -56,7 +57,8 @@ public GetSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Cli /// /// -/// Retrieves a synonym rule from a synonym set +/// Get a synonym rule. +/// Get a synonym rule from a synonym set. /// /// public sealed partial class GetSynonymRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs index 806b9170341..ff263268dcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs @@ -49,7 +49,8 @@ public sealed partial class GetSynonymsSetsRequestParameters : RequestParameters /// /// -/// Retrieves a summary of all defined synonym sets +/// Get all synonym sets. +/// Get a summary of all defined synonym sets. /// /// public sealed partial class GetSynonymsSetsRequest : PlainRequest @@ -81,7 +82,8 @@ public sealed partial class GetSynonymsSetsRequest : PlainRequest /// -/// Retrieves a summary of all defined synonym sets +/// Get all synonym sets. +/// Get a summary of all defined synonym sets. /// /// public sealed partial class GetSynonymsSetsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index e451898972e..ebde087aa42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -36,7 +36,9 @@ public sealed partial class PutSynonymRequestParameters : RequestParameters /// /// -/// Creates or updates a synonym set. +/// Create or update a synonym set. +/// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. +/// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// public sealed partial class PutSynonymRequest : PlainRequest @@ -65,7 +67,9 @@ public PutSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// /// -/// Creates or updates a synonym set. +/// Create or update a synonym set. +/// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. +/// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// public sealed partial class PutSynonymRequestDescriptor : RequestDescriptor, PutSynonymRequestParameters> @@ -174,7 +178,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Creates or updates a synonym set. +/// Create or update a synonym set. +/// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. +/// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// public sealed partial class PutSynonymRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs index 6a85a994be1..30b670af3d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs @@ -36,7 +36,8 @@ public sealed partial class PutSynonymRuleRequestParameters : RequestParameters /// /// -/// Creates or updates a synonym rule in a synonym set +/// Create or update a synonym rule. +/// Create or update a synonym rule in a synonym set. /// /// public sealed partial class PutSynonymRuleRequest : PlainRequest @@ -59,7 +60,8 @@ public PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Cli /// /// -/// Creates or updates a synonym rule in a synonym set +/// Create or update a synonym rule. +/// Create or update a synonym rule in a synonym set. /// /// public sealed partial class PutSynonymRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs index afad51cb35b..ecf9f2c38c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs @@ -63,7 +63,15 @@ public sealed partial class CancelRequestParameters : RequestParameters /// /// -/// Cancels a task, if it can be cancelled through an API. +/// Cancel a task. +/// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. +/// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. +/// The get task information API will continue to list these cancelled tasks until they complete. +/// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. +/// +/// +/// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. +/// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// /// public sealed partial class CancelRequest : PlainRequest @@ -119,7 +127,15 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r /// /// -/// Cancels a task, if it can be cancelled through an API. +/// Cancel a task. +/// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. +/// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. +/// The get task information API will continue to list these cancelled tasks until they complete. +/// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. +/// +/// +/// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. +/// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// /// public sealed partial class CancelRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs index 1ef20cc4469..543a2fadcd0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class GetTasksRequestParameters : RequestParameters /// /// /// Get task information. -/// Returns information about the tasks currently executing in the cluster. +/// Get information about a task currently running in the cluster. /// /// public sealed partial class GetTasksRequest : PlainRequest @@ -89,7 +89,7 @@ public GetTasksRequest(Elastic.Clients.Elasticsearch.Id taskId) : base(r => r.Re /// /// /// Get task information. -/// Returns information about the tasks currently executing in the cluster. +/// Get information about a task currently running in the cluster. /// /// public sealed partial class GetTasksRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs index 4f382ea97d3..f20af93fc1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -42,6 +42,7 @@ public sealed partial class ListRequestParameters : RequestParameters /// /// /// If true, the response includes detailed information about shard recoveries. + /// This information is useful to distinguish tasks from each other but is more costly to run. /// /// public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } @@ -91,7 +92,8 @@ public sealed partial class ListRequestParameters : RequestParameters /// /// -/// The task management API returns information about tasks currently executing on one or more nodes in the cluster. +/// Get all tasks. +/// Get information about the tasks currently running on one or more nodes in the cluster. /// /// public sealed partial class ListRequest : PlainRequest @@ -115,6 +117,7 @@ public sealed partial class ListRequest : PlainRequest /// /// /// If true, the response includes detailed information about shard recoveries. + /// This information is useful to distinguish tasks from each other but is more costly to run. /// /// [JsonIgnore] @@ -171,7 +174,8 @@ public sealed partial class ListRequest : PlainRequest /// /// -/// The task management API returns information about tasks currently executing on one or more nodes in the cluster. +/// Get all tasks. +/// Get information about the tasks currently running on one or more nodes in the cluster. /// /// public sealed partial class ListRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs new file mode 100644 index 00000000000..0e810f8dd67 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs @@ -0,0 +1,643 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +public sealed partial class FindFieldStructureRequestParameters : RequestParameters +{ + /// + /// + /// If format is set to delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. + /// + /// + public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + + /// + /// + /// If you have set format to delimited, you can specify the character used to delimit the values in each row. + /// Only a single character is supported; the delimiter cannot have multiple characters. + /// By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (|). + /// In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + /// If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + /// + /// + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// + /// The number of documents to include in the structural analysis. + /// The minimum value is 2. + /// + /// + public int? DocumentsToSample { get => Q("documents_to_sample"); set => Q("documents_to_sample", value); } + + /// + /// + /// The mode of compatibility with ECS compliant Grok patterns. + /// Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + /// This setting primarily has an impact when a whole message Grok pattern such as %{CATALINALOG} matches the input. + /// If the structure finder identifies a common structure but has no idea of the meaning then generic field names such as path, ipaddress, field1, and field2 are used in the grok_pattern output. + /// The intention in that situation is that a user who knows the meanings will rename the fields before using them. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } + + /// + /// + /// If true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + /// + /// + public bool? Explain { get => Q("explain"); set => Q("explain", value); } + + /// + /// + /// The field that should be analyzed. + /// + /// + public Elastic.Clients.Elasticsearch.Field Field { get => Q("field"); set => Q("field", value); } + + /// + /// + /// The high level structure of the text. + /// By default, the API chooses the format. + /// In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + /// If the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.FormatType? Format { get => Q("format"); set => Q("format", value); } + + /// + /// + /// If the format is semi_structured_text, you can specify a Grok pattern that is used to extract fields from every message in the text. + /// The name of the timestamp field in the Grok pattern must match what is specified in the timestamp_field parameter. + /// If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + /// If grok_pattern is not specified, the structure finder creates a Grok pattern. + /// + /// + public string? GrokPattern { get => Q("grok_pattern"); set => Q("grok_pattern", value); } + + /// + /// + /// The name of the index that contains the analyzed field. + /// + /// + public Elastic.Clients.Elasticsearch.IndexName Index { get => Q("index"); set => Q("index", value); } + + /// + /// + /// If the format is delimited, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + /// Only a single character is supported. + /// If this parameter is not specified, the default value is a double quote ("). + /// If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + /// + /// + public string? Quote { get => Q("quote"); set => Q("quote", value); } + + /// + /// + /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. + /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. + /// Otherwise, the default value is false. + /// + /// + public bool? ShouldTrimFields { get => Q("should_trim_fields"); set => Q("should_trim_fields", value); } + + /// + /// + /// The maximum amount of time that the structure analysis can take. + /// If the analysis is still running when the timeout expires, it will be stopped. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// The name of the field that contains the primary timestamp of each record in the text. + /// In particular, if the text was ingested into an index, this is the field that would be used to populate the @timestamp field. + /// + /// + /// If the format is semi_structured_text, this field must match the name of the appropriate extraction in the grok_pattern. + /// Therefore, for semi-structured text, it is best not to specify this parameter unless grok_pattern is also specified. + /// + /// + /// For structured text, if you specify this parameter, the field must exist within the text. + /// + /// + /// If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + /// For structured text, it is not compulsory to have a timestamp in the text. + /// + /// + public Elastic.Clients.Elasticsearch.Field? TimestampField { get => Q("timestamp_field"); set => Q("timestamp_field", value); } + + /// + /// + /// The Java time format of the timestamp field in the text. + /// Only a subset of Java time format letter groups are supported: + /// + /// + /// + /// + /// a + /// + /// + /// + /// + /// d + /// + /// + /// + /// + /// dd + /// + /// + /// + /// + /// EEE + /// + /// + /// + /// + /// EEEE + /// + /// + /// + /// + /// H + /// + /// + /// + /// + /// HH + /// + /// + /// + /// + /// h + /// + /// + /// + /// + /// M + /// + /// + /// + /// + /// MM + /// + /// + /// + /// + /// MMM + /// + /// + /// + /// + /// MMMM + /// + /// + /// + /// + /// mm + /// + /// + /// + /// + /// ss + /// + /// + /// + /// + /// XX + /// + /// + /// + /// + /// XXX + /// + /// + /// + /// + /// yy + /// + /// + /// + /// + /// yyyy + /// + /// + /// + /// + /// zzz + /// + /// + /// + /// + /// Additionally S letter groups (fractional seconds) of length one to nine are supported providing they occur after ss and are separated from the ss by a period (.), comma (,), or colon (:). + /// Spacing and punctuation is also permitted with the exception a question mark (?), newline, and carriage return, together with literal text enclosed in single quotes. + /// For example, MM/dd HH.mm.ss,SSSSSS 'in' yyyy is a valid override format. + /// + /// + /// One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full grok_pattern. + /// Another is when the timestamp format is one that the structure finder does not consider by default. + /// + /// + /// If this parameter is not specified, the structure finder chooses the best format from a built-in set. + /// + /// + /// If the special value null is specified, the structure finder will not look for a primary timestamp in the text. + /// When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. + /// + /// + public string? TimestampFormat { get => Q("timestamp_format"); set => Q("timestamp_format", value); } +} + +/// +/// +/// Find the structure of a text field. +/// Find the structure of a text field in an Elasticsearch index. +/// +/// +public sealed partial class FindFieldStructureRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureFindFieldStructure; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "text_structure.find_field_structure"; + + /// + /// + /// If format is set to delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header row, columns are named "column1", "column2", "column3", for example. + /// + /// + [JsonIgnore] + public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + + /// + /// + /// If you have set format to delimited, you can specify the character used to delimit the values in each row. + /// Only a single character is supported; the delimiter cannot have multiple characters. + /// By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (|). + /// In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + /// If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + /// + /// + [JsonIgnore] + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// + /// The number of documents to include in the structural analysis. + /// The minimum value is 2. + /// + /// + [JsonIgnore] + public int? DocumentsToSample { get => Q("documents_to_sample"); set => Q("documents_to_sample", value); } + + /// + /// + /// The mode of compatibility with ECS compliant Grok patterns. + /// Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + /// This setting primarily has an impact when a whole message Grok pattern such as %{CATALINALOG} matches the input. + /// If the structure finder identifies a common structure but has no idea of the meaning then generic field names such as path, ipaddress, field1, and field2 are used in the grok_pattern output. + /// The intention in that situation is that a user who knows the meanings will rename the fields before using them. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } + + /// + /// + /// If true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + /// + /// + [JsonIgnore] + public bool? Explain { get => Q("explain"); set => Q("explain", value); } + + /// + /// + /// The field that should be analyzed. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Field Field { get => Q("field"); set => Q("field", value); } + + /// + /// + /// The high level structure of the text. + /// By default, the API chooses the format. + /// In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + /// If the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.TextStructure.FormatType? Format { get => Q("format"); set => Q("format", value); } + + /// + /// + /// If the format is semi_structured_text, you can specify a Grok pattern that is used to extract fields from every message in the text. + /// The name of the timestamp field in the Grok pattern must match what is specified in the timestamp_field parameter. + /// If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + /// If grok_pattern is not specified, the structure finder creates a Grok pattern. + /// + /// + [JsonIgnore] + public string? GrokPattern { get => Q("grok_pattern"); set => Q("grok_pattern", value); } + + /// + /// + /// The name of the index that contains the analyzed field. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.IndexName Index { get => Q("index"); set => Q("index", value); } + + /// + /// + /// If the format is delimited, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + /// Only a single character is supported. + /// If this parameter is not specified, the default value is a double quote ("). + /// If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + /// + /// + [JsonIgnore] + public string? Quote { get => Q("quote"); set => Q("quote", value); } + + /// + /// + /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. + /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. + /// Otherwise, the default value is false. + /// + /// + [JsonIgnore] + public bool? ShouldTrimFields { get => Q("should_trim_fields"); set => Q("should_trim_fields", value); } + + /// + /// + /// The maximum amount of time that the structure analysis can take. + /// If the analysis is still running when the timeout expires, it will be stopped. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// The name of the field that contains the primary timestamp of each record in the text. + /// In particular, if the text was ingested into an index, this is the field that would be used to populate the @timestamp field. + /// + /// + /// If the format is semi_structured_text, this field must match the name of the appropriate extraction in the grok_pattern. + /// Therefore, for semi-structured text, it is best not to specify this parameter unless grok_pattern is also specified. + /// + /// + /// For structured text, if you specify this parameter, the field must exist within the text. + /// + /// + /// If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + /// For structured text, it is not compulsory to have a timestamp in the text. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Field? TimestampField { get => Q("timestamp_field"); set => Q("timestamp_field", value); } + + /// + /// + /// The Java time format of the timestamp field in the text. + /// Only a subset of Java time format letter groups are supported: + /// + /// + /// + /// + /// a + /// + /// + /// + /// + /// d + /// + /// + /// + /// + /// dd + /// + /// + /// + /// + /// EEE + /// + /// + /// + /// + /// EEEE + /// + /// + /// + /// + /// H + /// + /// + /// + /// + /// HH + /// + /// + /// + /// + /// h + /// + /// + /// + /// + /// M + /// + /// + /// + /// + /// MM + /// + /// + /// + /// + /// MMM + /// + /// + /// + /// + /// MMMM + /// + /// + /// + /// + /// mm + /// + /// + /// + /// + /// ss + /// + /// + /// + /// + /// XX + /// + /// + /// + /// + /// XXX + /// + /// + /// + /// + /// yy + /// + /// + /// + /// + /// yyyy + /// + /// + /// + /// + /// zzz + /// + /// + /// + /// + /// Additionally S letter groups (fractional seconds) of length one to nine are supported providing they occur after ss and are separated from the ss by a period (.), comma (,), or colon (:). + /// Spacing and punctuation is also permitted with the exception a question mark (?), newline, and carriage return, together with literal text enclosed in single quotes. + /// For example, MM/dd HH.mm.ss,SSSSSS 'in' yyyy is a valid override format. + /// + /// + /// One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full grok_pattern. + /// Another is when the timestamp format is one that the structure finder does not consider by default. + /// + /// + /// If this parameter is not specified, the structure finder chooses the best format from a built-in set. + /// + /// + /// If the special value null is specified, the structure finder will not look for a primary timestamp in the text. + /// When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. + /// + /// + [JsonIgnore] + public string? TimestampFormat { get => Q("timestamp_format"); set => Q("timestamp_format", value); } +} + +/// +/// +/// Find the structure of a text field. +/// Find the structure of a text field in an Elasticsearch index. +/// +/// +public sealed partial class FindFieldStructureRequestDescriptor : RequestDescriptor, FindFieldStructureRequestParameters> +{ + internal FindFieldStructureRequestDescriptor(Action> configure) => configure.Invoke(this); + + public FindFieldStructureRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureFindFieldStructure; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "text_structure.find_field_structure"; + + public FindFieldStructureRequestDescriptor ColumnNames(string? columnNames) => Qs("column_names", columnNames); + public FindFieldStructureRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public FindFieldStructureRequestDescriptor DocumentsToSample(int? documentsToSample) => Qs("documents_to_sample", documentsToSample); + public FindFieldStructureRequestDescriptor EcsCompatibility(Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? ecsCompatibility) => Qs("ecs_compatibility", ecsCompatibility); + public FindFieldStructureRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); + public FindFieldStructureRequestDescriptor Field(Elastic.Clients.Elasticsearch.Field field) => Qs("field", field); + public FindFieldStructureRequestDescriptor Format(Elastic.Clients.Elasticsearch.TextStructure.FormatType? format) => Qs("format", format); + public FindFieldStructureRequestDescriptor GrokPattern(string? grokPattern) => Qs("grok_pattern", grokPattern); + public FindFieldStructureRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) => Qs("index", index); + public FindFieldStructureRequestDescriptor Quote(string? quote) => Qs("quote", quote); + public FindFieldStructureRequestDescriptor ShouldTrimFields(bool? shouldTrimFields = true) => Qs("should_trim_fields", shouldTrimFields); + public FindFieldStructureRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public FindFieldStructureRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Field? timestampField) => Qs("timestamp_field", timestampField); + public FindFieldStructureRequestDescriptor TimestampFormat(string? timestampFormat) => Qs("timestamp_format", timestampFormat); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Find the structure of a text field. +/// Find the structure of a text field in an Elasticsearch index. +/// +/// +public sealed partial class FindFieldStructureRequestDescriptor : RequestDescriptor +{ + internal FindFieldStructureRequestDescriptor(Action configure) => configure.Invoke(this); + + public FindFieldStructureRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureFindFieldStructure; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "text_structure.find_field_structure"; + + public FindFieldStructureRequestDescriptor ColumnNames(string? columnNames) => Qs("column_names", columnNames); + public FindFieldStructureRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public FindFieldStructureRequestDescriptor DocumentsToSample(int? documentsToSample) => Qs("documents_to_sample", documentsToSample); + public FindFieldStructureRequestDescriptor EcsCompatibility(Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? ecsCompatibility) => Qs("ecs_compatibility", ecsCompatibility); + public FindFieldStructureRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); + public FindFieldStructureRequestDescriptor Field(Elastic.Clients.Elasticsearch.Field field) => Qs("field", field); + public FindFieldStructureRequestDescriptor Format(Elastic.Clients.Elasticsearch.TextStructure.FormatType? format) => Qs("format", format); + public FindFieldStructureRequestDescriptor GrokPattern(string? grokPattern) => Qs("grok_pattern", grokPattern); + public FindFieldStructureRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) => Qs("index", index); + public FindFieldStructureRequestDescriptor Quote(string? quote) => Qs("quote", quote); + public FindFieldStructureRequestDescriptor ShouldTrimFields(bool? shouldTrimFields = true) => Qs("should_trim_fields", shouldTrimFields); + public FindFieldStructureRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public FindFieldStructureRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Field? timestampField) => Qs("timestamp_field", timestampField); + public FindFieldStructureRequestDescriptor TimestampFormat(string? timestampFormat) => Qs("timestamp_format", timestampFormat); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs new file mode 100644 index 00000000000..432ca254f96 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureResponse.g.cs @@ -0,0 +1,62 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +public sealed partial class FindFieldStructureResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("charset")] + public string Charset { get; init; } + [JsonInclude, JsonPropertyName("ecs_compatibility")] + public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get; init; } + [JsonInclude, JsonPropertyName("field_stats")] + [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.TextStructure.FieldStat))] + public IReadOnlyDictionary FieldStats { get; init; } + [JsonInclude, JsonPropertyName("format")] + public Elastic.Clients.Elasticsearch.TextStructure.FormatType Format { get; init; } + [JsonInclude, JsonPropertyName("grok_pattern")] + public string? GrokPattern { get; init; } + [JsonInclude, JsonPropertyName("ingest_pipeline")] + public Elastic.Clients.Elasticsearch.Ingest.PipelineConfig IngestPipeline { get; init; } + [JsonInclude, JsonPropertyName("java_timestamp_formats")] + public IReadOnlyCollection? JavaTimestampFormats { get; init; } + [JsonInclude, JsonPropertyName("joda_timestamp_formats")] + public IReadOnlyCollection? JodaTimestampFormats { get; init; } + [JsonInclude, JsonPropertyName("mappings")] + public Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; init; } + [JsonInclude, JsonPropertyName("multiline_start_pattern")] + public string? MultilineStartPattern { get; init; } + [JsonInclude, JsonPropertyName("need_client_timezone")] + public bool NeedClientTimezone { get; init; } + [JsonInclude, JsonPropertyName("num_lines_analyzed")] + public int NumLinesAnalyzed { get; init; } + [JsonInclude, JsonPropertyName("num_messages_analyzed")] + public int NumMessagesAnalyzed { get; init; } + [JsonInclude, JsonPropertyName("sample_start")] + public string SampleStart { get; init; } + [JsonInclude, JsonPropertyName("timestamp_field")] + public string? TimestampField { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs new file mode 100644 index 00000000000..b50c0cabef5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs @@ -0,0 +1,714 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +public sealed partial class FindMessageStructureRequestParameters : RequestParameters +{ + /// + /// + /// If the format is delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. + /// + /// + public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + + /// + /// + /// If you the format is delimited, you can specify the character used to delimit the values in each row. + /// Only a single character is supported; the delimiter cannot have multiple characters. + /// By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (|). + /// In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + /// If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + /// + /// + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// + /// The mode of compatibility with ECS compliant Grok patterns. + /// Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + /// This setting primarily has an impact when a whole message Grok pattern such as %{CATALINALOG} matches the input. + /// If the structure finder identifies a common structure but has no idea of meaning then generic field names such as path, ipaddress, field1, and field2 are used in the grok_pattern output, with the intention that a user who knows the meanings rename these fields before using it. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } + + /// + /// + /// If this parameter is set to true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + /// + /// + public bool? Explain { get => Q("explain"); set => Q("explain", value); } + + /// + /// + /// The high level structure of the text. + /// By default, the API chooses the format. + /// In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + /// If the format is delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + /// + /// + public Elastic.Clients.Elasticsearch.TextStructure.FormatType? Format { get => Q("format"); set => Q("format", value); } + + /// + /// + /// If the format is semi_structured_text, you can specify a Grok pattern that is used to extract fields from every message in the text. + /// The name of the timestamp field in the Grok pattern must match what is specified in the timestamp_field parameter. + /// If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + /// If grok_pattern is not specified, the structure finder creates a Grok pattern. + /// + /// + public string? GrokPattern { get => Q("grok_pattern"); set => Q("grok_pattern", value); } + + /// + /// + /// If the format is delimited, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + /// Only a single character is supported. + /// If this parameter is not specified, the default value is a double quote ("). + /// If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + /// + /// + public string? Quote { get => Q("quote"); set => Q("quote", value); } + + /// + /// + /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. + /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. + /// Otherwise, the default value is false. + /// + /// + public bool? ShouldTrimFields { get => Q("should_trim_fields"); set => Q("should_trim_fields", value); } + + /// + /// + /// The maximum amount of time that the structure analysis can take. + /// If the analysis is still running when the timeout expires, it will be stopped. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// The name of the field that contains the primary timestamp of each record in the text. + /// In particular, if the text was ingested into an index, this is the field that would be used to populate the @timestamp field. + /// + /// + /// If the format is semi_structured_text, this field must match the name of the appropriate extraction in the grok_pattern. + /// Therefore, for semi-structured text, it is best not to specify this parameter unless grok_pattern is also specified. + /// + /// + /// For structured text, if you specify this parameter, the field must exist within the text. + /// + /// + /// If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + /// For structured text, it is not compulsory to have a timestamp in the text. + /// + /// + public Elastic.Clients.Elasticsearch.Field? TimestampField { get => Q("timestamp_field"); set => Q("timestamp_field", value); } + + /// + /// + /// The Java time format of the timestamp field in the text. + /// Only a subset of Java time format letter groups are supported: + /// + /// + /// + /// + /// a + /// + /// + /// + /// + /// d + /// + /// + /// + /// + /// dd + /// + /// + /// + /// + /// EEE + /// + /// + /// + /// + /// EEEE + /// + /// + /// + /// + /// H + /// + /// + /// + /// + /// HH + /// + /// + /// + /// + /// h + /// + /// + /// + /// + /// M + /// + /// + /// + /// + /// MM + /// + /// + /// + /// + /// MMM + /// + /// + /// + /// + /// MMMM + /// + /// + /// + /// + /// mm + /// + /// + /// + /// + /// ss + /// + /// + /// + /// + /// XX + /// + /// + /// + /// + /// XXX + /// + /// + /// + /// + /// yy + /// + /// + /// + /// + /// yyyy + /// + /// + /// + /// + /// zzz + /// + /// + /// + /// + /// Additionally S letter groups (fractional seconds) of length one to nine are supported providing they occur after ss and are separated from the ss by a period (.), comma (,), or colon (:). + /// Spacing and punctuation is also permitted with the exception a question mark (?), newline, and carriage return, together with literal text enclosed in single quotes. + /// For example, MM/dd HH.mm.ss,SSSSSS 'in' yyyy is a valid override format. + /// + /// + /// One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full grok_pattern. + /// Another is when the timestamp format is one that the structure finder does not consider by default. + /// + /// + /// If this parameter is not specified, the structure finder chooses the best format from a built-in set. + /// + /// + /// If the special value null is specified, the structure finder will not look for a primary timestamp in the text. + /// When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. + /// + /// + public string? TimestampFormat { get => Q("timestamp_format"); set => Q("timestamp_format", value); } +} + +/// +/// +/// Find the structure of text messages. +/// Find the structure of a list of text messages. +/// The messages must contain data that is suitable to be ingested into Elasticsearch. +/// +/// +/// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. +/// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. +/// The response from the API contains: +/// +/// +/// +/// +/// Sample messages. +/// +/// +/// +/// +/// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. +/// +/// +/// +/// +/// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. +/// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. +/// +/// +/// +/// +/// All this information can be calculated by the structure finder with no guidance. +/// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. +/// +/// +public sealed partial class FindMessageStructureRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureFindMessageStructure; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "text_structure.find_message_structure"; + + /// + /// + /// If the format is delimited, you can specify the column names in a comma-separated list. + /// If this parameter is not specified, the structure finder uses the column names from the header row of the text. + /// If the text does not have a header role, columns are named "column1", "column2", "column3", for example. + /// + /// + [JsonIgnore] + public string? ColumnNames { get => Q("column_names"); set => Q("column_names", value); } + + /// + /// + /// If you the format is delimited, you can specify the character used to delimit the values in each row. + /// Only a single character is supported; the delimiter cannot have multiple characters. + /// By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (|). + /// In this default scenario, all rows must have the same number of fields for the delimited format to be detected. + /// If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row. + /// + /// + [JsonIgnore] + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// + /// The mode of compatibility with ECS compliant Grok patterns. + /// Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + /// This setting primarily has an impact when a whole message Grok pattern such as %{CATALINALOG} matches the input. + /// If the structure finder identifies a common structure but has no idea of meaning then generic field names such as path, ipaddress, field1, and field2 are used in the grok_pattern output, with the intention that a user who knows the meanings rename these fields before using it. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } + + /// + /// + /// If this parameter is set to true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + /// + /// + [JsonIgnore] + public bool? Explain { get => Q("explain"); set => Q("explain", value); } + + /// + /// + /// The high level structure of the text. + /// By default, the API chooses the format. + /// In this default scenario, all rows must have the same number of fields for a delimited format to be detected. + /// If the format is delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.TextStructure.FormatType? Format { get => Q("format"); set => Q("format", value); } + + /// + /// + /// If the format is semi_structured_text, you can specify a Grok pattern that is used to extract fields from every message in the text. + /// The name of the timestamp field in the Grok pattern must match what is specified in the timestamp_field parameter. + /// If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". + /// If grok_pattern is not specified, the structure finder creates a Grok pattern. + /// + /// + [JsonIgnore] + public string? GrokPattern { get => Q("grok_pattern"); set => Q("grok_pattern", value); } + + /// + /// + /// If the format is delimited, you can specify the character used to quote the values in each row if they contain newlines or the delimiter character. + /// Only a single character is supported. + /// If this parameter is not specified, the default value is a double quote ("). + /// If your delimited text format does not use quoting, a workaround is to set this argument to a character that does not appear anywhere in the sample. + /// + /// + [JsonIgnore] + public string? Quote { get => Q("quote"); set => Q("quote", value); } + + /// + /// + /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. + /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. + /// Otherwise, the default value is false. + /// + /// + [JsonIgnore] + public bool? ShouldTrimFields { get => Q("should_trim_fields"); set => Q("should_trim_fields", value); } + + /// + /// + /// The maximum amount of time that the structure analysis can take. + /// If the analysis is still running when the timeout expires, it will be stopped. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// The name of the field that contains the primary timestamp of each record in the text. + /// In particular, if the text was ingested into an index, this is the field that would be used to populate the @timestamp field. + /// + /// + /// If the format is semi_structured_text, this field must match the name of the appropriate extraction in the grok_pattern. + /// Therefore, for semi-structured text, it is best not to specify this parameter unless grok_pattern is also specified. + /// + /// + /// For structured text, if you specify this parameter, the field must exist within the text. + /// + /// + /// If this parameter is not specified, the structure finder makes a decision about which field (if any) is the primary timestamp field. + /// For structured text, it is not compulsory to have a timestamp in the text. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Field? TimestampField { get => Q("timestamp_field"); set => Q("timestamp_field", value); } + + /// + /// + /// The Java time format of the timestamp field in the text. + /// Only a subset of Java time format letter groups are supported: + /// + /// + /// + /// + /// a + /// + /// + /// + /// + /// d + /// + /// + /// + /// + /// dd + /// + /// + /// + /// + /// EEE + /// + /// + /// + /// + /// EEEE + /// + /// + /// + /// + /// H + /// + /// + /// + /// + /// HH + /// + /// + /// + /// + /// h + /// + /// + /// + /// + /// M + /// + /// + /// + /// + /// MM + /// + /// + /// + /// + /// MMM + /// + /// + /// + /// + /// MMMM + /// + /// + /// + /// + /// mm + /// + /// + /// + /// + /// ss + /// + /// + /// + /// + /// XX + /// + /// + /// + /// + /// XXX + /// + /// + /// + /// + /// yy + /// + /// + /// + /// + /// yyyy + /// + /// + /// + /// + /// zzz + /// + /// + /// + /// + /// Additionally S letter groups (fractional seconds) of length one to nine are supported providing they occur after ss and are separated from the ss by a period (.), comma (,), or colon (:). + /// Spacing and punctuation is also permitted with the exception a question mark (?), newline, and carriage return, together with literal text enclosed in single quotes. + /// For example, MM/dd HH.mm.ss,SSSSSS 'in' yyyy is a valid override format. + /// + /// + /// One valuable use case for this parameter is when the format is semi-structured text, there are multiple timestamp formats in the text, and you know which format corresponds to the primary timestamp, but you do not want to specify the full grok_pattern. + /// Another is when the timestamp format is one that the structure finder does not consider by default. + /// + /// + /// If this parameter is not specified, the structure finder chooses the best format from a built-in set. + /// + /// + /// If the special value null is specified, the structure finder will not look for a primary timestamp in the text. + /// When the format is semi-structured text, this will result in the structure finder treating the text as single-line messages. + /// + /// + [JsonIgnore] + public string? TimestampFormat { get => Q("timestamp_format"); set => Q("timestamp_format", value); } + + /// + /// + /// The list of messages you want to analyze. + /// + /// + [JsonInclude, JsonPropertyName("messages")] + public ICollection Messages { get; set; } +} + +/// +/// +/// Find the structure of text messages. +/// Find the structure of a list of text messages. +/// The messages must contain data that is suitable to be ingested into Elasticsearch. +/// +/// +/// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. +/// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. +/// The response from the API contains: +/// +/// +/// +/// +/// Sample messages. +/// +/// +/// +/// +/// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. +/// +/// +/// +/// +/// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. +/// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. +/// +/// +/// +/// +/// All this information can be calculated by the structure finder with no guidance. +/// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. +/// +/// +public sealed partial class FindMessageStructureRequestDescriptor : RequestDescriptor, FindMessageStructureRequestParameters> +{ + internal FindMessageStructureRequestDescriptor(Action> configure) => configure.Invoke(this); + + public FindMessageStructureRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureFindMessageStructure; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "text_structure.find_message_structure"; + + public FindMessageStructureRequestDescriptor ColumnNames(string? columnNames) => Qs("column_names", columnNames); + public FindMessageStructureRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public FindMessageStructureRequestDescriptor EcsCompatibility(Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? ecsCompatibility) => Qs("ecs_compatibility", ecsCompatibility); + public FindMessageStructureRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); + public FindMessageStructureRequestDescriptor Format(Elastic.Clients.Elasticsearch.TextStructure.FormatType? format) => Qs("format", format); + public FindMessageStructureRequestDescriptor GrokPattern(string? grokPattern) => Qs("grok_pattern", grokPattern); + public FindMessageStructureRequestDescriptor Quote(string? quote) => Qs("quote", quote); + public FindMessageStructureRequestDescriptor ShouldTrimFields(bool? shouldTrimFields = true) => Qs("should_trim_fields", shouldTrimFields); + public FindMessageStructureRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public FindMessageStructureRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Field? timestampField) => Qs("timestamp_field", timestampField); + public FindMessageStructureRequestDescriptor TimestampFormat(string? timestampFormat) => Qs("timestamp_format", timestampFormat); + + private ICollection MessagesValue { get; set; } + + /// + /// + /// The list of messages you want to analyze. + /// + /// + public FindMessageStructureRequestDescriptor Messages(ICollection messages) + { + MessagesValue = messages; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("messages"); + JsonSerializer.Serialize(writer, MessagesValue, options); + writer.WriteEndObject(); + } +} + +/// +/// +/// Find the structure of text messages. +/// Find the structure of a list of text messages. +/// The messages must contain data that is suitable to be ingested into Elasticsearch. +/// +/// +/// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. +/// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. +/// The response from the API contains: +/// +/// +/// +/// +/// Sample messages. +/// +/// +/// +/// +/// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. +/// +/// +/// +/// +/// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. +/// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. +/// +/// +/// +/// +/// All this information can be calculated by the structure finder with no guidance. +/// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. +/// +/// +public sealed partial class FindMessageStructureRequestDescriptor : RequestDescriptor +{ + internal FindMessageStructureRequestDescriptor(Action configure) => configure.Invoke(this); + + public FindMessageStructureRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureFindMessageStructure; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "text_structure.find_message_structure"; + + public FindMessageStructureRequestDescriptor ColumnNames(string? columnNames) => Qs("column_names", columnNames); + public FindMessageStructureRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public FindMessageStructureRequestDescriptor EcsCompatibility(Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? ecsCompatibility) => Qs("ecs_compatibility", ecsCompatibility); + public FindMessageStructureRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); + public FindMessageStructureRequestDescriptor Format(Elastic.Clients.Elasticsearch.TextStructure.FormatType? format) => Qs("format", format); + public FindMessageStructureRequestDescriptor GrokPattern(string? grokPattern) => Qs("grok_pattern", grokPattern); + public FindMessageStructureRequestDescriptor Quote(string? quote) => Qs("quote", quote); + public FindMessageStructureRequestDescriptor ShouldTrimFields(bool? shouldTrimFields = true) => Qs("should_trim_fields", shouldTrimFields); + public FindMessageStructureRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public FindMessageStructureRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Field? timestampField) => Qs("timestamp_field", timestampField); + public FindMessageStructureRequestDescriptor TimestampFormat(string? timestampFormat) => Qs("timestamp_format", timestampFormat); + + private ICollection MessagesValue { get; set; } + + /// + /// + /// The list of messages you want to analyze. + /// + /// + public FindMessageStructureRequestDescriptor Messages(ICollection messages) + { + MessagesValue = messages; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("messages"); + JsonSerializer.Serialize(writer, MessagesValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs new file mode 100644 index 00000000000..922ef596371 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureResponse.g.cs @@ -0,0 +1,62 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +public sealed partial class FindMessageStructureResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("charset")] + public string Charset { get; init; } + [JsonInclude, JsonPropertyName("ecs_compatibility")] + public Elastic.Clients.Elasticsearch.TextStructure.EcsCompatibilityType? EcsCompatibility { get; init; } + [JsonInclude, JsonPropertyName("field_stats")] + [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.TextStructure.FieldStat))] + public IReadOnlyDictionary FieldStats { get; init; } + [JsonInclude, JsonPropertyName("format")] + public Elastic.Clients.Elasticsearch.TextStructure.FormatType Format { get; init; } + [JsonInclude, JsonPropertyName("grok_pattern")] + public string? GrokPattern { get; init; } + [JsonInclude, JsonPropertyName("ingest_pipeline")] + public Elastic.Clients.Elasticsearch.Ingest.PipelineConfig IngestPipeline { get; init; } + [JsonInclude, JsonPropertyName("java_timestamp_formats")] + public IReadOnlyCollection? JavaTimestampFormats { get; init; } + [JsonInclude, JsonPropertyName("joda_timestamp_formats")] + public IReadOnlyCollection? JodaTimestampFormats { get; init; } + [JsonInclude, JsonPropertyName("mappings")] + public Elastic.Clients.Elasticsearch.Mapping.TypeMapping Mappings { get; init; } + [JsonInclude, JsonPropertyName("multiline_start_pattern")] + public string? MultilineStartPattern { get; init; } + [JsonInclude, JsonPropertyName("need_client_timezone")] + public bool NeedClientTimezone { get; init; } + [JsonInclude, JsonPropertyName("num_lines_analyzed")] + public int NumLinesAnalyzed { get; init; } + [JsonInclude, JsonPropertyName("num_messages_analyzed")] + public int NumMessagesAnalyzed { get; init; } + [JsonInclude, JsonPropertyName("sample_start")] + public string SampleStart { get; init; } + [JsonInclude, JsonPropertyName("timestamp_field")] + public string? TimestampField { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs index f8e4bcdafdd..247d72941e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs @@ -42,7 +42,9 @@ public sealed partial class TestGrokPatternRequestParameters : RequestParameters /// /// -/// Tests a Grok pattern on some text. +/// Test a Grok pattern. +/// Test a Grok pattern on one or more lines of text. +/// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// public sealed partial class TestGrokPatternRequest : PlainRequest @@ -82,7 +84,9 @@ public sealed partial class TestGrokPatternRequest : PlainRequest /// -/// Tests a Grok pattern on some text. +/// Test a Grok pattern. +/// Test a Grok pattern on one or more lines of text. +/// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// public sealed partial class TestGrokPatternRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs index a562b550fb2..50bfb0a2008 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs @@ -50,12 +50,22 @@ public sealed partial class UpgradeTransformsRequestParameters : RequestParamete /// /// -/// Upgrades all transforms. -/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It -/// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not -/// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when -/// Elasticsearch security features are enabled; the role used to read source data and write to the destination index -/// remains unchanged. +/// Upgrade all transforms. +/// Transforms are compatible across minor versions and between supported major versions. +/// However, over time, the format of transform configuration information may change. +/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. +/// It also cleans up the internal data structures that store the transform state and checkpoints. +/// The upgrade does not affect the source and destination indices. +/// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. +/// +/// +/// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. +/// Resolve the issue then re-run the process again. +/// A summary is returned when the upgrade is finished. +/// +/// +/// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. +/// You may want to perform a recent cluster backup prior to the upgrade. /// /// public sealed partial class UpgradeTransformsRequest : PlainRequest @@ -88,12 +98,22 @@ public sealed partial class UpgradeTransformsRequest : PlainRequest /// -/// Upgrades all transforms. -/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It -/// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not -/// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when -/// Elasticsearch security features are enabled; the role used to read source data and write to the destination index -/// remains unchanged. +/// Upgrade all transforms. +/// Transforms are compatible across minor versions and between supported major versions. +/// However, over time, the format of transform configuration information may change. +/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. +/// It also cleans up the internal data structures that store the transform state and checkpoints. +/// The upgrade does not affect the source and destination indices. +/// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. +/// +/// +/// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. +/// Resolve the issue then re-run the process again. +/// A summary is returned when the upgrade is finished. +/// +/// +/// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. +/// You may want to perform a recent cluster backup prior to the upgrade. /// /// public sealed partial class UpgradeTransformsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 4399788c3ee..42b67ad0cb0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -49,8 +49,26 @@ public sealed partial class XpackInfoRequestParameters : RequestParameters /// /// -/// Provides general information about the installed X-Pack features. +/// Get information. +/// The information provided by the API includes: /// +/// +/// +/// +/// Build information including the build number and timestamp. +/// +/// +/// +/// +/// License information about the currently installed license. +/// +/// +/// +/// +/// Feature information for the features that are currently enabled and available under the current license. +/// +/// +/// /// public sealed partial class XpackInfoRequest : PlainRequest { @@ -81,8 +99,26 @@ public sealed partial class XpackInfoRequest : PlainRequest /// -/// Provides general information about the installed X-Pack features. +/// Get information. +/// The information provided by the API includes: +/// +/// +/// +/// +/// Build information including the build number and timestamp. +/// +/// +/// +/// +/// License information about the currently installed license. +/// +/// +/// +/// +/// Feature information for the features that are currently enabled and available under the current license. /// +/// +/// /// public sealed partial class XpackInfoRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs index 8a0ac0566a4..f166a00e6dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -42,7 +42,9 @@ public sealed partial class XpackUsageRequestParameters : RequestParameters /// /// -/// This API provides information about which features are currently enabled and available under the current license and some usage statistics. +/// Get usage information. +/// Get information about the features that are currently enabled and available under the current license. +/// The API also provides some usage statistics. /// /// public sealed partial class XpackUsageRequest : PlainRequest @@ -66,7 +68,9 @@ public sealed partial class XpackUsageRequest : PlainRequest /// -/// This API provides information about which features are currently enabled and available under the current license and some usage statistics. +/// Get usage information. +/// Get information about the features that are currently enabled and available under the current license. +/// The API also provides some usage statistics. /// /// public sealed partial class XpackUsageRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index c84b1f22823..6cdf90cffa7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -48,7 +48,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) @@ -66,7 +66,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -83,7 +83,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) @@ -101,7 +101,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -120,7 +120,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -140,7 +140,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) @@ -158,7 +158,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescript /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -177,7 +177,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -197,7 +197,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -214,7 +214,7 @@ public virtual Task DeleteAsync(DeleteAsyn /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -251,7 +251,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -268,7 +268,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -304,7 +304,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) @@ -321,7 +321,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -337,7 +337,7 @@ public virtual Task> GetAsync(GetAs /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequestDescriptor descriptor) @@ -354,7 +354,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -372,7 +372,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -391,7 +391,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -407,7 +407,7 @@ public virtual Task> GetAsync(GetAs /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -424,7 +424,7 @@ public virtual Task> GetAsync(Elast /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -442,7 +442,7 @@ public virtual Task> GetAsync(Elast /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) @@ -459,7 +459,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -475,7 +475,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) @@ -492,7 +492,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) @@ -510,7 +510,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -529,7 +529,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) @@ -546,7 +546,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescript /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) @@ -564,7 +564,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -583,7 +583,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -599,7 +599,7 @@ public virtual Task StatusAsync(AsyncSearc /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -616,7 +616,7 @@ public virtual Task StatusAsync(Elastic.Cl /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -634,7 +634,7 @@ public virtual Task StatusAsync(Elastic.Cl /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -650,7 +650,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -667,7 +667,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -691,7 +691,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) @@ -714,7 +714,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -736,7 +736,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) @@ -759,7 +759,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Elastic.Clients.Elasticsearch.Indices? indices) @@ -783,7 +783,7 @@ public virtual SubmitAsyncSearchResponse Submit(Elastic.Cl /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -808,7 +808,7 @@ public virtual SubmitAsyncSearchResponse Submit(Elastic.Cl /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit() @@ -832,7 +832,7 @@ public virtual SubmitAsyncSearchResponse Submit() /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) @@ -857,7 +857,7 @@ public virtual SubmitAsyncSearchResponse Submit(Actionsearch.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -879,7 +879,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -902,7 +902,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -926,7 +926,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -949,7 +949,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs index c0e14ca6cc6..410d8d118fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs @@ -41,9 +41,10 @@ internal CrossClusterReplicationNamespacedClient(ElasticsearchClient client) : b /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequest request) @@ -54,9 +55,10 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAut /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -66,9 +68,10 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequestDescriptor descriptor) @@ -79,9 +82,10 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAut /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -93,9 +97,10 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.C /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -108,9 +113,10 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.C /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -120,9 +126,10 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -133,9 +140,10 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// - /// Deletes auto-follow patterns. + /// Delete auto-follow patterns. + /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -147,9 +155,11 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequest request) @@ -160,9 +170,11 @@ public virtual FollowResponse Follow(FollowRequest request) /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequest request, CancellationToken cancellationToken = default) { @@ -172,9 +184,11 @@ public virtual Task FollowAsync(FollowRequest request, Cancellat /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) @@ -185,9 +199,11 @@ public virtual FollowResponse Follow(FollowRequestDescriptor /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) @@ -199,9 +215,11 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -214,9 +232,11 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow() @@ -228,9 +248,11 @@ public virtual FollowResponse Follow() /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Action> configureRequest) @@ -243,9 +265,11 @@ public virtual FollowResponse Follow(Action /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) @@ -256,9 +280,11 @@ public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) @@ -270,9 +296,11 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -285,9 +313,11 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -297,9 +327,11 @@ public virtual Task FollowAsync(FollowRequestDescript /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -310,9 +342,11 @@ public virtual Task FollowAsync(Elastic.Clients.Elast /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -324,9 +358,11 @@ public virtual Task FollowAsync(Elastic.Clients.Elast /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(CancellationToken cancellationToken = default) { @@ -337,9 +373,11 @@ public virtual Task FollowAsync(CancellationToken can /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -351,9 +389,11 @@ public virtual Task FollowAsync(Action /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -363,9 +403,11 @@ public virtual Task FollowAsync(FollowRequestDescriptor descript /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -376,9 +418,11 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// /// - /// Creates a new follower index configured to follow the referenced leader index. + /// Create a follower. + /// Create a cross-cluster replication follower index that follows a specific leader index. + /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -390,9 +434,11 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) @@ -403,9 +449,11 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequest request, CancellationToken cancellationToken = default) { @@ -415,9 +463,11 @@ public virtual Task FollowInfoAsync(FollowInfoRequest reques /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) @@ -428,9 +478,11 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescrip /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) @@ -442,9 +494,11 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -457,9 +511,11 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo() @@ -471,9 +527,11 @@ public virtual FollowInfoResponse FollowInfo() /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Action> configureRequest) @@ -486,9 +544,11 @@ public virtual FollowInfoResponse FollowInfo(Action /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) @@ -499,9 +559,11 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descrip /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) @@ -513,9 +575,11 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -528,9 +592,11 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -540,9 +606,11 @@ public virtual Task FollowInfoAsync(FollowInfoReq /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -553,9 +621,11 @@ public virtual Task FollowInfoAsync(Elastic.Clien /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -567,9 +637,11 @@ public virtual Task FollowInfoAsync(Elastic.Clien /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(CancellationToken cancellationToken = default) { @@ -580,9 +652,11 @@ public virtual Task FollowInfoAsync(CancellationT /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -594,9 +668,11 @@ public virtual Task FollowInfoAsync(Action /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -606,9 +682,11 @@ public virtual Task FollowInfoAsync(FollowInfoRequestDescrip /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -619,9 +697,11 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// /// - /// Retrieves information about all follower indices, including parameters and status for each follower index + /// Get follower information. + /// Get information about all cross-cluster replication follower indices. + /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -633,9 +713,11 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) @@ -646,9 +728,11 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequest request, CancellationToken cancellationToken = default) { @@ -658,9 +742,11 @@ public virtual Task FollowStatsAsync(FollowStatsRequest req /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) @@ -671,9 +757,11 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDesc /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -685,9 +773,11 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -700,9 +790,11 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats() @@ -714,9 +806,11 @@ public virtual FollowStatsResponse FollowStats() /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Action> configureRequest) @@ -729,9 +823,11 @@ public virtual FollowStatsResponse FollowStats(Action /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) @@ -742,9 +838,11 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor desc /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -756,9 +854,11 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -771,9 +871,11 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -783,9 +885,11 @@ public virtual Task FollowStatsAsync(FollowStats /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -796,9 +900,11 @@ public virtual Task FollowStatsAsync(Elastic.Cli /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -810,9 +916,11 @@ public virtual Task FollowStatsAsync(Elastic.Cli /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(CancellationToken cancellationToken = default) { @@ -823,9 +931,11 @@ public virtual Task FollowStatsAsync(Cancellatio /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -837,9 +947,11 @@ public virtual Task FollowStatsAsync(Action /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -849,9 +961,11 @@ public virtual Task FollowStatsAsync(FollowStatsRequestDesc /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -862,9 +976,11 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// /// - /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. + /// Get follower stats. + /// Get cross-cluster replication follower stats. + /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -876,9 +992,22 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest request) @@ -889,9 +1018,22 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest reque /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequest request, CancellationToken cancellationToken = default) { @@ -901,9 +1043,22 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) @@ -914,9 +1069,22 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRe /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) @@ -928,9 +1096,22 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -943,9 +1124,22 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower() @@ -957,9 +1151,22 @@ public virtual ForgetFollowerResponse ForgetFollower() /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Action> configureRequest) @@ -972,9 +1179,22 @@ public virtual ForgetFollowerResponse ForgetFollower(Action /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) @@ -985,9 +1205,22 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescri /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) @@ -999,9 +1232,22 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1014,9 +1260,22 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1026,9 +1285,22 @@ public virtual Task ForgetFollowerAsync(Forge /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1039,9 +1311,22 @@ public virtual Task ForgetFollowerAsync(Elast /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1053,9 +1338,22 @@ public virtual Task ForgetFollowerAsync(Elast /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. + /// + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(CancellationToken cancellationToken = default) { @@ -1066,9 +1364,22 @@ public virtual Task ForgetFollowerAsync(Cance /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1080,9 +1391,22 @@ public virtual Task ForgetFollowerAsync(Actio /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1092,9 +1416,22 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1105,9 +1442,22 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// /// - /// Removes the follower retention leases from the leader. + /// Forget a follower. + /// Remove the cross-cluster replication follower retention leases from the leader. + /// + /// + /// A following index takes out retention leases on its leader index. + /// These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication. + /// When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed. + /// However, removal of the leases can fail, for example when the remote cluster containing the leader index is unavailable. + /// While the leases will eventually expire on their own, their extended existence can cause the leader index to hold more history than necessary and prevent index lifecycle management from performing some operations on the leader index. + /// This API exists to enable manually removing the leases when the unfollow API is unable to do so. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. + /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1119,9 +1469,10 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequest request) @@ -1132,9 +1483,10 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPa /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(GetAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1144,9 +1496,10 @@ public virtual Task GetAutoFollowPatternAsync(GetA /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequestDescriptor descriptor) @@ -1157,9 +1510,10 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPa /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients.Elasticsearch.Name? name) @@ -1171,9 +1525,10 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -1186,9 +1541,10 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern() @@ -1200,9 +1556,10 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern() /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Action configureRequest) @@ -1215,9 +1572,10 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Action /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(GetAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1227,9 +1585,10 @@ public virtual Task GetAutoFollowPatternAsync(GetA /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -1240,9 +1599,10 @@ public virtual Task GetAutoFollowPatternAsync(Elas /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1254,9 +1614,10 @@ public virtual Task GetAutoFollowPatternAsync(Elas /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(CancellationToken cancellationToken = default) { @@ -1267,9 +1628,10 @@ public virtual Task GetAutoFollowPatternAsync(Canc /// /// - /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. + /// Get auto-follow patterns. + /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1281,9 +1643,17 @@ public virtual Task GetAutoFollowPatternAsync(Acti /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequest request) @@ -1294,9 +1664,17 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(PauseAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1306,9 +1684,17 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. + /// + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequestDescriptor descriptor) @@ -1319,9 +1705,17 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. + /// + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1333,9 +1727,17 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. + /// + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1348,9 +1750,17 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. + /// + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(PauseAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1360,9 +1770,17 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1373,9 +1791,17 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// - /// Pauses an auto-follow pattern + /// Pause an auto-follow pattern. + /// Pause a cross-cluster replication auto-follow pattern. + /// When the API returns, the auto-follow pattern is inactive. + /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. + /// + /// + /// You can resume auto-following with the resume auto-follow pattern API. + /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. + /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1387,9 +1813,13 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) @@ -1400,9 +1830,13 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequest request, CancellationToken cancellationToken = default) { @@ -1412,9 +1846,13 @@ public virtual Task PauseFollowAsync(PauseFollowRequest req /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) @@ -1425,9 +1863,13 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDesc /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1439,9 +1881,13 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1454,9 +1900,13 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow() @@ -1468,9 +1918,13 @@ public virtual PauseFollowResponse PauseFollow() /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Action> configureRequest) @@ -1483,9 +1937,13 @@ public virtual PauseFollowResponse PauseFollow(Action /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) @@ -1496,9 +1954,13 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor desc /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1510,9 +1972,13 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1525,9 +1991,13 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1537,9 +2007,13 @@ public virtual Task PauseFollowAsync(PauseFollow /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1550,9 +2024,13 @@ public virtual Task PauseFollowAsync(Elastic.Cli /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1564,9 +2042,13 @@ public virtual Task PauseFollowAsync(Elastic.Cli /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(CancellationToken cancellationToken = default) { @@ -1577,9 +2059,13 @@ public virtual Task PauseFollowAsync(Cancellatio /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1591,9 +2077,13 @@ public virtual Task PauseFollowAsync(Action /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1603,9 +2093,13 @@ public virtual Task PauseFollowAsync(PauseFollowRequestDesc /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1616,9 +2110,13 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// /// - /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. + /// Pause a follower. + /// Pause a cross-cluster replication follower index. + /// The follower index will not fetch any additional operations from the leader index. + /// You can resume following with the resume follower API. + /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1630,9 +2128,16 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequest request) @@ -1643,9 +2148,16 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPa /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(PutAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1655,9 +2167,16 @@ public virtual Task PutAutoFollowPatternAsync(PutA /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequestDescriptor descriptor) @@ -1668,9 +2187,16 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPa /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. + /// + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1682,9 +2208,16 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1697,9 +2230,16 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. + /// + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(PutAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1709,9 +2249,16 @@ public virtual Task PutAutoFollowPatternAsync(PutA /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. + /// + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1722,9 +2269,16 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// /// - /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. + /// Create or update auto-follow patterns. + /// Create a collection of cross-cluster replication auto-follow patterns for a remote cluster. + /// Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices. + /// Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern. + /// + /// + /// This API can also be used to update auto-follow patterns. + /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1736,9 +2290,12 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequest request) @@ -1749,9 +2306,12 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAut /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1761,9 +2321,12 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequestDescriptor descriptor) @@ -1774,9 +2337,12 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAut /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1788,9 +2354,12 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.C /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1803,9 +2372,12 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.C /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1815,9 +2387,12 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1828,9 +2403,12 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// - /// Resumes an auto-follow pattern that has been paused + /// Resume an auto-follow pattern. + /// Resume a cross-cluster replication auto-follow pattern that was paused. + /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. + /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1842,9 +2420,13 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) @@ -1855,9 +2437,13 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequest request, CancellationToken cancellationToken = default) { @@ -1867,9 +2453,13 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequest /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) @@ -1880,9 +2470,13 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestD /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1894,9 +2488,13 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1909,9 +2507,13 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow() @@ -1923,9 +2525,13 @@ public virtual ResumeFollowResponse ResumeFollow() /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Action> configureRequest) @@ -1938,9 +2544,13 @@ public virtual ResumeFollowResponse ResumeFollow(Action /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) @@ -1951,9 +2561,13 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor d /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1965,9 +2579,13 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1980,9 +2598,13 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1992,9 +2614,13 @@ public virtual Task ResumeFollowAsync(ResumeFol /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2005,9 +2631,13 @@ public virtual Task ResumeFollowAsync(Elastic.C /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2019,9 +2649,13 @@ public virtual Task ResumeFollowAsync(Elastic.C /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(CancellationToken cancellationToken = default) { @@ -2032,9 +2666,13 @@ public virtual Task ResumeFollowAsync(Cancellat /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2046,9 +2684,13 @@ public virtual Task ResumeFollowAsync(Action /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2058,9 +2700,13 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequestD /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2071,9 +2717,13 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// /// - /// Resumes a follower index that has been paused + /// Resume a follower. + /// Resume a cross-cluster replication follower index that was paused. + /// The follower index could have been paused with the pause follower API. + /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. + /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2085,9 +2735,10 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequest request) @@ -2098,9 +2749,10 @@ public virtual CcrStatsResponse Stats(CcrStatsRequest request) /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CcrStatsRequest request, CancellationToken cancellationToken = default) { @@ -2110,9 +2762,10 @@ public virtual Task StatsAsync(CcrStatsRequest request, Cancel /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequestDescriptor descriptor) @@ -2123,9 +2776,10 @@ public virtual CcrStatsResponse Stats(CcrStatsRequestDescriptor descriptor) /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats() @@ -2137,9 +2791,10 @@ public virtual CcrStatsResponse Stats() /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(Action configureRequest) @@ -2152,9 +2807,10 @@ public virtual CcrStatsResponse Stats(Action configur /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CcrStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2164,9 +2820,10 @@ public virtual Task StatsAsync(CcrStatsRequestDescriptor descr /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -2177,9 +2834,10 @@ public virtual Task StatsAsync(CancellationToken cancellationT /// /// - /// Gets all stats related to cross-cluster replication. + /// Get cross-cluster replication stats. + /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2191,9 +2849,15 @@ public virtual Task StatsAsync(Action /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequest request) @@ -2204,9 +2868,15 @@ public virtual UnfollowResponse Unfollow(UnfollowRequest request) /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequest request, CancellationToken cancellationToken = default) { @@ -2216,9 +2886,15 @@ public virtual Task UnfollowAsync(UnfollowRequest request, Can /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) @@ -2229,9 +2905,15 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2243,9 +2925,15 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -2258,9 +2946,15 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow() @@ -2272,9 +2966,15 @@ public virtual UnfollowResponse Unfollow() /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Action> configureRequest) @@ -2287,9 +2987,15 @@ public virtual UnfollowResponse Unfollow(Action /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) @@ -2300,9 +3006,15 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2314,9 +3026,15 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -2329,9 +3047,15 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2341,9 +3065,15 @@ public virtual Task UnfollowAsync(UnfollowRequestDe /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2354,9 +3084,15 @@ public virtual Task UnfollowAsync(Elastic.Clients.E /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2368,9 +3104,15 @@ public virtual Task UnfollowAsync(Elastic.Clients.E /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(CancellationToken cancellationToken = default) { @@ -2381,9 +3123,15 @@ public virtual Task UnfollowAsync(CancellationToken /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2395,9 +3143,15 @@ public virtual Task UnfollowAsync(Action /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2407,9 +3161,15 @@ public virtual Task UnfollowAsync(UnfollowRequestDescriptor de /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2420,9 +3180,15 @@ public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearc /// /// - /// Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// Unfollow an index. + /// Convert a cross-cluster replication follower index to a regular index. + /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. + /// The follower index must be paused and closed before you call the unfollow API. + /// + /// + /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 2bf54cd7d80..12a5de69299 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -41,9 +41,13 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) @@ -54,9 +58,13 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -66,9 +74,13 @@ public virtual Task AllocationExplainAsync(Allocation /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) @@ -79,9 +91,13 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain() @@ -93,9 +109,13 @@ public virtual AllocationExplainResponse AllocationExplain() /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) @@ -108,9 +128,13 @@ public virtual AllocationExplainResponse AllocationExplain(Action /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -120,9 +144,13 @@ public virtual Task AllocationExplainAsync(Allocation /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -133,9 +161,13 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// - /// Provides explanations for shard allocations in the cluster. + /// Explain the shard allocations. + /// Get explanations for shard allocations in the cluster. + /// For unassigned shards, it provides an explanation for why the shard is unassigned. + /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. + /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -151,7 +183,7 @@ public virtual Task AllocationExplainAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequest request) @@ -166,7 +198,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -180,7 +212,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequestDescriptor descriptor) @@ -195,7 +227,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -211,7 +243,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -228,7 +260,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -242,7 +274,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -257,7 +289,7 @@ public virtual Task DeleteComponentTemplateAsyn /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -269,9 +301,10 @@ public virtual Task DeleteComponentTemplateAsyn /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequest request) @@ -282,9 +315,10 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(DeleteVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) { @@ -294,9 +328,10 @@ public virtual Task DeleteVotingConfigExcl /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequestDescriptor descriptor) @@ -307,9 +342,10 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions() @@ -321,9 +357,10 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(Action configureRequest) @@ -336,9 +373,10 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(DeleteVotingConfigExclusionsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -348,9 +386,10 @@ public virtual Task DeleteVotingConfigExcl /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) { @@ -361,9 +400,10 @@ public virtual Task DeleteVotingConfigExcl /// /// - /// Clears cluster voting config exclusions. + /// Clear cluster voting config exclusions. + /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -378,7 +418,7 @@ public virtual Task DeleteVotingConfigExcl /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequest request) @@ -392,7 +432,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsCom /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -405,7 +445,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequestDescriptor descriptor) @@ -419,7 +459,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsCom /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -434,7 +474,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.C /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -450,7 +490,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.C /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -463,7 +503,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -477,7 +517,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -492,7 +532,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequest request) @@ -506,7 +546,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -519,7 +559,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequestDescriptor descriptor) @@ -533,7 +573,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -548,7 +588,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -564,7 +604,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate() @@ -579,7 +619,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate() /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Action configureRequest) @@ -595,7 +635,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -608,7 +648,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -622,7 +662,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -637,7 +677,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) { @@ -651,7 +691,7 @@ public virtual Task GetComponentTemplateAsync(Canc /// Get component templates. /// Retrieves information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -663,10 +703,10 @@ public virtual Task GetComponentTemplateAsync(Acti /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) @@ -677,10 +717,10 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -690,10 +730,10 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) @@ -704,10 +744,10 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestD /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings() @@ -719,10 +759,10 @@ public virtual GetClusterSettingsResponse GetSettings() /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) @@ -735,10 +775,10 @@ public virtual GetClusterSettingsResponse GetSettings(Action /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -748,10 +788,10 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -762,10 +802,10 @@ public virtual Task GetSettingsAsync(CancellationTok /// /// - /// Returns cluster-wide settings. + /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -777,10 +817,20 @@ public virtual Task GetSettingsAsync(Action /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequest request) @@ -791,10 +841,20 @@ public virtual HealthResponse Health(HealthRequest request) /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -804,10 +864,20 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequestDescriptor descriptor) @@ -818,10 +888,20 @@ public virtual HealthResponse Health(HealthRequestDescriptor /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) @@ -833,10 +913,20 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -849,10 +939,20 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() @@ -864,10 +964,20 @@ public virtual HealthResponse Health() /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Action> configureRequest) @@ -880,10 +990,20 @@ public virtual HealthResponse Health(Action /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequestDescriptor descriptor) @@ -894,10 +1014,20 @@ public virtual HealthResponse Health(HealthRequestDescriptor descriptor) /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) @@ -909,10 +1039,20 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indi /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -925,10 +1065,20 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indi /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() @@ -940,10 +1090,20 @@ public virtual HealthResponse Health() /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Action configureRequest) @@ -956,10 +1116,20 @@ public virtual HealthResponse Health(Action configureRe /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -969,10 +1139,20 @@ public virtual Task HealthAsync(HealthRequestDescript /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -983,10 +1163,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -998,10 +1188,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -1012,10 +1212,20 @@ public virtual Task HealthAsync(CancellationToken can /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1027,10 +1237,20 @@ public virtual Task HealthAsync(Action /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1040,10 +1260,20 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -1054,10 +1284,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.In /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1069,10 +1309,20 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.In /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. + /// + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -1083,10 +1333,20 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// /// - /// The cluster health API returns a simple status on the health of the cluster. You can also use the API to get the health status of only specified data streams and indices. For data streams, the API retrieves the health status of the stream’s backing indices. - /// The cluster health status is: green, yellow or red. On the shard level, a red status indicates that the specific shard is not allocated in the cluster, yellow means that the primary shard is allocated but replicas are not, and green means that all shards are allocated. The index level status is controlled by the worst shard status. The cluster status is controlled by the worst index status. + /// Get the cluster health status. + /// You can also use the API to get the health status of only specified data streams and indices. + /// For data streams, the API retrieves the health status of the stream’s backing indices. + /// + /// + /// The cluster health status is: green, yellow or red. + /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. + /// The index level status is controlled by the worst shard status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. + /// The cluster status is controlled by the worst index status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1101,7 +1361,7 @@ public virtual Task HealthAsync(Action /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequest request) @@ -1115,7 +1375,7 @@ public virtual ClusterInfoResponse Info(ClusterInfoRequest request) /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequest request, CancellationToken cancellationToken = default) { @@ -1128,7 +1388,7 @@ public virtual Task InfoAsync(ClusterInfoRequest request, C /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequestDescriptor descriptor) @@ -1142,7 +1402,7 @@ public virtual ClusterInfoResponse Info(ClusterInfoRequestDescriptor descriptor) /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(IReadOnlyCollection target) @@ -1157,7 +1417,7 @@ public virtual ClusterInfoResponse Info(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(IReadOnlyCollection target, Action configureRequest) @@ -1173,7 +1433,7 @@ public virtual ClusterInfoResponse Info(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1186,7 +1446,7 @@ public virtual Task InfoAsync(ClusterInfoRequestDescriptor /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, CancellationToken cancellationToken = default) { @@ -1200,7 +1460,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1212,12 +1472,15 @@ public virtual Task InfoAsync(IReadOnlyCollection /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) @@ -1228,12 +1491,15 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -1243,12 +1509,15 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) @@ -1259,12 +1528,15 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor d /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks() @@ -1276,12 +1548,15 @@ public virtual PendingTasksResponse PendingTasks() /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(Action configureRequest) @@ -1294,12 +1569,15 @@ public virtual PendingTasksResponse PendingTasks(Action /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1309,12 +1587,15 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -1325,12 +1606,15 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// /// - /// Returns cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet been executed. + /// Get the pending cluster tasks. + /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. + /// + /// /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the Task Management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. + /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1342,9 +1626,29 @@ public virtual Task PendingTasksAsync(Action /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. + /// + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequest request) @@ -1355,9 +1659,29 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Pos /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + /// + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(PostVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) { @@ -1367,9 +1691,29 @@ public virtual Task PostVotingConfigExclusio /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + /// + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. + /// + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequestDescriptor descriptor) @@ -1380,9 +1724,29 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Pos /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + /// + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. + /// + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions() @@ -1394,9 +1758,29 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions() /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + /// + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. + /// + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Action configureRequest) @@ -1409,9 +1793,29 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Act /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + /// + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(PostVotingConfigExclusionsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1421,9 +1825,29 @@ public virtual Task PostVotingConfigExclusio /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. + /// + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) { @@ -1434,9 +1858,29 @@ public virtual Task PostVotingConfigExclusio /// /// - /// Updates the cluster voting config exclusions by node ids or node names. + /// Update voting configuration exclusions. + /// Update the cluster voting config exclusions by node IDs or node names. + /// By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks. + /// If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually. + /// The API adds an entry for each specified node to the cluster’s voting configuration exclusions list. + /// It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes. + /// + /// + /// Clusters should have no voting configuration exclusions in normal operation. + /// Once the excluded nodes have stopped, clear the voting configuration exclusions with DELETE /_cluster/voting_config_exclusions. + /// This API waits for the nodes to be fully removed from the cluster before it returns. + /// If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use DELETE /_cluster/voting_config_exclusions?wait_for_removal=false to clear the voting configuration exclusions without waiting for the nodes to leave the cluster. + /// + /// + /// A response to POST /_cluster/voting_config_exclusions with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling DELETE /_cluster/voting_config_exclusions. + /// If the call to POST /_cluster/voting_config_exclusions fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration. + /// In that case, you may safely retry the call. + /// + /// + /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. + /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1469,7 +1913,7 @@ public virtual Task PostVotingConfigExclusio /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequest request) @@ -1501,7 +1945,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -1532,7 +1976,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequestDescriptor descriptor) @@ -1564,7 +2008,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -1597,7 +2041,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -1631,7 +2075,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequestDescriptor descriptor) @@ -1663,7 +2107,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -1696,7 +2140,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1730,7 +2174,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1761,7 +2205,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1793,7 +2237,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1826,7 +2270,7 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1857,7 +2301,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1889,7 +2333,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1901,10 +2345,10 @@ public virtual Task PutComponentTemplateAsync(Elas /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) @@ -1915,10 +2359,10 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -1928,10 +2372,10 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) @@ -1942,10 +2386,10 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descript /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -1957,10 +2401,10 @@ public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -1973,10 +2417,10 @@ public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats() @@ -1988,10 +2432,10 @@ public virtual ClusterStatsResponse Stats() /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Action configureRequest) @@ -2004,10 +2448,10 @@ public virtual ClusterStatsResponse Stats(Action /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2017,10 +2461,10 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -2031,10 +2475,10 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2046,10 +2490,10 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -2060,10 +2504,10 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// - /// Returns cluster statistics. - /// It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). + /// Get cluster statistics. + /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs index def12a2fedf..7884181a8ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -155,9 +155,10 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) @@ -168,9 +169,10 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -180,9 +182,10 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescriptor descriptor) @@ -193,9 +196,10 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescripto /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name) @@ -207,9 +211,10 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -222,9 +227,10 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -234,9 +240,10 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -247,9 +254,10 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// /// - /// Creates the enrich index for an existing enrich policy. + /// Run an enrich policy. + /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -438,7 +446,7 @@ public virtual Task GetPolicyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) @@ -452,7 +460,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -465,7 +473,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) @@ -479,7 +487,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) @@ -494,7 +502,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -510,7 +518,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) @@ -524,7 +532,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) @@ -539,7 +547,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -555,7 +563,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -568,7 +576,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -582,7 +590,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -597,7 +605,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -610,7 +618,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -624,7 +632,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs index 2867e62ebd8..22475255bd0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -41,7 +41,8 @@ internal EqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -55,7 +56,8 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequest request) /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -68,7 +70,8 @@ public virtual Task DeleteAsync(EqlDeleteRequest request, Can /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -82,7 +85,8 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -97,7 +101,8 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -113,7 +118,8 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -127,7 +133,8 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -142,7 +149,8 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -158,7 +166,8 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Act /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -171,7 +180,8 @@ public virtual Task DeleteAsync(EqlDeleteRequestDe /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -185,7 +195,8 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -200,7 +211,8 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -213,7 +225,8 @@ public virtual Task DeleteAsync(EqlDeleteRequestDescriptor de /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -227,7 +240,8 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// /// - /// Deletes an async EQL search or a stored synchronous EQL search. + /// Delete an async EQL search. + /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// /// Learn more about this API in the Elasticsearch documentation. @@ -242,9 +256,10 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequest request) @@ -255,9 +270,10 @@ public virtual EqlGetResponse Get(EqlGetRequest request) /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) { @@ -267,9 +283,10 @@ public virtual Task> GetAsync(EqlGetRequest reque /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) @@ -280,9 +297,10 @@ public virtual EqlGetResponse Get(EqlGetRequestDescriptor /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -294,9 +312,10 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -309,9 +328,10 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -321,9 +341,10 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -334,9 +355,10 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// - /// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. + /// Get async EQL search results. + /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -348,9 +370,10 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) @@ -361,9 +384,10 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) { @@ -373,9 +397,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) @@ -386,9 +411,10 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDesc /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) @@ -400,9 +426,10 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -415,9 +442,10 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) @@ -428,9 +456,10 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor desc /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) @@ -442,9 +471,10 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -457,9 +487,10 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -469,9 +500,10 @@ public virtual Task GetStatusAsync(GetEqlStatus /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -482,9 +514,10 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -496,9 +529,10 @@ public virtual Task GetStatusAsync(Elastic.Clie /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -508,9 +542,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequestDesc /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -521,9 +556,10 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// - /// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. + /// Get the async EQL status. + /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -535,7 +571,9 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -548,7 +586,9 @@ public virtual EqlSearchResponse Search(EqlSearchRequest request /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -560,7 +600,9 @@ public virtual Task> SearchAsync(EqlSearchRequ /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -573,7 +615,9 @@ public virtual EqlSearchResponse Search(EqlSearchRequestDescript /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -587,7 +631,9 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -602,7 +648,9 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -616,7 +664,9 @@ public virtual EqlSearchResponse Search() /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -631,7 +681,9 @@ public virtual EqlSearchResponse Search(Action /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -643,7 +695,9 @@ public virtual Task> SearchAsync(EqlSearchRequ /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -656,7 +710,9 @@ public virtual Task> SearchAsync(Elastic.Clien /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -670,7 +726,9 @@ public virtual Task> SearchAsync(Elastic.Clien /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -683,7 +741,9 @@ public virtual Task> SearchAsync(CancellationT /// /// - /// Returns results matching a query expressed in Event Query Language (EQL) + /// Get EQL search results. + /// Returns search results for an Event Query Language (EQL) query. + /// EQL assumes each document in a data stream or index corresponds to an event. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs index 731a3cdae0f..53ae4b23514 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -41,9 +41,10 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequest request) @@ -54,9 +55,10 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequest request) /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) { @@ -66,9 +68,10 @@ public virtual Task QueryAsync(EsqlQueryRequest request, Canc /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) @@ -79,9 +82,10 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query() @@ -93,9 +97,10 @@ public virtual EsqlQueryResponse Query() /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(Action> configureRequest) @@ -108,9 +113,10 @@ public virtual EsqlQueryResponse Query(Action /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) @@ -121,9 +127,10 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query() @@ -135,9 +142,10 @@ public virtual EsqlQueryResponse Query() /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(Action configureRequest) @@ -150,9 +158,10 @@ public virtual EsqlQueryResponse Query(Action config /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -162,9 +171,10 @@ public virtual Task QueryAsync(EsqlQueryRequestDes /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -175,9 +185,10 @@ public virtual Task QueryAsync(CancellationToken c /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -189,9 +200,10 @@ public virtual Task QueryAsync(Action /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -201,9 +213,10 @@ public virtual Task QueryAsync(EsqlQueryRequestDescriptor des /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -214,9 +227,10 @@ public virtual Task QueryAsync(CancellationToken cancellation /// /// - /// Executes an ES|QL request + /// Run an ES|QL query. + /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs index bc25559f2d8..03bfacd5777 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs @@ -41,7 +41,18 @@ internal FeaturesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +65,18 @@ public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequest request) /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +88,18 @@ public virtual Task GetFeaturesAsync(GetFeaturesRequest req /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +112,18 @@ public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequestDescriptor desc /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +137,18 @@ public virtual GetFeaturesResponse GetFeatures() /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +163,18 @@ public virtual GetFeaturesResponse GetFeatures(Action /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +186,18 @@ public virtual Task GetFeaturesAsync(GetFeaturesRequestDesc /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +210,18 @@ public virtual Task GetFeaturesAsync(CancellationToken canc /// /// - /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot + /// Get the features. + /// Get a list of features that can be included in snapshots using the feature_states field when creating a snapshot. + /// You can use this API to determine which feature states to include when taking a snapshot. + /// By default, all feature states are included in a snapshot if that snapshot includes the global state, or none if it does not. + /// + /// + /// A feature state includes one or more system indices necessary for a given feature to function. + /// In order to ensure data integrity, all system indices that comprise a feature state are snapshotted and restored together. + /// + /// + /// The features listed by this API are a combination of built-in features and features defined by plugins. + /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,7 +235,29 @@ public virtual Task GetFeaturesAsync(Action /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +270,29 @@ public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequest request) /// /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +304,29 @@ public virtual Task ResetFeaturesAsync(ResetFeaturesReque /// /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +339,29 @@ public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequestDescripto /// /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +375,29 @@ public virtual ResetFeaturesResponse ResetFeatures() /// /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +412,29 @@ public virtual ResetFeaturesResponse ResetFeatures(Action /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -226,7 +446,29 @@ public virtual Task ResetFeaturesAsync(ResetFeaturesReque /// /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -239,7 +481,29 @@ public virtual Task ResetFeaturesAsync(CancellationToken /// /// - /// Resets the internal state of features, usually by deleting system indices + /// Reset the features. + /// Clear all of the state information stored in system indices by Elasticsearch features, including the security and machine learning indices. + /// + /// + /// WARNING: Intended for development and testing use only. Do not reset features on a production cluster. + /// + /// + /// Return a cluster to the same state as a new installation by resetting the feature state for all Elasticsearch features. + /// This deletes all state information stored in system indices. + /// + /// + /// The response code is HTTP 200 if the state is successfully reset for all features. + /// It is HTTP 500 if the reset operation failed for any feature. + /// + /// + /// Note that select features might provide a way to reset particular system indices. + /// Using this API resets all features, both those that are built-in and implemented as plugins. + /// + /// + /// To list the features that will be affected, use the get features API. + /// + /// + /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs index 1dd9a1e7d63..39ec68a30d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -41,9 +41,14 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequest request) @@ -54,9 +59,14 @@ public virtual ExploreResponse Explore(ExploreRequest request) /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -66,9 +76,14 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) @@ -79,9 +94,14 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) @@ -93,9 +113,14 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -108,9 +133,14 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore() @@ -122,9 +152,14 @@ public virtual ExploreResponse Explore() /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Action> configureRequest) @@ -137,9 +172,14 @@ public virtual ExploreResponse Explore(Action /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) @@ -150,9 +190,14 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) @@ -164,9 +209,14 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -179,9 +229,14 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -191,9 +246,14 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -204,9 +264,14 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -218,9 +283,14 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(CancellationToken cancellationToken = default) { @@ -231,9 +301,14 @@ public virtual Task ExploreAsync(CancellationToken c /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -245,9 +320,14 @@ public virtual Task ExploreAsync(Action /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -257,9 +337,14 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -270,9 +355,14 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// - /// Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index. + /// Explore graph analytics. + /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. + /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. + /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. + /// Subsequent requests enable you to spider out from one more vertices of interest. + /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs index 9088cb19413..0b4267d04ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs @@ -41,7 +41,8 @@ internal IndexLifecycleManagementNamespacedClient(ElasticsearchClient client) : /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest re /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDes /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +126,8 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +140,8 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// - /// Deletes the specified lifecycle policy definition. You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. + /// Delete a lifecycle policy. + /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,7 +155,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +168,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +180,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequest /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +193,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor d /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +207,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +222,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -228,7 +236,7 @@ public virtual GetLifecycleResponse GetLifecycle() /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -243,7 +251,7 @@ public virtual GetLifecycleResponse GetLifecycle(Action /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -255,7 +263,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequestD /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -268,7 +276,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -282,7 +290,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -295,7 +303,7 @@ public virtual Task GetLifecycleAsync(CancellationToken ca /// /// - /// Retrieves a lifecycle policy. + /// Get lifecycle policies. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -309,7 +317,8 @@ public virtual Task GetLifecycleAsync(Action /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -322,7 +331,8 @@ public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequest request) /// /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -334,7 +344,8 @@ public virtual Task GetStatusAsync(GetIlmStatusRequest req /// /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +358,8 @@ public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequestDescriptor desc /// /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -361,7 +373,8 @@ public virtual GetIlmStatusResponse GetStatus() /// /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -376,7 +389,8 @@ public virtual GetIlmStatusResponse GetStatus(Action /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -388,7 +402,8 @@ public virtual Task GetStatusAsync(GetIlmStatusRequestDesc /// /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -401,7 +416,8 @@ public virtual Task GetStatusAsync(CancellationToken cance /// /// - /// Retrieves the current index lifecycle management (ILM) status. + /// Get the ILM status. + /// Get the current index lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -415,10 +431,36 @@ public virtual Task GetStatusAsync(Action /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -430,10 +472,36 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersR /// /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(MigrateToDataTiersRequest request, CancellationToken cancellationToken = default) @@ -444,10 +512,36 @@ public virtual Task MigrateToDataTiersAsync(MigrateT /// /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -459,10 +553,36 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersR /// /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -475,10 +595,36 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers() /// /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -492,10 +638,36 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers(Action /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(MigrateToDataTiersRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -506,10 +678,36 @@ public virtual Task MigrateToDataTiersAsync(MigrateT /// /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(CancellationToken cancellationToken = default) @@ -521,10 +719,36 @@ public virtual Task MigrateToDataTiersAsync(Cancella /// /// - /// Switches the indices, ILM policies, and legacy, composable and component templates from using custom node attributes and - /// attribute-based allocation filters to using data tiers, and optionally deletes one legacy index template.+ + /// Migrate to data tiers routing. + /// Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers. + /// Optionally, delete one legacy index template. /// Using node roles enables ILM to automatically move the indices between data tiers. /// + /// + /// Migrating away from custom node attributes routing can be manually performed. + /// This API provides an automated way of performing three out of the four manual steps listed in the migration guide: + /// + /// + /// + /// + /// Stop setting the custom hot attribute on new indices. + /// + /// + /// + /// + /// Remove custom allocation settings from existing ILM policies. + /// + /// + /// + /// + /// Replace custom allocation settings from existing indices with the corresponding tier preference. + /// + /// + /// + /// + /// ILM must be stopped before performing the migration. + /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -537,7 +761,23 @@ public virtual Task MigrateToDataTiersAsync(Action /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -550,7 +790,23 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequest request) /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -562,7 +818,23 @@ public virtual Task MoveToStepAsync(MoveToStepRequest reques /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -575,7 +847,23 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescrip /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -589,7 +877,23 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elastics /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -604,7 +908,23 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elastics /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -618,7 +938,23 @@ public virtual MoveToStepResponse MoveToStep() /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -633,7 +969,23 @@ public virtual MoveToStepResponse MoveToStep(Action /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -646,7 +998,23 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescriptor descrip /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -660,7 +1028,23 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.Index /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -675,7 +1059,23 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.Index /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -687,7 +1087,23 @@ public virtual Task MoveToStepAsync(MoveToStepReq /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -700,7 +1116,23 @@ public virtual Task MoveToStepAsync(Elastic.Clien /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -714,7 +1146,23 @@ public virtual Task MoveToStepAsync(Elastic.Clien /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -727,7 +1175,23 @@ public virtual Task MoveToStepAsync(CancellationT /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -741,7 +1205,23 @@ public virtual Task MoveToStepAsync(Action /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -753,7 +1233,23 @@ public virtual Task MoveToStepAsync(MoveToStepRequestDescrip /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -766,7 +1262,23 @@ public virtual Task MoveToStepAsync(Elastic.Clients.Elastics /// /// - /// Manually moves an index into the specified step and executes that step. + /// Move to a lifecycle step. + /// Manually move an index into a specific step in the lifecycle policy and run that step. + /// + /// + /// WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API. + /// + /// + /// You must specify both the current step and the step to be executed in the body of the request. + /// The request will fail if the current step does not match the step currently running for the index + /// This is to prevent the index from being moved from an unexpected step into the next step. + /// + /// + /// When specifying the target (next_step) to which the index will be moved, either the name or both the action and name fields are optional. + /// If only the phase is specified, the index will move to the first step of the first action in the target phase. + /// If the phase and action are specified, the index will move to the first step of the specified action in the specified phase. + /// Only actions specified in the ILM policy are considered valid. + /// An index cannot move to a step that is not part of its policy. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -780,7 +1292,11 @@ public virtual Task MoveToStepAsync(Elastic.Clients.Elastics /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -793,7 +1309,11 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -805,7 +1325,11 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequest /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -818,7 +1342,11 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor d /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -832,7 +1360,11 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -847,7 +1379,11 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -859,7 +1395,11 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequestD /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -872,7 +1412,11 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// - /// Creates a lifecycle policy. If the specified policy exists, the policy is replaced and the policy version is incremented. + /// Create or update a lifecycle policy. + /// If the specified policy exists, it is replaced and the policy version is incremented. + /// + /// + /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -886,7 +1430,9 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -899,7 +1445,9 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequest request) /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -911,7 +1459,9 @@ public virtual Task RemovePolicyAsync(RemovePolicyRequest /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -924,7 +1474,9 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestD /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -938,7 +1490,9 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elas /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -953,7 +1507,9 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elas /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -967,7 +1523,9 @@ public virtual RemovePolicyResponse RemovePolicy() /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -982,7 +1540,9 @@ public virtual RemovePolicyResponse RemovePolicy(Action /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -995,7 +1555,9 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestDescriptor d /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1009,7 +1571,9 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.I /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1024,7 +1588,9 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.I /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1036,7 +1602,9 @@ public virtual Task RemovePolicyAsync(RemovePol /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1049,7 +1617,9 @@ public virtual Task RemovePolicyAsync(Elastic.C /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1063,7 +1633,9 @@ public virtual Task RemovePolicyAsync(Elastic.C /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1076,7 +1648,9 @@ public virtual Task RemovePolicyAsync(Cancellat /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1090,7 +1664,9 @@ public virtual Task RemovePolicyAsync(Action /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1102,7 +1678,9 @@ public virtual Task RemovePolicyAsync(RemovePolicyRequestD /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1115,7 +1693,9 @@ public virtual Task RemovePolicyAsync(Elastic.Clients.Elas /// /// - /// Removes the assigned lifecycle policy and stops managing the specified index + /// Remove policies from an index. + /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. + /// It also stops managing the indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1129,7 +1709,10 @@ public virtual Task RemovePolicyAsync(Elastic.Clients.Elas /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1142,7 +1725,10 @@ public virtual RetryResponse Retry(RetryRequest request) /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1154,7 +1740,10 @@ public virtual Task RetryAsync(RetryRequest request, Cancellation /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1167,7 +1756,10 @@ public virtual RetryResponse Retry(RetryRequestDescriptor /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1181,7 +1773,10 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.Inde /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1196,7 +1791,10 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.Inde /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1210,7 +1808,10 @@ public virtual RetryResponse Retry() /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1225,7 +1826,10 @@ public virtual RetryResponse Retry(Action /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1238,7 +1842,10 @@ public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1252,7 +1859,10 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1267,7 +1877,10 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1279,7 +1892,10 @@ public virtual Task RetryAsync(RetryRequestDescriptor< /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1292,7 +1908,10 @@ public virtual Task RetryAsync(Elastic.Clients.Elastic /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1306,7 +1925,10 @@ public virtual Task RetryAsync(Elastic.Clients.Elastic /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1319,7 +1941,10 @@ public virtual Task RetryAsync(CancellationToken cance /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1333,7 +1958,10 @@ public virtual Task RetryAsync(Action /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1345,7 +1973,10 @@ public virtual Task RetryAsync(RetryRequestDescriptor descriptor, /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1358,7 +1989,10 @@ public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.Inde /// /// - /// Retries executing the policy for an index that is in the ERROR step. + /// Retry a policy. + /// Retry running the lifecycle policy for an index that is in the ERROR step. + /// The API sets the policy back to the step where the error occurred and runs the step. + /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1372,7 +2006,10 @@ public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.Inde /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1385,7 +2022,10 @@ public virtual StartIlmResponse Start(StartIlmRequest request) /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1397,7 +2037,10 @@ public virtual Task StartAsync(StartIlmRequest request, Cancel /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1410,7 +2053,10 @@ public virtual StartIlmResponse Start(StartIlmRequestDescriptor descriptor) /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1424,7 +2070,10 @@ public virtual StartIlmResponse Start() /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1439,7 +2088,10 @@ public virtual StartIlmResponse Start(Action configur /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1451,7 +2103,10 @@ public virtual Task StartAsync(StartIlmRequestDescriptor descr /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1464,7 +2119,10 @@ public virtual Task StartAsync(CancellationToken cancellationT /// /// - /// Start the index lifecycle management (ILM) plugin. + /// Start the ILM plugin. + /// Start the index lifecycle management plugin if it is currently stopped. + /// ILM is started automatically when the cluster is formed. + /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1478,7 +2136,13 @@ public virtual Task StartAsync(Action /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1491,7 +2155,13 @@ public virtual StopIlmResponse Stop(StopIlmRequest request) /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1503,7 +2173,13 @@ public virtual Task StopAsync(StopIlmRequest request, Cancellat /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1516,7 +2192,13 @@ public virtual StopIlmResponse Stop(StopIlmRequestDescriptor descriptor) /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1530,7 +2212,13 @@ public virtual StopIlmResponse Stop() /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1545,7 +2233,13 @@ public virtual StopIlmResponse Stop(Action configureRe /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1557,7 +2251,13 @@ public virtual Task StopAsync(StopIlmRequestDescriptor descript /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1570,7 +2270,13 @@ public virtual Task StopAsync(CancellationToken cancellationTok /// /// - /// Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin + /// Stop the ILM plugin. + /// Halt all lifecycle management operations and stop the index lifecycle management plugin. + /// This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices. + /// + /// + /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. + /// Use the get ILM status API to check whether ILM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index 51145ed44bb..a47f5e10434 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -44,7 +44,7 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) @@ -58,7 +58,7 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequest reque /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescri /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index) @@ -100,7 +100,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -116,7 +116,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze() @@ -131,7 +131,7 @@ public virtual AnalyzeIndexResponse Analyze() /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Action> configureRequest) @@ -147,7 +147,7 @@ public virtual AnalyzeIndexResponse Analyze(Actionanalysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descriptor) @@ -161,7 +161,7 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descri /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index) @@ -176,7 +176,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -192,7 +192,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze() @@ -207,7 +207,7 @@ public virtual AnalyzeIndexResponse Analyze() /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Action configureRequest) @@ -223,7 +223,7 @@ public virtual AnalyzeIndexResponse Analyze(Actionanalysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -236,7 +236,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRe /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -250,7 +250,7 @@ public virtual Task AnalyzeAsync(Elastic.Client /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -265,7 +265,7 @@ public virtual Task AnalyzeAsync(Elastic.Client /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -279,7 +279,7 @@ public virtual Task AnalyzeAsync(CancellationTo /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -294,7 +294,7 @@ public virtual Task AnalyzeAsync(Actionanalysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -307,7 +307,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescri /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -321,7 +321,7 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -336,7 +336,7 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -350,7 +350,7 @@ public virtual Task AnalyzeAsync(CancellationToken cancell /// Get tokens from text analysis. /// The analyze API performs analysis on a text string and returns the resulting tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -362,8 +362,9 @@ public virtual Task AnalyzeAsync(Action /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -376,8 +377,9 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -389,8 +391,9 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -403,8 +406,9 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -418,8 +422,9 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -434,8 +439,9 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -449,8 +455,9 @@ public virtual ClearCacheResponse ClearCache() /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -465,8 +472,9 @@ public virtual ClearCacheResponse ClearCache(Action /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -479,8 +487,9 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descrip /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -494,8 +503,9 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -510,8 +520,9 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -525,8 +536,9 @@ public virtual ClearCacheResponse ClearCache() /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -541,8 +553,9 @@ public virtual ClearCacheResponse ClearCache(Action /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -554,8 +567,9 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -568,8 +582,9 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -583,8 +598,9 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -597,8 +613,9 @@ public virtual Task ClearCacheAsync(CancellationT /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -612,8 +629,9 @@ public virtual Task ClearCacheAsync(Action /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -625,8 +643,9 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -639,8 +658,9 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -654,8 +674,9 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -668,8 +689,9 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// /// - /// Clears the caches of one or more indices. - /// For data streams, the API clears the caches of the stream’s backing indices. + /// Clear the cache. + /// Clear the cache of one or more indices. + /// For data streams, the API clears the caches of the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -683,8 +705,60 @@ public virtual Task ClearCacheAsync(Action /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -696,8 +770,60 @@ public virtual CloneIndexResponse Clone(CloneIndexRequest request) /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequest request, CancellationToken cancellationToken = default) @@ -708,8 +834,60 @@ public virtual Task CloneAsync(CloneIndexRequest request, Ca /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -721,8 +899,60 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -735,8 +965,60 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -750,8 +1032,60 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -764,8 +1098,60 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -779,8 +1165,60 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -792,8 +1230,60 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -806,8 +1296,60 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -821,8 +1363,60 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -833,8 +1427,60 @@ public virtual Task CloneAsync(CloneIndexRequestD /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) @@ -846,35 +1492,191 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CloneIndexRequestDescriptor(index, target); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CloneIndexResponse, CloneIndexRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Clones an existing index. + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) - { - var descriptor = new CloneIndexRequestDescriptor(target); + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CloneIndexRequestDescriptor(index, target); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CloneIndexResponse, CloneIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) + { + var descriptor = new CloneIndexRequestDescriptor(target); descriptor.BeforeRequest(); return DoRequestAsync, CloneIndexResponse, CloneIndexRequestParameters>(descriptor, cancellationToken); } /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) @@ -887,8 +1689,60 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -899,8 +1753,60 @@ public virtual Task CloneAsync(CloneIndexRequestDescriptor d /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) @@ -912,8 +1818,60 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// /// - /// Clones an existing index. + /// Clone an index. + /// Clone an existing index into a new index. + /// Each original primary shard is cloned into a new primary shard in the new index. + /// + /// + /// IMPORTANT: Elasticsearch does not apply index templates to the resulting index. + /// The API also does not copy index metadata from the original index. + /// Index metadata includes aliases, index lifecycle management phase definitions, and cross-cluster replication (CCR) follower information. + /// For example, if you clone a CCR follower index, the resulting clone will not be a follower index. + /// + /// + /// The clone API copies most index settings from the source index to the resulting index, with the exception of index.number_of_replicas and index.auto_expand_replicas. + /// To set the number of replicas in the resulting index, configure these settings in the clone request. + /// + /// + /// Cloning works as follows: + /// + /// + /// + /// + /// First, it creates a new target index with the same definition as the source index. + /// + /// + /// + /// + /// Then it hard-links segments from the source index into the target index. If the file system does not support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Finally, it recovers the target index as though it were a closed index which had just been re-opened. /// + /// + /// + /// + /// IMPORTANT: Indices can only be cloned if they meet the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have the same number of primary shards as the target index. + /// + /// + /// + /// + /// The node handling the clone process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action configureRequest, CancellationToken cancellationToken = default) @@ -926,9 +1884,30 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequest request) @@ -939,9 +1918,30 @@ public virtual CloseIndexResponse Close(CloseIndexRequest request) /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -951,9 +1951,30 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) @@ -964,9 +1985,30 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) @@ -978,9 +2020,30 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -993,9 +2056,30 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close() @@ -1007,9 +2091,30 @@ public virtual CloseIndexResponse Close() /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Action> configureRequest) @@ -1022,9 +2127,30 @@ public virtual CloseIndexResponse Close(Action /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) @@ -1035,9 +2161,30 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) @@ -1049,9 +2196,30 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -1064,9 +2232,30 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1076,9 +2265,30 @@ public virtual Task CloseAsync(CloseIndexRequestD /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -1089,9 +2299,30 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1103,9 +2334,30 @@ public virtual Task CloseAsync(Elastic.Clients.El /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CancellationToken cancellationToken = default) { @@ -1116,9 +2368,30 @@ public virtual Task CloseAsync(CancellationToken /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1130,9 +2403,30 @@ public virtual Task CloseAsync(Action /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1142,9 +2436,30 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -1155,9 +2470,30 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// - /// Closes an index. + /// Close an index. + /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behaviour can be turned off using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1172,7 +2508,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequest request) @@ -1186,7 +2522,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequest request) /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -1199,7 +2535,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) @@ -1213,7 +2549,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) @@ -1228,7 +2564,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1244,7 +2580,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create() @@ -1259,7 +2595,7 @@ public virtual CreateIndexResponse Create() /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Action> configureRequest) @@ -1275,7 +2611,7 @@ public virtual CreateIndexResponse Create(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) @@ -1289,7 +2625,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) @@ -1304,7 +2640,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1320,7 +2656,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1333,7 +2669,7 @@ public virtual Task CreateAsync(CreateIndexReque /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1347,7 +2683,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1362,7 +2698,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -1376,7 +2712,7 @@ public virtual Task CreateAsync(CancellationToke /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1391,7 +2727,7 @@ public virtual Task CreateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1404,7 +2740,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1418,7 +2754,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// Create an index. /// Creates a new index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2712,9 +4048,12 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) @@ -2725,9 +4064,12 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequest request, CancellationToken cancellationToken = default) { @@ -2737,9 +4079,12 @@ public virtual Task DiskUsageAsync(DiskUsageRequest request, /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) @@ -2750,9 +4095,12 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) @@ -2764,9 +4112,12 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -2779,9 +4130,12 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage() @@ -2793,9 +4147,12 @@ public virtual DiskUsageResponse DiskUsage() /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Action> configureRequest) @@ -2808,9 +4165,12 @@ public virtual DiskUsageResponse DiskUsage(Action /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) @@ -2821,9 +4181,12 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) @@ -2835,9 +4198,12 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -2850,9 +4216,12 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2862,9 +4231,12 @@ public virtual Task DiskUsageAsync(DiskUsageReques /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2875,9 +4247,12 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2889,9 +4264,12 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(CancellationToken cancellationToken = default) { @@ -2902,9 +4280,12 @@ public virtual Task DiskUsageAsync(CancellationTok /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2916,9 +4297,12 @@ public virtual Task DiskUsageAsync(Action /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2928,9 +4312,12 @@ public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2941,9 +4328,12 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// /// - /// Analyzes the disk usage of each field of an index or data stream. + /// Analyze the index disk usage. + /// Analyze the disk usage of each field of an index or data stream. + /// This API might not support indices created in previous Elasticsearch versions. + /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2955,9 +4345,17 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequest request) @@ -2968,9 +4366,17 @@ public virtual DownsampleResponse Downsample(DownsampleRequest request) /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequest request, CancellationToken cancellationToken = default) { @@ -2980,9 +4386,17 @@ public virtual Task DownsampleAsync(DownsampleRequest reques /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) @@ -2993,9 +4407,17 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescrip /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) @@ -3007,9 +4429,17 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest) @@ -3022,9 +4452,17 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) @@ -3035,9 +4473,17 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descrip /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) @@ -3049,9 +4495,17 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest) @@ -3064,9 +4518,17 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3076,9 +4538,17 @@ public virtual Task DownsampleAsync(DownsampleReq /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { @@ -3089,9 +4559,17 @@ public virtual Task DownsampleAsync(Elastic.Clien /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3103,9 +4581,17 @@ public virtual Task DownsampleAsync(Elastic.Clien /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3115,9 +4601,17 @@ public virtual Task DownsampleAsync(DownsampleRequestDescrip /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { @@ -3128,9 +4622,17 @@ public virtual Task DownsampleAsync(Elastic.Clients.Elastics /// /// - /// Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// Downsample an index. + /// Aggregate a time series (TSDS) index and store pre-computed statistical summaries (min, max, sum, value_count and avg) for each metric field grouped by a configured time interval. + /// For example, a TSDS index that contains metrics sampled every 10 seconds can be downsampled to an hourly index. + /// All documents within an hour interval are summarized and stored as a single document in the downsample index. + /// + /// + /// NOTE: Only indices in a time series data stream are supported. + /// Neither field nor document level security can be defined on the source index. + /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3724,7 +5226,8 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3737,7 +5240,8 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTempla /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3749,7 +5253,8 @@ public virtual Task ExistsIndexTemplateAsync(Exists /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3762,7 +5267,8 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTempla /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3776,7 +5282,8 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.E /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3791,7 +5298,8 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.E /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3803,7 +5311,8 @@ public virtual Task ExistsIndexTemplateAsync(Exists /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3816,7 +5325,8 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// /// - /// Returns information about whether a particular index template exists. + /// Check index templates. + /// Check whether index templates exist. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3945,7 +5455,7 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. /// /// /// 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. + /// Get 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. /// @@ -3959,7 +5469,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLife /// /// /// 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. + /// Get 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. /// @@ -3972,7 +5482,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// /// /// 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. + /// Get 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. /// @@ -3986,7 +5496,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Expl /// /// /// 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. + /// Get 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. /// @@ -4001,7 +5511,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elas /// /// /// 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. + /// Get 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. /// @@ -4017,7 +5527,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elas /// /// /// 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. + /// Get 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. /// @@ -4032,7 +5542,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle() /// /// /// 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. + /// Get 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. /// @@ -4048,7 +5558,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Acti /// /// /// 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. + /// Get 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. /// @@ -4062,7 +5572,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLife /// /// /// 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. + /// Get 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. /// @@ -4077,7 +5587,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients /// /// /// 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. + /// Get 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. /// @@ -4093,7 +5603,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients /// /// /// 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. + /// Get 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. /// @@ -4106,7 +5616,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -4120,7 +5630,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -4135,7 +5645,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -4149,7 +5659,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -4164,7 +5674,7 @@ public virtual Task ExplainDataLifecycleAsync /// /// 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. + /// Get 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. /// @@ -4177,7 +5687,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// /// /// 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. + /// Get 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. /// @@ -4191,7 +5701,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// /// /// 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. + /// Get 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. /// @@ -4205,7 +5715,10 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4218,7 +5731,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest re /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4230,7 +5746,10 @@ public virtual Task FieldUsageStatsAsync(FieldUsageStat /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4243,7 +5762,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStat /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4257,7 +5779,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4272,7 +5797,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4286,7 +5814,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats() /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4301,7 +5832,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Action /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4314,7 +5848,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDes /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4328,7 +5865,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticse /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4343,7 +5883,10 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticse /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4355,7 +5898,10 @@ public virtual Task FieldUsageStatsAsync(Fie /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4368,7 +5914,10 @@ public virtual Task FieldUsageStatsAsync(Ela /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4382,7 +5931,10 @@ public virtual Task FieldUsageStatsAsync(Ela /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4395,7 +5947,10 @@ public virtual Task FieldUsageStatsAsync(Can /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4409,7 +5964,10 @@ public virtual Task FieldUsageStatsAsync(Act /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4421,7 +5979,10 @@ public virtual Task FieldUsageStatsAsync(FieldUsageStat /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4434,7 +5995,10 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// /// - /// Returns field usage information for each shard and field of an index. + /// Get field usage stats. + /// Get field usage information for each shard and field of an index. + /// Field usage statistics are automatically captured when queries are running on a cluster. + /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4448,9 +6012,21 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequest request) @@ -4461,9 +6037,21 @@ public virtual FlushResponse Flush(FlushRequest request) /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { @@ -4473,9 +6061,21 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) @@ -4486,9 +6086,21 @@ public virtual FlushResponse Flush(FlushRequestDescriptor /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) @@ -4500,9 +6112,21 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -4515,9 +6139,21 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() @@ -4529,9 +6165,21 @@ public virtual FlushResponse Flush() /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Action> configureRequest) @@ -4544,9 +6192,21 @@ public virtual FlushResponse Flush(Action /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) @@ -4557,9 +6217,21 @@ public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) @@ -4571,9 +6243,21 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indice /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -4586,9 +6270,21 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indice /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() @@ -4600,9 +6296,21 @@ public virtual FlushResponse Flush() /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Action configureRequest) @@ -4615,9 +6323,21 @@ public virtual FlushResponse Flush(Action configureReque /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4627,9 +6347,21 @@ public virtual Task FlushAsync(FlushRequestDescriptor< /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -4640,9 +6372,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4654,9 +6398,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -4667,9 +6423,21 @@ public virtual Task FlushAsync(CancellationToken cance /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4681,9 +6449,21 @@ public virtual Task FlushAsync(Action /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4693,9 +6473,21 @@ public virtual Task FlushAsync(FlushRequestDescriptor descriptor, /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -4706,9 +6498,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indi /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4720,9 +6524,21 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indi /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. + /// + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -4733,9 +6549,21 @@ public virtual Task FlushAsync(CancellationToken cancellationToke /// /// - /// Flushes one or more data streams or indices. + /// Flush data streams or indices. + /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. + /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. + /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// After each operation has been flushed it is permanently stored in the Lucene index. + /// This may mean that there is no need to maintain an additional copy of it in the transaction log. + /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. + /// + /// + /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. + /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4747,7 +6575,21 @@ public virtual Task FlushAsync(Action con /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4760,7 +6602,21 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4772,7 +6628,21 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4785,7 +6655,21 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescrip /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4799,7 +6683,21 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4814,7 +6712,21 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4828,7 +6740,21 @@ public virtual ForcemergeResponse Forcemerge() /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4843,7 +6769,21 @@ public virtual ForcemergeResponse Forcemerge(Action /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4856,7 +6796,21 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descrip /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4870,7 +6824,21 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indic /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4885,7 +6853,21 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indic /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4899,7 +6881,21 @@ public virtual ForcemergeResponse Forcemerge() /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4914,7 +6910,21 @@ public virtual ForcemergeResponse Forcemerge(Action /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4926,7 +6936,21 @@ public virtual Task ForcemergeAsync(ForcemergeReq /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4939,7 +6963,21 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4953,7 +6991,21 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4966,7 +7018,21 @@ public virtual Task ForcemergeAsync(CancellationT /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4980,7 +7046,21 @@ public virtual Task ForcemergeAsync(Action /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -4992,7 +7072,21 @@ public virtual Task ForcemergeAsync(ForcemergeRequestDescrip /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5005,7 +7099,21 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5019,7 +7127,21 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5032,7 +7154,21 @@ public virtual Task ForcemergeAsync(CancellationToken cancel /// /// - /// Performs the force merge operation on one or more indices. + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7872,7 +10008,19 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7885,7 +10033,19 @@ public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequ /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7897,7 +10057,19 @@ public virtual Task PromoteDataStreamAsync(PromoteDat /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7910,7 +10082,19 @@ public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequ /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7924,7 +10108,19 @@ public virtual PromoteDataStreamResponse PromoteDataStream(Elastic.Clients.Elast /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7939,7 +10135,19 @@ public virtual PromoteDataStreamResponse PromoteDataStream(Elastic.Clients.Elast /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7951,7 +10159,19 @@ public virtual Task PromoteDataStreamAsync(PromoteDat /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7964,7 +10184,19 @@ public virtual Task PromoteDataStreamAsync(Elastic.Cl /// /// - /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream + /// Promote a data stream. + /// Promote a data stream from a replicated data stream managed by cross-cluster replication (CCR) to a regular data stream. + /// + /// + /// With CCR auto following, a data stream from a remote cluster can be replicated to the local cluster. + /// These data streams can't be rolled over in the local cluster. + /// These replicated data streams roll over only if the upstream data stream rolls over. + /// In the event that the remote cluster is no longer available, the data stream in the local cluster can be promoted to a regular data stream, which allows these data streams to be rolled over in the local cluster. + /// + /// + /// NOTE: When promoting a data stream, ensure the local cluster has a data stream enabled index template that matches the data stream. + /// If this is missing, the data stream will not be able to roll over until a matching index template is created. + /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9196,6 +11428,19 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9210,6 +11455,19 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9223,6 +11481,19 @@ public virtual Task PutTemplateAsync(PutTemplateRequest req /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9237,6 +11508,19 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDesc /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9252,6 +11536,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9268,6 +11565,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9282,6 +11592,19 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor desc /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9297,6 +11620,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9313,6 +11649,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9326,6 +11675,19 @@ public virtual Task PutTemplateAsync(PutTemplate /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9340,6 +11702,19 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9355,6 +11730,19 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9368,6 +11756,19 @@ public virtual Task PutTemplateAsync(PutTemplateRequestDesc /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9382,6 +11783,19 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// + /// Composable templates always take precedence over legacy templates. + /// If no composable template matches a new index, matching legacy templates are applied according to their order. + /// + /// + /// Index templates are only applied during index creation. + /// Changes to index templates do not affect existing indices. + /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9395,8 +11809,56 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9409,8 +11871,56 @@ public virtual RecoveryResponse Recovery(RecoveryRequest request) /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9422,8 +11932,56 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9436,8 +11994,56 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9451,8 +12057,56 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9467,8 +12121,56 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9482,8 +12184,56 @@ public virtual RecoveryResponse Recovery() /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9498,8 +12248,56 @@ public virtual RecoveryResponse Recovery(Action /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9512,8 +12310,56 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9527,8 +12373,56 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9543,8 +12437,56 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9558,8 +12500,56 @@ public virtual RecoveryResponse Recovery() /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9574,8 +12564,56 @@ public virtual RecoveryResponse Recovery(Action confi /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9587,8 +12625,56 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9601,8 +12687,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9616,8 +12750,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9630,8 +12812,56 @@ public virtual Task RecoveryAsync(CancellationToken /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9645,8 +12875,56 @@ public virtual Task RecoveryAsync(Action /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9658,8 +12936,56 @@ public virtual Task RecoveryAsync(RecoveryRequestDescriptor de /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9672,8 +12998,56 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9687,29 +13061,125 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Returns information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream’s backing indices. + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(); - configureRequest?.Invoke(descriptor); + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new RecoveryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get index recovery information. + /// Get information about ongoing and completed shard recoveries for one or more indices. + /// For data streams, the API returns information for the stream's backing indices. + /// + /// + /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. + /// When a shard recovery completes, the recovered shard is available for search and indexing. + /// + /// + /// Recovery automatically occurs during the following processes: + /// + /// + /// + /// + /// When creating an index for the first time. + /// + /// + /// + /// + /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. + /// + /// + /// + /// + /// Creation of new replica shard copies from the primary. + /// + /// + /// + /// + /// Relocation of a shard copy to a different node in the same cluster. + /// + /// + /// + /// + /// A snapshot restore operation. + /// + /// + /// + /// + /// A clone, shrink, or split operation. + /// + /// + /// + /// + /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. + /// + /// + /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. + /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. + /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RecoveryRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } @@ -10059,7 +13529,23 @@ public virtual Task RefreshAsync(Action /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10072,7 +13558,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchA /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10084,7 +13586,23 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10097,7 +13615,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Re /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10111,7 +13645,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10126,7 +13676,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10140,7 +13706,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers() /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10155,7 +13737,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Ac /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10168,7 +13766,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchA /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10182,7 +13796,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10197,7 +13827,23 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10209,7 +13855,23 @@ public virtual Task ReloadSearchAnalyzersAsync /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10222,7 +13884,23 @@ public virtual Task ReloadSearchAnalyzersAsync /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10236,7 +13914,23 @@ public virtual Task ReloadSearchAnalyzersAsync /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10249,7 +13943,23 @@ public virtual Task ReloadSearchAnalyzersAsync /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10263,7 +13973,23 @@ public virtual Task ReloadSearchAnalyzersAsync /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10275,7 +14001,23 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10288,7 +14030,23 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// /// - /// Reloads an index's search analyzers and their resources. + /// Reload search analyzers. + /// Reload an index's search analyzers and their resources. + /// For data streams, the API reloads search analyzers and resources for the stream's backing indices. + /// + /// + /// IMPORTANT: After reloading the search analyzers you should clear the request cache to make sure it doesn't contain responses derived from the previous versions of the analyzer. + /// + /// + /// You can use the reload search analyzers API to pick up changes to synonym files used in the synonym_graph or synonym token filter of a search analyzer. + /// To be eligible, the token filter must have an updateable flag of true and only be used in search analyzers. + /// + /// + /// NOTE: This API does not perform a reload for each shard of an index. + /// Instead, it performs a reload for each node containing index shards. + /// As a result, the total shard count returned by the API can differ from the number of index shards. + /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. + /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10302,10 +14060,47 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10317,10 +14112,47 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest reque /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(ResolveClusterRequest request, CancellationToken cancellationToken = default) @@ -10331,10 +14163,47 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10346,10 +14215,47 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescri /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10362,10 +14268,47 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10379,26 +14322,100 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResolveClusterAsync(ResolveClusterRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ResolveClusterAsync(ResolveClusterRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. + /// Multiple patterns and remote clusters are supported. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { var descriptor = new ResolveClusterRequestDescriptor(name); @@ -10408,10 +14425,47 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// /// - /// Resolves the specified index expressions to return information about each cluster, including - /// the local cluster, if included. + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. /// Multiple patterns and remote clusters are supported. /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) @@ -10424,7 +14478,8 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10438,7 +14493,8 @@ public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10451,7 +14507,8 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequest /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10465,7 +14522,8 @@ public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequestDescriptor d /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10480,7 +14538,8 @@ public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.N /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10496,7 +14555,8 @@ public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.N /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10509,7 +14569,8 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequestD /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10523,7 +14584,8 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// /// - /// Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. + /// Resolve indices. + /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// /// Learn more about this API in the Elasticsearch documentation. @@ -10541,7 +14603,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequest request) @@ -10555,7 +14617,7 @@ public virtual RolloverResponse Rollover(RolloverRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -10568,7 +14630,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) @@ -10582,7 +14644,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) @@ -10597,7 +14659,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action> configureRequest) @@ -10613,7 +14675,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) @@ -10628,7 +14690,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action> configureRequest) @@ -10644,7 +14706,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) @@ -10658,7 +14720,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) @@ -10673,7 +14735,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action configureRequest) @@ -10689,7 +14751,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) @@ -10704,7 +14766,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest) @@ -10720,7 +14782,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10733,7 +14795,7 @@ public virtual Task RolloverAsync(RolloverRequestDe /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, CancellationToken cancellationToken = default) { @@ -10747,7 +14809,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10762,7 +14824,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -10776,7 +14838,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10791,7 +14853,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10804,7 +14866,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, CancellationToken cancellationToken = default) { @@ -10818,7 +14880,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10833,7 +14895,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -10847,7 +14909,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10859,8 +14921,9 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10873,8 +14936,9 @@ public virtual SegmentsResponse Segments(SegmentsRequest request) /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10886,8 +14950,9 @@ public virtual Task SegmentsAsync(SegmentsRequest request, Can /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10900,8 +14965,9 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10915,8 +14981,9 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10931,8 +14998,9 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10946,8 +15014,9 @@ public virtual SegmentsResponse Segments() /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10962,8 +15031,9 @@ public virtual SegmentsResponse Segments(Action /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10976,8 +15046,9 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10991,8 +15062,9 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11007,8 +15079,9 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11022,8 +15095,9 @@ public virtual SegmentsResponse Segments() /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11038,8 +15112,9 @@ public virtual SegmentsResponse Segments(Action confi /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11051,8 +15126,9 @@ public virtual Task SegmentsAsync(SegmentsRequestDe /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11065,8 +15141,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11080,8 +15157,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11094,8 +15172,9 @@ public virtual Task SegmentsAsync(CancellationToken /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11109,8 +15188,9 @@ public virtual Task SegmentsAsync(Action /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11122,8 +15202,9 @@ public virtual Task SegmentsAsync(SegmentsRequestDescriptor de /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11136,8 +15217,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11151,8 +15233,9 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11165,8 +15248,9 @@ public virtual Task SegmentsAsync(CancellationToken cancellati /// /// - /// Returns low-level information about the Lucene segments in index shards. - /// For data streams, the API returns information about the stream’s backing indices. + /// Get index segments. + /// Get low-level information about the Lucene segments in index shards. + /// For data streams, the API returns information about the stream's backing indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11180,8 +15264,37 @@ public virtual Task SegmentsAsync(Action /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11194,8 +15307,37 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequest request) /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11207,8 +15349,37 @@ public virtual Task ShardStoresAsync(ShardStoresRequest req /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11221,8 +15392,37 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDesc /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11236,8 +15436,37 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11252,8 +15481,37 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11267,8 +15525,37 @@ public virtual ShardStoresResponse ShardStores() /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11283,8 +15570,37 @@ public virtual ShardStoresResponse ShardStores(Action /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11297,8 +15613,37 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor desc /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11312,8 +15657,37 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Ind /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11328,8 +15702,37 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Ind /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11343,8 +15746,37 @@ public virtual ShardStoresResponse ShardStores() /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11359,8 +15791,37 @@ public virtual ShardStoresResponse ShardStores(Action /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11372,8 +15833,37 @@ public virtual Task ShardStoresAsync(ShardStores /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11386,8 +15876,37 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11401,8 +15920,37 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11415,13 +15963,42 @@ public virtual Task ShardStoresAsync(Cancellatio /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ShardStoresAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ShardStoresAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { var descriptor = new ShardStoresRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); @@ -11430,8 +16007,37 @@ public virtual Task ShardStoresAsync(Action /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11443,8 +16049,37 @@ public virtual Task ShardStoresAsync(ShardStoresRequestDesc /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11457,8 +16092,37 @@ public virtual Task ShardStoresAsync(Elastic.Clients.Elasti /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11472,8 +16136,37 @@ public virtual Task ShardStoresAsync(Elastic.Clients.Elasti /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11486,8 +16179,37 @@ public virtual Task ShardStoresAsync(CancellationToken canc /// /// - /// Retrieves store information about replica shards in one or more indices. - /// For data streams, the API retrieves store information for the stream’s backing indices. + /// Get index shard stores. + /// Get store information about replica shards in one or more indices. + /// For data streams, the API retrieves store information for the stream's backing indices. + /// + /// + /// The index shard stores API returns the following information: + /// + /// + /// + /// + /// The node on which each replica shard exists. + /// + /// + /// + /// + /// The allocation ID for each replica shard. + /// + /// + /// + /// + /// A unique ID for each replica shard. + /// + /// + /// + /// + /// Any errors encountered while opening the shard index or from an earlier failure. + /// + /// + /// + /// + /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -11501,9 +16223,93 @@ public virtual Task ShardStoresAsync(Action /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) @@ -11514,9 +16320,93 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequest request, CancellationToken cancellationToken = default) { @@ -11526,9 +16416,93 @@ public virtual Task ShrinkAsync(ShrinkIndexRequest request, /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) @@ -11539,9 +16513,93 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescripto /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -11553,9 +16611,93 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) @@ -11568,23 +16710,191 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Before you can shrink an index: /// - /// Learn more about this API in the Elasticsearch documentation. - /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) { @@ -11595,9 +16905,93 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) @@ -11610,9 +17004,93 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11622,9 +17100,93 @@ public virtual Task ShrinkAsync(ShrinkIndexReque /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -11635,9 +17197,93 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11649,9 +17295,93 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11661,9 +17391,93 @@ public virtual Task ShrinkAsync(ShrinkIndexRequestDescripto /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -11674,9 +17488,93 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// /// - /// Shrinks an existing index into a new index with fewer primary shards. + /// Shrink an index. + /// Shrink an index into a new index with fewer primary shards. + /// + /// + /// Before you can shrink an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// A copy of every shard in the index must reside on the same node. + /// + /// + /// + /// + /// The index must have a green health status. + /// + /// + /// + /// + /// To make shard allocation easier, we recommend you also remove the index's replica shards. + /// You can later re-add replica shards as part of the shrink operation. + /// + /// + /// The requested number of primary shards in the target index must be a factor of the number of shards in the source index. + /// For example an index with 8 primary shards can be shrunk into 4, 2 or 1 primary shards or an index with 15 primary shards can be shrunk into 5, 3 or 1. + /// If the number of shards in the index is a prime number it can only be shrunk into a single primary shard + /// Before shrinking, a (primary or replica) copy of every shard in the index must be present on the same node. + /// + /// + /// The current write index on a data stream cannot be shrunk. In order to shrink the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be shrunk. + /// + /// + /// A shrink operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a smaller number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system does not support hard-linking, then all segments are copied into the new index, which is a much more time consuming process. Also if using multiple data paths, shards on different data paths require a full copy of segment files if they are not on the same disk since hardlinks do not work across disks. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. Recovers shards to the .routing.allocation.initial_recovery._id index setting. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be shrunk if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have more primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a factor of the number of primary shards in the source index. The source index must have more primary shards than the target index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The index must not contain more than 2,147,483,519 documents in total across all shards that will be shrunk into a single shard on the target index as this is the maximum number of docs that can fit into a single shard. + /// + /// + /// + /// + /// The node handling the shrink process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12123,9 +18021,82 @@ public virtual Task SimulateTemplateAsync(Action /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequest request) @@ -12136,9 +18107,82 @@ public virtual SplitIndexResponse Split(SplitIndexRequest request) /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequest request, CancellationToken cancellationToken = default) { @@ -12148,9 +18192,82 @@ public virtual Task SplitAsync(SplitIndexRequest request, Ca /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) @@ -12161,9 +18278,82 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -12175,9 +18365,82 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) @@ -12190,9 +18453,82 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) @@ -12203,9 +18539,82 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -12217,9 +18626,82 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) @@ -12232,21 +18714,167 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SplitIndexResponse, SplitIndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SplitIndexResponse, SplitIndexRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Splits an existing index into a new index with more primary shards. + /// The source index must have fewer primary shards than the target index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -12257,9 +18885,82 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12271,9 +18972,82 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12283,9 +19057,82 @@ public virtual Task SplitAsync(SplitIndexRequestDescriptor d /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. + /// + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -12296,9 +19143,82 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// - /// Splits an existing index into a new index with more primary shards. + /// Split an index. + /// Split an index into a new index with more primary shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Before you can split an index: + /// + /// + /// + /// + /// The index must be read-only. + /// + /// + /// + /// + /// The cluster health status must be green. + /// + /// + /// + /// + /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. + /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. + /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. + /// + /// + /// A split operation: + /// + /// + /// + /// + /// Creates a new target index with the same definition as the source index, but with a larger number of primary shards. + /// + /// + /// + /// + /// Hard-links segments from the source index into the target index. If the file system doesn't support hard-linking, all segments are copied into the new index, which is a much more time consuming process. + /// + /// + /// + /// + /// Hashes all documents again, after low level files are created, to delete documents that belong to a different shard. + /// + /// + /// + /// + /// Recovers the target index as though it were a closed index which had just been re-opened. + /// + /// + /// + /// + /// IMPORTANT: Indices can only be split if they satisfy the following requirements: + /// + /// + /// + /// + /// The target index must not exist. + /// + /// + /// + /// + /// The source index must have fewer primary shards than the target index. + /// + /// + /// + /// + /// The number of primary shards in the target index must be a multiple of the number of primary shards in the source index. + /// + /// + /// + /// + /// The node handling the split process must have sufficient free disk space to accommodate a second copy of the existing index. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12310,8 +19230,20 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12324,8 +19256,20 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12337,8 +19281,20 @@ public virtual Task StatsAsync(IndicesStatsRequest request /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12351,8 +19307,20 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescript /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12366,8 +19334,20 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12382,8 +19362,20 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12397,8 +19389,20 @@ public virtual IndicesStatsResponse Stats() /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12413,8 +19417,20 @@ public virtual IndicesStatsResponse Stats(Action /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12427,8 +19443,20 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descript /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12442,8 +19470,20 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12458,8 +19498,20 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12473,8 +19525,20 @@ public virtual IndicesStatsResponse Stats() /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12489,8 +19553,20 @@ public virtual IndicesStatsResponse Stats(Action /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12502,8 +19578,20 @@ public virtual Task StatsAsync(IndicesStatsRequ /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12516,8 +19604,20 @@ public virtual Task StatsAsync(Elastic.Clients. /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12531,8 +19631,20 @@ public virtual Task StatsAsync(Elastic.Clients. /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12545,8 +19657,20 @@ public virtual Task StatsAsync(CancellationToke /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12560,8 +19684,20 @@ public virtual Task StatsAsync(Action /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12573,8 +19709,20 @@ public virtual Task StatsAsync(IndicesStatsRequestDescript /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12587,8 +19735,20 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12602,8 +19762,20 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12616,8 +19788,20 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// - /// Returns statistics for one or more indices. - /// For data streams, the API retrieves statistics for the stream’s backing indices. + /// Get index statistics. + /// For data streams, the API retrieves statistics for the stream's backing indices. + /// + /// + /// By default, the returned statistics are index-level with primaries and total aggregations. + /// primaries are the values for only the primary shards. + /// total are the accumulated values for both primary and replica shards. + /// + /// + /// To get shard-level statistics, set the level parameter to shards. + /// + /// + /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. + /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index d6d2bd5eb7b..42d1bec24e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -527,7 +527,17 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -540,7 +550,17 @@ public virtual PutInferenceResponse Put(PutInferenceRequest request) /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -552,7 +572,17 @@ public virtual Task PutAsync(PutInferenceRequest request, /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -565,7 +595,17 @@ public virtual PutInferenceResponse Put(PutInferenceRequestDescriptor descriptor /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -579,7 +619,17 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -594,7 +644,17 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -608,7 +668,17 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -623,7 +693,17 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -635,7 +715,17 @@ public virtual Task PutAsync(PutInferenceRequestDescriptor /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -648,7 +738,17 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -662,7 +762,17 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -675,7 +785,17 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Create an inference endpoint + /// Create an inference endpoint. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index 3780833c657..dd4bc32e2a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -41,7 +41,8 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDataba /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Delete /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elasti /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elasti /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -121,7 +127,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDataba /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -135,7 +142,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.E /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -150,7 +158,8 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.E /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -162,7 +171,8 @@ public virtual Task DeleteGeoipDatabaseAsync /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -175,7 +185,8 @@ public virtual Task DeleteGeoipDatabaseAsync /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -189,7 +200,8 @@ public virtual Task DeleteGeoipDatabaseAsync /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -201,7 +213,8 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +227,8 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// - /// Deletes a geoip database configuration. + /// Delete GeoIP database configurations. + /// Delete one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -228,7 +242,195 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteIpLocationDatabaseRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteIpLocationDatabaseRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteIpLocationDatabaseRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -241,7 +443,8 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest reque /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +456,8 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +470,8 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRe /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -280,7 +485,8 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients. /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -295,7 +501,8 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients. /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -308,7 +515,8 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescri /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -322,7 +530,8 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -337,7 +546,8 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -349,7 +559,8 @@ public virtual Task DeletePipelineAsync(Delet /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -362,7 +573,8 @@ public virtual Task DeletePipelineAsync(Elast /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -376,7 +588,8 @@ public virtual Task DeletePipelineAsync(Elast /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -388,7 +601,8 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -401,7 +615,8 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// /// - /// Deletes one or more existing ingest pipeline. + /// Delete pipelines. + /// Delete one or more ingest pipelines. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -415,9 +630,10 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) @@ -428,9 +644,10 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -440,9 +657,10 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descriptor) @@ -453,9 +671,10 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descrip /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats() @@ -467,9 +686,10 @@ public virtual GeoIpStatsResponse GeoIpStats() /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(Action configureRequest) @@ -482,9 +702,10 @@ public virtual GeoIpStatsResponse GeoIpStats(Action /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -494,9 +715,10 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -507,9 +729,10 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// /// - /// Gets download statistics for GeoIP2 databases used with the geoip processor. + /// Get GeoIP statistics. + /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -521,7 +744,8 @@ public virtual Task GeoIpStatsAsync(Action /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -534,7 +758,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -546,7 +771,8 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -559,7 +785,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -573,7 +800,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -588,7 +816,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -602,7 +831,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase() /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -617,7 +847,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -630,7 +861,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -644,7 +876,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elastic /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -659,7 +892,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elastic /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -673,7 +907,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase() /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -688,7 +923,8 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -700,7 +936,8 @@ public virtual Task GetGeoipDatabaseAsync(G /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -713,7 +950,8 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -727,7 +965,8 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -740,7 +979,8 @@ public virtual Task GetGeoipDatabaseAsync(C /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -754,7 +994,8 @@ public virtual Task GetGeoipDatabaseAsync(A /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -766,7 +1007,8 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -779,7 +1021,8 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -793,7 +1036,8 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -806,7 +1050,8 @@ public virtual Task GetGeoipDatabaseAsync(Cancellation /// /// - /// Returns information about one or more geoip database configurations. + /// Get GeoIP database configurations. + /// Get information about one or more IP geolocation database configurations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -820,7 +1065,307 @@ public virtual Task GetGeoipDatabaseAsync(Action /// - /// Returns information about one or more ingest pipelines. + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocationDatabaseRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocationDatabaseRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase() + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Action> configureRequest) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocationDatabaseRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase() + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Action configureRequest) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get IP geolocation database configurations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIpLocationDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetIpLocationDatabaseRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -834,7 +1379,8 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequest request) /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -847,7 +1393,8 @@ public virtual Task GetPipelineAsync(GetPipelineRequest req /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -861,7 +1408,8 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDesc /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -876,7 +1424,8 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasti /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -892,7 +1441,8 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasti /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -907,7 +1457,8 @@ public virtual GetPipelineResponse GetPipeline() /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -923,7 +1474,8 @@ public virtual GetPipelineResponse GetPipeline(Action /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -937,7 +1489,8 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor desc /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -952,7 +1505,8 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -968,7 +1522,8 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -983,7 +1538,8 @@ public virtual GetPipelineResponse GetPipeline() /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -999,7 +1555,8 @@ public virtual GetPipelineResponse GetPipeline(Action /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1012,7 +1569,8 @@ public virtual Task GetPipelineAsync(GetPipeline /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1026,7 +1584,8 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1041,7 +1600,8 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1055,7 +1615,8 @@ public virtual Task GetPipelineAsync(Cancellatio /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1070,7 +1631,8 @@ public virtual Task GetPipelineAsync(Action /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1083,7 +1645,8 @@ public virtual Task GetPipelineAsync(GetPipelineRequestDesc /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1097,7 +1660,8 @@ public virtual Task GetPipelineAsync(Elastic.Clients.Elasti /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1112,7 +1676,8 @@ public virtual Task GetPipelineAsync(Elastic.Clients.Elasti /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1126,7 +1691,8 @@ public virtual Task GetPipelineAsync(CancellationToken canc /// /// - /// Returns information about one or more ingest pipelines. + /// Get pipelines. + /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// /// Learn more about this API in the Elasticsearch documentation. @@ -1141,11 +1707,12 @@ public virtual Task GetPipelineAsync(Action /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) @@ -1156,11 +1723,12 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -1170,11 +1738,12 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescriptor descriptor) @@ -1185,11 +1754,12 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescripto /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok() @@ -1201,11 +1771,12 @@ public virtual ProcessorGrokResponse ProcessorGrok() /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(Action configureRequest) @@ -1218,11 +1789,12 @@ public virtual ProcessorGrokResponse ProcessorGrok(Action /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1232,11 +1804,12 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -1247,11 +1820,12 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// /// - /// Extracts structured fields out of a single text field within a document. - /// You choose which field to extract matched fields from, as well as the grok pattern you expect will match. + /// Run a grok processor. + /// Extract structured fields out of a single text field within a document. + /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1263,7 +1837,8 @@ public virtual Task ProcessorGrokAsync(Action /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1276,7 +1851,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1288,7 +1864,8 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1301,7 +1878,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1315,7 +1893,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1330,7 +1909,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1343,7 +1923,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1357,7 +1938,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elastic /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1372,7 +1954,8 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elastic /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1384,7 +1967,8 @@ public virtual Task PutGeoipDatabaseAsync(P /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1397,7 +1981,8 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1411,7 +1996,8 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1423,7 +2009,8 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1436,7 +2023,8 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// - /// Returns information about one or more geoip database configurations. + /// Create or update a GeoIP database configuration. + /// Refer to the create or update IP geolocation database configuration API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1450,10 +2038,197 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// - /// Creates or updates an ingest pipeline. + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocationDatabaseRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocationDatabaseRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + descriptor.BeforeRequest(); + return DoRequest, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocationDatabaseRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + descriptor.BeforeRequest(); + return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update an IP geolocation database configuration. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) @@ -1464,10 +2239,10 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -1477,10 +2252,10 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) @@ -1491,10 +2266,10 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDesc /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) @@ -1506,10 +2281,10 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -1522,10 +2297,10 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) @@ -1536,10 +2311,10 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor desc /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) @@ -1551,10 +2326,10 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -1567,10 +2342,10 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1580,10 +2355,10 @@ public virtual Task PutPipelineAsync(PutPipeline /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1594,10 +2369,10 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1609,10 +2384,10 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1622,10 +2397,10 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1636,10 +2411,10 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// - /// Creates or updates an ingest pipeline. + /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1651,7 +2426,9 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1664,7 +2441,9 @@ public virtual SimulateResponse Simulate(SimulateRequest request) /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1676,7 +2455,9 @@ public virtual Task SimulateAsync(SimulateRequest request, Can /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1689,7 +2470,9 @@ public virtual SimulateResponse Simulate(SimulateRequestDescriptor /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1703,7 +2486,9 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearc /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1718,7 +2503,9 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearc /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1732,7 +2519,9 @@ public virtual SimulateResponse Simulate() /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1747,7 +2536,9 @@ public virtual SimulateResponse Simulate(Action /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1760,7 +2551,9 @@ public virtual SimulateResponse Simulate(SimulateRequestDescriptor descriptor) /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1774,7 +2567,9 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id) /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1789,7 +2584,9 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id, A /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1803,7 +2600,9 @@ public virtual SimulateResponse Simulate() /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1818,7 +2617,9 @@ public virtual SimulateResponse Simulate(Action confi /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1830,7 +2631,9 @@ public virtual Task SimulateAsync(SimulateRequestDe /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1843,7 +2646,9 @@ public virtual Task SimulateAsync(Elastic.Clients.E /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1857,7 +2662,9 @@ public virtual Task SimulateAsync(Elastic.Clients.E /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1870,7 +2677,9 @@ public virtual Task SimulateAsync(CancellationToken /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1884,7 +2693,9 @@ public virtual Task SimulateAsync(Action /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1896,7 +2707,9 @@ public virtual Task SimulateAsync(SimulateRequestDescriptor de /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1909,7 +2722,9 @@ public virtual Task SimulateAsync(Elastic.Clients.Elasticsearc /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1923,7 +2738,9 @@ public virtual Task SimulateAsync(Elastic.Clients.Elasticsearc /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1936,7 +2753,9 @@ public virtual Task SimulateAsync(CancellationToken cancellati /// /// - /// Executes an ingest pipeline against a set of provided documents. + /// Simulate a pipeline. + /// Run an ingest pipeline against a set of provided documents. + /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs index d1a8a6d4843..af43b48f478 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs @@ -41,7 +41,11 @@ internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(cl /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +58,11 @@ public virtual DeleteLicenseResponse Delete(DeleteLicenseRequest request) /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +74,11 @@ public virtual Task DeleteAsync(DeleteLicenseRequest requ /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +91,11 @@ public virtual DeleteLicenseResponse Delete(DeleteLicenseRequestDescriptor descr /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +109,11 @@ public virtual DeleteLicenseResponse Delete() /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +128,11 @@ public virtual DeleteLicenseResponse Delete(Action /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +144,11 @@ public virtual Task DeleteAsync(DeleteLicenseRequestDescr /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +161,11 @@ public virtual Task DeleteAsync(CancellationToken cancell /// /// - /// Deletes licensing information for the cluster + /// Delete the license. + /// When the license expires, your subscription level reverts to Basic. + /// + /// + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -148,8 +180,11 @@ public virtual Task DeleteAsync(Action /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -163,8 +198,11 @@ public virtual GetLicenseResponse Get(GetLicenseRequest request) /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -177,8 +215,11 @@ public virtual Task GetAsync(GetLicenseRequest request, Canc /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -192,8 +233,11 @@ public virtual GetLicenseResponse Get(GetLicenseRequestDescriptor descriptor) /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -208,8 +252,11 @@ public virtual GetLicenseResponse Get() /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -225,8 +272,11 @@ public virtual GetLicenseResponse Get(Action config /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -239,8 +289,11 @@ public virtual Task GetAsync(GetLicenseRequestDescriptor des /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -254,8 +307,11 @@ public virtual Task GetAsync(CancellationToken cancellationT /// /// /// 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. + /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. + /// + /// + /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -269,7 +325,7 @@ public virtual Task GetAsync(Action /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -282,7 +338,7 @@ public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequest reque /// /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -294,7 +350,7 @@ public virtual Task GetBasicStatusAsync(GetBasicStatusRe /// /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -307,7 +363,7 @@ public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequestDescri /// /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -321,7 +377,7 @@ public virtual GetBasicStatusResponse GetBasicStatus() /// /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -336,7 +392,7 @@ public virtual GetBasicStatusResponse GetBasicStatus(Action /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -348,7 +404,7 @@ public virtual Task GetBasicStatusAsync(GetBasicStatusRe /// /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -361,7 +417,7 @@ public virtual Task GetBasicStatusAsync(CancellationToke /// /// - /// Retrieves information about the status of the basic license. + /// Get the basic license status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -375,7 +431,7 @@ public virtual Task GetBasicStatusAsync(Action /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -388,7 +444,7 @@ public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequest reque /// /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -400,7 +456,7 @@ public virtual Task GetTrialStatusAsync(GetTrialStatusRe /// /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -413,7 +469,7 @@ public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequestDescri /// /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -427,7 +483,7 @@ public virtual GetTrialStatusResponse GetTrialStatus() /// /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -442,7 +498,7 @@ public virtual GetTrialStatusResponse GetTrialStatus(Action /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -454,7 +510,7 @@ public virtual Task GetTrialStatusAsync(GetTrialStatusRe /// /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -467,7 +523,7 @@ public virtual Task GetTrialStatusAsync(CancellationToke /// /// - /// Retrieves information about the status of the trial license. + /// Get the trial status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -481,7 +537,15 @@ public virtual Task GetTrialStatusAsync(Action /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -494,7 +558,15 @@ public virtual PostResponse Post(PostRequest request) /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -506,7 +578,15 @@ public virtual Task PostAsync(PostRequest request, CancellationTok /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -519,7 +599,15 @@ public virtual PostResponse Post(PostRequestDescriptor descriptor) /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -533,7 +621,15 @@ public virtual PostResponse Post() /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -548,7 +644,15 @@ public virtual PostResponse Post(Action configureRequest) /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -560,7 +664,15 @@ public virtual Task PostAsync(PostRequestDescriptor descriptor, Ca /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -573,7 +685,15 @@ public virtual Task PostAsync(CancellationToken cancellationToken /// /// - /// Updates the license for the cluster. + /// Update the license. + /// You can update your license at runtime without shutting down your nodes. + /// License updates take effect immediately. + /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. + /// If the operator privileges feature is enabled, only operator users can use this API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -587,8 +707,18 @@ public virtual Task PostAsync(Action config /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -601,8 +731,18 @@ public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequest reque /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -614,8 +754,18 @@ public virtual Task PostStartBasicAsync(PostStartBasicRe /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -628,8 +778,18 @@ public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequestDescri /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -643,8 +803,18 @@ public virtual PostStartBasicResponse PostStartBasic() /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -659,8 +829,18 @@ public virtual PostStartBasicResponse PostStartBasic(Action /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -672,8 +852,18 @@ public virtual Task PostStartBasicAsync(PostStartBasicRe /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -686,8 +876,18 @@ public virtual Task PostStartBasicAsync(CancellationToke /// /// - /// The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true. - /// To check the status of your basic license, use the following API: Get basic status. + /// Start a basic license. + /// Start an indefinite basic license, which gives access to all the basic features. + /// + /// + /// NOTE: In order to start a basic license, you must not currently have a basic license. + /// + /// + /// If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. + /// You must then re-submit the API request with the acknowledge parameter set to true. + /// + /// + /// To check the status of your basic license, use the get basic license API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -701,7 +901,15 @@ public virtual Task PostStartBasicAsync(Action /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -714,7 +922,15 @@ public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequest reque /// /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -726,7 +942,15 @@ public virtual Task PostStartTrialAsync(PostStartTrialRe /// /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -739,7 +963,15 @@ public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequestDescri /// /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -753,7 +985,15 @@ public virtual PostStartTrialResponse PostStartTrial() /// /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -768,7 +1008,15 @@ public virtual PostStartTrialResponse PostStartTrial(Action /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -780,7 +1028,15 @@ public virtual Task PostStartTrialAsync(PostStartTrialRe /// /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -793,7 +1049,15 @@ public virtual Task PostStartTrialAsync(CancellationToke /// /// - /// The start trial API enables you to start a 30-day trial, which gives access to all subscription features. + /// Start a trial. + /// Start a 30-day trial, which gives access to all subscription features. + /// + /// + /// NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. + /// For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension. + /// + /// + /// To check the status of your trial, use the get trial status API. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index 89c08ca6530..abdd42fa477 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -185,7 +185,7 @@ public virtual Task ClearTrainedModelD /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequest request) @@ -202,7 +202,7 @@ public virtual CloseJobResponse CloseJob(CloseJobRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequest request, CancellationToken cancellationToken = default) { @@ -218,7 +218,7 @@ public virtual Task CloseJobAsync(CloseJobRequest request, Can /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequestDescriptor descriptor) @@ -235,7 +235,7 @@ public virtual CloseJobResponse CloseJob(CloseJobRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -253,7 +253,7 @@ public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -272,7 +272,7 @@ public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -288,7 +288,7 @@ public virtual Task CloseJobAsync(CloseJobRequestDescriptor de /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -305,7 +305,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -320,7 +320,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest request) @@ -334,7 +334,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest reque /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequest request, CancellationToken cancellationToken = default) { @@ -347,7 +347,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequestDescriptor descriptor) @@ -361,7 +361,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequestDescri /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendarId) @@ -376,7 +376,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsear /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest) @@ -392,7 +392,7 @@ public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsear /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -405,7 +405,7 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, CancellationToken cancellationToken = default) { @@ -419,7 +419,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// Delete a calendar. /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -433,7 +433,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequest request) @@ -446,7 +446,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEve /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequest request, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequestDescriptor descriptor) @@ -471,7 +471,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEve /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId) @@ -485,7 +485,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.E /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, Action configureRequest) @@ -500,7 +500,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.E /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -512,7 +512,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, CancellationToken cancellationToken = default) { @@ -525,7 +525,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -539,7 +539,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequest request) @@ -552,7 +552,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequ /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequest request, CancellationToken cancellationToken = default) { @@ -564,7 +564,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequestDescriptor descriptor) @@ -577,7 +577,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequ /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId) @@ -591,7 +591,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elast /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest) @@ -606,7 +606,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elast /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -618,7 +618,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, CancellationToken cancellationToken = default) { @@ -631,7 +631,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -645,7 +645,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest request) @@ -658,7 +658,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest reque /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -670,7 +670,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequestDescriptor descriptor) @@ -683,7 +683,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequestDescri /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -697,7 +697,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsear /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -712,7 +712,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsear /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -724,7 +724,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -737,7 +737,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -751,7 +751,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) @@ -764,7 +764,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteD /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -776,7 +776,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) @@ -789,7 +789,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -803,7 +803,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -818,7 +818,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) @@ -831,7 +831,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteD /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -845,7 +845,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -860,7 +860,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -872,7 +872,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -885,7 +885,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -899,7 +899,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -911,7 +911,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -924,7 +924,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7866,8 +7866,8 @@ public virtual Task InferTrainedModelAsync(Elastic.Cl /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -7886,8 +7886,8 @@ public virtual MlInfoResponse Info(MlInfoRequest request) /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -7905,8 +7905,8 @@ public virtual Task InfoAsync(MlInfoRequest request, Cancellatio /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -7925,8 +7925,8 @@ public virtual MlInfoResponse Info(MlInfoRequestDescriptor descriptor) /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -7946,8 +7946,8 @@ public virtual MlInfoResponse Info() /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -7968,8 +7968,8 @@ public virtual MlInfoResponse Info(Action configureRequ /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -7987,8 +7987,8 @@ public virtual Task InfoAsync(MlInfoRequestDescriptor descriptor /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -8007,8 +8007,8 @@ public virtual Task InfoAsync(CancellationToken cancellationToke /// /// - /// Return ML defaults and limits. - /// Returns defaults and limits used by machine learning. + /// Get machine learning information. + /// Get defaults and limits used by machine learning. /// This endpoint is designed to be used by a user interface that needs to fully /// understand machine learning configurations where some options are not /// specified, meaning that the defaults should be used. This endpoint may be @@ -9138,7 +9138,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequest request) @@ -9153,7 +9153,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -9167,7 +9167,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequestDescriptor descriptor) @@ -9182,7 +9182,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -9198,7 +9198,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -9215,7 +9215,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequestDescriptor descriptor) @@ -9230,7 +9230,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -9246,7 +9246,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -9263,7 +9263,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9277,7 +9277,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9292,7 +9292,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9308,7 +9308,7 @@ public virtual Task PutDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9322,7 +9322,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9337,7 +9337,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9510,37 +9510,6 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor, PutJobResponse, PutJobRequestParameters>(descriptor); } - /// - /// - /// 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. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId) - { - var descriptor = new PutJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequest, PutJobResponse, PutJobRequestParameters>(descriptor); - } - - /// - /// - /// 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. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest) - { - var descriptor = new PutJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, PutJobResponse, PutJobRequestParameters>(descriptor); - } - /// /// /// Create an anomaly detection job. @@ -9555,37 +9524,6 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) return DoRequest(descriptor); } - /// - /// - /// 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. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId) - { - var descriptor = new PutJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// - /// 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. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) - { - var descriptor = new PutJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - /// /// /// Create an anomaly detection job. @@ -9599,35 +9537,6 @@ public virtual Task PutJobAsync(PutJobRequestDescript return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); } - /// - /// - /// 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.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new PutJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); - } - /// /// /// Create an anomaly detection job. @@ -9641,35 +9550,6 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript return DoRequestAsync(descriptor, cancellationToken); } - /// - /// - /// 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.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new PutJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - /// /// /// Create a trained model. @@ -13299,7 +13179,7 @@ public virtual Task ValidateAsync(Action /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13312,7 +13192,7 @@ public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13324,7 +13204,7 @@ public virtual Task ValidateDetectorAsync(ValidateDete /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13337,7 +13217,7 @@ public virtual ValidateDetectorResponse ValidateDetector(ValidateDete /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13351,7 +13231,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clie /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13366,7 +13246,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clie /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13379,7 +13259,7 @@ public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13393,7 +13273,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elastic /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13408,7 +13288,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elastic /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13420,7 +13300,7 @@ public virtual Task ValidateDetectorAsync(V /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13433,7 +13313,7 @@ public virtual Task ValidateDetectorAsync(E /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13447,7 +13327,7 @@ public virtual Task ValidateDetectorAsync(E /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13459,7 +13339,7 @@ public virtual Task ValidateDetectorAsync(ValidateDete /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13472,7 +13352,7 @@ public virtual Task ValidateDetectorAsync(Elastic.Clie /// /// - /// Validates an anomaly detection detector. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs index 039187be17a..72850e0b230 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -41,7 +41,8 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task ClearRepositoriesM /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +126,8 @@ public virtual Task ClearRepositoriesM /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +140,8 @@ public virtual Task ClearRepositoriesM /// /// - /// You can use this API to clear the archived repositories metering information in the cluster. + /// Clear the archived repositories metering. + /// Clear the archived repositories metering information in the cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,10 +155,10 @@ public virtual Task ClearRepositoriesM /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -163,10 +171,10 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(G /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -178,10 +186,10 @@ public virtual Task GetRepositoriesMetering /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -194,10 +202,10 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(G /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -211,10 +219,10 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(E /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -229,10 +237,10 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(E /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -244,10 +252,10 @@ public virtual Task GetRepositoriesMetering /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -260,10 +268,10 @@ public virtual Task GetRepositoriesMetering /// /// - /// You can use the cluster repositories metering API to retrieve repositories metering information in a cluster. - /// This API exposes monotonically non-decreasing counters and it’s expected that clients would durably store the - /// information needed to compute aggregations over a period of time. Additionally, the information exposed by this - /// API is volatile, meaning that it won’t be present after node restarts. + /// Get cluster repositories metering. + /// Get repositories metering information for a cluster. + /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. + /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -277,10 +285,11 @@ public virtual Task GetRepositoriesMetering /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) @@ -291,10 +300,11 @@ public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequest request, CancellationToken cancellationToken = default) { @@ -304,10 +314,11 @@ public virtual Task HotThreadsAsync(HotThreadsRequest reques /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequestDescriptor descriptor) @@ -318,10 +329,11 @@ public virtual HotThreadsResponse HotThreads(HotThreadsRequestDescriptor descrip /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -333,10 +345,11 @@ public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeI /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -349,10 +362,11 @@ public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeI /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads() @@ -364,10 +378,11 @@ public virtual HotThreadsResponse HotThreads() /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Action configureRequest) @@ -380,10 +395,11 @@ public virtual HotThreadsResponse HotThreads(Action /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -393,10 +409,11 @@ public virtual Task HotThreadsAsync(HotThreadsRequestDescrip /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -407,10 +424,11 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -422,10 +440,11 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(CancellationToken cancellationToken = default) { @@ -436,10 +455,11 @@ public virtual Task HotThreadsAsync(CancellationToken cancel /// /// - /// This API yields a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of each node’s top hot threads. + /// Get the hot threads for nodes. + /// Get a breakdown of the hot threads on each selected node in the cluster. + /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -451,9 +471,10 @@ public virtual Task HotThreadsAsync(Action /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequest request) @@ -464,9 +485,10 @@ public virtual NodesInfoResponse Info(NodesInfoRequest request) /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) { @@ -476,9 +498,10 @@ public virtual Task InfoAsync(NodesInfoRequest request, Cance /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequestDescriptor descriptor) @@ -489,9 +512,10 @@ public virtual NodesInfoResponse Info(NodesInfoRequestDescriptor descriptor) /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -503,9 +527,10 @@ public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nod /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -518,9 +543,10 @@ public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nod /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info() @@ -532,9 +558,10 @@ public virtual NodesInfoResponse Info() /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Action configureRequest) @@ -547,9 +574,10 @@ public virtual NodesInfoResponse Info(Action configu /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -559,9 +587,10 @@ public virtual Task InfoAsync(NodesInfoRequestDescriptor desc /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -572,9 +601,10 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.N /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -586,9 +616,10 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.N /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -599,9 +630,10 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// - /// Returns cluster nodes information. + /// Get node information. + /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -613,7 +645,17 @@ public virtual Task InfoAsync(Action /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -626,7 +668,17 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSet /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -638,7 +690,17 @@ public virtual Task ReloadSecureSettingsAsync(Relo /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -651,7 +713,17 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSet /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -665,7 +737,17 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Elastic.Clients /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -680,7 +762,17 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Elastic.Clients /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -694,7 +786,17 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings() /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -709,7 +811,17 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Action /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -721,7 +833,17 @@ public virtual Task ReloadSecureSettingsAsync(Relo /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -734,7 +856,17 @@ public virtual Task ReloadSecureSettingsAsync(Elas /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -748,7 +880,17 @@ public virtual Task ReloadSecureSettingsAsync(Elas /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -761,7 +903,17 @@ public virtual Task ReloadSecureSettingsAsync(Canc /// /// - /// Reloads the keystore on nodes in the cluster. + /// Reload the keystore on nodes in the cluster. + /// + /// + /// Secure settings are stored in an on-disk keystore. Certain of these settings are reloadable. + /// That is, you can change them on disk and reload them without restarting any nodes in the cluster. + /// When you have updated reloadable secure settings in your keystore, you can use this API to reload those settings on each node. + /// + /// + /// When the Elasticsearch keystore is password protected and not simply obfuscated, you must provide the password for the keystore when you reload the secure settings. + /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. + /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -775,9 +927,11 @@ public virtual Task ReloadSecureSettingsAsync(Acti /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequest request) @@ -788,9 +942,11 @@ public virtual NodesStatsResponse Stats(NodesStatsRequest request) /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) { @@ -800,9 +956,11 @@ public virtual Task StatsAsync(NodesStatsRequest request, Ca /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) @@ -813,9 +971,11 @@ public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) @@ -827,9 +987,11 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action> configureRequest) @@ -842,9 +1004,11 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats() @@ -856,9 +1020,11 @@ public virtual NodesStatsResponse Stats() /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Action> configureRequest) @@ -871,9 +1037,11 @@ public virtual NodesStatsResponse Stats(Action /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) @@ -884,9 +1052,11 @@ public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) @@ -898,9 +1068,11 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? n /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action configureRequest) @@ -913,9 +1085,11 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? n /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats() @@ -927,9 +1101,11 @@ public virtual NodesStatsResponse Stats() /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Action configureRequest) @@ -942,9 +1118,11 @@ public virtual NodesStatsResponse Stats(Action conf /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -954,9 +1132,11 @@ public virtual Task StatsAsync(NodesStatsRequestD /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -967,9 +1147,11 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -981,9 +1163,11 @@ public virtual Task StatsAsync(Elastic.Clients.El /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -994,9 +1178,11 @@ public virtual Task StatsAsync(CancellationToken /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1008,9 +1194,11 @@ public virtual Task StatsAsync(Action /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1020,9 +1208,11 @@ public virtual Task StatsAsync(NodesStatsRequestDescriptor d /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -1033,9 +1223,11 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1047,9 +1239,11 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -1060,9 +1254,11 @@ public virtual Task StatsAsync(CancellationToken cancellatio /// /// - /// Returns cluster nodes statistics. + /// Get node statistics. + /// Get statistics for nodes in a cluster. + /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1074,9 +1270,9 @@ public virtual Task StatsAsync(Action /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequest request) @@ -1087,9 +1283,9 @@ public virtual NodesUsageResponse Usage(NodesUsageRequest request) /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) { @@ -1099,9 +1295,9 @@ public virtual Task UsageAsync(NodesUsageRequest request, Ca /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequestDescriptor descriptor) @@ -1112,9 +1308,9 @@ public virtual NodesUsageResponse Usage(NodesUsageRequestDescriptor descriptor) /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -1126,9 +1322,9 @@ public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? n /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -1141,9 +1337,9 @@ public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? n /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage() @@ -1155,9 +1351,9 @@ public virtual NodesUsageResponse Usage() /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Action configureRequest) @@ -1170,9 +1366,9 @@ public virtual NodesUsageResponse Usage(Action conf /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1182,9 +1378,9 @@ public virtual Task UsageAsync(NodesUsageRequestDescriptor d /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -1195,9 +1391,9 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1209,9 +1405,9 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -1222,9 +1418,9 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// - /// Returns information on the usage of features. + /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs index bcd2320107b..ea4ba5f77b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs @@ -41,7 +41,8 @@ internal QueryRulesNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request) /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequest reques /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequestDescriptor descrip /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id ru /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id ru /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +126,8 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequestDescrip /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +140,8 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// /// - /// Deletes a query rule within a query ruleset. + /// Delete a query rule. + /// Delete a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,7 +155,7 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +168,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequest request) /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +180,7 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +193,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequestDescripto /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +207,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +222,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -226,7 +234,7 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -239,7 +247,7 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// /// - /// Deletes a query ruleset. + /// Delete a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +261,8 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +275,8 @@ public virtual GetRuleResponse GetRule(GetRuleRequest request) /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -278,7 +288,8 @@ public virtual Task GetRuleAsync(GetRuleRequest request, Cancel /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -291,7 +302,8 @@ public virtual GetRuleResponse GetRule(GetRuleRequestDescriptor descriptor) /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -305,7 +317,8 @@ public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetI /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +333,8 @@ public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetI /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -332,7 +346,8 @@ public virtual Task GetRuleAsync(GetRuleRequestDescriptor descr /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -345,7 +360,8 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns the details about a query rule within a query ruleset + /// Get a query rule. + /// Get details about a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +375,8 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -372,7 +389,8 @@ public virtual GetRulesetResponse GetRuleset(GetRulesetRequest request) /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -384,7 +402,8 @@ public virtual Task GetRulesetAsync(GetRulesetRequest reques /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -397,7 +416,8 @@ public virtual GetRulesetResponse GetRuleset(GetRulesetRequestDescriptor descrip /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -411,7 +431,8 @@ public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id ru /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -426,7 +447,8 @@ public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id ru /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -438,7 +460,8 @@ public virtual Task GetRulesetAsync(GetRulesetRequestDescrip /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -451,7 +474,8 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// /// - /// Returns the details about a query ruleset + /// Get a query ruleset. + /// Get details about a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -465,7 +489,8 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -478,7 +503,8 @@ public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequest request) /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -490,7 +516,8 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequest /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -503,7 +530,8 @@ public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequestDescriptor d /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -517,7 +545,8 @@ public virtual ListRulesetsResponse ListRulesets() /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -532,7 +561,8 @@ public virtual ListRulesetsResponse ListRulesets(Action /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -544,7 +574,8 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequestD /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -557,7 +588,8 @@ public virtual Task ListRulesetsAsync(CancellationToken ca /// /// - /// Returns summarized information about existing query rulesets. + /// Get all query rulesets. + /// Get summarized information about the query rulesets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -571,7 +603,8 @@ public virtual Task ListRulesetsAsync(Action /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -584,7 +617,8 @@ public virtual PutRuleResponse PutRule(PutRuleRequest request) /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -596,7 +630,8 @@ public virtual Task PutRuleAsync(PutRuleRequest request, Cancel /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -609,7 +644,8 @@ public virtual PutRuleResponse PutRule(PutRuleRequestDescriptor descriptor) /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -623,7 +659,8 @@ public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetI /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -638,7 +675,8 @@ public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetI /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -650,7 +688,8 @@ public virtual Task PutRuleAsync(PutRuleRequestDescriptor descr /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -663,7 +702,8 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Creates or updates a query rule within a query ruleset. + /// Create or update a query rule. + /// Create or update a query rule within a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -677,7 +717,7 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -690,7 +730,7 @@ public virtual PutRulesetResponse PutRuleset(PutRulesetRequest request) /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -702,7 +742,7 @@ public virtual Task PutRulesetAsync(PutRulesetRequest reques /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -715,7 +755,7 @@ public virtual PutRulesetResponse PutRuleset(PutRulesetRequestDescriptor descrip /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -729,7 +769,7 @@ public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id ru /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -744,7 +784,7 @@ public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id ru /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -756,7 +796,7 @@ public virtual Task PutRulesetAsync(PutRulesetRequestDescrip /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -769,7 +809,7 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a query ruleset. + /// Create or update a query ruleset. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -783,7 +823,8 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -796,7 +837,8 @@ public virtual TestResponse Test(TestRequest request) /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -808,7 +850,8 @@ public virtual Task TestAsync(TestRequest request, CancellationTok /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -821,7 +864,8 @@ public virtual TestResponse Test(TestRequestDescriptor descriptor) /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -835,7 +879,8 @@ public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId) /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -850,7 +895,8 @@ public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId, Act /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -862,7 +908,8 @@ public virtual Task TestAsync(TestRequestDescriptor descriptor, Ca /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -875,7 +922,8 @@ public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rul /// /// - /// Creates or updates a query ruleset. + /// Test a query ruleset. + /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs index eb80088fdb7..c697cc783bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs @@ -41,8 +41,32 @@ internal RollupNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes an existing rollup job. - /// + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -54,8 +78,32 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken = default) @@ -66,8 +114,32 @@ public virtual Task DeleteJobAsync(DeleteJobRequest request, /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -79,8 +151,32 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -93,8 +189,32 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -108,8 +228,32 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -121,8 +265,32 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -135,8 +303,32 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -150,8 +342,32 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -162,8 +378,32 @@ public virtual Task DeleteJobAsync(DeleteJobReques /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) @@ -175,8 +415,32 @@ public virtual Task DeleteJobAsync(Elastic.Clients /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -189,8 +453,32 @@ public virtual Task DeleteJobAsync(Elastic.Clients /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -201,8 +489,32 @@ public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: + /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) @@ -214,8 +526,32 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// /// - /// Deletes an existing rollup job. + /// Delete a rollup job. + /// + /// + /// A job must be stopped before it can be deleted. + /// If you attempt to delete a started job, an error occurs. + /// Similarly, if you attempt to delete a nonexistent job, an exception occurs. + /// + /// + /// IMPORTANT: When you delete a job, you remove only the process that is actively monitoring and rolling up data. + /// The API does not delete any previously rolled up data. + /// This is by design; a user may wish to roll up a static data set. + /// Because the data set is static, after it has been fully rolled up there is no need to keep the indexing rollup job around (as there will be no new data). + /// Thus the job can be deleted, leaving behind the rolled up data for analysis. + /// If you wish to also remove the rollup data and the rollup index contains the data for only a single job, you can delete the whole rollup index. + /// If the rollup index stores data from several jobs, you must issue a delete-by-query that targets the rollup job's identifier in the rollup index. For example: /// + /// + /// POST my_rollup_index/_delete_by_query + /// { + /// "query": { + /// "term": { + /// "_rollup.id": "the_rollup_job_id" + /// } + /// } + /// } + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) @@ -228,7 +564,13 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -241,7 +583,13 @@ public virtual GetJobsResponse GetJobs(GetJobsRequest request) /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +601,13 @@ public virtual Task GetJobsAsync(GetJobsRequest request, Cancel /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +620,13 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -280,7 +640,13 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -295,7 +661,13 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -309,7 +681,13 @@ public virtual GetJobsResponse GetJobs() /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -324,7 +702,13 @@ public virtual GetJobsResponse GetJobs(Action /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -337,7 +721,13 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -351,7 +741,13 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -366,7 +762,13 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Act /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -380,7 +782,13 @@ public virtual GetJobsResponse GetJobs() /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -395,7 +803,13 @@ public virtual GetJobsResponse GetJobs(Action configur /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -407,7 +821,13 @@ public virtual Task GetJobsAsync(GetJobsRequestDescr /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -420,7 +840,13 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -434,7 +860,13 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -447,7 +879,13 @@ public virtual Task GetJobsAsync(CancellationToken c /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -461,7 +899,13 @@ public virtual Task GetJobsAsync(Action /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -473,7 +917,13 @@ public virtual Task GetJobsAsync(GetJobsRequestDescriptor descr /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -486,7 +936,13 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -500,7 +956,13 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -513,7 +975,13 @@ public virtual Task GetJobsAsync(CancellationToken cancellation /// /// - /// Retrieves the configuration, stats, and status of rollup jobs. + /// Get rollup job information. + /// Get the configuration, stats, and status of rollup jobs. + /// + /// + /// NOTE: This API returns only active (both STARTED and STOPPED) jobs. + /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. + /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -527,8 +995,26 @@ public virtual Task GetJobsAsync(Action /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -540,8 +1026,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequest request) /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequest request, CancellationToken cancellationToken = default) @@ -552,8 +1056,26 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -565,8 +1087,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsReque /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -579,8 +1119,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -594,8 +1152,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -608,8 +1184,26 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -623,8 +1217,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(Action /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -636,8 +1248,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescripto /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -650,8 +1280,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -665,8 +1313,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -679,8 +1345,26 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -694,8 +1378,26 @@ public virtual GetRollupCapsResponse GetRollupCaps(Action /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -706,8 +1408,26 @@ public virtual Task GetRollupCapsAsync(GetRoll /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) @@ -719,8 +1439,26 @@ public virtual Task GetRollupCapsAsync(Elastic /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) @@ -733,8 +1471,26 @@ public virtual Task GetRollupCapsAsync(Elastic /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) @@ -746,8 +1502,26 @@ public virtual Task GetRollupCapsAsync(Cancell /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -760,8 +1534,26 @@ public virtual Task GetRollupCapsAsync(Action< /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -772,8 +1564,26 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) @@ -785,8 +1595,26 @@ public virtual Task GetRollupCapsAsync(Elastic.Clients.El /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? + /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) @@ -799,8 +1627,26 @@ public virtual Task GetRollupCapsAsync(Elastic.Clients.El /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) @@ -812,8 +1658,26 @@ public virtual Task GetRollupCapsAsync(CancellationToken /// /// - /// Returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// Get the rollup job capabilities. + /// Get the capabilities of any rollup jobs that have been configured for a specific index or index pattern. + /// + /// + /// This API is useful because a rollup job is often configured to rollup only a subset of fields from the source index. + /// Furthermore, only certain aggregations can be configured for various fields, leading to a limited subset of functionality depending on that configuration. + /// This API enables you to inspect an index and determine: + /// + /// + /// + /// + /// Does this index have associated rollup data somewhere in the cluster? /// + /// + /// + /// + /// If yes to the first question, what fields were rolled up, what aggregations can be performed, and where does the data live? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -826,8 +1690,22 @@ public virtual Task GetRollupCapsAsync(Action /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -839,8 +1717,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsR /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequest request, CancellationToken cancellationToken = default) @@ -851,8 +1743,22 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -864,8 +1770,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollu /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -878,8 +1798,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -893,8 +1827,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -906,8 +1854,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsR /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -920,8 +1882,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -935,8 +1911,22 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -947,8 +1937,22 @@ public virtual Task GetRollupIndexCapsAsync /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) @@ -960,8 +1964,22 @@ public virtual Task GetRollupIndexCapsAsync /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -974,8 +1992,22 @@ public virtual Task GetRollupIndexCapsAsync /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -986,8 +2018,22 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? + /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) @@ -999,8 +2045,22 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// /// - /// Returns the rollup capabilities of all jobs inside of a rollup index (for example, the index where rollup data is stored). + /// Get the rollup index capabilities. + /// Get the rollup capabilities of all jobs inside of a rollup index. + /// A single rollup index may store the data for multiple rollup jobs and may have a variety of capabilities depending on those jobs. This API enables you to determine: + /// + /// + /// + /// + /// What jobs are stored in an index (or indices specified via a pattern)? /// + /// + /// + /// + /// What target indices were rolled up, what fields were used in those rollups, and what aggregations can be performed on each job? + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest, CancellationToken cancellationToken = default) @@ -1013,7 +2073,19 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1026,7 +2098,19 @@ public virtual PutJobResponse PutJob(PutJobRequest request) /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1038,7 +2122,19 @@ public virtual Task PutJobAsync(PutJobRequest request, Cancellat /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1051,7 +2147,19 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1065,7 +2173,19 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1080,7 +2200,19 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1093,7 +2225,19 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1107,7 +2251,19 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1122,7 +2278,19 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1134,7 +2302,19 @@ public virtual Task PutJobAsync(PutJobRequestDescript /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1147,7 +2327,19 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1161,7 +2353,19 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1173,7 +2377,19 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1186,7 +2402,19 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// /// - /// Creates a rollup job. + /// Create a rollup job. + /// + /// + /// WARNING: From 8.15.0, calling this API in a cluster with no rollup usage will fail with a message about the deprecation and planned removal of rollup features. A cluster needs to contain either a rollup job or a rollup index in order for this API to be allowed to run. + /// + /// + /// The rollup job configuration contains all the details about how the job should run, when it indexes documents, and what future queries will be able to run against the rollup index. + /// + /// + /// There are three main sections to the job configuration: the logistical details about the job (for example, the cron schedule), the fields that are used for grouping, and what metrics to collect for each group. + /// + /// + /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1200,7 +2428,9 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1213,7 +2443,9 @@ public virtual RollupSearchResponse RollupSearch(RollupSea /// /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1225,7 +2457,9 @@ public virtual Task> RollupSearchAsync /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1238,7 +2472,9 @@ public virtual RollupSearchResponse RollupSearch(RollupSea /// /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1252,7 +2488,9 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C /// /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1267,7 +2505,9 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C /// /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1281,7 +2521,9 @@ public virtual RollupSearchResponse RollupSearch() /// /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1296,7 +2538,9 @@ public virtual RollupSearchResponse RollupSearch(Action /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1308,7 +2552,9 @@ public virtual Task> RollupSearchAsync /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1321,7 +2567,9 @@ public virtual Task> RollupSearchAsync /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1335,7 +2583,9 @@ public virtual Task> RollupSearchAsync /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1348,7 +2598,9 @@ public virtual Task> RollupSearchAsync /// - /// Enables searching rolled-up data using the standard Query DSL. + /// Search rolled-up data. + /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. + /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1362,7 +2614,9 @@ public virtual Task> RollupSearchAsync /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1375,7 +2629,9 @@ public virtual StartJobResponse StartJob(StartJobRequest request) /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1387,7 +2643,9 @@ public virtual Task StartJobAsync(StartJobRequest request, Can /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1400,7 +2658,9 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1414,7 +2674,9 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1429,7 +2691,9 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1442,7 +2706,9 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1456,7 +2722,9 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1471,7 +2739,9 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Ac /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1483,7 +2753,9 @@ public virtual Task StartJobAsync(StartJobRequestDe /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1496,7 +2768,9 @@ public virtual Task StartJobAsync(Elastic.Clients.E /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1510,7 +2784,9 @@ public virtual Task StartJobAsync(Elastic.Clients.E /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1522,7 +2798,9 @@ public virtual Task StartJobAsync(StartJobRequestDescriptor de /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1535,7 +2813,9 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// /// - /// Starts an existing, stopped rollup job. + /// Start rollup jobs. + /// If you try to start a job that does not exist, an exception occurs. + /// If you try to start a job that is already started, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1549,7 +2829,9 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1562,7 +2844,9 @@ public virtual StopJobResponse StopJob(StopJobRequest request) /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1574,7 +2858,9 @@ public virtual Task StopJobAsync(StopJobRequest request, Cancel /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1587,7 +2873,9 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1601,7 +2889,9 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1616,7 +2906,9 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1629,7 +2921,9 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1643,7 +2937,9 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1658,7 +2954,9 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Acti /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1670,7 +2968,9 @@ public virtual Task StopJobAsync(StopJobRequestDescr /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1683,7 +2983,9 @@ public virtual Task StopJobAsync(Elastic.Clients.Ela /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1697,7 +2999,9 @@ public virtual Task StopJobAsync(Elastic.Clients.Ela /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1709,7 +3013,9 @@ public virtual Task StopJobAsync(StopJobRequestDescriptor descr /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1722,7 +3028,9 @@ public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch. /// /// - /// Stops an existing, started rollup job. + /// Stop rollup jobs. + /// If you try to stop a job that does not exist, an exception occurs. + /// If you try to stop a job that is already stopped, nothing happens. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs index 945240c26f2..a95a69b5f0d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs @@ -41,7 +41,8 @@ internal SearchableSnapshotsNamespacedClient(ElasticsearchClient client) : base( /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual CacheStatsResponse CacheStats(CacheStatsRequest request) /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task CacheStatsAsync(CacheStatsRequest reques /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual CacheStatsResponse CacheStats(CacheStatsRequestDescriptor descrip /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeI /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeI /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -122,7 +128,8 @@ public virtual CacheStatsResponse CacheStats() /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -137,7 +144,8 @@ public virtual CacheStatsResponse CacheStats(Action /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -149,7 +157,8 @@ public virtual Task CacheStatsAsync(CacheStatsRequestDescrip /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -162,7 +171,8 @@ public virtual Task CacheStatsAsync(Elastic.Clients.Elastics /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -176,7 +186,8 @@ public virtual Task CacheStatsAsync(Elastic.Clients.Elastics /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -189,7 +200,8 @@ public virtual Task CacheStatsAsync(CancellationToken cancel /// /// - /// Retrieve node-level cache statistics about searchable snapshots. + /// Get cache statistics. + /// Get statistics about the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -203,7 +215,8 @@ public virtual Task CacheStatsAsync(Action /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -216,7 +229,8 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -228,7 +242,8 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -241,7 +256,8 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -255,7 +271,8 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -270,7 +287,8 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -284,7 +302,8 @@ public virtual ClearCacheResponse ClearCache() /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -299,7 +318,8 @@ public virtual ClearCacheResponse ClearCache(Action /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -312,7 +332,8 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descrip /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -326,7 +347,8 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -341,7 +363,8 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -355,7 +378,8 @@ public virtual ClearCacheResponse ClearCache() /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -370,7 +394,8 @@ public virtual ClearCacheResponse ClearCache(Action /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -382,7 +407,8 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -395,7 +421,8 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -409,7 +436,8 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -422,7 +450,8 @@ public virtual Task ClearCacheAsync(CancellationT /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -436,7 +465,8 @@ public virtual Task ClearCacheAsync(Action /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -448,7 +478,8 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -461,7 +492,8 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -475,7 +507,8 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -488,7 +521,8 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// /// - /// Clear the cache of searchable snapshots. + /// Clear the cache. + /// Clear indices and data streams from the shared cache for partially mounted indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -502,7 +536,10 @@ public virtual Task ClearCacheAsync(Action /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -515,7 +552,10 @@ public virtual MountResponse Mount(MountRequest request) /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -527,7 +567,10 @@ public virtual Task MountAsync(MountRequest request, Cancellation /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -540,7 +583,10 @@ public virtual MountResponse Mount(MountRequestDescriptor descriptor) /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -554,7 +600,10 @@ public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -569,7 +618,10 @@ public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -581,7 +633,10 @@ public virtual Task MountAsync(MountRequestDescriptor descriptor, /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -594,7 +649,10 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// /// - /// Mount a snapshot as a searchable index. + /// Mount a snapshot. + /// Mount a snapshot as a searchable snapshot index. + /// Do not use this API for snapshots managed by index lifecycle management (ILM). + /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -608,7 +666,7 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -621,7 +679,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRe /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -633,7 +691,7 @@ public virtual Task StatsAsync(SearchableSnaps /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -646,7 +704,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnaps /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -660,7 +718,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -675,7 +733,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -689,7 +747,7 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -704,7 +762,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Action /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -717,7 +775,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRe /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -731,7 +789,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsea /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -746,7 +804,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsea /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -760,7 +818,7 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -775,7 +833,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Action /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -787,7 +845,7 @@ public virtual Task StatsAsync(Sear /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -800,7 +858,7 @@ public virtual Task StatsAsync(Elas /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -814,7 +872,7 @@ public virtual Task StatsAsync(Elas /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -827,7 +885,7 @@ public virtual Task StatsAsync(Canc /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -841,7 +899,7 @@ public virtual Task StatsAsync(Acti /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -853,7 +911,7 @@ public virtual Task StatsAsync(SearchableSnaps /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -866,7 +924,7 @@ public virtual Task StatsAsync(Elastic.Clients /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -880,7 +938,7 @@ public virtual Task StatsAsync(Elastic.Clients /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -893,7 +951,7 @@ public virtual Task StatsAsync(CancellationTok /// /// - /// Retrieve shard-level statistics about searchable snapshots. + /// Get searchable snapshot statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs index 04763164837..10afe02d0cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs @@ -41,7 +41,9 @@ internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +56,9 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest re /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +70,9 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +85,9 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDes /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +101,9 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +118,9 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +132,9 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +147,9 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// - /// Deletes an existing snapshot lifecycle policy. + /// Delete a policy. + /// Delete a snapshot lifecycle policy definition. + /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,7 +163,9 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +178,9 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +192,9 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +207,9 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +223,9 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elastic /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +240,9 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elastic /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -226,7 +254,9 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -239,7 +269,9 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. + /// Run a policy. + /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. + /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +285,9 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +300,9 @@ public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -278,7 +314,9 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -291,7 +329,9 @@ public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -305,7 +345,9 @@ public virtual ExecuteRetentionResponse ExecuteRetention() /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +362,9 @@ public virtual ExecuteRetentionResponse ExecuteRetention(Action /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -332,7 +376,9 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -345,7 +391,9 @@ public virtual Task ExecuteRetentionAsync(Cancellation /// /// - /// Deletes any snapshots that are expired according to the policy's retention rules. + /// Run a retention policy. + /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. + /// The retention policy is normally applied according to its schedule. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +407,8 @@ public virtual Task ExecuteRetentionAsync(Action /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -372,7 +421,8 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -384,7 +434,8 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequest /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -397,7 +448,8 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor d /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -411,7 +463,8 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -426,7 +479,8 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -440,7 +494,8 @@ public virtual GetLifecycleResponse GetLifecycle() /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -455,7 +510,8 @@ public virtual GetLifecycleResponse GetLifecycle(Action /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -467,7 +523,8 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequestD /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -480,7 +537,8 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -494,7 +552,8 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -507,7 +566,8 @@ public virtual Task GetLifecycleAsync(CancellationToken ca /// /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. + /// Get policy information. + /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -521,7 +581,8 @@ public virtual Task GetLifecycleAsync(Action /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -534,7 +595,8 @@ public virtual GetStatsResponse GetStats(GetStatsRequest request) /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -546,7 +608,8 @@ public virtual Task GetStatsAsync(GetStatsRequest request, Can /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -559,7 +622,8 @@ public virtual GetStatsResponse GetStats(GetStatsRequestDescriptor descriptor) /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -573,7 +637,8 @@ public virtual GetStatsResponse GetStats() /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -588,7 +653,8 @@ public virtual GetStatsResponse GetStats(Action confi /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -600,7 +666,8 @@ public virtual Task GetStatsAsync(GetStatsRequestDescriptor de /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -613,7 +680,8 @@ public virtual Task GetStatsAsync(CancellationToken cancellati /// /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. + /// Get snapshot lifecycle management statistics. + /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -627,7 +695,7 @@ public virtual Task GetStatsAsync(Action /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -640,7 +708,7 @@ public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -652,7 +720,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequest req /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -665,7 +733,7 @@ public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequestDescriptor desc /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -679,7 +747,7 @@ public virtual GetSlmStatusResponse GetStatus() /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -694,7 +762,7 @@ public virtual GetSlmStatusResponse GetStatus(Action /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -706,7 +774,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequestDesc /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -719,7 +787,7 @@ public virtual Task GetStatusAsync(CancellationToken cance /// /// - /// Retrieves the status of snapshot lifecycle management (SLM). + /// Get the snapshot lifecycle management status. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -733,7 +801,10 @@ public virtual Task GetStatusAsync(Action /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -746,7 +817,10 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -758,7 +832,10 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequest /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -771,7 +848,10 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor d /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -785,7 +865,10 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -800,7 +883,10 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -812,7 +898,10 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequestD /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -825,7 +914,10 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// - /// Creates or updates a snapshot lifecycle policy. + /// Create or update a policy. + /// Create or update a snapshot lifecycle policy. + /// If the policy already exists, this request increments the policy version. + /// Only the latest version of a policy is stored. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -839,7 +931,9 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -852,7 +946,9 @@ public virtual StartSlmResponse Start(StartSlmRequest request) /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -864,7 +960,9 @@ public virtual Task StartAsync(StartSlmRequest request, Cancel /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -877,7 +975,9 @@ public virtual StartSlmResponse Start(StartSlmRequestDescriptor descriptor) /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -891,7 +991,9 @@ public virtual StartSlmResponse Start() /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -906,7 +1008,9 @@ public virtual StartSlmResponse Start(Action configur /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -918,7 +1022,9 @@ public virtual Task StartAsync(StartSlmRequestDescriptor descr /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -931,7 +1037,9 @@ public virtual Task StartAsync(CancellationToken cancellationT /// /// - /// Turns on snapshot lifecycle management (SLM). + /// Start snapshot lifecycle management. + /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. + /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -945,7 +1053,15 @@ public virtual Task StartAsync(Action /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -958,7 +1074,15 @@ public virtual StopSlmResponse Stop(StopSlmRequest request) /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -970,7 +1094,15 @@ public virtual Task StopAsync(StopSlmRequest request, Cancellat /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -983,7 +1115,15 @@ public virtual StopSlmResponse Stop(StopSlmRequestDescriptor descriptor) /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -997,7 +1137,15 @@ public virtual StopSlmResponse Stop() /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1012,7 +1160,15 @@ public virtual StopSlmResponse Stop(Action configureRe /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1024,7 +1180,15 @@ public virtual Task StopAsync(StopSlmRequestDescriptor descript /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1037,7 +1201,15 @@ public virtual Task StopAsync(CancellationToken cancellationTok /// /// - /// Turns off snapshot lifecycle management (SLM). + /// Stop snapshot lifecycle management. + /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. + /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. + /// Stopping SLM does not stop any snapshots that are in progress. + /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. + /// + /// + /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. + /// Use the get snapshot lifecycle management status API to see if SLM is running. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index 4509b309db5..ad3a2767b86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -41,7 +41,8 @@ internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +55,8 @@ public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequ /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +68,8 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +82,8 @@ public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequ /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +97,8 @@ public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elast /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +113,8 @@ public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elast /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +126,8 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +140,8 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// /// - /// Triggers the review of a snapshot repository’s contents and deletes any stale data not referenced by existing snapshots. + /// Clean up the snapshot repository. + /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,7 +155,8 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +169,8 @@ public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +182,8 @@ public virtual Task CloneAsync(CloneSnapshotRequest reque /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +196,8 @@ public virtual CloneSnapshotResponse Clone(CloneSnapshotRequestDescriptor descri /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +211,8 @@ public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name re /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +227,8 @@ public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name re /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -226,7 +240,8 @@ public virtual Task CloneAsync(CloneSnapshotRequestDescri /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -239,7 +254,8 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// /// - /// Clones indices from one snapshot into another snapshot in the same repository. + /// Clone a snapshot. + /// Clone part of all of a snapshot into another snapshot in the same repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +269,8 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +283,8 @@ public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -278,7 +296,8 @@ public virtual Task CreateAsync(CreateSnapshotRequest re /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -291,7 +310,8 @@ public virtual CreateSnapshotResponse Create(CreateSnapshotRequestDescriptor des /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -305,7 +325,8 @@ public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +341,8 @@ public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -332,7 +354,8 @@ public virtual Task CreateAsync(CreateSnapshotRequestDes /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -345,7 +368,8 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// /// - /// Creates a snapshot in a repository. + /// Create a snapshot. + /// Take a snapshot of a cluster or of data streams and indices. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +383,10 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -372,7 +399,10 @@ public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -384,7 +414,10 @@ public virtual Task CreateRepositoryAsync(CreateReposi /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -397,7 +430,10 @@ public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -411,7 +447,10 @@ public virtual CreateRepositoryResponse CreateRepository(Elastic.Clients.Elastic /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -426,7 +465,10 @@ public virtual CreateRepositoryResponse CreateRepository(Elastic.Clients.Elastic /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -438,7 +480,10 @@ public virtual Task CreateRepositoryAsync(CreateReposi /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -451,7 +496,10 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// /// - /// Creates a repository. + /// Create or update a snapshot repository. + /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. + /// To register a snapshot repository, the cluster's global metadata must be writeable. + /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -465,7 +513,7 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -478,7 +526,7 @@ public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -490,7 +538,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequest re /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -503,7 +551,7 @@ public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequestDescriptor des /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -517,7 +565,7 @@ public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -532,7 +580,7 @@ public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -544,7 +592,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequestDes /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -557,7 +605,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// /// - /// Deletes one or more snapshots. + /// Delete snapshots. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -571,7 +619,9 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -584,7 +634,9 @@ public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -596,7 +648,9 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -609,7 +663,9 @@ public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -623,7 +679,9 @@ public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elastic /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -638,7 +696,9 @@ public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elastic /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -650,7 +710,9 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -663,7 +725,9 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// /// - /// Deletes a repository. + /// Delete snapshot repositories. + /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. + /// The snapshots themselves are left untouched and in place. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -677,7 +741,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -690,7 +754,7 @@ public virtual GetSnapshotResponse Get(GetSnapshotRequest request) /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -702,7 +766,7 @@ public virtual Task GetAsync(GetSnapshotRequest request, Ca /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -715,7 +779,7 @@ public virtual GetSnapshotResponse Get(GetSnapshotRequestDescriptor descriptor) /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -729,7 +793,7 @@ public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name reposi /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -744,7 +808,7 @@ public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name reposi /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -756,7 +820,7 @@ public virtual Task GetAsync(GetSnapshotRequestDescriptor d /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -769,7 +833,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns information about a snapshot. + /// Get snapshot information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -783,7 +847,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -796,7 +860,7 @@ public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -808,7 +872,7 @@ public virtual Task GetRepositoryAsync(GetRepositoryReque /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -821,7 +885,7 @@ public virtual GetRepositoryResponse GetRepository(GetRepositoryRequestDescripto /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -835,7 +899,7 @@ public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -850,7 +914,7 @@ public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -864,7 +928,7 @@ public virtual GetRepositoryResponse GetRepository() /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -879,7 +943,7 @@ public virtual GetRepositoryResponse GetRepository(Action /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -891,7 +955,7 @@ public virtual Task GetRepositoryAsync(GetRepositoryReque /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -904,7 +968,7 @@ public virtual Task GetRepositoryAsync(Elastic.Clients.El /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -918,7 +982,7 @@ public virtual Task GetRepositoryAsync(Elastic.Clients.El /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -931,7 +995,7 @@ public virtual Task GetRepositoryAsync(CancellationToken /// /// - /// Returns information about a repository. + /// Get snapshot repository information. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -945,7 +1009,62 @@ public virtual Task GetRepositoryAsync(Action /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -958,7 +1077,62 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Repos /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -970,7 +1144,62 @@ public virtual Task RepositoryVerifyIntegrity /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -983,7 +1212,62 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Repos /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -997,7 +1281,62 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elast /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1012,7 +1351,62 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elast /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1024,7 +1418,62 @@ public virtual Task RepositoryVerifyIntegrity /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1037,7 +1486,62 @@ public virtual Task RepositoryVerifyIntegrity /// /// - /// Verifies the integrity of the contents of a snapshot repository + /// Verify the repository integrity. + /// Verify the integrity of the contents of a snapshot repository. + /// + /// + /// This API enables you to perform a comprehensive check of the contents of a repository, looking for any anomalies in its data or metadata which might prevent you from restoring snapshots from the repository or which might cause future snapshot create or delete operations to fail. + /// + /// + /// If you suspect the integrity of the contents of one of your snapshot repositories, cease all write activity to this repository immediately, set its read_only option to true, and use this API to verify its integrity. + /// Until you do so: + /// + /// + /// + /// + /// It may not be possible to restore some snapshots from this repository. + /// + /// + /// + /// + /// Searchable snapshots may report errors when searched or may have unassigned shards. + /// + /// + /// + /// + /// Taking snapshots into this repository may fail or may appear to succeed but have created a snapshot which cannot be restored. + /// + /// + /// + /// + /// Deleting snapshots from this repository may fail or may appear to succeed but leave the underlying data on disk. + /// + /// + /// + /// + /// Continuing to write to the repository while it is in an invalid state may causing additional damage to its contents. + /// + /// + /// + /// + /// If the API finds any problems with the integrity of the contents of your repository, Elasticsearch will not be able to repair the damage. + /// The only way to bring the repository back into a fully working state after its contents have been damaged is by restoring its contents from a repository backup which was taken before the damage occurred. + /// You must also identify what caused the damage and take action to prevent it from happening again. + /// + /// + /// If you cannot restore a repository backup, register a new repository and use this for all future snapshot operations. + /// In some cases it may be possible to recover some of the contents of a damaged repository, either by restoring as many of its snapshots as needed and taking new snapshots of the restored data, or by using the reindex API to copy data from any searchable snapshots mounted from the damaged repository. + /// + /// + /// Avoid all operations which write to the repository while the verify repository integrity API is running. + /// If something changes the repository contents while an integrity verification is running then Elasticsearch may incorrectly report having detected some anomalies in its contents due to the concurrent writes. + /// It may also incorrectly fail to report some anomalies that the concurrent writes prevented it from detecting. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1051,7 +1555,28 @@ public virtual Task RepositoryVerifyIntegrity /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1064,7 +1589,28 @@ public virtual RestoreResponse Restore(RestoreRequest request) /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1076,7 +1622,28 @@ public virtual Task RestoreAsync(RestoreRequest request, Cancel /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1089,7 +1656,28 @@ public virtual RestoreResponse Restore(RestoreRequestDescriptor /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1103,7 +1691,28 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch. /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1118,7 +1727,28 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch. /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1131,7 +1761,28 @@ public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1145,7 +1796,28 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name reposi /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1160,7 +1832,28 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name reposi /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1172,7 +1865,28 @@ public virtual Task RestoreAsync(RestoreRequestDescr /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1185,7 +1899,28 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1199,7 +1934,28 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1211,7 +1967,28 @@ public virtual Task RestoreAsync(RestoreRequestDescriptor descr /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1224,7 +2001,28 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// /// - /// Restores a snapshot. + /// Restore a snapshot. + /// Restore a snapshot of a cluster or data streams and indices. + /// + /// + /// You can restore a snapshot only to a running cluster with an elected master node. + /// The snapshot repository must be registered and available to the cluster. + /// The snapshot and cluster versions must be compatible. + /// + /// + /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. + /// + /// + /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: + /// + /// + /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream + /// + /// + /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. + /// + /// + /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1238,7 +2036,19 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1251,7 +2061,19 @@ public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1263,7 +2085,19 @@ public virtual Task StatusAsync(SnapshotStatusRequest re /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1276,7 +2110,19 @@ public virtual SnapshotStatusResponse Status(SnapshotStatusRequestDescriptor des /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1290,7 +2136,19 @@ public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1305,7 +2163,19 @@ public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1319,7 +2189,19 @@ public virtual SnapshotStatusResponse Status() /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1334,7 +2216,19 @@ public virtual SnapshotStatusResponse Status(Action /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1346,7 +2240,19 @@ public virtual Task StatusAsync(SnapshotStatusRequestDes /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1359,7 +2265,19 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1373,7 +2291,19 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1386,7 +2316,19 @@ public virtual Task StatusAsync(CancellationToken cancel /// /// - /// Returns information about the status of a snapshot. + /// Get the snapshot status. + /// Get a detailed description of the current state for each shard participating in the snapshot. + /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. + /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. + /// + /// + /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. + /// The API requires a read from the repository for each shard in each snapshot. + /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). + /// + /// + /// Depending on the latency of your storage, such requests can take an extremely long time to return results. + /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1400,7 +2342,8 @@ public virtual Task StatusAsync(Action /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1413,7 +2356,8 @@ public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1425,7 +2369,8 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1438,7 +2383,8 @@ public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1452,7 +2398,8 @@ public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elastic /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1467,7 +2414,8 @@ public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elastic /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1479,7 +2427,8 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1492,7 +2441,8 @@ public virtual Task VerifyRepositoryAsync(Elastic.Clie /// /// - /// Verifies a repository. + /// Verify a snapshot repository. + /// Check for common misconfigurations in a snapshot repository. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs index 8f663c7b8b0..11a328ffb04 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -41,7 +41,7 @@ internal SqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +54,7 @@ public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +66,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequest req /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +79,7 @@ public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor desc /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +93,7 @@ public virtual ClearCursorResponse ClearCursor() /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +108,7 @@ public virtual ClearCursorResponse ClearCursor(Action /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +120,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequestDesc /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +133,7 @@ public virtual Task ClearCursorAsync(CancellationToken canc /// /// - /// Clears the SQL cursor + /// Clear an SQL search cursor. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -147,7 +147,9 @@ public virtual Task ClearCursorAsync(Action /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +162,9 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +176,9 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequest req /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +191,9 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDesc /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +207,9 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +224,9 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -227,7 +239,9 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor desc /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -241,7 +255,9 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -256,7 +272,9 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -268,7 +286,9 @@ public virtual Task DeleteAsyncAsync(DeleteAsync /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -281,7 +301,9 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -295,7 +317,9 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -307,7 +331,9 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDesc /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +346,9 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Delete an async SQL search. + /// Delete an async SQL search or a stored synchronous SQL search. + /// If the search is still running, the API cancels it. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -334,7 +362,8 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +376,8 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +389,8 @@ public virtual Task GetAsyncAsync(GetAsyncRequest request, Can /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -372,7 +403,8 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -386,7 +418,8 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -401,7 +434,8 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -414,7 +448,8 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -428,7 +463,8 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -443,7 +479,8 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Ac /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -455,7 +492,8 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDe /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -468,7 +506,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -482,7 +521,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -494,7 +534,8 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor de /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -507,7 +548,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Get async SQL search results. + /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -521,7 +563,8 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -534,7 +577,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest reque /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -546,7 +590,8 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -559,7 +604,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRe /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -573,7 +619,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -588,7 +635,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -601,7 +649,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescri /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -615,7 +664,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -630,7 +680,8 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -642,7 +693,8 @@ public virtual Task GetAsyncStatusAsync(GetAs /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -655,7 +707,8 @@ public virtual Task GetAsyncStatusAsync(Elast /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -669,7 +722,8 @@ public virtual Task GetAsyncStatusAsync(Elast /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -681,7 +735,8 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -694,7 +749,8 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Get the async SQL search status. + /// Get the current status of an async SQL search or a stored synchronous SQL search. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -708,7 +764,8 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -721,7 +778,8 @@ public virtual QueryResponse Query(QueryRequest request) /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -733,7 +791,8 @@ public virtual Task QueryAsync(QueryRequest request, Cancellation /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -746,7 +805,8 @@ public virtual QueryResponse Query(QueryRequestDescriptor /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -760,7 +820,8 @@ public virtual QueryResponse Query() /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -775,7 +836,8 @@ public virtual QueryResponse Query(Action /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -788,7 +850,8 @@ public virtual QueryResponse Query(QueryRequestDescriptor descriptor) /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -802,7 +865,8 @@ public virtual QueryResponse Query() /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -817,7 +881,8 @@ public virtual QueryResponse Query(Action configureReque /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -829,7 +894,8 @@ public virtual Task QueryAsync(QueryRequestDescriptor< /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -842,7 +908,8 @@ public virtual Task QueryAsync(CancellationToken cance /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -856,7 +923,8 @@ public virtual Task QueryAsync(Action /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -868,7 +936,8 @@ public virtual Task QueryAsync(QueryRequestDescriptor descriptor, /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -881,7 +950,8 @@ public virtual Task QueryAsync(CancellationToken cancellationToke /// /// - /// Executes a SQL request + /// Get SQL search results. + /// Run an SQL request. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -895,7 +965,8 @@ public virtual Task QueryAsync(Action con /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -908,7 +979,8 @@ public virtual TranslateResponse Translate(TranslateRequest request) /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -920,7 +992,8 @@ public virtual Task TranslateAsync(TranslateRequest request, /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -933,7 +1006,8 @@ public virtual TranslateResponse Translate(TranslateRequestDescriptor /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -947,7 +1021,8 @@ public virtual TranslateResponse Translate() /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -962,7 +1037,8 @@ public virtual TranslateResponse Translate(Action /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -975,7 +1051,8 @@ public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -989,7 +1066,8 @@ public virtual TranslateResponse Translate() /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1004,7 +1082,8 @@ public virtual TranslateResponse Translate(Action co /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1016,7 +1095,8 @@ public virtual Task TranslateAsync(TranslateReques /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1029,7 +1109,8 @@ public virtual Task TranslateAsync(CancellationTok /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1043,7 +1124,8 @@ public virtual Task TranslateAsync(Action /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1055,7 +1137,8 @@ public virtual Task TranslateAsync(TranslateRequestDescriptor /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1068,7 +1151,8 @@ public virtual Task TranslateAsync(CancellationToken cancella /// /// - /// Translates SQL into Elasticsearch queries + /// Translate SQL into Elasticsearch queries. + /// Translate an SQL search into a search API request containing Query DSL. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index ffd5944ce64..8f7ca764fe7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -41,7 +41,7 @@ internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +54,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +66,7 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +79,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymReque /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +93,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +108,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -121,7 +121,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescripto /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -135,7 +135,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -150,7 +150,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -162,7 +162,7 @@ public virtual Task DeleteSynonymAsync(DeleteS /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -175,7 +175,7 @@ public virtual Task DeleteSynonymAsync(Elastic /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -189,7 +189,7 @@ public virtual Task DeleteSynonymAsync(Elastic /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -201,7 +201,7 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +214,7 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// /// - /// Deletes a synonym set + /// Delete a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -228,7 +228,8 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -241,7 +242,8 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequ /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -253,7 +255,8 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -266,7 +269,8 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequ /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -280,7 +284,8 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elast /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -295,7 +300,8 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elast /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -307,7 +313,8 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -320,7 +327,8 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// /// - /// Deletes a synonym rule in a synonym set + /// Delete a synonym rule. + /// Delete a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -334,7 +342,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -347,7 +355,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -359,7 +367,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequest reques /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -372,7 +380,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescrip /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -386,7 +394,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -401,7 +409,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -414,7 +422,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descrip /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -428,7 +436,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -443,7 +451,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -455,7 +463,7 @@ public virtual Task GetSynonymAsync(GetSynonymReq /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -468,7 +476,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -482,7 +490,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -494,7 +502,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequestDescrip /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -507,7 +515,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// /// - /// Retrieves a synonym set + /// Get a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -521,7 +529,8 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -534,7 +543,8 @@ public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest reque /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -546,7 +556,8 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -559,7 +570,8 @@ public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequestDescri /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -573,7 +585,8 @@ public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsear /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -588,7 +601,8 @@ public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsear /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -600,7 +614,8 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -613,7 +628,8 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// /// - /// Retrieves a synonym rule from a synonym set + /// Get a synonym rule. + /// Get a synonym rule from a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -627,7 +643,8 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -640,7 +657,8 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest re /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -652,7 +670,8 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -665,7 +684,8 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequestDes /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -679,7 +699,8 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets() /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -694,7 +715,8 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(Action /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -706,7 +728,8 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -719,7 +742,8 @@ public virtual Task GetSynonymsSetsAsync(CancellationTo /// /// - /// Retrieves a summary of all defined synonym sets + /// Get all synonym sets. + /// Get a summary of all defined synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -733,7 +757,9 @@ public virtual Task GetSynonymsSetsAsync(Action /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -746,7 +772,9 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -758,7 +786,9 @@ public virtual Task PutSynonymAsync(PutSynonymRequest reques /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -771,7 +801,9 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescrip /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -785,7 +817,9 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -800,7 +834,9 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -813,7 +849,9 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descrip /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -827,7 +865,9 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -842,7 +882,9 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -854,7 +896,9 @@ public virtual Task PutSynonymAsync(PutSynonymReq /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -867,7 +911,9 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -881,7 +927,9 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -893,7 +941,9 @@ public virtual Task PutSynonymAsync(PutSynonymRequestDescrip /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -906,7 +956,9 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a synonym set. + /// Create or update a synonym set. + /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. + /// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -920,7 +972,8 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -933,7 +986,8 @@ public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest reque /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -945,7 +999,8 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -958,7 +1013,8 @@ public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequestDescri /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -972,7 +1028,8 @@ public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsear /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -987,7 +1044,8 @@ public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsear /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -999,7 +1057,8 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1012,7 +1071,8 @@ public virtual Task PutSynonymRuleAsync(Elastic.Clients. /// /// - /// Creates or updates a synonym rule in a synonym set + /// Create or update a synonym rule. + /// Create or update a synonym rule in a synonym set. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs index aef9a3c6a51..4ed8ca03514 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -41,9 +41,17 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequest request) @@ -54,9 +62,17 @@ public virtual CancelResponse Cancel(CancelRequest request) /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequest request, CancellationToken cancellationToken = default) { @@ -66,9 +82,17 @@ public virtual Task CancelAsync(CancelRequest request, Cancellat /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) @@ -79,9 +103,17 @@ public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskId) @@ -93,9 +125,17 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskId, Action configureRequest) @@ -108,9 +148,17 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel() @@ -122,9 +170,17 @@ public virtual CancelResponse Cancel() /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Action configureRequest) @@ -137,9 +193,17 @@ public virtual CancelResponse Cancel(Action configureRe /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -149,9 +213,17 @@ public virtual Task CancelAsync(CancelRequestDescriptor descript /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.TaskId? taskId, CancellationToken cancellationToken = default) { @@ -162,9 +234,17 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.TaskId? taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -176,9 +256,17 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancellationToken cancellationToken = default) { @@ -189,9 +277,17 @@ public virtual Task CancelAsync(CancellationToken cancellationTo /// /// - /// Cancels a task, if it can be cancelled through an API. + /// Cancel a task. + /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. + /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. + /// The get task information API will continue to list these cancelled tasks until they complete. + /// The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible. + /// + /// + /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. + /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -204,9 +300,9 @@ public virtual Task CancelAsync(Action /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequest request) @@ -218,9 +314,9 @@ public virtual GetTasksResponse Get(GetTasksRequest request) /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) { @@ -231,9 +327,9 @@ public virtual Task GetAsync(GetTasksRequest request, Cancella /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) @@ -245,9 +341,9 @@ public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) @@ -260,9 +356,9 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) @@ -276,9 +372,9 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Act /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -289,9 +385,9 @@ public virtual Task GetAsync(GetTasksRequestDescriptor descrip /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { @@ -303,9 +399,9 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// /// Get task information. - /// Returns information about the tasks currently executing in the cluster. + /// Get information about a task currently running in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -317,9 +413,10 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) @@ -330,9 +427,10 @@ public virtual ListResponse List(ListRequest request) /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) { @@ -342,9 +440,10 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequestDescriptor descriptor) @@ -355,9 +454,10 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List() @@ -369,9 +469,10 @@ public virtual ListResponse List() /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(Action configureRequest) @@ -384,9 +485,10 @@ public virtual ListResponse List(Action configureRequest) /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -396,9 +498,10 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) { @@ -409,9 +512,10 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// /// - /// The task management API returns information about tasks currently executing on one or more nodes in the cluster. + /// Get all tasks. + /// Get information about the tasks currently running on one or more nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs index 191291118f4..ed77c6ee9a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs @@ -41,7 +41,803 @@ internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client /// /// - /// Tests a Grok pattern on some text. + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(FindFieldStructureRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, FindFieldStructureResponse, FindFieldStructureRequestParameters>(descriptor); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure() + { + var descriptor = new FindFieldStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, FindFieldStructureResponse, FindFieldStructureRequestParameters>(descriptor); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure(Action> configureRequest) + { + var descriptor = new FindFieldStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FindFieldStructureResponse, FindFieldStructureRequestParameters>(descriptor); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure() + { + var descriptor = new FindFieldStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindFieldStructureResponse FindFieldStructure(Action configureRequest) + { + var descriptor = new FindFieldStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(FindFieldStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, FindFieldStructureResponse, FindFieldStructureRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FindFieldStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, FindFieldStructureResponse, FindFieldStructureRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FindFieldStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FindFieldStructureResponse, FindFieldStructureRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(FindFieldStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FindFieldStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindFieldStructureAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FindFieldStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStructureRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(FindMessageStructureRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStructureRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, FindMessageStructureResponse, FindMessageStructureRequestParameters>(descriptor); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure() + { + var descriptor = new FindMessageStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, FindMessageStructureResponse, FindMessageStructureRequestParameters>(descriptor); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure(Action> configureRequest) + { + var descriptor = new FindMessageStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FindMessageStructureResponse, FindMessageStructureRequestParameters>(descriptor); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStructureRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure() + { + var descriptor = new FindMessageStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FindMessageStructureResponse FindMessageStructure(Action configureRequest) + { + var descriptor = new FindMessageStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(FindMessageStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, FindMessageStructureResponse, FindMessageStructureRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FindMessageStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, FindMessageStructureResponse, FindMessageStructureRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FindMessageStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FindMessageStructureResponse, FindMessageStructureRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(FindMessageStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FindMessageStructureRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find the structure of text messages. + /// Find the structure of a list of text messages. + /// The messages must contain data that is suitable to be ingested into Elasticsearch. + /// + /// + /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. + /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FindMessageStructureAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FindMessageStructureRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -54,7 +850,9 @@ public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequest re /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -66,7 +864,9 @@ public virtual Task TestGrokPatternAsync(TestGrokPatter /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -79,7 +879,9 @@ public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequestDes /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -93,7 +895,9 @@ public virtual TestGrokPatternResponse TestGrokPattern() /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -108,7 +912,9 @@ public virtual TestGrokPatternResponse TestGrokPattern(Action /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -120,7 +926,9 @@ public virtual Task TestGrokPatternAsync(TestGrokPatter /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -133,7 +941,9 @@ public virtual Task TestGrokPatternAsync(CancellationTo /// /// - /// Tests a Grok pattern on some text. + /// Test a Grok pattern. + /// Test a Grok pattern on one or more lines of text. + /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs index e4d6ae90c2f..383aa2450e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs @@ -2169,12 +2169,22 @@ public virtual Task UpdateTransformAsync(Elastic.Client /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2187,12 +2197,22 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequ /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2204,12 +2224,22 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2222,12 +2252,22 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequ /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2241,12 +2281,22 @@ public virtual UpgradeTransformsResponse UpgradeTransforms() /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2261,12 +2311,22 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(Action /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2278,12 +2338,22 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2296,12 +2366,22 @@ public virtual Task UpgradeTransformsAsync(Cancellati /// /// - /// Upgrades all transforms. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. It - /// also cleans up the internal data structures that store the transform state and checkpoints. The upgrade does not - /// affect the source and destination indices. The upgrade also does not affect the roles that transforms use when - /// Elasticsearch security features are enabled; the role used to read source data and write to the destination index - /// remains unchanged. + /// Upgrade all transforms. + /// Transforms are compatible across minor versions and between supported major versions. + /// However, over time, the format of transform configuration information may change. + /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. + /// It also cleans up the internal data structures that store the transform state and checkpoints. + /// The upgrade does not affect the source and destination indices. + /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. + /// + /// + /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. + /// Resolve the issue then re-run the process again. + /// A summary is returned when the upgrade is finished. + /// + /// + /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. + /// You may want to perform a recent cluster backup prior to the upgrade. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs index 6b26591803c..c456147620c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs @@ -41,8 +41,26 @@ internal XpackNamespacedClient(ElasticsearchClient client) : base(client) /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -54,8 +72,26 @@ public virtual XpackInfoResponse Info(XpackInfoRequest request) /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: + /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequest request, CancellationToken cancellationToken = default) @@ -66,8 +102,26 @@ public virtual Task InfoAsync(XpackInfoRequest request, Cance /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -79,8 +133,26 @@ public virtual XpackInfoResponse Info(XpackInfoRequestDescriptor descriptor) /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: + /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -93,8 +165,26 @@ public virtual XpackInfoResponse Info() /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -108,8 +198,26 @@ public virtual XpackInfoResponse Info(Action configu /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: + /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -120,8 +228,26 @@ public virtual Task InfoAsync(XpackInfoRequestDescriptor desc /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. + /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) @@ -133,8 +259,26 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// - /// Provides general information about the installed X-Pack features. + /// Get information. + /// The information provided by the API includes: + /// + /// + /// + /// + /// Build information including the build number and timestamp. + /// + /// + /// + /// + /// License information about the currently installed license. + /// + /// + /// + /// + /// Feature information for the features that are currently enabled and available under the current license. /// + /// + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -147,7 +291,9 @@ public virtual Task InfoAsync(Action /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -160,7 +306,9 @@ public virtual XpackUsageResponse Usage(XpackUsageRequest request) /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -172,7 +320,9 @@ public virtual Task UsageAsync(XpackUsageRequest request, Ca /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -185,7 +335,9 @@ public virtual XpackUsageResponse Usage(XpackUsageRequestDescriptor descriptor) /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -199,7 +351,9 @@ public virtual XpackUsageResponse Usage() /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -214,7 +368,9 @@ public virtual XpackUsageResponse Usage(Action conf /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -226,7 +382,9 @@ public virtual Task UsageAsync(XpackUsageRequestDescriptor d /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -239,7 +397,9 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// - /// This API provides information about which features are currently enabled and available under the current license and some usage statistics. + /// Get usage information. + /// Get information about the features that are currently enabled and available under the current license. + /// The API also provides some usage statistics. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index d4166fe3227..d3ce0ad78fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -124,7 +124,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequest request) @@ -139,7 +139,7 @@ public virtual BulkResponse Bulk(BulkRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -153,7 +153,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) @@ -168,7 +168,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) @@ -184,7 +184,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -201,7 +201,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk() @@ -217,7 +217,7 @@ public virtual BulkResponse Bulk() /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Action> configureRequest) @@ -234,7 +234,7 @@ public virtual BulkResponse Bulk(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) @@ -249,7 +249,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) @@ -265,7 +265,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -282,7 +282,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk() @@ -298,7 +298,7 @@ public virtual BulkResponse Bulk() /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Action configureRequest) @@ -315,7 +315,7 @@ public virtual BulkResponse Bulk(Action configureRequest) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -329,7 +329,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -344,7 +344,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -360,7 +360,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -375,7 +375,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -391,7 +391,7 @@ public virtual Task BulkAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -405,7 +405,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -420,7 +420,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -436,7 +436,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexN /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -451,7 +451,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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -468,7 +468,7 @@ public virtual Task BulkAsync(Action config /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) @@ -484,7 +484,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -499,7 +499,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) @@ -515,7 +515,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor desc /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll() @@ -532,7 +532,7 @@ public virtual ClearScrollResponse ClearScroll() /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(Action configureRequest) @@ -550,7 +550,7 @@ public virtual ClearScrollResponse ClearScroll(Action /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -565,7 +565,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -581,7 +581,7 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -601,7 +601,7 @@ public virtual Task ClearScrollAsync(Actionkeep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) @@ -620,7 +620,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -638,7 +638,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) @@ -657,7 +657,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime() @@ -677,7 +677,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime() /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) @@ -698,7 +698,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Actionkeep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -716,7 +716,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -735,7 +735,7 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -747,7 +747,8 @@ public virtual Task ClosePointInTimeAsync(Action /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -760,7 +761,8 @@ public virtual CountResponse Count(CountRequest request) /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -772,7 +774,8 @@ public virtual Task CountAsync(CountRequest request, Cancellation /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -785,7 +788,8 @@ public virtual CountResponse Count(CountRequestDescriptor /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -799,7 +803,8 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indi /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -814,7 +819,8 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indi /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -828,7 +834,8 @@ public virtual CountResponse Count() /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -843,7 +850,8 @@ public virtual CountResponse Count(Action /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -856,7 +864,8 @@ public virtual CountResponse Count(CountRequestDescriptor descriptor) /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -870,7 +879,8 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indice /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -885,7 +895,8 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indice /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -899,7 +910,8 @@ public virtual CountResponse Count() /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -914,7 +926,8 @@ public virtual CountResponse Count(Action configureReque /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -926,7 +939,8 @@ public virtual Task CountAsync(CountRequestDescriptor< /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -939,7 +953,8 @@ public virtual Task CountAsync(Elastic.Clients.Elastic /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -953,7 +968,8 @@ public virtual Task CountAsync(Elastic.Clients.Elastic /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -966,7 +982,8 @@ public virtual Task CountAsync(CancellationToken cance /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -980,7 +997,8 @@ public virtual Task CountAsync(Action /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -992,7 +1010,8 @@ public virtual Task CountAsync(CountRequestDescriptor descriptor, /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1005,7 +1024,8 @@ public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indi /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1019,7 +1039,8 @@ public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indi /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1032,7 +1053,8 @@ public virtual Task CountAsync(CancellationToken cancellationToke /// /// - /// Returns number of documents matching a query. + /// Count search results. + /// Get the number of documents matching a query. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5281,7 +5303,29 @@ public virtual Task> GetSourceAsync(Elas /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5294,7 +5338,29 @@ public virtual HealthReportResponse HealthReport(HealthReportRequest request) /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5306,7 +5372,29 @@ public virtual Task HealthReportAsync(HealthReportRequest /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5319,7 +5407,29 @@ public virtual HealthReportResponse HealthReport(HealthReportRequestDescriptor d /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5333,7 +5443,29 @@ public virtual HealthReportResponse HealthReport(IReadOnlyCollection? fe /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5348,7 +5480,29 @@ public virtual HealthReportResponse HealthReport(IReadOnlyCollection? fe /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5362,7 +5516,29 @@ public virtual HealthReportResponse HealthReport() /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5377,7 +5553,29 @@ public virtual HealthReportResponse HealthReport(Action /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5389,7 +5587,29 @@ public virtual Task HealthReportAsync(HealthReportRequestD /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5402,7 +5622,29 @@ public virtual Task HealthReportAsync(IReadOnlyCollection< /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5416,7 +5658,29 @@ public virtual Task HealthReportAsync(IReadOnlyCollection< /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -5429,7 +5693,29 @@ public virtual Task HealthReportAsync(CancellationToken ca /// /// - /// Returns the health of the cluster. + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7078,7 +7364,7 @@ public virtual Task> MultiSearchTemplateA /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) @@ -7103,7 +7389,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest re /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -7127,7 +7413,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) @@ -7152,7 +7438,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) @@ -7178,7 +7464,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -7205,7 +7491,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime() @@ -7231,7 +7517,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime() /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Action> configureRequest) @@ -7258,7 +7544,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Actionkeep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) @@ -7283,7 +7569,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDes /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) @@ -7309,7 +7595,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -7336,7 +7622,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7360,7 +7646,7 @@ public virtual Task OpenPointInTimeAsync(Ope /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7385,7 +7671,7 @@ public virtual Task OpenPointInTimeAsync(Ela /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7411,7 +7697,7 @@ public virtual Task OpenPointInTimeAsync(Ela /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) { @@ -7436,7 +7722,7 @@ public virtual Task OpenPointInTimeAsync(Can /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7462,7 +7748,7 @@ public virtual Task OpenPointInTimeAsync(Act /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7486,7 +7772,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7511,7 +7797,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7524,7 +7810,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7538,7 +7824,7 @@ public virtual PingResponse Ping(PingRequest request) /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7551,7 +7837,7 @@ public virtual Task PingAsync(PingRequest request, CancellationTok /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7565,7 +7851,7 @@ public virtual PingResponse Ping(PingRequestDescriptor descriptor) /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7580,7 +7866,7 @@ public virtual PingResponse Ping() /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7596,7 +7882,7 @@ public virtual PingResponse Ping(Action configureRequest) /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7609,7 +7895,7 @@ public virtual Task PingAsync(PingRequestDescriptor descriptor, Ca /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -7623,7 +7909,7 @@ public virtual Task PingAsync(CancellationToken cancellationToken /// /// /// Ping the cluster. - /// Returns whether the cluster is running. + /// Get information about whether the cluster is running. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs index 8c2e0cd884f..e32a1cbe1ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs @@ -122,7 +122,7 @@ public override void Write(Utf8JsonWriter writer, INormalizer value, JsonSeriali } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(NormalizerInterfaceConverter))] public partial interface INormalizer diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs index c6791d2760a..ff080b07f17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ByteSize : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs index 1ee285604c2..3b0b5da0aaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; /// /// Text or location that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Context : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs new file mode 100644 index 00000000000..ffbababfc4a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs @@ -0,0 +1,47 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.HealthReport; + +/// +/// +/// FILE_SETTINGS +/// +/// +public sealed partial class FileSettingsIndicator +{ + [JsonInclude, JsonPropertyName("details")] + public Elastic.Clients.Elasticsearch.Core.HealthReport.FileSettingsIndicatorDetails? Details { get; init; } + [JsonInclude, JsonPropertyName("diagnosis")] + public IReadOnlyCollection? Diagnosis { get; init; } + [JsonInclude, JsonPropertyName("impacts")] + public IReadOnlyCollection? Impacts { get; init; } + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; init; } + [JsonInclude, JsonPropertyName("symptom")] + public string Symptom { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs new file mode 100644 index 00000000000..e104bbb7ddb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.HealthReport; + +public sealed partial class FileSettingsIndicatorDetails +{ + [JsonInclude, JsonPropertyName("failure_streak")] + public long FailureStreak { get; init; } + [JsonInclude, JsonPropertyName("most_recent_failure")] + public string MostRecentFailure { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs index 6cc347b2606..05f5aa6f061 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs @@ -33,6 +33,8 @@ public sealed partial class Indicators public Elastic.Clients.Elasticsearch.Core.HealthReport.DataStreamLifecycleIndicator? DataStreamLifecycle { get; init; } [JsonInclude, JsonPropertyName("disk")] public Elastic.Clients.Elasticsearch.Core.HealthReport.DiskIndicator? Disk { get; init; } + [JsonInclude, JsonPropertyName("file_settings")] + public Elastic.Clients.Elasticsearch.Core.HealthReport.FileSettingsIndicator? FileSettings { get; init; } [JsonInclude, JsonPropertyName("ilm")] public Elastic.Clients.Elasticsearch.Core.HealthReport.IlmIndicator? Ilm { get; init; } [JsonInclude, JsonPropertyName("master_is_stable")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs index 8f1672f3c25..8de32585af1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGain { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricDiscountedCumulativeGain /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGainDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs index 41bb06737ad..18c31ca04f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricExpectedReciprocalRank /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs index d55d0fb0c42..a5db8520c2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricMeanReciprocalRank /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs index a9d76d9556c..ddf8cc6549e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecision { @@ -64,7 +64,7 @@ public sealed partial class RankEvalMetricPrecision /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecisionDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs index 86f62abbcaa..36a07ea83d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecall { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricRecall /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecallDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index b9936319efd..af9e0d808bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -403,6 +403,8 @@ public enum FieldType RankFeature, [EnumMember(Value = "percolator")] Percolator, + [EnumMember(Value = "passthrough")] + Passthrough, [EnumMember(Value = "object")] Object, [EnumMember(Value = "none")] @@ -504,6 +506,8 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.RankFeature; case "percolator": return FieldType.Percolator; + case "passthrough": + return FieldType.Passthrough; case "object": return FieldType.Object; case "none": @@ -618,6 +622,9 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Percolator: writer.WriteStringValue("percolator"); return; + case FieldType.Passthrough: + writer.WriteStringValue("passthrough"); + return; case FieldType.Object: writer.WriteStringValue("object"); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs index c7ab868ff14..a73a00e061d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs @@ -126,6 +126,48 @@ public override void Write(Utf8JsonWriter writer, ApiKeyGrantType value, JsonSer } } +[JsonConverter(typeof(ApiKeyTypeConverter))] +public enum ApiKeyType +{ + [EnumMember(Value = "rest")] + Rest, + [EnumMember(Value = "cross_cluster")] + CrossCluster +} + +internal sealed class ApiKeyTypeConverter : JsonConverter +{ + public override ApiKeyType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "rest": + return ApiKeyType.Rest; + case "cross_cluster": + return ApiKeyType.CrossCluster; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ApiKeyType value, JsonSerializerOptions options) + { + switch (value) + { + case ApiKeyType.Rest: + writer.WriteStringValue("rest"); + return; + case ApiKeyType.CrossCluster: + writer.WriteStringValue("cross_cluster"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(EnumStructConverter))] public readonly partial struct ClusterPrivilege : IEnumStruct { @@ -148,6 +190,7 @@ public override void Write(Utf8JsonWriter writer, ApiKeyGrantType value, JsonSer public static ClusterPrivilege MonitorWatcher { get; } = new ClusterPrivilege("monitor_watcher"); public static ClusterPrivilege MonitorTransform { get; } = new ClusterPrivilege("monitor_transform"); public static ClusterPrivilege MonitorTextStructure { get; } = new ClusterPrivilege("monitor_text_structure"); + public static ClusterPrivilege MonitorStats { get; } = new ClusterPrivilege("monitor_stats"); public static ClusterPrivilege MonitorSnapshot { get; } = new ClusterPrivilege("monitor_snapshot"); public static ClusterPrivilege MonitorRollup { get; } = new ClusterPrivilege("monitor_rollup"); public static ClusterPrivilege MonitorMl { get; } = new ClusterPrivilege("monitor_ml"); @@ -305,6 +348,8 @@ public override void Write(Utf8JsonWriter writer, GrantType value, JsonSerialize [JsonConverter(typeof(RemoteClusterPrivilegeConverter))] public enum RemoteClusterPrivilege { + [EnumMember(Value = "monitor_stats")] + MonitorStats, [EnumMember(Value = "monitor_enrich")] MonitorEnrich } @@ -316,6 +361,8 @@ public override RemoteClusterPrivilege Read(ref Utf8JsonReader reader, Type type var enumString = reader.GetString(); switch (enumString) { + case "monitor_stats": + return RemoteClusterPrivilege.MonitorStats; case "monitor_enrich": return RemoteClusterPrivilege.MonitorEnrich; } @@ -328,6 +375,9 @@ public override void Write(Utf8JsonWriter writer, RemoteClusterPrivilege value, { switch (value) { + case RemoteClusterPrivilege.MonitorStats: + writer.WriteStringValue("monitor_stats"); + return; case RemoteClusterPrivilege.MonitorEnrich: writer.WriteStringValue("monitor_enrich"); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.TextStructure.g.cs new file mode 100644 index 00000000000..3fc28166b89 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.TextStructure.g.cs @@ -0,0 +1,127 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +[JsonConverter(typeof(EcsCompatibilityTypeConverter))] +public enum EcsCompatibilityType +{ + [EnumMember(Value = "v1")] + V1, + [EnumMember(Value = "disabled")] + Disabled +} + +internal sealed class EcsCompatibilityTypeConverter : JsonConverter +{ + public override EcsCompatibilityType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "v1": + return EcsCompatibilityType.V1; + case "disabled": + return EcsCompatibilityType.Disabled; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, EcsCompatibilityType value, JsonSerializerOptions options) + { + switch (value) + { + case EcsCompatibilityType.V1: + writer.WriteStringValue("v1"); + return; + case EcsCompatibilityType.Disabled: + writer.WriteStringValue("disabled"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(FormatTypeConverter))] +public enum FormatType +{ + [EnumMember(Value = "xml")] + Xml, + [EnumMember(Value = "semi_structured_text")] + SemiStructuredText, + [EnumMember(Value = "ndjson")] + Ndjson, + [EnumMember(Value = "delimited")] + Delimited +} + +internal sealed class FormatTypeConverter : JsonConverter +{ + public override FormatType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "xml": + return FormatType.Xml; + case "semi_structured_text": + return FormatType.SemiStructuredText; + case "ndjson": + return FormatType.Ndjson; + case "delimited": + return FormatType.Delimited; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, FormatType value, JsonSerializerOptions options) + { + switch (value) + { + case FormatType.Xml: + writer.WriteStringValue("xml"); + return; + case FormatType.SemiStructuredText: + writer.WriteStringValue("semi_structured_text"); + return; + case FormatType.Ndjson: + writer.WriteStringValue("ndjson"); + return; + case FormatType.Delimited: + writer.WriteStringValue("delimited"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs index f54eb66abda..467552231b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Fuzziness : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs index cc6ae5e99ae..85cb6c2f4ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -739,7 +739,7 @@ public override void Write(Utf8JsonWriter writer, IndexSettings value, JsonSeria } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(IndexSettingsConverter))] public sealed partial class IndexSettings @@ -840,7 +840,7 @@ public sealed partial class IndexSettings } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor> { @@ -2277,7 +2277,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index e002ee38e73..a0fb8572f81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettings { @@ -57,7 +57,7 @@ public sealed partial class MappingLimitSettings /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs index 388e699a94a..40b883ca2cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs @@ -39,7 +39,7 @@ public sealed partial class MappingLimitSettingsTotalFields /// /// [JsonInclude, JsonPropertyName("ignore_dynamic_beyond_limit")] - public bool? IgnoreDynamicBeyondLimit { get; set; } + public object? IgnoreDynamicBeyondLimit { get; set; } /// /// @@ -49,7 +49,7 @@ public sealed partial class MappingLimitSettingsTotalFields /// /// [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } + public object? Limit { get; set; } } public sealed partial class MappingLimitSettingsTotalFieldsDescriptor : SerializableDescriptor @@ -60,8 +60,8 @@ public MappingLimitSettingsTotalFieldsDescriptor() : base() { } - private bool? IgnoreDynamicBeyondLimitValue { get; set; } - private long? LimitValue { get; set; } + private object? IgnoreDynamicBeyondLimitValue { get; set; } + private object? LimitValue { get; set; } /// /// @@ -72,7 +72,7 @@ public MappingLimitSettingsTotalFieldsDescriptor() : base() /// The fields that were not added to the mapping will be added to the _ignored field. /// /// - public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(bool? ignoreDynamicBeyondLimit = true) + public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(object? ignoreDynamicBeyondLimit) { IgnoreDynamicBeyondLimitValue = ignoreDynamicBeyondLimit; return Self; @@ -85,7 +85,7 @@ public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(bool? /// degradations and memory issues, especially in clusters with a high load or few resources. /// /// - public MappingLimitSettingsTotalFieldsDescriptor Limit(long? limit) + public MappingLimitSettingsTotalFieldsDescriptor Limit(object? limit) { LimitValue = limit; return Self; @@ -94,16 +94,16 @@ public MappingLimitSettingsTotalFieldsDescriptor Limit(long? limit) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (IgnoreDynamicBeyondLimitValue.HasValue) + if (IgnoreDynamicBeyondLimitValue is not null) { writer.WritePropertyName("ignore_dynamic_beyond_limit"); - writer.WriteBooleanValue(IgnoreDynamicBeyondLimitValue.Value); + JsonSerializer.Serialize(writer, IgnoreDynamicBeyondLimitValue, options); } - if (LimitValue.HasValue) + if (LimitValue is not null) { writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); + JsonSerializer.Serialize(writer, LimitValue, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs index 705489f941b..0ee2cf7640a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfiguration.g.cs @@ -21,28 +21,289 @@ using Elastic.Clients.Elasticsearch.Serialization; 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.Ingest; +/// +/// +/// The configuration necessary to identify which IP geolocation provider to use to download a database, as well as any provider-specific configuration necessary for such downloading. +/// At present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured. +/// A provider (either maxmind or ipinfo) must be specified. The web and local providers can be returned as read only configurations. +/// +/// +[JsonConverter(typeof(DatabaseConfigurationConverter))] public sealed partial class DatabaseConfiguration { + internal DatabaseConfiguration(string variantName, object variant) + { + if (variantName is null) + throw new ArgumentNullException(nameof(variantName)); + if (variant is null) + throw new ArgumentNullException(nameof(variant)); + if (string.IsNullOrWhiteSpace(variantName)) + throw new ArgumentException("Variant name must not be empty or whitespace."); + VariantName = variantName; + Variant = variant; + } + + internal object Variant { get; } + internal string VariantName { get; } + + public static DatabaseConfiguration Ipinfo(Elastic.Clients.Elasticsearch.Ingest.Ipinfo ipinfo) => new DatabaseConfiguration("ipinfo", ipinfo); + public static DatabaseConfiguration Maxmind(Elastic.Clients.Elasticsearch.Ingest.Maxmind maxmind) => new DatabaseConfiguration("maxmind", maxmind); + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public Elastic.Clients.Elasticsearch.Name Name { get; set; } + + public bool TryGet([NotNullWhen(true)] out T? result) where T : class + { + result = default; + if (Variant is T variant) + { + result = variant; + return true; + } + + return false; + } +} + +internal sealed partial class DatabaseConfigurationConverter : JsonConverter +{ + public override DatabaseConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + { + throw new JsonException("Expected start token."); + } + + object? variantValue = default; + string? variantNameValue = default; + Elastic.Clients.Elasticsearch.Name nameValue = default; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token."); + } + + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); + } + + var propertyName = reader.GetString(); + reader.Read(); + if (propertyName == "name") + { + nameValue = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (propertyName == "ipinfo") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "maxmind") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DatabaseConfiguration' from the response."); + } + + var result = new DatabaseConfiguration(variantNameValue, variantValue); + result.Name = nameValue; + return result; + } + + public override void Write(Utf8JsonWriter writer, DatabaseConfiguration value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (value.Name is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, value.Name, options); + } + + if (value.VariantName is not null && value.Variant is not null) + { + writer.WritePropertyName(value.VariantName); + switch (value.VariantName) + { + case "ipinfo": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.Ipinfo)value.Variant, options); + break; + case "maxmind": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.Maxmind)value.Variant, options); + break; + } + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationDescriptor : SerializableDescriptor> +{ + internal DatabaseConfigurationDescriptor(Action> configure) => configure.Invoke(this); + + public DatabaseConfigurationDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } + /// /// - /// The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. - /// At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. + /// The provider-assigned name of the IP geolocation database to download. /// /// - [JsonInclude, JsonPropertyName("maxmind")] - public Elastic.Clients.Elasticsearch.Ingest.Maxmind Maxmind { get; init; } + public DatabaseConfigurationDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationDescriptor Maxmind(Elastic.Clients.Elasticsearch.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (NameValue is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationDescriptor : SerializableDescriptor +{ + internal DatabaseConfigurationDescriptor(Action configure) => configure.Invoke(this); + + public DatabaseConfigurationDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } /// /// /// The provider-assigned name of the IP geolocation database to download. /// /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } + public DatabaseConfigurationDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationDescriptor Maxmind(Elastic.Clients.Elasticsearch.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (NameValue is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs new file mode 100644 index 00000000000..153f4bd724b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs @@ -0,0 +1,332 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +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.Ingest; + +[JsonConverter(typeof(DatabaseConfigurationFullConverter))] +public sealed partial class DatabaseConfigurationFull +{ + internal DatabaseConfigurationFull(string variantName, object variant) + { + if (variantName is null) + throw new ArgumentNullException(nameof(variantName)); + if (variant is null) + throw new ArgumentNullException(nameof(variant)); + if (string.IsNullOrWhiteSpace(variantName)) + throw new ArgumentException("Variant name must not be empty or whitespace."); + VariantName = variantName; + Variant = variant; + } + + internal object Variant { get; } + internal string VariantName { get; } + + public static DatabaseConfigurationFull Ipinfo(Elastic.Clients.Elasticsearch.Ingest.Ipinfo ipinfo) => new DatabaseConfigurationFull("ipinfo", ipinfo); + public static DatabaseConfigurationFull Local(Elastic.Clients.Elasticsearch.Ingest.Local local) => new DatabaseConfigurationFull("local", local); + public static DatabaseConfigurationFull Maxmind(Elastic.Clients.Elasticsearch.Ingest.Maxmind maxmind) => new DatabaseConfigurationFull("maxmind", maxmind); + public static DatabaseConfigurationFull Web(Elastic.Clients.Elasticsearch.Ingest.Web web) => new DatabaseConfigurationFull("web", web); + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; set; } + + public bool TryGet([NotNullWhen(true)] out T? result) where T : class + { + result = default; + if (Variant is T variant) + { + result = variant; + return true; + } + + return false; + } +} + +internal sealed partial class DatabaseConfigurationFullConverter : JsonConverter +{ + public override DatabaseConfigurationFull Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + { + throw new JsonException("Expected start token."); + } + + object? variantValue = default; + string? variantNameValue = default; + string nameValue = default; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token."); + } + + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); + } + + var propertyName = reader.GetString(); + reader.Read(); + if (propertyName == "name") + { + nameValue = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (propertyName == "ipinfo") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "local") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "maxmind") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "web") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DatabaseConfigurationFull' from the response."); + } + + var result = new DatabaseConfigurationFull(variantNameValue, variantValue); + result.Name = nameValue; + return result; + } + + public override void Write(Utf8JsonWriter writer, DatabaseConfigurationFull value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(value.Name)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(value.Name); + } + + if (value.VariantName is not null && value.Variant is not null) + { + writer.WritePropertyName(value.VariantName); + switch (value.VariantName) + { + case "ipinfo": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.Ipinfo)value.Variant, options); + break; + case "local": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.Local)value.Variant, options); + break; + case "maxmind": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.Maxmind)value.Variant, options); + break; + case "web": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Ingest.Web)value.Variant, options); + break; + } + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationFullDescriptor : SerializableDescriptor> +{ + internal DatabaseConfigurationFullDescriptor(Action> configure) => configure.Invoke(this); + + public DatabaseConfigurationFullDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationFullDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationFullDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private string NameValue { get; set; } + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + public DatabaseConfigurationFullDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationFullDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationFullDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationFullDescriptor Local(Elastic.Clients.Elasticsearch.Ingest.Local local) => Set(local, "local"); + public DatabaseConfigurationFullDescriptor Local(Action configure) => Set(configure, "local"); + public DatabaseConfigurationFullDescriptor Maxmind(Elastic.Clients.Elasticsearch.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationFullDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + public DatabaseConfigurationFullDescriptor Web(Elastic.Clients.Elasticsearch.Ingest.Web web) => Set(web, "web"); + public DatabaseConfigurationFullDescriptor Web(Action configure) => Set(configure, "web"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(NameValue)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class DatabaseConfigurationFullDescriptor : SerializableDescriptor +{ + internal DatabaseConfigurationFullDescriptor(Action configure) => configure.Invoke(this); + + public DatabaseConfigurationFullDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private DatabaseConfigurationFullDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private DatabaseConfigurationFullDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private string NameValue { get; set; } + + /// + /// + /// The provider-assigned name of the IP geolocation database to download. + /// + /// + public DatabaseConfigurationFullDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + public DatabaseConfigurationFullDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); + public DatabaseConfigurationFullDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); + public DatabaseConfigurationFullDescriptor Local(Elastic.Clients.Elasticsearch.Ingest.Local local) => Set(local, "local"); + public DatabaseConfigurationFullDescriptor Local(Action configure) => Set(configure, "local"); + public DatabaseConfigurationFullDescriptor Maxmind(Elastic.Clients.Elasticsearch.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); + public DatabaseConfigurationFullDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); + public DatabaseConfigurationFullDescriptor Web(Elastic.Clients.Elasticsearch.Ingest.Web web) => Set(web, "web"); + public DatabaseConfigurationFullDescriptor Web(Action configure) => Set(configure, "web"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(NameValue)) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs new file mode 100644 index 00000000000..5242779f807 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs @@ -0,0 +1,42 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class IpDatabaseConfigurationMetadata +{ + [JsonInclude, JsonPropertyName("database")] + public Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull Database { get; init; } + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("modified_date")] + public long? ModifiedDate { get; init; } + [JsonInclude, JsonPropertyName("modified_date_millis")] + public long? ModifiedDateMillis { get; init; } + [JsonInclude, JsonPropertyName("version")] + public long Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs new file mode 100644 index 00000000000..22d40793b7c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ipinfo.g.cs @@ -0,0 +1,47 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class Ipinfo +{ +} + +public sealed partial class IpinfoDescriptor : SerializableDescriptor +{ + internal IpinfoDescriptor(Action configure) => configure.Invoke(this); + + public IpinfoDescriptor() : base() + { + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs new file mode 100644 index 00000000000..72e158e02c5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Local.g.cs @@ -0,0 +1,61 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class Local +{ + [JsonInclude, JsonPropertyName("type")] + public string Type { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull(Local local) => Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull.Local(local); +} + +public sealed partial class LocalDescriptor : SerializableDescriptor +{ + internal LocalDescriptor(Action configure) => configure.Invoke(this); + + public LocalDescriptor() : base() + { + } + + private string TypeValue { get; set; } + + public LocalDescriptor Type(string type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue(TypeValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs index 95aad9d84a1..16164834ba4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Maxmind.g.cs @@ -31,6 +31,9 @@ public sealed partial class Maxmind { [JsonInclude, JsonPropertyName("account_id")] public Elastic.Clients.Elasticsearch.Id AccountId { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration(Maxmind maxmind) => Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration.Maxmind(maxmind); + public static implicit operator Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull(Maxmind maxmind) => Elastic.Clients.Elasticsearch.Ingest.DatabaseConfigurationFull.Maxmind(maxmind); } public sealed partial class MaxmindDescriptor : SerializableDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs new file mode 100644 index 00000000000..698d1261e8e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineConfig.g.cs @@ -0,0 +1,56 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class PipelineConfig +{ + /// + /// + /// Description of the ingest pipeline. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; init; } + + /// + /// + /// Processors used to perform transformations on documents before indexing. + /// Processors run sequentially in the order specified. + /// + /// + [JsonInclude, JsonPropertyName("processors")] + public IReadOnlyCollection Processors { get; init; } + + /// + /// + /// Version number used by external systems to track ingest pipelines. + /// + /// + [JsonInclude, JsonPropertyName("version")] + public long? Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs new file mode 100644 index 00000000000..b98bbde2f8d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Web.g.cs @@ -0,0 +1,47 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class Web +{ +} + +public sealed partial class WebDescriptor : SerializableDescriptor +{ + internal WebDescriptor(Action configure) => configure.Invoke(this); + + public WebDescriptor() : base() + { + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs new file mode 100644 index 00000000000..20423691083 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class AdaptiveAllocationsSettings +{ + [JsonInclude, JsonPropertyName("enabled")] + public bool Enabled { get; init; } + [JsonInclude, JsonPropertyName("max_number_of_allocations")] + public int? MaxNumberOfAllocations { get; init; } + [JsonInclude, JsonPropertyName("min_number_of_allocations")] + public int? MinNumberOfAllocations { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs index dc6af2774f9..714533433d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisLimits.g.cs @@ -43,7 +43,7 @@ public sealed partial class AnalysisLimits /// /// [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? ModelMemoryLimit { get; set; } } public sealed partial class AnalysisLimitsDescriptor : SerializableDescriptor @@ -55,7 +55,7 @@ public AnalysisLimitsDescriptor() : base() } private long? CategorizationExamplesLimitValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? ModelMemoryLimitValue { get; set; } /// /// @@ -73,7 +73,7 @@ public AnalysisLimitsDescriptor CategorizationExamplesLimit(long? categorization /// The approximate maximum amount of memory resources that are required for analytical processing. Once this limit is approached, data pruning becomes more aggressive. Upon exceeding this limit, new entities are not modeled. If the xpack.ml.max_model_memory_limit setting has a value greater than 0 and less than 1024mb, that value is used instead of the default. The default value is relatively small to ensure that high resource usage is a conscious decision. If you have jobs that are expected to analyze high cardinality fields, you will likely need to use a higher value. If you specify a number instead of a string, the units are assumed to be MiB. Specifying a string is recommended for clarity. If you specify a byte size unit of b or kb and the number does not equate to a discrete number of megabytes, it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you specify a value less than 1 MiB, an error occurs. If you specify a value for the xpack.ml.max_model_memory_limit setting, an error occurs when you try to create jobs that have model_memory_limit values greater than that setting value. /// /// - public AnalysisLimitsDescriptor ModelMemoryLimit(string? modelMemoryLimit) + public AnalysisLimitsDescriptor ModelMemoryLimit(Elastic.Clients.Elasticsearch.ByteSize? modelMemoryLimit) { ModelMemoryLimitValue = modelMemoryLimit; return Self; @@ -88,10 +88,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(CategorizationExamplesLimitValue.Value); } - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) + if (ModelMemoryLimitValue is not null) { writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); + JsonSerializer.Serialize(writer, ModelMemoryLimitValue, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs index 201c27455b9..3cd3e8629d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedStats.g.cs @@ -53,7 +53,7 @@ public sealed partial class DatafeedStats /// /// [JsonInclude, JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.MachineLearning.DiscoveryNode? Node { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.DiscoveryNodeCompact? Node { get; init; } /// /// @@ -78,5 +78,5 @@ public sealed partial class DatafeedStats /// /// [JsonInclude, JsonPropertyName("timing_stats")] - public Elastic.Clients.Elasticsearch.MachineLearning.DatafeedTimingStats TimingStats { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.DatafeedTimingStats? TimingStats { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs index cb452a08436..fa9c55834e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs @@ -44,6 +44,8 @@ public sealed partial class DatafeedTimingStats /// [JsonInclude, JsonPropertyName("bucket_count")] public long BucketCount { get; init; } + [JsonInclude, JsonPropertyName("exponential_average_calculation_context")] + public Elastic.Clients.Elasticsearch.MachineLearning.ExponentialAverageCalculationContext? ExponentialAverageCalculationContext { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs index 22e36e83cb9..5b03b680d55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs @@ -53,6 +53,8 @@ public sealed partial class DataframeAnalyticsSummary public string Id { get; init; } [JsonInclude, JsonPropertyName("max_num_threads")] public int? MaxNumThreads { get; init; } + [JsonInclude, JsonPropertyName("_meta")] + public IReadOnlyDictionary? Meta { get; init; } [JsonInclude, JsonPropertyName("model_memory_limit")] public string? ModelMemoryLimit { get; init; } [JsonInclude, JsonPropertyName("source")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs new file mode 100644 index 00000000000..a08ff5d8000 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorUpdate.g.cs @@ -0,0 +1,312 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class DetectorUpdate +{ + /// + /// + /// An array of custom rule objects, which enable you to customize the way detectors operate. + /// For example, a rule may dictate to the detector conditions under which results should be skipped. + /// Kibana refers to custom rules as job rules. + /// + /// + [JsonInclude, JsonPropertyName("custom_rules")] + public ICollection? CustomRules { get; set; } + + /// + /// + /// A description of the detector. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// A unique identifier for the detector. + /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// + /// + [JsonInclude, JsonPropertyName("detector_index")] + public int DetectorIndex { get; set; } +} + +public sealed partial class DetectorUpdateDescriptor : SerializableDescriptor> +{ + internal DetectorUpdateDescriptor(Action> configure) => configure.Invoke(this); + + public DetectorUpdateDescriptor() : base() + { + } + + private ICollection? CustomRulesValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } + private Action> CustomRulesDescriptorAction { get; set; } + private Action>[] CustomRulesDescriptorActions { get; set; } + private string? DescriptionValue { get; set; } + private int DetectorIndexValue { get; set; } + + /// + /// + /// An array of custom rule objects, which enable you to customize the way detectors operate. + /// For example, a rule may dictate to the detector conditions under which results should be skipped. + /// Kibana refers to custom rules as job rules. + /// + /// + public DetectorUpdateDescriptor CustomRules(ICollection? customRules) + { + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesValue = customRules; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor descriptor) + { + CustomRulesValue = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptor = descriptor; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Action> configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptorAction = configure; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(params Action>[] configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = configure; + return Self; + } + + /// + /// + /// A description of the detector. + /// + /// + public DetectorUpdateDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// A unique identifier for the detector. + /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// + /// + public DetectorUpdateDescriptor DetectorIndex(int detectorIndex) + { + DetectorIndexValue = detectorIndex; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CustomRulesDescriptor is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorAction is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorActions is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + foreach (var action in CustomRulesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (CustomRulesValue is not null) + { + writer.WritePropertyName("custom_rules"); + JsonSerializer.Serialize(writer, CustomRulesValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("detector_index"); + writer.WriteNumberValue(DetectorIndexValue); + writer.WriteEndObject(); + } +} + +public sealed partial class DetectorUpdateDescriptor : SerializableDescriptor +{ + internal DetectorUpdateDescriptor(Action configure) => configure.Invoke(this); + + public DetectorUpdateDescriptor() : base() + { + } + + private ICollection? CustomRulesValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } + private Action CustomRulesDescriptorAction { get; set; } + private Action[] CustomRulesDescriptorActions { get; set; } + private string? DescriptionValue { get; set; } + private int DetectorIndexValue { get; set; } + + /// + /// + /// An array of custom rule objects, which enable you to customize the way detectors operate. + /// For example, a rule may dictate to the detector conditions under which results should be skipped. + /// Kibana refers to custom rules as job rules. + /// + /// + public DetectorUpdateDescriptor CustomRules(ICollection? customRules) + { + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesValue = customRules; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor descriptor) + { + CustomRulesValue = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptor = descriptor; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(Action configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorActions = null; + CustomRulesDescriptorAction = configure; + return Self; + } + + public DetectorUpdateDescriptor CustomRules(params Action[] configure) + { + CustomRulesValue = null; + CustomRulesDescriptor = null; + CustomRulesDescriptorAction = null; + CustomRulesDescriptorActions = configure; + return Self; + } + + /// + /// + /// A description of the detector. + /// + /// + public DetectorUpdateDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// A unique identifier for the detector. + /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// + /// + public DetectorUpdateDescriptor DetectorIndex(int detectorIndex) + { + DetectorIndexValue = detectorIndex; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CustomRulesDescriptor is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorAction is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (CustomRulesDescriptorActions is not null) + { + writer.WritePropertyName("custom_rules"); + writer.WriteStartArray(); + foreach (var action in CustomRulesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.DetectionRuleDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (CustomRulesValue is not null) + { + writer.WritePropertyName("custom_rules"); + JsonSerializer.Serialize(writer, CustomRulesValue, options); + } + + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("detector_index"); + writer.WriteNumberValue(DetectorIndexValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs similarity index 90% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNode.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs index b45aec98b79..22ee787581f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeCompact.g.cs @@ -27,7 +27,12 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; -public sealed partial class DiscoveryNode +/// +/// +/// Alternative representation of DiscoveryNode used in ml.get_job_stats and ml.get_datafeed_stats +/// +/// +public sealed partial class DiscoveryNodeCompact { [JsonInclude, JsonPropertyName("attributes")] public IReadOnlyDictionary Attributes { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs new file mode 100644 index 00000000000..e24cf838d53 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DiscoveryNodeContent.g.cs @@ -0,0 +1,50 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class DiscoveryNodeContent +{ + [JsonInclude, JsonPropertyName("attributes")] + public IReadOnlyDictionary Attributes { get; init; } + [JsonInclude, JsonPropertyName("ephemeral_id")] + public string EphemeralId { get; init; } + [JsonInclude, JsonPropertyName("external_id")] + public string ExternalId { get; init; } + [JsonInclude, JsonPropertyName("max_index_version")] + public int MaxIndexVersion { get; init; } + [JsonInclude, JsonPropertyName("min_index_version")] + public int MinIndexVersion { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string? Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } + [JsonInclude, JsonPropertyName("transport_address")] + public string TransportAddress { get; init; } + [JsonInclude, JsonPropertyName("version")] + public string Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs new file mode 100644 index 00000000000..d9d92226dab --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class ExponentialAverageCalculationContext +{ + [JsonInclude, JsonPropertyName("incremental_metric_value_ms")] + public double IncrementalMetricValueMs { get; init; } + [JsonInclude, JsonPropertyName("latest_timestamp")] + public long? LatestTimestamp { get; init; } + [JsonInclude, JsonPropertyName("previous_exponential_average_ms")] + public double? PreviousExponentialAverageMs { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs index c0ee3c334ae..690cc69cb4c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs @@ -69,6 +69,8 @@ public sealed partial class FillMaskInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate(FillMaskInferenceOptions fillMaskInferenceOptions) => Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate.FillMask(fillMaskInferenceOptions); } @@ -92,6 +94,9 @@ public FillMaskInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -159,6 +164,30 @@ public FillMaskInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -196,6 +225,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs index c8dae4de397..5f5315c52db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/JobStats.g.cs @@ -87,7 +87,7 @@ public sealed partial class JobStats /// /// [JsonInclude, JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.MachineLearning.DiscoveryNode? Node { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.DiscoveryNodeCompact? Node { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs index b1845bd0aba..3672829ff72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/Limits.g.cs @@ -30,9 +30,13 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class Limits { [JsonInclude, JsonPropertyName("effective_max_model_memory_limit")] - public string EffectiveMaxModelMemoryLimit { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? EffectiveMaxModelMemoryLimit { get; init; } [JsonInclude, JsonPropertyName("max_model_memory_limit")] - public string? MaxModelMemoryLimit { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxModelMemoryLimit { get; init; } + [JsonInclude, JsonPropertyName("max_single_ml_node_processors")] + public int? MaxSingleMlNodeProcessors { get; init; } [JsonInclude, JsonPropertyName("total_ml_memory")] - public string TotalMlMemory { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize TotalMlMemory { get; init; } + [JsonInclude, JsonPropertyName("total_ml_processors")] + public int? TotalMlProcessors { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs new file mode 100644 index 00000000000..43aca84a8a6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs @@ -0,0 +1,60 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class ModelPackageConfig +{ + [JsonInclude, JsonPropertyName("create_time")] + public long? CreateTime { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; init; } + [JsonInclude, JsonPropertyName("inference_config")] + public IReadOnlyDictionary? InferenceConfig { get; init; } + [JsonInclude, JsonPropertyName("metadata")] + public IReadOnlyDictionary? Metadata { get; init; } + [JsonInclude, JsonPropertyName("minimum_version")] + public string? MinimumVersion { get; init; } + [JsonInclude, JsonPropertyName("model_repository")] + public string? ModelRepository { get; init; } + [JsonInclude, JsonPropertyName("model_type")] + public string? ModelType { get; init; } + [JsonInclude, JsonPropertyName("packaged_model_id")] + public string PackagedModelId { get; init; } + [JsonInclude, JsonPropertyName("platform_architecture")] + public string? PlatformArchitecture { get; init; } + [JsonInclude, JsonPropertyName("prefix_strings")] + public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } + [JsonInclude, JsonPropertyName("sha256")] + public string? Sha256 { get; init; } + [JsonInclude, JsonPropertyName("size")] + public Elastic.Clients.Elasticsearch.ByteSize? Size { get; init; } + [JsonInclude, JsonPropertyName("tags")] + public IReadOnlyCollection? Tags { get; init; } + [JsonInclude, JsonPropertyName("vocabulary_file")] + public string? VocabularyFile { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs index a390216ea6a..dd2dbaa443e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSizeStats.g.cs @@ -55,6 +55,8 @@ public sealed partial class ModelSizeStats public Elastic.Clients.Elasticsearch.ByteSize? ModelBytesExceeded { get; init; } [JsonInclude, JsonPropertyName("model_bytes_memory_limit")] public Elastic.Clients.Elasticsearch.ByteSize? ModelBytesMemoryLimit { get; init; } + [JsonInclude, JsonPropertyName("output_memory_allocator_bytes")] + public Elastic.Clients.Elasticsearch.ByteSize? OutputMemoryAllocatorBytes { get; init; } [JsonInclude, JsonPropertyName("peak_model_bytes")] public Elastic.Clients.Elasticsearch.ByteSize? PeakModelBytes { get; init; } [JsonInclude, JsonPropertyName("rare_category_count")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs index 93702047375..289fbe89638 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs @@ -34,7 +34,7 @@ public sealed partial class ModelSnapshotUpgrade [JsonInclude, JsonPropertyName("job_id")] public string JobId { get; init; } [JsonInclude, JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.MachineLearning.DiscoveryNode Node { get; init; } + public KeyValuePair Node { get; init; } [JsonInclude, JsonPropertyName("snapshot_id")] public string SnapshotId { get; init; } [JsonInclude, JsonPropertyName("state")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs index bc199d9985d..5fbef7b055f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs @@ -42,6 +42,14 @@ public sealed partial class NlpRobertaTokenizationConfig [JsonInclude, JsonPropertyName("add_prefix_space")] public bool? AddPrefixSpace { get; set; } + /// + /// + /// Should the tokenizer lower case the text + /// + /// + [JsonInclude, JsonPropertyName("do_lower_case")] + public bool? DoLowerCase { get; set; } + /// /// /// Maximum input sequence length for the model @@ -91,6 +99,7 @@ public NlpRobertaTokenizationConfigDescriptor() : base() } private bool? AddPrefixSpaceValue { get; set; } + private bool? DoLowerCaseValue { get; set; } private int? MaxSequenceLengthValue { get; set; } private int? SpanValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationTruncate? TruncateValue { get; set; } @@ -107,6 +116,17 @@ public NlpRobertaTokenizationConfigDescriptor AddPrefixSpace(bool? addPrefixSpac return Self; } + /// + /// + /// Should the tokenizer lower case the text + /// + /// + public NlpRobertaTokenizationConfigDescriptor DoLowerCase(bool? doLowerCase = true) + { + DoLowerCaseValue = doLowerCase; + return Self; + } + /// /// /// Maximum input sequence length for the model @@ -160,6 +180,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(AddPrefixSpaceValue.Value); } + if (DoLowerCaseValue.HasValue) + { + writer.WritePropertyName("do_lower_case"); + writer.WriteBooleanValue(DoLowerCaseValue.Value); + } + if (MaxSequenceLengthValue.HasValue) { writer.WritePropertyName("max_sequence_length"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs index 0807784d1c1..d68ea60d31a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/OverallBucket.g.cs @@ -83,5 +83,5 @@ public sealed partial class OverallBucket /// /// [JsonInclude, JsonPropertyName("timestamp_string")] - public DateTimeOffset TimestampString { get; init; } + public DateTimeOffset? TimestampString { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs index bb082b6b6c9..104024cca83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs @@ -57,6 +57,8 @@ public sealed partial class TextEmbeddingInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate(TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate.TextEmbedding(textEmbeddingInferenceOptions); } @@ -79,6 +81,9 @@ public TextEmbeddingInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -131,6 +136,30 @@ public TextEmbeddingInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -162,6 +191,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs index c0184e60758..9f4c5398307 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs @@ -49,6 +49,8 @@ public sealed partial class TextExpansionInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate(TextExpansionInferenceOptions textExpansionInferenceOptions) => Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate.TextExpansion(textExpansionInferenceOptions); } @@ -70,6 +72,9 @@ public TextExpansionInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -111,6 +116,30 @@ public TextExpansionInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -136,6 +165,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs index 9b0056364e7..e3dc630aebf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs @@ -52,6 +52,7 @@ internal TokenizationConfig(string variantName, object variant) internal string VariantName { get; } public static TokenizationConfig Bert(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert", nlpBertTokenizationConfig); + public static TokenizationConfig BertJa(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert_ja", nlpBertTokenizationConfig); public static TokenizationConfig Mpnet(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("mpnet", nlpBertTokenizationConfig); public static TokenizationConfig Roberta(Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => new TokenizationConfig("roberta", nlpRobertaTokenizationConfig); @@ -100,6 +101,13 @@ public override TokenizationConfig Read(ref Utf8JsonReader reader, Type typeToCo continue; } + if (propertyName == "bert_ja") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "mpnet") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -132,6 +140,9 @@ public override void Write(Utf8JsonWriter writer, TokenizationConfig value, Json case "bert": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); break; + case "bert_ja": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); + break; case "mpnet": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); break; @@ -178,6 +189,8 @@ private TokenizationConfigDescriptor Set(object variant, string varia public TokenizationConfigDescriptor Bert(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert"); public TokenizationConfigDescriptor Bert(Action configure) => Set(configure, "bert"); + public TokenizationConfigDescriptor BertJa(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert_ja"); + public TokenizationConfigDescriptor BertJa(Action configure) => Set(configure, "bert_ja"); public TokenizationConfigDescriptor Mpnet(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "mpnet"); public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); @@ -236,6 +249,8 @@ private TokenizationConfigDescriptor Set(object variant, string variantName) public TokenizationConfigDescriptor Bert(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert"); public TokenizationConfigDescriptor Bert(Action configure) => Set(configure, "bert"); + public TokenizationConfigDescriptor BertJa(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert_ja"); + public TokenizationConfigDescriptor BertJa(Action configure) => Set(configure, "bert_ja"); public TokenizationConfigDescriptor Mpnet(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "mpnet"); public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs index 9f78ed9ab12..d32ae7d74e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class TrainedModelAssignment { + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; init; } + /// /// /// The overall assignment state. @@ -38,6 +41,8 @@ public sealed partial class TrainedModelAssignment public Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAssignmentState AssignmentState { get; init; } [JsonInclude, JsonPropertyName("max_assigned_allocations")] public int? MaxAssignedAllocations { get; init; } + [JsonInclude, JsonPropertyName("reason")] + public string? Reason { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs index c058b16e852..c9dea667748 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs @@ -44,7 +44,7 @@ public sealed partial class TrainedModelAssignmentRoutingTable /// /// [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } + public string? Reason { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs index 064ca46487f..7bcdb74834d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs @@ -35,7 +35,7 @@ public sealed partial class TrainedModelAssignmentTaskParameters /// /// [JsonInclude, JsonPropertyName("cache_size")] - public Elastic.Clients.Elasticsearch.ByteSize CacheSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? CacheSize { get; init; } /// /// @@ -51,7 +51,7 @@ public sealed partial class TrainedModelAssignmentTaskParameters /// /// [JsonInclude, JsonPropertyName("model_bytes")] - public int ModelBytes { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize ModelBytes { get; init; } /// /// @@ -68,6 +68,10 @@ public sealed partial class TrainedModelAssignmentTaskParameters /// [JsonInclude, JsonPropertyName("number_of_allocations")] public int NumberOfAllocations { get; init; } + [JsonInclude, JsonPropertyName("per_allocation_memory_bytes")] + public Elastic.Clients.Elasticsearch.ByteSize PerAllocationMemoryBytes { get; init; } + [JsonInclude, JsonPropertyName("per_deployment_memory_bytes")] + public Elastic.Clients.Elasticsearch.ByteSize PerDeploymentMemoryBytes { get; init; } [JsonInclude, JsonPropertyName("priority")] public Elastic.Clients.Elasticsearch.MachineLearning.TrainingPriority Priority { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs index 138c6aeec82..c1a941f530a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs @@ -129,6 +129,8 @@ public sealed partial class TrainedModelConfig /// [JsonInclude, JsonPropertyName("model_id")] public string ModelId { get; init; } + [JsonInclude, JsonPropertyName("model_package")] + public Elastic.Clients.Elasticsearch.MachineLearning.ModelPackageConfig? ModelPackage { get; init; } [JsonInclude, JsonPropertyName("model_size_bytes")] public Elastic.Clients.Elasticsearch.ByteSize? ModelSizeBytes { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs index 71824251d6b..e8ee05e782a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs @@ -35,7 +35,17 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("average_inference_time_ms")] - public double AverageInferenceTimeMs { get; init; } + public double? AverageInferenceTimeMs { get; init; } + + /// + /// + /// The average time for each inference call to complete on this node, excluding cache + /// + /// + [JsonInclude, JsonPropertyName("average_inference_time_ms_excluding_cache_hits")] + public double? AverageInferenceTimeMsExcludingCacheHits { get; init; } + [JsonInclude, JsonPropertyName("average_inference_time_ms_last_minute")] + public double? AverageInferenceTimeMsLastMinute { get; init; } /// /// @@ -43,7 +53,11 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("error_count")] - public int ErrorCount { get; init; } + public int? ErrorCount { get; init; } + [JsonInclude, JsonPropertyName("inference_cache_hit_count")] + public long? InferenceCacheHitCount { get; init; } + [JsonInclude, JsonPropertyName("inference_cache_hit_count_last_minute")] + public long? InferenceCacheHitCountLastMinute { get; init; } /// /// @@ -51,7 +65,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } + public long? InferenceCount { get; init; } /// /// @@ -59,7 +73,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("last_access")] - public long LastAccess { get; init; } + public long? LastAccess { get; init; } /// /// @@ -67,7 +81,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.MachineLearning.DiscoveryNode Node { get; init; } + public KeyValuePair? Node { get; init; } /// /// @@ -75,7 +89,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } + public int? NumberOfAllocations { get; init; } /// /// @@ -83,7 +97,9 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("number_of_pending_requests")] - public int NumberOfPendingRequests { get; init; } + public int? NumberOfPendingRequests { get; init; } + [JsonInclude, JsonPropertyName("peak_throughput_per_minute")] + public long PeakThroughputPerMinute { get; init; } /// /// @@ -91,7 +107,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("rejection_execution_count")] - public int RejectionExecutionCount { get; init; } + public int? RejectionExecutionCount { get; init; } /// /// @@ -107,7 +123,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("start_time")] - public long StartTime { get; init; } + public long? StartTime { get; init; } /// /// @@ -115,7 +131,9 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } + public int? ThreadsPerAllocation { get; init; } + [JsonInclude, JsonPropertyName("throughput_last_minute")] + public int ThroughputLastMinute { get; init; } /// /// @@ -123,5 +141,5 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("timeout_count")] - public int TimeoutCount { get; init; } + public int? TimeoutCount { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs index 145030816b7..80ed519735f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs @@ -29,13 +29,16 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class TrainedModelDeploymentStats { + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; init; } + /// /// /// The detailed allocation status for the deployment. /// /// [JsonInclude, JsonPropertyName("allocation_status")] - public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelDeploymentAllocationStatus AllocationStatus { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelDeploymentAllocationStatus? AllocationStatus { get; init; } [JsonInclude, JsonPropertyName("cache_size")] public Elastic.Clients.Elasticsearch.ByteSize? CacheSize { get; init; } @@ -53,7 +56,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("error_count")] - public int ErrorCount { get; init; } + public int? ErrorCount { get; init; } /// /// @@ -61,7 +64,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } + public int? InferenceCount { get; init; } /// /// @@ -86,7 +89,11 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } + public int? NumberOfAllocations { get; init; } + [JsonInclude, JsonPropertyName("peak_throughput_per_minute")] + public long PeakThroughputPerMinute { get; init; } + [JsonInclude, JsonPropertyName("priority")] + public Elastic.Clients.Elasticsearch.MachineLearning.TrainingPriority Priority { get; init; } /// /// @@ -94,7 +101,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("queue_capacity")] - public int QueueCapacity { get; init; } + public int? QueueCapacity { get; init; } /// /// @@ -103,7 +110,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } + public string? Reason { get; init; } /// /// @@ -114,7 +121,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("rejected_execution_count")] - public int RejectedExecutionCount { get; init; } + public int? RejectedExecutionCount { get; init; } /// /// @@ -130,7 +137,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAssignmentState State { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAssignmentState? State { get; init; } /// /// @@ -138,7 +145,7 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } + public int? ThreadsPerAllocation { get; init; } /// /// @@ -146,5 +153,5 @@ public sealed partial class TrainedModelDeploymentStats /// /// [JsonInclude, JsonPropertyName("timeout_count")] - public int TimeoutCount { get; init; } + public int? TimeoutCount { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs index ebe54565c68..0563e2b83b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Mapping; /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapeProperty : IProperty { @@ -79,7 +79,7 @@ public sealed partial class GeoShapeProperty : IProperty /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -323,7 +323,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs new file mode 100644 index 00000000000..db4a8355410 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs @@ -0,0 +1,452 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Mapping; + +public sealed partial class PassthroughObjectProperty : IProperty +{ + [JsonInclude, JsonPropertyName("copy_to")] + [JsonConverter(typeof(SingleOrManyFieldsConverter))] + public Elastic.Clients.Elasticsearch.Fields? CopyTo { get; set; } + [JsonInclude, JsonPropertyName("dynamic")] + public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + [JsonInclude, JsonPropertyName("fields")] + public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } + [JsonInclude, JsonPropertyName("ignore_above")] + public int? IgnoreAbove { get; set; } + + /// + /// + /// Metadata about the field. + /// + /// + [JsonInclude, JsonPropertyName("meta")] + public IDictionary? Meta { get; set; } + [JsonInclude, JsonPropertyName("priority")] + public int? Priority { get; set; } + [JsonInclude, JsonPropertyName("properties")] + public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("store")] + public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("time_series_dimension")] + public bool? TimeSeriesDimension { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "passthrough"; +} + +public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor +{ + internal PassthroughObjectPropertyDescriptor(Action> configure) => configure.Invoke(this); + + public PassthroughObjectPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Fields? CopyToValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } + private bool? EnabledValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private IDictionary? MetaValue { get; set; } + private int? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private bool? StoreValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } + + public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) + { + CopyToValue = copyTo; + return Self; + } + + public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public PassthroughObjectPropertyDescriptor Priority(int? priority) + { + PriorityValue = priority; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Store(bool? store = true) + { + StoreValue = store; + return Self; + } + + public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CopyToValue is not null) + { + writer.WritePropertyName("copy_to"); + JsonSerializer.Serialize(writer, CopyToValue, options); + } + + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (StoreValue.HasValue) + { + writer.WritePropertyName("store"); + writer.WriteBooleanValue(StoreValue.Value); + } + + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("passthrough"); + writer.WriteEndObject(); + } + + PassthroughObjectProperty IBuildableDescriptor.Build() => new() + { + CopyTo = CopyToValue, + Dynamic = DynamicValue, + Enabled = EnabledValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Meta = MetaValue, + Priority = PriorityValue, + Properties = PropertiesValue, + Store = StoreValue, + TimeSeriesDimension = TimeSeriesDimensionValue + }; +} + +public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PassthroughObjectPropertyDescriptor(Action configure) => configure.Invoke(this); + + public PassthroughObjectPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Fields? CopyToValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } + private bool? EnabledValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private IDictionary? MetaValue { get; set; } + private int? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private bool? StoreValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } + + public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) + { + CopyToValue = copyTo; + return Self; + } + + public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public PassthroughObjectPropertyDescriptor Priority(int? priority) + { + PriorityValue = priority; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Store(bool? store = true) + { + StoreValue = store; + return Self; + } + + public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CopyToValue is not null) + { + writer.WritePropertyName("copy_to"); + JsonSerializer.Serialize(writer, CopyToValue, options); + } + + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (StoreValue.HasValue) + { + writer.WritePropertyName("store"); + writer.WriteBooleanValue(StoreValue.Value); + } + + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("passthrough"); + writer.WriteEndObject(); + } + + PassthroughObjectProperty IBuildableDescriptor.Build() => new() + { + CopyTo = CopyToValue, + Dynamic = DynamicValue, + Enabled = EnabledValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Meta = MetaValue, + Priority = PriorityValue, + Properties = PropertiesValue, + Store = StoreValue, + TimeSeriesDimension = TimeSeriesDimensionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs index 9cf52241069..b3b3c49457d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs @@ -236,6 +236,11 @@ public PropertiesDescriptor() : base(new Properties()) public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.PropertyName propertyName, ObjectProperty objectProperty) => AssignVariant(propertyName, objectProperty); public PropertiesDescriptor Object(Expression> propertyName) => AssignVariant, ObjectProperty>(propertyName, null); public PropertiesDescriptor Object(Expression> propertyName, Action> configure) => AssignVariant, ObjectProperty>(propertyName, configure); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName, PassthroughObjectProperty passthroughObjectProperty) => AssignVariant(propertyName, passthroughObjectProperty); + public PropertiesDescriptor PassthroughObject(Expression> propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); + public PropertiesDescriptor PassthroughObject(Expression> propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, PercolatorProperty>(propertyName, null); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, PercolatorProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName, PercolatorProperty percolatorProperty) => AssignVariant(propertyName, percolatorProperty); @@ -395,6 +400,8 @@ public override IProperty Read(ref Utf8JsonReader reader, Type typeToConvert, Js return JsonSerializer.Deserialize(ref reader, options); case "object": return JsonSerializer.Deserialize(ref reader, options); + case "passthrough": + return JsonSerializer.Deserialize(ref reader, options); case "percolator": return JsonSerializer.Deserialize(ref reader, options); case "point": @@ -542,6 +549,9 @@ public override void Write(Utf8JsonWriter writer, IProperty value, JsonSerialize case "object": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.ObjectProperty), options); return; + case "passthrough": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.PassthroughObjectProperty), options); + return; case "percolator": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.PercolatorProperty), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs index a2ecda6f0e1..746ae77f100 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Mapping; /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapeProperty : IProperty { @@ -77,7 +77,7 @@ public sealed partial class ShapeProperty : IProperty /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -307,7 +307,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs index 036a1efba08..d80db597c5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeInfoPath.g.cs @@ -30,6 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Nodes; public sealed partial class NodeInfoPath { [JsonInclude, JsonPropertyName("data")] + [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection? Data { get; init; } [JsonInclude, JsonPropertyName("home")] public string? Home { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs index a5616c21d2d..537b0a37d46 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DateRangeQuery.g.cs @@ -54,12 +54,6 @@ public override DateRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -101,12 +95,6 @@ public override DateRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver variant.TimeZone = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -135,12 +123,6 @@ public override void Write(Utf8JsonWriter writer, DateRangeQuery value, JsonSeri writer.WriteStringValue(value.Format); } - if (value.From is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, value.From, options); - } - if (value.Gt is not null) { writer.WritePropertyName("gt"); @@ -183,12 +165,6 @@ public override void Write(Utf8JsonWriter writer, DateRangeQuery value, JsonSeri writer.WriteStringValue(value.TimeZone); } - if (value.To is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, value.To, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -221,7 +197,6 @@ public DateRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// /// public string? Format { get; set; } - public Elastic.Clients.Elasticsearch.DateMath? From { get; set; } /// /// @@ -265,7 +240,6 @@ public DateRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// /// public string? TimeZone { get; set; } - public Elastic.Clients.Elasticsearch.DateMath? To { get; set; } } public sealed partial class DateRangeQueryDescriptor : SerializableDescriptor> @@ -279,7 +253,6 @@ public DateRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.DateMath? FromValue { get; set; } private Elastic.Clients.Elasticsearch.DateMath? GtValue { get; set; } private Elastic.Clients.Elasticsearch.DateMath? GteValue { get; set; } private Elastic.Clients.Elasticsearch.DateMath? LtValue { get; set; } @@ -287,7 +260,6 @@ public DateRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.DateMath? ToValue { get; set; } /// /// @@ -332,12 +304,6 @@ public DateRangeQueryDescriptor Format(string? format) return Self; } - public DateRangeQueryDescriptor From(Elastic.Clients.Elasticsearch.DateMath? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -410,12 +376,6 @@ public DateRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public DateRangeQueryDescriptor To(Elastic.Clients.Elasticsearch.DateMath? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -435,12 +395,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -483,12 +437,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -505,7 +453,6 @@ public DateRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.DateMath? FromValue { get; set; } private Elastic.Clients.Elasticsearch.DateMath? GtValue { get; set; } private Elastic.Clients.Elasticsearch.DateMath? GteValue { get; set; } private Elastic.Clients.Elasticsearch.DateMath? LtValue { get; set; } @@ -513,7 +460,6 @@ public DateRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.DateMath? ToValue { get; set; } /// /// @@ -558,12 +504,6 @@ public DateRangeQueryDescriptor Format(string? format) return Self; } - public DateRangeQueryDescriptor From(Elastic.Clients.Elasticsearch.DateMath? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -636,12 +576,6 @@ public DateRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public DateRangeQueryDescriptor To(Elastic.Clients.Elasticsearch.DateMath? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -661,12 +595,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -709,12 +637,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs index d5d33af4a51..f175c27f412 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Like.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; /// /// Text that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Like : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs index f9d5f0d2b2d..cfbc2a0079e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs @@ -48,12 +48,6 @@ public override NumberRangeQuery Read(ref Utf8JsonReader reader, Type typeToConv continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -89,12 +83,6 @@ public override NumberRangeQuery Read(ref Utf8JsonReader reader, Type typeToConv variant.Relation = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -117,12 +105,6 @@ public override void Write(Utf8JsonWriter writer, NumberRangeQuery value, JsonSe writer.WriteNumberValue(value.Boost.Value); } - if (value.From.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(value.From.Value); - } - if (value.Gt.HasValue) { writer.WritePropertyName("gt"); @@ -159,12 +141,6 @@ public override void Write(Utf8JsonWriter writer, NumberRangeQuery value, JsonSe JsonSerializer.Serialize(writer, value.Relation, options); } - if (value.To.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(value.To.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -190,7 +166,6 @@ public NumberRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Field Field { get; set; } - public double? From { get; set; } /// /// @@ -227,7 +202,6 @@ public NumberRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// /// public Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? Relation { get; set; } - public double? To { get; set; } } public sealed partial class NumberRangeQueryDescriptor : SerializableDescriptor> @@ -240,14 +214,12 @@ public NumberRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private double? FromValue { get; set; } private double? GtValue { get; set; } private double? GteValue { get; set; } private double? LtValue { get; set; } private double? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } - private double? ToValue { get; set; } /// /// @@ -281,12 +253,6 @@ public NumberRangeQueryDescriptor Field(Expression From(double? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -348,12 +314,6 @@ public NumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsea return Self; } - public NumberRangeQueryDescriptor To(double? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -367,12 +327,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - if (GtValue.HasValue) { writer.WritePropertyName("gt"); @@ -409,12 +363,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (ToValue.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(ToValue.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -430,14 +378,12 @@ public NumberRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private double? FromValue { get; set; } private double? GtValue { get; set; } private double? GteValue { get; set; } private double? LtValue { get; set; } private double? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } - private double? ToValue { get; set; } /// /// @@ -471,12 +417,6 @@ public NumberRangeQueryDescriptor Field(Expression /// /// Greater than. @@ -538,12 +478,6 @@ public NumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.QueryDs return Self; } - public NumberRangeQueryDescriptor To(double? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -557,12 +491,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - if (GtValue.HasValue) { writer.WritePropertyName("gt"); @@ -599,12 +527,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (ToValue.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(ToValue.Value); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs index 71f3ccffc82..5e175e78f1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermRangeQuery.g.cs @@ -48,12 +48,6 @@ public override TermRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -89,12 +83,6 @@ public override TermRangeQuery Read(ref Utf8JsonReader reader, Type typeToConver variant.Relation = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -117,12 +105,6 @@ public override void Write(Utf8JsonWriter writer, TermRangeQuery value, JsonSeri writer.WriteNumberValue(value.Boost.Value); } - if (!string.IsNullOrEmpty(value.From)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(value.From); - } - if (!string.IsNullOrEmpty(value.Gt)) { writer.WritePropertyName("gt"); @@ -159,12 +141,6 @@ public override void Write(Utf8JsonWriter writer, TermRangeQuery value, JsonSeri JsonSerializer.Serialize(writer, value.Relation, options); } - if (!string.IsNullOrEmpty(value.To)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(value.To); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -190,7 +166,6 @@ public TermRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// public float? Boost { get; set; } public Elastic.Clients.Elasticsearch.Field Field { get; set; } - public string? From { get; set; } /// /// @@ -227,7 +202,6 @@ public TermRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// /// public Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? Relation { get; set; } - public string? To { get; set; } } public sealed partial class TermRangeQueryDescriptor : SerializableDescriptor> @@ -240,14 +214,12 @@ public TermRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private string? FromValue { get; set; } private string? GtValue { get; set; } private string? GteValue { get; set; } private string? LtValue { get; set; } private string? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? ToValue { get; set; } /// /// @@ -281,12 +253,6 @@ public TermRangeQueryDescriptor Field(Expression From(string? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -348,12 +314,6 @@ public TermRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearc return Self; } - public TermRangeQueryDescriptor To(string? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -367,12 +327,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (!string.IsNullOrEmpty(FromValue)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(FromValue); - } - if (!string.IsNullOrEmpty(GtValue)) { writer.WritePropertyName("gt"); @@ -409,12 +363,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (!string.IsNullOrEmpty(ToValue)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(ToValue); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -430,14 +378,12 @@ public TermRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } - private string? FromValue { get; set; } private string? GtValue { get; set; } private string? GteValue { get; set; } private string? LtValue { get; set; } private string? LteValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? ToValue { get; set; } /// /// @@ -471,12 +417,6 @@ public TermRangeQueryDescriptor Field(Expression /// /// Greater than. @@ -538,12 +478,6 @@ public TermRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.QueryDsl. return Self; } - public TermRangeQueryDescriptor To(string? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -557,12 +491,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(BoostValue.Value); } - if (!string.IsNullOrEmpty(FromValue)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(FromValue); - } - if (!string.IsNullOrEmpty(GtValue)) { writer.WritePropertyName("gt"); @@ -599,12 +527,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationValue, options); } - if (!string.IsNullOrEmpty(ToValue)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(ToValue); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs index 3a45d04d350..582463372a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs @@ -54,12 +54,6 @@ public override UntypedRangeQuery Read(ref Utf8JsonReader reader, Type typeToCon continue; } - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - if (property == "gt") { variant.Gt = JsonSerializer.Deserialize(ref reader, options); @@ -101,12 +95,6 @@ public override UntypedRangeQuery Read(ref Utf8JsonReader reader, Type typeToCon variant.TimeZone = JsonSerializer.Deserialize(ref reader, options); continue; } - - if (property == "to") - { - variant.To = JsonSerializer.Deserialize(ref reader, options); - continue; - } } } @@ -135,12 +123,6 @@ public override void Write(Utf8JsonWriter writer, UntypedRangeQuery value, JsonS writer.WriteStringValue(value.Format); } - if (value.From is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, value.From, options); - } - if (value.Gt is not null) { writer.WritePropertyName("gt"); @@ -183,12 +165,6 @@ public override void Write(Utf8JsonWriter writer, UntypedRangeQuery value, JsonS writer.WriteStringValue(value.TimeZone); } - if (value.To is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, value.To, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -221,7 +197,6 @@ public UntypedRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// /// public string? Format { get; set; } - public object? From { get; set; } /// /// @@ -265,7 +240,6 @@ public UntypedRangeQuery(Elastic.Clients.Elasticsearch.Field field) /// /// public string? TimeZone { get; set; } - public object? To { get; set; } } public sealed partial class UntypedRangeQueryDescriptor : SerializableDescriptor> @@ -279,7 +253,6 @@ public UntypedRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private object? FromValue { get; set; } private object? GtValue { get; set; } private object? GteValue { get; set; } private object? LtValue { get; set; } @@ -287,7 +260,6 @@ public UntypedRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private object? ToValue { get; set; } /// /// @@ -332,12 +304,6 @@ public UntypedRangeQueryDescriptor Format(string? format) return Self; } - public UntypedRangeQueryDescriptor From(object? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -410,12 +376,6 @@ public UntypedRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public UntypedRangeQueryDescriptor To(object? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -435,12 +395,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -483,12 +437,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } @@ -505,7 +453,6 @@ public UntypedRangeQueryDescriptor() : base() private float? BoostValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } private string? FormatValue { get; set; } - private object? FromValue { get; set; } private object? GtValue { get; set; } private object? GteValue { get; set; } private object? LtValue { get; set; } @@ -513,7 +460,6 @@ public UntypedRangeQueryDescriptor() : base() private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? RelationValue { get; set; } private string? TimeZoneValue { get; set; } - private object? ToValue { get; set; } /// /// @@ -558,12 +504,6 @@ public UntypedRangeQueryDescriptor Format(string? format) return Self; } - public UntypedRangeQueryDescriptor From(object? from) - { - FromValue = from; - return Self; - } - /// /// /// Greater than. @@ -636,12 +576,6 @@ public UntypedRangeQueryDescriptor TimeZone(string? timeZone) return Self; } - public UntypedRangeQueryDescriptor To(object? to) - { - ToValue = to; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { if (FieldValue is null) @@ -661,12 +595,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FormatValue); } - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - if (GtValue is not null) { writer.WritePropertyName("gt"); @@ -709,12 +637,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(TimeZoneValue); } - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs index 92c8db94d10..b2263dece8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs @@ -31,7 +31,7 @@ public sealed partial class QueryRulesetListItem { /// /// - /// A map of criteria type to the number of rules of that type + /// A map of criteria type (e.g. exact) to the number of rules of that type /// /// [JsonInclude, JsonPropertyName("rule_criteria_types_counts")] @@ -52,4 +52,12 @@ public sealed partial class QueryRulesetListItem /// [JsonInclude, JsonPropertyName("rule_total_count")] public int RuleTotalCount { get; init; } + + /// + /// + /// A map of rule type (e.g. pinned) to the number of rules of that type + /// + /// + [JsonInclude, JsonPropertyName("rule_type_counts")] + public IReadOnlyDictionary RuleTypeCounts { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs index 472cadce332..43a5eca1ad0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKey.g.cs @@ -29,13 +29,24 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class ApiKey { + /// + /// + /// The access granted to cross-cluster API keys. + /// The access is composed of permissions for cross cluster search and cross cluster replication. + /// At least one of them must be specified. + /// When specified, the new access assignment fully replaces the previously assigned access. + /// + /// + [JsonInclude, JsonPropertyName("access")] + public Elastic.Clients.Elasticsearch.Security.Access? Access { get; init; } + /// /// /// Creation time for the API key in milliseconds. /// /// [JsonInclude, JsonPropertyName("creation")] - public long? Creation { get; init; } + public long Creation { get; init; } /// /// @@ -60,7 +71,15 @@ public sealed partial class ApiKey /// /// [JsonInclude, JsonPropertyName("invalidated")] - public bool? Invalidated { get; init; } + public bool Invalidated { get; init; } + + /// + /// + /// If the key has been invalidated, invalidation time in milliseconds. + /// + /// + [JsonInclude, JsonPropertyName("invalidation")] + public long? Invalidation { get; init; } /// /// @@ -78,7 +97,7 @@ public sealed partial class ApiKey /// /// [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary? Metadata { get; init; } + public IReadOnlyDictionary Metadata { get; init; } /// /// @@ -102,7 +121,7 @@ public sealed partial class ApiKey /// /// [JsonInclude, JsonPropertyName("realm")] - public string? Realm { get; init; } + public string Realm { get; init; } /// /// @@ -120,14 +139,28 @@ public sealed partial class ApiKey /// [JsonInclude, JsonPropertyName("role_descriptors")] public IReadOnlyDictionary? RoleDescriptors { get; init; } + + /// + /// + /// Sorting values when using the sort parameter with the security.query_api_keys API. + /// + /// [JsonInclude, JsonPropertyName("_sort")] public IReadOnlyCollection? Sort { get; init; } + /// + /// + /// The type of the API key (e.g. rest or cross_cluster). + /// + /// + [JsonInclude, JsonPropertyName("type")] + public Elastic.Clients.Elasticsearch.Security.ApiKeyType Type { get; init; } + /// /// /// Principal for which this API key was created /// /// [JsonInclude, JsonPropertyName("username")] - public string? Username { get; init; } + public string Username { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs new file mode 100644 index 00000000000..ecd48deda3c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class AuthenticateApiKey +{ + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string? Name { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs index f5b0374f997..7a5aee91b59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/ParentTaskInfo.g.cs @@ -37,6 +37,15 @@ public sealed partial class ParentTaskInfo public bool? Cancelled { get; init; } [JsonInclude, JsonPropertyName("children")] public IReadOnlyCollection? Children { get; init; } + + /// + /// + /// Human readable text that identifies the particular request that the task is performing. + /// For example, it might identify the search request being performed by a search task. + /// Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. + /// Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request. + /// + /// [JsonInclude, JsonPropertyName("description")] public string? Description { get; init; } [JsonInclude, JsonPropertyName("headers")] @@ -56,7 +65,10 @@ public sealed partial class ParentTaskInfo /// /// - /// Task status information can vary wildly from task to task. + /// The internal status of the task, which varies from task to task. + /// The format also varies. + /// While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. + /// Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases. /// /// [JsonInclude, JsonPropertyName("status")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs index d8fb4dc6ccd..a07febde4e8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Tasks/TaskInfo.g.cs @@ -35,6 +35,15 @@ public sealed partial class TaskInfo public bool Cancellable { get; init; } [JsonInclude, JsonPropertyName("cancelled")] public bool? Cancelled { get; init; } + + /// + /// + /// Human readable text that identifies the particular request that the task is performing. + /// For example, it might identify the search request being performed by a search task. + /// Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. + /// Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request. + /// + /// [JsonInclude, JsonPropertyName("description")] public string? Description { get; init; } [JsonInclude, JsonPropertyName("headers")] @@ -54,7 +63,10 @@ public sealed partial class TaskInfo /// /// - /// Task status information can vary wildly from task to task. + /// The internal status of the task, which varies from task to task. + /// The format also varies. + /// While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. + /// Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases. /// /// [JsonInclude, JsonPropertyName("status")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs new file mode 100644 index 00000000000..1476c5994f9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/FieldStat.g.cs @@ -0,0 +1,50 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +public sealed partial class FieldStat +{ + [JsonInclude, JsonPropertyName("cardinality")] + public int Cardinality { get; init; } + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("earliest")] + public string? Earliest { get; init; } + [JsonInclude, JsonPropertyName("latest")] + public string? Latest { get; init; } + [JsonInclude, JsonPropertyName("max_value")] + public int? MaxValue { get; init; } + [JsonInclude, JsonPropertyName("mean_value")] + public int? MeanValue { get; init; } + [JsonInclude, JsonPropertyName("median_value")] + public int? MedianValue { get; init; } + [JsonInclude, JsonPropertyName("min_value")] + public int? MinValue { get; init; } + [JsonInclude, JsonPropertyName("top_hits")] + public IReadOnlyCollection TopHits { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs new file mode 100644 index 00000000000..a2eae50ae63 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TextStructure/TopHit.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TextStructure; + +public sealed partial class TopHit +{ + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + [JsonInclude, JsonPropertyName("value")] + public object Value { get; init; } +} \ No newline at end of file From 7bc23f3d02da49a430ed39a7065082f5a14d5f17 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Mon, 13 Jan 2025 11:05:12 +0100 Subject: [PATCH 21/28] Fix potential ArgumentException with ConditionalWeakTable (#8444) (#8446) Co-authored-by: gpetrou <4172445+gpetrou@users.noreply.github.com> --- .../DefaultRequestResponseSerializer.cs | 26 ++++++++++++++----- .../Serialization/DefaultSourceSerializer.cs | 24 ++++++++++++----- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs index 7669ee7dd10..915c0552dcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs @@ -24,6 +24,10 @@ internal sealed class DefaultRequestResponseSerializer : SystemTextJsonSerialize { private readonly IElasticsearchClientSettings _settings; +#if !NET8_0_OR_GREATER + private readonly object _lock = new(); +#endif + public DefaultRequestResponseSerializer(IElasticsearchClientSettings settings) : base(new DefaultRequestResponseSerializerOptionsProvider(settings)) { @@ -62,15 +66,23 @@ private void LinkSettings(IElasticsearchClientSettings settings) var options = GetJsonSerializerOptions(SerializationFormatting.None); var indentedOptions = GetJsonSerializerOptions(SerializationFormatting.Indented); - if (!ElasticsearchClient.SettingsTable.TryGetValue(options, out _)) - { - ElasticsearchClient.SettingsTable.Add(options, settings); - } - - if (!ElasticsearchClient.SettingsTable.TryGetValue(indentedOptions, out _)) +#if NET8_0_OR_GREATER + ElasticsearchClient.SettingsTable.TryAdd(options, settings); + ElasticsearchClient.SettingsTable.TryAdd(indentedOptions, settings); +#else + lock (_lock) { - ElasticsearchClient.SettingsTable.Add(indentedOptions, settings); + if (!ElasticsearchClient.SettingsTable.TryGetValue(options, out _)) + { + ElasticsearchClient.SettingsTable.Add(options, settings); + } + + if (!ElasticsearchClient.SettingsTable.TryGetValue(indentedOptions, out _)) + { + ElasticsearchClient.SettingsTable.Add(indentedOptions, settings); + } } +#endif } } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs index de2bc568f4d..2b986d4fa07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs @@ -21,6 +21,10 @@ namespace Elastic.Clients.Elasticsearch.Serialization; public class DefaultSourceSerializer : SystemTextJsonSerializer { +#if !NET8_0_OR_GREATER + private readonly object _lock = new(); +#endif + /// /// Constructs a new instance that accepts an that can /// be provided to customize the default . @@ -43,15 +47,23 @@ private void LinkSettings(IElasticsearchClientSettings settings) var options = GetJsonSerializerOptions(SerializationFormatting.None); var indentedOptions = GetJsonSerializerOptions(SerializationFormatting.Indented); - if (!ElasticsearchClient.SettingsTable.TryGetValue(options, out _)) +#if NET8_0_OR_GREATER + ElasticsearchClient.SettingsTable.TryAdd(options, settings); + ElasticsearchClient.SettingsTable.TryAdd(indentedOptions, settings); +#else + lock (_lock) { - ElasticsearchClient.SettingsTable.Add(options, settings); - } + if (!ElasticsearchClient.SettingsTable.TryGetValue(options, out _)) + { + ElasticsearchClient.SettingsTable.Add(options, settings); + } - if (!ElasticsearchClient.SettingsTable.TryGetValue(indentedOptions, out _)) - { - ElasticsearchClient.SettingsTable.Add(indentedOptions, settings); + if (!ElasticsearchClient.SettingsTable.TryGetValue(indentedOptions, out _)) + { + ElasticsearchClient.SettingsTable.Add(indentedOptions, settings); + } } +#endif } } From 617241e354186b43f3d970a6e1a00c61990462b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 16 Mar 2025 12:35:18 +0100 Subject: [PATCH 22/28] Remove serverless client (#8451) (#8452) Co-authored-by: Florian Bernd --- Elasticsearch.sln | 7 - Packages.Serverless.slnf | 8 - .../ElasticsearchClientProductRegistration.cs | 96 - ...ic.Clients.Elasticsearch.Serverless.csproj | 43 - .../_Generated/Api/ApiUrlLookup.g.cs | 323 - .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 151 - .../AsyncSearchStatusResponse.g.cs | 102 - .../AsyncSearch/DeleteAsyncSearchRequest.g.cs | 134 - .../DeleteAsyncSearchResponse.g.cs | 38 - .../AsyncSearch/GetAsyncSearchRequest.g.cs | 195 - .../AsyncSearch/GetAsyncSearchResponse.g.cs | 77 - .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 3366 --------- .../SubmitAsyncSearchResponse.g.cs | 77 - .../_Generated/Api/BulkRequest.g.cs | 337 - .../_Generated/Api/BulkResponse.g.cs | 37 - .../_Generated/Api/ClearScrollRequest.g.cs | 114 - .../_Generated/Api/ClearScrollResponse.g.cs | 35 - .../Api/ClosePointInTimeRequest.g.cs | 114 - .../Api/ClosePointInTimeResponse.g.cs | 35 - .../Api/Cluster/AllocationExplainRequest.g.cs | 224 - .../Cluster/AllocationExplainResponse.g.cs | 81 - .../Api/Cluster/ClusterInfoRequest.g.cs | 89 - .../Api/Cluster/ClusterInfoResponse.g.cs | 41 - .../Api/Cluster/ClusterStatsRequest.g.cs | 133 - .../Api/Cluster/ClusterStatsResponse.g.cs | 86 - .../DeleteComponentTemplateRequest.g.cs | 127 - .../DeleteComponentTemplateResponse.g.cs | 38 - .../ExistsComponentTemplateRequest.g.cs | 127 - .../ExistsComponentTemplateResponse.g.cs | 31 - .../Cluster/GetClusterSettingsRequest.g.cs | 147 - .../Cluster/GetClusterSettingsResponse.g.cs | 37 - .../Cluster/GetComponentTemplateRequest.g.cs | 165 - .../Cluster/GetComponentTemplateResponse.g.cs | 33 - .../_Generated/Api/Cluster/HealthRequest.g.cs | 352 - .../Api/Cluster/HealthResponse.g.cs | 163 - .../Api/Cluster/PendingTasksRequest.g.cs | 125 - .../Api/Cluster/PendingTasksResponse.g.cs | 33 - .../Cluster/PutComponentTemplateRequest.g.cs | 473 -- .../Cluster/PutComponentTemplateResponse.g.cs | 38 - .../_Generated/Api/CountRequest.g.cs | 503 -- .../_Generated/Api/CountResponse.g.cs | 35 - .../_Generated/Api/CreateRequest.g.cs | 244 - .../_Generated/Api/CreateResponse.g.cs | 47 - .../_Generated/Api/DeleteByQueryRequest.g.cs | 891 --- .../_Generated/Api/DeleteByQueryResponse.g.cs | 63 - .../Api/DeleteByQueryRethrottleRequest.g.cs | 111 - .../Api/DeleteByQueryRethrottleResponse.g.cs | 52 - .../_Generated/Api/DeleteRequest.g.cs | 293 - .../_Generated/Api/DeleteResponse.g.cs | 47 - .../_Generated/Api/DeleteScriptRequest.g.cs | 161 - .../_Generated/Api/DeleteScriptResponse.g.cs | 38 - .../Api/Enrich/DeletePolicyRequest.g.cs | 89 - .../Api/Enrich/DeletePolicyResponse.g.cs | 38 - .../Api/Enrich/EnrichStatsRequest.g.cs | 79 - .../Api/Enrich/EnrichStatsResponse.g.cs | 54 - .../Api/Enrich/ExecutePolicyRequest.g.cs | 105 - .../Api/Enrich/ExecutePolicyResponse.g.cs | 35 - .../Api/Enrich/GetPolicyRequest.g.cs | 97 - .../Api/Enrich/GetPolicyResponse.g.cs | 33 - .../Api/Enrich/PutPolicyRequest.g.cs | 440 -- .../Api/Enrich/PutPolicyResponse.g.cs | 38 - .../_Generated/Api/Eql/EqlDeleteRequest.g.cs | 125 - .../_Generated/Api/Eql/EqlDeleteResponse.g.cs | 38 - .../_Generated/Api/Eql/EqlGetRequest.g.cs | 161 - .../_Generated/Api/Eql/EqlGetResponse.g.cs | 86 - .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 1141 --- .../_Generated/Api/Eql/EqlSearchResponse.g.cs | 86 - .../Api/Eql/GetEqlStatusRequest.g.cs | 122 - .../Api/Eql/GetEqlStatusResponse.g.cs | 78 - .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 475 -- .../Api/Esql/EsqlQueryResponse.g.cs | 31 - .../_Generated/Api/ExistsRequest.g.cs | 329 - .../_Generated/Api/ExistsResponse.g.cs | 31 - .../_Generated/Api/ExistsSourceRequest.g.cs | 308 - .../_Generated/Api/ExistsSourceResponse.g.cs | 31 - .../_Generated/Api/ExplainRequest.g.cs | 469 -- .../_Generated/Api/ExplainResponse.g.cs | 41 - .../_Generated/Api/FieldCapsRequest.g.cs | 481 -- .../_Generated/Api/FieldCapsResponse.g.cs | 37 - .../_Generated/Api/GetRequest.g.cs | 325 - .../_Generated/Api/GetResponse.g.cs | 52 - .../_Generated/Api/GetScriptRequest.g.cs | 140 - .../_Generated/Api/GetScriptResponse.g.cs | 37 - .../_Generated/Api/GetSourceRequest.g.cs | 309 - .../_Generated/Api/GetSourceResponse.g.cs | 31 - .../_Generated/Api/Graph/ExploreRequest.g.cs | 655 -- .../_Generated/Api/Graph/ExploreResponse.g.cs | 41 - .../_Generated/Api/HealthReportRequest.g.cs | 187 - .../_Generated/Api/HealthReportResponse.g.cs | 37 - .../IndexManagement/AnalyzeIndexRequest.g.cs | 601 -- .../IndexManagement/AnalyzeIndexResponse.g.cs | 35 - .../IndexManagement/ClearCacheRequest.g.cs | 267 - .../IndexManagement/ClearCacheResponse.g.cs | 33 - .../IndexManagement/CloseIndexRequest.g.cs | 303 - .../IndexManagement/CloseIndexResponse.g.cs | 38 - .../CreateDataStreamRequest.g.cs | 123 - .../CreateDataStreamResponse.g.cs | 38 - .../IndexManagement/CreateIndexRequest.g.cs | 493 -- .../IndexManagement/CreateIndexResponse.g.cs | 37 - .../DataStreamsStatsRequest.g.cs | 115 - .../DataStreamsStatsResponse.g.cs | 79 - .../IndexManagement/DeleteAliasRequest.g.cs | 177 - .../IndexManagement/DeleteAliasResponse.g.cs | 38 - .../DeleteDataLifecycleRequest.g.cs | 137 - .../DeleteDataLifecycleResponse.g.cs | 38 - .../DeleteDataStreamRequest.g.cs | 121 - .../DeleteDataStreamResponse.g.cs | 38 - .../IndexManagement/DeleteIndexRequest.g.cs | 224 - .../IndexManagement/DeleteIndexResponse.g.cs | 40 - .../DeleteIndexTemplateRequest.g.cs | 125 - .../DeleteIndexTemplateResponse.g.cs | 38 - .../IndexManagement/ExistsAliasRequest.g.cs | 225 - .../IndexManagement/ExistsAliasResponse.g.cs | 31 - .../ExistsIndexTemplateRequest.g.cs | 105 - .../ExistsIndexTemplateResponse.g.cs | 31 - .../Api/IndexManagement/ExistsRequest.g.cs | 237 - .../Api/IndexManagement/ExistsResponse.g.cs | 31 - .../ExplainDataLifecycleRequest.g.cs | 161 - .../ExplainDataLifecycleResponse.g.cs | 34 - .../Api/IndexManagement/FlushRequest.g.cs | 263 - .../Api/IndexManagement/FlushResponse.g.cs | 33 - .../IndexManagement/ForcemergeRequest.g.cs | 293 - .../IndexManagement/ForcemergeResponse.g.cs | 42 - .../Api/IndexManagement/GetAliasRequest.g.cs | 233 - .../Api/IndexManagement/GetAliasResponse.g.cs | 37 - .../GetDataLifecycleRequest.g.cs | 141 - .../GetDataLifecycleResponse.g.cs | 33 - .../IndexManagement/GetDataStreamRequest.g.cs | 163 - .../GetDataStreamResponse.g.cs | 33 - .../Api/IndexManagement/GetIndexRequest.g.cs | 274 - .../Api/IndexManagement/GetIndexResponse.g.cs | 37 - .../GetIndexTemplateRequest.g.cs | 161 - .../GetIndexTemplateResponse.g.cs | 33 - .../GetIndicesSettingsRequest.g.cs | 295 - .../GetIndicesSettingsResponse.g.cs | 37 - .../IndexManagement/GetMappingRequest.g.cs | 233 - .../IndexManagement/GetMappingResponse.g.cs | 37 - .../IndexManagement/IndicesStatsRequest.g.cs | 348 - .../IndexManagement/IndicesStatsResponse.g.cs | 37 - .../MigrateToDataStreamRequest.g.cs | 139 - .../MigrateToDataStreamResponse.g.cs | 38 - .../ModifyDataStreamRequest.g.cs | 166 - .../ModifyDataStreamResponse.g.cs | 38 - .../Api/IndexManagement/OpenIndexRequest.g.cs | 243 - .../IndexManagement/OpenIndexResponse.g.cs | 35 - .../Api/IndexManagement/PutAliasRequest.g.cs | 487 -- .../Api/IndexManagement/PutAliasResponse.g.cs | 38 - .../PutDataLifecycleRequest.g.cs | 180 - .../PutDataLifecycleResponse.g.cs | 38 - .../PutIndexTemplateRequest.g.cs | 784 -- .../PutIndexTemplateResponse.g.cs | 38 - .../PutIndicesSettingsRequest.g.cs | 330 - .../PutIndicesSettingsResponse.g.cs | 38 - .../IndexManagement/PutMappingRequest.g.cs | 1009 --- .../IndexManagement/PutMappingResponse.g.cs | 40 - .../Api/IndexManagement/RecoveryRequest.g.cs | 313 - .../Api/IndexManagement/RecoveryResponse.g.cs | 37 - .../Api/IndexManagement/RefreshRequest.g.cs | 197 - .../Api/IndexManagement/RefreshResponse.g.cs | 33 - .../IndexManagement/ResolveIndexRequest.g.cs | 149 - .../IndexManagement/ResolveIndexResponse.g.cs | 37 - .../Api/IndexManagement/RolloverRequest.g.cs | 544 -- .../Api/IndexManagement/RolloverResponse.g.cs | 45 - .../Api/IndexManagement/SegmentsRequest.g.cs | 197 - .../Api/IndexManagement/SegmentsResponse.g.cs | 35 - .../SimulateIndexTemplateRequest.g.cs | 121 - .../SimulateIndexTemplateResponse.g.cs | 35 - .../SimulateTemplateRequest.g.cs | 794 -- .../SimulateTemplateResponse.g.cs | 35 - .../IndexManagement/UpdateAliasesRequest.g.cs | 311 - .../UpdateAliasesResponse.g.cs | 38 - .../IndexManagement/ValidateQueryRequest.g.cs | 461 -- .../ValidateQueryResponse.g.cs | 39 - .../_Generated/Api/IndexRequest.g.cs | 322 - .../_Generated/Api/IndexResponse.g.cs | 47 - .../Api/Inference/DeleteInferenceRequest.g.cs | 133 - .../Inference/DeleteInferenceResponse.g.cs | 40 - .../Api/Inference/GetInferenceRequest.g.cs | 105 - .../Api/Inference/GetInferenceResponse.g.cs | 33 - .../Api/Inference/InferenceRequest.g.cs | 199 - .../Api/Inference/InferenceResponse.g.cs | 31 - .../Api/Inference/PutInferenceRequest.g.cs | 152 - .../Api/Inference/PutInferenceResponse.g.cs | 70 - .../_Generated/Api/InfoRequest.g.cs | 79 - .../_Generated/Api/InfoResponse.g.cs | 41 - .../Ingest/DeleteGeoipDatabaseRequest.g.cs | 159 - .../Ingest/DeleteGeoipDatabaseResponse.g.cs | 38 - .../DeleteIpLocationDatabaseRequest.g.cs | 162 - .../DeleteIpLocationDatabaseResponse.g.cs | 38 - .../Api/Ingest/DeletePipelineRequest.g.cs | 161 - .../Api/Ingest/DeletePipelineResponse.g.cs | 38 - .../Api/Ingest/GeoIpStatsRequest.g.cs | 79 - .../Api/Ingest/GeoIpStatsResponse.g.cs | 46 - .../Api/Ingest/GetGeoipDatabaseRequest.g.cs | 154 - .../Api/Ingest/GetGeoipDatabaseResponse.g.cs | 33 - .../Ingest/GetIpLocationDatabaseRequest.g.cs | 153 - .../Ingest/GetIpLocationDatabaseResponse.g.cs | 33 - .../Api/Ingest/GetPipelineRequest.g.cs | 174 - .../Api/Ingest/GetPipelineResponse.g.cs | 37 - .../Api/Ingest/ProcessorGrokRequest.g.cs | 83 - .../Api/Ingest/ProcessorGrokResponse.g.cs | 33 - .../Api/Ingest/PutGeoipDatabaseRequest.g.cs | 308 - .../Api/Ingest/PutGeoipDatabaseResponse.g.cs | 38 - .../Ingest/PutIpLocationDatabaseRequest.g.cs | 221 - .../Ingest/PutIpLocationDatabaseResponse.g.cs | 38 - .../Api/Ingest/PutPipelineRequest.g.cs | 679 -- .../Api/Ingest/PutPipelineResponse.g.cs | 38 - .../Api/Ingest/SimulateRequest.g.cs | 431 -- .../Api/Ingest/SimulateResponse.g.cs | 33 - .../LicenseManagement/GetLicenseRequest.g.cs | 103 - .../LicenseManagement/GetLicenseResponse.g.cs | 33 - ...earTrainedModelDeploymentCacheRequest.g.cs | 95 - ...arTrainedModelDeploymentCacheResponse.g.cs | 33 - .../Api/MachineLearning/CloseJobRequest.g.cs | 176 - .../Api/MachineLearning/CloseJobResponse.g.cs | 33 - .../DeleteCalendarEventRequest.g.cs | 93 - .../DeleteCalendarEventResponse.g.cs | 38 - .../DeleteCalendarJobRequest.g.cs | 93 - .../DeleteCalendarJobResponse.g.cs | 55 - .../DeleteCalendarRequest.g.cs | 89 - .../DeleteCalendarResponse.g.cs | 38 - .../DeleteDataFrameAnalyticsRequest.g.cs | 154 - .../DeleteDataFrameAnalyticsResponse.g.cs | 38 - .../DeleteDatafeedRequest.g.cs | 105 - .../DeleteDatafeedResponse.g.cs | 38 - .../DeleteExpiredDataRequest.g.cs | 168 - .../DeleteExpiredDataResponse.g.cs | 33 - .../MachineLearning/DeleteFilterRequest.g.cs | 91 - .../MachineLearning/DeleteFilterResponse.g.cs | 38 - .../DeleteForecastRequest.g.cs | 151 - .../DeleteForecastResponse.g.cs | 38 - .../Api/MachineLearning/DeleteJobRequest.g.cs | 155 - .../MachineLearning/DeleteJobResponse.g.cs | 38 - .../DeleteModelSnapshotRequest.g.cs | 99 - .../DeleteModelSnapshotResponse.g.cs | 38 - .../DeleteTrainedModelAliasRequest.g.cs | 99 - .../DeleteTrainedModelAliasResponse.g.cs | 38 - .../DeleteTrainedModelRequest.g.cs | 105 - .../DeleteTrainedModelResponse.g.cs | 38 - .../EstimateModelMemoryRequest.g.cs | 343 - .../EstimateModelMemoryResponse.g.cs | 33 - .../EvaluateDataFrameRequest.g.cs | 365 - .../EvaluateDataFrameResponse.g.cs | 37 - .../ExplainDataFrameAnalyticsRequest.g.cs | 825 --- .../ExplainDataFrameAnalyticsResponse.g.cs | 46 - .../Api/MachineLearning/FlushJobRequest.g.cs | 236 - .../Api/MachineLearning/FlushJobResponse.g.cs | 42 - .../Api/MachineLearning/ForecastRequest.g.cs | 180 - .../Api/MachineLearning/ForecastResponse.g.cs | 35 - .../MachineLearning/GetBucketsRequest.g.cs | 627 -- .../MachineLearning/GetBucketsResponse.g.cs | 35 - .../GetCalendarEventsRequest.g.cs | 167 - .../GetCalendarEventsResponse.g.cs | 35 - .../MachineLearning/GetCalendarsRequest.g.cs | 186 - .../MachineLearning/GetCalendarsResponse.g.cs | 35 - .../MachineLearning/GetCategoriesRequest.g.cs | 210 - .../GetCategoriesResponse.g.cs | 35 - .../GetDataFrameAnalyticsRequest.g.cs | 261 - .../GetDataFrameAnalyticsResponse.g.cs | 41 - .../GetDataFrameAnalyticsStatsRequest.g.cs | 248 - .../GetDataFrameAnalyticsStatsResponse.g.cs | 41 - .../GetDatafeedStatsRequest.g.cs | 169 - .../GetDatafeedStatsResponse.g.cs | 35 - .../MachineLearning/GetDatafeedsRequest.g.cs | 187 - .../MachineLearning/GetDatafeedsResponse.g.cs | 35 - .../MachineLearning/GetFiltersRequest.g.cs | 129 - .../MachineLearning/GetFiltersResponse.g.cs | 35 - .../GetInfluencersRequest.g.cs | 390 - .../GetInfluencersResponse.g.cs | 41 - .../MachineLearning/GetJobStatsRequest.g.cs | 157 - .../MachineLearning/GetJobStatsResponse.g.cs | 35 - .../Api/MachineLearning/GetJobsRequest.g.cs | 185 - .../Api/MachineLearning/GetJobsResponse.g.cs | 35 - .../GetMemoryStatsRequest.g.cs | 135 - .../GetMemoryStatsResponse.g.cs | 37 - .../GetModelSnapshotUpgradeStatsRequest.g.cs | 153 - .../GetModelSnapshotUpgradeStatsResponse.g.cs | 35 - .../GetModelSnapshotsRequest.g.cs | 492 -- .../GetModelSnapshotsResponse.g.cs | 35 - .../GetOverallBucketsRequest.g.cs | 312 - .../GetOverallBucketsResponse.g.cs | 41 - .../MachineLearning/GetRecordsRequest.g.cs | 586 -- .../MachineLearning/GetRecordsResponse.g.cs | 35 - .../GetTrainedModelsRequest.g.cs | 261 - .../GetTrainedModelsResponse.g.cs | 41 - .../GetTrainedModelsStatsRequest.g.cs | 189 - .../GetTrainedModelsStatsResponse.g.cs | 46 - .../InferTrainedModelRequest.g.cs | 289 - .../InferTrainedModelResponse.g.cs | 33 - .../Api/MachineLearning/MlInfoRequest.g.cs | 91 - .../Api/MachineLearning/MlInfoResponse.g.cs | 39 - .../Api/MachineLearning/OpenJobRequest.g.cs | 128 - .../Api/MachineLearning/OpenJobResponse.g.cs | 41 - .../PostCalendarEventsRequest.g.cs | 174 - .../PostCalendarEventsResponse.g.cs | 33 - .../PreviewDataFrameAnalyticsRequest.g.cs | 250 - .../PreviewDataFrameAnalyticsResponse.g.cs | 38 - .../PutCalendarJobRequest.g.cs | 93 - .../PutCalendarJobResponse.g.cs | 55 - .../MachineLearning/PutCalendarRequest.g.cs | 142 - .../MachineLearning/PutCalendarResponse.g.cs | 55 - .../PutDataFrameAnalyticsRequest.g.cs | 936 --- .../PutDataFrameAnalyticsResponse.g.cs | 57 - .../MachineLearning/PutDatafeedRequest.g.cs | 1314 ---- .../MachineLearning/PutDatafeedResponse.g.cs | 61 - .../Api/MachineLearning/PutFilterRequest.g.cs | 148 - .../MachineLearning/PutFilterResponse.g.cs | 37 - .../Api/MachineLearning/PutJobRequest.g.cs | 1222 ---- .../Api/MachineLearning/PutJobResponse.g.cs | 71 - .../PutTrainedModelAliasRequest.g.cs | 145 - .../PutTrainedModelAliasResponse.g.cs | 38 - .../PutTrainedModelDefinitionPartRequest.g.cs | 162 - ...PutTrainedModelDefinitionPartResponse.g.cs | 38 - .../PutTrainedModelRequest.g.cs | 935 --- .../PutTrainedModelResponse.g.cs | 161 - .../PutTrainedModelVocabularyRequest.g.cs | 168 - .../PutTrainedModelVocabularyResponse.g.cs | 38 - .../Api/MachineLearning/ResetJobRequest.g.cs | 133 - .../Api/MachineLearning/ResetJobResponse.g.cs | 38 - .../RevertModelSnapshotRequest.g.cs | 136 - .../RevertModelSnapshotResponse.g.cs | 33 - .../SetUpgradeModeRequest.g.cs | 137 - .../SetUpgradeModeResponse.g.cs | 38 - .../StartDataFrameAnalyticsRequest.g.cs | 172 - .../StartDataFrameAnalyticsResponse.g.cs | 45 - .../MachineLearning/StartDatafeedRequest.g.cs | 200 - .../StartDatafeedResponse.g.cs | 48 - .../StartTrainedModelDeploymentRequest.g.cs | 225 - .../StartTrainedModelDeploymentResponse.g.cs | 33 - .../StopDataFrameAnalyticsRequest.g.cs | 227 - .../StopDataFrameAnalyticsResponse.g.cs | 33 - .../MachineLearning/StopDatafeedRequest.g.cs | 172 - .../MachineLearning/StopDatafeedResponse.g.cs | 33 - .../StopTrainedModelDeploymentRequest.g.cs | 127 - .../StopTrainedModelDeploymentResponse.g.cs | 33 - .../UpdateDataFrameAnalyticsRequest.g.cs | 325 - .../UpdateDataFrameAnalyticsResponse.g.cs | 55 - .../UpdateDatafeedRequest.g.cs | 1306 ---- .../UpdateDatafeedResponse.g.cs | 61 - .../MachineLearning/UpdateFilterRequest.g.cs | 170 - .../MachineLearning/UpdateFilterResponse.g.cs | 37 - .../Api/MachineLearning/UpdateJobRequest.g.cs | 1122 --- .../MachineLearning/UpdateJobResponse.g.cs | 73 - .../UpdateModelSnapshotRequest.g.cs | 154 - .../UpdateModelSnapshotResponse.g.cs | 35 - .../UpgradeJobSnapshotRequest.g.cs | 145 - .../UpgradeJobSnapshotResponse.g.cs | 46 - .../ValidateDetectorRequest.g.cs | 163 - .../ValidateDetectorResponse.g.cs | 38 - .../Api/MachineLearning/ValidateRequest.g.cs | 602 -- .../Api/MachineLearning/ValidateResponse.g.cs | 38 - .../_Generated/Api/MultiGetRequest.g.cs | 499 -- .../_Generated/Api/MultiGetResponse.g.cs | 33 - .../_Generated/Api/MultiSearchRequest.g.cs | 475 -- .../_Generated/Api/MultiSearchResponse.g.cs | 35 - .../Api/MultiSearchTemplateRequest.g.cs | 306 - .../Api/MultiSearchTemplateResponse.g.cs | 35 - .../Api/MultiTermVectorsRequest.g.cs | 551 -- .../Api/MultiTermVectorsResponse.g.cs | 33 - .../Api/Nodes/HotThreadsRequest.g.cs | 235 - .../Api/Nodes/HotThreadsResponse.g.cs | 31 - .../Api/Nodes/NodesInfoRequest.g.cs | 159 - .../Api/Nodes/NodesInfoResponse.g.cs | 43 - .../Api/Nodes/NodesStatsRequest.g.cs | 348 - .../Api/Nodes/NodesStatsResponse.g.cs | 43 - .../Api/Nodes/NodesUsageRequest.g.cs | 127 - .../Api/Nodes/NodesUsageResponse.g.cs | 43 - .../Api/OpenPointInTimeRequest.g.cs | 380 - .../Api/OpenPointInTimeResponse.g.cs | 41 - .../_Generated/Api/PingRequest.g.cs | 79 - .../_Generated/Api/PingResponse.g.cs | 31 - .../_Generated/Api/PutScriptRequest.g.cs | 295 - .../_Generated/Api/PutScriptResponse.g.cs | 38 - .../Api/QueryRules/DeleteRuleRequest.g.cs | 95 - .../Api/QueryRules/DeleteRuleResponse.g.cs | 38 - .../Api/QueryRules/DeleteRulesetRequest.g.cs | 87 - .../Api/QueryRules/DeleteRulesetResponse.g.cs | 38 - .../Api/QueryRules/GetRuleRequest.g.cs | 95 - .../Api/QueryRules/GetRuleResponse.g.cs | 42 - .../Api/QueryRules/GetRulesetRequest.g.cs | 89 - .../Api/QueryRules/GetRulesetResponse.g.cs | 46 - .../Api/QueryRules/ListRulesetsRequest.g.cs | 111 - .../Api/QueryRules/ListRulesetsResponse.g.cs | 35 - .../Api/QueryRules/PutRuleRequest.g.cs | 242 - .../Api/QueryRules/PutRuleResponse.g.cs | 33 - .../Api/QueryRules/PutRulesetRequest.g.cs | 163 - .../Api/QueryRules/PutRulesetResponse.g.cs | 33 - .../Api/QueryRules/TestRequest.g.cs | 104 - .../Api/QueryRules/TestResponse.g.cs | 35 - .../_Generated/Api/RankEvalRequest.g.cs | 479 -- .../_Generated/Api/RankEvalResponse.g.cs | 48 - .../_Generated/Api/ReindexRequest.g.cs | 683 -- .../_Generated/Api/ReindexResponse.g.cs | 63 - .../Api/ReindexRethrottleRequest.g.cs | 109 - .../Api/ReindexRethrottleResponse.g.cs | 33 - .../Api/RenderSearchTemplateRequest.g.cs | 278 - .../Api/RenderSearchTemplateResponse.g.cs | 33 - .../_Generated/Api/ScrollRequest.g.cs | 178 - .../_Generated/Api/ScrollResponse.g.cs | 59 - .../_Generated/Api/SearchMvtRequest.g.cs | 1123 --- .../_Generated/Api/SearchMvtResponse.g.cs | 31 - .../_Generated/Api/SearchRequest.g.cs | 3714 ---------- .../_Generated/Api/SearchResponse.g.cs | 59 - .../_Generated/Api/SearchTemplateRequest.g.cs | 574 -- .../Api/SearchTemplateResponse.g.cs | 59 - .../Security/ActivateUserProfileRequest.g.cs | 143 - .../Security/ActivateUserProfileResponse.g.cs | 45 - .../Api/Security/AuthenticateRequest.g.cs | 89 - .../Api/Security/AuthenticateResponse.g.cs | 53 - .../Api/Security/BulkDeleteRoleRequest.g.cs | 126 - .../Api/Security/BulkDeleteRoleResponse.g.cs | 54 - .../Api/Security/BulkPutRoleRequest.g.cs | 175 - .../Api/Security/BulkPutRoleResponse.g.cs | 62 - .../Api/Security/ClearApiKeyCacheRequest.g.cs | 95 - .../Security/ClearApiKeyCacheResponse.g.cs | 37 - .../ClearCachedPrivilegesRequest.g.cs | 95 - .../ClearCachedPrivilegesResponse.g.cs | 37 - .../Security/ClearCachedRealmsRequest.g.cs | 109 - .../Security/ClearCachedRealmsResponse.g.cs | 37 - .../Api/Security/ClearCachedRolesRequest.g.cs | 93 - .../Security/ClearCachedRolesResponse.g.cs | 37 - .../ClearCachedServiceTokensRequest.g.cs | 105 - .../ClearCachedServiceTokensResponse.g.cs | 37 - .../Api/Security/CreateApiKeyRequest.g.cs | 321 - .../Api/Security/CreateApiKeyResponse.g.cs | 72 - .../Security/CreateServiceTokenRequest.g.cs | 129 - .../Security/CreateServiceTokenResponse.g.cs | 35 - .../Api/Security/DeletePrivilegesRequest.g.cs | 109 - .../Security/DeletePrivilegesResponse.g.cs | 37 - .../Security/DeleteRoleMappingRequest.g.cs | 103 - .../Security/DeleteRoleMappingResponse.g.cs | 33 - .../Api/Security/DeleteRoleRequest.g.cs | 109 - .../Api/Security/DeleteRoleResponse.g.cs | 33 - .../Security/DeleteServiceTokenRequest.g.cs | 121 - .../Security/DeleteServiceTokenResponse.g.cs | 33 - .../Security/DisableUserProfileRequest.g.cs | 113 - .../Security/DisableUserProfileResponse.g.cs | 38 - .../Security/EnableUserProfileRequest.g.cs | 113 - .../Security/EnableUserProfileResponse.g.cs | 38 - .../Api/Security/GetApiKeyRequest.g.cs | 233 - .../Api/Security/GetApiKeyResponse.g.cs | 33 - .../Security/GetBuiltinPrivilegesRequest.g.cs | 83 - .../GetBuiltinPrivilegesResponse.g.cs | 35 - .../Api/Security/GetPrivilegesRequest.g.cs | 105 - .../Api/Security/GetPrivilegesResponse.g.cs | 37 - .../Api/Security/GetRoleMappingRequest.g.cs | 105 - .../Api/Security/GetRoleMappingResponse.g.cs | 37 - .../Api/Security/GetRoleRequest.g.cs | 101 - .../Api/Security/GetRoleResponse.g.cs | 37 - .../Security/GetServiceAccountsRequest.g.cs | 111 - .../Security/GetServiceAccountsResponse.g.cs | 37 - .../GetServiceCredentialsRequest.g.cs | 93 - .../GetServiceCredentialsResponse.g.cs | 45 - .../Api/Security/GetTokenRequest.g.cs | 177 - .../Api/Security/GetTokenResponse.g.cs | 45 - .../Security/GetUserPrivilegesRequest.g.cs | 113 - .../Security/GetUserPrivilegesResponse.g.cs | 41 - .../Api/Security/GetUserProfileRequest.g.cs | 115 - .../Api/Security/GetUserProfileResponse.g.cs | 35 - .../Api/Security/GrantApiKeyRequest.g.cs | 494 -- .../Api/Security/GrantApiKeyResponse.g.cs | 41 - .../Api/Security/HasPrivilegesRequest.g.cs | 277 - .../Api/Security/HasPrivilegesResponse.g.cs | 42 - .../HasPrivilegesUserProfileRequest.g.cs | 154 - .../HasPrivilegesUserProfileResponse.g.cs | 50 - .../Api/Security/InvalidateApiKeyRequest.g.cs | 284 - .../Security/InvalidateApiKeyResponse.g.cs | 39 - .../Api/Security/InvalidateTokenRequest.g.cs | 159 - .../Api/Security/InvalidateTokenResponse.g.cs | 39 - .../Api/Security/PutPrivilegesRequest.g.cs | 110 - .../Api/Security/PutPrivilegesResponse.g.cs | 37 - .../Api/Security/PutRoleMappingRequest.g.cs | 302 - .../Api/Security/PutRoleMappingResponse.g.cs | 35 - .../Api/Security/PutRoleRequest.g.cs | 698 -- .../Api/Security/PutRoleResponse.g.cs | 33 - .../Api/Security/QueryApiKeysRequest.g.cs | 752 -- .../Api/Security/QueryApiKeysResponse.g.cs | 62 - .../Api/Security/QueryRoleRequest.g.cs | 541 -- .../Api/Security/QueryRoleResponse.g.cs | 54 - .../Api/Security/QueryUserRequest.g.cs | 559 -- .../Api/Security/QueryUserResponse.g.cs | 54 - .../Api/Security/SamlAuthenticateRequest.g.cs | 156 - .../Security/SamlAuthenticateResponse.g.cs | 41 - .../Security/SamlCompleteLogoutRequest.g.cs | 182 - .../Security/SamlCompleteLogoutResponse.g.cs | 31 - .../Api/Security/SamlInvalidateRequest.g.cs | 168 - .../Api/Security/SamlInvalidateResponse.g.cs | 37 - .../Api/Security/SamlLogoutRequest.g.cs | 138 - .../Api/Security/SamlLogoutResponse.g.cs | 33 - .../SamlPrepareAuthenticationRequest.g.cs | 170 - .../SamlPrepareAuthenticationResponse.g.cs | 37 - .../SamlServiceProviderMetadataRequest.g.cs | 93 - .../SamlServiceProviderMetadataResponse.g.cs | 33 - .../Security/SuggestUserProfilesRequest.g.cs | 235 - .../Security/SuggestUserProfilesResponse.g.cs | 37 - .../Api/Security/UpdateApiKeyRequest.g.cs | 302 - .../Api/Security/UpdateApiKeyResponse.g.cs | 39 - .../UpdateUserProfileDataRequest.g.cs | 204 - .../UpdateUserProfileDataResponse.g.cs | 38 - .../Snapshot/CleanupRepositoryRequest.g.cs | 121 - .../Snapshot/CleanupRepositoryResponse.g.cs | 38 - .../Api/Snapshot/CloneSnapshotRequest.g.cs | 135 - .../Api/Snapshot/CloneSnapshotResponse.g.cs | 38 - .../Api/Snapshot/CreateRepositoryRequest.g.cs | 154 - .../Snapshot/CreateRepositoryResponse.g.cs | 38 - .../Api/Snapshot/CreateSnapshotRequest.g.cs | 286 - .../Api/Snapshot/CreateSnapshotResponse.g.cs | 46 - .../Api/Snapshot/DeleteRepositoryRequest.g.cs | 123 - .../Snapshot/DeleteRepositoryResponse.g.cs | 38 - .../Api/Snapshot/DeleteSnapshotRequest.g.cs | 109 - .../Api/Snapshot/DeleteSnapshotResponse.g.cs | 38 - .../Api/Snapshot/GetRepositoryRequest.g.cs | 127 - .../Api/Snapshot/GetRepositoryResponse.g.cs | 37 - .../Api/Snapshot/GetSnapshotRequest.g.cs | 301 - .../Api/Snapshot/GetSnapshotResponse.g.cs | 50 - .../Api/Snapshot/RestoreRequest.g.cs | 575 -- .../Api/Snapshot/RestoreResponse.g.cs | 35 - .../Api/Snapshot/SnapshotStatusRequest.g.cs | 161 - .../Api/Snapshot/SnapshotStatusResponse.g.cs | 33 - .../Api/Snapshot/VerifyRepositoryRequest.g.cs | 121 - .../Snapshot/VerifyRepositoryResponse.g.cs | 33 - .../DeleteLifecycleRequest.g.cs | 91 - .../DeleteLifecycleResponse.g.cs | 38 - .../ExecuteLifecycleRequest.g.cs | 91 - .../ExecuteLifecycleResponse.g.cs | 33 - .../ExecuteRetentionRequest.g.cs | 81 - .../ExecuteRetentionResponse.g.cs | 38 - .../GetLifecycleRequest.g.cs | 97 - .../GetLifecycleResponse.g.cs | 37 - .../GetSlmStatusRequest.g.cs | 77 - .../GetSlmStatusResponse.g.cs | 33 - .../GetStatsRequest.g.cs | 79 - .../GetStatsResponse.g.cs | 51 - .../PutLifecycleRequest.g.cs | 318 - .../PutLifecycleResponse.g.cs | 38 - .../StartSlmRequest.g.cs | 81 - .../StartSlmResponse.g.cs | 38 - .../StopSlmRequest.g.cs | 93 - .../StopSlmResponse.g.cs | 38 - .../Api/Sql/ClearCursorRequest.g.cs | 102 - .../Api/Sql/ClearCursorResponse.g.cs | 33 - .../Api/Sql/DeleteAsyncRequest.g.cs | 125 - .../Api/Sql/DeleteAsyncResponse.g.cs | 38 - .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 197 - .../_Generated/Api/Sql/GetAsyncResponse.g.cs | 80 - .../Api/Sql/GetAsyncStatusRequest.g.cs | 122 - .../Api/Sql/GetAsyncStatusResponse.g.cs | 83 - .../_Generated/Api/Sql/QueryRequest.g.cs | 903 --- .../_Generated/Api/Sql/QueryResponse.g.cs | 80 - .../_Generated/Api/Sql/TranslateRequest.g.cs | 340 - .../_Generated/Api/Sql/TranslateResponse.g.cs | 44 - .../Api/Synonyms/DeleteSynonymRequest.g.cs | 119 - .../Api/Synonyms/DeleteSynonymResponse.g.cs | 38 - .../Synonyms/DeleteSynonymRuleRequest.g.cs | 95 - .../Synonyms/DeleteSynonymRuleResponse.g.cs | 47 - .../Api/Synonyms/GetSynonymRequest.g.cs | 154 - .../Api/Synonyms/GetSynonymResponse.g.cs | 35 - .../Api/Synonyms/GetSynonymRuleRequest.g.cs | 95 - .../Api/Synonyms/GetSynonymRuleResponse.g.cs | 46 - .../Api/Synonyms/GetSynonymsSetsRequest.g.cs | 111 - .../Api/Synonyms/GetSynonymsSetsResponse.g.cs | 35 - .../Api/Synonyms/PutSynonymRequest.g.cs | 288 - .../Api/Synonyms/PutSynonymResponse.g.cs | 35 - .../Api/Synonyms/PutSynonymRuleRequest.g.cs | 110 - .../Api/Synonyms/PutSynonymRuleResponse.g.cs | 47 - .../_Generated/Api/TermVectorsRequest.g.cs | 415 -- .../_Generated/Api/TermVectorsResponse.g.cs | 44 - .../_Generated/Api/TermsEnumRequest.g.cs | 550 -- .../_Generated/Api/TermsEnumResponse.g.cs | 37 - .../TextStructure/TestGrokPatternRequest.g.cs | 144 - .../TestGrokPatternResponse.g.cs | 33 - .../DeleteTransformRequest.g.cs | 141 - .../DeleteTransformResponse.g.cs | 38 - .../GetTransformRequest.g.cs | 207 - .../GetTransformResponse.g.cs | 35 - .../GetTransformStatsRequest.g.cs | 195 - .../GetTransformStatsResponse.g.cs | 35 - .../PreviewTransformRequest.g.cs | 1012 --- .../PreviewTransformResponse.g.cs | 35 - .../PutTransformRequest.g.cs | 1115 --- .../PutTransformResponse.g.cs | 38 - .../ResetTransformRequest.g.cs | 111 - .../ResetTransformResponse.g.cs | 38 - .../ScheduleNowTransformRequest.g.cs | 117 - .../ScheduleNowTransformResponse.g.cs | 38 - .../StartTransformRequest.g.cs | 155 - .../StartTransformResponse.g.cs | 38 - .../StopTransformRequest.g.cs | 195 - .../StopTransformResponse.g.cs | 38 - .../UpdateTransformRequest.g.cs | 854 --- .../UpdateTransformResponse.g.cs | 59 - .../UpgradeTransformsRequest.g.cs | 141 - .../UpgradeTransformsResponse.g.cs | 54 - .../_Generated/Api/UpdateByQueryRequest.g.cs | 1059 --- .../_Generated/Api/UpdateByQueryResponse.g.cs | 63 - .../Api/UpdateByQueryRethrottleRequest.g.cs | 111 - .../Api/UpdateByQueryRethrottleResponse.g.cs | 33 - .../_Generated/Api/UpdateRequest.g.cs | 522 -- .../_Generated/Api/UpdateResponse.g.cs | 49 - .../Api/Xpack/XpackInfoRequest.g.cs | 145 - .../Api/Xpack/XpackInfoResponse.g.cs | 39 - .../Api/Xpack/XpackUsageRequest.g.cs | 97 - .../Api/Xpack/XpackUsageResponse.g.cs | 89 - .../ElasticsearchClient.AsyncSearch.g.cs | 489 -- .../Client/ElasticsearchClient.Cluster.g.cs | 1063 --- .../Client/ElasticsearchClient.Enrich.g.cs | 387 - .../Client/ElasticsearchClient.Eql.g.cs | 387 - .../Client/ElasticsearchClient.Esql.g.cs | 138 - .../Client/ElasticsearchClient.Graph.g.cs | 203 - .../Client/ElasticsearchClient.Indices.g.cs | 6081 ---------------- .../Client/ElasticsearchClient.Inference.g.cs | 413 -- .../Client/ElasticsearchClient.Ingest.g.cs | 1358 ---- .../Client/ElasticsearchClient.License.g.cs | 112 - .../Client/ElasticsearchClient.Ml.g.cs | 6454 ----------------- .../Client/ElasticsearchClient.Nodes.g.cs | 459 -- .../ElasticsearchClient.QueryRules.g.cs | 473 -- .../Client/ElasticsearchClient.Security.g.cs | 3920 ---------- .../Client/ElasticsearchClient.Slm.g.cs | 613 -- .../Client/ElasticsearchClient.Snapshot.g.cs | 950 --- .../Client/ElasticsearchClient.Sql.g.cs | 584 -- .../Client/ElasticsearchClient.Synonyms.g.cs | 545 -- .../ElasticsearchClient.TextStructure.g.cs | 100 - .../Client/ElasticsearchClient.Transform.g.cs | 1191 --- .../Client/ElasticsearchClient.Xpack.g.cs | 223 - .../Client/ElasticsearchClient.g.cs | 5602 -------------- .../AdjacencyMatrixAggregate.g.cs | 36 - .../AdjacencyMatrixAggregation.g.cs | 156 - .../Aggregations/AdjacencyMatrixBucket.g.cs | 87 - .../Aggregations/AggregateDictionary.g.cs | 644 -- .../Types/Aggregations/Aggregation.g.cs | 1397 ---- .../Types/Aggregations/AggregationRange.g.cs | 125 - .../Aggregations/ArrayPercentilesItem.g.cs | 38 - .../AutoDateHistogramAggregate.g.cs | 38 - .../AutoDateHistogramAggregation.g.cs | 542 -- .../Types/Aggregations/AverageAggregate.g.cs | 45 - .../Aggregations/AverageAggregation.g.cs | 316 - .../AverageBucketAggregation.g.cs | 129 - .../Types/Aggregations/BoxplotAggregate.g.cs | 62 - .../Aggregations/BoxplotAggregation.g.cs | 332 - .../BucketMetricValueAggregate.g.cs | 47 - .../Aggregations/BucketScriptAggregation.g.cs | 185 - .../BucketSelectorAggregation.g.cs | 185 - .../Aggregations/BucketSortAggregation.g.cs | 357 - .../Types/Aggregations/Buckets.g.cs | 48 - .../Aggregations/CardinalityAggregate.g.cs | 36 - .../Aggregations/CardinalityAggregation.g.cs | 408 -- .../Aggregations/ChiSquareHeuristic.g.cs | 91 - .../Types/Aggregations/ChildrenAggregate.g.cs | 87 - .../Aggregations/ChildrenAggregation.g.cs | 75 - .../Aggregations/CompositeAggregate.g.cs | 38 - .../Aggregations/CompositeAggregation.g.cs | 201 - .../CompositeAggregationSource.g.cs | 479 -- .../Types/Aggregations/CompositeBucket.g.cs | 87 - .../CompositeDateHistogramAggregation.g.cs | 539 -- .../CompositeGeoTileGridAggregation.g.cs | 424 -- .../CompositeHistogramAggregation.g.cs | 387 - .../CompositeTermsAggregation.g.cs | 367 - .../CumulativeCardinalityAggregate.g.cs | 43 - .../CumulativeCardinalityAggregation.g.cs | 129 - .../CumulativeSumAggregation.g.cs | 129 - .../Aggregations/DateHistogramAggregate.g.cs | 36 - .../DateHistogramAggregation.g.cs | 846 --- .../Aggregations/DateHistogramBucket.g.cs | 95 - .../Aggregations/DateRangeAggregate.g.cs | 42 - .../Aggregations/DateRangeAggregation.g.cs | 449 -- .../Aggregations/DateRangeExpression.g.cs | 125 - .../Aggregations/DerivativeAggregate.g.cs | 49 - .../Aggregations/DerivativeAggregation.g.cs | 129 - .../DiversifiedSamplerAggregation.g.cs | 373 - .../Aggregations/DoubleTermsAggregate.g.cs | 45 - .../Types/Aggregations/DoubleTermsBucket.g.cs | 103 - .../Aggregations/ExtendedBoundsDate.g.cs | 99 - .../Aggregations/ExtendedBoundsFloat.g.cs | 99 - .../Aggregations/ExtendedStatsAggregate.g.cs | 80 - .../ExtendedStatsAggregation.g.cs | 360 - .../ExtendedStatsBucketAggregate.g.cs | 80 - .../ExtendedStatsBucketAggregation.g.cs | 155 - .../Types/Aggregations/FieldDateMath.g.cs | 48 - .../Types/Aggregations/FilterAggregate.g.cs | 87 - .../Types/Aggregations/FiltersAggregate.g.cs | 36 - .../Aggregations/FiltersAggregation.g.cs | 197 - .../Types/Aggregations/FiltersBucket.g.cs | 79 - .../FrequentItemSetsAggregate.g.cs | 36 - .../FrequentItemSetsAggregation.g.cs | 461 -- .../Aggregations/FrequentItemSetsBucket.g.cs | 95 - .../Aggregations/FrequentItemSetsField.g.cs | 201 - .../Aggregations/GeoBoundsAggregate.g.cs | 36 - .../Aggregations/GeoBoundsAggregation.g.cs | 332 - .../Aggregations/GeoCentroidAggregate.g.cs | 38 - .../Aggregations/GeoCentroidAggregation.g.cs | 345 - .../Aggregations/GeoDistanceAggregate.g.cs | 41 - .../Aggregations/GeoDistanceAggregation.g.cs | 445 -- .../Types/Aggregations/GeoLineAggregate.g.cs | 40 - .../Aggregations/GeoLineAggregation.g.cs | 409 -- .../Types/Aggregations/GeoLinePoint.g.cs | 143 - .../Types/Aggregations/GeoLineSort.g.cs | 143 - .../Aggregations/GeohashGridAggregate.g.cs | 36 - .../Aggregations/GeohashGridAggregation.g.cs | 339 - .../Types/Aggregations/GeohashGridBucket.g.cs | 87 - .../Aggregations/GeohexGridAggregate.g.cs | 36 - .../Aggregations/GeohexGridAggregation.g.cs | 331 - .../Types/Aggregations/GeohexGridBucket.g.cs | 87 - .../Aggregations/GeotileGridAggregate.g.cs | 36 - .../Aggregations/GeotileGridAggregation.g.cs | 343 - .../Types/Aggregations/GeotileGridBucket.g.cs | 87 - .../Types/Aggregations/GlobalAggregate.g.cs | 87 - .../Types/Aggregations/GlobalAggregation.g.cs | 47 - .../GoogleNormalizedDistanceHeuristic.g.cs | 73 - .../Types/Aggregations/HdrMethod.g.cs | 73 - .../HdrPercentileRanksAggregate.g.cs | 36 - .../Aggregations/HdrPercentilesAggregate.g.cs | 36 - .../Aggregations/HistogramAggregate.g.cs | 36 - .../Aggregations/HistogramAggregation.g.cs | 717 -- .../Types/Aggregations/HistogramBucket.g.cs | 95 - .../Aggregations/InferenceAggregate.g.cs | 106 - .../Aggregations/InferenceAggregation.g.cs | 340 - .../InferenceClassImportance.g.cs | 36 - .../Types/Aggregations/InferenceConfig.g.cs | 242 - .../InferenceFeatureImportance.g.cs | 38 - .../Aggregations/InferenceTopClassEntry.g.cs | 38 - .../Types/Aggregations/IpPrefixAggregate.g.cs | 36 - .../Aggregations/IpPrefixAggregation.g.cs | 316 - .../Types/Aggregations/IpPrefixBucket.g.cs | 111 - .../Types/Aggregations/IpRangeAggregate.g.cs | 36 - .../Aggregations/IpRangeAggregation.g.cs | 313 - .../Aggregations/IpRangeAggregationRange.g.cs | 125 - .../Types/Aggregations/IpRangeBucket.g.cs | 103 - .../Aggregations/LongRareTermsAggregate.g.cs | 41 - .../Aggregations/LongRareTermsBucket.g.cs | 95 - .../Aggregations/LongTermsAggregate.g.cs | 45 - .../Types/Aggregations/LongTermsBucket.g.cs | 103 - .../Aggregations/MatrixStatsAggregate.g.cs | 38 - .../Aggregations/MatrixStatsAggregation.g.cs | 201 - .../Types/Aggregations/MatrixStatsFields.g.cs | 50 - .../Types/Aggregations/MaxAggregate.g.cs | 45 - .../Types/Aggregations/MaxAggregation.g.cs | 316 - .../Aggregations/MaxBucketAggregation.g.cs | 129 - .../MedianAbsoluteDeviationAggregate.g.cs | 45 - .../MedianAbsoluteDeviationAggregation.g.cs | 360 - .../Types/Aggregations/MinAggregate.g.cs | 45 - .../Types/Aggregations/MinAggregation.g.cs | 316 - .../Aggregations/MinBucketAggregation.g.cs | 129 - .../Types/Aggregations/MissingAggregate.g.cs | 87 - .../Aggregations/MissingAggregation.g.cs | 182 - .../MovingFunctionAggregation.g.cs | 209 - .../MovingPercentilesAggregation.g.cs | 183 - .../Types/Aggregations/MultiTermLookup.g.cs | 190 - .../Aggregations/MultiTermsAggregate.g.cs | 40 - .../Aggregations/MultiTermsAggregation.g.cs | 540 -- .../Types/Aggregations/MultiTermsBucket.g.cs | 103 - .../MutualInformationHeuristic.g.cs | 99 - .../Types/Aggregations/NestedAggregate.g.cs | 87 - .../Types/Aggregations/NestedAggregation.g.cs | 153 - .../Aggregations/NormalizeAggregation.g.cs | 155 - .../Types/Aggregations/ParentAggregate.g.cs | 87 - .../Types/Aggregations/ParentAggregation.g.cs | 75 - .../PercentageScoreHeuristic.g.cs | 47 - .../PercentileRanksAggregation.g.cs | 568 -- .../Types/Aggregations/Percentiles.g.cs | 42 - .../Aggregations/PercentilesAggregation.g.cs | 568 -- .../PercentilesBucketAggregate.g.cs | 36 - .../PercentilesBucketAggregation.g.cs | 155 - .../Types/Aggregations/RangeAggregate.g.cs | 36 - .../Types/Aggregations/RangeAggregation.g.cs | 477 -- .../Types/Aggregations/RangeBucket.g.cs | 125 - .../Aggregations/RareTermsAggregation.g.cs | 407 -- .../Types/Aggregations/RateAggregate.g.cs | 38 - .../Types/Aggregations/RateAggregation.g.cs | 407 -- .../Aggregations/ReverseNestedAggregate.g.cs | 87 - .../ReverseNestedAggregation.g.cs | 160 - .../Types/Aggregations/SamplerAggregate.g.cs | 87 - .../Aggregations/SamplerAggregation.g.cs | 75 - .../Types/Aggregations/ScriptedHeuristic.g.cs | 93 - .../Aggregations/ScriptedMetricAggregate.g.cs | 36 - .../ScriptedMetricAggregation.g.cs | 763 -- .../SerialDifferencingAggregation.g.cs | 157 - .../SignificantLongTermsAggregate.g.cs | 40 - .../SignificantLongTermsBucket.g.cs | 111 - .../SignificantStringTermsAggregate.g.cs | 40 - .../SignificantStringTermsBucket.g.cs | 103 - .../SignificantTermsAggregation.g.cs | 1195 --- .../SignificantTextAggregation.g.cs | 1284 ---- .../Aggregations/SimpleValueAggregate.g.cs | 45 - .../Aggregations/StandardDeviationBounds.g.cs | 44 - .../StandardDeviationBoundsAsString.g.cs | 44 - .../Types/Aggregations/StatsAggregate.g.cs | 58 - .../Types/Aggregations/StatsAggregation.g.cs | 316 - .../Aggregations/StatsBucketAggregate.g.cs | 52 - .../Aggregations/StatsBucketAggregation.g.cs | 129 - .../StringRareTermsAggregate.g.cs | 41 - .../Aggregations/StringRareTermsBucket.g.cs | 87 - .../Aggregations/StringStatsAggregate.g.cs | 52 - .../Aggregations/StringStatsAggregation.g.cs | 332 - .../Aggregations/StringTermsAggregate.g.cs | 45 - .../Types/Aggregations/StringTermsBucket.g.cs | 95 - .../Types/Aggregations/SumAggregate.g.cs | 50 - .../Types/Aggregations/SumAggregation.g.cs | 316 - .../Aggregations/SumBucketAggregation.g.cs | 129 - .../Types/Aggregations/TDigest.g.cs | 73 - .../TDigestPercentileRanksAggregate.g.cs | 36 - .../TDigestPercentilesAggregate.g.cs | 36 - .../Types/Aggregations/TTestAggregate.g.cs | 38 - .../Types/Aggregations/TTestAggregation.g.cs | 317 - .../Types/Aggregations/TermsAggregation.g.cs | 874 --- .../Types/Aggregations/TestPopulation.g.cs | 335 - .../Aggregations/TimeSeriesAggregate.g.cs | 36 - .../Types/Aggregations/TimeSeriesBucket.g.cs | 87 - .../Types/Aggregations/TopHitsAggregate.g.cs | 36 - .../Aggregations/TopHitsAggregation.g.cs | 1272 ---- .../Types/Aggregations/TopMetrics.g.cs | 36 - .../Aggregations/TopMetricsAggregate.g.cs | 36 - .../Aggregations/TopMetricsAggregation.g.cs | 646 -- .../Types/Aggregations/TopMetricsValue.g.cs | 143 - .../UnmappedRareTermsAggregate.g.cs | 41 - .../UnmappedSamplerAggregate.g.cs | 87 - .../UnmappedSignificantTermsAggregate.g.cs | 45 - .../Aggregations/UnmappedTermsAggregate.g.cs | 45 - .../Aggregations/ValueCountAggregate.g.cs | 50 - .../Aggregations/ValueCountAggregation.g.cs | 317 - .../VariableWidthHistogramAggregate.g.cs | 36 - .../VariableWidthHistogramAggregation.g.cs | 379 - .../VariableWidthHistogramBucket.g.cs | 127 - .../WeightedAverageAggregate.g.cs | 50 - .../WeightedAverageAggregation.g.cs | 345 - .../Aggregations/WeightedAverageValue.g.cs | 283 - .../_Generated/Types/Analysis/Analyzers.g.cs | 512 -- .../Types/Analysis/ArabicAnalyzer.g.cs | 106 - .../Types/Analysis/ArmenianAnalyzer.g.cs | 106 - .../Analysis/AsciiFoldingTokenFilter.g.cs | 90 - .../Types/Analysis/BasqueAnalyzer.g.cs | 106 - .../Types/Analysis/BengaliAnalyzer.g.cs | 106 - .../Types/Analysis/BrazilianAnalyzer.g.cs | 90 - .../Types/Analysis/BulgarianAnalyzer.g.cs | 106 - .../Types/Analysis/CatalanAnalyzer.g.cs | 106 - .../Types/Analysis/CharFilters.g.cs | 153 - .../Types/Analysis/CharGroupTokenizer.g.cs | 102 - .../Types/Analysis/ChineseAnalyzer.g.cs | 90 - .../Types/Analysis/CjkAnalyzer.g.cs | 90 - .../Types/Analysis/ClassicTokenizer.g.cs | 90 - .../Analysis/CommonGramsTokenFilter.g.cs | 138 - .../Types/Analysis/ConditionTokenFilter.g.cs | 156 - .../Types/Analysis/CustomAnalyzer.g.cs | 135 - .../Types/Analysis/CustomNormalizer.g.cs | 89 - .../Types/Analysis/CzechAnalyzer.g.cs | 106 - .../Types/Analysis/DanishAnalyzer.g.cs | 90 - .../Analysis/DelimitedPayloadTokenFilter.g.cs | 106 - .../DictionaryDecompounderTokenFilter.g.cs | 186 - .../Types/Analysis/DutchAnalyzer.g.cs | 106 - .../Types/Analysis/EdgeNGramTokenFilter.g.cs | 138 - .../Types/Analysis/EdgeNGramTokenizer.g.cs | 138 - .../Types/Analysis/ElisionTokenFilter.g.cs | 122 - .../Types/Analysis/EnglishAnalyzer.g.cs | 106 - .../Types/Analysis/EstonianAnalyzer.g.cs | 90 - .../Types/Analysis/FingerprintAnalyzer.g.cs | 143 - .../Analysis/FingerprintTokenFilter.g.cs | 106 - .../Types/Analysis/FinnishAnalyzer.g.cs | 106 - .../Types/Analysis/FrenchAnalyzer.g.cs | 106 - .../Types/Analysis/GalicianAnalyzer.g.cs | 106 - .../Types/Analysis/GermanAnalyzer.g.cs | 106 - .../Types/Analysis/GreekAnalyzer.g.cs | 90 - .../Types/Analysis/HindiAnalyzer.g.cs | 106 - .../Types/Analysis/HtmlStripCharFilter.g.cs | 90 - .../Types/Analysis/HungarianAnalyzer.g.cs | 106 - .../Types/Analysis/HunspellTokenFilter.g.cs | 134 - .../HyphenationDecompounderTokenFilter.g.cs | 186 - .../Types/Analysis/IcuAnalyzer.g.cs | 81 - .../Analysis/IcuCollationTokenFilter.g.cs | 266 - .../Types/Analysis/IcuFoldingTokenFilter.g.cs | 85 - .../Analysis/IcuNormalizationCharFilter.g.cs | 106 - .../Analysis/IcuNormalizationTokenFilter.g.cs | 86 - .../Types/Analysis/IcuTokenizer.g.cs | 86 - .../Analysis/IcuTransformTokenFilter.g.cs | 102 - .../Types/Analysis/IndonesianAnalyzer.g.cs | 106 - .../Types/Analysis/IrishAnalyzer.g.cs | 106 - .../Types/Analysis/ItalianAnalyzer.g.cs | 106 - .../Types/Analysis/KStemTokenFilter.g.cs | 73 - .../Types/Analysis/KeepTypesTokenFilter.g.cs | 106 - .../Types/Analysis/KeepWordsTokenFilter.g.cs | 122 - .../Types/Analysis/KeywordAnalyzer.g.cs | 73 - .../Analysis/KeywordMarkerTokenFilter.g.cs | 139 - .../Types/Analysis/KeywordTokenizer.g.cs | 90 - .../Types/Analysis/KuromojiAnalyzer.g.cs | 86 - .../KuromojiIterationMarkCharFilter.g.cs | 98 - .../KuromojiPartOfSpeechTokenFilter.g.cs | 86 - .../KuromojiReadingFormTokenFilter.g.cs | 85 - .../Analysis/KuromojiStemmerTokenFilter.g.cs | 86 - .../Types/Analysis/KuromojiTokenizer.g.cs | 182 - .../Types/Analysis/LanguageAnalyzer.g.cs | 131 - .../Types/Analysis/LatvianAnalyzer.g.cs | 106 - .../Types/Analysis/LengthTokenFilter.g.cs | 106 - .../Types/Analysis/LetterTokenizer.g.cs | 73 - .../Analysis/LimitTokenCountTokenFilter.g.cs | 106 - .../Types/Analysis/LithuanianAnalyzer.g.cs | 106 - .../Types/Analysis/LowercaseNormalizer.g.cs | 55 - .../Types/Analysis/LowercaseTokenFilter.g.cs | 90 - .../Types/Analysis/LowercaseTokenizer.g.cs | 73 - .../Types/Analysis/MappingCharFilter.g.cs | 106 - .../Analysis/MultiplexerTokenFilter.g.cs | 102 - .../Types/Analysis/NGramTokenFilter.g.cs | 122 - .../Types/Analysis/NGramTokenizer.g.cs | 138 - .../Types/Analysis/NoriAnalyzer.g.cs | 122 - .../Analysis/NoriPartOfSpeechTokenFilter.g.cs | 90 - .../Types/Analysis/NoriTokenizer.g.cs | 138 - .../Types/Analysis/Normalizers.g.cs | 131 - .../Types/Analysis/NorwegianAnalyzer.g.cs | 106 - .../Analysis/PathHierarchyTokenizer.g.cs | 154 - .../Types/Analysis/PatternAnalyzer.g.cs | 135 - .../Analysis/PatternCaptureTokenFilter.g.cs | 102 - .../Analysis/PatternReplaceCharFilter.g.cs | 118 - .../Analysis/PatternReplaceTokenFilter.g.cs | 134 - .../Types/Analysis/PatternTokenizer.g.cs | 122 - .../Types/Analysis/PersianAnalyzer.g.cs | 90 - .../Types/Analysis/PhoneticTokenFilter.g.cs | 167 - .../Types/Analysis/PorterStemTokenFilter.g.cs | 73 - .../Types/Analysis/PortugueseAnalyzer.g.cs | 106 - .../Types/Analysis/PredicateTokenFilter.g.cs | 144 - .../Analysis/RemoveDuplicatesTokenFilter.g.cs | 73 - .../Types/Analysis/ReverseTokenFilter.g.cs | 73 - .../Types/Analysis/RomanianAnalyzer.g.cs | 106 - .../Types/Analysis/RussianAnalyzer.g.cs | 106 - .../Types/Analysis/SerbianAnalyzer.g.cs | 106 - .../Types/Analysis/ShingleTokenFilter.g.cs | 170 - .../Types/Analysis/SimpleAnalyzer.g.cs | 73 - .../Analysis/SimplePatternSplitTokenizer.g.cs | 90 - .../Analysis/SimplePatternTokenizer.g.cs | 90 - .../Types/Analysis/SnowballAnalyzer.g.cs | 103 - .../Types/Analysis/SnowballTokenFilter.g.cs | 90 - .../Types/Analysis/SoraniAnalyzer.g.cs | 106 - .../Types/Analysis/SpanishAnalyzer.g.cs | 106 - .../Types/Analysis/StandardAnalyzer.g.cs | 90 - .../Types/Analysis/StandardTokenizer.g.cs | 90 - .../Analysis/StemmerOverrideTokenFilter.g.cs | 106 - .../Types/Analysis/StemmerTokenFilter.g.cs | 138 - .../Types/Analysis/StopAnalyzer.g.cs | 107 - .../Types/Analysis/StopTokenFilter.g.cs | 139 - .../Types/Analysis/SwedishAnalyzer.g.cs | 106 - .../Analysis/SynonymGraphTokenFilter.g.cs | 202 - .../Types/Analysis/SynonymTokenFilter.g.cs | 202 - .../Types/Analysis/ThaiAnalyzer.g.cs | 90 - .../Types/Analysis/ThaiTokenizer.g.cs | 73 - .../Types/Analysis/TokenFilters.g.cs | 489 -- .../_Generated/Types/Analysis/Tokenizers.g.cs | 257 - .../Types/Analysis/TrimTokenFilter.g.cs | 73 - .../Types/Analysis/TruncateTokenFilter.g.cs | 90 - .../Types/Analysis/TurkishAnalyzer.g.cs | 106 - .../Types/Analysis/UaxEmailUrlTokenizer.g.cs | 90 - .../Types/Analysis/UniqueTokenFilter.g.cs | 90 - .../Types/Analysis/UppercaseTokenFilter.g.cs | 73 - .../Types/Analysis/WhitespaceAnalyzer.g.cs | 73 - .../Types/Analysis/WhitespaceTokenizer.g.cs | 90 - .../WordDelimiterGraphTokenFilter.g.cs | 314 - .../Analysis/WordDelimiterTokenFilter.g.cs | 282 - .../Types/AsyncSearch/AsyncSearch.g.cs | 79 - .../Types/BulkIndexByScrollFailure.g.cs | 42 - .../_Generated/Types/BulkStats.g.cs | 50 - .../_Generated/Types/ByteSize.g.cs | 45 - .../Types/Cluster/AllocationDecision.g.cs | 38 - .../Types/Cluster/AllocationStore.g.cs | 44 - .../Types/Cluster/CharFilterTypes.g.cs | 95 - .../Types/Cluster/ClusterFileSystem.g.cs | 57 - .../Types/Cluster/ClusterIndices.g.cs | 119 - .../Types/Cluster/ClusterIndicesShards.g.cs | 68 - .../Cluster/ClusterIndicesShardsIndex.g.cs | 55 - .../_Generated/Types/Cluster/ClusterInfo.g.cs | 42 - .../Types/Cluster/ClusterIngest.g.cs | 36 - .../_Generated/Types/Cluster/ClusterJvm.g.cs | 63 - .../Types/Cluster/ClusterJvmMemory.g.cs | 47 - .../Types/Cluster/ClusterJvmVersion.g.cs | 88 - .../Types/Cluster/ClusterNetworkTypes.g.cs | 47 - .../Types/Cluster/ClusterNodeCount.g.cs | 60 - .../Types/Cluster/ClusterNodes.g.cs | 116 - .../Types/Cluster/ClusterOperatingSystem.g.cs | 81 - .../ClusterOperatingSystemArchitecture.g.cs | 47 - .../Cluster/ClusterOperatingSystemName.g.cs | 47 - .../ClusterOperatingSystemPrettyName.g.cs | 47 - .../Types/Cluster/ClusterProcess.g.cs | 47 - .../Types/Cluster/ClusterProcessCpu.g.cs | 40 - .../ClusterProcessOpenFileDescriptors.g.cs | 58 - .../Types/Cluster/ClusterProcessor.g.cs | 42 - .../Types/Cluster/ClusterShardMetrics.g.cs | 55 - .../Types/Cluster/ComponentTemplate.g.cs | 36 - .../Types/Cluster/ComponentTemplateNode.g.cs | 38 - .../Cluster/ComponentTemplateSummary.g.cs | 45 - .../_Generated/Types/Cluster/CurrentNode.g.cs | 44 - .../_Generated/Types/Cluster/DiskUsage.g.cs | 44 - .../_Generated/Types/Cluster/FieldTypes.g.cs | 87 - .../Types/Cluster/FieldTypesMappings.g.cs | 79 - .../Types/Cluster/IndexHealthStats.g.cs | 52 - .../Types/Cluster/IndexingPressure.g.cs | 34 - .../Types/Cluster/IndexingPressureMemory.g.cs | 38 - .../IndexingPressureMemorySummary.g.cs | 48 - .../Types/Cluster/IndicesVersions.g.cs | 40 - .../Cluster/NodeAllocationExplanation.g.cs | 50 - .../Types/Cluster/NodeDiskUsage.g.cs | 38 - .../Types/Cluster/NodePackagingType.g.cs | 55 - .../Cluster/OperatingSystemMemoryInfo.g.cs | 79 - .../_Generated/Types/Cluster/PendingTask.g.cs | 80 - .../Types/Cluster/ReservedSize.g.cs | 40 - .../Types/Cluster/RuntimeFieldTypes.g.cs | 143 - .../Types/Cluster/ShardHealthStats.g.cs | 46 - .../Types/Cluster/UnassignedInformation.g.cs | 46 - .../_Generated/Types/ClusterDetails.g.cs | 44 - .../_Generated/Types/ClusterStatistics.g.cs | 46 - .../_Generated/Types/CompletionStats.g.cs | 51 - .../_Generated/Types/CoordsGeoBounds.g.cs | 92 - .../Types/Core/Bulk/ResponseItem.g.cs | 112 - .../_Generated/Types/Core/Context.g.cs | 48 - .../Types/Core/Explain/Explanation.g.cs | 38 - .../Types/Core/Explain/ExplanationDetail.g.cs | 38 - .../Types/Core/FieldCaps/FieldCapability.g.cs | 92 - .../_Generated/Types/Core/Get/GetResult.g.cs | 53 - .../DataStreamLifecycleDetails.g.cs | 38 - .../DataStreamLifecycleIndicator.g.cs | 47 - .../Types/Core/HealthReport/Diagnosis.g.cs | 42 - .../DiagnosisAffectedResources.g.cs | 43 - .../Core/HealthReport/DiskIndicator.g.cs | 47 - .../HealthReport/DiskIndicatorDetails.g.cs | 42 - .../HealthReport/FileSettingsIndicator.g.cs | 47 - .../FileSettingsIndicatorDetails.g.cs | 36 - .../Types/Core/HealthReport/IlmIndicator.g.cs | 47 - .../HealthReport/IlmIndicatorDetails.g.cs | 38 - .../Types/Core/HealthReport/Impact.g.cs | 40 - .../Core/HealthReport/IndicatorNode.g.cs | 36 - .../Types/Core/HealthReport/Indicators.g.cs | 50 - .../HealthReport/MasterIsStableIndicator.g.cs | 47 - ...IsStableIndicatorClusterFormationNode.g.cs | 38 - .../MasterIsStableIndicatorDetails.g.cs | 40 - ...ableIndicatorExceptionFetchingHistory.g.cs | 36 - .../RepositoryIntegrityIndicator.g.cs | 47 - .../RepositoryIntegrityIndicatorDetails.g.cs | 38 - .../ShardsAvailabilityIndicator.g.cs | 47 - .../ShardsAvailabilityIndicatorDetails.g.cs | 52 - .../HealthReport/ShardsCapacityIndicator.g.cs | 47 - .../ShardsCapacityIndicatorDetails.g.cs | 36 - .../ShardsCapacityIndicatorTierDetail.g.cs | 36 - .../Types/Core/HealthReport/SlmIndicator.g.cs | 47 - .../HealthReport/SlmIndicatorDetails.g.cs | 38 - .../SlmIndicatorUnhealthyPolicies.g.cs | 36 - .../StagnatingBackingIndices.g.cs | 38 - .../Types/Core/MGet/MultiGetError.g.cs | 38 - .../Types/Core/MGet/MultiGetOperation.g.cs | 332 - .../Types/Core/MSearch/MultiSearchItem.g.cs | 62 - .../Types/Core/MSearch/MultisearchBody.g.cs | 2648 ------- .../Types/Core/MSearch/MultisearchHeader.g.cs | 224 - .../Core/MSearchTemplate/TemplateConfig.g.cs | 76 - .../MultiTermVectorsOperation.g.cs | 699 -- .../Mtermvectors/MultiTermVectorsResult.g.cs | 47 - .../Types/Core/MultiGetResponseItem.g.cs | 42 - .../Types/Core/MultiSearchResponseItem.g.cs | 42 - .../Types/Core/RankEval/DocumentRating.g.cs | 113 - .../Types/Core/RankEval/RankEvalHit.g.cs | 38 - .../Types/Core/RankEval/RankEvalHitItem.g.cs | 36 - .../Types/Core/RankEval/RankEvalMetric.g.cs | 273 - .../Core/RankEval/RankEvalMetricDetail.g.cs | 63 - ...ankEvalMetricDiscountedCumulativeGain.g.cs | 111 - .../RankEvalMetricExpectedReciprocalRank.g.cs | 107 - .../RankEvalMetricMeanReciprocalRank.g.cs | 111 - .../RankEval/RankEvalMetricPrecision.g.cs | 137 - .../Core/RankEval/RankEvalMetricRecall.g.cs | 111 - .../Types/Core/RankEval/RankEvalQuery.g.cs | 180 - .../Core/RankEval/RankEvalRequestItem.g.cs | 451 -- .../Types/Core/RankEval/UnratedDocument.g.cs | 36 - .../Types/Core/Reindex/Destination.g.cs | 177 - .../Types/Core/Reindex/RemoteSource.g.cs | 201 - .../_Generated/Types/Core/Reindex/Source.g.cs | 678 -- .../Core/ReindexRethrottle/ReindexNode.g.cs | 46 - .../Core/ReindexRethrottle/ReindexStatus.g.cs | 124 - .../Core/ReindexRethrottle/ReindexTask.g.cs | 52 - .../Core/Search/AggregationBreakdown.g.cs | 56 - .../Types/Core/Search/AggregationProfile.g.cs | 44 - .../Core/Search/AggregationProfileDebug.g.cs | 96 - ...AggregationProfileDelegateDebugFilter.g.cs | 40 - .../Types/Core/Search/Collector.g.cs | 40 - .../Types/Core/Search/CompletionContext.g.cs | 183 - .../Types/Core/Search/CompletionSuggest.g.cs | 41 - .../Core/Search/CompletionSuggestOption.g.cs | 53 - .../Core/Search/CompletionSuggester.g.cs | 539 -- .../Types/Core/Search/DfsKnnProfile.g.cs | 40 - .../Types/Core/Search/DfsProfile.g.cs | 36 - .../Core/Search/DfsStatisticsBreakdown.g.cs | 48 - .../Core/Search/DfsStatisticsProfile.g.cs | 46 - .../Types/Core/Search/DirectGenerator.g.cs | 620 -- .../Types/Core/Search/FetchProfile.g.cs | 44 - .../Core/Search/FetchProfileBreakdown.g.cs | 48 - .../Types/Core/Search/FetchProfileDebug.g.cs | 36 - .../Types/Core/Search/FieldCollapse.g.cs | 433 -- .../Types/Core/Search/FieldSuggester.g.cs | 436 -- .../Types/Core/Search/Highlight.g.cs | 1047 --- .../Types/Core/Search/HighlightField.g.cs | 1056 --- .../_Generated/Types/Core/Search/Hit.g.cs | 73 - .../Types/Core/Search/HitsMetadata.g.cs | 44 - .../Types/Core/Search/InnerHits.g.cs | 933 --- .../Types/Core/Search/InnerHitsResult.g.cs | 34 - .../Types/Core/Search/KnnCollectorResult.g.cs | 42 - .../Core/Search/KnnQueryProfileBreakdown.g.cs | 72 - .../Core/Search/KnnQueryProfileResult.g.cs | 46 - .../Core/Search/LaplaceSmoothingModel.g.cs | 71 - .../Types/Core/Search/LearningToRank.g.cs | 97 - .../LinearInterpolationSmoothingModel.g.cs | 83 - .../Types/Core/Search/NestedIdentity.g.cs | 38 - .../Types/Core/Search/PhraseSuggest.g.cs | 41 - .../Core/Search/PhraseSuggestCollate.g.cs | 155 - .../Search/PhraseSuggestCollateQuery.g.cs | 99 - .../Core/Search/PhraseSuggestHighlight.g.cs | 91 - .../Core/Search/PhraseSuggestOption.g.cs | 40 - .../Types/Core/Search/PhraseSuggester.g.cs | 1100 --- .../Core/Search/PointInTimeReference.g.cs | 74 - .../_Generated/Types/Core/Search/Profile.g.cs | 34 - .../Types/Core/Search/QueryBreakdown.g.cs | 72 - .../Types/Core/Search/QueryProfile.g.cs | 42 - .../Types/Core/Search/RegexOptions.g.cs | 99 - .../_Generated/Types/Core/Search/Rescore.g.cs | 287 - .../Types/Core/Search/RescoreQuery.g.cs | 304 - .../Types/Core/Search/SearchProfile.g.cs | 38 - .../Types/Core/Search/ShardProfile.g.cs | 50 - .../Types/Core/Search/SmoothingModel.g.cs | 257 - .../Types/Core/Search/SourceFilter.g.cs | 169 - .../Search/StupidBackoffSmoothingModel.g.cs | 71 - .../Types/Core/Search/SuggestDictionary.g.cs | 108 - .../Types/Core/Search/SuggestFuzziness.g.cs | 179 - .../Types/Core/Search/Suggester.g.cs | 207 - .../Types/Core/Search/TermSuggest.g.cs | 41 - .../Types/Core/Search/TermSuggestOption.g.cs | 42 - .../Types/Core/Search/TermSuggester.g.cs | 782 -- .../Types/Core/Search/TotalHits.g.cs | 36 - .../_Generated/Types/Core/SourceConfig.g.cs | 47 - .../Types/Core/SourceConfigParam.g.cs | 48 - .../Core/TermVectors/FieldStatistics.g.cs | 38 - .../Types/Core/TermVectors/Filter.g.cs | 235 - .../Types/Core/TermVectors/Term.g.cs | 42 - .../Types/Core/TermVectors/TermVector.g.cs | 36 - .../Types/Core/TermVectors/Token.g.cs | 40 - .../_Generated/Types/Core/TrackHits.g.cs | 50 - .../UpdateByQueryRethrottleNode.g.cs | 46 - .../_Generated/Types/DocStats.g.cs | 50 - .../Types/ElasticsearchVersionInfo.g.cs | 50 - .../_Generated/Types/EmptyObject.g.cs | 57 - .../_Generated/Types/Enrich/CacheStats.g.cs | 48 - .../Types/Enrich/CoordinatorStats.g.cs | 42 - .../_Generated/Types/Enrich/EnrichPolicy.g.cs | 293 - .../Types/Enrich/EnrichSummary.g.cs | 34 - .../Enrich/ExecuteEnrichPolicyStatus.g.cs | 34 - .../Types/Enrich/ExecutingPolicy.g.cs | 36 - .../Types/Enums/Enums.Aggregations.g.cs | 880 --- .../Types/Enums/Enums.Analysis.g.cs | 1457 ---- .../_Generated/Types/Enums/Enums.Cluster.g.cs | 302 - .../Types/Enums/Enums.Core.HealthReport.g.cs | 141 - .../Types/Enums/Enums.Core.Search.g.cs | 577 -- .../Types/Enums/Enums.Core.SearchMvt.g.cs | 120 - .../_Generated/Types/Enums/Enums.Enrich.g.cs | 134 - .../_Generated/Types/Enums/Enums.Eql.g.cs | 81 - .../_Generated/Types/Enums/Enums.Esql.g.cs | 113 - .../Types/Enums/Enums.IndexManagement.g.cs | 672 -- .../Types/Enums/Enums.Inference.g.cs | 85 - .../_Generated/Types/Enums/Enums.Ingest.g.cs | 424 -- .../Types/Enums/Enums.LicenseManagement.g.cs | 176 - .../Types/Enums/Enums.MachineLearning.g.cs | 1223 ---- .../_Generated/Types/Enums/Enums.Mapping.g.cs | 1250 ---- .../Types/Enums/Enums.NoNamespace.g.cs | 1900 ----- .../Types/Enums/Enums.QueryDsl.g.cs | 1114 --- .../Types/Enums/Enums.QueryRules.g.cs | 183 - .../Types/Enums/Enums.Security.g.cs | 373 - .../Types/Enums/Enums.Snapshot.g.cs | 194 - .../_Generated/Types/Enums/Enums.Sql.g.cs | 106 - .../_Generated/Types/Enums/Enums.Watcher.g.cs | 85 - .../_Generated/Types/Enums/Enums.Xpack.g.cs | 78 - .../_Generated/Types/Eql/EqlHits.g.cs | 55 - .../_Generated/Types/Eql/HitsEvent.g.cs | 68 - .../_Generated/Types/Eql/HitsSequence.g.cs | 47 - .../_Generated/Types/ErrorCause.g.cs | 139 - .../_Generated/Types/ErrorResponseBase.g.cs | 41 - .../_Generated/Types/FieldMemoryUsage.g.cs | 36 - .../_Generated/Types/FieldSizeUsage.g.cs | 36 - .../_Generated/Types/FieldSort.g.cs | 320 - .../_Generated/Types/FielddataStats.g.cs | 41 - .../_Generated/Types/FlushStats.g.cs | 40 - .../_Generated/Types/Fuzziness.g.cs | 45 - .../_Generated/Types/GeoBounds.g.cs | 165 - .../_Generated/Types/GeoDistanceSort.g.cs | 469 -- .../_Generated/Types/GeoHashLocation.g.cs | 59 - .../_Generated/Types/GeoLine.g.cs | 52 - .../_Generated/Types/GeoLocation.g.cs | 165 - .../_Generated/Types/GeohashPrecision.g.cs | 47 - .../_Generated/Types/GetStats.g.cs | 52 - .../_Generated/Types/Graph/Connection.g.cs | 40 - .../Types/Graph/ExploreControls.g.cs | 309 - .../_Generated/Types/Graph/Hop.g.cs | 431 -- .../Types/Graph/SampleDiversity.g.cs | 128 - .../_Generated/Types/Graph/Vertex.g.cs | 40 - .../Types/Graph/VertexDefinition.g.cs | 482 -- .../_Generated/Types/Graph/VertexInclude.g.cs | 70 - .../IndexLifecycleManagement/Actions.g.cs | 127 - .../AllocateAction.g.cs | 42 - .../DeleteAction.g.cs | 34 - .../DownsampleAction.g.cs | 36 - .../ForceMergeAction.g.cs | 36 - .../MigrateAction.g.cs | 34 - .../Types/IndexLifecycleManagement/Phase.g.cs | 36 - .../IndexLifecycleManagement/Phases.g.cs | 42 - .../RolloverAction.g.cs | 52 - .../SearchableSnapshotAction.g.cs | 36 - .../SetPriorityAction.g.cs | 34 - .../ShrinkAction.g.cs | 38 - .../WaitForSnapshotAction.g.cs | 34 - .../Types/IndexManagement/AddAction.g.cs | 637 -- .../Types/IndexManagement/Alias.g.cs | 396 - .../IndexManagement/AliasDefinition.g.cs | 82 - .../Types/IndexManagement/AnalyzeDetail.g.cs | 42 - .../Types/IndexManagement/AnalyzeToken.g.cs | 44 - .../Types/IndexManagement/AnalyzerDetail.g.cs | 36 - .../Types/IndexManagement/CacheQueries.g.cs | 59 - .../IndexManagement/CharFilterDetail.g.cs | 36 - .../IndexManagement/CloseIndexResult.g.cs | 36 - .../IndexManagement/CloseShardResult.g.cs | 34 - .../Types/IndexManagement/DataStream.g.cs | 174 - .../IndexManagement/DataStreamIndex.g.cs | 71 - .../IndexManagement/DataStreamLifecycle.g.cs | 171 - .../DataStreamLifecycleDownsampling.g.cs | 131 - .../DataStreamLifecycleExplain.g.cs | 50 - ...DataStreamLifecycleRolloverConditions.g.cs | 52 - .../DataStreamLifecycleWithRollover.g.cs | 74 - .../DataStreamTimestampField.g.cs | 39 - .../IndexManagement/DataStreamVisibility.g.cs | 78 - .../DataStreamWithLifecycle.g.cs | 36 - .../IndexManagement/DataStreamsStatsItem.g.cs | 76 - .../IndexManagement/DownsampleConfig.g.cs | 69 - .../IndexManagement/DownsamplingRound.g.cs | 125 - .../IndexManagement/ExplainAnalyzeToken.g.cs | 138 - .../Types/IndexManagement/FailureStore.g.cs | 38 - .../FielddataFrequencyFilter.g.cs | 81 - .../Types/IndexManagement/FileDetails.g.cs | 38 - .../Types/IndexManagement/IndexAliases.g.cs | 34 - .../IndexAndDataStreamAction.g.cs | 91 - .../IndexManagement/IndexMappingRecord.g.cs | 36 - .../IndexModifyDataStreamAction.g.cs | 242 - .../Types/IndexManagement/IndexRouting.g.cs | 138 - .../IndexRoutingAllocation.g.cs | 198 - .../IndexRoutingAllocationDisk.g.cs | 63 - .../IndexRoutingAllocationInclude.g.cs | 78 - ...IndexRoutingAllocationInitialRecovery.g.cs | 63 - .../IndexRoutingRebalance.g.cs | 59 - .../Types/IndexManagement/IndexSegment.g.cs | 34 - .../IndexManagement/IndexSegmentSort.g.cs | 180 - .../IndexManagement/IndexSettingBlocks.g.cs | 123 - .../Types/IndexManagement/IndexSettings.g.cs | 3714 ---------- .../IndexSettingsAnalysis.g.cs | 193 - .../IndexSettingsLifecycle.g.cs | 238 - .../IndexSettingsLifecycleStep.g.cs | 75 - .../IndexSettingsTimeSeries.g.cs | 78 - .../Types/IndexManagement/IndexState.g.cs | 504 -- .../Types/IndexManagement/IndexStats.g.cs | 172 - .../Types/IndexManagement/IndexTemplate.g.cs | 119 - .../IndexTemplateDataStreamConfiguration.g.cs | 47 - .../IndexManagement/IndexTemplateItem.g.cs | 36 - .../IndexManagement/IndexTemplateMapping.g.cs | 415 -- .../IndexManagement/IndexTemplateSummary.g.cs | 62 - .../IndexUpdateAliasesAction.g.cs | 257 - .../IndexManagement/IndexVersioning.g.cs | 78 - .../IndexManagement/IndexingPressure.g.cs | 93 - .../IndexingPressureMemory.g.cs | 77 - .../IndexingSlowlogSettings.g.cs | 138 - .../IndexingSlowlogTresholds.g.cs | 105 - .../Types/IndexManagement/IndicesStats.g.cs | 44 - .../IndicesValidationExplanation.g.cs | 40 - .../IndexManagement/MappingLimitSettings.g.cs | 360 - .../MappingLimitSettingsDepth.g.cs | 75 - .../MappingLimitSettingsDimensionFields.g.cs | 75 - .../MappingLimitSettingsFieldNameLength.g.cs | 77 - .../MappingLimitSettingsNestedFields.g.cs | 77 - .../MappingLimitSettingsNestedObjects.g.cs | 75 - .../MappingLimitSettingsTotalFields.g.cs | 111 - .../Types/IndexManagement/MappingStats.g.cs | 38 - .../Types/IndexManagement/Merge.g.cs | 93 - .../Types/IndexManagement/MergeScheduler.g.cs | 78 - .../IndexManagement/NumericFielddata.g.cs | 59 - .../Types/IndexManagement/Overlapping.g.cs | 36 - .../Types/IndexManagement/Queries.g.cs | 93 - .../Types/IndexManagement/RecoveryBytes.g.cs | 50 - .../Types/IndexManagement/RecoveryFiles.g.cs | 42 - .../IndexManagement/RecoveryIndexStatus.g.cs | 50 - .../Types/IndexManagement/RecoveryOrigin.g.cs | 56 - .../IndexManagement/RecoveryStartStatus.g.cs | 40 - .../Types/IndexManagement/RecoveryStatus.g.cs | 34 - .../Types/IndexManagement/ReloadDetails.g.cs | 38 - .../Types/IndexManagement/ReloadResult.g.cs | 36 - .../Types/IndexManagement/RemoveAction.g.cs | 188 - .../IndexManagement/RemoveIndexAction.g.cs | 131 - .../ResolveIndexAliasItem.g.cs | 37 - .../ResolveIndexDataStreamsItem.g.cs | 39 - .../IndexManagement/ResolveIndexItem.g.cs | 40 - .../Types/IndexManagement/RetentionLease.g.cs | 59 - .../IndexManagement/RolloverConditions.g.cs | 273 - .../Types/IndexManagement/SearchIdle.g.cs | 63 - .../Types/IndexManagement/Segment.g.cs | 50 - .../IndexManagement/SettingsAnalyze.g.cs | 63 - .../IndexManagement/SettingsHighlight.g.cs | 63 - .../IndexManagement/SettingsQueryString.g.cs | 59 - .../Types/IndexManagement/SettingsSearch.g.cs | 138 - .../IndexManagement/SettingsSimilarities.g.cs | 177 - .../SettingsSimilarityBm25.g.cs | 105 - .../SettingsSimilarityBoolean.g.cs | 55 - .../SettingsSimilarityDfi.g.cs | 69 - .../SettingsSimilarityDfr.g.cs | 93 - .../IndexManagement/SettingsSimilarityIb.g.cs | 93 - .../SettingsSimilarityLmd.g.cs | 73 - .../SettingsSimilarityLmj.g.cs | 73 - .../SettingsSimilarityScripted.g.cs | 198 - .../Types/IndexManagement/ShardCommit.g.cs | 40 - .../IndexManagement/ShardFileSizeInfo.g.cs | 44 - .../Types/IndexManagement/ShardLease.g.cs | 40 - .../Types/IndexManagement/ShardPath.g.cs | 38 - .../IndexManagement/ShardQueryCache.g.cs | 46 - .../Types/IndexManagement/ShardRecovery.g.cs | 64 - .../IndexManagement/ShardRetentionLeases.g.cs | 38 - .../Types/IndexManagement/ShardRouting.g.cs | 40 - .../IndexManagement/ShardSegmentRouting.g.cs | 38 - .../IndexManagement/ShardSequenceNumber.g.cs | 38 - .../Types/IndexManagement/ShardStats.g.cs | 85 - .../Types/IndexManagement/ShardsSegment.g.cs | 40 - .../IndexManagement/ShardsTotalStats.g.cs | 34 - .../IndexManagement/SlowlogSettings.g.cs | 138 - .../SlowlogTresholdLevels.g.cs | 108 - .../IndexManagement/SlowlogTresholds.g.cs | 138 - .../Types/IndexManagement/SoftDeletes.g.cs | 135 - .../Types/IndexManagement/Storage.g.cs | 90 - .../Types/IndexManagement/Template.g.cs | 39 - .../Types/IndexManagement/TokenDetail.g.cs | 36 - .../Types/IndexManagement/Translog.g.cs | 180 - .../IndexManagement/TranslogRetention.g.cs | 115 - .../Types/IndexManagement/TranslogStatus.g.cs | 44 - .../Types/IndexManagement/VerifyIndex.g.cs | 40 - .../_Generated/Types/IndexingStats.g.cs | 62 - .../_Generated/Types/IndicesOptions.g.cs | 172 - .../Types/Inference/InferenceEndpoint.g.cs | 127 - .../Inference/InferenceEndpointInfo.g.cs | 76 - .../Types/Ingest/AppendProcessor.g.cs | 575 -- .../Types/Ingest/AttachmentProcessor.g.cs | 892 --- .../Types/Ingest/BytesProcessor.g.cs | 626 -- .../Types/Ingest/CircleProcessor.g.cs | 698 -- .../Types/Ingest/CommunityIDProcessor.g.cs | 1310 ---- .../Types/Ingest/ConvertProcessor.g.cs | 662 -- .../_Generated/Types/Ingest/CsvProcessor.g.cs | 750 -- .../Types/Ingest/DatabaseConfiguration.g.cs | 309 - .../Ingest/DatabaseConfigurationFull.g.cs | 332 - .../Ingest/DatabaseConfigurationMetadata.g.cs | 40 - .../Types/Ingest/DateIndexNameProcessor.g.cs | 753 -- .../Types/Ingest/DateProcessor.g.cs | 755 -- .../Types/Ingest/DissectProcessor.g.cs | 611 -- .../_Generated/Types/Ingest/Document.g.cs | 123 - .../Types/Ingest/DocumentSimulation.g.cs | 151 - .../Types/Ingest/DotExpanderProcessor.g.cs | 591 -- .../Types/Ingest/DropProcessor.g.cs | 407 -- .../Types/Ingest/EnrichProcessor.g.cs | 805 -- .../Types/Ingest/FailProcessor.g.cs | 446 -- .../Types/Ingest/FingerprintProcessor.g.cs | 676 -- .../Types/Ingest/ForeachProcessor.g.cs | 635 -- .../Types/Ingest/GeoGridProcessor.g.cs | 1010 --- .../Types/Ingest/GeoIpDownloadStatistics.g.cs | 79 - .../Types/Ingest/GeoIpNodeDatabaseName.g.cs | 39 - .../Types/Ingest/GeoIpNodeDatabases.g.cs | 52 - .../Types/Ingest/GeoIpProcessor.g.cs | 798 -- .../Types/Ingest/GrokProcessor.g.cs | 708 -- .../Types/Ingest/GsubProcessor.g.cs | 698 -- .../Types/Ingest/HtmlStripProcessor.g.cs | 626 -- .../Types/Ingest/InferenceConfig.g.cs | 242 - .../Ingest/InferenceConfigClassification.g.cs | 376 - .../Ingest/InferenceConfigRegression.g.cs | 197 - .../Types/Ingest/InferenceProcessor.g.cs | 682 -- .../_Generated/Types/Ingest/IngestInfo.g.cs | 38 - .../IpDatabaseConfigurationMetadata.g.cs | 42 - .../Types/Ingest/IpLocationProcessor.g.cs | 798 -- .../_Generated/Types/Ingest/Ipinfo.g.cs | 47 - .../Types/Ingest/JoinProcessor.g.cs | 618 -- .../Types/Ingest/JsonProcessor.g.cs | 726 -- .../Types/Ingest/KeyValueProcessor.g.cs | 979 --- .../_Generated/Types/Ingest/Local.g.cs | 61 - .../Types/Ingest/LowercaseProcessor.g.cs | 626 -- .../_Generated/Types/Ingest/Maxmind.g.cs | 62 - .../Ingest/NetworkDirectionProcessor.g.cs | 866 --- .../_Generated/Types/Ingest/Pipeline.g.cs | 565 -- .../Types/Ingest/PipelineProcessor.g.cs | 490 -- .../Types/Ingest/PipelineSimulation.g.cs | 46 - .../_Generated/Types/Ingest/Processor.g.cs | 887 --- .../_Generated/Types/Ingest/Redact.g.cs | 39 - .../Types/Ingest/RedactProcessor.g.cs | 771 -- .../Ingest/RegisteredDomainProcessor.g.cs | 629 -- .../Types/Ingest/RemoveProcessor.g.cs | 533 -- .../Types/Ingest/RenameProcessor.g.cs | 625 -- .../Types/Ingest/RerouteProcessor.g.cs | 598 -- .../Types/Ingest/ScriptProcessor.g.cs | 589 -- .../_Generated/Types/Ingest/SetProcessor.g.cs | 780 -- .../Ingest/SetSecurityUserProcessor.g.cs | 531 -- .../Types/Ingest/SimulateDocumentResult.g.cs | 38 - .../Types/Ingest/SortProcessor.g.cs | 629 -- .../Types/Ingest/SplitProcessor.g.cs | 706 -- .../Types/Ingest/TerminateProcessor.g.cs | 407 -- .../Types/Ingest/TrimProcessor.g.cs | 626 -- .../Types/Ingest/UppercaseProcessor.g.cs | 626 -- .../Types/Ingest/UriPartsProcessor.g.cs | 710 -- .../Types/Ingest/UrlDecodeProcessor.g.cs | 626 -- .../Types/Ingest/UserAgentProcessor.g.cs | 751 -- .../_Generated/Types/Ingest/Web.g.cs | 47 - .../_Generated/Types/InlineGet.g.cs | 115 - .../_Generated/Types/KnnQuery.g.cs | 663 -- .../_Generated/Types/KnnRetriever.g.cs | 566 -- .../_Generated/Types/KnnSearch.g.cs | 728 -- .../_Generated/Types/LatLonGeoLocation.g.cs | 91 - .../LicenseManagement/LicenseInformation.g.cs | 56 - .../AdaptiveAllocationsSettings.g.cs | 38 - .../MachineLearning/AggregateOutput.g.cs | 228 - .../Types/MachineLearning/AnalysisConfig.g.cs | 815 --- .../MachineLearning/AnalysisConfigRead.g.cs | 142 - .../Types/MachineLearning/AnalysisLimits.g.cs | 99 - .../MachineLearning/AnalysisMemoryLimit.g.cs | 69 - .../Types/MachineLearning/Anomaly.g.cs | 223 - .../Types/MachineLearning/AnomalyCause.g.cs | 60 - .../MachineLearning/AnomalyDetectors.g.cs | 42 - .../MachineLearning/AnomalyExplanation.g.cs | 111 - .../MachineLearning/ApiKeyAuthorization.g.cs | 47 - .../MachineLearning/BucketInfluencer.g.cs | 123 - .../Types/MachineLearning/BucketSummary.g.cs | 118 - .../Types/MachineLearning/Calendar.g.cs | 55 - .../Types/MachineLearning/CalendarEvent.g.cs | 232 - .../CategorizationAnalyzer.g.cs | 42 - .../CategorizationAnalyzerDefinition.g.cs | 125 - .../Types/MachineLearning/Category.g.cs | 125 - .../Types/MachineLearning/ChunkingConfig.g.cs | 101 - .../ClassificationInferenceOptions.g.cs | 181 - .../MachineLearning/ConfusionMatrixItem.g.cs | 40 - .../ConfusionMatrixPrediction.g.cs | 36 - .../ConfusionMatrixThreshold.g.cs | 63 - .../Types/MachineLearning/DataCounts.g.cs | 70 - .../MachineLearning/DataDescription.g.cs | 268 - .../Types/MachineLearning/Datafeed.g.cs | 189 - .../DatafeedAuthorization.g.cs | 55 - .../Types/MachineLearning/DatafeedConfig.g.cs | 1082 --- .../MachineLearning/DatafeedRunningState.g.cs | 56 - .../Types/MachineLearning/DatafeedStats.g.cs | 74 - .../MachineLearning/DatafeedTimingStats.g.cs | 81 - .../Types/MachineLearning/Datafeeds.g.cs | 34 - .../MachineLearning/DataframeAnalysis.g.cs | 257 - .../DataframeAnalysisAnalyzedFields.g.cs | 91 - .../DataframeAnalysisClassification.g.cs | 1328 ---- .../DataframeAnalysisFeatureProcessor.g.cs | 287 - ...ysisFeatureProcessorFrequencyEncoding.g.cs | 181 - ...AnalysisFeatureProcessorMultiEncoding.g.cs | 71 - ...AnalysisFeatureProcessorNGramEncoding.g.cs | 342 - ...nalysisFeatureProcessorOneHotEncoding.g.cs | 181 - ...sisFeatureProcessorTargetMeanEncoding.g.cs | 253 - .../DataframeAnalysisOutlierDetection.g.cs | 205 - .../DataframeAnalysisRegression.g.cs | 1344 ---- .../MachineLearning/DataframeAnalytics.g.cs | 79 - .../DataframeAnalyticsAuthorization.g.cs | 55 - .../DataframeAnalyticsDestination.g.cs | 187 - .../DataframeAnalyticsFieldSelection.g.cs | 79 - .../DataframeAnalyticsMemoryEstimation.g.cs | 47 - .../DataframeAnalyticsSource.g.cs | 351 - .../DataframeAnalyticsStatsDataCounts.g.cs | 55 - .../DataframeAnalyticsStatsMemoryUsage.g.cs | 63 - .../DataframeAnalyticsStatsProgress.g.cs | 47 - .../DataframeAnalyticsSummary.g.cs | 64 - .../DataframeClassificationSummary.g.cs | 72 - ...ataframeClassificationSummaryAccuracy.g.cs | 36 - ...ationSummaryMulticlassConfusionMatrix.g.cs | 36 - ...taframeClassificationSummaryPrecision.g.cs | 36 - .../DataframeClassificationSummaryRecall.g.cs | 36 - .../MachineLearning/DataframeEvaluation.g.cs | 257 - .../DataframeEvaluationClass.g.cs | 36 - .../DataframeEvaluationClassification.g.cs | 425 -- ...aframeEvaluationClassificationMetrics.g.cs | 207 - ...EvaluationClassificationMetricsAucRoc.g.cs | 99 - .../DataframeEvaluationOutlierDetection.g.cs | 329 - ...rameEvaluationOutlierDetectionMetrics.g.cs | 181 - .../DataframeEvaluationRegression.g.cs | 329 - .../DataframeEvaluationRegressionMetrics.g.cs | 211 - ...frameEvaluationRegressionMetricsHuber.g.cs | 73 - ...aframeEvaluationRegressionMetricsMsle.g.cs | 73 - .../DataframeEvaluationSummaryAucRoc.g.cs | 36 - ...frameEvaluationSummaryAucRocCurveItem.g.cs | 38 - .../DataframeEvaluationValue.g.cs | 34 - .../DataframeOutlierDetectionSummary.g.cs | 63 - .../DataframePreviewConfig.g.cs | 384 - .../DataframeRegressionSummary.g.cs | 63 - .../Types/MachineLearning/Defaults.g.cs | 36 - .../Types/MachineLearning/Definition.g.cs | 187 - .../DelayedDataCheckConfig.g.cs | 99 - .../Types/MachineLearning/DetectionRule.g.cs | 311 - .../Types/MachineLearning/Detector.g.cs | 795 -- .../Types/MachineLearning/DetectorRead.g.cs | 124 - .../Types/MachineLearning/DetectorUpdate.g.cs | 312 - .../Types/MachineLearning/Ensemble.g.cs | 211 - .../ExponentialAverageCalculationContext.g.cs | 38 - .../FillMaskInferenceOptions.g.cs | 246 - .../FillMaskInferenceUpdateOptions.g.cs | 157 - .../Types/MachineLearning/Filter.g.cs | 55 - .../Types/MachineLearning/FilterRef.g.cs | 95 - .../FrequencyEncodingPreprocessor.g.cs | 83 - .../Types/MachineLearning/GeoResults.g.cs | 47 - .../Types/MachineLearning/Hyperparameter.g.cs | 71 - .../InferenceConfigCreate.g.cs | 367 - .../InferenceConfigUpdate.g.cs | 362 - .../InferenceResponseResult.g.cs | 114 - .../Types/MachineLearning/Influence.g.cs | 36 - .../Types/MachineLearning/Influencer.g.cs | 126 - .../Types/MachineLearning/Input.g.cs | 59 - .../_Generated/Types/MachineLearning/Job.g.cs | 231 - .../Types/MachineLearning/JobBlocked.g.cs | 36 - .../JobForecastStatistics.g.cs | 44 - .../Types/MachineLearning/JobStatistics.g.cs | 40 - .../Types/MachineLearning/JobStats.g.cs | 106 - .../Types/MachineLearning/JobTimingStats.g.cs | 48 - .../Types/MachineLearning/JvmStats.g.cs | 79 - .../Types/MachineLearning/Limits.g.cs | 42 - .../Types/MachineLearning/MemMlStats.g.cs | 111 - .../Types/MachineLearning/MemStats.g.cs | 73 - .../Types/MachineLearning/Memory.g.cs | 76 - .../MachineLearning/ModelPackageConfig.g.cs | 60 - .../MachineLearning/ModelPlotConfig.g.cs | 239 - .../Types/MachineLearning/ModelSizeStats.g.cs | 76 - .../Types/MachineLearning/ModelSnapshot.g.cs | 111 - .../MachineLearning/ModelSnapshotUpgrade.g.cs | 40 - .../Types/MachineLearning/NativeCode.g.cs | 36 - .../MachineLearning/NerInferenceOptions.g.cs | 212 - .../NerInferenceUpdateOptions.g.cs | 131 - .../NlpBertTokenizationConfig.g.cs | 187 - .../NlpRobertaTokenizationConfig.g.cs | 215 - .../NlpTokenizationUpdateOptions.g.cs | 99 - .../OneHotEncodingPreprocessor.g.cs | 72 - .../Types/MachineLearning/OverallBucket.g.cs | 87 - .../MachineLearning/OverallBucketJob.g.cs | 36 - .../Types/MachineLearning/Page.g.cs | 99 - .../PassThroughInferenceOptions.g.cs | 186 - .../PassThroughInferenceUpdateOptions.g.cs | 131 - .../PerPartitionCategorization.g.cs | 99 - .../Types/MachineLearning/Preprocessor.g.cs | 257 - .../QuestionAnsweringInferenceOptions.g.cs | 193 - ...estionAnsweringInferenceUpdateOptions.g.cs | 205 - .../RegressionInferenceOptions.g.cs | 199 - .../Types/MachineLearning/RuleCondition.g.cs | 113 - .../RunningStateSearchInterval.g.cs | 63 - .../TargetMeanEncodingPreprocessor.g.cs | 94 - .../TextClassificationInferenceOptions.g.cs | 193 - ...tClassificationInferenceUpdateOptions.g.cs | 183 - .../TextEmbeddingInferenceOptions.g.cs | 212 - .../TextEmbeddingInferenceUpdateOptions.g.cs | 120 - .../TextExpansionInferenceOptions.g.cs | 186 - .../TextExpansionInferenceUpdateOptions.g.cs | 120 - .../MachineLearning/TokenizationConfig.g.cs | 277 - .../Types/MachineLearning/TopClassEntry.g.cs | 38 - .../TotalFeatureImportance.g.cs | 55 - .../TotalFeatureImportanceClass.g.cs | 47 - .../TotalFeatureImportanceStatistics.g.cs | 55 - .../Types/MachineLearning/TrainedModel.g.cs | 241 - .../TrainedModelAssignment.g.cs | 64 - .../TrainedModelAssignmentRoutingTable.g.cs | 64 - .../TrainedModelAssignmentTaskParameters.g.cs | 93 - .../MachineLearning/TrainedModelConfig.g.cs | 162 - .../TrainedModelConfigInput.g.cs | 39 - .../TrainedModelConfigMetadata.g.cs | 57 - ...rainedModelDeploymentAllocationStatus.g.cs | 55 - .../TrainedModelDeploymentNodesStats.g.cs | 137 - .../TrainedModelDeploymentStats.g.cs | 157 - .../MachineLearning/TrainedModelEntities.g.cs | 42 - .../TrainedModelInferenceClassImportance.g.cs | 36 - ...rainedModelInferenceFeatureImportance.g.cs | 38 - .../TrainedModelInferenceStats.g.cs | 75 - .../MachineLearning/TrainedModelLocation.g.cs | 34 - .../TrainedModelLocationIndex.g.cs | 34 - .../TrainedModelPrefixStrings.g.cs | 99 - .../TrainedModelSizeStats.g.cs | 47 - .../MachineLearning/TrainedModelStats.g.cs | 81 - .../MachineLearning/TrainedModelTree.g.cs | 162 - .../MachineLearning/TrainedModelTreeNode.g.cs | 179 - .../TransformAuthorization.g.cs | 55 - .../Types/MachineLearning/Vocabulary.g.cs | 59 - .../Types/MachineLearning/Weights.g.cs | 59 - ...eroShotClassificationInferenceOptions.g.cs | 243 - ...tClassificationInferenceUpdateOptions.g.cs | 179 - .../AggregateMetricDoubleProperty.g.cs | 375 - .../_Generated/Types/Mapping/AllField.g.cs | 158 - .../Types/Mapping/BinaryProperty.g.cs | 392 - .../Types/Mapping/BooleanProperty.g.cs | 620 -- .../Types/Mapping/ByteNumberProperty.g.cs | 710 -- .../Types/Mapping/CompletionProperty.g.cs | 736 -- .../Types/Mapping/CompositeSubField.g.cs | 59 - .../Mapping/ConstantKeywordProperty.g.cs | 332 - .../Types/Mapping/DataStreamTimestamp.g.cs | 59 - .../Types/Mapping/DateNanosProperty.g.cs | 572 -- .../Types/Mapping/DateProperty.g.cs | 740 -- .../Types/Mapping/DateRangeProperty.g.cs | 512 -- .../Mapping/DenseVectorIndexOptions.g.cs | 185 - .../Types/Mapping/DenseVectorProperty.g.cs | 698 -- .../Types/Mapping/DoubleNumberProperty.g.cs | 710 -- .../Types/Mapping/DoubleRangeProperty.g.cs | 482 -- .../Types/Mapping/DynamicProperty.g.cs | 1268 ---- .../Types/Mapping/DynamicTemplate.g.cs | 535 -- .../Types/Mapping/FieldAliasProperty.g.cs | 355 - .../Types/Mapping/FieldNamesField.g.cs | 59 - .../Types/Mapping/FlattenedProperty.g.cs | 571 -- .../Types/Mapping/FloatNumberProperty.g.cs | 710 -- .../Types/Mapping/FloatRangeProperty.g.cs | 482 -- .../Types/Mapping/GeoPointProperty.g.cs | 680 -- .../Types/Mapping/GeoShapeProperty.g.cs | 563 -- .../Mapping/HalfFloatNumberProperty.g.cs | 710 -- .../Types/Mapping/HistogramProperty.g.cs | 331 - .../Types/Mapping/IcuCollationProperty.g.cs | 905 --- .../_Generated/Types/Mapping/IndexField.g.cs | 59 - .../Types/Mapping/IntegerNumberProperty.g.cs | 710 -- .../Types/Mapping/IntegerRangeProperty.g.cs | 482 -- .../_Generated/Types/Mapping/IpProperty.g.cs | 680 -- .../Types/Mapping/IpRangeProperty.g.cs | 482 -- .../Types/Mapping/JoinProperty.g.cs | 361 - .../Types/Mapping/KeywordProperty.g.cs | 830 --- .../Types/Mapping/LongNumberProperty.g.cs | 710 -- .../Types/Mapping/LongRangeProperty.g.cs | 482 -- .../Types/Mapping/MatchOnlyTextProperty.g.cs | 278 - .../Types/Mapping/Murmur3HashProperty.g.cs | 392 - .../Types/Mapping/NestedProperty.g.cs | 452 -- .../Types/Mapping/ObjectProperty.g.cs | 422 -- .../Mapping/PassthroughObjectProperty.g.cs | 452 -- .../Types/Mapping/PercolatorProperty.g.cs | 301 - .../Types/Mapping/PointProperty.g.cs | 482 -- .../_Generated/Types/Mapping/Properties.g.cs | 612 -- .../Types/Mapping/RankFeatureProperty.g.cs | 331 - .../Types/Mapping/RankFeaturesProperty.g.cs | 331 - .../Types/Mapping/RoutingField.g.cs | 59 - .../Types/Mapping/RuntimeField.g.cs | 671 -- .../Mapping/RuntimeFieldFetchFields.g.cs | 136 - .../Mapping/ScaledFloatNumberProperty.g.cs | 740 -- .../Mapping/SearchAsYouTypeProperty.g.cs | 632 -- .../Types/Mapping/SemanticTextProperty.g.cs | 85 - .../Types/Mapping/ShapeProperty.g.cs | 533 -- .../Types/Mapping/ShortNumberProperty.g.cs | 710 -- .../_Generated/Types/Mapping/SizeField.g.cs | 59 - .../_Generated/Types/Mapping/SourceField.g.cs | 138 - .../Types/Mapping/SparseVectorProperty.g.cs | 301 - .../Types/Mapping/SuggestContext.g.cs | 184 - .../Types/Mapping/TextIndexPrefixes.g.cs | 70 - .../Types/Mapping/TextProperty.g.cs | 1028 --- .../Types/Mapping/TokenCountProperty.g.cs | 542 -- .../_Generated/Types/Mapping/TypeMapping.g.cs | 988 --- .../Mapping/UnsignedLongNumberProperty.g.cs | 710 -- .../Types/Mapping/VersionProperty.g.cs | 392 - .../Types/Mapping/WildcardProperty.g.cs | 422 -- .../_Generated/Types/MergesStats.g.cs | 64 - .../_Generated/Types/NestedSortValue.g.cs | 312 - .../_Generated/Types/NodeStatistics.g.cs | 62 - .../Types/Nodes/AdaptiveSelection.g.cs | 87 - .../_Generated/Types/Nodes/Breaker.g.cs | 79 - .../_Generated/Types/Nodes/Cgroup.g.cs | 55 - .../_Generated/Types/Nodes/CgroupCpu.g.cs | 63 - .../_Generated/Types/Nodes/CgroupCpuStat.g.cs | 55 - .../_Generated/Types/Nodes/CgroupMemory.g.cs | 58 - .../_Generated/Types/Nodes/Client.g.cs | 121 - .../Types/Nodes/ClusterAppliedStats.g.cs | 34 - .../Types/Nodes/ClusterStateQueue.g.cs | 55 - .../Types/Nodes/ClusterStateUpdate.g.cs | 155 - .../_Generated/Types/Nodes/Context.g.cs | 40 - .../_Generated/Types/Nodes/Cpu.g.cs | 48 - .../_Generated/Types/Nodes/CpuAcct.g.cs | 47 - .../_Generated/Types/Nodes/DataPathStats.g.cs | 117 - .../Types/Nodes/DeprecationIndexing.g.cs | 34 - .../_Generated/Types/Nodes/Discovery.g.cs | 63 - .../Types/Nodes/ExtendedMemoryStats.g.cs | 92 - .../_Generated/Types/Nodes/FileSystem.g.cs | 64 - .../Types/Nodes/FileSystemTotal.g.cs | 83 - .../Types/Nodes/GarbageCollector.g.cs | 39 - .../Types/Nodes/GarbageCollectorTotal.g.cs | 55 - .../_Generated/Types/Nodes/Http.g.cs | 56 - .../Types/Nodes/IndexingPressure.g.cs | 39 - .../Types/Nodes/IndexingPressureMemory.g.cs | 65 - .../_Generated/Types/Nodes/Ingest.g.cs | 47 - .../_Generated/Types/Nodes/IngestStats.g.cs | 92 - .../_Generated/Types/Nodes/IngestTotal.g.cs | 63 - .../_Generated/Types/Nodes/IoStatDevice.g.cs | 79 - .../_Generated/Types/Nodes/IoStats.g.cs | 48 - .../_Generated/Types/Nodes/Jvm.g.cs | 96 - .../_Generated/Types/Nodes/JvmClasses.g.cs | 55 - .../Types/Nodes/JvmMemoryStats.g.cs | 87 - .../_Generated/Types/Nodes/JvmThreads.g.cs | 47 - .../Types/Nodes/KeyedProcessor.g.cs | 36 - .../_Generated/Types/Nodes/MemoryStats.g.cs | 76 - .../Types/Nodes/NodeBufferPool.g.cs | 71 - .../_Generated/Types/Nodes/NodeInfo.g.cs | 128 - .../Types/Nodes/NodeInfoAction.g.cs | 34 - .../Types/Nodes/NodeInfoAggregation.g.cs | 34 - .../Types/Nodes/NodeInfoBootstrap.g.cs | 34 - .../Types/Nodes/NodeInfoClient.g.cs | 34 - .../Types/Nodes/NodeInfoDiscover.g.cs | 91 - .../_Generated/Types/Nodes/NodeInfoHttp.g.cs | 40 - .../Types/Nodes/NodeInfoIngest.g.cs | 34 - .../Types/Nodes/NodeInfoIngestDownloader.g.cs | 34 - .../Types/Nodes/NodeInfoIngestInfo.g.cs | 34 - .../Types/Nodes/NodeInfoIngestProcessor.g.cs | 34 - .../Types/Nodes/NodeInfoJvmMemory.g.cs | 52 - .../Types/Nodes/NodeInfoMemory.g.cs | 36 - .../Types/Nodes/NodeInfoNetwork.g.cs | 36 - .../Types/Nodes/NodeInfoNetworkInterface.g.cs | 38 - .../_Generated/Types/Nodes/NodeInfoOSCPU.g.cs | 48 - .../_Generated/Types/Nodes/NodeInfoPath.g.cs | 41 - .../Types/Nodes/NodeInfoRepositories.g.cs | 34 - .../Types/Nodes/NodeInfoRepositoriesUrl.g.cs | 34 - .../Types/Nodes/NodeInfoScript.g.cs | 36 - .../Types/Nodes/NodeInfoSearch.g.cs | 34 - .../Types/Nodes/NodeInfoSearchRemote.g.cs | 34 - .../Types/Nodes/NodeInfoSettings.g.cs | 62 - .../Types/Nodes/NodeInfoSettingsCluster.g.cs | 42 - .../NodeInfoSettingsClusterElection.g.cs | 34 - .../Types/Nodes/NodeInfoSettingsHttp.g.cs | 40 - .../Types/Nodes/NodeInfoSettingsHttpType.g.cs | 34 - .../Types/Nodes/NodeInfoSettingsIngest.g.cs | 100 - .../Types/Nodes/NodeInfoSettingsNetwork.g.cs | 35 - .../Types/Nodes/NodeInfoSettingsNode.g.cs | 38 - .../Nodes/NodeInfoSettingsTransport.g.cs | 38 - .../NodeInfoSettingsTransportFeatures.g.cs | 34 - .../Nodes/NodeInfoSettingsTransportType.g.cs | 34 - .../Types/Nodes/NodeInfoTransport.g.cs | 38 - .../_Generated/Types/Nodes/NodeInfoXpack.g.cs | 40 - .../Types/Nodes/NodeInfoXpackLicense.g.cs | 34 - .../Types/Nodes/NodeInfoXpackLicenseType.g.cs | 34 - .../Types/Nodes/NodeInfoXpackMl.g.cs | 34 - .../Types/Nodes/NodeInfoXpackSecurity.g.cs | 40 - .../Nodes/NodeInfoXpackSecurityAuthc.g.cs | 36 - .../NodeInfoXpackSecurityAuthcRealms.g.cs | 38 - ...odeInfoXpackSecurityAuthcRealmsStatus.g.cs | 36 - .../NodeInfoXpackSecurityAuthcToken.g.cs | 34 - .../Types/Nodes/NodeInfoXpackSecuritySsl.g.cs | 34 - .../_Generated/Types/Nodes/NodeJvmInfo.g.cs | 151 - .../Types/Nodes/NodeOperatingSystemInfo.g.cs | 87 - .../Types/Nodes/NodeProcessInfo.g.cs | 55 - .../Types/Nodes/NodeThreadPoolInfo.g.cs | 44 - .../_Generated/Types/Nodes/NodeUsage.g.cs | 40 - .../Types/Nodes/OperatingSystem.g.cs | 42 - .../_Generated/Types/Nodes/Pool.g.cs | 63 - .../Types/Nodes/PressureMemory.g.cs | 137 - .../_Generated/Types/Nodes/Process.g.cs | 72 - .../_Generated/Types/Nodes/Processor.g.cs | 63 - .../Types/Nodes/PublishedClusterStates.g.cs | 55 - .../_Generated/Types/Nodes/Recording.g.cs | 40 - .../_Generated/Types/Nodes/ScriptCache.g.cs | 57 - .../_Generated/Types/Nodes/Scripting.g.cs | 65 - .../Types/Nodes/SerializedClusterState.g.cs | 42 - .../Nodes/SerializedClusterStateDetail.g.cs | 42 - .../_Generated/Types/Nodes/Stats.g.cs | 198 - .../_Generated/Types/Nodes/ThreadCount.g.cs | 79 - .../_Generated/Types/Nodes/Transport.g.cs | 113 - .../Types/Nodes/TransportHistogram.g.cs | 56 - .../_Generated/Types/PluginStats.g.cs | 50 - .../_Generated/Types/QueryCacheStats.g.cs | 96 - .../_Generated/Types/QueryDsl/BoolQuery.g.cs | 827 --- .../Types/QueryDsl/BoostingQuery.g.cs | 390 - .../Types/QueryDsl/CombinedFieldsQuery.g.cs | 398 - .../Types/QueryDsl/ConstantScoreQuery.g.cs | 256 - .../Types/QueryDsl/DateDecayFunction.g.cs | 228 - .../QueryDsl/DateDistanceFeatureQuery.g.cs | 329 - .../Types/QueryDsl/DateRangeQuery.g.cs | 643 -- .../Types/QueryDsl/DecayPlacement.g.cs | 66 - .../Types/QueryDsl/DisMaxQuery.g.cs | 356 - .../Types/QueryDsl/ExistsQuery.g.cs | 229 - .../Types/QueryDsl/FieldAndFormat.g.cs | 230 - .../Types/QueryDsl/FieldLookup.g.cs | 275 - .../FieldValueFactorScoreFunction.g.cs | 280 - .../Types/QueryDsl/FunctionScore.g.cs | 410 -- .../Types/QueryDsl/FunctionScoreQuery.g.cs | 586 -- .../_Generated/Types/QueryDsl/FuzzyQuery.g.cs | 578 -- .../Types/QueryDsl/GeoBoundingBoxQuery.g.cs | 393 - .../Types/QueryDsl/GeoDecayFunction.g.cs | 228 - .../QueryDsl/GeoDistanceFeatureQuery.g.cs | 329 - .../Types/QueryDsl/GeoDistanceQuery.g.cs | 497 -- .../Types/QueryDsl/GeoShapeFieldQuery.g.cs | 239 - .../Types/QueryDsl/GeoShapeQuery.g.cs | 375 - .../Types/QueryDsl/HasChildQuery.g.cs | 575 -- .../Types/QueryDsl/HasParentQuery.g.cs | 484 -- .../_Generated/Types/QueryDsl/IdsQuery.g.cs | 125 - .../_Generated/Types/QueryDsl/Intervals.g.cs | 302 - .../Types/QueryDsl/IntervalsAllOf.g.cs | 421 -- .../Types/QueryDsl/IntervalsAnyOf.g.cs | 330 - .../Types/QueryDsl/IntervalsFilter.g.cs | 347 - .../Types/QueryDsl/IntervalsFuzzy.g.cs | 373 - .../Types/QueryDsl/IntervalsMatch.g.cs | 436 -- .../Types/QueryDsl/IntervalsPrefix.g.cs | 241 - .../Types/QueryDsl/IntervalsQuery.g.cs | 475 -- .../Types/QueryDsl/IntervalsWildcard.g.cs | 244 - .../_Generated/Types/QueryDsl/Like.g.cs | 48 - .../Types/QueryDsl/LikeDocument.g.cs | 352 - .../Types/QueryDsl/MatchAllQuery.g.cs | 99 - .../Types/QueryDsl/MatchBoolPrefixQuery.g.cs | 767 -- .../Types/QueryDsl/MatchNoneQuery.g.cs | 96 - .../QueryDsl/MatchPhrasePrefixQuery.g.cs | 523 -- .../Types/QueryDsl/MatchPhraseQuery.g.cs | 468 -- .../_Generated/Types/QueryDsl/MatchQuery.g.cs | 911 --- .../Types/QueryDsl/MoreLikeThisQuery.g.cs | 904 --- .../Types/QueryDsl/MultiMatchQuery.g.cs | 849 --- .../Types/QueryDsl/NestedQuery.g.cs | 522 -- .../Types/QueryDsl/NumberRangeQuery.g.cs | 533 -- .../Types/QueryDsl/NumericDecayFunction.g.cs | 228 - .../Types/QueryDsl/ParentIdQuery.g.cs | 174 - .../Types/QueryDsl/PercolateQuery.g.cs | 578 -- .../_Generated/Types/QueryDsl/PinnedDoc.g.cs | 91 - .../Types/QueryDsl/PinnedQuery.g.cs | 409 -- .../Types/QueryDsl/PrefixQuery.g.cs | 419 -- .../_Generated/Types/QueryDsl/Query.g.cs | 1061 --- .../Types/QueryDsl/QueryStringQuery.g.cs | 1287 ---- .../Types/QueryDsl/RandomScoreFunction.g.cs | 146 - .../QueryDsl/RankFeatureFunctionLinear.g.cs | 47 - .../RankFeatureFunctionLogarithm.g.cs | 69 - .../RankFeatureFunctionSaturation.g.cs | 73 - .../QueryDsl/RankFeatureFunctionSigmoid.g.cs | 91 - .../Types/QueryDsl/RankFeatureQuery.g.cs | 642 -- .../Types/QueryDsl/RegexpQuery.g.cs | 526 -- .../_Generated/Types/QueryDsl/RuleQuery.g.cs | 274 - .../Types/QueryDsl/ScriptQuery.g.cs | 154 - .../Types/QueryDsl/ScriptScoreFunction.g.cs | 105 - .../Types/QueryDsl/ScriptScoreQuery.g.cs | 401 - .../Types/QueryDsl/SemanticQuery.g.cs | 140 - .../Types/QueryDsl/ShapeFieldQuery.g.cs | 255 - .../_Generated/Types/QueryDsl/ShapeQuery.g.cs | 372 - .../QueryDsl/SimpleQueryStringQuery.g.cs | 723 -- .../Types/QueryDsl/SpanContainingQuery.g.cs | 361 - .../Types/QueryDsl/SpanFieldMaskingQuery.g.cs | 279 - .../Types/QueryDsl/SpanFirstQuery.g.cs | 287 - .../Types/QueryDsl/SpanMultiTermQuery.g.cs | 251 - .../Types/QueryDsl/SpanNearQuery.g.cs | 395 - .../Types/QueryDsl/SpanNotQuery.g.cs | 490 -- .../Types/QueryDsl/SpanOrQuery.g.cs | 307 - .../_Generated/Types/QueryDsl/SpanQuery.g.cs | 360 - .../Types/QueryDsl/SpanTermQuery.g.cs | 288 - .../Types/QueryDsl/SpanWithinQuery.g.cs | 361 - .../Types/QueryDsl/SparseVectorQuery.g.cs | 506 -- .../_Generated/Types/QueryDsl/TermQuery.g.cs | 364 - .../Types/QueryDsl/TermRangeQuery.g.cs | 533 -- .../Types/QueryDsl/TermsLookup.g.cs | 176 - .../_Generated/Types/QueryDsl/TermsQuery.g.cs | 280 - .../Types/QueryDsl/TermsQueryField.g.cs | 42 - .../Types/QueryDsl/TermsSetQuery.g.cs | 572 -- .../Types/QueryDsl/UntypedDecayFunction.g.cs | 228 - .../QueryDsl/UntypedDistanceFeatureQuery.g.cs | 329 - .../Types/QueryDsl/UntypedRangeQuery.g.cs | 643 -- .../Types/QueryDsl/WildcardQuery.g.cs | 483 -- .../Types/QueryDsl/WrapperQuery.g.cs | 120 - .../Types/QueryRules/QueryRule.g.cs | 202 - .../Types/QueryRules/QueryRuleActions.g.cs | 136 - .../Types/QueryRules/QueryRuleCriteria.g.cs | 89 - .../QueryRules/QueryRulesetListItem.g.cs | 63 - .../QueryRules/QueryRulesetMatchedRule.g.cs | 47 - .../_Generated/Types/QueryVectorBuilder.g.cs | 227 - .../_Generated/Types/RRFRetriever.g.cs | 514 -- .../_Generated/Types/RecoveryStats.g.cs | 40 - .../_Generated/Types/RefreshStats.g.cs | 44 - .../_Generated/Types/RequestCacheStats.g.cs | 42 - .../_Generated/Types/Retries.g.cs | 36 - .../_Generated/Types/Retriever.g.cs | 287 - .../_Generated/Types/RuleRetriever.g.cs | 486 -- .../_Generated/Types/ScoreSort.g.cs | 63 - .../_Generated/Types/Script.g.cs | 170 - .../_Generated/Types/ScriptField.g.cs | 108 - .../_Generated/Types/ScriptSort.g.cs | 326 - .../_Generated/Types/SearchStats.g.cs | 68 - .../_Generated/Types/Security/Access.g.cs | 47 - .../_Generated/Types/Security/ApiKey.g.cs | 166 - .../Types/Security/ApiKeyAggregation.g.cs | 452 -- .../Security/ApiKeyFiltersAggregation.g.cs | 244 - .../Types/Security/ApiKeyQuery.g.cs | 384 - .../ApplicationGlobalUserPrivileges.g.cs | 34 - .../Types/Security/ApplicationPrivileges.g.cs | 113 - .../Security/ApplicationPrivilegesCheck.g.cs | 113 - .../Types/Security/AuthenticateApiKey.g.cs | 36 - .../Types/Security/AuthenticateToken.g.cs | 36 - .../Types/Security/AuthenticatedUser.g.cs | 54 - .../Security/AuthenticationProvider.g.cs | 36 - .../_Generated/Types/Security/BulkError.g.cs | 47 - .../Types/Security/ClusterNode.g.cs | 34 - .../Types/Security/CreatedStatus.g.cs | 34 - .../_Generated/Types/Security/FieldRule.g.cs | 251 - .../Types/Security/FieldSecurity.g.cs | 122 - .../Types/Security/FoundStatus.g.cs | 34 - .../Types/Security/GetUserProfileErrors.g.cs | 36 - .../Types/Security/GlobalPrivilege.g.cs | 34 - .../Types/Security/GrantApiKey.g.cs | 231 - .../HasPrivilegesUserProfileErrors.g.cs | 36 - .../_Generated/Types/Security/Hint.g.cs | 103 - .../Types/Security/IndexPrivilegesCheck.g.cs | 121 - .../Types/Security/IndicesPrivileges.g.cs | 284 - .../Types/Security/ManageUserPrivileges.g.cs | 34 - .../Types/Security/NodesCredentials.g.cs | 47 - .../Security/NodesCredentialsFileToken.g.cs | 34 - .../Types/Security/PrivilegeActions.g.cs | 104 - .../Types/Security/PrivilegesCheck.g.cs | 220 - .../_Generated/Types/Security/QueryRole.g.cs | 182 - .../_Generated/Types/Security/QueryUser.g.cs | 48 - .../_Generated/Types/Security/RealmInfo.g.cs | 36 - .../Types/Security/ReplicationAccess.g.cs | 48 - .../Types/Security/Restriction.g.cs | 59 - .../_Generated/Types/Security/Role.g.cs | 48 - .../Types/Security/RoleDescriptor.g.cs | 804 -- .../Types/Security/RoleDescriptorRead.g.cs | 160 - .../Types/Security/RoleDescriptorWrapper.g.cs | 34 - .../Types/Security/RoleMapping.g.cs | 42 - .../Types/Security/RoleMappingRule.g.cs | 272 - .../_Generated/Types/Security/RoleQuery.g.cs | 384 - .../Types/Security/RoleTemplate.g.cs | 108 - .../Types/Security/SearchAccess.g.cs | 56 - .../Types/Security/ServiceToken.g.cs | 36 - .../Types/Security/TotalUserProfiles.g.cs | 36 - .../Types/Security/UserIndicesPrivileges.g.cs | 72 - .../Types/Security/UserProfile.g.cs | 42 - .../Security/UserProfileHitMetadata.g.cs | 36 - .../Types/Security/UserProfileUser.g.cs | 44 - .../Security/UserProfileWithMetadata.g.cs | 46 - .../_Generated/Types/Security/UserQuery.g.cs | 384 - .../_Generated/Types/Security/UserRealm.g.cs | 36 - .../_Generated/Types/SegmentsStats.g.cs | 213 - .../_Generated/Types/ShardFailure.g.cs | 42 - .../_Generated/Types/ShardStatistics.g.cs | 54 - .../_Generated/Types/SlicedScroll.g.cs | 156 - .../_Generated/Types/Slices.g.cs | 47 - .../Types/Snapshot/AzureRepository.g.cs | 144 - .../Snapshot/AzureRepositorySettings.g.cs | 183 - .../Snapshot/CleanupRepositoryResults.g.cs | 47 - .../Types/Snapshot/CompactNodeInfo.g.cs | 34 - .../Snapshot/FileCountSnapshotStats.g.cs | 36 - .../Types/Snapshot/GcsRepository.g.cs | 144 - .../Types/Snapshot/GcsRepositorySettings.g.cs | 179 - .../Types/Snapshot/IndexDetails.g.cs | 40 - .../Types/Snapshot/InfoFeatureState.g.cs | 37 - .../Types/Snapshot/ReadOnlyUrlRepository.g.cs | 144 - .../ReadOnlyUrlRepositorySettings.g.cs | 164 - .../Types/Snapshot/Repositories.g.cs | 161 - .../Types/Snapshot/S3Repository.g.cs | 144 - .../Types/Snapshot/S3RepositorySettings.g.cs | 224 - .../Types/Snapshot/ShardsStats.g.cs | 44 - .../Types/Snapshot/ShardsStatsSummary.g.cs | 42 - .../Snapshot/ShardsStatsSummaryItem.g.cs | 36 - .../Snapshot/SharedFileSystemRepository.g.cs | 144 - .../SharedFileSystemRepositorySettings.g.cs | 149 - .../Types/Snapshot/SnapshotIndexStats.g.cs | 38 - .../Types/Snapshot/SnapshotInfo.g.cs | 75 - .../Types/Snapshot/SnapshotResponseItem.g.cs | 38 - .../Types/Snapshot/SnapshotRestore.g.cs | 38 - .../Types/Snapshot/SnapshotShardFailure.g.cs | 44 - .../Types/Snapshot/SnapshotShardsStatus.g.cs | 36 - .../Types/Snapshot/SnapshotStats.g.cs | 42 - .../Types/Snapshot/SourceOnlyRepository.g.cs | 144 - .../SourceOnlyRepositorySettings.g.cs | 255 - .../_Generated/Types/Snapshot/Status.g.cs | 48 - .../InProgress.g.cs | 40 - .../Invocation.g.cs | 36 - .../Retention.g.cs | 113 - .../SlmConfiguration.g.cs | 207 - .../SlmPolicy.g.cs | 42 - .../SnapshotLifecycle.g.cs | 52 - .../Statistics.g.cs | 135 - .../_Generated/Types/SortOptions.g.cs | 296 - .../Types/SpecUtils/OverloadOf.g.cs | 39 - .../_Generated/Types/Sql/Column.g.cs | 36 - .../_Generated/Types/StandardRetriever.g.cs | 719 -- .../_Generated/Types/StoreStats.g.cs | 81 - .../_Generated/Types/StoredScript.g.cs | 106 - .../Types/Synonyms/SynonymRule.g.cs | 95 - .../Types/Synonyms/SynonymRuleRead.g.cs | 47 - .../Types/Synonyms/SynonymsSetItem.g.cs | 47 - .../_Generated/Types/TaskFailure.g.cs | 40 - .../_Generated/Types/Tasks/NodeTasks.g.cs | 46 - .../Types/Tasks/ParentTaskInfo.g.cs | 78 - .../_Generated/Types/Tasks/TaskInfo.g.cs | 76 - .../_Generated/Types/Tasks/TaskInfos.g.cs | 42 - .../_Generated/Types/TextEmbedding.g.cs | 72 - .../Types/TextSimilarityReranker.g.cs | 546 -- .../Types/TextStructure/MatchedField.g.cs | 38 - .../Types/TextStructure/MatchedText.g.cs | 36 - .../Types/TopLeftBottomRightGeoBounds.g.cs | 70 - .../Types/TopRightBottomLeftGeoBounds.g.cs | 70 - .../TransformManagement/CheckpointStats.g.cs | 44 - .../TransformManagement/Checkpointing.g.cs | 44 - .../TransformManagement/Destination.g.cs | 103 - .../Types/TransformManagement/Latest.g.cs | 180 - .../Types/TransformManagement/Pivot.g.cs | 210 - .../TransformManagement/PivotGroupBy.g.cs | 272 - .../TransformManagement/RetentionPolicy.g.cs | 227 - .../Types/TransformManagement/Settings.g.cs | 231 - .../Types/TransformManagement/Source.g.cs | 259 - .../Types/TransformManagement/Sync.g.cs | 227 - .../TimeRetentionPolicy.g.cs | 184 - .../Types/TransformManagement/TimeSync.g.cs | 203 - .../TransformIndexerStats.g.cs | 66 - .../TransformProgress.g.cs | 42 - .../TransformManagement/TransformStats.g.cs | 44 - .../TransformStatsHealth.g.cs | 34 - .../TransformManagement/TransformSummary.g.cs | 113 - .../_Generated/Types/TranslogStats.g.cs | 46 - .../_Generated/Types/WarmerStats.g.cs | 40 - .../_Generated/Types/WktGeoBounds.g.cs | 59 - .../_Generated/Types/Xpack/Analytics.g.cs | 38 - .../Types/Xpack/AnalyticsStatistics.g.cs | 50 - .../_Generated/Types/Xpack/Archive.g.cs | 38 - .../_Generated/Types/Xpack/Audit.g.cs | 36 - .../_Generated/Types/Xpack/Base.g.cs | 36 - .../Types/Xpack/BuildInformation.g.cs | 36 - .../_Generated/Types/Xpack/Ccr.g.cs | 40 - .../_Generated/Types/Xpack/Counter.g.cs | 36 - .../_Generated/Types/Xpack/DataStreams.g.cs | 40 - .../Types/Xpack/DataTierPhaseStatistics.g.cs | 52 - .../_Generated/Types/Xpack/DataTiers.g.cs | 46 - .../_Generated/Types/Xpack/Datafeed.g.cs | 34 - .../_Generated/Types/Xpack/Eql.g.cs | 40 - .../_Generated/Types/Xpack/EqlFeatures.g.cs | 46 - .../Types/Xpack/EqlFeaturesJoin.g.cs | 42 - .../Types/Xpack/EqlFeaturesKeys.g.cs | 42 - .../Types/Xpack/EqlFeaturesPipes.g.cs | 36 - .../Types/Xpack/EqlFeaturesSequences.g.cs | 44 - .../_Generated/Types/Xpack/Feature.g.cs | 40 - .../_Generated/Types/Xpack/FeatureToggle.g.cs | 34 - .../_Generated/Types/Xpack/Features.g.cs | 80 - .../_Generated/Types/Xpack/Flattened.g.cs | 38 - .../_Generated/Types/Xpack/FrozenIndices.g.cs | 38 - .../Types/Xpack/HealthStatistics.g.cs | 38 - .../_Generated/Types/Xpack/Ilm.g.cs | 36 - .../Types/Xpack/IlmPolicyStatistics.g.cs | 36 - .../_Generated/Types/Xpack/Invocations.g.cs | 34 - .../_Generated/Types/Xpack/IpFilter.g.cs | 36 - .../_Generated/Types/Xpack/JobUsage.g.cs | 42 - .../Types/Xpack/MachineLearning.g.cs | 52 - .../Xpack/MinimalLicenseInformation.g.cs | 42 - .../_Generated/Types/Xpack/MlCounter.g.cs | 34 - .../Types/Xpack/MlDataFrameAnalyticsJobs.g.cs | 40 - .../MlDataFrameAnalyticsJobsAnalysis.g.cs | 38 - .../Xpack/MlDataFrameAnalyticsJobsCount.g.cs | 34 - .../Xpack/MlDataFrameAnalyticsJobsMemory.g.cs | 34 - .../_Generated/Types/Xpack/MlInference.g.cs | 38 - .../Types/Xpack/MlInferenceDeployments.g.cs | 40 - .../Xpack/MlInferenceDeploymentsTimeMs.g.cs | 34 - .../Xpack/MlInferenceIngestProcessor.g.cs | 40 - .../MlInferenceIngestProcessorCount.g.cs | 38 - .../Types/Xpack/MlInferenceTrainedModels.g.cs | 42 - .../Xpack/MlInferenceTrainedModelsCount.g.cs | 48 - .../Types/Xpack/MlJobForecasts.g.cs | 36 - .../_Generated/Types/Xpack/Monitoring.g.cs | 40 - .../Types/Xpack/NativeCodeInformation.g.cs | 36 - .../_Generated/Types/Xpack/Realm.g.cs | 52 - .../_Generated/Types/Xpack/RealmCache.g.cs | 34 - .../_Generated/Types/Xpack/RoleMapping.g.cs | 36 - .../Types/Xpack/RuntimeFieldTypes.g.cs | 38 - .../Types/Xpack/RuntimeFieldsType.g.cs | 60 - .../Types/Xpack/SearchableSnapshots.g.cs | 42 - .../_Generated/Types/Xpack/Security.g.cs | 60 - .../_Generated/Types/Xpack/SecurityRoles.g.cs | 38 - .../Types/Xpack/SecurityRolesDls.g.cs | 34 - .../Xpack/SecurityRolesDlsBitSetCache.g.cs | 38 - .../Types/Xpack/SecurityRolesFile.g.cs | 38 - .../Types/Xpack/SecurityRolesNative.g.cs | 38 - .../_Generated/Types/Xpack/Slm.g.cs | 40 - .../_Generated/Types/Xpack/Sql.g.cs | 40 - .../_Generated/Types/Xpack/Ssl.g.cs | 36 - .../_Generated/Types/Xpack/Vector.g.cs | 42 - .../_Generated/Types/Xpack/Watcher.g.cs | 42 - .../Types/Xpack/WatcherActionTotals.g.cs | 36 - .../Types/Xpack/WatcherActions.g.cs | 34 - .../_Generated/Types/Xpack/WatcherWatch.g.cs | 40 - .../Types/Xpack/WatcherWatchTrigger.g.cs | 36 - .../Xpack/WatcherWatchTriggerSchedule.g.cs | 40 - .../Types/Xpack/XpackUsageQuery.g.cs | 40 - .../Elastic.Clients.Elasticsearch.csproj | 3 - .../Api/AsyncSearch/GetAsyncSearchRequest.cs | 4 - .../AsyncSearch/SubmitAsyncSearchRequest.cs | 8 - .../_Shared/Api/BulkRequest.cs | 16 - .../_Shared/Api/BulkResponse.cs | 8 - .../_Shared/Api/CountRequest.cs | 8 - .../_Shared/Api/CreateRequest.cs | 4 - .../_Shared/Api/DeleteRequest.cs | 4 - .../_Shared/Api/Esql/EsqlQueryRequest.cs | 4 - .../_Shared/Api/ExistsRequest.cs | 4 - .../_Shared/Api/ExistsResponse.cs | 4 - .../_Shared/Api/ExistsSourceResponse.cs | 4 - .../_Shared/Api/GetSourceRequestDescriptor.cs | 4 - .../_Shared/Api/GetSourceResponse.cs | 8 - .../IndexManagement/ExistsAliasResponse.cs | 4 - .../ExistsIndexTemplateResponse.cs | 4 - .../Api/IndexManagement/ExistsResponse.cs | 4 - .../IndexManagement/ExistsTemplateResponse.cs | 4 - .../Api/IndexManagement/GetAliasResponse.cs | 4 - .../Api/IndexManagement/GetIndexResponse.cs | 4 - .../Api/IndexManagement/GetMappingResponse.cs | 8 - .../_Shared/Api/IndexRequest.cs | 8 - .../_Shared/Api/Ingest/GetPipelineResponse.cs | 4 - .../_Shared/Api/MultiSearchRequest.cs | 4 - .../_Shared/Api/ResponseItem.cs | 4 - .../_Shared/Api/ScrollResponse.cs | 4 - .../_Shared/Api/SearchRequest.cs | 8 - .../_Shared/Api/SearchResponse.cs | 4 - .../_Shared/Api/Sql/GetAsyncResponse.cs | 4 - .../_Shared/Api/Sql/QueryResponse.cs | 4 - .../Client/ElasticsearchClient-Manual.cs | 4 - .../_Shared/Client/ElasticsearchClient.cs | 8 - .../ElasticsearchResponseBaseExtensions.cs | 4 - .../_Shared/Client/IndexManyExtensions.cs | 8 - .../_Shared/Client/NamespacedClientProxy.cs | 8 - .../Core/Configuration/ClrTypeDefaults.cs | 8 - .../ElasticsearchClientSettings.cs | 8 - .../IElasticsearchClientSettings.cs | 8 - .../Core/Configuration/MemberInfoResolver.cs | 4 - .../Core/DateTime/DateMath/DateMath.cs | 4 - .../DateTime/DateMath/DateMathExpression.cs | 4 - .../DateTime/DateMath/DateMathOperation.cs | 8 - .../Core/DateTime/DateMath/DateMathTime.cs | 4 - .../DateTime/DateMath/DateMathTimeUnit.cs | 8 - .../_Shared/Core/DateTime/Duration.cs | 4 - .../_Shared/Core/DateTime/TimeUnit.cs | 4 - .../_Shared/Core/EmptyReadOnly.cs | 4 - .../_Shared/Core/EmptyReadOnlyExtensions.cs | 4 - .../_Shared/Core/Exceptions/ThrowHelper.cs | 4 - .../Core/Extensions/ExceptionExtensions.cs | 4 - .../Core/Extensions/ExpressionExtensions.cs | 4 - .../_Shared/Core/Extensions/Extensions.cs | 4 - .../Core/Extensions/StringExtensions.cs | 4 - .../Core/Extensions/SuffixExtensions.cs | 4 - .../_Shared/Core/Extensions/TaskExtensions.cs | 4 - .../_Shared/Core/Extensions/TypeExtensions.cs | 4 - .../_Shared/Core/Fields/FieldValue.cs | 8 - .../_Shared/Core/Fields/FieldValues.cs | 8 - .../_Shared/Core/Fluent/Descriptor.cs | 8 - .../_Shared/Core/Fluent/Fluent.cs | 4 - .../_Shared/Core/Fluent/FluentDictionary.cs | 4 - .../Core/Fluent/IBuildableDescriptor.cs | 4 - .../_Shared/Core/Fluent/Promise/IPromise.cs | 4 - .../Fluent/Promise/IsADictionaryDescriptor.cs | 4 - .../Core/Fluent/Promise/PromiseDescriptor.cs | 4 - .../_Shared/Core/IComplexUnion.cs | 4 - .../_Shared/Core/IEnumStruct.cs | 4 - .../Infer/DefaultPropertyMappingProvider.cs | 4 - .../Core/Infer/DocumentPath/DocumentPath.cs | 8 - .../Core/Infer/Field/FieldConverter.cs | 8 - .../Infer/Field/FieldExpressionVisitor.cs | 4 - .../Core/Infer/Field/FieldExtensions.cs | 4 - .../_Shared/Core/Infer/Field/FieldResolver.cs | 4 - .../Infer/Field/ToStringExpressionVisitor.cs | 4 - .../_Shared/Core/Infer/Fields/Fields.cs | 4 - .../Core/Infer/Fields/FieldsConverter.cs | 4 - .../Core/Infer/Fields/FieldsDescriptor.cs | 4 - .../Core/Infer/IPropertyMappingProvider.cs | 4 - .../_Shared/Core/Infer/Id/Id.cs | 4 - .../_Shared/Core/Infer/Id/IdConverter.cs | 8 - .../_Shared/Core/Infer/Id/IdExtensions.cs | 4 - .../_Shared/Core/Infer/Id/IdResolver.cs | 4 - .../_Shared/Core/Infer/Id/Ids.cs | 4 - .../_Shared/Core/Infer/Id/IdsConverter.cs | 4 - .../_Shared/Core/Infer/IndexName/IndexName.cs | 4 - .../Infer/IndexName/IndexNameConverter.cs | 8 - .../Infer/IndexName/IndexNameExtensions.cs | 4 - .../Core/Infer/IndexName/IndexNameResolver.cs | 4 - .../_Shared/Core/Infer/Indices/Indices.cs | 8 - .../_Shared/Core/Infer/Inferrer.cs | 4 - .../_Shared/Core/Infer/JoinField.cs | 4 - .../_Shared/Core/Infer/JoinFieldConverter.cs | 8 - .../Core/Infer/JoinFieldRouting/Routing.cs | 4 - .../JoinFieldRouting/RoutingConverter.cs | 8 - .../_Shared/Core/Infer/Metric/Metrics.cs | 4 - .../_Shared/Core/Infer/PropertyMapping.cs | 8 - .../Core/Infer/PropertyName/PropertyName.cs | 8 - .../PropertyName/PropertyNameExtensions.cs | 4 - .../Core/Infer/RelationName/RelationName.cs | 8 - .../RelationName/RelationNameResolver.cs | 4 - .../_Shared/Core/Infer/RoutingResolver.cs | 4 - .../_Shared/Core/Infer/Timestamp/Timestamp.cs | 4 - .../_Shared/Core/IsADictionary.cs | 4 - .../_Shared/Core/IsAReadOnlyDictionary.cs | 4 - .../_Shared/Core/LazyJson.cs | 8 - .../_Shared/Core/MinimumShouldMatch.cs | 4 - .../Core/OpenTelemetry/SemanticConventions.cs | 4 - .../_Shared/Core/RawJsonString.cs | 4 - .../_Shared/Core/ReadOnlyFieldDictionary.cs | 4 - .../Core/ReadOnlyIndexNameDictionary.cs | 4 - .../_Shared/Core/Request/ApiUrls.cs | 4 - .../_Shared/Core/Request/PlainRequest.cs | 4 - .../_Shared/Core/Request/Request.cs | 4 - .../_Shared/Core/Request/RequestDescriptor.cs | 8 - .../_Shared/Core/Request/RouteValues.cs | 4 - .../_Shared/Core/Request/UrlLookup.cs | 4 - .../Core/Response/DictionaryResponse.cs | 4 - .../Response/ResolvableDictionaryProxy.cs | 4 - .../_Shared/Core/Static/Infer.cs | 8 - .../_Shared/Core/Union/Union.cs | 4 - .../DataStreamNames/DataStreamName.cs | 4 - .../DataStreamNames/DataStreamNames.cs | 4 - .../UrlParameters/IndexAlias/IndexAlias.cs | 4 - .../Core/UrlParameters/IndexUuid/IndexUuid.cs | 4 - .../_Shared/Core/UrlParameters/Name/Name.cs | 8 - .../_Shared/Core/UrlParameters/Name/Names.cs | 4 - .../Core/UrlParameters/NodeIds/NodeIds.cs | 4 - .../Core/UrlParameters/ScrollIds/ScrollId.cs | 4 - .../Core/UrlParameters/ScrollIds/ScrollIds.cs | 4 - .../Core/UrlParameters/TaskId/TaskId.cs | 8 - .../Core/UrlParameters/Username/Username.cs | 8 - .../_Shared/CrossPlatform/NativeMethods.cs | 4 - .../CrossPlatform/RuntimeInformation.cs | 4 - .../_Shared/CrossPlatform/TypeExtensions.cs | 4 - .../Exceptions/UnsupportedProductException.cs | 4 - .../_Shared/Helpers/BulkAllObserver.cs | 4 - .../_Shared/Helpers/BulkAllRequest.cs | 12 - .../_Shared/Helpers/BulkAllResponse.cs | 8 - .../Helpers/CoordinatedRequestDefaults.cs | 4 - .../Helpers/CoordinatedRequestObserverBase.cs | 4 - .../_Shared/Helpers/HelperIdentifiers.cs | 4 - .../_Shared/Helpers/IBulkAllRequest.cs | 8 - .../_Shared/Helpers/IHelperCallable.cs | 4 - .../_Shared/Helpers/PartitionHelper.cs | 4 - .../Helpers/ProducerConsumerBackPressure.cs | 4 - .../Helpers/RequestMetaDataExtensions.cs | 4 - .../_Shared/Helpers/RequestMetaDataFactory.cs | 4 - .../Serialization/CustomizedNamingPolicy.cs | 4 - .../DefaultRequestResponseSerializer.cs | 4 - .../Serialization/DefaultSourceSerializer.cs | 4 - .../DictionaryResponseConverter.cs | 4 - .../DoubleWithFractionalPortionConverter.cs | 4 - .../Serialization/EnumStructConverter.cs | 8 - .../GenericConverterAttribute.cs | 4 - .../_Shared/Serialization/ISourceMarker.cs | 4 - .../Serialization/IStreamSerializable.cs | 4 - .../_Shared/Serialization/IUnionVerifiable.cs | 4 - .../Serialization/InterfaceConverter.cs | 4 - .../InterfaceConverterAttribute.cs | 4 - .../IntermediateSourceConverter.cs | 4 - .../IsADictionaryConverterFactory.cs | 8 - .../_Shared/Serialization/JsonConstants.cs | 4 - .../_Shared/Serialization/JsonHelper.cs | 4 - .../JsonSerializerOptionsExtensions.cs | 4 - .../Serialization/KeyValuePairConverter.cs | 4 - .../Serialization/MultiItemUnionConverter.cs | 8 - .../Serialization/NumericAliasConverter.cs | 4 - .../ObjectToInferredTypesConverter.cs | 4 - .../Serialization/PropertyNameConverter.cs | 4 - .../_Shared/Serialization/QueryConverter.cs | 4 - .../ReadOnlyFieldDictionaryConverter.cs | 4 - .../ReadOnlyIndexNameDictionaryConverter.cs | 4 - ...vableReadonlyDictionaryConverterFactory.cs | 4 - .../ResponseItemConverterFactory.cs | 12 - .../_Shared/Serialization/SelfSerializable.cs | 4 - .../SelfSerializableConverterFactory.cs | 4 - .../Serialization/SerializationConstants.cs | 4 - .../Serialization/SettingsJsonConverter.cs | 4 - .../Serialization/SimpleInterfaceConverter.cs | 4 - .../SingleOrManyCollectionAttribute.cs | 4 - .../SingleOrManyCollectionConverter.cs | 4 - .../SingleOrManySerializationHelper.cs | 4 - .../SingleWithFractionalPortionConverter.cs | 4 - .../_Shared/Serialization/SourceConverter.cs | 4 - .../Serialization/SourceConverterAttribute.cs | 4 - .../Serialization/SourceConverterFactory.cs | 4 - .../_Shared/Serialization/SourceMarker.cs | 4 - .../Serialization/StringAliasConverter.cs | 4 - .../Serialization/StringEnumAttribute.cs | 4 - .../_Shared/Serialization/Stringified.cs | 4 - .../TermsAggregateSerializationHelper.cs | 8 - .../_Shared/Serialization/UnionConverter.cs | 8 - .../Types/Aggregations/AggregateOrder.cs | 4 - .../_Shared/Types/Aggregations/BucketsPath.cs | 8 - .../Types/Aggregations/TermsExclude.cs | 4 - .../Types/Aggregations/TermsInclude.cs | 4 - .../_Shared/Types/AsyncSearch/AsyncSearch.cs | 4 - .../Types/Core/Bulk/BulkCreateOperation.cs | 8 - .../Bulk/BulkCreateOperationDescriptor.cs | 12 - .../Types/Core/Bulk/BulkDeleteOperation.cs | 8 - .../Bulk/BulkDeleteOperationDescriptor.cs | 8 - .../Types/Core/Bulk/BulkIndexOperation.cs | 8 - .../Core/Bulk/BulkIndexOperationDescriptor.cs | 12 - .../_Shared/Types/Core/Bulk/BulkOperation.cs | 8 - .../Core/Bulk/BulkOperationDescriptor.cs | 12 - .../Core/Bulk/BulkOperationsCollection.cs | 8 - .../Core/Bulk/BulkResponseItemConverter.cs | 4 - .../_Shared/Types/Core/Bulk/BulkUpdateBody.cs | 12 - .../Types/Core/Bulk/BulkUpdateOperation.cs | 8 - .../Bulk/BulkUpdateOperationDescriptor.cs | 12 - .../Types/Core/Bulk/BulkUpdateOperationT.cs | 8 - .../Bulk/BulkUpdateOperationWithPartial.cs | 4 - .../Bulk/BulkUpdateOperationWithScript.cs | 4 - .../_Shared/Types/Core/Bulk/IBulkOperation.cs | 4 - .../Types/Core/Bulk/PartialBulkUpdateBody.cs | 8 - .../Bulk/Response/BulkCreateResponseItem.cs | 4 - .../Bulk/Response/BulkDeleteResponseItem.cs | 4 - .../Bulk/Response/BulkIndexResponseItem.cs | 4 - .../Bulk/Response/BulkUpdateResponseItem.cs | 4 - .../Types/Core/Bulk/ScriptedBulkUpdateBody.cs | 8 - .../Types/Core/MSearch/SearchRequestItem.cs | 8 - .../SearchTemplateRequestItem.cs | 12 - .../Types/Core/Search/SourceConfigParam.cs | 4 - .../_Shared/Types/FieldSort.cs | 8 - .../_Shared/Types/GeoLocation.cs | 4 - .../_Shared/Types/Mapping/Properties.cs | 8 - .../Types/Mapping/PropertiesDescriptor.cs | 8 - .../Types/Mapping/PropertyNameExtensions.cs | 4 - .../_Shared/Types/MultiSearchItem.cs | 4 - .../_Shared/Types/OpType.cs | 4 - .../Types/PointInTimeReferenceDescriptor.cs | 4 - .../_Shared/Types/QueryDsl/BoolQuery.cs | 4 - .../Types/QueryDsl/BoolQueryAndExtensions.cs | 4 - .../Types/QueryDsl/BoolQueryExtensions.cs | 4 - .../Types/QueryDsl/BoolQueryOrExtensions.cs | 4 - .../_Shared/Types/QueryDsl/FunctionScore.cs | 4 - .../_Shared/Types/QueryDsl/Query.cs | 4 - .../_Shared/Types/QueryDsl/RangeQuery.cs | 8 - .../_Shared/Types/QueryDsl/RawJsonQuery.cs | 4 - .../_Shared/Types/Ranges.cs | 4 - .../_Shared/Types/Refresh.cs | 4 - .../_Shared/Types/Slices.cs | 4 - .../_Shared/Types/SortOptions.cs | 8 - .../_Shared/Types/SourceConfig.cs | 4 - .../_Shared/Types/Sql/SqlRow.cs | 4 - .../_Shared/Types/Sql/SqlValue.cs | 4 - .../_Shared/Types/WaitForActiveShards.cs | 4 - src/Playground/Playground.csproj | 1 - 2309 files changed, 397498 deletions(-) delete mode 100644 Packages.Serverless.slnf delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Aggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregationRange.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ArrayPercentilesItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSortAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Buckets.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeExpression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsDate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsFloat.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FieldDateMath.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FilterAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLinePoint.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineSort.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrMethod.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceClassImportance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermLookup.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NormalizeAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Percentiles.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RareTermsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumBucketAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TestPopulation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsValue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageValue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharFilters.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharGroupTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ConditionTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomNormalizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ElisionTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HunspellTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KStemTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LanguageAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LengthTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LetterTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseNormalizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MappingCharFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PredicateTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ReverseTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ShingleTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimpleAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TokenFilters.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TrimTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TruncateTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UniqueTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/AsyncSearch/AsyncSearch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkIndexByScrollFailure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationDecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationStore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CharFilterTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterFileSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShards.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIngest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmVersion.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodeCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcess.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessCpu.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterShardMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/DiskUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypesMappings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndicesVersions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeDiskUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodePackagingType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/PendingTask.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ReservedSize.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/UnassignedInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CompletionStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CoordsGeoBounds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/Explanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/ExplanationDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Diagnosis.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Impact.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetError.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetOperation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiGetResponseItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiSearchResponseItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/DocumentRating.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/UnratedDocument.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationBreakdown.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Collector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileDebug.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldCollapse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Highlight.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HitsMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHitsResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LearningToRank.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/NestedIdentity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PointInTimeReference.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Profile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Rescore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RescoreQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SearchProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SmoothingModel.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestDictionary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Suggester.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggestOption.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TotalHits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfigParam.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Term.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/TermVector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Token.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TrackHits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/DocStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ElasticsearchVersionInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/EmptyObject.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CoordinatorStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecutingPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Aggregations.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Analysis.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Cluster.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.HealthReport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.SearchMvt.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Enrich.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.IndexManagement.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.LicenseManagement.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Snapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Watcher.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorCause.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorResponseBase.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldMemoryUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSizeUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSort.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FielddataStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FlushStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoBounds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoDistanceSort.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoHashLocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLine.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeohashPrecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GetStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Connection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/ExploreControls.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Hop.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/SampleDiversity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Vertex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexDefinition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexInclude.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Actions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phase.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phases.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AddAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Alias.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AliasDefinition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CacheQueries.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CharFilterDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseIndexResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseShardResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FileDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAliases.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRouting.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexVersioning.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Merge.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MergeScheduler.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/NumericFielddata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Overlapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Queries.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryBytes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryFiles.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RetentionLease.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RolloverConditions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SearchIdle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Segment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsHighlight.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsQueryString.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSearch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarities.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardCommit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardLease.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardPath.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardQueryCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRecovery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRouting.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsSegment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SoftDeletes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Storage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Template.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TokenDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Translog.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogRetention.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/VerifyIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexingStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndicesOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AttachmentProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/BytesProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CircleProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ConvertProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CsvProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DissectProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Document.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DocumentSimulation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DropProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/EnrichProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FailProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ForeachProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GsubProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/HtmlStripProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigClassification.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigRegression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JoinProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JsonProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/KeyValueProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/LowercaseProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineSimulation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RemoveProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RenameProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RerouteProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ScriptProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SimulateDocumentResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SortProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SplitProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TrimProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UppercaseProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UriPartsProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineGet.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnSearch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LatLonGeoLocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LicenseManagement/LicenseInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AggregateOutput.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Anomaly.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyCause.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketInfluencer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Calendar.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Category.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ChunkingConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataCounts.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataDescription.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeed.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeeds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Defaults.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Definition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectionRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Detector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorRead.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Ensemble.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Filter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FilterRef.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/GeoResults.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Hyperparameter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influence.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influencer.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Input.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Job.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobBlocked.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobTimingStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JvmStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemMlStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Memory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NativeCode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucketJob.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Page.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Preprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RuleCondition.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TopClassEntry.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModel.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTree.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TransformAuthorization.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Vocabulary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Weights.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AllField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BooleanProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompletionProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DataStreamTimestamp.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateRangeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleRangeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicTemplate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldAliasProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldNamesField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FlattenedProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatRangeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HistogramProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IcuCollationProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IndexField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerRangeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpRangeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/JoinProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/KeywordProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongRangeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Murmur3HashProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/NestedProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ObjectProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PercolatorProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PointProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeatureProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeaturesProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RoutingField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SemanticTextProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShortNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SizeField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SourceField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SparseVectorProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SuggestContext.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextIndexPrefixes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TokenCountProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TypeMapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/VersionProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/WildcardProperty.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MergesStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NestedSortValue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NodeStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/AdaptiveSelection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Breaker.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cgroup.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpu.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpuStat.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Client.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterAppliedStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateQueue.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateUpdate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Context.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cpu.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CpuAcct.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DataPathStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DeprecationIndexing.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Discovery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystemTotal.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Http.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Ingest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStatDevice.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Jvm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmClasses.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmMemoryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmThreads.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/KeyedProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/MemoryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeBufferPool.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoClient.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoDiscover.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoHttp.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetwork.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositories.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoScript.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoTransport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeJvmInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeProcessInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/OperatingSystem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Pool.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PressureMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Process.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Processor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PublishedClusterStates.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Recording.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ScriptCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Scripting.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Stats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ThreadCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Transport.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/TransportHistogram.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/PluginStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryCacheStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoolQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoostingQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDecayFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DecayPlacement.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DisMaxQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ExistsQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldAndFormat.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldLookup.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FuzzyQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasChildQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasParentQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IdsQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Intervals.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsMatch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/LikeDocument.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchAllQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NestedQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ParentIdQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PercolateQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedDoc.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PrefixQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Query.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/QueryStringQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RegexpQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RuleQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SemanticQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNearQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNotQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanOrQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanTermQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsLookup.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQueryField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsSetQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WildcardQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WrapperQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleActions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryVectorBuilder.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RecoveryStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RefreshStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RequestCacheStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retries.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScoreSort.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptSort.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SearchStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticatedUser.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticationProvider.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/BulkError.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ClusterNode.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/CreatedStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldSecurity.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FoundStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GetUserProfileErrors.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GlobalPrivilege.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GrantApiKey.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Hint.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndexPrivilegesCheck.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ManageUserPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentials.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentialsFileToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegeActions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegesCheck.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryUser.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RealmInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorWrapper.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMappingRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleTemplate.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ServiceToken.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/TotalUserProfiles.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileHitMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileUser.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileWithMetadata.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserQuery.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserRealm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SegmentsStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardFailure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SlicedScroll.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Slices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepository.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CompactNodeInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepository.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/IndexDetails.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/InfoFeatureState.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Repositories.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3Repository.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3RepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotRestore.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Status.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SortOptions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SpecUtils/OverloadOf.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StandardRetriever.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoreStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScript.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRuleRead.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymsSetItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextEmbedding.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedField.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedText.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/CheckpointStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Checkpointing.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Destination.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Latest.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Pivot.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/PivotGroupBy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/RetentionPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Settings.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Source.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Sync.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeSync.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformProgress.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformSummary.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TranslogStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WarmerStats.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WktGeoBounds.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Analytics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/AnalyticsStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Archive.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Audit.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Base.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/BuildInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ccr.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Counter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataStreams.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTiers.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Datafeed.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Eql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeatures.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Feature.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FeatureToggle.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Flattened.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FrozenIndices.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/HealthStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ilm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Invocations.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IpFilter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/JobUsage.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MachineLearning.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlCounter.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInference.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeployments.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlJobForecasts.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Monitoring.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/NativeCodeInformation.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Realm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RealmCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RoleMapping.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldsType.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SearchableSnapshots.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Security.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRoles.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDls.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesFile.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesNative.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Slm.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Sql.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ssl.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Vector.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Watcher.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActionTotals.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActions.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatch.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/XpackUsageQuery.g.cs diff --git a/Elasticsearch.sln b/Elasticsearch.sln index d362e850907..4bf57fbcf3a 100644 --- a/Elasticsearch.sln +++ b/Elasticsearch.sln @@ -57,8 +57,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.ClusterLauncher", "te EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elastic.Clients.Elasticsearch.JsonNetSerializer", "src\Elastic.Clients.Elasticsearch.JsonNetSerializer\Elastic.Clients.Elasticsearch.JsonNetSerializer.csproj", "{8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elastic.Clients.Elasticsearch.Serverless", "src\Elastic.Clients.Elasticsearch.Serverless\Elastic.Clients.Elasticsearch.Serverless.csproj", "{49D7F5A7-AA32-492B-B957-0E3325861F55}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "tests\Tests\Tests.csproj", "{6FD804B2-CE80-41CB-A411-2023F34C18FE}" EndProject Global @@ -107,10 +105,6 @@ Global {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Debug|Any CPU.Build.0 = Debug|Any CPU {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|Any CPU.ActiveCfg = Release|Any CPU {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB}.Release|Any CPU.Build.0 = Release|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Debug|Any CPU.Build.0 = Debug|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|Any CPU.ActiveCfg = Release|Any CPU - {49D7F5A7-AA32-492B-B957-0E3325861F55}.Release|Any CPU.Build.0 = Release|Any CPU {6FD804B2-CE80-41CB-A411-2023F34C18FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6FD804B2-CE80-41CB-A411-2023F34C18FE}.Debug|Any CPU.Build.0 = Debug|Any CPU {6FD804B2-CE80-41CB-A411-2023F34C18FE}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -130,7 +124,6 @@ Global {68D1BFDC-F447-4D2C-AF81-537807636610} = {1FE49D14-216A-41EE-A177-E42BFF53E0DC} {F6162603-D134-4121-8106-2BA4DAD7350B} = {362B2776-4B29-46AB-B237-56776B5372B6} {8C9275D9-29CE-4A20-8FD5-6B26C6CAAADB} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} - {49D7F5A7-AA32-492B-B957-0E3325861F55} = {D455EC79-E1E0-4509-B297-0DA3AED8DFF7} {6FD804B2-CE80-41CB-A411-2023F34C18FE} = {362B2776-4B29-46AB-B237-56776B5372B6} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution diff --git a/Packages.Serverless.slnf b/Packages.Serverless.slnf deleted file mode 100644 index 218a457e47d..00000000000 --- a/Packages.Serverless.slnf +++ /dev/null @@ -1,8 +0,0 @@ -{ - "solution": { - "path": "Elasticsearch.sln", - "projects": [ - "src\\Elastic.Clients.Elasticsearch.Serverless\\Elastic.Clients.Elasticsearch.Serverless.csproj" - ] - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs b/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs deleted file mode 100644 index cfe03c51617..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Core/ElasticsearchClientProductRegistration.cs +++ /dev/null @@ -1,96 +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.Diagnostics.CodeAnalysis; - -using Elastic.Transport; -using Elastic.Transport.Products.Elasticsearch; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -internal sealed class ElasticsearchClientProductRegistration : ElasticsearchProductRegistration -{ - private readonly MetaHeaderProvider _metaHeaderProvider; - - public ElasticsearchClientProductRegistration(Type markerType) : base(markerType) - { - var identifier = ServiceIdentifier; - if (!string.IsNullOrEmpty(identifier)) - _metaHeaderProvider = new ServerlessMetaHeaderProvider(markerType, identifier); - } - - public static ElasticsearchClientProductRegistration DefaultForElasticsearchClientsElasticsearch { get; } = new(typeof(ElasticsearchClient)); - - public override string ServiceIdentifier => "esv"; - - public override string? DefaultContentType => null; // Prevent base 'ElasticsearchProductRegistration' from sending the compatibility header - - public override MetaHeaderProvider MetaHeaderProvider => _metaHeaderProvider; - - /// - /// Elastic.Clients.Elasticsearch handles 404 in its , we do not want the low level client throwing - /// exceptions - /// when is enabled for 404's. The client is in charge of - /// composing paths - /// so a 404 never signals a wrong URL but a missing entity. - /// - public override bool HttpStatusCodeClassifier(HttpMethod method, int statusCode) => - statusCode is >= 200 and < 300 or 404; - - /// - /// Makes the low level transport aware of Elastic.Clients.Elasticsearch's - /// so that it can peek in to its exposed error when reporting failures. - /// - public override bool TryGetServerErrorReason(TResponse response, [NotNullWhen(returnValue: true)] out string? reason) - { - if (response is not ElasticsearchResponse r) - return base.TryGetServerErrorReason(response, out reason); - reason = r.ElasticsearchServerError?.Error?.ToString(); - return !string.IsNullOrEmpty(reason); - } -} - -public sealed class ServerlessMetaHeaderProvider : MetaHeaderProvider -{ - private readonly MetaHeaderProducer[] _producers; - - /// - public override MetaHeaderProducer[] Producers => _producers; - - public ServerlessMetaHeaderProvider(Type clientType, string serviceIdentifier) - { - var version = ReflectionVersionInfo.Create(clientType); - - _producers = new MetaHeaderProducer[] - { - new DefaultMetaHeaderProducer(version, serviceIdentifier), - new ApiVersionMetaHeaderProducer(version) - }; - } -} - -public class ApiVersionMetaHeaderProducer : MetaHeaderProducer -{ - private readonly string _apiVersion; - - public override string HeaderName => "Elastic-Api-Version"; - - public override string ProduceHeaderValue(BoundConfiguration boundConfiguration, bool isAsync) => _apiVersion; - - public ApiVersionMetaHeaderProducer(VersionInfo version) - { - var meta = version.Metadata; - - if (meta is null || meta.Length != 8) - { - _apiVersion = "2023-10-31"; // Fall back to the earliest version - return; - } - - // Metadata format: 20231031 - - _apiVersion = $"{meta.Substring(0, 4)}-{meta.Substring(4, 2)}-{meta.Substring(6, 2)}"; - } -} diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj b/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj deleted file mode 100644 index 8ba54c7ca36..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/Elastic.Clients.Elasticsearch.Serverless.csproj +++ /dev/null @@ -1,43 +0,0 @@ - - - Elastic.Clients.Elasticsearch.Serverless - Elastic.Clients.Elasticsearch.Serverless - Official Elasticsearch Serverless .NET Client - elasticsearch;elastic;client;search - - This strongly-typed, client library enables working with Elasticsearch Serverless. It is the official client maintained and supported by Elastic. - - true - README.md - - - $(DefineConstants);ELASTICSEARCH_SERVERLESS - - - true - true - netstandard2.0;net462;netstandard2.1;net8.0 - true - true - annotations - - - - - - - - - - - - <_Parameter1>true - - - - - - - - - - \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs deleted file mode 100644 index 3513b8150f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs +++ /dev/null @@ -1,323 +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 - -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; - -internal static class ApiUrlLookup -{ - internal static ApiUrls AsyncSearchDelete = new ApiUrls(new[] { "_async_search/{id}" }); - internal static ApiUrls AsyncSearchGet = new ApiUrls(new[] { "_async_search/{id}" }); - internal static ApiUrls AsyncSearchStatus = new ApiUrls(new[] { "_async_search/status/{id}" }); - internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[] { "_async_search", "{index}/_async_search" }); - internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[] { "_cluster/allocation/explain" }); - internal static ApiUrls ClusterDeleteComponentTemplate = new ApiUrls(new[] { "_component_template/{name}" }); - internal static ApiUrls ClusterExistsComponentTemplate = new ApiUrls(new[] { "_component_template/{name}" }); - internal static ApiUrls ClusterGetComponentTemplate = new ApiUrls(new[] { "_component_template", "_component_template/{name}" }); - internal static ApiUrls ClusterGetSettings = new ApiUrls(new[] { "_cluster/settings" }); - internal static ApiUrls ClusterHealth = new ApiUrls(new[] { "_cluster/health", "_cluster/health/{index}" }); - internal static ApiUrls ClusterInfo = new ApiUrls(new[] { "_info/{target}" }); - internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[] { "_cluster/pending_tasks" }); - internal static ApiUrls ClusterPutComponentTemplate = new ApiUrls(new[] { "_component_template/{name}" }); - internal static ApiUrls ClusterStats = new ApiUrls(new[] { "_cluster/stats", "_cluster/stats/nodes/{node_id}" }); - internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" }); - internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "_enrich/policy/{name}/_execute" }); - internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "_enrich/policy/{name}", "_enrich/policy" }); - internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "_enrich/policy/{name}" }); - internal static ApiUrls EnrichStats = new ApiUrls(new[] { "_enrich/_stats" }); - internal static ApiUrls EqlDelete = new ApiUrls(new[] { "_eql/search/{id}" }); - 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" }); - internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "{index}/_close" }); - internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "{index}" }); - internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "_data_stream/{name}" }); - internal static ApiUrls IndexManagementDataStreamsStats = new ApiUrls(new[] { "_data_stream/_stats", "_data_stream/{name}/_stats" }); - internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" }); - internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" }); - internal static ApiUrls IndexManagementDeleteDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" }); - internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" }); - internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); - internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" }); - internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "_alias/{name}", "{index}/_alias/{name}" }); - internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); - internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "{index}/_lifecycle/explain" }); - internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "_flush", "{index}/_flush" }); - internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "_forcemerge", "{index}/_forcemerge" }); - internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" }); - internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" }); - internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" }); - internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" }); - internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" }); - internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" }); - internal static ApiUrls IndexManagementGetSettings = new ApiUrls(new[] { "_settings", "{index}/_settings", "{index}/_settings/{name}", "_settings/{name}" }); - internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" }); - internal static ApiUrls IndexManagementModifyDataStream = new ApiUrls(new[] { "_data_stream/_modify" }); - internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" }); - internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" }); - internal static ApiUrls IndexManagementPutDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" }); - internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); - internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" }); - internal static ApiUrls IndexManagementPutSettings = new ApiUrls(new[] { "_settings", "{index}/_settings" }); - internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" }); - internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" }); - internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" }); - internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" }); - internal static ApiUrls IndexManagementSegments = new ApiUrls(new[] { "_segments", "{index}/_segments" }); - internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "_index_template/_simulate_index/{name}" }); - internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "_index_template/_simulate", "_index_template/_simulate/{name}" }); - internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" }); - internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" }); - internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" }); - internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); - internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); - internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); - internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); - internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); - internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" }); - internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" }); - internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" }); - internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" }); - internal static ApiUrls IngestGetIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database", "_ingest/ip_location/database/{id}" }); - internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" }); - internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" }); - internal static ApiUrls IngestPutGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); - internal static ApiUrls IngestPutIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" }); - internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" }); - internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" }); - internal static ApiUrls LicenseManagementGet = new ApiUrls(new[] { "_license" }); - internal static ApiUrls MachineLearningClearTrainedModelDeploymentCache = new ApiUrls(new[] { "_ml/trained_models/{model_id}/deployment/cache/_clear" }); - internal static ApiUrls MachineLearningCloseJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_close" }); - internal static ApiUrls MachineLearningDeleteCalendar = new ApiUrls(new[] { "_ml/calendars/{calendar_id}" }); - internal static ApiUrls MachineLearningDeleteCalendarEvent = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events/{event_id}" }); - internal static ApiUrls MachineLearningDeleteCalendarJob = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/jobs/{job_id}" }); - internal static ApiUrls MachineLearningDeleteDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}" }); - internal static ApiUrls MachineLearningDeleteDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}" }); - internal static ApiUrls MachineLearningDeleteExpiredData = new ApiUrls(new[] { "_ml/_delete_expired_data/{job_id}", "_ml/_delete_expired_data" }); - internal static ApiUrls MachineLearningDeleteFilter = new ApiUrls(new[] { "_ml/filters/{filter_id}" }); - internal static ApiUrls MachineLearningDeleteForecast = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_forecast", "_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}" }); - internal static ApiUrls MachineLearningDeleteJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}" }); - internal static ApiUrls MachineLearningDeleteModelSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" }); - internal static ApiUrls MachineLearningDeleteTrainedModel = new ApiUrls(new[] { "_ml/trained_models/{model_id}" }); - internal static ApiUrls MachineLearningDeleteTrainedModelAlias = new ApiUrls(new[] { "_ml/trained_models/{model_id}/model_aliases/{model_alias}" }); - internal static ApiUrls MachineLearningEstimateModelMemory = new ApiUrls(new[] { "_ml/anomaly_detectors/_estimate_model_memory" }); - internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[] { "_ml/data_frame/_evaluate" }); - internal static ApiUrls MachineLearningExplainDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/_explain", "_ml/data_frame/analytics/{id}/_explain" }); - internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_flush" }); - internal static ApiUrls MachineLearningForecast = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_forecast" }); - internal static ApiUrls MachineLearningGetBuckets = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", "_ml/anomaly_detectors/{job_id}/results/buckets" }); - internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events" }); - internal static ApiUrls MachineLearningGetCalendars = new ApiUrls(new[] { "_ml/calendars", "_ml/calendars/{calendar_id}" }); - internal static ApiUrls MachineLearningGetCategories = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/categories/{category_id}", "_ml/anomaly_detectors/{job_id}/results/categories" }); - internal static ApiUrls MachineLearningGetDatafeeds = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}", "_ml/datafeeds" }); - internal static ApiUrls MachineLearningGetDatafeedStats = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_stats", "_ml/datafeeds/_stats" }); - internal static ApiUrls MachineLearningGetDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}", "_ml/data_frame/analytics" }); - internal static ApiUrls MachineLearningGetDataFrameAnalyticsStats = new ApiUrls(new[] { "_ml/data_frame/analytics/_stats", "_ml/data_frame/analytics/{id}/_stats" }); - internal static ApiUrls MachineLearningGetFilters = new ApiUrls(new[] { "_ml/filters", "_ml/filters/{filter_id}" }); - internal static ApiUrls MachineLearningGetInfluencers = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/influencers" }); - internal static ApiUrls MachineLearningGetJobs = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}", "_ml/anomaly_detectors" }); - internal static ApiUrls MachineLearningGetJobStats = new ApiUrls(new[] { "_ml/anomaly_detectors/_stats", "_ml/anomaly_detectors/{job_id}/_stats" }); - internal static ApiUrls MachineLearningGetMemoryStats = new ApiUrls(new[] { "_ml/memory/_stats", "_ml/memory/{node_id}/_stats" }); - internal static ApiUrls MachineLearningGetModelSnapshots = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "_ml/anomaly_detectors/{job_id}/model_snapshots" }); - internal static ApiUrls MachineLearningGetModelSnapshotUpgradeStats = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade/_stats" }); - internal static ApiUrls MachineLearningGetOverallBuckets = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/overall_buckets" }); - internal static ApiUrls MachineLearningGetRecords = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/records" }); - internal static ApiUrls MachineLearningGetTrainedModels = new ApiUrls(new[] { "_ml/trained_models/{model_id}", "_ml/trained_models" }); - internal static ApiUrls MachineLearningGetTrainedModelsStats = new ApiUrls(new[] { "_ml/trained_models/{model_id}/_stats", "_ml/trained_models/_stats" }); - internal static ApiUrls MachineLearningInferTrainedModel = new ApiUrls(new[] { "_ml/trained_models/{model_id}/_infer" }); - internal static ApiUrls MachineLearningInfo = new ApiUrls(new[] { "_ml/info" }); - internal static ApiUrls MachineLearningOpenJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_open" }); - internal static ApiUrls MachineLearningPostCalendarEvents = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events" }); - internal static ApiUrls MachineLearningPreviewDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/_preview", "_ml/data_frame/analytics/{id}/_preview" }); - internal static ApiUrls MachineLearningPutCalendar = new ApiUrls(new[] { "_ml/calendars/{calendar_id}" }); - internal static ApiUrls MachineLearningPutCalendarJob = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/jobs/{job_id}" }); - internal static ApiUrls MachineLearningPutDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}" }); - internal static ApiUrls MachineLearningPutDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}" }); - internal static ApiUrls MachineLearningPutFilter = new ApiUrls(new[] { "_ml/filters/{filter_id}" }); - internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}" }); - internal static ApiUrls MachineLearningPutTrainedModel = new ApiUrls(new[] { "_ml/trained_models/{model_id}" }); - internal static ApiUrls MachineLearningPutTrainedModelAlias = new ApiUrls(new[] { "_ml/trained_models/{model_id}/model_aliases/{model_alias}" }); - internal static ApiUrls MachineLearningPutTrainedModelDefinitionPart = new ApiUrls(new[] { "_ml/trained_models/{model_id}/definition/{part}" }); - internal static ApiUrls MachineLearningPutTrainedModelVocabulary = new ApiUrls(new[] { "_ml/trained_models/{model_id}/vocabulary" }); - internal static ApiUrls MachineLearningResetJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_reset" }); - internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" }); - internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[] { "_ml/set_upgrade_mode" }); - internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_start" }); - internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}/_start" }); - internal static ApiUrls MachineLearningStartTrainedModelDeployment = new ApiUrls(new[] { "_ml/trained_models/{model_id}/deployment/_start" }); - internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_stop" }); - internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}/_stop" }); - internal static ApiUrls MachineLearningStopTrainedModelDeployment = new ApiUrls(new[] { "_ml/trained_models/{model_id}/deployment/_stop" }); - internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[] { "_ml/datafeeds/{datafeed_id}/_update" }); - internal static ApiUrls MachineLearningUpdateDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/{id}/_update" }); - internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[] { "_ml/filters/{filter_id}/_update" }); - internal static ApiUrls MachineLearningUpdateJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_update" }); - internal static ApiUrls MachineLearningUpdateModelSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update" }); - internal static ApiUrls MachineLearningUpgradeJobSnapshot = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade" }); - internal static ApiUrls MachineLearningValidate = new ApiUrls(new[] { "_ml/anomaly_detectors/_validate" }); - internal static ApiUrls MachineLearningValidateDetector = new ApiUrls(new[] { "_ml/anomaly_detectors/_validate/detector" }); - internal static ApiUrls NodesHotThreads = new ApiUrls(new[] { "_nodes/hot_threads", "_nodes/{node_id}/hot_threads" }); - internal static ApiUrls NodesInfo = new ApiUrls(new[] { "_nodes", "_nodes/{node_id}", "_nodes/{metric}", "_nodes/{node_id}/{metric}" }); - internal static ApiUrls NodesStats = new ApiUrls(new[] { "_nodes/stats", "_nodes/{node_id}/stats", "_nodes/stats/{metric}", "_nodes/{node_id}/stats/{metric}", "_nodes/stats/{metric}/{index_metric}", "_nodes/{node_id}/stats/{metric}/{index_metric}" }); - internal static ApiUrls NodesUsage = new ApiUrls(new[] { "_nodes/usage", "_nodes/{node_id}/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage/{metric}" }); - internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "_bulk", "{index}/_bulk" }); - internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "_search/scroll" }); - internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "_pit" }); - internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" }); - internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" }); - internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{id}" }); - internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "{index}/_delete_by_query" }); - internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "_delete_by_query/{task_id}/_rethrottle" }); - internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{id}" }); - internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "{index}/_doc/{id}" }); - internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "{index}/_source/{id}" }); - internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "{index}/_explain/{id}" }); - internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" }); - internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" }); - internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" }); - internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "{index}/_source/{id}" }); - internal static ApiUrls NoNamespaceHealthReport = new ApiUrls(new[] { "_health_report", "_health_report/{feature}" }); - internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "{index}/_doc/{id}", "{index}/_doc" }); - internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "" }); - internal static ApiUrls NoNamespaceMtermvectors = new ApiUrls(new[] { "_mtermvectors", "{index}/_mtermvectors" }); - internal static ApiUrls NoNamespaceMultiGet = new ApiUrls(new[] { "_mget", "{index}/_mget" }); - internal static ApiUrls NoNamespaceMultiSearch = new ApiUrls(new[] { "_msearch", "{index}/_msearch" }); - internal static ApiUrls NoNamespaceMultiSearchTemplate = new ApiUrls(new[] { "_msearch/template", "{index}/_msearch/template" }); - internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "{index}/_pit" }); - internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "" }); - internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "_scripts/{id}", "_scripts/{id}/{context}" }); - internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[] { "_rank_eval", "{index}/_rank_eval" }); - internal static ApiUrls NoNamespaceReindex = new ApiUrls(new[] { "_reindex" }); - internal static ApiUrls NoNamespaceReindexRethrottle = new ApiUrls(new[] { "_reindex/{task_id}/_rethrottle" }); - internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[] { "_render/template", "_render/template/{id}" }); - internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "_search/scroll" }); - internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "_search", "{index}/_search" }); - internal static ApiUrls NoNamespaceSearchMvt = new ApiUrls(new[] { "{index}/_mvt/{field}/{zoom}/{x}/{y}" }); - internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" }); - internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "{index}/_terms_enum" }); - internal static ApiUrls NoNamespaceTermvectors = new ApiUrls(new[] { "{index}/_termvectors/{id}", "{index}/_termvectors" }); - internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" }); - internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" }); - internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" }); - internal static ApiUrls QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); - internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" }); - internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); - internal static ApiUrls QueryRulesGetRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" }); - internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" }); - internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" }); - internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" }); - internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" }); - internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" }); - internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "_security/_authenticate" }); - internal static ApiUrls SecurityBulkDeleteRole = new ApiUrls(new[] { "_security/role" }); - internal static ApiUrls SecurityBulkPutRole = new ApiUrls(new[] { "_security/role" }); - internal static ApiUrls SecurityClearApiKeyCache = new ApiUrls(new[] { "_security/api_key/{ids}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedPrivileges = new ApiUrls(new[] { "_security/privilege/{application}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedRealms = new ApiUrls(new[] { "_security/realm/{realms}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "_security/role/{name}/_clear_cache" }); - internal static ApiUrls SecurityClearCachedServiceTokens = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache" }); - internal static ApiUrls SecurityCreateApiKey = new ApiUrls(new[] { "_security/api_key" }); - internal static ApiUrls SecurityCreateServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}", "_security/service/{namespace}/{service}/credential/token" }); - internal static ApiUrls SecurityDeletePrivileges = new ApiUrls(new[] { "_security/privilege/{application}/{name}" }); - internal static ApiUrls SecurityDeleteRole = new ApiUrls(new[] { "_security/role/{name}" }); - internal static ApiUrls SecurityDeleteRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}" }); - internal static ApiUrls SecurityDeleteServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}" }); - internal static ApiUrls SecurityDisableUserProfile = new ApiUrls(new[] { "_security/profile/{uid}/_disable" }); - internal static ApiUrls SecurityEnableUserProfile = new ApiUrls(new[] { "_security/profile/{uid}/_enable" }); - internal static ApiUrls SecurityGetApiKey = new ApiUrls(new[] { "_security/api_key" }); - internal static ApiUrls SecurityGetBuiltinPrivileges = new ApiUrls(new[] { "_security/privilege/_builtin" }); - internal static ApiUrls SecurityGetPrivileges = new ApiUrls(new[] { "_security/privilege", "_security/privilege/{application}", "_security/privilege/{application}/{name}" }); - internal static ApiUrls SecurityGetRole = new ApiUrls(new[] { "_security/role/{name}", "_security/role" }); - internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}", "_security/role_mapping" }); - internal static ApiUrls SecurityGetServiceAccounts = new ApiUrls(new[] { "_security/service/{namespace}/{service}", "_security/service/{namespace}", "_security/service" }); - internal static ApiUrls SecurityGetServiceCredentials = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential" }); - internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "_security/oauth2/token" }); - internal static ApiUrls SecurityGetUserPrivileges = new ApiUrls(new[] { "_security/user/_privileges" }); - internal static ApiUrls SecurityGetUserProfile = new ApiUrls(new[] { "_security/profile/{uid}" }); - internal static ApiUrls SecurityGrantApiKey = new ApiUrls(new[] { "_security/api_key/grant" }); - internal static ApiUrls SecurityHasPrivileges = new ApiUrls(new[] { "_security/user/_has_privileges", "_security/user/{user}/_has_privileges" }); - internal static ApiUrls SecurityHasPrivilegesUserProfile = new ApiUrls(new[] { "_security/profile/_has_privileges" }); - internal static ApiUrls SecurityInvalidateApiKey = new ApiUrls(new[] { "_security/api_key" }); - internal static ApiUrls SecurityInvalidateToken = new ApiUrls(new[] { "_security/oauth2/token" }); - internal static ApiUrls SecurityPutPrivileges = new ApiUrls(new[] { "_security/privilege" }); - internal static ApiUrls SecurityPutRole = new ApiUrls(new[] { "_security/role/{name}" }); - internal static ApiUrls SecurityPutRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}" }); - internal static ApiUrls SecurityQueryApiKeys = new ApiUrls(new[] { "_security/_query/api_key" }); - internal static ApiUrls SecurityQueryRole = new ApiUrls(new[] { "_security/_query/role" }); - internal static ApiUrls SecurityQueryUser = new ApiUrls(new[] { "_security/_query/user" }); - internal static ApiUrls SecuritySamlAuthenticate = new ApiUrls(new[] { "_security/saml/authenticate" }); - internal static ApiUrls SecuritySamlCompleteLogout = new ApiUrls(new[] { "_security/saml/complete_logout" }); - internal static ApiUrls SecuritySamlInvalidate = new ApiUrls(new[] { "_security/saml/invalidate" }); - internal static ApiUrls SecuritySamlLogout = new ApiUrls(new[] { "_security/saml/logout" }); - internal static ApiUrls SecuritySamlPrepareAuthentication = new ApiUrls(new[] { "_security/saml/prepare" }); - internal static ApiUrls SecuritySamlServiceProviderMetadata = new ApiUrls(new[] { "_security/saml/metadata/{realm_name}" }); - internal static ApiUrls SecuritySuggestUserProfiles = new ApiUrls(new[] { "_security/profile/_suggest" }); - internal static ApiUrls SecurityUpdateApiKey = new ApiUrls(new[] { "_security/api_key/{id}" }); - internal static ApiUrls SecurityUpdateUserProfileData = new ApiUrls(new[] { "_security/profile/{uid}/_data" }); - internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" }); - internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" }); - internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" }); - internal static ApiUrls SnapshotCreateRepository = new ApiUrls(new[] { "_snapshot/{repository}" }); - internal static ApiUrls SnapshotDelete = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" }); - internal static ApiUrls SnapshotDeleteRepository = new ApiUrls(new[] { "_snapshot/{repository}" }); - internal static ApiUrls SnapshotGet = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" }); - internal static ApiUrls SnapshotGetRepository = new ApiUrls(new[] { "_snapshot", "_snapshot/{repository}" }); - internal static ApiUrls SnapshotLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}" }); - internal static ApiUrls SnapshotLifecycleManagementExecuteLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}/_execute" }); - internal static ApiUrls SnapshotLifecycleManagementExecuteRetention = new ApiUrls(new[] { "_slm/_execute_retention" }); - internal static ApiUrls SnapshotLifecycleManagementGetLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}", "_slm/policy" }); - internal static ApiUrls SnapshotLifecycleManagementGetStats = new ApiUrls(new[] { "_slm/stats" }); - internal static ApiUrls SnapshotLifecycleManagementGetStatus = new ApiUrls(new[] { "_slm/status" }); - internal static ApiUrls SnapshotLifecycleManagementPutLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}" }); - internal static ApiUrls SnapshotLifecycleManagementStart = new ApiUrls(new[] { "_slm/start" }); - internal static ApiUrls SnapshotLifecycleManagementStop = new ApiUrls(new[] { "_slm/stop" }); - internal static ApiUrls SnapshotRestore = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_restore" }); - internal static ApiUrls SnapshotStatus = new ApiUrls(new[] { "_snapshot/_status", "_snapshot/{repository}/_status", "_snapshot/{repository}/{snapshot}/_status" }); - internal static ApiUrls SnapshotVerifyRepository = new ApiUrls(new[] { "_snapshot/{repository}/_verify" }); - internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "_sql/close" }); - internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "_sql/async/delete/{id}" }); - internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "_sql/async/{id}" }); - internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "_sql/async/status/{id}" }); - internal static ApiUrls SqlQuery = new ApiUrls(new[] { "_sql" }); - internal static ApiUrls SqlTranslate = new ApiUrls(new[] { "_sql/translate" }); - internal static ApiUrls SynonymsDeleteSynonym = new ApiUrls(new[] { "_synonyms/{id}" }); - internal static ApiUrls SynonymsDeleteSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" }); - internal static ApiUrls SynonymsGetSynonym = new ApiUrls(new[] { "_synonyms/{id}" }); - internal static ApiUrls SynonymsGetSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" }); - internal static ApiUrls SynonymsGetSynonymsSets = new ApiUrls(new[] { "_synonyms" }); - internal static ApiUrls SynonymsPutSynonym = new ApiUrls(new[] { "_synonyms/{id}" }); - internal static ApiUrls SynonymsPutSynonymRule = new ApiUrls(new[] { "_synonyms/{set_id}/{rule_id}" }); - internal static ApiUrls TextStructureTestGrokPattern = new ApiUrls(new[] { "_text_structure/test_grok_pattern" }); - internal static ApiUrls TransformManagementDeleteTransform = new ApiUrls(new[] { "_transform/{transform_id}" }); - internal static ApiUrls TransformManagementGetTransform = new ApiUrls(new[] { "_transform/{transform_id}", "_transform" }); - internal static ApiUrls TransformManagementGetTransformStats = new ApiUrls(new[] { "_transform/{transform_id}/_stats" }); - internal static ApiUrls TransformManagementPreviewTransform = new ApiUrls(new[] { "_transform/{transform_id}/_preview", "_transform/_preview" }); - internal static ApiUrls TransformManagementPutTransform = new ApiUrls(new[] { "_transform/{transform_id}" }); - internal static ApiUrls TransformManagementResetTransform = new ApiUrls(new[] { "_transform/{transform_id}/_reset" }); - internal static ApiUrls TransformManagementScheduleNowTransform = new ApiUrls(new[] { "_transform/{transform_id}/_schedule_now" }); - internal static ApiUrls TransformManagementStartTransform = new ApiUrls(new[] { "_transform/{transform_id}/_start" }); - internal static ApiUrls TransformManagementStopTransform = new ApiUrls(new[] { "_transform/{transform_id}/_stop" }); - internal static ApiUrls TransformManagementUpdateTransform = new ApiUrls(new[] { "_transform/{transform_id}/_update" }); - internal static ApiUrls TransformManagementUpgradeTransforms = new ApiUrls(new[] { "_transform/_upgrade" }); - internal static ApiUrls XpackInfo = new ApiUrls(new[] { "_xpack" }); - internal static ApiUrls XpackUsage = new ApiUrls(new[] { "_xpack/usage" }); -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs deleted file mode 100644 index 23a2a730ace..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ /dev/null @@ -1,151 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public sealed partial class AsyncSearchStatusRequestParameters : RequestParameters -{ - /// - /// - /// Specifies how long the async search needs to be available. - /// Ongoing async searches and any saved search results are deleted after this period. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } -} - -/// -/// -/// Get the async search status. -/// -/// -/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. -/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. -/// -/// -public sealed partial class AsyncSearchStatusRequest : PlainRequest -{ - public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.status"; - - /// - /// - /// Specifies how long the async search needs to be available. - /// Ongoing async searches and any saved search results are deleted after this period. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } -} - -/// -/// -/// Get the async search status. -/// -/// -/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. -/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. -/// -/// -public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor, AsyncSearchStatusRequestParameters> -{ - internal AsyncSearchStatusRequestDescriptor(Action> configure) => configure.Invoke(this); - - public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.status"; - - public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - - public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get the async search status. -/// -/// -/// Get the status of a previously submitted async search request given its identifier, without retrieving search results. -/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. -/// -/// -public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor -{ - internal AsyncSearchStatusRequestDescriptor(Action configure) => configure.Invoke(this); - - public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.status"; - - public AsyncSearchStatusRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - - public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs deleted file mode 100644 index ac935fb70ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs +++ /dev/null @@ -1,102 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse -{ - /// - /// - /// Metadata about clusters involved in the cross-cluster search. - /// Not shown for local-only searches. - /// - /// - [JsonInclude, JsonPropertyName("_clusters")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; } - - /// - /// - /// If the async search completed, this field shows the status code of the search. - /// For example, 200 indicates that the async search was successfully completed. - /// 503 indicates that the async search was completed with an error. - /// - /// - [JsonInclude, JsonPropertyName("completion_status")] - public int? CompletionStatus { get; init; } - - /// - /// - /// Indicates when the async search completed. Only present - /// when the search has completed. - /// - /// - [JsonInclude, JsonPropertyName("completion_time")] - public DateTimeOffset? CompletionTime { get; init; } - [JsonInclude, JsonPropertyName("completion_time_in_millis")] - public long? CompletionTimeInMillis { get; init; } - - /// - /// - /// Indicates when the async search will expire. - /// - /// - [JsonInclude, JsonPropertyName("expiration_time")] - public DateTimeOffset? ExpirationTime { get; init; } - [JsonInclude, JsonPropertyName("expiration_time_in_millis")] - public long ExpirationTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - - /// - /// - /// When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards. - /// While the query is running, is_partial is always set to true. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool IsPartial { get; init; } - - /// - /// - /// Indicates whether the search is still running or has completed. - /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool IsRunning { get; init; } - - /// - /// - /// Indicates how many shards have run the query so far. - /// - /// - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs deleted file mode 100644 index 3d0db2d1b6f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchRequest.g.cs +++ /dev/null @@ -1,134 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public sealed partial class DeleteAsyncSearchRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete an async search. -/// -/// -/// If the asynchronous search is still running, it is cancelled. -/// Otherwise, the saved search results are deleted. -/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. -/// -/// -public sealed partial class DeleteAsyncSearchRequest : PlainRequest -{ - public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.delete"; -} - -/// -/// -/// Delete an async search. -/// -/// -/// If the asynchronous search is still running, it is cancelled. -/// Otherwise, the saved search results are deleted. -/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. -/// -/// -public sealed partial class DeleteAsyncSearchRequestDescriptor : RequestDescriptor, DeleteAsyncSearchRequestParameters> -{ - internal DeleteAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.delete"; - - public DeleteAsyncSearchRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete an async search. -/// -/// -/// If the asynchronous search is still running, it is cancelled. -/// Otherwise, the saved search results are deleted. -/// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. -/// -/// -public sealed partial class DeleteAsyncSearchRequestDescriptor : RequestDescriptor -{ - internal DeleteAsyncSearchRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.delete"; - - public DeleteAsyncSearchRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs deleted file mode 100644 index 66a78fb63cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/DeleteAsyncSearchResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public sealed partial class DeleteAsyncSearchResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs deleted file mode 100644 index 773597370a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ /dev/null @@ -1,195 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public sealed partial class GetAsyncSearchRequestParameters : RequestParameters -{ - /// - /// - /// Specifies how long the async search should be available in the cluster. - /// When not specified, the keep_alive set with the corresponding submit async request will be used. - /// Otherwise, it is possible to override the value and extend the validity of the request. - /// When this period expires, the search, if still running, is cancelled. - /// If the search is completed, its saved results are deleted. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Specifies to wait for the search to be completed up until the provided timeout. - /// Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires. - /// By default no timeout is set meaning that the currently available results will be returned without any additional wait. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -/// -/// -/// Get async search results. -/// -/// -/// Retrieve the results of a previously submitted asynchronous search request. -/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. -/// -/// -public sealed partial class GetAsyncSearchRequest : PlainRequest -{ - public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.get"; - - /// - /// - /// Specifies how long the async search should be available in the cluster. - /// When not specified, the keep_alive set with the corresponding submit async request will be used. - /// Otherwise, it is possible to override the value and extend the validity of the request. - /// When this period expires, the search, if still running, is cancelled. - /// If the search is completed, its saved results are deleted. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Specifies to wait for the search to be completed up until the provided timeout. - /// Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires. - /// By default no timeout is set meaning that the currently available results will be returned without any additional wait. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -/// -/// -/// Get async search results. -/// -/// -/// Retrieve the results of a previously submitted asynchronous search request. -/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. -/// -/// -public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor, GetAsyncSearchRequestParameters> -{ - internal GetAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.get"; - - public GetAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - public GetAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - public GetAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public GetAsyncSearchRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get async search results. -/// -/// -/// Retrieve the results of a previously submitted asynchronous search request. -/// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. -/// -/// -public sealed partial class GetAsyncSearchRequestDescriptor : RequestDescriptor -{ - internal GetAsyncSearchRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "async_search.get"; - - public GetAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - public GetAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - public GetAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public GetAsyncSearchRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs deleted file mode 100644 index a7fd20fd67d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.AsyncSearch; - -public sealed partial class GetAsyncSearchResponse : ElasticsearchResponse -{ - /// - /// - /// Indicates when the async search completed. Only present - /// when the search has completed. - /// - /// - [JsonInclude, JsonPropertyName("completion_time")] - public DateTimeOffset? CompletionTime { get; init; } - [JsonInclude, JsonPropertyName("completion_time_in_millis")] - public long? CompletionTimeInMillis { get; init; } - - /// - /// - /// Indicates when the async search will expire. - /// - /// - [JsonInclude, JsonPropertyName("expiration_time")] - public DateTimeOffset? ExpirationTime { get; init; } - [JsonInclude, JsonPropertyName("expiration_time_in_millis")] - public long ExpirationTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - - /// - /// - /// When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards. - /// While the query is running, is_partial is always set to true. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool IsPartial { get; init; } - - /// - /// - /// Indicates whether the search is still running or has completed. - /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool IsRunning { get; init; } - [JsonInclude, JsonPropertyName("response")] - public Elastic.Clients.Elasticsearch.Serverless.AsyncSearch.AsyncSearch Response { get; init; } - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs deleted file mode 100644 index da346fb535f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ /dev/null @@ -1,3366 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public sealed partial class SubmitAsyncSearchRequestParameters : RequestParameters -{ - /// - /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified) - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Indicate if an error should be returned if there is a partial search failure or timeout - /// - /// - public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } - - /// - /// - /// The analyzer to use for the query string - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// Affects how often partial results become available, which happens whenever shard results are reduced. - /// A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). - /// - /// - public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } - - /// - /// - /// The default value is the only supported value. - /// - /// - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// The default operator for query string query (AND or OR) - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// The field to use as default where no field prefix is given in the query string - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout. - /// - /// - public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } - - /// - /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests - /// - /// - public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - - /// - /// - /// Specify the node or shard the operation should be performed on (default: random) - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// Specify if request cache should be used for this request or not, defaults to true - /// - /// - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response - /// - /// - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// A comma-separated list of specific routing values - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Search operation type - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// A list of fields to exclude from the returned _source field - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A list of fields to extract and return from the _source field - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Specifies which field to use for suggestions. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); } - - /// - /// - /// Specify suggest mode - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); } - - /// - /// - /// How many suggestions to return in response - /// - /// - public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); } - - /// - /// - /// The source text for which the suggestions should be returned. - /// - /// - public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); } - - /// - /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Blocks and waits until the search is completed up to a certain timeout. - /// When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -internal sealed partial class SubmitAsyncSearchRequestConverter : JsonConverter -{ - public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new SubmitAsyncSearchRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "collapse") - { - variant.Collapse = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "docvalue_fields") - { - variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "explain") - { - variant.Explain = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "ext") - { - variant.Ext = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "fields") - { - variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "highlight") - { - variant.Highlight = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices_boost") - { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); - continue; - } - - if (property == "knn") - { - variant.Knn = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "min_score") - { - variant.MinScore = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "pit") - { - variant.Pit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "post_filter") - { - variant.PostFilter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "profile") - { - variant.Profile = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rescore") - { - variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "search_after") - { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "seq_no_primary_term") - { - variant.SeqNoPrimaryTerm = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "size") - { - variant.Size = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "slice") - { - variant.Slice = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "sort") - { - variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "_source") - { - variant.Source = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "stats") - { - variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "stored_fields") - { - variant.StoredFields = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "suggest") - { - variant.Suggest = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "terminate_after") - { - variant.TerminateAfter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "timeout") - { - variant.Timeout = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "track_scores") - { - variant.TrackScores = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "track_total_hits") - { - variant.TrackTotalHits = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "version") - { - variant.Version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, SubmitAsyncSearchRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.Collapse is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, value.Collapse, options); - } - - if (value.DocvalueFields is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, value.DocvalueFields, options); - } - - if (value.Explain.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(value.Explain.Value); - } - - if (value.Ext is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, value.Ext, options); - } - - if (value.Fields is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, value.Fields, options); - } - - if (value.From.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(value.From.Value); - } - - if (value.Highlight is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, value.Highlight, options); - } - - if (value.IndicesBoost is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, value.IndicesBoost, options); - } - - if (value.Knn is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, value.Knn, options); - } - - if (value.MinScore.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(value.MinScore.Value); - } - - if (value.Pit is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, value.Pit, options); - } - - if (value.PostFilter is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, value.PostFilter, options); - } - - if (value.Profile.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(value.Profile.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.Rescore is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, value.Rescore, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.SearchAfter is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, value.SearchAfter, options); - } - - if (value.SeqNoPrimaryTerm.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(value.SeqNoPrimaryTerm.Value); - } - - if (value.Size.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(value.Size.Value); - } - - if (value.Slice is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, value.Slice, options); - } - - if (value.Sort is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, value.Sort, options); - } - - if (value.Source is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, value.Source, options); - } - - if (value.Stats is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, value.Stats, options); - } - - if (value.StoredFields is not null) - { - writer.WritePropertyName("stored_fields"); - new FieldsConverter().Write(writer, value.StoredFields, options); - } - - if (value.Suggest is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, value.Suggest, options); - } - - if (value.TerminateAfter.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(value.TerminateAfter.Value); - } - - if (!string.IsNullOrEmpty(value.Timeout)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(value.Timeout); - } - - if (value.TrackScores.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(value.TrackScores.Value); - } - - if (value.TrackTotalHits is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, value.TrackTotalHits, options); - } - - if (value.Version.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(value.Version.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Run an async search. -/// -/// -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. -/// -/// -/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. -/// -/// -/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. -/// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. -/// -/// -[JsonConverter(typeof(SubmitAsyncSearchRequestConverter))] -public sealed partial class SubmitAsyncSearchRequest : PlainRequest -{ - public SubmitAsyncSearchRequest() - { - } - - public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchSubmit; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "async_search.submit"; - - /// - /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified) - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Indicate if an error should be returned if there is a partial search failure or timeout - /// - /// - [JsonIgnore] - public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } - - /// - /// - /// The analyzer to use for the query string - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// Affects how often partial results become available, which happens whenever shard results are reduced. - /// A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). - /// - /// - [JsonIgnore] - public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } - - /// - /// - /// The default value is the only supported value. - /// - /// - [JsonIgnore] - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// The default operator for query string query (AND or OR) - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// The field to use as default where no field prefix is given in the query string - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout. - /// - /// - [JsonIgnore] - public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } - - /// - /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests - /// - /// - [JsonIgnore] - public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - - /// - /// - /// Specify the node or shard the operation should be performed on (default: random) - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// Specify if request cache should be used for this request or not, defaults to true - /// - /// - [JsonIgnore] - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response - /// - /// - [JsonIgnore] - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// A comma-separated list of specific routing values - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Search operation type - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// A list of fields to exclude from the returned _source field - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A list of fields to extract and return from the _source field - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Specifies which field to use for suggestions. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); } - - /// - /// - /// Specify suggest mode - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); } - - /// - /// - /// How many suggestions to return in response - /// - /// - [JsonIgnore] - public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); } - - /// - /// - /// The source text for which the suggestions should be returned. - /// - /// - [JsonIgnore] - public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); } - - /// - /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Blocks and waits until the search is completed up to a certain timeout. - /// When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - [JsonInclude, JsonPropertyName("collapse")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. The request returns doc values for field - /// names matching these patterns in the hits.fields property of the response. - /// - /// - [JsonInclude, JsonPropertyName("docvalue_fields")] - public ICollection? DocvalueFields { get; set; } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; set; } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - [JsonInclude, JsonPropertyName("ext")] - public IDictionary? Ext { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - public ICollection? Fields { get; set; } - - /// - /// - /// Starting document offset. By default, you cannot page through more than 10,000 - /// hits using the from and size parameters. To page through more hits, use the - /// search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - [JsonInclude, JsonPropertyName("highlight")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? Highlight { get; set; } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - [JsonInclude, JsonPropertyName("indices_boost")] - public ICollection>? IndicesBoost { get; set; } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - [JsonInclude, JsonPropertyName("knn")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.KnnSearch))] - public ICollection? Knn { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are - /// not included in the search results. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public double? MinScore { get; set; } - - /// - /// - /// Limits the search to a point in time (PIT). If you provide a PIT, you - /// cannot specify an <index> in the request path. - /// - /// - [JsonInclude, JsonPropertyName("pit")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? Pit { get; set; } - [JsonInclude, JsonPropertyName("post_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilter { get; set; } - [JsonInclude, JsonPropertyName("profile")] - public bool? Profile { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - [JsonInclude, JsonPropertyName("rescore")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore))] - public ICollection? Rescore { get; set; } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - [JsonInclude, JsonPropertyName("script_fields")] - public IDictionary? ScriptFields { get; set; } - [JsonInclude, JsonPropertyName("search_after")] - public ICollection? SearchAfter { get; set; } - - /// - /// - /// If true, returns sequence number and primary term of the last modification - /// of each hit. See Optimistic concurrency control. - /// - /// - [JsonInclude, JsonPropertyName("seq_no_primary_term")] - public bool? SeqNoPrimaryTerm { get; set; } - - /// - /// - /// The number of hits to return. By default, you cannot page through more - /// than 10,000 hits using the from and size parameters. To page through more - /// hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - [JsonInclude, JsonPropertyName("slice")] - public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - /// - /// - /// Indicates which source fields are returned for matching documents. These - /// fields are returned in the hits._source property of the search response. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - - /// - /// - /// Stats groups to associate with the search. Each group maintains a statistics - /// aggregation for its associated searches. You can retrieve these stats using - /// the indices stats API. - /// - /// - [JsonInclude, JsonPropertyName("stats")] - public ICollection? Stats { get; set; } - - /// - /// - /// List of stored fields to return as part of a hit. If no fields are specified, - /// no stored fields are included in the response. If this field is specified, the _source - /// parameter defaults to false. You can pass _source: true to return both source fields - /// and stored fields in the search response. - /// - /// - [JsonInclude, JsonPropertyName("stored_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; } - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? Suggest { get; set; } - - /// - /// - /// Maximum number of documents to collect for each shard. If a query reaches this - /// limit, Elasticsearch terminates the query early. Elasticsearch collects documents - /// before sorting. Defaults to 0, which does not terminate query execution early. - /// - /// - [JsonInclude, JsonPropertyName("terminate_after")] - public long? TerminateAfter { get; set; } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. If no response - /// is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public string? Timeout { get; set; } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - [JsonInclude, JsonPropertyName("track_scores")] - public bool? TrackScores { get; set; } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact - /// number of hits is returned at the cost of some performance. If false, the - /// response does not include the total number of hits matching the query. - /// Defaults to 10,000 hits. - /// - /// - [JsonInclude, JsonPropertyName("track_total_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHits { get; set; } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public bool? Version { get; set; } -} - -/// -/// -/// Run an async search. -/// -/// -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. -/// -/// -/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. -/// -/// -/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. -/// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. -/// -/// -public sealed partial class SubmitAsyncSearchRequestDescriptor : RequestDescriptor, SubmitAsyncSearchRequestParameters> -{ - internal SubmitAsyncSearchRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SubmitAsyncSearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchSubmit; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "async_search.submit"; - - public SubmitAsyncSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SubmitAsyncSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); - public SubmitAsyncSearchRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public SubmitAsyncSearchRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public SubmitAsyncSearchRequestDescriptor BatchedReduceSize(long? batchedReduceSize) => Qs("batched_reduce_size", batchedReduceSize); - public SubmitAsyncSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public SubmitAsyncSearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public SubmitAsyncSearchRequestDescriptor Df(string? df) => Qs("df", df); - public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); - public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public SubmitAsyncSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public SubmitAsyncSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public SubmitAsyncSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public SubmitAsyncSearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public SubmitAsyncSearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public SubmitAsyncSearchRequestDescriptor SuggestField(Elastic.Clients.Elasticsearch.Serverless.Field? suggestField) => Qs("suggest_field", suggestField); - public SubmitAsyncSearchRequestDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) => Qs("suggest_mode", suggestMode); - public SubmitAsyncSearchRequestDescriptor SuggestSize(long? suggestSize) => Qs("suggest_size", suggestSize); - public SubmitAsyncSearchRequestDescriptor SuggestText(string? suggestText) => Qs("suggest_text", suggestText); - public SubmitAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - public SubmitAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private IDictionary> AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action> CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action> DocvalueFieldsDescriptorAction { get; set; } - private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private IDictionary? ExtValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action> FieldsDescriptorAction { get; set; } - private Action>[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action> HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } - private ICollection? KnnValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; } - private Action> KnnDescriptorAction { get; set; } - private Action>[] KnnDescriptorActions { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } - private Action PitDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; } - private Action> PostFilterDescriptorAction { get; set; } - private bool? ProfileValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? RescoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } - private Action> RescoreDescriptorAction { get; set; } - private Action>[] RescoreDescriptorActions { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private ICollection? SearchAfterValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private ICollection? StatsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; } - private Action> SuggestDescriptorAction { get; set; } - private long? TerminateAfterValue { get; set; } - private string? TimeoutValue { get; set; } - private bool? TrackScoresValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? VersionValue { get; set; } - - public SubmitAsyncSearchRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Collapse(Action> configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns doc values for field - /// names matching these patterns in the hits.fields property of the response. - /// - /// - public SubmitAsyncSearchRequestDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor DocvalueFields(Action> configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor DocvalueFields(params Action>[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public SubmitAsyncSearchRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public SubmitAsyncSearchRequestDescriptor Ext(Func, FluentDictionary> selector) - { - ExtValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public SubmitAsyncSearchRequestDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Fields(Action> configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Fields(params Action>[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. By default, you cannot page through more than 10,000 - /// hits using the from and size parameters. To page through more hits, use the - /// search_after parameter. - /// - /// - public SubmitAsyncSearchRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Highlight(Action> configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) - { - IndicesBoostValue = indicesBoost; - return Self; - } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public SubmitAsyncSearchRequestDescriptor Knn(ICollection? knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnValue = knn; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Knn(Action> configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorActions = null; - KnnDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Knn(params Action>[] configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are - /// not included in the search results. - /// - /// - public SubmitAsyncSearchRequestDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Limits the search to a point in time (PIT). If you provide a PIT, you - /// cannot specify an <index> in the request path. - /// - /// - public SubmitAsyncSearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? pit) - { - PitDescriptor = null; - PitDescriptorAction = null; - PitValue = pit; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor) - { - PitValue = null; - PitDescriptorAction = null; - PitDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Pit(Action configure) - { - PitValue = null; - PitDescriptor = null; - PitDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? postFilter) - { - PostFilterDescriptor = null; - PostFilterDescriptorAction = null; - PostFilterValue = postFilter; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PostFilterValue = null; - PostFilterDescriptorAction = null; - PostFilterDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor PostFilter(Action> configure) - { - PostFilterValue = null; - PostFilterDescriptor = null; - PostFilterDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public SubmitAsyncSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(ICollection? rescore) - { - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreValue = rescore; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor) - { - RescoreValue = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(Action> configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorActions = null; - RescoreDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(params Action>[] configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public SubmitAsyncSearchRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public SubmitAsyncSearchRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public SubmitAsyncSearchRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification - /// of each hit. See Optimistic concurrency control. - /// - /// - public SubmitAsyncSearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The number of hits to return. By default, you cannot page through more - /// than 10,000 hits using the from and size parameters. To page through more - /// hits, use the search_after parameter. - /// - /// - public SubmitAsyncSearchRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Slice(Action> configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Indicates which source fields are returned for matching documents. These - /// fields are returned in the hits._source property of the search response. - /// - /// - public SubmitAsyncSearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Stats groups to associate with the search. Each group maintains a statistics - /// aggregation for its associated searches. You can retrieve these stats using - /// the indices stats API. - /// - /// - public SubmitAsyncSearchRequestDescriptor Stats(ICollection? stats) - { - StatsValue = stats; - return Self; - } - - /// - /// - /// List of stored fields to return as part of a hit. If no fields are specified, - /// no stored fields are included in the response. If this field is specified, the _source - /// parameter defaults to false. You can pass _source: true to return both source fields - /// and stored fields in the search response. - /// - /// - public SubmitAsyncSearchRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? suggest) - { - SuggestDescriptor = null; - SuggestDescriptorAction = null; - SuggestValue = suggest; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor) - { - SuggestValue = null; - SuggestDescriptorAction = null; - SuggestDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Suggest(Action> configure) - { - SuggestValue = null; - SuggestDescriptor = null; - SuggestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. If a query reaches this - /// limit, Elasticsearch terminates the query early. Elasticsearch collects documents - /// before sorting. Defaults to 0, which does not terminate query execution early. - /// - /// - public SubmitAsyncSearchRequestDescriptor TerminateAfter(long? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. If no response - /// is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public SubmitAsyncSearchRequestDescriptor Timeout(string? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public SubmitAsyncSearchRequestDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact - /// number of hits is returned at the cost of some performance. If false, the - /// response does not include the total number of hits matching the query. - /// Defaults to 10,000 hits. - /// - /// - public SubmitAsyncSearchRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public SubmitAsyncSearchRequestDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (ExtValue is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, ExtValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndicesBoostValue is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, IndicesBoostValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options); - } - else if (KnnDescriptorActions is not null) - { - writer.WritePropertyName("knn"); - if (KnnDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in KnnDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options); - } - - if (KnnDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (KnnValue is not null) - { - writer.WritePropertyName("knn"); - SingleOrManySerializationHelper.Serialize(KnnValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (PitDescriptor is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitDescriptor, options); - } - else if (PitDescriptorAction is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor(PitDescriptorAction), options); - } - else if (PitValue is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitValue, options); - } - - if (PostFilterDescriptor is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterDescriptor, options); - } - else if (PostFilterDescriptorAction is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PostFilterDescriptorAction), options); - } - else if (PostFilterValue is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RescoreDescriptor is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, RescoreDescriptor, options); - } - else if (RescoreDescriptorAction is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(RescoreDescriptorAction), options); - } - else if (RescoreDescriptorActions is not null) - { - writer.WritePropertyName("rescore"); - if (RescoreDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RescoreDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(action), options); - } - - if (RescoreDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (RescoreValue is not null) - { - writer.WritePropertyName("rescore"); - SingleOrManySerializationHelper.Serialize(RescoreValue, writer, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StatsValue is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, StatsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (SuggestDescriptor is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestDescriptor, options); - } - else if (SuggestDescriptorAction is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor(SuggestDescriptorAction), options); - } - else if (SuggestValue is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestValue, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - if (!string.IsNullOrEmpty(TimeoutValue)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(TimeoutValue); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Run an async search. -/// -/// -/// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. -/// -/// -/// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. -/// -/// -/// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. -/// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. -/// -/// -public sealed partial class SubmitAsyncSearchRequestDescriptor : RequestDescriptor -{ - internal SubmitAsyncSearchRequestDescriptor(Action configure) => configure.Invoke(this); - - public SubmitAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SubmitAsyncSearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchSubmit; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "async_search.submit"; - - public SubmitAsyncSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SubmitAsyncSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); - public SubmitAsyncSearchRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public SubmitAsyncSearchRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public SubmitAsyncSearchRequestDescriptor BatchedReduceSize(long? batchedReduceSize) => Qs("batched_reduce_size", batchedReduceSize); - public SubmitAsyncSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public SubmitAsyncSearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public SubmitAsyncSearchRequestDescriptor Df(string? df) => Qs("df", df); - public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); - public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public SubmitAsyncSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public SubmitAsyncSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public SubmitAsyncSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public SubmitAsyncSearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public SubmitAsyncSearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public SubmitAsyncSearchRequestDescriptor SuggestField(Elastic.Clients.Elasticsearch.Serverless.Field? suggestField) => Qs("suggest_field", suggestField); - public SubmitAsyncSearchRequestDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) => Qs("suggest_mode", suggestMode); - public SubmitAsyncSearchRequestDescriptor SuggestSize(long? suggestSize) => Qs("suggest_size", suggestSize); - public SubmitAsyncSearchRequestDescriptor SuggestText(string? suggestText) => Qs("suggest_text", suggestText); - public SubmitAsyncSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - public SubmitAsyncSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private IDictionary AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action DocvalueFieldsDescriptorAction { get; set; } - private Action[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private IDictionary? ExtValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action FieldsDescriptorAction { get; set; } - private Action[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } - private ICollection? KnnValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; } - private Action KnnDescriptorAction { get; set; } - private Action[] KnnDescriptorActions { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } - private Action PitDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; } - private Action PostFilterDescriptorAction { get; set; } - private bool? ProfileValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? RescoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } - private Action RescoreDescriptorAction { get; set; } - private Action[] RescoreDescriptorActions { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private ICollection? SearchAfterValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private ICollection? StatsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; } - private Action SuggestDescriptorAction { get; set; } - private long? TerminateAfterValue { get; set; } - private string? TimeoutValue { get; set; } - private bool? TrackScoresValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? VersionValue { get; set; } - - public SubmitAsyncSearchRequestDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Collapse(Action configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns doc values for field - /// names matching these patterns in the hits.fields property of the response. - /// - /// - public SubmitAsyncSearchRequestDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor DocvalueFields(Action configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor DocvalueFields(params Action[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public SubmitAsyncSearchRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public SubmitAsyncSearchRequestDescriptor Ext(Func, FluentDictionary> selector) - { - ExtValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public SubmitAsyncSearchRequestDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Fields(Action configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Fields(params Action[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. By default, you cannot page through more than 10,000 - /// hits using the from and size parameters. To page through more hits, use the - /// search_after parameter. - /// - /// - public SubmitAsyncSearchRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) - { - IndicesBoostValue = indicesBoost; - return Self; - } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public SubmitAsyncSearchRequestDescriptor Knn(ICollection? knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnValue = knn; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Knn(Action configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorActions = null; - KnnDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Knn(params Action[] configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are - /// not included in the search results. - /// - /// - public SubmitAsyncSearchRequestDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Limits the search to a point in time (PIT). If you provide a PIT, you - /// cannot specify an <index> in the request path. - /// - /// - public SubmitAsyncSearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? pit) - { - PitDescriptor = null; - PitDescriptorAction = null; - PitValue = pit; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor) - { - PitValue = null; - PitDescriptorAction = null; - PitDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Pit(Action configure) - { - PitValue = null; - PitDescriptor = null; - PitDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? postFilter) - { - PostFilterDescriptor = null; - PostFilterDescriptorAction = null; - PostFilterValue = postFilter; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PostFilterValue = null; - PostFilterDescriptorAction = null; - PostFilterDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor PostFilter(Action configure) - { - PostFilterValue = null; - PostFilterDescriptor = null; - PostFilterDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public SubmitAsyncSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(ICollection? rescore) - { - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreValue = rescore; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor) - { - RescoreValue = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(Action configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorActions = null; - RescoreDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Rescore(params Action[] configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public SubmitAsyncSearchRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public SubmitAsyncSearchRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public SubmitAsyncSearchRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification - /// of each hit. See Optimistic concurrency control. - /// - /// - public SubmitAsyncSearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The number of hits to return. By default, you cannot page through more - /// than 10,000 hits using the from and size parameters. To page through more - /// hits, use the search_after parameter. - /// - /// - public SubmitAsyncSearchRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Slice(Action configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Indicates which source fields are returned for matching documents. These - /// fields are returned in the hits._source property of the search response. - /// - /// - public SubmitAsyncSearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Stats groups to associate with the search. Each group maintains a statistics - /// aggregation for its associated searches. You can retrieve these stats using - /// the indices stats API. - /// - /// - public SubmitAsyncSearchRequestDescriptor Stats(ICollection? stats) - { - StatsValue = stats; - return Self; - } - - /// - /// - /// List of stored fields to return as part of a hit. If no fields are specified, - /// no stored fields are included in the response. If this field is specified, the _source - /// parameter defaults to false. You can pass _source: true to return both source fields - /// and stored fields in the search response. - /// - /// - public SubmitAsyncSearchRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? suggest) - { - SuggestDescriptor = null; - SuggestDescriptorAction = null; - SuggestValue = suggest; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor) - { - SuggestValue = null; - SuggestDescriptorAction = null; - SuggestDescriptor = descriptor; - return Self; - } - - public SubmitAsyncSearchRequestDescriptor Suggest(Action configure) - { - SuggestValue = null; - SuggestDescriptor = null; - SuggestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. If a query reaches this - /// limit, Elasticsearch terminates the query early. Elasticsearch collects documents - /// before sorting. Defaults to 0, which does not terminate query execution early. - /// - /// - public SubmitAsyncSearchRequestDescriptor TerminateAfter(long? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. If no response - /// is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public SubmitAsyncSearchRequestDescriptor Timeout(string? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public SubmitAsyncSearchRequestDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact - /// number of hits is returned at the cost of some performance. If false, the - /// response does not include the total number of hits matching the query. - /// Defaults to 10,000 hits. - /// - /// - public SubmitAsyncSearchRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public SubmitAsyncSearchRequestDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (ExtValue is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, ExtValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndicesBoostValue is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, IndicesBoostValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options); - } - else if (KnnDescriptorActions is not null) - { - writer.WritePropertyName("knn"); - if (KnnDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in KnnDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options); - } - - if (KnnDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (KnnValue is not null) - { - writer.WritePropertyName("knn"); - SingleOrManySerializationHelper.Serialize(KnnValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (PitDescriptor is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitDescriptor, options); - } - else if (PitDescriptorAction is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor(PitDescriptorAction), options); - } - else if (PitValue is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitValue, options); - } - - if (PostFilterDescriptor is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterDescriptor, options); - } - else if (PostFilterDescriptorAction is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PostFilterDescriptorAction), options); - } - else if (PostFilterValue is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RescoreDescriptor is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, RescoreDescriptor, options); - } - else if (RescoreDescriptorAction is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(RescoreDescriptorAction), options); - } - else if (RescoreDescriptorActions is not null) - { - writer.WritePropertyName("rescore"); - if (RescoreDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RescoreDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(action), options); - } - - if (RescoreDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (RescoreValue is not null) - { - writer.WritePropertyName("rescore"); - SingleOrManySerializationHelper.Serialize(RescoreValue, writer, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StatsValue is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, StatsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (SuggestDescriptor is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestDescriptor, options); - } - else if (SuggestDescriptorAction is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor(SuggestDescriptorAction), options); - } - else if (SuggestValue is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestValue, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - if (!string.IsNullOrEmpty(TimeoutValue)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(TimeoutValue); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs deleted file mode 100644 index 2aa8d3f0afe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.AsyncSearch; - -public sealed partial class SubmitAsyncSearchResponse : ElasticsearchResponse -{ - /// - /// - /// Indicates when the async search completed. Only present - /// when the search has completed. - /// - /// - [JsonInclude, JsonPropertyName("completion_time")] - public DateTimeOffset? CompletionTime { get; init; } - [JsonInclude, JsonPropertyName("completion_time_in_millis")] - public long? CompletionTimeInMillis { get; init; } - - /// - /// - /// Indicates when the async search will expire. - /// - /// - [JsonInclude, JsonPropertyName("expiration_time")] - public DateTimeOffset? ExpirationTime { get; init; } - [JsonInclude, JsonPropertyName("expiration_time_in_millis")] - public long ExpirationTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - - /// - /// - /// When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards. - /// While the query is running, is_partial is always set to true. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool IsPartial { get; init; } - - /// - /// - /// Indicates whether the search is still running or has completed. - /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool IsRunning { get; init; } - [JsonInclude, JsonPropertyName("response")] - public Elastic.Clients.Elasticsearch.Serverless.AsyncSearch.AsyncSearch Response { get; init; } - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs deleted file mode 100644 index 911de7c5c91..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs +++ /dev/null @@ -1,337 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 BulkRequestParameters : RequestParameters -{ - /// - /// - /// If true, the response will include the ingest pipelines that were executed for each index or create. - /// - /// - public bool? ListExecutedPipelines { get => Q("list_executed_pipelines"); set => Q("list_executed_pipelines", value); } - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the request’s actions must target an index alias. - /// - /// - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// If true, the request's actions must target a data stream (existing or to-be-created). - /// - /// - public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// true or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// 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 -{ - public BulkRequest() - { - } - - public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceBulk; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "bulk"; - - /// - /// - /// If true, the response will include the ingest pipelines that were executed for each index or create. - /// - /// - [JsonIgnore] - public bool? ListExecutedPipelines { get => Q("list_executed_pipelines"); set => Q("list_executed_pipelines", value); } - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - [JsonIgnore] - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the request’s actions must target an index alias. - /// - /// - [JsonIgnore] - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// If true, the request's actions must target a data stream (existing or to-be-created). - /// - /// - [JsonIgnore] - public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// true or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// 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> -{ - internal BulkRequestDescriptor(Action> configure) => configure.Invoke(this); - - public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public BulkRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceBulk; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "bulk"; - - public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines); - public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); - public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public BulkRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); - public BulkRequestDescriptor RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream); - public BulkRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public BulkRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public BulkRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public BulkRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public BulkRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public BulkRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public BulkRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal BulkRequestDescriptor(Action configure) => configure.Invoke(this); - - public BulkRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public BulkRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceBulk; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "bulk"; - - public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines); - public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); - public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public BulkRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); - public BulkRequestDescriptor RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream); - public BulkRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public BulkRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public BulkRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public BulkRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public BulkRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public BulkRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public BulkRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkResponse.g.cs deleted file mode 100644 index 6540f2c9a6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class BulkResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("errors")] - public bool Errors { get; init; } - [JsonInclude, JsonPropertyName("ingest_took")] - public long? IngestTook { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs deleted file mode 100644 index d0dec945da3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs +++ /dev/null @@ -1,114 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ClearScrollRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear a scrolling search. -/// -/// -/// Clear the search context and results for a scrolling search. -/// -/// -public sealed partial class ClearScrollRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceClearScroll; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "clear_scroll"; - - /// - /// - /// Scroll IDs to clear. - /// To clear all scroll IDs, use _all. - /// - /// - [JsonInclude, JsonPropertyName("scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollId { get; set; } -} - -/// -/// -/// Clear a scrolling search. -/// -/// -/// Clear the search context and results for a scrolling search. -/// -/// -public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor -{ - internal ClearScrollRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearScrollRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceClearScroll; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "clear_scroll"; - - private Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollIdValue { get; set; } - - /// - /// - /// Scroll IDs to clear. - /// To clear all scroll IDs, use _all. - /// - /// - public ClearScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.Serverless.ScrollIds? scrollId) - { - ScrollIdValue = scrollId; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ScrollIdValue is not null) - { - writer.WritePropertyName("scroll_id"); - JsonSerializer.Serialize(writer, ScrollIdValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollResponse.g.cs deleted file mode 100644 index 121e9946eb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ClearScrollResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("num_freed")] - public int NumFreed { get; init; } - [JsonInclude, JsonPropertyName("succeeded")] - public bool Succeeded { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs deleted file mode 100644 index 843be08f62d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs +++ /dev/null @@ -1,114 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ClosePointInTimeRequestParameters : RequestParameters -{ -} - -/// -/// -/// Close a point in time. -/// -/// -/// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. -/// A point in time is automatically closed when the keep_alive period has elapsed. -/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. -/// -/// -public sealed partial class ClosePointInTimeRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceClosePointInTime; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "close_point_in_time"; - - /// - /// - /// The ID of the point-in-time. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } -} - -/// -/// -/// Close a point in time. -/// -/// -/// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. -/// A point in time is automatically closed when the keep_alive period has elapsed. -/// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. -/// -/// -public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor -{ - internal ClosePointInTimeRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClosePointInTimeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceClosePointInTime; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "close_point_in_time"; - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - - /// - /// - /// The ID of the point-in-time. - /// - /// - public ClosePointInTimeRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeResponse.g.cs deleted file mode 100644 index e12e0397740..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ClosePointInTimeResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("num_freed")] - public int NumFreed { get; init; } - [JsonInclude, JsonPropertyName("succeeded")] - public bool Succeeded { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs deleted file mode 100644 index 986ef49cab9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ /dev/null @@ -1,224 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class AllocationExplainRequestParameters : RequestParameters -{ - /// - /// - /// If true, returns information about disk usage and shard sizes. - /// - /// - public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } - - /// - /// - /// If true, returns YES decisions in explanation. - /// - /// - public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } -} - -/// -/// -/// Explain the shard allocations. -/// Get explanations for shard allocations in the cluster. -/// For unassigned shards, it provides an explanation for why the shard is unassigned. -/// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. -/// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. -/// -/// -public sealed partial class AllocationExplainRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterAllocationExplain; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "cluster.allocation_explain"; - - /// - /// - /// If true, returns information about disk usage and shard sizes. - /// - /// - [JsonIgnore] - public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } - - /// - /// - /// If true, returns YES decisions in explanation. - /// - /// - [JsonIgnore] - public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } - - /// - /// - /// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. - /// - /// - [JsonInclude, JsonPropertyName("current_node")] - public string? CurrentNode { get; set; } - - /// - /// - /// Specifies the name of the index that you would like an explanation for. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// If true, returns explanation for the primary shard for the given shard ID. - /// - /// - [JsonInclude, JsonPropertyName("primary")] - public bool? Primary { get; set; } - - /// - /// - /// Specifies the ID of the shard that you would like an explanation for. - /// - /// - [JsonInclude, JsonPropertyName("shard")] - public int? Shard { get; set; } -} - -/// -/// -/// Explain the shard allocations. -/// Get explanations for shard allocations in the cluster. -/// For unassigned shards, it provides an explanation for why the shard is unassigned. -/// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. -/// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. -/// -/// -public sealed partial class AllocationExplainRequestDescriptor : RequestDescriptor -{ - internal AllocationExplainRequestDescriptor(Action configure) => configure.Invoke(this); - - public AllocationExplainRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterAllocationExplain; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "cluster.allocation_explain"; - - public AllocationExplainRequestDescriptor IncludeDiskInfo(bool? includeDiskInfo = true) => Qs("include_disk_info", includeDiskInfo); - public AllocationExplainRequestDescriptor IncludeYesDecisions(bool? includeYesDecisions = true) => Qs("include_yes_decisions", includeYesDecisions); - - private string? CurrentNodeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private bool? PrimaryValue { get; set; } - private int? ShardValue { get; set; } - - /// - /// - /// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. - /// - /// - public AllocationExplainRequestDescriptor CurrentNode(string? currentNode) - { - CurrentNodeValue = currentNode; - return Self; - } - - /// - /// - /// Specifies the name of the index that you would like an explanation for. - /// - /// - public AllocationExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// If true, returns explanation for the primary shard for the given shard ID. - /// - /// - public AllocationExplainRequestDescriptor Primary(bool? primary = true) - { - PrimaryValue = primary; - return Self; - } - - /// - /// - /// Specifies the ID of the shard that you would like an explanation for. - /// - /// - public AllocationExplainRequestDescriptor Shard(int? shard) - { - ShardValue = shard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CurrentNodeValue)) - { - writer.WritePropertyName("current_node"); - writer.WriteStringValue(CurrentNodeValue); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (PrimaryValue.HasValue) - { - writer.WritePropertyName("primary"); - writer.WriteBooleanValue(PrimaryValue.Value); - } - - if (ShardValue.HasValue) - { - writer.WritePropertyName("shard"); - writer.WriteNumberValue(ShardValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainResponse.g.cs deleted file mode 100644 index ce1cf06e5b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/AllocationExplainResponse.g.cs +++ /dev/null @@ -1,81 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class AllocationExplainResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("allocate_explanation")] - public string? AllocateExplanation { get; init; } - [JsonInclude, JsonPropertyName("allocation_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? AllocationDelay { get; init; } - [JsonInclude, JsonPropertyName("allocation_delay_in_millis")] - public long? AllocationDelayInMillis { get; init; } - [JsonInclude, JsonPropertyName("can_allocate")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.Decision? CanAllocate { get; init; } - [JsonInclude, JsonPropertyName("can_move_to_other_node")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.Decision? CanMoveToOtherNode { get; init; } - [JsonInclude, JsonPropertyName("can_rebalance_cluster")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.Decision? CanRebalanceCluster { get; init; } - [JsonInclude, JsonPropertyName("can_rebalance_cluster_decisions")] - public IReadOnlyCollection? CanRebalanceClusterDecisions { get; init; } - [JsonInclude, JsonPropertyName("can_rebalance_to_other_node")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.Decision? CanRebalanceToOtherNode { get; init; } - [JsonInclude, JsonPropertyName("can_remain_decisions")] - public IReadOnlyCollection? CanRemainDecisions { get; init; } - [JsonInclude, JsonPropertyName("can_remain_on_current_node")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.Decision? CanRemainOnCurrentNode { get; init; } - [JsonInclude, JsonPropertyName("cluster_info")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterInfo? ClusterInfo { get; init; } - [JsonInclude, JsonPropertyName("configured_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ConfiguredDelay { get; init; } - [JsonInclude, JsonPropertyName("configured_delay_in_millis")] - public long? ConfiguredDelayInMillis { get; init; } - [JsonInclude, JsonPropertyName("current_node")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.CurrentNode? CurrentNode { get; init; } - [JsonInclude, JsonPropertyName("current_state")] - public string CurrentState { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("move_explanation")] - public string? MoveExplanation { get; init; } - [JsonInclude, JsonPropertyName("node_allocation_decisions")] - public IReadOnlyCollection? NodeAllocationDecisions { get; init; } - [JsonInclude, JsonPropertyName("note")] - public string? Note { get; init; } - [JsonInclude, JsonPropertyName("primary")] - public bool Primary { get; init; } - [JsonInclude, JsonPropertyName("rebalance_explanation")] - public string? RebalanceExplanation { get; init; } - [JsonInclude, JsonPropertyName("remaining_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? RemainingDelay { get; init; } - [JsonInclude, JsonPropertyName("remaining_delay_in_millis")] - public long? RemainingDelayInMillis { get; init; } - [JsonInclude, JsonPropertyName("shard")] - public int Shard { get; init; } - [JsonInclude, JsonPropertyName("unassigned_info")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.UnassignedInformation? UnassignedInfo { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 31f8239a78c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoRequest.g.cs +++ /dev/null @@ -1,89 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class ClusterInfoRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get cluster info. -/// Returns basic information about the cluster. -/// -/// -public sealed partial class ClusterInfoRequest : PlainRequest -{ - public ClusterInfoRequest(IReadOnlyCollection target) : base(r => r.Required("target", target)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.info"; -} - -/// -/// -/// Get cluster info. -/// Returns basic information about the cluster. -/// -/// -public sealed partial class ClusterInfoRequestDescriptor : RequestDescriptor -{ - internal ClusterInfoRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClusterInfoRequestDescriptor(IReadOnlyCollection target) : base(r => r.Required("target", target)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.info"; - - public ClusterInfoRequestDescriptor Target(IReadOnlyCollection target) - { - RouteValues.Required("target", target); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoResponse.g.cs deleted file mode 100644 index 6c4a5a88c82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterInfoResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class ClusterInfoResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Http? Http { get; init; } - [JsonInclude, JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Ingest? Ingest { get; init; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Scripting? Script { get; init; } - [JsonInclude, JsonPropertyName("thread_pool")] - public IReadOnlyDictionary? ThreadPool { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs deleted file mode 100644 index adcc13f8058..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsRequest.g.cs +++ /dev/null @@ -1,133 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class ClusterStatsRequestParameters : RequestParameters -{ - /// - /// - /// Include remote cluster data into the response - /// - /// - public bool? IncludeRemotes { get => Q("include_remotes"); set => Q("include_remotes", value); } - - /// - /// - /// Period to wait for each node to respond. - /// If a node does not respond before its timeout expires, the response does not include its stats. - /// However, timed out nodes are included in the response’s _nodes.failed property. Defaults to no timeout. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get cluster statistics. -/// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). -/// -/// -public sealed partial class ClusterStatsRequest : PlainRequest -{ - public ClusterStatsRequest() - { - } - - public ClusterStatsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.stats"; - - /// - /// - /// Include remote cluster data into the response - /// - /// - [JsonIgnore] - public bool? IncludeRemotes { get => Q("include_remotes"); set => Q("include_remotes", value); } - - /// - /// - /// Period to wait for each node to respond. - /// If a node does not respond before its timeout expires, the response does not include its stats. - /// However, timed out nodes are included in the response’s _nodes.failed property. Defaults to no timeout. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get cluster statistics. -/// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). -/// -/// -public sealed partial class ClusterStatsRequestDescriptor : RequestDescriptor -{ - internal ClusterStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClusterStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - public ClusterStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.stats"; - - public ClusterStatsRequestDescriptor IncludeRemotes(bool? includeRemotes = true) => Qs("include_remotes", includeRemotes); - public ClusterStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public ClusterStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsResponse.g.cs deleted file mode 100644 index 12d77b02a34..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ClusterStatsResponse.g.cs +++ /dev/null @@ -1,86 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class ClusterStatsResponse : ElasticsearchResponse -{ - /// - /// - /// Name of the cluster, based on the cluster name setting. - /// - /// - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - /// - /// - /// Unique identifier for the cluster. - /// - /// - [JsonInclude, JsonPropertyName("cluster_uuid")] - public string ClusterUuid { get; init; } - - /// - /// - /// Contains statistics about indices with shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterIndices Indices { get; init; } - - /// - /// - /// Contains statistics about nodes selected by the request’s node filters. - /// - /// - [JsonInclude, JsonPropertyName("nodes")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterNodes Nodes { get; init; } - - /// - /// - /// Contains statistics about the number of nodes selected by the request’s node filters. - /// - /// - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics? NodeStats { get; init; } - - /// - /// - /// Health status of the cluster, based on the state of its primary and replica shards. - /// - /// - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } - - /// - /// - /// Unix timestamp, in milliseconds, for the last time the cluster statistics were refreshed. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index b1deddeacbe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs +++ /dev/null @@ -1,127 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class DeleteComponentTemplateRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterDeleteComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.delete_component_template"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - internal DeleteComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterDeleteComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.delete_component_template"; - - public DeleteComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteComponentTemplateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs deleted file mode 100644 index e0f3c244fef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/DeleteComponentTemplateResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class DeleteComponentTemplateResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs deleted file mode 100644 index 93382cdfb0d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateRequest.g.cs +++ /dev/null @@ -1,127 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class ExistsComponentTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, the request retrieves information from the local node only. - /// Defaults to false, which means information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Check component templates. -/// Returns information about whether a particular component template exists. -/// -/// -public sealed partial class ExistsComponentTemplateRequest : PlainRequest -{ - public ExistsComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterExistsComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.exists_component_template"; - - /// - /// - /// If true, the request retrieves information from the local node only. - /// Defaults to false, which means information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Check component templates. -/// Returns information about whether a particular component template exists. -/// -/// -public sealed partial class ExistsComponentTemplateRequestDescriptor : RequestDescriptor -{ - internal ExistsComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterExistsComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.exists_component_template"; - - public ExistsComponentTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ExistsComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExistsComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateResponse.g.cs deleted file mode 100644 index b17b21afbd8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/ExistsComponentTemplateResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class ExistsComponentTemplateResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs deleted file mode 100644 index 18138758000..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs +++ /dev/null @@ -1,147 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class GetClusterSettingsRequestParameters : RequestParameters -{ - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If true, returns default cluster settings from the local node. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get cluster-wide settings. -/// By default, it returns only settings that have been explicitly defined. -/// -/// -public sealed partial class GetClusterSettingsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterGetSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.get_settings"; - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If true, returns default cluster settings from the local node. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get cluster-wide settings. -/// By default, it returns only settings that have been explicitly defined. -/// -/// -public sealed partial class GetClusterSettingsRequestDescriptor : RequestDescriptor -{ - internal GetClusterSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetClusterSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterGetSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.get_settings"; - - public GetClusterSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetClusterSettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetClusterSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetClusterSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs deleted file mode 100644 index 01f99ea2bce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class GetClusterSettingsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("defaults")] - public IReadOnlyDictionary? Defaults { get; init; } - [JsonInclude, JsonPropertyName("persistent")] - public IReadOnlyDictionary Persistent { get; init; } - [JsonInclude, JsonPropertyName("transient")] - public IReadOnlyDictionary Transient { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index fc9c79d5584..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs +++ /dev/null @@ -1,165 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class GetComponentTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// Return all default configurations for the component template (default: false) - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// If false, information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get component templates. -/// Retrieves information about component templates. -/// -/// -public sealed partial class GetComponentTemplateRequest : PlainRequest -{ - public GetComponentTemplateRequest() - { - } - - public GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterGetComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.get_component_template"; - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// Return all default configurations for the component template (default: false) - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// If false, information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get component templates. -/// Retrieves information about component templates. -/// -/// -public sealed partial class GetComponentTemplateRequestDescriptor : RequestDescriptor -{ - internal GetComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - public GetComponentTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterGetComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.get_component_template"; - - public GetComponentTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetComponentTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetComponentTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs deleted file mode 100644 index 949e435bcb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/GetComponentTemplateResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class GetComponentTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("component_templates")] - public IReadOnlyCollection ComponentTemplates { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs deleted file mode 100644 index 935701c3aa5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthRequest.g.cs +++ /dev/null @@ -1,352 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class HealthRequestParameters : RequestParameters -{ - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Can be one of cluster, indices or shards. Controls the details level of the health information returned. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Level? Level { get => Q("level"); set => Q("level", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// A number controlling to how many active shards to wait for, all to wait for all shards in the cluster to be active, or 0 to not wait. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForEvents? WaitForEvents { get => Q("wait_for_events"); set => Q("wait_for_events", value); } - - /// - /// - /// The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and <N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation. - /// - /// - public object? WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } - - /// - /// - /// A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard initializations. Defaults to false, which means it will not wait for initializing shards. - /// - /// - public bool? WaitForNoInitializingShards { get => Q("wait_for_no_initializing_shards"); set => Q("wait_for_no_initializing_shards", value); } - - /// - /// - /// A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard relocations. Defaults to false, which means it will not wait for relocating shards. - /// - /// - public bool? WaitForNoRelocatingShards { get => Q("wait_for_no_relocating_shards"); set => Q("wait_for_no_relocating_shards", value); } - - /// - /// - /// One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus? WaitForStatus { get => Q("wait_for_status"); set => Q("wait_for_status", value); } -} - -/// -/// -/// Get the cluster health status. -/// You can also use the API to get the health status of only specified data streams and indices. -/// For data streams, the API retrieves the health status of the stream’s backing indices. -/// -/// -/// The cluster health status is: green, yellow or red. -/// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. -/// The index level status is controlled by the worst shard status. -/// -/// -/// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. -/// The cluster status is controlled by the worst index status. -/// -/// -public sealed partial class HealthRequest : PlainRequest -{ - public HealthRequest() - { - } - - public HealthRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterHealth; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.health"; - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Can be one of cluster, indices or shards. Controls the details level of the health information returned. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Level? Level { get => Q("level"); set => Q("level", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// A number controlling to how many active shards to wait for, all to wait for all shards in the cluster to be active, or 0 to not wait. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForEvents? WaitForEvents { get => Q("wait_for_events"); set => Q("wait_for_events", value); } - - /// - /// - /// The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and <N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation. - /// - /// - [JsonIgnore] - public object? WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } - - /// - /// - /// A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard initializations. Defaults to false, which means it will not wait for initializing shards. - /// - /// - [JsonIgnore] - public bool? WaitForNoInitializingShards { get => Q("wait_for_no_initializing_shards"); set => Q("wait_for_no_initializing_shards", value); } - - /// - /// - /// A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard relocations. Defaults to false, which means it will not wait for relocating shards. - /// - /// - [JsonIgnore] - public bool? WaitForNoRelocatingShards { get => Q("wait_for_no_relocating_shards"); set => Q("wait_for_no_relocating_shards", value); } - - /// - /// - /// One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green > yellow > red. By default, will not wait for any status. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus? WaitForStatus { get => Q("wait_for_status"); set => Q("wait_for_status", value); } -} - -/// -/// -/// Get the cluster health status. -/// You can also use the API to get the health status of only specified data streams and indices. -/// For data streams, the API retrieves the health status of the stream’s backing indices. -/// -/// -/// The cluster health status is: green, yellow or red. -/// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. -/// The index level status is controlled by the worst shard status. -/// -/// -/// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. -/// The cluster status is controlled by the worst index status. -/// -/// -public sealed partial class HealthRequestDescriptor : RequestDescriptor, HealthRequestParameters> -{ - internal HealthRequestDescriptor(Action> configure) => configure.Invoke(this); - - public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public HealthRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterHealth; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.health"; - - public HealthRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public HealthRequestDescriptor Level(Elastic.Clients.Elasticsearch.Serverless.Level? level) => Qs("level", level); - public HealthRequestDescriptor Local(bool? local = true) => Qs("local", local); - public HealthRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public HealthRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public HealthRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public HealthRequestDescriptor WaitForEvents(Elastic.Clients.Elasticsearch.Serverless.WaitForEvents? waitForEvents) => Qs("wait_for_events", waitForEvents); - public HealthRequestDescriptor WaitForNodes(object? waitForNodes) => Qs("wait_for_nodes", waitForNodes); - public HealthRequestDescriptor WaitForNoInitializingShards(bool? waitForNoInitializingShards = true) => Qs("wait_for_no_initializing_shards", waitForNoInitializingShards); - public HealthRequestDescriptor WaitForNoRelocatingShards(bool? waitForNoRelocatingShards = true) => Qs("wait_for_no_relocating_shards", waitForNoRelocatingShards); - public HealthRequestDescriptor WaitForStatus(Elastic.Clients.Elasticsearch.Serverless.HealthStatus? waitForStatus) => Qs("wait_for_status", waitForStatus); - - public HealthRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get the cluster health status. -/// You can also use the API to get the health status of only specified data streams and indices. -/// For data streams, the API retrieves the health status of the stream’s backing indices. -/// -/// -/// The cluster health status is: green, yellow or red. -/// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. -/// The index level status is controlled by the worst shard status. -/// -/// -/// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. -/// The cluster status is controlled by the worst index status. -/// -/// -public sealed partial class HealthRequestDescriptor : RequestDescriptor -{ - internal HealthRequestDescriptor(Action configure) => configure.Invoke(this); - - public HealthRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public HealthRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterHealth; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.health"; - - public HealthRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public HealthRequestDescriptor Level(Elastic.Clients.Elasticsearch.Serverless.Level? level) => Qs("level", level); - public HealthRequestDescriptor Local(bool? local = true) => Qs("local", local); - public HealthRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public HealthRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public HealthRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public HealthRequestDescriptor WaitForEvents(Elastic.Clients.Elasticsearch.Serverless.WaitForEvents? waitForEvents) => Qs("wait_for_events", waitForEvents); - public HealthRequestDescriptor WaitForNodes(object? waitForNodes) => Qs("wait_for_nodes", waitForNodes); - public HealthRequestDescriptor WaitForNoInitializingShards(bool? waitForNoInitializingShards = true) => Qs("wait_for_no_initializing_shards", waitForNoInitializingShards); - public HealthRequestDescriptor WaitForNoRelocatingShards(bool? waitForNoRelocatingShards = true) => Qs("wait_for_no_relocating_shards", waitForNoRelocatingShards); - public HealthRequestDescriptor WaitForStatus(Elastic.Clients.Elasticsearch.Serverless.HealthStatus? waitForStatus) => Qs("wait_for_status", waitForStatus); - - public HealthRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs deleted file mode 100644 index 609d064dd95..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/HealthResponse.g.cs +++ /dev/null @@ -1,163 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class HealthResponse : ElasticsearchResponse -{ - /// - /// - /// The number of active primary shards. - /// - /// - [JsonInclude, JsonPropertyName("active_primary_shards")] - public int ActivePrimaryShards { get; init; } - - /// - /// - /// The total number of active primary and replica shards. - /// - /// - [JsonInclude, JsonPropertyName("active_shards")] - public int ActiveShards { get; init; } - - /// - /// - /// The ratio of active shards in the cluster expressed as a percentage. - /// - /// - [JsonInclude, JsonPropertyName("active_shards_percent_as_number")] - public double ActiveShardsPercentAsNumber { get; init; } - - /// - /// - /// The name of the cluster. - /// - /// - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - - /// - /// - /// The number of shards whose allocation has been delayed by the timeout settings. - /// - /// - [JsonInclude, JsonPropertyName("delayed_unassigned_shards")] - public int DelayedUnassignedShards { get; init; } - [JsonInclude, JsonPropertyName("indices")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Cluster.IndexHealthStats))] - public IReadOnlyDictionary? Indices { get; init; } - - /// - /// - /// The number of shards that are under initialization. - /// - /// - [JsonInclude, JsonPropertyName("initializing_shards")] - public int InitializingShards { get; init; } - - /// - /// - /// The number of nodes that are dedicated data nodes. - /// - /// - [JsonInclude, JsonPropertyName("number_of_data_nodes")] - public int NumberOfDataNodes { get; init; } - - /// - /// - /// The number of unfinished fetches. - /// - /// - [JsonInclude, JsonPropertyName("number_of_in_flight_fetch")] - public int NumberOfInFlightFetch { get; init; } - - /// - /// - /// The number of nodes within the cluster. - /// - /// - [JsonInclude, JsonPropertyName("number_of_nodes")] - public int NumberOfNodes { get; init; } - - /// - /// - /// The number of cluster-level changes that have not yet been executed. - /// - /// - [JsonInclude, JsonPropertyName("number_of_pending_tasks")] - public int NumberOfPendingTasks { get; init; } - - /// - /// - /// The number of shards that are under relocation. - /// - /// - [JsonInclude, JsonPropertyName("relocating_shards")] - public int RelocatingShards { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } - - /// - /// - /// The time since the earliest initiated task is waiting for being performed. - /// - /// - [JsonInclude, JsonPropertyName("task_max_waiting_in_queue")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TaskMaxWaitingInQueue { get; init; } - - /// - /// - /// The time expressed in milliseconds since the earliest initiated task is waiting for being performed. - /// - /// - [JsonInclude, JsonPropertyName("task_max_waiting_in_queue_millis")] - public long TaskMaxWaitingInQueueMillis { get; init; } - - /// - /// - /// If false the response returned within the period of time that is specified by the timeout parameter (30s by default) - /// - /// - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - - /// - /// - /// The number of primary shards that are not allocated. - /// - /// - [JsonInclude, JsonPropertyName("unassigned_primary_shards")] - public int UnassignedPrimaryShards { get; init; } - - /// - /// - /// The number of shards that are not allocated. - /// - /// - [JsonInclude, JsonPropertyName("unassigned_shards")] - public int UnassignedShards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs deleted file mode 100644 index 0d272d928cc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksRequest.g.cs +++ /dev/null @@ -1,125 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class PendingTasksRequestParameters : RequestParameters -{ - /// - /// - /// If true, the request retrieves information from the local node only. - /// If false, information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get the pending cluster tasks. -/// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. -/// -/// -/// NOTE: This API returns a list of any pending updates to the cluster state. -/// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. -/// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. -/// -/// -public sealed partial class PendingTasksRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPendingTasks; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.pending_tasks"; - - /// - /// - /// If true, the request retrieves information from the local node only. - /// If false, information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get the pending cluster tasks. -/// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. -/// -/// -/// NOTE: This API returns a list of any pending updates to the cluster state. -/// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. -/// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. -/// -/// -public sealed partial class PendingTasksRequestDescriptor : RequestDescriptor -{ - internal PendingTasksRequestDescriptor(Action configure) => configure.Invoke(this); - - public PendingTasksRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPendingTasks; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "cluster.pending_tasks"; - - public PendingTasksRequestDescriptor Local(bool? local = true) => Qs("local", local); - public PendingTasksRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksResponse.g.cs deleted file mode 100644 index d4cd024db8e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PendingTasksResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class PendingTasksResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("tasks")] - public IReadOnlyCollection Tasks { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 010a9dead81..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs +++ /dev/null @@ -1,473 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class PutComponentTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, this request cannot replace or update existing component templates. - /// - /// - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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. -/// -/// -/// You can use C-style /* *\/ block comments in component templates. -/// You can include comments anywhere in the request body except before the opening curly bracket. -/// -/// -public sealed partial class PutComponentTemplateRequest : PlainRequest -{ - public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPutComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "cluster.put_component_template"; - - /// - /// - /// If true, this request cannot replace or update existing component templates. - /// - /// - [JsonIgnore] - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; set; } - - /// - /// - /// Optional user metadata about the component template. - /// May have any contents. This map is not automatically generated by Elasticsearch. - /// This information is stored in the cluster state, so keeping it short is preferable. - /// To unset _meta, replace the template without specifying this information. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// The template to be applied which includes mappings, settings, or aliases configuration. - /// - /// - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState Template { get; set; } - - /// - /// - /// Version number used to manage component templates externally. - /// This number isn't automatically generated or incremented by Elasticsearch. - /// To unset a version, replace the template without specifying a version. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } -} - -/// -/// -/// 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. -/// -/// -/// You can use C-style /* *\/ block comments in component templates. -/// You can include comments anywhere in the request body except before the opening curly bracket. -/// -/// -public sealed partial class PutComponentTemplateRequestDescriptor : RequestDescriptor, PutComponentTemplateRequestParameters> -{ - internal PutComponentTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPutComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "cluster.put_component_template"; - - public PutComponentTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public PutComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public PutComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private bool? DeprecatedValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor TemplateDescriptor { get; set; } - private Action> TemplateDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - public PutComponentTemplateRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// Optional user metadata about the component template. - /// May have any contents. This map is not automatically generated by Elasticsearch. - /// This information is stored in the cluster state, so keeping it short is preferable. - /// To unset _meta, replace the template without specifying this information. - /// - /// - public PutComponentTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The template to be applied which includes mappings, settings, or aliases configuration. - /// - /// - public PutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public PutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public PutComponentTemplateRequestDescriptor Template(Action> configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage component templates externally. - /// This number isn't automatically generated or incremented by Elasticsearch. - /// To unset a version, replace the template without specifying a version. - /// - /// - public PutComponentTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor(TemplateDescriptorAction), options); - } - else - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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. -/// -/// -/// You can use C-style /* *\/ block comments in component templates. -/// You can include comments anywhere in the request body except before the opening curly bracket. -/// -/// -public sealed partial class PutComponentTemplateRequestDescriptor : RequestDescriptor -{ - internal PutComponentTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutComponentTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPutComponentTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "cluster.put_component_template"; - - public PutComponentTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public PutComponentTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public PutComponentTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private bool? DeprecatedValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - public PutComponentTemplateRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// Optional user metadata about the component template. - /// May have any contents. This map is not automatically generated by Elasticsearch. - /// This information is stored in the cluster state, so keeping it short is preferable. - /// To unset _meta, replace the template without specifying this information. - /// - /// - public PutComponentTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The template to be applied which includes mappings, settings, or aliases configuration. - /// - /// - public PutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public PutComponentTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public PutComponentTemplateRequestDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage component templates externally. - /// This number isn't automatically generated or incremented by Elasticsearch. - /// To unset a version, replace the template without specifying a version. - /// - /// - public PutComponentTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStateDescriptor(TemplateDescriptorAction), options); - } - else - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs deleted file mode 100644 index 6b23a00a031..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Cluster/PutComponentTemplateResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public sealed partial class PutComponentTemplateResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs deleted file mode 100644 index 5e91835c79f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs +++ /dev/null @@ -1,503 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 CountRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Sets the minimum _score value that documents must have to be included in the result. - /// - /// - public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// - /// - public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } -} - -/// -/// -/// Count search results. -/// Get the number of documents matching a query. -/// -/// -public partial class CountRequest : PlainRequest -{ - public CountRequest() - { - } - - public CountRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceCount; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "count"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Sets the minimum _score value that documents must have to be included in the result. - /// - /// - [JsonIgnore] - public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// - /// - [JsonIgnore] - public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } -} - -/// -/// -/// Count search results. -/// Get the number of documents matching a query. -/// -/// -public sealed partial class CountRequestDescriptor : RequestDescriptor, CountRequestParameters> -{ - internal CountRequestDescriptor(Action> configure) => configure.Invoke(this); - - public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public CountRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceCount; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "count"; - - public CountRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public CountRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public CountRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public CountRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public CountRequestDescriptor Df(string? df) => Qs("df", df); - public CountRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public CountRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public CountRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public CountRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public CountRequestDescriptor MinScore(double? minScore) => Qs("min_score", minScore); - public CountRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public CountRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public CountRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public CountRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - - public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public CountRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Count search results. -/// Get the number of documents matching a query. -/// -/// -public sealed partial class CountRequestDescriptor : RequestDescriptor -{ - internal CountRequestDescriptor(Action configure) => configure.Invoke(this); - - public CountRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public CountRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceCount; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "count"; - - public CountRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public CountRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public CountRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public CountRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public CountRequestDescriptor Df(string? df) => Qs("df", df); - public CountRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public CountRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public CountRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public CountRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public CountRequestDescriptor MinScore(double? minScore) => Qs("min_score", minScore); - public CountRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public CountRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public CountRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public CountRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - - public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public CountRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountResponse.g.cs deleted file mode 100644 index f5f128d25bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class CountResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs deleted file mode 100644 index effdf74767f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs +++ /dev/null @@ -1,244 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 CreateRequestParameters : RequestParameters -{ - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// 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 -{ - public CreateRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "create"; - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - [JsonIgnore] - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - [JsonIgnore] - public TDocument Document { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - settings.SourceSerializer.Serialize(Document, writer); - } -} - -/// -/// -/// 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> -{ - internal CreateRequestDescriptor(Action> configure) => configure.Invoke(this); - public CreateRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) => DocumentValue = document; - - public CreateRequestDescriptor(TDocument document) : this(document, typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public CreateRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(document, index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public CreateRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(document, typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "create"; - - public CreateRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); - public CreateRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public CreateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public CreateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public CreateRequestDescriptor Version(long? version) => Qs("version", version); - public CreateRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - public CreateRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public CreateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public CreateRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private TDocument DocumentValue { get; set; } - - public CreateRequestDescriptor Document(TDocument document) - { - DocumentValue = document; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - settings.SourceSerializer.Serialize(DocumentValue, writer); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateResponse.g.cs deleted file mode 100644 index 17ad3a8848c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateResponse.g.cs +++ /dev/null @@ -1,47 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class CreateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("forced_refresh")] - public bool? ForcedRefresh { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs deleted file mode 100644 index 3d339e7542c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs +++ /dev/null @@ -1,891 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 DeleteByQueryRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Analyzer to use for the query string. - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// What to do if delete by query hits version conflicts: abort or proceed. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Starting offset (default: 0) - /// - /// - public long? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the request cache is used for this request. - /// Defaults to the index-level setting. - /// - /// - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to retain the search context for scrolling. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// Size of the scroll request that powers the operation. - /// - /// - public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - - /// - /// - /// Explicit timeout for each search request. - /// Defaults to no timeout. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } - - /// - /// - /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// The number of slices this task should be divided into. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } - - /// - /// - /// Specific tag of the request for logging and statistical purposes. - /// - /// - public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// - /// - public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } - - /// - /// - /// Period each deletion request waits for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public bool? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If true, the request blocks until the operation is complete. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Delete documents. -/// Deletes documents that match the specified query. -/// -/// -public sealed partial class DeleteByQueryRequest : PlainRequest -{ - public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "delete_by_query"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Analyzer to use for the query string. - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// What to do if delete by query hits version conflicts: abort or proceed. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Starting offset (default: 0) - /// - /// - [JsonIgnore] - public long? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the request cache is used for this request. - /// Defaults to the index-level setting. - /// - /// - [JsonIgnore] - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - [JsonIgnore] - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to retain the search context for scrolling. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// Size of the scroll request that powers the operation. - /// - /// - [JsonIgnore] - public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - - /// - /// - /// Explicit timeout for each search request. - /// Defaults to no timeout. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } - - /// - /// - /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// The number of slices this task should be divided into. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - [JsonIgnore] - public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } - - /// - /// - /// Specific tag of the request for logging and statistical purposes. - /// - /// - [JsonIgnore] - public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// - /// - [JsonIgnore] - public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } - - /// - /// - /// Period each deletion request waits for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - [JsonIgnore] - public bool? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If true, the request blocks until the operation is complete. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - /// - /// - /// The maximum number of documents to delete. - /// - /// - [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; set; } - - /// - /// - /// Specifies the documents to delete using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Slice the request manually using the provided slice ID and total number of slices. - /// - /// - [JsonInclude, JsonPropertyName("slice")] - public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } -} - -/// -/// -/// Delete documents. -/// Deletes documents that match the specified query. -/// -/// -public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor, DeleteByQueryRequestParameters> -{ - internal DeleteByQueryRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public DeleteByQueryRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "delete_by_query"; - - public DeleteByQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DeleteByQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public DeleteByQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public DeleteByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) => Qs("conflicts", conflicts); - public DeleteByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public DeleteByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public DeleteByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DeleteByQueryRequestDescriptor From(long? from) => Qs("from", from); - public DeleteByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public DeleteByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public DeleteByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public DeleteByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public DeleteByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public DeleteByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public DeleteByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - public DeleteByQueryRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public DeleteByQueryRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public DeleteByQueryRequestDescriptor ScrollSize(long? scrollSize) => Qs("scroll_size", scrollSize); - public DeleteByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); - public DeleteByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public DeleteByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); - public DeleteByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); - public DeleteByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); - public DeleteByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - public DeleteByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public DeleteByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); - public DeleteByQueryRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public DeleteByQueryRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private long? MaxDocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { 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; } - - /// - /// - /// The maximum number of documents to delete. - /// - /// - public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - /// - /// - /// Specifies the documents to delete using the Query DSL. - /// - /// - public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DeleteByQueryRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Slice the request manually using the provided slice ID and total number of slices. - /// - /// - public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public DeleteByQueryRequestDescriptor Slice(Action> configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Delete documents. -/// Deletes documents that match the specified query. -/// -/// -public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor -{ - internal DeleteByQueryRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "delete_by_query"; - - public DeleteByQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DeleteByQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public DeleteByQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public DeleteByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) => Qs("conflicts", conflicts); - public DeleteByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public DeleteByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public DeleteByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DeleteByQueryRequestDescriptor From(long? from) => Qs("from", from); - public DeleteByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public DeleteByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public DeleteByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public DeleteByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public DeleteByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public DeleteByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public DeleteByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - public DeleteByQueryRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public DeleteByQueryRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public DeleteByQueryRequestDescriptor ScrollSize(long? scrollSize) => Qs("scroll_size", scrollSize); - public DeleteByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); - public DeleteByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public DeleteByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); - public DeleteByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); - public DeleteByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); - public DeleteByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - public DeleteByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public DeleteByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); - public DeleteByQueryRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public DeleteByQueryRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private long? MaxDocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { 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; } - - /// - /// - /// The maximum number of documents to delete. - /// - /// - public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - /// - /// - /// Specifies the documents to delete using the Query DSL. - /// - /// - public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DeleteByQueryRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Slice the request manually using the provided slice ID and total number of slices. - /// - /// - public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public DeleteByQueryRequestDescriptor Slice(Action configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryResponse.g.cs deleted file mode 100644 index a8cb2a4cddf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryResponse.g.cs +++ /dev/null @@ -1,63 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class DeleteByQueryResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("batches")] - public long? Batches { get; init; } - [JsonInclude, JsonPropertyName("deleted")] - public long? Deleted { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - [JsonInclude, JsonPropertyName("noops")] - public long? Noops { get; init; } - [JsonInclude, JsonPropertyName("requests_per_second")] - public float? RequestsPerSecond { get; init; } - [JsonInclude, JsonPropertyName("retries")] - public Elastic.Clients.Elasticsearch.Serverless.Retries? Retries { get; init; } - [JsonInclude, JsonPropertyName("slice_id")] - public int? SliceId { get; init; } - [JsonInclude, JsonPropertyName("task")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? Task { get; init; } - [JsonInclude, JsonPropertyName("throttled")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Throttled { get; init; } - [JsonInclude, JsonPropertyName("throttled_millis")] - public long? ThrottledMillis { get; init; } - [JsonInclude, JsonPropertyName("throttled_until")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ThrottledUntil { get; init; } - [JsonInclude, JsonPropertyName("throttled_until_millis")] - public long? ThrottledUntilMillis { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool? TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long? Total { get; init; } - [JsonInclude, JsonPropertyName("version_conflicts")] - public long? VersionConflicts { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs deleted file mode 100644 index 4b332640fe0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -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 DeleteByQueryRethrottleRequestParameters : RequestParameters -{ - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } -} - -/// -/// -/// Throttle a delete by query operation. -/// -/// -/// Change the number of requests per second for a particular delete by query operation. -/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. -/// -/// -public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest -{ - public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.TaskId taskId) : base(r => r.Required("task_id", taskId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQueryRethrottle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete_by_query_rethrottle"; - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - [JsonIgnore] - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } -} - -/// -/// -/// Throttle a delete by query operation. -/// -/// -/// Change the number of requests per second for a particular delete by query operation. -/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. -/// -/// -public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor -{ - internal DeleteByQueryRethrottleRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteByQueryRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.TaskId taskId) : base(r => r.Required("task_id", taskId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQueryRethrottle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete_by_query_rethrottle"; - - public DeleteByQueryRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - - public DeleteByQueryRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.TaskId taskId) - { - RouteValues.Required("task_id", taskId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs deleted file mode 100644 index 8873be7f541..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs +++ /dev/null @@ -1,52 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class DeleteByQueryRethrottleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("node_failures")] - public IReadOnlyCollection? NodeFailures { get; init; } - - /// - /// - /// Task information grouped by node, if group_by was set to node (the default). - /// - /// - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary? Nodes { get; init; } - [JsonInclude, JsonPropertyName("task_failures")] - public IReadOnlyCollection? TaskFailures { get; init; } - - /// - /// - /// Either a flat list of tasks if group_by was set to none, or grouped by parents if - /// group_by was set to parents. - /// - /// - [JsonInclude, JsonPropertyName("tasks")] - public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfos? Tasks { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs deleted file mode 100644 index 2aad452164c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs +++ /dev/null @@ -1,293 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 DeleteRequestParameters : RequestParameters -{ - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to wait for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Delete a document. -/// Removes a JSON document from the specified index. -/// -/// -public partial class DeleteRequest : PlainRequest -{ - public DeleteRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete"; - - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - [JsonIgnore] - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - [JsonIgnore] - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to wait for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Delete a document. -/// Removes a JSON document from the specified index. -/// -/// -public sealed partial class DeleteRequestDescriptor : RequestDescriptor, DeleteRequestParameters> -{ - internal DeleteRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public DeleteRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public DeleteRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public DeleteRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public DeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete"; - - public DeleteRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); - public DeleteRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); - public DeleteRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public DeleteRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public DeleteRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public DeleteRequestDescriptor Version(long? version) => Qs("version", version); - public DeleteRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - public DeleteRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public DeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public DeleteRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete a document. -/// Removes a JSON document from the specified index. -/// -/// -public sealed partial class DeleteRequestDescriptor : RequestDescriptor -{ - internal DeleteRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete"; - - public DeleteRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); - public DeleteRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); - public DeleteRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public DeleteRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public DeleteRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public DeleteRequestDescriptor Version(long? version) => Qs("version", version); - public DeleteRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - public DeleteRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public DeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public DeleteRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteResponse.g.cs deleted file mode 100644 index 14f7602e577..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteResponse.g.cs +++ /dev/null @@ -1,47 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class DeleteResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("forced_refresh")] - public bool? ForcedRefresh { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs deleted file mode 100644 index 3f00760dcc2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs +++ /dev/null @@ -1,161 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 DeleteScriptRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete a script or search template. -/// Deletes a stored script or search template. -/// -/// -public sealed partial class DeleteScriptRequest : PlainRequest -{ - public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete_script"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete a script or search template. -/// Deletes a stored script or search template. -/// -/// -public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor, DeleteScriptRequestParameters> -{ - internal DeleteScriptRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete_script"; - - public DeleteScriptRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteScriptRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete a script or search template. -/// Deletes a stored script or search template. -/// -/// -public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor -{ - internal DeleteScriptRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "delete_script"; - - public DeleteScriptRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteScriptRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptResponse.g.cs deleted file mode 100644 index a12cef4ef93..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class DeleteScriptResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs deleted file mode 100644 index 6ea6f518ad4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyRequest.g.cs +++ /dev/null @@ -1,89 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class DeletePolicyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete an enrich policy. -/// Deletes an existing enrich policy and its enrich index. -/// -/// -public sealed partial class DeletePolicyRequest : PlainRequest -{ - public DeletePolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichDeletePolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.delete_policy"; -} - -/// -/// -/// Delete an enrich policy. -/// Deletes an existing enrich policy and its enrich index. -/// -/// -public sealed partial class DeletePolicyRequestDescriptor : RequestDescriptor -{ - internal DeletePolicyRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeletePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichDeletePolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.delete_policy"; - - public DeletePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyResponse.g.cs deleted file mode 100644 index ddcc0a34a0c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/DeletePolicyResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class DeletePolicyResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs deleted file mode 100644 index 1941f7b01c8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ /dev/null @@ -1,79 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class EnrichStatsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get enrich stats. -/// Returns enrich coordinator statistics and information about enrich policies that are currently executing. -/// -/// -public sealed partial class EnrichStatsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.stats"; -} - -/// -/// -/// Get enrich stats. -/// Returns enrich coordinator statistics and information about enrich policies that are currently executing. -/// -/// -public sealed partial class EnrichStatsRequestDescriptor : RequestDescriptor -{ - internal EnrichStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public EnrichStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.stats"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsResponse.g.cs deleted file mode 100644 index 8bfd8cf71e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/EnrichStatsResponse.g.cs +++ /dev/null @@ -1,54 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class EnrichStatsResponse : ElasticsearchResponse -{ - /// - /// - /// Objects containing information about the enrich cache stats on each ingest node. - /// - /// - [JsonInclude, JsonPropertyName("cache_stats")] - public IReadOnlyCollection? CacheStats { get; init; } - - /// - /// - /// Objects containing information about each coordinating ingest node for configured enrich processors. - /// - /// - [JsonInclude, JsonPropertyName("coordinator_stats")] - public IReadOnlyCollection CoordinatorStats { get; init; } - - /// - /// - /// Objects containing information about each enrich policy that is currently executing. - /// - /// - [JsonInclude, JsonPropertyName("executing_policies")] - public IReadOnlyCollection ExecutingPolicies { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs deleted file mode 100644 index e99a7fa485a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class ExecutePolicyRequestParameters : RequestParameters -{ - /// - /// - /// If true, the request blocks other enrich policy execution requests until complete. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Run an enrich policy. -/// Create the enrich index for an existing enrich policy. -/// -/// -public sealed partial class ExecutePolicyRequest : PlainRequest -{ - public ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichExecutePolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.execute_policy"; - - /// - /// - /// If true, the request blocks other enrich policy execution requests until complete. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Run an enrich policy. -/// Create the enrich index for an existing enrich policy. -/// -/// -public sealed partial class ExecutePolicyRequestDescriptor : RequestDescriptor -{ - internal ExecutePolicyRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExecutePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichExecutePolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.execute_policy"; - - public ExecutePolicyRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public ExecutePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs deleted file mode 100644 index 456ddb5ba4f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class ExecutePolicyResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Enrich.ExecuteEnrichPolicyStatus? Status { get; init; } - [JsonInclude, JsonPropertyName("task_id")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? TaskId { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 18a6f0883de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyRequest.g.cs +++ /dev/null @@ -1,97 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class GetPolicyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get an enrich policy. -/// Returns information about an enrich policy. -/// -/// -public sealed partial class GetPolicyRequest : PlainRequest -{ - public GetPolicyRequest() - { - } - - public GetPolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichGetPolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.get_policy"; -} - -/// -/// -/// Get an enrich policy. -/// Returns information about an enrich policy. -/// -/// -public sealed partial class GetPolicyRequestDescriptor : RequestDescriptor -{ - internal GetPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - public GetPolicyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichGetPolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "enrich.get_policy"; - - public GetPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyResponse.g.cs deleted file mode 100644 index a6859836745..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/GetPolicyResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class GetPolicyResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("policies")] - public IReadOnlyCollection Policies { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 2b519e863af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyRequest.g.cs +++ /dev/null @@ -1,440 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class PutPolicyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create an enrich policy. -/// Creates an enrich policy. -/// -/// -public sealed partial class PutPolicyRequest : PlainRequest -{ - public PutPolicyRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichPutPolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "enrich.put_policy"; - - /// - /// - /// Matches enrich data to incoming documents based on a geo_shape query. - /// - /// - [JsonInclude, JsonPropertyName("geo_match")] - public Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? GeoMatch { get; set; } - - /// - /// - /// Matches enrich data to incoming documents based on a term query. - /// - /// - [JsonInclude, JsonPropertyName("match")] - public Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? Match { get; set; } - - /// - /// - /// Matches a number, date, or IP address in incoming documents to a range in the enrich index based on a term query. - /// - /// - [JsonInclude, JsonPropertyName("range")] - public Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? Range { get; set; } -} - -/// -/// -/// Create an enrich policy. -/// Creates an enrich policy. -/// -/// -public sealed partial class PutPolicyRequestDescriptor : RequestDescriptor, PutPolicyRequestParameters> -{ - internal PutPolicyRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichPutPolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "enrich.put_policy"; - - public PutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? GeoMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor GeoMatchDescriptor { get; set; } - private Action> GeoMatchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? MatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor MatchDescriptor { get; set; } - private Action> MatchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? RangeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor RangeDescriptor { get; set; } - private Action> RangeDescriptorAction { get; set; } - - /// - /// - /// Matches enrich data to incoming documents based on a geo_shape query. - /// - /// - public PutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? geoMatch) - { - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = null; - GeoMatchValue = geoMatch; - return Self; - } - - public PutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor descriptor) - { - GeoMatchValue = null; - GeoMatchDescriptorAction = null; - GeoMatchDescriptor = descriptor; - return Self; - } - - public PutPolicyRequestDescriptor GeoMatch(Action> configure) - { - GeoMatchValue = null; - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = configure; - return Self; - } - - /// - /// - /// Matches enrich data to incoming documents based on a term query. - /// - /// - public PutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public PutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public PutPolicyRequestDescriptor Match(Action> configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - /// - /// - /// Matches a number, date, or IP address in incoming documents to a range in the enrich index based on a term query. - /// - /// - public PutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? range) - { - RangeDescriptor = null; - RangeDescriptorAction = null; - RangeValue = range; - return Self; - } - - public PutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor descriptor) - { - RangeValue = null; - RangeDescriptorAction = null; - RangeDescriptor = descriptor; - return Self; - } - - public PutPolicyRequestDescriptor Range(Action> configure) - { - RangeValue = null; - RangeDescriptor = null; - RangeDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (GeoMatchDescriptor is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchDescriptor, options); - } - else if (GeoMatchDescriptorAction is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor(GeoMatchDescriptorAction), options); - } - else if (GeoMatchValue is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchValue, options); - } - - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor(MatchDescriptorAction), options); - } - else if (MatchValue is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - if (RangeDescriptor is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeDescriptor, options); - } - else if (RangeDescriptorAction is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor(RangeDescriptorAction), options); - } - else if (RangeValue is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create an enrich policy. -/// Creates an enrich policy. -/// -/// -public sealed partial class PutPolicyRequestDescriptor : RequestDescriptor -{ - internal PutPolicyRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichPutPolicy; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "enrich.put_policy"; - - public PutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? GeoMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor GeoMatchDescriptor { get; set; } - private Action GeoMatchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? MatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor MatchDescriptor { get; set; } - private Action MatchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? RangeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor RangeDescriptor { get; set; } - private Action RangeDescriptorAction { get; set; } - - /// - /// - /// Matches enrich data to incoming documents based on a geo_shape query. - /// - /// - public PutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? geoMatch) - { - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = null; - GeoMatchValue = geoMatch; - return Self; - } - - public PutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor descriptor) - { - GeoMatchValue = null; - GeoMatchDescriptorAction = null; - GeoMatchDescriptor = descriptor; - return Self; - } - - public PutPolicyRequestDescriptor GeoMatch(Action configure) - { - GeoMatchValue = null; - GeoMatchDescriptor = null; - GeoMatchDescriptorAction = configure; - return Self; - } - - /// - /// - /// Matches enrich data to incoming documents based on a term query. - /// - /// - public PutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public PutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public PutPolicyRequestDescriptor Match(Action configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - /// - /// - /// Matches a number, date, or IP address in incoming documents to a range in the enrich index based on a term query. - /// - /// - public PutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicy? range) - { - RangeDescriptor = null; - RangeDescriptorAction = null; - RangeValue = range; - return Self; - } - - public PutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor descriptor) - { - RangeValue = null; - RangeDescriptorAction = null; - RangeDescriptor = descriptor; - return Self; - } - - public PutPolicyRequestDescriptor Range(Action configure) - { - RangeValue = null; - RangeDescriptor = null; - RangeDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (GeoMatchDescriptor is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchDescriptor, options); - } - else if (GeoMatchDescriptorAction is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor(GeoMatchDescriptorAction), options); - } - else if (GeoMatchValue is not null) - { - writer.WritePropertyName("geo_match"); - JsonSerializer.Serialize(writer, GeoMatchValue, options); - } - - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor(MatchDescriptorAction), options); - } - else if (MatchValue is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - if (RangeDescriptor is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeDescriptor, options); - } - else if (RangeDescriptorAction is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyDescriptor(RangeDescriptorAction), options); - } - else if (RangeValue is not null) - { - writer.WritePropertyName("range"); - JsonSerializer.Serialize(writer, RangeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyResponse.g.cs deleted file mode 100644 index b139f4781c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Enrich/PutPolicyResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public sealed partial class PutPolicyResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs deleted file mode 100644 index 1559fb99b38..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs +++ /dev/null @@ -1,125 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class EqlDeleteRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete an async EQL search. -/// Delete an async EQL search or a stored synchronous EQL search. -/// The API also deletes results for the search. -/// -/// -public sealed partial class EqlDeleteRequest : PlainRequest -{ - public EqlDeleteRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.delete"; -} - -/// -/// -/// Delete an async EQL search. -/// Delete an async EQL search or a stored synchronous EQL search. -/// The API also deletes results for the search. -/// -/// -public sealed partial class EqlDeleteRequestDescriptor : RequestDescriptor, EqlDeleteRequestParameters> -{ - internal EqlDeleteRequestDescriptor(Action> configure) => configure.Invoke(this); - - public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.delete"; - - public EqlDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete an async EQL search. -/// Delete an async EQL search or a stored synchronous EQL search. -/// The API also deletes results for the search. -/// -/// -public sealed partial class EqlDeleteRequestDescriptor : RequestDescriptor -{ - internal EqlDeleteRequestDescriptor(Action configure) => configure.Invoke(this); - - public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.delete"; - - public EqlDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs deleted file mode 100644 index 38f55f2b5cc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class EqlDeleteResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs deleted file mode 100644 index 20655ebd2ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs +++ /dev/null @@ -1,161 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class EqlGetRequestParameters : RequestParameters -{ - /// - /// - /// Period for which the search and its results are stored on the cluster. - /// Defaults to the keep_alive value set by the search’s EQL search API request. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Timeout duration to wait for the request to finish. - /// Defaults to no timeout, meaning the request waits for complete search results. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -/// -/// -/// Get async EQL search results. -/// Get the current status and available results for an async EQL search or a stored synchronous EQL search. -/// -/// -public sealed partial class EqlGetRequest : PlainRequest -{ - public EqlGetRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.get"; - - /// - /// - /// Period for which the search and its results are stored on the cluster. - /// Defaults to the keep_alive value set by the search’s EQL search API request. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Timeout duration to wait for the request to finish. - /// Defaults to no timeout, meaning the request waits for complete search results. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -/// -/// -/// Get async EQL search results. -/// Get the current status and available results for an async EQL search or a stored synchronous EQL search. -/// -/// -public sealed partial class EqlGetRequestDescriptor : RequestDescriptor, EqlGetRequestParameters> -{ - internal EqlGetRequestDescriptor(Action> configure) => configure.Invoke(this); - - public EqlGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.get"; - - public EqlGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - public EqlGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public EqlGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get async EQL search results. -/// Get the current status and available results for an async EQL search or a stored synchronous EQL search. -/// -/// -public sealed partial class EqlGetRequestDescriptor : RequestDescriptor -{ - internal EqlGetRequestDescriptor(Action configure) => configure.Invoke(this); - - public EqlGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.get"; - - public EqlGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - public EqlGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public EqlGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs deleted file mode 100644 index 19dc034e90b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs +++ /dev/null @@ -1,86 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class EqlGetResponse : ElasticsearchResponse -{ - /// - /// - /// Contains matching events and sequences. Also contains related metadata. - /// - /// - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Eql.EqlHits Hits { get; init; } - - /// - /// - /// Identifier for the search. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - - /// - /// - /// If true, the response does not contain complete search results. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool? IsPartial { get; init; } - - /// - /// - /// If true, the search request is still executing. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool? IsRunning { get; init; } - - /// - /// - /// Contains information about shard failures (if any), in case allow_partial_search_results=true - /// - /// - [JsonInclude, JsonPropertyName("shard_failures")] - public IReadOnlyCollection? ShardFailures { get; init; } - - /// - /// - /// If true, the request timed out before completion. - /// - /// - [JsonInclude, JsonPropertyName("timed_out")] - public bool? TimedOut { get; init; } - - /// - /// - /// Milliseconds it took Elasticsearch to execute the request. - /// - /// - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs deleted file mode 100644 index 41ebfb7e630..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ /dev/null @@ -1,1141 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class EqlSearchRequestParameters : RequestParameters -{ - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// Get EQL search results. -/// Returns search results for an Event Query Language (EQL) query. -/// EQL assumes each document in a data stream or index corresponds to an event. -/// -/// -public sealed partial class EqlSearchRequest : PlainRequest -{ - public EqlSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "eql.search"; - - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - [JsonInclude, JsonPropertyName("allow_partial_search_results")] - public bool? AllowPartialSearchResults { get; set; } - [JsonInclude, JsonPropertyName("allow_partial_sequence_results")] - public bool? AllowPartialSequenceResults { get; set; } - [JsonInclude, JsonPropertyName("case_sensitive")] - public bool? CaseSensitive { get; set; } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - [JsonInclude, JsonPropertyName("event_category_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryField { get; set; } - - /// - /// - /// Maximum number of events to search at a time for sequence queries. - /// - /// - [JsonInclude, JsonPropertyName("fetch_size")] - public int? FetchSize { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormat))] - public ICollection? Fields { get; set; } - - /// - /// - /// Query, written in Query DSL, used to filter the events on which the EQL query runs. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - [JsonInclude, JsonPropertyName("keep_alive")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; set; } - [JsonInclude, JsonPropertyName("keep_on_completion")] - public bool? KeepOnCompletion { get; set; } - - /// - /// - /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size - /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the - /// max_samples_per_key parameter. Pipes are not supported for sample queries. - /// - /// - [JsonInclude, JsonPropertyName("max_samples_per_key")] - public int? MaxSamplesPerKey { get; set; } - - /// - /// - /// EQL query you wish to run. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("result_position")] - public Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPosition { get; set; } - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// For basic queries, the maximum number of matching events to return. Defaults to 10 - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - [JsonInclude, JsonPropertyName("tiebreaker_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerField { get; set; } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - [JsonInclude, JsonPropertyName("timestamp_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TimestampField { get; set; } - [JsonInclude, JsonPropertyName("wait_for_completion_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get; set; } -} - -/// -/// -/// Get EQL search results. -/// Returns search results for an Event Query Language (EQL) query. -/// EQL assumes each document in a data stream or index corresponds to an event. -/// -/// -public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor, EqlSearchRequestParameters> -{ - internal EqlSearchRequestDescriptor(Action> configure) => configure.Invoke(this); - - public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public EqlSearchRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "eql.search"; - - public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private bool? AllowPartialSearchResultsValue { get; set; } - private bool? AllowPartialSequenceResultsValue { get; set; } - private bool? CaseSensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryFieldValue { get; set; } - private int? FetchSizeValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action> FieldsDescriptorAction { get; set; } - private Action>[] FieldsDescriptorActions { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } - private bool? KeepOnCompletionValue { get; set; } - private int? MaxSamplesPerKeyValue { get; set; } - private string QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TimestampFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } - - public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) - { - AllowPartialSearchResultsValue = allowPartialSearchResults; - return Self; - } - - public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) - { - AllowPartialSequenceResultsValue = allowPartialSequenceResults; - return Self; - } - - public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) - { - CaseSensitiveValue = caseSensitive; - return Self; - } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - public EqlSearchRequestDescriptor EventCategoryField(Elastic.Clients.Elasticsearch.Serverless.Field? eventCategoryField) - { - EventCategoryFieldValue = eventCategoryField; - return Self; - } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) - { - EventCategoryFieldValue = eventCategoryField; - return Self; - } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) - { - EventCategoryFieldValue = eventCategoryField; - return Self; - } - - /// - /// - /// Maximum number of events to search at a time for sequence queries. - /// - /// - public EqlSearchRequestDescriptor FetchSize(int? fetchSize) - { - FetchSizeValue = fetchSize; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit. - /// - /// - public EqlSearchRequestDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public EqlSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public EqlSearchRequestDescriptor Fields(Action> configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public EqlSearchRequestDescriptor Fields(params Action>[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Query, written in Query DSL, used to filter the events on which the EQL query runs. - /// - /// - public EqlSearchRequestDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public EqlSearchRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public EqlSearchRequestDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public EqlSearchRequestDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - public EqlSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) - { - KeepAliveValue = keepAlive; - return Self; - } - - public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) - { - KeepOnCompletionValue = keepOnCompletion; - return Self; - } - - /// - /// - /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size - /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the - /// max_samples_per_key parameter. Pipes are not supported for sample queries. - /// - /// - public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) - { - MaxSamplesPerKeyValue = maxSamplesPerKey; - return Self; - } - - /// - /// - /// EQL query you wish to run. - /// - /// - public EqlSearchRequestDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public EqlSearchRequestDescriptor ResultPosition(Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? resultPosition) - { - ResultPositionValue = resultPosition; - return Self; - } - - public EqlSearchRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// For basic queries, the maximum number of matching events to return. Defaults to 10 - /// - /// - public EqlSearchRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - public EqlSearchRequestDescriptor TiebreakerField(Elastic.Clients.Elasticsearch.Serverless.Field? tiebreakerField) - { - TiebreakerFieldValue = tiebreakerField; - return Self; - } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) - { - TiebreakerFieldValue = tiebreakerField; - return Self; - } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) - { - TiebreakerFieldValue = tiebreakerField; - return Self; - } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - public EqlSearchRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Serverless.Field? timestampField) - { - TimestampFieldValue = timestampField; - return Self; - } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) - { - TimestampFieldValue = timestampField; - return Self; - } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) - { - TimestampFieldValue = timestampField; - return Self; - } - - public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) - { - WaitForCompletionTimeoutValue = waitForCompletionTimeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowPartialSearchResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_search_results"); - writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); - } - - if (AllowPartialSequenceResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_sequence_results"); - writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); - } - - if (CaseSensitiveValue.HasValue) - { - writer.WritePropertyName("case_sensitive"); - writer.WriteBooleanValue(CaseSensitiveValue.Value); - } - - if (EventCategoryFieldValue is not null) - { - writer.WritePropertyName("event_category_field"); - JsonSerializer.Serialize(writer, EventCategoryFieldValue, options); - } - - if (FetchSizeValue.HasValue) - { - writer.WritePropertyName("fetch_size"); - writer.WriteNumberValue(FetchSizeValue.Value); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - if (FieldsDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - if (FieldsDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - SingleOrManySerializationHelper.Serialize(FieldsValue, writer, options); - } - - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (KeepAliveValue is not null) - { - writer.WritePropertyName("keep_alive"); - JsonSerializer.Serialize(writer, KeepAliveValue, options); - } - - if (KeepOnCompletionValue.HasValue) - { - writer.WritePropertyName("keep_on_completion"); - writer.WriteBooleanValue(KeepOnCompletionValue.Value); - } - - if (MaxSamplesPerKeyValue.HasValue) - { - writer.WritePropertyName("max_samples_per_key"); - writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (ResultPositionValue is not null) - { - writer.WritePropertyName("result_position"); - JsonSerializer.Serialize(writer, ResultPositionValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (TiebreakerFieldValue is not null) - { - writer.WritePropertyName("tiebreaker_field"); - JsonSerializer.Serialize(writer, TiebreakerFieldValue, options); - } - - if (TimestampFieldValue is not null) - { - writer.WritePropertyName("timestamp_field"); - JsonSerializer.Serialize(writer, TimestampFieldValue, options); - } - - if (WaitForCompletionTimeoutValue is not null) - { - writer.WritePropertyName("wait_for_completion_timeout"); - JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get EQL search results. -/// Returns search results for an Event Query Language (EQL) query. -/// EQL assumes each document in a data stream or index corresponds to an event. -/// -/// -public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor -{ - internal EqlSearchRequestDescriptor(Action configure) => configure.Invoke(this); - - public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "eql.search"; - - public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private bool? AllowPartialSearchResultsValue { get; set; } - private bool? AllowPartialSequenceResultsValue { get; set; } - private bool? CaseSensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryFieldValue { get; set; } - private int? FetchSizeValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action FieldsDescriptorAction { get; set; } - private Action[] FieldsDescriptorActions { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } - private bool? KeepOnCompletionValue { get; set; } - private int? MaxSamplesPerKeyValue { get; set; } - private string QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TimestampFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } - - public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) - { - AllowPartialSearchResultsValue = allowPartialSearchResults; - return Self; - } - - public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) - { - AllowPartialSequenceResultsValue = allowPartialSequenceResults; - return Self; - } - - public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) - { - CaseSensitiveValue = caseSensitive; - return Self; - } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - public EqlSearchRequestDescriptor EventCategoryField(Elastic.Clients.Elasticsearch.Serverless.Field? eventCategoryField) - { - EventCategoryFieldValue = eventCategoryField; - return Self; - } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) - { - EventCategoryFieldValue = eventCategoryField; - return Self; - } - - /// - /// - /// Field containing the event classification, such as process, file, or network. - /// - /// - public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) - { - EventCategoryFieldValue = eventCategoryField; - return Self; - } - - /// - /// - /// Maximum number of events to search at a time for sequence queries. - /// - /// - public EqlSearchRequestDescriptor FetchSize(int? fetchSize) - { - FetchSizeValue = fetchSize; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit. - /// - /// - public EqlSearchRequestDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public EqlSearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public EqlSearchRequestDescriptor Fields(Action configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public EqlSearchRequestDescriptor Fields(params Action[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Query, written in Query DSL, used to filter the events on which the EQL query runs. - /// - /// - public EqlSearchRequestDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public EqlSearchRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public EqlSearchRequestDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public EqlSearchRequestDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - public EqlSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) - { - KeepAliveValue = keepAlive; - return Self; - } - - public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) - { - KeepOnCompletionValue = keepOnCompletion; - return Self; - } - - /// - /// - /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size - /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the - /// max_samples_per_key parameter. Pipes are not supported for sample queries. - /// - /// - public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) - { - MaxSamplesPerKeyValue = maxSamplesPerKey; - return Self; - } - - /// - /// - /// EQL query you wish to run. - /// - /// - public EqlSearchRequestDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public EqlSearchRequestDescriptor ResultPosition(Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? resultPosition) - { - ResultPositionValue = resultPosition; - return Self; - } - - public EqlSearchRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// For basic queries, the maximum number of matching events to return. Defaults to 10 - /// - /// - public EqlSearchRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - public EqlSearchRequestDescriptor TiebreakerField(Elastic.Clients.Elasticsearch.Serverless.Field? tiebreakerField) - { - TiebreakerFieldValue = tiebreakerField; - return Self; - } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) - { - TiebreakerFieldValue = tiebreakerField; - return Self; - } - - /// - /// - /// Field used to sort hits with the same timestamp in ascending order - /// - /// - public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) - { - TiebreakerFieldValue = tiebreakerField; - return Self; - } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - public EqlSearchRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Serverless.Field? timestampField) - { - TimestampFieldValue = timestampField; - return Self; - } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) - { - TimestampFieldValue = timestampField; - return Self; - } - - /// - /// - /// Field containing event timestamp. Default "@timestamp" - /// - /// - public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) - { - TimestampFieldValue = timestampField; - return Self; - } - - public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) - { - WaitForCompletionTimeoutValue = waitForCompletionTimeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowPartialSearchResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_search_results"); - writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); - } - - if (AllowPartialSequenceResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_sequence_results"); - writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); - } - - if (CaseSensitiveValue.HasValue) - { - writer.WritePropertyName("case_sensitive"); - writer.WriteBooleanValue(CaseSensitiveValue.Value); - } - - if (EventCategoryFieldValue is not null) - { - writer.WritePropertyName("event_category_field"); - JsonSerializer.Serialize(writer, EventCategoryFieldValue, options); - } - - if (FetchSizeValue.HasValue) - { - writer.WritePropertyName("fetch_size"); - writer.WriteNumberValue(FetchSizeValue.Value); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - if (FieldsDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - if (FieldsDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - SingleOrManySerializationHelper.Serialize(FieldsValue, writer, options); - } - - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (KeepAliveValue is not null) - { - writer.WritePropertyName("keep_alive"); - JsonSerializer.Serialize(writer, KeepAliveValue, options); - } - - if (KeepOnCompletionValue.HasValue) - { - writer.WritePropertyName("keep_on_completion"); - writer.WriteBooleanValue(KeepOnCompletionValue.Value); - } - - if (MaxSamplesPerKeyValue.HasValue) - { - writer.WritePropertyName("max_samples_per_key"); - writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (ResultPositionValue is not null) - { - writer.WritePropertyName("result_position"); - JsonSerializer.Serialize(writer, ResultPositionValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (TiebreakerFieldValue is not null) - { - writer.WritePropertyName("tiebreaker_field"); - JsonSerializer.Serialize(writer, TiebreakerFieldValue, options); - } - - if (TimestampFieldValue is not null) - { - writer.WritePropertyName("timestamp_field"); - JsonSerializer.Serialize(writer, TimestampFieldValue, options); - } - - if (WaitForCompletionTimeoutValue is not null) - { - writer.WritePropertyName("wait_for_completion_timeout"); - JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs deleted file mode 100644 index c33426f84df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs +++ /dev/null @@ -1,86 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class EqlSearchResponse : ElasticsearchResponse -{ - /// - /// - /// Contains matching events and sequences. Also contains related metadata. - /// - /// - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Eql.EqlHits Hits { get; init; } - - /// - /// - /// Identifier for the search. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - - /// - /// - /// If true, the response does not contain complete search results. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool? IsPartial { get; init; } - - /// - /// - /// If true, the search request is still executing. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool? IsRunning { get; init; } - - /// - /// - /// Contains information about shard failures (if any), in case allow_partial_search_results=true - /// - /// - [JsonInclude, JsonPropertyName("shard_failures")] - public IReadOnlyCollection? ShardFailures { get; init; } - - /// - /// - /// If true, the request timed out before completion. - /// - /// - [JsonInclude, JsonPropertyName("timed_out")] - public bool? TimedOut { get; init; } - - /// - /// - /// Milliseconds it took Elasticsearch to execute the request. - /// - /// - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs deleted file mode 100644 index 495702bebde..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs +++ /dev/null @@ -1,122 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class GetEqlStatusRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get the async EQL status. -/// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. -/// -/// -public sealed partial class GetEqlStatusRequest : PlainRequest -{ - public GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGetStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.get_status"; -} - -/// -/// -/// Get the async EQL status. -/// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. -/// -/// -public sealed partial class GetEqlStatusRequestDescriptor : RequestDescriptor, GetEqlStatusRequestParameters> -{ - internal GetEqlStatusRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetEqlStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGetStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.get_status"; - - public GetEqlStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get the async EQL status. -/// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. -/// -/// -public sealed partial class GetEqlStatusRequestDescriptor : RequestDescriptor -{ - internal GetEqlStatusRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetEqlStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGetStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "eql.get_status"; - - public GetEqlStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs deleted file mode 100644 index 5112f40661b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs +++ /dev/null @@ -1,78 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public sealed partial class GetEqlStatusResponse : ElasticsearchResponse -{ - /// - /// - /// For a completed search shows the http status code of the completed search. - /// - /// - [JsonInclude, JsonPropertyName("completion_status")] - public int? CompletionStatus { get; init; } - - /// - /// - /// Shows a timestamp when the eql search will be expired, in milliseconds since the Unix epoch. When this time is reached, the search and its results are deleted, even if the search is still ongoing. - /// - /// - [JsonInclude, JsonPropertyName("expiration_time_in_millis")] - public long? ExpirationTimeInMillis { get; init; } - - /// - /// - /// Identifier for the search. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// If true, the search request is still executing. If false, the search is completed. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool IsPartial { get; init; } - - /// - /// - /// If true, the response does not contain complete search results. This could be because either the search is still running (is_running status is false), or because it is already completed (is_running status is true) and results are partial due to failures or timeouts. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool IsRunning { get; init; } - - /// - /// - /// For a running search shows a timestamp when the eql search started, in milliseconds since the Unix epoch. - /// - /// - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long? StartTimeInMillis { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index e5a692c6955..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ /dev/null @@ -1,475 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } -} - -/// -/// -/// Run an ES|QL query. -/// Get search results for an ES|QL (Elasticsearch query language) query. -/// -/// -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 Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? 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; } -} - -/// -/// -/// Run an ES|QL query. -/// Get search results for an ES|QL (Elasticsearch query language) query. -/// -/// -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(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? 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(); - } -} - -/// -/// -/// Run an ES|QL query. -/// Get search results for an ES|QL (Elasticsearch query language) query. -/// -/// -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(Elastic.Clients.Elasticsearch.Serverless.Esql.EsqlFormat? 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 deleted file mode 100644 index c872ff199a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Esql/EsqlQueryResponse.g.cs +++ /dev/null @@ -1,31 +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 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 deleted file mode 100644 index 49b0e900db4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs +++ /dev/null @@ -1,329 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ExistsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// true or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Check a document. -/// Checks if a specified document exists. -/// -/// -public sealed partial class ExistsRequest : PlainRequest -{ - public ExistsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExists; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "exists"; - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// true or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Check a document. -/// Checks if a specified document exists. -/// -/// -public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> -{ - internal ExistsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public ExistsRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public ExistsRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public ExistsRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExists; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "exists"; - - public ExistsRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public ExistsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public ExistsRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public ExistsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExistsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public ExistsRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public ExistsRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public ExistsRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - public ExistsRequestDescriptor Version(long? version) => Qs("version", version); - public ExistsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public ExistsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public ExistsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Check a document. -/// Checks if a specified document exists. -/// -/// -public sealed partial class ExistsRequestDescriptor : RequestDescriptor -{ - internal ExistsRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExists; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "exists"; - - public ExistsRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public ExistsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public ExistsRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public ExistsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExistsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public ExistsRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public ExistsRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public ExistsRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - public ExistsRequestDescriptor Version(long? version) => Qs("version", version); - public ExistsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public ExistsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public ExistsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsResponse.g.cs deleted file mode 100644 index 242b97d85f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ExistsResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs deleted file mode 100644 index 2f40a52f211..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs +++ /dev/null @@ -1,308 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ExistsSourceRequestParameters : RequestParameters -{ - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// true or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Check for a document source. -/// Checks if a document's _source is stored. -/// -/// -public sealed partial class ExistsSourceRequest : PlainRequest -{ - public ExistsSourceRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExistsSource; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "exists_source"; - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// true or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Check for a document source. -/// Checks if a document's _source is stored. -/// -/// -public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor, ExistsSourceRequestParameters> -{ - internal ExistsSourceRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExistsSourceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public ExistsSourceRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public ExistsSourceRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public ExistsSourceRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public ExistsSourceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExistsSource; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "exists_source"; - - public ExistsSourceRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public ExistsSourceRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public ExistsSourceRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public ExistsSourceRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExistsSourceRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public ExistsSourceRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public ExistsSourceRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public ExistsSourceRequestDescriptor Version(long? version) => Qs("version", version); - public ExistsSourceRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public ExistsSourceRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public ExistsSourceRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Check for a document source. -/// Checks if a document's _source is stored. -/// -/// -public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor -{ - internal ExistsSourceRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsSourceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExistsSource; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "exists_source"; - - public ExistsSourceRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public ExistsSourceRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public ExistsSourceRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public ExistsSourceRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExistsSourceRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public ExistsSourceRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public ExistsSourceRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public ExistsSourceRequestDescriptor Version(long? version) => Qs("version", version); - public ExistsSourceRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public ExistsSourceRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public ExistsSourceRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceResponse.g.cs deleted file mode 100644 index db25e7ee395..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ExistsSourceResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs deleted file mode 100644 index b372cd2365c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs +++ /dev/null @@ -1,469 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ExplainRequestParameters : RequestParameters -{ - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// A comma-separated list of stored fields to return in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } -} - -/// -/// -/// 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 -{ - public ExplainRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExplain; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "explain"; - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// A comma-separated list of stored fields to return in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } -} - -/// -/// -/// 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> -{ - internal ExplainRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExplainRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public ExplainRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public ExplainRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public ExplainRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public ExplainRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExplain; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "explain"; - - public ExplainRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public ExplainRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public ExplainRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public ExplainRequestDescriptor Df(string? df) => Qs("df", df); - public ExplainRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public ExplainRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public ExplainRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public ExplainRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExplainRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public ExplainRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public ExplainRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public ExplainRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - - public ExplainRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public ExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ExplainRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal ExplainRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExplainRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExplain; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "explain"; - - public ExplainRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public ExplainRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public ExplainRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public ExplainRequestDescriptor Df(string? df) => Qs("df", df); - public ExplainRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public ExplainRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public ExplainRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public ExplainRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExplainRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public ExplainRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public ExplainRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public ExplainRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - - public ExplainRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public ExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ExplainRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs deleted file mode 100644 index 6925c56fc6f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ExplainResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("explanation")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Explain.ExplanationDetail? Explanation { get; init; } - [JsonInclude, JsonPropertyName("get")] - public Elastic.Clients.Elasticsearch.Serverless.InlineGet? Get { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("matched")] - public bool Matched { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs deleted file mode 100644 index c947c938007..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsRequest.g.cs +++ /dev/null @@ -1,481 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 FieldCapsRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, - /// or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent - /// - /// - public string? Filters { get => Q("filters"); set => Q("filters", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If false, empty fields are not included in the response. - /// - /// - public bool? IncludeEmptyFields { get => Q("include_empty_fields"); set => Q("include_empty_fields", value); } - - /// - /// - /// If true, unmapped fields are included in the response. - /// - /// - public bool? IncludeUnmapped { get => Q("include_unmapped"); set => Q("include_unmapped", value); } - - /// - /// - /// Only return results for fields that have one of the types in the list - /// - /// - public ICollection? Types { get => Q?>("types"); set => Q("types", value); } -} - -/// -/// -/// Get the field capabilities. -/// -/// -/// Get information about the capabilities of fields among multiple indices. -/// -/// -/// For data streams, the API returns field capabilities among the stream’s backing indices. -/// It returns runtime fields like any other field. -/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. -/// -/// -public sealed partial class FieldCapsRequest : PlainRequest -{ - public FieldCapsRequest() - { - } - - public FieldCapsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceFieldCaps; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "field_caps"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, - /// or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent - /// - /// - [JsonIgnore] - public string? Filters { get => Q("filters"); set => Q("filters", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If false, empty fields are not included in the response. - /// - /// - [JsonIgnore] - public bool? IncludeEmptyFields { get => Q("include_empty_fields"); set => Q("include_empty_fields", value); } - - /// - /// - /// If true, unmapped fields are included in the response. - /// - /// - [JsonIgnore] - public bool? IncludeUnmapped { get => Q("include_unmapped"); set => Q("include_unmapped", value); } - - /// - /// - /// Only return results for fields that have one of the types in the list - /// - /// - [JsonIgnore] - public ICollection? Types { get => Q?>("types"); set => Q("types", value); } - - /// - /// - /// List of fields to retrieve capabilities for. Wildcard (*) expressions are supported. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. - /// - /// - [JsonInclude, JsonPropertyName("index_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilter { get; set; } - - /// - /// - /// Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. - /// These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } -} - -/// -/// -/// Get the field capabilities. -/// -/// -/// Get information about the capabilities of fields among multiple indices. -/// -/// -/// For data streams, the API returns field capabilities among the stream’s backing indices. -/// It returns runtime fields like any other field. -/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. -/// -/// -public sealed partial class FieldCapsRequestDescriptor : RequestDescriptor, FieldCapsRequestParameters> -{ - internal FieldCapsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public FieldCapsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public FieldCapsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceFieldCaps; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "field_caps"; - - public FieldCapsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldCapsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public FieldCapsRequestDescriptor Filters(string? filters) => Qs("filters", filters); - public FieldCapsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FieldCapsRequestDescriptor IncludeEmptyFields(bool? includeEmptyFields = true) => Qs("include_empty_fields", includeEmptyFields); - public FieldCapsRequestDescriptor IncludeUnmapped(bool? includeUnmapped = true) => Qs("include_unmapped", includeUnmapped); - public FieldCapsRequestDescriptor Types(ICollection? types) => Qs("types", types); - - public FieldCapsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } - private Action> IndexFilterDescriptorAction { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - - /// - /// - /// List of fields to retrieve capabilities for. Wildcard (*) expressions are supported. - /// - /// - public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. - /// - /// - public FieldCapsRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) - { - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = null; - IndexFilterValue = indexFilter; - return Self; - } - - public FieldCapsRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - IndexFilterValue = null; - IndexFilterDescriptorAction = null; - IndexFilterDescriptor = descriptor; - return Self; - } - - public FieldCapsRequestDescriptor IndexFilter(Action> configure) - { - IndexFilterValue = null; - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. - /// These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings. - /// - /// - public FieldCapsRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IndexFilterDescriptor is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); - } - else if (IndexFilterDescriptorAction is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); - } - else if (IndexFilterValue is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get the field capabilities. -/// -/// -/// Get information about the capabilities of fields among multiple indices. -/// -/// -/// For data streams, the API returns field capabilities among the stream’s backing indices. -/// It returns runtime fields like any other field. -/// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. -/// -/// -public sealed partial class FieldCapsRequestDescriptor : RequestDescriptor -{ - internal FieldCapsRequestDescriptor(Action configure) => configure.Invoke(this); - - public FieldCapsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public FieldCapsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceFieldCaps; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "field_caps"; - - public FieldCapsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldCapsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public FieldCapsRequestDescriptor Filters(string? filters) => Qs("filters", filters); - public FieldCapsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FieldCapsRequestDescriptor IncludeEmptyFields(bool? includeEmptyFields = true) => Qs("include_empty_fields", includeEmptyFields); - public FieldCapsRequestDescriptor IncludeUnmapped(bool? includeUnmapped = true) => Qs("include_unmapped", includeUnmapped); - public FieldCapsRequestDescriptor Types(ICollection? types) => Qs("types", types); - - public FieldCapsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } - private Action IndexFilterDescriptorAction { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - - /// - /// - /// List of fields to retrieve capabilities for. Wildcard (*) expressions are supported. - /// - /// - public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. - /// - /// - public FieldCapsRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) - { - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = null; - IndexFilterValue = indexFilter; - return Self; - } - - public FieldCapsRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - IndexFilterValue = null; - IndexFilterDescriptorAction = null; - IndexFilterDescriptor = descriptor; - return Self; - } - - public FieldCapsRequestDescriptor IndexFilter(Action configure) - { - IndexFilterValue = null; - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. - /// These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings. - /// - /// - public FieldCapsRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IndexFilterDescriptor is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); - } - else if (IndexFilterDescriptorAction is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); - } - else if (IndexFilterValue is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsResponse.g.cs deleted file mode 100644 index b812902de68..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/FieldCapsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class FieldCapsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("fields")] - [ReadOnlyFieldDictionaryConverter(typeof(IReadOnlyDictionary))] - public IReadOnlyDictionary> Fields { get; init; } - [JsonInclude, JsonPropertyName("indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Indices { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs deleted file mode 100644 index ab515ef772d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs +++ /dev/null @@ -1,325 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 GetRequestParameters : RequestParameters -{ - /// - /// - /// Specifies the node or shard the operation should be performed on. Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: internal, external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Get a document by its ID. -/// Retrieves the document with the specified ID from an index. -/// -/// -public sealed partial class GetRequest : PlainRequest -{ - public GetRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get"; - - /// - /// - /// Specifies the node or shard the operation should be performed on. Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: internal, external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Get a document by its ID. -/// Retrieves the document with the specified ID from an index. -/// -/// -public sealed partial class GetRequestDescriptor : RequestDescriptor, GetRequestParameters> -{ - internal GetRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public GetRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public GetRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public GetRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public GetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get"; - - public GetRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public GetRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public GetRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public GetRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public GetRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public GetRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public GetRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public GetRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - public GetRequestDescriptor Version(long? version) => Qs("version", version); - public GetRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public GetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public GetRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get a document by its ID. -/// Retrieves the document with the specified ID from an index. -/// -/// -public sealed partial class GetRequestDescriptor : RequestDescriptor -{ - internal GetRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get"; - - public GetRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public GetRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public GetRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public GetRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public GetRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public GetRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public GetRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public GetRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - public GetRequestDescriptor Version(long? version) => Qs("version", version); - public GetRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public GetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public GetRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs deleted file mode 100644 index 6991ba6a6f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetResponse.g.cs +++ /dev/null @@ -1,52 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class GetResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValues? Fields { get; init; } - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_ignored")] - public IReadOnlyCollection? Ignored { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("_routing")] - public string? Routing { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_source")] - [SourceConverter] - public TDocument? Source { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs deleted file mode 100644 index 9550ee70937..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs +++ /dev/null @@ -1,140 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 GetScriptRequestParameters : RequestParameters -{ - /// - /// - /// Specify timeout for connection to master - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get a script or search template. -/// Retrieves a stored script or search template. -/// -/// -public sealed partial class GetScriptRequest : PlainRequest -{ - public GetScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGetScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get_script"; - - /// - /// - /// Specify timeout for connection to master - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get a script or search template. -/// Retrieves a stored script or search template. -/// -/// -public sealed partial class GetScriptRequestDescriptor : RequestDescriptor, GetScriptRequestParameters> -{ - internal GetScriptRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGetScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get_script"; - - public GetScriptRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get a script or search template. -/// Retrieves a stored script or search template. -/// -/// -public sealed partial class GetScriptRequestDescriptor : RequestDescriptor -{ - internal GetScriptRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGetScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get_script"; - - public GetScriptRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptResponse.g.cs deleted file mode 100644 index e283ddb5ab6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class GetScriptResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.StoredScript? Script { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs deleted file mode 100644 index a7cf0ccf4a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceRequest.g.cs +++ /dev/null @@ -1,309 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 GetSourceRequestParameters : RequestParameters -{ - /// - /// - /// Specifies the node or shard the operation should be performed on. Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: internal, external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Get a document's source. -/// Returns the source of a document. -/// -/// -public sealed partial class GetSourceRequest : PlainRequest -{ - public GetSourceRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGetSource; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get_source"; - - /// - /// - /// Specifies the node or shard the operation should be performed on. Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Target the specified primary shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: internal, external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Get a document's source. -/// Returns the source of a document. -/// -/// -public sealed partial class GetSourceRequestDescriptor : RequestDescriptor, GetSourceRequestParameters> -{ - internal GetSourceRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetSourceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public GetSourceRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public GetSourceRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public GetSourceRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public GetSourceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGetSource; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get_source"; - - public GetSourceRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public GetSourceRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public GetSourceRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public GetSourceRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public GetSourceRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public GetSourceRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public GetSourceRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public GetSourceRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - public GetSourceRequestDescriptor Version(long? version) => Qs("version", version); - public GetSourceRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public GetSourceRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public GetSourceRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get a document's source. -/// Returns the source of a document. -/// -/// -public sealed partial class GetSourceRequestDescriptor : RequestDescriptor -{ - internal GetSourceRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetSourceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceGetSource; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "get_source"; - - public GetSourceRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public GetSourceRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public GetSourceRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public GetSourceRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public GetSourceRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public GetSourceRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public GetSourceRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public GetSourceRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - public GetSourceRequestDescriptor Version(long? version) => Qs("version", version); - public GetSourceRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public GetSourceRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public GetSourceRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceResponse.g.cs deleted file mode 100644 index fe4055b01b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetSourceResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class GetSourceResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs deleted file mode 100644 index 56469ab3fe3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreRequest.g.cs +++ /dev/null @@ -1,655 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Graph; - -public sealed partial class ExploreRequestParameters : RequestParameters -{ - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Explore graph analytics. -/// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. -/// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. -/// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. -/// Subsequent requests enable you to spider out from one more vertices of interest. -/// You can exclude vertices that have already been returned. -/// -/// -public sealed partial class ExploreRequest : PlainRequest -{ - public ExploreRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "graph.explore"; - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Specifies or more fields from which you want to extract terms that are associated with the specified vertices. - /// - /// - [JsonInclude, JsonPropertyName("connections")] - public Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? Connections { get; set; } - - /// - /// - /// Direct the Graph API how to build the graph. - /// - /// - [JsonInclude, JsonPropertyName("controls")] - public Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControls? Controls { get; set; } - - /// - /// - /// A seed query that identifies the documents of interest. Can be any valid Elasticsearch query. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Specifies one or more fields that contain the terms you want to include in the graph as vertices. - /// - /// - [JsonInclude, JsonPropertyName("vertices")] - public ICollection? Vertices { get; set; } -} - -/// -/// -/// Explore graph analytics. -/// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. -/// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. -/// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. -/// Subsequent requests enable you to spider out from one more vertices of interest. -/// You can exclude vertices that have already been returned. -/// -/// -public sealed partial class ExploreRequestDescriptor : RequestDescriptor, ExploreRequestParameters> -{ - internal ExploreRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public ExploreRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "graph.explore"; - - public ExploreRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExploreRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public ExploreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? ConnectionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor ConnectionsDescriptor { get; set; } - private Action> ConnectionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControls? ControlsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControlsDescriptor ControlsDescriptor { get; set; } - private Action> ControlsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? VerticesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor VerticesDescriptor { get; set; } - private Action> VerticesDescriptorAction { get; set; } - private Action>[] VerticesDescriptorActions { get; set; } - - /// - /// - /// Specifies or more fields from which you want to extract terms that are associated with the specified vertices. - /// - /// - public ExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public ExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Connections(Action> configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Direct the Graph API how to build the graph. - /// - /// - public ExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControls? controls) - { - ControlsDescriptor = null; - ControlsDescriptorAction = null; - ControlsValue = controls; - return Self; - } - - public ExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControlsDescriptor descriptor) - { - ControlsValue = null; - ControlsDescriptorAction = null; - ControlsDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Controls(Action> configure) - { - ControlsValue = null; - ControlsDescriptor = null; - ControlsDescriptorAction = configure; - return Self; - } - - /// - /// - /// A seed query that identifies the documents of interest. Can be any valid Elasticsearch query. - /// - /// - public ExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies one or more fields that contain the terms you want to include in the graph as vertices. - /// - /// - public ExploreRequestDescriptor Vertices(ICollection? vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public ExploreRequestDescriptor Vertices(Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Vertices(Action> configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public ExploreRequestDescriptor Vertices(params Action>[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (ControlsDescriptor is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsDescriptor, options); - } - else if (ControlsDescriptorAction is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControlsDescriptor(ControlsDescriptorAction), options); - } - else if (ControlsValue is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (VerticesValue is not null) - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Explore graph analytics. -/// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. -/// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. -/// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. -/// Subsequent requests enable you to spider out from one more vertices of interest. -/// You can exclude vertices that have already been returned. -/// -/// -public sealed partial class ExploreRequestDescriptor : RequestDescriptor -{ - internal ExploreRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "graph.explore"; - - public ExploreRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public ExploreRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public ExploreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? ConnectionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor ConnectionsDescriptor { get; set; } - private Action ConnectionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControls? ControlsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControlsDescriptor ControlsDescriptor { get; set; } - private Action ControlsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? VerticesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor VerticesDescriptor { get; set; } - private Action VerticesDescriptorAction { get; set; } - private Action[] VerticesDescriptorActions { get; set; } - - /// - /// - /// Specifies or more fields from which you want to extract terms that are associated with the specified vertices. - /// - /// - public ExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public ExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Connections(Action configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Direct the Graph API how to build the graph. - /// - /// - public ExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControls? controls) - { - ControlsDescriptor = null; - ControlsDescriptorAction = null; - ControlsValue = controls; - return Self; - } - - public ExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControlsDescriptor descriptor) - { - ControlsValue = null; - ControlsDescriptorAction = null; - ControlsDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Controls(Action configure) - { - ControlsValue = null; - ControlsDescriptor = null; - ControlsDescriptorAction = configure; - return Self; - } - - /// - /// - /// A seed query that identifies the documents of interest. Can be any valid Elasticsearch query. - /// - /// - public ExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies one or more fields that contain the terms you want to include in the graph as vertices. - /// - /// - public ExploreRequestDescriptor Vertices(ICollection? vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public ExploreRequestDescriptor Vertices(Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public ExploreRequestDescriptor Vertices(Action configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public ExploreRequestDescriptor Vertices(params Action[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (ControlsDescriptor is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsDescriptor, options); - } - else if (ControlsDescriptorAction is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.ExploreControlsDescriptor(ControlsDescriptorAction), options); - } - else if (ControlsValue is not null) - { - writer.WritePropertyName("controls"); - JsonSerializer.Serialize(writer, ControlsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (VerticesValue is not null) - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreResponse.g.cs deleted file mode 100644 index b4c16e5ce14..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Graph/ExploreResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Graph; - -public sealed partial class ExploreResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("connections")] - public IReadOnlyCollection Connections { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection Failures { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } - [JsonInclude, JsonPropertyName("vertices")] - public IReadOnlyCollection Vertices { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs deleted file mode 100644 index 6f6a38f567a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportRequest.g.cs +++ /dev/null @@ -1,187 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 HealthReportRequestParameters : RequestParameters -{ - /// - /// - /// Limit the number of affected resources the health report API returns. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Explicit operation timeout. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Opt-in for more information about the health of the system. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get the cluster health. -/// Get a report with the health status of an Elasticsearch cluster. -/// The report contains a list of indicators that compose Elasticsearch functionality. -/// -/// -/// Each indicator has a health status of: green, unknown, yellow or red. -/// The indicator will provide an explanation and metadata describing the reason for its current health status. -/// -/// -/// The cluster’s status is controlled by the worst indicator status. -/// -/// -/// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. -/// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. -/// -/// -/// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. -/// The root cause and remediation steps are encapsulated in a diagnosis. -/// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. -/// -/// -/// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. -/// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. -/// -/// -public sealed partial class HealthReportRequest : PlainRequest -{ - public HealthReportRequest() - { - } - - public HealthReportRequest(IReadOnlyCollection? feature) : base(r => r.Optional("feature", feature)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceHealthReport; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "health_report"; - - /// - /// - /// Limit the number of affected resources the health report API returns. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Explicit operation timeout. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Opt-in for more information about the health of the system. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get the cluster health. -/// Get a report with the health status of an Elasticsearch cluster. -/// The report contains a list of indicators that compose Elasticsearch functionality. -/// -/// -/// Each indicator has a health status of: green, unknown, yellow or red. -/// The indicator will provide an explanation and metadata describing the reason for its current health status. -/// -/// -/// The cluster’s status is controlled by the worst indicator status. -/// -/// -/// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. -/// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. -/// -/// -/// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. -/// The root cause and remediation steps are encapsulated in a diagnosis. -/// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. -/// -/// -/// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. -/// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. -/// -/// -public sealed partial class HealthReportRequestDescriptor : RequestDescriptor -{ - internal HealthReportRequestDescriptor(Action configure) => configure.Invoke(this); - - public HealthReportRequestDescriptor(IReadOnlyCollection? feature) : base(r => r.Optional("feature", feature)) - { - } - - public HealthReportRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceHealthReport; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "health_report"; - - public HealthReportRequestDescriptor Size(int? size) => Qs("size", size); - public HealthReportRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public HealthReportRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public HealthReportRequestDescriptor Feature(IReadOnlyCollection? feature) - { - RouteValues.Optional("feature", feature); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportResponse.g.cs deleted file mode 100644 index dc6e11408ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/HealthReportResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class HealthReportResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("indicators")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.Indicators Indicators { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus? Status { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs deleted file mode 100644 index 81d71987457..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ /dev/null @@ -1,601 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class AnalyzeIndexRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get tokens from text analysis. -/// The analyze API performs analysis on a text string and returns the resulting tokens. -/// -/// -public sealed partial class AnalyzeIndexRequest : PlainRequest -{ - public AnalyzeIndexRequest() - { - } - - public AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementAnalyze; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.analyze"; - - /// - /// - /// The name of the analyzer that should be applied to the provided text. - /// This could be a built-in analyzer, or an analyzer that’s been configured in the index. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// Array of token attributes used to filter the output of the explain parameter. - /// - /// - [JsonInclude, JsonPropertyName("attributes")] - public ICollection? Attributes { get; set; } - - /// - /// - /// Array of character filters used to preprocess characters before the tokenizer. - /// - /// - [JsonInclude, JsonPropertyName("char_filter")] - public ICollection? CharFilter { get; set; } - - /// - /// - /// If true, the response includes token attributes and additional details. - /// - /// - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; set; } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Array of token filters used to apply after the tokenizer. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public ICollection? Filter { get; set; } - - /// - /// - /// Normalizer to use to convert text into a single token. - /// - /// - [JsonInclude, JsonPropertyName("normalizer")] - public string? Normalizer { get; set; } - - /// - /// - /// Text to analyze. - /// If an array of strings is provided, it is analyzed as a multi-value field. - /// - /// - [JsonInclude, JsonPropertyName("text")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Text { get; set; } - - /// - /// - /// Tokenizer to use to convert text into tokens. - /// - /// - [JsonInclude, JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? Tokenizer { get; set; } -} - -/// -/// -/// Get tokens from text analysis. -/// The analyze API performs analysis on a text string and returns the resulting tokens. -/// -/// -public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor, AnalyzeIndexRequestParameters> -{ - internal AnalyzeIndexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public AnalyzeIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public AnalyzeIndexRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementAnalyze; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.analyze"; - - public AnalyzeIndexRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private string? AnalyzerValue { get; set; } - private ICollection? AttributesValue { get; set; } - private ICollection? CharFilterValue { get; set; } - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private string? NormalizerValue { get; set; } - private ICollection? TextValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? TokenizerValue { get; set; } - - /// - /// - /// The name of the analyzer that should be applied to the provided text. - /// This could be a built-in analyzer, or an analyzer that’s been configured in the index. - /// - /// - public AnalyzeIndexRequestDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Array of token attributes used to filter the output of the explain parameter. - /// - /// - public AnalyzeIndexRequestDescriptor Attributes(ICollection? attributes) - { - AttributesValue = attributes; - return Self; - } - - /// - /// - /// Array of character filters used to preprocess characters before the tokenizer. - /// - /// - public AnalyzeIndexRequestDescriptor CharFilter(ICollection? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - /// - /// - /// If true, the response includes token attributes and additional details. - /// - /// - public AnalyzeIndexRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - public AnalyzeIndexRequestDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - public AnalyzeIndexRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - public AnalyzeIndexRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Array of token filters used to apply after the tokenizer. - /// - /// - public AnalyzeIndexRequestDescriptor Filter(ICollection? filter) - { - FilterValue = filter; - return Self; - } - - /// - /// - /// Normalizer to use to convert text into a single token. - /// - /// - public AnalyzeIndexRequestDescriptor Normalizer(string? normalizer) - { - NormalizerValue = normalizer; - return Self; - } - - /// - /// - /// Text to analyze. - /// If an array of strings is provided, it is analyzed as a multi-value field. - /// - /// - public AnalyzeIndexRequestDescriptor Text(ICollection? text) - { - TextValue = text; - return Self; - } - - /// - /// - /// Tokenizer to use to convert text into tokens. - /// - /// - public AnalyzeIndexRequestDescriptor Tokenizer(Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AttributesValue is not null) - { - writer.WritePropertyName("attributes"); - JsonSerializer.Serialize(writer, AttributesValue, options); - } - - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(NormalizerValue)) - { - writer.WritePropertyName("normalizer"); - writer.WriteStringValue(NormalizerValue); - } - - if (TextValue is not null) - { - writer.WritePropertyName("text"); - SingleOrManySerializationHelper.Serialize(TextValue, writer, options); - } - - if (TokenizerValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizerValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get tokens from text analysis. -/// The analyze API performs analysis on a text string and returns the resulting tokens. -/// -/// -public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor -{ - internal AnalyzeIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public AnalyzeIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public AnalyzeIndexRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementAnalyze; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.analyze"; - - public AnalyzeIndexRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private string? AnalyzerValue { get; set; } - private ICollection? AttributesValue { get; set; } - private ICollection? CharFilterValue { get; set; } - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private string? NormalizerValue { get; set; } - private ICollection? TextValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? TokenizerValue { get; set; } - - /// - /// - /// The name of the analyzer that should be applied to the provided text. - /// This could be a built-in analyzer, or an analyzer that’s been configured in the index. - /// - /// - public AnalyzeIndexRequestDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Array of token attributes used to filter the output of the explain parameter. - /// - /// - public AnalyzeIndexRequestDescriptor Attributes(ICollection? attributes) - { - AttributesValue = attributes; - return Self; - } - - /// - /// - /// Array of character filters used to preprocess characters before the tokenizer. - /// - /// - public AnalyzeIndexRequestDescriptor CharFilter(ICollection? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - /// - /// - /// If true, the response includes token attributes and additional details. - /// - /// - public AnalyzeIndexRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - public AnalyzeIndexRequestDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - public AnalyzeIndexRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field used to derive the analyzer. - /// To use this parameter, you must specify an index. - /// If specified, the analyzer parameter overrides this value. - /// - /// - public AnalyzeIndexRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Array of token filters used to apply after the tokenizer. - /// - /// - public AnalyzeIndexRequestDescriptor Filter(ICollection? filter) - { - FilterValue = filter; - return Self; - } - - /// - /// - /// Normalizer to use to convert text into a single token. - /// - /// - public AnalyzeIndexRequestDescriptor Normalizer(string? normalizer) - { - NormalizerValue = normalizer; - return Self; - } - - /// - /// - /// Text to analyze. - /// If an array of strings is provided, it is analyzed as a multi-value field. - /// - /// - public AnalyzeIndexRequestDescriptor Text(ICollection? text) - { - TextValue = text; - return Self; - } - - /// - /// - /// Tokenizer to use to convert text into tokens. - /// - /// - public AnalyzeIndexRequestDescriptor Tokenizer(Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AttributesValue is not null) - { - writer.WritePropertyName("attributes"); - JsonSerializer.Serialize(writer, AttributesValue, options); - } - - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(NormalizerValue)) - { - writer.WritePropertyName("normalizer"); - writer.WriteStringValue(NormalizerValue); - } - - if (TextValue is not null) - { - writer.WritePropertyName("text"); - SingleOrManySerializationHelper.Serialize(TextValue, writer, options); - } - - if (TokenizerValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizerValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexResponse.g.cs deleted file mode 100644 index e2a51c4d93c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/AnalyzeIndexResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class AnalyzeIndexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("detail")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.AnalyzeDetail? Detail { get; init; } - [JsonInclude, JsonPropertyName("tokens")] - public IReadOnlyCollection? Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs deleted file mode 100644 index 80013f19d4e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ /dev/null @@ -1,267 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ClearCacheRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, clears the fields cache. - /// Use the fields parameter to clear the cache of specific fields only. - /// - /// - public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } - - /// - /// - /// Comma-separated list of field names used to limit the fielddata parameter. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, clears the query cache. - /// - /// - public bool? Query { get => Q("query"); set => Q("query", value); } - - /// - /// - /// If true, clears the request cache. - /// - /// - public bool? Request { get => Q("request"); set => Q("request", value); } -} - -/// -/// -/// Clear the cache. -/// Clear the cache of one or more indices. -/// For data streams, the API clears the caches of the stream's backing indices. -/// -/// -public sealed partial class ClearCacheRequest : PlainRequest -{ - public ClearCacheRequest() - { - } - - public ClearCacheRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClearCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.clear_cache"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, clears the fields cache. - /// Use the fields parameter to clear the cache of specific fields only. - /// - /// - [JsonIgnore] - public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } - - /// - /// - /// Comma-separated list of field names used to limit the fielddata parameter. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, clears the query cache. - /// - /// - [JsonIgnore] - public bool? Query { get => Q("query"); set => Q("query", value); } - - /// - /// - /// If true, clears the request cache. - /// - /// - [JsonIgnore] - public bool? Request { get => Q("request"); set => Q("request", value); } -} - -/// -/// -/// Clear the cache. -/// Clear the cache of one or more indices. -/// For data streams, the API clears the caches of the stream's backing indices. -/// -/// -public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor, ClearCacheRequestParameters> -{ - internal ClearCacheRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ClearCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public ClearCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClearCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.clear_cache"; - - public ClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClearCacheRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ClearCacheRequestDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); - public ClearCacheRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public ClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ClearCacheRequestDescriptor Query(bool? query = true) => Qs("query", query); - public ClearCacheRequestDescriptor Request(bool? request = true) => Qs("request", request); - - public ClearCacheRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Clear the cache. -/// Clear the cache of one or more indices. -/// For data streams, the API clears the caches of the stream's backing indices. -/// -/// -public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor -{ - internal ClearCacheRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public ClearCacheRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClearCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.clear_cache"; - - public ClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClearCacheRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ClearCacheRequestDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); - public ClearCacheRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public ClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ClearCacheRequestDescriptor Query(bool? query = true) => Qs("query", query); - public ClearCacheRequestDescriptor Request(bool? request = true) => Qs("request", request); - - public ClearCacheRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs deleted file mode 100644 index 17ef061beb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ClearCacheResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ClearCacheResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs deleted file mode 100644 index 4f8c0fcc4d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ /dev/null @@ -1,303 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class CloseIndexRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Close an index. -/// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. -/// It is not possible to index documents or to search for documents in a closed index. -/// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. -/// -/// -/// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. -/// The shards will then go through the normal recovery process. -/// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. -/// -/// -/// You can open and close multiple indices. -/// An error is thrown if the request explicitly refers to a missing index. -/// This behaviour can be turned off using the ignore_unavailable=true parameter. -/// -/// -/// By default, you must explicitly name the indices you are opening or closing. -/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. -/// -/// -/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. -/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. -/// -/// -public sealed partial class CloseIndexRequest : PlainRequest -{ - public CloseIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClose; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.close"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Close an index. -/// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. -/// It is not possible to index documents or to search for documents in a closed index. -/// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. -/// -/// -/// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. -/// The shards will then go through the normal recovery process. -/// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. -/// -/// -/// You can open and close multiple indices. -/// An error is thrown if the request explicitly refers to a missing index. -/// This behaviour can be turned off using the ignore_unavailable=true parameter. -/// -/// -/// By default, you must explicitly name the indices you are opening or closing. -/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. -/// -/// -/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. -/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. -/// -/// -public sealed partial class CloseIndexRequestDescriptor : RequestDescriptor, CloseIndexRequestParameters> -{ - internal CloseIndexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public CloseIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public CloseIndexRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClose; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.close"; - - public CloseIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public CloseIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public CloseIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public CloseIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CloseIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public CloseIndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public CloseIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Close an index. -/// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. -/// It is not possible to index documents or to search for documents in a closed index. -/// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. -/// -/// -/// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. -/// The shards will then go through the normal recovery process. -/// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. -/// -/// -/// You can open and close multiple indices. -/// An error is thrown if the request explicitly refers to a missing index. -/// This behaviour can be turned off using the ignore_unavailable=true parameter. -/// -/// -/// By default, you must explicitly name the indices you are opening or closing. -/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. -/// -/// -/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. -/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. -/// -/// -public sealed partial class CloseIndexRequestDescriptor : RequestDescriptor -{ - internal CloseIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public CloseIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementClose; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.close"; - - public CloseIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public CloseIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public CloseIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public CloseIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CloseIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public CloseIndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public CloseIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs deleted file mode 100644 index 26696939f0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CloseIndexResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class CloseIndexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("indices")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CloseIndexResult))] - public IReadOnlyDictionary Indices { get; init; } - [JsonInclude, JsonPropertyName("shards_acknowledged")] - public bool ShardsAcknowledged { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index b9173b90ce0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs +++ /dev/null @@ -1,123 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class CreateDataStreamRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public CreateDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamName name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreateDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.create_data_stream"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - internal CreateDataStreamRequestDescriptor(Action configure) => configure.Invoke(this); - - public CreateDataStreamRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.DataStreamName name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreateDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.create_data_stream"; - - public CreateDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CreateDataStreamRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public CreateDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamName name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs deleted file mode 100644 index a52e895259d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateDataStreamResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class CreateDataStreamResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs deleted file mode 100644 index 746e53173e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs +++ /dev/null @@ -1,493 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class CreateIndexRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Create an index. -/// Creates a new index. -/// -/// -public sealed partial class CreateIndexRequest : PlainRequest -{ - public CreateIndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.create"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// Aliases for the index. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - public IDictionary? Aliases { get; set; } - - /// - /// - /// Mapping for fields in the index. If specified, this mapping can include: - /// - /// - /// - /// - /// Field names - /// - /// - /// - /// - /// Field data types - /// - /// - /// - /// - /// Mapping parameters - /// - /// - /// - /// - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; set; } - - /// - /// - /// Configuration options for the index. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Settings { get; set; } -} - -/// -/// -/// Create an index. -/// Creates a new index. -/// -/// -public sealed partial class CreateIndexRequestDescriptor : RequestDescriptor, CreateIndexRequestParameters> -{ - internal CreateIndexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public CreateIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - public CreateIndexRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.create"; - - public CreateIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CreateIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public CreateIndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public CreateIndexRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private IDictionary> AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action> MappingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } - - /// - /// - /// Aliases for the index. - /// - /// - public CreateIndexRequestDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Mapping for fields in the index. If specified, this mapping can include: - /// - /// - /// - /// - /// Field names - /// - /// - /// - /// - /// Field data types - /// - /// - /// - /// - /// Mapping parameters - /// - /// - /// - /// - public CreateIndexRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public CreateIndexRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public CreateIndexRequestDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// - /// - public CreateIndexRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public CreateIndexRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public CreateIndexRequestDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create an index. -/// Creates a new index. -/// -/// -public sealed partial class CreateIndexRequestDescriptor : RequestDescriptor -{ - internal CreateIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public CreateIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.create"; - - public CreateIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CreateIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public CreateIndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public CreateIndexRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private IDictionary AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action MappingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - - /// - /// - /// Aliases for the index. - /// - /// - public CreateIndexRequestDescriptor Aliases(Func, FluentDescriptorDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Mapping for fields in the index. If specified, this mapping can include: - /// - /// - /// - /// - /// Field names - /// - /// - /// - /// - /// Field data types - /// - /// - /// - /// - /// Mapping parameters - /// - /// - /// - /// - public CreateIndexRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public CreateIndexRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public CreateIndexRequestDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// - /// - public CreateIndexRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public CreateIndexRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public CreateIndexRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs deleted file mode 100644 index 16a1cc6de10..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/CreateIndexResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class CreateIndexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("shards_acknowledged")] - public bool ShardsAcknowledged { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 71d611237d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ /dev/null @@ -1,115 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DataStreamsStatsRequestParameters : RequestParameters -{ - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } -} - -/// -/// -/// Get data stream stats. -/// Retrieves statistics for one or more data streams. -/// -/// -public sealed partial class DataStreamsStatsRequest : PlainRequest -{ - public DataStreamsStatsRequest() - { - } - - public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDataStreamsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.data_streams_stats"; - - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } -} - -/// -/// -/// Get data stream stats. -/// Retrieves statistics for one or more data streams. -/// -/// -public sealed partial class DataStreamsStatsRequestDescriptor : RequestDescriptor -{ - internal DataStreamsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public DataStreamsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? name) : base(r => r.Optional("name", name)) - { - } - - public DataStreamsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDataStreamsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.data_streams_stats"; - - public DataStreamsStatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - - public DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.IndexName? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs deleted file mode 100644 index 138befc6cfe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DataStreamsStatsResponse.g.cs +++ /dev/null @@ -1,79 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DataStreamsStatsResponse : ElasticsearchResponse -{ - /// - /// - /// Total number of backing indices for the selected data streams. - /// - /// - [JsonInclude, JsonPropertyName("backing_indices")] - public int BackingIndices { get; init; } - - /// - /// - /// Total number of selected data streams. - /// - /// - [JsonInclude, JsonPropertyName("data_stream_count")] - public int DataStreamCount { get; init; } - - /// - /// - /// Contains statistics for the selected data streams. - /// - /// - [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } - - /// - /// - /// Contains information about shards that attempted to execute the request. - /// - /// - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - - /// - /// - /// Total size, in bytes, of all shards for the selected data streams. - /// - /// - [JsonInclude, JsonPropertyName("total_store_size_bytes")] - public long TotalStoreSizeBytes { get; init; } - - /// - /// - /// Total size of all shards for the selected data streams. - /// This property is included only if the human query parameter is true - /// - /// - [JsonInclude, JsonPropertyName("total_store_sizes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TotalStoreSizes { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 7e96e2d1523..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasRequest.g.cs +++ /dev/null @@ -1,177 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteAliasRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete an alias. -/// Removes a data stream or index from an alias. -/// -/// -public sealed partial class DeleteAliasRequest : PlainRequest -{ - public DeleteAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("index", indices).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_alias"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete an alias. -/// Removes a data stream or index from an alias. -/// -/// -public sealed partial class DeleteAliasRequestDescriptor : RequestDescriptor, DeleteAliasRequestParameters> -{ - internal DeleteAliasRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("index", indices).Required("name", name)) - { - } - - public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : this(typeof(TDocument), name) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_alias"; - - public DeleteAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteAliasRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - public DeleteAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete an alias. -/// Removes a data stream or index from an alias. -/// -/// -public sealed partial class DeleteAliasRequestDescriptor : RequestDescriptor -{ - internal DeleteAliasRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("index", indices).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_alias"; - - public DeleteAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteAliasRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - public DeleteAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs deleted file mode 100644 index befb38314ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteAliasResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteAliasResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs deleted file mode 100644 index d51c20ece9f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ /dev/null @@ -1,137 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteDataLifecycleRequestParameters : RequestParameters -{ - /// - /// - /// Whether wildcard expressions should get expanded to open or closed indices (default: open) - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Specify timeout for connection to master - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit timestamp for the document - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_data_lifecycle"; - - /// - /// - /// Whether wildcard expressions should get expanded to open or closed indices (default: open) - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Specify timeout for connection to master - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit timestamp for the document - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - internal DeleteDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_data_lifecycle"; - - public DeleteDataLifecycleRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DeleteDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteDataLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs deleted file mode 100644 index eae7ae00e1b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteDataLifecycleResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs deleted file mode 100644 index bf4d32f7578..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs +++ /dev/null @@ -1,121 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteDataStreamRequestParameters : RequestParameters -{ - /// - /// - /// Type of data stream that wildcard patterns can match. Supports comma-separated values,such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Delete data streams. -/// Deletes one or more data streams and their backing indices. -/// -/// -public sealed partial class DeleteDataStreamRequest : PlainRequest -{ - public DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_data_stream"; - - /// - /// - /// Type of data stream that wildcard patterns can match. Supports comma-separated values,such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Delete data streams. -/// Deletes one or more data streams and their backing indices. -/// -/// -public sealed partial class DeleteDataStreamRequestDescriptor : RequestDescriptor -{ - internal DeleteDataStreamRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteDataStreamRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_data_stream"; - - public DeleteDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DeleteDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public DeleteDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs deleted file mode 100644 index 74b889a2db1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataStreamResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteDataStreamResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs deleted file mode 100644 index b9999ccd09b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ /dev/null @@ -1,224 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteIndexRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete indices. -/// Deletes one or more indices. -/// -/// -public sealed partial class DeleteIndexRequest : PlainRequest -{ - public DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete indices. -/// Deletes one or more indices. -/// -/// -public sealed partial class DeleteIndexRequestDescriptor : RequestDescriptor, DeleteIndexRequestParameters> -{ - internal DeleteIndexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public DeleteIndexRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete"; - - public DeleteIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DeleteIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DeleteIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public DeleteIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete indices. -/// Deletes one or more indices. -/// -/// -public sealed partial class DeleteIndexRequestDescriptor : RequestDescriptor -{ - internal DeleteIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete"; - - public DeleteIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DeleteIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public DeleteIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public DeleteIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs deleted file mode 100644 index b0aee2bc50b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexResponse.g.cs +++ /dev/null @@ -1,40 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteIndexResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs deleted file mode 100644 index 41a810306d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateRequest.g.cs +++ /dev/null @@ -1,125 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteIndexTemplateRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete an index template. -/// The provided <index-template> may contain multiple template names separated by a comma. If multiple template -/// names are specified then there is no wildcard support and the provided names should match completely with -/// existing templates. -/// -/// -public sealed partial class DeleteIndexTemplateRequest : PlainRequest -{ - public DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_index_template"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete an index template. -/// The provided <index-template> may contain multiple template names separated by a comma. If multiple template -/// names are specified then there is no wildcard support and the provided names should match completely with -/// existing templates. -/// -/// -public sealed partial class DeleteIndexTemplateRequestDescriptor : RequestDescriptor -{ - internal DeleteIndexTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.delete_index_template"; - - public DeleteIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteIndexTemplateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs deleted file mode 100644 index f90d768e4c0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteIndexTemplateResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class DeleteIndexTemplateResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs deleted file mode 100644 index 8eb2b3e9c0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ /dev/null @@ -1,225 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExistsAliasRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, requests that include a missing data stream or index in the target indices or data streams return an error. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Check aliases. -/// Checks if one or more data stream or index aliases exist. -/// -/// -public sealed partial class ExistsAliasRequest : PlainRequest -{ - public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Optional("index", indices).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_alias"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, requests that include a missing data stream or index in the target indices or data streams return an error. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Check aliases. -/// Checks if one or more data stream or index aliases exist. -/// -/// -public sealed partial class ExistsAliasRequestDescriptor : RequestDescriptor, ExistsAliasRequestParameters> -{ - internal ExistsAliasRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Optional("index", indices).Required("name", name)) - { - } - - public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_alias"; - - public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public ExistsAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Check aliases. -/// Checks if one or more data stream or index aliases exist. -/// -/// -public sealed partial class ExistsAliasRequestDescriptor : RequestDescriptor -{ - internal ExistsAliasRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Optional("index", indices).Required("name", name)) - { - } - - public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_alias"; - - public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public ExistsAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs deleted file mode 100644 index 228b5a39e5d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExistsAliasResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs deleted file mode 100644 index f6c50a64295..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExistsIndexTemplateRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Check index templates. -/// Check whether index templates exist. -/// -/// -public sealed partial class ExistsIndexTemplateRequest : PlainRequest -{ - public ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_index_template"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Check index templates. -/// Check whether index templates exist. -/// -/// -public sealed partial class ExistsIndexTemplateRequestDescriptor : RequestDescriptor -{ - internal ExistsIndexTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_index_template"; - - public ExistsIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExistsIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs deleted file mode 100644 index 870f4b00dc8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExistsIndexTemplateResponse : ElasticsearchResponse -{ -} \ No newline at end of file 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 deleted file mode 100644 index 0236d6f8fb4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ /dev/null @@ -1,237 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExistsRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } -} - -/// -/// -/// Check indices. -/// Checks if one or more indices, index aliases, or data streams exist. -/// -/// -public sealed partial class ExistsRequest : PlainRequest -{ - public ExistsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExists; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } -} - -/// -/// -/// Check indices. -/// Checks if one or more indices, index aliases, or data streams exist. -/// -/// -public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> -{ - internal ExistsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public ExistsRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExists; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists"; - - public ExistsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ExistsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ExistsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public ExistsRequestDescriptor Local(bool? local = true) => Qs("local", local); - - public ExistsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Check indices. -/// Checks if one or more indices, index aliases, or data streams exist. -/// -/// -public sealed partial class ExistsRequestDescriptor : RequestDescriptor -{ - internal ExistsRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExists; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists"; - - public ExistsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ExistsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ExistsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public ExistsRequestDescriptor Local(bool? local = true) => Qs("local", local); - - public ExistsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsResponse.g.cs deleted file mode 100644 index 3c3e6a3cfcb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExistsResponse : ElasticsearchResponse -{ -} \ No newline at end of file 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 deleted file mode 100644 index c9e18ea9330..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ /dev/null @@ -1,161 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExplainDataLifecycleRequestParameters : RequestParameters -{ - /// - /// - /// indicates if the API should return the default values the system uses for the index's lifecycle - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Specify timeout for connection to master - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get the status for a data stream lifecycle. -/// Get 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 -{ - public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.explain_data_lifecycle"; - - /// - /// - /// indicates if the API should return the default values the system uses for the index's lifecycle - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Specify timeout for connection to master - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get the status for a data stream lifecycle. -/// Get 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> -{ - internal ExplainDataLifecycleRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExplainDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public ExplainDataLifecycleRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.explain_data_lifecycle"; - - public ExplainDataLifecycleRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public ExplainDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExplainDataLifecycleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get the status for a data stream lifecycle. -/// Get 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 -{ - internal ExplainDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExplainDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExplainDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.explain_data_lifecycle"; - - public ExplainDataLifecycleRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public ExplainDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExplainDataLifecycleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs deleted file mode 100644 index 00f3c417846..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs +++ /dev/null @@ -1,34 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ExplainDataLifecycleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("indices")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleExplain))] - public IReadOnlyDictionary Indices { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs deleted file mode 100644 index 7b5eebb2719..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ /dev/null @@ -1,263 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class FlushRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, the request forces a flush even if there are no changes to commit to the index. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the flush operation blocks until execution when another flush operation is running. - /// If false, Elasticsearch returns an error if you request a flush when another flush operation is running. - /// - /// - public bool? WaitIfOngoing { get => Q("wait_if_ongoing"); set => Q("wait_if_ongoing", value); } -} - -/// -/// -/// Flush data streams or indices. -/// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. -/// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. -/// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. -/// -/// -/// After each operation has been flushed it is permanently stored in the Lucene index. -/// This may mean that there is no need to maintain an additional copy of it in the transaction log. -/// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. -/// -/// -/// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. -/// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. -/// -/// -public sealed partial class FlushRequest : PlainRequest -{ - public FlushRequest() - { - } - - public FlushRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFlush; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.flush"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, the request forces a flush even if there are no changes to commit to the index. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the flush operation blocks until execution when another flush operation is running. - /// If false, Elasticsearch returns an error if you request a flush when another flush operation is running. - /// - /// - [JsonIgnore] - public bool? WaitIfOngoing { get => Q("wait_if_ongoing"); set => Q("wait_if_ongoing", value); } -} - -/// -/// -/// Flush data streams or indices. -/// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. -/// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. -/// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. -/// -/// -/// After each operation has been flushed it is permanently stored in the Lucene index. -/// This may mean that there is no need to maintain an additional copy of it in the transaction log. -/// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. -/// -/// -/// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. -/// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. -/// -/// -public sealed partial class FlushRequestDescriptor : RequestDescriptor, FlushRequestParameters> -{ - internal FlushRequestDescriptor(Action> configure) => configure.Invoke(this); - - public FlushRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public FlushRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFlush; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.flush"; - - public FlushRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FlushRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public FlushRequestDescriptor Force(bool? force = true) => Qs("force", force); - public FlushRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FlushRequestDescriptor WaitIfOngoing(bool? waitIfOngoing = true) => Qs("wait_if_ongoing", waitIfOngoing); - - public FlushRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Flush data streams or indices. -/// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. -/// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. -/// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. -/// -/// -/// After each operation has been flushed it is permanently stored in the Lucene index. -/// This may mean that there is no need to maintain an additional copy of it in the transaction log. -/// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. -/// -/// -/// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. -/// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. -/// -/// -public sealed partial class FlushRequestDescriptor : RequestDescriptor -{ - internal FlushRequestDescriptor(Action configure) => configure.Invoke(this); - - public FlushRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public FlushRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFlush; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.flush"; - - public FlushRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FlushRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public FlushRequestDescriptor Force(bool? force = true) => Qs("force", force); - public FlushRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FlushRequestDescriptor WaitIfOngoing(bool? waitIfOngoing = true) => Qs("wait_if_ongoing", waitIfOngoing); - - public FlushRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs deleted file mode 100644 index 687c6c94df6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class FlushResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs deleted file mode 100644 index 059b8f1fe40..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ /dev/null @@ -1,293 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ForcemergeRequestParameters : RequestParameters -{ - /// - /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified) - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Specify whether the index should be flushed after performing the operation (default: true) - /// - /// - public bool? Flush { get => Q("flush"); set => Q("flush", value); } - - /// - /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// The number of segments the index should be merged into (default: dynamic) - /// - /// - public long? MaxNumSegments { get => Q("max_num_segments"); set => Q("max_num_segments", value); } - - /// - /// - /// Specify whether the operation should only expunge deleted documents - /// - /// - public bool? OnlyExpungeDeletes { get => Q("only_expunge_deletes"); set => Q("only_expunge_deletes", value); } - - /// - /// - /// Should the request wait until the force merge is completed. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Force a merge. -/// Perform the force merge operation on the shards of one or more indices. -/// For data streams, the API forces a merge on the shards of the stream's backing indices. -/// -/// -/// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. -/// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. -/// -/// -/// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). -/// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". -/// These soft-deleted documents are automatically cleaned up during regular segment merges. -/// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. -/// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. -/// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. -/// -/// -public sealed partial class ForcemergeRequest : PlainRequest -{ - public ForcemergeRequest() - { - } - - public ForcemergeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementForcemerge; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.forcemerge"; - - /// - /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified) - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Specify whether the index should be flushed after performing the operation (default: true) - /// - /// - [JsonIgnore] - public bool? Flush { get => Q("flush"); set => Q("flush", value); } - - /// - /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// The number of segments the index should be merged into (default: dynamic) - /// - /// - [JsonIgnore] - public long? MaxNumSegments { get => Q("max_num_segments"); set => Q("max_num_segments", value); } - - /// - /// - /// Specify whether the operation should only expunge deleted documents - /// - /// - [JsonIgnore] - public bool? OnlyExpungeDeletes { get => Q("only_expunge_deletes"); set => Q("only_expunge_deletes", value); } - - /// - /// - /// Should the request wait until the force merge is completed. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Force a merge. -/// Perform the force merge operation on the shards of one or more indices. -/// For data streams, the API forces a merge on the shards of the stream's backing indices. -/// -/// -/// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. -/// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. -/// -/// -/// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). -/// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". -/// These soft-deleted documents are automatically cleaned up during regular segment merges. -/// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. -/// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. -/// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. -/// -/// -public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor, ForcemergeRequestParameters> -{ - internal ForcemergeRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ForcemergeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public ForcemergeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementForcemerge; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.forcemerge"; - - public ForcemergeRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ForcemergeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ForcemergeRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); - public ForcemergeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ForcemergeRequestDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); - public ForcemergeRequestDescriptor OnlyExpungeDeletes(bool? onlyExpungeDeletes = true) => Qs("only_expunge_deletes", onlyExpungeDeletes); - public ForcemergeRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public ForcemergeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Force a merge. -/// Perform the force merge operation on the shards of one or more indices. -/// For data streams, the API forces a merge on the shards of the stream's backing indices. -/// -/// -/// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. -/// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. -/// -/// -/// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). -/// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". -/// These soft-deleted documents are automatically cleaned up during regular segment merges. -/// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. -/// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. -/// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. -/// -/// -public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor -{ - internal ForcemergeRequestDescriptor(Action configure) => configure.Invoke(this); - - public ForcemergeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public ForcemergeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementForcemerge; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.forcemerge"; - - public ForcemergeRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ForcemergeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ForcemergeRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); - public ForcemergeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ForcemergeRequestDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); - public ForcemergeRequestDescriptor OnlyExpungeDeletes(bool? onlyExpungeDeletes = true) => Qs("only_expunge_deletes", onlyExpungeDeletes); - public ForcemergeRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public ForcemergeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs deleted file mode 100644 index a26e677edd8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs +++ /dev/null @@ -1,42 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ForcemergeResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } - - /// - /// - /// task contains a task id returned when wait_for_completion=false, - /// you can use the task_id to get the status of the task at _tasks/<task_id> - /// - /// - [JsonInclude, JsonPropertyName("task")] - public string? Task { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 3c367b7acb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ /dev/null @@ -1,233 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetAliasRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get aliases. -/// Retrieves information for one or more data stream or index aliases. -/// -/// -public sealed partial class GetAliasRequest : PlainRequest -{ - public GetAliasRequest() - { - } - - public GetAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - public GetAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("index", indices).Optional("name", name)) - { - } - - public GetAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_alias"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get aliases. -/// Retrieves information for one or more data stream or index aliases. -/// -/// -public sealed partial class GetAliasRequestDescriptor : RequestDescriptor, GetAliasRequestParameters> -{ - internal GetAliasRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("index", indices).Optional("name", name)) - { - } - - public GetAliasRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_alias"; - - public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public GetAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get aliases. -/// Retrieves information for one or more data stream or index aliases. -/// -/// -public sealed partial class GetAliasRequestDescriptor : RequestDescriptor -{ - internal GetAliasRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("index", indices).Optional("name", name)) - { - } - - public GetAliasRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_alias"; - - public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public GetAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasResponse.g.cs deleted file mode 100644 index 8a3bdeb2e55..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetAliasResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetAliasResponse : DictionaryResponse -{ - public GetAliasResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetAliasResponse() : base() - { - } -} \ No newline at end of file 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 deleted file mode 100644 index d01d9a3cf0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ /dev/null @@ -1,141 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetDataLifecycleRequestParameters : RequestParameters -{ - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get data stream lifecycles. -/// Retrieves the data stream lifecycle configuration of one or more data streams. -/// -/// -public sealed partial class GetDataLifecycleRequest : PlainRequest -{ - public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_data_lifecycle"; - - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get data stream lifecycles. -/// Retrieves the data stream lifecycle configuration of one or more data streams. -/// -/// -public sealed partial class GetDataLifecycleRequestDescriptor : RequestDescriptor -{ - internal GetDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_data_lifecycle"; - - public GetDataLifecycleRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetDataLifecycleRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs deleted file mode 100644 index 4a0274cceec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetDataLifecycleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 0875d040842..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ /dev/null @@ -1,163 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetDataStreamRequestParameters : RequestParameters -{ - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Whether the maximum timestamp for each data stream should be calculated and returned. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get data streams. -/// Retrieves information about one or more data streams. -/// -/// -public sealed partial class GetDataStreamRequest : PlainRequest -{ - public GetDataStreamRequest() - { - } - - public GetDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_data_stream"; - - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Whether the maximum timestamp for each data stream should be calculated and returned. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get data streams. -/// Retrieves information about one or more data streams. -/// -/// -public sealed partial class GetDataStreamRequestDescriptor : RequestDescriptor -{ - internal GetDataStreamRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetDataStreamRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name) : base(r => r.Optional("name", name)) - { - } - - public GetDataStreamRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_data_stream"; - - public GetDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetDataStreamRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetDataStreamRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public GetDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs deleted file mode 100644 index 6ce14db89d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataStreamResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetDataStreamResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index b75468eb210..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ /dev/null @@ -1,274 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetIndexRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard expressions can match. If the request can target data streams, this argument - /// determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - /// such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Return only information on specified index features - /// - /// - public ICollection? Features { get => Q?>("features"); set => Q("features", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If false, requests that target a missing index return an error. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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 -{ - public GetIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard expressions can match. If the request can target data streams, this argument - /// determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - /// such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Return only information on specified index features - /// - /// - [JsonIgnore] - public ICollection? Features { get => Q?>("features"); set => Q("features", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If false, requests that target a missing index return an error. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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> -{ - internal GetIndexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public GetIndexRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get"; - - public GetIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetIndexRequestDescriptor Features(ICollection? features) => Qs("features", features); - public GetIndexRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetIndexRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetIndexRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// 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 -{ - internal GetIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get"; - - public GetIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetIndexRequestDescriptor Features(ICollection? features) => Qs("features", features); - public GetIndexRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetIndexRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetIndexRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexResponse.g.cs deleted file mode 100644 index b5a079fd310..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetIndexResponse : DictionaryResponse -{ - public GetIndexResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetIndexResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs deleted file mode 100644 index e75aa237879..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ /dev/null @@ -1,161 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetIndexTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get index templates. -/// Returns information about one or more index templates. -/// -/// -public sealed partial class GetIndexTemplateRequest : PlainRequest -{ - public GetIndexTemplateRequest() - { - } - - public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_index_template"; - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get index templates. -/// Returns information about one or more index templates. -/// -/// -public sealed partial class GetIndexTemplateRequestDescriptor : RequestDescriptor -{ - internal GetIndexTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - public GetIndexTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_index_template"; - - public GetIndexTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetIndexTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetIndexTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs deleted file mode 100644 index 101331f8170..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndexTemplateResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetIndexTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("index_templates")] - public IReadOnlyCollection IndexTemplates { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 0c47c6f8d5a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ /dev/null @@ -1,295 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetIndicesSettingsRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. If - /// false, information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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 -{ - public GetIndicesSettingsRequest() - { - } - - public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("index", indices).Optional("name", name)) - { - } - - public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_settings"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, return all default settings in the response. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. If - /// false, information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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> -{ - internal GetIndicesSettingsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("index", indices).Optional("name", name)) - { - } - - public GetIndicesSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_settings"; - - public GetIndicesSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetIndicesSettingsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetIndicesSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetIndicesSettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetIndicesSettingsRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetIndicesSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIndicesSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public GetIndicesSettingsRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// 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 -{ - internal GetIndicesSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("index", indices).Optional("name", name)) - { - } - - public GetIndicesSettingsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_settings"; - - public GetIndicesSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetIndicesSettingsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetIndicesSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetIndicesSettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public GetIndicesSettingsRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetIndicesSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIndicesSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public GetIndicesSettingsRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs deleted file mode 100644 index 022f66617ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetIndicesSettingsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetIndicesSettingsResponse : DictionaryResponse -{ - public GetIndicesSettingsResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetIndicesSettingsResponse() : base() - { - } -} \ No newline at end of file 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 deleted file mode 100644 index 966e283780e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ /dev/null @@ -1,233 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetMappingRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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 -{ - public GetMappingRequest() - { - } - - public GetMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_mapping"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// 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> -{ - internal GetMappingRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public GetMappingRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_mapping"; - - public GetMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetMappingRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// 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 -{ - internal GetMappingRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public GetMappingRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_mapping"; - - public GetMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetMappingRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingResponse.g.cs deleted file mode 100644 index c809d68c529..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetMappingResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class GetMappingResponse : DictionaryResponse -{ - public GetMappingResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetMappingResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs deleted file mode 100644 index 99464aa8b9a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ /dev/null @@ -1,348 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class IndicesStatsRequestParameters : RequestParameters -{ - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument - /// determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - /// such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata statistics. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, statistics are not collected from closed indices. - /// - /// - public bool? ForbidClosedIndices { get => Q("forbid_closed_indices"); set => Q("forbid_closed_indices", value); } - - /// - /// - /// Comma-separated list of search groups to include in the search statistics. - /// - /// - public ICollection? Groups { get => Q?>("groups"); set => Q("groups", value); } - - /// - /// - /// If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). - /// - /// - public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } - - /// - /// - /// If true, the response includes information from segments that are not loaded into memory. - /// - /// - public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } - - /// - /// - /// Indicates whether statistics are aggregated at the cluster, index, or shard level. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Level? Level { get => Q("level"); set => Q("level", value); } -} - -/// -/// -/// Get index statistics. -/// For data streams, the API retrieves statistics for the stream's backing indices. -/// -/// -/// By default, the returned statistics are index-level with primaries and total aggregations. -/// primaries are the values for only the primary shards. -/// total are the accumulated values for both primary and replica shards. -/// -/// -/// To get shard-level statistics, set the level parameter to shards. -/// -/// -/// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. -/// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. -/// -/// -public sealed partial class IndicesStatsRequest : PlainRequest -{ - public IndicesStatsRequest() - { - } - - public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("index", indices).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.stats"; - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument - /// determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - /// such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata statistics. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, statistics are not collected from closed indices. - /// - /// - [JsonIgnore] - public bool? ForbidClosedIndices { get => Q("forbid_closed_indices"); set => Q("forbid_closed_indices", value); } - - /// - /// - /// Comma-separated list of search groups to include in the search statistics. - /// - /// - [JsonIgnore] - public ICollection? Groups { get => Q?>("groups"); set => Q("groups", value); } - - /// - /// - /// If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). - /// - /// - [JsonIgnore] - public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } - - /// - /// - /// If true, the response includes information from segments that are not loaded into memory. - /// - /// - [JsonIgnore] - public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } - - /// - /// - /// Indicates whether statistics are aggregated at the cluster, index, or shard level. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Level? Level { get => Q("level"); set => Q("level", value); } -} - -/// -/// -/// Get index statistics. -/// For data streams, the API retrieves statistics for the stream's backing indices. -/// -/// -/// By default, the returned statistics are index-level with primaries and total aggregations. -/// primaries are the values for only the primary shards. -/// total are the accumulated values for both primary and replica shards. -/// -/// -/// To get shard-level statistics, set the level parameter to shards. -/// -/// -/// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. -/// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. -/// -/// -public sealed partial class IndicesStatsRequestDescriptor : RequestDescriptor, IndicesStatsRequestParameters> -{ - internal IndicesStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("index", indices).Optional("metric", metric)) - { - } - - public IndicesStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.stats"; - - public IndicesStatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Serverless.Fields? completionFields) => Qs("completion_fields", completionFields); - public IndicesStatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public IndicesStatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Serverless.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); - public IndicesStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public IndicesStatsRequestDescriptor ForbidClosedIndices(bool? forbidClosedIndices = true) => Qs("forbid_closed_indices", forbidClosedIndices); - public IndicesStatsRequestDescriptor Groups(ICollection? groups) => Qs("groups", groups); - public IndicesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - public IndicesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); - public IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Serverless.Level? level) => Qs("level", level); - - public IndicesStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public IndicesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get index statistics. -/// For data streams, the API retrieves statistics for the stream's backing indices. -/// -/// -/// By default, the returned statistics are index-level with primaries and total aggregations. -/// primaries are the values for only the primary shards. -/// total are the accumulated values for both primary and replica shards. -/// -/// -/// To get shard-level statistics, set the level parameter to shards. -/// -/// -/// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. -/// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. -/// -/// -public sealed partial class IndicesStatsRequestDescriptor : RequestDescriptor -{ - internal IndicesStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public IndicesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("index", indices).Optional("metric", metric)) - { - } - - public IndicesStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.stats"; - - public IndicesStatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Serverless.Fields? completionFields) => Qs("completion_fields", completionFields); - public IndicesStatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public IndicesStatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Serverless.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); - public IndicesStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public IndicesStatsRequestDescriptor ForbidClosedIndices(bool? forbidClosedIndices = true) => Qs("forbid_closed_indices", forbidClosedIndices); - public IndicesStatsRequestDescriptor Groups(ICollection? groups) => Qs("groups", groups); - public IndicesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - public IndicesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); - public IndicesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Serverless.Level? level) => Qs("level", level); - - public IndicesStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - public IndicesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs deleted file mode 100644 index adfc57c3a06..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/IndicesStatsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class IndicesStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndicesStats All { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyDictionary? Indices { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 9bdaa0a0cfc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamRequest.g.cs +++ /dev/null @@ -1,139 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class MigrateToDataStreamRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public MigrateToDataStreamRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementMigrateToDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.migrate_to_data_stream"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - internal MigrateToDataStreamRequestDescriptor(Action configure) => configure.Invoke(this); - - public MigrateToDataStreamRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementMigrateToDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.migrate_to_data_stream"; - - public MigrateToDataStreamRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public MigrateToDataStreamRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public MigrateToDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.IndexName name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs deleted file mode 100644 index 5e5077e08bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/MigrateToDataStreamResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class MigrateToDataStreamResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs deleted file mode 100644 index 13a2456efc9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamRequest.g.cs +++ /dev/null @@ -1,166 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ModifyDataStreamRequestParameters : RequestParameters -{ -} - -/// -/// -/// Update data streams. -/// Performs one or more data stream modification actions in a single atomic operation. -/// -/// -public sealed partial class ModifyDataStreamRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementModifyDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.modify_data_stream"; - - /// - /// - /// Actions to perform. - /// - /// - [JsonInclude, JsonPropertyName("actions")] - public ICollection Actions { get; set; } -} - -/// -/// -/// Update data streams. -/// Performs one or more data stream modification actions in a single atomic operation. -/// -/// -public sealed partial class ModifyDataStreamRequestDescriptor : RequestDescriptor -{ - internal ModifyDataStreamRequestDescriptor(Action configure) => configure.Invoke(this); - - public ModifyDataStreamRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementModifyDataStream; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.modify_data_stream"; - - private ICollection ActionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexModifyDataStreamActionDescriptor ActionsDescriptor { get; set; } - private Action ActionsDescriptorAction { get; set; } - private Action[] ActionsDescriptorActions { get; set; } - - /// - /// - /// Actions to perform. - /// - /// - public ModifyDataStreamRequestDescriptor Actions(ICollection actions) - { - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = null; - ActionsValue = actions; - return Self; - } - - public ModifyDataStreamRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexModifyDataStreamActionDescriptor descriptor) - { - ActionsValue = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = null; - ActionsDescriptor = descriptor; - return Self; - } - - public ModifyDataStreamRequestDescriptor Actions(Action configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorActions = null; - ActionsDescriptorAction = configure; - return Self; - } - - public ModifyDataStreamRequestDescriptor Actions(params Action[] configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsDescriptor is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ActionsDescriptor, options); - writer.WriteEndArray(); - } - else if (ActionsDescriptorAction is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexModifyDataStreamActionDescriptor(ActionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ActionsDescriptorActions is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - foreach (var action in ActionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexModifyDataStreamActionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs deleted file mode 100644 index 70e5ef0f6a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ModifyDataStreamResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ModifyDataStreamResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs deleted file mode 100644 index 2c0a31fa6b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ /dev/null @@ -1,243 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class OpenIndexRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Opens a closed index. -/// For data streams, the API opens any closed backing indices. -/// -/// -public sealed partial class OpenIndexRequest : PlainRequest -{ - public OpenIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementOpen; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.open"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Opens a closed index. -/// For data streams, the API opens any closed backing indices. -/// -/// -public sealed partial class OpenIndexRequestDescriptor : RequestDescriptor, OpenIndexRequestParameters> -{ - internal OpenIndexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public OpenIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public OpenIndexRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementOpen; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.open"; - - public OpenIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public OpenIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public OpenIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public OpenIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public OpenIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public OpenIndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public OpenIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Opens a closed index. -/// For data streams, the API opens any closed backing indices. -/// -/// -public sealed partial class OpenIndexRequestDescriptor : RequestDescriptor -{ - internal OpenIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public OpenIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementOpen; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.open"; - - public OpenIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public OpenIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public OpenIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public OpenIndexRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public OpenIndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public OpenIndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public OpenIndexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs deleted file mode 100644 index 196b23e35d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/OpenIndexResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class OpenIndexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("shards_acknowledged")] - public bool ShardsAcknowledged { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 9a41aa815c3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasRequest.g.cs +++ /dev/null @@ -1,487 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutAliasRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update an alias. -/// Adds a data stream or index to an alias. -/// -/// -public sealed partial class PutAliasRequest : PlainRequest -{ - public PutAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("index", indices).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_alias"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// Data stream aliases don’t support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("index_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRouting { get; set; } - - /// - /// - /// If true, sets the write index or data stream for the alias. - /// If an alias points to multiple indices or data streams and is_write_index isn’t set, the alias rejects write requests. - /// If an index alias points to one index and is_write_index isn’t set, the index automatically acts as the write index. - /// Data stream aliases don’t automatically set a write data stream, even if the alias points to one data stream. - /// - /// - [JsonInclude, JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; set; } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// Data stream aliases don’t support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// Data stream aliases don’t support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("search_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRouting { get; set; } -} - -/// -/// -/// Create or update an alias. -/// Adds a data stream or index to an alias. -/// -/// -public sealed partial class PutAliasRequestDescriptor : RequestDescriptor, PutAliasRequestParameters> -{ - internal PutAliasRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("index", indices).Required("name", name)) - { - } - - public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : this(typeof(TDocument), name) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_alias"; - - public PutAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutAliasRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - public PutAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - 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 Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRoutingValue { get; set; } - private bool? IsWriteIndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRoutingValue { get; set; } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - public PutAliasRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public PutAliasRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public PutAliasRequestDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public PutAliasRequestDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - /// - /// - /// If true, sets the write index or data stream for the alias. - /// If an alias points to multiple indices or data streams and is_write_index isn’t set, the alias rejects write requests. - /// If an index alias points to one index and is_write_index isn’t set, the index automatically acts as the write index. - /// Data stream aliases don’t automatically set a write data stream, even if the alias points to one data stream. - /// - /// - public PutAliasRequestDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// Data stream aliases don’t support this parameter. - /// - /// - public PutAliasRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public PutAliasRequestDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update an alias. -/// Adds a data stream or index to an alias. -/// -/// -public sealed partial class PutAliasRequestDescriptor : RequestDescriptor -{ - internal PutAliasRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("index", indices).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_alias"; - - public PutAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutAliasRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - public PutAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - 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 Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRoutingValue { get; set; } - private bool? IsWriteIndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRoutingValue { get; set; } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - public PutAliasRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public PutAliasRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public PutAliasRequestDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public PutAliasRequestDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - /// - /// - /// If true, sets the write index or data stream for the alias. - /// If an alias points to multiple indices or data streams and is_write_index isn’t set, the alias rejects write requests. - /// If an index alias points to one index and is_write_index isn’t set, the index automatically acts as the write index. - /// Data stream aliases don’t automatically set a write data stream, even if the alias points to one data stream. - /// - /// - public PutAliasRequestDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// Data stream aliases don’t support this parameter. - /// - /// - public PutAliasRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public PutAliasRequestDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasResponse.g.cs deleted file mode 100644 index f22ac858682..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutAliasResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutAliasResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs deleted file mode 100644 index 39f545869db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ /dev/null @@ -1,180 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutDataLifecycleRequestParameters : RequestParameters -{ - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, hidden, open, closed, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Update data stream lifecycles. -/// Update the data stream lifecycle of the specified data streams. -/// -/// -public sealed partial class PutDataLifecycleRequest : PlainRequest, ISelfSerializable -{ - public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_data_lifecycle"; - - /// - /// - /// Type of data stream that wildcard patterns can match. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, hidden, open, closed, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle Lifecycle { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Lifecycle, options); - } -} - -/// -/// -/// Update data stream lifecycles. -/// Update the data stream lifecycle of the specified data streams. -/// -/// -public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor -{ - internal PutDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) : base(r => r.Required("name", name)) => LifecycleValue = lifecycle; - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_data_lifecycle"; - - public PutDataLifecycleRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutDataLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutDataLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) - { - RouteValues.Required("name", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - - public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public PutDataLifecycleRequestDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, LifecycleValue, options); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs deleted file mode 100644 index 633a0f789a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutDataLifecycleResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs deleted file mode 100644 index 5ff90d349b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ /dev/null @@ -1,784 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutIndexTemplateRequestParameters : RequestParameters -{ - /// - /// - /// User defined reason for creating/updating the index template - /// - /// - public string? Cause { get => Q("cause"); set => Q("cause", value); } - - /// - /// - /// If true, this request cannot replace or update existing index templates. - /// - /// - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Create or update an index template. -/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. -/// -/// -public sealed partial class PutIndexTemplateRequest : PlainRequest -{ - public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_index_template"; - - /// - /// - /// User defined reason for creating/updating the index template - /// - /// - [JsonIgnore] - public string? Cause { get => Q("cause"); set => Q("cause", value); } - - /// - /// - /// If true, this request cannot replace or update existing index templates. - /// - /// - [JsonIgnore] - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// This setting overrides the value of the action.auto_create_index cluster setting. - /// If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. - /// If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - /// - /// - [JsonInclude, JsonPropertyName("allow_auto_create")] - public bool? AllowAutoCreate { get; set; } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - [JsonInclude, JsonPropertyName("composed_of")] - public ICollection? ComposedOf { get; set; } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - [JsonInclude, JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? DataStream { get; set; } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; set; } - - /// - /// - /// The configuration option ignore_missing_component_templates can be used when an index template - /// references a component template that might not exist - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing_component_templates")] - public ICollection? IgnoreMissingComponentTemplates { get; set; } - - /// - /// - /// Name of the index template to create. - /// - /// - [JsonInclude, JsonPropertyName("index_patterns")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? IndexPatterns { get; set; } - - /// - /// - /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("priority")] - public long? Priority { get; set; } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? Template { get; set; } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } -} - -/// -/// -/// Create or update an index template. -/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. -/// -/// -public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor, PutIndexTemplateRequestParameters> -{ - internal PutIndexTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_index_template"; - - public PutIndexTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); - public PutIndexTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public PutIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public PutIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private bool? AllowAutoCreateValue { get; set; } - private ICollection? ComposedOfValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor DataStreamDescriptor { get; set; } - private Action DataStreamDescriptorAction { get; set; } - private bool? DeprecatedValue { get; set; } - private ICollection? IgnoreMissingComponentTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndexPatternsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor TemplateDescriptor { get; set; } - private Action> TemplateDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// This setting overrides the value of the action.auto_create_index cluster setting. - /// If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. - /// If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - /// - /// - public PutIndexTemplateRequestDescriptor AllowAutoCreate(bool? allowAutoCreate = true) - { - AllowAutoCreateValue = allowAutoCreate; - return Self; - } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - public PutIndexTemplateRequestDescriptor ComposedOf(ICollection? composedOf) - { - ComposedOfValue = composedOf; - return Self; - } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - public PutIndexTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? dataStream) - { - DataStreamDescriptor = null; - DataStreamDescriptorAction = null; - DataStreamValue = dataStream; - return Self; - } - - public PutIndexTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor descriptor) - { - DataStreamValue = null; - DataStreamDescriptorAction = null; - DataStreamDescriptor = descriptor; - return Self; - } - - public PutIndexTemplateRequestDescriptor DataStream(Action configure) - { - DataStreamValue = null; - DataStreamDescriptor = null; - DataStreamDescriptorAction = configure; - return Self; - } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - public PutIndexTemplateRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// The configuration option ignore_missing_component_templates can be used when an index template - /// references a component template that might not exist - /// - /// - public PutIndexTemplateRequestDescriptor IgnoreMissingComponentTemplates(ICollection? ignoreMissingComponentTemplates) - { - IgnoreMissingComponentTemplatesValue = ignoreMissingComponentTemplates; - return Self; - } - - /// - /// - /// Name of the index template to create. - /// - /// - public PutIndexTemplateRequestDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Serverless.Indices? indexPatterns) - { - IndexPatternsValue = indexPatterns; - return Self; - } - - /// - /// - /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - public PutIndexTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - public PutIndexTemplateRequestDescriptor Priority(long? priority) - { - PriorityValue = priority; - return Self; - } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - public PutIndexTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public PutIndexTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public PutIndexTemplateRequestDescriptor Template(Action> configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - public PutIndexTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowAutoCreateValue.HasValue) - { - writer.WritePropertyName("allow_auto_create"); - writer.WriteBooleanValue(AllowAutoCreateValue.Value); - } - - if (ComposedOfValue is not null) - { - writer.WritePropertyName("composed_of"); - JsonSerializer.Serialize(writer, ComposedOfValue, options); - } - - if (DataStreamDescriptor is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamDescriptor, options); - } - else if (DataStreamDescriptorAction is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor(DataStreamDescriptorAction), options); - } - else if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (IgnoreMissingComponentTemplatesValue is not null) - { - writer.WritePropertyName("ignore_missing_component_templates"); - JsonSerializer.Serialize(writer, IgnoreMissingComponentTemplatesValue, options); - } - - if (IndexPatternsValue is not null) - { - writer.WritePropertyName("index_patterns"); - JsonSerializer.Serialize(writer, IndexPatternsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update an index template. -/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. -/// -/// -public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor -{ - internal PutIndexTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_index_template"; - - public PutIndexTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); - public PutIndexTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public PutIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public PutIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private bool? AllowAutoCreateValue { get; set; } - private ICollection? ComposedOfValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor DataStreamDescriptor { get; set; } - private Action DataStreamDescriptorAction { get; set; } - private bool? DeprecatedValue { get; set; } - private ICollection? IgnoreMissingComponentTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndexPatternsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// This setting overrides the value of the action.auto_create_index cluster setting. - /// If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. - /// If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - /// - /// - public PutIndexTemplateRequestDescriptor AllowAutoCreate(bool? allowAutoCreate = true) - { - AllowAutoCreateValue = allowAutoCreate; - return Self; - } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - public PutIndexTemplateRequestDescriptor ComposedOf(ICollection? composedOf) - { - ComposedOfValue = composedOf; - return Self; - } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - public PutIndexTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? dataStream) - { - DataStreamDescriptor = null; - DataStreamDescriptorAction = null; - DataStreamValue = dataStream; - return Self; - } - - public PutIndexTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor descriptor) - { - DataStreamValue = null; - DataStreamDescriptorAction = null; - DataStreamDescriptor = descriptor; - return Self; - } - - public PutIndexTemplateRequestDescriptor DataStream(Action configure) - { - DataStreamValue = null; - DataStreamDescriptor = null; - DataStreamDescriptorAction = configure; - return Self; - } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - public PutIndexTemplateRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// The configuration option ignore_missing_component_templates can be used when an index template - /// references a component template that might not exist - /// - /// - public PutIndexTemplateRequestDescriptor IgnoreMissingComponentTemplates(ICollection? ignoreMissingComponentTemplates) - { - IgnoreMissingComponentTemplatesValue = ignoreMissingComponentTemplates; - return Self; - } - - /// - /// - /// Name of the index template to create. - /// - /// - public PutIndexTemplateRequestDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Serverless.Indices? indexPatterns) - { - IndexPatternsValue = indexPatterns; - return Self; - } - - /// - /// - /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - public PutIndexTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - public PutIndexTemplateRequestDescriptor Priority(long? priority) - { - PriorityValue = priority; - return Self; - } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - public PutIndexTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public PutIndexTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public PutIndexTemplateRequestDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - public PutIndexTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowAutoCreateValue.HasValue) - { - writer.WritePropertyName("allow_auto_create"); - writer.WriteBooleanValue(AllowAutoCreateValue.Value); - } - - if (ComposedOfValue is not null) - { - writer.WritePropertyName("composed_of"); - JsonSerializer.Serialize(writer, ComposedOfValue, options); - } - - if (DataStreamDescriptor is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamDescriptor, options); - } - else if (DataStreamDescriptorAction is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor(DataStreamDescriptorAction), options); - } - else if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (IgnoreMissingComponentTemplatesValue is not null) - { - writer.WritePropertyName("ignore_missing_component_templates"); - JsonSerializer.Serialize(writer, IgnoreMissingComponentTemplatesValue, options); - } - - if (IndexPatternsValue is not null) - { - writer.WritePropertyName("index_patterns"); - JsonSerializer.Serialize(writer, IndexPatternsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs deleted file mode 100644 index 0296d8cd3c5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndexTemplateResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutIndexTemplateResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs deleted file mode 100644 index ea49bfef5ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ /dev/null @@ -1,330 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutIndicesSettingsRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target - /// data streams, this argument determines whether wildcard expressions match - /// hidden data streams. Supports comma-separated values, such as - /// open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// If true, existing index settings remain unchanged. - /// - /// - public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the - /// timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public PutIndicesSettingsRequest() - { - } - - public PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_settings"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target - /// data streams, this argument determines whether wildcard expressions match - /// hidden data streams. Supports comma-separated values, such as - /// open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is - /// received before the timeout expires, the request fails and returns an - /// error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// If true, existing index settings remain unchanged. - /// - /// - [JsonIgnore] - public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the - /// timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings Settings { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Settings, options); - } -} - -/// -/// -/// 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> -{ - internal PutIndicesSettingsRequestDescriptor(Action> configure) => configure.Invoke(this); - public PutIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) => SettingsValue = settings; - public PutIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings) => SettingsValue = settings; - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_settings"; - - public PutIndicesSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutIndicesSettingsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutIndicesSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public PutIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public PutIndicesSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutIndicesSettingsRequestDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); - public PutIndicesSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutIndicesSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } - - public PutIndicesSettingsRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PutIndicesSettingsRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PutIndicesSettingsRequestDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, SettingsValue, options); - } -} - -/// -/// -/// 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 -{ - internal PutIndicesSettingsRequestDescriptor(Action configure) => configure.Invoke(this); - public PutIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) => SettingsValue = settings; - public PutIndicesSettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings) => SettingsValue = settings; - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutSettings; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_settings"; - - public PutIndicesSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutIndicesSettingsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutIndicesSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public PutIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public PutIndicesSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutIndicesSettingsRequestDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); - public PutIndicesSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutIndicesSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - - public PutIndicesSettingsRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PutIndicesSettingsRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PutIndicesSettingsRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, SettingsValue, options); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs deleted file mode 100644 index bf6e6f4e7ae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutIndicesSettingsResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutIndicesSettingsResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs deleted file mode 100644 index 64cd0a8f573..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ /dev/null @@ -1,1009 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutMappingRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If true, the mappings are applied only to the current write index for the target. - /// - /// - public bool? WriteIndexOnly { get => Q("write_index_only"); set => Q("write_index_only", value); } -} - -/// -/// -/// 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 -{ - public PutMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_mapping"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If true, the mappings are applied only to the current write index for the target. - /// - /// - [JsonIgnore] - public bool? WriteIndexOnly { get => Q("write_index_only"); set => Q("write_index_only", value); } - - /// - /// - /// Controls whether dynamic date detection is enabled. - /// - /// - [JsonInclude, JsonPropertyName("date_detection")] - public bool? DateDetection { get; set; } - - /// - /// - /// Controls whether new fields are added dynamically. - /// - /// - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - - /// - /// - /// If date detection is enabled then new string fields are checked - /// against 'dynamic_date_formats' and if the value matches then - /// a new date field is added instead of string. - /// - /// - [JsonInclude, JsonPropertyName("dynamic_date_formats")] - public ICollection? DynamicDateFormats { get; set; } - - /// - /// - /// Specify dynamic templates for the mapping. - /// - /// - [JsonInclude, JsonPropertyName("dynamic_templates")] - [SingleOrManyCollectionConverter(typeof(IReadOnlyDictionary))] - public ICollection>? DynamicTemplates { get; set; } - - /// - /// - /// Control whether field names are enabled for the index. - /// - /// - [JsonInclude, JsonPropertyName("_field_names")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? FieldNames { get; set; } - - /// - /// - /// A mapping type can have custom meta data associated with it. These are - /// not used at all by Elasticsearch, but can be used to store - /// application-specific metadata. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// Automatically map strings into numeric data types for all fields. - /// - /// - [JsonInclude, JsonPropertyName("numeric_detection")] - public bool? NumericDetection { get; set; } - - /// - /// - /// Mapping for a field. For new fields, this mapping can include: - /// - /// - /// - /// - /// Field name - /// - /// - /// - /// - /// Field data type - /// - /// - /// - /// - /// Mapping parameters - /// - /// - /// - /// - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - /// - /// - /// Enable making a routing value required on indexed documents. - /// - /// - [JsonInclude, JsonPropertyName("_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? Routing { get; set; } - - /// - /// - /// Mapping of runtime fields for the index. - /// - /// - [JsonInclude, JsonPropertyName("runtime")] - public IDictionary? Runtime { get; set; } - - /// - /// - /// Control whether the _source field is enabled on the index. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? Source { get; set; } -} - -/// -/// -/// 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> -{ - internal PutMappingRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public PutMappingRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_mapping"; - - public PutMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public PutMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutMappingRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public PutMappingRequestDescriptor WriteIndexOnly(bool? writeIndexOnly = true) => Qs("write_index_only", writeIndexOnly); - - public PutMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private bool? DateDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? FieldNamesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } - private Action FieldNamesDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NumericDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor RoutingDescriptor { get; set; } - private Action RoutingDescriptorAction { get; set; } - private IDictionary> RuntimeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - - /// - /// - /// Controls whether dynamic date detection is enabled. - /// - /// - public PutMappingRequestDescriptor DateDetection(bool? dateDetection = true) - { - DateDetectionValue = dateDetection; - return Self; - } - - /// - /// - /// Controls whether new fields are added dynamically. - /// - /// - public PutMappingRequestDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - /// - /// - /// If date detection is enabled then new string fields are checked - /// against 'dynamic_date_formats' and if the value matches then - /// a new date field is added instead of string. - /// - /// - public PutMappingRequestDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) - { - DynamicDateFormatsValue = dynamicDateFormats; - return Self; - } - - /// - /// - /// Specify dynamic templates for the mapping. - /// - /// - public PutMappingRequestDescriptor DynamicTemplates(ICollection>? dynamicTemplates) - { - DynamicTemplatesValue = dynamicTemplates; - return Self; - } - - /// - /// - /// Control whether field names are enabled for the index. - /// - /// - public PutMappingRequestDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? fieldNames) - { - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = null; - FieldNamesValue = fieldNames; - return Self; - } - - public PutMappingRequestDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor descriptor) - { - FieldNamesValue = null; - FieldNamesDescriptorAction = null; - FieldNamesDescriptor = descriptor; - return Self; - } - - public PutMappingRequestDescriptor FieldNames(Action configure) - { - FieldNamesValue = null; - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = configure; - return Self; - } - - /// - /// - /// A mapping type can have custom meta data associated with it. These are - /// not used at all by Elasticsearch, but can be used to store - /// application-specific metadata. - /// - /// - public PutMappingRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Automatically map strings into numeric data types for all fields. - /// - /// - public PutMappingRequestDescriptor NumericDetection(bool? numericDetection = true) - { - NumericDetectionValue = numericDetection; - return Self; - } - - /// - /// - /// Mapping for a field. For new fields, this mapping can include: - /// - /// - /// - /// - /// Field name - /// - /// - /// - /// - /// Field data type - /// - /// - /// - /// - /// Mapping parameters - /// - /// - /// - /// - public PutMappingRequestDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PutMappingRequestDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PutMappingRequestDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - /// - /// - /// Enable making a routing value required on indexed documents. - /// - /// - public PutMappingRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? routing) - { - RoutingDescriptor = null; - RoutingDescriptorAction = null; - RoutingValue = routing; - return Self; - } - - public PutMappingRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor descriptor) - { - RoutingValue = null; - RoutingDescriptorAction = null; - RoutingDescriptor = descriptor; - return Self; - } - - public PutMappingRequestDescriptor Routing(Action configure) - { - RoutingValue = null; - RoutingDescriptor = null; - RoutingDescriptorAction = configure; - return Self; - } - - /// - /// - /// Mapping of runtime fields for the index. - /// - /// - public PutMappingRequestDescriptor Runtime(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Control whether the _source field is enabled on the index. - /// - /// - public PutMappingRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PutMappingRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PutMappingRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DateDetectionValue.HasValue) - { - writer.WritePropertyName("date_detection"); - writer.WriteBooleanValue(DateDetectionValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (DynamicDateFormatsValue is not null) - { - writer.WritePropertyName("dynamic_date_formats"); - JsonSerializer.Serialize(writer, DynamicDateFormatsValue, options); - } - - if (DynamicTemplatesValue is not null) - { - writer.WritePropertyName("dynamic_templates"); - SingleOrManySerializationHelper.Serialize>(DynamicTemplatesValue, writer, options); - } - - if (FieldNamesDescriptor is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesDescriptor, options); - } - else if (FieldNamesDescriptorAction is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor(FieldNamesDescriptorAction), options); - } - else if (FieldNamesValue is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NumericDetectionValue.HasValue) - { - writer.WritePropertyName("numeric_detection"); - writer.WriteBooleanValue(NumericDetectionValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RoutingDescriptor is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingDescriptor, options); - } - else if (RoutingDescriptorAction is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor(RoutingDescriptorAction), options); - } - else if (RoutingValue is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (RuntimeValue is not null) - { - writer.WritePropertyName("runtime"); - JsonSerializer.Serialize(writer, RuntimeValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal PutMappingRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.put_mapping"; - - public PutMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public PutMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutMappingRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public PutMappingRequestDescriptor WriteIndexOnly(bool? writeIndexOnly = true) => Qs("write_index_only", writeIndexOnly); - - public PutMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private bool? DateDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? FieldNamesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } - private Action FieldNamesDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NumericDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor RoutingDescriptor { get; set; } - private Action RoutingDescriptorAction { get; set; } - private IDictionary RuntimeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - - /// - /// - /// Controls whether dynamic date detection is enabled. - /// - /// - public PutMappingRequestDescriptor DateDetection(bool? dateDetection = true) - { - DateDetectionValue = dateDetection; - return Self; - } - - /// - /// - /// Controls whether new fields are added dynamically. - /// - /// - public PutMappingRequestDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - /// - /// - /// If date detection is enabled then new string fields are checked - /// against 'dynamic_date_formats' and if the value matches then - /// a new date field is added instead of string. - /// - /// - public PutMappingRequestDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) - { - DynamicDateFormatsValue = dynamicDateFormats; - return Self; - } - - /// - /// - /// Specify dynamic templates for the mapping. - /// - /// - public PutMappingRequestDescriptor DynamicTemplates(ICollection>? dynamicTemplates) - { - DynamicTemplatesValue = dynamicTemplates; - return Self; - } - - /// - /// - /// Control whether field names are enabled for the index. - /// - /// - public PutMappingRequestDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? fieldNames) - { - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = null; - FieldNamesValue = fieldNames; - return Self; - } - - public PutMappingRequestDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor descriptor) - { - FieldNamesValue = null; - FieldNamesDescriptorAction = null; - FieldNamesDescriptor = descriptor; - return Self; - } - - public PutMappingRequestDescriptor FieldNames(Action configure) - { - FieldNamesValue = null; - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = configure; - return Self; - } - - /// - /// - /// A mapping type can have custom meta data associated with it. These are - /// not used at all by Elasticsearch, but can be used to store - /// application-specific metadata. - /// - /// - public PutMappingRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Automatically map strings into numeric data types for all fields. - /// - /// - public PutMappingRequestDescriptor NumericDetection(bool? numericDetection = true) - { - NumericDetectionValue = numericDetection; - return Self; - } - - /// - /// - /// Mapping for a field. For new fields, this mapping can include: - /// - /// - /// - /// - /// Field name - /// - /// - /// - /// - /// Field data type - /// - /// - /// - /// - /// Mapping parameters - /// - /// - /// - /// - public PutMappingRequestDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PutMappingRequestDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PutMappingRequestDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - /// - /// - /// Enable making a routing value required on indexed documents. - /// - /// - public PutMappingRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? routing) - { - RoutingDescriptor = null; - RoutingDescriptorAction = null; - RoutingValue = routing; - return Self; - } - - public PutMappingRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor descriptor) - { - RoutingValue = null; - RoutingDescriptorAction = null; - RoutingDescriptor = descriptor; - return Self; - } - - public PutMappingRequestDescriptor Routing(Action configure) - { - RoutingValue = null; - RoutingDescriptor = null; - RoutingDescriptorAction = configure; - return Self; - } - - /// - /// - /// Mapping of runtime fields for the index. - /// - /// - public PutMappingRequestDescriptor Runtime(Func, FluentDescriptorDictionary> selector) - { - RuntimeValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Control whether the _source field is enabled on the index. - /// - /// - public PutMappingRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PutMappingRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PutMappingRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DateDetectionValue.HasValue) - { - writer.WritePropertyName("date_detection"); - writer.WriteBooleanValue(DateDetectionValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (DynamicDateFormatsValue is not null) - { - writer.WritePropertyName("dynamic_date_formats"); - JsonSerializer.Serialize(writer, DynamicDateFormatsValue, options); - } - - if (DynamicTemplatesValue is not null) - { - writer.WritePropertyName("dynamic_templates"); - SingleOrManySerializationHelper.Serialize>(DynamicTemplatesValue, writer, options); - } - - if (FieldNamesDescriptor is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesDescriptor, options); - } - else if (FieldNamesDescriptorAction is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor(FieldNamesDescriptorAction), options); - } - else if (FieldNamesValue is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NumericDetectionValue.HasValue) - { - writer.WritePropertyName("numeric_detection"); - writer.WriteBooleanValue(NumericDetectionValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RoutingDescriptor is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingDescriptor, options); - } - else if (RoutingDescriptorAction is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor(RoutingDescriptorAction), options); - } - else if (RoutingValue is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (RuntimeValue is not null) - { - writer.WritePropertyName("runtime"); - JsonSerializer.Serialize(writer, RuntimeValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingResponse.g.cs deleted file mode 100644 index 3e6986a7ede..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutMappingResponse.g.cs +++ /dev/null @@ -1,40 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class PutMappingResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs deleted file mode 100644 index cfd93778ad2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ /dev/null @@ -1,313 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class RecoveryRequestParameters : RequestParameters -{ - /// - /// - /// If true, the response only includes ongoing shard recoveries. - /// - /// - public bool? ActiveOnly { get => Q("active_only"); set => Q("active_only", value); } - - /// - /// - /// If true, the response includes detailed information about shard recoveries. - /// - /// - public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } -} - -/// -/// -/// Get index recovery information. -/// Get information about ongoing and completed shard recoveries for one or more indices. -/// For data streams, the API returns information for the stream's backing indices. -/// -/// -/// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. -/// When a shard recovery completes, the recovered shard is available for search and indexing. -/// -/// -/// Recovery automatically occurs during the following processes: -/// -/// -/// -/// -/// When creating an index for the first time. -/// -/// -/// -/// -/// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. -/// -/// -/// -/// -/// Creation of new replica shard copies from the primary. -/// -/// -/// -/// -/// Relocation of a shard copy to a different node in the same cluster. -/// -/// -/// -/// -/// A snapshot restore operation. -/// -/// -/// -/// -/// A clone, shrink, or split operation. -/// -/// -/// -/// -/// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. -/// -/// -/// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. -/// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. -/// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. -/// -/// -public sealed partial class RecoveryRequest : PlainRequest -{ - public RecoveryRequest() - { - } - - public RecoveryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRecovery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.recovery"; - - /// - /// - /// If true, the response only includes ongoing shard recoveries. - /// - /// - [JsonIgnore] - public bool? ActiveOnly { get => Q("active_only"); set => Q("active_only", value); } - - /// - /// - /// If true, the response includes detailed information about shard recoveries. - /// - /// - [JsonIgnore] - public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } -} - -/// -/// -/// Get index recovery information. -/// Get information about ongoing and completed shard recoveries for one or more indices. -/// For data streams, the API returns information for the stream's backing indices. -/// -/// -/// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. -/// When a shard recovery completes, the recovered shard is available for search and indexing. -/// -/// -/// Recovery automatically occurs during the following processes: -/// -/// -/// -/// -/// When creating an index for the first time. -/// -/// -/// -/// -/// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. -/// -/// -/// -/// -/// Creation of new replica shard copies from the primary. -/// -/// -/// -/// -/// Relocation of a shard copy to a different node in the same cluster. -/// -/// -/// -/// -/// A snapshot restore operation. -/// -/// -/// -/// -/// A clone, shrink, or split operation. -/// -/// -/// -/// -/// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. -/// -/// -/// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. -/// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. -/// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. -/// -/// -public sealed partial class RecoveryRequestDescriptor : RequestDescriptor, RecoveryRequestParameters> -{ - internal RecoveryRequestDescriptor(Action> configure) => configure.Invoke(this); - - public RecoveryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public RecoveryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRecovery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.recovery"; - - public RecoveryRequestDescriptor ActiveOnly(bool? activeOnly = true) => Qs("active_only", activeOnly); - public RecoveryRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); - - public RecoveryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get index recovery information. -/// Get information about ongoing and completed shard recoveries for one or more indices. -/// For data streams, the API returns information for the stream's backing indices. -/// -/// -/// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. -/// When a shard recovery completes, the recovered shard is available for search and indexing. -/// -/// -/// Recovery automatically occurs during the following processes: -/// -/// -/// -/// -/// When creating an index for the first time. -/// -/// -/// -/// -/// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. -/// -/// -/// -/// -/// Creation of new replica shard copies from the primary. -/// -/// -/// -/// -/// Relocation of a shard copy to a different node in the same cluster. -/// -/// -/// -/// -/// A snapshot restore operation. -/// -/// -/// -/// -/// A clone, shrink, or split operation. -/// -/// -/// -/// -/// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. -/// -/// -/// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. -/// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. -/// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. -/// -/// -public sealed partial class RecoveryRequestDescriptor : RequestDescriptor -{ - internal RecoveryRequestDescriptor(Action configure) => configure.Invoke(this); - - public RecoveryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public RecoveryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRecovery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.recovery"; - - public RecoveryRequestDescriptor ActiveOnly(bool? activeOnly = true) => Qs("active_only", activeOnly); - public RecoveryRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); - - public RecoveryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryResponse.g.cs deleted file mode 100644 index 839cb26c277..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RecoveryResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class RecoveryResponse : DictionaryResponse -{ - public RecoveryResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public RecoveryResponse() : base() - { - } -} \ No newline at end of file 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 deleted file mode 100644 index d8b77384e22..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ /dev/null @@ -1,197 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class RefreshRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// 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 -{ - public RefreshRequest() - { - } - - public RefreshRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRefresh; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.refresh"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// 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> -{ - internal RefreshRequestDescriptor(Action> configure) => configure.Invoke(this); - - public RefreshRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public RefreshRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRefresh; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.refresh"; - - public RefreshRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RefreshRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public RefreshRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public RefreshRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// 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 -{ - internal RefreshRequestDescriptor(Action configure) => configure.Invoke(this); - - public RefreshRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public RefreshRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRefresh; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.refresh"; - - public RefreshRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RefreshRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public RefreshRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public RefreshRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs deleted file mode 100644 index 52956bca56e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class RefreshResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs deleted file mode 100644 index eeb834c823a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ /dev/null @@ -1,149 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ResolveIndexRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// Resolve indices. -/// Resolve the names and/or index patterns for indices, aliases, and data streams. -/// Multiple patterns and remote clusters are supported. -/// -/// -public sealed partial class ResolveIndexRequest : PlainRequest -{ - public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementResolveIndex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.resolve_index"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// Resolve indices. -/// Resolve the names and/or index patterns for indices, aliases, and data streams. -/// Multiple patterns and remote clusters are supported. -/// -/// -public sealed partial class ResolveIndexRequestDescriptor : RequestDescriptor -{ - internal ResolveIndexRequestDescriptor(Action configure) => configure.Invoke(this); - - public ResolveIndexRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementResolveIndex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.resolve_index"; - - public ResolveIndexRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ResolveIndexRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ResolveIndexRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs deleted file mode 100644 index ec8b5501790..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ResolveIndexResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ResolveIndexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aliases")] - public IReadOnlyCollection Aliases { get; init; } - [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 8fb0a81cfd2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ /dev/null @@ -1,544 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class RolloverRequestParameters : RequestParameters -{ - /// - /// - /// If true, checks whether the current index satisfies the specified conditions but does not perform a rollover. - /// - /// - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Roll over to a new index. -/// Creates a new index for a data stream or index alias. -/// -/// -public sealed partial class RolloverRequest : PlainRequest -{ - public RolloverRequest(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias) : base(r => r.Required("alias", alias)) - { - } - - public RolloverRequest(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex) : base(r => r.Required("alias", alias).Optional("new_index", newIndex)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRollover; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.rollover"; - - /// - /// - /// If true, checks whether the current index satisfies the specified conditions but does not perform a rollover. - /// - /// - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// Aliases for the target index. - /// Data streams do not support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - public IDictionary? Aliases { get; set; } - - /// - /// - /// Conditions for the rollover. - /// If specified, Elasticsearch only performs the rollover if the current index satisfies these conditions. - /// If this parameter is not specified, Elasticsearch performs the rollover unconditionally. - /// If conditions are specified, at least one of them must be a max_* condition. - /// The index will rollover if any max_* condition is satisfied and all min_* conditions are satisfied. - /// - /// - [JsonInclude, JsonPropertyName("conditions")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditions? Conditions { get; set; } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping paramaters. - /// - /// - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; set; } - - /// - /// - /// Configuration options for the index. - /// Data streams do not support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public IDictionary? Settings { get; set; } -} - -/// -/// -/// Roll over to a new index. -/// Creates a new index for a data stream or index alias. -/// -/// -public sealed partial class RolloverRequestDescriptor : RequestDescriptor, RolloverRequestParameters> -{ - internal RolloverRequestDescriptor(Action> configure) => configure.Invoke(this); - - public RolloverRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex) : base(r => r.Required("alias", alias).Optional("new_index", newIndex)) - { - } - - public RolloverRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias) : this(alias, typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRollover; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.rollover"; - - public RolloverRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - public RolloverRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public RolloverRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public RolloverRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public RolloverRequestDescriptor Alias(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias) - { - RouteValues.Required("alias", alias); - return Self; - } - - public RolloverRequestDescriptor NewIndex(Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex) - { - RouteValues.Optional("new_index", newIndex); - return Self; - } - - private IDictionary> AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditions? ConditionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditionsDescriptor ConditionsDescriptor { get; set; } - private Action ConditionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action> MappingsDescriptorAction { get; set; } - private IDictionary? SettingsValue { get; set; } - - /// - /// - /// Aliases for the target index. - /// Data streams do not support this parameter. - /// - /// - public RolloverRequestDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Conditions for the rollover. - /// If specified, Elasticsearch only performs the rollover if the current index satisfies these conditions. - /// If this parameter is not specified, Elasticsearch performs the rollover unconditionally. - /// If conditions are specified, at least one of them must be a max_* condition. - /// The index will rollover if any max_* condition is satisfied and all min_* conditions are satisfied. - /// - /// - public RolloverRequestDescriptor Conditions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditions? conditions) - { - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsValue = conditions; - return Self; - } - - public RolloverRequestDescriptor Conditions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditionsDescriptor descriptor) - { - ConditionsValue = null; - ConditionsDescriptorAction = null; - ConditionsDescriptor = descriptor; - return Self; - } - - public RolloverRequestDescriptor Conditions(Action configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping paramaters. - /// - /// - public RolloverRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public RolloverRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public RolloverRequestDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// Data streams do not support this parameter. - /// - /// - public RolloverRequestDescriptor Settings(Func, FluentDictionary> selector) - { - SettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (ConditionsDescriptor is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsDescriptor, options); - } - else if (ConditionsDescriptorAction is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditionsDescriptor(ConditionsDescriptorAction), options); - } - else if (ConditionsValue is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Roll over to a new index. -/// Creates a new index for a data stream or index alias. -/// -/// -public sealed partial class RolloverRequestDescriptor : RequestDescriptor -{ - internal RolloverRequestDescriptor(Action configure) => configure.Invoke(this); - - public RolloverRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex) : base(r => r.Required("alias", alias).Optional("new_index", newIndex)) - { - } - - public RolloverRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias) : base(r => r.Required("alias", alias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRollover; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.rollover"; - - public RolloverRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - public RolloverRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public RolloverRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public RolloverRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public RolloverRequestDescriptor Alias(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias) - { - RouteValues.Required("alias", alias); - return Self; - } - - public RolloverRequestDescriptor NewIndex(Elastic.Clients.Elasticsearch.Serverless.IndexName? newIndex) - { - RouteValues.Optional("new_index", newIndex); - return Self; - } - - private IDictionary AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditions? ConditionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditionsDescriptor ConditionsDescriptor { get; set; } - private Action ConditionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action MappingsDescriptorAction { get; set; } - private IDictionary? SettingsValue { get; set; } - - /// - /// - /// Aliases for the target index. - /// Data streams do not support this parameter. - /// - /// - public RolloverRequestDescriptor Aliases(Func, FluentDescriptorDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Conditions for the rollover. - /// If specified, Elasticsearch only performs the rollover if the current index satisfies these conditions. - /// If this parameter is not specified, Elasticsearch performs the rollover unconditionally. - /// If conditions are specified, at least one of them must be a max_* condition. - /// The index will rollover if any max_* condition is satisfied and all min_* conditions are satisfied. - /// - /// - public RolloverRequestDescriptor Conditions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditions? conditions) - { - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsValue = conditions; - return Self; - } - - public RolloverRequestDescriptor Conditions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditionsDescriptor descriptor) - { - ConditionsValue = null; - ConditionsDescriptorAction = null; - ConditionsDescriptor = descriptor; - return Self; - } - - public RolloverRequestDescriptor Conditions(Action configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping paramaters. - /// - /// - public RolloverRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public RolloverRequestDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public RolloverRequestDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// Data streams do not support this parameter. - /// - /// - public RolloverRequestDescriptor Settings(Func, FluentDictionary> selector) - { - SettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (ConditionsDescriptor is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsDescriptor, options); - } - else if (ConditionsDescriptorAction is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RolloverConditionsDescriptor(ConditionsDescriptorAction), options); - } - else if (ConditionsValue is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverResponse.g.cs deleted file mode 100644 index ffdebd2dbda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RolloverResponse.g.cs +++ /dev/null @@ -1,45 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class RolloverResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("conditions")] - public IReadOnlyDictionary Conditions { get; init; } - [JsonInclude, JsonPropertyName("dry_run")] - public bool DryRun { get; init; } - [JsonInclude, JsonPropertyName("new_index")] - public string NewIndex { get; init; } - [JsonInclude, JsonPropertyName("old_index")] - public string OldIndex { get; init; } - [JsonInclude, JsonPropertyName("rolled_over")] - public bool RolledOver { get; init; } - [JsonInclude, JsonPropertyName("shards_acknowledged")] - public bool ShardsAcknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs deleted file mode 100644 index 7df19f21d9d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ /dev/null @@ -1,197 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class SegmentsRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// Get index segments. -/// Get low-level information about the Lucene segments in index shards. -/// For data streams, the API returns information about the stream's backing indices. -/// -/// -public sealed partial class SegmentsRequest : PlainRequest -{ - public SegmentsRequest() - { - } - - public SegmentsRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSegments; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.segments"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// Get index segments. -/// Get low-level information about the Lucene segments in index shards. -/// For data streams, the API returns information about the stream's backing indices. -/// -/// -public sealed partial class SegmentsRequestDescriptor : RequestDescriptor, SegmentsRequestParameters> -{ - internal SegmentsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SegmentsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SegmentsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSegments; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.segments"; - - public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get index segments. -/// Get low-level information about the Lucene segments in index shards. -/// For data streams, the API returns information about the stream's backing indices. -/// -/// -public sealed partial class SegmentsRequestDescriptor : RequestDescriptor -{ - internal SegmentsRequestDescriptor(Action configure) => configure.Invoke(this); - - public SegmentsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SegmentsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSegments; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.segments"; - - public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsResponse.g.cs deleted file mode 100644 index a013b743050..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SegmentsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class SegmentsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyDictionary Indices { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs deleted file mode 100644 index b5ec5a933a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ /dev/null @@ -1,121 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class SimulateIndexTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Simulate an index. -/// Returns the index configuration that would be applied to the specified index from an existing index template. -/// -/// -public sealed partial class SimulateIndexTemplateRequest : PlainRequest -{ - public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSimulateIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.simulate_index_template"; - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Simulate an index. -/// Returns the index configuration that would be applied to the specified index from an existing index template. -/// -/// -public sealed partial class SimulateIndexTemplateRequestDescriptor : RequestDescriptor -{ - internal SimulateIndexTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public SimulateIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSimulateIndexTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.simulate_index_template"; - - public SimulateIndexTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public SimulateIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs deleted file mode 100644 index d5f4ab63e53..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateIndexTemplateResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class SimulateIndexTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("overlapping")] - public IReadOnlyCollection? Overlapping { get; init; } - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Template Template { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs deleted file mode 100644 index 0eda30d559e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ /dev/null @@ -1,794 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class SimulateTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. - /// - /// - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Simulate an index template. -/// Returns the index configuration that would be applied by a particular index template. -/// -/// -public sealed partial class SimulateTemplateRequest : PlainRequest -{ - public SimulateTemplateRequest() - { - } - - public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSimulateTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.simulate_template"; - - /// - /// - /// If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. - /// - /// - [JsonIgnore] - public bool? Create { get => Q("create"); set => Q("create", value); } - - /// - /// - /// If true, returns all relevant default configurations for the index template. - /// - /// - [JsonIgnore] - public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// This setting overrides the value of the action.auto_create_index cluster setting. - /// If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. - /// If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - /// - /// - [JsonInclude, JsonPropertyName("allow_auto_create")] - public bool? AllowAutoCreate { get; set; } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - [JsonInclude, JsonPropertyName("composed_of")] - public ICollection? ComposedOf { get; set; } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - [JsonInclude, JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? DataStream { get; set; } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; set; } - - /// - /// - /// The configuration option ignore_missing_component_templates can be used when an index template - /// references a component template that might not exist - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing_component_templates")] - public ICollection? IgnoreMissingComponentTemplates { get; set; } - - /// - /// - /// Array of wildcard (*) expressions used to match the names of data streams and indices during creation. - /// - /// - [JsonInclude, JsonPropertyName("index_patterns")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? IndexPatterns { get; set; } - - /// - /// - /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("priority")] - public long? Priority { get; set; } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? Template { get; set; } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } -} - -/// -/// -/// Simulate an index template. -/// Returns the index configuration that would be applied by a particular index template. -/// -/// -public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor, SimulateTemplateRequestParameters> -{ - internal SimulateTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SimulateTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - public SimulateTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSimulateTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.simulate_template"; - - public SimulateTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public SimulateTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public SimulateTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public SimulateTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - private bool? AllowAutoCreateValue { get; set; } - private ICollection? ComposedOfValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor DataStreamDescriptor { get; set; } - private Action DataStreamDescriptorAction { get; set; } - private bool? DeprecatedValue { get; set; } - private ICollection? IgnoreMissingComponentTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndexPatternsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor TemplateDescriptor { get; set; } - private Action> TemplateDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// This setting overrides the value of the action.auto_create_index cluster setting. - /// If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. - /// If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - /// - /// - public SimulateTemplateRequestDescriptor AllowAutoCreate(bool? allowAutoCreate = true) - { - AllowAutoCreateValue = allowAutoCreate; - return Self; - } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - public SimulateTemplateRequestDescriptor ComposedOf(ICollection? composedOf) - { - ComposedOfValue = composedOf; - return Self; - } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - public SimulateTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? dataStream) - { - DataStreamDescriptor = null; - DataStreamDescriptorAction = null; - DataStreamValue = dataStream; - return Self; - } - - public SimulateTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor descriptor) - { - DataStreamValue = null; - DataStreamDescriptorAction = null; - DataStreamDescriptor = descriptor; - return Self; - } - - public SimulateTemplateRequestDescriptor DataStream(Action configure) - { - DataStreamValue = null; - DataStreamDescriptor = null; - DataStreamDescriptorAction = configure; - return Self; - } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - public SimulateTemplateRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// The configuration option ignore_missing_component_templates can be used when an index template - /// references a component template that might not exist - /// - /// - public SimulateTemplateRequestDescriptor IgnoreMissingComponentTemplates(ICollection? ignoreMissingComponentTemplates) - { - IgnoreMissingComponentTemplatesValue = ignoreMissingComponentTemplates; - return Self; - } - - /// - /// - /// Array of wildcard (*) expressions used to match the names of data streams and indices during creation. - /// - /// - public SimulateTemplateRequestDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Serverless.Indices? indexPatterns) - { - IndexPatternsValue = indexPatterns; - return Self; - } - - /// - /// - /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - public SimulateTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - public SimulateTemplateRequestDescriptor Priority(long? priority) - { - PriorityValue = priority; - return Self; - } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - public SimulateTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public SimulateTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public SimulateTemplateRequestDescriptor Template(Action> configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - public SimulateTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowAutoCreateValue.HasValue) - { - writer.WritePropertyName("allow_auto_create"); - writer.WriteBooleanValue(AllowAutoCreateValue.Value); - } - - if (ComposedOfValue is not null) - { - writer.WritePropertyName("composed_of"); - JsonSerializer.Serialize(writer, ComposedOfValue, options); - } - - if (DataStreamDescriptor is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamDescriptor, options); - } - else if (DataStreamDescriptorAction is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor(DataStreamDescriptorAction), options); - } - else if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (IgnoreMissingComponentTemplatesValue is not null) - { - writer.WritePropertyName("ignore_missing_component_templates"); - JsonSerializer.Serialize(writer, IgnoreMissingComponentTemplatesValue, options); - } - - if (IndexPatternsValue is not null) - { - writer.WritePropertyName("index_patterns"); - JsonSerializer.Serialize(writer, IndexPatternsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Simulate an index template. -/// Returns the index configuration that would be applied by a particular index template. -/// -/// -public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor -{ - internal SimulateTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public SimulateTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Optional("name", name)) - { - } - - public SimulateTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementSimulateTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.simulate_template"; - - public SimulateTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); - public SimulateTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); - public SimulateTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public SimulateTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - private bool? AllowAutoCreateValue { get; set; } - private ICollection? ComposedOfValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor DataStreamDescriptor { get; set; } - private Action DataStreamDescriptorAction { get; set; } - private bool? DeprecatedValue { get; set; } - private ICollection? IgnoreMissingComponentTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndexPatternsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// This setting overrides the value of the action.auto_create_index cluster setting. - /// If set to true in a template, then indices can be automatically created using that template even if auto-creation of indices is disabled via actions.auto_create_index. - /// If set to false, then indices or data streams matching the template must always be explicitly created, and may never be automatically created. - /// - /// - public SimulateTemplateRequestDescriptor AllowAutoCreate(bool? allowAutoCreate = true) - { - AllowAutoCreateValue = allowAutoCreate; - return Self; - } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - public SimulateTemplateRequestDescriptor ComposedOf(ICollection? composedOf) - { - ComposedOfValue = composedOf; - return Self; - } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - public SimulateTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibility? dataStream) - { - DataStreamDescriptor = null; - DataStreamDescriptorAction = null; - DataStreamValue = dataStream; - return Self; - } - - public SimulateTemplateRequestDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor descriptor) - { - DataStreamValue = null; - DataStreamDescriptorAction = null; - DataStreamDescriptor = descriptor; - return Self; - } - - public SimulateTemplateRequestDescriptor DataStream(Action configure) - { - DataStreamValue = null; - DataStreamDescriptor = null; - DataStreamDescriptorAction = configure; - return Self; - } - - /// - /// - /// Marks this index template as deprecated. When creating or updating a non-deprecated index template - /// that uses deprecated components, Elasticsearch will emit a deprecation warning. - /// - /// - public SimulateTemplateRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// The configuration option ignore_missing_component_templates can be used when an index template - /// references a component template that might not exist - /// - /// - public SimulateTemplateRequestDescriptor IgnoreMissingComponentTemplates(ICollection? ignoreMissingComponentTemplates) - { - IgnoreMissingComponentTemplatesValue = ignoreMissingComponentTemplates; - return Self; - } - - /// - /// - /// Array of wildcard (*) expressions used to match the names of data streams and indices during creation. - /// - /// - public SimulateTemplateRequestDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Serverless.Indices? indexPatterns) - { - IndexPatternsValue = indexPatterns; - return Self; - } - - /// - /// - /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - public SimulateTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - public SimulateTemplateRequestDescriptor Priority(long? priority) - { - PriorityValue = priority; - return Self; - } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - public SimulateTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMapping? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public SimulateTemplateRequestDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public SimulateTemplateRequestDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - public SimulateTemplateRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowAutoCreateValue.HasValue) - { - writer.WritePropertyName("allow_auto_create"); - writer.WriteBooleanValue(AllowAutoCreateValue.Value); - } - - if (ComposedOfValue is not null) - { - writer.WritePropertyName("composed_of"); - JsonSerializer.Serialize(writer, ComposedOfValue, options); - } - - if (DataStreamDescriptor is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamDescriptor, options); - } - else if (DataStreamDescriptorAction is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamVisibilityDescriptor(DataStreamDescriptorAction), options); - } - else if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (IgnoreMissingComponentTemplatesValue is not null) - { - writer.WritePropertyName("ignore_missing_component_templates"); - JsonSerializer.Serialize(writer, IgnoreMissingComponentTemplatesValue, options); - } - - if (IndexPatternsValue is not null) - { - writer.WritePropertyName("index_patterns"); - JsonSerializer.Serialize(writer, IndexPatternsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateMappingDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs deleted file mode 100644 index 2cc6cb2844c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/SimulateTemplateResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class SimulateTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("overlapping")] - public IReadOnlyCollection? Overlapping { get; init; } - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Template Template { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index eb681f76ea7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesRequest.g.cs +++ /dev/null @@ -1,311 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class UpdateAliasesRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update an alias. -/// Adds a data stream or index to an alias. -/// -/// -public sealed partial class UpdateAliasesRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementUpdateAliases; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.update_aliases"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Actions to perform. - /// - /// - [JsonInclude, JsonPropertyName("actions")] - public ICollection? Actions { get; set; } -} - -/// -/// -/// Create or update an alias. -/// Adds a data stream or index to an alias. -/// -/// -public sealed partial class UpdateAliasesRequestDescriptor : RequestDescriptor, UpdateAliasesRequestParameters> -{ - internal UpdateAliasesRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateAliasesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementUpdateAliases; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.update_aliases"; - - public UpdateAliasesRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public UpdateAliasesRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - private ICollection? ActionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor ActionsDescriptor { get; set; } - private Action> ActionsDescriptorAction { get; set; } - private Action>[] ActionsDescriptorActions { get; set; } - - /// - /// - /// Actions to perform. - /// - /// - public UpdateAliasesRequestDescriptor Actions(ICollection? actions) - { - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = null; - ActionsValue = actions; - return Self; - } - - public UpdateAliasesRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor descriptor) - { - ActionsValue = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = null; - ActionsDescriptor = descriptor; - return Self; - } - - public UpdateAliasesRequestDescriptor Actions(Action> configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorActions = null; - ActionsDescriptorAction = configure; - return Self; - } - - public UpdateAliasesRequestDescriptor Actions(params Action>[] configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsDescriptor is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ActionsDescriptor, options); - writer.WriteEndArray(); - } - else if (ActionsDescriptorAction is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor(ActionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ActionsDescriptorActions is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - foreach (var action in ActionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ActionsValue is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update an alias. -/// Adds a data stream or index to an alias. -/// -/// -public sealed partial class UpdateAliasesRequestDescriptor : RequestDescriptor -{ - internal UpdateAliasesRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateAliasesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementUpdateAliases; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.update_aliases"; - - public UpdateAliasesRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public UpdateAliasesRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - private ICollection? ActionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor ActionsDescriptor { get; set; } - private Action ActionsDescriptorAction { get; set; } - private Action[] ActionsDescriptorActions { get; set; } - - /// - /// - /// Actions to perform. - /// - /// - public UpdateAliasesRequestDescriptor Actions(ICollection? actions) - { - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = null; - ActionsValue = actions; - return Self; - } - - public UpdateAliasesRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor descriptor) - { - ActionsValue = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = null; - ActionsDescriptor = descriptor; - return Self; - } - - public UpdateAliasesRequestDescriptor Actions(Action configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorActions = null; - ActionsDescriptorAction = configure; - return Self; - } - - public UpdateAliasesRequestDescriptor Actions(params Action[] configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsDescriptor is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ActionsDescriptor, options); - writer.WriteEndArray(); - } - else if (ActionsDescriptorAction is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor(ActionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ActionsDescriptorActions is not null) - { - writer.WritePropertyName("actions"); - writer.WriteStartArray(); - foreach (var action in ActionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesActionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ActionsValue is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs deleted file mode 100644 index cca0075dcba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/UpdateAliasesResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class UpdateAliasesResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs deleted file mode 100644 index 74dcc20cc2e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ /dev/null @@ -1,461 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ValidateQueryRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, the validation is executed on all shards instead of one random shard per index. - /// - /// - public bool? AllShards { get => Q("all_shards"); set => Q("all_shards", value); } - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, the response returns detailed information if an error has occurred. - /// - /// - public bool? Explain { get => Q("explain"); set => Q("explain", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, returns a more detailed explanation showing the actual Lucene query that will be executed. - /// - /// - public bool? Rewrite { get => Q("rewrite"); set => Q("rewrite", value); } -} - -/// -/// -/// Validate a query. -/// Validates a query without running it. -/// -/// -public sealed partial class ValidateQueryRequest : PlainRequest -{ - public ValidateQueryRequest() - { - } - - public ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementValidateQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.validate_query"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, the validation is executed on all shards instead of one random shard per index. - /// - /// - [JsonIgnore] - public bool? AllShards { get => Q("all_shards"); set => Q("all_shards", value); } - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, the response returns detailed information if an error has occurred. - /// - /// - [JsonIgnore] - public bool? Explain { get => Q("explain"); set => Q("explain", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, returns a more detailed explanation showing the actual Lucene query that will be executed. - /// - /// - [JsonIgnore] - public bool? Rewrite { get => Q("rewrite"); set => Q("rewrite", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } -} - -/// -/// -/// Validate a query. -/// Validates a query without running it. -/// -/// -public sealed partial class ValidateQueryRequestDescriptor : RequestDescriptor, ValidateQueryRequestParameters> -{ - internal ValidateQueryRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ValidateQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public ValidateQueryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementValidateQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.validate_query"; - - public ValidateQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ValidateQueryRequestDescriptor AllShards(bool? allShards = true) => Qs("all_shards", allShards); - public ValidateQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public ValidateQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public ValidateQueryRequestDescriptor Df(string? df) => Qs("df", df); - public ValidateQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ValidateQueryRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); - public ValidateQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ValidateQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public ValidateQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public ValidateQueryRequestDescriptor Rewrite(bool? rewrite = true) => Qs("rewrite", rewrite); - - public ValidateQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public ValidateQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ValidateQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ValidateQueryRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Validate a query. -/// Validates a query without running it. -/// -/// -public sealed partial class ValidateQueryRequestDescriptor : RequestDescriptor -{ - internal ValidateQueryRequestDescriptor(Action configure) => configure.Invoke(this); - - public ValidateQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public ValidateQueryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementValidateQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "indices.validate_query"; - - public ValidateQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ValidateQueryRequestDescriptor AllShards(bool? allShards = true) => Qs("all_shards", allShards); - public ValidateQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public ValidateQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public ValidateQueryRequestDescriptor Df(string? df) => Qs("df", df); - public ValidateQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ValidateQueryRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); - public ValidateQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ValidateQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public ValidateQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public ValidateQueryRequestDescriptor Rewrite(bool? rewrite = true) => Qs("rewrite", rewrite); - - public ValidateQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public ValidateQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ValidateQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ValidateQueryRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs deleted file mode 100644 index 6d138d626de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ValidateQueryResponse.g.cs +++ /dev/null @@ -1,39 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed partial class ValidateQueryResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("error")] - public string? Error { get; init; } - [JsonInclude, JsonPropertyName("explanations")] - public IReadOnlyCollection? Explanations { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } - [JsonInclude, JsonPropertyName("valid")] - public bool Valid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs deleted file mode 100644 index de8f1f2caf9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs +++ /dev/null @@ -1,322 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 IndexRequestParameters : RequestParameters -{ - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// Set to create to only index the document if it does not already exist (put if absent). - /// If a document with the specified _id already exists, the indexing operation will fail. - /// Same as using the <index>/_create endpoint. - /// Valid values: index, create. - /// If document id is specified, it defaults to index. - /// Otherwise, it defaults to create. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the destination must be an index alias. - /// - /// - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// 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 -{ - public IndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Required("index", index).Optional("id", id)) - { - } - - public IndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceIndex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "index"; - - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - [JsonIgnore] - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - [JsonIgnore] - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// Set to create to only index the document if it does not already exist (put if absent). - /// If a document with the specified _id already exists, the indexing operation will fail. - /// Same as using the <index>/_create endpoint. - /// Valid values: index, create. - /// If document id is specified, it defaults to index. - /// Otherwise, it defaults to create. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - [JsonIgnore] - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the destination must be an index alias. - /// - /// - [JsonIgnore] - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type: external, external_gte. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - [JsonIgnore] - public TDocument Document { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - settings.SourceSerializer.Serialize(Document, writer); - } -} - -/// -/// -/// 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> -{ - internal IndexRequestDescriptor(Action> configure) => configure.Invoke(this); - public IndexRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Required("index", index).Optional("id", id)) => DocumentValue = document; - - public IndexRequestDescriptor(TDocument document) : this(document, typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public IndexRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(document, index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public IndexRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id? id) : this(document, typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceIndex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "index"; - - public IndexRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); - public IndexRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); - public IndexRequestDescriptor OpType(Elastic.Clients.Elasticsearch.Serverless.OpType? opType) => Qs("op_type", opType); - public IndexRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); - public IndexRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public IndexRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); - public IndexRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public IndexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public IndexRequestDescriptor Version(long? version) => Qs("version", version); - public IndexRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - public IndexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public IndexRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - public IndexRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private TDocument DocumentValue { get; set; } - - public IndexRequestDescriptor Document(TDocument document) - { - DocumentValue = document; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - settings.SourceSerializer.Serialize(DocumentValue, writer); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexResponse.g.cs deleted file mode 100644 index ce056a65bd4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexResponse.g.cs +++ /dev/null @@ -1,47 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class IndexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("forced_refresh")] - public bool? ForcedRefresh { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs deleted file mode 100644 index b2db5f61ffa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceRequest.g.cs +++ /dev/null @@ -1,133 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class DeleteInferenceRequestParameters : RequestParameters -{ - /// - /// - /// When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned - /// - /// - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - /// - /// - /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Delete an inference endpoint -/// -/// -public sealed partial class DeleteInferenceRequest : PlainRequest -{ - public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) - { - } - - public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "inference.delete"; - - /// - /// - /// When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned - /// - /// - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - /// - /// - /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Delete an inference endpoint -/// -/// -public sealed partial class DeleteInferenceRequestDescriptor : RequestDescriptor -{ - internal DeleteInferenceRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } - - public DeleteInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "inference.delete"; - - public DeleteInferenceRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - public DeleteInferenceRequestDescriptor Force(bool? force = true) => Qs("force", force); - - public DeleteInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) - { - RouteValues.Required("inference_id", inferenceId); - return Self; - } - - public DeleteInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) - { - RouteValues.Optional("task_type", taskType); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs deleted file mode 100644 index 87912c59bf7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/DeleteInferenceResponse.g.cs +++ /dev/null @@ -1,40 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class DeleteInferenceResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("pipelines")] - public IReadOnlyCollection Pipelines { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs deleted file mode 100644 index f18bb03711f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class GetInferenceRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get an inference endpoint -/// -/// -public sealed partial class GetInferenceRequest : PlainRequest -{ - public GetInferenceRequest() - { - } - - public GetInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) : base(r => r.Optional("inference_id", inferenceId)) - { - } - - public GetInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) : base(r => r.Optional("task_type", taskType).Optional("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "inference.get"; -} - -/// -/// -/// Get an inference endpoint -/// -/// -public sealed partial class GetInferenceRequestDescriptor : RequestDescriptor -{ - internal GetInferenceRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) : base(r => r.Optional("task_type", taskType).Optional("inference_id", inferenceId)) - { - } - - public GetInferenceRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "inference.get"; - - public GetInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId) - { - RouteValues.Optional("inference_id", inferenceId); - return Self; - } - - public GetInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) - { - RouteValues.Optional("task_type", taskType); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs deleted file mode 100644 index eadcef93ac5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/GetInferenceResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class GetInferenceResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("endpoints")] - public IReadOnlyCollection Endpoints { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs deleted file mode 100644 index 6e94c6b33af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceRequest.g.cs +++ /dev/null @@ -1,199 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class InferenceRequestParameters : RequestParameters -{ - /// - /// - /// Specifies the amount of time to wait for the inference request to complete. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Perform inference on the service -/// -/// -public sealed partial class InferenceRequest : PlainRequest -{ - public InferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) - { - } - - public InferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceInference; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "inference.inference"; - - /// - /// - /// Specifies the amount of time to wait for the inference request to complete. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Inference input. - /// Either a string or an array of strings. - /// - /// - [JsonInclude, JsonPropertyName("input")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection Input { get; set; } - - /// - /// - /// Query input, required for rerank task. - /// Not required for other tasks. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// - /// Optional task settings - /// - /// - [JsonInclude, JsonPropertyName("task_settings")] - public object? TaskSettings { get; set; } -} - -/// -/// -/// Perform inference on the service -/// -/// -public sealed partial class InferenceRequestDescriptor : RequestDescriptor -{ - internal InferenceRequestDescriptor(Action configure) => configure.Invoke(this); - - public InferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } - - public InferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceInference; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "inference.inference"; - - public InferenceRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public InferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) - { - RouteValues.Required("inference_id", inferenceId); - return Self; - } - - public InferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) - { - RouteValues.Optional("task_type", taskType); - return Self; - } - - private ICollection InputValue { get; set; } - private string? QueryValue { get; set; } - private object? TaskSettingsValue { get; set; } - - /// - /// - /// Inference input. - /// Either a string or an array of strings. - /// - /// - public InferenceRequestDescriptor Input(ICollection input) - { - InputValue = input; - return Self; - } - - /// - /// - /// Query input, required for rerank task. - /// Not required for other tasks. - /// - /// - public InferenceRequestDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// Optional task settings - /// - /// - public InferenceRequestDescriptor TaskSettings(object? taskSettings) - { - TaskSettingsValue = taskSettings; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("input"); - SingleOrManySerializationHelper.Serialize(InputValue, writer, options); - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - if (TaskSettingsValue is not null) - { - writer.WritePropertyName("task_settings"); - JsonSerializer.Serialize(writer, TaskSettingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs deleted file mode 100644 index 0e2891aecf9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/InferenceResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class InferenceResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs deleted file mode 100644 index eadac2de1ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ /dev/null @@ -1,152 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class PutInferenceRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create an inference endpoint. -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// -/// -/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. -/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. -/// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. -/// -/// -public sealed partial class PutInferenceRequest : PlainRequest, ISelfSerializable -{ - public PutInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) - { - } - - public PutInferenceRequest(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePut; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "inference.put"; - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint InferenceConfig { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, InferenceConfig, options); - } -} - -/// -/// -/// Create an inference endpoint. -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// -/// -/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. -/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. -/// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. -/// -/// -public sealed partial class PutInferenceRequestDescriptor : RequestDescriptor -{ - internal PutInferenceRequestDescriptor(Action configure) => configure.Invoke(this); - public PutInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) => InferenceConfigValue = inferenceConfig; - public PutInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) => InferenceConfigValue = inferenceConfig; - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePut; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "inference.put"; - - public PutInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) - { - RouteValues.Required("inference_id", inferenceId); - return Self; - } - - public PutInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType) - { - RouteValues.Optional("task_type", taskType); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpointDescriptor InferenceConfigDescriptor { get; set; } - private Action InferenceConfigDescriptorAction { get; set; } - - public PutInferenceRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public PutInferenceRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpointDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public PutInferenceRequestDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs deleted file mode 100644 index 88c831242f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Inference/PutInferenceResponse.g.cs +++ /dev/null @@ -1,70 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public sealed partial class PutInferenceResponse : ElasticsearchResponse -{ - /// - /// - /// The inference Id - /// - /// - [JsonInclude, JsonPropertyName("inference_id")] - public string InferenceId { get; init; } - - /// - /// - /// The service type - /// - /// - [JsonInclude, JsonPropertyName("service")] - public string Service { get; init; } - - /// - /// - /// Settings specific to the service - /// - /// - [JsonInclude, JsonPropertyName("service_settings")] - public object ServiceSettings { get; init; } - - /// - /// - /// Task settings specific to the service and task type - /// - /// - [JsonInclude, JsonPropertyName("task_settings")] - public object? TaskSettings { get; init; } - - /// - /// - /// The task type - /// - /// - [JsonInclude, JsonPropertyName("task_type")] - public Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType TaskType { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs deleted file mode 100644 index 7b25a03ae4e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoRequest.g.cs +++ /dev/null @@ -1,79 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 InfoRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get cluster info. -/// Returns basic information about the cluster. -/// -/// -public sealed partial class InfoRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "info"; -} - -/// -/// -/// Get cluster info. -/// Returns basic information about the cluster. -/// -/// -public sealed partial class InfoRequestDescriptor : RequestDescriptor -{ - internal InfoRequestDescriptor(Action configure) => configure.Invoke(this); - - public InfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "info"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoResponse.g.cs deleted file mode 100644 index d700df38225..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/InfoResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class InfoResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("cluster_uuid")] - public string ClusterUuid { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("tagline")] - public string Tagline { get; init; } - [JsonInclude, JsonPropertyName("version")] - public Elastic.Clients.Elasticsearch.Serverless.ElasticsearchVersionInfo Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs deleted file mode 100644 index 6825d0efc96..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs +++ /dev/null @@ -1,159 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class DeleteGeoipDatabaseRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete GeoIP database configurations. -/// Delete one or more IP geolocation database configurations. -/// -/// -public sealed partial class DeleteGeoipDatabaseRequest : PlainRequest -{ - public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_geoip_database"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete GeoIP database configurations. -/// Delete one or more IP geolocation database configurations. -/// -/// -public sealed partial class DeleteGeoipDatabaseRequestDescriptor : RequestDescriptor, DeleteGeoipDatabaseRequestParameters> -{ - internal DeleteGeoipDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_geoip_database"; - - public DeleteGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteGeoipDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete GeoIP database configurations. -/// Delete one or more IP geolocation database configurations. -/// -/// -public sealed partial class DeleteGeoipDatabaseRequestDescriptor : RequestDescriptor -{ - internal DeleteGeoipDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_geoip_database"; - - public DeleteGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteGeoipDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs deleted file mode 100644 index d25a7acde05..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class DeleteGeoipDatabaseResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs deleted file mode 100644 index 4ef93c572ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseRequest.g.cs +++ /dev/null @@ -1,162 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class DeleteIpLocationDatabaseRequestParameters : RequestParameters -{ - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// The period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete IP geolocation database configurations. -/// -/// -public sealed partial class DeleteIpLocationDatabaseRequest : PlainRequest -{ - public DeleteIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_ip_location_database"; - - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// The period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete IP geolocation database configurations. -/// -/// -public sealed partial class DeleteIpLocationDatabaseRequestDescriptor : RequestDescriptor, DeleteIpLocationDatabaseRequestParameters> -{ - internal DeleteIpLocationDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_ip_location_database"; - - public DeleteIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete IP geolocation database configurations. -/// -/// -public sealed partial class DeleteIpLocationDatabaseRequestDescriptor : RequestDescriptor -{ - internal DeleteIpLocationDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_ip_location_database"; - - public DeleteIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs deleted file mode 100644 index faadfbc99b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteIpLocationDatabaseResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class DeleteIpLocationDatabaseResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs deleted file mode 100644 index 7ca30807a48..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineRequest.g.cs +++ /dev/null @@ -1,161 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class DeletePipelineRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete pipelines. -/// Delete one or more ingest pipelines. -/// -/// -public sealed partial class DeletePipelineRequest : PlainRequest -{ - public DeletePipelineRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeletePipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_pipeline"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete pipelines. -/// Delete one or more ingest pipelines. -/// -/// -public sealed partial class DeletePipelineRequestDescriptor : RequestDescriptor, DeletePipelineRequestParameters> -{ - internal DeletePipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeletePipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_pipeline"; - - public DeletePipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeletePipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete pipelines. -/// Delete one or more ingest pipelines. -/// -/// -public sealed partial class DeletePipelineRequestDescriptor : RequestDescriptor -{ - internal DeletePipelineRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeletePipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeletePipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.delete_pipeline"; - - public DeletePipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeletePipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeletePipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineResponse.g.cs deleted file mode 100644 index a607d2fedf7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeletePipelineResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class DeletePipelineResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs deleted file mode 100644 index 6c5d918bd4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsRequest.g.cs +++ /dev/null @@ -1,79 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GeoIpStatsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get GeoIP statistics. -/// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. -/// -/// -public sealed partial class GeoIpStatsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGeoIpStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.geo_ip_stats"; -} - -/// -/// -/// Get GeoIP statistics. -/// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. -/// -/// -public sealed partial class GeoIpStatsRequestDescriptor : RequestDescriptor -{ - internal GeoIpStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GeoIpStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGeoIpStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.geo_ip_stats"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs deleted file mode 100644 index cf6f1342cd0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GeoIpStatsResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GeoIpStatsResponse : ElasticsearchResponse -{ - /// - /// - /// Downloaded GeoIP2 databases for each node. - /// - /// - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - - /// - /// - /// Download statistics for all GeoIP2 databases. - /// - /// - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpDownloadStatistics Stats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs deleted file mode 100644 index 86dbc98c407..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs +++ /dev/null @@ -1,154 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GetGeoipDatabaseRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get GeoIP database configurations. -/// Get information about one or more IP geolocation database configurations. -/// -/// -public sealed partial class GetGeoipDatabaseRequest : PlainRequest -{ - public GetGeoipDatabaseRequest() - { - } - - public GetGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_geoip_database"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get GeoIP database configurations. -/// Get information about one or more IP geolocation database configurations. -/// -/// -public sealed partial class GetGeoipDatabaseRequestDescriptor : RequestDescriptor, GetGeoipDatabaseRequestParameters> -{ - internal GetGeoipDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id)) - { - } - - public GetGeoipDatabaseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_geoip_database"; - - public GetGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get GeoIP database configurations. -/// Get information about one or more IP geolocation database configurations. -/// -/// -public sealed partial class GetGeoipDatabaseRequestDescriptor : RequestDescriptor -{ - internal GetGeoipDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id)) - { - } - - public GetGeoipDatabaseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_geoip_database"; - - public GetGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs deleted file mode 100644 index 92e10c2b774..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetGeoipDatabaseResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GetGeoipDatabaseResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("databases")] - public IReadOnlyCollection Databases { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs deleted file mode 100644 index 587dfb864e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseRequest.g.cs +++ /dev/null @@ -1,153 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GetIpLocationDatabaseRequestParameters : RequestParameters -{ - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get IP geolocation database configurations. -/// -/// -public sealed partial class GetIpLocationDatabaseRequest : PlainRequest -{ - public GetIpLocationDatabaseRequest() - { - } - - public GetIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_ip_location_database"; - - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get IP geolocation database configurations. -/// -/// -public sealed partial class GetIpLocationDatabaseRequestDescriptor : RequestDescriptor, GetIpLocationDatabaseRequestParameters> -{ - internal GetIpLocationDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id)) - { - } - - public GetIpLocationDatabaseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_ip_location_database"; - - public GetIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get IP geolocation database configurations. -/// -/// -public sealed partial class GetIpLocationDatabaseRequestDescriptor : RequestDescriptor -{ - internal GetIpLocationDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id)) - { - } - - public GetIpLocationDatabaseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_ip_location_database"; - - public GetIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs deleted file mode 100644 index 3413683d5e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetIpLocationDatabaseResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GetIpLocationDatabaseResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("databases")] - public IReadOnlyCollection Databases { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs deleted file mode 100644 index b7c807774e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineRequest.g.cs +++ /dev/null @@ -1,174 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GetPipelineRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Return pipelines without their definitions (default: false) - /// - /// - public bool? Summary { get => Q("summary"); set => Q("summary", value); } -} - -/// -/// -/// Get pipelines. -/// Get information about one or more ingest pipelines. -/// This API returns a local reference of the pipeline. -/// -/// -public sealed partial class GetPipelineRequest : PlainRequest -{ - public GetPipelineRequest() - { - } - - public GetPipelineRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetPipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_pipeline"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Return pipelines without their definitions (default: false) - /// - /// - [JsonIgnore] - public bool? Summary { get => Q("summary"); set => Q("summary", value); } -} - -/// -/// -/// Get pipelines. -/// Get information about one or more ingest pipelines. -/// This API returns a local reference of the pipeline. -/// -/// -public sealed partial class GetPipelineRequestDescriptor : RequestDescriptor, GetPipelineRequestParameters> -{ - internal GetPipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public GetPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetPipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_pipeline"; - - public GetPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetPipelineRequestDescriptor Summary(bool? summary = true) => Qs("summary", summary); - - public GetPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get pipelines. -/// Get information about one or more ingest pipelines. -/// This API returns a local reference of the pipeline. -/// -/// -public sealed partial class GetPipelineRequestDescriptor : RequestDescriptor -{ - internal GetPipelineRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public GetPipelineRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetPipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.get_pipeline"; - - public GetPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetPipelineRequestDescriptor Summary(bool? summary = true) => Qs("summary", summary); - - public GetPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineResponse.g.cs deleted file mode 100644 index 489c01f2f17..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/GetPipelineResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class GetPipelineResponse : DictionaryResponse -{ - public GetPipelineResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetPipelineResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs deleted file mode 100644 index 6478185d553..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokRequest.g.cs +++ /dev/null @@ -1,83 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class ProcessorGrokRequestParameters : RequestParameters -{ -} - -/// -/// -/// Run a grok processor. -/// Extract structured fields out of a single text field within a document. -/// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. -/// A grok pattern is like a regular expression that supports aliased expressions that can be reused. -/// -/// -public sealed partial class ProcessorGrokRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestProcessorGrok; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.processor_grok"; -} - -/// -/// -/// Run a grok processor. -/// Extract structured fields out of a single text field within a document. -/// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. -/// A grok pattern is like a regular expression that supports aliased expressions that can be reused. -/// -/// -public sealed partial class ProcessorGrokRequestDescriptor : RequestDescriptor -{ - internal ProcessorGrokRequestDescriptor(Action configure) => configure.Invoke(this); - - public ProcessorGrokRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestProcessorGrok; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ingest.processor_grok"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs deleted file mode 100644 index ec998cacb5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/ProcessorGrokResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class ProcessorGrokResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("patterns")] - public IReadOnlyDictionary Patterns { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs deleted file mode 100644 index ebb0017a9bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs +++ /dev/null @@ -1,308 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class PutGeoipDatabaseRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update a GeoIP database configuration. -/// Refer to the create or update IP geolocation database configuration API. -/// -/// -public sealed partial class PutGeoipDatabaseRequest : PlainRequest -{ - public PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_geoip_database"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. - /// At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. - /// - /// - [JsonInclude, JsonPropertyName("maxmind")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind Maxmind { get; set; } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name Name { get; set; } -} - -/// -/// -/// Create or update a GeoIP database configuration. -/// Refer to the create or update IP geolocation database configuration API. -/// -/// -public sealed partial class PutGeoipDatabaseRequestDescriptor : RequestDescriptor, PutGeoipDatabaseRequestParameters> -{ - internal PutGeoipDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_geoip_database"; - - public PutGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutGeoipDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind MaxmindValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.MaxmindDescriptor MaxmindDescriptor { get; set; } - private Action MaxmindDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - - /// - /// - /// The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. - /// At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. - /// - /// - public PutGeoipDatabaseRequestDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) - { - MaxmindDescriptor = null; - MaxmindDescriptorAction = null; - MaxmindValue = maxmind; - return Self; - } - - public PutGeoipDatabaseRequestDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.MaxmindDescriptor descriptor) - { - MaxmindValue = null; - MaxmindDescriptorAction = null; - MaxmindDescriptor = descriptor; - return Self; - } - - public PutGeoipDatabaseRequestDescriptor Maxmind(Action configure) - { - MaxmindValue = null; - MaxmindDescriptor = null; - MaxmindDescriptorAction = configure; - return Self; - } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - public PutGeoipDatabaseRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxmindDescriptor is not null) - { - writer.WritePropertyName("maxmind"); - JsonSerializer.Serialize(writer, MaxmindDescriptor, options); - } - else if (MaxmindDescriptorAction is not null) - { - writer.WritePropertyName("maxmind"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.MaxmindDescriptor(MaxmindDescriptorAction), options); - } - else - { - writer.WritePropertyName("maxmind"); - JsonSerializer.Serialize(writer, MaxmindValue, options); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update a GeoIP database configuration. -/// Refer to the create or update IP geolocation database configuration API. -/// -/// -public sealed partial class PutGeoipDatabaseRequestDescriptor : RequestDescriptor -{ - internal PutGeoipDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutGeoipDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_geoip_database"; - - public PutGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutGeoipDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind MaxmindValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.MaxmindDescriptor MaxmindDescriptor { get; set; } - private Action MaxmindDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - - /// - /// - /// The configuration necessary to identify which IP geolocation provider to use to download the database, as well as any provider-specific configuration necessary for such downloading. - /// At present, the only supported provider is maxmind, and the maxmind provider requires that an account_id (string) is configured. - /// - /// - public PutGeoipDatabaseRequestDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) - { - MaxmindDescriptor = null; - MaxmindDescriptorAction = null; - MaxmindValue = maxmind; - return Self; - } - - public PutGeoipDatabaseRequestDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.MaxmindDescriptor descriptor) - { - MaxmindValue = null; - MaxmindDescriptorAction = null; - MaxmindDescriptor = descriptor; - return Self; - } - - public PutGeoipDatabaseRequestDescriptor Maxmind(Action configure) - { - MaxmindValue = null; - MaxmindDescriptor = null; - MaxmindDescriptorAction = configure; - return Self; - } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - public PutGeoipDatabaseRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxmindDescriptor is not null) - { - writer.WritePropertyName("maxmind"); - JsonSerializer.Serialize(writer, MaxmindDescriptor, options); - } - else if (MaxmindDescriptorAction is not null) - { - writer.WritePropertyName("maxmind"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.MaxmindDescriptor(MaxmindDescriptorAction), options); - } - else - { - writer.WritePropertyName("maxmind"); - JsonSerializer.Serialize(writer, MaxmindValue, options); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs deleted file mode 100644 index c098d37a2a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutGeoipDatabaseResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class PutGeoipDatabaseResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs deleted file mode 100644 index 8f337335f24..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseRequest.g.cs +++ /dev/null @@ -1,221 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class PutIpLocationDatabaseRequestParameters : RequestParameters -{ - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. - /// If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. - /// A value of -1 indicates that the request should never time out. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update an IP geolocation database configuration. -/// -/// -public sealed partial class PutIpLocationDatabaseRequest : PlainRequest, ISelfSerializable -{ - public PutIpLocationDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_ip_location_database"; - - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// A value of -1 indicates that the request should never time out. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. - /// If no response is received before the timeout expires, the cluster metadata update still applies but the response indicates that it was not completely acknowledged. - /// A value of -1 indicates that the request should never time out. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration Configuration { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Configuration, options); - } -} - -/// -/// -/// Create or update an IP geolocation database configuration. -/// -/// -public sealed partial class PutIpLocationDatabaseRequestDescriptor : RequestDescriptor, PutIpLocationDatabaseRequestParameters> -{ - internal PutIpLocationDatabaseRequestDescriptor(Action> configure) => configure.Invoke(this); - public PutIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) => ConfigurationValue = configuration; - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_ip_location_database"; - - public PutIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration ConfigurationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationDescriptor ConfigurationDescriptor { get; set; } - private Action ConfigurationDescriptorAction { get; set; } - - public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration) - { - ConfigurationDescriptor = null; - ConfigurationDescriptorAction = null; - ConfigurationValue = configuration; - return Self; - } - - public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationDescriptor descriptor) - { - ConfigurationValue = null; - ConfigurationDescriptorAction = null; - ConfigurationDescriptor = descriptor; - return Self; - } - - public PutIpLocationDatabaseRequestDescriptor Configuration(Action configure) - { - ConfigurationValue = null; - ConfigurationDescriptor = null; - ConfigurationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, ConfigurationValue, options); - } -} - -/// -/// -/// Create or update an IP geolocation database configuration. -/// -/// -public sealed partial class PutIpLocationDatabaseRequestDescriptor : RequestDescriptor -{ - internal PutIpLocationDatabaseRequestDescriptor(Action configure) => configure.Invoke(this); - public PutIpLocationDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) => ConfigurationValue = configuration; - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutIpLocationDatabase; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_ip_location_database"; - - public PutIpLocationDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutIpLocationDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutIpLocationDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration ConfigurationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationDescriptor ConfigurationDescriptor { get; set; } - private Action ConfigurationDescriptorAction { get; set; } - - public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration) - { - ConfigurationDescriptor = null; - ConfigurationDescriptorAction = null; - ConfigurationValue = configuration; - return Self; - } - - public PutIpLocationDatabaseRequestDescriptor Configuration(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationDescriptor descriptor) - { - ConfigurationValue = null; - ConfigurationDescriptorAction = null; - ConfigurationDescriptor = descriptor; - return Self; - } - - public PutIpLocationDatabaseRequestDescriptor Configuration(Action configure) - { - ConfigurationValue = null; - ConfigurationDescriptor = null; - ConfigurationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, ConfigurationValue, options); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs deleted file mode 100644 index 3f5f8d048f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutIpLocationDatabaseResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class PutIpLocationDatabaseResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs deleted file mode 100644 index 74a90e43160..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineRequest.g.cs +++ /dev/null @@ -1,679 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class PutPipelineRequestParameters : RequestParameters -{ - /// - /// - /// Required version for optimistic concurrency control for pipeline updates - /// - /// - public long? IfVersion { get => Q("if_version"); set => Q("if_version", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update a pipeline. -/// Changes made using this API take effect immediately. -/// -/// -public sealed partial class PutPipelineRequest : PlainRequest -{ - public PutPipelineRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutPipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_pipeline"; - - /// - /// - /// Required version for optimistic concurrency control for pipeline updates - /// - /// - [JsonIgnore] - public long? IfVersion { get => Q("if_version"); set => Q("if_version", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Marks this ingest pipeline as deprecated. - /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. - /// - /// - [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; set; } - - /// - /// - /// Description of the ingest pipeline. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// Processors to run immediately after a processor failure. Each processor supports a processor-level on_failure value. If a processor without an on_failure value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified. - /// - /// - [JsonInclude, JsonPropertyName("processors")] - public ICollection? Processors { get; set; } - - /// - /// - /// Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } -} - -/// -/// -/// Create or update a pipeline. -/// Changes made using this API take effect immediately. -/// -/// -public sealed partial class PutPipelineRequestDescriptor : RequestDescriptor, PutPipelineRequestParameters> -{ - internal PutPipelineRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutPipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_pipeline"; - - public PutPipelineRequestDescriptor IfVersion(long? ifVersion) => Qs("if_version", ifVersion); - public PutPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutPipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? DeprecatedValue { get; set; } - private string? DescriptionValue { get; set; } - private IDictionary? MetaValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? ProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor ProcessorsDescriptor { get; set; } - private Action> ProcessorsDescriptorAction { get; set; } - private Action>[] ProcessorsDescriptorActions { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Marks this ingest pipeline as deprecated. - /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. - /// - /// - public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// Description of the ingest pipeline. - /// - /// - public PutPipelineRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch. - /// - /// - public PutPipelineRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Processors to run immediately after a processor failure. Each processor supports a processor-level on_failure value. If a processor without an on_failure value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors. - /// - /// - public PutPipelineRequestDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PutPipelineRequestDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PutPipelineRequestDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PutPipelineRequestDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified. - /// - /// - public PutPipelineRequestDescriptor Processors(ICollection? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public PutPipelineRequestDescriptor Processors(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public PutPipelineRequestDescriptor Processors(Action> configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public PutPipelineRequestDescriptor Processors(params Action>[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers. - /// - /// - public PutPipelineRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update a pipeline. -/// Changes made using this API take effect immediately. -/// -/// -public sealed partial class PutPipelineRequestDescriptor : RequestDescriptor -{ - internal PutPipelineRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutPipelineRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestPutPipeline; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.put_pipeline"; - - public PutPipelineRequestDescriptor IfVersion(long? ifVersion) => Qs("if_version", ifVersion); - public PutPipelineRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutPipelineRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutPipelineRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? DeprecatedValue { get; set; } - private string? DescriptionValue { get; set; } - private IDictionary? MetaValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? ProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor ProcessorsDescriptor { get; set; } - private Action ProcessorsDescriptorAction { get; set; } - private Action[] ProcessorsDescriptorActions { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Marks this ingest pipeline as deprecated. - /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. - /// - /// - public PutPipelineRequestDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// Description of the ingest pipeline. - /// - /// - public PutPipelineRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch. - /// - /// - public PutPipelineRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Processors to run immediately after a processor failure. Each processor supports a processor-level on_failure value. If a processor without an on_failure value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors. - /// - /// - public PutPipelineRequestDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PutPipelineRequestDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PutPipelineRequestDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PutPipelineRequestDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified. - /// - /// - public PutPipelineRequestDescriptor Processors(ICollection? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public PutPipelineRequestDescriptor Processors(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public PutPipelineRequestDescriptor Processors(Action configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public PutPipelineRequestDescriptor Processors(params Action[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers. - /// - /// - public PutPipelineRequestDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineResponse.g.cs deleted file mode 100644 index 1e248573d0c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/PutPipelineResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class PutPipelineResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs deleted file mode 100644 index 75bbaf50ecf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateRequest.g.cs +++ /dev/null @@ -1,431 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class SimulateRequestParameters : RequestParameters -{ - /// - /// - /// If true, the response includes output data for each processor in the executed pipeline. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Simulate a pipeline. -/// Run an ingest pipeline against a set of provided documents. -/// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. -/// -/// -public sealed partial class SimulateRequest : PlainRequest -{ - public SimulateRequest() - { - } - - public SimulateRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestSimulate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.simulate"; - - /// - /// - /// If true, the response includes output data for each processor in the executed pipeline. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } - - /// - /// - /// Sample documents to test in the pipeline. - /// - /// - [JsonInclude, JsonPropertyName("docs")] - public ICollection Docs { get; set; } - - /// - /// - /// Pipeline to test. - /// If you don’t specify the pipeline request path parameter, this parameter is required. - /// If you specify both this and the request path parameter, the API only uses the request path parameter. - /// - /// - [JsonInclude, JsonPropertyName("pipeline")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.Pipeline? Pipeline { get; set; } -} - -/// -/// -/// Simulate a pipeline. -/// Run an ingest pipeline against a set of provided documents. -/// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. -/// -/// -public sealed partial class SimulateRequestDescriptor : RequestDescriptor, SimulateRequestParameters> -{ - internal SimulateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SimulateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public SimulateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestSimulate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.simulate"; - - public SimulateRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public SimulateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private ICollection DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor DocsDescriptor { get; set; } - private Action DocsDescriptorAction { get; set; } - private Action[] DocsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.Pipeline? PipelineValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineDescriptor PipelineDescriptor { get; set; } - private Action> PipelineDescriptorAction { get; set; } - - /// - /// - /// Sample documents to test in the pipeline. - /// - /// - public SimulateRequestDescriptor Docs(ICollection docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public SimulateRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public SimulateRequestDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public SimulateRequestDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Pipeline to test. - /// If you don’t specify the pipeline request path parameter, this parameter is required. - /// If you specify both this and the request path parameter, the API only uses the request path parameter. - /// - /// - public SimulateRequestDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.Pipeline? pipeline) - { - PipelineDescriptor = null; - PipelineDescriptorAction = null; - PipelineValue = pipeline; - return Self; - } - - public SimulateRequestDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineDescriptor descriptor) - { - PipelineValue = null; - PipelineDescriptorAction = null; - PipelineDescriptor = descriptor; - return Self; - } - - public SimulateRequestDescriptor Pipeline(Action> configure) - { - PipelineValue = null; - PipelineDescriptor = null; - PipelineDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (PipelineDescriptor is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineDescriptor, options); - } - else if (PipelineDescriptorAction is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineDescriptor(PipelineDescriptorAction), options); - } - else if (PipelineValue is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Simulate a pipeline. -/// Run an ingest pipeline against a set of provided documents. -/// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. -/// -/// -public sealed partial class SimulateRequestDescriptor : RequestDescriptor -{ - internal SimulateRequestDescriptor(Action configure) => configure.Invoke(this); - - public SimulateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public SimulateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IngestSimulate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ingest.simulate"; - - public SimulateRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public SimulateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private ICollection DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor DocsDescriptor { get; set; } - private Action DocsDescriptorAction { get; set; } - private Action[] DocsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.Pipeline? PipelineValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineDescriptor PipelineDescriptor { get; set; } - private Action PipelineDescriptorAction { get; set; } - - /// - /// - /// Sample documents to test in the pipeline. - /// - /// - public SimulateRequestDescriptor Docs(ICollection docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public SimulateRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public SimulateRequestDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public SimulateRequestDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Pipeline to test. - /// If you don’t specify the pipeline request path parameter, this parameter is required. - /// If you specify both this and the request path parameter, the API only uses the request path parameter. - /// - /// - public SimulateRequestDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.Pipeline? pipeline) - { - PipelineDescriptor = null; - PipelineDescriptorAction = null; - PipelineValue = pipeline; - return Self; - } - - public SimulateRequestDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineDescriptor descriptor) - { - PipelineValue = null; - PipelineDescriptorAction = null; - PipelineDescriptor = descriptor; - return Self; - } - - public SimulateRequestDescriptor Pipeline(Action configure) - { - PipelineValue = null; - PipelineDescriptor = null; - PipelineDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (PipelineDescriptor is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineDescriptor, options); - } - else if (PipelineDescriptorAction is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineDescriptor(PipelineDescriptorAction), options); - } - else if (PipelineValue is not null) - { - writer.WritePropertyName("pipeline"); - JsonSerializer.Serialize(writer, PipelineValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateResponse.g.cs deleted file mode 100644 index ce9751221ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/SimulateResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public sealed partial class SimulateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("docs")] - public IReadOnlyCollection Docs { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 0447d435a07..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs +++ /dev/null @@ -1,103 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.LicenseManagement; - -public sealed partial class GetLicenseRequestParameters : RequestParameters -{ - /// - /// - /// Specifies whether to retrieve local information. The default value is false, which means the information is retrieved from the master node. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } -} - -/// -/// -/// Get license information. -/// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. -/// -/// -/// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. -/// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. -/// -/// -public sealed partial class GetLicenseRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.LicenseManagementGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "license.get"; - - /// - /// - /// Specifies whether to retrieve local information. The default value is false, which means the information is retrieved from the master node. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } -} - -/// -/// -/// Get license information. -/// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. -/// -/// -/// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. -/// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. -/// -/// -public sealed partial class GetLicenseRequestDescriptor : RequestDescriptor -{ - internal GetLicenseRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetLicenseRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.LicenseManagementGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "license.get"; - - public GetLicenseRequestDescriptor Local(bool? local = true) => Qs("local", local); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs deleted file mode 100644 index 8fa51607bf7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/LicenseManagement/GetLicenseResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.LicenseManagement; - -public sealed partial class GetLicenseResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.Serverless.LicenseManagement.LicenseInformation License { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs deleted file mode 100644 index b70da8b4f0b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ClearTrainedModelDeploymentCacheRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear trained model deployment cache. -/// Cache will be cleared on all nodes where the trained model is assigned. -/// A trained model deployment may have an inference cache enabled. -/// As requests are handled by each allocated node, their responses may be cached on that individual node. -/// Calling this API clears the caches without restarting the deployment. -/// -/// -public sealed partial class ClearTrainedModelDeploymentCacheRequest : PlainRequest -{ - public ClearTrainedModelDeploymentCacheRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningClearTrainedModelDeploymentCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.clear_trained_model_deployment_cache"; -} - -/// -/// -/// Clear trained model deployment cache. -/// Cache will be cleared on all nodes where the trained model is assigned. -/// A trained model deployment may have an inference cache enabled. -/// As requests are handled by each allocated node, their responses may be cached on that individual node. -/// Calling this API clears the caches without restarting the deployment. -/// -/// -public sealed partial class ClearTrainedModelDeploymentCacheRequestDescriptor : RequestDescriptor -{ - internal ClearTrainedModelDeploymentCacheRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearTrainedModelDeploymentCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningClearTrainedModelDeploymentCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.clear_trained_model_deployment_cache"; - - public ClearTrainedModelDeploymentCacheRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs deleted file mode 100644 index 85eda28ed17..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ClearTrainedModelDeploymentCacheResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cleared")] - public bool Cleared { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 58d90c398c7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobRequest.g.cs +++ /dev/null @@ -1,176 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -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. -/// -/// -public sealed partial class CloseJobRequest : PlainRequest -{ - public CloseJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningCloseJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.close_job"; - - /// - /// - /// Refer to the description for the allow_no_match query parameter. - /// - /// - [JsonInclude, JsonPropertyName("allow_no_match")] - public bool? AllowNoMatch { get; set; } - - /// - /// - /// Refer to the descriptiion for the force query parameter. - /// - /// - [JsonInclude, JsonPropertyName("force")] - public bool? Force { get; set; } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } -} - -/// -/// -/// 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 -{ - internal CloseJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public CloseJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningCloseJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.close_job"; - - public CloseJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private bool? AllowNoMatchValue { get; set; } - private bool? ForceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// Refer to the description for the allow_no_match query parameter. - /// - /// - public CloseJobRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) - { - AllowNoMatchValue = allowNoMatch; - return Self; - } - - /// - /// - /// Refer to the descriptiion for the force query parameter. - /// - /// - public CloseJobRequestDescriptor Force(bool? force = true) - { - ForceValue = force; - return Self; - } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - public CloseJobRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoMatchValue.HasValue) - { - writer.WritePropertyName("allow_no_match"); - writer.WriteBooleanValue(AllowNoMatchValue.Value); - } - - if (ForceValue.HasValue) - { - writer.WritePropertyName("force"); - writer.WriteBooleanValue(ForceValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobResponse.g.cs deleted file mode 100644 index 77e3416af09..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/CloseJobResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class CloseJobResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("closed")] - public bool Closed { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs deleted file mode 100644 index a9193fe4006..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteCalendarEventRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete events from a calendar. -/// -/// -public sealed partial class DeleteCalendarEventRequest : PlainRequest -{ - public DeleteCalendarEventRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId) : base(r => r.Required("calendar_id", calendarId).Required("event_id", eventId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteCalendarEvent; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_calendar_event"; -} - -/// -/// -/// Delete events from a calendar. -/// -/// -public sealed partial class DeleteCalendarEventRequestDescriptor : RequestDescriptor -{ - internal DeleteCalendarEventRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteCalendarEventRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId) : base(r => r.Required("calendar_id", calendarId).Required("event_id", eventId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteCalendarEvent; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_calendar_event"; - - public DeleteCalendarEventRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - public DeleteCalendarEventRequestDescriptor EventId(Elastic.Clients.Elasticsearch.Serverless.Id eventId) - { - RouteValues.Required("event_id", eventId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs deleted file mode 100644 index f71ba556930..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarEventResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteCalendarEventResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs deleted file mode 100644 index 5926fd2b73c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteCalendarJobRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete anomaly jobs from a calendar. -/// -/// -public sealed partial class DeleteCalendarJobRequest : PlainRequest -{ - public DeleteCalendarJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId) : base(r => r.Required("calendar_id", calendarId).Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteCalendarJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_calendar_job"; -} - -/// -/// -/// Delete anomaly jobs from a calendar. -/// -/// -public sealed partial class DeleteCalendarJobRequestDescriptor : RequestDescriptor -{ - internal DeleteCalendarJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteCalendarJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId) : base(r => r.Required("calendar_id", calendarId).Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteCalendarJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_calendar_job"; - - public DeleteCalendarJobRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - public DeleteCalendarJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Ids jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs deleted file mode 100644 index 93f5a7e4768..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarJobResponse.g.cs +++ /dev/null @@ -1,55 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteCalendarJobResponse : ElasticsearchResponse -{ - /// - /// - /// A string that uniquely identifies a calendar. - /// - /// - [JsonInclude, JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - /// - /// - /// A description of the calendar. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// A list of anomaly detection job identifiers or group names. - /// - /// - [JsonInclude, JsonPropertyName("job_ids")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection JobIds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs deleted file mode 100644 index b77793deb14..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs +++ /dev/null @@ -1,89 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteCalendarRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a calendar. -/// Removes all scheduled events from a calendar, then deletes it. -/// -/// -public sealed partial class DeleteCalendarRequest : PlainRequest -{ - public DeleteCalendarRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteCalendar; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_calendar"; -} - -/// -/// -/// Delete a calendar. -/// Removes all scheduled events from a calendar, then deletes it. -/// -/// -public sealed partial class DeleteCalendarRequestDescriptor : RequestDescriptor -{ - internal DeleteCalendarRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteCalendarRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteCalendar; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_calendar"; - - public DeleteCalendarRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs deleted file mode 100644 index e52c9343723..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteCalendarResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteCalendarResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 7be7cfbcf04..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,154 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteDataFrameAnalyticsRequestParameters : RequestParameters -{ - /// - /// - /// If true, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// The time to wait for the job to be deleted. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete a data frame analytics job. -/// -/// -public sealed partial class DeleteDataFrameAnalyticsRequest : PlainRequest -{ - public DeleteDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_data_frame_analytics"; - - /// - /// - /// If true, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// The time to wait for the job to be deleted. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete a data frame analytics job. -/// -/// -public sealed partial class DeleteDataFrameAnalyticsRequestDescriptor : RequestDescriptor, DeleteDataFrameAnalyticsRequestParameters> -{ - internal DeleteDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_data_frame_analytics"; - - public DeleteDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public DeleteDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete a data frame analytics job. -/// -/// -public sealed partial class DeleteDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal DeleteDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_data_frame_analytics"; - - public DeleteDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public DeleteDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 25d09960c32..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteDataFrameAnalyticsResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs deleted file mode 100644 index 00d0678ceed..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteDatafeedRequestParameters : RequestParameters -{ - /// - /// - /// Use to forcefully delete a started datafeed; this method is quicker than - /// stopping and deleting the datafeed. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Delete a datafeed. -/// -/// -public sealed partial class DeleteDatafeedRequest : PlainRequest -{ - public DeleteDatafeedRequest(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_datafeed"; - - /// - /// - /// Use to forcefully delete a started datafeed; this method is quicker than - /// stopping and deleting the datafeed. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Delete a datafeed. -/// -/// -public sealed partial class DeleteDatafeedRequestDescriptor : RequestDescriptor -{ - internal DeleteDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_datafeed"; - - public DeleteDatafeedRequestDescriptor Force(bool? force = true) => Qs("force", force); - - public DeleteDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs deleted file mode 100644 index 82dcab69bde..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteDatafeedResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteDatafeedResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs deleted file mode 100644 index 4731b95db3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs +++ /dev/null @@ -1,168 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteExpiredDataRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete expired ML data. -/// Deletes all job results, model snapshots and forecast data that have exceeded -/// their retention days period. Machine learning state documents that are not -/// associated with any job are also deleted. -/// You can limit the request to a single or set of anomaly detection jobs by -/// using a job identifier, a group name, a comma-separated list of jobs, or a -/// wildcard expression. You can delete expired data for all anomaly detection -/// jobs by using _all, by specifying * as the <job_id>, or by omitting the -/// <job_id>. -/// -/// -public sealed partial class DeleteExpiredDataRequest : PlainRequest -{ - public DeleteExpiredDataRequest() - { - } - - public DeleteExpiredDataRequest(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) : base(r => r.Optional("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteExpiredData; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.delete_expired_data"; - - /// - /// - /// The desired requests per second for the deletion processes. The default - /// behavior is no throttling. - /// - /// - [JsonInclude, JsonPropertyName("requests_per_second")] - public float? RequestsPerSecond { get; set; } - - /// - /// - /// How long can the underlying delete processes run until they are canceled. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } -} - -/// -/// -/// Delete expired ML data. -/// Deletes all job results, model snapshots and forecast data that have exceeded -/// their retention days period. Machine learning state documents that are not -/// associated with any job are also deleted. -/// You can limit the request to a single or set of anomaly detection jobs by -/// using a job identifier, a group name, a comma-separated list of jobs, or a -/// wildcard expression. You can delete expired data for all anomaly detection -/// jobs by using _all, by specifying * as the <job_id>, or by omitting the -/// <job_id>. -/// -/// -public sealed partial class DeleteExpiredDataRequestDescriptor : RequestDescriptor -{ - internal DeleteExpiredDataRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteExpiredDataRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) : base(r => r.Optional("job_id", jobId)) - { - } - - public DeleteExpiredDataRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteExpiredData; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.delete_expired_data"; - - public DeleteExpiredDataRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - RouteValues.Optional("job_id", jobId); - return Self; - } - - private float? RequestsPerSecondValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// The desired requests per second for the deletion processes. The default - /// behavior is no throttling. - /// - /// - public DeleteExpiredDataRequestDescriptor RequestsPerSecond(float? requestsPerSecond) - { - RequestsPerSecondValue = requestsPerSecond; - return Self; - } - - /// - /// - /// How long can the underlying delete processes run until they are canceled. - /// - /// - public DeleteExpiredDataRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RequestsPerSecondValue.HasValue) - { - writer.WritePropertyName("requests_per_second"); - writer.WriteNumberValue(RequestsPerSecondValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs deleted file mode 100644 index 08048c0922c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteExpiredDataResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteExpiredDataResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("deleted")] - public bool Deleted { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs deleted file mode 100644 index c7d73bbee0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs +++ /dev/null @@ -1,91 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteFilterRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a filter. -/// If an anomaly detection job references the filter, you cannot delete the -/// filter. You must update or delete the job before you can delete the filter. -/// -/// -public sealed partial class DeleteFilterRequest : PlainRequest -{ - public DeleteFilterRequest(Elastic.Clients.Elasticsearch.Serverless.Id filterId) : base(r => r.Required("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteFilter; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_filter"; -} - -/// -/// -/// Delete a filter. -/// If an anomaly detection job references the filter, you cannot delete the -/// filter. You must update or delete the job before you can delete the filter. -/// -/// -public sealed partial class DeleteFilterRequestDescriptor : RequestDescriptor -{ - internal DeleteFilterRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteFilterRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id filterId) : base(r => r.Required("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteFilter; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_filter"; - - public DeleteFilterRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Serverless.Id filterId) - { - RouteValues.Required("filter_id", filterId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs deleted file mode 100644 index 1cfbc6d6b8b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteFilterResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteFilterResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs deleted file mode 100644 index 65e2a4bcba5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs +++ /dev/null @@ -1,151 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteForecastRequestParameters : RequestParameters -{ - /// - /// - /// Specifies whether an error occurs when there are no forecasts. In - /// particular, if this parameter is set to false and there are no - /// forecasts associated with the job, attempts to delete all forecasts - /// return an error. - /// - /// - public bool? AllowNoForecasts { get => Q("allow_no_forecasts"); set => Q("allow_no_forecasts", value); } - - /// - /// - /// Specifies the period of time to wait for the completion of the delete - /// operation. When this period of time elapses, the API fails and returns an - /// error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete forecasts from a job. -/// By default, forecasts are retained for 14 days. You can specify a -/// different retention period with the expires_in parameter in the forecast -/// jobs API. The delete forecast API enables you to delete one or more -/// forecasts before they expire. -/// -/// -public sealed partial class DeleteForecastRequest : PlainRequest -{ - public DeleteForecastRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - public DeleteForecastRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? forecastId) : base(r => r.Required("job_id", jobId).Optional("forecast_id", forecastId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteForecast; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_forecast"; - - /// - /// - /// Specifies whether an error occurs when there are no forecasts. In - /// particular, if this parameter is set to false and there are no - /// forecasts associated with the job, attempts to delete all forecasts - /// return an error. - /// - /// - [JsonIgnore] - public bool? AllowNoForecasts { get => Q("allow_no_forecasts"); set => Q("allow_no_forecasts", value); } - - /// - /// - /// Specifies the period of time to wait for the completion of the delete - /// operation. When this period of time elapses, the API fails and returns an - /// error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete forecasts from a job. -/// By default, forecasts are retained for 14 days. You can specify a -/// different retention period with the expires_in parameter in the forecast -/// jobs API. The delete forecast API enables you to delete one or more -/// forecasts before they expire. -/// -/// -public sealed partial class DeleteForecastRequestDescriptor : RequestDescriptor -{ - internal DeleteForecastRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteForecastRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? forecastId) : base(r => r.Required("job_id", jobId).Optional("forecast_id", forecastId)) - { - } - - public DeleteForecastRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteForecast; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_forecast"; - - public DeleteForecastRequestDescriptor AllowNoForecasts(bool? allowNoForecasts = true) => Qs("allow_no_forecasts", allowNoForecasts); - public DeleteForecastRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteForecastRequestDescriptor ForecastId(Elastic.Clients.Elasticsearch.Serverless.Id? forecastId) - { - RouteValues.Optional("forecast_id", forecastId); - return Self; - } - - public DeleteForecastRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs deleted file mode 100644 index f2d0e1be4df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteForecastResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteForecastResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs deleted file mode 100644 index b3ae38ccd95..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs +++ /dev/null @@ -1,155 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteJobRequestParameters : RequestParameters -{ - /// - /// - /// Specifies whether annotations that have been added by the - /// user should be deleted along with any auto-generated annotations when the job is - /// reset. - /// - /// - public bool? DeleteUserAnnotations { get => Q("delete_user_annotations"); set => Q("delete_user_annotations", value); } - - /// - /// - /// Use to forcefully delete an opened job; this method is quicker than - /// closing and deleting the job. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Specifies whether the request should return immediately or wait until the - /// job deletion completes. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// 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 -{ - public DeleteJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_job"; - - /// - /// - /// Specifies whether annotations that have been added by the - /// user should be deleted along with any auto-generated annotations when the job is - /// reset. - /// - /// - [JsonIgnore] - public bool? DeleteUserAnnotations { get => Q("delete_user_annotations"); set => Q("delete_user_annotations", value); } - - /// - /// - /// Use to forcefully delete an opened job; this method is quicker than - /// closing and deleting the job. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Specifies whether the request should return immediately or wait until the - /// job deletion completes. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// 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 -{ - internal DeleteJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_job"; - - public DeleteJobRequestDescriptor DeleteUserAnnotations(bool? deleteUserAnnotations = true) => Qs("delete_user_annotations", deleteUserAnnotations); - public DeleteJobRequestDescriptor Force(bool? force = true) => Qs("force", force); - public DeleteJobRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public DeleteJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs deleted file mode 100644 index eaba9314e44..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteJobResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteJobResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs deleted file mode 100644 index f7f45614a18..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs +++ /dev/null @@ -1,99 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteModelSnapshotRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a model snapshot. -/// You cannot delete the active model snapshot. To delete that snapshot, first -/// revert to a different one. To identify the active model snapshot, refer to -/// the model_snapshot_id in the results from the get jobs API. -/// -/// -public sealed partial class DeleteModelSnapshotRequest : PlainRequest -{ - public DeleteModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteModelSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_model_snapshot"; -} - -/// -/// -/// Delete a model snapshot. -/// You cannot delete the active model snapshot. To delete that snapshot, first -/// revert to a different one. To identify the active model snapshot, refer to -/// the model_snapshot_id in the results from the get jobs API. -/// -/// -public sealed partial class DeleteModelSnapshotRequestDescriptor : RequestDescriptor -{ - internal DeleteModelSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteModelSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteModelSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_model_snapshot"; - - public DeleteModelSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public DeleteModelSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) - { - RouteValues.Required("snapshot_id", snapshotId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs deleted file mode 100644 index 4dcd0a28b87..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteModelSnapshotResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteModelSnapshotResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs deleted file mode 100644 index 8a2bb6f0332..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs +++ /dev/null @@ -1,99 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteTrainedModelAliasRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a trained model alias. -/// This API deletes an existing model alias that refers to a trained model. If -/// the model alias is missing or refers to a model other than the one identified -/// by the model_id, this API returns an error. -/// -/// -public sealed partial class DeleteTrainedModelAliasRequest : PlainRequest -{ - public DeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias) : base(r => r.Required("model_id", modelId).Required("model_alias", modelAlias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteTrainedModelAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_trained_model_alias"; -} - -/// -/// -/// Delete a trained model alias. -/// This API deletes an existing model alias that refers to a trained model. If -/// the model alias is missing or refers to a model other than the one identified -/// by the model_id, this API returns an error. -/// -/// -public sealed partial class DeleteTrainedModelAliasRequestDescriptor : RequestDescriptor -{ - internal DeleteTrainedModelAliasRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteTrainedModelAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias) : base(r => r.Required("model_id", modelId).Required("model_alias", modelAlias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteTrainedModelAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_trained_model_alias"; - - public DeleteTrainedModelAliasRequestDescriptor ModelAlias(Elastic.Clients.Elasticsearch.Serverless.Name modelAlias) - { - RouteValues.Required("model_alias", modelAlias); - return Self; - } - - public DeleteTrainedModelAliasRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs deleted file mode 100644 index 77efa89d63c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelAliasResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteTrainedModelAliasResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs deleted file mode 100644 index a67f6f1a816..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteTrainedModelRequestParameters : RequestParameters -{ - /// - /// - /// Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Delete an unreferenced trained model. -/// The request deletes a trained inference model that is not referenced by an ingest pipeline. -/// -/// -public sealed partial class DeleteTrainedModelRequest : PlainRequest -{ - public DeleteTrainedModelRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_trained_model"; - - /// - /// - /// Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Delete an unreferenced trained model. -/// The request deletes a trained inference model that is not referenced by an ingest pipeline. -/// -/// -public sealed partial class DeleteTrainedModelRequestDescriptor : RequestDescriptor -{ - internal DeleteTrainedModelRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningDeleteTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.delete_trained_model"; - - public DeleteTrainedModelRequestDescriptor Force(bool? force = true) => Qs("force", force); - - public DeleteTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs deleted file mode 100644 index 6afafbd30f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/DeleteTrainedModelResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class DeleteTrainedModelResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs deleted file mode 100644 index 31aba530006..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs +++ /dev/null @@ -1,343 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class EstimateModelMemoryRequestParameters : RequestParameters -{ -} - -/// -/// -/// Estimate job model memory usage. -/// Makes an estimation of the memory usage for an anomaly detection job model. -/// It is based on analysis configuration details for the job and cardinality -/// estimates for the fields it references. -/// -/// -public sealed partial class EstimateModelMemoryRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningEstimateModelMemory; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.estimate_model_memory"; - - /// - /// - /// For a list of the properties that you can specify in the - /// analysis_config component of the body of this API. - /// - /// - [JsonInclude, JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? AnalysisConfig { get; set; } - - /// - /// - /// Estimates of the highest cardinality in a single bucket that is observed - /// for influencer fields over the time period that the job analyzes data. - /// To produce a good answer, values must be provided for all influencer - /// fields. Providing values for fields that are not listed as influencers - /// has no effect on the estimation. - /// - /// - [JsonInclude, JsonPropertyName("max_bucket_cardinality")] - public IDictionary? MaxBucketCardinality { get; set; } - - /// - /// - /// Estimates of the cardinality that is observed for fields over the whole - /// time period that the job analyzes data. To produce a good answer, values - /// must be provided for fields referenced in the by_field_name, - /// over_field_name and partition_field_name of any detectors. Providing - /// values for other fields has no effect on the estimation. It can be - /// omitted from the request if no detectors have a by_field_name, - /// over_field_name or partition_field_name. - /// - /// - [JsonInclude, JsonPropertyName("overall_cardinality")] - public IDictionary? OverallCardinality { get; set; } -} - -/// -/// -/// Estimate job model memory usage. -/// Makes an estimation of the memory usage for an anomaly detection job model. -/// It is based on analysis configuration details for the job and cardinality -/// estimates for the fields it references. -/// -/// -public sealed partial class EstimateModelMemoryRequestDescriptor : RequestDescriptor, EstimateModelMemoryRequestParameters> -{ - internal EstimateModelMemoryRequestDescriptor(Action> configure) => configure.Invoke(this); - - public EstimateModelMemoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningEstimateModelMemory; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.estimate_model_memory"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? AnalysisConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - private Action> AnalysisConfigDescriptorAction { get; set; } - private IDictionary? MaxBucketCardinalityValue { get; set; } - private IDictionary? OverallCardinalityValue { get; set; } - - /// - /// - /// For a list of the properties that you can specify in the - /// analysis_config component of the body of this API. - /// - /// - public EstimateModelMemoryRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public EstimateModelMemoryRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public EstimateModelMemoryRequestDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Estimates of the highest cardinality in a single bucket that is observed - /// for influencer fields over the time period that the job analyzes data. - /// To produce a good answer, values must be provided for all influencer - /// fields. Providing values for fields that are not listed as influencers - /// has no effect on the estimation. - /// - /// - public EstimateModelMemoryRequestDescriptor MaxBucketCardinality(Func, FluentDictionary> selector) - { - MaxBucketCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Estimates of the cardinality that is observed for fields over the whole - /// time period that the job analyzes data. To produce a good answer, values - /// must be provided for fields referenced in the by_field_name, - /// over_field_name and partition_field_name of any detectors. Providing - /// values for other fields has no effect on the estimation. It can be - /// omitted from the request if no detectors have a by_field_name, - /// over_field_name or partition_field_name. - /// - /// - public EstimateModelMemoryRequestDescriptor OverallCardinality(Func, FluentDictionary> selector) - { - OverallCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (MaxBucketCardinalityValue is not null) - { - writer.WritePropertyName("max_bucket_cardinality"); - JsonSerializer.Serialize(writer, MaxBucketCardinalityValue, options); - } - - if (OverallCardinalityValue is not null) - { - writer.WritePropertyName("overall_cardinality"); - JsonSerializer.Serialize(writer, OverallCardinalityValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Estimate job model memory usage. -/// Makes an estimation of the memory usage for an anomaly detection job model. -/// It is based on analysis configuration details for the job and cardinality -/// estimates for the fields it references. -/// -/// -public sealed partial class EstimateModelMemoryRequestDescriptor : RequestDescriptor -{ - internal EstimateModelMemoryRequestDescriptor(Action configure) => configure.Invoke(this); - - public EstimateModelMemoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningEstimateModelMemory; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.estimate_model_memory"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? AnalysisConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - private Action AnalysisConfigDescriptorAction { get; set; } - private IDictionary? MaxBucketCardinalityValue { get; set; } - private IDictionary? OverallCardinalityValue { get; set; } - - /// - /// - /// For a list of the properties that you can specify in the - /// analysis_config component of the body of this API. - /// - /// - public EstimateModelMemoryRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public EstimateModelMemoryRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public EstimateModelMemoryRequestDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Estimates of the highest cardinality in a single bucket that is observed - /// for influencer fields over the time period that the job analyzes data. - /// To produce a good answer, values must be provided for all influencer - /// fields. Providing values for fields that are not listed as influencers - /// has no effect on the estimation. - /// - /// - public EstimateModelMemoryRequestDescriptor MaxBucketCardinality(Func, FluentDictionary> selector) - { - MaxBucketCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Estimates of the cardinality that is observed for fields over the whole - /// time period that the job analyzes data. To produce a good answer, values - /// must be provided for fields referenced in the by_field_name, - /// over_field_name and partition_field_name of any detectors. Providing - /// values for other fields has no effect on the estimation. It can be - /// omitted from the request if no detectors have a by_field_name, - /// over_field_name or partition_field_name. - /// - /// - public EstimateModelMemoryRequestDescriptor OverallCardinality(Func, FluentDictionary> selector) - { - OverallCardinalityValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (MaxBucketCardinalityValue is not null) - { - writer.WritePropertyName("max_bucket_cardinality"); - JsonSerializer.Serialize(writer, MaxBucketCardinalityValue, options); - } - - if (OverallCardinalityValue is not null) - { - writer.WritePropertyName("overall_cardinality"); - JsonSerializer.Serialize(writer, OverallCardinalityValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs deleted file mode 100644 index 922869af4c3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EstimateModelMemoryResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class EstimateModelMemoryResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("model_memory_estimate")] - public string ModelMemoryEstimate { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs deleted file mode 100644 index 5e75e055fc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs +++ /dev/null @@ -1,365 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class EvaluateDataFrameRequestParameters : RequestParameters -{ -} - -/// -/// -/// Evaluate data frame analytics. -/// The API packages together commonly used evaluation metrics for various types -/// of machine learning features. This has been designed for use on indexes -/// created by data frame analytics. Evaluation requires both a ground truth -/// field and an analytics result field to be present. -/// -/// -public sealed partial class EvaluateDataFrameRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningEvaluateDataFrame; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.evaluate_data_frame"; - - /// - /// - /// Defines the type of evaluation you want to perform. - /// - /// - [JsonInclude, JsonPropertyName("evaluation")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation Evaluation { get; set; } - - /// - /// - /// Defines the index in which the evaluation will be performed. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } - - /// - /// - /// A query clause that retrieves a subset of data from the source index. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } -} - -/// -/// -/// Evaluate data frame analytics. -/// The API packages together commonly used evaluation metrics for various types -/// of machine learning features. This has been designed for use on indexes -/// created by data frame analytics. Evaluation requires both a ground truth -/// field and an analytics result field to be present. -/// -/// -public sealed partial class EvaluateDataFrameRequestDescriptor : RequestDescriptor, EvaluateDataFrameRequestParameters> -{ - internal EvaluateDataFrameRequestDescriptor(Action> configure) => configure.Invoke(this); - - public EvaluateDataFrameRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningEvaluateDataFrame; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.evaluate_data_frame"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation EvaluationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationDescriptor EvaluationDescriptor { get; set; } - private Action> EvaluationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - - /// - /// - /// Defines the type of evaluation you want to perform. - /// - /// - public EvaluateDataFrameRequestDescriptor Evaluation(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation evaluation) - { - EvaluationDescriptor = null; - EvaluationDescriptorAction = null; - EvaluationValue = evaluation; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Evaluation(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationDescriptor descriptor) - { - EvaluationValue = null; - EvaluationDescriptorAction = null; - EvaluationDescriptor = descriptor; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Evaluation(Action> configure) - { - EvaluationValue = null; - EvaluationDescriptor = null; - EvaluationDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the index in which the evaluation will be performed. - /// - /// - public EvaluateDataFrameRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// A query clause that retrieves a subset of data from the source index. - /// - /// - public EvaluateDataFrameRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EvaluationDescriptor is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationDescriptor, options); - } - else if (EvaluationDescriptorAction is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationDescriptor(EvaluationDescriptorAction), options); - } - else - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Evaluate data frame analytics. -/// The API packages together commonly used evaluation metrics for various types -/// of machine learning features. This has been designed for use on indexes -/// created by data frame analytics. Evaluation requires both a ground truth -/// field and an analytics result field to be present. -/// -/// -public sealed partial class EvaluateDataFrameRequestDescriptor : RequestDescriptor -{ - internal EvaluateDataFrameRequestDescriptor(Action configure) => configure.Invoke(this); - - public EvaluateDataFrameRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningEvaluateDataFrame; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.evaluate_data_frame"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation EvaluationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationDescriptor EvaluationDescriptor { get; set; } - private Action EvaluationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - /// - /// - /// Defines the type of evaluation you want to perform. - /// - /// - public EvaluateDataFrameRequestDescriptor Evaluation(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation evaluation) - { - EvaluationDescriptor = null; - EvaluationDescriptorAction = null; - EvaluationValue = evaluation; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Evaluation(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationDescriptor descriptor) - { - EvaluationValue = null; - EvaluationDescriptorAction = null; - EvaluationDescriptor = descriptor; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Evaluation(Action configure) - { - EvaluationValue = null; - EvaluationDescriptor = null; - EvaluationDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the index in which the evaluation will be performed. - /// - /// - public EvaluateDataFrameRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// A query clause that retrieves a subset of data from the source index. - /// - /// - public EvaluateDataFrameRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public EvaluateDataFrameRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EvaluationDescriptor is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationDescriptor, options); - } - else if (EvaluationDescriptorAction is not null) - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationDescriptor(EvaluationDescriptorAction), options); - } - else - { - writer.WritePropertyName("evaluation"); - JsonSerializer.Serialize(writer, EvaluationValue, options); - } - - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs deleted file mode 100644 index 79a1888b49d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class EvaluateDataFrameResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("classification")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeClassificationSummary? Classification { get; init; } - [JsonInclude, JsonPropertyName("outlier_detection")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeOutlierDetectionSummary? OutlierDetection { get; init; } - [JsonInclude, JsonPropertyName("regression")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeRegressionSummary? Regression { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index bcba58a723b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,825 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ExplainDataFrameAnalyticsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Explain data frame analytics config. -/// This API provides explanations for a data frame analytics config that either -/// exists already or one that has not been created yet. The following -/// explanations are provided: -/// -/// -/// -/// -/// which fields are included or not in the analysis and why, -/// -/// -/// -/// -/// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. -/// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. -/// -/// -/// -/// -public sealed partial class ExplainDataFrameAnalyticsRequest : PlainRequest -{ - public ExplainDataFrameAnalyticsRequest() - { - } - - public ExplainDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningExplainDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.explain_data_frame_analytics"; - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. - /// - /// - [JsonInclude, JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; set; } - - /// - /// - /// The analysis configuration, which contains the information necessary to - /// perform one of the following types of analysis: classification, outlier - /// detection, or regression. - /// - /// - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis? Analysis { get; set; } - - /// - /// - /// Specify includes and/or excludes patterns to select which fields will be - /// included in the analysis. The patterns specified in excludes are applied - /// last, therefore excludes takes precedence. In other words, if the same - /// field is specified in both includes and excludes, then the field will not - /// be included in the analysis. - /// - /// - [JsonInclude, JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } - - /// - /// - /// A description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The destination configuration, consisting of index and optionally - /// results_field (ml by default). - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination? Dest { get; set; } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - [JsonInclude, JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try to - /// create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - - /// - /// - /// The configuration of how to source the analysis data. It requires an - /// index. Optionally, query and _source may be specified. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource? Source { get; set; } -} - -/// -/// -/// Explain data frame analytics config. -/// This API provides explanations for a data frame analytics config that either -/// exists already or one that has not been created yet. The following -/// explanations are provided: -/// -/// -/// -/// -/// which fields are included or not in the analysis and why, -/// -/// -/// -/// -/// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. -/// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. -/// -/// -/// -/// -public sealed partial class ExplainDataFrameAnalyticsRequestDescriptor : RequestDescriptor, ExplainDataFrameAnalyticsRequestParameters> -{ - internal ExplainDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ExplainDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public ExplainDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningExplainDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.explain_data_frame_analytics"; - - public ExplainDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis? AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action> AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - private Action AnalyzedFieldsDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination? DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - private Action> DestDescriptorAction { get; set; } - private int? MaxNumThreadsValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - private Action> SourceDescriptorAction { get; set; } - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - /// - /// - /// The analysis configuration, which contains the information necessary to - /// perform one of the following types of analysis: classification, outlier - /// detection, or regression. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis? analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Analysis(Action> configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specify includes and/or excludes patterns to select which fields will be - /// included in the analysis. The patterns specified in excludes are applied - /// last, therefore excludes takes precedence. In other words, if the same - /// field is specified in both includes and excludes, then the field will not - /// be included in the analysis. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination configuration, consisting of index and optionally - /// results_field (ml by default). - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Dest(Action> configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try to - /// create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - /// - /// - /// The configuration of how to source the analysis data. It requires an - /// index. Optionally, query and _source may be specified. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else if (AnalysisValue is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Explain data frame analytics config. -/// This API provides explanations for a data frame analytics config that either -/// exists already or one that has not been created yet. The following -/// explanations are provided: -/// -/// -/// -/// -/// which fields are included or not in the analysis and why, -/// -/// -/// -/// -/// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. -/// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. -/// -/// -/// -/// -public sealed partial class ExplainDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal ExplainDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExplainDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public ExplainDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningExplainDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.explain_data_frame_analytics"; - - public ExplainDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis? AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - private Action AnalyzedFieldsDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination? DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private int? MaxNumThreadsValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - /// - /// - /// The analysis configuration, which contains the information necessary to - /// perform one of the following types of analysis: classification, outlier - /// detection, or regression. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis? analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specify includes and/or excludes patterns to select which fields will be - /// included in the analysis. The patterns specified in excludes are applied - /// last, therefore excludes takes precedence. In other words, if the same - /// field is specified in both includes and excludes, then the field will not - /// be included in the analysis. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination configuration, consisting of index and optionally - /// results_field (ml by default). - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try to - /// create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - /// - /// - /// The configuration of how to source the analysis data. It requires an - /// index. Optionally, query and _source may be specified. - /// - /// - public ExplainDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public ExplainDataFrameAnalyticsRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else if (AnalysisValue is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index a6c84a58c69..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ExplainDataFrameAnalyticsResponse : ElasticsearchResponse -{ - /// - /// - /// An array of objects that explain selection for each field, sorted by the field names. - /// - /// - [JsonInclude, JsonPropertyName("field_selection")] - public IReadOnlyCollection FieldSelection { get; init; } - - /// - /// - /// An array of objects that explain selection for each field, sorted by the field names. - /// - /// - [JsonInclude, JsonPropertyName("memory_estimation")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsMemoryEstimation MemoryEstimation { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs deleted file mode 100644 index 9be14763bfa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobRequest.g.cs +++ /dev/null @@ -1,236 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class FlushJobRequestParameters : RequestParameters -{ -} - -/// -/// -/// Force buffered data to be processed. -/// The flush jobs API is only applicable when sending data for analysis using -/// the post data API. Depending on the content of the buffer, then it might -/// additionally calculate new results. Both flush and close operations are -/// similar, however the flush is more efficient if you are expecting to send -/// more data for analysis. When flushing, the job remains open and is available -/// to continue analyzing data. A close operation additionally prunes and -/// persists the model state to disk and the job must be opened again before -/// analyzing further data. -/// -/// -public sealed partial class FlushJobRequest : PlainRequest -{ - public FlushJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningFlushJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.flush_job"; - - /// - /// - /// Refer to the description for the advance_time query parameter. - /// - /// - [JsonInclude, JsonPropertyName("advance_time")] - public DateTimeOffset? AdvanceTime { get; set; } - - /// - /// - /// Refer to the description for the calc_interim query parameter. - /// - /// - [JsonInclude, JsonPropertyName("calc_interim")] - public bool? CalcInterim { get; set; } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - /// - /// - /// Refer to the description for the skip_time query parameter. - /// - /// - [JsonInclude, JsonPropertyName("skip_time")] - public DateTimeOffset? SkipTime { get; set; } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } -} - -/// -/// -/// Force buffered data to be processed. -/// The flush jobs API is only applicable when sending data for analysis using -/// the post data API. Depending on the content of the buffer, then it might -/// additionally calculate new results. Both flush and close operations are -/// similar, however the flush is more efficient if you are expecting to send -/// more data for analysis. When flushing, the job remains open and is available -/// to continue analyzing data. A close operation additionally prunes and -/// persists the model state to disk and the job must be opened again before -/// analyzing further data. -/// -/// -public sealed partial class FlushJobRequestDescriptor : RequestDescriptor -{ - internal FlushJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public FlushJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningFlushJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.flush_job"; - - public FlushJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private DateTimeOffset? AdvanceTimeValue { get; set; } - private bool? CalcInterimValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private DateTimeOffset? SkipTimeValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the advance_time query parameter. - /// - /// - public FlushJobRequestDescriptor AdvanceTime(DateTimeOffset? advanceTime) - { - AdvanceTimeValue = advanceTime; - return Self; - } - - /// - /// - /// Refer to the description for the calc_interim query parameter. - /// - /// - public FlushJobRequestDescriptor CalcInterim(bool? calcInterim = true) - { - CalcInterimValue = calcInterim; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public FlushJobRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the skip_time query parameter. - /// - /// - public FlushJobRequestDescriptor SkipTime(DateTimeOffset? skipTime) - { - SkipTimeValue = skipTime; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public FlushJobRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AdvanceTimeValue is not null) - { - writer.WritePropertyName("advance_time"); - JsonSerializer.Serialize(writer, AdvanceTimeValue, options); - } - - if (CalcInterimValue.HasValue) - { - writer.WritePropertyName("calc_interim"); - writer.WriteBooleanValue(CalcInterimValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (SkipTimeValue is not null) - { - writer.WritePropertyName("skip_time"); - JsonSerializer.Serialize(writer, SkipTimeValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobResponse.g.cs deleted file mode 100644 index 153a31d6ccb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/FlushJobResponse.g.cs +++ /dev/null @@ -1,42 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class FlushJobResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("flushed")] - public bool Flushed { get; init; } - - /// - /// - /// Provides the timestamp (in milliseconds since the epoch) of the end of - /// the last bucket that was processed. - /// - /// - [JsonInclude, JsonPropertyName("last_finalized_bucket_end")] - public int? LastFinalizedBucketEnd { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs deleted file mode 100644 index d7ab688c996..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastRequest.g.cs +++ /dev/null @@ -1,180 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ForecastRequestParameters : RequestParameters -{ -} - -/// -/// -/// Predict future behavior of a time series. -/// -/// -/// Forecasts are not supported for jobs that perform population analysis; an -/// error occurs if you try to create a forecast for a job that has an -/// over_field_name in its configuration. Forcasts predict future behavior -/// based on historical data. -/// -/// -public sealed partial class ForecastRequest : PlainRequest -{ - public ForecastRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningForecast; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.forecast"; - - /// - /// - /// Refer to the description for the duration query parameter. - /// - /// - [JsonInclude, JsonPropertyName("duration")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Duration { get; set; } - - /// - /// - /// Refer to the description for the expires_in query parameter. - /// - /// - [JsonInclude, JsonPropertyName("expires_in")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ExpiresIn { get; set; } - - /// - /// - /// Refer to the description for the max_model_memory query parameter. - /// - /// - [JsonInclude, JsonPropertyName("max_model_memory")] - public string? MaxModelMemory { get; set; } -} - -/// -/// -/// Predict future behavior of a time series. -/// -/// -/// Forecasts are not supported for jobs that perform population analysis; an -/// error occurs if you try to create a forecast for a job that has an -/// over_field_name in its configuration. Forcasts predict future behavior -/// based on historical data. -/// -/// -public sealed partial class ForecastRequestDescriptor : RequestDescriptor -{ - internal ForecastRequestDescriptor(Action configure) => configure.Invoke(this); - - public ForecastRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningForecast; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.forecast"; - - public ForecastRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? DurationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? ExpiresInValue { get; set; } - private string? MaxModelMemoryValue { get; set; } - - /// - /// - /// Refer to the description for the duration query parameter. - /// - /// - public ForecastRequestDescriptor Duration(Elastic.Clients.Elasticsearch.Serverless.Duration? duration) - { - DurationValue = duration; - return Self; - } - - /// - /// - /// Refer to the description for the expires_in query parameter. - /// - /// - public ForecastRequestDescriptor ExpiresIn(Elastic.Clients.Elasticsearch.Serverless.Duration? expiresIn) - { - ExpiresInValue = expiresIn; - return Self; - } - - /// - /// - /// Refer to the description for the max_model_memory query parameter. - /// - /// - public ForecastRequestDescriptor MaxModelMemory(string? maxModelMemory) - { - MaxModelMemoryValue = maxModelMemory; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DurationValue is not null) - { - writer.WritePropertyName("duration"); - JsonSerializer.Serialize(writer, DurationValue, options); - } - - if (ExpiresInValue is not null) - { - writer.WritePropertyName("expires_in"); - JsonSerializer.Serialize(writer, ExpiresInValue, options); - } - - if (!string.IsNullOrEmpty(MaxModelMemoryValue)) - { - writer.WritePropertyName("max_model_memory"); - writer.WriteStringValue(MaxModelMemoryValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastResponse.g.cs deleted file mode 100644 index 1e1980755b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ForecastResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ForecastResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("forecast_id")] - public string ForecastId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs deleted file mode 100644 index 000c92a69a4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsRequest.g.cs +++ /dev/null @@ -1,627 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetBucketsRequestParameters : RequestParameters -{ - /// - /// - /// Skips the specified number of buckets. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of buckets to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get anomaly detection job results for buckets. -/// The API presents a chronological view of the records, grouped by bucket. -/// -/// -public sealed partial class GetBucketsRequest : PlainRequest -{ - public GetBucketsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp) : base(r => r.Required("job_id", jobId).Optional("timestamp", timestamp)) - { - } - - public GetBucketsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetBuckets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_buckets"; - - /// - /// - /// Skips the specified number of buckets. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of buckets to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Refer to the description for the anomaly_score query parameter. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_score")] - public double? AnomalyScore { get; set; } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - [JsonInclude, JsonPropertyName("desc")] - public bool? Desc { get; set; } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - [JsonInclude, JsonPropertyName("exclude_interim")] - public bool? ExcludeInterim { get; set; } - - /// - /// - /// Refer to the description for the expand query parameter. - /// - /// - [JsonInclude, JsonPropertyName("expand")] - public bool? Expand { get; set; } - [JsonInclude, JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? Page { get; set; } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Sort { get; set; } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } -} - -/// -/// -/// Get anomaly detection job results for buckets. -/// The API presents a chronological view of the records, grouped by bucket. -/// -/// -public sealed partial class GetBucketsRequestDescriptor : RequestDescriptor, GetBucketsRequestParameters> -{ - internal GetBucketsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetBucketsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp) : base(r => r.Required("job_id", jobId).Optional("timestamp", timestamp)) - { - } - - public GetBucketsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetBuckets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_buckets"; - - public GetBucketsRequestDescriptor From(int? from) => Qs("from", from); - public GetBucketsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetBucketsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public GetBucketsRequestDescriptor Timestamp(DateTimeOffset? timestamp) - { - RouteValues.Optional("timestamp", timestamp); - return Self; - } - - private double? AnomalyScoreValue { get; set; } - private bool? DescValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private bool? ExcludeInterimValue { get; set; } - private bool? ExpandValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SortValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the anomaly_score query parameter. - /// - /// - public GetBucketsRequestDescriptor AnomalyScore(double? anomalyScore) - { - AnomalyScoreValue = anomalyScore; - return Self; - } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - public GetBucketsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetBucketsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - public GetBucketsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - /// - /// - /// Refer to the description for the expand query parameter. - /// - /// - public GetBucketsRequestDescriptor Expand(bool? expand = true) - { - ExpandValue = expand; - return Self; - } - - public GetBucketsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetBucketsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetBucketsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - public GetBucketsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - public GetBucketsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - public GetBucketsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetBucketsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnomalyScoreValue.HasValue) - { - writer.WritePropertyName("anomaly_score"); - writer.WriteNumberValue(AnomalyScoreValue.Value); - } - - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (ExpandValue.HasValue) - { - writer.WritePropertyName("expand"); - writer.WriteBooleanValue(ExpandValue.Value); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get anomaly detection job results for buckets. -/// The API presents a chronological view of the records, grouped by bucket. -/// -/// -public sealed partial class GetBucketsRequestDescriptor : RequestDescriptor -{ - internal GetBucketsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetBucketsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp) : base(r => r.Required("job_id", jobId).Optional("timestamp", timestamp)) - { - } - - public GetBucketsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetBuckets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_buckets"; - - public GetBucketsRequestDescriptor From(int? from) => Qs("from", from); - public GetBucketsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetBucketsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public GetBucketsRequestDescriptor Timestamp(DateTimeOffset? timestamp) - { - RouteValues.Optional("timestamp", timestamp); - return Self; - } - - private double? AnomalyScoreValue { get; set; } - private bool? DescValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private bool? ExcludeInterimValue { get; set; } - private bool? ExpandValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SortValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the anomaly_score query parameter. - /// - /// - public GetBucketsRequestDescriptor AnomalyScore(double? anomalyScore) - { - AnomalyScoreValue = anomalyScore; - return Self; - } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - public GetBucketsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetBucketsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - public GetBucketsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - /// - /// - /// Refer to the description for the expand query parameter. - /// - /// - public GetBucketsRequestDescriptor Expand(bool? expand = true) - { - ExpandValue = expand; - return Self; - } - - public GetBucketsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetBucketsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetBucketsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - public GetBucketsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - public GetBucketsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the desription for the sort query parameter. - /// - /// - public GetBucketsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetBucketsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnomalyScoreValue.HasValue) - { - writer.WritePropertyName("anomaly_score"); - writer.WriteNumberValue(AnomalyScoreValue.Value); - } - - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (ExpandValue.HasValue) - { - writer.WritePropertyName("expand"); - writer.WriteBooleanValue(ExpandValue.Value); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs deleted file mode 100644 index 39a5dfa7a94..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetBucketsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetBucketsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs deleted file mode 100644 index 89dc4aec915..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsRequest.g.cs +++ /dev/null @@ -1,167 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetCalendarEventsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies to get events with timestamps earlier than this time. - /// - /// - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - /// - /// - /// Skips the specified number of events. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of _all or *. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get => Q("job_id"); set => Q("job_id", value); } - - /// - /// - /// Specifies the maximum number of events to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Specifies to get events with timestamps after this time. - /// - /// - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } -} - -/// -/// -/// Get info about events in calendars. -/// -/// -public sealed partial class GetCalendarEventsRequest : PlainRequest -{ - public GetCalendarEventsRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetCalendarEvents; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_calendar_events"; - - /// - /// - /// Specifies to get events with timestamps earlier than this time. - /// - /// - [JsonIgnore] - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - /// - /// - /// Skips the specified number of events. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies to get events for a specific anomaly detection job identifier or job group. It must be used with a calendar identifier of _all or *. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get => Q("job_id"); set => Q("job_id", value); } - - /// - /// - /// Specifies the maximum number of events to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Specifies to get events with timestamps after this time. - /// - /// - [JsonIgnore] - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } -} - -/// -/// -/// Get info about events in calendars. -/// -/// -public sealed partial class GetCalendarEventsRequestDescriptor : RequestDescriptor -{ - internal GetCalendarEventsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetCalendarEventsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetCalendarEvents; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_calendar_events"; - - public GetCalendarEventsRequestDescriptor End(DateTimeOffset? end) => Qs("end", end); - public GetCalendarEventsRequestDescriptor From(int? from) => Qs("from", from); - public GetCalendarEventsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) => Qs("job_id", jobId); - public GetCalendarEventsRequestDescriptor Size(int? size) => Qs("size", size); - public GetCalendarEventsRequestDescriptor Start(DateTimeOffset? start) => Qs("start", start); - - public GetCalendarEventsRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs deleted file mode 100644 index e283a01a1d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarEventsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetCalendarEventsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("events")] - public IReadOnlyCollection Events { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs deleted file mode 100644 index 4ea7f49c534..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsRequest.g.cs +++ /dev/null @@ -1,186 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetCalendarsRequestParameters : RequestParameters -{ - /// - /// - /// Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get calendar configuration info. -/// -/// -public sealed partial class GetCalendarsRequest : PlainRequest -{ - public GetCalendarsRequest() - { - } - - public GetCalendarsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? calendarId) : base(r => r.Optional("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetCalendars; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_calendars"; - - /// - /// - /// Skips the specified number of calendars. This parameter is supported only when you omit the calendar identifier. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of calendars to obtain. This parameter is supported only when you omit the calendar identifier. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// This object is supported only when you omit the calendar identifier. - /// - /// - [JsonInclude, JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? Page { get; set; } -} - -/// -/// -/// Get calendar configuration info. -/// -/// -public sealed partial class GetCalendarsRequestDescriptor : RequestDescriptor -{ - internal GetCalendarsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetCalendarsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? calendarId) : base(r => r.Optional("calendar_id", calendarId)) - { - } - - public GetCalendarsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetCalendars; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_calendars"; - - public GetCalendarsRequestDescriptor From(int? from) => Qs("from", from); - public GetCalendarsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetCalendarsRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id? calendarId) - { - RouteValues.Optional("calendar_id", calendarId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - - /// - /// - /// This object is supported only when you omit the calendar identifier. - /// - /// - public GetCalendarsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetCalendarsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetCalendarsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs deleted file mode 100644 index afda50d69dd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCalendarsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetCalendarsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("calendars")] - public IReadOnlyCollection Calendars { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs deleted file mode 100644 index 22c6ffe83ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesRequest.g.cs +++ /dev/null @@ -1,210 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetCategoriesRequestParameters : RequestParameters -{ - /// - /// - /// Skips the specified number of categories. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Only return categories for the specified partition. - /// - /// - public string? PartitionFieldValue { get => Q("partition_field_value"); set => Q("partition_field_value", value); } - - /// - /// - /// Specifies the maximum number of categories to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get anomaly detection job results for categories. -/// -/// -public sealed partial class GetCategoriesRequest : PlainRequest -{ - public GetCategoriesRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, string? categoryId) : base(r => r.Required("job_id", jobId).Optional("category_id", categoryId)) - { - } - - public GetCategoriesRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetCategories; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_categories"; - - /// - /// - /// Skips the specified number of categories. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Only return categories for the specified partition. - /// - /// - [JsonIgnore] - public string? PartitionFieldValue { get => Q("partition_field_value"); set => Q("partition_field_value", value); } - - /// - /// - /// Specifies the maximum number of categories to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Configures pagination. - /// This parameter has the from and size properties. - /// - /// - [JsonInclude, JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? Page { get; set; } -} - -/// -/// -/// Get anomaly detection job results for categories. -/// -/// -public sealed partial class GetCategoriesRequestDescriptor : RequestDescriptor -{ - internal GetCategoriesRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetCategoriesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, string? categoryId) : base(r => r.Required("job_id", jobId).Optional("category_id", categoryId)) - { - } - - public GetCategoriesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetCategories; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_categories"; - - public GetCategoriesRequestDescriptor From(int? from) => Qs("from", from); - public GetCategoriesRequestDescriptor PartitionFieldValue(string? partitionFieldValue) => Qs("partition_field_value", partitionFieldValue); - public GetCategoriesRequestDescriptor Size(int? size) => Qs("size", size); - - public GetCategoriesRequestDescriptor CategoryId(string? categoryId) - { - RouteValues.Optional("category_id", categoryId); - return Self; - } - - public GetCategoriesRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - - /// - /// - /// Configures pagination. - /// This parameter has the from and size properties. - /// - /// - public GetCategoriesRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetCategoriesRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetCategoriesRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs deleted file mode 100644 index 024ea36bf85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetCategoriesResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetCategoriesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("categories")] - public IReadOnlyCollection Categories { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 978f87804b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,261 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDataFrameAnalyticsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no data frame analytics - /// jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value returns an empty data_frame_analytics array when there - /// are no matches and the subset of results when there are partial matches. - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - - /// - /// - /// Skips the specified number of data frame analytics jobs. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of data frame analytics jobs to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get data frame analytics job configuration info. -/// You can get information for multiple data frame analytics jobs in a single -/// API request by using a comma-separated list of data frame analytics jobs or a -/// wildcard expression. -/// -/// -public sealed partial class GetDataFrameAnalyticsRequest : PlainRequest -{ - public GetDataFrameAnalyticsRequest() - { - } - - public GetDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_data_frame_analytics"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no data frame analytics - /// jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value returns an empty data_frame_analytics array when there - /// are no matches and the subset of results when there are partial matches. - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - - /// - /// - /// Skips the specified number of data frame analytics jobs. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of data frame analytics jobs to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get data frame analytics job configuration info. -/// You can get information for multiple data frame analytics jobs in a single -/// API request by using a comma-separated list of data frame analytics jobs or a -/// wildcard expression. -/// -/// -public sealed partial class GetDataFrameAnalyticsRequestDescriptor : RequestDescriptor, GetDataFrameAnalyticsRequestParameters> -{ - internal GetDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public GetDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_data_frame_analytics"; - - public GetDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetDataFrameAnalyticsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public GetDataFrameAnalyticsRequestDescriptor From(int? from) => Qs("from", from); - public GetDataFrameAnalyticsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get data frame analytics job configuration info. -/// You can get information for multiple data frame analytics jobs in a single -/// API request by using a comma-separated list of data frame analytics jobs or a -/// wildcard expression. -/// -/// -public sealed partial class GetDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal GetDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public GetDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_data_frame_analytics"; - - public GetDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetDataFrameAnalyticsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public GetDataFrameAnalyticsRequestDescriptor From(int? from) => Qs("from", from); - public GetDataFrameAnalyticsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 42dc76a3e59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDataFrameAnalyticsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// An array of data frame analytics job resources, which are sorted by the id value in ascending order. - /// - /// - [JsonInclude, JsonPropertyName("data_frame_analytics")] - public IReadOnlyCollection DataFrameAnalytics { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs deleted file mode 100644 index 37e600dff08..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs +++ /dev/null @@ -1,248 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDataFrameAnalyticsStatsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no data frame analytics - /// jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value returns an empty data_frame_analytics array when there - /// are no matches and the subset of results when there are partial matches. - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Skips the specified number of data frame analytics jobs. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of data frame analytics jobs to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Defines whether the stats response should be verbose. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get data frame analytics jobs usage info. -/// -/// -public sealed partial class GetDataFrameAnalyticsStatsRequest : PlainRequest -{ - public GetDataFrameAnalyticsStatsRequest() - { - } - - public GetDataFrameAnalyticsStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDataFrameAnalyticsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_data_frame_analytics_stats"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no data frame analytics - /// jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value returns an empty data_frame_analytics array when there - /// are no matches and the subset of results when there are partial matches. - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Skips the specified number of data frame analytics jobs. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of data frame analytics jobs to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Defines whether the stats response should be verbose. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get data frame analytics jobs usage info. -/// -/// -public sealed partial class GetDataFrameAnalyticsStatsRequestDescriptor : RequestDescriptor, GetDataFrameAnalyticsStatsRequestParameters> -{ - internal GetDataFrameAnalyticsStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetDataFrameAnalyticsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public GetDataFrameAnalyticsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDataFrameAnalyticsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_data_frame_analytics_stats"; - - public GetDataFrameAnalyticsStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetDataFrameAnalyticsStatsRequestDescriptor From(int? from) => Qs("from", from); - public GetDataFrameAnalyticsStatsRequestDescriptor Size(int? size) => Qs("size", size); - public GetDataFrameAnalyticsStatsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public GetDataFrameAnalyticsStatsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get data frame analytics jobs usage info. -/// -/// -public sealed partial class GetDataFrameAnalyticsStatsRequestDescriptor : RequestDescriptor -{ - internal GetDataFrameAnalyticsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetDataFrameAnalyticsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public GetDataFrameAnalyticsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDataFrameAnalyticsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_data_frame_analytics_stats"; - - public GetDataFrameAnalyticsStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetDataFrameAnalyticsStatsRequestDescriptor From(int? from) => Qs("from", from); - public GetDataFrameAnalyticsStatsRequestDescriptor Size(int? size) => Qs("size", size); - public GetDataFrameAnalyticsStatsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public GetDataFrameAnalyticsStatsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs deleted file mode 100644 index 771939f5968..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDataFrameAnalyticsStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// An array of objects that contain usage information for data frame analytics jobs, which are sorted by the id value in ascending order. - /// - /// - [JsonInclude, JsonPropertyName("data_frame_analytics")] - public IReadOnlyCollection DataFrameAnalytics { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs deleted file mode 100644 index 202bb74adaa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs +++ /dev/null @@ -1,169 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDatafeedStatsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no datafeeds that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty datafeeds array - /// when there are no matches and the subset of results when there are - /// partial matches. If this parameter is false, the request returns a - /// 404 status code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } -} - -/// -/// -/// Get datafeeds usage info. -/// You can get statistics for multiple datafeeds in a single API request by -/// using a comma-separated list of datafeeds or a wildcard expression. You can -/// get statistics for all datafeeds by using _all, by specifying * as the -/// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the -/// only information you receive is the datafeed_id and the state. -/// This API returns a maximum of 10,000 datafeeds. -/// -/// -public sealed partial class GetDatafeedStatsRequest : PlainRequest -{ - public GetDatafeedStatsRequest() - { - } - - public GetDatafeedStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId) : base(r => r.Optional("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDatafeedStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_datafeed_stats"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no datafeeds that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty datafeeds array - /// when there are no matches and the subset of results when there are - /// partial matches. If this parameter is false, the request returns a - /// 404 status code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } -} - -/// -/// -/// Get datafeeds usage info. -/// You can get statistics for multiple datafeeds in a single API request by -/// using a comma-separated list of datafeeds or a wildcard expression. You can -/// get statistics for all datafeeds by using _all, by specifying * as the -/// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the -/// only information you receive is the datafeed_id and the state. -/// This API returns a maximum of 10,000 datafeeds. -/// -/// -public sealed partial class GetDatafeedStatsRequestDescriptor : RequestDescriptor -{ - internal GetDatafeedStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetDatafeedStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId) : base(r => r.Optional("datafeed_id", datafeedId)) - { - } - - public GetDatafeedStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDatafeedStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_datafeed_stats"; - - public GetDatafeedStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - - public GetDatafeedStatsRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId) - { - RouteValues.Optional("datafeed_id", datafeedId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs deleted file mode 100644 index cc43d913335..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedStatsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDatafeedStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("datafeeds")] - public IReadOnlyCollection Datafeeds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs deleted file mode 100644 index 0c7a6c9e4bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsRequest.g.cs +++ /dev/null @@ -1,187 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDatafeedsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no datafeeds that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty datafeeds array - /// when there are no matches and the subset of results when there are - /// partial matches. If this parameter is false, the request returns a - /// 404 status code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } -} - -/// -/// -/// Get datafeeds configuration info. -/// You can get information for multiple datafeeds in a single API request by -/// using a comma-separated list of datafeeds or a wildcard expression. You can -/// get information for all datafeeds by using _all, by specifying * as the -/// <feed_id>, or by omitting the <feed_id>. -/// This API returns a maximum of 10,000 datafeeds. -/// -/// -public sealed partial class GetDatafeedsRequest : PlainRequest -{ - public GetDatafeedsRequest() - { - } - - public GetDatafeedsRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId) : base(r => r.Optional("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDatafeeds; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_datafeeds"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no datafeeds that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty datafeeds array - /// when there are no matches and the subset of results when there are - /// partial matches. If this parameter is false, the request returns a - /// 404 status code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } -} - -/// -/// -/// Get datafeeds configuration info. -/// You can get information for multiple datafeeds in a single API request by -/// using a comma-separated list of datafeeds or a wildcard expression. You can -/// get information for all datafeeds by using _all, by specifying * as the -/// <feed_id>, or by omitting the <feed_id>. -/// This API returns a maximum of 10,000 datafeeds. -/// -/// -public sealed partial class GetDatafeedsRequestDescriptor : RequestDescriptor -{ - internal GetDatafeedsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetDatafeedsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId) : base(r => r.Optional("datafeed_id", datafeedId)) - { - } - - public GetDatafeedsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetDatafeeds; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_datafeeds"; - - public GetDatafeedsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetDatafeedsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - - public GetDatafeedsRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId) - { - RouteValues.Optional("datafeed_id", datafeedId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs deleted file mode 100644 index caa45e6562a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetDatafeedsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetDatafeedsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("datafeeds")] - public IReadOnlyCollection Datafeeds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs deleted file mode 100644 index 50976e51819..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersRequest.g.cs +++ /dev/null @@ -1,129 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetFiltersRequestParameters : RequestParameters -{ - /// - /// - /// Skips the specified number of filters. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of filters to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get filters. -/// You can get a single filter or all filters. -/// -/// -public sealed partial class GetFiltersRequest : PlainRequest -{ - public GetFiltersRequest() - { - } - - public GetFiltersRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? filterId) : base(r => r.Optional("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetFilters; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_filters"; - - /// - /// - /// Skips the specified number of filters. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of filters to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get filters. -/// You can get a single filter or all filters. -/// -/// -public sealed partial class GetFiltersRequestDescriptor : RequestDescriptor -{ - internal GetFiltersRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetFiltersRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? filterId) : base(r => r.Optional("filter_id", filterId)) - { - } - - public GetFiltersRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetFilters; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_filters"; - - public GetFiltersRequestDescriptor From(int? from) => Qs("from", from); - public GetFiltersRequestDescriptor Size(int? size) => Qs("size", size); - - public GetFiltersRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Serverless.Ids? filterId) - { - RouteValues.Optional("filter_id", filterId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs deleted file mode 100644 index 428014f53fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetFiltersResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetFiltersResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("filters")] - public IReadOnlyCollection Filters { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs deleted file mode 100644 index a2bfb5349fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersRequest.g.cs +++ /dev/null @@ -1,390 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetInfluencersRequestParameters : RequestParameters -{ - /// - /// - /// If true, the results are sorted in descending order. - /// - /// - public bool? Desc { get => Q("desc"); set => Q("desc", value); } - - /// - /// - /// Returns influencers with timestamps earlier than this time. - /// The default value means it is unset and results are not limited to - /// specific timestamps. - /// - /// - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - /// - /// - /// If true, the output excludes interim results. By default, interim results - /// are included. - /// - /// - public bool? ExcludeInterim { get => Q("exclude_interim"); set => Q("exclude_interim", value); } - - /// - /// - /// Skips the specified number of influencers. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Returns influencers with anomaly scores greater than or equal to this - /// value. - /// - /// - public double? InfluencerScore { get => Q("influencer_score"); set => Q("influencer_score", value); } - - /// - /// - /// Specifies the maximum number of influencers to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Specifies the sort field for the requested influencers. By default, the - /// influencers are sorted by the influencer_score value. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Field? Sort { get => Q("sort"); set => Q("sort", value); } - - /// - /// - /// Returns influencers with timestamps after this time. The default value - /// means it is unset and results are not limited to specific timestamps. - /// - /// - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } -} - -/// -/// -/// Get anomaly detection job results for influencers. -/// Influencers are the entities that have contributed to, or are to blame for, -/// the anomalies. Influencer results are available only if an -/// influencer_field_name is specified in the job configuration. -/// -/// -public sealed partial class GetInfluencersRequest : PlainRequest -{ - public GetInfluencersRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetInfluencers; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_influencers"; - - /// - /// - /// If true, the results are sorted in descending order. - /// - /// - [JsonIgnore] - public bool? Desc { get => Q("desc"); set => Q("desc", value); } - - /// - /// - /// Returns influencers with timestamps earlier than this time. - /// The default value means it is unset and results are not limited to - /// specific timestamps. - /// - /// - [JsonIgnore] - public DateTimeOffset? End { get => Q("end"); set => Q("end", value); } - - /// - /// - /// If true, the output excludes interim results. By default, interim results - /// are included. - /// - /// - [JsonIgnore] - public bool? ExcludeInterim { get => Q("exclude_interim"); set => Q("exclude_interim", value); } - - /// - /// - /// Skips the specified number of influencers. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Returns influencers with anomaly scores greater than or equal to this - /// value. - /// - /// - [JsonIgnore] - public double? InfluencerScore { get => Q("influencer_score"); set => Q("influencer_score", value); } - - /// - /// - /// Specifies the maximum number of influencers to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Specifies the sort field for the requested influencers. By default, the - /// influencers are sorted by the influencer_score value. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Field? Sort { get => Q("sort"); set => Q("sort", value); } - - /// - /// - /// Returns influencers with timestamps after this time. The default value - /// means it is unset and results are not limited to specific timestamps. - /// - /// - [JsonIgnore] - public DateTimeOffset? Start { get => Q("start"); set => Q("start", value); } - - /// - /// - /// Configures pagination. - /// This parameter has the from and size properties. - /// - /// - [JsonInclude, JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? Page { get; set; } -} - -/// -/// -/// Get anomaly detection job results for influencers. -/// Influencers are the entities that have contributed to, or are to blame for, -/// the anomalies. Influencer results are available only if an -/// influencer_field_name is specified in the job configuration. -/// -/// -public sealed partial class GetInfluencersRequestDescriptor : RequestDescriptor, GetInfluencersRequestParameters> -{ - internal GetInfluencersRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetInfluencersRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetInfluencers; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_influencers"; - - public GetInfluencersRequestDescriptor Desc(bool? desc = true) => Qs("desc", desc); - public GetInfluencersRequestDescriptor End(DateTimeOffset? end) => Qs("end", end); - public GetInfluencersRequestDescriptor ExcludeInterim(bool? excludeInterim = true) => Qs("exclude_interim", excludeInterim); - public GetInfluencersRequestDescriptor From(int? from) => Qs("from", from); - public GetInfluencersRequestDescriptor InfluencerScore(double? influencerScore) => Qs("influencer_score", influencerScore); - public GetInfluencersRequestDescriptor Size(int? size) => Qs("size", size); - public GetInfluencersRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) => Qs("sort", sort); - public GetInfluencersRequestDescriptor Start(DateTimeOffset? start) => Qs("start", start); - - public GetInfluencersRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - - /// - /// - /// Configures pagination. - /// This parameter has the from and size properties. - /// - /// - public GetInfluencersRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetInfluencersRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetInfluencersRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get anomaly detection job results for influencers. -/// Influencers are the entities that have contributed to, or are to blame for, -/// the anomalies. Influencer results are available only if an -/// influencer_field_name is specified in the job configuration. -/// -/// -public sealed partial class GetInfluencersRequestDescriptor : RequestDescriptor -{ - internal GetInfluencersRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetInfluencersRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetInfluencers; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_influencers"; - - public GetInfluencersRequestDescriptor Desc(bool? desc = true) => Qs("desc", desc); - public GetInfluencersRequestDescriptor End(DateTimeOffset? end) => Qs("end", end); - public GetInfluencersRequestDescriptor ExcludeInterim(bool? excludeInterim = true) => Qs("exclude_interim", excludeInterim); - public GetInfluencersRequestDescriptor From(int? from) => Qs("from", from); - public GetInfluencersRequestDescriptor InfluencerScore(double? influencerScore) => Qs("influencer_score", influencerScore); - public GetInfluencersRequestDescriptor Size(int? size) => Qs("size", size); - public GetInfluencersRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) => Qs("sort", sort); - public GetInfluencersRequestDescriptor Start(DateTimeOffset? start) => Qs("start", start); - - public GetInfluencersRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - - /// - /// - /// Configures pagination. - /// This parameter has the from and size properties. - /// - /// - public GetInfluencersRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetInfluencersRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetInfluencersRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs deleted file mode 100644 index 3d09d58a4df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetInfluencersResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetInfluencersResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// Array of influencer objects - /// - /// - [JsonInclude, JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs deleted file mode 100644 index bcaf990b9ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs +++ /dev/null @@ -1,157 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetJobStatsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If true, the API returns an empty jobs array when - /// there are no matches and the subset of results when there are partial - /// matches. If false, the API returns a 404 status - /// code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } -} - -/// -/// -/// Get anomaly detection jobs usage info. -/// -/// -public sealed partial class GetJobStatsRequest : PlainRequest -{ - public GetJobStatsRequest() - { - } - - public GetJobStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) : base(r => r.Optional("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetJobStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_job_stats"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If true, the API returns an empty jobs array when - /// there are no matches and the subset of results when there are partial - /// matches. If false, the API returns a 404 status - /// code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } -} - -/// -/// -/// Get anomaly detection jobs usage info. -/// -/// -public sealed partial class GetJobStatsRequestDescriptor : RequestDescriptor -{ - internal GetJobStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetJobStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) : base(r => r.Optional("job_id", jobId)) - { - } - - public GetJobStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetJobStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_job_stats"; - - public GetJobStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - - public GetJobStatsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - RouteValues.Optional("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs deleted file mode 100644 index 52145377e72..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobStatsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetJobStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("jobs")] - public IReadOnlyCollection Jobs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs deleted file mode 100644 index 57b18c0b024..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsRequest.g.cs +++ /dev/null @@ -1,185 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetJobsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty jobs array when - /// there are no matches and the subset of results when there are partial - /// matches. If this parameter is false, the request returns a 404 status - /// code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } -} - -/// -/// -/// Get anomaly detection jobs configuration info. -/// You can get information for multiple anomaly detection jobs in a single API -/// request by using a group name, a comma-separated list of jobs, or a wildcard -/// expression. You can get information for all anomaly detection jobs by using -/// _all, by specifying * as the <job_id>, or by omitting the <job_id>. -/// -/// -public sealed partial class GetJobsRequest : PlainRequest -{ - public GetJobsRequest() - { - } - - public GetJobsRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? jobId) : base(r => r.Optional("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetJobs; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_jobs"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty jobs array when - /// there are no matches and the subset of results when there are partial - /// matches. If this parameter is false, the request returns a 404 status - /// code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } -} - -/// -/// -/// Get anomaly detection jobs configuration info. -/// You can get information for multiple anomaly detection jobs in a single API -/// request by using a group name, a comma-separated list of jobs, or a wildcard -/// expression. You can get information for all anomaly detection jobs by using -/// _all, by specifying * as the <job_id>, or by omitting the <job_id>. -/// -/// -public sealed partial class GetJobsRequestDescriptor : RequestDescriptor -{ - internal GetJobsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetJobsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? jobId) : base(r => r.Optional("job_id", jobId)) - { - } - - public GetJobsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetJobs; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_jobs"; - - public GetJobsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetJobsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - - public GetJobsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Ids? jobId) - { - RouteValues.Optional("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsResponse.g.cs deleted file mode 100644 index c49c0f0fc55..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetJobsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetJobsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("jobs")] - public IReadOnlyCollection Jobs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs deleted file mode 100644 index 566744ca06f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsRequest.g.cs +++ /dev/null @@ -1,135 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetMemoryStatsRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout - /// expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request - /// fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get machine learning memory usage info. -/// Get information about how machine learning jobs and trained models are using memory, -/// on each node, both within the JVM heap, and natively, outside of the JVM. -/// -/// -public sealed partial class GetMemoryStatsRequest : PlainRequest -{ - public GetMemoryStatsRequest() - { - } - - public GetMemoryStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetMemoryStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_memory_stats"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout - /// expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request - /// fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get machine learning memory usage info. -/// Get information about how machine learning jobs and trained models are using memory, -/// on each node, both within the JVM heap, and natively, outside of the JVM. -/// -/// -public sealed partial class GetMemoryStatsRequestDescriptor : RequestDescriptor -{ - internal GetMemoryStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetMemoryStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - public GetMemoryStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetMemoryStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_memory_stats"; - - public GetMemoryStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetMemoryStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public GetMemoryStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.Id? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs deleted file mode 100644 index 5160f398936..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetMemoryStatsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetMemoryStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics NodeStatistics { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs deleted file mode 100644 index 794d29a8ffa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsRequest.g.cs +++ /dev/null @@ -1,153 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetModelSnapshotUpgradeStatsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty jobs array when there are no matches and the subset of results - /// when there are partial matches. If this parameter is false, the request returns a 404 status code when there are - /// no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } -} - -/// -/// -/// Get anomaly detection job model snapshot upgrade usage info. -/// -/// -public sealed partial class GetModelSnapshotUpgradeStatsRequest : PlainRequest -{ - public GetModelSnapshotUpgradeStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetModelSnapshotUpgradeStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_model_snapshot_upgrade_stats"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty jobs array when there are no matches and the subset of results - /// when there are partial matches. If this parameter is false, the request returns a 404 status code when there are - /// no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } -} - -/// -/// -/// Get anomaly detection job model snapshot upgrade usage info. -/// -/// -public sealed partial class GetModelSnapshotUpgradeStatsRequestDescriptor : RequestDescriptor -{ - internal GetModelSnapshotUpgradeStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetModelSnapshotUpgradeStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetModelSnapshotUpgradeStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_model_snapshot_upgrade_stats"; - - public GetModelSnapshotUpgradeStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - - public GetModelSnapshotUpgradeStatsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public GetModelSnapshotUpgradeStatsRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) - { - RouteValues.Required("snapshot_id", snapshotId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs deleted file mode 100644 index da5c014af7e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotUpgradeStatsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetModelSnapshotUpgradeStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_upgrades")] - public IReadOnlyCollection ModelSnapshotUpgrades { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs deleted file mode 100644 index c222148d131..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsRequest.g.cs +++ /dev/null @@ -1,492 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetModelSnapshotsRequestParameters : RequestParameters -{ - /// - /// - /// Skips the specified number of snapshots. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of snapshots to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get model snapshots info. -/// -/// -public sealed partial class GetModelSnapshotsRequest : PlainRequest -{ - public GetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId) : base(r => r.Required("job_id", jobId).Optional("snapshot_id", snapshotId)) - { - } - - public GetModelSnapshotsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetModelSnapshots; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_model_snapshots"; - - /// - /// - /// Skips the specified number of snapshots. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of snapshots to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - [JsonInclude, JsonPropertyName("desc")] - public bool? Desc { get; set; } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - [JsonInclude, JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? Page { get; set; } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Sort { get; set; } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } -} - -/// -/// -/// Get model snapshots info. -/// -/// -public sealed partial class GetModelSnapshotsRequestDescriptor : RequestDescriptor, GetModelSnapshotsRequestParameters> -{ - internal GetModelSnapshotsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId) : base(r => r.Required("job_id", jobId).Optional("snapshot_id", snapshotId)) - { - } - - public GetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetModelSnapshots; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_model_snapshots"; - - public GetModelSnapshotsRequestDescriptor From(int? from) => Qs("from", from); - public GetModelSnapshotsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetModelSnapshotsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public GetModelSnapshotsRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId) - { - RouteValues.Optional("snapshot_id", snapshotId); - return Self; - } - - private bool? DescValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SortValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public GetModelSnapshotsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetModelSnapshotsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetModelSnapshotsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get model snapshots info. -/// -/// -public sealed partial class GetModelSnapshotsRequestDescriptor : RequestDescriptor -{ - internal GetModelSnapshotsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId) : base(r => r.Required("job_id", jobId).Optional("snapshot_id", snapshotId)) - { - } - - public GetModelSnapshotsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetModelSnapshots; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_model_snapshots"; - - public GetModelSnapshotsRequestDescriptor From(int? from) => Qs("from", from); - public GetModelSnapshotsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetModelSnapshotsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public GetModelSnapshotsRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId) - { - RouteValues.Optional("snapshot_id", snapshotId); - return Self; - } - - private bool? DescValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SortValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - public GetModelSnapshotsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetModelSnapshotsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetModelSnapshotsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetModelSnapshotsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs deleted file mode 100644 index 080fdc6766e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetModelSnapshotsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetModelSnapshotsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("model_snapshots")] - public IReadOnlyCollection ModelSnapshots { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs deleted file mode 100644 index 1e2877a88e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsRequest.g.cs +++ /dev/null @@ -1,312 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetOverallBucketsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get overall bucket results. -/// -/// -/// Retrievs overall bucket results that summarize the bucket results of -/// multiple anomaly detection jobs. -/// -/// -/// The overall_score is calculated by combining the scores of all the -/// buckets within the overall bucket span. First, the maximum -/// anomaly_score per anomaly detection job in the overall bucket is -/// calculated. Then the top_n of those scores are averaged to result in -/// the overall_score. This means that you can fine-tune the -/// overall_score so that it is more or less sensitive to the number of -/// jobs that detect an anomaly at the same time. For example, if you set -/// top_n to 1, the overall_score is the maximum bucket score in the -/// overall bucket. Alternatively, if you set top_n to the number of jobs, -/// the overall_score is high only when all jobs detect anomalies in that -/// overall bucket. If you set the bucket_span parameter (to a value -/// greater than its default), the overall_score is the maximum -/// overall_score of the overall buckets that have a span equal to the -/// jobs' largest bucket span. -/// -/// -public sealed partial class GetOverallBucketsRequest : PlainRequest -{ - public GetOverallBucketsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetOverallBuckets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_overall_buckets"; - - /// - /// - /// Refer to the description for the allow_no_match query parameter. - /// - /// - [JsonInclude, JsonPropertyName("allow_no_match")] - public bool? AllowNoMatch { get; set; } - - /// - /// - /// Refer to the description for the bucket_span query parameter. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BucketSpan { get; set; } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - [JsonInclude, JsonPropertyName("exclude_interim")] - public bool? ExcludeInterim { get; set; } - - /// - /// - /// Refer to the description for the overall_score query parameter. - /// - /// - [JsonInclude, JsonPropertyName("overall_score")] - public object? OverallScore { get; set; } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - - /// - /// - /// Refer to the description for the top_n query parameter. - /// - /// - [JsonInclude, JsonPropertyName("top_n")] - public int? TopN { get; set; } -} - -/// -/// -/// Get overall bucket results. -/// -/// -/// Retrievs overall bucket results that summarize the bucket results of -/// multiple anomaly detection jobs. -/// -/// -/// The overall_score is calculated by combining the scores of all the -/// buckets within the overall bucket span. First, the maximum -/// anomaly_score per anomaly detection job in the overall bucket is -/// calculated. Then the top_n of those scores are averaged to result in -/// the overall_score. This means that you can fine-tune the -/// overall_score so that it is more or less sensitive to the number of -/// jobs that detect an anomaly at the same time. For example, if you set -/// top_n to 1, the overall_score is the maximum bucket score in the -/// overall bucket. Alternatively, if you set top_n to the number of jobs, -/// the overall_score is high only when all jobs detect anomalies in that -/// overall bucket. If you set the bucket_span parameter (to a value -/// greater than its default), the overall_score is the maximum -/// overall_score of the overall buckets that have a span equal to the -/// jobs' largest bucket span. -/// -/// -public sealed partial class GetOverallBucketsRequestDescriptor : RequestDescriptor -{ - internal GetOverallBucketsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetOverallBucketsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetOverallBuckets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_overall_buckets"; - - public GetOverallBucketsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private bool? AllowNoMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? BucketSpanValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private bool? ExcludeInterimValue { get; set; } - private object? OverallScoreValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - private int? TopNValue { get; set; } - - /// - /// - /// Refer to the description for the allow_no_match query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) - { - AllowNoMatchValue = allowNoMatch; - return Self; - } - - /// - /// - /// Refer to the description for the bucket_span query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor BucketSpan(Elastic.Clients.Elasticsearch.Serverless.Duration? bucketSpan) - { - BucketSpanValue = bucketSpan; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - /// - /// - /// Refer to the description for the overall_score query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor OverallScore(object? overallScore) - { - OverallScoreValue = overallScore; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - /// - /// - /// Refer to the description for the top_n query parameter. - /// - /// - public GetOverallBucketsRequestDescriptor TopN(int? topN) - { - TopNValue = topN; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoMatchValue.HasValue) - { - writer.WritePropertyName("allow_no_match"); - writer.WriteBooleanValue(AllowNoMatchValue.Value); - } - - if (BucketSpanValue is not null) - { - writer.WritePropertyName("bucket_span"); - JsonSerializer.Serialize(writer, BucketSpanValue, options); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (OverallScoreValue is not null) - { - writer.WritePropertyName("overall_score"); - JsonSerializer.Serialize(writer, OverallScoreValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - if (TopNValue.HasValue) - { - writer.WritePropertyName("top_n"); - writer.WriteNumberValue(TopNValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs deleted file mode 100644 index f5d132ee50e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetOverallBucketsResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetOverallBucketsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// Array of overall bucket objects - /// - /// - [JsonInclude, JsonPropertyName("overall_buckets")] - public IReadOnlyCollection OverallBuckets { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs deleted file mode 100644 index 5c1469f0ce4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsRequest.g.cs +++ /dev/null @@ -1,586 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetRecordsRequestParameters : RequestParameters -{ - /// - /// - /// Skips the specified number of records. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of records to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get anomaly records for an anomaly detection job. -/// Records contain the detailed analytical results. They describe the anomalous -/// activity that has been identified in the input data based on the detector -/// configuration. -/// There can be many anomaly records depending on the characteristics and size -/// of the input data. In practice, there are often too many to be able to -/// manually process them. The machine learning features therefore perform a -/// sophisticated aggregation of the anomaly records into buckets. -/// The number of record results depends on the number of anomalies found in each -/// bucket, which relates to the number of time series being modeled and the -/// number of detectors. -/// -/// -public sealed partial class GetRecordsRequest : PlainRequest -{ - public GetRecordsRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetRecords; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_records"; - - /// - /// - /// Skips the specified number of records. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of records to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - [JsonInclude, JsonPropertyName("desc")] - public bool? Desc { get; set; } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - [JsonInclude, JsonPropertyName("exclude_interim")] - public bool? ExcludeInterim { get; set; } - [JsonInclude, JsonPropertyName("page")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? Page { get; set; } - - /// - /// - /// Refer to the description for the record_score query parameter. - /// - /// - [JsonInclude, JsonPropertyName("record_score")] - public double? RecordScore { get; set; } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Sort { get; set; } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } -} - -/// -/// -/// Get anomaly records for an anomaly detection job. -/// Records contain the detailed analytical results. They describe the anomalous -/// activity that has been identified in the input data based on the detector -/// configuration. -/// There can be many anomaly records depending on the characteristics and size -/// of the input data. In practice, there are often too many to be able to -/// manually process them. The machine learning features therefore perform a -/// sophisticated aggregation of the anomaly records into buckets. -/// The number of record results depends on the number of anomalies found in each -/// bucket, which relates to the number of time series being modeled and the -/// number of detectors. -/// -/// -public sealed partial class GetRecordsRequestDescriptor : RequestDescriptor, GetRecordsRequestParameters> -{ - internal GetRecordsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetRecordsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetRecords; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_records"; - - public GetRecordsRequestDescriptor From(int? from) => Qs("from", from); - public GetRecordsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetRecordsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private bool? DescValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private bool? ExcludeInterimValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - private double? RecordScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SortValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - public GetRecordsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetRecordsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - public GetRecordsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - public GetRecordsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetRecordsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetRecordsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Refer to the description for the record_score query parameter. - /// - /// - public GetRecordsRequestDescriptor RecordScore(double? recordScore) - { - RecordScoreValue = recordScore; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetRecordsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetRecordsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (RecordScoreValue.HasValue) - { - writer.WritePropertyName("record_score"); - writer.WriteNumberValue(RecordScoreValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get anomaly records for an anomaly detection job. -/// Records contain the detailed analytical results. They describe the anomalous -/// activity that has been identified in the input data based on the detector -/// configuration. -/// There can be many anomaly records depending on the characteristics and size -/// of the input data. In practice, there are often too many to be able to -/// manually process them. The machine learning features therefore perform a -/// sophisticated aggregation of the anomaly records into buckets. -/// The number of record results depends on the number of anomalies found in each -/// bucket, which relates to the number of time series being modeled and the -/// number of detectors. -/// -/// -public sealed partial class GetRecordsRequestDescriptor : RequestDescriptor -{ - internal GetRecordsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRecordsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetRecords; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.get_records"; - - public GetRecordsRequestDescriptor From(int? from) => Qs("from", from); - public GetRecordsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetRecordsRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private bool? DescValue { get; set; } - private DateTimeOffset? EndValue { get; set; } - private bool? ExcludeInterimValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? PageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor PageDescriptor { get; set; } - private Action PageDescriptorAction { get; set; } - private double? RecordScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SortValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - - /// - /// - /// Refer to the description for the desc query parameter. - /// - /// - public GetRecordsRequestDescriptor Desc(bool? desc = true) - { - DescValue = desc; - return Self; - } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public GetRecordsRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the exclude_interim query parameter. - /// - /// - public GetRecordsRequestDescriptor ExcludeInterim(bool? excludeInterim = true) - { - ExcludeInterimValue = excludeInterim; - return Self; - } - - public GetRecordsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Page? page) - { - PageDescriptor = null; - PageDescriptorAction = null; - PageValue = page; - return Self; - } - - public GetRecordsRequestDescriptor Page(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor descriptor) - { - PageValue = null; - PageDescriptorAction = null; - PageDescriptor = descriptor; - return Self; - } - - public GetRecordsRequestDescriptor Page(Action configure) - { - PageValue = null; - PageDescriptor = null; - PageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Refer to the description for the record_score query parameter. - /// - /// - public GetRecordsRequestDescriptor RecordScore(double? recordScore) - { - RecordScoreValue = recordScore; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetRecordsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the sort query parameter. - /// - /// - public GetRecordsRequestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public GetRecordsRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DescValue.HasValue) - { - writer.WritePropertyName("desc"); - writer.WriteBooleanValue(DescValue.Value); - } - - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (ExcludeInterimValue.HasValue) - { - writer.WritePropertyName("exclude_interim"); - writer.WriteBooleanValue(ExcludeInterimValue.Value); - } - - if (PageDescriptor is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageDescriptor, options); - } - else if (PageDescriptorAction is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PageDescriptor(PageDescriptorAction), options); - } - else if (PageValue is not null) - { - writer.WritePropertyName("page"); - JsonSerializer.Serialize(writer, PageValue, options); - } - - if (RecordScoreValue.HasValue) - { - writer.WritePropertyName("record_score"); - writer.WriteNumberValue(RecordScoreValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs deleted file mode 100644 index a7e647c1031..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetRecordsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetRecordsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("records")] - public IReadOnlyCollection Records { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs deleted file mode 100644 index 309d344b1ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsRequest.g.cs +++ /dev/null @@ -1,261 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetTrainedModelsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no models that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If true, it returns an empty array when there are no matches and the - /// subset of results when there are partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Specifies whether the included model definition should be returned as a - /// JSON map (true) or in a custom compressed format (false). - /// - /// - public bool? DecompressDefinition { get => Q("decompress_definition"); set => Q("decompress_definition", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - - /// - /// - /// Skips the specified number of models. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// A comma delimited string of optional fields to include in the response - /// body. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Include? Include { get => Q("include"); set => Q("include", value); } - - /// - /// - /// Specifies the maximum number of models to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// A comma delimited string of tags. A trained model can have many tags, or - /// none. When supplied, only trained models that contain all the supplied - /// tags are returned. - /// - /// - public ICollection? Tags { get => Q?>("tags"); set => Q("tags", value); } -} - -/// -/// -/// Get trained model configuration info. -/// -/// -public sealed partial class GetTrainedModelsRequest : PlainRequest -{ - public GetTrainedModelsRequest() - { - } - - public GetTrainedModelsRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId) : base(r => r.Optional("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetTrainedModels; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_trained_models"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no models that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If true, it returns an empty array when there are no matches and the - /// subset of results when there are partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Specifies whether the included model definition should be returned as a - /// JSON map (true) or in a custom compressed format (false). - /// - /// - [JsonIgnore] - public bool? DecompressDefinition { get => Q("decompress_definition"); set => Q("decompress_definition", value); } - - /// - /// - /// Indicates if certain fields should be removed from the configuration on - /// retrieval. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - - /// - /// - /// Skips the specified number of models. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// A comma delimited string of optional fields to include in the response - /// body. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Include? Include { get => Q("include"); set => Q("include", value); } - - /// - /// - /// Specifies the maximum number of models to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// A comma delimited string of tags. A trained model can have many tags, or - /// none. When supplied, only trained models that contain all the supplied - /// tags are returned. - /// - /// - [JsonIgnore] - public ICollection? Tags { get => Q?>("tags"); set => Q("tags", value); } -} - -/// -/// -/// Get trained model configuration info. -/// -/// -public sealed partial class GetTrainedModelsRequestDescriptor : RequestDescriptor -{ - internal GetTrainedModelsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetTrainedModelsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId) : base(r => r.Optional("model_id", modelId)) - { - } - - public GetTrainedModelsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetTrainedModels; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_trained_models"; - - public GetTrainedModelsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetTrainedModelsRequestDescriptor DecompressDefinition(bool? decompressDefinition = true) => Qs("decompress_definition", decompressDefinition); - public GetTrainedModelsRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public GetTrainedModelsRequestDescriptor From(int? from) => Qs("from", from); - public GetTrainedModelsRequestDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Include? include) => Qs("include", include); - public GetTrainedModelsRequestDescriptor Size(int? size) => Qs("size", size); - public GetTrainedModelsRequestDescriptor Tags(ICollection? tags) => Qs("tags", tags); - - public GetTrainedModelsRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId) - { - RouteValues.Optional("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs deleted file mode 100644 index cd391598dfc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetTrainedModelsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// An array of trained model resources, which are sorted by the model_id value in ascending order. - /// - /// - [JsonInclude, JsonPropertyName("trained_model_configs")] - public IReadOnlyCollection TrainedModelConfigs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs deleted file mode 100644 index 8bdac0c39d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsRequest.g.cs +++ /dev/null @@ -1,189 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetTrainedModelsStatsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no models that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If true, it returns an empty array when there are no matches and the - /// subset of results when there are partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Skips the specified number of models. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of models to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get trained models usage info. -/// You can get usage information for multiple trained -/// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. -/// -/// -public sealed partial class GetTrainedModelsStatsRequest : PlainRequest -{ - public GetTrainedModelsStatsRequest() - { - } - - public GetTrainedModelsStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId) : base(r => r.Optional("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetTrainedModelsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_trained_models_stats"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no models that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If true, it returns an empty array when there are no matches and the - /// subset of results when there are partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Skips the specified number of models. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of models to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get trained models usage info. -/// You can get usage information for multiple trained -/// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. -/// -/// -public sealed partial class GetTrainedModelsStatsRequestDescriptor : RequestDescriptor -{ - internal GetTrainedModelsStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetTrainedModelsStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId) : base(r => r.Optional("model_id", modelId)) - { - } - - public GetTrainedModelsStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningGetTrainedModelsStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.get_trained_models_stats"; - - public GetTrainedModelsStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetTrainedModelsStatsRequestDescriptor From(int? from) => Qs("from", from); - public GetTrainedModelsStatsRequestDescriptor Size(int? size) => Qs("size", size); - - public GetTrainedModelsStatsRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId) - { - RouteValues.Optional("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs deleted file mode 100644 index ae4dc05f018..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/GetTrainedModelsStatsResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class GetTrainedModelsStatsResponse : ElasticsearchResponse -{ - /// - /// - /// The total number of trained model statistics that matched the requested ID patterns. Could be higher than the number of items in the trained_model_stats array as the size of the array is restricted by the supplied size parameter. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// An array of trained model statistics, which are sorted by the model_id value in ascending order. - /// - /// - [JsonInclude, JsonPropertyName("trained_model_stats")] - public IReadOnlyCollection TrainedModelStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs deleted file mode 100644 index 93354770d71..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelRequest.g.cs +++ /dev/null @@ -1,289 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class InferTrainedModelRequestParameters : RequestParameters -{ - /// - /// - /// Controls the amount of time to wait for inference results. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Evaluate a trained model. -/// -/// -public sealed partial class InferTrainedModelRequest : PlainRequest -{ - public InferTrainedModelRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningInferTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.infer_trained_model"; - - /// - /// - /// Controls the amount of time to wait for inference results. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// An array of objects to pass to the model for inference. The objects should contain a fields matching your - /// configured trained model input. Typically, for NLP models, the field name is text_field. - /// Currently, for NLP models, only a single value is allowed. - /// - /// - [JsonInclude, JsonPropertyName("docs")] - public ICollection> Docs { get; set; } - - /// - /// - /// The inference configuration updates to apply on the API call - /// - /// - [JsonInclude, JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate? InferenceConfig { get; set; } -} - -/// -/// -/// Evaluate a trained model. -/// -/// -public sealed partial class InferTrainedModelRequestDescriptor : RequestDescriptor, InferTrainedModelRequestParameters> -{ - internal InferTrainedModelRequestDescriptor(Action> configure) => configure.Invoke(this); - - public InferTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningInferTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.infer_trained_model"; - - public InferTrainedModelRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public InferTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - private ICollection> DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdateDescriptor InferenceConfigDescriptor { get; set; } - private Action> InferenceConfigDescriptorAction { get; set; } - - /// - /// - /// An array of objects to pass to the model for inference. The objects should contain a fields matching your - /// configured trained model input. Typically, for NLP models, the field name is text_field. - /// Currently, for NLP models, only a single value is allowed. - /// - /// - public InferTrainedModelRequestDescriptor Docs(ICollection> docs) - { - DocsValue = docs; - return Self; - } - - /// - /// - /// The inference configuration updates to apply on the API call - /// - /// - public InferTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdateDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferTrainedModelRequestDescriptor InferenceConfig(Action> configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdateDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Evaluate a trained model. -/// -/// -public sealed partial class InferTrainedModelRequestDescriptor : RequestDescriptor -{ - internal InferTrainedModelRequestDescriptor(Action configure) => configure.Invoke(this); - - public InferTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningInferTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.infer_trained_model"; - - public InferTrainedModelRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public InferTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - private ICollection> DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdateDescriptor InferenceConfigDescriptor { get; set; } - private Action InferenceConfigDescriptorAction { get; set; } - - /// - /// - /// An array of objects to pass to the model for inference. The objects should contain a fields matching your - /// configured trained model input. Typically, for NLP models, the field name is text_field. - /// Currently, for NLP models, only a single value is allowed. - /// - /// - public InferTrainedModelRequestDescriptor Docs(ICollection> docs) - { - DocsValue = docs; - return Self; - } - - /// - /// - /// The inference configuration updates to apply on the API call - /// - /// - public InferTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdateDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferTrainedModelRequestDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdateDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs deleted file mode 100644 index 098482e4cab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/InferTrainedModelResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class InferTrainedModelResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("inference_results")] - public IReadOnlyCollection InferenceResults { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs deleted file mode 100644 index 7d93065f664..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoRequest.g.cs +++ /dev/null @@ -1,91 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class MlInfoRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get machine learning information. -/// Get defaults and limits used by machine learning. -/// This endpoint is designed to be used by a user interface that needs to fully -/// understand machine learning configurations where some options are not -/// specified, meaning that the defaults should be used. This endpoint may be -/// used to find out what those defaults are. It also provides information about -/// the maximum size of machine learning jobs that could run in the current -/// cluster configuration. -/// -/// -public sealed partial class MlInfoRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.info"; -} - -/// -/// -/// Get machine learning information. -/// Get defaults and limits used by machine learning. -/// This endpoint is designed to be used by a user interface that needs to fully -/// understand machine learning configurations where some options are not -/// specified, meaning that the defaults should be used. This endpoint may be -/// used to find out what those defaults are. It also provides information about -/// the maximum size of machine learning jobs that could run in the current -/// cluster configuration. -/// -/// -public sealed partial class MlInfoRequestDescriptor : RequestDescriptor -{ - internal MlInfoRequestDescriptor(Action configure) => configure.Invoke(this); - - public MlInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.info"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoResponse.g.cs deleted file mode 100644 index 259dbfea229..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/MlInfoResponse.g.cs +++ /dev/null @@ -1,39 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class MlInfoResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("defaults")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Defaults Defaults { get; init; } - [JsonInclude, JsonPropertyName("limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Limits Limits { get; init; } - [JsonInclude, JsonPropertyName("native_code")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NativeCode NativeCode { get; init; } - [JsonInclude, JsonPropertyName("upgrade_mode")] - public bool UpgradeMode { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 079c74ffe3e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobRequest.g.cs +++ /dev/null @@ -1,128 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class OpenJobRequestParameters : RequestParameters -{ -} - -/// -/// -/// Open anomaly detection jobs. -/// An anomaly detection job must be opened 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 -{ - public OpenJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningOpenJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.open_job"; - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } -} - -/// -/// -/// Open anomaly detection jobs. -/// An anomaly detection job must be opened 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 -{ - internal OpenJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public OpenJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningOpenJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.open_job"; - - public OpenJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - public OpenJobRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobResponse.g.cs deleted file mode 100644 index cd43a5e3eda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/OpenJobResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class OpenJobResponse : ElasticsearchResponse -{ - /// - /// - /// The ID of the node that the job was started on. In serverless this will be the "serverless". - /// If the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string. - /// - /// - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } - [JsonInclude, JsonPropertyName("opened")] - public bool Opened { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs deleted file mode 100644 index a4fe8a7aa03..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsRequest.g.cs +++ /dev/null @@ -1,174 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PostCalendarEventsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Add scheduled events to the calendar. -/// -/// -public sealed partial class PostCalendarEventsRequest : PlainRequest -{ - public PostCalendarEventsRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPostCalendarEvents; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.post_calendar_events"; - - /// - /// - /// A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format. - /// - /// - [JsonInclude, JsonPropertyName("events")] - public ICollection Events { get; set; } -} - -/// -/// -/// Add scheduled events to the calendar. -/// -/// -public sealed partial class PostCalendarEventsRequestDescriptor : RequestDescriptor -{ - internal PostCalendarEventsRequestDescriptor(Action configure) => configure.Invoke(this); - - public PostCalendarEventsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPostCalendarEvents; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.post_calendar_events"; - - public PostCalendarEventsRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - private ICollection EventsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CalendarEventDescriptor EventsDescriptor { get; set; } - private Action EventsDescriptorAction { get; set; } - private Action[] EventsDescriptorActions { get; set; } - - /// - /// - /// A list of one of more scheduled events. The event’s start and end times can be specified as integer milliseconds since the epoch or as a string in ISO 8601 format. - /// - /// - public PostCalendarEventsRequestDescriptor Events(ICollection events) - { - EventsDescriptor = null; - EventsDescriptorAction = null; - EventsDescriptorActions = null; - EventsValue = events; - return Self; - } - - public PostCalendarEventsRequestDescriptor Events(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CalendarEventDescriptor descriptor) - { - EventsValue = null; - EventsDescriptorAction = null; - EventsDescriptorActions = null; - EventsDescriptor = descriptor; - return Self; - } - - public PostCalendarEventsRequestDescriptor Events(Action configure) - { - EventsValue = null; - EventsDescriptor = null; - EventsDescriptorActions = null; - EventsDescriptorAction = configure; - return Self; - } - - public PostCalendarEventsRequestDescriptor Events(params Action[] configure) - { - EventsValue = null; - EventsDescriptor = null; - EventsDescriptorAction = null; - EventsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EventsDescriptor is not null) - { - writer.WritePropertyName("events"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, EventsDescriptor, options); - writer.WriteEndArray(); - } - else if (EventsDescriptorAction is not null) - { - writer.WritePropertyName("events"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CalendarEventDescriptor(EventsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (EventsDescriptorActions is not null) - { - writer.WritePropertyName("events"); - writer.WriteStartArray(); - foreach (var action in EventsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CalendarEventDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("events"); - JsonSerializer.Serialize(writer, EventsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs deleted file mode 100644 index f667f11c4bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PostCalendarEventsResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PostCalendarEventsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("events")] - public IReadOnlyCollection Events { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 18255393669..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,250 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PreviewDataFrameAnalyticsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Preview features used by data frame analytics. -/// Previews the extracted features used by a data frame analytics config. -/// -/// -public sealed partial class PreviewDataFrameAnalyticsRequest : PlainRequest -{ - public PreviewDataFrameAnalyticsRequest() - { - } - - public PreviewDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPreviewDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.preview_data_frame_analytics"; - - /// - /// - /// A data frame analytics config as described in create data frame analytics - /// jobs. Note that id and dest don’t need to be provided in the context of - /// this API. - /// - /// - [JsonInclude, JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfig? Config { get; set; } -} - -/// -/// -/// Preview features used by data frame analytics. -/// Previews the extracted features used by a data frame analytics config. -/// -/// -public sealed partial class PreviewDataFrameAnalyticsRequestDescriptor : RequestDescriptor, PreviewDataFrameAnalyticsRequestParameters> -{ - internal PreviewDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PreviewDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public PreviewDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPreviewDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.preview_data_frame_analytics"; - - public PreviewDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfig? ConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfigDescriptor ConfigDescriptor { get; set; } - private Action> ConfigDescriptorAction { get; set; } - - /// - /// - /// A data frame analytics config as described in create data frame analytics - /// jobs. Note that id and dest don’t need to be provided in the context of - /// this API. - /// - /// - public PreviewDataFrameAnalyticsRequestDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfig? config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public PreviewDataFrameAnalyticsRequestDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfigDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public PreviewDataFrameAnalyticsRequestDescriptor Config(Action> configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfigDescriptor(ConfigDescriptorAction), options); - } - else if (ConfigValue is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Preview features used by data frame analytics. -/// Previews the extracted features used by a data frame analytics config. -/// -/// -public sealed partial class PreviewDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal PreviewDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public PreviewDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public PreviewDataFrameAnalyticsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPreviewDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.preview_data_frame_analytics"; - - public PreviewDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfig? ConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfigDescriptor ConfigDescriptor { get; set; } - private Action ConfigDescriptorAction { get; set; } - - /// - /// - /// A data frame analytics config as described in create data frame analytics - /// jobs. Note that id and dest don’t need to be provided in the context of - /// this API. - /// - /// - public PreviewDataFrameAnalyticsRequestDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfig? config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public PreviewDataFrameAnalyticsRequestDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfigDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public PreviewDataFrameAnalyticsRequestDescriptor Config(Action configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframePreviewConfigDescriptor(ConfigDescriptorAction), options); - } - else if (ConfigValue is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index aaa361ed3cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PreviewDataFrameAnalyticsResponse : ElasticsearchResponse -{ - /// - /// - /// An array of objects that contain feature name and value pairs. The features have been processed and indicate what will be sent to the model for training. - /// - /// - [JsonInclude, JsonPropertyName("feature_values")] - public IReadOnlyCollection> FeatureValues { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs deleted file mode 100644 index f14d06fa9be..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutCalendarJobRequestParameters : RequestParameters -{ -} - -/// -/// -/// Add anomaly detection job to calendar. -/// -/// -public sealed partial class PutCalendarJobRequest : PlainRequest -{ - public PutCalendarJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId) : base(r => r.Required("calendar_id", calendarId).Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutCalendarJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.put_calendar_job"; -} - -/// -/// -/// Add anomaly detection job to calendar. -/// -/// -public sealed partial class PutCalendarJobRequestDescriptor : RequestDescriptor -{ - internal PutCalendarJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutCalendarJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId) : base(r => r.Required("calendar_id", calendarId).Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutCalendarJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.put_calendar_job"; - - public PutCalendarJobRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - public PutCalendarJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Ids jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs deleted file mode 100644 index b1d318b6602..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarJobResponse.g.cs +++ /dev/null @@ -1,55 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutCalendarJobResponse : ElasticsearchResponse -{ - /// - /// - /// A string that uniquely identifies a calendar. - /// - /// - [JsonInclude, JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - /// - /// - /// A description of the calendar. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// A list of anomaly detection job identifiers or group names. - /// - /// - [JsonInclude, JsonPropertyName("job_ids")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection JobIds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs deleted file mode 100644 index 30744c748b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarRequest.g.cs +++ /dev/null @@ -1,142 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutCalendarRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create a calendar. -/// -/// -public sealed partial class PutCalendarRequest : PlainRequest -{ - public PutCalendarRequest(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutCalendar; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_calendar"; - - /// - /// - /// A description of the calendar. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// An array of anomaly detection job identifiers. - /// - /// - [JsonInclude, JsonPropertyName("job_ids")] - public ICollection? JobIds { get; set; } -} - -/// -/// -/// Create a calendar. -/// -/// -public sealed partial class PutCalendarRequestDescriptor : RequestDescriptor -{ - internal PutCalendarRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutCalendarRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) : base(r => r.Required("calendar_id", calendarId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutCalendar; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_calendar"; - - public PutCalendarRequestDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id calendarId) - { - RouteValues.Required("calendar_id", calendarId); - return Self; - } - - private string? DescriptionValue { get; set; } - private ICollection? JobIdsValue { get; set; } - - /// - /// - /// A description of the calendar. - /// - /// - public PutCalendarRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// An array of anomaly detection job identifiers. - /// - /// - public PutCalendarRequestDescriptor JobIds(ICollection? jobIds) - { - JobIdsValue = jobIds; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (JobIdsValue is not null) - { - writer.WritePropertyName("job_ids"); - JsonSerializer.Serialize(writer, JobIdsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs deleted file mode 100644 index 6196799ffd7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutCalendarResponse.g.cs +++ /dev/null @@ -1,55 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutCalendarResponse : ElasticsearchResponse -{ - /// - /// - /// A string that uniquely identifies a calendar. - /// - /// - [JsonInclude, JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - /// - /// - /// A description of the calendar. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// A list of anomaly detection job identifiers or group names. - /// - /// - [JsonInclude, JsonPropertyName("job_ids")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection JobIds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 24199785d0d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,936 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutDataFrameAnalyticsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create a data frame analytics job. -/// This API creates a data frame analytics job that performs an analysis on the -/// source indices and stores the outcome in a destination index. -/// -/// -public sealed partial class PutDataFrameAnalyticsRequest : PlainRequest -{ - public PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_data_frame_analytics"; - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. If - /// set to false and a machine learning node with capacity to run the job - /// cannot be immediately found, the API returns an error. If set to true, - /// the API does not return an error; the job waits in the starting state - /// until sufficient machine learning node capacity is available. This - /// behavior is also affected by the cluster-wide - /// xpack.ml.max_lazy_ml_nodes setting. - /// - /// - [JsonInclude, JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; set; } - - /// - /// - /// The analysis configuration, which contains the information necessary to - /// perform one of the following types of analysis: classification, outlier - /// detection, or regression. - /// - /// - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis Analysis { get; set; } - - /// - /// - /// Specifies includes and/or excludes patterns to select which fields - /// will be included in the analysis. The patterns specified in excludes - /// are applied last, therefore excludes takes precedence. In other words, - /// if the same field is specified in both includes and excludes, then - /// the field will not be included in the analysis. If analyzed_fields is - /// not set, only the relevant fields will be included. For example, all the - /// numeric fields for outlier detection. - /// The supported fields vary for each type of analysis. Outlier detection - /// requires numeric or boolean data to analyze. The algorithms don’t - /// support missing values therefore fields that have data types other than - /// numeric or boolean are ignored. Documents where included fields contain - /// missing values, null values, or an array are also ignored. Therefore the - /// dest index may contain documents that don’t have an outlier score. - /// Regression supports fields that are numeric, boolean, text, - /// keyword, and ip data types. It is also tolerant of missing values. - /// Fields that are supported are included in the analysis, other fields are - /// ignored. Documents where included fields contain an array with two or - /// more values are also ignored. Documents in the dest index that don’t - /// contain a results field are not included in the regression analysis. - /// Classification supports fields that are numeric, boolean, text, - /// keyword, and ip data types. It is also tolerant of missing values. - /// Fields that are supported are included in the analysis, other fields are - /// ignored. Documents where included fields contain an array with two or - /// more values are also ignored. Documents in the dest index that don’t - /// contain a results field are not included in the classification analysis. - /// Classification analysis can be improved by mapping ordinal variable - /// values to a single number. For example, in case of age ranges, you can - /// model the values as 0-14 = 0, 15-24 = 1, 25-34 = 2, and so on. - /// - /// - [JsonInclude, JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } - - /// - /// - /// A description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The destination configuration. - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination Dest { get; set; } - [JsonInclude, JsonPropertyName("headers")] - public IDictionary>>? Headers { get; set; } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - [JsonInclude, JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try - /// to create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - - /// - /// - /// The configuration of how to source the analysis data. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource Source { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -/// -/// -/// Create a data frame analytics job. -/// This API creates a data frame analytics job that performs an analysis on the -/// source indices and stores the outcome in a destination index. -/// -/// -public sealed partial class PutDataFrameAnalyticsRequestDescriptor : RequestDescriptor, PutDataFrameAnalyticsRequestParameters> -{ - internal PutDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_data_frame_analytics"; - - public PutDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action> AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - private Action AnalyzedFieldsDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - private Action> DestDescriptorAction { get; set; } - private IDictionary>>? HeadersValue { get; set; } - private int? MaxNumThreadsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - private Action> SourceDescriptorAction { get; set; } - private string? VersionValue { get; set; } - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. If - /// set to false and a machine learning node with capacity to run the job - /// cannot be immediately found, the API returns an error. If set to true, - /// the API does not return an error; the job waits in the starting state - /// until sufficient machine learning node capacity is available. This - /// behavior is also affected by the cluster-wide - /// xpack.ml.max_lazy_ml_nodes setting. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - /// - /// - /// The analysis configuration, which contains the information necessary to - /// perform one of the following types of analysis: classification, outlier - /// detection, or regression. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Analysis(Action> configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies includes and/or excludes patterns to select which fields - /// will be included in the analysis. The patterns specified in excludes - /// are applied last, therefore excludes takes precedence. In other words, - /// if the same field is specified in both includes and excludes, then - /// the field will not be included in the analysis. If analyzed_fields is - /// not set, only the relevant fields will be included. For example, all the - /// numeric fields for outlier detection. - /// The supported fields vary for each type of analysis. Outlier detection - /// requires numeric or boolean data to analyze. The algorithms don’t - /// support missing values therefore fields that have data types other than - /// numeric or boolean are ignored. Documents where included fields contain - /// missing values, null values, or an array are also ignored. Therefore the - /// dest index may contain documents that don’t have an outlier score. - /// Regression supports fields that are numeric, boolean, text, - /// keyword, and ip data types. It is also tolerant of missing values. - /// Fields that are supported are included in the analysis, other fields are - /// ignored. Documents where included fields contain an array with two or - /// more values are also ignored. Documents in the dest index that don’t - /// contain a results field are not included in the regression analysis. - /// Classification supports fields that are numeric, boolean, text, - /// keyword, and ip data types. It is also tolerant of missing values. - /// Fields that are supported are included in the analysis, other fields are - /// ignored. Documents where included fields contain an array with two or - /// more values are also ignored. Documents in the dest index that don’t - /// contain a results field are not included in the classification analysis. - /// Classification analysis can be improved by mapping ordinal variable - /// values to a single number. For example, in case of age ranges, you can - /// model the values as 0-14 = 0, 15-24 = 1, 25-34 = 2, and so on. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination configuration. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Dest(Action> configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Headers(Func>>, FluentDictionary>>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try - /// to create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - /// - /// - /// The configuration of how to source the analysis data. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create a data frame analytics job. -/// This API creates a data frame analytics job that performs an analysis on the -/// source indices and stores the outcome in a destination index. -/// -/// -public sealed partial class PutDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal PutDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_data_frame_analytics"; - - public PutDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - private Action AnalyzedFieldsDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private IDictionary>>? HeadersValue { get; set; } - private int? MaxNumThreadsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - private string? VersionValue { get; set; } - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. If - /// set to false and a machine learning node with capacity to run the job - /// cannot be immediately found, the API returns an error. If set to true, - /// the API does not return an error; the job waits in the starting state - /// until sufficient machine learning node capacity is available. This - /// behavior is also affected by the cluster-wide - /// xpack.ml.max_lazy_ml_nodes setting. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - /// - /// - /// The analysis configuration, which contains the information necessary to - /// perform one of the following types of analysis: classification, outlier - /// detection, or regression. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies includes and/or excludes patterns to select which fields - /// will be included in the analysis. The patterns specified in excludes - /// are applied last, therefore excludes takes precedence. In other words, - /// if the same field is specified in both includes and excludes, then - /// the field will not be included in the analysis. If analyzed_fields is - /// not set, only the relevant fields will be included. For example, all the - /// numeric fields for outlier detection. - /// The supported fields vary for each type of analysis. Outlier detection - /// requires numeric or boolean data to analyze. The algorithms don’t - /// support missing values therefore fields that have data types other than - /// numeric or boolean are ignored. Documents where included fields contain - /// missing values, null values, or an array are also ignored. Therefore the - /// dest index may contain documents that don’t have an outlier score. - /// Regression supports fields that are numeric, boolean, text, - /// keyword, and ip data types. It is also tolerant of missing values. - /// Fields that are supported are included in the analysis, other fields are - /// ignored. Documents where included fields contain an array with two or - /// more values are also ignored. Documents in the dest index that don’t - /// contain a results field are not included in the regression analysis. - /// Classification supports fields that are numeric, boolean, text, - /// keyword, and ip data types. It is also tolerant of missing values. - /// Fields that are supported are included in the analysis, other fields are - /// ignored. Documents where included fields contain an array with two or - /// more values are also ignored. Documents in the dest index that don’t - /// contain a results field are not included in the classification analysis. - /// Classification analysis can be improved by mapping ordinal variable - /// values to a single number. For example, in case of age ranges, you can - /// model the values as 0-14 = 0, 15-24 = 1, 25-34 = 2, and so on. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination configuration. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Headers(Func>>, FluentDictionary>>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try - /// to create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - /// - /// - /// The configuration of how to source the analysis data. - /// - /// - public PutDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public PutDataFrameAnalyticsRequestDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 60f90198ccf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,57 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutDataFrameAnalyticsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("allow_lazy_start")] - public bool AllowLazyStart { get; init; } - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis Analysis { get; init; } - [JsonInclude, JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; init; } - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsAuthorization? Authorization { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public long CreateTime { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination Dest { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("max_num_threads")] - public int MaxNumThreads { get; init; } - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource Source { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs deleted file mode 100644 index b014e0cd7d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ /dev/null @@ -1,1314 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutDatafeedRequestParameters : RequestParameters -{ - /// - /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the _all - /// string or when no indices are specified. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - /// whether wildcard expressions match hidden data streams. Supports comma-separated values. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, unavailable indices (missing or closed) are ignored. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -internal sealed partial class PutDatafeedRequestConverter : JsonConverter -{ - public override PutDatafeedRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new PutDatafeedRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - variant.ChunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - variant.DelayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - variant.Frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "headers") - { - variant.Headers = JsonSerializer.Deserialize>>?>(ref reader, options); - continue; - } - - if (property == "indices" || property == "indexes") - { - variant.Indices = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices_options") - { - variant.IndicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - variant.JobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - variant.MaxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - variant.QueryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - variant.ScrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, PutDatafeedRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.ChunkingConfig is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, value.ChunkingConfig, options); - } - - if (value.DelayedDataCheckConfig is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, value.DelayedDataCheckConfig, options); - } - - if (value.Frequency is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, value.Frequency, options); - } - - if (value.Headers is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, value.Headers, options); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.IndicesOptions is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, value.IndicesOptions, options); - } - - if (value.JobId is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, value.JobId, options); - } - - if (value.MaxEmptySearches.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(value.MaxEmptySearches.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.QueryDelay is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, value.QueryDelay, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.ScrollSize.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(value.ScrollSize.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create a datafeed. -/// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. -/// You can associate only one datafeed with each anomaly detection job. -/// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had -/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, -/// those credentials are used instead. -/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed -/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. -/// -/// -[JsonConverter(typeof(PutDatafeedRequestConverter))] -public sealed partial class PutDatafeedRequest : PlainRequest -{ - public PutDatafeedRequest(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - public PutDatafeedRequest() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_datafeed"; - - /// - /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the _all - /// string or when no indices are specified. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - /// whether wildcard expressions match hidden data streams. Supports comma-separated values. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, unavailable indices (missing or closed) are ignored. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If set, the datafeed performs aggregation searches. - /// Support for aggregations is limited and should be used only with low cardinality data. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - - /// - /// - /// Datafeeds might be required to search over long time periods, for several months or years. - /// This search is split into time chunks in order to ensure the load on Elasticsearch is managed. - /// Chunking configuration controls how the size of these time chunks are calculated; - /// it is an advanced configuration option. - /// - /// - [JsonInclude, JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfig { get; set; } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. - /// The datafeed can optionally search over indices that have already been read in an effort to determine whether - /// any data has subsequently been added to the index. If missing data is found, it is a good indication that the - /// query_delay is set too low and the data is being indexed after the datafeed has passed that moment in time. - /// This check runs only on real-time datafeeds. - /// - /// - [JsonInclude, JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. - /// The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible - /// fraction of the bucket span. When frequency is shorter than the bucket span, interim results for the last - /// (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses - /// aggregations, this value must be divisible by the interval of the date histogram aggregation. - /// - /// - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; set; } - [JsonInclude, JsonPropertyName("headers")] - public IDictionary>>? Headers { get; set; } - - /// - /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// Specifies index expansion options that are used during search - /// - /// - [JsonInclude, JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; set; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get; set; } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period), it automatically - /// stops and closes the associated job after this many real-time searches return no documents. In other words, - /// it stops after frequency times max_empty_searches of real-time operation. If not set, a datafeed with no - /// end time that sees no data remains started until it is explicitly stopped. By default, it is not set. - /// - /// - [JsonInclude, JsonPropertyName("max_empty_searches")] - public int? MaxEmptySearches { get; set; } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an - /// Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this - /// object is passed verbatim to Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might - /// not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default - /// value is randomly selected between 60s and 120s. This randomness improves the query performance - /// when there are multiple jobs running on the same node. - /// - /// - [JsonInclude, JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelay { get; set; } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. - /// The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - [JsonInclude, JsonPropertyName("script_fields")] - public IDictionary? ScriptFields { get; set; } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. - /// The maximum value is the value of index.max_result_window, which is 10,000 by default. - /// - /// - [JsonInclude, JsonPropertyName("scroll_size")] - public int? ScrollSize { get; set; } -} - -/// -/// -/// Create a datafeed. -/// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. -/// You can associate only one datafeed with each anomaly detection job. -/// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had -/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, -/// those credentials are used instead. -/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed -/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. -/// -/// -public sealed partial class PutDatafeedRequestDescriptor : RequestDescriptor, PutDatafeedRequestParameters> -{ - internal PutDatafeedRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_datafeed"; - - public PutDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutDatafeedRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public PutDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - private IDictionary> AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - private Action ChunkingConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private IDictionary>>? HeadersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - private Action IndicesOptionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private int? MaxEmptySearchesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelayValue { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private int? ScrollSizeValue { get; set; } - - /// - /// - /// If set, the datafeed performs aggregation searches. - /// Support for aggregations is limited and should be used only with low cardinality data. - /// - /// - public PutDatafeedRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Datafeeds might be required to search over long time periods, for several months or years. - /// This search is split into time chunks in order to ensure the load on Elasticsearch is managed. - /// Chunking configuration controls how the size of these time chunks are calculated; - /// it is an advanced configuration option. - /// - /// - public PutDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public PutDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. - /// The datafeed can optionally search over indices that have already been read in an effort to determine whether - /// any data has subsequently been added to the index. If missing data is found, it is a good indication that the - /// query_delay is set too low and the data is being indexed after the datafeed has passed that moment in time. - /// This check runs only on real-time datafeeds. - /// - /// - public PutDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public PutDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. - /// The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible - /// fraction of the bucket span. When frequency is shorter than the bucket span, interim results for the last - /// (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses - /// aggregations, this value must be divisible by the interval of the date histogram aggregation. - /// - /// - public PutDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public PutDatafeedRequestDescriptor Headers(Func>>, FluentDictionary>>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. - /// - /// - public PutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies index expansion options that are used during search - /// - /// - public PutDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public PutDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - public PutDatafeedRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period), it automatically - /// stops and closes the associated job after this many real-time searches return no documents. In other words, - /// it stops after frequency times max_empty_searches of real-time operation. If not set, a datafeed with no - /// end time that sees no data remains started until it is explicitly stopped. By default, it is not set. - /// - /// - public PutDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an - /// Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this - /// object is passed verbatim to Elasticsearch. - /// - /// - public PutDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public PutDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might - /// not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default - /// value is randomly selected between 60s and 120s. This randomness improves the query performance - /// when there are multiple jobs running on the same node. - /// - /// - public PutDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public PutDatafeedRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. - /// The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public PutDatafeedRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. - /// The maximum value is the value of index.max_result_window, which is 10,000 by default. - /// - /// - public PutDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create a datafeed. -/// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. -/// You can associate only one datafeed with each anomaly detection job. -/// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had -/// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, -/// those credentials are used instead. -/// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed -/// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. -/// -/// -public sealed partial class PutDatafeedRequestDescriptor : RequestDescriptor -{ - internal PutDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_datafeed"; - - public PutDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutDatafeedRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public PutDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - private IDictionary AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - private Action ChunkingConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private IDictionary>>? HeadersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - private Action IndicesOptionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private int? MaxEmptySearchesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelayValue { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private int? ScrollSizeValue { get; set; } - - /// - /// - /// If set, the datafeed performs aggregation searches. - /// Support for aggregations is limited and should be used only with low cardinality data. - /// - /// - public PutDatafeedRequestDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Datafeeds might be required to search over long time periods, for several months or years. - /// This search is split into time chunks in order to ensure the load on Elasticsearch is managed. - /// Chunking configuration controls how the size of these time chunks are calculated; - /// it is an advanced configuration option. - /// - /// - public PutDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public PutDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. - /// The datafeed can optionally search over indices that have already been read in an effort to determine whether - /// any data has subsequently been added to the index. If missing data is found, it is a good indication that the - /// query_delay is set too low and the data is being indexed after the datafeed has passed that moment in time. - /// This check runs only on real-time datafeeds. - /// - /// - public PutDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public PutDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. - /// The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible - /// fraction of the bucket span. When frequency is shorter than the bucket span, interim results for the last - /// (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses - /// aggregations, this value must be divisible by the interval of the date histogram aggregation. - /// - /// - public PutDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - public PutDatafeedRequestDescriptor Headers(Func>>, FluentDictionary>>> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. - /// - /// - public PutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies index expansion options that are used during search - /// - /// - public PutDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public PutDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - public PutDatafeedRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period), it automatically - /// stops and closes the associated job after this many real-time searches return no documents. In other words, - /// it stops after frequency times max_empty_searches of real-time operation. If not set, a datafeed with no - /// end time that sees no data remains started until it is explicitly stopped. By default, it is not set. - /// - /// - public PutDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an - /// Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this - /// object is passed verbatim to Elasticsearch. - /// - /// - public PutDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public PutDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public PutDatafeedRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might - /// not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default - /// value is randomly selected between 60s and 120s. This randomness improves the query performance - /// when there are multiple jobs running on the same node. - /// - /// - public PutDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public PutDatafeedRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. - /// The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public PutDatafeedRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. - /// The maximum value is the value of index.max_result_window, which is 10,000 by default. - /// - /// - public PutDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs deleted file mode 100644 index ddabcb1e4ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutDatafeedResponse.g.cs +++ /dev/null @@ -1,61 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutDatafeedResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregations")] - public IReadOnlyDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedAuthorization? Authorization { get; init; } - [JsonInclude, JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig ChunkingConfig { get; init; } - [JsonInclude, JsonPropertyName("datafeed_id")] - public string DatafeedId { get; init; } - [JsonInclude, JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; init; } - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("max_empty_searches")] - public int? MaxEmptySearches { get; init; } - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; init; } - [JsonInclude, JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration QueryDelay { get; init; } - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IReadOnlyDictionary? RuntimeMappings { get; init; } - [JsonInclude, JsonPropertyName("script_fields")] - public IReadOnlyDictionary? ScriptFields { get; init; } - [JsonInclude, JsonPropertyName("scroll_size")] - public int ScrollSize { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs deleted file mode 100644 index 83aece34c13..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterRequest.g.cs +++ /dev/null @@ -1,148 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutFilterRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create a filter. -/// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. -/// Specifically, filters are referenced in the custom_rules property of detector configuration objects. -/// -/// -public sealed partial class PutFilterRequest : PlainRequest -{ - public PutFilterRequest(Elastic.Clients.Elasticsearch.Serverless.Id filterId) : base(r => r.Required("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutFilter; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_filter"; - - /// - /// - /// A description of the filter. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The items of the filter. A wildcard * can be used at the beginning or the end of an item. - /// Up to 10000 items are allowed in each filter. - /// - /// - [JsonInclude, JsonPropertyName("items")] - public ICollection? Items { get; set; } -} - -/// -/// -/// Create a filter. -/// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. -/// Specifically, filters are referenced in the custom_rules property of detector configuration objects. -/// -/// -public sealed partial class PutFilterRequestDescriptor : RequestDescriptor -{ - internal PutFilterRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutFilterRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id filterId) : base(r => r.Required("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutFilter; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_filter"; - - public PutFilterRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Serverless.Id filterId) - { - RouteValues.Required("filter_id", filterId); - return Self; - } - - private string? DescriptionValue { get; set; } - private ICollection? ItemsValue { get; set; } - - /// - /// - /// A description of the filter. - /// - /// - public PutFilterRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The items of the filter. A wildcard * can be used at the beginning or the end of an item. - /// Up to 10000 items are allowed in each filter. - /// - /// - public PutFilterRequestDescriptor Items(ICollection? items) - { - ItemsValue = items; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (ItemsValue is not null) - { - writer.WritePropertyName("items"); - JsonSerializer.Serialize(writer, ItemsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterResponse.g.cs deleted file mode 100644 index 20f12bc44f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutFilterResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutFilterResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("filter_id")] - public string FilterId { get; init; } - [JsonInclude, JsonPropertyName("items")] - public IReadOnlyCollection Items { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index c507002aedb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ /dev/null @@ -1,1222 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutJobRequestParameters : RequestParameters -{ - /// - /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - /// - /// - /// - /// - /// all: Match any data stream or index, including hidden ones. - /// - /// - /// - /// - /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - /// - /// - /// - /// - /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both. - /// - /// - /// - /// - /// none: Wildcard patterns are not accepted. - /// - /// - /// - /// - /// open: Match open, non-hidden indices. Also matches any non-hidden data stream. - /// - /// - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, unavailable indices (missing or closed) are ignored. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -/// -/// -/// 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 -{ - public PutJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_job"; - - /// - /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - /// - /// - /// - /// - /// all: Match any data stream or index, including hidden ones. - /// - /// - /// - /// - /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - /// - /// - /// - /// - /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both. - /// - /// - /// - /// - /// none: Wildcard patterns are not accepted. - /// - /// - /// - /// - /// open: Match open, non-hidden indices. Also matches any non-hidden data stream. - /// - /// - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, unavailable indices (missing or closed) are ignored. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. By default, if a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this option is set to true, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available. - /// - /// - [JsonInclude, JsonPropertyName("allow_lazy_open")] - public bool? AllowLazyOpen { get; set; } - - /// - /// - /// Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational. - /// - /// - [JsonInclude, JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig AnalysisConfig { get; set; } - - /// - /// - /// Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes. - /// - /// - [JsonInclude, JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimits { get; set; } - - /// - /// - /// Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set the background_persist_interval value too low. - /// - /// - [JsonInclude, JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistInterval { get; set; } - - /// - /// - /// Advanced configuration option. Contains custom meta data about the job. - /// - /// - [JsonInclude, JsonPropertyName("custom_settings")] - public object? CustomSettings { get; set; } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies a period of time (in days) after which only the first snapshot per day is retained. This period is relative to the timestamp of the most recent snapshot for this job. Valid values range from 0 to model_snapshot_retention_days. - /// - /// - [JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; set; } - - /// - /// - /// Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained. - /// - /// - [JsonInclude, JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescription { get; set; } - - /// - /// - /// Defines a datafeed for the anomaly detection job. If Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. - /// - /// - [JsonInclude, JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfig? DatafeedConfig { get; set; } - - /// - /// - /// A description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// A list of job groups. A job can belong to no groups or many. - /// - /// - [JsonInclude, JsonPropertyName("groups")] - public ICollection? Groups { get; set; } - - /// - /// - /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get; set; } - - /// - /// - /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. - /// - /// - [JsonInclude, JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; set; } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies the maximum period of time (in days) that snapshots are retained. This period is relative to the timestamp of the most recent snapshot for this job. By default, snapshots ten days older than the newest snapshot are deleted. - /// - /// - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - - /// - /// - /// Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen. The default value is the longer of 30 days or 100 bucket spans. - /// - /// - [JsonInclude, JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; set; } - - /// - /// - /// A text string that affects the name of the machine learning results index. By default, the job generates an index named .ml-anomalies-shared. - /// - /// - [JsonInclude, JsonPropertyName("results_index_name")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? ResultsIndexName { get; set; } - - /// - /// - /// Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained. Annotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results. Annotations added by users are retained forever. - /// - /// - [JsonInclude, JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; set; } -} - -/// -/// -/// 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> -{ - internal PutJobRequestDescriptor(Action> configure) => configure.Invoke(this); - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_job"; - - public PutJobRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutJobRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutJobRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - private bool? AllowLazyOpenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig AnalysisConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - private Action> AnalysisConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - private Action AnalysisLimitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistIntervalValue { get; set; } - private object? CustomSettingsValue { get; set; } - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - private Action> DataDescriptionDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfig? DatafeedConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - private Action> DatafeedConfigDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? GroupsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - private Action> ModelPlotConfigDescriptorAction { get; set; } - private long? ModelSnapshotRetentionDaysValue { get; set; } - private long? RenormalizationWindowDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? ResultsIndexNameValue { get; set; } - private long? ResultsRetentionDaysValue { get; set; } - - /// - /// - /// Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. By default, if a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this option is set to true, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available. - /// - /// - public PutJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - /// - /// - /// Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational. - /// - /// - public PutJobRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public PutJobRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes. - /// - /// - public PutJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public PutJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set the background_persist_interval value too low. - /// - /// - public PutJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - /// - /// - /// Advanced configuration option. Contains custom meta data about the job. - /// - /// - public PutJobRequestDescriptor CustomSettings(object? customSettings) - { - CustomSettingsValue = customSettings; - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies a period of time (in days) after which only the first snapshot per day is retained. This period is relative to the timestamp of the most recent snapshot for this job. Valid values range from 0 to model_snapshot_retention_days. - /// - /// - public PutJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - /// - /// - /// Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained. - /// - /// - public PutJobRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public PutJobRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor DataDescription(Action> configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a datafeed for the anomaly detection job. If Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. - /// - /// - public PutJobRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public PutJobRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor DatafeedConfig(Action> configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public PutJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A list of job groups. A job can belong to no groups or many. - /// - /// - public PutJobRequestDescriptor Groups(ICollection? groups) - { - GroupsValue = groups; - return Self; - } - - /// - /// - /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. - /// - /// - public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. - /// - /// - public PutJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public PutJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor ModelPlotConfig(Action> configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies the maximum period of time (in days) that snapshots are retained. This period is relative to the timestamp of the most recent snapshot for this job. By default, snapshots ten days older than the newest snapshot are deleted. - /// - /// - public PutJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - /// - /// - /// Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen. The default value is the longer of 30 days or 100 bucket spans. - /// - /// - public PutJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - /// - /// - /// A text string that affects the name of the machine learning results index. By default, the job generates an index named .ml-anomalies-shared. - /// - /// - public PutJobRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.Serverless.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - /// - /// - /// Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained. Annotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results. Annotations added by users are retained forever. - /// - /// - public PutJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal PutJobRequestDescriptor(Action configure) => configure.Invoke(this); - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_job"; - - public PutJobRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutJobRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public PutJobRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - private bool? AllowLazyOpenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig AnalysisConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - private Action AnalysisConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - private Action AnalysisLimitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistIntervalValue { get; set; } - private object? CustomSettingsValue { get; set; } - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - private Action DataDescriptionDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfig? DatafeedConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfigDescriptor DatafeedConfigDescriptor { get; set; } - private Action DatafeedConfigDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? GroupsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - private Action ModelPlotConfigDescriptorAction { get; set; } - private long? ModelSnapshotRetentionDaysValue { get; set; } - private long? RenormalizationWindowDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? ResultsIndexNameValue { get; set; } - private long? ResultsRetentionDaysValue { get; set; } - - /// - /// - /// Advanced configuration option. Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. By default, if a machine learning node with capacity to run the job cannot immediately be found, the open anomaly detection jobs API returns an error. However, this is also subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this option is set to true, the open anomaly detection jobs API does not return an error and the job waits in the opening state until sufficient machine learning node capacity is available. - /// - /// - public PutJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - /// - /// - /// Specifies how to analyze the data. After you create a job, you cannot change the analysis configuration; all the properties are informational. - /// - /// - public PutJobRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public PutJobRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes. - /// - /// - public PutJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public PutJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. The time between each periodic persistence of the model. The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. The smallest allowed value is 1 hour. For very large models (several GB), persistence could take 10-20 minutes, so do not set the background_persist_interval value too low. - /// - /// - public PutJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - /// - /// - /// Advanced configuration option. Contains custom meta data about the job. - /// - /// - public PutJobRequestDescriptor CustomSettings(object? customSettings) - { - CustomSettingsValue = customSettings; - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies a period of time (in days) after which only the first snapshot per day is retained. This period is relative to the timestamp of the most recent snapshot for this job. Valid values range from 0 to model_snapshot_retention_days. - /// - /// - public PutJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - /// - /// - /// Defines the format of the input data when you send data to the job by using the post data API. Note that when configure a datafeed, these properties are automatically set. When data is received via the post data API, it is not stored in Elasticsearch. Only the results for anomaly detection are retained. - /// - /// - public PutJobRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public PutJobRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor DataDescription(Action configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a datafeed for the anomaly detection job. If Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, those credentials are used instead. - /// - /// - public PutJobRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfig? datafeedConfig) - { - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigValue = datafeedConfig; - return Self; - } - - public PutJobRequestDescriptor DatafeedConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfigDescriptor descriptor) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptorAction = null; - DatafeedConfigDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor DatafeedConfig(Action configure) - { - DatafeedConfigValue = null; - DatafeedConfigDescriptor = null; - DatafeedConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public PutJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A list of job groups. A job can belong to no groups or many. - /// - /// - public PutJobRequestDescriptor Groups(ICollection? groups) - { - GroupsValue = groups; - return Self; - } - - /// - /// - /// The identifier for the anomaly detection job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. - /// - /// - public PutJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// This advanced configuration option stores model information along with the results. It provides a more detailed view into anomaly detection. If you enable model plot it can add considerable overhead to the performance of the system; it is not feasible for jobs with many entities. Model plot provides a simplified and indicative view of the model and its bounds. It does not display complex features such as multivariate correlations or multimodal data. As such, anomalies may occasionally be reported which cannot be seen in the model plot. Model plot config can be configured when the job is created or updated later. It must be disabled if performance issues are experienced. - /// - /// - public PutJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public PutJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public PutJobRequestDescriptor ModelPlotConfig(Action configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. It specifies the maximum period of time (in days) that snapshots are retained. This period is relative to the timestamp of the most recent snapshot for this job. By default, snapshots ten days older than the newest snapshot are deleted. - /// - /// - public PutJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - /// - /// - /// Advanced configuration option. The period over which adjustments to the score are applied, as new data is seen. The default value is the longer of 30 days or 100 bucket spans. - /// - /// - public PutJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - /// - /// - /// A text string that affects the name of the machine learning results index. By default, the job generates an index named .ml-anomalies-shared. - /// - /// - public PutJobRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.Serverless.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - /// - /// - /// Advanced configuration option. The period of time (in days) that results are retained. Age is calculated relative to the timestamp of the latest bucket result. If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. The default value is null, which means all results are retained. Annotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results. Annotations added by users are retained forever. - /// - /// - public PutJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (DatafeedConfigDescriptor is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigDescriptor, options); - } - else if (DatafeedConfigDescriptorAction is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedConfigDescriptor(DatafeedConfigDescriptorAction), options); - } - else if (DatafeedConfigValue is not null) - { - writer.WritePropertyName("datafeed_config"); - JsonSerializer.Serialize(writer, DatafeedConfigValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobResponse.g.cs deleted file mode 100644 index 4046c33265f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutJobResponse.g.cs +++ /dev/null @@ -1,71 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutJobResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("allow_lazy_open")] - public bool AllowLazyOpen { get; init; } - [JsonInclude, JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigRead AnalysisConfig { get; init; } - [JsonInclude, JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits AnalysisLimits { get; init; } - [JsonInclude, JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistInterval { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public DateTimeOffset CreateTime { get; init; } - [JsonInclude, JsonPropertyName("custom_settings")] - public object? CustomSettings { get; init; } - [JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long DailyModelSnapshotRetentionAfterDays { get; init; } - [JsonInclude, JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescription { get; init; } - [JsonInclude, JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Datafeed? DatafeedConfig { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("groups")] - public IReadOnlyCollection? Groups { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("job_type")] - public string JobType { get; init; } - [JsonInclude, JsonPropertyName("job_version")] - public string JobVersion { get; init; } - [JsonInclude, JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_id")] - public string? ModelSnapshotId { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public long ModelSnapshotRetentionDays { get; init; } - [JsonInclude, JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; init; } - [JsonInclude, JsonPropertyName("results_index_name")] - public string ResultsIndexName { get; init; } - [JsonInclude, JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs deleted file mode 100644 index 7e1b3290619..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasRequest.g.cs +++ /dev/null @@ -1,145 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelAliasRequestParameters : RequestParameters -{ - /// - /// - /// Specifies whether the alias gets reassigned to the specified trained - /// model if it is already assigned to a different model. If the alias is - /// already assigned and this parameter is false, the API returns an error. - /// - /// - public bool? Reassign { get => Q("reassign"); set => Q("reassign", value); } -} - -/// -/// -/// Create or update a trained model alias. -/// A trained model alias is a logical name used to reference a single trained -/// model. -/// You can use aliases instead of trained model identifiers to make it easier to -/// reference your models. For example, you can use aliases in inference -/// aggregations and processors. -/// An alias must be unique and refer to only a single trained model. However, -/// you can have multiple aliases for each trained model. -/// If you use this API to update an alias such that it references a different -/// trained model ID and the model uses a different type of data frame analytics, -/// an error occurs. For example, this situation occurs if you have a trained -/// model for regression analysis and a trained model for classification -/// analysis; you cannot reassign an alias from one type of trained model to -/// another. -/// If you use this API to update an alias and there are very few input fields in -/// common between the old and new trained models for the model alias, the API -/// returns a warning. -/// -/// -public sealed partial class PutTrainedModelAliasRequest : PlainRequest -{ - public PutTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias) : base(r => r.Required("model_id", modelId).Required("model_alias", modelAlias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModelAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.put_trained_model_alias"; - - /// - /// - /// Specifies whether the alias gets reassigned to the specified trained - /// model if it is already assigned to a different model. If the alias is - /// already assigned and this parameter is false, the API returns an error. - /// - /// - [JsonIgnore] - public bool? Reassign { get => Q("reassign"); set => Q("reassign", value); } -} - -/// -/// -/// Create or update a trained model alias. -/// A trained model alias is a logical name used to reference a single trained -/// model. -/// You can use aliases instead of trained model identifiers to make it easier to -/// reference your models. For example, you can use aliases in inference -/// aggregations and processors. -/// An alias must be unique and refer to only a single trained model. However, -/// you can have multiple aliases for each trained model. -/// If you use this API to update an alias such that it references a different -/// trained model ID and the model uses a different type of data frame analytics, -/// an error occurs. For example, this situation occurs if you have a trained -/// model for regression analysis and a trained model for classification -/// analysis; you cannot reassign an alias from one type of trained model to -/// another. -/// If you use this API to update an alias and there are very few input fields in -/// common between the old and new trained models for the model alias, the API -/// returns a warning. -/// -/// -public sealed partial class PutTrainedModelAliasRequestDescriptor : RequestDescriptor -{ - internal PutTrainedModelAliasRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutTrainedModelAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias) : base(r => r.Required("model_id", modelId).Required("model_alias", modelAlias)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModelAlias; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.put_trained_model_alias"; - - public PutTrainedModelAliasRequestDescriptor Reassign(bool? reassign = true) => Qs("reassign", reassign); - - public PutTrainedModelAliasRequestDescriptor ModelAlias(Elastic.Clients.Elasticsearch.Serverless.Name modelAlias) - { - RouteValues.Required("model_alias", modelAlias); - return Self; - } - - public PutTrainedModelAliasRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs deleted file mode 100644 index 8fa9c7fa77b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelAliasResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelAliasResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs deleted file mode 100644 index 46b073093ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartRequest.g.cs +++ /dev/null @@ -1,162 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelDefinitionPartRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create part of a trained model definition. -/// -/// -public sealed partial class PutTrainedModelDefinitionPartRequest : PlainRequest -{ - public PutTrainedModelDefinitionPartRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId, int part) : base(r => r.Required("model_id", modelId).Required("part", part)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModelDefinitionPart; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model_definition_part"; - - /// - /// - /// The definition part for the model. Must be a base64 encoded string. - /// - /// - [JsonInclude, JsonPropertyName("definition")] - public string Definition { get; set; } - - /// - /// - /// The total uncompressed definition length in bytes. Not base64 encoded. - /// - /// - [JsonInclude, JsonPropertyName("total_definition_length")] - public long TotalDefinitionLength { get; set; } - - /// - /// - /// The total number of parts that will be uploaded. Must be greater than 0. - /// - /// - [JsonInclude, JsonPropertyName("total_parts")] - public int TotalParts { get; set; } -} - -/// -/// -/// Create part of a trained model definition. -/// -/// -public sealed partial class PutTrainedModelDefinitionPartRequestDescriptor : RequestDescriptor -{ - internal PutTrainedModelDefinitionPartRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutTrainedModelDefinitionPartRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId, int part) : base(r => r.Required("model_id", modelId).Required("part", part)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModelDefinitionPart; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model_definition_part"; - - public PutTrainedModelDefinitionPartRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - public PutTrainedModelDefinitionPartRequestDescriptor Part(int part) - { - RouteValues.Required("part", part); - return Self; - } - - private string DefinitionValue { get; set; } - private long TotalDefinitionLengthValue { get; set; } - private int TotalPartsValue { get; set; } - - /// - /// - /// The definition part for the model. Must be a base64 encoded string. - /// - /// - public PutTrainedModelDefinitionPartRequestDescriptor Definition(string definition) - { - DefinitionValue = definition; - return Self; - } - - /// - /// - /// The total uncompressed definition length in bytes. Not base64 encoded. - /// - /// - public PutTrainedModelDefinitionPartRequestDescriptor TotalDefinitionLength(long totalDefinitionLength) - { - TotalDefinitionLengthValue = totalDefinitionLength; - return Self; - } - - /// - /// - /// The total number of parts that will be uploaded. Must be greater than 0. - /// - /// - public PutTrainedModelDefinitionPartRequestDescriptor TotalParts(int totalParts) - { - TotalPartsValue = totalParts; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("definition"); - writer.WriteStringValue(DefinitionValue); - writer.WritePropertyName("total_definition_length"); - writer.WriteNumberValue(TotalDefinitionLengthValue); - writer.WritePropertyName("total_parts"); - writer.WriteNumberValue(TotalPartsValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs deleted file mode 100644 index dd3c200a6b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelDefinitionPartResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelDefinitionPartResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs deleted file mode 100644 index 7d4e626063e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelRequest.g.cs +++ /dev/null @@ -1,935 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelRequestParameters : RequestParameters -{ - /// - /// - /// If set to true and a compressed_definition is provided, - /// the request defers definition decompression and skips relevant - /// validations. - /// - /// - public bool? DeferDefinitionDecompression { get => Q("defer_definition_decompression"); set => Q("defer_definition_decompression", value); } - - /// - /// - /// Whether to wait for all child operations (e.g. model download) - /// to complete. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Create a trained model. -/// Enable you to supply a trained model that is not created by data frame analytics. -/// -/// -public sealed partial class PutTrainedModelRequest : PlainRequest -{ - public PutTrainedModelRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model"; - - /// - /// - /// If set to true and a compressed_definition is provided, - /// the request defers definition decompression and skips relevant - /// validations. - /// - /// - [JsonIgnore] - public bool? DeferDefinitionDecompression { get => Q("defer_definition_decompression"); set => Q("defer_definition_decompression", value); } - - /// - /// - /// Whether to wait for all child operations (e.g. model download) - /// to complete. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - /// - /// - /// The compressed (GZipped and Base64 encoded) inference definition of the - /// model. If compressed_definition is specified, then definition cannot be - /// specified. - /// - /// - [JsonInclude, JsonPropertyName("compressed_definition")] - public string? CompressedDefinition { get; set; } - - /// - /// - /// The inference definition for the model. If definition is specified, then - /// compressed_definition cannot be specified. - /// - /// - [JsonInclude, JsonPropertyName("definition")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Definition? Definition { get; set; } - - /// - /// - /// A human-readable description of the inference trained model. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The default configuration for inference. This can be either a regression - /// or classification configuration. It must match the underlying - /// definition.trained_model's target_type. For pre-packaged models such as - /// ELSER the config is not required. - /// - /// - [JsonInclude, JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? InferenceConfig { get; set; } - - /// - /// - /// The input field names for the model definition. - /// - /// - [JsonInclude, JsonPropertyName("input")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Input? Input { get; set; } - - /// - /// - /// An object map that contains metadata about the model. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public object? Metadata { get; set; } - - /// - /// - /// The estimated memory usage in bytes to keep the trained model in memory. - /// This property is supported only if defer_definition_decompression is true - /// or the model definition is not supplied. - /// - /// - [JsonInclude, JsonPropertyName("model_size_bytes")] - public long? ModelSizeBytes { get; set; } - - /// - /// - /// The model type. - /// - /// - [JsonInclude, JsonPropertyName("model_type")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? ModelType { get; set; } - - /// - /// - /// The platform architecture (if applicable) of the trained mode. If the model - /// only works on one platform, because it is heavily optimized for a particular - /// processor architecture and OS combination, then this field specifies which. - /// The format of the string must match the platform identifiers used by Elasticsearch, - /// so one of, linux-x86_64, linux-aarch64, darwin-x86_64, darwin-aarch64, - /// or windows-x86_64. For portable models (those that work independent of processor - /// architecture or OS features), leave this field unset. - /// - /// - [JsonInclude, JsonPropertyName("platform_architecture")] - public string? PlatformArchitecture { get; set; } - - /// - /// - /// Optional prefix strings applied at inference - /// - /// - [JsonInclude, JsonPropertyName("prefix_strings")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; set; } - - /// - /// - /// An array of tags to organize the model. - /// - /// - [JsonInclude, JsonPropertyName("tags")] - public ICollection? Tags { get; set; } -} - -/// -/// -/// Create a trained model. -/// Enable you to supply a trained model that is not created by data frame analytics. -/// -/// -public sealed partial class PutTrainedModelRequestDescriptor : RequestDescriptor, PutTrainedModelRequestParameters> -{ - internal PutTrainedModelRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model"; - - public PutTrainedModelRequestDescriptor DeferDefinitionDecompression(bool? deferDefinitionDecompression = true) => Qs("defer_definition_decompression", deferDefinitionDecompression); - public PutTrainedModelRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public PutTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - private string? CompressedDefinitionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Definition? DefinitionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DefinitionDescriptor DefinitionDescriptor { get; set; } - private Action DefinitionDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreateDescriptor InferenceConfigDescriptor { get; set; } - private Action> InferenceConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Input? InputValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InputDescriptor InputDescriptor { get; set; } - private Action InputDescriptorAction { get; set; } - private object? MetadataValue { get; set; } - private long? ModelSizeBytesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? ModelTypeValue { get; set; } - private string? PlatformArchitectureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStringsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStringsDescriptor PrefixStringsDescriptor { get; set; } - private Action PrefixStringsDescriptorAction { get; set; } - private ICollection? TagsValue { get; set; } - - /// - /// - /// The compressed (GZipped and Base64 encoded) inference definition of the - /// model. If compressed_definition is specified, then definition cannot be - /// specified. - /// - /// - public PutTrainedModelRequestDescriptor CompressedDefinition(string? compressedDefinition) - { - CompressedDefinitionValue = compressedDefinition; - return Self; - } - - /// - /// - /// The inference definition for the model. If definition is specified, then - /// compressed_definition cannot be specified. - /// - /// - public PutTrainedModelRequestDescriptor Definition(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Definition? definition) - { - DefinitionDescriptor = null; - DefinitionDescriptorAction = null; - DefinitionValue = definition; - return Self; - } - - public PutTrainedModelRequestDescriptor Definition(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DefinitionDescriptor descriptor) - { - DefinitionValue = null; - DefinitionDescriptorAction = null; - DefinitionDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor Definition(Action configure) - { - DefinitionValue = null; - DefinitionDescriptor = null; - DefinitionDescriptorAction = configure; - return Self; - } - - /// - /// - /// A human-readable description of the inference trained model. - /// - /// - public PutTrainedModelRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The default configuration for inference. This can be either a regression - /// or classification configuration. It must match the underlying - /// definition.trained_model's target_type. For pre-packaged models such as - /// ELSER the config is not required. - /// - /// - public PutTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public PutTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreateDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor InferenceConfig(Action> configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The input field names for the model definition. - /// - /// - public PutTrainedModelRequestDescriptor Input(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Input? input) - { - InputDescriptor = null; - InputDescriptorAction = null; - InputValue = input; - return Self; - } - - public PutTrainedModelRequestDescriptor Input(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InputDescriptor descriptor) - { - InputValue = null; - InputDescriptorAction = null; - InputDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor Input(Action configure) - { - InputValue = null; - InputDescriptor = null; - InputDescriptorAction = configure; - return Self; - } - - /// - /// - /// An object map that contains metadata about the model. - /// - /// - public PutTrainedModelRequestDescriptor Metadata(object? metadata) - { - MetadataValue = metadata; - return Self; - } - - /// - /// - /// The estimated memory usage in bytes to keep the trained model in memory. - /// This property is supported only if defer_definition_decompression is true - /// or the model definition is not supplied. - /// - /// - public PutTrainedModelRequestDescriptor ModelSizeBytes(long? modelSizeBytes) - { - ModelSizeBytesValue = modelSizeBytes; - return Self; - } - - /// - /// - /// The model type. - /// - /// - public PutTrainedModelRequestDescriptor ModelType(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? modelType) - { - ModelTypeValue = modelType; - return Self; - } - - /// - /// - /// The platform architecture (if applicable) of the trained mode. If the model - /// only works on one platform, because it is heavily optimized for a particular - /// processor architecture and OS combination, then this field specifies which. - /// The format of the string must match the platform identifiers used by Elasticsearch, - /// so one of, linux-x86_64, linux-aarch64, darwin-x86_64, darwin-aarch64, - /// or windows-x86_64. For portable models (those that work independent of processor - /// architecture or OS features), leave this field unset. - /// - /// - public PutTrainedModelRequestDescriptor PlatformArchitecture(string? platformArchitecture) - { - PlatformArchitectureValue = platformArchitecture; - return Self; - } - - /// - /// - /// Optional prefix strings applied at inference - /// - /// - public PutTrainedModelRequestDescriptor PrefixStrings(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? prefixStrings) - { - PrefixStringsDescriptor = null; - PrefixStringsDescriptorAction = null; - PrefixStringsValue = prefixStrings; - return Self; - } - - public PutTrainedModelRequestDescriptor PrefixStrings(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStringsDescriptor descriptor) - { - PrefixStringsValue = null; - PrefixStringsDescriptorAction = null; - PrefixStringsDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor PrefixStrings(Action configure) - { - PrefixStringsValue = null; - PrefixStringsDescriptor = null; - PrefixStringsDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of tags to organize the model. - /// - /// - public PutTrainedModelRequestDescriptor Tags(ICollection? tags) - { - TagsValue = tags; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CompressedDefinitionValue)) - { - writer.WritePropertyName("compressed_definition"); - writer.WriteStringValue(CompressedDefinitionValue); - } - - if (DefinitionDescriptor is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionDescriptor, options); - } - else if (DefinitionDescriptorAction is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DefinitionDescriptor(DefinitionDescriptorAction), options); - } - else if (DefinitionValue is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreateDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - if (InputDescriptor is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputDescriptor, options); - } - else if (InputDescriptorAction is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InputDescriptor(InputDescriptorAction), options); - } - else if (InputValue is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (ModelSizeBytesValue.HasValue) - { - writer.WritePropertyName("model_size_bytes"); - writer.WriteNumberValue(ModelSizeBytesValue.Value); - } - - if (ModelTypeValue is not null) - { - writer.WritePropertyName("model_type"); - JsonSerializer.Serialize(writer, ModelTypeValue, options); - } - - if (!string.IsNullOrEmpty(PlatformArchitectureValue)) - { - writer.WritePropertyName("platform_architecture"); - writer.WriteStringValue(PlatformArchitectureValue); - } - - if (PrefixStringsDescriptor is not null) - { - writer.WritePropertyName("prefix_strings"); - JsonSerializer.Serialize(writer, PrefixStringsDescriptor, options); - } - else if (PrefixStringsDescriptorAction is not null) - { - writer.WritePropertyName("prefix_strings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStringsDescriptor(PrefixStringsDescriptorAction), options); - } - else if (PrefixStringsValue is not null) - { - writer.WritePropertyName("prefix_strings"); - JsonSerializer.Serialize(writer, PrefixStringsValue, options); - } - - if (TagsValue is not null) - { - writer.WritePropertyName("tags"); - JsonSerializer.Serialize(writer, TagsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create a trained model. -/// Enable you to supply a trained model that is not created by data frame analytics. -/// -/// -public sealed partial class PutTrainedModelRequestDescriptor : RequestDescriptor -{ - internal PutTrainedModelRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModel; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model"; - - public PutTrainedModelRequestDescriptor DeferDefinitionDecompression(bool? deferDefinitionDecompression = true) => Qs("defer_definition_decompression", deferDefinitionDecompression); - public PutTrainedModelRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public PutTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - private string? CompressedDefinitionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Definition? DefinitionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DefinitionDescriptor DefinitionDescriptor { get; set; } - private Action DefinitionDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreateDescriptor InferenceConfigDescriptor { get; set; } - private Action InferenceConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Input? InputValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InputDescriptor InputDescriptor { get; set; } - private Action InputDescriptorAction { get; set; } - private object? MetadataValue { get; set; } - private long? ModelSizeBytesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? ModelTypeValue { get; set; } - private string? PlatformArchitectureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStringsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStringsDescriptor PrefixStringsDescriptor { get; set; } - private Action PrefixStringsDescriptorAction { get; set; } - private ICollection? TagsValue { get; set; } - - /// - /// - /// The compressed (GZipped and Base64 encoded) inference definition of the - /// model. If compressed_definition is specified, then definition cannot be - /// specified. - /// - /// - public PutTrainedModelRequestDescriptor CompressedDefinition(string? compressedDefinition) - { - CompressedDefinitionValue = compressedDefinition; - return Self; - } - - /// - /// - /// The inference definition for the model. If definition is specified, then - /// compressed_definition cannot be specified. - /// - /// - public PutTrainedModelRequestDescriptor Definition(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Definition? definition) - { - DefinitionDescriptor = null; - DefinitionDescriptorAction = null; - DefinitionValue = definition; - return Self; - } - - public PutTrainedModelRequestDescriptor Definition(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DefinitionDescriptor descriptor) - { - DefinitionValue = null; - DefinitionDescriptorAction = null; - DefinitionDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor Definition(Action configure) - { - DefinitionValue = null; - DefinitionDescriptor = null; - DefinitionDescriptorAction = configure; - return Self; - } - - /// - /// - /// A human-readable description of the inference trained model. - /// - /// - public PutTrainedModelRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The default configuration for inference. This can be either a regression - /// or classification configuration. It must match the underlying - /// definition.trained_model's target_type. For pre-packaged models such as - /// ELSER the config is not required. - /// - /// - public PutTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public PutTrainedModelRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreateDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The input field names for the model definition. - /// - /// - public PutTrainedModelRequestDescriptor Input(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Input? input) - { - InputDescriptor = null; - InputDescriptorAction = null; - InputValue = input; - return Self; - } - - public PutTrainedModelRequestDescriptor Input(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InputDescriptor descriptor) - { - InputValue = null; - InputDescriptorAction = null; - InputDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor Input(Action configure) - { - InputValue = null; - InputDescriptor = null; - InputDescriptorAction = configure; - return Self; - } - - /// - /// - /// An object map that contains metadata about the model. - /// - /// - public PutTrainedModelRequestDescriptor Metadata(object? metadata) - { - MetadataValue = metadata; - return Self; - } - - /// - /// - /// The estimated memory usage in bytes to keep the trained model in memory. - /// This property is supported only if defer_definition_decompression is true - /// or the model definition is not supplied. - /// - /// - public PutTrainedModelRequestDescriptor ModelSizeBytes(long? modelSizeBytes) - { - ModelSizeBytesValue = modelSizeBytes; - return Self; - } - - /// - /// - /// The model type. - /// - /// - public PutTrainedModelRequestDescriptor ModelType(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? modelType) - { - ModelTypeValue = modelType; - return Self; - } - - /// - /// - /// The platform architecture (if applicable) of the trained mode. If the model - /// only works on one platform, because it is heavily optimized for a particular - /// processor architecture and OS combination, then this field specifies which. - /// The format of the string must match the platform identifiers used by Elasticsearch, - /// so one of, linux-x86_64, linux-aarch64, darwin-x86_64, darwin-aarch64, - /// or windows-x86_64. For portable models (those that work independent of processor - /// architecture or OS features), leave this field unset. - /// - /// - public PutTrainedModelRequestDescriptor PlatformArchitecture(string? platformArchitecture) - { - PlatformArchitectureValue = platformArchitecture; - return Self; - } - - /// - /// - /// Optional prefix strings applied at inference - /// - /// - public PutTrainedModelRequestDescriptor PrefixStrings(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? prefixStrings) - { - PrefixStringsDescriptor = null; - PrefixStringsDescriptorAction = null; - PrefixStringsValue = prefixStrings; - return Self; - } - - public PutTrainedModelRequestDescriptor PrefixStrings(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStringsDescriptor descriptor) - { - PrefixStringsValue = null; - PrefixStringsDescriptorAction = null; - PrefixStringsDescriptor = descriptor; - return Self; - } - - public PutTrainedModelRequestDescriptor PrefixStrings(Action configure) - { - PrefixStringsValue = null; - PrefixStringsDescriptor = null; - PrefixStringsDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of tags to organize the model. - /// - /// - public PutTrainedModelRequestDescriptor Tags(ICollection? tags) - { - TagsValue = tags; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CompressedDefinitionValue)) - { - writer.WritePropertyName("compressed_definition"); - writer.WriteStringValue(CompressedDefinitionValue); - } - - if (DefinitionDescriptor is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionDescriptor, options); - } - else if (DefinitionDescriptorAction is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DefinitionDescriptor(DefinitionDescriptorAction), options); - } - else if (DefinitionValue is not null) - { - writer.WritePropertyName("definition"); - JsonSerializer.Serialize(writer, DefinitionValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreateDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - if (InputDescriptor is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputDescriptor, options); - } - else if (InputDescriptorAction is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InputDescriptor(InputDescriptorAction), options); - } - else if (InputValue is not null) - { - writer.WritePropertyName("input"); - JsonSerializer.Serialize(writer, InputValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (ModelSizeBytesValue.HasValue) - { - writer.WritePropertyName("model_size_bytes"); - writer.WriteNumberValue(ModelSizeBytesValue.Value); - } - - if (ModelTypeValue is not null) - { - writer.WritePropertyName("model_type"); - JsonSerializer.Serialize(writer, ModelTypeValue, options); - } - - if (!string.IsNullOrEmpty(PlatformArchitectureValue)) - { - writer.WritePropertyName("platform_architecture"); - writer.WriteStringValue(PlatformArchitectureValue); - } - - if (PrefixStringsDescriptor is not null) - { - writer.WritePropertyName("prefix_strings"); - JsonSerializer.Serialize(writer, PrefixStringsDescriptor, options); - } - else if (PrefixStringsDescriptorAction is not null) - { - writer.WritePropertyName("prefix_strings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStringsDescriptor(PrefixStringsDescriptorAction), options); - } - else if (PrefixStringsValue is not null) - { - writer.WritePropertyName("prefix_strings"); - JsonSerializer.Serialize(writer, PrefixStringsValue, options); - } - - if (TagsValue is not null) - { - writer.WritePropertyName("tags"); - JsonSerializer.Serialize(writer, TagsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs deleted file mode 100644 index 93ed85a9966..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs +++ /dev/null @@ -1,161 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("compressed_definition")] - public string? CompressedDefinition { get; init; } - - /// - /// - /// Information on the creator of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("created_by")] - public string? CreatedBy { get; init; } - - /// - /// - /// The time when the trained model was created. - /// - /// - [JsonInclude, JsonPropertyName("create_time")] - public DateTimeOffset? CreateTime { get; init; } - - /// - /// - /// Any field map described in the inference configuration takes precedence. - /// - /// - [JsonInclude, JsonPropertyName("default_field_map")] - public IReadOnlyDictionary? DefaultFieldMap { get; init; } - - /// - /// - /// The free-text description of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// The estimated heap usage in bytes to keep the trained model in memory. - /// - /// - [JsonInclude, JsonPropertyName("estimated_heap_memory_usage_bytes")] - public int? EstimatedHeapMemoryUsageBytes { get; init; } - - /// - /// - /// The estimated number of operations to use the trained model. - /// - /// - [JsonInclude, JsonPropertyName("estimated_operations")] - public int? EstimatedOperations { get; init; } - - /// - /// - /// True if the full model definition is present. - /// - /// - [JsonInclude, JsonPropertyName("fully_defined")] - public bool? FullyDefined { get; init; } - - /// - /// - /// The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required. - /// - /// - [JsonInclude, JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? InferenceConfig { get; init; } - - /// - /// - /// The input field names for the model definition. - /// - /// - [JsonInclude, JsonPropertyName("input")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelConfigInput Input { get; init; } - - /// - /// - /// The license level of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("license_level")] - public string? LicenseLevel { get; init; } - [JsonInclude, JsonPropertyName("location")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelLocation? Location { get; init; } - - /// - /// - /// An object containing metadata about the trained model. For example, models created by data frame analytics contain analysis_config and input objects. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelConfigMetadata? Metadata { get; init; } - - /// - /// - /// Identifier for the trained model. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; init; } - [JsonInclude, JsonPropertyName("model_package")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPackageConfig? ModelPackage { get; init; } - [JsonInclude, JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelSizeBytes { get; init; } - - /// - /// - /// The model type - /// - /// - [JsonInclude, JsonPropertyName("model_type")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? ModelType { get; init; } - [JsonInclude, JsonPropertyName("prefix_strings")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } - - /// - /// - /// A comma delimited string of tags. A trained model can have many tags, or none. - /// - /// - [JsonInclude, JsonPropertyName("tags")] - public IReadOnlyCollection Tags { get; init; } - - /// - /// - /// The Elasticsearch version number in which the trained model was created. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs deleted file mode 100644 index 726bb60eafc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyRequest.g.cs +++ /dev/null @@ -1,168 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelVocabularyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create a trained model vocabulary. -/// This API is supported only for natural language processing (NLP) models. -/// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. -/// -/// -public sealed partial class PutTrainedModelVocabularyRequest : PlainRequest -{ - public PutTrainedModelVocabularyRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModelVocabulary; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model_vocabulary"; - - /// - /// - /// The optional model merges if required by the tokenizer. - /// - /// - [JsonInclude, JsonPropertyName("merges")] - public ICollection? Merges { get; set; } - - /// - /// - /// The optional vocabulary value scores if required by the tokenizer. - /// - /// - [JsonInclude, JsonPropertyName("scores")] - public ICollection? Scores { get; set; } - - /// - /// - /// The model vocabulary, which must not be empty. - /// - /// - [JsonInclude, JsonPropertyName("vocabulary")] - public ICollection Vocabulary { get; set; } -} - -/// -/// -/// Create a trained model vocabulary. -/// This API is supported only for natural language processing (NLP) models. -/// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. -/// -/// -public sealed partial class PutTrainedModelVocabularyRequestDescriptor : RequestDescriptor -{ - internal PutTrainedModelVocabularyRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutTrainedModelVocabularyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningPutTrainedModelVocabulary; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.put_trained_model_vocabulary"; - - public PutTrainedModelVocabularyRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - private ICollection? MergesValue { get; set; } - private ICollection? ScoresValue { get; set; } - private ICollection VocabularyValue { get; set; } - - /// - /// - /// The optional model merges if required by the tokenizer. - /// - /// - public PutTrainedModelVocabularyRequestDescriptor Merges(ICollection? merges) - { - MergesValue = merges; - return Self; - } - - /// - /// - /// The optional vocabulary value scores if required by the tokenizer. - /// - /// - public PutTrainedModelVocabularyRequestDescriptor Scores(ICollection? scores) - { - ScoresValue = scores; - return Self; - } - - /// - /// - /// The model vocabulary, which must not be empty. - /// - /// - public PutTrainedModelVocabularyRequestDescriptor Vocabulary(ICollection vocabulary) - { - VocabularyValue = vocabulary; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MergesValue is not null) - { - writer.WritePropertyName("merges"); - JsonSerializer.Serialize(writer, MergesValue, options); - } - - if (ScoresValue is not null) - { - writer.WritePropertyName("scores"); - JsonSerializer.Serialize(writer, ScoresValue, options); - } - - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs deleted file mode 100644 index aeb196b185e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/PutTrainedModelVocabularyResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class PutTrainedModelVocabularyResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs deleted file mode 100644 index aa3f166a8e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobRequest.g.cs +++ /dev/null @@ -1,133 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ResetJobRequestParameters : RequestParameters -{ - /// - /// - /// Specifies whether annotations that have been added by the - /// user should be deleted along with any auto-generated annotations when the job is - /// reset. - /// - /// - public bool? DeleteUserAnnotations { get => Q("delete_user_annotations"); set => Q("delete_user_annotations", value); } - - /// - /// - /// Should this request wait until the operation has completed before - /// returning. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Reset an anomaly detection job. -/// All model state and results are deleted. The job is ready to start over as if -/// it had just been created. -/// It is not currently possible to reset multiple jobs using wildcards or a -/// comma separated list. -/// -/// -public sealed partial class ResetJobRequest : PlainRequest -{ - public ResetJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningResetJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.reset_job"; - - /// - /// - /// Specifies whether annotations that have been added by the - /// user should be deleted along with any auto-generated annotations when the job is - /// reset. - /// - /// - [JsonIgnore] - public bool? DeleteUserAnnotations { get => Q("delete_user_annotations"); set => Q("delete_user_annotations", value); } - - /// - /// - /// Should this request wait until the operation has completed before - /// returning. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Reset an anomaly detection job. -/// All model state and results are deleted. The job is ready to start over as if -/// it had just been created. -/// It is not currently possible to reset multiple jobs using wildcards or a -/// comma separated list. -/// -/// -public sealed partial class ResetJobRequestDescriptor : RequestDescriptor -{ - internal ResetJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public ResetJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningResetJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.reset_job"; - - public ResetJobRequestDescriptor DeleteUserAnnotations(bool? deleteUserAnnotations = true) => Qs("delete_user_annotations", deleteUserAnnotations); - public ResetJobRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public ResetJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobResponse.g.cs deleted file mode 100644 index b0d56d75278..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ResetJobResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ResetJobResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs deleted file mode 100644 index facea174277..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotRequest.g.cs +++ /dev/null @@ -1,136 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class RevertModelSnapshotRequestParameters : RequestParameters -{ -} - -/// -/// -/// Revert to a snapshot. -/// The machine learning features react quickly to anomalous input, learning new -/// behaviors in data. Highly anomalous input increases the variance in the -/// models whilst the system learns whether this is a new step-change in behavior -/// or a one-off event. In the case where this anomalous input is known to be a -/// one-off, then it might be appropriate to reset the model state to a time -/// before this event. For example, you might consider reverting to a saved -/// snapshot after Black Friday or a critical system failure. -/// -/// -public sealed partial class RevertModelSnapshotRequest : PlainRequest -{ - public RevertModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningRevertModelSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.revert_model_snapshot"; - - /// - /// - /// Refer to the description for the delete_intervening_results query parameter. - /// - /// - [JsonInclude, JsonPropertyName("delete_intervening_results")] - public bool? DeleteInterveningResults { get; set; } -} - -/// -/// -/// Revert to a snapshot. -/// The machine learning features react quickly to anomalous input, learning new -/// behaviors in data. Highly anomalous input increases the variance in the -/// models whilst the system learns whether this is a new step-change in behavior -/// or a one-off event. In the case where this anomalous input is known to be a -/// one-off, then it might be appropriate to reset the model state to a time -/// before this event. For example, you might consider reverting to a saved -/// snapshot after Black Friday or a critical system failure. -/// -/// -public sealed partial class RevertModelSnapshotRequestDescriptor : RequestDescriptor -{ - internal RevertModelSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public RevertModelSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningRevertModelSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.revert_model_snapshot"; - - public RevertModelSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public RevertModelSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) - { - RouteValues.Required("snapshot_id", snapshotId); - return Self; - } - - private bool? DeleteInterveningResultsValue { get; set; } - - /// - /// - /// Refer to the description for the delete_intervening_results query parameter. - /// - /// - public RevertModelSnapshotRequestDescriptor DeleteInterveningResults(bool? deleteInterveningResults = true) - { - DeleteInterveningResultsValue = deleteInterveningResults; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeleteInterveningResultsValue.HasValue) - { - writer.WritePropertyName("delete_intervening_results"); - writer.WriteBooleanValue(DeleteInterveningResultsValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs deleted file mode 100644 index 019c156ac8b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/RevertModelSnapshotResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class RevertModelSnapshotResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("model")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelSnapshot Model { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs deleted file mode 100644 index 5e1a6f0f920..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeRequest.g.cs +++ /dev/null @@ -1,137 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class SetUpgradeModeRequestParameters : RequestParameters -{ - /// - /// - /// When true, it enables upgrade_mode which temporarily halts all job - /// and datafeed tasks and prohibits new job and datafeed tasks from - /// starting. - /// - /// - public bool? Enabled { get => Q("enabled"); set => Q("enabled", value); } - - /// - /// - /// The time to wait for the request to be completed. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Set upgrade_mode for ML indices. -/// Sets a cluster wide upgrade_mode setting that prepares machine learning -/// indices for an upgrade. -/// When upgrading your cluster, in some circumstances you must restart your -/// nodes and reindex your machine learning indices. In those circumstances, -/// there must be no machine learning jobs running. You can close the machine -/// learning jobs, do the upgrade, then open all the jobs again. Alternatively, -/// you can use this API to temporarily halt tasks associated with the jobs and -/// datafeeds and prevent new jobs from opening. You can also use this API -/// during upgrades that do not require you to reindex your machine learning -/// indices, though stopping jobs is not a requirement in that case. -/// You can see the current value for the upgrade_mode setting by using the get -/// machine learning info API. -/// -/// -public sealed partial class SetUpgradeModeRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningSetUpgradeMode; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.set_upgrade_mode"; - - /// - /// - /// When true, it enables upgrade_mode which temporarily halts all job - /// and datafeed tasks and prohibits new job and datafeed tasks from - /// starting. - /// - /// - [JsonIgnore] - public bool? Enabled { get => Q("enabled"); set => Q("enabled", value); } - - /// - /// - /// The time to wait for the request to be completed. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Set upgrade_mode for ML indices. -/// Sets a cluster wide upgrade_mode setting that prepares machine learning -/// indices for an upgrade. -/// When upgrading your cluster, in some circumstances you must restart your -/// nodes and reindex your machine learning indices. In those circumstances, -/// there must be no machine learning jobs running. You can close the machine -/// learning jobs, do the upgrade, then open all the jobs again. Alternatively, -/// you can use this API to temporarily halt tasks associated with the jobs and -/// datafeeds and prevent new jobs from opening. You can also use this API -/// during upgrades that do not require you to reindex your machine learning -/// indices, though stopping jobs is not a requirement in that case. -/// You can see the current value for the upgrade_mode setting by using the get -/// machine learning info API. -/// -/// -public sealed partial class SetUpgradeModeRequestDescriptor : RequestDescriptor -{ - internal SetUpgradeModeRequestDescriptor(Action configure) => configure.Invoke(this); - - public SetUpgradeModeRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningSetUpgradeMode; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.set_upgrade_mode"; - - public SetUpgradeModeRequestDescriptor Enabled(bool? enabled = true) => Qs("enabled", enabled); - public SetUpgradeModeRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs deleted file mode 100644 index 68adcc98b6f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/SetUpgradeModeResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class SetUpgradeModeResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index c4967363ed4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,172 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StartDataFrameAnalyticsRequestParameters : RequestParameters -{ - /// - /// - /// Controls the amount of time to wait until the data frame analytics job - /// starts. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Start a data frame analytics job. -/// A data frame analytics job can be started and stopped multiple times -/// throughout its lifecycle. -/// If the destination index does not exist, it is created automatically the -/// first time you start the data frame analytics job. The -/// index.number_of_shards and index.number_of_replicas settings for the -/// destination index are copied from the source index. If there are multiple -/// source indices, the destination index copies the highest setting values. The -/// mappings for the destination index are also copied from the source indices. -/// If there are any mapping conflicts, the job fails to start. -/// If the destination index exists, it is used as is. You can therefore set up -/// the destination index in advance with custom settings and mappings. -/// -/// -public sealed partial class StartDataFrameAnalyticsRequest : PlainRequest -{ - public StartDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.start_data_frame_analytics"; - - /// - /// - /// Controls the amount of time to wait until the data frame analytics job - /// starts. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Start a data frame analytics job. -/// A data frame analytics job can be started and stopped multiple times -/// throughout its lifecycle. -/// If the destination index does not exist, it is created automatically the -/// first time you start the data frame analytics job. The -/// index.number_of_shards and index.number_of_replicas settings for the -/// destination index are copied from the source index. If there are multiple -/// source indices, the destination index copies the highest setting values. The -/// mappings for the destination index are also copied from the source indices. -/// If there are any mapping conflicts, the job fails to start. -/// If the destination index exists, it is used as is. You can therefore set up -/// the destination index in advance with custom settings and mappings. -/// -/// -public sealed partial class StartDataFrameAnalyticsRequestDescriptor : RequestDescriptor, StartDataFrameAnalyticsRequestParameters> -{ - internal StartDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public StartDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.start_data_frame_analytics"; - - public StartDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public StartDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Start a data frame analytics job. -/// A data frame analytics job can be started and stopped multiple times -/// throughout its lifecycle. -/// If the destination index does not exist, it is created automatically the -/// first time you start the data frame analytics job. The -/// index.number_of_shards and index.number_of_replicas settings for the -/// destination index are copied from the source index. If there are multiple -/// source indices, the destination index copies the highest setting values. The -/// mappings for the destination index are also copied from the source indices. -/// If there are any mapping conflicts, the job fails to start. -/// If the destination index exists, it is used as is. You can therefore set up -/// the destination index in advance with custom settings and mappings. -/// -/// -public sealed partial class StartDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal StartDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public StartDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.start_data_frame_analytics"; - - public StartDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public StartDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 87442b0d491..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,45 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StartDataFrameAnalyticsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - - /// - /// - /// The ID of the node that the job was started on. If the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string. - /// The node ID of the node the job has been assigned to, or - /// an empty string if it hasn't been assigned to a node. In - /// serverless if the job has been assigned to run then the - /// node ID will be "serverless". - /// - /// - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs deleted file mode 100644 index b13efcbd0ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedRequest.g.cs +++ /dev/null @@ -1,200 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StartDatafeedRequestParameters : RequestParameters -{ -} - -/// -/// -/// Start datafeeds. -/// -/// -/// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped -/// multiple times throughout its lifecycle. -/// -/// -/// Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. -/// -/// -/// If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. -/// If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. -/// -/// -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or -/// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary -/// authorization headers when you created or updated the datafeed, those credentials are used instead. -/// -/// -public sealed partial class StartDatafeedRequest : PlainRequest -{ - public StartDatafeedRequest(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.start_datafeed"; - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public DateTimeOffset? End { get; set; } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public DateTimeOffset? Start { get; set; } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } -} - -/// -/// -/// Start datafeeds. -/// -/// -/// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped -/// multiple times throughout its lifecycle. -/// -/// -/// Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. -/// -/// -/// If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. -/// If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. -/// -/// -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or -/// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary -/// authorization headers when you created or updated the datafeed, those credentials are used instead. -/// -/// -public sealed partial class StartDatafeedRequestDescriptor : RequestDescriptor -{ - internal StartDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - - public StartDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.start_datafeed"; - - public StartDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - private DateTimeOffset? EndValue { get; set; } - private DateTimeOffset? StartValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// Refer to the description for the end query parameter. - /// - /// - public StartDatafeedRequestDescriptor End(DateTimeOffset? end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Refer to the description for the start query parameter. - /// - /// - public StartDatafeedRequestDescriptor Start(DateTimeOffset? start) - { - StartValue = start; - return Self; - } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - public StartDatafeedRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EndValue is not null) - { - writer.WritePropertyName("end"); - JsonSerializer.Serialize(writer, EndValue, options); - } - - if (StartValue is not null) - { - writer.WritePropertyName("start"); - JsonSerializer.Serialize(writer, StartValue, options); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs deleted file mode 100644 index 032255be81e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartDatafeedResponse.g.cs +++ /dev/null @@ -1,48 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StartDatafeedResponse : ElasticsearchResponse -{ - /// - /// - /// The ID of the node that the job was started on. In serverless this will be the "serverless". - /// If the job is allowed to open lazily and has not yet been assigned to a node, this value is an empty string. - /// - /// - [JsonInclude, JsonPropertyName("node")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Node { get; init; } - - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("started")] - public bool Started { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs deleted file mode 100644 index f84b0145fcc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs +++ /dev/null @@ -1,225 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StartTrainedModelDeploymentRequestParameters : RequestParameters -{ - /// - /// - /// The inference cache size (in memory outside the JVM heap) per node for the model. - /// The default value is the same size as the model_size_bytes. To disable the cache, - /// 0b can be provided. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CacheSize { get => Q("cache_size"); set => Q("cache_size", value); } - - /// - /// - /// The number of model allocations on each node where the model is deployed. - /// All allocations on a node share the same copy of the model in memory but use - /// a separate set of threads to evaluate the model. - /// Increasing this value generally increases the throughput. - /// If this setting is greater than the number of hardware threads - /// it will automatically be changed to a value less than the number of hardware threads. - /// - /// - public int? NumberOfAllocations { get => Q("number_of_allocations"); set => Q("number_of_allocations", value); } - - /// - /// - /// The deployment priority. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority? Priority { get => Q("priority"); set => Q("priority", value); } - - /// - /// - /// Specifies the number of inference requests that are allowed in the queue. After the number of requests exceeds - /// this value, new requests are rejected with a 429 error. - /// - /// - public int? QueueCapacity { get => Q("queue_capacity"); set => Q("queue_capacity", value); } - - /// - /// - /// Sets the number of threads used by each model allocation during inference. This generally increases - /// the inference speed. The inference process is a compute-bound process; any number - /// greater than the number of available hardware threads on the machine does not increase the - /// inference speed. If this setting is greater than the number of hardware threads - /// it will automatically be changed to a value less than the number of hardware threads. - /// - /// - public int? ThreadsPerAllocation { get => Q("threads_per_allocation"); set => Q("threads_per_allocation", value); } - - /// - /// - /// Specifies the amount of time to wait for the model to deploy. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Specifies the allocation status to wait for before returning. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAllocationState? WaitFor { get => Q("wait_for"); set => Q("wait_for", value); } -} - -/// -/// -/// Start a trained model deployment. -/// It allocates the model to every machine learning node. -/// -/// -public sealed partial class StartTrainedModelDeploymentRequest : PlainRequest -{ - public StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartTrainedModelDeployment; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.start_trained_model_deployment"; - - /// - /// - /// The inference cache size (in memory outside the JVM heap) per node for the model. - /// The default value is the same size as the model_size_bytes. To disable the cache, - /// 0b can be provided. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CacheSize { get => Q("cache_size"); set => Q("cache_size", value); } - - /// - /// - /// The number of model allocations on each node where the model is deployed. - /// All allocations on a node share the same copy of the model in memory but use - /// a separate set of threads to evaluate the model. - /// Increasing this value generally increases the throughput. - /// If this setting is greater than the number of hardware threads - /// it will automatically be changed to a value less than the number of hardware threads. - /// - /// - [JsonIgnore] - public int? NumberOfAllocations { get => Q("number_of_allocations"); set => Q("number_of_allocations", value); } - - /// - /// - /// The deployment priority. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority? Priority { get => Q("priority"); set => Q("priority", value); } - - /// - /// - /// Specifies the number of inference requests that are allowed in the queue. After the number of requests exceeds - /// this value, new requests are rejected with a 429 error. - /// - /// - [JsonIgnore] - public int? QueueCapacity { get => Q("queue_capacity"); set => Q("queue_capacity", value); } - - /// - /// - /// Sets the number of threads used by each model allocation during inference. This generally increases - /// the inference speed. The inference process is a compute-bound process; any number - /// greater than the number of available hardware threads on the machine does not increase the - /// inference speed. If this setting is greater than the number of hardware threads - /// it will automatically be changed to a value less than the number of hardware threads. - /// - /// - [JsonIgnore] - public int? ThreadsPerAllocation { get => Q("threads_per_allocation"); set => Q("threads_per_allocation", value); } - - /// - /// - /// Specifies the amount of time to wait for the model to deploy. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Specifies the allocation status to wait for before returning. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAllocationState? WaitFor { get => Q("wait_for"); set => Q("wait_for", value); } -} - -/// -/// -/// Start a trained model deployment. -/// It allocates the model to every machine learning node. -/// -/// -public sealed partial class StartTrainedModelDeploymentRequestDescriptor : RequestDescriptor -{ - internal StartTrainedModelDeploymentRequestDescriptor(Action configure) => configure.Invoke(this); - - public StartTrainedModelDeploymentRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStartTrainedModelDeployment; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.start_trained_model_deployment"; - - public StartTrainedModelDeploymentRequestDescriptor CacheSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? cacheSize) => Qs("cache_size", cacheSize); - public StartTrainedModelDeploymentRequestDescriptor NumberOfAllocations(int? numberOfAllocations) => Qs("number_of_allocations", numberOfAllocations); - public StartTrainedModelDeploymentRequestDescriptor Priority(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority? priority) => Qs("priority", priority); - public StartTrainedModelDeploymentRequestDescriptor QueueCapacity(int? queueCapacity) => Qs("queue_capacity", queueCapacity); - public StartTrainedModelDeploymentRequestDescriptor ThreadsPerAllocation(int? threadsPerAllocation) => Qs("threads_per_allocation", threadsPerAllocation); - public StartTrainedModelDeploymentRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public StartTrainedModelDeploymentRequestDescriptor WaitFor(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAllocationState? waitFor) => Qs("wait_for", waitFor); - - public StartTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs deleted file mode 100644 index 0dd0ac3a36d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StartTrainedModelDeploymentResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StartTrainedModelDeploymentResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("assignment")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelAssignment Assignment { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index ee5fbdccf66..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,227 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StopDataFrameAnalyticsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no data frame analytics - /// jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty data_frame_analytics - /// array when there are no matches and the subset of results when there are - /// partial matches. If this parameter is false, the request returns a 404 - /// status code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// If true, the data frame analytics job is stopped forcefully. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Controls the amount of time to wait until the data frame analytics job - /// stops. Defaults to 20 seconds. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Stop data frame analytics jobs. -/// A data frame analytics job can be started and stopped multiple times -/// throughout its lifecycle. -/// -/// -public sealed partial class StopDataFrameAnalyticsRequest : PlainRequest -{ - public StopDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.stop_data_frame_analytics"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no data frame analytics - /// jobs that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// The default value is true, which returns an empty data_frame_analytics - /// array when there are no matches and the subset of results when there are - /// partial matches. If this parameter is false, the request returns a 404 - /// status code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// If true, the data frame analytics job is stopped forcefully. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Controls the amount of time to wait until the data frame analytics job - /// stops. Defaults to 20 seconds. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Stop data frame analytics jobs. -/// A data frame analytics job can be started and stopped multiple times -/// throughout its lifecycle. -/// -/// -public sealed partial class StopDataFrameAnalyticsRequestDescriptor : RequestDescriptor, StopDataFrameAnalyticsRequestParameters> -{ - internal StopDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public StopDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.stop_data_frame_analytics"; - - public StopDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public StopDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public StopDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public StopDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Stop data frame analytics jobs. -/// A data frame analytics job can be started and stopped multiple times -/// throughout its lifecycle. -/// -/// -public sealed partial class StopDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal StopDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public StopDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.stop_data_frame_analytics"; - - public StopDataFrameAnalyticsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public StopDataFrameAnalyticsRequestDescriptor Force(bool? force = true) => Qs("force", force); - public StopDataFrameAnalyticsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public StopDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 1617f80e0a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StopDataFrameAnalyticsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("stopped")] - public bool Stopped { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs deleted file mode 100644 index 5e2ff84485d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedRequest.g.cs +++ /dev/null @@ -1,172 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StopDatafeedRequestParameters : RequestParameters -{ -} - -/// -/// -/// Stop datafeeds. -/// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped -/// multiple times throughout its lifecycle. -/// -/// -public sealed partial class StopDatafeedRequest : PlainRequest -{ - public StopDatafeedRequest(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.stop_datafeed"; - - /// - /// - /// Refer to the description for the allow_no_match query parameter. - /// - /// - [JsonInclude, JsonPropertyName("allow_no_match")] - public bool? AllowNoMatch { get; set; } - - /// - /// - /// Refer to the description for the force query parameter. - /// - /// - [JsonInclude, JsonPropertyName("force")] - public bool? Force { get; set; } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } -} - -/// -/// -/// Stop datafeeds. -/// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped -/// multiple times throughout its lifecycle. -/// -/// -public sealed partial class StopDatafeedRequestDescriptor : RequestDescriptor -{ - internal StopDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - - public StopDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.stop_datafeed"; - - public StopDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - private bool? AllowNoMatchValue { get; set; } - private bool? ForceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// Refer to the description for the allow_no_match query parameter. - /// - /// - public StopDatafeedRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) - { - AllowNoMatchValue = allowNoMatch; - return Self; - } - - /// - /// - /// Refer to the description for the force query parameter. - /// - /// - public StopDatafeedRequestDescriptor Force(bool? force = true) - { - ForceValue = force; - return Self; - } - - /// - /// - /// Refer to the description for the timeout query parameter. - /// - /// - public StopDatafeedRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoMatchValue.HasValue) - { - writer.WritePropertyName("allow_no_match"); - writer.WriteBooleanValue(AllowNoMatchValue.Value); - } - - if (ForceValue.HasValue) - { - writer.WritePropertyName("force"); - writer.WriteBooleanValue(ForceValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs deleted file mode 100644 index 0b7e5f25c34..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopDatafeedResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StopDatafeedResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("stopped")] - public bool Stopped { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs deleted file mode 100644 index 8caf585fe7d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentRequest.g.cs +++ /dev/null @@ -1,127 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StopTrainedModelDeploymentRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; - /// contains the _all string or no identifiers and there are no matches; or contains wildcard expressions and - /// there are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches. - /// If false, the request returns a 404 status code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you - /// restart the model deployment. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Stop a trained model deployment. -/// -/// -public sealed partial class StopTrainedModelDeploymentRequest : PlainRequest -{ - public StopTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopTrainedModelDeployment; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.stop_trained_model_deployment"; - - /// - /// - /// Specifies what to do when the request: contains wildcard expressions and there are no deployments that match; - /// contains the _all string or no identifiers and there are no matches; or contains wildcard expressions and - /// there are only partial matches. By default, it returns an empty array when there are no matches and the subset of results when there are partial matches. - /// If false, the request returns a 404 status code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Forcefully stops the deployment, even if it is used by ingest pipelines. You can't use these pipelines until you - /// restart the model deployment. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// Stop a trained model deployment. -/// -/// -public sealed partial class StopTrainedModelDeploymentRequestDescriptor : RequestDescriptor -{ - internal StopTrainedModelDeploymentRequestDescriptor(Action configure) => configure.Invoke(this); - - public StopTrainedModelDeploymentRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id modelId) : base(r => r.Required("model_id", modelId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningStopTrainedModelDeployment; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.stop_trained_model_deployment"; - - public StopTrainedModelDeploymentRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public StopTrainedModelDeploymentRequestDescriptor Force(bool? force = true) => Qs("force", force); - - public StopTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - RouteValues.Required("model_id", modelId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs deleted file mode 100644 index 76069cdce24..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/StopTrainedModelDeploymentResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class StopTrainedModelDeploymentResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("stopped")] - public bool Stopped { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs deleted file mode 100644 index 3deec915db0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsRequest.g.cs +++ /dev/null @@ -1,325 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateDataFrameAnalyticsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Update a data frame analytics job. -/// -/// -public sealed partial class UpdateDataFrameAnalyticsRequest : PlainRequest -{ - public UpdateDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_data_frame_analytics"; - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. - /// - /// - [JsonInclude, JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; set; } - - /// - /// - /// A description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - [JsonInclude, JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try - /// to create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } -} - -/// -/// -/// Update a data frame analytics job. -/// -/// -public sealed partial class UpdateDataFrameAnalyticsRequestDescriptor : RequestDescriptor, UpdateDataFrameAnalyticsRequestParameters> -{ - internal UpdateDataFrameAnalyticsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_data_frame_analytics"; - - public UpdateDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - private string? DescriptionValue { get; set; } - private int? MaxNumThreadsValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try - /// to create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Update a data frame analytics job. -/// -/// -public sealed partial class UpdateDataFrameAnalyticsRequestDescriptor : RequestDescriptor -{ - internal UpdateDataFrameAnalyticsRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateDataFrameAnalyticsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateDataFrameAnalytics; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_data_frame_analytics"; - - public UpdateDataFrameAnalyticsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private bool? AllowLazyStartValue { get; set; } - private string? DescriptionValue { get; set; } - private int? MaxNumThreadsValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - - /// - /// - /// Specifies whether this job can start when there is insufficient machine - /// learning node capacity for it to be immediately assigned to a node. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor AllowLazyStart(bool? allowLazyStart = true) - { - AllowLazyStartValue = allowLazyStart; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The maximum number of threads to be used by the analysis. Using more - /// threads may decrease the time necessary to complete the analysis at the - /// cost of using more CPU. Note that the process may use additional threads - /// for operational functionality other than the analysis itself. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are permitted for - /// analytical processing. If your elasticsearch.yml file contains an - /// xpack.ml.max_model_memory_limit setting, an error occurs when you try - /// to create data frame analytics jobs that have model_memory_limit values - /// greater than that setting. - /// - /// - public UpdateDataFrameAnalyticsRequestDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyStartValue.HasValue) - { - writer.WritePropertyName("allow_lazy_start"); - writer.WriteBooleanValue(AllowLazyStartValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs deleted file mode 100644 index 0f44712ded6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDataFrameAnalyticsResponse.g.cs +++ /dev/null @@ -1,55 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateDataFrameAnalyticsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("allow_lazy_start")] - public bool AllowLazyStart { get; init; } - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis Analysis { get; init; } - [JsonInclude, JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; init; } - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsAuthorization? Authorization { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public long CreateTime { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination Dest { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("max_num_threads")] - public int MaxNumThreads { get; init; } - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource Source { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs deleted file mode 100644 index 4a7029991d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs +++ /dev/null @@ -1,1306 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateDatafeedRequestParameters : RequestParameters -{ - /// - /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - /// - /// - /// - /// - /// all: Match any data stream or index, including hidden ones. - /// - /// - /// - /// - /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - /// - /// - /// - /// - /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both. - /// - /// - /// - /// - /// none: Wildcard patterns are not accepted. - /// - /// - /// - /// - /// open: Match open, non-hidden indices. Also matches any non-hidden data stream. - /// - /// - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, unavailable indices (missing or closed) are ignored. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } -} - -internal sealed partial class UpdateDatafeedRequestConverter : JsonConverter -{ - public override UpdateDatafeedRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new UpdateDatafeedRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - variant.ChunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - variant.DelayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - variant.Frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "indexes") - { - variant.Indices = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "indices_options") - { - variant.IndicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - variant.JobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - variant.MaxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - variant.QueryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - variant.ScrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, UpdateDatafeedRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.ChunkingConfig is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, value.ChunkingConfig, options); - } - - if (value.DelayedDataCheckConfig is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, value.DelayedDataCheckConfig, options); - } - - if (value.Frequency is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, value.Frequency, options); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.IndicesOptions is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, value.IndicesOptions, options); - } - - if (value.JobId is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, value.JobId, options); - } - - if (value.MaxEmptySearches.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(value.MaxEmptySearches.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.QueryDelay is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, value.QueryDelay, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.ScrollSize.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(value.ScrollSize.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Update a datafeed. -/// You must stop and start the datafeed for the changes to be applied. -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at -/// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, -/// those credentials are used instead. -/// -/// -[JsonConverter(typeof(UpdateDatafeedRequestConverter))] -public sealed partial class UpdateDatafeedRequest : PlainRequest -{ - public UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - public UpdateDatafeedRequest() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_datafeed"; - - /// - /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines - /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are: - /// - /// - /// - /// - /// all: Match any data stream or index, including hidden ones. - /// - /// - /// - /// - /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - /// - /// - /// - /// - /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both. - /// - /// - /// - /// - /// none: Wildcard patterns are not accepted. - /// - /// - /// - /// - /// open: Match open, non-hidden indices. Also matches any non-hidden data stream. - /// - /// - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, unavailable indices (missing or closed) are ignored. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only - /// with low cardinality data. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - - /// - /// - /// Datafeeds might search over long time periods, for several months or years. This search is split into time - /// chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of - /// these time chunks are calculated; it is an advanced configuration option. - /// - /// - [JsonInclude, JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfig { get; set; } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally - /// search over indices that have already been read in an effort to determine whether any data has subsequently been - /// added to the index. If missing data is found, it is a good indication that the query_delay is set too low and - /// the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time - /// datafeeds. - /// - /// - [JsonInclude, JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. The default value is - /// either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket - /// span. When frequency is shorter than the bucket span, interim results for the last (partial) bucket are - /// written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value - /// must be divisible by the interval of the date histogram aggregation. - /// - /// - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; set; } - - /// - /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public ICollection? Indices { get; set; } - - /// - /// - /// Specifies index expansion options that are used during search. - /// - /// - [JsonInclude, JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; set; } - [JsonInclude, JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get; set; } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period), it automatically - /// stops and closes the associated job after this many real-time searches return no documents. In other words, - /// it stops after frequency times max_empty_searches of real-time operation. If not set, a datafeed with no - /// end time that sees no data remains started until it is explicitly stopped. By default, it is not set. - /// - /// - [JsonInclude, JsonPropertyName("max_empty_searches")] - public int? MaxEmptySearches { get; set; } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an - /// Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this - /// object is passed verbatim to Elasticsearch. Note that if you change the query, the analyzed data is also - /// changed. Therefore, the time required to learn might be long and the understandability of the results is - /// unpredictable. If you want to make significant changes to the source data, it is recommended that you - /// clone the job and datafeed and make the amendments in the clone. Let both run in parallel and close one - /// when you are satisfied with the results of the job. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might - /// not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default - /// value is randomly selected between 60s and 120s. This randomness improves the query performance - /// when there are multiple jobs running on the same node. - /// - /// - [JsonInclude, JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelay { get; set; } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. - /// The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - [JsonInclude, JsonPropertyName("script_fields")] - public IDictionary? ScriptFields { get; set; } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. - /// The maximum value is the value of index.max_result_window. - /// - /// - [JsonInclude, JsonPropertyName("scroll_size")] - public int? ScrollSize { get; set; } -} - -/// -/// -/// Update a datafeed. -/// You must stop and start the datafeed for the changes to be applied. -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at -/// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, -/// those credentials are used instead. -/// -/// -public sealed partial class UpdateDatafeedRequestDescriptor : RequestDescriptor, UpdateDatafeedRequestParameters> -{ - internal UpdateDatafeedRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_datafeed"; - - public UpdateDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public UpdateDatafeedRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public UpdateDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public UpdateDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - private IDictionary> AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - private Action ChunkingConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private ICollection? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - private Action IndicesOptionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private int? MaxEmptySearchesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelayValue { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private int? ScrollSizeValue { get; set; } - - /// - /// - /// If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only - /// with low cardinality data. - /// - /// - public UpdateDatafeedRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Datafeeds might search over long time periods, for several months or years. This search is split into time - /// chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of - /// these time chunks are calculated; it is an advanced configuration option. - /// - /// - public UpdateDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public UpdateDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally - /// search over indices that have already been read in an effort to determine whether any data has subsequently been - /// added to the index. If missing data is found, it is a good indication that the query_delay is set too low and - /// the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time - /// datafeeds. - /// - /// - public UpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public UpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. The default value is - /// either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket - /// span. When frequency is shorter than the bucket span, interim results for the last (partial) bucket are - /// written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value - /// must be divisible by the interval of the date histogram aggregation. - /// - /// - public UpdateDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. - /// - /// - public UpdateDatafeedRequestDescriptor Indices(ICollection? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies index expansion options that are used during search. - /// - /// - public UpdateDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public UpdateDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public UpdateDatafeedRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period), it automatically - /// stops and closes the associated job after this many real-time searches return no documents. In other words, - /// it stops after frequency times max_empty_searches of real-time operation. If not set, a datafeed with no - /// end time that sees no data remains started until it is explicitly stopped. By default, it is not set. - /// - /// - public UpdateDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an - /// Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this - /// object is passed verbatim to Elasticsearch. Note that if you change the query, the analyzed data is also - /// changed. Therefore, the time required to learn might be long and the understandability of the results is - /// unpredictable. If you want to make significant changes to the source data, it is recommended that you - /// clone the job and datafeed and make the amendments in the clone. Let both run in parallel and close one - /// when you are satisfied with the results of the job. - /// - /// - public UpdateDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public UpdateDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might - /// not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default - /// value is randomly selected between 60s and 120s. This randomness improves the query performance - /// when there are multiple jobs running on the same node. - /// - /// - public UpdateDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public UpdateDatafeedRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. - /// The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public UpdateDatafeedRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. - /// The maximum value is the value of index.max_result_window. - /// - /// - public UpdateDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Update a datafeed. -/// You must stop and start the datafeed for the changes to be applied. -/// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at -/// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, -/// those credentials are used instead. -/// -/// -public sealed partial class UpdateDatafeedRequestDescriptor : RequestDescriptor -{ - internal UpdateDatafeedRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateDatafeedRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) : base(r => r.Required("datafeed_id", datafeedId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateDatafeed; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_datafeed"; - - public UpdateDatafeedRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public UpdateDatafeedRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public UpdateDatafeedRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - - public UpdateDatafeedRequestDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId) - { - RouteValues.Required("datafeed_id", datafeedId); - return Self; - } - - private IDictionary AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - private Action ChunkingConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private ICollection? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - private Action IndicesOptionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private int? MaxEmptySearchesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelayValue { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private int? ScrollSizeValue { get; set; } - - /// - /// - /// If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only - /// with low cardinality data. - /// - /// - public UpdateDatafeedRequestDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Datafeeds might search over long time periods, for several months or years. This search is split into time - /// chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of - /// these time chunks are calculated; it is an advanced configuration option. - /// - /// - public UpdateDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public UpdateDatafeedRequestDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally - /// search over indices that have already been read in an effort to determine whether any data has subsequently been - /// added to the index. If missing data is found, it is a good indication that the query_delay is set too low and - /// the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time - /// datafeeds. - /// - /// - public UpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public UpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. The default value is - /// either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket - /// span. When frequency is shorter than the bucket span, interim results for the last (partial) bucket are - /// written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value - /// must be divisible by the interval of the date histogram aggregation. - /// - /// - public UpdateDatafeedRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. - /// - /// - public UpdateDatafeedRequestDescriptor Indices(ICollection? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies index expansion options that are used during search. - /// - /// - public UpdateDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public UpdateDatafeedRequestDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public UpdateDatafeedRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period), it automatically - /// stops and closes the associated job after this many real-time searches return no documents. In other words, - /// it stops after frequency times max_empty_searches of real-time operation. If not set, a datafeed with no - /// end time that sees no data remains started until it is explicitly stopped. By default, it is not set. - /// - /// - public UpdateDatafeedRequestDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an - /// Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this - /// object is passed verbatim to Elasticsearch. Note that if you change the query, the analyzed data is also - /// changed. Therefore, the time required to learn might be long and the understandability of the results is - /// unpredictable. If you want to make significant changes to the source data, it is recommended that you - /// clone the job and datafeed and make the amendments in the clone. Let both run in parallel and close one - /// when you are satisfied with the results of the job. - /// - /// - public UpdateDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public UpdateDatafeedRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public UpdateDatafeedRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might - /// not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default - /// value is randomly selected between 60s and 120s. This randomness improves the query performance - /// when there are multiple jobs running on the same node. - /// - /// - public UpdateDatafeedRequestDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public UpdateDatafeedRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. - /// The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public UpdateDatafeedRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. - /// The maximum value is the value of index.max_result_window. - /// - /// - public UpdateDatafeedRequestDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs deleted file mode 100644 index dd2d54e3dd8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateDatafeedResponse.g.cs +++ /dev/null @@ -1,61 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateDatafeedResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregations")] - public IReadOnlyDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedAuthorization? Authorization { get; init; } - [JsonInclude, JsonPropertyName("chunking_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig ChunkingConfig { get; init; } - [JsonInclude, JsonPropertyName("datafeed_id")] - public string DatafeedId { get; init; } - [JsonInclude, JsonPropertyName("delayed_data_check_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; init; } - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("indices_options")] - public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("max_empty_searches")] - public int? MaxEmptySearches { get; init; } - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; init; } - [JsonInclude, JsonPropertyName("query_delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration QueryDelay { get; init; } - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IReadOnlyDictionary? RuntimeMappings { get; init; } - [JsonInclude, JsonPropertyName("script_fields")] - public IReadOnlyDictionary? ScriptFields { get; init; } - [JsonInclude, JsonPropertyName("scroll_size")] - public int ScrollSize { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs deleted file mode 100644 index fe2b4112df2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterRequest.g.cs +++ /dev/null @@ -1,170 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateFilterRequestParameters : RequestParameters -{ -} - -/// -/// -/// Update a filter. -/// Updates the description of a filter, adds items, or removes items from the list. -/// -/// -public sealed partial class UpdateFilterRequest : PlainRequest -{ - public UpdateFilterRequest(Elastic.Clients.Elasticsearch.Serverless.Id filterId) : base(r => r.Required("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateFilter; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_filter"; - - /// - /// - /// The items to add to the filter. - /// - /// - [JsonInclude, JsonPropertyName("add_items")] - public ICollection? AddItems { get; set; } - - /// - /// - /// A description for the filter. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The items to remove from the filter. - /// - /// - [JsonInclude, JsonPropertyName("remove_items")] - public ICollection? RemoveItems { get; set; } -} - -/// -/// -/// Update a filter. -/// Updates the description of a filter, adds items, or removes items from the list. -/// -/// -public sealed partial class UpdateFilterRequestDescriptor : RequestDescriptor -{ - internal UpdateFilterRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateFilterRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id filterId) : base(r => r.Required("filter_id", filterId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateFilter; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_filter"; - - public UpdateFilterRequestDescriptor FilterId(Elastic.Clients.Elasticsearch.Serverless.Id filterId) - { - RouteValues.Required("filter_id", filterId); - return Self; - } - - private ICollection? AddItemsValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? RemoveItemsValue { get; set; } - - /// - /// - /// The items to add to the filter. - /// - /// - public UpdateFilterRequestDescriptor AddItems(ICollection? addItems) - { - AddItemsValue = addItems; - return Self; - } - - /// - /// - /// A description for the filter. - /// - /// - public UpdateFilterRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The items to remove from the filter. - /// - /// - public UpdateFilterRequestDescriptor RemoveItems(ICollection? removeItems) - { - RemoveItemsValue = removeItems; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AddItemsValue is not null) - { - writer.WritePropertyName("add_items"); - JsonSerializer.Serialize(writer, AddItemsValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (RemoveItemsValue is not null) - { - writer.WritePropertyName("remove_items"); - JsonSerializer.Serialize(writer, RemoveItemsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs deleted file mode 100644 index bb37ade045d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateFilterResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateFilterResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("filter_id")] - public string FilterId { get; init; } - [JsonInclude, JsonPropertyName("items")] - public IReadOnlyCollection Items { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs deleted file mode 100644 index 4ff0ec1bb87..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobRequest.g.cs +++ /dev/null @@ -1,1122 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateJobRequestParameters : RequestParameters -{ -} - -/// -/// -/// Update an anomaly detection job. -/// Updates certain properties of an anomaly detection job. -/// -/// -public sealed partial class UpdateJobRequest : PlainRequest -{ - public UpdateJobRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_job"; - - /// - /// - /// Advanced configuration option. Specifies whether this job can open when - /// there is insufficient machine learning node capacity for it to be - /// immediately assigned to a node. If false and a machine learning node - /// with capacity to run the job cannot immediately be found, the open - /// anomaly detection jobs API returns an error. However, this is also - /// subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this - /// option is set to true, the open anomaly detection jobs API does not - /// return an error and the job waits in the opening state until sufficient - /// machine learning node capacity is available. - /// - /// - [JsonInclude, JsonPropertyName("allow_lazy_open")] - public bool? AllowLazyOpen { get; set; } - [JsonInclude, JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimit? AnalysisLimits { get; set; } - - /// - /// - /// Advanced configuration option. The time between each periodic persistence - /// of the model. - /// The default value is a randomized value between 3 to 4 hours, which - /// avoids all jobs persisting at exactly the same time. The smallest allowed - /// value is 1 hour. - /// For very large models (several GB), persistence could take 10-20 minutes, - /// so do not set the value too low. - /// If the job is open when you make the update, you must stop the datafeed, - /// close the job, then reopen the job and restart the datafeed for the - /// changes to take effect. - /// - /// - [JsonInclude, JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistInterval { get; set; } - [JsonInclude, JsonPropertyName("categorization_filters")] - public ICollection? CategorizationFilters { get; set; } - - /// - /// - /// Advanced configuration option. Contains custom meta data about the job. - /// For example, it can contain custom URL information as shown in Adding - /// custom URLs to machine learning results. - /// - /// - [JsonInclude, JsonPropertyName("custom_settings")] - public IDictionary? CustomSettings { get; set; } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old - /// model snapshots for this job. It specifies a period of time (in days) - /// after which only the first snapshot per day is retained. This period is - /// relative to the timestamp of the most recent snapshot for this job. Valid - /// values range from 0 to model_snapshot_retention_days. For jobs created - /// before version 7.8.0, the default value matches - /// model_snapshot_retention_days. - /// - /// - [JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; set; } - - /// - /// - /// A description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// An array of detector update objects. - /// - /// - [JsonInclude, JsonPropertyName("detectors")] - public ICollection? Detectors { get; set; } - - /// - /// - /// A list of job groups. A job can belong to no groups or many. - /// - /// - [JsonInclude, JsonPropertyName("groups")] - public ICollection? Groups { get; set; } - [JsonInclude, JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; set; } - [JsonInclude, JsonPropertyName("model_prune_window")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindow { get; set; } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old - /// model snapshots for this job. It specifies the maximum period of time (in - /// days) that snapshots are retained. This period is relative to the - /// timestamp of the most recent snapshot for this job. - /// - /// - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - [JsonInclude, JsonPropertyName("per_partition_categorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorization { get; set; } - - /// - /// - /// Advanced configuration option. The period over which adjustments to the - /// score are applied, as new data is seen. - /// - /// - [JsonInclude, JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; set; } - - /// - /// - /// Advanced configuration option. The period of time (in days) that results - /// are retained. Age is calculated relative to the timestamp of the latest - /// bucket result. If this property has a non-null value, once per day at - /// 00:30 (server time), results that are the specified number of days older - /// than the latest bucket result are deleted from Elasticsearch. The default - /// value is null, which means all results are retained. - /// - /// - [JsonInclude, JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; set; } -} - -/// -/// -/// Update an anomaly detection job. -/// Updates certain properties of an anomaly detection job. -/// -/// -public sealed partial class UpdateJobRequestDescriptor : RequestDescriptor, UpdateJobRequestParameters> -{ - internal UpdateJobRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_job"; - - public UpdateJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private bool? AllowLazyOpenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimit? AnalysisLimitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimitDescriptor AnalysisLimitsDescriptor { get; set; } - private Action AnalysisLimitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistIntervalValue { get; set; } - private ICollection? CategorizationFiltersValue { get; set; } - private IDictionary? CustomSettingsValue { get; set; } - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? DetectorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor DetectorsDescriptor { get; set; } - private Action> DetectorsDescriptorAction { get; set; } - private Action>[] DetectorsDescriptorActions { get; set; } - private ICollection? GroupsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - private Action> ModelPlotConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindowValue { get; set; } - private long? ModelSnapshotRetentionDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - private Action PerPartitionCategorizationDescriptorAction { get; set; } - private long? RenormalizationWindowDaysValue { get; set; } - private long? ResultsRetentionDaysValue { get; set; } - - /// - /// - /// Advanced configuration option. Specifies whether this job can open when - /// there is insufficient machine learning node capacity for it to be - /// immediately assigned to a node. If false and a machine learning node - /// with capacity to run the job cannot immediately be found, the open - /// anomaly detection jobs API returns an error. However, this is also - /// subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this - /// option is set to true, the open anomaly detection jobs API does not - /// return an error and the job waits in the opening state until sufficient - /// machine learning node capacity is available. - /// - /// - public UpdateJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public UpdateJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimit? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public UpdateJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimitDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. The time between each periodic persistence - /// of the model. - /// The default value is a randomized value between 3 to 4 hours, which - /// avoids all jobs persisting at exactly the same time. The smallest allowed - /// value is 1 hour. - /// For very large models (several GB), persistence could take 10-20 minutes, - /// so do not set the value too low. - /// If the job is open when you make the update, you must stop the datafeed, - /// close the job, then reopen the job and restart the datafeed for the - /// changes to take effect. - /// - /// - public UpdateJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public UpdateJobRequestDescriptor CategorizationFilters(ICollection? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - /// - /// - /// Advanced configuration option. Contains custom meta data about the job. - /// For example, it can contain custom URL information as shown in Adding - /// custom URLs to machine learning results. - /// - /// - public UpdateJobRequestDescriptor CustomSettings(Func, FluentDictionary> selector) - { - CustomSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old - /// model snapshots for this job. It specifies a period of time (in days) - /// after which only the first snapshot per day is retained. This period is - /// relative to the timestamp of the most recent snapshot for this job. Valid - /// values range from 0 to model_snapshot_retention_days. For jobs created - /// before version 7.8.0, the default value matches - /// model_snapshot_retention_days. - /// - /// - public UpdateJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public UpdateJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// An array of detector update objects. - /// - /// - public UpdateJobRequestDescriptor Detectors(ICollection? detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public UpdateJobRequestDescriptor Detectors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor Detectors(Action> configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public UpdateJobRequestDescriptor Detectors(params Action>[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of job groups. A job can belong to no groups or many. - /// - /// - public UpdateJobRequestDescriptor Groups(ICollection? groups) - { - GroupsValue = groups; - return Self; - } - - public UpdateJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public UpdateJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor ModelPlotConfig(Action> configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public UpdateJobRequestDescriptor ModelPruneWindow(Elastic.Clients.Elasticsearch.Serverless.Duration? modelPruneWindow) - { - ModelPruneWindowValue = modelPruneWindow; - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old - /// model snapshots for this job. It specifies the maximum period of time (in - /// days) that snapshots are retained. This period is relative to the - /// timestamp of the most recent snapshot for this job. - /// - /// - public UpdateJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - public UpdateJobRequestDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public UpdateJobRequestDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. The period over which adjustments to the - /// score are applied, as new data is seen. - /// - /// - public UpdateJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - /// - /// - /// Advanced configuration option. The period of time (in days) that results - /// are retained. Age is calculated relative to the timestamp of the latest - /// bucket result. If this property has a non-null value, once per day at - /// 00:30 (server time), results that are the specified number of days older - /// than the latest bucket result are deleted from Elasticsearch. The default - /// value is null, which means all results are retained. - /// - /// - public UpdateJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimitDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DetectorsValue is not null) - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (ModelPruneWindowValue is not null) - { - writer.WritePropertyName("model_prune_window"); - JsonSerializer.Serialize(writer, ModelPruneWindowValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Update an anomaly detection job. -/// Updates certain properties of an anomaly detection job. -/// -/// -public sealed partial class UpdateJobRequestDescriptor : RequestDescriptor -{ - internal UpdateJobRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateJobRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId) : base(r => r.Required("job_id", jobId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateJob; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_job"; - - public UpdateJobRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - private bool? AllowLazyOpenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimit? AnalysisLimitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimitDescriptor AnalysisLimitsDescriptor { get; set; } - private Action AnalysisLimitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistIntervalValue { get; set; } - private ICollection? CategorizationFiltersValue { get; set; } - private IDictionary? CustomSettingsValue { get; set; } - private long? DailyModelSnapshotRetentionAfterDaysValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? DetectorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor DetectorsDescriptor { get; set; } - private Action DetectorsDescriptorAction { get; set; } - private Action[] DetectorsDescriptorActions { get; set; } - private ICollection? GroupsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor ModelPlotConfigDescriptor { get; set; } - private Action ModelPlotConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindowValue { get; set; } - private long? ModelSnapshotRetentionDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - private Action PerPartitionCategorizationDescriptorAction { get; set; } - private long? RenormalizationWindowDaysValue { get; set; } - private long? ResultsRetentionDaysValue { get; set; } - - /// - /// - /// Advanced configuration option. Specifies whether this job can open when - /// there is insufficient machine learning node capacity for it to be - /// immediately assigned to a node. If false and a machine learning node - /// with capacity to run the job cannot immediately be found, the open - /// anomaly detection jobs API returns an error. However, this is also - /// subject to the cluster-wide xpack.ml.max_lazy_ml_nodes setting. If this - /// option is set to true, the open anomaly detection jobs API does not - /// return an error and the job waits in the opening state until sufficient - /// machine learning node capacity is available. - /// - /// - public UpdateJobRequestDescriptor AllowLazyOpen(bool? allowLazyOpen = true) - { - AllowLazyOpenValue = allowLazyOpen; - return Self; - } - - public UpdateJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimit? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public UpdateJobRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimitDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. The time between each periodic persistence - /// of the model. - /// The default value is a randomized value between 3 to 4 hours, which - /// avoids all jobs persisting at exactly the same time. The smallest allowed - /// value is 1 hour. - /// For very large models (several GB), persistence could take 10-20 minutes, - /// so do not set the value too low. - /// If the job is open when you make the update, you must stop the datafeed, - /// close the job, then reopen the job and restart the datafeed for the - /// changes to take effect. - /// - /// - public UpdateJobRequestDescriptor BackgroundPersistInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? backgroundPersistInterval) - { - BackgroundPersistIntervalValue = backgroundPersistInterval; - return Self; - } - - public UpdateJobRequestDescriptor CategorizationFilters(ICollection? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - /// - /// - /// Advanced configuration option. Contains custom meta data about the job. - /// For example, it can contain custom URL information as shown in Adding - /// custom URLs to machine learning results. - /// - /// - public UpdateJobRequestDescriptor CustomSettings(Func, FluentDictionary> selector) - { - CustomSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old - /// model snapshots for this job. It specifies a period of time (in days) - /// after which only the first snapshot per day is retained. This period is - /// relative to the timestamp of the most recent snapshot for this job. Valid - /// values range from 0 to model_snapshot_retention_days. For jobs created - /// before version 7.8.0, the default value matches - /// model_snapshot_retention_days. - /// - /// - public UpdateJobRequestDescriptor DailyModelSnapshotRetentionAfterDays(long? dailyModelSnapshotRetentionAfterDays) - { - DailyModelSnapshotRetentionAfterDaysValue = dailyModelSnapshotRetentionAfterDays; - return Self; - } - - /// - /// - /// A description of the job. - /// - /// - public UpdateJobRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// An array of detector update objects. - /// - /// - public UpdateJobRequestDescriptor Detectors(ICollection? detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public UpdateJobRequestDescriptor Detectors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor Detectors(Action configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public UpdateJobRequestDescriptor Detectors(params Action[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of job groups. A job can belong to no groups or many. - /// - /// - public UpdateJobRequestDescriptor Groups(ICollection? groups) - { - GroupsValue = groups; - return Self; - } - - public UpdateJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? modelPlotConfig) - { - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigValue = modelPlotConfig; - return Self; - } - - public UpdateJobRequestDescriptor ModelPlotConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor descriptor) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptorAction = null; - ModelPlotConfigDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor ModelPlotConfig(Action configure) - { - ModelPlotConfigValue = null; - ModelPlotConfigDescriptor = null; - ModelPlotConfigDescriptorAction = configure; - return Self; - } - - public UpdateJobRequestDescriptor ModelPruneWindow(Elastic.Clients.Elasticsearch.Serverless.Duration? modelPruneWindow) - { - ModelPruneWindowValue = modelPruneWindow; - return Self; - } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old - /// model snapshots for this job. It specifies the maximum period of time (in - /// days) that snapshots are retained. This period is relative to the - /// timestamp of the most recent snapshot for this job. - /// - /// - public UpdateJobRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - public UpdateJobRequestDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public UpdateJobRequestDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public UpdateJobRequestDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. The period over which adjustments to the - /// score are applied, as new data is seen. - /// - /// - public UpdateJobRequestDescriptor RenormalizationWindowDays(long? renormalizationWindowDays) - { - RenormalizationWindowDaysValue = renormalizationWindowDays; - return Self; - } - - /// - /// - /// Advanced configuration option. The period of time (in days) that results - /// are retained. Age is calculated relative to the timestamp of the latest - /// bucket result. If this property has a non-null value, once per day at - /// 00:30 (server time), results that are the specified number of days older - /// than the latest bucket result are deleted from Elasticsearch. The default - /// value is null, which means all results are retained. - /// - /// - public UpdateJobRequestDescriptor ResultsRetentionDays(long? resultsRetentionDays) - { - ResultsRetentionDaysValue = resultsRetentionDays; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLazyOpenValue.HasValue) - { - writer.WritePropertyName("allow_lazy_open"); - writer.WriteBooleanValue(AllowLazyOpenValue.Value); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisMemoryLimitDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (BackgroundPersistIntervalValue is not null) - { - writer.WritePropertyName("background_persist_interval"); - JsonSerializer.Serialize(writer, BackgroundPersistIntervalValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (CustomSettingsValue is not null) - { - writer.WritePropertyName("custom_settings"); - JsonSerializer.Serialize(writer, CustomSettingsValue, options); - } - - if (DailyModelSnapshotRetentionAfterDaysValue.HasValue) - { - writer.WritePropertyName("daily_model_snapshot_retention_after_days"); - writer.WriteNumberValue(DailyModelSnapshotRetentionAfterDaysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorUpdateDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DetectorsValue is not null) - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - if (GroupsValue is not null) - { - writer.WritePropertyName("groups"); - JsonSerializer.Serialize(writer, GroupsValue, options); - } - - if (ModelPlotConfigDescriptor is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigDescriptor, options); - } - else if (ModelPlotConfigDescriptorAction is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor(ModelPlotConfigDescriptorAction), options); - } - else if (ModelPlotConfigValue is not null) - { - writer.WritePropertyName("model_plot_config"); - JsonSerializer.Serialize(writer, ModelPlotConfigValue, options); - } - - if (ModelPruneWindowValue is not null) - { - writer.WritePropertyName("model_prune_window"); - JsonSerializer.Serialize(writer, ModelPruneWindowValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (RenormalizationWindowDaysValue.HasValue) - { - writer.WritePropertyName("renormalization_window_days"); - writer.WriteNumberValue(RenormalizationWindowDaysValue.Value); - } - - if (ResultsRetentionDaysValue.HasValue) - { - writer.WritePropertyName("results_retention_days"); - writer.WriteNumberValue(ResultsRetentionDaysValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs deleted file mode 100644 index 3ed5d32ed5e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateJobResponse.g.cs +++ /dev/null @@ -1,73 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateJobResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("allow_lazy_open")] - public bool AllowLazyOpen { get; init; } - [JsonInclude, JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigRead AnalysisConfig { get; init; } - [JsonInclude, JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits AnalysisLimits { get; init; } - [JsonInclude, JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistInterval { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public long CreateTime { get; init; } - [JsonInclude, JsonPropertyName("custom_settings")] - public IReadOnlyDictionary? CustomSettings { get; init; } - [JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long DailyModelSnapshotRetentionAfterDays { get; init; } - [JsonInclude, JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescription { get; init; } - [JsonInclude, JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Datafeed? DatafeedConfig { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("finished_time")] - public long? FinishedTime { get; init; } - [JsonInclude, JsonPropertyName("groups")] - public IReadOnlyCollection? Groups { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("job_type")] - public string JobType { get; init; } - [JsonInclude, JsonPropertyName("job_version")] - public string JobVersion { get; init; } - [JsonInclude, JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_id")] - public string? ModelSnapshotId { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public long ModelSnapshotRetentionDays { get; init; } - [JsonInclude, JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; init; } - [JsonInclude, JsonPropertyName("results_index_name")] - public string ResultsIndexName { get; init; } - [JsonInclude, JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs deleted file mode 100644 index 482d98fbf97..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotRequest.g.cs +++ /dev/null @@ -1,154 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateModelSnapshotRequestParameters : RequestParameters -{ -} - -/// -/// -/// Update a snapshot. -/// Updates certain properties of a snapshot. -/// -/// -public sealed partial class UpdateModelSnapshotRequest : PlainRequest -{ - public UpdateModelSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateModelSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_model_snapshot"; - - /// - /// - /// A description of the model snapshot. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// If true, this snapshot will not be deleted during automatic cleanup of - /// snapshots older than model_snapshot_retention_days. However, this - /// snapshot will be deleted when the job is deleted. - /// - /// - [JsonInclude, JsonPropertyName("retain")] - public bool? Retain { get; set; } -} - -/// -/// -/// Update a snapshot. -/// Updates certain properties of a snapshot. -/// -/// -public sealed partial class UpdateModelSnapshotRequestDescriptor : RequestDescriptor -{ - internal UpdateModelSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateModelSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpdateModelSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.update_model_snapshot"; - - public UpdateModelSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public UpdateModelSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) - { - RouteValues.Required("snapshot_id", snapshotId); - return Self; - } - - private string? DescriptionValue { get; set; } - private bool? RetainValue { get; set; } - - /// - /// - /// A description of the model snapshot. - /// - /// - public UpdateModelSnapshotRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// If true, this snapshot will not be deleted during automatic cleanup of - /// snapshots older than model_snapshot_retention_days. However, this - /// snapshot will be deleted when the job is deleted. - /// - /// - public UpdateModelSnapshotRequestDescriptor Retain(bool? retain = true) - { - RetainValue = retain; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (RetainValue.HasValue) - { - writer.WritePropertyName("retain"); - writer.WriteBooleanValue(RetainValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs deleted file mode 100644 index b9b8e2ac13c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpdateModelSnapshotResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpdateModelSnapshotResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } - [JsonInclude, JsonPropertyName("model")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelSnapshot Model { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs deleted file mode 100644 index 18b35ba5b71..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs +++ /dev/null @@ -1,145 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpgradeJobSnapshotRequestParameters : RequestParameters -{ - /// - /// - /// Controls the time to wait for the request to complete. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// When true, the API won’t respond until the upgrade is complete. - /// Otherwise, it responds as soon as the upgrade task is assigned to a node. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Upgrade a snapshot. -/// Upgrades an anomaly detection model snapshot to the latest major version. -/// Over time, older snapshot formats are deprecated and removed. Anomaly -/// detection jobs support only snapshots that are from the current or previous -/// major version. -/// This API provides a means to upgrade a snapshot to the current major version. -/// This aids in preparing the cluster for an upgrade to the next major version. -/// Only one snapshot per anomaly detection job can be upgraded at a time and the -/// upgraded snapshot cannot be the current snapshot of the anomaly detection -/// job. -/// -/// -public sealed partial class UpgradeJobSnapshotRequest : PlainRequest -{ - public UpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpgradeJobSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.upgrade_job_snapshot"; - - /// - /// - /// Controls the time to wait for the request to complete. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// When true, the API won’t respond until the upgrade is complete. - /// Otherwise, it responds as soon as the upgrade task is assigned to a node. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Upgrade a snapshot. -/// Upgrades an anomaly detection model snapshot to the latest major version. -/// Over time, older snapshot formats are deprecated and removed. Anomaly -/// detection jobs support only snapshots that are from the current or previous -/// major version. -/// This API provides a means to upgrade a snapshot to the current major version. -/// This aids in preparing the cluster for an upgrade to the next major version. -/// Only one snapshot per anomaly detection job can be upgraded at a time and the -/// upgraded snapshot cannot be the current snapshot of the anomaly detection -/// job. -/// -/// -public sealed partial class UpgradeJobSnapshotRequestDescriptor : RequestDescriptor -{ - internal UpgradeJobSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpgradeJobSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) : base(r => r.Required("job_id", jobId).Required("snapshot_id", snapshotId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningUpgradeJobSnapshot; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ml.upgrade_job_snapshot"; - - public UpgradeJobSnapshotRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public UpgradeJobSnapshotRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public UpgradeJobSnapshotRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id jobId) - { - RouteValues.Required("job_id", jobId); - return Self; - } - - public UpgradeJobSnapshotRequestDescriptor SnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id snapshotId) - { - RouteValues.Required("snapshot_id", snapshotId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs deleted file mode 100644 index 0b0d55c900d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/UpgradeJobSnapshotResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class UpgradeJobSnapshotResponse : ElasticsearchResponse -{ - /// - /// - /// When true, this means the task is complete. When false, it is still running. - /// - /// - [JsonInclude, JsonPropertyName("completed")] - public bool Completed { get; init; } - - /// - /// - /// The ID of the node that the upgrade task was started on if it is still running. In serverless this will be the "serverless". - /// - /// - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs deleted file mode 100644 index f911314146a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorRequest.g.cs +++ /dev/null @@ -1,163 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ValidateDetectorRequestParameters : RequestParameters -{ -} - -/// -/// -/// Validate an anomaly detection job. -/// -/// -public sealed partial class ValidateDetectorRequest : PlainRequest, ISelfSerializable -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningValidateDetector; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.validate_detector"; - - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector Detector { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Detector, options); - } -} - -/// -/// -/// Validate an anomaly detection job. -/// -/// -public sealed partial class ValidateDetectorRequestDescriptor : RequestDescriptor, ValidateDetectorRequestParameters> -{ - internal ValidateDetectorRequestDescriptor(Action> configure) => configure.Invoke(this); - public ValidateDetectorRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector) => DetectorValue = detector; - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningValidateDetector; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.validate_detector"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector DetectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor DetectorDescriptor { get; set; } - private Action> DetectorDescriptorAction { get; set; } - - public ValidateDetectorRequestDescriptor Detector(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector) - { - DetectorDescriptor = null; - DetectorDescriptorAction = null; - DetectorValue = detector; - return Self; - } - - public ValidateDetectorRequestDescriptor Detector(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor descriptor) - { - DetectorValue = null; - DetectorDescriptorAction = null; - DetectorDescriptor = descriptor; - return Self; - } - - public ValidateDetectorRequestDescriptor Detector(Action> configure) - { - DetectorValue = null; - DetectorDescriptor = null; - DetectorDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, DetectorValue, options); - } -} - -/// -/// -/// Validate an anomaly detection job. -/// -/// -public sealed partial class ValidateDetectorRequestDescriptor : RequestDescriptor -{ - internal ValidateDetectorRequestDescriptor(Action configure) => configure.Invoke(this); - public ValidateDetectorRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector) => DetectorValue = detector; - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningValidateDetector; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.validate_detector"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector DetectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor DetectorDescriptor { get; set; } - private Action DetectorDescriptorAction { get; set; } - - public ValidateDetectorRequestDescriptor Detector(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector) - { - DetectorDescriptor = null; - DetectorDescriptorAction = null; - DetectorValue = detector; - return Self; - } - - public ValidateDetectorRequestDescriptor Detector(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor descriptor) - { - DetectorValue = null; - DetectorDescriptorAction = null; - DetectorDescriptor = descriptor; - return Self; - } - - public ValidateDetectorRequestDescriptor Detector(Action configure) - { - DetectorValue = null; - DetectorDescriptor = null; - DetectorDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, DetectorValue, options); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs deleted file mode 100644 index 9b25cee80ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateDetectorResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ValidateDetectorResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs deleted file mode 100644 index 74f7c612d62..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateRequest.g.cs +++ /dev/null @@ -1,602 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ValidateRequestParameters : RequestParameters -{ -} - -/// -/// -/// Validates an anomaly detection job. -/// -/// -public sealed partial class ValidateRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningValidate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.validate"; - - [JsonInclude, JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? AnalysisConfig { get; set; } - [JsonInclude, JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimits { get; set; } - [JsonInclude, JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription? DataDescription { get; set; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - [JsonInclude, JsonPropertyName("job_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get; set; } - [JsonInclude, JsonPropertyName("model_plot")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlot { get; set; } - [JsonInclude, JsonPropertyName("model_snapshot_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? ModelSnapshotId { get; set; } - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public long? ModelSnapshotRetentionDays { get; set; } - [JsonInclude, JsonPropertyName("results_index_name")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? ResultsIndexName { get; set; } -} - -/// -/// -/// Validates an anomaly detection job. -/// -/// -public sealed partial class ValidateRequestDescriptor : RequestDescriptor, ValidateRequestParameters> -{ - internal ValidateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ValidateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningValidate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.validate"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? AnalysisConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - private Action> AnalysisConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - private Action AnalysisLimitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription? DataDescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - private Action> DataDescriptionDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor ModelPlotDescriptor { get; set; } - private Action> ModelPlotDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? ModelSnapshotIdValue { get; set; } - private long? ModelSnapshotRetentionDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? ResultsIndexNameValue { get; set; } - - public ValidateRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public ValidateRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor AnalysisConfig(Action> configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public ValidateRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription? dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public ValidateRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor DataDescription(Action> configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public ValidateRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public ValidateRequestDescriptor ModelPlot(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? modelPlot) - { - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = null; - ModelPlotValue = modelPlot; - return Self; - } - - public ValidateRequestDescriptor ModelPlot(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor descriptor) - { - ModelPlotValue = null; - ModelPlotDescriptorAction = null; - ModelPlotDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor ModelPlot(Action> configure) - { - ModelPlotValue = null; - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor ModelSnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id? modelSnapshotId) - { - ModelSnapshotIdValue = modelSnapshotId; - return Self; - } - - public ValidateRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public ValidateRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.Serverless.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else if (DataDescriptionValue is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (ModelPlotDescriptor is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotDescriptor, options); - } - else if (ModelPlotDescriptorAction is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor(ModelPlotDescriptorAction), options); - } - else if (ModelPlotValue is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotValue, options); - } - - if (ModelSnapshotIdValue is not null) - { - writer.WritePropertyName("model_snapshot_id"); - JsonSerializer.Serialize(writer, ModelSnapshotIdValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Validates an anomaly detection job. -/// -/// -public sealed partial class ValidateRequestDescriptor : RequestDescriptor -{ - internal ValidateRequestDescriptor(Action configure) => configure.Invoke(this); - - public ValidateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.MachineLearningValidate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "ml.validate"; - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? AnalysisConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor AnalysisConfigDescriptor { get; set; } - private Action AnalysisConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor AnalysisLimitsDescriptor { get; set; } - private Action AnalysisLimitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription? DataDescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor DataDescriptionDescriptor { get; set; } - private Action DataDescriptionDescriptorAction { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor ModelPlotDescriptor { get; set; } - private Action ModelPlotDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? ModelSnapshotIdValue { get; set; } - private long? ModelSnapshotRetentionDaysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? ResultsIndexNameValue { get; set; } - - public ValidateRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig? analysisConfig) - { - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigValue = analysisConfig; - return Self; - } - - public ValidateRequestDescriptor AnalysisConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor descriptor) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptorAction = null; - AnalysisConfigDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor AnalysisConfig(Action configure) - { - AnalysisConfigValue = null; - AnalysisConfigDescriptor = null; - AnalysisConfigDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? analysisLimits) - { - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsValue = analysisLimits; - return Self; - } - - public ValidateRequestDescriptor AnalysisLimits(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor descriptor) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptorAction = null; - AnalysisLimitsDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor AnalysisLimits(Action configure) - { - AnalysisLimitsValue = null; - AnalysisLimitsDescriptor = null; - AnalysisLimitsDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription? dataDescription) - { - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = null; - DataDescriptionValue = dataDescription; - return Self; - } - - public ValidateRequestDescriptor DataDescription(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor descriptor) - { - DataDescriptionValue = null; - DataDescriptionDescriptorAction = null; - DataDescriptionDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor DataDescription(Action configure) - { - DataDescriptionValue = null; - DataDescriptionDescriptor = null; - DataDescriptionDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - public ValidateRequestDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - public ValidateRequestDescriptor ModelPlot(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? modelPlot) - { - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = null; - ModelPlotValue = modelPlot; - return Self; - } - - public ValidateRequestDescriptor ModelPlot(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor descriptor) - { - ModelPlotValue = null; - ModelPlotDescriptorAction = null; - ModelPlotDescriptor = descriptor; - return Self; - } - - public ValidateRequestDescriptor ModelPlot(Action configure) - { - ModelPlotValue = null; - ModelPlotDescriptor = null; - ModelPlotDescriptorAction = configure; - return Self; - } - - public ValidateRequestDescriptor ModelSnapshotId(Elastic.Clients.Elasticsearch.Serverless.Id? modelSnapshotId) - { - ModelSnapshotIdValue = modelSnapshotId; - return Self; - } - - public ValidateRequestDescriptor ModelSnapshotRetentionDays(long? modelSnapshotRetentionDays) - { - ModelSnapshotRetentionDaysValue = modelSnapshotRetentionDays; - return Self; - } - - public ValidateRequestDescriptor ResultsIndexName(Elastic.Clients.Elasticsearch.Serverless.IndexName? resultsIndexName) - { - ResultsIndexNameValue = resultsIndexName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisConfigDescriptor is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigDescriptor, options); - } - else if (AnalysisConfigDescriptorAction is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfigDescriptor(AnalysisConfigDescriptorAction), options); - } - else if (AnalysisConfigValue is not null) - { - writer.WritePropertyName("analysis_config"); - JsonSerializer.Serialize(writer, AnalysisConfigValue, options); - } - - if (AnalysisLimitsDescriptor is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsDescriptor, options); - } - else if (AnalysisLimitsDescriptorAction is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimitsDescriptor(AnalysisLimitsDescriptorAction), options); - } - else if (AnalysisLimitsValue is not null) - { - writer.WritePropertyName("analysis_limits"); - JsonSerializer.Serialize(writer, AnalysisLimitsValue, options); - } - - if (DataDescriptionDescriptor is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionDescriptor, options); - } - else if (DataDescriptionDescriptorAction is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescriptionDescriptor(DataDescriptionDescriptorAction), options); - } - else if (DataDescriptionValue is not null) - { - writer.WritePropertyName("data_description"); - JsonSerializer.Serialize(writer, DataDescriptionValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (ModelPlotDescriptor is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotDescriptor, options); - } - else if (ModelPlotDescriptorAction is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfigDescriptor(ModelPlotDescriptorAction), options); - } - else if (ModelPlotValue is not null) - { - writer.WritePropertyName("model_plot"); - JsonSerializer.Serialize(writer, ModelPlotValue, options); - } - - if (ModelSnapshotIdValue is not null) - { - writer.WritePropertyName("model_snapshot_id"); - JsonSerializer.Serialize(writer, ModelSnapshotIdValue, options); - } - - if (ModelSnapshotRetentionDaysValue.HasValue) - { - writer.WritePropertyName("model_snapshot_retention_days"); - writer.WriteNumberValue(ModelSnapshotRetentionDaysValue.Value); - } - - if (ResultsIndexNameValue is not null) - { - writer.WritePropertyName("results_index_name"); - JsonSerializer.Serialize(writer, ResultsIndexNameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateResponse.g.cs deleted file mode 100644 index 338fd739327..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MachineLearning/ValidateResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public sealed partial class ValidateResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs deleted file mode 100644 index e9954b360ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetRequest.g.cs +++ /dev/null @@ -1,499 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 MultiGetRequestParameters : RequestParameters -{ - /// - /// - /// Specifies the node or shard the operation should be performed on. Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, the request refreshes relevant shards before retrieving documents. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the _source_excludes query parameter. - /// If the _source parameter is false, this parameter is ignored. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// If true, retrieves the document fields stored in the index rather than the document _source. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } -} - -/// -/// -/// Get multiple documents. -/// -/// -/// Get multiple JSON documents by ID from one or more indices. -/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. -/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. -/// -/// -public sealed partial class MultiGetRequest : PlainRequest -{ - public MultiGetRequest() - { - } - - public MultiGetRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "mget"; - - /// - /// - /// Specifies the node or shard the operation should be performed on. Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// If true, the request refreshes relevant shards before retrieving documents. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// True or false to return the _source field or not, or a list of fields to return. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// If this parameter is specified, only these source fields are returned. You can exclude fields from this subset using the _source_excludes query parameter. - /// If the _source parameter is false, this parameter is ignored. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// If true, retrieves the document fields stored in the index rather than the document _source. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } - - /// - /// - /// The documents you want to retrieve. Required if no index is specified in the request URI. - /// - /// - [JsonInclude, JsonPropertyName("docs")] - public ICollection? Docs { get; set; } - - /// - /// - /// The IDs of the documents you want to retrieve. Allowed when the index is specified in the request URI. - /// - /// - [JsonInclude, JsonPropertyName("ids")] - public Elastic.Clients.Elasticsearch.Serverless.Ids? Ids { get; set; } -} - -/// -/// -/// Get multiple documents. -/// -/// -/// Get multiple JSON documents by ID from one or more indices. -/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. -/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. -/// -/// -public sealed partial class MultiGetRequestDescriptor : RequestDescriptor, MultiGetRequestParameters> -{ - internal MultiGetRequestDescriptor(Action> configure) => configure.Invoke(this); - - public MultiGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public MultiGetRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "mget"; - - public MultiGetRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public MultiGetRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public MultiGetRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public MultiGetRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public MultiGetRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public MultiGetRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public MultiGetRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public MultiGetRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - - public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private ICollection? DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor DocsDescriptor { get; set; } - private Action> DocsDescriptorAction { get; set; } - private Action>[] DocsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ids? IdsValue { get; set; } - - /// - /// - /// The documents you want to retrieve. Required if no index is specified in the request URI. - /// - /// - public MultiGetRequestDescriptor Docs(ICollection? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public MultiGetRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public MultiGetRequestDescriptor Docs(Action> configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public MultiGetRequestDescriptor Docs(params Action>[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The IDs of the documents you want to retrieve. Allowed when the index is specified in the request URI. - /// - /// - public MultiGetRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.Ids? ids) - { - IdsValue = ids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get multiple documents. -/// -/// -/// Get multiple JSON documents by ID from one or more indices. -/// If you specify an index in the request URI, you only need to specify the document IDs in the request body. -/// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. -/// -/// -public sealed partial class MultiGetRequestDescriptor : RequestDescriptor -{ - internal MultiGetRequestDescriptor(Action configure) => configure.Invoke(this); - - public MultiGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public MultiGetRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "mget"; - - public MultiGetRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public MultiGetRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public MultiGetRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public MultiGetRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public MultiGetRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); - public MultiGetRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public MultiGetRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public MultiGetRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); - - public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private ICollection? DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor DocsDescriptor { get; set; } - private Action DocsDescriptorAction { get; set; } - private Action[] DocsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ids? IdsValue { get; set; } - - /// - /// - /// The documents you want to retrieve. Required if no index is specified in the request URI. - /// - /// - public MultiGetRequestDescriptor Docs(ICollection? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public MultiGetRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public MultiGetRequestDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public MultiGetRequestDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The IDs of the documents you want to retrieve. Allowed when the index is specified in the request URI. - /// - /// - public MultiGetRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.Ids? ids) - { - IdsValue = ids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetOperationDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetResponse.g.cs deleted file mode 100644 index 9f71d27fc58..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiGetResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class MultiGetResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("docs")] - public IReadOnlyCollection> Docs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs deleted file mode 100644 index 25f73f21209..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchRequest.g.cs +++ /dev/null @@ -1,475 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class MultiSearchRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests. - /// - /// - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Maximum number of concurrent searches the multi search API can execute. - /// - /// - public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } - - /// - /// - /// Maximum number of concurrent shard requests that each sub-search request executes per node. - /// - /// - public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - - /// - /// - /// Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. - /// - /// - public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } - - /// - /// - /// If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. - /// - /// - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Custom routing value used to route search operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Indicates whether global term and document frequencies should be used when scoring returned documents. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// Specifies whether aggregation and suggester names should be prefixed by their respective types in the response. - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } -} - -/// -/// -/// Run multiple searches. -/// -/// -/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. -/// The structure is as follows: -/// -/// -/// header\n -/// body\n -/// header\n -/// body\n -/// -/// -/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. -/// -/// -/// IMPORTANT: The final line of data must end with a newline character \n. -/// Each newline character may be preceded by a carriage return \r. -/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. -/// -/// -public sealed partial class MultiSearchRequest : PlainRequest, IStreamSerializable -{ - public MultiSearchRequest() - { - } - - public MultiSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "msearch"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, network roundtrips between the coordinating node and remote clusters are minimized for cross-cluster search requests. - /// - /// - [JsonIgnore] - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// Type of index that wildcard expressions can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Maximum number of concurrent searches the multi search API can execute. - /// - /// - [JsonIgnore] - public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } - - /// - /// - /// Maximum number of concurrent shard requests that each sub-search request executes per node. - /// - /// - [JsonIgnore] - public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - - /// - /// - /// Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. - /// - /// - [JsonIgnore] - public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } - - /// - /// - /// If true, hits.total are returned as an integer in the response. Defaults to false, which returns an object. - /// - /// - [JsonIgnore] - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Custom routing value used to route search operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Indicates whether global term and document frequencies should be used when scoring returned documents. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// Specifies whether aggregation and suggester names should be prefixed by their respective types in the response. - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - public List Searches { get; set; } - - void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (Searches is null) - return; - foreach (var item in Searches) - { - if (item is IStreamSerializable serializable) - serializable.Serialize(stream, settings, formatting); - } - } - - async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (Searches is null) - return; - foreach (var item in Searches) - { - if (item is IStreamSerializable serializable) - await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); - } - } -} - -/// -/// -/// Run multiple searches. -/// -/// -/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. -/// The structure is as follows: -/// -/// -/// header\n -/// body\n -/// header\n -/// body\n -/// -/// -/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. -/// -/// -/// IMPORTANT: The final line of data must end with a newline character \n. -/// Each newline character may be preceded by a carriage return \r. -/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. -/// -/// -public sealed partial class MultiSearchRequestDescriptor : RequestDescriptor, MultiSearchRequestParameters>, IStreamSerializable -{ - internal MultiSearchRequestDescriptor(Action> configure) => configure.Invoke(this); - - public MultiSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public MultiSearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "msearch"; - - public MultiSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MultiSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public MultiSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public MultiSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public MultiSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public MultiSearchRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); - public MultiSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public MultiSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); - public MultiSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public MultiSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public MultiSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public MultiSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public MultiSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - - List _items = new(); - - void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - serializable.Serialize(stream, settings, formatting); - } - } - - async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); - } - } - - public MultiSearchRequestDescriptor AddSearches(Elastic.Clients.Elasticsearch.Serverless.Core.MSearch.SearchRequestItem searches) - { - _items.Add(searches); - return this; - } -} - -/// -/// -/// Run multiple searches. -/// -/// -/// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. -/// The structure is as follows: -/// -/// -/// header\n -/// body\n -/// header\n -/// body\n -/// -/// -/// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. -/// -/// -/// IMPORTANT: The final line of data must end with a newline character \n. -/// Each newline character may be preceded by a carriage return \r. -/// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. -/// -/// -public sealed partial class MultiSearchRequestDescriptor : RequestDescriptor, IStreamSerializable -{ - internal MultiSearchRequestDescriptor(Action configure) => configure.Invoke(this); - - public MultiSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public MultiSearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "msearch"; - - public MultiSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MultiSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public MultiSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public MultiSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public MultiSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public MultiSearchRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); - public MultiSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public MultiSearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); - public MultiSearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public MultiSearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public MultiSearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public MultiSearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public MultiSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - - List _items = new(); - - void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - serializable.Serialize(stream, settings, formatting); - } - } - - async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); - } - } - - public MultiSearchRequestDescriptor AddSearches(Elastic.Clients.Elasticsearch.Serverless.Core.MSearch.SearchRequestItem searches) - { - _items.Add(searches); - return this; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchResponse.g.cs deleted file mode 100644 index 740fdd5233f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class MultiSearchResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("responses")] - public IReadOnlyCollection> Responses { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs deleted file mode 100644 index 1fffa2f1906..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ /dev/null @@ -1,306 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class MultiSearchTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If true, network round-trips are minimized for cross-cluster search requests. - /// - /// - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// Maximum number of concurrent searches the API can run. - /// - /// - public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } - - /// - /// - /// If true, the response returns hits.total as an integer. - /// If false, it returns hits.total as an object. - /// - /// - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// If true, the response prefixes aggregation and suggester names with their respective types. - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } -} - -/// -/// -/// Run multiple templated searches. -/// -/// -public sealed partial class MultiSearchTemplateRequest : PlainRequest, IStreamSerializable -{ - public MultiSearchTemplateRequest() - { - } - - public MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "msearch_template"; - - /// - /// - /// If true, network round-trips are minimized for cross-cluster search requests. - /// - /// - [JsonIgnore] - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// Maximum number of concurrent searches the API can run. - /// - /// - [JsonIgnore] - public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } - - /// - /// - /// If true, the response returns hits.total as an integer. - /// If false, it returns hits.total as an object. - /// - /// - [JsonIgnore] - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// If true, the response prefixes aggregation and suggester names with their respective types. - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - public List SearchTemplates { get; set; } - - void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (SearchTemplates is null) - return; - foreach (var item in SearchTemplates) - { - if (item is IStreamSerializable serializable) - serializable.Serialize(stream, settings, formatting); - } - } - - async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (SearchTemplates is null) - return; - foreach (var item in SearchTemplates) - { - if (item is IStreamSerializable serializable) - await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); - } - } -} - -/// -/// -/// Run multiple templated searches. -/// -/// -public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, MultiSearchTemplateRequestParameters>, IStreamSerializable -{ - internal MultiSearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public MultiSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public MultiSearchTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "msearch_template"; - - public MultiSearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public MultiSearchTemplateRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); - public MultiSearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public MultiSearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public MultiSearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public MultiSearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - - List _items = new(); - - void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - serializable.Serialize(stream, settings, formatting); - } - } - - async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); - } - } - - public MultiSearchTemplateRequestDescriptor AddSearchTemplates(Elastic.Clients.Elasticsearch.Serverless.Core.MSearchTemplate.SearchTemplateRequestItem searchTemplates) - { - _items.Add(searchTemplates); - return this; - } -} - -/// -/// -/// Run multiple templated searches. -/// -/// -public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, IStreamSerializable -{ - internal MultiSearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public MultiSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public MultiSearchTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMultiSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "msearch_template"; - - public MultiSearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public MultiSearchTemplateRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); - public MultiSearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public MultiSearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public MultiSearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public MultiSearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } - - List _items = new(); - - void IStreamSerializable.Serialize(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - serializable.Serialize(stream, settings, formatting); - } - } - - async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClientSettings settings, SerializationFormatting formatting) - { - if (_items is null) - return; - foreach (var item in _items) - { - if (item is IStreamSerializable serializable) - await serializable.SerializeAsync(stream, settings, formatting).ConfigureAwait(false); - } - } - - public MultiSearchTemplateRequestDescriptor AddSearchTemplates(Elastic.Clients.Elasticsearch.Serverless.Core.MSearchTemplate.SearchTemplateRequestItem searchTemplates) - { - _items.Add(searchTemplates); - return this; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateResponse.g.cs deleted file mode 100644 index 8c59f80a1ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class MultiSearchTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("responses")] - public IReadOnlyCollection> Responses { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs deleted file mode 100644 index 40cdd16d284..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs +++ /dev/null @@ -1,551 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 MultiTermVectorsRequestParameters : RequestParameters -{ - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } - - /// - /// - /// If true, the response includes term positions. - /// - /// - public bool? Positions { get => Q("positions"); set => Q("positions", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Get multiple term vectors. -/// -/// -/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. -/// You can specify the index in the request body or request URI. -/// The response contains a docs array with all the fetched termvectors. -/// Each element has the structure provided by the termvectors API. -/// -/// -public sealed partial class MultiTermVectorsRequest : PlainRequest -{ - public MultiTermVectorsRequest() - { - } - - public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMtermvectors; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "mtermvectors"; - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - [JsonIgnore] - public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - [JsonIgnore] - public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - [JsonIgnore] - public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } - - /// - /// - /// If true, the response includes term positions. - /// - /// - [JsonIgnore] - public bool? Positions { get => Q("positions"); set => Q("positions", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - [JsonIgnore] - public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// Array of existing or artificial documents. - /// - /// - [JsonInclude, JsonPropertyName("docs")] - public ICollection? Docs { get; set; } - - /// - /// - /// Simplified syntax to specify documents by their ID if they're in the same index. - /// - /// - [JsonInclude, JsonPropertyName("ids")] - public ICollection? Ids { get; set; } -} - -/// -/// -/// Get multiple term vectors. -/// -/// -/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. -/// You can specify the index in the request body or request URI. -/// The response contains a docs array with all the fetched termvectors. -/// Each element has the structure provided by the termvectors API. -/// -/// -public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor, MultiTermVectorsRequestParameters> -{ - internal MultiTermVectorsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public MultiTermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public MultiTermVectorsRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMtermvectors; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "mtermvectors"; - - public MultiTermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public MultiTermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); - public MultiTermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); - public MultiTermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); - public MultiTermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); - public MultiTermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public MultiTermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public MultiTermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public MultiTermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); - public MultiTermVectorsRequestDescriptor Version(long? version) => Qs("version", version); - public MultiTermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private ICollection? DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor DocsDescriptor { get; set; } - private Action> DocsDescriptorAction { get; set; } - private Action>[] DocsDescriptorActions { get; set; } - private ICollection? IdsValue { get; set; } - - /// - /// - /// Array of existing or artificial documents. - /// - /// - public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public MultiTermVectorsRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public MultiTermVectorsRequestDescriptor Docs(Action> configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public MultiTermVectorsRequestDescriptor Docs(params Action>[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Simplified syntax to specify documents by their ID if they're in the same index. - /// - /// - public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) - { - IdsValue = ids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get multiple term vectors. -/// -/// -/// You can specify existing documents by index and ID or provide artificial documents in the body of the request. -/// You can specify the index in the request body or request URI. -/// The response contains a docs array with all the fetched termvectors. -/// Each element has the structure provided by the termvectors API. -/// -/// -public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor -{ - internal MultiTermVectorsRequestDescriptor(Action configure) => configure.Invoke(this); - - public MultiTermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : base(r => r.Optional("index", index)) - { - } - - public MultiTermVectorsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMtermvectors; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "mtermvectors"; - - public MultiTermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public MultiTermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); - public MultiTermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); - public MultiTermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); - public MultiTermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); - public MultiTermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public MultiTermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public MultiTermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public MultiTermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); - public MultiTermVectorsRequestDescriptor Version(long? version) => Qs("version", version); - public MultiTermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - RouteValues.Optional("index", index); - return Self; - } - - private ICollection? DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor DocsDescriptor { get; set; } - private Action DocsDescriptorAction { get; set; } - private Action[] DocsDescriptorActions { get; set; } - private ICollection? IdsValue { get; set; } - - /// - /// - /// Array of existing or artificial documents. - /// - /// - public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public MultiTermVectorsRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public MultiTermVectorsRequestDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public MultiTermVectorsRequestDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Simplified syntax to specify documents by their ID if they're in the same index. - /// - /// - public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) - { - IdsValue = ids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors.MultiTermVectorsOperationDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsResponse.g.cs deleted file mode 100644 index 49360764fd3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class MultiTermVectorsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("docs")] - public IReadOnlyCollection Docs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs deleted file mode 100644 index a38d38b448c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ /dev/null @@ -1,235 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class HotThreadsRequestParameters : RequestParameters -{ - /// - /// - /// If true, known idle threads (e.g. waiting in a socket select, or to get - /// a task from an empty queue) are filtered out. - /// - /// - public bool? IgnoreIdleThreads { get => Q("ignore_idle_threads"); set => Q("ignore_idle_threads", value); } - - /// - /// - /// The interval to do the second sampling of threads. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Interval { get => Q("interval"); set => Q("interval", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response - /// is received before the timeout expires, the request fails and - /// returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Number of samples of thread stacktrace. - /// - /// - public long? Snapshots { get => Q("snapshots"); set => Q("snapshots", value); } - - /// - /// - /// The sort order for 'cpu' type (default: total) - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.ThreadType? Sort { get => Q("sort"); set => Q("sort", value); } - - /// - /// - /// Specifies the number of hot threads to provide information for. - /// - /// - public long? Threads { get => Q("threads"); set => Q("threads", value); } - - /// - /// - /// Period to wait for a response. If no response is received - /// before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The type to sample. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.ThreadType? Type { get => Q("type"); set => Q("type", value); } -} - -/// -/// -/// Get the hot threads for nodes. -/// Get a breakdown of the hot threads on each selected node in the cluster. -/// The output is plain text with a breakdown of the top hot threads for each node. -/// -/// -public sealed partial class HotThreadsRequest : PlainRequest -{ - public HotThreadsRequest() - { - } - - public HotThreadsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesHotThreads; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.hot_threads"; - - /// - /// - /// If true, known idle threads (e.g. waiting in a socket select, or to get - /// a task from an empty queue) are filtered out. - /// - /// - [JsonIgnore] - public bool? IgnoreIdleThreads { get => Q("ignore_idle_threads"); set => Q("ignore_idle_threads", value); } - - /// - /// - /// The interval to do the second sampling of threads. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Interval { get => Q("interval"); set => Q("interval", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response - /// is received before the timeout expires, the request fails and - /// returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Number of samples of thread stacktrace. - /// - /// - [JsonIgnore] - public long? Snapshots { get => Q("snapshots"); set => Q("snapshots", value); } - - /// - /// - /// The sort order for 'cpu' type (default: total) - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.ThreadType? Sort { get => Q("sort"); set => Q("sort", value); } - - /// - /// - /// Specifies the number of hot threads to provide information for. - /// - /// - [JsonIgnore] - public long? Threads { get => Q("threads"); set => Q("threads", value); } - - /// - /// - /// Period to wait for a response. If no response is received - /// before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The type to sample. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.ThreadType? Type { get => Q("type"); set => Q("type", value); } -} - -/// -/// -/// Get the hot threads for nodes. -/// Get a breakdown of the hot threads on each selected node in the cluster. -/// The output is plain text with a breakdown of the top hot threads for each node. -/// -/// -public sealed partial class HotThreadsRequestDescriptor : RequestDescriptor -{ - internal HotThreadsRequestDescriptor(Action configure) => configure.Invoke(this); - - public HotThreadsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - public HotThreadsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesHotThreads; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.hot_threads"; - - public HotThreadsRequestDescriptor IgnoreIdleThreads(bool? ignoreIdleThreads = true) => Qs("ignore_idle_threads", ignoreIdleThreads); - public HotThreadsRequestDescriptor Interval(Elastic.Clients.Elasticsearch.Serverless.Duration? interval) => Qs("interval", interval); - public HotThreadsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public HotThreadsRequestDescriptor Snapshots(long? snapshots) => Qs("snapshots", snapshots); - public HotThreadsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.ThreadType? sort) => Qs("sort", sort); - public HotThreadsRequestDescriptor Threads(long? threads) => Qs("threads", threads); - public HotThreadsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public HotThreadsRequestDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.ThreadType? type) => Qs("type", type); - - public HotThreadsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs deleted file mode 100644 index 12ae0ee843d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/HotThreadsResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class HotThreadsResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs deleted file mode 100644 index c5b0faa1e22..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ /dev/null @@ -1,159 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class NodesInfoRequestParameters : RequestParameters -{ - /// - /// - /// If true, returns settings in flat format. - /// - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get node information. -/// By default, the API returns all attributes and core settings for cluster nodes. -/// -/// -public sealed partial class NodesInfoRequest : PlainRequest -{ - public NodesInfoRequest() - { - } - - public NodesInfoRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - public NodesInfoRequest(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesInfoRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.info"; - - /// - /// - /// If true, returns settings in flat format. - /// - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get node information. -/// By default, the API returns all attributes and core settings for cluster nodes. -/// -/// -public sealed partial class NodesInfoRequestDescriptor : RequestDescriptor -{ - internal NodesInfoRequestDescriptor(Action configure) => configure.Invoke(this); - - public NodesInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) - { - } - - public NodesInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.info"; - - public NodesInfoRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public NodesInfoRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesInfoRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public NodesInfoRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public NodesInfoRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoResponse.g.cs deleted file mode 100644 index e4455498428..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesInfoResponse.g.cs +++ /dev/null @@ -1,43 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class NodesInfoResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - - /// - /// - /// Contains statistics about the number of nodes selected by the request’s node filters. - /// - /// - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics? NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs deleted file mode 100644 index 1a4216e41b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ /dev/null @@ -1,348 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class NodesStatsRequestParameters : RequestParameters -{ - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata statistics. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// Comma-separated list of search groups to include in the search statistics. - /// - /// - public bool? Groups { get => Q("groups"); set => Q("groups", value); } - - /// - /// - /// If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). - /// - /// - public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } - - /// - /// - /// If true, the response includes information from segments that are not loaded into memory. - /// - /// - public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } - - /// - /// - /// Indicates whether statistics are aggregated at the cluster, index, or shard level. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Level? Level { get => Q("level"); set => Q("level", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// A comma-separated list of document types for the indexing index metric. - /// - /// - public ICollection? Types { get => Q?>("types"); set => Q("types", value); } -} - -/// -/// -/// Get node statistics. -/// Get statistics for nodes in a cluster. -/// By default, all stats are returned. You can limit the returned information by using metrics. -/// -/// -public sealed partial class NodesStatsRequest : PlainRequest -{ - public NodesStatsRequest() - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric) : base(r => r.Optional("metric", metric).Optional("index_metric", indexMetric)) - { - } - - public NodesStatsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric).Optional("index_metric", indexMetric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.stats"; - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata and suggest statistics. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in fielddata statistics. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// Comma-separated list of search groups to include in the search statistics. - /// - /// - [JsonIgnore] - public bool? Groups { get => Q("groups"); set => Q("groups", value); } - - /// - /// - /// If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested). - /// - /// - [JsonIgnore] - public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } - - /// - /// - /// If true, the response includes information from segments that are not loaded into memory. - /// - /// - [JsonIgnore] - public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } - - /// - /// - /// Indicates whether statistics are aggregated at the cluster, index, or shard level. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Level? Level { get => Q("level"); set => Q("level", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// A comma-separated list of document types for the indexing index metric. - /// - /// - [JsonIgnore] - public ICollection? Types { get => Q?>("types"); set => Q("types", value); } -} - -/// -/// -/// Get node statistics. -/// Get statistics for nodes in a cluster. -/// By default, all stats are returned. You can limit the returned information by using metrics. -/// -/// -public sealed partial class NodesStatsRequestDescriptor : RequestDescriptor, NodesStatsRequestParameters> -{ - internal NodesStatsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric).Optional("index_metric", indexMetric)) - { - } - - public NodesStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.stats"; - - public NodesStatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Serverless.Fields? completionFields) => Qs("completion_fields", completionFields); - public NodesStatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Serverless.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); - public NodesStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public NodesStatsRequestDescriptor Groups(bool? groups = true) => Qs("groups", groups); - public NodesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - public NodesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); - public NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Serverless.Level? level) => Qs("level", level); - public NodesStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public NodesStatsRequestDescriptor Types(ICollection? types) => Qs("types", types); - - public NodesStatsRequestDescriptor IndexMetric(Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric) - { - RouteValues.Optional("index_metric", indexMetric); - return Self; - } - - public NodesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public NodesStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get node statistics. -/// Get statistics for nodes in a cluster. -/// By default, all stats are returned. You can limit the returned information by using metrics. -/// -/// -public sealed partial class NodesStatsRequestDescriptor : RequestDescriptor -{ - internal NodesStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public NodesStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric).Optional("index_metric", indexMetric)) - { - } - - public NodesStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.stats"; - - public NodesStatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Serverless.Fields? completionFields) => Qs("completion_fields", completionFields); - public NodesStatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Serverless.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); - public NodesStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public NodesStatsRequestDescriptor Groups(bool? groups = true) => Qs("groups", groups); - public NodesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); - public NodesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); - public NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Serverless.Level? level) => Qs("level", level); - public NodesStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public NodesStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public NodesStatsRequestDescriptor Types(ICollection? types) => Qs("types", types); - - public NodesStatsRequestDescriptor IndexMetric(Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric) - { - RouteValues.Optional("index_metric", indexMetric); - return Self; - } - - public NodesStatsRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public NodesStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsResponse.g.cs deleted file mode 100644 index c61a304dbc5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesStatsResponse.g.cs +++ /dev/null @@ -1,43 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class NodesStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string? ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - - /// - /// - /// Contains statistics about the number of nodes selected by the request’s node filters. - /// - /// - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics? NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs deleted file mode 100644 index f21f5a16d72..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageRequest.g.cs +++ /dev/null @@ -1,127 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class NodesUsageRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get feature usage information. -/// -/// -public sealed partial class NodesUsageRequest : PlainRequest -{ - public NodesUsageRequest() - { - } - - public NodesUsageRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) : base(r => r.Optional("node_id", nodeId)) - { - } - - public NodesUsageRequest(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("metric", metric)) - { - } - - public NodesUsageRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesUsage; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.usage"; - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get feature usage information. -/// -/// -public sealed partial class NodesUsageRequestDescriptor : RequestDescriptor -{ - internal NodesUsageRequestDescriptor(Action configure) => configure.Invoke(this); - - public NodesUsageRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) : base(r => r.Optional("node_id", nodeId).Optional("metric", metric)) - { - } - - public NodesUsageRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NodesUsage; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "nodes.usage"; - - public NodesUsageRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public NodesUsageRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Metrics? metric) - { - RouteValues.Optional("metric", metric); - return Self; - } - - public NodesUsageRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId) - { - RouteValues.Optional("node_id", nodeId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageResponse.g.cs deleted file mode 100644 index 2b034f606ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Nodes/NodesUsageResponse.g.cs +++ /dev/null @@ -1,43 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public sealed partial class NodesUsageResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - - /// - /// - /// Contains statistics about the number of nodes selected by the request’s node filters. - /// - /// - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics? NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs deleted file mode 100644 index ebdecca3a0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs +++ /dev/null @@ -1,380 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 OpenPointInTimeRequestParameters : RequestParameters -{ - /// - /// - /// If false, creating a point in time request when a shard is missing or unavailable will throw an exception. - /// If true, the point in time will contain all the shards that are available at the time of the request. - /// - /// - public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Extends the time to live of the corresponding point in time. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } -} - -/// -/// -/// Open a point in time. -/// -/// -/// A search request by default runs against the most recent visible data of the target indices, -/// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the -/// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple -/// search requests using the same point in time. For example, if refreshes happen between -/// search_after requests, then the results of those requests might not be consistent as changes happening -/// between searches are only visible to the more recent point in time. -/// -/// -/// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. -/// -/// -public sealed partial class OpenPointInTimeRequest : PlainRequest -{ - public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceOpenPointInTime; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "open_point_in_time"; - - /// - /// - /// If false, creating a point in time request when a shard is missing or unavailable will throw an exception. - /// If true, the point in time will contain all the shards that are available at the time of the request. - /// - /// - [JsonIgnore] - public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Extends the time to live of the corresponding point in time. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. - /// - /// - [JsonInclude, JsonPropertyName("index_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilter { get; set; } -} - -/// -/// -/// Open a point in time. -/// -/// -/// A search request by default runs against the most recent visible data of the target indices, -/// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the -/// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple -/// search requests using the same point in time. For example, if refreshes happen between -/// search_after requests, then the results of those requests might not be consistent as changes happening -/// between searches are only visible to the more recent point in time. -/// -/// -/// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. -/// -/// -public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor, OpenPointInTimeRequestParameters> -{ - internal OpenPointInTimeRequestDescriptor(Action> configure) => configure.Invoke(this); - - public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceOpenPointInTime; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "open_point_in_time"; - - public OpenPointInTimeRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); - public OpenPointInTimeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public OpenPointInTimeRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration keepAlive) => Qs("keep_alive", keepAlive); - public OpenPointInTimeRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public OpenPointInTimeRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - - public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } - private Action> IndexFilterDescriptorAction { get; set; } - - /// - /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. - /// - /// - public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) - { - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = null; - IndexFilterValue = indexFilter; - return Self; - } - - public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - IndexFilterValue = null; - IndexFilterDescriptorAction = null; - IndexFilterDescriptor = descriptor; - return Self; - } - - public OpenPointInTimeRequestDescriptor IndexFilter(Action> configure) - { - IndexFilterValue = null; - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexFilterDescriptor is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); - } - else if (IndexFilterDescriptorAction is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); - } - else if (IndexFilterValue is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Open a point in time. -/// -/// -/// A search request by default runs against the most recent visible data of the target indices, -/// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the -/// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple -/// search requests using the same point in time. For example, if refreshes happen between -/// search_after requests, then the results of those requests might not be consistent as changes happening -/// between searches are only visible to the more recent point in time. -/// -/// -/// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. -/// -/// -public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor -{ - internal OpenPointInTimeRequestDescriptor(Action configure) => configure.Invoke(this); - - public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceOpenPointInTime; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "open_point_in_time"; - - public OpenPointInTimeRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); - public OpenPointInTimeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public OpenPointInTimeRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration keepAlive) => Qs("keep_alive", keepAlive); - public OpenPointInTimeRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public OpenPointInTimeRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - - public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } - private Action IndexFilterDescriptorAction { get; set; } - - /// - /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. - /// - /// - public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) - { - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = null; - IndexFilterValue = indexFilter; - return Self; - } - - public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - IndexFilterValue = null; - IndexFilterDescriptorAction = null; - IndexFilterDescriptor = descriptor; - return Self; - } - - public OpenPointInTimeRequestDescriptor IndexFilter(Action configure) - { - IndexFilterValue = null; - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexFilterDescriptor is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); - } - else if (IndexFilterDescriptorAction is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); - } - else if (IndexFilterValue is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs deleted file mode 100644 index b31084c2922..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class OpenPointInTimeResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// Shards used to create the PIT - /// - /// - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs deleted file mode 100644 index e3ecacfd4db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingRequest.g.cs +++ /dev/null @@ -1,79 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 PingRequestParameters : RequestParameters -{ -} - -/// -/// -/// Ping the cluster. -/// Get information about whether the cluster is running. -/// -/// -public sealed partial class PingRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespacePing; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ping"; -} - -/// -/// -/// Ping the cluster. -/// Get information about whether the cluster is running. -/// -/// -public sealed partial class PingRequestDescriptor : RequestDescriptor -{ - internal PingRequestDescriptor(Action configure) => configure.Invoke(this); - - public PingRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespacePing; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "ping"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingResponse.g.cs deleted file mode 100644 index 7768d59ac25..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PingResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class PingResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs deleted file mode 100644 index dcb83136ca9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs +++ /dev/null @@ -1,295 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 PutScriptRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update a script or search template. -/// Creates or updates a stored script or search template. -/// -/// -public sealed partial class PutScriptRequest : PlainRequest -{ - public PutScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - public PutScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context) : base(r => r.Required("id", id).Optional("context", context)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespacePutScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "put_script"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Contains the script or search template, its parameters, and its language. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.StoredScript Script { get; set; } -} - -/// -/// -/// Create or update a script or search template. -/// Creates or updates a stored script or search template. -/// -/// -public sealed partial class PutScriptRequestDescriptor : RequestDescriptor, PutScriptRequestParameters> -{ - internal PutScriptRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context) : base(r => r.Required("id", id).Optional("context", context)) - { - } - - public PutScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespacePutScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "put_script"; - - public PutScriptRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutScriptRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutScriptRequestDescriptor Context(Elastic.Clients.Elasticsearch.Serverless.Name? context) - { - RouteValues.Optional("context", context); - return Self; - } - - public PutScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.StoredScript ScriptValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.StoredScriptDescriptor ScriptDescriptor { get; set; } - private Action ScriptDescriptorAction { get; set; } - - /// - /// - /// Contains the script or search template, its parameters, and its language. - /// - /// - public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.StoredScript script) - { - ScriptDescriptor = null; - ScriptDescriptorAction = null; - ScriptValue = script; - return Self; - } - - public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.StoredScriptDescriptor descriptor) - { - ScriptValue = null; - ScriptDescriptorAction = null; - ScriptDescriptor = descriptor; - return Self; - } - - public PutScriptRequestDescriptor Script(Action configure) - { - ScriptValue = null; - ScriptDescriptor = null; - ScriptDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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.StoredScriptDescriptor(ScriptDescriptorAction), options); - } - else - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update a script or search template. -/// Creates or updates a stored script or search template. -/// -/// -public sealed partial class PutScriptRequestDescriptor : RequestDescriptor -{ - internal PutScriptRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic.Clients.Elasticsearch.Serverless.Name? context) : base(r => r.Required("id", id).Optional("context", context)) - { - } - - public PutScriptRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespacePutScript; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "put_script"; - - public PutScriptRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutScriptRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutScriptRequestDescriptor Context(Elastic.Clients.Elasticsearch.Serverless.Name? context) - { - RouteValues.Optional("context", context); - return Self; - } - - public PutScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.StoredScript ScriptValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.StoredScriptDescriptor ScriptDescriptor { get; set; } - private Action ScriptDescriptorAction { get; set; } - - /// - /// - /// Contains the script or search template, its parameters, and its language. - /// - /// - public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.StoredScript script) - { - ScriptDescriptor = null; - ScriptDescriptorAction = null; - ScriptValue = script; - return Self; - } - - public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.StoredScriptDescriptor descriptor) - { - ScriptValue = null; - ScriptDescriptorAction = null; - ScriptDescriptor = descriptor; - return Self; - } - - public PutScriptRequestDescriptor Script(Action configure) - { - ScriptValue = null; - ScriptDescriptor = null; - ScriptDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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.StoredScriptDescriptor(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/Api/PutScriptResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptResponse.g.cs deleted file mode 100644 index bcbe6d1caf9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class PutScriptResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs deleted file mode 100644 index 71d2929e026..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class DeleteRuleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a query rule. -/// Delete a query rule within a query ruleset. -/// -/// -public sealed partial class DeleteRuleRequest : PlainRequest -{ - public DeleteRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.delete_rule"; -} - -/// -/// -/// Delete a query rule. -/// Delete a query rule within a query ruleset. -/// -/// -public sealed partial class DeleteRuleRequestDescriptor : RequestDescriptor -{ - internal DeleteRuleRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.delete_rule"; - - public DeleteRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RouteValues.Required("rule_id", ruleId); - return Self; - } - - public DeleteRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs deleted file mode 100644 index 110941115db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class DeleteRuleResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs deleted file mode 100644 index 019da9d7104..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class DeleteRulesetRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a query ruleset. -/// -/// -public sealed partial class DeleteRulesetRequest : PlainRequest -{ - public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.delete_ruleset"; -} - -/// -/// -/// Delete a query ruleset. -/// -/// -public sealed partial class DeleteRulesetRequestDescriptor : RequestDescriptor -{ - internal DeleteRulesetRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.delete_ruleset"; - - public DeleteRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs deleted file mode 100644 index 84c27bf6567..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class DeleteRulesetResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs deleted file mode 100644 index da7f6ec6cd5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class GetRuleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get a query rule. -/// Get details about a query rule within a query ruleset. -/// -/// -public sealed partial class GetRuleRequest : PlainRequest -{ - public GetRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.get_rule"; -} - -/// -/// -/// Get a query rule. -/// Get details about a query rule within a query ruleset. -/// -/// -public sealed partial class GetRuleRequestDescriptor : RequestDescriptor -{ - internal GetRuleRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.get_rule"; - - public GetRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RouteValues.Required("rule_id", ruleId); - return Self; - } - - public GetRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs deleted file mode 100644 index c7a1d487330..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRuleResponse.g.cs +++ /dev/null @@ -1,42 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class GetRuleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("actions")] - public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; init; } - [JsonInclude, JsonPropertyName("criteria")] - [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")] - public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs deleted file mode 100644 index c93e6a9d245..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetRequest.g.cs +++ /dev/null @@ -1,89 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class GetRulesetRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get a query ruleset. -/// Get details about a query ruleset. -/// -/// -public sealed partial class GetRulesetRequest : PlainRequest -{ - public GetRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRuleset; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.get_ruleset"; -} - -/// -/// -/// Get a query ruleset. -/// Get details about a query ruleset. -/// -/// -public sealed partial class GetRulesetRequestDescriptor : RequestDescriptor -{ - internal GetRulesetRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesGetRuleset; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.get_ruleset"; - - public GetRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs deleted file mode 100644 index cfe4c74c1dd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/GetRulesetResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class GetRulesetResponse : ElasticsearchResponse -{ - /// - /// - /// Rules associated with the query ruleset - /// - /// - [JsonInclude, JsonPropertyName("rules")] - public IReadOnlyCollection Rules { get; init; } - - /// - /// - /// Query Ruleset unique identifier - /// - /// - [JsonInclude, JsonPropertyName("ruleset_id")] - public string RulesetId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs deleted file mode 100644 index 88e7dd052ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class ListRulesetsRequestParameters : RequestParameters -{ - /// - /// - /// Starting offset (default: 0) - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// specifies a max number of results to get - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get all query rulesets. -/// Get summarized information about the query rulesets. -/// -/// -public sealed partial class ListRulesetsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesListRulesets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.list_rulesets"; - - /// - /// - /// Starting offset (default: 0) - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// specifies a max number of results to get - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get all query rulesets. -/// Get summarized information about the query rulesets. -/// -/// -public sealed partial class ListRulesetsRequestDescriptor : RequestDescriptor -{ - internal ListRulesetsRequestDescriptor(Action configure) => configure.Invoke(this); - - public ListRulesetsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesListRulesets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "query_rules.list_rulesets"; - - public ListRulesetsRequestDescriptor From(int? from) => Qs("from", from); - public ListRulesetsRequestDescriptor Size(int? size) => Qs("size", size); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs deleted file mode 100644 index f318fa1003c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/ListRulesetsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class ListRulesetsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("results")] - public IReadOnlyCollection Results { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs deleted file mode 100644 index 3016e2216bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ /dev/null @@ -1,242 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class PutRuleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create or update a query rule. -/// Create or update a query rule within a query ruleset. -/// -/// -public sealed partial class PutRuleRequest : PlainRequest -{ - public PutRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "query_rules.put_rule"; - - [JsonInclude, JsonPropertyName("actions")] - public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions Actions { get; set; } - [JsonInclude, JsonPropertyName("criteria")] - [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; } -} - -/// -/// -/// Create or update a query rule. -/// Create or update a query rule within a query ruleset. -/// -/// -public sealed partial class PutRuleRequestDescriptor : RequestDescriptor -{ - internal PutRuleRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "query_rules.put_rule"; - - public PutRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RouteValues.Required("rule_id", ruleId); - return Self; - } - - public PutRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions ActionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor ActionsDescriptor { get; set; } - private Action ActionsDescriptorAction { get; set; } - private ICollection CriteriaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor CriteriaDescriptor { get; set; } - private Action CriteriaDescriptorAction { get; set; } - private Action[] CriteriaDescriptorActions { get; set; } - private int? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType TypeValue { get; set; } - - public PutRuleRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions actions) - { - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsValue = actions; - return Self; - } - - public PutRuleRequestDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor descriptor) - { - ActionsValue = null; - ActionsDescriptorAction = null; - ActionsDescriptor = descriptor; - return Self; - } - - public PutRuleRequestDescriptor Actions(Action configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorAction = configure; - return Self; - } - - public PutRuleRequestDescriptor Criteria(ICollection criteria) - { - CriteriaDescriptor = null; - CriteriaDescriptorAction = null; - CriteriaDescriptorActions = null; - CriteriaValue = criteria; - return Self; - } - - public PutRuleRequestDescriptor Criteria(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor descriptor) - { - CriteriaValue = null; - CriteriaDescriptorAction = null; - CriteriaDescriptorActions = null; - CriteriaDescriptor = descriptor; - return Self; - } - - public PutRuleRequestDescriptor Criteria(Action configure) - { - CriteriaValue = null; - CriteriaDescriptor = null; - CriteriaDescriptorActions = null; - CriteriaDescriptorAction = configure; - return Self; - } - - public PutRuleRequestDescriptor Criteria(params Action[] configure) - { - CriteriaValue = null; - CriteriaDescriptor = null; - CriteriaDescriptorAction = null; - CriteriaDescriptorActions = configure; - return Self; - } - - public PutRuleRequestDescriptor Priority(int? priority) - { - PriorityValue = priority; - return Self; - } - - public PutRuleRequestDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsDescriptor is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsDescriptor, options); - } - else if (ActionsDescriptorAction is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor(ActionsDescriptorAction), options); - } - else - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - if (CriteriaDescriptor is not null) - { - writer.WritePropertyName("criteria"); - JsonSerializer.Serialize(writer, CriteriaDescriptor, options); - } - else if (CriteriaDescriptorAction is not null) - { - writer.WritePropertyName("criteria"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor(CriteriaDescriptorAction), options); - } - else if (CriteriaDescriptorActions is not null) - { - writer.WritePropertyName("criteria"); - if (CriteriaDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in CriteriaDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor(action), options); - } - - if (CriteriaDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("criteria"); - SingleOrManySerializationHelper.Serialize(CriteriaValue, writer, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs deleted file mode 100644 index aa8c2bc922d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRuleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class PutRuleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs deleted file mode 100644 index 11e38f97478..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ /dev/null @@ -1,163 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class PutRulesetRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create or update a query ruleset. -/// -/// -public sealed partial class PutRulesetRequest : PlainRequest -{ - public PutRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRuleset; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "query_rules.put_ruleset"; - - [JsonInclude, JsonPropertyName("rules")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRule))] - public ICollection Rules { get; set; } -} - -/// -/// -/// Create or update a query ruleset. -/// -/// -public sealed partial class PutRulesetRequestDescriptor : RequestDescriptor -{ - internal PutRulesetRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesPutRuleset; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "query_rules.put_ruleset"; - - public PutRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - private ICollection RulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor RulesDescriptor { get; set; } - private Action RulesDescriptorAction { get; set; } - private Action[] RulesDescriptorActions { get; set; } - - public PutRulesetRequestDescriptor Rules(ICollection rules) - { - RulesDescriptor = null; - RulesDescriptorAction = null; - RulesDescriptorActions = null; - RulesValue = rules; - return Self; - } - - public PutRulesetRequestDescriptor Rules(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor descriptor) - { - RulesValue = null; - RulesDescriptorAction = null; - RulesDescriptorActions = null; - RulesDescriptor = descriptor; - return Self; - } - - public PutRulesetRequestDescriptor Rules(Action configure) - { - RulesValue = null; - RulesDescriptor = null; - RulesDescriptorActions = null; - RulesDescriptorAction = configure; - return Self; - } - - public PutRulesetRequestDescriptor Rules(params Action[] configure) - { - RulesValue = null; - RulesDescriptor = null; - RulesDescriptorAction = null; - RulesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RulesDescriptor is not null) - { - writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, RulesDescriptor, options); - } - else if (RulesDescriptorAction is not null) - { - writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor(RulesDescriptorAction), options); - } - else if (RulesDescriptorActions is not null) - { - writer.WritePropertyName("rules"); - if (RulesDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleDescriptor(action), options); - } - - if (RulesDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("rules"); - SingleOrManySerializationHelper.Serialize(RulesValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs deleted file mode 100644 index 3500ffe97f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/PutRulesetResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class PutRulesetResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs deleted file mode 100644 index 5c77b61ebde..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestRequest.g.cs +++ /dev/null @@ -1,104 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class TestRequestParameters : RequestParameters -{ -} - -/// -/// -/// Test a query ruleset. -/// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. -/// -/// -public sealed partial class TestRequest : PlainRequest -{ - public TestRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesTest; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "query_rules.test"; - - [JsonInclude, JsonPropertyName("match_criteria")] - public IDictionary MatchCriteria { get; set; } -} - -/// -/// -/// Test a query ruleset. -/// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. -/// -/// -public sealed partial class TestRequestDescriptor : RequestDescriptor -{ - internal TestRequestDescriptor(Action configure) => configure.Invoke(this); - - public TestRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesTest; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "query_rules.test"; - - public TestRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) - { - RouteValues.Required("ruleset_id", rulesetId); - return Self; - } - - private IDictionary MatchCriteriaValue { get; set; } - - public TestRequestDescriptor MatchCriteria(Func, FluentDictionary> selector) - { - MatchCriteriaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("match_criteria"); - JsonSerializer.Serialize(writer, MatchCriteriaValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs deleted file mode 100644 index f2999d2d408..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/TestResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public sealed partial class TestResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("matched_rules")] - public IReadOnlyCollection MatchedRules { get; init; } - [JsonInclude, JsonPropertyName("total_matched_rules")] - public int TotalMatchedRules { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs deleted file mode 100644 index fea24846862..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalRequest.g.cs +++ /dev/null @@ -1,479 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 RankEvalRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Search operation type - /// - /// - public string? SearchType { get => Q("search_type"); set => Q("search_type", value); } -} - -/// -/// -/// Evaluate ranked search results. -/// -/// -/// Evaluate the quality of ranked search results over a set of typical search queries. -/// -/// -public sealed partial class RankEvalRequest : PlainRequest -{ - public RankEvalRequest() - { - } - - public RankEvalRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRankEval; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "rank_eval"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Search operation type - /// - /// - [JsonIgnore] - public string? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// Definition of the evaluation metric to calculate. - /// - /// - [JsonInclude, JsonPropertyName("metric")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetric? Metric { get; set; } - - /// - /// - /// A set of typical search requests, together with their provided ratings. - /// - /// - [JsonInclude, JsonPropertyName("requests")] - public ICollection Requests { get; set; } -} - -/// -/// -/// Evaluate ranked search results. -/// -/// -/// Evaluate the quality of ranked search results over a set of typical search queries. -/// -/// -public sealed partial class RankEvalRequestDescriptor : RequestDescriptor, RankEvalRequestParameters> -{ - internal RankEvalRequestDescriptor(Action> configure) => configure.Invoke(this); - - public RankEvalRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public RankEvalRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRankEval; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "rank_eval"; - - public RankEvalRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RankEvalRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public RankEvalRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public RankEvalRequestDescriptor SearchType(string? searchType) => Qs("search_type", searchType); - - public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetric? MetricValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDescriptor MetricDescriptor { get; set; } - private Action MetricDescriptorAction { get; set; } - private ICollection RequestsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor RequestsDescriptor { get; set; } - private Action> RequestsDescriptorAction { get; set; } - private Action>[] RequestsDescriptorActions { get; set; } - - /// - /// - /// Definition of the evaluation metric to calculate. - /// - /// - public RankEvalRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetric? metric) - { - MetricDescriptor = null; - MetricDescriptorAction = null; - MetricValue = metric; - return Self; - } - - public RankEvalRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDescriptor descriptor) - { - MetricValue = null; - MetricDescriptorAction = null; - MetricDescriptor = descriptor; - return Self; - } - - public RankEvalRequestDescriptor Metric(Action configure) - { - MetricValue = null; - MetricDescriptor = null; - MetricDescriptorAction = configure; - return Self; - } - - /// - /// - /// A set of typical search requests, together with their provided ratings. - /// - /// - public RankEvalRequestDescriptor Requests(ICollection requests) - { - RequestsDescriptor = null; - RequestsDescriptorAction = null; - RequestsDescriptorActions = null; - RequestsValue = requests; - return Self; - } - - public RankEvalRequestDescriptor Requests(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor descriptor) - { - RequestsValue = null; - RequestsDescriptorAction = null; - RequestsDescriptorActions = null; - RequestsDescriptor = descriptor; - return Self; - } - - public RankEvalRequestDescriptor Requests(Action> configure) - { - RequestsValue = null; - RequestsDescriptor = null; - RequestsDescriptorActions = null; - RequestsDescriptorAction = configure; - return Self; - } - - public RankEvalRequestDescriptor Requests(params Action>[] configure) - { - RequestsValue = null; - RequestsDescriptor = null; - RequestsDescriptorAction = null; - RequestsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MetricDescriptor is not null) - { - writer.WritePropertyName("metric"); - JsonSerializer.Serialize(writer, MetricDescriptor, options); - } - else if (MetricDescriptorAction is not null) - { - writer.WritePropertyName("metric"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDescriptor(MetricDescriptorAction), options); - } - else if (MetricValue is not null) - { - writer.WritePropertyName("metric"); - JsonSerializer.Serialize(writer, MetricValue, options); - } - - if (RequestsDescriptor is not null) - { - writer.WritePropertyName("requests"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RequestsDescriptor, options); - writer.WriteEndArray(); - } - else if (RequestsDescriptorAction is not null) - { - writer.WritePropertyName("requests"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor(RequestsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RequestsDescriptorActions is not null) - { - writer.WritePropertyName("requests"); - writer.WriteStartArray(); - foreach (var action in RequestsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("requests"); - JsonSerializer.Serialize(writer, RequestsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Evaluate ranked search results. -/// -/// -/// Evaluate the quality of ranked search results over a set of typical search queries. -/// -/// -public sealed partial class RankEvalRequestDescriptor : RequestDescriptor -{ - internal RankEvalRequestDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public RankEvalRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRankEval; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "rank_eval"; - - public RankEvalRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RankEvalRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public RankEvalRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public RankEvalRequestDescriptor SearchType(string? searchType) => Qs("search_type", searchType); - - public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetric? MetricValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDescriptor MetricDescriptor { get; set; } - private Action MetricDescriptorAction { get; set; } - private ICollection RequestsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor RequestsDescriptor { get; set; } - private Action RequestsDescriptorAction { get; set; } - private Action[] RequestsDescriptorActions { get; set; } - - /// - /// - /// Definition of the evaluation metric to calculate. - /// - /// - public RankEvalRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetric? metric) - { - MetricDescriptor = null; - MetricDescriptorAction = null; - MetricValue = metric; - return Self; - } - - public RankEvalRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDescriptor descriptor) - { - MetricValue = null; - MetricDescriptorAction = null; - MetricDescriptor = descriptor; - return Self; - } - - public RankEvalRequestDescriptor Metric(Action configure) - { - MetricValue = null; - MetricDescriptor = null; - MetricDescriptorAction = configure; - return Self; - } - - /// - /// - /// A set of typical search requests, together with their provided ratings. - /// - /// - public RankEvalRequestDescriptor Requests(ICollection requests) - { - RequestsDescriptor = null; - RequestsDescriptorAction = null; - RequestsDescriptorActions = null; - RequestsValue = requests; - return Self; - } - - public RankEvalRequestDescriptor Requests(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor descriptor) - { - RequestsValue = null; - RequestsDescriptorAction = null; - RequestsDescriptorActions = null; - RequestsDescriptor = descriptor; - return Self; - } - - public RankEvalRequestDescriptor Requests(Action configure) - { - RequestsValue = null; - RequestsDescriptor = null; - RequestsDescriptorActions = null; - RequestsDescriptorAction = configure; - return Self; - } - - public RankEvalRequestDescriptor Requests(params Action[] configure) - { - RequestsValue = null; - RequestsDescriptor = null; - RequestsDescriptorAction = null; - RequestsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MetricDescriptor is not null) - { - writer.WritePropertyName("metric"); - JsonSerializer.Serialize(writer, MetricDescriptor, options); - } - else if (MetricDescriptorAction is not null) - { - writer.WritePropertyName("metric"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDescriptor(MetricDescriptorAction), options); - } - else if (MetricValue is not null) - { - writer.WritePropertyName("metric"); - JsonSerializer.Serialize(writer, MetricValue, options); - } - - if (RequestsDescriptor is not null) - { - writer.WritePropertyName("requests"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RequestsDescriptor, options); - writer.WriteEndArray(); - } - else if (RequestsDescriptorAction is not null) - { - writer.WritePropertyName("requests"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor(RequestsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RequestsDescriptorActions is not null) - { - writer.WritePropertyName("requests"); - writer.WriteStartArray(); - foreach (var action in RequestsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalRequestItemDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("requests"); - JsonSerializer.Serialize(writer, RequestsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalResponse.g.cs deleted file mode 100644 index 52a07698d2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RankEvalResponse.g.cs +++ /dev/null @@ -1,48 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class RankEvalResponse : ElasticsearchResponse -{ - /// - /// - /// The details section contains one entry for every query in the original requests section, keyed by the search request id - /// - /// - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyDictionary Details { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyDictionary Failures { get; init; } - - /// - /// - /// The overall evaluation quality calculated by the defined metric - /// - /// - [JsonInclude, JsonPropertyName("metric_score")] - public double MetricScore { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs deleted file mode 100644 index 2bdf65a0f2d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs +++ /dev/null @@ -1,683 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ReindexRequestParameters : RequestParameters -{ - /// - /// - /// If true, the request refreshes affected shards to make this operation visible to search. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// The throttle for this request in sub-requests per second. - /// Defaults to no throttle. - /// - /// - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } - - /// - /// - /// If true, the destination must be an index alias. - /// - /// - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// Specifies how long a consistent view of the index should be maintained for scrolled search. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// The number of slices this task should be divided into. - /// Defaults to 1 slice, meaning the task isn’t sliced into subtasks. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } - - /// - /// - /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If true, the request blocks until the operation is complete. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// 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 -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "reindex"; - - /// - /// - /// If true, the request refreshes affected shards to make this operation visible to search. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// The throttle for this request in sub-requests per second. - /// Defaults to no throttle. - /// - /// - [JsonIgnore] - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } - - /// - /// - /// If true, the destination must be an index alias. - /// - /// - [JsonIgnore] - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// Specifies how long a consistent view of the index should be maintained for scrolled search. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// The number of slices this task should be divided into. - /// Defaults to 1 slice, meaning the task isn’t sliced into subtasks. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } - - /// - /// - /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If true, the request blocks until the operation is complete. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - /// - /// - /// Set to proceed to continue reindexing even if there are conflicts. - /// - /// - [JsonInclude, JsonPropertyName("conflicts")] - public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get; set; } - - /// - /// - /// The destination you are copying to. - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination Dest { get; set; } - - /// - /// - /// The maximum number of documents to reindex. - /// - /// - [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; set; } - - /// - /// - /// The script to run to update the document source or metadata when reindexing. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("size")] - public long? Size { get; set; } - - /// - /// - /// The source you are copying from. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source Source { get; set; } -} - -/// -/// -/// 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> -{ - internal ReindexRequestDescriptor(Action> configure) => configure.Invoke(this); - - public ReindexRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "reindex"; - - public ReindexRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public ReindexRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - public ReindexRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); - public ReindexRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public ReindexRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); - public ReindexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public ReindexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public ReindexRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - private Elastic.Clients.Elasticsearch.Serverless.Conflicts? ConflictsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.DestinationDescriptor DestDescriptor { get; set; } - 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; } - private Action> SourceDescriptorAction { get; set; } - - /// - /// - /// Set to proceed to continue reindexing even if there are conflicts. - /// - /// - public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) - { - ConflictsValue = conflicts; - return Self; - } - - /// - /// - /// The destination you are copying to. - /// - /// - public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public ReindexRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum number of documents to reindex. - /// - /// - public ReindexRequestDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - /// - /// - /// The script to run to update the document source or metadata when reindexing. - /// - /// - 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; - return Self; - } - - /// - /// - /// The source you are copying from. - /// - /// - public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public ReindexRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConflictsValue is not null) - { - writer.WritePropertyName("conflicts"); - JsonSerializer.Serialize(writer, ConflictsValue, options); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.DestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - 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); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.SourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal ReindexRequestDescriptor(Action configure) => configure.Invoke(this); - - public ReindexRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindex; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "reindex"; - - public ReindexRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public ReindexRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - public ReindexRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); - public ReindexRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public ReindexRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); - public ReindexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public ReindexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public ReindexRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - private Elastic.Clients.Elasticsearch.Serverless.Conflicts? ConflictsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.DestinationDescriptor DestDescriptor { get; set; } - 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; } - private Action SourceDescriptorAction { get; set; } - - /// - /// - /// Set to proceed to continue reindexing even if there are conflicts. - /// - /// - public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) - { - ConflictsValue = conflicts; - return Self; - } - - /// - /// - /// The destination you are copying to. - /// - /// - public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public ReindexRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum number of documents to reindex. - /// - /// - public ReindexRequestDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - /// - /// - /// The script to run to update the document source or metadata when reindexing. - /// - /// - 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; - return Self; - } - - /// - /// - /// The source you are copying from. - /// - /// - public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public ReindexRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConflictsValue is not null) - { - writer.WritePropertyName("conflicts"); - JsonSerializer.Serialize(writer, ConflictsValue, options); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.DestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - 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); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.SourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs deleted file mode 100644 index b6ff9020f2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs +++ /dev/null @@ -1,63 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ReindexResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("batches")] - public long? Batches { get; init; } - [JsonInclude, JsonPropertyName("created")] - public long? Created { get; init; } - [JsonInclude, JsonPropertyName("deleted")] - public long? Deleted { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - [JsonInclude, JsonPropertyName("noops")] - public long? Noops { get; init; } - [JsonInclude, JsonPropertyName("requests_per_second")] - public float? RequestsPerSecond { get; init; } - [JsonInclude, JsonPropertyName("retries")] - public Elastic.Clients.Elasticsearch.Serverless.Retries? Retries { get; init; } - [JsonInclude, JsonPropertyName("slice_id")] - public int? SliceId { get; init; } - [JsonInclude, JsonPropertyName("task")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? Task { get; init; } - [JsonInclude, JsonPropertyName("throttled_millis")] - public long? ThrottledMillis { get; init; } - [JsonInclude, JsonPropertyName("throttled_until_millis")] - public long? ThrottledUntilMillis { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool? TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long? Total { get; init; } - [JsonInclude, JsonPropertyName("updated")] - public long? Updated { get; init; } - [JsonInclude, JsonPropertyName("version_conflicts")] - public long? VersionConflicts { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs deleted file mode 100644 index 8bcfea0159a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs +++ /dev/null @@ -1,109 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ReindexRethrottleRequestParameters : RequestParameters -{ - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } -} - -/// -/// -/// Throttle a reindex operation. -/// -/// -/// Change the number of requests per second for a particular reindex operation. -/// -/// -public sealed partial class ReindexRethrottleRequest : PlainRequest -{ - public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.Id taskId) : base(r => r.Required("task_id", taskId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindexRethrottle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "reindex_rethrottle"; - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - [JsonIgnore] - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } -} - -/// -/// -/// Throttle a reindex operation. -/// -/// -/// Change the number of requests per second for a particular reindex operation. -/// -/// -public sealed partial class ReindexRethrottleRequestDescriptor : RequestDescriptor -{ - internal ReindexRethrottleRequestDescriptor(Action configure) => configure.Invoke(this); - - public ReindexRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id taskId) : base(r => r.Required("task_id", taskId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindexRethrottle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "reindex_rethrottle"; - - public ReindexRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - - public ReindexRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.Id taskId) - { - RouteValues.Required("task_id", taskId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs deleted file mode 100644 index 19f4f37fe97..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ReindexRethrottleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs deleted file mode 100644 index 7a9a01ec4d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ /dev/null @@ -1,278 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 RenderSearchTemplateRequestParameters : RequestParameters -{ -} - -/// -/// -/// Render a search template. -/// -/// -/// Render a search template as a search request body. -/// -/// -public sealed partial class RenderSearchTemplateRequest : PlainRequest -{ - public RenderSearchTemplateRequest() - { - } - - public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRenderSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "render_search_template"; - - [JsonInclude, JsonPropertyName("file")] - public string? File { get; set; } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// An inline search template. - /// Supports the same parameters as the search API's request body. - /// These parameters also support Mustache variables. - /// If no id or <templated-id> is specified, this parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string? Source { get; set; } -} - -/// -/// -/// Render a search template. -/// -/// -/// Render a search template as a search request body. -/// -/// -public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor, RenderSearchTemplateRequestParameters> -{ - internal RenderSearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public RenderSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public RenderSearchTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRenderSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "render_search_template"; - - public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private string? FileValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private string? SourceValue { get; set; } - - public RenderSearchTemplateRequestDescriptor File(string? file) - { - FileValue = file; - return Self; - } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// An inline search template. - /// Supports the same parameters as the search API's request body. - /// These parameters also support Mustache variables. - /// If no id or <templated-id> is specified, this parameter is required. - /// - /// - public RenderSearchTemplateRequestDescriptor Source(string? source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FileValue)) - { - writer.WritePropertyName("file"); - writer.WriteStringValue(FileValue); - } - - 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(); - } -} - -/// -/// -/// Render a search template. -/// -/// -/// Render a search template as a search request body. -/// -/// -public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor -{ - internal RenderSearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public RenderSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Optional("id", id)) - { - } - - public RenderSearchTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRenderSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "render_search_template"; - - public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - private string? FileValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private string? SourceValue { get; set; } - - public RenderSearchTemplateRequestDescriptor File(string? file) - { - FileValue = file; - return Self; - } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// An inline search template. - /// Supports the same parameters as the search API's request body. - /// These parameters also support Mustache variables. - /// If no id or <templated-id> is specified, this parameter is required. - /// - /// - public RenderSearchTemplateRequestDescriptor Source(string? source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FileValue)) - { - writer.WritePropertyName("file"); - writer.WriteStringValue(FileValue); - } - - 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/Api/RenderSearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateResponse.g.cs deleted file mode 100644 index 0ca6fcf6f2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class RenderSearchTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("template_output")] - public IReadOnlyDictionary TemplateOutput { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs deleted file mode 100644 index c86812de36d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollRequest.g.cs +++ /dev/null @@ -1,178 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 ScrollRequestParameters : RequestParameters -{ - /// - /// - /// If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object. - /// - /// - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } -} - -/// -/// -/// Run a scrolling search. -/// -/// -/// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). -/// -/// -/// The scroll API gets large sets of results from a single scrolling search request. -/// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. -/// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. -/// The search response returns a scroll ID in the _scroll_id response body parameter. -/// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. -/// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. -/// -/// -/// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. -/// -/// -/// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. -/// -/// -public sealed partial class ScrollRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceScroll; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "scroll"; - - /// - /// - /// If true, the API response’s hit.total property is returned as an integer. If false, the API response’s hit.total property is returned as an object. - /// - /// - [JsonIgnore] - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Period to retain the search context for scrolling. - /// - /// - [JsonInclude, JsonPropertyName("scroll")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get; set; } - - /// - /// - /// Scroll ID of the search. - /// - /// - [JsonInclude, JsonPropertyName("scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollId ScrollId { get; set; } -} - -/// -/// -/// Run a scrolling search. -/// -/// -/// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). -/// -/// -/// The scroll API gets large sets of results from a single scrolling search request. -/// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. -/// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. -/// The search response returns a scroll ID in the _scroll_id response body parameter. -/// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. -/// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. -/// -/// -/// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. -/// -/// -/// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. -/// -/// -public sealed partial class ScrollRequestDescriptor : RequestDescriptor -{ - internal ScrollRequestDescriptor(Action configure) => configure.Invoke(this); - - public ScrollRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceScroll; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "scroll"; - - public ScrollRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - - private Elastic.Clients.Elasticsearch.Serverless.Duration? ScrollValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ScrollId ScrollIdValue { get; set; } - - /// - /// - /// Period to retain the search context for scrolling. - /// - /// - public ScrollRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) - { - ScrollValue = scroll; - return Self; - } - - /// - /// - /// Scroll ID of the search. - /// - /// - public ScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.Serverless.ScrollId scrollId) - { - ScrollIdValue = scrollId; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ScrollValue is not null) - { - writer.WritePropertyName("scroll"); - JsonSerializer.Serialize(writer, ScrollValue, options); - } - - writer.WritePropertyName("scroll_id"); - JsonSerializer.Serialize(writer, ScrollIdValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollResponse.g.cs deleted file mode 100644 index 3a5ffc51772..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ScrollResponse.g.cs +++ /dev/null @@ -1,59 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class ScrollResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregations")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("_clusters")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata HitsMetadata { get; init; } - [JsonInclude, JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - [JsonInclude, JsonPropertyName("num_reduce_phases")] - public long? NumReducePhases { get; init; } - [JsonInclude, JsonPropertyName("pit_id")] - public string? PitId { get; init; } - [JsonInclude, JsonPropertyName("profile")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Profile? Profile { get; init; } - [JsonInclude, JsonPropertyName("_scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollId? ScrollId { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestDictionary? Suggest { get; init; } - [JsonInclude, JsonPropertyName("terminated_early")] - public bool? TerminatedEarly { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs deleted file mode 100644 index f66e7e1f320..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtRequest.g.cs +++ /dev/null @@ -1,1123 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 SearchMvtRequestParameters : RequestParameters -{ -} - -/// -/// -/// Search a vector tile. -/// -/// -/// Search a vector tile for geospatial values. -/// -/// -public sealed partial class SearchMvtRequest : PlainRequest -{ - public SearchMvtRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y) : base(r => r.Required("index", indices).Required("field", field).Required("zoom", zoom).Required("x", x).Required("y", y)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchMvt; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search_mvt"; - - /// - /// - /// Sub-aggregations for the geotile_grid. - /// - /// - /// Supports the following aggregation types: - /// - /// - /// - /// - /// avg - /// - /// - /// - /// - /// cardinality - /// - /// - /// - /// - /// max - /// - /// - /// - /// - /// min - /// - /// - /// - /// - /// sum - /// - /// - /// - /// - [JsonInclude, JsonPropertyName("aggs")] - public IDictionary? Aggs { get; set; } - - /// - /// - /// Size, in pixels, of a clipping buffer outside the tile. This allows renderers - /// to avoid outline artifacts from geometries that extend past the extent of the tile. - /// - /// - [JsonInclude, JsonPropertyName("buffer")] - public int? Buffer { get; set; } - - /// - /// - /// If false, the meta layer’s feature is the bounding box of the tile. - /// If true, the meta layer’s feature is a bounding box resulting from a - /// geo_bounds aggregation. The aggregation runs on <field> values that intersect - /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting - /// bounding box may be larger than the vector tile. - /// - /// - [JsonInclude, JsonPropertyName("exact_bounds")] - public bool? ExactBounds { get; set; } - - /// - /// - /// Size, in pixels, of a side of the tile. Vector tiles are square with equal sides. - /// - /// - [JsonInclude, JsonPropertyName("extent")] - public int? Extent { get; set; } - - /// - /// - /// Fields to return in the hits layer. Supports wildcards (*). - /// This parameter does not support fields with array values. Fields with array - /// values may return inconsistent results. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// Aggregation used to create a grid for the field. - /// - /// - [JsonInclude, JsonPropertyName("grid_agg")] - public Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridAggregationType? GridAgg { get; set; } - - /// - /// - /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 - /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results - /// don’t include the aggs layer. - /// - /// - [JsonInclude, JsonPropertyName("grid_precision")] - public int? GridPrecision { get; set; } - - /// - /// - /// Determines the geometry type for features in the aggs layer. In the aggs layer, - /// each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon - /// of the cells bounding box. If 'point' each feature is a Point that is the centroid - /// of the cell. - /// - /// - [JsonInclude, JsonPropertyName("grid_type")] - public Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridType? GridType { get; set; } - - /// - /// - /// Query DSL used to filter documents for the search. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Maximum number of features to return in the hits layer. Accepts 0-10000. - /// If 0, results don’t include the hits layer. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Sorts features in the hits layer. By default, the API calculates a bounding - /// box for each feature. It sorts features based on this box’s diagonal length, - /// from longest to shortest. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact number - /// of hits is returned at the cost of some performance. If false, the response does - /// not include the total number of hits matching the query. - /// - /// - [JsonInclude, JsonPropertyName("track_total_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHits { get; set; } - - /// - /// - /// If true, the hits and aggs layers will contain additional point features representing - /// suggested label positions for the original features. - /// - /// - [JsonInclude, JsonPropertyName("with_labels")] - public bool? WithLabels { get; set; } -} - -/// -/// -/// Search a vector tile. -/// -/// -/// Search a vector tile for geospatial values. -/// -/// -public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor, SearchMvtRequestParameters> -{ - internal SearchMvtRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y) : base(r => r.Required("index", indices).Required("field", field).Required("zoom", zoom).Required("x", x).Required("y", y)) - { - } - - public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y) : this(typeof(TDocument), field, zoom, x, y) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchMvt; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search_mvt"; - - public SearchMvtRequestDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - RouteValues.Required("field", field); - return Self; - } - - public SearchMvtRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - public SearchMvtRequestDescriptor x(int x) - { - RouteValues.Required("x", x); - return Self; - } - - public SearchMvtRequestDescriptor y(int y) - { - RouteValues.Required("y", y); - return Self; - } - - public SearchMvtRequestDescriptor Zoom(int zoom) - { - RouteValues.Required("zoom", zoom); - return Self; - } - - private IDictionary> AggsValue { get; set; } - private int? BufferValue { get; set; } - private bool? ExactBoundsValue { get; set; } - private int? ExtentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridAggregationType? GridAggValue { get; set; } - private int? GridPrecisionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridType? GridTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? WithLabelsValue { get; set; } - - /// - /// - /// Sub-aggregations for the geotile_grid. - /// - /// - /// Supports the following aggregation types: - /// - /// - /// - /// - /// avg - /// - /// - /// - /// - /// cardinality - /// - /// - /// - /// - /// max - /// - /// - /// - /// - /// min - /// - /// - /// - /// - /// sum - /// - /// - /// - /// - public SearchMvtRequestDescriptor Aggs(Func>, FluentDescriptorDictionary>> selector) - { - AggsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Size, in pixels, of a clipping buffer outside the tile. This allows renderers - /// to avoid outline artifacts from geometries that extend past the extent of the tile. - /// - /// - public SearchMvtRequestDescriptor Buffer(int? buffer) - { - BufferValue = buffer; - return Self; - } - - /// - /// - /// If false, the meta layer’s feature is the bounding box of the tile. - /// If true, the meta layer’s feature is a bounding box resulting from a - /// geo_bounds aggregation. The aggregation runs on <field> values that intersect - /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting - /// bounding box may be larger than the vector tile. - /// - /// - public SearchMvtRequestDescriptor ExactBounds(bool? exactBounds = true) - { - ExactBoundsValue = exactBounds; - return Self; - } - - /// - /// - /// Size, in pixels, of a side of the tile. Vector tiles are square with equal sides. - /// - /// - public SearchMvtRequestDescriptor Extent(int? extent) - { - ExtentValue = extent; - return Self; - } - - /// - /// - /// Fields to return in the hits layer. Supports wildcards (*). - /// This parameter does not support fields with array values. Fields with array - /// values may return inconsistent results. - /// - /// - public SearchMvtRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Aggregation used to create a grid for the field. - /// - /// - public SearchMvtRequestDescriptor GridAgg(Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridAggregationType? gridAgg) - { - GridAggValue = gridAgg; - return Self; - } - - /// - /// - /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 - /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results - /// don’t include the aggs layer. - /// - /// - public SearchMvtRequestDescriptor GridPrecision(int? gridPrecision) - { - GridPrecisionValue = gridPrecision; - return Self; - } - - /// - /// - /// Determines the geometry type for features in the aggs layer. In the aggs layer, - /// each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon - /// of the cells bounding box. If 'point' each feature is a Point that is the centroid - /// of the cell. - /// - /// - public SearchMvtRequestDescriptor GridType(Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridType? gridType) - { - GridTypeValue = gridType; - return Self; - } - - /// - /// - /// Query DSL used to filter documents for the search. - /// - /// - public SearchMvtRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SearchMvtRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SearchMvtRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public SearchMvtRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Maximum number of features to return in the hits layer. Accepts 0-10000. - /// If 0, results don’t include the hits layer. - /// - /// - public SearchMvtRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Sorts features in the hits layer. By default, the API calculates a bounding - /// box for each feature. It sorts features based on this box’s diagonal length, - /// from longest to shortest. - /// - /// - public SearchMvtRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SearchMvtRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SearchMvtRequestDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SearchMvtRequestDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact number - /// of hits is returned at the cost of some performance. If false, the response does - /// not include the total number of hits matching the query. - /// - /// - public SearchMvtRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, the hits and aggs layers will contain additional point features representing - /// suggested label positions for the original features. - /// - /// - public SearchMvtRequestDescriptor WithLabels(bool? withLabels = true) - { - WithLabelsValue = withLabels; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggsValue is not null) - { - writer.WritePropertyName("aggs"); - JsonSerializer.Serialize(writer, AggsValue, options); - } - - if (BufferValue.HasValue) - { - writer.WritePropertyName("buffer"); - writer.WriteNumberValue(BufferValue.Value); - } - - if (ExactBoundsValue.HasValue) - { - writer.WritePropertyName("exact_bounds"); - writer.WriteBooleanValue(ExactBoundsValue.Value); - } - - if (ExtentValue.HasValue) - { - writer.WritePropertyName("extent"); - writer.WriteNumberValue(ExtentValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (GridAggValue is not null) - { - writer.WritePropertyName("grid_agg"); - JsonSerializer.Serialize(writer, GridAggValue, options); - } - - if (GridPrecisionValue.HasValue) - { - writer.WritePropertyName("grid_precision"); - writer.WriteNumberValue(GridPrecisionValue.Value); - } - - if (GridTypeValue is not null) - { - writer.WritePropertyName("grid_type"); - JsonSerializer.Serialize(writer, GridTypeValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (WithLabelsValue.HasValue) - { - writer.WritePropertyName("with_labels"); - writer.WriteBooleanValue(WithLabelsValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Search a vector tile. -/// -/// -/// Search a vector tile for geospatial values. -/// -/// -public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor -{ - internal SearchMvtRequestDescriptor(Action configure) => configure.Invoke(this); - - public SearchMvtRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Elastic.Clients.Elasticsearch.Serverless.Field field, int zoom, int x, int y) : base(r => r.Required("index", indices).Required("field", field).Required("zoom", zoom).Required("x", x).Required("y", y)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchMvt; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search_mvt"; - - public SearchMvtRequestDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - RouteValues.Required("field", field); - return Self; - } - - public SearchMvtRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - public SearchMvtRequestDescriptor x(int x) - { - RouteValues.Required("x", x); - return Self; - } - - public SearchMvtRequestDescriptor y(int y) - { - RouteValues.Required("y", y); - return Self; - } - - public SearchMvtRequestDescriptor Zoom(int zoom) - { - RouteValues.Required("zoom", zoom); - return Self; - } - - private IDictionary AggsValue { get; set; } - private int? BufferValue { get; set; } - private bool? ExactBoundsValue { get; set; } - private int? ExtentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridAggregationType? GridAggValue { get; set; } - private int? GridPrecisionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridType? GridTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? WithLabelsValue { get; set; } - - /// - /// - /// Sub-aggregations for the geotile_grid. - /// - /// - /// Supports the following aggregation types: - /// - /// - /// - /// - /// avg - /// - /// - /// - /// - /// cardinality - /// - /// - /// - /// - /// max - /// - /// - /// - /// - /// min - /// - /// - /// - /// - /// sum - /// - /// - /// - /// - public SearchMvtRequestDescriptor Aggs(Func, FluentDescriptorDictionary> selector) - { - AggsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Size, in pixels, of a clipping buffer outside the tile. This allows renderers - /// to avoid outline artifacts from geometries that extend past the extent of the tile. - /// - /// - public SearchMvtRequestDescriptor Buffer(int? buffer) - { - BufferValue = buffer; - return Self; - } - - /// - /// - /// If false, the meta layer’s feature is the bounding box of the tile. - /// If true, the meta layer’s feature is a bounding box resulting from a - /// geo_bounds aggregation. The aggregation runs on <field> values that intersect - /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting - /// bounding box may be larger than the vector tile. - /// - /// - public SearchMvtRequestDescriptor ExactBounds(bool? exactBounds = true) - { - ExactBoundsValue = exactBounds; - return Self; - } - - /// - /// - /// Size, in pixels, of a side of the tile. Vector tiles are square with equal sides. - /// - /// - public SearchMvtRequestDescriptor Extent(int? extent) - { - ExtentValue = extent; - return Self; - } - - /// - /// - /// Fields to return in the hits layer. Supports wildcards (*). - /// This parameter does not support fields with array values. Fields with array - /// values may return inconsistent results. - /// - /// - public SearchMvtRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Aggregation used to create a grid for the field. - /// - /// - public SearchMvtRequestDescriptor GridAgg(Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridAggregationType? gridAgg) - { - GridAggValue = gridAgg; - return Self; - } - - /// - /// - /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 - /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results - /// don’t include the aggs layer. - /// - /// - public SearchMvtRequestDescriptor GridPrecision(int? gridPrecision) - { - GridPrecisionValue = gridPrecision; - return Self; - } - - /// - /// - /// Determines the geometry type for features in the aggs layer. In the aggs layer, - /// each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon - /// of the cells bounding box. If 'point' each feature is a Point that is the centroid - /// of the cell. - /// - /// - public SearchMvtRequestDescriptor GridType(Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt.GridType? gridType) - { - GridTypeValue = gridType; - return Self; - } - - /// - /// - /// Query DSL used to filter documents for the search. - /// - /// - public SearchMvtRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SearchMvtRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SearchMvtRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public SearchMvtRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Maximum number of features to return in the hits layer. Accepts 0-10000. - /// If 0, results don’t include the hits layer. - /// - /// - public SearchMvtRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Sorts features in the hits layer. By default, the API calculates a bounding - /// box for each feature. It sorts features based on this box’s diagonal length, - /// from longest to shortest. - /// - /// - public SearchMvtRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SearchMvtRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SearchMvtRequestDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SearchMvtRequestDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact number - /// of hits is returned at the cost of some performance. If false, the response does - /// not include the total number of hits matching the query. - /// - /// - public SearchMvtRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, the hits and aggs layers will contain additional point features representing - /// suggested label positions for the original features. - /// - /// - public SearchMvtRequestDescriptor WithLabels(bool? withLabels = true) - { - WithLabelsValue = withLabels; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggsValue is not null) - { - writer.WritePropertyName("aggs"); - JsonSerializer.Serialize(writer, AggsValue, options); - } - - if (BufferValue.HasValue) - { - writer.WritePropertyName("buffer"); - writer.WriteNumberValue(BufferValue.Value); - } - - if (ExactBoundsValue.HasValue) - { - writer.WritePropertyName("exact_bounds"); - writer.WriteBooleanValue(ExactBoundsValue.Value); - } - - if (ExtentValue.HasValue) - { - writer.WritePropertyName("extent"); - writer.WriteNumberValue(ExtentValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (GridAggValue is not null) - { - writer.WritePropertyName("grid_agg"); - JsonSerializer.Serialize(writer, GridAggValue, options); - } - - if (GridPrecisionValue.HasValue) - { - writer.WritePropertyName("grid_precision"); - writer.WriteNumberValue(GridPrecisionValue.Value); - } - - if (GridTypeValue is not null) - { - writer.WritePropertyName("grid_type"); - JsonSerializer.Serialize(writer, GridTypeValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (WithLabelsValue.HasValue) - { - writer.WritePropertyName("with_labels"); - writer.WriteBooleanValue(WithLabelsValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtResponse.g.cs deleted file mode 100644 index 440b5b72c18..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchMvtResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class SearchMvtResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs deleted file mode 100644 index d7dfb6182ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchRequest.g.cs +++ /dev/null @@ -1,3714 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 SearchRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, returns partial results if there are shard request timeouts or shard failures. If false, returns an error with no partial results. - /// - /// - public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The number of shard results that should be reduced at once on the coordinating node. - /// This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. - /// - /// - public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } - - /// - /// - /// If true, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. - /// - /// - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, concrete, expanded or aliased indices will be ignored when frozen. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Defines the number of concurrent shard requests per node this search executes concurrently. - /// This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. - /// - /// - public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - - /// - /// - /// Nodes and shards used for the search. - /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: - /// _only_local to run the search only on shards on the local node; - /// _local to, if possible, run the search on shards on the local node, or if not, select shards using the default method; - /// _only_nodes:<node-id>,<node-id> to run the search on only the specified nodes IDs, where, if suitable shards exist on more than one selected node, use shards on those nodes using the default method, or if none of the specified nodes are available, select shards from any available node using the default method; - /// _prefer_nodes:<node-id>,<node-id> to if possible, run the search on the specified nodes IDs, or if not, select shards using the default method; - /// _shards:<shard>,<shard> to run the search only on the specified shards; - /// <custom-string> (any string that does not start with _) to route searches with the same <custom-string> to the same shards in the same order. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. - /// This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). - /// When unspecified, the pre-filter phase is executed if any of these conditions is met: - /// the request targets more than 128 shards; - /// the request targets one or more read-only index; - /// the primary sort of the query targets an indexed field. - /// - /// - public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } - - /// - /// - /// Query in the Lucene query string syntax using query parameter search. - /// Query parameter searches do not support the full Elasticsearch Query DSL but are handy for testing. - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, the caching of search results is enabled for requests where size is 0. - /// Defaults to index level settings. - /// - /// - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response. - /// - /// - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to retain the search context for scrolling. See Scroll search results. - /// By default, this value cannot exceed 1d (24 hours). - /// You can change this limit using the search.max_keep_alive cluster-level setting. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// How distributed term frequencies are calculated for relevance scoring. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. - /// If the _source parameter is false, this parameter is ignored. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// If this parameter is specified, only these source fields are returned. - /// You can exclude fields from this subset using the _source_excludes query parameter. - /// If the _source parameter is false, this parameter is ignored. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Specifies which field to use for suggestions. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); } - - /// - /// - /// Specifies the suggest mode. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); } - - /// - /// - /// Number of suggestions to return. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. - /// - /// - public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); } - - /// - /// - /// The source text for which the suggestions should be returned. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. - /// - /// - public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); } - - /// - /// - /// If true, aggregation and suggester names are be prefixed by their respective types in the response. - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } -} - -internal sealed partial class SearchRequestConverter : JsonConverter -{ - public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new SearchRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "collapse") - { - variant.Collapse = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "docvalue_fields") - { - variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "explain") - { - variant.Explain = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "ext") - { - variant.Ext = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "fields") - { - variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "highlight") - { - variant.Highlight = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices_boost") - { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); - continue; - } - - if (property == "knn") - { - variant.Knn = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "min_score") - { - variant.MinScore = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "pit") - { - variant.Pit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "post_filter") - { - variant.PostFilter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "profile") - { - variant.Profile = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rescore") - { - variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "retriever") - { - variant.Retriever = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "search_after") - { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "seq_no_primary_term") - { - variant.SeqNoPrimaryTerm = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "size") - { - variant.Size = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "slice") - { - variant.Slice = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "sort") - { - variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "_source") - { - variant.Source = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "stats") - { - variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "stored_fields") - { - variant.StoredFields = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "suggest") - { - variant.Suggest = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "terminate_after") - { - variant.TerminateAfter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "timeout") - { - variant.Timeout = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "track_scores") - { - variant.TrackScores = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "track_total_hits") - { - variant.TrackTotalHits = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "version") - { - variant.Version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.Collapse is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, value.Collapse, options); - } - - if (value.DocvalueFields is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, value.DocvalueFields, options); - } - - if (value.Explain.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(value.Explain.Value); - } - - if (value.Ext is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, value.Ext, options); - } - - if (value.Fields is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, value.Fields, options); - } - - if (value.From.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(value.From.Value); - } - - if (value.Highlight is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, value.Highlight, options); - } - - if (value.IndicesBoost is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, value.IndicesBoost, options); - } - - if (value.Knn is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, value.Knn, options); - } - - if (value.MinScore.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(value.MinScore.Value); - } - - if (value.Pit is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, value.Pit, options); - } - - if (value.PostFilter is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, value.PostFilter, options); - } - - if (value.Profile.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(value.Profile.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.Rescore is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, value.Rescore, options); - } - - if (value.Retriever is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, value.Retriever, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.SearchAfter is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, value.SearchAfter, options); - } - - if (value.SeqNoPrimaryTerm.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(value.SeqNoPrimaryTerm.Value); - } - - if (value.Size.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(value.Size.Value); - } - - if (value.Slice is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, value.Slice, options); - } - - if (value.Sort is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, value.Sort, options); - } - - if (value.Source is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, value.Source, options); - } - - if (value.Stats is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, value.Stats, options); - } - - if (value.StoredFields is not null) - { - writer.WritePropertyName("stored_fields"); - new FieldsConverter().Write(writer, value.StoredFields, options); - } - - if (value.Suggest is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, value.Suggest, options); - } - - if (value.TerminateAfter.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(value.TerminateAfter.Value); - } - - if (!string.IsNullOrEmpty(value.Timeout)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(value.Timeout); - } - - if (value.TrackScores.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(value.TrackScores.Value); - } - - if (value.TrackTotalHits is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, value.TrackTotalHits, options); - } - - if (value.Version.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(value.Version.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Run a search. -/// -/// -/// Get search hits that match the query defined in the request. -/// You can provide search queries using the q query string parameter or the request body. -/// If both are specified, only the query parameter is used. -/// -/// -[JsonConverter(typeof(SearchRequestConverter))] -public partial class SearchRequest : PlainRequest -{ - public SearchRequest() - { - } - - public SearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, returns partial results if there are shard request timeouts or shard failures. If false, returns an error with no partial results. - /// - /// - [JsonIgnore] - public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } - - /// - /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The number of shard results that should be reduced at once on the coordinating node. - /// This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. - /// - /// - [JsonIgnore] - public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } - - /// - /// - /// If true, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. - /// - /// - [JsonIgnore] - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, concrete, expanded or aliased indices will be ignored when frozen. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// This parameter can only be used when the q query string parameter is specified. - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// Defines the number of concurrent shard requests per node this search executes concurrently. - /// This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. - /// - /// - [JsonIgnore] - public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } - - /// - /// - /// Nodes and shards used for the search. - /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: - /// _only_local to run the search only on shards on the local node; - /// _local to, if possible, run the search on shards on the local node, or if not, select shards using the default method; - /// _only_nodes:<node-id>,<node-id> to run the search on only the specified nodes IDs, where, if suitable shards exist on more than one selected node, use shards on those nodes using the default method, or if none of the specified nodes are available, select shards from any available node using the default method; - /// _prefer_nodes:<node-id>,<node-id> to if possible, run the search on the specified nodes IDs, or if not, select shards using the default method; - /// _shards:<shard>,<shard> to run the search only on the specified shards; - /// <custom-string> (any string that does not start with _) to route searches with the same <custom-string> to the same shards in the same order. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. - /// This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). - /// When unspecified, the pre-filter phase is executed if any of these conditions is met: - /// the request targets more than 128 shards; - /// the request targets one or more read-only index; - /// the primary sort of the query targets an indexed field. - /// - /// - [JsonIgnore] - public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } - - /// - /// - /// Query in the Lucene query string syntax using query parameter search. - /// Query parameter searches do not support the full Elasticsearch Query DSL but are handy for testing. - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, the caching of search results is enabled for requests where size is 0. - /// Defaults to index level settings. - /// - /// - [JsonIgnore] - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response. - /// - /// - [JsonIgnore] - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to retain the search context for scrolling. See Scroll search results. - /// By default, this value cannot exceed 1d (24 hours). - /// You can change this limit using the search.max_keep_alive cluster-level setting. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// How distributed term frequencies are calculated for relevance scoring. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// A comma-separated list of source fields to exclude from the response. - /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. - /// If the _source parameter is false, this parameter is ignored. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// A comma-separated list of source fields to include in the response. - /// If this parameter is specified, only these source fields are returned. - /// You can exclude fields from this subset using the _source_excludes query parameter. - /// If the _source parameter is false, this parameter is ignored. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Specifies which field to use for suggestions. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); } - - /// - /// - /// Specifies the suggest mode. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); } - - /// - /// - /// Number of suggestions to return. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. - /// - /// - [JsonIgnore] - public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); } - - /// - /// - /// The source text for which the suggestions should be returned. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. - /// - /// - [JsonIgnore] - public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); } - - /// - /// - /// If true, aggregation and suggester names are be prefixed by their respective types in the response. - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Defines the aggregations that are run as part of the search request. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - - /// - /// - /// Collapses search results the values of the specified field. - /// - /// - [JsonInclude, JsonPropertyName("collapse")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. - /// The request returns doc values for field names matching these patterns in the hits.fields property of the response. - /// - /// - [JsonInclude, JsonPropertyName("docvalue_fields")] - public ICollection? DocvalueFields { get; set; } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; set; } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - [JsonInclude, JsonPropertyName("ext")] - public IDictionary? Ext { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. - /// The request returns values for field names matching these patterns in the hits.fields property of the response. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - public ICollection? Fields { get; set; } - - /// - /// - /// Starting document offset. - /// Needs to be non-negative. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results. - /// - /// - [JsonInclude, JsonPropertyName("highlight")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? Highlight { get; set; } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - [JsonInclude, JsonPropertyName("indices_boost")] - public ICollection>? IndicesBoost { get; set; } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - [JsonInclude, JsonPropertyName("knn")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.KnnSearch))] - public ICollection? Knn { get; set; } - - /// - /// - /// Minimum _score for matching documents. - /// Documents with a lower _score are not included in the search results. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public double? MinScore { get; set; } - - /// - /// - /// Limits the search to a point in time (PIT). - /// If you provide a PIT, you cannot specify an <index> in the request path. - /// - /// - [JsonInclude, JsonPropertyName("pit")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? Pit { get; set; } - - /// - /// - /// Use the post_filter parameter to filter search results. - /// The search hits are filtered after the aggregations are calculated. - /// A post filter has no impact on the aggregation results. - /// - /// - [JsonInclude, JsonPropertyName("post_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilter { get; set; } - - /// - /// - /// Set to true to return detailed timing information about the execution of individual components in a search request. - /// NOTE: This is a debugging tool and adds significant overhead to search execution. - /// - /// - [JsonInclude, JsonPropertyName("profile")] - public bool? Profile { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases. - /// - /// - [JsonInclude, JsonPropertyName("rescore")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore))] - public ICollection? Rescore { get; set; } - - /// - /// - /// A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. - /// - /// - [JsonInclude, JsonPropertyName("retriever")] - public Elastic.Clients.Elasticsearch.Serverless.Retriever? Retriever { get; set; } - - /// - /// - /// Defines one or more runtime fields in the search request. - /// These fields take precedence over mapped fields with the same name. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - [JsonInclude, JsonPropertyName("script_fields")] - public IDictionary? ScriptFields { get; set; } - - /// - /// - /// Used to retrieve the next page of hits using a set of sort values from the previous page. - /// - /// - [JsonInclude, JsonPropertyName("search_after")] - public ICollection? SearchAfter { get; set; } - - /// - /// - /// If true, returns sequence number and primary term of the last modification of each hit. - /// - /// - [JsonInclude, JsonPropertyName("seq_no_primary_term")] - public bool? SeqNoPrimaryTerm { get; set; } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Can be used to split a scrolled search into multiple slices that can be consumed independently. - /// - /// - [JsonInclude, JsonPropertyName("slice")] - public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - /// - /// - /// Indicates which source fields are returned for matching documents. - /// These fields are returned in the hits._source property of the search response. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - - /// - /// - /// Stats groups to associate with the search. - /// Each group maintains a statistics aggregation for its associated searches. - /// You can retrieve these stats using the indices stats API. - /// - /// - [JsonInclude, JsonPropertyName("stats")] - public ICollection? Stats { get; set; } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// You can pass _source: true to return both source fields and stored fields in the search response. - /// - /// - [JsonInclude, JsonPropertyName("stored_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; } - - /// - /// - /// Defines a suggester that provides similar looking terms based on a provided text. - /// - /// - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? Suggest { get; set; } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// If set to 0 (default), the query does not terminate early. - /// - /// - [JsonInclude, JsonPropertyName("terminate_after")] - public long? TerminateAfter { get; set; } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public string? Timeout { get; set; } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - [JsonInclude, JsonPropertyName("track_scores")] - public bool? TrackScores { get; set; } - - /// - /// - /// Number of hits matching the query to count accurately. - /// If true, the exact number of hits is returned at the cost of some performance. - /// If false, the response does not include the total number of hits matching the query. - /// - /// - [JsonInclude, JsonPropertyName("track_total_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHits { get; set; } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public bool? Version { get; set; } -} - -/// -/// -/// Run a search. -/// -/// -/// Get search hits that match the query defined in the request. -/// You can provide search queries using the q query string parameter or the request body. -/// If both are specified, only the query parameter is used. -/// -/// -public sealed partial class SearchRequestDescriptor : RequestDescriptor, SearchRequestParameters> -{ - internal SearchRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search"; - - public SearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); - public SearchRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public SearchRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public SearchRequestDescriptor BatchedReduceSize(long? batchedReduceSize) => Qs("batched_reduce_size", batchedReduceSize); - public SearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public SearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public SearchRequestDescriptor Df(string? df) => Qs("df", df); - public SearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); - public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public SearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public SearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public SearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public SearchRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public SearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public SearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public SearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public SearchRequestDescriptor SuggestField(Elastic.Clients.Elasticsearch.Serverless.Field? suggestField) => Qs("suggest_field", suggestField); - public SearchRequestDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) => Qs("suggest_mode", suggestMode); - public SearchRequestDescriptor SuggestSize(long? suggestSize) => Qs("suggest_size", suggestSize); - public SearchRequestDescriptor SuggestText(string? suggestText) => Qs("suggest_text", suggestText); - public SearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private IDictionary> AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action> CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action> DocvalueFieldsDescriptorAction { get; set; } - private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private IDictionary? ExtValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action> FieldsDescriptorAction { get; set; } - private Action>[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action> HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } - private ICollection? KnnValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; } - private Action> KnnDescriptorAction { get; set; } - private Action>[] KnnDescriptorActions { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } - private Action PitDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; } - private Action> PostFilterDescriptorAction { get; set; } - private bool? ProfileValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? RescoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } - private Action> RescoreDescriptorAction { get; set; } - private Action>[] RescoreDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Retriever? RetrieverValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } - private Action> RetrieverDescriptorAction { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private ICollection? SearchAfterValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private ICollection? StatsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; } - private Action> SuggestDescriptorAction { get; set; } - private long? TerminateAfterValue { get; set; } - private string? TimeoutValue { get; set; } - private bool? TrackScoresValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? VersionValue { get; set; } - - /// - /// - /// Defines the aggregations that are run as part of the search request. - /// - /// - public SearchRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Collapses search results the values of the specified field. - /// - /// - public SearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public SearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Collapse(Action> configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. - /// The request returns doc values for field names matching these patterns in the hits.fields property of the response. - /// - /// - public SearchRequestDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public SearchRequestDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor DocvalueFields(Action> configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor DocvalueFields(params Action>[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public SearchRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public SearchRequestDescriptor Ext(Func, FluentDictionary> selector) - { - ExtValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. - /// The request returns values for field names matching these patterns in the hits.fields property of the response. - /// - /// - public SearchRequestDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public SearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Fields(Action> configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Fields(params Action>[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. - /// Needs to be non-negative. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public SearchRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results. - /// - /// - public SearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public SearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Highlight(Action> configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) - { - IndicesBoostValue = indicesBoost; - return Self; - } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public SearchRequestDescriptor Knn(ICollection? knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnValue = knn; - return Self; - } - - public SearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Knn(Action> configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorActions = null; - KnnDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Knn(params Action>[] configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. - /// Documents with a lower _score are not included in the search results. - /// - /// - public SearchRequestDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Limits the search to a point in time (PIT). - /// If you provide a PIT, you cannot specify an <index> in the request path. - /// - /// - public SearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? pit) - { - PitDescriptor = null; - PitDescriptorAction = null; - PitValue = pit; - return Self; - } - - public SearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor) - { - PitValue = null; - PitDescriptorAction = null; - PitDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Pit(Action configure) - { - PitValue = null; - PitDescriptor = null; - PitDescriptorAction = configure; - return Self; - } - - /// - /// - /// Use the post_filter parameter to filter search results. - /// The search hits are filtered after the aggregations are calculated. - /// A post filter has no impact on the aggregation results. - /// - /// - public SearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? postFilter) - { - PostFilterDescriptor = null; - PostFilterDescriptorAction = null; - PostFilterValue = postFilter; - return Self; - } - - public SearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PostFilterValue = null; - PostFilterDescriptorAction = null; - PostFilterDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor PostFilter(Action> configure) - { - PostFilterValue = null; - PostFilterDescriptor = null; - PostFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Set to true to return detailed timing information about the execution of individual components in a search request. - /// NOTE: This is a debugging tool and adds significant overhead to search execution. - /// - /// - public SearchRequestDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public SearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases. - /// - /// - public SearchRequestDescriptor Rescore(ICollection? rescore) - { - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreValue = rescore; - return Self; - } - - public SearchRequestDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor) - { - RescoreValue = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Rescore(Action> configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorActions = null; - RescoreDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Rescore(params Action>[] configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = configure; - return Self; - } - - /// - /// - /// A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. - /// - /// - public SearchRequestDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever? retriever) - { - RetrieverDescriptor = null; - RetrieverDescriptorAction = null; - RetrieverValue = retriever; - return Self; - } - - public SearchRequestDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieverValue = null; - RetrieverDescriptorAction = null; - RetrieverDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Retriever(Action> configure) - { - RetrieverValue = null; - RetrieverDescriptor = null; - RetrieverDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. - /// These fields take precedence over mapped fields with the same name. - /// - /// - public SearchRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public SearchRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Used to retrieve the next page of hits using a set of sort values from the previous page. - /// - /// - public SearchRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification of each hit. - /// - /// - public SearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public SearchRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Can be used to split a scrolled search into multiple slices that can be consumed independently. - /// - /// - public SearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public SearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Slice(Action> configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - public SearchRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SearchRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Indicates which source fields are returned for matching documents. - /// These fields are returned in the hits._source property of the search response. - /// - /// - public SearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Stats groups to associate with the search. - /// Each group maintains a statistics aggregation for its associated searches. - /// You can retrieve these stats using the indices stats API. - /// - /// - public SearchRequestDescriptor Stats(ICollection? stats) - { - StatsValue = stats; - return Self; - } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// You can pass _source: true to return both source fields and stored fields in the search response. - /// - /// - public SearchRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - /// - /// - /// Defines a suggester that provides similar looking terms based on a provided text. - /// - /// - public SearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? suggest) - { - SuggestDescriptor = null; - SuggestDescriptorAction = null; - SuggestValue = suggest; - return Self; - } - - public SearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor) - { - SuggestValue = null; - SuggestDescriptorAction = null; - SuggestDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Suggest(Action> configure) - { - SuggestValue = null; - SuggestDescriptor = null; - SuggestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// If set to 0 (default), the query does not terminate early. - /// - /// - public SearchRequestDescriptor TerminateAfter(long? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public SearchRequestDescriptor Timeout(string? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public SearchRequestDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. - /// If true, the exact number of hits is returned at the cost of some performance. - /// If false, the response does not include the total number of hits matching the query. - /// - /// - public SearchRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public SearchRequestDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (ExtValue is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, ExtValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndicesBoostValue is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, IndicesBoostValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options); - } - else if (KnnDescriptorActions is not null) - { - writer.WritePropertyName("knn"); - if (KnnDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in KnnDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options); - } - - if (KnnDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (KnnValue is not null) - { - writer.WritePropertyName("knn"); - SingleOrManySerializationHelper.Serialize(KnnValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (PitDescriptor is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitDescriptor, options); - } - else if (PitDescriptorAction is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor(PitDescriptorAction), options); - } - else if (PitValue is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitValue, options); - } - - if (PostFilterDescriptor is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterDescriptor, options); - } - else if (PostFilterDescriptorAction is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PostFilterDescriptorAction), options); - } - else if (PostFilterValue is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RescoreDescriptor is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, RescoreDescriptor, options); - } - else if (RescoreDescriptorAction is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(RescoreDescriptorAction), options); - } - else if (RescoreDescriptorActions is not null) - { - writer.WritePropertyName("rescore"); - if (RescoreDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RescoreDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(action), options); - } - - if (RescoreDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (RescoreValue is not null) - { - writer.WritePropertyName("rescore"); - SingleOrManySerializationHelper.Serialize(RescoreValue, writer, options); - } - - if (RetrieverDescriptor is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverDescriptor, options); - } - else if (RetrieverDescriptorAction is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); - } - else if (RetrieverValue is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StatsValue is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, StatsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (SuggestDescriptor is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestDescriptor, options); - } - else if (SuggestDescriptorAction is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor(SuggestDescriptorAction), options); - } - else if (SuggestValue is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestValue, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - if (!string.IsNullOrEmpty(TimeoutValue)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(TimeoutValue); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Run a search. -/// -/// -/// Get search hits that match the query defined in the request. -/// You can provide search queries using the q query string parameter or the request body. -/// If both are specified, only the query parameter is used. -/// -/// -public sealed partial class SearchRequestDescriptor : RequestDescriptor -{ - internal SearchRequestDescriptor(Action configure) => configure.Invoke(this); - - public SearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SearchRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearch; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search"; - - public SearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) => Qs("allow_partial_search_results", allowPartialSearchResults); - public SearchRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public SearchRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public SearchRequestDescriptor BatchedReduceSize(long? batchedReduceSize) => Qs("batched_reduce_size", batchedReduceSize); - public SearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public SearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public SearchRequestDescriptor Df(string? df) => Qs("df", df); - public SearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); - public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); - public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public SearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public SearchRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public SearchRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public SearchRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public SearchRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public SearchRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public SearchRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public SearchRequestDescriptor SuggestField(Elastic.Clients.Elasticsearch.Serverless.Field? suggestField) => Qs("suggest_field", suggestField); - public SearchRequestDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) => Qs("suggest_mode", suggestMode); - public SearchRequestDescriptor SuggestSize(long? suggestSize) => Qs("suggest_size", suggestSize); - public SearchRequestDescriptor SuggestText(string? suggestText) => Qs("suggest_text", suggestText); - public SearchRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private IDictionary AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action DocvalueFieldsDescriptorAction { get; set; } - private Action[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private IDictionary? ExtValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action FieldsDescriptorAction { get; set; } - private Action[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } - private ICollection? KnnValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; } - private Action KnnDescriptorAction { get; set; } - private Action[] KnnDescriptorActions { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } - private Action PitDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; } - private Action PostFilterDescriptorAction { get; set; } - private bool? ProfileValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? RescoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } - private Action RescoreDescriptorAction { get; set; } - private Action[] RescoreDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Retriever? RetrieverValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } - private Action RetrieverDescriptorAction { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private ICollection? SearchAfterValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private ICollection? StatsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; } - private Action SuggestDescriptorAction { get; set; } - private long? TerminateAfterValue { get; set; } - private string? TimeoutValue { get; set; } - private bool? TrackScoresValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? VersionValue { get; set; } - - /// - /// - /// Defines the aggregations that are run as part of the search request. - /// - /// - public SearchRequestDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Collapses search results the values of the specified field. - /// - /// - public SearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public SearchRequestDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Collapse(Action configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. - /// The request returns doc values for field names matching these patterns in the hits.fields property of the response. - /// - /// - public SearchRequestDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public SearchRequestDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor DocvalueFields(Action configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor DocvalueFields(params Action[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public SearchRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public SearchRequestDescriptor Ext(Func, FluentDictionary> selector) - { - ExtValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. - /// The request returns values for field names matching these patterns in the hits.fields property of the response. - /// - /// - public SearchRequestDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public SearchRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Fields(Action configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Fields(params Action[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. - /// Needs to be non-negative. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public SearchRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results. - /// - /// - public SearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public SearchRequestDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) - { - IndicesBoostValue = indicesBoost; - return Self; - } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public SearchRequestDescriptor Knn(ICollection? knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnValue = knn; - return Self; - } - - public SearchRequestDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Knn(Action configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorActions = null; - KnnDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Knn(params Action[] configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. - /// Documents with a lower _score are not included in the search results. - /// - /// - public SearchRequestDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Limits the search to a point in time (PIT). - /// If you provide a PIT, you cannot specify an <index> in the request path. - /// - /// - public SearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? pit) - { - PitDescriptor = null; - PitDescriptorAction = null; - PitValue = pit; - return Self; - } - - public SearchRequestDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor) - { - PitValue = null; - PitDescriptorAction = null; - PitDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Pit(Action configure) - { - PitValue = null; - PitDescriptor = null; - PitDescriptorAction = configure; - return Self; - } - - /// - /// - /// Use the post_filter parameter to filter search results. - /// The search hits are filtered after the aggregations are calculated. - /// A post filter has no impact on the aggregation results. - /// - /// - public SearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? postFilter) - { - PostFilterDescriptor = null; - PostFilterDescriptorAction = null; - PostFilterValue = postFilter; - return Self; - } - - public SearchRequestDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PostFilterValue = null; - PostFilterDescriptorAction = null; - PostFilterDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor PostFilter(Action configure) - { - PostFilterValue = null; - PostFilterDescriptor = null; - PostFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Set to true to return detailed timing information about the execution of individual components in a search request. - /// NOTE: This is a debugging tool and adds significant overhead to search execution. - /// - /// - public SearchRequestDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public SearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the query and post_filter phases. - /// - /// - public SearchRequestDescriptor Rescore(ICollection? rescore) - { - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreValue = rescore; - return Self; - } - - public SearchRequestDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor) - { - RescoreValue = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Rescore(Action configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorActions = null; - RescoreDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Rescore(params Action[] configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = configure; - return Self; - } - - /// - /// - /// A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. - /// - /// - public SearchRequestDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever? retriever) - { - RetrieverDescriptor = null; - RetrieverDescriptorAction = null; - RetrieverValue = retriever; - return Self; - } - - public SearchRequestDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieverValue = null; - RetrieverDescriptorAction = null; - RetrieverDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Retriever(Action configure) - { - RetrieverValue = null; - RetrieverDescriptor = null; - RetrieverDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. - /// These fields take precedence over mapped fields with the same name. - /// - /// - public SearchRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public SearchRequestDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Used to retrieve the next page of hits using a set of sort values from the previous page. - /// - /// - public SearchRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification of each hit. - /// - /// - public SearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public SearchRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Can be used to split a scrolled search into multiple slices that can be consumed independently. - /// - /// - public SearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public SearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Slice(Action configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - public SearchRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SearchRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SearchRequestDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Indicates which source fields are returned for matching documents. - /// These fields are returned in the hits._source property of the search response. - /// - /// - public SearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Stats groups to associate with the search. - /// Each group maintains a statistics aggregation for its associated searches. - /// You can retrieve these stats using the indices stats API. - /// - /// - public SearchRequestDescriptor Stats(ICollection? stats) - { - StatsValue = stats; - return Self; - } - - /// - /// - /// List of stored fields to return as part of a hit. - /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. - /// You can pass _source: true to return both source fields and stored fields in the search response. - /// - /// - public SearchRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - /// - /// - /// Defines a suggester that provides similar looking terms based on a provided text. - /// - /// - public SearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? suggest) - { - SuggestDescriptor = null; - SuggestDescriptorAction = null; - SuggestValue = suggest; - return Self; - } - - public SearchRequestDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor) - { - SuggestValue = null; - SuggestDescriptorAction = null; - SuggestDescriptor = descriptor; - return Self; - } - - public SearchRequestDescriptor Suggest(Action configure) - { - SuggestValue = null; - SuggestDescriptor = null; - SuggestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// If set to 0 (default), the query does not terminate early. - /// - /// - public SearchRequestDescriptor TerminateAfter(long? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public SearchRequestDescriptor Timeout(string? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public SearchRequestDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. - /// If true, the exact number of hits is returned at the cost of some performance. - /// If false, the response does not include the total number of hits matching the query. - /// - /// - public SearchRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public SearchRequestDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (ExtValue is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, ExtValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndicesBoostValue is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, IndicesBoostValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options); - } - else if (KnnDescriptorActions is not null) - { - writer.WritePropertyName("knn"); - if (KnnDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in KnnDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options); - } - - if (KnnDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (KnnValue is not null) - { - writer.WritePropertyName("knn"); - SingleOrManySerializationHelper.Serialize(KnnValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (PitDescriptor is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitDescriptor, options); - } - else if (PitDescriptorAction is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor(PitDescriptorAction), options); - } - else if (PitValue is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitValue, options); - } - - if (PostFilterDescriptor is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterDescriptor, options); - } - else if (PostFilterDescriptorAction is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PostFilterDescriptorAction), options); - } - else if (PostFilterValue is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RescoreDescriptor is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, RescoreDescriptor, options); - } - else if (RescoreDescriptorAction is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(RescoreDescriptorAction), options); - } - else if (RescoreDescriptorActions is not null) - { - writer.WritePropertyName("rescore"); - if (RescoreDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RescoreDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(action), options); - } - - if (RescoreDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (RescoreValue is not null) - { - writer.WritePropertyName("rescore"); - SingleOrManySerializationHelper.Serialize(RescoreValue, writer, options); - } - - if (RetrieverDescriptor is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverDescriptor, options); - } - else if (RetrieverDescriptorAction is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); - } - else if (RetrieverValue is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StatsValue is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, StatsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (SuggestDescriptor is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestDescriptor, options); - } - else if (SuggestDescriptorAction is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor(SuggestDescriptorAction), options); - } - else if (SuggestValue is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestValue, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - if (!string.IsNullOrEmpty(TimeoutValue)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(TimeoutValue); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchResponse.g.cs deleted file mode 100644 index 151530f6fec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchResponse.g.cs +++ /dev/null @@ -1,59 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class SearchResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregations")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("_clusters")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata HitsMetadata { get; init; } - [JsonInclude, JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - [JsonInclude, JsonPropertyName("num_reduce_phases")] - public long? NumReducePhases { get; init; } - [JsonInclude, JsonPropertyName("pit_id")] - public string? PitId { get; init; } - [JsonInclude, JsonPropertyName("profile")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Profile? Profile { get; init; } - [JsonInclude, JsonPropertyName("_scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollId? ScrollId { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestDictionary? Suggest { get; init; } - [JsonInclude, JsonPropertyName("terminated_early")] - public bool? TerminatedEarly { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs deleted file mode 100644 index 3a37210a636..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs +++ /dev/null @@ -1,574 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 SearchTemplateRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, network round-trips are minimized for cross-cluster search requests. - /// - /// - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, specified concrete, expanded, or aliased indices are not included in the response when throttled. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, hits.total are rendered as an integer in the response. - /// - /// - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Specifies how long a consistent view of the index - /// should be maintained for scrolled search. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// The type of the search operation. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// If true, the response prefixes aggregation and suggester names with their respective types. - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } -} - -/// -/// -/// Run a search with a search template. -/// -/// -public sealed partial class SearchTemplateRequest : PlainRequest -{ - public SearchTemplateRequest() - { - } - - public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search_template"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// If true, network round-trips are minimized for cross-cluster search requests. - /// - /// - [JsonIgnore] - public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// If true, specified concrete, expanded, or aliased indices are not included in the response when throttled. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, hits.total are rendered as an integer in the response. - /// - /// - [JsonIgnore] - public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Specifies how long a consistent view of the index - /// should be maintained for scrolled search. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// The type of the search operation. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// If true, the response prefixes aggregation and suggester names with their respective types. - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// If true, returns detailed information about score calculation as part of each hit. - /// - /// - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; set; } - - /// - /// - /// ID of the search template to use. If no source is specified, - /// this parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// If true, the query execution is profiled. - /// - /// - [JsonInclude, JsonPropertyName("profile")] - public bool? Profile { get; set; } - - /// - /// - /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this - /// parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string? Source { get; set; } -} - -/// -/// -/// Run a search with a search template. -/// -/// -public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor, SearchTemplateRequestParameters> -{ - internal SearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public SearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SearchTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search_template"; - - public SearchTemplateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public SearchTemplateRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchTemplateRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public SearchTemplateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SearchTemplateRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public SearchTemplateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public SearchTemplateRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public SearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public SearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private bool? ProfileValue { get; set; } - private string? SourceValue { get; set; } - - /// - /// - /// If true, returns detailed information about score calculation as part of each hit. - /// - /// - public SearchTemplateRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// ID of the search template to use. If no source is specified, - /// this parameter is required. - /// - /// - public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// If true, the query execution is profiled. - /// - /// - public SearchTemplateRequestDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this - /// parameter is required. - /// - /// - public SearchTemplateRequestDescriptor Source(string? source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (!string.IsNullOrEmpty(SourceValue)) - { - writer.WritePropertyName("source"); - writer.WriteStringValue(SourceValue); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Run a search with a search template. -/// -/// -public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor -{ - internal SearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public SearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) - { - } - - public SearchTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "search_template"; - - public SearchTemplateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public SearchTemplateRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchTemplateRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); - public SearchTemplateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SearchTemplateRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public SearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); - public SearchTemplateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public SearchTemplateRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public SearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public SearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - - public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - RouteValues.Optional("index", indices); - return Self; - } - - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private bool? ProfileValue { get; set; } - private string? SourceValue { get; set; } - - /// - /// - /// If true, returns detailed information about score calculation as part of each hit. - /// - /// - public SearchTemplateRequestDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// ID of the search template to use. If no source is specified, - /// this parameter is required. - /// - /// - public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// If true, the query execution is profiled. - /// - /// - public SearchTemplateRequestDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this - /// parameter is required. - /// - /// - public SearchTemplateRequestDescriptor Source(string? source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - 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/Api/SearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateResponse.g.cs deleted file mode 100644 index 16e9c64ac63..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateResponse.g.cs +++ /dev/null @@ -1,59 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class SearchTemplateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregations")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("_clusters")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata Hits { get; init; } - [JsonInclude, JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - [JsonInclude, JsonPropertyName("num_reduce_phases")] - public long? NumReducePhases { get; init; } - [JsonInclude, JsonPropertyName("pit_id")] - public string? PitId { get; init; } - [JsonInclude, JsonPropertyName("profile")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Profile? Profile { get; init; } - [JsonInclude, JsonPropertyName("_scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollId? ScrollId { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestDictionary? Suggest { get; init; } - [JsonInclude, JsonPropertyName("terminated_early")] - public bool? TerminatedEarly { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs deleted file mode 100644 index fe394e4fec3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ /dev/null @@ -1,143 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ActivateUserProfileRequestParameters : RequestParameters -{ -} - -/// -/// -/// Activate a user profile. -/// -/// -/// Create or update a user profile on behalf of another user. -/// -/// -public sealed partial class ActivateUserProfileRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityActivateUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.activate_user_profile"; - - [JsonInclude, JsonPropertyName("access_token")] - public string? AccessToken { get; set; } - [JsonInclude, JsonPropertyName("grant_type")] - public Elastic.Clients.Elasticsearch.Serverless.Security.GrantType GrantType { get; set; } - [JsonInclude, JsonPropertyName("password")] - public string? Password { get; set; } - [JsonInclude, JsonPropertyName("username")] - public string? Username { get; set; } -} - -/// -/// -/// Activate a user profile. -/// -/// -/// Create or update a user profile on behalf of another user. -/// -/// -public sealed partial class ActivateUserProfileRequestDescriptor : RequestDescriptor -{ - internal ActivateUserProfileRequestDescriptor(Action configure) => configure.Invoke(this); - - public ActivateUserProfileRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityActivateUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.activate_user_profile"; - - private string? AccessTokenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.GrantType GrantTypeValue { get; set; } - private string? PasswordValue { get; set; } - private string? UsernameValue { get; set; } - - public ActivateUserProfileRequestDescriptor AccessToken(string? accessToken) - { - AccessTokenValue = accessToken; - return Self; - } - - public ActivateUserProfileRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Serverless.Security.GrantType grantType) - { - GrantTypeValue = grantType; - return Self; - } - - public ActivateUserProfileRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - public ActivateUserProfileRequestDescriptor Username(string? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AccessTokenValue)) - { - writer.WritePropertyName("access_token"); - writer.WriteStringValue(AccessTokenValue); - } - - writer.WritePropertyName("grant_type"); - JsonSerializer.Serialize(writer, GrantTypeValue, options); - if (!string.IsNullOrEmpty(PasswordValue)) - { - writer.WritePropertyName("password"); - writer.WriteStringValue(PasswordValue); - } - - if (!string.IsNullOrEmpty(UsernameValue)) - { - writer.WritePropertyName("username"); - writer.WriteStringValue(UsernameValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileResponse.g.cs deleted file mode 100644 index eef852bd9c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ActivateUserProfileResponse.g.cs +++ /dev/null @@ -1,45 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ActivateUserProfileResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("data")] - public IReadOnlyDictionary Data { get; init; } - [JsonInclude, JsonPropertyName("_doc")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserProfileHitMetadata Doc { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; init; } - [JsonInclude, JsonPropertyName("labels")] - public IReadOnlyDictionary Labels { get; init; } - [JsonInclude, JsonPropertyName("last_synchronized")] - public long LastSynchronized { get; init; } - [JsonInclude, JsonPropertyName("uid")] - public string Uid { get; init; } - [JsonInclude, JsonPropertyName("user")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserProfileUser User { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs deleted file mode 100644 index e87105682bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateRequest.g.cs +++ /dev/null @@ -1,89 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class AuthenticateRequestParameters : RequestParameters -{ -} - -/// -/// -/// Authenticate a user. -/// -/// -/// Authenticates a user and returns information about the authenticated user. -/// Include the user information in a basic auth header. -/// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. -/// If the user cannot be authenticated, this API returns a 401 status code. -/// -/// -public sealed partial class AuthenticateRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityAuthenticate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.authenticate"; -} - -/// -/// -/// Authenticate a user. -/// -/// -/// Authenticates a user and returns information about the authenticated user. -/// Include the user information in a basic auth header. -/// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. -/// If the user cannot be authenticated, this API returns a 401 status code. -/// -/// -public sealed partial class AuthenticateRequestDescriptor : RequestDescriptor -{ - internal AuthenticateRequestDescriptor(Action configure) => configure.Invoke(this); - - public AuthenticateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityAuthenticate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.authenticate"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateResponse.g.cs deleted file mode 100644 index 3da609f9d34..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/AuthenticateResponse.g.cs +++ /dev/null @@ -1,53 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class AuthenticateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Serverless.Security.AuthenticateApiKey? ApiKey { get; init; } - [JsonInclude, JsonPropertyName("authentication_realm")] - public Elastic.Clients.Elasticsearch.Serverless.Security.RealmInfo AuthenticationRealm { get; init; } - [JsonInclude, JsonPropertyName("authentication_type")] - public string AuthenticationType { get; init; } - [JsonInclude, JsonPropertyName("email")] - public string? Email { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("full_name")] - public string? FullName { get; init; } - [JsonInclude, JsonPropertyName("lookup_realm")] - public Elastic.Clients.Elasticsearch.Serverless.Security.RealmInfo LookupRealm { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary Metadata { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Serverless.Security.AuthenticateToken? Token { get; init; } - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs deleted file mode 100644 index 68ea0ad9b1b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleRequest.g.cs +++ /dev/null @@ -1,126 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class BulkDeleteRoleRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Bulk delete roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The bulk delete roles API cannot delete roles that are defined in roles files. -/// -/// -public sealed partial class BulkDeleteRoleRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkDeleteRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.bulk_delete_role"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// An array of role names to delete - /// - /// - [JsonInclude, JsonPropertyName("names")] - public ICollection Names { get; set; } -} - -/// -/// -/// Bulk delete roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The bulk delete roles API cannot delete roles that are defined in roles files. -/// -/// -public sealed partial class BulkDeleteRoleRequestDescriptor : RequestDescriptor -{ - internal BulkDeleteRoleRequestDescriptor(Action configure) => configure.Invoke(this); - - public BulkDeleteRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkDeleteRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.bulk_delete_role"; - - public BulkDeleteRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - private ICollection NamesValue { get; set; } - - /// - /// - /// An array of role names to delete - /// - /// - public BulkDeleteRoleRequestDescriptor Names(ICollection names) - { - NamesValue = names; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleResponse.g.cs deleted file mode 100644 index 4334b626ee3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkDeleteRoleResponse.g.cs +++ /dev/null @@ -1,54 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class BulkDeleteRoleResponse : ElasticsearchResponse -{ - /// - /// - /// Array of deleted roles - /// - /// - [JsonInclude, JsonPropertyName("deleted")] - public IReadOnlyCollection? Deleted { get; init; } - - /// - /// - /// Present if any deletes resulted in errors - /// - /// - [JsonInclude, JsonPropertyName("errors")] - public Elastic.Clients.Elasticsearch.Serverless.Security.BulkError? Errors { get; init; } - - /// - /// - /// Array of roles that could not be found - /// - /// - [JsonInclude, JsonPropertyName("not_found")] - public IReadOnlyCollection? NotFound { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs deleted file mode 100644 index 459580f2125..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleRequest.g.cs +++ /dev/null @@ -1,175 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class BulkPutRoleRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Bulk create or update roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The bulk create or update roles API cannot update roles that are defined in roles files. -/// -/// -public sealed partial class BulkPutRoleRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkPutRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.bulk_put_role"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// A dictionary of role name to RoleDescriptor objects to add or update - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IDictionary Roles { get; set; } -} - -/// -/// -/// Bulk create or update roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The bulk create or update roles API cannot update roles that are defined in roles files. -/// -/// -public sealed partial class BulkPutRoleRequestDescriptor : RequestDescriptor, BulkPutRoleRequestParameters> -{ - internal BulkPutRoleRequestDescriptor(Action> configure) => configure.Invoke(this); - - public BulkPutRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkPutRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.bulk_put_role"; - - public BulkPutRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - private IDictionary> RolesValue { get; set; } - - /// - /// - /// A dictionary of role name to RoleDescriptor objects to add or update - /// - /// - public BulkPutRoleRequestDescriptor Roles(Func>, FluentDescriptorDictionary>> selector) - { - RolesValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("roles"); - JsonSerializer.Serialize(writer, RolesValue, options); - writer.WriteEndObject(); - } -} - -/// -/// -/// Bulk create or update roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. -/// The bulk create or update roles API cannot update roles that are defined in roles files. -/// -/// -public sealed partial class BulkPutRoleRequestDescriptor : RequestDescriptor -{ - internal BulkPutRoleRequestDescriptor(Action configure) => configure.Invoke(this); - - public BulkPutRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkPutRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.bulk_put_role"; - - public BulkPutRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - private IDictionary RolesValue { get; set; } - - /// - /// - /// A dictionary of role name to RoleDescriptor objects to add or update - /// - /// - public BulkPutRoleRequestDescriptor Roles(Func, FluentDescriptorDictionary> selector) - { - RolesValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("roles"); - JsonSerializer.Serialize(writer, RolesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleResponse.g.cs deleted file mode 100644 index 85ff7db5a44..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/BulkPutRoleResponse.g.cs +++ /dev/null @@ -1,62 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class BulkPutRoleResponse : ElasticsearchResponse -{ - /// - /// - /// Array of created roles - /// - /// - [JsonInclude, JsonPropertyName("created")] - public IReadOnlyCollection? Created { get; init; } - - /// - /// - /// Present if any updates resulted in errors - /// - /// - [JsonInclude, JsonPropertyName("errors")] - public Elastic.Clients.Elasticsearch.Serverless.Security.BulkError? Errors { get; init; } - - /// - /// - /// Array of role names without any changes - /// - /// - [JsonInclude, JsonPropertyName("noop")] - public IReadOnlyCollection? Noop { get; init; } - - /// - /// - /// Array of updated roles - /// - /// - [JsonInclude, JsonPropertyName("updated")] - public IReadOnlyCollection? Updated { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs deleted file mode 100644 index d4817ad108d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearApiKeyCacheRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear the API key cache. -/// -/// -/// Evict a subset of all entries from the API key cache. -/// The cache is also automatically cleared on state changes of the security index. -/// -/// -public sealed partial class ClearApiKeyCacheRequest : PlainRequest -{ - public ClearApiKeyCacheRequest(Elastic.Clients.Elasticsearch.Serverless.Ids ids) : base(r => r.Required("ids", ids)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearApiKeyCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_api_key_cache"; -} - -/// -/// -/// Clear the API key cache. -/// -/// -/// Evict a subset of all entries from the API key cache. -/// The cache is also automatically cleared on state changes of the security index. -/// -/// -public sealed partial class ClearApiKeyCacheRequestDescriptor : RequestDescriptor -{ - internal ClearApiKeyCacheRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearApiKeyCacheRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids ids) : base(r => r.Required("ids", ids)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearApiKeyCache; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_api_key_cache"; - - public ClearApiKeyCacheRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.Ids ids) - { - RouteValues.Required("ids", ids); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs deleted file mode 100644 index e7dd4705bee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearApiKeyCacheResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearApiKeyCacheResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs deleted file mode 100644 index 71ab78556a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedPrivilegesRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear the privileges cache. -/// -/// -/// Evict privileges from the native application privilege cache. -/// The cache is also automatically cleared for applications that have their privileges updated. -/// -/// -public sealed partial class ClearCachedPrivilegesRequest : PlainRequest -{ - public ClearCachedPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name application) : base(r => r.Required("application", application)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_privileges"; -} - -/// -/// -/// Clear the privileges cache. -/// -/// -/// Evict privileges from the native application privilege cache. -/// The cache is also automatically cleared for applications that have their privileges updated. -/// -/// -public sealed partial class ClearCachedPrivilegesRequestDescriptor : RequestDescriptor -{ - internal ClearCachedPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearCachedPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name application) : base(r => r.Required("application", application)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_privileges"; - - public ClearCachedPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Serverless.Name application) - { - RouteValues.Required("application", application); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs deleted file mode 100644 index 80153dbf93b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedPrivilegesResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedPrivilegesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs deleted file mode 100644 index 88ff2437b7e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ /dev/null @@ -1,109 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedRealmsRequestParameters : RequestParameters -{ - /// - /// - /// Comma-separated list of usernames to clear from the cache - /// - /// - public ICollection? Usernames { get => Q?>("usernames"); set => Q("usernames", value); } -} - -/// -/// -/// Clear the user cache. -/// -/// -/// Evict users from the user cache. You can completely clear the cache or evict specific users. -/// -/// -public sealed partial class ClearCachedRealmsRequest : PlainRequest -{ - public ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Serverless.Names realms) : base(r => r.Required("realms", realms)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedRealms; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_realms"; - - /// - /// - /// Comma-separated list of usernames to clear from the cache - /// - /// - [JsonIgnore] - public ICollection? Usernames { get => Q?>("usernames"); set => Q("usernames", value); } -} - -/// -/// -/// Clear the user cache. -/// -/// -/// Evict users from the user cache. You can completely clear the cache or evict specific users. -/// -/// -public sealed partial class ClearCachedRealmsRequestDescriptor : RequestDescriptor -{ - internal ClearCachedRealmsRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearCachedRealmsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names realms) : base(r => r.Required("realms", realms)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedRealms; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_realms"; - - public ClearCachedRealmsRequestDescriptor Usernames(ICollection? usernames) => Qs("usernames", usernames); - - public ClearCachedRealmsRequestDescriptor Realms(Elastic.Clients.Elasticsearch.Serverless.Names realms) - { - RouteValues.Required("realms", realms); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs deleted file mode 100644 index efe1c3411eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRealmsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedRealmsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs deleted file mode 100644 index 1b9b3c6c0e3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedRolesRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear the roles cache. -/// -/// -/// Evict roles from the native role cache. -/// -/// -public sealed partial class ClearCachedRolesRequest : PlainRequest -{ - public ClearCachedRolesRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedRoles; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_roles"; -} - -/// -/// -/// Clear the roles cache. -/// -/// -/// Evict roles from the native role cache. -/// -/// -public sealed partial class ClearCachedRolesRequestDescriptor : RequestDescriptor -{ - internal ClearCachedRolesRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearCachedRolesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedRoles; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_roles"; - - public ClearCachedRolesRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesResponse.g.cs deleted file mode 100644 index e28b91f8337..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedRolesResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedRolesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs deleted file mode 100644 index 7005cecd4fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedServiceTokensRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear service account token caches. -/// -/// -/// Evict a subset of all entries from the service account token caches. -/// -/// -public sealed partial class ClearCachedServiceTokensRequest : PlainRequest -{ - public ClearCachedServiceTokensRequest(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("namespace", ns).Required("service", service).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedServiceTokens; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_service_tokens"; -} - -/// -/// -/// Clear service account token caches. -/// -/// -/// Evict a subset of all entries from the service account token caches. -/// -/// -public sealed partial class ClearCachedServiceTokensRequestDescriptor : RequestDescriptor -{ - internal ClearCachedServiceTokensRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearCachedServiceTokensRequestDescriptor(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("namespace", ns).Required("service", service).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityClearCachedServiceTokens; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.clear_cached_service_tokens"; - - public ClearCachedServiceTokensRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - public ClearCachedServiceTokensRequestDescriptor Namespace(string ns) - { - RouteValues.Required("namespace", ns); - return Self; - } - - public ClearCachedServiceTokensRequestDescriptor Service(string service) - { - RouteValues.Required("service", service); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs deleted file mode 100644 index a97f7495f65..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/ClearCachedServiceTokensResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class ClearCachedServiceTokensResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster_name")] - public string ClusterName { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics NodeStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs deleted file mode 100644 index 9568152258e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ /dev/null @@ -1,321 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class CreateApiKeyRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Create an API key. -/// -/// -/// Create an API key for access without requiring basic authentication. -/// A successful request returns a JSON structure that contains the API key, its unique id, and its name. -/// If applicable, it also returns expiration information for the API key in milliseconds. -/// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. -/// -/// -public sealed partial class CreateApiKeyRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.create_api_key"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Expiration time for the API key. By default, API keys never expire. - /// - /// - [JsonInclude, JsonPropertyName("expiration")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Expiration { get; set; } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - - /// - /// - /// Specifies the name for this API key. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } - - /// - /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. - /// - /// - [JsonInclude, JsonPropertyName("role_descriptors")] - public IDictionary? RoleDescriptors { get; set; } -} - -/// -/// -/// Create an API key. -/// -/// -/// Create an API key for access without requiring basic authentication. -/// A successful request returns a JSON structure that contains the API key, its unique id, and its name. -/// If applicable, it also returns expiration information for the API key in milliseconds. -/// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. -/// -/// -public sealed partial class CreateApiKeyRequestDescriptor : RequestDescriptor, CreateApiKeyRequestParameters> -{ - internal CreateApiKeyRequestDescriptor(Action> configure) => configure.Invoke(this); - - public CreateApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.create_api_key"; - - public CreateApiKeyRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - private Elastic.Clients.Elasticsearch.Serverless.Duration? ExpirationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private IDictionary> RoleDescriptorsValue { get; set; } - - /// - /// - /// Expiration time for the API key. By default, API keys never expire. - /// - /// - public CreateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Serverless.Duration? expiration) - { - ExpirationValue = expiration; - return Self; - } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - public CreateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Specifies the name for this API key. - /// - /// - public CreateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. - /// - /// - public CreateApiKeyRequestDescriptor RoleDescriptors(Func>, FluentDescriptorDictionary>> selector) - { - RoleDescriptorsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpirationValue is not null) - { - writer.WritePropertyName("expiration"); - JsonSerializer.Serialize(writer, ExpirationValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create an API key. -/// -/// -/// Create an API key for access without requiring basic authentication. -/// A successful request returns a JSON structure that contains the API key, its unique id, and its name. -/// If applicable, it also returns expiration information for the API key in milliseconds. -/// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. -/// -/// -public sealed partial class CreateApiKeyRequestDescriptor : RequestDescriptor -{ - internal CreateApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - - public CreateApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.create_api_key"; - - public CreateApiKeyRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - private Elastic.Clients.Elasticsearch.Serverless.Duration? ExpirationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private IDictionary RoleDescriptorsValue { get; set; } - - /// - /// - /// Expiration time for the API key. By default, API keys never expire. - /// - /// - public CreateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Serverless.Duration? expiration) - { - ExpirationValue = expiration; - return Self; - } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - public CreateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Specifies the name for this API key. - /// - /// - public CreateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. - /// - /// - public CreateApiKeyRequestDescriptor RoleDescriptors(Func, FluentDescriptorDictionary> selector) - { - RoleDescriptorsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpirationValue is not null) - { - writer.WritePropertyName("expiration"); - JsonSerializer.Serialize(writer, ExpirationValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyResponse.g.cs deleted file mode 100644 index 841689b990c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateApiKeyResponse.g.cs +++ /dev/null @@ -1,72 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class CreateApiKeyResponse : ElasticsearchResponse -{ - /// - /// - /// Generated API key. - /// - /// - [JsonInclude, JsonPropertyName("api_key")] - public string ApiKey { get; init; } - - /// - /// - /// API key credentials which is the base64-encoding of - /// the UTF-8 representation of id and api_key joined - /// by a colon (:). - /// - /// - [JsonInclude, JsonPropertyName("encoded")] - public string Encoded { get; init; } - - /// - /// - /// Expiration in milliseconds for the API key. - /// - /// - [JsonInclude, JsonPropertyName("expiration")] - public long? Expiration { get; init; } - - /// - /// - /// Unique ID for this API key. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// Specifies the name for this API key. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs deleted file mode 100644 index 1b16f173167..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ /dev/null @@ -1,129 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class CreateServiceTokenRequestParameters : RequestParameters -{ - /// - /// - /// If true then refresh the affected shards to make this operation visible to search, if wait_for (the default) then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Create a service account token. -/// -/// -/// Create a service accounts token for access without requiring basic authentication. -/// -/// -public sealed partial class CreateServiceTokenRequest : PlainRequest -{ - public CreateServiceTokenRequest(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Required("namespace", ns).Required("service", service).Optional("name", name)) - { - } - - public CreateServiceTokenRequest(string ns, string service) : base(r => r.Required("namespace", ns).Required("service", service)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateServiceToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.create_service_token"; - - /// - /// - /// If true then refresh the affected shards to make this operation visible to search, if wait_for (the default) then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Create a service account token. -/// -/// -/// Create a service accounts token for access without requiring basic authentication. -/// -/// -public sealed partial class CreateServiceTokenRequestDescriptor : RequestDescriptor -{ - internal CreateServiceTokenRequestDescriptor(Action configure) => configure.Invoke(this); - - public CreateServiceTokenRequestDescriptor(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name? name) : base(r => r.Required("namespace", ns).Required("service", service).Optional("name", name)) - { - } - - public CreateServiceTokenRequestDescriptor(string ns, string service) : base(r => r.Required("namespace", ns).Required("service", service)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityCreateServiceToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.create_service_token"; - - public CreateServiceTokenRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public CreateServiceTokenRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - RouteValues.Optional("name", name); - return Self; - } - - public CreateServiceTokenRequestDescriptor Namespace(string ns) - { - RouteValues.Required("namespace", ns); - return Self; - } - - public CreateServiceTokenRequestDescriptor Service(string service) - { - RouteValues.Required("service", service); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenResponse.g.cs deleted file mode 100644 index 14ddc24ddc3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/CreateServiceTokenResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class CreateServiceTokenResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("created")] - public bool Created { get; init; } - [JsonInclude, JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Serverless.Security.ServiceToken Token { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs deleted file mode 100644 index 53e7878ab3a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ /dev/null @@ -1,109 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeletePrivilegesRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete application privileges. -/// -/// -public sealed partial class DeletePrivilegesRequest : PlainRequest -{ - public DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name application, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("application", application).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeletePrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_privileges"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete application privileges. -/// -/// -public sealed partial class DeletePrivilegesRequestDescriptor : RequestDescriptor -{ - internal DeletePrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeletePrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name application, Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("application", application).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeletePrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_privileges"; - - public DeletePrivilegesRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public DeletePrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Serverless.Name application) - { - RouteValues.Required("application", application); - return Self; - } - - public DeletePrivilegesRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesResponse.g.cs deleted file mode 100644 index 71fa169150a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeletePrivilegesResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeletePrivilegesResponse : DictionaryResponse> -{ - public DeletePrivilegesResponse(IReadOnlyDictionary> dictionary) : base(dictionary) - { - } - - public DeletePrivilegesResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs deleted file mode 100644 index 91b20085b24..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ /dev/null @@ -1,103 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeleteRoleMappingRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete role mappings. -/// -/// -public sealed partial class DeleteRoleMappingRequest : PlainRequest -{ - public DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeleteRoleMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_role_mapping"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete role mappings. -/// -/// -public sealed partial class DeleteRoleMappingRequestDescriptor : RequestDescriptor -{ - internal DeleteRoleMappingRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteRoleMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeleteRoleMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_role_mapping"; - - public DeleteRoleMappingRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public DeleteRoleMappingRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs deleted file mode 100644 index 69ec38d8224..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeleteRoleMappingResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs deleted file mode 100644 index 511239673ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ /dev/null @@ -1,109 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeleteRoleRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete roles. -/// -/// -/// Delete roles in the native realm. -/// -/// -public sealed partial class DeleteRoleRequest : PlainRequest -{ - public DeleteRoleRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeleteRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_role"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete roles. -/// -/// -/// Delete roles in the native realm. -/// -/// -public sealed partial class DeleteRoleRequestDescriptor : RequestDescriptor -{ - internal DeleteRoleRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteRoleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeleteRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_role"; - - public DeleteRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public DeleteRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleResponse.g.cs deleted file mode 100644 index e7fc61a464e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteRoleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeleteRoleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs deleted file mode 100644 index ce2465d95d8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenRequest.g.cs +++ /dev/null @@ -1,121 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeleteServiceTokenRequestParameters : RequestParameters -{ - /// - /// - /// If true then refresh the affected shards to make this operation visible to search, if wait_for (the default) then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete service account tokens. -/// -/// -/// Delete service account tokens for a service in a specified namespace. -/// -/// -public sealed partial class DeleteServiceTokenRequest : PlainRequest -{ - public DeleteServiceTokenRequest(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("namespace", ns).Required("service", service).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeleteServiceToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_service_token"; - - /// - /// - /// If true then refresh the affected shards to make this operation visible to search, if wait_for (the default) then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Delete service account tokens. -/// -/// -/// Delete service account tokens for a service in a specified namespace. -/// -/// -public sealed partial class DeleteServiceTokenRequestDescriptor : RequestDescriptor -{ - internal DeleteServiceTokenRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteServiceTokenRequestDescriptor(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("namespace", ns).Required("service", service).Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDeleteServiceToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.delete_service_token"; - - public DeleteServiceTokenRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public DeleteServiceTokenRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - public DeleteServiceTokenRequestDescriptor Namespace(string ns) - { - RouteValues.Required("namespace", ns); - return Self; - } - - public DeleteServiceTokenRequestDescriptor Service(string service) - { - RouteValues.Required("service", service); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs deleted file mode 100644 index 26b35f9f977..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DeleteServiceTokenResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs deleted file mode 100644 index a3b20051197..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ /dev/null @@ -1,113 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DisableUserProfileRequestParameters : RequestParameters -{ - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Disable a user profile. -/// -/// -/// Disable user profiles so that they are not visible in user profile searches. -/// -/// -public sealed partial class DisableUserProfileRequest : PlainRequest -{ - public DisableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDisableUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.disable_user_profile"; - - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Disable a user profile. -/// -/// -/// Disable user profiles so that they are not visible in user profile searches. -/// -/// -public sealed partial class DisableUserProfileRequestDescriptor : RequestDescriptor -{ - internal DisableUserProfileRequestDescriptor(Action configure) => configure.Invoke(this); - - public DisableUserProfileRequestDescriptor(string uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDisableUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.disable_user_profile"; - - public DisableUserProfileRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public DisableUserProfileRequestDescriptor Uid(string uid) - { - RouteValues.Required("uid", uid); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileResponse.g.cs deleted file mode 100644 index 13e6c139b7f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/DisableUserProfileResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class DisableUserProfileResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs deleted file mode 100644 index 68aba25f44f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ /dev/null @@ -1,113 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class EnableUserProfileRequestParameters : RequestParameters -{ - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Enable a user profile. -/// -/// -/// Enable user profiles to make them visible in user profile searches. -/// -/// -public sealed partial class EnableUserProfileRequest : PlainRequest -{ - public EnableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityEnableUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.enable_user_profile"; - - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Enable a user profile. -/// -/// -/// Enable user profiles to make them visible in user profile searches. -/// -/// -public sealed partial class EnableUserProfileRequestDescriptor : RequestDescriptor -{ - internal EnableUserProfileRequestDescriptor(Action configure) => configure.Invoke(this); - - public EnableUserProfileRequestDescriptor(string uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityEnableUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.enable_user_profile"; - - public EnableUserProfileRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public EnableUserProfileRequestDescriptor Uid(string uid) - { - RouteValues.Required("uid", uid); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileResponse.g.cs deleted file mode 100644 index 4296ea9afc1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/EnableUserProfileResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class EnableUserProfileResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs deleted file mode 100644 index 81ba73b3014..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyRequest.g.cs +++ /dev/null @@ -1,233 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetApiKeyRequestParameters : RequestParameters -{ - /// - /// - /// A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as owner or name. If active_only is false, the response will include both active and inactive (expired or invalidated) keys. - /// - /// - public bool? ActiveOnly { get => Q("active_only"); set => Q("active_only", value); } - - /// - /// - /// An API key id. - /// This parameter cannot be used with any of name, realm_name or username. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get => Q("id"); set => Q("id", value); } - - /// - /// - /// An API key name. - /// This parameter cannot be used with any of id, realm_name or username. - /// It supports prefix search with wildcard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get => Q("name"); set => Q("name", value); } - - /// - /// - /// A boolean flag that can be used to query API keys owned by the currently authenticated user. - /// The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones. - /// - /// - public bool? Owner { get => Q("owner"); set => Q("owner", value); } - - /// - /// - /// The name of an authentication realm. - /// This parameter cannot be used with either id or name or when owner flag is set to true. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Name? RealmName { get => Q("realm_name"); set => Q("realm_name", value); } - - /// - /// - /// The username of a user. - /// This parameter cannot be used with either id or name or when owner flag is set to true. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get => Q("username"); set => Q("username", value); } - - /// - /// - /// Return the snapshot of the owner user's role descriptors - /// associated with the API key. An API key's actual - /// permission is the intersection of its assigned role - /// descriptors and the owner user's role descriptors. - /// - /// - public bool? WithLimitedBy { get => Q("with_limited_by"); set => Q("with_limited_by", value); } - - /// - /// - /// Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. - /// - /// - public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } -} - -/// -/// -/// Get API key information. -/// -/// -/// Retrieves information for one or more API keys. -/// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. -/// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. -/// -/// -public sealed partial class GetApiKeyRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_api_key"; - - /// - /// - /// A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as owner or name. If active_only is false, the response will include both active and inactive (expired or invalidated) keys. - /// - /// - [JsonIgnore] - public bool? ActiveOnly { get => Q("active_only"); set => Q("active_only", value); } - - /// - /// - /// An API key id. - /// This parameter cannot be used with any of name, realm_name or username. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get => Q("id"); set => Q("id", value); } - - /// - /// - /// An API key name. - /// This parameter cannot be used with any of id, realm_name or username. - /// It supports prefix search with wildcard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get => Q("name"); set => Q("name", value); } - - /// - /// - /// A boolean flag that can be used to query API keys owned by the currently authenticated user. - /// The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones. - /// - /// - [JsonIgnore] - public bool? Owner { get => Q("owner"); set => Q("owner", value); } - - /// - /// - /// The name of an authentication realm. - /// This parameter cannot be used with either id or name or when owner flag is set to true. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Name? RealmName { get => Q("realm_name"); set => Q("realm_name", value); } - - /// - /// - /// The username of a user. - /// This parameter cannot be used with either id or name or when owner flag is set to true. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get => Q("username"); set => Q("username", value); } - - /// - /// - /// Return the snapshot of the owner user's role descriptors - /// associated with the API key. An API key's actual - /// permission is the intersection of its assigned role - /// descriptors and the owner user's role descriptors. - /// - /// - [JsonIgnore] - public bool? WithLimitedBy { get => Q("with_limited_by"); set => Q("with_limited_by", value); } - - /// - /// - /// Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. - /// - /// - [JsonIgnore] - public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } -} - -/// -/// -/// Get API key information. -/// -/// -/// Retrieves information for one or more API keys. -/// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. -/// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. -/// -/// -public sealed partial class GetApiKeyRequestDescriptor : RequestDescriptor -{ - internal GetApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_api_key"; - - public GetApiKeyRequestDescriptor ActiveOnly(bool? activeOnly = true) => Qs("active_only", activeOnly); - public GetApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) => Qs("id", id); - public GetApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) => Qs("name", name); - public GetApiKeyRequestDescriptor Owner(bool? owner = true) => Qs("owner", owner); - public GetApiKeyRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Serverless.Name? realmName) => Qs("realm_name", realmName); - public GetApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) => Qs("username", username); - public GetApiKeyRequestDescriptor WithLimitedBy(bool? withLimitedBy = true) => Qs("with_limited_by", withLimitedBy); - public GetApiKeyRequestDescriptor WithProfileUid(bool? withProfileUid = true) => Qs("with_profile_uid", withProfileUid); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyResponse.g.cs deleted file mode 100644 index 38a73ca81a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetApiKeyResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetApiKeyResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("api_keys")] - public IReadOnlyCollection ApiKeys { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs deleted file mode 100644 index b8873b769ae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesRequest.g.cs +++ /dev/null @@ -1,83 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetBuiltinPrivilegesRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get builtin privileges. -/// -/// -/// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. -/// -/// -public sealed partial class GetBuiltinPrivilegesRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetBuiltinPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_builtin_privileges"; -} - -/// -/// -/// Get builtin privileges. -/// -/// -/// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. -/// -/// -public sealed partial class GetBuiltinPrivilegesRequestDescriptor : RequestDescriptor -{ - internal GetBuiltinPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetBuiltinPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetBuiltinPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_builtin_privileges"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs deleted file mode 100644 index 289a4f1da56..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } - [JsonInclude, JsonPropertyName("index")] - public IReadOnlyCollection Index { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs deleted file mode 100644 index a90bea1fddf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetPrivilegesRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get application privileges. -/// -/// -public sealed partial class GetPrivilegesRequest : PlainRequest -{ - public GetPrivilegesRequest() - { - } - - public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name? application) : base(r => r.Optional("application", application)) - { - } - - public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name? application, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("application", application).Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_privileges"; -} - -/// -/// -/// Get application privileges. -/// -/// -public sealed partial class GetPrivilegesRequestDescriptor : RequestDescriptor -{ - internal GetPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? application, Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("application", application).Optional("name", name)) - { - } - - public GetPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_privileges"; - - public GetPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Serverless.Name? application) - { - RouteValues.Optional("application", application); - return Self; - } - - public GetPrivilegesRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesResponse.g.cs deleted file mode 100644 index 90136141d25..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetPrivilegesResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetPrivilegesResponse : DictionaryResponse> -{ - public GetPrivilegesResponse(IReadOnlyDictionary> dictionary) : base(dictionary) - { - } - - public GetPrivilegesResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs deleted file mode 100644 index a454c8e7319..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingRequest.g.cs +++ /dev/null @@ -1,105 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetRoleMappingRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get role mappings. -/// -/// -/// Role mappings define which roles are assigned to each user. -/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. -/// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. -/// -/// -public sealed partial class GetRoleMappingRequest : PlainRequest -{ - public GetRoleMappingRequest() - { - } - - public GetRoleMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetRoleMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_role_mapping"; -} - -/// -/// -/// Get role mappings. -/// -/// -/// Role mappings define which roles are assigned to each user. -/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. -/// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. -/// -/// -public sealed partial class GetRoleMappingRequestDescriptor : RequestDescriptor -{ - internal GetRoleMappingRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRoleMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - public GetRoleMappingRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetRoleMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_role_mapping"; - - public GetRoleMappingRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingResponse.g.cs deleted file mode 100644 index f7780fbe01a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleMappingResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetRoleMappingResponse : DictionaryResponse -{ - public GetRoleMappingResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetRoleMappingResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs deleted file mode 100644 index 38491b40830..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleRequest.g.cs +++ /dev/null @@ -1,101 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetRoleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get roles. -/// -/// -/// Get roles in the native realm. -/// -/// -public sealed partial class GetRoleRequest : PlainRequest -{ - public GetRoleRequest() - { - } - - public GetRoleRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_role"; -} - -/// -/// -/// Get roles. -/// -/// -/// Get roles in the native realm. -/// -/// -public sealed partial class GetRoleRequestDescriptor : RequestDescriptor -{ - internal GetRoleRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRoleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - public GetRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_role"; - - public GetRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleResponse.g.cs deleted file mode 100644 index 4cca8aab744..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetRoleResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetRoleResponse : DictionaryResponse -{ - public GetRoleResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetRoleResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.cs deleted file mode 100644 index bf6cd184fd8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetServiceAccountsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get service accounts. -/// -/// -/// Get a list of service accounts that match the provided path parameters. -/// -/// -public sealed partial class GetServiceAccountsRequest : PlainRequest -{ - public GetServiceAccountsRequest() - { - } - - public GetServiceAccountsRequest(string? ns, string? service) : base(r => r.Optional("namespace", ns).Optional("service", service)) - { - } - - public GetServiceAccountsRequest(string? ns) : base(r => r.Optional("namespace", ns)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetServiceAccounts; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_service_accounts"; -} - -/// -/// -/// Get service accounts. -/// -/// -/// Get a list of service accounts that match the provided path parameters. -/// -/// -public sealed partial class GetServiceAccountsRequestDescriptor : RequestDescriptor -{ - internal GetServiceAccountsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetServiceAccountsRequestDescriptor(string? ns, string? service) : base(r => r.Optional("namespace", ns).Optional("service", service)) - { - } - - public GetServiceAccountsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetServiceAccounts; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_service_accounts"; - - public GetServiceAccountsRequestDescriptor Namespace(string? ns) - { - RouteValues.Optional("namespace", ns); - return Self; - } - - public GetServiceAccountsRequestDescriptor Service(string? service) - { - RouteValues.Optional("service", service); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsResponse.g.cs deleted file mode 100644 index 0a2df0874be..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceAccountsResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetServiceAccountsResponse : DictionaryResponse -{ - public GetServiceAccountsResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetServiceAccountsResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs deleted file mode 100644 index f343ece9bb0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetServiceCredentialsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get service account credentials. -/// -/// -public sealed partial class GetServiceCredentialsRequest : PlainRequest -{ - public GetServiceCredentialsRequest(string ns, Elastic.Clients.Elasticsearch.Serverless.Name service) : base(r => r.Required("namespace", ns).Required("service", service)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetServiceCredentials; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_service_credentials"; -} - -/// -/// -/// Get service account credentials. -/// -/// -public sealed partial class GetServiceCredentialsRequestDescriptor : RequestDescriptor -{ - internal GetServiceCredentialsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetServiceCredentialsRequestDescriptor(string ns, Elastic.Clients.Elasticsearch.Serverless.Name service) : base(r => r.Required("namespace", ns).Required("service", service)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetServiceCredentials; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_service_credentials"; - - public GetServiceCredentialsRequestDescriptor Namespace(string ns) - { - RouteValues.Required("namespace", ns); - return Self; - } - - public GetServiceCredentialsRequestDescriptor Service(Elastic.Clients.Elasticsearch.Serverless.Name service) - { - RouteValues.Required("service", service); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs deleted file mode 100644 index 02af7395fcc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs +++ /dev/null @@ -1,45 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetServiceCredentialsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Contains service account credentials collected from all nodes of the cluster - /// - /// - [JsonInclude, JsonPropertyName("nodes_credentials")] - public Elastic.Clients.Elasticsearch.Serverless.Security.NodesCredentials NodesCredentials { get; init; } - [JsonInclude, JsonPropertyName("service_account")] - public string ServiceAccount { get; init; } - [JsonInclude, JsonPropertyName("tokens")] - public IReadOnlyDictionary> Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs deleted file mode 100644 index 52d992c21c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenRequest.g.cs +++ /dev/null @@ -1,177 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetTokenRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get a token. -/// -/// -/// Create a bearer token for access without requiring basic authentication. -/// -/// -public sealed partial class GetTokenRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.get_token"; - - [JsonInclude, JsonPropertyName("grant_type")] - public Elastic.Clients.Elasticsearch.Serverless.Security.AccessTokenGrantType? GrantType { get; set; } - [JsonInclude, JsonPropertyName("kerberos_ticket")] - public string? KerberosTicket { get; set; } - [JsonInclude, JsonPropertyName("password")] - public string? Password { get; set; } - [JsonInclude, JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - [JsonInclude, JsonPropertyName("scope")] - public string? Scope { get; set; } - [JsonInclude, JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get; set; } -} - -/// -/// -/// Get a token. -/// -/// -/// Create a bearer token for access without requiring basic authentication. -/// -/// -public sealed partial class GetTokenRequestDescriptor : RequestDescriptor -{ - internal GetTokenRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetTokenRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.get_token"; - - private Elastic.Clients.Elasticsearch.Serverless.Security.AccessTokenGrantType? GrantTypeValue { get; set; } - private string? KerberosTicketValue { get; set; } - private string? PasswordValue { get; set; } - private string? RefreshTokenValue { get; set; } - private string? ScopeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } - - public GetTokenRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Serverless.Security.AccessTokenGrantType? grantType) - { - GrantTypeValue = grantType; - return Self; - } - - public GetTokenRequestDescriptor KerberosTicket(string? kerberosTicket) - { - KerberosTicketValue = kerberosTicket; - return Self; - } - - public GetTokenRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - public GetTokenRequestDescriptor RefreshToken(string? refreshToken) - { - RefreshTokenValue = refreshToken; - return Self; - } - - public GetTokenRequestDescriptor Scope(string? scope) - { - ScopeValue = scope; - return Self; - } - - public GetTokenRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (GrantTypeValue is not null) - { - writer.WritePropertyName("grant_type"); - JsonSerializer.Serialize(writer, GrantTypeValue, options); - } - - if (!string.IsNullOrEmpty(KerberosTicketValue)) - { - writer.WritePropertyName("kerberos_ticket"); - writer.WriteStringValue(KerberosTicketValue); - } - - if (!string.IsNullOrEmpty(PasswordValue)) - { - writer.WritePropertyName("password"); - writer.WriteStringValue(PasswordValue); - } - - if (!string.IsNullOrEmpty(RefreshTokenValue)) - { - writer.WritePropertyName("refresh_token"); - writer.WriteStringValue(RefreshTokenValue); - } - - if (!string.IsNullOrEmpty(ScopeValue)) - { - writer.WritePropertyName("scope"); - writer.WriteStringValue(ScopeValue); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenResponse.g.cs deleted file mode 100644 index 36728c4b664..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetTokenResponse.g.cs +++ /dev/null @@ -1,45 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetTokenResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("access_token")] - public string AccessToken { get; init; } - [JsonInclude, JsonPropertyName("authentication")] - public Elastic.Clients.Elasticsearch.Serverless.Security.AuthenticatedUser Authentication { get; init; } - [JsonInclude, JsonPropertyName("expires_in")] - public long ExpiresIn { get; init; } - [JsonInclude, JsonPropertyName("kerberos_authentication_response_token")] - public string? KerberosAuthenticationResponseToken { get; init; } - [JsonInclude, JsonPropertyName("refresh_token")] - public string? RefreshToken { get; init; } - [JsonInclude, JsonPropertyName("scope")] - public string? Scope { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs deleted file mode 100644 index 6e0183f4d6a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ /dev/null @@ -1,113 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetUserPrivilegesRequestParameters : RequestParameters -{ - /// - /// - /// The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Name? Application { get => Q("application"); set => Q("application", value); } - - /// - /// - /// The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Name? Priviledge { get => Q("priviledge"); set => Q("priviledge", value); } - public Elastic.Clients.Elasticsearch.Serverless.Name? Username { get => Q("username"); set => Q("username", value); } -} - -/// -/// -/// Get user privileges. -/// -/// -public sealed partial class GetUserPrivilegesRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetUserPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_user_privileges"; - - /// - /// - /// The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Name? Application { get => Q("application"); set => Q("application", value); } - - /// - /// - /// The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Name? Priviledge { get => Q("priviledge"); set => Q("priviledge", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Name? Username { get => Q("username"); set => Q("username", value); } -} - -/// -/// -/// Get user privileges. -/// -/// -public sealed partial class GetUserPrivilegesRequestDescriptor : RequestDescriptor -{ - internal GetUserPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetUserPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetUserPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_user_privileges"; - - public GetUserPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Serverless.Name? application) => Qs("application", application); - public GetUserPrivilegesRequestDescriptor Priviledge(Elastic.Clients.Elasticsearch.Serverless.Name? priviledge) => Qs("priviledge", priviledge); - public GetUserPrivilegesRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Name? username) => Qs("username", username); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs deleted file mode 100644 index 308ab397b53..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetUserPrivilegesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("applications")] - public IReadOnlyCollection Applications { get; init; } - [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } - [JsonInclude, JsonPropertyName("global")] - public IReadOnlyCollection Global { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("run_as")] - public IReadOnlyCollection RunAs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs deleted file mode 100644 index 5f0dd65f114..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ /dev/null @@ -1,115 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetUserProfileRequestParameters : RequestParameters -{ - /// - /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. - /// By default returns no data content. - /// - /// - public ICollection? Data { get => Q?>("data"); set => Q("data", value); } -} - -/// -/// -/// Get a user profile. -/// -/// -/// Get a user's profile using the unique profile ID. -/// -/// -public sealed partial class GetUserProfileRequest : PlainRequest -{ - public GetUserProfileRequest(IReadOnlyCollection uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_user_profile"; - - /// - /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. - /// By default returns no data content. - /// - /// - [JsonIgnore] - public ICollection? Data { get => Q?>("data"); set => Q("data", value); } -} - -/// -/// -/// Get a user profile. -/// -/// -/// Get a user's profile using the unique profile ID. -/// -/// -public sealed partial class GetUserProfileRequestDescriptor : RequestDescriptor -{ - internal GetUserProfileRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetUserProfileRequestDescriptor(IReadOnlyCollection uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.get_user_profile"; - - public GetUserProfileRequestDescriptor Data(ICollection? data) => Qs("data", data); - - public GetUserProfileRequestDescriptor Uid(IReadOnlyCollection uid) - { - RouteValues.Required("uid", uid); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileResponse.g.cs deleted file mode 100644 index de77684beab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GetUserProfileResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GetUserProfileResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("errors")] - public Elastic.Clients.Elasticsearch.Serverless.Security.GetUserProfileErrors? Errors { get; init; } - [JsonInclude, JsonPropertyName("profiles")] - public IReadOnlyCollection Profiles { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs deleted file mode 100644 index 91b196ec00a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ /dev/null @@ -1,494 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GrantApiKeyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Grant an API key. -/// -/// -/// Create an API key on behalf of another user. -/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. -/// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. -/// It is not possible to use this API to create an API key without that user’s credentials. -/// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. -/// In this case, the API key will be created on behalf of the impersonated user. -/// -/// -/// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. -/// -/// -/// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. -/// If applicable, it also returns expiration information for the API key in milliseconds. -/// -/// -/// By default, API keys never expire. You can specify expiration information when you create the API keys. -/// -/// -public sealed partial class GrantApiKeyRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGrantApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.grant_api_key"; - - /// - /// - /// The user’s access token. - /// If you specify the access_token grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - [JsonInclude, JsonPropertyName("access_token")] - public string? AccessToken { get; set; } - - /// - /// - /// Defines the API key. - /// - /// - [JsonInclude, JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKey ApiKey { get; set; } - - /// - /// - /// The type of grant. Supported grant types are: access_token, password. - /// - /// - [JsonInclude, JsonPropertyName("grant_type")] - public Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyGrantType GrantType { get; set; } - - /// - /// - /// The user’s password. If you specify the password grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - [JsonInclude, JsonPropertyName("password")] - public string? Password { get; set; } - - /// - /// - /// The name of the user to be impersonated. - /// - /// - [JsonInclude, JsonPropertyName("run_as")] - public Elastic.Clients.Elasticsearch.Serverless.Username? RunAs { get; set; } - - /// - /// - /// The user name that identifies the user. - /// If you specify the password grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - [JsonInclude, JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get; set; } -} - -/// -/// -/// Grant an API key. -/// -/// -/// Create an API key on behalf of another user. -/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. -/// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. -/// It is not possible to use this API to create an API key without that user’s credentials. -/// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. -/// In this case, the API key will be created on behalf of the impersonated user. -/// -/// -/// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. -/// -/// -/// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. -/// If applicable, it also returns expiration information for the API key in milliseconds. -/// -/// -/// By default, API keys never expire. You can specify expiration information when you create the API keys. -/// -/// -public sealed partial class GrantApiKeyRequestDescriptor : RequestDescriptor, GrantApiKeyRequestParameters> -{ - internal GrantApiKeyRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GrantApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGrantApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.grant_api_key"; - - private string? AccessTokenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKey ApiKeyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKeyDescriptor ApiKeyDescriptor { get; set; } - private Action> ApiKeyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyGrantType GrantTypeValue { get; set; } - private string? PasswordValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? RunAsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } - - /// - /// - /// The user’s access token. - /// If you specify the access_token grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - public GrantApiKeyRequestDescriptor AccessToken(string? accessToken) - { - AccessTokenValue = accessToken; - return Self; - } - - /// - /// - /// Defines the API key. - /// - /// - public GrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKey apiKey) - { - ApiKeyDescriptor = null; - ApiKeyDescriptorAction = null; - ApiKeyValue = apiKey; - return Self; - } - - public GrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKeyDescriptor descriptor) - { - ApiKeyValue = null; - ApiKeyDescriptorAction = null; - ApiKeyDescriptor = descriptor; - return Self; - } - - public GrantApiKeyRequestDescriptor ApiKey(Action> configure) - { - ApiKeyValue = null; - ApiKeyDescriptor = null; - ApiKeyDescriptorAction = configure; - return Self; - } - - /// - /// - /// The type of grant. Supported grant types are: access_token, password. - /// - /// - public GrantApiKeyRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyGrantType grantType) - { - GrantTypeValue = grantType; - return Self; - } - - /// - /// - /// The user’s password. If you specify the password grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - public GrantApiKeyRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - /// - /// - /// The name of the user to be impersonated. - /// - /// - public GrantApiKeyRequestDescriptor RunAs(Elastic.Clients.Elasticsearch.Serverless.Username? runAs) - { - RunAsValue = runAs; - return Self; - } - - /// - /// - /// The user name that identifies the user. - /// If you specify the password grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - public GrantApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AccessTokenValue)) - { - writer.WritePropertyName("access_token"); - writer.WriteStringValue(AccessTokenValue); - } - - if (ApiKeyDescriptor is not null) - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, ApiKeyDescriptor, options); - } - else if (ApiKeyDescriptorAction is not null) - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKeyDescriptor(ApiKeyDescriptorAction), options); - } - else - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, ApiKeyValue, options); - } - - writer.WritePropertyName("grant_type"); - JsonSerializer.Serialize(writer, GrantTypeValue, options); - if (!string.IsNullOrEmpty(PasswordValue)) - { - writer.WritePropertyName("password"); - writer.WriteStringValue(PasswordValue); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Grant an API key. -/// -/// -/// Create an API key on behalf of another user. -/// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. -/// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. -/// It is not possible to use this API to create an API key without that user’s credentials. -/// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. -/// In this case, the API key will be created on behalf of the impersonated user. -/// -/// -/// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. -/// -/// -/// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. -/// If applicable, it also returns expiration information for the API key in milliseconds. -/// -/// -/// By default, API keys never expire. You can specify expiration information when you create the API keys. -/// -/// -public sealed partial class GrantApiKeyRequestDescriptor : RequestDescriptor -{ - internal GrantApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - - public GrantApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGrantApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.grant_api_key"; - - private string? AccessTokenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKey ApiKeyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKeyDescriptor ApiKeyDescriptor { get; set; } - private Action ApiKeyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyGrantType GrantTypeValue { get; set; } - private string? PasswordValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? RunAsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } - - /// - /// - /// The user’s access token. - /// If you specify the access_token grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - public GrantApiKeyRequestDescriptor AccessToken(string? accessToken) - { - AccessTokenValue = accessToken; - return Self; - } - - /// - /// - /// Defines the API key. - /// - /// - public GrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKey apiKey) - { - ApiKeyDescriptor = null; - ApiKeyDescriptorAction = null; - ApiKeyValue = apiKey; - return Self; - } - - public GrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKeyDescriptor descriptor) - { - ApiKeyValue = null; - ApiKeyDescriptorAction = null; - ApiKeyDescriptor = descriptor; - return Self; - } - - public GrantApiKeyRequestDescriptor ApiKey(Action configure) - { - ApiKeyValue = null; - ApiKeyDescriptor = null; - ApiKeyDescriptorAction = configure; - return Self; - } - - /// - /// - /// The type of grant. Supported grant types are: access_token, password. - /// - /// - public GrantApiKeyRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyGrantType grantType) - { - GrantTypeValue = grantType; - return Self; - } - - /// - /// - /// The user’s password. If you specify the password grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - public GrantApiKeyRequestDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - /// - /// - /// The name of the user to be impersonated. - /// - /// - public GrantApiKeyRequestDescriptor RunAs(Elastic.Clients.Elasticsearch.Serverless.Username? runAs) - { - RunAsValue = runAs; - return Self; - } - - /// - /// - /// The user name that identifies the user. - /// If you specify the password grant type, this parameter is required. - /// It is not valid with other grant types. - /// - /// - public GrantApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AccessTokenValue)) - { - writer.WritePropertyName("access_token"); - writer.WriteStringValue(AccessTokenValue); - } - - if (ApiKeyDescriptor is not null) - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, ApiKeyDescriptor, options); - } - else if (ApiKeyDescriptorAction is not null) - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.GrantApiKeyDescriptor(ApiKeyDescriptorAction), options); - } - else - { - writer.WritePropertyName("api_key"); - JsonSerializer.Serialize(writer, ApiKeyValue, options); - } - - writer.WritePropertyName("grant_type"); - JsonSerializer.Serialize(writer, GrantTypeValue, options); - if (!string.IsNullOrEmpty(PasswordValue)) - { - writer.WritePropertyName("password"); - writer.WriteStringValue(PasswordValue); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyResponse.g.cs deleted file mode 100644 index 60f9d7f83b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/GrantApiKeyResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class GrantApiKeyResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("api_key")] - public string ApiKey { get; init; } - [JsonInclude, JsonPropertyName("encoded")] - public string Encoded { get; init; } - [JsonInclude, JsonPropertyName("expiration")] - public long? Expiration { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs deleted file mode 100644 index 103009be8ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ /dev/null @@ -1,277 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class HasPrivilegesRequestParameters : RequestParameters -{ -} - -/// -/// -/// Check user privileges. -/// -/// -/// Determine whether the specified user has a specified list of privileges. -/// -/// -public sealed partial class HasPrivilegesRequest : PlainRequest -{ - public HasPrivilegesRequest() - { - } - - public HasPrivilegesRequest(Elastic.Clients.Elasticsearch.Serverless.Name? user) : base(r => r.Optional("user", user)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityHasPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.has_privileges"; - - [JsonInclude, JsonPropertyName("application")] - public ICollection? Application { get; set; } - - /// - /// - /// A list of the cluster privileges that you want to check. - /// - /// - [JsonInclude, JsonPropertyName("cluster")] - public ICollection? Cluster { get; set; } - [JsonInclude, JsonPropertyName("index")] - public ICollection? Index { get; set; } -} - -/// -/// -/// Check user privileges. -/// -/// -/// Determine whether the specified user has a specified list of privileges. -/// -/// -public sealed partial class HasPrivilegesRequestDescriptor : RequestDescriptor -{ - internal HasPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public HasPrivilegesRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? user) : base(r => r.Optional("user", user)) - { - } - - public HasPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityHasPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.has_privileges"; - - public HasPrivilegesRequestDescriptor User(Elastic.Clients.Elasticsearch.Serverless.Name? user) - { - RouteValues.Optional("user", user); - return Self; - } - - private ICollection? ApplicationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor ApplicationDescriptor { get; set; } - private Action ApplicationDescriptorAction { get; set; } - private Action[] ApplicationDescriptorActions { get; set; } - private ICollection? ClusterValue { get; set; } - private ICollection? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor IndexDescriptor { get; set; } - private Action IndexDescriptorAction { get; set; } - private Action[] IndexDescriptorActions { get; set; } - - public HasPrivilegesRequestDescriptor Application(ICollection? application) - { - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = null; - ApplicationValue = application; - return Self; - } - - public HasPrivilegesRequestDescriptor Application(Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor descriptor) - { - ApplicationValue = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = null; - ApplicationDescriptor = descriptor; - return Self; - } - - public HasPrivilegesRequestDescriptor Application(Action configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorActions = null; - ApplicationDescriptorAction = configure; - return Self; - } - - public HasPrivilegesRequestDescriptor Application(params Action[] configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of the cluster privileges that you want to check. - /// - /// - public HasPrivilegesRequestDescriptor Cluster(ICollection? cluster) - { - ClusterValue = cluster; - return Self; - } - - public HasPrivilegesRequestDescriptor Index(ICollection? index) - { - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexDescriptorActions = null; - IndexValue = index; - return Self; - } - - public HasPrivilegesRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor descriptor) - { - IndexValue = null; - IndexDescriptorAction = null; - IndexDescriptorActions = null; - IndexDescriptor = descriptor; - return Self; - } - - public HasPrivilegesRequestDescriptor Index(Action configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorActions = null; - IndexDescriptorAction = configure; - return Self; - } - - public HasPrivilegesRequestDescriptor Index(params Action[] configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationDescriptor is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationDescriptorAction is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor(ApplicationDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationDescriptorActions is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - foreach (var action in ApplicationDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationValue is not null) - { - writer.WritePropertyName("application"); - JsonSerializer.Serialize(writer, ApplicationValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (IndexDescriptor is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndexDescriptor, options); - writer.WriteEndArray(); - } - else if (IndexDescriptorAction is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor(IndexDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndexDescriptorActions is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - foreach (var action in IndexDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesResponse.g.cs deleted file mode 100644 index 4411a6e4215..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesResponse.g.cs +++ /dev/null @@ -1,42 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class HasPrivilegesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("application")] - public IReadOnlyDictionary>> Application { get; init; } - [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyDictionary Cluster { get; init; } - [JsonInclude, JsonPropertyName("has_all_requested")] - public bool HasAllRequested { get; init; } - [JsonInclude, JsonPropertyName("index")] - [ReadOnlyIndexNameDictionaryConverter(typeof(IReadOnlyDictionary))] - public IReadOnlyDictionary> Index { get; init; } - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs deleted file mode 100644 index 56c7c266a74..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ /dev/null @@ -1,154 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class HasPrivilegesUserProfileRequestParameters : RequestParameters -{ -} - -/// -/// -/// Check user profile privileges. -/// -/// -/// Determine whether the users associated with the specified user profile IDs have all the requested privileges. -/// -/// -public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityHasPrivilegesUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.has_privileges_user_profile"; - - [JsonInclude, JsonPropertyName("privileges")] - public Elastic.Clients.Elasticsearch.Serverless.Security.PrivilegesCheck Privileges { get; set; } - - /// - /// - /// A list of profile IDs. The privileges are checked for associated users of the profiles. - /// - /// - [JsonInclude, JsonPropertyName("uids")] - public ICollection Uids { get; set; } -} - -/// -/// -/// Check user profile privileges. -/// -/// -/// Determine whether the users associated with the specified user profile IDs have all the requested privileges. -/// -/// -public sealed partial class HasPrivilegesUserProfileRequestDescriptor : RequestDescriptor -{ - internal HasPrivilegesUserProfileRequestDescriptor(Action configure) => configure.Invoke(this); - - public HasPrivilegesUserProfileRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityHasPrivilegesUserProfile; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.has_privileges_user_profile"; - - private Elastic.Clients.Elasticsearch.Serverless.Security.PrivilegesCheck PrivilegesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.PrivilegesCheckDescriptor PrivilegesDescriptor { get; set; } - private Action PrivilegesDescriptorAction { get; set; } - private ICollection UidsValue { get; set; } - - public HasPrivilegesUserProfileRequestDescriptor Privileges(Elastic.Clients.Elasticsearch.Serverless.Security.PrivilegesCheck privileges) - { - PrivilegesDescriptor = null; - PrivilegesDescriptorAction = null; - PrivilegesValue = privileges; - return Self; - } - - public HasPrivilegesUserProfileRequestDescriptor Privileges(Elastic.Clients.Elasticsearch.Serverless.Security.PrivilegesCheckDescriptor descriptor) - { - PrivilegesValue = null; - PrivilegesDescriptorAction = null; - PrivilegesDescriptor = descriptor; - return Self; - } - - public HasPrivilegesUserProfileRequestDescriptor Privileges(Action configure) - { - PrivilegesValue = null; - PrivilegesDescriptor = null; - PrivilegesDescriptorAction = configure; - return Self; - } - - /// - /// - /// A list of profile IDs. The privileges are checked for associated users of the profiles. - /// - /// - public HasPrivilegesUserProfileRequestDescriptor Uids(ICollection uids) - { - UidsValue = uids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PrivilegesDescriptor is not null) - { - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesDescriptor, options); - } - else if (PrivilegesDescriptorAction is not null) - { - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.PrivilegesCheckDescriptor(PrivilegesDescriptorAction), options); - } - else - { - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - } - - writer.WritePropertyName("uids"); - JsonSerializer.Serialize(writer, UidsValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs deleted file mode 100644 index 050f0f7f9b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/HasPrivilegesUserProfileResponse.g.cs +++ /dev/null @@ -1,50 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class HasPrivilegesUserProfileResponse : ElasticsearchResponse -{ - /// - /// - /// The subset of the requested profile IDs for which an error - /// was encountered. It does not include the missing profile IDs - /// or the profile IDs of the users that do not have all the - /// requested privileges. This field is absent if empty. - /// - /// - [JsonInclude, JsonPropertyName("errors")] - public Elastic.Clients.Elasticsearch.Serverless.Security.HasPrivilegesUserProfileErrors? Errors { get; init; } - - /// - /// - /// The subset of the requested profile IDs of the users that - /// have all the requested privileges. - /// - /// - [JsonInclude, JsonPropertyName("has_privilege_uids")] - public IReadOnlyCollection HasPrivilegeUids { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs deleted file mode 100644 index c4d81214b8a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ /dev/null @@ -1,284 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class InvalidateApiKeyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Invalidate API keys. -/// -/// -/// This API invalidates API keys created by the create API key or grant API key APIs. -/// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. -/// The manage_api_key privilege allows deleting any API keys. -/// The manage_own_api_key only allows deleting API keys that are owned by the user. -/// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: -/// -/// -/// -/// -/// Set the parameter owner=true. -/// -/// -/// -/// -/// Or, set both username and realm_name to match the user’s identity. -/// -/// -/// -/// -/// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. -/// -/// -/// -/// -public sealed partial class InvalidateApiKeyRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityInvalidateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.invalidate_api_key"; - - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// A list of API key ids. - /// This parameter cannot be used with any of name, realm_name, or username. - /// - /// - [JsonInclude, JsonPropertyName("ids")] - public ICollection? Ids { get; set; } - - /// - /// - /// An API key name. - /// This parameter cannot be used with any of ids, realm_name or username. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } - - /// - /// - /// Can be used to query API keys owned by the currently authenticated user. - /// The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones. - /// - /// - [JsonInclude, JsonPropertyName("owner")] - public bool? Owner { get; set; } - - /// - /// - /// The name of an authentication realm. - /// This parameter cannot be used with either ids or name, or when owner flag is set to true. - /// - /// - [JsonInclude, JsonPropertyName("realm_name")] - public string? RealmName { get; set; } - - /// - /// - /// The username of a user. - /// This parameter cannot be used with either ids or name, or when owner flag is set to true. - /// - /// - [JsonInclude, JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get; set; } -} - -/// -/// -/// Invalidate API keys. -/// -/// -/// This API invalidates API keys created by the create API key or grant API key APIs. -/// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. -/// The manage_api_key privilege allows deleting any API keys. -/// The manage_own_api_key only allows deleting API keys that are owned by the user. -/// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: -/// -/// -/// -/// -/// Set the parameter owner=true. -/// -/// -/// -/// -/// Or, set both username and realm_name to match the user’s identity. -/// -/// -/// -/// -/// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. -/// -/// -/// -/// -public sealed partial class InvalidateApiKeyRequestDescriptor : RequestDescriptor -{ - internal InvalidateApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - - public InvalidateApiKeyRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityInvalidateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.invalidate_api_key"; - - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private ICollection? IdsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private bool? OwnerValue { get; set; } - private string? RealmNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } - - public InvalidateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// A list of API key ids. - /// This parameter cannot be used with any of name, realm_name, or username. - /// - /// - public InvalidateApiKeyRequestDescriptor Ids(ICollection? ids) - { - IdsValue = ids; - return Self; - } - - /// - /// - /// An API key name. - /// This parameter cannot be used with any of ids, realm_name or username. - /// - /// - public InvalidateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Can be used to query API keys owned by the currently authenticated user. - /// The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones. - /// - /// - public InvalidateApiKeyRequestDescriptor Owner(bool? owner = true) - { - OwnerValue = owner; - return Self; - } - - /// - /// - /// The name of an authentication realm. - /// This parameter cannot be used with either ids or name, or when owner flag is set to true. - /// - /// - public InvalidateApiKeyRequestDescriptor RealmName(string? realmName) - { - RealmNameValue = realmName; - return Self; - } - - /// - /// - /// The username of a user. - /// This parameter cannot be used with either ids or name, or when owner flag is set to true. - /// - /// - public InvalidateApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) - { - UsernameValue = username; - 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 (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (OwnerValue.HasValue) - { - writer.WritePropertyName("owner"); - writer.WriteBooleanValue(OwnerValue.Value); - } - - if (!string.IsNullOrEmpty(RealmNameValue)) - { - writer.WritePropertyName("realm_name"); - writer.WriteStringValue(RealmNameValue); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs deleted file mode 100644 index aa223f94def..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs +++ /dev/null @@ -1,39 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class InvalidateApiKeyResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("error_count")] - public int ErrorCount { get; init; } - [JsonInclude, JsonPropertyName("error_details")] - public IReadOnlyCollection? ErrorDetails { get; init; } - [JsonInclude, JsonPropertyName("invalidated_api_keys")] - public IReadOnlyCollection InvalidatedApiKeys { get; init; } - [JsonInclude, JsonPropertyName("previously_invalidated_api_keys")] - public IReadOnlyCollection PreviouslyInvalidatedApiKeys { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs deleted file mode 100644 index 91ad1b235ae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ /dev/null @@ -1,159 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class InvalidateTokenRequestParameters : RequestParameters -{ -} - -/// -/// -/// Invalidate a token. -/// -/// -/// The access tokens returned by the get token API have a finite period of time for which they are valid. -/// After that time period, they can no longer be used. -/// The time period is defined by the xpack.security.authc.token.timeout setting. -/// -/// -/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. -/// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. -/// -/// -public sealed partial class InvalidateTokenRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityInvalidateToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.invalidate_token"; - - [JsonInclude, JsonPropertyName("realm_name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? RealmName { get; set; } - [JsonInclude, JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - [JsonInclude, JsonPropertyName("token")] - public string? Token { get; set; } - [JsonInclude, JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get; set; } -} - -/// -/// -/// Invalidate a token. -/// -/// -/// The access tokens returned by the get token API have a finite period of time for which they are valid. -/// After that time period, they can no longer be used. -/// The time period is defined by the xpack.security.authc.token.timeout setting. -/// -/// -/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. -/// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. -/// -/// -public sealed partial class InvalidateTokenRequestDescriptor : RequestDescriptor -{ - internal InvalidateTokenRequestDescriptor(Action configure) => configure.Invoke(this); - - public InvalidateTokenRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityInvalidateToken; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.invalidate_token"; - - private Elastic.Clients.Elasticsearch.Serverless.Name? RealmNameValue { get; set; } - private string? RefreshTokenValue { get; set; } - private string? TokenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } - - public InvalidateTokenRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Serverless.Name? realmName) - { - RealmNameValue = realmName; - return Self; - } - - public InvalidateTokenRequestDescriptor RefreshToken(string? refreshToken) - { - RefreshTokenValue = refreshToken; - return Self; - } - - public InvalidateTokenRequestDescriptor Token(string? token) - { - TokenValue = token; - return Self; - } - - public InvalidateTokenRequestDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RealmNameValue is not null) - { - writer.WritePropertyName("realm_name"); - JsonSerializer.Serialize(writer, RealmNameValue, options); - } - - if (!string.IsNullOrEmpty(RefreshTokenValue)) - { - writer.WritePropertyName("refresh_token"); - writer.WriteStringValue(RefreshTokenValue); - } - - if (!string.IsNullOrEmpty(TokenValue)) - { - writer.WritePropertyName("token"); - writer.WriteStringValue(TokenValue); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenResponse.g.cs deleted file mode 100644 index 7d3014db840..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/InvalidateTokenResponse.g.cs +++ /dev/null @@ -1,39 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class InvalidateTokenResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("error_count")] - public long ErrorCount { get; init; } - [JsonInclude, JsonPropertyName("error_details")] - public IReadOnlyCollection? ErrorDetails { get; init; } - [JsonInclude, JsonPropertyName("invalidated_tokens")] - public long InvalidatedTokens { get; init; } - [JsonInclude, JsonPropertyName("previously_invalidated_tokens")] - public long PreviouslyInvalidatedTokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs deleted file mode 100644 index 2a4b0e681d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ /dev/null @@ -1,110 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class PutPrivilegesRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Create or update application privileges. -/// -/// -public sealed partial class PutPrivilegesRequest : PlainRequest, ISelfSerializable -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_privileges"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - public Dictionary> Privileges { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Privileges, options); - } -} - -/// -/// -/// Create or update application privileges. -/// -/// -public sealed partial class PutPrivilegesRequestDescriptor : RequestDescriptor, ISelfSerializable -{ - internal PutPrivilegesRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutPrivilegesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutPrivileges; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_privileges"; - - public PutPrivilegesRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, _items, options); - } - - Dictionary> _items = new(); - - public PutPrivilegesRequestDescriptor AddPrivileges(string key, Dictionary value) - { - _items.Add(key, value); - return this; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesResponse.g.cs deleted file mode 100644 index 8e250b9a89d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutPrivilegesResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class PutPrivilegesResponse : DictionaryResponse> -{ - public PutPrivilegesResponse(IReadOnlyDictionary> dictionary) : base(dictionary) - { - } - - public PutPrivilegesResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs deleted file mode 100644 index 8b012008cd7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ /dev/null @@ -1,302 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class PutRoleMappingRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Create or update role mappings. -/// -/// -/// Role mappings define which roles are assigned to each user. -/// Each mapping has rules that identify users and a list of roles that are granted to those users. -/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. -/// -/// -/// This API does not create roles. Rather, it maps users to existing roles. -/// Roles can be created by using the create or update roles API or roles files. -/// -/// -public sealed partial class PutRoleMappingRequest : PlainRequest -{ - public PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutRoleMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_role_mapping"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - [JsonInclude, JsonPropertyName("roles")] - public ICollection? Roles { get; set; } - [JsonInclude, JsonPropertyName("role_templates")] - public ICollection? RoleTemplates { get; set; } - [JsonInclude, JsonPropertyName("rules")] - public Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule? Rules { get; set; } - [JsonInclude, JsonPropertyName("run_as")] - public ICollection? RunAs { get; set; } -} - -/// -/// -/// Create or update role mappings. -/// -/// -/// Role mappings define which roles are assigned to each user. -/// Each mapping has rules that identify users and a list of roles that are granted to those users. -/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. -/// -/// -/// This API does not create roles. Rather, it maps users to existing roles. -/// Roles can be created by using the create or update roles API or roles files. -/// -/// -public sealed partial class PutRoleMappingRequestDescriptor : RequestDescriptor -{ - internal PutRoleMappingRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutRoleMappingRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutRoleMapping; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_role_mapping"; - - public PutRoleMappingRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public PutRoleMappingRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private bool? EnabledValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private ICollection? RolesValue { get; set; } - private ICollection? RoleTemplatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleTemplateDescriptor RoleTemplatesDescriptor { get; set; } - private Action RoleTemplatesDescriptorAction { get; set; } - private Action[] RoleTemplatesDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule? RulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRuleDescriptor RulesDescriptor { get; set; } - private Action RulesDescriptorAction { get; set; } - private ICollection? RunAsValue { get; set; } - - public PutRoleMappingRequestDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public PutRoleMappingRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PutRoleMappingRequestDescriptor Roles(ICollection? roles) - { - RolesValue = roles; - return Self; - } - - public PutRoleMappingRequestDescriptor RoleTemplates(ICollection? roleTemplates) - { - RoleTemplatesDescriptor = null; - RoleTemplatesDescriptorAction = null; - RoleTemplatesDescriptorActions = null; - RoleTemplatesValue = roleTemplates; - return Self; - } - - public PutRoleMappingRequestDescriptor RoleTemplates(Elastic.Clients.Elasticsearch.Serverless.Security.RoleTemplateDescriptor descriptor) - { - RoleTemplatesValue = null; - RoleTemplatesDescriptorAction = null; - RoleTemplatesDescriptorActions = null; - RoleTemplatesDescriptor = descriptor; - return Self; - } - - public PutRoleMappingRequestDescriptor RoleTemplates(Action configure) - { - RoleTemplatesValue = null; - RoleTemplatesDescriptor = null; - RoleTemplatesDescriptorActions = null; - RoleTemplatesDescriptorAction = configure; - return Self; - } - - public PutRoleMappingRequestDescriptor RoleTemplates(params Action[] configure) - { - RoleTemplatesValue = null; - RoleTemplatesDescriptor = null; - RoleTemplatesDescriptorAction = null; - RoleTemplatesDescriptorActions = configure; - return Self; - } - - public PutRoleMappingRequestDescriptor Rules(Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule? rules) - { - RulesDescriptor = null; - RulesDescriptorAction = null; - RulesValue = rules; - return Self; - } - - public PutRoleMappingRequestDescriptor Rules(Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRuleDescriptor descriptor) - { - RulesValue = null; - RulesDescriptorAction = null; - RulesDescriptor = descriptor; - return Self; - } - - public PutRoleMappingRequestDescriptor Rules(Action configure) - { - RulesValue = null; - RulesDescriptor = null; - RulesDescriptorAction = configure; - return Self; - } - - public PutRoleMappingRequestDescriptor RunAs(ICollection? runAs) - { - RunAsValue = runAs; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RolesValue is not null) - { - writer.WritePropertyName("roles"); - JsonSerializer.Serialize(writer, RolesValue, options); - } - - if (RoleTemplatesDescriptor is not null) - { - writer.WritePropertyName("role_templates"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RoleTemplatesDescriptor, options); - writer.WriteEndArray(); - } - else if (RoleTemplatesDescriptorAction is not null) - { - writer.WritePropertyName("role_templates"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RoleTemplateDescriptor(RoleTemplatesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RoleTemplatesDescriptorActions is not null) - { - writer.WritePropertyName("role_templates"); - writer.WriteStartArray(); - foreach (var action in RoleTemplatesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RoleTemplateDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RoleTemplatesValue is not null) - { - writer.WritePropertyName("role_templates"); - JsonSerializer.Serialize(writer, RoleTemplatesValue, options); - } - - if (RulesDescriptor is not null) - { - writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, RulesDescriptor, options); - } - else if (RulesDescriptorAction is not null) - { - writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRuleDescriptor(RulesDescriptorAction), options); - } - else if (RulesValue is not null) - { - writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, RulesValue, options); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingResponse.g.cs deleted file mode 100644 index df37b6dc402..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleMappingResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class PutRoleMappingResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("created")] - public bool? Created { get; init; } - [JsonInclude, JsonPropertyName("role_mapping")] - public Elastic.Clients.Elasticsearch.Serverless.Security.CreatedStatus RoleMapping { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs deleted file mode 100644 index 7cb42023af5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleRequest.g.cs +++ /dev/null @@ -1,698 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class PutRoleRequestParameters : RequestParameters -{ - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Create or update roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. -/// The create or update roles API cannot update roles that are defined in roles files. -/// File-based role management is not available in Elastic Serverless. -/// -/// -public sealed partial class PutRoleRequest : PlainRequest -{ - public PutRoleRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_role"; - - /// - /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// A list of application privilege entries. - /// - /// - [JsonInclude, JsonPropertyName("applications")] - public ICollection? Applications { get; set; } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster-level actions for users with this role. - /// - /// - [JsonInclude, JsonPropertyName("cluster")] - public ICollection? Cluster { get; set; } - - /// - /// - /// Optional description of the role descriptor - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// A list of indices permissions entries. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public ICollection? Indices { get; set; } - - /// - /// - /// Optional metadata. Within the metadata object, keys that begin with an underscore (_) are reserved for system use. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - - /// - /// - /// A list of users that the owners of this role can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - [JsonInclude, JsonPropertyName("run_as")] - public ICollection? RunAs { get; set; } - - /// - /// - /// Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If enabled is false, the role is ignored, but is still listed in the response from the authenticate API. - /// - /// - [JsonInclude, JsonPropertyName("transient_metadata")] - public IDictionary? TransientMetadata { get; set; } -} - -/// -/// -/// Create or update roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. -/// The create or update roles API cannot update roles that are defined in roles files. -/// File-based role management is not available in Elastic Serverless. -/// -/// -public sealed partial class PutRoleRequestDescriptor : RequestDescriptor, PutRoleRequestParameters> -{ - internal PutRoleRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutRoleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_role"; - - public PutRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public PutRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private ICollection? ApplicationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor ApplicationsDescriptor { get; set; } - private Action ApplicationsDescriptorAction { get; set; } - private Action[] ApplicationsDescriptorActions { get; set; } - private ICollection? ClusterValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor IndicesDescriptor { get; set; } - private Action> IndicesDescriptorAction { get; set; } - private Action>[] IndicesDescriptorActions { get; set; } - private IDictionary? MetadataValue { get; set; } - private ICollection? RunAsValue { get; set; } - private IDictionary? TransientMetadataValue { get; set; } - - /// - /// - /// A list of application privilege entries. - /// - /// - public PutRoleRequestDescriptor Applications(ICollection? applications) - { - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsValue = applications; - return Self; - } - - public PutRoleRequestDescriptor Applications(Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor descriptor) - { - ApplicationsValue = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptor = descriptor; - return Self; - } - - public PutRoleRequestDescriptor Applications(Action configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptorAction = configure; - return Self; - } - - public PutRoleRequestDescriptor Applications(params Action[] configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster-level actions for users with this role. - /// - /// - public PutRoleRequestDescriptor Cluster(ICollection? cluster) - { - ClusterValue = cluster; - return Self; - } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public PutRoleRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public PutRoleRequestDescriptor Indices(ICollection? indices) - { - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesValue = indices; - return Self; - } - - public PutRoleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor descriptor) - { - IndicesValue = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesDescriptor = descriptor; - return Self; - } - - public PutRoleRequestDescriptor Indices(Action> configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorActions = null; - IndicesDescriptorAction = configure; - return Self; - } - - public PutRoleRequestDescriptor Indices(params Action>[] configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Optional metadata. Within the metadata object, keys that begin with an underscore (_) are reserved for system use. - /// - /// - public PutRoleRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// A list of users that the owners of this role can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - public PutRoleRequestDescriptor RunAs(ICollection? runAs) - { - RunAsValue = runAs; - return Self; - } - - /// - /// - /// Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If enabled is false, the role is ignored, but is still listed in the response from the authenticate API. - /// - /// - public PutRoleRequestDescriptor TransientMetadata(Func, FluentDictionary> selector) - { - TransientMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationsDescriptor is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationsDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorAction is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(ApplicationsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorActions is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - foreach (var action in ApplicationsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationsValue is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, ApplicationsValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (IndicesDescriptor is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndicesDescriptor, options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorAction is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(IndicesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorActions is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - foreach (var action in IndicesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (TransientMetadataValue is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, TransientMetadataValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update roles. -/// -/// -/// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. -/// The create or update roles API cannot update roles that are defined in roles files. -/// File-based role management is not available in Elastic Serverless. -/// -/// -public sealed partial class PutRoleRequestDescriptor : RequestDescriptor -{ - internal PutRoleRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutRoleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityPutRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.put_role"; - - public PutRoleRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public PutRoleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("name", name); - return Self; - } - - private ICollection? ApplicationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor ApplicationsDescriptor { get; set; } - private Action ApplicationsDescriptorAction { get; set; } - private Action[] ApplicationsDescriptorActions { get; set; } - private ICollection? ClusterValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor IndicesDescriptor { get; set; } - private Action IndicesDescriptorAction { get; set; } - private Action[] IndicesDescriptorActions { get; set; } - private IDictionary? MetadataValue { get; set; } - private ICollection? RunAsValue { get; set; } - private IDictionary? TransientMetadataValue { get; set; } - - /// - /// - /// A list of application privilege entries. - /// - /// - public PutRoleRequestDescriptor Applications(ICollection? applications) - { - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsValue = applications; - return Self; - } - - public PutRoleRequestDescriptor Applications(Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor descriptor) - { - ApplicationsValue = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptor = descriptor; - return Self; - } - - public PutRoleRequestDescriptor Applications(Action configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptorAction = configure; - return Self; - } - - public PutRoleRequestDescriptor Applications(params Action[] configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster-level actions for users with this role. - /// - /// - public PutRoleRequestDescriptor Cluster(ICollection? cluster) - { - ClusterValue = cluster; - return Self; - } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public PutRoleRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public PutRoleRequestDescriptor Indices(ICollection? indices) - { - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesValue = indices; - return Self; - } - - public PutRoleRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor descriptor) - { - IndicesValue = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesDescriptor = descriptor; - return Self; - } - - public PutRoleRequestDescriptor Indices(Action configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorActions = null; - IndicesDescriptorAction = configure; - return Self; - } - - public PutRoleRequestDescriptor Indices(params Action[] configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Optional metadata. Within the metadata object, keys that begin with an underscore (_) are reserved for system use. - /// - /// - public PutRoleRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// A list of users that the owners of this role can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - public PutRoleRequestDescriptor RunAs(ICollection? runAs) - { - RunAsValue = runAs; - return Self; - } - - /// - /// - /// Indicates roles that might be incompatible with the current cluster license, specifically roles with document and field level security. When the cluster license doesn’t allow certain features for a given role, this parameter is updated dynamically to list the incompatible features. If enabled is false, the role is ignored, but is still listed in the response from the authenticate API. - /// - /// - public PutRoleRequestDescriptor TransientMetadata(Func, FluentDictionary> selector) - { - TransientMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationsDescriptor is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationsDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorAction is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(ApplicationsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorActions is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - foreach (var action in ApplicationsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationsValue is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, ApplicationsValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (IndicesDescriptor is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndicesDescriptor, options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorAction is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(IndicesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorActions is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - foreach (var action in IndicesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (TransientMetadataValue is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, TransientMetadataValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleResponse.g.cs deleted file mode 100644 index a08aebbae71..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/PutRoleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class PutRoleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("role")] - public Elastic.Clients.Elasticsearch.Serverless.Security.CreatedStatus Role { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs deleted file mode 100644 index 4da4639b1b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ /dev/null @@ -1,752 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class QueryApiKeysRequestParameters : RequestParameters -{ - /// - /// - /// Determines whether aggregation names are prefixed by their respective types in the response. - /// - /// - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Return the snapshot of the owner user's role descriptors associated with the API key. - /// An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors. - /// - /// - public bool? WithLimitedBy { get => Q("with_limited_by"); set => Q("with_limited_by", value); } - - /// - /// - /// Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. - /// - /// - public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } -} - -internal sealed partial class QueryApiKeysRequestConverter : JsonConverter -{ - public override QueryApiKeysRequest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new QueryApiKeysRequest(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "search_after") - { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "size") - { - variant.Size = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "sort") - { - variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, QueryApiKeysRequest value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.From.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(value.From.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.SearchAfter is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, value.SearchAfter, options); - } - - if (value.Size.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(value.Size.Value); - } - - if (value.Sort is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, value.Sort, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Find API keys with a query. -/// -/// -/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. -/// -/// -[JsonConverter(typeof(QueryApiKeysRequestConverter))] -public sealed partial class QueryApiKeysRequest : PlainRequest -{ - public QueryApiKeysRequest() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryApiKeys; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_api_keys"; - - /// - /// - /// Determines whether aggregation names are prefixed by their respective types in the response. - /// - /// - [JsonIgnore] - public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } - - /// - /// - /// Return the snapshot of the owner user's role descriptors associated with the API key. - /// An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors. - /// - /// - [JsonIgnore] - public bool? WithLimitedBy { get => Q("with_limited_by"); set => Q("with_limited_by", value); } - - /// - /// - /// Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. - /// - /// - [JsonIgnore] - public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } - - /// - /// - /// Any aggregations to run over the corpus of returned API keys. - /// Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. - /// This supports only a subset of aggregation types, namely: terms, range, date_range, missing, - /// cardinality, value_count, composite, filter, and filters. - /// Additionally, aggregations only run over the same subset of fields that query works with. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// A query to filter which API keys to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following public information associated with an API key: id, type, name, - /// creation, expiration, invalidated, invalidation, username, realm, and metadata. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery? Query { get; set; } - - /// - /// - /// Search after definition - /// - /// - [JsonInclude, JsonPropertyName("search_after")] - public ICollection? SearchAfter { get; set; } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Other than id, all public fields of an API key are eligible for sorting. - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } -} - -/// -/// -/// Find API keys with a query. -/// -/// -/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor, QueryApiKeysRequestParameters> -{ - internal QueryApiKeysRequestDescriptor(Action> configure) => configure.Invoke(this); - - public QueryApiKeysRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryApiKeys; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_api_keys"; - - public QueryApiKeysRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - public QueryApiKeysRequestDescriptor WithLimitedBy(bool? withLimitedBy = true) => Qs("with_limited_by", withLimitedBy); - public QueryApiKeysRequestDescriptor WithProfileUid(bool? withProfileUid = true) => Qs("with_profile_uid", withProfileUid); - - private IDictionary> AggregationsValue { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - - /// - /// - /// Any aggregations to run over the corpus of returned API keys. - /// Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. - /// This supports only a subset of aggregation types, namely: terms, range, date_range, missing, - /// cardinality, value_count, composite, filter, and filters. - /// Additionally, aggregations only run over the same subset of fields that query works with. - /// - /// - public QueryApiKeysRequestDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryApiKeysRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// A query to filter which API keys to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following public information associated with an API key: id, type, name, - /// creation, expiration, invalidated, invalidation, username, realm, and metadata. - /// - /// - public QueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public QueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public QueryApiKeysRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Search after definition - /// - /// - public QueryApiKeysRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryApiKeysRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Other than id, all public fields of an API key are eligible for sorting. - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - public QueryApiKeysRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public QueryApiKeysRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public QueryApiKeysRequestDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public QueryApiKeysRequestDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Find API keys with a query. -/// -/// -/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor -{ - internal QueryApiKeysRequestDescriptor(Action configure) => configure.Invoke(this); - - public QueryApiKeysRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryApiKeys; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_api_keys"; - - public QueryApiKeysRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); - public QueryApiKeysRequestDescriptor WithLimitedBy(bool? withLimitedBy = true) => Qs("with_limited_by", withLimitedBy); - public QueryApiKeysRequestDescriptor WithProfileUid(bool? withProfileUid = true) => Qs("with_profile_uid", withProfileUid); - - private IDictionary AggregationsValue { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - - /// - /// - /// Any aggregations to run over the corpus of returned API keys. - /// Aggregations and queries work together. Aggregations are computed only on the API keys that match the query. - /// This supports only a subset of aggregation types, namely: terms, range, date_range, missing, - /// cardinality, value_count, composite, filter, and filters. - /// Additionally, aggregations only run over the same subset of fields that query works with. - /// - /// - public QueryApiKeysRequestDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryApiKeysRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// A query to filter which API keys to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following public information associated with an API key: id, type, name, - /// creation, expiration, invalidated, invalidation, username, realm, and metadata. - /// - /// - public QueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public QueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public QueryApiKeysRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Search after definition - /// - /// - public QueryApiKeysRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryApiKeysRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Other than id, all public fields of an API key are eligible for sorting. - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - public QueryApiKeysRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public QueryApiKeysRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public QueryApiKeysRequestDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public QueryApiKeysRequestDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysResponse.g.cs deleted file mode 100644 index 2b1dc469d1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryApiKeysResponse.g.cs +++ /dev/null @@ -1,62 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class QueryApiKeysResponse : ElasticsearchResponse -{ - /// - /// - /// The aggregations result, if requested. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary? Aggregations { get; init; } - - /// - /// - /// A list of API key information. - /// - /// - [JsonInclude, JsonPropertyName("api_keys")] - public IReadOnlyCollection ApiKeys { get; init; } - - /// - /// - /// The number of API keys returned in the response. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// The total number of API keys found. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs deleted file mode 100644 index 7aea332007d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleRequest.g.cs +++ /dev/null @@ -1,541 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class QueryRoleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Find roles with a query. -/// -/// -/// Get roles in a paginated manner. You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryRoleRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_role"; - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// A query to filter which roles to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with roles: name, description, metadata, - /// applications.application, applications.privileges, applications.resources. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery? Query { get; set; } - - /// - /// - /// Search after definition - /// - /// - [JsonInclude, JsonPropertyName("search_after")] - public ICollection? SearchAfter { get; set; } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// All public fields of a role are eligible for sorting. - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } -} - -/// -/// -/// Find roles with a query. -/// -/// -/// Get roles in a paginated manner. You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor, QueryRoleRequestParameters> -{ - internal QueryRoleRequestDescriptor(Action> configure) => configure.Invoke(this); - - public QueryRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_role"; - - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleQueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryRoleRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// A query to filter which roles to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with roles: name, description, metadata, - /// applications.application, applications.privileges, applications.resources. - /// - /// - public QueryRoleRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public QueryRoleRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.RoleQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public QueryRoleRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Search after definition - /// - /// - public QueryRoleRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryRoleRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// All public fields of a role are eligible for sorting. - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - public QueryRoleRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public QueryRoleRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public QueryRoleRequestDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public QueryRoleRequestDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RoleQueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Find roles with a query. -/// -/// -/// Get roles in a paginated manner. You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor -{ - internal QueryRoleRequestDescriptor(Action configure) => configure.Invoke(this); - - public QueryRoleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryRole; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_role"; - - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RoleQueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryRoleRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// A query to filter which roles to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with roles: name, description, metadata, - /// applications.application, applications.privileges, applications.resources. - /// - /// - public QueryRoleRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public QueryRoleRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.RoleQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public QueryRoleRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Search after definition - /// - /// - public QueryRoleRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryRoleRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// All public fields of a role are eligible for sorting. - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - public QueryRoleRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public QueryRoleRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public QueryRoleRequestDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public QueryRoleRequestDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RoleQueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleResponse.g.cs deleted file mode 100644 index 9d55064c136..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryRoleResponse.g.cs +++ /dev/null @@ -1,54 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class QueryRoleResponse : ElasticsearchResponse -{ - /// - /// - /// The number of roles returned in the response. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// The list of roles. - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - - /// - /// - /// The total number of roles found. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs deleted file mode 100644 index 3d9242111bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserRequest.g.cs +++ /dev/null @@ -1,559 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class QueryUserRequestParameters : RequestParameters -{ - /// - /// - /// If true will return the User Profile ID for the users in the query result, if any. - /// - /// - public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } -} - -/// -/// -/// Find users with a query. -/// -/// -/// Get information for users in a paginated manner. -/// You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryUserRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryUser; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_user"; - - /// - /// - /// If true will return the User Profile ID for the users in the query result, if any. - /// - /// - [JsonIgnore] - public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// A query to filter which users to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with user: username, roles, enabled - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery? Query { get; set; } - - /// - /// - /// Search after definition - /// - /// - [JsonInclude, JsonPropertyName("search_after")] - public ICollection? SearchAfter { get; set; } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Fields eligible for sorting are: username, roles, enabled - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } -} - -/// -/// -/// Find users with a query. -/// -/// -/// Get information for users in a paginated manner. -/// You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryUserRequestDescriptor : RequestDescriptor, QueryUserRequestParameters> -{ - internal QueryUserRequestDescriptor(Action> configure) => configure.Invoke(this); - - public QueryUserRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryUser; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_user"; - - public QueryUserRequestDescriptor WithProfileUid(bool? withProfileUid = true) => Qs("with_profile_uid", withProfileUid); - - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.UserQueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryUserRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// A query to filter which users to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with user: username, roles, enabled - /// - /// - public QueryUserRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public QueryUserRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.UserQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public QueryUserRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Search after definition - /// - /// - public QueryUserRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryUserRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Fields eligible for sorting are: username, roles, enabled - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - public QueryUserRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public QueryUserRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public QueryUserRequestDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public QueryUserRequestDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.UserQueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Find users with a query. -/// -/// -/// Get information for users in a paginated manner. -/// You can optionally filter the results with a query. -/// -/// -public sealed partial class QueryUserRequestDescriptor : RequestDescriptor -{ - internal QueryUserRequestDescriptor(Action configure) => configure.Invoke(this); - - public QueryUserRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityQueryUser; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.query_user"; - - public QueryUserRequestDescriptor WithProfileUid(bool? withProfileUid = true) => Qs("with_profile_uid", withProfileUid); - - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.UserQueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - - /// - /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryUserRequestDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// A query to filter which users to return. - /// If the query parameter is missing, it is equivalent to a match_all query. - /// The query supports a subset of query types, including match_all, bool, term, terms, match, - /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with user: username, roles, enabled - /// - /// - public QueryUserRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public QueryUserRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Security.UserQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public QueryUserRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Search after definition - /// - /// - public QueryUserRequestDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// The number of hits to return. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. - /// - /// - public QueryUserRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Fields eligible for sorting are: username, roles, enabled - /// In addition, sort can also be applied to the _doc field to sort by index order. - /// - /// - public QueryUserRequestDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public QueryUserRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public QueryUserRequestDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public QueryUserRequestDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.UserQueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserResponse.g.cs deleted file mode 100644 index adf3180f98f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/QueryUserResponse.g.cs +++ /dev/null @@ -1,54 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class QueryUserResponse : ElasticsearchResponse -{ - /// - /// - /// The number of users returned in the response. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// The total number of users found. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } - - /// - /// - /// A list of user information. - /// - /// - [JsonInclude, JsonPropertyName("users")] - public IReadOnlyCollection Users { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs deleted file mode 100644 index 8222f4fdbf2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ /dev/null @@ -1,156 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlAuthenticateRequestParameters : RequestParameters -{ -} - -/// -/// -/// Authenticate SAML. -/// -/// -/// Submits a SAML response message to Elasticsearch for consumption. -/// -/// -public sealed partial class SamlAuthenticateRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlAuthenticate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_authenticate"; - - /// - /// - /// The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document. - /// - /// - [JsonInclude, JsonPropertyName("content")] - public string Content { get; set; } - - /// - /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. - /// - /// - [JsonInclude, JsonPropertyName("ids")] - public Elastic.Clients.Elasticsearch.Serverless.Ids Ids { get; set; } - - /// - /// - /// The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined. - /// - /// - [JsonInclude, JsonPropertyName("realm")] - public string? Realm { get; set; } -} - -/// -/// -/// Authenticate SAML. -/// -/// -/// Submits a SAML response message to Elasticsearch for consumption. -/// -/// -public sealed partial class SamlAuthenticateRequestDescriptor : RequestDescriptor -{ - internal SamlAuthenticateRequestDescriptor(Action configure) => configure.Invoke(this); - - public SamlAuthenticateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlAuthenticate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_authenticate"; - - private string ContentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ids IdsValue { get; set; } - private string? RealmValue { get; set; } - - /// - /// - /// The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document. - /// - /// - public SamlAuthenticateRequestDescriptor Content(string content) - { - ContentValue = content; - return Self; - } - - /// - /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. - /// - /// - public SamlAuthenticateRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.Ids ids) - { - IdsValue = ids; - return Self; - } - - /// - /// - /// The name of the realm that should authenticate the SAML response. Useful in cases where many SAML realms are defined. - /// - /// - public SamlAuthenticateRequestDescriptor Realm(string? realm) - { - RealmValue = realm; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("content"); - writer.WriteStringValue(ContentValue); - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - if (!string.IsNullOrEmpty(RealmValue)) - { - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateResponse.g.cs deleted file mode 100644 index 9ba0d7b25de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlAuthenticateResponse.g.cs +++ /dev/null @@ -1,41 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlAuthenticateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("access_token")] - public string AccessToken { get; init; } - [JsonInclude, JsonPropertyName("expires_in")] - public int ExpiresIn { get; init; } - [JsonInclude, JsonPropertyName("realm")] - public string Realm { get; init; } - [JsonInclude, JsonPropertyName("refresh_token")] - public string RefreshToken { get; init; } - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs deleted file mode 100644 index 58b98982f3d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ /dev/null @@ -1,182 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlCompleteLogoutRequestParameters : RequestParameters -{ -} - -/// -/// -/// Logout of SAML completely. -/// -/// -/// Verifies the logout response sent from the SAML IdP. -/// -/// -public sealed partial class SamlCompleteLogoutRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlCompleteLogout; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_complete_logout"; - - /// - /// - /// If the SAML IdP sends the logout response with the HTTP-Post binding, this field must be set to the value of the SAMLResponse form parameter from the logout response. - /// - /// - [JsonInclude, JsonPropertyName("content")] - public string? Content { get; set; } - - /// - /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. - /// - /// - [JsonInclude, JsonPropertyName("ids")] - public Elastic.Clients.Elasticsearch.Serverless.Ids Ids { get; set; } - - /// - /// - /// If the SAML IdP sends the logout response with the HTTP-Redirect binding, this field must be set to the query string of the redirect URI. - /// - /// - [JsonInclude, JsonPropertyName("query_string")] - public string? QueryString { get; set; } - - /// - /// - /// The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response. - /// - /// - [JsonInclude, JsonPropertyName("realm")] - public string Realm { get; set; } -} - -/// -/// -/// Logout of SAML completely. -/// -/// -/// Verifies the logout response sent from the SAML IdP. -/// -/// -public sealed partial class SamlCompleteLogoutRequestDescriptor : RequestDescriptor -{ - internal SamlCompleteLogoutRequestDescriptor(Action configure) => configure.Invoke(this); - - public SamlCompleteLogoutRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlCompleteLogout; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_complete_logout"; - - private string? ContentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ids IdsValue { get; set; } - private string? QueryStringValue { get; set; } - private string RealmValue { get; set; } - - /// - /// - /// If the SAML IdP sends the logout response with the HTTP-Post binding, this field must be set to the value of the SAMLResponse form parameter from the logout response. - /// - /// - public SamlCompleteLogoutRequestDescriptor Content(string? content) - { - ContentValue = content; - return Self; - } - - /// - /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. - /// - /// - public SamlCompleteLogoutRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.Ids ids) - { - IdsValue = ids; - return Self; - } - - /// - /// - /// If the SAML IdP sends the logout response with the HTTP-Redirect binding, this field must be set to the query string of the redirect URI. - /// - /// - public SamlCompleteLogoutRequestDescriptor QueryString(string? queryString) - { - QueryStringValue = queryString; - return Self; - } - - /// - /// - /// The name of the SAML realm in Elasticsearch for which the configuration is used to verify the logout response. - /// - /// - public SamlCompleteLogoutRequestDescriptor Realm(string realm) - { - RealmValue = realm; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContentValue)) - { - writer.WritePropertyName("content"); - writer.WriteStringValue(ContentValue); - } - - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - if (!string.IsNullOrEmpty(QueryStringValue)) - { - writer.WritePropertyName("query_string"); - writer.WriteStringValue(QueryStringValue); - } - - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutResponse.g.cs deleted file mode 100644 index 704c8499723..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlCompleteLogoutResponse.g.cs +++ /dev/null @@ -1,31 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlCompleteLogoutResponse : ElasticsearchResponse -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs deleted file mode 100644 index b631761eb4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ /dev/null @@ -1,168 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlInvalidateRequestParameters : RequestParameters -{ -} - -/// -/// -/// Invalidate SAML. -/// -/// -/// Submits a SAML LogoutRequest message to Elasticsearch for consumption. -/// -/// -public sealed partial class SamlInvalidateRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlInvalidate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_invalidate"; - - /// - /// - /// The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the realm parameter. - /// - /// - [JsonInclude, JsonPropertyName("acs")] - public string? Acs { get; set; } - - /// - /// - /// The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout. - /// This query should include a single parameter named SAMLRequest that contains a SAML logout request that is deflated and Base64 encoded. - /// If the SAML IdP has signed the logout request, the URL should include two extra parameters named SigAlg and Signature that contain the algorithm used for the signature and the signature value itself. - /// In order for Elasticsearch to be able to verify the IdP’s signature, the value of the query_string field must be an exact match to the string provided by the browser. - /// The client application must not attempt to parse or process the string in any way. - /// - /// - [JsonInclude, JsonPropertyName("query_string")] - public string QueryString { get; set; } - - /// - /// - /// The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the acs parameter. - /// - /// - [JsonInclude, JsonPropertyName("realm")] - public string? Realm { get; set; } -} - -/// -/// -/// Invalidate SAML. -/// -/// -/// Submits a SAML LogoutRequest message to Elasticsearch for consumption. -/// -/// -public sealed partial class SamlInvalidateRequestDescriptor : RequestDescriptor -{ - internal SamlInvalidateRequestDescriptor(Action configure) => configure.Invoke(this); - - public SamlInvalidateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlInvalidate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_invalidate"; - - private string? AcsValue { get; set; } - private string QueryStringValue { get; set; } - private string? RealmValue { get; set; } - - /// - /// - /// The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the realm parameter. - /// - /// - public SamlInvalidateRequestDescriptor Acs(string? acs) - { - AcsValue = acs; - return Self; - } - - /// - /// - /// The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout. - /// This query should include a single parameter named SAMLRequest that contains a SAML logout request that is deflated and Base64 encoded. - /// If the SAML IdP has signed the logout request, the URL should include two extra parameters named SigAlg and Signature that contain the algorithm used for the signature and the signature value itself. - /// In order for Elasticsearch to be able to verify the IdP’s signature, the value of the query_string field must be an exact match to the string provided by the browser. - /// The client application must not attempt to parse or process the string in any way. - /// - /// - public SamlInvalidateRequestDescriptor QueryString(string queryString) - { - QueryStringValue = queryString; - return Self; - } - - /// - /// - /// The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the acs parameter. - /// - /// - public SamlInvalidateRequestDescriptor Realm(string? realm) - { - RealmValue = realm; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AcsValue)) - { - writer.WritePropertyName("acs"); - writer.WriteStringValue(AcsValue); - } - - writer.WritePropertyName("query_string"); - writer.WriteStringValue(QueryStringValue); - if (!string.IsNullOrEmpty(RealmValue)) - { - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateResponse.g.cs deleted file mode 100644 index 41fa0eb26b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlInvalidateResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlInvalidateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("invalidated")] - public int Invalidated { get; init; } - [JsonInclude, JsonPropertyName("realm")] - public string Realm { get; init; } - [JsonInclude, JsonPropertyName("redirect")] - public string Redirect { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs deleted file mode 100644 index 9b2ffde5d00..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ /dev/null @@ -1,138 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlLogoutRequestParameters : RequestParameters -{ -} - -/// -/// -/// Logout of SAML. -/// -/// -/// Submits a request to invalidate an access token and refresh token. -/// -/// -public sealed partial class SamlLogoutRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlLogout; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_logout"; - - /// - /// - /// The refresh token that was returned as a response to calling the SAML authenticate API. - /// Alternatively, the most recent refresh token that was received after refreshing the original access token. - /// - /// - [JsonInclude, JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } - - /// - /// - /// The access token that was returned as a response to calling the SAML authenticate API. - /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. - /// - /// - [JsonInclude, JsonPropertyName("token")] - public string Token { get; set; } -} - -/// -/// -/// Logout of SAML. -/// -/// -/// Submits a request to invalidate an access token and refresh token. -/// -/// -public sealed partial class SamlLogoutRequestDescriptor : RequestDescriptor -{ - internal SamlLogoutRequestDescriptor(Action configure) => configure.Invoke(this); - - public SamlLogoutRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlLogout; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_logout"; - - private string? RefreshTokenValue { get; set; } - private string TokenValue { get; set; } - - /// - /// - /// The refresh token that was returned as a response to calling the SAML authenticate API. - /// Alternatively, the most recent refresh token that was received after refreshing the original access token. - /// - /// - public SamlLogoutRequestDescriptor RefreshToken(string? refreshToken) - { - RefreshTokenValue = refreshToken; - return Self; - } - - /// - /// - /// The access token that was returned as a response to calling the SAML authenticate API. - /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. - /// - /// - public SamlLogoutRequestDescriptor Token(string token) - { - TokenValue = token; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(RefreshTokenValue)) - { - writer.WritePropertyName("refresh_token"); - writer.WriteStringValue(RefreshTokenValue); - } - - writer.WritePropertyName("token"); - writer.WriteStringValue(TokenValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutResponse.g.cs deleted file mode 100644 index 0d354b5df3a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlLogoutResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlLogoutResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("redirect")] - public string Redirect { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs deleted file mode 100644 index fab192886e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ /dev/null @@ -1,170 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlPrepareAuthenticationRequestParameters : RequestParameters -{ -} - -/// -/// -/// Prepare SAML authentication. -/// -/// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. -/// -/// -public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlPrepareAuthentication; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_prepare_authentication"; - - /// - /// - /// The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. - /// The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter. - /// - /// - [JsonInclude, JsonPropertyName("acs")] - public string? Acs { get; set; } - - /// - /// - /// The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request. - /// You must specify either this parameter or the acs parameter. - /// - /// - [JsonInclude, JsonPropertyName("realm")] - public string? Realm { get; set; } - - /// - /// - /// A string that will be included in the redirect URL that this API returns as the RelayState query parameter. - /// If the Authentication Request is signed, this value is used as part of the signature computation. - /// - /// - [JsonInclude, JsonPropertyName("relay_state")] - public string? RelayState { get; set; } -} - -/// -/// -/// Prepare SAML authentication. -/// -/// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. -/// -/// -public sealed partial class SamlPrepareAuthenticationRequestDescriptor : RequestDescriptor -{ - internal SamlPrepareAuthenticationRequestDescriptor(Action configure) => configure.Invoke(this); - - public SamlPrepareAuthenticationRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlPrepareAuthentication; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.saml_prepare_authentication"; - - private string? AcsValue { get; set; } - private string? RealmValue { get; set; } - private string? RelayStateValue { get; set; } - - /// - /// - /// The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. - /// The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter. - /// - /// - public SamlPrepareAuthenticationRequestDescriptor Acs(string? acs) - { - AcsValue = acs; - return Self; - } - - /// - /// - /// The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request. - /// You must specify either this parameter or the acs parameter. - /// - /// - public SamlPrepareAuthenticationRequestDescriptor Realm(string? realm) - { - RealmValue = realm; - return Self; - } - - /// - /// - /// A string that will be included in the redirect URL that this API returns as the RelayState query parameter. - /// If the Authentication Request is signed, this value is used as part of the signature computation. - /// - /// - public SamlPrepareAuthenticationRequestDescriptor RelayState(string? relayState) - { - RelayStateValue = relayState; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AcsValue)) - { - writer.WritePropertyName("acs"); - writer.WriteStringValue(AcsValue); - } - - if (!string.IsNullOrEmpty(RealmValue)) - { - writer.WritePropertyName("realm"); - writer.WriteStringValue(RealmValue); - } - - if (!string.IsNullOrEmpty(RelayStateValue)) - { - writer.WritePropertyName("relay_state"); - writer.WriteStringValue(RelayStateValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs deleted file mode 100644 index 892f9c1435b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlPrepareAuthenticationResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("realm")] - public string Realm { get; init; } - [JsonInclude, JsonPropertyName("redirect")] - public string Redirect { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs deleted file mode 100644 index 601fd669ecb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlServiceProviderMetadataRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create SAML service provider metadata. -/// -/// -/// Generate SAML metadata for a SAML 2.0 Service Provider. -/// -/// -public sealed partial class SamlServiceProviderMetadataRequest : PlainRequest -{ - public SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Serverless.Name realmName) : base(r => r.Required("realm_name", realmName)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlServiceProviderMetadata; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.saml_service_provider_metadata"; -} - -/// -/// -/// Create SAML service provider metadata. -/// -/// -/// Generate SAML metadata for a SAML 2.0 Service Provider. -/// -/// -public sealed partial class SamlServiceProviderMetadataRequestDescriptor : RequestDescriptor -{ - internal SamlServiceProviderMetadataRequestDescriptor(Action configure) => configure.Invoke(this); - - public SamlServiceProviderMetadataRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name realmName) : base(r => r.Required("realm_name", realmName)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySamlServiceProviderMetadata; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "security.saml_service_provider_metadata"; - - public SamlServiceProviderMetadataRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Serverless.Name realmName) - { - RouteValues.Required("realm_name", realmName); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs deleted file mode 100644 index 05aec4d42a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SamlServiceProviderMetadataResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("metadata")] - public string Metadata { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs deleted file mode 100644 index 8aa590fb3b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ /dev/null @@ -1,235 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SuggestUserProfilesRequestParameters : RequestParameters -{ -} - -/// -/// -/// Suggest a user profile. -/// -/// -/// Get suggestions for user profiles that match specified search criteria. -/// -/// -public sealed partial class SuggestUserProfilesRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySuggestUserProfiles; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.suggest_user_profiles"; - - /// - /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. - /// By default returns no data content. - /// - /// - [JsonInclude, JsonPropertyName("data")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Data { get; set; } - - /// - /// - /// Extra search criteria to improve relevance of the suggestion result. - /// Profiles matching the spcified hint are ranked higher in the response. - /// Profiles not matching the hint don't exclude the profile from the response - /// as long as the profile matches the name field query. - /// - /// - [JsonInclude, JsonPropertyName("hint")] - public Elastic.Clients.Elasticsearch.Serverless.Security.Hint? Hint { get; set; } - - /// - /// - /// Query string used to match name-related fields in user profile documents. - /// Name-related fields are the user's username, full_name, and email. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// Number of profiles to return. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public long? Size { get; set; } -} - -/// -/// -/// Suggest a user profile. -/// -/// -/// Get suggestions for user profiles that match specified search criteria. -/// -/// -public sealed partial class SuggestUserProfilesRequestDescriptor : RequestDescriptor -{ - internal SuggestUserProfilesRequestDescriptor(Action configure) => configure.Invoke(this); - - public SuggestUserProfilesRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecuritySuggestUserProfiles; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.suggest_user_profiles"; - - private ICollection? DataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.Hint? HintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.HintDescriptor HintDescriptor { get; set; } - private Action HintDescriptorAction { get; set; } - private string? NameValue { get; set; } - private long? SizeValue { get; set; } - - /// - /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. - /// By default returns no data content. - /// - /// - public SuggestUserProfilesRequestDescriptor Data(ICollection? data) - { - DataValue = data; - return Self; - } - - /// - /// - /// Extra search criteria to improve relevance of the suggestion result. - /// Profiles matching the spcified hint are ranked higher in the response. - /// Profiles not matching the hint don't exclude the profile from the response - /// as long as the profile matches the name field query. - /// - /// - public SuggestUserProfilesRequestDescriptor Hint(Elastic.Clients.Elasticsearch.Serverless.Security.Hint? hint) - { - HintDescriptor = null; - HintDescriptorAction = null; - HintValue = hint; - return Self; - } - - public SuggestUserProfilesRequestDescriptor Hint(Elastic.Clients.Elasticsearch.Serverless.Security.HintDescriptor descriptor) - { - HintValue = null; - HintDescriptorAction = null; - HintDescriptor = descriptor; - return Self; - } - - public SuggestUserProfilesRequestDescriptor Hint(Action configure) - { - HintValue = null; - HintDescriptor = null; - HintDescriptorAction = configure; - return Self; - } - - /// - /// - /// Query string used to match name-related fields in user profile documents. - /// Name-related fields are the user's username, full_name, and email. - /// - /// - public SuggestUserProfilesRequestDescriptor Name(string? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Number of profiles to return. - /// - /// - public SuggestUserProfilesRequestDescriptor Size(long? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DataValue is not null) - { - writer.WritePropertyName("data"); - SingleOrManySerializationHelper.Serialize(DataValue, writer, options); - } - - if (HintDescriptor is not null) - { - writer.WritePropertyName("hint"); - JsonSerializer.Serialize(writer, HintDescriptor, options); - } - else if (HintDescriptorAction is not null) - { - writer.WritePropertyName("hint"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.HintDescriptor(HintDescriptorAction), options); - } - else if (HintValue is not null) - { - writer.WritePropertyName("hint"); - JsonSerializer.Serialize(writer, HintValue, options); - } - - if (!string.IsNullOrEmpty(NameValue)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs deleted file mode 100644 index 3ec3181c5a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class SuggestUserProfilesResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("profiles")] - public IReadOnlyCollection Profiles { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Security.TotalUserProfiles Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs deleted file mode 100644 index aa6dbc91c92..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ /dev/null @@ -1,302 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class UpdateApiKeyRequestParameters : RequestParameters -{ -} - -/// -/// -/// Update an API key. -/// -/// -/// Updates attributes of an existing API key. -/// Users can only update API keys that they created or that were granted to them. -/// Use this API to update API keys created by the create API Key or grant API Key APIs. -/// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. -/// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. -/// This API supports updates to an API key’s access scope and metadata. -/// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. -/// The snapshot of the owner’s permissions is updated automatically on every call. -/// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. -/// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. -/// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. -/// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. -/// To update an API key, the owner user’s credentials are required. -/// -/// -public sealed partial class UpdateApiKeyRequest : PlainRequest -{ - public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.update_api_key"; - - /// - /// - /// Expiration time for the API key. - /// - /// - [JsonInclude, JsonPropertyName("expiration")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Expiration { get; set; } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - - /// - /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. - /// - /// - [JsonInclude, JsonPropertyName("role_descriptors")] - public IDictionary? RoleDescriptors { get; set; } -} - -/// -/// -/// Update an API key. -/// -/// -/// Updates attributes of an existing API key. -/// Users can only update API keys that they created or that were granted to them. -/// Use this API to update API keys created by the create API Key or grant API Key APIs. -/// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. -/// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. -/// This API supports updates to an API key’s access scope and metadata. -/// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. -/// The snapshot of the owner’s permissions is updated automatically on every call. -/// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. -/// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. -/// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. -/// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. -/// To update an API key, the owner user’s credentials are required. -/// -/// -public sealed partial class UpdateApiKeyRequestDescriptor : RequestDescriptor, UpdateApiKeyRequestParameters> -{ - internal UpdateApiKeyRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.update_api_key"; - - public UpdateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? ExpirationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private IDictionary> RoleDescriptorsValue { get; set; } - - /// - /// - /// Expiration time for the API key. - /// - /// - public UpdateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Serverless.Duration? expiration) - { - ExpirationValue = expiration; - return Self; - } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - public UpdateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. - /// - /// - public UpdateApiKeyRequestDescriptor RoleDescriptors(Func>, FluentDescriptorDictionary>> selector) - { - RoleDescriptorsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpirationValue is not null) - { - writer.WritePropertyName("expiration"); - JsonSerializer.Serialize(writer, ExpirationValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Update an API key. -/// -/// -/// Updates attributes of an existing API key. -/// Users can only update API keys that they created or that were granted to them. -/// Use this API to update API keys created by the create API Key or grant API Key APIs. -/// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. -/// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. -/// This API supports updates to an API key’s access scope and metadata. -/// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. -/// The snapshot of the owner’s permissions is updated automatically on every call. -/// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. -/// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. -/// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. -/// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. -/// To update an API key, the owner user’s credentials are required. -/// -/// -public sealed partial class UpdateApiKeyRequestDescriptor : RequestDescriptor -{ - internal UpdateApiKeyRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateApiKey; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.update_api_key"; - - public UpdateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? ExpirationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private IDictionary RoleDescriptorsValue { get; set; } - - /// - /// - /// Expiration time for the API key. - /// - /// - public UpdateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Serverless.Duration? expiration) - { - ExpirationValue = expiration; - return Self; - } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - public UpdateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. - /// - /// - public UpdateApiKeyRequestDescriptor RoleDescriptors(Func, FluentDescriptorDictionary> selector) - { - RoleDescriptorsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpirationValue is not null) - { - writer.WritePropertyName("expiration"); - JsonSerializer.Serialize(writer, ExpirationValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyResponse.g.cs deleted file mode 100644 index c9a0279b423..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateApiKeyResponse.g.cs +++ /dev/null @@ -1,39 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class UpdateApiKeyResponse : ElasticsearchResponse -{ - /// - /// - /// If true, the API key was updated. - /// If false, the API key didn’t change because no change was detected. - /// - /// - [JsonInclude, JsonPropertyName("updated")] - public bool Updated { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs deleted file mode 100644 index 3b56008f30a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ /dev/null @@ -1,204 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class UpdateUserProfileDataRequestParameters : RequestParameters -{ - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } -} - -/// -/// -/// Update user profile data. -/// -/// -/// Update specific data for the user profile that is associated with a unique ID. -/// -/// -public sealed partial class UpdateUserProfileDataRequest : PlainRequest -{ - public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateUserProfileData; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.update_user_profile_data"; - - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - [JsonIgnore] - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - [JsonIgnore] - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// Non-searchable data that you want to associate with the user profile. - /// This field supports a nested data structure. - /// - /// - [JsonInclude, JsonPropertyName("data")] - public IDictionary? Data { get; set; } - - /// - /// - /// Searchable data that you want to associate with the user profile. This - /// field supports a nested data structure. - /// - /// - [JsonInclude, JsonPropertyName("labels")] - public IDictionary? Labels { get; set; } -} - -/// -/// -/// Update user profile data. -/// -/// -/// Update specific data for the user profile that is associated with a unique ID. -/// -/// -public sealed partial class UpdateUserProfileDataRequestDescriptor : RequestDescriptor -{ - internal UpdateUserProfileDataRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateUserProfileDataRequestDescriptor(string uid) : base(r => r.Required("uid", uid)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateUserProfileData; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "security.update_user_profile_data"; - - public UpdateUserProfileDataRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); - public UpdateUserProfileDataRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); - public UpdateUserProfileDataRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - - public UpdateUserProfileDataRequestDescriptor Uid(string uid) - { - RouteValues.Required("uid", uid); - return Self; - } - - private IDictionary? DataValue { get; set; } - private IDictionary? LabelsValue { get; set; } - - /// - /// - /// Non-searchable data that you want to associate with the user profile. - /// This field supports a nested data structure. - /// - /// - public UpdateUserProfileDataRequestDescriptor Data(Func, FluentDictionary> selector) - { - DataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Searchable data that you want to associate with the user profile. This - /// field supports a nested data structure. - /// - /// - public UpdateUserProfileDataRequestDescriptor Labels(Func, FluentDictionary> selector) - { - LabelsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DataValue is not null) - { - writer.WritePropertyName("data"); - JsonSerializer.Serialize(writer, DataValue, options); - } - - if (LabelsValue is not null) - { - writer.WritePropertyName("labels"); - JsonSerializer.Serialize(writer, LabelsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs deleted file mode 100644 index 1c0d0221b89..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Security/UpdateUserProfileDataResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public sealed partial class UpdateUserProfileDataResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs deleted file mode 100644 index 59d830881ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryRequest.g.cs +++ /dev/null @@ -1,121 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CleanupRepositoryRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Clean up the snapshot repository. -/// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. -/// -/// -public sealed partial class CleanupRepositoryRequest : PlainRequest -{ - public CleanupRepositoryRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotCleanupRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.cleanup_repository"; - - /// - /// - /// Period to wait for a connection to the master node. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Clean up the snapshot repository. -/// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. -/// -/// -public sealed partial class CleanupRepositoryRequestDescriptor : RequestDescriptor -{ - internal CleanupRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - - public CleanupRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotCleanupRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.cleanup_repository"; - - public CleanupRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CleanupRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public CleanupRepositoryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("repository", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs deleted file mode 100644 index 55ac4578906..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CleanupRepositoryResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CleanupRepositoryResponse : ElasticsearchResponse -{ - /// - /// - /// Statistics for cleanup operations. - /// - /// - [JsonInclude, JsonPropertyName("results")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.CleanupRepositoryResults Results { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs deleted file mode 100644 index 0407321a189..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ /dev/null @@ -1,135 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CloneSnapshotRequestParameters : RequestParameters -{ - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Clone a snapshot. -/// Clone part of all of a snapshot into another snapshot in the same repository. -/// -/// -public sealed partial class CloneSnapshotRequest : PlainRequest -{ - public CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Elastic.Clients.Elasticsearch.Serverless.Name targetSnapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot).Required("target_snapshot", targetSnapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotClone; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.clone"; - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - [JsonInclude, JsonPropertyName("indices")] - public string Indices { get; set; } -} - -/// -/// -/// Clone a snapshot. -/// Clone part of all of a snapshot into another snapshot in the same repository. -/// -/// -public sealed partial class CloneSnapshotRequestDescriptor : RequestDescriptor -{ - internal CloneSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public CloneSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Elastic.Clients.Elasticsearch.Serverless.Name targetSnapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot).Required("target_snapshot", targetSnapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotClone; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.clone"; - - public CloneSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CloneSnapshotRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public CloneSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public CloneSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - public CloneSnapshotRequestDescriptor TargetSnapshot(Elastic.Clients.Elasticsearch.Serverless.Name targetSnapshot) - { - RouteValues.Required("target_snapshot", targetSnapshot); - return Self; - } - - private string IndicesValue { get; set; } - - public CloneSnapshotRequestDescriptor Indices(string indices) - { - IndicesValue = indices; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("indices"); - writer.WriteStringValue(IndicesValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs deleted file mode 100644 index 270cd3d5615..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CloneSnapshotResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CloneSnapshotResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs deleted file mode 100644 index a7e7ff20cc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryRequest.g.cs +++ /dev/null @@ -1,154 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CreateRepositoryRequestParameters : RequestParameters -{ - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit operation timeout - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Whether to verify the repository after creation - /// - /// - public bool? Verify { get => Q("verify"); set => Q("verify", value); } -} - -/// -/// -/// Create or update a snapshot repository. -/// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. -/// To register a snapshot repository, the cluster's global metadata must be writeable. -/// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. -/// -/// -public sealed partial class CreateRepositoryRequest : PlainRequest, ISelfSerializable -{ - public CreateRepositoryRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotCreateRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.create_repository"; - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit operation timeout - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Whether to verify the repository after creation - /// - /// - [JsonIgnore] - public bool? Verify { get => Q("verify"); set => Q("verify", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.IRepository Repository { get; set; } - - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Repository, options); - } -} - -/// -/// -/// Create or update a snapshot repository. -/// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. -/// To register a snapshot repository, the cluster's global metadata must be writeable. -/// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. -/// -/// -public sealed partial class CreateRepositoryRequestDescriptor : RequestDescriptor -{ - internal CreateRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - public CreateRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Snapshot.IRepository repository, Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("repository", name)) => RepositoryValue = repository; - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotCreateRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.create_repository"; - - public CreateRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CreateRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public CreateRepositoryRequestDescriptor Verify(bool? verify = true) => Qs("verify", verify); - - public CreateRepositoryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("repository", name); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.IRepository RepositoryValue { get; set; } - - public CreateRepositoryRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Snapshot.IRepository repository) - { - RepositoryValue = repository; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, RepositoryValue, options); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs deleted file mode 100644 index 8ad697984f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateRepositoryResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CreateRepositoryResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs deleted file mode 100644 index 44ff7ec4ed4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotRequest.g.cs +++ /dev/null @@ -1,286 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CreateSnapshotRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// If true, the request returns a response when the snapshot is complete. If false, the request returns a response when the snapshot initializes. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Create a snapshot. -/// Take a snapshot of a cluster or of data streams and indices. -/// -/// -public sealed partial class CreateSnapshotRequest : PlainRequest -{ - public CreateSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.create"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// If true, the request returns a response when the snapshot is complete. If false, the request returns a response when the snapshot initializes. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - /// - /// - /// Feature states to include in the snapshot. Each feature state includes one or more system indices containing related data. You can view a list of eligible features using the get features API. If include_global_state is true, all current feature states are included by default. If include_global_state is false, no feature states are included by default. - /// - /// - [JsonInclude, JsonPropertyName("feature_states")] - public ICollection? FeatureStates { get; set; } - - /// - /// - /// If true, the request ignores data streams and indices in indices that are missing or closed. If false, the request returns an error for any data stream or index that is missing or closed. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - - /// - /// - /// If true, the current cluster state is included in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. It also includes data stored in system indices, such as Watches and task records (configurable via feature_states). - /// - /// - [JsonInclude, JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; set; } - - /// - /// - /// Data streams and indices to include in the snapshot. Supports multi-target syntax. Includes all data streams and indices by default. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// Optional metadata for the snapshot. May have any contents. Must be less than 1024 bytes. This map is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - - /// - /// - /// If true, allows restoring a partial snapshot of indices with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty. If false, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available. - /// - /// - [JsonInclude, JsonPropertyName("partial")] - public bool? Partial { get; set; } -} - -/// -/// -/// Create a snapshot. -/// Take a snapshot of a cluster or of data streams and indices. -/// -/// -public sealed partial class CreateSnapshotRequestDescriptor : RequestDescriptor -{ - internal CreateSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public CreateSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotCreate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.create"; - - public CreateSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CreateSnapshotRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public CreateSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public CreateSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private ICollection? FeatureStatesValue { get; set; } - private bool? IgnoreUnavailableValue { get; set; } - private bool? IncludeGlobalStateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private bool? PartialValue { get; set; } - - /// - /// - /// Feature states to include in the snapshot. Each feature state includes one or more system indices containing related data. You can view a list of eligible features using the get features API. If include_global_state is true, all current feature states are included by default. If include_global_state is false, no feature states are included by default. - /// - /// - public CreateSnapshotRequestDescriptor FeatureStates(ICollection? featureStates) - { - FeatureStatesValue = featureStates; - return Self; - } - - /// - /// - /// If true, the request ignores data streams and indices in indices that are missing or closed. If false, the request returns an error for any data stream or index that is missing or closed. - /// - /// - public CreateSnapshotRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - /// - /// - /// If true, the current cluster state is included in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. It also includes data stored in system indices, such as Watches and task records (configurable via feature_states). - /// - /// - public CreateSnapshotRequestDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - /// - /// - /// Data streams and indices to include in the snapshot. Supports multi-target syntax. Includes all data streams and indices by default. - /// - /// - public CreateSnapshotRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Optional metadata for the snapshot. May have any contents. Must be less than 1024 bytes. This map is not automatically generated by Elasticsearch. - /// - /// - public CreateSnapshotRequestDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// If true, allows restoring a partial snapshot of indices with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty. If false, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available. - /// - /// - public CreateSnapshotRequestDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureStatesValue is not null) - { - writer.WritePropertyName("feature_states"); - JsonSerializer.Serialize(writer, FeatureStatesValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs deleted file mode 100644 index 5a29b97af9c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/CreateSnapshotResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class CreateSnapshotResponse : ElasticsearchResponse -{ - /// - /// - /// Equals true if the snapshot was accepted. Present when the request had wait_for_completion set to false - /// - /// - [JsonInclude, JsonPropertyName("accepted")] - public bool? Accepted { get; init; } - - /// - /// - /// Snapshot information. Present when the request had wait_for_completion set to true - /// - /// - [JsonInclude, JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotInfo? Snapshot { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs deleted file mode 100644 index 8446675ce42..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryRequest.g.cs +++ /dev/null @@ -1,123 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class DeleteRepositoryRequestParameters : RequestParameters -{ - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit operation timeout - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete snapshot repositories. -/// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. -/// The snapshots themselves are left untouched and in place. -/// -/// -public sealed partial class DeleteRepositoryRequest : PlainRequest -{ - public DeleteRepositoryRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotDeleteRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.delete_repository"; - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit operation timeout - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete snapshot repositories. -/// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. -/// The snapshots themselves are left untouched and in place. -/// -/// -public sealed partial class DeleteRepositoryRequestDescriptor : RequestDescriptor -{ - internal DeleteRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotDeleteRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.delete_repository"; - - public DeleteRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteRepositoryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("repository", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs deleted file mode 100644 index b9feee61eab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteRepositoryResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class DeleteRepositoryResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs deleted file mode 100644 index 42dfe18f7a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotRequest.g.cs +++ /dev/null @@ -1,109 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class DeleteSnapshotRequestParameters : RequestParameters -{ - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Delete snapshots. -/// -/// -public sealed partial class DeleteSnapshotRequest : PlainRequest -{ - public DeleteSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.delete"; - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Delete snapshots. -/// -/// -public sealed partial class DeleteSnapshotRequestDescriptor : RequestDescriptor -{ - internal DeleteSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotDelete; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.delete"; - - public DeleteSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public DeleteSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public DeleteSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs deleted file mode 100644 index 1657e82dd35..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/DeleteSnapshotResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class DeleteSnapshotResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs deleted file mode 100644 index 80da7c29d60..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryRequest.g.cs +++ /dev/null @@ -1,127 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class GetRepositoryRequestParameters : RequestParameters -{ - /// - /// - /// Return local information, do not retrieve the state from master node (default: false) - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get snapshot repository information. -/// -/// -public sealed partial class GetRepositoryRequest : PlainRequest -{ - public GetRepositoryRequest() - { - } - - public GetRepositoryRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotGetRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.get_repository"; - - /// - /// - /// Return local information, do not retrieve the state from master node (default: false) - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get snapshot repository information. -/// -/// -public sealed partial class GetRepositoryRequestDescriptor : RequestDescriptor -{ - internal GetRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("repository", name)) - { - } - - public GetRepositoryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotGetRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.get_repository"; - - public GetRepositoryRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetRepositoryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("repository", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs deleted file mode 100644 index c1909d68426..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetRepositoryResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class GetRepositoryResponse : DictionaryResponse -{ - public GetRepositoryResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetRepositoryResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs deleted file mode 100644 index e24aa458406..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs +++ /dev/null @@ -1,301 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class GetSnapshotRequestParameters : RequestParameters -{ - /// - /// - /// Offset identifier to start pagination from as returned by the next field in the response body. - /// - /// - public string? After { get => Q("after"); set => Q("after", value); } - - /// - /// - /// Value of the current sort column at which to start retrieval. Can either be a string snapshot- or repository name when sorting by snapshot or repository name, a millisecond time value or a number when sorting by index- or shard count. - /// - /// - public string? FromSortValue { get => Q("from_sort_value"); set => Q("from_sort_value", value); } - - /// - /// - /// If false, the request returns an error for any snapshots that are unavailable. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, returns the repository name in each snapshot. - /// - /// - public bool? IncludeRepository { get => Q("include_repository"); set => Q("include_repository", value); } - - /// - /// - /// If true, returns additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. Defaults to false, meaning that this information is omitted. - /// - /// - public bool? IndexDetails { get => Q("index_details"); set => Q("index_details", value); } - - /// - /// - /// If true, returns the name of each index in each snapshot. - /// - /// - public bool? IndexNames { get => Q("index_names"); set => Q("index_names", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0. - /// - /// - public int? Offset { get => Q("offset"); set => Q("offset", value); } - - /// - /// - /// Sort order. Valid values are asc for ascending and desc for descending order. Defaults to asc, meaning ascending order. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get => Q("order"); set => Q("order", value); } - - /// - /// - /// Maximum number of snapshots to return. Defaults to 0 which means return all that match the request without limit. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Also accepts wildcards (*) and combinations of wildcards followed by exclude patterns starting with -. To include snapshots not created by an SLM policy you can use the special pattern _none that will match all snapshots without an SLM policy. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Name? SlmPolicyFilter { get => Q("slm_policy_filter"); set => Q("slm_policy_filter", value); } - - /// - /// - /// Allows setting a sort order for the result. Defaults to start_time, i.e. sorting by snapshot start time stamp. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotSort? Sort { get => Q("sort"); set => Q("sort", value); } - - /// - /// - /// If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted. - /// - /// - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get snapshot information. -/// -/// -public sealed partial class GetSnapshotRequest : PlainRequest -{ - public GetSnapshotRequest(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Names snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.get"; - - /// - /// - /// Offset identifier to start pagination from as returned by the next field in the response body. - /// - /// - [JsonIgnore] - public string? After { get => Q("after"); set => Q("after", value); } - - /// - /// - /// Value of the current sort column at which to start retrieval. Can either be a string snapshot- or repository name when sorting by snapshot or repository name, a millisecond time value or a number when sorting by index- or shard count. - /// - /// - [JsonIgnore] - public string? FromSortValue { get => Q("from_sort_value"); set => Q("from_sort_value", value); } - - /// - /// - /// If false, the request returns an error for any snapshots that are unavailable. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, returns the repository name in each snapshot. - /// - /// - [JsonIgnore] - public bool? IncludeRepository { get => Q("include_repository"); set => Q("include_repository", value); } - - /// - /// - /// If true, returns additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. Defaults to false, meaning that this information is omitted. - /// - /// - [JsonIgnore] - public bool? IndexDetails { get => Q("index_details"); set => Q("index_details", value); } - - /// - /// - /// If true, returns the name of each index in each snapshot. - /// - /// - [JsonIgnore] - public bool? IndexNames { get => Q("index_names"); set => Q("index_names", value); } - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0. - /// - /// - [JsonIgnore] - public int? Offset { get => Q("offset"); set => Q("offset", value); } - - /// - /// - /// Sort order. Valid values are asc for ascending and desc for descending order. Defaults to asc, meaning ascending order. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get => Q("order"); set => Q("order", value); } - - /// - /// - /// Maximum number of snapshots to return. Defaults to 0 which means return all that match the request without limit. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Also accepts wildcards (*) and combinations of wildcards followed by exclude patterns starting with -. To include snapshots not created by an SLM policy you can use the special pattern _none that will match all snapshots without an SLM policy. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Name? SlmPolicyFilter { get => Q("slm_policy_filter"); set => Q("slm_policy_filter", value); } - - /// - /// - /// Allows setting a sort order for the result. Defaults to start_time, i.e. sorting by snapshot start time stamp. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotSort? Sort { get => Q("sort"); set => Q("sort", value); } - - /// - /// - /// If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted. - /// - /// - [JsonIgnore] - public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } -} - -/// -/// -/// Get snapshot information. -/// -/// -public sealed partial class GetSnapshotRequestDescriptor : RequestDescriptor -{ - internal GetSnapshotRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Names snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotGet; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.get"; - - public GetSnapshotRequestDescriptor After(string? after) => Qs("after", after); - public GetSnapshotRequestDescriptor FromSortValue(string? fromSortValue) => Qs("from_sort_value", fromSortValue); - public GetSnapshotRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetSnapshotRequestDescriptor IncludeRepository(bool? includeRepository = true) => Qs("include_repository", includeRepository); - public GetSnapshotRequestDescriptor IndexDetails(bool? indexDetails = true) => Qs("index_details", indexDetails); - public GetSnapshotRequestDescriptor IndexNames(bool? indexNames = true) => Qs("index_names", indexNames); - public GetSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetSnapshotRequestDescriptor Offset(int? offset) => Qs("offset", offset); - public GetSnapshotRequestDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) => Qs("order", order); - public GetSnapshotRequestDescriptor Size(int? size) => Qs("size", size); - public GetSnapshotRequestDescriptor SlmPolicyFilter(Elastic.Clients.Elasticsearch.Serverless.Name? slmPolicyFilter) => Qs("slm_policy_filter", slmPolicyFilter); - public GetSnapshotRequestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotSort? sort) => Qs("sort", sort); - public GetSnapshotRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); - - public GetSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public GetSnapshotRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Names snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs deleted file mode 100644 index cd6c88debb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/GetSnapshotResponse.g.cs +++ /dev/null @@ -1,50 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class GetSnapshotResponse : ElasticsearchResponse -{ - /// - /// - /// The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the next field value. - /// - /// - [JsonInclude, JsonPropertyName("remaining")] - public int Remaining { get; init; } - [JsonInclude, JsonPropertyName("responses")] - public IReadOnlyCollection? Responses { get; init; } - [JsonInclude, JsonPropertyName("snapshots")] - public IReadOnlyCollection? Snapshots { get; init; } - - /// - /// - /// The total number of snapshots that match the request when ignoring size limit or after query parameter. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs deleted file mode 100644 index 0b737738f7b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreRequest.g.cs +++ /dev/null @@ -1,575 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class RestoreRequestParameters : RequestParameters -{ - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Should this request wait until the operation has completed before returning - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Restore a snapshot. -/// Restore a snapshot of a cluster or data streams and indices. -/// -/// -/// You can restore a snapshot only to a running cluster with an elected master node. -/// The snapshot repository must be registered and available to the cluster. -/// The snapshot and cluster versions must be compatible. -/// -/// -/// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. -/// -/// -/// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: -/// -/// -/// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream -/// -/// -/// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. -/// -/// -/// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. -/// -/// -public sealed partial class RestoreRequest : PlainRequest -{ - public RestoreRequest(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRestore; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.restore"; - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Should this request wait until the operation has completed before returning - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - [JsonInclude, JsonPropertyName("feature_states")] - public ICollection? FeatureStates { get; set; } - [JsonInclude, JsonPropertyName("ignore_index_settings")] - public ICollection? IgnoreIndexSettings { get; set; } - [JsonInclude, JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - [JsonInclude, JsonPropertyName("include_aliases")] - public bool? IncludeAliases { get; set; } - [JsonInclude, JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; set; } - [JsonInclude, JsonPropertyName("index_settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? IndexSettings { get; set; } - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - [JsonInclude, JsonPropertyName("partial")] - public bool? Partial { get; set; } - [JsonInclude, JsonPropertyName("rename_pattern")] - public string? RenamePattern { get; set; } - [JsonInclude, JsonPropertyName("rename_replacement")] - public string? RenameReplacement { get; set; } -} - -/// -/// -/// Restore a snapshot. -/// Restore a snapshot of a cluster or data streams and indices. -/// -/// -/// You can restore a snapshot only to a running cluster with an elected master node. -/// The snapshot repository must be registered and available to the cluster. -/// The snapshot and cluster versions must be compatible. -/// -/// -/// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. -/// -/// -/// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: -/// -/// -/// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream -/// -/// -/// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. -/// -/// -/// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. -/// -/// -public sealed partial class RestoreRequestDescriptor : RequestDescriptor, RestoreRequestParameters> -{ - internal RestoreRequestDescriptor(Action> configure) => configure.Invoke(this); - - public RestoreRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRestore; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.restore"; - - public RestoreRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public RestoreRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public RestoreRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public RestoreRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private ICollection? FeatureStatesValue { get; set; } - private ICollection? IgnoreIndexSettingsValue { get; set; } - private bool? IgnoreUnavailableValue { get; set; } - private bool? IncludeAliasesValue { get; set; } - private bool? IncludeGlobalStateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? IndexSettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor IndexSettingsDescriptor { get; set; } - private Action> IndexSettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private bool? PartialValue { get; set; } - private string? RenamePatternValue { get; set; } - private string? RenameReplacementValue { get; set; } - - public RestoreRequestDescriptor FeatureStates(ICollection? featureStates) - { - FeatureStatesValue = featureStates; - return Self; - } - - public RestoreRequestDescriptor IgnoreIndexSettings(ICollection? ignoreIndexSettings) - { - IgnoreIndexSettingsValue = ignoreIndexSettings; - return Self; - } - - public RestoreRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public RestoreRequestDescriptor IncludeAliases(bool? includeAliases = true) - { - IncludeAliasesValue = includeAliases; - return Self; - } - - public RestoreRequestDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - public RestoreRequestDescriptor IndexSettings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? indexSettings) - { - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = null; - IndexSettingsValue = indexSettings; - return Self; - } - - public RestoreRequestDescriptor IndexSettings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - IndexSettingsValue = null; - IndexSettingsDescriptorAction = null; - IndexSettingsDescriptor = descriptor; - return Self; - } - - public RestoreRequestDescriptor IndexSettings(Action> configure) - { - IndexSettingsValue = null; - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = configure; - return Self; - } - - public RestoreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public RestoreRequestDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - public RestoreRequestDescriptor RenamePattern(string? renamePattern) - { - RenamePatternValue = renamePattern; - return Self; - } - - public RestoreRequestDescriptor RenameReplacement(string? renameReplacement) - { - RenameReplacementValue = renameReplacement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureStatesValue is not null) - { - writer.WritePropertyName("feature_states"); - JsonSerializer.Serialize(writer, FeatureStatesValue, options); - } - - if (IgnoreIndexSettingsValue is not null) - { - writer.WritePropertyName("ignore_index_settings"); - JsonSerializer.Serialize(writer, IgnoreIndexSettingsValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeAliasesValue.HasValue) - { - writer.WritePropertyName("include_aliases"); - writer.WriteBooleanValue(IncludeAliasesValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndexSettingsDescriptor is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsDescriptor, options); - } - else if (IndexSettingsDescriptorAction is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(IndexSettingsDescriptorAction), options); - } - else if (IndexSettingsValue is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - if (!string.IsNullOrEmpty(RenamePatternValue)) - { - writer.WritePropertyName("rename_pattern"); - writer.WriteStringValue(RenamePatternValue); - } - - if (!string.IsNullOrEmpty(RenameReplacementValue)) - { - writer.WritePropertyName("rename_replacement"); - writer.WriteStringValue(RenameReplacementValue); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Restore a snapshot. -/// Restore a snapshot of a cluster or data streams and indices. -/// -/// -/// You can restore a snapshot only to a running cluster with an elected master node. -/// The snapshot repository must be registered and available to the cluster. -/// The snapshot and cluster versions must be compatible. -/// -/// -/// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. -/// -/// -/// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: -/// -/// -/// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream -/// -/// -/// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. -/// -/// -/// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. -/// -/// -public sealed partial class RestoreRequestDescriptor : RequestDescriptor -{ - internal RestoreRequestDescriptor(Action configure) => configure.Invoke(this); - - public RestoreRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot) : base(r => r.Required("repository", repository).Required("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRestore; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "snapshot.restore"; - - public RestoreRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public RestoreRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public RestoreRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name repository) - { - RouteValues.Required("repository", repository); - return Self; - } - - public RestoreRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Name snapshot) - { - RouteValues.Required("snapshot", snapshot); - return Self; - } - - private ICollection? FeatureStatesValue { get; set; } - private ICollection? IgnoreIndexSettingsValue { get; set; } - private bool? IgnoreUnavailableValue { get; set; } - private bool? IncludeAliasesValue { get; set; } - private bool? IncludeGlobalStateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? IndexSettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor IndexSettingsDescriptor { get; set; } - private Action IndexSettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private bool? PartialValue { get; set; } - private string? RenamePatternValue { get; set; } - private string? RenameReplacementValue { get; set; } - - public RestoreRequestDescriptor FeatureStates(ICollection? featureStates) - { - FeatureStatesValue = featureStates; - return Self; - } - - public RestoreRequestDescriptor IgnoreIndexSettings(ICollection? ignoreIndexSettings) - { - IgnoreIndexSettingsValue = ignoreIndexSettings; - return Self; - } - - public RestoreRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public RestoreRequestDescriptor IncludeAliases(bool? includeAliases = true) - { - IncludeAliasesValue = includeAliases; - return Self; - } - - public RestoreRequestDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - public RestoreRequestDescriptor IndexSettings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? indexSettings) - { - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = null; - IndexSettingsValue = indexSettings; - return Self; - } - - public RestoreRequestDescriptor IndexSettings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - IndexSettingsValue = null; - IndexSettingsDescriptorAction = null; - IndexSettingsDescriptor = descriptor; - return Self; - } - - public RestoreRequestDescriptor IndexSettings(Action configure) - { - IndexSettingsValue = null; - IndexSettingsDescriptor = null; - IndexSettingsDescriptorAction = configure; - return Self; - } - - public RestoreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public RestoreRequestDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - public RestoreRequestDescriptor RenamePattern(string? renamePattern) - { - RenamePatternValue = renamePattern; - return Self; - } - - public RestoreRequestDescriptor RenameReplacement(string? renameReplacement) - { - RenameReplacementValue = renameReplacement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureStatesValue is not null) - { - writer.WritePropertyName("feature_states"); - JsonSerializer.Serialize(writer, FeatureStatesValue, options); - } - - if (IgnoreIndexSettingsValue is not null) - { - writer.WritePropertyName("ignore_index_settings"); - JsonSerializer.Serialize(writer, IgnoreIndexSettingsValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeAliasesValue.HasValue) - { - writer.WritePropertyName("include_aliases"); - writer.WriteBooleanValue(IncludeAliasesValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndexSettingsDescriptor is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsDescriptor, options); - } - else if (IndexSettingsDescriptorAction is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(IndexSettingsDescriptorAction), options); - } - else if (IndexSettingsValue is not null) - { - writer.WritePropertyName("index_settings"); - JsonSerializer.Serialize(writer, IndexSettingsValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - if (!string.IsNullOrEmpty(RenamePatternValue)) - { - writer.WritePropertyName("rename_pattern"); - writer.WriteStringValue(RenamePatternValue); - } - - if (!string.IsNullOrEmpty(RenameReplacementValue)) - { - writer.WritePropertyName("rename_replacement"); - writer.WriteStringValue(RenameReplacementValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs deleted file mode 100644 index 0ee5b1548b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/RestoreResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class RestoreResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("accepted")] - public bool? Accepted { get; init; } - [JsonInclude, JsonPropertyName("snapshot")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotRestore? Snapshot { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs deleted file mode 100644 index f30fbb0d885..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusRequest.g.cs +++ /dev/null @@ -1,161 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class SnapshotStatusRequestParameters : RequestParameters -{ - /// - /// - /// Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get the snapshot status. -/// Get a detailed description of the current state for each shard participating in the snapshot. -/// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. -/// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. -/// -/// -/// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. -/// The API requires a read from the repository for each shard in each snapshot. -/// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). -/// -/// -/// Depending on the latency of your storage, such requests can take an extremely long time to return results. -/// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. -/// -/// -public sealed partial class SnapshotStatusRequest : PlainRequest -{ - public SnapshotStatusRequest() - { - } - - public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Name? repository) : base(r => r.Optional("repository", repository)) - { - } - - public SnapshotStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Name? repository, Elastic.Clients.Elasticsearch.Serverless.Names? snapshot) : base(r => r.Optional("repository", repository).Optional("snapshot", snapshot)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.status"; - - /// - /// - /// Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get the snapshot status. -/// Get a detailed description of the current state for each shard participating in the snapshot. -/// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. -/// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. -/// -/// -/// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. -/// The API requires a read from the repository for each shard in each snapshot. -/// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). -/// -/// -/// Depending on the latency of your storage, such requests can take an extremely long time to return results. -/// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. -/// -/// -public sealed partial class SnapshotStatusRequestDescriptor : RequestDescriptor -{ - internal SnapshotStatusRequestDescriptor(Action configure) => configure.Invoke(this); - - public SnapshotStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name? repository, Elastic.Clients.Elasticsearch.Serverless.Names? snapshot) : base(r => r.Optional("repository", repository).Optional("snapshot", snapshot)) - { - } - - public SnapshotStatusRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.status"; - - public SnapshotStatusRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public SnapshotStatusRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public SnapshotStatusRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Serverless.Name? repository) - { - RouteValues.Optional("repository", repository); - return Self; - } - - public SnapshotStatusRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Serverless.Names? snapshot) - { - RouteValues.Optional("snapshot", snapshot); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs deleted file mode 100644 index ce5388ec913..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/SnapshotStatusResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class SnapshotStatusResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("snapshots")] - public IReadOnlyCollection Snapshots { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs deleted file mode 100644 index ef9a8848780..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryRequest.g.cs +++ /dev/null @@ -1,121 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class VerifyRepositoryRequestParameters : RequestParameters -{ - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit operation timeout - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Verify a snapshot repository. -/// Check for common misconfigurations in a snapshot repository. -/// -/// -public sealed partial class VerifyRepositoryRequest : PlainRequest -{ - public VerifyRepositoryRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotVerifyRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.verify_repository"; - - /// - /// - /// Explicit operation timeout for connection to master node - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Explicit operation timeout - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Verify a snapshot repository. -/// Check for common misconfigurations in a snapshot repository. -/// -/// -public sealed partial class VerifyRepositoryRequestDescriptor : RequestDescriptor -{ - internal VerifyRepositoryRequestDescriptor(Action configure) => configure.Invoke(this); - - public VerifyRepositoryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("repository", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotVerifyRepository; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "snapshot.verify_repository"; - - public VerifyRepositoryRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public VerifyRepositoryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public VerifyRepositoryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - RouteValues.Required("repository", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs deleted file mode 100644 index 8c3de92f9ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Snapshot/VerifyRepositoryResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public sealed partial class VerifyRepositoryResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs deleted file mode 100644 index 07d02724d46..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ /dev/null @@ -1,91 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class DeleteLifecycleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a policy. -/// Delete a snapshot lifecycle policy definition. -/// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. -/// -/// -public sealed partial class DeleteLifecycleRequest : PlainRequest -{ - public DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Name policyId) : base(r => r.Required("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementDeleteLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.delete_lifecycle"; -} - -/// -/// -/// Delete a policy. -/// Delete a snapshot lifecycle policy definition. -/// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. -/// -/// -public sealed partial class DeleteLifecycleRequestDescriptor : RequestDescriptor -{ - internal DeleteLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name policyId) : base(r => r.Required("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementDeleteLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.delete_lifecycle"; - - public DeleteLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Serverless.Name policyId) - { - RouteValues.Required("policy_id", policyId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs deleted file mode 100644 index c55e6564aa6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class DeleteLifecycleResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs deleted file mode 100644 index c593ffdc5fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ /dev/null @@ -1,91 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class ExecuteLifecycleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Run a policy. -/// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. -/// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. -/// -/// -public sealed partial class ExecuteLifecycleRequest : PlainRequest -{ - public ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Name policyId) : base(r => r.Required("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementExecuteLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.execute_lifecycle"; -} - -/// -/// -/// Run a policy. -/// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. -/// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. -/// -/// -public sealed partial class ExecuteLifecycleRequestDescriptor : RequestDescriptor -{ - internal ExecuteLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExecuteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name policyId) : base(r => r.Required("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementExecuteLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.execute_lifecycle"; - - public ExecuteLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Serverless.Name policyId) - { - RouteValues.Required("policy_id", policyId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs deleted file mode 100644 index c3b46581b3c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class ExecuteLifecycleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("snapshot_name")] - public string SnapshotName { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs deleted file mode 100644 index 56476c30003..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ /dev/null @@ -1,81 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class ExecuteRetentionRequestParameters : RequestParameters -{ -} - -/// -/// -/// Run a retention policy. -/// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. -/// The retention policy is normally applied according to its schedule. -/// -/// -public sealed partial class ExecuteRetentionRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementExecuteRetention; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.execute_retention"; -} - -/// -/// -/// Run a retention policy. -/// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. -/// The retention policy is normally applied according to its schedule. -/// -/// -public sealed partial class ExecuteRetentionRequestDescriptor : RequestDescriptor -{ - internal ExecuteRetentionRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExecuteRetentionRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementExecuteRetention; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.execute_retention"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs deleted file mode 100644 index df9da9e895a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class ExecuteRetentionResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs deleted file mode 100644 index 1cbee94e18a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ /dev/null @@ -1,97 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class GetLifecycleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get policy information. -/// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. -/// -/// -public sealed partial class GetLifecycleRequest : PlainRequest -{ - public GetLifecycleRequest() - { - } - - public GetLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Names? policyId) : base(r => r.Optional("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementGetLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.get_lifecycle"; -} - -/// -/// -/// Get policy information. -/// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. -/// -/// -public sealed partial class GetLifecycleRequestDescriptor : RequestDescriptor -{ - internal GetLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? policyId) : base(r => r.Optional("policy_id", policyId)) - { - } - - public GetLifecycleRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementGetLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.get_lifecycle"; - - public GetLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Serverless.Names? policyId) - { - RouteValues.Optional("policy_id", policyId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs deleted file mode 100644 index ec6663c071f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class GetLifecycleResponse : DictionaryResponse -{ - public GetLifecycleResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetLifecycleResponse() : base() - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs deleted file mode 100644 index f77374b8586..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class GetSlmStatusRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get the snapshot lifecycle management status. -/// -/// -public sealed partial class GetSlmStatusRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementGetStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.get_status"; -} - -/// -/// -/// Get the snapshot lifecycle management status. -/// -/// -public sealed partial class GetSlmStatusRequestDescriptor : RequestDescriptor -{ - internal GetSlmStatusRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetSlmStatusRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementGetStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.get_status"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs deleted file mode 100644 index 65874614e4f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class GetSlmStatusResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("operation_mode")] - public Elastic.Clients.Elasticsearch.Serverless.LifecycleOperationMode OperationMode { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs deleted file mode 100644 index ec1b6f7077b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ /dev/null @@ -1,79 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class GetStatsRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get snapshot lifecycle management statistics. -/// Get global and policy-level statistics about actions taken by snapshot lifecycle management. -/// -/// -public sealed partial class GetStatsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementGetStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.get_stats"; -} - -/// -/// -/// Get snapshot lifecycle management statistics. -/// Get global and policy-level statistics about actions taken by snapshot lifecycle management. -/// -/// -public sealed partial class GetStatsRequestDescriptor : RequestDescriptor -{ - internal GetStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetStatsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementGetStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.get_stats"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs deleted file mode 100644 index 3306a7ae841..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/GetStatsResponse.g.cs +++ /dev/null @@ -1,51 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class GetStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("policy_stats")] - public IReadOnlyCollection PolicyStats { get; init; } - [JsonInclude, JsonPropertyName("retention_deletion_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration RetentionDeletionTime { get; init; } - [JsonInclude, JsonPropertyName("retention_deletion_time_millis")] - public long RetentionDeletionTimeMillis { get; init; } - [JsonInclude, JsonPropertyName("retention_failed")] - public long RetentionFailed { get; init; } - [JsonInclude, JsonPropertyName("retention_runs")] - public long RetentionRuns { get; init; } - [JsonInclude, JsonPropertyName("retention_timed_out")] - public long RetentionTimedOut { get; init; } - [JsonInclude, JsonPropertyName("total_snapshot_deletion_failures")] - public long TotalSnapshotDeletionFailures { get; init; } - [JsonInclude, JsonPropertyName("total_snapshots_deleted")] - public long TotalSnapshotsDeleted { get; init; } - [JsonInclude, JsonPropertyName("total_snapshots_failed")] - public long TotalSnapshotsFailed { get; init; } - [JsonInclude, JsonPropertyName("total_snapshots_taken")] - public long TotalSnapshotsTaken { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs deleted file mode 100644 index 535ce9f30f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ /dev/null @@ -1,318 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class PutLifecycleRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Create or update a policy. -/// Create or update a snapshot lifecycle policy. -/// If the policy already exists, this request increments the policy version. -/// Only the latest version of a policy is stored. -/// -/// -public sealed partial class PutLifecycleRequest : PlainRequest -{ - public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Name policyId) : base(r => r.Required("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementPutLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "slm.put_lifecycle"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Configuration for each snapshot created by the policy. - /// - /// - [JsonInclude, JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfiguration? Config { get; set; } - - /// - /// - /// Name automatically assigned to each snapshot created by the policy. Date math is supported. To prevent conflicting snapshot names, a UUID is automatically appended to each snapshot name. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } - - /// - /// - /// Repository used to store snapshots created by this policy. This repository must exist prior to the policy’s creation. You can create a repository using the snapshot repository API. - /// - /// - [JsonInclude, JsonPropertyName("repository")] - public string? Repository { get; set; } - - /// - /// - /// Retention rules used to retain and delete snapshots created by the policy. - /// - /// - [JsonInclude, JsonPropertyName("retention")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Retention? Retention { get; set; } - - /// - /// - /// Periodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately. - /// - /// - [JsonInclude, JsonPropertyName("schedule")] - public string? Schedule { get; set; } -} - -/// -/// -/// Create or update a policy. -/// Create or update a snapshot lifecycle policy. -/// If the policy already exists, this request increments the policy version. -/// Only the latest version of a policy is stored. -/// -/// -public sealed partial class PutLifecycleRequestDescriptor : RequestDescriptor -{ - internal PutLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name policyId) : base(r => r.Required("policy_id", policyId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementPutLifecycle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "slm.put_lifecycle"; - - public PutLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public PutLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Serverless.Name policyId) - { - RouteValues.Required("policy_id", policyId); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfiguration? ConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfigurationDescriptor ConfigDescriptor { get; set; } - private Action ConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private string? RepositoryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Retention? RetentionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.RetentionDescriptor RetentionDescriptor { get; set; } - private Action RetentionDescriptorAction { get; set; } - private string? ScheduleValue { get; set; } - - /// - /// - /// Configuration for each snapshot created by the policy. - /// - /// - public PutLifecycleRequestDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfiguration? config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public PutLifecycleRequestDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfigurationDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public PutLifecycleRequestDescriptor Config(Action configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// Name automatically assigned to each snapshot created by the policy. Date math is supported. To prevent conflicting snapshot names, a UUID is automatically appended to each snapshot name. - /// - /// - public PutLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Repository used to store snapshots created by this policy. This repository must exist prior to the policy’s creation. You can create a repository using the snapshot repository API. - /// - /// - public PutLifecycleRequestDescriptor Repository(string? repository) - { - RepositoryValue = repository; - return Self; - } - - /// - /// - /// Retention rules used to retain and delete snapshots created by the policy. - /// - /// - public PutLifecycleRequestDescriptor Retention(Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Retention? retention) - { - RetentionDescriptor = null; - RetentionDescriptorAction = null; - RetentionValue = retention; - return Self; - } - - public PutLifecycleRequestDescriptor Retention(Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.RetentionDescriptor descriptor) - { - RetentionValue = null; - RetentionDescriptorAction = null; - RetentionDescriptor = descriptor; - return Self; - } - - public PutLifecycleRequestDescriptor Retention(Action configure) - { - RetentionValue = null; - RetentionDescriptor = null; - RetentionDescriptorAction = configure; - return Self; - } - - /// - /// - /// Periodic or absolute schedule at which the policy creates snapshots. SLM applies schedule changes immediately. - /// - /// - public PutLifecycleRequestDescriptor Schedule(string? schedule) - { - ScheduleValue = schedule; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfigurationDescriptor(ConfigDescriptorAction), options); - } - else if (ConfigValue is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (!string.IsNullOrEmpty(RepositoryValue)) - { - writer.WritePropertyName("repository"); - writer.WriteStringValue(RepositoryValue); - } - - if (RetentionDescriptor is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, RetentionDescriptor, options); - } - else if (RetentionDescriptorAction is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.RetentionDescriptor(RetentionDescriptorAction), options); - } - else if (RetentionValue is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, RetentionValue, options); - } - - if (!string.IsNullOrEmpty(ScheduleValue)) - { - writer.WritePropertyName("schedule"); - writer.WriteStringValue(ScheduleValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs deleted file mode 100644 index 81e78167d5f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class PutLifecycleResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs deleted file mode 100644 index 5b6039a70e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ /dev/null @@ -1,81 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class StartSlmRequestParameters : RequestParameters -{ -} - -/// -/// -/// Start snapshot lifecycle management. -/// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. -/// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. -/// -/// -public sealed partial class StartSlmRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementStart; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.start"; -} - -/// -/// -/// Start snapshot lifecycle management. -/// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. -/// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. -/// -/// -public sealed partial class StartSlmRequestDescriptor : RequestDescriptor -{ - internal StartSlmRequestDescriptor(Action configure) => configure.Invoke(this); - - public StartSlmRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementStart; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.start"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs deleted file mode 100644 index 3c808d5388b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StartSlmResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class StartSlmResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs deleted file mode 100644 index 5609d3cdb0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ /dev/null @@ -1,93 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class StopSlmRequestParameters : RequestParameters -{ -} - -/// -/// -/// Stop snapshot lifecycle management. -/// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. -/// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. -/// Stopping SLM does not stop any snapshots that are in progress. -/// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. -/// -/// -/// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. -/// Use the get snapshot lifecycle management status API to see if SLM is running. -/// -/// -public sealed partial class StopSlmRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementStop; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.stop"; -} - -/// -/// -/// Stop snapshot lifecycle management. -/// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. -/// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. -/// Stopping SLM does not stop any snapshots that are in progress. -/// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. -/// -/// -/// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. -/// Use the get snapshot lifecycle management status API to see if SLM is running. -/// -/// -public sealed partial class StopSlmRequestDescriptor : RequestDescriptor -{ - internal StopSlmRequestDescriptor(Action configure) => configure.Invoke(this); - - public StopSlmRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotLifecycleManagementStop; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "slm.stop"; - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs deleted file mode 100644 index 158747d810b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SnapshotLifecycleManagement/StopSlmResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public sealed partial class StopSlmResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs deleted file mode 100644 index 62374e69b2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs +++ /dev/null @@ -1,102 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class ClearCursorRequestParameters : RequestParameters -{ -} - -/// -/// -/// Clear an SQL search cursor. -/// -/// -public sealed partial class ClearCursorRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlClearCursor; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.clear_cursor"; - - /// - /// - /// Cursor to clear. - /// - /// - [JsonInclude, JsonPropertyName("cursor")] - public string Cursor { get; set; } -} - -/// -/// -/// Clear an SQL search cursor. -/// -/// -public sealed partial class ClearCursorRequestDescriptor : RequestDescriptor -{ - internal ClearCursorRequestDescriptor(Action configure) => configure.Invoke(this); - - public ClearCursorRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlClearCursor; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.clear_cursor"; - - private string CursorValue { get; set; } - - /// - /// - /// Cursor to clear. - /// - /// - public ClearCursorRequestDescriptor Cursor(string cursor) - { - CursorValue = cursor; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("cursor"); - writer.WriteStringValue(CursorValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs deleted file mode 100644 index 821827b04e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class ClearCursorResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("succeeded")] - public bool Succeeded { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs deleted file mode 100644 index 28e4492132b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ /dev/null @@ -1,125 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class DeleteAsyncRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete an async SQL search. -/// Delete an async SQL search or a stored synchronous SQL search. -/// If the search is still running, the API cancels it. -/// -/// -public sealed partial class DeleteAsyncRequest : PlainRequest -{ - public DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlDeleteAsync; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.delete_async"; -} - -/// -/// -/// Delete an async SQL search. -/// Delete an async SQL search or a stored synchronous SQL search. -/// If the search is still running, the API cancels it. -/// -/// -public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor, DeleteAsyncRequestParameters> -{ - internal DeleteAsyncRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlDeleteAsync; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.delete_async"; - - public DeleteAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete an async SQL search. -/// Delete an async SQL search or a stored synchronous SQL search. -/// If the search is still running, the API cancels it. -/// -/// -public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor -{ - internal DeleteAsyncRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlDeleteAsync; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.delete_async"; - - public DeleteAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs deleted file mode 100644 index 09cfb3fee42..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class DeleteAsyncResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs deleted file mode 100644 index 0c705dc0baf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ /dev/null @@ -1,197 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class GetAsyncRequestParameters : RequestParameters -{ - /// - /// - /// Separator for CSV results. The API only supports this parameter for CSV responses. - /// - /// - public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } - - /// - /// - /// Format for the response. You must specify a format using this parameter or the - /// Accept HTTP header. If you specify both, the API uses this parameter. - /// - /// - public string? Format { get => Q("format"); set => Q("format", value); } - - /// - /// - /// Retention period for the search and its results. Defaults - /// to the keep_alive period for the original SQL search. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Period to wait for complete results. Defaults to no timeout, - /// meaning the request waits for complete search results. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -/// -/// -/// Get async SQL search results. -/// Get the current status and available results for an async SQL search or stored synchronous SQL search. -/// -/// -public sealed partial class GetAsyncRequest : PlainRequest -{ - public GetAsyncRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsync; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.get_async"; - - /// - /// - /// Separator for CSV results. The API only supports this parameter for CSV responses. - /// - /// - [JsonIgnore] - public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } - - /// - /// - /// Format for the response. You must specify a format using this parameter or the - /// Accept HTTP header. If you specify both, the API uses this parameter. - /// - /// - [JsonIgnore] - public string? Format { get => Q("format"); set => Q("format", value); } - - /// - /// - /// Retention period for the search and its results. Defaults - /// to the keep_alive period for the original SQL search. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } - - /// - /// - /// Period to wait for complete results. Defaults to no timeout, - /// meaning the request waits for complete search results. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } -} - -/// -/// -/// Get async SQL search results. -/// Get the current status and available results for an async SQL search or stored synchronous SQL search. -/// -/// -public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor, GetAsyncRequestParameters> -{ - internal GetAsyncRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsync; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.get_async"; - - public GetAsyncRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); - public GetAsyncRequestDescriptor Format(string? format) => Qs("format", format); - public GetAsyncRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - public GetAsyncRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public GetAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get async SQL search results. -/// Get the current status and available results for an async SQL search or stored synchronous SQL search. -/// -/// -public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor -{ - internal GetAsyncRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsync; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.get_async"; - - public GetAsyncRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); - public GetAsyncRequestDescriptor Format(string? format) => Qs("format", format); - public GetAsyncRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); - public GetAsyncRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); - - public GetAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs deleted file mode 100644 index b2f81b3bb98..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs +++ /dev/null @@ -1,80 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class GetAsyncResponse : ElasticsearchResponse -{ - /// - /// - /// Column headings for the search results. Each object is a column. - /// - /// - [JsonInclude, JsonPropertyName("columns")] - public IReadOnlyCollection? Columns { get; init; } - - /// - /// - /// Cursor for the next set of paginated results. For CSV, TSV, and - /// TXT responses, this value is returned in the Cursor HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("cursor")] - public string? Cursor { get; init; } - - /// - /// - /// Identifier for the search. This value is only returned for async and saved - /// synchronous searches. For CSV, TSV, and TXT responses, this value is returned - /// in the Async-ID HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// If true, the response does not contain complete search results. If is_partial - /// is true and is_running is true, the search is still running. If is_partial - /// is true but is_running is false, the results are partial due to a failure or - /// timeout. This value is only returned for async and saved synchronous searches. - /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool IsPartial { get; init; } - - /// - /// - /// If true, the search is still running. If false, the search has finished. - /// This value is only returned for async and saved synchronous searches. For - /// CSV, TSV, and TXT responses, this value is returned in the Async-partial - /// HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool IsRunning { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs deleted file mode 100644 index c8722fb5eb4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs +++ /dev/null @@ -1,122 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class GetAsyncStatusRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get the async SQL search status. -/// Get the current status of an async SQL search or a stored synchronous SQL search. -/// -/// -public sealed partial class GetAsyncStatusRequest : PlainRequest -{ - public GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsyncStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.get_async_status"; -} - -/// -/// -/// Get the async SQL search status. -/// Get the current status of an async SQL search or a stored synchronous SQL search. -/// -/// -public sealed partial class GetAsyncStatusRequestDescriptor : RequestDescriptor, GetAsyncStatusRequestParameters> -{ - internal GetAsyncStatusRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetAsyncStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsyncStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.get_async_status"; - - public GetAsyncStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get the async SQL search status. -/// Get the current status of an async SQL search or a stored synchronous SQL search. -/// -/// -public sealed partial class GetAsyncStatusRequestDescriptor : RequestDescriptor -{ - internal GetAsyncStatusRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetAsyncStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsyncStatus; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "sql.get_async_status"; - - public GetAsyncStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs deleted file mode 100644 index 7e4c8941777..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs +++ /dev/null @@ -1,83 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse -{ - /// - /// - /// HTTP status code for the search. The API only returns this property for completed searches. - /// - /// - [JsonInclude, JsonPropertyName("completion_status")] - public int? CompletionStatus { get; init; } - - /// - /// - /// Timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete - /// the search and its results, even if the search is still running. - /// - /// - [JsonInclude, JsonPropertyName("expiration_time_in_millis")] - public long ExpirationTimeInMillis { get; init; } - - /// - /// - /// Identifier for the search. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// If true, the response does not contain complete search results. If is_partial - /// is true and is_running is true, the search is still running. If is_partial - /// is true but is_running is false, the results are partial due to a failure or - /// timeout. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool IsPartial { get; init; } - - /// - /// - /// If true, the search is still running. If false, the search has finished. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool IsRunning { get; init; } - - /// - /// - /// Timestamp, in milliseconds since the Unix epoch, when the search started. - /// The API only returns this property for running searches. - /// - /// - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs deleted file mode 100644 index 89eac05f2c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs +++ /dev/null @@ -1,903 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class QueryRequestParameters : RequestParameters -{ - /// - /// - /// Format for the response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } -} - -/// -/// -/// Get SQL search results. -/// Run an SQL request. -/// -/// -public sealed partial class QueryRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.query"; - - /// - /// - /// Format for the response. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } - - /// - /// - /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. - /// - /// - [JsonInclude, JsonPropertyName("catalog")] - public string? Catalog { get; set; } - - /// - /// - /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. - /// - /// - [JsonInclude, JsonPropertyName("columnar")] - public bool? Columnar { get; set; } - - /// - /// - /// Cursor used to retrieve a set of paginated results. - /// If you specify a cursor, the API only uses the columnar and time_zone request body parameters. - /// It ignores other request body parameters. - /// - /// - [JsonInclude, JsonPropertyName("cursor")] - public string? Cursor { get; set; } - - /// - /// - /// The maximum number of rows (or entries) to return in one response - /// - /// - [JsonInclude, JsonPropertyName("fetch_size")] - public int? FetchSize { get; set; } - - /// - /// - /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). - /// - /// - [JsonInclude, JsonPropertyName("field_multi_value_leniency")] - public bool? FieldMultiValueLeniency { get; set; } - - /// - /// - /// Elasticsearch query DSL for additional filtering. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - - /// - /// - /// If true, the search can run on frozen indices. Defaults to false. - /// - /// - [JsonInclude, JsonPropertyName("index_using_frozen")] - public bool? IndexUsingFrozen { get; set; } - - /// - /// - /// Retention period for an async or saved synchronous search. - /// - /// - [JsonInclude, JsonPropertyName("keep_alive")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; set; } - - /// - /// - /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. - /// - /// - [JsonInclude, JsonPropertyName("keep_on_completion")] - public bool? KeepOnCompletion { get; set; } - - /// - /// - /// The timeout before a pagination request fails. - /// - /// - [JsonInclude, JsonPropertyName("page_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? PageTimeout { get; set; } - - /// - /// - /// Values for parameters in the query. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// SQL query to run. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string? Query { get; set; } - - /// - /// - /// The timeout before the request fails. - /// - /// - [JsonInclude, JsonPropertyName("request_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? RequestTimeout { get; set; } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// ISO-8601 time zone ID for the search. - /// - /// - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } - - /// - /// - /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. - /// - /// - [JsonInclude, JsonPropertyName("wait_for_completion_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get; set; } -} - -/// -/// -/// Get SQL search results. -/// Run an SQL request. -/// -/// -public sealed partial class QueryRequestDescriptor : RequestDescriptor, QueryRequestParameters> -{ - internal QueryRequestDescriptor(Action> configure) => configure.Invoke(this); - - public QueryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.query"; - - public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? format) => Qs("format", format); - - private string? CatalogValue { get; set; } - private bool? ColumnarValue { get; set; } - private string? CursorValue { get; set; } - private int? FetchSizeValue { get; set; } - private bool? FieldMultiValueLeniencyValue { 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 bool? IndexUsingFrozenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } - private bool? KeepOnCompletionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? PageTimeoutValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private string? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? RequestTimeoutValue { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } - - /// - /// - /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. - /// - /// - public QueryRequestDescriptor Catalog(string? catalog) - { - CatalogValue = catalog; - return Self; - } - - /// - /// - /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. - /// - /// - public QueryRequestDescriptor Columnar(bool? columnar = true) - { - ColumnarValue = columnar; - return Self; - } - - /// - /// - /// Cursor used to retrieve a set of paginated results. - /// If you specify a cursor, the API only uses the columnar and time_zone request body parameters. - /// It ignores other request body parameters. - /// - /// - public QueryRequestDescriptor Cursor(string? cursor) - { - CursorValue = cursor; - return Self; - } - - /// - /// - /// The maximum number of rows (or entries) to return in one response - /// - /// - public QueryRequestDescriptor FetchSize(int? fetchSize) - { - FetchSizeValue = fetchSize; - return Self; - } - - /// - /// - /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). - /// - /// - public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLeniency = true) - { - FieldMultiValueLeniencyValue = fieldMultiValueLeniency; - return Self; - } - - /// - /// - /// Elasticsearch query DSL for additional filtering. - /// - /// - public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public QueryRequestDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// If true, the search can run on frozen indices. Defaults to false. - /// - /// - public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) - { - IndexUsingFrozenValue = indexUsingFrozen; - return Self; - } - - /// - /// - /// Retention period for an async or saved synchronous search. - /// - /// - public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) - { - KeepAliveValue = keepAlive; - return Self; - } - - /// - /// - /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. - /// - /// - public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) - { - KeepOnCompletionValue = keepOnCompletion; - return Self; - } - - /// - /// - /// The timeout before a pagination request fails. - /// - /// - public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? pageTimeout) - { - PageTimeoutValue = pageTimeout; - return Self; - } - - /// - /// - /// Values for parameters in the query. - /// - /// - public QueryRequestDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// SQL query to run. - /// - /// - public QueryRequestDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// The timeout before the request fails. - /// - /// - public QueryRequestDescriptor RequestTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? requestTimeout) - { - RequestTimeoutValue = requestTimeout; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public QueryRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// ISO-8601 time zone ID for the search. - /// - /// - public QueryRequestDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - /// - /// - /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. - /// - /// - public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) - { - WaitForCompletionTimeoutValue = waitForCompletionTimeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CatalogValue)) - { - writer.WritePropertyName("catalog"); - writer.WriteStringValue(CatalogValue); - } - - if (ColumnarValue.HasValue) - { - writer.WritePropertyName("columnar"); - writer.WriteBooleanValue(ColumnarValue.Value); - } - - if (!string.IsNullOrEmpty(CursorValue)) - { - writer.WritePropertyName("cursor"); - writer.WriteStringValue(CursorValue); - } - - if (FetchSizeValue.HasValue) - { - writer.WritePropertyName("fetch_size"); - writer.WriteNumberValue(FetchSizeValue.Value); - } - - if (FieldMultiValueLeniencyValue.HasValue) - { - writer.WritePropertyName("field_multi_value_leniency"); - writer.WriteBooleanValue(FieldMultiValueLeniencyValue.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 (IndexUsingFrozenValue.HasValue) - { - writer.WritePropertyName("index_using_frozen"); - writer.WriteBooleanValue(IndexUsingFrozenValue.Value); - } - - if (KeepAliveValue is not null) - { - writer.WritePropertyName("keep_alive"); - JsonSerializer.Serialize(writer, KeepAliveValue, options); - } - - if (KeepOnCompletionValue.HasValue) - { - writer.WritePropertyName("keep_on_completion"); - writer.WriteBooleanValue(KeepOnCompletionValue.Value); - } - - if (PageTimeoutValue is not null) - { - writer.WritePropertyName("page_timeout"); - JsonSerializer.Serialize(writer, PageTimeoutValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - if (RequestTimeoutValue is not null) - { - writer.WritePropertyName("request_timeout"); - JsonSerializer.Serialize(writer, RequestTimeoutValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - if (WaitForCompletionTimeoutValue is not null) - { - writer.WritePropertyName("wait_for_completion_timeout"); - JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get SQL search results. -/// Run an SQL request. -/// -/// -public sealed partial class QueryRequestDescriptor : RequestDescriptor -{ - internal QueryRequestDescriptor(Action configure) => configure.Invoke(this); - - public QueryRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.query"; - - public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Sql.SqlFormat? format) => Qs("format", format); - - private string? CatalogValue { get; set; } - private bool? ColumnarValue { get; set; } - private string? CursorValue { get; set; } - private int? FetchSizeValue { get; set; } - private bool? FieldMultiValueLeniencyValue { 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 bool? IndexUsingFrozenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } - private bool? KeepOnCompletionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? PageTimeoutValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private string? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? RequestTimeoutValue { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } - - /// - /// - /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. - /// - /// - public QueryRequestDescriptor Catalog(string? catalog) - { - CatalogValue = catalog; - return Self; - } - - /// - /// - /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. - /// - /// - public QueryRequestDescriptor Columnar(bool? columnar = true) - { - ColumnarValue = columnar; - return Self; - } - - /// - /// - /// Cursor used to retrieve a set of paginated results. - /// If you specify a cursor, the API only uses the columnar and time_zone request body parameters. - /// It ignores other request body parameters. - /// - /// - public QueryRequestDescriptor Cursor(string? cursor) - { - CursorValue = cursor; - return Self; - } - - /// - /// - /// The maximum number of rows (or entries) to return in one response - /// - /// - public QueryRequestDescriptor FetchSize(int? fetchSize) - { - FetchSizeValue = fetchSize; - return Self; - } - - /// - /// - /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). - /// - /// - public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLeniency = true) - { - FieldMultiValueLeniencyValue = fieldMultiValueLeniency; - return Self; - } - - /// - /// - /// Elasticsearch query DSL for additional filtering. - /// - /// - public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public QueryRequestDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// If true, the search can run on frozen indices. Defaults to false. - /// - /// - public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) - { - IndexUsingFrozenValue = indexUsingFrozen; - return Self; - } - - /// - /// - /// Retention period for an async or saved synchronous search. - /// - /// - public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) - { - KeepAliveValue = keepAlive; - return Self; - } - - /// - /// - /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. - /// - /// - public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) - { - KeepOnCompletionValue = keepOnCompletion; - return Self; - } - - /// - /// - /// The timeout before a pagination request fails. - /// - /// - public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? pageTimeout) - { - PageTimeoutValue = pageTimeout; - return Self; - } - - /// - /// - /// Values for parameters in the query. - /// - /// - public QueryRequestDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// SQL query to run. - /// - /// - public QueryRequestDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// The timeout before the request fails. - /// - /// - public QueryRequestDescriptor RequestTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? requestTimeout) - { - RequestTimeoutValue = requestTimeout; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public QueryRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// ISO-8601 time zone ID for the search. - /// - /// - public QueryRequestDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - /// - /// - /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. - /// - /// - public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) - { - WaitForCompletionTimeoutValue = waitForCompletionTimeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CatalogValue)) - { - writer.WritePropertyName("catalog"); - writer.WriteStringValue(CatalogValue); - } - - if (ColumnarValue.HasValue) - { - writer.WritePropertyName("columnar"); - writer.WriteBooleanValue(ColumnarValue.Value); - } - - if (!string.IsNullOrEmpty(CursorValue)) - { - writer.WritePropertyName("cursor"); - writer.WriteStringValue(CursorValue); - } - - if (FetchSizeValue.HasValue) - { - writer.WritePropertyName("fetch_size"); - writer.WriteNumberValue(FetchSizeValue.Value); - } - - if (FieldMultiValueLeniencyValue.HasValue) - { - writer.WritePropertyName("field_multi_value_leniency"); - writer.WriteBooleanValue(FieldMultiValueLeniencyValue.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 (IndexUsingFrozenValue.HasValue) - { - writer.WritePropertyName("index_using_frozen"); - writer.WriteBooleanValue(IndexUsingFrozenValue.Value); - } - - if (KeepAliveValue is not null) - { - writer.WritePropertyName("keep_alive"); - JsonSerializer.Serialize(writer, KeepAliveValue, options); - } - - if (KeepOnCompletionValue.HasValue) - { - writer.WritePropertyName("keep_on_completion"); - writer.WriteBooleanValue(KeepOnCompletionValue.Value); - } - - if (PageTimeoutValue is not null) - { - writer.WritePropertyName("page_timeout"); - JsonSerializer.Serialize(writer, PageTimeoutValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - if (RequestTimeoutValue is not null) - { - writer.WritePropertyName("request_timeout"); - JsonSerializer.Serialize(writer, RequestTimeoutValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - if (WaitForCompletionTimeoutValue is not null) - { - writer.WritePropertyName("wait_for_completion_timeout"); - JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs deleted file mode 100644 index 3b1a52167ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs +++ /dev/null @@ -1,80 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class QueryResponse : ElasticsearchResponse -{ - /// - /// - /// Column headings for the search results. Each object is a column. - /// - /// - [JsonInclude, JsonPropertyName("columns")] - public IReadOnlyCollection? Columns { get; init; } - - /// - /// - /// Cursor for the next set of paginated results. For CSV, TSV, and - /// TXT responses, this value is returned in the Cursor HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("cursor")] - public string? Cursor { get; init; } - - /// - /// - /// Identifier for the search. This value is only returned for async and saved - /// synchronous searches. For CSV, TSV, and TXT responses, this value is returned - /// in the Async-ID HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - - /// - /// - /// If true, the response does not contain complete search results. If is_partial - /// is true and is_running is true, the search is still running. If is_partial - /// is true but is_running is false, the results are partial due to a failure or - /// timeout. This value is only returned for async and saved synchronous searches. - /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("is_partial")] - public bool? IsPartial { get; init; } - - /// - /// - /// If true, the search is still running. If false, the search has finished. - /// This value is only returned for async and saved synchronous searches. For - /// CSV, TSV, and TXT responses, this value is returned in the Async-partial - /// HTTP header. - /// - /// - [JsonInclude, JsonPropertyName("is_running")] - public bool? IsRunning { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs deleted file mode 100644 index 232449c0e9b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateRequest.g.cs +++ /dev/null @@ -1,340 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class TranslateRequestParameters : RequestParameters -{ -} - -/// -/// -/// Translate SQL into Elasticsearch queries. -/// Translate an SQL search into a search API request containing Query DSL. -/// -/// -public sealed partial class TranslateRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlTranslate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.translate"; - - /// - /// - /// The maximum number of rows (or entries) to return in one response. - /// - /// - [JsonInclude, JsonPropertyName("fetch_size")] - public int? FetchSize { get; set; } - - /// - /// - /// Elasticsearch query DSL for additional filtering. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - - /// - /// - /// SQL query to run. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - - /// - /// - /// ISO-8601 time zone ID for the search. - /// - /// - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } -} - -/// -/// -/// Translate SQL into Elasticsearch queries. -/// Translate an SQL search into a search API request containing Query DSL. -/// -/// -public sealed partial class TranslateRequestDescriptor : RequestDescriptor, TranslateRequestParameters> -{ - internal TranslateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public TranslateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlTranslate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.translate"; - - private int? FetchSizeValue { 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 QueryValue { get; set; } - private string? TimeZoneValue { get; set; } - - /// - /// - /// The maximum number of rows (or entries) to return in one response. - /// - /// - public TranslateRequestDescriptor FetchSize(int? fetchSize) - { - FetchSizeValue = fetchSize; - return Self; - } - - /// - /// - /// Elasticsearch query DSL for additional filtering. - /// - /// - public TranslateRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public TranslateRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public TranslateRequestDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// SQL query to run. - /// - /// - public TranslateRequestDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// ISO-8601 time zone ID for the search. - /// - /// - public TranslateRequestDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FetchSizeValue.HasValue) - { - writer.WritePropertyName("fetch_size"); - writer.WriteNumberValue(FetchSizeValue.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); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Translate SQL into Elasticsearch queries. -/// Translate an SQL search into a search API request containing Query DSL. -/// -/// -public sealed partial class TranslateRequestDescriptor : RequestDescriptor -{ - internal TranslateRequestDescriptor(Action configure) => configure.Invoke(this); - - public TranslateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SqlTranslate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "sql.translate"; - - private int? FetchSizeValue { 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 QueryValue { get; set; } - private string? TimeZoneValue { get; set; } - - /// - /// - /// The maximum number of rows (or entries) to return in one response. - /// - /// - public TranslateRequestDescriptor FetchSize(int? fetchSize) - { - FetchSizeValue = fetchSize; - return Self; - } - - /// - /// - /// Elasticsearch query DSL for additional filtering. - /// - /// - public TranslateRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public TranslateRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public TranslateRequestDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// SQL query to run. - /// - /// - public TranslateRequestDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// ISO-8601 time zone ID for the search. - /// - /// - public TranslateRequestDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FetchSizeValue.HasValue) - { - writer.WritePropertyName("fetch_size"); - writer.WriteNumberValue(FetchSizeValue.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); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateResponse.g.cs deleted file mode 100644 index 99fbe12d829..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/TranslateResponse.g.cs +++ /dev/null @@ -1,44 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public sealed partial class TranslateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregations")] - public IReadOnlyDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyCollection? Fields { get; init; } - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; init; } - [JsonInclude, JsonPropertyName("size")] - public long? Size { get; init; } - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public IReadOnlyCollection? Sort { get; init; } - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs deleted file mode 100644 index 744034456bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs +++ /dev/null @@ -1,119 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class DeleteSynonymRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a synonym set. -/// -/// -public sealed partial class DeleteSynonymRequest : PlainRequest -{ - public DeleteSynonymRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsDeleteSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.delete_synonym"; -} - -/// -/// -/// Delete a synonym set. -/// -/// -public sealed partial class DeleteSynonymRequestDescriptor : RequestDescriptor, DeleteSynonymRequestParameters> -{ - internal DeleteSynonymRequestDescriptor(Action> configure) => configure.Invoke(this); - - public DeleteSynonymRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsDeleteSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.delete_synonym"; - - public DeleteSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Delete a synonym set. -/// -/// -public sealed partial class DeleteSynonymRequestDescriptor : RequestDescriptor -{ - internal DeleteSynonymRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteSynonymRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsDeleteSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.delete_synonym"; - - public DeleteSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs deleted file mode 100644 index 479bdd5aaa4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class DeleteSynonymResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs deleted file mode 100644 index 5564af586ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class DeleteSynonymRuleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Delete a synonym rule. -/// Delete a synonym rule from a synonym set. -/// -/// -public sealed partial class DeleteSynonymRuleRequest : PlainRequest -{ - public DeleteSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsDeleteSynonymRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.delete_synonym_rule"; -} - -/// -/// -/// Delete a synonym rule. -/// Delete a synonym rule from a synonym set. -/// -/// -public sealed partial class DeleteSynonymRuleRequestDescriptor : RequestDescriptor -{ - internal DeleteSynonymRuleRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteSynonymRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsDeleteSynonymRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.delete_synonym_rule"; - - public DeleteSynonymRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RouteValues.Required("rule_id", ruleId); - return Self; - } - - public DeleteSynonymRuleRequestDescriptor SetId(Elastic.Clients.Elasticsearch.Serverless.Id setId) - { - RouteValues.Required("set_id", setId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs deleted file mode 100644 index 73974df9ed9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs +++ /dev/null @@ -1,47 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class DeleteSynonymRuleResponse : ElasticsearchResponse -{ - /// - /// - /// Updating synonyms in a synonym set reloads the associated analyzers. - /// This is the analyzers reloading result - /// - /// - [JsonInclude, JsonPropertyName("reload_analyzers_details")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ReloadResult ReloadAnalyzersDetails { get; init; } - - /// - /// - /// Update operation result - /// - /// - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs deleted file mode 100644 index e1c50dc206c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRequest.g.cs +++ /dev/null @@ -1,154 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class GetSynonymRequestParameters : RequestParameters -{ - /// - /// - /// Starting offset for query rules to be retrieved - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// specifies a max number of query rules to retrieve - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get a synonym set. -/// -/// -public sealed partial class GetSynonymRequest : PlainRequest -{ - public GetSynonymRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonym"; - - /// - /// - /// Starting offset for query rules to be retrieved - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// specifies a max number of query rules to retrieve - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get a synonym set. -/// -/// -public sealed partial class GetSynonymRequestDescriptor : RequestDescriptor, GetSynonymRequestParameters> -{ - internal GetSynonymRequestDescriptor(Action> configure) => configure.Invoke(this); - - public GetSynonymRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonym"; - - public GetSynonymRequestDescriptor From(int? from) => Qs("from", from); - public GetSynonymRequestDescriptor Size(int? size) => Qs("size", size); - - public GetSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} - -/// -/// -/// Get a synonym set. -/// -/// -public sealed partial class GetSynonymRequestDescriptor : RequestDescriptor -{ - internal GetSynonymRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetSynonymRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonym"; - - public GetSynonymRequestDescriptor From(int? from) => Qs("from", from); - public GetSynonymRequestDescriptor Size(int? size) => Qs("size", size); - - public GetSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymResponse.g.cs deleted file mode 100644 index b9a0e5a1d26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class GetSynonymResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("synonyms_set")] - public IReadOnlyCollection SynonymsSet { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs deleted file mode 100644 index 6568a2355e8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleRequest.g.cs +++ /dev/null @@ -1,95 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class GetSynonymRuleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get a synonym rule. -/// Get a synonym rule from a synonym set. -/// -/// -public sealed partial class GetSynonymRuleRequest : PlainRequest -{ - public GetSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonymRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonym_rule"; -} - -/// -/// -/// Get a synonym rule. -/// Get a synonym rule from a synonym set. -/// -/// -public sealed partial class GetSynonymRuleRequestDescriptor : RequestDescriptor -{ - internal GetSynonymRuleRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetSynonymRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonymRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonym_rule"; - - public GetSynonymRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RouteValues.Required("rule_id", ruleId); - return Self; - } - - public GetSynonymRuleRequestDescriptor SetId(Elastic.Clients.Elasticsearch.Serverless.Id setId) - { - RouteValues.Required("set_id", setId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs deleted file mode 100644 index ddf0532449c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs +++ /dev/null @@ -1,46 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class GetSynonymRuleResponse : ElasticsearchResponse -{ - /// - /// - /// Synonym Rule identifier - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 - /// - /// - [JsonInclude, JsonPropertyName("synonyms")] - public string Synonyms { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs deleted file mode 100644 index 7ffe234f589..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class GetSynonymsSetsRequestParameters : RequestParameters -{ - /// - /// - /// Starting offset - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// specifies a max number of results to get - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get all synonym sets. -/// Get a summary of all defined synonym sets. -/// -/// -public sealed partial class GetSynonymsSetsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonymsSets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonyms_sets"; - - /// - /// - /// Starting offset - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// specifies a max number of results to get - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get all synonym sets. -/// Get a summary of all defined synonym sets. -/// -/// -public sealed partial class GetSynonymsSetsRequestDescriptor : RequestDescriptor -{ - internal GetSynonymsSetsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetSynonymsSetsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsGetSynonymsSets; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "synonyms.get_synonyms_sets"; - - public GetSynonymsSetsRequestDescriptor From(int? from) => Qs("from", from); - public GetSynonymsSetsRequestDescriptor Size(int? size) => Qs("size", size); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs deleted file mode 100644 index d995d7a68a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class GetSynonymsSetsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("results")] - public IReadOnlyCollection Results { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs deleted file mode 100644 index 917cc4d52a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ /dev/null @@ -1,288 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class PutSynonymRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create or update a synonym set. -/// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. -/// If you need to manage more synonym rules, you can create multiple synonym sets. -/// -/// -public sealed partial class PutSynonymRequest : PlainRequest -{ - public PutSynonymRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsPutSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "synonyms.put_synonym"; - - /// - /// - /// The synonym set information to update - /// - /// - [JsonInclude, JsonPropertyName("synonyms_set")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRule))] - public ICollection SynonymsSet { get; set; } -} - -/// -/// -/// Create or update a synonym set. -/// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. -/// If you need to manage more synonym rules, you can create multiple synonym sets. -/// -/// -public sealed partial class PutSynonymRequestDescriptor : RequestDescriptor, PutSynonymRequestParameters> -{ - internal PutSynonymRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutSynonymRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsPutSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "synonyms.put_synonym"; - - public PutSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private ICollection SynonymsSetValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor SynonymsSetDescriptor { get; set; } - private Action SynonymsSetDescriptorAction { get; set; } - private Action[] SynonymsSetDescriptorActions { get; set; } - - /// - /// - /// The synonym set information to update - /// - /// - public PutSynonymRequestDescriptor SynonymsSet(ICollection synonymsSet) - { - SynonymsSetDescriptor = null; - SynonymsSetDescriptorAction = null; - SynonymsSetDescriptorActions = null; - SynonymsSetValue = synonymsSet; - return Self; - } - - public PutSynonymRequestDescriptor SynonymsSet(Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor descriptor) - { - SynonymsSetValue = null; - SynonymsSetDescriptorAction = null; - SynonymsSetDescriptorActions = null; - SynonymsSetDescriptor = descriptor; - return Self; - } - - public PutSynonymRequestDescriptor SynonymsSet(Action configure) - { - SynonymsSetValue = null; - SynonymsSetDescriptor = null; - SynonymsSetDescriptorActions = null; - SynonymsSetDescriptorAction = configure; - return Self; - } - - public PutSynonymRequestDescriptor SynonymsSet(params Action[] configure) - { - SynonymsSetValue = null; - SynonymsSetDescriptor = null; - SynonymsSetDescriptorAction = null; - SynonymsSetDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SynonymsSetDescriptor is not null) - { - writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, SynonymsSetDescriptor, options); - } - else if (SynonymsSetDescriptorAction is not null) - { - writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(SynonymsSetDescriptorAction), options); - } - else if (SynonymsSetDescriptorActions is not null) - { - writer.WritePropertyName("synonyms_set"); - if (SynonymsSetDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SynonymsSetDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(action), options); - } - - if (SynonymsSetDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("synonyms_set"); - SingleOrManySerializationHelper.Serialize(SynonymsSetValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Create or update a synonym set. -/// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. -/// If you need to manage more synonym rules, you can create multiple synonym sets. -/// -/// -public sealed partial class PutSynonymRequestDescriptor : RequestDescriptor -{ - internal PutSynonymRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutSynonymRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsPutSynonym; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "synonyms.put_synonym"; - - public PutSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - private ICollection SynonymsSetValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor SynonymsSetDescriptor { get; set; } - private Action SynonymsSetDescriptorAction { get; set; } - private Action[] SynonymsSetDescriptorActions { get; set; } - - /// - /// - /// The synonym set information to update - /// - /// - public PutSynonymRequestDescriptor SynonymsSet(ICollection synonymsSet) - { - SynonymsSetDescriptor = null; - SynonymsSetDescriptorAction = null; - SynonymsSetDescriptorActions = null; - SynonymsSetValue = synonymsSet; - return Self; - } - - public PutSynonymRequestDescriptor SynonymsSet(Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor descriptor) - { - SynonymsSetValue = null; - SynonymsSetDescriptorAction = null; - SynonymsSetDescriptorActions = null; - SynonymsSetDescriptor = descriptor; - return Self; - } - - public PutSynonymRequestDescriptor SynonymsSet(Action configure) - { - SynonymsSetValue = null; - SynonymsSetDescriptor = null; - SynonymsSetDescriptorActions = null; - SynonymsSetDescriptorAction = configure; - return Self; - } - - public PutSynonymRequestDescriptor SynonymsSet(params Action[] configure) - { - SynonymsSetValue = null; - SynonymsSetDescriptor = null; - SynonymsSetDescriptorAction = null; - SynonymsSetDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SynonymsSetDescriptor is not null) - { - writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, SynonymsSetDescriptor, options); - } - else if (SynonymsSetDescriptorAction is not null) - { - writer.WritePropertyName("synonyms_set"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(SynonymsSetDescriptorAction), options); - } - else if (SynonymsSetDescriptorActions is not null) - { - writer.WritePropertyName("synonyms_set"); - if (SynonymsSetDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SynonymsSetDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Synonyms.SynonymRuleDescriptor(action), options); - } - - if (SynonymsSetDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("synonyms_set"); - SingleOrManySerializationHelper.Serialize(SynonymsSetValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymResponse.g.cs deleted file mode 100644 index 7d199169ef8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class PutSynonymResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("reload_analyzers_details")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ReloadResult ReloadAnalyzersDetails { get; init; } - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs deleted file mode 100644 index 670ee2ea436..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ /dev/null @@ -1,110 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class PutSynonymRuleRequestParameters : RequestParameters -{ -} - -/// -/// -/// Create or update a synonym rule. -/// Create or update a synonym rule in a synonym set. -/// -/// -public sealed partial class PutSynonymRuleRequest : PlainRequest -{ - public PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsPutSynonymRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "synonyms.put_synonym_rule"; - - [JsonInclude, JsonPropertyName("synonyms")] - public string Synonyms { get; set; } -} - -/// -/// -/// Create or update a synonym rule. -/// Create or update a synonym rule in a synonym set. -/// -/// -public sealed partial class PutSynonymRuleRequestDescriptor : RequestDescriptor -{ - internal PutSynonymRuleRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutSynonymRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("set_id", setId).Required("rule_id", ruleId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.SynonymsPutSynonymRule; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "synonyms.put_synonym_rule"; - - public PutSynonymRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RouteValues.Required("rule_id", ruleId); - return Self; - } - - public PutSynonymRuleRequestDescriptor SetId(Elastic.Clients.Elasticsearch.Serverless.Id setId) - { - RouteValues.Required("set_id", setId); - return Self; - } - - private string SynonymsValue { get; set; } - - public PutSynonymRuleRequestDescriptor Synonyms(string synonyms) - { - SynonymsValue = synonyms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("synonyms"); - writer.WriteStringValue(SynonymsValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs deleted file mode 100644 index 242f0cd0cde..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs +++ /dev/null @@ -1,47 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public sealed partial class PutSynonymRuleResponse : ElasticsearchResponse -{ - /// - /// - /// Updating synonyms in a synonym set reloads the associated analyzers. - /// This is the analyzers reloading result - /// - /// - [JsonInclude, JsonPropertyName("reload_analyzers_details")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ReloadResult ReloadAnalyzersDetails { get; init; } - - /// - /// - /// Update operation result - /// - /// - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs deleted file mode 100644 index 7854f379409..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs +++ /dev/null @@ -1,415 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 TermVectorsRequestParameters : RequestParameters -{ - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } - - /// - /// - /// If true, the response includes term positions. - /// - /// - public bool? Positions { get => Q("positions"); set => Q("positions", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } -} - -/// -/// -/// Get term vector information. -/// -/// -/// Get information and statistics about terms in the fields of a particular document. -/// -/// -public sealed partial class TermVectorsRequest : PlainRequest -{ - public TermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Required("index", index).Optional("id", id)) - { - } - - public TermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermvectors; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "termvectors"; - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - [JsonIgnore] - public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - [JsonIgnore] - public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - [JsonIgnore] - public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } - - /// - /// - /// If true, the response includes term positions. - /// - /// - [JsonIgnore] - public bool? Positions { get => Q("positions"); set => Q("positions", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// If true, the request is real-time as opposed to near-real-time. - /// - /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - [JsonIgnore] - public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Specific version type. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. - /// - /// - [JsonInclude, JsonPropertyName("doc")] - [SourceConverter] - public TDocument? Doc { get; set; } - - /// - /// - /// Filter terms based on their tf-idf scores. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? Filter { get; set; } - - /// - /// - /// Overrides the default per-field analyzer. - /// - /// - [JsonInclude, JsonPropertyName("per_field_analyzer")] - public IDictionary? PerFieldAnalyzer { get; set; } -} - -/// -/// -/// Get term vector information. -/// -/// -/// Get information and statistics about terms in the fields of a particular document. -/// -/// -public sealed partial class TermVectorsRequestDescriptor : RequestDescriptor, TermVectorsRequestParameters> -{ - internal TermVectorsRequestDescriptor(Action> configure) => configure.Invoke(this); - - public TermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id? id) : base(r => r.Required("index", index).Optional("id", id)) - { - } - - public TermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - public TermVectorsRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public TermVectorsRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public TermVectorsRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id? id) : this(typeof(TDocument), id) - { - } - - public TermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermvectors; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "termvectors"; - - public TermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) => Qs("fields", fields); - public TermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); - public TermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); - public TermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); - public TermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); - public TermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public TermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public TermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public TermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); - public TermVectorsRequestDescriptor Version(long? version) => Qs("version", version); - public TermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) => Qs("version_type", versionType); - - public TermVectorsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - - public TermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private TDocument? DocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private IDictionary? PerFieldAnalyzerValue { get; set; } - - /// - /// - /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. - /// - /// - public TermVectorsRequestDescriptor Doc(TDocument? doc) - { - DocValue = doc; - return Self; - } - - /// - /// - /// Filter terms based on their tf-idf scores. - /// - /// - public TermVectorsRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public TermVectorsRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public TermVectorsRequestDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Overrides the default per-field analyzer. - /// - /// - public TermVectorsRequestDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) - { - PerFieldAnalyzerValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocValue is not null) - { - writer.WritePropertyName("doc"); - settings.SourceSerializer.Serialize(DocValue, writer); - } - - 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.Core.TermVectors.FilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (PerFieldAnalyzerValue is not null) - { - writer.WritePropertyName("per_field_analyzer"); - JsonSerializer.Serialize(writer, PerFieldAnalyzerValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs deleted file mode 100644 index f2c69d342cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsResponse.g.cs +++ /dev/null @@ -1,44 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class TermVectorsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string? Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("term_vectors")] - [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.TermVector))] - public IReadOnlyDictionary? TermVectors { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs deleted file mode 100644 index 5173a597bac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumRequest.g.cs +++ /dev/null @@ -1,550 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 TermsEnumRequestParameters : RequestParameters -{ -} - -/// -/// -/// Get terms in an index. -/// -/// -/// Discover terms that match a partial string in an index. -/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. -/// -/// -/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. -/// This can occur due to a few reasons, such as a request timeout or a node error. -/// -/// -/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. -/// -/// -public sealed partial class TermsEnumRequest : PlainRequest -{ - public TermsEnumRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermsEnum; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "terms_enum"; - - /// - /// - /// When true the provided search string is matched against index terms without case sensitivity. - /// - /// - [JsonInclude, JsonPropertyName("case_insensitive")] - public bool? CaseInsensitive { get; set; } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Allows to filter an index shard if the provided query rewrites to match_none. - /// - /// - [JsonInclude, JsonPropertyName("index_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilter { get; set; } - [JsonInclude, JsonPropertyName("search_after")] - public string? SearchAfter { get; set; } - - /// - /// - /// How many matching terms to return. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. - /// - /// - [JsonInclude, JsonPropertyName("string")] - public string? String { get; set; } - - /// - /// - /// The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } -} - -/// -/// -/// Get terms in an index. -/// -/// -/// Discover terms that match a partial string in an index. -/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. -/// -/// -/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. -/// This can occur due to a few reasons, such as a request timeout or a node error. -/// -/// -/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. -/// -/// -public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor, TermsEnumRequestParameters> -{ - internal TermsEnumRequestDescriptor(Action> configure) => configure.Invoke(this); - - public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - public TermsEnumRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermsEnum; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "terms_enum"; - - public TermsEnumRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } - private Action> IndexFilterDescriptorAction { get; set; } - private string? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private string? StringValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// When true the provided search string is matched against index terms without case sensitivity. - /// - /// - public TermsEnumRequestDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - public TermsEnumRequestDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - public TermsEnumRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - public TermsEnumRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Allows to filter an index shard if the provided query rewrites to match_none. - /// - /// - public TermsEnumRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) - { - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = null; - IndexFilterValue = indexFilter; - return Self; - } - - public TermsEnumRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - IndexFilterValue = null; - IndexFilterDescriptorAction = null; - IndexFilterDescriptor = descriptor; - return Self; - } - - public TermsEnumRequestDescriptor IndexFilter(Action> configure) - { - IndexFilterValue = null; - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = configure; - return Self; - } - - public TermsEnumRequestDescriptor SearchAfter(string? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// How many matching terms to return. - /// - /// - public TermsEnumRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. - /// - /// - public TermsEnumRequestDescriptor String(string? value) - { - StringValue = value; - return Self; - } - - /// - /// - /// The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. - /// - /// - public TermsEnumRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IndexFilterDescriptor is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); - } - else if (IndexFilterDescriptorAction is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); - } - else if (IndexFilterValue is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterValue, options); - } - - if (!string.IsNullOrEmpty(SearchAfterValue)) - { - writer.WritePropertyName("search_after"); - writer.WriteStringValue(SearchAfterValue); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (!string.IsNullOrEmpty(StringValue)) - { - writer.WritePropertyName("string"); - writer.WriteStringValue(StringValue); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// Get terms in an index. -/// -/// -/// Discover terms that match a partial string in an index. -/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. -/// -/// -/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. -/// This can occur due to a few reasons, such as a request timeout or a node error. -/// -/// -/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. -/// -/// -public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor -{ - internal TermsEnumRequestDescriptor(Action configure) => configure.Invoke(this); - - public TermsEnumRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : base(r => r.Required("index", index)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermsEnum; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "terms_enum"; - - public TermsEnumRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? IndexFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor IndexFilterDescriptor { get; set; } - private Action IndexFilterDescriptorAction { get; set; } - private string? SearchAfterValue { get; set; } - private int? SizeValue { get; set; } - private string? StringValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - - /// - /// - /// When true the provided search string is matched against index terms without case sensitivity. - /// - /// - public TermsEnumRequestDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - public TermsEnumRequestDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - public TermsEnumRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string to match at the start of indexed terms. If not provided, all terms in the field are considered. - /// - /// - public TermsEnumRequestDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Allows to filter an index shard if the provided query rewrites to match_none. - /// - /// - public TermsEnumRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? indexFilter) - { - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = null; - IndexFilterValue = indexFilter; - return Self; - } - - public TermsEnumRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - IndexFilterValue = null; - IndexFilterDescriptorAction = null; - IndexFilterDescriptor = descriptor; - return Self; - } - - public TermsEnumRequestDescriptor IndexFilter(Action configure) - { - IndexFilterValue = null; - IndexFilterDescriptor = null; - IndexFilterDescriptorAction = configure; - return Self; - } - - public TermsEnumRequestDescriptor SearchAfter(string? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// How many matching terms to return. - /// - /// - public TermsEnumRequestDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. - /// - /// - public TermsEnumRequestDescriptor String(string? value) - { - StringValue = value; - return Self; - } - - /// - /// - /// The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. - /// - /// - public TermsEnumRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IndexFilterDescriptor is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterDescriptor, options); - } - else if (IndexFilterDescriptorAction is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(IndexFilterDescriptorAction), options); - } - else if (IndexFilterValue is not null) - { - writer.WritePropertyName("index_filter"); - JsonSerializer.Serialize(writer, IndexFilterValue, options); - } - - if (!string.IsNullOrEmpty(SearchAfterValue)) - { - writer.WritePropertyName("search_after"); - writer.WriteStringValue(SearchAfterValue); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (!string.IsNullOrEmpty(StringValue)) - { - writer.WritePropertyName("string"); - writer.WriteStringValue(StringValue); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumResponse.g.cs deleted file mode 100644 index 622d36f7f49..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermsEnumResponse.g.cs +++ /dev/null @@ -1,37 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class TermsEnumResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("complete")] - public bool Complete { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("terms")] - public IReadOnlyCollection Terms { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs deleted file mode 100644 index 244b0a6f31d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ /dev/null @@ -1,144 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TextStructure; - -public sealed partial class TestGrokPatternRequestParameters : RequestParameters -{ - /// - /// - /// The mode of compatibility with ECS compliant Grok patterns (disabled or v1, default: disabled). - /// - /// - public string? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } -} - -/// -/// -/// Test a Grok pattern. -/// Test a Grok pattern on one or more lines of text. -/// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. -/// -/// -public sealed partial class TestGrokPatternRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureTestGrokPattern; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "text_structure.test_grok_pattern"; - - /// - /// - /// The mode of compatibility with ECS compliant Grok patterns (disabled or v1, default: disabled). - /// - /// - [JsonIgnore] - public string? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } - - /// - /// - /// Grok pattern to run on the text. - /// - /// - [JsonInclude, JsonPropertyName("grok_pattern")] - public string GrokPattern { get; set; } - - /// - /// - /// Lines of text to run the Grok pattern on. - /// - /// - [JsonInclude, JsonPropertyName("text")] - public ICollection Text { get; set; } -} - -/// -/// -/// Test a Grok pattern. -/// Test a Grok pattern on one or more lines of text. -/// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. -/// -/// -public sealed partial class TestGrokPatternRequestDescriptor : RequestDescriptor -{ - internal TestGrokPatternRequestDescriptor(Action configure) => configure.Invoke(this); - - public TestGrokPatternRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TextStructureTestGrokPattern; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "text_structure.test_grok_pattern"; - - public TestGrokPatternRequestDescriptor EcsCompatibility(string? ecsCompatibility) => Qs("ecs_compatibility", ecsCompatibility); - - private string GrokPatternValue { get; set; } - private ICollection TextValue { get; set; } - - /// - /// - /// Grok pattern to run on the text. - /// - /// - public TestGrokPatternRequestDescriptor GrokPattern(string grokPattern) - { - GrokPatternValue = grokPattern; - return Self; - } - - /// - /// - /// Lines of text to run the Grok pattern on. - /// - /// - public TestGrokPatternRequestDescriptor Text(ICollection text) - { - TextValue = text; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("grok_pattern"); - writer.WriteStringValue(GrokPatternValue); - writer.WritePropertyName("text"); - JsonSerializer.Serialize(writer, TextValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs deleted file mode 100644 index 6eafe234525..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TextStructure/TestGrokPatternResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TextStructure; - -public sealed partial class TestGrokPatternResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("matches")] - public IReadOnlyCollection Matches { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 5a9c2718908..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs +++ /dev/null @@ -1,141 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class DeleteTransformRequestParameters : RequestParameters -{ - /// - /// - /// If this value is true, the destination index is deleted together with the transform. If false, the destination - /// index will not be deleted - /// - /// - public bool? DeleteDestIndex { get => Q("delete_dest_index"); set => Q("delete_dest_index", value); } - - /// - /// - /// If this value is false, the transform must be stopped before it can be deleted. If true, the transform is - /// deleted regardless of its current state. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete a transform. -/// Deletes a transform. -/// -/// -public sealed partial class DeleteTransformRequest : PlainRequest -{ - public DeleteTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementDeleteTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.delete_transform"; - - /// - /// - /// If this value is true, the destination index is deleted together with the transform. If false, the destination - /// index will not be deleted - /// - /// - [JsonIgnore] - public bool? DeleteDestIndex { get => Q("delete_dest_index"); set => Q("delete_dest_index", value); } - - /// - /// - /// If this value is false, the transform must be stopped before it can be deleted. If true, the transform is - /// deleted regardless of its current state. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Delete a transform. -/// Deletes a transform. -/// -/// -public sealed partial class DeleteTransformRequestDescriptor : RequestDescriptor -{ - internal DeleteTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public DeleteTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementDeleteTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.delete_transform"; - - public DeleteTransformRequestDescriptor DeleteDestIndex(bool? deleteDestIndex = true) => Qs("delete_dest_index", deleteDestIndex); - public DeleteTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - public DeleteTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public DeleteTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs deleted file mode 100644 index b39ea167e98..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/DeleteTransformResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class DeleteTransformResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs deleted file mode 100644 index e11fc2ef49f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformRequest.g.cs +++ /dev/null @@ -1,207 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class GetTransformRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no transforms that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Excludes fields that were automatically added when creating the - /// transform. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - - /// - /// - /// Skips the specified number of transforms. - /// - /// - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of transforms to obtain. - /// - /// - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get transforms. -/// Retrieves configuration information for transforms. -/// -/// -public sealed partial class GetTransformRequest : PlainRequest -{ - public GetTransformRequest() - { - } - - public GetTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Names? transformId) : base(r => r.Optional("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementGetTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.get_transform"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no transforms that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Excludes fields that were automatically added when creating the - /// transform. This allows the configuration to be in an acceptable format to - /// be retrieved and then added to another cluster. - /// - /// - [JsonIgnore] - public bool? ExcludeGenerated { get => Q("exclude_generated"); set => Q("exclude_generated", value); } - - /// - /// - /// Skips the specified number of transforms. - /// - /// - [JsonIgnore] - public int? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of transforms to obtain. - /// - /// - [JsonIgnore] - public int? Size { get => Q("size"); set => Q("size", value); } -} - -/// -/// -/// Get transforms. -/// Retrieves configuration information for transforms. -/// -/// -public sealed partial class GetTransformRequestDescriptor : RequestDescriptor -{ - internal GetTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names? transformId) : base(r => r.Optional("transform_id", transformId)) - { - } - - public GetTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementGetTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.get_transform"; - - public GetTransformRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetTransformRequestDescriptor ExcludeGenerated(bool? excludeGenerated = true) => Qs("exclude_generated", excludeGenerated); - public GetTransformRequestDescriptor From(int? from) => Qs("from", from); - public GetTransformRequestDescriptor Size(int? size) => Qs("size", size); - - public GetTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Names? transformId) - { - RouteValues.Optional("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformResponse.g.cs deleted file mode 100644 index 44e4b3afaa7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class GetTransformResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("transforms")] - public IReadOnlyCollection Transforms { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index be1b6061e59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs +++ /dev/null @@ -1,195 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class GetTransformStatsRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no transforms that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Skips the specified number of transforms. - /// - /// - public long? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of transforms to obtain. - /// - /// - public long? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Controls the time to wait for the stats - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get transform stats. -/// Retrieves usage information for transforms. -/// -/// -public sealed partial class GetTransformStatsRequest : PlainRequest -{ - public GetTransformStatsRequest(Elastic.Clients.Elasticsearch.Serverless.Names transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementGetTransformStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.get_transform_stats"; - - /// - /// - /// Specifies what to do when the request: - /// - /// - /// - /// - /// Contains wildcard expressions and there are no transforms that match. - /// - /// - /// - /// - /// Contains the _all string or no identifiers and there are no matches. - /// - /// - /// - /// - /// Contains wildcard expressions and there are only partial matches. - /// - /// - /// - /// - /// If this parameter is false, the request returns a 404 status code when - /// there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// Skips the specified number of transforms. - /// - /// - [JsonIgnore] - public long? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Specifies the maximum number of transforms to obtain. - /// - /// - [JsonIgnore] - public long? Size { get => Q("size"); set => Q("size", value); } - - /// - /// - /// Controls the time to wait for the stats - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Get transform stats. -/// Retrieves usage information for transforms. -/// -/// -public sealed partial class GetTransformStatsRequestDescriptor : RequestDescriptor -{ - internal GetTransformStatsRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetTransformStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementGetTransformStats; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.get_transform_stats"; - - public GetTransformStatsRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public GetTransformStatsRequestDescriptor From(long? from) => Qs("from", from); - public GetTransformStatsRequestDescriptor Size(long? size) => Qs("size", size); - public GetTransformStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public GetTransformStatsRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Names transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs deleted file mode 100644 index ad4f91559ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/GetTransformStatsResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class GetTransformStatsResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("transforms")] - public IReadOnlyCollection Transforms { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 723590953b8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformRequest.g.cs +++ /dev/null @@ -1,1012 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class PreviewTransformRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a response. If no response is received before the - /// timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public PreviewTransformRequest() - { - } - - public PreviewTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id? transformId) : base(r => r.Optional("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementPreviewTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.preview_transform"; - - /// - /// - /// Period to wait for a response. If no response is received before the - /// timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Free text description of the transform. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The destination for the transform. - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? Dest { get; set; } - - /// - /// - /// The interval between checks for changes in the source indices when the - /// transform is running continuously. Also determines the retry interval in - /// the event of transient failures while the transform is searching or - /// indexing. The minimum value is 1s and the maximum is 1h. - /// - /// - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; set; } - - /// - /// - /// The latest method transforms the data by finding the latest document for - /// each unique key. - /// - /// - [JsonInclude, JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? Latest { get; set; } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. - /// These objects define the group by fields and the aggregation to reduce - /// the data. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? Pivot { get; set; } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined - /// criteria is deleted from the destination index. - /// - /// - [JsonInclude, JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicy { get; set; } - - /// - /// - /// Defines optional transform settings. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? Settings { get; set; } - - /// - /// - /// The source of the data for the transform. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? Source { get; set; } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - [JsonInclude, JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? Sync { get; set; } -} - -/// -/// -/// 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> -{ - internal PreviewTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PreviewTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? transformId) : base(r => r.Optional("transform_id", transformId)) - { - } - - public PreviewTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementPreviewTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.preview_transform"; - - public PreviewTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PreviewTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id? transformId) - { - RouteValues.Optional("transform_id", transformId); - return Self; - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? LatestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor LatestDescriptor { get; set; } - private Action> LatestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? PivotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor PivotDescriptor { get; set; } - private Action> PivotDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor RetentionPolicyDescriptor { get; set; } - private Action> RetentionPolicyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor SourceDescriptor { get; set; } - private Action> SourceDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? SyncValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor SyncDescriptor { get; set; } - private Action> SyncDescriptorAction { get; set; } - - /// - /// - /// Free text description of the transform. - /// - /// - public PreviewTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination for the transform. - /// - /// - public PreviewTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public PreviewTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval between checks for changes in the source indices when the - /// transform is running continuously. Also determines the retry interval in - /// the event of transient failures while the transform is searching or - /// indexing. The minimum value is 1s and the maximum is 1h. - /// - /// - public PreviewTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// The latest method transforms the data by finding the latest document for - /// each unique key. - /// - /// - public PreviewTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public PreviewTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Latest(Action> configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. - /// These objects define the group by fields and the aggregation to reduce - /// the data. - /// - /// - public PreviewTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public PreviewTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Pivot(Action> configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined - /// criteria is deleted from the destination index. - /// - /// - public PreviewTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public PreviewTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor RetentionPolicy(Action> configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform settings. - /// - /// - public PreviewTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PreviewTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The source of the data for the transform. - /// - /// - public PreviewTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PreviewTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - public PreviewTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public PreviewTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Sync(Action> configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal PreviewTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public PreviewTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id? transformId) : base(r => r.Optional("transform_id", transformId)) - { - } - - public PreviewTransformRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementPreviewTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.preview_transform"; - - public PreviewTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PreviewTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id? transformId) - { - RouteValues.Optional("transform_id", transformId); - return Self; - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? LatestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor LatestDescriptor { get; set; } - private Action LatestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? PivotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor PivotDescriptor { get; set; } - private Action PivotDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor RetentionPolicyDescriptor { get; set; } - private Action RetentionPolicyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? SyncValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor SyncDescriptor { get; set; } - private Action SyncDescriptorAction { get; set; } - - /// - /// - /// Free text description of the transform. - /// - /// - public PreviewTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination for the transform. - /// - /// - public PreviewTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public PreviewTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval between checks for changes in the source indices when the - /// transform is running continuously. Also determines the retry interval in - /// the event of transient failures while the transform is searching or - /// indexing. The minimum value is 1s and the maximum is 1h. - /// - /// - public PreviewTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// The latest method transforms the data by finding the latest document for - /// each unique key. - /// - /// - public PreviewTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public PreviewTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Latest(Action configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. - /// These objects define the group by fields and the aggregation to reduce - /// the data. - /// - /// - public PreviewTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public PreviewTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Pivot(Action configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined - /// criteria is deleted from the destination index. - /// - /// - public PreviewTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public PreviewTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor RetentionPolicy(Action configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform settings. - /// - /// - public PreviewTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PreviewTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The source of the data for the transform. - /// - /// - public PreviewTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PreviewTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - public PreviewTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public PreviewTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public PreviewTransformRequestDescriptor Sync(Action configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs deleted file mode 100644 index 83b1131f2bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PreviewTransformResponse.g.cs +++ /dev/null @@ -1,35 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class PreviewTransformResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("generated_dest_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexState GeneratedDestIndex { get; init; } - [JsonInclude, JsonPropertyName("preview")] - public IReadOnlyCollection Preview { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 7b451cfaa63..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformRequest.g.cs +++ /dev/null @@ -1,1115 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class PutTransformRequestParameters : RequestParameters -{ - /// - /// - /// When the transform is created, a series of validations occur to ensure its success. For example, there is a - /// check for the existence of the source indices and a check that the destination index is not part of the source - /// index pattern. You can use this parameter to skip the checks, for example when the source index does not exist - /// until after the transform is created. The validations are always run when you start the transform, however, with - /// the exception of privilege checks. - /// - /// - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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. -/// -/// -/// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any -/// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do -/// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not -/// give users any privileges on .data-frame-internal* indices. -/// -/// -public sealed partial class PutTransformRequest : PlainRequest -{ - public PutTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementPutTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.put_transform"; - - /// - /// - /// When the transform is created, a series of validations occur to ensure its success. For example, there is a - /// check for the existence of the source indices and a check that the destination index is not part of the source - /// index pattern. You can use this parameter to skip the checks, for example when the source index does not exist - /// until after the transform is created. The validations are always run when you start the transform, however, with - /// the exception of privilege checks. - /// - /// - [JsonIgnore] - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Free text description of the transform. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The destination for the transform. - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination Dest { get; set; } - - /// - /// - /// The interval between checks for changes in the source indices when the transform is running continuously. Also - /// determines the retry interval in the event of transient failures while the transform is searching or indexing. - /// The minimum value is 1s and the maximum is 1h. - /// - /// - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; set; } - - /// - /// - /// The latest method transforms the data by finding the latest document for each unique key. - /// - /// - [JsonInclude, JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? Latest { get; set; } - - /// - /// - /// Defines optional transform metadata. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields - /// and the aggregation to reduce the data. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? Pivot { get; set; } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the - /// destination index. - /// - /// - [JsonInclude, JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicy { get; set; } - - /// - /// - /// Defines optional transform settings. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? Settings { get; set; } - - /// - /// - /// The source of the data for the transform. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source Source { get; set; } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - [JsonInclude, JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? Sync { get; set; } -} - -/// -/// -/// 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. -/// -/// -/// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any -/// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do -/// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not -/// give users any privileges on .data-frame-internal* indices. -/// -/// -public sealed partial class PutTransformRequestDescriptor : RequestDescriptor, PutTransformRequestParameters> -{ - internal PutTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - - public PutTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementPutTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.put_transform"; - - public PutTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public PutTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? LatestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor LatestDescriptor { get; set; } - private Action> LatestDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? PivotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor PivotDescriptor { get; set; } - private Action> PivotDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor RetentionPolicyDescriptor { get; set; } - private Action> RetentionPolicyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor SourceDescriptor { get; set; } - private Action> SourceDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? SyncValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor SyncDescriptor { get; set; } - private Action> SyncDescriptorAction { get; set; } - - /// - /// - /// Free text description of the transform. - /// - /// - public PutTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination for the transform. - /// - /// - public PutTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public PutTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval between checks for changes in the source indices when the transform is running continuously. Also - /// determines the retry interval in the event of transient failures while the transform is searching or indexing. - /// The minimum value is 1s and the maximum is 1h. - /// - /// - public PutTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// The latest method transforms the data by finding the latest document for each unique key. - /// - /// - public PutTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public PutTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Latest(Action> configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform metadata. - /// - /// - public PutTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields - /// and the aggregation to reduce the data. - /// - /// - public PutTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public PutTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Pivot(Action> configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the - /// destination index. - /// - /// - public PutTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public PutTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor RetentionPolicy(Action> configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform settings. - /// - /// - public PutTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PutTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The source of the data for the transform. - /// - /// - public PutTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PutTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - public PutTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public PutTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Sync(Action> configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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. -/// -/// -/// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any -/// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do -/// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not -/// give users any privileges on .data-frame-internal* indices. -/// -/// -public sealed partial class PutTransformRequestDescriptor : RequestDescriptor -{ - internal PutTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public PutTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementPutTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.put_transform"; - - public PutTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public PutTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public PutTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? LatestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor LatestDescriptor { get; set; } - private Action LatestDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? PivotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor PivotDescriptor { get; set; } - private Action PivotDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor RetentionPolicyDescriptor { get; set; } - private Action RetentionPolicyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? SyncValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor SyncDescriptor { get; set; } - private Action SyncDescriptorAction { get; set; } - - /// - /// - /// Free text description of the transform. - /// - /// - public PutTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination for the transform. - /// - /// - public PutTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public PutTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval between checks for changes in the source indices when the transform is running continuously. Also - /// determines the retry interval in the event of transient failures while the transform is searching or indexing. - /// The minimum value is 1s and the maximum is 1h. - /// - /// - public PutTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// The latest method transforms the data by finding the latest document for each unique key. - /// - /// - public PutTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? latest) - { - LatestDescriptor = null; - LatestDescriptorAction = null; - LatestValue = latest; - return Self; - } - - public PutTransformRequestDescriptor Latest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor descriptor) - { - LatestValue = null; - LatestDescriptorAction = null; - LatestDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Latest(Action configure) - { - LatestValue = null; - LatestDescriptor = null; - LatestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform metadata. - /// - /// - public PutTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. These objects define the group by fields - /// and the aggregation to reduce the data. - /// - /// - public PutTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? pivot) - { - PivotDescriptor = null; - PivotDescriptorAction = null; - PivotValue = pivot; - return Self; - } - - public PutTransformRequestDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor descriptor) - { - PivotValue = null; - PivotDescriptorAction = null; - PivotDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Pivot(Action configure) - { - PivotValue = null; - PivotDescriptor = null; - PivotDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined criteria is deleted from the - /// destination index. - /// - /// - public PutTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public PutTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor RetentionPolicy(Action configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform settings. - /// - /// - public PutTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public PutTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The source of the data for the transform. - /// - /// - public PutTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public PutTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - public PutTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public PutTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public PutTransformRequestDescriptor Sync(Action configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor(DestDescriptorAction), options); - } - else - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (LatestDescriptor is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestDescriptor, options); - } - else if (LatestDescriptorAction is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.LatestDescriptor(LatestDescriptorAction), options); - } - else if (LatestValue is not null) - { - writer.WritePropertyName("latest"); - JsonSerializer.Serialize(writer, LatestValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PivotDescriptor is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotDescriptor, options); - } - else if (PivotDescriptorAction is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotDescriptor(PivotDescriptorAction), options); - } - else if (PivotValue is not null) - { - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformResponse.g.cs deleted file mode 100644 index 37567c05c87..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/PutTransformResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class PutTransformResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs deleted file mode 100644 index 332e21511e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class ResetTransformRequestParameters : RequestParameters -{ - /// - /// - /// If this value is true, the transform is reset regardless of its current state. If it's false, the transform - /// must be stopped before it can be reset. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// 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 -{ - public ResetTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementResetTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.reset_transform"; - - /// - /// - /// If this value is true, the transform is reset regardless of its current state. If it's false, the transform - /// must be stopped before it can be reset. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } -} - -/// -/// -/// 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 -{ - internal ResetTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public ResetTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementResetTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.reset_transform"; - - public ResetTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - - public ResetTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs deleted file mode 100644 index d97e012a67e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ResetTransformResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class ResetTransformResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs deleted file mode 100644 index a24956050eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs +++ /dev/null @@ -1,117 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class ScheduleNowTransformRequestParameters : RequestParameters -{ - /// - /// - /// Controls the time to wait for the scheduling to take place - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementScheduleNowTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.schedule_now_transform"; - - /// - /// - /// Controls the time to wait for the scheduling to take place - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - internal ScheduleNowTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public ScheduleNowTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementScheduleNowTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.schedule_now_transform"; - - public ScheduleNowTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public ScheduleNowTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs deleted file mode 100644 index c9a9273b214..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/ScheduleNowTransformResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class ScheduleNowTransformResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs deleted file mode 100644 index 497f8d71a13..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformRequest.g.cs +++ /dev/null @@ -1,155 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class StartTransformRequestParameters : RequestParameters -{ - /// - /// - /// Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms. - /// - /// - public string? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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. -/// -/// -public sealed partial class StartTransformRequest : PlainRequest -{ - public StartTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementStartTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.start_transform"; - - /// - /// - /// Restricts the set of transformed entities to those changed after this time. Relative times like now-30d are supported. Only applicable for continuous transforms. - /// - /// - [JsonIgnore] - public string? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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. -/// -/// -public sealed partial class StartTransformRequestDescriptor : RequestDescriptor -{ - internal StartTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public StartTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementStartTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.start_transform"; - - public StartTransformRequestDescriptor From(string? from) => Qs("from", from); - public StartTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public StartTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformResponse.g.cs deleted file mode 100644 index 595a38b4095..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StartTransformResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class StartTransformResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs deleted file mode 100644 index 62562870894..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformRequest.g.cs +++ /dev/null @@ -1,195 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class StopTransformRequestParameters : RequestParameters -{ - /// - /// - /// Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; - /// contains the _all string or no identifiers and there are no matches; contains wildcard expressions and there - /// are only partial matches. - /// - /// - /// If it is true, the API returns a successful acknowledgement message when there are no matches. When there are - /// only partial matches, the API stops the appropriate transforms. - /// - /// - /// If it is false, the request returns a 404 status code when there are no matches or only partial matches. - /// - /// - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// If it is true, the API forcefully stops the transforms. - /// - /// - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Period to wait for a response when wait_for_completion is true. If no response is received before the - /// timeout expires, the request returns a timeout exception. However, the request continues processing and - /// eventually moves the transform to a STOPPED state. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If it is true, the transform does not completely stop until the current checkpoint is completed. If it is false, - /// the transform stops as soon as possible. - /// - /// - public bool? WaitForCheckpoint { get => Q("wait_for_checkpoint"); set => Q("wait_for_checkpoint", value); } - - /// - /// - /// If it is true, the API blocks until the indexer state completely stops. If it is false, the API returns - /// immediately and the indexer is stopped asynchronously in the background. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Stop transforms. -/// Stops one or more transforms. -/// -/// -public sealed partial class StopTransformRequest : PlainRequest -{ - public StopTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Name transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementStopTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.stop_transform"; - - /// - /// - /// Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; - /// contains the _all string or no identifiers and there are no matches; contains wildcard expressions and there - /// are only partial matches. - /// - /// - /// If it is true, the API returns a successful acknowledgement message when there are no matches. When there are - /// only partial matches, the API stops the appropriate transforms. - /// - /// - /// If it is false, the request returns a 404 status code when there are no matches or only partial matches. - /// - /// - [JsonIgnore] - public bool? AllowNoMatch { get => Q("allow_no_match"); set => Q("allow_no_match", value); } - - /// - /// - /// If it is true, the API forcefully stops the transforms. - /// - /// - [JsonIgnore] - public bool? Force { get => Q("force"); set => Q("force", value); } - - /// - /// - /// Period to wait for a response when wait_for_completion is true. If no response is received before the - /// timeout expires, the request returns a timeout exception. However, the request continues processing and - /// eventually moves the transform to a STOPPED state. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If it is true, the transform does not completely stop until the current checkpoint is completed. If it is false, - /// the transform stops as soon as possible. - /// - /// - [JsonIgnore] - public bool? WaitForCheckpoint { get => Q("wait_for_checkpoint"); set => Q("wait_for_checkpoint", value); } - - /// - /// - /// If it is true, the API blocks until the indexer state completely stops. If it is false, the API returns - /// immediately and the indexer is stopped asynchronously in the background. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// Stop transforms. -/// Stops one or more transforms. -/// -/// -public sealed partial class StopTransformRequestDescriptor : RequestDescriptor -{ - internal StopTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public StopTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementStopTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.stop_transform"; - - public StopTransformRequestDescriptor AllowNoMatch(bool? allowNoMatch = true) => Qs("allow_no_match", allowNoMatch); - public StopTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); - public StopTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public StopTransformRequestDescriptor WaitForCheckpoint(bool? waitForCheckpoint = true) => Qs("wait_for_checkpoint", waitForCheckpoint); - public StopTransformRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public StopTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Name transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformResponse.g.cs deleted file mode 100644 index 985c2bcd51a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/StopTransformResponse.g.cs +++ /dev/null @@ -1,38 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class StopTransformResponse : ElasticsearchResponse -{ - /// - /// - /// For a successful response, this value is always true. On failure, an exception is returned instead. - /// - /// - [JsonInclude, JsonPropertyName("acknowledged")] - public bool Acknowledged { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs deleted file mode 100644 index b414d107347..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformRequest.g.cs +++ /dev/null @@ -1,854 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class UpdateTransformRequestParameters : RequestParameters -{ - /// - /// - /// When true, deferrable validations are not run. This behavior may be - /// desired if the source index does not exist until after the transform is - /// created. - /// - /// - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the - /// timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// 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 -{ - public UpdateTransformRequest(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementUpdateTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.update_transform"; - - /// - /// - /// When true, deferrable validations are not run. This behavior may be - /// desired if the source index does not exist until after the transform is - /// created. - /// - /// - [JsonIgnore] - public bool? DeferValidation { get => Q("defer_validation"); set => Q("defer_validation", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the - /// timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// Free text description of the transform. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The destination for the transform. - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? Dest { get; set; } - - /// - /// - /// The interval between checks for changes in the source indices when the - /// transform is running continuously. Also determines the retry interval in - /// the event of transient failures while the transform is searching or - /// indexing. The minimum value is 1s and the maximum is 1h. - /// - /// - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; set; } - - /// - /// - /// Defines optional transform metadata. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined - /// criteria is deleted from the destination index. - /// - /// - [JsonInclude, JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicy { get; set; } - - /// - /// - /// Defines optional transform settings. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? Settings { get; set; } - - /// - /// - /// The source of the data for the transform. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? Source { get; set; } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - [JsonInclude, JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? Sync { get; set; } -} - -/// -/// -/// 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> -{ - internal UpdateTransformRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementUpdateTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.update_transform"; - - public UpdateTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public UpdateTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public UpdateTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor RetentionPolicyDescriptor { get; set; } - private Action> RetentionPolicyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor SourceDescriptor { get; set; } - private Action> SourceDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? SyncValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor SyncDescriptor { get; set; } - private Action> SyncDescriptorAction { get; set; } - - /// - /// - /// Free text description of the transform. - /// - /// - public UpdateTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination for the transform. - /// - /// - public UpdateTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public UpdateTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval between checks for changes in the source indices when the - /// transform is running continuously. Also determines the retry interval in - /// the event of transient failures while the transform is searching or - /// indexing. The minimum value is 1s and the maximum is 1h. - /// - /// - public UpdateTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// Defines optional transform metadata. - /// - /// - public UpdateTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined - /// criteria is deleted from the destination index. - /// - /// - public UpdateTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public UpdateTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor RetentionPolicy(Action> configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform settings. - /// - /// - public UpdateTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public UpdateTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The source of the data for the transform. - /// - /// - public UpdateTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public UpdateTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - public UpdateTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public UpdateTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Sync(Action> configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal UpdateTransformRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id transformId) : base(r => r.Required("transform_id", transformId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementUpdateTransform; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "transform.update_transform"; - - public UpdateTransformRequestDescriptor DeferValidation(bool? deferValidation = true) => Qs("defer_validation", deferValidation); - public UpdateTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - public UpdateTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Serverless.Id transformId) - { - RouteValues.Required("transform_id", transformId); - return Self; - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? DestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor DestDescriptor { get; set; } - private Action DestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor RetentionPolicyDescriptor { get; set; } - private Action RetentionPolicyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? SyncValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor SyncDescriptor { get; set; } - private Action SyncDescriptorAction { get; set; } - - /// - /// - /// Free text description of the transform. - /// - /// - public UpdateTransformRequestDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The destination for the transform. - /// - /// - public UpdateTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Destination? dest) - { - DestDescriptor = null; - DestDescriptorAction = null; - DestValue = dest; - return Self; - } - - public UpdateTransformRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor descriptor) - { - DestValue = null; - DestDescriptorAction = null; - DestDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Dest(Action configure) - { - DestValue = null; - DestDescriptor = null; - DestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval between checks for changes in the source indices when the - /// transform is running continuously. Also determines the retry interval in - /// the event of transient failures while the transform is searching or - /// indexing. The minimum value is 1s and the maximum is 1h. - /// - /// - public UpdateTransformRequestDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// Defines optional transform metadata. - /// - /// - public UpdateTransformRequestDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Defines a retention policy for the transform. Data that meets the defined - /// criteria is deleted from the destination index. - /// - /// - public UpdateTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? retentionPolicy) - { - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyValue = retentionPolicy; - return Self; - } - - public UpdateTransformRequestDescriptor RetentionPolicy(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor descriptor) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptorAction = null; - RetentionPolicyDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor RetentionPolicy(Action configure) - { - RetentionPolicyValue = null; - RetentionPolicyDescriptor = null; - RetentionPolicyDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines optional transform settings. - /// - /// - public UpdateTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public UpdateTransformRequestDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The source of the data for the transform. - /// - /// - public UpdateTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public UpdateTransformRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - public UpdateTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? sync) - { - SyncDescriptor = null; - SyncDescriptorAction = null; - SyncValue = sync; - return Self; - } - - public UpdateTransformRequestDescriptor Sync(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor descriptor) - { - SyncValue = null; - SyncDescriptorAction = null; - SyncDescriptor = descriptor; - return Self; - } - - public UpdateTransformRequestDescriptor Sync(Action configure) - { - SyncValue = null; - SyncDescriptor = null; - SyncDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestDescriptor is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestDescriptor, options); - } - else if (DestDescriptorAction is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.DestinationDescriptor(DestDescriptorAction), options); - } - else if (DestValue is not null) - { - writer.WritePropertyName("dest"); - JsonSerializer.Serialize(writer, DestValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (RetentionPolicyDescriptor is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyDescriptor, options); - } - else if (RetentionPolicyDescriptorAction is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicyDescriptor(RetentionPolicyDescriptorAction), options); - } - else if (RetentionPolicyValue is not null) - { - writer.WritePropertyName("retention_policy"); - JsonSerializer.Serialize(writer, RetentionPolicyValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SourceDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SyncDescriptor is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncDescriptor, options); - } - else if (SyncDescriptorAction is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.TransformManagement.SyncDescriptor(SyncDescriptorAction), options); - } - else if (SyncValue is not null) - { - writer.WritePropertyName("sync"); - JsonSerializer.Serialize(writer, SyncValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs deleted file mode 100644 index 3d804e206b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpdateTransformResponse.g.cs +++ /dev/null @@ -1,59 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class UpdateTransformResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TransformAuthorization? Authorization { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public long CreateTime { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination Dest { get; init; } - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? Latest { get; init; } - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? Pivot { get; init; } - [JsonInclude, JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicy { get; init; } - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings Settings { get; init; } - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source Source { get; init; } - [JsonInclude, JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? Sync { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs deleted file mode 100644 index 0f3088cb7ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ /dev/null @@ -1,141 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class UpgradeTransformsRequestParameters : RequestParameters -{ - /// - /// - /// When true, the request checks for updates but does not run them. - /// - /// - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and - /// returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Upgrade all transforms. -/// Transforms are compatible across minor versions and between supported major versions. -/// However, over time, the format of transform configuration information may change. -/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. -/// It also cleans up the internal data structures that store the transform state and checkpoints. -/// The upgrade does not affect the source and destination indices. -/// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. -/// -/// -/// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. -/// Resolve the issue then re-run the process again. -/// A summary is returned when the upgrade is finished. -/// -/// -/// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. -/// You may want to perform a recent cluster backup prior to the upgrade. -/// -/// -public sealed partial class UpgradeTransformsRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementUpgradeTransforms; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.upgrade_transforms"; - - /// - /// - /// When true, the request checks for updates but does not run them. - /// - /// - [JsonIgnore] - public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } - - /// - /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and - /// returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } -} - -/// -/// -/// Upgrade all transforms. -/// Transforms are compatible across minor versions and between supported major versions. -/// However, over time, the format of transform configuration information may change. -/// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. -/// It also cleans up the internal data structures that store the transform state and checkpoints. -/// The upgrade does not affect the source and destination indices. -/// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. -/// -/// -/// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. -/// Resolve the issue then re-run the process again. -/// A summary is returned when the upgrade is finished. -/// -/// -/// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. -/// You may want to perform a recent cluster backup prior to the upgrade. -/// -/// -public sealed partial class UpgradeTransformsRequestDescriptor : RequestDescriptor -{ - internal UpgradeTransformsRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpgradeTransformsRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.TransformManagementUpgradeTransforms; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "transform.upgrade_transforms"; - - public UpgradeTransformsRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); - public UpgradeTransformsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs deleted file mode 100644 index 0d286e7ad75..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TransformManagement/UpgradeTransformsResponse.g.cs +++ /dev/null @@ -1,54 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public sealed partial class UpgradeTransformsResponse : ElasticsearchResponse -{ - /// - /// - /// The number of transforms that need to be upgraded. - /// - /// - [JsonInclude, JsonPropertyName("needs_update")] - public int NeedsUpdate { get; init; } - - /// - /// - /// The number of transforms that don’t require upgrading. - /// - /// - [JsonInclude, JsonPropertyName("no_action")] - public int NoAction { get; init; } - - /// - /// - /// The number of transforms that have been upgraded. - /// - /// - [JsonInclude, JsonPropertyName("updated")] - public int Updated { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs deleted file mode 100644 index 19c11702a59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs +++ /dev/null @@ -1,1059 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 UpdateByQueryRequestParameters : RequestParameters -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Analyzer to use for the query string. - /// - /// - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// - /// - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Starting offset (default: 0) - /// - /// - public long? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. - /// - /// - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the request cache is used for this request. - /// - /// - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to retain the search context for scrolling. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// Size of the scroll request that powers the operation. - /// - /// - public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - - /// - /// - /// Explicit timeout for each search request. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } - - /// - /// - /// The type of the search operation. Available options: query_then_fetch, dfs_query_then_fetch. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// The number of slices this task should be divided into. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } - - /// - /// - /// Specific tag of the request for logging and statistical purposes. - /// - /// - public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// - /// - public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } - - /// - /// - /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public bool? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Should the document increment the version number (internal) on hit or not (reindex) - /// - /// - public bool? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If true, the request blocks until the operation is complete. - /// - /// - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } -} - -/// -/// -/// 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 -{ - public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "update_by_query"; - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonIgnore] - public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } - - /// - /// - /// Analyzer to use for the query string. - /// - /// - [JsonIgnore] - public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } - - /// - /// - /// If true, wildcard and prefix queries are analyzed. - /// - /// - [JsonIgnore] - public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } - - /// - /// - /// The default operator for query string query: AND or OR. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } - - /// - /// - /// Field to use as default where no field prefix is given in the query string. - /// - /// - [JsonIgnore] - public string? Df { get => Q("df"); set => Q("df", value); } - - /// - /// - /// Type of index that wildcard patterns can match. - /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. - /// Valid values are: all, open, closed, hidden, none. - /// - /// - [JsonIgnore] - public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - - /// - /// - /// Starting offset (default: 0) - /// - /// - [JsonIgnore] - public long? From { get => Q("from"); set => Q("from", value); } - - /// - /// - /// If false, the request returns an error if it targets a missing or closed index. - /// - /// - [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// - /// - [JsonIgnore] - public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } - - /// - /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. - /// - /// - [JsonIgnore] - public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } - - /// - /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. - /// - /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } - - /// - /// - /// Query in the Lucene query string syntax. - /// - /// - [JsonIgnore] - public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } - - /// - /// - /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. - /// - /// - [JsonIgnore] - public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the request cache is used for this request. - /// - /// - [JsonIgnore] - public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - [JsonIgnore] - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Period to retain the search context for scrolling. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } - - /// - /// - /// Size of the scroll request that powers the operation. - /// - /// - [JsonIgnore] - public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } - - /// - /// - /// Explicit timeout for each search request. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } - - /// - /// - /// The type of the search operation. Available options: query_then_fetch, dfs_query_then_fetch. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } - - /// - /// - /// The number of slices this task should be divided into. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } - - /// - /// - /// A comma-separated list of <field>:<direction> pairs. - /// - /// - [JsonIgnore] - public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } - - /// - /// - /// Specific tag of the request for logging and statistical purposes. - /// - /// - [JsonIgnore] - public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// If a query reaches this limit, Elasticsearch terminates the query early. - /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. - /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. - /// - /// - [JsonIgnore] - public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } - - /// - /// - /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - [JsonIgnore] - public bool? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// Should the document increment the version number (internal) on hit or not (reindex) - /// - /// - [JsonIgnore] - public bool? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If true, the request blocks until the operation is complete. - /// - /// - [JsonIgnore] - public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } - - /// - /// - /// What to do if update by query hits version conflicts: abort or proceed. - /// - /// - [JsonInclude, JsonPropertyName("conflicts")] - public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get; set; } - - /// - /// - /// The maximum number of documents to update. - /// - /// - [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; set; } - - /// - /// - /// Specifies the documents to update using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// The script to run to update the document source or metadata when updating. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Slice the request manually using the provided slice ID and total number of slices. - /// - /// - [JsonInclude, JsonPropertyName("slice")] - public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } -} - -/// -/// -/// 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> -{ - internal UpdateByQueryRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - public UpdateByQueryRequestDescriptor() : this(typeof(TDocument)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "update_by_query"; - - public UpdateByQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public UpdateByQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public UpdateByQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public UpdateByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public UpdateByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public UpdateByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public UpdateByQueryRequestDescriptor From(long? from) => Qs("from", from); - public UpdateByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public UpdateByQueryRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); - public UpdateByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public UpdateByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public UpdateByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public UpdateByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public UpdateByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - public UpdateByQueryRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public UpdateByQueryRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public UpdateByQueryRequestDescriptor ScrollSize(long? scrollSize) => Qs("scroll_size", scrollSize); - public UpdateByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); - public UpdateByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public UpdateByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); - public UpdateByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); - public UpdateByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); - public UpdateByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - public UpdateByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public UpdateByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); - public UpdateByQueryRequestDescriptor VersionType(bool? versionType = true) => Qs("version_type", versionType); - public UpdateByQueryRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public UpdateByQueryRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Conflicts? ConflictsValue { get; set; } - private long? MaxDocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - 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; } - - /// - /// - /// What to do if update by query hits version conflicts: abort or proceed. - /// - /// - public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) - { - ConflictsValue = conflicts; - return Self; - } - - /// - /// - /// The maximum number of documents to update. - /// - /// - public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - /// - /// - /// Specifies the documents to update using the Query DSL. - /// - /// - public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public UpdateByQueryRequestDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The script to run to update the document source or metadata when updating. - /// - /// - 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. - /// - /// - public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public UpdateByQueryRequestDescriptor Slice(Action> configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConflictsValue is not null) - { - writer.WritePropertyName("conflicts"); - JsonSerializer.Serialize(writer, ConflictsValue, options); - } - - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// 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 -{ - internal UpdateByQueryRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateByQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQuery; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "update_by_query"; - - public UpdateByQueryRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public UpdateByQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); - public UpdateByQueryRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); - public UpdateByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); - public UpdateByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public UpdateByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public UpdateByQueryRequestDescriptor From(long? from) => Qs("from", from); - public UpdateByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); - public UpdateByQueryRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); - public UpdateByQueryRequestDescriptor Preference(string? preference) => Qs("preference", preference); - public UpdateByQueryRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); - public UpdateByQueryRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); - public UpdateByQueryRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); - public UpdateByQueryRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - public UpdateByQueryRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public UpdateByQueryRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); - public UpdateByQueryRequestDescriptor ScrollSize(long? scrollSize) => Qs("scroll_size", scrollSize); - public UpdateByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); - public UpdateByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) => Qs("search_type", searchType); - public UpdateByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); - public UpdateByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); - public UpdateByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); - public UpdateByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); - public UpdateByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public UpdateByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); - public UpdateByQueryRequestDescriptor VersionType(bool? versionType = true) => Qs("version_type", versionType); - public UpdateByQueryRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - public UpdateByQueryRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - - public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - RouteValues.Required("index", indices); - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Conflicts? ConflictsValue { get; set; } - private long? MaxDocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - 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; } - - /// - /// - /// What to do if update by query hits version conflicts: abort or proceed. - /// - /// - public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) - { - ConflictsValue = conflicts; - return Self; - } - - /// - /// - /// The maximum number of documents to update. - /// - /// - public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - /// - /// - /// Specifies the documents to update using the Query DSL. - /// - /// - public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public UpdateByQueryRequestDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The script to run to update the document source or metadata when updating. - /// - /// - 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. - /// - /// - public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public UpdateByQueryRequestDescriptor Slice(Action configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConflictsValue is not null) - { - writer.WritePropertyName("conflicts"); - JsonSerializer.Serialize(writer, ConflictsValue, options); - } - - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryResponse.g.cs deleted file mode 100644 index e5772ccd603..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryResponse.g.cs +++ /dev/null @@ -1,63 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class UpdateByQueryResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("batches")] - public long? Batches { get; init; } - [JsonInclude, JsonPropertyName("deleted")] - public long? Deleted { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - [JsonInclude, JsonPropertyName("noops")] - public long? Noops { get; init; } - [JsonInclude, JsonPropertyName("requests_per_second")] - public float? RequestsPerSecond { get; init; } - [JsonInclude, JsonPropertyName("retries")] - public Elastic.Clients.Elasticsearch.Serverless.Retries? Retries { get; init; } - [JsonInclude, JsonPropertyName("task")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? Task { get; init; } - [JsonInclude, JsonPropertyName("throttled")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Throttled { get; init; } - [JsonInclude, JsonPropertyName("throttled_millis")] - public long? ThrottledMillis { get; init; } - [JsonInclude, JsonPropertyName("throttled_until")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ThrottledUntil { get; init; } - [JsonInclude, JsonPropertyName("throttled_until_millis")] - public long? ThrottledUntilMillis { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool? TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long? Total { get; init; } - [JsonInclude, JsonPropertyName("updated")] - public long? Updated { get; init; } - [JsonInclude, JsonPropertyName("version_conflicts")] - public long? VersionConflicts { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs deleted file mode 100644 index a5f50b58ef1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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 Elastic.Transport.Extensions; -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 UpdateByQueryRethrottleRequestParameters : RequestParameters -{ - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } -} - -/// -/// -/// Throttle an update by query operation. -/// -/// -/// Change the number of requests per second for a particular update by query operation. -/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. -/// -/// -public sealed partial class UpdateByQueryRethrottleRequest : PlainRequest -{ - public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.Id taskId) : base(r => r.Required("task_id", taskId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQueryRethrottle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "update_by_query_rethrottle"; - - /// - /// - /// The throttle for this request in sub-requests per second. - /// - /// - [JsonIgnore] - public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } -} - -/// -/// -/// Throttle an update by query operation. -/// -/// -/// Change the number of requests per second for a particular update by query operation. -/// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. -/// -/// -public sealed partial class UpdateByQueryRethrottleRequestDescriptor : RequestDescriptor -{ - internal UpdateByQueryRethrottleRequestDescriptor(Action configure) => configure.Invoke(this); - - public UpdateByQueryRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id taskId) : base(r => r.Required("task_id", taskId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQueryRethrottle; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => false; - - internal override string OperationName => "update_by_query_rethrottle"; - - public UpdateByQueryRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); - - public UpdateByQueryRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.Id taskId) - { - RouteValues.Required("task_id", taskId); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs deleted file mode 100644 index 14c964850d0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs +++ /dev/null @@ -1,33 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class UpdateByQueryRethrottleResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs deleted file mode 100644 index b1c84b42bce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateRequest.g.cs +++ /dev/null @@ -1,522 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -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 UpdateRequestParameters : RequestParameters -{ - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// The script language. - /// - /// - public string? Lang { get => Q("lang"); set => Q("lang", value); } - - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the destination must be an index alias. - /// - /// - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// Specify how many times should the operation be retried when a conflict occurs. - /// - /// - public int? RetryOnConflict { get => Q("retry_on_conflict"); set => Q("retry_on_conflict", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Specify the source fields you want to exclude. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// Specify the source fields you want to retrieve. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Period to wait for dynamic mapping updates and active shards. - /// This guarantees Elasticsearch waits for at least the timeout before failing. - /// The actual wait time could be longer, particularly when multiple waits occur. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operations. - /// Set to 'all' or any positive integer up to the total number of shards in the index - /// (number_of_replicas+1). Defaults to 1 meaning the primary shard. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } -} - -/// -/// -/// Update a document. -/// Updates a document by running a script or passing a partial document. -/// -/// -public sealed partial class UpdateRequest : PlainRequest -{ - public UpdateRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "update"; - - /// - /// - /// Only perform the operation if the document has this primary term. - /// - /// - [JsonIgnore] - public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } - - /// - /// - /// Only perform the operation if the document has this sequence number. - /// - /// - [JsonIgnore] - public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } - - /// - /// - /// The script language. - /// - /// - [JsonIgnore] - public string? Lang { get => Q("lang"); set => Q("lang", value); } - - /// - /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } - - /// - /// - /// If true, the destination must be an index alias. - /// - /// - [JsonIgnore] - public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } - - /// - /// - /// Specify how many times should the operation be retried when a conflict occurs. - /// - /// - [JsonIgnore] - public int? RetryOnConflict { get => Q("retry_on_conflict"); set => Q("retry_on_conflict", value); } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// Specify the source fields you want to exclude. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } - - /// - /// - /// Specify the source fields you want to retrieve. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } - - /// - /// - /// Period to wait for dynamic mapping updates and active shards. - /// This guarantees Elasticsearch waits for at least the timeout before failing. - /// The actual wait time could be longer, particularly when multiple waits occur. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operations. - /// Set to 'all' or any positive integer up to the total number of shards in the index - /// (number_of_replicas+1). Defaults to 1 meaning the primary shard. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// Set to false to disable setting 'result' in the response - /// to 'noop' if no change to the document occurred. - /// - /// - [JsonInclude, JsonPropertyName("detect_noop")] - public bool? DetectNoop { get; set; } - - /// - /// - /// A partial update to an existing document. - /// - /// - [JsonInclude, JsonPropertyName("doc")] - [SourceConverter] - public TPartialDocument? Doc { get; set; } - - /// - /// - /// Set to true to use the contents of 'doc' as the value of 'upsert' - /// - /// - [JsonInclude, JsonPropertyName("doc_as_upsert")] - public bool? DocAsUpsert { get; set; } - - /// - /// - /// Script to execute to update the document. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Set to true to execute the script whether or not the document exists. - /// - /// - [JsonInclude, JsonPropertyName("scripted_upsert")] - public bool? ScriptedUpsert { get; set; } - - /// - /// - /// Set to false to disable source retrieval. You can also specify a comma-separated - /// list of the fields you want to retrieve. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - - /// - /// - /// If the document does not already exist, the contents of 'upsert' are inserted as a - /// new document. If the document exists, the 'script' is executed. - /// - /// - [JsonInclude, JsonPropertyName("upsert")] - [SourceConverter] - public TDocument? Upsert { get; set; } -} - -/// -/// -/// Update a document. -/// Updates a document by running a script or passing a partial document. -/// -/// -public sealed partial class UpdateRequestDescriptor : RequestDescriptor, UpdateRequestParameters> -{ - internal UpdateRequestDescriptor(Action> configure) => configure.Invoke(this); - - public UpdateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) - { - } - - public UpdateRequestDescriptor(TDocument document) : this(typeof(TDocument), Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public UpdateRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.IndexName index) : this(index, Elastic.Clients.Elasticsearch.Serverless.Id.From(document)) - { - } - - public UpdateRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - public UpdateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : this(typeof(TDocument), id) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - - internal override bool SupportsBody => true; - - internal override string OperationName => "update"; - - public UpdateRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); - public UpdateRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); - public UpdateRequestDescriptor Lang(string? lang) => Qs("lang", lang); - public UpdateRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Serverless.Refresh? refresh) => Qs("refresh", refresh); - public UpdateRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); - public UpdateRequestDescriptor RetryOnConflict(int? retryOnConflict) => Qs("retry_on_conflict", retryOnConflict); - public UpdateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); - public UpdateRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); - public UpdateRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); - public UpdateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); - public UpdateRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); - - public UpdateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - RouteValues.Required("id", id); - return Self; - } - - public UpdateRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - RouteValues.Required("index", index); - return Self; - } - - private bool? DetectNoopValue { get; set; } - 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; } - - /// - /// - /// Set to false to disable setting 'result' in the response - /// to 'noop' if no change to the document occurred. - /// - /// - public UpdateRequestDescriptor DetectNoop(bool? detectNoop = true) - { - DetectNoopValue = detectNoop; - return Self; - } - - /// - /// - /// A partial update to an existing document. - /// - /// - public UpdateRequestDescriptor Doc(TPartialDocument? doc) - { - DocValue = doc; - return Self; - } - - /// - /// - /// Set to true to use the contents of 'doc' as the value of 'upsert' - /// - /// - public UpdateRequestDescriptor DocAsUpsert(bool? docAsUpsert = true) - { - DocAsUpsertValue = docAsUpsert; - return Self; - } - - /// - /// - /// Script to execute to update the document. - /// - /// - 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. - /// - /// - public UpdateRequestDescriptor ScriptedUpsert(bool? scriptedUpsert = true) - { - ScriptedUpsertValue = scriptedUpsert; - return Self; - } - - /// - /// - /// Set to false to disable source retrieval. You can also specify a comma-separated - /// list of the fields you want to retrieve. - /// - /// - public UpdateRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// If the document does not already exist, the contents of 'upsert' are inserted as a - /// new document. If the document exists, the 'script' is executed. - /// - /// - public UpdateRequestDescriptor Upsert(TDocument? upsert) - { - UpsertValue = upsert; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DetectNoopValue.HasValue) - { - writer.WritePropertyName("detect_noop"); - writer.WriteBooleanValue(DetectNoopValue.Value); - } - - if (DocValue is not null) - { - writer.WritePropertyName("doc"); - settings.SourceSerializer.Serialize(DocValue, writer); - } - - if (DocAsUpsertValue.HasValue) - { - writer.WritePropertyName("doc_as_upsert"); - writer.WriteBooleanValue(DocAsUpsertValue.Value); - } - - 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); - } - - if (ScriptedUpsertValue.HasValue) - { - writer.WritePropertyName("scripted_upsert"); - writer.WriteBooleanValue(ScriptedUpsertValue.Value); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (UpsertValue is not null) - { - writer.WritePropertyName("upsert"); - settings.SourceSerializer.Serialize(UpsertValue, writer); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateResponse.g.cs deleted file mode 100644 index d25c3fdaaf5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateResponse.g.cs +++ /dev/null @@ -1,49 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public sealed partial class UpdateResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("forced_refresh")] - public bool? ForcedRefresh { get; init; } - [JsonInclude, JsonPropertyName("get")] - public Elastic.Clients.Elasticsearch.Serverless.InlineGet? Get { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("result")] - public Elastic.Clients.Elasticsearch.Serverless.Result Result { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs deleted file mode 100644 index 397e22bf78c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ /dev/null @@ -1,145 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; - -public sealed partial class XpackInfoRequestParameters : RequestParameters -{ - /// - /// - /// If this param is used it must be set to true - /// - /// - public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } - - /// - /// - /// A comma-separated list of the information categories to include in the response. For example, build,license,features. - /// - /// - public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } -} - -/// -/// -/// Get information. -/// The information provided by the API includes: -/// -/// -/// -/// -/// Build information including the build number and timestamp. -/// -/// -/// -/// -/// License information about the currently installed license. -/// -/// -/// -/// -/// Feature information for the features that are currently enabled and available under the current license. -/// -/// -/// -/// -public sealed partial class XpackInfoRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.XpackInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "xpack.info"; - - /// - /// - /// If this param is used it must be set to true - /// - /// - [JsonIgnore] - public bool? AcceptEnterprise { get => Q("accept_enterprise"); set => Q("accept_enterprise", value); } - - /// - /// - /// A comma-separated list of the information categories to include in the response. For example, build,license,features. - /// - /// - [JsonIgnore] - public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } -} - -/// -/// -/// Get information. -/// The information provided by the API includes: -/// -/// -/// -/// -/// Build information including the build number and timestamp. -/// -/// -/// -/// -/// License information about the currently installed license. -/// -/// -/// -/// -/// Feature information for the features that are currently enabled and available under the current license. -/// -/// -/// -/// -public sealed partial class XpackInfoRequestDescriptor : RequestDescriptor -{ - internal XpackInfoRequestDescriptor(Action configure) => configure.Invoke(this); - - public XpackInfoRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.XpackInfo; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "xpack.info"; - - public XpackInfoRequestDescriptor AcceptEnterprise(bool? acceptEnterprise = true) => Qs("accept_enterprise", acceptEnterprise); - public XpackInfoRequestDescriptor Categories(ICollection? categories) => Qs("categories", categories); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoResponse.g.cs deleted file mode 100644 index a189fb4d492..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackInfoResponse.g.cs +++ /dev/null @@ -1,39 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; - -public sealed partial class XpackInfoResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("build")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.BuildInformation Build { get; init; } - [JsonInclude, JsonPropertyName("features")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Features Features { get; init; } - [JsonInclude, JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MinimalLicenseInformation License { get; init; } - [JsonInclude, JsonPropertyName("tagline")] - public string Tagline { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs deleted file mode 100644 index 5d80470c1ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ /dev/null @@ -1,97 +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.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using Elastic.Transport.Extensions; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; - -public sealed partial class XpackUsageRequestParameters : RequestParameters -{ - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get usage information. -/// Get information about the features that are currently enabled and available under the current license. -/// The API also provides some usage statistics. -/// -/// -public sealed partial class XpackUsageRequest : PlainRequest -{ - internal override ApiUrls ApiUrls => ApiUrlLookup.XpackUsage; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "xpack.usage"; - - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// -/// Get usage information. -/// Get information about the features that are currently enabled and available under the current license. -/// The API also provides some usage statistics. -/// -/// -public sealed partial class XpackUsageRequestDescriptor : RequestDescriptor -{ - internal XpackUsageRequestDescriptor(Action configure) => configure.Invoke(this); - - public XpackUsageRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.XpackUsage; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "xpack.usage"; - - public XpackUsageRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageResponse.g.cs deleted file mode 100644 index 37622ed3d43..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Xpack/XpackUsageResponse.g.cs +++ /dev/null @@ -1,89 +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 Elastic.Transport.Products.Elasticsearch; -using System; -using System.Collections.Generic; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; - -public sealed partial class XpackUsageResponse : ElasticsearchResponse -{ - [JsonInclude, JsonPropertyName("aggregate_metric")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base AggregateMetric { get; init; } - [JsonInclude, JsonPropertyName("analytics")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Analytics Analytics { get; init; } - [JsonInclude, JsonPropertyName("archive")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Archive Archive { get; init; } - [JsonInclude, JsonPropertyName("ccr")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Ccr Ccr { get; init; } - [JsonInclude, JsonPropertyName("data_frame")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base? DataFrame { get; init; } - [JsonInclude, JsonPropertyName("data_science")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base? DataScience { get; init; } - [JsonInclude, JsonPropertyName("data_streams")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataStreams? DataStreams { get; init; } - [JsonInclude, JsonPropertyName("data_tiers")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataTiers DataTiers { get; init; } - [JsonInclude, JsonPropertyName("enrich")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base? Enrich { get; init; } - [JsonInclude, JsonPropertyName("eql")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Eql Eql { get; init; } - [JsonInclude, JsonPropertyName("flattened")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Flattened? Flattened { get; init; } - [JsonInclude, JsonPropertyName("frozen_indices")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FrozenIndices FrozenIndices { get; init; } - [JsonInclude, JsonPropertyName("graph")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base Graph { get; init; } - [JsonInclude, JsonPropertyName("health_api")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.HealthStatistics? HealthApi { get; init; } - [JsonInclude, JsonPropertyName("ilm")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Ilm Ilm { get; init; } - [JsonInclude, JsonPropertyName("logstash")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base Logstash { get; init; } - [JsonInclude, JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MachineLearning Ml { get; init; } - [JsonInclude, JsonPropertyName("monitoring")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Monitoring Monitoring { get; init; } - [JsonInclude, JsonPropertyName("rollup")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base Rollup { get; init; } - [JsonInclude, JsonPropertyName("runtime_fields")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.RuntimeFieldTypes? RuntimeFields { get; init; } - [JsonInclude, JsonPropertyName("searchable_snapshots")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.SearchableSnapshots SearchableSnapshots { get; init; } - [JsonInclude, JsonPropertyName("security")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Security Security { get; init; } - [JsonInclude, JsonPropertyName("slm")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Slm Slm { get; init; } - [JsonInclude, JsonPropertyName("spatial")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base Spatial { get; init; } - [JsonInclude, JsonPropertyName("sql")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Sql Sql { get; init; } - [JsonInclude, JsonPropertyName("transform")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base Transform { get; init; } - [JsonInclude, JsonPropertyName("vectors")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Vector? Vectors { get; init; } - [JsonInclude, JsonPropertyName("voting_only")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base VotingOnly { get; init; } - [JsonInclude, JsonPropertyName("watcher")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Watcher Watcher { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs deleted file mode 100644 index 180d5e8e8ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ /dev/null @@ -1,489 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; - -public partial class AsyncSearchNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected AsyncSearchNamespacedClient() : base() - { - } - - internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async search. - /// - /// - /// If the asynchronous search is still running, it is cancelled. - /// Otherwise, the saved search results are deleted. - /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncSearchRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get async search results. - /// - /// - /// Retrieve the results of a previously submitted asynchronous search request. - /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, GetAsyncSearchRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Get async search results. - /// - /// - /// Retrieve the results of a previously submitted asynchronous search request. - /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async search results. - /// - /// - /// Retrieve the results of a previously submitted asynchronous search request. - /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncSearchRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async search results. - /// - /// - /// Retrieve the results of a previously submitted asynchronous search request. - /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncSearchRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async search status. - /// - /// - /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AsyncSearchStatusRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run an async search. - /// - /// - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. - /// - /// - /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. - /// - /// - /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, SubmitAsyncSearchRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Run an async search. - /// - /// - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. - /// - /// - /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. - /// - /// - /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run an async search. - /// - /// - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. - /// - /// - /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. - /// - /// - /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SubmitAsyncSearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run an async search. - /// - /// - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. - /// - /// - /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. - /// - /// - /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SubmitAsyncSearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run an async search. - /// - /// - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. - /// - /// - /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. - /// - /// - /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SubmitAsyncSearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run an async search. - /// - /// - /// When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested. - /// - /// - /// Warning: Asynchronous search does not support scroll or search requests that include only the suggest section. - /// - /// - /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. - /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SubmitAsyncSearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor, cancellationToken); - } -} \ No newline at end of file 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 deleted file mode 100644 index 6afbfcf0cf6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ /dev/null @@ -1,1063 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -public partial class ClusterNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected ClusterNamespacedClient() : base() - { - } - - internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Explain the shard allocations. - /// Get explanations for shard allocations in the cluster. - /// For unassigned shards, it provides an explanation for why the shard is unassigned. - /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. - /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Explain the shard allocations. - /// Get explanations for shard allocations in the cluster. - /// For unassigned shards, it provides an explanation for why the shard is unassigned. - /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. - /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain the shard allocations. - /// Get explanations for shard allocations in the cluster. - /// For unassigned shards, it provides an explanation for why the shard is unassigned. - /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. - /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) - { - var descriptor = new AllocationExplainRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain the shard allocations. - /// Get explanations for shard allocations in the cluster. - /// For unassigned shards, it provides an explanation for why the shard is unassigned. - /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. - /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AllocationExplainRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get component templates. - /// Retrieves information about component templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetComponentTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetComponentTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster-wide settings. - /// By default, it returns only settings that have been explicitly defined. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get cluster-wide settings. - /// By default, it returns only settings that have been explicitly defined. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster-wide settings. - /// By default, it returns only settings that have been explicitly defined. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetClusterSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster-wide settings. - /// By default, it returns only settings that have been explicitly defined. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetClusterSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health status. - /// You can also use the API to get the health status of only specified data streams and indices. - /// For data streams, the API retrieves the health status of the stream’s backing indices. - /// - /// - /// The cluster health status is: green, yellow or red. - /// On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated. - /// The index level status is controlled by the worst shard status. - /// - /// - /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. - /// The cluster status is controlled by the worst index status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HealthRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ClusterInfoRequestDescriptor(target); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ClusterInfoRequestDescriptor(target); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the pending cluster tasks. - /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. - /// - /// - /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. - /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the pending cluster tasks. - /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. - /// - /// - /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. - /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the pending cluster tasks. - /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. - /// - /// - /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. - /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PendingTasksRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the pending cluster tasks. - /// Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect. - /// - /// - /// NOTE: This API returns a list of any pending updates to the cluster state. - /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. - /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PendingTasksRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutComponentTemplateResponse, PutComponentTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutComponentTemplateResponse, PutComponentTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutComponentTemplateResponse, PutComponentTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutComponentTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// You can use C-style /* *\/ block comments in component templates. - /// You can include comments anywhere in the request body except before the opening curly bracket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutComponentTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster statistics. - /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get cluster statistics. - /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster statistics. - /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStatsRequestDescriptor(nodeId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster statistics. - /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStatsRequestDescriptor(nodeId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster statistics. - /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get cluster statistics. - /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClusterStatsRequestDescriptor(); - 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.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs deleted file mode 100644 index 263f7a4f19d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ /dev/null @@ -1,387 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -public partial class EnrichNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected EnrichNamespacedClient() : base() - { - } - - internal EnrichNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeletePolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeletePolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run an enrich policy. - /// Create the enrich index for an existing enrich policy. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Run an enrich policy. - /// Create the enrich index for an existing enrich policy. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run an enrich policy. - /// Create the enrich index for an existing enrich policy. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new ExecutePolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run an enrich policy. - /// Create the enrich index for an existing enrich policy. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExecutePolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetPolicyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetPolicyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutPolicyResponse, PutPolicyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutPolicyResponse, PutPolicyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutPolicyResponse, PutPolicyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutPolicyRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutPolicyRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new EnrichStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new EnrichStatsRequestDescriptor(); - 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.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs deleted file mode 100644 index 2e526151b69..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ /dev/null @@ -1,387 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -public partial class EqlNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected EqlNamespacedClient() : base() - { - } - - internal EqlNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(EqlDeleteRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new EqlDeleteRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EqlDeleteRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new EqlDeleteRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async EQL search. - /// Delete an async EQL search or a stored synchronous EQL search. - /// The API also deletes results for the search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EqlDeleteRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get async EQL search results. - /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, EqlGetRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Get async EQL search results. - /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async EQL search results. - /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new EqlGetRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async EQL search results. - /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EqlGetRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlGetResponse, EqlGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetEqlStatusRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetEqlStatusRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetEqlStatusRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async EQL status. - /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetEqlStatusRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get EQL search results. - /// Returns search results for an Event Query Language (EQL) query. - /// EQL assumes each document in a data stream or index corresponds to an event. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(EqlSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, EqlSearchRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Get EQL search results. - /// Returns search results for an Event Query Language (EQL) query. - /// EQL assumes each document in a data stream or index corresponds to an event. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(EqlSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get EQL search results. - /// Returns search results for an Event Query Language (EQL) query. - /// EQL assumes each document in a data stream or index corresponds to an event. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new EqlSearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get EQL search results. - /// Returns search results for an Event Query Language (EQL) query. - /// EQL assumes each document in a data stream or index corresponds to an event. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EqlSearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get EQL search results. - /// Returns search results for an Event Query Language (EQL) query. - /// EQL assumes each document in a data stream or index corresponds to an event. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EqlSearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get EQL search results. - /// Returns search results for an Event Query Language (EQL) query. - /// EQL assumes each document in a data stream or index corresponds to an event. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EqlSearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EqlSearchResponse, EqlSearchRequestParameters>(descriptor, cancellationToken); - } -} \ No newline at end of file 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 deleted file mode 100644 index 54b8f92f245..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ /dev/null @@ -1,138 +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 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) - { - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// 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); - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// 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); - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// 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); - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// 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); - } - - /// - /// - /// Run an ES|QL query. - /// Get search results for an ES|QL (Elasticsearch query language) query. - /// - /// 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.Graph.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs deleted file mode 100644 index d74eed54e18..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ /dev/null @@ -1,203 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Graph; - -public partial class GraphNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected GraphNamespacedClient() : base() - { - } - - internal GraphNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new ExploreRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExploreRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ExploreRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExploreRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new ExploreRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explore graph analytics. - /// Extract and summarize information about the documents and terms in an Elasticsearch data stream or index. - /// The easiest way to understand the behavior of this API is to use the Graph UI to explore connections. - /// An initial request to the _explore API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph. - /// Subsequent requests enable you to spider out from one more vertices of interest. - /// You can exclude vertices that have already been returned. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExploreRequestDescriptor(indices); - 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 deleted file mode 100644 index d4cd006316c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ /dev/null @@ -1,6081 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public partial class IndicesNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected IndicesNamespacedClient() : base() - { - } - - internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(AnalyzeIndexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, AnalyzeIndexResponse, AnalyzeIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, AnalyzeIndexResponse, AnalyzeIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, AnalyzeIndexResponse, AnalyzeIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, AnalyzeIndexResponse, AnalyzeIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, AnalyzeIndexResponse, AnalyzeIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AnalyzeIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(ClearCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ClearCacheResponse, ClearCacheRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the cache. - /// Clear the cache of one or more indices. - /// For data streams, the API clears the caches of the stream's backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCacheRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new CloseIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CloseIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CloseIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CloseIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new CloseIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Close an index. - /// A closed index is blocked for read or write operations and does not allow all operations that opened indices allow. - /// It is not possible to index documents or to search for documents in a closed index. - /// Closed indices do not have to maintain internal data structures for indexing or searching documents, which results in a smaller overhead on the cluster. - /// - /// - /// When opening or closing an index, the master node is responsible for restarting the index shards to reflect the new state of the index. - /// The shards will then go through the normal recovery process. - /// The data of opened and closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. - /// - /// - /// You can open and close multiple indices. - /// An error is thrown if the request explicitly refers to a missing index. - /// This behaviour can be turned off using the ignore_unavailable=true parameter. - /// - /// - /// By default, you must explicitly name the indices you are opening or closing. - /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. This setting can also be changed with the cluster update settings API. - /// - /// - /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. - /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CloseIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateIndexRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateIndexRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create an index. - /// Creates a new index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CreateIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateIndexRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateIndexRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateDataStreamRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateDataStreamRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DataStreamsStatsRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DataStreamsStatsRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DataStreamsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DataStreamsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete indices. - /// Deletes one or more indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteAliasRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteAliasRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteDataLifecycleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteDataLifecycleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteDataStreamRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteDataStreamRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an index template. - /// The provided <index-template> may contain multiple template names separated by a comma. If multiple template - /// names are specified then there is no wildcard support and the provided names should match completely with - /// existing templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete an index template. - /// The provided <index-template> may contain multiple template names separated by a comma. If multiple template - /// names are specified then there is no wildcard support and the provided names should match completely with - /// existing templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an index template. - /// The provided <index-template> may contain multiple template names separated by a comma. If multiple template - /// names are specified then there is no wildcard support and the provided names should match completely with - /// existing templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIndexTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an index template. - /// The provided <index-template> may contain multiple template names separated by a comma. If multiple template - /// names are specified then there is no wildcard support and the provided names should match completely with - /// existing templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIndexTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsAliasRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check index templates. - /// Check whether index templates exist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsIndexTemplateAsync(ExistsIndexTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Check index templates. - /// Check whether index templates exist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsIndexTemplateAsync(ExistsIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check index templates. - /// Check whether index templates exist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsIndexTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check index templates. - /// Check whether index templates exist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsIndexTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - var descriptor = new ExplainDataLifecycleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - var descriptor = new ExplainDataLifecycleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the status for a data stream lifecycle. - /// Get 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) - { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Flush data streams or indices. - /// Flushing a data stream or index is the process of making sure that any data that is currently only stored in the transaction log is also permanently stored in the Lucene index. - /// When restarting, Elasticsearch replays any unflushed operations from the transaction log into the Lucene index to bring it back into the state that it was in before the restart. - /// Elasticsearch automatically triggers flushes as needed, using heuristics that trade off the size of the unflushed transaction log against the cost of performing each flush. - /// - /// - /// After each operation has been flushed it is permanently stored in the Lucene index. - /// This may mean that there is no need to maintain an additional copy of it in the transaction log. - /// The transaction log is made up of multiple files, called generations, and Elasticsearch will delete any generation files when they are no longer needed, freeing up disk space. - /// - /// - /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. - /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FlushRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(ForcemergeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. - /// - /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. - /// - /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetAliasRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetDataLifecycleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetDataLifecycleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetDataStreamRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetDataStreamRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetDataStreamRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetDataStreamRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index templates. - /// Returns information about one or more index templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get index templates. - /// Returns information about one or more index templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index templates. - /// Returns information about one or more index templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) - { - var descriptor = new GetIndexTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index templates. - /// Returns information about one or more index templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetIndexTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index templates. - /// Returns information about one or more index templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIndexTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetIndexTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index templates. - /// Returns information about one or more index templates. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIndexTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetIndexTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIndicesSettingsResponse, GetIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetIndicesSettingsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new MigrateToDataStreamRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new MigrateToDataStreamRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ModifyDataStreamRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ModifyDataStreamRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(OpenIndexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new OpenIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(CancellationToken cancellationToken = default) - { - var descriptor = new OpenIndexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenIndexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new OpenIndexRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenIndexRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutAliasRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutAliasRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutAliasRequestDescriptor(indices, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutAliasRequestDescriptor(indices, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) - { - var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndexTemplateResponse, PutIndexTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutIndexTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndexTemplateResponse, PutIndexTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutIndexTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndexTemplateResponse, PutIndexTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutIndexTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutIndexTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutMappingRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutMappingRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutMappingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutMappingRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutMappingRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndicesSettingsResponse, PutIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings, indices); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndicesSettingsResponse, PutIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings, indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndicesSettingsResponse, PutIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndicesSettingsResponse, PutIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIndicesSettingsResponse, PutIndicesSettingsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings, indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings, indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutIndicesSettingsRequestDescriptor(settings); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(RecoveryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RecoveryResponse, RecoveryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index recovery information. - /// Get information about ongoing and completed shard recoveries for one or more indices. - /// For data streams, the API returns information for the stream's backing indices. - /// - /// - /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. - /// When a shard recovery completes, the recovered shard is available for search and indexing. - /// - /// - /// Recovery automatically occurs during the following processes: - /// - /// - /// - /// - /// When creating an index for the first time. - /// - /// - /// - /// - /// When a node rejoins the cluster and starts up any missing primary shard copies using the data that it holds in its data path. - /// - /// - /// - /// - /// Creation of new replica shard copies from the primary. - /// - /// - /// - /// - /// Relocation of a shard copy to a different node in the same cluster. - /// - /// - /// - /// - /// A snapshot restore operation. - /// - /// - /// - /// - /// A clone, shrink, or split operation. - /// - /// - /// - /// - /// You can determine the cause of a shard recovery using the recovery or cat recovery APIs. - /// - /// - /// The index recovery API reports information about completed recoveries only for shard copies that currently exist in the cluster. - /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. - /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RecoveryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RefreshRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Resolve indices. - /// Resolve the names and/or index patterns for indices, aliases, and data streams. - /// Multiple patterns and remote clusters are supported. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResolveIndexAsync(ResolveIndexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Resolve indices. - /// Resolve the names and/or index patterns for indices, aliases, and data streams. - /// Multiple patterns and remote clusters are supported. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResolveIndexAsync(ResolveIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Resolve indices. - /// Resolve the names and/or index patterns for indices, aliases, and data streams. - /// Multiple patterns and remote clusters are supported. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new ResolveIndexRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Resolve indices. - /// Resolve the names and/or index patterns for indices, aliases, and data streams. - /// Multiple patterns and remote clusters are supported. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ResolveIndexRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RolloverResponse, RolloverRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias, newIndex); - descriptor.BeforeRequest(); - return DoRequestAsync, RolloverResponse, RolloverRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias, newIndex); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RolloverResponse, RolloverRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias); - descriptor.BeforeRequest(); - return DoRequestAsync, RolloverResponse, RolloverRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RolloverResponse, RolloverRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias, newIndex); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias, newIndex); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new RolloverRequestDescriptor(alias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(SegmentsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SegmentsResponse, SegmentsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index segments. - /// Get low-level information about the Lucene segments in index shards. - /// 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 SegmentsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SegmentsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateIndexTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateIndexTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(SimulateTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateTemplateResponse, SimulateTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateTemplateResponse, SimulateTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateTemplateResponse, SimulateTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateTemplateResponse, SimulateTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateTemplateResponse, SimulateTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(IndicesStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(indices, metric); - descriptor.BeforeRequest(); - return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(indices, metric); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(indices, metric); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(indices, metric); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get index statistics. - /// For data streams, the API retrieves statistics for the stream's backing indices. - /// - /// - /// By default, the returned statistics are index-level with primaries and total aggregations. - /// primaries are the values for only the primary shards. - /// total are the accumulated values for both primary and replica shards. - /// - /// - /// To get shard-level statistics, set the level parameter to shards. - /// - /// - /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. - /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new IndicesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateAliasesResponse, UpdateAliasesRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateAliasesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateAliasesResponse, UpdateAliasesRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateAliasesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateAliasesResponse, UpdateAliasesRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateAliasesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateAliasesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateQueryResponse, ValidateQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateQueryResponse, ValidateQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateQueryResponse, ValidateQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateQueryResponse, ValidateQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateQueryResponse, ValidateQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ValidateQueryRequestDescriptor(); - 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.Inference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs deleted file mode 100644 index 3699a793e74..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ /dev/null @@ -1,413 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -public partial class InferenceNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected InferenceNamespacedClient() : base() - { - } - - internal InferenceNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteInferenceRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteInferenceRequestDescriptor(taskType, inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteInferenceRequestDescriptor(taskType, inferenceId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteInferenceRequestDescriptor(inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteInferenceRequestDescriptor(inferenceId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(GetInferenceRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(GetInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new GetInferenceRequestDescriptor(taskType, inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id? inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetInferenceRequestDescriptor(taskType, inferenceId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetInferenceRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get an inference endpoint - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetInferenceRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Perform inference on the service - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferenceAsync(InferenceRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Perform inference on the service - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferenceAsync(InferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Perform inference on the service - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new InferenceRequestDescriptor(taskType, inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Perform inference on the service - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new InferenceRequestDescriptor(taskType, inferenceId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Perform inference on the service - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new InferenceRequestDescriptor(inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Perform inference on the service - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new InferenceRequestDescriptor(inferenceId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// - /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. - /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. - /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutAsync(PutInferenceRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// - /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. - /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. - /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutAsync(PutInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// - /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. - /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. - /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// - /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. - /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. - /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// - /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. - /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. - /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, CancellationToken cancellationToken = default) - { - var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, inferenceId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// - /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. - /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. - /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Serverless.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Serverless.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutInferenceRequestDescriptor(inferenceConfig, inferenceId); - 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.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs deleted file mode 100644 index 31b8355f352..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ /dev/null @@ -1,1358 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -public partial class IngestNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected IngestNamespacedClient() : base() - { - } - - internal IngestNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteGeoipDatabaseResponse, DeleteGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteGeoipDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteGeoipDatabaseResponse, DeleteGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteGeoipDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteGeoipDatabaseResponse, DeleteGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteGeoipDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete GeoIP database configurations. - /// Delete one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteGeoipDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteIpLocationDatabaseResponse, DeleteIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteIpLocationDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(DeletePipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeletePipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeletePipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete pipelines. - /// Delete one or more ingest pipelines. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeletePipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP statistics. - /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get GeoIP statistics. - /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP statistics. - /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GeoIpStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP statistics. - /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GeoIpStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetGeoipDatabaseResponse, GetGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetGeoipDatabaseResponse, GetGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetGeoipDatabaseResponse, GetGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetGeoipDatabaseResponse, GetGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetGeoipDatabaseResponse, GetGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get GeoIP database configurations. - /// Get information about one or more IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetGeoipDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetGeoipDatabaseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetIpLocationDatabaseResponse, GetIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get IP geolocation database configurations. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetIpLocationDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetIpLocationDatabaseRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(GetPipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get pipelines. - /// Get information about one or more ingest pipelines. - /// This API returns a local reference of the pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPipelineAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetPipelineRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a grok processor. - /// Extract structured fields out of a single text field within a document. - /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. - /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Run a grok processor. - /// Extract structured fields out of a single text field within a document. - /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. - /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a grok processor. - /// Extract structured fields out of a single text field within a document. - /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. - /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ProcessorGrokRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a grok processor. - /// Extract structured fields out of a single text field within a document. - /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. - /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ProcessorGrokRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutGeoipDatabaseResponse, PutGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutGeoipDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, PutGeoipDatabaseResponse, PutGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutGeoipDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutGeoipDatabaseResponse, PutGeoipDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutGeoipDatabaseRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a GeoIP database configuration. - /// Refer to the create or update IP geolocation database configuration API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutGeoipDatabaseRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutIpLocationDatabaseResponse, PutIpLocationDatabaseRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update an IP geolocation database configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutIpLocationDatabaseRequestDescriptor(configuration, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutPipelineResponse, PutPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, PutPipelineResponse, PutPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutPipelineResponse, PutPipelineRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutPipelineRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a pipeline. - /// Changes made using this API take effect immediately. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutPipelineRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(SimulateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(SimulateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateResponse, SimulateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateResponse, SimulateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateResponse, SimulateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateResponse, SimulateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SimulateResponse, SimulateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(SimulateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Simulate a pipeline. - /// Run an ingest pipeline against a set of provided documents. - /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SimulateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SimulateRequestDescriptor(); - 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.License.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs deleted file mode 100644 index faf42c4af08..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs +++ /dev/null @@ -1,112 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.LicenseManagement; - -public partial class LicenseManagementNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected LicenseManagementNamespacedClient() : base() - { - } - - internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Get license information. - /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. - /// - /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. - /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(GetLicenseRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get license information. - /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. - /// - /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. - /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(GetLicenseRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get license information. - /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. - /// - /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. - /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetLicenseRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get license information. - /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. - /// - /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. - /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetLicenseRequestDescriptor(); - 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.Ml.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs deleted file mode 100644 index f01ac29e9c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ /dev/null @@ -1,6454 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -public partial class MachineLearningNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected MachineLearningNamespacedClient() : base() - { - } - - internal MachineLearningNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Clear trained model deployment cache. - /// Cache will be cleared on all nodes where the trained model is assigned. - /// A trained model deployment may have an inference cache enabled. - /// As requests are handled by each allocated node, their responses may be cached on that individual node. - /// Calling this API clears the caches without restarting the deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearTrainedModelDeploymentCacheAsync(ClearTrainedModelDeploymentCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear trained model deployment cache. - /// Cache will be cleared on all nodes where the trained model is assigned. - /// A trained model deployment may have an inference cache enabled. - /// As requests are handled by each allocated node, their responses may be cached on that individual node. - /// Calling this API clears the caches without restarting the deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearTrainedModelDeploymentCacheAsync(ClearTrainedModelDeploymentCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear trained model deployment cache. - /// Cache will be cleared on all nodes where the trained model is assigned. - /// A trained model deployment may have an inference cache enabled. - /// As requests are handled by each allocated node, their responses may be cached on that individual node. - /// Calling this API clears the caches without restarting the deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearTrainedModelDeploymentCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new ClearTrainedModelDeploymentCacheRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear trained model deployment cache. - /// Cache will be cleared on all nodes where the trained model is assigned. - /// A trained model deployment may have an inference cache enabled. - /// As requests are handled by each allocated node, their responses may be cached on that individual node. - /// Calling this API clears the caches without restarting the deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearTrainedModelDeploymentCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearTrainedModelDeploymentCacheRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CloseJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CloseJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarAsync(DeleteCalendarRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarAsync(DeleteCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteCalendarRequestDescriptor(calendarId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteCalendarRequestDescriptor(calendarId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete events from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete events from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete events from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteCalendarEventRequestDescriptor(calendarId, eventId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete events from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Id eventId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteCalendarEventRequestDescriptor(calendarId, eventId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete anomaly jobs from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete anomaly jobs from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete anomaly jobs from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteCalendarJobRequestDescriptor(calendarId, jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete anomaly jobs from a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteCalendarJobRequestDescriptor(calendarId, jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a datafeed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a datafeed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a datafeed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a datafeed. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteDataFrameAnalyticsResponse, DeleteDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded - /// their retention days period. Machine learning state documents that are not - /// associated with any job are also deleted. - /// You can limit the request to a single or set of anomaly detection jobs by - /// using a job identifier, a group name, a comma-separated list of jobs, or a - /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteExpiredDataAsync(DeleteExpiredDataRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded - /// their retention days period. Machine learning state documents that are not - /// associated with any job are also deleted. - /// You can limit the request to a single or set of anomaly detection jobs by - /// using a job identifier, a group name, a comma-separated list of jobs, or a - /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteExpiredDataAsync(DeleteExpiredDataRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded - /// their retention days period. Machine learning state documents that are not - /// associated with any job are also deleted. - /// You can limit the request to a single or set of anomaly detection jobs by - /// using a job identifier, a group name, a comma-separated list of jobs, or a - /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteExpiredDataAsync(Elastic.Clients.Elasticsearch.Serverless.Id? jobId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteExpiredDataRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded - /// their retention days period. Machine learning state documents that are not - /// associated with any job are also deleted. - /// You can limit the request to a single or set of anomaly detection jobs by - /// using a job identifier, a group name, a comma-separated list of jobs, or a - /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteExpiredDataAsync(Elastic.Clients.Elasticsearch.Serverless.Id? jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteExpiredDataRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded - /// their retention days period. Machine learning state documents that are not - /// associated with any job are also deleted. - /// You can limit the request to a single or set of anomaly detection jobs by - /// using a job identifier, a group name, a comma-separated list of jobs, or a - /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteExpiredDataAsync(CancellationToken cancellationToken = default) - { - var descriptor = new DeleteExpiredDataRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded - /// their retention days period. Machine learning state documents that are not - /// associated with any job are also deleted. - /// You can limit the request to a single or set of anomaly detection jobs by - /// using a job identifier, a group name, a comma-separated list of jobs, or a - /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteExpiredDataAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteExpiredDataRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a filter. - /// If an anomaly detection job references the filter, you cannot delete the - /// filter. You must update or delete the job before you can delete the filter. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteFilterAsync(DeleteFilterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a filter. - /// If an anomaly detection job references the filter, you cannot delete the - /// filter. You must update or delete the job before you can delete the filter. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteFilterAsync(DeleteFilterRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a filter. - /// If an anomaly detection job references the filter, you cannot delete the - /// filter. You must update or delete the job before you can delete the filter. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteFilterAsync(Elastic.Clients.Elasticsearch.Serverless.Id filterId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteFilterRequestDescriptor(filterId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a filter. - /// If an anomaly detection job references the filter, you cannot delete the - /// filter. You must update or delete the job before you can delete the filter. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteFilterAsync(Elastic.Clients.Elasticsearch.Serverless.Id filterId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteFilterRequestDescriptor(filterId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete forecasts from a job. - /// By default, forecasts are retained for 14 days. You can specify a - /// different retention period with the expires_in parameter in the forecast - /// jobs API. The delete forecast API enables you to delete one or more - /// forecasts before they expire. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteForecastAsync(DeleteForecastRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete forecasts from a job. - /// By default, forecasts are retained for 14 days. You can specify a - /// different retention period with the expires_in parameter in the forecast - /// jobs API. The delete forecast API enables you to delete one or more - /// forecasts before they expire. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteForecastAsync(DeleteForecastRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete forecasts from a job. - /// By default, forecasts are retained for 14 days. You can specify a - /// different retention period with the expires_in parameter in the forecast - /// jobs API. The delete forecast API enables you to delete one or more - /// forecasts before they expire. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? forecastId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteForecastRequestDescriptor(jobId, forecastId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete forecasts from a job. - /// By default, forecasts are retained for 14 days. You can specify a - /// different retention period with the expires_in parameter in the forecast - /// jobs API. The delete forecast API enables you to delete one or more - /// forecasts before they expire. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? forecastId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteForecastRequestDescriptor(jobId, forecastId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete forecasts from a job. - /// By default, forecasts are retained for 14 days. You can specify a - /// different retention period with the expires_in parameter in the forecast - /// jobs API. The delete forecast API enables you to delete one or more - /// forecasts before they expire. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteForecastRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete forecasts from a job. - /// By default, forecasts are retained for 14 days. You can specify a - /// different retention period with the expires_in parameter in the forecast - /// jobs API. The delete forecast API enables you to delete one or more - /// forecasts before they expire. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteForecastRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a model snapshot. - /// You cannot delete the active model snapshot. To delete that snapshot, first - /// revert to a different one. To identify the active model snapshot, refer to - /// the model_snapshot_id in the results from the get jobs API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteModelSnapshotAsync(DeleteModelSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a model snapshot. - /// You cannot delete the active model snapshot. To delete that snapshot, first - /// revert to a different one. To identify the active model snapshot, refer to - /// the model_snapshot_id in the results from the get jobs API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteModelSnapshotAsync(DeleteModelSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a model snapshot. - /// You cannot delete the active model snapshot. To delete that snapshot, first - /// revert to a different one. To identify the active model snapshot, refer to - /// the model_snapshot_id in the results from the get jobs API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteModelSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteModelSnapshotRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a model snapshot. - /// You cannot delete the active model snapshot. To delete that snapshot, first - /// revert to a different one. To identify the active model snapshot, refer to - /// the model_snapshot_id in the results from the get jobs API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteModelSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteModelSnapshotRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an unreferenced trained model. - /// The request deletes a trained inference model that is not referenced by an ingest pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAsync(DeleteTrainedModelRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete an unreferenced trained model. - /// The request deletes a trained inference model that is not referenced by an ingest pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAsync(DeleteTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an unreferenced trained model. - /// The request deletes a trained inference model that is not referenced by an ingest pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteTrainedModelRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an unreferenced trained model. - /// The request deletes a trained inference model that is not referenced by an ingest pipeline. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteTrainedModelRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a trained model alias. - /// This API deletes an existing model alias that refers to a trained model. If - /// the model alias is missing or refers to a model other than the one identified - /// by the model_id, this API returns an error. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAliasAsync(DeleteTrainedModelAliasRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a trained model alias. - /// This API deletes an existing model alias that refers to a trained model. If - /// the model alias is missing or refers to a model other than the one identified - /// by the model_id, this API returns an error. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAliasAsync(DeleteTrainedModelAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a trained model alias. - /// This API deletes an existing model alias that refers to a trained model. If - /// the model alias is missing or refers to a model other than the one identified - /// by the model_id, this API returns an error. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteTrainedModelAliasRequestDescriptor(modelId, modelAlias); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a trained model alias. - /// This API deletes an existing model alias that refers to a trained model. If - /// the model alias is missing or refers to a model other than the one identified - /// by the model_id, this API returns an error. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteTrainedModelAliasRequestDescriptor(modelId, modelAlias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(EstimateModelMemoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(EstimateModelMemoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, EstimateModelMemoryResponse, EstimateModelMemoryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EstimateModelMemoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, EstimateModelMemoryResponse, EstimateModelMemoryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EstimateModelMemoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EstimateModelMemoryResponse, EstimateModelMemoryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(EstimateModelMemoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EstimateModelMemoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality - /// estimates for the fields it references. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EstimateModelMemoryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EstimateModelMemoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(EvaluateDataFrameRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(EvaluateDataFrameRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, EvaluateDataFrameResponse, EvaluateDataFrameRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EvaluateDataFrameRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, EvaluateDataFrameResponse, EvaluateDataFrameRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EvaluateDataFrameRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, EvaluateDataFrameResponse, EvaluateDataFrameRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(EvaluateDataFrameRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(CancellationToken cancellationToken = default) - { - var descriptor = new EvaluateDataFrameRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate data frame analytics. - /// The API packages together commonly used evaluation metrics for various types - /// of machine learning features. This has been designed for use on indexes - /// created by data frame analytics. Evaluation requires both a ground truth - /// field and an analytics result field to be present. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EvaluateDataFrameAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EvaluateDataFrameRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataFrameAnalyticsResponse, ExplainDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataFrameAnalyticsResponse, ExplainDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataFrameAnalyticsResponse, ExplainDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataFrameAnalyticsResponse, ExplainDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataFrameAnalyticsResponse, ExplainDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Explain data frame analytics config. - /// This API provides explanations for a data frame analytics config that either - /// exists already or one that has not been created yet. The following - /// explanations are provided: - /// - /// - /// - /// - /// which fields are included or not in the analysis and why, - /// - /// - /// - /// - /// how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on. - /// If you have object fields or fields that are excluded via source filtering, they are not included in the explanation. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExplainDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force buffered data to be processed. - /// The flush jobs API is only applicable when sending data for analysis using - /// the post data API. Depending on the content of the buffer, then it might - /// additionally calculate new results. Both flush and close operations are - /// similar, however the flush is more efficient if you are expecting to send - /// more data for analysis. When flushing, the job remains open and is available - /// to continue analyzing data. A close operation additionally prunes and - /// persists the model state to disk and the job must be opened again before - /// analyzing further data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushJobAsync(FlushJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Force buffered data to be processed. - /// The flush jobs API is only applicable when sending data for analysis using - /// the post data API. Depending on the content of the buffer, then it might - /// additionally calculate new results. Both flush and close operations are - /// similar, however the flush is more efficient if you are expecting to send - /// more data for analysis. When flushing, the job remains open and is available - /// to continue analyzing data. A close operation additionally prunes and - /// persists the model state to disk and the job must be opened again before - /// analyzing further data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushJobAsync(FlushJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force buffered data to be processed. - /// The flush jobs API is only applicable when sending data for analysis using - /// the post data API. Depending on the content of the buffer, then it might - /// additionally calculate new results. Both flush and close operations are - /// similar, however the flush is more efficient if you are expecting to send - /// more data for analysis. When flushing, the job remains open and is available - /// to continue analyzing data. A close operation additionally prunes and - /// persists the model state to disk and the job must be opened again before - /// analyzing further data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new FlushJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Force buffered data to be processed. - /// The flush jobs API is only applicable when sending data for analysis using - /// the post data API. Depending on the content of the buffer, then it might - /// additionally calculate new results. Both flush and close operations are - /// similar, however the flush is more efficient if you are expecting to send - /// more data for analysis. When flushing, the job remains open and is available - /// to continue analyzing data. A close operation additionally prunes and - /// persists the model state to disk and the job must be opened again before - /// analyzing further data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FlushJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Predict future behavior of a time series. - /// - /// - /// Forecasts are not supported for jobs that perform population analysis; an - /// error occurs if you try to create a forecast for a job that has an - /// over_field_name in its configuration. Forcasts predict future behavior - /// based on historical data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForecastAsync(ForecastRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Predict future behavior of a time series. - /// - /// - /// Forecasts are not supported for jobs that perform population analysis; an - /// error occurs if you try to create a forecast for a job that has an - /// over_field_name in its configuration. Forcasts predict future behavior - /// based on historical data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForecastAsync(ForecastRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Predict future behavior of a time series. - /// - /// - /// Forecasts are not supported for jobs that perform population analysis; an - /// error occurs if you try to create a forecast for a job that has an - /// over_field_name in its configuration. Forcasts predict future behavior - /// based on historical data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForecastAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new ForecastRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Predict future behavior of a time series. - /// - /// - /// Forecasts are not supported for jobs that perform population analysis; an - /// error occurs if you try to create a forecast for a job that has an - /// over_field_name in its configuration. Forcasts predict future behavior - /// based on historical data. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ForecastAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ForecastRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(GetBucketsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(GetBucketsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetBucketsResponse, GetBucketsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId, timestamp); - descriptor.BeforeRequest(); - return DoRequestAsync, GetBucketsResponse, GetBucketsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId, timestamp); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetBucketsResponse, GetBucketsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, GetBucketsResponse, GetBucketsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetBucketsResponse, GetBucketsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(GetBucketsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId, timestamp); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, DateTimeOffset? timestamp, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId, timestamp); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for buckets. - /// The API presents a chronological view of the records, grouped by bucket. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetBucketsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get info about events in calendars. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarEventsAsync(GetCalendarEventsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get info about events in calendars. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarEventsAsync(GetCalendarEventsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get info about events in calendars. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarEventsAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, CancellationToken cancellationToken = default) - { - var descriptor = new GetCalendarEventsRequestDescriptor(calendarId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get info about events in calendars. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarEventsAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetCalendarEventsRequestDescriptor(calendarId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get calendar configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarsAsync(GetCalendarsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get calendar configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarsAsync(GetCalendarsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get calendar configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? calendarId, CancellationToken cancellationToken = default) - { - var descriptor = new GetCalendarsRequestDescriptor(calendarId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get calendar configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? calendarId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetCalendarsRequestDescriptor(calendarId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get calendar configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetCalendarsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get calendar configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCalendarsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetCalendarsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for categories. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCategoriesAsync(GetCategoriesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for categories. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCategoriesAsync(GetCategoriesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for categories. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, string? categoryId, CancellationToken cancellationToken = default) - { - var descriptor = new GetCategoriesRequestDescriptor(jobId, categoryId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for categories. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, string? categoryId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetCategoriesRequestDescriptor(jobId, categoryId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for categories. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetCategoriesRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for categories. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetCategoriesRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds configuration info. - /// You can get information for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get information for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedsAsync(GetDatafeedsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get datafeeds configuration info. - /// You can get information for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get information for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedsAsync(GetDatafeedsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds configuration info. - /// You can get information for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get information for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedsRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds configuration info. - /// You can get information for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get information for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedsRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds configuration info. - /// You can get information for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get information for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds configuration info. - /// You can get information for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get information for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds usage info. - /// You can get statistics for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get statistics for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the - /// only information you receive is the datafeed_id and the state. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedStatsAsync(GetDatafeedStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get datafeeds usage info. - /// You can get statistics for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get statistics for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the - /// only information you receive is the datafeed_id and the state. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedStatsAsync(GetDatafeedStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds usage info. - /// You can get statistics for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get statistics for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the - /// only information you receive is the datafeed_id and the state. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedStatsRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds usage info. - /// You can get statistics for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get statistics for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the - /// only information you receive is the datafeed_id and the state. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedStatsRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds usage info. - /// You can get statistics for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get statistics for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the - /// only information you receive is the datafeed_id and the state. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get datafeeds usage info. - /// You can get statistics for multiple datafeeds in a single API request by - /// using a comma-separated list of datafeeds or a wildcard expression. You can - /// get statistics for all datafeeds by using _all, by specifying * as the - /// <feed_id>, or by omitting the <feed_id>. If the datafeed is stopped, the - /// only information you receive is the datafeed_id and the state. - /// This API returns a maximum of 10,000 datafeeds. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDatafeedStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDatafeedStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsResponse, GetDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics job configuration info. - /// You can get information for multiple data frame analytics jobs in a single - /// API request by using a comma-separated list of data frame analytics jobs or a - /// wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetDataFrameAnalyticsStatsResponse, GetDataFrameAnalyticsStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get data frame analytics jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetDataFrameAnalyticsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetDataFrameAnalyticsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get filters. - /// You can get a single filter or all filters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetFiltersAsync(GetFiltersRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get filters. - /// You can get a single filter or all filters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetFiltersAsync(GetFiltersRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get filters. - /// You can get a single filter or all filters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetFiltersAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? filterId, CancellationToken cancellationToken = default) - { - var descriptor = new GetFiltersRequestDescriptor(filterId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get filters. - /// You can get a single filter or all filters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetFiltersAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? filterId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetFiltersRequestDescriptor(filterId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get filters. - /// You can get a single filter or all filters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetFiltersAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetFiltersRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get filters. - /// You can get a single filter or all filters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetFiltersAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetFiltersRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(GetInfluencersRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(GetInfluencersRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetInfluencersResponse, GetInfluencersRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetInfluencersRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, GetInfluencersResponse, GetInfluencersRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetInfluencersRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetInfluencersResponse, GetInfluencersRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(GetInfluencersRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetInfluencersRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job results for influencers. - /// Influencers are the entities that have contributed to, or are to blame for, - /// the anomalies. Influencer results are available only if an - /// influencer_field_name is specified in the job configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetInfluencersRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs configuration info. - /// You can get information for multiple anomaly detection jobs in a single API - /// request by using a group name, a comma-separated list of jobs, or a wildcard - /// expression. You can get information for all anomaly detection jobs by using - /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobsAsync(GetJobsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs configuration info. - /// You can get information for multiple anomaly detection jobs in a single API - /// request by using a group name, a comma-separated list of jobs, or a wildcard - /// expression. You can get information for all anomaly detection jobs by using - /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs configuration info. - /// You can get information for multiple anomaly detection jobs in a single API - /// request by using a group name, a comma-separated list of jobs, or a wildcard - /// expression. You can get information for all anomaly detection jobs by using - /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetJobsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs configuration info. - /// You can get information for multiple anomaly detection jobs in a single API - /// request by using a group name, a comma-separated list of jobs, or a wildcard - /// expression. You can get information for all anomaly detection jobs by using - /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetJobsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs configuration info. - /// You can get information for multiple anomaly detection jobs in a single API - /// request by using a group name, a comma-separated list of jobs, or a wildcard - /// expression. You can get information for all anomaly detection jobs by using - /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetJobsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs configuration info. - /// You can get information for multiple anomaly detection jobs in a single API - /// request by using a group name, a comma-separated list of jobs, or a wildcard - /// expression. You can get information for all anomaly detection jobs by using - /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetJobsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobStatsAsync(GetJobStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobStatsAsync(GetJobStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetJobStatsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetJobStatsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetJobStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection jobs usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetJobStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetJobStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning memory usage info. - /// Get information about how machine learning jobs and trained models are using memory, - /// on each node, both within the JVM heap, and natively, outside of the JVM. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetMemoryStatsAsync(GetMemoryStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get machine learning memory usage info. - /// Get information about how machine learning jobs and trained models are using memory, - /// on each node, both within the JVM heap, and natively, outside of the JVM. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetMemoryStatsAsync(GetMemoryStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning memory usage info. - /// Get information about how machine learning jobs and trained models are using memory, - /// on each node, both within the JVM heap, and natively, outside of the JVM. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetMemoryStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? nodeId, CancellationToken cancellationToken = default) - { - var descriptor = new GetMemoryStatsRequestDescriptor(nodeId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning memory usage info. - /// Get information about how machine learning jobs and trained models are using memory, - /// on each node, both within the JVM heap, and natively, outside of the JVM. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetMemoryStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? nodeId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetMemoryStatsRequestDescriptor(nodeId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning memory usage info. - /// Get information about how machine learning jobs and trained models are using memory, - /// on each node, both within the JVM heap, and natively, outside of the JVM. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetMemoryStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetMemoryStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning memory usage info. - /// Get information about how machine learning jobs and trained models are using memory, - /// on each node, both within the JVM heap, and natively, outside of the JVM. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetMemoryStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetMemoryStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(GetModelSnapshotsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(GetModelSnapshotsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetModelSnapshotsResponse, GetModelSnapshotsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync, GetModelSnapshotsResponse, GetModelSnapshotsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetModelSnapshotsResponse, GetModelSnapshotsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, GetModelSnapshotsResponse, GetModelSnapshotsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetModelSnapshotsResponse, GetModelSnapshotsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(GetModelSnapshotsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id? snapshotId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get model snapshots info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job model snapshot upgrade usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotUpgradeStatsAsync(GetModelSnapshotUpgradeStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly detection job model snapshot upgrade usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotUpgradeStatsAsync(GetModelSnapshotUpgradeStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job model snapshot upgrade usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotUpgradeStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotUpgradeStatsRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly detection job model snapshot upgrade usage info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetModelSnapshotUpgradeStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetModelSnapshotUpgradeStatsRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get overall bucket results. - /// - /// - /// Retrievs overall bucket results that summarize the bucket results of - /// multiple anomaly detection jobs. - /// - /// - /// The overall_score is calculated by combining the scores of all the - /// buckets within the overall bucket span. First, the maximum - /// anomaly_score per anomaly detection job in the overall bucket is - /// calculated. Then the top_n of those scores are averaged to result in - /// the overall_score. This means that you can fine-tune the - /// overall_score so that it is more or less sensitive to the number of - /// jobs that detect an anomaly at the same time. For example, if you set - /// top_n to 1, the overall_score is the maximum bucket score in the - /// overall bucket. Alternatively, if you set top_n to the number of jobs, - /// the overall_score is high only when all jobs detect anomalies in that - /// overall bucket. If you set the bucket_span parameter (to a value - /// greater than its default), the overall_score is the maximum - /// overall_score of the overall buckets that have a span equal to the - /// jobs' largest bucket span. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetOverallBucketsAsync(GetOverallBucketsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get overall bucket results. - /// - /// - /// Retrievs overall bucket results that summarize the bucket results of - /// multiple anomaly detection jobs. - /// - /// - /// The overall_score is calculated by combining the scores of all the - /// buckets within the overall bucket span. First, the maximum - /// anomaly_score per anomaly detection job in the overall bucket is - /// calculated. Then the top_n of those scores are averaged to result in - /// the overall_score. This means that you can fine-tune the - /// overall_score so that it is more or less sensitive to the number of - /// jobs that detect an anomaly at the same time. For example, if you set - /// top_n to 1, the overall_score is the maximum bucket score in the - /// overall bucket. Alternatively, if you set top_n to the number of jobs, - /// the overall_score is high only when all jobs detect anomalies in that - /// overall bucket. If you set the bucket_span parameter (to a value - /// greater than its default), the overall_score is the maximum - /// overall_score of the overall buckets that have a span equal to the - /// jobs' largest bucket span. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetOverallBucketsAsync(GetOverallBucketsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get overall bucket results. - /// - /// - /// Retrievs overall bucket results that summarize the bucket results of - /// multiple anomaly detection jobs. - /// - /// - /// The overall_score is calculated by combining the scores of all the - /// buckets within the overall bucket span. First, the maximum - /// anomaly_score per anomaly detection job in the overall bucket is - /// calculated. Then the top_n of those scores are averaged to result in - /// the overall_score. This means that you can fine-tune the - /// overall_score so that it is more or less sensitive to the number of - /// jobs that detect an anomaly at the same time. For example, if you set - /// top_n to 1, the overall_score is the maximum bucket score in the - /// overall bucket. Alternatively, if you set top_n to the number of jobs, - /// the overall_score is high only when all jobs detect anomalies in that - /// overall bucket. If you set the bucket_span parameter (to a value - /// greater than its default), the overall_score is the maximum - /// overall_score of the overall buckets that have a span equal to the - /// jobs' largest bucket span. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetOverallBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetOverallBucketsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get overall bucket results. - /// - /// - /// Retrievs overall bucket results that summarize the bucket results of - /// multiple anomaly detection jobs. - /// - /// - /// The overall_score is calculated by combining the scores of all the - /// buckets within the overall bucket span. First, the maximum - /// anomaly_score per anomaly detection job in the overall bucket is - /// calculated. Then the top_n of those scores are averaged to result in - /// the overall_score. This means that you can fine-tune the - /// overall_score so that it is more or less sensitive to the number of - /// jobs that detect an anomaly at the same time. For example, if you set - /// top_n to 1, the overall_score is the maximum bucket score in the - /// overall bucket. Alternatively, if you set top_n to the number of jobs, - /// the overall_score is high only when all jobs detect anomalies in that - /// overall bucket. If you set the bucket_span parameter (to a value - /// greater than its default), the overall_score is the maximum - /// overall_score of the overall buckets that have a span equal to the - /// jobs' largest bucket span. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetOverallBucketsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetOverallBucketsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(GetRecordsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(GetRecordsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetRecordsResponse, GetRecordsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetRecordsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, GetRecordsResponse, GetRecordsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRecordsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetRecordsResponse, GetRecordsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(GetRecordsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new GetRecordsRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get anomaly records for an anomaly detection job. - /// Records contain the detailed analytical results. They describe the anomalous - /// activity that has been identified in the input data based on the detector - /// configuration. - /// There can be many anomaly records depending on the characteristics and size - /// of the input data. In practice, there are often too many to be able to - /// manually process them. The machine learning features therefore perform a - /// sophisticated aggregation of the anomaly records into buckets. - /// The number of record results depends on the number of anomalies found in each - /// bucket, which relates to the number of time series being modeled and the - /// number of detectors. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRecordsRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained model configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsAsync(GetTrainedModelsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get trained model configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsAsync(GetTrainedModelsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained model configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId, CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained model configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained model configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained model configuration info. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained models usage info. - /// You can get usage information for multiple trained - /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsStatsAsync(GetTrainedModelsStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get trained models usage info. - /// You can get usage information for multiple trained - /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsStatsAsync(GetTrainedModelsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained models usage info. - /// You can get usage information for multiple trained - /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId, CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsStatsRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained models usage info. - /// You can get usage information for multiple trained - /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsStatsAsync(Elastic.Clients.Elasticsearch.Serverless.Ids? modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsStatsRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained models usage info. - /// You can get usage information for multiple trained - /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get trained models usage info. - /// You can get usage information for multiple trained - /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTrainedModelsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetTrainedModelsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(InferTrainedModelRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(InferTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, InferTrainedModelResponse, InferTrainedModelRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new InferTrainedModelRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync, InferTrainedModelResponse, InferTrainedModelRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new InferTrainedModelRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, InferTrainedModelResponse, InferTrainedModelRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(InferTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new InferTrainedModelRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate a trained model. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new InferTrainedModelRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning information. - /// Get defaults and limits used by machine learning. - /// This endpoint is designed to be used by a user interface that needs to fully - /// understand machine learning configurations where some options are not - /// specified, meaning that the defaults should be used. This endpoint may be - /// used to find out what those defaults are. It also provides information about - /// the maximum size of machine learning jobs that could run in the current - /// cluster configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(MlInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get machine learning information. - /// Get defaults and limits used by machine learning. - /// This endpoint is designed to be used by a user interface that needs to fully - /// understand machine learning configurations where some options are not - /// specified, meaning that the defaults should be used. This endpoint may be - /// used to find out what those defaults are. It also provides information about - /// the maximum size of machine learning jobs that could run in the current - /// cluster configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(MlInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning information. - /// Get defaults and limits used by machine learning. - /// This endpoint is designed to be used by a user interface that needs to fully - /// understand machine learning configurations where some options are not - /// specified, meaning that the defaults should be used. This endpoint may be - /// used to find out what those defaults are. It also provides information about - /// the maximum size of machine learning jobs that could run in the current - /// cluster configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MlInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get machine learning information. - /// Get defaults and limits used by machine learning. - /// This endpoint is designed to be used by a user interface that needs to fully - /// understand machine learning configurations where some options are not - /// specified, meaning that the defaults should be used. This endpoint may be - /// used to find out what those defaults are. It also provides information about - /// the maximum size of machine learning jobs that could run in the current - /// cluster configuration. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MlInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Open anomaly detection jobs. - /// An anomaly detection job must be opened 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Open anomaly detection jobs. - /// An anomaly detection job must be opened 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Open anomaly detection jobs. - /// An anomaly detection job must be opened 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) - { - var descriptor = new OpenJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Open anomaly detection jobs. - /// An anomaly detection job must be opened 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) - { - var descriptor = new OpenJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Add scheduled events to the calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PostCalendarEventsAsync(PostCalendarEventsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Add scheduled events to the calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PostCalendarEventsAsync(PostCalendarEventsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Add scheduled events to the calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PostCalendarEventsAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, CancellationToken cancellationToken = default) - { - var descriptor = new PostCalendarEventsRequestDescriptor(calendarId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Add scheduled events to the calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PostCalendarEventsAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PostCalendarEventsRequestDescriptor(calendarId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(PreviewDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(PreviewDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewDataFrameAnalyticsResponse, PreviewDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewDataFrameAnalyticsResponse, PreviewDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewDataFrameAnalyticsResponse, PreviewDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewDataFrameAnalyticsResponse, PreviewDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewDataFrameAnalyticsResponse, PreviewDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(PreviewDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PreviewDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewDataFrameAnalyticsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarAsync(PutCalendarRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarAsync(PutCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, CancellationToken cancellationToken = default) - { - var descriptor = new PutCalendarRequestDescriptor(calendarId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutCalendarRequestDescriptor(calendarId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Add anomaly detection job to calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarJobAsync(PutCalendarJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Add anomaly detection job to calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarJobAsync(PutCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Add anomaly detection job to calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, CancellationToken cancellationToken = default) - { - var descriptor = new PutCalendarJobRequestDescriptor(calendarId, jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Add anomaly detection job to calendar. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutCalendarJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id calendarId, Elastic.Clients.Elasticsearch.Serverless.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutCalendarJobRequestDescriptor(calendarId, jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(PutDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(PutDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutDatafeedResponse, PutDatafeedRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new PutDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync, PutDatafeedResponse, PutDatafeedRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutDatafeedResponse, PutDatafeedRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(PutDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new PutDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a datafeed. - /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. - /// You can associate only one datafeed with each anomaly detection job. - /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had - /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed - /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutDataFrameAnalyticsResponse, PutDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, PutDataFrameAnalyticsResponse, PutDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutDataFrameAnalyticsResponse, PutDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a data frame analytics job. - /// This API creates a data frame analytics job that performs an analysis on the - /// source indices and stores the outcome in a destination index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a filter. - /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. - /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutFilterAsync(PutFilterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a filter. - /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. - /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutFilterAsync(PutFilterRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a filter. - /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. - /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutFilterAsync(Elastic.Clients.Elasticsearch.Serverless.Id filterId, CancellationToken cancellationToken = default) - { - var descriptor = new PutFilterRequestDescriptor(filterId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a filter. - /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. - /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutFilterAsync(Elastic.Clients.Elasticsearch.Serverless.Id filterId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutFilterRequestDescriptor(filterId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutJobResponse, PutJobRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(PutTrainedModelRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(PutTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutTrainedModelResponse, PutTrainedModelRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync, PutTrainedModelResponse, PutTrainedModelRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutTrainedModelResponse, PutTrainedModelRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(PutTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model. - /// Enable you to supply a trained model that is not created by data frame analytics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a trained model alias. - /// A trained model alias is a logical name used to reference a single trained - /// model. - /// You can use aliases instead of trained model identifiers to make it easier to - /// reference your models. For example, you can use aliases in inference - /// aggregations and processors. - /// An alias must be unique and refer to only a single trained model. However, - /// you can have multiple aliases for each trained model. - /// If you use this API to update an alias such that it references a different - /// trained model ID and the model uses a different type of data frame analytics, - /// an error occurs. For example, this situation occurs if you have a trained - /// model for regression analysis and a trained model for classification - /// analysis; you cannot reassign an alias from one type of trained model to - /// another. - /// If you use this API to update an alias and there are very few input fields in - /// common between the old and new trained models for the model alias, the API - /// returns a warning. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAliasAsync(PutTrainedModelAliasRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a trained model alias. - /// A trained model alias is a logical name used to reference a single trained - /// model. - /// You can use aliases instead of trained model identifiers to make it easier to - /// reference your models. For example, you can use aliases in inference - /// aggregations and processors. - /// An alias must be unique and refer to only a single trained model. However, - /// you can have multiple aliases for each trained model. - /// If you use this API to update an alias such that it references a different - /// trained model ID and the model uses a different type of data frame analytics, - /// an error occurs. For example, this situation occurs if you have a trained - /// model for regression analysis and a trained model for classification - /// analysis; you cannot reassign an alias from one type of trained model to - /// another. - /// If you use this API to update an alias and there are very few input fields in - /// common between the old and new trained models for the model alias, the API - /// returns a warning. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAliasAsync(PutTrainedModelAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a trained model alias. - /// A trained model alias is a logical name used to reference a single trained - /// model. - /// You can use aliases instead of trained model identifiers to make it easier to - /// reference your models. For example, you can use aliases in inference - /// aggregations and processors. - /// An alias must be unique and refer to only a single trained model. However, - /// you can have multiple aliases for each trained model. - /// If you use this API to update an alias such that it references a different - /// trained model ID and the model uses a different type of data frame analytics, - /// an error occurs. For example, this situation occurs if you have a trained - /// model for regression analysis and a trained model for classification - /// analysis; you cannot reassign an alias from one type of trained model to - /// another. - /// If you use this API to update an alias and there are very few input fields in - /// common between the old and new trained models for the model alias, the API - /// returns a warning. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelAliasRequestDescriptor(modelId, modelAlias); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a trained model alias. - /// A trained model alias is a logical name used to reference a single trained - /// model. - /// You can use aliases instead of trained model identifiers to make it easier to - /// reference your models. For example, you can use aliases in inference - /// aggregations and processors. - /// An alias must be unique and refer to only a single trained model. However, - /// you can have multiple aliases for each trained model. - /// If you use this API to update an alias such that it references a different - /// trained model ID and the model uses a different type of data frame analytics, - /// an error occurs. For example, this situation occurs if you have a trained - /// model for regression analysis and a trained model for classification - /// analysis; you cannot reassign an alias from one type of trained model to - /// another. - /// If you use this API to update an alias and there are very few input fields in - /// common between the old and new trained models for the model alias, the API - /// returns a warning. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Elastic.Clients.Elasticsearch.Serverless.Name modelAlias, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelAliasRequestDescriptor(modelId, modelAlias); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create part of a trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelDefinitionPartAsync(PutTrainedModelDefinitionPartRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create part of a trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelDefinitionPartAsync(PutTrainedModelDefinitionPartRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create part of a trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelDefinitionPartAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, int part, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelDefinitionPartRequestDescriptor(modelId, part); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create part of a trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelDefinitionPartAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, int part, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelDefinitionPartRequestDescriptor(modelId, part); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model vocabulary. - /// This API is supported only for natural language processing (NLP) models. - /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelVocabularyAsync(PutTrainedModelVocabularyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a trained model vocabulary. - /// This API is supported only for natural language processing (NLP) models. - /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelVocabularyAsync(PutTrainedModelVocabularyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model vocabulary. - /// This API is supported only for natural language processing (NLP) models. - /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelVocabularyAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelVocabularyRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a trained model vocabulary. - /// This API is supported only for natural language processing (NLP) models. - /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTrainedModelVocabularyAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTrainedModelVocabularyRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Reset an anomaly detection job. - /// All model state and results are deleted. The job is ready to start over as if - /// it had just been created. - /// It is not currently possible to reset multiple jobs using wildcards or a - /// comma separated list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResetJobAsync(ResetJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Reset an anomaly detection job. - /// All model state and results are deleted. The job is ready to start over as if - /// it had just been created. - /// It is not currently possible to reset multiple jobs using wildcards or a - /// comma separated list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResetJobAsync(ResetJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Reset an anomaly detection job. - /// All model state and results are deleted. The job is ready to start over as if - /// it had just been created. - /// It is not currently possible to reset multiple jobs using wildcards or a - /// comma separated list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new ResetJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Reset an anomaly detection job. - /// All model state and results are deleted. The job is ready to start over as if - /// it had just been created. - /// It is not currently possible to reset multiple jobs using wildcards or a - /// comma separated list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ResetJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Revert to a snapshot. - /// The machine learning features react quickly to anomalous input, learning new - /// behaviors in data. Highly anomalous input increases the variance in the - /// models whilst the system learns whether this is a new step-change in behavior - /// or a one-off event. In the case where this anomalous input is known to be a - /// one-off, then it might be appropriate to reset the model state to a time - /// before this event. For example, you might consider reverting to a saved - /// snapshot after Black Friday or a critical system failure. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RevertModelSnapshotAsync(RevertModelSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Revert to a snapshot. - /// The machine learning features react quickly to anomalous input, learning new - /// behaviors in data. Highly anomalous input increases the variance in the - /// models whilst the system learns whether this is a new step-change in behavior - /// or a one-off event. In the case where this anomalous input is known to be a - /// one-off, then it might be appropriate to reset the model state to a time - /// before this event. For example, you might consider reverting to a saved - /// snapshot after Black Friday or a critical system failure. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RevertModelSnapshotAsync(RevertModelSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Revert to a snapshot. - /// The machine learning features react quickly to anomalous input, learning new - /// behaviors in data. Highly anomalous input increases the variance in the - /// models whilst the system learns whether this is a new step-change in behavior - /// or a one-off event. In the case where this anomalous input is known to be a - /// one-off, then it might be appropriate to reset the model state to a time - /// before this event. For example, you might consider reverting to a saved - /// snapshot after Black Friday or a critical system failure. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RevertModelSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new RevertModelSnapshotRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Revert to a snapshot. - /// The machine learning features react quickly to anomalous input, learning new - /// behaviors in data. Highly anomalous input increases the variance in the - /// models whilst the system learns whether this is a new step-change in behavior - /// or a one-off event. In the case where this anomalous input is known to be a - /// one-off, then it might be appropriate to reset the model state to a time - /// before this event. For example, you might consider reverting to a saved - /// snapshot after Black Friday or a critical system failure. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RevertModelSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RevertModelSnapshotRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Set upgrade_mode for ML indices. - /// Sets a cluster wide upgrade_mode setting that prepares machine learning - /// indices for an upgrade. - /// When upgrading your cluster, in some circumstances you must restart your - /// nodes and reindex your machine learning indices. In those circumstances, - /// there must be no machine learning jobs running. You can close the machine - /// learning jobs, do the upgrade, then open all the jobs again. Alternatively, - /// you can use this API to temporarily halt tasks associated with the jobs and - /// datafeeds and prevent new jobs from opening. You can also use this API - /// during upgrades that do not require you to reindex your machine learning - /// indices, though stopping jobs is not a requirement in that case. - /// You can see the current value for the upgrade_mode setting by using the get - /// machine learning info API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SetUpgradeModeAsync(SetUpgradeModeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Set upgrade_mode for ML indices. - /// Sets a cluster wide upgrade_mode setting that prepares machine learning - /// indices for an upgrade. - /// When upgrading your cluster, in some circumstances you must restart your - /// nodes and reindex your machine learning indices. In those circumstances, - /// there must be no machine learning jobs running. You can close the machine - /// learning jobs, do the upgrade, then open all the jobs again. Alternatively, - /// you can use this API to temporarily halt tasks associated with the jobs and - /// datafeeds and prevent new jobs from opening. You can also use this API - /// during upgrades that do not require you to reindex your machine learning - /// indices, though stopping jobs is not a requirement in that case. - /// You can see the current value for the upgrade_mode setting by using the get - /// machine learning info API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SetUpgradeModeAsync(SetUpgradeModeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Set upgrade_mode for ML indices. - /// Sets a cluster wide upgrade_mode setting that prepares machine learning - /// indices for an upgrade. - /// When upgrading your cluster, in some circumstances you must restart your - /// nodes and reindex your machine learning indices. In those circumstances, - /// there must be no machine learning jobs running. You can close the machine - /// learning jobs, do the upgrade, then open all the jobs again. Alternatively, - /// you can use this API to temporarily halt tasks associated with the jobs and - /// datafeeds and prevent new jobs from opening. You can also use this API - /// during upgrades that do not require you to reindex your machine learning - /// indices, though stopping jobs is not a requirement in that case. - /// You can see the current value for the upgrade_mode setting by using the get - /// machine learning info API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SetUpgradeModeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SetUpgradeModeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Set upgrade_mode for ML indices. - /// Sets a cluster wide upgrade_mode setting that prepares machine learning - /// indices for an upgrade. - /// When upgrading your cluster, in some circumstances you must restart your - /// nodes and reindex your machine learning indices. In those circumstances, - /// there must be no machine learning jobs running. You can close the machine - /// learning jobs, do the upgrade, then open all the jobs again. Alternatively, - /// you can use this API to temporarily halt tasks associated with the jobs and - /// datafeeds and prevent new jobs from opening. You can also use this API - /// during upgrades that do not require you to reindex your machine learning - /// indices, though stopping jobs is not a requirement in that case. - /// You can see the current value for the upgrade_mode setting by using the get - /// machine learning info API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SetUpgradeModeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SetUpgradeModeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start datafeeds. - /// - /// - /// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// - /// Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. - /// - /// - /// If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. - /// If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. - /// - /// - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or - /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary - /// authorization headers when you created or updated the datafeed, those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDatafeedAsync(StartDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Start datafeeds. - /// - /// - /// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// - /// Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. - /// - /// - /// If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. - /// If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. - /// - /// - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or - /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary - /// authorization headers when you created or updated the datafeed, those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDatafeedAsync(StartDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start datafeeds. - /// - /// - /// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// - /// Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. - /// - /// - /// If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. - /// If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. - /// - /// - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or - /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary - /// authorization headers when you created or updated the datafeed, those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new StartDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start datafeeds. - /// - /// - /// A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// - /// Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. - /// - /// - /// If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. - /// If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. - /// - /// - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or - /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary - /// authorization headers when you created or updated the datafeed, those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StartDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, StartDataFrameAnalyticsResponse, StartDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start a data frame analytics job. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// If the destination index does not exist, it is created automatically the - /// first time you start the data frame analytics job. The - /// index.number_of_shards and index.number_of_replicas settings for the - /// destination index are copied from the source index. If there are multiple - /// source indices, the destination index copies the highest setting values. The - /// mappings for the destination index are also copied from the source indices. - /// If there are any mapping conflicts, the job fails to start. - /// If the destination index exists, it is used as is. You can therefore set up - /// the destination index in advance with custom settings and mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StartDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start a trained model deployment. - /// It allocates the model to every machine learning node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartTrainedModelDeploymentAsync(StartTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Start a trained model deployment. - /// It allocates the model to every machine learning node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartTrainedModelDeploymentAsync(StartTrainedModelDeploymentRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start a trained model deployment. - /// It allocates the model to every machine learning node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new StartTrainedModelDeploymentRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start a trained model deployment. - /// It allocates the model to every machine learning node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StartTrainedModelDeploymentRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop datafeeds. - /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDatafeedAsync(StopDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Stop datafeeds. - /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDatafeedAsync(StopDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop datafeeds. - /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new StopDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop datafeeds. - /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped - /// multiple times throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StopDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, StopDataFrameAnalyticsResponse, StopDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop data frame analytics jobs. - /// A data frame analytics job can be started and stopped multiple times - /// throughout its lifecycle. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StopDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop a trained model deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopTrainedModelDeploymentAsync(StopTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Stop a trained model deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopTrainedModelDeploymentAsync(StopTrainedModelDeploymentRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop a trained model deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, CancellationToken cancellationToken = default) - { - var descriptor = new StopTrainedModelDeploymentRequestDescriptor(modelId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop a trained model deployment. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Serverless.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StopTrainedModelDeploymentRequestDescriptor(modelId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(UpdateDatafeedRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(UpdateDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateDatafeedResponse, UpdateDatafeedRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateDatafeedResponse, UpdateDatafeedRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateDatafeedResponse, UpdateDatafeedRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(UpdateDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDatafeedRequestDescriptor(datafeedId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a datafeed. - /// You must stop and start the datafeed for the changes to be applied. - /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at - /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, - /// those credentials are used instead. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Serverless.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDatafeedRequestDescriptor(datafeedId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateDataFrameAnalyticsResponse, UpdateDataFrameAnalyticsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a data frame analytics job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateDataFrameAnalyticsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a filter. - /// Updates the description of a filter, adds items, or removes items from the list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateFilterAsync(UpdateFilterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update a filter. - /// Updates the description of a filter, adds items, or removes items from the list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateFilterAsync(UpdateFilterRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a filter. - /// Updates the description of a filter, adds items, or removes items from the list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateFilterAsync(Elastic.Clients.Elasticsearch.Serverless.Id filterId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateFilterRequestDescriptor(filterId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a filter. - /// Updates the description of a filter, adds items, or removes items from the list. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateFilterAsync(Elastic.Clients.Elasticsearch.Serverless.Id filterId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateFilterRequestDescriptor(filterId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(UpdateJobRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(UpdateJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateJobResponse, UpdateJobRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateJobResponse, UpdateJobRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateJobResponse, UpdateJobRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(UpdateJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateJobRequestDescriptor(jobId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update an anomaly detection job. - /// Updates certain properties of an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateJobRequestDescriptor(jobId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a snapshot. - /// Updates certain properties of a snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateModelSnapshotAsync(UpdateModelSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update a snapshot. - /// Updates certain properties of a snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateModelSnapshotAsync(UpdateModelSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a snapshot. - /// Updates certain properties of a snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateModelSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateModelSnapshotRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update a snapshot. - /// Updates certain properties of a snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateModelSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateModelSnapshotRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. - /// Over time, older snapshot formats are deprecated and removed. Anomaly - /// detection jobs support only snapshots that are from the current or previous - /// major version. - /// This API provides a means to upgrade a snapshot to the current major version. - /// This aids in preparing the cluster for an upgrade to the next major version. - /// Only one snapshot per anomaly detection job can be upgraded at a time and the - /// upgraded snapshot cannot be the current snapshot of the anomaly detection - /// job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeJobSnapshotAsync(UpgradeJobSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. - /// Over time, older snapshot formats are deprecated and removed. Anomaly - /// detection jobs support only snapshots that are from the current or previous - /// major version. - /// This API provides a means to upgrade a snapshot to the current major version. - /// This aids in preparing the cluster for an upgrade to the next major version. - /// Only one snapshot per anomaly detection job can be upgraded at a time and the - /// upgraded snapshot cannot be the current snapshot of the anomaly detection - /// job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeJobSnapshotAsync(UpgradeJobSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. - /// Over time, older snapshot formats are deprecated and removed. Anomaly - /// detection jobs support only snapshots that are from the current or previous - /// major version. - /// This API provides a means to upgrade a snapshot to the current major version. - /// This aids in preparing the cluster for an upgrade to the next major version. - /// Only one snapshot per anomaly detection job can be upgraded at a time and the - /// upgraded snapshot cannot be the current snapshot of the anomaly detection - /// job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeJobSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, CancellationToken cancellationToken = default) - { - var descriptor = new UpgradeJobSnapshotRequestDescriptor(jobId, snapshotId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. - /// Over time, older snapshot formats are deprecated and removed. Anomaly - /// detection jobs support only snapshots that are from the current or previous - /// major version. - /// This API provides a means to upgrade a snapshot to the current major version. - /// This aids in preparing the cluster for an upgrade to the next major version. - /// Only one snapshot per anomaly detection job can be upgraded at a time and the - /// upgraded snapshot cannot be the current snapshot of the anomaly detection - /// job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeJobSnapshotAsync(Elastic.Clients.Elasticsearch.Serverless.Id jobId, Elastic.Clients.Elasticsearch.Serverless.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpgradeJobSnapshotRequestDescriptor(jobId, snapshotId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(ValidateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(ValidateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateResponse, ValidateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ValidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateResponse, ValidateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateResponse, ValidateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(ValidateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ValidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Validates an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(ValidateDetectorRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(ValidateDetectorRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateDetectorResponse, ValidateDetectorRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateDetectorRequestDescriptor(detector); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateDetectorResponse, ValidateDetectorRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateDetectorRequestDescriptor(detector); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ValidateDetectorResponse, ValidateDetectorRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(ValidateDetectorRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateDetectorRequestDescriptor(detector); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Validate an anomaly detection job. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Detector detector, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ValidateDetectorRequestDescriptor(detector); - 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.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs deleted file mode 100644 index 3a3cb7d2560..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ /dev/null @@ -1,459 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Nodes; - -public partial class NodesNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected NodesNamespacedClient() : base() - { - } - - internal NodesNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Get the hot threads for nodes. - /// Get a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of the top hot threads for each node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HotThreadsAsync(HotThreadsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the hot threads for nodes. - /// Get a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of the top hot threads for each node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HotThreadsAsync(HotThreadsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the hot threads for nodes. - /// Get a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of the top hot threads for each node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, CancellationToken cancellationToken = default) - { - var descriptor = new HotThreadsRequestDescriptor(nodeId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the hot threads for nodes. - /// Get a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of the top hot threads for each node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HotThreadsRequestDescriptor(nodeId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the hot threads for nodes. - /// Get a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of the top hot threads for each node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HotThreadsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new HotThreadsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the hot threads for nodes. - /// Get a breakdown of the hot threads on each selected node in the cluster. - /// The output is plain text with a breakdown of the top hot threads for each node. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HotThreadsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node information. - /// By default, the API returns all attributes and core settings for cluster nodes. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get node information. - /// By default, the API returns all attributes and core settings for cluster nodes. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(NodesInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node information. - /// By default, the API returns all attributes and core settings for cluster nodes. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) - { - var descriptor = new NodesInfoRequestDescriptor(nodeId, metric); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node information. - /// By default, the API returns all attributes and core settings for cluster nodes. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesInfoRequestDescriptor(nodeId, metric); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node information. - /// By default, the API returns all attributes and core settings for cluster nodes. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node information. - /// By default, the API returns all attributes and core settings for cluster nodes. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, NodesStatsResponse, NodesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(nodeId, metric, indexMetric); - descriptor.BeforeRequest(); - return DoRequestAsync, NodesStatsResponse, NodesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(nodeId, metric, indexMetric); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, NodesStatsResponse, NodesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, NodesStatsResponse, NodesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, NodesStatsResponse, NodesStatsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(nodeId, metric, indexMetric); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Elastic.Clients.Elasticsearch.Serverless.Metrics? indexMetric, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(nodeId, metric, indexMetric); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get node statistics. - /// Get statistics for nodes in a cluster. - /// By default, all stats are returned. You can limit the returned information by using metrics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get feature usage information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get feature usage information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(NodesUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get feature usage information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, CancellationToken cancellationToken = default) - { - var descriptor = new NodesUsageRequestDescriptor(nodeId, metric); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get feature usage information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Serverless.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesUsageRequestDescriptor(nodeId, metric); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get feature usage information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(CancellationToken cancellationToken = default) - { - var descriptor = new NodesUsageRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get feature usage information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new NodesUsageRequestDescriptor(); - 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.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs deleted file mode 100644 index 4fc75b8a584..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ /dev/null @@ -1,473 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -public partial class QueryRulesNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected QueryRulesNamespacedClient() : base() - { - } - - internal QueryRulesNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete a query rule. - /// Delete a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRuleAsync(DeleteRuleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a query rule. - /// Delete a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRuleAsync(DeleteRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a query rule. - /// Delete a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRuleRequestDescriptor(rulesetId, ruleId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a query rule. - /// Delete a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRuleRequestDescriptor(rulesetId, ruleId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRulesetAsync(DeleteRulesetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRulesetAsync(DeleteRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRulesetRequestDescriptor(rulesetId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRulesetRequestDescriptor(rulesetId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a query rule. - /// Get details about a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRuleAsync(GetRuleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get a query rule. - /// Get details about a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRuleAsync(GetRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a query rule. - /// Get details about a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default) - { - var descriptor = new GetRuleRequestDescriptor(rulesetId, ruleId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a query rule. - /// Get details about a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRuleRequestDescriptor(rulesetId, ruleId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a query ruleset. - /// Get details about a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRulesetAsync(GetRulesetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get a query ruleset. - /// Get details about a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRulesetAsync(GetRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a query ruleset. - /// Get details about a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default) - { - var descriptor = new GetRulesetRequestDescriptor(rulesetId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a query ruleset. - /// Get details about a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRulesetRequestDescriptor(rulesetId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get all query rulesets. - /// Get summarized information about the query rulesets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ListRulesetsAsync(ListRulesetsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get all query rulesets. - /// Get summarized information about the query rulesets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ListRulesetsAsync(ListRulesetsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get all query rulesets. - /// Get summarized information about the query rulesets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ListRulesetsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ListRulesetsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get all query rulesets. - /// Get summarized information about the query rulesets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ListRulesetsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ListRulesetsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a query rule. - /// Create or update a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRuleAsync(PutRuleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a query rule. - /// Create or update a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRuleAsync(PutRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a query rule. - /// Create or update a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default) - { - var descriptor = new PutRuleRequestDescriptor(rulesetId, ruleId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a query rule. - /// Create or update a query rule within a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutRuleRequestDescriptor(rulesetId, ruleId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRulesetAsync(PutRulesetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRulesetAsync(PutRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default) - { - var descriptor = new PutRulesetRequestDescriptor(rulesetId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a query ruleset. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutRulesetRequestDescriptor(rulesetId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Test a query ruleset. - /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestAsync(TestRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Test a query ruleset. - /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestAsync(TestRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Test a query ruleset. - /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, CancellationToken cancellationToken = default) - { - var descriptor = new TestRequestDescriptor(rulesetId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Test a query ruleset. - /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TestRequestDescriptor(rulesetId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs deleted file mode 100644 index 3b630a6b91e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Security.g.cs +++ /dev/null @@ -1,3920 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -public partial class SecurityNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected SecurityNamespacedClient() : base() - { - } - - internal SecurityNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Activate a user profile. - /// - /// - /// Create or update a user profile on behalf of another user. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ActivateUserProfileAsync(ActivateUserProfileRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Activate a user profile. - /// - /// - /// Create or update a user profile on behalf of another user. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ActivateUserProfileAsync(ActivateUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Activate a user profile. - /// - /// - /// Create or update a user profile on behalf of another user. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ActivateUserProfileAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ActivateUserProfileRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Activate a user profile. - /// - /// - /// Create or update a user profile on behalf of another user. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ActivateUserProfileAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ActivateUserProfileRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Authenticate a user. - /// - /// - /// Authenticates a user and returns information about the authenticated user. - /// Include the user information in a basic auth header. - /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. - /// If the user cannot be authenticated, this API returns a 401 status code. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AuthenticateAsync(AuthenticateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Authenticate a user. - /// - /// - /// Authenticates a user and returns information about the authenticated user. - /// Include the user information in a basic auth header. - /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. - /// If the user cannot be authenticated, this API returns a 401 status code. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AuthenticateAsync(AuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Authenticate a user. - /// - /// - /// Authenticates a user and returns information about the authenticated user. - /// Include the user information in a basic auth header. - /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. - /// If the user cannot be authenticated, this API returns a 401 status code. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AuthenticateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new AuthenticateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Authenticate a user. - /// - /// - /// Authenticates a user and returns information about the authenticated user. - /// Include the user information in a basic auth header. - /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. - /// If the user cannot be authenticated, this API returns a 401 status code. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task AuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new AuthenticateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Bulk delete roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk delete roles API cannot delete roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Bulk delete roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk delete roles API cannot delete roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Bulk delete roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk delete roles API cannot delete roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkDeleteRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new BulkDeleteRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Bulk delete roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk delete roles API cannot delete roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkDeleteRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new BulkDeleteRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(BulkPutRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, BulkPutRoleResponse, BulkPutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new BulkPutRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, BulkPutRoleResponse, BulkPutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new BulkPutRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, BulkPutRoleResponse, BulkPutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new BulkPutRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Bulk create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. - /// The bulk create or update roles API cannot update roles that are defined in roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkPutRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new BulkPutRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the API key cache. - /// - /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear the API key cache. - /// - /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the API key cache. - /// - /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Ids ids, CancellationToken cancellationToken = default) - { - var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the API key cache. - /// - /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Serverless.Ids ids, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the privileges cache. - /// - /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear the privileges cache. - /// - /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the privileges cache. - /// - /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name application, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the privileges cache. - /// - /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name application, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the user cache. - /// - /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear the user cache. - /// - /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the user cache. - /// - /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Serverless.Names realms, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedRealmsRequestDescriptor(realms); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the user cache. - /// - /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Serverless.Names realms, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedRealmsRequestDescriptor(realms); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the roles cache. - /// - /// - /// Evict roles from the native role cache. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear the roles cache. - /// - /// - /// Evict roles from the native role cache. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the roles cache. - /// - /// - /// Evict roles from the native role cache. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedRolesRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear the roles cache. - /// - /// - /// Evict roles from the native role cache. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedRolesRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear service account token caches. - /// - /// - /// Evict a subset of all entries from the service account token caches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear service account token caches. - /// - /// - /// Evict a subset of all entries from the service account token caches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear service account token caches. - /// - /// - /// Evict a subset of all entries from the service account token caches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear service account token caches. - /// - /// - /// Evict a subset of all entries from the service account token caches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(CreateApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CreateApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CreateApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create an API key. - /// - /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a service account token. - /// - /// - /// Create a service accounts token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a service account token. - /// - /// - /// Create a service accounts token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a service account token. - /// - /// - /// Create a service accounts token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name? name, CancellationToken cancellationToken = default) - { - var descriptor = new CreateServiceTokenRequestDescriptor(ns, service, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a service account token. - /// - /// - /// Create a service accounts token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateServiceTokenRequestDescriptor(ns, service, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a service account token. - /// - /// - /// Create a service accounts token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateServiceTokenAsync(string ns, string service, CancellationToken cancellationToken = default) - { - var descriptor = new CreateServiceTokenRequestDescriptor(ns, service); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a service account token. - /// - /// - /// Create a service accounts token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateServiceTokenAsync(string ns, string service, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateServiceTokenRequestDescriptor(ns, service); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name application, Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new DeletePrivilegesRequestDescriptor(application, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name application, Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeletePrivilegesRequestDescriptor(application, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete roles. - /// - /// - /// Delete roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleAsync(DeleteRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete roles. - /// - /// - /// Delete roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleAsync(DeleteRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete roles. - /// - /// - /// Delete roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete roles. - /// - /// - /// Delete roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete role mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleMappingAsync(DeleteRoleMappingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete role mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleMappingAsync(DeleteRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete role mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRoleMappingRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete role mappings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRoleMappingRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete service account tokens. - /// - /// - /// Delete service account tokens for a service in a specified namespace. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteServiceTokenAsync(DeleteServiceTokenRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete service account tokens. - /// - /// - /// Delete service account tokens for a service in a specified namespace. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteServiceTokenAsync(DeleteServiceTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete service account tokens. - /// - /// - /// Delete service account tokens for a service in a specified namespace. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteServiceTokenRequestDescriptor(ns, service, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete service account tokens. - /// - /// - /// Delete service account tokens for a service in a specified namespace. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteServiceTokenRequestDescriptor(ns, service, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Disable a user profile. - /// - /// - /// Disable user profiles so that they are not visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DisableUserProfileAsync(DisableUserProfileRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Disable a user profile. - /// - /// - /// Disable user profiles so that they are not visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DisableUserProfileAsync(DisableUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Disable a user profile. - /// - /// - /// Disable user profiles so that they are not visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DisableUserProfileAsync(string uid, CancellationToken cancellationToken = default) - { - var descriptor = new DisableUserProfileRequestDescriptor(uid); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Disable a user profile. - /// - /// - /// Disable user profiles so that they are not visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DisableUserProfileAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DisableUserProfileRequestDescriptor(uid); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Enable a user profile. - /// - /// - /// Enable user profiles to make them visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EnableUserProfileAsync(EnableUserProfileRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Enable a user profile. - /// - /// - /// Enable user profiles to make them visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EnableUserProfileAsync(EnableUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Enable a user profile. - /// - /// - /// Enable user profiles to make them visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EnableUserProfileAsync(string uid, CancellationToken cancellationToken = default) - { - var descriptor = new EnableUserProfileRequestDescriptor(uid); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Enable a user profile. - /// - /// - /// Enable user profiles to make them visible in user profile searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task EnableUserProfileAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new EnableUserProfileRequestDescriptor(uid); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get API key information. - /// - /// - /// Retrieves information for one or more API keys. - /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. - /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetApiKeyAsync(GetApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get API key information. - /// - /// - /// Retrieves information for one or more API keys. - /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. - /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get API key information. - /// - /// - /// Retrieves information for one or more API keys. - /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. - /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get API key information. - /// - /// - /// Retrieves information for one or more API keys. - /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. - /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get builtin privileges. - /// - /// - /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBuiltinPrivilegesAsync(GetBuiltinPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get builtin privileges. - /// - /// - /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBuiltinPrivilegesAsync(GetBuiltinPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get builtin privileges. - /// - /// - /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBuiltinPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetBuiltinPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get builtin privileges. - /// - /// - /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetBuiltinPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetBuiltinPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPrivilegesAsync(GetPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPrivilegesAsync(GetPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name? application, Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) - { - var descriptor = new GetPrivilegesRequestDescriptor(application, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name? application, Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetPrivilegesRequestDescriptor(application, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get roles. - /// - /// - /// Get roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleAsync(GetRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get roles. - /// - /// - /// Get roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleAsync(GetRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get roles. - /// - /// - /// Get roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get roles. - /// - /// - /// Get roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get roles. - /// - /// - /// Get roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get roles. - /// - /// - /// Get roles in the native realm. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. - /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleMappingAsync(GetRoleMappingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. - /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleMappingAsync(GetRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. - /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleMappingRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. - /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleMappingRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. - /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleMappingAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleMappingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. - /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRoleMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRoleMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service accounts. - /// - /// - /// Get a list of service accounts that match the provided path parameters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceAccountsAsync(GetServiceAccountsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get service accounts. - /// - /// - /// Get a list of service accounts that match the provided path parameters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceAccountsAsync(GetServiceAccountsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service accounts. - /// - /// - /// Get a list of service accounts that match the provided path parameters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceAccountsAsync(string? ns, string? service, CancellationToken cancellationToken = default) - { - var descriptor = new GetServiceAccountsRequestDescriptor(ns, service); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service accounts. - /// - /// - /// Get a list of service accounts that match the provided path parameters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceAccountsAsync(string? ns, string? service, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetServiceAccountsRequestDescriptor(ns, service); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service accounts. - /// - /// - /// Get a list of service accounts that match the provided path parameters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceAccountsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetServiceAccountsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service accounts. - /// - /// - /// Get a list of service accounts that match the provided path parameters. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceAccountsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetServiceAccountsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service account credentials. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceCredentialsAsync(GetServiceCredentialsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get service account credentials. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceCredentialsAsync(GetServiceCredentialsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service account credentials. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceCredentialsAsync(string ns, Elastic.Clients.Elasticsearch.Serverless.Name service, CancellationToken cancellationToken = default) - { - var descriptor = new GetServiceCredentialsRequestDescriptor(ns, service); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get service account credentials. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetServiceCredentialsAsync(string ns, Elastic.Clients.Elasticsearch.Serverless.Name service, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetServiceCredentialsRequestDescriptor(ns, service); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a token. - /// - /// - /// Create a bearer token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTokenAsync(GetTokenRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get a token. - /// - /// - /// Create a bearer token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTokenAsync(GetTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a token. - /// - /// - /// Create a bearer token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTokenAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetTokenRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a token. - /// - /// - /// Create a bearer token for access without requiring basic authentication. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetTokenRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get user privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserPrivilegesAsync(GetUserPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get user privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserPrivilegesAsync(GetUserPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get user privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetUserPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get user privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetUserPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a user profile. - /// - /// - /// Get a user's profile using the unique profile ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserProfileAsync(GetUserProfileRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get a user profile. - /// - /// - /// Get a user's profile using the unique profile ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserProfileAsync(GetUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a user profile. - /// - /// - /// Get a user's profile using the unique profile ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserProfileAsync(IReadOnlyCollection uid, CancellationToken cancellationToken = default) - { - var descriptor = new GetUserProfileRequestDescriptor(uid); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a user profile. - /// - /// - /// Get a user's profile using the unique profile ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetUserProfileAsync(IReadOnlyCollection uid, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetUserProfileRequestDescriptor(uid); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(GrantApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GrantApiKeyResponse, GrantApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GrantApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, GrantApiKeyResponse, GrantApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GrantApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GrantApiKeyResponse, GrantApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GrantApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Grant an API key. - /// - /// - /// Create an API key on behalf of another user. - /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. - /// - /// - /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. - /// - /// - /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// - /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GrantApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GrantApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user privileges. - /// - /// - /// Determine whether the specified user has a specified list of privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesAsync(HasPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Check user privileges. - /// - /// - /// Determine whether the specified user has a specified list of privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesAsync(HasPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user privileges. - /// - /// - /// Determine whether the specified user has a specified list of privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name? user, CancellationToken cancellationToken = default) - { - var descriptor = new HasPrivilegesRequestDescriptor(user); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user privileges. - /// - /// - /// Determine whether the specified user has a specified list of privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesAsync(Elastic.Clients.Elasticsearch.Serverless.Name? user, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HasPrivilegesRequestDescriptor(user); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user privileges. - /// - /// - /// Determine whether the specified user has a specified list of privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new HasPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user privileges. - /// - /// - /// Determine whether the specified user has a specified list of privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HasPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user profile privileges. - /// - /// - /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesUserProfileAsync(HasPrivilegesUserProfileRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Check user profile privileges. - /// - /// - /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesUserProfileAsync(HasPrivilegesUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user profile privileges. - /// - /// - /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesUserProfileAsync(CancellationToken cancellationToken = default) - { - var descriptor = new HasPrivilegesUserProfileRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Check user profile privileges. - /// - /// - /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HasPrivilegesUserProfileAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HasPrivilegesUserProfileRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate API keys. - /// - /// - /// This API invalidates API keys created by the create API key or grant API key APIs. - /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. - /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: - /// - /// - /// - /// - /// Set the parameter owner=true. - /// - /// - /// - /// - /// Or, set both username and realm_name to match the user’s identity. - /// - /// - /// - /// - /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateApiKeyAsync(InvalidateApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Invalidate API keys. - /// - /// - /// This API invalidates API keys created by the create API key or grant API key APIs. - /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. - /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: - /// - /// - /// - /// - /// Set the parameter owner=true. - /// - /// - /// - /// - /// Or, set both username and realm_name to match the user’s identity. - /// - /// - /// - /// - /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateApiKeyAsync(InvalidateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate API keys. - /// - /// - /// This API invalidates API keys created by the create API key or grant API key APIs. - /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. - /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: - /// - /// - /// - /// - /// Set the parameter owner=true. - /// - /// - /// - /// - /// Or, set both username and realm_name to match the user’s identity. - /// - /// - /// - /// - /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateApiKeyAsync(CancellationToken cancellationToken = default) - { - var descriptor = new InvalidateApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate API keys. - /// - /// - /// This API invalidates API keys created by the create API key or grant API key APIs. - /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. - /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: - /// - /// - /// - /// - /// Set the parameter owner=true. - /// - /// - /// - /// - /// Or, set both username and realm_name to match the user’s identity. - /// - /// - /// - /// - /// Or, if the request is issued by an API key, that is to say an API key invalidates itself, specify its ID in the ids field. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new InvalidateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate a token. - /// - /// - /// The access tokens returned by the get token API have a finite period of time for which they are valid. - /// After that time period, they can no longer be used. - /// The time period is defined by the xpack.security.authc.token.timeout setting. - /// - /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. - /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateTokenAsync(InvalidateTokenRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Invalidate a token. - /// - /// - /// The access tokens returned by the get token API have a finite period of time for which they are valid. - /// After that time period, they can no longer be used. - /// The time period is defined by the xpack.security.authc.token.timeout setting. - /// - /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. - /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateTokenAsync(InvalidateTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate a token. - /// - /// - /// The access tokens returned by the get token API have a finite period of time for which they are valid. - /// After that time period, they can no longer be used. - /// The time period is defined by the xpack.security.authc.token.timeout setting. - /// - /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. - /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateTokenAsync(CancellationToken cancellationToken = default) - { - var descriptor = new InvalidateTokenRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate a token. - /// - /// - /// The access tokens returned by the get token API have a finite period of time for which they are valid. - /// After that time period, they can no longer be used. - /// The time period is defined by the xpack.security.authc.token.timeout setting. - /// - /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. - /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InvalidateTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new InvalidateTokenRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPrivilegesAsync(PutPrivilegesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPrivilegesAsync(PutPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPrivilegesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PutPrivilegesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update application privileges. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutPrivilegesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(PutRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update roles. - /// - /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. - /// - /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleMappingAsync(PutRoleMappingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. - /// - /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleMappingAsync(PutRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. - /// - /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleMappingRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update role mappings. - /// - /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. - /// - /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleMappingRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(QueryApiKeysRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find API keys with a query. - /// - /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(QueryRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find roles with a query. - /// - /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(QueryUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryUserRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryUserRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryUserRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Find users with a query. - /// - /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryUserRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Authenticate SAML. - /// - /// - /// Submits a SAML response message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Authenticate SAML. - /// - /// - /// Submits a SAML response message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Authenticate SAML. - /// - /// - /// Submits a SAML response message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlAuthenticateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlAuthenticateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Authenticate SAML. - /// - /// - /// Submits a SAML response message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SamlAuthenticateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Logout of SAML completely. - /// - /// - /// Verifies the logout response sent from the SAML IdP. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Logout of SAML completely. - /// - /// - /// Verifies the logout response sent from the SAML IdP. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Logout of SAML completely. - /// - /// - /// Verifies the logout response sent from the SAML IdP. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlCompleteLogoutAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlCompleteLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Logout of SAML completely. - /// - /// - /// Verifies the logout response sent from the SAML IdP. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlCompleteLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SamlCompleteLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate SAML. - /// - /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlInvalidateAsync(SamlInvalidateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Invalidate SAML. - /// - /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlInvalidateAsync(SamlInvalidateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate SAML. - /// - /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlInvalidateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlInvalidateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Invalidate SAML. - /// - /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlInvalidateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SamlInvalidateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Logout of SAML. - /// - /// - /// Submits a request to invalidate an access token and refresh token. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlLogoutAsync(SamlLogoutRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Logout of SAML. - /// - /// - /// Submits a request to invalidate an access token and refresh token. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlLogoutAsync(SamlLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Logout of SAML. - /// - /// - /// Submits a request to invalidate an access token and refresh token. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlLogoutAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Logout of SAML. - /// - /// - /// Submits a request to invalidate an access token and refresh token. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SamlLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Prepare SAML authentication. - /// - /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Prepare SAML authentication. - /// - /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Prepare SAML authentication. - /// - /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Prepare SAML authentication. - /// - /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create SAML service provider metadata. - /// - /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create SAML service provider metadata. - /// - /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create SAML service provider metadata. - /// - /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Serverless.Name realmName, CancellationToken cancellationToken = default) - { - var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create SAML service provider metadata. - /// - /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Serverless.Name realmName, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Suggest a user profile. - /// - /// - /// Get suggestions for user profiles that match specified search criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Suggest a user profile. - /// - /// - /// Get suggestions for user profiles that match specified search criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Suggest a user profile. - /// - /// - /// Get suggestions for user profiles that match specified search criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SuggestUserProfilesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Suggest a user profile. - /// - /// - /// Get suggestions for user profiles that match specified search criteria. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SuggestUserProfilesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateApiKeyRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateApiKeyRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateApiKeyRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update an API key. - /// - /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateApiKeyRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update user profile data. - /// - /// - /// Update specific data for the user profile that is associated with a unique ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateUserProfileDataAsync(UpdateUserProfileDataRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Update user profile data. - /// - /// - /// Update specific data for the user profile that is associated with a unique ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateUserProfileDataAsync(UpdateUserProfileDataRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update user profile data. - /// - /// - /// Update specific data for the user profile that is associated with a unique ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateUserProfileDataAsync(string uid, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateUserProfileDataRequestDescriptor(uid); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Update user profile data. - /// - /// - /// Update specific data for the user profile that is associated with a unique ID. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateUserProfileDataAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateUserProfileDataRequestDescriptor(uid); - 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.Slm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs deleted file mode 100644 index fd809d45b05..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ /dev/null @@ -1,613 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; - -public partial class SnapshotLifecycleManagementNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected SnapshotLifecycleManagementNamespacedClient() : base() - { - } - - internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete a policy. - /// Delete a snapshot lifecycle policy definition. - /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a policy. - /// Delete a snapshot lifecycle policy definition. - /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a policy. - /// Delete a snapshot lifecycle policy definition. - /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Name policyId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteLifecycleRequestDescriptor(policyId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a policy. - /// Delete a snapshot lifecycle policy definition. - /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteLifecycleRequestDescriptor(policyId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a policy. - /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. - /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteLifecycleAsync(ExecuteLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Run a policy. - /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. - /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteLifecycleAsync(ExecuteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a policy. - /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. - /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Name policyId, CancellationToken cancellationToken = default) - { - var descriptor = new ExecuteLifecycleRequestDescriptor(policyId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a policy. - /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. - /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExecuteLifecycleRequestDescriptor(policyId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a retention policy. - /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. - /// The retention policy is normally applied according to its schedule. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteRetentionAsync(ExecuteRetentionRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Run a retention policy. - /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. - /// The retention policy is normally applied according to its schedule. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteRetentionAsync(ExecuteRetentionRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a retention policy. - /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. - /// The retention policy is normally applied according to its schedule. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteRetentionAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ExecuteRetentionRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a retention policy. - /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. - /// The retention policy is normally applied according to its schedule. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExecuteRetentionAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExecuteRetentionRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get policy information. - /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetLifecycleAsync(GetLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get policy information. - /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetLifecycleAsync(GetLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get policy information. - /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Names? policyId, CancellationToken cancellationToken = default) - { - var descriptor = new GetLifecycleRequestDescriptor(policyId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get policy information. - /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Names? policyId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetLifecycleRequestDescriptor(policyId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get policy information. - /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetLifecycleAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetLifecycleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get policy information. - /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetLifecycleAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetLifecycleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot lifecycle management statistics. - /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatsAsync(GetStatsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get snapshot lifecycle management statistics. - /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatsAsync(GetStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot lifecycle management statistics. - /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetStatsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot lifecycle management statistics. - /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot lifecycle management status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(GetSlmStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the snapshot lifecycle management status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(GetSlmStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot lifecycle management status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetSlmStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot lifecycle management status. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSlmStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a policy. - /// Create or update a snapshot lifecycle policy. - /// If the policy already exists, this request increments the policy version. - /// Only the latest version of a policy is stored. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutLifecycleAsync(PutLifecycleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a policy. - /// Create or update a snapshot lifecycle policy. - /// If the policy already exists, this request increments the policy version. - /// Only the latest version of a policy is stored. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutLifecycleAsync(PutLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a policy. - /// Create or update a snapshot lifecycle policy. - /// If the policy already exists, this request increments the policy version. - /// Only the latest version of a policy is stored. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Name policyId, CancellationToken cancellationToken = default) - { - var descriptor = new PutLifecycleRequestDescriptor(policyId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a policy. - /// Create or update a snapshot lifecycle policy. - /// If the policy already exists, this request increments the policy version. - /// Only the latest version of a policy is stored. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutLifecycleRequestDescriptor(policyId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start snapshot lifecycle management. - /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. - /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartAsync(StartSlmRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Start snapshot lifecycle management. - /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. - /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartAsync(StartSlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start snapshot lifecycle management. - /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. - /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartAsync(CancellationToken cancellationToken = default) - { - var descriptor = new StartSlmRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Start snapshot lifecycle management. - /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. - /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StartAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StartSlmRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop snapshot lifecycle management. - /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. - /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. - /// Stopping SLM does not stop any snapshots that are in progress. - /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. - /// - /// - /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. - /// Use the get snapshot lifecycle management status API to see if SLM is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopAsync(StopSlmRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Stop snapshot lifecycle management. - /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. - /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. - /// Stopping SLM does not stop any snapshots that are in progress. - /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. - /// - /// - /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. - /// Use the get snapshot lifecycle management status API to see if SLM is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopAsync(StopSlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop snapshot lifecycle management. - /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. - /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. - /// Stopping SLM does not stop any snapshots that are in progress. - /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. - /// - /// - /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. - /// Use the get snapshot lifecycle management status API to see if SLM is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopAsync(CancellationToken cancellationToken = default) - { - var descriptor = new StopSlmRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Stop snapshot lifecycle management. - /// Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. - /// This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices. - /// Stopping SLM does not stop any snapshots that are in progress. - /// You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped. - /// - /// - /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. - /// Use the get snapshot lifecycle management status API to see if SLM is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StopAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StopSlmRequestDescriptor(); - 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.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs deleted file mode 100644 index 82dcdb9e99c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ /dev/null @@ -1,950 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -public partial class SnapshotNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected SnapshotNamespacedClient() : base() - { - } - - internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Clean up the snapshot repository. - /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CleanupRepositoryAsync(CleanupRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clean up the snapshot repository. - /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CleanupRepositoryAsync(CleanupRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clean up the snapshot repository. - /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new CleanupRepositoryRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clean up the snapshot repository. - /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CleanupRepositoryRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clone a snapshot. - /// Clone part of all of a snapshot into another snapshot in the same repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloneAsync(CloneSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clone a snapshot. - /// Clone part of all of a snapshot into another snapshot in the same repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloneAsync(CloneSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clone a snapshot. - /// Clone part of all of a snapshot into another snapshot in the same repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Elastic.Clients.Elasticsearch.Serverless.Name targetSnapshot, CancellationToken cancellationToken = default) - { - var descriptor = new CloneSnapshotRequestDescriptor(repository, snapshot, targetSnapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clone a snapshot. - /// Clone part of all of a snapshot into another snapshot in the same repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Elastic.Clients.Elasticsearch.Serverless.Name targetSnapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CloneSnapshotRequestDescriptor(repository, snapshot, targetSnapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a snapshot. - /// Take a snapshot of a cluster or of data streams and indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(CreateSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create a snapshot. - /// Take a snapshot of a cluster or of data streams and indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(CreateSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a snapshot. - /// Take a snapshot of a cluster or of data streams and indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create a snapshot. - /// Take a snapshot of a cluster or of data streams and indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a snapshot repository. - /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. - /// To register a snapshot repository, the cluster's global metadata must be writeable. - /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateRepositoryAsync(CreateRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a snapshot repository. - /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. - /// To register a snapshot repository, the cluster's global metadata must be writeable. - /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateRepositoryAsync(CreateRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a snapshot repository. - /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. - /// To register a snapshot repository, the cluster's global metadata must be writeable. - /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Snapshot.IRepository repository, Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new CreateRepositoryRequestDescriptor(repository, name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a snapshot repository. - /// IMPORTANT: If you are migrating searchable snapshots, the repository name must be identical in the source and destination clusters. - /// To register a snapshot repository, the cluster's global metadata must be writeable. - /// Ensure there are no cluster blocks (for example, cluster.blocks.read_only and clsuter.blocks.read_only_allow_delete settings) that prevent write access. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Snapshot.IRepository repository, Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CreateRepositoryRequestDescriptor(repository, name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete snapshots. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete snapshot repositories. - /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. - /// The snapshots themselves are left untouched and in place. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete snapshot repositories. - /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. - /// The snapshots themselves are left untouched and in place. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete snapshot repositories. - /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. - /// The snapshots themselves are left untouched and in place. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRepositoryRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete snapshot repositories. - /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. - /// The snapshots themselves are left untouched and in place. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRepositoryRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(GetSnapshotRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get snapshot information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(GetSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Names snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Names snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot repository information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(GetRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get snapshot repository information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(GetRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot repository information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot repository information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Names? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot repository information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get snapshot repository information. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(RestoreRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(RestoreRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RestoreResponse, RestoreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new RestoreRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync, RestoreResponse, RestoreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RestoreRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RestoreResponse, RestoreRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(RestoreRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new RestoreRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Restore a snapshot. - /// Restore a snapshot of a cluster or data streams and indices. - /// - /// - /// You can restore a snapshot only to a running cluster with an elected master node. - /// The snapshot repository must be registered and available to the cluster. - /// The snapshot and cluster versions must be compatible. - /// - /// - /// To restore a snapshot, the cluster's global metadata must be writable. Ensure there are't any cluster blocks that prevent writes. The restore operation ignores index blocks. - /// - /// - /// Before you restore a data stream, ensure the cluster contains a matching index template with data streams enabled. To check, use the index management feature in Kibana or the get index template API: - /// - /// - /// GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream - /// - /// - /// If no such template exists, you can create one or restore a cluster state that contains one. Without a matching index template, a data stream can't roll over or create backing indices. - /// - /// - /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Serverless.Name repository, Elastic.Clients.Elasticsearch.Serverless.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RestoreRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot status. - /// Get a detailed description of the current state for each shard participating in the snapshot. - /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. - /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - /// - /// - /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. - /// The API requires a read from the repository for each shard in each snapshot. - /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). - /// - /// - /// Depending on the latency of your storage, such requests can take an extremely long time to return results. - /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(SnapshotStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the snapshot status. - /// Get a detailed description of the current state for each shard participating in the snapshot. - /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. - /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - /// - /// - /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. - /// The API requires a read from the repository for each shard in each snapshot. - /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). - /// - /// - /// Depending on the latency of your storage, such requests can take an extremely long time to return results. - /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(SnapshotStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot status. - /// Get a detailed description of the current state for each shard participating in the snapshot. - /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. - /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - /// - /// - /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. - /// The API requires a read from the repository for each shard in each snapshot. - /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). - /// - /// - /// Depending on the latency of your storage, such requests can take an extremely long time to return results. - /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Name? repository, Elastic.Clients.Elasticsearch.Serverless.Names? snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotStatusRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot status. - /// Get a detailed description of the current state for each shard participating in the snapshot. - /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. - /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - /// - /// - /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. - /// The API requires a read from the repository for each shard in each snapshot. - /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). - /// - /// - /// Depending on the latency of your storage, such requests can take an extremely long time to return results. - /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Name? repository, Elastic.Clients.Elasticsearch.Serverless.Names? snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotStatusRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot status. - /// Get a detailed description of the current state for each shard participating in the snapshot. - /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. - /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - /// - /// - /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. - /// The API requires a read from the repository for each shard in each snapshot. - /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). - /// - /// - /// Depending on the latency of your storage, such requests can take an extremely long time to return results. - /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotStatusRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the snapshot status. - /// Get a detailed description of the current state for each shard participating in the snapshot. - /// Note that this API should be used only to obtain detailed shard-level information for ongoing snapshots. - /// If this detail is not needed or you want to obtain information about one or more existing snapshots, use the get snapshot API. - /// - /// - /// WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. - /// The API requires a read from the repository for each shard in each snapshot. - /// For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards). - /// - /// - /// Depending on the latency of your storage, such requests can take an extremely long time to return results. - /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task StatusAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SnapshotStatusRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Verify a snapshot repository. - /// Check for common misconfigurations in a snapshot repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task VerifyRepositoryAsync(VerifyRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Verify a snapshot repository. - /// Check for common misconfigurations in a snapshot repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task VerifyRepositoryAsync(VerifyRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Verify a snapshot repository. - /// Check for common misconfigurations in a snapshot repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new VerifyRepositoryRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Verify a snapshot repository. - /// Check for common misconfigurations in a snapshot repository. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new VerifyRepositoryRequestDescriptor(name); - 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.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs deleted file mode 100644 index 89fe8e9894a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ /dev/null @@ -1,584 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -public partial class SqlNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected SqlNamespacedClient() : base() - { - } - - internal SqlNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Clear an SQL search cursor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCursorAsync(ClearCursorRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear an SQL search cursor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCursorAsync(ClearCursorRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear an SQL search cursor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCursorAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClearCursorRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear an SQL search cursor. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearCursorAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearCursorRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(DeleteAsyncRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete an async SQL search. - /// Delete an async SQL search or a stored synchronous SQL search. - /// If the search is still running, the API cancels it. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteAsyncRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(GetAsyncRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get async SQL search results. - /// Get the current status and available results for an async SQL search or stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncStatusRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncStatusRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncStatusRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the async SQL search status. - /// Get the current status of an async SQL search or a stored synchronous SQL search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetAsyncStatusRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(QueryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, QueryResponse, QueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryResponse, QueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryResponse, QueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get SQL search results. - /// Run an SQL request. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(TranslateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(TranslateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, TranslateResponse, TranslateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TranslateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, TranslateResponse, TranslateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TranslateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TranslateResponse, TranslateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(TranslateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TranslateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Translate SQL into Elasticsearch queries. - /// Translate an SQL search into a search API request containing Query DSL. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TranslateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TranslateRequestDescriptor(); - 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.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs deleted file mode 100644 index 8be64bd2bd9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ /dev/null @@ -1,545 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Synonyms; - -public partial class SynonymsNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected SynonymsNamespacedClient() : base() - { - } - - internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(DeleteSynonymRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSynonymRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSynonymRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteSynonymResponse, DeleteSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSynonymRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSynonymRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym rule. - /// Delete a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymRuleAsync(DeleteSynonymRuleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a synonym rule. - /// Delete a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymRuleAsync(DeleteSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym rule. - /// Delete a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSynonymRuleRequestDescriptor(setId, ruleId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Delete a synonym rule. - /// Delete a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteSynonymRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteSynonymRuleRequestDescriptor(setId, ruleId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(GetSynonymRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSynonymResponse, GetSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym rule. - /// Get a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymRuleAsync(GetSynonymRuleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get a synonym rule. - /// Get a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymRuleAsync(GetSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym rule. - /// Get a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymRuleRequestDescriptor(setId, ruleId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get a synonym rule. - /// Get a synonym rule from a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymRuleRequestDescriptor(setId, ruleId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get all synonym sets. - /// Get a summary of all defined synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymsSetsAsync(GetSynonymsSetsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get all synonym sets. - /// Get a summary of all defined synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymsSetsAsync(GetSynonymsSetsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get all synonym sets. - /// Get a summary of all defined synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymsSetsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymsSetsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get all synonym sets. - /// Get a summary of all defined synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetSynonymsSetsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSynonymsSetsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(PutSynonymRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutSynonymRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutSynonymRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutSynonymResponse, PutSynonymRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new PutSynonymRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym set. - /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. - /// If you need to manage more synonym rules, you can create multiple synonym sets. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutSynonymRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym rule. - /// Create or update a synonym rule in a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymRuleAsync(PutSynonymRuleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Create or update a synonym rule. - /// Create or update a synonym rule in a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymRuleAsync(PutSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym rule. - /// Create or update a synonym rule in a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, CancellationToken cancellationToken = default) - { - var descriptor = new PutSynonymRuleRequestDescriptor(setId, ruleId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Create or update a synonym rule. - /// Create or update a synonym rule in a synonym set. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutSynonymRuleAsync(Elastic.Clients.Elasticsearch.Serverless.Id setId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutSynonymRuleRequestDescriptor(setId, ruleId); - 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.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs deleted file mode 100644 index d7e72514032..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ /dev/null @@ -1,100 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.TextStructure; - -public partial class TextStructureNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected TextStructureNamespacedClient() : base() - { - } - - internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Test a Grok pattern. - /// Test a Grok pattern on one or more lines of text. - /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestGrokPatternAsync(TestGrokPatternRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Test a Grok pattern. - /// Test a Grok pattern on one or more lines of text. - /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestGrokPatternAsync(TestGrokPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Test a Grok pattern. - /// Test a Grok pattern on one or more lines of text. - /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestGrokPatternAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TestGrokPatternRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Test a Grok pattern. - /// Test a Grok pattern on one or more lines of text. - /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TestGrokPatternAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TestGrokPatternRequestDescriptor(); - 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.Transform.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs deleted file mode 100644 index ecba0eb5a5a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs +++ /dev/null @@ -1,1191 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -public partial class TransformManagementNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected TransformManagementNamespacedClient() : base() - { - } - - internal TransformManagementNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Delete a transform. - /// Deletes a transform. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTransformAsync(DeleteTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Delete a transform. - /// Deletes a transform. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTransformAsync(DeleteTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get transforms. - /// Retrieves configuration information for transforms. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTransformAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetTransformRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetTransformRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetTransformStatsRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetTransformStatsRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task> PreviewTransformAsync(PreviewTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, PreviewTransformRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task> PreviewTransformAsync(PreviewTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewTransformResponse, PreviewTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task> PreviewTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id? transformId, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewTransformResponse, PreviewTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task> PreviewTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id? transformId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewTransformResponse, PreviewTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task> PreviewTransformAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PreviewTransformRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewTransformResponse, PreviewTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task> PreviewTransformAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PreviewTransformRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PreviewTransformResponse, PreviewTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(PutTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(PutTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutTransformResponse, PutTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) - { - var descriptor = new PutTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync, PutTransformResponse, PutTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutTransformResponse, PutTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(PutTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) - { - var descriptor = new PutTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - /// - /// NOTE: You must use Kibana or this API to create a transform. Do not add a transform directly into any - /// .transform-internal* indices using the Elasticsearch index API. If Elasticsearch security features are enabled, do - /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not - /// give users any privileges on .data-frame-internal* indices. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ResetTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ResetTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task ScheduleNowTransformAsync(ScheduleNowTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task ScheduleNowTransformAsync(ScheduleNowTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task ScheduleNowTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) - { - var descriptor = new ScheduleNowTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task ScheduleNowTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ScheduleNowTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task StartTransformAsync(StartTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task StartTransformAsync(StartTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task StartTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) - { - var descriptor = new StartTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task StartTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new StartTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new StopTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new StopTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(UpdateTransformRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(UpdateTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateTransformResponse, UpdateTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateTransformResponse, UpdateTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateTransformResponse, UpdateTransformRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(UpdateTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateTransformRequestDescriptor(transformId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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. - /// - public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Serverless.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateTransformRequestDescriptor(transformId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Upgrade all transforms. - /// Transforms are compatible across minor versions and between supported major versions. - /// However, over time, the format of transform configuration information may change. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. - /// It also cleans up the internal data structures that store the transform state and checkpoints. - /// The upgrade does not affect the source and destination indices. - /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. - /// - /// - /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. - /// Resolve the issue then re-run the process again. - /// A summary is returned when the upgrade is finished. - /// - /// - /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. - /// You may want to perform a recent cluster backup prior to the upgrade. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeTransformsAsync(UpgradeTransformsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Upgrade all transforms. - /// Transforms are compatible across minor versions and between supported major versions. - /// However, over time, the format of transform configuration information may change. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. - /// It also cleans up the internal data structures that store the transform state and checkpoints. - /// The upgrade does not affect the source and destination indices. - /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. - /// - /// - /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. - /// Resolve the issue then re-run the process again. - /// A summary is returned when the upgrade is finished. - /// - /// - /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. - /// You may want to perform a recent cluster backup prior to the upgrade. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeTransformsAsync(UpgradeTransformsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Upgrade all transforms. - /// Transforms are compatible across minor versions and between supported major versions. - /// However, over time, the format of transform configuration information may change. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. - /// It also cleans up the internal data structures that store the transform state and checkpoints. - /// The upgrade does not affect the source and destination indices. - /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. - /// - /// - /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. - /// Resolve the issue then re-run the process again. - /// A summary is returned when the upgrade is finished. - /// - /// - /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. - /// You may want to perform a recent cluster backup prior to the upgrade. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeTransformsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new UpgradeTransformsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Upgrade all transforms. - /// Transforms are compatible across minor versions and between supported major versions. - /// However, over time, the format of transform configuration information may change. - /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. - /// It also cleans up the internal data structures that store the transform state and checkpoints. - /// The upgrade does not affect the source and destination indices. - /// The upgrade also does not affect the roles that transforms use when Elasticsearch security features are enabled; the role used to read source data and write to the destination index remains unchanged. - /// - /// - /// If a transform upgrade step fails, the upgrade stops and an error is returned about the underlying issue. - /// Resolve the issue then re-run the process again. - /// A summary is returned when the upgrade is finished. - /// - /// - /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. - /// You may want to perform a recent cluster backup prior to the upgrade. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpgradeTransformsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpgradeTransformsRequestDescriptor(); - 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.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs deleted file mode 100644 index 90810eb6645..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ /dev/null @@ -1,223 +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 System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; - -public partial class XpackNamespacedClient : NamespacedClientProxy -{ - /// - /// - /// Initializes a new instance of the class for mocking. - /// - /// - protected XpackNamespacedClient() : base() - { - } - - internal XpackNamespacedClient(ElasticsearchClient client) : base(client) - { - } - - /// - /// - /// Get information. - /// The information provided by the API includes: - /// - /// - /// - /// - /// Build information including the build number and timestamp. - /// - /// - /// - /// - /// License information about the currently installed license. - /// - /// - /// - /// - /// Feature information for the features that are currently enabled and available under the current license. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(XpackInfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get information. - /// The information provided by the API includes: - /// - /// - /// - /// - /// Build information including the build number and timestamp. - /// - /// - /// - /// - /// License information about the currently installed license. - /// - /// - /// - /// - /// Feature information for the features that are currently enabled and available under the current license. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(XpackInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get information. - /// The information provided by the API includes: - /// - /// - /// - /// - /// Build information including the build number and timestamp. - /// - /// - /// - /// - /// License information about the currently installed license. - /// - /// - /// - /// - /// Feature information for the features that are currently enabled and available under the current license. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(CancellationToken cancellationToken = default) - { - var descriptor = new XpackInfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get information. - /// The information provided by the API includes: - /// - /// - /// - /// - /// Build information including the build number and timestamp. - /// - /// - /// - /// - /// License information about the currently installed license. - /// - /// - /// - /// - /// Feature information for the features that are currently enabled and available under the current license. - /// - /// - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new XpackInfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get usage information. - /// Get information about the features that are currently enabled and available under the current license. - /// The API also provides some usage statistics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(XpackUsageRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get usage information. - /// Get information about the features that are currently enabled and available under the current license. - /// The API also provides some usage statistics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(XpackUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get usage information. - /// Get information about the features that are currently enabled and available under the current license. - /// The API also provides some usage statistics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(CancellationToken cancellationToken = default) - { - var descriptor = new XpackUsageRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get usage information. - /// Get information about the features that are currently enabled and available under the current license. - /// The API also provides some usage statistics. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new XpackUsageRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs deleted file mode 100644 index 4e8ef8c6d98..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ /dev/null @@ -1,5602 +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.AsyncSearch; -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.Inference; -using Elastic.Clients.Elasticsearch.Serverless.Ingest; -using Elastic.Clients.Elasticsearch.Serverless.LicenseManagement; -using Elastic.Clients.Elasticsearch.Serverless.MachineLearning; -using Elastic.Clients.Elasticsearch.Serverless.Nodes; -using Elastic.Clients.Elasticsearch.Serverless.QueryRules; -using Elastic.Clients.Elasticsearch.Serverless.Security; -using Elastic.Clients.Elasticsearch.Serverless.Snapshot; -using Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement; -using Elastic.Clients.Elasticsearch.Serverless.Sql; -using Elastic.Clients.Elasticsearch.Serverless.Synonyms; -using Elastic.Clients.Elasticsearch.Serverless.TextStructure; -using Elastic.Clients.Elasticsearch.Serverless.TransformManagement; -using Elastic.Clients.Elasticsearch.Serverless.Xpack; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -public partial class ElasticsearchClient -{ - public virtual AsyncSearchNamespacedClient AsyncSearch { get; private set; } - 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 InferenceNamespacedClient Inference { get; private set; } - public virtual IngestNamespacedClient Ingest { get; private set; } - public virtual LicenseManagementNamespacedClient LicenseManagement { get; private set; } - public virtual MachineLearningNamespacedClient MachineLearning { get; private set; } - public virtual NodesNamespacedClient Nodes { get; private set; } - public virtual QueryRulesNamespacedClient QueryRules { get; private set; } - public virtual SecurityNamespacedClient Security { get; private set; } - public virtual SnapshotNamespacedClient Snapshot { get; private set; } - public virtual SnapshotLifecycleManagementNamespacedClient SnapshotLifecycleManagement { get; private set; } - public virtual SqlNamespacedClient Sql { get; private set; } - public virtual SynonymsNamespacedClient Synonyms { get; private set; } - public virtual TextStructureNamespacedClient TextStructure { get; private set; } - public virtual TransformManagementNamespacedClient TransformManagement { get; private set; } - public virtual XpackNamespacedClient Xpack { get; private set; } - - private partial void SetupNamespaces() - { - AsyncSearch = new AsyncSearchNamespacedClient(this); - Cluster = new ClusterNamespacedClient(this); - Enrich = new EnrichNamespacedClient(this); - Eql = new EqlNamespacedClient(this); - Esql = new EsqlNamespacedClient(this); - Graph = new GraphNamespacedClient(this); - Indices = new IndicesNamespacedClient(this); - Inference = new InferenceNamespacedClient(this); - Ingest = new IngestNamespacedClient(this); - LicenseManagement = new LicenseManagementNamespacedClient(this); - MachineLearning = new MachineLearningNamespacedClient(this); - Nodes = new NodesNamespacedClient(this); - QueryRules = new QueryRulesNamespacedClient(this); - Security = new SecurityNamespacedClient(this); - Snapshot = new SnapshotNamespacedClient(this); - SnapshotLifecycleManagement = new SnapshotLifecycleManagementNamespacedClient(this); - Sql = new SqlNamespacedClient(this); - Synonyms = new SynonymsNamespacedClient(this); - TextStructure = new TextStructureNamespacedClient(this); - TransformManagement = new TransformManagementNamespacedClient(this); - Xpack = new XpackNamespacedClient(this); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new BulkRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear a scrolling search. - /// - /// - /// Clear the search context and results for a scrolling search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Clear a scrolling search. - /// - /// - /// Clear the search context and results for a scrolling search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear a scrolling search. - /// - /// - /// Clear the search context and results for a scrolling search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClearScrollRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Clear a scrolling search. - /// - /// - /// Clear the search context and results for a scrolling search. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearScrollRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Close a point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Close a point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Close a point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClosePointInTimeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Close a point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClosePointInTimeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CountRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document, index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document, index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new CreateRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteByQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteByQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle a delete by query operation. - /// - /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Throttle a delete by query operation. - /// - /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle a delete by query operation. - /// - /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.TaskId taskId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle a delete by query operation. - /// - /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.TaskId taskId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync, ExplainRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ExplainRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(FieldCapsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the field capabilities. - /// - /// - /// Get information about the capabilities of fields among multiple indices. - /// - /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync, GetRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync, GetSourceRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new GetSourceRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. - /// - /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. - /// - /// - /// The cluster’s status is controlled by the worst indicator status. - /// - /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. - /// - /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. - /// - /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthReportAsync(HealthReportRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. - /// - /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. - /// - /// - /// The cluster’s status is controlled by the worst indicator status. - /// - /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. - /// - /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. - /// - /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthReportAsync(HealthReportRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. - /// - /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. - /// - /// - /// The cluster’s status is controlled by the worst indicator status. - /// - /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. - /// - /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. - /// - /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthReportAsync(IReadOnlyCollection? feature, CancellationToken cancellationToken = default) - { - var descriptor = new HealthReportRequestDescriptor(feature); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. - /// - /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. - /// - /// - /// The cluster’s status is controlled by the worst indicator status. - /// - /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. - /// - /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. - /// - /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthReportAsync(IReadOnlyCollection? feature, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HealthReportRequestDescriptor(feature); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. - /// - /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. - /// - /// - /// The cluster’s status is controlled by the worst indicator status. - /// - /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. - /// - /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. - /// - /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthReportAsync(CancellationToken cancellationToken = default) - { - var descriptor = new HealthReportRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. - /// - /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. - /// - /// - /// The cluster’s status is controlled by the worst indicator status. - /// - /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. - /// - /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. - /// - /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task HealthReportAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new HealthReportRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document, index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document, index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new IndexRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new InfoRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new InfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(MultiTermVectorsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple term vectors. - /// - /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple documents. - /// - /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(MultiGetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, MultiGetRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Get multiple documents. - /// - /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(MultiGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple documents. - /// - /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple documents. - /// - /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple documents. - /// - /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get multiple documents. - /// - /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple searches. - /// - /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: - /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// - /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - /// - /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(MultiSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Run multiple searches. - /// - /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: - /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// - /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - /// - /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple searches. - /// - /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: - /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// - /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - /// - /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple searches. - /// - /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: - /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// - /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - /// - /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple searches. - /// - /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: - /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// - /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - /// - /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple searches. - /// - /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: - /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// - /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. - /// - /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple templated searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Run multiple templated searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple templated searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple templated searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple templated searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run multiple templated searches. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Open a point in time. - /// - /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. - /// - /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Ping the cluster. - /// Get information about whether the cluster is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(PingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Ping the cluster. - /// Get information about whether the cluster is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(PingRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Ping the cluster. - /// Get information about whether the cluster is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Ping the cluster. - /// Get information about whether the cluster is running. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new PutScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(RankEvalRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Evaluate ranked search results. - /// - /// - /// Evaluate the quality of ranked search results over a set of typical search queries. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ReindexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ReindexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ReindexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new ReindexRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle a reindex operation. - /// - /// - /// Change the number of requests per second for a particular reindex operation. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Throttle a reindex operation. - /// - /// - /// Change the number of requests per second for a particular reindex operation. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle a reindex operation. - /// - /// - /// Change the number of requests per second for a particular reindex operation. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id taskId, CancellationToken cancellationToken = default) - { - var descriptor = new ReindexRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle a reindex operation. - /// - /// - /// Change the number of requests per second for a particular reindex operation. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ReindexRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Render a search template. - /// - /// - /// Render a search template as a search request body. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a scrolling search. - /// - /// - /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). - /// - /// - /// The scroll API gets large sets of results from a single scrolling search request. - /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. - /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. - /// The search response returns a scroll ID in the _scroll_id response body parameter. - /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. - /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. - /// - /// - /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. - /// - /// - /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ScrollAsync(ScrollRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, ScrollRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Run a search. - /// - /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(SearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, SearchRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Run a search. - /// - /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(SearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search. - /// - /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search. - /// - /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search. - /// - /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search. - /// - /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search a vector tile for geospatial values. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(SearchMvtRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search a vector tile for geospatial values. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search 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) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search 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) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search 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) - { - var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search 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) - { - var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search a vector tile for geospatial values. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search 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) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Search a vector tile. - /// - /// - /// Search 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) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Run a search with a search template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(SearchTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Run a search with a search template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search with a search template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search with a search template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search with a search template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Run a search with a search template. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(TermsEnumRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get terms in an index. - /// - /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. - /// - /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. - /// - /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - request.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(request, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// Get term vector information. - /// - /// - /// Get 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) - { - var descriptor = new TermVectorsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateByQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateByQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// 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) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle an update by query operation. - /// - /// - /// Change the number of requests per second for a particular update by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Throttle an update by query operation. - /// - /// - /// Change the number of requests per second for a particular update by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle an update by query operation. - /// - /// - /// Change the number of requests per second for a particular update by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id taskId, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateByQueryRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// - /// Throttle an update by query operation. - /// - /// - /// Change the number of requests per second for a particular update by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateByQueryRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs deleted file mode 100644 index ca977c75a2c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class AdjacencyMatrixAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs deleted file mode 100644 index 86e616fbddc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixAggregation.g.cs +++ /dev/null @@ -1,156 +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.Aggregations; - -public sealed partial class AdjacencyMatrixAggregation -{ - /// - /// - /// Filters used to create buckets. - /// At least one filter is required. - /// - /// - [JsonInclude, JsonPropertyName("filters")] - public IDictionary? Filters { get; set; } - - /// - /// - /// Separator used to concatenate filter names. Defaults to &. - /// - /// - [JsonInclude, JsonPropertyName("separator")] - public string? Separator { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(AdjacencyMatrixAggregation adjacencyMatrixAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.AdjacencyMatrix(adjacencyMatrixAggregation); -} - -public sealed partial class AdjacencyMatrixAggregationDescriptor : SerializableDescriptor> -{ - internal AdjacencyMatrixAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public AdjacencyMatrixAggregationDescriptor() : base() - { - } - - private IDictionary> FiltersValue { get; set; } - private string? SeparatorValue { get; set; } - - /// - /// - /// Filters used to create buckets. - /// At least one filter is required. - /// - /// - public AdjacencyMatrixAggregationDescriptor Filters(Func>, FluentDescriptorDictionary>> selector) - { - FiltersValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Separator used to concatenate filter names. Defaults to &. - /// - /// - public AdjacencyMatrixAggregationDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FiltersValue is not null) - { - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AdjacencyMatrixAggregationDescriptor : SerializableDescriptor -{ - internal AdjacencyMatrixAggregationDescriptor(Action configure) => configure.Invoke(this); - - public AdjacencyMatrixAggregationDescriptor() : base() - { - } - - private IDictionary FiltersValue { get; set; } - private string? SeparatorValue { get; set; } - - /// - /// - /// Filters used to create buckets. - /// At least one filter is required. - /// - /// - public AdjacencyMatrixAggregationDescriptor Filters(Func, FluentDescriptorDictionary> selector) - { - FiltersValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Separator used to concatenate filter names. Defaults to &. - /// - /// - public AdjacencyMatrixAggregationDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FiltersValue is not null) - { - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixBucket.g.cs deleted file mode 100644 index 21d617735bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AdjacencyMatrixBucket.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.Aggregations; - -internal sealed partial class AdjacencyMatrixBucketConverter : JsonConverter -{ - public override AdjacencyMatrixBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - string key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new AdjacencyMatrixBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, AdjacencyMatrixBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'AdjacencyMatrixBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(AdjacencyMatrixBucketConverter))] -public sealed partial class AdjacencyMatrixBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public string Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs deleted file mode 100644 index 7f1f89d7900..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregateDictionary.g.cs +++ /dev/null @@ -1,644 +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.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; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; - -public partial interface IAggregate -{ -} - -[JsonConverter(typeof(AggregateDictionaryConverter))] -public partial class AggregateDictionary : IsAReadOnlyDictionary -{ - public AggregateDictionary(IReadOnlyDictionary backingDictionary) : base(backingDictionary) - { - } - - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AdjacencyMatrixAggregate? GetAdjacencyMatrix(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AutoDateHistogramAggregate? GetAutoDateHistogram(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageAggregate? GetAverage(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BoxplotAggregate? GetBoxplot(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketMetricValueAggregate? GetBucketMetricValue(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregate? GetCardinality(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChildrenAggregate? GetChildren(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregate? GetComposite(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeCardinalityAggregate? GetCumulativeCardinality(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregate? GetDateHistogram(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregate? GetDateRange(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.DerivativeAggregate? GetDerivative(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.DoubleTermsAggregate? GetDoubleTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsAggregate? GetExtendedStats(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsBucketAggregate? GetExtendedStatsBucket(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FilterAggregate? GetFilter(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FiltersAggregate? GetFilters(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsAggregate? GetFrequentItemSets(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoBoundsAggregate? GetGeoBounds(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoCentroidAggregate? GetGeoCentroid(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoDistanceAggregate? GetGeoDistance(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohashGridAggregate? GetGeohashGrid(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohexGridAggregate? GetGeohexGrid(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregate? GetGeoLine(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregate? GetGeotileGrid(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GlobalAggregate? GetGlobal(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrPercentileRanksAggregate? GetHdrPercentileRanks(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrPercentilesAggregate? GetHdrPercentiles(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregate? GetHistogram(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceAggregate? GetInference(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpPrefixAggregate? GetIpPrefix(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregate? GetIpRange(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.LongRareTermsAggregate? GetLongRareTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.LongTermsAggregate? GetLongTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MatrixStatsAggregate? GetMatrixStats(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxAggregate? GetMax(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MedianAbsoluteDeviationAggregate? GetMedianAbsoluteDeviation(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinAggregate? GetMin(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregate? GetMissing(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermsAggregate? GetMultiTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.NestedAggregate? GetNested(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ParentAggregate? GetParent(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesBucketAggregate? GetPercentilesBucket(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregate? GetRange(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateAggregate? GetRate(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ReverseNestedAggregate? GetReverseNested(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregate? GetSampler(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedMetricAggregate? GetScriptedMetric(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantLongTermsAggregate? GetSignificantLongTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantStringTermsAggregate? GetSignificantStringTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SimpleValueAggregate? GetSimpleValue(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsAggregate? GetStats(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsBucketAggregate? GetStatsBucket(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringRareTermsAggregate? GetStringRareTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringStatsAggregate? GetStringStats(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringTermsAggregate? GetStringTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregate? GetSum(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestPercentileRanksAggregate? GetTDigestPercentileRanks(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestPercentilesAggregate? GetTDigestPercentiles(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TimeSeriesAggregate? GetTimeSeries(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregate? GetTopHits(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregate? GetTopMetrics(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregate? GetTTest(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.UnmappedRareTermsAggregate? GetUnmappedRareTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.UnmappedSamplerAggregate? GetUnmappedSampler(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.UnmappedSignificantTermsAggregate? GetUnmappedSignificantTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.UnmappedTermsAggregate? GetUnmappedTerms(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregate? GetValueCount(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.VariableWidthHistogramAggregate? GetVariableWidthHistogram(string key) => TryGet(key); - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageAggregate? GetWeightedAverage(string key) => TryGet(key); - private T? TryGet(string key) where T : class, IAggregate => BackingDictionary.TryGetValue(key, out var value) ? value as T : null; -} - -internal sealed partial class AggregateDictionaryConverter : JsonConverter -{ - public override AggregateDictionary Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var dictionary = new Dictionary(); - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException($"Expected {JsonTokenType.StartObject} but read {reader.TokenType}."); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - throw new JsonException($"Expected {JsonTokenType.PropertyName} but read {reader.TokenType}."); - var name = reader.GetString(); - reader.Read(); - ReadItem(ref reader, options, dictionary, name); - } - - return new AggregateDictionary(dictionary); - } - - public override void Write(Utf8JsonWriter writer, AggregateDictionary value, JsonSerializerOptions options) - { - throw new NotImplementedException("'AggregateDictionary' is a readonly type, used only on responses and does not support being written to JSON."); - } - - public static void ReadItem(ref Utf8JsonReader reader, JsonSerializerOptions options, Dictionary dictionary, string name) - { - var nameParts = name.Split('#'); - if (nameParts.Length != 2) - throw new JsonException($"Unable to parse typed-key '{name}'."); - var type = nameParts[0]; - switch (type) - { - case "adjacency_matrix": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "auto_date_histogram": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "avg": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "boxplot": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "bucket_metric_value": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "cardinality": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "children": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "composite": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "simple_long_value": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "date_histogram": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "date_range": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "derivative": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "dterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "extended_stats": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "extended_stats_bucket": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "filter": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "filters": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "frequent_item_sets": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geo_bounds": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geo_centroid": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geo_distance": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geohash_grid": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geohex_grid": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geo_line": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "geotile_grid": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "global": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "hdr_percentile_ranks": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "hdr_percentiles": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "histogram": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "inference": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "ip_prefix": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "ip_range": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "lrareterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "lterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "matrix_stats": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "max": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "median_absolute_deviation": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "min": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "missing": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "multi_terms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "nested": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "parent": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "percentiles_bucket": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "range": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "rate": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "reverse_nested": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "sampler": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "scripted_metric": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "siglterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "sigsterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "simple_value": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "stats": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "stats_bucket": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "srareterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "string_stats": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "sterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "sum": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "tdigest_percentile_ranks": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "tdigest_percentiles": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "time_series": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "top_hits": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "top_metrics": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "t_test": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "umrareterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "unmapped_sampler": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "umsigterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "umterms": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "value_count": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "variable_width_histogram": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "weighted_avg": - { - var item = JsonSerializer.Deserialize(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - default: - throw new NotSupportedException($"The tagged variant '{type}' is currently not supported."); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Aggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Aggregation.g.cs deleted file mode 100644 index 9e2e2f1a0fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Aggregation.g.cs +++ /dev/null @@ -1,1397 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; - -[JsonConverter(typeof(AggregationConverter))] -public sealed partial class Aggregation -{ - internal Aggregation(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Aggregation AdjacencyMatrix(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AdjacencyMatrixAggregation adjacencyMatrixAggregation) => new Aggregation("adjacency_matrix", adjacencyMatrixAggregation); - public static Aggregation AutoDateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AutoDateHistogramAggregation autoDateHistogramAggregation) => new Aggregation("auto_date_histogram", autoDateHistogramAggregation); - public static Aggregation Avg(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageAggregation averageAggregation) => new Aggregation("avg", averageAggregation); - public static Aggregation AvgBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageBucketAggregation averageBucketAggregation) => new Aggregation("avg_bucket", averageBucketAggregation); - public static Aggregation Boxplot(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BoxplotAggregation boxplotAggregation) => new Aggregation("boxplot", boxplotAggregation); - public static Aggregation BucketScript(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketScriptAggregation bucketScriptAggregation) => new Aggregation("bucket_script", bucketScriptAggregation); - public static Aggregation BucketSelector(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSelectorAggregation bucketSelectorAggregation) => new Aggregation("bucket_selector", bucketSelectorAggregation); - public static Aggregation BucketSort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSortAggregation bucketSortAggregation) => new Aggregation("bucket_sort", bucketSortAggregation); - public static Aggregation Cardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation cardinalityAggregation) => new Aggregation("cardinality", cardinalityAggregation); - public static Aggregation Children(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChildrenAggregation childrenAggregation) => new Aggregation("children", childrenAggregation); - public static Aggregation Composite(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation compositeAggregation) => new Aggregation("composite", compositeAggregation); - public static Aggregation CumulativeCardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeCardinalityAggregation cumulativeCardinalityAggregation) => new Aggregation("cumulative_cardinality", cumulativeCardinalityAggregation); - public static Aggregation CumulativeSum(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeSumAggregation cumulativeSumAggregation) => new Aggregation("cumulative_sum", cumulativeSumAggregation); - public static Aggregation DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation dateHistogramAggregation) => new Aggregation("date_histogram", dateHistogramAggregation); - public static Aggregation DateRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation dateRangeAggregation) => new Aggregation("date_range", dateRangeAggregation); - public static Aggregation Derivative(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DerivativeAggregation derivativeAggregation) => new Aggregation("derivative", derivativeAggregation); - public static Aggregation DiversifiedSampler(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DiversifiedSamplerAggregation diversifiedSamplerAggregation) => new Aggregation("diversified_sampler", diversifiedSamplerAggregation); - public static Aggregation ExtendedStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsAggregation extendedStatsAggregation) => new Aggregation("extended_stats", extendedStatsAggregation); - public static Aggregation ExtendedStatsBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsBucketAggregation extendedStatsBucketAggregation) => new Aggregation("extended_stats_bucket", extendedStatsBucketAggregation); - public static Aggregation Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query queryContainer) => new Aggregation("filter", queryContainer); - public static Aggregation Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FiltersAggregation filtersAggregation) => new Aggregation("filters", filtersAggregation); - public static Aggregation FrequentItemSets(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsAggregation frequentItemSetsAggregation) => new Aggregation("frequent_item_sets", frequentItemSetsAggregation); - public static Aggregation GeoBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoBoundsAggregation geoBoundsAggregation) => new Aggregation("geo_bounds", geoBoundsAggregation); - public static Aggregation GeoCentroid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoCentroidAggregation geoCentroidAggregation) => new Aggregation("geo_centroid", geoCentroidAggregation); - public static Aggregation GeoDistance(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoDistanceAggregation geoDistanceAggregation) => new Aggregation("geo_distance", geoDistanceAggregation); - public static Aggregation GeohashGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohashGridAggregation geohashGridAggregation) => new Aggregation("geohash_grid", geohashGridAggregation); - public static Aggregation GeohexGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohexGridAggregation geohexGridAggregation) => new Aggregation("geohex_grid", geohexGridAggregation); - public static Aggregation GeoLine(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation geoLineAggregation) => new Aggregation("geo_line", geoLineAggregation); - public static Aggregation GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation geotileGridAggregation) => new Aggregation("geotile_grid", geotileGridAggregation); - public static Aggregation Global(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GlobalAggregation globalAggregation) => new Aggregation("global", globalAggregation); - public static Aggregation Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation histogramAggregation) => new Aggregation("histogram", histogramAggregation); - public static Aggregation Inference(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceAggregation inferenceAggregation) => new Aggregation("inference", inferenceAggregation); - public static Aggregation IpPrefix(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpPrefixAggregation ipPrefixAggregation) => new Aggregation("ip_prefix", ipPrefixAggregation); - public static Aggregation IpRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregation ipRangeAggregation) => new Aggregation("ip_range", ipRangeAggregation); - public static Aggregation Line(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation geoLineAggregation) => new Aggregation("line", geoLineAggregation); - public static Aggregation MatrixStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MatrixStatsAggregation matrixStatsAggregation) => new Aggregation("matrix_stats", matrixStatsAggregation); - public static Aggregation Max(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxAggregation maxAggregation) => new Aggregation("max", maxAggregation); - public static Aggregation MaxBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxBucketAggregation maxBucketAggregation) => new Aggregation("max_bucket", maxBucketAggregation); - public static Aggregation MedianAbsoluteDeviation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MedianAbsoluteDeviationAggregation medianAbsoluteDeviationAggregation) => new Aggregation("median_absolute_deviation", medianAbsoluteDeviationAggregation); - public static Aggregation Min(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinAggregation minAggregation) => new Aggregation("min", minAggregation); - public static Aggregation MinBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinBucketAggregation minBucketAggregation) => new Aggregation("min_bucket", minBucketAggregation); - public static Aggregation Missing(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation missingAggregation) => new Aggregation("missing", missingAggregation); - public static Aggregation MovingFn(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingFunctionAggregation movingFunctionAggregation) => new Aggregation("moving_fn", movingFunctionAggregation); - public static Aggregation MovingPercentiles(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingPercentilesAggregation movingPercentilesAggregation) => new Aggregation("moving_percentiles", movingPercentilesAggregation); - public static Aggregation MultiTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermsAggregation multiTermsAggregation) => new Aggregation("multi_terms", multiTermsAggregation); - public static Aggregation Nested(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NestedAggregation nestedAggregation) => new Aggregation("nested", nestedAggregation); - public static Aggregation Normalize(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeAggregation normalizeAggregation) => new Aggregation("normalize", normalizeAggregation); - public static Aggregation Parent(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ParentAggregation parentAggregation) => new Aggregation("parent", parentAggregation); - public static Aggregation PercentileRanks(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentileRanksAggregation percentileRanksAggregation) => new Aggregation("percentile_ranks", percentileRanksAggregation); - public static Aggregation Percentiles(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesAggregation percentilesAggregation) => new Aggregation("percentiles", percentilesAggregation); - public static Aggregation PercentilesBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesBucketAggregation percentilesBucketAggregation) => new Aggregation("percentiles_bucket", percentilesBucketAggregation); - public static Aggregation Range(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation rangeAggregation) => new Aggregation("range", rangeAggregation); - public static Aggregation RareTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RareTermsAggregation rareTermsAggregation) => new Aggregation("rare_terms", rareTermsAggregation); - public static Aggregation Rate(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateAggregation rateAggregation) => new Aggregation("rate", rateAggregation); - public static Aggregation ReverseNested(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ReverseNestedAggregation reverseNestedAggregation) => new Aggregation("reverse_nested", reverseNestedAggregation); - public static Aggregation Sampler(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregation samplerAggregation) => new Aggregation("sampler", samplerAggregation); - public static Aggregation ScriptedMetric(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedMetricAggregation scriptedMetricAggregation) => new Aggregation("scripted_metric", scriptedMetricAggregation); - public static Aggregation SerialDiff(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SerialDifferencingAggregation serialDifferencingAggregation) => new Aggregation("serial_diff", serialDifferencingAggregation); - public static Aggregation SignificantTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTermsAggregation significantTermsAggregation) => new Aggregation("significant_terms", significantTermsAggregation); - public static Aggregation SignificantText(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTextAggregation significantTextAggregation) => new Aggregation("significant_text", significantTextAggregation); - public static Aggregation Stats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsAggregation statsAggregation) => new Aggregation("stats", statsAggregation); - public static Aggregation StatsBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsBucketAggregation statsBucketAggregation) => new Aggregation("stats_bucket", statsBucketAggregation); - public static Aggregation StringStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringStatsAggregation stringStatsAggregation) => new Aggregation("string_stats", stringStatsAggregation); - public static Aggregation Sum(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregation sumAggregation) => new Aggregation("sum", sumAggregation); - public static Aggregation SumBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumBucketAggregation sumBucketAggregation) => new Aggregation("sum_bucket", sumBucketAggregation); - public static Aggregation Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => new Aggregation("terms", termsAggregation); - public static Aggregation TopHits(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregation topHitsAggregation) => new Aggregation("top_hits", topHitsAggregation); - public static Aggregation TopMetrics(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregation topMetricsAggregation) => new Aggregation("top_metrics", topMetricsAggregation); - public static Aggregation TTest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregation tTestAggregation) => new Aggregation("t_test", tTestAggregation); - public static Aggregation ValueCount(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation valueCountAggregation) => new Aggregation("value_count", valueCountAggregation); - public static Aggregation VariableWidthHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.VariableWidthHistogramAggregation variableWidthHistogramAggregation) => new Aggregation("variable_width_histogram", variableWidthHistogramAggregation); - public static Aggregation WeightedAvg(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageAggregation weightedAverageAggregation) => new Aggregation("weighted_avg", weightedAverageAggregation); - - /// - /// - /// Sub-aggregations for this aggregation. - /// Only applies to bucket aggregations. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class AggregationConverter : JsonConverter -{ - public override Aggregation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - IDictionary? aggregationsValue = default; - IDictionary? metaValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "aggregations") - { - aggregationsValue = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (propertyName == "meta") - { - metaValue = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (propertyName == "adjacency_matrix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "auto_date_histogram") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "avg") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "avg_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "boxplot") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "bucket_script") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "bucket_selector") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "bucket_sort") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "cardinality") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "children") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "composite") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "cumulative_cardinality") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "cumulative_sum") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "date_histogram") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "date_range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "derivative") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "diversified_sampler") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "extended_stats") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "extended_stats_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "filter") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "filters") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "frequent_item_sets") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_bounds") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_centroid") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_distance") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geohash_grid") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geohex_grid") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_line") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geotile_grid") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "global") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "histogram") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "inference") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ip_prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ip_range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "line") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "matrix_stats") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "max") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "max_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "median_absolute_deviation") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "min") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "min_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "missing") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "moving_fn") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "moving_percentiles") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "multi_terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "nested") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "normalize") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "parent") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "percentile_ranks") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "percentiles") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "percentiles_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rare_terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rate") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "reverse_nested") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "sampler") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "scripted_metric") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "serial_diff") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "significant_terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "significant_text") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "stats") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "stats_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "string_stats") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "sum") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "sum_bucket") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "top_hits") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "top_metrics") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "t_test") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "value_count") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "variable_width_histogram") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "weighted_avg") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Aggregation' from the response."); - } - - var result = new Aggregation(variantNameValue, variantValue); - result.Aggregations = aggregationsValue; - result.Meta = metaValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, Aggregation value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.Meta is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, value.Meta, options); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "adjacency_matrix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.AdjacencyMatrixAggregation)value.Variant, options); - break; - case "auto_date_histogram": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.AutoDateHistogramAggregation)value.Variant, options); - break; - case "avg": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageAggregation)value.Variant, options); - break; - case "avg_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageBucketAggregation)value.Variant, options); - break; - case "boxplot": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.BoxplotAggregation)value.Variant, options); - break; - case "bucket_script": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketScriptAggregation)value.Variant, options); - break; - case "bucket_selector": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSelectorAggregation)value.Variant, options); - break; - case "bucket_sort": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSortAggregation)value.Variant, options); - break; - case "cardinality": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation)value.Variant, options); - break; - case "children": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChildrenAggregation)value.Variant, options); - break; - case "composite": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation)value.Variant, options); - break; - case "cumulative_cardinality": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeCardinalityAggregation)value.Variant, options); - break; - case "cumulative_sum": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeSumAggregation)value.Variant, options); - break; - case "date_histogram": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation)value.Variant, options); - break; - case "date_range": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation)value.Variant, options); - break; - case "derivative": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.DerivativeAggregation)value.Variant, options); - break; - case "diversified_sampler": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.DiversifiedSamplerAggregation)value.Variant, options); - break; - case "extended_stats": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsAggregation)value.Variant, options); - break; - case "extended_stats_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsBucketAggregation)value.Variant, options); - break; - case "filter": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query)value.Variant, options); - break; - case "filters": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.FiltersAggregation)value.Variant, options); - break; - case "frequent_item_sets": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsAggregation)value.Variant, options); - break; - case "geo_bounds": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoBoundsAggregation)value.Variant, options); - break; - case "geo_centroid": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoCentroidAggregation)value.Variant, options); - break; - case "geo_distance": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoDistanceAggregation)value.Variant, options); - break; - case "geohash_grid": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohashGridAggregation)value.Variant, options); - break; - case "geohex_grid": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohexGridAggregation)value.Variant, options); - break; - case "geo_line": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation)value.Variant, options); - break; - case "geotile_grid": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation)value.Variant, options); - break; - case "global": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GlobalAggregation)value.Variant, options); - break; - case "histogram": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation)value.Variant, options); - break; - case "inference": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceAggregation)value.Variant, options); - break; - case "ip_prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpPrefixAggregation)value.Variant, options); - break; - case "ip_range": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregation)value.Variant, options); - break; - case "line": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation)value.Variant, options); - break; - case "matrix_stats": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MatrixStatsAggregation)value.Variant, options); - break; - case "max": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxAggregation)value.Variant, options); - break; - case "max_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxBucketAggregation)value.Variant, options); - break; - case "median_absolute_deviation": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MedianAbsoluteDeviationAggregation)value.Variant, options); - break; - case "min": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinAggregation)value.Variant, options); - break; - case "min_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinBucketAggregation)value.Variant, options); - break; - case "missing": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation)value.Variant, options); - break; - case "moving_fn": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingFunctionAggregation)value.Variant, options); - break; - case "moving_percentiles": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingPercentilesAggregation)value.Variant, options); - break; - case "multi_terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermsAggregation)value.Variant, options); - break; - case "nested": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.NestedAggregation)value.Variant, options); - break; - case "normalize": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeAggregation)value.Variant, options); - break; - case "parent": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ParentAggregation)value.Variant, options); - break; - case "percentile_ranks": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentileRanksAggregation)value.Variant, options); - break; - case "percentiles": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesAggregation)value.Variant, options); - break; - case "percentiles_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesBucketAggregation)value.Variant, options); - break; - case "range": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation)value.Variant, options); - break; - case "rare_terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.RareTermsAggregation)value.Variant, options); - break; - case "rate": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateAggregation)value.Variant, options); - break; - case "reverse_nested": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ReverseNestedAggregation)value.Variant, options); - break; - case "sampler": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregation)value.Variant, options); - break; - case "scripted_metric": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedMetricAggregation)value.Variant, options); - break; - case "serial_diff": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.SerialDifferencingAggregation)value.Variant, options); - break; - case "significant_terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTermsAggregation)value.Variant, options); - break; - case "significant_text": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTextAggregation)value.Variant, options); - break; - case "stats": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsAggregation)value.Variant, options); - break; - case "stats_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsBucketAggregation)value.Variant, options); - break; - case "string_stats": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringStatsAggregation)value.Variant, options); - break; - case "sum": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregation)value.Variant, options); - break; - case "sum_bucket": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumBucketAggregation)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation)value.Variant, options); - break; - case "top_hits": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregation)value.Variant, options); - break; - case "top_metrics": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregation)value.Variant, options); - break; - case "t_test": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregation)value.Variant, options); - break; - case "value_count": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation)value.Variant, options); - break; - case "variable_width_histogram": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.VariableWidthHistogramAggregation)value.Variant, options); - break; - case "weighted_avg": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageAggregation)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AggregationDescriptor : SerializableDescriptor> -{ - internal AggregationDescriptor(Action> configure) => configure.Invoke(this); - - public AggregationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private AggregationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private AggregationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private IDictionary> AggregationsValue { get; set; } - private IDictionary? MetaValue { get; set; } - - /// - /// - /// Sub-aggregations for this aggregation. - /// Only applies to bucket aggregations. - /// - /// - public AggregationDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public AggregationDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public AggregationDescriptor AdjacencyMatrix(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AdjacencyMatrixAggregation adjacencyMatrixAggregation) => Set(adjacencyMatrixAggregation, "adjacency_matrix"); - public AggregationDescriptor AdjacencyMatrix(Action> configure) => Set(configure, "adjacency_matrix"); - public AggregationDescriptor AutoDateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AutoDateHistogramAggregation autoDateHistogramAggregation) => Set(autoDateHistogramAggregation, "auto_date_histogram"); - public AggregationDescriptor AutoDateHistogram(Action> configure) => Set(configure, "auto_date_histogram"); - public AggregationDescriptor Avg(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageAggregation averageAggregation) => Set(averageAggregation, "avg"); - public AggregationDescriptor Avg(Action> configure) => Set(configure, "avg"); - public AggregationDescriptor AvgBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageBucketAggregation averageBucketAggregation) => Set(averageBucketAggregation, "avg_bucket"); - public AggregationDescriptor AvgBucket(Action configure) => Set(configure, "avg_bucket"); - public AggregationDescriptor Boxplot(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BoxplotAggregation boxplotAggregation) => Set(boxplotAggregation, "boxplot"); - public AggregationDescriptor Boxplot(Action> configure) => Set(configure, "boxplot"); - public AggregationDescriptor BucketScript(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketScriptAggregation bucketScriptAggregation) => Set(bucketScriptAggregation, "bucket_script"); - public AggregationDescriptor BucketScript(Action configure) => Set(configure, "bucket_script"); - public AggregationDescriptor BucketSelector(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSelectorAggregation bucketSelectorAggregation) => Set(bucketSelectorAggregation, "bucket_selector"); - public AggregationDescriptor BucketSelector(Action configure) => Set(configure, "bucket_selector"); - public AggregationDescriptor BucketSort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSortAggregation bucketSortAggregation) => Set(bucketSortAggregation, "bucket_sort"); - public AggregationDescriptor BucketSort(Action> configure) => Set(configure, "bucket_sort"); - public AggregationDescriptor Cardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation cardinalityAggregation) => Set(cardinalityAggregation, "cardinality"); - public AggregationDescriptor Cardinality(Action> configure) => Set(configure, "cardinality"); - public AggregationDescriptor Children(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChildrenAggregation childrenAggregation) => Set(childrenAggregation, "children"); - public AggregationDescriptor Children(Action configure) => Set(configure, "children"); - public AggregationDescriptor Composite(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation compositeAggregation) => Set(compositeAggregation, "composite"); - public AggregationDescriptor Composite(Action> configure) => Set(configure, "composite"); - public AggregationDescriptor CumulativeCardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeCardinalityAggregation cumulativeCardinalityAggregation) => Set(cumulativeCardinalityAggregation, "cumulative_cardinality"); - public AggregationDescriptor CumulativeCardinality(Action configure) => Set(configure, "cumulative_cardinality"); - public AggregationDescriptor CumulativeSum(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeSumAggregation cumulativeSumAggregation) => Set(cumulativeSumAggregation, "cumulative_sum"); - public AggregationDescriptor CumulativeSum(Action configure) => Set(configure, "cumulative_sum"); - public AggregationDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation dateHistogramAggregation) => Set(dateHistogramAggregation, "date_histogram"); - public AggregationDescriptor DateHistogram(Action> configure) => Set(configure, "date_histogram"); - public AggregationDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation dateRangeAggregation) => Set(dateRangeAggregation, "date_range"); - public AggregationDescriptor DateRange(Action> configure) => Set(configure, "date_range"); - public AggregationDescriptor Derivative(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DerivativeAggregation derivativeAggregation) => Set(derivativeAggregation, "derivative"); - public AggregationDescriptor Derivative(Action configure) => Set(configure, "derivative"); - public AggregationDescriptor DiversifiedSampler(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DiversifiedSamplerAggregation diversifiedSamplerAggregation) => Set(diversifiedSamplerAggregation, "diversified_sampler"); - public AggregationDescriptor DiversifiedSampler(Action> configure) => Set(configure, "diversified_sampler"); - public AggregationDescriptor ExtendedStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsAggregation extendedStatsAggregation) => Set(extendedStatsAggregation, "extended_stats"); - public AggregationDescriptor ExtendedStats(Action> configure) => Set(configure, "extended_stats"); - public AggregationDescriptor ExtendedStatsBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsBucketAggregation extendedStatsBucketAggregation) => Set(extendedStatsBucketAggregation, "extended_stats_bucket"); - public AggregationDescriptor ExtendedStatsBucket(Action configure) => Set(configure, "extended_stats_bucket"); - public AggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query queryContainer) => Set(queryContainer, "filter"); - public AggregationDescriptor Filter(Action> configure) => Set(configure, "filter"); - public AggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FiltersAggregation filtersAggregation) => Set(filtersAggregation, "filters"); - public AggregationDescriptor Filters(Action> configure) => Set(configure, "filters"); - public AggregationDescriptor FrequentItemSets(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsAggregation frequentItemSetsAggregation) => Set(frequentItemSetsAggregation, "frequent_item_sets"); - public AggregationDescriptor FrequentItemSets(Action> configure) => Set(configure, "frequent_item_sets"); - public AggregationDescriptor GeoBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoBoundsAggregation geoBoundsAggregation) => Set(geoBoundsAggregation, "geo_bounds"); - public AggregationDescriptor GeoBounds(Action> configure) => Set(configure, "geo_bounds"); - public AggregationDescriptor GeoCentroid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoCentroidAggregation geoCentroidAggregation) => Set(geoCentroidAggregation, "geo_centroid"); - public AggregationDescriptor GeoCentroid(Action> configure) => Set(configure, "geo_centroid"); - public AggregationDescriptor GeoDistance(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoDistanceAggregation geoDistanceAggregation) => Set(geoDistanceAggregation, "geo_distance"); - public AggregationDescriptor GeoDistance(Action> configure) => Set(configure, "geo_distance"); - public AggregationDescriptor GeohashGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohashGridAggregation geohashGridAggregation) => Set(geohashGridAggregation, "geohash_grid"); - public AggregationDescriptor GeohashGrid(Action> configure) => Set(configure, "geohash_grid"); - public AggregationDescriptor GeohexGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohexGridAggregation geohexGridAggregation) => Set(geohexGridAggregation, "geohex_grid"); - public AggregationDescriptor GeohexGrid(Action> configure) => Set(configure, "geohex_grid"); - public AggregationDescriptor GeoLine(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation geoLineAggregation) => Set(geoLineAggregation, "geo_line"); - public AggregationDescriptor GeoLine(Action> configure) => Set(configure, "geo_line"); - public AggregationDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation geotileGridAggregation) => Set(geotileGridAggregation, "geotile_grid"); - public AggregationDescriptor GeotileGrid(Action> configure) => Set(configure, "geotile_grid"); - public AggregationDescriptor Global(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GlobalAggregation globalAggregation) => Set(globalAggregation, "global"); - public AggregationDescriptor Global(Action configure) => Set(configure, "global"); - public AggregationDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation histogramAggregation) => Set(histogramAggregation, "histogram"); - public AggregationDescriptor Histogram(Action> configure) => Set(configure, "histogram"); - public AggregationDescriptor Inference(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceAggregation inferenceAggregation) => Set(inferenceAggregation, "inference"); - public AggregationDescriptor Inference(Action> configure) => Set(configure, "inference"); - public AggregationDescriptor IpPrefix(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpPrefixAggregation ipPrefixAggregation) => Set(ipPrefixAggregation, "ip_prefix"); - public AggregationDescriptor IpPrefix(Action> configure) => Set(configure, "ip_prefix"); - public AggregationDescriptor IpRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregation ipRangeAggregation) => Set(ipRangeAggregation, "ip_range"); - public AggregationDescriptor IpRange(Action> configure) => Set(configure, "ip_range"); - public AggregationDescriptor Line(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation geoLineAggregation) => Set(geoLineAggregation, "line"); - public AggregationDescriptor Line(Action> configure) => Set(configure, "line"); - public AggregationDescriptor MatrixStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MatrixStatsAggregation matrixStatsAggregation) => Set(matrixStatsAggregation, "matrix_stats"); - public AggregationDescriptor MatrixStats(Action> configure) => Set(configure, "matrix_stats"); - public AggregationDescriptor Max(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxAggregation maxAggregation) => Set(maxAggregation, "max"); - public AggregationDescriptor Max(Action> configure) => Set(configure, "max"); - public AggregationDescriptor MaxBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxBucketAggregation maxBucketAggregation) => Set(maxBucketAggregation, "max_bucket"); - public AggregationDescriptor MaxBucket(Action configure) => Set(configure, "max_bucket"); - public AggregationDescriptor MedianAbsoluteDeviation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MedianAbsoluteDeviationAggregation medianAbsoluteDeviationAggregation) => Set(medianAbsoluteDeviationAggregation, "median_absolute_deviation"); - public AggregationDescriptor MedianAbsoluteDeviation(Action> configure) => Set(configure, "median_absolute_deviation"); - public AggregationDescriptor Min(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinAggregation minAggregation) => Set(minAggregation, "min"); - public AggregationDescriptor Min(Action> configure) => Set(configure, "min"); - public AggregationDescriptor MinBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinBucketAggregation minBucketAggregation) => Set(minBucketAggregation, "min_bucket"); - public AggregationDescriptor MinBucket(Action configure) => Set(configure, "min_bucket"); - public AggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation missingAggregation) => Set(missingAggregation, "missing"); - public AggregationDescriptor Missing(Action> configure) => Set(configure, "missing"); - public AggregationDescriptor MovingFn(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingFunctionAggregation movingFunctionAggregation) => Set(movingFunctionAggregation, "moving_fn"); - public AggregationDescriptor MovingFn(Action configure) => Set(configure, "moving_fn"); - public AggregationDescriptor MovingPercentiles(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingPercentilesAggregation movingPercentilesAggregation) => Set(movingPercentilesAggregation, "moving_percentiles"); - public AggregationDescriptor MovingPercentiles(Action configure) => Set(configure, "moving_percentiles"); - public AggregationDescriptor MultiTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermsAggregation multiTermsAggregation) => Set(multiTermsAggregation, "multi_terms"); - public AggregationDescriptor MultiTerms(Action> configure) => Set(configure, "multi_terms"); - public AggregationDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NestedAggregation nestedAggregation) => Set(nestedAggregation, "nested"); - public AggregationDescriptor Nested(Action> configure) => Set(configure, "nested"); - public AggregationDescriptor Normalize(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeAggregation normalizeAggregation) => Set(normalizeAggregation, "normalize"); - public AggregationDescriptor Normalize(Action configure) => Set(configure, "normalize"); - public AggregationDescriptor Parent(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ParentAggregation parentAggregation) => Set(parentAggregation, "parent"); - public AggregationDescriptor Parent(Action configure) => Set(configure, "parent"); - public AggregationDescriptor PercentileRanks(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentileRanksAggregation percentileRanksAggregation) => Set(percentileRanksAggregation, "percentile_ranks"); - public AggregationDescriptor PercentileRanks(Action> configure) => Set(configure, "percentile_ranks"); - public AggregationDescriptor Percentiles(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesAggregation percentilesAggregation) => Set(percentilesAggregation, "percentiles"); - public AggregationDescriptor Percentiles(Action> configure) => Set(configure, "percentiles"); - public AggregationDescriptor PercentilesBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesBucketAggregation percentilesBucketAggregation) => Set(percentilesBucketAggregation, "percentiles_bucket"); - public AggregationDescriptor PercentilesBucket(Action configure) => Set(configure, "percentiles_bucket"); - public AggregationDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation rangeAggregation) => Set(rangeAggregation, "range"); - public AggregationDescriptor Range(Action> configure) => Set(configure, "range"); - public AggregationDescriptor RareTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RareTermsAggregation rareTermsAggregation) => Set(rareTermsAggregation, "rare_terms"); - public AggregationDescriptor RareTerms(Action> configure) => Set(configure, "rare_terms"); - public AggregationDescriptor Rate(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateAggregation rateAggregation) => Set(rateAggregation, "rate"); - public AggregationDescriptor Rate(Action> configure) => Set(configure, "rate"); - public AggregationDescriptor ReverseNested(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ReverseNestedAggregation reverseNestedAggregation) => Set(reverseNestedAggregation, "reverse_nested"); - public AggregationDescriptor ReverseNested(Action> configure) => Set(configure, "reverse_nested"); - public AggregationDescriptor Sampler(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregation samplerAggregation) => Set(samplerAggregation, "sampler"); - public AggregationDescriptor Sampler(Action configure) => Set(configure, "sampler"); - public AggregationDescriptor ScriptedMetric(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedMetricAggregation scriptedMetricAggregation) => Set(scriptedMetricAggregation, "scripted_metric"); - public AggregationDescriptor ScriptedMetric(Action> configure) => Set(configure, "scripted_metric"); - public AggregationDescriptor SerialDiff(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SerialDifferencingAggregation serialDifferencingAggregation) => Set(serialDifferencingAggregation, "serial_diff"); - public AggregationDescriptor SerialDiff(Action configure) => Set(configure, "serial_diff"); - public AggregationDescriptor SignificantTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTermsAggregation significantTermsAggregation) => Set(significantTermsAggregation, "significant_terms"); - public AggregationDescriptor SignificantTerms(Action> configure) => Set(configure, "significant_terms"); - public AggregationDescriptor SignificantText(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTextAggregation significantTextAggregation) => Set(significantTextAggregation, "significant_text"); - public AggregationDescriptor SignificantText(Action> configure) => Set(configure, "significant_text"); - public AggregationDescriptor Stats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsAggregation statsAggregation) => Set(statsAggregation, "stats"); - public AggregationDescriptor Stats(Action> configure) => Set(configure, "stats"); - public AggregationDescriptor StatsBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsBucketAggregation statsBucketAggregation) => Set(statsBucketAggregation, "stats_bucket"); - public AggregationDescriptor StatsBucket(Action configure) => Set(configure, "stats_bucket"); - public AggregationDescriptor StringStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringStatsAggregation stringStatsAggregation) => Set(stringStatsAggregation, "string_stats"); - public AggregationDescriptor StringStats(Action> configure) => Set(configure, "string_stats"); - public AggregationDescriptor Sum(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregation sumAggregation) => Set(sumAggregation, "sum"); - public AggregationDescriptor Sum(Action> configure) => Set(configure, "sum"); - public AggregationDescriptor SumBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumBucketAggregation sumBucketAggregation) => Set(sumBucketAggregation, "sum_bucket"); - public AggregationDescriptor SumBucket(Action configure) => Set(configure, "sum_bucket"); - public AggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); - public AggregationDescriptor Terms(Action> configure) => Set(configure, "terms"); - public AggregationDescriptor TopHits(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregation topHitsAggregation) => Set(topHitsAggregation, "top_hits"); - public AggregationDescriptor TopHits(Action> configure) => Set(configure, "top_hits"); - public AggregationDescriptor TopMetrics(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregation topMetricsAggregation) => Set(topMetricsAggregation, "top_metrics"); - public AggregationDescriptor TopMetrics(Action> configure) => Set(configure, "top_metrics"); - public AggregationDescriptor TTest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregation tTestAggregation) => Set(tTestAggregation, "t_test"); - public AggregationDescriptor TTest(Action> configure) => Set(configure, "t_test"); - public AggregationDescriptor ValueCount(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation valueCountAggregation) => Set(valueCountAggregation, "value_count"); - public AggregationDescriptor ValueCount(Action> configure) => Set(configure, "value_count"); - public AggregationDescriptor VariableWidthHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.VariableWidthHistogramAggregation variableWidthHistogramAggregation) => Set(variableWidthHistogramAggregation, "variable_width_histogram"); - public AggregationDescriptor VariableWidthHistogram(Action> configure) => Set(configure, "variable_width_histogram"); - public AggregationDescriptor WeightedAvg(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageAggregation weightedAverageAggregation) => Set(weightedAverageAggregation, "weighted_avg"); - public AggregationDescriptor WeightedAvg(Action> configure) => Set(configure, "weighted_avg"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AggregationDescriptor : SerializableDescriptor -{ - internal AggregationDescriptor(Action configure) => configure.Invoke(this); - - public AggregationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private AggregationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private AggregationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private IDictionary AggregationsValue { get; set; } - private IDictionary? MetaValue { get; set; } - - /// - /// - /// Sub-aggregations for this aggregation. - /// Only applies to bucket aggregations. - /// - /// - public AggregationDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public AggregationDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public AggregationDescriptor AdjacencyMatrix(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AdjacencyMatrixAggregation adjacencyMatrixAggregation) => Set(adjacencyMatrixAggregation, "adjacency_matrix"); - public AggregationDescriptor AdjacencyMatrix(Action configure) => Set(configure, "adjacency_matrix"); - public AggregationDescriptor AutoDateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AutoDateHistogramAggregation autoDateHistogramAggregation) => Set(autoDateHistogramAggregation, "auto_date_histogram"); - public AggregationDescriptor AutoDateHistogram(Action configure) => Set(configure, "auto_date_histogram"); - public AggregationDescriptor Avg(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageAggregation averageAggregation) => Set(averageAggregation, "avg"); - public AggregationDescriptor Avg(Action configure) => Set(configure, "avg"); - public AggregationDescriptor AvgBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AverageBucketAggregation averageBucketAggregation) => Set(averageBucketAggregation, "avg_bucket"); - public AggregationDescriptor AvgBucket(Action configure) => Set(configure, "avg_bucket"); - public AggregationDescriptor Boxplot(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BoxplotAggregation boxplotAggregation) => Set(boxplotAggregation, "boxplot"); - public AggregationDescriptor Boxplot(Action configure) => Set(configure, "boxplot"); - public AggregationDescriptor BucketScript(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketScriptAggregation bucketScriptAggregation) => Set(bucketScriptAggregation, "bucket_script"); - public AggregationDescriptor BucketScript(Action configure) => Set(configure, "bucket_script"); - public AggregationDescriptor BucketSelector(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSelectorAggregation bucketSelectorAggregation) => Set(bucketSelectorAggregation, "bucket_selector"); - public AggregationDescriptor BucketSelector(Action configure) => Set(configure, "bucket_selector"); - public AggregationDescriptor BucketSort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketSortAggregation bucketSortAggregation) => Set(bucketSortAggregation, "bucket_sort"); - public AggregationDescriptor BucketSort(Action configure) => Set(configure, "bucket_sort"); - public AggregationDescriptor Cardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation cardinalityAggregation) => Set(cardinalityAggregation, "cardinality"); - public AggregationDescriptor Cardinality(Action configure) => Set(configure, "cardinality"); - public AggregationDescriptor Children(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChildrenAggregation childrenAggregation) => Set(childrenAggregation, "children"); - public AggregationDescriptor Children(Action configure) => Set(configure, "children"); - public AggregationDescriptor Composite(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation compositeAggregation) => Set(compositeAggregation, "composite"); - public AggregationDescriptor Composite(Action configure) => Set(configure, "composite"); - public AggregationDescriptor CumulativeCardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeCardinalityAggregation cumulativeCardinalityAggregation) => Set(cumulativeCardinalityAggregation, "cumulative_cardinality"); - public AggregationDescriptor CumulativeCardinality(Action configure) => Set(configure, "cumulative_cardinality"); - public AggregationDescriptor CumulativeSum(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CumulativeSumAggregation cumulativeSumAggregation) => Set(cumulativeSumAggregation, "cumulative_sum"); - public AggregationDescriptor CumulativeSum(Action configure) => Set(configure, "cumulative_sum"); - public AggregationDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation dateHistogramAggregation) => Set(dateHistogramAggregation, "date_histogram"); - public AggregationDescriptor DateHistogram(Action configure) => Set(configure, "date_histogram"); - public AggregationDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation dateRangeAggregation) => Set(dateRangeAggregation, "date_range"); - public AggregationDescriptor DateRange(Action configure) => Set(configure, "date_range"); - public AggregationDescriptor Derivative(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DerivativeAggregation derivativeAggregation) => Set(derivativeAggregation, "derivative"); - public AggregationDescriptor Derivative(Action configure) => Set(configure, "derivative"); - public AggregationDescriptor DiversifiedSampler(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DiversifiedSamplerAggregation diversifiedSamplerAggregation) => Set(diversifiedSamplerAggregation, "diversified_sampler"); - public AggregationDescriptor DiversifiedSampler(Action configure) => Set(configure, "diversified_sampler"); - public AggregationDescriptor ExtendedStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsAggregation extendedStatsAggregation) => Set(extendedStatsAggregation, "extended_stats"); - public AggregationDescriptor ExtendedStats(Action configure) => Set(configure, "extended_stats"); - public AggregationDescriptor ExtendedStatsBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedStatsBucketAggregation extendedStatsBucketAggregation) => Set(extendedStatsBucketAggregation, "extended_stats_bucket"); - public AggregationDescriptor ExtendedStatsBucket(Action configure) => Set(configure, "extended_stats_bucket"); - public AggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query queryContainer) => Set(queryContainer, "filter"); - public AggregationDescriptor Filter(Action configure) => Set(configure, "filter"); - public AggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FiltersAggregation filtersAggregation) => Set(filtersAggregation, "filters"); - public AggregationDescriptor Filters(Action configure) => Set(configure, "filters"); - public AggregationDescriptor FrequentItemSets(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsAggregation frequentItemSetsAggregation) => Set(frequentItemSetsAggregation, "frequent_item_sets"); - public AggregationDescriptor FrequentItemSets(Action configure) => Set(configure, "frequent_item_sets"); - public AggregationDescriptor GeoBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoBoundsAggregation geoBoundsAggregation) => Set(geoBoundsAggregation, "geo_bounds"); - public AggregationDescriptor GeoBounds(Action configure) => Set(configure, "geo_bounds"); - public AggregationDescriptor GeoCentroid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoCentroidAggregation geoCentroidAggregation) => Set(geoCentroidAggregation, "geo_centroid"); - public AggregationDescriptor GeoCentroid(Action configure) => Set(configure, "geo_centroid"); - public AggregationDescriptor GeoDistance(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoDistanceAggregation geoDistanceAggregation) => Set(geoDistanceAggregation, "geo_distance"); - public AggregationDescriptor GeoDistance(Action configure) => Set(configure, "geo_distance"); - public AggregationDescriptor GeohashGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohashGridAggregation geohashGridAggregation) => Set(geohashGridAggregation, "geohash_grid"); - public AggregationDescriptor GeohashGrid(Action configure) => Set(configure, "geohash_grid"); - public AggregationDescriptor GeohexGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeohexGridAggregation geohexGridAggregation) => Set(geohexGridAggregation, "geohex_grid"); - public AggregationDescriptor GeohexGrid(Action configure) => Set(configure, "geohex_grid"); - public AggregationDescriptor GeoLine(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation geoLineAggregation) => Set(geoLineAggregation, "geo_line"); - public AggregationDescriptor GeoLine(Action configure) => Set(configure, "geo_line"); - public AggregationDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation geotileGridAggregation) => Set(geotileGridAggregation, "geotile_grid"); - public AggregationDescriptor GeotileGrid(Action configure) => Set(configure, "geotile_grid"); - public AggregationDescriptor Global(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GlobalAggregation globalAggregation) => Set(globalAggregation, "global"); - public AggregationDescriptor Global(Action configure) => Set(configure, "global"); - public AggregationDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation histogramAggregation) => Set(histogramAggregation, "histogram"); - public AggregationDescriptor Histogram(Action configure) => Set(configure, "histogram"); - public AggregationDescriptor Inference(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceAggregation inferenceAggregation) => Set(inferenceAggregation, "inference"); - public AggregationDescriptor Inference(Action configure) => Set(configure, "inference"); - public AggregationDescriptor IpPrefix(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpPrefixAggregation ipPrefixAggregation) => Set(ipPrefixAggregation, "ip_prefix"); - public AggregationDescriptor IpPrefix(Action configure) => Set(configure, "ip_prefix"); - public AggregationDescriptor IpRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregation ipRangeAggregation) => Set(ipRangeAggregation, "ip_range"); - public AggregationDescriptor IpRange(Action configure) => Set(configure, "ip_range"); - public AggregationDescriptor Line(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineAggregation geoLineAggregation) => Set(geoLineAggregation, "line"); - public AggregationDescriptor Line(Action configure) => Set(configure, "line"); - public AggregationDescriptor MatrixStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MatrixStatsAggregation matrixStatsAggregation) => Set(matrixStatsAggregation, "matrix_stats"); - public AggregationDescriptor MatrixStats(Action configure) => Set(configure, "matrix_stats"); - public AggregationDescriptor Max(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxAggregation maxAggregation) => Set(maxAggregation, "max"); - public AggregationDescriptor Max(Action configure) => Set(configure, "max"); - public AggregationDescriptor MaxBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MaxBucketAggregation maxBucketAggregation) => Set(maxBucketAggregation, "max_bucket"); - public AggregationDescriptor MaxBucket(Action configure) => Set(configure, "max_bucket"); - public AggregationDescriptor MedianAbsoluteDeviation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MedianAbsoluteDeviationAggregation medianAbsoluteDeviationAggregation) => Set(medianAbsoluteDeviationAggregation, "median_absolute_deviation"); - public AggregationDescriptor MedianAbsoluteDeviation(Action configure) => Set(configure, "median_absolute_deviation"); - public AggregationDescriptor Min(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinAggregation minAggregation) => Set(minAggregation, "min"); - public AggregationDescriptor Min(Action configure) => Set(configure, "min"); - public AggregationDescriptor MinBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinBucketAggregation minBucketAggregation) => Set(minBucketAggregation, "min_bucket"); - public AggregationDescriptor MinBucket(Action configure) => Set(configure, "min_bucket"); - public AggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation missingAggregation) => Set(missingAggregation, "missing"); - public AggregationDescriptor Missing(Action configure) => Set(configure, "missing"); - public AggregationDescriptor MovingFn(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingFunctionAggregation movingFunctionAggregation) => Set(movingFunctionAggregation, "moving_fn"); - public AggregationDescriptor MovingFn(Action configure) => Set(configure, "moving_fn"); - public AggregationDescriptor MovingPercentiles(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MovingPercentilesAggregation movingPercentilesAggregation) => Set(movingPercentilesAggregation, "moving_percentiles"); - public AggregationDescriptor MovingPercentiles(Action configure) => Set(configure, "moving_percentiles"); - public AggregationDescriptor MultiTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermsAggregation multiTermsAggregation) => Set(multiTermsAggregation, "multi_terms"); - public AggregationDescriptor MultiTerms(Action configure) => Set(configure, "multi_terms"); - public AggregationDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NestedAggregation nestedAggregation) => Set(nestedAggregation, "nested"); - public AggregationDescriptor Nested(Action configure) => Set(configure, "nested"); - public AggregationDescriptor Normalize(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeAggregation normalizeAggregation) => Set(normalizeAggregation, "normalize"); - public AggregationDescriptor Normalize(Action configure) => Set(configure, "normalize"); - public AggregationDescriptor Parent(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ParentAggregation parentAggregation) => Set(parentAggregation, "parent"); - public AggregationDescriptor Parent(Action configure) => Set(configure, "parent"); - public AggregationDescriptor PercentileRanks(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentileRanksAggregation percentileRanksAggregation) => Set(percentileRanksAggregation, "percentile_ranks"); - public AggregationDescriptor PercentileRanks(Action configure) => Set(configure, "percentile_ranks"); - public AggregationDescriptor Percentiles(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesAggregation percentilesAggregation) => Set(percentilesAggregation, "percentiles"); - public AggregationDescriptor Percentiles(Action configure) => Set(configure, "percentiles"); - public AggregationDescriptor PercentilesBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentilesBucketAggregation percentilesBucketAggregation) => Set(percentilesBucketAggregation, "percentiles_bucket"); - public AggregationDescriptor PercentilesBucket(Action configure) => Set(configure, "percentiles_bucket"); - public AggregationDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation rangeAggregation) => Set(rangeAggregation, "range"); - public AggregationDescriptor Range(Action configure) => Set(configure, "range"); - public AggregationDescriptor RareTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RareTermsAggregation rareTermsAggregation) => Set(rareTermsAggregation, "rare_terms"); - public AggregationDescriptor RareTerms(Action configure) => Set(configure, "rare_terms"); - public AggregationDescriptor Rate(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateAggregation rateAggregation) => Set(rateAggregation, "rate"); - public AggregationDescriptor Rate(Action configure) => Set(configure, "rate"); - public AggregationDescriptor ReverseNested(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ReverseNestedAggregation reverseNestedAggregation) => Set(reverseNestedAggregation, "reverse_nested"); - public AggregationDescriptor ReverseNested(Action configure) => Set(configure, "reverse_nested"); - public AggregationDescriptor Sampler(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregation samplerAggregation) => Set(samplerAggregation, "sampler"); - public AggregationDescriptor Sampler(Action configure) => Set(configure, "sampler"); - public AggregationDescriptor ScriptedMetric(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedMetricAggregation scriptedMetricAggregation) => Set(scriptedMetricAggregation, "scripted_metric"); - public AggregationDescriptor ScriptedMetric(Action configure) => Set(configure, "scripted_metric"); - public AggregationDescriptor SerialDiff(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SerialDifferencingAggregation serialDifferencingAggregation) => Set(serialDifferencingAggregation, "serial_diff"); - public AggregationDescriptor SerialDiff(Action configure) => Set(configure, "serial_diff"); - public AggregationDescriptor SignificantTerms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTermsAggregation significantTermsAggregation) => Set(significantTermsAggregation, "significant_terms"); - public AggregationDescriptor SignificantTerms(Action configure) => Set(configure, "significant_terms"); - public AggregationDescriptor SignificantText(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SignificantTextAggregation significantTextAggregation) => Set(significantTextAggregation, "significant_text"); - public AggregationDescriptor SignificantText(Action configure) => Set(configure, "significant_text"); - public AggregationDescriptor Stats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsAggregation statsAggregation) => Set(statsAggregation, "stats"); - public AggregationDescriptor Stats(Action configure) => Set(configure, "stats"); - public AggregationDescriptor StatsBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StatsBucketAggregation statsBucketAggregation) => Set(statsBucketAggregation, "stats_bucket"); - public AggregationDescriptor StatsBucket(Action configure) => Set(configure, "stats_bucket"); - public AggregationDescriptor StringStats(Elastic.Clients.Elasticsearch.Serverless.Aggregations.StringStatsAggregation stringStatsAggregation) => Set(stringStatsAggregation, "string_stats"); - public AggregationDescriptor StringStats(Action configure) => Set(configure, "string_stats"); - public AggregationDescriptor Sum(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumAggregation sumAggregation) => Set(sumAggregation, "sum"); - public AggregationDescriptor Sum(Action configure) => Set(configure, "sum"); - public AggregationDescriptor SumBucket(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SumBucketAggregation sumBucketAggregation) => Set(sumBucketAggregation, "sum_bucket"); - public AggregationDescriptor SumBucket(Action configure) => Set(configure, "sum_bucket"); - public AggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); - public AggregationDescriptor Terms(Action configure) => Set(configure, "terms"); - public AggregationDescriptor TopHits(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopHitsAggregation topHitsAggregation) => Set(topHitsAggregation, "top_hits"); - public AggregationDescriptor TopHits(Action configure) => Set(configure, "top_hits"); - public AggregationDescriptor TopMetrics(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsAggregation topMetricsAggregation) => Set(topMetricsAggregation, "top_metrics"); - public AggregationDescriptor TopMetrics(Action configure) => Set(configure, "top_metrics"); - public AggregationDescriptor TTest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestAggregation tTestAggregation) => Set(tTestAggregation, "t_test"); - public AggregationDescriptor TTest(Action configure) => Set(configure, "t_test"); - public AggregationDescriptor ValueCount(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation valueCountAggregation) => Set(valueCountAggregation, "value_count"); - public AggregationDescriptor ValueCount(Action configure) => Set(configure, "value_count"); - public AggregationDescriptor VariableWidthHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.VariableWidthHistogramAggregation variableWidthHistogramAggregation) => Set(variableWidthHistogramAggregation, "variable_width_histogram"); - public AggregationDescriptor VariableWidthHistogram(Action configure) => Set(configure, "variable_width_histogram"); - public AggregationDescriptor WeightedAvg(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageAggregation weightedAverageAggregation) => Set(weightedAverageAggregation, "weighted_avg"); - public AggregationDescriptor WeightedAvg(Action configure) => Set(configure, "weighted_avg"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregationRange.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregationRange.g.cs deleted file mode 100644 index 34c3c4015eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AggregationRange.g.cs +++ /dev/null @@ -1,125 +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.Aggregations; - -public sealed partial class AggregationRange -{ - /// - /// - /// Start of the range (inclusive). - /// - /// - [JsonInclude, JsonPropertyName("from")] - public double? From { get; set; } - - /// - /// - /// Custom key to return the range with. - /// - /// - [JsonInclude, JsonPropertyName("key")] - public string? Key { get; set; } - - /// - /// - /// End of the range (exclusive). - /// - /// - [JsonInclude, JsonPropertyName("to")] - public double? To { get; set; } -} - -public sealed partial class AggregationRangeDescriptor : SerializableDescriptor -{ - internal AggregationRangeDescriptor(Action configure) => configure.Invoke(this); - - public AggregationRangeDescriptor() : base() - { - } - - private double? FromValue { get; set; } - private string? KeyValue { get; set; } - private double? ToValue { get; set; } - - /// - /// - /// Start of the range (inclusive). - /// - /// - public AggregationRangeDescriptor From(double? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Custom key to return the range with. - /// - /// - public AggregationRangeDescriptor Key(string? key) - { - KeyValue = key; - return Self; - } - - /// - /// - /// End of the range (exclusive). - /// - /// - public AggregationRangeDescriptor To(double? to) - { - ToValue = to; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (!string.IsNullOrEmpty(KeyValue)) - { - writer.WritePropertyName("key"); - writer.WriteStringValue(KeyValue); - } - - if (ToValue.HasValue) - { - writer.WritePropertyName("to"); - writer.WriteNumberValue(ToValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ArrayPercentilesItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ArrayPercentilesItem.g.cs deleted file mode 100644 index b6a82927a11..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ArrayPercentilesItem.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class ArrayPercentilesItem -{ - [JsonInclude, JsonPropertyName("key")] - public string Key { get; init; } - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs deleted file mode 100644 index 7e74900acda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregate.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class AutoDateHistogramAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("interval")] - public string Interval { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index a2f98a53ca0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AutoDateHistogramAggregation.g.cs +++ /dev/null @@ -1,542 +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.Aggregations; - -public sealed partial class AutoDateHistogramAggregation -{ - /// - /// - /// The target number of buckets. - /// - /// - [JsonInclude, JsonPropertyName("buckets")] - public int? Buckets { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The date format used to format key_as_string in the response. - /// If no format is specified, the first date format specified in the field mapping is used. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The minimum rounding interval. - /// This can make the collection process more efficient, as the aggregation will not attempt to round at any interval lower than minimum_interval. - /// - /// - [JsonInclude, JsonPropertyName("minimum_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinimumInterval? MinimumInterval { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public DateTimeOffset? Missing { get; set; } - - /// - /// - /// Time zone specified as a ISO 8601 UTC offset. - /// - /// - [JsonInclude, JsonPropertyName("offset")] - public string? Offset { get; set; } - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Time zone ID. - /// - /// - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(AutoDateHistogramAggregation autoDateHistogramAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.AutoDateHistogram(autoDateHistogramAggregation); -} - -public sealed partial class AutoDateHistogramAggregationDescriptor : SerializableDescriptor> -{ - internal AutoDateHistogramAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public AutoDateHistogramAggregationDescriptor() : base() - { - } - - private int? BucketsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinimumInterval? MinimumIntervalValue { get; set; } - private DateTimeOffset? MissingValue { get; set; } - 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; } - - /// - /// - /// The target number of buckets. - /// - /// - public AutoDateHistogramAggregationDescriptor Buckets(int? buckets) - { - BucketsValue = buckets; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AutoDateHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AutoDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AutoDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date format used to format key_as_string in the response. - /// If no format is specified, the first date format specified in the field mapping is used. - /// - /// - public AutoDateHistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The minimum rounding interval. - /// This can make the collection process more efficient, as the aggregation will not attempt to round at any interval lower than minimum_interval. - /// - /// - public AutoDateHistogramAggregationDescriptor MinimumInterval(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinimumInterval? minimumInterval) - { - MinimumIntervalValue = minimumInterval; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public AutoDateHistogramAggregationDescriptor Missing(DateTimeOffset? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Time zone specified as a ISO 8601 UTC offset. - /// - /// - public AutoDateHistogramAggregationDescriptor Offset(string? offset) - { - OffsetValue = offset; - return Self; - } - - public AutoDateHistogramAggregationDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public AutoDateHistogramAggregationDescriptor 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. - /// - /// - public AutoDateHistogramAggregationDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsValue.HasValue) - { - writer.WritePropertyName("buckets"); - writer.WriteNumberValue(BucketsValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MinimumIntervalValue is not null) - { - writer.WritePropertyName("minimum_interval"); - JsonSerializer.Serialize(writer, MinimumIntervalValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (!string.IsNullOrEmpty(OffsetValue)) - { - writer.WritePropertyName("offset"); - writer.WriteStringValue(OffsetValue); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AutoDateHistogramAggregationDescriptor : SerializableDescriptor -{ - internal AutoDateHistogramAggregationDescriptor(Action configure) => configure.Invoke(this); - - public AutoDateHistogramAggregationDescriptor() : base() - { - } - - private int? BucketsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinimumInterval? MinimumIntervalValue { get; set; } - private DateTimeOffset? MissingValue { get; set; } - 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; } - - /// - /// - /// The target number of buckets. - /// - /// - public AutoDateHistogramAggregationDescriptor Buckets(int? buckets) - { - BucketsValue = buckets; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AutoDateHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AutoDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AutoDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date format used to format key_as_string in the response. - /// If no format is specified, the first date format specified in the field mapping is used. - /// - /// - public AutoDateHistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The minimum rounding interval. - /// This can make the collection process more efficient, as the aggregation will not attempt to round at any interval lower than minimum_interval. - /// - /// - public AutoDateHistogramAggregationDescriptor MinimumInterval(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MinimumInterval? minimumInterval) - { - MinimumIntervalValue = minimumInterval; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public AutoDateHistogramAggregationDescriptor Missing(DateTimeOffset? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Time zone specified as a ISO 8601 UTC offset. - /// - /// - public AutoDateHistogramAggregationDescriptor Offset(string? offset) - { - OffsetValue = offset; - return Self; - } - - public AutoDateHistogramAggregationDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public AutoDateHistogramAggregationDescriptor 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. - /// - /// - public AutoDateHistogramAggregationDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsValue.HasValue) - { - writer.WritePropertyName("buckets"); - writer.WriteNumberValue(BucketsValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MinimumIntervalValue is not null) - { - writer.WritePropertyName("minimum_interval"); - JsonSerializer.Serialize(writer, MinimumIntervalValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (!string.IsNullOrEmpty(OffsetValue)) - { - writer.WritePropertyName("offset"); - writer.WriteStringValue(OffsetValue); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregate.g.cs deleted file mode 100644 index c583ff496b8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -public sealed partial class AverageAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 8bb99fed5ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageAggregation.g.cs +++ /dev/null @@ -1,316 +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.Aggregations; - -public sealed partial class AverageAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(AverageAggregation averageAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Avg(averageAggregation); -} - -public sealed partial class AverageAggregationDescriptor : SerializableDescriptor> -{ - internal AverageAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public AverageAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public AverageAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AverageAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AverageAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AverageAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public AverageAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AverageAggregationDescriptor : SerializableDescriptor -{ - internal AverageAggregationDescriptor(Action configure) => configure.Invoke(this); - - public AverageAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public AverageAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AverageAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public AverageAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public AverageAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public AverageAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/AverageBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs deleted file mode 100644 index 09fce4611a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/AverageBucketAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class AverageBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(AverageBucketAggregation averageBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.AvgBucket(averageBucketAggregation); -} - -public sealed partial class AverageBucketAggregationDescriptor : SerializableDescriptor -{ - internal AverageBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public AverageBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public AverageBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public AverageBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public AverageBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregate.g.cs deleted file mode 100644 index 2be67ea4c19..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregate.g.cs +++ /dev/null @@ -1,62 +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.Aggregations; - -public sealed partial class BoxplotAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("lower")] - public double Lower { get; init; } - [JsonInclude, JsonPropertyName("lower_as_string")] - public string? LowerAsString { get; init; } - [JsonInclude, JsonPropertyName("max")] - public double Max { get; init; } - [JsonInclude, JsonPropertyName("max_as_string")] - public string? MaxAsString { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("min")] - public double Min { get; init; } - [JsonInclude, JsonPropertyName("min_as_string")] - public string? MinAsString { get; init; } - [JsonInclude, JsonPropertyName("q1")] - public double Q1 { get; init; } - [JsonInclude, JsonPropertyName("q1_as_string")] - public string? Q1AsString { get; init; } - [JsonInclude, JsonPropertyName("q2")] - public double Q2 { get; init; } - [JsonInclude, JsonPropertyName("q2_as_string")] - public string? Q2AsString { get; init; } - [JsonInclude, JsonPropertyName("q3")] - public double Q3 { get; init; } - [JsonInclude, JsonPropertyName("q3_as_string")] - public string? Q3AsString { get; init; } - [JsonInclude, JsonPropertyName("upper")] - public double Upper { get; init; } - [JsonInclude, JsonPropertyName("upper_as_string")] - public string? UpperAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 3b6483459f7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BoxplotAggregation.g.cs +++ /dev/null @@ -1,332 +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.Aggregations; - -public sealed partial class BoxplotAggregation -{ - /// - /// - /// Limits the maximum number of nodes used by the underlying TDigest algorithm to 20 * compression, enabling control of memory usage and approximation error. - /// - /// - [JsonInclude, JsonPropertyName("compression")] - public double? Compression { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(BoxplotAggregation boxplotAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Boxplot(boxplotAggregation); -} - -public sealed partial class BoxplotAggregationDescriptor : SerializableDescriptor> -{ - internal BoxplotAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public BoxplotAggregationDescriptor() : base() - { - } - - private double? CompressionValue { get; set; } - 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. - /// - /// - public BoxplotAggregationDescriptor Compression(double? compression) - { - CompressionValue = compression; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public BoxplotAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public BoxplotAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public BoxplotAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public BoxplotAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (CompressionValue.HasValue) - { - writer.WritePropertyName("compression"); - writer.WriteNumberValue(CompressionValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class BoxplotAggregationDescriptor : SerializableDescriptor -{ - internal BoxplotAggregationDescriptor(Action configure) => configure.Invoke(this); - - public BoxplotAggregationDescriptor() : base() - { - } - - private double? CompressionValue { get; set; } - 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. - /// - /// - public BoxplotAggregationDescriptor Compression(double? compression) - { - CompressionValue = compression; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public BoxplotAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public BoxplotAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public BoxplotAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public BoxplotAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (CompressionValue.HasValue) - { - writer.WritePropertyName("compression"); - writer.WriteNumberValue(CompressionValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/BucketMetricValueAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs deleted file mode 100644 index 4929e00d636..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketMetricValueAggregate.g.cs +++ /dev/null @@ -1,47 +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.Aggregations; - -public sealed partial class BucketMetricValueAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("keys")] - public IReadOnlyCollection Keys { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 46a0e964fef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketScriptAggregation.g.cs +++ /dev/null @@ -1,185 +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.Aggregations; - -public sealed partial class BucketScriptAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The script to run for this aggregation. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(BucketScriptAggregation bucketScriptAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.BucketScript(bucketScriptAggregation); -} - -public sealed partial class BucketScriptAggregationDescriptor : SerializableDescriptor -{ - internal BucketScriptAggregationDescriptor(Action configure) => configure.Invoke(this); - - public BucketScriptAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - 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. - /// - /// - public BucketScriptAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public BucketScriptAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public BucketScriptAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The script to run for this aggregation. - /// - /// - 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(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, 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 if (ScriptValue is not null) - { - 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/BucketSelectorAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs deleted file mode 100644 index debc2ea2a74..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSelectorAggregation.g.cs +++ /dev/null @@ -1,185 +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.Aggregations; - -public sealed partial class BucketSelectorAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The script to run for this aggregation. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(BucketSelectorAggregation bucketSelectorAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.BucketSelector(bucketSelectorAggregation); -} - -public sealed partial class BucketSelectorAggregationDescriptor : SerializableDescriptor -{ - internal BucketSelectorAggregationDescriptor(Action configure) => configure.Invoke(this); - - public BucketSelectorAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - 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. - /// - /// - public BucketSelectorAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public BucketSelectorAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public BucketSelectorAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The script to run for this aggregation. - /// - /// - 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(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, 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 if (ScriptValue is not null) - { - 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/BucketSortAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSortAggregation.g.cs deleted file mode 100644 index 93e5a1a5b67..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/BucketSortAggregation.g.cs +++ /dev/null @@ -1,357 +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.Aggregations; - -public sealed partial class BucketSortAggregation -{ - /// - /// - /// Buckets in positions prior to from will be truncated. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// The policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The number of buckets to return. - /// Defaults to all buckets of the parent aggregation. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The list of fields to sort on. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(BucketSortAggregation bucketSortAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.BucketSort(bucketSortAggregation); -} - -public sealed partial class BucketSortAggregationDescriptor : SerializableDescriptor> -{ - internal BucketSortAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public BucketSortAggregationDescriptor() : base() - { - } - - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - - /// - /// - /// Buckets in positions prior to from will be truncated. - /// - /// - public BucketSortAggregationDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// The policy to apply when gaps are found in the data. - /// - /// - public BucketSortAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The number of buckets to return. - /// Defaults to all buckets of the parent aggregation. - /// - /// - public BucketSortAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The list of fields to sort on. - /// - /// - public BucketSortAggregationDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public BucketSortAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public BucketSortAggregationDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public BucketSortAggregationDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class BucketSortAggregationDescriptor : SerializableDescriptor -{ - internal BucketSortAggregationDescriptor(Action configure) => configure.Invoke(this); - - public BucketSortAggregationDescriptor() : base() - { - } - - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - - /// - /// - /// Buckets in positions prior to from will be truncated. - /// - /// - public BucketSortAggregationDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// The policy to apply when gaps are found in the data. - /// - /// - public BucketSortAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The number of buckets to return. - /// Defaults to all buckets of the parent aggregation. - /// - /// - public BucketSortAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The list of fields to sort on. - /// - /// - public BucketSortAggregationDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public BucketSortAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public BucketSortAggregationDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public BucketSortAggregationDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Buckets.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Buckets.g.cs deleted file mode 100644 index 8bc046aac83..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Buckets.g.cs +++ /dev/null @@ -1,48 +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.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.Aggregations; - -/// -/// -/// Aggregation buckets. By default they are returned as an array, but if the aggregation has keys configured for -/// the different buckets, the result is a dictionary. -/// -/// -public sealed partial class Buckets : Union, IReadOnlyCollection> -{ - public Buckets(IReadOnlyDictionary Keyed) : base(Keyed) - { - } - - public Buckets(IReadOnlyCollection Array) : base(Array) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregate.g.cs deleted file mode 100644 index f6c9cc9a95a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class CardinalityAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("value")] - public long Value { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 4197e991736..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CardinalityAggregation.g.cs +++ /dev/null @@ -1,408 +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.Aggregations; - -public sealed partial class CardinalityAggregation -{ - /// - /// - /// Mechanism by which cardinality aggregations is run. - /// - /// - [JsonInclude, JsonPropertyName("execution_hint")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityExecutionMode? ExecutionHint { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - /// - /// - /// A unique count below which counts are expected to be close to accurate. - /// This allows to trade memory for accuracy. - /// - /// - [JsonInclude, JsonPropertyName("precision_threshold")] - public int? PrecisionThreshold { get; set; } - [JsonInclude, JsonPropertyName("rehash")] - public bool? Rehash { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(CardinalityAggregation cardinalityAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Cardinality(cardinalityAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(CardinalityAggregation cardinalityAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.Cardinality(cardinalityAggregation); -} - -public sealed partial class CardinalityAggregationDescriptor : SerializableDescriptor> -{ - internal CardinalityAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public CardinalityAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityExecutionMode? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - 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. - /// - /// - public CardinalityAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityExecutionMode? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public CardinalityAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public CardinalityAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public CardinalityAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public CardinalityAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// A unique count below which counts are expected to be close to accurate. - /// This allows to trade memory for accuracy. - /// - /// - public CardinalityAggregationDescriptor PrecisionThreshold(int? precisionThreshold) - { - PrecisionThresholdValue = precisionThreshold; - return Self; - } - - public CardinalityAggregationDescriptor Rehash(bool? rehash = true) - { - RehashValue = rehash; - return Self; - } - - 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(); - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (PrecisionThresholdValue.HasValue) - { - writer.WritePropertyName("precision_threshold"); - writer.WriteNumberValue(PrecisionThresholdValue.Value); - } - - if (RehashValue.HasValue) - { - writer.WritePropertyName("rehash"); - writer.WriteBooleanValue(RehashValue.Value); - } - - 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); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CardinalityAggregationDescriptor : SerializableDescriptor -{ - internal CardinalityAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CardinalityAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityExecutionMode? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - 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. - /// - /// - public CardinalityAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityExecutionMode? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public CardinalityAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public CardinalityAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public CardinalityAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public CardinalityAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// A unique count below which counts are expected to be close to accurate. - /// This allows to trade memory for accuracy. - /// - /// - public CardinalityAggregationDescriptor PrecisionThreshold(int? precisionThreshold) - { - PrecisionThresholdValue = precisionThreshold; - return Self; - } - - public CardinalityAggregationDescriptor Rehash(bool? rehash = true) - { - RehashValue = rehash; - return Self; - } - - 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(); - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (PrecisionThresholdValue.HasValue) - { - writer.WritePropertyName("precision_threshold"); - writer.WriteNumberValue(PrecisionThresholdValue.Value); - } - - if (RehashValue.HasValue) - { - writer.WritePropertyName("rehash"); - writer.WriteBooleanValue(RehashValue.Value); - } - - 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); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs deleted file mode 100644 index c1a258dbf75..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChiSquareHeuristic.g.cs +++ /dev/null @@ -1,91 +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.Aggregations; - -public sealed partial class ChiSquareHeuristic -{ - /// - /// - /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. - /// - /// - [JsonInclude, JsonPropertyName("background_is_superset")] - public bool BackgroundIsSuperset { get; set; } - - /// - /// - /// Set to false to filter out the terms that appear less often in the subset than in documents outside the subset. - /// - /// - [JsonInclude, JsonPropertyName("include_negatives")] - public bool IncludeNegatives { get; set; } -} - -public sealed partial class ChiSquareHeuristicDescriptor : SerializableDescriptor -{ - internal ChiSquareHeuristicDescriptor(Action configure) => configure.Invoke(this); - - public ChiSquareHeuristicDescriptor() : base() - { - } - - private bool BackgroundIsSupersetValue { get; set; } - private bool IncludeNegativesValue { get; set; } - - /// - /// - /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. - /// - /// - public ChiSquareHeuristicDescriptor BackgroundIsSuperset(bool backgroundIsSuperset = true) - { - BackgroundIsSupersetValue = backgroundIsSuperset; - return Self; - } - - /// - /// - /// Set to false to filter out the terms that appear less often in the subset than in documents outside the subset. - /// - /// - public ChiSquareHeuristicDescriptor IncludeNegatives(bool includeNegatives = true) - { - IncludeNegativesValue = includeNegatives; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("background_is_superset"); - writer.WriteBooleanValue(BackgroundIsSupersetValue); - writer.WritePropertyName("include_negatives"); - writer.WriteBooleanValue(IncludeNegativesValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregate.g.cs deleted file mode 100644 index cb007f3ba2d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregate.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.Aggregations; - -internal sealed partial class ChildrenAggregateConverter : JsonConverter -{ - public override ChildrenAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new ChildrenAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, ChildrenAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'ChildrenAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(ChildrenAggregateConverter))] -public sealed partial class ChildrenAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregation.g.cs deleted file mode 100644 index 22c79891b3c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ChildrenAggregation.g.cs +++ /dev/null @@ -1,75 +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.Aggregations; - -public sealed partial class ChildrenAggregation -{ - /// - /// - /// The child type that should be selected. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string? Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ChildrenAggregation childrenAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Children(childrenAggregation); -} - -public sealed partial class ChildrenAggregationDescriptor : SerializableDescriptor -{ - internal ChildrenAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ChildrenAggregationDescriptor() : base() - { - } - - private string? TypeValue { get; set; } - - /// - /// - /// The child type that should be selected. - /// - /// - public ChildrenAggregationDescriptor Type(string? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(TypeValue)) - { - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregate.g.cs deleted file mode 100644 index 29704ff5e9b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregate.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class CompositeAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("after_key")] - public IReadOnlyDictionary? AfterKey { get; init; } - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregation.g.cs deleted file mode 100644 index 17a3421ab98..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregation.g.cs +++ /dev/null @@ -1,201 +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.Aggregations; - -public sealed partial class CompositeAggregation -{ - /// - /// - /// When paginating, use the after_key value returned in the previous response to retrieve the next page. - /// - /// - [JsonInclude, JsonPropertyName("after")] - public IDictionary? After { get; set; } - - /// - /// - /// The number of composite buckets that should be returned. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The value sources used to build composite buckets. - /// Keys are returned in the order of the sources definition. - /// - /// - [JsonInclude, JsonPropertyName("sources")] - public ICollection>? Sources { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(CompositeAggregation compositeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Composite(compositeAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(CompositeAggregation compositeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.Composite(compositeAggregation); -} - -public sealed partial class CompositeAggregationDescriptor : SerializableDescriptor> -{ - internal CompositeAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public CompositeAggregationDescriptor() : base() - { - } - - private IDictionary? AfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection>? SourcesValue { get; set; } - - /// - /// - /// When paginating, use the after_key value returned in the previous response to retrieve the next page. - /// - /// - public CompositeAggregationDescriptor After(Func, FluentDictionary> selector) - { - AfterValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The number of composite buckets that should be returned. - /// - /// - public CompositeAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The value sources used to build composite buckets. - /// Keys are returned in the order of the sources definition. - /// - /// - public CompositeAggregationDescriptor Sources(ICollection>? sources) - { - SourcesValue = sources; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AfterValue is not null) - { - writer.WritePropertyName("after"); - JsonSerializer.Serialize(writer, AfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SourcesValue is not null) - { - writer.WritePropertyName("sources"); - JsonSerializer.Serialize(writer, SourcesValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompositeAggregationDescriptor : SerializableDescriptor -{ - internal CompositeAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CompositeAggregationDescriptor() : base() - { - } - - private IDictionary? AfterValue { get; set; } - private int? SizeValue { get; set; } - private ICollection>? SourcesValue { get; set; } - - /// - /// - /// When paginating, use the after_key value returned in the previous response to retrieve the next page. - /// - /// - public CompositeAggregationDescriptor After(Func, FluentDictionary> selector) - { - AfterValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The number of composite buckets that should be returned. - /// - /// - public CompositeAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The value sources used to build composite buckets. - /// Keys are returned in the order of the sources definition. - /// - /// - public CompositeAggregationDescriptor Sources(ICollection>? sources) - { - SourcesValue = sources; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AfterValue is not null) - { - writer.WritePropertyName("after"); - JsonSerializer.Serialize(writer, AfterValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SourcesValue is not null) - { - writer.WritePropertyName("sources"); - JsonSerializer.Serialize(writer, SourcesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs deleted file mode 100644 index 8bc2fb2c8be..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeAggregationSource.g.cs +++ /dev/null @@ -1,479 +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.Aggregations; - -public sealed partial class CompositeAggregationSource -{ - /// - /// - /// A date histogram aggregation. - /// - /// - [JsonInclude, JsonPropertyName("date_histogram")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregation? DateHistogram { get; set; } - - /// - /// - /// A geotile grid aggregation. - /// - /// - [JsonInclude, JsonPropertyName("geotile_grid")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregation? GeotileGrid { get; set; } - - /// - /// - /// A histogram aggregation. - /// - /// - [JsonInclude, JsonPropertyName("histogram")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregation? Histogram { get; set; } - - /// - /// - /// A terms aggregation. - /// - /// - [JsonInclude, JsonPropertyName("terms")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregation? Terms { get; set; } -} - -public sealed partial class CompositeAggregationSourceDescriptor : SerializableDescriptor> -{ - internal CompositeAggregationSourceDescriptor(Action> configure) => configure.Invoke(this); - - public CompositeAggregationSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregation? DateHistogramValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregationDescriptor DateHistogramDescriptor { get; set; } - private Action> DateHistogramDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregation? GeotileGridValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregationDescriptor GeotileGridDescriptor { get; set; } - private Action> GeotileGridDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregation? HistogramValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregationDescriptor HistogramDescriptor { get; set; } - private Action> HistogramDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregation? TermsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregationDescriptor TermsDescriptor { get; set; } - private Action> TermsDescriptorAction { get; set; } - - /// - /// - /// A date histogram aggregation. - /// - /// - public CompositeAggregationSourceDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregation? dateHistogram) - { - DateHistogramDescriptor = null; - DateHistogramDescriptorAction = null; - DateHistogramValue = dateHistogram; - return Self; - } - - public CompositeAggregationSourceDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregationDescriptor descriptor) - { - DateHistogramValue = null; - DateHistogramDescriptorAction = null; - DateHistogramDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor DateHistogram(Action> configure) - { - DateHistogramValue = null; - DateHistogramDescriptor = null; - DateHistogramDescriptorAction = configure; - return Self; - } - - /// - /// - /// A geotile grid aggregation. - /// - /// - public CompositeAggregationSourceDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregation? geotileGrid) - { - GeotileGridDescriptor = null; - GeotileGridDescriptorAction = null; - GeotileGridValue = geotileGrid; - return Self; - } - - public CompositeAggregationSourceDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregationDescriptor descriptor) - { - GeotileGridValue = null; - GeotileGridDescriptorAction = null; - GeotileGridDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor GeotileGrid(Action> configure) - { - GeotileGridValue = null; - GeotileGridDescriptor = null; - GeotileGridDescriptorAction = configure; - return Self; - } - - /// - /// - /// A histogram aggregation. - /// - /// - public CompositeAggregationSourceDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregation? histogram) - { - HistogramDescriptor = null; - HistogramDescriptorAction = null; - HistogramValue = histogram; - return Self; - } - - public CompositeAggregationSourceDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregationDescriptor descriptor) - { - HistogramValue = null; - HistogramDescriptorAction = null; - HistogramDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor Histogram(Action> configure) - { - HistogramValue = null; - HistogramDescriptor = null; - HistogramDescriptorAction = configure; - return Self; - } - - /// - /// - /// A terms aggregation. - /// - /// - public CompositeAggregationSourceDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregation? terms) - { - TermsDescriptor = null; - TermsDescriptorAction = null; - TermsValue = terms; - return Self; - } - - public CompositeAggregationSourceDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregationDescriptor descriptor) - { - TermsValue = null; - TermsDescriptorAction = null; - TermsDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor Terms(Action> configure) - { - TermsValue = null; - TermsDescriptor = null; - TermsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DateHistogramDescriptor is not null) - { - writer.WritePropertyName("date_histogram"); - JsonSerializer.Serialize(writer, DateHistogramDescriptor, options); - } - else if (DateHistogramDescriptorAction is not null) - { - writer.WritePropertyName("date_histogram"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregationDescriptor(DateHistogramDescriptorAction), options); - } - else if (DateHistogramValue is not null) - { - writer.WritePropertyName("date_histogram"); - JsonSerializer.Serialize(writer, DateHistogramValue, options); - } - - if (GeotileGridDescriptor is not null) - { - writer.WritePropertyName("geotile_grid"); - JsonSerializer.Serialize(writer, GeotileGridDescriptor, options); - } - else if (GeotileGridDescriptorAction is not null) - { - writer.WritePropertyName("geotile_grid"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregationDescriptor(GeotileGridDescriptorAction), options); - } - else if (GeotileGridValue is not null) - { - writer.WritePropertyName("geotile_grid"); - JsonSerializer.Serialize(writer, GeotileGridValue, options); - } - - if (HistogramDescriptor is not null) - { - writer.WritePropertyName("histogram"); - JsonSerializer.Serialize(writer, HistogramDescriptor, options); - } - else if (HistogramDescriptorAction is not null) - { - writer.WritePropertyName("histogram"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregationDescriptor(HistogramDescriptorAction), options); - } - else if (HistogramValue is not null) - { - writer.WritePropertyName("histogram"); - JsonSerializer.Serialize(writer, HistogramValue, options); - } - - if (TermsDescriptor is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsDescriptor, options); - } - else if (TermsDescriptorAction is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregationDescriptor(TermsDescriptorAction), options); - } - else if (TermsValue is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompositeAggregationSourceDescriptor : SerializableDescriptor -{ - internal CompositeAggregationSourceDescriptor(Action configure) => configure.Invoke(this); - - public CompositeAggregationSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregation? DateHistogramValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregationDescriptor DateHistogramDescriptor { get; set; } - private Action DateHistogramDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregation? GeotileGridValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregationDescriptor GeotileGridDescriptor { get; set; } - private Action GeotileGridDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregation? HistogramValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregationDescriptor HistogramDescriptor { get; set; } - private Action HistogramDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregation? TermsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregationDescriptor TermsDescriptor { get; set; } - private Action TermsDescriptorAction { get; set; } - - /// - /// - /// A date histogram aggregation. - /// - /// - public CompositeAggregationSourceDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregation? dateHistogram) - { - DateHistogramDescriptor = null; - DateHistogramDescriptorAction = null; - DateHistogramValue = dateHistogram; - return Self; - } - - public CompositeAggregationSourceDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregationDescriptor descriptor) - { - DateHistogramValue = null; - DateHistogramDescriptorAction = null; - DateHistogramDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor DateHistogram(Action configure) - { - DateHistogramValue = null; - DateHistogramDescriptor = null; - DateHistogramDescriptorAction = configure; - return Self; - } - - /// - /// - /// A geotile grid aggregation. - /// - /// - public CompositeAggregationSourceDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregation? geotileGrid) - { - GeotileGridDescriptor = null; - GeotileGridDescriptorAction = null; - GeotileGridValue = geotileGrid; - return Self; - } - - public CompositeAggregationSourceDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregationDescriptor descriptor) - { - GeotileGridValue = null; - GeotileGridDescriptorAction = null; - GeotileGridDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor GeotileGrid(Action configure) - { - GeotileGridValue = null; - GeotileGridDescriptor = null; - GeotileGridDescriptorAction = configure; - return Self; - } - - /// - /// - /// A histogram aggregation. - /// - /// - public CompositeAggregationSourceDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregation? histogram) - { - HistogramDescriptor = null; - HistogramDescriptorAction = null; - HistogramValue = histogram; - return Self; - } - - public CompositeAggregationSourceDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregationDescriptor descriptor) - { - HistogramValue = null; - HistogramDescriptorAction = null; - HistogramDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor Histogram(Action configure) - { - HistogramValue = null; - HistogramDescriptor = null; - HistogramDescriptorAction = configure; - return Self; - } - - /// - /// - /// A terms aggregation. - /// - /// - public CompositeAggregationSourceDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregation? terms) - { - TermsDescriptor = null; - TermsDescriptorAction = null; - TermsValue = terms; - return Self; - } - - public CompositeAggregationSourceDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregationDescriptor descriptor) - { - TermsValue = null; - TermsDescriptorAction = null; - TermsDescriptor = descriptor; - return Self; - } - - public CompositeAggregationSourceDescriptor Terms(Action configure) - { - TermsValue = null; - TermsDescriptor = null; - TermsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DateHistogramDescriptor is not null) - { - writer.WritePropertyName("date_histogram"); - JsonSerializer.Serialize(writer, DateHistogramDescriptor, options); - } - else if (DateHistogramDescriptorAction is not null) - { - writer.WritePropertyName("date_histogram"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeDateHistogramAggregationDescriptor(DateHistogramDescriptorAction), options); - } - else if (DateHistogramValue is not null) - { - writer.WritePropertyName("date_histogram"); - JsonSerializer.Serialize(writer, DateHistogramValue, options); - } - - if (GeotileGridDescriptor is not null) - { - writer.WritePropertyName("geotile_grid"); - JsonSerializer.Serialize(writer, GeotileGridDescriptor, options); - } - else if (GeotileGridDescriptorAction is not null) - { - writer.WritePropertyName("geotile_grid"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeGeoTileGridAggregationDescriptor(GeotileGridDescriptorAction), options); - } - else if (GeotileGridValue is not null) - { - writer.WritePropertyName("geotile_grid"); - JsonSerializer.Serialize(writer, GeotileGridValue, options); - } - - if (HistogramDescriptor is not null) - { - writer.WritePropertyName("histogram"); - JsonSerializer.Serialize(writer, HistogramDescriptor, options); - } - else if (HistogramDescriptorAction is not null) - { - writer.WritePropertyName("histogram"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeHistogramAggregationDescriptor(HistogramDescriptorAction), options); - } - else if (HistogramValue is not null) - { - writer.WritePropertyName("histogram"); - JsonSerializer.Serialize(writer, HistogramValue, options); - } - - if (TermsDescriptor is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsDescriptor, options); - } - else if (TermsDescriptorAction is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeTermsAggregationDescriptor(TermsDescriptorAction), options); - } - else if (TermsValue is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeBucket.g.cs deleted file mode 100644 index 22f264dd557..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeBucket.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.Aggregations; - -internal sealed partial class CompositeBucketConverter : JsonConverter -{ - public override CompositeBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new CompositeBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, CompositeBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'CompositeBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(CompositeBucketConverter))] -public sealed partial class CompositeBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary Key { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index acc1d465d72..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeDateHistogramAggregation.g.cs +++ /dev/null @@ -1,539 +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.Aggregations; - -public sealed partial class CompositeDateHistogramAggregation -{ - /// - /// - /// Either calendar_interval or fixed_interval must be present - /// - /// - [JsonInclude, JsonPropertyName("calendar_interval")] - public string? CalendarInterval { get; set; } - - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Either calendar_interval or fixed_interval must be present - /// - /// - [JsonInclude, JsonPropertyName("fixed_interval")] - public string? FixedInterval { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("missing_bucket")] - public bool? MissingBucket { get; set; } - [JsonInclude, JsonPropertyName("missing_order")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrder { get; set; } - [JsonInclude, JsonPropertyName("offset")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Offset { get; set; } - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } - [JsonInclude, JsonPropertyName("value_type")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueType { get; set; } -} - -public sealed partial class CompositeDateHistogramAggregationDescriptor : SerializableDescriptor> -{ - internal CompositeDateHistogramAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public CompositeDateHistogramAggregationDescriptor() : base() - { - } - - private string? CalendarIntervalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FixedIntervalValue { get; set; } - private string? FormatValue { get; set; } - private bool? MissingBucketValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } - 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; } - - /// - /// - /// Either calendar_interval or fixed_interval must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor CalendarInterval(string? calendarInterval) - { - CalendarIntervalValue = calendarInterval; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either calendar_interval or fixed_interval must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor FixedInterval(string? fixedInterval) - { - FixedIntervalValue = fixedInterval; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor Offset(Elastic.Clients.Elasticsearch.Serverless.Duration? offset) - { - OffsetValue = offset; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CalendarIntervalValue)) - { - writer.WritePropertyName("calendar_interval"); - writer.WriteStringValue(CalendarIntervalValue); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FixedIntervalValue)) - { - writer.WritePropertyName("fixed_interval"); - writer.WriteStringValue(FixedIntervalValue); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OffsetValue is not null) - { - writer.WritePropertyName("offset"); - JsonSerializer.Serialize(writer, OffsetValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompositeDateHistogramAggregationDescriptor : SerializableDescriptor -{ - internal CompositeDateHistogramAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CompositeDateHistogramAggregationDescriptor() : base() - { - } - - private string? CalendarIntervalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FixedIntervalValue { get; set; } - private string? FormatValue { get; set; } - private bool? MissingBucketValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } - 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; } - - /// - /// - /// Either calendar_interval or fixed_interval must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor CalendarInterval(string? calendarInterval) - { - CalendarIntervalValue = calendarInterval; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either calendar_interval or fixed_interval must be present - /// - /// - public CompositeDateHistogramAggregationDescriptor FixedInterval(string? fixedInterval) - { - FixedIntervalValue = fixedInterval; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor Offset(Elastic.Clients.Elasticsearch.Serverless.Duration? offset) - { - OffsetValue = offset; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - public CompositeDateHistogramAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CalendarIntervalValue)) - { - writer.WritePropertyName("calendar_interval"); - writer.WriteStringValue(CalendarIntervalValue); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FixedIntervalValue)) - { - writer.WritePropertyName("fixed_interval"); - writer.WriteStringValue(FixedIntervalValue); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OffsetValue is not null) - { - writer.WritePropertyName("offset"); - JsonSerializer.Serialize(writer, OffsetValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index db157c512db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeGeoTileGridAggregation.g.cs +++ /dev/null @@ -1,424 +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.Aggregations; - -public sealed partial class CompositeGeoTileGridAggregation -{ - [JsonInclude, JsonPropertyName("bounds")] - public Elastic.Clients.Elasticsearch.Serverless.GeoBounds? Bounds { get; set; } - - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("missing_bucket")] - public bool? MissingBucket { get; set; } - [JsonInclude, JsonPropertyName("missing_order")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrder { get; set; } - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - [JsonInclude, JsonPropertyName("precision")] - public int? Precision { get; set; } - - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("value_type")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueType { get; set; } -} - -public sealed partial class CompositeGeoTileGridAggregationDescriptor : SerializableDescriptor> -{ - internal CompositeGeoTileGridAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public CompositeGeoTileGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private bool? MissingBucketValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } - 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) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeGeoTileGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeGeoTileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeGeoTileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor Precision(int? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - 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); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompositeGeoTileGridAggregationDescriptor : SerializableDescriptor -{ - internal CompositeGeoTileGridAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CompositeGeoTileGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private bool? MissingBucketValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrderValue { get; set; } - 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) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeGeoTileGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeGeoTileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeGeoTileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - public CompositeGeoTileGridAggregationDescriptor Precision(int? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - 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); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 0c450d42260..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeHistogramAggregation.g.cs +++ /dev/null @@ -1,387 +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.Aggregations; - -public sealed partial class CompositeHistogramAggregation -{ - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("interval")] - public double Interval { get; set; } - [JsonInclude, JsonPropertyName("missing_bucket")] - public bool? MissingBucket { get; set; } - [JsonInclude, JsonPropertyName("missing_order")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrder { get; set; } - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("value_type")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueType { get; set; } -} - -public sealed partial class CompositeHistogramAggregationDescriptor : SerializableDescriptor> -{ - internal CompositeHistogramAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public CompositeHistogramAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private double IntervalValue { get; set; } - private bool? MissingBucketValue { get; set; } - 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; } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CompositeHistogramAggregationDescriptor Interval(double interval) - { - IntervalValue = interval; - return Self; - } - - public CompositeHistogramAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeHistogramAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeHistogramAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - writer.WritePropertyName("interval"); - writer.WriteNumberValue(IntervalValue); - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompositeHistogramAggregationDescriptor : SerializableDescriptor -{ - internal CompositeHistogramAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CompositeHistogramAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private double IntervalValue { get; set; } - private bool? MissingBucketValue { get; set; } - 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; } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CompositeHistogramAggregationDescriptor Interval(double interval) - { - IntervalValue = interval; - return Self; - } - - public CompositeHistogramAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeHistogramAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeHistogramAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - writer.WritePropertyName("interval"); - writer.WriteNumberValue(IntervalValue); - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 2b6256edd6b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CompositeTermsAggregation.g.cs +++ /dev/null @@ -1,367 +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.Aggregations; - -public sealed partial class CompositeTermsAggregation -{ - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("missing_bucket")] - public bool? MissingBucket { get; set; } - [JsonInclude, JsonPropertyName("missing_order")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrder { get; set; } - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - - /// - /// - /// Either field or script must be present - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("value_type")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueType { get; set; } -} - -public sealed partial class CompositeTermsAggregationDescriptor : SerializableDescriptor> -{ - internal CompositeTermsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public CompositeTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private bool? MissingBucketValue { get; set; } - 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; } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeTermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CompositeTermsAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeTermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeTermsAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompositeTermsAggregationDescriptor : SerializableDescriptor -{ - internal CompositeTermsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CompositeTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private bool? MissingBucketValue { get; set; } - 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; } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeTermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - public CompositeTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public CompositeTermsAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public CompositeTermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - public CompositeTermsAggregationDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Either field or script must be present - /// - /// - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs deleted file mode 100644 index c0a86ffc1cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregate.g.cs +++ /dev/null @@ -1,43 +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.Aggregations; - -/// -/// -/// Result of the cumulative_cardinality aggregation -/// -/// -public sealed partial class CumulativeCardinalityAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("value")] - public long Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs deleted file mode 100644 index ca1648c65c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeCardinalityAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class CumulativeCardinalityAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(CumulativeCardinalityAggregation cumulativeCardinalityAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.CumulativeCardinality(cumulativeCardinalityAggregation); -} - -public sealed partial class CumulativeCardinalityAggregationDescriptor : SerializableDescriptor -{ - internal CumulativeCardinalityAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CumulativeCardinalityAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public CumulativeCardinalityAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public CumulativeCardinalityAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public CumulativeCardinalityAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs deleted file mode 100644 index 28ea29890ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/CumulativeSumAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class CumulativeSumAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(CumulativeSumAggregation cumulativeSumAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.CumulativeSum(cumulativeSumAggregation); -} - -public sealed partial class CumulativeSumAggregationDescriptor : SerializableDescriptor -{ - internal CumulativeSumAggregationDescriptor(Action configure) => configure.Invoke(this); - - public CumulativeSumAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public CumulativeSumAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public CumulativeSumAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public CumulativeSumAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs deleted file mode 100644 index 6a9e78363d8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class DateHistogramAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 5abfd93f60d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs +++ /dev/null @@ -1,846 +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.Aggregations; - -public sealed partial class DateHistogramAggregation -{ - /// - /// - /// Calendar-aware interval. - /// Can be specified using the unit name, such as month, or as a single unit quantity, such as 1M. - /// - /// - [JsonInclude, JsonPropertyName("calendar_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? CalendarInterval { get; set; } - - /// - /// - /// Enables extending the bounds of the histogram beyond the data itself. - /// - /// - [JsonInclude, JsonPropertyName("extended_bounds")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? ExtendedBounds { get; set; } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Fixed intervals: a fixed number of SI units and never deviate, regardless of where they fall on the calendar. - /// - /// - [JsonInclude, JsonPropertyName("fixed_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? FixedInterval { get; set; } - - /// - /// - /// The date format used to format key_as_string in the response. - /// If no format is specified, the first date format specified in the field mapping is used. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Limits the histogram to specified bounds. - /// - /// - [JsonInclude, JsonPropertyName("hard_bounds")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? HardBounds { get; set; } - - /// - /// - /// Only returns buckets that have min_doc_count number of documents. - /// By default, all buckets between the first bucket that matches documents and the last one are returned. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public int? MinDocCount { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public DateTimeOffset? Missing { get; set; } - - /// - /// - /// Changes the start value of each bucket by the specified positive (+) or negative offset (-) duration. - /// - /// - [JsonInclude, JsonPropertyName("offset")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Offset { get; set; } - - /// - /// - /// The sort order of the returned buckets. - /// - /// - [JsonInclude, JsonPropertyName("order")] - [SingleOrManyCollectionConverter(typeof(KeyValuePair))] - public ICollection>? Order { get; set; } - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Time zone used for bucketing and rounding. - /// Defaults to Coordinated Universal Time (UTC). - /// - /// - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(DateHistogramAggregation dateHistogramAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.DateHistogram(dateHistogramAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy(DateHistogramAggregation dateHistogramAggregation) => Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy.DateHistogram(dateHistogramAggregation); -} - -public sealed partial class DateHistogramAggregationDescriptor : SerializableDescriptor> -{ - internal DateHistogramAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public DateHistogramAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? CalendarIntervalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? ExtendedBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor ExtendedBoundsDescriptor { get; set; } - private Action ExtendedBoundsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FixedIntervalValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? HardBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor HardBoundsDescriptor { get; set; } - private Action HardBoundsDescriptorAction { get; set; } - private int? MinDocCountValue { get; set; } - private DateTimeOffset? MissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? OffsetValue { get; set; } - 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; } - - /// - /// - /// Calendar-aware interval. - /// Can be specified using the unit name, such as month, or as a single unit quantity, such as 1M. - /// - /// - public DateHistogramAggregationDescriptor CalendarInterval(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? calendarInterval) - { - CalendarIntervalValue = calendarInterval; - return Self; - } - - /// - /// - /// Enables extending the bounds of the histogram beyond the data itself. - /// - /// - public DateHistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? extendedBounds) - { - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsValue = extendedBounds; - return Self; - } - - public DateHistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor descriptor) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsDescriptor = descriptor; - return Self; - } - - public DateHistogramAggregationDescriptor ExtendedBounds(Action configure) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - public DateHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - public DateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - public DateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Fixed intervals: a fixed number of SI units and never deviate, regardless of where they fall on the calendar. - /// - /// - public DateHistogramAggregationDescriptor FixedInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? fixedInterval) - { - FixedIntervalValue = fixedInterval; - return Self; - } - - /// - /// - /// The date format used to format key_as_string in the response. - /// If no format is specified, the first date format specified in the field mapping is used. - /// - /// - public DateHistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Limits the histogram to specified bounds. - /// - /// - public DateHistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? hardBounds) - { - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = null; - HardBoundsValue = hardBounds; - return Self; - } - - public DateHistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor descriptor) - { - HardBoundsValue = null; - HardBoundsDescriptorAction = null; - HardBoundsDescriptor = descriptor; - return Self; - } - - public DateHistogramAggregationDescriptor HardBounds(Action configure) - { - HardBoundsValue = null; - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Only returns buckets that have min_doc_count number of documents. - /// By default, all buckets between the first bucket that matches documents and the last one are returned. - /// - /// - public DateHistogramAggregationDescriptor MinDocCount(int? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public DateHistogramAggregationDescriptor Missing(DateTimeOffset? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Changes the start value of each bucket by the specified positive (+) or negative offset (-) duration. - /// - /// - public DateHistogramAggregationDescriptor Offset(Elastic.Clients.Elasticsearch.Serverless.Duration? offset) - { - OffsetValue = offset; - return Self; - } - - /// - /// - /// The sort order of the returned buckets. - /// - /// - public DateHistogramAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - public DateHistogramAggregationDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DateHistogramAggregationDescriptor 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). - /// - /// - public DateHistogramAggregationDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CalendarIntervalValue is not null) - { - writer.WritePropertyName("calendar_interval"); - JsonSerializer.Serialize(writer, CalendarIntervalValue, options); - } - - if (ExtendedBoundsDescriptor is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsDescriptor, options); - } - else if (ExtendedBoundsDescriptorAction is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor(ExtendedBoundsDescriptorAction), options); - } - else if (ExtendedBoundsValue is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FixedIntervalValue is not null) - { - writer.WritePropertyName("fixed_interval"); - JsonSerializer.Serialize(writer, FixedIntervalValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HardBoundsDescriptor is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsDescriptor, options); - } - else if (HardBoundsDescriptorAction is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor(HardBoundsDescriptorAction), options); - } - else if (HardBoundsValue is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (OffsetValue is not null) - { - writer.WritePropertyName("offset"); - JsonSerializer.Serialize(writer, OffsetValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DateHistogramAggregationDescriptor : SerializableDescriptor -{ - internal DateHistogramAggregationDescriptor(Action configure) => configure.Invoke(this); - - public DateHistogramAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? CalendarIntervalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? ExtendedBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor ExtendedBoundsDescriptor { get; set; } - private Action ExtendedBoundsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FixedIntervalValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? HardBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor HardBoundsDescriptor { get; set; } - private Action HardBoundsDescriptorAction { get; set; } - private int? MinDocCountValue { get; set; } - private DateTimeOffset? MissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? OffsetValue { get; set; } - 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; } - - /// - /// - /// Calendar-aware interval. - /// Can be specified using the unit name, such as month, or as a single unit quantity, such as 1M. - /// - /// - public DateHistogramAggregationDescriptor CalendarInterval(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? calendarInterval) - { - CalendarIntervalValue = calendarInterval; - return Self; - } - - /// - /// - /// Enables extending the bounds of the histogram beyond the data itself. - /// - /// - public DateHistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? extendedBounds) - { - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsValue = extendedBounds; - return Self; - } - - public DateHistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor descriptor) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsDescriptor = descriptor; - return Self; - } - - public DateHistogramAggregationDescriptor ExtendedBounds(Action configure) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - public DateHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - public DateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build a histogram. - /// - /// - public DateHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Fixed intervals: a fixed number of SI units and never deviate, regardless of where they fall on the calendar. - /// - /// - public DateHistogramAggregationDescriptor FixedInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? fixedInterval) - { - FixedIntervalValue = fixedInterval; - return Self; - } - - /// - /// - /// The date format used to format key_as_string in the response. - /// If no format is specified, the first date format specified in the field mapping is used. - /// - /// - public DateHistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Limits the histogram to specified bounds. - /// - /// - public DateHistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDate? hardBounds) - { - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = null; - HardBoundsValue = hardBounds; - return Self; - } - - public DateHistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor descriptor) - { - HardBoundsValue = null; - HardBoundsDescriptorAction = null; - HardBoundsDescriptor = descriptor; - return Self; - } - - public DateHistogramAggregationDescriptor HardBounds(Action configure) - { - HardBoundsValue = null; - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Only returns buckets that have min_doc_count number of documents. - /// By default, all buckets between the first bucket that matches documents and the last one are returned. - /// - /// - public DateHistogramAggregationDescriptor MinDocCount(int? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public DateHistogramAggregationDescriptor Missing(DateTimeOffset? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Changes the start value of each bucket by the specified positive (+) or negative offset (-) duration. - /// - /// - public DateHistogramAggregationDescriptor Offset(Elastic.Clients.Elasticsearch.Serverless.Duration? offset) - { - OffsetValue = offset; - return Self; - } - - /// - /// - /// The sort order of the returned buckets. - /// - /// - public DateHistogramAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - public DateHistogramAggregationDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DateHistogramAggregationDescriptor 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). - /// - /// - public DateHistogramAggregationDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CalendarIntervalValue is not null) - { - writer.WritePropertyName("calendar_interval"); - JsonSerializer.Serialize(writer, CalendarIntervalValue, options); - } - - if (ExtendedBoundsDescriptor is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsDescriptor, options); - } - else if (ExtendedBoundsDescriptorAction is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor(ExtendedBoundsDescriptorAction), options); - } - else if (ExtendedBoundsValue is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FixedIntervalValue is not null) - { - writer.WritePropertyName("fixed_interval"); - JsonSerializer.Serialize(writer, FixedIntervalValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HardBoundsDescriptor is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsDescriptor, options); - } - else if (HardBoundsDescriptorAction is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsDateDescriptor(HardBoundsDescriptorAction), options); - } - else if (HardBoundsValue is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (OffsetValue is not null) - { - writer.WritePropertyName("offset"); - JsonSerializer.Serialize(writer, OffsetValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramBucket.g.cs deleted file mode 100644 index 26386f3c977..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateHistogramBucket.g.cs +++ /dev/null @@ -1,95 +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.Aggregations; - -internal sealed partial class DateHistogramBucketConverter : JsonConverter -{ - public override DateHistogramBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - long key = default; - string? keyAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new DateHistogramBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key, KeyAsString = keyAsString }; - } - - public override void Write(Utf8JsonWriter writer, DateHistogramBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'DateHistogramBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(DateHistogramBucketConverter))] -public sealed partial class DateHistogramBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public long Key { get; init; } - public string? KeyAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregate.g.cs deleted file mode 100644 index a885c04604d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregate.g.cs +++ /dev/null @@ -1,42 +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.Aggregations; - -/// -/// -/// Result of a date_range aggregation. Same format as a for a range aggregation: from and to -/// in buckets are milliseconds since the Epoch, represented as a floating point number. -/// -/// -public sealed partial class DateRangeAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregation.g.cs deleted file mode 100644 index a35e230e557..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeAggregation.g.cs +++ /dev/null @@ -1,449 +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.Aggregations; - -public sealed partial class DateRangeAggregation -{ - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The date format used to format from and to in the response. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - /// - /// - /// Array of date ranges. - /// - /// - [JsonInclude, JsonPropertyName("ranges")] - public ICollection? Ranges { get; set; } - - /// - /// - /// Time zone used to convert dates from another time zone to UTC. - /// - /// - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(DateRangeAggregation dateRangeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.DateRange(dateRangeAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(DateRangeAggregation dateRangeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.DateRange(dateRangeAggregation); -} - -public sealed partial class DateRangeAggregationDescriptor : SerializableDescriptor> -{ - internal DateRangeAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public DateRangeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor RangesDescriptor { get; set; } - private Action RangesDescriptorAction { get; set; } - private Action[] RangesDescriptorActions { get; set; } - private string? TimeZoneValue { get; set; } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public DateRangeAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public DateRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public DateRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date format used to format from and to in the response. - /// - /// - public DateRangeAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public DateRangeAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Array of date ranges. - /// - /// - public DateRangeAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public DateRangeAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public DateRangeAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public DateRangeAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Time zone used to convert dates from another time zone to UTC. - /// - /// - public DateRangeAggregationDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DateRangeAggregationDescriptor : SerializableDescriptor -{ - internal DateRangeAggregationDescriptor(Action configure) => configure.Invoke(this); - - public DateRangeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor RangesDescriptor { get; set; } - private Action RangesDescriptorAction { get; set; } - private Action[] RangesDescriptorActions { get; set; } - private string? TimeZoneValue { get; set; } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public DateRangeAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public DateRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public DateRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date format used to format from and to in the response. - /// - /// - public DateRangeAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public DateRangeAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Array of date ranges. - /// - /// - public DateRangeAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public DateRangeAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public DateRangeAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public DateRangeAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Time zone used to convert dates from another time zone to UTC. - /// - /// - public DateRangeAggregationDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeExpressionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeExpression.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeExpression.g.cs deleted file mode 100644 index cb2b74a1c7f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DateRangeExpression.g.cs +++ /dev/null @@ -1,125 +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.Aggregations; - -public sealed partial class DateRangeExpression -{ - /// - /// - /// Start of the range (inclusive). - /// - /// - [JsonInclude, JsonPropertyName("from")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? From { get; set; } - - /// - /// - /// Custom key to return the range with. - /// - /// - [JsonInclude, JsonPropertyName("key")] - public string? Key { get; set; } - - /// - /// - /// End of the range (exclusive). - /// - /// - [JsonInclude, JsonPropertyName("to")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? To { get; set; } -} - -public sealed partial class DateRangeExpressionDescriptor : SerializableDescriptor -{ - internal DateRangeExpressionDescriptor(Action configure) => configure.Invoke(this); - - public DateRangeExpressionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? FromValue { get; set; } - private string? KeyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? ToValue { get; set; } - - /// - /// - /// Start of the range (inclusive). - /// - /// - public DateRangeExpressionDescriptor From(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Custom key to return the range with. - /// - /// - public DateRangeExpressionDescriptor Key(string? key) - { - KeyValue = key; - return Self; - } - - /// - /// - /// End of the range (exclusive). - /// - /// - public DateRangeExpressionDescriptor To(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? to) - { - ToValue = to; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue is not null) - { - writer.WritePropertyName("from"); - JsonSerializer.Serialize(writer, FromValue, options); - } - - if (!string.IsNullOrEmpty(KeyValue)) - { - writer.WritePropertyName("key"); - writer.WriteStringValue(KeyValue); - } - - if (ToValue is not null) - { - writer.WritePropertyName("to"); - JsonSerializer.Serialize(writer, ToValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregate.g.cs deleted file mode 100644 index d5399747ce3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregate.g.cs +++ /dev/null @@ -1,49 +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.Aggregations; - -public sealed partial class DerivativeAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("normalized_value")] - public double? NormalizedValue { get; init; } - [JsonInclude, JsonPropertyName("normalized_value_as_string")] - public string? NormalizedValueAsString { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregation.g.cs deleted file mode 100644 index c9f68edb9ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DerivativeAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class DerivativeAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(DerivativeAggregation derivativeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Derivative(derivativeAggregation); -} - -public sealed partial class DerivativeAggregationDescriptor : SerializableDescriptor -{ - internal DerivativeAggregationDescriptor(Action configure) => configure.Invoke(this); - - public DerivativeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public DerivativeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public DerivativeAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public DerivativeAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 41f701194fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DiversifiedSamplerAggregation.g.cs +++ /dev/null @@ -1,373 +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.Aggregations; - -public sealed partial class DiversifiedSamplerAggregation -{ - /// - /// - /// The type of value used for de-duplication. - /// - /// - [JsonInclude, JsonPropertyName("execution_hint")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregationExecutionHint? ExecutionHint { get; set; } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Limits how many documents are permitted per choice of de-duplicating value. - /// - /// - [JsonInclude, JsonPropertyName("max_docs_per_value")] - public int? MaxDocsPerValue { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Limits how many top-scoring documents are collected in the sample processed on each shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(DiversifiedSamplerAggregation diversifiedSamplerAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.DiversifiedSampler(diversifiedSamplerAggregation); -} - -public sealed partial class DiversifiedSamplerAggregationDescriptor : SerializableDescriptor> -{ - internal DiversifiedSamplerAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public DiversifiedSamplerAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregationExecutionHint? ExecutionHintValue { get; set; } - 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; } - - /// - /// - /// The type of value used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Limits how many documents are permitted per choice of de-duplicating value. - /// - /// - public DiversifiedSamplerAggregationDescriptor MaxDocsPerValue(int? maxDocsPerValue) - { - MaxDocsPerValueValue = maxDocsPerValue; - return Self; - } - - 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. - /// - /// - public DiversifiedSamplerAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MaxDocsPerValueValue.HasValue) - { - writer.WritePropertyName("max_docs_per_value"); - writer.WriteNumberValue(MaxDocsPerValueValue.Value); - } - - 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); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DiversifiedSamplerAggregationDescriptor : SerializableDescriptor -{ - internal DiversifiedSamplerAggregationDescriptor(Action configure) => configure.Invoke(this); - - public DiversifiedSamplerAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregationExecutionHint? ExecutionHintValue { get; set; } - 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; } - - /// - /// - /// The type of value used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.SamplerAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field used to provide values used for de-duplication. - /// - /// - public DiversifiedSamplerAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Limits how many documents are permitted per choice of de-duplicating value. - /// - /// - public DiversifiedSamplerAggregationDescriptor MaxDocsPerValue(int? maxDocsPerValue) - { - MaxDocsPerValueValue = maxDocsPerValue; - return Self; - } - - 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. - /// - /// - public DiversifiedSamplerAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MaxDocsPerValueValue.HasValue) - { - writer.WritePropertyName("max_docs_per_value"); - writer.WriteNumberValue(MaxDocsPerValueValue.Value); - } - - 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); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs deleted file mode 100644 index 10bb23a1570..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -/// -/// -/// Result of a terms aggregation when the field is some kind of decimal number like a float, double, or distance. -/// -/// -public sealed partial class DoubleTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count_error_upper_bound")] - public long? DocCountErrorUpperBound { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("sum_other_doc_count")] - public long? SumOtherDocCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs deleted file mode 100644 index 5dc845c246a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/DoubleTermsBucket.g.cs +++ /dev/null @@ -1,103 +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.Aggregations; - -internal sealed partial class DoubleTermsBucketConverter : JsonConverter -{ - public override DoubleTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - long? docCountErrorUpperBound = default; - double key = default; - string? keyAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "doc_count_error_upper_bound") - { - docCountErrorUpperBound = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new DoubleTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key, KeyAsString = keyAsString }; - } - - public override void Write(Utf8JsonWriter writer, DoubleTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'DoubleTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(DoubleTermsBucketConverter))] -public sealed partial class DoubleTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public long? DocCountErrorUpperBound { get; init; } - public double Key { get; init; } - public string? KeyAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsDate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsDate.g.cs deleted file mode 100644 index fb847e470d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsDate.g.cs +++ /dev/null @@ -1,99 +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.Aggregations; - -public sealed partial class ExtendedBoundsDate -{ - /// - /// - /// Maximum value for the bound. - /// - /// - [JsonInclude, JsonPropertyName("max")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? Max { get; set; } - - /// - /// - /// Minimum value for the bound. - /// - /// - [JsonInclude, JsonPropertyName("min")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? Min { get; set; } -} - -public sealed partial class ExtendedBoundsDateDescriptor : SerializableDescriptor -{ - internal ExtendedBoundsDateDescriptor(Action configure) => configure.Invoke(this); - - public ExtendedBoundsDateDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? MaxValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? MinValue { get; set; } - - /// - /// - /// Maximum value for the bound. - /// - /// - public ExtendedBoundsDateDescriptor Max(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? max) - { - MaxValue = max; - return Self; - } - - /// - /// - /// Minimum value for the bound. - /// - /// - public ExtendedBoundsDateDescriptor Min(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FieldDateMath? min) - { - MinValue = min; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxValue is not null) - { - writer.WritePropertyName("max"); - JsonSerializer.Serialize(writer, MaxValue, options); - } - - if (MinValue is not null) - { - writer.WritePropertyName("min"); - JsonSerializer.Serialize(writer, MinValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsFloat.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsFloat.g.cs deleted file mode 100644 index a37a0be8325..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedBoundsFloat.g.cs +++ /dev/null @@ -1,99 +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.Aggregations; - -public sealed partial class ExtendedBoundsFloat -{ - /// - /// - /// Maximum value for the bound. - /// - /// - [JsonInclude, JsonPropertyName("max")] - public float? Max { get; set; } - - /// - /// - /// Minimum value for the bound. - /// - /// - [JsonInclude, JsonPropertyName("min")] - public float? Min { get; set; } -} - -public sealed partial class ExtendedBoundsFloatDescriptor : SerializableDescriptor -{ - internal ExtendedBoundsFloatDescriptor(Action configure) => configure.Invoke(this); - - public ExtendedBoundsFloatDescriptor() : base() - { - } - - private float? MaxValue { get; set; } - private float? MinValue { get; set; } - - /// - /// - /// Maximum value for the bound. - /// - /// - public ExtendedBoundsFloatDescriptor Max(float? max) - { - MaxValue = max; - return Self; - } - - /// - /// - /// Minimum value for the bound. - /// - /// - public ExtendedBoundsFloatDescriptor Min(float? min) - { - MinValue = min; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxValue.HasValue) - { - writer.WritePropertyName("max"); - writer.WriteNumberValue(MaxValue.Value); - } - - if (MinValue.HasValue) - { - writer.WritePropertyName("min"); - writer.WriteNumberValue(MinValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs deleted file mode 100644 index fedb4c95f79..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregate.g.cs +++ /dev/null @@ -1,80 +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.Aggregations; - -public sealed partial class ExtendedStatsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("avg")] - public double? Avg { get; init; } - [JsonInclude, JsonPropertyName("avg_as_string")] - public string? AvgAsString { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("max")] - public double? Max { get; init; } - [JsonInclude, JsonPropertyName("max_as_string")] - public string? MaxAsString { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("min")] - public double? Min { get; init; } - [JsonInclude, JsonPropertyName("min_as_string")] - public string? MinAsString { get; init; } - [JsonInclude, JsonPropertyName("std_deviation")] - public double? StdDeviation { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_as_string")] - public string? StdDeviationAsString { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_bounds")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StandardDeviationBounds? StdDeviationBounds { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_bounds_as_string")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StandardDeviationBoundsAsString? StdDeviationBoundsAsString { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_population")] - public double? StdDeviationPopulation { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_sampling")] - public double? StdDeviationSampling { get; init; } - [JsonInclude, JsonPropertyName("sum")] - public double Sum { get; init; } - [JsonInclude, JsonPropertyName("sum_as_string")] - public string? SumAsString { get; init; } - [JsonInclude, JsonPropertyName("sum_of_squares")] - public double? SumOfSquares { get; init; } - [JsonInclude, JsonPropertyName("sum_of_squares_as_string")] - public string? SumOfSquaresAsString { get; init; } - [JsonInclude, JsonPropertyName("variance")] - public double? Variance { get; init; } - [JsonInclude, JsonPropertyName("variance_as_string")] - public string? VarianceAsString { get; init; } - [JsonInclude, JsonPropertyName("variance_population")] - public double? VariancePopulation { get; init; } - [JsonInclude, JsonPropertyName("variance_population_as_string")] - public string? VariancePopulationAsString { get; init; } - [JsonInclude, JsonPropertyName("variance_sampling")] - public double? VarianceSampling { get; init; } - [JsonInclude, JsonPropertyName("variance_sampling_as_string")] - public string? VarianceSamplingAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index f96241d7a75..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsAggregation.g.cs +++ /dev/null @@ -1,360 +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.Aggregations; - -public sealed partial class ExtendedStatsAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// The number of standard deviations above/below the mean to display. - /// - /// - [JsonInclude, JsonPropertyName("sigma")] - public double? Sigma { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ExtendedStatsAggregation extendedStatsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.ExtendedStats(extendedStatsAggregation); -} - -public sealed partial class ExtendedStatsAggregationDescriptor : SerializableDescriptor> -{ - internal ExtendedStatsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public ExtendedStatsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ExtendedStatsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ExtendedStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ExtendedStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ExtendedStatsAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public ExtendedStatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public ExtendedStatsAggregationDescriptor Sigma(double? sigma) - { - SigmaValue = sigma; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (SigmaValue.HasValue) - { - writer.WritePropertyName("sigma"); - writer.WriteNumberValue(SigmaValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ExtendedStatsAggregationDescriptor : SerializableDescriptor -{ - internal ExtendedStatsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ExtendedStatsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ExtendedStatsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ExtendedStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ExtendedStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ExtendedStatsAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public ExtendedStatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public ExtendedStatsAggregationDescriptor Sigma(double? sigma) - { - SigmaValue = sigma; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (SigmaValue.HasValue) - { - writer.WritePropertyName("sigma"); - writer.WriteNumberValue(SigmaValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs deleted file mode 100644 index 2d1e56afb66..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregate.g.cs +++ /dev/null @@ -1,80 +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.Aggregations; - -public sealed partial class ExtendedStatsBucketAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("avg")] - public double? Avg { get; init; } - [JsonInclude, JsonPropertyName("avg_as_string")] - public string? AvgAsString { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("max")] - public double? Max { get; init; } - [JsonInclude, JsonPropertyName("max_as_string")] - public string? MaxAsString { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("min")] - public double? Min { get; init; } - [JsonInclude, JsonPropertyName("min_as_string")] - public string? MinAsString { get; init; } - [JsonInclude, JsonPropertyName("std_deviation")] - public double? StdDeviation { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_as_string")] - public string? StdDeviationAsString { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_bounds")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StandardDeviationBounds? StdDeviationBounds { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_bounds_as_string")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.StandardDeviationBoundsAsString? StdDeviationBoundsAsString { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_population")] - public double? StdDeviationPopulation { get; init; } - [JsonInclude, JsonPropertyName("std_deviation_sampling")] - public double? StdDeviationSampling { get; init; } - [JsonInclude, JsonPropertyName("sum")] - public double Sum { get; init; } - [JsonInclude, JsonPropertyName("sum_as_string")] - public string? SumAsString { get; init; } - [JsonInclude, JsonPropertyName("sum_of_squares")] - public double? SumOfSquares { get; init; } - [JsonInclude, JsonPropertyName("sum_of_squares_as_string")] - public string? SumOfSquaresAsString { get; init; } - [JsonInclude, JsonPropertyName("variance")] - public double? Variance { get; init; } - [JsonInclude, JsonPropertyName("variance_as_string")] - public string? VarianceAsString { get; init; } - [JsonInclude, JsonPropertyName("variance_population")] - public double? VariancePopulation { get; init; } - [JsonInclude, JsonPropertyName("variance_population_as_string")] - public string? VariancePopulationAsString { get; init; } - [JsonInclude, JsonPropertyName("variance_sampling")] - public double? VarianceSampling { get; init; } - [JsonInclude, JsonPropertyName("variance_sampling_as_string")] - public string? VarianceSamplingAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs deleted file mode 100644 index 28c9ff862a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ExtendedStatsBucketAggregation.g.cs +++ /dev/null @@ -1,155 +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.Aggregations; - -public sealed partial class ExtendedStatsBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The number of standard deviations above/below the mean to display. - /// - /// - [JsonInclude, JsonPropertyName("sigma")] - public double? Sigma { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ExtendedStatsBucketAggregation extendedStatsBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.ExtendedStatsBucket(extendedStatsBucketAggregation); -} - -public sealed partial class ExtendedStatsBucketAggregationDescriptor : SerializableDescriptor -{ - internal ExtendedStatsBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ExtendedStatsBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private double? SigmaValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public ExtendedStatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public ExtendedStatsBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public ExtendedStatsBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The number of standard deviations above/below the mean to display. - /// - /// - public ExtendedStatsBucketAggregationDescriptor Sigma(double? sigma) - { - SigmaValue = sigma; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (SigmaValue.HasValue) - { - writer.WritePropertyName("sigma"); - writer.WriteNumberValue(SigmaValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FieldDateMath.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FieldDateMath.g.cs deleted file mode 100644 index b3b67cd970e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FieldDateMath.g.cs +++ /dev/null @@ -1,48 +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.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.Aggregations; - -/// -/// -/// A date range limit, represented either as a DateMath expression or a number expressed -/// according to the target field's precision. -/// -/// -public sealed partial class FieldDateMath : Union -{ - public FieldDateMath(string Expr) : base(Expr) - { - } - - public FieldDateMath(double Value) : base(Value) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FilterAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FilterAggregate.g.cs deleted file mode 100644 index 1518ef244d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FilterAggregate.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.Aggregations; - -internal sealed partial class FilterAggregateConverter : JsonConverter -{ - public override FilterAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new FilterAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, FilterAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'FilterAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(FilterAggregateConverter))] -public sealed partial class FilterAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregate.g.cs deleted file mode 100644 index a830d0c0c65..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class FiltersAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregation.g.cs deleted file mode 100644 index bb446d659a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersAggregation.g.cs +++ /dev/null @@ -1,197 +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.Aggregations; - -public sealed partial class FiltersAggregation -{ - /// - /// - /// Collection of queries from which to build buckets. - /// - /// - [JsonInclude, JsonPropertyName("filters")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? Filters { get; set; } - - /// - /// - /// Set to true to add a bucket to the response which will contain all documents that do not match any of the given filters. - /// - /// - [JsonInclude, JsonPropertyName("other_bucket")] - public bool? OtherBucket { get; set; } - - /// - /// - /// The key with which the other bucket is returned. - /// - /// - [JsonInclude, JsonPropertyName("other_bucket_key")] - public string? OtherBucketKey { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(FiltersAggregation filtersAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Filters(filtersAggregation); -} - -public sealed partial class FiltersAggregationDescriptor : SerializableDescriptor> -{ - internal FiltersAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public FiltersAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? FiltersValue { get; set; } - private bool? OtherBucketValue { get; set; } - private string? OtherBucketKeyValue { get; set; } - - /// - /// - /// Collection of queries from which to build buckets. - /// - /// - public FiltersAggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? filters) - { - FiltersValue = filters; - return Self; - } - - /// - /// - /// Set to true to add a bucket to the response which will contain all documents that do not match any of the given filters. - /// - /// - public FiltersAggregationDescriptor OtherBucket(bool? otherBucket = true) - { - OtherBucketValue = otherBucket; - return Self; - } - - /// - /// - /// The key with which the other bucket is returned. - /// - /// - public FiltersAggregationDescriptor OtherBucketKey(string? otherBucketKey) - { - OtherBucketKeyValue = otherBucketKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FiltersValue is not null) - { - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - } - - if (OtherBucketValue.HasValue) - { - writer.WritePropertyName("other_bucket"); - writer.WriteBooleanValue(OtherBucketValue.Value); - } - - if (!string.IsNullOrEmpty(OtherBucketKeyValue)) - { - writer.WritePropertyName("other_bucket_key"); - writer.WriteStringValue(OtherBucketKeyValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FiltersAggregationDescriptor : SerializableDescriptor -{ - internal FiltersAggregationDescriptor(Action configure) => configure.Invoke(this); - - public FiltersAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? FiltersValue { get; set; } - private bool? OtherBucketValue { get; set; } - private string? OtherBucketKeyValue { get; set; } - - /// - /// - /// Collection of queries from which to build buckets. - /// - /// - public FiltersAggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? filters) - { - FiltersValue = filters; - return Self; - } - - /// - /// - /// Set to true to add a bucket to the response which will contain all documents that do not match any of the given filters. - /// - /// - public FiltersAggregationDescriptor OtherBucket(bool? otherBucket = true) - { - OtherBucketValue = otherBucket; - return Self; - } - - /// - /// - /// The key with which the other bucket is returned. - /// - /// - public FiltersAggregationDescriptor OtherBucketKey(string? otherBucketKey) - { - OtherBucketKeyValue = otherBucketKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FiltersValue is not null) - { - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - } - - if (OtherBucketValue.HasValue) - { - writer.WritePropertyName("other_bucket"); - writer.WriteBooleanValue(OtherBucketValue.Value); - } - - if (!string.IsNullOrEmpty(OtherBucketKeyValue)) - { - writer.WritePropertyName("other_bucket_key"); - writer.WriteStringValue(OtherBucketKeyValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersBucket.g.cs deleted file mode 100644 index 0de13876564..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FiltersBucket.g.cs +++ /dev/null @@ -1,79 +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.Aggregations; - -internal sealed partial class FiltersBucketConverter : JsonConverter -{ - public override FiltersBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new FiltersBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount }; - } - - public override void Write(Utf8JsonWriter writer, FiltersBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'FiltersBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(FiltersBucketConverter))] -public sealed partial class FiltersBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs deleted file mode 100644 index 10327902268..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class FrequentItemSetsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs deleted file mode 100644 index f6e4457f7de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsAggregation.g.cs +++ /dev/null @@ -1,461 +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.Aggregations; - -public sealed partial class FrequentItemSetsAggregation -{ - /// - /// - /// Fields to analyze. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - public ICollection Fields { get; set; } - - /// - /// - /// Query that filters documents from analysis. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - - /// - /// - /// The minimum size of one item set. - /// - /// - [JsonInclude, JsonPropertyName("minimum_set_size")] - public int? MinimumSetSize { get; set; } - - /// - /// - /// The minimum support of one item set. - /// - /// - [JsonInclude, JsonPropertyName("minimum_support")] - public double? MinimumSupport { get; set; } - - /// - /// - /// The number of top item sets to return. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(FrequentItemSetsAggregation frequentItemSetsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.FrequentItemSets(frequentItemSetsAggregation); -} - -public sealed partial class FrequentItemSetsAggregationDescriptor : SerializableDescriptor> -{ - internal FrequentItemSetsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public FrequentItemSetsAggregationDescriptor() : base() - { - } - - private ICollection FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor FieldsDescriptor { get; set; } - private Action> FieldsDescriptorAction { get; set; } - private Action>[] FieldsDescriptorActions { 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 int? MinimumSetSizeValue { get; set; } - private double? MinimumSupportValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Fields to analyze. - /// - /// - public FrequentItemSetsAggregationDescriptor Fields(ICollection fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Fields(Action> configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Fields(params Action>[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Query that filters documents from analysis. - /// - /// - public FrequentItemSetsAggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum size of one item set. - /// - /// - public FrequentItemSetsAggregationDescriptor MinimumSetSize(int? minimumSetSize) - { - MinimumSetSizeValue = minimumSetSize; - return Self; - } - - /// - /// - /// The minimum support of one item set. - /// - /// - public FrequentItemSetsAggregationDescriptor MinimumSupport(double? minimumSupport) - { - MinimumSupportValue = minimumSupport; - return Self; - } - - /// - /// - /// The number of top item sets to return. - /// - /// - public FrequentItemSetsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - 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 (MinimumSetSizeValue.HasValue) - { - writer.WritePropertyName("minimum_set_size"); - writer.WriteNumberValue(MinimumSetSizeValue.Value); - } - - if (MinimumSupportValue.HasValue) - { - writer.WritePropertyName("minimum_support"); - writer.WriteNumberValue(MinimumSupportValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FrequentItemSetsAggregationDescriptor : SerializableDescriptor -{ - internal FrequentItemSetsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public FrequentItemSetsAggregationDescriptor() : base() - { - } - - private ICollection FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor FieldsDescriptor { get; set; } - private Action FieldsDescriptorAction { get; set; } - private Action[] FieldsDescriptorActions { 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 int? MinimumSetSizeValue { get; set; } - private double? MinimumSupportValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Fields to analyze. - /// - /// - public FrequentItemSetsAggregationDescriptor Fields(ICollection fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Fields(Action configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Fields(params Action[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Query that filters documents from analysis. - /// - /// - public FrequentItemSetsAggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public FrequentItemSetsAggregationDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum size of one item set. - /// - /// - public FrequentItemSetsAggregationDescriptor MinimumSetSize(int? minimumSetSize) - { - MinimumSetSizeValue = minimumSetSize; - return Self; - } - - /// - /// - /// The minimum support of one item set. - /// - /// - public FrequentItemSetsAggregationDescriptor MinimumSupport(double? minimumSupport) - { - MinimumSupportValue = minimumSupport; - return Self; - } - - /// - /// - /// The number of top item sets to return. - /// - /// - public FrequentItemSetsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.FrequentItemSetsFieldDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - 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 (MinimumSetSizeValue.HasValue) - { - writer.WritePropertyName("minimum_set_size"); - writer.WriteNumberValue(MinimumSetSizeValue.Value); - } - - if (MinimumSupportValue.HasValue) - { - writer.WritePropertyName("minimum_support"); - writer.WriteNumberValue(MinimumSupportValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs deleted file mode 100644 index 61749981144..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsBucket.g.cs +++ /dev/null @@ -1,95 +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.Aggregations; - -internal sealed partial class FrequentItemSetsBucketConverter : JsonConverter -{ - public override FrequentItemSetsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary> key = default; - double support = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize>>(ref reader, options); - continue; - } - - if (property == "support") - { - support = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new FrequentItemSetsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key, Support = support }; - } - - public override void Write(Utf8JsonWriter writer, FrequentItemSetsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'FrequentItemSetsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(FrequentItemSetsBucketConverter))] -public sealed partial class FrequentItemSetsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary> Key { get; init; } - public double Support { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs deleted file mode 100644 index d602457cf05..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/FrequentItemSetsField.g.cs +++ /dev/null @@ -1,201 +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.Aggregations; - -public sealed partial class FrequentItemSetsField -{ - /// - /// - /// Values to exclude. - /// Can be regular expression strings or arrays of strings of exact terms. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? Exclude { get; set; } - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Values to include. - /// Can be regular expression strings or arrays of strings of exact terms. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? Include { get; set; } -} - -public sealed partial class FrequentItemSetsFieldDescriptor : SerializableDescriptor> -{ - internal FrequentItemSetsFieldDescriptor(Action> configure) => configure.Invoke(this); - - public FrequentItemSetsFieldDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - - /// - /// - /// Values to exclude. - /// Can be regular expression strings or arrays of strings of exact terms. - /// - /// - public FrequentItemSetsFieldDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - public FrequentItemSetsFieldDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public FrequentItemSetsFieldDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public FrequentItemSetsFieldDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Values to include. - /// Can be regular expression strings or arrays of strings of exact terms. - /// - /// - public FrequentItemSetsFieldDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FrequentItemSetsFieldDescriptor : SerializableDescriptor -{ - internal FrequentItemSetsFieldDescriptor(Action configure) => configure.Invoke(this); - - public FrequentItemSetsFieldDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - - /// - /// - /// Values to exclude. - /// Can be regular expression strings or arrays of strings of exact terms. - /// - /// - public FrequentItemSetsFieldDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - public FrequentItemSetsFieldDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public FrequentItemSetsFieldDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public FrequentItemSetsFieldDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Values to include. - /// Can be regular expression strings or arrays of strings of exact terms. - /// - /// - public FrequentItemSetsFieldDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs deleted file mode 100644 index 45bdf6b6fa1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class GeoBoundsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("bounds")] - public Elastic.Clients.Elasticsearch.Serverless.GeoBounds? Bounds { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index fc7717d21b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoBoundsAggregation.g.cs +++ /dev/null @@ -1,332 +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.Aggregations; - -public sealed partial class GeoBoundsAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Specifies whether the bounding box should be allowed to overlap the international date line. - /// - /// - [JsonInclude, JsonPropertyName("wrap_longitude")] - public bool? WrapLongitude { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(GeoBoundsAggregation geoBoundsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.GeoBounds(geoBoundsAggregation); -} - -public sealed partial class GeoBoundsAggregationDescriptor : SerializableDescriptor> -{ - internal GeoBoundsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoBoundsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoBoundsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoBoundsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public GeoBoundsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public GeoBoundsAggregationDescriptor WrapLongitude(bool? wrapLongitude = true) - { - WrapLongitudeValue = wrapLongitude; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (WrapLongitudeValue.HasValue) - { - writer.WritePropertyName("wrap_longitude"); - writer.WriteBooleanValue(WrapLongitudeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoBoundsAggregationDescriptor : SerializableDescriptor -{ - internal GeoBoundsAggregationDescriptor(Action configure) => configure.Invoke(this); - - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoBoundsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoBoundsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoBoundsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public GeoBoundsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public GeoBoundsAggregationDescriptor WrapLongitude(bool? wrapLongitude = true) - { - WrapLongitudeValue = wrapLongitude; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (WrapLongitudeValue.HasValue) - { - writer.WritePropertyName("wrap_longitude"); - writer.WriteBooleanValue(WrapLongitudeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs deleted file mode 100644 index 2743788a100..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregate.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class GeoCentroidAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("location")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation? Location { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index e3d5fd215f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoCentroidAggregation.g.cs +++ /dev/null @@ -1,345 +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.Aggregations; - -public sealed partial class GeoCentroidAggregation -{ - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("location")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation? Location { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(GeoCentroidAggregation geoCentroidAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.GeoCentroid(geoCentroidAggregation); -} - -public sealed partial class GeoCentroidAggregationDescriptor : SerializableDescriptor> -{ - internal GeoCentroidAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public GeoCentroidAggregationDescriptor() : base() - { - } - - private long? CountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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) - { - CountValue = count; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoCentroidAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoCentroidAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoCentroidAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoCentroidAggregationDescriptor Location(Elastic.Clients.Elasticsearch.Serverless.GeoLocation? location) - { - LocationValue = location; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public GeoCentroidAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (CountValue.HasValue) - { - writer.WritePropertyName("count"); - writer.WriteNumberValue(CountValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (LocationValue is not null) - { - writer.WritePropertyName("location"); - JsonSerializer.Serialize(writer, LocationValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoCentroidAggregationDescriptor : SerializableDescriptor -{ - internal GeoCentroidAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GeoCentroidAggregationDescriptor() : base() - { - } - - private long? CountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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) - { - CountValue = count; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoCentroidAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoCentroidAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public GeoCentroidAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoCentroidAggregationDescriptor Location(Elastic.Clients.Elasticsearch.Serverless.GeoLocation? location) - { - LocationValue = location; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public GeoCentroidAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (CountValue.HasValue) - { - writer.WritePropertyName("count"); - writer.WriteNumberValue(CountValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (LocationValue is not null) - { - writer.WritePropertyName("location"); - JsonSerializer.Serialize(writer, LocationValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/GeoDistanceAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs deleted file mode 100644 index df2c4d5c0ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregate.g.cs +++ /dev/null @@ -1,41 +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.Aggregations; - -/// -/// -/// Result of a geo_distance aggregation. The unit for from and to is meters by default. -/// -/// -public sealed partial class GeoDistanceAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs deleted file mode 100644 index 704e70503a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoDistanceAggregation.g.cs +++ /dev/null @@ -1,445 +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.Aggregations; - -public sealed partial class GeoDistanceAggregation -{ - /// - /// - /// The distance calculation type. - /// - /// - [JsonInclude, JsonPropertyName("distance_type")] - public Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceType { get; set; } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The origin used to evaluate the distance. - /// - /// - [JsonInclude, JsonPropertyName("origin")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation? Origin { get; set; } - - /// - /// - /// An array of ranges used to bucket documents. - /// - /// - [JsonInclude, JsonPropertyName("ranges")] - public ICollection? Ranges { get; set; } - - /// - /// - /// The distance unit. - /// - /// - [JsonInclude, JsonPropertyName("unit")] - public Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? Unit { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(GeoDistanceAggregation geoDistanceAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.GeoDistance(geoDistanceAggregation); -} - -public sealed partial class GeoDistanceAggregationDescriptor : SerializableDescriptor> -{ - internal GeoDistanceAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public GeoDistanceAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation? OriginValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor RangesDescriptor { get; set; } - private Action RangesDescriptorAction { get; set; } - private Action[] RangesDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? UnitValue { get; set; } - - /// - /// - /// The distance calculation type. - /// - /// - public GeoDistanceAggregationDescriptor DistanceType(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? distanceType) - { - DistanceTypeValue = distanceType; - return Self; - } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The origin used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Origin(Elastic.Clients.Elasticsearch.Serverless.GeoLocation? origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// An array of ranges used to bucket documents. - /// - /// - public GeoDistanceAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public GeoDistanceAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public GeoDistanceAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public GeoDistanceAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - /// - /// - /// The distance unit. - /// - /// - public GeoDistanceAggregationDescriptor Unit(Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? unit) - { - UnitValue = unit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DistanceTypeValue is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, DistanceTypeValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (OriginValue is not null) - { - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, options); - } - - if (UnitValue is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, UnitValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoDistanceAggregationDescriptor : SerializableDescriptor -{ - internal GeoDistanceAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GeoDistanceAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation? OriginValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor RangesDescriptor { get; set; } - private Action RangesDescriptorAction { get; set; } - private Action[] RangesDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? UnitValue { get; set; } - - /// - /// - /// The distance calculation type. - /// - /// - public GeoDistanceAggregationDescriptor DistanceType(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? distanceType) - { - DistanceTypeValue = distanceType; - return Self; - } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field of type geo_point used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The origin used to evaluate the distance. - /// - /// - public GeoDistanceAggregationDescriptor Origin(Elastic.Clients.Elasticsearch.Serverless.GeoLocation? origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// An array of ranges used to bucket documents. - /// - /// - public GeoDistanceAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public GeoDistanceAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public GeoDistanceAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public GeoDistanceAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - /// - /// - /// The distance unit. - /// - /// - public GeoDistanceAggregationDescriptor Unit(Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? unit) - { - UnitValue = unit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DistanceTypeValue is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, DistanceTypeValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (OriginValue is not null) - { - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, options); - } - - if (UnitValue is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, UnitValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregate.g.cs deleted file mode 100644 index b2072a2fefa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregate.g.cs +++ /dev/null @@ -1,40 +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.Aggregations; - -public sealed partial class GeoLineAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("geometry")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLine Geometry { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("properties")] - public object Properties { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregation.g.cs deleted file mode 100644 index 190f4d4c11b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineAggregation.g.cs +++ /dev/null @@ -1,409 +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.Aggregations; - -public sealed partial class GeoLineAggregation -{ - /// - /// - /// When true, returns an additional array of the sort values in the feature properties. - /// - /// - [JsonInclude, JsonPropertyName("include_sort")] - public bool? IncludeSort { get; set; } - - /// - /// - /// The name of the geo_point field. - /// - /// - [JsonInclude, JsonPropertyName("point")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePoint Point { get; set; } - - /// - /// - /// The maximum length of the line represented in the aggregation. - /// Valid sizes are between 1 and 10000. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// When the geo_line aggregation is nested inside a time_series aggregation, this field defaults to @timestamp, and any other value will result in error. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSort Sort { get; set; } - - /// - /// - /// The order in which the line is sorted (ascending or descending). - /// - /// - [JsonInclude, JsonPropertyName("sort_order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? SortOrder { get; set; } -} - -public sealed partial class GeoLineAggregationDescriptor : SerializableDescriptor> -{ - internal GeoLineAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public GeoLineAggregationDescriptor() : base() - { - } - - private bool? IncludeSortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePoint PointValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePointDescriptor PointDescriptor { get; set; } - private Action> PointDescriptorAction { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSort SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSortDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? SortOrderValue { get; set; } - - /// - /// - /// When true, returns an additional array of the sort values in the feature properties. - /// - /// - public GeoLineAggregationDescriptor IncludeSort(bool? includeSort = true) - { - IncludeSortValue = includeSort; - return Self; - } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLineAggregationDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePoint point) - { - PointDescriptor = null; - PointDescriptorAction = null; - PointValue = point; - return Self; - } - - public GeoLineAggregationDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePointDescriptor descriptor) - { - PointValue = null; - PointDescriptorAction = null; - PointDescriptor = descriptor; - return Self; - } - - public GeoLineAggregationDescriptor Point(Action> configure) - { - PointValue = null; - PointDescriptor = null; - PointDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum length of the line represented in the aggregation. - /// Valid sizes are between 1 and 10000. - /// - /// - public GeoLineAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// When the geo_line aggregation is nested inside a time_series aggregation, this field defaults to @timestamp, and any other value will result in error. - /// - /// - public GeoLineAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSort sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortValue = sort; - return Self; - } - - public GeoLineAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSortDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptor = descriptor; - return Self; - } - - public GeoLineAggregationDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = configure; - return Self; - } - - /// - /// - /// The order in which the line is sorted (ascending or descending). - /// - /// - public GeoLineAggregationDescriptor SortOrder(Elastic.Clients.Elasticsearch.Serverless.SortOrder? sortOrder) - { - SortOrderValue = sortOrder; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IncludeSortValue.HasValue) - { - writer.WritePropertyName("include_sort"); - writer.WriteBooleanValue(IncludeSortValue.Value); - } - - if (PointDescriptor is not null) - { - writer.WritePropertyName("point"); - JsonSerializer.Serialize(writer, PointDescriptor, options); - } - else if (PointDescriptorAction is not null) - { - writer.WritePropertyName("point"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePointDescriptor(PointDescriptorAction), options); - } - else - { - writer.WritePropertyName("point"); - JsonSerializer.Serialize(writer, PointValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSortDescriptor(SortDescriptorAction), options); - } - else - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (SortOrderValue is not null) - { - writer.WritePropertyName("sort_order"); - JsonSerializer.Serialize(writer, SortOrderValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoLineAggregationDescriptor : SerializableDescriptor -{ - internal GeoLineAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GeoLineAggregationDescriptor() : base() - { - } - - private bool? IncludeSortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePoint PointValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePointDescriptor PointDescriptor { get; set; } - private Action PointDescriptorAction { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSort SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSortDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? SortOrderValue { get; set; } - - /// - /// - /// When true, returns an additional array of the sort values in the feature properties. - /// - /// - public GeoLineAggregationDescriptor IncludeSort(bool? includeSort = true) - { - IncludeSortValue = includeSort; - return Self; - } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLineAggregationDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePoint point) - { - PointDescriptor = null; - PointDescriptorAction = null; - PointValue = point; - return Self; - } - - public GeoLineAggregationDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePointDescriptor descriptor) - { - PointValue = null; - PointDescriptorAction = null; - PointDescriptor = descriptor; - return Self; - } - - public GeoLineAggregationDescriptor Point(Action configure) - { - PointValue = null; - PointDescriptor = null; - PointDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum length of the line represented in the aggregation. - /// Valid sizes are between 1 and 10000. - /// - /// - public GeoLineAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// When the geo_line aggregation is nested inside a time_series aggregation, this field defaults to @timestamp, and any other value will result in error. - /// - /// - public GeoLineAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSort sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortValue = sort; - return Self; - } - - public GeoLineAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSortDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptor = descriptor; - return Self; - } - - public GeoLineAggregationDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = configure; - return Self; - } - - /// - /// - /// The order in which the line is sorted (ascending or descending). - /// - /// - public GeoLineAggregationDescriptor SortOrder(Elastic.Clients.Elasticsearch.Serverless.SortOrder? sortOrder) - { - SortOrderValue = sortOrder; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IncludeSortValue.HasValue) - { - writer.WritePropertyName("include_sort"); - writer.WriteBooleanValue(IncludeSortValue.Value); - } - - if (PointDescriptor is not null) - { - writer.WritePropertyName("point"); - JsonSerializer.Serialize(writer, PointDescriptor, options); - } - else if (PointDescriptorAction is not null) - { - writer.WritePropertyName("point"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLinePointDescriptor(PointDescriptorAction), options); - } - else - { - writer.WritePropertyName("point"); - JsonSerializer.Serialize(writer, PointValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeoLineSortDescriptor(SortDescriptorAction), options); - } - else - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (SortOrderValue is not null) - { - writer.WritePropertyName("sort_order"); - JsonSerializer.Serialize(writer, SortOrderValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLinePoint.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLinePoint.g.cs deleted file mode 100644 index b91af1b478e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLinePoint.g.cs +++ /dev/null @@ -1,143 +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.Aggregations; - -public sealed partial class GeoLinePoint -{ - /// - /// - /// The name of the geo_point field. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } -} - -public sealed partial class GeoLinePointDescriptor : SerializableDescriptor> -{ - internal GeoLinePointDescriptor(Action> configure) => configure.Invoke(this); - - public GeoLinePointDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLinePointDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLinePointDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLinePointDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class GeoLinePointDescriptor : SerializableDescriptor -{ - internal GeoLinePointDescriptor(Action configure) => configure.Invoke(this); - - public GeoLinePointDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLinePointDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLinePointDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the geo_point field. - /// - /// - public GeoLinePointDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineSort.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineSort.g.cs deleted file mode 100644 index c841571ce4a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeoLineSort.g.cs +++ /dev/null @@ -1,143 +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.Aggregations; - -public sealed partial class GeoLineSort -{ - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } -} - -public sealed partial class GeoLineSortDescriptor : SerializableDescriptor> -{ - internal GeoLineSortDescriptor(Action> configure) => configure.Invoke(this); - - public GeoLineSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - public GeoLineSortDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - public GeoLineSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - public GeoLineSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class GeoLineSortDescriptor : SerializableDescriptor -{ - internal GeoLineSortDescriptor(Action configure) => configure.Invoke(this); - - public GeoLineSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - public GeoLineSortDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - public GeoLineSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the numeric field to use as the sort key for ordering the points. - /// - /// - public GeoLineSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs deleted file mode 100644 index 3480803eef0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class GeohashGridAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs deleted file mode 100644 index 58ae2f5cc99..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridAggregation.g.cs +++ /dev/null @@ -1,339 +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.Aggregations; - -public sealed partial class GeohashGridAggregation -{ - /// - /// - /// The bounding box to filter the points in each bucket. - /// - /// - [JsonInclude, JsonPropertyName("bounds")] - public Elastic.Clients.Elasticsearch.Serverless.GeoBounds? Bounds { get; set; } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The string length of the geohashes used to define cells/buckets in the results. - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? Precision { get; set; } - - /// - /// - /// Allows for more accurate counting of the top cells returned in the final result the aggregation. - /// Defaults to returning max(10,(size x number-of-shards)) buckets from each shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// The maximum number of geohash buckets to return. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(GeohashGridAggregation geohashGridAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.GeohashGrid(geohashGridAggregation); -} - -public sealed partial class GeohashGridAggregationDescriptor : SerializableDescriptor> -{ - internal GeohashGridAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public GeohashGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? PrecisionValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// The bounding box to filter the points in each bucket. - /// - /// - public GeohashGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - public GeohashGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - public GeohashGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - public GeohashGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string length of the geohashes used to define cells/buckets in the results. - /// - /// - public GeohashGridAggregationDescriptor Precision(Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Allows for more accurate counting of the top cells returned in the final result the aggregation. - /// Defaults to returning max(10,(size x number-of-shards)) buckets from each shard. - /// - /// - public GeohashGridAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum number of geohash buckets to return. - /// - /// - public GeohashGridAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeohashGridAggregationDescriptor : SerializableDescriptor -{ - internal GeohashGridAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GeohashGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? PrecisionValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// The bounding box to filter the points in each bucket. - /// - /// - public GeohashGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - public GeohashGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - public GeohashGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohash_grid aggregates all array values. - /// - /// - public GeohashGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string length of the geohashes used to define cells/buckets in the results. - /// - /// - public GeohashGridAggregationDescriptor Precision(Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Allows for more accurate counting of the top cells returned in the final result the aggregation. - /// Defaults to returning max(10,(size x number-of-shards)) buckets from each shard. - /// - /// - public GeohashGridAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum number of geohash buckets to return. - /// - /// - public GeohashGridAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridBucket.g.cs deleted file mode 100644 index 1bb531d814f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohashGridBucket.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.Aggregations; - -internal sealed partial class GeohashGridBucketConverter : JsonConverter -{ - public override GeohashGridBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - string key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new GeohashGridBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, GeohashGridBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'GeohashGridBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(GeohashGridBucketConverter))] -public sealed partial class GeohashGridBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public string Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs deleted file mode 100644 index 1667939d82a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class GeohexGridAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs deleted file mode 100644 index 06c865c90b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridAggregation.g.cs +++ /dev/null @@ -1,331 +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.Aggregations; - -public sealed partial class GeohexGridAggregation -{ - /// - /// - /// Bounding box used to filter the geo-points in each bucket. - /// - /// - [JsonInclude, JsonPropertyName("bounds")] - public Elastic.Clients.Elasticsearch.Serverless.GeoBounds? Bounds { get; set; } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Integer zoom of the key used to defined cells or buckets - /// in the results. Value should be between 0-15. - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public int? Precision { get; set; } - - /// - /// - /// Number of buckets returned from each shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// Maximum number of buckets to return. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(GeohexGridAggregation geohexGridAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.GeohexGrid(geohexGridAggregation); -} - -public sealed partial class GeohexGridAggregationDescriptor : SerializableDescriptor> -{ - internal GeohexGridAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public GeohexGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? PrecisionValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Bounding box used to filter the geo-points in each bucket. - /// - /// - public GeohexGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - public GeohexGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - public GeohexGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - public GeohexGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Integer zoom of the key used to defined cells or buckets - /// in the results. Value should be between 0-15. - /// - /// - public GeohexGridAggregationDescriptor Precision(int? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Number of buckets returned from each shard. - /// - /// - public GeohexGridAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// Maximum number of buckets to return. - /// - /// - public GeohexGridAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeohexGridAggregationDescriptor : SerializableDescriptor -{ - internal GeohexGridAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GeohexGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? PrecisionValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Bounding box used to filter the geo-points in each bucket. - /// - /// - public GeohexGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - public GeohexGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - public GeohexGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geohex_grid aggregates all array values. - /// - /// - public GeohexGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Integer zoom of the key used to defined cells or buckets - /// in the results. Value should be between 0-15. - /// - /// - public GeohexGridAggregationDescriptor Precision(int? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Number of buckets returned from each shard. - /// - /// - public GeohexGridAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// Maximum number of buckets to return. - /// - /// - public GeohexGridAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridBucket.g.cs deleted file mode 100644 index 5878ecf1f79..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeohexGridBucket.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.Aggregations; - -internal sealed partial class GeohexGridBucketConverter : JsonConverter -{ - public override GeohexGridBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - string key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new GeohexGridBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, GeohexGridBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'GeohexGridBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(GeohexGridBucketConverter))] -public sealed partial class GeohexGridBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public string Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs deleted file mode 100644 index 8e6cb1d6d12..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class GeotileGridAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs deleted file mode 100644 index 18d182ef309..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridAggregation.g.cs +++ /dev/null @@ -1,343 +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.Aggregations; - -public sealed partial class GeotileGridAggregation -{ - /// - /// - /// A bounding box to filter the geo-points or geo-shapes in each bucket. - /// - /// - [JsonInclude, JsonPropertyName("bounds")] - public Elastic.Clients.Elasticsearch.Serverless.GeoBounds? Bounds { get; set; } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Integer zoom of the key used to define cells/buckets in the results. - /// Values outside of the range [0,29] will be rejected. - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public double? Precision { get; set; } - - /// - /// - /// Allows for more accurate counting of the top cells returned in the final result the aggregation. - /// Defaults to returning max(10,(size x number-of-shards)) buckets from each shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// The maximum number of buckets to return. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(GeotileGridAggregation geotileGridAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.GeotileGrid(geotileGridAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy(GeotileGridAggregation geotileGridAggregation) => Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy.GeotileGrid(geotileGridAggregation); -} - -public sealed partial class GeotileGridAggregationDescriptor : SerializableDescriptor> -{ - internal GeotileGridAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public GeotileGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private double? PrecisionValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// A bounding box to filter the geo-points or geo-shapes in each bucket. - /// - /// - public GeotileGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - public GeotileGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - public GeotileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - public GeotileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Integer zoom of the key used to define cells/buckets in the results. - /// Values outside of the range [0,29] will be rejected. - /// - /// - public GeotileGridAggregationDescriptor Precision(double? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Allows for more accurate counting of the top cells returned in the final result the aggregation. - /// Defaults to returning max(10,(size x number-of-shards)) buckets from each shard. - /// - /// - public GeotileGridAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum number of buckets to return. - /// - /// - public GeotileGridAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeotileGridAggregationDescriptor : SerializableDescriptor -{ - internal GeotileGridAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GeotileGridAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds? BoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private double? PrecisionValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// A bounding box to filter the geo-points or geo-shapes in each bucket. - /// - /// - public GeotileGridAggregationDescriptor Bounds(Elastic.Clients.Elasticsearch.Serverless.GeoBounds? bounds) - { - BoundsValue = bounds; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - public GeotileGridAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - public GeotileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing indexed geo_point or geo_shape values. - /// If the field contains an array, geotile_grid aggregates all array values. - /// - /// - public GeotileGridAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Integer zoom of the key used to define cells/buckets in the results. - /// Values outside of the range [0,29] will be rejected. - /// - /// - public GeotileGridAggregationDescriptor Precision(double? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Allows for more accurate counting of the top cells returned in the final result the aggregation. - /// Defaults to returning max(10,(size x number-of-shards)) buckets from each shard. - /// - /// - public GeotileGridAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum number of buckets to return. - /// - /// - public GeotileGridAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoundsValue is not null) - { - writer.WritePropertyName("bounds"); - JsonSerializer.Serialize(writer, BoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridBucket.g.cs deleted file mode 100644 index cfcaeda800e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GeotileGridBucket.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.Aggregations; - -internal sealed partial class GeotileGridBucketConverter : JsonConverter -{ - public override GeotileGridBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - string key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new GeotileGridBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, GeotileGridBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'GeotileGridBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(GeotileGridBucketConverter))] -public sealed partial class GeotileGridBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public string Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregate.g.cs deleted file mode 100644 index d20cbd31f1c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregate.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.Aggregations; - -internal sealed partial class GlobalAggregateConverter : JsonConverter -{ - public override GlobalAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new GlobalAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, GlobalAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'GlobalAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(GlobalAggregateConverter))] -public sealed partial class GlobalAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregation.g.cs deleted file mode 100644 index 244d0e213aa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GlobalAggregation.g.cs +++ /dev/null @@ -1,47 +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.Aggregations; - -public sealed partial class GlobalAggregation -{ -} - -public sealed partial class GlobalAggregationDescriptor : SerializableDescriptor -{ - internal GlobalAggregationDescriptor(Action configure) => configure.Invoke(this); - - public GlobalAggregationDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs deleted file mode 100644 index 1c2904f0f6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/GoogleNormalizedDistanceHeuristic.g.cs +++ /dev/null @@ -1,73 +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.Aggregations; - -public sealed partial class GoogleNormalizedDistanceHeuristic -{ - /// - /// - /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. - /// - /// - [JsonInclude, JsonPropertyName("background_is_superset")] - public bool? BackgroundIsSuperset { get; set; } -} - -public sealed partial class GoogleNormalizedDistanceHeuristicDescriptor : SerializableDescriptor -{ - internal GoogleNormalizedDistanceHeuristicDescriptor(Action configure) => configure.Invoke(this); - - public GoogleNormalizedDistanceHeuristicDescriptor() : base() - { - } - - private bool? BackgroundIsSupersetValue { get; set; } - - /// - /// - /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. - /// - /// - public GoogleNormalizedDistanceHeuristicDescriptor BackgroundIsSuperset(bool? backgroundIsSuperset = true) - { - BackgroundIsSupersetValue = backgroundIsSuperset; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BackgroundIsSupersetValue.HasValue) - { - writer.WritePropertyName("background_is_superset"); - writer.WriteBooleanValue(BackgroundIsSupersetValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrMethod.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrMethod.g.cs deleted file mode 100644 index 49a13fbb1ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrMethod.g.cs +++ /dev/null @@ -1,73 +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.Aggregations; - -public sealed partial class HdrMethod -{ - /// - /// - /// Specifies the resolution of values for the histogram in number of significant digits. - /// - /// - [JsonInclude, JsonPropertyName("number_of_significant_value_digits")] - public int? NumberOfSignificantValueDigits { get; set; } -} - -public sealed partial class HdrMethodDescriptor : SerializableDescriptor -{ - internal HdrMethodDescriptor(Action configure) => configure.Invoke(this); - - public HdrMethodDescriptor() : base() - { - } - - private int? NumberOfSignificantValueDigitsValue { get; set; } - - /// - /// - /// Specifies the resolution of values for the histogram in number of significant digits. - /// - /// - public HdrMethodDescriptor NumberOfSignificantValueDigits(int? numberOfSignificantValueDigits) - { - NumberOfSignificantValueDigitsValue = numberOfSignificantValueDigits; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumberOfSignificantValueDigitsValue.HasValue) - { - writer.WritePropertyName("number_of_significant_value_digits"); - writer.WriteNumberValue(NumberOfSignificantValueDigitsValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs deleted file mode 100644 index 6cc5bdc26df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentileRanksAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class HdrPercentileRanksAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("values")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Percentiles Values { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs deleted file mode 100644 index 5da78134c81..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HdrPercentilesAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class HdrPercentilesAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("values")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Percentiles Values { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregate.g.cs deleted file mode 100644 index ca1937cb8c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class HistogramAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 35865ac046e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramAggregation.g.cs +++ /dev/null @@ -1,717 +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.Aggregations; - -public sealed partial class HistogramAggregation -{ - /// - /// - /// Enables extending the bounds of the histogram beyond the data itself. - /// - /// - [JsonInclude, JsonPropertyName("extended_bounds")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? ExtendedBounds { get; set; } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Limits the range of buckets in the histogram. - /// It is particularly useful in the case of open data ranges that can result in a very large number of buckets. - /// - /// - [JsonInclude, JsonPropertyName("hard_bounds")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? HardBounds { get; set; } - - /// - /// - /// The interval for the buckets. - /// Must be a positive decimal. - /// - /// - [JsonInclude, JsonPropertyName("interval")] - public double? Interval { get; set; } - - /// - /// - /// Only returns buckets that have min_doc_count number of documents. - /// By default, the response will fill gaps in the histogram with empty buckets. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public int? MinDocCount { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public double? Missing { get; set; } - - /// - /// - /// By default, the bucket keys start with 0 and then continue in even spaced steps of interval. - /// The bucket boundaries can be shifted by using the offset option. - /// - /// - [JsonInclude, JsonPropertyName("offset")] - public double? Offset { get; set; } - - /// - /// - /// The sort order of the returned buckets. - /// By default, the returned buckets are sorted by their key ascending. - /// - /// - [JsonInclude, JsonPropertyName("order")] - [SingleOrManyCollectionConverter(typeof(KeyValuePair))] - public ICollection>? Order { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(HistogramAggregation histogramAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Histogram(histogramAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy(HistogramAggregation histogramAggregation) => Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy.Histogram(histogramAggregation); -} - -public sealed partial class HistogramAggregationDescriptor : SerializableDescriptor> -{ - internal HistogramAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public HistogramAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? ExtendedBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor ExtendedBoundsDescriptor { get; set; } - private Action ExtendedBoundsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? HardBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor HardBoundsDescriptor { get; set; } - private Action HardBoundsDescriptorAction { get; set; } - private double? IntervalValue { get; set; } - private int? MinDocCountValue { get; set; } - private double? MissingValue { get; set; } - 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. - /// - /// - public HistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? extendedBounds) - { - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsValue = extendedBounds; - return Self; - } - - public HistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor descriptor) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsDescriptor = descriptor; - return Self; - } - - public HistogramAggregationDescriptor ExtendedBounds(Action configure) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - public HistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - public HistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - public HistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public HistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Limits the range of buckets in the histogram. - /// It is particularly useful in the case of open data ranges that can result in a very large number of buckets. - /// - /// - public HistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? hardBounds) - { - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = null; - HardBoundsValue = hardBounds; - return Self; - } - - public HistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor descriptor) - { - HardBoundsValue = null; - HardBoundsDescriptorAction = null; - HardBoundsDescriptor = descriptor; - return Self; - } - - public HistogramAggregationDescriptor HardBounds(Action configure) - { - HardBoundsValue = null; - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval for the buckets. - /// Must be a positive decimal. - /// - /// - public HistogramAggregationDescriptor Interval(double? interval) - { - IntervalValue = interval; - return Self; - } - - /// - /// - /// Only returns buckets that have min_doc_count number of documents. - /// By default, the response will fill gaps in the histogram with empty buckets. - /// - /// - public HistogramAggregationDescriptor MinDocCount(int? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public HistogramAggregationDescriptor Missing(double? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// By default, the bucket keys start with 0 and then continue in even spaced steps of interval. - /// The bucket boundaries can be shifted by using the offset option. - /// - /// - public HistogramAggregationDescriptor Offset(double? offset) - { - OffsetValue = offset; - return Self; - } - - /// - /// - /// The sort order of the returned buckets. - /// By default, the returned buckets are sorted by their key ascending. - /// - /// - public HistogramAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - public HistogramAggregationDescriptor 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(); - if (ExtendedBoundsDescriptor is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsDescriptor, options); - } - else if (ExtendedBoundsDescriptorAction is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor(ExtendedBoundsDescriptorAction), options); - } - else if (ExtendedBoundsValue is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HardBoundsDescriptor is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsDescriptor, options); - } - else if (HardBoundsDescriptorAction is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor(HardBoundsDescriptorAction), options); - } - else if (HardBoundsValue is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsValue, options); - } - - if (IntervalValue.HasValue) - { - writer.WritePropertyName("interval"); - writer.WriteNumberValue(IntervalValue.Value); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - if (OffsetValue.HasValue) - { - writer.WritePropertyName("offset"); - writer.WriteNumberValue(OffsetValue.Value); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class HistogramAggregationDescriptor : SerializableDescriptor -{ - internal HistogramAggregationDescriptor(Action configure) => configure.Invoke(this); - - public HistogramAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? ExtendedBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor ExtendedBoundsDescriptor { get; set; } - private Action ExtendedBoundsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? HardBoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor HardBoundsDescriptor { get; set; } - private Action HardBoundsDescriptorAction { get; set; } - private double? IntervalValue { get; set; } - private int? MinDocCountValue { get; set; } - private double? MissingValue { get; set; } - 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. - /// - /// - public HistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? extendedBounds) - { - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsValue = extendedBounds; - return Self; - } - - public HistogramAggregationDescriptor ExtendedBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor descriptor) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptorAction = null; - ExtendedBoundsDescriptor = descriptor; - return Self; - } - - public HistogramAggregationDescriptor ExtendedBounds(Action configure) - { - ExtendedBoundsValue = null; - ExtendedBoundsDescriptor = null; - ExtendedBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - public HistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - public HistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to aggregate on. - /// - /// - public HistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public HistogramAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Limits the range of buckets in the histogram. - /// It is particularly useful in the case of open data ranges that can result in a very large number of buckets. - /// - /// - public HistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloat? hardBounds) - { - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = null; - HardBoundsValue = hardBounds; - return Self; - } - - public HistogramAggregationDescriptor HardBounds(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor descriptor) - { - HardBoundsValue = null; - HardBoundsDescriptorAction = null; - HardBoundsDescriptor = descriptor; - return Self; - } - - public HistogramAggregationDescriptor HardBounds(Action configure) - { - HardBoundsValue = null; - HardBoundsDescriptor = null; - HardBoundsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval for the buckets. - /// Must be a positive decimal. - /// - /// - public HistogramAggregationDescriptor Interval(double? interval) - { - IntervalValue = interval; - return Self; - } - - /// - /// - /// Only returns buckets that have min_doc_count number of documents. - /// By default, the response will fill gaps in the histogram with empty buckets. - /// - /// - public HistogramAggregationDescriptor MinDocCount(int? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public HistogramAggregationDescriptor Missing(double? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// By default, the bucket keys start with 0 and then continue in even spaced steps of interval. - /// The bucket boundaries can be shifted by using the offset option. - /// - /// - public HistogramAggregationDescriptor Offset(double? offset) - { - OffsetValue = offset; - return Self; - } - - /// - /// - /// The sort order of the returned buckets. - /// By default, the returned buckets are sorted by their key ascending. - /// - /// - public HistogramAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - public HistogramAggregationDescriptor 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(); - if (ExtendedBoundsDescriptor is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsDescriptor, options); - } - else if (ExtendedBoundsDescriptorAction is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor(ExtendedBoundsDescriptorAction), options); - } - else if (ExtendedBoundsValue is not null) - { - writer.WritePropertyName("extended_bounds"); - JsonSerializer.Serialize(writer, ExtendedBoundsValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HardBoundsDescriptor is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsDescriptor, options); - } - else if (HardBoundsDescriptorAction is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ExtendedBoundsFloatDescriptor(HardBoundsDescriptorAction), options); - } - else if (HardBoundsValue is not null) - { - writer.WritePropertyName("hard_bounds"); - JsonSerializer.Serialize(writer, HardBoundsValue, options); - } - - if (IntervalValue.HasValue) - { - writer.WritePropertyName("interval"); - writer.WriteNumberValue(IntervalValue.Value); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - if (OffsetValue.HasValue) - { - writer.WritePropertyName("offset"); - writer.WriteNumberValue(OffsetValue.Value); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, 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 if (ScriptValue is not null) - { - 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/HistogramBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramBucket.g.cs deleted file mode 100644 index fe02969739e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/HistogramBucket.g.cs +++ /dev/null @@ -1,95 +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.Aggregations; - -internal sealed partial class HistogramBucketConverter : JsonConverter -{ - public override HistogramBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - double key = default; - string? keyAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new HistogramBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key, KeyAsString = keyAsString }; - } - - public override void Write(Utf8JsonWriter writer, HistogramBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'HistogramBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(HistogramBucketConverter))] -public sealed partial class HistogramBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public double Key { get; init; } - public string? KeyAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregate.g.cs deleted file mode 100644 index c181704ab19..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregate.g.cs +++ /dev/null @@ -1,106 +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.Aggregations; - -internal sealed partial class InferenceAggregateConverter : JsonConverter -{ - public override InferenceAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyCollection? featureImportance = default; - IReadOnlyDictionary? meta = default; - IReadOnlyCollection? topClasses = default; - Elastic.Clients.Elasticsearch.Serverless.FieldValue? value = default; - string? warning = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "feature_importance") - { - featureImportance = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "top_classes") - { - topClasses = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "value") - { - value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "warning") - { - warning = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - return new InferenceAggregate { Data = additionalProperties, FeatureImportance = featureImportance, Meta = meta, TopClasses = topClasses, Value = value, Warning = warning }; - } - - public override void Write(Utf8JsonWriter writer, InferenceAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'InferenceAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(InferenceAggregateConverter))] -public sealed partial class InferenceAggregate : IAggregate -{ - /// - /// - /// Additional data - /// - /// - public IReadOnlyDictionary Data { get; init; } - public IReadOnlyCollection? FeatureImportance { get; init; } - public IReadOnlyDictionary? Meta { get; init; } - public IReadOnlyCollection? TopClasses { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Value { get; init; } - public string? Warning { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregation.g.cs deleted file mode 100644 index b34d2de30f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceAggregation.g.cs +++ /dev/null @@ -1,340 +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.Aggregations; - -public sealed partial class InferenceAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// Contains the inference type and its options. - /// - /// - [JsonInclude, JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig? InferenceConfig { get; set; } - - /// - /// - /// The ID or alias for the trained model. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public Elastic.Clients.Elasticsearch.Serverless.Name ModelId { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(InferenceAggregation inferenceAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Inference(inferenceAggregation); -} - -public sealed partial class InferenceAggregationDescriptor : SerializableDescriptor> -{ - internal InferenceAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } - private Action> InferenceConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name ModelIdValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public InferenceAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public InferenceAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// Contains the inference type and its options. - /// - /// - public InferenceAggregationDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferenceAggregationDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfigDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferenceAggregationDescriptor InferenceConfig(Action> configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ID or alias for the trained model. - /// - /// - public InferenceAggregationDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Name modelId) - { - ModelIdValue = modelId; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfigDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - writer.WritePropertyName("model_id"); - JsonSerializer.Serialize(writer, ModelIdValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceAggregationDescriptor : SerializableDescriptor -{ - internal InferenceAggregationDescriptor(Action configure) => configure.Invoke(this); - - public InferenceAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } - private Action InferenceConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name ModelIdValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public InferenceAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public InferenceAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public InferenceAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// Contains the inference type and its options. - /// - /// - public InferenceAggregationDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferenceAggregationDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfigDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferenceAggregationDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ID or alias for the trained model. - /// - /// - public InferenceAggregationDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Name modelId) - { - ModelIdValue = modelId; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfigDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - writer.WritePropertyName("model_id"); - JsonSerializer.Serialize(writer, ModelIdValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceClassImportance.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceClassImportance.g.cs deleted file mode 100644 index e857a14b7ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceClassImportance.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class InferenceClassImportance -{ - [JsonInclude, JsonPropertyName("class_name")] - public string ClassName { get; init; } - [JsonInclude, JsonPropertyName("importance")] - public double Importance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceConfig.g.cs deleted file mode 100644 index e0656593355..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceConfig.g.cs +++ /dev/null @@ -1,242 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; - -[JsonConverter(typeof(InferenceConfigConverter))] -public sealed partial class InferenceConfig -{ - internal InferenceConfig(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static InferenceConfig Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => new InferenceConfig("classification", classificationInferenceOptions); - public static InferenceConfig Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => new InferenceConfig("regression", regressionInferenceOptions); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class InferenceConfigConverter : JsonConverter -{ - public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regression") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfig' from the response."); - } - - var result = new InferenceConfig(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, InferenceConfig value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigDescriptor : SerializableDescriptor> -{ - internal InferenceConfigDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => Set(classificationInferenceOptions, "classification"); - public InferenceConfigDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => Set(regressionInferenceOptions, "regression"); - public InferenceConfigDescriptor Regression(Action> configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigDescriptor : SerializableDescriptor -{ - internal InferenceConfigDescriptor(Action configure) => configure.Invoke(this); - - public InferenceConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => Set(classificationInferenceOptions, "classification"); - public InferenceConfigDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => Set(regressionInferenceOptions, "regression"); - public InferenceConfigDescriptor Regression(Action configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs deleted file mode 100644 index 830304e4b81..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceFeatureImportance.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class InferenceFeatureImportance -{ - [JsonInclude, JsonPropertyName("classes")] - public IReadOnlyCollection? Classes { get; init; } - [JsonInclude, JsonPropertyName("feature_name")] - public string FeatureName { get; init; } - [JsonInclude, JsonPropertyName("importance")] - public double? Importance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs deleted file mode 100644 index c92cd3773e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/InferenceTopClassEntry.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class InferenceTopClassEntry -{ - [JsonInclude, JsonPropertyName("class_name")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue ClassName { get; init; } - [JsonInclude, JsonPropertyName("class_probability")] - public double ClassProbability { get; init; } - [JsonInclude, JsonPropertyName("class_score")] - public double ClassScore { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs deleted file mode 100644 index e5cc36e2271..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class IpPrefixAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs deleted file mode 100644 index c3de028c560..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixAggregation.g.cs +++ /dev/null @@ -1,316 +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.Aggregations; - -public sealed partial class IpPrefixAggregation -{ - /// - /// - /// Defines whether the prefix length is appended to IP address keys in the response. - /// - /// - [JsonInclude, JsonPropertyName("append_prefix_length")] - public bool? AppendPrefixLength { get; set; } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Defines whether the prefix applies to IPv6 addresses. - /// - /// - [JsonInclude, JsonPropertyName("is_ipv6")] - public bool? IsIpv6 { get; set; } - - /// - /// - /// Minimum number of documents in a bucket for it to be included in the response. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public long? MinDocCount { get; set; } - - /// - /// - /// Length of the network prefix. For IPv4 addresses the accepted range is [0, 32]. - /// For IPv6 addresses the accepted range is [0, 128]. - /// - /// - [JsonInclude, JsonPropertyName("prefix_length")] - public int PrefixLength { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(IpPrefixAggregation ipPrefixAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.IpPrefix(ipPrefixAggregation); -} - -public sealed partial class IpPrefixAggregationDescriptor : SerializableDescriptor> -{ - internal IpPrefixAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public IpPrefixAggregationDescriptor() : base() - { - } - - private bool? AppendPrefixLengthValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? IsIpv6Value { get; set; } - private long? MinDocCountValue { get; set; } - private int PrefixLengthValue { get; set; } - - /// - /// - /// Defines whether the prefix length is appended to IP address keys in the response. - /// - /// - public IpPrefixAggregationDescriptor AppendPrefixLength(bool? appendPrefixLength = true) - { - AppendPrefixLengthValue = appendPrefixLength; - return Self; - } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - public IpPrefixAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - public IpPrefixAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - public IpPrefixAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Defines whether the prefix applies to IPv6 addresses. - /// - /// - public IpPrefixAggregationDescriptor IsIpv6(bool? isIpv6 = true) - { - IsIpv6Value = isIpv6; - return Self; - } - - /// - /// - /// Minimum number of documents in a bucket for it to be included in the response. - /// - /// - public IpPrefixAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Length of the network prefix. For IPv4 addresses the accepted range is [0, 32]. - /// For IPv6 addresses the accepted range is [0, 128]. - /// - /// - public IpPrefixAggregationDescriptor PrefixLength(int prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AppendPrefixLengthValue.HasValue) - { - writer.WritePropertyName("append_prefix_length"); - writer.WriteBooleanValue(AppendPrefixLengthValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IsIpv6Value.HasValue) - { - writer.WritePropertyName("is_ipv6"); - writer.WriteBooleanValue(IsIpv6Value.Value); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue); - writer.WriteEndObject(); - } -} - -public sealed partial class IpPrefixAggregationDescriptor : SerializableDescriptor -{ - internal IpPrefixAggregationDescriptor(Action configure) => configure.Invoke(this); - - public IpPrefixAggregationDescriptor() : base() - { - } - - private bool? AppendPrefixLengthValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? IsIpv6Value { get; set; } - private long? MinDocCountValue { get; set; } - private int PrefixLengthValue { get; set; } - - /// - /// - /// Defines whether the prefix length is appended to IP address keys in the response. - /// - /// - public IpPrefixAggregationDescriptor AppendPrefixLength(bool? appendPrefixLength = true) - { - AppendPrefixLengthValue = appendPrefixLength; - return Self; - } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - public IpPrefixAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - public IpPrefixAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The IP address field to aggregation on. The field mapping type must be ip. - /// - /// - public IpPrefixAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Defines whether the prefix applies to IPv6 addresses. - /// - /// - public IpPrefixAggregationDescriptor IsIpv6(bool? isIpv6 = true) - { - IsIpv6Value = isIpv6; - return Self; - } - - /// - /// - /// Minimum number of documents in a bucket for it to be included in the response. - /// - /// - public IpPrefixAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Length of the network prefix. For IPv4 addresses the accepted range is [0, 32]. - /// For IPv6 addresses the accepted range is [0, 128]. - /// - /// - public IpPrefixAggregationDescriptor PrefixLength(int prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AppendPrefixLengthValue.HasValue) - { - writer.WritePropertyName("append_prefix_length"); - writer.WriteBooleanValue(AppendPrefixLengthValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IsIpv6Value.HasValue) - { - writer.WritePropertyName("is_ipv6"); - writer.WriteBooleanValue(IsIpv6Value.Value); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixBucket.g.cs deleted file mode 100644 index 8ad90a71f6b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpPrefixBucket.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.Aggregations; - -internal sealed partial class IpPrefixBucketConverter : JsonConverter -{ - public override IpPrefixBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - bool isIpv6 = default; - string key = default; - string? netmask = default; - int prefixLength = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "is_ipv6") - { - isIpv6 = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "netmask") - { - netmask = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prefix_length") - { - prefixLength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new IpPrefixBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, IsIpv6 = isIpv6, Key = key, Netmask = netmask, PrefixLength = prefixLength }; - } - - public override void Write(Utf8JsonWriter writer, IpPrefixBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'IpPrefixBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(IpPrefixBucketConverter))] -public sealed partial class IpPrefixBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public bool IsIpv6 { get; init; } - public string Key { get; init; } - public string? Netmask { get; init; } - public int PrefixLength { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregate.g.cs deleted file mode 100644 index 93fe5cb476e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class IpRangeAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregation.g.cs deleted file mode 100644 index daa1f0b6788..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregation.g.cs +++ /dev/null @@ -1,313 +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.Aggregations; - -public sealed partial class IpRangeAggregation -{ - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Array of IP ranges. - /// - /// - [JsonInclude, JsonPropertyName("ranges")] - public ICollection? Ranges { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(IpRangeAggregation ipRangeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.IpRange(ipRangeAggregation); -} - -public sealed partial class IpRangeAggregationDescriptor : SerializableDescriptor> -{ - internal IpRangeAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public IpRangeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor RangesDescriptor { get; set; } - private Action RangesDescriptorAction { get; set; } - private Action[] RangesDescriptorActions { get; set; } - - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - public IpRangeAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - public IpRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - public IpRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Array of IP ranges. - /// - /// - public IpRangeAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public IpRangeAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public IpRangeAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public IpRangeAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IpRangeAggregationDescriptor : SerializableDescriptor -{ - internal IpRangeAggregationDescriptor(Action configure) => configure.Invoke(this); - - public IpRangeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor RangesDescriptor { get; set; } - private Action RangesDescriptorAction { get; set; } - private Action[] RangesDescriptorActions { get; set; } - - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - public IpRangeAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - public IpRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are used to build ranges. - /// - /// - public IpRangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Array of IP ranges. - /// - /// - public IpRangeAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public IpRangeAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public IpRangeAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public IpRangeAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.IpRangeAggregationRangeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs deleted file mode 100644 index 5258d7ee53b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeAggregationRange.g.cs +++ /dev/null @@ -1,125 +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.Aggregations; - -public sealed partial class IpRangeAggregationRange -{ - /// - /// - /// Start of the range. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public string? From { get; set; } - - /// - /// - /// IP range defined as a CIDR mask. - /// - /// - [JsonInclude, JsonPropertyName("mask")] - public string? Mask { get; set; } - - /// - /// - /// End of the range. - /// - /// - [JsonInclude, JsonPropertyName("to")] - public string? To { get; set; } -} - -public sealed partial class IpRangeAggregationRangeDescriptor : SerializableDescriptor -{ - internal IpRangeAggregationRangeDescriptor(Action configure) => configure.Invoke(this); - - public IpRangeAggregationRangeDescriptor() : base() - { - } - - private string? FromValue { get; set; } - private string? MaskValue { get; set; } - private string? ToValue { get; set; } - - /// - /// - /// Start of the range. - /// - /// - public IpRangeAggregationRangeDescriptor From(string? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// IP range defined as a CIDR mask. - /// - /// - public IpRangeAggregationRangeDescriptor Mask(string? mask) - { - MaskValue = mask; - return Self; - } - - /// - /// - /// End of the range. - /// - /// - public IpRangeAggregationRangeDescriptor To(string? to) - { - ToValue = to; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FromValue)) - { - writer.WritePropertyName("from"); - writer.WriteStringValue(FromValue); - } - - if (!string.IsNullOrEmpty(MaskValue)) - { - writer.WritePropertyName("mask"); - writer.WriteStringValue(MaskValue); - } - - if (!string.IsNullOrEmpty(ToValue)) - { - writer.WritePropertyName("to"); - writer.WriteStringValue(ToValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeBucket.g.cs deleted file mode 100644 index eb63a544bb6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/IpRangeBucket.g.cs +++ /dev/null @@ -1,103 +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.Aggregations; - -internal sealed partial class IpRangeBucketConverter : JsonConverter -{ - public override IpRangeBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - string? from = default; - string? key = default; - string? to = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "from") - { - from = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "to") - { - to = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new IpRangeBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, From = from, Key = key, To = to }; - } - - public override void Write(Utf8JsonWriter writer, IpRangeBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'IpRangeBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(IpRangeBucketConverter))] -public sealed partial class IpRangeBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public string? From { get; init; } - public string? Key { get; init; } - public string? To { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs deleted file mode 100644 index f609bb3999b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsAggregate.g.cs +++ /dev/null @@ -1,41 +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.Aggregations; - -/// -/// -/// Result of the rare_terms aggregation when the field is some kind of whole number like a integer, long, or a date. -/// -/// -public sealed partial class LongRareTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs deleted file mode 100644 index 97f7fb82c59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongRareTermsBucket.g.cs +++ /dev/null @@ -1,95 +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.Aggregations; - -internal sealed partial class LongRareTermsBucketConverter : JsonConverter -{ - public override LongRareTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - long key = default; - string? keyAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new LongRareTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key, KeyAsString = keyAsString }; - } - - public override void Write(Utf8JsonWriter writer, LongRareTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'LongRareTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(LongRareTermsBucketConverter))] -public sealed partial class LongRareTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public long Key { get; init; } - public string? KeyAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsAggregate.g.cs deleted file mode 100644 index b4bfc3acf8f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -/// -/// -/// Result of a terms aggregation when the field is some kind of whole number like a integer, long, or a date. -/// -/// -public sealed partial class LongTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count_error_upper_bound")] - public long? DocCountErrorUpperBound { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("sum_other_doc_count")] - public long? SumOtherDocCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsBucket.g.cs deleted file mode 100644 index 6d3ebf56606..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/LongTermsBucket.g.cs +++ /dev/null @@ -1,103 +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.Aggregations; - -internal sealed partial class LongTermsBucketConverter : JsonConverter -{ - public override LongTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - long? docCountErrorUpperBound = default; - long key = default; - string? keyAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "doc_count_error_upper_bound") - { - docCountErrorUpperBound = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new LongTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key, KeyAsString = keyAsString }; - } - - public override void Write(Utf8JsonWriter writer, LongTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'LongTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(LongTermsBucketConverter))] -public sealed partial class LongTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public long? DocCountErrorUpperBound { get; init; } - public long Key { get; init; } - public string? KeyAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs deleted file mode 100644 index 04992647c72..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregate.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class MatrixStatsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("doc_count")] - public long DocCount { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyCollection? Fields { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs deleted file mode 100644 index dd596d44720..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsAggregation.g.cs +++ /dev/null @@ -1,201 +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.Aggregations; - -public sealed partial class MatrixStatsAggregation -{ - /// - /// - /// An array of fields for computing the statistics. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public IDictionary? Missing { get; set; } - - /// - /// - /// Array value the aggregation will use for array or multi-valued fields. - /// - /// - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.SortMode? Mode { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MatrixStatsAggregation matrixStatsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MatrixStats(matrixStatsAggregation); -} - -public sealed partial class MatrixStatsAggregationDescriptor : SerializableDescriptor> -{ - internal MatrixStatsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public MatrixStatsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private IDictionary? MissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortMode? ModeValue { get; set; } - - /// - /// - /// An array of fields for computing the statistics. - /// - /// - public MatrixStatsAggregationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MatrixStatsAggregationDescriptor Missing(Func, FluentDictionary> selector) - { - MissingValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array value the aggregation will use for array or multi-valued fields. - /// - /// - public MatrixStatsAggregationDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) - { - ModeValue = mode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MatrixStatsAggregationDescriptor : SerializableDescriptor -{ - internal MatrixStatsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MatrixStatsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private IDictionary? MissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortMode? ModeValue { get; set; } - - /// - /// - /// An array of fields for computing the statistics. - /// - /// - public MatrixStatsAggregationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MatrixStatsAggregationDescriptor Missing(Func, FluentDictionary> selector) - { - MissingValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array value the aggregation will use for array or multi-valued fields. - /// - /// - public MatrixStatsAggregationDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) - { - ModeValue = mode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsFields.g.cs deleted file mode 100644 index 7938ea4a34d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MatrixStatsFields.g.cs +++ /dev/null @@ -1,50 +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.Aggregations; - -public sealed partial class MatrixStatsFields -{ - [JsonInclude, JsonPropertyName("correlation")] - [ReadOnlyFieldDictionaryConverter(typeof(double))] - public IReadOnlyDictionary Correlation { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("covariance")] - [ReadOnlyFieldDictionaryConverter(typeof(double))] - public IReadOnlyDictionary Covariance { get; init; } - [JsonInclude, JsonPropertyName("kurtosis")] - public double Kurtosis { get; init; } - [JsonInclude, JsonPropertyName("mean")] - public double Mean { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("skewness")] - public double Skewness { get; init; } - [JsonInclude, JsonPropertyName("variance")] - public double Variance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregate.g.cs deleted file mode 100644 index a17cee15fdd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -public sealed partial class MaxAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 48cc3ed00d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxAggregation.g.cs +++ /dev/null @@ -1,316 +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.Aggregations; - -public sealed partial class MaxAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MaxAggregation maxAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Max(maxAggregation); -} - -public sealed partial class MaxAggregationDescriptor : SerializableDescriptor> -{ - internal MaxAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public MaxAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public MaxAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MaxAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MaxAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MaxAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MaxAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MaxAggregationDescriptor : SerializableDescriptor -{ - internal MaxAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MaxAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public MaxAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MaxAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MaxAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MaxAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MaxAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/MaxBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs deleted file mode 100644 index 74a0107649f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MaxBucketAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class MaxBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MaxBucketAggregation maxBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MaxBucket(maxBucketAggregation); -} - -public sealed partial class MaxBucketAggregationDescriptor : SerializableDescriptor -{ - internal MaxBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MaxBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public MaxBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public MaxBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public MaxBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs deleted file mode 100644 index 572d8d27a3a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -public sealed partial class MedianAbsoluteDeviationAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 7d38f3e70ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MedianAbsoluteDeviationAggregation.g.cs +++ /dev/null @@ -1,360 +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.Aggregations; - -public sealed partial class MedianAbsoluteDeviationAggregation -{ - /// - /// - /// Limits the maximum number of nodes used by the underlying TDigest algorithm to 20 * compression, enabling control of memory usage and approximation error. - /// - /// - [JsonInclude, JsonPropertyName("compression")] - public double? Compression { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MedianAbsoluteDeviationAggregation medianAbsoluteDeviationAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MedianAbsoluteDeviation(medianAbsoluteDeviationAggregation); -} - -public sealed partial class MedianAbsoluteDeviationAggregationDescriptor : SerializableDescriptor> -{ - internal MedianAbsoluteDeviationAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public MedianAbsoluteDeviationAggregationDescriptor() : base() - { - } - - private double? CompressionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Compression(double? compression) - { - CompressionValue = compression; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MedianAbsoluteDeviationAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (CompressionValue.HasValue) - { - writer.WritePropertyName("compression"); - writer.WriteNumberValue(CompressionValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MedianAbsoluteDeviationAggregationDescriptor : SerializableDescriptor -{ - internal MedianAbsoluteDeviationAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MedianAbsoluteDeviationAggregationDescriptor() : base() - { - } - - private double? CompressionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Compression(double? compression) - { - CompressionValue = compression; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MedianAbsoluteDeviationAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MedianAbsoluteDeviationAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (CompressionValue.HasValue) - { - writer.WritePropertyName("compression"); - writer.WriteNumberValue(CompressionValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/MinAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregate.g.cs deleted file mode 100644 index c027bc24cfb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -public sealed partial class MinAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 65f06dbcddc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinAggregation.g.cs +++ /dev/null @@ -1,316 +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.Aggregations; - -public sealed partial class MinAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MinAggregation minAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Min(minAggregation); -} - -public sealed partial class MinAggregationDescriptor : SerializableDescriptor> -{ - internal MinAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public MinAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public MinAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MinAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MinAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MinAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MinAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MinAggregationDescriptor : SerializableDescriptor -{ - internal MinAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MinAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public MinAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MinAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public MinAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MinAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MinAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/MinBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinBucketAggregation.g.cs deleted file mode 100644 index 795a7b40807..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MinBucketAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class MinBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MinBucketAggregation minBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MinBucket(minBucketAggregation); -} - -public sealed partial class MinBucketAggregationDescriptor : SerializableDescriptor -{ - internal MinBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MinBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public MinBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public MinBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public MinBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregate.g.cs deleted file mode 100644 index 7beb0b402f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregate.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.Aggregations; - -internal sealed partial class MissingAggregateConverter : JsonConverter -{ - public override MissingAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new MissingAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, MissingAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'MissingAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(MissingAggregateConverter))] -public sealed partial class MissingAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregation.g.cs deleted file mode 100644 index 4f0bbb3cf1c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MissingAggregation.g.cs +++ /dev/null @@ -1,182 +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.Aggregations; - -public sealed partial class MissingAggregation -{ - /// - /// - /// The name of the field. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MissingAggregation missingAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Missing(missingAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(MissingAggregation missingAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.Missing(missingAggregation); -} - -public sealed partial class MissingAggregationDescriptor : SerializableDescriptor> -{ - internal MissingAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public MissingAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - - /// - /// - /// The name of the field. - /// - /// - public MissingAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public MissingAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public MissingAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MissingAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MissingAggregationDescriptor : SerializableDescriptor -{ - internal MissingAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MissingAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - - /// - /// - /// The name of the field. - /// - /// - public MissingAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public MissingAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public MissingAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MissingAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs deleted file mode 100644 index 8e64de08216..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingFunctionAggregation.g.cs +++ /dev/null @@ -1,209 +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.Aggregations; - -public sealed partial class MovingFunctionAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The script that should be executed on each window of data. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public string? Script { get; set; } - - /// - /// - /// By default, the window consists of the last n values excluding the current bucket. - /// Increasing shift by 1, moves the starting window position by 1 to the right. - /// - /// - [JsonInclude, JsonPropertyName("shift")] - public int? Shift { get; set; } - - /// - /// - /// The size of window to "slide" across the histogram. - /// - /// - [JsonInclude, JsonPropertyName("window")] - public int? Window { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MovingFunctionAggregation movingFunctionAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MovingFn(movingFunctionAggregation); -} - -public sealed partial class MovingFunctionAggregationDescriptor : SerializableDescriptor -{ - internal MovingFunctionAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MovingFunctionAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private string? ScriptValue { get; set; } - private int? ShiftValue { get; set; } - private int? WindowValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public MovingFunctionAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public MovingFunctionAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public MovingFunctionAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The script that should be executed on each window of data. - /// - /// - public MovingFunctionAggregationDescriptor Script(string? script) - { - ScriptValue = script; - return Self; - } - - /// - /// - /// By default, the window consists of the last n values excluding the current bucket. - /// Increasing shift by 1, moves the starting window position by 1 to the right. - /// - /// - public MovingFunctionAggregationDescriptor Shift(int? shift) - { - ShiftValue = shift; - return Self; - } - - /// - /// - /// The size of window to "slide" across the histogram. - /// - /// - public MovingFunctionAggregationDescriptor Window(int? window) - { - WindowValue = window; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (!string.IsNullOrEmpty(ScriptValue)) - { - writer.WritePropertyName("script"); - writer.WriteStringValue(ScriptValue); - } - - if (ShiftValue.HasValue) - { - writer.WritePropertyName("shift"); - writer.WriteNumberValue(ShiftValue.Value); - } - - if (WindowValue.HasValue) - { - writer.WritePropertyName("window"); - writer.WriteNumberValue(WindowValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs deleted file mode 100644 index dce677b84f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MovingPercentilesAggregation.g.cs +++ /dev/null @@ -1,183 +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.Aggregations; - -public sealed partial class MovingPercentilesAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// By default, the window consists of the last n values excluding the current bucket. - /// Increasing shift by 1, moves the starting window position by 1 to the right. - /// - /// - [JsonInclude, JsonPropertyName("shift")] - public int? Shift { get; set; } - - /// - /// - /// The size of window to "slide" across the histogram. - /// - /// - [JsonInclude, JsonPropertyName("window")] - public int? Window { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MovingPercentilesAggregation movingPercentilesAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MovingPercentiles(movingPercentilesAggregation); -} - -public sealed partial class MovingPercentilesAggregationDescriptor : SerializableDescriptor -{ - internal MovingPercentilesAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MovingPercentilesAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private int? ShiftValue { get; set; } - private int? WindowValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public MovingPercentilesAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public MovingPercentilesAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public MovingPercentilesAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// By default, the window consists of the last n values excluding the current bucket. - /// Increasing shift by 1, moves the starting window position by 1 to the right. - /// - /// - public MovingPercentilesAggregationDescriptor Shift(int? shift) - { - ShiftValue = shift; - return Self; - } - - /// - /// - /// The size of window to "slide" across the histogram. - /// - /// - public MovingPercentilesAggregationDescriptor Window(int? window) - { - WindowValue = window; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (ShiftValue.HasValue) - { - writer.WritePropertyName("shift"); - writer.WriteNumberValue(ShiftValue.Value); - } - - if (WindowValue.HasValue) - { - writer.WritePropertyName("window"); - writer.WriteNumberValue(WindowValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermLookup.g.cs deleted file mode 100644 index 1ae2d7fc6d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermLookup.g.cs +++ /dev/null @@ -1,190 +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.Aggregations; - -public sealed partial class MultiTermLookup -{ - /// - /// - /// A fields from which to retrieve terms. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } -} - -public sealed partial class MultiTermLookupDescriptor : SerializableDescriptor> -{ - internal MultiTermLookupDescriptor(Action> configure) => configure.Invoke(this); - - public MultiTermLookupDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - - /// - /// - /// A fields from which to retrieve terms. - /// - /// - public MultiTermLookupDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A fields from which to retrieve terms. - /// - /// - public MultiTermLookupDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A fields from which to retrieve terms. - /// - /// - public MultiTermLookupDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MultiTermLookupDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MultiTermLookupDescriptor : SerializableDescriptor -{ - internal MultiTermLookupDescriptor(Action configure) => configure.Invoke(this); - - public MultiTermLookupDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - - /// - /// - /// A fields from which to retrieve terms. - /// - /// - public MultiTermLookupDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A fields from which to retrieve terms. - /// - /// - public MultiTermLookupDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A fields from which to retrieve terms. - /// - /// - public MultiTermLookupDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public MultiTermLookupDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs deleted file mode 100644 index 2cbb83d7203..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregate.g.cs +++ /dev/null @@ -1,40 +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.Aggregations; - -public sealed partial class MultiTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count_error_upper_bound")] - public long? DocCountErrorUpperBound { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("sum_other_doc_count")] - public long? SumOtherDocCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs deleted file mode 100644 index 385bae8dd19..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs +++ /dev/null @@ -1,540 +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.Aggregations; - -public sealed partial class MultiTermsAggregation -{ - /// - /// - /// Specifies the strategy for data collection. - /// - /// - [JsonInclude, JsonPropertyName("collect_mode")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? CollectMode { get; set; } - - /// - /// - /// The minimum number of documents in a bucket for it to be returned. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public long? MinDocCount { get; set; } - - /// - /// - /// Specifies the sort order of the buckets. - /// Defaults to sorting by descending document count. - /// - /// - [JsonInclude, JsonPropertyName("order")] - [SingleOrManyCollectionConverter(typeof(KeyValuePair))] - public ICollection>? Order { get; set; } - - /// - /// - /// The minimum number of documents in a bucket on each shard for it to be returned. - /// - /// - [JsonInclude, JsonPropertyName("shard_min_doc_count")] - public long? ShardMinDocCount { get; set; } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// Calculates the doc count error on per term basis. - /// - /// - [JsonInclude, JsonPropertyName("show_term_doc_count_error")] - public bool? ShowTermDocCountError { get; set; } - - /// - /// - /// The number of term buckets should be returned out of the overall terms list. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The field from which to generate sets of terms. - /// - /// - [JsonInclude, JsonPropertyName("terms")] - public ICollection Terms { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(MultiTermsAggregation multiTermsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.MultiTerms(multiTermsAggregation); -} - -public sealed partial class MultiTermsAggregationDescriptor : SerializableDescriptor> -{ - internal MultiTermsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public MultiTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? CollectModeValue { get; set; } - private long? MinDocCountValue { get; set; } - private ICollection>? OrderValue { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? ShardSizeValue { get; set; } - private bool? ShowTermDocCountErrorValue { get; set; } - private int? SizeValue { get; set; } - private ICollection TermsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor TermsDescriptor { get; set; } - private Action> TermsDescriptorAction { get; set; } - private Action>[] TermsDescriptorActions { get; set; } - - /// - /// - /// Specifies the strategy for data collection. - /// - /// - public MultiTermsAggregationDescriptor CollectMode(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? collectMode) - { - CollectModeValue = collectMode; - return Self; - } - - /// - /// - /// The minimum number of documents in a bucket for it to be returned. - /// - /// - public MultiTermsAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Specifies the sort order of the buckets. - /// Defaults to sorting by descending document count. - /// - /// - public MultiTermsAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// The minimum number of documents in a bucket on each shard for it to be returned. - /// - /// - public MultiTermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public MultiTermsAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// Calculates the doc count error on per term basis. - /// - /// - public MultiTermsAggregationDescriptor ShowTermDocCountError(bool? showTermDocCountError = true) - { - ShowTermDocCountErrorValue = showTermDocCountError; - return Self; - } - - /// - /// - /// The number of term buckets should be returned out of the overall terms list. - /// - /// - public MultiTermsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The field from which to generate sets of terms. - /// - /// - public MultiTermsAggregationDescriptor Terms(ICollection terms) - { - TermsDescriptor = null; - TermsDescriptorAction = null; - TermsDescriptorActions = null; - TermsValue = terms; - return Self; - } - - public MultiTermsAggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor descriptor) - { - TermsValue = null; - TermsDescriptorAction = null; - TermsDescriptorActions = null; - TermsDescriptor = descriptor; - return Self; - } - - public MultiTermsAggregationDescriptor Terms(Action> configure) - { - TermsValue = null; - TermsDescriptor = null; - TermsDescriptorActions = null; - TermsDescriptorAction = configure; - return Self; - } - - public MultiTermsAggregationDescriptor Terms(params Action>[] configure) - { - TermsValue = null; - TermsDescriptor = null; - TermsDescriptorAction = null; - TermsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollectModeValue is not null) - { - writer.WritePropertyName("collect_mode"); - JsonSerializer.Serialize(writer, CollectModeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (ShowTermDocCountErrorValue.HasValue) - { - writer.WritePropertyName("show_term_doc_count_error"); - writer.WriteBooleanValue(ShowTermDocCountErrorValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (TermsDescriptor is not null) - { - writer.WritePropertyName("terms"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, TermsDescriptor, options); - writer.WriteEndArray(); - } - else if (TermsDescriptorAction is not null) - { - writer.WritePropertyName("terms"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor(TermsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (TermsDescriptorActions is not null) - { - writer.WritePropertyName("terms"); - writer.WriteStartArray(); - foreach (var action in TermsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MultiTermsAggregationDescriptor : SerializableDescriptor -{ - internal MultiTermsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public MultiTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? CollectModeValue { get; set; } - private long? MinDocCountValue { get; set; } - private ICollection>? OrderValue { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? ShardSizeValue { get; set; } - private bool? ShowTermDocCountErrorValue { get; set; } - private int? SizeValue { get; set; } - private ICollection TermsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor TermsDescriptor { get; set; } - private Action TermsDescriptorAction { get; set; } - private Action[] TermsDescriptorActions { get; set; } - - /// - /// - /// Specifies the strategy for data collection. - /// - /// - public MultiTermsAggregationDescriptor CollectMode(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? collectMode) - { - CollectModeValue = collectMode; - return Self; - } - - /// - /// - /// The minimum number of documents in a bucket for it to be returned. - /// - /// - public MultiTermsAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Specifies the sort order of the buckets. - /// Defaults to sorting by descending document count. - /// - /// - public MultiTermsAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// The minimum number of documents in a bucket on each shard for it to be returned. - /// - /// - public MultiTermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public MultiTermsAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// Calculates the doc count error on per term basis. - /// - /// - public MultiTermsAggregationDescriptor ShowTermDocCountError(bool? showTermDocCountError = true) - { - ShowTermDocCountErrorValue = showTermDocCountError; - return Self; - } - - /// - /// - /// The number of term buckets should be returned out of the overall terms list. - /// - /// - public MultiTermsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The field from which to generate sets of terms. - /// - /// - public MultiTermsAggregationDescriptor Terms(ICollection terms) - { - TermsDescriptor = null; - TermsDescriptorAction = null; - TermsDescriptorActions = null; - TermsValue = terms; - return Self; - } - - public MultiTermsAggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor descriptor) - { - TermsValue = null; - TermsDescriptorAction = null; - TermsDescriptorActions = null; - TermsDescriptor = descriptor; - return Self; - } - - public MultiTermsAggregationDescriptor Terms(Action configure) - { - TermsValue = null; - TermsDescriptor = null; - TermsDescriptorActions = null; - TermsDescriptorAction = configure; - return Self; - } - - public MultiTermsAggregationDescriptor Terms(params Action[] configure) - { - TermsValue = null; - TermsDescriptor = null; - TermsDescriptorAction = null; - TermsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollectModeValue is not null) - { - writer.WritePropertyName("collect_mode"); - JsonSerializer.Serialize(writer, CollectModeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (ShowTermDocCountErrorValue.HasValue) - { - writer.WritePropertyName("show_term_doc_count_error"); - writer.WriteBooleanValue(ShowTermDocCountErrorValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (TermsDescriptor is not null) - { - writer.WritePropertyName("terms"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, TermsDescriptor, options); - writer.WriteEndArray(); - } - else if (TermsDescriptorAction is not null) - { - writer.WritePropertyName("terms"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor(TermsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (TermsDescriptorActions is not null) - { - writer.WritePropertyName("terms"); - writer.WriteStartArray(); - foreach (var action in TermsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MultiTermLookupDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsBucket.g.cs deleted file mode 100644 index 8ffc914e5ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MultiTermsBucket.g.cs +++ /dev/null @@ -1,103 +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.Aggregations; - -internal sealed partial class MultiTermsBucketConverter : JsonConverter -{ - public override MultiTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - long? docCountErrorUpperBound = default; - IReadOnlyCollection key = default; - string? keyAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "doc_count_error_upper_bound") - { - docCountErrorUpperBound = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new MultiTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key, KeyAsString = keyAsString }; - } - - public override void Write(Utf8JsonWriter writer, MultiTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'MultiTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(MultiTermsBucketConverter))] -public sealed partial class MultiTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public long? DocCountErrorUpperBound { get; init; } - public IReadOnlyCollection Key { get; init; } - public string? KeyAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs deleted file mode 100644 index 6dbd0ff16e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/MutualInformationHeuristic.g.cs +++ /dev/null @@ -1,99 +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.Aggregations; - -public sealed partial class MutualInformationHeuristic -{ - /// - /// - /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. - /// - /// - [JsonInclude, JsonPropertyName("background_is_superset")] - public bool? BackgroundIsSuperset { get; set; } - - /// - /// - /// Set to false to filter out the terms that appear less often in the subset than in documents outside the subset. - /// - /// - [JsonInclude, JsonPropertyName("include_negatives")] - public bool? IncludeNegatives { get; set; } -} - -public sealed partial class MutualInformationHeuristicDescriptor : SerializableDescriptor -{ - internal MutualInformationHeuristicDescriptor(Action configure) => configure.Invoke(this); - - public MutualInformationHeuristicDescriptor() : base() - { - } - - private bool? BackgroundIsSupersetValue { get; set; } - private bool? IncludeNegativesValue { get; set; } - - /// - /// - /// Set to false if you defined a custom background filter that represents a different set of documents that you want to compare to. - /// - /// - public MutualInformationHeuristicDescriptor BackgroundIsSuperset(bool? backgroundIsSuperset = true) - { - BackgroundIsSupersetValue = backgroundIsSuperset; - return Self; - } - - /// - /// - /// Set to false to filter out the terms that appear less often in the subset than in documents outside the subset. - /// - /// - public MutualInformationHeuristicDescriptor IncludeNegatives(bool? includeNegatives = true) - { - IncludeNegativesValue = includeNegatives; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BackgroundIsSupersetValue.HasValue) - { - writer.WritePropertyName("background_is_superset"); - writer.WriteBooleanValue(BackgroundIsSupersetValue.Value); - } - - if (IncludeNegativesValue.HasValue) - { - writer.WritePropertyName("include_negatives"); - writer.WriteBooleanValue(IncludeNegativesValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregate.g.cs deleted file mode 100644 index 2fecd1dea37..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregate.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.Aggregations; - -internal sealed partial class NestedAggregateConverter : JsonConverter -{ - public override NestedAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new NestedAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, NestedAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'NestedAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(NestedAggregateConverter))] -public sealed partial class NestedAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregation.g.cs deleted file mode 100644 index 995d92ab418..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NestedAggregation.g.cs +++ /dev/null @@ -1,153 +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.Aggregations; - -public sealed partial class NestedAggregation -{ - /// - /// - /// The path to the field of type nested. - /// - /// - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Path { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(NestedAggregation nestedAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Nested(nestedAggregation); -} - -public sealed partial class NestedAggregationDescriptor : SerializableDescriptor> -{ - internal NestedAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public NestedAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - - /// - /// - /// The path to the field of type nested. - /// - /// - public NestedAggregationDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - /// - /// - /// The path to the field of type nested. - /// - /// - public NestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// The path to the field of type nested. - /// - /// - public NestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class NestedAggregationDescriptor : SerializableDescriptor -{ - internal NestedAggregationDescriptor(Action configure) => configure.Invoke(this); - - public NestedAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - - /// - /// - /// The path to the field of type nested. - /// - /// - public NestedAggregationDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - /// - /// - /// The path to the field of type nested. - /// - /// - public NestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// The path to the field of type nested. - /// - /// - public NestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NormalizeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NormalizeAggregation.g.cs deleted file mode 100644 index e5316d862a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/NormalizeAggregation.g.cs +++ /dev/null @@ -1,155 +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.Aggregations; - -public sealed partial class NormalizeAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The specific method to apply. - /// - /// - [JsonInclude, JsonPropertyName("method")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeMethod? Method { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(NormalizeAggregation normalizeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Normalize(normalizeAggregation); -} - -public sealed partial class NormalizeAggregationDescriptor : SerializableDescriptor -{ - internal NormalizeAggregationDescriptor(Action configure) => configure.Invoke(this); - - public NormalizeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeMethod? MethodValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public NormalizeAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public NormalizeAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public NormalizeAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The specific method to apply. - /// - /// - public NormalizeAggregationDescriptor Method(Elastic.Clients.Elasticsearch.Serverless.Aggregations.NormalizeMethod? method) - { - MethodValue = method; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (MethodValue is not null) - { - writer.WritePropertyName("method"); - JsonSerializer.Serialize(writer, MethodValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregate.g.cs deleted file mode 100644 index c504491ea66..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregate.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.Aggregations; - -internal sealed partial class ParentAggregateConverter : JsonConverter -{ - public override ParentAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new ParentAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, ParentAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'ParentAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(ParentAggregateConverter))] -public sealed partial class ParentAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregation.g.cs deleted file mode 100644 index e02954c66d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ParentAggregation.g.cs +++ /dev/null @@ -1,75 +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.Aggregations; - -public sealed partial class ParentAggregation -{ - /// - /// - /// The child type that should be selected. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string? Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ParentAggregation parentAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Parent(parentAggregation); -} - -public sealed partial class ParentAggregationDescriptor : SerializableDescriptor -{ - internal ParentAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ParentAggregationDescriptor() : base() - { - } - - private string? TypeValue { get; set; } - - /// - /// - /// The child type that should be selected. - /// - /// - public ParentAggregationDescriptor Type(string? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(TypeValue)) - { - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs deleted file mode 100644 index 0e51bc998df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentageScoreHeuristic.g.cs +++ /dev/null @@ -1,47 +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.Aggregations; - -public sealed partial class PercentageScoreHeuristic -{ -} - -public sealed partial class PercentageScoreHeuristicDescriptor : SerializableDescriptor -{ - internal PercentageScoreHeuristicDescriptor(Action configure) => configure.Invoke(this); - - public PercentageScoreHeuristicDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 67de21797b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentileRanksAggregation.g.cs +++ /dev/null @@ -1,568 +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.Aggregations; - -public sealed partial class PercentileRanksAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Uses the alternative High Dynamic Range Histogram algorithm to calculate percentile ranks. - /// - /// - [JsonInclude, JsonPropertyName("hdr")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? Hdr { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Sets parameters for the default TDigest algorithm used to calculate percentile ranks. - /// - /// - [JsonInclude, JsonPropertyName("tdigest")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? TDigest { get; set; } - - /// - /// - /// An array of values for which to calculate the percentile ranks. - /// - /// - [JsonInclude, JsonPropertyName("values")] - public ICollection? Values { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(PercentileRanksAggregation percentileRanksAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.PercentileRanks(percentileRanksAggregation); -} - -public sealed partial class PercentileRanksAggregationDescriptor : SerializableDescriptor> -{ - internal PercentileRanksAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public PercentileRanksAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? HdrValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor HdrDescriptor { get; set; } - 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; } - private ICollection? ValuesValue { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentileRanksAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentileRanksAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentileRanksAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PercentileRanksAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Uses the alternative High Dynamic Range Histogram algorithm to calculate percentile ranks. - /// - /// - public PercentileRanksAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? hdr) - { - HdrDescriptor = null; - HdrDescriptorAction = null; - HdrValue = hdr; - return Self; - } - - public PercentileRanksAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor descriptor) - { - HdrValue = null; - HdrDescriptorAction = null; - HdrDescriptor = descriptor; - return Self; - } - - public PercentileRanksAggregationDescriptor Hdr(Action configure) - { - HdrValue = null; - HdrDescriptor = null; - HdrDescriptorAction = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public PercentileRanksAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public PercentileRanksAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? tDigest) - { - TDigestDescriptor = null; - TDigestDescriptorAction = null; - TDigestValue = tDigest; - return Self; - } - - public PercentileRanksAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor descriptor) - { - TDigestValue = null; - TDigestDescriptorAction = null; - TDigestDescriptor = descriptor; - return Self; - } - - public PercentileRanksAggregationDescriptor TDigest(Action configure) - { - TDigestValue = null; - TDigestDescriptor = null; - TDigestDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of values for which to calculate the percentile ranks. - /// - /// - public PercentileRanksAggregationDescriptor Values(ICollection? values) - { - ValuesValue = values; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HdrDescriptor is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrDescriptor, options); - } - else if (HdrDescriptorAction is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor(HdrDescriptorAction), options); - } - else if (HdrValue is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (TDigestDescriptor is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestDescriptor, options); - } - else if (TDigestDescriptorAction is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor(TDigestDescriptorAction), options); - } - else if (TDigestValue is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestValue, options); - } - - if (ValuesValue is not null) - { - writer.WritePropertyName("values"); - JsonSerializer.Serialize(writer, ValuesValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PercentileRanksAggregationDescriptor : SerializableDescriptor -{ - internal PercentileRanksAggregationDescriptor(Action configure) => configure.Invoke(this); - - public PercentileRanksAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? HdrValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor HdrDescriptor { get; set; } - 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; } - private ICollection? ValuesValue { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentileRanksAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentileRanksAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentileRanksAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PercentileRanksAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Uses the alternative High Dynamic Range Histogram algorithm to calculate percentile ranks. - /// - /// - public PercentileRanksAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? hdr) - { - HdrDescriptor = null; - HdrDescriptorAction = null; - HdrValue = hdr; - return Self; - } - - public PercentileRanksAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor descriptor) - { - HdrValue = null; - HdrDescriptorAction = null; - HdrDescriptor = descriptor; - return Self; - } - - public PercentileRanksAggregationDescriptor Hdr(Action configure) - { - HdrValue = null; - HdrDescriptor = null; - HdrDescriptorAction = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public PercentileRanksAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public PercentileRanksAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? tDigest) - { - TDigestDescriptor = null; - TDigestDescriptorAction = null; - TDigestValue = tDigest; - return Self; - } - - public PercentileRanksAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor descriptor) - { - TDigestValue = null; - TDigestDescriptorAction = null; - TDigestDescriptor = descriptor; - return Self; - } - - public PercentileRanksAggregationDescriptor TDigest(Action configure) - { - TDigestValue = null; - TDigestDescriptor = null; - TDigestDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of values for which to calculate the percentile ranks. - /// - /// - public PercentileRanksAggregationDescriptor Values(ICollection? values) - { - ValuesValue = values; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HdrDescriptor is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrDescriptor, options); - } - else if (HdrDescriptorAction is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor(HdrDescriptorAction), options); - } - else if (HdrValue is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (TDigestDescriptor is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestDescriptor, options); - } - else if (TDigestDescriptorAction is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor(TDigestDescriptorAction), options); - } - else if (TDigestValue is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestValue, options); - } - - if (ValuesValue is not null) - { - writer.WritePropertyName("values"); - JsonSerializer.Serialize(writer, ValuesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Percentiles.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Percentiles.g.cs deleted file mode 100644 index e38861b6f11..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/Percentiles.g.cs +++ /dev/null @@ -1,42 +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.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.Aggregations; - -public sealed partial class Percentiles : Union, IReadOnlyCollection> -{ - public Percentiles(IReadOnlyDictionary Keyed) : base(Keyed) - { - } - - public Percentiles(IReadOnlyCollection Array) : base(Array) - { - } -} \ No newline at end of file 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 deleted file mode 100644 index ab5dd97184a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesAggregation.g.cs +++ /dev/null @@ -1,568 +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.Aggregations; - -public sealed partial class PercentilesAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Uses the alternative High Dynamic Range Histogram algorithm to calculate percentiles. - /// - /// - [JsonInclude, JsonPropertyName("hdr")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? Hdr { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - /// - /// - /// The percentiles to calculate. - /// - /// - [JsonInclude, JsonPropertyName("percents")] - public ICollection? Percents { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Sets parameters for the default TDigest algorithm used to calculate percentiles. - /// - /// - [JsonInclude, JsonPropertyName("tdigest")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? TDigest { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(PercentilesAggregation percentilesAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Percentiles(percentilesAggregation); -} - -public sealed partial class PercentilesAggregationDescriptor : SerializableDescriptor> -{ - internal PercentilesAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public PercentilesAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? HdrValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor HdrDescriptor { get; set; } - private Action HdrDescriptorAction { get; set; } - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentilesAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentilesAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentilesAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PercentilesAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Uses the alternative High Dynamic Range Histogram algorithm to calculate percentiles. - /// - /// - public PercentilesAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? hdr) - { - HdrDescriptor = null; - HdrDescriptorAction = null; - HdrValue = hdr; - return Self; - } - - public PercentilesAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor descriptor) - { - HdrValue = null; - HdrDescriptorAction = null; - HdrDescriptor = descriptor; - return Self; - } - - public PercentilesAggregationDescriptor Hdr(Action configure) - { - HdrValue = null; - HdrDescriptor = null; - HdrDescriptorAction = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public PercentilesAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// The percentiles to calculate. - /// - /// - public PercentilesAggregationDescriptor Percents(ICollection? percents) - { - PercentsValue = percents; - return Self; - } - - 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. - /// - /// - public PercentilesAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? tDigest) - { - TDigestDescriptor = null; - TDigestDescriptorAction = null; - TDigestValue = tDigest; - return Self; - } - - public PercentilesAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor descriptor) - { - TDigestValue = null; - TDigestDescriptorAction = null; - TDigestDescriptor = descriptor; - return Self; - } - - public PercentilesAggregationDescriptor TDigest(Action configure) - { - TDigestValue = null; - TDigestDescriptor = null; - TDigestDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HdrDescriptor is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrDescriptor, options); - } - else if (HdrDescriptorAction is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor(HdrDescriptorAction), options); - } - else if (HdrValue is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (PercentsValue is not null) - { - writer.WritePropertyName("percents"); - JsonSerializer.Serialize(writer, PercentsValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (TDigestDescriptor is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestDescriptor, options); - } - else if (TDigestDescriptorAction is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor(TDigestDescriptorAction), options); - } - else if (TDigestValue is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PercentilesAggregationDescriptor : SerializableDescriptor -{ - internal PercentilesAggregationDescriptor(Action configure) => configure.Invoke(this); - - public PercentilesAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? HdrValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor HdrDescriptor { get; set; } - private Action HdrDescriptorAction { get; set; } - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentilesAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentilesAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public PercentilesAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PercentilesAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Uses the alternative High Dynamic Range Histogram algorithm to calculate percentiles. - /// - /// - public PercentilesAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethod? hdr) - { - HdrDescriptor = null; - HdrDescriptorAction = null; - HdrValue = hdr; - return Self; - } - - public PercentilesAggregationDescriptor Hdr(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor descriptor) - { - HdrValue = null; - HdrDescriptorAction = null; - HdrDescriptor = descriptor; - return Self; - } - - public PercentilesAggregationDescriptor Hdr(Action configure) - { - HdrValue = null; - HdrDescriptor = null; - HdrDescriptorAction = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public PercentilesAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// The percentiles to calculate. - /// - /// - public PercentilesAggregationDescriptor Percents(ICollection? percents) - { - PercentsValue = percents; - return Self; - } - - 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. - /// - /// - public PercentilesAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigest? tDigest) - { - TDigestDescriptor = null; - TDigestDescriptorAction = null; - TDigestValue = tDigest; - return Self; - } - - public PercentilesAggregationDescriptor TDigest(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor descriptor) - { - TDigestValue = null; - TDigestDescriptorAction = null; - TDigestDescriptor = descriptor; - return Self; - } - - public PercentilesAggregationDescriptor TDigest(Action configure) - { - TDigestValue = null; - TDigestDescriptor = null; - TDigestDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (HdrDescriptor is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrDescriptor, options); - } - else if (HdrDescriptorAction is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.HdrMethodDescriptor(HdrDescriptorAction), options); - } - else if (HdrValue is not null) - { - writer.WritePropertyName("hdr"); - JsonSerializer.Serialize(writer, HdrValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (PercentsValue is not null) - { - writer.WritePropertyName("percents"); - JsonSerializer.Serialize(writer, PercentsValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (TDigestDescriptor is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestDescriptor, options); - } - else if (TDigestDescriptorAction is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TDigestDescriptor(TDigestDescriptorAction), options); - } - else if (TDigestValue is not null) - { - writer.WritePropertyName("tdigest"); - JsonSerializer.Serialize(writer, TDigestValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs deleted file mode 100644 index e29d1a9a062..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class PercentilesBucketAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("values")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Percentiles Values { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs deleted file mode 100644 index a89020e7e24..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs +++ /dev/null @@ -1,155 +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.Aggregations; - -public sealed partial class PercentilesBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The list of percentiles to calculate. - /// - /// - [JsonInclude, JsonPropertyName("percents")] - public ICollection? Percents { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(PercentilesBucketAggregation percentilesBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.PercentilesBucket(percentilesBucketAggregation); -} - -public sealed partial class PercentilesBucketAggregationDescriptor : SerializableDescriptor -{ - internal PercentilesBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public PercentilesBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private ICollection? PercentsValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public PercentilesBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public PercentilesBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public PercentilesBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The list of percentiles to calculate. - /// - /// - public PercentilesBucketAggregationDescriptor Percents(ICollection? percents) - { - PercentsValue = percents; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (PercentsValue is not null) - { - writer.WritePropertyName("percents"); - JsonSerializer.Serialize(writer, PercentsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregate.g.cs deleted file mode 100644 index b27d6bb4052..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class RangeAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 8912410a1ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeAggregation.g.cs +++ /dev/null @@ -1,477 +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.Aggregations; - -public sealed partial class RangeAggregation -{ - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public int? Missing { get; set; } - - /// - /// - /// An array of ranges used to bucket documents. - /// - /// - [JsonInclude, JsonPropertyName("ranges")] - public ICollection? Ranges { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(RangeAggregation rangeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Range(rangeAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(RangeAggregation rangeAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.Range(rangeAggregation); -} - -public sealed partial class RangeAggregationDescriptor : SerializableDescriptor> -{ - internal RangeAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public RangeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private int? MissingValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor RangesDescriptor { get; set; } - 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. - /// - /// - public RangeAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public RangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public RangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RangeAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public RangeAggregationDescriptor Missing(int? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// An array of ranges used to bucket documents. - /// - /// - public RangeAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public RangeAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public RangeAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public RangeAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - public RangeAggregationDescriptor 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RangeAggregationDescriptor : SerializableDescriptor -{ - internal RangeAggregationDescriptor(Action configure) => configure.Invoke(this); - - public RangeAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private int? MissingValue { get; set; } - private ICollection? RangesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor RangesDescriptor { get; set; } - 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. - /// - /// - public RangeAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public RangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field whose values are use to build ranges. - /// - /// - public RangeAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RangeAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public RangeAggregationDescriptor Missing(int? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// An array of ranges used to bucket documents. - /// - /// - public RangeAggregationDescriptor Ranges(ICollection? ranges) - { - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesValue = ranges; - return Self; - } - - public RangeAggregationDescriptor Ranges(Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor descriptor) - { - RangesValue = null; - RangesDescriptorAction = null; - RangesDescriptorActions = null; - RangesDescriptor = descriptor; - return Self; - } - - public RangeAggregationDescriptor Ranges(Action configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorActions = null; - RangesDescriptorAction = configure; - return Self; - } - - public RangeAggregationDescriptor Ranges(params Action[] configure) - { - RangesValue = null; - RangesDescriptor = null; - RangesDescriptorAction = null; - RangesDescriptorActions = configure; - return Self; - } - - public RangeAggregationDescriptor 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - if (RangesDescriptor is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RangesDescriptor, options); - writer.WriteEndArray(); - } - else if (RangesDescriptorAction is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(RangesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RangesDescriptorActions is not null) - { - writer.WritePropertyName("ranges"); - writer.WriteStartArray(); - foreach (var action in RangesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregationRangeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (RangesValue is not null) - { - writer.WritePropertyName("ranges"); - JsonSerializer.Serialize(writer, RangesValue, 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 if (ScriptValue is not null) - { - 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/RangeBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeBucket.g.cs deleted file mode 100644 index 92d28d6da79..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RangeBucket.g.cs +++ /dev/null @@ -1,125 +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.Aggregations; - -internal sealed partial class RangeBucketConverter : JsonConverter -{ - public override RangeBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - double? from = default; - string? fromAsString = default; - string? key = default; - double? to = default; - string? toAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "from") - { - from = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "from_as_string") - { - fromAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "to") - { - to = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "to_as_string") - { - toAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new RangeBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, From = from, FromAsString = fromAsString, Key = key, To = to, ToAsString = toAsString }; - } - - public override void Write(Utf8JsonWriter writer, RangeBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'RangeBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(RangeBucketConverter))] -public sealed partial class RangeBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public double? From { get; init; } - public string? FromAsString { get; init; } - - /// - /// - /// The bucket key. Present if the aggregation is not keyed - /// - /// - public string? Key { get; init; } - public double? To { get; init; } - public string? ToAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RareTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RareTermsAggregation.g.cs deleted file mode 100644 index e92635a541b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RareTermsAggregation.g.cs +++ /dev/null @@ -1,407 +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.Aggregations; - -public sealed partial class RareTermsAggregation -{ - /// - /// - /// Terms that should be excluded from the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? Exclude { get; set; } - - /// - /// - /// The field from which to return rare terms. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Terms that should be included in the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? Include { get; set; } - - /// - /// - /// The maximum number of documents a term should appear in. - /// - /// - [JsonInclude, JsonPropertyName("max_doc_count")] - public long? MaxDocCount { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - /// - /// - /// The precision of the internal CuckooFilters. - /// Smaller precision leads to better approximation, but higher memory usage. - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public double? Precision { get; set; } - [JsonInclude, JsonPropertyName("value_type")] - public string? ValueType { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(RareTermsAggregation rareTermsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.RareTerms(rareTermsAggregation); -} - -public sealed partial class RareTermsAggregationDescriptor : SerializableDescriptor> -{ - internal RareTermsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public RareTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private long? MaxDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - private double? PrecisionValue { get; set; } - private string? ValueTypeValue { get; set; } - - /// - /// - /// Terms that should be excluded from the aggregation. - /// - /// - public RareTermsAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// The field from which to return rare terms. - /// - /// - public RareTermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return rare terms. - /// - /// - public RareTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return rare terms. - /// - /// - public RareTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Terms that should be included in the aggregation. - /// - /// - public RareTermsAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// The maximum number of documents a term should appear in. - /// - /// - public RareTermsAggregationDescriptor MaxDocCount(long? maxDocCount) - { - MaxDocCountValue = maxDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public RareTermsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// The precision of the internal CuckooFilters. - /// Smaller precision leads to better approximation, but higher memory usage. - /// - /// - public RareTermsAggregationDescriptor Precision(double? precision) - { - PrecisionValue = precision; - return Self; - } - - public RareTermsAggregationDescriptor ValueType(string? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MaxDocCountValue.HasValue) - { - writer.WritePropertyName("max_doc_count"); - writer.WriteNumberValue(MaxDocCountValue.Value); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - if (!string.IsNullOrEmpty(ValueTypeValue)) - { - writer.WritePropertyName("value_type"); - writer.WriteStringValue(ValueTypeValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RareTermsAggregationDescriptor : SerializableDescriptor -{ - internal RareTermsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public RareTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private long? MaxDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - private double? PrecisionValue { get; set; } - private string? ValueTypeValue { get; set; } - - /// - /// - /// Terms that should be excluded from the aggregation. - /// - /// - public RareTermsAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// The field from which to return rare terms. - /// - /// - public RareTermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return rare terms. - /// - /// - public RareTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return rare terms. - /// - /// - public RareTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Terms that should be included in the aggregation. - /// - /// - public RareTermsAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// The maximum number of documents a term should appear in. - /// - /// - public RareTermsAggregationDescriptor MaxDocCount(long? maxDocCount) - { - MaxDocCountValue = maxDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public RareTermsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// The precision of the internal CuckooFilters. - /// Smaller precision leads to better approximation, but higher memory usage. - /// - /// - public RareTermsAggregationDescriptor Precision(double? precision) - { - PrecisionValue = precision; - return Self; - } - - public RareTermsAggregationDescriptor ValueType(string? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MaxDocCountValue.HasValue) - { - writer.WritePropertyName("max_doc_count"); - writer.WriteNumberValue(MaxDocCountValue.Value); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (PrecisionValue.HasValue) - { - writer.WritePropertyName("precision"); - writer.WriteNumberValue(PrecisionValue.Value); - } - - if (!string.IsNullOrEmpty(ValueTypeValue)) - { - writer.WritePropertyName("value_type"); - writer.WriteStringValue(ValueTypeValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregate.g.cs deleted file mode 100644 index 303bfe634f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregate.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class RateAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("value")] - public double Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index a87f9578bfc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/RateAggregation.g.cs +++ /dev/null @@ -1,407 +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.Aggregations; - -public sealed partial class RateAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - /// - /// - /// How the rate is calculated. - /// - /// - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateMode? Mode { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// The interval used to calculate the rate. - /// By default, the interval of the date_histogram is used. - /// - /// - [JsonInclude, JsonPropertyName("unit")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? Unit { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(RateAggregation rateAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Rate(rateAggregation); -} - -public sealed partial class RateAggregationDescriptor : SerializableDescriptor> -{ - internal RateAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public RateAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public RateAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public RateAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public RateAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RateAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public RateAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// How the rate is calculated. - /// - /// - public RateAggregationDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateMode? mode) - { - ModeValue = mode; - return Self; - } - - 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. - /// - /// - public RateAggregationDescriptor Unit(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? unit) - { - UnitValue = unit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (UnitValue is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, UnitValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RateAggregationDescriptor : SerializableDescriptor -{ - internal RateAggregationDescriptor(Action configure) => configure.Invoke(this); - - public RateAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public RateAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public RateAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public RateAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RateAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public RateAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// How the rate is calculated. - /// - /// - public RateAggregationDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RateMode? mode) - { - ModeValue = mode; - return Self; - } - - 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. - /// - /// - public RateAggregationDescriptor Unit(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CalendarInterval? unit) - { - UnitValue = unit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (UnitValue is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, UnitValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregate.g.cs deleted file mode 100644 index b4dcfa21b23..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregate.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.Aggregations; - -internal sealed partial class ReverseNestedAggregateConverter : JsonConverter -{ - public override ReverseNestedAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new ReverseNestedAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, ReverseNestedAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'ReverseNestedAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(ReverseNestedAggregateConverter))] -public sealed partial class ReverseNestedAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs deleted file mode 100644 index 43c5ca5e4b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ReverseNestedAggregation.g.cs +++ /dev/null @@ -1,160 +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.Aggregations; - -public sealed partial class ReverseNestedAggregation -{ - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Path { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ReverseNestedAggregation reverseNestedAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.ReverseNested(reverseNestedAggregation); -} - -public sealed partial class ReverseNestedAggregationDescriptor : SerializableDescriptor> -{ - internal ReverseNestedAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public ReverseNestedAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - public ReverseNestedAggregationDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - public ReverseNestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - public ReverseNestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ReverseNestedAggregationDescriptor : SerializableDescriptor -{ - internal ReverseNestedAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ReverseNestedAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - public ReverseNestedAggregationDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - public ReverseNestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Defines the nested object field that should be joined back to. - /// The default is empty, which means that it joins back to the root/main document level. - /// - /// - public ReverseNestedAggregationDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregate.g.cs deleted file mode 100644 index f067ef6d31b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregate.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.Aggregations; - -internal sealed partial class SamplerAggregateConverter : JsonConverter -{ - public override SamplerAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new SamplerAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, SamplerAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'SamplerAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(SamplerAggregateConverter))] -public sealed partial class SamplerAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregation.g.cs deleted file mode 100644 index c9c3d45d203..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SamplerAggregation.g.cs +++ /dev/null @@ -1,75 +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.Aggregations; - -public sealed partial class SamplerAggregation -{ - /// - /// - /// Limits how many top-scoring documents are collected in the sample processed on each shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SamplerAggregation samplerAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Sampler(samplerAggregation); -} - -public sealed partial class SamplerAggregationDescriptor : SerializableDescriptor -{ - internal SamplerAggregationDescriptor(Action configure) => configure.Invoke(this); - - public SamplerAggregationDescriptor() : base() - { - } - - private int? ShardSizeValue { get; set; } - - /// - /// - /// Limits how many top-scoring documents are collected in the sample processed on each shard. - /// - /// - public SamplerAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 75d1cc8978b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedHeuristic.g.cs +++ /dev/null @@ -1,93 +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.Aggregations; - -public sealed partial class ScriptedHeuristic -{ - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } -} - -public sealed partial class ScriptedHeuristicDescriptor : SerializableDescriptor -{ - internal ScriptedHeuristicDescriptor(Action configure) => configure.Invoke(this); - - 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(); - 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/ScriptedMetricAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs deleted file mode 100644 index 51ddfb89dc8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class ScriptedMetricAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("value")] - public object Value { get; init; } -} \ 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 deleted file mode 100644 index 789e93828b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ScriptedMetricAggregation.g.cs +++ /dev/null @@ -1,763 +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.Aggregations; - -public sealed partial class ScriptedMetricAggregation -{ - /// - /// - /// Runs once on each shard after document collection is complete. - /// Allows the aggregation to consolidate the state returned from each shard. - /// - /// - [JsonInclude, JsonPropertyName("combine_script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? CombineScript { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Runs prior to any collection of documents. - /// Allows the aggregation to set up any initial state. - /// - /// - [JsonInclude, JsonPropertyName("init_script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? InitScript { get; set; } - - /// - /// - /// Run once per document collected. - /// If no combine_script is specified, the resulting state needs to be stored in the state object. - /// - /// - [JsonInclude, JsonPropertyName("map_script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? MapScript { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - - /// - /// - /// A global object with script parameters for init, map and combine scripts. - /// It is shared between the scripts. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// Runs once on the coordinating node after all shards have returned their results. - /// The script is provided with access to a variable states, which is an array of the result of the combine_script on each shard. - /// - /// - [JsonInclude, JsonPropertyName("reduce_script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? ReduceScript { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ScriptedMetricAggregation scriptedMetricAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.ScriptedMetric(scriptedMetricAggregation); -} - -public sealed partial class ScriptedMetricAggregationDescriptor : SerializableDescriptor> -{ - internal ScriptedMetricAggregationDescriptor(Action> configure) => configure.Invoke(this); - - 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. - /// - /// - public ScriptedMetricAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ScriptedMetricAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ScriptedMetricAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Runs prior to any collection of documents. - /// Allows the aggregation to set up any initial state. - /// - /// - 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. - /// - /// - public ScriptedMetricAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// A global object with script parameters for init, map and combine scripts. - /// It is shared between the scripts. - /// - /// - public ScriptedMetricAggregationDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Runs once on the coordinating node after all shards have returned their results. - /// The script is provided with access to a variable states, which is an array of the result of the combine_script on each shard. - /// - /// - 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 (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); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - 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 (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); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - 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 (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); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ScriptedMetricAggregationDescriptor : SerializableDescriptor -{ - internal ScriptedMetricAggregationDescriptor(Action configure) => configure.Invoke(this); - - 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. - /// - /// - public ScriptedMetricAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ScriptedMetricAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ScriptedMetricAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Runs prior to any collection of documents. - /// Allows the aggregation to set up any initial state. - /// - /// - 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. - /// - /// - public ScriptedMetricAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// A global object with script parameters for init, map and combine scripts. - /// It is shared between the scripts. - /// - /// - public ScriptedMetricAggregationDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Runs once on the coordinating node after all shards have returned their results. - /// The script is provided with access to a variable states, which is an array of the result of the combine_script on each shard. - /// - /// - 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 (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); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - 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 (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); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - 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 (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); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs deleted file mode 100644 index ce7e96c21ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SerialDifferencingAggregation.g.cs +++ /dev/null @@ -1,157 +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.Aggregations; - -public sealed partial class SerialDifferencingAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - /// - /// - /// The historical bucket to subtract from the current value. - /// Must be a positive, non-zero integer. - /// - /// - [JsonInclude, JsonPropertyName("lag")] - public int? Lag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SerialDifferencingAggregation serialDifferencingAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.SerialDiff(serialDifferencingAggregation); -} - -public sealed partial class SerialDifferencingAggregationDescriptor : SerializableDescriptor -{ - internal SerialDifferencingAggregationDescriptor(Action configure) => configure.Invoke(this); - - public SerialDifferencingAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - private int? LagValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public SerialDifferencingAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public SerialDifferencingAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public SerialDifferencingAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - /// - /// - /// The historical bucket to subtract from the current value. - /// Must be a positive, non-zero integer. - /// - /// - public SerialDifferencingAggregationDescriptor Lag(int? lag) - { - LagValue = lag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - if (LagValue.HasValue) - { - writer.WritePropertyName("lag"); - writer.WriteNumberValue(LagValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs deleted file mode 100644 index 682a7e49a9e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsAggregate.g.cs +++ /dev/null @@ -1,40 +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.Aggregations; - -public sealed partial class SignificantLongTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("bg_count")] - public long? BgCount { get; init; } - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count")] - public long? DocCount { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.cs deleted file mode 100644 index b2e0622e3b8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantLongTermsBucket.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.Aggregations; - -internal sealed partial class SignificantLongTermsBucketConverter : JsonConverter -{ - public override SignificantLongTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long bgCount = default; - long docCount = default; - long key = default; - string? keyAsString = default; - double score = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "bg_count") - { - bgCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "score") - { - score = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new SignificantLongTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), BgCount = bgCount, DocCount = docCount, Key = key, KeyAsString = keyAsString, Score = score }; - } - - public override void Write(Utf8JsonWriter writer, SignificantLongTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'SignificantLongTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(SignificantLongTermsBucketConverter))] -public sealed partial class SignificantLongTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long BgCount { get; init; } - public long DocCount { get; init; } - public long Key { get; init; } - public string? KeyAsString { get; init; } - public double Score { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs deleted file mode 100644 index 636834cdfd1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsAggregate.g.cs +++ /dev/null @@ -1,40 +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.Aggregations; - -public sealed partial class SignificantStringTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("bg_count")] - public long? BgCount { get; init; } - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count")] - public long? DocCount { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs deleted file mode 100644 index 4adf4ae4fc4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantStringTermsBucket.g.cs +++ /dev/null @@ -1,103 +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.Aggregations; - -internal sealed partial class SignificantStringTermsBucketConverter : JsonConverter -{ - public override SignificantStringTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long bgCount = default; - long docCount = default; - string key = default; - double score = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "bg_count") - { - bgCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "score") - { - score = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new SignificantStringTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), BgCount = bgCount, DocCount = docCount, Key = key, Score = score }; - } - - public override void Write(Utf8JsonWriter writer, SignificantStringTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'SignificantStringTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(SignificantStringTermsBucketConverter))] -public sealed partial class SignificantStringTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long BgCount { get; init; } - public long DocCount { get; init; } - public string Key { get; init; } - public double Score { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs deleted file mode 100644 index 68da3188fa9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTermsAggregation.g.cs +++ /dev/null @@ -1,1195 +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.Aggregations; - -public sealed partial class SignificantTermsAggregation -{ - /// - /// - /// A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index. - /// - /// - [JsonInclude, JsonPropertyName("background_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? BackgroundFilter { get; set; } - - /// - /// - /// Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("chi_square")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? ChiSquare { get; set; } - - /// - /// - /// Terms to exclude. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? Exclude { get; set; } - - /// - /// - /// Mechanism by which the aggregation should be executed: using field values directly or using global ordinals. - /// - /// - [JsonInclude, JsonPropertyName("execution_hint")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHint { get; set; } - - /// - /// - /// The field from which to return significant terms. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("gnd")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? Gnd { get; set; } - - /// - /// - /// Terms to include. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? Include { get; set; } - - /// - /// - /// Use JLH score as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("jlh")] - public Elastic.Clients.Elasticsearch.Serverless.EmptyObject? Jlh { get; set; } - - /// - /// - /// Only return terms that are found in more than min_doc_count hits. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public long? MinDocCount { get; set; } - - /// - /// - /// Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("mutual_information")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? MutualInformation { get; set; } - - /// - /// - /// A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. - /// - /// - [JsonInclude, JsonPropertyName("percentage")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? Percentage { get; set; } - - /// - /// - /// Customized score, implemented via a script. - /// - /// - [JsonInclude, JsonPropertyName("script_heuristic")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? ScriptHeuristic { get; set; } - - /// - /// - /// Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the min_doc_count. - /// Terms will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count. - /// - /// - [JsonInclude, JsonPropertyName("shard_min_doc_count")] - public long? ShardMinDocCount { get; set; } - - /// - /// - /// Can be used to control the volumes of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SignificantTermsAggregation significantTermsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.SignificantTerms(significantTermsAggregation); -} - -public sealed partial class SignificantTermsAggregationDescriptor : SerializableDescriptor> -{ - internal SignificantTermsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public SignificantTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? BackgroundFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor BackgroundFilterDescriptor { get; set; } - private Action> BackgroundFilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? ChiSquareValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor ChiSquareDescriptor { get; set; } - private Action ChiSquareDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? GndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor GndDescriptor { get; set; } - private Action GndDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObject? JlhValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor JlhDescriptor { get; set; } - private Action JlhDescriptorAction { get; set; } - private long? MinDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? MutualInformationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor MutualInformationDescriptor { get; set; } - private Action MutualInformationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? PercentageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor PercentageDescriptor { get; set; } - private Action PercentageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? ScriptHeuristicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor ScriptHeuristicDescriptor { get; set; } - private Action ScriptHeuristicDescriptorAction { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index. - /// - /// - public SignificantTermsAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? backgroundFilter) - { - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterValue = backgroundFilter; - return Self; - } - - public SignificantTermsAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor BackgroundFilter(Action> configure) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? chiSquare) - { - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = null; - ChiSquareValue = chiSquare; - return Self; - } - - public SignificantTermsAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor descriptor) - { - ChiSquareValue = null; - ChiSquareDescriptorAction = null; - ChiSquareDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor ChiSquare(Action configure) - { - ChiSquareValue = null; - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = configure; - return Self; - } - - /// - /// - /// Terms to exclude. - /// - /// - public SignificantTermsAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Mechanism by which the aggregation should be executed: using field values directly or using global ordinals. - /// - /// - public SignificantTermsAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field from which to return significant terms. - /// - /// - public SignificantTermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant terms. - /// - /// - public SignificantTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant terms. - /// - /// - public SignificantTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? gnd) - { - GndDescriptor = null; - GndDescriptorAction = null; - GndValue = gnd; - return Self; - } - - public SignificantTermsAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor descriptor) - { - GndValue = null; - GndDescriptorAction = null; - GndDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor Gnd(Action configure) - { - GndValue = null; - GndDescriptor = null; - GndDescriptorAction = configure; - return Self; - } - - /// - /// - /// Terms to include. - /// - /// - public SignificantTermsAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Use JLH score as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObject? jlh) - { - JlhDescriptor = null; - JlhDescriptorAction = null; - JlhValue = jlh; - return Self; - } - - public SignificantTermsAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor descriptor) - { - JlhValue = null; - JlhDescriptorAction = null; - JlhDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor Jlh(Action configure) - { - JlhValue = null; - JlhDescriptor = null; - JlhDescriptorAction = configure; - return Self; - } - - /// - /// - /// Only return terms that are found in more than min_doc_count hits. - /// - /// - public SignificantTermsAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? mutualInformation) - { - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = null; - MutualInformationValue = mutualInformation; - return Self; - } - - public SignificantTermsAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor descriptor) - { - MutualInformationValue = null; - MutualInformationDescriptorAction = null; - MutualInformationDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor MutualInformation(Action configure) - { - MutualInformationValue = null; - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = configure; - return Self; - } - - /// - /// - /// A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. - /// - /// - public SignificantTermsAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? percentage) - { - PercentageDescriptor = null; - PercentageDescriptorAction = null; - PercentageValue = percentage; - return Self; - } - - public SignificantTermsAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor descriptor) - { - PercentageValue = null; - PercentageDescriptorAction = null; - PercentageDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor Percentage(Action configure) - { - PercentageValue = null; - PercentageDescriptor = null; - PercentageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Customized score, implemented via a script. - /// - /// - public SignificantTermsAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? scriptHeuristic) - { - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicValue = scriptHeuristic; - return Self; - } - - public SignificantTermsAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor descriptor) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor ScriptHeuristic(Action configure) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = 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. - /// - /// - public SignificantTermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// Can be used to control the volumes of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public SignificantTermsAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - public SignificantTermsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BackgroundFilterDescriptor is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterDescriptor, options); - } - else if (BackgroundFilterDescriptorAction is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(BackgroundFilterDescriptorAction), options); - } - else if (BackgroundFilterValue is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterValue, options); - } - - if (ChiSquareDescriptor is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareDescriptor, options); - } - else if (ChiSquareDescriptorAction is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor(ChiSquareDescriptorAction), options); - } - else if (ChiSquareValue is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareValue, options); - } - - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (GndDescriptor is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndDescriptor, options); - } - else if (GndDescriptorAction is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor(GndDescriptorAction), options); - } - else if (GndValue is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndValue, options); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (JlhDescriptor is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhDescriptor, options); - } - else if (JlhDescriptorAction is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor(JlhDescriptorAction), options); - } - else if (JlhValue is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MutualInformationDescriptor is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationDescriptor, options); - } - else if (MutualInformationDescriptorAction is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor(MutualInformationDescriptorAction), options); - } - else if (MutualInformationValue is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationValue, options); - } - - if (PercentageDescriptor is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageDescriptor, options); - } - else if (PercentageDescriptorAction is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor(PercentageDescriptorAction), options); - } - else if (PercentageValue is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageValue, options); - } - - if (ScriptHeuristicDescriptor is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicDescriptor, options); - } - else if (ScriptHeuristicDescriptorAction is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor(ScriptHeuristicDescriptorAction), options); - } - else if (ScriptHeuristicValue is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicValue, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SignificantTermsAggregationDescriptor : SerializableDescriptor -{ - internal SignificantTermsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public SignificantTermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? BackgroundFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor BackgroundFilterDescriptor { get; set; } - private Action BackgroundFilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? ChiSquareValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor ChiSquareDescriptor { get; set; } - private Action ChiSquareDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? GndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor GndDescriptor { get; set; } - private Action GndDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObject? JlhValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor JlhDescriptor { get; set; } - private Action JlhDescriptorAction { get; set; } - private long? MinDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? MutualInformationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor MutualInformationDescriptor { get; set; } - private Action MutualInformationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? PercentageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor PercentageDescriptor { get; set; } - private Action PercentageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? ScriptHeuristicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor ScriptHeuristicDescriptor { get; set; } - private Action ScriptHeuristicDescriptorAction { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index. - /// - /// - public SignificantTermsAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? backgroundFilter) - { - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterValue = backgroundFilter; - return Self; - } - - public SignificantTermsAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor BackgroundFilter(Action configure) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? chiSquare) - { - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = null; - ChiSquareValue = chiSquare; - return Self; - } - - public SignificantTermsAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor descriptor) - { - ChiSquareValue = null; - ChiSquareDescriptorAction = null; - ChiSquareDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor ChiSquare(Action configure) - { - ChiSquareValue = null; - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = configure; - return Self; - } - - /// - /// - /// Terms to exclude. - /// - /// - public SignificantTermsAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Mechanism by which the aggregation should be executed: using field values directly or using global ordinals. - /// - /// - public SignificantTermsAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field from which to return significant terms. - /// - /// - public SignificantTermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant terms. - /// - /// - public SignificantTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant terms. - /// - /// - public SignificantTermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? gnd) - { - GndDescriptor = null; - GndDescriptorAction = null; - GndValue = gnd; - return Self; - } - - public SignificantTermsAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor descriptor) - { - GndValue = null; - GndDescriptorAction = null; - GndDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor Gnd(Action configure) - { - GndValue = null; - GndDescriptor = null; - GndDescriptorAction = configure; - return Self; - } - - /// - /// - /// Terms to include. - /// - /// - public SignificantTermsAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Use JLH score as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObject? jlh) - { - JlhDescriptor = null; - JlhDescriptorAction = null; - JlhValue = jlh; - return Self; - } - - public SignificantTermsAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor descriptor) - { - JlhValue = null; - JlhDescriptorAction = null; - JlhDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor Jlh(Action configure) - { - JlhValue = null; - JlhDescriptor = null; - JlhDescriptorAction = configure; - return Self; - } - - /// - /// - /// Only return terms that are found in more than min_doc_count hits. - /// - /// - public SignificantTermsAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score. - /// - /// - public SignificantTermsAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? mutualInformation) - { - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = null; - MutualInformationValue = mutualInformation; - return Self; - } - - public SignificantTermsAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor descriptor) - { - MutualInformationValue = null; - MutualInformationDescriptorAction = null; - MutualInformationDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor MutualInformation(Action configure) - { - MutualInformationValue = null; - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = configure; - return Self; - } - - /// - /// - /// A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. - /// - /// - public SignificantTermsAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? percentage) - { - PercentageDescriptor = null; - PercentageDescriptorAction = null; - PercentageValue = percentage; - return Self; - } - - public SignificantTermsAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor descriptor) - { - PercentageValue = null; - PercentageDescriptorAction = null; - PercentageDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor Percentage(Action configure) - { - PercentageValue = null; - PercentageDescriptor = null; - PercentageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Customized score, implemented via a script. - /// - /// - public SignificantTermsAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? scriptHeuristic) - { - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicValue = scriptHeuristic; - return Self; - } - - public SignificantTermsAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor descriptor) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicDescriptor = descriptor; - return Self; - } - - public SignificantTermsAggregationDescriptor ScriptHeuristic(Action configure) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = 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. - /// - /// - public SignificantTermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// Can be used to control the volumes of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public SignificantTermsAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - public SignificantTermsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BackgroundFilterDescriptor is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterDescriptor, options); - } - else if (BackgroundFilterDescriptorAction is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(BackgroundFilterDescriptorAction), options); - } - else if (BackgroundFilterValue is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterValue, options); - } - - if (ChiSquareDescriptor is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareDescriptor, options); - } - else if (ChiSquareDescriptorAction is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor(ChiSquareDescriptorAction), options); - } - else if (ChiSquareValue is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareValue, options); - } - - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (GndDescriptor is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndDescriptor, options); - } - else if (GndDescriptorAction is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor(GndDescriptorAction), options); - } - else if (GndValue is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndValue, options); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (JlhDescriptor is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhDescriptor, options); - } - else if (JlhDescriptorAction is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor(JlhDescriptorAction), options); - } - else if (JlhValue is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MutualInformationDescriptor is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationDescriptor, options); - } - else if (MutualInformationDescriptorAction is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor(MutualInformationDescriptorAction), options); - } - else if (MutualInformationValue is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationValue, options); - } - - if (PercentageDescriptor is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageDescriptor, options); - } - else if (PercentageDescriptorAction is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor(PercentageDescriptorAction), options); - } - else if (PercentageValue is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageValue, options); - } - - if (ScriptHeuristicDescriptor is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicDescriptor, options); - } - else if (ScriptHeuristicDescriptorAction is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor(ScriptHeuristicDescriptorAction), options); - } - else if (ScriptHeuristicValue is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicValue, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs deleted file mode 100644 index 3b445cbbdda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SignificantTextAggregation.g.cs +++ /dev/null @@ -1,1284 +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.Aggregations; - -public sealed partial class SignificantTextAggregation -{ - /// - /// - /// A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index. - /// - /// - [JsonInclude, JsonPropertyName("background_filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? BackgroundFilter { get; set; } - - /// - /// - /// Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("chi_square")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? ChiSquare { get; set; } - - /// - /// - /// Values to exclude. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? Exclude { get; set; } - - /// - /// - /// Determines whether the aggregation will use field values directly or global ordinals. - /// - /// - [JsonInclude, JsonPropertyName("execution_hint")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHint { get; set; } - - /// - /// - /// The field from which to return significant text. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Whether to out duplicate text to deal with noisy data. - /// - /// - [JsonInclude, JsonPropertyName("filter_duplicate_text")] - public bool? FilterDuplicateText { get; set; } - - /// - /// - /// Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("gnd")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? Gnd { get; set; } - - /// - /// - /// Values to include. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? Include { get; set; } - - /// - /// - /// Use JLH score as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("jlh")] - public Elastic.Clients.Elasticsearch.Serverless.EmptyObject? Jlh { get; set; } - - /// - /// - /// Only return values that are found in more than min_doc_count hits. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public long? MinDocCount { get; set; } - - /// - /// - /// Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score. - /// - /// - [JsonInclude, JsonPropertyName("mutual_information")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? MutualInformation { get; set; } - - /// - /// - /// A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. - /// - /// - [JsonInclude, JsonPropertyName("percentage")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? Percentage { get; set; } - - /// - /// - /// Customized score, implemented via a script. - /// - /// - [JsonInclude, JsonPropertyName("script_heuristic")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? ScriptHeuristic { get; set; } - - /// - /// - /// Regulates the certainty a shard has if the values should actually be added to the candidate list or not with respect to the min_doc_count. - /// Values will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count. - /// - /// - [JsonInclude, JsonPropertyName("shard_min_doc_count")] - public long? ShardMinDocCount { get; set; } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Overrides the JSON _source fields from which text will be analyzed. - /// - /// - [JsonInclude, JsonPropertyName("source_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFields { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SignificantTextAggregation significantTextAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.SignificantText(significantTextAggregation); -} - -public sealed partial class SignificantTextAggregationDescriptor : SerializableDescriptor> -{ - internal SignificantTextAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public SignificantTextAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? BackgroundFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor BackgroundFilterDescriptor { get; set; } - private Action> BackgroundFilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? ChiSquareValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor ChiSquareDescriptor { get; set; } - private Action ChiSquareDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private bool? FilterDuplicateTextValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? GndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor GndDescriptor { get; set; } - private Action GndDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObject? JlhValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor JlhDescriptor { get; set; } - private Action JlhDescriptorAction { get; set; } - private long? MinDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? MutualInformationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor MutualInformationDescriptor { get; set; } - private Action MutualInformationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? PercentageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor PercentageDescriptor { get; set; } - private Action PercentageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? ScriptHeuristicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor ScriptHeuristicDescriptor { get; set; } - private Action ScriptHeuristicDescriptorAction { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFieldsValue { get; set; } - - /// - /// - /// A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index. - /// - /// - public SignificantTextAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? backgroundFilter) - { - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterValue = backgroundFilter; - return Self; - } - - public SignificantTextAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor BackgroundFilter(Action> configure) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score. - /// - /// - public SignificantTextAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? chiSquare) - { - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = null; - ChiSquareValue = chiSquare; - return Self; - } - - public SignificantTextAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor descriptor) - { - ChiSquareValue = null; - ChiSquareDescriptorAction = null; - ChiSquareDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor ChiSquare(Action configure) - { - ChiSquareValue = null; - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = configure; - return Self; - } - - /// - /// - /// Values to exclude. - /// - /// - public SignificantTextAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Determines whether the aggregation will use field values directly or global ordinals. - /// - /// - public SignificantTextAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field from which to return significant text. - /// - /// - public SignificantTextAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant text. - /// - /// - public SignificantTextAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant text. - /// - /// - public SignificantTextAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Whether to out duplicate text to deal with noisy data. - /// - /// - public SignificantTextAggregationDescriptor FilterDuplicateText(bool? filterDuplicateText = true) - { - FilterDuplicateTextValue = filterDuplicateText; - return Self; - } - - /// - /// - /// Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score. - /// - /// - public SignificantTextAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? gnd) - { - GndDescriptor = null; - GndDescriptorAction = null; - GndValue = gnd; - return Self; - } - - public SignificantTextAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor descriptor) - { - GndValue = null; - GndDescriptorAction = null; - GndDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor Gnd(Action configure) - { - GndValue = null; - GndDescriptor = null; - GndDescriptorAction = configure; - return Self; - } - - /// - /// - /// Values to include. - /// - /// - public SignificantTextAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Use JLH score as the significance score. - /// - /// - public SignificantTextAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObject? jlh) - { - JlhDescriptor = null; - JlhDescriptorAction = null; - JlhValue = jlh; - return Self; - } - - public SignificantTextAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor descriptor) - { - JlhValue = null; - JlhDescriptorAction = null; - JlhDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor Jlh(Action configure) - { - JlhValue = null; - JlhDescriptor = null; - JlhDescriptorAction = configure; - return Self; - } - - /// - /// - /// Only return values that are found in more than min_doc_count hits. - /// - /// - public SignificantTextAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score. - /// - /// - public SignificantTextAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? mutualInformation) - { - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = null; - MutualInformationValue = mutualInformation; - return Self; - } - - public SignificantTextAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor descriptor) - { - MutualInformationValue = null; - MutualInformationDescriptorAction = null; - MutualInformationDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor MutualInformation(Action configure) - { - MutualInformationValue = null; - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = configure; - return Self; - } - - /// - /// - /// A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. - /// - /// - public SignificantTextAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? percentage) - { - PercentageDescriptor = null; - PercentageDescriptorAction = null; - PercentageValue = percentage; - return Self; - } - - public SignificantTextAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor descriptor) - { - PercentageValue = null; - PercentageDescriptorAction = null; - PercentageDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor Percentage(Action configure) - { - PercentageValue = null; - PercentageDescriptor = null; - PercentageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Customized score, implemented via a script. - /// - /// - public SignificantTextAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? scriptHeuristic) - { - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicValue = scriptHeuristic; - return Self; - } - - public SignificantTextAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor descriptor) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor ScriptHeuristic(Action configure) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = configure; - return Self; - } - - /// - /// - /// Regulates the certainty a shard has if the values should actually be added to the candidate list or not with respect to the min_doc_count. - /// Values will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count. - /// - /// - public SignificantTextAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public SignificantTextAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - public SignificantTextAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Overrides the JSON _source fields from which text will be analyzed. - /// - /// - public SignificantTextAggregationDescriptor SourceFields(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceFields) - { - SourceFieldsValue = sourceFields; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BackgroundFilterDescriptor is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterDescriptor, options); - } - else if (BackgroundFilterDescriptorAction is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(BackgroundFilterDescriptorAction), options); - } - else if (BackgroundFilterValue is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterValue, options); - } - - if (ChiSquareDescriptor is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareDescriptor, options); - } - else if (ChiSquareDescriptorAction is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor(ChiSquareDescriptorAction), options); - } - else if (ChiSquareValue is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareValue, options); - } - - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FilterDuplicateTextValue.HasValue) - { - writer.WritePropertyName("filter_duplicate_text"); - writer.WriteBooleanValue(FilterDuplicateTextValue.Value); - } - - if (GndDescriptor is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndDescriptor, options); - } - else if (GndDescriptorAction is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor(GndDescriptorAction), options); - } - else if (GndValue is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndValue, options); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (JlhDescriptor is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhDescriptor, options); - } - else if (JlhDescriptorAction is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor(JlhDescriptorAction), options); - } - else if (JlhValue is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MutualInformationDescriptor is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationDescriptor, options); - } - else if (MutualInformationDescriptorAction is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor(MutualInformationDescriptorAction), options); - } - else if (MutualInformationValue is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationValue, options); - } - - if (PercentageDescriptor is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageDescriptor, options); - } - else if (PercentageDescriptorAction is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor(PercentageDescriptorAction), options); - } - else if (PercentageValue is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageValue, options); - } - - if (ScriptHeuristicDescriptor is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicDescriptor, options); - } - else if (ScriptHeuristicDescriptorAction is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor(ScriptHeuristicDescriptorAction), options); - } - else if (ScriptHeuristicValue is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicValue, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SourceFieldsValue is not null) - { - writer.WritePropertyName("source_fields"); - JsonSerializer.Serialize(writer, SourceFieldsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SignificantTextAggregationDescriptor : SerializableDescriptor -{ - internal SignificantTextAggregationDescriptor(Action configure) => configure.Invoke(this); - - public SignificantTextAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? BackgroundFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor BackgroundFilterDescriptor { get; set; } - private Action BackgroundFilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? ChiSquareValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor ChiSquareDescriptor { get; set; } - private Action ChiSquareDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private bool? FilterDuplicateTextValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? GndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor GndDescriptor { get; set; } - private Action GndDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObject? JlhValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor JlhDescriptor { get; set; } - private Action JlhDescriptorAction { get; set; } - private long? MinDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? MutualInformationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor MutualInformationDescriptor { get; set; } - private Action MutualInformationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? PercentageValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor PercentageDescriptor { get; set; } - private Action PercentageDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? ScriptHeuristicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor ScriptHeuristicDescriptor { get; set; } - private Action ScriptHeuristicDescriptorAction { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFieldsValue { get; set; } - - /// - /// - /// A background filter that can be used to focus in on significant terms within a narrower context, instead of the entire index. - /// - /// - public SignificantTextAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? backgroundFilter) - { - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterValue = backgroundFilter; - return Self; - } - - public SignificantTextAggregationDescriptor BackgroundFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptorAction = null; - BackgroundFilterDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor BackgroundFilter(Action configure) - { - BackgroundFilterValue = null; - BackgroundFilterDescriptor = null; - BackgroundFilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Use Chi square, as described in "Information Retrieval", Manning et al., Chapter 13.5.2, as the significance score. - /// - /// - public SignificantTextAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristic? chiSquare) - { - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = null; - ChiSquareValue = chiSquare; - return Self; - } - - public SignificantTextAggregationDescriptor ChiSquare(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor descriptor) - { - ChiSquareValue = null; - ChiSquareDescriptorAction = null; - ChiSquareDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor ChiSquare(Action configure) - { - ChiSquareValue = null; - ChiSquareDescriptor = null; - ChiSquareDescriptorAction = configure; - return Self; - } - - /// - /// - /// Values to exclude. - /// - /// - public SignificantTextAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Determines whether the aggregation will use field values directly or global ordinals. - /// - /// - public SignificantTextAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field from which to return significant text. - /// - /// - public SignificantTextAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant text. - /// - /// - public SignificantTextAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return significant text. - /// - /// - public SignificantTextAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Whether to out duplicate text to deal with noisy data. - /// - /// - public SignificantTextAggregationDescriptor FilterDuplicateText(bool? filterDuplicateText = true) - { - FilterDuplicateTextValue = filterDuplicateText; - return Self; - } - - /// - /// - /// Use Google normalized distance as described in "The Google Similarity Distance", Cilibrasi and Vitanyi, 2007, as the significance score. - /// - /// - public SignificantTextAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristic? gnd) - { - GndDescriptor = null; - GndDescriptorAction = null; - GndValue = gnd; - return Self; - } - - public SignificantTextAggregationDescriptor Gnd(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor descriptor) - { - GndValue = null; - GndDescriptorAction = null; - GndDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor Gnd(Action configure) - { - GndValue = null; - GndDescriptor = null; - GndDescriptorAction = configure; - return Self; - } - - /// - /// - /// Values to include. - /// - /// - public SignificantTextAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Use JLH score as the significance score. - /// - /// - public SignificantTextAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObject? jlh) - { - JlhDescriptor = null; - JlhDescriptorAction = null; - JlhValue = jlh; - return Self; - } - - public SignificantTextAggregationDescriptor Jlh(Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor descriptor) - { - JlhValue = null; - JlhDescriptorAction = null; - JlhDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor Jlh(Action configure) - { - JlhValue = null; - JlhDescriptor = null; - JlhDescriptorAction = configure; - return Self; - } - - /// - /// - /// Only return values that are found in more than min_doc_count hits. - /// - /// - public SignificantTextAggregationDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Use mutual information as described in "Information Retrieval", Manning et al., Chapter 13.5.1, as the significance score. - /// - /// - public SignificantTextAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristic? mutualInformation) - { - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = null; - MutualInformationValue = mutualInformation; - return Self; - } - - public SignificantTextAggregationDescriptor MutualInformation(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor descriptor) - { - MutualInformationValue = null; - MutualInformationDescriptorAction = null; - MutualInformationDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor MutualInformation(Action configure) - { - MutualInformationValue = null; - MutualInformationDescriptor = null; - MutualInformationDescriptorAction = configure; - return Self; - } - - /// - /// - /// A simple calculation of the number of documents in the foreground sample with a term divided by the number of documents in the background with the term. - /// - /// - public SignificantTextAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristic? percentage) - { - PercentageDescriptor = null; - PercentageDescriptorAction = null; - PercentageValue = percentage; - return Self; - } - - public SignificantTextAggregationDescriptor Percentage(Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor descriptor) - { - PercentageValue = null; - PercentageDescriptorAction = null; - PercentageDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor Percentage(Action configure) - { - PercentageValue = null; - PercentageDescriptor = null; - PercentageDescriptorAction = configure; - return Self; - } - - /// - /// - /// Customized score, implemented via a script. - /// - /// - public SignificantTextAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristic? scriptHeuristic) - { - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicValue = scriptHeuristic; - return Self; - } - - public SignificantTextAggregationDescriptor ScriptHeuristic(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor descriptor) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptorAction = null; - ScriptHeuristicDescriptor = descriptor; - return Self; - } - - public SignificantTextAggregationDescriptor ScriptHeuristic(Action configure) - { - ScriptHeuristicValue = null; - ScriptHeuristicDescriptor = null; - ScriptHeuristicDescriptorAction = configure; - return Self; - } - - /// - /// - /// Regulates the certainty a shard has if the values should actually be added to the candidate list or not with respect to the min_doc_count. - /// Values will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count. - /// - /// - public SignificantTextAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public SignificantTextAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - public SignificantTextAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Overrides the JSON _source fields from which text will be analyzed. - /// - /// - public SignificantTextAggregationDescriptor SourceFields(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceFields) - { - SourceFieldsValue = sourceFields; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BackgroundFilterDescriptor is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterDescriptor, options); - } - else if (BackgroundFilterDescriptorAction is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(BackgroundFilterDescriptorAction), options); - } - else if (BackgroundFilterValue is not null) - { - writer.WritePropertyName("background_filter"); - JsonSerializer.Serialize(writer, BackgroundFilterValue, options); - } - - if (ChiSquareDescriptor is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareDescriptor, options); - } - else if (ChiSquareDescriptorAction is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ChiSquareHeuristicDescriptor(ChiSquareDescriptorAction), options); - } - else if (ChiSquareValue is not null) - { - writer.WritePropertyName("chi_square"); - JsonSerializer.Serialize(writer, ChiSquareValue, options); - } - - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FilterDuplicateTextValue.HasValue) - { - writer.WritePropertyName("filter_duplicate_text"); - writer.WriteBooleanValue(FilterDuplicateTextValue.Value); - } - - if (GndDescriptor is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndDescriptor, options); - } - else if (GndDescriptorAction is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.GoogleNormalizedDistanceHeuristicDescriptor(GndDescriptorAction), options); - } - else if (GndValue is not null) - { - writer.WritePropertyName("gnd"); - JsonSerializer.Serialize(writer, GndValue, options); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (JlhDescriptor is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhDescriptor, options); - } - else if (JlhDescriptorAction is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.EmptyObjectDescriptor(JlhDescriptorAction), options); - } - else if (JlhValue is not null) - { - writer.WritePropertyName("jlh"); - JsonSerializer.Serialize(writer, JlhValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MutualInformationDescriptor is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationDescriptor, options); - } - else if (MutualInformationDescriptorAction is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.MutualInformationHeuristicDescriptor(MutualInformationDescriptorAction), options); - } - else if (MutualInformationValue is not null) - { - writer.WritePropertyName("mutual_information"); - JsonSerializer.Serialize(writer, MutualInformationValue, options); - } - - if (PercentageDescriptor is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageDescriptor, options); - } - else if (PercentageDescriptorAction is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.PercentageScoreHeuristicDescriptor(PercentageDescriptorAction), options); - } - else if (PercentageValue is not null) - { - writer.WritePropertyName("percentage"); - JsonSerializer.Serialize(writer, PercentageValue, options); - } - - if (ScriptHeuristicDescriptor is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicDescriptor, options); - } - else if (ScriptHeuristicDescriptorAction is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.ScriptedHeuristicDescriptor(ScriptHeuristicDescriptorAction), options); - } - else if (ScriptHeuristicValue is not null) - { - writer.WritePropertyName("script_heuristic"); - JsonSerializer.Serialize(writer, ScriptHeuristicValue, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SourceFieldsValue is not null) - { - writer.WritePropertyName("source_fields"); - JsonSerializer.Serialize(writer, SourceFieldsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs deleted file mode 100644 index 68ac88cf2db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SimpleValueAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -public sealed partial class SimpleValueAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs deleted file mode 100644 index a20d40dca76..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBounds.g.cs +++ /dev/null @@ -1,44 +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.Aggregations; - -public sealed partial class StandardDeviationBounds -{ - [JsonInclude, JsonPropertyName("lower")] - public double? Lower { get; init; } - [JsonInclude, JsonPropertyName("lower_population")] - public double? LowerPopulation { get; init; } - [JsonInclude, JsonPropertyName("lower_sampling")] - public double? LowerSampling { get; init; } - [JsonInclude, JsonPropertyName("upper")] - public double? Upper { get; init; } - [JsonInclude, JsonPropertyName("upper_population")] - public double? UpperPopulation { get; init; } - [JsonInclude, JsonPropertyName("upper_sampling")] - public double? UpperSampling { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs deleted file mode 100644 index 1dfe7f7db77..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StandardDeviationBoundsAsString.g.cs +++ /dev/null @@ -1,44 +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.Aggregations; - -public sealed partial class StandardDeviationBoundsAsString -{ - [JsonInclude, JsonPropertyName("lower")] - public string Lower { get; init; } - [JsonInclude, JsonPropertyName("lower_population")] - public string LowerPopulation { get; init; } - [JsonInclude, JsonPropertyName("lower_sampling")] - public string LowerSampling { get; init; } - [JsonInclude, JsonPropertyName("upper")] - public string Upper { get; init; } - [JsonInclude, JsonPropertyName("upper_population")] - public string UpperPopulation { get; init; } - [JsonInclude, JsonPropertyName("upper_sampling")] - public string UpperSampling { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregate.g.cs deleted file mode 100644 index cd96a122c42..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregate.g.cs +++ /dev/null @@ -1,58 +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.Aggregations; - -/// -/// -/// Statistics aggregation result. min, max and avg are missing if there were no values to process -/// (count is zero). -/// -/// -public sealed partial class StatsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("avg")] - public double? Avg { get; init; } - [JsonInclude, JsonPropertyName("avg_as_string")] - public string? AvgAsString { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("max")] - public double? Max { get; init; } - [JsonInclude, JsonPropertyName("max_as_string")] - public string? MaxAsString { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("min")] - public double? Min { get; init; } - [JsonInclude, JsonPropertyName("min_as_string")] - public string? MinAsString { get; init; } - [JsonInclude, JsonPropertyName("sum")] - public double Sum { get; init; } - [JsonInclude, JsonPropertyName("sum_as_string")] - public string? SumAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 24d99d20aa3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsAggregation.g.cs +++ /dev/null @@ -1,316 +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.Aggregations; - -public sealed partial class StatsAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(StatsAggregation statsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Stats(statsAggregation); -} - -public sealed partial class StatsAggregationDescriptor : SerializableDescriptor> -{ - internal StatsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public StatsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public StatsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public StatsAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public StatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class StatsAggregationDescriptor : SerializableDescriptor -{ - internal StatsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public StatsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public StatsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public StatsAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public StatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/StatsBucketAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs deleted file mode 100644 index fa25df9afbd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregate.g.cs +++ /dev/null @@ -1,52 +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.Aggregations; - -public sealed partial class StatsBucketAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("avg")] - public double? Avg { get; init; } - [JsonInclude, JsonPropertyName("avg_as_string")] - public string? AvgAsString { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("max")] - public double? Max { get; init; } - [JsonInclude, JsonPropertyName("max_as_string")] - public string? MaxAsString { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("min")] - public double? Min { get; init; } - [JsonInclude, JsonPropertyName("min_as_string")] - public string? MinAsString { get; init; } - [JsonInclude, JsonPropertyName("sum")] - public double Sum { get; init; } - [JsonInclude, JsonPropertyName("sum_as_string")] - public string? SumAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs deleted file mode 100644 index 216123f3b03..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StatsBucketAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class StatsBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(StatsBucketAggregation statsBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.StatsBucket(statsBucketAggregation); -} - -public sealed partial class StatsBucketAggregationDescriptor : SerializableDescriptor -{ - internal StatsBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public StatsBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public StatsBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public StatsBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public StatsBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs deleted file mode 100644 index 04fb7cdb10c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsAggregate.g.cs +++ /dev/null @@ -1,41 +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.Aggregations; - -/// -/// -/// Result of the rare_terms aggregation when the field is a string. -/// -/// -public sealed partial class StringRareTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsBucket.g.cs deleted file mode 100644 index 1bc02b85d3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringRareTermsBucket.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.Aggregations; - -internal sealed partial class StringRareTermsBucketConverter : JsonConverter -{ - public override StringRareTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - string key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new StringRareTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, StringRareTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'StringRareTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(StringRareTermsBucketConverter))] -public sealed partial class StringRareTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public string Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregate.g.cs deleted file mode 100644 index 8fe673d457a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregate.g.cs +++ /dev/null @@ -1,52 +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.Aggregations; - -public sealed partial class StringStatsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("avg_length")] - public double? AvgLength { get; init; } - [JsonInclude, JsonPropertyName("avg_length_as_string")] - public string? AvgLengthAsString { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("distribution")] - public IReadOnlyDictionary? Distribution { get; init; } - [JsonInclude, JsonPropertyName("entropy")] - public double? Entropy { get; init; } - [JsonInclude, JsonPropertyName("max_length")] - public int? MaxLength { get; init; } - [JsonInclude, JsonPropertyName("max_length_as_string")] - public string? MaxLengthAsString { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("min_length")] - public int? MinLength { get; init; } - [JsonInclude, JsonPropertyName("min_length_as_string")] - public string? MinLengthAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index b92f2f6afa0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringStatsAggregation.g.cs +++ /dev/null @@ -1,332 +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.Aggregations; - -public sealed partial class StringStatsAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Shows the probability distribution for all characters. - /// - /// - [JsonInclude, JsonPropertyName("show_distribution")] - public bool? ShowDistribution { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(StringStatsAggregation stringStatsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.StringStats(stringStatsAggregation); -} - -public sealed partial class StringStatsAggregationDescriptor : SerializableDescriptor> -{ - internal StringStatsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StringStatsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StringStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StringStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public StringStatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public StringStatsAggregationDescriptor ShowDistribution(bool? showDistribution = true) - { - ShowDistributionValue = showDistribution; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ShowDistributionValue.HasValue) - { - writer.WritePropertyName("show_distribution"); - writer.WriteBooleanValue(ShowDistributionValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class StringStatsAggregationDescriptor : SerializableDescriptor -{ - internal StringStatsAggregationDescriptor(Action configure) => configure.Invoke(this); - - 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; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StringStatsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StringStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public StringStatsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public StringStatsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public StringStatsAggregationDescriptor ShowDistribution(bool? showDistribution = true) - { - ShowDistributionValue = showDistribution; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ShowDistributionValue.HasValue) - { - writer.WritePropertyName("show_distribution"); - writer.WriteBooleanValue(ShowDistributionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsAggregate.g.cs deleted file mode 100644 index 88ae16d8ebf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -/// -/// -/// Result of a terms aggregation when the field is a string. -/// -/// -public sealed partial class StringTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count_error_upper_bound")] - public long? DocCountErrorUpperBound { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("sum_other_doc_count")] - public long? SumOtherDocCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsBucket.g.cs deleted file mode 100644 index 013a4dbbaed..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/StringTermsBucket.g.cs +++ /dev/null @@ -1,95 +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.Aggregations; - -internal sealed partial class StringTermsBucketConverter : JsonConverter -{ - public override StringTermsBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - long? docCountErrorUpperBound = default; - Elastic.Clients.Elasticsearch.Serverless.FieldValue key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "doc_count_error_upper_bound") - { - docCountErrorUpperBound = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new StringTermsBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, DocCountErrorUpperBound = docCountErrorUpperBound, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, StringTermsBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'StringTermsBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(StringTermsBucketConverter))] -public sealed partial class StringTermsBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public long? DocCountErrorUpperBound { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.FieldValue Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregate.g.cs deleted file mode 100644 index 238d466c9b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregate.g.cs +++ /dev/null @@ -1,50 +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.Aggregations; - -/// -/// -/// Sum aggregation result. value is always present and is zero if there were no values to process. -/// -/// -public sealed partial class SumAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 5c73f9a9e1b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumAggregation.g.cs +++ /dev/null @@ -1,316 +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.Aggregations; - -public sealed partial class SumAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SumAggregation sumAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Sum(sumAggregation); -} - -public sealed partial class SumAggregationDescriptor : SerializableDescriptor> -{ - internal SumAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public SumAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public SumAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public SumAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public SumAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SumAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public SumAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SumAggregationDescriptor : SerializableDescriptor -{ - internal SumAggregationDescriptor(Action configure) => configure.Invoke(this); - - public SumAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public SumAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public SumAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public SumAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SumAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public SumAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/SumBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumBucketAggregation.g.cs deleted file mode 100644 index 5ee5875ebec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/SumBucketAggregation.g.cs +++ /dev/null @@ -1,129 +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.Aggregations; - -public sealed partial class SumBucketAggregation -{ - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - [JsonInclude, JsonPropertyName("buckets_path")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPath { get; set; } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - [JsonInclude, JsonPropertyName("gap_policy")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicy { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(SumBucketAggregation sumBucketAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.SumBucket(sumBucketAggregation); -} - -public sealed partial class SumBucketAggregationDescriptor : SerializableDescriptor -{ - internal SumBucketAggregationDescriptor(Action configure) => configure.Invoke(this); - - public SumBucketAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? BucketsPathValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? GapPolicyValue { get; set; } - - /// - /// - /// Path to the buckets that contain one set of values to correlate. - /// - /// - public SumBucketAggregationDescriptor BucketsPath(Elastic.Clients.Elasticsearch.Serverless.Aggregations.BucketsPath? bucketsPath) - { - BucketsPathValue = bucketsPath; - return Self; - } - - /// - /// - /// DecimalFormat pattern for the output value. - /// If specified, the formatted value is returned in the aggregation’s value_as_string property. - /// - /// - public SumBucketAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Policy to apply when gaps are found in the data. - /// - /// - public SumBucketAggregationDescriptor GapPolicy(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GapPolicy? gapPolicy) - { - GapPolicyValue = gapPolicy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsPathValue is not null) - { - writer.WritePropertyName("buckets_path"); - JsonSerializer.Serialize(writer, BucketsPathValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GapPolicyValue is not null) - { - writer.WritePropertyName("gap_policy"); - JsonSerializer.Serialize(writer, GapPolicyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigest.g.cs deleted file mode 100644 index 4b8114bc7bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigest.g.cs +++ /dev/null @@ -1,73 +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.Aggregations; - -public sealed partial class TDigest -{ - /// - /// - /// Limits the maximum number of nodes used by the underlying TDigest algorithm to 20 * compression, enabling control of memory usage and approximation error. - /// - /// - [JsonInclude, JsonPropertyName("compression")] - public int? Compression { get; set; } -} - -public sealed partial class TDigestDescriptor : SerializableDescriptor -{ - internal TDigestDescriptor(Action configure) => configure.Invoke(this); - - public TDigestDescriptor() : base() - { - } - - private int? CompressionValue { 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. - /// - /// - public TDigestDescriptor Compression(int? compression) - { - CompressionValue = compression; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CompressionValue.HasValue) - { - writer.WritePropertyName("compression"); - writer.WriteNumberValue(CompressionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs deleted file mode 100644 index f17b90e7338..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentileRanksAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class TDigestPercentileRanksAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("values")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Percentiles Values { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs deleted file mode 100644 index bd47ae63781..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TDigestPercentilesAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class TDigestPercentilesAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("values")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Percentiles Values { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregate.g.cs deleted file mode 100644 index d2c7657b542..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregate.g.cs +++ /dev/null @@ -1,38 +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.Aggregations; - -public sealed partial class TTestAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregation.g.cs deleted file mode 100644 index a91f300f7dd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TTestAggregation.g.cs +++ /dev/null @@ -1,317 +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.Aggregations; - -public sealed partial class TTestAggregation -{ - /// - /// - /// Test population A. - /// - /// - [JsonInclude, JsonPropertyName("a")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? a { get; set; } - - /// - /// - /// Test population B. - /// - /// - [JsonInclude, JsonPropertyName("b")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? b { get; set; } - - /// - /// - /// The type of test. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestType? Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(TTestAggregation tTestAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.TTest(tTestAggregation); -} - -public sealed partial class TTestAggregationDescriptor : SerializableDescriptor> -{ - internal TTestAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public TTestAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? aValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor aDescriptor { get; set; } - private Action> aDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? bValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor bDescriptor { get; set; } - private Action> bDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestType? TypeValue { get; set; } - - /// - /// - /// Test population A. - /// - /// - public TTestAggregationDescriptor a(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? a) - { - aDescriptor = null; - aDescriptorAction = null; - aValue = a; - return Self; - } - - public TTestAggregationDescriptor a(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor descriptor) - { - aValue = null; - aDescriptorAction = null; - aDescriptor = descriptor; - return Self; - } - - public TTestAggregationDescriptor a(Action> configure) - { - aValue = null; - aDescriptor = null; - aDescriptorAction = configure; - return Self; - } - - /// - /// - /// Test population B. - /// - /// - public TTestAggregationDescriptor b(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? b) - { - bDescriptor = null; - bDescriptorAction = null; - bValue = b; - return Self; - } - - public TTestAggregationDescriptor b(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor descriptor) - { - bValue = null; - bDescriptorAction = null; - bDescriptor = descriptor; - return Self; - } - - public TTestAggregationDescriptor b(Action> configure) - { - bValue = null; - bDescriptor = null; - bDescriptorAction = configure; - return Self; - } - - /// - /// - /// The type of test. - /// - /// - public TTestAggregationDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (aDescriptor is not null) - { - writer.WritePropertyName("a"); - JsonSerializer.Serialize(writer, aDescriptor, options); - } - else if (aDescriptorAction is not null) - { - writer.WritePropertyName("a"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor(aDescriptorAction), options); - } - else if (aValue is not null) - { - writer.WritePropertyName("a"); - JsonSerializer.Serialize(writer, aValue, options); - } - - if (bDescriptor is not null) - { - writer.WritePropertyName("b"); - JsonSerializer.Serialize(writer, bDescriptor, options); - } - else if (bDescriptorAction is not null) - { - writer.WritePropertyName("b"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor(bDescriptorAction), options); - } - else if (bValue is not null) - { - writer.WritePropertyName("b"); - JsonSerializer.Serialize(writer, bValue, options); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TTestAggregationDescriptor : SerializableDescriptor -{ - internal TTestAggregationDescriptor(Action configure) => configure.Invoke(this); - - public TTestAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? aValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor aDescriptor { get; set; } - private Action aDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? bValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor bDescriptor { get; set; } - private Action bDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestType? TypeValue { get; set; } - - /// - /// - /// Test population A. - /// - /// - public TTestAggregationDescriptor a(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? a) - { - aDescriptor = null; - aDescriptorAction = null; - aValue = a; - return Self; - } - - public TTestAggregationDescriptor a(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor descriptor) - { - aValue = null; - aDescriptorAction = null; - aDescriptor = descriptor; - return Self; - } - - public TTestAggregationDescriptor a(Action configure) - { - aValue = null; - aDescriptor = null; - aDescriptorAction = configure; - return Self; - } - - /// - /// - /// Test population B. - /// - /// - public TTestAggregationDescriptor b(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulation? b) - { - bDescriptor = null; - bDescriptorAction = null; - bValue = b; - return Self; - } - - public TTestAggregationDescriptor b(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor descriptor) - { - bValue = null; - bDescriptorAction = null; - bDescriptor = descriptor; - return Self; - } - - public TTestAggregationDescriptor b(Action configure) - { - bValue = null; - bDescriptor = null; - bDescriptorAction = configure; - return Self; - } - - /// - /// - /// The type of test. - /// - /// - public TTestAggregationDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TTestType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (aDescriptor is not null) - { - writer.WritePropertyName("a"); - JsonSerializer.Serialize(writer, aDescriptor, options); - } - else if (aDescriptorAction is not null) - { - writer.WritePropertyName("a"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor(aDescriptorAction), options); - } - else if (aValue is not null) - { - writer.WritePropertyName("a"); - JsonSerializer.Serialize(writer, aValue, options); - } - - if (bDescriptor is not null) - { - writer.WritePropertyName("b"); - JsonSerializer.Serialize(writer, bDescriptor, options); - } - else if (bDescriptorAction is not null) - { - writer.WritePropertyName("b"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TestPopulationDescriptor(bDescriptorAction), options); - } - else if (bValue is not null) - { - writer.WritePropertyName("b"); - JsonSerializer.Serialize(writer, bValue, options); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs deleted file mode 100644 index 84596ba6190..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TermsAggregation.g.cs +++ /dev/null @@ -1,874 +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.Aggregations; - -public sealed partial class TermsAggregation -{ - /// - /// - /// Determines how child aggregations should be calculated: breadth-first or depth-first. - /// - /// - [JsonInclude, JsonPropertyName("collect_mode")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? CollectMode { get; set; } - - /// - /// - /// Values to exclude. - /// Accepts regular expressions and partitions. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? Exclude { get; set; } - - /// - /// - /// Determines whether the aggregation will use field values directly or global ordinals. - /// - /// - [JsonInclude, JsonPropertyName("execution_hint")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHint { get; set; } - - /// - /// - /// The field from which to return terms. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Values to include. - /// Accepts regular expressions and partitions. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? Include { get; set; } - - /// - /// - /// Only return values that are found in more than min_doc_count hits. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public int? MinDocCount { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("missing_bucket")] - public bool? MissingBucket { get; set; } - [JsonInclude, JsonPropertyName("missing_order")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? MissingOrder { get; set; } - - /// - /// - /// Specifies the sort order of the buckets. - /// Defaults to sorting by descending document count. - /// - /// - [JsonInclude, JsonPropertyName("order")] - [SingleOrManyCollectionConverter(typeof(KeyValuePair))] - public ICollection>? Order { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Regulates the certainty a shard has if the term should actually be added to the candidate list or not with respect to the min_doc_count. - /// Terms will only be considered if their local shard frequency within the set is higher than the shard_min_doc_count. - /// - /// - [JsonInclude, JsonPropertyName("shard_min_doc_count")] - public long? ShardMinDocCount { get; set; } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// Set to true to return the doc_count_error_upper_bound, which is an upper bound to the error on the doc_count returned by each shard. - /// - /// - [JsonInclude, JsonPropertyName("show_term_doc_count_error")] - public bool? ShowTermDocCountError { get; set; } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Coerced unmapped fields into the specified type. - /// - /// - [JsonInclude, JsonPropertyName("value_type")] - public string? ValueType { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(TermsAggregation termsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.Terms(termsAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(TermsAggregation termsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.Terms(termsAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy(TermsAggregation termsAggregation) => Elastic.Clients.Elasticsearch.Serverless.TransformManagement.PivotGroupBy.Terms(termsAggregation); -} - -public sealed partial class TermsAggregationDescriptor : SerializableDescriptor> -{ - internal TermsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public TermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? CollectModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private int? MinDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - private bool? MissingBucketValue { get; set; } - 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; } - private int? SizeValue { get; set; } - private string? ValueTypeValue { get; set; } - - /// - /// - /// Determines how child aggregations should be calculated: breadth-first or depth-first. - /// - /// - public TermsAggregationDescriptor CollectMode(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? collectMode) - { - CollectModeValue = collectMode; - return Self; - } - - /// - /// - /// Values to exclude. - /// Accepts regular expressions and partitions. - /// - /// - public TermsAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Determines whether the aggregation will use field values directly or global ordinals. - /// - /// - public TermsAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field from which to return terms. - /// - /// - public TermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return terms. - /// - /// - public TermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return terms. - /// - /// - public TermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Values to include. - /// Accepts regular expressions and partitions. - /// - /// - public TermsAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Only return values that are found in more than min_doc_count hits. - /// - /// - public TermsAggregationDescriptor MinDocCount(int? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public TermsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - public TermsAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public TermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - /// - /// - /// Specifies the sort order of the buckets. - /// Defaults to sorting by descending document count. - /// - /// - public TermsAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - public TermsAggregationDescriptor 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. - /// - /// - public TermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public TermsAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// Set to true to return the doc_count_error_upper_bound, which is an upper bound to the error on the doc_count returned by each shard. - /// - /// - public TermsAggregationDescriptor ShowTermDocCountError(bool? showTermDocCountError = true) - { - ShowTermDocCountErrorValue = showTermDocCountError; - return Self; - } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - public TermsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Coerced unmapped fields into the specified type. - /// - /// - public TermsAggregationDescriptor ValueType(string? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollectModeValue is not null) - { - writer.WritePropertyName("collect_mode"); - JsonSerializer.Serialize(writer, CollectModeValue, options); - } - - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (ShowTermDocCountErrorValue.HasValue) - { - writer.WritePropertyName("show_term_doc_count_error"); - writer.WriteBooleanValue(ShowTermDocCountErrorValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (!string.IsNullOrEmpty(ValueTypeValue)) - { - writer.WritePropertyName("value_type"); - writer.WriteStringValue(ValueTypeValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TermsAggregationDescriptor : SerializableDescriptor -{ - internal TermsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public TermsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? CollectModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? IncludeValue { get; set; } - private int? MinDocCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { get; set; } - private bool? MissingBucketValue { get; set; } - 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; } - private int? SizeValue { get; set; } - private string? ValueTypeValue { get; set; } - - /// - /// - /// Determines how child aggregations should be calculated: breadth-first or depth-first. - /// - /// - public TermsAggregationDescriptor CollectMode(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationCollectMode? collectMode) - { - CollectModeValue = collectMode; - return Self; - } - - /// - /// - /// Values to exclude. - /// Accepts regular expressions and partitions. - /// - /// - public TermsAggregationDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsExclude? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Determines whether the aggregation will use field values directly or global ordinals. - /// - /// - public TermsAggregationDescriptor ExecutionHint(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregationExecutionHint? executionHint) - { - ExecutionHintValue = executionHint; - return Self; - } - - /// - /// - /// The field from which to return terms. - /// - /// - public TermsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return terms. - /// - /// - public TermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to return terms. - /// - /// - public TermsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Values to include. - /// Accepts regular expressions and partitions. - /// - /// - public TermsAggregationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsInclude? include) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Only return values that are found in more than min_doc_count hits. - /// - /// - public TermsAggregationDescriptor MinDocCount(int? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public TermsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - public TermsAggregationDescriptor MissingBucket(bool? missingBucket = true) - { - MissingBucketValue = missingBucket; - return Self; - } - - public TermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingOrder? missingOrder) - { - MissingOrderValue = missingOrder; - return Self; - } - - /// - /// - /// Specifies the sort order of the buckets. - /// Defaults to sorting by descending document count. - /// - /// - public TermsAggregationDescriptor Order(ICollection>? order) - { - OrderValue = order; - return Self; - } - - public TermsAggregationDescriptor 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. - /// - /// - public TermsAggregationDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// The number of candidate terms produced by each shard. - /// By default, shard_size will be automatically estimated based on the number of shards and the size parameter. - /// - /// - public TermsAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// Set to true to return the doc_count_error_upper_bound, which is an upper bound to the error on the doc_count returned by each shard. - /// - /// - public TermsAggregationDescriptor ShowTermDocCountError(bool? showTermDocCountError = true) - { - ShowTermDocCountErrorValue = showTermDocCountError; - return Self; - } - - /// - /// - /// The number of buckets returned out of the overall terms list. - /// - /// - public TermsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Coerced unmapped fields into the specified type. - /// - /// - public TermsAggregationDescriptor ValueType(string? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollectModeValue is not null) - { - writer.WritePropertyName("collect_mode"); - JsonSerializer.Serialize(writer, CollectModeValue, options); - } - - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (ExecutionHintValue is not null) - { - writer.WritePropertyName("execution_hint"); - JsonSerializer.Serialize(writer, ExecutionHintValue, options); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (MissingBucketValue.HasValue) - { - writer.WritePropertyName("missing_bucket"); - writer.WriteBooleanValue(MissingBucketValue.Value); - } - - if (MissingOrderValue is not null) - { - writer.WritePropertyName("missing_order"); - JsonSerializer.Serialize(writer, MissingOrderValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize>(OrderValue, writer, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (ShowTermDocCountErrorValue.HasValue) - { - writer.WritePropertyName("show_term_doc_count_error"); - writer.WriteBooleanValue(ShowTermDocCountErrorValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (!string.IsNullOrEmpty(ValueTypeValue)) - { - writer.WritePropertyName("value_type"); - writer.WriteStringValue(ValueTypeValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 45d39ff326b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TestPopulation.g.cs +++ /dev/null @@ -1,335 +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.Aggregations; - -public sealed partial class TestPopulation -{ - /// - /// - /// The field to aggregate. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// A filter used to define a set of records to run unpaired t-test on. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } -} - -public sealed partial class TestPopulationDescriptor : SerializableDescriptor> -{ - internal TestPopulationDescriptor(Action> configure) => configure.Invoke(this); - - public TestPopulationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { 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 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. - /// - /// - public TestPopulationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to aggregate. - /// - /// - public TestPopulationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to aggregate. - /// - /// - public TestPopulationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A filter used to define a set of records to run unpaired t-test on. - /// - /// - public TestPopulationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public TestPopulationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public TestPopulationDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public TestPopulationDescriptor 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(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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 (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); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TestPopulationDescriptor : SerializableDescriptor -{ - internal TestPopulationDescriptor(Action configure) => configure.Invoke(this); - - public TestPopulationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { 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 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. - /// - /// - public TestPopulationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to aggregate. - /// - /// - public TestPopulationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to aggregate. - /// - /// - public TestPopulationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A filter used to define a set of records to run unpaired t-test on. - /// - /// - public TestPopulationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public TestPopulationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public TestPopulationDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public TestPopulationDescriptor 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(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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 (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); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs deleted file mode 100644 index 8eeb3961a76..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class TimeSeriesAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.g.cs deleted file mode 100644 index 920d0906f9c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TimeSeriesBucket.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.Aggregations; - -internal sealed partial class TimeSeriesBucketConverter : JsonConverter -{ - public override TimeSeriesBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary key = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new TimeSeriesBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key }; - } - - public override void Write(Utf8JsonWriter writer, TimeSeriesBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'TimeSeriesBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(TimeSeriesBucketConverter))] -public sealed partial class TimeSeriesBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary Key { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregate.g.cs deleted file mode 100644 index 661c3246f20..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class TopHitsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata Hits { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index e61be0c1116..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopHitsAggregation.g.cs +++ /dev/null @@ -1,1272 +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.Aggregations; - -public sealed partial class TopHitsAggregation -{ - /// - /// - /// Fields for which to return doc values. - /// - /// - [JsonInclude, JsonPropertyName("docvalue_fields")] - public ICollection? DocvalueFields { get; set; } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - public ICollection? Fields { get; set; } - - /// - /// - /// Starting document offset. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in the search results. - /// - /// - [JsonInclude, JsonPropertyName("highlight")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? Highlight { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// Returns the result of one or more script evaluations for each hit. - /// - /// - [JsonInclude, JsonPropertyName("script_fields")] - public IDictionary? ScriptFields { get; set; } - - /// - /// - /// If true, returns sequence number and primary term of the last modification of each hit. - /// - /// - [JsonInclude, JsonPropertyName("seq_no_primary_term")] - public bool? SeqNoPrimaryTerm { get; set; } - - /// - /// - /// The maximum number of top matching hits to return per bucket. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Sort order of the top matching hits. - /// By default, the hits are sorted by the score of the main query. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - /// - /// - /// Selects the fields of the source that are returned. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - - /// - /// - /// Returns values for the specified stored fields (fields that use the store mapping option). - /// - /// - [JsonInclude, JsonPropertyName("stored_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; } - - /// - /// - /// If true, calculates and returns document scores, even if the scores are not used for sorting. - /// - /// - [JsonInclude, JsonPropertyName("track_scores")] - public bool? TrackScores { get; set; } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public bool? Version { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(TopHitsAggregation topHitsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.TopHits(topHitsAggregation); -} - -public sealed partial class TopHitsAggregationDescriptor : SerializableDescriptor> -{ - internal TopHitsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public TopHitsAggregationDescriptor() : base() - { - } - - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action> DocvalueFieldsDescriptorAction { get; set; } - private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action> FieldsDescriptorAction { get; set; } - private Action>[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private bool? TrackScoresValue { get; set; } - private bool? VersionValue { get; set; } - - /// - /// - /// Fields for which to return doc values. - /// - /// - public TopHitsAggregationDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public TopHitsAggregationDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor DocvalueFields(Action> configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public TopHitsAggregationDescriptor DocvalueFields(params Action>[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public TopHitsAggregationDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopHitsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopHitsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopHitsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public TopHitsAggregationDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public TopHitsAggregationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor Fields(Action> configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public TopHitsAggregationDescriptor Fields(params Action>[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. - /// - /// - public TopHitsAggregationDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in the search results. - /// - /// - public TopHitsAggregationDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public TopHitsAggregationDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor Highlight(Action> configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public TopHitsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public TopHitsAggregationDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification of each hit. - /// - /// - public TopHitsAggregationDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The maximum number of top matching hits to return per bucket. - /// - /// - public TopHitsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Sort order of the top matching hits. - /// By default, the hits are sorted by the score of the main query. - /// - /// - public TopHitsAggregationDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public TopHitsAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public TopHitsAggregationDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Selects the fields of the source that are returned. - /// - /// - public TopHitsAggregationDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Returns values for the specified stored fields (fields that use the store mapping option). - /// - /// - public TopHitsAggregationDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - /// - /// - /// If true, calculates and returns document scores, even if the scores are not used for sorting. - /// - /// - public TopHitsAggregationDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public TopHitsAggregationDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TopHitsAggregationDescriptor : SerializableDescriptor -{ - internal TopHitsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public TopHitsAggregationDescriptor() : base() - { - } - - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action DocvalueFieldsDescriptorAction { get; set; } - private Action[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action FieldsDescriptorAction { get; set; } - private Action[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private bool? TrackScoresValue { get; set; } - private bool? VersionValue { get; set; } - - /// - /// - /// Fields for which to return doc values. - /// - /// - public TopHitsAggregationDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public TopHitsAggregationDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor DocvalueFields(Action configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public TopHitsAggregationDescriptor DocvalueFields(params Action[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public TopHitsAggregationDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopHitsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopHitsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopHitsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public TopHitsAggregationDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public TopHitsAggregationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor Fields(Action configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public TopHitsAggregationDescriptor Fields(params Action[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. - /// - /// - public TopHitsAggregationDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in the search results. - /// - /// - public TopHitsAggregationDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public TopHitsAggregationDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public TopHitsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public TopHitsAggregationDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification of each hit. - /// - /// - public TopHitsAggregationDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The maximum number of top matching hits to return per bucket. - /// - /// - public TopHitsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Sort order of the top matching hits. - /// By default, the hits are sorted by the score of the main query. - /// - /// - public TopHitsAggregationDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public TopHitsAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public TopHitsAggregationDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public TopHitsAggregationDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Selects the fields of the source that are returned. - /// - /// - public TopHitsAggregationDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Returns values for the specified stored fields (fields that use the store mapping option). - /// - /// - public TopHitsAggregationDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - /// - /// - /// If true, calculates and returns document scores, even if the scores are not used for sorting. - /// - /// - public TopHitsAggregationDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public TopHitsAggregationDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetrics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetrics.g.cs deleted file mode 100644 index d52e6a7d158..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetrics.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class TopMetrics -{ - [JsonInclude, JsonPropertyName("metrics")] - public IReadOnlyDictionary Metrics { get; init; } - [JsonInclude, JsonPropertyName("sort")] - public IReadOnlyCollection Sort { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs deleted file mode 100644 index 196c66f7a93..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class TopMetricsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("top")] - public IReadOnlyCollection Top { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 2fbf37981d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs +++ /dev/null @@ -1,646 +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.Aggregations; - -public sealed partial class TopMetricsAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// The fields of the top document to return. - /// - /// - [JsonInclude, JsonPropertyName("metrics")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValue))] - public ICollection? Metrics { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// The number of top documents from which to return metrics. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The sort order of the documents. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(TopMetricsAggregation topMetricsAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.TopMetrics(topMetricsAggregation); -} - -public sealed partial class TopMetricsAggregationDescriptor : SerializableDescriptor> -{ - internal TopMetricsAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public TopMetricsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor MetricsDescriptor { get; set; } - private Action> MetricsDescriptorAction { get; set; } - 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; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopMetricsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopMetricsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopMetricsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The fields of the top document to return. - /// - /// - public TopMetricsAggregationDescriptor Metrics(ICollection? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsDescriptorActions = null; - MetricsValue = metrics; - return Self; - } - - public TopMetricsAggregationDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptorActions = null; - MetricsDescriptor = descriptor; - return Self; - } - - public TopMetricsAggregationDescriptor Metrics(Action> configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorActions = null; - MetricsDescriptorAction = configure; - return Self; - } - - public TopMetricsAggregationDescriptor Metrics(params Action>[] configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public TopMetricsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public TopMetricsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The sort order of the documents. - /// - /// - public TopMetricsAggregationDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public TopMetricsAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public TopMetricsAggregationDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public TopMetricsAggregationDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsDescriptorActions is not null) - { - writer.WritePropertyName("metrics"); - if (MetricsDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in MetricsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor(action), options); - } - - if (MetricsDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - SingleOrManySerializationHelper.Serialize(MetricsValue, writer, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TopMetricsAggregationDescriptor : SerializableDescriptor -{ - internal TopMetricsAggregationDescriptor(Action configure) => configure.Invoke(this); - - public TopMetricsAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private ICollection? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - 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; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopMetricsAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopMetricsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public TopMetricsAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The fields of the top document to return. - /// - /// - public TopMetricsAggregationDescriptor Metrics(ICollection? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsDescriptorActions = null; - MetricsValue = metrics; - return Self; - } - - public TopMetricsAggregationDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptorActions = null; - MetricsDescriptor = descriptor; - return Self; - } - - public TopMetricsAggregationDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorActions = null; - MetricsDescriptorAction = configure; - return Self; - } - - public TopMetricsAggregationDescriptor Metrics(params Action[] configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public TopMetricsAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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. - /// - /// - public TopMetricsAggregationDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The sort order of the documents. - /// - /// - public TopMetricsAggregationDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public TopMetricsAggregationDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public TopMetricsAggregationDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public TopMetricsAggregationDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsDescriptorActions is not null) - { - writer.WritePropertyName("metrics"); - if (MetricsDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in MetricsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.TopMetricsValueDescriptor(action), options); - } - - if (MetricsDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - SingleOrManySerializationHelper.Serialize(MetricsValue, writer, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsValue.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsValue.g.cs deleted file mode 100644 index 2d425cf31c3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/TopMetricsValue.g.cs +++ /dev/null @@ -1,143 +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.Aggregations; - -public sealed partial class TopMetricsValue -{ - /// - /// - /// A field to return as a metric. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } -} - -public sealed partial class TopMetricsValueDescriptor : SerializableDescriptor> -{ - internal TopMetricsValueDescriptor(Action> configure) => configure.Invoke(this); - - public TopMetricsValueDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// A field to return as a metric. - /// - /// - public TopMetricsValueDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field to return as a metric. - /// - /// - public TopMetricsValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field to return as a metric. - /// - /// - public TopMetricsValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class TopMetricsValueDescriptor : SerializableDescriptor -{ - internal TopMetricsValueDescriptor(Action configure) => configure.Invoke(this); - - public TopMetricsValueDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// A field to return as a metric. - /// - /// - public TopMetricsValueDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field to return as a metric. - /// - /// - public TopMetricsValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A field to return as a metric. - /// - /// - public TopMetricsValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs deleted file mode 100644 index 1c1fbf17411..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedRareTermsAggregate.g.cs +++ /dev/null @@ -1,41 +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.Aggregations; - -/// -/// -/// Result of a rare_terms aggregation when the field is unmapped. buckets is always empty. -/// -/// -public sealed partial class UnmappedRareTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSamplerAggregate.g.cs deleted file mode 100644 index 631e5546508..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSamplerAggregate.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.Aggregations; - -internal sealed partial class UnmappedSamplerAggregateConverter : JsonConverter -{ - public override UnmappedSamplerAggregate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - IReadOnlyDictionary? meta = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "meta") - { - meta = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new UnmappedSamplerAggregate { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Meta = meta }; - } - - public override void Write(Utf8JsonWriter writer, UnmappedSamplerAggregate value, JsonSerializerOptions options) - { - throw new NotImplementedException("'UnmappedSamplerAggregate' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(UnmappedSamplerAggregateConverter))] -public sealed partial class UnmappedSamplerAggregate : IAggregate -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs deleted file mode 100644 index 5d1b5dc369d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedSignificantTermsAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -/// -/// -/// Result of the significant_terms aggregation on an unmapped field. buckets is always empty. -/// -/// -public sealed partial class UnmappedSignificantTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("bg_count")] - public long? BgCount { get; init; } - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count")] - public long? DocCount { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs deleted file mode 100644 index cc5108caa82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/UnmappedTermsAggregate.g.cs +++ /dev/null @@ -1,45 +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.Aggregations; - -/// -/// -/// Result of a terms aggregation when the field is unmapped. buckets is always empty. -/// -/// -public sealed partial class UnmappedTermsAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("doc_count_error_upper_bound")] - public long? DocCountErrorUpperBound { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("sum_other_doc_count")] - public long? SumOtherDocCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregate.g.cs deleted file mode 100644 index c17384089a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregate.g.cs +++ /dev/null @@ -1,50 +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.Aggregations; - -/// -/// -/// Value count aggregation result. value is always present. -/// -/// -public sealed partial class ValueCountAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 3670bc51476..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/ValueCountAggregation.g.cs +++ /dev/null @@ -1,317 +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.Aggregations; - -public sealed partial class ValueCountAggregation -{ - /// - /// - /// The field on which to run the aggregation. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(ValueCountAggregation valueCountAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.ValueCount(valueCountAggregation); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(ValueCountAggregation valueCountAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.ValueCount(valueCountAggregation); -} - -public sealed partial class ValueCountAggregationDescriptor : SerializableDescriptor> -{ - internal ValueCountAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public ValueCountAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public ValueCountAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ValueCountAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ValueCountAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ValueCountAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public ValueCountAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ValueCountAggregationDescriptor : SerializableDescriptor -{ - internal ValueCountAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ValueCountAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - 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. - /// - /// - public ValueCountAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ValueCountAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field on which to run the aggregation. - /// - /// - public ValueCountAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ValueCountAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The value to apply to documents that do not have a value. - /// By default, documents without a value are ignored. - /// - /// - public ValueCountAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, 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 if (ScriptValue is not null) - { - 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/VariableWidthHistogramAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs deleted file mode 100644 index 4007ed3e8a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregate.g.cs +++ /dev/null @@ -1,36 +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.Aggregations; - -public sealed partial class VariableWidthHistogramAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("buckets")] - public IReadOnlyCollection Buckets { get; init; } - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 3505931b801..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramAggregation.g.cs +++ /dev/null @@ -1,379 +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.Aggregations; - -public sealed partial class VariableWidthHistogramAggregation -{ - /// - /// - /// The target number of buckets. - /// - /// - [JsonInclude, JsonPropertyName("buckets")] - public int? Buckets { get; set; } - - /// - /// - /// The name of the field. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run. - /// Defaults to min(10 * shard_size, 50000). - /// - /// - [JsonInclude, JsonPropertyName("initial_buffer")] - public int? InitialBuffer { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// The number of buckets that the coordinating node will request from each shard. - /// Defaults to buckets * 50. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(VariableWidthHistogramAggregation variableWidthHistogramAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.VariableWidthHistogram(variableWidthHistogramAggregation); -} - -public sealed partial class VariableWidthHistogramAggregationDescriptor : SerializableDescriptor> -{ - internal VariableWidthHistogramAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public VariableWidthHistogramAggregationDescriptor() : base() - { - } - - private int? BucketsValue { get; set; } - 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; } - - /// - /// - /// The target number of buckets. - /// - /// - public VariableWidthHistogramAggregationDescriptor Buckets(int? buckets) - { - BucketsValue = buckets; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public VariableWidthHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public VariableWidthHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public VariableWidthHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run. - /// Defaults to min(10 * shard_size, 50000). - /// - /// - public VariableWidthHistogramAggregationDescriptor InitialBuffer(int? initialBuffer) - { - InitialBufferValue = initialBuffer; - return Self; - } - - 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. - /// - /// - public VariableWidthHistogramAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsValue.HasValue) - { - writer.WritePropertyName("buckets"); - writer.WriteNumberValue(BucketsValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (InitialBufferValue.HasValue) - { - writer.WritePropertyName("initial_buffer"); - writer.WriteNumberValue(InitialBufferValue.Value); - } - - 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); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class VariableWidthHistogramAggregationDescriptor : SerializableDescriptor -{ - internal VariableWidthHistogramAggregationDescriptor(Action configure) => configure.Invoke(this); - - public VariableWidthHistogramAggregationDescriptor() : base() - { - } - - private int? BucketsValue { get; set; } - 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; } - - /// - /// - /// The target number of buckets. - /// - /// - public VariableWidthHistogramAggregationDescriptor Buckets(int? buckets) - { - BucketsValue = buckets; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public VariableWidthHistogramAggregationDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public VariableWidthHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field. - /// - /// - public VariableWidthHistogramAggregationDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specifies the number of individual documents that will be stored in memory on a shard before the initial bucketing algorithm is run. - /// Defaults to min(10 * shard_size, 50000). - /// - /// - public VariableWidthHistogramAggregationDescriptor InitialBuffer(int? initialBuffer) - { - InitialBufferValue = initialBuffer; - return Self; - } - - 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. - /// - /// - public VariableWidthHistogramAggregationDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketsValue.HasValue) - { - writer.WritePropertyName("buckets"); - writer.WriteNumberValue(BucketsValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (InitialBufferValue.HasValue) - { - writer.WritePropertyName("initial_buffer"); - writer.WriteNumberValue(InitialBufferValue.Value); - } - - 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); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs deleted file mode 100644 index a088c167857..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/VariableWidthHistogramBucket.g.cs +++ /dev/null @@ -1,127 +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.Aggregations; - -internal sealed partial class VariableWidthHistogramBucketConverter : JsonConverter -{ - public override VariableWidthHistogramBucket Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - long docCount = default; - double key = default; - string? keyAsString = default; - double max = default; - string? maxAsString = default; - double min = default; - string? minAsString = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "doc_count") - { - docCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key") - { - key = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "key_as_string") - { - keyAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max") - { - max = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_as_string") - { - maxAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "min") - { - min = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "min_as_string") - { - minAsString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property.Contains("#")) - { - additionalProperties ??= new Dictionary(); - AggregateDictionaryConverter.ReadItem(ref reader, options, additionalProperties, property); - continue; - } - - throw new JsonException("Unknown property read from JSON."); - } - } - - return new VariableWidthHistogramBucket { Aggregations = new Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary(additionalProperties), DocCount = docCount, Key = key, KeyAsString = keyAsString, Max = max, MaxAsString = maxAsString, Min = min, MinAsString = minAsString }; - } - - public override void Write(Utf8JsonWriter writer, VariableWidthHistogramBucket value, JsonSerializerOptions options) - { - throw new NotImplementedException("'VariableWidthHistogramBucket' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(VariableWidthHistogramBucketConverter))] -public sealed partial class VariableWidthHistogramBucket -{ - /// - /// - /// Nested aggregations - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary Aggregations { get; init; } - public long DocCount { get; init; } - public double Key { get; init; } - public string? KeyAsString { get; init; } - public double Max { get; init; } - public string? MaxAsString { get; init; } - public double Min { get; init; } - public string? MinAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs deleted file mode 100644 index e54a85ecb15..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregate.g.cs +++ /dev/null @@ -1,50 +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.Aggregations; - -/// -/// -/// Weighted average aggregation result. value is missing if the weight was set to zero. -/// -/// -public sealed partial class WeightedAverageAggregate : IAggregate -{ - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The metric value. A missing value generally means that there was no data to aggregate, - /// unless specified otherwise. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double? Value { get; init; } - [JsonInclude, JsonPropertyName("value_as_string")] - public string? ValueAsString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs deleted file mode 100644 index 0ac4cfbcb50..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageAggregation.g.cs +++ /dev/null @@ -1,345 +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.Aggregations; - -public sealed partial class WeightedAverageAggregation -{ - /// - /// - /// A numeric response formatter. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// Configuration for the field that provides the values. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? Value { get; set; } - [JsonInclude, JsonPropertyName("value_type")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueType { get; set; } - - /// - /// - /// Configuration for the field or script that provides the weights. - /// - /// - [JsonInclude, JsonPropertyName("weight")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? Weight { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation(WeightedAverageAggregation weightedAverageAggregation) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.Aggregation.WeightedAvg(weightedAverageAggregation); -} - -public sealed partial class WeightedAverageAggregationDescriptor : SerializableDescriptor> -{ - internal WeightedAverageAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public WeightedAverageAggregationDescriptor() : base() - { - } - - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? ValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor ValueDescriptor { get; set; } - private Action> ValueDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? WeightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor WeightDescriptor { get; set; } - private Action> WeightDescriptorAction { get; set; } - - /// - /// - /// A numeric response formatter. - /// - /// - public WeightedAverageAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Configuration for the field that provides the values. - /// - /// - public WeightedAverageAggregationDescriptor Value(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? value) - { - ValueDescriptor = null; - ValueDescriptorAction = null; - ValueValue = value; - return Self; - } - - public WeightedAverageAggregationDescriptor Value(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor descriptor) - { - ValueValue = null; - ValueDescriptorAction = null; - ValueDescriptor = descriptor; - return Self; - } - - public WeightedAverageAggregationDescriptor Value(Action> configure) - { - ValueValue = null; - ValueDescriptor = null; - ValueDescriptorAction = configure; - return Self; - } - - public WeightedAverageAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - /// - /// - /// Configuration for the field or script that provides the weights. - /// - /// - public WeightedAverageAggregationDescriptor Weight(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? weight) - { - WeightDescriptor = null; - WeightDescriptorAction = null; - WeightValue = weight; - return Self; - } - - public WeightedAverageAggregationDescriptor Weight(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor descriptor) - { - WeightValue = null; - WeightDescriptorAction = null; - WeightDescriptor = descriptor; - return Self; - } - - public WeightedAverageAggregationDescriptor Weight(Action> configure) - { - WeightValue = null; - WeightDescriptor = null; - WeightDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (ValueDescriptor is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueDescriptor, options); - } - else if (ValueDescriptorAction is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor(ValueDescriptorAction), options); - } - else if (ValueValue is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - if (WeightDescriptor is not null) - { - writer.WritePropertyName("weight"); - JsonSerializer.Serialize(writer, WeightDescriptor, options); - } - else if (WeightDescriptorAction is not null) - { - writer.WritePropertyName("weight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor(WeightDescriptorAction), options); - } - else if (WeightValue is not null) - { - writer.WritePropertyName("weight"); - JsonSerializer.Serialize(writer, WeightValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class WeightedAverageAggregationDescriptor : SerializableDescriptor -{ - internal WeightedAverageAggregationDescriptor(Action configure) => configure.Invoke(this); - - public WeightedAverageAggregationDescriptor() : base() - { - } - - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? ValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor ValueDescriptor { get; set; } - private Action ValueDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? ValueTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? WeightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor WeightDescriptor { get; set; } - private Action WeightDescriptorAction { get; set; } - - /// - /// - /// A numeric response formatter. - /// - /// - public WeightedAverageAggregationDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Configuration for the field that provides the values. - /// - /// - public WeightedAverageAggregationDescriptor Value(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? value) - { - ValueDescriptor = null; - ValueDescriptorAction = null; - ValueValue = value; - return Self; - } - - public WeightedAverageAggregationDescriptor Value(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor descriptor) - { - ValueValue = null; - ValueDescriptorAction = null; - ValueDescriptor = descriptor; - return Self; - } - - public WeightedAverageAggregationDescriptor Value(Action configure) - { - ValueValue = null; - ValueDescriptor = null; - ValueDescriptorAction = configure; - return Self; - } - - public WeightedAverageAggregationDescriptor ValueType(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueType? valueType) - { - ValueTypeValue = valueType; - return Self; - } - - /// - /// - /// Configuration for the field or script that provides the weights. - /// - /// - public WeightedAverageAggregationDescriptor Weight(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValue? weight) - { - WeightDescriptor = null; - WeightDescriptorAction = null; - WeightValue = weight; - return Self; - } - - public WeightedAverageAggregationDescriptor Weight(Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor descriptor) - { - WeightValue = null; - WeightDescriptorAction = null; - WeightDescriptor = descriptor; - return Self; - } - - public WeightedAverageAggregationDescriptor Weight(Action configure) - { - WeightValue = null; - WeightDescriptor = null; - WeightDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (ValueDescriptor is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueDescriptor, options); - } - else if (ValueDescriptorAction is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor(ValueDescriptorAction), options); - } - else if (ValueValue is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - } - - if (ValueTypeValue is not null) - { - writer.WritePropertyName("value_type"); - JsonSerializer.Serialize(writer, ValueTypeValue, options); - } - - if (WeightDescriptor is not null) - { - writer.WritePropertyName("weight"); - JsonSerializer.Serialize(writer, WeightDescriptor, options); - } - else if (WeightDescriptorAction is not null) - { - writer.WritePropertyName("weight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Aggregations.WeightedAverageValueDescriptor(WeightDescriptorAction), options); - } - else if (WeightValue is not null) - { - writer.WritePropertyName("weight"); - JsonSerializer.Serialize(writer, WeightValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 8819c604890..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Aggregations/WeightedAverageValue.g.cs +++ /dev/null @@ -1,283 +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.Aggregations; - -public sealed partial class WeightedAverageValue -{ - /// - /// - /// The field from which to extract the values or weights. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - - /// - /// - /// A value or weight to use if the field is missing. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public double? Missing { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } -} - -public sealed partial class WeightedAverageValueDescriptor : SerializableDescriptor> -{ - internal WeightedAverageValueDescriptor(Action> configure) => configure.Invoke(this); - - 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. - /// - /// - public WeightedAverageValueDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to extract the values or weights. - /// - /// - public WeightedAverageValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to extract the values or weights. - /// - /// - public WeightedAverageValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A value or weight to use if the field is missing. - /// - /// - public WeightedAverageValueDescriptor Missing(double? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - 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); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class WeightedAverageValueDescriptor : SerializableDescriptor -{ - internal WeightedAverageValueDescriptor(Action configure) => configure.Invoke(this); - - 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. - /// - /// - public WeightedAverageValueDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to extract the values or weights. - /// - /// - public WeightedAverageValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field from which to extract the values or weights. - /// - /// - public WeightedAverageValueDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// A value or weight to use if the field is missing. - /// - /// - public WeightedAverageValueDescriptor Missing(double? missing) - { - MissingValue = missing; - return Self; - } - - 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(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - 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); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs deleted file mode 100644 index 6bd7654a3b8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Analyzers.g.cs +++ /dev/null @@ -1,512 +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.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.Analysis; - -public partial class Analyzers : IsADictionary -{ - public Analyzers() - { - } - - public Analyzers(IDictionary container) : base(container) - { - } - - public void Add(string name, IAnalyzer analyzer) => BackingDictionary.Add(Sanitize(name), analyzer); - public bool TryGetAnalyzer(string name, [NotNullWhen(returnValue: true)] out IAnalyzer analyzer) => BackingDictionary.TryGetValue(Sanitize(name), out analyzer); - - public bool TryGetAnalyzer(string name, [NotNullWhen(returnValue: true)] out T? analyzer) where T : class, IAnalyzer - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - analyzer = finalValue; - return true; - } - - analyzer = null; - return false; - } -} - -public sealed partial class AnalyzersDescriptor : IsADictionaryDescriptor -{ - public AnalyzersDescriptor() : base(new Analyzers()) - { - } - - public AnalyzersDescriptor(Analyzers analyzers) : base(analyzers ?? new Analyzers()) - { - } - - public AnalyzersDescriptor Arabic(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Arabic(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Arabic(string analyzerName, ArabicAnalyzer arabicAnalyzer) => AssignVariant(analyzerName, arabicAnalyzer); - public AnalyzersDescriptor Armenian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Armenian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Armenian(string analyzerName, ArmenianAnalyzer armenianAnalyzer) => AssignVariant(analyzerName, armenianAnalyzer); - public AnalyzersDescriptor Basque(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Basque(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Basque(string analyzerName, BasqueAnalyzer basqueAnalyzer) => AssignVariant(analyzerName, basqueAnalyzer); - public AnalyzersDescriptor Bengali(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Bengali(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Bengali(string analyzerName, BengaliAnalyzer bengaliAnalyzer) => AssignVariant(analyzerName, bengaliAnalyzer); - public AnalyzersDescriptor Brazilian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Brazilian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Brazilian(string analyzerName, BrazilianAnalyzer brazilianAnalyzer) => AssignVariant(analyzerName, brazilianAnalyzer); - public AnalyzersDescriptor Bulgarian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Bulgarian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Bulgarian(string analyzerName, BulgarianAnalyzer bulgarianAnalyzer) => AssignVariant(analyzerName, bulgarianAnalyzer); - public AnalyzersDescriptor Catalan(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Catalan(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Catalan(string analyzerName, CatalanAnalyzer catalanAnalyzer) => AssignVariant(analyzerName, catalanAnalyzer); - public AnalyzersDescriptor Chinese(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Chinese(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Chinese(string analyzerName, ChineseAnalyzer chineseAnalyzer) => AssignVariant(analyzerName, chineseAnalyzer); - public AnalyzersDescriptor Cjk(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Cjk(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Cjk(string analyzerName, CjkAnalyzer cjkAnalyzer) => AssignVariant(analyzerName, cjkAnalyzer); - public AnalyzersDescriptor Custom(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Custom(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Custom(string analyzerName, CustomAnalyzer customAnalyzer) => AssignVariant(analyzerName, customAnalyzer); - public AnalyzersDescriptor Czech(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Czech(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Czech(string analyzerName, CzechAnalyzer czechAnalyzer) => AssignVariant(analyzerName, czechAnalyzer); - public AnalyzersDescriptor Danish(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Danish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Danish(string analyzerName, DanishAnalyzer danishAnalyzer) => AssignVariant(analyzerName, danishAnalyzer); - public AnalyzersDescriptor Dutch(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Dutch(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Dutch(string analyzerName, DutchAnalyzer dutchAnalyzer) => AssignVariant(analyzerName, dutchAnalyzer); - public AnalyzersDescriptor English(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor English(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor English(string analyzerName, EnglishAnalyzer englishAnalyzer) => AssignVariant(analyzerName, englishAnalyzer); - public AnalyzersDescriptor Estonian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Estonian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Estonian(string analyzerName, EstonianAnalyzer estonianAnalyzer) => AssignVariant(analyzerName, estonianAnalyzer); - public AnalyzersDescriptor Fingerprint(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Fingerprint(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Fingerprint(string analyzerName, FingerprintAnalyzer fingerprintAnalyzer) => AssignVariant(analyzerName, fingerprintAnalyzer); - public AnalyzersDescriptor Finnish(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Finnish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Finnish(string analyzerName, FinnishAnalyzer finnishAnalyzer) => AssignVariant(analyzerName, finnishAnalyzer); - public AnalyzersDescriptor French(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor French(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor French(string analyzerName, FrenchAnalyzer frenchAnalyzer) => AssignVariant(analyzerName, frenchAnalyzer); - public AnalyzersDescriptor Galician(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Galician(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Galician(string analyzerName, GalicianAnalyzer galicianAnalyzer) => AssignVariant(analyzerName, galicianAnalyzer); - public AnalyzersDescriptor German(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor German(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor German(string analyzerName, GermanAnalyzer germanAnalyzer) => AssignVariant(analyzerName, germanAnalyzer); - public AnalyzersDescriptor Greek(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Greek(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Greek(string analyzerName, GreekAnalyzer greekAnalyzer) => AssignVariant(analyzerName, greekAnalyzer); - public AnalyzersDescriptor Hindi(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Hindi(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Hindi(string analyzerName, HindiAnalyzer hindiAnalyzer) => AssignVariant(analyzerName, hindiAnalyzer); - public AnalyzersDescriptor Hungarian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Hungarian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Hungarian(string analyzerName, HungarianAnalyzer hungarianAnalyzer) => AssignVariant(analyzerName, hungarianAnalyzer); - public AnalyzersDescriptor Icu(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Icu(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Icu(string analyzerName, IcuAnalyzer icuAnalyzer) => AssignVariant(analyzerName, icuAnalyzer); - public AnalyzersDescriptor Indonesian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Indonesian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Indonesian(string analyzerName, IndonesianAnalyzer indonesianAnalyzer) => AssignVariant(analyzerName, indonesianAnalyzer); - public AnalyzersDescriptor Irish(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Irish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Irish(string analyzerName, IrishAnalyzer irishAnalyzer) => AssignVariant(analyzerName, irishAnalyzer); - public AnalyzersDescriptor Italian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Italian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Italian(string analyzerName, ItalianAnalyzer italianAnalyzer) => AssignVariant(analyzerName, italianAnalyzer); - public AnalyzersDescriptor Keyword(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Keyword(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Keyword(string analyzerName, KeywordAnalyzer keywordAnalyzer) => AssignVariant(analyzerName, keywordAnalyzer); - public AnalyzersDescriptor Kuromoji(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Kuromoji(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Kuromoji(string analyzerName, KuromojiAnalyzer kuromojiAnalyzer) => AssignVariant(analyzerName, kuromojiAnalyzer); - public AnalyzersDescriptor Language(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Language(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Language(string analyzerName, LanguageAnalyzer languageAnalyzer) => AssignVariant(analyzerName, languageAnalyzer); - public AnalyzersDescriptor Latvian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Latvian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Latvian(string analyzerName, LatvianAnalyzer latvianAnalyzer) => AssignVariant(analyzerName, latvianAnalyzer); - public AnalyzersDescriptor Lithuanian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Lithuanian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Lithuanian(string analyzerName, LithuanianAnalyzer lithuanianAnalyzer) => AssignVariant(analyzerName, lithuanianAnalyzer); - public AnalyzersDescriptor Nori(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Nori(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Nori(string analyzerName, NoriAnalyzer noriAnalyzer) => AssignVariant(analyzerName, noriAnalyzer); - public AnalyzersDescriptor Norwegian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Norwegian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Norwegian(string analyzerName, NorwegianAnalyzer norwegianAnalyzer) => AssignVariant(analyzerName, norwegianAnalyzer); - public AnalyzersDescriptor Pattern(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Pattern(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Pattern(string analyzerName, PatternAnalyzer patternAnalyzer) => AssignVariant(analyzerName, patternAnalyzer); - public AnalyzersDescriptor Persian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Persian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Persian(string analyzerName, PersianAnalyzer persianAnalyzer) => AssignVariant(analyzerName, persianAnalyzer); - public AnalyzersDescriptor Portuguese(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Portuguese(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Portuguese(string analyzerName, PortugueseAnalyzer portugueseAnalyzer) => AssignVariant(analyzerName, portugueseAnalyzer); - public AnalyzersDescriptor Romanian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Romanian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Romanian(string analyzerName, RomanianAnalyzer romanianAnalyzer) => AssignVariant(analyzerName, romanianAnalyzer); - public AnalyzersDescriptor Russian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Russian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Russian(string analyzerName, RussianAnalyzer russianAnalyzer) => AssignVariant(analyzerName, russianAnalyzer); - public AnalyzersDescriptor Serbian(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Serbian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Serbian(string analyzerName, SerbianAnalyzer serbianAnalyzer) => AssignVariant(analyzerName, serbianAnalyzer); - public AnalyzersDescriptor Simple(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Simple(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Simple(string analyzerName, SimpleAnalyzer simpleAnalyzer) => AssignVariant(analyzerName, simpleAnalyzer); - public AnalyzersDescriptor Snowball(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Snowball(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Snowball(string analyzerName, SnowballAnalyzer snowballAnalyzer) => AssignVariant(analyzerName, snowballAnalyzer); - public AnalyzersDescriptor Sorani(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Sorani(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Sorani(string analyzerName, SoraniAnalyzer soraniAnalyzer) => AssignVariant(analyzerName, soraniAnalyzer); - public AnalyzersDescriptor Spanish(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Spanish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Spanish(string analyzerName, SpanishAnalyzer spanishAnalyzer) => AssignVariant(analyzerName, spanishAnalyzer); - public AnalyzersDescriptor Standard(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Standard(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Standard(string analyzerName, StandardAnalyzer standardAnalyzer) => AssignVariant(analyzerName, standardAnalyzer); - public AnalyzersDescriptor Stop(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Stop(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Stop(string analyzerName, StopAnalyzer stopAnalyzer) => AssignVariant(analyzerName, stopAnalyzer); - public AnalyzersDescriptor Swedish(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Swedish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Swedish(string analyzerName, SwedishAnalyzer swedishAnalyzer) => AssignVariant(analyzerName, swedishAnalyzer); - public AnalyzersDescriptor Thai(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Thai(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Thai(string analyzerName, ThaiAnalyzer thaiAnalyzer) => AssignVariant(analyzerName, thaiAnalyzer); - public AnalyzersDescriptor Turkish(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Turkish(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Turkish(string analyzerName, TurkishAnalyzer turkishAnalyzer) => AssignVariant(analyzerName, turkishAnalyzer); - public AnalyzersDescriptor Whitespace(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Whitespace(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Whitespace(string analyzerName, WhitespaceAnalyzer whitespaceAnalyzer) => AssignVariant(analyzerName, whitespaceAnalyzer); -} - -internal sealed partial class AnalyzerInterfaceConverter : JsonConverter -{ - public override IAnalyzer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "arabic": - return JsonSerializer.Deserialize(ref reader, options); - case "armenian": - return JsonSerializer.Deserialize(ref reader, options); - case "basque": - return JsonSerializer.Deserialize(ref reader, options); - case "bengali": - return JsonSerializer.Deserialize(ref reader, options); - case "brazilian": - return JsonSerializer.Deserialize(ref reader, options); - case "bulgarian": - return JsonSerializer.Deserialize(ref reader, options); - case "catalan": - return JsonSerializer.Deserialize(ref reader, options); - case "chinese": - return JsonSerializer.Deserialize(ref reader, options); - case "cjk": - return JsonSerializer.Deserialize(ref reader, options); - case "custom": - return JsonSerializer.Deserialize(ref reader, options); - case "czech": - return JsonSerializer.Deserialize(ref reader, options); - case "danish": - return JsonSerializer.Deserialize(ref reader, options); - case "dutch": - return JsonSerializer.Deserialize(ref reader, options); - case "english": - return JsonSerializer.Deserialize(ref reader, options); - case "estonian": - return JsonSerializer.Deserialize(ref reader, options); - case "fingerprint": - return JsonSerializer.Deserialize(ref reader, options); - case "finnish": - return JsonSerializer.Deserialize(ref reader, options); - case "french": - return JsonSerializer.Deserialize(ref reader, options); - case "galician": - return JsonSerializer.Deserialize(ref reader, options); - case "german": - return JsonSerializer.Deserialize(ref reader, options); - case "greek": - return JsonSerializer.Deserialize(ref reader, options); - case "hindi": - return JsonSerializer.Deserialize(ref reader, options); - case "hungarian": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_analyzer": - return JsonSerializer.Deserialize(ref reader, options); - case "indonesian": - return JsonSerializer.Deserialize(ref reader, options); - case "irish": - return JsonSerializer.Deserialize(ref reader, options); - case "italian": - return JsonSerializer.Deserialize(ref reader, options); - case "keyword": - return JsonSerializer.Deserialize(ref reader, options); - case "kuromoji": - return JsonSerializer.Deserialize(ref reader, options); - case "language": - return JsonSerializer.Deserialize(ref reader, options); - case "latvian": - return JsonSerializer.Deserialize(ref reader, options); - case "lithuanian": - return JsonSerializer.Deserialize(ref reader, options); - case "nori": - return JsonSerializer.Deserialize(ref reader, options); - case "norwegian": - return JsonSerializer.Deserialize(ref reader, options); - case "pattern": - return JsonSerializer.Deserialize(ref reader, options); - case "persian": - return JsonSerializer.Deserialize(ref reader, options); - case "portuguese": - return JsonSerializer.Deserialize(ref reader, options); - case "romanian": - return JsonSerializer.Deserialize(ref reader, options); - case "russian": - return JsonSerializer.Deserialize(ref reader, options); - case "serbian": - return JsonSerializer.Deserialize(ref reader, options); - case "simple": - return JsonSerializer.Deserialize(ref reader, options); - case "snowball": - return JsonSerializer.Deserialize(ref reader, options); - case "sorani": - return JsonSerializer.Deserialize(ref reader, options); - case "spanish": - return JsonSerializer.Deserialize(ref reader, options); - case "standard": - return JsonSerializer.Deserialize(ref reader, options); - case "stop": - return JsonSerializer.Deserialize(ref reader, options); - case "swedish": - return JsonSerializer.Deserialize(ref reader, options); - case "thai": - return JsonSerializer.Deserialize(ref reader, options); - case "turkish": - return JsonSerializer.Deserialize(ref reader, options); - case "whitespace": - return JsonSerializer.Deserialize(ref reader, options); - default: - return JsonSerializer.Deserialize(ref reader, options); - } - } - - public override void Write(Utf8JsonWriter writer, IAnalyzer value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "arabic": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ArabicAnalyzer), options); - return; - case "armenian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ArmenianAnalyzer), options); - return; - case "basque": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BasqueAnalyzer), options); - return; - case "bengali": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BengaliAnalyzer), options); - return; - case "brazilian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BrazilianAnalyzer), options); - return; - case "bulgarian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.BulgarianAnalyzer), options); - return; - case "catalan": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CatalanAnalyzer), options); - return; - case "chinese": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ChineseAnalyzer), options); - return; - case "cjk": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CjkAnalyzer), options); - return; - case "custom": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CustomAnalyzer), options); - return; - case "czech": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CzechAnalyzer), options); - return; - case "danish": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.DanishAnalyzer), options); - return; - case "dutch": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.DutchAnalyzer), options); - return; - case "english": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EnglishAnalyzer), options); - return; - case "estonian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EstonianAnalyzer), options); - return; - case "fingerprint": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FingerprintAnalyzer), options); - return; - case "finnish": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FinnishAnalyzer), options); - return; - case "french": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FrenchAnalyzer), options); - return; - case "galician": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.GalicianAnalyzer), options); - return; - case "german": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.GermanAnalyzer), options); - return; - case "greek": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.GreekAnalyzer), options); - return; - case "hindi": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HindiAnalyzer), options); - return; - case "hungarian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HungarianAnalyzer), options); - return; - case "icu_analyzer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuAnalyzer), options); - return; - case "indonesian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IndonesianAnalyzer), options); - return; - case "irish": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IrishAnalyzer), options); - return; - case "italian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ItalianAnalyzer), options); - return; - case "keyword": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeywordAnalyzer), options); - return; - case "kuromoji": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiAnalyzer), options); - return; - case "language": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LanguageAnalyzer), options); - return; - case "latvian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LatvianAnalyzer), options); - return; - case "lithuanian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LithuanianAnalyzer), options); - return; - case "nori": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriAnalyzer), options); - return; - case "norwegian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NorwegianAnalyzer), options); - return; - case "pattern": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternAnalyzer), options); - return; - case "persian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PersianAnalyzer), options); - return; - case "portuguese": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PortugueseAnalyzer), options); - return; - case "romanian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.RomanianAnalyzer), options); - return; - case "russian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.RussianAnalyzer), options); - return; - case "serbian": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SerbianAnalyzer), options); - return; - case "simple": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimpleAnalyzer), options); - return; - case "snowball": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballAnalyzer), options); - return; - case "sorani": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SoraniAnalyzer), options); - return; - case "spanish": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SpanishAnalyzer), options); - return; - case "standard": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StandardAnalyzer), options); - return; - case "stop": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StopAnalyzer), options); - return; - case "swedish": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SwedishAnalyzer), options); - return; - case "thai": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ThaiAnalyzer), options); - return; - case "turkish": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.TurkishAnalyzer), options); - return; - case "whitespace": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.WhitespaceAnalyzer), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(AnalyzerInterfaceConverter))] -public partial interface IAnalyzer -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs deleted file mode 100644 index 87783f17690..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArabicAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class ArabicAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "arabic"; -} - -public sealed partial class ArabicAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ArabicAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public ArabicAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public ArabicAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public ArabicAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public ArabicAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("arabic"); - writer.WriteEndObject(); - } - - ArabicAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs deleted file mode 100644 index cbbf0f7e7f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class ArmenianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "armenian"; -} - -public sealed partial class ArmenianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ArmenianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public ArmenianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public ArmenianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public ArmenianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public ArmenianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("armenian"); - writer.WriteEndObject(); - } - - ArmenianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs deleted file mode 100644 index 4360889efcb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class AsciiFoldingTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "asciifolding"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class AsciiFoldingTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal AsciiFoldingTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public AsciiFoldingTokenFilterDescriptor() : base() - { - } - - private bool? PreserveOriginalValue { get; set; } - private string? VersionValue { get; set; } - - public AsciiFoldingTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public AsciiFoldingTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("asciifolding"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - AsciiFoldingTokenFilter IBuildableDescriptor.Build() => new() - { - PreserveOriginal = PreserveOriginalValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs deleted file mode 100644 index 7ab1d7efbd0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BasqueAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class BasqueAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "basque"; -} - -public sealed partial class BasqueAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal BasqueAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public BasqueAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public BasqueAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public BasqueAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public BasqueAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("basque"); - writer.WriteEndObject(); - } - - BasqueAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs deleted file mode 100644 index 951c03fed86..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BengaliAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class BengaliAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "bengali"; -} - -public sealed partial class BengaliAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal BengaliAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public BengaliAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public BengaliAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public BengaliAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public BengaliAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("bengali"); - writer.WriteEndObject(); - } - - BengaliAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs deleted file mode 100644 index 1bde324bc93..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class BrazilianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "brazilian"; -} - -public sealed partial class BrazilianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal BrazilianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public BrazilianAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public BrazilianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public BrazilianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("brazilian"); - writer.WriteEndObject(); - } - - BrazilianAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs deleted file mode 100644 index 626ffb4a980..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class BulgarianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "bulgarian"; -} - -public sealed partial class BulgarianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal BulgarianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public BulgarianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public BulgarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public BulgarianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public BulgarianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("bulgarian"); - writer.WriteEndObject(); - } - - BulgarianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs deleted file mode 100644 index 05bcbee46aa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CatalanAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class CatalanAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "catalan"; -} - -public sealed partial class CatalanAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CatalanAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public CatalanAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public CatalanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public CatalanAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public CatalanAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("catalan"); - writer.WriteEndObject(); - } - - CatalanAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharFilters.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharFilters.g.cs deleted file mode 100644 index 2e369133ca6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharFilters.g.cs +++ /dev/null @@ -1,153 +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.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.Analysis; - -public partial class CharFilters : IsADictionary -{ - public CharFilters() - { - } - - public CharFilters(IDictionary container) : base(container) - { - } - - public void Add(string name, ICharFilter charFilter) => BackingDictionary.Add(Sanitize(name), charFilter); - public bool TryGetCharFilter(string name, [NotNullWhen(returnValue: true)] out ICharFilter charFilter) => BackingDictionary.TryGetValue(Sanitize(name), out charFilter); - - public bool TryGetCharFilter(string name, [NotNullWhen(returnValue: true)] out T? charFilter) where T : class, ICharFilter - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - charFilter = finalValue; - return true; - } - - charFilter = null; - return false; - } -} - -public sealed partial class CharFiltersDescriptor : IsADictionaryDescriptor -{ - public CharFiltersDescriptor() : base(new CharFilters()) - { - } - - public CharFiltersDescriptor(CharFilters charFilters) : base(charFilters ?? new CharFilters()) - { - } - - public CharFiltersDescriptor HtmlStrip(string charFilterName) => AssignVariant(charFilterName, null); - public CharFiltersDescriptor HtmlStrip(string charFilterName, Action configure) => AssignVariant(charFilterName, configure); - public CharFiltersDescriptor HtmlStrip(string charFilterName, HtmlStripCharFilter htmlStripCharFilter) => AssignVariant(charFilterName, htmlStripCharFilter); - public CharFiltersDescriptor IcuNormalization(string charFilterName) => AssignVariant(charFilterName, null); - public CharFiltersDescriptor IcuNormalization(string charFilterName, Action configure) => AssignVariant(charFilterName, configure); - public CharFiltersDescriptor IcuNormalization(string charFilterName, IcuNormalizationCharFilter icuNormalizationCharFilter) => AssignVariant(charFilterName, icuNormalizationCharFilter); - public CharFiltersDescriptor KuromojiIterationMark(string charFilterName) => AssignVariant(charFilterName, null); - public CharFiltersDescriptor KuromojiIterationMark(string charFilterName, Action configure) => AssignVariant(charFilterName, configure); - public CharFiltersDescriptor KuromojiIterationMark(string charFilterName, KuromojiIterationMarkCharFilter kuromojiIterationMarkCharFilter) => AssignVariant(charFilterName, kuromojiIterationMarkCharFilter); - public CharFiltersDescriptor Mapping(string charFilterName) => AssignVariant(charFilterName, null); - public CharFiltersDescriptor Mapping(string charFilterName, Action configure) => AssignVariant(charFilterName, configure); - public CharFiltersDescriptor Mapping(string charFilterName, MappingCharFilter mappingCharFilter) => AssignVariant(charFilterName, mappingCharFilter); - public CharFiltersDescriptor PatternReplace(string charFilterName) => AssignVariant(charFilterName, null); - public CharFiltersDescriptor PatternReplace(string charFilterName, Action configure) => AssignVariant(charFilterName, configure); - public CharFiltersDescriptor PatternReplace(string charFilterName, PatternReplaceCharFilter patternReplaceCharFilter) => AssignVariant(charFilterName, patternReplaceCharFilter); -} - -internal sealed partial class CharFilterInterfaceConverter : JsonConverter -{ - public override ICharFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "html_strip": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_normalizer": - return JsonSerializer.Deserialize(ref reader, options); - case "kuromoji_iteration_mark": - return JsonSerializer.Deserialize(ref reader, options); - case "mapping": - return JsonSerializer.Deserialize(ref reader, options); - case "pattern_replace": - return JsonSerializer.Deserialize(ref reader, options); - default: - ThrowHelper.ThrowUnknownTaggedUnionVariantJsonException(type, typeof(ICharFilter)); - return null; - } - } - - public override void Write(Utf8JsonWriter writer, ICharFilter value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "html_strip": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HtmlStripCharFilter), options); - return; - case "icu_normalizer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationCharFilter), options); - return; - case "kuromoji_iteration_mark": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiIterationMarkCharFilter), options); - return; - case "mapping": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.MappingCharFilter), options); - return; - case "pattern_replace": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternReplaceCharFilter), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(CharFilterInterfaceConverter))] -public partial interface ICharFilter -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharGroupTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharGroupTokenizer.g.cs deleted file mode 100644 index 25a623fa3cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CharGroupTokenizer.g.cs +++ /dev/null @@ -1,102 +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.Analysis; - -public sealed partial class CharGroupTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("max_token_length")] - public int? MaxTokenLength { get; set; } - [JsonInclude, JsonPropertyName("tokenize_on_chars")] - public ICollection TokenizeOnChars { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "char_group"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class CharGroupTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CharGroupTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public CharGroupTokenizerDescriptor() : base() - { - } - - private int? MaxTokenLengthValue { get; set; } - private ICollection TokenizeOnCharsValue { get; set; } - private string? VersionValue { get; set; } - - public CharGroupTokenizerDescriptor MaxTokenLength(int? maxTokenLength) - { - MaxTokenLengthValue = maxTokenLength; - return Self; - } - - public CharGroupTokenizerDescriptor TokenizeOnChars(ICollection tokenizeOnChars) - { - TokenizeOnCharsValue = tokenizeOnChars; - return Self; - } - - public CharGroupTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenLengthValue.HasValue) - { - writer.WritePropertyName("max_token_length"); - writer.WriteNumberValue(MaxTokenLengthValue.Value); - } - - writer.WritePropertyName("tokenize_on_chars"); - JsonSerializer.Serialize(writer, TokenizeOnCharsValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("char_group"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - CharGroupTokenizer IBuildableDescriptor.Build() => new() - { - MaxTokenLength = MaxTokenLengthValue, - TokenizeOnChars = TokenizeOnCharsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs deleted file mode 100644 index 346475e7101..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ChineseAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class ChineseAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "chinese"; -} - -public sealed partial class ChineseAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ChineseAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public ChineseAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public ChineseAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public ChineseAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("chinese"); - writer.WriteEndObject(); - } - - ChineseAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs deleted file mode 100644 index 3c5155d81ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CjkAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class CjkAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "cjk"; -} - -public sealed partial class CjkAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CjkAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public CjkAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public CjkAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public CjkAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("cjk"); - writer.WriteEndObject(); - } - - CjkAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs deleted file mode 100644 index dd3cd63d201..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ClassicTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class ClassicTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("max_token_length")] - public int? MaxTokenLength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "classic"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class ClassicTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ClassicTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public ClassicTokenizerDescriptor() : base() - { - } - - private int? MaxTokenLengthValue { get; set; } - private string? VersionValue { get; set; } - - public ClassicTokenizerDescriptor MaxTokenLength(int? maxTokenLength) - { - MaxTokenLengthValue = maxTokenLength; - return Self; - } - - public ClassicTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenLengthValue.HasValue) - { - writer.WritePropertyName("max_token_length"); - writer.WriteNumberValue(MaxTokenLengthValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("classic"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - ClassicTokenizer IBuildableDescriptor.Build() => new() - { - MaxTokenLength = MaxTokenLengthValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs deleted file mode 100644 index 042bb74c9e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs +++ /dev/null @@ -1,138 +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.Analysis; - -public sealed partial class CommonGramsTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("common_words")] - public ICollection? CommonWords { get; set; } - [JsonInclude, JsonPropertyName("common_words_path")] - public string? CommonWordsPath { get; set; } - [JsonInclude, JsonPropertyName("ignore_case")] - public bool? IgnoreCase { get; set; } - [JsonInclude, JsonPropertyName("query_mode")] - public bool? QueryMode { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "common_grams"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class CommonGramsTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CommonGramsTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public CommonGramsTokenFilterDescriptor() : base() - { - } - - private ICollection? CommonWordsValue { get; set; } - private string? CommonWordsPathValue { get; set; } - private bool? IgnoreCaseValue { get; set; } - private bool? QueryModeValue { get; set; } - private string? VersionValue { get; set; } - - public CommonGramsTokenFilterDescriptor CommonWords(ICollection? commonWords) - { - CommonWordsValue = commonWords; - return Self; - } - - public CommonGramsTokenFilterDescriptor CommonWordsPath(string? commonWordsPath) - { - CommonWordsPathValue = commonWordsPath; - return Self; - } - - public CommonGramsTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) - { - IgnoreCaseValue = ignoreCase; - return Self; - } - - public CommonGramsTokenFilterDescriptor QueryMode(bool? queryMode = true) - { - QueryModeValue = queryMode; - return Self; - } - - public CommonGramsTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CommonWordsValue is not null) - { - writer.WritePropertyName("common_words"); - JsonSerializer.Serialize(writer, CommonWordsValue, options); - } - - if (!string.IsNullOrEmpty(CommonWordsPathValue)) - { - writer.WritePropertyName("common_words_path"); - writer.WriteStringValue(CommonWordsPathValue); - } - - if (IgnoreCaseValue.HasValue) - { - writer.WritePropertyName("ignore_case"); - writer.WriteBooleanValue(IgnoreCaseValue.Value); - } - - if (QueryModeValue.HasValue) - { - writer.WritePropertyName("query_mode"); - writer.WriteBooleanValue(QueryModeValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("common_grams"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - CommonGramsTokenFilter IBuildableDescriptor.Build() => new() - { - CommonWords = CommonWordsValue, - CommonWordsPath = CommonWordsPathValue, - IgnoreCase = IgnoreCaseValue, - QueryMode = QueryModeValue, - Version = VersionValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 8f3bccf1177..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ConditionTokenFilter.g.cs +++ /dev/null @@ -1,156 +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.Analysis; - -public sealed partial class ConditionTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("filter")] - public ICollection Filter { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "condition"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class ConditionTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ConditionTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - 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) - { - FilterValue = filter; - return Self; - } - - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, 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)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - 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 = BuildScript(), - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomAnalyzer.g.cs deleted file mode 100644 index 8032c00b2a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomAnalyzer.g.cs +++ /dev/null @@ -1,135 +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.Analysis; - -public sealed partial class CustomAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("char_filter")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? CharFilter { get; set; } - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Filter { get; set; } - [JsonInclude, JsonPropertyName("position_increment_gap")] - public int? PositionIncrementGap { get; set; } - [JsonInclude, JsonPropertyName("position_offset_gap")] - public int? PositionOffsetGap { get; set; } - [JsonInclude, JsonPropertyName("tokenizer")] - public string Tokenizer { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "custom"; -} - -public sealed partial class CustomAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CustomAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public CustomAnalyzerDescriptor() : base() - { - } - - private ICollection? CharFilterValue { get; set; } - private ICollection? FilterValue { get; set; } - private int? PositionIncrementGapValue { get; set; } - private int? PositionOffsetGapValue { get; set; } - private string TokenizerValue { get; set; } - - public CustomAnalyzerDescriptor CharFilter(ICollection? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - public CustomAnalyzerDescriptor Filter(ICollection? filter) - { - FilterValue = filter; - return Self; - } - - public CustomAnalyzerDescriptor PositionIncrementGap(int? positionIncrementGap) - { - PositionIncrementGapValue = positionIncrementGap; - return Self; - } - - public CustomAnalyzerDescriptor PositionOffsetGap(int? positionOffsetGap) - { - PositionOffsetGapValue = positionOffsetGap; - return Self; - } - - public CustomAnalyzerDescriptor Tokenizer(string tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - SingleOrManySerializationHelper.Serialize(CharFilterValue, writer, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (PositionIncrementGapValue.HasValue) - { - writer.WritePropertyName("position_increment_gap"); - writer.WriteNumberValue(PositionIncrementGapValue.Value); - } - - if (PositionOffsetGapValue.HasValue) - { - writer.WritePropertyName("position_offset_gap"); - writer.WriteNumberValue(PositionOffsetGapValue.Value); - } - - writer.WritePropertyName("tokenizer"); - writer.WriteStringValue(TokenizerValue); - writer.WritePropertyName("type"); - writer.WriteStringValue("custom"); - writer.WriteEndObject(); - } - - CustomAnalyzer IBuildableDescriptor.Build() => new() - { - CharFilter = CharFilterValue, - Filter = FilterValue, - PositionIncrementGap = PositionIncrementGapValue, - PositionOffsetGap = PositionOffsetGapValue, - Tokenizer = TokenizerValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomNormalizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomNormalizer.g.cs deleted file mode 100644 index d860de1f8b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CustomNormalizer.g.cs +++ /dev/null @@ -1,89 +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.Analysis; - -public sealed partial class CustomNormalizer : INormalizer -{ - [JsonInclude, JsonPropertyName("char_filter")] - public ICollection? CharFilter { get; set; } - [JsonInclude, JsonPropertyName("filter")] - public ICollection? Filter { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "custom"; -} - -public sealed partial class CustomNormalizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CustomNormalizerDescriptor(Action configure) => configure.Invoke(this); - - public CustomNormalizerDescriptor() : base() - { - } - - private ICollection? CharFilterValue { get; set; } - private ICollection? FilterValue { get; set; } - - public CustomNormalizerDescriptor CharFilter(ICollection? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - public CustomNormalizerDescriptor Filter(ICollection? filter) - { - FilterValue = filter; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("custom"); - writer.WriteEndObject(); - } - - CustomNormalizer IBuildableDescriptor.Build() => new() - { - CharFilter = CharFilterValue, - Filter = FilterValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs deleted file mode 100644 index 2ab33835403..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/CzechAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class CzechAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "czech"; -} - -public sealed partial class CzechAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CzechAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public CzechAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public CzechAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public CzechAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public CzechAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("czech"); - writer.WriteEndObject(); - } - - CzechAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs deleted file mode 100644 index 1a564e5d309..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DanishAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class DanishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "danish"; -} - -public sealed partial class DanishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DanishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public DanishAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public DanishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public DanishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("danish"); - writer.WriteEndObject(); - } - - DanishAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs deleted file mode 100644 index 053b6eff686..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class DelimitedPayloadTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("delimiter")] - public string? Delimiter { get; set; } - [JsonInclude, JsonPropertyName("encoding")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.DelimitedPayloadEncoding? Encoding { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "delimited_payload"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class DelimitedPayloadTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DelimitedPayloadTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public DelimitedPayloadTokenFilterDescriptor() : base() - { - } - - private string? DelimiterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.DelimitedPayloadEncoding? EncodingValue { get; set; } - private string? VersionValue { get; set; } - - public DelimitedPayloadTokenFilterDescriptor Delimiter(string? delimiter) - { - DelimiterValue = delimiter; - return Self; - } - - public DelimitedPayloadTokenFilterDescriptor Encoding(Elastic.Clients.Elasticsearch.Serverless.Analysis.DelimitedPayloadEncoding? encoding) - { - EncodingValue = encoding; - return Self; - } - - public DelimitedPayloadTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DelimiterValue)) - { - writer.WritePropertyName("delimiter"); - writer.WriteStringValue(DelimiterValue); - } - - if (EncodingValue is not null) - { - writer.WritePropertyName("encoding"); - JsonSerializer.Serialize(writer, EncodingValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("delimited_payload"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - DelimitedPayloadTokenFilter IBuildableDescriptor.Build() => new() - { - Delimiter = DelimiterValue, - Encoding = EncodingValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs deleted file mode 100644 index 7fc6b44b4ae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs +++ /dev/null @@ -1,186 +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.Analysis; - -public sealed partial class DictionaryDecompounderTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("hyphenation_patterns_path")] - public string? HyphenationPatternsPath { get; set; } - [JsonInclude, JsonPropertyName("max_subword_size")] - public int? MaxSubwordSize { get; set; } - [JsonInclude, JsonPropertyName("min_subword_size")] - public int? MinSubwordSize { get; set; } - [JsonInclude, JsonPropertyName("min_word_size")] - public int? MinWordSize { get; set; } - [JsonInclude, JsonPropertyName("only_longest_match")] - public bool? OnlyLongestMatch { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "dictionary_decompounder"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } - [JsonInclude, JsonPropertyName("word_list")] - public ICollection? WordList { get; set; } - [JsonInclude, JsonPropertyName("word_list_path")] - public string? WordListPath { get; set; } -} - -public sealed partial class DictionaryDecompounderTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DictionaryDecompounderTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public DictionaryDecompounderTokenFilterDescriptor() : base() - { - } - - private string? HyphenationPatternsPathValue { get; set; } - private int? MaxSubwordSizeValue { get; set; } - private int? MinSubwordSizeValue { get; set; } - private int? MinWordSizeValue { get; set; } - private bool? OnlyLongestMatchValue { get; set; } - private string? VersionValue { get; set; } - private ICollection? WordListValue { get; set; } - private string? WordListPathValue { get; set; } - - public DictionaryDecompounderTokenFilterDescriptor HyphenationPatternsPath(string? hyphenationPatternsPath) - { - HyphenationPatternsPathValue = hyphenationPatternsPath; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor MaxSubwordSize(int? maxSubwordSize) - { - MaxSubwordSizeValue = maxSubwordSize; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor MinSubwordSize(int? minSubwordSize) - { - MinSubwordSizeValue = minSubwordSize; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor MinWordSize(int? minWordSize) - { - MinWordSizeValue = minWordSize; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor OnlyLongestMatch(bool? onlyLongestMatch = true) - { - OnlyLongestMatchValue = onlyLongestMatch; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor WordList(ICollection? wordList) - { - WordListValue = wordList; - return Self; - } - - public DictionaryDecompounderTokenFilterDescriptor WordListPath(string? wordListPath) - { - WordListPathValue = wordListPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(HyphenationPatternsPathValue)) - { - writer.WritePropertyName("hyphenation_patterns_path"); - writer.WriteStringValue(HyphenationPatternsPathValue); - } - - if (MaxSubwordSizeValue.HasValue) - { - writer.WritePropertyName("max_subword_size"); - writer.WriteNumberValue(MaxSubwordSizeValue.Value); - } - - if (MinSubwordSizeValue.HasValue) - { - writer.WritePropertyName("min_subword_size"); - writer.WriteNumberValue(MinSubwordSizeValue.Value); - } - - if (MinWordSizeValue.HasValue) - { - writer.WritePropertyName("min_word_size"); - writer.WriteNumberValue(MinWordSizeValue.Value); - } - - if (OnlyLongestMatchValue.HasValue) - { - writer.WritePropertyName("only_longest_match"); - writer.WriteBooleanValue(OnlyLongestMatchValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("dictionary_decompounder"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - if (WordListValue is not null) - { - writer.WritePropertyName("word_list"); - JsonSerializer.Serialize(writer, WordListValue, options); - } - - if (!string.IsNullOrEmpty(WordListPathValue)) - { - writer.WritePropertyName("word_list_path"); - writer.WriteStringValue(WordListPathValue); - } - - writer.WriteEndObject(); - } - - DictionaryDecompounderTokenFilter IBuildableDescriptor.Build() => new() - { - HyphenationPatternsPath = HyphenationPatternsPathValue, - MaxSubwordSize = MaxSubwordSizeValue, - MinSubwordSize = MinSubwordSizeValue, - MinWordSize = MinWordSizeValue, - OnlyLongestMatch = OnlyLongestMatchValue, - Version = VersionValue, - WordList = WordListValue, - WordListPath = WordListPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs deleted file mode 100644 index 988e5393d2c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/DutchAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class DutchAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "dutch"; -} - -public sealed partial class DutchAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DutchAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public DutchAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public DutchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public DutchAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("dutch"); - writer.WriteEndObject(); - } - - DutchAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs deleted file mode 100644 index 4fcc17e8802..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs +++ /dev/null @@ -1,138 +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.Analysis; - -public sealed partial class EdgeNGramTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("max_gram")] - public int? MaxGram { get; set; } - [JsonInclude, JsonPropertyName("min_gram")] - public int? MinGram { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - [JsonInclude, JsonPropertyName("side")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramSide? Side { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "edge_ngram"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class EdgeNGramTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal EdgeNGramTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public EdgeNGramTokenFilterDescriptor() : base() - { - } - - private int? MaxGramValue { get; set; } - private int? MinGramValue { get; set; } - private bool? PreserveOriginalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramSide? SideValue { get; set; } - private string? VersionValue { get; set; } - - public EdgeNGramTokenFilterDescriptor MaxGram(int? maxGram) - { - MaxGramValue = maxGram; - return Self; - } - - public EdgeNGramTokenFilterDescriptor MinGram(int? minGram) - { - MinGramValue = minGram; - return Self; - } - - public EdgeNGramTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public EdgeNGramTokenFilterDescriptor Side(Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramSide? side) - { - SideValue = side; - return Self; - } - - public EdgeNGramTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxGramValue.HasValue) - { - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue.Value); - } - - if (MinGramValue.HasValue) - { - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue.Value); - } - - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - if (SideValue is not null) - { - writer.WritePropertyName("side"); - JsonSerializer.Serialize(writer, SideValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("edge_ngram"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - EdgeNGramTokenFilter IBuildableDescriptor.Build() => new() - { - MaxGram = MaxGramValue, - MinGram = MinGramValue, - PreserveOriginal = PreserveOriginalValue, - Side = SideValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs deleted file mode 100644 index a4e14124507..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ /dev/null @@ -1,138 +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.Analysis; - -public sealed partial class EdgeNGramTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("custom_token_chars")] - public string? CustomTokenChars { get; set; } - [JsonInclude, JsonPropertyName("max_gram")] - public int? MaxGram { get; set; } - [JsonInclude, JsonPropertyName("min_gram")] - public int? MinGram { get; set; } - [JsonInclude, JsonPropertyName("token_chars")] - public ICollection? TokenChars { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "edge_ngram"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class EdgeNGramTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal EdgeNGramTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public EdgeNGramTokenizerDescriptor() : base() - { - } - - private string? CustomTokenCharsValue { get; set; } - private int? MaxGramValue { get; set; } - private int? MinGramValue { get; set; } - private ICollection? TokenCharsValue { get; set; } - private string? VersionValue { get; set; } - - public EdgeNGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) - { - CustomTokenCharsValue = customTokenChars; - return Self; - } - - public EdgeNGramTokenizerDescriptor MaxGram(int? maxGram) - { - MaxGramValue = maxGram; - return Self; - } - - public EdgeNGramTokenizerDescriptor MinGram(int? minGram) - { - MinGramValue = minGram; - return Self; - } - - public EdgeNGramTokenizerDescriptor TokenChars(ICollection? tokenChars) - { - TokenCharsValue = tokenChars; - return Self; - } - - public EdgeNGramTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CustomTokenCharsValue)) - { - writer.WritePropertyName("custom_token_chars"); - writer.WriteStringValue(CustomTokenCharsValue); - } - - if (MaxGramValue.HasValue) - { - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue.Value); - } - - if (MinGramValue.HasValue) - { - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue.Value); - } - - if (TokenCharsValue is not null) - { - writer.WritePropertyName("token_chars"); - JsonSerializer.Serialize(writer, TokenCharsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("edge_ngram"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - EdgeNGramTokenizer IBuildableDescriptor.Build() => new() - { - CustomTokenChars = CustomTokenCharsValue, - MaxGram = MaxGramValue, - MinGram = MinGramValue, - TokenChars = TokenCharsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ElisionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ElisionTokenFilter.g.cs deleted file mode 100644 index 1eff891e4f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ElisionTokenFilter.g.cs +++ /dev/null @@ -1,122 +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.Analysis; - -public sealed partial class ElisionTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("articles")] - public ICollection? Articles { get; set; } - [JsonInclude, JsonPropertyName("articles_case")] - public bool? ArticlesCase { get; set; } - [JsonInclude, JsonPropertyName("articles_path")] - public string? ArticlesPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "elision"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class ElisionTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ElisionTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public ElisionTokenFilterDescriptor() : base() - { - } - - private ICollection? ArticlesValue { get; set; } - private bool? ArticlesCaseValue { get; set; } - private string? ArticlesPathValue { get; set; } - private string? VersionValue { get; set; } - - public ElisionTokenFilterDescriptor Articles(ICollection? articles) - { - ArticlesValue = articles; - return Self; - } - - public ElisionTokenFilterDescriptor ArticlesCase(bool? articlesCase = true) - { - ArticlesCaseValue = articlesCase; - return Self; - } - - public ElisionTokenFilterDescriptor ArticlesPath(string? articlesPath) - { - ArticlesPathValue = articlesPath; - return Self; - } - - public ElisionTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ArticlesValue is not null) - { - writer.WritePropertyName("articles"); - JsonSerializer.Serialize(writer, ArticlesValue, options); - } - - if (ArticlesCaseValue.HasValue) - { - writer.WritePropertyName("articles_case"); - writer.WriteBooleanValue(ArticlesCaseValue.Value); - } - - if (!string.IsNullOrEmpty(ArticlesPathValue)) - { - writer.WritePropertyName("articles_path"); - writer.WriteStringValue(ArticlesPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("elision"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - ElisionTokenFilter IBuildableDescriptor.Build() => new() - { - Articles = ArticlesValue, - ArticlesCase = ArticlesCaseValue, - ArticlesPath = ArticlesPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs deleted file mode 100644 index f7840444ac6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EnglishAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class EnglishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "english"; -} - -public sealed partial class EnglishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal EnglishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public EnglishAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public EnglishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public EnglishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public EnglishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("english"); - writer.WriteEndObject(); - } - - EnglishAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs deleted file mode 100644 index 33b4a41442b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/EstonianAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class EstonianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "estonian"; -} - -public sealed partial class EstonianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal EstonianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public EstonianAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public EstonianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public EstonianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("estonian"); - writer.WriteEndObject(); - } - - EstonianAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs deleted file mode 100644 index bb792973a82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs +++ /dev/null @@ -1,143 +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.Analysis; - -public sealed partial class FingerprintAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("max_output_size")] - public int MaxOutputSize { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool PreserveOriginal { get; set; } - [JsonInclude, JsonPropertyName("separator")] - public string Separator { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "fingerprint"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class FingerprintAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FingerprintAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public FingerprintAnalyzerDescriptor() : base() - { - } - - private int MaxOutputSizeValue { get; set; } - private bool PreserveOriginalValue { get; set; } - private string SeparatorValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - private string? VersionValue { get; set; } - - public FingerprintAnalyzerDescriptor MaxOutputSize(int maxOutputSize) - { - MaxOutputSizeValue = maxOutputSize; - return Self; - } - - public FingerprintAnalyzerDescriptor PreserveOriginal(bool preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public FingerprintAnalyzerDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - public FingerprintAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public FingerprintAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - public FingerprintAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("max_output_size"); - writer.WriteNumberValue(MaxOutputSizeValue); - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue); - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("fingerprint"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - FingerprintAnalyzer IBuildableDescriptor.Build() => new() - { - MaxOutputSize = MaxOutputSizeValue, - PreserveOriginal = PreserveOriginalValue, - Separator = SeparatorValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs deleted file mode 100644 index 561f46132d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class FingerprintTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("max_output_size")] - public int? MaxOutputSize { get; set; } - [JsonInclude, JsonPropertyName("separator")] - public string? Separator { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "fingerprint"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class FingerprintTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FingerprintTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public FingerprintTokenFilterDescriptor() : base() - { - } - - private int? MaxOutputSizeValue { get; set; } - private string? SeparatorValue { get; set; } - private string? VersionValue { get; set; } - - public FingerprintTokenFilterDescriptor MaxOutputSize(int? maxOutputSize) - { - MaxOutputSizeValue = maxOutputSize; - return Self; - } - - public FingerprintTokenFilterDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - public FingerprintTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxOutputSizeValue.HasValue) - { - writer.WritePropertyName("max_output_size"); - writer.WriteNumberValue(MaxOutputSizeValue.Value); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("fingerprint"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - FingerprintTokenFilter IBuildableDescriptor.Build() => new() - { - MaxOutputSize = MaxOutputSizeValue, - Separator = SeparatorValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs deleted file mode 100644 index ac99cc9a655..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FinnishAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class FinnishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "finnish"; -} - -public sealed partial class FinnishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FinnishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public FinnishAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public FinnishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public FinnishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public FinnishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("finnish"); - writer.WriteEndObject(); - } - - FinnishAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs deleted file mode 100644 index f24252dbd45..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/FrenchAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class FrenchAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "french"; -} - -public sealed partial class FrenchAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FrenchAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public FrenchAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public FrenchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public FrenchAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public FrenchAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("french"); - writer.WriteEndObject(); - } - - FrenchAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs deleted file mode 100644 index 7d2d6eb67b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GalicianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class GalicianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "galician"; -} - -public sealed partial class GalicianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal GalicianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public GalicianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public GalicianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public GalicianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public GalicianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("galician"); - writer.WriteEndObject(); - } - - GalicianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs deleted file mode 100644 index 3ac9153d3fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GermanAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class GermanAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "german"; -} - -public sealed partial class GermanAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal GermanAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public GermanAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public GermanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public GermanAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public GermanAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("german"); - writer.WriteEndObject(); - } - - GermanAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs deleted file mode 100644 index 2cdd8a4115a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/GreekAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class GreekAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "greek"; -} - -public sealed partial class GreekAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal GreekAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public GreekAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public GreekAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public GreekAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("greek"); - writer.WriteEndObject(); - } - - GreekAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs deleted file mode 100644 index 0e765e00b40..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HindiAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class HindiAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "hindi"; -} - -public sealed partial class HindiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HindiAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public HindiAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public HindiAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public HindiAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public HindiAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("hindi"); - writer.WriteEndObject(); - } - - HindiAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs deleted file mode 100644 index 30c38662283..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HtmlStripCharFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class HtmlStripCharFilter : ICharFilter -{ - [JsonInclude, JsonPropertyName("escaped_tags")] - public ICollection? EscapedTags { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "html_strip"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class HtmlStripCharFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HtmlStripCharFilterDescriptor(Action configure) => configure.Invoke(this); - - public HtmlStripCharFilterDescriptor() : base() - { - } - - private ICollection? EscapedTagsValue { get; set; } - private string? VersionValue { get; set; } - - public HtmlStripCharFilterDescriptor EscapedTags(ICollection? escapedTags) - { - EscapedTagsValue = escapedTags; - return Self; - } - - public HtmlStripCharFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EscapedTagsValue is not null) - { - writer.WritePropertyName("escaped_tags"); - JsonSerializer.Serialize(writer, EscapedTagsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("html_strip"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - HtmlStripCharFilter IBuildableDescriptor.Build() => new() - { - EscapedTags = EscapedTagsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs deleted file mode 100644 index a03ae71fec5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HungarianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class HungarianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "hungarian"; -} - -public sealed partial class HungarianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HungarianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public HungarianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public HungarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public HungarianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public HungarianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("hungarian"); - writer.WriteEndObject(); - } - - HungarianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HunspellTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HunspellTokenFilter.g.cs deleted file mode 100644 index ce185492e8c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HunspellTokenFilter.g.cs +++ /dev/null @@ -1,134 +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.Analysis; - -public sealed partial class HunspellTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("dedup")] - public bool? Dedup { get; set; } - [JsonInclude, JsonPropertyName("dictionary")] - public string? Dictionary { get; set; } - [JsonInclude, JsonPropertyName("locale")] - public string Locale { get; set; } - [JsonInclude, JsonPropertyName("longest_only")] - public bool? LongestOnly { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "hunspell"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class HunspellTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HunspellTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public HunspellTokenFilterDescriptor() : base() - { - } - - private bool? DedupValue { get; set; } - private string? DictionaryValue { get; set; } - private string LocaleValue { get; set; } - private bool? LongestOnlyValue { get; set; } - private string? VersionValue { get; set; } - - public HunspellTokenFilterDescriptor Dedup(bool? dedup = true) - { - DedupValue = dedup; - return Self; - } - - public HunspellTokenFilterDescriptor Dictionary(string? dictionary) - { - DictionaryValue = dictionary; - return Self; - } - - public HunspellTokenFilterDescriptor Locale(string locale) - { - LocaleValue = locale; - return Self; - } - - public HunspellTokenFilterDescriptor LongestOnly(bool? longestOnly = true) - { - LongestOnlyValue = longestOnly; - return Self; - } - - public HunspellTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DedupValue.HasValue) - { - writer.WritePropertyName("dedup"); - writer.WriteBooleanValue(DedupValue.Value); - } - - if (!string.IsNullOrEmpty(DictionaryValue)) - { - writer.WritePropertyName("dictionary"); - writer.WriteStringValue(DictionaryValue); - } - - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - if (LongestOnlyValue.HasValue) - { - writer.WritePropertyName("longest_only"); - writer.WriteBooleanValue(LongestOnlyValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("hunspell"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - HunspellTokenFilter IBuildableDescriptor.Build() => new() - { - Dedup = DedupValue, - Dictionary = DictionaryValue, - Locale = LocaleValue, - LongestOnly = LongestOnlyValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs deleted file mode 100644 index d1cc538b5a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs +++ /dev/null @@ -1,186 +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.Analysis; - -public sealed partial class HyphenationDecompounderTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("hyphenation_patterns_path")] - public string? HyphenationPatternsPath { get; set; } - [JsonInclude, JsonPropertyName("max_subword_size")] - public int? MaxSubwordSize { get; set; } - [JsonInclude, JsonPropertyName("min_subword_size")] - public int? MinSubwordSize { get; set; } - [JsonInclude, JsonPropertyName("min_word_size")] - public int? MinWordSize { get; set; } - [JsonInclude, JsonPropertyName("only_longest_match")] - public bool? OnlyLongestMatch { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "hyphenation_decompounder"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } - [JsonInclude, JsonPropertyName("word_list")] - public ICollection? WordList { get; set; } - [JsonInclude, JsonPropertyName("word_list_path")] - public string? WordListPath { get; set; } -} - -public sealed partial class HyphenationDecompounderTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HyphenationDecompounderTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public HyphenationDecompounderTokenFilterDescriptor() : base() - { - } - - private string? HyphenationPatternsPathValue { get; set; } - private int? MaxSubwordSizeValue { get; set; } - private int? MinSubwordSizeValue { get; set; } - private int? MinWordSizeValue { get; set; } - private bool? OnlyLongestMatchValue { get; set; } - private string? VersionValue { get; set; } - private ICollection? WordListValue { get; set; } - private string? WordListPathValue { get; set; } - - public HyphenationDecompounderTokenFilterDescriptor HyphenationPatternsPath(string? hyphenationPatternsPath) - { - HyphenationPatternsPathValue = hyphenationPatternsPath; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor MaxSubwordSize(int? maxSubwordSize) - { - MaxSubwordSizeValue = maxSubwordSize; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor MinSubwordSize(int? minSubwordSize) - { - MinSubwordSizeValue = minSubwordSize; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor MinWordSize(int? minWordSize) - { - MinWordSizeValue = minWordSize; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor OnlyLongestMatch(bool? onlyLongestMatch = true) - { - OnlyLongestMatchValue = onlyLongestMatch; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor WordList(ICollection? wordList) - { - WordListValue = wordList; - return Self; - } - - public HyphenationDecompounderTokenFilterDescriptor WordListPath(string? wordListPath) - { - WordListPathValue = wordListPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(HyphenationPatternsPathValue)) - { - writer.WritePropertyName("hyphenation_patterns_path"); - writer.WriteStringValue(HyphenationPatternsPathValue); - } - - if (MaxSubwordSizeValue.HasValue) - { - writer.WritePropertyName("max_subword_size"); - writer.WriteNumberValue(MaxSubwordSizeValue.Value); - } - - if (MinSubwordSizeValue.HasValue) - { - writer.WritePropertyName("min_subword_size"); - writer.WriteNumberValue(MinSubwordSizeValue.Value); - } - - if (MinWordSizeValue.HasValue) - { - writer.WritePropertyName("min_word_size"); - writer.WriteNumberValue(MinWordSizeValue.Value); - } - - if (OnlyLongestMatchValue.HasValue) - { - writer.WritePropertyName("only_longest_match"); - writer.WriteBooleanValue(OnlyLongestMatchValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("hyphenation_decompounder"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - if (WordListValue is not null) - { - writer.WritePropertyName("word_list"); - JsonSerializer.Serialize(writer, WordListValue, options); - } - - if (!string.IsNullOrEmpty(WordListPathValue)) - { - writer.WritePropertyName("word_list_path"); - writer.WriteStringValue(WordListPathValue); - } - - writer.WriteEndObject(); - } - - HyphenationDecompounderTokenFilter IBuildableDescriptor.Build() => new() - { - HyphenationPatternsPath = HyphenationPatternsPathValue, - MaxSubwordSize = MaxSubwordSizeValue, - MinSubwordSize = MinSubwordSizeValue, - MinWordSize = MinWordSizeValue, - OnlyLongestMatch = OnlyLongestMatchValue, - Version = VersionValue, - WordList = WordListValue, - WordListPath = WordListPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuAnalyzer.g.cs deleted file mode 100644 index 6742ebcd511..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuAnalyzer.g.cs +++ /dev/null @@ -1,81 +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.Analysis; - -public sealed partial class IcuAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("method")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType Method { get; set; } - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationMode Mode { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_analyzer"; -} - -public sealed partial class IcuAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public IcuAnalyzerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType MethodValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationMode ModeValue { get; set; } - - public IcuAnalyzerDescriptor Method(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType method) - { - MethodValue = method; - return Self; - } - - public IcuAnalyzerDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationMode mode) - { - ModeValue = mode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("method"); - JsonSerializer.Serialize(writer, MethodValue, options); - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_analyzer"); - writer.WriteEndObject(); - } - - IcuAnalyzer IBuildableDescriptor.Build() => new() - { - Method = MethodValue, - Mode = ModeValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs deleted file mode 100644 index 2848f5d0609..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuCollationTokenFilter.g.cs +++ /dev/null @@ -1,266 +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.Analysis; - -public sealed partial class IcuCollationTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("alternate")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? Alternate { get; set; } - [JsonInclude, JsonPropertyName("case_first")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirst { get; set; } - [JsonInclude, JsonPropertyName("case_level")] - public bool? CaseLevel { get; set; } - [JsonInclude, JsonPropertyName("country")] - public string? Country { get; set; } - [JsonInclude, JsonPropertyName("decomposition")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? Decomposition { get; set; } - [JsonInclude, JsonPropertyName("hiragana_quaternary_mode")] - public bool? HiraganaQuaternaryMode { get; set; } - [JsonInclude, JsonPropertyName("language")] - public string? Language { get; set; } - [JsonInclude, JsonPropertyName("numeric")] - public bool? Numeric { get; set; } - [JsonInclude, JsonPropertyName("rules")] - public string? Rules { get; set; } - [JsonInclude, JsonPropertyName("strength")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? Strength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_collation"; - - [JsonInclude, JsonPropertyName("variable_top")] - public string? VariableTop { get; set; } - [JsonInclude, JsonPropertyName("variant")] - public string? Variant { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class IcuCollationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuCollationTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public IcuCollationTokenFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? AlternateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirstValue { get; set; } - private bool? CaseLevelValue { get; set; } - private string? CountryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? DecompositionValue { get; set; } - private bool? HiraganaQuaternaryModeValue { get; set; } - private string? LanguageValue { get; set; } - private bool? NumericValue { get; set; } - private string? RulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? StrengthValue { get; set; } - private string? VariableTopValue { get; set; } - private string? VariantValue { get; set; } - private string? VersionValue { get; set; } - - public IcuCollationTokenFilterDescriptor Alternate(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? alternate) - { - AlternateValue = alternate; - return Self; - } - - public IcuCollationTokenFilterDescriptor CaseFirst(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? caseFirst) - { - CaseFirstValue = caseFirst; - return Self; - } - - public IcuCollationTokenFilterDescriptor CaseLevel(bool? caseLevel = true) - { - CaseLevelValue = caseLevel; - return Self; - } - - public IcuCollationTokenFilterDescriptor Country(string? country) - { - CountryValue = country; - return Self; - } - - public IcuCollationTokenFilterDescriptor Decomposition(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? decomposition) - { - DecompositionValue = decomposition; - return Self; - } - - public IcuCollationTokenFilterDescriptor HiraganaQuaternaryMode(bool? hiraganaQuaternaryMode = true) - { - HiraganaQuaternaryModeValue = hiraganaQuaternaryMode; - return Self; - } - - public IcuCollationTokenFilterDescriptor Language(string? language) - { - LanguageValue = language; - return Self; - } - - public IcuCollationTokenFilterDescriptor Numeric(bool? numeric = true) - { - NumericValue = numeric; - return Self; - } - - public IcuCollationTokenFilterDescriptor Rules(string? rules) - { - RulesValue = rules; - return Self; - } - - public IcuCollationTokenFilterDescriptor Strength(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? strength) - { - StrengthValue = strength; - return Self; - } - - public IcuCollationTokenFilterDescriptor VariableTop(string? variableTop) - { - VariableTopValue = variableTop; - return Self; - } - - public IcuCollationTokenFilterDescriptor Variant(string? variant) - { - VariantValue = variant; - return Self; - } - - public IcuCollationTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlternateValue is not null) - { - writer.WritePropertyName("alternate"); - JsonSerializer.Serialize(writer, AlternateValue, options); - } - - if (CaseFirstValue is not null) - { - writer.WritePropertyName("case_first"); - JsonSerializer.Serialize(writer, CaseFirstValue, options); - } - - if (CaseLevelValue.HasValue) - { - writer.WritePropertyName("case_level"); - writer.WriteBooleanValue(CaseLevelValue.Value); - } - - if (!string.IsNullOrEmpty(CountryValue)) - { - writer.WritePropertyName("country"); - writer.WriteStringValue(CountryValue); - } - - if (DecompositionValue is not null) - { - writer.WritePropertyName("decomposition"); - JsonSerializer.Serialize(writer, DecompositionValue, options); - } - - if (HiraganaQuaternaryModeValue.HasValue) - { - writer.WritePropertyName("hiragana_quaternary_mode"); - writer.WriteBooleanValue(HiraganaQuaternaryModeValue.Value); - } - - if (!string.IsNullOrEmpty(LanguageValue)) - { - writer.WritePropertyName("language"); - writer.WriteStringValue(LanguageValue); - } - - if (NumericValue.HasValue) - { - writer.WritePropertyName("numeric"); - writer.WriteBooleanValue(NumericValue.Value); - } - - if (!string.IsNullOrEmpty(RulesValue)) - { - writer.WritePropertyName("rules"); - writer.WriteStringValue(RulesValue); - } - - if (StrengthValue is not null) - { - writer.WritePropertyName("strength"); - JsonSerializer.Serialize(writer, StrengthValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_collation"); - if (!string.IsNullOrEmpty(VariableTopValue)) - { - writer.WritePropertyName("variable_top"); - writer.WriteStringValue(VariableTopValue); - } - - if (!string.IsNullOrEmpty(VariantValue)) - { - writer.WritePropertyName("variant"); - writer.WriteStringValue(VariantValue); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - IcuCollationTokenFilter IBuildableDescriptor.Build() => new() - { - Alternate = AlternateValue, - CaseFirst = CaseFirstValue, - CaseLevel = CaseLevelValue, - Country = CountryValue, - Decomposition = DecompositionValue, - HiraganaQuaternaryMode = HiraganaQuaternaryModeValue, - Language = LanguageValue, - Numeric = NumericValue, - Rules = RulesValue, - Strength = StrengthValue, - VariableTop = VariableTopValue, - Variant = VariantValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs deleted file mode 100644 index 27a6a58e860..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuFoldingTokenFilter.g.cs +++ /dev/null @@ -1,85 +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.Analysis; - -public sealed partial class IcuFoldingTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_folding"; - - [JsonInclude, JsonPropertyName("unicode_set_filter")] - public string UnicodeSetFilter { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class IcuFoldingTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuFoldingTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public IcuFoldingTokenFilterDescriptor() : base() - { - } - - private string UnicodeSetFilterValue { get; set; } - private string? VersionValue { get; set; } - - public IcuFoldingTokenFilterDescriptor UnicodeSetFilter(string unicodeSetFilter) - { - UnicodeSetFilterValue = unicodeSetFilter; - return Self; - } - - public IcuFoldingTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_folding"); - writer.WritePropertyName("unicode_set_filter"); - writer.WriteStringValue(UnicodeSetFilterValue); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - IcuFoldingTokenFilter IBuildableDescriptor.Build() => new() - { - UnicodeSetFilter = UnicodeSetFilterValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs deleted file mode 100644 index 9ede316676f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class IcuNormalizationCharFilter : ICharFilter -{ - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationMode? Mode { get; set; } - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType? Name { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_normalizer"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class IcuNormalizationCharFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuNormalizationCharFilterDescriptor(Action configure) => configure.Invoke(this); - - public IcuNormalizationCharFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationMode? ModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType? NameValue { get; set; } - private string? VersionValue { get; set; } - - public IcuNormalizationCharFilterDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationMode? mode) - { - ModeValue = mode; - return Self; - } - - public IcuNormalizationCharFilterDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType? name) - { - NameValue = name; - return Self; - } - - public IcuNormalizationCharFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_normalizer"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - IcuNormalizationCharFilter IBuildableDescriptor.Build() => new() - { - Mode = ModeValue, - Name = NameValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs deleted file mode 100644 index c2fb98d7225..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuNormalizationTokenFilter.g.cs +++ /dev/null @@ -1,86 +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.Analysis; - -public sealed partial class IcuNormalizationTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType Name { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_normalizer"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class IcuNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public IcuNormalizationTokenFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType NameValue { get; set; } - private string? VersionValue { get; set; } - - public IcuNormalizationTokenFilterDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationType name) - { - NameValue = name; - return Self; - } - - public IcuNormalizationTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_normalizer"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - IcuNormalizationTokenFilter IBuildableDescriptor.Build() => new() - { - Name = NameValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTokenizer.g.cs deleted file mode 100644 index 2d8c8fa600c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTokenizer.g.cs +++ /dev/null @@ -1,86 +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.Analysis; - -public sealed partial class IcuTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("rule_files")] - public string RuleFiles { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_tokenizer"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class IcuTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public IcuTokenizerDescriptor() : base() - { - } - - private string RuleFilesValue { get; set; } - private string? VersionValue { get; set; } - - public IcuTokenizerDescriptor RuleFiles(string ruleFiles) - { - RuleFilesValue = ruleFiles; - return Self; - } - - public IcuTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("rule_files"); - writer.WriteStringValue(RuleFilesValue); - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_tokenizer"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - IcuTokenizer IBuildableDescriptor.Build() => new() - { - RuleFiles = RuleFilesValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs deleted file mode 100644 index 7129fd84a9e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IcuTransformTokenFilter.g.cs +++ /dev/null @@ -1,102 +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.Analysis; - -public sealed partial class IcuTransformTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("dir")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuTransformDirection? Dir { get; set; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_transform"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class IcuTransformTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuTransformTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public IcuTransformTokenFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuTransformDirection? DirValue { get; set; } - private string IdValue { get; set; } - private string? VersionValue { get; set; } - - public IcuTransformTokenFilterDescriptor Dir(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuTransformDirection? dir) - { - DirValue = dir; - return Self; - } - - public IcuTransformTokenFilterDescriptor Id(string id) - { - IdValue = id; - return Self; - } - - public IcuTransformTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DirValue is not null) - { - writer.WritePropertyName("dir"); - JsonSerializer.Serialize(writer, DirValue, options); - } - - writer.WritePropertyName("id"); - writer.WriteStringValue(IdValue); - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_transform"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - IcuTransformTokenFilter IBuildableDescriptor.Build() => new() - { - Dir = DirValue, - Id = IdValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs deleted file mode 100644 index 2d51e30cdad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class IndonesianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "indonesian"; -} - -public sealed partial class IndonesianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IndonesianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public IndonesianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public IndonesianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public IndonesianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public IndonesianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("indonesian"); - writer.WriteEndObject(); - } - - IndonesianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs deleted file mode 100644 index bc0b931d3ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/IrishAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class IrishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "irish"; -} - -public sealed partial class IrishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IrishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public IrishAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public IrishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public IrishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public IrishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("irish"); - writer.WriteEndObject(); - } - - IrishAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs deleted file mode 100644 index 6f27eb0afdf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ItalianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class ItalianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "italian"; -} - -public sealed partial class ItalianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ItalianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public ItalianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public ItalianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public ItalianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public ItalianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("italian"); - writer.WriteEndObject(); - } - - ItalianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KStemTokenFilter.g.cs deleted file mode 100644 index 2376fc024de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KStemTokenFilter.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class KStemTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "kstem"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KStemTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KStemTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KStemTokenFilterDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public KStemTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("kstem"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KStemTokenFilter IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs deleted file mode 100644 index b46fb678f59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class KeepTypesTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.KeepTypesMode? Mode { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "keep_types"; - - [JsonInclude, JsonPropertyName("types")] - public ICollection? Types { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KeepTypesTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KeepTypesTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KeepTypesTokenFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.KeepTypesMode? ModeValue { get; set; } - private ICollection? TypesValue { get; set; } - private string? VersionValue { get; set; } - - public KeepTypesTokenFilterDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeepTypesMode? mode) - { - ModeValue = mode; - return Self; - } - - public KeepTypesTokenFilterDescriptor Types(ICollection? types) - { - TypesValue = types; - return Self; - } - - public KeepTypesTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("keep_types"); - if (TypesValue is not null) - { - writer.WritePropertyName("types"); - JsonSerializer.Serialize(writer, TypesValue, options); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KeepTypesTokenFilter IBuildableDescriptor.Build() => new() - { - Mode = ModeValue, - Types = TypesValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs deleted file mode 100644 index e7d52565bd8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs +++ /dev/null @@ -1,122 +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.Analysis; - -public sealed partial class KeepWordsTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("keep_words")] - public ICollection? KeepWords { get; set; } - [JsonInclude, JsonPropertyName("keep_words_case")] - public bool? KeepWordsCase { get; set; } - [JsonInclude, JsonPropertyName("keep_words_path")] - public string? KeepWordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "keep"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KeepWordsTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KeepWordsTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KeepWordsTokenFilterDescriptor() : base() - { - } - - private ICollection? KeepWordsValue { get; set; } - private bool? KeepWordsCaseValue { get; set; } - private string? KeepWordsPathValue { get; set; } - private string? VersionValue { get; set; } - - public KeepWordsTokenFilterDescriptor KeepWords(ICollection? keepWords) - { - KeepWordsValue = keepWords; - return Self; - } - - public KeepWordsTokenFilterDescriptor KeepWordsCase(bool? keepWordsCase = true) - { - KeepWordsCaseValue = keepWordsCase; - return Self; - } - - public KeepWordsTokenFilterDescriptor KeepWordsPath(string? keepWordsPath) - { - KeepWordsPathValue = keepWordsPath; - return Self; - } - - public KeepWordsTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (KeepWordsValue is not null) - { - writer.WritePropertyName("keep_words"); - JsonSerializer.Serialize(writer, KeepWordsValue, options); - } - - if (KeepWordsCaseValue.HasValue) - { - writer.WritePropertyName("keep_words_case"); - writer.WriteBooleanValue(KeepWordsCaseValue.Value); - } - - if (!string.IsNullOrEmpty(KeepWordsPathValue)) - { - writer.WritePropertyName("keep_words_path"); - writer.WriteStringValue(KeepWordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("keep"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KeepWordsTokenFilter IBuildableDescriptor.Build() => new() - { - KeepWords = KeepWordsValue, - KeepWordsCase = KeepWordsCaseValue, - KeepWordsPath = KeepWordsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordAnalyzer.g.cs deleted file mode 100644 index f282054e4e9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordAnalyzer.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class KeywordAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "keyword"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KeywordAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KeywordAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public KeywordAnalyzerDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public KeywordAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("keyword"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KeywordAnalyzer IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs deleted file mode 100644 index 63c98e51412..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs +++ /dev/null @@ -1,139 +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.Analysis; - -public sealed partial class KeywordMarkerTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("ignore_case")] - public bool? IgnoreCase { get; set; } - [JsonInclude, JsonPropertyName("keywords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Keywords { get; set; } - [JsonInclude, JsonPropertyName("keywords_path")] - public string? KeywordsPath { get; set; } - [JsonInclude, JsonPropertyName("keywords_pattern")] - public string? KeywordsPattern { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "keyword_marker"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KeywordMarkerTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KeywordMarkerTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KeywordMarkerTokenFilterDescriptor() : base() - { - } - - private bool? IgnoreCaseValue { get; set; } - private ICollection? KeywordsValue { get; set; } - private string? KeywordsPathValue { get; set; } - private string? KeywordsPatternValue { get; set; } - private string? VersionValue { get; set; } - - public KeywordMarkerTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) - { - IgnoreCaseValue = ignoreCase; - return Self; - } - - public KeywordMarkerTokenFilterDescriptor Keywords(ICollection? keywords) - { - KeywordsValue = keywords; - return Self; - } - - public KeywordMarkerTokenFilterDescriptor KeywordsPath(string? keywordsPath) - { - KeywordsPathValue = keywordsPath; - return Self; - } - - public KeywordMarkerTokenFilterDescriptor KeywordsPattern(string? keywordsPattern) - { - KeywordsPatternValue = keywordsPattern; - return Self; - } - - public KeywordMarkerTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IgnoreCaseValue.HasValue) - { - writer.WritePropertyName("ignore_case"); - writer.WriteBooleanValue(IgnoreCaseValue.Value); - } - - if (KeywordsValue is not null) - { - writer.WritePropertyName("keywords"); - SingleOrManySerializationHelper.Serialize(KeywordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(KeywordsPathValue)) - { - writer.WritePropertyName("keywords_path"); - writer.WriteStringValue(KeywordsPathValue); - } - - if (!string.IsNullOrEmpty(KeywordsPatternValue)) - { - writer.WritePropertyName("keywords_pattern"); - writer.WriteStringValue(KeywordsPatternValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("keyword_marker"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KeywordMarkerTokenFilter IBuildableDescriptor.Build() => new() - { - IgnoreCase = IgnoreCaseValue, - Keywords = KeywordsValue, - KeywordsPath = KeywordsPathValue, - KeywordsPattern = KeywordsPatternValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs deleted file mode 100644 index 379e6bdb7e9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KeywordTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class KeywordTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("buffer_size")] - public int? BufferSize { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "keyword"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KeywordTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KeywordTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public KeywordTokenizerDescriptor() : base() - { - } - - private int? BufferSizeValue { get; set; } - private string? VersionValue { get; set; } - - public KeywordTokenizerDescriptor BufferSize(int? bufferSize) - { - BufferSizeValue = bufferSize; - return Self; - } - - public KeywordTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BufferSizeValue.HasValue) - { - writer.WritePropertyName("buffer_size"); - writer.WriteNumberValue(BufferSizeValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("keyword"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KeywordTokenizer IBuildableDescriptor.Build() => new() - { - BufferSize = BufferSizeValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs deleted file mode 100644 index 1b2c9c03bc6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiAnalyzer.g.cs +++ /dev/null @@ -1,86 +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.Analysis; - -public sealed partial class KuromojiAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizationMode Mode { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "kuromoji"; - - [JsonInclude, JsonPropertyName("user_dictionary")] - public string? UserDictionary { get; set; } -} - -public sealed partial class KuromojiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KuromojiAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public KuromojiAnalyzerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizationMode ModeValue { get; set; } - private string? UserDictionaryValue { get; set; } - - public KuromojiAnalyzerDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizationMode mode) - { - ModeValue = mode; - return Self; - } - - public KuromojiAnalyzerDescriptor UserDictionary(string? userDictionary) - { - UserDictionaryValue = userDictionary; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("kuromoji"); - if (!string.IsNullOrEmpty(UserDictionaryValue)) - { - writer.WritePropertyName("user_dictionary"); - writer.WriteStringValue(UserDictionaryValue); - } - - writer.WriteEndObject(); - } - - KuromojiAnalyzer IBuildableDescriptor.Build() => new() - { - Mode = ModeValue, - UserDictionary = UserDictionaryValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs deleted file mode 100644 index 5ac4881c869..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiIterationMarkCharFilter.g.cs +++ /dev/null @@ -1,98 +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.Analysis; - -public sealed partial class KuromojiIterationMarkCharFilter : ICharFilter -{ - [JsonInclude, JsonPropertyName("normalize_kana")] - public bool NormalizeKana { get; set; } - [JsonInclude, JsonPropertyName("normalize_kanji")] - public bool NormalizeKanji { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "kuromoji_iteration_mark"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KuromojiIterationMarkCharFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KuromojiIterationMarkCharFilterDescriptor(Action configure) => configure.Invoke(this); - - public KuromojiIterationMarkCharFilterDescriptor() : base() - { - } - - private bool NormalizeKanaValue { get; set; } - private bool NormalizeKanjiValue { get; set; } - private string? VersionValue { get; set; } - - public KuromojiIterationMarkCharFilterDescriptor NormalizeKana(bool normalizeKana = true) - { - NormalizeKanaValue = normalizeKana; - return Self; - } - - public KuromojiIterationMarkCharFilterDescriptor NormalizeKanji(bool normalizeKanji = true) - { - NormalizeKanjiValue = normalizeKanji; - return Self; - } - - public KuromojiIterationMarkCharFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("normalize_kana"); - writer.WriteBooleanValue(NormalizeKanaValue); - writer.WritePropertyName("normalize_kanji"); - writer.WriteBooleanValue(NormalizeKanjiValue); - writer.WritePropertyName("type"); - writer.WriteStringValue("kuromoji_iteration_mark"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KuromojiIterationMarkCharFilter IBuildableDescriptor.Build() => new() - { - NormalizeKana = NormalizeKanaValue, - NormalizeKanji = NormalizeKanjiValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs deleted file mode 100644 index d80b03e1473..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs +++ /dev/null @@ -1,86 +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.Analysis; - -public sealed partial class KuromojiPartOfSpeechTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("stoptags")] - public ICollection Stoptags { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "kuromoji_part_of_speech"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KuromojiPartOfSpeechTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KuromojiPartOfSpeechTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KuromojiPartOfSpeechTokenFilterDescriptor() : base() - { - } - - private ICollection StoptagsValue { get; set; } - private string? VersionValue { get; set; } - - public KuromojiPartOfSpeechTokenFilterDescriptor Stoptags(ICollection stoptags) - { - StoptagsValue = stoptags; - return Self; - } - - public KuromojiPartOfSpeechTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("stoptags"); - JsonSerializer.Serialize(writer, StoptagsValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("kuromoji_part_of_speech"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KuromojiPartOfSpeechTokenFilter IBuildableDescriptor.Build() => new() - { - Stoptags = StoptagsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs deleted file mode 100644 index a4ca5c9623a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiReadingFormTokenFilter.g.cs +++ /dev/null @@ -1,85 +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.Analysis; - -public sealed partial class KuromojiReadingFormTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "kuromoji_readingform"; - - [JsonInclude, JsonPropertyName("use_romaji")] - public bool UseRomaji { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KuromojiReadingFormTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KuromojiReadingFormTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KuromojiReadingFormTokenFilterDescriptor() : base() - { - } - - private bool UseRomajiValue { get; set; } - private string? VersionValue { get; set; } - - public KuromojiReadingFormTokenFilterDescriptor UseRomaji(bool useRomaji = true) - { - UseRomajiValue = useRomaji; - return Self; - } - - public KuromojiReadingFormTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("kuromoji_readingform"); - writer.WritePropertyName("use_romaji"); - writer.WriteBooleanValue(UseRomajiValue); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KuromojiReadingFormTokenFilter IBuildableDescriptor.Build() => new() - { - UseRomaji = UseRomajiValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs deleted file mode 100644 index 21b6ac2b863..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiStemmerTokenFilter.g.cs +++ /dev/null @@ -1,86 +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.Analysis; - -public sealed partial class KuromojiStemmerTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("minimum_length")] - public int MinimumLength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "kuromoji_stemmer"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KuromojiStemmerTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KuromojiStemmerTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public KuromojiStemmerTokenFilterDescriptor() : base() - { - } - - private int MinimumLengthValue { get; set; } - private string? VersionValue { get; set; } - - public KuromojiStemmerTokenFilterDescriptor MinimumLength(int minimumLength) - { - MinimumLengthValue = minimumLength; - return Self; - } - - public KuromojiStemmerTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("minimum_length"); - writer.WriteNumberValue(MinimumLengthValue); - writer.WritePropertyName("type"); - writer.WriteStringValue("kuromoji_stemmer"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KuromojiStemmerTokenFilter IBuildableDescriptor.Build() => new() - { - MinimumLength = MinimumLengthValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiTokenizer.g.cs deleted file mode 100644 index 457d5130d68..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/KuromojiTokenizer.g.cs +++ /dev/null @@ -1,182 +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.Analysis; - -public sealed partial class KuromojiTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("discard_compound_token")] - public bool? DiscardCompoundToken { get; set; } - [JsonInclude, JsonPropertyName("discard_punctuation")] - public bool? DiscardPunctuation { get; set; } - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizationMode Mode { get; set; } - [JsonInclude, JsonPropertyName("nbest_cost")] - public int? NbestCost { get; set; } - [JsonInclude, JsonPropertyName("nbest_examples")] - public string? NbestExamples { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "kuromoji_tokenizer"; - - [JsonInclude, JsonPropertyName("user_dictionary")] - public string? UserDictionary { get; set; } - [JsonInclude, JsonPropertyName("user_dictionary_rules")] - public ICollection? UserDictionaryRules { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class KuromojiTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KuromojiTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public KuromojiTokenizerDescriptor() : base() - { - } - - private bool? DiscardCompoundTokenValue { get; set; } - private bool? DiscardPunctuationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizationMode ModeValue { get; set; } - private int? NbestCostValue { get; set; } - private string? NbestExamplesValue { get; set; } - private string? UserDictionaryValue { get; set; } - private ICollection? UserDictionaryRulesValue { get; set; } - private string? VersionValue { get; set; } - - public KuromojiTokenizerDescriptor DiscardCompoundToken(bool? discardCompoundToken = true) - { - DiscardCompoundTokenValue = discardCompoundToken; - return Self; - } - - public KuromojiTokenizerDescriptor DiscardPunctuation(bool? discardPunctuation = true) - { - DiscardPunctuationValue = discardPunctuation; - return Self; - } - - public KuromojiTokenizerDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizationMode mode) - { - ModeValue = mode; - return Self; - } - - public KuromojiTokenizerDescriptor NbestCost(int? nbestCost) - { - NbestCostValue = nbestCost; - return Self; - } - - public KuromojiTokenizerDescriptor NbestExamples(string? nbestExamples) - { - NbestExamplesValue = nbestExamples; - return Self; - } - - public KuromojiTokenizerDescriptor UserDictionary(string? userDictionary) - { - UserDictionaryValue = userDictionary; - return Self; - } - - public KuromojiTokenizerDescriptor UserDictionaryRules(ICollection? userDictionaryRules) - { - UserDictionaryRulesValue = userDictionaryRules; - return Self; - } - - public KuromojiTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DiscardCompoundTokenValue.HasValue) - { - writer.WritePropertyName("discard_compound_token"); - writer.WriteBooleanValue(DiscardCompoundTokenValue.Value); - } - - if (DiscardPunctuationValue.HasValue) - { - writer.WritePropertyName("discard_punctuation"); - writer.WriteBooleanValue(DiscardPunctuationValue.Value); - } - - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - if (NbestCostValue.HasValue) - { - writer.WritePropertyName("nbest_cost"); - writer.WriteNumberValue(NbestCostValue.Value); - } - - if (!string.IsNullOrEmpty(NbestExamplesValue)) - { - writer.WritePropertyName("nbest_examples"); - writer.WriteStringValue(NbestExamplesValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("kuromoji_tokenizer"); - if (!string.IsNullOrEmpty(UserDictionaryValue)) - { - writer.WritePropertyName("user_dictionary"); - writer.WriteStringValue(UserDictionaryValue); - } - - if (UserDictionaryRulesValue is not null) - { - writer.WritePropertyName("user_dictionary_rules"); - JsonSerializer.Serialize(writer, UserDictionaryRulesValue, options); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - KuromojiTokenizer IBuildableDescriptor.Build() => new() - { - DiscardCompoundToken = DiscardCompoundTokenValue, - DiscardPunctuation = DiscardPunctuationValue, - Mode = ModeValue, - NbestCost = NbestCostValue, - NbestExamples = NbestExamplesValue, - UserDictionary = UserDictionaryValue, - UserDictionaryRules = UserDictionaryRulesValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LanguageAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LanguageAnalyzer.g.cs deleted file mode 100644 index 0728851d857..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LanguageAnalyzer.g.cs +++ /dev/null @@ -1,131 +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.Analysis; - -public sealed partial class LanguageAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("language")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.Language Language { get; set; } - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "language"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LanguageAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LanguageAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public LanguageAnalyzerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.Language LanguageValue { get; set; } - private ICollection StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - private string? VersionValue { get; set; } - - public LanguageAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Serverless.Analysis.Language language) - { - LanguageValue = language; - return Self; - } - - public LanguageAnalyzerDescriptor StemExclusion(ICollection stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public LanguageAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public LanguageAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - public LanguageAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("language"); - JsonSerializer.Serialize(writer, LanguageValue, options); - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("language"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LanguageAnalyzer IBuildableDescriptor.Build() => new() - { - Language = LanguageValue, - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs deleted file mode 100644 index a14c5062cbb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LatvianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class LatvianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "latvian"; -} - -public sealed partial class LatvianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LatvianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public LatvianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public LatvianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public LatvianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public LatvianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("latvian"); - writer.WriteEndObject(); - } - - LatvianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LengthTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LengthTokenFilter.g.cs deleted file mode 100644 index 65ffaf5e8b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LengthTokenFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class LengthTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("max")] - public int? Max { get; set; } - [JsonInclude, JsonPropertyName("min")] - public int? Min { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "length"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LengthTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LengthTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public LengthTokenFilterDescriptor() : base() - { - } - - private int? MaxValue { get; set; } - private int? MinValue { get; set; } - private string? VersionValue { get; set; } - - public LengthTokenFilterDescriptor Max(int? max) - { - MaxValue = max; - return Self; - } - - public LengthTokenFilterDescriptor Min(int? min) - { - MinValue = min; - return Self; - } - - public LengthTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxValue.HasValue) - { - writer.WritePropertyName("max"); - writer.WriteNumberValue(MaxValue.Value); - } - - if (MinValue.HasValue) - { - writer.WritePropertyName("min"); - writer.WriteNumberValue(MinValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("length"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LengthTokenFilter IBuildableDescriptor.Build() => new() - { - Max = MaxValue, - Min = MinValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LetterTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LetterTokenizer.g.cs deleted file mode 100644 index 691c49bcf0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LetterTokenizer.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class LetterTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "letter"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LetterTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LetterTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public LetterTokenizerDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public LetterTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("letter"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LetterTokenizer IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs deleted file mode 100644 index 7d343f99696..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class LimitTokenCountTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("consume_all_tokens")] - public bool? ConsumeAllTokens { get; set; } - [JsonInclude, JsonPropertyName("max_token_count")] - public int? MaxTokenCount { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "limit"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LimitTokenCountTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LimitTokenCountTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public LimitTokenCountTokenFilterDescriptor() : base() - { - } - - private bool? ConsumeAllTokensValue { get; set; } - private int? MaxTokenCountValue { get; set; } - private string? VersionValue { get; set; } - - public LimitTokenCountTokenFilterDescriptor ConsumeAllTokens(bool? consumeAllTokens = true) - { - ConsumeAllTokensValue = consumeAllTokens; - return Self; - } - - public LimitTokenCountTokenFilterDescriptor MaxTokenCount(int? maxTokenCount) - { - MaxTokenCountValue = maxTokenCount; - return Self; - } - - public LimitTokenCountTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConsumeAllTokensValue.HasValue) - { - writer.WritePropertyName("consume_all_tokens"); - writer.WriteBooleanValue(ConsumeAllTokensValue.Value); - } - - if (MaxTokenCountValue.HasValue) - { - writer.WritePropertyName("max_token_count"); - writer.WriteNumberValue(MaxTokenCountValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("limit"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LimitTokenCountTokenFilter IBuildableDescriptor.Build() => new() - { - ConsumeAllTokens = ConsumeAllTokensValue, - MaxTokenCount = MaxTokenCountValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs deleted file mode 100644 index b676f04e394..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class LithuanianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "lithuanian"; -} - -public sealed partial class LithuanianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LithuanianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public LithuanianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public LithuanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public LithuanianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public LithuanianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("lithuanian"); - writer.WriteEndObject(); - } - - LithuanianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseNormalizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseNormalizer.g.cs deleted file mode 100644 index 91e6d9b7986..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseNormalizer.g.cs +++ /dev/null @@ -1,55 +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.Analysis; - -public sealed partial class LowercaseNormalizer : INormalizer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "lowercase"; -} - -public sealed partial class LowercaseNormalizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LowercaseNormalizerDescriptor(Action configure) => configure.Invoke(this); - - public LowercaseNormalizerDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("lowercase"); - writer.WriteEndObject(); - } - - LowercaseNormalizer IBuildableDescriptor.Build() => new() - { - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs deleted file mode 100644 index 3dc48eb8e5d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class LowercaseTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("language")] - public string? Language { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "lowercase"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LowercaseTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LowercaseTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public LowercaseTokenFilterDescriptor() : base() - { - } - - private string? LanguageValue { get; set; } - private string? VersionValue { get; set; } - - public LowercaseTokenFilterDescriptor Language(string? language) - { - LanguageValue = language; - return Self; - } - - public LowercaseTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(LanguageValue)) - { - writer.WritePropertyName("language"); - writer.WriteStringValue(LanguageValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("lowercase"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LowercaseTokenFilter IBuildableDescriptor.Build() => new() - { - Language = LanguageValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenizer.g.cs deleted file mode 100644 index 641bce2dcbe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/LowercaseTokenizer.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class LowercaseTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "lowercase"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LowercaseTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LowercaseTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public LowercaseTokenizerDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public LowercaseTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("lowercase"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LowercaseTokenizer IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MappingCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MappingCharFilter.g.cs deleted file mode 100644 index 7073013bdda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MappingCharFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class MappingCharFilter : ICharFilter -{ - [JsonInclude, JsonPropertyName("mappings")] - public ICollection? Mappings { get; set; } - [JsonInclude, JsonPropertyName("mappings_path")] - public string? MappingsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "mapping"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class MappingCharFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal MappingCharFilterDescriptor(Action configure) => configure.Invoke(this); - - public MappingCharFilterDescriptor() : base() - { - } - - private ICollection? MappingsValue { get; set; } - private string? MappingsPathValue { get; set; } - private string? VersionValue { get; set; } - - public MappingCharFilterDescriptor Mappings(ICollection? mappings) - { - MappingsValue = mappings; - return Self; - } - - public MappingCharFilterDescriptor MappingsPath(string? mappingsPath) - { - MappingsPathValue = mappingsPath; - return Self; - } - - public MappingCharFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (!string.IsNullOrEmpty(MappingsPathValue)) - { - writer.WritePropertyName("mappings_path"); - writer.WriteStringValue(MappingsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("mapping"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - MappingCharFilter IBuildableDescriptor.Build() => new() - { - Mappings = MappingsValue, - MappingsPath = MappingsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs deleted file mode 100644 index 7eeccd15ac6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs +++ /dev/null @@ -1,102 +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.Analysis; - -public sealed partial class MultiplexerTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("filters")] - public ICollection Filters { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "multiplexer"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class MultiplexerTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal MultiplexerTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public MultiplexerTokenFilterDescriptor() : base() - { - } - - private ICollection FiltersValue { get; set; } - private bool? PreserveOriginalValue { get; set; } - private string? VersionValue { get; set; } - - public MultiplexerTokenFilterDescriptor Filters(ICollection filters) - { - FiltersValue = filters; - return Self; - } - - public MultiplexerTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public MultiplexerTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("multiplexer"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - MultiplexerTokenFilter IBuildableDescriptor.Build() => new() - { - Filters = FiltersValue, - PreserveOriginal = PreserveOriginalValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenFilter.g.cs deleted file mode 100644 index d1448a4b4b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenFilter.g.cs +++ /dev/null @@ -1,122 +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.Analysis; - -public sealed partial class NGramTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("max_gram")] - public int? MaxGram { get; set; } - [JsonInclude, JsonPropertyName("min_gram")] - public int? MinGram { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "ngram"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class NGramTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NGramTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public NGramTokenFilterDescriptor() : base() - { - } - - private int? MaxGramValue { get; set; } - private int? MinGramValue { get; set; } - private bool? PreserveOriginalValue { get; set; } - private string? VersionValue { get; set; } - - public NGramTokenFilterDescriptor MaxGram(int? maxGram) - { - MaxGramValue = maxGram; - return Self; - } - - public NGramTokenFilterDescriptor MinGram(int? minGram) - { - MinGramValue = minGram; - return Self; - } - - public NGramTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public NGramTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxGramValue.HasValue) - { - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue.Value); - } - - if (MinGramValue.HasValue) - { - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue.Value); - } - - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("ngram"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - NGramTokenFilter IBuildableDescriptor.Build() => new() - { - MaxGram = MaxGramValue, - MinGram = MinGramValue, - PreserveOriginal = PreserveOriginalValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs deleted file mode 100644 index d0fddb79b9b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ /dev/null @@ -1,138 +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.Analysis; - -public sealed partial class NGramTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("custom_token_chars")] - public string? CustomTokenChars { get; set; } - [JsonInclude, JsonPropertyName("max_gram")] - public int? MaxGram { get; set; } - [JsonInclude, JsonPropertyName("min_gram")] - public int? MinGram { get; set; } - [JsonInclude, JsonPropertyName("token_chars")] - public ICollection? TokenChars { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "ngram"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class NGramTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NGramTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public NGramTokenizerDescriptor() : base() - { - } - - private string? CustomTokenCharsValue { get; set; } - private int? MaxGramValue { get; set; } - private int? MinGramValue { get; set; } - private ICollection? TokenCharsValue { get; set; } - private string? VersionValue { get; set; } - - public NGramTokenizerDescriptor CustomTokenChars(string? customTokenChars) - { - CustomTokenCharsValue = customTokenChars; - return Self; - } - - public NGramTokenizerDescriptor MaxGram(int? maxGram) - { - MaxGramValue = maxGram; - return Self; - } - - public NGramTokenizerDescriptor MinGram(int? minGram) - { - MinGramValue = minGram; - return Self; - } - - public NGramTokenizerDescriptor TokenChars(ICollection? tokenChars) - { - TokenCharsValue = tokenChars; - return Self; - } - - public NGramTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CustomTokenCharsValue)) - { - writer.WritePropertyName("custom_token_chars"); - writer.WriteStringValue(CustomTokenCharsValue); - } - - if (MaxGramValue.HasValue) - { - writer.WritePropertyName("max_gram"); - writer.WriteNumberValue(MaxGramValue.Value); - } - - if (MinGramValue.HasValue) - { - writer.WritePropertyName("min_gram"); - writer.WriteNumberValue(MinGramValue.Value); - } - - if (TokenCharsValue is not null) - { - writer.WritePropertyName("token_chars"); - JsonSerializer.Serialize(writer, TokenCharsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("ngram"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - NGramTokenizer IBuildableDescriptor.Build() => new() - { - CustomTokenChars = CustomTokenCharsValue, - MaxGram = MaxGramValue, - MinGram = MinGramValue, - TokenChars = TokenCharsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriAnalyzer.g.cs deleted file mode 100644 index 20aef3c7ab8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriAnalyzer.g.cs +++ /dev/null @@ -1,122 +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.Analysis; - -public sealed partial class NoriAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("decompound_mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriDecompoundMode? DecompoundMode { get; set; } - [JsonInclude, JsonPropertyName("stoptags")] - public ICollection? Stoptags { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "nori"; - - [JsonInclude, JsonPropertyName("user_dictionary")] - public string? UserDictionary { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class NoriAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NoriAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public NoriAnalyzerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriDecompoundMode? DecompoundModeValue { get; set; } - private ICollection? StoptagsValue { get; set; } - private string? UserDictionaryValue { get; set; } - private string? VersionValue { get; set; } - - public NoriAnalyzerDescriptor DecompoundMode(Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriDecompoundMode? decompoundMode) - { - DecompoundModeValue = decompoundMode; - return Self; - } - - public NoriAnalyzerDescriptor Stoptags(ICollection? stoptags) - { - StoptagsValue = stoptags; - return Self; - } - - public NoriAnalyzerDescriptor UserDictionary(string? userDictionary) - { - UserDictionaryValue = userDictionary; - return Self; - } - - public NoriAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DecompoundModeValue is not null) - { - writer.WritePropertyName("decompound_mode"); - JsonSerializer.Serialize(writer, DecompoundModeValue, options); - } - - if (StoptagsValue is not null) - { - writer.WritePropertyName("stoptags"); - JsonSerializer.Serialize(writer, StoptagsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("nori"); - if (!string.IsNullOrEmpty(UserDictionaryValue)) - { - writer.WritePropertyName("user_dictionary"); - writer.WriteStringValue(UserDictionaryValue); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - NoriAnalyzer IBuildableDescriptor.Build() => new() - { - DecompoundMode = DecompoundModeValue, - Stoptags = StoptagsValue, - UserDictionary = UserDictionaryValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs deleted file mode 100644 index 553db15c24f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class NoriPartOfSpeechTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("stoptags")] - public ICollection? Stoptags { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "nori_part_of_speech"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class NoriPartOfSpeechTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NoriPartOfSpeechTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public NoriPartOfSpeechTokenFilterDescriptor() : base() - { - } - - private ICollection? StoptagsValue { get; set; } - private string? VersionValue { get; set; } - - public NoriPartOfSpeechTokenFilterDescriptor Stoptags(ICollection? stoptags) - { - StoptagsValue = stoptags; - return Self; - } - - public NoriPartOfSpeechTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StoptagsValue is not null) - { - writer.WritePropertyName("stoptags"); - JsonSerializer.Serialize(writer, StoptagsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("nori_part_of_speech"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - NoriPartOfSpeechTokenFilter IBuildableDescriptor.Build() => new() - { - Stoptags = StoptagsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriTokenizer.g.cs deleted file mode 100644 index b45fdb45130..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NoriTokenizer.g.cs +++ /dev/null @@ -1,138 +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.Analysis; - -public sealed partial class NoriTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("decompound_mode")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriDecompoundMode? DecompoundMode { get; set; } - [JsonInclude, JsonPropertyName("discard_punctuation")] - public bool? DiscardPunctuation { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "nori_tokenizer"; - - [JsonInclude, JsonPropertyName("user_dictionary")] - public string? UserDictionary { get; set; } - [JsonInclude, JsonPropertyName("user_dictionary_rules")] - public ICollection? UserDictionaryRules { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class NoriTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NoriTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public NoriTokenizerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriDecompoundMode? DecompoundModeValue { get; set; } - private bool? DiscardPunctuationValue { get; set; } - private string? UserDictionaryValue { get; set; } - private ICollection? UserDictionaryRulesValue { get; set; } - private string? VersionValue { get; set; } - - public NoriTokenizerDescriptor DecompoundMode(Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriDecompoundMode? decompoundMode) - { - DecompoundModeValue = decompoundMode; - return Self; - } - - public NoriTokenizerDescriptor DiscardPunctuation(bool? discardPunctuation = true) - { - DiscardPunctuationValue = discardPunctuation; - return Self; - } - - public NoriTokenizerDescriptor UserDictionary(string? userDictionary) - { - UserDictionaryValue = userDictionary; - return Self; - } - - public NoriTokenizerDescriptor UserDictionaryRules(ICollection? userDictionaryRules) - { - UserDictionaryRulesValue = userDictionaryRules; - return Self; - } - - public NoriTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DecompoundModeValue is not null) - { - writer.WritePropertyName("decompound_mode"); - JsonSerializer.Serialize(writer, DecompoundModeValue, options); - } - - if (DiscardPunctuationValue.HasValue) - { - writer.WritePropertyName("discard_punctuation"); - writer.WriteBooleanValue(DiscardPunctuationValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("nori_tokenizer"); - if (!string.IsNullOrEmpty(UserDictionaryValue)) - { - writer.WritePropertyName("user_dictionary"); - writer.WriteStringValue(UserDictionaryValue); - } - - if (UserDictionaryRulesValue is not null) - { - writer.WritePropertyName("user_dictionary_rules"); - JsonSerializer.Serialize(writer, UserDictionaryRulesValue, options); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - NoriTokenizer IBuildableDescriptor.Build() => new() - { - DecompoundMode = DecompoundModeValue, - DiscardPunctuation = DiscardPunctuationValue, - UserDictionary = UserDictionaryValue, - UserDictionaryRules = UserDictionaryRulesValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs deleted file mode 100644 index e5111e9b1b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Normalizers.g.cs +++ /dev/null @@ -1,131 +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.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.Analysis; - -public partial class Normalizers : IsADictionary -{ - public Normalizers() - { - } - - public Normalizers(IDictionary container) : base(container) - { - } - - public void Add(string name, INormalizer normalizer) => BackingDictionary.Add(Sanitize(name), normalizer); - public bool TryGetNormalizer(string name, [NotNullWhen(returnValue: true)] out INormalizer normalizer) => BackingDictionary.TryGetValue(Sanitize(name), out normalizer); - - public bool TryGetNormalizer(string name, [NotNullWhen(returnValue: true)] out T? normalizer) where T : class, INormalizer - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - normalizer = finalValue; - return true; - } - - normalizer = null; - return false; - } -} - -public sealed partial class NormalizersDescriptor : IsADictionaryDescriptor -{ - public NormalizersDescriptor() : base(new Normalizers()) - { - } - - public NormalizersDescriptor(Normalizers normalizers) : base(normalizers ?? new Normalizers()) - { - } - - public NormalizersDescriptor Custom(string normalizerName) => AssignVariant(normalizerName, null); - public NormalizersDescriptor Custom(string normalizerName, Action configure) => AssignVariant(normalizerName, configure); - public NormalizersDescriptor Custom(string normalizerName, CustomNormalizer customNormalizer) => AssignVariant(normalizerName, customNormalizer); - public NormalizersDescriptor Lowercase(string normalizerName) => AssignVariant(normalizerName, null); - public NormalizersDescriptor Lowercase(string normalizerName, Action configure) => AssignVariant(normalizerName, configure); - public NormalizersDescriptor Lowercase(string normalizerName, LowercaseNormalizer lowercaseNormalizer) => AssignVariant(normalizerName, lowercaseNormalizer); -} - -internal sealed partial class NormalizerInterfaceConverter : JsonConverter -{ - public override INormalizer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "custom": - return JsonSerializer.Deserialize(ref reader, options); - case "lowercase": - return JsonSerializer.Deserialize(ref reader, options); - default: - return JsonSerializer.Deserialize(ref reader, options); - } - } - - public override void Write(Utf8JsonWriter writer, INormalizer value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "custom": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CustomNormalizer), options); - return; - case "lowercase": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LowercaseNormalizer), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -[JsonConverter(typeof(NormalizerInterfaceConverter))] -public partial interface INormalizer -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs deleted file mode 100644 index 5b88623985b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class NorwegianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "norwegian"; -} - -public sealed partial class NorwegianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NorwegianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public NorwegianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public NorwegianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public NorwegianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public NorwegianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("norwegian"); - writer.WriteEndObject(); - } - - NorwegianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs deleted file mode 100644 index cd21cf2e9b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PathHierarchyTokenizer.g.cs +++ /dev/null @@ -1,154 +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.Analysis; - -public sealed partial class PathHierarchyTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("buffer_size")] - public int? BufferSize { get; set; } - [JsonInclude, JsonPropertyName("delimiter")] - public string? Delimiter { get; set; } - [JsonInclude, JsonPropertyName("replacement")] - public string? Replacement { get; set; } - [JsonInclude, JsonPropertyName("reverse")] - public bool? Reverse { get; set; } - [JsonInclude, JsonPropertyName("skip")] - public int? Skip { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "path_hierarchy"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PathHierarchyTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PathHierarchyTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public PathHierarchyTokenizerDescriptor() : base() - { - } - - private int? BufferSizeValue { get; set; } - private string? DelimiterValue { get; set; } - private string? ReplacementValue { get; set; } - private bool? ReverseValue { get; set; } - private int? SkipValue { get; set; } - private string? VersionValue { get; set; } - - public PathHierarchyTokenizerDescriptor BufferSize(int? bufferSize) - { - BufferSizeValue = bufferSize; - return Self; - } - - public PathHierarchyTokenizerDescriptor Delimiter(string? delimiter) - { - DelimiterValue = delimiter; - return Self; - } - - public PathHierarchyTokenizerDescriptor Replacement(string? replacement) - { - ReplacementValue = replacement; - return Self; - } - - public PathHierarchyTokenizerDescriptor Reverse(bool? reverse = true) - { - ReverseValue = reverse; - return Self; - } - - public PathHierarchyTokenizerDescriptor Skip(int? skip) - { - SkipValue = skip; - return Self; - } - - public PathHierarchyTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BufferSizeValue.HasValue) - { - writer.WritePropertyName("buffer_size"); - writer.WriteNumberValue(BufferSizeValue.Value); - } - - if (!string.IsNullOrEmpty(DelimiterValue)) - { - writer.WritePropertyName("delimiter"); - writer.WriteStringValue(DelimiterValue); - } - - if (!string.IsNullOrEmpty(ReplacementValue)) - { - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - } - - if (ReverseValue.HasValue) - { - writer.WritePropertyName("reverse"); - writer.WriteBooleanValue(ReverseValue.Value); - } - - if (SkipValue.HasValue) - { - writer.WritePropertyName("skip"); - writer.WriteNumberValue(SkipValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("path_hierarchy"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PathHierarchyTokenizer IBuildableDescriptor.Build() => new() - { - BufferSize = BufferSizeValue, - Delimiter = DelimiterValue, - Replacement = ReplacementValue, - Reverse = ReverseValue, - Skip = SkipValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternAnalyzer.g.cs deleted file mode 100644 index 93bf278a294..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternAnalyzer.g.cs +++ /dev/null @@ -1,135 +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.Analysis; - -public sealed partial class PatternAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("flags")] - public string? Flags { get; set; } - [JsonInclude, JsonPropertyName("lowercase")] - public bool? Lowercase { get; set; } - [JsonInclude, JsonPropertyName("pattern")] - public string Pattern { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "pattern"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PatternAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PatternAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public PatternAnalyzerDescriptor() : base() - { - } - - private string? FlagsValue { get; set; } - private bool? LowercaseValue { get; set; } - private string PatternValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? VersionValue { get; set; } - - public PatternAnalyzerDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - - public PatternAnalyzerDescriptor Lowercase(bool? lowercase = true) - { - LowercaseValue = lowercase; - return Self; - } - - public PatternAnalyzerDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public PatternAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public PatternAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - - if (LowercaseValue.HasValue) - { - writer.WritePropertyName("lowercase"); - writer.WriteBooleanValue(LowercaseValue.Value); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("pattern"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PatternAnalyzer IBuildableDescriptor.Build() => new() - { - Flags = FlagsValue, - Lowercase = LowercaseValue, - Pattern = PatternValue, - Stopwords = StopwordsValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs deleted file mode 100644 index 11b89a48d0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs +++ /dev/null @@ -1,102 +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.Analysis; - -public sealed partial class PatternCaptureTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("patterns")] - public ICollection Patterns { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "pattern_capture"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PatternCaptureTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PatternCaptureTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public PatternCaptureTokenFilterDescriptor() : base() - { - } - - private ICollection PatternsValue { get; set; } - private bool? PreserveOriginalValue { get; set; } - private string? VersionValue { get; set; } - - public PatternCaptureTokenFilterDescriptor Patterns(ICollection patterns) - { - PatternsValue = patterns; - return Self; - } - - public PatternCaptureTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public PatternCaptureTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("pattern_capture"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PatternCaptureTokenFilter IBuildableDescriptor.Build() => new() - { - Patterns = PatternsValue, - PreserveOriginal = PreserveOriginalValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs deleted file mode 100644 index dc98f7d7eea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceCharFilter.g.cs +++ /dev/null @@ -1,118 +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.Analysis; - -public sealed partial class PatternReplaceCharFilter : ICharFilter -{ - [JsonInclude, JsonPropertyName("flags")] - public string? Flags { get; set; } - [JsonInclude, JsonPropertyName("pattern")] - public string Pattern { get; set; } - [JsonInclude, JsonPropertyName("replacement")] - public string? Replacement { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "pattern_replace"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PatternReplaceCharFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PatternReplaceCharFilterDescriptor(Action configure) => configure.Invoke(this); - - public PatternReplaceCharFilterDescriptor() : base() - { - } - - private string? FlagsValue { get; set; } - private string PatternValue { get; set; } - private string? ReplacementValue { get; set; } - private string? VersionValue { get; set; } - - public PatternReplaceCharFilterDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - - public PatternReplaceCharFilterDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public PatternReplaceCharFilterDescriptor Replacement(string? replacement) - { - ReplacementValue = replacement; - return Self; - } - - public PatternReplaceCharFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (!string.IsNullOrEmpty(ReplacementValue)) - { - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("pattern_replace"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PatternReplaceCharFilter IBuildableDescriptor.Build() => new() - { - Flags = FlagsValue, - Pattern = PatternValue, - Replacement = ReplacementValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs deleted file mode 100644 index 1265acbcfae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs +++ /dev/null @@ -1,134 +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.Analysis; - -public sealed partial class PatternReplaceTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("all")] - public bool? All { get; set; } - [JsonInclude, JsonPropertyName("flags")] - public string? Flags { get; set; } - [JsonInclude, JsonPropertyName("pattern")] - public string Pattern { get; set; } - [JsonInclude, JsonPropertyName("replacement")] - public string? Replacement { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "pattern_replace"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PatternReplaceTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PatternReplaceTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public PatternReplaceTokenFilterDescriptor() : base() - { - } - - private bool? AllValue { get; set; } - private string? FlagsValue { get; set; } - private string PatternValue { get; set; } - private string? ReplacementValue { get; set; } - private string? VersionValue { get; set; } - - public PatternReplaceTokenFilterDescriptor All(bool? all = true) - { - AllValue = all; - return Self; - } - - public PatternReplaceTokenFilterDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - - public PatternReplaceTokenFilterDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - public PatternReplaceTokenFilterDescriptor Replacement(string? replacement) - { - ReplacementValue = replacement; - return Self; - } - - public PatternReplaceTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllValue.HasValue) - { - writer.WritePropertyName("all"); - writer.WriteBooleanValue(AllValue.Value); - } - - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (!string.IsNullOrEmpty(ReplacementValue)) - { - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("pattern_replace"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PatternReplaceTokenFilter IBuildableDescriptor.Build() => new() - { - All = AllValue, - Flags = FlagsValue, - Pattern = PatternValue, - Replacement = ReplacementValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternTokenizer.g.cs deleted file mode 100644 index d893220c095..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PatternTokenizer.g.cs +++ /dev/null @@ -1,122 +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.Analysis; - -public sealed partial class PatternTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("flags")] - public string? Flags { get; set; } - [JsonInclude, JsonPropertyName("group")] - public int? Group { get; set; } - [JsonInclude, JsonPropertyName("pattern")] - public string? Pattern { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "pattern"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PatternTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PatternTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public PatternTokenizerDescriptor() : base() - { - } - - private string? FlagsValue { get; set; } - private int? GroupValue { get; set; } - private string? PatternValue { get; set; } - private string? VersionValue { get; set; } - - public PatternTokenizerDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - - public PatternTokenizerDescriptor Group(int? group) - { - GroupValue = group; - return Self; - } - - public PatternTokenizerDescriptor Pattern(string? pattern) - { - PatternValue = pattern; - return Self; - } - - public PatternTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - - if (GroupValue.HasValue) - { - writer.WritePropertyName("group"); - writer.WriteNumberValue(GroupValue.Value); - } - - if (!string.IsNullOrEmpty(PatternValue)) - { - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("pattern"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PatternTokenizer IBuildableDescriptor.Build() => new() - { - Flags = FlagsValue, - Group = GroupValue, - Pattern = PatternValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs deleted file mode 100644 index ea3eaf1c040..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PersianAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class PersianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "persian"; -} - -public sealed partial class PersianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PersianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public PersianAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public PersianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public PersianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("persian"); - writer.WriteEndObject(); - } - - PersianAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs deleted file mode 100644 index 3a1e45c2e51..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs +++ /dev/null @@ -1,167 +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.Analysis; - -public sealed partial class PhoneticTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("encoder")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticEncoder Encoder { get; set; } - [JsonInclude, JsonPropertyName("languageset")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticLanguage))] - public ICollection? Languageset { get; set; } - [JsonInclude, JsonPropertyName("max_code_len")] - public int? MaxCodeLen { get; set; } - [JsonInclude, JsonPropertyName("name_type")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticNameType? NameType { get; set; } - [JsonInclude, JsonPropertyName("replace")] - public bool? Replace { get; set; } - [JsonInclude, JsonPropertyName("rule_type")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticRuleType? RuleType { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "phonetic"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PhoneticTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PhoneticTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public PhoneticTokenFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticEncoder EncoderValue { get; set; } - private ICollection? LanguagesetValue { get; set; } - private int? MaxCodeLenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticNameType? NameTypeValue { get; set; } - private bool? ReplaceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticRuleType? RuleTypeValue { get; set; } - private string? VersionValue { get; set; } - - public PhoneticTokenFilterDescriptor Encoder(Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticEncoder encoder) - { - EncoderValue = encoder; - return Self; - } - - public PhoneticTokenFilterDescriptor Languageset(ICollection? languageset) - { - LanguagesetValue = languageset; - return Self; - } - - public PhoneticTokenFilterDescriptor MaxCodeLen(int? maxCodeLen) - { - MaxCodeLenValue = maxCodeLen; - return Self; - } - - public PhoneticTokenFilterDescriptor NameType(Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticNameType? nameType) - { - NameTypeValue = nameType; - return Self; - } - - public PhoneticTokenFilterDescriptor Replace(bool? replace = true) - { - ReplaceValue = replace; - return Self; - } - - public PhoneticTokenFilterDescriptor RuleType(Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticRuleType? ruleType) - { - RuleTypeValue = ruleType; - return Self; - } - - public PhoneticTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("encoder"); - JsonSerializer.Serialize(writer, EncoderValue, options); - if (LanguagesetValue is not null) - { - writer.WritePropertyName("languageset"); - SingleOrManySerializationHelper.Serialize(LanguagesetValue, writer, options); - } - - if (MaxCodeLenValue.HasValue) - { - writer.WritePropertyName("max_code_len"); - writer.WriteNumberValue(MaxCodeLenValue.Value); - } - - if (NameTypeValue is not null) - { - writer.WritePropertyName("name_type"); - JsonSerializer.Serialize(writer, NameTypeValue, options); - } - - if (ReplaceValue.HasValue) - { - writer.WritePropertyName("replace"); - writer.WriteBooleanValue(ReplaceValue.Value); - } - - if (RuleTypeValue is not null) - { - writer.WritePropertyName("rule_type"); - JsonSerializer.Serialize(writer, RuleTypeValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("phonetic"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PhoneticTokenFilter IBuildableDescriptor.Build() => new() - { - Encoder = EncoderValue, - Languageset = LanguagesetValue, - MaxCodeLen = MaxCodeLenValue, - NameType = NameTypeValue, - Replace = ReplaceValue, - RuleType = RuleTypeValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs deleted file mode 100644 index 8ba04f094a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PorterStemTokenFilter.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class PorterStemTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "porter_stem"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PorterStemTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PorterStemTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public PorterStemTokenFilterDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public PorterStemTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("porter_stem"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - PorterStemTokenFilter IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs deleted file mode 100644 index 0344ea7173f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class PortugueseAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "portuguese"; -} - -public sealed partial class PortugueseAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PortugueseAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public PortugueseAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public PortugueseAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public PortugueseAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public PortugueseAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("portuguese"); - writer.WriteEndObject(); - } - - PortugueseAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ 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 deleted file mode 100644 index e80194acd42..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/PredicateTokenFilter.g.cs +++ /dev/null @@ -1,144 +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.Analysis; - -public sealed partial class PredicateTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "predicate_token_filter"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class PredicateTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PredicateTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - 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 = BuildScript(), - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs deleted file mode 100644 index d9b5a4654d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RemoveDuplicatesTokenFilter.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class RemoveDuplicatesTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "remove_duplicates"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class RemoveDuplicatesTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal RemoveDuplicatesTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public RemoveDuplicatesTokenFilterDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public RemoveDuplicatesTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("remove_duplicates"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - RemoveDuplicatesTokenFilter IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ReverseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ReverseTokenFilter.g.cs deleted file mode 100644 index 1664a9991dd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ReverseTokenFilter.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class ReverseTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "reverse"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class ReverseTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ReverseTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public ReverseTokenFilterDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public ReverseTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("reverse"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - ReverseTokenFilter IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs deleted file mode 100644 index 37809cd82ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RomanianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class RomanianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "romanian"; -} - -public sealed partial class RomanianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal RomanianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public RomanianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public RomanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public RomanianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public RomanianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("romanian"); - writer.WriteEndObject(); - } - - RomanianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs deleted file mode 100644 index 8547f3c2ad7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/RussianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class RussianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "russian"; -} - -public sealed partial class RussianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal RussianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public RussianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public RussianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public RussianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public RussianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("russian"); - writer.WriteEndObject(); - } - - RussianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs deleted file mode 100644 index 9e978353e75..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SerbianAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class SerbianAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "serbian"; -} - -public sealed partial class SerbianAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SerbianAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public SerbianAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public SerbianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public SerbianAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public SerbianAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("serbian"); - writer.WriteEndObject(); - } - - SerbianAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ShingleTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ShingleTokenFilter.g.cs deleted file mode 100644 index 5a01cbb2009..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ShingleTokenFilter.g.cs +++ /dev/null @@ -1,170 +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.Analysis; - -public sealed partial class ShingleTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("filler_token")] - public string? FillerToken { get; set; } - [JsonInclude, JsonPropertyName("max_shingle_size")] - public object? MaxShingleSize { get; set; } - [JsonInclude, JsonPropertyName("min_shingle_size")] - public object? MinShingleSize { get; set; } - [JsonInclude, JsonPropertyName("output_unigrams")] - public bool? OutputUnigrams { get; set; } - [JsonInclude, JsonPropertyName("output_unigrams_if_no_shingles")] - public bool? OutputUnigramsIfNoShingles { get; set; } - [JsonInclude, JsonPropertyName("token_separator")] - public string? TokenSeparator { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "shingle"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class ShingleTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ShingleTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public ShingleTokenFilterDescriptor() : base() - { - } - - private string? FillerTokenValue { get; set; } - private object? MaxShingleSizeValue { get; set; } - private object? MinShingleSizeValue { get; set; } - private bool? OutputUnigramsValue { get; set; } - private bool? OutputUnigramsIfNoShinglesValue { get; set; } - private string? TokenSeparatorValue { get; set; } - private string? VersionValue { get; set; } - - public ShingleTokenFilterDescriptor FillerToken(string? fillerToken) - { - FillerTokenValue = fillerToken; - return Self; - } - - public ShingleTokenFilterDescriptor MaxShingleSize(object? maxShingleSize) - { - MaxShingleSizeValue = maxShingleSize; - return Self; - } - - public ShingleTokenFilterDescriptor MinShingleSize(object? minShingleSize) - { - MinShingleSizeValue = minShingleSize; - return Self; - } - - public ShingleTokenFilterDescriptor OutputUnigrams(bool? outputUnigrams = true) - { - OutputUnigramsValue = outputUnigrams; - return Self; - } - - public ShingleTokenFilterDescriptor OutputUnigramsIfNoShingles(bool? outputUnigramsIfNoShingles = true) - { - OutputUnigramsIfNoShinglesValue = outputUnigramsIfNoShingles; - return Self; - } - - public ShingleTokenFilterDescriptor TokenSeparator(string? tokenSeparator) - { - TokenSeparatorValue = tokenSeparator; - return Self; - } - - public ShingleTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FillerTokenValue)) - { - writer.WritePropertyName("filler_token"); - writer.WriteStringValue(FillerTokenValue); - } - - if (MaxShingleSizeValue is not null) - { - writer.WritePropertyName("max_shingle_size"); - JsonSerializer.Serialize(writer, MaxShingleSizeValue, options); - } - - if (MinShingleSizeValue is not null) - { - writer.WritePropertyName("min_shingle_size"); - JsonSerializer.Serialize(writer, MinShingleSizeValue, options); - } - - if (OutputUnigramsValue.HasValue) - { - writer.WritePropertyName("output_unigrams"); - writer.WriteBooleanValue(OutputUnigramsValue.Value); - } - - if (OutputUnigramsIfNoShinglesValue.HasValue) - { - writer.WritePropertyName("output_unigrams_if_no_shingles"); - writer.WriteBooleanValue(OutputUnigramsIfNoShinglesValue.Value); - } - - if (!string.IsNullOrEmpty(TokenSeparatorValue)) - { - writer.WritePropertyName("token_separator"); - writer.WriteStringValue(TokenSeparatorValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("shingle"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - ShingleTokenFilter IBuildableDescriptor.Build() => new() - { - FillerToken = FillerTokenValue, - MaxShingleSize = MaxShingleSizeValue, - MinShingleSize = MinShingleSizeValue, - OutputUnigrams = OutputUnigramsValue, - OutputUnigramsIfNoShingles = OutputUnigramsIfNoShinglesValue, - TokenSeparator = TokenSeparatorValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimpleAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimpleAnalyzer.g.cs deleted file mode 100644 index 9a175339f6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimpleAnalyzer.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class SimpleAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "simple"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SimpleAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SimpleAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public SimpleAnalyzerDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public SimpleAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("simple"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SimpleAnalyzer IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs deleted file mode 100644 index 7953d768925..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternSplitTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class SimplePatternSplitTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("pattern")] - public string? Pattern { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "simple_pattern_split"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SimplePatternSplitTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SimplePatternSplitTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public SimplePatternSplitTokenizerDescriptor() : base() - { - } - - private string? PatternValue { get; set; } - private string? VersionValue { get; set; } - - public SimplePatternSplitTokenizerDescriptor Pattern(string? pattern) - { - PatternValue = pattern; - return Self; - } - - public SimplePatternSplitTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(PatternValue)) - { - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("simple_pattern_split"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SimplePatternSplitTokenizer IBuildableDescriptor.Build() => new() - { - Pattern = PatternValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs deleted file mode 100644 index 922ae85dd8e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SimplePatternTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class SimplePatternTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("pattern")] - public string? Pattern { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "simple_pattern"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SimplePatternTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SimplePatternTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public SimplePatternTokenizerDescriptor() : base() - { - } - - private string? PatternValue { get; set; } - private string? VersionValue { get; set; } - - public SimplePatternTokenizerDescriptor Pattern(string? pattern) - { - PatternValue = pattern; - return Self; - } - - public SimplePatternTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(PatternValue)) - { - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("simple_pattern"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SimplePatternTokenizer IBuildableDescriptor.Build() => new() - { - Pattern = PatternValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballAnalyzer.g.cs deleted file mode 100644 index 98cb613c3b6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballAnalyzer.g.cs +++ /dev/null @@ -1,103 +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.Analysis; - -public sealed partial class SnowballAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("language")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage Language { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "snowball"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SnowballAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SnowballAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public SnowballAnalyzerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage LanguageValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? VersionValue { get; set; } - - public SnowballAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage language) - { - LanguageValue = language; - return Self; - } - - public SnowballAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public SnowballAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("language"); - JsonSerializer.Serialize(writer, LanguageValue, options); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("snowball"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SnowballAnalyzer IBuildableDescriptor.Build() => new() - { - Language = LanguageValue, - Stopwords = StopwordsValue, - 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 deleted file mode 100644 index 73a4eb08848..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SnowballTokenFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class SnowballTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("language")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballLanguage? Language { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "snowball"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SnowballTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SnowballTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public SnowballTokenFilterDescriptor() : base() - { - } - - 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) - { - LanguageValue = language; - return Self; - } - - public SnowballTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LanguageValue is not null) - { - writer.WritePropertyName("language"); - JsonSerializer.Serialize(writer, LanguageValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("snowball"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SnowballTokenFilter IBuildableDescriptor.Build() => new() - { - Language = LanguageValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs deleted file mode 100644 index f96bef1f1c9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SoraniAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class SoraniAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "sorani"; -} - -public sealed partial class SoraniAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SoraniAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public SoraniAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public SoraniAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public SoraniAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public SoraniAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("sorani"); - writer.WriteEndObject(); - } - - SoraniAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs deleted file mode 100644 index 7c67c7c246e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SpanishAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class SpanishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "spanish"; -} - -public sealed partial class SpanishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SpanishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public SpanishAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public SpanishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public SpanishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public SpanishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("spanish"); - writer.WriteEndObject(); - } - - SpanishAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardAnalyzer.g.cs deleted file mode 100644 index e064b2c5e0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class StandardAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("max_token_length")] - public int? MaxTokenLength { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "standard"; -} - -public sealed partial class StandardAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal StandardAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public StandardAnalyzerDescriptor() : base() - { - } - - private int? MaxTokenLengthValue { get; set; } - private ICollection? StopwordsValue { get; set; } - - public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) - { - MaxTokenLengthValue = maxTokenLength; - return Self; - } - - public StandardAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenLengthValue.HasValue) - { - writer.WritePropertyName("max_token_length"); - writer.WriteNumberValue(MaxTokenLengthValue.Value); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("standard"); - writer.WriteEndObject(); - } - - StandardAnalyzer IBuildableDescriptor.Build() => new() - { - MaxTokenLength = MaxTokenLengthValue, - Stopwords = StopwordsValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardTokenizer.g.cs deleted file mode 100644 index 9b1ce518ed7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StandardTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class StandardTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("max_token_length")] - public int? MaxTokenLength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "standard"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class StandardTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal StandardTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public StandardTokenizerDescriptor() : base() - { - } - - private int? MaxTokenLengthValue { get; set; } - private string? VersionValue { get; set; } - - public StandardTokenizerDescriptor MaxTokenLength(int? maxTokenLength) - { - MaxTokenLengthValue = maxTokenLength; - return Self; - } - - public StandardTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenLengthValue.HasValue) - { - writer.WritePropertyName("max_token_length"); - writer.WriteNumberValue(MaxTokenLengthValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("standard"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - StandardTokenizer IBuildableDescriptor.Build() => new() - { - MaxTokenLength = MaxTokenLengthValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs deleted file mode 100644 index 9a84a06184d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class StemmerOverrideTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("rules")] - public ICollection? Rules { get; set; } - [JsonInclude, JsonPropertyName("rules_path")] - public string? RulesPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "stemmer_override"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class StemmerOverrideTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal StemmerOverrideTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public StemmerOverrideTokenFilterDescriptor() : base() - { - } - - private ICollection? RulesValue { get; set; } - private string? RulesPathValue { get; set; } - private string? VersionValue { get; set; } - - public StemmerOverrideTokenFilterDescriptor Rules(ICollection? rules) - { - RulesValue = rules; - return Self; - } - - public StemmerOverrideTokenFilterDescriptor RulesPath(string? rulesPath) - { - RulesPathValue = rulesPath; - return Self; - } - - public StemmerOverrideTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RulesValue is not null) - { - writer.WritePropertyName("rules"); - JsonSerializer.Serialize(writer, RulesValue, options); - } - - if (!string.IsNullOrEmpty(RulesPathValue)) - { - writer.WritePropertyName("rules_path"); - writer.WriteStringValue(RulesPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("stemmer_override"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - StemmerOverrideTokenFilter IBuildableDescriptor.Build() => new() - { - Rules = RulesValue, - RulesPath = RulesPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerTokenFilter.g.cs deleted file mode 100644 index 3803785787e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StemmerTokenFilter.g.cs +++ /dev/null @@ -1,138 +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.Analysis; - -internal sealed partial class StemmerTokenFilterConverter : JsonConverter -{ - public override StemmerTokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new StemmerTokenFilter(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "language" || property == "name") - { - variant.Language = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "version") - { - variant.Version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, StemmerTokenFilter value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Language)) - { - writer.WritePropertyName("language"); - writer.WriteStringValue(value.Language); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("stemmer"); - if (!string.IsNullOrEmpty(value.Version)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(value.Version); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(StemmerTokenFilterConverter))] -public sealed partial class StemmerTokenFilter : ITokenFilter -{ - public string? Language { get; set; } - - public string Type => "stemmer"; - - public string? Version { get; set; } -} - -public sealed partial class StemmerTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal StemmerTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public StemmerTokenFilterDescriptor() : base() - { - } - - private string? LanguageValue { get; set; } - private string? VersionValue { get; set; } - - public StemmerTokenFilterDescriptor Language(string? language) - { - LanguageValue = language; - return Self; - } - - public StemmerTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(LanguageValue)) - { - writer.WritePropertyName("language"); - writer.WriteStringValue(LanguageValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("stemmer"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - StemmerTokenFilter IBuildableDescriptor.Build() => new() - { - Language = LanguageValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopAnalyzer.g.cs deleted file mode 100644 index 29e73833d84..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopAnalyzer.g.cs +++ /dev/null @@ -1,107 +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.Analysis; - -public sealed partial class StopAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "stop"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class StopAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal StopAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public StopAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - private string? VersionValue { get; set; } - - public StopAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public StopAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - public StopAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("stop"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - StopAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopTokenFilter.g.cs deleted file mode 100644 index 59989df0afc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/StopTokenFilter.g.cs +++ /dev/null @@ -1,139 +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.Analysis; - -public sealed partial class StopTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("ignore_case")] - public bool? IgnoreCase { get; set; } - [JsonInclude, JsonPropertyName("remove_trailing")] - public bool? RemoveTrailing { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "stop"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class StopTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal StopTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public StopTokenFilterDescriptor() : base() - { - } - - private bool? IgnoreCaseValue { get; set; } - private bool? RemoveTrailingValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - private string? VersionValue { get; set; } - - public StopTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) - { - IgnoreCaseValue = ignoreCase; - return Self; - } - - public StopTokenFilterDescriptor RemoveTrailing(bool? removeTrailing = true) - { - RemoveTrailingValue = removeTrailing; - return Self; - } - - public StopTokenFilterDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public StopTokenFilterDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - public StopTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IgnoreCaseValue.HasValue) - { - writer.WritePropertyName("ignore_case"); - writer.WriteBooleanValue(IgnoreCaseValue.Value); - } - - if (RemoveTrailingValue.HasValue) - { - writer.WritePropertyName("remove_trailing"); - writer.WriteBooleanValue(RemoveTrailingValue.Value); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("stop"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - StopTokenFilter IBuildableDescriptor.Build() => new() - { - IgnoreCase = IgnoreCaseValue, - RemoveTrailing = RemoveTrailingValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs deleted file mode 100644 index ae01149d2e9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SwedishAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class SwedishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "swedish"; -} - -public sealed partial class SwedishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SwedishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public SwedishAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public SwedishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public SwedishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public SwedishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("swedish"); - writer.WriteEndObject(); - } - - SwedishAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs deleted file mode 100644 index 98e5bfa13f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs +++ /dev/null @@ -1,202 +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.Analysis; - -public sealed partial class SynonymGraphTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("expand")] - public bool? Expand { get; set; } - [JsonInclude, JsonPropertyName("format")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymFormat? Format { get; set; } - [JsonInclude, JsonPropertyName("lenient")] - public bool? Lenient { get; set; } - [JsonInclude, JsonPropertyName("synonyms")] - public ICollection? Synonyms { get; set; } - [JsonInclude, JsonPropertyName("synonyms_path")] - public string? SynonymsPath { get; set; } - [JsonInclude, JsonPropertyName("synonyms_set")] - public string? SynonymsSet { get; set; } - [JsonInclude, JsonPropertyName("tokenizer")] - public string? Tokenizer { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "synonym_graph"; - - [JsonInclude, JsonPropertyName("updateable")] - public bool? Updateable { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SynonymGraphTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SynonymGraphTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public SynonymGraphTokenFilterDescriptor() : base() - { - } - - private bool? ExpandValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymFormat? FormatValue { get; set; } - private bool? LenientValue { get; set; } - private ICollection? SynonymsValue { get; set; } - private string? SynonymsPathValue { get; set; } - private string? SynonymsSetValue { get; set; } - private string? TokenizerValue { get; set; } - private bool? UpdateableValue { get; set; } - private string? VersionValue { get; set; } - - public SynonymGraphTokenFilterDescriptor Expand(bool? expand = true) - { - ExpandValue = expand; - return Self; - } - - public SynonymGraphTokenFilterDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymFormat? format) - { - FormatValue = format; - return Self; - } - - public SynonymGraphTokenFilterDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - public SynonymGraphTokenFilterDescriptor Synonyms(ICollection? synonyms) - { - SynonymsValue = synonyms; - return Self; - } - - public SynonymGraphTokenFilterDescriptor SynonymsPath(string? synonymsPath) - { - SynonymsPathValue = synonymsPath; - return Self; - } - - public SynonymGraphTokenFilterDescriptor SynonymsSet(string? synonymsSet) - { - SynonymsSetValue = synonymsSet; - return Self; - } - - public SynonymGraphTokenFilterDescriptor Tokenizer(string? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - public SynonymGraphTokenFilterDescriptor Updateable(bool? updateable = true) - { - UpdateableValue = updateable; - return Self; - } - - public SynonymGraphTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpandValue.HasValue) - { - writer.WritePropertyName("expand"); - writer.WriteBooleanValue(ExpandValue.Value); - } - - if (FormatValue is not null) - { - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, FormatValue, options); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (SynonymsValue is not null) - { - writer.WritePropertyName("synonyms"); - JsonSerializer.Serialize(writer, SynonymsValue, options); - } - - if (!string.IsNullOrEmpty(SynonymsPathValue)) - { - writer.WritePropertyName("synonyms_path"); - writer.WriteStringValue(SynonymsPathValue); - } - - if (!string.IsNullOrEmpty(SynonymsSetValue)) - { - writer.WritePropertyName("synonyms_set"); - writer.WriteStringValue(SynonymsSetValue); - } - - if (!string.IsNullOrEmpty(TokenizerValue)) - { - writer.WritePropertyName("tokenizer"); - writer.WriteStringValue(TokenizerValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("synonym_graph"); - if (UpdateableValue.HasValue) - { - writer.WritePropertyName("updateable"); - writer.WriteBooleanValue(UpdateableValue.Value); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SynonymGraphTokenFilter IBuildableDescriptor.Build() => new() - { - Expand = ExpandValue, - Format = FormatValue, - Lenient = LenientValue, - Synonyms = SynonymsValue, - SynonymsPath = SynonymsPathValue, - SynonymsSet = SynonymsSetValue, - Tokenizer = TokenizerValue, - Updateable = UpdateableValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymTokenFilter.g.cs deleted file mode 100644 index 979debe0f23..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/SynonymTokenFilter.g.cs +++ /dev/null @@ -1,202 +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.Analysis; - -public sealed partial class SynonymTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("expand")] - public bool? Expand { get; set; } - [JsonInclude, JsonPropertyName("format")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymFormat? Format { get; set; } - [JsonInclude, JsonPropertyName("lenient")] - public bool? Lenient { get; set; } - [JsonInclude, JsonPropertyName("synonyms")] - public ICollection? Synonyms { get; set; } - [JsonInclude, JsonPropertyName("synonyms_path")] - public string? SynonymsPath { get; set; } - [JsonInclude, JsonPropertyName("synonyms_set")] - public string? SynonymsSet { get; set; } - [JsonInclude, JsonPropertyName("tokenizer")] - public string? Tokenizer { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "synonym"; - - [JsonInclude, JsonPropertyName("updateable")] - public bool? Updateable { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class SynonymTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SynonymTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public SynonymTokenFilterDescriptor() : base() - { - } - - private bool? ExpandValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymFormat? FormatValue { get; set; } - private bool? LenientValue { get; set; } - private ICollection? SynonymsValue { get; set; } - private string? SynonymsPathValue { get; set; } - private string? SynonymsSetValue { get; set; } - private string? TokenizerValue { get; set; } - private bool? UpdateableValue { get; set; } - private string? VersionValue { get; set; } - - public SynonymTokenFilterDescriptor Expand(bool? expand = true) - { - ExpandValue = expand; - return Self; - } - - public SynonymTokenFilterDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymFormat? format) - { - FormatValue = format; - return Self; - } - - public SynonymTokenFilterDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - public SynonymTokenFilterDescriptor Synonyms(ICollection? synonyms) - { - SynonymsValue = synonyms; - return Self; - } - - public SynonymTokenFilterDescriptor SynonymsPath(string? synonymsPath) - { - SynonymsPathValue = synonymsPath; - return Self; - } - - public SynonymTokenFilterDescriptor SynonymsSet(string? synonymsSet) - { - SynonymsSetValue = synonymsSet; - return Self; - } - - public SynonymTokenFilterDescriptor Tokenizer(string? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - public SynonymTokenFilterDescriptor Updateable(bool? updateable = true) - { - UpdateableValue = updateable; - return Self; - } - - public SynonymTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExpandValue.HasValue) - { - writer.WritePropertyName("expand"); - writer.WriteBooleanValue(ExpandValue.Value); - } - - if (FormatValue is not null) - { - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, FormatValue, options); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (SynonymsValue is not null) - { - writer.WritePropertyName("synonyms"); - JsonSerializer.Serialize(writer, SynonymsValue, options); - } - - if (!string.IsNullOrEmpty(SynonymsPathValue)) - { - writer.WritePropertyName("synonyms_path"); - writer.WriteStringValue(SynonymsPathValue); - } - - if (!string.IsNullOrEmpty(SynonymsSetValue)) - { - writer.WritePropertyName("synonyms_set"); - writer.WriteStringValue(SynonymsSetValue); - } - - if (!string.IsNullOrEmpty(TokenizerValue)) - { - writer.WritePropertyName("tokenizer"); - writer.WriteStringValue(TokenizerValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("synonym"); - if (UpdateableValue.HasValue) - { - writer.WritePropertyName("updateable"); - writer.WriteBooleanValue(UpdateableValue.Value); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - SynonymTokenFilter IBuildableDescriptor.Build() => new() - { - Expand = ExpandValue, - Format = FormatValue, - Lenient = LenientValue, - Synonyms = SynonymsValue, - SynonymsPath = SynonymsPathValue, - SynonymsSet = SynonymsSetValue, - Tokenizer = TokenizerValue, - Updateable = UpdateableValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs deleted file mode 100644 index bdf26a797f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiAnalyzer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class ThaiAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "thai"; -} - -public sealed partial class ThaiAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ThaiAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public ThaiAnalyzerDescriptor() : base() - { - } - - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public ThaiAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public ThaiAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("thai"); - writer.WriteEndObject(); - } - - ThaiAnalyzer IBuildableDescriptor.Build() => new() - { - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs deleted file mode 100644 index 3d31fe4eadc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/ThaiTokenizer.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class ThaiTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "thai"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class ThaiTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ThaiTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public ThaiTokenizerDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public ThaiTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("thai"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - ThaiTokenizer IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TokenFilters.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TokenFilters.g.cs deleted file mode 100644 index 5d05ae0174c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TokenFilters.g.cs +++ /dev/null @@ -1,489 +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.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.Analysis; - -public partial class TokenFilters : IsADictionary -{ - public TokenFilters() - { - } - - public TokenFilters(IDictionary container) : base(container) - { - } - - public void Add(string name, ITokenFilter tokenFilter) => BackingDictionary.Add(Sanitize(name), tokenFilter); - public bool TryGetTokenFilter(string name, [NotNullWhen(returnValue: true)] out ITokenFilter tokenFilter) => BackingDictionary.TryGetValue(Sanitize(name), out tokenFilter); - - public bool TryGetTokenFilter(string name, [NotNullWhen(returnValue: true)] out T? tokenFilter) where T : class, ITokenFilter - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - tokenFilter = finalValue; - return true; - } - - tokenFilter = null; - return false; - } -} - -public sealed partial class TokenFiltersDescriptor : IsADictionaryDescriptor -{ - public TokenFiltersDescriptor() : base(new TokenFilters()) - { - } - - public TokenFiltersDescriptor(TokenFilters tokenFilters) : base(tokenFilters ?? new TokenFilters()) - { - } - - public TokenFiltersDescriptor AsciiFolding(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor AsciiFolding(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor AsciiFolding(string tokenFilterName, AsciiFoldingTokenFilter asciiFoldingTokenFilter) => AssignVariant(tokenFilterName, asciiFoldingTokenFilter); - public TokenFiltersDescriptor CommonGrams(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor CommonGrams(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor CommonGrams(string tokenFilterName, CommonGramsTokenFilter commonGramsTokenFilter) => AssignVariant(tokenFilterName, commonGramsTokenFilter); - public TokenFiltersDescriptor Condition(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Condition(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Condition(string tokenFilterName, ConditionTokenFilter conditionTokenFilter) => AssignVariant(tokenFilterName, conditionTokenFilter); - public TokenFiltersDescriptor DelimitedPayload(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor DelimitedPayload(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor DelimitedPayload(string tokenFilterName, DelimitedPayloadTokenFilter delimitedPayloadTokenFilter) => AssignVariant(tokenFilterName, delimitedPayloadTokenFilter); - public TokenFiltersDescriptor DictionaryDecompounder(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor DictionaryDecompounder(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor DictionaryDecompounder(string tokenFilterName, DictionaryDecompounderTokenFilter dictionaryDecompounderTokenFilter) => AssignVariant(tokenFilterName, dictionaryDecompounderTokenFilter); - public TokenFiltersDescriptor EdgeNGram(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor EdgeNGram(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor EdgeNGram(string tokenFilterName, EdgeNGramTokenFilter edgeNGramTokenFilter) => AssignVariant(tokenFilterName, edgeNGramTokenFilter); - public TokenFiltersDescriptor Elision(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Elision(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Elision(string tokenFilterName, ElisionTokenFilter elisionTokenFilter) => AssignVariant(tokenFilterName, elisionTokenFilter); - public TokenFiltersDescriptor Fingerprint(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Fingerprint(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Fingerprint(string tokenFilterName, FingerprintTokenFilter fingerprintTokenFilter) => AssignVariant(tokenFilterName, fingerprintTokenFilter); - public TokenFiltersDescriptor Hunspell(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Hunspell(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Hunspell(string tokenFilterName, HunspellTokenFilter hunspellTokenFilter) => AssignVariant(tokenFilterName, hunspellTokenFilter); - public TokenFiltersDescriptor HyphenationDecompounder(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor HyphenationDecompounder(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor HyphenationDecompounder(string tokenFilterName, HyphenationDecompounderTokenFilter hyphenationDecompounderTokenFilter) => AssignVariant(tokenFilterName, hyphenationDecompounderTokenFilter); - public TokenFiltersDescriptor IcuCollation(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor IcuCollation(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor IcuCollation(string tokenFilterName, IcuCollationTokenFilter icuCollationTokenFilter) => AssignVariant(tokenFilterName, icuCollationTokenFilter); - public TokenFiltersDescriptor IcuFolding(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor IcuFolding(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor IcuFolding(string tokenFilterName, IcuFoldingTokenFilter icuFoldingTokenFilter) => AssignVariant(tokenFilterName, icuFoldingTokenFilter); - public TokenFiltersDescriptor IcuNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor IcuNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor IcuNormalization(string tokenFilterName, IcuNormalizationTokenFilter icuNormalizationTokenFilter) => AssignVariant(tokenFilterName, icuNormalizationTokenFilter); - public TokenFiltersDescriptor IcuTransform(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor IcuTransform(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor IcuTransform(string tokenFilterName, IcuTransformTokenFilter icuTransformTokenFilter) => AssignVariant(tokenFilterName, icuTransformTokenFilter); - public TokenFiltersDescriptor KeepTypes(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KeepTypes(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KeepTypes(string tokenFilterName, KeepTypesTokenFilter keepTypesTokenFilter) => AssignVariant(tokenFilterName, keepTypesTokenFilter); - public TokenFiltersDescriptor KeepWords(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KeepWords(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KeepWords(string tokenFilterName, KeepWordsTokenFilter keepWordsTokenFilter) => AssignVariant(tokenFilterName, keepWordsTokenFilter); - public TokenFiltersDescriptor KeywordMarker(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KeywordMarker(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KeywordMarker(string tokenFilterName, KeywordMarkerTokenFilter keywordMarkerTokenFilter) => AssignVariant(tokenFilterName, keywordMarkerTokenFilter); - public TokenFiltersDescriptor KStem(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KStem(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KStem(string tokenFilterName, KStemTokenFilter kStemTokenFilter) => AssignVariant(tokenFilterName, kStemTokenFilter); - public TokenFiltersDescriptor KuromojiPartOfSpeech(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KuromojiPartOfSpeech(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KuromojiPartOfSpeech(string tokenFilterName, KuromojiPartOfSpeechTokenFilter kuromojiPartOfSpeechTokenFilter) => AssignVariant(tokenFilterName, kuromojiPartOfSpeechTokenFilter); - public TokenFiltersDescriptor KuromojiReadingForm(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KuromojiReadingForm(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KuromojiReadingForm(string tokenFilterName, KuromojiReadingFormTokenFilter kuromojiReadingFormTokenFilter) => AssignVariant(tokenFilterName, kuromojiReadingFormTokenFilter); - public TokenFiltersDescriptor KuromojiStemmer(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor KuromojiStemmer(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor KuromojiStemmer(string tokenFilterName, KuromojiStemmerTokenFilter kuromojiStemmerTokenFilter) => AssignVariant(tokenFilterName, kuromojiStemmerTokenFilter); - public TokenFiltersDescriptor Length(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Length(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Length(string tokenFilterName, LengthTokenFilter lengthTokenFilter) => AssignVariant(tokenFilterName, lengthTokenFilter); - public TokenFiltersDescriptor LimitTokenCount(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor LimitTokenCount(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor LimitTokenCount(string tokenFilterName, LimitTokenCountTokenFilter limitTokenCountTokenFilter) => AssignVariant(tokenFilterName, limitTokenCountTokenFilter); - public TokenFiltersDescriptor Lowercase(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Lowercase(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Lowercase(string tokenFilterName, LowercaseTokenFilter lowercaseTokenFilter) => AssignVariant(tokenFilterName, lowercaseTokenFilter); - public TokenFiltersDescriptor Multiplexer(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Multiplexer(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Multiplexer(string tokenFilterName, MultiplexerTokenFilter multiplexerTokenFilter) => AssignVariant(tokenFilterName, multiplexerTokenFilter); - public TokenFiltersDescriptor NGram(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor NGram(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor NGram(string tokenFilterName, NGramTokenFilter nGramTokenFilter) => AssignVariant(tokenFilterName, nGramTokenFilter); - public TokenFiltersDescriptor NoriPartOfSpeech(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor NoriPartOfSpeech(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor NoriPartOfSpeech(string tokenFilterName, NoriPartOfSpeechTokenFilter noriPartOfSpeechTokenFilter) => AssignVariant(tokenFilterName, noriPartOfSpeechTokenFilter); - public TokenFiltersDescriptor PatternCapture(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor PatternCapture(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor PatternCapture(string tokenFilterName, PatternCaptureTokenFilter patternCaptureTokenFilter) => AssignVariant(tokenFilterName, patternCaptureTokenFilter); - public TokenFiltersDescriptor PatternReplace(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor PatternReplace(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor PatternReplace(string tokenFilterName, PatternReplaceTokenFilter patternReplaceTokenFilter) => AssignVariant(tokenFilterName, patternReplaceTokenFilter); - public TokenFiltersDescriptor Phonetic(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Phonetic(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Phonetic(string tokenFilterName, PhoneticTokenFilter phoneticTokenFilter) => AssignVariant(tokenFilterName, phoneticTokenFilter); - public TokenFiltersDescriptor PorterStem(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor PorterStem(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor PorterStem(string tokenFilterName, PorterStemTokenFilter porterStemTokenFilter) => AssignVariant(tokenFilterName, porterStemTokenFilter); - public TokenFiltersDescriptor Predicate(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Predicate(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Predicate(string tokenFilterName, PredicateTokenFilter predicateTokenFilter) => AssignVariant(tokenFilterName, predicateTokenFilter); - public TokenFiltersDescriptor RemoveDuplicates(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor RemoveDuplicates(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor RemoveDuplicates(string tokenFilterName, RemoveDuplicatesTokenFilter removeDuplicatesTokenFilter) => AssignVariant(tokenFilterName, removeDuplicatesTokenFilter); - public TokenFiltersDescriptor Reverse(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Reverse(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Reverse(string tokenFilterName, ReverseTokenFilter reverseTokenFilter) => AssignVariant(tokenFilterName, reverseTokenFilter); - public TokenFiltersDescriptor Shingle(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Shingle(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Shingle(string tokenFilterName, ShingleTokenFilter shingleTokenFilter) => AssignVariant(tokenFilterName, shingleTokenFilter); - public TokenFiltersDescriptor Snowball(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Snowball(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Snowball(string tokenFilterName, SnowballTokenFilter snowballTokenFilter) => AssignVariant(tokenFilterName, snowballTokenFilter); - public TokenFiltersDescriptor StemmerOverride(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor StemmerOverride(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor StemmerOverride(string tokenFilterName, StemmerOverrideTokenFilter stemmerOverrideTokenFilter) => AssignVariant(tokenFilterName, stemmerOverrideTokenFilter); - public TokenFiltersDescriptor Stemmer(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Stemmer(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Stemmer(string tokenFilterName, StemmerTokenFilter stemmerTokenFilter) => AssignVariant(tokenFilterName, stemmerTokenFilter); - public TokenFiltersDescriptor Stop(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Stop(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Stop(string tokenFilterName, StopTokenFilter stopTokenFilter) => AssignVariant(tokenFilterName, stopTokenFilter); - public TokenFiltersDescriptor SynonymGraph(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor SynonymGraph(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor SynonymGraph(string tokenFilterName, SynonymGraphTokenFilter synonymGraphTokenFilter) => AssignVariant(tokenFilterName, synonymGraphTokenFilter); - public TokenFiltersDescriptor Synonym(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Synonym(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Synonym(string tokenFilterName, SynonymTokenFilter synonymTokenFilter) => AssignVariant(tokenFilterName, synonymTokenFilter); - public TokenFiltersDescriptor Trim(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Trim(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Trim(string tokenFilterName, TrimTokenFilter trimTokenFilter) => AssignVariant(tokenFilterName, trimTokenFilter); - public TokenFiltersDescriptor Truncate(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Truncate(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Truncate(string tokenFilterName, TruncateTokenFilter truncateTokenFilter) => AssignVariant(tokenFilterName, truncateTokenFilter); - public TokenFiltersDescriptor Unique(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Unique(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Unique(string tokenFilterName, UniqueTokenFilter uniqueTokenFilter) => AssignVariant(tokenFilterName, uniqueTokenFilter); - public TokenFiltersDescriptor Uppercase(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor Uppercase(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor Uppercase(string tokenFilterName, UppercaseTokenFilter uppercaseTokenFilter) => AssignVariant(tokenFilterName, uppercaseTokenFilter); - public TokenFiltersDescriptor WordDelimiterGraph(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor WordDelimiterGraph(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor WordDelimiterGraph(string tokenFilterName, WordDelimiterGraphTokenFilter wordDelimiterGraphTokenFilter) => AssignVariant(tokenFilterName, wordDelimiterGraphTokenFilter); - public TokenFiltersDescriptor WordDelimiter(string tokenFilterName) => AssignVariant(tokenFilterName, null); - public TokenFiltersDescriptor WordDelimiter(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); - public TokenFiltersDescriptor WordDelimiter(string tokenFilterName, WordDelimiterTokenFilter wordDelimiterTokenFilter) => AssignVariant(tokenFilterName, wordDelimiterTokenFilter); -} - -internal sealed partial class TokenFilterInterfaceConverter : JsonConverter -{ - public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "asciifolding": - return JsonSerializer.Deserialize(ref reader, options); - case "common_grams": - return JsonSerializer.Deserialize(ref reader, options); - case "condition": - return JsonSerializer.Deserialize(ref reader, options); - case "delimited_payload": - return JsonSerializer.Deserialize(ref reader, options); - case "dictionary_decompounder": - return JsonSerializer.Deserialize(ref reader, options); - case "edge_ngram": - return JsonSerializer.Deserialize(ref reader, options); - case "elision": - return JsonSerializer.Deserialize(ref reader, options); - case "fingerprint": - return JsonSerializer.Deserialize(ref reader, options); - case "hunspell": - return JsonSerializer.Deserialize(ref reader, options); - case "hyphenation_decompounder": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_collation": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_folding": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_normalizer": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_transform": - return JsonSerializer.Deserialize(ref reader, options); - case "keep_types": - return JsonSerializer.Deserialize(ref reader, options); - case "keep": - return JsonSerializer.Deserialize(ref reader, options); - case "keyword_marker": - return JsonSerializer.Deserialize(ref reader, options); - case "kstem": - return JsonSerializer.Deserialize(ref reader, options); - case "kuromoji_part_of_speech": - return JsonSerializer.Deserialize(ref reader, options); - case "kuromoji_readingform": - return JsonSerializer.Deserialize(ref reader, options); - case "kuromoji_stemmer": - return JsonSerializer.Deserialize(ref reader, options); - case "length": - return JsonSerializer.Deserialize(ref reader, options); - case "limit": - return JsonSerializer.Deserialize(ref reader, options); - case "lowercase": - return JsonSerializer.Deserialize(ref reader, options); - case "multiplexer": - return JsonSerializer.Deserialize(ref reader, options); - case "ngram": - return JsonSerializer.Deserialize(ref reader, options); - case "nori_part_of_speech": - return JsonSerializer.Deserialize(ref reader, options); - case "pattern_capture": - return JsonSerializer.Deserialize(ref reader, options); - case "pattern_replace": - return JsonSerializer.Deserialize(ref reader, options); - case "phonetic": - return JsonSerializer.Deserialize(ref reader, options); - case "porter_stem": - return JsonSerializer.Deserialize(ref reader, options); - case "predicate_token_filter": - return JsonSerializer.Deserialize(ref reader, options); - case "remove_duplicates": - return JsonSerializer.Deserialize(ref reader, options); - case "reverse": - return JsonSerializer.Deserialize(ref reader, options); - case "shingle": - return JsonSerializer.Deserialize(ref reader, options); - case "snowball": - return JsonSerializer.Deserialize(ref reader, options); - case "stemmer_override": - return JsonSerializer.Deserialize(ref reader, options); - case "stemmer": - return JsonSerializer.Deserialize(ref reader, options); - case "stop": - return JsonSerializer.Deserialize(ref reader, options); - case "synonym_graph": - return JsonSerializer.Deserialize(ref reader, options); - case "synonym": - return JsonSerializer.Deserialize(ref reader, options); - case "trim": - return JsonSerializer.Deserialize(ref reader, options); - case "truncate": - return JsonSerializer.Deserialize(ref reader, options); - case "unique": - return JsonSerializer.Deserialize(ref reader, options); - case "uppercase": - return JsonSerializer.Deserialize(ref reader, options); - case "word_delimiter_graph": - return JsonSerializer.Deserialize(ref reader, options); - case "word_delimiter": - return JsonSerializer.Deserialize(ref reader, options); - default: - ThrowHelper.ThrowUnknownTaggedUnionVariantJsonException(type, typeof(ITokenFilter)); - return null; - } - } - - public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "asciifolding": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.AsciiFoldingTokenFilter), options); - return; - case "common_grams": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CommonGramsTokenFilter), options); - return; - case "condition": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ConditionTokenFilter), options); - return; - case "delimited_payload": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.DelimitedPayloadTokenFilter), options); - return; - case "dictionary_decompounder": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.DictionaryDecompounderTokenFilter), options); - return; - case "edge_ngram": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramTokenFilter), options); - return; - case "elision": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ElisionTokenFilter), options); - return; - case "fingerprint": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.FingerprintTokenFilter), options); - return; - case "hunspell": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HunspellTokenFilter), options); - return; - case "hyphenation_decompounder": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.HyphenationDecompounderTokenFilter), options); - return; - case "icu_collation": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationTokenFilter), options); - return; - case "icu_folding": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuFoldingTokenFilter), options); - return; - case "icu_normalizer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuNormalizationTokenFilter), options); - return; - case "icu_transform": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuTransformTokenFilter), options); - return; - case "keep_types": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeepTypesTokenFilter), options); - return; - case "keep": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeepWordsTokenFilter), options); - return; - case "keyword_marker": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeywordMarkerTokenFilter), options); - return; - case "kstem": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KStemTokenFilter), options); - return; - case "kuromoji_part_of_speech": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiPartOfSpeechTokenFilter), options); - return; - case "kuromoji_readingform": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiReadingFormTokenFilter), options); - return; - case "kuromoji_stemmer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiStemmerTokenFilter), options); - return; - case "length": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LengthTokenFilter), options); - return; - case "limit": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LimitTokenCountTokenFilter), options); - return; - case "lowercase": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LowercaseTokenFilter), options); - return; - case "multiplexer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.MultiplexerTokenFilter), options); - return; - case "ngram": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NGramTokenFilter), options); - return; - case "nori_part_of_speech": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriPartOfSpeechTokenFilter), options); - return; - case "pattern_capture": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternCaptureTokenFilter), options); - return; - case "pattern_replace": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternReplaceTokenFilter), options); - return; - case "phonetic": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PhoneticTokenFilter), options); - return; - case "porter_stem": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PorterStemTokenFilter), options); - return; - case "predicate_token_filter": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PredicateTokenFilter), options); - return; - case "remove_duplicates": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.RemoveDuplicatesTokenFilter), options); - return; - case "reverse": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ReverseTokenFilter), options); - return; - case "shingle": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ShingleTokenFilter), options); - return; - case "snowball": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SnowballTokenFilter), options); - return; - case "stemmer_override": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StemmerOverrideTokenFilter), options); - return; - case "stemmer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StemmerTokenFilter), options); - return; - case "stop": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StopTokenFilter), options); - return; - case "synonym_graph": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymGraphTokenFilter), options); - return; - case "synonym": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SynonymTokenFilter), options); - return; - case "trim": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.TrimTokenFilter), options); - return; - case "truncate": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.TruncateTokenFilter), options); - return; - case "unique": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.UniqueTokenFilter), options); - return; - case "uppercase": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.UppercaseTokenFilter), options); - return; - case "word_delimiter_graph": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.WordDelimiterGraphTokenFilter), options); - return; - case "word_delimiter": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.WordDelimiterTokenFilter), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(TokenFilterInterfaceConverter))] -public partial interface ITokenFilter -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs deleted file mode 100644 index 0e3c17b8211..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/Tokenizers.g.cs +++ /dev/null @@ -1,257 +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.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.Analysis; - -public partial class Tokenizers : IsADictionary -{ - public Tokenizers() - { - } - - public Tokenizers(IDictionary container) : base(container) - { - } - - public void Add(string name, ITokenizer tokenizer) => BackingDictionary.Add(Sanitize(name), tokenizer); - public bool TryGetTokenizer(string name, [NotNullWhen(returnValue: true)] out ITokenizer tokenizer) => BackingDictionary.TryGetValue(Sanitize(name), out tokenizer); - - public bool TryGetTokenizer(string name, [NotNullWhen(returnValue: true)] out T? tokenizer) where T : class, ITokenizer - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - tokenizer = finalValue; - return true; - } - - tokenizer = null; - return false; - } -} - -public sealed partial class TokenizersDescriptor : IsADictionaryDescriptor -{ - public TokenizersDescriptor() : base(new Tokenizers()) - { - } - - public TokenizersDescriptor(Tokenizers tokenizers) : base(tokenizers ?? new Tokenizers()) - { - } - - public TokenizersDescriptor CharGroup(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor CharGroup(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor CharGroup(string tokenizerName, CharGroupTokenizer charGroupTokenizer) => AssignVariant(tokenizerName, charGroupTokenizer); - public TokenizersDescriptor Classic(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Classic(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Classic(string tokenizerName, ClassicTokenizer classicTokenizer) => AssignVariant(tokenizerName, classicTokenizer); - public TokenizersDescriptor EdgeNGram(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor EdgeNGram(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor EdgeNGram(string tokenizerName, EdgeNGramTokenizer edgeNGramTokenizer) => AssignVariant(tokenizerName, edgeNGramTokenizer); - public TokenizersDescriptor Icu(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Icu(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Icu(string tokenizerName, IcuTokenizer icuTokenizer) => AssignVariant(tokenizerName, icuTokenizer); - public TokenizersDescriptor Keyword(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Keyword(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Keyword(string tokenizerName, KeywordTokenizer keywordTokenizer) => AssignVariant(tokenizerName, keywordTokenizer); - public TokenizersDescriptor Kuromoji(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Kuromoji(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Kuromoji(string tokenizerName, KuromojiTokenizer kuromojiTokenizer) => AssignVariant(tokenizerName, kuromojiTokenizer); - public TokenizersDescriptor Letter(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Letter(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Letter(string tokenizerName, LetterTokenizer letterTokenizer) => AssignVariant(tokenizerName, letterTokenizer); - public TokenizersDescriptor Lowercase(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Lowercase(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Lowercase(string tokenizerName, LowercaseTokenizer lowercaseTokenizer) => AssignVariant(tokenizerName, lowercaseTokenizer); - public TokenizersDescriptor NGram(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor NGram(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor NGram(string tokenizerName, NGramTokenizer nGramTokenizer) => AssignVariant(tokenizerName, nGramTokenizer); - public TokenizersDescriptor Nori(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Nori(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Nori(string tokenizerName, NoriTokenizer noriTokenizer) => AssignVariant(tokenizerName, noriTokenizer); - public TokenizersDescriptor PathHierarchy(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor PathHierarchy(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor PathHierarchy(string tokenizerName, PathHierarchyTokenizer pathHierarchyTokenizer) => AssignVariant(tokenizerName, pathHierarchyTokenizer); - public TokenizersDescriptor Pattern(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Pattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Pattern(string tokenizerName, PatternTokenizer patternTokenizer) => AssignVariant(tokenizerName, patternTokenizer); - public TokenizersDescriptor SimplePatternSplit(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor SimplePatternSplit(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor SimplePatternSplit(string tokenizerName, SimplePatternSplitTokenizer simplePatternSplitTokenizer) => AssignVariant(tokenizerName, simplePatternSplitTokenizer); - public TokenizersDescriptor SimplePattern(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor SimplePattern(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor SimplePattern(string tokenizerName, SimplePatternTokenizer simplePatternTokenizer) => AssignVariant(tokenizerName, simplePatternTokenizer); - public TokenizersDescriptor Standard(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Standard(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Standard(string tokenizerName, StandardTokenizer standardTokenizer) => AssignVariant(tokenizerName, standardTokenizer); - public TokenizersDescriptor Thai(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Thai(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Thai(string tokenizerName, ThaiTokenizer thaiTokenizer) => AssignVariant(tokenizerName, thaiTokenizer); - public TokenizersDescriptor UaxEmailUrl(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor UaxEmailUrl(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor UaxEmailUrl(string tokenizerName, UaxEmailUrlTokenizer uaxEmailUrlTokenizer) => AssignVariant(tokenizerName, uaxEmailUrlTokenizer); - public TokenizersDescriptor Whitespace(string tokenizerName) => AssignVariant(tokenizerName, null); - public TokenizersDescriptor Whitespace(string tokenizerName, Action configure) => AssignVariant(tokenizerName, configure); - public TokenizersDescriptor Whitespace(string tokenizerName, WhitespaceTokenizer whitespaceTokenizer) => AssignVariant(tokenizerName, whitespaceTokenizer); -} - -internal sealed partial class TokenizerInterfaceConverter : JsonConverter -{ - public override ITokenizer Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "char_group": - return JsonSerializer.Deserialize(ref reader, options); - case "classic": - return JsonSerializer.Deserialize(ref reader, options); - case "edge_ngram": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_tokenizer": - return JsonSerializer.Deserialize(ref reader, options); - case "keyword": - return JsonSerializer.Deserialize(ref reader, options); - case "kuromoji_tokenizer": - return JsonSerializer.Deserialize(ref reader, options); - case "letter": - return JsonSerializer.Deserialize(ref reader, options); - case "lowercase": - return JsonSerializer.Deserialize(ref reader, options); - case "ngram": - return JsonSerializer.Deserialize(ref reader, options); - case "nori_tokenizer": - return JsonSerializer.Deserialize(ref reader, options); - case "path_hierarchy": - return JsonSerializer.Deserialize(ref reader, options); - case "pattern": - return JsonSerializer.Deserialize(ref reader, options); - case "simple_pattern_split": - return JsonSerializer.Deserialize(ref reader, options); - case "simple_pattern": - return JsonSerializer.Deserialize(ref reader, options); - case "standard": - return JsonSerializer.Deserialize(ref reader, options); - case "thai": - return JsonSerializer.Deserialize(ref reader, options); - case "uax_url_email": - return JsonSerializer.Deserialize(ref reader, options); - case "whitespace": - return JsonSerializer.Deserialize(ref reader, options); - default: - ThrowHelper.ThrowUnknownTaggedUnionVariantJsonException(type, typeof(ITokenizer)); - return null; - } - } - - public override void Write(Utf8JsonWriter writer, ITokenizer value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "char_group": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.CharGroupTokenizer), options); - return; - case "classic": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ClassicTokenizer), options); - return; - case "edge_ngram": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.EdgeNGramTokenizer), options); - return; - case "icu_tokenizer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuTokenizer), options); - return; - case "keyword": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KeywordTokenizer), options); - return; - case "kuromoji_tokenizer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.KuromojiTokenizer), options); - return; - case "letter": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LetterTokenizer), options); - return; - case "lowercase": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.LowercaseTokenizer), options); - return; - case "ngram": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NGramTokenizer), options); - return; - case "nori_tokenizer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.NoriTokenizer), options); - return; - case "path_hierarchy": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PathHierarchyTokenizer), options); - return; - case "pattern": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.PatternTokenizer), options); - return; - case "simple_pattern_split": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimplePatternSplitTokenizer), options); - return; - case "simple_pattern": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.SimplePatternTokenizer), options); - return; - case "standard": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.StandardTokenizer), options); - return; - case "thai": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.ThaiTokenizer), options); - return; - case "uax_url_email": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.UaxEmailUrlTokenizer), options); - return; - case "whitespace": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Analysis.WhitespaceTokenizer), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(TokenizerInterfaceConverter))] -public partial interface ITokenizer -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TrimTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TrimTokenFilter.g.cs deleted file mode 100644 index 6dcf0e81cdd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TrimTokenFilter.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class TrimTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "trim"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class TrimTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal TrimTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public TrimTokenFilterDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public TrimTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("trim"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - TrimTokenFilter IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TruncateTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TruncateTokenFilter.g.cs deleted file mode 100644 index 1c6d1627df0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TruncateTokenFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class TruncateTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("length")] - public int? Length { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "truncate"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class TruncateTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal TruncateTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public TruncateTokenFilterDescriptor() : base() - { - } - - private int? LengthValue { get; set; } - private string? VersionValue { get; set; } - - public TruncateTokenFilterDescriptor Length(int? length) - { - LengthValue = length; - return Self; - } - - public TruncateTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LengthValue.HasValue) - { - writer.WritePropertyName("length"); - writer.WriteNumberValue(LengthValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("truncate"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - TruncateTokenFilter IBuildableDescriptor.Build() => new() - { - Length = LengthValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs deleted file mode 100644 index d4a02ced9d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/TurkishAnalyzer.g.cs +++ /dev/null @@ -1,106 +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.Analysis; - -public sealed partial class TurkishAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection? StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "turkish"; -} - -public sealed partial class TurkishAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal TurkishAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public TurkishAnalyzerDescriptor() : base() - { - } - - private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - - public TurkishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public TurkishAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public TurkishAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (StemExclusionValue is not null) - { - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - } - - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("turkish"); - writer.WriteEndObject(); - } - - TurkishAnalyzer IBuildableDescriptor.Build() => new() - { - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs deleted file mode 100644 index 7873031f600..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UaxEmailUrlTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class UaxEmailUrlTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("max_token_length")] - public int? MaxTokenLength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "uax_url_email"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class UaxEmailUrlTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal UaxEmailUrlTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public UaxEmailUrlTokenizerDescriptor() : base() - { - } - - private int? MaxTokenLengthValue { get; set; } - private string? VersionValue { get; set; } - - public UaxEmailUrlTokenizerDescriptor MaxTokenLength(int? maxTokenLength) - { - MaxTokenLengthValue = maxTokenLength; - return Self; - } - - public UaxEmailUrlTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenLengthValue.HasValue) - { - writer.WritePropertyName("max_token_length"); - writer.WriteNumberValue(MaxTokenLengthValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("uax_url_email"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - UaxEmailUrlTokenizer IBuildableDescriptor.Build() => new() - { - MaxTokenLength = MaxTokenLengthValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UniqueTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UniqueTokenFilter.g.cs deleted file mode 100644 index 02cf7b00215..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UniqueTokenFilter.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class UniqueTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("only_on_same_position")] - public bool? OnlyOnSamePosition { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "unique"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class UniqueTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal UniqueTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public UniqueTokenFilterDescriptor() : base() - { - } - - private bool? OnlyOnSamePositionValue { get; set; } - private string? VersionValue { get; set; } - - public UniqueTokenFilterDescriptor OnlyOnSamePosition(bool? onlyOnSamePosition = true) - { - OnlyOnSamePositionValue = onlyOnSamePosition; - return Self; - } - - public UniqueTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OnlyOnSamePositionValue.HasValue) - { - writer.WritePropertyName("only_on_same_position"); - writer.WriteBooleanValue(OnlyOnSamePositionValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("unique"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - UniqueTokenFilter IBuildableDescriptor.Build() => new() - { - OnlyOnSamePosition = OnlyOnSamePositionValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs deleted file mode 100644 index f319231f7e9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/UppercaseTokenFilter.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class UppercaseTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "uppercase"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class UppercaseTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal UppercaseTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public UppercaseTokenFilterDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public UppercaseTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("uppercase"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - UppercaseTokenFilter IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs deleted file mode 100644 index b92925e537e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceAnalyzer.g.cs +++ /dev/null @@ -1,73 +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.Analysis; - -public sealed partial class WhitespaceAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "whitespace"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class WhitespaceAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal WhitespaceAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public WhitespaceAnalyzerDescriptor() : base() - { - } - - private string? VersionValue { get; set; } - - public WhitespaceAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("whitespace"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - WhitespaceAnalyzer IBuildableDescriptor.Build() => new() - { - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs deleted file mode 100644 index 874180ee5ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WhitespaceTokenizer.g.cs +++ /dev/null @@ -1,90 +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.Analysis; - -public sealed partial class WhitespaceTokenizer : ITokenizer -{ - [JsonInclude, JsonPropertyName("max_token_length")] - public int? MaxTokenLength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "whitespace"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class WhitespaceTokenizerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal WhitespaceTokenizerDescriptor(Action configure) => configure.Invoke(this); - - public WhitespaceTokenizerDescriptor() : base() - { - } - - private int? MaxTokenLengthValue { get; set; } - private string? VersionValue { get; set; } - - public WhitespaceTokenizerDescriptor MaxTokenLength(int? maxTokenLength) - { - MaxTokenLengthValue = maxTokenLength; - return Self; - } - - public WhitespaceTokenizerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenLengthValue.HasValue) - { - writer.WritePropertyName("max_token_length"); - writer.WriteNumberValue(MaxTokenLengthValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("whitespace"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - WhitespaceTokenizer IBuildableDescriptor.Build() => new() - { - MaxTokenLength = MaxTokenLengthValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs deleted file mode 100644 index 36ace00f071..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs +++ /dev/null @@ -1,314 +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.Analysis; - -public sealed partial class WordDelimiterGraphTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("adjust_offsets")] - public bool? AdjustOffsets { get; set; } - [JsonInclude, JsonPropertyName("catenate_all")] - public bool? CatenateAll { get; set; } - [JsonInclude, JsonPropertyName("catenate_numbers")] - public bool? CatenateNumbers { get; set; } - [JsonInclude, JsonPropertyName("catenate_words")] - public bool? CatenateWords { get; set; } - [JsonInclude, JsonPropertyName("generate_number_parts")] - public bool? GenerateNumberParts { get; set; } - [JsonInclude, JsonPropertyName("generate_word_parts")] - public bool? GenerateWordParts { get; set; } - [JsonInclude, JsonPropertyName("ignore_keywords")] - public bool? IgnoreKeywords { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - [JsonInclude, JsonPropertyName("protected_words")] - public ICollection? ProtectedWords { get; set; } - [JsonInclude, JsonPropertyName("protected_words_path")] - public string? ProtectedWordsPath { get; set; } - [JsonInclude, JsonPropertyName("split_on_case_change")] - public bool? SplitOnCaseChange { get; set; } - [JsonInclude, JsonPropertyName("split_on_numerics")] - public bool? SplitOnNumerics { get; set; } - [JsonInclude, JsonPropertyName("stem_english_possessive")] - public bool? StemEnglishPossessive { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "word_delimiter_graph"; - - [JsonInclude, JsonPropertyName("type_table")] - public ICollection? TypeTable { get; set; } - [JsonInclude, JsonPropertyName("type_table_path")] - public string? TypeTablePath { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class WordDelimiterGraphTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal WordDelimiterGraphTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public WordDelimiterGraphTokenFilterDescriptor() : base() - { - } - - private bool? AdjustOffsetsValue { get; set; } - private bool? CatenateAllValue { get; set; } - private bool? CatenateNumbersValue { get; set; } - private bool? CatenateWordsValue { get; set; } - private bool? GenerateNumberPartsValue { get; set; } - private bool? GenerateWordPartsValue { get; set; } - private bool? IgnoreKeywordsValue { get; set; } - private bool? PreserveOriginalValue { get; set; } - private ICollection? ProtectedWordsValue { get; set; } - private string? ProtectedWordsPathValue { get; set; } - private bool? SplitOnCaseChangeValue { get; set; } - private bool? SplitOnNumericsValue { get; set; } - private bool? StemEnglishPossessiveValue { get; set; } - private ICollection? TypeTableValue { get; set; } - private string? TypeTablePathValue { get; set; } - private string? VersionValue { get; set; } - - public WordDelimiterGraphTokenFilterDescriptor AdjustOffsets(bool? adjustOffsets = true) - { - AdjustOffsetsValue = adjustOffsets; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor CatenateAll(bool? catenateAll = true) - { - CatenateAllValue = catenateAll; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor CatenateNumbers(bool? catenateNumbers = true) - { - CatenateNumbersValue = catenateNumbers; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor CatenateWords(bool? catenateWords = true) - { - CatenateWordsValue = catenateWords; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor GenerateNumberParts(bool? generateNumberParts = true) - { - GenerateNumberPartsValue = generateNumberParts; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor GenerateWordParts(bool? generateWordParts = true) - { - GenerateWordPartsValue = generateWordParts; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor IgnoreKeywords(bool? ignoreKeywords = true) - { - IgnoreKeywordsValue = ignoreKeywords; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor ProtectedWords(ICollection? protectedWords) - { - ProtectedWordsValue = protectedWords; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor ProtectedWordsPath(string? protectedWordsPath) - { - ProtectedWordsPathValue = protectedWordsPath; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor SplitOnCaseChange(bool? splitOnCaseChange = true) - { - SplitOnCaseChangeValue = splitOnCaseChange; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor SplitOnNumerics(bool? splitOnNumerics = true) - { - SplitOnNumericsValue = splitOnNumerics; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor StemEnglishPossessive(bool? stemEnglishPossessive = true) - { - StemEnglishPossessiveValue = stemEnglishPossessive; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor TypeTable(ICollection? typeTable) - { - TypeTableValue = typeTable; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor TypeTablePath(string? typeTablePath) - { - TypeTablePathValue = typeTablePath; - return Self; - } - - public WordDelimiterGraphTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AdjustOffsetsValue.HasValue) - { - writer.WritePropertyName("adjust_offsets"); - writer.WriteBooleanValue(AdjustOffsetsValue.Value); - } - - if (CatenateAllValue.HasValue) - { - writer.WritePropertyName("catenate_all"); - writer.WriteBooleanValue(CatenateAllValue.Value); - } - - if (CatenateNumbersValue.HasValue) - { - writer.WritePropertyName("catenate_numbers"); - writer.WriteBooleanValue(CatenateNumbersValue.Value); - } - - if (CatenateWordsValue.HasValue) - { - writer.WritePropertyName("catenate_words"); - writer.WriteBooleanValue(CatenateWordsValue.Value); - } - - if (GenerateNumberPartsValue.HasValue) - { - writer.WritePropertyName("generate_number_parts"); - writer.WriteBooleanValue(GenerateNumberPartsValue.Value); - } - - if (GenerateWordPartsValue.HasValue) - { - writer.WritePropertyName("generate_word_parts"); - writer.WriteBooleanValue(GenerateWordPartsValue.Value); - } - - if (IgnoreKeywordsValue.HasValue) - { - writer.WritePropertyName("ignore_keywords"); - writer.WriteBooleanValue(IgnoreKeywordsValue.Value); - } - - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - if (ProtectedWordsValue is not null) - { - writer.WritePropertyName("protected_words"); - JsonSerializer.Serialize(writer, ProtectedWordsValue, options); - } - - if (!string.IsNullOrEmpty(ProtectedWordsPathValue)) - { - writer.WritePropertyName("protected_words_path"); - writer.WriteStringValue(ProtectedWordsPathValue); - } - - if (SplitOnCaseChangeValue.HasValue) - { - writer.WritePropertyName("split_on_case_change"); - writer.WriteBooleanValue(SplitOnCaseChangeValue.Value); - } - - if (SplitOnNumericsValue.HasValue) - { - writer.WritePropertyName("split_on_numerics"); - writer.WriteBooleanValue(SplitOnNumericsValue.Value); - } - - if (StemEnglishPossessiveValue.HasValue) - { - writer.WritePropertyName("stem_english_possessive"); - writer.WriteBooleanValue(StemEnglishPossessiveValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("word_delimiter_graph"); - if (TypeTableValue is not null) - { - writer.WritePropertyName("type_table"); - JsonSerializer.Serialize(writer, TypeTableValue, options); - } - - if (!string.IsNullOrEmpty(TypeTablePathValue)) - { - writer.WritePropertyName("type_table_path"); - writer.WriteStringValue(TypeTablePathValue); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - WordDelimiterGraphTokenFilter IBuildableDescriptor.Build() => new() - { - AdjustOffsets = AdjustOffsetsValue, - CatenateAll = CatenateAllValue, - CatenateNumbers = CatenateNumbersValue, - CatenateWords = CatenateWordsValue, - GenerateNumberParts = GenerateNumberPartsValue, - GenerateWordParts = GenerateWordPartsValue, - IgnoreKeywords = IgnoreKeywordsValue, - PreserveOriginal = PreserveOriginalValue, - ProtectedWords = ProtectedWordsValue, - ProtectedWordsPath = ProtectedWordsPathValue, - SplitOnCaseChange = SplitOnCaseChangeValue, - SplitOnNumerics = SplitOnNumericsValue, - StemEnglishPossessive = StemEnglishPossessiveValue, - TypeTable = TypeTableValue, - TypeTablePath = TypeTablePathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs deleted file mode 100644 index ca6c53f0c88..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs +++ /dev/null @@ -1,282 +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.Analysis; - -public sealed partial class WordDelimiterTokenFilter : ITokenFilter -{ - [JsonInclude, JsonPropertyName("catenate_all")] - public bool? CatenateAll { get; set; } - [JsonInclude, JsonPropertyName("catenate_numbers")] - public bool? CatenateNumbers { get; set; } - [JsonInclude, JsonPropertyName("catenate_words")] - public bool? CatenateWords { get; set; } - [JsonInclude, JsonPropertyName("generate_number_parts")] - public bool? GenerateNumberParts { get; set; } - [JsonInclude, JsonPropertyName("generate_word_parts")] - public bool? GenerateWordParts { get; set; } - [JsonInclude, JsonPropertyName("preserve_original")] - public bool? PreserveOriginal { get; set; } - [JsonInclude, JsonPropertyName("protected_words")] - public ICollection? ProtectedWords { get; set; } - [JsonInclude, JsonPropertyName("protected_words_path")] - public string? ProtectedWordsPath { get; set; } - [JsonInclude, JsonPropertyName("split_on_case_change")] - public bool? SplitOnCaseChange { get; set; } - [JsonInclude, JsonPropertyName("split_on_numerics")] - public bool? SplitOnNumerics { get; set; } - [JsonInclude, JsonPropertyName("stem_english_possessive")] - public bool? StemEnglishPossessive { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "word_delimiter"; - - [JsonInclude, JsonPropertyName("type_table")] - public ICollection? TypeTable { get; set; } - [JsonInclude, JsonPropertyName("type_table_path")] - public string? TypeTablePath { get; set; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class WordDelimiterTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal WordDelimiterTokenFilterDescriptor(Action configure) => configure.Invoke(this); - - public WordDelimiterTokenFilterDescriptor() : base() - { - } - - private bool? CatenateAllValue { get; set; } - private bool? CatenateNumbersValue { get; set; } - private bool? CatenateWordsValue { get; set; } - private bool? GenerateNumberPartsValue { get; set; } - private bool? GenerateWordPartsValue { get; set; } - private bool? PreserveOriginalValue { get; set; } - private ICollection? ProtectedWordsValue { get; set; } - private string? ProtectedWordsPathValue { get; set; } - private bool? SplitOnCaseChangeValue { get; set; } - private bool? SplitOnNumericsValue { get; set; } - private bool? StemEnglishPossessiveValue { get; set; } - private ICollection? TypeTableValue { get; set; } - private string? TypeTablePathValue { get; set; } - private string? VersionValue { get; set; } - - public WordDelimiterTokenFilterDescriptor CatenateAll(bool? catenateAll = true) - { - CatenateAllValue = catenateAll; - return Self; - } - - public WordDelimiterTokenFilterDescriptor CatenateNumbers(bool? catenateNumbers = true) - { - CatenateNumbersValue = catenateNumbers; - return Self; - } - - public WordDelimiterTokenFilterDescriptor CatenateWords(bool? catenateWords = true) - { - CatenateWordsValue = catenateWords; - return Self; - } - - public WordDelimiterTokenFilterDescriptor GenerateNumberParts(bool? generateNumberParts = true) - { - GenerateNumberPartsValue = generateNumberParts; - return Self; - } - - public WordDelimiterTokenFilterDescriptor GenerateWordParts(bool? generateWordParts = true) - { - GenerateWordPartsValue = generateWordParts; - return Self; - } - - public WordDelimiterTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) - { - PreserveOriginalValue = preserveOriginal; - return Self; - } - - public WordDelimiterTokenFilterDescriptor ProtectedWords(ICollection? protectedWords) - { - ProtectedWordsValue = protectedWords; - return Self; - } - - public WordDelimiterTokenFilterDescriptor ProtectedWordsPath(string? protectedWordsPath) - { - ProtectedWordsPathValue = protectedWordsPath; - return Self; - } - - public WordDelimiterTokenFilterDescriptor SplitOnCaseChange(bool? splitOnCaseChange = true) - { - SplitOnCaseChangeValue = splitOnCaseChange; - return Self; - } - - public WordDelimiterTokenFilterDescriptor SplitOnNumerics(bool? splitOnNumerics = true) - { - SplitOnNumericsValue = splitOnNumerics; - return Self; - } - - public WordDelimiterTokenFilterDescriptor StemEnglishPossessive(bool? stemEnglishPossessive = true) - { - StemEnglishPossessiveValue = stemEnglishPossessive; - return Self; - } - - public WordDelimiterTokenFilterDescriptor TypeTable(ICollection? typeTable) - { - TypeTableValue = typeTable; - return Self; - } - - public WordDelimiterTokenFilterDescriptor TypeTablePath(string? typeTablePath) - { - TypeTablePathValue = typeTablePath; - return Self; - } - - public WordDelimiterTokenFilterDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CatenateAllValue.HasValue) - { - writer.WritePropertyName("catenate_all"); - writer.WriteBooleanValue(CatenateAllValue.Value); - } - - if (CatenateNumbersValue.HasValue) - { - writer.WritePropertyName("catenate_numbers"); - writer.WriteBooleanValue(CatenateNumbersValue.Value); - } - - if (CatenateWordsValue.HasValue) - { - writer.WritePropertyName("catenate_words"); - writer.WriteBooleanValue(CatenateWordsValue.Value); - } - - if (GenerateNumberPartsValue.HasValue) - { - writer.WritePropertyName("generate_number_parts"); - writer.WriteBooleanValue(GenerateNumberPartsValue.Value); - } - - if (GenerateWordPartsValue.HasValue) - { - writer.WritePropertyName("generate_word_parts"); - writer.WriteBooleanValue(GenerateWordPartsValue.Value); - } - - if (PreserveOriginalValue.HasValue) - { - writer.WritePropertyName("preserve_original"); - writer.WriteBooleanValue(PreserveOriginalValue.Value); - } - - if (ProtectedWordsValue is not null) - { - writer.WritePropertyName("protected_words"); - JsonSerializer.Serialize(writer, ProtectedWordsValue, options); - } - - if (!string.IsNullOrEmpty(ProtectedWordsPathValue)) - { - writer.WritePropertyName("protected_words_path"); - writer.WriteStringValue(ProtectedWordsPathValue); - } - - if (SplitOnCaseChangeValue.HasValue) - { - writer.WritePropertyName("split_on_case_change"); - writer.WriteBooleanValue(SplitOnCaseChangeValue.Value); - } - - if (SplitOnNumericsValue.HasValue) - { - writer.WritePropertyName("split_on_numerics"); - writer.WriteBooleanValue(SplitOnNumericsValue.Value); - } - - if (StemEnglishPossessiveValue.HasValue) - { - writer.WritePropertyName("stem_english_possessive"); - writer.WriteBooleanValue(StemEnglishPossessiveValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("word_delimiter"); - if (TypeTableValue is not null) - { - writer.WritePropertyName("type_table"); - JsonSerializer.Serialize(writer, TypeTableValue, options); - } - - if (!string.IsNullOrEmpty(TypeTablePathValue)) - { - writer.WritePropertyName("type_table_path"); - writer.WriteStringValue(TypeTablePathValue); - } - - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - WordDelimiterTokenFilter IBuildableDescriptor.Build() => new() - { - CatenateAll = CatenateAllValue, - CatenateNumbers = CatenateNumbersValue, - CatenateWords = CatenateWordsValue, - GenerateNumberParts = GenerateNumberPartsValue, - GenerateWordParts = GenerateWordPartsValue, - PreserveOriginal = PreserveOriginalValue, - ProtectedWords = ProtectedWordsValue, - ProtectedWordsPath = ProtectedWordsPathValue, - SplitOnCaseChange = SplitOnCaseChangeValue, - SplitOnNumerics = SplitOnNumericsValue, - StemEnglishPossessive = StemEnglishPossessiveValue, - TypeTable = TypeTableValue, - TypeTablePath = TypeTablePathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/AsyncSearch/AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/AsyncSearch/AsyncSearch.g.cs deleted file mode 100644 index f9bde910d58..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/AsyncSearch/AsyncSearch.g.cs +++ /dev/null @@ -1,79 +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.AsyncSearch; - -public sealed partial class AsyncSearch -{ - /// - /// - /// Partial aggregations results, coming from the shards that have already completed the execution of the query. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("_clusters")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata HitsMetadata { get; init; } - [JsonInclude, JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - - /// - /// - /// Indicates how many reductions of the results have been performed. - /// If this number increases compared to the last retrieved results for a get asynch search request, you can expect additional results included in the search response. - /// - /// - [JsonInclude, JsonPropertyName("num_reduce_phases")] - public long? NumReducePhases { get; init; } - [JsonInclude, JsonPropertyName("pit_id")] - public string? PitId { get; init; } - [JsonInclude, JsonPropertyName("profile")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Profile? Profile { get; init; } - [JsonInclude, JsonPropertyName("_scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollId? ScrollId { get; init; } - - /// - /// - /// Indicates how many shards have run the query. - /// Note that in order for shard results to be included in the search response, they need to be reduced first. - /// - /// - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestDictionary? Suggest { get; init; } - [JsonInclude, JsonPropertyName("terminated_early")] - public bool? TerminatedEarly { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkIndexByScrollFailure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkIndexByScrollFailure.g.cs deleted file mode 100644 index 28add2be38b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkIndexByScrollFailure.g.cs +++ /dev/null @@ -1,42 +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 BulkIndexByScrollFailure -{ - [JsonInclude, JsonPropertyName("cause")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause Cause { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("status")] - public int Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkStats.g.cs deleted file mode 100644 index 3766a6beae2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/BulkStats.g.cs +++ /dev/null @@ -1,50 +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 BulkStats -{ - [JsonInclude, JsonPropertyName("avg_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? AvgSize { get; init; } - [JsonInclude, JsonPropertyName("avg_size_in_bytes")] - public long AvgSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("avg_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? AvgTime { get; init; } - [JsonInclude, JsonPropertyName("avg_time_in_millis")] - public long AvgTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total_operations")] - public long TotalOperations { get; init; } - [JsonInclude, JsonPropertyName("total_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TotalSize { get; init; } - [JsonInclude, JsonPropertyName("total_size_in_bytes")] - public long TotalSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs deleted file mode 100644 index 1a8b867dea2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ByteSize.g.cs +++ /dev/null @@ -1,45 +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.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; - -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class ByteSize : Union -{ - public ByteSize(long Bytesize) : base(Bytesize) - { - } - - public ByteSize(string Bytesize) : base(Bytesize) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationDecision.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationDecision.g.cs deleted file mode 100644 index c1d6a8c5cb7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationDecision.g.cs +++ /dev/null @@ -1,38 +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.Cluster; - -public sealed partial class AllocationDecision -{ - [JsonInclude, JsonPropertyName("decider")] - public string Decider { get; init; } - [JsonInclude, JsonPropertyName("decision")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.AllocationExplainDecision Decision { get; init; } - [JsonInclude, JsonPropertyName("explanation")] - public string Explanation { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationStore.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationStore.g.cs deleted file mode 100644 index ad6ec5dddd6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/AllocationStore.g.cs +++ /dev/null @@ -1,44 +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.Cluster; - -public sealed partial class AllocationStore -{ - [JsonInclude, JsonPropertyName("allocation_id")] - public string AllocationId { get; init; } - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } - [JsonInclude, JsonPropertyName("in_sync")] - public bool InSync { get; init; } - [JsonInclude, JsonPropertyName("matching_size_in_bytes")] - public long MatchingSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("matching_sync_id")] - public bool MatchingSyncId { get; init; } - [JsonInclude, JsonPropertyName("store_exception")] - public string StoreException { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CharFilterTypes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CharFilterTypes.g.cs deleted file mode 100644 index b7e4bc7978b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CharFilterTypes.g.cs +++ /dev/null @@ -1,95 +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.Cluster; - -public sealed partial class CharFilterTypes -{ - /// - /// - /// Contains statistics about analyzer types used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("analyzer_types")] - public IReadOnlyCollection AnalyzerTypes { get; init; } - - /// - /// - /// Contains statistics about built-in analyzers used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("built_in_analyzers")] - public IReadOnlyCollection BuiltInAnalyzers { get; init; } - - /// - /// - /// Contains statistics about built-in character filters used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("built_in_char_filters")] - public IReadOnlyCollection BuiltInCharFilters { get; init; } - - /// - /// - /// Contains statistics about built-in token filters used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("built_in_filters")] - public IReadOnlyCollection BuiltInFilters { get; init; } - - /// - /// - /// Contains statistics about built-in tokenizers used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("built_in_tokenizers")] - public IReadOnlyCollection BuiltInTokenizers { get; init; } - - /// - /// - /// Contains statistics about character filter types used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("char_filter_types")] - public IReadOnlyCollection CharFilterTypes2 { get; init; } - - /// - /// - /// Contains statistics about token filter types used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("filter_types")] - public IReadOnlyCollection FilterTypes { get; init; } - - /// - /// - /// Contains statistics about tokenizer types used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("tokenizer_types")] - public IReadOnlyCollection TokenizerTypes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterFileSystem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterFileSystem.g.cs deleted file mode 100644 index d30cd548905..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterFileSystem.g.cs +++ /dev/null @@ -1,57 +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.Cluster; - -public sealed partial class ClusterFileSystem -{ - /// - /// - /// Total number of bytes available to JVM in file stores across all selected nodes. - /// Depending on operating system or process-level restrictions, this number may be less than nodes.fs.free_in_byes. - /// This is the actual amount of free disk space the selected Elasticsearch nodes can use. - /// - /// - [JsonInclude, JsonPropertyName("available_in_bytes")] - public long AvailableInBytes { get; init; } - - /// - /// - /// Total number of unallocated bytes in file stores across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("free_in_bytes")] - public long FreeInBytes { get; init; } - - /// - /// - /// Total size, in bytes, of all file stores across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long TotalInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndices.g.cs deleted file mode 100644 index 3cfe0fc1c4d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndices.g.cs +++ /dev/null @@ -1,119 +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.Cluster; - -public sealed partial class ClusterIndices -{ - /// - /// - /// Contains statistics about analyzers and analyzer components used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.CharFilterTypes Analysis { get; init; } - - /// - /// - /// Contains statistics about memory used for completion in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("completion")] - public Elastic.Clients.Elasticsearch.Serverless.CompletionStats Completion { get; init; } - - /// - /// - /// Total number of indices with shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// Contains counts for documents in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("docs")] - public Elastic.Clients.Elasticsearch.Serverless.DocStats Docs { get; init; } - - /// - /// - /// Contains statistics about the field data cache of selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("fielddata")] - public Elastic.Clients.Elasticsearch.Serverless.FielddataStats Fielddata { get; init; } - - /// - /// - /// Contains statistics about field mappings in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.FieldTypesMappings Mappings { get; init; } - - /// - /// - /// Contains statistics about the query cache of selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("query_cache")] - public Elastic.Clients.Elasticsearch.Serverless.QueryCacheStats QueryCache { get; init; } - - /// - /// - /// Contains statistics about segments in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("segments")] - public Elastic.Clients.Elasticsearch.Serverless.SegmentsStats Segments { get; init; } - - /// - /// - /// Contains statistics about indices with shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterIndicesShards Shards { get; init; } - - /// - /// - /// Contains statistics about the size of shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("store")] - public Elastic.Clients.Elasticsearch.Serverless.StoreStats Store { get; init; } - - /// - /// - /// Contains statistics about analyzers and analyzer components used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("versions")] - public IReadOnlyCollection? Versions { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShards.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShards.g.cs deleted file mode 100644 index fd41d982203..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShards.g.cs +++ /dev/null @@ -1,68 +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.Cluster; - -/// -/// -/// Contains statistics about shards assigned to selected nodes. -/// -/// -public sealed partial class ClusterIndicesShards -{ - /// - /// - /// Contains statistics about shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterIndicesShardsIndex? Index { get; init; } - - /// - /// - /// Number of primary shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("primaries")] - public double? Primaries { get; init; } - - /// - /// - /// Ratio of replica shards to primary shards across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("replication")] - public double? Replication { get; init; } - - /// - /// - /// Total number of shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public double? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs deleted file mode 100644 index 1c84635282d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs +++ /dev/null @@ -1,55 +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.Cluster; - -public sealed partial class ClusterIndicesShardsIndex -{ - /// - /// - /// Contains statistics about the number of primary shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("primaries")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterShardMetrics Primaries { get; init; } - - /// - /// - /// Contains statistics about the number of replication shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("replication")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterShardMetrics Replication { get; init; } - - /// - /// - /// Contains statistics about the number of shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterShardMetrics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterInfo.g.cs deleted file mode 100644 index 8c55dfd3e76..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterInfo.g.cs +++ /dev/null @@ -1,42 +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.Cluster; - -public sealed partial class ClusterInfo -{ - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyDictionary Nodes { get; init; } - [JsonInclude, JsonPropertyName("reserved_sizes")] - public IReadOnlyCollection ReservedSizes { get; init; } - [JsonInclude, JsonPropertyName("shard_data_set_sizes")] - public IReadOnlyDictionary? ShardDataSetSizes { get; init; } - [JsonInclude, JsonPropertyName("shard_paths")] - public IReadOnlyDictionary ShardPaths { get; init; } - [JsonInclude, JsonPropertyName("shard_sizes")] - public IReadOnlyDictionary ShardSizes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIngest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIngest.g.cs deleted file mode 100644 index 9a5f7cbff91..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterIngest.g.cs +++ /dev/null @@ -1,36 +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.Cluster; - -public sealed partial class ClusterIngest -{ - [JsonInclude, JsonPropertyName("number_of_pipelines")] - public int NumberOfPipelines { get; init; } - [JsonInclude, JsonPropertyName("processor_stats")] - public IReadOnlyDictionary ProcessorStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvm.g.cs deleted file mode 100644 index 0bb8bdd2d38..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvm.g.cs +++ /dev/null @@ -1,63 +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.Cluster; - -public sealed partial class ClusterJvm -{ - /// - /// - /// Uptime duration, in milliseconds, since JVM last started. - /// - /// - [JsonInclude, JsonPropertyName("max_uptime_in_millis")] - public long MaxUptimeInMillis { get; init; } - - /// - /// - /// Contains statistics about memory used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterJvmMemory Mem { get; init; } - - /// - /// - /// Number of active threads in use by JVM across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("threads")] - public long Threads { get; init; } - - /// - /// - /// Contains statistics about the JVM versions used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("versions")] - public IReadOnlyCollection Versions { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmMemory.g.cs deleted file mode 100644 index 4852724d45f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmMemory.g.cs +++ /dev/null @@ -1,47 +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.Cluster; - -public sealed partial class ClusterJvmMemory -{ - /// - /// - /// Maximum amount of memory, in bytes, available for use by the heap across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("heap_max_in_bytes")] - public long HeapMaxInBytes { get; init; } - - /// - /// - /// Memory, in bytes, currently in use by the heap across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("heap_used_in_bytes")] - public long HeapUsedInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmVersion.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmVersion.g.cs deleted file mode 100644 index cec8a46d2a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterJvmVersion.g.cs +++ /dev/null @@ -1,88 +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.Cluster; - -public sealed partial class ClusterJvmVersion -{ - /// - /// - /// Always true. All distributions come with a bundled Java Development Kit (JDK). - /// - /// - [JsonInclude, JsonPropertyName("bundled_jdk")] - public bool BundledJdk { get; init; } - - /// - /// - /// Total number of selected nodes using JVM. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// If true, a bundled JDK is in use by JVM. - /// - /// - [JsonInclude, JsonPropertyName("using_bundled_jdk")] - public bool UsingBundledJdk { get; init; } - - /// - /// - /// Version of JVM used by one or more selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } - - /// - /// - /// Name of the JVM. - /// - /// - [JsonInclude, JsonPropertyName("vm_name")] - public string VmName { get; init; } - - /// - /// - /// Vendor of the JVM. - /// - /// - [JsonInclude, JsonPropertyName("vm_vendor")] - public string VmVendor { get; init; } - - /// - /// - /// Full version number of JVM. - /// The full version number includes a plus sign (+) followed by the build number. - /// - /// - [JsonInclude, JsonPropertyName("vm_version")] - public string VmVersion { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs deleted file mode 100644 index 42726c2770f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs +++ /dev/null @@ -1,47 +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.Cluster; - -public sealed partial class ClusterNetworkTypes -{ - /// - /// - /// Contains statistics about the HTTP network types used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("http_types")] - public IReadOnlyDictionary HttpTypes { get; init; } - - /// - /// - /// Contains statistics about the transport network types used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("transport_types")] - public IReadOnlyDictionary TransportTypes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodeCount.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodeCount.g.cs deleted file mode 100644 index 6d4180f2f52..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodeCount.g.cs +++ /dev/null @@ -1,60 +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.Cluster; - -public sealed partial class ClusterNodeCount -{ - [JsonInclude, JsonPropertyName("coordinating_only")] - public int CoordinatingOnly { get; init; } - [JsonInclude, JsonPropertyName("data")] - public int Data { get; init; } - [JsonInclude, JsonPropertyName("data_cold")] - public int DataCold { get; init; } - [JsonInclude, JsonPropertyName("data_content")] - public int DataContent { get; init; } - [JsonInclude, JsonPropertyName("data_frozen")] - public int? DataFrozen { get; init; } - [JsonInclude, JsonPropertyName("data_hot")] - public int DataHot { get; init; } - [JsonInclude, JsonPropertyName("data_warm")] - public int DataWarm { get; init; } - [JsonInclude, JsonPropertyName("ingest")] - public int Ingest { get; init; } - [JsonInclude, JsonPropertyName("master")] - public int Master { get; init; } - [JsonInclude, JsonPropertyName("ml")] - public int Ml { get; init; } - [JsonInclude, JsonPropertyName("remote_cluster_client")] - public int RemoteClusterClient { get; init; } - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } - [JsonInclude, JsonPropertyName("transform")] - public int Transform { get; init; } - [JsonInclude, JsonPropertyName("voting_only")] - public int VotingOnly { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodes.g.cs deleted file mode 100644 index 729a29ce92c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterNodes.g.cs +++ /dev/null @@ -1,116 +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.Cluster; - -public sealed partial class ClusterNodes -{ - /// - /// - /// Contains counts for nodes selected by the request’s node filters. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterNodeCount Count { get; init; } - - /// - /// - /// Contains statistics about the discovery types used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("discovery_types")] - public IReadOnlyDictionary DiscoveryTypes { get; init; } - - /// - /// - /// Contains statistics about file stores by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("fs")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterFileSystem Fs { get; init; } - [JsonInclude, JsonPropertyName("indexing_pressure")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.IndexingPressure IndexingPressure { get; init; } - [JsonInclude, JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterIngest Ingest { get; init; } - - /// - /// - /// Contains statistics about the Java Virtual Machines (JVMs) used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterJvm Jvm { get; init; } - - /// - /// - /// Contains statistics about the transport and HTTP networks used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("network_types")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterNetworkTypes NetworkTypes { get; init; } - - /// - /// - /// Contains statistics about the operating systems used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("os")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterOperatingSystem Os { get; init; } - - /// - /// - /// Contains statistics about Elasticsearch distributions installed on selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("packaging_types")] - public IReadOnlyCollection PackagingTypes { get; init; } - - /// - /// - /// Contains statistics about installed plugins and modules by selected nodes. - /// If no plugins or modules are installed, this array is empty. - /// - /// - [JsonInclude, JsonPropertyName("plugins")] - public IReadOnlyCollection Plugins { get; init; } - - /// - /// - /// Contains statistics about processes used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("process")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterProcess Process { get; init; } - - /// - /// - /// Array of Elasticsearch versions used on selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("versions")] - public IReadOnlyCollection Versions { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs deleted file mode 100644 index d222650835a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs +++ /dev/null @@ -1,81 +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.Cluster; - -public sealed partial class ClusterOperatingSystem -{ - /// - /// - /// Number of processors used to calculate thread pool size across all selected nodes. - /// This number can be set with the processors setting of a node and defaults to the number of processors reported by the operating system. - /// In both cases, this number will never be larger than 32. - /// - /// - [JsonInclude, JsonPropertyName("allocated_processors")] - public int AllocatedProcessors { get; init; } - - /// - /// - /// Contains statistics about processor architectures (for example, x86_64 or aarch64) used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("architectures")] - public IReadOnlyCollection? Architectures { get; init; } - - /// - /// - /// Number of processors available to JVM across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("available_processors")] - public int AvailableProcessors { get; init; } - - /// - /// - /// Contains statistics about memory used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.OperatingSystemMemoryInfo Mem { get; init; } - - /// - /// - /// Contains statistics about operating systems used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("names")] - public IReadOnlyCollection Names { get; init; } - - /// - /// - /// Contains statistics about operating systems used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("pretty_names")] - public IReadOnlyCollection PrettyNames { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs deleted file mode 100644 index 61bdabcb62c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs +++ /dev/null @@ -1,47 +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.Cluster; - -public sealed partial class ClusterOperatingSystemArchitecture -{ - /// - /// - /// Name of an architecture used by one or more selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("arch")] - public string Arch { get; init; } - - /// - /// - /// Number of selected nodes using the architecture. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs deleted file mode 100644 index 80c7fe442a1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs +++ /dev/null @@ -1,47 +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.Cluster; - -public sealed partial class ClusterOperatingSystemName -{ - /// - /// - /// Number of selected nodes using the operating system. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Name of an operating system used by one or more selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs deleted file mode 100644 index d01cda664a6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs +++ /dev/null @@ -1,47 +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.Cluster; - -public sealed partial class ClusterOperatingSystemPrettyName -{ - /// - /// - /// Number of selected nodes using the operating system. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Human-readable name of an operating system used by one or more selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("pretty_name")] - public string PrettyName { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcess.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcess.g.cs deleted file mode 100644 index bb1f40f8d6a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcess.g.cs +++ /dev/null @@ -1,47 +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.Cluster; - -public sealed partial class ClusterProcess -{ - /// - /// - /// Contains statistics about CPU used by selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterProcessCpu Cpu { get; init; } - - /// - /// - /// Contains statistics about open file descriptors in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("open_file_descriptors")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ClusterProcessOpenFileDescriptors OpenFileDescriptors { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessCpu.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessCpu.g.cs deleted file mode 100644 index 628af314ee5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessCpu.g.cs +++ /dev/null @@ -1,40 +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.Cluster; - -public sealed partial class ClusterProcessCpu -{ - /// - /// - /// Percentage of CPU used across all selected nodes. - /// Returns -1 if not supported. - /// - /// - [JsonInclude, JsonPropertyName("percent")] - public int Percent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs deleted file mode 100644 index d83dbda5e67..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs +++ /dev/null @@ -1,58 +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.Cluster; - -public sealed partial class ClusterProcessOpenFileDescriptors -{ - /// - /// - /// Average number of concurrently open file descriptors. - /// Returns -1 if not supported. - /// - /// - [JsonInclude, JsonPropertyName("avg")] - public long Avg { get; init; } - - /// - /// - /// Maximum number of concurrently open file descriptors allowed across all selected nodes. - /// Returns -1 if not supported. - /// - /// - [JsonInclude, JsonPropertyName("max")] - public long Max { get; init; } - - /// - /// - /// Minimum number of concurrently open file descriptors across all selected nodes. - /// Returns -1 if not supported. - /// - /// - [JsonInclude, JsonPropertyName("min")] - public long Min { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessor.g.cs deleted file mode 100644 index fb7bcd0cb17..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterProcessor.g.cs +++ /dev/null @@ -1,42 +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.Cluster; - -public sealed partial class ClusterProcessor -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("current")] - public long Current { get; init; } - [JsonInclude, JsonPropertyName("failed")] - public long Failed { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterShardMetrics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterShardMetrics.g.cs deleted file mode 100644 index 1c37490ab83..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ClusterShardMetrics.g.cs +++ /dev/null @@ -1,55 +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.Cluster; - -public sealed partial class ClusterShardMetrics -{ - /// - /// - /// Mean number of shards in an index, counting only shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("avg")] - public double Avg { get; init; } - - /// - /// - /// Maximum number of shards in an index, counting only shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("max")] - public double Max { get; init; } - - /// - /// - /// Minimum number of shards in an index, counting only shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("min")] - public double Min { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplate.g.cs deleted file mode 100644 index 3ce87963c22..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplate.g.cs +++ /dev/null @@ -1,36 +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.Cluster; - -public sealed partial class ComponentTemplate -{ - [JsonInclude, JsonPropertyName("component_template")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ComponentTemplateNode ComponentTemplateNode { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateNode.g.cs deleted file mode 100644 index 2155bf8958f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateNode.g.cs +++ /dev/null @@ -1,38 +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.Cluster; - -public sealed partial class ComponentTemplateNode -{ - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.ComponentTemplateSummary Template { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs deleted file mode 100644 index fb48da5840f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs +++ /dev/null @@ -1,45 +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.Cluster; - -public sealed partial class ComponentTemplateSummary -{ - [JsonInclude, JsonPropertyName("aliases")] - public IReadOnlyDictionary? Aliases { get; init; } - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; init; } - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("settings")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings))] - public IReadOnlyDictionary? Settings { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs deleted file mode 100644 index 9ae6aadc90c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/CurrentNode.g.cs +++ /dev/null @@ -1,44 +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.Cluster; - -public sealed partial class CurrentNode -{ - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary Attributes { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - [JsonInclude, JsonPropertyName("weight_ranking")] - public int WeightRanking { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/DiskUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/DiskUsage.g.cs deleted file mode 100644 index f930354f4a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/DiskUsage.g.cs +++ /dev/null @@ -1,44 +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.Cluster; - -public sealed partial class DiskUsage -{ - [JsonInclude, JsonPropertyName("free_bytes")] - public long FreeBytes { get; init; } - [JsonInclude, JsonPropertyName("free_disk_percent")] - public double FreeDiskPercent { get; init; } - [JsonInclude, JsonPropertyName("path")] - public string Path { get; init; } - [JsonInclude, JsonPropertyName("total_bytes")] - public long TotalBytes { get; init; } - [JsonInclude, JsonPropertyName("used_bytes")] - public long UsedBytes { get; init; } - [JsonInclude, JsonPropertyName("used_disk_percent")] - public double UsedDiskPercent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypes.g.cs deleted file mode 100644 index b0cec494d36..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypes.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.Cluster; - -public sealed partial class FieldTypes -{ - /// - /// - /// The number of occurrences of the field type in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// The number of indices containing the field type in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("index_count")] - public int IndexCount { get; init; } - - /// - /// - /// For dense_vector field types, number of indexed vector types in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("indexed_vector_count")] - public long? IndexedVectorCount { get; init; } - - /// - /// - /// For dense_vector field types, the maximum dimension of all indexed vector types in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("indexed_vector_dim_max")] - public long? IndexedVectorDimMax { get; init; } - - /// - /// - /// For dense_vector field types, the minimum dimension of all indexed vector types in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("indexed_vector_dim_min")] - public long? IndexedVectorDimMin { get; init; } - - /// - /// - /// The name for the field type in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// The number of fields that declare a script. - /// - /// - [JsonInclude, JsonPropertyName("script_count")] - public int? ScriptCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypesMappings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypesMappings.g.cs deleted file mode 100644 index a557cde8bbb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/FieldTypesMappings.g.cs +++ /dev/null @@ -1,79 +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.Cluster; - -public sealed partial class FieldTypesMappings -{ - /// - /// - /// Contains statistics about field data types used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("field_types")] - public IReadOnlyCollection FieldTypes { get; init; } - - /// - /// - /// Contains statistics about runtime field data types used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("runtime_field_types")] - public IReadOnlyCollection? RuntimeFieldTypes { get; init; } - - /// - /// - /// Total number of fields in all non-system indices, accounting for mapping deduplication. - /// - /// - [JsonInclude, JsonPropertyName("total_deduplicated_field_count")] - public int? TotalDeduplicatedFieldCount { get; init; } - - /// - /// - /// Total size of all mappings after deduplication and compression. - /// - /// - [JsonInclude, JsonPropertyName("total_deduplicated_mapping_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TotalDeduplicatedMappingSize { get; init; } - - /// - /// - /// Total size of all mappings, in bytes, after deduplication and compression. - /// - /// - [JsonInclude, JsonPropertyName("total_deduplicated_mapping_size_in_bytes")] - public long? TotalDeduplicatedMappingSizeInBytes { get; init; } - - /// - /// - /// Total number of fields in all non-system indices. - /// - /// - [JsonInclude, JsonPropertyName("total_field_count")] - public int? TotalFieldCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs deleted file mode 100644 index 8731a5b847d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexHealthStats.g.cs +++ /dev/null @@ -1,52 +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.Cluster; - -public sealed partial class IndexHealthStats -{ - [JsonInclude, JsonPropertyName("active_primary_shards")] - public int ActivePrimaryShards { get; init; } - [JsonInclude, JsonPropertyName("active_shards")] - public int ActiveShards { get; init; } - [JsonInclude, JsonPropertyName("initializing_shards")] - public int InitializingShards { get; init; } - [JsonInclude, JsonPropertyName("number_of_replicas")] - public int NumberOfReplicas { get; init; } - [JsonInclude, JsonPropertyName("number_of_shards")] - public int NumberOfShards { get; init; } - [JsonInclude, JsonPropertyName("relocating_shards")] - public int RelocatingShards { get; init; } - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyDictionary? Shards { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("unassigned_primary_shards")] - public int UnassignedPrimaryShards { get; init; } - [JsonInclude, JsonPropertyName("unassigned_shards")] - public int UnassignedShards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressure.g.cs deleted file mode 100644 index 04570263351..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressure.g.cs +++ /dev/null @@ -1,34 +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.Cluster; - -public sealed partial class IndexingPressure -{ - [JsonInclude, JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.IndexingPressureMemory Memory { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemory.g.cs deleted file mode 100644 index 522db76567f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemory.g.cs +++ /dev/null @@ -1,38 +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.Cluster; - -public sealed partial class IndexingPressureMemory -{ - [JsonInclude, JsonPropertyName("current")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.IndexingPressureMemorySummary Current { get; init; } - [JsonInclude, JsonPropertyName("limit_in_bytes")] - public long LimitInBytes { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.IndexingPressureMemorySummary Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs deleted file mode 100644 index edb0e5c0743..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs +++ /dev/null @@ -1,48 +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.Cluster; - -public sealed partial class IndexingPressureMemorySummary -{ - [JsonInclude, JsonPropertyName("all_in_bytes")] - public long AllInBytes { get; init; } - [JsonInclude, JsonPropertyName("combined_coordinating_and_primary_in_bytes")] - public long CombinedCoordinatingAndPrimaryInBytes { get; init; } - [JsonInclude, JsonPropertyName("coordinating_in_bytes")] - public long CoordinatingInBytes { get; init; } - [JsonInclude, JsonPropertyName("coordinating_rejections")] - public long? CoordinatingRejections { get; init; } - [JsonInclude, JsonPropertyName("primary_in_bytes")] - public long PrimaryInBytes { get; init; } - [JsonInclude, JsonPropertyName("primary_rejections")] - public long? PrimaryRejections { get; init; } - [JsonInclude, JsonPropertyName("replica_in_bytes")] - public long ReplicaInBytes { get; init; } - [JsonInclude, JsonPropertyName("replica_rejections")] - public long? ReplicaRejections { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndicesVersions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndicesVersions.g.cs deleted file mode 100644 index 76b70da60a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/IndicesVersions.g.cs +++ /dev/null @@ -1,40 +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.Cluster; - -public sealed partial class IndicesVersions -{ - [JsonInclude, JsonPropertyName("index_count")] - public int IndexCount { get; init; } - [JsonInclude, JsonPropertyName("primary_shard_count")] - public int PrimaryShardCount { get; init; } - [JsonInclude, JsonPropertyName("total_primary_bytes")] - public long TotalPrimaryBytes { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs deleted file mode 100644 index 9eddb8404ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs +++ /dev/null @@ -1,50 +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.Cluster; - -public sealed partial class NodeAllocationExplanation -{ - [JsonInclude, JsonPropertyName("deciders")] - public IReadOnlyCollection Deciders { get; init; } - [JsonInclude, JsonPropertyName("node_attributes")] - public IReadOnlyDictionary NodeAttributes { get; init; } - [JsonInclude, JsonPropertyName("node_decision")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.Decision NodeDecision { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("node_name")] - public string NodeName { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("store")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.AllocationStore? Store { get; init; } - [JsonInclude, JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - [JsonInclude, JsonPropertyName("weight_ranking")] - public int WeightRanking { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeDiskUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeDiskUsage.g.cs deleted file mode 100644 index b7f97e64762..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodeDiskUsage.g.cs +++ /dev/null @@ -1,38 +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.Cluster; - -public sealed partial class NodeDiskUsage -{ - [JsonInclude, JsonPropertyName("least_available")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.DiskUsage LeastAvailable { get; init; } - [JsonInclude, JsonPropertyName("most_available")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.DiskUsage MostAvailable { get; init; } - [JsonInclude, JsonPropertyName("node_name")] - public string NodeName { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodePackagingType.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodePackagingType.g.cs deleted file mode 100644 index acc6b91750e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/NodePackagingType.g.cs +++ /dev/null @@ -1,55 +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.Cluster; - -public sealed partial class NodePackagingType -{ - /// - /// - /// Number of selected nodes using the distribution flavor and file type. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Type of Elasticsearch distribution. This is always default. - /// - /// - [JsonInclude, JsonPropertyName("flavor")] - public string Flavor { get; init; } - - /// - /// - /// File type (such as tar or zip) used for the distribution package. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs deleted file mode 100644 index bdde2e74f12..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs +++ /dev/null @@ -1,79 +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.Cluster; - -public sealed partial class OperatingSystemMemoryInfo -{ - /// - /// - /// Total amount, in bytes, of memory across all selected nodes, but using the value specified using the es.total_memory_bytes system property instead of measured total memory for those nodes where that system property was set. - /// - /// - [JsonInclude, JsonPropertyName("adjusted_total_in_bytes")] - public long? AdjustedTotalInBytes { get; init; } - - /// - /// - /// Amount, in bytes, of free physical memory across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("free_in_bytes")] - public long FreeInBytes { get; init; } - - /// - /// - /// Percentage of free physical memory across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("free_percent")] - public int FreePercent { get; init; } - - /// - /// - /// Total amount, in bytes, of physical memory across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long TotalInBytes { get; init; } - - /// - /// - /// Amount, in bytes, of physical memory in use across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("used_in_bytes")] - public long UsedInBytes { get; init; } - - /// - /// - /// Percentage of physical memory in use across all selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("used_percent")] - public int UsedPercent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/PendingTask.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/PendingTask.g.cs deleted file mode 100644 index 0d08dd1d7f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/PendingTask.g.cs +++ /dev/null @@ -1,80 +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.Cluster; - -public sealed partial class PendingTask -{ - /// - /// - /// Indicates whether the pending tasks are currently executing or not. - /// - /// - [JsonInclude, JsonPropertyName("executing")] - public bool Executing { get; init; } - - /// - /// - /// The number that represents when the task has been inserted into the task queue. - /// - /// - [JsonInclude, JsonPropertyName("insert_order")] - public int InsertOrder { get; init; } - - /// - /// - /// The priority of the pending task. - /// The valid priorities in descending priority order are: IMMEDIATE > URGENT > HIGH > NORMAL > LOW > LANGUID. - /// - /// - [JsonInclude, JsonPropertyName("priority")] - public string Priority { get; init; } - - /// - /// - /// A general description of the cluster task that may include a reason and origin. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string Source { get; init; } - - /// - /// - /// The time since the task is waiting for being performed. - /// - /// - [JsonInclude, JsonPropertyName("time_in_queue")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TimeInQueue { get; init; } - - /// - /// - /// The time expressed in milliseconds since the task is waiting for being performed. - /// - /// - [JsonInclude, JsonPropertyName("time_in_queue_millis")] - public long TimeInQueueMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ReservedSize.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ReservedSize.g.cs deleted file mode 100644 index 8b173c6134f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ReservedSize.g.cs +++ /dev/null @@ -1,40 +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.Cluster; - -public sealed partial class ReservedSize -{ - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("path")] - public string Path { get; init; } - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyCollection Shards { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs deleted file mode 100644 index 4f65523719a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs +++ /dev/null @@ -1,143 +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.Cluster; - -public sealed partial class RuntimeFieldTypes -{ - /// - /// - /// Maximum number of characters for a single runtime field script. - /// - /// - [JsonInclude, JsonPropertyName("chars_max")] - public int CharsMax { get; init; } - - /// - /// - /// Total number of characters for the scripts that define the current runtime field data type. - /// - /// - [JsonInclude, JsonPropertyName("chars_total")] - public int CharsTotal { get; init; } - - /// - /// - /// Number of runtime fields mapped to the field data type in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Maximum number of accesses to doc_values for a single runtime field script - /// - /// - [JsonInclude, JsonPropertyName("doc_max")] - public int DocMax { get; init; } - - /// - /// - /// Total number of accesses to doc_values for the scripts that define the current runtime field data type. - /// - /// - [JsonInclude, JsonPropertyName("doc_total")] - public int DocTotal { get; init; } - - /// - /// - /// Number of indices containing a mapping of the runtime field data type in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("index_count")] - public int IndexCount { get; init; } - - /// - /// - /// Script languages used for the runtime fields scripts. - /// - /// - [JsonInclude, JsonPropertyName("lang")] - public IReadOnlyCollection Lang { get; init; } - - /// - /// - /// Maximum number of lines for a single runtime field script. - /// - /// - [JsonInclude, JsonPropertyName("lines_max")] - public int LinesMax { get; init; } - - /// - /// - /// Total number of lines for the scripts that define the current runtime field data type. - /// - /// - [JsonInclude, JsonPropertyName("lines_total")] - public int LinesTotal { get; init; } - - /// - /// - /// Field data type used in selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// Number of runtime fields that don’t declare a script. - /// - /// - [JsonInclude, JsonPropertyName("scriptless_count")] - public int ScriptlessCount { get; init; } - - /// - /// - /// Number of runtime fields that shadow an indexed field. - /// - /// - [JsonInclude, JsonPropertyName("shadowed_count")] - public int ShadowedCount { get; init; } - - /// - /// - /// Maximum number of accesses to _source for a single runtime field script. - /// - /// - [JsonInclude, JsonPropertyName("source_max")] - public int SourceMax { get; init; } - - /// - /// - /// Total number of accesses to _source for the scripts that define the current runtime field data type. - /// - /// - [JsonInclude, JsonPropertyName("source_total")] - public int SourceTotal { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs deleted file mode 100644 index 0c606274b01..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/ShardHealthStats.g.cs +++ /dev/null @@ -1,46 +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.Cluster; - -public sealed partial class ShardHealthStats -{ - [JsonInclude, JsonPropertyName("active_shards")] - public int ActiveShards { get; init; } - [JsonInclude, JsonPropertyName("initializing_shards")] - public int InitializingShards { get; init; } - [JsonInclude, JsonPropertyName("primary_active")] - public bool PrimaryActive { get; init; } - [JsonInclude, JsonPropertyName("relocating_shards")] - public int RelocatingShards { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("unassigned_primary_shards")] - public int UnassignedPrimaryShards { get; init; } - [JsonInclude, JsonPropertyName("unassigned_shards")] - public int UnassignedShards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/UnassignedInformation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/UnassignedInformation.g.cs deleted file mode 100644 index cbd08538bb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Cluster/UnassignedInformation.g.cs +++ /dev/null @@ -1,46 +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.Cluster; - -public sealed partial class UnassignedInformation -{ - [JsonInclude, JsonPropertyName("allocation_status")] - public string? AllocationStatus { get; init; } - [JsonInclude, JsonPropertyName("at")] - public DateTimeOffset At { get; init; } - [JsonInclude, JsonPropertyName("delayed")] - public bool? Delayed { get; init; } - [JsonInclude, JsonPropertyName("details")] - public string? Details { get; init; } - [JsonInclude, JsonPropertyName("failed_allocation_attempts")] - public int? FailedAllocationAttempts { get; init; } - [JsonInclude, JsonPropertyName("last_allocation_status")] - public string? LastAllocationStatus { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public Elastic.Clients.Elasticsearch.Serverless.Cluster.UnassignedInformationReason Reason { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterDetails.g.cs deleted file mode 100644 index e8bc2b3b0d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterDetails.g.cs +++ /dev/null @@ -1,44 +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 ClusterDetails -{ - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public string Indices { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterSearchStatus Status { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs deleted file mode 100644 index 6c1e37d86e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs +++ /dev/null @@ -1,46 +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 ClusterStatistics -{ - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyDictionary? Details { get; init; } - [JsonInclude, JsonPropertyName("failed")] - public int Failed { get; init; } - [JsonInclude, JsonPropertyName("partial")] - public int Partial { get; init; } - [JsonInclude, JsonPropertyName("running")] - public int Running { get; init; } - [JsonInclude, JsonPropertyName("skipped")] - public int Skipped { get; init; } - [JsonInclude, JsonPropertyName("successful")] - public int Successful { get; init; } - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CompletionStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CompletionStats.g.cs deleted file mode 100644 index 98ef24f22fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CompletionStats.g.cs +++ /dev/null @@ -1,51 +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 CompletionStats -{ - [JsonInclude, JsonPropertyName("fields")] - [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.FieldSizeUsage))] - public IReadOnlyDictionary? Fields { get; init; } - - /// - /// - /// Total amount of memory used for completion across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for completion across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CoordsGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CoordsGeoBounds.g.cs deleted file mode 100644 index 957212869db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/CoordsGeoBounds.g.cs +++ /dev/null @@ -1,92 +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 CoordsGeoBounds -{ - [JsonInclude, JsonPropertyName("bottom")] - public double Bottom { get; set; } - [JsonInclude, JsonPropertyName("left")] - public double Left { get; set; } - [JsonInclude, JsonPropertyName("right")] - public double Right { get; set; } - [JsonInclude, JsonPropertyName("top")] - public double Top { get; set; } -} - -public sealed partial class CoordsGeoBoundsDescriptor : SerializableDescriptor -{ - internal CoordsGeoBoundsDescriptor(Action configure) => configure.Invoke(this); - - public CoordsGeoBoundsDescriptor() : base() - { - } - - private double BottomValue { get; set; } - private double LeftValue { get; set; } - private double RightValue { get; set; } - private double TopValue { get; set; } - - public CoordsGeoBoundsDescriptor Bottom(double bottom) - { - BottomValue = bottom; - return Self; - } - - public CoordsGeoBoundsDescriptor Left(double left) - { - LeftValue = left; - return Self; - } - - public CoordsGeoBoundsDescriptor Right(double right) - { - RightValue = right; - return Self; - } - - public CoordsGeoBoundsDescriptor Top(double top) - { - TopValue = top; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("bottom"); - writer.WriteNumberValue(BottomValue); - writer.WritePropertyName("left"); - writer.WriteNumberValue(LeftValue); - writer.WritePropertyName("right"); - writer.WriteNumberValue(RightValue); - writer.WritePropertyName("top"); - writer.WriteNumberValue(TopValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs deleted file mode 100644 index 86ed9308f54..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs +++ /dev/null @@ -1,112 +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.Core.Bulk; - -public partial class ResponseItem -{ - /// - /// - /// Contains additional information about the failed operation. - /// The parameter is only returned for failed operations. - /// - /// - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? Error { get; init; } - [JsonInclude, JsonPropertyName("forced_refresh")] - public bool? ForcedRefresh { get; init; } - [JsonInclude, JsonPropertyName("get")] - public Elastic.Clients.Elasticsearch.Serverless.InlineGet>? Get { get; init; } - - /// - /// - /// The document ID associated with the operation. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public string? Id { get; init; } - - /// - /// - /// Name of the index associated with the operation. - /// If the operation targeted a data stream, this is the backing index into which the document was written. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - - /// - /// - /// The primary term assigned to the document for the operation. - /// - /// - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - - /// - /// - /// Result of the operation. - /// Successful values are created, deleted, and updated. - /// - /// - [JsonInclude, JsonPropertyName("result")] - public string? Result { get; init; } - - /// - /// - /// The sequence number assigned to the document for the operation. - /// Sequence numbers are used to ensure an older version of a document doesn’t overwrite a newer version. - /// - /// - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - - /// - /// - /// Contains shard information for the operation. - /// - /// - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } - - /// - /// - /// HTTP status code returned for the operation. - /// - /// - [JsonInclude, JsonPropertyName("status")] - public int Status { get; init; } - - /// - /// - /// The document version associated with the operation. - /// The document version is incremented each time the document is updated. - /// - /// - [JsonInclude, JsonPropertyName("_version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs deleted file mode 100644 index 4761d78cf9c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Context.g.cs +++ /dev/null @@ -1,48 +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.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.Core.Search; - -/// -/// -/// Text or location that we want similar documents for or a lookup to a document's field for the text. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class Context : Union -{ - public Context(string Category) : base(Category) - { - } - - public Context(Elastic.Clients.Elasticsearch.Serverless.GeoLocation Location) : base(Location) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/Explanation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/Explanation.g.cs deleted file mode 100644 index 3f69857c215..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/Explanation.g.cs +++ /dev/null @@ -1,38 +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.Core.Explain; - -public sealed partial class Explanation -{ - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyCollection Details { get; init; } - [JsonInclude, JsonPropertyName("value")] - public float Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/ExplanationDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/ExplanationDetail.g.cs deleted file mode 100644 index 0b9f1dd656d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Explain/ExplanationDetail.g.cs +++ /dev/null @@ -1,38 +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.Core.Explain; - -public sealed partial class ExplanationDetail -{ - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyCollection? Details { get; init; } - [JsonInclude, JsonPropertyName("value")] - public float Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs deleted file mode 100644 index fb55120aeb0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/FieldCaps/FieldCapability.g.cs +++ /dev/null @@ -1,92 +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.Core.FieldCaps; - -public sealed partial class FieldCapability -{ - /// - /// - /// Whether this field can be aggregated on all indices. - /// - /// - [JsonInclude, JsonPropertyName("aggregatable")] - public bool Aggregatable { get; init; } - - /// - /// - /// The list of indices where this field has the same type family, or null if all indices have the same type family for the field. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? Indices { get; init; } - - /// - /// - /// Merged metadata across all indices as a map of string keys to arrays of values. A value length of 1 indicates that all indices had the same value for this key, while a length of 2 or more indicates that not all indices had the same value for this key. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// Whether this field is registered as a metadata field. - /// - /// - [JsonInclude, JsonPropertyName("metadata_field")] - public bool? MetadataField { get; init; } - - /// - /// - /// The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field. - /// - /// - [JsonInclude, JsonPropertyName("non_aggregatable_indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? NonAggregatableIndices { get; init; } - - /// - /// - /// The list of indices where this field is not searchable, or null if all indices have the same definition for the field. - /// - /// - [JsonInclude, JsonPropertyName("non_searchable_indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? NonSearchableIndices { get; init; } - - /// - /// - /// Whether this field is indexed for search on all indices. - /// - /// - [JsonInclude, JsonPropertyName("searchable")] - public bool Searchable { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs deleted file mode 100644 index 10c904ab709..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Get/GetResult.g.cs +++ /dev/null @@ -1,53 +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.Core.Get; - -public sealed partial class GetResult -{ - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValues? Fields { get; init; } - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_ignored")] - public IReadOnlyCollection? Ignored { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_primary_term")] - public long? PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("_routing")] - public string? Routing { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_source")] - [SourceConverter] - public TDocument? Source { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs deleted file mode 100644 index 9a0fb2850cc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleDetails.g.cs +++ /dev/null @@ -1,38 +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.Core.HealthReport; - -public sealed partial class DataStreamLifecycleDetails -{ - [JsonInclude, JsonPropertyName("stagnating_backing_indices")] - public IReadOnlyCollection? StagnatingBackingIndices { get; init; } - [JsonInclude, JsonPropertyName("stagnating_backing_indices_count")] - public int StagnatingBackingIndicesCount { get; init; } - [JsonInclude, JsonPropertyName("total_backing_indices_in_error")] - public int TotalBackingIndicesInError { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs deleted file mode 100644 index e4414a96c0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DataStreamLifecycleIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// DATA_STREAM_LIFECYCLE -/// -/// -public sealed partial class DataStreamLifecycleIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DataStreamLifecycleDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Diagnosis.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Diagnosis.g.cs deleted file mode 100644 index b6c27c1cb46..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Diagnosis.g.cs +++ /dev/null @@ -1,42 +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.Core.HealthReport; - -public sealed partial class Diagnosis -{ - [JsonInclude, JsonPropertyName("action")] - public string Action { get; init; } - [JsonInclude, JsonPropertyName("affected_resources")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DiagnosisAffectedResources AffectedResources { get; init; } - [JsonInclude, JsonPropertyName("cause")] - public string Cause { get; init; } - [JsonInclude, JsonPropertyName("help_url")] - public string HelpUrl { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs deleted file mode 100644 index 89bfd2d4e2b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiagnosisAffectedResources.g.cs +++ /dev/null @@ -1,43 +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.Core.HealthReport; - -public sealed partial class DiagnosisAffectedResources -{ - [JsonInclude, JsonPropertyName("feature_states")] - public IReadOnlyCollection? FeatureStates { get; init; } - [JsonInclude, JsonPropertyName("indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? Indices { get; init; } - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyCollection? Nodes { get; init; } - [JsonInclude, JsonPropertyName("slm_policies")] - public IReadOnlyCollection? SlmPolicies { get; init; } - [JsonInclude, JsonPropertyName("snapshot_repositories")] - public IReadOnlyCollection? SnapshotRepositories { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs deleted file mode 100644 index 93fc7429d59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// DISK -/// -/// -public sealed partial class DiskIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DiskIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs deleted file mode 100644 index 3b4a5769fad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/DiskIndicatorDetails.g.cs +++ /dev/null @@ -1,42 +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.Core.HealthReport; - -public sealed partial class DiskIndicatorDetails -{ - [JsonInclude, JsonPropertyName("indices_with_readonly_block")] - public long IndicesWithReadonlyBlock { get; init; } - [JsonInclude, JsonPropertyName("nodes_over_flood_stage_watermark")] - public long NodesOverFloodStageWatermark { get; init; } - [JsonInclude, JsonPropertyName("nodes_over_high_watermark")] - public long NodesOverHighWatermark { get; init; } - [JsonInclude, JsonPropertyName("nodes_with_enough_disk_space")] - public long NodesWithEnoughDiskSpace { get; init; } - [JsonInclude, JsonPropertyName("nodes_with_unknown_disk_status")] - public long NodesWithUnknownDiskStatus { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs deleted file mode 100644 index 50e90d939ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// FILE_SETTINGS -/// -/// -public sealed partial class FileSettingsIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.FileSettingsIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs deleted file mode 100644 index ee342d48d11..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs +++ /dev/null @@ -1,36 +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.Core.HealthReport; - -public sealed partial class FileSettingsIndicatorDetails -{ - [JsonInclude, JsonPropertyName("failure_streak")] - public long FailureStreak { get; init; } - [JsonInclude, JsonPropertyName("most_recent_failure")] - public string MostRecentFailure { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs deleted file mode 100644 index 28272157f9a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// ILM -/// -/// -public sealed partial class IlmIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IlmIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 11d32512bf4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IlmIndicatorDetails.g.cs +++ /dev/null @@ -1,38 +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.Core.HealthReport; - -public sealed partial class IlmIndicatorDetails -{ - [JsonInclude, JsonPropertyName("ilm_status")] - 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/Impact.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Impact.g.cs deleted file mode 100644 index c14d45c54d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Impact.g.cs +++ /dev/null @@ -1,40 +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.Core.HealthReport; - -public sealed partial class Impact -{ - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("impact_areas")] - public IReadOnlyCollection ImpactAreas { get; init; } - [JsonInclude, JsonPropertyName("severity")] - public int Severity { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs deleted file mode 100644 index 691ee52665d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/IndicatorNode.g.cs +++ /dev/null @@ -1,36 +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.Core.HealthReport; - -public sealed partial class IndicatorNode -{ - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string? NodeId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs deleted file mode 100644 index 6e72eeae618..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ /dev/null @@ -1,50 +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.Core.HealthReport; - -public sealed partial class Indicators -{ - [JsonInclude, JsonPropertyName("data_stream_lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DataStreamLifecycleIndicator? DataStreamLifecycle { get; init; } - [JsonInclude, JsonPropertyName("disk")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.DiskIndicator? Disk { get; init; } - [JsonInclude, JsonPropertyName("file_settings")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.FileSettingsIndicator? FileSettings { get; init; } - [JsonInclude, JsonPropertyName("ilm")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IlmIndicator? Ilm { get; init; } - [JsonInclude, JsonPropertyName("master_is_stable")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.MasterIsStableIndicator? MasterIsStable { get; init; } - [JsonInclude, JsonPropertyName("repository_integrity")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.RepositoryIntegrityIndicator? RepositoryIntegrity { get; init; } - [JsonInclude, JsonPropertyName("shards_availability")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.ShardsAvailabilityIndicator? ShardsAvailability { get; init; } - [JsonInclude, JsonPropertyName("shards_capacity")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.ShardsCapacityIndicator? ShardsCapacity { get; init; } - [JsonInclude, JsonPropertyName("slm")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.SlmIndicator? Slm { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs deleted file mode 100644 index cfc3254debb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// MASTER_IS_STABLE -/// -/// -public sealed partial class MasterIsStableIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.MasterIsStableIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs deleted file mode 100644 index c8b80880e4b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorClusterFormationNode.g.cs +++ /dev/null @@ -1,38 +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.Core.HealthReport; - -public sealed partial class MasterIsStableIndicatorClusterFormationNode -{ - [JsonInclude, JsonPropertyName("cluster_formation_message")] - public string ClusterFormationMessage { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs deleted file mode 100644 index 7865cdf466d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorDetails.g.cs +++ /dev/null @@ -1,40 +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.Core.HealthReport; - -public sealed partial class MasterIsStableIndicatorDetails -{ - [JsonInclude, JsonPropertyName("cluster_formation")] - public IReadOnlyCollection? ClusterFormation { get; init; } - [JsonInclude, JsonPropertyName("current_master")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorNode CurrentMaster { get; init; } - [JsonInclude, JsonPropertyName("exception_fetching_history")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.MasterIsStableIndicatorExceptionFetchingHistory? ExceptionFetchingHistory { get; init; } - [JsonInclude, JsonPropertyName("recent_masters")] - public IReadOnlyCollection RecentMasters { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs deleted file mode 100644 index 6c88148b004..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/MasterIsStableIndicatorExceptionFetchingHistory.g.cs +++ /dev/null @@ -1,36 +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.Core.HealthReport; - -public sealed partial class MasterIsStableIndicatorExceptionFetchingHistory -{ - [JsonInclude, JsonPropertyName("message")] - public string Message { get; init; } - [JsonInclude, JsonPropertyName("stack_trace")] - public string StackTrace { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs deleted file mode 100644 index 338974b61d8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// REPOSITORY_INTEGRITY -/// -/// -public sealed partial class RepositoryIntegrityIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.RepositoryIntegrityIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs deleted file mode 100644 index 561d895cefe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/RepositoryIntegrityIndicatorDetails.g.cs +++ /dev/null @@ -1,38 +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.Core.HealthReport; - -public sealed partial class RepositoryIntegrityIndicatorDetails -{ - [JsonInclude, JsonPropertyName("corrupted")] - public IReadOnlyCollection? Corrupted { get; init; } - [JsonInclude, JsonPropertyName("corrupted_repositories")] - public long? CorruptedRepositories { get; init; } - [JsonInclude, JsonPropertyName("total_repositories")] - public long? TotalRepositories { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs deleted file mode 100644 index b6f74ef1f63..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// SHARDS_AVAILABILITY -/// -/// -public sealed partial class ShardsAvailabilityIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.ShardsAvailabilityIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { 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 deleted file mode 100644 index d2b3121a56b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsAvailabilityIndicatorDetails.g.cs +++ /dev/null @@ -1,52 +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.Core.HealthReport; - -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")] - public long InitializingReplicas { get; init; } - [JsonInclude, JsonPropertyName("restarting_primaries")] - public long RestartingPrimaries { get; init; } - [JsonInclude, JsonPropertyName("restarting_replicas")] - public long RestartingReplicas { get; init; } - [JsonInclude, JsonPropertyName("started_primaries")] - public long StartedPrimaries { get; init; } - [JsonInclude, JsonPropertyName("started_replicas")] - public long StartedReplicas { get; init; } - [JsonInclude, JsonPropertyName("unassigned_primaries")] - public long UnassignedPrimaries { get; init; } - [JsonInclude, JsonPropertyName("unassigned_replicas")] - public long UnassignedReplicas { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs deleted file mode 100644 index acfe6ed691a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// SHARDS_CAPACITY -/// -/// -public sealed partial class ShardsCapacityIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.ShardsCapacityIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs deleted file mode 100644 index 79d7f3f48a6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorDetails.g.cs +++ /dev/null @@ -1,36 +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.Core.HealthReport; - -public sealed partial class ShardsCapacityIndicatorDetails -{ - [JsonInclude, JsonPropertyName("data")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.ShardsCapacityIndicatorTierDetail Data { get; init; } - [JsonInclude, JsonPropertyName("frozen")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.ShardsCapacityIndicatorTierDetail Frozen { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs deleted file mode 100644 index 4ae5675421f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/ShardsCapacityIndicatorTierDetail.g.cs +++ /dev/null @@ -1,36 +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.Core.HealthReport; - -public sealed partial class ShardsCapacityIndicatorTierDetail -{ - [JsonInclude, JsonPropertyName("current_used_shards")] - public int? CurrentUsedShards { get; init; } - [JsonInclude, JsonPropertyName("max_shards_in_cluster")] - public int MaxShardsInCluster { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs deleted file mode 100644 index 7583430b1dc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicator.g.cs +++ /dev/null @@ -1,47 +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.Core.HealthReport; - -/// -/// -/// SLM -/// -/// -public sealed partial class SlmIndicator -{ - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.SlmIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 1e98efc9541..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorDetails.g.cs +++ /dev/null @@ -1,38 +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.Core.HealthReport; - -public sealed partial class SlmIndicatorDetails -{ - [JsonInclude, JsonPropertyName("policies")] - public long Policies { get; init; } - [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; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs deleted file mode 100644 index a8b55e73909..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/SlmIndicatorUnhealthyPolicies.g.cs +++ /dev/null @@ -1,36 +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.Core.HealthReport; - -public sealed partial class SlmIndicatorUnhealthyPolicies -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("invocations_since_last_success")] - public IReadOnlyDictionary? InvocationsSinceLastSuccess { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs deleted file mode 100644 index 1762c30d430..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/HealthReport/StagnatingBackingIndices.g.cs +++ /dev/null @@ -1,38 +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.Core.HealthReport; - -public sealed partial class StagnatingBackingIndices -{ - [JsonInclude, JsonPropertyName("first_occurrence_timestamp")] - public long FirstOccurrenceTimestamp { get; init; } - [JsonInclude, JsonPropertyName("index_name")] - public string IndexName { get; init; } - [JsonInclude, JsonPropertyName("retry_count")] - public int RetryCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetError.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetError.g.cs deleted file mode 100644 index af5c6088203..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetError.g.cs +++ /dev/null @@ -1,38 +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.Core.MGet; - -public sealed partial class MultiGetError -{ - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause Error { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetOperation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetOperation.g.cs deleted file mode 100644 index 6621f1f9ef0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MGet/MultiGetOperation.g.cs +++ /dev/null @@ -1,332 +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.Core.MGet; - -public sealed partial class MultiGetOperation -{ - /// - /// - /// The unique document ID. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - - /// - /// - /// The index that contains the document. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// The key for the primary shard the document resides on. Required if routing is used during indexing. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// If false, excludes all _source fields. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - - /// - /// - /// The stored fields you want to retrieve. - /// - /// - [JsonInclude, JsonPropertyName("stored_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; } - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } - [JsonInclude, JsonPropertyName("version_type")] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } -} - -public sealed partial class MultiGetOperationDescriptor : SerializableDescriptor> -{ - internal MultiGetOperationDescriptor(Action> configure) => configure.Invoke(this); - - public MultiGetOperationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// The unique document ID. - /// - /// - public MultiGetOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index that contains the document. - /// - /// - public MultiGetOperationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// The key for the primary shard the document resides on. Required if routing is used during indexing. - /// - /// - public MultiGetOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// If false, excludes all _source fields. - /// - /// - public MultiGetOperationDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// The stored fields you want to retrieve. - /// - /// - public MultiGetOperationDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public MultiGetOperationDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - public MultiGetOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - 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 (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MultiGetOperationDescriptor : SerializableDescriptor -{ - internal MultiGetOperationDescriptor(Action configure) => configure.Invoke(this); - - public MultiGetOperationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// The unique document ID. - /// - /// - public MultiGetOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index that contains the document. - /// - /// - public MultiGetOperationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// The key for the primary shard the document resides on. Required if routing is used during indexing. - /// - /// - public MultiGetOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// If false, excludes all _source fields. - /// - /// - public MultiGetOperationDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// The stored fields you want to retrieve. - /// - /// - public MultiGetOperationDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public MultiGetOperationDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - public MultiGetOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - 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 (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs deleted file mode 100644 index 5b48b7b456f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs +++ /dev/null @@ -1,62 +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.Core.MSearch; - -public sealed partial class MultiSearchItem -{ - [JsonInclude, JsonPropertyName("aggregations")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.AggregateDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("_clusters")] - public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata HitsMetadata { get; init; } - [JsonInclude, JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - [JsonInclude, JsonPropertyName("num_reduce_phases")] - public long? NumReducePhases { get; init; } - [JsonInclude, JsonPropertyName("pit_id")] - public string? PitId { get; init; } - [JsonInclude, JsonPropertyName("profile")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Profile? Profile { get; init; } - [JsonInclude, JsonPropertyName("_scroll_id")] - public Elastic.Clients.Elasticsearch.Serverless.ScrollId? ScrollId { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("status")] - public int? Status { get; init; } - [JsonInclude, JsonPropertyName("suggest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestDictionary? Suggest { get; init; } - [JsonInclude, JsonPropertyName("terminated_early")] - public bool? TerminatedEarly { get; init; } - [JsonInclude, JsonPropertyName("timed_out")] - public bool TimedOut { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long Took { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs deleted file mode 100644 index e3593c503c5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchBody.g.cs +++ /dev/null @@ -1,2648 +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.Core.MSearch; - -internal sealed partial class MultisearchBodyConverter : JsonConverter -{ - public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new MultisearchBody(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "collapse") - { - variant.Collapse = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "docvalue_fields") - { - variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "explain") - { - variant.Explain = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "ext") - { - variant.Ext = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "fields") - { - variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "from") - { - variant.From = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "highlight") - { - variant.Highlight = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices_boost") - { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); - continue; - } - - if (property == "knn") - { - variant.Knn = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (property == "min_score") - { - variant.MinScore = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "pit") - { - variant.Pit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "post_filter") - { - variant.PostFilter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "profile") - { - variant.Profile = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rescore") - { - variant.Rescore = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "search_after") - { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "seq_no_primary_term") - { - variant.SeqNoPrimaryTerm = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "size") - { - variant.Size = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "sort") - { - variant.Sort = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (property == "_source") - { - variant.Source = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "stats") - { - variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "stored_fields") - { - reader.Read(); - variant.StoredFields = new FieldsConverter().Read(ref reader, typeToConvert, options); - continue; - } - - if (property == "suggest") - { - variant.Suggest = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "terminate_after") - { - variant.TerminateAfter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "timeout") - { - variant.Timeout = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "track_scores") - { - variant.TrackScores = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "track_total_hits") - { - variant.TrackTotalHits = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "version") - { - variant.Version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, MultisearchBody value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.Collapse is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, value.Collapse, options); - } - - if (value.DocvalueFields is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, value.DocvalueFields, options); - } - - if (value.Explain.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(value.Explain.Value); - } - - if (value.Ext is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, value.Ext, options); - } - - if (value.Fields is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, value.Fields, options); - } - - if (value.From.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(value.From.Value); - } - - if (value.Highlight is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, value.Highlight, options); - } - - if (value.IndicesBoost is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, value.IndicesBoost, options); - } - - if (value.Knn is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, value.Knn, options); - } - - if (value.MinScore.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(value.MinScore.Value); - } - - if (value.Pit is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, value.Pit, options); - } - - if (value.PostFilter is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, value.PostFilter, options); - } - - if (value.Profile.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(value.Profile.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.Rescore is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, value.Rescore, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.SearchAfter is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, value.SearchAfter, options); - } - - if (value.SeqNoPrimaryTerm.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(value.SeqNoPrimaryTerm.Value); - } - - if (value.Size.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(value.Size.Value); - } - - if (value.Sort is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, value.Sort, options); - } - - if (value.Source is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, value.Source, options); - } - - if (value.Stats is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, value.Stats, options); - } - - if (value.StoredFields is not null) - { - writer.WritePropertyName("stored_fields"); - new FieldsConverter().Write(writer, value.StoredFields, options); - } - - if (value.Suggest is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, value.Suggest, options); - } - - if (value.TerminateAfter.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(value.TerminateAfter.Value); - } - - if (!string.IsNullOrEmpty(value.Timeout)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(value.Timeout); - } - - if (value.TrackScores.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(value.TrackScores.Value); - } - - if (value.TrackTotalHits is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, value.TrackTotalHits, options); - } - - if (value.Version.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(value.Version.Value); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(MultisearchBodyConverter))] -public sealed partial class MultisearchBody -{ - public IDictionary? Aggregations { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. The request returns doc values for field - /// names matching these patterns in the hits.fields property of the response. - /// - /// - public ICollection? DocvalueFields { get; set; } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public bool? Explain { get; set; } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public IDictionary? Ext { get; set; } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public ICollection? Fields { get; set; } - - /// - /// - /// Starting document offset. By default, you cannot page through more than 10,000 - /// hits using the from and size parameters. To page through more hits, use the - /// search_after parameter. - /// - /// - public int? From { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? Highlight { get; set; } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public ICollection>? IndicesBoost { get; set; } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public ICollection? Knn { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are - /// not included in the search results. - /// - /// - public double? MinScore { get; set; } - - /// - /// - /// Limits the search to a point in time (PIT). If you provide a PIT, you - /// cannot specify an <index> in the request path. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? Pit { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilter { get; set; } - public bool? Profile { get; set; } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - public ICollection? Rescore { get; set; } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public IDictionary? ScriptFields { get; set; } - public ICollection? SearchAfter { get; set; } - - /// - /// - /// If true, returns sequence number and primary term of the last modification - /// of each hit. See Optimistic concurrency control. - /// - /// - public bool? SeqNoPrimaryTerm { get; set; } - - /// - /// - /// The number of hits to return. By default, you cannot page through more - /// than 10,000 hits using the from and size parameters. To page through more - /// hits, use the search_after parameter. - /// - /// - public int? Size { get; set; } - public ICollection? Sort { get; set; } - - /// - /// - /// Indicates which source fields are returned for matching documents. These - /// fields are returned in the hits._source property of the search response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - - /// - /// - /// Stats groups to associate with the search. Each group maintains a statistics - /// aggregation for its associated searches. You can retrieve these stats using - /// the indices stats API. - /// - /// - public ICollection? Stats { get; set; } - - /// - /// - /// List of stored fields to return as part of a hit. If no fields are specified, - /// no stored fields are included in the response. If this field is specified, the _source - /// parameter defaults to false. You can pass _source: true to return both source fields - /// and stored fields in the search response. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? Suggest { get; set; } - - /// - /// - /// Maximum number of documents to collect for each shard. If a query reaches this - /// limit, Elasticsearch terminates the query early. Elasticsearch collects documents - /// before sorting. Defaults to 0, which does not terminate query execution early. - /// - /// - public long? TerminateAfter { get; set; } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. If no response - /// is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public string? Timeout { get; set; } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public bool? TrackScores { get; set; } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact - /// number of hits is returned at the cost of some performance. If false, the - /// response does not include the total number of hits matching the query. - /// Defaults to 10,000 hits. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHits { get; set; } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public bool? Version { get; set; } -} - -public sealed partial class MultisearchBodyDescriptor : SerializableDescriptor> -{ - internal MultisearchBodyDescriptor(Action> configure) => configure.Invoke(this); - - public MultisearchBodyDescriptor() : base() - { - } - - private IDictionary> AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action> CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action> DocvalueFieldsDescriptorAction { get; set; } - private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private IDictionary? ExtValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action> FieldsDescriptorAction { get; set; } - private Action>[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action> HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } - private ICollection? KnnValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; } - private Action> KnnDescriptorAction { get; set; } - private Action>[] KnnDescriptorActions { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } - private Action PitDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; } - private Action> PostFilterDescriptorAction { get; set; } - private bool? ProfileValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? RescoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } - private Action> RescoreDescriptorAction { get; set; } - private Action>[] RescoreDescriptorActions { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private ICollection? SearchAfterValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private ICollection? StatsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; } - private Action> SuggestDescriptorAction { get; set; } - private long? TerminateAfterValue { get; set; } - private string? TimeoutValue { get; set; } - private bool? TrackScoresValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? VersionValue { get; set; } - - public MultisearchBodyDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public MultisearchBodyDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public MultisearchBodyDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Collapse(Action> configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns doc values for field - /// names matching these patterns in the hits.fields property of the response. - /// - /// - public MultisearchBodyDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public MultisearchBodyDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor DocvalueFields(Action> configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor DocvalueFields(params Action>[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public MultisearchBodyDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public MultisearchBodyDescriptor Ext(Func, FluentDictionary> selector) - { - ExtValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public MultisearchBodyDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public MultisearchBodyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Fields(Action> configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Fields(params Action>[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. By default, you cannot page through more than 10,000 - /// hits using the from and size parameters. To page through more hits, use the - /// search_after parameter. - /// - /// - public MultisearchBodyDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public MultisearchBodyDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public MultisearchBodyDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Highlight(Action> configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) - { - IndicesBoostValue = indicesBoost; - return Self; - } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public MultisearchBodyDescriptor Knn(ICollection? knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnValue = knn; - return Self; - } - - public MultisearchBodyDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Knn(Action> configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorActions = null; - KnnDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Knn(params Action>[] configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are - /// not included in the search results. - /// - /// - public MultisearchBodyDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Limits the search to a point in time (PIT). If you provide a PIT, you - /// cannot specify an <index> in the request path. - /// - /// - public MultisearchBodyDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? pit) - { - PitDescriptor = null; - PitDescriptorAction = null; - PitValue = pit; - return Self; - } - - public MultisearchBodyDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor) - { - PitValue = null; - PitDescriptorAction = null; - PitDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Pit(Action configure) - { - PitValue = null; - PitDescriptor = null; - PitDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? postFilter) - { - PostFilterDescriptor = null; - PostFilterDescriptorAction = null; - PostFilterValue = postFilter; - return Self; - } - - public MultisearchBodyDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PostFilterValue = null; - PostFilterDescriptorAction = null; - PostFilterDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor PostFilter(Action> configure) - { - PostFilterValue = null; - PostFilterDescriptor = null; - PostFilterDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public MultisearchBodyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MultisearchBodyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Rescore(ICollection? rescore) - { - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreValue = rescore; - return Self; - } - - public MultisearchBodyDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor) - { - RescoreValue = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Rescore(Action> configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorActions = null; - RescoreDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Rescore(params Action>[] configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public MultisearchBodyDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public MultisearchBodyDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public MultisearchBodyDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification - /// of each hit. See Optimistic concurrency control. - /// - /// - public MultisearchBodyDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The number of hits to return. By default, you cannot page through more - /// than 10,000 hits using the from and size parameters. To page through more - /// hits, use the search_after parameter. - /// - /// - public MultisearchBodyDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - public MultisearchBodyDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public MultisearchBodyDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Indicates which source fields are returned for matching documents. These - /// fields are returned in the hits._source property of the search response. - /// - /// - public MultisearchBodyDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Stats groups to associate with the search. Each group maintains a statistics - /// aggregation for its associated searches. You can retrieve these stats using - /// the indices stats API. - /// - /// - public MultisearchBodyDescriptor Stats(ICollection? stats) - { - StatsValue = stats; - return Self; - } - - /// - /// - /// List of stored fields to return as part of a hit. If no fields are specified, - /// no stored fields are included in the response. If this field is specified, the _source - /// parameter defaults to false. You can pass _source: true to return both source fields - /// and stored fields in the search response. - /// - /// - public MultisearchBodyDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public MultisearchBodyDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? suggest) - { - SuggestDescriptor = null; - SuggestDescriptorAction = null; - SuggestValue = suggest; - return Self; - } - - public MultisearchBodyDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor) - { - SuggestValue = null; - SuggestDescriptorAction = null; - SuggestDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Suggest(Action> configure) - { - SuggestValue = null; - SuggestDescriptor = null; - SuggestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. If a query reaches this - /// limit, Elasticsearch terminates the query early. Elasticsearch collects documents - /// before sorting. Defaults to 0, which does not terminate query execution early. - /// - /// - public MultisearchBodyDescriptor TerminateAfter(long? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. If no response - /// is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public MultisearchBodyDescriptor Timeout(string? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public MultisearchBodyDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact - /// number of hits is returned at the cost of some performance. If false, the - /// response does not include the total number of hits matching the query. - /// Defaults to 10,000 hits. - /// - /// - public MultisearchBodyDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public MultisearchBodyDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (ExtValue is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, ExtValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndicesBoostValue is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, IndicesBoostValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options); - } - else if (KnnDescriptorActions is not null) - { - writer.WritePropertyName("knn"); - if (KnnDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in KnnDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options); - } - - if (KnnDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (KnnValue is not null) - { - writer.WritePropertyName("knn"); - SingleOrManySerializationHelper.Serialize(KnnValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (PitDescriptor is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitDescriptor, options); - } - else if (PitDescriptorAction is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor(PitDescriptorAction), options); - } - else if (PitValue is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitValue, options); - } - - if (PostFilterDescriptor is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterDescriptor, options); - } - else if (PostFilterDescriptorAction is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PostFilterDescriptorAction), options); - } - else if (PostFilterValue is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RescoreDescriptor is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, RescoreDescriptor, options); - } - else if (RescoreDescriptorAction is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(RescoreDescriptorAction), options); - } - else if (RescoreDescriptorActions is not null) - { - writer.WritePropertyName("rescore"); - if (RescoreDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RescoreDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(action), options); - } - - if (RescoreDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (RescoreValue is not null) - { - writer.WritePropertyName("rescore"); - SingleOrManySerializationHelper.Serialize(RescoreValue, writer, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StatsValue is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, StatsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (SuggestDescriptor is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestDescriptor, options); - } - else if (SuggestDescriptorAction is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor(SuggestDescriptorAction), options); - } - else if (SuggestValue is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestValue, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - if (!string.IsNullOrEmpty(TimeoutValue)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(TimeoutValue); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MultisearchBodyDescriptor : SerializableDescriptor -{ - internal MultisearchBodyDescriptor(Action configure) => configure.Invoke(this); - - public MultisearchBodyDescriptor() : base() - { - } - - private IDictionary AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action DocvalueFieldsDescriptorAction { get; set; } - private Action[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private IDictionary? ExtValue { get; set; } - private ICollection? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } - private Action FieldsDescriptorAction { get; set; } - private Action[] FieldsDescriptorActions { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } - private ICollection? KnnValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor KnnDescriptor { get; set; } - private Action KnnDescriptorAction { get; set; } - private Action[] KnnDescriptorActions { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? PitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor PitDescriptor { get; set; } - private Action PitDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? PostFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PostFilterDescriptor { get; set; } - private Action PostFilterDescriptorAction { get; set; } - private bool? ProfileValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? RescoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } - private Action RescoreDescriptorAction { get; set; } - private Action[] RescoreDescriptorActions { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private ICollection? SearchAfterValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private ICollection? StatsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? SuggestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor SuggestDescriptor { get; set; } - private Action SuggestDescriptorAction { get; set; } - private long? TerminateAfterValue { get; set; } - private string? TimeoutValue { get; set; } - private bool? TrackScoresValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? TrackTotalHitsValue { get; set; } - private bool? VersionValue { get; set; } - - public MultisearchBodyDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public MultisearchBodyDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public MultisearchBodyDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Collapse(Action configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns doc values for field - /// names matching these patterns in the hits.fields property of the response. - /// - /// - public MultisearchBodyDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public MultisearchBodyDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor DocvalueFields(Action configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor DocvalueFields(params Action[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, returns detailed information about score computation as part of a hit. - /// - /// - public MultisearchBodyDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - /// - /// - /// Configuration of search extensions defined by Elasticsearch plugins. - /// - /// - public MultisearchBodyDescriptor Ext(Func, FluentDictionary> selector) - { - ExtValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Array of wildcard (*) patterns. The request returns values for field names - /// matching these patterns in the hits.fields property of the response. - /// - /// - public MultisearchBodyDescriptor Fields(ICollection? fields) - { - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsValue = fields; - return Self; - } - - public MultisearchBodyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - FieldsValue = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = null; - FieldsDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Fields(Action configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorActions = null; - FieldsDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Fields(params Action[] configure) - { - FieldsValue = null; - FieldsDescriptor = null; - FieldsDescriptorAction = null; - FieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Starting document offset. By default, you cannot page through more than 10,000 - /// hits using the from and size parameters. To page through more hits, use the - /// search_after parameter. - /// - /// - public MultisearchBodyDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public MultisearchBodyDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public MultisearchBodyDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// Boosts the _score of documents from specified indices. - /// - /// - public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) - { - IndicesBoostValue = indicesBoost; - return Self; - } - - /// - /// - /// Defines the approximate kNN search to run. - /// - /// - public MultisearchBodyDescriptor Knn(ICollection? knn) - { - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnValue = knn; - return Self; - } - - public MultisearchBodyDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor descriptor) - { - KnnValue = null; - KnnDescriptorAction = null; - KnnDescriptorActions = null; - KnnDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Knn(Action configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorActions = null; - KnnDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Knn(params Action[] configure) - { - KnnValue = null; - KnnDescriptor = null; - KnnDescriptorAction = null; - KnnDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are - /// not included in the search results. - /// - /// - public MultisearchBodyDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Limits the search to a point in time (PIT). If you provide a PIT, you - /// cannot specify an <index> in the request path. - /// - /// - public MultisearchBodyDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReference? pit) - { - PitDescriptor = null; - PitDescriptorAction = null; - PitValue = pit; - return Self; - } - - public MultisearchBodyDescriptor Pit(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor descriptor) - { - PitValue = null; - PitDescriptorAction = null; - PitDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Pit(Action configure) - { - PitValue = null; - PitDescriptor = null; - PitDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? postFilter) - { - PostFilterDescriptor = null; - PostFilterDescriptorAction = null; - PostFilterValue = postFilter; - return Self; - } - - public MultisearchBodyDescriptor PostFilter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PostFilterValue = null; - PostFilterDescriptorAction = null; - PostFilterDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor PostFilter(Action configure) - { - PostFilterValue = null; - PostFilterDescriptor = null; - PostFilterDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Profile(bool? profile = true) - { - ProfileValue = profile; - return Self; - } - - /// - /// - /// Defines the search definition using the Query DSL. - /// - /// - public MultisearchBodyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public MultisearchBodyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Rescore(ICollection? rescore) - { - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreValue = rescore; - return Self; - } - - public MultisearchBodyDescriptor Rescore(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor descriptor) - { - RescoreValue = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = null; - RescoreDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Rescore(Action configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorActions = null; - RescoreDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Rescore(params Action[] configure) - { - RescoreValue = null; - RescoreDescriptor = null; - RescoreDescriptorAction = null; - RescoreDescriptorActions = configure; - return Self; - } - - /// - /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. - /// - /// - public MultisearchBodyDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Retrieve a script evaluation (based on different fields) for each hit. - /// - /// - public MultisearchBodyDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public MultisearchBodyDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// If true, returns sequence number and primary term of the last modification - /// of each hit. See Optimistic concurrency control. - /// - /// - public MultisearchBodyDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The number of hits to return. By default, you cannot page through more - /// than 10,000 hits using the from and size parameters. To page through more - /// hits, use the search_after parameter. - /// - /// - public MultisearchBodyDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - public MultisearchBodyDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public MultisearchBodyDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public MultisearchBodyDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Indicates which source fields are returned for matching documents. These - /// fields are returned in the hits._source property of the search response. - /// - /// - public MultisearchBodyDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Stats groups to associate with the search. Each group maintains a statistics - /// aggregation for its associated searches. You can retrieve these stats using - /// the indices stats API. - /// - /// - public MultisearchBodyDescriptor Stats(ICollection? stats) - { - StatsValue = stats; - return Self; - } - - /// - /// - /// List of stored fields to return as part of a hit. If no fields are specified, - /// no stored fields are included in the response. If this field is specified, the _source - /// parameter defaults to false. You can pass _source: true to return both source fields - /// and stored fields in the search response. - /// - /// - public MultisearchBodyDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public MultisearchBodyDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Suggester? suggest) - { - SuggestDescriptor = null; - SuggestDescriptorAction = null; - SuggestValue = suggest; - return Self; - } - - public MultisearchBodyDescriptor Suggest(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor descriptor) - { - SuggestValue = null; - SuggestDescriptorAction = null; - SuggestDescriptor = descriptor; - return Self; - } - - public MultisearchBodyDescriptor Suggest(Action configure) - { - SuggestValue = null; - SuggestDescriptor = null; - SuggestDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. If a query reaches this - /// limit, Elasticsearch terminates the query early. Elasticsearch collects documents - /// before sorting. Defaults to 0, which does not terminate query execution early. - /// - /// - public MultisearchBodyDescriptor TerminateAfter(long? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - /// - /// - /// Specifies the period of time to wait for a response from each shard. If no response - /// is received before the timeout expires, the request fails and returns an error. - /// Defaults to no timeout. - /// - /// - public MultisearchBodyDescriptor Timeout(string? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. - /// - /// - public MultisearchBodyDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - /// - /// - /// Number of hits matching the query to count accurately. If true, the exact - /// number of hits is returned at the cost of some performance. If false, the - /// response does not include the total number of hits matching the query. - /// Defaults to 10,000 hits. - /// - /// - public MultisearchBodyDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TrackHits? trackTotalHits) - { - TrackTotalHitsValue = trackTotalHits; - return Self; - } - - /// - /// - /// If true, returns document version as part of a hit. - /// - /// - public MultisearchBodyDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (ExtValue is not null) - { - writer.WritePropertyName("ext"); - JsonSerializer.Serialize(writer, ExtValue, options); - } - - if (FieldsDescriptor is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorAction is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FieldsDescriptorActions is not null) - { - writer.WritePropertyName("fields"); - writer.WriteStartArray(); - foreach (var action in FieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndicesBoostValue is not null) - { - writer.WritePropertyName("indices_boost"); - JsonSerializer.Serialize(writer, IndicesBoostValue, options); - } - - if (KnnDescriptor is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, KnnDescriptor, options); - } - else if (KnnDescriptorAction is not null) - { - writer.WritePropertyName("knn"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(KnnDescriptorAction), options); - } - else if (KnnDescriptorActions is not null) - { - writer.WritePropertyName("knn"); - if (KnnDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in KnnDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.KnnSearchDescriptor(action), options); - } - - if (KnnDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (KnnValue is not null) - { - writer.WritePropertyName("knn"); - SingleOrManySerializationHelper.Serialize(KnnValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (PitDescriptor is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitDescriptor, options); - } - else if (PitDescriptorAction is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PointInTimeReferenceDescriptor(PitDescriptorAction), options); - } - else if (PitValue is not null) - { - writer.WritePropertyName("pit"); - JsonSerializer.Serialize(writer, PitValue, options); - } - - if (PostFilterDescriptor is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterDescriptor, options); - } - else if (PostFilterDescriptorAction is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PostFilterDescriptorAction), options); - } - else if (PostFilterValue is not null) - { - writer.WritePropertyName("post_filter"); - JsonSerializer.Serialize(writer, PostFilterValue, options); - } - - if (ProfileValue.HasValue) - { - writer.WritePropertyName("profile"); - writer.WriteBooleanValue(ProfileValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RescoreDescriptor is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, RescoreDescriptor, options); - } - else if (RescoreDescriptorAction is not null) - { - writer.WritePropertyName("rescore"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(RescoreDescriptorAction), options); - } - else if (RescoreDescriptorActions is not null) - { - writer.WritePropertyName("rescore"); - if (RescoreDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in RescoreDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreDescriptor(action), options); - } - - if (RescoreDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (RescoreValue is not null) - { - writer.WritePropertyName("rescore"); - SingleOrManySerializationHelper.Serialize(RescoreValue, writer, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StatsValue is not null) - { - writer.WritePropertyName("stats"); - JsonSerializer.Serialize(writer, StatsValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (SuggestDescriptor is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestDescriptor, options); - } - else if (SuggestDescriptorAction is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggesterDescriptor(SuggestDescriptorAction), options); - } - else if (SuggestValue is not null) - { - writer.WritePropertyName("suggest"); - JsonSerializer.Serialize(writer, SuggestValue, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - if (!string.IsNullOrEmpty(TimeoutValue)) - { - writer.WritePropertyName("timeout"); - writer.WriteStringValue(TimeoutValue); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (TrackTotalHitsValue is not null) - { - writer.WritePropertyName("track_total_hits"); - JsonSerializer.Serialize(writer, TrackTotalHitsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs deleted file mode 100644 index dbff568ba1b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs +++ /dev/null @@ -1,224 +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.Core.MSearch; - -/// -/// -/// Contains parameters used to limit or change the subsequent search body request. -/// -/// -public sealed partial class MultisearchHeader -{ - [JsonInclude, JsonPropertyName("allow_no_indices")] - public bool? AllowNoIndices { get; set; } - [JsonInclude, JsonPropertyName("allow_partial_search_results")] - public bool? AllowPartialSearchResults { get; set; } - [JsonInclude, JsonPropertyName("ccs_minimize_roundtrips")] - public bool? CcsMinimizeRoundtrips { get; set; } - [JsonInclude, JsonPropertyName("expand_wildcards")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard))] - public ICollection? ExpandWildcards { get; set; } - [JsonInclude, JsonPropertyName("ignore_throttled")] - public bool? IgnoreThrottled { get; set; } - [JsonInclude, JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - [JsonInclude, JsonPropertyName("preference")] - public string? Preference { get; set; } - [JsonInclude, JsonPropertyName("request_cache")] - public bool? RequestCache { get; set; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - [JsonInclude, JsonPropertyName("search_type")] - public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get; set; } -} - -/// -/// -/// Contains parameters used to limit or change the subsequent search body request. -/// -/// -public sealed partial class MultisearchHeaderDescriptor : SerializableDescriptor -{ - internal MultisearchHeaderDescriptor(Action configure) => configure.Invoke(this); - - public MultisearchHeaderDescriptor() : base() - { - } - - private bool? AllowNoIndicesValue { get; set; } - private bool? AllowPartialSearchResultsValue { get; set; } - private bool? CcsMinimizeRoundtripsValue { get; set; } - private ICollection? ExpandWildcardsValue { get; set; } - private bool? IgnoreThrottledValue { get; set; } - private bool? IgnoreUnavailableValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private string? PreferenceValue { get; set; } - private bool? RequestCacheValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchTypeValue { get; set; } - - public MultisearchHeaderDescriptor AllowNoIndices(bool? allowNoIndices = true) - { - AllowNoIndicesValue = allowNoIndices; - return Self; - } - - public MultisearchHeaderDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) - { - AllowPartialSearchResultsValue = allowPartialSearchResults; - return Self; - } - - public MultisearchHeaderDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) - { - CcsMinimizeRoundtripsValue = ccsMinimizeRoundtrips; - return Self; - } - - public MultisearchHeaderDescriptor ExpandWildcards(ICollection? expandWildcards) - { - ExpandWildcardsValue = expandWildcards; - return Self; - } - - public MultisearchHeaderDescriptor IgnoreThrottled(bool? ignoreThrottled = true) - { - IgnoreThrottledValue = ignoreThrottled; - return Self; - } - - public MultisearchHeaderDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - public MultisearchHeaderDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - public MultisearchHeaderDescriptor Preference(string? preference) - { - PreferenceValue = preference; - return Self; - } - - public MultisearchHeaderDescriptor RequestCache(bool? requestCache = true) - { - RequestCacheValue = requestCache; - return Self; - } - - public MultisearchHeaderDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - public MultisearchHeaderDescriptor SearchType(Elastic.Clients.Elasticsearch.Serverless.SearchType? searchType) - { - SearchTypeValue = searchType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoIndicesValue.HasValue) - { - writer.WritePropertyName("allow_no_indices"); - writer.WriteBooleanValue(AllowNoIndicesValue.Value); - } - - if (AllowPartialSearchResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_search_results"); - writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); - } - - if (CcsMinimizeRoundtripsValue.HasValue) - { - writer.WritePropertyName("ccs_minimize_roundtrips"); - writer.WriteBooleanValue(CcsMinimizeRoundtripsValue.Value); - } - - if (ExpandWildcardsValue is not null) - { - writer.WritePropertyName("expand_wildcards"); - SingleOrManySerializationHelper.Serialize(ExpandWildcardsValue, writer, options); - } - - if (IgnoreThrottledValue.HasValue) - { - writer.WritePropertyName("ignore_throttled"); - writer.WriteBooleanValue(IgnoreThrottledValue.Value); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (!string.IsNullOrEmpty(PreferenceValue)) - { - writer.WritePropertyName("preference"); - writer.WriteStringValue(PreferenceValue); - } - - if (RequestCacheValue.HasValue) - { - writer.WritePropertyName("request_cache"); - writer.WriteBooleanValue(RequestCacheValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchTypeValue is not null) - { - writer.WritePropertyName("search_type"); - JsonSerializer.Serialize(writer, SearchTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs deleted file mode 100644 index cec2496d68a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs +++ /dev/null @@ -1,76 +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.Core.MSearchTemplate; - -public sealed partial class TemplateConfig -{ - /// - /// - /// If true, returns detailed information about score calculation as part of each hit. - /// - /// - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; init; } - - /// - /// - /// ID of the search template to use. If no source is specified, - /// this parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; init; } - - /// - /// - /// Key-value pairs used to replace Mustache variables in the template. - /// The key is the variable name. - /// The value is the variable value. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IReadOnlyDictionary? Params { get; init; } - - /// - /// - /// If true, the query execution is profiled. - /// - /// - [JsonInclude, JsonPropertyName("profile")] - public bool? Profile { get; init; } - - /// - /// - /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this - /// parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string? Source { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs deleted file mode 100644 index 1a3667265ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs +++ /dev/null @@ -1,699 +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.Core.Mtermvectors; - -public sealed partial class MultiTermVectorsOperation -{ - /// - /// - /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. - /// - /// - [JsonInclude, JsonPropertyName("doc")] - public object? Doc { get; set; } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - [JsonInclude, JsonPropertyName("field_statistics")] - public bool? FieldStatistics { get; set; } - - /// - /// - /// Filter terms based on their tf-idf scores. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? Filter { get; set; } - - /// - /// - /// The ID of the document. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// The index of the document. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - [JsonInclude, JsonPropertyName("offsets")] - public bool? Offsets { get; set; } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - [JsonInclude, JsonPropertyName("payloads")] - public bool? Payloads { get; set; } - - /// - /// - /// If true, the response includes term positions. - /// - /// - [JsonInclude, JsonPropertyName("positions")] - public bool? Positions { get; set; } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - [JsonInclude, JsonPropertyName("term_statistics")] - public bool? TermStatistics { get; set; } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } - - /// - /// - /// Specific version type. - /// - /// - [JsonInclude, JsonPropertyName("version_type")] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } -} - -public sealed partial class MultiTermVectorsOperationDescriptor : SerializableDescriptor> -{ - internal MultiTermVectorsOperationDescriptor(Action> configure) => configure.Invoke(this); - - public MultiTermVectorsOperationDescriptor() : base() - { - } - - private object? DocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private bool? FieldStatisticsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private bool? OffsetsValue { get; set; } - private bool? PayloadsValue { get; set; } - private bool? PositionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private bool? TermStatisticsValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. - /// - /// - public MultiTermVectorsOperationDescriptor Doc(object? doc) - { - DocValue = doc; - return Self; - } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) - { - FieldStatisticsValue = fieldStatistics; - return Self; - } - - /// - /// - /// Filter terms based on their tf-idf scores. - /// - /// - public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public MultiTermVectorsOperationDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ID of the document. - /// - /// - public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index of the document. - /// - /// - public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) - { - OffsetsValue = offsets; - return Self; - } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) - { - PayloadsValue = payloads; - return Self; - } - - /// - /// - /// If true, the response includes term positions. - /// - /// - public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) - { - PositionsValue = positions; - return Self; - } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) - { - TermStatisticsValue = termStatistics; - return Self; - } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public MultiTermVectorsOperationDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - /// - /// - /// Specific version type. - /// - /// - public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocValue is not null) - { - writer.WritePropertyName("doc"); - JsonSerializer.Serialize(writer, DocValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FieldStatisticsValue.HasValue) - { - writer.WritePropertyName("field_statistics"); - writer.WriteBooleanValue(FieldStatisticsValue.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.Core.TermVectors.FilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (IdValue is not null) - { - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (OffsetsValue.HasValue) - { - writer.WritePropertyName("offsets"); - writer.WriteBooleanValue(OffsetsValue.Value); - } - - if (PayloadsValue.HasValue) - { - writer.WritePropertyName("payloads"); - writer.WriteBooleanValue(PayloadsValue.Value); - } - - if (PositionsValue.HasValue) - { - writer.WritePropertyName("positions"); - writer.WriteBooleanValue(PositionsValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (TermStatisticsValue.HasValue) - { - writer.WritePropertyName("term_statistics"); - writer.WriteBooleanValue(TermStatisticsValue.Value); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MultiTermVectorsOperationDescriptor : SerializableDescriptor -{ - internal MultiTermVectorsOperationDescriptor(Action configure) => configure.Invoke(this); - - public MultiTermVectorsOperationDescriptor() : base() - { - } - - private object? DocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private bool? FieldStatisticsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private bool? OffsetsValue { get; set; } - private bool? PayloadsValue { get; set; } - private bool? PositionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private bool? TermStatisticsValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. - /// - /// - public MultiTermVectorsOperationDescriptor Doc(object? doc) - { - DocValue = doc; - return Self; - } - - /// - /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. - /// - /// - public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) - { - FieldStatisticsValue = fieldStatistics; - return Self; - } - - /// - /// - /// Filter terms based on their tf-idf scores. - /// - /// - public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.FilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public MultiTermVectorsOperationDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ID of the document. - /// - /// - public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index of the document. - /// - /// - public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) - { - OffsetsValue = offsets; - return Self; - } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) - { - PayloadsValue = payloads; - return Self; - } - - /// - /// - /// If true, the response includes term positions. - /// - /// - public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) - { - PositionsValue = positions; - return Self; - } - - /// - /// - /// Custom value used to route operations to a specific shard. - /// - /// - public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// If true, the response includes term frequency and document frequency. - /// - /// - public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) - { - TermStatisticsValue = termStatistics; - return Self; - } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public MultiTermVectorsOperationDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - /// - /// - /// Specific version type. - /// - /// - public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocValue is not null) - { - writer.WritePropertyName("doc"); - JsonSerializer.Serialize(writer, DocValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FieldStatisticsValue.HasValue) - { - writer.WritePropertyName("field_statistics"); - writer.WriteBooleanValue(FieldStatisticsValue.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.Core.TermVectors.FilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (IdValue is not null) - { - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (OffsetsValue.HasValue) - { - writer.WritePropertyName("offsets"); - writer.WriteBooleanValue(OffsetsValue.Value); - } - - if (PayloadsValue.HasValue) - { - writer.WritePropertyName("payloads"); - writer.WriteBooleanValue(PayloadsValue.Value); - } - - if (PositionsValue.HasValue) - { - writer.WritePropertyName("positions"); - writer.WriteBooleanValue(PositionsValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (TermStatisticsValue.HasValue) - { - writer.WritePropertyName("term_statistics"); - writer.WriteBooleanValue(TermStatisticsValue.Value); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ 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 deleted file mode 100644 index 4f06a813c46..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs +++ /dev/null @@ -1,47 +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.Core.Mtermvectors; - -public sealed partial class MultiTermVectorsResult -{ - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? Error { get; init; } - [JsonInclude, JsonPropertyName("found")] - public bool? Found { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string? Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("term_vectors")] - [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.TermVector))] - public IReadOnlyDictionary? TermVectors { get; init; } - [JsonInclude, JsonPropertyName("took")] - public long? Took { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiGetResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiGetResponseItem.g.cs deleted file mode 100644 index 9ff09f18602..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiGetResponseItem.g.cs +++ /dev/null @@ -1,42 +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.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.Core.MGet; - -public sealed partial class MultiGetResponseItem : Union, Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetError> -{ - public MultiGetResponseItem(Elastic.Clients.Elasticsearch.Serverless.Core.Get.GetResult Result) : base(Result) - { - } - - public MultiGetResponseItem(Elastic.Clients.Elasticsearch.Serverless.Core.MGet.MultiGetError Failure) : base(Failure) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiSearchResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiSearchResponseItem.g.cs deleted file mode 100644 index cc143a4d923..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MultiSearchResponseItem.g.cs +++ /dev/null @@ -1,42 +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.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.Core.MSearch; - -public sealed partial class MultiSearchResponseItem : Union, Elastic.Clients.Elasticsearch.Serverless.ErrorResponseBase> -{ - public MultiSearchResponseItem(Elastic.Clients.Elasticsearch.Serverless.Core.MSearch.MultiSearchItem Result) : base(Result) - { - } - - public MultiSearchResponseItem(Elastic.Clients.Elasticsearch.Serverless.ErrorResponseBase Failure) : base(Failure) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/DocumentRating.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/DocumentRating.g.cs deleted file mode 100644 index 4a2e1755791..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/DocumentRating.g.cs +++ /dev/null @@ -1,113 +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.Core.RankEval; - -public sealed partial class DocumentRating -{ - /// - /// - /// The document ID. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - - /// - /// - /// The document’s index. For data streams, this should be the document’s backing index. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } - - /// - /// - /// The document’s relevance with regard to this search request. - /// - /// - [JsonInclude, JsonPropertyName("rating")] - public int Rating { get; set; } -} - -public sealed partial class DocumentRatingDescriptor : SerializableDescriptor -{ - internal DocumentRatingDescriptor(Action configure) => configure.Invoke(this); - - public DocumentRatingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - private int RatingValue { get; set; } - - /// - /// - /// The document ID. - /// - /// - public DocumentRatingDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The document’s index. For data streams, this should be the document’s backing index. - /// - /// - public DocumentRatingDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// The document’s relevance with regard to this search request. - /// - /// - public DocumentRatingDescriptor Rating(int rating) - { - RatingValue = rating; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WritePropertyName("rating"); - writer.WriteNumberValue(RatingValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHit.g.cs deleted file mode 100644 index ae87096d60b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHit.g.cs +++ /dev/null @@ -1,38 +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.Core.RankEval; - -public sealed partial class RankEvalHit -{ - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("_score")] - public double Score { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs deleted file mode 100644 index 2df8dccb8a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalHitItem.g.cs +++ /dev/null @@ -1,36 +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.Core.RankEval; - -public sealed partial class RankEvalHitItem -{ - [JsonInclude, JsonPropertyName("hit")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalHit Hit { get; init; } - [JsonInclude, JsonPropertyName("rating")] - public double? Rating { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs deleted file mode 100644 index 72bb4258aa3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetric.g.cs +++ /dev/null @@ -1,273 +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.Core.RankEval; - -public sealed partial class RankEvalMetric -{ - [JsonInclude, JsonPropertyName("dcg")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDiscountedCumulativeGain? Dcg { get; set; } - [JsonInclude, JsonPropertyName("expected_reciprocal_rank")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricExpectedReciprocalRank? ExpectedReciprocalRank { get; set; } - [JsonInclude, JsonPropertyName("mean_reciprocal_rank")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricMeanReciprocalRank? MeanReciprocalRank { get; set; } - [JsonInclude, JsonPropertyName("precision")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricPrecision? Precision { get; set; } - [JsonInclude, JsonPropertyName("recall")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricRecall? Recall { get; set; } -} - -public sealed partial class RankEvalMetricDescriptor : SerializableDescriptor -{ - internal RankEvalMetricDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalMetricDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDiscountedCumulativeGain? DcgValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDiscountedCumulativeGainDescriptor DcgDescriptor { get; set; } - private Action DcgDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricExpectedReciprocalRank? ExpectedReciprocalRankValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricExpectedReciprocalRankDescriptor ExpectedReciprocalRankDescriptor { get; set; } - private Action ExpectedReciprocalRankDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricMeanReciprocalRank? MeanReciprocalRankValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricMeanReciprocalRankDescriptor MeanReciprocalRankDescriptor { get; set; } - private Action MeanReciprocalRankDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricPrecision? PrecisionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricPrecisionDescriptor PrecisionDescriptor { get; set; } - private Action PrecisionDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricRecall? RecallValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricRecallDescriptor RecallDescriptor { get; set; } - private Action RecallDescriptorAction { get; set; } - - public RankEvalMetricDescriptor Dcg(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDiscountedCumulativeGain? dcg) - { - DcgDescriptor = null; - DcgDescriptorAction = null; - DcgValue = dcg; - return Self; - } - - public RankEvalMetricDescriptor Dcg(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDiscountedCumulativeGainDescriptor descriptor) - { - DcgValue = null; - DcgDescriptorAction = null; - DcgDescriptor = descriptor; - return Self; - } - - public RankEvalMetricDescriptor Dcg(Action configure) - { - DcgValue = null; - DcgDescriptor = null; - DcgDescriptorAction = configure; - return Self; - } - - public RankEvalMetricDescriptor ExpectedReciprocalRank(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricExpectedReciprocalRank? expectedReciprocalRank) - { - ExpectedReciprocalRankDescriptor = null; - ExpectedReciprocalRankDescriptorAction = null; - ExpectedReciprocalRankValue = expectedReciprocalRank; - return Self; - } - - public RankEvalMetricDescriptor ExpectedReciprocalRank(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricExpectedReciprocalRankDescriptor descriptor) - { - ExpectedReciprocalRankValue = null; - ExpectedReciprocalRankDescriptorAction = null; - ExpectedReciprocalRankDescriptor = descriptor; - return Self; - } - - public RankEvalMetricDescriptor ExpectedReciprocalRank(Action configure) - { - ExpectedReciprocalRankValue = null; - ExpectedReciprocalRankDescriptor = null; - ExpectedReciprocalRankDescriptorAction = configure; - return Self; - } - - public RankEvalMetricDescriptor MeanReciprocalRank(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricMeanReciprocalRank? meanReciprocalRank) - { - MeanReciprocalRankDescriptor = null; - MeanReciprocalRankDescriptorAction = null; - MeanReciprocalRankValue = meanReciprocalRank; - return Self; - } - - public RankEvalMetricDescriptor MeanReciprocalRank(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricMeanReciprocalRankDescriptor descriptor) - { - MeanReciprocalRankValue = null; - MeanReciprocalRankDescriptorAction = null; - MeanReciprocalRankDescriptor = descriptor; - return Self; - } - - public RankEvalMetricDescriptor MeanReciprocalRank(Action configure) - { - MeanReciprocalRankValue = null; - MeanReciprocalRankDescriptor = null; - MeanReciprocalRankDescriptorAction = configure; - return Self; - } - - public RankEvalMetricDescriptor Precision(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricPrecision? precision) - { - PrecisionDescriptor = null; - PrecisionDescriptorAction = null; - PrecisionValue = precision; - return Self; - } - - public RankEvalMetricDescriptor Precision(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricPrecisionDescriptor descriptor) - { - PrecisionValue = null; - PrecisionDescriptorAction = null; - PrecisionDescriptor = descriptor; - return Self; - } - - public RankEvalMetricDescriptor Precision(Action configure) - { - PrecisionValue = null; - PrecisionDescriptor = null; - PrecisionDescriptorAction = configure; - return Self; - } - - public RankEvalMetricDescriptor Recall(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricRecall? recall) - { - RecallDescriptor = null; - RecallDescriptorAction = null; - RecallValue = recall; - return Self; - } - - public RankEvalMetricDescriptor Recall(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricRecallDescriptor descriptor) - { - RecallValue = null; - RecallDescriptorAction = null; - RecallDescriptor = descriptor; - return Self; - } - - public RankEvalMetricDescriptor Recall(Action configure) - { - RecallValue = null; - RecallDescriptor = null; - RecallDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DcgDescriptor is not null) - { - writer.WritePropertyName("dcg"); - JsonSerializer.Serialize(writer, DcgDescriptor, options); - } - else if (DcgDescriptorAction is not null) - { - writer.WritePropertyName("dcg"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricDiscountedCumulativeGainDescriptor(DcgDescriptorAction), options); - } - else if (DcgValue is not null) - { - writer.WritePropertyName("dcg"); - JsonSerializer.Serialize(writer, DcgValue, options); - } - - if (ExpectedReciprocalRankDescriptor is not null) - { - writer.WritePropertyName("expected_reciprocal_rank"); - JsonSerializer.Serialize(writer, ExpectedReciprocalRankDescriptor, options); - } - else if (ExpectedReciprocalRankDescriptorAction is not null) - { - writer.WritePropertyName("expected_reciprocal_rank"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricExpectedReciprocalRankDescriptor(ExpectedReciprocalRankDescriptorAction), options); - } - else if (ExpectedReciprocalRankValue is not null) - { - writer.WritePropertyName("expected_reciprocal_rank"); - JsonSerializer.Serialize(writer, ExpectedReciprocalRankValue, options); - } - - if (MeanReciprocalRankDescriptor is not null) - { - writer.WritePropertyName("mean_reciprocal_rank"); - JsonSerializer.Serialize(writer, MeanReciprocalRankDescriptor, options); - } - else if (MeanReciprocalRankDescriptorAction is not null) - { - writer.WritePropertyName("mean_reciprocal_rank"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricMeanReciprocalRankDescriptor(MeanReciprocalRankDescriptorAction), options); - } - else if (MeanReciprocalRankValue is not null) - { - writer.WritePropertyName("mean_reciprocal_rank"); - JsonSerializer.Serialize(writer, MeanReciprocalRankValue, options); - } - - if (PrecisionDescriptor is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionDescriptor, options); - } - else if (PrecisionDescriptorAction is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricPrecisionDescriptor(PrecisionDescriptorAction), options); - } - else if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (RecallDescriptor is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, RecallDescriptor, options); - } - else if (RecallDescriptorAction is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalMetricRecallDescriptor(RecallDescriptorAction), options); - } - else if (RecallValue is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, RecallValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs deleted file mode 100644 index 3934d3a62ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDetail.g.cs +++ /dev/null @@ -1,63 +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.Core.RankEval; - -public sealed partial class RankEvalMetricDetail -{ - /// - /// - /// The hits section shows a grouping of the search results with their supplied ratings - /// - /// - [JsonInclude, JsonPropertyName("hits")] - public IReadOnlyCollection Hits { get; init; } - - /// - /// - /// The metric_details give additional information about the calculated quality metric (e.g. how many of the retrieved documents were relevant). The content varies for each metric but allows for better interpretation of the results - /// - /// - [JsonInclude, JsonPropertyName("metric_details")] - public IReadOnlyDictionary> MetricDetails { get; init; } - - /// - /// - /// The metric_score in the details section shows the contribution of this query to the global quality metric score - /// - /// - [JsonInclude, JsonPropertyName("metric_score")] - public double MetricScore { get; init; } - - /// - /// - /// The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didn’t have a ratings value. This can be used to ask the user to supply ratings for these documents - /// - /// - [JsonInclude, JsonPropertyName("unrated_docs")] - public IReadOnlyCollection UnratedDocs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs deleted file mode 100644 index f53eb2505da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.Core.RankEval; - -/// -/// -/// Discounted cumulative gain (DCG) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricDiscountedCumulativeGain -{ - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// If set to true, this metric will calculate the Normalized DCG. - /// - /// - [JsonInclude, JsonPropertyName("normalize")] - public bool? Normalize { get; set; } -} - -/// -/// -/// Discounted cumulative gain (DCG) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricDiscountedCumulativeGainDescriptor : SerializableDescriptor -{ - internal RankEvalMetricDiscountedCumulativeGainDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalMetricDiscountedCumulativeGainDescriptor() : base() - { - } - - private int? kValue { get; set; } - private bool? NormalizeValue { get; set; } - - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - public RankEvalMetricDiscountedCumulativeGainDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// If set to true, this metric will calculate the Normalized DCG. - /// - /// - public RankEvalMetricDiscountedCumulativeGainDescriptor Normalize(bool? normalize = true) - { - NormalizeValue = normalize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (NormalizeValue.HasValue) - { - writer.WritePropertyName("normalize"); - writer.WriteBooleanValue(NormalizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs deleted file mode 100644 index acf5fb54ea7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ /dev/null @@ -1,107 +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.Core.RankEval; - -/// -/// -/// Expected Reciprocal Rank (ERR) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricExpectedReciprocalRank -{ - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// The highest relevance grade used in the user-supplied relevance judgments. - /// - /// - [JsonInclude, JsonPropertyName("maximum_relevance")] - public int MaximumRelevance { get; set; } -} - -/// -/// -/// Expected Reciprocal Rank (ERR) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricExpectedReciprocalRankDescriptor : SerializableDescriptor -{ - internal RankEvalMetricExpectedReciprocalRankDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalMetricExpectedReciprocalRankDescriptor() : base() - { - } - - private int? kValue { get; set; } - private int MaximumRelevanceValue { get; set; } - - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - public RankEvalMetricExpectedReciprocalRankDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// The highest relevance grade used in the user-supplied relevance judgments. - /// - /// - public RankEvalMetricExpectedReciprocalRankDescriptor MaximumRelevance(int maximumRelevance) - { - MaximumRelevanceValue = maximumRelevance; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - writer.WritePropertyName("maximum_relevance"); - writer.WriteNumberValue(MaximumRelevanceValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs deleted file mode 100644 index eba098f5694..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.Core.RankEval; - -/// -/// -/// Mean Reciprocal Rank -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricMeanReciprocalRank -{ - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// Sets the rating threshold above which documents are considered to be "relevant". - /// - /// - [JsonInclude, JsonPropertyName("relevant_rating_threshold")] - public int? RelevantRatingThreshold { get; set; } -} - -/// -/// -/// Mean Reciprocal Rank -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricMeanReciprocalRankDescriptor : SerializableDescriptor -{ - internal RankEvalMetricMeanReciprocalRankDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalMetricMeanReciprocalRankDescriptor() : base() - { - } - - private int? kValue { get; set; } - private int? RelevantRatingThresholdValue { get; set; } - - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - public RankEvalMetricMeanReciprocalRankDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// Sets the rating threshold above which documents are considered to be "relevant". - /// - /// - public RankEvalMetricMeanReciprocalRankDescriptor RelevantRatingThreshold(int? relevantRatingThreshold) - { - RelevantRatingThresholdValue = relevantRatingThreshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (RelevantRatingThresholdValue.HasValue) - { - writer.WritePropertyName("relevant_rating_threshold"); - writer.WriteNumberValue(RelevantRatingThresholdValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs deleted file mode 100644 index fdade2d12af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ /dev/null @@ -1,137 +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.Core.RankEval; - -/// -/// -/// Precision at K (P@k) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricPrecision -{ - /// - /// - /// Controls how unlabeled documents in the search results are counted. If set to true, unlabeled documents are ignored and neither count as relevant or irrelevant. Set to false (the default), they are treated as irrelevant. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unlabeled")] - public bool? IgnoreUnlabeled { get; set; } - - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// Sets the rating threshold above which documents are considered to be "relevant". - /// - /// - [JsonInclude, JsonPropertyName("relevant_rating_threshold")] - public int? RelevantRatingThreshold { get; set; } -} - -/// -/// -/// Precision at K (P@k) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricPrecisionDescriptor : SerializableDescriptor -{ - internal RankEvalMetricPrecisionDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalMetricPrecisionDescriptor() : base() - { - } - - private bool? IgnoreUnlabeledValue { get; set; } - private int? kValue { get; set; } - private int? RelevantRatingThresholdValue { get; set; } - - /// - /// - /// Controls how unlabeled documents in the search results are counted. If set to true, unlabeled documents are ignored and neither count as relevant or irrelevant. Set to false (the default), they are treated as irrelevant. - /// - /// - public RankEvalMetricPrecisionDescriptor IgnoreUnlabeled(bool? ignoreUnlabeled = true) - { - IgnoreUnlabeledValue = ignoreUnlabeled; - return Self; - } - - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - public RankEvalMetricPrecisionDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// Sets the rating threshold above which documents are considered to be "relevant". - /// - /// - public RankEvalMetricPrecisionDescriptor RelevantRatingThreshold(int? relevantRatingThreshold) - { - RelevantRatingThresholdValue = relevantRatingThreshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IgnoreUnlabeledValue.HasValue) - { - writer.WritePropertyName("ignore_unlabeled"); - writer.WriteBooleanValue(IgnoreUnlabeledValue.Value); - } - - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (RelevantRatingThresholdValue.HasValue) - { - writer.WritePropertyName("relevant_rating_threshold"); - writer.WriteNumberValue(RelevantRatingThresholdValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs deleted file mode 100644 index e8e65353032..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.Core.RankEval; - -/// -/// -/// Recall at K (R@k) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricRecall -{ - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// Sets the rating threshold above which documents are considered to be "relevant". - /// - /// - [JsonInclude, JsonPropertyName("relevant_rating_threshold")] - public int? RelevantRatingThreshold { get; set; } -} - -/// -/// -/// Recall at K (R@k) -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class RankEvalMetricRecallDescriptor : SerializableDescriptor -{ - internal RankEvalMetricRecallDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalMetricRecallDescriptor() : base() - { - } - - private int? kValue { get; set; } - private int? RelevantRatingThresholdValue { get; set; } - - /// - /// - /// Sets the maximum number of documents retrieved per query. This value will act in place of the usual size parameter in the query. - /// - /// - public RankEvalMetricRecallDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// Sets the rating threshold above which documents are considered to be "relevant". - /// - /// - public RankEvalMetricRecallDescriptor RelevantRatingThreshold(int? relevantRatingThreshold) - { - RelevantRatingThresholdValue = relevantRatingThreshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (RelevantRatingThresholdValue.HasValue) - { - writer.WritePropertyName("relevant_rating_threshold"); - writer.WriteNumberValue(RelevantRatingThresholdValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs deleted file mode 100644 index d3a94bc1579..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalQuery.g.cs +++ /dev/null @@ -1,180 +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.Core.RankEval; - -public sealed partial class RankEvalQuery -{ - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } -} - -public sealed partial class RankEvalQueryDescriptor : SerializableDescriptor> -{ - internal RankEvalQueryDescriptor(Action> configure) => configure.Invoke(this); - - public RankEvalQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private int? SizeValue { get; set; } - - public RankEvalQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public RankEvalQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public RankEvalQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public RankEvalQueryDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RankEvalQueryDescriptor : SerializableDescriptor -{ - internal RankEvalQueryDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private int? SizeValue { get; set; } - - public RankEvalQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public RankEvalQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public RankEvalQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public RankEvalQueryDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs deleted file mode 100644 index 70203af12a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs +++ /dev/null @@ -1,451 +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.Core.RankEval; - -public sealed partial class RankEvalRequestItem -{ - /// - /// - /// The search request’s ID, used to group result details later. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - - /// - /// - /// The search template parameters. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// List of document ratings - /// - /// - [JsonInclude, JsonPropertyName("ratings")] - public ICollection Ratings { get; set; } - - /// - /// - /// The query being evaluated. - /// - /// - [JsonInclude, JsonPropertyName("request")] - public Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQuery? Request { get; set; } - - /// - /// - /// The search template Id - /// - /// - [JsonInclude, JsonPropertyName("template_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? TemplateId { get; set; } -} - -public sealed partial class RankEvalRequestItemDescriptor : SerializableDescriptor> -{ - internal RankEvalRequestItemDescriptor(Action> configure) => configure.Invoke(this); - - public RankEvalRequestItemDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private ICollection RatingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor RatingsDescriptor { get; set; } - private Action RatingsDescriptorAction { get; set; } - private Action[] RatingsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQuery? RequestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQueryDescriptor RequestDescriptor { get; set; } - private Action> RequestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? TemplateIdValue { get; set; } - - /// - /// - /// The search request’s ID, used to group result details later. - /// - /// - public RankEvalRequestItemDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The search template parameters. - /// - /// - public RankEvalRequestItemDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// List of document ratings - /// - /// - public RankEvalRequestItemDescriptor Ratings(ICollection ratings) - { - RatingsDescriptor = null; - RatingsDescriptorAction = null; - RatingsDescriptorActions = null; - RatingsValue = ratings; - return Self; - } - - public RankEvalRequestItemDescriptor Ratings(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor descriptor) - { - RatingsValue = null; - RatingsDescriptorAction = null; - RatingsDescriptorActions = null; - RatingsDescriptor = descriptor; - return Self; - } - - public RankEvalRequestItemDescriptor Ratings(Action configure) - { - RatingsValue = null; - RatingsDescriptor = null; - RatingsDescriptorActions = null; - RatingsDescriptorAction = configure; - return Self; - } - - public RankEvalRequestItemDescriptor Ratings(params Action[] configure) - { - RatingsValue = null; - RatingsDescriptor = null; - RatingsDescriptorAction = null; - RatingsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The query being evaluated. - /// - /// - public RankEvalRequestItemDescriptor Request(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQuery? request) - { - RequestDescriptor = null; - RequestDescriptorAction = null; - RequestValue = request; - return Self; - } - - public RankEvalRequestItemDescriptor Request(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQueryDescriptor descriptor) - { - RequestValue = null; - RequestDescriptorAction = null; - RequestDescriptor = descriptor; - return Self; - } - - public RankEvalRequestItemDescriptor Request(Action> configure) - { - RequestValue = null; - RequestDescriptor = null; - RequestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The search template Id - /// - /// - public RankEvalRequestItemDescriptor TemplateId(Elastic.Clients.Elasticsearch.Serverless.Id? templateId) - { - TemplateIdValue = templateId; - 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); - } - - if (RatingsDescriptor is not null) - { - writer.WritePropertyName("ratings"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RatingsDescriptor, options); - writer.WriteEndArray(); - } - else if (RatingsDescriptorAction is not null) - { - writer.WritePropertyName("ratings"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor(RatingsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RatingsDescriptorActions is not null) - { - writer.WritePropertyName("ratings"); - writer.WriteStartArray(); - foreach (var action in RatingsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("ratings"); - JsonSerializer.Serialize(writer, RatingsValue, options); - } - - if (RequestDescriptor is not null) - { - writer.WritePropertyName("request"); - JsonSerializer.Serialize(writer, RequestDescriptor, options); - } - else if (RequestDescriptorAction is not null) - { - writer.WritePropertyName("request"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQueryDescriptor(RequestDescriptorAction), options); - } - else if (RequestValue is not null) - { - writer.WritePropertyName("request"); - JsonSerializer.Serialize(writer, RequestValue, options); - } - - if (TemplateIdValue is not null) - { - writer.WritePropertyName("template_id"); - JsonSerializer.Serialize(writer, TemplateIdValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RankEvalRequestItemDescriptor : SerializableDescriptor -{ - internal RankEvalRequestItemDescriptor(Action configure) => configure.Invoke(this); - - public RankEvalRequestItemDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private IDictionary? ParamsValue { get; set; } - private ICollection RatingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor RatingsDescriptor { get; set; } - private Action RatingsDescriptorAction { get; set; } - private Action[] RatingsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQuery? RequestValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQueryDescriptor RequestDescriptor { get; set; } - private Action RequestDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? TemplateIdValue { get; set; } - - /// - /// - /// The search request’s ID, used to group result details later. - /// - /// - public RankEvalRequestItemDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The search template parameters. - /// - /// - public RankEvalRequestItemDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// List of document ratings - /// - /// - public RankEvalRequestItemDescriptor Ratings(ICollection ratings) - { - RatingsDescriptor = null; - RatingsDescriptorAction = null; - RatingsDescriptorActions = null; - RatingsValue = ratings; - return Self; - } - - public RankEvalRequestItemDescriptor Ratings(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor descriptor) - { - RatingsValue = null; - RatingsDescriptorAction = null; - RatingsDescriptorActions = null; - RatingsDescriptor = descriptor; - return Self; - } - - public RankEvalRequestItemDescriptor Ratings(Action configure) - { - RatingsValue = null; - RatingsDescriptor = null; - RatingsDescriptorActions = null; - RatingsDescriptorAction = configure; - return Self; - } - - public RankEvalRequestItemDescriptor Ratings(params Action[] configure) - { - RatingsValue = null; - RatingsDescriptor = null; - RatingsDescriptorAction = null; - RatingsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The query being evaluated. - /// - /// - public RankEvalRequestItemDescriptor Request(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQuery? request) - { - RequestDescriptor = null; - RequestDescriptorAction = null; - RequestValue = request; - return Self; - } - - public RankEvalRequestItemDescriptor Request(Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQueryDescriptor descriptor) - { - RequestValue = null; - RequestDescriptorAction = null; - RequestDescriptor = descriptor; - return Self; - } - - public RankEvalRequestItemDescriptor Request(Action configure) - { - RequestValue = null; - RequestDescriptor = null; - RequestDescriptorAction = configure; - return Self; - } - - /// - /// - /// The search template Id - /// - /// - public RankEvalRequestItemDescriptor TemplateId(Elastic.Clients.Elasticsearch.Serverless.Id? templateId) - { - TemplateIdValue = templateId; - 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); - } - - if (RatingsDescriptor is not null) - { - writer.WritePropertyName("ratings"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RatingsDescriptor, options); - writer.WriteEndArray(); - } - else if (RatingsDescriptorAction is not null) - { - writer.WritePropertyName("ratings"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor(RatingsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RatingsDescriptorActions is not null) - { - writer.WritePropertyName("ratings"); - writer.WriteStartArray(); - foreach (var action in RatingsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.DocumentRatingDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("ratings"); - JsonSerializer.Serialize(writer, RatingsValue, options); - } - - if (RequestDescriptor is not null) - { - writer.WritePropertyName("request"); - JsonSerializer.Serialize(writer, RequestDescriptor, options); - } - else if (RequestDescriptorAction is not null) - { - writer.WritePropertyName("request"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.RankEval.RankEvalQueryDescriptor(RequestDescriptorAction), options); - } - else if (RequestValue is not null) - { - writer.WritePropertyName("request"); - JsonSerializer.Serialize(writer, RequestValue, options); - } - - if (TemplateIdValue is not null) - { - writer.WritePropertyName("template_id"); - JsonSerializer.Serialize(writer, TemplateIdValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/UnratedDocument.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/UnratedDocument.g.cs deleted file mode 100644 index b7c4bc85690..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/RankEval/UnratedDocument.g.cs +++ /dev/null @@ -1,36 +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.Core.RankEval; - -public sealed partial class UnratedDocument -{ - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs deleted file mode 100644 index 0cc263940d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs +++ /dev/null @@ -1,177 +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.Core.Reindex; - -public sealed partial class Destination -{ - /// - /// - /// The name of the data stream, index, or index alias you are copying to. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } - - /// - /// - /// Set to create to only index documents that do not already exist. - /// Important: To reindex to a data stream destination, this argument must be create. - /// - /// - [JsonInclude, JsonPropertyName("op_type")] - public Elastic.Clients.Elasticsearch.Serverless.OpType? OpType { get; set; } - - /// - /// - /// The name of the pipeline to use. - /// - /// - [JsonInclude, JsonPropertyName("pipeline")] - public string? Pipeline { get; set; } - - /// - /// - /// By default, a document's routing is preserved unless it’s changed by the script. - /// Set to discard to set routing to null, or =value to route using the specified value. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// The versioning to use for the indexing operation. - /// - /// - [JsonInclude, JsonPropertyName("version_type")] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } -} - -public sealed partial class DestinationDescriptor : SerializableDescriptor -{ - internal DestinationDescriptor(Action configure) => configure.Invoke(this); - - public DestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.OpType? OpTypeValue { get; set; } - private string? PipelineValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// The name of the data stream, index, or index alias you are copying to. - /// - /// - public DestinationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Set to create to only index documents that do not already exist. - /// Important: To reindex to a data stream destination, this argument must be create. - /// - /// - public DestinationDescriptor OpType(Elastic.Clients.Elasticsearch.Serverless.OpType? opType) - { - OpTypeValue = opType; - return Self; - } - - /// - /// - /// The name of the pipeline to use. - /// - /// - public DestinationDescriptor Pipeline(string? pipeline) - { - PipelineValue = pipeline; - return Self; - } - - /// - /// - /// By default, a document's routing is preserved unless it’s changed by the script. - /// Set to discard to set routing to null, or =value to route using the specified value. - /// - /// - public DestinationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// The versioning to use for the indexing operation. - /// - /// - public DestinationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (OpTypeValue is not null) - { - writer.WritePropertyName("op_type"); - JsonSerializer.Serialize(writer, OpTypeValue, options); - } - - if (!string.IsNullOrEmpty(PipelineValue)) - { - writer.WritePropertyName("pipeline"); - writer.WriteStringValue(PipelineValue); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs deleted file mode 100644 index 8977541e4cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs +++ /dev/null @@ -1,201 +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.Core.Reindex; - -public sealed partial class RemoteSource -{ - /// - /// - /// The remote connection timeout. - /// Defaults to 30 seconds. - /// - /// - [JsonInclude, JsonPropertyName("connect_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ConnectTimeout { get; set; } - - /// - /// - /// An object containing the headers of the request. - /// - /// - [JsonInclude, JsonPropertyName("headers")] - public IDictionary? Headers { get; set; } - - /// - /// - /// The URL for the remote instance of Elasticsearch that you want to index from. - /// - /// - [JsonInclude, JsonPropertyName("host")] - public string Host { get; set; } - - /// - /// - /// The password to use for authentication with the remote host. - /// - /// - [JsonInclude, JsonPropertyName("password")] - public string? Password { get; set; } - - /// - /// - /// The remote socket read timeout. Defaults to 30 seconds. - /// - /// - [JsonInclude, JsonPropertyName("socket_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? SocketTimeout { get; set; } - - /// - /// - /// The username to use for authentication with the remote host. - /// - /// - [JsonInclude, JsonPropertyName("username")] - public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get; set; } -} - -public sealed partial class RemoteSourceDescriptor : SerializableDescriptor -{ - internal RemoteSourceDescriptor(Action configure) => configure.Invoke(this); - - public RemoteSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? ConnectTimeoutValue { get; set; } - private IDictionary? HeadersValue { get; set; } - private string HostValue { get; set; } - private string? PasswordValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? SocketTimeoutValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } - - /// - /// - /// The remote connection timeout. - /// Defaults to 30 seconds. - /// - /// - public RemoteSourceDescriptor ConnectTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? connectTimeout) - { - ConnectTimeoutValue = connectTimeout; - return Self; - } - - /// - /// - /// An object containing the headers of the request. - /// - /// - public RemoteSourceDescriptor Headers(Func, FluentDictionary> selector) - { - HeadersValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The URL for the remote instance of Elasticsearch that you want to index from. - /// - /// - public RemoteSourceDescriptor Host(string host) - { - HostValue = host; - return Self; - } - - /// - /// - /// The password to use for authentication with the remote host. - /// - /// - public RemoteSourceDescriptor Password(string? password) - { - PasswordValue = password; - return Self; - } - - /// - /// - /// The remote socket read timeout. Defaults to 30 seconds. - /// - /// - public RemoteSourceDescriptor SocketTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? socketTimeout) - { - SocketTimeoutValue = socketTimeout; - return Self; - } - - /// - /// - /// The username to use for authentication with the remote host. - /// - /// - public RemoteSourceDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) - { - UsernameValue = username; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectTimeoutValue is not null) - { - writer.WritePropertyName("connect_timeout"); - JsonSerializer.Serialize(writer, ConnectTimeoutValue, options); - } - - if (HeadersValue is not null) - { - writer.WritePropertyName("headers"); - JsonSerializer.Serialize(writer, HeadersValue, options); - } - - writer.WritePropertyName("host"); - writer.WriteStringValue(HostValue); - if (!string.IsNullOrEmpty(PasswordValue)) - { - writer.WritePropertyName("password"); - writer.WriteStringValue(PasswordValue); - } - - if (SocketTimeoutValue is not null) - { - writer.WritePropertyName("socket_timeout"); - JsonSerializer.Serialize(writer, SocketTimeoutValue, options); - } - - if (UsernameValue is not null) - { - writer.WritePropertyName("username"); - JsonSerializer.Serialize(writer, UsernameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs deleted file mode 100644 index 7da14332827..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs +++ /dev/null @@ -1,678 +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.Core.Reindex; - -public sealed partial class Source -{ - /// - /// - /// The name of the data stream, index, or alias you are copying from. - /// Accepts a comma-separated list to reindex from multiple sources. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.Indices Indices { get; set; } - - /// - /// - /// Specifies the documents to reindex using the Query DSL. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// A remote instance of Elasticsearch that you want to index from. - /// - /// - [JsonInclude, JsonPropertyName("remote")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? Remote { get; set; } - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// The number of documents to index per batch. - /// Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Slice the reindex request manually using the provided slice ID and total number of slices. - /// - /// - [JsonInclude, JsonPropertyName("slice")] - public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - /// - /// - /// If true reindexes all source fields. - /// Set to a list to reindex select fields. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFields { get; set; } -} - -public sealed partial class SourceDescriptor : SerializableDescriptor> -{ - internal SourceDescriptor(Action> configure) => configure.Invoke(this); - - public SourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? RemoteValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSourceDescriptor RemoteDescriptor { get; set; } - private Action RemoteDescriptorAction { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private int? SizeValue { 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFieldsValue { get; set; } - - /// - /// - /// The name of the data stream, index, or alias you are copying from. - /// Accepts a comma-separated list to reindex from multiple sources. - /// - /// - public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies the documents to reindex using the Query DSL. - /// - /// - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// A remote instance of Elasticsearch that you want to index from. - /// - /// - public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? remote) - { - RemoteDescriptor = null; - RemoteDescriptorAction = null; - RemoteValue = remote; - return Self; - } - - public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSourceDescriptor descriptor) - { - RemoteValue = null; - RemoteDescriptorAction = null; - RemoteDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Remote(Action configure) - { - RemoteValue = null; - RemoteDescriptor = null; - RemoteDescriptorAction = configure; - return Self; - } - - public SourceDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// The number of documents to index per batch. - /// Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. - /// - /// - public SourceDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Slice the reindex request manually using the provided slice ID and total number of slices. - /// - /// - public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Slice(Action> configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SourceDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true reindexes all source fields. - /// Set to a list to reindex select fields. - /// - /// - public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceFields) - { - SourceFieldsValue = sourceFields; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RemoteDescriptor is not null) - { - writer.WritePropertyName("remote"); - JsonSerializer.Serialize(writer, RemoteDescriptor, options); - } - else if (RemoteDescriptorAction is not null) - { - writer.WritePropertyName("remote"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSourceDescriptor(RemoteDescriptorAction), options); - } - else if (RemoteValue is not null) - { - writer.WritePropertyName("remote"); - JsonSerializer.Serialize(writer, RemoteValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceFieldsValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceFieldsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SourceDescriptor : SerializableDescriptor -{ - internal SourceDescriptor(Action configure) => configure.Invoke(this); - - public SourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? RemoteValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSourceDescriptor RemoteDescriptor { get; set; } - private Action RemoteDescriptorAction { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private int? SizeValue { 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; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFieldsValue { get; set; } - - /// - /// - /// The name of the data stream, index, or alias you are copying from. - /// Accepts a comma-separated list to reindex from multiple sources. - /// - /// - public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies the documents to reindex using the Query DSL. - /// - /// - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// A remote instance of Elasticsearch that you want to index from. - /// - /// - public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? remote) - { - RemoteDescriptor = null; - RemoteDescriptorAction = null; - RemoteValue = remote; - return Self; - } - - public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSourceDescriptor descriptor) - { - RemoteValue = null; - RemoteDescriptorAction = null; - RemoteDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Remote(Action configure) - { - RemoteValue = null; - RemoteDescriptor = null; - RemoteDescriptorAction = configure; - return Self; - } - - public SourceDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The number of documents to index per batch. - /// Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. - /// - /// - public SourceDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Slice the reindex request manually using the provided slice ID and total number of slices. - /// - /// - public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) - { - SliceDescriptor = null; - SliceDescriptorAction = null; - SliceValue = slice; - return Self; - } - - public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor descriptor) - { - SliceValue = null; - SliceDescriptorAction = null; - SliceDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Slice(Action configure) - { - SliceValue = null; - SliceDescriptor = null; - SliceDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SourceDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true reindexes all source fields. - /// Set to a list to reindex select fields. - /// - /// - public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceFields) - { - SourceFieldsValue = sourceFields; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RemoteDescriptor is not null) - { - writer.WritePropertyName("remote"); - JsonSerializer.Serialize(writer, RemoteDescriptor, options); - } - else if (RemoteDescriptorAction is not null) - { - writer.WritePropertyName("remote"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSourceDescriptor(RemoteDescriptorAction), options); - } - else if (RemoteValue is not null) - { - writer.WritePropertyName("remote"); - JsonSerializer.Serialize(writer, RemoteValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SliceDescriptor is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceDescriptor, options); - } - else if (SliceDescriptorAction is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SlicedScrollDescriptor(SliceDescriptorAction), options); - } - else if (SliceValue is not null) - { - writer.WritePropertyName("slice"); - JsonSerializer.Serialize(writer, SliceValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceFieldsValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceFieldsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs deleted file mode 100644 index 3590e39355d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs +++ /dev/null @@ -1,46 +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.Core.ReindexRethrottle; - -public sealed partial class ReindexNode -{ - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary Attributes { get; init; } - [JsonInclude, JsonPropertyName("host")] - public string Host { get; init; } - [JsonInclude, JsonPropertyName("ip")] - public string Ip { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - [JsonInclude, JsonPropertyName("tasks")] - public IReadOnlyDictionary Tasks { get; init; } - [JsonInclude, JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs deleted file mode 100644 index d3d73bde17c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.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.Core.ReindexRethrottle; - -public sealed partial class ReindexStatus -{ - /// - /// - /// The number of scroll responses pulled back by the reindex. - /// - /// - [JsonInclude, JsonPropertyName("batches")] - public long Batches { get; init; } - - /// - /// - /// The number of documents that were successfully created. - /// - /// - [JsonInclude, JsonPropertyName("created")] - public long Created { get; init; } - - /// - /// - /// The number of documents that were successfully deleted. - /// - /// - [JsonInclude, JsonPropertyName("deleted")] - public long Deleted { get; init; } - - /// - /// - /// The number of documents that were ignored because the script used for the reindex returned a noop value for ctx.op. - /// - /// - [JsonInclude, JsonPropertyName("noops")] - public long Noops { get; init; } - - /// - /// - /// The number of requests per second effectively executed during the reindex. - /// - /// - [JsonInclude, JsonPropertyName("requests_per_second")] - public float RequestsPerSecond { get; init; } - - /// - /// - /// The number of retries attempted by reindex. bulk is the number of bulk actions retried and search is the number of search actions retried. - /// - /// - [JsonInclude, JsonPropertyName("retries")] - public Elastic.Clients.Elasticsearch.Serverless.Retries Retries { get; init; } - [JsonInclude, JsonPropertyName("throttled")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Throttled { get; init; } - - /// - /// - /// Number of milliseconds the request slept to conform to requests_per_second. - /// - /// - [JsonInclude, JsonPropertyName("throttled_millis")] - public long ThrottledMillis { get; init; } - [JsonInclude, JsonPropertyName("throttled_until")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ThrottledUntil { get; init; } - - /// - /// - /// This field should always be equal to zero in a _reindex response. - /// It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to requests_per_second. - /// - /// - [JsonInclude, JsonPropertyName("throttled_until_millis")] - public long ThrottledUntilMillis { get; init; } - - /// - /// - /// The number of documents that were successfully processed. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } - - /// - /// - /// The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it. - /// - /// - [JsonInclude, JsonPropertyName("updated")] - public long Updated { get; init; } - - /// - /// - /// The number of version conflicts that reindex hits. - /// - /// - [JsonInclude, JsonPropertyName("version_conflicts")] - public long VersionConflicts { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs deleted file mode 100644 index cd14b9a0ec6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs +++ /dev/null @@ -1,52 +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.Core.ReindexRethrottle; - -public sealed partial class ReindexTask -{ - [JsonInclude, JsonPropertyName("action")] - public string Action { get; init; } - [JsonInclude, JsonPropertyName("cancellable")] - public bool Cancellable { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("headers")] - public IReadOnlyDictionary>> Headers { get; init; } - [JsonInclude, JsonPropertyName("id")] - public long Id { get; init; } - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } - [JsonInclude, JsonPropertyName("running_time_in_nanos")] - public long RunningTimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Core.ReindexRethrottle.ReindexStatus Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationBreakdown.g.cs deleted file mode 100644 index 107bf6b83d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationBreakdown.g.cs +++ /dev/null @@ -1,56 +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.Core.Search; - -public sealed partial class AggregationBreakdown -{ - [JsonInclude, JsonPropertyName("build_aggregation")] - public long BuildAggregation { get; init; } - [JsonInclude, JsonPropertyName("build_aggregation_count")] - public long BuildAggregationCount { get; init; } - [JsonInclude, JsonPropertyName("build_leaf_collector")] - public long BuildLeafCollector { get; init; } - [JsonInclude, JsonPropertyName("build_leaf_collector_count")] - public long BuildLeafCollectorCount { get; init; } - [JsonInclude, JsonPropertyName("collect")] - public long Collect { get; init; } - [JsonInclude, JsonPropertyName("collect_count")] - public long CollectCount { get; init; } - [JsonInclude, JsonPropertyName("initialize")] - public long Initialize { get; init; } - [JsonInclude, JsonPropertyName("initialize_count")] - public long InitializeCount { get; init; } - [JsonInclude, JsonPropertyName("post_collection")] - public long? PostCollection { get; init; } - [JsonInclude, JsonPropertyName("post_collection_count")] - public long? PostCollectionCount { get; init; } - [JsonInclude, JsonPropertyName("reduce")] - public long Reduce { get; init; } - [JsonInclude, JsonPropertyName("reduce_count")] - public long ReduceCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfile.g.cs deleted file mode 100644 index 059def04a40..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfile.g.cs +++ /dev/null @@ -1,44 +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.Core.Search; - -public sealed partial class AggregationProfile -{ - [JsonInclude, JsonPropertyName("breakdown")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.AggregationBreakdown Breakdown { get; init; } - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("debug")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.AggregationProfileDebug? Debug { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs deleted file mode 100644 index b37d0f1d624..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDebug.g.cs +++ /dev/null @@ -1,96 +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.Core.Search; - -public sealed partial class AggregationProfileDebug -{ - [JsonInclude, JsonPropertyName("brute_force_used")] - public int? BruteForceUsed { get; init; } - [JsonInclude, JsonPropertyName("built_buckets")] - public int? BuiltBuckets { get; init; } - [JsonInclude, JsonPropertyName("chars_fetched")] - public int? CharsFetched { get; init; } - [JsonInclude, JsonPropertyName("collect_analyzed_count")] - public int? CollectAnalyzedCount { get; init; } - [JsonInclude, JsonPropertyName("collect_analyzed_ns")] - public int? CollectAnalyzedNs { get; init; } - [JsonInclude, JsonPropertyName("collection_strategy")] - public string? CollectionStrategy { get; init; } - [JsonInclude, JsonPropertyName("deferred_aggregators")] - public IReadOnlyCollection? DeferredAggregators { get; init; } - [JsonInclude, JsonPropertyName("delegate")] - public string? Delegate { get; init; } - [JsonInclude, JsonPropertyName("delegate_debug")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.AggregationProfileDebug? DelegateDebug { get; init; } - [JsonInclude, JsonPropertyName("dynamic_pruning_attempted")] - public int? DynamicPruningAttempted { get; init; } - [JsonInclude, JsonPropertyName("dynamic_pruning_used")] - public int? DynamicPruningUsed { get; init; } - [JsonInclude, JsonPropertyName("empty_collectors_used")] - public int? EmptyCollectorsUsed { get; init; } - [JsonInclude, JsonPropertyName("extract_count")] - public int? ExtractCount { get; init; } - [JsonInclude, JsonPropertyName("extract_ns")] - public int? ExtractNs { get; init; } - [JsonInclude, JsonPropertyName("filters")] - public IReadOnlyCollection? Filters { get; init; } - [JsonInclude, JsonPropertyName("has_filter")] - public bool? HasFilter { get; init; } - [JsonInclude, JsonPropertyName("map_reducer")] - public string? MapReducer { get; init; } - [JsonInclude, JsonPropertyName("numeric_collectors_used")] - public int? NumericCollectorsUsed { get; init; } - [JsonInclude, JsonPropertyName("ordinals_collectors_overhead_too_high")] - public int? OrdinalsCollectorsOverheadTooHigh { get; init; } - [JsonInclude, JsonPropertyName("ordinals_collectors_used")] - public int? OrdinalsCollectorsUsed { get; init; } - [JsonInclude, JsonPropertyName("result_strategy")] - public string? ResultStrategy { get; init; } - [JsonInclude, JsonPropertyName("segments_collected")] - public int? SegmentsCollected { get; init; } - [JsonInclude, JsonPropertyName("segments_counted")] - public int? SegmentsCounted { get; init; } - [JsonInclude, JsonPropertyName("segments_with_deleted_docs")] - public int? SegmentsWithDeletedDocs { get; init; } - [JsonInclude, JsonPropertyName("segments_with_doc_count_field")] - public int? SegmentsWithDocCountField { get; init; } - [JsonInclude, JsonPropertyName("segments_with_multi_valued_ords")] - public int? SegmentsWithMultiValuedOrds { get; init; } - [JsonInclude, JsonPropertyName("segments_with_single_valued_ords")] - public int? SegmentsWithSingleValuedOrds { get; init; } - [JsonInclude, JsonPropertyName("skipped_due_to_no_data")] - public int? SkippedDueToNoData { get; init; } - [JsonInclude, JsonPropertyName("string_hashing_collectors_used")] - public int? StringHashingCollectorsUsed { get; init; } - [JsonInclude, JsonPropertyName("surviving_buckets")] - public int? SurvivingBuckets { get; init; } - [JsonInclude, JsonPropertyName("total_buckets")] - public int? TotalBuckets { get; init; } - [JsonInclude, JsonPropertyName("values_fetched")] - public int? ValuesFetched { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs deleted file mode 100644 index 8aa572d5f82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/AggregationProfileDelegateDebugFilter.g.cs +++ /dev/null @@ -1,40 +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.Core.Search; - -public sealed partial class AggregationProfileDelegateDebugFilter -{ - [JsonInclude, JsonPropertyName("query")] - public string? Query { get; init; } - [JsonInclude, JsonPropertyName("results_from_metadata")] - public int? ResultsFromMetadata { get; init; } - [JsonInclude, JsonPropertyName("segments_counted_in_constant_time")] - public int? SegmentsCountedInConstantTime { get; init; } - [JsonInclude, JsonPropertyName("specialized_for")] - public string? SpecializedFor { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Collector.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Collector.g.cs deleted file mode 100644 index ff5d14a7392..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Collector.g.cs +++ /dev/null @@ -1,40 +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.Core.Search; - -public sealed partial class Collector -{ - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs deleted file mode 100644 index 735e528d441..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs +++ /dev/null @@ -1,183 +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.Core.Search; - -public sealed partial class CompletionContext -{ - /// - /// - /// The factor by which the score of the suggestion should be boosted. - /// The score is computed by multiplying the boost with the suggestion weight. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - - /// - /// - /// The value of the category to filter/boost on. - /// - /// - [JsonInclude, JsonPropertyName("context")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Context Context { get; set; } - - /// - /// - /// An array of precision values at which neighboring geohashes should be taken into account. - /// Precision value can be a distance value (5m, 10km, etc.) or a raw geohash precision (1..12). - /// Defaults to generating neighbors for index time precision level. - /// - /// - [JsonInclude, JsonPropertyName("neighbours")] - public ICollection? Neighbours { get; set; } - - /// - /// - /// The precision of the geohash to encode the query geo point. - /// Can be specified as a distance value (5m, 10km, etc.), or as a raw geohash precision (1..12). - /// Defaults to index time precision level. - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? Precision { get; set; } - - /// - /// - /// Whether the category value should be treated as a prefix or not. - /// - /// - [JsonInclude, JsonPropertyName("prefix")] - public bool? Prefix { get; set; } -} - -public sealed partial class CompletionContextDescriptor : SerializableDescriptor -{ - internal CompletionContextDescriptor(Action configure) => configure.Invoke(this); - - public CompletionContextDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Context ContextValue { get; set; } - private ICollection? NeighboursValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? PrecisionValue { get; set; } - private bool? PrefixValue { get; set; } - - /// - /// - /// The factor by which the score of the suggestion should be boosted. - /// The score is computed by multiplying the boost with the suggestion weight. - /// - /// - public CompletionContextDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The value of the category to filter/boost on. - /// - /// - public CompletionContextDescriptor Context(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Context context) - { - ContextValue = context; - return Self; - } - - /// - /// - /// An array of precision values at which neighboring geohashes should be taken into account. - /// Precision value can be a distance value (5m, 10km, etc.) or a raw geohash precision (1..12). - /// Defaults to generating neighbors for index time precision level. - /// - /// - public CompletionContextDescriptor Neighbours(ICollection? neighbours) - { - NeighboursValue = neighbours; - return Self; - } - - /// - /// - /// The precision of the geohash to encode the query geo point. - /// Can be specified as a distance value (5m, 10km, etc.), or as a raw geohash precision (1..12). - /// Defaults to index time precision level. - /// - /// - public CompletionContextDescriptor Precision(Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? precision) - { - PrecisionValue = precision; - return Self; - } - - /// - /// - /// Whether the category value should be treated as a prefix or not. - /// - /// - public CompletionContextDescriptor Prefix(bool? prefix = true) - { - PrefixValue = prefix; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("context"); - JsonSerializer.Serialize(writer, ContextValue, options); - if (NeighboursValue is not null) - { - writer.WritePropertyName("neighbours"); - JsonSerializer.Serialize(writer, NeighboursValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (PrefixValue.HasValue) - { - writer.WritePropertyName("prefix"); - writer.WriteBooleanValue(PrefixValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggest.g.cs deleted file mode 100644 index 2f3b7b91e4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggest.g.cs +++ /dev/null @@ -1,41 +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.Core.Search; - -public sealed partial class CompletionSuggest : ISuggest -{ - [JsonInclude, JsonPropertyName("length")] - public int Length { get; init; } - [JsonInclude, JsonPropertyName("offset")] - public int Offset { get; init; } - [JsonInclude, JsonPropertyName("options")] - [GenericConverter(typeof(SingleOrManyCollectionConverter<>), unwrap: true)] - public IReadOnlyCollection> Options { get; init; } - [JsonInclude, JsonPropertyName("text")] - public string Text { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs deleted file mode 100644 index 822c13b2570..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggestOption.g.cs +++ /dev/null @@ -1,53 +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.Core.Search; - -public sealed partial class CompletionSuggestOption -{ - [JsonInclude, JsonPropertyName("collate_match")] - public bool? CollateMatch { get; init; } - [JsonInclude, JsonPropertyName("contexts")] - public IReadOnlyDictionary>? Contexts { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string? Id { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string? Index { get; init; } - [JsonInclude, JsonPropertyName("_routing")] - public string? Routing { get; init; } - [JsonInclude, JsonPropertyName("score")] - public double? Score { get; init; } - [JsonInclude, JsonPropertyName("_score")] - public double? Score0 { get; init; } - [JsonInclude, JsonPropertyName("_source")] - [SourceConverter] - public TDocument? Source { get; init; } - [JsonInclude, JsonPropertyName("text")] - public string Text { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs deleted file mode 100644 index 3a121eb0a95..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs +++ /dev/null @@ -1,539 +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.Core.Search; - -public sealed partial class CompletionSuggester -{ - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. - /// - /// - [JsonInclude, JsonPropertyName("contexts")] - public IDictionary>>? Contexts { get; set; } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Enables fuzziness, meaning you can have a typo in your search and still get results back. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? Fuzzy { get; set; } - - /// - /// - /// A regex query that expresses a prefix as a regular expression. - /// - /// - [JsonInclude, JsonPropertyName("regex")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? Regex { get; set; } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Whether duplicate suggestions should be filtered out. - /// - /// - [JsonInclude, JsonPropertyName("skip_duplicates")] - public bool? SkipDuplicates { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldSuggester(CompletionSuggester completionSuggester) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldSuggester.Completion(completionSuggester); -} - -public sealed partial class CompletionSuggesterDescriptor : SerializableDescriptor> -{ - internal CompletionSuggesterDescriptor(Action> configure) => configure.Invoke(this); - - public CompletionSuggesterDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private IDictionary>>? ContextsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? FuzzyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzzinessDescriptor FuzzyDescriptor { get; set; } - private Action FuzzyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? RegexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptionsDescriptor RegexDescriptor { get; set; } - private Action RegexDescriptorAction { get; set; } - private int? SizeValue { get; set; } - private bool? SkipDuplicatesValue { get; set; } - - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - public CompletionSuggesterDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. - /// - /// - public CompletionSuggesterDescriptor Contexts(Func>>, FluentDictionary>>> selector) - { - ContextsValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public CompletionSuggesterDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public CompletionSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public CompletionSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Enables fuzziness, meaning you can have a typo in your search and still get results back. - /// - /// - public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? fuzzy) - { - FuzzyDescriptor = null; - FuzzyDescriptorAction = null; - FuzzyValue = fuzzy; - return Self; - } - - public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzzinessDescriptor descriptor) - { - FuzzyValue = null; - FuzzyDescriptorAction = null; - FuzzyDescriptor = descriptor; - return Self; - } - - public CompletionSuggesterDescriptor Fuzzy(Action configure) - { - FuzzyValue = null; - FuzzyDescriptor = null; - FuzzyDescriptorAction = configure; - return Self; - } - - /// - /// - /// A regex query that expresses a prefix as a regular expression. - /// - /// - public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? regex) - { - RegexDescriptor = null; - RegexDescriptorAction = null; - RegexValue = regex; - return Self; - } - - public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptionsDescriptor descriptor) - { - RegexValue = null; - RegexDescriptorAction = null; - RegexDescriptor = descriptor; - return Self; - } - - public CompletionSuggesterDescriptor Regex(Action configure) - { - RegexValue = null; - RegexDescriptor = null; - RegexDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public CompletionSuggesterDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Whether duplicate suggestions should be filtered out. - /// - /// - public CompletionSuggesterDescriptor SkipDuplicates(bool? skipDuplicates = true) - { - SkipDuplicatesValue = skipDuplicates; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (ContextsValue is not null) - { - writer.WritePropertyName("contexts"); - JsonSerializer.Serialize(writer, ContextsValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (FuzzyDescriptor is not null) - { - writer.WritePropertyName("fuzzy"); - JsonSerializer.Serialize(writer, FuzzyDescriptor, options); - } - else if (FuzzyDescriptorAction is not null) - { - writer.WritePropertyName("fuzzy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzzinessDescriptor(FuzzyDescriptorAction), options); - } - else if (FuzzyValue is not null) - { - writer.WritePropertyName("fuzzy"); - JsonSerializer.Serialize(writer, FuzzyValue, options); - } - - if (RegexDescriptor is not null) - { - writer.WritePropertyName("regex"); - JsonSerializer.Serialize(writer, RegexDescriptor, options); - } - else if (RegexDescriptorAction is not null) - { - writer.WritePropertyName("regex"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptionsDescriptor(RegexDescriptorAction), options); - } - else if (RegexValue is not null) - { - writer.WritePropertyName("regex"); - JsonSerializer.Serialize(writer, RegexValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SkipDuplicatesValue.HasValue) - { - writer.WritePropertyName("skip_duplicates"); - writer.WriteBooleanValue(SkipDuplicatesValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CompletionSuggesterDescriptor : SerializableDescriptor -{ - internal CompletionSuggesterDescriptor(Action configure) => configure.Invoke(this); - - public CompletionSuggesterDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private IDictionary>>? ContextsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? FuzzyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzzinessDescriptor FuzzyDescriptor { get; set; } - private Action FuzzyDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? RegexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptionsDescriptor RegexDescriptor { get; set; } - private Action RegexDescriptorAction { get; set; } - private int? SizeValue { get; set; } - private bool? SkipDuplicatesValue { get; set; } - - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - public CompletionSuggesterDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. - /// - /// - public CompletionSuggesterDescriptor Contexts(Func>>, FluentDictionary>>> selector) - { - ContextsValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public CompletionSuggesterDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public CompletionSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public CompletionSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Enables fuzziness, meaning you can have a typo in your search and still get results back. - /// - /// - public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? fuzzy) - { - FuzzyDescriptor = null; - FuzzyDescriptorAction = null; - FuzzyValue = fuzzy; - return Self; - } - - public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzzinessDescriptor descriptor) - { - FuzzyValue = null; - FuzzyDescriptorAction = null; - FuzzyDescriptor = descriptor; - return Self; - } - - public CompletionSuggesterDescriptor Fuzzy(Action configure) - { - FuzzyValue = null; - FuzzyDescriptor = null; - FuzzyDescriptorAction = configure; - return Self; - } - - /// - /// - /// A regex query that expresses a prefix as a regular expression. - /// - /// - public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? regex) - { - RegexDescriptor = null; - RegexDescriptorAction = null; - RegexValue = regex; - return Self; - } - - public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptionsDescriptor descriptor) - { - RegexValue = null; - RegexDescriptorAction = null; - RegexDescriptor = descriptor; - return Self; - } - - public CompletionSuggesterDescriptor Regex(Action configure) - { - RegexValue = null; - RegexDescriptor = null; - RegexDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public CompletionSuggesterDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Whether duplicate suggestions should be filtered out. - /// - /// - public CompletionSuggesterDescriptor SkipDuplicates(bool? skipDuplicates = true) - { - SkipDuplicatesValue = skipDuplicates; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (ContextsValue is not null) - { - writer.WritePropertyName("contexts"); - JsonSerializer.Serialize(writer, ContextsValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (FuzzyDescriptor is not null) - { - writer.WritePropertyName("fuzzy"); - JsonSerializer.Serialize(writer, FuzzyDescriptor, options); - } - else if (FuzzyDescriptorAction is not null) - { - writer.WritePropertyName("fuzzy"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzzinessDescriptor(FuzzyDescriptorAction), options); - } - else if (FuzzyValue is not null) - { - writer.WritePropertyName("fuzzy"); - JsonSerializer.Serialize(writer, FuzzyValue, options); - } - - if (RegexDescriptor is not null) - { - writer.WritePropertyName("regex"); - JsonSerializer.Serialize(writer, RegexDescriptor, options); - } - else if (RegexDescriptorAction is not null) - { - writer.WritePropertyName("regex"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptionsDescriptor(RegexDescriptorAction), options); - } - else if (RegexValue is not null) - { - writer.WritePropertyName("regex"); - JsonSerializer.Serialize(writer, RegexValue, options); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SkipDuplicatesValue.HasValue) - { - writer.WritePropertyName("skip_duplicates"); - writer.WriteBooleanValue(SkipDuplicatesValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs deleted file mode 100644 index e530248121d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsKnnProfile.g.cs +++ /dev/null @@ -1,40 +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.Core.Search; - -public sealed partial class DfsKnnProfile -{ - [JsonInclude, JsonPropertyName("collector")] - public IReadOnlyCollection Collector { get; init; } - [JsonInclude, JsonPropertyName("query")] - public IReadOnlyCollection Query { get; init; } - [JsonInclude, JsonPropertyName("rewrite_time")] - public long RewriteTime { get; init; } - [JsonInclude, JsonPropertyName("vector_operations_count")] - public long? VectorOperationsCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs deleted file mode 100644 index 9382b2458b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsProfile.g.cs +++ /dev/null @@ -1,36 +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.Core.Search; - -public sealed partial class DfsProfile -{ - [JsonInclude, JsonPropertyName("knn")] - public IReadOnlyCollection? Knn { get; init; } - [JsonInclude, JsonPropertyName("statistics")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsStatisticsProfile? Statistics { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs deleted file mode 100644 index c1e450ddf09..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsBreakdown.g.cs +++ /dev/null @@ -1,48 +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.Core.Search; - -public sealed partial class DfsStatisticsBreakdown -{ - [JsonInclude, JsonPropertyName("collection_statistics")] - public long CollectionStatistics { get; init; } - [JsonInclude, JsonPropertyName("collection_statistics_count")] - public long CollectionStatisticsCount { get; init; } - [JsonInclude, JsonPropertyName("create_weight")] - public long CreateWeight { get; init; } - [JsonInclude, JsonPropertyName("create_weight_count")] - public long CreateWeightCount { get; init; } - [JsonInclude, JsonPropertyName("rewrite")] - public long Rewrite { get; init; } - [JsonInclude, JsonPropertyName("rewrite_count")] - public long RewriteCount { get; init; } - [JsonInclude, JsonPropertyName("term_statistics")] - public long TermStatistics { get; init; } - [JsonInclude, JsonPropertyName("term_statistics_count")] - public long TermStatisticsCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs deleted file mode 100644 index 45ca7daa2a6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DfsStatisticsProfile.g.cs +++ /dev/null @@ -1,46 +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.Core.Search; - -public sealed partial class DfsStatisticsProfile -{ - [JsonInclude, JsonPropertyName("breakdown")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsStatisticsBreakdown Breakdown { get; init; } - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("debug")] - public IReadOnlyDictionary? Debug { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs deleted file mode 100644 index 404c811fbb5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs +++ /dev/null @@ -1,620 +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.Core.Search; - -public sealed partial class DirectGenerator -{ - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. - /// Can only be 1 or 2. - /// - /// - [JsonInclude, JsonPropertyName("max_edits")] - public int? MaxEdits { get; set; } - - /// - /// - /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level. - /// Can improve accuracy at the cost of performance. - /// - /// - [JsonInclude, JsonPropertyName("max_inspections")] - public float? MaxInspections { get; set; } - - /// - /// - /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included. - /// This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked. - /// Can be a relative percentage number (for example 0.4) or an absolute number to represent document frequencies. - /// If a value higher than 1 is specified, then fractional can not be specified. - /// - /// - [JsonInclude, JsonPropertyName("max_term_freq")] - public float? MaxTermFreq { get; set; } - - /// - /// - /// The minimal threshold in number of documents a suggestion should appear in. - /// This can improve quality by only suggesting high frequency terms. - /// Can be specified as an absolute number or as a relative percentage of number of documents. - /// If a value higher than 1 is specified, the number cannot be fractional. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_freq")] - public float? MinDocFreq { get; set; } - - /// - /// - /// The minimum length a suggest text term must have in order to be included. - /// - /// - [JsonInclude, JsonPropertyName("min_word_length")] - public int? MinWordLength { get; set; } - - /// - /// - /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. - /// - /// - [JsonInclude, JsonPropertyName("post_filter")] - public string? PostFilter { get; set; } - - /// - /// - /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator. - /// This filter is applied to the original token before candidates are generated. - /// - /// - [JsonInclude, JsonPropertyName("pre_filter")] - public string? PreFilter { get; set; } - - /// - /// - /// The number of minimal prefix characters that must match in order be a candidate suggestions. - /// Increasing this number improves spellcheck performance. - /// - /// - [JsonInclude, JsonPropertyName("prefix_length")] - public int? PrefixLength { get; set; } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Controls what suggestions are included on the suggestions generated on each shard. - /// - /// - [JsonInclude, JsonPropertyName("suggest_mode")] - public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get; set; } -} - -public sealed partial class DirectGeneratorDescriptor : SerializableDescriptor> -{ - internal DirectGeneratorDescriptor(Action> configure) => configure.Invoke(this); - - public DirectGeneratorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? MaxEditsValue { get; set; } - private float? MaxInspectionsValue { get; set; } - private float? MaxTermFreqValue { get; set; } - private float? MinDocFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - private string? PostFilterValue { get; set; } - private string? PreFilterValue { get; set; } - private int? PrefixLengthValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestModeValue { get; set; } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public DirectGeneratorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public DirectGeneratorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public DirectGeneratorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. - /// Can only be 1 or 2. - /// - /// - public DirectGeneratorDescriptor MaxEdits(int? maxEdits) - { - MaxEditsValue = maxEdits; - return Self; - } - - /// - /// - /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level. - /// Can improve accuracy at the cost of performance. - /// - /// - public DirectGeneratorDescriptor MaxInspections(float? maxInspections) - { - MaxInspectionsValue = maxInspections; - return Self; - } - - /// - /// - /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included. - /// This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked. - /// Can be a relative percentage number (for example 0.4) or an absolute number to represent document frequencies. - /// If a value higher than 1 is specified, then fractional can not be specified. - /// - /// - public DirectGeneratorDescriptor MaxTermFreq(float? maxTermFreq) - { - MaxTermFreqValue = maxTermFreq; - return Self; - } - - /// - /// - /// The minimal threshold in number of documents a suggestion should appear in. - /// This can improve quality by only suggesting high frequency terms. - /// Can be specified as an absolute number or as a relative percentage of number of documents. - /// If a value higher than 1 is specified, the number cannot be fractional. - /// - /// - public DirectGeneratorDescriptor MinDocFreq(float? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// The minimum length a suggest text term must have in order to be included. - /// - /// - public DirectGeneratorDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - /// - /// - /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. - /// - /// - public DirectGeneratorDescriptor PostFilter(string? postFilter) - { - PostFilterValue = postFilter; - return Self; - } - - /// - /// - /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator. - /// This filter is applied to the original token before candidates are generated. - /// - /// - public DirectGeneratorDescriptor PreFilter(string? preFilter) - { - PreFilterValue = preFilter; - return Self; - } - - /// - /// - /// The number of minimal prefix characters that must match in order be a candidate suggestions. - /// Increasing this number improves spellcheck performance. - /// - /// - public DirectGeneratorDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public DirectGeneratorDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Controls what suggestions are included on the suggestions generated on each shard. - /// - /// - public DirectGeneratorDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) - { - SuggestModeValue = suggestMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (MaxEditsValue.HasValue) - { - writer.WritePropertyName("max_edits"); - writer.WriteNumberValue(MaxEditsValue.Value); - } - - if (MaxInspectionsValue.HasValue) - { - writer.WritePropertyName("max_inspections"); - writer.WriteNumberValue(MaxInspectionsValue.Value); - } - - if (MaxTermFreqValue.HasValue) - { - writer.WritePropertyName("max_term_freq"); - writer.WriteNumberValue(MaxTermFreqValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - if (!string.IsNullOrEmpty(PostFilterValue)) - { - writer.WritePropertyName("post_filter"); - writer.WriteStringValue(PostFilterValue); - } - - if (!string.IsNullOrEmpty(PreFilterValue)) - { - writer.WritePropertyName("pre_filter"); - writer.WriteStringValue(PreFilterValue); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SuggestModeValue is not null) - { - writer.WritePropertyName("suggest_mode"); - JsonSerializer.Serialize(writer, SuggestModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DirectGeneratorDescriptor : SerializableDescriptor -{ - internal DirectGeneratorDescriptor(Action configure) => configure.Invoke(this); - - public DirectGeneratorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? MaxEditsValue { get; set; } - private float? MaxInspectionsValue { get; set; } - private float? MaxTermFreqValue { get; set; } - private float? MinDocFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - private string? PostFilterValue { get; set; } - private string? PreFilterValue { get; set; } - private int? PrefixLengthValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestModeValue { get; set; } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public DirectGeneratorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public DirectGeneratorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public DirectGeneratorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. - /// Can only be 1 or 2. - /// - /// - public DirectGeneratorDescriptor MaxEdits(int? maxEdits) - { - MaxEditsValue = maxEdits; - return Self; - } - - /// - /// - /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level. - /// Can improve accuracy at the cost of performance. - /// - /// - public DirectGeneratorDescriptor MaxInspections(float? maxInspections) - { - MaxInspectionsValue = maxInspections; - return Self; - } - - /// - /// - /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included. - /// This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked. - /// Can be a relative percentage number (for example 0.4) or an absolute number to represent document frequencies. - /// If a value higher than 1 is specified, then fractional can not be specified. - /// - /// - public DirectGeneratorDescriptor MaxTermFreq(float? maxTermFreq) - { - MaxTermFreqValue = maxTermFreq; - return Self; - } - - /// - /// - /// The minimal threshold in number of documents a suggestion should appear in. - /// This can improve quality by only suggesting high frequency terms. - /// Can be specified as an absolute number or as a relative percentage of number of documents. - /// If a value higher than 1 is specified, the number cannot be fractional. - /// - /// - public DirectGeneratorDescriptor MinDocFreq(float? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// The minimum length a suggest text term must have in order to be included. - /// - /// - public DirectGeneratorDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - /// - /// - /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. - /// - /// - public DirectGeneratorDescriptor PostFilter(string? postFilter) - { - PostFilterValue = postFilter; - return Self; - } - - /// - /// - /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator. - /// This filter is applied to the original token before candidates are generated. - /// - /// - public DirectGeneratorDescriptor PreFilter(string? preFilter) - { - PreFilterValue = preFilter; - return Self; - } - - /// - /// - /// The number of minimal prefix characters that must match in order be a candidate suggestions. - /// Increasing this number improves spellcheck performance. - /// - /// - public DirectGeneratorDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public DirectGeneratorDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Controls what suggestions are included on the suggestions generated on each shard. - /// - /// - public DirectGeneratorDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) - { - SuggestModeValue = suggestMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (MaxEditsValue.HasValue) - { - writer.WritePropertyName("max_edits"); - writer.WriteNumberValue(MaxEditsValue.Value); - } - - if (MaxInspectionsValue.HasValue) - { - writer.WritePropertyName("max_inspections"); - writer.WriteNumberValue(MaxInspectionsValue.Value); - } - - if (MaxTermFreqValue.HasValue) - { - writer.WritePropertyName("max_term_freq"); - writer.WriteNumberValue(MaxTermFreqValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - if (!string.IsNullOrEmpty(PostFilterValue)) - { - writer.WritePropertyName("post_filter"); - writer.WriteStringValue(PostFilterValue); - } - - if (!string.IsNullOrEmpty(PreFilterValue)) - { - writer.WritePropertyName("pre_filter"); - writer.WriteStringValue(PreFilterValue); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SuggestModeValue is not null) - { - writer.WritePropertyName("suggest_mode"); - JsonSerializer.Serialize(writer, SuggestModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfile.g.cs deleted file mode 100644 index 087f0625db9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfile.g.cs +++ /dev/null @@ -1,44 +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.Core.Search; - -public sealed partial class FetchProfile -{ - [JsonInclude, JsonPropertyName("breakdown")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FetchProfileBreakdown Breakdown { get; init; } - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("debug")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FetchProfileDebug? Debug { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs deleted file mode 100644 index 4242883cc7d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileBreakdown.g.cs +++ /dev/null @@ -1,48 +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.Core.Search; - -public sealed partial class FetchProfileBreakdown -{ - [JsonInclude, JsonPropertyName("load_source")] - public int? LoadSource { get; init; } - [JsonInclude, JsonPropertyName("load_source_count")] - public int? LoadSourceCount { get; init; } - [JsonInclude, JsonPropertyName("load_stored_fields")] - public int? LoadStoredFields { get; init; } - [JsonInclude, JsonPropertyName("load_stored_fields_count")] - public int? LoadStoredFieldsCount { get; init; } - [JsonInclude, JsonPropertyName("next_reader")] - public int? NextReader { get; init; } - [JsonInclude, JsonPropertyName("next_reader_count")] - public int? NextReaderCount { get; init; } - [JsonInclude, JsonPropertyName("process")] - public int? Process { get; init; } - [JsonInclude, JsonPropertyName("process_count")] - public int? ProcessCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileDebug.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileDebug.g.cs deleted file mode 100644 index d41b30420cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FetchProfileDebug.g.cs +++ /dev/null @@ -1,36 +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.Core.Search; - -public sealed partial class FetchProfileDebug -{ - [JsonInclude, JsonPropertyName("fast_path")] - public int? FastPath { get; init; } - [JsonInclude, JsonPropertyName("stored_fields")] - public IReadOnlyCollection? StoredFields { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldCollapse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldCollapse.g.cs deleted file mode 100644 index a37f32afbc0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldCollapse.g.cs +++ /dev/null @@ -1,433 +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.Core.Search; - -public sealed partial class FieldCollapse -{ - [JsonInclude, JsonPropertyName("collapse")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; } - - /// - /// - /// The field to collapse the result set on - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The number of inner hits and their sort order - /// - /// - [JsonInclude, JsonPropertyName("inner_hits")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits))] - public ICollection? InnerHits { get; set; } - - /// - /// - /// The number of concurrent requests allowed to retrieve the inner_hits per group - /// - /// - [JsonInclude, JsonPropertyName("max_concurrent_group_searches")] - public int? MaxConcurrentGroupSearches { get; set; } -} - -public sealed partial class FieldCollapseDescriptor : SerializableDescriptor> -{ - internal FieldCollapseDescriptor(Action> configure) => configure.Invoke(this); - - public FieldCollapseDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action> CollapseDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action> InnerHitsDescriptorAction { get; set; } - private Action>[] InnerHitsDescriptorActions { get; set; } - private int? MaxConcurrentGroupSearchesValue { get; set; } - - public FieldCollapseDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public FieldCollapseDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public FieldCollapseDescriptor Collapse(Action> configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field to collapse the result set on - /// - /// - public FieldCollapseDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to collapse the result set on - /// - /// - public FieldCollapseDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to collapse the result set on - /// - /// - public FieldCollapseDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The number of inner hits and their sort order - /// - /// - public FieldCollapseDescriptor InnerHits(ICollection? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptorActions = null; - InnerHitsValue = innerHits; - return Self; - } - - public FieldCollapseDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptorActions = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public FieldCollapseDescriptor InnerHits(Action> configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorActions = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - public FieldCollapseDescriptor InnerHits(params Action>[] configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The number of concurrent requests allowed to retrieve the inner_hits per group - /// - /// - public FieldCollapseDescriptor MaxConcurrentGroupSearches(int? maxConcurrentGroupSearches) - { - MaxConcurrentGroupSearchesValue = maxConcurrentGroupSearches; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsDescriptorActions is not null) - { - writer.WritePropertyName("inner_hits"); - if (InnerHitsDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in InnerHitsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(action), options); - } - - if (InnerHitsDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - SingleOrManySerializationHelper.Serialize(InnerHitsValue, writer, options); - } - - if (MaxConcurrentGroupSearchesValue.HasValue) - { - writer.WritePropertyName("max_concurrent_group_searches"); - writer.WriteNumberValue(MaxConcurrentGroupSearchesValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldCollapseDescriptor : SerializableDescriptor -{ - internal FieldCollapseDescriptor(Action configure) => configure.Invoke(this); - - public FieldCollapseDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action CollapseDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action InnerHitsDescriptorAction { get; set; } - private Action[] InnerHitsDescriptorActions { get; set; } - private int? MaxConcurrentGroupSearchesValue { get; set; } - - public FieldCollapseDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public FieldCollapseDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public FieldCollapseDescriptor Collapse(Action configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field to collapse the result set on - /// - /// - public FieldCollapseDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to collapse the result set on - /// - /// - public FieldCollapseDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to collapse the result set on - /// - /// - public FieldCollapseDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The number of inner hits and their sort order - /// - /// - public FieldCollapseDescriptor InnerHits(ICollection? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptorActions = null; - InnerHitsValue = innerHits; - return Self; - } - - public FieldCollapseDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptorActions = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public FieldCollapseDescriptor InnerHits(Action configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorActions = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - public FieldCollapseDescriptor InnerHits(params Action[] configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The number of concurrent requests allowed to retrieve the inner_hits per group - /// - /// - public FieldCollapseDescriptor MaxConcurrentGroupSearches(int? maxConcurrentGroupSearches) - { - MaxConcurrentGroupSearchesValue = maxConcurrentGroupSearches; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsDescriptorActions is not null) - { - writer.WritePropertyName("inner_hits"); - if (InnerHitsDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in InnerHitsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(action), options); - } - - if (InnerHitsDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - SingleOrManySerializationHelper.Serialize(InnerHitsValue, writer, options); - } - - if (MaxConcurrentGroupSearchesValue.HasValue) - { - writer.WritePropertyName("max_concurrent_group_searches"); - writer.WriteNumberValue(MaxConcurrentGroupSearchesValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs deleted file mode 100644 index c717dbd72ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs +++ /dev/null @@ -1,436 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; - -[JsonConverter(typeof(FieldSuggesterConverter))] -public sealed partial class FieldSuggester -{ - internal FieldSuggester(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static FieldSuggester Completion(Elastic.Clients.Elasticsearch.Serverless.Core.Search.CompletionSuggester completionSuggester) => new FieldSuggester("completion", completionSuggester); - public static FieldSuggester Phrase(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggester phraseSuggester) => new FieldSuggester("phrase", phraseSuggester); - public static FieldSuggester Term(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TermSuggester termSuggester) => new FieldSuggester("term", termSuggester); - - /// - /// - /// Prefix used to search for suggestions. - /// - /// - [JsonInclude, JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// - /// A prefix expressed as a regular expression. - /// - /// - [JsonInclude, JsonPropertyName("regex")] - public string? Regex { get; set; } - - /// - /// - /// The text to use as input for the suggester. - /// Needs to be set globally or per suggestion. - /// - /// - [JsonInclude, JsonPropertyName("text")] - public string? Text { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class FieldSuggesterConverter : JsonConverter -{ - public override FieldSuggester Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - string? prefixValue = default; - string? regexValue = default; - string? textValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "prefix") - { - prefixValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "regex") - { - regexValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "text") - { - textValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "completion") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "phrase") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FieldSuggester' from the response."); - } - - var result = new FieldSuggester(variantNameValue, variantValue); - result.Prefix = prefixValue; - result.Regex = regexValue; - result.Text = textValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, FieldSuggester value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Prefix)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(value.Prefix); - } - - if (!string.IsNullOrEmpty(value.Regex)) - { - writer.WritePropertyName("regex"); - writer.WriteStringValue(value.Regex); - } - - if (!string.IsNullOrEmpty(value.Text)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(value.Text); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "completion": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.CompletionSuggester)value.Variant, options); - break; - case "phrase": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggester)value.Variant, options); - break; - case "term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.TermSuggester)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldSuggesterDescriptor : SerializableDescriptor> -{ - internal FieldSuggesterDescriptor(Action> configure) => configure.Invoke(this); - - public FieldSuggesterDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private FieldSuggesterDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private FieldSuggesterDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private string? PrefixValue { get; set; } - private string? RegexValue { get; set; } - private string? TextValue { get; set; } - - /// - /// - /// Prefix used to search for suggestions. - /// - /// - public FieldSuggesterDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// A prefix expressed as a regular expression. - /// - /// - public FieldSuggesterDescriptor Regex(string? regex) - { - RegexValue = regex; - return Self; - } - - /// - /// - /// The text to use as input for the suggester. - /// Needs to be set globally or per suggestion. - /// - /// - public FieldSuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - public FieldSuggesterDescriptor Completion(Elastic.Clients.Elasticsearch.Serverless.Core.Search.CompletionSuggester completionSuggester) => Set(completionSuggester, "completion"); - public FieldSuggesterDescriptor Completion(Action> configure) => Set(configure, "completion"); - public FieldSuggesterDescriptor Phrase(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggester phraseSuggester) => Set(phraseSuggester, "phrase"); - public FieldSuggesterDescriptor Phrase(Action> configure) => Set(configure, "phrase"); - public FieldSuggesterDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TermSuggester termSuggester) => Set(termSuggester, "term"); - public FieldSuggesterDescriptor Term(Action> configure) => Set(configure, "term"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (!string.IsNullOrEmpty(RegexValue)) - { - writer.WritePropertyName("regex"); - writer.WriteStringValue(RegexValue); - } - - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldSuggesterDescriptor : SerializableDescriptor -{ - internal FieldSuggesterDescriptor(Action configure) => configure.Invoke(this); - - public FieldSuggesterDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private FieldSuggesterDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private FieldSuggesterDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private string? PrefixValue { get; set; } - private string? RegexValue { get; set; } - private string? TextValue { get; set; } - - /// - /// - /// Prefix used to search for suggestions. - /// - /// - public FieldSuggesterDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// A prefix expressed as a regular expression. - /// - /// - public FieldSuggesterDescriptor Regex(string? regex) - { - RegexValue = regex; - return Self; - } - - /// - /// - /// The text to use as input for the suggester. - /// Needs to be set globally or per suggestion. - /// - /// - public FieldSuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - public FieldSuggesterDescriptor Completion(Elastic.Clients.Elasticsearch.Serverless.Core.Search.CompletionSuggester completionSuggester) => Set(completionSuggester, "completion"); - public FieldSuggesterDescriptor Completion(Action configure) => Set(configure, "completion"); - public FieldSuggesterDescriptor Phrase(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggester phraseSuggester) => Set(phraseSuggester, "phrase"); - public FieldSuggesterDescriptor Phrase(Action configure) => Set(configure, "phrase"); - public FieldSuggesterDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TermSuggester termSuggester) => Set(termSuggester, "term"); - public FieldSuggesterDescriptor Term(Action configure) => Set(configure, "term"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (!string.IsNullOrEmpty(RegexValue)) - { - writer.WritePropertyName("regex"); - writer.WriteStringValue(RegexValue); - } - - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Highlight.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Highlight.g.cs deleted file mode 100644 index d2ec32f9516..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Highlight.g.cs +++ /dev/null @@ -1,1047 +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.Core.Search; - -public sealed partial class Highlight -{ - /// - /// - /// A string that contains each boundary character. - /// - /// - [JsonInclude, JsonPropertyName("boundary_chars")] - public string? BoundaryChars { get; set; } - - /// - /// - /// How far to scan for boundary characters. - /// - /// - [JsonInclude, JsonPropertyName("boundary_max_scan")] - public int? BoundaryMaxScan { get; set; } - - /// - /// - /// Specifies how to break the highlighted fragments: chars, sentence, or word. - /// Only valid for the unified and fvh highlighters. - /// Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter. - /// - /// - [JsonInclude, JsonPropertyName("boundary_scanner")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScanner { get; set; } - - /// - /// - /// Controls which locale is used to search for sentence and word boundaries. - /// This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP". - /// - /// - [JsonInclude, JsonPropertyName("boundary_scanner_locale")] - public string? BoundaryScannerLocale { get; set; } - [JsonInclude, JsonPropertyName("encoder")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterEncoder? Encoder { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public IDictionary Fields { get; set; } - - /// - /// - /// Specifies how text should be broken up in highlight snippets: simple or span. - /// Only valid for the plain highlighter. - /// - /// - [JsonInclude, JsonPropertyName("fragmenter")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? Fragmenter { get; set; } - - /// - /// - /// The size of the highlighted fragment in characters. - /// - /// - [JsonInclude, JsonPropertyName("fragment_size")] - public int? FragmentSize { get; set; } - [JsonInclude, JsonPropertyName("highlight_filter")] - public bool? HighlightFilter { get; set; } - - /// - /// - /// Highlight matches for a query other than the search query. - /// This is especially useful if you use a rescore query because those are not taken into account by highlighting by default. - /// - /// - [JsonInclude, JsonPropertyName("highlight_query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQuery { get; set; } - - /// - /// - /// If set to a non-negative value, highlighting stops at this defined maximum limit. - /// The rest of the text is not processed, thus not highlighted and no error is returned - /// The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting. - /// - /// - [JsonInclude, JsonPropertyName("max_analyzed_offset")] - public int? MaxAnalyzedOffset { get; set; } - [JsonInclude, JsonPropertyName("max_fragment_length")] - public int? MaxFragmentLength { get; set; } - - /// - /// - /// The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. - /// - /// - [JsonInclude, JsonPropertyName("no_match_size")] - public int? NoMatchSize { get; set; } - - /// - /// - /// The maximum number of fragments to return. - /// If the number of fragments is set to 0, no fragments are returned. - /// Instead, the entire field contents are highlighted and returned. - /// This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required. - /// If number_of_fragments is 0, fragment_size is ignored. - /// - /// - [JsonInclude, JsonPropertyName("number_of_fragments")] - public int? NumberOfFragments { get; set; } - [JsonInclude, JsonPropertyName("options")] - public IDictionary? Options { get; set; } - - /// - /// - /// Sorts highlighted fragments by score when set to score. - /// By default, fragments will be output in the order they appear in the field (order: none). - /// Setting this option to score will output the most relevant fragments first. - /// Each highlighter applies its own logic to compute relevancy scores. - /// - /// - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? Order { get; set; } - - /// - /// - /// Controls the number of matching phrases in a document that are considered. - /// Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory. - /// When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory. - /// Only supported by the fvh highlighter. - /// - /// - [JsonInclude, JsonPropertyName("phrase_limit")] - public int? PhraseLimit { get; set; } - - /// - /// - /// Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - [JsonInclude, JsonPropertyName("post_tags")] - public ICollection? PostTags { get; set; } - - /// - /// - /// Use in conjunction with post_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - [JsonInclude, JsonPropertyName("pre_tags")] - public ICollection? PreTags { get; set; } - - /// - /// - /// By default, only fields that contains a query match are highlighted. - /// Set to false to highlight all fields. - /// - /// - [JsonInclude, JsonPropertyName("require_field_match")] - public bool? RequireFieldMatch { get; set; } - - /// - /// - /// Set to styled to use the built-in tag schema. - /// - /// - [JsonInclude, JsonPropertyName("tags_schema")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchema { get; set; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? Type { get; set; } -} - -public sealed partial class HighlightDescriptor : SerializableDescriptor> -{ - internal HighlightDescriptor(Action> configure) => configure.Invoke(this); - - public HighlightDescriptor() : base() - { - } - - private string? BoundaryCharsValue { get; set; } - private int? BoundaryMaxScanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } - private string? BoundaryScannerLocaleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterEncoder? EncoderValue { get; set; } - private IDictionary> FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? FragmenterValue { get; set; } - private int? FragmentSizeValue { get; set; } - private bool? HighlightFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor HighlightQueryDescriptor { get; set; } - private Action> HighlightQueryDescriptorAction { get; set; } - private int? MaxAnalyzedOffsetValue { get; set; } - private int? MaxFragmentLengthValue { get; set; } - private int? NoMatchSizeValue { get; set; } - private int? NumberOfFragmentsValue { get; set; } - private IDictionary? OptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? OrderValue { get; set; } - private int? PhraseLimitValue { get; set; } - private ICollection? PostTagsValue { get; set; } - private ICollection? PreTagsValue { get; set; } - private bool? RequireFieldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? TypeValue { get; set; } - - /// - /// - /// A string that contains each boundary character. - /// - /// - public HighlightDescriptor BoundaryChars(string? boundaryChars) - { - BoundaryCharsValue = boundaryChars; - return Self; - } - - /// - /// - /// How far to scan for boundary characters. - /// - /// - public HighlightDescriptor BoundaryMaxScan(int? boundaryMaxScan) - { - BoundaryMaxScanValue = boundaryMaxScan; - return Self; - } - - /// - /// - /// Specifies how to break the highlighted fragments: chars, sentence, or word. - /// Only valid for the unified and fvh highlighters. - /// Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter. - /// - /// - public HighlightDescriptor BoundaryScanner(Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? boundaryScanner) - { - BoundaryScannerValue = boundaryScanner; - return Self; - } - - /// - /// - /// Controls which locale is used to search for sentence and word boundaries. - /// This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP". - /// - /// - public HighlightDescriptor BoundaryScannerLocale(string? boundaryScannerLocale) - { - BoundaryScannerLocaleValue = boundaryScannerLocale; - return Self; - } - - public HighlightDescriptor Encoder(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterEncoder? encoder) - { - EncoderValue = encoder; - return Self; - } - - public HighlightDescriptor Fields(Func>, FluentDescriptorDictionary>> selector) - { - FieldsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Specifies how text should be broken up in highlight snippets: simple or span. - /// Only valid for the plain highlighter. - /// - /// - public HighlightDescriptor Fragmenter(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? fragmenter) - { - FragmenterValue = fragmenter; - return Self; - } - - /// - /// - /// The size of the highlighted fragment in characters. - /// - /// - public HighlightDescriptor FragmentSize(int? fragmentSize) - { - FragmentSizeValue = fragmentSize; - return Self; - } - - public HighlightDescriptor HighlightFilter(bool? highlightFilter = true) - { - HighlightFilterValue = highlightFilter; - return Self; - } - - /// - /// - /// Highlight matches for a query other than the search query. - /// This is especially useful if you use a rescore query because those are not taken into account by highlighting by default. - /// - /// - public HighlightDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? highlightQuery) - { - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = null; - HighlightQueryValue = highlightQuery; - return Self; - } - - public HighlightDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - HighlightQueryValue = null; - HighlightQueryDescriptorAction = null; - HighlightQueryDescriptor = descriptor; - return Self; - } - - public HighlightDescriptor HighlightQuery(Action> configure) - { - HighlightQueryValue = null; - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// If set to a non-negative value, highlighting stops at this defined maximum limit. - /// The rest of the text is not processed, thus not highlighted and no error is returned - /// The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting. - /// - /// - public HighlightDescriptor MaxAnalyzedOffset(int? maxAnalyzedOffset) - { - MaxAnalyzedOffsetValue = maxAnalyzedOffset; - return Self; - } - - public HighlightDescriptor MaxFragmentLength(int? maxFragmentLength) - { - MaxFragmentLengthValue = maxFragmentLength; - return Self; - } - - /// - /// - /// The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. - /// - /// - public HighlightDescriptor NoMatchSize(int? noMatchSize) - { - NoMatchSizeValue = noMatchSize; - return Self; - } - - /// - /// - /// The maximum number of fragments to return. - /// If the number of fragments is set to 0, no fragments are returned. - /// Instead, the entire field contents are highlighted and returned. - /// This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required. - /// If number_of_fragments is 0, fragment_size is ignored. - /// - /// - public HighlightDescriptor NumberOfFragments(int? numberOfFragments) - { - NumberOfFragmentsValue = numberOfFragments; - return Self; - } - - public HighlightDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Sorts highlighted fragments by score when set to score. - /// By default, fragments will be output in the order they appear in the field (order: none). - /// Setting this option to score will output the most relevant fragments first. - /// Each highlighter applies its own logic to compute relevancy scores. - /// - /// - public HighlightDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Controls the number of matching phrases in a document that are considered. - /// Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory. - /// When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory. - /// Only supported by the fvh highlighter. - /// - /// - public HighlightDescriptor PhraseLimit(int? phraseLimit) - { - PhraseLimitValue = phraseLimit; - return Self; - } - - /// - /// - /// Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightDescriptor PostTags(ICollection? postTags) - { - PostTagsValue = postTags; - return Self; - } - - /// - /// - /// Use in conjunction with post_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightDescriptor PreTags(ICollection? preTags) - { - PreTagsValue = preTags; - return Self; - } - - /// - /// - /// By default, only fields that contains a query match are highlighted. - /// Set to false to highlight all fields. - /// - /// - public HighlightDescriptor RequireFieldMatch(bool? requireFieldMatch = true) - { - RequireFieldMatchValue = requireFieldMatch; - return Self; - } - - /// - /// - /// Set to styled to use the built-in tag schema. - /// - /// - public HighlightDescriptor TagsSchema(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? tagsSchema) - { - TagsSchemaValue = tagsSchema; - return Self; - } - - public HighlightDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(BoundaryCharsValue)) - { - writer.WritePropertyName("boundary_chars"); - writer.WriteStringValue(BoundaryCharsValue); - } - - if (BoundaryMaxScanValue.HasValue) - { - writer.WritePropertyName("boundary_max_scan"); - writer.WriteNumberValue(BoundaryMaxScanValue.Value); - } - - if (BoundaryScannerValue is not null) - { - writer.WritePropertyName("boundary_scanner"); - JsonSerializer.Serialize(writer, BoundaryScannerValue, options); - } - - if (!string.IsNullOrEmpty(BoundaryScannerLocaleValue)) - { - writer.WritePropertyName("boundary_scanner_locale"); - writer.WriteStringValue(BoundaryScannerLocaleValue); - } - - if (EncoderValue is not null) - { - writer.WritePropertyName("encoder"); - JsonSerializer.Serialize(writer, EncoderValue, options); - } - - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - if (FragmenterValue is not null) - { - writer.WritePropertyName("fragmenter"); - JsonSerializer.Serialize(writer, FragmenterValue, options); - } - - if (FragmentSizeValue.HasValue) - { - writer.WritePropertyName("fragment_size"); - writer.WriteNumberValue(FragmentSizeValue.Value); - } - - if (HighlightFilterValue.HasValue) - { - writer.WritePropertyName("highlight_filter"); - writer.WriteBooleanValue(HighlightFilterValue.Value); - } - - if (HighlightQueryDescriptor is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryDescriptor, options); - } - else if (HighlightQueryDescriptorAction is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(HighlightQueryDescriptorAction), options); - } - else if (HighlightQueryValue is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryValue, options); - } - - if (MaxAnalyzedOffsetValue.HasValue) - { - writer.WritePropertyName("max_analyzed_offset"); - writer.WriteNumberValue(MaxAnalyzedOffsetValue.Value); - } - - if (MaxFragmentLengthValue.HasValue) - { - writer.WritePropertyName("max_fragment_length"); - writer.WriteNumberValue(MaxFragmentLengthValue.Value); - } - - if (NoMatchSizeValue.HasValue) - { - writer.WritePropertyName("no_match_size"); - writer.WriteNumberValue(NoMatchSizeValue.Value); - } - - if (NumberOfFragmentsValue.HasValue) - { - writer.WritePropertyName("number_of_fragments"); - writer.WriteNumberValue(NumberOfFragmentsValue.Value); - } - - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (PhraseLimitValue.HasValue) - { - writer.WritePropertyName("phrase_limit"); - writer.WriteNumberValue(PhraseLimitValue.Value); - } - - if (PostTagsValue is not null) - { - writer.WritePropertyName("post_tags"); - JsonSerializer.Serialize(writer, PostTagsValue, options); - } - - if (PreTagsValue is not null) - { - writer.WritePropertyName("pre_tags"); - JsonSerializer.Serialize(writer, PreTagsValue, options); - } - - if (RequireFieldMatchValue.HasValue) - { - writer.WritePropertyName("require_field_match"); - writer.WriteBooleanValue(RequireFieldMatchValue.Value); - } - - if (TagsSchemaValue is not null) - { - writer.WritePropertyName("tags_schema"); - JsonSerializer.Serialize(writer, TagsSchemaValue, options); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class HighlightDescriptor : SerializableDescriptor -{ - internal HighlightDescriptor(Action configure) => configure.Invoke(this); - - public HighlightDescriptor() : base() - { - } - - private string? BoundaryCharsValue { get; set; } - private int? BoundaryMaxScanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } - private string? BoundaryScannerLocaleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterEncoder? EncoderValue { get; set; } - private IDictionary FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? FragmenterValue { get; set; } - private int? FragmentSizeValue { get; set; } - private bool? HighlightFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor HighlightQueryDescriptor { get; set; } - private Action HighlightQueryDescriptorAction { get; set; } - private int? MaxAnalyzedOffsetValue { get; set; } - private int? MaxFragmentLengthValue { get; set; } - private int? NoMatchSizeValue { get; set; } - private int? NumberOfFragmentsValue { get; set; } - private IDictionary? OptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? OrderValue { get; set; } - private int? PhraseLimitValue { get; set; } - private ICollection? PostTagsValue { get; set; } - private ICollection? PreTagsValue { get; set; } - private bool? RequireFieldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? TypeValue { get; set; } - - /// - /// - /// A string that contains each boundary character. - /// - /// - public HighlightDescriptor BoundaryChars(string? boundaryChars) - { - BoundaryCharsValue = boundaryChars; - return Self; - } - - /// - /// - /// How far to scan for boundary characters. - /// - /// - public HighlightDescriptor BoundaryMaxScan(int? boundaryMaxScan) - { - BoundaryMaxScanValue = boundaryMaxScan; - return Self; - } - - /// - /// - /// Specifies how to break the highlighted fragments: chars, sentence, or word. - /// Only valid for the unified and fvh highlighters. - /// Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter. - /// - /// - public HighlightDescriptor BoundaryScanner(Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? boundaryScanner) - { - BoundaryScannerValue = boundaryScanner; - return Self; - } - - /// - /// - /// Controls which locale is used to search for sentence and word boundaries. - /// This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP". - /// - /// - public HighlightDescriptor BoundaryScannerLocale(string? boundaryScannerLocale) - { - BoundaryScannerLocaleValue = boundaryScannerLocale; - return Self; - } - - public HighlightDescriptor Encoder(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterEncoder? encoder) - { - EncoderValue = encoder; - return Self; - } - - public HighlightDescriptor Fields(Func, FluentDescriptorDictionary> selector) - { - FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Specifies how text should be broken up in highlight snippets: simple or span. - /// Only valid for the plain highlighter. - /// - /// - public HighlightDescriptor Fragmenter(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? fragmenter) - { - FragmenterValue = fragmenter; - return Self; - } - - /// - /// - /// The size of the highlighted fragment in characters. - /// - /// - public HighlightDescriptor FragmentSize(int? fragmentSize) - { - FragmentSizeValue = fragmentSize; - return Self; - } - - public HighlightDescriptor HighlightFilter(bool? highlightFilter = true) - { - HighlightFilterValue = highlightFilter; - return Self; - } - - /// - /// - /// Highlight matches for a query other than the search query. - /// This is especially useful if you use a rescore query because those are not taken into account by highlighting by default. - /// - /// - public HighlightDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? highlightQuery) - { - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = null; - HighlightQueryValue = highlightQuery; - return Self; - } - - public HighlightDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - HighlightQueryValue = null; - HighlightQueryDescriptorAction = null; - HighlightQueryDescriptor = descriptor; - return Self; - } - - public HighlightDescriptor HighlightQuery(Action configure) - { - HighlightQueryValue = null; - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// If set to a non-negative value, highlighting stops at this defined maximum limit. - /// The rest of the text is not processed, thus not highlighted and no error is returned - /// The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting. - /// - /// - public HighlightDescriptor MaxAnalyzedOffset(int? maxAnalyzedOffset) - { - MaxAnalyzedOffsetValue = maxAnalyzedOffset; - return Self; - } - - public HighlightDescriptor MaxFragmentLength(int? maxFragmentLength) - { - MaxFragmentLengthValue = maxFragmentLength; - return Self; - } - - /// - /// - /// The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. - /// - /// - public HighlightDescriptor NoMatchSize(int? noMatchSize) - { - NoMatchSizeValue = noMatchSize; - return Self; - } - - /// - /// - /// The maximum number of fragments to return. - /// If the number of fragments is set to 0, no fragments are returned. - /// Instead, the entire field contents are highlighted and returned. - /// This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required. - /// If number_of_fragments is 0, fragment_size is ignored. - /// - /// - public HighlightDescriptor NumberOfFragments(int? numberOfFragments) - { - NumberOfFragmentsValue = numberOfFragments; - return Self; - } - - public HighlightDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Sorts highlighted fragments by score when set to score. - /// By default, fragments will be output in the order they appear in the field (order: none). - /// Setting this option to score will output the most relevant fragments first. - /// Each highlighter applies its own logic to compute relevancy scores. - /// - /// - public HighlightDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Controls the number of matching phrases in a document that are considered. - /// Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory. - /// When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory. - /// Only supported by the fvh highlighter. - /// - /// - public HighlightDescriptor PhraseLimit(int? phraseLimit) - { - PhraseLimitValue = phraseLimit; - return Self; - } - - /// - /// - /// Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightDescriptor PostTags(ICollection? postTags) - { - PostTagsValue = postTags; - return Self; - } - - /// - /// - /// Use in conjunction with post_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightDescriptor PreTags(ICollection? preTags) - { - PreTagsValue = preTags; - return Self; - } - - /// - /// - /// By default, only fields that contains a query match are highlighted. - /// Set to false to highlight all fields. - /// - /// - public HighlightDescriptor RequireFieldMatch(bool? requireFieldMatch = true) - { - RequireFieldMatchValue = requireFieldMatch; - return Self; - } - - /// - /// - /// Set to styled to use the built-in tag schema. - /// - /// - public HighlightDescriptor TagsSchema(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? tagsSchema) - { - TagsSchemaValue = tagsSchema; - return Self; - } - - public HighlightDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(BoundaryCharsValue)) - { - writer.WritePropertyName("boundary_chars"); - writer.WriteStringValue(BoundaryCharsValue); - } - - if (BoundaryMaxScanValue.HasValue) - { - writer.WritePropertyName("boundary_max_scan"); - writer.WriteNumberValue(BoundaryMaxScanValue.Value); - } - - if (BoundaryScannerValue is not null) - { - writer.WritePropertyName("boundary_scanner"); - JsonSerializer.Serialize(writer, BoundaryScannerValue, options); - } - - if (!string.IsNullOrEmpty(BoundaryScannerLocaleValue)) - { - writer.WritePropertyName("boundary_scanner_locale"); - writer.WriteStringValue(BoundaryScannerLocaleValue); - } - - if (EncoderValue is not null) - { - writer.WritePropertyName("encoder"); - JsonSerializer.Serialize(writer, EncoderValue, options); - } - - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - if (FragmenterValue is not null) - { - writer.WritePropertyName("fragmenter"); - JsonSerializer.Serialize(writer, FragmenterValue, options); - } - - if (FragmentSizeValue.HasValue) - { - writer.WritePropertyName("fragment_size"); - writer.WriteNumberValue(FragmentSizeValue.Value); - } - - if (HighlightFilterValue.HasValue) - { - writer.WritePropertyName("highlight_filter"); - writer.WriteBooleanValue(HighlightFilterValue.Value); - } - - if (HighlightQueryDescriptor is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryDescriptor, options); - } - else if (HighlightQueryDescriptorAction is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(HighlightQueryDescriptorAction), options); - } - else if (HighlightQueryValue is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryValue, options); - } - - if (MaxAnalyzedOffsetValue.HasValue) - { - writer.WritePropertyName("max_analyzed_offset"); - writer.WriteNumberValue(MaxAnalyzedOffsetValue.Value); - } - - if (MaxFragmentLengthValue.HasValue) - { - writer.WritePropertyName("max_fragment_length"); - writer.WriteNumberValue(MaxFragmentLengthValue.Value); - } - - if (NoMatchSizeValue.HasValue) - { - writer.WritePropertyName("no_match_size"); - writer.WriteNumberValue(NoMatchSizeValue.Value); - } - - if (NumberOfFragmentsValue.HasValue) - { - writer.WritePropertyName("number_of_fragments"); - writer.WriteNumberValue(NumberOfFragmentsValue.Value); - } - - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (PhraseLimitValue.HasValue) - { - writer.WritePropertyName("phrase_limit"); - writer.WriteNumberValue(PhraseLimitValue.Value); - } - - if (PostTagsValue is not null) - { - writer.WritePropertyName("post_tags"); - JsonSerializer.Serialize(writer, PostTagsValue, options); - } - - if (PreTagsValue is not null) - { - writer.WritePropertyName("pre_tags"); - JsonSerializer.Serialize(writer, PreTagsValue, options); - } - - if (RequireFieldMatchValue.HasValue) - { - writer.WritePropertyName("require_field_match"); - writer.WriteBooleanValue(RequireFieldMatchValue.Value); - } - - if (TagsSchemaValue is not null) - { - writer.WritePropertyName("tags_schema"); - JsonSerializer.Serialize(writer, TagsSchemaValue, options); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs deleted file mode 100644 index 7d5a7e8b08c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HighlightField.g.cs +++ /dev/null @@ -1,1056 +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.Core.Search; - -public sealed partial class HighlightField -{ - /// - /// - /// A string that contains each boundary character. - /// - /// - [JsonInclude, JsonPropertyName("boundary_chars")] - public string? BoundaryChars { get; set; } - - /// - /// - /// How far to scan for boundary characters. - /// - /// - [JsonInclude, JsonPropertyName("boundary_max_scan")] - public int? BoundaryMaxScan { get; set; } - - /// - /// - /// Specifies how to break the highlighted fragments: chars, sentence, or word. - /// Only valid for the unified and fvh highlighters. - /// Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter. - /// - /// - [JsonInclude, JsonPropertyName("boundary_scanner")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScanner { get; set; } - - /// - /// - /// Controls which locale is used to search for sentence and word boundaries. - /// This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP". - /// - /// - [JsonInclude, JsonPropertyName("boundary_scanner_locale")] - public string? BoundaryScannerLocale { get; set; } - - /// - /// - /// Specifies how text should be broken up in highlight snippets: simple or span. - /// Only valid for the plain highlighter. - /// - /// - [JsonInclude, JsonPropertyName("fragmenter")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? Fragmenter { get; set; } - [JsonInclude, JsonPropertyName("fragment_offset")] - public int? FragmentOffset { get; set; } - - /// - /// - /// The size of the highlighted fragment in characters. - /// - /// - [JsonInclude, JsonPropertyName("fragment_size")] - public int? FragmentSize { get; set; } - [JsonInclude, JsonPropertyName("highlight_filter")] - public bool? HighlightFilter { get; set; } - - /// - /// - /// Highlight matches for a query other than the search query. - /// This is especially useful if you use a rescore query because those are not taken into account by highlighting by default. - /// - /// - [JsonInclude, JsonPropertyName("highlight_query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQuery { get; set; } - [JsonInclude, JsonPropertyName("matched_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? MatchedFields { get; set; } - - /// - /// - /// If set to a non-negative value, highlighting stops at this defined maximum limit. - /// The rest of the text is not processed, thus not highlighted and no error is returned - /// The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting. - /// - /// - [JsonInclude, JsonPropertyName("max_analyzed_offset")] - public int? MaxAnalyzedOffset { get; set; } - [JsonInclude, JsonPropertyName("max_fragment_length")] - public int? MaxFragmentLength { get; set; } - - /// - /// - /// The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. - /// - /// - [JsonInclude, JsonPropertyName("no_match_size")] - public int? NoMatchSize { get; set; } - - /// - /// - /// The maximum number of fragments to return. - /// If the number of fragments is set to 0, no fragments are returned. - /// Instead, the entire field contents are highlighted and returned. - /// This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required. - /// If number_of_fragments is 0, fragment_size is ignored. - /// - /// - [JsonInclude, JsonPropertyName("number_of_fragments")] - public int? NumberOfFragments { get; set; } - [JsonInclude, JsonPropertyName("options")] - public IDictionary? Options { get; set; } - - /// - /// - /// Sorts highlighted fragments by score when set to score. - /// By default, fragments will be output in the order they appear in the field (order: none). - /// Setting this option to score will output the most relevant fragments first. - /// Each highlighter applies its own logic to compute relevancy scores. - /// - /// - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? Order { get; set; } - - /// - /// - /// Controls the number of matching phrases in a document that are considered. - /// Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory. - /// When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory. - /// Only supported by the fvh highlighter. - /// - /// - [JsonInclude, JsonPropertyName("phrase_limit")] - public int? PhraseLimit { get; set; } - - /// - /// - /// Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - [JsonInclude, JsonPropertyName("post_tags")] - public ICollection? PostTags { get; set; } - - /// - /// - /// Use in conjunction with post_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - [JsonInclude, JsonPropertyName("pre_tags")] - public ICollection? PreTags { get; set; } - - /// - /// - /// By default, only fields that contains a query match are highlighted. - /// Set to false to highlight all fields. - /// - /// - [JsonInclude, JsonPropertyName("require_field_match")] - public bool? RequireFieldMatch { get; set; } - - /// - /// - /// Set to styled to use the built-in tag schema. - /// - /// - [JsonInclude, JsonPropertyName("tags_schema")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchema { get; set; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? Type { get; set; } -} - -public sealed partial class HighlightFieldDescriptor : SerializableDescriptor> -{ - internal HighlightFieldDescriptor(Action> configure) => configure.Invoke(this); - - public HighlightFieldDescriptor() : base() - { - } - - private string? BoundaryCharsValue { get; set; } - private int? BoundaryMaxScanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } - private string? BoundaryScannerLocaleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? FragmenterValue { get; set; } - private int? FragmentOffsetValue { get; set; } - private int? FragmentSizeValue { get; set; } - private bool? HighlightFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor HighlightQueryDescriptor { get; set; } - private Action> HighlightQueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? MatchedFieldsValue { get; set; } - private int? MaxAnalyzedOffsetValue { get; set; } - private int? MaxFragmentLengthValue { get; set; } - private int? NoMatchSizeValue { get; set; } - private int? NumberOfFragmentsValue { get; set; } - private IDictionary? OptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? OrderValue { get; set; } - private int? PhraseLimitValue { get; set; } - private ICollection? PostTagsValue { get; set; } - private ICollection? PreTagsValue { get; set; } - private bool? RequireFieldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? TypeValue { get; set; } - - /// - /// - /// A string that contains each boundary character. - /// - /// - public HighlightFieldDescriptor BoundaryChars(string? boundaryChars) - { - BoundaryCharsValue = boundaryChars; - return Self; - } - - /// - /// - /// How far to scan for boundary characters. - /// - /// - public HighlightFieldDescriptor BoundaryMaxScan(int? boundaryMaxScan) - { - BoundaryMaxScanValue = boundaryMaxScan; - return Self; - } - - /// - /// - /// Specifies how to break the highlighted fragments: chars, sentence, or word. - /// Only valid for the unified and fvh highlighters. - /// Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter. - /// - /// - public HighlightFieldDescriptor BoundaryScanner(Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? boundaryScanner) - { - BoundaryScannerValue = boundaryScanner; - return Self; - } - - /// - /// - /// Controls which locale is used to search for sentence and word boundaries. - /// This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP". - /// - /// - public HighlightFieldDescriptor BoundaryScannerLocale(string? boundaryScannerLocale) - { - BoundaryScannerLocaleValue = boundaryScannerLocale; - return Self; - } - - /// - /// - /// Specifies how text should be broken up in highlight snippets: simple or span. - /// Only valid for the plain highlighter. - /// - /// - public HighlightFieldDescriptor Fragmenter(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? fragmenter) - { - FragmenterValue = fragmenter; - return Self; - } - - public HighlightFieldDescriptor FragmentOffset(int? fragmentOffset) - { - FragmentOffsetValue = fragmentOffset; - return Self; - } - - /// - /// - /// The size of the highlighted fragment in characters. - /// - /// - public HighlightFieldDescriptor FragmentSize(int? fragmentSize) - { - FragmentSizeValue = fragmentSize; - return Self; - } - - public HighlightFieldDescriptor HighlightFilter(bool? highlightFilter = true) - { - HighlightFilterValue = highlightFilter; - return Self; - } - - /// - /// - /// Highlight matches for a query other than the search query. - /// This is especially useful if you use a rescore query because those are not taken into account by highlighting by default. - /// - /// - public HighlightFieldDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? highlightQuery) - { - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = null; - HighlightQueryValue = highlightQuery; - return Self; - } - - public HighlightFieldDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - HighlightQueryValue = null; - HighlightQueryDescriptorAction = null; - HighlightQueryDescriptor = descriptor; - return Self; - } - - public HighlightFieldDescriptor HighlightQuery(Action> configure) - { - HighlightQueryValue = null; - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = configure; - return Self; - } - - public HighlightFieldDescriptor MatchedFields(Elastic.Clients.Elasticsearch.Serverless.Fields? matchedFields) - { - MatchedFieldsValue = matchedFields; - return Self; - } - - /// - /// - /// If set to a non-negative value, highlighting stops at this defined maximum limit. - /// The rest of the text is not processed, thus not highlighted and no error is returned - /// The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting. - /// - /// - public HighlightFieldDescriptor MaxAnalyzedOffset(int? maxAnalyzedOffset) - { - MaxAnalyzedOffsetValue = maxAnalyzedOffset; - return Self; - } - - public HighlightFieldDescriptor MaxFragmentLength(int? maxFragmentLength) - { - MaxFragmentLengthValue = maxFragmentLength; - return Self; - } - - /// - /// - /// The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. - /// - /// - public HighlightFieldDescriptor NoMatchSize(int? noMatchSize) - { - NoMatchSizeValue = noMatchSize; - return Self; - } - - /// - /// - /// The maximum number of fragments to return. - /// If the number of fragments is set to 0, no fragments are returned. - /// Instead, the entire field contents are highlighted and returned. - /// This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required. - /// If number_of_fragments is 0, fragment_size is ignored. - /// - /// - public HighlightFieldDescriptor NumberOfFragments(int? numberOfFragments) - { - NumberOfFragmentsValue = numberOfFragments; - return Self; - } - - public HighlightFieldDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Sorts highlighted fragments by score when set to score. - /// By default, fragments will be output in the order they appear in the field (order: none). - /// Setting this option to score will output the most relevant fragments first. - /// Each highlighter applies its own logic to compute relevancy scores. - /// - /// - public HighlightFieldDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Controls the number of matching phrases in a document that are considered. - /// Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory. - /// When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory. - /// Only supported by the fvh highlighter. - /// - /// - public HighlightFieldDescriptor PhraseLimit(int? phraseLimit) - { - PhraseLimitValue = phraseLimit; - return Self; - } - - /// - /// - /// Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightFieldDescriptor PostTags(ICollection? postTags) - { - PostTagsValue = postTags; - return Self; - } - - /// - /// - /// Use in conjunction with post_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightFieldDescriptor PreTags(ICollection? preTags) - { - PreTagsValue = preTags; - return Self; - } - - /// - /// - /// By default, only fields that contains a query match are highlighted. - /// Set to false to highlight all fields. - /// - /// - public HighlightFieldDescriptor RequireFieldMatch(bool? requireFieldMatch = true) - { - RequireFieldMatchValue = requireFieldMatch; - return Self; - } - - /// - /// - /// Set to styled to use the built-in tag schema. - /// - /// - public HighlightFieldDescriptor TagsSchema(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? tagsSchema) - { - TagsSchemaValue = tagsSchema; - return Self; - } - - public HighlightFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(BoundaryCharsValue)) - { - writer.WritePropertyName("boundary_chars"); - writer.WriteStringValue(BoundaryCharsValue); - } - - if (BoundaryMaxScanValue.HasValue) - { - writer.WritePropertyName("boundary_max_scan"); - writer.WriteNumberValue(BoundaryMaxScanValue.Value); - } - - if (BoundaryScannerValue is not null) - { - writer.WritePropertyName("boundary_scanner"); - JsonSerializer.Serialize(writer, BoundaryScannerValue, options); - } - - if (!string.IsNullOrEmpty(BoundaryScannerLocaleValue)) - { - writer.WritePropertyName("boundary_scanner_locale"); - writer.WriteStringValue(BoundaryScannerLocaleValue); - } - - if (FragmenterValue is not null) - { - writer.WritePropertyName("fragmenter"); - JsonSerializer.Serialize(writer, FragmenterValue, options); - } - - if (FragmentOffsetValue.HasValue) - { - writer.WritePropertyName("fragment_offset"); - writer.WriteNumberValue(FragmentOffsetValue.Value); - } - - if (FragmentSizeValue.HasValue) - { - writer.WritePropertyName("fragment_size"); - writer.WriteNumberValue(FragmentSizeValue.Value); - } - - if (HighlightFilterValue.HasValue) - { - writer.WritePropertyName("highlight_filter"); - writer.WriteBooleanValue(HighlightFilterValue.Value); - } - - if (HighlightQueryDescriptor is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryDescriptor, options); - } - else if (HighlightQueryDescriptorAction is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(HighlightQueryDescriptorAction), options); - } - else if (HighlightQueryValue is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryValue, options); - } - - if (MatchedFieldsValue is not null) - { - writer.WritePropertyName("matched_fields"); - JsonSerializer.Serialize(writer, MatchedFieldsValue, options); - } - - if (MaxAnalyzedOffsetValue.HasValue) - { - writer.WritePropertyName("max_analyzed_offset"); - writer.WriteNumberValue(MaxAnalyzedOffsetValue.Value); - } - - if (MaxFragmentLengthValue.HasValue) - { - writer.WritePropertyName("max_fragment_length"); - writer.WriteNumberValue(MaxFragmentLengthValue.Value); - } - - if (NoMatchSizeValue.HasValue) - { - writer.WritePropertyName("no_match_size"); - writer.WriteNumberValue(NoMatchSizeValue.Value); - } - - if (NumberOfFragmentsValue.HasValue) - { - writer.WritePropertyName("number_of_fragments"); - writer.WriteNumberValue(NumberOfFragmentsValue.Value); - } - - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (PhraseLimitValue.HasValue) - { - writer.WritePropertyName("phrase_limit"); - writer.WriteNumberValue(PhraseLimitValue.Value); - } - - if (PostTagsValue is not null) - { - writer.WritePropertyName("post_tags"); - JsonSerializer.Serialize(writer, PostTagsValue, options); - } - - if (PreTagsValue is not null) - { - writer.WritePropertyName("pre_tags"); - JsonSerializer.Serialize(writer, PreTagsValue, options); - } - - if (RequireFieldMatchValue.HasValue) - { - writer.WritePropertyName("require_field_match"); - writer.WriteBooleanValue(RequireFieldMatchValue.Value); - } - - if (TagsSchemaValue is not null) - { - writer.WritePropertyName("tags_schema"); - JsonSerializer.Serialize(writer, TagsSchemaValue, options); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class HighlightFieldDescriptor : SerializableDescriptor -{ - internal HighlightFieldDescriptor(Action configure) => configure.Invoke(this); - - public HighlightFieldDescriptor() : base() - { - } - - private string? BoundaryCharsValue { get; set; } - private int? BoundaryMaxScanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? BoundaryScannerValue { get; set; } - private string? BoundaryScannerLocaleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? FragmenterValue { get; set; } - private int? FragmentOffsetValue { get; set; } - private int? FragmentSizeValue { get; set; } - private bool? HighlightFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? HighlightQueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor HighlightQueryDescriptor { get; set; } - private Action HighlightQueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? MatchedFieldsValue { get; set; } - private int? MaxAnalyzedOffsetValue { get; set; } - private int? MaxFragmentLengthValue { get; set; } - private int? NoMatchSizeValue { get; set; } - private int? NumberOfFragmentsValue { get; set; } - private IDictionary? OptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? OrderValue { get; set; } - private int? PhraseLimitValue { get; set; } - private ICollection? PostTagsValue { get; set; } - private ICollection? PreTagsValue { get; set; } - private bool? RequireFieldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? TagsSchemaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? TypeValue { get; set; } - - /// - /// - /// A string that contains each boundary character. - /// - /// - public HighlightFieldDescriptor BoundaryChars(string? boundaryChars) - { - BoundaryCharsValue = boundaryChars; - return Self; - } - - /// - /// - /// How far to scan for boundary characters. - /// - /// - public HighlightFieldDescriptor BoundaryMaxScan(int? boundaryMaxScan) - { - BoundaryMaxScanValue = boundaryMaxScan; - return Self; - } - - /// - /// - /// Specifies how to break the highlighted fragments: chars, sentence, or word. - /// Only valid for the unified and fvh highlighters. - /// Defaults to sentence for the unified highlighter. Defaults to chars for the fvh highlighter. - /// - /// - public HighlightFieldDescriptor BoundaryScanner(Elastic.Clients.Elasticsearch.Serverless.Core.Search.BoundaryScanner? boundaryScanner) - { - BoundaryScannerValue = boundaryScanner; - return Self; - } - - /// - /// - /// Controls which locale is used to search for sentence and word boundaries. - /// This parameter takes a form of a language tag, for example: "en-US", "fr-FR", "ja-JP". - /// - /// - public HighlightFieldDescriptor BoundaryScannerLocale(string? boundaryScannerLocale) - { - BoundaryScannerLocaleValue = boundaryScannerLocale; - return Self; - } - - /// - /// - /// Specifies how text should be broken up in highlight snippets: simple or span. - /// Only valid for the plain highlighter. - /// - /// - public HighlightFieldDescriptor Fragmenter(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterFragmenter? fragmenter) - { - FragmenterValue = fragmenter; - return Self; - } - - public HighlightFieldDescriptor FragmentOffset(int? fragmentOffset) - { - FragmentOffsetValue = fragmentOffset; - return Self; - } - - /// - /// - /// The size of the highlighted fragment in characters. - /// - /// - public HighlightFieldDescriptor FragmentSize(int? fragmentSize) - { - FragmentSizeValue = fragmentSize; - return Self; - } - - public HighlightFieldDescriptor HighlightFilter(bool? highlightFilter = true) - { - HighlightFilterValue = highlightFilter; - return Self; - } - - /// - /// - /// Highlight matches for a query other than the search query. - /// This is especially useful if you use a rescore query because those are not taken into account by highlighting by default. - /// - /// - public HighlightFieldDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? highlightQuery) - { - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = null; - HighlightQueryValue = highlightQuery; - return Self; - } - - public HighlightFieldDescriptor HighlightQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - HighlightQueryValue = null; - HighlightQueryDescriptorAction = null; - HighlightQueryDescriptor = descriptor; - return Self; - } - - public HighlightFieldDescriptor HighlightQuery(Action configure) - { - HighlightQueryValue = null; - HighlightQueryDescriptor = null; - HighlightQueryDescriptorAction = configure; - return Self; - } - - public HighlightFieldDescriptor MatchedFields(Elastic.Clients.Elasticsearch.Serverless.Fields? matchedFields) - { - MatchedFieldsValue = matchedFields; - return Self; - } - - /// - /// - /// If set to a non-negative value, highlighting stops at this defined maximum limit. - /// The rest of the text is not processed, thus not highlighted and no error is returned - /// The max_analyzed_offset query setting does not override the index.highlight.max_analyzed_offset setting, which prevails when it’s set to lower value than the query setting. - /// - /// - public HighlightFieldDescriptor MaxAnalyzedOffset(int? maxAnalyzedOffset) - { - MaxAnalyzedOffsetValue = maxAnalyzedOffset; - return Self; - } - - public HighlightFieldDescriptor MaxFragmentLength(int? maxFragmentLength) - { - MaxFragmentLengthValue = maxFragmentLength; - return Self; - } - - /// - /// - /// The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight. - /// - /// - public HighlightFieldDescriptor NoMatchSize(int? noMatchSize) - { - NoMatchSizeValue = noMatchSize; - return Self; - } - - /// - /// - /// The maximum number of fragments to return. - /// If the number of fragments is set to 0, no fragments are returned. - /// Instead, the entire field contents are highlighted and returned. - /// This can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required. - /// If number_of_fragments is 0, fragment_size is ignored. - /// - /// - public HighlightFieldDescriptor NumberOfFragments(int? numberOfFragments) - { - NumberOfFragmentsValue = numberOfFragments; - return Self; - } - - public HighlightFieldDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Sorts highlighted fragments by score when set to score. - /// By default, fragments will be output in the order they appear in the field (order: none). - /// Setting this option to score will output the most relevant fragments first. - /// Each highlighter applies its own logic to compute relevancy scores. - /// - /// - public HighlightFieldDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Controls the number of matching phrases in a document that are considered. - /// Prevents the fvh highlighter from analyzing too many phrases and consuming too much memory. - /// When using matched_fields, phrase_limit phrases per matched field are considered. Raising the limit increases query time and consumes more memory. - /// Only supported by the fvh highlighter. - /// - /// - public HighlightFieldDescriptor PhraseLimit(int? phraseLimit) - { - PhraseLimitValue = phraseLimit; - return Self; - } - - /// - /// - /// Use in conjunction with pre_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightFieldDescriptor PostTags(ICollection? postTags) - { - PostTagsValue = postTags; - return Self; - } - - /// - /// - /// Use in conjunction with post_tags to define the HTML tags to use for the highlighted text. - /// By default, highlighted text is wrapped in <em> and </em> tags. - /// - /// - public HighlightFieldDescriptor PreTags(ICollection? preTags) - { - PreTagsValue = preTags; - return Self; - } - - /// - /// - /// By default, only fields that contains a query match are highlighted. - /// Set to false to highlight all fields. - /// - /// - public HighlightFieldDescriptor RequireFieldMatch(bool? requireFieldMatch = true) - { - RequireFieldMatchValue = requireFieldMatch; - return Self; - } - - /// - /// - /// Set to styled to use the built-in tag schema. - /// - /// - public HighlightFieldDescriptor TagsSchema(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterTagsSchema? tagsSchema) - { - TagsSchemaValue = tagsSchema; - return Self; - } - - public HighlightFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlighterType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(BoundaryCharsValue)) - { - writer.WritePropertyName("boundary_chars"); - writer.WriteStringValue(BoundaryCharsValue); - } - - if (BoundaryMaxScanValue.HasValue) - { - writer.WritePropertyName("boundary_max_scan"); - writer.WriteNumberValue(BoundaryMaxScanValue.Value); - } - - if (BoundaryScannerValue is not null) - { - writer.WritePropertyName("boundary_scanner"); - JsonSerializer.Serialize(writer, BoundaryScannerValue, options); - } - - if (!string.IsNullOrEmpty(BoundaryScannerLocaleValue)) - { - writer.WritePropertyName("boundary_scanner_locale"); - writer.WriteStringValue(BoundaryScannerLocaleValue); - } - - if (FragmenterValue is not null) - { - writer.WritePropertyName("fragmenter"); - JsonSerializer.Serialize(writer, FragmenterValue, options); - } - - if (FragmentOffsetValue.HasValue) - { - writer.WritePropertyName("fragment_offset"); - writer.WriteNumberValue(FragmentOffsetValue.Value); - } - - if (FragmentSizeValue.HasValue) - { - writer.WritePropertyName("fragment_size"); - writer.WriteNumberValue(FragmentSizeValue.Value); - } - - if (HighlightFilterValue.HasValue) - { - writer.WritePropertyName("highlight_filter"); - writer.WriteBooleanValue(HighlightFilterValue.Value); - } - - if (HighlightQueryDescriptor is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryDescriptor, options); - } - else if (HighlightQueryDescriptorAction is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(HighlightQueryDescriptorAction), options); - } - else if (HighlightQueryValue is not null) - { - writer.WritePropertyName("highlight_query"); - JsonSerializer.Serialize(writer, HighlightQueryValue, options); - } - - if (MatchedFieldsValue is not null) - { - writer.WritePropertyName("matched_fields"); - JsonSerializer.Serialize(writer, MatchedFieldsValue, options); - } - - if (MaxAnalyzedOffsetValue.HasValue) - { - writer.WritePropertyName("max_analyzed_offset"); - writer.WriteNumberValue(MaxAnalyzedOffsetValue.Value); - } - - if (MaxFragmentLengthValue.HasValue) - { - writer.WritePropertyName("max_fragment_length"); - writer.WriteNumberValue(MaxFragmentLengthValue.Value); - } - - if (NoMatchSizeValue.HasValue) - { - writer.WritePropertyName("no_match_size"); - writer.WriteNumberValue(NoMatchSizeValue.Value); - } - - if (NumberOfFragmentsValue.HasValue) - { - writer.WritePropertyName("number_of_fragments"); - writer.WriteNumberValue(NumberOfFragmentsValue.Value); - } - - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (PhraseLimitValue.HasValue) - { - writer.WritePropertyName("phrase_limit"); - writer.WriteNumberValue(PhraseLimitValue.Value); - } - - if (PostTagsValue is not null) - { - writer.WritePropertyName("post_tags"); - JsonSerializer.Serialize(writer, PostTagsValue, options); - } - - if (PreTagsValue is not null) - { - writer.WritePropertyName("pre_tags"); - JsonSerializer.Serialize(writer, PreTagsValue, options); - } - - if (RequireFieldMatchValue.HasValue) - { - writer.WritePropertyName("require_field_match"); - writer.WriteBooleanValue(RequireFieldMatchValue.Value); - } - - if (TagsSchemaValue is not null) - { - writer.WritePropertyName("tags_schema"); - JsonSerializer.Serialize(writer, TagsSchemaValue, options); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs deleted file mode 100644 index 4950958526d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Hit.g.cs +++ /dev/null @@ -1,73 +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.Core.Search; - -public sealed partial class Hit -{ - [JsonInclude, JsonPropertyName("_explanation")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Explain.Explanation? Explanation { get; init; } - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("highlight")] - public IReadOnlyDictionary>? Highlight { get; init; } - [JsonInclude, JsonPropertyName("_id")] - public string? Id { get; init; } - [JsonInclude, JsonPropertyName("_ignored")] - public IReadOnlyCollection? Ignored { get; init; } - [JsonInclude, JsonPropertyName("ignored_field_values")] - public IReadOnlyDictionary>? IgnoredFieldValues { get; init; } - [JsonInclude, JsonPropertyName("_index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("inner_hits")] - public IReadOnlyDictionary? InnerHits { get; init; } - [JsonInclude, JsonPropertyName("matched_queries")] - public IReadOnlyCollection? MatchedQueries { get; init; } - [JsonInclude, JsonPropertyName("_nested")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.NestedIdentity? Nested { get; init; } - [JsonInclude, JsonPropertyName("_node")] - 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")] - public double? Score { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("_shard")] - public string? Shard { get; init; } - [JsonInclude, JsonPropertyName("sort")] - public IReadOnlyCollection? Sort { get; init; } - [JsonInclude, JsonPropertyName("_source")] - [SourceConverter] - public TDocument? Source { get; init; } - [JsonInclude, JsonPropertyName("_version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HitsMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HitsMetadata.g.cs deleted file mode 100644 index badae00d49b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/HitsMetadata.g.cs +++ /dev/null @@ -1,44 +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.Core.Search; - -public sealed partial class HitsMetadata -{ - [JsonInclude, JsonPropertyName("hits")] - public IReadOnlyCollection> Hits { get; init; } - [JsonInclude, JsonPropertyName("max_score")] - public double? MaxScore { get; init; } - - /// - /// - /// Total hit count information, present only if track_total_hits wasn't false in the search request. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Union? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHits.g.cs deleted file mode 100644 index 614deb15cec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHits.g.cs +++ /dev/null @@ -1,933 +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.Core.Search; - -public sealed partial class InnerHits -{ - [JsonInclude, JsonPropertyName("collapse")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; } - [JsonInclude, JsonPropertyName("docvalue_fields")] - public ICollection? DocvalueFields { get; set; } - [JsonInclude, JsonPropertyName("explain")] - public bool? Explain { get; set; } - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// Inner hit starting document offset. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - [JsonInclude, JsonPropertyName("highlight")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? Highlight { get; set; } - [JsonInclude, JsonPropertyName("ignore_unmapped")] - public bool? IgnoreUnmapped { get; set; } - - /// - /// - /// The name for the particular inner hit definition in the response. - /// Useful when a search request contains multiple inner hits. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } - [JsonInclude, JsonPropertyName("script_fields")] - public IDictionary? ScriptFields { get; set; } - [JsonInclude, JsonPropertyName("seq_no_primary_term")] - public bool? SeqNoPrimaryTerm { get; set; } - - /// - /// - /// The maximum number of hits to return per inner_hits. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// How the inner hits should be sorted per inner_hits. - /// By default, inner hits are sorted by score. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? Source { get; set; } - [JsonInclude, JsonPropertyName("stored_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get; set; } - [JsonInclude, JsonPropertyName("track_scores")] - public bool? TrackScores { get; set; } - [JsonInclude, JsonPropertyName("version")] - public bool? Version { get; set; } -} - -public sealed partial class InnerHitsDescriptor : SerializableDescriptor> -{ - internal InnerHitsDescriptor(Action> configure) => configure.Invoke(this); - - public InnerHitsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action> CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action> DocvalueFieldsDescriptorAction { get; set; } - private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action> HighlightDescriptorAction { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private bool? TrackScoresValue { get; set; } - private bool? VersionValue { get; set; } - - public InnerHitsDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public InnerHitsDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor Collapse(Action> configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(Action> configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(params Action>[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - public InnerHitsDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - public InnerHitsDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Inner hit starting document offset. - /// - /// - public InnerHitsDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public InnerHitsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public InnerHitsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor Highlight(Action> configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// The name for the particular inner hit definition in the response. - /// Useful when a search request contains multiple inner hits. - /// - /// - public InnerHitsDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - public InnerHitsDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public InnerHitsDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The maximum number of hits to return per inner_hits. - /// - /// - public InnerHitsDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// How the inner hits should be sorted per inner_hits. - /// By default, inner hits are sorted by score. - /// - /// - public InnerHitsDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public InnerHitsDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - public InnerHitsDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - public InnerHitsDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public InnerHitsDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - public InnerHitsDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InnerHitsDescriptor : SerializableDescriptor -{ - internal InnerHitsDescriptor(Action configure) => configure.Invoke(this); - - public InnerHitsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action CollapseDescriptorAction { get; set; } - private ICollection? DocvalueFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } - private Action DocvalueFieldsDescriptorAction { get; set; } - private Action[] DocvalueFieldsDescriptorActions { get; set; } - private bool? ExplainValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private int? FromValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private bool? SeqNoPrimaryTermValue { get; set; } - private int? SizeValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFieldsValue { get; set; } - private bool? TrackScoresValue { get; set; } - private bool? VersionValue { get; set; } - - public InnerHitsDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public InnerHitsDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor Collapse(Action configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(ICollection? docvalueFields) - { - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsValue = docvalueFields; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor descriptor) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(Action configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorActions = null; - DocvalueFieldsDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor DocvalueFields(params Action[] configure) - { - DocvalueFieldsValue = null; - DocvalueFieldsDescriptor = null; - DocvalueFieldsDescriptorAction = null; - DocvalueFieldsDescriptorActions = configure; - return Self; - } - - public InnerHitsDescriptor Explain(bool? explain = true) - { - ExplainValue = explain; - return Self; - } - - public InnerHitsDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Inner hit starting document offset. - /// - /// - public InnerHitsDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - public InnerHitsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Highlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public InnerHitsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// The name for the particular inner hit definition in the response. - /// Useful when a search request contains multiple inner hits. - /// - /// - public InnerHitsDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - public InnerHitsDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public InnerHitsDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) - { - SeqNoPrimaryTermValue = seqNoPrimaryTerm; - return Self; - } - - /// - /// - /// The maximum number of hits to return per inner_hits. - /// - /// - public InnerHitsDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// How the inner hits should be sorted per inner_hits. - /// By default, inner hits are sorted by score. - /// - /// - public InnerHitsDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public InnerHitsDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public InnerHitsDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public InnerHitsDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - public InnerHitsDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfig? source) - { - SourceValue = source; - return Self; - } - - public InnerHitsDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) - { - StoredFieldsValue = storedFields; - return Self; - } - - public InnerHitsDescriptor TrackScores(bool? trackScores = true) - { - TrackScoresValue = trackScores; - return Self; - } - - public InnerHitsDescriptor Version(bool? version = true) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - if (DocvalueFieldsDescriptor is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocvalueFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorAction is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(DocvalueFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocvalueFieldsDescriptorActions is not null) - { - writer.WritePropertyName("docvalue_fields"); - writer.WriteStartArray(); - foreach (var action in DocvalueFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormatDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocvalueFieldsValue is not null) - { - writer.WritePropertyName("docvalue_fields"); - JsonSerializer.Serialize(writer, DocvalueFieldsValue, options); - } - - if (ExplainValue.HasValue) - { - writer.WritePropertyName("explain"); - writer.WriteBooleanValue(ExplainValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.HighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (SeqNoPrimaryTermValue.HasValue) - { - writer.WritePropertyName("seq_no_primary_term"); - writer.WriteBooleanValue(SeqNoPrimaryTermValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (StoredFieldsValue is not null) - { - writer.WritePropertyName("stored_fields"); - JsonSerializer.Serialize(writer, StoredFieldsValue, options); - } - - if (TrackScoresValue.HasValue) - { - writer.WritePropertyName("track_scores"); - writer.WriteBooleanValue(TrackScoresValue.Value); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteBooleanValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHitsResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHitsResult.g.cs deleted file mode 100644 index 44a0a03f1b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/InnerHitsResult.g.cs +++ /dev/null @@ -1,34 +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.Core.Search; - -public sealed partial class InnerHitsResult -{ - [JsonInclude, JsonPropertyName("hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.HitsMetadata Hits { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs deleted file mode 100644 index d75e41dce07..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnCollectorResult.g.cs +++ /dev/null @@ -1,42 +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.Core.Search; - -public sealed partial class KnnCollectorResult -{ - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs deleted file mode 100644 index 1cd52e5c480..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileBreakdown.g.cs +++ /dev/null @@ -1,72 +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.Core.Search; - -public sealed partial class KnnQueryProfileBreakdown -{ - [JsonInclude, JsonPropertyName("advance")] - public long Advance { get; init; } - [JsonInclude, JsonPropertyName("advance_count")] - public long AdvanceCount { get; init; } - [JsonInclude, JsonPropertyName("build_scorer")] - public long BuildScorer { get; init; } - [JsonInclude, JsonPropertyName("build_scorer_count")] - public long BuildScorerCount { get; init; } - [JsonInclude, JsonPropertyName("compute_max_score")] - public long ComputeMaxScore { get; init; } - [JsonInclude, JsonPropertyName("compute_max_score_count")] - public long ComputeMaxScoreCount { get; init; } - [JsonInclude, JsonPropertyName("count_weight")] - public long CountWeight { get; init; } - [JsonInclude, JsonPropertyName("count_weight_count")] - public long CountWeightCount { get; init; } - [JsonInclude, JsonPropertyName("create_weight")] - public long CreateWeight { get; init; } - [JsonInclude, JsonPropertyName("create_weight_count")] - public long CreateWeightCount { get; init; } - [JsonInclude, JsonPropertyName("match")] - public long Match { get; init; } - [JsonInclude, JsonPropertyName("match_count")] - public long MatchCount { get; init; } - [JsonInclude, JsonPropertyName("next_doc")] - public long NextDoc { get; init; } - [JsonInclude, JsonPropertyName("next_doc_count")] - public long NextDocCount { get; init; } - [JsonInclude, JsonPropertyName("score")] - public long Score { get; init; } - [JsonInclude, JsonPropertyName("score_count")] - public long ScoreCount { get; init; } - [JsonInclude, JsonPropertyName("set_min_competitive_score")] - public long SetMinCompetitiveScore { get; init; } - [JsonInclude, JsonPropertyName("set_min_competitive_score_count")] - public long SetMinCompetitiveScoreCount { get; init; } - [JsonInclude, JsonPropertyName("shallow_advance")] - public long ShallowAdvance { get; init; } - [JsonInclude, JsonPropertyName("shallow_advance_count")] - public long ShallowAdvanceCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs deleted file mode 100644 index cc0b60423d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/KnnQueryProfileResult.g.cs +++ /dev/null @@ -1,46 +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.Core.Search; - -public sealed partial class KnnQueryProfileResult -{ - [JsonInclude, JsonPropertyName("breakdown")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.KnnQueryProfileBreakdown Breakdown { get; init; } - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("debug")] - public IReadOnlyDictionary? Debug { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs deleted file mode 100644 index c89fbee6e53..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs +++ /dev/null @@ -1,71 +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.Core.Search; - -public sealed partial class LaplaceSmoothingModel -{ - /// - /// - /// A constant that is added to all counts to balance weights. - /// - /// - [JsonInclude, JsonPropertyName("alpha")] - public double Alpha { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel(LaplaceSmoothingModel laplaceSmoothingModel) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel.Laplace(laplaceSmoothingModel); -} - -public sealed partial class LaplaceSmoothingModelDescriptor : SerializableDescriptor -{ - internal LaplaceSmoothingModelDescriptor(Action configure) => configure.Invoke(this); - - public LaplaceSmoothingModelDescriptor() : base() - { - } - - private double AlphaValue { get; set; } - - /// - /// - /// A constant that is added to all counts to balance weights. - /// - /// - public LaplaceSmoothingModelDescriptor Alpha(double alpha) - { - AlphaValue = alpha; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LearningToRank.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LearningToRank.g.cs deleted file mode 100644 index 154c9261fe6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LearningToRank.g.cs +++ /dev/null @@ -1,97 +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.Core.Search; - -public sealed partial class LearningToRank -{ - /// - /// - /// The unique identifier of the trained model uploaded to Elasticsearch - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; set; } - - /// - /// - /// Named parameters to be passed to the query templates used for feature - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore(LearningToRank learningToRank) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore.LearningToRank(learningToRank); -} - -public sealed partial class LearningToRankDescriptor : SerializableDescriptor -{ - internal LearningToRankDescriptor(Action configure) => configure.Invoke(this); - - public LearningToRankDescriptor() : base() - { - } - - private string ModelIdValue { get; set; } - private IDictionary? ParamsValue { get; set; } - - /// - /// - /// The unique identifier of the trained model uploaded to Elasticsearch - /// - /// - public LearningToRankDescriptor ModelId(string modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// Named parameters to be passed to the query templates used for feature - /// - /// - public LearningToRankDescriptor 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("model_id"); - writer.WriteStringValue(ModelIdValue); - 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/Core/Search/LinearInterpolationSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs deleted file mode 100644 index 359489661a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LinearInterpolationSmoothingModel.g.cs +++ /dev/null @@ -1,83 +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.Core.Search; - -public sealed partial class LinearInterpolationSmoothingModel -{ - [JsonInclude, JsonPropertyName("bigram_lambda")] - public double BigramLambda { get; set; } - [JsonInclude, JsonPropertyName("trigram_lambda")] - public double TrigramLambda { get; set; } - [JsonInclude, JsonPropertyName("unigram_lambda")] - public double UnigramLambda { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel(LinearInterpolationSmoothingModel linearInterpolationSmoothingModel) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel.LinearInterpolation(linearInterpolationSmoothingModel); -} - -public sealed partial class LinearInterpolationSmoothingModelDescriptor : SerializableDescriptor -{ - internal LinearInterpolationSmoothingModelDescriptor(Action configure) => configure.Invoke(this); - - public LinearInterpolationSmoothingModelDescriptor() : base() - { - } - - private double BigramLambdaValue { get; set; } - private double TrigramLambdaValue { get; set; } - private double UnigramLambdaValue { get; set; } - - public LinearInterpolationSmoothingModelDescriptor BigramLambda(double bigramLambda) - { - BigramLambdaValue = bigramLambda; - return Self; - } - - public LinearInterpolationSmoothingModelDescriptor TrigramLambda(double trigramLambda) - { - TrigramLambdaValue = trigramLambda; - return Self; - } - - public LinearInterpolationSmoothingModelDescriptor UnigramLambda(double unigramLambda) - { - UnigramLambdaValue = unigramLambda; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("bigram_lambda"); - writer.WriteNumberValue(BigramLambdaValue); - writer.WritePropertyName("trigram_lambda"); - writer.WriteNumberValue(TrigramLambdaValue); - writer.WritePropertyName("unigram_lambda"); - writer.WriteNumberValue(UnigramLambdaValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/NestedIdentity.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/NestedIdentity.g.cs deleted file mode 100644 index 14a9258be92..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/NestedIdentity.g.cs +++ /dev/null @@ -1,38 +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.Core.Search; - -public sealed partial class NestedIdentity -{ - [JsonInclude, JsonPropertyName("field")] - public string Field { get; init; } - [JsonInclude, JsonPropertyName("_nested")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.NestedIdentity? Nested { get; init; } - [JsonInclude, JsonPropertyName("offset")] - public int Offset { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggest.g.cs deleted file mode 100644 index 766f2caf43b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggest.g.cs +++ /dev/null @@ -1,41 +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.Core.Search; - -public sealed partial class PhraseSuggest : ISuggest -{ - [JsonInclude, JsonPropertyName("length")] - public int Length { get; init; } - [JsonInclude, JsonPropertyName("offset")] - public int Offset { get; init; } - [JsonInclude, JsonPropertyName("options")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestOption))] - public IReadOnlyCollection Options { get; init; } - [JsonInclude, JsonPropertyName("text")] - public string Text { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs deleted file mode 100644 index bb29dcc85cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs +++ /dev/null @@ -1,155 +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.Core.Search; - -public sealed partial class PhraseSuggestCollate -{ - /// - /// - /// Parameters to use if the query is templated. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// Returns all suggestions with an extra collate_match option indicating whether the generated phrase matched any document. - /// - /// - [JsonInclude, JsonPropertyName("prune")] - public bool? Prune { get; set; } - - /// - /// - /// A collate query that is run once for every suggestion. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQuery Query { get; set; } -} - -public sealed partial class PhraseSuggestCollateDescriptor : SerializableDescriptor -{ - internal PhraseSuggestCollateDescriptor(Action configure) => configure.Invoke(this); - - public PhraseSuggestCollateDescriptor() : base() - { - } - - private IDictionary? ParamsValue { get; set; } - private bool? PruneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQuery QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - /// - /// - /// Parameters to use if the query is templated. - /// - /// - public PhraseSuggestCollateDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Returns all suggestions with an extra collate_match option indicating whether the generated phrase matched any document. - /// - /// - public PhraseSuggestCollateDescriptor Prune(bool? prune = true) - { - PruneValue = prune; - return Self; - } - - /// - /// - /// A collate query that is run once for every suggestion. - /// - /// - public PhraseSuggestCollateDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQuery query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public PhraseSuggestCollateDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public PhraseSuggestCollateDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (PruneValue.HasValue) - { - writer.WritePropertyName("prune"); - writer.WriteBooleanValue(PruneValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs deleted file mode 100644 index 1599d255669..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs +++ /dev/null @@ -1,99 +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.Core.Search; - -public sealed partial class PhraseSuggestCollateQuery -{ - /// - /// - /// The search template ID. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// The query source. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string? Source { get; set; } -} - -public sealed partial class PhraseSuggestCollateQueryDescriptor : SerializableDescriptor -{ - internal PhraseSuggestCollateQueryDescriptor(Action configure) => configure.Invoke(this); - - public PhraseSuggestCollateQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private string? SourceValue { get; set; } - - /// - /// - /// The search template ID. - /// - /// - public PhraseSuggestCollateQueryDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The query source. - /// - /// - public PhraseSuggestCollateQueryDescriptor 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 (!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/Core/Search/PhraseSuggestHighlight.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs deleted file mode 100644 index 5ef60bc95f0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs +++ /dev/null @@ -1,91 +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.Core.Search; - -public sealed partial class PhraseSuggestHighlight -{ - /// - /// - /// Use in conjunction with pre_tag to define the HTML tags to use for the highlighted text. - /// - /// - [JsonInclude, JsonPropertyName("post_tag")] - public string PostTag { get; set; } - - /// - /// - /// Use in conjunction with post_tag to define the HTML tags to use for the highlighted text. - /// - /// - [JsonInclude, JsonPropertyName("pre_tag")] - public string PreTag { get; set; } -} - -public sealed partial class PhraseSuggestHighlightDescriptor : SerializableDescriptor -{ - internal PhraseSuggestHighlightDescriptor(Action configure) => configure.Invoke(this); - - public PhraseSuggestHighlightDescriptor() : base() - { - } - - private string PostTagValue { get; set; } - private string PreTagValue { get; set; } - - /// - /// - /// Use in conjunction with pre_tag to define the HTML tags to use for the highlighted text. - /// - /// - public PhraseSuggestHighlightDescriptor PostTag(string postTag) - { - PostTagValue = postTag; - return Self; - } - - /// - /// - /// Use in conjunction with post_tag to define the HTML tags to use for the highlighted text. - /// - /// - public PhraseSuggestHighlightDescriptor PreTag(string preTag) - { - PreTagValue = preTag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("post_tag"); - writer.WriteStringValue(PostTagValue); - writer.WritePropertyName("pre_tag"); - writer.WriteStringValue(PreTagValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs deleted file mode 100644 index db25b4f2c07..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestOption.g.cs +++ /dev/null @@ -1,40 +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.Core.Search; - -public sealed partial class PhraseSuggestOption -{ - [JsonInclude, JsonPropertyName("collate_match")] - public bool? CollateMatch { get; init; } - [JsonInclude, JsonPropertyName("highlighted")] - public string? Highlighted { get; init; } - [JsonInclude, JsonPropertyName("score")] - public double Score { get; init; } - [JsonInclude, JsonPropertyName("text")] - public string Text { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs deleted file mode 100644 index b00426bafee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs +++ /dev/null @@ -1,1100 +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.Core.Search; - -public sealed partial class PhraseSuggester -{ - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. - /// - /// - [JsonInclude, JsonPropertyName("collate")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? Collate { get; set; } - - /// - /// - /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates. - /// Only candidates that score higher than the threshold will be included in the result. - /// - /// - [JsonInclude, JsonPropertyName("confidence")] - public double? Confidence { get; set; } - - /// - /// - /// A list of candidate generators that produce a list of possible terms per term in the given text. - /// - /// - [JsonInclude, JsonPropertyName("direct_generator")] - public ICollection? DirectGenerator { get; set; } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("force_unigrams")] - public bool? ForceUnigrams { get; set; } - - /// - /// - /// Sets max size of the n-grams (shingles) in the field. - /// If the field doesn’t contain n-grams (shingles), this should be omitted or set to 1. - /// If the field uses a shingle filter, the gram_size is set to the max_shingle_size if not explicitly set. - /// - /// - [JsonInclude, JsonPropertyName("gram_size")] - public int? GramSize { get; set; } - - /// - /// - /// Sets up suggestion highlighting. - /// If not provided, no highlighted field is returned. - /// - /// - [JsonInclude, JsonPropertyName("highlight")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? Highlight { get; set; } - - /// - /// - /// The maximum percentage of the terms considered to be misspellings in order to form a correction. - /// This method accepts a float value in the range [0..1) as a fraction of the actual query terms or a number >=1 as an absolute number of query terms. - /// - /// - [JsonInclude, JsonPropertyName("max_errors")] - public double? MaxErrors { get; set; } - - /// - /// - /// The likelihood of a term being misspelled even if the term exists in the dictionary. - /// - /// - [JsonInclude, JsonPropertyName("real_word_error_likelihood")] - public double? RealWordErrorLikelihood { get; set; } - - /// - /// - /// The separator that is used to separate terms in the bigram field. - /// If not set, the whitespace character is used as a separator. - /// - /// - [JsonInclude, JsonPropertyName("separator")] - public string? Separator { get; set; } - - /// - /// - /// Sets the maximum number of suggested terms to be retrieved from each individual shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index). - /// The default model is Stupid Backoff. - /// - /// - [JsonInclude, JsonPropertyName("smoothing")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? Smoothing { get; set; } - - /// - /// - /// The text/query to provide suggestions for. - /// - /// - [JsonInclude, JsonPropertyName("text")] - public string? Text { get; set; } - [JsonInclude, JsonPropertyName("token_limit")] - public int? TokenLimit { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldSuggester(PhraseSuggester phraseSuggester) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldSuggester.Phrase(phraseSuggester); -} - -public sealed partial class PhraseSuggesterDescriptor : SerializableDescriptor> -{ - internal PhraseSuggesterDescriptor(Action> configure) => configure.Invoke(this); - - public PhraseSuggesterDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? CollateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateDescriptor CollateDescriptor { get; set; } - private Action CollateDescriptorAction { get; set; } - private double? ConfidenceValue { get; set; } - private ICollection? DirectGeneratorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor DirectGeneratorDescriptor { get; set; } - private Action> DirectGeneratorDescriptorAction { get; set; } - private Action>[] DirectGeneratorDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? ForceUnigramsValue { get; set; } - private int? GramSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private double? MaxErrorsValue { get; set; } - private double? RealWordErrorLikelihoodValue { get; set; } - private string? SeparatorValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? SmoothingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModelDescriptor SmoothingDescriptor { get; set; } - private Action SmoothingDescriptorAction { get; set; } - private string? TextValue { get; set; } - private int? TokenLimitValue { get; set; } - - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - public PhraseSuggesterDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. - /// - /// - public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? collate) - { - CollateDescriptor = null; - CollateDescriptorAction = null; - CollateValue = collate; - return Self; - } - - public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateDescriptor descriptor) - { - CollateValue = null; - CollateDescriptorAction = null; - CollateDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor Collate(Action configure) - { - CollateValue = null; - CollateDescriptor = null; - CollateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates. - /// Only candidates that score higher than the threshold will be included in the result. - /// - /// - public PhraseSuggesterDescriptor Confidence(double? confidence) - { - ConfidenceValue = confidence; - return Self; - } - - /// - /// - /// A list of candidate generators that produce a list of possible terms per term in the given text. - /// - /// - public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) - { - DirectGeneratorDescriptor = null; - DirectGeneratorDescriptorAction = null; - DirectGeneratorDescriptorActions = null; - DirectGeneratorValue = directGenerator; - return Self; - } - - public PhraseSuggesterDescriptor DirectGenerator(Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor descriptor) - { - DirectGeneratorValue = null; - DirectGeneratorDescriptorAction = null; - DirectGeneratorDescriptorActions = null; - DirectGeneratorDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor DirectGenerator(Action> configure) - { - DirectGeneratorValue = null; - DirectGeneratorDescriptor = null; - DirectGeneratorDescriptorActions = null; - DirectGeneratorDescriptorAction = configure; - return Self; - } - - public PhraseSuggesterDescriptor DirectGenerator(params Action>[] configure) - { - DirectGeneratorValue = null; - DirectGeneratorDescriptor = null; - DirectGeneratorDescriptorAction = null; - DirectGeneratorDescriptorActions = configure; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public PhraseSuggesterDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public PhraseSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public PhraseSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PhraseSuggesterDescriptor ForceUnigrams(bool? forceUnigrams = true) - { - ForceUnigramsValue = forceUnigrams; - return Self; - } - - /// - /// - /// Sets max size of the n-grams (shingles) in the field. - /// If the field doesn’t contain n-grams (shingles), this should be omitted or set to 1. - /// If the field uses a shingle filter, the gram_size is set to the max_shingle_size if not explicitly set. - /// - /// - public PhraseSuggesterDescriptor GramSize(int? gramSize) - { - GramSizeValue = gramSize; - return Self; - } - - /// - /// - /// Sets up suggestion highlighting. - /// If not provided, no highlighted field is returned. - /// - /// - public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum percentage of the terms considered to be misspellings in order to form a correction. - /// This method accepts a float value in the range [0..1) as a fraction of the actual query terms or a number >=1 as an absolute number of query terms. - /// - /// - public PhraseSuggesterDescriptor MaxErrors(double? maxErrors) - { - MaxErrorsValue = maxErrors; - return Self; - } - - /// - /// - /// The likelihood of a term being misspelled even if the term exists in the dictionary. - /// - /// - public PhraseSuggesterDescriptor RealWordErrorLikelihood(double? realWordErrorLikelihood) - { - RealWordErrorLikelihoodValue = realWordErrorLikelihood; - return Self; - } - - /// - /// - /// The separator that is used to separate terms in the bigram field. - /// If not set, the whitespace character is used as a separator. - /// - /// - public PhraseSuggesterDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Sets the maximum number of suggested terms to be retrieved from each individual shard. - /// - /// - public PhraseSuggesterDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public PhraseSuggesterDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index). - /// The default model is Stupid Backoff. - /// - /// - public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? smoothing) - { - SmoothingDescriptor = null; - SmoothingDescriptorAction = null; - SmoothingValue = smoothing; - return Self; - } - - public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModelDescriptor descriptor) - { - SmoothingValue = null; - SmoothingDescriptorAction = null; - SmoothingDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor Smoothing(Action configure) - { - SmoothingValue = null; - SmoothingDescriptor = null; - SmoothingDescriptorAction = configure; - return Self; - } - - /// - /// - /// The text/query to provide suggestions for. - /// - /// - public PhraseSuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - public PhraseSuggesterDescriptor TokenLimit(int? tokenLimit) - { - TokenLimitValue = tokenLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (CollateDescriptor is not null) - { - writer.WritePropertyName("collate"); - JsonSerializer.Serialize(writer, CollateDescriptor, options); - } - else if (CollateDescriptorAction is not null) - { - writer.WritePropertyName("collate"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateDescriptor(CollateDescriptorAction), options); - } - else if (CollateValue is not null) - { - writer.WritePropertyName("collate"); - JsonSerializer.Serialize(writer, CollateValue, options); - } - - if (ConfidenceValue.HasValue) - { - writer.WritePropertyName("confidence"); - writer.WriteNumberValue(ConfidenceValue.Value); - } - - if (DirectGeneratorDescriptor is not null) - { - writer.WritePropertyName("direct_generator"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DirectGeneratorDescriptor, options); - writer.WriteEndArray(); - } - else if (DirectGeneratorDescriptorAction is not null) - { - writer.WritePropertyName("direct_generator"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor(DirectGeneratorDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DirectGeneratorDescriptorActions is not null) - { - writer.WritePropertyName("direct_generator"); - writer.WriteStartArray(); - foreach (var action in DirectGeneratorDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DirectGeneratorValue is not null) - { - writer.WritePropertyName("direct_generator"); - JsonSerializer.Serialize(writer, DirectGeneratorValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (ForceUnigramsValue.HasValue) - { - writer.WritePropertyName("force_unigrams"); - writer.WriteBooleanValue(ForceUnigramsValue.Value); - } - - if (GramSizeValue.HasValue) - { - writer.WritePropertyName("gram_size"); - writer.WriteNumberValue(GramSizeValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (MaxErrorsValue.HasValue) - { - writer.WritePropertyName("max_errors"); - writer.WriteNumberValue(MaxErrorsValue.Value); - } - - if (RealWordErrorLikelihoodValue.HasValue) - { - writer.WritePropertyName("real_word_error_likelihood"); - writer.WriteNumberValue(RealWordErrorLikelihoodValue.Value); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SmoothingDescriptor is not null) - { - writer.WritePropertyName("smoothing"); - JsonSerializer.Serialize(writer, SmoothingDescriptor, options); - } - else if (SmoothingDescriptorAction is not null) - { - writer.WritePropertyName("smoothing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModelDescriptor(SmoothingDescriptorAction), options); - } - else if (SmoothingValue is not null) - { - writer.WritePropertyName("smoothing"); - JsonSerializer.Serialize(writer, SmoothingValue, options); - } - - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - if (TokenLimitValue.HasValue) - { - writer.WritePropertyName("token_limit"); - writer.WriteNumberValue(TokenLimitValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PhraseSuggesterDescriptor : SerializableDescriptor -{ - internal PhraseSuggesterDescriptor(Action configure) => configure.Invoke(this); - - public PhraseSuggesterDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? CollateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateDescriptor CollateDescriptor { get; set; } - private Action CollateDescriptorAction { get; set; } - private double? ConfidenceValue { get; set; } - private ICollection? DirectGeneratorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor DirectGeneratorDescriptor { get; set; } - private Action DirectGeneratorDescriptorAction { get; set; } - private Action[] DirectGeneratorDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? ForceUnigramsValue { get; set; } - private int? GramSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private double? MaxErrorsValue { get; set; } - private double? RealWordErrorLikelihoodValue { get; set; } - private string? SeparatorValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? SmoothingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModelDescriptor SmoothingDescriptor { get; set; } - private Action SmoothingDescriptorAction { get; set; } - private string? TextValue { get; set; } - private int? TokenLimitValue { get; set; } - - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - public PhraseSuggesterDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. - /// - /// - public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? collate) - { - CollateDescriptor = null; - CollateDescriptorAction = null; - CollateValue = collate; - return Self; - } - - public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateDescriptor descriptor) - { - CollateValue = null; - CollateDescriptorAction = null; - CollateDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor Collate(Action configure) - { - CollateValue = null; - CollateDescriptor = null; - CollateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates. - /// Only candidates that score higher than the threshold will be included in the result. - /// - /// - public PhraseSuggesterDescriptor Confidence(double? confidence) - { - ConfidenceValue = confidence; - return Self; - } - - /// - /// - /// A list of candidate generators that produce a list of possible terms per term in the given text. - /// - /// - public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) - { - DirectGeneratorDescriptor = null; - DirectGeneratorDescriptorAction = null; - DirectGeneratorDescriptorActions = null; - DirectGeneratorValue = directGenerator; - return Self; - } - - public PhraseSuggesterDescriptor DirectGenerator(Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor descriptor) - { - DirectGeneratorValue = null; - DirectGeneratorDescriptorAction = null; - DirectGeneratorDescriptorActions = null; - DirectGeneratorDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor DirectGenerator(Action configure) - { - DirectGeneratorValue = null; - DirectGeneratorDescriptor = null; - DirectGeneratorDescriptorActions = null; - DirectGeneratorDescriptorAction = configure; - return Self; - } - - public PhraseSuggesterDescriptor DirectGenerator(params Action[] configure) - { - DirectGeneratorValue = null; - DirectGeneratorDescriptor = null; - DirectGeneratorDescriptorAction = null; - DirectGeneratorDescriptorActions = configure; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public PhraseSuggesterDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public PhraseSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public PhraseSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PhraseSuggesterDescriptor ForceUnigrams(bool? forceUnigrams = true) - { - ForceUnigramsValue = forceUnigrams; - return Self; - } - - /// - /// - /// Sets max size of the n-grams (shingles) in the field. - /// If the field doesn’t contain n-grams (shingles), this should be omitted or set to 1. - /// If the field uses a shingle filter, the gram_size is set to the max_shingle_size if not explicitly set. - /// - /// - public PhraseSuggesterDescriptor GramSize(int? gramSize) - { - GramSizeValue = gramSize; - return Self; - } - - /// - /// - /// Sets up suggestion highlighting. - /// If not provided, no highlighted field is returned. - /// - /// - public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - /// - /// - /// The maximum percentage of the terms considered to be misspellings in order to form a correction. - /// This method accepts a float value in the range [0..1) as a fraction of the actual query terms or a number >=1 as an absolute number of query terms. - /// - /// - public PhraseSuggesterDescriptor MaxErrors(double? maxErrors) - { - MaxErrorsValue = maxErrors; - return Self; - } - - /// - /// - /// The likelihood of a term being misspelled even if the term exists in the dictionary. - /// - /// - public PhraseSuggesterDescriptor RealWordErrorLikelihood(double? realWordErrorLikelihood) - { - RealWordErrorLikelihoodValue = realWordErrorLikelihood; - return Self; - } - - /// - /// - /// The separator that is used to separate terms in the bigram field. - /// If not set, the whitespace character is used as a separator. - /// - /// - public PhraseSuggesterDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Sets the maximum number of suggested terms to be retrieved from each individual shard. - /// - /// - public PhraseSuggesterDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public PhraseSuggesterDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index). - /// The default model is Stupid Backoff. - /// - /// - public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? smoothing) - { - SmoothingDescriptor = null; - SmoothingDescriptorAction = null; - SmoothingValue = smoothing; - return Self; - } - - public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModelDescriptor descriptor) - { - SmoothingValue = null; - SmoothingDescriptorAction = null; - SmoothingDescriptor = descriptor; - return Self; - } - - public PhraseSuggesterDescriptor Smoothing(Action configure) - { - SmoothingValue = null; - SmoothingDescriptor = null; - SmoothingDescriptorAction = configure; - return Self; - } - - /// - /// - /// The text/query to provide suggestions for. - /// - /// - public PhraseSuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - public PhraseSuggesterDescriptor TokenLimit(int? tokenLimit) - { - TokenLimitValue = tokenLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (CollateDescriptor is not null) - { - writer.WritePropertyName("collate"); - JsonSerializer.Serialize(writer, CollateDescriptor, options); - } - else if (CollateDescriptorAction is not null) - { - writer.WritePropertyName("collate"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateDescriptor(CollateDescriptorAction), options); - } - else if (CollateValue is not null) - { - writer.WritePropertyName("collate"); - JsonSerializer.Serialize(writer, CollateValue, options); - } - - if (ConfidenceValue.HasValue) - { - writer.WritePropertyName("confidence"); - writer.WriteNumberValue(ConfidenceValue.Value); - } - - if (DirectGeneratorDescriptor is not null) - { - writer.WritePropertyName("direct_generator"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DirectGeneratorDescriptor, options); - writer.WriteEndArray(); - } - else if (DirectGeneratorDescriptorAction is not null) - { - writer.WritePropertyName("direct_generator"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor(DirectGeneratorDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DirectGeneratorDescriptorActions is not null) - { - writer.WritePropertyName("direct_generator"); - writer.WriteStartArray(); - foreach (var action in DirectGeneratorDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.DirectGeneratorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DirectGeneratorValue is not null) - { - writer.WritePropertyName("direct_generator"); - JsonSerializer.Serialize(writer, DirectGeneratorValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (ForceUnigramsValue.HasValue) - { - writer.WritePropertyName("force_unigrams"); - writer.WriteBooleanValue(ForceUnigramsValue.Value); - } - - if (GramSizeValue.HasValue) - { - writer.WritePropertyName("gram_size"); - writer.WriteNumberValue(GramSizeValue.Value); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (MaxErrorsValue.HasValue) - { - writer.WritePropertyName("max_errors"); - writer.WriteNumberValue(MaxErrorsValue.Value); - } - - if (RealWordErrorLikelihoodValue.HasValue) - { - writer.WritePropertyName("real_word_error_likelihood"); - writer.WriteNumberValue(RealWordErrorLikelihoodValue.Value); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SmoothingDescriptor is not null) - { - writer.WritePropertyName("smoothing"); - JsonSerializer.Serialize(writer, SmoothingDescriptor, options); - } - else if (SmoothingDescriptorAction is not null) - { - writer.WritePropertyName("smoothing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModelDescriptor(SmoothingDescriptorAction), options); - } - else if (SmoothingValue is not null) - { - writer.WritePropertyName("smoothing"); - JsonSerializer.Serialize(writer, SmoothingValue, options); - } - - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - if (TokenLimitValue.HasValue) - { - writer.WritePropertyName("token_limit"); - writer.WriteNumberValue(TokenLimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PointInTimeReference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PointInTimeReference.g.cs deleted file mode 100644 index e3e908674ad..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PointInTimeReference.g.cs +++ /dev/null @@ -1,74 +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.Core.Search; - -public sealed partial class PointInTimeReference -{ - [JsonInclude, JsonPropertyName("id")] - public string Id { get; set; } - [JsonInclude, JsonPropertyName("keep_alive")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; set; } -} - -public sealed partial class PointInTimeReferenceDescriptor : SerializableDescriptor -{ - internal PointInTimeReferenceDescriptor(Action configure) => configure.Invoke(this); - - public PointInTimeReferenceDescriptor() : base() - { - } - - private string IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } - - public PointInTimeReferenceDescriptor Id(string id) - { - IdValue = id; - return Self; - } - - public PointInTimeReferenceDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) - { - KeepAliveValue = keepAlive; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("id"); - writer.WriteStringValue(IdValue); - if (KeepAliveValue is not null) - { - writer.WritePropertyName("keep_alive"); - JsonSerializer.Serialize(writer, KeepAliveValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Profile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Profile.g.cs deleted file mode 100644 index 401e400c998..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Profile.g.cs +++ /dev/null @@ -1,34 +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.Core.Search; - -public sealed partial class Profile -{ - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyCollection Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs deleted file mode 100644 index d1437731867..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryBreakdown.g.cs +++ /dev/null @@ -1,72 +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.Core.Search; - -public sealed partial class QueryBreakdown -{ - [JsonInclude, JsonPropertyName("advance")] - public long Advance { get; init; } - [JsonInclude, JsonPropertyName("advance_count")] - public long AdvanceCount { get; init; } - [JsonInclude, JsonPropertyName("build_scorer")] - public long BuildScorer { get; init; } - [JsonInclude, JsonPropertyName("build_scorer_count")] - public long BuildScorerCount { get; init; } - [JsonInclude, JsonPropertyName("compute_max_score")] - public long ComputeMaxScore { get; init; } - [JsonInclude, JsonPropertyName("compute_max_score_count")] - public long ComputeMaxScoreCount { get; init; } - [JsonInclude, JsonPropertyName("count_weight")] - public long CountWeight { get; init; } - [JsonInclude, JsonPropertyName("count_weight_count")] - public long CountWeightCount { get; init; } - [JsonInclude, JsonPropertyName("create_weight")] - public long CreateWeight { get; init; } - [JsonInclude, JsonPropertyName("create_weight_count")] - public long CreateWeightCount { get; init; } - [JsonInclude, JsonPropertyName("match")] - public long Match { get; init; } - [JsonInclude, JsonPropertyName("match_count")] - public long MatchCount { get; init; } - [JsonInclude, JsonPropertyName("next_doc")] - public long NextDoc { get; init; } - [JsonInclude, JsonPropertyName("next_doc_count")] - public long NextDocCount { get; init; } - [JsonInclude, JsonPropertyName("score")] - public long Score { get; init; } - [JsonInclude, JsonPropertyName("score_count")] - public long ScoreCount { get; init; } - [JsonInclude, JsonPropertyName("set_min_competitive_score")] - public long SetMinCompetitiveScore { get; init; } - [JsonInclude, JsonPropertyName("set_min_competitive_score_count")] - public long SetMinCompetitiveScoreCount { get; init; } - [JsonInclude, JsonPropertyName("shallow_advance")] - public long ShallowAdvance { get; init; } - [JsonInclude, JsonPropertyName("shallow_advance_count")] - public long ShallowAdvanceCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryProfile.g.cs deleted file mode 100644 index c26e6e606dd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/QueryProfile.g.cs +++ /dev/null @@ -1,42 +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.Core.Search; - -public sealed partial class QueryProfile -{ - [JsonInclude, JsonPropertyName("breakdown")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.QueryBreakdown Breakdown { get; init; } - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("time_in_nanos")] - public long TimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs deleted file mode 100644 index f6dd5f60fef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs +++ /dev/null @@ -1,99 +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.Core.Search; - -public sealed partial class RegexOptions -{ - /// - /// - /// Optional operators for the regular expression. - /// - /// - [JsonInclude, JsonPropertyName("flags")] - public object? Flags { get; set; } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - [JsonInclude, JsonPropertyName("max_determinized_states")] - public int? MaxDeterminizedStates { get; set; } -} - -public sealed partial class RegexOptionsDescriptor : SerializableDescriptor -{ - internal RegexOptionsDescriptor(Action configure) => configure.Invoke(this); - - public RegexOptionsDescriptor() : base() - { - } - - private object? FlagsValue { get; set; } - private int? MaxDeterminizedStatesValue { get; set; } - - /// - /// - /// Optional operators for the regular expression. - /// - /// - public RegexOptionsDescriptor Flags(object? flags) - { - FlagsValue = flags; - return Self; - } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - public RegexOptionsDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) - { - MaxDeterminizedStatesValue = maxDeterminizedStates; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FlagsValue is not null) - { - writer.WritePropertyName("flags"); - JsonSerializer.Serialize(writer, FlagsValue, options); - } - - if (MaxDeterminizedStatesValue.HasValue) - { - writer.WritePropertyName("max_determinized_states"); - writer.WriteNumberValue(MaxDeterminizedStatesValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Rescore.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Rescore.g.cs deleted file mode 100644 index a05d61b1266..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Rescore.g.cs +++ /dev/null @@ -1,287 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; - -[JsonConverter(typeof(RescoreConverter))] -public sealed partial class Rescore -{ - internal Rescore(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Rescore LearningToRank(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LearningToRank learningToRank) => new Rescore("learning_to_rank", learningToRank); - public static Rescore Query(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreQuery rescoreQuery) => new Rescore("query", rescoreQuery); - - [JsonInclude, JsonPropertyName("window_size")] - public int? WindowSize { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class RescoreConverter : JsonConverter -{ - public override Rescore Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - int? windowSizeValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "window_size") - { - windowSizeValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "learning_to_rank") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "query") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Rescore' from the response."); - } - - var result = new Rescore(variantNameValue, variantValue); - result.WindowSize = windowSizeValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, Rescore value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.WindowSize.HasValue) - { - writer.WritePropertyName("window_size"); - writer.WriteNumberValue(value.WindowSize.Value); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "learning_to_rank": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.LearningToRank)value.Variant, options); - break; - case "query": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreQuery)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RescoreDescriptor : SerializableDescriptor> -{ - internal RescoreDescriptor(Action> configure) => configure.Invoke(this); - - public RescoreDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RescoreDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RescoreDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private int? WindowSizeValue { get; set; } - - public RescoreDescriptor WindowSize(int? windowSize) - { - WindowSizeValue = windowSize; - return Self; - } - - public RescoreDescriptor LearningToRank(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LearningToRank learningToRank) => Set(learningToRank, "learning_to_rank"); - public RescoreDescriptor LearningToRank(Action configure) => Set(configure, "learning_to_rank"); - public RescoreDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreQuery rescoreQuery) => Set(rescoreQuery, "query"); - public RescoreDescriptor Query(Action> configure) => Set(configure, "query"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (WindowSizeValue.HasValue) - { - writer.WritePropertyName("window_size"); - writer.WriteNumberValue(WindowSizeValue.Value); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RescoreDescriptor : SerializableDescriptor -{ - internal RescoreDescriptor(Action configure) => configure.Invoke(this); - - public RescoreDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RescoreDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RescoreDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private int? WindowSizeValue { get; set; } - - public RescoreDescriptor WindowSize(int? windowSize) - { - WindowSizeValue = windowSize; - return Self; - } - - public RescoreDescriptor LearningToRank(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LearningToRank learningToRank) => Set(learningToRank, "learning_to_rank"); - public RescoreDescriptor LearningToRank(Action configure) => Set(configure, "learning_to_rank"); - public RescoreDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RescoreQuery rescoreQuery) => Set(rescoreQuery, "query"); - public RescoreDescriptor Query(Action configure) => Set(configure, "query"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (WindowSizeValue.HasValue) - { - writer.WritePropertyName("window_size"); - writer.WriteNumberValue(WindowSizeValue.Value); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RescoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RescoreQuery.g.cs deleted file mode 100644 index a25a82997ec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RescoreQuery.g.cs +++ /dev/null @@ -1,304 +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.Core.Search; - -public sealed partial class RescoreQuery -{ - /// - /// - /// The query to use for rescoring. - /// This query is only run on the Top-K results returned by the query and post_filter phases. - /// - /// - [JsonInclude, JsonPropertyName("rescore_query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - - /// - /// - /// Relative importance of the original query versus the rescore query. - /// - /// - [JsonInclude, JsonPropertyName("query_weight")] - public double? QueryWeight { get; set; } - - /// - /// - /// Relative importance of the rescore query versus the original query. - /// - /// - [JsonInclude, JsonPropertyName("rescore_query_weight")] - public double? RescoreQueryWeight { get; set; } - - /// - /// - /// Determines how scores are combined. - /// - /// - [JsonInclude, JsonPropertyName("score_mode")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.ScoreMode? ScoreMode { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore(RescoreQuery rescoreQuery) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.Rescore.Query(rescoreQuery); -} - -public sealed partial class RescoreQueryDescriptor : SerializableDescriptor> -{ - internal RescoreQueryDescriptor(Action> configure) => configure.Invoke(this); - - public RescoreQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private double? QueryWeightValue { get; set; } - private double? RescoreQueryWeightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.ScoreMode? ScoreModeValue { get; set; } - - /// - /// - /// The query to use for rescoring. - /// This query is only run on the Top-K results returned by the query and post_filter phases. - /// - /// - public RescoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public RescoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public RescoreQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Relative importance of the original query versus the rescore query. - /// - /// - public RescoreQueryDescriptor QueryWeight(double? queryWeight) - { - QueryWeightValue = queryWeight; - return Self; - } - - /// - /// - /// Relative importance of the rescore query versus the original query. - /// - /// - public RescoreQueryDescriptor RescoreQueryWeight(double? rescoreQueryWeight) - { - RescoreQueryWeightValue = rescoreQueryWeight; - return Self; - } - - /// - /// - /// Determines how scores are combined. - /// - /// - public RescoreQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.Core.Search.ScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("rescore_query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("rescore_query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("rescore_query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryWeightValue.HasValue) - { - writer.WritePropertyName("query_weight"); - writer.WriteNumberValue(QueryWeightValue.Value); - } - - if (RescoreQueryWeightValue.HasValue) - { - writer.WritePropertyName("rescore_query_weight"); - writer.WriteNumberValue(RescoreQueryWeightValue.Value); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RescoreQueryDescriptor : SerializableDescriptor -{ - internal RescoreQueryDescriptor(Action configure) => configure.Invoke(this); - - public RescoreQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private double? QueryWeightValue { get; set; } - private double? RescoreQueryWeightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.ScoreMode? ScoreModeValue { get; set; } - - /// - /// - /// The query to use for rescoring. - /// This query is only run on the Top-K results returned by the query and post_filter phases. - /// - /// - public RescoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public RescoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public RescoreQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Relative importance of the original query versus the rescore query. - /// - /// - public RescoreQueryDescriptor QueryWeight(double? queryWeight) - { - QueryWeightValue = queryWeight; - return Self; - } - - /// - /// - /// Relative importance of the rescore query versus the original query. - /// - /// - public RescoreQueryDescriptor RescoreQueryWeight(double? rescoreQueryWeight) - { - RescoreQueryWeightValue = rescoreQueryWeight; - return Self; - } - - /// - /// - /// Determines how scores are combined. - /// - /// - public RescoreQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.Core.Search.ScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("rescore_query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("rescore_query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("rescore_query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryWeightValue.HasValue) - { - writer.WritePropertyName("query_weight"); - writer.WriteNumberValue(QueryWeightValue.Value); - } - - if (RescoreQueryWeightValue.HasValue) - { - writer.WritePropertyName("rescore_query_weight"); - writer.WriteNumberValue(RescoreQueryWeightValue.Value); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SearchProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SearchProfile.g.cs deleted file mode 100644 index deca3beb491..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SearchProfile.g.cs +++ /dev/null @@ -1,38 +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.Core.Search; - -public sealed partial class SearchProfile -{ - [JsonInclude, JsonPropertyName("collector")] - public IReadOnlyCollection Collector { get; init; } - [JsonInclude, JsonPropertyName("query")] - public IReadOnlyCollection Query { get; init; } - [JsonInclude, JsonPropertyName("rewrite_time")] - public long RewriteTime { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs deleted file mode 100644 index f06dd7d80c0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/ShardProfile.g.cs +++ /dev/null @@ -1,50 +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.Core.Search; - -public sealed partial class ShardProfile -{ - [JsonInclude, JsonPropertyName("aggregations")] - public IReadOnlyCollection Aggregations { get; init; } - [JsonInclude, JsonPropertyName("cluster")] - public string Cluster { get; init; } - [JsonInclude, JsonPropertyName("dfs")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.DfsProfile? Dfs { get; init; } - [JsonInclude, JsonPropertyName("fetch")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FetchProfile? Fetch { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("searches")] - public IReadOnlyCollection Searches { get; init; } - [JsonInclude, JsonPropertyName("shard_id")] - public long ShardId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SmoothingModel.g.cs deleted file mode 100644 index f41ccfe7207..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SmoothingModel.g.cs +++ /dev/null @@ -1,257 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; - -[JsonConverter(typeof(SmoothingModelConverter))] -public sealed partial class SmoothingModel -{ - internal SmoothingModel(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static SmoothingModel Laplace(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LaplaceSmoothingModel laplaceSmoothingModel) => new SmoothingModel("laplace", laplaceSmoothingModel); - public static SmoothingModel LinearInterpolation(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LinearInterpolationSmoothingModel linearInterpolationSmoothingModel) => new SmoothingModel("linear_interpolation", linearInterpolationSmoothingModel); - public static SmoothingModel StupidBackoff(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StupidBackoffSmoothingModel stupidBackoffSmoothingModel) => new SmoothingModel("stupid_backoff", stupidBackoffSmoothingModel); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class SmoothingModelConverter : JsonConverter -{ - public override SmoothingModel Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "laplace") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "linear_interpolation") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "stupid_backoff") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SmoothingModel' from the response."); - } - - var result = new SmoothingModel(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, SmoothingModel value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "laplace": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.LaplaceSmoothingModel)value.Variant, options); - break; - case "linear_interpolation": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.LinearInterpolationSmoothingModel)value.Variant, options); - break; - case "stupid_backoff": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Core.Search.StupidBackoffSmoothingModel)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SmoothingModelDescriptor : SerializableDescriptor> -{ - internal SmoothingModelDescriptor(Action> configure) => configure.Invoke(this); - - public SmoothingModelDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SmoothingModelDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SmoothingModelDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public SmoothingModelDescriptor Laplace(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LaplaceSmoothingModel laplaceSmoothingModel) => Set(laplaceSmoothingModel, "laplace"); - public SmoothingModelDescriptor Laplace(Action configure) => Set(configure, "laplace"); - public SmoothingModelDescriptor LinearInterpolation(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LinearInterpolationSmoothingModel linearInterpolationSmoothingModel) => Set(linearInterpolationSmoothingModel, "linear_interpolation"); - public SmoothingModelDescriptor LinearInterpolation(Action configure) => Set(configure, "linear_interpolation"); - public SmoothingModelDescriptor StupidBackoff(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StupidBackoffSmoothingModel stupidBackoffSmoothingModel) => Set(stupidBackoffSmoothingModel, "stupid_backoff"); - public SmoothingModelDescriptor StupidBackoff(Action configure) => Set(configure, "stupid_backoff"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SmoothingModelDescriptor : SerializableDescriptor -{ - internal SmoothingModelDescriptor(Action configure) => configure.Invoke(this); - - public SmoothingModelDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SmoothingModelDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SmoothingModelDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public SmoothingModelDescriptor Laplace(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LaplaceSmoothingModel laplaceSmoothingModel) => Set(laplaceSmoothingModel, "laplace"); - public SmoothingModelDescriptor Laplace(Action configure) => Set(configure, "laplace"); - public SmoothingModelDescriptor LinearInterpolation(Elastic.Clients.Elasticsearch.Serverless.Core.Search.LinearInterpolationSmoothingModel linearInterpolationSmoothingModel) => Set(linearInterpolationSmoothingModel, "linear_interpolation"); - public SmoothingModelDescriptor LinearInterpolation(Action configure) => Set(configure, "linear_interpolation"); - public SmoothingModelDescriptor StupidBackoff(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StupidBackoffSmoothingModel stupidBackoffSmoothingModel) => Set(stupidBackoffSmoothingModel, "stupid_backoff"); - public SmoothingModelDescriptor StupidBackoff(Action configure) => Set(configure, "stupid_backoff"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs deleted file mode 100644 index 476fc65d917..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SourceFilter.g.cs +++ /dev/null @@ -1,169 +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.Core.Search; - -internal sealed partial class SourceFilterConverter : JsonConverter -{ - public override SourceFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new SourceFilter(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "excludes" || property == "exclude") - { - reader.Read(); - variant.Excludes = new FieldsConverter().Read(ref reader, typeToConvert, options); - continue; - } - - if (property == "includes" || property == "include") - { - reader.Read(); - variant.Includes = new FieldsConverter().Read(ref reader, typeToConvert, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, SourceFilter value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Excludes is not null) - { - writer.WritePropertyName("excludes"); - new FieldsConverter().Write(writer, value.Excludes, options); - } - - if (value.Includes is not null) - { - writer.WritePropertyName("includes"); - new FieldsConverter().Write(writer, value.Includes, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(SourceFilterConverter))] -public sealed partial class SourceFilter -{ - public Elastic.Clients.Elasticsearch.Serverless.Fields? Excludes { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Fields? Includes { get; set; } -} - -public sealed partial class SourceFilterDescriptor : SerializableDescriptor> -{ - internal SourceFilterDescriptor(Action> configure) => configure.Invoke(this); - - public SourceFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? ExcludesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? IncludesValue { get; set; } - - public SourceFilterDescriptor Excludes(Elastic.Clients.Elasticsearch.Serverless.Fields? excludes) - { - ExcludesValue = excludes; - return Self; - } - - public SourceFilterDescriptor Includes(Elastic.Clients.Elasticsearch.Serverless.Fields? includes) - { - IncludesValue = includes; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludesValue is not null) - { - writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, ExcludesValue, options); - } - - if (IncludesValue is not null) - { - writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, IncludesValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SourceFilterDescriptor : SerializableDescriptor -{ - internal SourceFilterDescriptor(Action configure) => configure.Invoke(this); - - public SourceFilterDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? ExcludesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? IncludesValue { get; set; } - - public SourceFilterDescriptor Excludes(Elastic.Clients.Elasticsearch.Serverless.Fields? excludes) - { - ExcludesValue = excludes; - return Self; - } - - public SourceFilterDescriptor Includes(Elastic.Clients.Elasticsearch.Serverless.Fields? includes) - { - IncludesValue = includes; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludesValue is not null) - { - writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, ExcludesValue, options); - } - - if (IncludesValue is not null) - { - writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, IncludesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs deleted file mode 100644 index d3a323a4d29..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs +++ /dev/null @@ -1,71 +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.Core.Search; - -public sealed partial class StupidBackoffSmoothingModel -{ - /// - /// - /// A constant factor that the lower order n-gram model is discounted by. - /// - /// - [JsonInclude, JsonPropertyName("discount")] - public double Discount { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel(StupidBackoffSmoothingModel stupidBackoffSmoothingModel) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel.StupidBackoff(stupidBackoffSmoothingModel); -} - -public sealed partial class StupidBackoffSmoothingModelDescriptor : SerializableDescriptor -{ - internal StupidBackoffSmoothingModelDescriptor(Action configure) => configure.Invoke(this); - - public StupidBackoffSmoothingModelDescriptor() : base() - { - } - - private double DiscountValue { get; set; } - - /// - /// - /// A constant factor that the lower order n-gram model is discounted by. - /// - /// - public StupidBackoffSmoothingModelDescriptor Discount(double discount) - { - DiscountValue = discount; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("discount"); - writer.WriteNumberValue(DiscountValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestDictionary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestDictionary.g.cs deleted file mode 100644 index fce42046b43..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestDictionary.g.cs +++ /dev/null @@ -1,108 +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.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; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; - -public partial interface ISuggest -{ -} - -[GenericConverter(typeof(SuggestDictionaryConverter<>), unwrap: true)] -public partial class SuggestDictionary : IsAReadOnlyDictionary> -{ - public SuggestDictionary(IReadOnlyDictionary> backingDictionary) : base(backingDictionary) - { - } - - public IReadOnlyCollection>? GetCompletion(string key) => TryGet>(key); - public IReadOnlyCollection? GetPhrase(string key) => TryGet(key); - public IReadOnlyCollection? GetTerm(string key) => TryGet(key); - private IReadOnlyCollection? TryGet(string key) where T : class, ISuggest => BackingDictionary.TryGetValue(key, out var value) ? value.Cast().ToArray() : null; -} - -internal sealed partial class SuggestDictionaryConverter : JsonConverter> -{ - public override SuggestDictionary Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var dictionary = new Dictionary>(); - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException($"Expected {JsonTokenType.StartObject} but read {reader.TokenType}."); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - throw new JsonException($"Expected {JsonTokenType.PropertyName} but read {reader.TokenType}."); - var name = reader.GetString(); - reader.Read(); - ReadItem(ref reader, options, dictionary, name); - } - - return new SuggestDictionary(dictionary); - } - - public override void Write(Utf8JsonWriter writer, SuggestDictionary value, JsonSerializerOptions options) - { - throw new NotImplementedException("'SuggestDictionary' is a readonly type, used only on responses and does not support being written to JSON."); - } - - public static void ReadItem(ref Utf8JsonReader reader, JsonSerializerOptions options, Dictionary> dictionary, string name) - { - var nameParts = name.Split('#'); - if (nameParts.Length != 2) - throw new JsonException($"Unable to parse typed-key '{name}'."); - var type = nameParts[0]; - switch (type) - { - case "completion": - { - var item = JsonSerializer.Deserialize>>(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "phrase": - { - var item = JsonSerializer.Deserialize>(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - case "term": - { - var item = JsonSerializer.Deserialize>(ref reader, options); - dictionary.Add(nameParts[1], item); - break; - } - - default: - throw new NotSupportedException($"The tagged variant '{type}' is currently not supported."); - } - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs deleted file mode 100644 index d898822c690..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs +++ /dev/null @@ -1,179 +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.Core.Search; - -public sealed partial class SuggestFuzziness -{ - /// - /// - /// The fuzziness factor. - /// - /// - [JsonInclude, JsonPropertyName("fuzziness")] - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Minimum length of the input before fuzzy suggestions are returned. - /// - /// - [JsonInclude, JsonPropertyName("min_length")] - public int? MinLength { get; set; } - - /// - /// - /// Minimum length of the input, which is not checked for fuzzy alternatives. - /// - /// - [JsonInclude, JsonPropertyName("prefix_length")] - public int? PrefixLength { get; set; } - - /// - /// - /// If set to true, transpositions are counted as one change instead of two. - /// - /// - [JsonInclude, JsonPropertyName("transpositions")] - public bool? Transpositions { get; set; } - - /// - /// - /// If true, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes. - /// This is slightly slower than raw bytes. - /// - /// - [JsonInclude, JsonPropertyName("unicode_aware")] - public bool? UnicodeAware { get; set; } -} - -public sealed partial class SuggestFuzzinessDescriptor : SerializableDescriptor -{ - internal SuggestFuzzinessDescriptor(Action configure) => configure.Invoke(this); - - public SuggestFuzzinessDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? MinLengthValue { get; set; } - private int? PrefixLengthValue { get; set; } - private bool? TranspositionsValue { get; set; } - private bool? UnicodeAwareValue { get; set; } - - /// - /// - /// The fuzziness factor. - /// - /// - public SuggestFuzzinessDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Minimum length of the input before fuzzy suggestions are returned. - /// - /// - public SuggestFuzzinessDescriptor MinLength(int? minLength) - { - MinLengthValue = minLength; - return Self; - } - - /// - /// - /// Minimum length of the input, which is not checked for fuzzy alternatives. - /// - /// - public SuggestFuzzinessDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// If set to true, transpositions are counted as one change instead of two. - /// - /// - public SuggestFuzzinessDescriptor Transpositions(bool? transpositions = true) - { - TranspositionsValue = transpositions; - return Self; - } - - /// - /// - /// If true, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes. - /// This is slightly slower than raw bytes. - /// - /// - public SuggestFuzzinessDescriptor UnicodeAware(bool? unicodeAware = true) - { - UnicodeAwareValue = unicodeAware; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (MinLengthValue.HasValue) - { - writer.WritePropertyName("min_length"); - writer.WriteNumberValue(MinLengthValue.Value); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (TranspositionsValue.HasValue) - { - writer.WritePropertyName("transpositions"); - writer.WriteBooleanValue(TranspositionsValue.Value); - } - - if (UnicodeAwareValue.HasValue) - { - writer.WritePropertyName("unicode_aware"); - writer.WriteBooleanValue(UnicodeAwareValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Suggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Suggester.g.cs deleted file mode 100644 index 7f1dbc2d2f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/Suggester.g.cs +++ /dev/null @@ -1,207 +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.Core.Search; - -internal sealed partial class SuggesterConverter : JsonConverter -{ - public override Suggester Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new Suggester(); - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "text") - { - variant.Text = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - variant.Suggesters = additionalProperties; - return variant; - } - - public override void Write(Utf8JsonWriter writer, Suggester value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Suggesters is not null) - { - foreach (var additionalProperty in value.Suggesters) - { - writer.WritePropertyName(additionalProperty.Key); - JsonSerializer.Serialize(writer, additionalProperty.Value, options); - } - } - - if (!string.IsNullOrEmpty(value.Text)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(value.Text); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(SuggesterConverter))] -public sealed partial class Suggester -{ - /// - /// - /// The named suggesters - /// - /// - public IDictionary Suggesters { get; set; } - - /// - /// - /// Global suggest text, to avoid repetition when the same text is used in several suggesters - /// - /// - public string? Text { get; set; } -} - -public sealed partial class SuggesterDescriptor : SerializableDescriptor> -{ - internal SuggesterDescriptor(Action> configure) => configure.Invoke(this); - - public SuggesterDescriptor() : base() - { - } - - private IDictionary> SuggestersValue { get; set; } - private string? TextValue { get; set; } - - /// - /// - /// The named suggesters - /// - /// - public SuggesterDescriptor Suggesters(Func>, FluentDescriptorDictionary>> selector) - { - SuggestersValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Global suggest text, to avoid repetition when the same text is used in several suggesters - /// - /// - public SuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - if (SuggestersValue is not null) - { - foreach (var additionalProperty in SuggestersValue) - { - writer.WritePropertyName(additionalProperty.Key); - JsonSerializer.Serialize(writer, additionalProperty.Value, options); - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SuggesterDescriptor : SerializableDescriptor -{ - internal SuggesterDescriptor(Action configure) => configure.Invoke(this); - - public SuggesterDescriptor() : base() - { - } - - private IDictionary SuggestersValue { get; set; } - private string? TextValue { get; set; } - - /// - /// - /// The named suggesters - /// - /// - public SuggesterDescriptor Suggesters(Func, FluentDescriptorDictionary> selector) - { - SuggestersValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Global suggest text, to avoid repetition when the same text is used in several suggesters - /// - /// - public SuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - if (SuggestersValue is not null) - { - foreach (var additionalProperty in SuggestersValue) - { - writer.WritePropertyName(additionalProperty.Key); - JsonSerializer.Serialize(writer, additionalProperty.Value, options); - } - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggest.g.cs deleted file mode 100644 index 3f8e3ff522c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggest.g.cs +++ /dev/null @@ -1,41 +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.Core.Search; - -public sealed partial class TermSuggest : ISuggest -{ - [JsonInclude, JsonPropertyName("length")] - public int Length { get; init; } - [JsonInclude, JsonPropertyName("offset")] - public int Offset { get; init; } - [JsonInclude, JsonPropertyName("options")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TermSuggestOption))] - public IReadOnlyCollection Options { get; init; } - [JsonInclude, JsonPropertyName("text")] - public string Text { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggestOption.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggestOption.g.cs deleted file mode 100644 index 13b6497ef80..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggestOption.g.cs +++ /dev/null @@ -1,42 +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.Core.Search; - -public sealed partial class TermSuggestOption -{ - [JsonInclude, JsonPropertyName("collate_match")] - public bool? CollateMatch { get; init; } - [JsonInclude, JsonPropertyName("freq")] - public long Freq { get; init; } - [JsonInclude, JsonPropertyName("highlighted")] - public string? Highlighted { get; init; } - [JsonInclude, JsonPropertyName("score")] - public double Score { get; init; } - [JsonInclude, JsonPropertyName("text")] - public string Text { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs deleted file mode 100644 index d3961ae4718..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs +++ /dev/null @@ -1,782 +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.Core.Search; - -public sealed partial class TermSuggester -{ - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("lowercase_terms")] - public bool? LowercaseTerms { get; set; } - - /// - /// - /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. - /// Can only be 1 or 2. - /// - /// - [JsonInclude, JsonPropertyName("max_edits")] - public int? MaxEdits { get; set; } - - /// - /// - /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level. - /// Can improve accuracy at the cost of performance. - /// - /// - [JsonInclude, JsonPropertyName("max_inspections")] - public int? MaxInspections { get; set; } - - /// - /// - /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included. - /// Can be a relative percentage number (for example 0.4) or an absolute number to represent document frequencies. - /// If a value higher than 1 is specified, then fractional can not be specified. - /// - /// - [JsonInclude, JsonPropertyName("max_term_freq")] - public float? MaxTermFreq { get; set; } - - /// - /// - /// The minimal threshold in number of documents a suggestion should appear in. - /// This can improve quality by only suggesting high frequency terms. - /// Can be specified as an absolute number or as a relative percentage of number of documents. - /// If a value higher than 1 is specified, then the number cannot be fractional. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_freq")] - public float? MinDocFreq { get; set; } - - /// - /// - /// The minimum length a suggest text term must have in order to be included. - /// - /// - [JsonInclude, JsonPropertyName("min_word_length")] - public int? MinWordLength { get; set; } - - /// - /// - /// The number of minimal prefix characters that must match in order be a candidate for suggestions. - /// Increasing this number improves spellcheck performance. - /// - /// - [JsonInclude, JsonPropertyName("prefix_length")] - public int? PrefixLength { get; set; } - - /// - /// - /// Sets the maximum number of suggestions to be retrieved from each individual shard. - /// - /// - [JsonInclude, JsonPropertyName("shard_size")] - public int? ShardSize { get; set; } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } - - /// - /// - /// Defines how suggestions should be sorted per suggest text term. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? Sort { get; set; } - - /// - /// - /// The string distance implementation to use for comparing how similar suggested terms are. - /// - /// - [JsonInclude, JsonPropertyName("string_distance")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? StringDistance { get; set; } - - /// - /// - /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. - /// - /// - [JsonInclude, JsonPropertyName("suggest_mode")] - public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get; set; } - - /// - /// - /// The suggest text. - /// Needs to be set globally or per suggestion. - /// - /// - [JsonInclude, JsonPropertyName("text")] - public string? Text { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldSuggester(TermSuggester termSuggester) => Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldSuggester.Term(termSuggester); -} - -public sealed partial class TermSuggesterDescriptor : SerializableDescriptor> -{ - internal TermSuggesterDescriptor(Action> configure) => configure.Invoke(this); - - public TermSuggesterDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? LowercaseTermsValue { get; set; } - private int? MaxEditsValue { get; set; } - private int? MaxInspectionsValue { get; set; } - private float? MaxTermFreqValue { get; set; } - private float? MinDocFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - private int? PrefixLengthValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? StringDistanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestModeValue { get; set; } - private string? TextValue { get; set; } - - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - public TermSuggesterDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermSuggesterDescriptor LowercaseTerms(bool? lowercaseTerms = true) - { - LowercaseTermsValue = lowercaseTerms; - return Self; - } - - /// - /// - /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. - /// Can only be 1 or 2. - /// - /// - public TermSuggesterDescriptor MaxEdits(int? maxEdits) - { - MaxEditsValue = maxEdits; - return Self; - } - - /// - /// - /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level. - /// Can improve accuracy at the cost of performance. - /// - /// - public TermSuggesterDescriptor MaxInspections(int? maxInspections) - { - MaxInspectionsValue = maxInspections; - return Self; - } - - /// - /// - /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included. - /// Can be a relative percentage number (for example 0.4) or an absolute number to represent document frequencies. - /// If a value higher than 1 is specified, then fractional can not be specified. - /// - /// - public TermSuggesterDescriptor MaxTermFreq(float? maxTermFreq) - { - MaxTermFreqValue = maxTermFreq; - return Self; - } - - /// - /// - /// The minimal threshold in number of documents a suggestion should appear in. - /// This can improve quality by only suggesting high frequency terms. - /// Can be specified as an absolute number or as a relative percentage of number of documents. - /// If a value higher than 1 is specified, then the number cannot be fractional. - /// - /// - public TermSuggesterDescriptor MinDocFreq(float? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// The minimum length a suggest text term must have in order to be included. - /// - /// - public TermSuggesterDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - /// - /// - /// The number of minimal prefix characters that must match in order be a candidate for suggestions. - /// Increasing this number improves spellcheck performance. - /// - /// - public TermSuggesterDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Sets the maximum number of suggestions to be retrieved from each individual shard. - /// - /// - public TermSuggesterDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public TermSuggesterDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Defines how suggestions should be sorted per suggest text term. - /// - /// - public TermSuggesterDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// The string distance implementation to use for comparing how similar suggested terms are. - /// - /// - public TermSuggesterDescriptor StringDistance(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? stringDistance) - { - StringDistanceValue = stringDistance; - return Self; - } - - /// - /// - /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. - /// - /// - public TermSuggesterDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) - { - SuggestModeValue = suggestMode; - return Self; - } - - /// - /// - /// The suggest text. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LowercaseTermsValue.HasValue) - { - writer.WritePropertyName("lowercase_terms"); - writer.WriteBooleanValue(LowercaseTermsValue.Value); - } - - if (MaxEditsValue.HasValue) - { - writer.WritePropertyName("max_edits"); - writer.WriteNumberValue(MaxEditsValue.Value); - } - - if (MaxInspectionsValue.HasValue) - { - writer.WritePropertyName("max_inspections"); - writer.WriteNumberValue(MaxInspectionsValue.Value); - } - - if (MaxTermFreqValue.HasValue) - { - writer.WritePropertyName("max_term_freq"); - writer.WriteNumberValue(MaxTermFreqValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StringDistanceValue is not null) - { - writer.WritePropertyName("string_distance"); - JsonSerializer.Serialize(writer, StringDistanceValue, options); - } - - if (SuggestModeValue is not null) - { - writer.WritePropertyName("suggest_mode"); - JsonSerializer.Serialize(writer, SuggestModeValue, options); - } - - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TermSuggesterDescriptor : SerializableDescriptor -{ - internal TermSuggesterDescriptor(Action configure) => configure.Invoke(this); - - public TermSuggesterDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? LowercaseTermsValue { get; set; } - private int? MaxEditsValue { get; set; } - private int? MaxInspectionsValue { get; set; } - private float? MaxTermFreqValue { get; set; } - private float? MinDocFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - private int? PrefixLengthValue { get; set; } - private int? ShardSizeValue { get; set; } - private int? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? StringDistanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestModeValue { get; set; } - private string? TextValue { get; set; } - - /// - /// - /// The analyzer to analyze the suggest text with. - /// Defaults to the search analyzer of the suggest field. - /// - /// - public TermSuggesterDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to fetch the candidate suggestions from. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermSuggesterDescriptor LowercaseTerms(bool? lowercaseTerms = true) - { - LowercaseTermsValue = lowercaseTerms; - return Self; - } - - /// - /// - /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion. - /// Can only be 1 or 2. - /// - /// - public TermSuggesterDescriptor MaxEdits(int? maxEdits) - { - MaxEditsValue = maxEdits; - return Self; - } - - /// - /// - /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level. - /// Can improve accuracy at the cost of performance. - /// - /// - public TermSuggesterDescriptor MaxInspections(int? maxInspections) - { - MaxInspectionsValue = maxInspections; - return Self; - } - - /// - /// - /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included. - /// Can be a relative percentage number (for example 0.4) or an absolute number to represent document frequencies. - /// If a value higher than 1 is specified, then fractional can not be specified. - /// - /// - public TermSuggesterDescriptor MaxTermFreq(float? maxTermFreq) - { - MaxTermFreqValue = maxTermFreq; - return Self; - } - - /// - /// - /// The minimal threshold in number of documents a suggestion should appear in. - /// This can improve quality by only suggesting high frequency terms. - /// Can be specified as an absolute number or as a relative percentage of number of documents. - /// If a value higher than 1 is specified, then the number cannot be fractional. - /// - /// - public TermSuggesterDescriptor MinDocFreq(float? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// The minimum length a suggest text term must have in order to be included. - /// - /// - public TermSuggesterDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - /// - /// - /// The number of minimal prefix characters that must match in order be a candidate for suggestions. - /// Increasing this number improves spellcheck performance. - /// - /// - public TermSuggesterDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Sets the maximum number of suggestions to be retrieved from each individual shard. - /// - /// - public TermSuggesterDescriptor ShardSize(int? shardSize) - { - ShardSizeValue = shardSize; - return Self; - } - - /// - /// - /// The maximum corrections to be returned per suggest text token. - /// - /// - public TermSuggesterDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - /// - /// - /// Defines how suggestions should be sorted per suggest text term. - /// - /// - public TermSuggesterDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// The string distance implementation to use for comparing how similar suggested terms are. - /// - /// - public TermSuggesterDescriptor StringDistance(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? stringDistance) - { - StringDistanceValue = stringDistance; - return Self; - } - - /// - /// - /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. - /// - /// - public TermSuggesterDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) - { - SuggestModeValue = suggestMode; - return Self; - } - - /// - /// - /// The suggest text. - /// Needs to be set globally or per suggestion. - /// - /// - public TermSuggesterDescriptor Text(string? text) - { - TextValue = text; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LowercaseTermsValue.HasValue) - { - writer.WritePropertyName("lowercase_terms"); - writer.WriteBooleanValue(LowercaseTermsValue.Value); - } - - if (MaxEditsValue.HasValue) - { - writer.WritePropertyName("max_edits"); - writer.WriteNumberValue(MaxEditsValue.Value); - } - - if (MaxInspectionsValue.HasValue) - { - writer.WritePropertyName("max_inspections"); - writer.WriteNumberValue(MaxInspectionsValue.Value); - } - - if (MaxTermFreqValue.HasValue) - { - writer.WritePropertyName("max_term_freq"); - writer.WriteNumberValue(MaxTermFreqValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (ShardSizeValue.HasValue) - { - writer.WritePropertyName("shard_size"); - writer.WriteNumberValue(ShardSizeValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StringDistanceValue is not null) - { - writer.WritePropertyName("string_distance"); - JsonSerializer.Serialize(writer, StringDistanceValue, options); - } - - if (SuggestModeValue is not null) - { - writer.WritePropertyName("suggest_mode"); - JsonSerializer.Serialize(writer, SuggestModeValue, options); - } - - if (!string.IsNullOrEmpty(TextValue)) - { - writer.WritePropertyName("text"); - writer.WriteStringValue(TextValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TotalHits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TotalHits.g.cs deleted file mode 100644 index 38d3ab3e4a1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TotalHits.g.cs +++ /dev/null @@ -1,36 +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.Core.Search; - -public sealed partial class TotalHits -{ - [JsonInclude, JsonPropertyName("relation")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TotalHitsRelation Relation { get; init; } - [JsonInclude, JsonPropertyName("value")] - public long Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfig.g.cs deleted file mode 100644 index f790c8e2665..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfig.g.cs +++ /dev/null @@ -1,47 +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.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.Core.Search; - -/// -/// -/// Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered. -/// -/// -public sealed partial class SourceConfig : Union -{ - public SourceConfig(bool Fetch) : base(Fetch) - { - } - - public SourceConfig(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceFilter Filter) : base(Filter) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfigParam.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfigParam.g.cs deleted file mode 100644 index 762d51fe35e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/SourceConfigParam.g.cs +++ /dev/null @@ -1,48 +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.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.Core.Search; - -/// -/// -/// Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered. -/// Used as a query parameter along with the _source_includes and _source_excludes parameters. -/// -/// -public sealed partial class SourceConfigParam : Union -{ - public SourceConfigParam(bool Fetch) : base(Fetch) - { - } - - public SourceConfigParam(Elastic.Clients.Elasticsearch.Serverless.Fields Fields) : base(Fields) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs deleted file mode 100644 index a8b2719db6b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs +++ /dev/null @@ -1,38 +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.Core.TermVectors; - -public sealed partial class FieldStatistics -{ - [JsonInclude, JsonPropertyName("doc_count")] - public int DocCount { get; init; } - [JsonInclude, JsonPropertyName("sum_doc_freq")] - public long SumDocFreq { get; init; } - [JsonInclude, JsonPropertyName("sum_ttf")] - public long SumTtf { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs deleted file mode 100644 index 29950c455ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs +++ /dev/null @@ -1,235 +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.Core.TermVectors; - -public sealed partial class Filter -{ - /// - /// - /// Ignore words which occur in more than this many docs. - /// Defaults to unbounded. - /// - /// - [JsonInclude, JsonPropertyName("max_doc_freq")] - public int? MaxDocFreq { get; set; } - - /// - /// - /// Maximum number of terms that must be returned per field. - /// - /// - [JsonInclude, JsonPropertyName("max_num_terms")] - public int? MaxNumTerms { get; set; } - - /// - /// - /// Ignore words with more than this frequency in the source doc. - /// Defaults to unbounded. - /// - /// - [JsonInclude, JsonPropertyName("max_term_freq")] - public int? MaxTermFreq { get; set; } - - /// - /// - /// The maximum word length above which words will be ignored. - /// Defaults to unbounded. - /// - /// - [JsonInclude, JsonPropertyName("max_word_length")] - public int? MaxWordLength { get; set; } - - /// - /// - /// Ignore terms which do not occur in at least this many docs. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_freq")] - public int? MinDocFreq { get; set; } - - /// - /// - /// Ignore words with less than this frequency in the source doc. - /// - /// - [JsonInclude, JsonPropertyName("min_term_freq")] - public int? MinTermFreq { get; set; } - - /// - /// - /// The minimum word length below which words will be ignored. - /// - /// - [JsonInclude, JsonPropertyName("min_word_length")] - public int? MinWordLength { get; set; } -} - -public sealed partial class FilterDescriptor : SerializableDescriptor -{ - internal FilterDescriptor(Action configure) => configure.Invoke(this); - - public FilterDescriptor() : base() - { - } - - private int? MaxDocFreqValue { get; set; } - private int? MaxNumTermsValue { get; set; } - private int? MaxTermFreqValue { get; set; } - private int? MaxWordLengthValue { get; set; } - private int? MinDocFreqValue { get; set; } - private int? MinTermFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - - /// - /// - /// Ignore words which occur in more than this many docs. - /// Defaults to unbounded. - /// - /// - public FilterDescriptor MaxDocFreq(int? maxDocFreq) - { - MaxDocFreqValue = maxDocFreq; - return Self; - } - - /// - /// - /// Maximum number of terms that must be returned per field. - /// - /// - public FilterDescriptor MaxNumTerms(int? maxNumTerms) - { - MaxNumTermsValue = maxNumTerms; - return Self; - } - - /// - /// - /// Ignore words with more than this frequency in the source doc. - /// Defaults to unbounded. - /// - /// - public FilterDescriptor MaxTermFreq(int? maxTermFreq) - { - MaxTermFreqValue = maxTermFreq; - return Self; - } - - /// - /// - /// The maximum word length above which words will be ignored. - /// Defaults to unbounded. - /// - /// - public FilterDescriptor MaxWordLength(int? maxWordLength) - { - MaxWordLengthValue = maxWordLength; - return Self; - } - - /// - /// - /// Ignore terms which do not occur in at least this many docs. - /// - /// - public FilterDescriptor MinDocFreq(int? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// Ignore words with less than this frequency in the source doc. - /// - /// - public FilterDescriptor MinTermFreq(int? minTermFreq) - { - MinTermFreqValue = minTermFreq; - return Self; - } - - /// - /// - /// The minimum word length below which words will be ignored. - /// - /// - public FilterDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxDocFreqValue.HasValue) - { - writer.WritePropertyName("max_doc_freq"); - writer.WriteNumberValue(MaxDocFreqValue.Value); - } - - if (MaxNumTermsValue.HasValue) - { - writer.WritePropertyName("max_num_terms"); - writer.WriteNumberValue(MaxNumTermsValue.Value); - } - - if (MaxTermFreqValue.HasValue) - { - writer.WritePropertyName("max_term_freq"); - writer.WriteNumberValue(MaxTermFreqValue.Value); - } - - if (MaxWordLengthValue.HasValue) - { - writer.WritePropertyName("max_word_length"); - writer.WriteNumberValue(MaxWordLengthValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinTermFreqValue.HasValue) - { - writer.WritePropertyName("min_term_freq"); - writer.WriteNumberValue(MinTermFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Term.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Term.g.cs deleted file mode 100644 index 9c60187ed6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Term.g.cs +++ /dev/null @@ -1,42 +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.Core.TermVectors; - -public sealed partial class Term -{ - [JsonInclude, JsonPropertyName("doc_freq")] - public int? DocFreq { get; init; } - [JsonInclude, JsonPropertyName("score")] - public double? Score { get; init; } - [JsonInclude, JsonPropertyName("term_freq")] - public int TermFreq { get; init; } - [JsonInclude, JsonPropertyName("tokens")] - public IReadOnlyCollection? Tokens { get; init; } - [JsonInclude, JsonPropertyName("ttf")] - public int? Ttf { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 46823cb9faa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/TermVector.g.cs +++ /dev/null @@ -1,36 +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.Core.TermVectors; - -public sealed partial class TermVector -{ - [JsonInclude, JsonPropertyName("field_statistics")] - 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/Core/TermVectors/Token.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Token.g.cs deleted file mode 100644 index fdcff79c408..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Token.g.cs +++ /dev/null @@ -1,40 +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.Core.TermVectors; - -public sealed partial class Token -{ - [JsonInclude, JsonPropertyName("end_offset")] - public int? EndOffset { get; init; } - [JsonInclude, JsonPropertyName("payload")] - public string? Payload { get; init; } - [JsonInclude, JsonPropertyName("position")] - public int Position { get; init; } - [JsonInclude, JsonPropertyName("start_offset")] - public int? StartOffset { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TrackHits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TrackHits.g.cs deleted file mode 100644 index 58cf0283a76..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TrackHits.g.cs +++ /dev/null @@ -1,50 +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.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.Core.Search; - -/// -/// -/// Number of hits matching the query to count accurately. If true, the exact -/// number of hits is returned at the cost of some performance. If false, the -/// response does not include the total number of hits matching the query. -/// Defaults to 10,000 hits. -/// -/// -public sealed partial class TrackHits : Union -{ - public TrackHits(bool Enabled) : base(Enabled) - { - } - - public TrackHits(int Count) : base(Count) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs deleted file mode 100644 index 1585b66f55a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs +++ /dev/null @@ -1,46 +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.Core.UpdateByQueryRethrottle; - -public sealed partial class UpdateByQueryRethrottleNode -{ - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary Attributes { get; init; } - [JsonInclude, JsonPropertyName("host")] - public string Host { get; init; } - [JsonInclude, JsonPropertyName("ip")] - public string Ip { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - [JsonInclude, JsonPropertyName("tasks")] - public IReadOnlyDictionary Tasks { get; init; } - [JsonInclude, JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/DocStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/DocStats.g.cs deleted file mode 100644 index dd91a5446a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/DocStats.g.cs +++ /dev/null @@ -1,50 +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 DocStats -{ - /// - /// - /// Total number of non-deleted documents across all primary shards assigned to selected nodes. - /// This number is based on documents in Lucene segments and may include documents from nested fields. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// Total number of deleted documents across all primary shards assigned to selected nodes. - /// This number is based on documents in Lucene segments. - /// Elasticsearch reclaims the disk space of deleted Lucene documents when a segment is merged. - /// - /// - [JsonInclude, JsonPropertyName("deleted")] - public long? Deleted { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ElasticsearchVersionInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ElasticsearchVersionInfo.g.cs deleted file mode 100644 index c596d5737c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ElasticsearchVersionInfo.g.cs +++ /dev/null @@ -1,50 +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 ElasticsearchVersionInfo -{ - [JsonInclude, JsonPropertyName("build_date")] - public DateTimeOffset BuildDate { get; init; } - [JsonInclude, JsonPropertyName("build_flavor")] - public string BuildFlavor { get; init; } - [JsonInclude, JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - [JsonInclude, JsonPropertyName("build_snapshot")] - public bool BuildSnapshot { get; init; } - [JsonInclude, JsonPropertyName("build_type")] - public string BuildType { get; init; } - [JsonInclude, JsonPropertyName("lucene_version")] - public string LuceneVersion { get; init; } - [JsonInclude, JsonPropertyName("minimum_index_compatibility_version")] - public string MinimumIndexCompatibilityVersion { get; init; } - [JsonInclude, JsonPropertyName("minimum_wire_compatibility_version")] - public string MinimumWireCompatibilityVersion { get; init; } - [JsonInclude, JsonPropertyName("number")] - public string Number { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/EmptyObject.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/EmptyObject.g.cs deleted file mode 100644 index aea9c1b1871..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/EmptyObject.g.cs +++ /dev/null @@ -1,57 +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; - -/// -/// -/// For empty Class assignments -/// -/// -public sealed partial class EmptyObject -{ -} - -/// -/// -/// For empty Class assignments -/// -/// -public sealed partial class EmptyObjectDescriptor : SerializableDescriptor -{ - internal EmptyObjectDescriptor(Action configure) => configure.Invoke(this); - - public EmptyObjectDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs deleted file mode 100644 index 333b77ee818..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CacheStats.g.cs +++ /dev/null @@ -1,48 +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.Enrich; - -public sealed partial class CacheStats -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("evictions")] - public int Evictions { get; init; } - [JsonInclude, JsonPropertyName("hits")] - public int Hits { get; init; } - [JsonInclude, JsonPropertyName("hits_time_in_millis")] - public long HitsTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("misses")] - public int Misses { get; init; } - [JsonInclude, JsonPropertyName("misses_time_in_millis")] - public long MissesTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CoordinatorStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CoordinatorStats.g.cs deleted file mode 100644 index 5c7cbf47fe9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/CoordinatorStats.g.cs +++ /dev/null @@ -1,42 +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.Enrich; - -public sealed partial class CoordinatorStats -{ - [JsonInclude, JsonPropertyName("executed_searches_total")] - public long ExecutedSearchesTotal { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("queue_size")] - public int QueueSize { get; init; } - [JsonInclude, JsonPropertyName("remote_requests_current")] - public int RemoteRequestsCurrent { get; init; } - [JsonInclude, JsonPropertyName("remote_requests_total")] - public long RemoteRequestsTotal { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichPolicy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichPolicy.g.cs deleted file mode 100644 index fdac64dac40..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichPolicy.g.cs +++ /dev/null @@ -1,293 +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.Enrich; - -public sealed partial class EnrichPolicy -{ - [JsonInclude, JsonPropertyName("elasticsearch_version")] - public string? ElasticsearchVersion { get; set; } - [JsonInclude, JsonPropertyName("enrich_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields EnrichFields { get; set; } - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices Indices { get; set; } - [JsonInclude, JsonPropertyName("match_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field MatchField { get; set; } - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } -} - -public sealed partial class EnrichPolicyDescriptor : SerializableDescriptor> -{ - internal EnrichPolicyDescriptor(Action> configure) => configure.Invoke(this); - - public EnrichPolicyDescriptor() : base() - { - } - - private string? ElasticsearchVersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields EnrichFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field MatchFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - - public EnrichPolicyDescriptor ElasticsearchVersion(string? elasticsearchVersion) - { - ElasticsearchVersionValue = elasticsearchVersion; - return Self; - } - - public EnrichPolicyDescriptor EnrichFields(Elastic.Clients.Elasticsearch.Serverless.Fields enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public EnrichPolicyDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - public EnrichPolicyDescriptor MatchField(Elastic.Clients.Elasticsearch.Serverless.Field matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public EnrichPolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public EnrichPolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public EnrichPolicyDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - public EnrichPolicyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public EnrichPolicyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public EnrichPolicyDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ElasticsearchVersionValue)) - { - writer.WritePropertyName("elasticsearch_version"); - writer.WriteStringValue(ElasticsearchVersionValue); - } - - writer.WritePropertyName("enrich_fields"); - JsonSerializer.Serialize(writer, EnrichFieldsValue, options); - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - writer.WritePropertyName("match_field"); - JsonSerializer.Serialize(writer, MatchFieldValue, options); - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class EnrichPolicyDescriptor : SerializableDescriptor -{ - internal EnrichPolicyDescriptor(Action configure) => configure.Invoke(this); - - public EnrichPolicyDescriptor() : base() - { - } - - private string? ElasticsearchVersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields EnrichFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field MatchFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - public EnrichPolicyDescriptor ElasticsearchVersion(string? elasticsearchVersion) - { - ElasticsearchVersionValue = elasticsearchVersion; - return Self; - } - - public EnrichPolicyDescriptor EnrichFields(Elastic.Clients.Elasticsearch.Serverless.Fields enrichFields) - { - EnrichFieldsValue = enrichFields; - return Self; - } - - public EnrichPolicyDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - public EnrichPolicyDescriptor MatchField(Elastic.Clients.Elasticsearch.Serverless.Field matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public EnrichPolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public EnrichPolicyDescriptor MatchField(Expression> matchField) - { - MatchFieldValue = matchField; - return Self; - } - - public EnrichPolicyDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - public EnrichPolicyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public EnrichPolicyDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public EnrichPolicyDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ElasticsearchVersionValue)) - { - writer.WritePropertyName("elasticsearch_version"); - writer.WriteStringValue(ElasticsearchVersionValue); - } - - writer.WritePropertyName("enrich_fields"); - JsonSerializer.Serialize(writer, EnrichFieldsValue, options); - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - writer.WritePropertyName("match_field"); - JsonSerializer.Serialize(writer, MatchFieldValue, options); - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichSummary.g.cs deleted file mode 100644 index 2c54b1e3465..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/EnrichSummary.g.cs +++ /dev/null @@ -1,34 +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.Enrich; - -public sealed partial class EnrichSummary -{ - [JsonInclude, JsonPropertyName("config")] - public KeyValuePair Config { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs deleted file mode 100644 index 9f956d48fd5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs +++ /dev/null @@ -1,34 +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.Enrich; - -public sealed partial class ExecuteEnrichPolicyStatus -{ - [JsonInclude, JsonPropertyName("phase")] - public Elastic.Clients.Elasticsearch.Serverless.Enrich.EnrichPolicyPhase Phase { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecutingPolicy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecutingPolicy.g.cs deleted file mode 100644 index 84cfab7076b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enrich/ExecutingPolicy.g.cs +++ /dev/null @@ -1,36 +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.Enrich; - -public sealed partial class ExecutingPolicy -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("task")] - public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfo Task { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Aggregations.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Aggregations.g.cs deleted file mode 100644 index a60560bba8e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Aggregations.g.cs +++ /dev/null @@ -1,880 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; - -[JsonConverter(typeof(CalendarIntervalConverter))] -public enum CalendarInterval -{ - [EnumMember(Value = "year")] - Year, - [EnumMember(Value = "week")] - Week, - [EnumMember(Value = "second")] - Second, - [EnumMember(Value = "quarter")] - Quarter, - [EnumMember(Value = "month")] - Month, - [EnumMember(Value = "minute")] - Minute, - [EnumMember(Value = "hour")] - Hour, - [EnumMember(Value = "day")] - Day -} - -internal sealed class CalendarIntervalConverter : JsonConverter -{ - public override CalendarInterval Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "year": - case "1y": - return CalendarInterval.Year; - case "week": - case "1w": - return CalendarInterval.Week; - case "second": - case "1s": - return CalendarInterval.Second; - case "quarter": - case "1q": - return CalendarInterval.Quarter; - case "month": - case "1M": - return CalendarInterval.Month; - case "minute": - case "1m": - return CalendarInterval.Minute; - case "hour": - case "1h": - return CalendarInterval.Hour; - case "day": - case "1d": - return CalendarInterval.Day; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, CalendarInterval value, JsonSerializerOptions options) - { - switch (value) - { - case CalendarInterval.Year: - writer.WriteStringValue("year"); - return; - case CalendarInterval.Week: - writer.WriteStringValue("week"); - return; - case CalendarInterval.Second: - writer.WriteStringValue("second"); - return; - case CalendarInterval.Quarter: - writer.WriteStringValue("quarter"); - return; - case CalendarInterval.Month: - writer.WriteStringValue("month"); - return; - case CalendarInterval.Minute: - writer.WriteStringValue("minute"); - return; - case CalendarInterval.Hour: - writer.WriteStringValue("hour"); - return; - case CalendarInterval.Day: - writer.WriteStringValue("day"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(CardinalityExecutionModeConverter))] -public enum CardinalityExecutionMode -{ - /// - /// - /// Run the aggregation by using segment ordinal values and resolving those values after each segment. - /// - /// - [EnumMember(Value = "segment_ordinals")] - SegmentOrdinals, - /// - /// - /// Heuristic-based mode, default in Elasticsearch 8.4 and later. - /// - /// - [EnumMember(Value = "save_time_heuristic")] - SaveTimeHeuristic, - /// - /// - /// Heuristic-based mode, default in Elasticsearch 8.3 and earlier. - /// - /// - [EnumMember(Value = "save_memory_heuristic")] - SaveMemoryHeuristic, - /// - /// - /// Run the aggregation by using global ordinals of the field and resolving those values after finishing a shard. - /// - /// - [EnumMember(Value = "global_ordinals")] - GlobalOrdinals, - /// - /// - /// Run the aggregation by using field values directly. - /// - /// - [EnumMember(Value = "direct")] - Direct -} - -internal sealed class CardinalityExecutionModeConverter : JsonConverter -{ - public override CardinalityExecutionMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "segment_ordinals": - return CardinalityExecutionMode.SegmentOrdinals; - case "save_time_heuristic": - return CardinalityExecutionMode.SaveTimeHeuristic; - case "save_memory_heuristic": - return CardinalityExecutionMode.SaveMemoryHeuristic; - case "global_ordinals": - return CardinalityExecutionMode.GlobalOrdinals; - case "direct": - return CardinalityExecutionMode.Direct; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, CardinalityExecutionMode value, JsonSerializerOptions options) - { - switch (value) - { - case CardinalityExecutionMode.SegmentOrdinals: - writer.WriteStringValue("segment_ordinals"); - return; - case CardinalityExecutionMode.SaveTimeHeuristic: - writer.WriteStringValue("save_time_heuristic"); - return; - case CardinalityExecutionMode.SaveMemoryHeuristic: - writer.WriteStringValue("save_memory_heuristic"); - return; - case CardinalityExecutionMode.GlobalOrdinals: - writer.WriteStringValue("global_ordinals"); - return; - case CardinalityExecutionMode.Direct: - writer.WriteStringValue("direct"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GapPolicyConverter))] -public enum GapPolicy -{ - /// - /// - /// Treats missing data as if the bucket does not exist. It will skip the bucket and - /// continue calculating using the next available value. - /// - /// - [EnumMember(Value = "skip")] - Skip, - /// - /// - /// Similar to skip, except if the metric provides a non-null, non-NaN value this value is used, - /// otherwise the empty bucket is skipped. - /// - /// - [EnumMember(Value = "keep_values")] - KeepValues, - /// - /// - /// Replace missing values with a zero (0) and pipeline aggregation computation will proceed as normal. - /// - /// - [EnumMember(Value = "insert_zeros")] - InsertZeros -} - -internal sealed class GapPolicyConverter : JsonConverter -{ - public override GapPolicy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "skip": - return GapPolicy.Skip; - case "keep_values": - return GapPolicy.KeepValues; - case "insert_zeros": - return GapPolicy.InsertZeros; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GapPolicy value, JsonSerializerOptions options) - { - switch (value) - { - case GapPolicy.Skip: - writer.WriteStringValue("skip"); - return; - case GapPolicy.KeepValues: - writer.WriteStringValue("keep_values"); - return; - case GapPolicy.InsertZeros: - writer.WriteStringValue("insert_zeros"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(MinimumIntervalConverter))] -public enum MinimumInterval -{ - [EnumMember(Value = "year")] - Year, - [EnumMember(Value = "second")] - Second, - [EnumMember(Value = "month")] - Month, - [EnumMember(Value = "minute")] - Minute, - [EnumMember(Value = "hour")] - Hour, - [EnumMember(Value = "day")] - Day -} - -internal sealed class MinimumIntervalConverter : JsonConverter -{ - public override MinimumInterval Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "year": - return MinimumInterval.Year; - case "second": - return MinimumInterval.Second; - case "month": - return MinimumInterval.Month; - case "minute": - return MinimumInterval.Minute; - case "hour": - return MinimumInterval.Hour; - case "day": - return MinimumInterval.Day; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, MinimumInterval value, JsonSerializerOptions options) - { - switch (value) - { - case MinimumInterval.Year: - writer.WriteStringValue("year"); - return; - case MinimumInterval.Second: - writer.WriteStringValue("second"); - return; - case MinimumInterval.Month: - writer.WriteStringValue("month"); - return; - case MinimumInterval.Minute: - writer.WriteStringValue("minute"); - return; - case MinimumInterval.Hour: - writer.WriteStringValue("hour"); - return; - case MinimumInterval.Day: - writer.WriteStringValue("day"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(MissingOrderConverter))] -public enum MissingOrder -{ - [EnumMember(Value = "last")] - Last, - [EnumMember(Value = "first")] - First, - [EnumMember(Value = "default")] - Default -} - -internal sealed class MissingOrderConverter : JsonConverter -{ - public override MissingOrder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "last": - return MissingOrder.Last; - case "first": - return MissingOrder.First; - case "default": - return MissingOrder.Default; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, MissingOrder value, JsonSerializerOptions options) - { - switch (value) - { - case MissingOrder.Last: - writer.WriteStringValue("last"); - return; - case MissingOrder.First: - writer.WriteStringValue("first"); - return; - case MissingOrder.Default: - writer.WriteStringValue("default"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(NormalizeMethodConverter))] -public enum NormalizeMethod -{ - /// - /// - /// This method normalizes such that each value represents how far it is from the mean relative to the standard deviation. - /// - /// - [EnumMember(Value = "z-score")] - ZScore, - /// - /// - /// This method normalizes such that each value is exponentiated and relative to the sum of the exponents of the original values. - /// - /// - [EnumMember(Value = "softmax")] - Softmax, - /// - /// - /// This method rescales the data such that the minimum number is 0, and the maximum number is 100, with the rest normalized linearly in-between. - /// - /// - [EnumMember(Value = "rescale_0_100")] - Rescale0100, - /// - /// - /// This method rescales the data such that the minimum number is 0, and the maximum number is 1, with the rest normalized linearly in-between. - /// - /// - [EnumMember(Value = "rescale_0_1")] - Rescale01, - /// - /// - /// This method normalizes each value so that it represents a percentage of the total sum it attributes to. - /// - /// - [EnumMember(Value = "percent_of_sum")] - PercentOfSum, - /// - /// - /// This method normalizes such that each value is normalized by how much it differs from the average. - /// - /// - [EnumMember(Value = "mean")] - Mean -} - -internal sealed class NormalizeMethodConverter : JsonConverter -{ - public override NormalizeMethod Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "z-score": - return NormalizeMethod.ZScore; - case "softmax": - return NormalizeMethod.Softmax; - case "rescale_0_100": - return NormalizeMethod.Rescale0100; - case "rescale_0_1": - return NormalizeMethod.Rescale01; - case "percent_of_sum": - return NormalizeMethod.PercentOfSum; - case "mean": - return NormalizeMethod.Mean; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, NormalizeMethod value, JsonSerializerOptions options) - { - switch (value) - { - case NormalizeMethod.ZScore: - writer.WriteStringValue("z-score"); - return; - case NormalizeMethod.Softmax: - writer.WriteStringValue("softmax"); - return; - case NormalizeMethod.Rescale0100: - writer.WriteStringValue("rescale_0_100"); - return; - case NormalizeMethod.Rescale01: - writer.WriteStringValue("rescale_0_1"); - return; - case NormalizeMethod.PercentOfSum: - writer.WriteStringValue("percent_of_sum"); - return; - case NormalizeMethod.Mean: - writer.WriteStringValue("mean"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(RateModeConverter))] -public enum RateMode -{ - /// - /// - /// Uses the number of values of the field. - /// - /// - [EnumMember(Value = "value_count")] - ValueCount, - /// - /// - /// Calculates the sum of all values of the field. - /// - /// - [EnumMember(Value = "sum")] - Sum -} - -internal sealed class RateModeConverter : JsonConverter -{ - public override RateMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "value_count": - return RateMode.ValueCount; - case "sum": - return RateMode.Sum; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RateMode value, JsonSerializerOptions options) - { - switch (value) - { - case RateMode.ValueCount: - writer.WriteStringValue("value_count"); - return; - case RateMode.Sum: - writer.WriteStringValue("sum"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SamplerAggregationExecutionHintConverter))] -public enum SamplerAggregationExecutionHint -{ - /// - /// - /// Hold field values directly. - /// - /// - [EnumMember(Value = "map")] - Map, - /// - /// - /// Hold ordinals of the field as determined by the Lucene index. - /// - /// - [EnumMember(Value = "global_ordinals")] - GlobalOrdinals, - /// - /// - /// Hold hashes of the field values - with potential for hash collisions. - /// - /// - [EnumMember(Value = "bytes_hash")] - BytesHash -} - -internal sealed class SamplerAggregationExecutionHintConverter : JsonConverter -{ - public override SamplerAggregationExecutionHint Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "map": - return SamplerAggregationExecutionHint.Map; - case "global_ordinals": - return SamplerAggregationExecutionHint.GlobalOrdinals; - case "bytes_hash": - return SamplerAggregationExecutionHint.BytesHash; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SamplerAggregationExecutionHint value, JsonSerializerOptions options) - { - switch (value) - { - case SamplerAggregationExecutionHint.Map: - writer.WriteStringValue("map"); - return; - case SamplerAggregationExecutionHint.GlobalOrdinals: - writer.WriteStringValue("global_ordinals"); - return; - case SamplerAggregationExecutionHint.BytesHash: - writer.WriteStringValue("bytes_hash"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TermsAggregationCollectModeConverter))] -public enum TermsAggregationCollectMode -{ - /// - /// - /// Expands all branches of the aggregation tree in one depth-first pass, before any pruning occurs. - /// - /// - [EnumMember(Value = "depth_first")] - DepthFirst, - /// - /// - /// Caches the set of documents that fall into the uppermost buckets for subsequent replay. - /// - /// - [EnumMember(Value = "breadth_first")] - BreadthFirst -} - -internal sealed class TermsAggregationCollectModeConverter : JsonConverter -{ - public override TermsAggregationCollectMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "depth_first": - return TermsAggregationCollectMode.DepthFirst; - case "breadth_first": - return TermsAggregationCollectMode.BreadthFirst; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TermsAggregationCollectMode value, JsonSerializerOptions options) - { - switch (value) - { - case TermsAggregationCollectMode.DepthFirst: - writer.WriteStringValue("depth_first"); - return; - case TermsAggregationCollectMode.BreadthFirst: - writer.WriteStringValue("breadth_first"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TermsAggregationExecutionHintConverter))] -public enum TermsAggregationExecutionHint -{ - [EnumMember(Value = "map")] - Map, - [EnumMember(Value = "global_ordinals_low_cardinality")] - GlobalOrdinalsLowCardinality, - [EnumMember(Value = "global_ordinals_hash")] - GlobalOrdinalsHash, - [EnumMember(Value = "global_ordinals")] - GlobalOrdinals -} - -internal sealed class TermsAggregationExecutionHintConverter : JsonConverter -{ - public override TermsAggregationExecutionHint Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "map": - return TermsAggregationExecutionHint.Map; - case "global_ordinals_low_cardinality": - return TermsAggregationExecutionHint.GlobalOrdinalsLowCardinality; - case "global_ordinals_hash": - return TermsAggregationExecutionHint.GlobalOrdinalsHash; - case "global_ordinals": - return TermsAggregationExecutionHint.GlobalOrdinals; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TermsAggregationExecutionHint value, JsonSerializerOptions options) - { - switch (value) - { - case TermsAggregationExecutionHint.Map: - writer.WriteStringValue("map"); - return; - case TermsAggregationExecutionHint.GlobalOrdinalsLowCardinality: - writer.WriteStringValue("global_ordinals_low_cardinality"); - return; - case TermsAggregationExecutionHint.GlobalOrdinalsHash: - writer.WriteStringValue("global_ordinals_hash"); - return; - case TermsAggregationExecutionHint.GlobalOrdinals: - writer.WriteStringValue("global_ordinals"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TTestTypeConverter))] -public enum TTestType -{ - /// - /// - /// Performs paired t-test. - /// - /// - [EnumMember(Value = "paired")] - Paired, - /// - /// - /// Performs two-sample equal variance test. - /// - /// - [EnumMember(Value = "homoscedastic")] - Homoscedastic, - /// - /// - /// Performs two-sample unequal variance test. - /// - /// - [EnumMember(Value = "heteroscedastic")] - Heteroscedastic -} - -internal sealed class TTestTypeConverter : JsonConverter -{ - public override TTestType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "paired": - return TTestType.Paired; - case "homoscedastic": - return TTestType.Homoscedastic; - case "heteroscedastic": - return TTestType.Heteroscedastic; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TTestType value, JsonSerializerOptions options) - { - switch (value) - { - case TTestType.Paired: - writer.WriteStringValue("paired"); - return; - case TTestType.Homoscedastic: - writer.WriteStringValue("homoscedastic"); - return; - case TTestType.Heteroscedastic: - writer.WriteStringValue("heteroscedastic"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ValueTypeConverter))] -public enum ValueType -{ - [EnumMember(Value = "string")] - String, - [EnumMember(Value = "numeric")] - Numeric, - [EnumMember(Value = "number")] - Number, - [EnumMember(Value = "long")] - Long, - [EnumMember(Value = "ip")] - Ip, - [EnumMember(Value = "geo_point")] - GeoPoint, - [EnumMember(Value = "double")] - Double, - [EnumMember(Value = "date_nanos")] - DateNanos, - [EnumMember(Value = "date")] - Date, - [EnumMember(Value = "boolean")] - Boolean -} - -internal sealed class ValueTypeConverter : JsonConverter -{ - public override ValueType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "string": - return ValueType.String; - case "numeric": - return ValueType.Numeric; - case "number": - return ValueType.Number; - case "long": - return ValueType.Long; - case "ip": - return ValueType.Ip; - case "geo_point": - return ValueType.GeoPoint; - case "double": - return ValueType.Double; - case "date_nanos": - return ValueType.DateNanos; - case "date": - return ValueType.Date; - case "boolean": - return ValueType.Boolean; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ValueType value, JsonSerializerOptions options) - { - switch (value) - { - case ValueType.String: - writer.WriteStringValue("string"); - return; - case ValueType.Numeric: - writer.WriteStringValue("numeric"); - return; - case ValueType.Number: - writer.WriteStringValue("number"); - return; - case ValueType.Long: - writer.WriteStringValue("long"); - return; - case ValueType.Ip: - writer.WriteStringValue("ip"); - return; - case ValueType.GeoPoint: - writer.WriteStringValue("geo_point"); - return; - case ValueType.Double: - writer.WriteStringValue("double"); - return; - case ValueType.DateNanos: - writer.WriteStringValue("date_nanos"); - return; - case ValueType.Date: - writer.WriteStringValue("date"); - return; - case ValueType.Boolean: - writer.WriteStringValue("boolean"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Analysis.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Analysis.g.cs deleted file mode 100644 index 3cc97f3f7a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Analysis.g.cs +++ /dev/null @@ -1,1457 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Analysis; - -[JsonConverter(typeof(DelimitedPayloadEncodingConverter))] -public enum DelimitedPayloadEncoding -{ - [EnumMember(Value = "int")] - Integer, - [EnumMember(Value = "identity")] - Identity, - [EnumMember(Value = "float")] - Float -} - -internal sealed class DelimitedPayloadEncodingConverter : JsonConverter -{ - public override DelimitedPayloadEncoding Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "int": - return DelimitedPayloadEncoding.Integer; - case "identity": - return DelimitedPayloadEncoding.Identity; - case "float": - return DelimitedPayloadEncoding.Float; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DelimitedPayloadEncoding value, JsonSerializerOptions options) - { - switch (value) - { - case DelimitedPayloadEncoding.Integer: - writer.WriteStringValue("int"); - return; - case DelimitedPayloadEncoding.Identity: - writer.WriteStringValue("identity"); - return; - case DelimitedPayloadEncoding.Float: - writer.WriteStringValue("float"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(EdgeNGramSideConverter))] -public enum EdgeNGramSide -{ - [EnumMember(Value = "front")] - Front, - [EnumMember(Value = "back")] - Back -} - -internal sealed class EdgeNGramSideConverter : JsonConverter -{ - public override EdgeNGramSide Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "front": - return EdgeNGramSide.Front; - case "back": - return EdgeNGramSide.Back; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, EdgeNGramSide value, JsonSerializerOptions options) - { - switch (value) - { - case EdgeNGramSide.Front: - writer.WriteStringValue("front"); - return; - case EdgeNGramSide.Back: - writer.WriteStringValue("back"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuCollationAlternateConverter))] -public enum IcuCollationAlternate -{ - [EnumMember(Value = "shifted")] - Shifted, - [EnumMember(Value = "non-ignorable")] - NonIgnorable -} - -internal sealed class IcuCollationAlternateConverter : JsonConverter -{ - public override IcuCollationAlternate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "shifted": - return IcuCollationAlternate.Shifted; - case "non-ignorable": - return IcuCollationAlternate.NonIgnorable; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuCollationAlternate value, JsonSerializerOptions options) - { - switch (value) - { - case IcuCollationAlternate.Shifted: - writer.WriteStringValue("shifted"); - return; - case IcuCollationAlternate.NonIgnorable: - writer.WriteStringValue("non-ignorable"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuCollationCaseFirstConverter))] -public enum IcuCollationCaseFirst -{ - [EnumMember(Value = "upper")] - Upper, - [EnumMember(Value = "lower")] - Lower -} - -internal sealed class IcuCollationCaseFirstConverter : JsonConverter -{ - public override IcuCollationCaseFirst Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "upper": - return IcuCollationCaseFirst.Upper; - case "lower": - return IcuCollationCaseFirst.Lower; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuCollationCaseFirst value, JsonSerializerOptions options) - { - switch (value) - { - case IcuCollationCaseFirst.Upper: - writer.WriteStringValue("upper"); - return; - case IcuCollationCaseFirst.Lower: - writer.WriteStringValue("lower"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuCollationDecompositionConverter))] -public enum IcuCollationDecomposition -{ - [EnumMember(Value = "no")] - No, - [EnumMember(Value = "identical")] - Identical -} - -internal sealed class IcuCollationDecompositionConverter : JsonConverter -{ - public override IcuCollationDecomposition Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "no": - return IcuCollationDecomposition.No; - case "identical": - return IcuCollationDecomposition.Identical; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuCollationDecomposition value, JsonSerializerOptions options) - { - switch (value) - { - case IcuCollationDecomposition.No: - writer.WriteStringValue("no"); - return; - case IcuCollationDecomposition.Identical: - writer.WriteStringValue("identical"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuCollationStrengthConverter))] -public enum IcuCollationStrength -{ - [EnumMember(Value = "tertiary")] - Tertiary, - [EnumMember(Value = "secondary")] - Secondary, - [EnumMember(Value = "quaternary")] - Quaternary, - [EnumMember(Value = "primary")] - Primary, - [EnumMember(Value = "identical")] - Identical -} - -internal sealed class IcuCollationStrengthConverter : JsonConverter -{ - public override IcuCollationStrength Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "tertiary": - return IcuCollationStrength.Tertiary; - case "secondary": - return IcuCollationStrength.Secondary; - case "quaternary": - return IcuCollationStrength.Quaternary; - case "primary": - return IcuCollationStrength.Primary; - case "identical": - return IcuCollationStrength.Identical; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuCollationStrength value, JsonSerializerOptions options) - { - switch (value) - { - case IcuCollationStrength.Tertiary: - writer.WriteStringValue("tertiary"); - return; - case IcuCollationStrength.Secondary: - writer.WriteStringValue("secondary"); - return; - case IcuCollationStrength.Quaternary: - writer.WriteStringValue("quaternary"); - return; - case IcuCollationStrength.Primary: - writer.WriteStringValue("primary"); - return; - case IcuCollationStrength.Identical: - writer.WriteStringValue("identical"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuNormalizationModeConverter))] -public enum IcuNormalizationMode -{ - [EnumMember(Value = "decompose")] - Decompose, - [EnumMember(Value = "compose")] - Compose -} - -internal sealed class IcuNormalizationModeConverter : JsonConverter -{ - public override IcuNormalizationMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "decompose": - return IcuNormalizationMode.Decompose; - case "compose": - return IcuNormalizationMode.Compose; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuNormalizationMode value, JsonSerializerOptions options) - { - switch (value) - { - case IcuNormalizationMode.Decompose: - writer.WriteStringValue("decompose"); - return; - case IcuNormalizationMode.Compose: - writer.WriteStringValue("compose"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuNormalizationTypeConverter))] -public enum IcuNormalizationType -{ - [EnumMember(Value = "nfkc_cf")] - NfkcCf, - [EnumMember(Value = "nfkc")] - Nfkc, - [EnumMember(Value = "nfc")] - Nfc -} - -internal sealed class IcuNormalizationTypeConverter : JsonConverter -{ - public override IcuNormalizationType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "nfkc_cf": - return IcuNormalizationType.NfkcCf; - case "nfkc": - return IcuNormalizationType.Nfkc; - case "nfc": - return IcuNormalizationType.Nfc; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuNormalizationType value, JsonSerializerOptions options) - { - switch (value) - { - case IcuNormalizationType.NfkcCf: - writer.WriteStringValue("nfkc_cf"); - return; - case IcuNormalizationType.Nfkc: - writer.WriteStringValue("nfkc"); - return; - case IcuNormalizationType.Nfc: - writer.WriteStringValue("nfc"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IcuTransformDirectionConverter))] -public enum IcuTransformDirection -{ - [EnumMember(Value = "reverse")] - Reverse, - [EnumMember(Value = "forward")] - Forward -} - -internal sealed class IcuTransformDirectionConverter : JsonConverter -{ - public override IcuTransformDirection Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "reverse": - return IcuTransformDirection.Reverse; - case "forward": - return IcuTransformDirection.Forward; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IcuTransformDirection value, JsonSerializerOptions options) - { - switch (value) - { - case IcuTransformDirection.Reverse: - writer.WriteStringValue("reverse"); - return; - case IcuTransformDirection.Forward: - writer.WriteStringValue("forward"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(KeepTypesModeConverter))] -public enum KeepTypesMode -{ - [EnumMember(Value = "include")] - Include, - [EnumMember(Value = "exclude")] - Exclude -} - -internal sealed class KeepTypesModeConverter : JsonConverter -{ - public override KeepTypesMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "include": - return KeepTypesMode.Include; - case "exclude": - return KeepTypesMode.Exclude; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, KeepTypesMode value, JsonSerializerOptions options) - { - switch (value) - { - case KeepTypesMode.Include: - writer.WriteStringValue("include"); - return; - case KeepTypesMode.Exclude: - writer.WriteStringValue("exclude"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(KuromojiTokenizationModeConverter))] -public enum KuromojiTokenizationMode -{ - [EnumMember(Value = "search")] - Search, - [EnumMember(Value = "normal")] - Normal, - [EnumMember(Value = "extended")] - Extended -} - -internal sealed class KuromojiTokenizationModeConverter : JsonConverter -{ - public override KuromojiTokenizationMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "search": - return KuromojiTokenizationMode.Search; - case "normal": - return KuromojiTokenizationMode.Normal; - case "extended": - return KuromojiTokenizationMode.Extended; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, KuromojiTokenizationMode value, JsonSerializerOptions options) - { - switch (value) - { - case KuromojiTokenizationMode.Search: - writer.WriteStringValue("search"); - return; - case KuromojiTokenizationMode.Normal: - writer.WriteStringValue("normal"); - return; - case KuromojiTokenizationMode.Extended: - writer.WriteStringValue("extended"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(LanguageConverter))] -public enum Language -{ - [EnumMember(Value = "Turkish")] - Turkish, - [EnumMember(Value = "Thai")] - Thai, - [EnumMember(Value = "Swedish")] - Swedish, - [EnumMember(Value = "Spanish")] - Spanish, - [EnumMember(Value = "Sorani")] - Sorani, - [EnumMember(Value = "Russian")] - Russian, - [EnumMember(Value = "Romanian")] - Romanian, - [EnumMember(Value = "Portuguese")] - Portuguese, - [EnumMember(Value = "Persian")] - Persian, - [EnumMember(Value = "Norwegian")] - Norwegian, - [EnumMember(Value = "Latvian")] - Latvian, - [EnumMember(Value = "Italian")] - Italian, - [EnumMember(Value = "Irish")] - Irish, - [EnumMember(Value = "Indonesian")] - Indonesian, - [EnumMember(Value = "Hungarian")] - Hungarian, - [EnumMember(Value = "Hindi")] - Hindi, - [EnumMember(Value = "Greek")] - Greek, - [EnumMember(Value = "German")] - German, - [EnumMember(Value = "Galician")] - Galician, - [EnumMember(Value = "French")] - French, - [EnumMember(Value = "Finnish")] - Finnish, - [EnumMember(Value = "Estonian")] - Estonian, - [EnumMember(Value = "English")] - English, - [EnumMember(Value = "Dutch")] - Dutch, - [EnumMember(Value = "Danish")] - Danish, - [EnumMember(Value = "Czech")] - Czech, - [EnumMember(Value = "Cjk")] - Cjk, - [EnumMember(Value = "Chinese")] - Chinese, - [EnumMember(Value = "Catalan")] - Catalan, - [EnumMember(Value = "Bulgarian")] - Bulgarian, - [EnumMember(Value = "Brazilian")] - Brazilian, - [EnumMember(Value = "Basque")] - Basque, - [EnumMember(Value = "Armenian")] - Armenian, - [EnumMember(Value = "Arabic")] - Arabic -} - -internal sealed class LanguageConverter : JsonConverter -{ - public override Language Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "Turkish": - return Language.Turkish; - case "Thai": - return Language.Thai; - case "Swedish": - return Language.Swedish; - case "Spanish": - return Language.Spanish; - case "Sorani": - return Language.Sorani; - case "Russian": - return Language.Russian; - case "Romanian": - return Language.Romanian; - case "Portuguese": - return Language.Portuguese; - case "Persian": - return Language.Persian; - case "Norwegian": - return Language.Norwegian; - case "Latvian": - return Language.Latvian; - case "Italian": - return Language.Italian; - case "Irish": - return Language.Irish; - case "Indonesian": - return Language.Indonesian; - case "Hungarian": - return Language.Hungarian; - case "Hindi": - return Language.Hindi; - case "Greek": - return Language.Greek; - case "German": - return Language.German; - case "Galician": - return Language.Galician; - case "French": - return Language.French; - case "Finnish": - return Language.Finnish; - case "Estonian": - return Language.Estonian; - case "English": - return Language.English; - case "Dutch": - return Language.Dutch; - case "Danish": - return Language.Danish; - case "Czech": - return Language.Czech; - case "Cjk": - return Language.Cjk; - case "Chinese": - return Language.Chinese; - case "Catalan": - return Language.Catalan; - case "Bulgarian": - return Language.Bulgarian; - case "Brazilian": - return Language.Brazilian; - case "Basque": - return Language.Basque; - case "Armenian": - return Language.Armenian; - case "Arabic": - return Language.Arabic; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Language value, JsonSerializerOptions options) - { - switch (value) - { - case Language.Turkish: - writer.WriteStringValue("Turkish"); - return; - case Language.Thai: - writer.WriteStringValue("Thai"); - return; - case Language.Swedish: - writer.WriteStringValue("Swedish"); - return; - case Language.Spanish: - writer.WriteStringValue("Spanish"); - return; - case Language.Sorani: - writer.WriteStringValue("Sorani"); - return; - case Language.Russian: - writer.WriteStringValue("Russian"); - return; - case Language.Romanian: - writer.WriteStringValue("Romanian"); - return; - case Language.Portuguese: - writer.WriteStringValue("Portuguese"); - return; - case Language.Persian: - writer.WriteStringValue("Persian"); - return; - case Language.Norwegian: - writer.WriteStringValue("Norwegian"); - return; - case Language.Latvian: - writer.WriteStringValue("Latvian"); - return; - case Language.Italian: - writer.WriteStringValue("Italian"); - return; - case Language.Irish: - writer.WriteStringValue("Irish"); - return; - case Language.Indonesian: - writer.WriteStringValue("Indonesian"); - return; - case Language.Hungarian: - writer.WriteStringValue("Hungarian"); - return; - case Language.Hindi: - writer.WriteStringValue("Hindi"); - return; - case Language.Greek: - writer.WriteStringValue("Greek"); - return; - case Language.German: - writer.WriteStringValue("German"); - return; - case Language.Galician: - writer.WriteStringValue("Galician"); - return; - case Language.French: - writer.WriteStringValue("French"); - return; - case Language.Finnish: - writer.WriteStringValue("Finnish"); - return; - case Language.Estonian: - writer.WriteStringValue("Estonian"); - return; - case Language.English: - writer.WriteStringValue("English"); - return; - case Language.Dutch: - writer.WriteStringValue("Dutch"); - return; - case Language.Danish: - writer.WriteStringValue("Danish"); - return; - case Language.Czech: - writer.WriteStringValue("Czech"); - return; - case Language.Cjk: - writer.WriteStringValue("Cjk"); - return; - case Language.Chinese: - writer.WriteStringValue("Chinese"); - return; - case Language.Catalan: - writer.WriteStringValue("Catalan"); - return; - case Language.Bulgarian: - writer.WriteStringValue("Bulgarian"); - return; - case Language.Brazilian: - writer.WriteStringValue("Brazilian"); - return; - case Language.Basque: - writer.WriteStringValue("Basque"); - return; - case Language.Armenian: - writer.WriteStringValue("Armenian"); - return; - case Language.Arabic: - writer.WriteStringValue("Arabic"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(NoriDecompoundModeConverter))] -public enum NoriDecompoundMode -{ - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "mixed")] - Mixed, - [EnumMember(Value = "discard")] - Discard -} - -internal sealed class NoriDecompoundModeConverter : JsonConverter -{ - public override NoriDecompoundMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "none": - return NoriDecompoundMode.None; - case "mixed": - return NoriDecompoundMode.Mixed; - case "discard": - return NoriDecompoundMode.Discard; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, NoriDecompoundMode value, JsonSerializerOptions options) - { - switch (value) - { - case NoriDecompoundMode.None: - writer.WriteStringValue("none"); - return; - case NoriDecompoundMode.Mixed: - writer.WriteStringValue("mixed"); - return; - case NoriDecompoundMode.Discard: - writer.WriteStringValue("discard"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(PhoneticEncoderConverter))] -public enum PhoneticEncoder -{ - [EnumMember(Value = "soundex")] - Soundex, - [EnumMember(Value = "refined_soundex")] - RefinedSoundex, - [EnumMember(Value = "nysiis")] - Nysiis, - [EnumMember(Value = "metaphone")] - Metaphone, - [EnumMember(Value = "koelnerphonetik")] - Koelnerphonetik, - [EnumMember(Value = "haasephonetik")] - Haasephonetik, - [EnumMember(Value = "double_metaphone")] - DoubleMetaphone, - [EnumMember(Value = "daitch_mokotoff")] - DaitchMokotoff, - [EnumMember(Value = "cologne")] - Cologne, - [EnumMember(Value = "caverphone2")] - Caverphone2, - [EnumMember(Value = "caverphone1")] - Caverphone1, - [EnumMember(Value = "beider_morse")] - BeiderMorse -} - -internal sealed class PhoneticEncoderConverter : JsonConverter -{ - public override PhoneticEncoder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "soundex": - return PhoneticEncoder.Soundex; - case "refined_soundex": - return PhoneticEncoder.RefinedSoundex; - case "nysiis": - return PhoneticEncoder.Nysiis; - case "metaphone": - return PhoneticEncoder.Metaphone; - case "koelnerphonetik": - return PhoneticEncoder.Koelnerphonetik; - case "haasephonetik": - return PhoneticEncoder.Haasephonetik; - case "double_metaphone": - return PhoneticEncoder.DoubleMetaphone; - case "daitch_mokotoff": - return PhoneticEncoder.DaitchMokotoff; - case "cologne": - return PhoneticEncoder.Cologne; - case "caverphone2": - return PhoneticEncoder.Caverphone2; - case "caverphone1": - return PhoneticEncoder.Caverphone1; - case "beider_morse": - return PhoneticEncoder.BeiderMorse; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, PhoneticEncoder value, JsonSerializerOptions options) - { - switch (value) - { - case PhoneticEncoder.Soundex: - writer.WriteStringValue("soundex"); - return; - case PhoneticEncoder.RefinedSoundex: - writer.WriteStringValue("refined_soundex"); - return; - case PhoneticEncoder.Nysiis: - writer.WriteStringValue("nysiis"); - return; - case PhoneticEncoder.Metaphone: - writer.WriteStringValue("metaphone"); - return; - case PhoneticEncoder.Koelnerphonetik: - writer.WriteStringValue("koelnerphonetik"); - return; - case PhoneticEncoder.Haasephonetik: - writer.WriteStringValue("haasephonetik"); - return; - case PhoneticEncoder.DoubleMetaphone: - writer.WriteStringValue("double_metaphone"); - return; - case PhoneticEncoder.DaitchMokotoff: - writer.WriteStringValue("daitch_mokotoff"); - return; - case PhoneticEncoder.Cologne: - writer.WriteStringValue("cologne"); - return; - case PhoneticEncoder.Caverphone2: - writer.WriteStringValue("caverphone2"); - return; - case PhoneticEncoder.Caverphone1: - writer.WriteStringValue("caverphone1"); - return; - case PhoneticEncoder.BeiderMorse: - writer.WriteStringValue("beider_morse"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(PhoneticLanguageConverter))] -public enum PhoneticLanguage -{ - [EnumMember(Value = "spanish")] - Spanish, - [EnumMember(Value = "russian")] - Russian, - [EnumMember(Value = "romanian")] - Romanian, - [EnumMember(Value = "polish")] - Polish, - [EnumMember(Value = "hungarian")] - Hungarian, - [EnumMember(Value = "hebrew")] - Hebrew, - [EnumMember(Value = "german")] - German, - [EnumMember(Value = "french")] - French, - [EnumMember(Value = "english")] - English, - [EnumMember(Value = "cyrillic")] - Cyrillic, - [EnumMember(Value = "common")] - Common, - [EnumMember(Value = "any")] - Any -} - -internal sealed class PhoneticLanguageConverter : JsonConverter -{ - public override PhoneticLanguage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "spanish": - return PhoneticLanguage.Spanish; - case "russian": - return PhoneticLanguage.Russian; - case "romanian": - return PhoneticLanguage.Romanian; - case "polish": - return PhoneticLanguage.Polish; - case "hungarian": - return PhoneticLanguage.Hungarian; - case "hebrew": - return PhoneticLanguage.Hebrew; - case "german": - return PhoneticLanguage.German; - case "french": - return PhoneticLanguage.French; - case "english": - return PhoneticLanguage.English; - case "cyrillic": - return PhoneticLanguage.Cyrillic; - case "common": - return PhoneticLanguage.Common; - case "any": - return PhoneticLanguage.Any; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, PhoneticLanguage value, JsonSerializerOptions options) - { - switch (value) - { - case PhoneticLanguage.Spanish: - writer.WriteStringValue("spanish"); - return; - case PhoneticLanguage.Russian: - writer.WriteStringValue("russian"); - return; - case PhoneticLanguage.Romanian: - writer.WriteStringValue("romanian"); - return; - case PhoneticLanguage.Polish: - writer.WriteStringValue("polish"); - return; - case PhoneticLanguage.Hungarian: - writer.WriteStringValue("hungarian"); - return; - case PhoneticLanguage.Hebrew: - writer.WriteStringValue("hebrew"); - return; - case PhoneticLanguage.German: - writer.WriteStringValue("german"); - return; - case PhoneticLanguage.French: - writer.WriteStringValue("french"); - return; - case PhoneticLanguage.English: - writer.WriteStringValue("english"); - return; - case PhoneticLanguage.Cyrillic: - writer.WriteStringValue("cyrillic"); - return; - case PhoneticLanguage.Common: - writer.WriteStringValue("common"); - return; - case PhoneticLanguage.Any: - writer.WriteStringValue("any"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(PhoneticNameTypeConverter))] -public enum PhoneticNameType -{ - [EnumMember(Value = "sephardic")] - Sephardic, - [EnumMember(Value = "generic")] - Generic, - [EnumMember(Value = "ashkenazi")] - Ashkenazi -} - -internal sealed class PhoneticNameTypeConverter : JsonConverter -{ - public override PhoneticNameType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "sephardic": - return PhoneticNameType.Sephardic; - case "generic": - return PhoneticNameType.Generic; - case "ashkenazi": - return PhoneticNameType.Ashkenazi; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, PhoneticNameType value, JsonSerializerOptions options) - { - switch (value) - { - case PhoneticNameType.Sephardic: - writer.WriteStringValue("sephardic"); - return; - case PhoneticNameType.Generic: - writer.WriteStringValue("generic"); - return; - case PhoneticNameType.Ashkenazi: - writer.WriteStringValue("ashkenazi"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(PhoneticRuleTypeConverter))] -public enum PhoneticRuleType -{ - [EnumMember(Value = "exact")] - Exact, - [EnumMember(Value = "approx")] - Approx -} - -internal sealed class PhoneticRuleTypeConverter : JsonConverter -{ - public override PhoneticRuleType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "exact": - return PhoneticRuleType.Exact; - case "approx": - return PhoneticRuleType.Approx; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, PhoneticRuleType value, JsonSerializerOptions options) - { - switch (value) - { - case PhoneticRuleType.Exact: - writer.WriteStringValue("exact"); - return; - case PhoneticRuleType.Approx: - writer.WriteStringValue("approx"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SnowballLanguageConverter))] -public enum SnowballLanguage -{ - [EnumMember(Value = "Turkish")] - Turkish, - [EnumMember(Value = "Swedish")] - Swedish, - [EnumMember(Value = "Spanish")] - Spanish, - [EnumMember(Value = "Russian")] - Russian, - [EnumMember(Value = "Romanian")] - Romanian, - [EnumMember(Value = "Portuguese")] - Portuguese, - [EnumMember(Value = "Porter")] - Porter, - [EnumMember(Value = "Norwegian")] - Norwegian, - [EnumMember(Value = "Lovins")] - Lovins, - [EnumMember(Value = "Kp")] - Kp, - [EnumMember(Value = "Italian")] - Italian, - [EnumMember(Value = "Hungarian")] - Hungarian, - [EnumMember(Value = "German2")] - German2, - [EnumMember(Value = "German")] - German, - [EnumMember(Value = "French")] - French, - [EnumMember(Value = "Finnish")] - Finnish, - [EnumMember(Value = "English")] - English, - [EnumMember(Value = "Dutch")] - Dutch, - [EnumMember(Value = "Danish")] - Danish, - [EnumMember(Value = "Catalan")] - Catalan, - [EnumMember(Value = "Basque")] - Basque, - [EnumMember(Value = "Armenian")] - Armenian -} - -internal sealed class SnowballLanguageConverter : JsonConverter -{ - public override SnowballLanguage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "Turkish": - return SnowballLanguage.Turkish; - case "Swedish": - return SnowballLanguage.Swedish; - case "Spanish": - return SnowballLanguage.Spanish; - case "Russian": - return SnowballLanguage.Russian; - case "Romanian": - return SnowballLanguage.Romanian; - case "Portuguese": - return SnowballLanguage.Portuguese; - case "Porter": - return SnowballLanguage.Porter; - case "Norwegian": - return SnowballLanguage.Norwegian; - case "Lovins": - return SnowballLanguage.Lovins; - case "Kp": - return SnowballLanguage.Kp; - case "Italian": - return SnowballLanguage.Italian; - case "Hungarian": - return SnowballLanguage.Hungarian; - case "German2": - return SnowballLanguage.German2; - case "German": - return SnowballLanguage.German; - case "French": - return SnowballLanguage.French; - case "Finnish": - return SnowballLanguage.Finnish; - case "English": - return SnowballLanguage.English; - case "Dutch": - return SnowballLanguage.Dutch; - case "Danish": - return SnowballLanguage.Danish; - case "Catalan": - return SnowballLanguage.Catalan; - case "Basque": - return SnowballLanguage.Basque; - case "Armenian": - return SnowballLanguage.Armenian; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SnowballLanguage value, JsonSerializerOptions options) - { - switch (value) - { - case SnowballLanguage.Turkish: - writer.WriteStringValue("Turkish"); - return; - case SnowballLanguage.Swedish: - writer.WriteStringValue("Swedish"); - return; - case SnowballLanguage.Spanish: - writer.WriteStringValue("Spanish"); - return; - case SnowballLanguage.Russian: - writer.WriteStringValue("Russian"); - return; - case SnowballLanguage.Romanian: - writer.WriteStringValue("Romanian"); - return; - case SnowballLanguage.Portuguese: - writer.WriteStringValue("Portuguese"); - return; - case SnowballLanguage.Porter: - writer.WriteStringValue("Porter"); - return; - case SnowballLanguage.Norwegian: - writer.WriteStringValue("Norwegian"); - return; - case SnowballLanguage.Lovins: - writer.WriteStringValue("Lovins"); - return; - case SnowballLanguage.Kp: - writer.WriteStringValue("Kp"); - return; - case SnowballLanguage.Italian: - writer.WriteStringValue("Italian"); - return; - case SnowballLanguage.Hungarian: - writer.WriteStringValue("Hungarian"); - return; - case SnowballLanguage.German2: - writer.WriteStringValue("German2"); - return; - case SnowballLanguage.German: - writer.WriteStringValue("German"); - return; - case SnowballLanguage.French: - writer.WriteStringValue("French"); - return; - case SnowballLanguage.Finnish: - writer.WriteStringValue("Finnish"); - return; - case SnowballLanguage.English: - writer.WriteStringValue("English"); - return; - case SnowballLanguage.Dutch: - writer.WriteStringValue("Dutch"); - return; - case SnowballLanguage.Danish: - writer.WriteStringValue("Danish"); - return; - case SnowballLanguage.Catalan: - writer.WriteStringValue("Catalan"); - return; - case SnowballLanguage.Basque: - writer.WriteStringValue("Basque"); - return; - case SnowballLanguage.Armenian: - writer.WriteStringValue("Armenian"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SynonymFormatConverter))] -public enum SynonymFormat -{ - [EnumMember(Value = "wordnet")] - Wordnet, - [EnumMember(Value = "solr")] - Solr -} - -internal sealed class SynonymFormatConverter : JsonConverter -{ - public override SynonymFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "wordnet": - return SynonymFormat.Wordnet; - case "solr": - return SynonymFormat.Solr; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SynonymFormat value, JsonSerializerOptions options) - { - switch (value) - { - case SynonymFormat.Wordnet: - writer.WriteStringValue("wordnet"); - return; - case SynonymFormat.Solr: - writer.WriteStringValue("solr"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TokenCharConverter))] -public enum TokenChar -{ - [EnumMember(Value = "whitespace")] - Whitespace, - [EnumMember(Value = "symbol")] - Symbol, - [EnumMember(Value = "punctuation")] - Punctuation, - [EnumMember(Value = "letter")] - Letter, - [EnumMember(Value = "digit")] - Digit, - [EnumMember(Value = "custom")] - Custom -} - -internal sealed class TokenCharConverter : JsonConverter -{ - public override TokenChar Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "whitespace": - return TokenChar.Whitespace; - case "symbol": - return TokenChar.Symbol; - case "punctuation": - return TokenChar.Punctuation; - case "letter": - return TokenChar.Letter; - case "digit": - return TokenChar.Digit; - case "custom": - return TokenChar.Custom; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TokenChar value, JsonSerializerOptions options) - { - switch (value) - { - case TokenChar.Whitespace: - writer.WriteStringValue("whitespace"); - return; - case TokenChar.Symbol: - writer.WriteStringValue("symbol"); - return; - case TokenChar.Punctuation: - writer.WriteStringValue("punctuation"); - return; - case TokenChar.Letter: - writer.WriteStringValue("letter"); - return; - case TokenChar.Digit: - writer.WriteStringValue("digit"); - return; - case TokenChar.Custom: - writer.WriteStringValue("custom"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Cluster.g.cs deleted file mode 100644 index 3f580204a26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Cluster.g.cs +++ /dev/null @@ -1,302 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Cluster; - -[JsonConverter(typeof(AllocationExplainDecisionConverter))] -public enum AllocationExplainDecision -{ - [EnumMember(Value = "YES")] - Yes, - [EnumMember(Value = "THROTTLE")] - Throttle, - [EnumMember(Value = "NO")] - No, - [EnumMember(Value = "ALWAYS")] - Always -} - -internal sealed class AllocationExplainDecisionConverter : JsonConverter -{ - public override AllocationExplainDecision Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "YES": - return AllocationExplainDecision.Yes; - case "THROTTLE": - return AllocationExplainDecision.Throttle; - case "NO": - return AllocationExplainDecision.No; - case "ALWAYS": - return AllocationExplainDecision.Always; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, AllocationExplainDecision value, JsonSerializerOptions options) - { - switch (value) - { - case AllocationExplainDecision.Yes: - writer.WriteStringValue("YES"); - return; - case AllocationExplainDecision.Throttle: - writer.WriteStringValue("THROTTLE"); - return; - case AllocationExplainDecision.No: - writer.WriteStringValue("NO"); - return; - case AllocationExplainDecision.Always: - writer.WriteStringValue("ALWAYS"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DecisionConverter))] -public enum Decision -{ - [EnumMember(Value = "yes")] - Yes, - [EnumMember(Value = "worse_balance")] - WorseBalance, - [EnumMember(Value = "throttled")] - Throttled, - [EnumMember(Value = "no_valid_shard_copy")] - NoValidShardCopy, - [EnumMember(Value = "no_attempt")] - NoAttempt, - [EnumMember(Value = "no")] - No, - [EnumMember(Value = "awaiting_info")] - AwaitingInfo, - [EnumMember(Value = "allocation_delayed")] - AllocationDelayed -} - -internal sealed class DecisionConverter : JsonConverter -{ - public override Decision Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yes": - return Decision.Yes; - case "worse_balance": - return Decision.WorseBalance; - case "throttled": - return Decision.Throttled; - case "no_valid_shard_copy": - return Decision.NoValidShardCopy; - case "no_attempt": - return Decision.NoAttempt; - case "no": - return Decision.No; - case "awaiting_info": - return Decision.AwaitingInfo; - case "allocation_delayed": - return Decision.AllocationDelayed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Decision value, JsonSerializerOptions options) - { - switch (value) - { - case Decision.Yes: - writer.WriteStringValue("yes"); - return; - case Decision.WorseBalance: - writer.WriteStringValue("worse_balance"); - return; - case Decision.Throttled: - writer.WriteStringValue("throttled"); - return; - case Decision.NoValidShardCopy: - writer.WriteStringValue("no_valid_shard_copy"); - return; - case Decision.NoAttempt: - writer.WriteStringValue("no_attempt"); - return; - case Decision.No: - writer.WriteStringValue("no"); - return; - case Decision.AwaitingInfo: - writer.WriteStringValue("awaiting_info"); - return; - case Decision.AllocationDelayed: - writer.WriteStringValue("allocation_delayed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(UnassignedInformationReasonConverter))] -public enum UnassignedInformationReason -{ - [EnumMember(Value = "REROUTE_CANCELLED")] - RerouteCancelled, - [EnumMember(Value = "REPLICA_ADDED")] - ReplicaAdded, - [EnumMember(Value = "REINITIALIZED")] - Reinitialized, - [EnumMember(Value = "REALLOCATED_REPLICA")] - ReallocatedReplica, - [EnumMember(Value = "PRIMARY_FAILED")] - PrimaryFailed, - [EnumMember(Value = "NODE_LEFT")] - NodeLeft, - [EnumMember(Value = "NEW_INDEX_RESTORED")] - NewIndexRestored, - [EnumMember(Value = "MANUAL_ALLOCATION")] - ManualAllocation, - [EnumMember(Value = "INDEX_REOPENED")] - IndexReopened, - [EnumMember(Value = "INDEX_CREATED")] - IndexCreated, - [EnumMember(Value = "FORCED_EMPTY_PRIMARY")] - ForcedEmptyPrimary, - [EnumMember(Value = "EXISTING_INDEX_RESTORED")] - ExistingIndexRestored, - [EnumMember(Value = "DANGLING_INDEX_IMPORTED")] - DanglingIndexImported, - [EnumMember(Value = "CLUSTER_RECOVERED")] - ClusterRecovered, - [EnumMember(Value = "ALLOCATION_FAILED")] - AllocationFailed -} - -internal sealed class UnassignedInformationReasonConverter : JsonConverter -{ - public override UnassignedInformationReason Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "REROUTE_CANCELLED": - return UnassignedInformationReason.RerouteCancelled; - case "REPLICA_ADDED": - return UnassignedInformationReason.ReplicaAdded; - case "REINITIALIZED": - return UnassignedInformationReason.Reinitialized; - case "REALLOCATED_REPLICA": - return UnassignedInformationReason.ReallocatedReplica; - case "PRIMARY_FAILED": - return UnassignedInformationReason.PrimaryFailed; - case "NODE_LEFT": - return UnassignedInformationReason.NodeLeft; - case "NEW_INDEX_RESTORED": - return UnassignedInformationReason.NewIndexRestored; - case "MANUAL_ALLOCATION": - return UnassignedInformationReason.ManualAllocation; - case "INDEX_REOPENED": - return UnassignedInformationReason.IndexReopened; - case "INDEX_CREATED": - return UnassignedInformationReason.IndexCreated; - case "FORCED_EMPTY_PRIMARY": - return UnassignedInformationReason.ForcedEmptyPrimary; - case "EXISTING_INDEX_RESTORED": - return UnassignedInformationReason.ExistingIndexRestored; - case "DANGLING_INDEX_IMPORTED": - return UnassignedInformationReason.DanglingIndexImported; - case "CLUSTER_RECOVERED": - return UnassignedInformationReason.ClusterRecovered; - case "ALLOCATION_FAILED": - return UnassignedInformationReason.AllocationFailed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, UnassignedInformationReason value, JsonSerializerOptions options) - { - switch (value) - { - case UnassignedInformationReason.RerouteCancelled: - writer.WriteStringValue("REROUTE_CANCELLED"); - return; - case UnassignedInformationReason.ReplicaAdded: - writer.WriteStringValue("REPLICA_ADDED"); - return; - case UnassignedInformationReason.Reinitialized: - writer.WriteStringValue("REINITIALIZED"); - return; - case UnassignedInformationReason.ReallocatedReplica: - writer.WriteStringValue("REALLOCATED_REPLICA"); - return; - case UnassignedInformationReason.PrimaryFailed: - writer.WriteStringValue("PRIMARY_FAILED"); - return; - case UnassignedInformationReason.NodeLeft: - writer.WriteStringValue("NODE_LEFT"); - return; - case UnassignedInformationReason.NewIndexRestored: - writer.WriteStringValue("NEW_INDEX_RESTORED"); - return; - case UnassignedInformationReason.ManualAllocation: - writer.WriteStringValue("MANUAL_ALLOCATION"); - return; - case UnassignedInformationReason.IndexReopened: - writer.WriteStringValue("INDEX_REOPENED"); - return; - case UnassignedInformationReason.IndexCreated: - writer.WriteStringValue("INDEX_CREATED"); - return; - case UnassignedInformationReason.ForcedEmptyPrimary: - writer.WriteStringValue("FORCED_EMPTY_PRIMARY"); - return; - case UnassignedInformationReason.ExistingIndexRestored: - writer.WriteStringValue("EXISTING_INDEX_RESTORED"); - return; - case UnassignedInformationReason.DanglingIndexImported: - writer.WriteStringValue("DANGLING_INDEX_IMPORTED"); - return; - case UnassignedInformationReason.ClusterRecovered: - writer.WriteStringValue("CLUSTER_RECOVERED"); - return; - case UnassignedInformationReason.AllocationFailed: - writer.WriteStringValue("ALLOCATION_FAILED"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.HealthReport.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.HealthReport.g.cs deleted file mode 100644 index 8752f1368d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.HealthReport.g.cs +++ /dev/null @@ -1,141 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.HealthReport; - -[JsonConverter(typeof(ImpactAreaConverter))] -public enum ImpactArea -{ - [EnumMember(Value = "search")] - Search, - [EnumMember(Value = "ingest")] - Ingest, - [EnumMember(Value = "deployment_management")] - DeploymentManagement, - [EnumMember(Value = "backup")] - Backup -} - -internal sealed class ImpactAreaConverter : JsonConverter -{ - public override ImpactArea Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "search": - return ImpactArea.Search; - case "ingest": - return ImpactArea.Ingest; - case "deployment_management": - return ImpactArea.DeploymentManagement; - case "backup": - return ImpactArea.Backup; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ImpactArea value, JsonSerializerOptions options) - { - switch (value) - { - case ImpactArea.Search: - writer.WriteStringValue("search"); - return; - case ImpactArea.Ingest: - writer.WriteStringValue("ingest"); - return; - case ImpactArea.DeploymentManagement: - writer.WriteStringValue("deployment_management"); - return; - case ImpactArea.Backup: - writer.WriteStringValue("backup"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IndicatorHealthStatusConverter))] -public enum IndicatorHealthStatus -{ - [EnumMember(Value = "yellow")] - Yellow, - [EnumMember(Value = "unknown")] - Unknown, - [EnumMember(Value = "red")] - Red, - [EnumMember(Value = "green")] - Green -} - -internal sealed class IndicatorHealthStatusConverter : JsonConverter -{ - public override IndicatorHealthStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yellow": - return IndicatorHealthStatus.Yellow; - case "unknown": - return IndicatorHealthStatus.Unknown; - case "red": - return IndicatorHealthStatus.Red; - case "green": - return IndicatorHealthStatus.Green; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndicatorHealthStatus value, JsonSerializerOptions options) - { - switch (value) - { - case IndicatorHealthStatus.Yellow: - writer.WriteStringValue("yellow"); - return; - case IndicatorHealthStatus.Unknown: - writer.WriteStringValue("unknown"); - return; - case IndicatorHealthStatus.Red: - writer.WriteStringValue("red"); - return; - case IndicatorHealthStatus.Green: - writer.WriteStringValue("green"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs deleted file mode 100644 index 733910adc3f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs +++ /dev/null @@ -1,577 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; - -[JsonConverter(typeof(BoundaryScannerConverter))] -public enum BoundaryScanner -{ - /// - /// - /// Break highlighted fragments at the next word boundary, as determined by Java’s BreakIterator. - /// You can specify the locale to use with boundary_scanner_locale. - /// - /// - [EnumMember(Value = "word")] - Word, - /// - /// - /// Break highlighted fragments at the next sentence boundary, as determined by Java’s BreakIterator. - /// You can specify the locale to use with boundary_scanner_locale. - /// When used with the unified highlighter, the sentence scanner splits sentences bigger than fragment_size at the first word boundary next to fragment_size. - /// You can set fragment_size to 0 to never split any sentence. - /// - /// - [EnumMember(Value = "sentence")] - Sentence, - /// - /// - /// Use the characters specified by boundary_chars as highlighting boundaries. - /// The boundary_max_scan setting controls how far to scan for boundary characters. - /// Only valid for the fvh highlighter. - /// - /// - [EnumMember(Value = "chars")] - Chars -} - -internal sealed class BoundaryScannerConverter : JsonConverter -{ - public override BoundaryScanner Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "word": - return BoundaryScanner.Word; - case "sentence": - return BoundaryScanner.Sentence; - case "chars": - return BoundaryScanner.Chars; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, BoundaryScanner value, JsonSerializerOptions options) - { - switch (value) - { - case BoundaryScanner.Word: - writer.WriteStringValue("word"); - return; - case BoundaryScanner.Sentence: - writer.WriteStringValue("sentence"); - return; - case BoundaryScanner.Chars: - writer.WriteStringValue("chars"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(HighlighterEncoderConverter))] -public enum HighlighterEncoder -{ - [EnumMember(Value = "html")] - Html, - [EnumMember(Value = "default")] - Default -} - -internal sealed class HighlighterEncoderConverter : JsonConverter -{ - public override HighlighterEncoder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "html": - return HighlighterEncoder.Html; - case "default": - return HighlighterEncoder.Default; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, HighlighterEncoder value, JsonSerializerOptions options) - { - switch (value) - { - case HighlighterEncoder.Html: - writer.WriteStringValue("html"); - return; - case HighlighterEncoder.Default: - writer.WriteStringValue("default"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(HighlighterFragmenterConverter))] -public enum HighlighterFragmenter -{ - [EnumMember(Value = "span")] - Span, - [EnumMember(Value = "simple")] - Simple -} - -internal sealed class HighlighterFragmenterConverter : JsonConverter -{ - public override HighlighterFragmenter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "span": - return HighlighterFragmenter.Span; - case "simple": - return HighlighterFragmenter.Simple; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, HighlighterFragmenter value, JsonSerializerOptions options) - { - switch (value) - { - case HighlighterFragmenter.Span: - writer.WriteStringValue("span"); - return; - case HighlighterFragmenter.Simple: - writer.WriteStringValue("simple"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(HighlighterOrderConverter))] -public enum HighlighterOrder -{ - [EnumMember(Value = "score")] - Score -} - -internal sealed class HighlighterOrderConverter : JsonConverter -{ - public override HighlighterOrder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "score": - return HighlighterOrder.Score; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, HighlighterOrder value, JsonSerializerOptions options) - { - switch (value) - { - case HighlighterOrder.Score: - writer.WriteStringValue("score"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(HighlighterTagsSchemaConverter))] -public enum HighlighterTagsSchema -{ - [EnumMember(Value = "styled")] - Styled -} - -internal sealed class HighlighterTagsSchemaConverter : JsonConverter -{ - public override HighlighterTagsSchema Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "styled": - return HighlighterTagsSchema.Styled; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, HighlighterTagsSchema value, JsonSerializerOptions options) - { - switch (value) - { - case HighlighterTagsSchema.Styled: - writer.WriteStringValue("styled"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(EnumStructConverter))] -public readonly partial struct HighlighterType : IEnumStruct -{ - public HighlighterType(string value) => Value = value; - - HighlighterType IEnumStruct.Create(string value) => value; - - public readonly string Value { get; } - - /// - /// - /// The unified highlighter uses the Lucene Unified Highlighter. - /// - /// - public static HighlighterType Unified { get; } = new HighlighterType("unified"); - - /// - /// - /// The plain highlighter uses the standard Lucene highlighter - /// - /// - public static HighlighterType Plain { get; } = new HighlighterType("plain"); - - /// - /// - /// The fvh highlighter uses the Lucene Fast Vector highlighter. - /// - /// - public static HighlighterType FastVector { get; } = new HighlighterType("fvh"); - - public override string ToString() => Value ?? string.Empty; - - public static implicit operator string(HighlighterType highlighterType) => highlighterType.Value; - public static implicit operator HighlighterType(string value) => new(value); - - public override int GetHashCode() => Value.GetHashCode(); - public override bool Equals(object obj) => obj is HighlighterType other && this.Equals(other); - public bool Equals(HighlighterType other) => Value == other.Value; - - public static bool operator ==(HighlighterType a, HighlighterType b) => a.Equals(b); - public static bool operator !=(HighlighterType a, HighlighterType b) => !(a == b); -} - -[JsonConverter(typeof(ScoreModeConverter))] -public enum ScoreMode -{ - /// - /// - /// Add the original score and the rescore query score. - /// - /// - [EnumMember(Value = "total")] - Total, - /// - /// - /// Multiply the original score by the rescore query score. - /// Useful for function query rescores. - /// - /// - [EnumMember(Value = "multiply")] - Multiply, - /// - /// - /// Take the min of the original score and the rescore query score. - /// - /// - [EnumMember(Value = "min")] - Min, - /// - /// - /// Take the max of original score and the rescore query score. - /// - /// - [EnumMember(Value = "max")] - Max, - /// - /// - /// Average the original score and the rescore query score. - /// - /// - [EnumMember(Value = "avg")] - Avg -} - -internal sealed class ScoreModeConverter : JsonConverter -{ - public override ScoreMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "total": - return ScoreMode.Total; - case "multiply": - return ScoreMode.Multiply; - case "min": - return ScoreMode.Min; - case "max": - return ScoreMode.Max; - case "avg": - return ScoreMode.Avg; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ScoreMode value, JsonSerializerOptions options) - { - switch (value) - { - case ScoreMode.Total: - writer.WriteStringValue("total"); - return; - case ScoreMode.Multiply: - writer.WriteStringValue("multiply"); - return; - case ScoreMode.Min: - writer.WriteStringValue("min"); - return; - case ScoreMode.Max: - writer.WriteStringValue("max"); - return; - case ScoreMode.Avg: - writer.WriteStringValue("avg"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(StringDistanceConverter))] -public enum StringDistance -{ - /// - /// - /// String distance algorithm based on character n-grams. - /// - /// - [EnumMember(Value = "ngram")] - Ngram, - /// - /// - /// String distance algorithm based on the Levenshtein edit distance algorithm. - /// - /// - [EnumMember(Value = "levenshtein")] - Levenshtein, - /// - /// - /// String distance algorithm based on Jaro-Winkler algorithm. - /// - /// - [EnumMember(Value = "jaro_winkler")] - JaroWinkler, - /// - /// - /// Based on the Damerau-Levenshtein algorithm, but highly optimized for comparing string distance for terms inside the index. - /// - /// - [EnumMember(Value = "internal")] - Internal, - /// - /// - /// String distance algorithm based on Damerau-Levenshtein algorithm. - /// - /// - [EnumMember(Value = "damerau_levenshtein")] - DamerauLevenshtein -} - -internal sealed class StringDistanceConverter : JsonConverter -{ - public override StringDistance Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "ngram": - return StringDistance.Ngram; - case "levenshtein": - return StringDistance.Levenshtein; - case "jaro_winkler": - return StringDistance.JaroWinkler; - case "internal": - return StringDistance.Internal; - case "damerau_levenshtein": - return StringDistance.DamerauLevenshtein; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, StringDistance value, JsonSerializerOptions options) - { - switch (value) - { - case StringDistance.Ngram: - writer.WriteStringValue("ngram"); - return; - case StringDistance.Levenshtein: - writer.WriteStringValue("levenshtein"); - return; - case StringDistance.JaroWinkler: - writer.WriteStringValue("jaro_winkler"); - return; - case StringDistance.Internal: - writer.WriteStringValue("internal"); - return; - case StringDistance.DamerauLevenshtein: - writer.WriteStringValue("damerau_levenshtein"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SuggestSortConverter))] -public enum SuggestSort -{ - /// - /// - /// Sort by score first, then document frequency and then the term itself. - /// - /// - [EnumMember(Value = "score")] - Score, - /// - /// - /// Sort by document frequency first, then similarity score and then the term itself. - /// - /// - [EnumMember(Value = "frequency")] - Frequency -} - -internal sealed class SuggestSortConverter : JsonConverter -{ - public override SuggestSort Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "score": - return SuggestSort.Score; - case "frequency": - return SuggestSort.Frequency; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SuggestSort value, JsonSerializerOptions options) - { - switch (value) - { - case SuggestSort.Score: - writer.WriteStringValue("score"); - return; - case SuggestSort.Frequency: - writer.WriteStringValue("frequency"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TotalHitsRelationConverter))] -public enum TotalHitsRelation -{ - /// - /// - /// Lower bound, including returned events or sequences - /// - /// - [EnumMember(Value = "gte")] - Gte, - /// - /// - /// Accurate - /// - /// - [EnumMember(Value = "eq")] - Eq -} - -internal sealed class TotalHitsRelationConverter : JsonConverter -{ - public override TotalHitsRelation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "gte": - return TotalHitsRelation.Gte; - case "eq": - return TotalHitsRelation.Eq; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TotalHitsRelation value, JsonSerializerOptions options) - { - switch (value) - { - case TotalHitsRelation.Gte: - writer.WriteStringValue("gte"); - return; - case TotalHitsRelation.Eq: - writer.WriteStringValue("eq"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.SearchMvt.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.SearchMvt.g.cs deleted file mode 100644 index 9570d6fe1ff..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.SearchMvt.g.cs +++ /dev/null @@ -1,120 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Core.SearchMvt; - -[JsonConverter(typeof(GridAggregationTypeConverter))] -public enum GridAggregationType -{ - [EnumMember(Value = "geotile")] - Geotile, - [EnumMember(Value = "geohex")] - Geohex -} - -internal sealed class GridAggregationTypeConverter : JsonConverter -{ - public override GridAggregationType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "geotile": - return GridAggregationType.Geotile; - case "geohex": - return GridAggregationType.Geohex; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GridAggregationType value, JsonSerializerOptions options) - { - switch (value) - { - case GridAggregationType.Geotile: - writer.WriteStringValue("geotile"); - return; - case GridAggregationType.Geohex: - writer.WriteStringValue("geohex"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GridTypeConverter))] -public enum GridType -{ - [EnumMember(Value = "point")] - Point, - [EnumMember(Value = "grid")] - Grid, - [EnumMember(Value = "centroid")] - Centroid -} - -internal sealed class GridTypeConverter : JsonConverter -{ - public override GridType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "point": - return GridType.Point; - case "grid": - return GridType.Grid; - case "centroid": - return GridType.Centroid; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GridType value, JsonSerializerOptions options) - { - switch (value) - { - case GridType.Point: - writer.WriteStringValue("point"); - return; - case GridType.Grid: - writer.WriteStringValue("grid"); - return; - case GridType.Centroid: - writer.WriteStringValue("centroid"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Enrich.g.cs deleted file mode 100644 index ae03d3ffb09..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Enrich.g.cs +++ /dev/null @@ -1,134 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Enrich; - -[JsonConverter(typeof(EnrichPolicyPhaseConverter))] -public enum EnrichPolicyPhase -{ - [EnumMember(Value = "SCHEDULED")] - Scheduled, - [EnumMember(Value = "RUNNING")] - Running, - [EnumMember(Value = "FAILED")] - Failed, - [EnumMember(Value = "COMPLETE")] - Complete -} - -internal sealed class EnrichPolicyPhaseConverter : JsonConverter -{ - public override EnrichPolicyPhase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "SCHEDULED": - return EnrichPolicyPhase.Scheduled; - case "RUNNING": - return EnrichPolicyPhase.Running; - case "FAILED": - return EnrichPolicyPhase.Failed; - case "COMPLETE": - return EnrichPolicyPhase.Complete; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, EnrichPolicyPhase value, JsonSerializerOptions options) - { - switch (value) - { - case EnrichPolicyPhase.Scheduled: - writer.WriteStringValue("SCHEDULED"); - return; - case EnrichPolicyPhase.Running: - writer.WriteStringValue("RUNNING"); - return; - case EnrichPolicyPhase.Failed: - writer.WriteStringValue("FAILED"); - return; - case EnrichPolicyPhase.Complete: - writer.WriteStringValue("COMPLETE"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(PolicyTypeConverter))] -public enum PolicyType -{ - [EnumMember(Value = "range")] - Range, - [EnumMember(Value = "match")] - Match, - [EnumMember(Value = "geo_match")] - GeoMatch -} - -internal sealed class PolicyTypeConverter : JsonConverter -{ - public override PolicyType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "range": - return PolicyType.Range; - case "match": - return PolicyType.Match; - case "geo_match": - return PolicyType.GeoMatch; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, PolicyType value, JsonSerializerOptions options) - { - switch (value) - { - case PolicyType.Range: - writer.WriteStringValue("range"); - return; - case PolicyType.Match: - writer.WriteStringValue("match"); - return; - case PolicyType.GeoMatch: - writer.WriteStringValue("geo_match"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs deleted file mode 100644 index 75e0ada4a0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs +++ /dev/null @@ -1,81 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Eql; - -[JsonConverter(typeof(ResultPositionConverter))] -public enum ResultPosition -{ - /// - /// - /// Return the most recent matches, similar to the Unix tail command. - /// - /// - [EnumMember(Value = "tail")] - Tail, - /// - /// - /// Return the earliest matches, similar to the Unix head command. - /// - /// - [EnumMember(Value = "head")] - Head -} - -internal sealed class ResultPositionConverter : JsonConverter -{ - public override ResultPosition Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "tail": - return ResultPosition.Tail; - case "head": - return ResultPosition.Head; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ResultPosition value, JsonSerializerOptions options) - { - switch (value) - { - case ResultPosition.Tail: - writer.WriteStringValue("tail"); - return; - case ResultPosition.Head: - writer.WriteStringValue("head"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs deleted file mode 100644 index 9f3b55c714b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Esql.g.cs +++ /dev/null @@ -1,113 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Esql; - -[JsonConverter(typeof(EsqlFormatConverter))] -public enum EsqlFormat -{ - [EnumMember(Value = "yaml")] - Yaml, - [EnumMember(Value = "txt")] - Txt, - [EnumMember(Value = "tsv")] - Tsv, - [EnumMember(Value = "smile")] - Smile, - [EnumMember(Value = "json")] - Json, - [EnumMember(Value = "csv")] - Csv, - [EnumMember(Value = "cbor")] - Cbor, - [EnumMember(Value = "arrow")] - Arrow -} - -internal sealed class EsqlFormatConverter : JsonConverter -{ - public override EsqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yaml": - return EsqlFormat.Yaml; - case "txt": - return EsqlFormat.Txt; - case "tsv": - return EsqlFormat.Tsv; - case "smile": - return EsqlFormat.Smile; - case "json": - return EsqlFormat.Json; - case "csv": - return EsqlFormat.Csv; - case "cbor": - return EsqlFormat.Cbor; - case "arrow": - return EsqlFormat.Arrow; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, EsqlFormat value, JsonSerializerOptions options) - { - switch (value) - { - case EsqlFormat.Yaml: - writer.WriteStringValue("yaml"); - return; - case EsqlFormat.Txt: - writer.WriteStringValue("txt"); - return; - case EsqlFormat.Tsv: - writer.WriteStringValue("tsv"); - return; - case EsqlFormat.Smile: - writer.WriteStringValue("smile"); - return; - case EsqlFormat.Json: - writer.WriteStringValue("json"); - return; - case EsqlFormat.Csv: - writer.WriteStringValue("csv"); - return; - case EsqlFormat.Cbor: - writer.WriteStringValue("cbor"); - return; - case EsqlFormat.Arrow: - writer.WriteStringValue("arrow"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.IndexManagement.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.IndexManagement.g.cs deleted file mode 100644 index 8c629226390..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.IndexManagement.g.cs +++ /dev/null @@ -1,672 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -[JsonConverter(typeof(FeatureConverter))] -public enum Feature -{ - [EnumMember(Value = "settings")] - Settings, - [EnumMember(Value = "mappings")] - Mappings, - [EnumMember(Value = "aliases")] - Aliases -} - -internal sealed class FeatureConverter : JsonConverter -{ - public override Feature Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "settings": - return Feature.Settings; - case "mappings": - return Feature.Mappings; - case "aliases": - return Feature.Aliases; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Feature value, JsonSerializerOptions options) - { - switch (value) - { - case Feature.Settings: - writer.WriteStringValue("settings"); - return; - case Feature.Mappings: - writer.WriteStringValue("mappings"); - return; - case Feature.Aliases: - writer.WriteStringValue("aliases"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IndexCheckOnStartupConverter))] -public enum IndexCheckOnStartup -{ - [EnumMember(Value = "true")] - True, - [EnumMember(Value = "false")] - False, - [EnumMember(Value = "checksum")] - Checksum -} - -internal sealed class IndexCheckOnStartupConverter : JsonConverter -{ - public override IndexCheckOnStartup Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "true": - return IndexCheckOnStartup.True; - case "false": - return IndexCheckOnStartup.False; - case "checksum": - return IndexCheckOnStartup.Checksum; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndexCheckOnStartup value, JsonSerializerOptions options) - { - switch (value) - { - case IndexCheckOnStartup.True: - writer.WriteStringValue("true"); - return; - case IndexCheckOnStartup.False: - writer.WriteStringValue("false"); - return; - case IndexCheckOnStartup.Checksum: - writer.WriteStringValue("checksum"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IndexMetadataStateConverter))] -public enum IndexMetadataState -{ - [EnumMember(Value = "open")] - Open, - [EnumMember(Value = "close")] - Close -} - -internal sealed class IndexMetadataStateConverter : JsonConverter -{ - public override IndexMetadataState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "open": - return IndexMetadataState.Open; - case "close": - return IndexMetadataState.Close; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndexMetadataState value, JsonSerializerOptions options) - { - switch (value) - { - case IndexMetadataState.Open: - writer.WriteStringValue("open"); - return; - case IndexMetadataState.Close: - writer.WriteStringValue("close"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IndexRoutingAllocationOptionsConverter))] -public enum IndexRoutingAllocationOptions -{ - [EnumMember(Value = "primaries")] - Primaries, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "new_primaries")] - NewPrimaries, - [EnumMember(Value = "all")] - All -} - -internal sealed class IndexRoutingAllocationOptionsConverter : JsonConverter -{ - public override IndexRoutingAllocationOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "primaries": - return IndexRoutingAllocationOptions.Primaries; - case "none": - return IndexRoutingAllocationOptions.None; - case "new_primaries": - return IndexRoutingAllocationOptions.NewPrimaries; - case "all": - return IndexRoutingAllocationOptions.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndexRoutingAllocationOptions value, JsonSerializerOptions options) - { - switch (value) - { - case IndexRoutingAllocationOptions.Primaries: - writer.WriteStringValue("primaries"); - return; - case IndexRoutingAllocationOptions.None: - writer.WriteStringValue("none"); - return; - case IndexRoutingAllocationOptions.NewPrimaries: - writer.WriteStringValue("new_primaries"); - return; - case IndexRoutingAllocationOptions.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IndexRoutingRebalanceOptionsConverter))] -public enum IndexRoutingRebalanceOptions -{ - [EnumMember(Value = "replicas")] - Replicas, - [EnumMember(Value = "primaries")] - Primaries, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "all")] - All -} - -internal sealed class IndexRoutingRebalanceOptionsConverter : JsonConverter -{ - public override IndexRoutingRebalanceOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "replicas": - return IndexRoutingRebalanceOptions.Replicas; - case "primaries": - return IndexRoutingRebalanceOptions.Primaries; - case "none": - return IndexRoutingRebalanceOptions.None; - case "all": - return IndexRoutingRebalanceOptions.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndexRoutingRebalanceOptions value, JsonSerializerOptions options) - { - switch (value) - { - case IndexRoutingRebalanceOptions.Replicas: - writer.WriteStringValue("replicas"); - return; - case IndexRoutingRebalanceOptions.Primaries: - writer.WriteStringValue("primaries"); - return; - case IndexRoutingRebalanceOptions.None: - writer.WriteStringValue("none"); - return; - case IndexRoutingRebalanceOptions.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ManagedByConverter))] -public enum ManagedBy -{ - [EnumMember(Value = "Unmanaged")] - Unmanaged, - [EnumMember(Value = "Index Lifecycle Management")] - Ilm, - [EnumMember(Value = "Data stream lifecycle")] - Datastream -} - -internal sealed class ManagedByConverter : JsonConverter -{ - public override ManagedBy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "Unmanaged": - return ManagedBy.Unmanaged; - case "Index Lifecycle Management": - return ManagedBy.Ilm; - case "Data stream lifecycle": - return ManagedBy.Datastream; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ManagedBy value, JsonSerializerOptions options) - { - switch (value) - { - case ManagedBy.Unmanaged: - writer.WriteStringValue("Unmanaged"); - return; - case ManagedBy.Ilm: - writer.WriteStringValue("Index Lifecycle Management"); - return; - case ManagedBy.Datastream: - writer.WriteStringValue("Data stream lifecycle"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(NumericFielddataFormatConverter))] -public enum NumericFielddataFormat -{ - [EnumMember(Value = "disabled")] - Disabled, - [EnumMember(Value = "array")] - Array -} - -internal sealed class NumericFielddataFormatConverter : JsonConverter -{ - public override NumericFielddataFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "disabled": - return NumericFielddataFormat.Disabled; - case "array": - return NumericFielddataFormat.Array; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, NumericFielddataFormat value, JsonSerializerOptions options) - { - switch (value) - { - case NumericFielddataFormat.Disabled: - writer.WriteStringValue("disabled"); - return; - case NumericFielddataFormat.Array: - writer.WriteStringValue("array"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SegmentSortMissingConverter))] -public enum SegmentSortMissing -{ - [EnumMember(Value = "_last")] - Last, - [EnumMember(Value = "_first")] - First -} - -internal sealed class SegmentSortMissingConverter : JsonConverter -{ - public override SegmentSortMissing Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "_last": - return SegmentSortMissing.Last; - case "_first": - return SegmentSortMissing.First; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SegmentSortMissing value, JsonSerializerOptions options) - { - switch (value) - { - case SegmentSortMissing.Last: - writer.WriteStringValue("_last"); - return; - case SegmentSortMissing.First: - writer.WriteStringValue("_first"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SegmentSortModeConverter))] -public enum SegmentSortMode -{ - [EnumMember(Value = "min")] - Min, - [EnumMember(Value = "max")] - Max -} - -internal sealed class SegmentSortModeConverter : JsonConverter -{ - public override SegmentSortMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "min": - case "MIN": - return SegmentSortMode.Min; - case "max": - case "MAX": - return SegmentSortMode.Max; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SegmentSortMode value, JsonSerializerOptions options) - { - switch (value) - { - case SegmentSortMode.Min: - writer.WriteStringValue("min"); - return; - case SegmentSortMode.Max: - writer.WriteStringValue("max"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SegmentSortOrderConverter))] -public enum SegmentSortOrder -{ - [EnumMember(Value = "desc")] - Desc, - [EnumMember(Value = "asc")] - Asc -} - -internal sealed class SegmentSortOrderConverter : JsonConverter -{ - public override SegmentSortOrder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "desc": - case "DESC": - return SegmentSortOrder.Desc; - case "asc": - case "ASC": - return SegmentSortOrder.Asc; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SegmentSortOrder value, JsonSerializerOptions options) - { - switch (value) - { - case SegmentSortOrder.Desc: - writer.WriteStringValue("desc"); - return; - case SegmentSortOrder.Asc: - writer.WriteStringValue("asc"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ShardRoutingStateConverter))] -public enum ShardRoutingState -{ - [EnumMember(Value = "UNASSIGNED")] - Unassigned, - [EnumMember(Value = "STARTED")] - Started, - [EnumMember(Value = "RELOCATING")] - Relocating, - [EnumMember(Value = "INITIALIZING")] - Initializing -} - -internal sealed class ShardRoutingStateConverter : JsonConverter -{ - public override ShardRoutingState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "UNASSIGNED": - return ShardRoutingState.Unassigned; - case "STARTED": - return ShardRoutingState.Started; - case "RELOCATING": - return ShardRoutingState.Relocating; - case "INITIALIZING": - return ShardRoutingState.Initializing; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShardRoutingState value, JsonSerializerOptions options) - { - switch (value) - { - case ShardRoutingState.Unassigned: - writer.WriteStringValue("UNASSIGNED"); - return; - case ShardRoutingState.Started: - writer.WriteStringValue("STARTED"); - return; - case ShardRoutingState.Relocating: - writer.WriteStringValue("RELOCATING"); - return; - case ShardRoutingState.Initializing: - writer.WriteStringValue("INITIALIZING"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(EnumStructConverter))] -public readonly partial struct StorageType : IEnumStruct -{ - public StorageType(string value) => Value = value; - - StorageType IEnumStruct.Create(string value) => value; - - public readonly string Value { get; } - - /// - /// - /// The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO. It allows multiple - /// threads to read from the same file concurrently. It is not recommended on Windows because of a bug in the SUN Java - /// implementation and disables some optimizations for heap memory usage. - /// - /// - public static StorageType Niofs { get; } = new StorageType("niofs"); - - /// - /// - /// The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into - /// memory (mmap). Memory mapping uses up a portion of the virtual memory address space in your process equal to the size - /// of the file being mapped. Before using this class, be sure you have allowed plenty of virtual address space. - /// - /// - public static StorageType Mmapfs { get; } = new StorageType("mmapfs"); - - /// - /// - /// The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file - /// based on the read access pattern. Currently only the Lucene term dictionary, norms and doc values files are memory - /// mapped. All other files are opened using Lucene NIOFSDirectory. Similarly to mmapfs be sure you have allowed - /// plenty of virtual address space. - /// - /// - public static StorageType Hybridfs { get; } = new StorageType("hybridfs"); - - /// - /// - /// Default file system implementation. This will pick the best implementation depending on the operating environment, which - /// is currently hybridfs on all supported systems but is subject to change. - /// - /// - public static StorageType Fs { get; } = new StorageType("fs"); - - public override string ToString() => Value ?? string.Empty; - - public static implicit operator string(StorageType storageType) => storageType.Value; - public static implicit operator StorageType(string value) => new(value); - - public override int GetHashCode() => Value.GetHashCode(); - public override bool Equals(object obj) => obj is StorageType other && this.Equals(other); - public bool Equals(StorageType other) => Value == other.Value; - - public static bool operator ==(StorageType a, StorageType b) => a.Equals(b); - public static bool operator !=(StorageType a, StorageType b) => !(a == b); -} - -[JsonConverter(typeof(TranslogDurabilityConverter))] -public enum TranslogDurability -{ - /// - /// - /// (default) fsync and commit after every request. In the event of hardware failure, all acknowledged writes - /// will already have been committed to disk. - /// - /// - [EnumMember(Value = "request")] - Request, - /// - /// - /// fsync and commit in the background every sync_interval. In the event of a failure, all acknowledged writes - /// since the last automatic commit will be discarded. - /// - /// - [EnumMember(Value = "async")] - Async -} - -internal sealed class TranslogDurabilityConverter : JsonConverter -{ - public override TranslogDurability Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "request": - case "REQUEST": - return TranslogDurability.Request; - case "async": - case "ASYNC": - return TranslogDurability.Async; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TranslogDurability value, JsonSerializerOptions options) - { - switch (value) - { - case TranslogDurability.Request: - writer.WriteStringValue("request"); - return; - case TranslogDurability.Async: - writer.WriteStringValue("async"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs deleted file mode 100644 index 2a4deee6213..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Inference.g.cs +++ /dev/null @@ -1,85 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Inference; - -[JsonConverter(typeof(TaskTypeConverter))] -public enum TaskType -{ - [EnumMember(Value = "text_embedding")] - TextEmbedding, - [EnumMember(Value = "sparse_embedding")] - SparseEmbedding, - [EnumMember(Value = "rerank")] - Rerank, - [EnumMember(Value = "completion")] - Completion -} - -internal sealed class TaskTypeConverter : JsonConverter -{ - public override TaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "text_embedding": - return TaskType.TextEmbedding; - case "sparse_embedding": - return TaskType.SparseEmbedding; - case "rerank": - return TaskType.Rerank; - case "completion": - return TaskType.Completion; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TaskType value, JsonSerializerOptions options) - { - switch (value) - { - case TaskType.TextEmbedding: - writer.WriteStringValue("text_embedding"); - return; - case TaskType.SparseEmbedding: - writer.WriteStringValue("sparse_embedding"); - return; - case TaskType.Rerank: - writer.WriteStringValue("rerank"); - return; - case TaskType.Completion: - writer.WriteStringValue("completion"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs deleted file mode 100644 index 81ceefaf2ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Ingest.g.cs +++ /dev/null @@ -1,424 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -[JsonConverter(typeof(ConvertTypeConverter))] -public enum ConvertType -{ - [EnumMember(Value = "string")] - String, - [EnumMember(Value = "long")] - Long, - [EnumMember(Value = "ip")] - Ip, - [EnumMember(Value = "integer")] - Integer, - [EnumMember(Value = "float")] - Float, - [EnumMember(Value = "double")] - Double, - [EnumMember(Value = "boolean")] - Boolean, - [EnumMember(Value = "auto")] - Auto -} - -internal sealed class ConvertTypeConverter : JsonConverter -{ - public override ConvertType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "string": - return ConvertType.String; - case "long": - return ConvertType.Long; - case "ip": - return ConvertType.Ip; - case "integer": - return ConvertType.Integer; - case "float": - return ConvertType.Float; - case "double": - return ConvertType.Double; - case "boolean": - return ConvertType.Boolean; - case "auto": - return ConvertType.Auto; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ConvertType value, JsonSerializerOptions options) - { - switch (value) - { - case ConvertType.String: - writer.WriteStringValue("string"); - return; - case ConvertType.Long: - writer.WriteStringValue("long"); - return; - case ConvertType.Ip: - writer.WriteStringValue("ip"); - return; - case ConvertType.Integer: - writer.WriteStringValue("integer"); - return; - case ConvertType.Float: - writer.WriteStringValue("float"); - return; - case ConvertType.Double: - writer.WriteStringValue("double"); - return; - case ConvertType.Boolean: - writer.WriteStringValue("boolean"); - return; - case ConvertType.Auto: - writer.WriteStringValue("auto"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FingerprintDigestConverter))] -public enum FingerprintDigest -{ - [EnumMember(Value = "SHA-512")] - Sha512, - [EnumMember(Value = "SHA-256")] - Sha256, - [EnumMember(Value = "SHA-1")] - Sha1, - [EnumMember(Value = "MurmurHash3")] - Murmurhash3, - [EnumMember(Value = "MD5")] - Md5 -} - -internal sealed class FingerprintDigestConverter : JsonConverter -{ - public override FingerprintDigest Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "SHA-512": - return FingerprintDigest.Sha512; - case "SHA-256": - return FingerprintDigest.Sha256; - case "SHA-1": - return FingerprintDigest.Sha1; - case "MurmurHash3": - return FingerprintDigest.Murmurhash3; - case "MD5": - return FingerprintDigest.Md5; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FingerprintDigest value, JsonSerializerOptions options) - { - switch (value) - { - case FingerprintDigest.Sha512: - writer.WriteStringValue("SHA-512"); - return; - case FingerprintDigest.Sha256: - writer.WriteStringValue("SHA-256"); - return; - case FingerprintDigest.Sha1: - writer.WriteStringValue("SHA-1"); - return; - case FingerprintDigest.Murmurhash3: - writer.WriteStringValue("MurmurHash3"); - return; - case FingerprintDigest.Md5: - writer.WriteStringValue("MD5"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoGridTargetFormatConverter))] -public enum GeoGridTargetFormat -{ - [EnumMember(Value = "wkt")] - Wkt, - [EnumMember(Value = "geojson")] - Geojson -} - -internal sealed class GeoGridTargetFormatConverter : JsonConverter -{ - public override GeoGridTargetFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "wkt": - return GeoGridTargetFormat.Wkt; - case "geojson": - return GeoGridTargetFormat.Geojson; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoGridTargetFormat value, JsonSerializerOptions options) - { - switch (value) - { - case GeoGridTargetFormat.Wkt: - writer.WriteStringValue("wkt"); - return; - case GeoGridTargetFormat.Geojson: - writer.WriteStringValue("geojson"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoGridTileTypeConverter))] -public enum GeoGridTileType -{ - [EnumMember(Value = "geotile")] - Geotile, - [EnumMember(Value = "geohex")] - Geohex, - [EnumMember(Value = "geohash")] - Geohash -} - -internal sealed class GeoGridTileTypeConverter : JsonConverter -{ - public override GeoGridTileType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "geotile": - return GeoGridTileType.Geotile; - case "geohex": - return GeoGridTileType.Geohex; - case "geohash": - return GeoGridTileType.Geohash; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoGridTileType value, JsonSerializerOptions options) - { - switch (value) - { - case GeoGridTileType.Geotile: - writer.WriteStringValue("geotile"); - return; - case GeoGridTileType.Geohex: - writer.WriteStringValue("geohex"); - return; - case GeoGridTileType.Geohash: - writer.WriteStringValue("geohash"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(JsonProcessorConflictStrategyConverter))] -public enum JsonProcessorConflictStrategy -{ - /// - /// - /// Root fields that conflict with fields from the parsed JSON will be overridden. - /// - /// - [EnumMember(Value = "replace")] - Replace, - /// - /// - /// Conflicting fields will be merged. - /// - /// - [EnumMember(Value = "merge")] - Merge -} - -internal sealed class JsonProcessorConflictStrategyConverter : JsonConverter -{ - public override JsonProcessorConflictStrategy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "replace": - return JsonProcessorConflictStrategy.Replace; - case "merge": - return JsonProcessorConflictStrategy.Merge; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, JsonProcessorConflictStrategy value, JsonSerializerOptions options) - { - switch (value) - { - case JsonProcessorConflictStrategy.Replace: - writer.WriteStringValue("replace"); - return; - case JsonProcessorConflictStrategy.Merge: - writer.WriteStringValue("merge"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ShapeTypeConverter))] -public enum ShapeType -{ - [EnumMember(Value = "shape")] - Shape, - [EnumMember(Value = "geo_shape")] - GeoShape -} - -internal sealed class ShapeTypeConverter : JsonConverter -{ - public override ShapeType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "shape": - return ShapeType.Shape; - case "geo_shape": - return ShapeType.GeoShape; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShapeType value, JsonSerializerOptions options) - { - switch (value) - { - case ShapeType.Shape: - writer.WriteStringValue("shape"); - return; - case ShapeType.GeoShape: - writer.WriteStringValue("geo_shape"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(UserAgentPropertyConverter))] -public enum UserAgentProperty -{ - [EnumMember(Value = "version")] - Version, - [EnumMember(Value = "os")] - Os, - [EnumMember(Value = "original")] - Original, - [EnumMember(Value = "name")] - Name, - [EnumMember(Value = "device")] - Device -} - -internal sealed class UserAgentPropertyConverter : JsonConverter -{ - public override UserAgentProperty Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "version": - return UserAgentProperty.Version; - case "os": - return UserAgentProperty.Os; - case "original": - return UserAgentProperty.Original; - case "name": - return UserAgentProperty.Name; - case "device": - return UserAgentProperty.Device; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, UserAgentProperty value, JsonSerializerOptions options) - { - switch (value) - { - case UserAgentProperty.Version: - writer.WriteStringValue("version"); - return; - case UserAgentProperty.Os: - writer.WriteStringValue("os"); - return; - case UserAgentProperty.Original: - writer.WriteStringValue("original"); - return; - case UserAgentProperty.Name: - writer.WriteStringValue("name"); - return; - case UserAgentProperty.Device: - writer.WriteStringValue("device"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.LicenseManagement.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.LicenseManagement.g.cs deleted file mode 100644 index 70a028f6e76..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.LicenseManagement.g.cs +++ /dev/null @@ -1,176 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.LicenseManagement; - -[JsonConverter(typeof(LicenseStatusConverter))] -public enum LicenseStatus -{ - [EnumMember(Value = "valid")] - Valid, - [EnumMember(Value = "invalid")] - Invalid, - [EnumMember(Value = "expired")] - Expired, - [EnumMember(Value = "active")] - Active -} - -internal sealed class LicenseStatusConverter : JsonConverter -{ - public override LicenseStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "valid": - return LicenseStatus.Valid; - case "invalid": - return LicenseStatus.Invalid; - case "expired": - return LicenseStatus.Expired; - case "active": - return LicenseStatus.Active; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, LicenseStatus value, JsonSerializerOptions options) - { - switch (value) - { - case LicenseStatus.Valid: - writer.WriteStringValue("valid"); - return; - case LicenseStatus.Invalid: - writer.WriteStringValue("invalid"); - return; - case LicenseStatus.Expired: - writer.WriteStringValue("expired"); - return; - case LicenseStatus.Active: - writer.WriteStringValue("active"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(LicenseTypeConverter))] -public enum LicenseType -{ - [EnumMember(Value = "trial")] - Trial, - [EnumMember(Value = "standard")] - Standard, - [EnumMember(Value = "silver")] - Silver, - [EnumMember(Value = "platinum")] - Platinum, - [EnumMember(Value = "missing")] - Missing, - [EnumMember(Value = "gold")] - Gold, - [EnumMember(Value = "enterprise")] - Enterprise, - [EnumMember(Value = "dev")] - Dev, - [EnumMember(Value = "basic")] - Basic -} - -internal sealed class LicenseTypeConverter : JsonConverter -{ - public override LicenseType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "trial": - return LicenseType.Trial; - case "standard": - return LicenseType.Standard; - case "silver": - return LicenseType.Silver; - case "platinum": - return LicenseType.Platinum; - case "missing": - return LicenseType.Missing; - case "gold": - return LicenseType.Gold; - case "enterprise": - return LicenseType.Enterprise; - case "dev": - return LicenseType.Dev; - case "basic": - return LicenseType.Basic; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, LicenseType value, JsonSerializerOptions options) - { - switch (value) - { - case LicenseType.Trial: - writer.WriteStringValue("trial"); - return; - case LicenseType.Standard: - writer.WriteStringValue("standard"); - return; - case LicenseType.Silver: - writer.WriteStringValue("silver"); - return; - case LicenseType.Platinum: - writer.WriteStringValue("platinum"); - return; - case LicenseType.Missing: - writer.WriteStringValue("missing"); - return; - case LicenseType.Gold: - writer.WriteStringValue("gold"); - return; - case LicenseType.Enterprise: - writer.WriteStringValue("enterprise"); - return; - case LicenseType.Dev: - writer.WriteStringValue("dev"); - return; - case LicenseType.Basic: - writer.WriteStringValue("basic"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs deleted file mode 100644 index 31515f05fd6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.MachineLearning.g.cs +++ /dev/null @@ -1,1223 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -[JsonConverter(typeof(AppliesToConverter))] -public enum AppliesTo -{ - [EnumMember(Value = "typical")] - Typical, - [EnumMember(Value = "time")] - Time, - [EnumMember(Value = "diff_from_typical")] - DiffFromTypical, - [EnumMember(Value = "actual")] - Actual -} - -internal sealed class AppliesToConverter : JsonConverter -{ - public override AppliesTo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "typical": - return AppliesTo.Typical; - case "time": - return AppliesTo.Time; - case "diff_from_typical": - return AppliesTo.DiffFromTypical; - case "actual": - return AppliesTo.Actual; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, AppliesTo value, JsonSerializerOptions options) - { - switch (value) - { - case AppliesTo.Typical: - writer.WriteStringValue("typical"); - return; - case AppliesTo.Time: - writer.WriteStringValue("time"); - return; - case AppliesTo.DiffFromTypical: - writer.WriteStringValue("diff_from_typical"); - return; - case AppliesTo.Actual: - writer.WriteStringValue("actual"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(CategorizationStatusConverter))] -public enum CategorizationStatus -{ - [EnumMember(Value = "warn")] - Warn, - [EnumMember(Value = "ok")] - Ok -} - -internal sealed class CategorizationStatusConverter : JsonConverter -{ - public override CategorizationStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "warn": - return CategorizationStatus.Warn; - case "ok": - return CategorizationStatus.Ok; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, CategorizationStatus value, JsonSerializerOptions options) - { - switch (value) - { - case CategorizationStatus.Warn: - writer.WriteStringValue("warn"); - return; - case CategorizationStatus.Ok: - writer.WriteStringValue("ok"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ChunkingModeConverter))] -public enum ChunkingMode -{ - [EnumMember(Value = "off")] - Off, - [EnumMember(Value = "manual")] - Manual, - [EnumMember(Value = "auto")] - Auto -} - -internal sealed class ChunkingModeConverter : JsonConverter -{ - public override ChunkingMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "off": - return ChunkingMode.Off; - case "manual": - return ChunkingMode.Manual; - case "auto": - return ChunkingMode.Auto; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ChunkingMode value, JsonSerializerOptions options) - { - switch (value) - { - case ChunkingMode.Off: - writer.WriteStringValue("off"); - return; - case ChunkingMode.Manual: - writer.WriteStringValue("manual"); - return; - case ChunkingMode.Auto: - writer.WriteStringValue("auto"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ConditionOperatorConverter))] -public enum ConditionOperator -{ - [EnumMember(Value = "lte")] - Lte, - [EnumMember(Value = "lt")] - Lt, - [EnumMember(Value = "gte")] - Gte, - [EnumMember(Value = "gt")] - Gt -} - -internal sealed class ConditionOperatorConverter : JsonConverter -{ - public override ConditionOperator Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "lte": - return ConditionOperator.Lte; - case "lt": - return ConditionOperator.Lt; - case "gte": - return ConditionOperator.Gte; - case "gt": - return ConditionOperator.Gt; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ConditionOperator value, JsonSerializerOptions options) - { - switch (value) - { - case ConditionOperator.Lte: - writer.WriteStringValue("lte"); - return; - case ConditionOperator.Lt: - writer.WriteStringValue("lt"); - return; - case ConditionOperator.Gte: - writer.WriteStringValue("gte"); - return; - case ConditionOperator.Gt: - writer.WriteStringValue("gt"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DatafeedStateConverter))] -public enum DatafeedState -{ - [EnumMember(Value = "stopping")] - Stopping, - [EnumMember(Value = "stopped")] - Stopped, - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started -} - -internal sealed class DatafeedStateConverter : JsonConverter -{ - public override DatafeedState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DatafeedState.Stopping; - case "stopped": - return DatafeedState.Stopped; - case "starting": - return DatafeedState.Starting; - case "started": - return DatafeedState.Started; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DatafeedState value, JsonSerializerOptions options) - { - switch (value) - { - case DatafeedState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DatafeedState.Stopped: - writer.WriteStringValue("stopped"); - return; - case DatafeedState.Starting: - writer.WriteStringValue("starting"); - return; - case DatafeedState.Started: - writer.WriteStringValue("started"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DataframeStateConverter))] -public enum DataframeState -{ - [EnumMember(Value = "stopping")] - Stopping, - [EnumMember(Value = "stopped")] - Stopped, - [EnumMember(Value = "starting")] - Starting, - [EnumMember(Value = "started")] - Started, - [EnumMember(Value = "failed")] - Failed -} - -internal sealed class DataframeStateConverter : JsonConverter -{ - public override DataframeState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DataframeState.Stopping; - case "stopped": - return DataframeState.Stopped; - case "starting": - return DataframeState.Starting; - case "started": - return DataframeState.Started; - case "failed": - return DataframeState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DataframeState value, JsonSerializerOptions options) - { - switch (value) - { - case DataframeState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DataframeState.Stopped: - writer.WriteStringValue("stopped"); - return; - case DataframeState.Starting: - writer.WriteStringValue("starting"); - return; - case DataframeState.Started: - writer.WriteStringValue("started"); - return; - case DataframeState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DeploymentAllocationStateConverter))] -public enum DeploymentAllocationState -{ - /// - /// - /// Trained model deployment is starting but it is not yet deployed on any nodes. - /// - /// - [EnumMember(Value = "starting")] - Starting, - /// - /// - /// The trained model is started on at least one node. - /// - /// - [EnumMember(Value = "started")] - Started, - /// - /// - /// Trained model deployment has started on all valid nodes. - /// - /// - [EnumMember(Value = "fully_allocated")] - FullyAllocated -} - -internal sealed class DeploymentAllocationStateConverter : JsonConverter -{ - public override DeploymentAllocationState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "starting": - return DeploymentAllocationState.Starting; - case "started": - return DeploymentAllocationState.Started; - case "fully_allocated": - return DeploymentAllocationState.FullyAllocated; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentAllocationState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentAllocationState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentAllocationState.Started: - writer.WriteStringValue("started"); - return; - case DeploymentAllocationState.FullyAllocated: - writer.WriteStringValue("fully_allocated"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DeploymentAssignmentStateConverter))] -public enum DeploymentAssignmentState -{ - /// - /// - /// The deployment is preparing to stop and deallocate the model from the relevant nodes. - /// - /// - [EnumMember(Value = "stopping")] - Stopping, - /// - /// - /// The deployment has recently started but is not yet usable; the model is not allocated on any nodes. - /// - /// - [EnumMember(Value = "starting")] - Starting, - /// - /// - /// The deployment is usable; at least one node has the model allocated. - /// - /// - [EnumMember(Value = "started")] - Started, - /// - /// - /// The deployment is on a failed state and must be re-deployed. - /// - /// - [EnumMember(Value = "failed")] - Failed -} - -internal sealed class DeploymentAssignmentStateConverter : JsonConverter -{ - public override DeploymentAssignmentState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return DeploymentAssignmentState.Stopping; - case "starting": - return DeploymentAssignmentState.Starting; - case "started": - return DeploymentAssignmentState.Started; - case "failed": - return DeploymentAssignmentState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DeploymentAssignmentState value, JsonSerializerOptions options) - { - switch (value) - { - case DeploymentAssignmentState.Stopping: - writer.WriteStringValue("stopping"); - return; - case DeploymentAssignmentState.Starting: - writer.WriteStringValue("starting"); - return; - case DeploymentAssignmentState.Started: - writer.WriteStringValue("started"); - return; - case DeploymentAssignmentState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ExcludeFrequentConverter))] -public enum ExcludeFrequent -{ - [EnumMember(Value = "over")] - Over, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "by")] - By, - [EnumMember(Value = "all")] - All -} - -internal sealed class ExcludeFrequentConverter : JsonConverter -{ - public override ExcludeFrequent Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "over": - return ExcludeFrequent.Over; - case "none": - return ExcludeFrequent.None; - case "by": - return ExcludeFrequent.By; - case "all": - return ExcludeFrequent.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ExcludeFrequent value, JsonSerializerOptions options) - { - switch (value) - { - case ExcludeFrequent.Over: - writer.WriteStringValue("over"); - return; - case ExcludeFrequent.None: - writer.WriteStringValue("none"); - return; - case ExcludeFrequent.By: - writer.WriteStringValue("by"); - return; - case ExcludeFrequent.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FilterTypeConverter))] -public enum FilterType -{ - [EnumMember(Value = "include")] - Include, - [EnumMember(Value = "exclude")] - Exclude -} - -internal sealed class FilterTypeConverter : JsonConverter -{ - public override FilterType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "include": - return FilterType.Include; - case "exclude": - return FilterType.Exclude; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FilterType value, JsonSerializerOptions options) - { - switch (value) - { - case FilterType.Include: - writer.WriteStringValue("include"); - return; - case FilterType.Exclude: - writer.WriteStringValue("exclude"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IncludeConverter))] -public enum Include -{ - /// - /// - /// Includes the total feature importance for the training data set. The - /// baseline and total feature importance values are returned in the metadata - /// field in the response body. - /// - /// - [EnumMember(Value = "total_feature_importance")] - TotalFeatureImportance, - /// - /// - /// Includes the information about hyperparameters used to train the model. - /// This information consists of the value, the absolute and relative - /// importance of the hyperparameter as well as an indicator of whether it was - /// specified by the user or tuned during hyperparameter optimization. - /// - /// - [EnumMember(Value = "hyperparameters")] - Hyperparameters, - /// - /// - /// Includes the baseline for feature importance values. - /// - /// - [EnumMember(Value = "feature_importance_baseline")] - FeatureImportanceBaseline, - /// - /// - /// Includes the model definition status. - /// - /// - [EnumMember(Value = "definition_status")] - DefinitionStatus, - /// - /// - /// Includes the model definition. - /// - /// - [EnumMember(Value = "definition")] - Definition -} - -internal sealed class IncludeConverter : JsonConverter -{ - public override Include Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "total_feature_importance": - return Include.TotalFeatureImportance; - case "hyperparameters": - return Include.Hyperparameters; - case "feature_importance_baseline": - return Include.FeatureImportanceBaseline; - case "definition_status": - return Include.DefinitionStatus; - case "definition": - return Include.Definition; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Include value, JsonSerializerOptions options) - { - switch (value) - { - case Include.TotalFeatureImportance: - writer.WriteStringValue("total_feature_importance"); - return; - case Include.Hyperparameters: - writer.WriteStringValue("hyperparameters"); - return; - case Include.FeatureImportanceBaseline: - writer.WriteStringValue("feature_importance_baseline"); - return; - case Include.DefinitionStatus: - writer.WriteStringValue("definition_status"); - return; - case Include.Definition: - writer.WriteStringValue("definition"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(JobBlockedReasonConverter))] -public enum JobBlockedReason -{ - [EnumMember(Value = "revert")] - Revert, - [EnumMember(Value = "reset")] - Reset, - [EnumMember(Value = "delete")] - Delete -} - -internal sealed class JobBlockedReasonConverter : JsonConverter -{ - public override JobBlockedReason Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "revert": - return JobBlockedReason.Revert; - case "reset": - return JobBlockedReason.Reset; - case "delete": - return JobBlockedReason.Delete; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, JobBlockedReason value, JsonSerializerOptions options) - { - switch (value) - { - case JobBlockedReason.Revert: - writer.WriteStringValue("revert"); - return; - case JobBlockedReason.Reset: - writer.WriteStringValue("reset"); - return; - case JobBlockedReason.Delete: - writer.WriteStringValue("delete"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(JobStateConverter))] -public enum JobState -{ - /// - /// - /// The job open action is in progress and has not yet completed. - /// - /// - [EnumMember(Value = "opening")] - Opening, - /// - /// - /// The job is available to receive and process data. - /// - /// - [EnumMember(Value = "opened")] - Opened, - /// - /// - /// The job did not finish successfully due to an error. - /// This situation can occur due to invalid input data, a fatal error occurring during the analysis, or an external interaction such as the process being killed by the Linux out of memory (OOM) killer. - /// If the job had irrevocably failed, it must be force closed and then deleted. - /// If the datafeed can be corrected, the job can be closed and then re-opened. - /// - /// - [EnumMember(Value = "failed")] - Failed, - /// - /// - /// The job close action is in progress and has not yet completed. A closing job cannot accept further data. - /// - /// - [EnumMember(Value = "closing")] - Closing, - /// - /// - /// The job finished successfully with its model state persisted. The job must be opened before it can accept further data. - /// - /// - [EnumMember(Value = "closed")] - Closed -} - -internal sealed class JobStateConverter : JsonConverter -{ - public override JobState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "opening": - return JobState.Opening; - case "opened": - return JobState.Opened; - case "failed": - return JobState.Failed; - case "closing": - return JobState.Closing; - case "closed": - return JobState.Closed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, JobState value, JsonSerializerOptions options) - { - switch (value) - { - case JobState.Opening: - writer.WriteStringValue("opening"); - return; - case JobState.Opened: - writer.WriteStringValue("opened"); - return; - case JobState.Failed: - writer.WriteStringValue("failed"); - return; - case JobState.Closing: - writer.WriteStringValue("closing"); - return; - case JobState.Closed: - writer.WriteStringValue("closed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(MemoryStatusConverter))] -public enum MemoryStatus -{ - [EnumMember(Value = "soft_limit")] - SoftLimit, - [EnumMember(Value = "ok")] - Ok, - [EnumMember(Value = "hard_limit")] - HardLimit -} - -internal sealed class MemoryStatusConverter : JsonConverter -{ - public override MemoryStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "soft_limit": - return MemoryStatus.SoftLimit; - case "ok": - return MemoryStatus.Ok; - case "hard_limit": - return MemoryStatus.HardLimit; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, MemoryStatus value, JsonSerializerOptions options) - { - switch (value) - { - case MemoryStatus.SoftLimit: - writer.WriteStringValue("soft_limit"); - return; - case MemoryStatus.Ok: - writer.WriteStringValue("ok"); - return; - case MemoryStatus.HardLimit: - writer.WriteStringValue("hard_limit"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(RoutingStateConverter))] -public enum RoutingState -{ - /// - /// - /// The trained model is being deallocated from this node. - /// - /// - [EnumMember(Value = "stopping")] - Stopping, - /// - /// - /// The trained model is fully deallocated from this node. - /// - /// - [EnumMember(Value = "stopped")] - Stopped, - /// - /// - /// The trained model is attempting to allocate on this node; inference requests are not yet accepted. - /// - /// - [EnumMember(Value = "starting")] - Starting, - /// - /// - /// The trained model is allocated and ready to accept inference requests. - /// - /// - [EnumMember(Value = "started")] - Started, - /// - /// - /// The allocation attempt failed. - /// - /// - [EnumMember(Value = "failed")] - Failed -} - -internal sealed class RoutingStateConverter : JsonConverter -{ - public override RoutingState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopping": - return RoutingState.Stopping; - case "stopped": - return RoutingState.Stopped; - case "starting": - return RoutingState.Starting; - case "started": - return RoutingState.Started; - case "failed": - return RoutingState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RoutingState value, JsonSerializerOptions options) - { - switch (value) - { - case RoutingState.Stopping: - writer.WriteStringValue("stopping"); - return; - case RoutingState.Stopped: - writer.WriteStringValue("stopped"); - return; - case RoutingState.Starting: - writer.WriteStringValue("starting"); - return; - case RoutingState.Started: - writer.WriteStringValue("started"); - return; - case RoutingState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(RuleActionConverter))] -public enum RuleAction -{ - /// - /// - /// The result will not be created. Unless you also specify skip_model_update, the model will be updated as usual with the corresponding series value. - /// - /// - [EnumMember(Value = "skip_result")] - SkipResult, - /// - /// - /// The value for that series will not be used to update the model. Unless you also specify skip_result, the results will be created as usual. This action is suitable when certain values are expected to be consistently anomalous and they affect the model in a way that negatively impacts the rest of the results. - /// - /// - [EnumMember(Value = "skip_model_update")] - SkipModelUpdate -} - -internal sealed class RuleActionConverter : JsonConverter -{ - public override RuleAction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "skip_result": - return RuleAction.SkipResult; - case "skip_model_update": - return RuleAction.SkipModelUpdate; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RuleAction value, JsonSerializerOptions options) - { - switch (value) - { - case RuleAction.SkipResult: - writer.WriteStringValue("skip_result"); - return; - case RuleAction.SkipModelUpdate: - writer.WriteStringValue("skip_model_update"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SnapshotUpgradeStateConverter))] -public enum SnapshotUpgradeState -{ - [EnumMember(Value = "stopped")] - Stopped, - [EnumMember(Value = "saving_new_state")] - SavingNewState, - [EnumMember(Value = "loading_old_state")] - LoadingOldState, - [EnumMember(Value = "failed")] - Failed -} - -internal sealed class SnapshotUpgradeStateConverter : JsonConverter -{ - public override SnapshotUpgradeState Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "stopped": - return SnapshotUpgradeState.Stopped; - case "saving_new_state": - return SnapshotUpgradeState.SavingNewState; - case "loading_old_state": - return SnapshotUpgradeState.LoadingOldState; - case "failed": - return SnapshotUpgradeState.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SnapshotUpgradeState value, JsonSerializerOptions options) - { - switch (value) - { - case SnapshotUpgradeState.Stopped: - writer.WriteStringValue("stopped"); - return; - case SnapshotUpgradeState.SavingNewState: - writer.WriteStringValue("saving_new_state"); - return; - case SnapshotUpgradeState.LoadingOldState: - writer.WriteStringValue("loading_old_state"); - return; - case SnapshotUpgradeState.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TokenizationTruncateConverter))] -public enum TokenizationTruncate -{ - [EnumMember(Value = "second")] - Second, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "first")] - First -} - -internal sealed class TokenizationTruncateConverter : JsonConverter -{ - public override TokenizationTruncate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "second": - return TokenizationTruncate.Second; - case "none": - return TokenizationTruncate.None; - case "first": - return TokenizationTruncate.First; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TokenizationTruncate value, JsonSerializerOptions options) - { - switch (value) - { - case TokenizationTruncate.Second: - writer.WriteStringValue("second"); - return; - case TokenizationTruncate.None: - writer.WriteStringValue("none"); - return; - case TokenizationTruncate.First: - writer.WriteStringValue("first"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TrainedModelTypeConverter))] -public enum TrainedModelType -{ - /// - /// - /// The model definition is an ensemble model of decision trees. - /// - /// - [EnumMember(Value = "tree_ensemble")] - TreeEnsemble, - /// - /// - /// The stored definition is a PyTorch (specifically a TorchScript) model. - /// Currently only NLP models are supported. - /// - /// - [EnumMember(Value = "pytorch")] - Pytorch, - /// - /// - /// A special type reserved for language identification models. - /// - /// - [EnumMember(Value = "lang_ident")] - LangIdent -} - -internal sealed class TrainedModelTypeConverter : JsonConverter -{ - public override TrainedModelType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "tree_ensemble": - return TrainedModelType.TreeEnsemble; - case "pytorch": - return TrainedModelType.Pytorch; - case "lang_ident": - return TrainedModelType.LangIdent; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TrainedModelType value, JsonSerializerOptions options) - { - switch (value) - { - case TrainedModelType.TreeEnsemble: - writer.WriteStringValue("tree_ensemble"); - return; - case TrainedModelType.Pytorch: - writer.WriteStringValue("pytorch"); - return; - case TrainedModelType.LangIdent: - writer.WriteStringValue("lang_ident"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TrainingPriorityConverter))] -public enum TrainingPriority -{ - [EnumMember(Value = "normal")] - Normal, - [EnumMember(Value = "low")] - Low -} - -internal sealed class TrainingPriorityConverter : JsonConverter -{ - public override TrainingPriority Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "normal": - return TrainingPriority.Normal; - case "low": - return TrainingPriority.Low; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TrainingPriority value, JsonSerializerOptions options) - { - switch (value) - { - case TrainingPriority.Normal: - writer.WriteStringValue("normal"); - return; - case TrainingPriority.Low: - writer.WriteStringValue("low"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs deleted file mode 100644 index 35464a20739..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs +++ /dev/null @@ -1,1250 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; - -[JsonConverter(typeof(DenseVectorElementTypeConverter))] -public enum DenseVectorElementType -{ - /// - /// - /// Indexes a 4-byte floating-point value per dimension. - /// - /// - [EnumMember(Value = "float")] - Float, - /// - /// - /// Indexes a 1-byte integer value per dimension. - /// - /// - [EnumMember(Value = "byte")] - Byte, - /// - /// - /// Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support - /// bit vectors. - /// - /// - /// NOTE: when using bit, the number of dimensions must be a multiple of 8 and must represent the number of bits. - /// - /// - [EnumMember(Value = "bit")] - Bit -} - -internal sealed class DenseVectorElementTypeConverter : JsonConverter -{ - public override DenseVectorElementType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "float": - return DenseVectorElementType.Float; - case "byte": - return DenseVectorElementType.Byte; - case "bit": - return DenseVectorElementType.Bit; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DenseVectorElementType value, JsonSerializerOptions options) - { - switch (value) - { - case DenseVectorElementType.Float: - writer.WriteStringValue("float"); - return; - case DenseVectorElementType.Byte: - writer.WriteStringValue("byte"); - return; - case DenseVectorElementType.Bit: - writer.WriteStringValue("bit"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DenseVectorIndexOptionsTypeConverter))] -public enum DenseVectorIndexOptionsType -{ - /// - /// - /// The default index type for float vectors. This utilizes the HNSW algorithm in addition to automatically scalar - /// quantization for scalable approximate kNN search with element_type of float. - /// - /// - /// This can reduce the memory footprint by 4x at the cost of some accuracy. - /// - /// - [EnumMember(Value = "int8_hnsw")] - Int8Hnsw, - /// - /// - /// This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports - /// element_type of float. - /// - /// - [EnumMember(Value = "int8_flat")] - Int8Flat, - /// - /// - /// This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN - /// search with element_type of float. - /// - /// - /// This can reduce the memory footprint by 8x at the cost of some accuracy. - /// - /// - [EnumMember(Value = "int4_hnsw")] - Int4Hnsw, - /// - /// - /// This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization. - /// Only supports element_type of float. - /// - /// - [EnumMember(Value = "int4_flat")] - Int4Flat, - /// - /// - /// This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all element_type values. - /// - /// - [EnumMember(Value = "hnsw")] - Hnsw, - /// - /// - /// This utilizes a brute-force search algorithm for exact kNN search. This supports all element_type values. - /// - /// - [EnumMember(Value = "flat")] - Flat -} - -internal sealed class DenseVectorIndexOptionsTypeConverter : JsonConverter -{ - public override DenseVectorIndexOptionsType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "int8_hnsw": - return DenseVectorIndexOptionsType.Int8Hnsw; - case "int8_flat": - return DenseVectorIndexOptionsType.Int8Flat; - case "int4_hnsw": - return DenseVectorIndexOptionsType.Int4Hnsw; - case "int4_flat": - return DenseVectorIndexOptionsType.Int4Flat; - case "hnsw": - return DenseVectorIndexOptionsType.Hnsw; - case "flat": - return DenseVectorIndexOptionsType.Flat; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DenseVectorIndexOptionsType value, JsonSerializerOptions options) - { - switch (value) - { - case DenseVectorIndexOptionsType.Int8Hnsw: - writer.WriteStringValue("int8_hnsw"); - return; - case DenseVectorIndexOptionsType.Int8Flat: - writer.WriteStringValue("int8_flat"); - return; - case DenseVectorIndexOptionsType.Int4Hnsw: - writer.WriteStringValue("int4_hnsw"); - return; - case DenseVectorIndexOptionsType.Int4Flat: - writer.WriteStringValue("int4_flat"); - return; - case DenseVectorIndexOptionsType.Hnsw: - writer.WriteStringValue("hnsw"); - return; - case DenseVectorIndexOptionsType.Flat: - writer.WriteStringValue("flat"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DenseVectorSimilarityConverter))] -public enum DenseVectorSimilarity -{ - /// - /// - /// Computes the maximum inner product of two vectors. This is similar to dot_product, but doesn't require vectors - /// to be normalized. This means that each vector’s magnitude can significantly effect the score. - /// - /// - /// The document _score is adjusted to prevent negative values. For max_inner_product values < 0, the _score - /// is 1 / (1 + -1 * max_inner_product(query, vector)). For non-negative max_inner_product results the _score - /// is calculated max_inner_product(query, vector) + 1. - /// - /// - [EnumMember(Value = "max_inner_product")] - MaxInnerProduct, - /// - /// - /// Computes similarity based on the L2 distance (also known as Euclidean distance) between the vectors. - /// - /// - /// The document _score is computed as 1 / (1 + l2_norm(query, vector)^2). - /// - /// - /// For bit vectors, instead of using l2_norm, the hamming distance between the vectors is used. - /// - /// - /// The _score transformation is (numBits - hamming(a, b)) / numBits. - /// - /// - [EnumMember(Value = "l2_norm")] - L2Norm, - /// - /// - /// Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity. - /// The constraints and computed score are defined by element_type. - /// - /// - /// When element_type is float, all vectors must be unit length, including both document and query vectors. - /// - /// - /// The document _score is computed as (1 + dot_product(query, vector)) / 2. - /// - /// - /// When element_type is byte, all vectors must have the same length including both document and query vectors or - /// results will be inaccurate. - /// - /// - /// The document _score is computed as 0.5 + (dot_product(query, vector) / (32768 * dims)) where dims is the - /// number of dimensions per vector. - /// - /// - [EnumMember(Value = "dot_product")] - DotProduct, - /// - /// - /// Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with cosine - /// similarity to unit length. This allows to internally use dot_product for computing similarity, which is more - /// efficient. Original un-normalized vectors can be still accessed through scripts. - /// - /// - /// The document _score is computed as (1 + cosine(query, vector)) / 2. - /// - /// - /// The cosine similarity does not allow vectors with zero magnitude, since cosine is not defined in this case. - /// - /// - [EnumMember(Value = "cosine")] - Cosine -} - -internal sealed class DenseVectorSimilarityConverter : JsonConverter -{ - public override DenseVectorSimilarity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "max_inner_product": - return DenseVectorSimilarity.MaxInnerProduct; - case "l2_norm": - return DenseVectorSimilarity.L2Norm; - case "dot_product": - return DenseVectorSimilarity.DotProduct; - case "cosine": - return DenseVectorSimilarity.Cosine; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DenseVectorSimilarity value, JsonSerializerOptions options) - { - switch (value) - { - case DenseVectorSimilarity.MaxInnerProduct: - writer.WriteStringValue("max_inner_product"); - return; - case DenseVectorSimilarity.L2Norm: - writer.WriteStringValue("l2_norm"); - return; - case DenseVectorSimilarity.DotProduct: - writer.WriteStringValue("dot_product"); - return; - case DenseVectorSimilarity.Cosine: - writer.WriteStringValue("cosine"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DynamicMappingConverter))] -public enum DynamicMapping -{ - [EnumMember(Value = "true")] - True, - [EnumMember(Value = "strict")] - Strict, - [EnumMember(Value = "runtime")] - Runtime, - [EnumMember(Value = "false")] - False -} - -internal sealed class DynamicMappingConverter : JsonConverter -{ - public override DynamicMapping Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "true": - return DynamicMapping.True; - case "strict": - return DynamicMapping.Strict; - case "runtime": - return DynamicMapping.Runtime; - case "false": - return DynamicMapping.False; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DynamicMapping value, JsonSerializerOptions options) - { - switch (value) - { - case DynamicMapping.True: - writer.WriteStringValue("true"); - return; - case DynamicMapping.Strict: - writer.WriteStringValue("strict"); - return; - case DynamicMapping.Runtime: - writer.WriteStringValue("runtime"); - return; - case DynamicMapping.False: - writer.WriteStringValue("false"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FieldTypeConverter))] -public enum FieldType -{ - [EnumMember(Value = "version")] - Version, - [EnumMember(Value = "token_count")] - TokenCount, - [EnumMember(Value = "text")] - Text, - [EnumMember(Value = "sparse_vector")] - SparseVector, - [EnumMember(Value = "short")] - Short, - [EnumMember(Value = "shape")] - Shape, - [EnumMember(Value = "semantic_text")] - SemanticText, - [EnumMember(Value = "search_as_you_type")] - SearchAsYouType, - [EnumMember(Value = "scaled_float")] - ScaledFloat, - [EnumMember(Value = "rank_features")] - RankFeatures, - [EnumMember(Value = "rank_feature")] - RankFeature, - [EnumMember(Value = "percolator")] - Percolator, - [EnumMember(Value = "passthrough")] - Passthrough, - [EnumMember(Value = "object")] - Object, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "nested")] - Nested, - [EnumMember(Value = "murmur3")] - Murmur3, - [EnumMember(Value = "match_only_text")] - MatchOnlyText, - [EnumMember(Value = "long_range")] - LongRange, - [EnumMember(Value = "long")] - Long, - [EnumMember(Value = "keyword")] - Keyword, - [EnumMember(Value = "join")] - Join, - [EnumMember(Value = "ip_range")] - IpRange, - [EnumMember(Value = "ip")] - Ip, - [EnumMember(Value = "integer_range")] - IntegerRange, - [EnumMember(Value = "integer")] - Integer, - [EnumMember(Value = "icu_collation_keyword")] - IcuCollationKeyword, - [EnumMember(Value = "histogram")] - Histogram, - [EnumMember(Value = "half_float")] - HalfFloat, - [EnumMember(Value = "geo_shape")] - GeoShape, - [EnumMember(Value = "geo_point")] - GeoPoint, - [EnumMember(Value = "float_range")] - FloatRange, - [EnumMember(Value = "float")] - Float, - [EnumMember(Value = "flattened")] - Flattened, - [EnumMember(Value = "double_range")] - DoubleRange, - [EnumMember(Value = "double")] - Double, - [EnumMember(Value = "dense_vector")] - DenseVector, - [EnumMember(Value = "date_range")] - DateRange, - [EnumMember(Value = "date_nanos")] - DateNanos, - [EnumMember(Value = "date")] - Date, - [EnumMember(Value = "constant_keyword")] - ConstantKeyword, - [EnumMember(Value = "completion")] - Completion, - [EnumMember(Value = "byte")] - Byte, - [EnumMember(Value = "boolean")] - Boolean, - [EnumMember(Value = "binary")] - Binary, - [EnumMember(Value = "alias")] - Alias, - [EnumMember(Value = "aggregate_metric_double")] - AggregateMetricDouble -} - -internal sealed class FieldTypeConverter : JsonConverter -{ - public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "version": - return FieldType.Version; - case "token_count": - return FieldType.TokenCount; - case "text": - return FieldType.Text; - case "sparse_vector": - return FieldType.SparseVector; - case "short": - return FieldType.Short; - case "shape": - return FieldType.Shape; - case "semantic_text": - return FieldType.SemanticText; - case "search_as_you_type": - return FieldType.SearchAsYouType; - case "scaled_float": - return FieldType.ScaledFloat; - case "rank_features": - return FieldType.RankFeatures; - case "rank_feature": - return FieldType.RankFeature; - case "percolator": - return FieldType.Percolator; - case "passthrough": - return FieldType.Passthrough; - case "object": - return FieldType.Object; - case "none": - return FieldType.None; - case "nested": - return FieldType.Nested; - case "murmur3": - return FieldType.Murmur3; - case "match_only_text": - return FieldType.MatchOnlyText; - case "long_range": - return FieldType.LongRange; - case "long": - return FieldType.Long; - case "keyword": - return FieldType.Keyword; - case "join": - return FieldType.Join; - case "ip_range": - return FieldType.IpRange; - case "ip": - return FieldType.Ip; - case "integer_range": - return FieldType.IntegerRange; - case "integer": - return FieldType.Integer; - case "icu_collation_keyword": - return FieldType.IcuCollationKeyword; - case "histogram": - return FieldType.Histogram; - case "half_float": - return FieldType.HalfFloat; - case "geo_shape": - return FieldType.GeoShape; - case "geo_point": - return FieldType.GeoPoint; - case "float_range": - return FieldType.FloatRange; - case "float": - return FieldType.Float; - case "flattened": - return FieldType.Flattened; - case "double_range": - return FieldType.DoubleRange; - case "double": - return FieldType.Double; - case "dense_vector": - return FieldType.DenseVector; - case "date_range": - return FieldType.DateRange; - case "date_nanos": - return FieldType.DateNanos; - case "date": - return FieldType.Date; - case "constant_keyword": - return FieldType.ConstantKeyword; - case "completion": - return FieldType.Completion; - case "byte": - return FieldType.Byte; - case "boolean": - return FieldType.Boolean; - case "binary": - return FieldType.Binary; - case "alias": - return FieldType.Alias; - case "aggregate_metric_double": - return FieldType.AggregateMetricDouble; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerializerOptions options) - { - switch (value) - { - case FieldType.Version: - writer.WriteStringValue("version"); - return; - case FieldType.TokenCount: - writer.WriteStringValue("token_count"); - return; - case FieldType.Text: - writer.WriteStringValue("text"); - return; - case FieldType.SparseVector: - writer.WriteStringValue("sparse_vector"); - return; - case FieldType.Short: - writer.WriteStringValue("short"); - return; - case FieldType.Shape: - writer.WriteStringValue("shape"); - return; - case FieldType.SemanticText: - writer.WriteStringValue("semantic_text"); - return; - case FieldType.SearchAsYouType: - writer.WriteStringValue("search_as_you_type"); - return; - case FieldType.ScaledFloat: - writer.WriteStringValue("scaled_float"); - return; - case FieldType.RankFeatures: - writer.WriteStringValue("rank_features"); - return; - case FieldType.RankFeature: - writer.WriteStringValue("rank_feature"); - return; - case FieldType.Percolator: - writer.WriteStringValue("percolator"); - return; - case FieldType.Passthrough: - writer.WriteStringValue("passthrough"); - return; - case FieldType.Object: - writer.WriteStringValue("object"); - return; - case FieldType.None: - writer.WriteStringValue("none"); - return; - case FieldType.Nested: - writer.WriteStringValue("nested"); - return; - case FieldType.Murmur3: - writer.WriteStringValue("murmur3"); - return; - case FieldType.MatchOnlyText: - writer.WriteStringValue("match_only_text"); - return; - case FieldType.LongRange: - writer.WriteStringValue("long_range"); - return; - case FieldType.Long: - writer.WriteStringValue("long"); - return; - case FieldType.Keyword: - writer.WriteStringValue("keyword"); - return; - case FieldType.Join: - writer.WriteStringValue("join"); - return; - case FieldType.IpRange: - writer.WriteStringValue("ip_range"); - return; - case FieldType.Ip: - writer.WriteStringValue("ip"); - return; - case FieldType.IntegerRange: - writer.WriteStringValue("integer_range"); - return; - case FieldType.Integer: - writer.WriteStringValue("integer"); - return; - case FieldType.IcuCollationKeyword: - writer.WriteStringValue("icu_collation_keyword"); - return; - case FieldType.Histogram: - writer.WriteStringValue("histogram"); - return; - case FieldType.HalfFloat: - writer.WriteStringValue("half_float"); - return; - case FieldType.GeoShape: - writer.WriteStringValue("geo_shape"); - return; - case FieldType.GeoPoint: - writer.WriteStringValue("geo_point"); - return; - case FieldType.FloatRange: - writer.WriteStringValue("float_range"); - return; - case FieldType.Float: - writer.WriteStringValue("float"); - return; - case FieldType.Flattened: - writer.WriteStringValue("flattened"); - return; - case FieldType.DoubleRange: - writer.WriteStringValue("double_range"); - return; - case FieldType.Double: - writer.WriteStringValue("double"); - return; - case FieldType.DenseVector: - writer.WriteStringValue("dense_vector"); - return; - case FieldType.DateRange: - writer.WriteStringValue("date_range"); - return; - case FieldType.DateNanos: - writer.WriteStringValue("date_nanos"); - return; - case FieldType.Date: - writer.WriteStringValue("date"); - return; - case FieldType.ConstantKeyword: - writer.WriteStringValue("constant_keyword"); - return; - case FieldType.Completion: - writer.WriteStringValue("completion"); - return; - case FieldType.Byte: - writer.WriteStringValue("byte"); - return; - case FieldType.Boolean: - writer.WriteStringValue("boolean"); - return; - case FieldType.Binary: - writer.WriteStringValue("binary"); - return; - case FieldType.Alias: - writer.WriteStringValue("alias"); - return; - case FieldType.AggregateMetricDouble: - writer.WriteStringValue("aggregate_metric_double"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoOrientationConverter))] -public enum GeoOrientation -{ - [EnumMember(Value = "right")] - Right, - [EnumMember(Value = "left")] - Left -} - -internal sealed class GeoOrientationConverter : JsonConverter -{ - public override GeoOrientation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "right": - case "RIGHT": - case "counterclockwise": - case "ccw": - return GeoOrientation.Right; - case "left": - case "LEFT": - case "clockwise": - case "cw": - return GeoOrientation.Left; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoOrientation value, JsonSerializerOptions options) - { - switch (value) - { - case GeoOrientation.Right: - writer.WriteStringValue("right"); - return; - case GeoOrientation.Left: - writer.WriteStringValue("left"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoStrategyConverter))] -public enum GeoStrategy -{ - [EnumMember(Value = "term")] - Term, - [EnumMember(Value = "recursive")] - Recursive -} - -internal sealed class GeoStrategyConverter : JsonConverter -{ - public override GeoStrategy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "term": - return GeoStrategy.Term; - case "recursive": - return GeoStrategy.Recursive; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoStrategy value, JsonSerializerOptions options) - { - switch (value) - { - case GeoStrategy.Term: - writer.WriteStringValue("term"); - return; - case GeoStrategy.Recursive: - writer.WriteStringValue("recursive"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IndexOptionsConverter))] -public enum IndexOptions -{ - [EnumMember(Value = "positions")] - Positions, - [EnumMember(Value = "offsets")] - Offsets, - [EnumMember(Value = "freqs")] - Freqs, - [EnumMember(Value = "docs")] - Docs -} - -internal sealed class IndexOptionsConverter : JsonConverter -{ - public override IndexOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "positions": - return IndexOptions.Positions; - case "offsets": - return IndexOptions.Offsets; - case "freqs": - return IndexOptions.Freqs; - case "docs": - return IndexOptions.Docs; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IndexOptions value, JsonSerializerOptions options) - { - switch (value) - { - case IndexOptions.Positions: - writer.WriteStringValue("positions"); - return; - case IndexOptions.Offsets: - writer.WriteStringValue("offsets"); - return; - case IndexOptions.Freqs: - writer.WriteStringValue("freqs"); - return; - case IndexOptions.Docs: - writer.WriteStringValue("docs"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(MatchTypeConverter))] -public enum MatchType -{ - [EnumMember(Value = "simple")] - Simple, - [EnumMember(Value = "regex")] - Regex -} - -internal sealed class MatchTypeConverter : JsonConverter -{ - public override MatchType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "simple": - return MatchType.Simple; - case "regex": - return MatchType.Regex; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, MatchType value, JsonSerializerOptions options) - { - switch (value) - { - case MatchType.Simple: - writer.WriteStringValue("simple"); - return; - case MatchType.Regex: - writer.WriteStringValue("regex"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(OnScriptErrorConverter))] -public enum OnScriptError -{ - [EnumMember(Value = "fail")] - Fail, - [EnumMember(Value = "continue")] - Continue -} - -internal sealed class OnScriptErrorConverter : JsonConverter -{ - public override OnScriptError Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "fail": - return OnScriptError.Fail; - case "continue": - return OnScriptError.Continue; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, OnScriptError value, JsonSerializerOptions options) - { - switch (value) - { - case OnScriptError.Fail: - writer.WriteStringValue("fail"); - return; - case OnScriptError.Continue: - writer.WriteStringValue("continue"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(RuntimeFieldTypeConverter))] -public enum RuntimeFieldType -{ - [EnumMember(Value = "lookup")] - Lookup, - [EnumMember(Value = "long")] - Long, - [EnumMember(Value = "keyword")] - Keyword, - [EnumMember(Value = "ip")] - Ip, - [EnumMember(Value = "geo_point")] - GeoPoint, - [EnumMember(Value = "double")] - Double, - [EnumMember(Value = "date")] - Date, - [EnumMember(Value = "composite")] - Composite, - [EnumMember(Value = "boolean")] - Boolean -} - -internal sealed class RuntimeFieldTypeConverter : JsonConverter -{ - public override RuntimeFieldType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "lookup": - return RuntimeFieldType.Lookup; - case "long": - return RuntimeFieldType.Long; - case "keyword": - return RuntimeFieldType.Keyword; - case "ip": - return RuntimeFieldType.Ip; - case "geo_point": - return RuntimeFieldType.GeoPoint; - case "double": - return RuntimeFieldType.Double; - case "date": - return RuntimeFieldType.Date; - case "composite": - return RuntimeFieldType.Composite; - case "boolean": - return RuntimeFieldType.Boolean; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RuntimeFieldType value, JsonSerializerOptions options) - { - switch (value) - { - case RuntimeFieldType.Lookup: - writer.WriteStringValue("lookup"); - return; - case RuntimeFieldType.Long: - writer.WriteStringValue("long"); - return; - case RuntimeFieldType.Keyword: - writer.WriteStringValue("keyword"); - return; - case RuntimeFieldType.Ip: - writer.WriteStringValue("ip"); - return; - case RuntimeFieldType.GeoPoint: - writer.WriteStringValue("geo_point"); - return; - case RuntimeFieldType.Double: - writer.WriteStringValue("double"); - return; - case RuntimeFieldType.Date: - writer.WriteStringValue("date"); - return; - case RuntimeFieldType.Composite: - writer.WriteStringValue("composite"); - return; - case RuntimeFieldType.Boolean: - writer.WriteStringValue("boolean"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SourceFieldModeConverter))] -public enum SourceFieldMode -{ - /// - /// - /// Instead of storing source documents on disk exactly as you send them, - /// Elasticsearch can reconstruct source content on the fly upon retrieval. - /// - /// - [EnumMember(Value = "synthetic")] - Synthetic, - [EnumMember(Value = "stored")] - Stored, - [EnumMember(Value = "disabled")] - Disabled -} - -internal sealed class SourceFieldModeConverter : JsonConverter -{ - public override SourceFieldMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "synthetic": - return SourceFieldMode.Synthetic; - case "stored": - return SourceFieldMode.Stored; - case "disabled": - return SourceFieldMode.Disabled; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SourceFieldMode value, JsonSerializerOptions options) - { - switch (value) - { - case SourceFieldMode.Synthetic: - writer.WriteStringValue("synthetic"); - return; - case SourceFieldMode.Stored: - writer.WriteStringValue("stored"); - return; - case SourceFieldMode.Disabled: - writer.WriteStringValue("disabled"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TermVectorOptionConverter))] -public enum TermVectorOption -{ - [EnumMember(Value = "yes")] - Yes, - [EnumMember(Value = "with_positions_payloads")] - WithPositionsPayloads, - [EnumMember(Value = "with_positions_offsets_payloads")] - WithPositionsOffsetsPayloads, - [EnumMember(Value = "with_positions_offsets")] - WithPositionsOffsets, - [EnumMember(Value = "with_positions")] - WithPositions, - [EnumMember(Value = "with_offsets")] - WithOffsets, - [EnumMember(Value = "no")] - No -} - -internal sealed class TermVectorOptionConverter : JsonConverter -{ - public override TermVectorOption Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yes": - return TermVectorOption.Yes; - case "with_positions_payloads": - return TermVectorOption.WithPositionsPayloads; - case "with_positions_offsets_payloads": - return TermVectorOption.WithPositionsOffsetsPayloads; - case "with_positions_offsets": - return TermVectorOption.WithPositionsOffsets; - case "with_positions": - return TermVectorOption.WithPositions; - case "with_offsets": - return TermVectorOption.WithOffsets; - case "no": - return TermVectorOption.No; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TermVectorOption value, JsonSerializerOptions options) - { - switch (value) - { - case TermVectorOption.Yes: - writer.WriteStringValue("yes"); - return; - case TermVectorOption.WithPositionsPayloads: - writer.WriteStringValue("with_positions_payloads"); - return; - case TermVectorOption.WithPositionsOffsetsPayloads: - writer.WriteStringValue("with_positions_offsets_payloads"); - return; - case TermVectorOption.WithPositionsOffsets: - writer.WriteStringValue("with_positions_offsets"); - return; - case TermVectorOption.WithPositions: - writer.WriteStringValue("with_positions"); - return; - case TermVectorOption.WithOffsets: - writer.WriteStringValue("with_offsets"); - return; - case TermVectorOption.No: - writer.WriteStringValue("no"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TimeSeriesMetricTypeConverter))] -public enum TimeSeriesMetricType -{ - [EnumMember(Value = "summary")] - Summary, - [EnumMember(Value = "position")] - Position, - [EnumMember(Value = "histogram")] - Histogram, - [EnumMember(Value = "gauge")] - Gauge, - [EnumMember(Value = "counter")] - Counter -} - -internal sealed class TimeSeriesMetricTypeConverter : JsonConverter -{ - public override TimeSeriesMetricType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "summary": - return TimeSeriesMetricType.Summary; - case "position": - return TimeSeriesMetricType.Position; - case "histogram": - return TimeSeriesMetricType.Histogram; - case "gauge": - return TimeSeriesMetricType.Gauge; - case "counter": - return TimeSeriesMetricType.Counter; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TimeSeriesMetricType value, JsonSerializerOptions options) - { - switch (value) - { - case TimeSeriesMetricType.Summary: - writer.WriteStringValue("summary"); - return; - case TimeSeriesMetricType.Position: - writer.WriteStringValue("position"); - return; - case TimeSeriesMetricType.Histogram: - writer.WriteStringValue("histogram"); - return; - case TimeSeriesMetricType.Gauge: - writer.WriteStringValue("gauge"); - return; - case TimeSeriesMetricType.Counter: - writer.WriteStringValue("counter"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs deleted file mode 100644 index d44b52c36e8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs +++ /dev/null @@ -1,1900 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -[JsonConverter(typeof(ClusterInfoTargetConverter))] -public enum ClusterInfoTarget -{ - [EnumMember(Value = "thread_pool")] - ThreadPool, - [EnumMember(Value = "script")] - Script, - [EnumMember(Value = "ingest")] - Ingest, - [EnumMember(Value = "http")] - Http, - [EnumMember(Value = "_all")] - All -} - -internal sealed class ClusterInfoTargetConverter : JsonConverter -{ - public override ClusterInfoTarget Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "thread_pool": - return ClusterInfoTarget.ThreadPool; - case "script": - return ClusterInfoTarget.Script; - case "ingest": - return ClusterInfoTarget.Ingest; - case "http": - return ClusterInfoTarget.Http; - case "_all": - return ClusterInfoTarget.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ClusterInfoTarget value, JsonSerializerOptions options) - { - switch (value) - { - case ClusterInfoTarget.ThreadPool: - writer.WriteStringValue("thread_pool"); - return; - case ClusterInfoTarget.Script: - writer.WriteStringValue("script"); - return; - case ClusterInfoTarget.Ingest: - writer.WriteStringValue("ingest"); - return; - case ClusterInfoTarget.Http: - writer.WriteStringValue("http"); - return; - case ClusterInfoTarget.All: - writer.WriteStringValue("_all"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ClusterSearchStatusConverter))] -public enum ClusterSearchStatus -{ - [EnumMember(Value = "successful")] - Successful, - [EnumMember(Value = "skipped")] - Skipped, - [EnumMember(Value = "running")] - Running, - [EnumMember(Value = "partial")] - Partial, - [EnumMember(Value = "failed")] - Failed -} - -internal sealed class ClusterSearchStatusConverter : JsonConverter -{ - public override ClusterSearchStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "successful": - return ClusterSearchStatus.Successful; - case "skipped": - return ClusterSearchStatus.Skipped; - case "running": - return ClusterSearchStatus.Running; - case "partial": - return ClusterSearchStatus.Partial; - case "failed": - return ClusterSearchStatus.Failed; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ClusterSearchStatus value, JsonSerializerOptions options) - { - switch (value) - { - case ClusterSearchStatus.Successful: - writer.WriteStringValue("successful"); - return; - case ClusterSearchStatus.Skipped: - writer.WriteStringValue("skipped"); - return; - case ClusterSearchStatus.Running: - writer.WriteStringValue("running"); - return; - case ClusterSearchStatus.Partial: - writer.WriteStringValue("partial"); - return; - case ClusterSearchStatus.Failed: - writer.WriteStringValue("failed"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ConflictsConverter))] -public enum Conflicts -{ - /// - /// - /// Continue reindexing even if there are conflicts. - /// - /// - [EnumMember(Value = "proceed")] - Proceed, - /// - /// - /// Stop reindexing if there are conflicts. - /// - /// - [EnumMember(Value = "abort")] - Abort -} - -internal sealed class ConflictsConverter : JsonConverter -{ - public override Conflicts Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "proceed": - return Conflicts.Proceed; - case "abort": - return Conflicts.Abort; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Conflicts value, JsonSerializerOptions options) - { - switch (value) - { - case Conflicts.Proceed: - writer.WriteStringValue("proceed"); - return; - case Conflicts.Abort: - writer.WriteStringValue("abort"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DFIIndependenceMeasureConverter))] -public enum DFIIndependenceMeasure -{ - [EnumMember(Value = "standardized")] - Standardized, - [EnumMember(Value = "saturated")] - Saturated, - [EnumMember(Value = "chisquared")] - Chisquared -} - -internal sealed class DFIIndependenceMeasureConverter : JsonConverter -{ - public override DFIIndependenceMeasure Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "standardized": - return DFIIndependenceMeasure.Standardized; - case "saturated": - return DFIIndependenceMeasure.Saturated; - case "chisquared": - return DFIIndependenceMeasure.Chisquared; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DFIIndependenceMeasure value, JsonSerializerOptions options) - { - switch (value) - { - case DFIIndependenceMeasure.Standardized: - writer.WriteStringValue("standardized"); - return; - case DFIIndependenceMeasure.Saturated: - writer.WriteStringValue("saturated"); - return; - case DFIIndependenceMeasure.Chisquared: - writer.WriteStringValue("chisquared"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DFRAfterEffectConverter))] -public enum DFRAfterEffect -{ - [EnumMember(Value = "no")] - No, - [EnumMember(Value = "l")] - l, - [EnumMember(Value = "b")] - b -} - -internal sealed class DFRAfterEffectConverter : JsonConverter -{ - public override DFRAfterEffect Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "no": - return DFRAfterEffect.No; - case "l": - return DFRAfterEffect.l; - case "b": - return DFRAfterEffect.b; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DFRAfterEffect value, JsonSerializerOptions options) - { - switch (value) - { - case DFRAfterEffect.No: - writer.WriteStringValue("no"); - return; - case DFRAfterEffect.l: - writer.WriteStringValue("l"); - return; - case DFRAfterEffect.b: - writer.WriteStringValue("b"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DFRBasicModelConverter))] -public enum DFRBasicModel -{ - [EnumMember(Value = "p")] - p, - [EnumMember(Value = "ine")] - Ine, - [EnumMember(Value = "in")] - In, - [EnumMember(Value = "if")] - If, - [EnumMember(Value = "g")] - g, - [EnumMember(Value = "d")] - d, - [EnumMember(Value = "be")] - Be -} - -internal sealed class DFRBasicModelConverter : JsonConverter -{ - public override DFRBasicModel Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "p": - return DFRBasicModel.p; - case "ine": - return DFRBasicModel.Ine; - case "in": - return DFRBasicModel.In; - case "if": - return DFRBasicModel.If; - case "g": - return DFRBasicModel.g; - case "d": - return DFRBasicModel.d; - case "be": - return DFRBasicModel.Be; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DFRBasicModel value, JsonSerializerOptions options) - { - switch (value) - { - case DFRBasicModel.p: - writer.WriteStringValue("p"); - return; - case DFRBasicModel.Ine: - writer.WriteStringValue("ine"); - return; - case DFRBasicModel.In: - writer.WriteStringValue("in"); - return; - case DFRBasicModel.If: - writer.WriteStringValue("if"); - return; - case DFRBasicModel.g: - writer.WriteStringValue("g"); - return; - case DFRBasicModel.d: - writer.WriteStringValue("d"); - return; - case DFRBasicModel.Be: - writer.WriteStringValue("be"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DistanceUnitConverter))] -public enum DistanceUnit -{ - [EnumMember(Value = "yd")] - Yards, - [EnumMember(Value = "nmi")] - NauticMiles, - [EnumMember(Value = "mm")] - Millimeters, - [EnumMember(Value = "mi")] - Miles, - [EnumMember(Value = "m")] - Meters, - [EnumMember(Value = "km")] - Kilometers, - [EnumMember(Value = "in")] - Inches, - [EnumMember(Value = "ft")] - Feet, - [EnumMember(Value = "cm")] - Centimeters -} - -internal sealed class DistanceUnitConverter : JsonConverter -{ - public override DistanceUnit Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yd": - return DistanceUnit.Yards; - case "nmi": - return DistanceUnit.NauticMiles; - case "mm": - return DistanceUnit.Millimeters; - case "mi": - return DistanceUnit.Miles; - case "m": - return DistanceUnit.Meters; - case "km": - return DistanceUnit.Kilometers; - case "in": - return DistanceUnit.Inches; - case "ft": - return DistanceUnit.Feet; - case "cm": - return DistanceUnit.Centimeters; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DistanceUnit value, JsonSerializerOptions options) - { - switch (value) - { - case DistanceUnit.Yards: - writer.WriteStringValue("yd"); - return; - case DistanceUnit.NauticMiles: - writer.WriteStringValue("nmi"); - return; - case DistanceUnit.Millimeters: - writer.WriteStringValue("mm"); - return; - case DistanceUnit.Miles: - writer.WriteStringValue("mi"); - return; - case DistanceUnit.Meters: - writer.WriteStringValue("m"); - return; - case DistanceUnit.Kilometers: - writer.WriteStringValue("km"); - return; - case DistanceUnit.Inches: - writer.WriteStringValue("in"); - return; - case DistanceUnit.Feet: - writer.WriteStringValue("ft"); - return; - case DistanceUnit.Centimeters: - writer.WriteStringValue("cm"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ExpandWildcardConverter))] -public enum ExpandWildcard -{ - /// - /// - /// Match open, non-hidden indices. Also matches any non-hidden data stream. - /// - /// - [EnumMember(Value = "open")] - Open, - /// - /// - /// Wildcard expressions are not accepted. - /// - /// - [EnumMember(Value = "none")] - None, - /// - /// - /// Match hidden data streams and hidden indices. Must be combined with open, closed, or both. - /// - /// - [EnumMember(Value = "hidden")] - Hidden, - /// - /// - /// Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed. - /// - /// - [EnumMember(Value = "closed")] - Closed, - /// - /// - /// Match any data stream or index, including hidden ones. - /// - /// - [EnumMember(Value = "all")] - All -} - -internal sealed class ExpandWildcardConverter : JsonConverter -{ - public override ExpandWildcard Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "open": - return ExpandWildcard.Open; - case "none": - return ExpandWildcard.None; - case "hidden": - return ExpandWildcard.Hidden; - case "closed": - return ExpandWildcard.Closed; - case "all": - return ExpandWildcard.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ExpandWildcard value, JsonSerializerOptions options) - { - switch (value) - { - case ExpandWildcard.Open: - writer.WriteStringValue("open"); - return; - case ExpandWildcard.None: - writer.WriteStringValue("none"); - return; - case ExpandWildcard.Hidden: - writer.WriteStringValue("hidden"); - return; - case ExpandWildcard.Closed: - writer.WriteStringValue("closed"); - return; - case ExpandWildcard.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FieldSortNumericTypeConverter))] -public enum FieldSortNumericType -{ - [EnumMember(Value = "long")] - Long, - [EnumMember(Value = "double")] - Double, - [EnumMember(Value = "date_nanos")] - DateNanos, - [EnumMember(Value = "date")] - Date -} - -internal sealed class FieldSortNumericTypeConverter : JsonConverter -{ - public override FieldSortNumericType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "long": - return FieldSortNumericType.Long; - case "double": - return FieldSortNumericType.Double; - case "date_nanos": - return FieldSortNumericType.DateNanos; - case "date": - return FieldSortNumericType.Date; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FieldSortNumericType value, JsonSerializerOptions options) - { - switch (value) - { - case FieldSortNumericType.Long: - writer.WriteStringValue("long"); - return; - case FieldSortNumericType.Double: - writer.WriteStringValue("double"); - return; - case FieldSortNumericType.DateNanos: - writer.WriteStringValue("date_nanos"); - return; - case FieldSortNumericType.Date: - writer.WriteStringValue("date"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoDistanceTypeConverter))] -public enum GeoDistanceType -{ - /// - /// - /// The plane calculation is faster but less accurate. - /// - /// - [EnumMember(Value = "plane")] - Plane, - /// - /// - /// The arc calculation is the most accurate. - /// - /// - [EnumMember(Value = "arc")] - Arc -} - -internal sealed class GeoDistanceTypeConverter : JsonConverter -{ - public override GeoDistanceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "plane": - return GeoDistanceType.Plane; - case "arc": - return GeoDistanceType.Arc; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoDistanceType value, JsonSerializerOptions options) - { - switch (value) - { - case GeoDistanceType.Plane: - writer.WriteStringValue("plane"); - return; - case GeoDistanceType.Arc: - writer.WriteStringValue("arc"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoShapeRelationConverter))] -public enum GeoShapeRelation -{ - /// - /// - /// Return all documents whose geo_shape or geo_point field is within the query geometry. - /// Line geometries are not supported. - /// - /// - [EnumMember(Value = "within")] - Within, - /// - /// - /// Return all documents whose geo_shape or geo_point field intersects the query geometry. - /// - /// - [EnumMember(Value = "intersects")] - Intersects, - /// - /// - /// Return all documents whose geo_shape or geo_point field has nothing in common with the query geometry. - /// - /// - [EnumMember(Value = "disjoint")] - Disjoint, - /// - /// - /// Return all documents whose geo_shape or geo_point field contains the query geometry. - /// - /// - [EnumMember(Value = "contains")] - Contains -} - -internal sealed class GeoShapeRelationConverter : JsonConverter -{ - public override GeoShapeRelation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "within": - return GeoShapeRelation.Within; - case "intersects": - return GeoShapeRelation.Intersects; - case "disjoint": - return GeoShapeRelation.Disjoint; - case "contains": - return GeoShapeRelation.Contains; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoShapeRelation value, JsonSerializerOptions options) - { - switch (value) - { - case GeoShapeRelation.Within: - writer.WriteStringValue("within"); - return; - case GeoShapeRelation.Intersects: - writer.WriteStringValue("intersects"); - return; - case GeoShapeRelation.Disjoint: - writer.WriteStringValue("disjoint"); - return; - case GeoShapeRelation.Contains: - writer.WriteStringValue("contains"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(HealthStatusConverter))] -public enum HealthStatus -{ - /// - /// - /// All primary shards are assigned, but one or more replica shards are unassigned. If a node in the cluster fails, some data could be unavailable until that node is repaired. - /// - /// - [EnumMember(Value = "yellow")] - Yellow, - /// - /// - /// One or more primary shards are unassigned, so some data is unavailable. This can occur briefly during cluster startup as primary shards are assigned. - /// - /// - [EnumMember(Value = "red")] - Red, - /// - /// - /// All shards are assigned. - /// - /// - [EnumMember(Value = "green")] - Green -} - -internal sealed class HealthStatusConverter : JsonConverter -{ - public override HealthStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yellow": - case "YELLOW": - return HealthStatus.Yellow; - case "red": - case "RED": - return HealthStatus.Red; - case "green": - case "GREEN": - return HealthStatus.Green; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, HealthStatus value, JsonSerializerOptions options) - { - switch (value) - { - case HealthStatus.Yellow: - writer.WriteStringValue("yellow"); - return; - case HealthStatus.Red: - writer.WriteStringValue("red"); - return; - case HealthStatus.Green: - writer.WriteStringValue("green"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IBDistributionConverter))] -public enum IBDistribution -{ - [EnumMember(Value = "spl")] - Spl, - [EnumMember(Value = "ll")] - Ll -} - -internal sealed class IBDistributionConverter : JsonConverter -{ - public override IBDistribution Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "spl": - return IBDistribution.Spl; - case "ll": - return IBDistribution.Ll; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IBDistribution value, JsonSerializerOptions options) - { - switch (value) - { - case IBDistribution.Spl: - writer.WriteStringValue("spl"); - return; - case IBDistribution.Ll: - writer.WriteStringValue("ll"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(IBLambdaConverter))] -public enum IBLambda -{ - [EnumMember(Value = "ttf")] - Ttf, - [EnumMember(Value = "df")] - Df -} - -internal sealed class IBLambdaConverter : JsonConverter -{ - public override IBLambda Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "ttf": - return IBLambda.Ttf; - case "df": - return IBLambda.Df; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, IBLambda value, JsonSerializerOptions options) - { - switch (value) - { - case IBLambda.Ttf: - writer.WriteStringValue("ttf"); - return; - case IBLambda.Df: - writer.WriteStringValue("df"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(LevelConverter))] -public enum Level -{ - [EnumMember(Value = "shards")] - Shards, - [EnumMember(Value = "indices")] - Indices, - [EnumMember(Value = "cluster")] - Cluster -} - -internal sealed class LevelConverter : JsonConverter -{ - public override Level Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "shards": - return Level.Shards; - case "indices": - return Level.Indices; - case "cluster": - return Level.Cluster; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Level value, JsonSerializerOptions options) - { - switch (value) - { - case Level.Shards: - writer.WriteStringValue("shards"); - return; - case Level.Indices: - writer.WriteStringValue("indices"); - return; - case Level.Cluster: - writer.WriteStringValue("cluster"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(LifecycleOperationModeConverter))] -public enum LifecycleOperationMode -{ - [EnumMember(Value = "STOPPING")] - Stopping, - [EnumMember(Value = "STOPPED")] - Stopped, - [EnumMember(Value = "RUNNING")] - Running -} - -internal sealed class LifecycleOperationModeConverter : JsonConverter -{ - public override LifecycleOperationMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "STOPPING": - return LifecycleOperationMode.Stopping; - case "STOPPED": - return LifecycleOperationMode.Stopped; - case "RUNNING": - return LifecycleOperationMode.Running; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, LifecycleOperationMode value, JsonSerializerOptions options) - { - switch (value) - { - case LifecycleOperationMode.Stopping: - writer.WriteStringValue("STOPPING"); - return; - case LifecycleOperationMode.Stopped: - writer.WriteStringValue("STOPPED"); - return; - case LifecycleOperationMode.Running: - writer.WriteStringValue("RUNNING"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(NodeRoleConverter))] -public enum NodeRole -{ - [EnumMember(Value = "voting_only")] - VotingOnly, - [EnumMember(Value = "transform")] - Transform, - [EnumMember(Value = "remote_cluster_client")] - RemoteClusterClient, - [EnumMember(Value = "ml")] - Ml, - [EnumMember(Value = "master")] - Master, - [EnumMember(Value = "ingest")] - Ingest, - [EnumMember(Value = "data_warm")] - DataWarm, - [EnumMember(Value = "data_hot")] - DataHot, - [EnumMember(Value = "data_frozen")] - DataFrozen, - [EnumMember(Value = "data_content")] - DataContent, - [EnumMember(Value = "data_cold")] - DataCold, - [EnumMember(Value = "data")] - Data, - [EnumMember(Value = "coordinating_only")] - CoordinatingOnly, - [EnumMember(Value = "client")] - Client -} - -internal sealed class NodeRoleConverter : JsonConverter -{ - public override NodeRole Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "voting_only": - return NodeRole.VotingOnly; - case "transform": - return NodeRole.Transform; - case "remote_cluster_client": - return NodeRole.RemoteClusterClient; - case "ml": - return NodeRole.Ml; - case "master": - return NodeRole.Master; - case "ingest": - return NodeRole.Ingest; - case "data_warm": - return NodeRole.DataWarm; - case "data_hot": - return NodeRole.DataHot; - case "data_frozen": - return NodeRole.DataFrozen; - case "data_content": - return NodeRole.DataContent; - case "data_cold": - return NodeRole.DataCold; - case "data": - return NodeRole.Data; - case "coordinating_only": - return NodeRole.CoordinatingOnly; - case "client": - return NodeRole.Client; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, NodeRole value, JsonSerializerOptions options) - { - switch (value) - { - case NodeRole.VotingOnly: - writer.WriteStringValue("voting_only"); - return; - case NodeRole.Transform: - writer.WriteStringValue("transform"); - return; - case NodeRole.RemoteClusterClient: - writer.WriteStringValue("remote_cluster_client"); - return; - case NodeRole.Ml: - writer.WriteStringValue("ml"); - return; - case NodeRole.Master: - writer.WriteStringValue("master"); - return; - case NodeRole.Ingest: - writer.WriteStringValue("ingest"); - return; - case NodeRole.DataWarm: - writer.WriteStringValue("data_warm"); - return; - case NodeRole.DataHot: - writer.WriteStringValue("data_hot"); - return; - case NodeRole.DataFrozen: - writer.WriteStringValue("data_frozen"); - return; - case NodeRole.DataContent: - writer.WriteStringValue("data_content"); - return; - case NodeRole.DataCold: - writer.WriteStringValue("data_cold"); - return; - case NodeRole.Data: - writer.WriteStringValue("data"); - return; - case NodeRole.CoordinatingOnly: - writer.WriteStringValue("coordinating_only"); - return; - case NodeRole.Client: - writer.WriteStringValue("client"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(NormalizationConverter))] -public enum Normalization -{ - [EnumMember(Value = "z")] - z, - [EnumMember(Value = "no")] - No, - [EnumMember(Value = "h3")] - H3, - [EnumMember(Value = "h2")] - H2, - [EnumMember(Value = "h1")] - H1 -} - -internal sealed class NormalizationConverter : JsonConverter -{ - public override Normalization Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "z": - return Normalization.z; - case "no": - return Normalization.No; - case "h3": - return Normalization.H3; - case "h2": - return Normalization.H2; - case "h1": - return Normalization.H1; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Normalization value, JsonSerializerOptions options) - { - switch (value) - { - case Normalization.z: - writer.WriteStringValue("z"); - return; - case Normalization.No: - writer.WriteStringValue("no"); - return; - case Normalization.H3: - writer.WriteStringValue("h3"); - return; - case Normalization.H2: - writer.WriteStringValue("h2"); - return; - case Normalization.H1: - writer.WriteStringValue("h1"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ResultConverter))] -public enum Result -{ - [EnumMember(Value = "updated")] - Updated, - [EnumMember(Value = "not_found")] - NotFound, - [EnumMember(Value = "noop")] - NoOp, - [EnumMember(Value = "deleted")] - Deleted, - [EnumMember(Value = "created")] - Created -} - -internal sealed class ResultConverter : JsonConverter -{ - public override Result Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "updated": - return Result.Updated; - case "not_found": - return Result.NotFound; - case "noop": - return Result.NoOp; - case "deleted": - return Result.Deleted; - case "created": - return Result.Created; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Result value, JsonSerializerOptions options) - { - switch (value) - { - case Result.Updated: - writer.WriteStringValue("updated"); - return; - case Result.NotFound: - writer.WriteStringValue("not_found"); - return; - case Result.NoOp: - writer.WriteStringValue("noop"); - return; - case Result.Deleted: - writer.WriteStringValue("deleted"); - return; - case Result.Created: - writer.WriteStringValue("created"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(EnumStructConverter))] -public readonly partial struct ScriptLanguage : IEnumStruct -{ - public ScriptLanguage(string value) => Value = value; - - ScriptLanguage IEnumStruct.Create(string value) => value; - - public readonly string Value { get; } - - /// - /// - /// Painless scripting language, purpose-built for Elasticsearch. - /// - /// - public static ScriptLanguage Painless { get; } = new ScriptLanguage("painless"); - - /// - /// - /// Mustache templated, used for templates. - /// - /// - public static ScriptLanguage Mustache { get; } = new ScriptLanguage("mustache"); - - /// - /// - /// Expert Java API - /// - /// - public static ScriptLanguage Java { get; } = new ScriptLanguage("java"); - - /// - /// - /// Lucene’s expressions language, compiles a JavaScript expression to bytecode. - /// - /// - public static ScriptLanguage Expression { get; } = new ScriptLanguage("expression"); - - public override string ToString() => Value ?? string.Empty; - - public static implicit operator string(ScriptLanguage scriptLanguage) => scriptLanguage.Value; - public static implicit operator ScriptLanguage(string value) => new(value); - - public override int GetHashCode() => Value.GetHashCode(); - public override bool Equals(object obj) => obj is ScriptLanguage other && this.Equals(other); - public bool Equals(ScriptLanguage other) => Value == other.Value; - - public static bool operator ==(ScriptLanguage a, ScriptLanguage b) => a.Equals(b); - public static bool operator !=(ScriptLanguage a, ScriptLanguage b) => !(a == b); -} - -[JsonConverter(typeof(ScriptSortTypeConverter))] -public enum ScriptSortType -{ - [EnumMember(Value = "version")] - Version, - [EnumMember(Value = "string")] - String, - [EnumMember(Value = "number")] - Number -} - -internal sealed class ScriptSortTypeConverter : JsonConverter -{ - public override ScriptSortType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "version": - return ScriptSortType.Version; - case "string": - return ScriptSortType.String; - case "number": - return ScriptSortType.Number; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ScriptSortType value, JsonSerializerOptions options) - { - switch (value) - { - case ScriptSortType.Version: - writer.WriteStringValue("version"); - return; - case ScriptSortType.String: - writer.WriteStringValue("string"); - return; - case ScriptSortType.Number: - writer.WriteStringValue("number"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SearchTypeConverter))] -public enum SearchType -{ - /// - /// - /// Documents are scored using local term and document frequencies for the shard. This is usually faster but less accurate. - /// - /// - [EnumMember(Value = "query_then_fetch")] - QueryThenFetch, - /// - /// - /// Documents are scored using global term and document frequencies across all shards. This is usually slower but more accurate. - /// - /// - [EnumMember(Value = "dfs_query_then_fetch")] - DfsQueryThenFetch -} - -internal sealed class SearchTypeConverter : JsonConverter -{ - public override SearchType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "query_then_fetch": - return SearchType.QueryThenFetch; - case "dfs_query_then_fetch": - return SearchType.DfsQueryThenFetch; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SearchType value, JsonSerializerOptions options) - { - switch (value) - { - case SearchType.QueryThenFetch: - writer.WriteStringValue("query_then_fetch"); - return; - case SearchType.DfsQueryThenFetch: - writer.WriteStringValue("dfs_query_then_fetch"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SlicesCalculationConverter))] -public enum SlicesCalculation -{ - /// - /// - /// Let Elasticsearch choose a reasonable number for most data streams and indices. - /// - /// - [EnumMember(Value = "auto")] - Auto -} - -internal sealed class SlicesCalculationConverter : JsonConverter -{ - public override SlicesCalculation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "auto": - return SlicesCalculation.Auto; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SlicesCalculation value, JsonSerializerOptions options) - { - switch (value) - { - case SlicesCalculation.Auto: - writer.WriteStringValue("auto"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SortModeConverter))] -public enum SortMode -{ - [EnumMember(Value = "sum")] - Sum, - [EnumMember(Value = "min")] - Min, - [EnumMember(Value = "median")] - Median, - [EnumMember(Value = "max")] - Max, - [EnumMember(Value = "avg")] - Avg -} - -internal sealed class SortModeConverter : JsonConverter -{ - public override SortMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "sum": - return SortMode.Sum; - case "min": - return SortMode.Min; - case "median": - return SortMode.Median; - case "max": - return SortMode.Max; - case "avg": - return SortMode.Avg; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SortMode value, JsonSerializerOptions options) - { - switch (value) - { - case SortMode.Sum: - writer.WriteStringValue("sum"); - return; - case SortMode.Min: - writer.WriteStringValue("min"); - return; - case SortMode.Median: - writer.WriteStringValue("median"); - return; - case SortMode.Max: - writer.WriteStringValue("max"); - return; - case SortMode.Avg: - writer.WriteStringValue("avg"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SortOrderConverter))] -public enum SortOrder -{ - /// - /// - /// Descending (largest to smallest) - /// - /// - [EnumMember(Value = "desc")] - Desc, - /// - /// - /// Ascending (smallest to largest) - /// - /// - [EnumMember(Value = "asc")] - Asc -} - -internal sealed class SortOrderConverter : JsonConverter -{ - public override SortOrder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "desc": - return SortOrder.Desc; - case "asc": - return SortOrder.Asc; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SortOrder value, JsonSerializerOptions options) - { - switch (value) - { - case SortOrder.Desc: - writer.WriteStringValue("desc"); - return; - case SortOrder.Asc: - writer.WriteStringValue("asc"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SuggestModeConverter))] -public enum SuggestMode -{ - /// - /// - /// Only suggest terms that occur in more docs on the shard than the original term. - /// - /// - [EnumMember(Value = "popular")] - Popular, - /// - /// - /// Only generate suggestions for terms that are not in the shard. - /// - /// - [EnumMember(Value = "missing")] - Missing, - /// - /// - /// Suggest any matching suggestions based on terms in the suggest text. - /// - /// - [EnumMember(Value = "always")] - Always -} - -internal sealed class SuggestModeConverter : JsonConverter -{ - public override SuggestMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "popular": - return SuggestMode.Popular; - case "missing": - return SuggestMode.Missing; - case "always": - return SuggestMode.Always; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SuggestMode value, JsonSerializerOptions options) - { - switch (value) - { - case SuggestMode.Popular: - writer.WriteStringValue("popular"); - return; - case SuggestMode.Missing: - writer.WriteStringValue("missing"); - return; - case SuggestMode.Always: - writer.WriteStringValue("always"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ThreadTypeConverter))] -public enum ThreadType -{ - [EnumMember(Value = "wait")] - Wait, - [EnumMember(Value = "mem")] - Mem, - [EnumMember(Value = "gpu")] - Gpu, - [EnumMember(Value = "cpu")] - Cpu, - [EnumMember(Value = "block")] - Block -} - -internal sealed class ThreadTypeConverter : JsonConverter -{ - public override ThreadType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "wait": - return ThreadType.Wait; - case "mem": - return ThreadType.Mem; - case "gpu": - return ThreadType.Gpu; - case "cpu": - return ThreadType.Cpu; - case "block": - return ThreadType.Block; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ThreadType value, JsonSerializerOptions options) - { - switch (value) - { - case ThreadType.Wait: - writer.WriteStringValue("wait"); - return; - case ThreadType.Mem: - writer.WriteStringValue("mem"); - return; - case ThreadType.Gpu: - writer.WriteStringValue("gpu"); - return; - case ThreadType.Cpu: - writer.WriteStringValue("cpu"); - return; - case ThreadType.Block: - writer.WriteStringValue("block"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(TimeUnitConverter))] -public enum TimeUnit -{ - [EnumMember(Value = "s")] - Seconds, - [EnumMember(Value = "nanos")] - Nanoseconds, - [EnumMember(Value = "m")] - Minutes, - [EnumMember(Value = "ms")] - Milliseconds, - [EnumMember(Value = "micros")] - Microseconds, - [EnumMember(Value = "h")] - Hours, - [EnumMember(Value = "d")] - Days -} - -internal sealed class TimeUnitConverter : JsonConverter -{ - public override TimeUnit Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "s": - return TimeUnit.Seconds; - case "nanos": - return TimeUnit.Nanoseconds; - case "m": - return TimeUnit.Minutes; - case "ms": - return TimeUnit.Milliseconds; - case "micros": - return TimeUnit.Microseconds; - case "h": - return TimeUnit.Hours; - case "d": - return TimeUnit.Days; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TimeUnit value, JsonSerializerOptions options) - { - switch (value) - { - case TimeUnit.Seconds: - writer.WriteStringValue("s"); - return; - case TimeUnit.Nanoseconds: - writer.WriteStringValue("nanos"); - return; - case TimeUnit.Minutes: - writer.WriteStringValue("m"); - return; - case TimeUnit.Milliseconds: - writer.WriteStringValue("ms"); - return; - case TimeUnit.Microseconds: - writer.WriteStringValue("micros"); - return; - case TimeUnit.Hours: - writer.WriteStringValue("h"); - return; - case TimeUnit.Days: - writer.WriteStringValue("d"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(VersionTypeConverter))] -public enum VersionType -{ - /// - /// - /// Use internal versioning that starts at 1 and increments with each update or delete. - /// - /// - [EnumMember(Value = "internal")] - Internal, - [EnumMember(Value = "force")] - Force, - /// - /// - /// Only index the document if the given version is equal or higher than the version of the stored document or if there is no existing document. - /// Note: the external_gte version type is meant for special use cases and should be used with care. - /// If used incorrectly, it can result in loss of data. - /// - /// - [EnumMember(Value = "external_gte")] - ExternalGte, - /// - /// - /// Only index the document if the given version is strictly higher than the version of the stored document or if there is no existing document. - /// - /// - [EnumMember(Value = "external")] - External -} - -internal sealed class VersionTypeConverter : JsonConverter -{ - public override VersionType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "internal": - return VersionType.Internal; - case "force": - return VersionType.Force; - case "external_gte": - return VersionType.ExternalGte; - case "external": - return VersionType.External; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, VersionType value, JsonSerializerOptions options) - { - switch (value) - { - case VersionType.Internal: - writer.WriteStringValue("internal"); - return; - case VersionType.Force: - writer.WriteStringValue("force"); - return; - case VersionType.ExternalGte: - writer.WriteStringValue("external_gte"); - return; - case VersionType.External: - writer.WriteStringValue("external"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(WaitForEventsConverter))] -public enum WaitForEvents -{ - [EnumMember(Value = "urgent")] - Urgent, - [EnumMember(Value = "normal")] - Normal, - [EnumMember(Value = "low")] - Low, - [EnumMember(Value = "languid")] - Languid, - [EnumMember(Value = "immediate")] - Immediate, - [EnumMember(Value = "high")] - High -} - -internal sealed class WaitForEventsConverter : JsonConverter -{ - public override WaitForEvents Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "urgent": - return WaitForEvents.Urgent; - case "normal": - return WaitForEvents.Normal; - case "low": - return WaitForEvents.Low; - case "languid": - return WaitForEvents.Languid; - case "immediate": - return WaitForEvents.Immediate; - case "high": - return WaitForEvents.High; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, WaitForEvents value, JsonSerializerOptions options) - { - switch (value) - { - case WaitForEvents.Urgent: - writer.WriteStringValue("urgent"); - return; - case WaitForEvents.Normal: - writer.WriteStringValue("normal"); - return; - case WaitForEvents.Low: - writer.WriteStringValue("low"); - return; - case WaitForEvents.Languid: - writer.WriteStringValue("languid"); - return; - case WaitForEvents.Immediate: - writer.WriteStringValue("immediate"); - return; - case WaitForEvents.High: - writer.WriteStringValue("high"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs deleted file mode 100644 index e5e98a0d91a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryDsl.g.cs +++ /dev/null @@ -1,1114 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(ChildScoreModeConverter))] -public enum ChildScoreMode -{ - [EnumMember(Value = "sum")] - Sum, - [EnumMember(Value = "none")] - None, - [EnumMember(Value = "min")] - Min, - [EnumMember(Value = "max")] - Max, - [EnumMember(Value = "avg")] - Avg -} - -internal sealed class ChildScoreModeConverter : JsonConverter -{ - public override ChildScoreMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "sum": - return ChildScoreMode.Sum; - case "none": - return ChildScoreMode.None; - case "min": - return ChildScoreMode.Min; - case "max": - return ChildScoreMode.Max; - case "avg": - return ChildScoreMode.Avg; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ChildScoreMode value, JsonSerializerOptions options) - { - switch (value) - { - case ChildScoreMode.Sum: - writer.WriteStringValue("sum"); - return; - case ChildScoreMode.None: - writer.WriteStringValue("none"); - return; - case ChildScoreMode.Min: - writer.WriteStringValue("min"); - return; - case ChildScoreMode.Max: - writer.WriteStringValue("max"); - return; - case ChildScoreMode.Avg: - writer.WriteStringValue("avg"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(CombinedFieldsOperatorConverter))] -public enum CombinedFieldsOperator -{ - [EnumMember(Value = "or")] - Or, - [EnumMember(Value = "and")] - And -} - -internal sealed class CombinedFieldsOperatorConverter : JsonConverter -{ - public override CombinedFieldsOperator Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "or": - return CombinedFieldsOperator.Or; - case "and": - return CombinedFieldsOperator.And; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, CombinedFieldsOperator value, JsonSerializerOptions options) - { - switch (value) - { - case CombinedFieldsOperator.Or: - writer.WriteStringValue("or"); - return; - case CombinedFieldsOperator.And: - writer.WriteStringValue("and"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(CombinedFieldsZeroTermsConverter))] -public enum CombinedFieldsZeroTerms -{ - /// - /// - /// No documents are returned if the analyzer removes all tokens. - /// - /// - [EnumMember(Value = "none")] - None, - /// - /// - /// Returns all documents, similar to a match_all query. - /// - /// - [EnumMember(Value = "all")] - All -} - -internal sealed class CombinedFieldsZeroTermsConverter : JsonConverter -{ - public override CombinedFieldsZeroTerms Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "none": - return CombinedFieldsZeroTerms.None; - case "all": - return CombinedFieldsZeroTerms.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, CombinedFieldsZeroTerms value, JsonSerializerOptions options) - { - switch (value) - { - case CombinedFieldsZeroTerms.None: - writer.WriteStringValue("none"); - return; - case CombinedFieldsZeroTerms.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FieldValueFactorModifierConverter))] -public enum FieldValueFactorModifier -{ - /// - /// - /// Square the field value (multiply it by itself). - /// - /// - [EnumMember(Value = "square")] - Square, - /// - /// - /// Take the square root of the field value. - /// - /// - [EnumMember(Value = "sqrt")] - Sqrt, - /// - /// - /// Reciprocate the field value, same as 1/x where x is the field’s value. - /// - /// - [EnumMember(Value = "reciprocal")] - Reciprocal, - /// - /// - /// Do not apply any multiplier to the field value. - /// - /// - [EnumMember(Value = "none")] - None, - /// - /// - /// Add 2 to the field value and take the common logarithm. - /// - /// - [EnumMember(Value = "log2p")] - Log2p, - /// - /// - /// Add 1 to the field value and take the common logarithm. - /// - /// - [EnumMember(Value = "log1p")] - Log1p, - /// - /// - /// Take the common logarithm of the field value. - /// Because this function will return a negative value and cause an error if used on values between 0 and 1, it is recommended to use log1p instead. - /// - /// - [EnumMember(Value = "log")] - Log, - /// - /// - /// Add 2 to the field value and take the natural logarithm. - /// - /// - [EnumMember(Value = "ln2p")] - Ln2p, - /// - /// - /// Add 1 to the field value and take the natural logarithm. - /// - /// - [EnumMember(Value = "ln1p")] - Ln1p, - /// - /// - /// Take the natural logarithm of the field value. - /// Because this function will return a negative value and cause an error if used on values between 0 and 1, it is recommended to use ln1p instead. - /// - /// - [EnumMember(Value = "ln")] - Ln -} - -internal sealed class FieldValueFactorModifierConverter : JsonConverter -{ - public override FieldValueFactorModifier Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "square": - return FieldValueFactorModifier.Square; - case "sqrt": - return FieldValueFactorModifier.Sqrt; - case "reciprocal": - return FieldValueFactorModifier.Reciprocal; - case "none": - return FieldValueFactorModifier.None; - case "log2p": - return FieldValueFactorModifier.Log2p; - case "log1p": - return FieldValueFactorModifier.Log1p; - case "log": - return FieldValueFactorModifier.Log; - case "ln2p": - return FieldValueFactorModifier.Ln2p; - case "ln1p": - return FieldValueFactorModifier.Ln1p; - case "ln": - return FieldValueFactorModifier.Ln; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FieldValueFactorModifier value, JsonSerializerOptions options) - { - switch (value) - { - case FieldValueFactorModifier.Square: - writer.WriteStringValue("square"); - return; - case FieldValueFactorModifier.Sqrt: - writer.WriteStringValue("sqrt"); - return; - case FieldValueFactorModifier.Reciprocal: - writer.WriteStringValue("reciprocal"); - return; - case FieldValueFactorModifier.None: - writer.WriteStringValue("none"); - return; - case FieldValueFactorModifier.Log2p: - writer.WriteStringValue("log2p"); - return; - case FieldValueFactorModifier.Log1p: - writer.WriteStringValue("log1p"); - return; - case FieldValueFactorModifier.Log: - writer.WriteStringValue("log"); - return; - case FieldValueFactorModifier.Ln2p: - writer.WriteStringValue("ln2p"); - return; - case FieldValueFactorModifier.Ln1p: - writer.WriteStringValue("ln1p"); - return; - case FieldValueFactorModifier.Ln: - writer.WriteStringValue("ln"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FunctionBoostModeConverter))] -public enum FunctionBoostMode -{ - /// - /// - /// Query score and function score are added - /// - /// - [EnumMember(Value = "sum")] - Sum, - /// - /// - /// Only the function score is used. - /// The query score is ignored. - /// - /// - [EnumMember(Value = "replace")] - Replace, - /// - /// - /// Query score and function score are multiplied - /// - /// - [EnumMember(Value = "multiply")] - Multiply, - /// - /// - /// Min of query score and function score - /// - /// - [EnumMember(Value = "min")] - Min, - /// - /// - /// Max of query score and function score - /// - /// - [EnumMember(Value = "max")] - Max, - /// - /// - /// Query score and function score are averaged - /// - /// - [EnumMember(Value = "avg")] - Avg -} - -internal sealed class FunctionBoostModeConverter : JsonConverter -{ - public override FunctionBoostMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "sum": - return FunctionBoostMode.Sum; - case "replace": - return FunctionBoostMode.Replace; - case "multiply": - return FunctionBoostMode.Multiply; - case "min": - return FunctionBoostMode.Min; - case "max": - return FunctionBoostMode.Max; - case "avg": - return FunctionBoostMode.Avg; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FunctionBoostMode value, JsonSerializerOptions options) - { - switch (value) - { - case FunctionBoostMode.Sum: - writer.WriteStringValue("sum"); - return; - case FunctionBoostMode.Replace: - writer.WriteStringValue("replace"); - return; - case FunctionBoostMode.Multiply: - writer.WriteStringValue("multiply"); - return; - case FunctionBoostMode.Min: - writer.WriteStringValue("min"); - return; - case FunctionBoostMode.Max: - writer.WriteStringValue("max"); - return; - case FunctionBoostMode.Avg: - writer.WriteStringValue("avg"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(FunctionScoreModeConverter))] -public enum FunctionScoreMode -{ - /// - /// - /// Scores are summed. - /// - /// - [EnumMember(Value = "sum")] - Sum, - /// - /// - /// Scores are multiplied. - /// - /// - [EnumMember(Value = "multiply")] - Multiply, - /// - /// - /// Minimum score is used. - /// - /// - [EnumMember(Value = "min")] - Min, - /// - /// - /// Maximum score is used. - /// - /// - [EnumMember(Value = "max")] - Max, - /// - /// - /// The first function that has a matching filter is applied. - /// - /// - [EnumMember(Value = "first")] - First, - /// - /// - /// Scores are averaged. - /// - /// - [EnumMember(Value = "avg")] - Avg -} - -internal sealed class FunctionScoreModeConverter : JsonConverter -{ - public override FunctionScoreMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "sum": - return FunctionScoreMode.Sum; - case "multiply": - return FunctionScoreMode.Multiply; - case "min": - return FunctionScoreMode.Min; - case "max": - return FunctionScoreMode.Max; - case "first": - return FunctionScoreMode.First; - case "avg": - return FunctionScoreMode.Avg; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, FunctionScoreMode value, JsonSerializerOptions options) - { - switch (value) - { - case FunctionScoreMode.Sum: - writer.WriteStringValue("sum"); - return; - case FunctionScoreMode.Multiply: - writer.WriteStringValue("multiply"); - return; - case FunctionScoreMode.Min: - writer.WriteStringValue("min"); - return; - case FunctionScoreMode.Max: - writer.WriteStringValue("max"); - return; - case FunctionScoreMode.First: - writer.WriteStringValue("first"); - return; - case FunctionScoreMode.Avg: - writer.WriteStringValue("avg"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(GeoValidationMethodConverter))] -public enum GeoValidationMethod -{ - [EnumMember(Value = "strict")] - Strict, - /// - /// - /// Accept geo points with invalid latitude or longitude. - /// - /// - [EnumMember(Value = "ignore_malformed")] - IgnoreMalformed, - /// - /// - /// Accept geo points with invalid latitude or longitude and additionally try and infer correct coordinates. - /// - /// - [EnumMember(Value = "coerce")] - Coerce -} - -internal sealed class GeoValidationMethodConverter : JsonConverter -{ - public override GeoValidationMethod Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "strict": - return GeoValidationMethod.Strict; - case "ignore_malformed": - return GeoValidationMethod.IgnoreMalformed; - case "coerce": - return GeoValidationMethod.Coerce; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GeoValidationMethod value, JsonSerializerOptions options) - { - switch (value) - { - case GeoValidationMethod.Strict: - writer.WriteStringValue("strict"); - return; - case GeoValidationMethod.IgnoreMalformed: - writer.WriteStringValue("ignore_malformed"); - return; - case GeoValidationMethod.Coerce: - writer.WriteStringValue("coerce"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(MultiValueModeConverter))] -public enum MultiValueMode -{ - /// - /// - /// Distance is the sum of all distances. - /// - /// - [EnumMember(Value = "sum")] - Sum, - /// - /// - /// Distance is the minimum distance. - /// - /// - [EnumMember(Value = "min")] - Min, - /// - /// - /// Distance is the maximum distance. - /// - /// - [EnumMember(Value = "max")] - Max, - /// - /// - /// Distance is the average distance. - /// - /// - [EnumMember(Value = "avg")] - Avg -} - -internal sealed class MultiValueModeConverter : JsonConverter -{ - public override MultiValueMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "sum": - return MultiValueMode.Sum; - case "min": - return MultiValueMode.Min; - case "max": - return MultiValueMode.Max; - case "avg": - return MultiValueMode.Avg; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, MultiValueMode value, JsonSerializerOptions options) - { - switch (value) - { - case MultiValueMode.Sum: - writer.WriteStringValue("sum"); - return; - case MultiValueMode.Min: - writer.WriteStringValue("min"); - return; - case MultiValueMode.Max: - writer.WriteStringValue("max"); - return; - case MultiValueMode.Avg: - writer.WriteStringValue("avg"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(OperatorConverter))] -public enum Operator -{ - [EnumMember(Value = "or")] - Or, - [EnumMember(Value = "and")] - And -} - -internal sealed class OperatorConverter : JsonConverter -{ - public override Operator Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "or": - case "OR": - return Operator.Or; - case "and": - case "AND": - return Operator.And; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Operator value, JsonSerializerOptions options) - { - switch (value) - { - case Operator.Or: - writer.WriteStringValue("or"); - return; - case Operator.And: - writer.WriteStringValue("and"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(RangeRelationConverter))] -public enum RangeRelation -{ - /// - /// - /// Matches documents with a range field value entirely within the query’s range. - /// - /// - [EnumMember(Value = "within")] - Within, - /// - /// - /// Matches documents with a range field value that intersects the query’s range. - /// - /// - [EnumMember(Value = "intersects")] - Intersects, - /// - /// - /// Matches documents with a range field value that entirely contains the query’s range. - /// - /// - [EnumMember(Value = "contains")] - Contains -} - -internal sealed class RangeRelationConverter : JsonConverter -{ - public override RangeRelation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "within": - return RangeRelation.Within; - case "intersects": - return RangeRelation.Intersects; - case "contains": - return RangeRelation.Contains; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, RangeRelation value, JsonSerializerOptions options) - { - switch (value) - { - case RangeRelation.Within: - writer.WriteStringValue("within"); - return; - case RangeRelation.Intersects: - writer.WriteStringValue("intersects"); - return; - case RangeRelation.Contains: - writer.WriteStringValue("contains"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SimpleQueryStringFlagConverter))] -[Flags] -public enum SimpleQueryStringFlag -{ - /// - /// - /// Enables whitespace as split characters. - /// - /// - [EnumMember(Value = "WHITESPACE")] - Whitespace = 1 << 0, - /// - /// - /// Enables the ~N operator, after a phrase where N is maximum number of positions allowed between matching tokens. - /// Synonymous to NEAR. - /// - /// - [EnumMember(Value = "SLOP")] - Slop = 1 << 1, - /// - /// - /// Enables the * prefix operator. - /// - /// - [EnumMember(Value = "PREFIX")] - Prefix = 1 << 2, - /// - /// - /// Enables the ( and ) operators to control operator precedence. - /// - /// - [EnumMember(Value = "PRECEDENCE")] - Precedence = 1 << 3, - /// - /// - /// Enables the " quotes operator used to search for phrases. - /// - /// - [EnumMember(Value = "PHRASE")] - Phrase = 1 << 4, - /// - /// - /// Enables the \| OR operator. - /// - /// - [EnumMember(Value = "OR")] - Or = 1 << 5, - /// - /// - /// Enables the - NOT operator. - /// - /// - [EnumMember(Value = "NOT")] - Not = 1 << 6, - /// - /// - /// Disables all operators. - /// - /// - [EnumMember(Value = "NONE")] - None = 1 << 7, - /// - /// - /// Enables the ~N operator, after a phrase where N is the maximum number of positions allowed between matching tokens. - /// Synonymous to SLOP. - /// - /// - [EnumMember(Value = "NEAR")] - Near = 1 << 8, - /// - /// - /// Enables the ~N operator after a word, where N is an integer denoting the allowed edit distance for matching. - /// - /// - [EnumMember(Value = "FUZZY")] - Fuzzy = 1 << 9, - /// - /// - /// Enables \ as an escape character. - /// - /// - [EnumMember(Value = "ESCAPE")] - Escape = 1 << 10, - /// - /// - /// Enables the + AND operator. - /// - /// - [EnumMember(Value = "AND")] - And = 1 << 11, - /// - /// - /// Enables all optional operators. - /// - /// - [EnumMember(Value = "ALL")] - All = 1 << 12 -} - -internal sealed class SimpleQueryStringFlagConverter : JsonConverter -{ - public override SimpleQueryStringFlag Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var s = reader.GetString(); - if (string.IsNullOrEmpty(s)) - { - return default; - } - - var flags = s.Split('|'); - var result = default(SimpleQueryStringFlag); - foreach (var flag in flags) - { - result |= flag switch - { - "WHITESPACE" => SimpleQueryStringFlag.Whitespace, - "SLOP" => SimpleQueryStringFlag.Slop, - "PREFIX" => SimpleQueryStringFlag.Prefix, - "PRECEDENCE" => SimpleQueryStringFlag.Precedence, - "PHRASE" => SimpleQueryStringFlag.Phrase, - "OR" => SimpleQueryStringFlag.Or, - "NOT" => SimpleQueryStringFlag.Not, - "NONE" => SimpleQueryStringFlag.None, - "NEAR" => SimpleQueryStringFlag.Near, - "FUZZY" => SimpleQueryStringFlag.Fuzzy, - "ESCAPE" => SimpleQueryStringFlag.Escape, - "AND" => SimpleQueryStringFlag.And, - "ALL" => SimpleQueryStringFlag.All, - _ => throw new JsonException($"Invalid flag value '{flag}' for type '{typeToConvert.Name}'.") - }; - } - - return result; - } - - public override void Write(Utf8JsonWriter writer, SimpleQueryStringFlag value, JsonSerializerOptions options) - { - if (value == default) - { - writer.WriteStringValue(string.Empty); - return; - } - - var sb = new StringBuilder(); - if (value.HasFlag(SimpleQueryStringFlag.Whitespace)) - sb.Append("WHITESPACE|"); - if (value.HasFlag(SimpleQueryStringFlag.Slop)) - sb.Append("SLOP|"); - if (value.HasFlag(SimpleQueryStringFlag.Prefix)) - sb.Append("PREFIX|"); - if (value.HasFlag(SimpleQueryStringFlag.Precedence)) - sb.Append("PRECEDENCE|"); - if (value.HasFlag(SimpleQueryStringFlag.Phrase)) - sb.Append("PHRASE|"); - if (value.HasFlag(SimpleQueryStringFlag.Or)) - sb.Append("OR|"); - if (value.HasFlag(SimpleQueryStringFlag.Not)) - sb.Append("NOT|"); - if (value.HasFlag(SimpleQueryStringFlag.None)) - sb.Append("NONE|"); - if (value.HasFlag(SimpleQueryStringFlag.Near)) - sb.Append("NEAR|"); - if (value.HasFlag(SimpleQueryStringFlag.Fuzzy)) - sb.Append("FUZZY|"); - if (value.HasFlag(SimpleQueryStringFlag.Escape)) - sb.Append("ESCAPE|"); - if (value.HasFlag(SimpleQueryStringFlag.And)) - sb.Append("AND|"); - if (value.HasFlag(SimpleQueryStringFlag.All)) - sb.Append("ALL|"); - if (sb.Length == 0) - { - writer.WriteStringValue(string.Empty); - return; - } - - sb.Remove(sb.Length - 1, 1); - writer.WriteStringValue(sb.ToString()); - } -} - -[JsonConverter(typeof(TextQueryTypeConverter))] -public enum TextQueryType -{ - /// - /// - /// Runs a match_phrase_prefix query on each field and uses the _score from the best field. - /// - /// - [EnumMember(Value = "phrase_prefix")] - PhrasePrefix, - /// - /// - /// Runs a match_phrase query on each field and uses the _score from the best field. - /// - /// - [EnumMember(Value = "phrase")] - Phrase, - /// - /// - /// Finds documents that match any field and combines the _score from each field. - /// - /// - [EnumMember(Value = "most_fields")] - MostFields, - /// - /// - /// Treats fields with the same analyzer as though they were one big field. - /// Looks for each word in any field. - /// - /// - [EnumMember(Value = "cross_fields")] - CrossFields, - /// - /// - /// Creates a match_bool_prefix query on each field and combines the _score from each field. - /// - /// - [EnumMember(Value = "bool_prefix")] - BoolPrefix, - /// - /// - /// Finds documents that match any field, but uses the _score from the best field. - /// - /// - [EnumMember(Value = "best_fields")] - BestFields -} - -internal sealed class TextQueryTypeConverter : JsonConverter -{ - public override TextQueryType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "phrase_prefix": - return TextQueryType.PhrasePrefix; - case "phrase": - return TextQueryType.Phrase; - case "most_fields": - return TextQueryType.MostFields; - case "cross_fields": - return TextQueryType.CrossFields; - case "bool_prefix": - return TextQueryType.BoolPrefix; - case "best_fields": - return TextQueryType.BestFields; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TextQueryType value, JsonSerializerOptions options) - { - switch (value) - { - case TextQueryType.PhrasePrefix: - writer.WriteStringValue("phrase_prefix"); - return; - case TextQueryType.Phrase: - writer.WriteStringValue("phrase"); - return; - case TextQueryType.MostFields: - writer.WriteStringValue("most_fields"); - return; - case TextQueryType.CrossFields: - writer.WriteStringValue("cross_fields"); - return; - case TextQueryType.BoolPrefix: - writer.WriteStringValue("bool_prefix"); - return; - case TextQueryType.BestFields: - writer.WriteStringValue("best_fields"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ZeroTermsQueryConverter))] -public enum ZeroTermsQuery -{ - /// - /// - /// No documents are returned if the analyzer removes all tokens. - /// - /// - [EnumMember(Value = "none")] - None, - /// - /// - /// Returns all documents, similar to a match_all query. - /// - /// - [EnumMember(Value = "all")] - All -} - -internal sealed class ZeroTermsQueryConverter : JsonConverter -{ - public override ZeroTermsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "none": - return ZeroTermsQuery.None; - case "all": - return ZeroTermsQuery.All; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ZeroTermsQuery value, JsonSerializerOptions options) - { - switch (value) - { - case ZeroTermsQuery.None: - writer.WriteStringValue("none"); - return; - case ZeroTermsQuery.All: - writer.WriteStringValue("all"); - return; - } - - writer.WriteNullValue(); - } -} \ 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 deleted file mode 100644 index a363213625d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.QueryRules.g.cs +++ /dev/null @@ -1,183 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules; - -[JsonConverter(typeof(QueryRuleCriteriaTypeConverter))] -public enum QueryRuleCriteriaType -{ - [EnumMember(Value = "suffix")] - Suffix, - [EnumMember(Value = "prefix")] - Prefix, - [EnumMember(Value = "lte")] - Lte, - [EnumMember(Value = "lt")] - Lt, - [EnumMember(Value = "gte")] - Gte, - [EnumMember(Value = "gt")] - Gt, - [EnumMember(Value = "global")] - Global, - [EnumMember(Value = "fuzzy")] - Fuzzy, - [EnumMember(Value = "exact_fuzzy")] - ExactFuzzy, - [EnumMember(Value = "exact")] - Exact, - [EnumMember(Value = "contains")] - Contains, - [EnumMember(Value = "always")] - Always -} - -internal sealed class QueryRuleCriteriaTypeConverter : JsonConverter -{ - public override QueryRuleCriteriaType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "suffix": - return QueryRuleCriteriaType.Suffix; - case "prefix": - return QueryRuleCriteriaType.Prefix; - case "lte": - return QueryRuleCriteriaType.Lte; - case "lt": - return QueryRuleCriteriaType.Lt; - case "gte": - return QueryRuleCriteriaType.Gte; - case "gt": - return QueryRuleCriteriaType.Gt; - case "global": - return QueryRuleCriteriaType.Global; - case "fuzzy": - return QueryRuleCriteriaType.Fuzzy; - case "exact_fuzzy": - return QueryRuleCriteriaType.ExactFuzzy; - case "exact": - return QueryRuleCriteriaType.Exact; - case "contains": - return QueryRuleCriteriaType.Contains; - case "always": - return QueryRuleCriteriaType.Always; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, QueryRuleCriteriaType value, JsonSerializerOptions options) - { - switch (value) - { - case QueryRuleCriteriaType.Suffix: - writer.WriteStringValue("suffix"); - return; - case QueryRuleCriteriaType.Prefix: - writer.WriteStringValue("prefix"); - return; - case QueryRuleCriteriaType.Lte: - writer.WriteStringValue("lte"); - return; - case QueryRuleCriteriaType.Lt: - writer.WriteStringValue("lt"); - return; - case QueryRuleCriteriaType.Gte: - writer.WriteStringValue("gte"); - return; - case QueryRuleCriteriaType.Gt: - writer.WriteStringValue("gt"); - return; - case QueryRuleCriteriaType.Global: - writer.WriteStringValue("global"); - return; - case QueryRuleCriteriaType.Fuzzy: - writer.WriteStringValue("fuzzy"); - return; - case QueryRuleCriteriaType.ExactFuzzy: - writer.WriteStringValue("exact_fuzzy"); - return; - case QueryRuleCriteriaType.Exact: - writer.WriteStringValue("exact"); - return; - case QueryRuleCriteriaType.Contains: - writer.WriteStringValue("contains"); - return; - case QueryRuleCriteriaType.Always: - writer.WriteStringValue("always"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(QueryRuleTypeConverter))] -public enum QueryRuleType -{ - [EnumMember(Value = "pinned")] - Pinned, - [EnumMember(Value = "exclude")] - Exclude -} - -internal sealed class QueryRuleTypeConverter : JsonConverter -{ - public override QueryRuleType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "pinned": - return QueryRuleType.Pinned; - case "exclude": - return QueryRuleType.Exclude; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, QueryRuleType value, JsonSerializerOptions options) - { - switch (value) - { - case QueryRuleType.Pinned: - writer.WriteStringValue("pinned"); - return; - case QueryRuleType.Exclude: - writer.WriteStringValue("exclude"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs deleted file mode 100644 index bd9dce49136..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Security.g.cs +++ /dev/null @@ -1,373 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(AccessTokenGrantTypeConverter))] -public enum AccessTokenGrantType -{ - [EnumMember(Value = "refresh_token")] - RefreshToken, - [EnumMember(Value = "password")] - Password, - [EnumMember(Value = "_kerberos")] - Kerberos, - [EnumMember(Value = "client_credentials")] - ClientCredentials -} - -internal sealed class AccessTokenGrantTypeConverter : JsonConverter -{ - public override AccessTokenGrantType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "refresh_token": - return AccessTokenGrantType.RefreshToken; - case "password": - return AccessTokenGrantType.Password; - case "_kerberos": - return AccessTokenGrantType.Kerberos; - case "client_credentials": - return AccessTokenGrantType.ClientCredentials; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, AccessTokenGrantType value, JsonSerializerOptions options) - { - switch (value) - { - case AccessTokenGrantType.RefreshToken: - writer.WriteStringValue("refresh_token"); - return; - case AccessTokenGrantType.Password: - writer.WriteStringValue("password"); - return; - case AccessTokenGrantType.Kerberos: - writer.WriteStringValue("_kerberos"); - return; - case AccessTokenGrantType.ClientCredentials: - writer.WriteStringValue("client_credentials"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ApiKeyGrantTypeConverter))] -public enum ApiKeyGrantType -{ - [EnumMember(Value = "password")] - Password, - [EnumMember(Value = "access_token")] - AccessToken -} - -internal sealed class ApiKeyGrantTypeConverter : JsonConverter -{ - public override ApiKeyGrantType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "password": - return ApiKeyGrantType.Password; - case "access_token": - return ApiKeyGrantType.AccessToken; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ApiKeyGrantType value, JsonSerializerOptions options) - { - switch (value) - { - case ApiKeyGrantType.Password: - writer.WriteStringValue("password"); - return; - case ApiKeyGrantType.AccessToken: - writer.WriteStringValue("access_token"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(ApiKeyTypeConverter))] -public enum ApiKeyType -{ - [EnumMember(Value = "rest")] - Rest, - [EnumMember(Value = "cross_cluster")] - CrossCluster -} - -internal sealed class ApiKeyTypeConverter : JsonConverter -{ - public override ApiKeyType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "rest": - return ApiKeyType.Rest; - case "cross_cluster": - return ApiKeyType.CrossCluster; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ApiKeyType value, JsonSerializerOptions options) - { - switch (value) - { - case ApiKeyType.Rest: - writer.WriteStringValue("rest"); - return; - case ApiKeyType.CrossCluster: - writer.WriteStringValue("cross_cluster"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(EnumStructConverter))] -public readonly partial struct ClusterPrivilege : IEnumStruct -{ - public ClusterPrivilege(string value) => Value = value; - - ClusterPrivilege IEnumStruct.Create(string value) => value; - - public readonly string Value { get; } - public static ClusterPrivilege ReadSecurity { get; } = new ClusterPrivilege("read_security"); - public static ClusterPrivilege ReadPipeline { get; } = new ClusterPrivilege("read_pipeline"); - public static ClusterPrivilege PostBehavioralAnalyticsEvent { get; } = new ClusterPrivilege("post_behavioral_analytics_event"); - public static ClusterPrivilege None { get; } = new ClusterPrivilege("none"); - public static ClusterPrivilege MonitorTransform { get; } = new ClusterPrivilege("monitor_transform"); - public static ClusterPrivilege MonitorMl { get; } = new ClusterPrivilege("monitor_ml"); - public static ClusterPrivilege MonitorInference { get; } = new ClusterPrivilege("monitor_inference"); - public static ClusterPrivilege MonitorEnrich { get; } = new ClusterPrivilege("monitor_enrich"); - public static ClusterPrivilege Monitor { get; } = new ClusterPrivilege("monitor"); - public static ClusterPrivilege ManageTransform { get; } = new ClusterPrivilege("manage_transform"); - public static ClusterPrivilege ManageSecurity { get; } = new ClusterPrivilege("manage_security"); - public static ClusterPrivilege ManageSearchSynonyms { get; } = new ClusterPrivilege("manage_search_synonyms"); - public static ClusterPrivilege ManageSearchQueryRules { get; } = new ClusterPrivilege("manage_search_query_rules"); - public static ClusterPrivilege ManageSearchApplication { get; } = new ClusterPrivilege("manage_search_application"); - public static ClusterPrivilege ManagePipeline { get; } = new ClusterPrivilege("manage_pipeline"); - public static ClusterPrivilege ManageOwnApiKey { get; } = new ClusterPrivilege("manage_own_api_key"); - public static ClusterPrivilege ManageMl { get; } = new ClusterPrivilege("manage_ml"); - public static ClusterPrivilege ManageLogstashPipelines { get; } = new ClusterPrivilege("manage_logstash_pipelines"); - public static ClusterPrivilege ManageIngestPipelines { get; } = new ClusterPrivilege("manage_ingest_pipelines"); - public static ClusterPrivilege ManageInference { get; } = new ClusterPrivilege("manage_inference"); - public static ClusterPrivilege ManageIndexTemplates { get; } = new ClusterPrivilege("manage_index_templates"); - public static ClusterPrivilege ManageEnrich { get; } = new ClusterPrivilege("manage_enrich"); - public static ClusterPrivilege ManageBehavioralAnalytics { get; } = new ClusterPrivilege("manage_behavioral_analytics"); - public static ClusterPrivilege ManageApiKey { get; } = new ClusterPrivilege("manage_api_key"); - public static ClusterPrivilege Manage { get; } = new ClusterPrivilege("manage"); - public static ClusterPrivilege CancelTask { get; } = new ClusterPrivilege("cancel_task"); - public static ClusterPrivilege All { get; } = new ClusterPrivilege("all"); - - public override string ToString() => Value ?? string.Empty; - - public static implicit operator string(ClusterPrivilege clusterPrivilege) => clusterPrivilege.Value; - public static implicit operator ClusterPrivilege(string value) => new(value); - - public override int GetHashCode() => Value.GetHashCode(); - public override bool Equals(object obj) => obj is ClusterPrivilege other && this.Equals(other); - public bool Equals(ClusterPrivilege other) => Value == other.Value; - - public static bool operator ==(ClusterPrivilege a, ClusterPrivilege b) => a.Equals(b); - public static bool operator !=(ClusterPrivilege a, ClusterPrivilege b) => !(a == b); -} - -[JsonConverter(typeof(GrantTypeConverter))] -public enum GrantType -{ - /// - /// - /// In this type of grant, you must supply the user ID and password for which you want to create the API key. - /// - /// - [EnumMember(Value = "password")] - Password, - /// - /// - /// In this type of grant, you must supply an access token that was created by the Elasticsearch token service. - /// - /// - [EnumMember(Value = "access_token")] - AccessToken -} - -internal sealed class GrantTypeConverter : JsonConverter -{ - public override GrantType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "password": - return GrantType.Password; - case "access_token": - return GrantType.AccessToken; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, GrantType value, JsonSerializerOptions options) - { - switch (value) - { - case GrantType.Password: - writer.WriteStringValue("password"); - return; - case GrantType.AccessToken: - writer.WriteStringValue("access_token"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(EnumStructConverter))] -public readonly partial struct IndexPrivilege : IEnumStruct -{ - public IndexPrivilege(string value) => Value = value; - - IndexPrivilege IEnumStruct.Create(string value) => value; - - public readonly string Value { get; } - public static IndexPrivilege Write { get; } = new IndexPrivilege("write"); - public static IndexPrivilege ViewIndexMetadata { get; } = new IndexPrivilege("view_index_metadata"); - public static IndexPrivilege Read { get; } = new IndexPrivilege("read"); - public static IndexPrivilege None { get; } = new IndexPrivilege("none"); - public static IndexPrivilege Monitor { get; } = new IndexPrivilege("monitor"); - public static IndexPrivilege ManageDataStreamLifecycle { get; } = new IndexPrivilege("manage_data_stream_lifecycle"); - public static IndexPrivilege Manage { get; } = new IndexPrivilege("manage"); - public static IndexPrivilege Maintenance { get; } = new IndexPrivilege("maintenance"); - public static IndexPrivilege Index { get; } = new IndexPrivilege("index"); - public static IndexPrivilege DeleteIndex { get; } = new IndexPrivilege("delete_index"); - public static IndexPrivilege Delete { get; } = new IndexPrivilege("delete"); - public static IndexPrivilege CreateIndex { get; } = new IndexPrivilege("create_index"); - public static IndexPrivilege CreateDoc { get; } = new IndexPrivilege("create_doc"); - public static IndexPrivilege Create { get; } = new IndexPrivilege("create"); - public static IndexPrivilege AutoConfigure { get; } = new IndexPrivilege("auto_configure"); - public static IndexPrivilege All { get; } = new IndexPrivilege("all"); - - public override string ToString() => Value ?? string.Empty; - - public static implicit operator string(IndexPrivilege indexPrivilege) => indexPrivilege.Value; - public static implicit operator IndexPrivilege(string value) => new(value); - - public override int GetHashCode() => Value.GetHashCode(); - public override bool Equals(object obj) => obj is IndexPrivilege other && this.Equals(other); - public bool Equals(IndexPrivilege other) => Value == other.Value; - - public static bool operator ==(IndexPrivilege a, IndexPrivilege b) => a.Equals(b); - public static bool operator !=(IndexPrivilege a, IndexPrivilege b) => !(a == b); -} - -[JsonConverter(typeof(EnumStructConverter))] -public readonly partial struct RestrictionWorkflow : IEnumStruct -{ - public RestrictionWorkflow(string value) => Value = value; - - RestrictionWorkflow IEnumStruct.Create(string value) => value; - - public readonly string Value { get; } - public static RestrictionWorkflow SearchApplicationQuery { get; } = new RestrictionWorkflow("search_application_query"); - - public override string ToString() => Value ?? string.Empty; - - public static implicit operator string(RestrictionWorkflow restrictionWorkflow) => restrictionWorkflow.Value; - public static implicit operator RestrictionWorkflow(string value) => new(value); - - public override int GetHashCode() => Value.GetHashCode(); - public override bool Equals(object obj) => obj is RestrictionWorkflow other && this.Equals(other); - public bool Equals(RestrictionWorkflow other) => Value == other.Value; - - public static bool operator ==(RestrictionWorkflow a, RestrictionWorkflow b) => a.Equals(b); - public static bool operator !=(RestrictionWorkflow a, RestrictionWorkflow b) => !(a == b); -} - -[JsonConverter(typeof(TemplateFormatConverter))] -public enum TemplateFormat -{ - [EnumMember(Value = "string")] - String, - [EnumMember(Value = "json")] - Json -} - -internal sealed class TemplateFormatConverter : JsonConverter -{ - public override TemplateFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "string": - return TemplateFormat.String; - case "json": - return TemplateFormat.Json; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, TemplateFormat value, JsonSerializerOptions options) - { - switch (value) - { - case TemplateFormat.String: - writer.WriteStringValue("string"); - return; - case TemplateFormat.Json: - writer.WriteStringValue("json"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Snapshot.g.cs deleted file mode 100644 index 0d7094311a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Snapshot.g.cs +++ /dev/null @@ -1,194 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Snapshot; - -[JsonConverter(typeof(ShardsStatsStageConverter))] -public enum ShardsStatsStage -{ - /// - /// - /// Number of shards in the snapshot that are in the started stage of being stored in the repository. - /// - /// - [EnumMember(Value = "STARTED")] - Started, - /// - /// - /// Number of shards in the snapshot that are in the initializing stage of being stored in the repository. - /// - /// - [EnumMember(Value = "INIT")] - Init, - /// - /// - /// Number of shards in the snapshot that are in the finalizing stage of being stored in the repository. - /// - /// - [EnumMember(Value = "FINALIZE")] - Finalize, - /// - /// - /// Number of shards in the snapshot that were not successfully stored in the repository. - /// - /// - [EnumMember(Value = "FAILURE")] - Failure, - /// - /// - /// Number of shards in the snapshot that were successfully stored in the repository. - /// - /// - [EnumMember(Value = "DONE")] - Done -} - -internal sealed class ShardsStatsStageConverter : JsonConverter -{ - public override ShardsStatsStage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "STARTED": - return ShardsStatsStage.Started; - case "INIT": - return ShardsStatsStage.Init; - case "FINALIZE": - return ShardsStatsStage.Finalize; - case "FAILURE": - return ShardsStatsStage.Failure; - case "DONE": - return ShardsStatsStage.Done; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ShardsStatsStage value, JsonSerializerOptions options) - { - switch (value) - { - case ShardsStatsStage.Started: - writer.WriteStringValue("STARTED"); - return; - case ShardsStatsStage.Init: - writer.WriteStringValue("INIT"); - return; - case ShardsStatsStage.Finalize: - writer.WriteStringValue("FINALIZE"); - return; - case ShardsStatsStage.Failure: - writer.WriteStringValue("FAILURE"); - return; - case ShardsStatsStage.Done: - writer.WriteStringValue("DONE"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(SnapshotSortConverter))] -public enum SnapshotSort -{ - [EnumMember(Value = "start_time")] - StartTime, - [EnumMember(Value = "shard_count")] - ShardCount, - [EnumMember(Value = "repository")] - Repository, - [EnumMember(Value = "name")] - Name, - [EnumMember(Value = "index_count")] - IndexCount, - [EnumMember(Value = "failed_shard_count")] - FailedShardCount, - [EnumMember(Value = "duration")] - Duration -} - -internal sealed class SnapshotSortConverter : JsonConverter -{ - public override SnapshotSort Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "start_time": - return SnapshotSort.StartTime; - case "shard_count": - return SnapshotSort.ShardCount; - case "repository": - return SnapshotSort.Repository; - case "name": - return SnapshotSort.Name; - case "index_count": - return SnapshotSort.IndexCount; - case "failed_shard_count": - return SnapshotSort.FailedShardCount; - case "duration": - return SnapshotSort.Duration; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SnapshotSort value, JsonSerializerOptions options) - { - switch (value) - { - case SnapshotSort.StartTime: - writer.WriteStringValue("start_time"); - return; - case SnapshotSort.ShardCount: - writer.WriteStringValue("shard_count"); - return; - case SnapshotSort.Repository: - writer.WriteStringValue("repository"); - return; - case SnapshotSort.Name: - writer.WriteStringValue("name"); - return; - case SnapshotSort.IndexCount: - writer.WriteStringValue("index_count"); - return; - case SnapshotSort.FailedShardCount: - writer.WriteStringValue("failed_shard_count"); - return; - case SnapshotSort.Duration: - writer.WriteStringValue("duration"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs deleted file mode 100644 index 4cdbebbc92a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Sql.g.cs +++ /dev/null @@ -1,106 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; - -[JsonConverter(typeof(SqlFormatConverter))] -public enum SqlFormat -{ - [EnumMember(Value = "yaml")] - Yaml, - [EnumMember(Value = "txt")] - Txt, - [EnumMember(Value = "tsv")] - Tsv, - [EnumMember(Value = "smile")] - Smile, - [EnumMember(Value = "json")] - Json, - [EnumMember(Value = "csv")] - Csv, - [EnumMember(Value = "cbor")] - Cbor -} - -internal sealed class SqlFormatConverter : JsonConverter -{ - public override SqlFormat Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "yaml": - return SqlFormat.Yaml; - case "txt": - return SqlFormat.Txt; - case "tsv": - return SqlFormat.Tsv; - case "smile": - return SqlFormat.Smile; - case "json": - return SqlFormat.Json; - case "csv": - return SqlFormat.Csv; - case "cbor": - return SqlFormat.Cbor; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, SqlFormat value, JsonSerializerOptions options) - { - switch (value) - { - case SqlFormat.Yaml: - writer.WriteStringValue("yaml"); - return; - case SqlFormat.Txt: - writer.WriteStringValue("txt"); - return; - case SqlFormat.Tsv: - writer.WriteStringValue("tsv"); - return; - case SqlFormat.Smile: - writer.WriteStringValue("smile"); - return; - case SqlFormat.Json: - writer.WriteStringValue("json"); - return; - case SqlFormat.Csv: - writer.WriteStringValue("csv"); - return; - case SqlFormat.Cbor: - writer.WriteStringValue("cbor"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Watcher.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Watcher.g.cs deleted file mode 100644 index 9a877190686..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Watcher.g.cs +++ /dev/null @@ -1,85 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Watcher; - -[JsonConverter(typeof(ActionStatusOptionsConverter))] -public enum ActionStatusOptions -{ - [EnumMember(Value = "throttled")] - Throttled, - [EnumMember(Value = "success")] - Success, - [EnumMember(Value = "simulated")] - Simulated, - [EnumMember(Value = "failure")] - Failure -} - -internal sealed class ActionStatusOptionsConverter : JsonConverter -{ - public override ActionStatusOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "throttled": - return ActionStatusOptions.Throttled; - case "success": - return ActionStatusOptions.Success; - case "simulated": - return ActionStatusOptions.Simulated; - case "failure": - return ActionStatusOptions.Failure; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ActionStatusOptions value, JsonSerializerOptions options) - { - switch (value) - { - case ActionStatusOptions.Throttled: - writer.WriteStringValue("throttled"); - return; - case ActionStatusOptions.Success: - writer.WriteStringValue("success"); - return; - case ActionStatusOptions.Simulated: - writer.WriteStringValue("simulated"); - return; - case ActionStatusOptions.Failure: - writer.WriteStringValue("failure"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs deleted file mode 100644 index e217b5508b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Xpack.g.cs +++ /dev/null @@ -1,78 +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.Core; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Xpack; - -[JsonConverter(typeof(XPackCategoryConverter))] -public enum XPackCategory -{ - [EnumMember(Value = "license")] - License, - [EnumMember(Value = "features")] - Features, - [EnumMember(Value = "build")] - Build -} - -internal sealed class XPackCategoryConverter : JsonConverter -{ - public override XPackCategory Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "license": - return XPackCategory.License; - case "features": - return XPackCategory.Features; - case "build": - return XPackCategory.Build; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, XPackCategory value, JsonSerializerOptions options) - { - switch (value) - { - case XPackCategory.License: - writer.WriteStringValue("license"); - return; - case XPackCategory.Features: - writer.WriteStringValue("features"); - return; - case XPackCategory.Build: - writer.WriteStringValue("build"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs deleted file mode 100644 index 72efe9c0cc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs +++ /dev/null @@ -1,55 +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.Eql; - -public sealed partial class EqlHits -{ - /// - /// - /// Contains events matching the query. Each object represents a matching event. - /// - /// - [JsonInclude, JsonPropertyName("events")] - public IReadOnlyCollection>? Events { get; init; } - - /// - /// - /// Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence. - /// - /// - [JsonInclude, JsonPropertyName("sequences")] - public IReadOnlyCollection>? Sequences { get; init; } - - /// - /// - /// Metadata about the number of matching events or sequences. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TotalHits? Total { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 5614df40669..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs +++ /dev/null @@ -1,68 +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.Eql; - -public sealed partial class HitsEvent -{ - [JsonInclude, JsonPropertyName("fields")] - [ReadOnlyFieldDictionaryConverter(typeof(IReadOnlyCollection))] - public IReadOnlyDictionary>? Fields { get; init; } - - /// - /// - /// Unique identifier for the event. This ID is only unique within the index. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public string Id { get; init; } - - /// - /// - /// Name of the index containing the event. - /// - /// - [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. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - [SourceConverter] - public TEvent Source { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index db8772ee9ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs +++ /dev/null @@ -1,47 +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.Eql; - -public sealed partial class HitsSequence -{ - /// - /// - /// Contains events matching the query. Each object represents a matching event. - /// - /// - [JsonInclude, JsonPropertyName("events")] - public IReadOnlyCollection> Events { get; init; } - - /// - /// - /// 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; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorCause.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorCause.g.cs deleted file mode 100644 index f5aa3c93f05..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorCause.g.cs +++ /dev/null @@ -1,139 +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; - -internal sealed partial class ErrorCauseConverter : JsonConverter -{ - public override ErrorCause Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - Elastic.Clients.Elasticsearch.Serverless.ErrorCause? causedBy = default; - string? reason = default; - IReadOnlyCollection? rootCause = default; - string? stackTrace = default; - IReadOnlyCollection? suppressed = default; - string type = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "caused_by") - { - causedBy = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "reason") - { - reason = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "root_cause") - { - rootCause = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "stack_trace") - { - stackTrace = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "suppressed") - { - suppressed = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "type") - { - type = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - return new ErrorCause { CausedBy = causedBy, Metadata = additionalProperties, Reason = reason, RootCause = rootCause, StackTrace = stackTrace, Suppressed = suppressed, Type = type }; - } - - public override void Write(Utf8JsonWriter writer, ErrorCause value, JsonSerializerOptions options) - { - throw new NotImplementedException("'ErrorCause' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -/// -/// -/// Cause and details about a request failure. This class defines the properties common to all error types. -/// Additional details are also provided, that depend on the error type. -/// -/// -[JsonConverter(typeof(ErrorCauseConverter))] -public sealed partial class ErrorCause -{ - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? CausedBy { get; init; } - - /// - /// - /// Additional details about the error - /// - /// - public IReadOnlyDictionary Metadata { get; init; } - - /// - /// - /// A human-readable explanation of the error, in english - /// - /// - public string? Reason { get; init; } - public IReadOnlyCollection? RootCause { get; init; } - - /// - /// - /// The server stack trace. Present only if the error_trace=true parameter was sent with the request. - /// - /// - public string? StackTrace { get; init; } - public IReadOnlyCollection? Suppressed { get; init; } - - /// - /// - /// The type of error - /// - /// - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorResponseBase.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorResponseBase.g.cs deleted file mode 100644 index 0bf6505243d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ErrorResponseBase.g.cs +++ /dev/null @@ -1,41 +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; - -/// -/// -/// The response returned by Elasticsearch when request execution did not succeed. -/// -/// -public sealed partial class ErrorResponseBase -{ - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause Error { get; init; } - [JsonInclude, JsonPropertyName("status")] - public int Status { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldMemoryUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldMemoryUsage.g.cs deleted file mode 100644 index 1c68d895a3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldMemoryUsage.g.cs +++ /dev/null @@ -1,36 +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 FieldMemoryUsage -{ - [JsonInclude, JsonPropertyName("memory_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MemorySize { get; init; } - [JsonInclude, JsonPropertyName("memory_size_in_bytes")] - public long MemorySizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSizeUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSizeUsage.g.cs deleted file mode 100644 index d6737dfbcb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSizeUsage.g.cs +++ /dev/null @@ -1,36 +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 FieldSizeUsage -{ - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSort.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSort.g.cs deleted file mode 100644 index 430fc042c4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FieldSort.g.cs +++ /dev/null @@ -1,320 +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 FieldSort -{ - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("missing")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? Missing { get; set; } - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.SortMode? Mode { get; set; } - [JsonInclude, JsonPropertyName("nested")] - public Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? Nested { get; set; } - [JsonInclude, JsonPropertyName("numeric_type")] - public Elastic.Clients.Elasticsearch.Serverless.FieldSortNumericType? NumericType { get; set; } - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - [JsonInclude, JsonPropertyName("unmapped_type")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldType? UnmappedType { get; set; } -} - -public sealed partial class FieldSortDescriptor : SerializableDescriptor> -{ - internal FieldSortDescriptor(Action> configure) => configure.Invoke(this); - - public FieldSortDescriptor() : base() - { - } - - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { 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.FieldSortNumericType? NumericTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldType? UnmappedTypeValue { get; set; } - - public FieldSortDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public FieldSortDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - public FieldSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) - { - ModeValue = mode; - return Self; - } - - public FieldSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) - { - NestedDescriptor = null; - NestedDescriptorAction = null; - NestedValue = nested; - return Self; - } - - public FieldSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) - { - NestedValue = null; - NestedDescriptorAction = null; - NestedDescriptor = descriptor; - return Self; - } - - public FieldSortDescriptor Nested(Action> configure) - { - NestedValue = null; - NestedDescriptor = null; - NestedDescriptorAction = configure; - return Self; - } - - public FieldSortDescriptor NumericType(Elastic.Clients.Elasticsearch.Serverless.FieldSortNumericType? numericType) - { - NumericTypeValue = numericType; - return Self; - } - - public FieldSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - public FieldSortDescriptor UnmappedType(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldType? unmappedType) - { - UnmappedTypeValue = unmappedType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - 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 (NumericTypeValue is not null) - { - writer.WritePropertyName("numeric_type"); - JsonSerializer.Serialize(writer, NumericTypeValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (UnmappedTypeValue is not null) - { - writer.WritePropertyName("unmapped_type"); - JsonSerializer.Serialize(writer, UnmappedTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldSortDescriptor : SerializableDescriptor -{ - internal FieldSortDescriptor(Action configure) => configure.Invoke(this); - - public FieldSortDescriptor() : base() - { - } - - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? MissingValue { 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.FieldSortNumericType? NumericTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldType? UnmappedTypeValue { get; set; } - - public FieldSortDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public FieldSortDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.FieldValue? missing) - { - MissingValue = missing; - return Self; - } - - public FieldSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) - { - ModeValue = mode; - return Self; - } - - public FieldSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) - { - NestedDescriptor = null; - NestedDescriptorAction = null; - NestedValue = nested; - return Self; - } - - public FieldSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) - { - NestedValue = null; - NestedDescriptorAction = null; - NestedDescriptor = descriptor; - return Self; - } - - public FieldSortDescriptor Nested(Action configure) - { - NestedValue = null; - NestedDescriptor = null; - NestedDescriptorAction = configure; - return Self; - } - - public FieldSortDescriptor NumericType(Elastic.Clients.Elasticsearch.Serverless.FieldSortNumericType? numericType) - { - NumericTypeValue = numericType; - return Self; - } - - public FieldSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - public FieldSortDescriptor UnmappedType(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldType? unmappedType) - { - UnmappedTypeValue = unmappedType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - JsonSerializer.Serialize(writer, MissingValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - 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 (NumericTypeValue is not null) - { - writer.WritePropertyName("numeric_type"); - JsonSerializer.Serialize(writer, NumericTypeValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (UnmappedTypeValue is not null) - { - writer.WritePropertyName("unmapped_type"); - JsonSerializer.Serialize(writer, UnmappedTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FielddataStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FielddataStats.g.cs deleted file mode 100644 index 56985a0b49d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FielddataStats.g.cs +++ /dev/null @@ -1,41 +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 FielddataStats -{ - [JsonInclude, JsonPropertyName("evictions")] - public long? Evictions { get; init; } - [JsonInclude, JsonPropertyName("fields")] - [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.FieldMemoryUsage))] - public IReadOnlyDictionary? Fields { get; init; } - [JsonInclude, JsonPropertyName("memory_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MemorySize { get; init; } - [JsonInclude, JsonPropertyName("memory_size_in_bytes")] - public long MemorySizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FlushStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FlushStats.g.cs deleted file mode 100644 index 765b09ff5eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/FlushStats.g.cs +++ /dev/null @@ -1,40 +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 FlushStats -{ - [JsonInclude, JsonPropertyName("periodic")] - public long Periodic { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs deleted file mode 100644 index 4c54c28aa4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Fuzziness.g.cs +++ /dev/null @@ -1,45 +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.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; - -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class Fuzziness : Union -{ - public Fuzziness(string Fuzziness) : base(Fuzziness) - { - } - - public Fuzziness(int Fuzziness) : base(Fuzziness) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoBounds.g.cs deleted file mode 100644 index b8a34bb8503..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoBounds.g.cs +++ /dev/null @@ -1,165 +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.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; - -/// -/// -/// A geo bounding box. It can be represented in various ways: -/// -/// -/// -/// -/// as 4 top/bottom/left/right coordinates -/// -/// -/// -/// -/// as 2 top_left / bottom_right points -/// -/// -/// -/// -/// as 2 top_right / bottom_left points -/// -/// -/// -/// -/// as a WKT bounding box -/// -/// -/// -/// -[JsonConverter(typeof(GeoBoundsConverter))] -public sealed partial class GeoBounds : IComplexUnion -{ - public enum Kind - { - Coordinates, - TopLeftBottomRight, - TopRightBottomLeft, - Wkt - } - - private readonly Kind _kind; - private readonly object _value; - - Kind IComplexUnion.ValueKind => _kind; - - object IComplexUnion.Value => _value; - - private GeoBounds(Kind kind, object value) - { - _kind = kind; - _value = value; - } - - public static GeoBounds Coordinates(Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds coordinates) => new(Kind.Coordinates, coordinates); - - public bool IsCoordinates => _kind == Kind.Coordinates; - - public bool TryGetCoordinates([NotNullWhen(true)] out Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds? coordinates) - { - coordinates = null; - if (_kind == Kind.Coordinates) - { - coordinates = (Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds)_value; - return true; - } - - return false; - } - - public static implicit operator GeoBounds(Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds coordinates) => GeoBounds.Coordinates(coordinates); - - public static GeoBounds TopLeftBottomRight(Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds topLeftBottomRight) => new(Kind.TopLeftBottomRight, topLeftBottomRight); - - public bool IsTopLeftBottomRight => _kind == Kind.TopLeftBottomRight; - - public bool TryGetTopLeftBottomRight([NotNullWhen(true)] out Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds? topLeftBottomRight) - { - topLeftBottomRight = null; - if (_kind == Kind.TopLeftBottomRight) - { - topLeftBottomRight = (Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds)_value; - return true; - } - - return false; - } - - public static implicit operator GeoBounds(Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds topLeftBottomRight) => GeoBounds.TopLeftBottomRight(topLeftBottomRight); - - public static GeoBounds TopRightBottomLeft(Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds topRightBottomLeft) => new(Kind.TopRightBottomLeft, topRightBottomLeft); - - public bool IsTopRightBottomLeft => _kind == Kind.TopRightBottomLeft; - - public bool TryGetTopRightBottomLeft([NotNullWhen(true)] out Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds? topRightBottomLeft) - { - topRightBottomLeft = null; - if (_kind == Kind.TopRightBottomLeft) - { - topRightBottomLeft = (Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds)_value; - return true; - } - - return false; - } - - public static implicit operator GeoBounds(Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds topRightBottomLeft) => GeoBounds.TopRightBottomLeft(topRightBottomLeft); - - public static GeoBounds Wkt(Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds wkt) => new(Kind.Wkt, wkt); - - public bool IsWkt => _kind == Kind.Wkt; - - public bool TryGetWkt([NotNullWhen(true)] out Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds? wkt) - { - wkt = null; - if (_kind == Kind.Wkt) - { - wkt = (Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds)_value; - return true; - } - - return false; - } - - public static implicit operator GeoBounds(Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds wkt) => GeoBounds.Wkt(wkt); -} - -internal sealed class GeoBoundsConverter : MultiItemUnionConverter -{ - public GeoBoundsConverter() - { - _types = new Dictionary { { GeoBounds.Kind.Coordinates, typeof(Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds) }, { GeoBounds.Kind.TopLeftBottomRight, typeof(Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds) }, { GeoBounds.Kind.TopRightBottomLeft, typeof(Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds) }, { GeoBounds.Kind.Wkt, typeof(Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds) } }; - _factories = new Dictionary> { { typeof(Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds), o => GeoBounds.Coordinates((Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds)o) }, { typeof(Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds), o => GeoBounds.TopLeftBottomRight((Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds)o) }, { typeof(Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds), o => GeoBounds.TopRightBottomLeft((Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds)o) }, { typeof(Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds), o => GeoBounds.Wkt((Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds)o) } }; - _uniquePropertyToType = new Dictionary { { "bottom", typeof(Elastic.Clients.Elasticsearch.Serverless.CoordsGeoBounds) }, { "bottom_right", typeof(Elastic.Clients.Elasticsearch.Serverless.TopLeftBottomRightGeoBounds) }, { "bottom_left", typeof(Elastic.Clients.Elasticsearch.Serverless.TopRightBottomLeftGeoBounds) }, { "wkt", typeof(Elastic.Clients.Elasticsearch.Serverless.WktGeoBounds) } }; - } -} \ 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 deleted file mode 100644 index a691a7efc98..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoDistanceSort.g.cs +++ /dev/null @@ -1,469 +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; - -internal sealed partial class GeoDistanceSortConverter : JsonConverter -{ - public override GeoDistanceSort Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new GeoDistanceSort(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "distance_type") - { - variant.DistanceType = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "ignore_unmapped") - { - variant.IgnoreUnmapped = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "mode") - { - variant.Mode = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "nested") - { - variant.Nested = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "order") - { - variant.Order = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "unit") - { - variant.Unit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Location = JsonSerializer.Deserialize>(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, GeoDistanceSort value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Location 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.Location, options); - } - - if (value.DistanceType is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, value.DistanceType, options); - } - - if (value.IgnoreUnmapped.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(value.IgnoreUnmapped.Value); - } - - if (value.Mode is not null) - { - writer.WritePropertyName("mode"); - 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"); - JsonSerializer.Serialize(writer, value.Order, options); - } - - if (value.Unit is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, value.Unit, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(GeoDistanceSortConverter))] -public sealed partial class GeoDistanceSort -{ - public Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceType { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - 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; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.SortOptions(GeoDistanceSort geoDistanceSort) => Elastic.Clients.Elasticsearch.Serverless.SortOptions.GeoDistance(geoDistanceSort); -} - -public sealed partial class GeoDistanceSortDescriptor : SerializableDescriptor> -{ - internal GeoDistanceSortDescriptor(Action> configure) => configure.Invoke(this); - - public GeoDistanceSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - 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; } - - public GeoDistanceSortDescriptor DistanceType(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? distanceType) - { - DistanceTypeValue = distanceType; - return Self; - } - - public GeoDistanceSortDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceSortDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public GeoDistanceSortDescriptor Location(ICollection location) - { - LocationValue = location; - return Self; - } - - public GeoDistanceSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) - { - ModeValue = mode; - 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; - return Self; - } - - public GeoDistanceSortDescriptor Unit(Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? unit) - { - UnitValue = unit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && LocationValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, LocationValue, options); - } - - if (DistanceTypeValue is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, DistanceTypeValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - 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"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (UnitValue is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, UnitValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoDistanceSortDescriptor : SerializableDescriptor -{ - internal GeoDistanceSortDescriptor(Action configure) => configure.Invoke(this); - - public GeoDistanceSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - 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; } - - public GeoDistanceSortDescriptor DistanceType(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? distanceType) - { - DistanceTypeValue = distanceType; - return Self; - } - - public GeoDistanceSortDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceSortDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceSortDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public GeoDistanceSortDescriptor Location(ICollection location) - { - LocationValue = location; - return Self; - } - - public GeoDistanceSortDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.SortMode? mode) - { - ModeValue = mode; - 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; - return Self; - } - - public GeoDistanceSortDescriptor Unit(Elastic.Clients.Elasticsearch.Serverless.DistanceUnit? unit) - { - UnitValue = unit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && LocationValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, LocationValue, options); - } - - if (DistanceTypeValue is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, DistanceTypeValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - 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"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (UnitValue is not null) - { - writer.WritePropertyName("unit"); - JsonSerializer.Serialize(writer, UnitValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoHashLocation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoHashLocation.g.cs deleted file mode 100644 index 9007964a10b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoHashLocation.g.cs +++ /dev/null @@ -1,59 +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 GeoHashLocation -{ - [JsonInclude, JsonPropertyName("geohash")] - public string Geohash { get; set; } -} - -public sealed partial class GeoHashLocationDescriptor : SerializableDescriptor -{ - internal GeoHashLocationDescriptor(Action configure) => configure.Invoke(this); - - public GeoHashLocationDescriptor() : base() - { - } - - private string GeohashValue { get; set; } - - public GeoHashLocationDescriptor Geohash(string geohash) - { - GeohashValue = geohash; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("geohash"); - writer.WriteStringValue(GeohashValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLine.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLine.g.cs deleted file mode 100644 index 5eed9e2f8a1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLine.g.cs +++ /dev/null @@ -1,52 +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; - -/// -/// -/// A GeoJson GeoLine. -/// -/// -public sealed partial class GeoLine -{ - /// - /// - /// Array of [lon, lat] coordinates - /// - /// - [JsonInclude, JsonPropertyName("coordinates")] - public IReadOnlyCollection> Coordinates { get; init; } - - /// - /// - /// Always "LineString" - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLocation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLocation.g.cs deleted file mode 100644 index dcf1bc9a0b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeoLocation.g.cs +++ /dev/null @@ -1,165 +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.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; - -/// -/// -/// A latitude/longitude as a 2 dimensional point. It can be represented in various ways: -/// -/// -/// -/// -/// as a {lat, long} object -/// -/// -/// -/// -/// as a geo hash value -/// -/// -/// -/// -/// as a [lon, lat] array -/// -/// -/// -/// -/// as a string in "<lat>, <lon>" or WKT point formats -/// -/// -/// -/// -[JsonConverter(typeof(GeoLocationConverter))] -public sealed partial class GeoLocation : IComplexUnion -{ - public enum Kind - { - LatitudeLongitude, - Geohash, - Coordinates, - Text - } - - private readonly Kind _kind; - private readonly object _value; - - Kind IComplexUnion.ValueKind => _kind; - - object IComplexUnion.Value => _value; - - private GeoLocation(Kind kind, object value) - { - _kind = kind; - _value = value; - } - - public static GeoLocation LatitudeLongitude(Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation latitudeLongitude) => new(Kind.LatitudeLongitude, latitudeLongitude); - - public bool IsLatitudeLongitude => _kind == Kind.LatitudeLongitude; - - public bool TryGetLatitudeLongitude([NotNullWhen(true)] out Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation? latitudeLongitude) - { - latitudeLongitude = null; - if (_kind == Kind.LatitudeLongitude) - { - latitudeLongitude = (Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation)_value; - return true; - } - - return false; - } - - public static implicit operator GeoLocation(Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation latitudeLongitude) => GeoLocation.LatitudeLongitude(latitudeLongitude); - - public static GeoLocation Geohash(Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation geohash) => new(Kind.Geohash, geohash); - - public bool IsGeohash => _kind == Kind.Geohash; - - public bool TryGetGeohash([NotNullWhen(true)] out Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation? geohash) - { - geohash = null; - if (_kind == Kind.Geohash) - { - geohash = (Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation)_value; - return true; - } - - return false; - } - - public static implicit operator GeoLocation(Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation geohash) => GeoLocation.Geohash(geohash); - - public static GeoLocation Coordinates(double[] coordinates) => new(Kind.Coordinates, coordinates); - - public bool IsCoordinates => _kind == Kind.Coordinates; - - public bool TryGetCoordinates([NotNullWhen(true)] out double[]? coordinates) - { - coordinates = null; - if (_kind == Kind.Coordinates) - { - coordinates = (double[])_value; - return true; - } - - return false; - } - - public static implicit operator GeoLocation(double[] coordinates) => GeoLocation.Coordinates(coordinates); - - public static GeoLocation Text(string text) => new(Kind.Text, text); - - public bool IsText => _kind == Kind.Text; - - public bool TryGetText([NotNullWhen(true)] out string? text) - { - text = null; - if (_kind == Kind.Text) - { - text = (string)_value; - return true; - } - - return false; - } - - public static implicit operator GeoLocation(string text) => GeoLocation.Text(text); -} - -internal sealed class GeoLocationConverter : MultiItemUnionConverter -{ - public GeoLocationConverter() - { - _types = new Dictionary { { GeoLocation.Kind.LatitudeLongitude, typeof(Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation) }, { GeoLocation.Kind.Geohash, typeof(Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation) } }; - _factories = new Dictionary> { { typeof(Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation), o => GeoLocation.LatitudeLongitude((Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation)o) }, { typeof(Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation), o => GeoLocation.Geohash((Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation)o) } }; - _uniquePropertyToType = new Dictionary { { "lat", typeof(Elastic.Clients.Elasticsearch.Serverless.LatLonGeoLocation) }, { "geohash", typeof(Elastic.Clients.Elasticsearch.Serverless.GeoHashLocation) } }; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeohashPrecision.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeohashPrecision.g.cs deleted file mode 100644 index e9e49928d87..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GeohashPrecision.g.cs +++ /dev/null @@ -1,47 +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.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; - -/// -/// -/// A precision that can be expressed as a geohash length between 1 and 12, or a distance measure like "1km", "10m". -/// -/// -public sealed partial class GeohashPrecision : Union -{ - public GeohashPrecision(double GeohashLength) : base(GeohashLength) - { - } - - public GeohashPrecision(string Distance) : base(Distance) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GetStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GetStats.g.cs deleted file mode 100644 index bdd4dd14fca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/GetStats.g.cs +++ /dev/null @@ -1,52 +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 GetStats -{ - [JsonInclude, JsonPropertyName("current")] - public long Current { get; init; } - [JsonInclude, JsonPropertyName("exists_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ExistsTime { get; init; } - [JsonInclude, JsonPropertyName("exists_time_in_millis")] - public long ExistsTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("exists_total")] - public long ExistsTotal { get; init; } - [JsonInclude, JsonPropertyName("missing_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MissingTime { get; init; } - [JsonInclude, JsonPropertyName("missing_time_in_millis")] - public long MissingTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("missing_total")] - public long MissingTotal { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Connection.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Connection.g.cs deleted file mode 100644 index 9314adb2e0c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Connection.g.cs +++ /dev/null @@ -1,40 +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.Graph; - -public sealed partial class Connection -{ - [JsonInclude, JsonPropertyName("doc_count")] - public long DocCount { get; init; } - [JsonInclude, JsonPropertyName("source")] - public long Source { get; init; } - [JsonInclude, JsonPropertyName("target")] - public long Target { get; init; } - [JsonInclude, JsonPropertyName("weight")] - public double Weight { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/ExploreControls.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/ExploreControls.g.cs deleted file mode 100644 index 7ce7756ed12..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/ExploreControls.g.cs +++ /dev/null @@ -1,309 +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.Graph; - -public sealed partial class ExploreControls -{ - /// - /// - /// To avoid the top-matching documents sample being dominated by a single source of results, it is sometimes necessary to request diversity in the sample. - /// You can do this by selecting a single-value field and setting a maximum number of documents per value for that field. - /// - /// - [JsonInclude, JsonPropertyName("sample_diversity")] - public Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversity? SampleDiversity { get; set; } - - /// - /// - /// Each hop considers a sample of the best-matching documents on each shard. - /// Using samples improves the speed of execution and keeps exploration focused on meaningfully-connected terms. - /// Very small values (less than 50) might not provide sufficient weight-of-evidence to identify significant connections between terms. - /// Very large sample sizes can dilute the quality of the results and increase execution times. - /// - /// - [JsonInclude, JsonPropertyName("sample_size")] - public int? SampleSize { get; set; } - - /// - /// - /// The length of time in milliseconds after which exploration will be halted and the results gathered so far are returned. - /// This timeout is honored on a best-effort basis. - /// Execution might overrun this timeout if, for example, a long pause is encountered while FieldData is loaded for a field. - /// - /// - [JsonInclude, JsonPropertyName("timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get; set; } - - /// - /// - /// Filters associated terms so only those that are significantly associated with your query are included. - /// - /// - [JsonInclude, JsonPropertyName("use_significance")] - public bool UseSignificance { get; set; } -} - -public sealed partial class ExploreControlsDescriptor : SerializableDescriptor> -{ - internal ExploreControlsDescriptor(Action> configure) => configure.Invoke(this); - - public ExploreControlsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversity? SampleDiversityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversityDescriptor SampleDiversityDescriptor { get; set; } - private Action> SampleDiversityDescriptorAction { get; set; } - private int? SampleSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - private bool UseSignificanceValue { get; set; } - - /// - /// - /// To avoid the top-matching documents sample being dominated by a single source of results, it is sometimes necessary to request diversity in the sample. - /// You can do this by selecting a single-value field and setting a maximum number of documents per value for that field. - /// - /// - public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversity? sampleDiversity) - { - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = null; - SampleDiversityValue = sampleDiversity; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversityDescriptor descriptor) - { - SampleDiversityValue = null; - SampleDiversityDescriptorAction = null; - SampleDiversityDescriptor = descriptor; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(Action> configure) - { - SampleDiversityValue = null; - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = configure; - return Self; - } - - /// - /// - /// Each hop considers a sample of the best-matching documents on each shard. - /// Using samples improves the speed of execution and keeps exploration focused on meaningfully-connected terms. - /// Very small values (less than 50) might not provide sufficient weight-of-evidence to identify significant connections between terms. - /// Very large sample sizes can dilute the quality of the results and increase execution times. - /// - /// - public ExploreControlsDescriptor SampleSize(int? sampleSize) - { - SampleSizeValue = sampleSize; - return Self; - } - - /// - /// - /// The length of time in milliseconds after which exploration will be halted and the results gathered so far are returned. - /// This timeout is honored on a best-effort basis. - /// Execution might overrun this timeout if, for example, a long pause is encountered while FieldData is loaded for a field. - /// - /// - public ExploreControlsDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// Filters associated terms so only those that are significantly associated with your query are included. - /// - /// - public ExploreControlsDescriptor UseSignificance(bool useSignificance = true) - { - UseSignificanceValue = useSignificance; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SampleDiversityDescriptor is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityDescriptor, options); - } - else if (SampleDiversityDescriptorAction is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversityDescriptor(SampleDiversityDescriptorAction), options); - } - else if (SampleDiversityValue is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityValue, options); - } - - if (SampleSizeValue.HasValue) - { - writer.WritePropertyName("sample_size"); - writer.WriteNumberValue(SampleSizeValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WritePropertyName("use_significance"); - writer.WriteBooleanValue(UseSignificanceValue); - writer.WriteEndObject(); - } -} - -public sealed partial class ExploreControlsDescriptor : SerializableDescriptor -{ - internal ExploreControlsDescriptor(Action configure) => configure.Invoke(this); - - public ExploreControlsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversity? SampleDiversityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversityDescriptor SampleDiversityDescriptor { get; set; } - private Action SampleDiversityDescriptorAction { get; set; } - private int? SampleSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeoutValue { get; set; } - private bool UseSignificanceValue { get; set; } - - /// - /// - /// To avoid the top-matching documents sample being dominated by a single source of results, it is sometimes necessary to request diversity in the sample. - /// You can do this by selecting a single-value field and setting a maximum number of documents per value for that field. - /// - /// - public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversity? sampleDiversity) - { - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = null; - SampleDiversityValue = sampleDiversity; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversityDescriptor descriptor) - { - SampleDiversityValue = null; - SampleDiversityDescriptorAction = null; - SampleDiversityDescriptor = descriptor; - return Self; - } - - public ExploreControlsDescriptor SampleDiversity(Action configure) - { - SampleDiversityValue = null; - SampleDiversityDescriptor = null; - SampleDiversityDescriptorAction = configure; - return Self; - } - - /// - /// - /// Each hop considers a sample of the best-matching documents on each shard. - /// Using samples improves the speed of execution and keeps exploration focused on meaningfully-connected terms. - /// Very small values (less than 50) might not provide sufficient weight-of-evidence to identify significant connections between terms. - /// Very large sample sizes can dilute the quality of the results and increase execution times. - /// - /// - public ExploreControlsDescriptor SampleSize(int? sampleSize) - { - SampleSizeValue = sampleSize; - return Self; - } - - /// - /// - /// The length of time in milliseconds after which exploration will be halted and the results gathered so far are returned. - /// This timeout is honored on a best-effort basis. - /// Execution might overrun this timeout if, for example, a long pause is encountered while FieldData is loaded for a field. - /// - /// - public ExploreControlsDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) - { - TimeoutValue = timeout; - return Self; - } - - /// - /// - /// Filters associated terms so only those that are significantly associated with your query are included. - /// - /// - public ExploreControlsDescriptor UseSignificance(bool useSignificance = true) - { - UseSignificanceValue = useSignificance; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SampleDiversityDescriptor is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityDescriptor, options); - } - else if (SampleDiversityDescriptorAction is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.SampleDiversityDescriptor(SampleDiversityDescriptorAction), options); - } - else if (SampleDiversityValue is not null) - { - writer.WritePropertyName("sample_diversity"); - JsonSerializer.Serialize(writer, SampleDiversityValue, options); - } - - if (SampleSizeValue.HasValue) - { - writer.WritePropertyName("sample_size"); - writer.WriteNumberValue(SampleSizeValue.Value); - } - - if (TimeoutValue is not null) - { - writer.WritePropertyName("timeout"); - JsonSerializer.Serialize(writer, TimeoutValue, options); - } - - writer.WritePropertyName("use_significance"); - writer.WriteBooleanValue(UseSignificanceValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Hop.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Hop.g.cs deleted file mode 100644 index bc55d644b4f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Hop.g.cs +++ /dev/null @@ -1,431 +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.Graph; - -public sealed partial class Hop -{ - /// - /// - /// Specifies one or more fields from which you want to extract terms that are associated with the specified vertices. - /// - /// - [JsonInclude, JsonPropertyName("connections")] - public Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? Connections { get; set; } - - /// - /// - /// An optional guiding query that constrains the Graph API as it explores connected terms. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - - /// - /// - /// Contains the fields you are interested in. - /// - /// - [JsonInclude, JsonPropertyName("vertices")] - public ICollection Vertices { get; set; } -} - -public sealed partial class HopDescriptor : SerializableDescriptor> -{ - internal HopDescriptor(Action> configure) => configure.Invoke(this); - - public HopDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? ConnectionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor ConnectionsDescriptor { get; set; } - private Action> ConnectionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection VerticesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor VerticesDescriptor { get; set; } - private Action> VerticesDescriptorAction { get; set; } - private Action>[] VerticesDescriptorActions { get; set; } - - /// - /// - /// Specifies one or more fields from which you want to extract terms that are associated with the specified vertices. - /// - /// - public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public HopDescriptor Connections(Action> configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// An optional guiding query that constrains the Graph API as it explores connected terms. - /// - /// - public HopDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HopDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HopDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Contains the fields you are interested in. - /// - /// - public HopDescriptor Vertices(ICollection vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public HopDescriptor Vertices(Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public HopDescriptor Vertices(Action> configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public HopDescriptor Vertices(params Action>[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class HopDescriptor : SerializableDescriptor -{ - internal HopDescriptor(Action configure) => configure.Invoke(this); - - public HopDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? ConnectionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor ConnectionsDescriptor { get; set; } - private Action ConnectionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection VerticesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor VerticesDescriptor { get; set; } - private Action VerticesDescriptorAction { get; set; } - private Action[] VerticesDescriptorActions { get; set; } - - /// - /// - /// Specifies one or more fields from which you want to extract terms that are associated with the specified vertices. - /// - /// - public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.Hop? connections) - { - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = null; - ConnectionsValue = connections; - return Self; - } - - public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor descriptor) - { - ConnectionsValue = null; - ConnectionsDescriptorAction = null; - ConnectionsDescriptor = descriptor; - return Self; - } - - public HopDescriptor Connections(Action configure) - { - ConnectionsValue = null; - ConnectionsDescriptor = null; - ConnectionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// An optional guiding query that constrains the Graph API as it explores connected terms. - /// - /// - public HopDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HopDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HopDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Contains the fields you are interested in. - /// - /// - public HopDescriptor Vertices(ICollection vertices) - { - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesValue = vertices; - return Self; - } - - public HopDescriptor Vertices(Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor descriptor) - { - VerticesValue = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = null; - VerticesDescriptor = descriptor; - return Self; - } - - public HopDescriptor Vertices(Action configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorActions = null; - VerticesDescriptorAction = configure; - return Self; - } - - public HopDescriptor Vertices(params Action[] configure) - { - VerticesValue = null; - VerticesDescriptor = null; - VerticesDescriptorAction = null; - VerticesDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ConnectionsDescriptor is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); - } - else if (ConnectionsDescriptorAction is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.HopDescriptor(ConnectionsDescriptorAction), options); - } - else if (ConnectionsValue is not null) - { - writer.WritePropertyName("connections"); - JsonSerializer.Serialize(writer, ConnectionsValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (VerticesDescriptor is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, VerticesDescriptor, options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorAction is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(VerticesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (VerticesDescriptorActions is not null) - { - writer.WritePropertyName("vertices"); - writer.WriteStartArray(); - foreach (var action in VerticesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexDefinitionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("vertices"); - JsonSerializer.Serialize(writer, VerticesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/SampleDiversity.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/SampleDiversity.g.cs deleted file mode 100644 index a09103a43f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/SampleDiversity.g.cs +++ /dev/null @@ -1,128 +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.Graph; - -public sealed partial class SampleDiversity -{ - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("max_docs_per_value")] - public int MaxDocsPerValue { get; set; } -} - -public sealed partial class SampleDiversityDescriptor : SerializableDescriptor> -{ - internal SampleDiversityDescriptor(Action> configure) => configure.Invoke(this); - - public SampleDiversityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int MaxDocsPerValueValue { get; set; } - - public SampleDiversityDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor MaxDocsPerValue(int maxDocsPerValue) - { - MaxDocsPerValueValue = maxDocsPerValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_docs_per_value"); - writer.WriteNumberValue(MaxDocsPerValueValue); - writer.WriteEndObject(); - } -} - -public sealed partial class SampleDiversityDescriptor : SerializableDescriptor -{ - internal SampleDiversityDescriptor(Action configure) => configure.Invoke(this); - - public SampleDiversityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int MaxDocsPerValueValue { get; set; } - - public SampleDiversityDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SampleDiversityDescriptor MaxDocsPerValue(int maxDocsPerValue) - { - MaxDocsPerValueValue = maxDocsPerValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_docs_per_value"); - writer.WriteNumberValue(MaxDocsPerValueValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Vertex.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Vertex.g.cs deleted file mode 100644 index 16e968ef411..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/Vertex.g.cs +++ /dev/null @@ -1,40 +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.Graph; - -public sealed partial class Vertex -{ - [JsonInclude, JsonPropertyName("depth")] - public long Depth { get; init; } - [JsonInclude, JsonPropertyName("field")] - public string Field { get; init; } - [JsonInclude, JsonPropertyName("term")] - public string Term { get; init; } - [JsonInclude, JsonPropertyName("weight")] - public double Weight { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexDefinition.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexDefinition.g.cs deleted file mode 100644 index 7296fe76a63..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexDefinition.g.cs +++ /dev/null @@ -1,482 +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.Graph; - -public sealed partial class VertexDefinition -{ - /// - /// - /// Prevents the specified terms from being included in the results. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public ICollection? Exclude { get; set; } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Identifies the terms of interest that form the starting points from which you want to spider out. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public ICollection? Include { get; set; } - - /// - /// - /// Specifies how many documents must contain a pair of terms before it is considered to be a useful connection. - /// This setting acts as a certainty threshold. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_count")] - public long? MinDocCount { get; set; } - - /// - /// - /// Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration. - /// - /// - [JsonInclude, JsonPropertyName("shard_min_doc_count")] - public long? ShardMinDocCount { get; set; } - - /// - /// - /// Specifies the maximum number of vertex terms returned for each field. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } -} - -public sealed partial class VertexDefinitionDescriptor : SerializableDescriptor> -{ - internal VertexDefinitionDescriptor(Action> configure) => configure.Invoke(this); - - public VertexDefinitionDescriptor() : base() - { - } - - private ICollection? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor IncludeDescriptor { get; set; } - private Action IncludeDescriptorAction { get; set; } - private Action[] IncludeDescriptorActions { get; set; } - private long? MinDocCountValue { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Prevents the specified terms from being included in the results. - /// - /// - public VertexDefinitionDescriptor Exclude(ICollection? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - public VertexDefinitionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Identifies the terms of interest that form the starting points from which you want to spider out. - /// - /// - public VertexDefinitionDescriptor Include(ICollection? include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeValue = include; - return Self; - } - - public VertexDefinitionDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeDescriptor = descriptor; - return Self; - } - - public VertexDefinitionDescriptor Include(Action configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorActions = null; - IncludeDescriptorAction = configure; - return Self; - } - - public VertexDefinitionDescriptor Include(params Action[] configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = configure; - return Self; - } - - /// - /// - /// Specifies how many documents must contain a pair of terms before it is considered to be a useful connection. - /// This setting acts as a certainty threshold. - /// - /// - public VertexDefinitionDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration. - /// - /// - public VertexDefinitionDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// Specifies the maximum number of vertex terms returned for each field. - /// - /// - public VertexDefinitionDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor(IncludeDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorActions is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - foreach (var action in IncludeDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class VertexDefinitionDescriptor : SerializableDescriptor -{ - internal VertexDefinitionDescriptor(Action configure) => configure.Invoke(this); - - public VertexDefinitionDescriptor() : base() - { - } - - private ICollection? ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor IncludeDescriptor { get; set; } - private Action IncludeDescriptorAction { get; set; } - private Action[] IncludeDescriptorActions { get; set; } - private long? MinDocCountValue { get; set; } - private long? ShardMinDocCountValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Prevents the specified terms from being included in the results. - /// - /// - public VertexDefinitionDescriptor Exclude(ICollection? exclude) - { - ExcludeValue = exclude; - return Self; - } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - public VertexDefinitionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Identifies a field in the documents of interest. - /// - /// - public VertexDefinitionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Identifies the terms of interest that form the starting points from which you want to spider out. - /// - /// - public VertexDefinitionDescriptor Include(ICollection? include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeValue = include; - return Self; - } - - public VertexDefinitionDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = null; - IncludeDescriptor = descriptor; - return Self; - } - - public VertexDefinitionDescriptor Include(Action configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorActions = null; - IncludeDescriptorAction = configure; - return Self; - } - - public VertexDefinitionDescriptor Include(params Action[] configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeDescriptorActions = configure; - return Self; - } - - /// - /// - /// Specifies how many documents must contain a pair of terms before it is considered to be a useful connection. - /// This setting acts as a certainty threshold. - /// - /// - public VertexDefinitionDescriptor MinDocCount(long? minDocCount) - { - MinDocCountValue = minDocCount; - return Self; - } - - /// - /// - /// Controls how many documents on a particular shard have to contain a pair of terms before the connection is returned for global consideration. - /// - /// - public VertexDefinitionDescriptor ShardMinDocCount(long? shardMinDocCount) - { - ShardMinDocCountValue = shardMinDocCount; - return Self; - } - - /// - /// - /// Specifies the maximum number of vertex terms returned for each field. - /// - /// - public VertexDefinitionDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExcludeValue is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor(IncludeDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IncludeDescriptorActions is not null) - { - writer.WritePropertyName("include"); - writer.WriteStartArray(); - foreach (var action in IncludeDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Graph.VertexIncludeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (MinDocCountValue.HasValue) - { - writer.WritePropertyName("min_doc_count"); - writer.WriteNumberValue(MinDocCountValue.Value); - } - - if (ShardMinDocCountValue.HasValue) - { - writer.WritePropertyName("shard_min_doc_count"); - writer.WriteNumberValue(ShardMinDocCountValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexInclude.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexInclude.g.cs deleted file mode 100644 index 0671c7c3195..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Graph/VertexInclude.g.cs +++ /dev/null @@ -1,70 +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.Graph; - -public sealed partial class VertexInclude -{ - [JsonInclude, JsonPropertyName("boost")] - public double Boost { get; set; } - [JsonInclude, JsonPropertyName("term")] - public string Term { get; set; } -} - -public sealed partial class VertexIncludeDescriptor : SerializableDescriptor -{ - internal VertexIncludeDescriptor(Action configure) => configure.Invoke(this); - - public VertexIncludeDescriptor() : base() - { - } - - private double BoostValue { get; set; } - private string TermValue { get; set; } - - public VertexIncludeDescriptor Boost(double boost) - { - BoostValue = boost; - return Self; - } - - public VertexIncludeDescriptor Term(string term) - { - TermValue = term; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue); - writer.WritePropertyName("term"); - writer.WriteStringValue(TermValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Actions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Actions.g.cs deleted file mode 100644 index 6f11b17d11c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Actions.g.cs +++ /dev/null @@ -1,127 +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.IndexLifecycleManagement; - -public sealed partial class Actions -{ - /// - /// - /// Phases allowed: warm, cold. - /// - /// - [JsonInclude, JsonPropertyName("allocate")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.AllocateAction? Allocate { get; init; } - - /// - /// - /// Phases allowed: delete. - /// - /// - [JsonInclude, JsonPropertyName("delete")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.DeleteAction? Delete { get; init; } - - /// - /// - /// Phases allowed: hot, warm, cold. - /// - /// - [JsonInclude, JsonPropertyName("downsample")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.DownsampleAction? Downsample { get; init; } - - /// - /// - /// Phases allowed: hot, warm. - /// - /// - [JsonInclude, JsonPropertyName("forcemerge")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.ForceMergeAction? Forcemerge { get; init; } - - /// - /// - /// Phases allowed: warm, cold. - /// - /// - [JsonInclude, JsonPropertyName("migrate")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.MigrateAction? Migrate { get; init; } - - /// - /// - /// Phases allowed: hot, warm, cold. - /// - /// - [JsonInclude, JsonPropertyName("readonly")] - public Elastic.Clients.Elasticsearch.Serverless.EmptyObject? Readonly { get; init; } - - /// - /// - /// Phases allowed: hot. - /// - /// - [JsonInclude, JsonPropertyName("rollover")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.RolloverAction? Rollover { get; init; } - - /// - /// - /// Phases allowed: hot, cold, frozen. - /// - /// - [JsonInclude, JsonPropertyName("searchable_snapshot")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.SearchableSnapshotAction? SearchableSnapshot { get; init; } - - /// - /// - /// Phases allowed: hot, warm, cold. - /// - /// - [JsonInclude, JsonPropertyName("set_priority")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.SetPriorityAction? SetPriority { get; init; } - - /// - /// - /// Phases allowed: hot, warm. - /// - /// - [JsonInclude, JsonPropertyName("shrink")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.ShrinkAction? Shrink { get; init; } - - /// - /// - /// Phases allowed: hot, warm, cold, frozen. - /// - /// - [JsonInclude, JsonPropertyName("unfollow")] - public Elastic.Clients.Elasticsearch.Serverless.EmptyObject? Unfollow { get; init; } - - /// - /// - /// Phases allowed: delete. - /// - /// - [JsonInclude, JsonPropertyName("wait_for_snapshot")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.WaitForSnapshotAction? WaitForSnapshot { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs deleted file mode 100644 index 10e67920270..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/AllocateAction.g.cs +++ /dev/null @@ -1,42 +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.IndexLifecycleManagement; - -public sealed partial class AllocateAction -{ - [JsonInclude, JsonPropertyName("exclude")] - public IReadOnlyDictionary? Exclude { get; init; } - [JsonInclude, JsonPropertyName("include")] - public IReadOnlyDictionary? Include { get; init; } - [JsonInclude, JsonPropertyName("number_of_replicas")] - public int? NumberOfReplicas { get; init; } - [JsonInclude, JsonPropertyName("require")] - public IReadOnlyDictionary? Require { get; init; } - [JsonInclude, JsonPropertyName("total_shards_per_node")] - public int? TotalShardsPerNode { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs deleted file mode 100644 index b6595e79aec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DeleteAction.g.cs +++ /dev/null @@ -1,34 +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.IndexLifecycleManagement; - -public sealed partial class DeleteAction -{ - [JsonInclude, JsonPropertyName("delete_searchable_snapshot")] - public bool? DeleteSearchableSnapshot { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs deleted file mode 100644 index 5f4c4956068..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/DownsampleAction.g.cs +++ /dev/null @@ -1,36 +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.IndexLifecycleManagement; - -public sealed partial class DownsampleAction -{ - [JsonInclude, JsonPropertyName("fixed_interval")] - public string FixedInterval { get; init; } - [JsonInclude, JsonPropertyName("wait_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitTimeout { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs deleted file mode 100644 index 1f57a878dbf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ForceMergeAction.g.cs +++ /dev/null @@ -1,36 +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.IndexLifecycleManagement; - -public sealed partial class ForceMergeAction -{ - [JsonInclude, JsonPropertyName("index_codec")] - public string? IndexCodec { get; init; } - [JsonInclude, JsonPropertyName("max_num_segments")] - public int MaxNumSegments { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs deleted file mode 100644 index 5526d51e6ba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/MigrateAction.g.cs +++ /dev/null @@ -1,34 +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.IndexLifecycleManagement; - -public sealed partial class MigrateAction -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phase.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phase.g.cs deleted file mode 100644 index c4d4385d142..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phase.g.cs +++ /dev/null @@ -1,36 +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.IndexLifecycleManagement; - -public sealed partial class Phase -{ - [JsonInclude, JsonPropertyName("actions")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Actions? Actions { get; init; } - [JsonInclude, JsonPropertyName("min_age")] - public Union? MinAge { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phases.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phases.g.cs deleted file mode 100644 index 2c0adadc922..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/Phases.g.cs +++ /dev/null @@ -1,42 +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.IndexLifecycleManagement; - -public sealed partial class Phases -{ - [JsonInclude, JsonPropertyName("cold")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Phase? Cold { get; init; } - [JsonInclude, JsonPropertyName("delete")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Phase? Delete { get; init; } - [JsonInclude, JsonPropertyName("frozen")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Phase? Frozen { get; init; } - [JsonInclude, JsonPropertyName("hot")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Phase? Hot { get; init; } - [JsonInclude, JsonPropertyName("warm")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Phase? Warm { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs deleted file mode 100644 index 71e1fa516b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/RolloverAction.g.cs +++ /dev/null @@ -1,52 +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.IndexLifecycleManagement; - -public sealed partial class RolloverAction -{ - [JsonInclude, JsonPropertyName("max_age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MaxAge { get; init; } - [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; init; } - [JsonInclude, JsonPropertyName("max_primary_shard_docs")] - public long? MaxPrimaryShardDocs { get; init; } - [JsonInclude, JsonPropertyName("max_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxPrimaryShardSize { get; init; } - [JsonInclude, JsonPropertyName("max_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSize { get; init; } - [JsonInclude, JsonPropertyName("min_age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MinAge { get; init; } - [JsonInclude, JsonPropertyName("min_docs")] - public long? MinDocs { get; init; } - [JsonInclude, JsonPropertyName("min_primary_shard_docs")] - public long? MinPrimaryShardDocs { get; init; } - [JsonInclude, JsonPropertyName("min_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinPrimaryShardSize { get; init; } - [JsonInclude, JsonPropertyName("min_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinSize { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs deleted file mode 100644 index 75fa239c141..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SearchableSnapshotAction.g.cs +++ /dev/null @@ -1,36 +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.IndexLifecycleManagement; - -public sealed partial class SearchableSnapshotAction -{ - [JsonInclude, JsonPropertyName("force_merge_index")] - public bool? ForceMergeIndex { get; init; } - [JsonInclude, JsonPropertyName("snapshot_repository")] - public string SnapshotRepository { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs deleted file mode 100644 index 515826b7aaf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/SetPriorityAction.g.cs +++ /dev/null @@ -1,34 +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.IndexLifecycleManagement; - -public sealed partial class SetPriorityAction -{ - [JsonInclude, JsonPropertyName("priority")] - public int? Priority { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs deleted file mode 100644 index c1aa5ee27c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/ShrinkAction.g.cs +++ /dev/null @@ -1,38 +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.IndexLifecycleManagement; - -public sealed partial class ShrinkAction -{ - [JsonInclude, JsonPropertyName("allow_write_after_shrink")] - public bool? AllowWriteAfterShrink { get; init; } - [JsonInclude, JsonPropertyName("max_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxPrimaryShardSize { get; init; } - [JsonInclude, JsonPropertyName("number_of_shards")] - public int? NumberOfShards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs deleted file mode 100644 index bb5cff0a8db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexLifecycleManagement/WaitForSnapshotAction.g.cs +++ /dev/null @@ -1,34 +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.IndexLifecycleManagement; - -public sealed partial class WaitForSnapshotAction -{ - [JsonInclude, JsonPropertyName("policy")] - public string Policy { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AddAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AddAction.g.cs deleted file mode 100644 index b7b1346d94b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AddAction.g.cs +++ /dev/null @@ -1,637 +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.IndexManagement; - -public sealed partial class AddAction -{ - /// - /// - /// Alias for the action. - /// Index alias names support date math. - /// - /// - [JsonInclude, JsonPropertyName("alias")] - public Elastic.Clients.Elasticsearch.Serverless.IndexAlias? Alias { get; set; } - - /// - /// - /// Aliases for the action. - /// Index alias names support date math. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexAlias))] - public ICollection? Aliases { get; set; } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// Data stream aliases don’t support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("index_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRouting { get; set; } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// If true, the alias is hidden. - /// - /// - [JsonInclude, JsonPropertyName("is_hidden")] - public bool? IsHidden { get; set; } - - /// - /// - /// If true, sets the write index or data stream for the alias. - /// - /// - [JsonInclude, JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; set; } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - [JsonInclude, JsonPropertyName("must_exist")] - public bool? MustExist { get; set; } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// Data stream aliases don’t support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// Data stream aliases don’t support this parameter. - /// - /// - [JsonInclude, JsonPropertyName("search_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRouting { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesAction(AddAction addAction) => Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesAction.Add(addAction); -} - -public sealed partial class AddActionDescriptor : SerializableDescriptor> -{ - internal AddActionDescriptor(Action> configure) => configure.Invoke(this); - - public AddActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexAlias? AliasValue { get; set; } - private ICollection? AliasesValue { 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 Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private bool? IsHiddenValue { get; set; } - private bool? IsWriteIndexValue { get; set; } - private bool? MustExistValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRoutingValue { get; set; } - - /// - /// - /// Alias for the action. - /// Index alias names support date math. - /// - /// - public AddActionDescriptor Alias(Elastic.Clients.Elasticsearch.Serverless.IndexAlias? alias) - { - AliasValue = alias; - return Self; - } - - /// - /// - /// Aliases for the action. - /// Index alias names support date math. - /// - /// - public AddActionDescriptor Aliases(ICollection? aliases) - { - AliasesValue = aliases; - return Self; - } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - public AddActionDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AddActionDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AddActionDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - public AddActionDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public AddActionDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - public AddActionDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// If true, the alias is hidden. - /// - /// - public AddActionDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - /// - /// - /// If true, sets the write index or data stream for the alias. - /// - /// - public AddActionDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - public AddActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// Data stream aliases don’t support this parameter. - /// - /// - public AddActionDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public AddActionDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasValue is not null) - { - writer.WritePropertyName("alias"); - JsonSerializer.Serialize(writer, AliasValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - SingleOrManySerializationHelper.Serialize(AliasesValue, writer, options); - } - - 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 (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AddActionDescriptor : SerializableDescriptor -{ - internal AddActionDescriptor(Action configure) => configure.Invoke(this); - - public AddActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexAlias? AliasValue { get; set; } - private ICollection? AliasesValue { 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 Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private bool? IsHiddenValue { get; set; } - private bool? IsWriteIndexValue { get; set; } - private bool? MustExistValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRoutingValue { get; set; } - - /// - /// - /// Alias for the action. - /// Index alias names support date math. - /// - /// - public AddActionDescriptor Alias(Elastic.Clients.Elasticsearch.Serverless.IndexAlias? alias) - { - AliasValue = alias; - return Self; - } - - /// - /// - /// Aliases for the action. - /// Index alias names support date math. - /// - /// - public AddActionDescriptor Aliases(ICollection? aliases) - { - AliasesValue = aliases; - return Self; - } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - public AddActionDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AddActionDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AddActionDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - public AddActionDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public AddActionDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - public AddActionDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// If true, the alias is hidden. - /// - /// - public AddActionDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - /// - /// - /// If true, sets the write index or data stream for the alias. - /// - /// - public AddActionDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - public AddActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// Data stream aliases don’t support this parameter. - /// - /// - public AddActionDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// Data stream aliases don’t support this parameter. - /// - /// - public AddActionDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasValue is not null) - { - writer.WritePropertyName("alias"); - JsonSerializer.Serialize(writer, AliasValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - SingleOrManySerializationHelper.Serialize(AliasesValue, writer, options); - } - - 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 (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Alias.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Alias.g.cs deleted file mode 100644 index 1d1675189b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Alias.g.cs +++ /dev/null @@ -1,396 +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.IndexManagement; - -public sealed partial class Alias -{ - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// - /// - [JsonInclude, JsonPropertyName("index_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRouting { get; set; } - - /// - /// - /// If true, the alias is hidden. - /// All indices for the alias must have the same is_hidden value. - /// - /// - [JsonInclude, JsonPropertyName("is_hidden")] - public bool? IsHidden { get; set; } - - /// - /// - /// If true, the index is the write index for the alias. - /// - /// - [JsonInclude, JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; set; } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// - /// - [JsonInclude, JsonPropertyName("search_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRouting { get; set; } -} - -public sealed partial class AliasDescriptor : SerializableDescriptor> -{ - internal AliasDescriptor(Action> configure) => configure.Invoke(this); - - public AliasDescriptor() : base() - { - } - - 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 Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRoutingValue { get; set; } - private bool? IsHiddenValue { get; set; } - private bool? IsWriteIndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRoutingValue { get; set; } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - public AliasDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AliasDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AliasDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// - /// - public AliasDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - /// - /// - /// If true, the alias is hidden. - /// All indices for the alias must have the same is_hidden value. - /// - /// - public AliasDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - /// - /// - /// If true, the index is the write index for the alias. - /// - /// - public AliasDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// - /// - public AliasDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// - /// - public AliasDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AliasDescriptor : SerializableDescriptor -{ - internal AliasDescriptor(Action configure) => configure.Invoke(this); - - public AliasDescriptor() : base() - { - } - - 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 Elastic.Clients.Elasticsearch.Serverless.Routing? IndexRoutingValue { get; set; } - private bool? IsHiddenValue { get; set; } - private bool? IsWriteIndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? SearchRoutingValue { get; set; } - - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - public AliasDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public AliasDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public AliasDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// - /// - public AliasDescriptor IndexRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? indexRouting) - { - IndexRoutingValue = indexRouting; - return Self; - } - - /// - /// - /// If true, the alias is hidden. - /// All indices for the alias must have the same is_hidden value. - /// - /// - public AliasDescriptor IsHidden(bool? isHidden = true) - { - IsHiddenValue = isHidden; - return Self; - } - - /// - /// - /// If true, the index is the write index for the alias. - /// - /// - public AliasDescriptor IsWriteIndex(bool? isWriteIndex = true) - { - IsWriteIndexValue = isWriteIndex; - return Self; - } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// - /// - public AliasDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// - /// - public AliasDescriptor SearchRouting(Elastic.Clients.Elasticsearch.Serverless.Routing? searchRouting) - { - SearchRoutingValue = searchRouting; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (IndexRoutingValue is not null) - { - writer.WritePropertyName("index_routing"); - JsonSerializer.Serialize(writer, IndexRoutingValue, options); - } - - if (IsHiddenValue.HasValue) - { - writer.WritePropertyName("is_hidden"); - writer.WriteBooleanValue(IsHiddenValue.Value); - } - - if (IsWriteIndexValue.HasValue) - { - writer.WritePropertyName("is_write_index"); - writer.WriteBooleanValue(IsWriteIndexValue.Value); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (SearchRoutingValue is not null) - { - writer.WritePropertyName("search_routing"); - JsonSerializer.Serialize(writer, SearchRoutingValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AliasDefinition.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AliasDefinition.g.cs deleted file mode 100644 index 1a33c027bda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AliasDefinition.g.cs +++ /dev/null @@ -1,82 +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.IndexManagement; - -public sealed partial class AliasDefinition -{ - /// - /// - /// Query used to limit documents the alias can access. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; init; } - - /// - /// - /// Value used to route indexing operations to a specific shard. - /// If specified, this overwrites the routing value for indexing operations. - /// - /// - [JsonInclude, JsonPropertyName("index_routing")] - public string? IndexRouting { get; init; } - - /// - /// - /// If true, the alias is hidden. - /// All indices for the alias must have the same is_hidden value. - /// - /// - [JsonInclude, JsonPropertyName("is_hidden")] - public bool? IsHidden { get; init; } - - /// - /// - /// If true, the index is the write index for the alias. - /// - /// - [JsonInclude, JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; init; } - - /// - /// - /// Value used to route indexing and search operations to a specific shard. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public string? Routing { get; init; } - - /// - /// - /// Value used to route search operations to a specific shard. - /// If specified, this overwrites the routing value for search operations. - /// - /// - [JsonInclude, JsonPropertyName("search_routing")] - public string? SearchRouting { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs deleted file mode 100644 index 690517296ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeDetail.g.cs +++ /dev/null @@ -1,42 +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.IndexManagement; - -public sealed partial class AnalyzeDetail -{ - [JsonInclude, JsonPropertyName("analyzer")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.AnalyzerDetail? Analyzer { get; init; } - [JsonInclude, JsonPropertyName("charfilters")] - public IReadOnlyCollection? Charfilters { get; init; } - [JsonInclude, JsonPropertyName("custom_analyzer")] - public bool CustomAnalyzer { get; init; } - [JsonInclude, JsonPropertyName("tokenfilters")] - public IReadOnlyCollection? Tokenfilters { get; init; } - [JsonInclude, JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TokenDetail? Tokenizer { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeToken.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeToken.g.cs deleted file mode 100644 index 31ae7caedbf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzeToken.g.cs +++ /dev/null @@ -1,44 +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.IndexManagement; - -public sealed partial class AnalyzeToken -{ - [JsonInclude, JsonPropertyName("end_offset")] - public long EndOffset { get; init; } - [JsonInclude, JsonPropertyName("position")] - public long Position { get; init; } - [JsonInclude, JsonPropertyName("positionLength")] - public long? Positionlength { get; init; } - [JsonInclude, JsonPropertyName("start_offset")] - public long StartOffset { get; init; } - [JsonInclude, JsonPropertyName("token")] - public string Token { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs deleted file mode 100644 index 4926b17edba..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/AnalyzerDetail.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class AnalyzerDetail -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("tokens")] - public IReadOnlyCollection Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CacheQueries.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CacheQueries.g.cs deleted file mode 100644 index 3b086b3412d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CacheQueries.g.cs +++ /dev/null @@ -1,59 +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.IndexManagement; - -public sealed partial class CacheQueries -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } -} - -public sealed partial class CacheQueriesDescriptor : SerializableDescriptor -{ - internal CacheQueriesDescriptor(Action configure) => configure.Invoke(this); - - public CacheQueriesDescriptor() : base() - { - } - - private bool EnabledValue { get; set; } - - public CacheQueriesDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CharFilterDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CharFilterDetail.g.cs deleted file mode 100644 index db98e54ae72..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CharFilterDetail.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class CharFilterDetail -{ - [JsonInclude, JsonPropertyName("filtered_text")] - public IReadOnlyCollection FilteredText { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseIndexResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseIndexResult.g.cs deleted file mode 100644 index d03a44b201c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseIndexResult.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class CloseIndexResult -{ - [JsonInclude, JsonPropertyName("closed")] - public bool Closed { get; init; } - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyDictionary? Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseShardResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseShardResult.g.cs deleted file mode 100644 index c5d7f640878..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/CloseShardResult.g.cs +++ /dev/null @@ -1,34 +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.IndexManagement; - -public sealed partial class CloseShardResult -{ - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection Failures { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index c703759cbde..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs +++ /dev/null @@ -1,174 +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.IndexManagement; - -public sealed partial class DataStream -{ - /// - /// - /// If true, the data stream allows custom routing on write request. - /// - /// - [JsonInclude, JsonPropertyName("allow_custom_routing")] - public bool? AllowCustomRouting { get; init; } - - /// - /// - /// Information about failure store backing indices - /// - /// - [JsonInclude, JsonPropertyName("failure_store")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FailureStore? FailureStore { get; init; } - - /// - /// - /// Current generation for the data stream. This number acts as a cumulative count of the stream’s rollovers, starting at 1. - /// - /// - [JsonInclude, JsonPropertyName("generation")] - public int Generation { get; init; } - - /// - /// - /// If true, the data stream is hidden. - /// - /// - [JsonInclude, JsonPropertyName("hidden")] - public bool Hidden { get; init; } - - /// - /// - /// Name of the current ILM lifecycle policy in the stream’s matching index template. - /// This lifecycle policy is set in the index.lifecycle.name setting. - /// If the template does not include a lifecycle policy, this property is not included in the response. - /// NOTE: A data stream’s backing indices may be assigned different lifecycle policies. To retrieve the lifecycle policy for individual backing indices, use the get index settings API. - /// - /// - [JsonInclude, JsonPropertyName("ilm_policy")] - public string? IlmPolicy { get; init; } - - /// - /// - /// Array of objects containing information about the data stream’s backing indices. - /// The last item in this array contains information about the stream’s current write index. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - - /// - /// - /// 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; } - - /// - /// - /// Custom metadata for the stream, copied from the _meta object of the stream’s matching index template. - /// If empty, the response omits this property. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// Name of the data stream. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// Name of the lifecycle system that'll manage the next generation of the data stream. - /// - /// - [JsonInclude, JsonPropertyName("next_generation_managed_by")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ManagedBy NextGenerationManagedBy { get; init; } - - /// - /// - /// Indicates if ILM should take precedence over DSL in case both are configured to managed this data stream. - /// - /// - [JsonInclude, JsonPropertyName("prefer_ilm")] - public bool PreferIlm { get; init; } - - /// - /// - /// If true, the data stream is created and managed by cross-cluster replication and the local cluster can not write into this data stream or change its mappings. - /// - /// - [JsonInclude, JsonPropertyName("replicated")] - public bool? Replicated { get; init; } - - /// - /// - /// If true, the next write to this data stream will trigger a rollover first and the document will be indexed in the new backing index. If the rollover fails the indexing request will fail too. - /// - /// - [JsonInclude, JsonPropertyName("rollover_on_write")] - public bool RolloverOnWrite { get; init; } - - /// - /// - /// Health status of the data stream. - /// This health status is based on the state of the primary and replica shards of the stream’s backing indices. - /// - /// - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } - - /// - /// - /// If true, the data stream is created and managed by an Elastic stack component and cannot be modified through normal user interaction. - /// - /// - [JsonInclude, JsonPropertyName("system")] - public bool? System { get; init; } - - /// - /// - /// Name of the index template used to create the data stream’s backing indices. - /// The template’s index pattern must match the name of this data stream. - /// - /// - [JsonInclude, JsonPropertyName("template")] - public string Template { get; init; } - - /// - /// - /// Information about the @timestamp field in the data stream. - /// - /// - [JsonInclude, JsonPropertyName("timestamp_field")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamTimestampField TimestampField { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs deleted file mode 100644 index db163b2f1aa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamIndex.g.cs +++ /dev/null @@ -1,71 +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.IndexManagement; - -public sealed partial class DataStreamIndex -{ - /// - /// - /// Name of the current ILM lifecycle policy configured for this backing index. - /// - /// - [JsonInclude, JsonPropertyName("ilm_policy")] - public string? IlmPolicy { get; init; } - - /// - /// - /// Name of the backing index. - /// - /// - [JsonInclude, JsonPropertyName("index_name")] - public string IndexName { get; init; } - - /// - /// - /// Universally unique identifier (UUID) for the index. - /// - /// - [JsonInclude, JsonPropertyName("index_uuid")] - public string IndexUuid { get; init; } - - /// - /// - /// Name of the lifecycle system that's currently managing this backing index. - /// - /// - [JsonInclude, JsonPropertyName("managed_by")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ManagedBy? ManagedBy { get; init; } - - /// - /// - /// Indicates if ILM should take precedence over DSL in case both are configured to manage this index. - /// - /// - [JsonInclude, JsonPropertyName("prefer_ilm")] - public bool? PreferIlm { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 1cd15282d5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ /dev/null @@ -1,171 +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.IndexManagement; - -/// -/// -/// Data stream lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. -/// -/// -public sealed partial class DataStreamLifecycle -{ - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; set; } - - /// - /// - /// The downsampling configuration to execute for the managed backing index after rollover. - /// - /// - [JsonInclude, JsonPropertyName("downsampling")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } - - /// - /// - /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle - /// that's disabled (enabled: false) will have no effect on the data stream. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } -} - -/// -/// -/// 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 -{ - internal DataStreamLifecycleDescriptor(Action configure) => configure.Invoke(this); - - public DataStreamLifecycleDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetentionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } - private Action DownsamplingDescriptorAction { get; set; } - private bool? EnabledValue { get; set; } - - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Serverless.Duration? dataRetention) - { - DataRetentionValue = dataRetention; - return Self; - } - - /// - /// - /// The downsampling configuration to execute for the managed backing index after rollover. - /// - /// - public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? downsampling) - { - DownsamplingDescriptor = null; - DownsamplingDescriptorAction = null; - DownsamplingValue = downsampling; - return Self; - } - - public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor descriptor) - { - DownsamplingValue = null; - DownsamplingDescriptorAction = null; - DownsamplingDescriptor = descriptor; - return Self; - } - - public DataStreamLifecycleDescriptor Downsampling(Action configure) - { - DownsamplingValue = null; - DownsamplingDescriptor = null; - DownsamplingDescriptorAction = configure; - return Self; - } - - /// - /// - /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle - /// that's disabled (enabled: false) will have no effect on the data stream. - /// - /// - public DataStreamLifecycleDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DataRetentionValue is not null) - { - writer.WritePropertyName("data_retention"); - JsonSerializer.Serialize(writer, DataRetentionValue, options); - } - - if (DownsamplingDescriptor is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); - } - else if (DownsamplingDescriptorAction is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); - } - else if (DownsamplingValue is not null) - { - writer.WritePropertyName("downsampling"); - JsonSerializer.Serialize(writer, DownsamplingValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs deleted file mode 100644 index 1352b3aa6b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs +++ /dev/null @@ -1,131 +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.IndexManagement; - -public sealed partial class DataStreamLifecycleDownsampling -{ - /// - /// - /// The list of downsampling rounds to execute as part of this downsampling configuration - /// - /// - [JsonInclude, JsonPropertyName("rounds")] - public ICollection Rounds { get; set; } -} - -public sealed partial class DataStreamLifecycleDownsamplingDescriptor : SerializableDescriptor -{ - internal DataStreamLifecycleDownsamplingDescriptor(Action configure) => configure.Invoke(this); - - public DataStreamLifecycleDownsamplingDescriptor() : base() - { - } - - private ICollection RoundsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsamplingRoundDescriptor RoundsDescriptor { get; set; } - private Action RoundsDescriptorAction { get; set; } - private Action[] RoundsDescriptorActions { get; set; } - - /// - /// - /// The list of downsampling rounds to execute as part of this downsampling configuration - /// - /// - public DataStreamLifecycleDownsamplingDescriptor Rounds(ICollection rounds) - { - RoundsDescriptor = null; - RoundsDescriptorAction = null; - RoundsDescriptorActions = null; - RoundsValue = rounds; - return Self; - } - - public DataStreamLifecycleDownsamplingDescriptor Rounds(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsamplingRoundDescriptor descriptor) - { - RoundsValue = null; - RoundsDescriptorAction = null; - RoundsDescriptorActions = null; - RoundsDescriptor = descriptor; - return Self; - } - - public DataStreamLifecycleDownsamplingDescriptor Rounds(Action configure) - { - RoundsValue = null; - RoundsDescriptor = null; - RoundsDescriptorActions = null; - RoundsDescriptorAction = configure; - return Self; - } - - public DataStreamLifecycleDownsamplingDescriptor Rounds(params Action[] configure) - { - RoundsValue = null; - RoundsDescriptor = null; - RoundsDescriptorAction = null; - RoundsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (RoundsDescriptor is not null) - { - writer.WritePropertyName("rounds"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RoundsDescriptor, options); - writer.WriteEndArray(); - } - else if (RoundsDescriptorAction is not null) - { - writer.WritePropertyName("rounds"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsamplingRoundDescriptor(RoundsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RoundsDescriptorActions is not null) - { - writer.WritePropertyName("rounds"); - writer.WriteStartArray(); - foreach (var action in RoundsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsamplingRoundDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("rounds"); - JsonSerializer.Serialize(writer, RoundsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs deleted file mode 100644 index ceeb604e547..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs +++ /dev/null @@ -1,50 +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.IndexManagement; - -public sealed partial class DataStreamLifecycleExplain -{ - [JsonInclude, JsonPropertyName("error")] - public string? Error { get; init; } - [JsonInclude, JsonPropertyName("generation_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? GenerationTime { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("index_creation_date_millis")] - public long? IndexCreationDateMillis { get; init; } - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("managed_by_lifecycle")] - public bool ManagedByLifecycle { get; init; } - [JsonInclude, JsonPropertyName("rollover_date_millis")] - public long? RolloverDateMillis { get; init; } - [JsonInclude, JsonPropertyName("time_since_index_creation")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TimeSinceIndexCreation { get; init; } - [JsonInclude, JsonPropertyName("time_since_rollover")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TimeSinceRollover { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs deleted file mode 100644 index 77837c6a2b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs +++ /dev/null @@ -1,52 +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.IndexManagement; - -public sealed partial class DataStreamLifecycleRolloverConditions -{ - [JsonInclude, JsonPropertyName("max_age")] - public string? MaxAge { get; init; } - [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; init; } - [JsonInclude, JsonPropertyName("max_primary_shard_docs")] - public long? MaxPrimaryShardDocs { get; init; } - [JsonInclude, JsonPropertyName("max_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxPrimaryShardSize { get; init; } - [JsonInclude, JsonPropertyName("max_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSize { get; init; } - [JsonInclude, JsonPropertyName("min_age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MinAge { get; init; } - [JsonInclude, JsonPropertyName("min_docs")] - public long? MinDocs { get; init; } - [JsonInclude, JsonPropertyName("min_primary_shard_docs")] - public long? MinPrimaryShardDocs { get; init; } - [JsonInclude, JsonPropertyName("min_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinPrimaryShardSize { get; init; } - [JsonInclude, JsonPropertyName("min_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinSize { get; init; } -} \ No newline at end of file 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 deleted file mode 100644 index 48871a55b04..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs +++ /dev/null @@ -1,74 +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.IndexManagement; - -/// -/// -/// Data stream lifecycle with rollover can be used to display the configuration including the default rollover conditions, -/// if asked. -/// -/// -public sealed partial class DataStreamLifecycleWithRollover -{ - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// - [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; init; } - - /// - /// - /// The downsampling configuration to execute for the managed backing index after rollover. - /// - /// - [JsonInclude, JsonPropertyName("downsampling")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; init; } - - /// - /// - /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle - /// that's disabled (enabled: false) will have no effect on the data stream. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; init; } - - /// - /// - /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. - /// This property is an implementation detail and it will only be retrieved when the query param include_defaults is set to true. - /// The contents of this field are subject to change. - /// - /// - [JsonInclude, JsonPropertyName("rollover")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleRolloverConditions? Rollover { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs deleted file mode 100644 index b8ea21a678a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamTimestampField.g.cs +++ /dev/null @@ -1,39 +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.IndexManagement; - -public sealed partial class DataStreamTimestampField -{ - /// - /// - /// Name of the timestamp field for the data stream, which must be @timestamp. The @timestamp field must be included in every document indexed to the data stream. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs deleted file mode 100644 index 8cfbd13d9b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamVisibility.g.cs +++ /dev/null @@ -1,78 +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.IndexManagement; - -public sealed partial class DataStreamVisibility -{ - [JsonInclude, JsonPropertyName("allow_custom_routing")] - public bool? AllowCustomRouting { get; set; } - [JsonInclude, JsonPropertyName("hidden")] - public bool? Hidden { get; set; } -} - -public sealed partial class DataStreamVisibilityDescriptor : SerializableDescriptor -{ - internal DataStreamVisibilityDescriptor(Action configure) => configure.Invoke(this); - - public DataStreamVisibilityDescriptor() : base() - { - } - - private bool? AllowCustomRoutingValue { get; set; } - private bool? HiddenValue { get; set; } - - public DataStreamVisibilityDescriptor AllowCustomRouting(bool? allowCustomRouting = true) - { - AllowCustomRoutingValue = allowCustomRouting; - return Self; - } - - public DataStreamVisibilityDescriptor Hidden(bool? hidden = true) - { - HiddenValue = hidden; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowCustomRoutingValue.HasValue) - { - writer.WritePropertyName("allow_custom_routing"); - writer.WriteBooleanValue(AllowCustomRoutingValue.Value); - } - - if (HiddenValue.HasValue) - { - writer.WritePropertyName("hidden"); - writer.WriteBooleanValue(HiddenValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs deleted file mode 100644 index 3d942cd5f39..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class DataStreamWithLifecycle -{ - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs deleted file mode 100644 index 0edca1b0b99..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamsStatsItem.g.cs +++ /dev/null @@ -1,76 +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.IndexManagement; - -public sealed partial class DataStreamsStatsItem -{ - /// - /// - /// Current number of backing indices for the data stream. - /// - /// - [JsonInclude, JsonPropertyName("backing_indices")] - public int BackingIndices { get; init; } - - /// - /// - /// Name of the data stream. - /// - /// - [JsonInclude, JsonPropertyName("data_stream")] - public string DataStream { get; init; } - - /// - /// - /// The data stream’s highest @timestamp value, converted to milliseconds since the Unix epoch. - /// NOTE: This timestamp is provided as a best effort. - /// The data stream may contain @timestamp values higher than this if one or more of the following conditions are met: - /// The stream contains closed backing indices; - /// Backing indices with a lower generation contain higher @timestamp values. - /// - /// - [JsonInclude, JsonPropertyName("maximum_timestamp")] - public long MaximumTimestamp { get; init; } - - /// - /// - /// Total size of all shards for the data stream’s backing indices. - /// This parameter is only returned if the human query parameter is true. - /// - /// - [JsonInclude, JsonPropertyName("store_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? StoreSize { get; init; } - - /// - /// - /// Total size, in bytes, of all shards for the data stream’s backing indices. - /// - /// - [JsonInclude, JsonPropertyName("store_size_bytes")] - public long StoreSizeBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs deleted file mode 100644 index 2e98d824bd2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs +++ /dev/null @@ -1,69 +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.IndexManagement; - -public sealed partial class DownsampleConfig -{ - /// - /// - /// The interval at which to aggregate the original time series index. - /// - /// - [JsonInclude, JsonPropertyName("fixed_interval")] - public string FixedInterval { get; set; } -} - -public sealed partial class DownsampleConfigDescriptor : SerializableDescriptor -{ - internal DownsampleConfigDescriptor(Action configure) => configure.Invoke(this); - - public DownsampleConfigDescriptor() : base() - { - } - - private string FixedIntervalValue { get; set; } - - /// - /// - /// The interval at which to aggregate the original time series index. - /// - /// - public DownsampleConfigDescriptor FixedInterval(string fixedInterval) - { - FixedIntervalValue = fixedInterval; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("fixed_interval"); - writer.WriteStringValue(FixedIntervalValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs deleted file mode 100644 index 8c8dddd33d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs +++ /dev/null @@ -1,125 +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.IndexManagement; - -public sealed partial class DownsamplingRound -{ - /// - /// - /// The duration since rollover when this downsampling round should execute - /// - /// - [JsonInclude, JsonPropertyName("after")] - public Elastic.Clients.Elasticsearch.Serverless.Duration After { get; set; } - - /// - /// - /// The downsample configuration to execute. - /// - /// - [JsonInclude, JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfig Config { get; set; } -} - -public sealed partial class DownsamplingRoundDescriptor : SerializableDescriptor -{ - internal DownsamplingRoundDescriptor(Action configure) => configure.Invoke(this); - - public DownsamplingRoundDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration AfterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfig ConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfigDescriptor ConfigDescriptor { get; set; } - private Action ConfigDescriptorAction { get; set; } - - /// - /// - /// The duration since rollover when this downsampling round should execute - /// - /// - public DownsamplingRoundDescriptor After(Elastic.Clients.Elasticsearch.Serverless.Duration after) - { - AfterValue = after; - return Self; - } - - /// - /// - /// The downsample configuration to execute. - /// - /// - public DownsamplingRoundDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfig config) - { - ConfigDescriptor = null; - ConfigDescriptorAction = null; - ConfigValue = config; - return Self; - } - - public DownsamplingRoundDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfigDescriptor descriptor) - { - ConfigValue = null; - ConfigDescriptorAction = null; - ConfigDescriptor = descriptor; - return Self; - } - - public DownsamplingRoundDescriptor Config(Action configure) - { - ConfigValue = null; - ConfigDescriptor = null; - ConfigDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("after"); - JsonSerializer.Serialize(writer, AfterValue, options); - if (ConfigDescriptor is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigDescriptor, options); - } - else if (ConfigDescriptorAction is not null) - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfigDescriptor(ConfigDescriptorAction), options); - } - else - { - writer.WritePropertyName("config"); - JsonSerializer.Serialize(writer, ConfigValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs deleted file mode 100644 index 9d6ab4edf40..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ExplainAnalyzeToken.g.cs +++ /dev/null @@ -1,138 +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.IndexManagement; - -internal sealed partial class ExplainAnalyzeTokenConverter : JsonConverter -{ - public override ExplainAnalyzeToken Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - string bytes = default; - long endOffset = default; - bool? keyword = default; - long position = default; - long positionlength = default; - long startOffset = default; - long termfrequency = default; - string token = default; - string type = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "bytes") - { - bytes = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "end_offset") - { - endOffset = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "keyword") - { - keyword = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "position") - { - position = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "positionLength") - { - positionlength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "start_offset") - { - startOffset = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "termFrequency") - { - termfrequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "token") - { - token = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "type") - { - type = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - return new ExplainAnalyzeToken { Attributes = additionalProperties, Bytes = bytes, EndOffset = endOffset, Keyword = keyword, Position = position, Positionlength = positionlength, StartOffset = startOffset, Termfrequency = termfrequency, Token = token, Type = type }; - } - - public override void Write(Utf8JsonWriter writer, ExplainAnalyzeToken value, JsonSerializerOptions options) - { - throw new NotImplementedException("'ExplainAnalyzeToken' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(ExplainAnalyzeTokenConverter))] -public sealed partial class ExplainAnalyzeToken -{ - /// - /// - /// Additional tokenizer-specific attributes - /// - /// - public IReadOnlyDictionary Attributes { get; init; } - public string Bytes { get; init; } - public long EndOffset { get; init; } - public bool? Keyword { get; init; } - public long Position { get; init; } - public long Positionlength { get; init; } - public long StartOffset { get; init; } - public long Termfrequency { get; init; } - public string Token { get; init; } - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs deleted file mode 100644 index 913aaeb21f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FailureStore.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class FailureStore -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("rollover_on_write")] - public bool RolloverOnWrite { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs deleted file mode 100644 index de39dbe97a0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FielddataFrequencyFilter.g.cs +++ /dev/null @@ -1,81 +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.IndexManagement; - -public sealed partial class FielddataFrequencyFilter -{ - [JsonInclude, JsonPropertyName("max")] - public double Max { get; set; } - [JsonInclude, JsonPropertyName("min")] - public double Min { get; set; } - [JsonInclude, JsonPropertyName("min_segment_size")] - public int MinSegmentSize { get; set; } -} - -public sealed partial class FielddataFrequencyFilterDescriptor : SerializableDescriptor -{ - internal FielddataFrequencyFilterDescriptor(Action configure) => configure.Invoke(this); - - public FielddataFrequencyFilterDescriptor() : base() - { - } - - private double MaxValue { get; set; } - private double MinValue { get; set; } - private int MinSegmentSizeValue { get; set; } - - public FielddataFrequencyFilterDescriptor Max(double max) - { - MaxValue = max; - return Self; - } - - public FielddataFrequencyFilterDescriptor Min(double min) - { - MinValue = min; - return Self; - } - - public FielddataFrequencyFilterDescriptor MinSegmentSize(int minSegmentSize) - { - MinSegmentSizeValue = minSegmentSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("max"); - writer.WriteNumberValue(MaxValue); - writer.WritePropertyName("min"); - writer.WriteNumberValue(MinValue); - writer.WritePropertyName("min_segment_size"); - writer.WriteNumberValue(MinSegmentSizeValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FileDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FileDetails.g.cs deleted file mode 100644 index 2650773c584..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/FileDetails.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class FileDetails -{ - [JsonInclude, JsonPropertyName("length")] - public long Length { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("recovered")] - public long Recovered { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAliases.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAliases.g.cs deleted file mode 100644 index 48b0d559502..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAliases.g.cs +++ /dev/null @@ -1,34 +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.IndexManagement; - -public sealed partial class IndexAliases -{ - [JsonInclude, JsonPropertyName("aliases")] - public IReadOnlyDictionary Aliases { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs deleted file mode 100644 index b5b82c9af8b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexAndDataStreamAction.g.cs +++ /dev/null @@ -1,91 +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.IndexManagement; - -public sealed partial class IndexAndDataStreamAction -{ - /// - /// - /// Data stream targeted by the action. - /// - /// - [JsonInclude, JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.Serverless.DataStreamName DataStream { get; set; } - - /// - /// - /// Index for the action. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } -} - -public sealed partial class IndexAndDataStreamActionDescriptor : SerializableDescriptor -{ - internal IndexAndDataStreamActionDescriptor(Action configure) => configure.Invoke(this); - - public IndexAndDataStreamActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.DataStreamName DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - - /// - /// - /// Data stream targeted by the action. - /// - /// - public IndexAndDataStreamActionDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.DataStreamName dataStream) - { - DataStreamValue = dataStream; - return Self; - } - - /// - /// - /// Index for the action. - /// - /// - public IndexAndDataStreamActionDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs deleted file mode 100644 index 5f4a17ad5b8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexMappingRecord.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class IndexMappingRecord -{ - [JsonInclude, JsonPropertyName("item")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Item { get; init; } - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping Mappings { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs deleted file mode 100644 index 1ae8a45a42f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexModifyDataStreamAction.g.cs +++ /dev/null @@ -1,242 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -[JsonConverter(typeof(IndexModifyDataStreamActionConverter))] -public sealed partial class IndexModifyDataStreamAction -{ - internal IndexModifyDataStreamAction(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static IndexModifyDataStreamAction AddBackingIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction indexAndDataStreamAction) => new IndexModifyDataStreamAction("add_backing_index", indexAndDataStreamAction); - public static IndexModifyDataStreamAction RemoveBackingIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction indexAndDataStreamAction) => new IndexModifyDataStreamAction("remove_backing_index", indexAndDataStreamAction); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class IndexModifyDataStreamActionConverter : JsonConverter -{ - public override IndexModifyDataStreamAction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "add_backing_index") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "remove_backing_index") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IndexModifyDataStreamAction' from the response."); - } - - var result = new IndexModifyDataStreamAction(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, IndexModifyDataStreamAction value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "add_backing_index": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction)value.Variant, options); - break; - case "remove_backing_index": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexModifyDataStreamActionDescriptor : SerializableDescriptor> -{ - internal IndexModifyDataStreamActionDescriptor(Action> configure) => configure.Invoke(this); - - public IndexModifyDataStreamActionDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IndexModifyDataStreamActionDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IndexModifyDataStreamActionDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IndexModifyDataStreamActionDescriptor AddBackingIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction indexAndDataStreamAction) => Set(indexAndDataStreamAction, "add_backing_index"); - public IndexModifyDataStreamActionDescriptor AddBackingIndex(Action configure) => Set(configure, "add_backing_index"); - public IndexModifyDataStreamActionDescriptor RemoveBackingIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction indexAndDataStreamAction) => Set(indexAndDataStreamAction, "remove_backing_index"); - public IndexModifyDataStreamActionDescriptor RemoveBackingIndex(Action configure) => Set(configure, "remove_backing_index"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexModifyDataStreamActionDescriptor : SerializableDescriptor -{ - internal IndexModifyDataStreamActionDescriptor(Action configure) => configure.Invoke(this); - - public IndexModifyDataStreamActionDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IndexModifyDataStreamActionDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IndexModifyDataStreamActionDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IndexModifyDataStreamActionDescriptor AddBackingIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction indexAndDataStreamAction) => Set(indexAndDataStreamAction, "add_backing_index"); - public IndexModifyDataStreamActionDescriptor AddBackingIndex(Action configure) => Set(configure, "add_backing_index"); - public IndexModifyDataStreamActionDescriptor RemoveBackingIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexAndDataStreamAction indexAndDataStreamAction) => Set(indexAndDataStreamAction, "remove_backing_index"); - public IndexModifyDataStreamActionDescriptor RemoveBackingIndex(Action configure) => Set(configure, "remove_backing_index"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRouting.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRouting.g.cs deleted file mode 100644 index c8ff7bb5cd9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRouting.g.cs +++ /dev/null @@ -1,138 +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.IndexManagement; - -public sealed partial class IndexRouting -{ - [JsonInclude, JsonPropertyName("allocation")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocation? Allocation { get; set; } - [JsonInclude, JsonPropertyName("rebalance")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalance? Rebalance { get; set; } -} - -public sealed partial class IndexRoutingDescriptor : SerializableDescriptor -{ - internal IndexRoutingDescriptor(Action configure) => configure.Invoke(this); - - public IndexRoutingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocation? AllocationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDescriptor AllocationDescriptor { get; set; } - private Action AllocationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalance? RebalanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalanceDescriptor RebalanceDescriptor { get; set; } - private Action RebalanceDescriptorAction { get; set; } - - public IndexRoutingDescriptor Allocation(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocation? allocation) - { - AllocationDescriptor = null; - AllocationDescriptorAction = null; - AllocationValue = allocation; - return Self; - } - - public IndexRoutingDescriptor Allocation(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDescriptor descriptor) - { - AllocationValue = null; - AllocationDescriptorAction = null; - AllocationDescriptor = descriptor; - return Self; - } - - public IndexRoutingDescriptor Allocation(Action configure) - { - AllocationValue = null; - AllocationDescriptor = null; - AllocationDescriptorAction = configure; - return Self; - } - - public IndexRoutingDescriptor Rebalance(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalance? rebalance) - { - RebalanceDescriptor = null; - RebalanceDescriptorAction = null; - RebalanceValue = rebalance; - return Self; - } - - public IndexRoutingDescriptor Rebalance(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalanceDescriptor descriptor) - { - RebalanceValue = null; - RebalanceDescriptorAction = null; - RebalanceDescriptor = descriptor; - return Self; - } - - public IndexRoutingDescriptor Rebalance(Action configure) - { - RebalanceValue = null; - RebalanceDescriptor = null; - RebalanceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllocationDescriptor is not null) - { - writer.WritePropertyName("allocation"); - JsonSerializer.Serialize(writer, AllocationDescriptor, options); - } - else if (AllocationDescriptorAction is not null) - { - writer.WritePropertyName("allocation"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDescriptor(AllocationDescriptorAction), options); - } - else if (AllocationValue is not null) - { - writer.WritePropertyName("allocation"); - JsonSerializer.Serialize(writer, AllocationValue, options); - } - - if (RebalanceDescriptor is not null) - { - writer.WritePropertyName("rebalance"); - JsonSerializer.Serialize(writer, RebalanceDescriptor, options); - } - else if (RebalanceDescriptorAction is not null) - { - writer.WritePropertyName("rebalance"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalanceDescriptor(RebalanceDescriptorAction), options); - } - else if (RebalanceValue is not null) - { - writer.WritePropertyName("rebalance"); - JsonSerializer.Serialize(writer, RebalanceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs deleted file mode 100644 index aa4e229fea5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocation.g.cs +++ /dev/null @@ -1,198 +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.IndexManagement; - -public sealed partial class IndexRoutingAllocation -{ - [JsonInclude, JsonPropertyName("disk")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDisk? Disk { get; set; } - [JsonInclude, JsonPropertyName("enable")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationOptions? Enable { get; set; } - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInclude? Include { get; set; } - [JsonInclude, JsonPropertyName("initial_recovery")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInitialRecovery? InitialRecovery { get; set; } -} - -public sealed partial class IndexRoutingAllocationDescriptor : SerializableDescriptor -{ - internal IndexRoutingAllocationDescriptor(Action configure) => configure.Invoke(this); - - public IndexRoutingAllocationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDisk? DiskValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDiskDescriptor DiskDescriptor { get; set; } - private Action DiskDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationOptions? EnableValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInclude? IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationIncludeDescriptor IncludeDescriptor { get; set; } - private Action IncludeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInitialRecovery? InitialRecoveryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInitialRecoveryDescriptor InitialRecoveryDescriptor { get; set; } - private Action InitialRecoveryDescriptorAction { get; set; } - - public IndexRoutingAllocationDescriptor Disk(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDisk? disk) - { - DiskDescriptor = null; - DiskDescriptorAction = null; - DiskValue = disk; - return Self; - } - - public IndexRoutingAllocationDescriptor Disk(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDiskDescriptor descriptor) - { - DiskValue = null; - DiskDescriptorAction = null; - DiskDescriptor = descriptor; - return Self; - } - - public IndexRoutingAllocationDescriptor Disk(Action configure) - { - DiskValue = null; - DiskDescriptor = null; - DiskDescriptorAction = configure; - return Self; - } - - public IndexRoutingAllocationDescriptor Enable(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationOptions? enable) - { - EnableValue = enable; - return Self; - } - - public IndexRoutingAllocationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInclude? include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeValue = include; - return Self; - } - - public IndexRoutingAllocationDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationIncludeDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptor = descriptor; - return Self; - } - - public IndexRoutingAllocationDescriptor Include(Action configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = configure; - return Self; - } - - public IndexRoutingAllocationDescriptor InitialRecovery(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInitialRecovery? initialRecovery) - { - InitialRecoveryDescriptor = null; - InitialRecoveryDescriptorAction = null; - InitialRecoveryValue = initialRecovery; - return Self; - } - - public IndexRoutingAllocationDescriptor InitialRecovery(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInitialRecoveryDescriptor descriptor) - { - InitialRecoveryValue = null; - InitialRecoveryDescriptorAction = null; - InitialRecoveryDescriptor = descriptor; - return Self; - } - - public IndexRoutingAllocationDescriptor InitialRecovery(Action configure) - { - InitialRecoveryValue = null; - InitialRecoveryDescriptor = null; - InitialRecoveryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DiskDescriptor is not null) - { - writer.WritePropertyName("disk"); - JsonSerializer.Serialize(writer, DiskDescriptor, options); - } - else if (DiskDescriptorAction is not null) - { - writer.WritePropertyName("disk"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationDiskDescriptor(DiskDescriptorAction), options); - } - else if (DiskValue is not null) - { - writer.WritePropertyName("disk"); - JsonSerializer.Serialize(writer, DiskValue, options); - } - - if (EnableValue is not null) - { - writer.WritePropertyName("enable"); - JsonSerializer.Serialize(writer, EnableValue, options); - } - - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationIncludeDescriptor(IncludeDescriptorAction), options); - } - else if (IncludeValue is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (InitialRecoveryDescriptor is not null) - { - writer.WritePropertyName("initial_recovery"); - JsonSerializer.Serialize(writer, InitialRecoveryDescriptor, options); - } - else if (InitialRecoveryDescriptorAction is not null) - { - writer.WritePropertyName("initial_recovery"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingAllocationInitialRecoveryDescriptor(InitialRecoveryDescriptorAction), options); - } - else if (InitialRecoveryValue is not null) - { - writer.WritePropertyName("initial_recovery"); - JsonSerializer.Serialize(writer, InitialRecoveryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs deleted file mode 100644 index ceed85877f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationDisk.g.cs +++ /dev/null @@ -1,63 +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.IndexManagement; - -public sealed partial class IndexRoutingAllocationDisk -{ - [JsonInclude, JsonPropertyName("threshold_enabled")] - public object? ThresholdEnabled { get; set; } -} - -public sealed partial class IndexRoutingAllocationDiskDescriptor : SerializableDescriptor -{ - internal IndexRoutingAllocationDiskDescriptor(Action configure) => configure.Invoke(this); - - public IndexRoutingAllocationDiskDescriptor() : base() - { - } - - private object? ThresholdEnabledValue { get; set; } - - public IndexRoutingAllocationDiskDescriptor ThresholdEnabled(object? thresholdEnabled) - { - ThresholdEnabledValue = thresholdEnabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ThresholdEnabledValue is not null) - { - writer.WritePropertyName("threshold_enabled"); - JsonSerializer.Serialize(writer, ThresholdEnabledValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs deleted file mode 100644 index f89a2bc0c32..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInclude.g.cs +++ /dev/null @@ -1,78 +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.IndexManagement; - -public sealed partial class IndexRoutingAllocationInclude -{ - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - [JsonInclude, JsonPropertyName("_tier_preference")] - public string? TierPreference { get; set; } -} - -public sealed partial class IndexRoutingAllocationIncludeDescriptor : SerializableDescriptor -{ - internal IndexRoutingAllocationIncludeDescriptor(Action configure) => configure.Invoke(this); - - public IndexRoutingAllocationIncludeDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private string? TierPreferenceValue { get; set; } - - public IndexRoutingAllocationIncludeDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - public IndexRoutingAllocationIncludeDescriptor TierPreference(string? tierPreference) - { - TierPreferenceValue = tierPreference; - 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 (!string.IsNullOrEmpty(TierPreferenceValue)) - { - writer.WritePropertyName("_tier_preference"); - writer.WriteStringValue(TierPreferenceValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs deleted file mode 100644 index f70915a1352..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingAllocationInitialRecovery.g.cs +++ /dev/null @@ -1,63 +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.IndexManagement; - -public sealed partial class IndexRoutingAllocationInitialRecovery -{ - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } -} - -public sealed partial class IndexRoutingAllocationInitialRecoveryDescriptor : SerializableDescriptor -{ - internal IndexRoutingAllocationInitialRecoveryDescriptor(Action configure) => configure.Invoke(this); - - public IndexRoutingAllocationInitialRecoveryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - - public IndexRoutingAllocationInitialRecoveryDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - 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); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs deleted file mode 100644 index b68031e40fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexRoutingRebalance.g.cs +++ /dev/null @@ -1,59 +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.IndexManagement; - -public sealed partial class IndexRoutingRebalance -{ - [JsonInclude, JsonPropertyName("enable")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalanceOptions Enable { get; set; } -} - -public sealed partial class IndexRoutingRebalanceDescriptor : SerializableDescriptor -{ - internal IndexRoutingRebalanceDescriptor(Action configure) => configure.Invoke(this); - - public IndexRoutingRebalanceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalanceOptions EnableValue { get; set; } - - public IndexRoutingRebalanceDescriptor Enable(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingRebalanceOptions enable) - { - EnableValue = enable; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enable"); - JsonSerializer.Serialize(writer, EnableValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegment.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegment.g.cs deleted file mode 100644 index dd9b4eaf9cb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegment.g.cs +++ /dev/null @@ -1,34 +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.IndexManagement; - -public sealed partial class IndexSegment -{ - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyDictionary>> Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs deleted file mode 100644 index 3aedc9a4378..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs +++ /dev/null @@ -1,180 +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.IndexManagement; - -public sealed partial class IndexSegmentSort -{ - [JsonInclude, JsonPropertyName("field")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Field { get; set; } - [JsonInclude, JsonPropertyName("missing")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SegmentSortMissing))] - public ICollection? Missing { get; set; } - [JsonInclude, JsonPropertyName("mode")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SegmentSortMode))] - public ICollection? Mode { get; set; } - [JsonInclude, JsonPropertyName("order")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SegmentSortOrder))] - public ICollection? Order { get; set; } -} - -public sealed partial class IndexSegmentSortDescriptor : SerializableDescriptor> -{ - internal IndexSegmentSortDescriptor(Action> configure) => configure.Invoke(this); - - public IndexSegmentSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldValue { get; set; } - private ICollection? MissingValue { get; set; } - private ICollection? ModeValue { get; set; } - private ICollection? OrderValue { get; set; } - - public IndexSegmentSortDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Fields? field) - { - FieldValue = field; - return Self; - } - - public IndexSegmentSortDescriptor Missing(ICollection? missing) - { - MissingValue = missing; - return Self; - } - - public IndexSegmentSortDescriptor Mode(ICollection? mode) - { - ModeValue = mode; - return Self; - } - - public IndexSegmentSortDescriptor Order(ICollection? order) - { - OrderValue = order; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - SingleOrManySerializationHelper.Serialize(MissingValue, writer, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - SingleOrManySerializationHelper.Serialize(ModeValue, writer, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize(OrderValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexSegmentSortDescriptor : SerializableDescriptor -{ - internal IndexSegmentSortDescriptor(Action configure) => configure.Invoke(this); - - public IndexSegmentSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldValue { get; set; } - private ICollection? MissingValue { get; set; } - private ICollection? ModeValue { get; set; } - private ICollection? OrderValue { get; set; } - - public IndexSegmentSortDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Fields? field) - { - FieldValue = field; - return Self; - } - - public IndexSegmentSortDescriptor Missing(ICollection? missing) - { - MissingValue = missing; - return Self; - } - - public IndexSegmentSortDescriptor Mode(ICollection? mode) - { - ModeValue = mode; - return Self; - } - - public IndexSegmentSortDescriptor Order(ICollection? order) - { - OrderValue = order; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (MissingValue is not null) - { - writer.WritePropertyName("missing"); - SingleOrManySerializationHelper.Serialize(MissingValue, writer, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - SingleOrManySerializationHelper.Serialize(ModeValue, writer, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - SingleOrManySerializationHelper.Serialize(OrderValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs deleted file mode 100644 index 0a1817eefda..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingBlocks.g.cs +++ /dev/null @@ -1,123 +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.IndexManagement; - -public sealed partial class IndexSettingBlocks -{ - [JsonInclude, JsonPropertyName("metadata")] - public bool? Metadata { get; set; } - [JsonInclude, JsonPropertyName("read")] - public bool? Read { get; set; } - [JsonInclude, JsonPropertyName("read_only")] - public bool? ReadOnly { get; set; } - [JsonInclude, JsonPropertyName("read_only_allow_delete")] - public bool? ReadOnlyAllowDelete { get; set; } - [JsonInclude, JsonPropertyName("write")] - public bool? Write { get; set; } -} - -public sealed partial class IndexSettingBlocksDescriptor : SerializableDescriptor -{ - internal IndexSettingBlocksDescriptor(Action configure) => configure.Invoke(this); - - public IndexSettingBlocksDescriptor() : base() - { - } - - private bool? MetadataValue { get; set; } - private bool? ReadValue { get; set; } - private bool? ReadOnlyValue { get; set; } - private bool? ReadOnlyAllowDeleteValue { get; set; } - private bool? WriteValue { get; set; } - - public IndexSettingBlocksDescriptor Metadata(bool? metadata = true) - { - MetadataValue = metadata; - return Self; - } - - public IndexSettingBlocksDescriptor Read(bool? read = true) - { - ReadValue = read; - return Self; - } - - public IndexSettingBlocksDescriptor ReadOnly(bool? readOnly = true) - { - ReadOnlyValue = readOnly; - return Self; - } - - public IndexSettingBlocksDescriptor ReadOnlyAllowDelete(bool? readOnlyAllowDelete = true) - { - ReadOnlyAllowDeleteValue = readOnlyAllowDelete; - return Self; - } - - public IndexSettingBlocksDescriptor Write(bool? write = true) - { - WriteValue = write; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MetadataValue.HasValue) - { - writer.WritePropertyName("metadata"); - writer.WriteBooleanValue(MetadataValue.Value); - } - - if (ReadValue.HasValue) - { - writer.WritePropertyName("read"); - writer.WriteBooleanValue(ReadValue.Value); - } - - if (ReadOnlyValue.HasValue) - { - writer.WritePropertyName("read_only"); - writer.WriteBooleanValue(ReadOnlyValue.Value); - } - - if (ReadOnlyAllowDeleteValue.HasValue) - { - writer.WritePropertyName("read_only_allow_delete"); - writer.WriteBooleanValue(ReadOnlyAllowDeleteValue.Value); - } - - if (WriteValue.HasValue) - { - writer.WritePropertyName("write"); - writer.WriteBooleanValue(WriteValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs deleted file mode 100644 index ef149859971..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ /dev/null @@ -1,3714 +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.IndexManagement; - -internal sealed partial class IndexSettingsConverter : JsonConverter -{ - public override IndexSettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new IndexSettings(); - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "analysis") - { - variant.Analysis = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "analyze") - { - variant.Analyze = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "auto_expand_replicas") - { - variant.AutoExpandReplicas = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "blocks") - { - variant.Blocks = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "check_on_startup") - { - variant.CheckOnStartup = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "codec") - { - variant.Codec = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "creation_date") - { - variant.CreationDate = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "creation_date_string") - { - variant.CreationDateString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "default_pipeline") - { - variant.DefaultPipeline = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "final_pipeline") - { - variant.FinalPipeline = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "format") - { - variant.Format = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gc_deletes") - { - variant.GcDeletes = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "hidden") - { - variant.Hidden = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "highlight") - { - variant.Highlight = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "index") - { - variant.Index = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indexing_pressure") - { - variant.IndexingPressure = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indexing.slowlog") - { - variant.IndexingSlowlog = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lifecycle") - { - variant.Lifecycle = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "load_fixed_bitset_filters_eagerly") - { - variant.LoadFixedBitsetFiltersEagerly = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "mapping") - { - variant.Mapping = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_docvalue_fields_search") - { - variant.MaxDocvalueFieldsSearch = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_inner_result_window") - { - variant.MaxInnerResultWindow = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_ngram_diff") - { - variant.MaxNgramDiff = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_refresh_listeners") - { - variant.MaxRefreshListeners = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_regex_length") - { - variant.MaxRegexLength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_rescore_window") - { - variant.MaxRescoreWindow = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_result_window") - { - variant.MaxResultWindow = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_script_fields") - { - variant.MaxScriptFields = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_shingle_diff") - { - variant.MaxShingleDiff = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_slices_per_scroll") - { - variant.MaxSlicesPerScroll = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_terms_count") - { - variant.MaxTermsCount = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "merge") - { - variant.Merge = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "mode") - { - variant.Mode = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "number_of_replicas") - { - variant.NumberOfReplicas = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "number_of_routing_shards") - { - variant.NumberOfRoutingShards = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "number_of_shards") - { - variant.NumberOfShards = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "priority") - { - variant.Priority = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "provided_name") - { - variant.ProvidedName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "queries") - { - variant.Queries = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_string") - { - variant.QueryString = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "refresh_interval") - { - variant.RefreshInterval = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "routing") - { - variant.Routing = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "routing_partition_size") - { - variant.RoutingPartitionSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "routing_path") - { - variant.RoutingPath = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (property == "search") - { - variant.Search = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "settings") - { - variant.Settings = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "similarity") - { - variant.Similarity = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_deletes") - { - variant.SoftDeletes = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "sort") - { - variant.Sort = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "store") - { - variant.Store = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "time_series") - { - variant.TimeSeries = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "top_metrics_max_size") - { - variant.TopMetricsMaxSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "translog") - { - variant.Translog = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "uuid") - { - variant.Uuid = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "verified_before_close") - { - variant.VerifiedBeforeClose = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "version") - { - variant.Version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - variant.OtherSettings = additionalProperties; - return variant; - } - - public override void Write(Utf8JsonWriter writer, IndexSettings value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.OtherSettings is not null) - { - foreach (var additionalProperty in value.OtherSettings) - { - writer.WritePropertyName(additionalProperty.Key); - JsonSerializer.Serialize(writer, additionalProperty.Value, options); - } - } - - if (value.Analysis is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, value.Analysis, options); - } - - if (value.Analyze is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, value.Analyze, options); - } - - if (!string.IsNullOrEmpty(value.AutoExpandReplicas)) - { - writer.WritePropertyName("auto_expand_replicas"); - writer.WriteStringValue(value.AutoExpandReplicas); - } - - if (value.Blocks is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, value.Blocks, options); - } - - if (value.CheckOnStartup is not null) - { - writer.WritePropertyName("check_on_startup"); - JsonSerializer.Serialize(writer, value.CheckOnStartup, options); - } - - if (!string.IsNullOrEmpty(value.Codec)) - { - writer.WritePropertyName("codec"); - writer.WriteStringValue(value.Codec); - } - - if (value.CreationDate.HasValue) - { - writer.WritePropertyName("creation_date"); - writer.WriteNumberValue(value.CreationDate.Value); - } - - if (value.CreationDateString is not null) - { - writer.WritePropertyName("creation_date_string"); - JsonSerializer.Serialize(writer, value.CreationDateString, options); - } - - if (!string.IsNullOrEmpty(value.DefaultPipeline)) - { - writer.WritePropertyName("default_pipeline"); - writer.WriteStringValue(value.DefaultPipeline); - } - - if (!string.IsNullOrEmpty(value.FinalPipeline)) - { - writer.WritePropertyName("final_pipeline"); - writer.WriteStringValue(value.FinalPipeline); - } - - if (value.Format is not null) - { - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, value.Format, options); - } - - if (value.GcDeletes is not null) - { - writer.WritePropertyName("gc_deletes"); - JsonSerializer.Serialize(writer, value.GcDeletes, options); - } - - if (value.Hidden is not null) - { - writer.WritePropertyName("hidden"); - JsonSerializer.Serialize(writer, value.Hidden, options); - } - - if (value.Highlight is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, value.Highlight, options); - } - - if (value.Index is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, value.Index, options); - } - - if (value.IndexingPressure is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, value.IndexingPressure, options); - } - - if (value.IndexingSlowlog is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, value.IndexingSlowlog, options); - } - - if (value.Lifecycle is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, value.Lifecycle, options); - } - - if (value.LoadFixedBitsetFiltersEagerly.HasValue) - { - writer.WritePropertyName("load_fixed_bitset_filters_eagerly"); - writer.WriteBooleanValue(value.LoadFixedBitsetFiltersEagerly.Value); - } - - if (value.Mapping is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, value.Mapping, options); - } - - if (value.MaxDocvalueFieldsSearch.HasValue) - { - writer.WritePropertyName("max_docvalue_fields_search"); - writer.WriteNumberValue(value.MaxDocvalueFieldsSearch.Value); - } - - if (value.MaxInnerResultWindow.HasValue) - { - writer.WritePropertyName("max_inner_result_window"); - writer.WriteNumberValue(value.MaxInnerResultWindow.Value); - } - - if (value.MaxNgramDiff.HasValue) - { - writer.WritePropertyName("max_ngram_diff"); - writer.WriteNumberValue(value.MaxNgramDiff.Value); - } - - if (value.MaxRefreshListeners.HasValue) - { - writer.WritePropertyName("max_refresh_listeners"); - writer.WriteNumberValue(value.MaxRefreshListeners.Value); - } - - if (value.MaxRegexLength.HasValue) - { - writer.WritePropertyName("max_regex_length"); - writer.WriteNumberValue(value.MaxRegexLength.Value); - } - - if (value.MaxRescoreWindow.HasValue) - { - writer.WritePropertyName("max_rescore_window"); - writer.WriteNumberValue(value.MaxRescoreWindow.Value); - } - - if (value.MaxResultWindow.HasValue) - { - writer.WritePropertyName("max_result_window"); - writer.WriteNumberValue(value.MaxResultWindow.Value); - } - - if (value.MaxScriptFields.HasValue) - { - writer.WritePropertyName("max_script_fields"); - writer.WriteNumberValue(value.MaxScriptFields.Value); - } - - if (value.MaxShingleDiff.HasValue) - { - writer.WritePropertyName("max_shingle_diff"); - writer.WriteNumberValue(value.MaxShingleDiff.Value); - } - - if (value.MaxSlicesPerScroll.HasValue) - { - writer.WritePropertyName("max_slices_per_scroll"); - writer.WriteNumberValue(value.MaxSlicesPerScroll.Value); - } - - if (value.MaxTermsCount.HasValue) - { - writer.WritePropertyName("max_terms_count"); - writer.WriteNumberValue(value.MaxTermsCount.Value); - } - - if (value.Merge is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, value.Merge, options); - } - - if (!string.IsNullOrEmpty(value.Mode)) - { - writer.WritePropertyName("mode"); - writer.WriteStringValue(value.Mode); - } - - if (value.NumberOfReplicas is not null) - { - writer.WritePropertyName("number_of_replicas"); - JsonSerializer.Serialize(writer, value.NumberOfReplicas, options); - } - - if (value.NumberOfRoutingShards.HasValue) - { - writer.WritePropertyName("number_of_routing_shards"); - writer.WriteNumberValue(value.NumberOfRoutingShards.Value); - } - - if (value.NumberOfShards is not null) - { - writer.WritePropertyName("number_of_shards"); - JsonSerializer.Serialize(writer, value.NumberOfShards, options); - } - - if (value.Priority is not null) - { - writer.WritePropertyName("priority"); - JsonSerializer.Serialize(writer, value.Priority, options); - } - - if (value.ProvidedName is not null) - { - writer.WritePropertyName("provided_name"); - JsonSerializer.Serialize(writer, value.ProvidedName, options); - } - - if (value.Queries is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, value.Queries, options); - } - - if (value.QueryString is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, value.QueryString, options); - } - - if (value.RefreshInterval is not null) - { - writer.WritePropertyName("refresh_interval"); - JsonSerializer.Serialize(writer, value.RefreshInterval, options); - } - - if (value.Routing is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, value.Routing, options); - } - - if (value.RoutingPartitionSize.HasValue) - { - writer.WritePropertyName("routing_partition_size"); - writer.WriteNumberValue(value.RoutingPartitionSize.Value); - } - - if (value.RoutingPath is not null) - { - writer.WritePropertyName("routing_path"); - JsonSerializer.Serialize(writer, value.RoutingPath, options); - } - - if (value.Search is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, value.Search, options); - } - - if (value.Settings is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, value.Settings, options); - } - - if (value.Similarity is not null) - { - writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, value.Similarity, options); - } - - if (value.SoftDeletes is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, value.SoftDeletes, options); - } - - if (value.Sort is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, value.Sort, options); - } - - if (value.Store is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, value.Store, options); - } - - if (value.TimeSeries is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, value.TimeSeries, options); - } - - if (value.TopMetricsMaxSize.HasValue) - { - writer.WritePropertyName("top_metrics_max_size"); - writer.WriteNumberValue(value.TopMetricsMaxSize.Value); - } - - if (value.Translog is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, value.Translog, options); - } - - if (!string.IsNullOrEmpty(value.Uuid)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(value.Uuid); - } - - if (value.VerifiedBeforeClose is not null) - { - writer.WritePropertyName("verified_before_close"); - JsonSerializer.Serialize(writer, value.VerifiedBeforeClose, options); - } - - if (value.Version is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, value.Version, options); - } - - writer.WriteEndObject(); - } -} - -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -[JsonConverter(typeof(IndexSettingsConverter))] -public sealed partial class IndexSettings -{ - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysis? Analysis { get; set; } - - /// - /// - /// Settings to define analyzers, tokenizers, token filters and character filters. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyze? Analyze { get; set; } - public string? AutoExpandReplicas { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocks? Blocks { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexCheckOnStartup? CheckOnStartup { get; set; } - public string? Codec { get; set; } - public long? CreationDate { get; set; } - public DateTimeOffset? CreationDateString { get; set; } - public string? DefaultPipeline { get; set; } - public string? FinalPipeline { get; set; } - public object? Format { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Duration? GcDeletes { get; set; } - public object? Hidden { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlight? Highlight { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Index { get; set; } - - /// - /// - /// Configure indexing back pressure limits. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressure? IndexingPressure { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettings? IndexingSlowlog { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycle? Lifecycle { get; set; } - public bool? LoadFixedBitsetFiltersEagerly { get; set; } - - /// - /// - /// Enable or disable dynamic mapping for an index. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettings? Mapping { get; set; } - public int? MaxDocvalueFieldsSearch { get; set; } - public int? MaxInnerResultWindow { get; set; } - public int? MaxNgramDiff { get; set; } - public int? MaxRefreshListeners { get; set; } - public int? MaxRegexLength { get; set; } - public int? MaxRescoreWindow { get; set; } - public int? MaxResultWindow { get; set; } - public int? MaxScriptFields { get; set; } - public int? MaxShingleDiff { get; set; } - public int? MaxSlicesPerScroll { get; set; } - public int? MaxTermsCount { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Merge? Merge { get; set; } - public string? Mode { get; set; } - public object? NumberOfReplicas { get; set; } - public int? NumberOfRoutingShards { get; set; } - public object? NumberOfShards { get; set; } - - /// - /// - /// Additional settings not covered in this type. Unless these settings are defined by a plugin, please open an issue on the Elasticsearch API specification so that they can be added in a future release - /// - /// - public IDictionary OtherSettings { get; set; } - public object? Priority { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Name? ProvidedName { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Queries? Queries { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryString? QueryString { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Duration? RefreshInterval { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRouting? Routing { get; set; } - public int? RoutingPartitionSize { get; set; } - public ICollection? RoutingPath { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearch? Search { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Settings { get; set; } - - /// - /// - /// Configure custom similarity settings to customize how search results are scored. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarities? Similarity { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletes? SoftDeletes { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSort? Sort { get; set; } - - /// - /// - /// The store module allows you to control how index data is stored and accessed on disk. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Storage? Store { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeries? TimeSeries { get; set; } - public int? TopMetricsMaxSize { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Translog? Translog { get; set; } - public string? Uuid { get; set; } - public object? VerifiedBeforeClose { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioning? Version { get; set; } -} - -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class IndexSettingsDescriptor : SerializableDescriptor> -{ - internal IndexSettingsDescriptor(Action> configure) => configure.Invoke(this); - - public IndexSettingsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysis? AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyze? AnalyzeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyzeDescriptor AnalyzeDescriptor { get; set; } - private Action AnalyzeDescriptorAction { get; set; } - private string? AutoExpandReplicasValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocks? BlocksValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocksDescriptor BlocksDescriptor { get; set; } - private Action BlocksDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexCheckOnStartup? CheckOnStartupValue { get; set; } - private string? CodecValue { get; set; } - private long? CreationDateValue { get; set; } - private DateTimeOffset? CreationDateStringValue { get; set; } - private string? DefaultPipelineValue { get; set; } - private string? FinalPipelineValue { get; set; } - private object? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? GcDeletesValue { get; set; } - private object? HiddenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor IndexDescriptor { get; set; } - private Action> IndexDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressure? IndexingPressureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureDescriptor IndexingPressureDescriptor { get; set; } - private Action IndexingPressureDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettings? IndexingSlowlogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettingsDescriptor IndexingSlowlogDescriptor { get; set; } - private Action IndexingSlowlogDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycle? LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - private bool? LoadFixedBitsetFiltersEagerlyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettings? MappingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDescriptor MappingDescriptor { get; set; } - private Action MappingDescriptorAction { get; set; } - private int? MaxDocvalueFieldsSearchValue { get; set; } - private int? MaxInnerResultWindowValue { get; set; } - private int? MaxNgramDiffValue { get; set; } - private int? MaxRefreshListenersValue { get; set; } - private int? MaxRegexLengthValue { get; set; } - private int? MaxRescoreWindowValue { get; set; } - private int? MaxResultWindowValue { get; set; } - private int? MaxScriptFieldsValue { get; set; } - private int? MaxShingleDiffValue { get; set; } - private int? MaxSlicesPerScrollValue { get; set; } - private int? MaxTermsCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Merge? MergeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeDescriptor MergeDescriptor { get; set; } - private Action MergeDescriptorAction { get; set; } - private string? ModeValue { get; set; } - private object? NumberOfReplicasValue { get; set; } - private int? NumberOfRoutingShardsValue { get; set; } - private object? NumberOfShardsValue { get; set; } - private IDictionary OtherSettingsValue { get; set; } - private object? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? ProvidedNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Queries? QueriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.QueriesDescriptor QueriesDescriptor { get; set; } - private Action QueriesDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryString? QueryStringValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryStringDescriptor QueryStringDescriptor { get; set; } - private Action QueryStringDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? RefreshIntervalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRouting? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingDescriptor RoutingDescriptor { get; set; } - private Action RoutingDescriptorAction { get; set; } - private int? RoutingPartitionSizeValue { get; set; } - private ICollection? RoutingPathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearch? SearchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearchDescriptor SearchDescriptor { get; set; } - private Action SearchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarities? SimilarityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletes? SoftDeletesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletesDescriptor SoftDeletesDescriptor { get; set; } - private Action SoftDeletesDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSort? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSortDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Storage? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageDescriptor StoreDescriptor { get; set; } - private Action StoreDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeries? TimeSeriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeriesDescriptor TimeSeriesDescriptor { get; set; } - private Action TimeSeriesDescriptorAction { get; set; } - private int? TopMetricsMaxSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Translog? TranslogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDescriptor TranslogDescriptor { get; set; } - private Action TranslogDescriptorAction { get; set; } - private string? UuidValue { get; set; } - private object? VerifiedBeforeCloseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioning? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioningDescriptor VersionDescriptor { get; set; } - private Action VersionDescriptorAction { get; set; } - - public IndexSettingsDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysis? analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public IndexSettingsDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - /// - /// - /// Settings to define analyzers, tokenizers, token filters and character filters. - /// - /// - public IndexSettingsDescriptor Analyze(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyze? analyze) - { - AnalyzeDescriptor = null; - AnalyzeDescriptorAction = null; - AnalyzeValue = analyze; - return Self; - } - - public IndexSettingsDescriptor Analyze(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyzeDescriptor descriptor) - { - AnalyzeValue = null; - AnalyzeDescriptorAction = null; - AnalyzeDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Analyze(Action configure) - { - AnalyzeValue = null; - AnalyzeDescriptor = null; - AnalyzeDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor AutoExpandReplicas(string? autoExpandReplicas) - { - AutoExpandReplicasValue = autoExpandReplicas; - return Self; - } - - public IndexSettingsDescriptor Blocks(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocks? blocks) - { - BlocksDescriptor = null; - BlocksDescriptorAction = null; - BlocksValue = blocks; - return Self; - } - - public IndexSettingsDescriptor Blocks(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocksDescriptor descriptor) - { - BlocksValue = null; - BlocksDescriptorAction = null; - BlocksDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Blocks(Action configure) - { - BlocksValue = null; - BlocksDescriptor = null; - BlocksDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor CheckOnStartup(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexCheckOnStartup? checkOnStartup) - { - CheckOnStartupValue = checkOnStartup; - return Self; - } - - public IndexSettingsDescriptor Codec(string? codec) - { - CodecValue = codec; - return Self; - } - - public IndexSettingsDescriptor CreationDate(long? creationDate) - { - CreationDateValue = creationDate; - return Self; - } - - public IndexSettingsDescriptor CreationDateString(DateTimeOffset? creationDateString) - { - CreationDateStringValue = creationDateString; - return Self; - } - - public IndexSettingsDescriptor DefaultPipeline(string? defaultPipeline) - { - DefaultPipelineValue = defaultPipeline; - return Self; - } - - public IndexSettingsDescriptor FinalPipeline(string? finalPipeline) - { - FinalPipelineValue = finalPipeline; - return Self; - } - - public IndexSettingsDescriptor Format(object? format) - { - FormatValue = format; - return Self; - } - - public IndexSettingsDescriptor GcDeletes(Elastic.Clients.Elasticsearch.Serverless.Duration? gcDeletes) - { - GcDeletesValue = gcDeletes; - return Self; - } - - public IndexSettingsDescriptor Hidden(object? hidden) - { - HiddenValue = hidden; - return Self; - } - - public IndexSettingsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public IndexSettingsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? index) - { - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexValue = index; - return Self; - } - - public IndexSettingsDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - IndexValue = null; - IndexDescriptorAction = null; - IndexDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Index(Action> configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configure indexing back pressure limits. - /// - /// - public IndexSettingsDescriptor IndexingPressure(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressure? indexingPressure) - { - IndexingPressureDescriptor = null; - IndexingPressureDescriptorAction = null; - IndexingPressureValue = indexingPressure; - return Self; - } - - public IndexSettingsDescriptor IndexingPressure(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureDescriptor descriptor) - { - IndexingPressureValue = null; - IndexingPressureDescriptorAction = null; - IndexingPressureDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor IndexingPressure(Action configure) - { - IndexingPressureValue = null; - IndexingPressureDescriptor = null; - IndexingPressureDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor IndexingSlowlog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettings? indexingSlowlog) - { - IndexingSlowlogDescriptor = null; - IndexingSlowlogDescriptorAction = null; - IndexingSlowlogValue = indexingSlowlog; - return Self; - } - - public IndexSettingsDescriptor IndexingSlowlog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettingsDescriptor descriptor) - { - IndexingSlowlogValue = null; - IndexingSlowlogDescriptorAction = null; - IndexingSlowlogDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor IndexingSlowlog(Action configure) - { - IndexingSlowlogValue = null; - IndexingSlowlogDescriptor = null; - IndexingSlowlogDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycle? lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public IndexSettingsDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor LoadFixedBitsetFiltersEagerly(bool? loadFixedBitsetFiltersEagerly = true) - { - LoadFixedBitsetFiltersEagerlyValue = loadFixedBitsetFiltersEagerly; - return Self; - } - - /// - /// - /// Enable or disable dynamic mapping for an index. - /// - /// - public IndexSettingsDescriptor Mapping(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettings? mapping) - { - MappingDescriptor = null; - MappingDescriptorAction = null; - MappingValue = mapping; - return Self; - } - - public IndexSettingsDescriptor Mapping(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDescriptor descriptor) - { - MappingValue = null; - MappingDescriptorAction = null; - MappingDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Mapping(Action configure) - { - MappingValue = null; - MappingDescriptor = null; - MappingDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor MaxDocvalueFieldsSearch(int? maxDocvalueFieldsSearch) - { - MaxDocvalueFieldsSearchValue = maxDocvalueFieldsSearch; - return Self; - } - - public IndexSettingsDescriptor MaxInnerResultWindow(int? maxInnerResultWindow) - { - MaxInnerResultWindowValue = maxInnerResultWindow; - return Self; - } - - public IndexSettingsDescriptor MaxNgramDiff(int? maxNgramDiff) - { - MaxNgramDiffValue = maxNgramDiff; - return Self; - } - - public IndexSettingsDescriptor MaxRefreshListeners(int? maxRefreshListeners) - { - MaxRefreshListenersValue = maxRefreshListeners; - return Self; - } - - public IndexSettingsDescriptor MaxRegexLength(int? maxRegexLength) - { - MaxRegexLengthValue = maxRegexLength; - return Self; - } - - public IndexSettingsDescriptor MaxRescoreWindow(int? maxRescoreWindow) - { - MaxRescoreWindowValue = maxRescoreWindow; - return Self; - } - - public IndexSettingsDescriptor MaxResultWindow(int? maxResultWindow) - { - MaxResultWindowValue = maxResultWindow; - return Self; - } - - public IndexSettingsDescriptor MaxScriptFields(int? maxScriptFields) - { - MaxScriptFieldsValue = maxScriptFields; - return Self; - } - - public IndexSettingsDescriptor MaxShingleDiff(int? maxShingleDiff) - { - MaxShingleDiffValue = maxShingleDiff; - return Self; - } - - public IndexSettingsDescriptor MaxSlicesPerScroll(int? maxSlicesPerScroll) - { - MaxSlicesPerScrollValue = maxSlicesPerScroll; - return Self; - } - - public IndexSettingsDescriptor MaxTermsCount(int? maxTermsCount) - { - MaxTermsCountValue = maxTermsCount; - return Self; - } - - public IndexSettingsDescriptor Merge(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Merge? merge) - { - MergeDescriptor = null; - MergeDescriptorAction = null; - MergeValue = merge; - return Self; - } - - public IndexSettingsDescriptor Merge(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeDescriptor descriptor) - { - MergeValue = null; - MergeDescriptorAction = null; - MergeDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Merge(Action configure) - { - MergeValue = null; - MergeDescriptor = null; - MergeDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Mode(string? mode) - { - ModeValue = mode; - return Self; - } - - public IndexSettingsDescriptor NumberOfReplicas(object? numberOfReplicas) - { - NumberOfReplicasValue = numberOfReplicas; - return Self; - } - - public IndexSettingsDescriptor NumberOfRoutingShards(int? numberOfRoutingShards) - { - NumberOfRoutingShardsValue = numberOfRoutingShards; - return Self; - } - - public IndexSettingsDescriptor NumberOfShards(object? numberOfShards) - { - NumberOfShardsValue = numberOfShards; - return Self; - } - - /// - /// - /// Additional settings not covered in this type. Unless these settings are defined by a plugin, please open an issue on the Elasticsearch API specification so that they can be added in a future release - /// - /// - public IndexSettingsDescriptor OtherSettings(Func, FluentDictionary> selector) - { - OtherSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IndexSettingsDescriptor Priority(object? priority) - { - PriorityValue = priority; - return Self; - } - - public IndexSettingsDescriptor ProvidedName(Elastic.Clients.Elasticsearch.Serverless.Name? providedName) - { - ProvidedNameValue = providedName; - return Self; - } - - public IndexSettingsDescriptor Queries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Queries? queries) - { - QueriesDescriptor = null; - QueriesDescriptorAction = null; - QueriesValue = queries; - return Self; - } - - public IndexSettingsDescriptor Queries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.QueriesDescriptor descriptor) - { - QueriesValue = null; - QueriesDescriptorAction = null; - QueriesDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Queries(Action configure) - { - QueriesValue = null; - QueriesDescriptor = null; - QueriesDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor QueryString(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryString? queryString) - { - QueryStringDescriptor = null; - QueryStringDescriptorAction = null; - QueryStringValue = queryString; - return Self; - } - - public IndexSettingsDescriptor QueryString(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryStringDescriptor descriptor) - { - QueryStringValue = null; - QueryStringDescriptorAction = null; - QueryStringDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor QueryString(Action configure) - { - QueryStringValue = null; - QueryStringDescriptor = null; - QueryStringDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor RefreshInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? refreshInterval) - { - RefreshIntervalValue = refreshInterval; - return Self; - } - - public IndexSettingsDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRouting? routing) - { - RoutingDescriptor = null; - RoutingDescriptorAction = null; - RoutingValue = routing; - return Self; - } - - public IndexSettingsDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingDescriptor descriptor) - { - RoutingValue = null; - RoutingDescriptorAction = null; - RoutingDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Routing(Action configure) - { - RoutingValue = null; - RoutingDescriptor = null; - RoutingDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor RoutingPartitionSize(int? routingPartitionSize) - { - RoutingPartitionSizeValue = routingPartitionSize; - return Self; - } - - public IndexSettingsDescriptor RoutingPath(ICollection? routingPath) - { - RoutingPathValue = routingPath; - return Self; - } - - public IndexSettingsDescriptor Search(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearch? search) - { - SearchDescriptor = null; - SearchDescriptorAction = null; - SearchValue = search; - return Self; - } - - public IndexSettingsDescriptor Search(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearchDescriptor descriptor) - { - SearchValue = null; - SearchDescriptorAction = null; - SearchDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Search(Action configure) - { - SearchValue = null; - SearchDescriptor = null; - SearchDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexSettingsDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configure custom similarity settings to customize how search results are scored. - /// - /// - public IndexSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarities? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public IndexSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilaritiesDescriptor descriptor) - { - SimilarityValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsDescriptor Similarity(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilaritiesDescriptor(); - configure?.Invoke(descriptor); - SimilarityValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsDescriptor SoftDeletes(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletes? softDeletes) - { - SoftDeletesDescriptor = null; - SoftDeletesDescriptorAction = null; - SoftDeletesValue = softDeletes; - return Self; - } - - public IndexSettingsDescriptor SoftDeletes(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletesDescriptor descriptor) - { - SoftDeletesValue = null; - SoftDeletesDescriptorAction = null; - SoftDeletesDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor SoftDeletes(Action configure) - { - SoftDeletesValue = null; - SoftDeletesDescriptor = null; - SoftDeletesDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSort? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortValue = sort; - return Self; - } - - public IndexSettingsDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSortDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = configure; - return Self; - } - - /// - /// - /// The store module allows you to control how index data is stored and accessed on disk. - /// - /// - public IndexSettingsDescriptor Store(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Storage? store) - { - StoreDescriptor = null; - StoreDescriptorAction = null; - StoreValue = store; - return Self; - } - - public IndexSettingsDescriptor Store(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageDescriptor descriptor) - { - StoreValue = null; - StoreDescriptorAction = null; - StoreDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Store(Action configure) - { - StoreValue = null; - StoreDescriptor = null; - StoreDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor TimeSeries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeries? timeSeries) - { - TimeSeriesDescriptor = null; - TimeSeriesDescriptorAction = null; - TimeSeriesValue = timeSeries; - return Self; - } - - public IndexSettingsDescriptor TimeSeries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeriesDescriptor descriptor) - { - TimeSeriesValue = null; - TimeSeriesDescriptorAction = null; - TimeSeriesDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor TimeSeries(Action configure) - { - TimeSeriesValue = null; - TimeSeriesDescriptor = null; - TimeSeriesDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor TopMetricsMaxSize(int? topMetricsMaxSize) - { - TopMetricsMaxSizeValue = topMetricsMaxSize; - return Self; - } - - public IndexSettingsDescriptor Translog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Translog? translog) - { - TranslogDescriptor = null; - TranslogDescriptorAction = null; - TranslogValue = translog; - return Self; - } - - public IndexSettingsDescriptor Translog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDescriptor descriptor) - { - TranslogValue = null; - TranslogDescriptorAction = null; - TranslogDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Translog(Action configure) - { - TranslogValue = null; - TranslogDescriptor = null; - TranslogDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - public IndexSettingsDescriptor VerifiedBeforeClose(object? verifiedBeforeClose) - { - VerifiedBeforeCloseValue = verifiedBeforeClose; - return Self; - } - - public IndexSettingsDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioning? version) - { - VersionDescriptor = null; - VersionDescriptorAction = null; - VersionValue = version; - return Self; - } - - public IndexSettingsDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioningDescriptor descriptor) - { - VersionValue = null; - VersionDescriptorAction = null; - VersionDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Version(Action configure) - { - VersionValue = null; - VersionDescriptor = null; - VersionDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else if (AnalysisValue is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzeDescriptor is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, AnalyzeDescriptor, options); - } - else if (AnalyzeDescriptorAction is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyzeDescriptor(AnalyzeDescriptorAction), options); - } - else if (AnalyzeValue is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, AnalyzeValue, options); - } - - if (!string.IsNullOrEmpty(AutoExpandReplicasValue)) - { - writer.WritePropertyName("auto_expand_replicas"); - writer.WriteStringValue(AutoExpandReplicasValue); - } - - if (BlocksDescriptor is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, BlocksDescriptor, options); - } - else if (BlocksDescriptorAction is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocksDescriptor(BlocksDescriptorAction), options); - } - else if (BlocksValue is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, BlocksValue, options); - } - - if (CheckOnStartupValue is not null) - { - writer.WritePropertyName("check_on_startup"); - JsonSerializer.Serialize(writer, CheckOnStartupValue, options); - } - - if (!string.IsNullOrEmpty(CodecValue)) - { - writer.WritePropertyName("codec"); - writer.WriteStringValue(CodecValue); - } - - if (CreationDateValue.HasValue) - { - writer.WritePropertyName("creation_date"); - writer.WriteNumberValue(CreationDateValue.Value); - } - - if (CreationDateStringValue is not null) - { - writer.WritePropertyName("creation_date_string"); - JsonSerializer.Serialize(writer, CreationDateStringValue, options); - } - - if (!string.IsNullOrEmpty(DefaultPipelineValue)) - { - writer.WritePropertyName("default_pipeline"); - writer.WriteStringValue(DefaultPipelineValue); - } - - if (!string.IsNullOrEmpty(FinalPipelineValue)) - { - writer.WritePropertyName("final_pipeline"); - writer.WriteStringValue(FinalPipelineValue); - } - - if (FormatValue is not null) - { - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, FormatValue, options); - } - - if (GcDeletesValue is not null) - { - writer.WritePropertyName("gc_deletes"); - JsonSerializer.Serialize(writer, GcDeletesValue, options); - } - - if (HiddenValue is not null) - { - writer.WritePropertyName("hidden"); - JsonSerializer.Serialize(writer, HiddenValue, options); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndexDescriptor is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexDescriptor, options); - } - else if (IndexDescriptorAction is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(IndexDescriptorAction), options); - } - else if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndexingPressureDescriptor is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, IndexingPressureDescriptor, options); - } - else if (IndexingPressureDescriptorAction is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureDescriptor(IndexingPressureDescriptorAction), options); - } - else if (IndexingPressureValue is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, IndexingPressureValue, options); - } - - if (IndexingSlowlogDescriptor is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, IndexingSlowlogDescriptor, options); - } - else if (IndexingSlowlogDescriptorAction is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettingsDescriptor(IndexingSlowlogDescriptorAction), options); - } - else if (IndexingSlowlogValue is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, IndexingSlowlogValue, options); - } - - if (LifecycleDescriptor is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleDescriptor, options); - } - else if (LifecycleDescriptorAction is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleDescriptor(LifecycleDescriptorAction), options); - } - else if (LifecycleValue is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleValue, options); - } - - if (LoadFixedBitsetFiltersEagerlyValue.HasValue) - { - writer.WritePropertyName("load_fixed_bitset_filters_eagerly"); - writer.WriteBooleanValue(LoadFixedBitsetFiltersEagerlyValue.Value); - } - - if (MappingDescriptor is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, MappingDescriptor, options); - } - else if (MappingDescriptorAction is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDescriptor(MappingDescriptorAction), options); - } - else if (MappingValue is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, MappingValue, options); - } - - if (MaxDocvalueFieldsSearchValue.HasValue) - { - writer.WritePropertyName("max_docvalue_fields_search"); - writer.WriteNumberValue(MaxDocvalueFieldsSearchValue.Value); - } - - if (MaxInnerResultWindowValue.HasValue) - { - writer.WritePropertyName("max_inner_result_window"); - writer.WriteNumberValue(MaxInnerResultWindowValue.Value); - } - - if (MaxNgramDiffValue.HasValue) - { - writer.WritePropertyName("max_ngram_diff"); - writer.WriteNumberValue(MaxNgramDiffValue.Value); - } - - if (MaxRefreshListenersValue.HasValue) - { - writer.WritePropertyName("max_refresh_listeners"); - writer.WriteNumberValue(MaxRefreshListenersValue.Value); - } - - if (MaxRegexLengthValue.HasValue) - { - writer.WritePropertyName("max_regex_length"); - writer.WriteNumberValue(MaxRegexLengthValue.Value); - } - - if (MaxRescoreWindowValue.HasValue) - { - writer.WritePropertyName("max_rescore_window"); - writer.WriteNumberValue(MaxRescoreWindowValue.Value); - } - - if (MaxResultWindowValue.HasValue) - { - writer.WritePropertyName("max_result_window"); - writer.WriteNumberValue(MaxResultWindowValue.Value); - } - - if (MaxScriptFieldsValue.HasValue) - { - writer.WritePropertyName("max_script_fields"); - writer.WriteNumberValue(MaxScriptFieldsValue.Value); - } - - if (MaxShingleDiffValue.HasValue) - { - writer.WritePropertyName("max_shingle_diff"); - writer.WriteNumberValue(MaxShingleDiffValue.Value); - } - - if (MaxSlicesPerScrollValue.HasValue) - { - writer.WritePropertyName("max_slices_per_scroll"); - writer.WriteNumberValue(MaxSlicesPerScrollValue.Value); - } - - if (MaxTermsCountValue.HasValue) - { - writer.WritePropertyName("max_terms_count"); - writer.WriteNumberValue(MaxTermsCountValue.Value); - } - - if (MergeDescriptor is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, MergeDescriptor, options); - } - else if (MergeDescriptorAction is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeDescriptor(MergeDescriptorAction), options); - } - else if (MergeValue is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, MergeValue, options); - } - - if (!string.IsNullOrEmpty(ModeValue)) - { - writer.WritePropertyName("mode"); - writer.WriteStringValue(ModeValue); - } - - if (NumberOfReplicasValue is not null) - { - writer.WritePropertyName("number_of_replicas"); - JsonSerializer.Serialize(writer, NumberOfReplicasValue, options); - } - - if (NumberOfRoutingShardsValue.HasValue) - { - writer.WritePropertyName("number_of_routing_shards"); - writer.WriteNumberValue(NumberOfRoutingShardsValue.Value); - } - - if (NumberOfShardsValue is not null) - { - writer.WritePropertyName("number_of_shards"); - JsonSerializer.Serialize(writer, NumberOfShardsValue, options); - } - - if (PriorityValue is not null) - { - writer.WritePropertyName("priority"); - JsonSerializer.Serialize(writer, PriorityValue, options); - } - - if (ProvidedNameValue is not null) - { - writer.WritePropertyName("provided_name"); - JsonSerializer.Serialize(writer, ProvidedNameValue, options); - } - - if (QueriesDescriptor is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, QueriesDescriptor, options); - } - else if (QueriesDescriptorAction is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.QueriesDescriptor(QueriesDescriptorAction), options); - } - else if (QueriesValue is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, QueriesValue, options); - } - - if (QueryStringDescriptor is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, QueryStringDescriptor, options); - } - else if (QueryStringDescriptorAction is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryStringDescriptor(QueryStringDescriptorAction), options); - } - else if (QueryStringValue is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, QueryStringValue, options); - } - - if (RefreshIntervalValue is not null) - { - writer.WritePropertyName("refresh_interval"); - JsonSerializer.Serialize(writer, RefreshIntervalValue, options); - } - - if (RoutingDescriptor is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingDescriptor, options); - } - else if (RoutingDescriptorAction is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingDescriptor(RoutingDescriptorAction), options); - } - else if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (RoutingPartitionSizeValue.HasValue) - { - writer.WritePropertyName("routing_partition_size"); - writer.WriteNumberValue(RoutingPartitionSizeValue.Value); - } - - if (RoutingPathValue is not null) - { - writer.WritePropertyName("routing_path"); - SingleOrManySerializationHelper.Serialize(RoutingPathValue, writer, options); - } - - if (SearchDescriptor is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, SearchDescriptor, options); - } - else if (SearchDescriptorAction is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearchDescriptor(SearchDescriptorAction), options); - } - else if (SearchValue is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, SearchValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SimilarityValue is not null) - { - writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, SimilarityValue, options); - } - - if (SoftDeletesDescriptor is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, SoftDeletesDescriptor, options); - } - else if (SoftDeletesDescriptorAction is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletesDescriptor(SoftDeletesDescriptorAction), options); - } - else if (SoftDeletesValue is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, SoftDeletesValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSortDescriptor(SortDescriptorAction), options); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StoreDescriptor is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, StoreDescriptor, options); - } - else if (StoreDescriptorAction is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageDescriptor(StoreDescriptorAction), options); - } - else if (StoreValue is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, StoreValue, options); - } - - if (TimeSeriesDescriptor is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, TimeSeriesDescriptor, options); - } - else if (TimeSeriesDescriptorAction is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeriesDescriptor(TimeSeriesDescriptorAction), options); - } - else if (TimeSeriesValue is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, TimeSeriesValue, options); - } - - if (TopMetricsMaxSizeValue.HasValue) - { - writer.WritePropertyName("top_metrics_max_size"); - writer.WriteNumberValue(TopMetricsMaxSizeValue.Value); - } - - if (TranslogDescriptor is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, TranslogDescriptor, options); - } - else if (TranslogDescriptorAction is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDescriptor(TranslogDescriptorAction), options); - } - else if (TranslogValue is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, TranslogValue, options); - } - - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - if (VerifiedBeforeCloseValue is not null) - { - writer.WritePropertyName("verified_before_close"); - JsonSerializer.Serialize(writer, VerifiedBeforeCloseValue, options); - } - - if (VersionDescriptor is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionDescriptor, options); - } - else if (VersionDescriptorAction is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioningDescriptor(VersionDescriptorAction), options); - } - else if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - if (OtherSettingsValue is not null) - { - foreach (var additionalProperty in OtherSettingsValue) - { - writer.WritePropertyName(additionalProperty.Key); - JsonSerializer.Serialize(writer, additionalProperty.Value, options); - } - } - - writer.WriteEndObject(); - } -} - -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class IndexSettingsDescriptor : SerializableDescriptor -{ - internal IndexSettingsDescriptor(Action configure) => configure.Invoke(this); - - public IndexSettingsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysis? AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyze? AnalyzeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyzeDescriptor AnalyzeDescriptor { get; set; } - private Action AnalyzeDescriptorAction { get; set; } - private string? AutoExpandReplicasValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocks? BlocksValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocksDescriptor BlocksDescriptor { get; set; } - private Action BlocksDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexCheckOnStartup? CheckOnStartupValue { get; set; } - private string? CodecValue { get; set; } - private long? CreationDateValue { get; set; } - private DateTimeOffset? CreationDateStringValue { get; set; } - private string? DefaultPipelineValue { get; set; } - private string? FinalPipelineValue { get; set; } - private object? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? GcDeletesValue { get; set; } - private object? HiddenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlight? HighlightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlightDescriptor HighlightDescriptor { get; set; } - private Action HighlightDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor IndexDescriptor { get; set; } - private Action IndexDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressure? IndexingPressureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureDescriptor IndexingPressureDescriptor { get; set; } - private Action IndexingPressureDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettings? IndexingSlowlogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettingsDescriptor IndexingSlowlogDescriptor { get; set; } - private Action IndexingSlowlogDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycle? LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - private bool? LoadFixedBitsetFiltersEagerlyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettings? MappingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDescriptor MappingDescriptor { get; set; } - private Action MappingDescriptorAction { get; set; } - private int? MaxDocvalueFieldsSearchValue { get; set; } - private int? MaxInnerResultWindowValue { get; set; } - private int? MaxNgramDiffValue { get; set; } - private int? MaxRefreshListenersValue { get; set; } - private int? MaxRegexLengthValue { get; set; } - private int? MaxRescoreWindowValue { get; set; } - private int? MaxResultWindowValue { get; set; } - private int? MaxScriptFieldsValue { get; set; } - private int? MaxShingleDiffValue { get; set; } - private int? MaxSlicesPerScrollValue { get; set; } - private int? MaxTermsCountValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Merge? MergeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeDescriptor MergeDescriptor { get; set; } - private Action MergeDescriptorAction { get; set; } - private string? ModeValue { get; set; } - private object? NumberOfReplicasValue { get; set; } - private int? NumberOfRoutingShardsValue { get; set; } - private object? NumberOfShardsValue { get; set; } - private IDictionary OtherSettingsValue { get; set; } - private object? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? ProvidedNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Queries? QueriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.QueriesDescriptor QueriesDescriptor { get; set; } - private Action QueriesDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryString? QueryStringValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryStringDescriptor QueryStringDescriptor { get; set; } - private Action QueryStringDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? RefreshIntervalValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRouting? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingDescriptor RoutingDescriptor { get; set; } - private Action RoutingDescriptorAction { get; set; } - private int? RoutingPartitionSizeValue { get; set; } - private ICollection? RoutingPathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearch? SearchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearchDescriptor SearchDescriptor { get; set; } - private Action SearchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarities? SimilarityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletes? SoftDeletesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletesDescriptor SoftDeletesDescriptor { get; set; } - private Action SoftDeletesDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSort? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSortDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Storage? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageDescriptor StoreDescriptor { get; set; } - private Action StoreDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeries? TimeSeriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeriesDescriptor TimeSeriesDescriptor { get; set; } - private Action TimeSeriesDescriptorAction { get; set; } - private int? TopMetricsMaxSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Translog? TranslogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDescriptor TranslogDescriptor { get; set; } - private Action TranslogDescriptorAction { get; set; } - private string? UuidValue { get; set; } - private object? VerifiedBeforeCloseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioning? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioningDescriptor VersionDescriptor { get; set; } - private Action VersionDescriptorAction { get; set; } - - public IndexSettingsDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysis? analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public IndexSettingsDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - /// - /// - /// Settings to define analyzers, tokenizers, token filters and character filters. - /// - /// - public IndexSettingsDescriptor Analyze(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyze? analyze) - { - AnalyzeDescriptor = null; - AnalyzeDescriptorAction = null; - AnalyzeValue = analyze; - return Self; - } - - public IndexSettingsDescriptor Analyze(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyzeDescriptor descriptor) - { - AnalyzeValue = null; - AnalyzeDescriptorAction = null; - AnalyzeDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Analyze(Action configure) - { - AnalyzeValue = null; - AnalyzeDescriptor = null; - AnalyzeDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor AutoExpandReplicas(string? autoExpandReplicas) - { - AutoExpandReplicasValue = autoExpandReplicas; - return Self; - } - - public IndexSettingsDescriptor Blocks(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocks? blocks) - { - BlocksDescriptor = null; - BlocksDescriptorAction = null; - BlocksValue = blocks; - return Self; - } - - public IndexSettingsDescriptor Blocks(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocksDescriptor descriptor) - { - BlocksValue = null; - BlocksDescriptorAction = null; - BlocksDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Blocks(Action configure) - { - BlocksValue = null; - BlocksDescriptor = null; - BlocksDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor CheckOnStartup(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexCheckOnStartup? checkOnStartup) - { - CheckOnStartupValue = checkOnStartup; - return Self; - } - - public IndexSettingsDescriptor Codec(string? codec) - { - CodecValue = codec; - return Self; - } - - public IndexSettingsDescriptor CreationDate(long? creationDate) - { - CreationDateValue = creationDate; - return Self; - } - - public IndexSettingsDescriptor CreationDateString(DateTimeOffset? creationDateString) - { - CreationDateStringValue = creationDateString; - return Self; - } - - public IndexSettingsDescriptor DefaultPipeline(string? defaultPipeline) - { - DefaultPipelineValue = defaultPipeline; - return Self; - } - - public IndexSettingsDescriptor FinalPipeline(string? finalPipeline) - { - FinalPipelineValue = finalPipeline; - return Self; - } - - public IndexSettingsDescriptor Format(object? format) - { - FormatValue = format; - return Self; - } - - public IndexSettingsDescriptor GcDeletes(Elastic.Clients.Elasticsearch.Serverless.Duration? gcDeletes) - { - GcDeletesValue = gcDeletes; - return Self; - } - - public IndexSettingsDescriptor Hidden(object? hidden) - { - HiddenValue = hidden; - return Self; - } - - public IndexSettingsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlight? highlight) - { - HighlightDescriptor = null; - HighlightDescriptorAction = null; - HighlightValue = highlight; - return Self; - } - - public IndexSettingsDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlightDescriptor descriptor) - { - HighlightValue = null; - HighlightDescriptorAction = null; - HighlightDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Highlight(Action configure) - { - HighlightValue = null; - HighlightDescriptor = null; - HighlightDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? index) - { - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexValue = index; - return Self; - } - - public IndexSettingsDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - IndexValue = null; - IndexDescriptorAction = null; - IndexDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Index(Action configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configure indexing back pressure limits. - /// - /// - public IndexSettingsDescriptor IndexingPressure(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressure? indexingPressure) - { - IndexingPressureDescriptor = null; - IndexingPressureDescriptorAction = null; - IndexingPressureValue = indexingPressure; - return Self; - } - - public IndexSettingsDescriptor IndexingPressure(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureDescriptor descriptor) - { - IndexingPressureValue = null; - IndexingPressureDescriptorAction = null; - IndexingPressureDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor IndexingPressure(Action configure) - { - IndexingPressureValue = null; - IndexingPressureDescriptor = null; - IndexingPressureDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor IndexingSlowlog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettings? indexingSlowlog) - { - IndexingSlowlogDescriptor = null; - IndexingSlowlogDescriptorAction = null; - IndexingSlowlogValue = indexingSlowlog; - return Self; - } - - public IndexSettingsDescriptor IndexingSlowlog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettingsDescriptor descriptor) - { - IndexingSlowlogValue = null; - IndexingSlowlogDescriptorAction = null; - IndexingSlowlogDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor IndexingSlowlog(Action configure) - { - IndexingSlowlogValue = null; - IndexingSlowlogDescriptor = null; - IndexingSlowlogDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycle? lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public IndexSettingsDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor LoadFixedBitsetFiltersEagerly(bool? loadFixedBitsetFiltersEagerly = true) - { - LoadFixedBitsetFiltersEagerlyValue = loadFixedBitsetFiltersEagerly; - return Self; - } - - /// - /// - /// Enable or disable dynamic mapping for an index. - /// - /// - public IndexSettingsDescriptor Mapping(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettings? mapping) - { - MappingDescriptor = null; - MappingDescriptorAction = null; - MappingValue = mapping; - return Self; - } - - public IndexSettingsDescriptor Mapping(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDescriptor descriptor) - { - MappingValue = null; - MappingDescriptorAction = null; - MappingDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Mapping(Action configure) - { - MappingValue = null; - MappingDescriptor = null; - MappingDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor MaxDocvalueFieldsSearch(int? maxDocvalueFieldsSearch) - { - MaxDocvalueFieldsSearchValue = maxDocvalueFieldsSearch; - return Self; - } - - public IndexSettingsDescriptor MaxInnerResultWindow(int? maxInnerResultWindow) - { - MaxInnerResultWindowValue = maxInnerResultWindow; - return Self; - } - - public IndexSettingsDescriptor MaxNgramDiff(int? maxNgramDiff) - { - MaxNgramDiffValue = maxNgramDiff; - return Self; - } - - public IndexSettingsDescriptor MaxRefreshListeners(int? maxRefreshListeners) - { - MaxRefreshListenersValue = maxRefreshListeners; - return Self; - } - - public IndexSettingsDescriptor MaxRegexLength(int? maxRegexLength) - { - MaxRegexLengthValue = maxRegexLength; - return Self; - } - - public IndexSettingsDescriptor MaxRescoreWindow(int? maxRescoreWindow) - { - MaxRescoreWindowValue = maxRescoreWindow; - return Self; - } - - public IndexSettingsDescriptor MaxResultWindow(int? maxResultWindow) - { - MaxResultWindowValue = maxResultWindow; - return Self; - } - - public IndexSettingsDescriptor MaxScriptFields(int? maxScriptFields) - { - MaxScriptFieldsValue = maxScriptFields; - return Self; - } - - public IndexSettingsDescriptor MaxShingleDiff(int? maxShingleDiff) - { - MaxShingleDiffValue = maxShingleDiff; - return Self; - } - - public IndexSettingsDescriptor MaxSlicesPerScroll(int? maxSlicesPerScroll) - { - MaxSlicesPerScrollValue = maxSlicesPerScroll; - return Self; - } - - public IndexSettingsDescriptor MaxTermsCount(int? maxTermsCount) - { - MaxTermsCountValue = maxTermsCount; - return Self; - } - - public IndexSettingsDescriptor Merge(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Merge? merge) - { - MergeDescriptor = null; - MergeDescriptorAction = null; - MergeValue = merge; - return Self; - } - - public IndexSettingsDescriptor Merge(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeDescriptor descriptor) - { - MergeValue = null; - MergeDescriptorAction = null; - MergeDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Merge(Action configure) - { - MergeValue = null; - MergeDescriptor = null; - MergeDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Mode(string? mode) - { - ModeValue = mode; - return Self; - } - - public IndexSettingsDescriptor NumberOfReplicas(object? numberOfReplicas) - { - NumberOfReplicasValue = numberOfReplicas; - return Self; - } - - public IndexSettingsDescriptor NumberOfRoutingShards(int? numberOfRoutingShards) - { - NumberOfRoutingShardsValue = numberOfRoutingShards; - return Self; - } - - public IndexSettingsDescriptor NumberOfShards(object? numberOfShards) - { - NumberOfShardsValue = numberOfShards; - return Self; - } - - /// - /// - /// Additional settings not covered in this type. Unless these settings are defined by a plugin, please open an issue on the Elasticsearch API specification so that they can be added in a future release - /// - /// - public IndexSettingsDescriptor OtherSettings(Func, FluentDictionary> selector) - { - OtherSettingsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IndexSettingsDescriptor Priority(object? priority) - { - PriorityValue = priority; - return Self; - } - - public IndexSettingsDescriptor ProvidedName(Elastic.Clients.Elasticsearch.Serverless.Name? providedName) - { - ProvidedNameValue = providedName; - return Self; - } - - public IndexSettingsDescriptor Queries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Queries? queries) - { - QueriesDescriptor = null; - QueriesDescriptorAction = null; - QueriesValue = queries; - return Self; - } - - public IndexSettingsDescriptor Queries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.QueriesDescriptor descriptor) - { - QueriesValue = null; - QueriesDescriptorAction = null; - QueriesDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Queries(Action configure) - { - QueriesValue = null; - QueriesDescriptor = null; - QueriesDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor QueryString(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryString? queryString) - { - QueryStringDescriptor = null; - QueryStringDescriptorAction = null; - QueryStringValue = queryString; - return Self; - } - - public IndexSettingsDescriptor QueryString(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryStringDescriptor descriptor) - { - QueryStringValue = null; - QueryStringDescriptorAction = null; - QueryStringDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor QueryString(Action configure) - { - QueryStringValue = null; - QueryStringDescriptor = null; - QueryStringDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor RefreshInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? refreshInterval) - { - RefreshIntervalValue = refreshInterval; - return Self; - } - - public IndexSettingsDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRouting? routing) - { - RoutingDescriptor = null; - RoutingDescriptorAction = null; - RoutingValue = routing; - return Self; - } - - public IndexSettingsDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingDescriptor descriptor) - { - RoutingValue = null; - RoutingDescriptorAction = null; - RoutingDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Routing(Action configure) - { - RoutingValue = null; - RoutingDescriptor = null; - RoutingDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor RoutingPartitionSize(int? routingPartitionSize) - { - RoutingPartitionSizeValue = routingPartitionSize; - return Self; - } - - public IndexSettingsDescriptor RoutingPath(ICollection? routingPath) - { - RoutingPathValue = routingPath; - return Self; - } - - public IndexSettingsDescriptor Search(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearch? search) - { - SearchDescriptor = null; - SearchDescriptorAction = null; - SearchValue = search; - return Self; - } - - public IndexSettingsDescriptor Search(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearchDescriptor descriptor) - { - SearchValue = null; - SearchDescriptorAction = null; - SearchDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Search(Action configure) - { - SearchValue = null; - SearchDescriptor = null; - SearchDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexSettingsDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configure custom similarity settings to customize how search results are scored. - /// - /// - public IndexSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarities? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public IndexSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilaritiesDescriptor descriptor) - { - SimilarityValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsDescriptor Similarity(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilaritiesDescriptor(); - configure?.Invoke(descriptor); - SimilarityValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsDescriptor SoftDeletes(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletes? softDeletes) - { - SoftDeletesDescriptor = null; - SoftDeletesDescriptorAction = null; - SoftDeletesValue = softDeletes; - return Self; - } - - public IndexSettingsDescriptor SoftDeletes(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletesDescriptor descriptor) - { - SoftDeletesValue = null; - SoftDeletesDescriptorAction = null; - SoftDeletesDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor SoftDeletes(Action configure) - { - SoftDeletesValue = null; - SoftDeletesDescriptor = null; - SoftDeletesDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSort? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortValue = sort; - return Self; - } - - public IndexSettingsDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSortDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = configure; - return Self; - } - - /// - /// - /// The store module allows you to control how index data is stored and accessed on disk. - /// - /// - public IndexSettingsDescriptor Store(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Storage? store) - { - StoreDescriptor = null; - StoreDescriptorAction = null; - StoreValue = store; - return Self; - } - - public IndexSettingsDescriptor Store(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageDescriptor descriptor) - { - StoreValue = null; - StoreDescriptorAction = null; - StoreDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Store(Action configure) - { - StoreValue = null; - StoreDescriptor = null; - StoreDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor TimeSeries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeries? timeSeries) - { - TimeSeriesDescriptor = null; - TimeSeriesDescriptorAction = null; - TimeSeriesValue = timeSeries; - return Self; - } - - public IndexSettingsDescriptor TimeSeries(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeriesDescriptor descriptor) - { - TimeSeriesValue = null; - TimeSeriesDescriptorAction = null; - TimeSeriesDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor TimeSeries(Action configure) - { - TimeSeriesValue = null; - TimeSeriesDescriptor = null; - TimeSeriesDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor TopMetricsMaxSize(int? topMetricsMaxSize) - { - TopMetricsMaxSizeValue = topMetricsMaxSize; - return Self; - } - - public IndexSettingsDescriptor Translog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Translog? translog) - { - TranslogDescriptor = null; - TranslogDescriptorAction = null; - TranslogValue = translog; - return Self; - } - - public IndexSettingsDescriptor Translog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDescriptor descriptor) - { - TranslogValue = null; - TranslogDescriptorAction = null; - TranslogDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Translog(Action configure) - { - TranslogValue = null; - TranslogDescriptor = null; - TranslogDescriptorAction = configure; - return Self; - } - - public IndexSettingsDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - public IndexSettingsDescriptor VerifiedBeforeClose(object? verifiedBeforeClose) - { - VerifiedBeforeCloseValue = verifiedBeforeClose; - return Self; - } - - public IndexSettingsDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioning? version) - { - VersionDescriptor = null; - VersionDescriptorAction = null; - VersionValue = version; - return Self; - } - - public IndexSettingsDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioningDescriptor descriptor) - { - VersionValue = null; - VersionDescriptorAction = null; - VersionDescriptor = descriptor; - return Self; - } - - public IndexSettingsDescriptor Version(Action configure) - { - VersionValue = null; - VersionDescriptor = null; - VersionDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else if (AnalysisValue is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzeDescriptor is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, AnalyzeDescriptor, options); - } - else if (AnalyzeDescriptorAction is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsAnalyzeDescriptor(AnalyzeDescriptorAction), options); - } - else if (AnalyzeValue is not null) - { - writer.WritePropertyName("analyze"); - JsonSerializer.Serialize(writer, AnalyzeValue, options); - } - - if (!string.IsNullOrEmpty(AutoExpandReplicasValue)) - { - writer.WritePropertyName("auto_expand_replicas"); - writer.WriteStringValue(AutoExpandReplicasValue); - } - - if (BlocksDescriptor is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, BlocksDescriptor, options); - } - else if (BlocksDescriptorAction is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingBlocksDescriptor(BlocksDescriptorAction), options); - } - else if (BlocksValue is not null) - { - writer.WritePropertyName("blocks"); - JsonSerializer.Serialize(writer, BlocksValue, options); - } - - if (CheckOnStartupValue is not null) - { - writer.WritePropertyName("check_on_startup"); - JsonSerializer.Serialize(writer, CheckOnStartupValue, options); - } - - if (!string.IsNullOrEmpty(CodecValue)) - { - writer.WritePropertyName("codec"); - writer.WriteStringValue(CodecValue); - } - - if (CreationDateValue.HasValue) - { - writer.WritePropertyName("creation_date"); - writer.WriteNumberValue(CreationDateValue.Value); - } - - if (CreationDateStringValue is not null) - { - writer.WritePropertyName("creation_date_string"); - JsonSerializer.Serialize(writer, CreationDateStringValue, options); - } - - if (!string.IsNullOrEmpty(DefaultPipelineValue)) - { - writer.WritePropertyName("default_pipeline"); - writer.WriteStringValue(DefaultPipelineValue); - } - - if (!string.IsNullOrEmpty(FinalPipelineValue)) - { - writer.WritePropertyName("final_pipeline"); - writer.WriteStringValue(FinalPipelineValue); - } - - if (FormatValue is not null) - { - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, FormatValue, options); - } - - if (GcDeletesValue is not null) - { - writer.WritePropertyName("gc_deletes"); - JsonSerializer.Serialize(writer, GcDeletesValue, options); - } - - if (HiddenValue is not null) - { - writer.WritePropertyName("hidden"); - JsonSerializer.Serialize(writer, HiddenValue, options); - } - - if (HighlightDescriptor is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightDescriptor, options); - } - else if (HighlightDescriptorAction is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsHighlightDescriptor(HighlightDescriptorAction), options); - } - else if (HighlightValue is not null) - { - writer.WritePropertyName("highlight"); - JsonSerializer.Serialize(writer, HighlightValue, options); - } - - if (IndexDescriptor is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexDescriptor, options); - } - else if (IndexDescriptorAction is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(IndexDescriptorAction), options); - } - else if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndexingPressureDescriptor is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, IndexingPressureDescriptor, options); - } - else if (IndexingPressureDescriptorAction is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureDescriptor(IndexingPressureDescriptorAction), options); - } - else if (IndexingPressureValue is not null) - { - writer.WritePropertyName("indexing_pressure"); - JsonSerializer.Serialize(writer, IndexingPressureValue, options); - } - - if (IndexingSlowlogDescriptor is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, IndexingSlowlogDescriptor, options); - } - else if (IndexingSlowlogDescriptorAction is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogSettingsDescriptor(IndexingSlowlogDescriptorAction), options); - } - else if (IndexingSlowlogValue is not null) - { - writer.WritePropertyName("indexing.slowlog"); - JsonSerializer.Serialize(writer, IndexingSlowlogValue, options); - } - - if (LifecycleDescriptor is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleDescriptor, options); - } - else if (LifecycleDescriptorAction is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleDescriptor(LifecycleDescriptorAction), options); - } - else if (LifecycleValue is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleValue, options); - } - - if (LoadFixedBitsetFiltersEagerlyValue.HasValue) - { - writer.WritePropertyName("load_fixed_bitset_filters_eagerly"); - writer.WriteBooleanValue(LoadFixedBitsetFiltersEagerlyValue.Value); - } - - if (MappingDescriptor is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, MappingDescriptor, options); - } - else if (MappingDescriptorAction is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDescriptor(MappingDescriptorAction), options); - } - else if (MappingValue is not null) - { - writer.WritePropertyName("mapping"); - JsonSerializer.Serialize(writer, MappingValue, options); - } - - if (MaxDocvalueFieldsSearchValue.HasValue) - { - writer.WritePropertyName("max_docvalue_fields_search"); - writer.WriteNumberValue(MaxDocvalueFieldsSearchValue.Value); - } - - if (MaxInnerResultWindowValue.HasValue) - { - writer.WritePropertyName("max_inner_result_window"); - writer.WriteNumberValue(MaxInnerResultWindowValue.Value); - } - - if (MaxNgramDiffValue.HasValue) - { - writer.WritePropertyName("max_ngram_diff"); - writer.WriteNumberValue(MaxNgramDiffValue.Value); - } - - if (MaxRefreshListenersValue.HasValue) - { - writer.WritePropertyName("max_refresh_listeners"); - writer.WriteNumberValue(MaxRefreshListenersValue.Value); - } - - if (MaxRegexLengthValue.HasValue) - { - writer.WritePropertyName("max_regex_length"); - writer.WriteNumberValue(MaxRegexLengthValue.Value); - } - - if (MaxRescoreWindowValue.HasValue) - { - writer.WritePropertyName("max_rescore_window"); - writer.WriteNumberValue(MaxRescoreWindowValue.Value); - } - - if (MaxResultWindowValue.HasValue) - { - writer.WritePropertyName("max_result_window"); - writer.WriteNumberValue(MaxResultWindowValue.Value); - } - - if (MaxScriptFieldsValue.HasValue) - { - writer.WritePropertyName("max_script_fields"); - writer.WriteNumberValue(MaxScriptFieldsValue.Value); - } - - if (MaxShingleDiffValue.HasValue) - { - writer.WritePropertyName("max_shingle_diff"); - writer.WriteNumberValue(MaxShingleDiffValue.Value); - } - - if (MaxSlicesPerScrollValue.HasValue) - { - writer.WritePropertyName("max_slices_per_scroll"); - writer.WriteNumberValue(MaxSlicesPerScrollValue.Value); - } - - if (MaxTermsCountValue.HasValue) - { - writer.WritePropertyName("max_terms_count"); - writer.WriteNumberValue(MaxTermsCountValue.Value); - } - - if (MergeDescriptor is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, MergeDescriptor, options); - } - else if (MergeDescriptorAction is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeDescriptor(MergeDescriptorAction), options); - } - else if (MergeValue is not null) - { - writer.WritePropertyName("merge"); - JsonSerializer.Serialize(writer, MergeValue, options); - } - - if (!string.IsNullOrEmpty(ModeValue)) - { - writer.WritePropertyName("mode"); - writer.WriteStringValue(ModeValue); - } - - if (NumberOfReplicasValue is not null) - { - writer.WritePropertyName("number_of_replicas"); - JsonSerializer.Serialize(writer, NumberOfReplicasValue, options); - } - - if (NumberOfRoutingShardsValue.HasValue) - { - writer.WritePropertyName("number_of_routing_shards"); - writer.WriteNumberValue(NumberOfRoutingShardsValue.Value); - } - - if (NumberOfShardsValue is not null) - { - writer.WritePropertyName("number_of_shards"); - JsonSerializer.Serialize(writer, NumberOfShardsValue, options); - } - - if (PriorityValue is not null) - { - writer.WritePropertyName("priority"); - JsonSerializer.Serialize(writer, PriorityValue, options); - } - - if (ProvidedNameValue is not null) - { - writer.WritePropertyName("provided_name"); - JsonSerializer.Serialize(writer, ProvidedNameValue, options); - } - - if (QueriesDescriptor is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, QueriesDescriptor, options); - } - else if (QueriesDescriptorAction is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.QueriesDescriptor(QueriesDescriptorAction), options); - } - else if (QueriesValue is not null) - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, QueriesValue, options); - } - - if (QueryStringDescriptor is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, QueryStringDescriptor, options); - } - else if (QueryStringDescriptorAction is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsQueryStringDescriptor(QueryStringDescriptorAction), options); - } - else if (QueryStringValue is not null) - { - writer.WritePropertyName("query_string"); - JsonSerializer.Serialize(writer, QueryStringValue, options); - } - - if (RefreshIntervalValue is not null) - { - writer.WritePropertyName("refresh_interval"); - JsonSerializer.Serialize(writer, RefreshIntervalValue, options); - } - - if (RoutingDescriptor is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingDescriptor, options); - } - else if (RoutingDescriptorAction is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRoutingDescriptor(RoutingDescriptorAction), options); - } - else if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (RoutingPartitionSizeValue.HasValue) - { - writer.WritePropertyName("routing_partition_size"); - writer.WriteNumberValue(RoutingPartitionSizeValue.Value); - } - - if (RoutingPathValue is not null) - { - writer.WritePropertyName("routing_path"); - SingleOrManySerializationHelper.Serialize(RoutingPathValue, writer, options); - } - - if (SearchDescriptor is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, SearchDescriptor, options); - } - else if (SearchDescriptorAction is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSearchDescriptor(SearchDescriptorAction), options); - } - else if (SearchValue is not null) - { - writer.WritePropertyName("search"); - JsonSerializer.Serialize(writer, SearchValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - if (SimilarityValue is not null) - { - writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, SimilarityValue, options); - } - - if (SoftDeletesDescriptor is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, SoftDeletesDescriptor, options); - } - else if (SoftDeletesDescriptorAction is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SoftDeletesDescriptor(SoftDeletesDescriptorAction), options); - } - else if (SoftDeletesValue is not null) - { - writer.WritePropertyName("soft_deletes"); - JsonSerializer.Serialize(writer, SoftDeletesValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSegmentSortDescriptor(SortDescriptorAction), options); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - } - - if (StoreDescriptor is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, StoreDescriptor, options); - } - else if (StoreDescriptorAction is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageDescriptor(StoreDescriptorAction), options); - } - else if (StoreValue is not null) - { - writer.WritePropertyName("store"); - JsonSerializer.Serialize(writer, StoreValue, options); - } - - if (TimeSeriesDescriptor is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, TimeSeriesDescriptor, options); - } - else if (TimeSeriesDescriptorAction is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsTimeSeriesDescriptor(TimeSeriesDescriptorAction), options); - } - else if (TimeSeriesValue is not null) - { - writer.WritePropertyName("time_series"); - JsonSerializer.Serialize(writer, TimeSeriesValue, options); - } - - if (TopMetricsMaxSizeValue.HasValue) - { - writer.WritePropertyName("top_metrics_max_size"); - writer.WriteNumberValue(TopMetricsMaxSizeValue.Value); - } - - if (TranslogDescriptor is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, TranslogDescriptor, options); - } - else if (TranslogDescriptorAction is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDescriptor(TranslogDescriptorAction), options); - } - else if (TranslogValue is not null) - { - writer.WritePropertyName("translog"); - JsonSerializer.Serialize(writer, TranslogValue, options); - } - - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - if (VerifiedBeforeCloseValue is not null) - { - writer.WritePropertyName("verified_before_close"); - JsonSerializer.Serialize(writer, VerifiedBeforeCloseValue, options); - } - - if (VersionDescriptor is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionDescriptor, options); - } - else if (VersionDescriptorAction is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexVersioningDescriptor(VersionDescriptorAction), options); - } - else if (VersionValue is not null) - { - writer.WritePropertyName("version"); - JsonSerializer.Serialize(writer, VersionValue, options); - } - - if (OtherSettingsValue is not null) - { - foreach (var additionalProperty in OtherSettingsValue) - { - writer.WritePropertyName(additionalProperty.Key); - JsonSerializer.Serialize(writer, additionalProperty.Value, options); - } - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs deleted file mode 100644 index 569b10d9693..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsAnalysis.g.cs +++ /dev/null @@ -1,193 +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.IndexManagement; - -public sealed partial class IndexSettingsAnalysis -{ - [JsonInclude, JsonPropertyName("analyzer")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.Analyzers? Analyzers { get; set; } - [JsonInclude, JsonPropertyName("char_filter")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.CharFilters? CharFilters { get; set; } - [JsonInclude, JsonPropertyName("normalizer")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.Normalizers? Normalizers { get; set; } - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenFilters? TokenFilters { get; set; } - [JsonInclude, JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.Tokenizers? Tokenizers { get; set; } -} - -public sealed partial class IndexSettingsAnalysisDescriptor : SerializableDescriptor -{ - internal IndexSettingsAnalysisDescriptor(Action configure) => configure.Invoke(this); - - public IndexSettingsAnalysisDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.Analyzers? AnalyzersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.CharFilters? CharFiltersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.Normalizers? NormalizersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenFilters? TokenFiltersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.Tokenizers? TokenizersValue { get; set; } - - public IndexSettingsAnalysisDescriptor Analyzers(Elastic.Clients.Elasticsearch.Serverless.Analysis.Analyzers? analyzers) - { - AnalyzersValue = analyzers; - return Self; - } - - public IndexSettingsAnalysisDescriptor Analyzers(Elastic.Clients.Elasticsearch.Serverless.Analysis.AnalyzersDescriptor descriptor) - { - AnalyzersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor Analyzers(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Analysis.AnalyzersDescriptor(); - configure?.Invoke(descriptor); - AnalyzersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor CharFilters(Elastic.Clients.Elasticsearch.Serverless.Analysis.CharFilters? charFilters) - { - CharFiltersValue = charFilters; - return Self; - } - - public IndexSettingsAnalysisDescriptor CharFilters(Elastic.Clients.Elasticsearch.Serverless.Analysis.CharFiltersDescriptor descriptor) - { - CharFiltersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor CharFilters(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Analysis.CharFiltersDescriptor(); - configure?.Invoke(descriptor); - CharFiltersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor Normalizers(Elastic.Clients.Elasticsearch.Serverless.Analysis.Normalizers? normalizers) - { - NormalizersValue = normalizers; - return Self; - } - - public IndexSettingsAnalysisDescriptor Normalizers(Elastic.Clients.Elasticsearch.Serverless.Analysis.NormalizersDescriptor descriptor) - { - NormalizersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor Normalizers(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Analysis.NormalizersDescriptor(); - configure?.Invoke(descriptor); - NormalizersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor TokenFilters(Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenFilters? tokenFilters) - { - TokenFiltersValue = tokenFilters; - return Self; - } - - public IndexSettingsAnalysisDescriptor TokenFilters(Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenFiltersDescriptor descriptor) - { - TokenFiltersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor TokenFilters(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenFiltersDescriptor(); - configure?.Invoke(descriptor); - TokenFiltersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor Tokenizers(Elastic.Clients.Elasticsearch.Serverless.Analysis.Tokenizers? tokenizers) - { - TokenizersValue = tokenizers; - return Self; - } - - public IndexSettingsAnalysisDescriptor Tokenizers(Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenizersDescriptor descriptor) - { - TokenizersValue = descriptor.PromisedValue; - return Self; - } - - public IndexSettingsAnalysisDescriptor Tokenizers(Action configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Analysis.TokenizersDescriptor(); - configure?.Invoke(descriptor); - TokenizersValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalyzersValue is not null) - { - writer.WritePropertyName("analyzer"); - JsonSerializer.Serialize(writer, AnalyzersValue, options); - } - - if (CharFiltersValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFiltersValue, options); - } - - if (NormalizersValue is not null) - { - writer.WritePropertyName("normalizer"); - JsonSerializer.Serialize(writer, NormalizersValue, options); - } - - if (TokenFiltersValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, TokenFiltersValue, options); - } - - if (TokenizersValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizersValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs deleted file mode 100644 index 886a878bcb9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs +++ /dev/null @@ -1,238 +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.IndexManagement; - -public sealed partial class IndexSettingsLifecycle -{ - /// - /// - /// Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action. - /// You can explicitly set it to skip rollover. - /// - /// - [JsonInclude, JsonPropertyName("indexing_complete")] - public bool? IndexingComplete { get; set; } - - /// - /// - /// The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } - - /// - /// - /// If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting - /// if you create a new index that contains old data and want to use the original creation date to calculate the index - /// age. Specified as a Unix epoch value in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("origination_date")] - public long? OriginationDate { get; set; } - - /// - /// - /// Set to true to parse the origination date from the index name. This origination date is used to calculate the index age - /// for its phase transitions. The index name must match the pattern ^.*-{date_format}-\d+, where the date_format is - /// yyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format, - /// for example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails. - /// - /// - [JsonInclude, JsonPropertyName("parse_origination_date")] - public bool? ParseOriginationDate { get; set; } - - /// - /// - /// The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. - /// When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more - /// information about rolling indices, see Rollover. - /// - /// - [JsonInclude, JsonPropertyName("rollover_alias")] - public string? RolloverAlias { get; set; } - [JsonInclude, JsonPropertyName("step")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleStep? Step { get; set; } -} - -public sealed partial class IndexSettingsLifecycleDescriptor : SerializableDescriptor -{ - internal IndexSettingsLifecycleDescriptor(Action configure) => configure.Invoke(this); - - public IndexSettingsLifecycleDescriptor() : base() - { - } - - private bool? IndexingCompleteValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - private long? OriginationDateValue { get; set; } - private bool? ParseOriginationDateValue { get; set; } - private string? RolloverAliasValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleStep? StepValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleStepDescriptor StepDescriptor { get; set; } - private Action StepDescriptorAction { get; set; } - - /// - /// - /// Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action. - /// You can explicitly set it to skip rollover. - /// - /// - public IndexSettingsLifecycleDescriptor IndexingComplete(bool? indexingComplete = true) - { - IndexingCompleteValue = indexingComplete; - return Self; - } - - /// - /// - /// The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates. - /// - /// - public IndexSettingsLifecycleDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting - /// if you create a new index that contains old data and want to use the original creation date to calculate the index - /// age. Specified as a Unix epoch value in milliseconds. - /// - /// - public IndexSettingsLifecycleDescriptor OriginationDate(long? originationDate) - { - OriginationDateValue = originationDate; - return Self; - } - - /// - /// - /// Set to true to parse the origination date from the index name. This origination date is used to calculate the index age - /// for its phase transitions. The index name must match the pattern ^.*-{date_format}-\d+, where the date_format is - /// yyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format, - /// for example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails. - /// - /// - public IndexSettingsLifecycleDescriptor ParseOriginationDate(bool? parseOriginationDate = true) - { - ParseOriginationDateValue = parseOriginationDate; - return Self; - } - - /// - /// - /// The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. - /// When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more - /// information about rolling indices, see Rollover. - /// - /// - public IndexSettingsLifecycleDescriptor RolloverAlias(string? rolloverAlias) - { - RolloverAliasValue = rolloverAlias; - return Self; - } - - public IndexSettingsLifecycleDescriptor Step(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleStep? step) - { - StepDescriptor = null; - StepDescriptorAction = null; - StepValue = step; - return Self; - } - - public IndexSettingsLifecycleDescriptor Step(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleStepDescriptor descriptor) - { - StepValue = null; - StepDescriptorAction = null; - StepDescriptor = descriptor; - return Self; - } - - public IndexSettingsLifecycleDescriptor Step(Action configure) - { - StepValue = null; - StepDescriptor = null; - StepDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexingCompleteValue.HasValue) - { - writer.WritePropertyName("indexing_complete"); - writer.WriteBooleanValue(IndexingCompleteValue.Value); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (OriginationDateValue.HasValue) - { - writer.WritePropertyName("origination_date"); - writer.WriteNumberValue(OriginationDateValue.Value); - } - - if (ParseOriginationDateValue.HasValue) - { - writer.WritePropertyName("parse_origination_date"); - writer.WriteBooleanValue(ParseOriginationDateValue.Value); - } - - if (!string.IsNullOrEmpty(RolloverAliasValue)) - { - writer.WritePropertyName("rollover_alias"); - writer.WriteStringValue(RolloverAliasValue); - } - - if (StepDescriptor is not null) - { - writer.WritePropertyName("step"); - JsonSerializer.Serialize(writer, StepDescriptor, options); - } - else if (StepDescriptorAction is not null) - { - writer.WritePropertyName("step"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsLifecycleStepDescriptor(StepDescriptorAction), options); - } - else if (StepValue is not null) - { - writer.WritePropertyName("step"); - JsonSerializer.Serialize(writer, StepValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs deleted file mode 100644 index 7948827f35f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsLifecycleStep.g.cs +++ /dev/null @@ -1,75 +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.IndexManagement; - -public sealed partial class IndexSettingsLifecycleStep -{ - /// - /// - /// Time to wait for the cluster to resolve allocation issues during an ILM shrink action. Must be greater than 1h (1 hour). - /// See Shard allocation for shrink. - /// - /// - [JsonInclude, JsonPropertyName("wait_time_threshold")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitTimeThreshold { get; set; } -} - -public sealed partial class IndexSettingsLifecycleStepDescriptor : SerializableDescriptor -{ - internal IndexSettingsLifecycleStepDescriptor(Action configure) => configure.Invoke(this); - - public IndexSettingsLifecycleStepDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitTimeThresholdValue { get; set; } - - /// - /// - /// Time to wait for the cluster to resolve allocation issues during an ILM shrink action. Must be greater than 1h (1 hour). - /// See Shard allocation for shrink. - /// - /// - public IndexSettingsLifecycleStepDescriptor WaitTimeThreshold(Elastic.Clients.Elasticsearch.Serverless.Duration? waitTimeThreshold) - { - WaitTimeThresholdValue = waitTimeThreshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (WaitTimeThresholdValue is not null) - { - writer.WritePropertyName("wait_time_threshold"); - JsonSerializer.Serialize(writer, WaitTimeThresholdValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs deleted file mode 100644 index 800232321e0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexSettingsTimeSeries.g.cs +++ /dev/null @@ -1,78 +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.IndexManagement; - -public sealed partial class IndexSettingsTimeSeries -{ - [JsonInclude, JsonPropertyName("end_time")] - public DateTimeOffset? EndTime { get; set; } - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; set; } -} - -public sealed partial class IndexSettingsTimeSeriesDescriptor : SerializableDescriptor -{ - internal IndexSettingsTimeSeriesDescriptor(Action configure) => configure.Invoke(this); - - public IndexSettingsTimeSeriesDescriptor() : base() - { - } - - private DateTimeOffset? EndTimeValue { get; set; } - private DateTimeOffset? StartTimeValue { get; set; } - - public IndexSettingsTimeSeriesDescriptor EndTime(DateTimeOffset? endTime) - { - EndTimeValue = endTime; - return Self; - } - - public IndexSettingsTimeSeriesDescriptor StartTime(DateTimeOffset? startTime) - { - StartTimeValue = startTime; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EndTimeValue is not null) - { - writer.WritePropertyName("end_time"); - JsonSerializer.Serialize(writer, EndTimeValue, options); - } - - if (StartTimeValue is not null) - { - writer.WritePropertyName("start_time"); - JsonSerializer.Serialize(writer, StartTimeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 67910b34d75..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs +++ /dev/null @@ -1,504 +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.IndexManagement; - -public sealed partial class IndexState -{ - [JsonInclude, JsonPropertyName("aliases")] - public IDictionary? Aliases { get; set; } - [JsonInclude, JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.Serverless.DataStreamName? DataStream { get; set; } - - /// - /// - /// Default settings, included when the request's include_default is true. - /// - /// - [JsonInclude, JsonPropertyName("defaults")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Defaults { get; set; } - - /// - /// - /// Data stream lifecycle applicable if this is a data stream. - /// - /// - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; set; } - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Settings { get; set; } -} - -public sealed partial class IndexStateDescriptor : SerializableDescriptor> -{ - internal IndexStateDescriptor(Action> configure) => configure.Invoke(this); - - public IndexStateDescriptor() : base() - { - } - - private IDictionary> AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DataStreamName? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? DefaultsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor DefaultsDescriptor { get; set; } - private Action> DefaultsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action> MappingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } - - public IndexStateDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.DataStreamName? dataStream) - { - DataStreamValue = dataStream; - return Self; - } - - /// - /// - /// Default settings, included when the request's include_default is true. - /// - /// - public IndexStateDescriptor Defaults(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? defaults) - { - DefaultsDescriptor = null; - DefaultsDescriptorAction = null; - DefaultsValue = defaults; - return Self; - } - - public IndexStateDescriptor Defaults(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - DefaultsValue = null; - DefaultsDescriptorAction = null; - DefaultsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Defaults(Action> configure) - { - DefaultsValue = null; - DefaultsDescriptor = null; - DefaultsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Data stream lifecycle applicable if this is a data stream. - /// - /// - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public IndexStateDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexStateDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - if (DefaultsDescriptor is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsDescriptor, options); - } - else if (DefaultsDescriptorAction is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(DefaultsDescriptorAction), options); - } - else if (DefaultsValue is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsValue, options); - } - - if (LifecycleDescriptor is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleDescriptor, options); - } - else if (LifecycleDescriptorAction is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); - } - else if (LifecycleValue is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexStateDescriptor : SerializableDescriptor -{ - internal IndexStateDescriptor(Action configure) => configure.Invoke(this); - - public IndexStateDescriptor() : base() - { - } - - private IDictionary AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DataStreamName? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? DefaultsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor DefaultsDescriptor { get; set; } - private Action DefaultsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action MappingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - - public IndexStateDescriptor Aliases(Func, FluentDescriptorDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless.DataStreamName? dataStream) - { - DataStreamValue = dataStream; - return Self; - } - - /// - /// - /// Default settings, included when the request's include_default is true. - /// - /// - public IndexStateDescriptor Defaults(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? defaults) - { - DefaultsDescriptor = null; - DefaultsDescriptorAction = null; - DefaultsValue = defaults; - return Self; - } - - public IndexStateDescriptor Defaults(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - DefaultsValue = null; - DefaultsDescriptorAction = null; - DefaultsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Defaults(Action configure) - { - DefaultsValue = null; - DefaultsDescriptor = null; - DefaultsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Data stream lifecycle applicable if this is a data stream. - /// - /// - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public IndexStateDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - public IndexStateDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexStateDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexStateDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (DataStreamValue is not null) - { - writer.WritePropertyName("data_stream"); - JsonSerializer.Serialize(writer, DataStreamValue, options); - } - - if (DefaultsDescriptor is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsDescriptor, options); - } - else if (DefaultsDescriptorAction is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(DefaultsDescriptorAction), options); - } - else if (DefaultsValue is not null) - { - writer.WritePropertyName("defaults"); - JsonSerializer.Serialize(writer, DefaultsValue, options); - } - - if (LifecycleDescriptor is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleDescriptor, options); - } - else if (LifecycleDescriptorAction is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); - } - else if (LifecycleValue is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexStats.g.cs deleted file mode 100644 index 4e040fc0dde..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexStats.g.cs +++ /dev/null @@ -1,172 +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.IndexManagement; - -public sealed partial class IndexStats -{ - [JsonInclude, JsonPropertyName("bulk")] - public Elastic.Clients.Elasticsearch.Serverless.BulkStats? Bulk { get; init; } - - /// - /// - /// Contains statistics about completions across all shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("completion")] - public Elastic.Clients.Elasticsearch.Serverless.CompletionStats? Completion { get; init; } - - /// - /// - /// Contains statistics about documents across all primary shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("docs")] - public Elastic.Clients.Elasticsearch.Serverless.DocStats? Docs { get; init; } - - /// - /// - /// Contains statistics about the field data cache across all shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("fielddata")] - public Elastic.Clients.Elasticsearch.Serverless.FielddataStats? Fielddata { get; init; } - - /// - /// - /// Contains statistics about flush operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("flush")] - public Elastic.Clients.Elasticsearch.Serverless.FlushStats? Flush { get; init; } - - /// - /// - /// Contains statistics about get operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("get")] - public Elastic.Clients.Elasticsearch.Serverless.GetStats? Get { get; init; } - - /// - /// - /// Contains statistics about indexing operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("indexing")] - public Elastic.Clients.Elasticsearch.Serverless.IndexingStats? Indexing { get; init; } - - /// - /// - /// Contains statistics about indices operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndicesStats? Indices { get; init; } - - /// - /// - /// Contains statistics about merge operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("merges")] - public Elastic.Clients.Elasticsearch.Serverless.MergesStats? Merges { get; init; } - - /// - /// - /// Contains statistics about the query cache across all shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("query_cache")] - public Elastic.Clients.Elasticsearch.Serverless.QueryCacheStats? QueryCache { get; init; } - - /// - /// - /// Contains statistics about recovery operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("recovery")] - public Elastic.Clients.Elasticsearch.Serverless.RecoveryStats? Recovery { get; init; } - - /// - /// - /// Contains statistics about refresh operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("refresh")] - public Elastic.Clients.Elasticsearch.Serverless.RefreshStats? Refresh { get; init; } - - /// - /// - /// Contains statistics about the request cache across all shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("request_cache")] - public Elastic.Clients.Elasticsearch.Serverless.RequestCacheStats? RequestCache { get; init; } - - /// - /// - /// Contains statistics about search operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("search")] - public Elastic.Clients.Elasticsearch.Serverless.SearchStats? Search { get; init; } - - /// - /// - /// Contains statistics about segments across all shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("segments")] - public Elastic.Clients.Elasticsearch.Serverless.SegmentsStats? Segments { get; init; } - [JsonInclude, JsonPropertyName("shard_stats")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardsTotalStats? ShardStats { get; init; } - - /// - /// - /// Contains statistics about the size of shards assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("store")] - public Elastic.Clients.Elasticsearch.Serverless.StoreStats? Store { get; init; } - - /// - /// - /// Contains statistics about transaction log operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("translog")] - public Elastic.Clients.Elasticsearch.Serverless.TranslogStats? Translog { get; init; } - - /// - /// - /// Contains statistics about index warming operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("warmer")] - public Elastic.Clients.Elasticsearch.Serverless.WarmerStats? Warmer { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs deleted file mode 100644 index 69e9ad496be..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplate.g.cs +++ /dev/null @@ -1,119 +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.IndexManagement; - -public sealed partial class IndexTemplate -{ - [JsonInclude, JsonPropertyName("allow_auto_create")] - public bool? AllowAutoCreate { get; init; } - - /// - /// - /// An ordered list of component template names. - /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. - /// - /// - [JsonInclude, JsonPropertyName("composed_of")] - public IReadOnlyCollection ComposedOf { get; init; } - - /// - /// - /// If this object is included, the template is used to create data streams and their backing indices. - /// Supports an empty object. - /// Data streams require a matching index template with a data_stream object. - /// - /// - [JsonInclude, JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateDataStreamConfiguration? DataStream { get; init; } - - /// - /// - /// Marks this index template as deprecated. - /// When creating or updating a non-deprecated index template that uses deprecated components, - /// Elasticsearch will emit a deprecation warning. - /// - /// - [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; init; } - - /// - /// - /// A list of component template names that are allowed to be absent. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing_component_templates")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? IgnoreMissingComponentTemplates { get; init; } - - /// - /// - /// Name of the index template. - /// - /// - [JsonInclude, JsonPropertyName("index_patterns")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection IndexPatterns { get; init; } - - /// - /// - /// Optional user metadata about the index template. May have any contents. - /// This map is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// Priority to determine index template precedence when a new data stream or index is created. - /// The index template with the highest priority is chosen. - /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). - /// This number is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("priority")] - public long? Priority { get; init; } - - /// - /// - /// Template to be applied. - /// It may optionally include an aliases, mappings, or settings configuration. - /// - /// - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplateSummary? Template { get; init; } - - /// - /// - /// Version number used to manage index templates externally. - /// This number is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs deleted file mode 100644 index 62ced6e40fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs +++ /dev/null @@ -1,47 +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.IndexManagement; - -public sealed partial class IndexTemplateDataStreamConfiguration -{ - /// - /// - /// If true, the data stream supports custom routing. - /// - /// - [JsonInclude, JsonPropertyName("allow_custom_routing")] - public bool? AllowCustomRouting { get; init; } - - /// - /// - /// If true, the data stream is hidden. - /// - /// - [JsonInclude, JsonPropertyName("hidden")] - public bool? Hidden { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs deleted file mode 100644 index 670c890ec14..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateItem.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class IndexTemplateItem -{ - [JsonInclude, JsonPropertyName("index_template")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexTemplate IndexTemplate { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs deleted file mode 100644 index aeee17d900b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs +++ /dev/null @@ -1,415 +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.IndexManagement; - -public sealed partial class IndexTemplateMapping -{ - /// - /// - /// Aliases to add. - /// If the index template includes a data_stream object, these are data stream aliases. - /// Otherwise, these are index aliases. - /// Data stream aliases ignore the index_routing, routing, and search_routing options. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - public IDictionary? Aliases { get; set; } - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping parameters. - /// - /// - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; set; } - - /// - /// - /// Configuration options for the index. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Settings { get; set; } -} - -public sealed partial class IndexTemplateMappingDescriptor : SerializableDescriptor> -{ - internal IndexTemplateMappingDescriptor(Action> configure) => configure.Invoke(this); - - public IndexTemplateMappingDescriptor() : base() - { - } - - private IDictionary> AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action> MappingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } - - /// - /// - /// Aliases to add. - /// If the index template includes a data_stream object, these are data stream aliases. - /// Otherwise, these are index aliases. - /// Data stream aliases ignore the index_routing, routing, and search_routing options. - /// - /// - public IndexTemplateMappingDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public IndexTemplateMappingDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping parameters. - /// - /// - public IndexTemplateMappingDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public IndexTemplateMappingDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public IndexTemplateMappingDescriptor Mappings(Action> configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// - /// - public IndexTemplateMappingDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexTemplateMappingDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexTemplateMappingDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (LifecycleDescriptor is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleDescriptor, options); - } - else if (LifecycleDescriptorAction is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); - } - else if (LifecycleValue is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexTemplateMappingDescriptor : SerializableDescriptor -{ - internal IndexTemplateMappingDescriptor(Action configure) => configure.Invoke(this); - - public IndexTemplateMappingDescriptor() : base() - { - } - - private IDictionary AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? MappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } - private Action MappingsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - - /// - /// - /// Aliases to add. - /// If the index template includes a data_stream object, these are data stream aliases. - /// Otherwise, these are index aliases. - /// Data stream aliases ignore the index_routing, routing, and search_routing options. - /// - /// - public IndexTemplateMappingDescriptor Aliases(Func, FluentDescriptorDictionary> selector) - { - AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) - { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; - return Self; - } - - public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor descriptor) - { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; - return Self; - } - - public IndexTemplateMappingDescriptor Lifecycle(Action configure) - { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; - return Self; - } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping parameters. - /// - /// - public IndexTemplateMappingDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? mappings) - { - MappingsDescriptor = null; - MappingsDescriptorAction = null; - MappingsValue = mappings; - return Self; - } - - public IndexTemplateMappingDescriptor Mappings(Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor descriptor) - { - MappingsValue = null; - MappingsDescriptorAction = null; - MappingsDescriptor = descriptor; - return Self; - } - - public IndexTemplateMappingDescriptor Mappings(Action configure) - { - MappingsValue = null; - MappingsDescriptor = null; - MappingsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Configuration options for the index. - /// - /// - public IndexTemplateMappingDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public IndexTemplateMappingDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public IndexTemplateMappingDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - JsonSerializer.Serialize(writer, AliasesValue, options); - } - - if (LifecycleDescriptor is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleDescriptor, options); - } - else if (LifecycleDescriptorAction is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); - } - else if (LifecycleValue is not null) - { - writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, LifecycleValue, options); - } - - if (MappingsDescriptor is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsDescriptor, options); - } - else if (MappingsDescriptorAction is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); - } - else if (MappingsValue is not null) - { - writer.WritePropertyName("mappings"); - JsonSerializer.Serialize(writer, MappingsValue, options); - } - - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs deleted file mode 100644 index a13a65df15f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs +++ /dev/null @@ -1,62 +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.IndexManagement; - -public sealed partial class IndexTemplateSummary -{ - /// - /// - /// Aliases to add. - /// If the index template includes a data_stream object, these are data stream aliases. - /// Otherwise, these are index aliases. - /// Data stream aliases ignore the index_routing, routing, and search_routing options. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Alias))] - public IReadOnlyDictionary? Aliases { get; init; } - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } - - /// - /// - /// Mapping for fields in the index. - /// If specified, this mapping can include field names, field data types, and mapping parameters. - /// - /// - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; init; } - - /// - /// - /// Configuration options for the index. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings? Settings { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs deleted file mode 100644 index 009836d7915..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexUpdateAliasesAction.g.cs +++ /dev/null @@ -1,257 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -[JsonConverter(typeof(IndexUpdateAliasesActionConverter))] -public sealed partial class IndexUpdateAliasesAction -{ - internal IndexUpdateAliasesAction(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static IndexUpdateAliasesAction Add(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.AddAction addAction) => new IndexUpdateAliasesAction("add", addAction); - public static IndexUpdateAliasesAction Remove(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveAction removeAction) => new IndexUpdateAliasesAction("remove", removeAction); - public static IndexUpdateAliasesAction RemoveIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveIndexAction removeIndexAction) => new IndexUpdateAliasesAction("remove_index", removeIndexAction); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class IndexUpdateAliasesActionConverter : JsonConverter -{ - public override IndexUpdateAliasesAction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "add") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "remove") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "remove_index") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IndexUpdateAliasesAction' from the response."); - } - - var result = new IndexUpdateAliasesAction(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, IndexUpdateAliasesAction value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "add": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.IndexManagement.AddAction)value.Variant, options); - break; - case "remove": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveAction)value.Variant, options); - break; - case "remove_index": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveIndexAction)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexUpdateAliasesActionDescriptor : SerializableDescriptor> -{ - internal IndexUpdateAliasesActionDescriptor(Action> configure) => configure.Invoke(this); - - public IndexUpdateAliasesActionDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IndexUpdateAliasesActionDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IndexUpdateAliasesActionDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IndexUpdateAliasesActionDescriptor Add(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.AddAction addAction) => Set(addAction, "add"); - public IndexUpdateAliasesActionDescriptor Add(Action> configure) => Set(configure, "add"); - public IndexUpdateAliasesActionDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveAction removeAction) => Set(removeAction, "remove"); - public IndexUpdateAliasesActionDescriptor Remove(Action configure) => Set(configure, "remove"); - public IndexUpdateAliasesActionDescriptor RemoveIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveIndexAction removeIndexAction) => Set(removeIndexAction, "remove_index"); - public IndexUpdateAliasesActionDescriptor RemoveIndex(Action configure) => Set(configure, "remove_index"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndexUpdateAliasesActionDescriptor : SerializableDescriptor -{ - internal IndexUpdateAliasesActionDescriptor(Action configure) => configure.Invoke(this); - - public IndexUpdateAliasesActionDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IndexUpdateAliasesActionDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IndexUpdateAliasesActionDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IndexUpdateAliasesActionDescriptor Add(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.AddAction addAction) => Set(addAction, "add"); - public IndexUpdateAliasesActionDescriptor Add(Action configure) => Set(configure, "add"); - public IndexUpdateAliasesActionDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveAction removeAction) => Set(removeAction, "remove"); - public IndexUpdateAliasesActionDescriptor Remove(Action configure) => Set(configure, "remove"); - public IndexUpdateAliasesActionDescriptor RemoveIndex(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RemoveIndexAction removeIndexAction) => Set(removeIndexAction, "remove_index"); - public IndexUpdateAliasesActionDescriptor RemoveIndex(Action configure) => Set(configure, "remove_index"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexVersioning.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexVersioning.g.cs deleted file mode 100644 index c6cb8a4169f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexVersioning.g.cs +++ /dev/null @@ -1,78 +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.IndexManagement; - -public sealed partial class IndexVersioning -{ - [JsonInclude, JsonPropertyName("created")] - public string? Created { get; set; } - [JsonInclude, JsonPropertyName("created_string")] - public string? CreatedString { get; set; } -} - -public sealed partial class IndexVersioningDescriptor : SerializableDescriptor -{ - internal IndexVersioningDescriptor(Action configure) => configure.Invoke(this); - - public IndexVersioningDescriptor() : base() - { - } - - private string? CreatedValue { get; set; } - private string? CreatedStringValue { get; set; } - - public IndexVersioningDescriptor Created(string? created) - { - CreatedValue = created; - return Self; - } - - public IndexVersioningDescriptor CreatedString(string? createdString) - { - CreatedStringValue = createdString; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(CreatedValue)) - { - writer.WritePropertyName("created"); - writer.WriteStringValue(CreatedValue); - } - - if (!string.IsNullOrEmpty(CreatedStringValue)) - { - writer.WritePropertyName("created_string"); - writer.WriteStringValue(CreatedStringValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressure.g.cs deleted file mode 100644 index 5aef5f07646..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressure.g.cs +++ /dev/null @@ -1,93 +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.IndexManagement; - -public sealed partial class IndexingPressure -{ - [JsonInclude, JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureMemory Memory { get; set; } -} - -public sealed partial class IndexingPressureDescriptor : SerializableDescriptor -{ - internal IndexingPressureDescriptor(Action configure) => configure.Invoke(this); - - public IndexingPressureDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureMemory MemoryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureMemoryDescriptor MemoryDescriptor { get; set; } - private Action MemoryDescriptorAction { get; set; } - - public IndexingPressureDescriptor Memory(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureMemory memory) - { - MemoryDescriptor = null; - MemoryDescriptorAction = null; - MemoryValue = memory; - return Self; - } - - public IndexingPressureDescriptor Memory(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureMemoryDescriptor descriptor) - { - MemoryValue = null; - MemoryDescriptorAction = null; - MemoryDescriptor = descriptor; - return Self; - } - - public IndexingPressureDescriptor Memory(Action configure) - { - MemoryValue = null; - MemoryDescriptor = null; - MemoryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MemoryDescriptor is not null) - { - writer.WritePropertyName("memory"); - JsonSerializer.Serialize(writer, MemoryDescriptor, options); - } - else if (MemoryDescriptorAction is not null) - { - writer.WritePropertyName("memory"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingPressureMemoryDescriptor(MemoryDescriptorAction), options); - } - else - { - writer.WritePropertyName("memory"); - JsonSerializer.Serialize(writer, MemoryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressureMemory.g.cs deleted file mode 100644 index d6e8cab7ca4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingPressureMemory.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.IndexManagement; - -public sealed partial class IndexingPressureMemory -{ - /// - /// - /// Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded, - /// the node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit, - /// the node will reject new replica operations. Defaults to 10% of the heap. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public int? Limit { get; set; } -} - -public sealed partial class IndexingPressureMemoryDescriptor : SerializableDescriptor -{ - internal IndexingPressureMemoryDescriptor(Action configure) => configure.Invoke(this); - - public IndexingPressureMemoryDescriptor() : base() - { - } - - private int? LimitValue { get; set; } - - /// - /// - /// Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded, - /// the node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit, - /// the node will reject new replica operations. Defaults to 10% of the heap. - /// - /// - public IndexingPressureMemoryDescriptor Limit(int? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LimitValue.HasValue) - { - writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs deleted file mode 100644 index 932d2b7fe8b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogSettings.g.cs +++ /dev/null @@ -1,138 +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.IndexManagement; - -public sealed partial class IndexingSlowlogSettings -{ - [JsonInclude, JsonPropertyName("level")] - public string? Level { get; set; } - [JsonInclude, JsonPropertyName("reformat")] - public bool? Reformat { get; set; } - [JsonInclude, JsonPropertyName("source")] - public int? Source { get; set; } - [JsonInclude, JsonPropertyName("threshold")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogTresholds? Threshold { get; set; } -} - -public sealed partial class IndexingSlowlogSettingsDescriptor : SerializableDescriptor -{ - internal IndexingSlowlogSettingsDescriptor(Action configure) => configure.Invoke(this); - - public IndexingSlowlogSettingsDescriptor() : base() - { - } - - private string? LevelValue { get; set; } - private bool? ReformatValue { get; set; } - private int? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogTresholds? ThresholdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogTresholdsDescriptor ThresholdDescriptor { get; set; } - private Action ThresholdDescriptorAction { get; set; } - - public IndexingSlowlogSettingsDescriptor Level(string? level) - { - LevelValue = level; - return Self; - } - - public IndexingSlowlogSettingsDescriptor Reformat(bool? reformat = true) - { - ReformatValue = reformat; - return Self; - } - - public IndexingSlowlogSettingsDescriptor Source(int? source) - { - SourceValue = source; - return Self; - } - - public IndexingSlowlogSettingsDescriptor Threshold(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogTresholds? threshold) - { - ThresholdDescriptor = null; - ThresholdDescriptorAction = null; - ThresholdValue = threshold; - return Self; - } - - public IndexingSlowlogSettingsDescriptor Threshold(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogTresholdsDescriptor descriptor) - { - ThresholdValue = null; - ThresholdDescriptorAction = null; - ThresholdDescriptor = descriptor; - return Self; - } - - public IndexingSlowlogSettingsDescriptor Threshold(Action configure) - { - ThresholdValue = null; - ThresholdDescriptor = null; - ThresholdDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(LevelValue)) - { - writer.WritePropertyName("level"); - writer.WriteStringValue(LevelValue); - } - - if (ReformatValue.HasValue) - { - writer.WritePropertyName("reformat"); - writer.WriteBooleanValue(ReformatValue.Value); - } - - if (SourceValue.HasValue) - { - writer.WritePropertyName("source"); - writer.WriteNumberValue(SourceValue.Value); - } - - if (ThresholdDescriptor is not null) - { - writer.WritePropertyName("threshold"); - JsonSerializer.Serialize(writer, ThresholdDescriptor, options); - } - else if (ThresholdDescriptorAction is not null) - { - writer.WritePropertyName("threshold"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexingSlowlogTresholdsDescriptor(ThresholdDescriptorAction), options); - } - else if (ThresholdValue is not null) - { - writer.WritePropertyName("threshold"); - JsonSerializer.Serialize(writer, ThresholdValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs deleted file mode 100644 index 3671ec3a746..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexingSlowlogTresholds.g.cs +++ /dev/null @@ -1,105 +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.IndexManagement; - -public sealed partial class IndexingSlowlogTresholds -{ - /// - /// - /// The indexing slow log, similar in functionality to the search slow log. The log file name ends with _index_indexing_slowlog.json. - /// Log and the thresholds are configured in the same way as the search slowlog. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? Index { get; set; } -} - -public sealed partial class IndexingSlowlogTresholdsDescriptor : SerializableDescriptor -{ - internal IndexingSlowlogTresholdsDescriptor(Action configure) => configure.Invoke(this); - - public IndexingSlowlogTresholdsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor IndexDescriptor { get; set; } - private Action IndexDescriptorAction { get; set; } - - /// - /// - /// The indexing slow log, similar in functionality to the search slow log. The log file name ends with _index_indexing_slowlog.json. - /// Log and the thresholds are configured in the same way as the search slowlog. - /// - /// - public IndexingSlowlogTresholdsDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? index) - { - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexValue = index; - return Self; - } - - public IndexingSlowlogTresholdsDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor descriptor) - { - IndexValue = null; - IndexDescriptorAction = null; - IndexDescriptor = descriptor; - return Self; - } - - public IndexingSlowlogTresholdsDescriptor Index(Action configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexDescriptor is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexDescriptor, options); - } - else if (IndexDescriptorAction is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor(IndexDescriptorAction), options); - } - else if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesStats.g.cs deleted file mode 100644 index 3ca893656a1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesStats.g.cs +++ /dev/null @@ -1,44 +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.IndexManagement; - -public sealed partial class IndicesStats -{ - [JsonInclude, JsonPropertyName("health")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus? Health { get; init; } - [JsonInclude, JsonPropertyName("primaries")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStats? Primaries { get; init; } - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyDictionary>? Shards { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexMetadataState? Status { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexStats? Total { get; init; } - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs deleted file mode 100644 index 7f051aa76a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndicesValidationExplanation.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class IndicesValidationExplanation -{ - [JsonInclude, JsonPropertyName("error")] - public string? Error { get; init; } - [JsonInclude, JsonPropertyName("explanation")] - public string? Explanation { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("valid")] - public bool Valid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs deleted file mode 100644 index 5c9472e884d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ /dev/null @@ -1,360 +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.IndexManagement; - -/// -/// -/// Mapping Limit Settings -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class MappingLimitSettings -{ - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("depth")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDepth? Depth { get; set; } - [JsonInclude, JsonPropertyName("dimension_fields")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDimensionFields? DimensionFields { get; set; } - [JsonInclude, JsonPropertyName("field_name_length")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsFieldNameLength? FieldNameLength { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("nested_fields")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedFields? NestedFields { get; set; } - [JsonInclude, JsonPropertyName("nested_objects")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedObjects? NestedObjects { get; set; } - [JsonInclude, JsonPropertyName("total_fields")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsTotalFields? TotalFields { get; set; } -} - -/// -/// -/// Mapping Limit Settings -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class MappingLimitSettingsDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsDescriptor() : base() - { - } - - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDepth? DepthValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDepthDescriptor DepthDescriptor { get; set; } - private Action DepthDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDimensionFields? DimensionFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDimensionFieldsDescriptor DimensionFieldsDescriptor { get; set; } - private Action DimensionFieldsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsFieldNameLength? FieldNameLengthValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsFieldNameLengthDescriptor FieldNameLengthDescriptor { get; set; } - private Action FieldNameLengthDescriptorAction { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedFields? NestedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedFieldsDescriptor NestedFieldsDescriptor { get; set; } - private Action NestedFieldsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedObjects? NestedObjectsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedObjectsDescriptor NestedObjectsDescriptor { get; set; } - private Action NestedObjectsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsTotalFields? TotalFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsTotalFieldsDescriptor TotalFieldsDescriptor { get; set; } - private Action TotalFieldsDescriptorAction { get; set; } - - public MappingLimitSettingsDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public MappingLimitSettingsDescriptor Depth(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDepth? depth) - { - DepthDescriptor = null; - DepthDescriptorAction = null; - DepthValue = depth; - return Self; - } - - public MappingLimitSettingsDescriptor Depth(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDepthDescriptor descriptor) - { - DepthValue = null; - DepthDescriptorAction = null; - DepthDescriptor = descriptor; - return Self; - } - - public MappingLimitSettingsDescriptor Depth(Action configure) - { - DepthValue = null; - DepthDescriptor = null; - DepthDescriptorAction = configure; - return Self; - } - - public MappingLimitSettingsDescriptor DimensionFields(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDimensionFields? dimensionFields) - { - DimensionFieldsDescriptor = null; - DimensionFieldsDescriptorAction = null; - DimensionFieldsValue = dimensionFields; - return Self; - } - - public MappingLimitSettingsDescriptor DimensionFields(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDimensionFieldsDescriptor descriptor) - { - DimensionFieldsValue = null; - DimensionFieldsDescriptorAction = null; - DimensionFieldsDescriptor = descriptor; - return Self; - } - - public MappingLimitSettingsDescriptor DimensionFields(Action configure) - { - DimensionFieldsValue = null; - DimensionFieldsDescriptor = null; - DimensionFieldsDescriptorAction = configure; - return Self; - } - - public MappingLimitSettingsDescriptor FieldNameLength(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsFieldNameLength? fieldNameLength) - { - FieldNameLengthDescriptor = null; - FieldNameLengthDescriptorAction = null; - FieldNameLengthValue = fieldNameLength; - return Self; - } - - public MappingLimitSettingsDescriptor FieldNameLength(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsFieldNameLengthDescriptor descriptor) - { - FieldNameLengthValue = null; - FieldNameLengthDescriptorAction = null; - FieldNameLengthDescriptor = descriptor; - return Self; - } - - public MappingLimitSettingsDescriptor FieldNameLength(Action configure) - { - FieldNameLengthValue = null; - FieldNameLengthDescriptor = null; - FieldNameLengthDescriptorAction = configure; - return Self; - } - - public MappingLimitSettingsDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public MappingLimitSettingsDescriptor NestedFields(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedFields? nestedFields) - { - NestedFieldsDescriptor = null; - NestedFieldsDescriptorAction = null; - NestedFieldsValue = nestedFields; - return Self; - } - - public MappingLimitSettingsDescriptor NestedFields(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedFieldsDescriptor descriptor) - { - NestedFieldsValue = null; - NestedFieldsDescriptorAction = null; - NestedFieldsDescriptor = descriptor; - return Self; - } - - public MappingLimitSettingsDescriptor NestedFields(Action configure) - { - NestedFieldsValue = null; - NestedFieldsDescriptor = null; - NestedFieldsDescriptorAction = configure; - return Self; - } - - public MappingLimitSettingsDescriptor NestedObjects(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedObjects? nestedObjects) - { - NestedObjectsDescriptor = null; - NestedObjectsDescriptorAction = null; - NestedObjectsValue = nestedObjects; - return Self; - } - - public MappingLimitSettingsDescriptor NestedObjects(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedObjectsDescriptor descriptor) - { - NestedObjectsValue = null; - NestedObjectsDescriptorAction = null; - NestedObjectsDescriptor = descriptor; - return Self; - } - - public MappingLimitSettingsDescriptor NestedObjects(Action configure) - { - NestedObjectsValue = null; - NestedObjectsDescriptor = null; - NestedObjectsDescriptorAction = configure; - return Self; - } - - public MappingLimitSettingsDescriptor TotalFields(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsTotalFields? totalFields) - { - TotalFieldsDescriptor = null; - TotalFieldsDescriptorAction = null; - TotalFieldsValue = totalFields; - return Self; - } - - public MappingLimitSettingsDescriptor TotalFields(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsTotalFieldsDescriptor descriptor) - { - TotalFieldsValue = null; - TotalFieldsDescriptorAction = null; - TotalFieldsDescriptor = descriptor; - return Self; - } - - public MappingLimitSettingsDescriptor TotalFields(Action configure) - { - TotalFieldsValue = null; - TotalFieldsDescriptor = null; - TotalFieldsDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (DepthDescriptor is not null) - { - writer.WritePropertyName("depth"); - JsonSerializer.Serialize(writer, DepthDescriptor, options); - } - else if (DepthDescriptorAction is not null) - { - writer.WritePropertyName("depth"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDepthDescriptor(DepthDescriptorAction), options); - } - else if (DepthValue is not null) - { - writer.WritePropertyName("depth"); - JsonSerializer.Serialize(writer, DepthValue, options); - } - - if (DimensionFieldsDescriptor is not null) - { - writer.WritePropertyName("dimension_fields"); - JsonSerializer.Serialize(writer, DimensionFieldsDescriptor, options); - } - else if (DimensionFieldsDescriptorAction is not null) - { - writer.WritePropertyName("dimension_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsDimensionFieldsDescriptor(DimensionFieldsDescriptorAction), options); - } - else if (DimensionFieldsValue is not null) - { - writer.WritePropertyName("dimension_fields"); - JsonSerializer.Serialize(writer, DimensionFieldsValue, options); - } - - if (FieldNameLengthDescriptor is not null) - { - writer.WritePropertyName("field_name_length"); - JsonSerializer.Serialize(writer, FieldNameLengthDescriptor, options); - } - else if (FieldNameLengthDescriptorAction is not null) - { - writer.WritePropertyName("field_name_length"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsFieldNameLengthDescriptor(FieldNameLengthDescriptorAction), options); - } - else if (FieldNameLengthValue is not null) - { - writer.WritePropertyName("field_name_length"); - JsonSerializer.Serialize(writer, FieldNameLengthValue, options); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (NestedFieldsDescriptor is not null) - { - writer.WritePropertyName("nested_fields"); - JsonSerializer.Serialize(writer, NestedFieldsDescriptor, options); - } - else if (NestedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("nested_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedFieldsDescriptor(NestedFieldsDescriptorAction), options); - } - else if (NestedFieldsValue is not null) - { - writer.WritePropertyName("nested_fields"); - JsonSerializer.Serialize(writer, NestedFieldsValue, options); - } - - if (NestedObjectsDescriptor is not null) - { - writer.WritePropertyName("nested_objects"); - JsonSerializer.Serialize(writer, NestedObjectsDescriptor, options); - } - else if (NestedObjectsDescriptorAction is not null) - { - writer.WritePropertyName("nested_objects"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsNestedObjectsDescriptor(NestedObjectsDescriptorAction), options); - } - else if (NestedObjectsValue is not null) - { - writer.WritePropertyName("nested_objects"); - JsonSerializer.Serialize(writer, NestedObjectsValue, options); - } - - if (TotalFieldsDescriptor is not null) - { - writer.WritePropertyName("total_fields"); - JsonSerializer.Serialize(writer, TotalFieldsDescriptor, options); - } - else if (TotalFieldsDescriptorAction is not null) - { - writer.WritePropertyName("total_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingLimitSettingsTotalFieldsDescriptor(TotalFieldsDescriptorAction), options); - } - else if (TotalFieldsValue is not null) - { - writer.WritePropertyName("total_fields"); - JsonSerializer.Serialize(writer, TotalFieldsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs deleted file mode 100644 index d60bf5c8430..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDepth.g.cs +++ /dev/null @@ -1,75 +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.IndexManagement; - -public sealed partial class MappingLimitSettingsDepth -{ - /// - /// - /// The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined - /// at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } -} - -public sealed partial class MappingLimitSettingsDepthDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsDepthDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsDepthDescriptor() : base() - { - } - - private long? LimitValue { get; set; } - - /// - /// - /// The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined - /// at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc. - /// - /// - public MappingLimitSettingsDepthDescriptor Limit(long? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LimitValue.HasValue) - { - writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs deleted file mode 100644 index 1133af14e1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsDimensionFields.g.cs +++ /dev/null @@ -1,75 +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.IndexManagement; - -public sealed partial class MappingLimitSettingsDimensionFields -{ - /// - /// - /// [preview] This functionality is in technical preview and may be changed or removed in a future release. - /// Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } -} - -public sealed partial class MappingLimitSettingsDimensionFieldsDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsDimensionFieldsDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsDimensionFieldsDescriptor() : base() - { - } - - private long? LimitValue { get; set; } - - /// - /// - /// [preview] This functionality is in technical preview and may be changed or removed in a future release. - /// Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. - /// - /// - public MappingLimitSettingsDimensionFieldsDescriptor Limit(long? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LimitValue.HasValue) - { - writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.cs deleted file mode 100644 index 85fa93716b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsFieldNameLength.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.IndexManagement; - -public sealed partial class MappingLimitSettingsFieldNameLength -{ - /// - /// - /// Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but - /// might still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The - /// default is okay unless a user starts to add a huge number of fields with really long names. Default is Long.MAX_VALUE (no limit). - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } -} - -public sealed partial class MappingLimitSettingsFieldNameLengthDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsFieldNameLengthDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsFieldNameLengthDescriptor() : base() - { - } - - private long? LimitValue { get; set; } - - /// - /// - /// Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but - /// might still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The - /// default is okay unless a user starts to add a huge number of fields with really long names. Default is Long.MAX_VALUE (no limit). - /// - /// - public MappingLimitSettingsFieldNameLengthDescriptor Limit(long? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LimitValue.HasValue) - { - writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.cs deleted file mode 100644 index b02aabdc182..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedFields.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.IndexManagement; - -public sealed partial class MappingLimitSettingsNestedFields -{ - /// - /// - /// The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when - /// arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this - /// setting limits the number of unique nested types per index. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } -} - -public sealed partial class MappingLimitSettingsNestedFieldsDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsNestedFieldsDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsNestedFieldsDescriptor() : base() - { - } - - private long? LimitValue { get; set; } - - /// - /// - /// The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when - /// arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this - /// setting limits the number of unique nested types per index. - /// - /// - public MappingLimitSettingsNestedFieldsDescriptor Limit(long? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LimitValue.HasValue) - { - writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs deleted file mode 100644 index 860e1442178..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsNestedObjects.g.cs +++ /dev/null @@ -1,75 +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.IndexManagement; - -public sealed partial class MappingLimitSettingsNestedObjects -{ - /// - /// - /// The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps - /// to prevent out of memory errors when a document contains too many nested objects. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public long? Limit { get; set; } -} - -public sealed partial class MappingLimitSettingsNestedObjectsDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsNestedObjectsDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsNestedObjectsDescriptor() : base() - { - } - - private long? LimitValue { get; set; } - - /// - /// - /// The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps - /// to prevent out of memory errors when a document contains too many nested objects. - /// - /// - public MappingLimitSettingsNestedObjectsDescriptor Limit(long? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LimitValue.HasValue) - { - writer.WritePropertyName("limit"); - writer.WriteNumberValue(LimitValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.cs deleted file mode 100644 index 2bb334a6e3e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingLimitSettingsTotalFields.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.IndexManagement; - -public sealed partial class MappingLimitSettingsTotalFields -{ - /// - /// - /// This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set - /// to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail - /// with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail. - /// Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false. - /// The fields that were not added to the mapping will be added to the _ignored field. - /// - /// - [JsonInclude, JsonPropertyName("ignore_dynamic_beyond_limit")] - public object? IgnoreDynamicBeyondLimit { get; set; } - - /// - /// - /// The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. - /// The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance - /// degradations and memory issues, especially in clusters with a high load or few resources. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public object? Limit { get; set; } -} - -public sealed partial class MappingLimitSettingsTotalFieldsDescriptor : SerializableDescriptor -{ - internal MappingLimitSettingsTotalFieldsDescriptor(Action configure) => configure.Invoke(this); - - public MappingLimitSettingsTotalFieldsDescriptor() : base() - { - } - - private object? IgnoreDynamicBeyondLimitValue { get; set; } - private object? LimitValue { get; set; } - - /// - /// - /// This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set - /// to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail - /// with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail. - /// Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false. - /// The fields that were not added to the mapping will be added to the _ignored field. - /// - /// - public MappingLimitSettingsTotalFieldsDescriptor IgnoreDynamicBeyondLimit(object? ignoreDynamicBeyondLimit) - { - IgnoreDynamicBeyondLimitValue = ignoreDynamicBeyondLimit; - return Self; - } - - /// - /// - /// The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. - /// The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance - /// degradations and memory issues, especially in clusters with a high load or few resources. - /// - /// - public MappingLimitSettingsTotalFieldsDescriptor Limit(object? limit) - { - LimitValue = limit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IgnoreDynamicBeyondLimitValue is not null) - { - writer.WritePropertyName("ignore_dynamic_beyond_limit"); - JsonSerializer.Serialize(writer, IgnoreDynamicBeyondLimitValue, options); - } - - if (LimitValue is not null) - { - writer.WritePropertyName("limit"); - JsonSerializer.Serialize(writer, LimitValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingStats.g.cs deleted file mode 100644 index c7e5c6f45ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MappingStats.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class MappingStats -{ - [JsonInclude, JsonPropertyName("total_count")] - public long TotalCount { get; init; } - [JsonInclude, JsonPropertyName("total_estimated_overhead")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TotalEstimatedOverhead { get; init; } - [JsonInclude, JsonPropertyName("total_estimated_overhead_in_bytes")] - public long TotalEstimatedOverheadInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Merge.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Merge.g.cs deleted file mode 100644 index beee8fcd8d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Merge.g.cs +++ /dev/null @@ -1,93 +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.IndexManagement; - -public sealed partial class Merge -{ - [JsonInclude, JsonPropertyName("scheduler")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeScheduler? Scheduler { get; set; } -} - -public sealed partial class MergeDescriptor : SerializableDescriptor -{ - internal MergeDescriptor(Action configure) => configure.Invoke(this); - - public MergeDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeScheduler? SchedulerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeSchedulerDescriptor SchedulerDescriptor { get; set; } - private Action SchedulerDescriptorAction { get; set; } - - public MergeDescriptor Scheduler(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeScheduler? scheduler) - { - SchedulerDescriptor = null; - SchedulerDescriptorAction = null; - SchedulerValue = scheduler; - return Self; - } - - public MergeDescriptor Scheduler(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeSchedulerDescriptor descriptor) - { - SchedulerValue = null; - SchedulerDescriptorAction = null; - SchedulerDescriptor = descriptor; - return Self; - } - - public MergeDescriptor Scheduler(Action configure) - { - SchedulerValue = null; - SchedulerDescriptor = null; - SchedulerDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SchedulerDescriptor is not null) - { - writer.WritePropertyName("scheduler"); - JsonSerializer.Serialize(writer, SchedulerDescriptor, options); - } - else if (SchedulerDescriptorAction is not null) - { - writer.WritePropertyName("scheduler"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MergeSchedulerDescriptor(SchedulerDescriptorAction), options); - } - else if (SchedulerValue is not null) - { - writer.WritePropertyName("scheduler"); - JsonSerializer.Serialize(writer, SchedulerValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MergeScheduler.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MergeScheduler.g.cs deleted file mode 100644 index c61ac117daa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/MergeScheduler.g.cs +++ /dev/null @@ -1,78 +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.IndexManagement; - -public sealed partial class MergeScheduler -{ - [JsonInclude, JsonPropertyName("max_merge_count")] - public int? MaxMergeCount { get; set; } - [JsonInclude, JsonPropertyName("max_thread_count")] - public int? MaxThreadCount { get; set; } -} - -public sealed partial class MergeSchedulerDescriptor : SerializableDescriptor -{ - internal MergeSchedulerDescriptor(Action configure) => configure.Invoke(this); - - public MergeSchedulerDescriptor() : base() - { - } - - private int? MaxMergeCountValue { get; set; } - private int? MaxThreadCountValue { get; set; } - - public MergeSchedulerDescriptor MaxMergeCount(int? maxMergeCount) - { - MaxMergeCountValue = maxMergeCount; - return Self; - } - - public MergeSchedulerDescriptor MaxThreadCount(int? maxThreadCount) - { - MaxThreadCountValue = maxThreadCount; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxMergeCountValue.HasValue) - { - writer.WritePropertyName("max_merge_count"); - writer.WriteNumberValue(MaxMergeCountValue.Value); - } - - if (MaxThreadCountValue.HasValue) - { - writer.WritePropertyName("max_thread_count"); - writer.WriteNumberValue(MaxThreadCountValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/NumericFielddata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/NumericFielddata.g.cs deleted file mode 100644 index 4df368534fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/NumericFielddata.g.cs +++ /dev/null @@ -1,59 +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.IndexManagement; - -public sealed partial class NumericFielddata -{ - [JsonInclude, JsonPropertyName("format")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataFormat Format { get; set; } -} - -public sealed partial class NumericFielddataDescriptor : SerializableDescriptor -{ - internal NumericFielddataDescriptor(Action configure) => configure.Invoke(this); - - public NumericFielddataDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataFormat FormatValue { get; set; } - - public NumericFielddataDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataFormat format) - { - FormatValue = format; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, FormatValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Overlapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Overlapping.g.cs deleted file mode 100644 index 497b86d024f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Overlapping.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class Overlapping -{ - [JsonInclude, JsonPropertyName("index_patterns")] - public IReadOnlyCollection IndexPatterns { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Queries.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Queries.g.cs deleted file mode 100644 index c4c86baa6e3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Queries.g.cs +++ /dev/null @@ -1,93 +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.IndexManagement; - -public sealed partial class Queries -{ - [JsonInclude, JsonPropertyName("cache")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CacheQueries? Cache { get; set; } -} - -public sealed partial class QueriesDescriptor : SerializableDescriptor -{ - internal QueriesDescriptor(Action configure) => configure.Invoke(this); - - public QueriesDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CacheQueries? CacheValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CacheQueriesDescriptor CacheDescriptor { get; set; } - private Action CacheDescriptorAction { get; set; } - - public QueriesDescriptor Cache(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CacheQueries? cache) - { - CacheDescriptor = null; - CacheDescriptorAction = null; - CacheValue = cache; - return Self; - } - - public QueriesDescriptor Cache(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CacheQueriesDescriptor descriptor) - { - CacheValue = null; - CacheDescriptorAction = null; - CacheDescriptor = descriptor; - return Self; - } - - public QueriesDescriptor Cache(Action configure) - { - CacheValue = null; - CacheDescriptor = null; - CacheDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CacheDescriptor is not null) - { - writer.WritePropertyName("cache"); - JsonSerializer.Serialize(writer, CacheDescriptor, options); - } - else if (CacheDescriptorAction is not null) - { - writer.WritePropertyName("cache"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.CacheQueriesDescriptor(CacheDescriptorAction), options); - } - else if (CacheValue is not null) - { - writer.WritePropertyName("cache"); - JsonSerializer.Serialize(writer, CacheValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryBytes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryBytes.g.cs deleted file mode 100644 index cab75889b65..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryBytes.g.cs +++ /dev/null @@ -1,50 +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.IndexManagement; - -public sealed partial class RecoveryBytes -{ - [JsonInclude, JsonPropertyName("percent")] - public double Percent { get; init; } - [JsonInclude, JsonPropertyName("recovered")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Recovered { get; init; } - [JsonInclude, JsonPropertyName("recovered_from_snapshot")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? RecoveredFromSnapshot { get; init; } - [JsonInclude, JsonPropertyName("recovered_from_snapshot_in_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? RecoveredFromSnapshotInBytes { get; init; } - [JsonInclude, JsonPropertyName("recovered_in_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize RecoveredInBytes { get; init; } - [JsonInclude, JsonPropertyName("reused")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Reused { get; init; } - [JsonInclude, JsonPropertyName("reused_in_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize ReusedInBytes { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Total { get; init; } - [JsonInclude, JsonPropertyName("total_in_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize TotalInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryFiles.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryFiles.g.cs deleted file mode 100644 index 6819948198a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryFiles.g.cs +++ /dev/null @@ -1,42 +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.IndexManagement; - -public sealed partial class RecoveryFiles -{ - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyCollection? Details { get; init; } - [JsonInclude, JsonPropertyName("percent")] - public double Percent { get; init; } - [JsonInclude, JsonPropertyName("recovered")] - public long Recovered { get; init; } - [JsonInclude, JsonPropertyName("reused")] - public long Reused { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs deleted file mode 100644 index 3a131cc7162..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryIndexStatus.g.cs +++ /dev/null @@ -1,50 +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.IndexManagement; - -public sealed partial class RecoveryIndexStatus -{ - [JsonInclude, JsonPropertyName("bytes")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryBytes? Bytes { get; init; } - [JsonInclude, JsonPropertyName("files")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryFiles Files { get; init; } - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryBytes Size { get; init; } - [JsonInclude, JsonPropertyName("source_throttle_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? SourceThrottleTime { get; init; } - [JsonInclude, JsonPropertyName("source_throttle_time_in_millis")] - public long SourceThrottleTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("target_throttle_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TargetThrottleTime { get; init; } - [JsonInclude, JsonPropertyName("target_throttle_time_in_millis")] - public long TargetThrottleTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs deleted file mode 100644 index 4976c5cc385..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryOrigin.g.cs +++ /dev/null @@ -1,56 +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.IndexManagement; - -public sealed partial class RecoveryOrigin -{ - [JsonInclude, JsonPropertyName("bootstrap_new_history_uuid")] - public bool? BootstrapNewHistoryUuid { get; init; } - [JsonInclude, JsonPropertyName("host")] - public string? Host { get; init; } - [JsonInclude, JsonPropertyName("hostname")] - public string? Hostname { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string? Id { get; init; } - [JsonInclude, JsonPropertyName("index")] - public string? Index { get; init; } - [JsonInclude, JsonPropertyName("ip")] - public string? Ip { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } - [JsonInclude, JsonPropertyName("repository")] - public string? Repository { get; init; } - [JsonInclude, JsonPropertyName("restoreUUID")] - public string? Restoreuuid { get; init; } - [JsonInclude, JsonPropertyName("snapshot")] - public string? Snapshot { get; init; } - [JsonInclude, JsonPropertyName("transport_address")] - public string? TransportAddress { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs deleted file mode 100644 index 7fd273ed9d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStartStatus.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class RecoveryStartStatus -{ - [JsonInclude, JsonPropertyName("check_index_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? CheckIndexTime { get; init; } - [JsonInclude, JsonPropertyName("check_index_time_in_millis")] - public long CheckIndexTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStatus.g.cs deleted file mode 100644 index dc8f87343fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RecoveryStatus.g.cs +++ /dev/null @@ -1,34 +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.IndexManagement; - -public sealed partial class RecoveryStatus -{ - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyCollection Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadDetails.g.cs deleted file mode 100644 index 930f83fc80a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadDetails.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class ReloadDetails -{ - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("reloaded_analyzers")] - public IReadOnlyCollection ReloadedAnalyzers { get; init; } - [JsonInclude, JsonPropertyName("reloaded_node_ids")] - public IReadOnlyCollection ReloadedNodeIds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadResult.g.cs deleted file mode 100644 index 9bf98942a54..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ReloadResult.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class ReloadResult -{ - [JsonInclude, JsonPropertyName("reload_details")] - public IReadOnlyCollection ReloadDetails { get; init; } - [JsonInclude, JsonPropertyName("_shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveAction.g.cs deleted file mode 100644 index 580051e8000..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveAction.g.cs +++ /dev/null @@ -1,188 +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.IndexManagement; - -public sealed partial class RemoveAction -{ - /// - /// - /// Alias for the action. - /// Index alias names support date math. - /// - /// - [JsonInclude, JsonPropertyName("alias")] - public Elastic.Clients.Elasticsearch.Serverless.IndexAlias? Alias { get; set; } - - /// - /// - /// Aliases for the action. - /// Index alias names support date math. - /// - /// - [JsonInclude, JsonPropertyName("aliases")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexAlias))] - public ICollection? Aliases { get; set; } - - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - [JsonInclude, JsonPropertyName("must_exist")] - public bool? MustExist { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesAction(RemoveAction removeAction) => Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesAction.Remove(removeAction); -} - -public sealed partial class RemoveActionDescriptor : SerializableDescriptor -{ - internal RemoveActionDescriptor(Action configure) => configure.Invoke(this); - - public RemoveActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexAlias? AliasValue { get; set; } - private ICollection? AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private bool? MustExistValue { get; set; } - - /// - /// - /// Alias for the action. - /// Index alias names support date math. - /// - /// - public RemoveActionDescriptor Alias(Elastic.Clients.Elasticsearch.Serverless.IndexAlias? alias) - { - AliasValue = alias; - return Self; - } - - /// - /// - /// Aliases for the action. - /// Index alias names support date math. - /// - /// - public RemoveActionDescriptor Aliases(ICollection? aliases) - { - AliasesValue = aliases; - return Self; - } - - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - public RemoveActionDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - public RemoveActionDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - public RemoveActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AliasValue is not null) - { - writer.WritePropertyName("alias"); - JsonSerializer.Serialize(writer, AliasValue, options); - } - - if (AliasesValue is not null) - { - writer.WritePropertyName("aliases"); - SingleOrManySerializationHelper.Serialize(AliasesValue, writer, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs deleted file mode 100644 index ad925cdd4ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RemoveIndexAction.g.cs +++ /dev/null @@ -1,131 +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.IndexManagement; - -public sealed partial class RemoveIndexAction -{ - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - [JsonInclude, JsonPropertyName("must_exist")] - public bool? MustExist { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesAction(RemoveIndexAction removeIndexAction) => Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexUpdateAliasesAction.RemoveIndex(removeIndexAction); -} - -public sealed partial class RemoveIndexActionDescriptor : SerializableDescriptor -{ - internal RemoveIndexActionDescriptor(Action configure) => configure.Invoke(this); - - public RemoveIndexActionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private bool? MustExistValue { get; set; } - - /// - /// - /// Data stream or index for the action. - /// Supports wildcards (*). - /// - /// - public RemoveIndexActionDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Data streams or indices for the action. - /// Supports wildcards (*). - /// - /// - public RemoveIndexActionDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// If true, the alias must exist to perform the action. - /// - /// - public RemoveIndexActionDescriptor MustExist(bool? mustExist = true) - { - MustExistValue = mustExist; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MustExistValue.HasValue) - { - writer.WritePropertyName("must_exist"); - writer.WriteBooleanValue(MustExistValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs deleted file mode 100644 index 593daf169b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexAliasItem.g.cs +++ /dev/null @@ -1,37 +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.IndexManagement; - -public sealed partial class ResolveIndexAliasItem -{ - [JsonInclude, JsonPropertyName("indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs deleted file mode 100644 index 5d6e1cd7c74..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexDataStreamsItem.g.cs +++ /dev/null @@ -1,39 +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.IndexManagement; - -public sealed partial class ResolveIndexDataStreamsItem -{ - [JsonInclude, JsonPropertyName("backing_indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection BackingIndices { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("timestamp_field")] - public string TimestampField { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs deleted file mode 100644 index e8d8b95fcc4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ResolveIndexItem.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class ResolveIndexItem -{ - [JsonInclude, JsonPropertyName("aliases")] - public IReadOnlyCollection? Aliases { get; init; } - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyCollection Attributes { get; init; } - [JsonInclude, JsonPropertyName("data_stream")] - public string? DataStream { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RetentionLease.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RetentionLease.g.cs deleted file mode 100644 index ca638b06cc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RetentionLease.g.cs +++ /dev/null @@ -1,59 +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.IndexManagement; - -public sealed partial class RetentionLease -{ - [JsonInclude, JsonPropertyName("period")] - public Elastic.Clients.Elasticsearch.Serverless.Duration Period { get; set; } -} - -public sealed partial class RetentionLeaseDescriptor : SerializableDescriptor -{ - internal RetentionLeaseDescriptor(Action configure) => configure.Invoke(this); - - public RetentionLeaseDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration PeriodValue { get; set; } - - public RetentionLeaseDescriptor Period(Elastic.Clients.Elasticsearch.Serverless.Duration period) - { - PeriodValue = period; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("period"); - JsonSerializer.Serialize(writer, PeriodValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RolloverConditions.g.cs deleted file mode 100644 index e05c9e040fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/RolloverConditions.g.cs +++ /dev/null @@ -1,273 +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.IndexManagement; - -public sealed partial class RolloverConditions -{ - [JsonInclude, JsonPropertyName("max_age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MaxAge { get; set; } - [JsonInclude, JsonPropertyName("max_age_millis")] - public long? MaxAgeMillis { get; set; } - [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; set; } - [JsonInclude, JsonPropertyName("max_primary_shard_docs")] - public long? MaxPrimaryShardDocs { get; set; } - [JsonInclude, JsonPropertyName("max_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxPrimaryShardSize { get; set; } - [JsonInclude, JsonPropertyName("max_primary_shard_size_bytes")] - public long? MaxPrimaryShardSizeBytes { get; set; } - [JsonInclude, JsonPropertyName("max_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSize { get; set; } - [JsonInclude, JsonPropertyName("max_size_bytes")] - public long? MaxSizeBytes { get; set; } - [JsonInclude, JsonPropertyName("min_age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MinAge { get; set; } - [JsonInclude, JsonPropertyName("min_docs")] - public long? MinDocs { get; set; } - [JsonInclude, JsonPropertyName("min_primary_shard_docs")] - public long? MinPrimaryShardDocs { get; set; } - [JsonInclude, JsonPropertyName("min_primary_shard_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinPrimaryShardSize { get; set; } - [JsonInclude, JsonPropertyName("min_primary_shard_size_bytes")] - public long? MinPrimaryShardSizeBytes { get; set; } - [JsonInclude, JsonPropertyName("min_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinSize { get; set; } - [JsonInclude, JsonPropertyName("min_size_bytes")] - public long? MinSizeBytes { get; set; } -} - -public sealed partial class RolloverConditionsDescriptor : SerializableDescriptor -{ - internal RolloverConditionsDescriptor(Action configure) => configure.Invoke(this); - - public RolloverConditionsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? MaxAgeValue { get; set; } - private long? MaxAgeMillisValue { get; set; } - private long? MaxDocsValue { get; set; } - private long? MaxPrimaryShardDocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxPrimaryShardSizeValue { get; set; } - private long? MaxPrimaryShardSizeBytesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSizeValue { get; set; } - private long? MaxSizeBytesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? MinAgeValue { get; set; } - private long? MinDocsValue { get; set; } - private long? MinPrimaryShardDocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinPrimaryShardSizeValue { get; set; } - private long? MinPrimaryShardSizeBytesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MinSizeValue { get; set; } - private long? MinSizeBytesValue { get; set; } - - public RolloverConditionsDescriptor MaxAge(Elastic.Clients.Elasticsearch.Serverless.Duration? maxAge) - { - MaxAgeValue = maxAge; - return Self; - } - - public RolloverConditionsDescriptor MaxAgeMillis(long? maxAgeMillis) - { - MaxAgeMillisValue = maxAgeMillis; - return Self; - } - - public RolloverConditionsDescriptor MaxDocs(long? maxDocs) - { - MaxDocsValue = maxDocs; - return Self; - } - - public RolloverConditionsDescriptor MaxPrimaryShardDocs(long? maxPrimaryShardDocs) - { - MaxPrimaryShardDocsValue = maxPrimaryShardDocs; - return Self; - } - - public RolloverConditionsDescriptor MaxPrimaryShardSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxPrimaryShardSize) - { - MaxPrimaryShardSizeValue = maxPrimaryShardSize; - return Self; - } - - public RolloverConditionsDescriptor MaxPrimaryShardSizeBytes(long? maxPrimaryShardSizeBytes) - { - MaxPrimaryShardSizeBytesValue = maxPrimaryShardSizeBytes; - return Self; - } - - public RolloverConditionsDescriptor MaxSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSize) - { - MaxSizeValue = maxSize; - return Self; - } - - public RolloverConditionsDescriptor MaxSizeBytes(long? maxSizeBytes) - { - MaxSizeBytesValue = maxSizeBytes; - return Self; - } - - public RolloverConditionsDescriptor MinAge(Elastic.Clients.Elasticsearch.Serverless.Duration? minAge) - { - MinAgeValue = minAge; - return Self; - } - - public RolloverConditionsDescriptor MinDocs(long? minDocs) - { - MinDocsValue = minDocs; - return Self; - } - - public RolloverConditionsDescriptor MinPrimaryShardDocs(long? minPrimaryShardDocs) - { - MinPrimaryShardDocsValue = minPrimaryShardDocs; - return Self; - } - - public RolloverConditionsDescriptor MinPrimaryShardSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? minPrimaryShardSize) - { - MinPrimaryShardSizeValue = minPrimaryShardSize; - return Self; - } - - public RolloverConditionsDescriptor MinPrimaryShardSizeBytes(long? minPrimaryShardSizeBytes) - { - MinPrimaryShardSizeBytesValue = minPrimaryShardSizeBytes; - return Self; - } - - public RolloverConditionsDescriptor MinSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? minSize) - { - MinSizeValue = minSize; - return Self; - } - - public RolloverConditionsDescriptor MinSizeBytes(long? minSizeBytes) - { - MinSizeBytesValue = minSizeBytes; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxAgeValue is not null) - { - writer.WritePropertyName("max_age"); - JsonSerializer.Serialize(writer, MaxAgeValue, options); - } - - if (MaxAgeMillisValue.HasValue) - { - writer.WritePropertyName("max_age_millis"); - writer.WriteNumberValue(MaxAgeMillisValue.Value); - } - - if (MaxDocsValue.HasValue) - { - writer.WritePropertyName("max_docs"); - writer.WriteNumberValue(MaxDocsValue.Value); - } - - if (MaxPrimaryShardDocsValue.HasValue) - { - writer.WritePropertyName("max_primary_shard_docs"); - writer.WriteNumberValue(MaxPrimaryShardDocsValue.Value); - } - - if (MaxPrimaryShardSizeValue is not null) - { - writer.WritePropertyName("max_primary_shard_size"); - JsonSerializer.Serialize(writer, MaxPrimaryShardSizeValue, options); - } - - if (MaxPrimaryShardSizeBytesValue.HasValue) - { - writer.WritePropertyName("max_primary_shard_size_bytes"); - writer.WriteNumberValue(MaxPrimaryShardSizeBytesValue.Value); - } - - if (MaxSizeValue is not null) - { - writer.WritePropertyName("max_size"); - JsonSerializer.Serialize(writer, MaxSizeValue, options); - } - - if (MaxSizeBytesValue.HasValue) - { - writer.WritePropertyName("max_size_bytes"); - writer.WriteNumberValue(MaxSizeBytesValue.Value); - } - - if (MinAgeValue is not null) - { - writer.WritePropertyName("min_age"); - JsonSerializer.Serialize(writer, MinAgeValue, options); - } - - if (MinDocsValue.HasValue) - { - writer.WritePropertyName("min_docs"); - writer.WriteNumberValue(MinDocsValue.Value); - } - - if (MinPrimaryShardDocsValue.HasValue) - { - writer.WritePropertyName("min_primary_shard_docs"); - writer.WriteNumberValue(MinPrimaryShardDocsValue.Value); - } - - if (MinPrimaryShardSizeValue is not null) - { - writer.WritePropertyName("min_primary_shard_size"); - JsonSerializer.Serialize(writer, MinPrimaryShardSizeValue, options); - } - - if (MinPrimaryShardSizeBytesValue.HasValue) - { - writer.WritePropertyName("min_primary_shard_size_bytes"); - writer.WriteNumberValue(MinPrimaryShardSizeBytesValue.Value); - } - - if (MinSizeValue is not null) - { - writer.WritePropertyName("min_size"); - JsonSerializer.Serialize(writer, MinSizeValue, options); - } - - if (MinSizeBytesValue.HasValue) - { - writer.WritePropertyName("min_size_bytes"); - writer.WriteNumberValue(MinSizeBytesValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SearchIdle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SearchIdle.g.cs deleted file mode 100644 index aa44abd1845..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SearchIdle.g.cs +++ /dev/null @@ -1,63 +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.IndexManagement; - -public sealed partial class SearchIdle -{ - [JsonInclude, JsonPropertyName("after")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? After { get; set; } -} - -public sealed partial class SearchIdleDescriptor : SerializableDescriptor -{ - internal SearchIdleDescriptor(Action configure) => configure.Invoke(this); - - public SearchIdleDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? AfterValue { get; set; } - - public SearchIdleDescriptor After(Elastic.Clients.Elasticsearch.Serverless.Duration? after) - { - AfterValue = after; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AfterValue is not null) - { - writer.WritePropertyName("after"); - JsonSerializer.Serialize(writer, AfterValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Segment.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Segment.g.cs deleted file mode 100644 index b99bf6dc123..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Segment.g.cs +++ /dev/null @@ -1,50 +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.IndexManagement; - -public sealed partial class Segment -{ - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary Attributes { get; init; } - [JsonInclude, JsonPropertyName("committed")] - public bool Committed { get; init; } - [JsonInclude, JsonPropertyName("compound")] - public bool Compound { get; init; } - [JsonInclude, JsonPropertyName("deleted_docs")] - public long DeletedDocs { get; init; } - [JsonInclude, JsonPropertyName("generation")] - public int Generation { get; init; } - [JsonInclude, JsonPropertyName("num_docs")] - public long NumDocs { get; init; } - [JsonInclude, JsonPropertyName("search")] - public bool Search { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public double SizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs deleted file mode 100644 index 0d482192161..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsAnalyze.g.cs +++ /dev/null @@ -1,63 +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.IndexManagement; - -public sealed partial class SettingsAnalyze -{ - [JsonInclude, JsonPropertyName("max_token_count")] - public int? MaxTokenCount { get; set; } -} - -public sealed partial class SettingsAnalyzeDescriptor : SerializableDescriptor -{ - internal SettingsAnalyzeDescriptor(Action configure) => configure.Invoke(this); - - public SettingsAnalyzeDescriptor() : base() - { - } - - private int? MaxTokenCountValue { get; set; } - - public SettingsAnalyzeDescriptor MaxTokenCount(int? maxTokenCount) - { - MaxTokenCountValue = maxTokenCount; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxTokenCountValue.HasValue) - { - writer.WritePropertyName("max_token_count"); - writer.WriteNumberValue(MaxTokenCountValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsHighlight.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsHighlight.g.cs deleted file mode 100644 index 2f78a48feb4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsHighlight.g.cs +++ /dev/null @@ -1,63 +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.IndexManagement; - -public sealed partial class SettingsHighlight -{ - [JsonInclude, JsonPropertyName("max_analyzed_offset")] - public int? MaxAnalyzedOffset { get; set; } -} - -public sealed partial class SettingsHighlightDescriptor : SerializableDescriptor -{ - internal SettingsHighlightDescriptor(Action configure) => configure.Invoke(this); - - public SettingsHighlightDescriptor() : base() - { - } - - private int? MaxAnalyzedOffsetValue { get; set; } - - public SettingsHighlightDescriptor MaxAnalyzedOffset(int? maxAnalyzedOffset) - { - MaxAnalyzedOffsetValue = maxAnalyzedOffset; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxAnalyzedOffsetValue.HasValue) - { - writer.WritePropertyName("max_analyzed_offset"); - writer.WriteNumberValue(MaxAnalyzedOffsetValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsQueryString.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsQueryString.g.cs deleted file mode 100644 index 94126f89791..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsQueryString.g.cs +++ /dev/null @@ -1,59 +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.IndexManagement; - -public sealed partial class SettingsQueryString -{ - [JsonInclude, JsonPropertyName("lenient")] - public bool Lenient { get; set; } -} - -public sealed partial class SettingsQueryStringDescriptor : SerializableDescriptor -{ - internal SettingsQueryStringDescriptor(Action configure) => configure.Invoke(this); - - public SettingsQueryStringDescriptor() : base() - { - } - - private bool LenientValue { get; set; } - - public SettingsQueryStringDescriptor Lenient(bool lenient = true) - { - LenientValue = lenient; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSearch.g.cs deleted file mode 100644 index 2cc44700515..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSearch.g.cs +++ /dev/null @@ -1,138 +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.IndexManagement; - -public sealed partial class SettingsSearch -{ - [JsonInclude, JsonPropertyName("idle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SearchIdle? Idle { get; set; } - [JsonInclude, JsonPropertyName("slowlog")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogSettings? Slowlog { get; set; } -} - -public sealed partial class SettingsSearchDescriptor : SerializableDescriptor -{ - internal SettingsSearchDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSearchDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SearchIdle? IdleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SearchIdleDescriptor IdleDescriptor { get; set; } - private Action IdleDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogSettings? SlowlogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogSettingsDescriptor SlowlogDescriptor { get; set; } - private Action SlowlogDescriptorAction { get; set; } - - public SettingsSearchDescriptor Idle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SearchIdle? idle) - { - IdleDescriptor = null; - IdleDescriptorAction = null; - IdleValue = idle; - return Self; - } - - public SettingsSearchDescriptor Idle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SearchIdleDescriptor descriptor) - { - IdleValue = null; - IdleDescriptorAction = null; - IdleDescriptor = descriptor; - return Self; - } - - public SettingsSearchDescriptor Idle(Action configure) - { - IdleValue = null; - IdleDescriptor = null; - IdleDescriptorAction = configure; - return Self; - } - - public SettingsSearchDescriptor Slowlog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogSettings? slowlog) - { - SlowlogDescriptor = null; - SlowlogDescriptorAction = null; - SlowlogValue = slowlog; - return Self; - } - - public SettingsSearchDescriptor Slowlog(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogSettingsDescriptor descriptor) - { - SlowlogValue = null; - SlowlogDescriptorAction = null; - SlowlogDescriptor = descriptor; - return Self; - } - - public SettingsSearchDescriptor Slowlog(Action configure) - { - SlowlogValue = null; - SlowlogDescriptor = null; - SlowlogDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IdleDescriptor is not null) - { - writer.WritePropertyName("idle"); - JsonSerializer.Serialize(writer, IdleDescriptor, options); - } - else if (IdleDescriptorAction is not null) - { - writer.WritePropertyName("idle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SearchIdleDescriptor(IdleDescriptorAction), options); - } - else if (IdleValue is not null) - { - writer.WritePropertyName("idle"); - JsonSerializer.Serialize(writer, IdleValue, options); - } - - if (SlowlogDescriptor is not null) - { - writer.WritePropertyName("slowlog"); - JsonSerializer.Serialize(writer, SlowlogDescriptor, options); - } - else if (SlowlogDescriptorAction is not null) - { - writer.WritePropertyName("slowlog"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogSettingsDescriptor(SlowlogDescriptorAction), options); - } - else if (SlowlogValue is not null) - { - writer.WritePropertyName("slowlog"); - JsonSerializer.Serialize(writer, SlowlogValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarities.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarities.g.cs deleted file mode 100644 index bbbc27724bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarities.g.cs +++ /dev/null @@ -1,177 +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.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.IndexManagement; - -public partial class SettingsSimilarities : IsADictionary -{ - public SettingsSimilarities() - { - } - - public SettingsSimilarities(IDictionary container) : base(container) - { - } - - public void Add(string name, ISettingsSimilarity settingsSimilarity) => BackingDictionary.Add(Sanitize(name), settingsSimilarity); - public bool TryGetSettingsSimilarity(string name, [NotNullWhen(returnValue: true)] out ISettingsSimilarity settingsSimilarity) => BackingDictionary.TryGetValue(Sanitize(name), out settingsSimilarity); - - public bool TryGetSettingsSimilarity(string name, [NotNullWhen(returnValue: true)] out T? settingsSimilarity) where T : class, ISettingsSimilarity - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - settingsSimilarity = finalValue; - return true; - } - - settingsSimilarity = null; - return false; - } -} - -public sealed partial class SettingsSimilaritiesDescriptor : IsADictionaryDescriptor -{ - public SettingsSimilaritiesDescriptor() : base(new SettingsSimilarities()) - { - } - - public SettingsSimilaritiesDescriptor(SettingsSimilarities settingsSimilarities) : base(settingsSimilarities ?? new SettingsSimilarities()) - { - } - - public SettingsSimilaritiesDescriptor Bm25(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Bm25(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Bm25(string settingsSimilarityName, SettingsSimilarityBm25 settingsSimilarityBm25) => AssignVariant(settingsSimilarityName, settingsSimilarityBm25); - public SettingsSimilaritiesDescriptor Boolean(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Boolean(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Boolean(string settingsSimilarityName, SettingsSimilarityBoolean settingsSimilarityBoolean) => AssignVariant(settingsSimilarityName, settingsSimilarityBoolean); - public SettingsSimilaritiesDescriptor Dfi(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Dfi(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Dfi(string settingsSimilarityName, SettingsSimilarityDfi settingsSimilarityDfi) => AssignVariant(settingsSimilarityName, settingsSimilarityDfi); - public SettingsSimilaritiesDescriptor Dfr(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Dfr(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Dfr(string settingsSimilarityName, SettingsSimilarityDfr settingsSimilarityDfr) => AssignVariant(settingsSimilarityName, settingsSimilarityDfr); - public SettingsSimilaritiesDescriptor Ib(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Ib(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Ib(string settingsSimilarityName, SettingsSimilarityIb settingsSimilarityIb) => AssignVariant(settingsSimilarityName, settingsSimilarityIb); - public SettingsSimilaritiesDescriptor Lmd(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Lmd(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Lmd(string settingsSimilarityName, SettingsSimilarityLmd settingsSimilarityLmd) => AssignVariant(settingsSimilarityName, settingsSimilarityLmd); - public SettingsSimilaritiesDescriptor Lmj(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Lmj(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Lmj(string settingsSimilarityName, SettingsSimilarityLmj settingsSimilarityLmj) => AssignVariant(settingsSimilarityName, settingsSimilarityLmj); - public SettingsSimilaritiesDescriptor Scripted(string settingsSimilarityName) => AssignVariant(settingsSimilarityName, null); - public SettingsSimilaritiesDescriptor Scripted(string settingsSimilarityName, Action configure) => AssignVariant(settingsSimilarityName, configure); - public SettingsSimilaritiesDescriptor Scripted(string settingsSimilarityName, SettingsSimilarityScripted settingsSimilarityScripted) => AssignVariant(settingsSimilarityName, settingsSimilarityScripted); -} - -internal sealed partial class SettingsSimilarityInterfaceConverter : JsonConverter -{ - public override ISettingsSimilarity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "BM25": - return JsonSerializer.Deserialize(ref reader, options); - case "boolean": - return JsonSerializer.Deserialize(ref reader, options); - case "DFI": - return JsonSerializer.Deserialize(ref reader, options); - case "DFR": - return JsonSerializer.Deserialize(ref reader, options); - case "IB": - return JsonSerializer.Deserialize(ref reader, options); - case "LMDirichlet": - return JsonSerializer.Deserialize(ref reader, options); - case "LMJelinekMercer": - return JsonSerializer.Deserialize(ref reader, options); - case "scripted": - return JsonSerializer.Deserialize(ref reader, options); - default: - ThrowHelper.ThrowUnknownTaggedUnionVariantJsonException(type, typeof(ISettingsSimilarity)); - return null; - } - } - - public override void Write(Utf8JsonWriter writer, ISettingsSimilarity value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "BM25": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityBm25), options); - return; - case "boolean": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityBoolean), options); - return; - case "DFI": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityDfi), options); - return; - case "DFR": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityDfr), options); - return; - case "IB": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityIb), options); - return; - case "LMDirichlet": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityLmd), options); - return; - case "LMJelinekMercer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityLmj), options); - return; - case "scripted": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SettingsSimilarityScripted), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(SettingsSimilarityInterfaceConverter))] -public partial interface ISettingsSimilarity -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs deleted file mode 100644 index e4fffc4fc9e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBm25.g.cs +++ /dev/null @@ -1,105 +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.IndexManagement; - -public sealed partial class SettingsSimilarityBm25 : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("b")] - public double? b { get; set; } - [JsonInclude, JsonPropertyName("discount_overlaps")] - public bool? DiscountOverlaps { get; set; } - [JsonInclude, JsonPropertyName("k1")] - public double? K1 { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "BM25"; -} - -public sealed partial class SettingsSimilarityBm25Descriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityBm25Descriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityBm25Descriptor() : base() - { - } - - private double? bValue { get; set; } - private bool? DiscountOverlapsValue { get; set; } - private double? K1Value { get; set; } - - public SettingsSimilarityBm25Descriptor b(double? b) - { - bValue = b; - return Self; - } - - public SettingsSimilarityBm25Descriptor DiscountOverlaps(bool? discountOverlaps = true) - { - DiscountOverlapsValue = discountOverlaps; - return Self; - } - - public SettingsSimilarityBm25Descriptor K1(double? k1) - { - K1Value = k1; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (bValue.HasValue) - { - writer.WritePropertyName("b"); - writer.WriteNumberValue(bValue.Value); - } - - if (DiscountOverlapsValue.HasValue) - { - writer.WritePropertyName("discount_overlaps"); - writer.WriteBooleanValue(DiscountOverlapsValue.Value); - } - - if (K1Value.HasValue) - { - writer.WritePropertyName("k1"); - writer.WriteNumberValue(K1Value.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("BM25"); - writer.WriteEndObject(); - } - - SettingsSimilarityBm25 IBuildableDescriptor.Build() => new() - { - b = bValue, - DiscountOverlaps = DiscountOverlapsValue, - K1 = K1Value - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs deleted file mode 100644 index f30ecd4760c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityBoolean.g.cs +++ /dev/null @@ -1,55 +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.IndexManagement; - -public sealed partial class SettingsSimilarityBoolean : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("type")] - public string Type => "boolean"; -} - -public sealed partial class SettingsSimilarityBooleanDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityBooleanDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityBooleanDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue("boolean"); - writer.WriteEndObject(); - } - - SettingsSimilarityBoolean IBuildableDescriptor.Build() => new() - { - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs deleted file mode 100644 index 3d28c4cd67d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfi.g.cs +++ /dev/null @@ -1,69 +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.IndexManagement; - -public sealed partial class SettingsSimilarityDfi : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("independence_measure")] - public Elastic.Clients.Elasticsearch.Serverless.DFIIndependenceMeasure IndependenceMeasure { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "DFI"; -} - -public sealed partial class SettingsSimilarityDfiDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityDfiDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityDfiDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.DFIIndependenceMeasure IndependenceMeasureValue { get; set; } - - public SettingsSimilarityDfiDescriptor IndependenceMeasure(Elastic.Clients.Elasticsearch.Serverless.DFIIndependenceMeasure independenceMeasure) - { - IndependenceMeasureValue = independenceMeasure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("independence_measure"); - JsonSerializer.Serialize(writer, IndependenceMeasureValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("DFI"); - writer.WriteEndObject(); - } - - SettingsSimilarityDfi IBuildableDescriptor.Build() => new() - { - IndependenceMeasure = IndependenceMeasureValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs deleted file mode 100644 index 86bc6723748..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityDfr.g.cs +++ /dev/null @@ -1,93 +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.IndexManagement; - -public sealed partial class SettingsSimilarityDfr : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("after_effect")] - public Elastic.Clients.Elasticsearch.Serverless.DFRAfterEffect AfterEffect { get; set; } - [JsonInclude, JsonPropertyName("basic_model")] - public Elastic.Clients.Elasticsearch.Serverless.DFRBasicModel BasicModel { get; set; } - [JsonInclude, JsonPropertyName("normalization")] - public Elastic.Clients.Elasticsearch.Serverless.Normalization Normalization { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "DFR"; -} - -public sealed partial class SettingsSimilarityDfrDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityDfrDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityDfrDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.DFRAfterEffect AfterEffectValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DFRBasicModel BasicModelValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Normalization NormalizationValue { get; set; } - - public SettingsSimilarityDfrDescriptor AfterEffect(Elastic.Clients.Elasticsearch.Serverless.DFRAfterEffect afterEffect) - { - AfterEffectValue = afterEffect; - return Self; - } - - public SettingsSimilarityDfrDescriptor BasicModel(Elastic.Clients.Elasticsearch.Serverless.DFRBasicModel basicModel) - { - BasicModelValue = basicModel; - return Self; - } - - public SettingsSimilarityDfrDescriptor Normalization(Elastic.Clients.Elasticsearch.Serverless.Normalization normalization) - { - NormalizationValue = normalization; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("after_effect"); - JsonSerializer.Serialize(writer, AfterEffectValue, options); - writer.WritePropertyName("basic_model"); - JsonSerializer.Serialize(writer, BasicModelValue, options); - writer.WritePropertyName("normalization"); - JsonSerializer.Serialize(writer, NormalizationValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("DFR"); - writer.WriteEndObject(); - } - - SettingsSimilarityDfr IBuildableDescriptor.Build() => new() - { - AfterEffect = AfterEffectValue, - BasicModel = BasicModelValue, - Normalization = NormalizationValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs deleted file mode 100644 index bc6b77fa451..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityIb.g.cs +++ /dev/null @@ -1,93 +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.IndexManagement; - -public sealed partial class SettingsSimilarityIb : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("distribution")] - public Elastic.Clients.Elasticsearch.Serverless.IBDistribution Distribution { get; set; } - [JsonInclude, JsonPropertyName("lambda")] - public Elastic.Clients.Elasticsearch.Serverless.IBLambda Lambda { get; set; } - [JsonInclude, JsonPropertyName("normalization")] - public Elastic.Clients.Elasticsearch.Serverless.Normalization Normalization { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "IB"; -} - -public sealed partial class SettingsSimilarityIbDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityIbDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityIbDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IBDistribution DistributionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IBLambda LambdaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Normalization NormalizationValue { get; set; } - - public SettingsSimilarityIbDescriptor Distribution(Elastic.Clients.Elasticsearch.Serverless.IBDistribution distribution) - { - DistributionValue = distribution; - return Self; - } - - public SettingsSimilarityIbDescriptor Lambda(Elastic.Clients.Elasticsearch.Serverless.IBLambda lambda) - { - LambdaValue = lambda; - return Self; - } - - public SettingsSimilarityIbDescriptor Normalization(Elastic.Clients.Elasticsearch.Serverless.Normalization normalization) - { - NormalizationValue = normalization; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("distribution"); - JsonSerializer.Serialize(writer, DistributionValue, options); - writer.WritePropertyName("lambda"); - JsonSerializer.Serialize(writer, LambdaValue, options); - writer.WritePropertyName("normalization"); - JsonSerializer.Serialize(writer, NormalizationValue, options); - writer.WritePropertyName("type"); - writer.WriteStringValue("IB"); - writer.WriteEndObject(); - } - - SettingsSimilarityIb IBuildableDescriptor.Build() => new() - { - Distribution = DistributionValue, - Lambda = LambdaValue, - Normalization = NormalizationValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs deleted file mode 100644 index b5bc8d4dd27..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmd.g.cs +++ /dev/null @@ -1,73 +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.IndexManagement; - -public sealed partial class SettingsSimilarityLmd : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("mu")] - public double? Mu { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "LMDirichlet"; -} - -public sealed partial class SettingsSimilarityLmdDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityLmdDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityLmdDescriptor() : base() - { - } - - private double? MuValue { get; set; } - - public SettingsSimilarityLmdDescriptor Mu(double? mu) - { - MuValue = mu; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MuValue.HasValue) - { - writer.WritePropertyName("mu"); - writer.WriteNumberValue(MuValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("LMDirichlet"); - writer.WriteEndObject(); - } - - SettingsSimilarityLmd IBuildableDescriptor.Build() => new() - { - Mu = MuValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs deleted file mode 100644 index 9399095bf55..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityLmj.g.cs +++ /dev/null @@ -1,73 +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.IndexManagement; - -public sealed partial class SettingsSimilarityLmj : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("lambda")] - public double? Lambda { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "LMJelinekMercer"; -} - -public sealed partial class SettingsSimilarityLmjDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityLmjDescriptor(Action configure) => configure.Invoke(this); - - public SettingsSimilarityLmjDescriptor() : base() - { - } - - private double? LambdaValue { get; set; } - - public SettingsSimilarityLmjDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("LMJelinekMercer"); - writer.WriteEndObject(); - } - - SettingsSimilarityLmj IBuildableDescriptor.Build() => new() - { - Lambda = LambdaValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 67895c00710..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SettingsSimilarityScripted.g.cs +++ /dev/null @@ -1,198 +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.IndexManagement; - -public sealed partial class SettingsSimilarityScripted : ISettingsSimilarity -{ - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "scripted"; - - [JsonInclude, JsonPropertyName("weight_script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? WeightScript { get; set; } -} - -public sealed partial class SettingsSimilarityScriptedDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SettingsSimilarityScriptedDescriptor(Action configure) => configure.Invoke(this); - - 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(); - 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 (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); - } - - 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 = BuildScript(), - WeightScript = BuildWeightScript() - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardCommit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardCommit.g.cs deleted file mode 100644 index 69c1039b6f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardCommit.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class ShardCommit -{ - [JsonInclude, JsonPropertyName("generation")] - public int Generation { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("num_docs")] - public long NumDocs { get; init; } - [JsonInclude, JsonPropertyName("user_data")] - public IReadOnlyDictionary UserData { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs deleted file mode 100644 index f437e50f6ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardFileSizeInfo.g.cs +++ /dev/null @@ -1,44 +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.IndexManagement; - -public sealed partial class ShardFileSizeInfo -{ - [JsonInclude, JsonPropertyName("average_size_in_bytes")] - public long? AverageSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("max_size_in_bytes")] - public long? MaxSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("min_size_in_bytes")] - public long? MinSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardLease.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardLease.g.cs deleted file mode 100644 index 0c2e555d599..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardLease.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class ShardLease -{ - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("retaining_seq_no")] - public long RetainingSeqNo { get; init; } - [JsonInclude, JsonPropertyName("source")] - public string Source { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardPath.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardPath.g.cs deleted file mode 100644 index 27d82a2818b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardPath.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class ShardPath -{ - [JsonInclude, JsonPropertyName("data_path")] - public string DataPath { get; init; } - [JsonInclude, JsonPropertyName("is_custom_data_path")] - public bool IsCustomDataPath { get; init; } - [JsonInclude, JsonPropertyName("state_path")] - public string StatePath { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardQueryCache.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardQueryCache.g.cs deleted file mode 100644 index b5f277c442d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardQueryCache.g.cs +++ /dev/null @@ -1,46 +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.IndexManagement; - -public sealed partial class ShardQueryCache -{ - [JsonInclude, JsonPropertyName("cache_count")] - public long CacheCount { get; init; } - [JsonInclude, JsonPropertyName("cache_size")] - public long CacheSize { get; init; } - [JsonInclude, JsonPropertyName("evictions")] - public long Evictions { get; init; } - [JsonInclude, JsonPropertyName("hit_count")] - public long HitCount { get; init; } - [JsonInclude, JsonPropertyName("memory_size_in_bytes")] - public long MemorySizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("miss_count")] - public long MissCount { get; init; } - [JsonInclude, JsonPropertyName("total_count")] - public long TotalCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRecovery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRecovery.g.cs deleted file mode 100644 index f5830874bfb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRecovery.g.cs +++ /dev/null @@ -1,64 +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.IndexManagement; - -public sealed partial class ShardRecovery -{ - [JsonInclude, JsonPropertyName("id")] - public long Id { get; init; } - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryIndexStatus Index { get; init; } - [JsonInclude, JsonPropertyName("primary")] - public bool Primary { get; init; } - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryOrigin Source { get; init; } - [JsonInclude, JsonPropertyName("stage")] - public string Stage { get; init; } - [JsonInclude, JsonPropertyName("start")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryStartStatus? Start { get; init; } - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("stop_time")] - public DateTimeOffset? StopTime { get; init; } - [JsonInclude, JsonPropertyName("stop_time_in_millis")] - public long? StopTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("target")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RecoveryOrigin Target { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("translog")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogStatus Translog { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } - [JsonInclude, JsonPropertyName("verify_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.VerifyIndex VerifyIndex { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs deleted file mode 100644 index 8b42e634c8f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRetentionLeases.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class ShardRetentionLeases -{ - [JsonInclude, JsonPropertyName("leases")] - public IReadOnlyCollection Leases { get; init; } - [JsonInclude, JsonPropertyName("primary_term")] - public long PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRouting.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRouting.g.cs deleted file mode 100644 index c07c2615e56..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardRouting.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class ShardRouting -{ - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } - [JsonInclude, JsonPropertyName("primary")] - public bool Primary { get; init; } - [JsonInclude, JsonPropertyName("relocating_node")] - public string? RelocatingNode { get; init; } - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardRoutingState State { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs deleted file mode 100644 index 1bb2d1c9baa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class ShardSegmentRouting -{ - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } - [JsonInclude, JsonPropertyName("primary")] - public bool Primary { get; init; } - [JsonInclude, JsonPropertyName("state")] - public string State { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs deleted file mode 100644 index 4b7e5a26ad4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardSequenceNumber.g.cs +++ /dev/null @@ -1,38 +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.IndexManagement; - -public sealed partial class ShardSequenceNumber -{ - [JsonInclude, JsonPropertyName("global_checkpoint")] - public long GlobalCheckpoint { get; init; } - [JsonInclude, JsonPropertyName("local_checkpoint")] - public long LocalCheckpoint { get; init; } - [JsonInclude, JsonPropertyName("max_seq_no")] - public long MaxSeqNo { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardStats.g.cs deleted file mode 100644 index ff095a57b5e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardStats.g.cs +++ /dev/null @@ -1,85 +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.IndexManagement; - -public sealed partial class ShardStats -{ - [JsonInclude, JsonPropertyName("bulk")] - public Elastic.Clients.Elasticsearch.Serverless.BulkStats? Bulk { get; init; } - [JsonInclude, JsonPropertyName("commit")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardCommit? Commit { get; init; } - [JsonInclude, JsonPropertyName("completion")] - public Elastic.Clients.Elasticsearch.Serverless.CompletionStats? Completion { get; init; } - [JsonInclude, JsonPropertyName("docs")] - public Elastic.Clients.Elasticsearch.Serverless.DocStats? Docs { get; init; } - [JsonInclude, JsonPropertyName("fielddata")] - public Elastic.Clients.Elasticsearch.Serverless.FielddataStats? Fielddata { get; init; } - [JsonInclude, JsonPropertyName("flush")] - public Elastic.Clients.Elasticsearch.Serverless.FlushStats? Flush { get; init; } - [JsonInclude, JsonPropertyName("get")] - public Elastic.Clients.Elasticsearch.Serverless.GetStats? Get { get; init; } - [JsonInclude, JsonPropertyName("indexing")] - public Elastic.Clients.Elasticsearch.Serverless.IndexingStats? Indexing { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndicesStats? Indices { get; init; } - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.MappingStats? Mappings { get; init; } - [JsonInclude, JsonPropertyName("merges")] - public Elastic.Clients.Elasticsearch.Serverless.MergesStats? Merges { get; init; } - [JsonInclude, JsonPropertyName("query_cache")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardQueryCache? QueryCache { get; init; } - [JsonInclude, JsonPropertyName("recovery")] - public Elastic.Clients.Elasticsearch.Serverless.RecoveryStats? Recovery { get; init; } - [JsonInclude, JsonPropertyName("refresh")] - public Elastic.Clients.Elasticsearch.Serverless.RefreshStats? Refresh { get; init; } - [JsonInclude, JsonPropertyName("request_cache")] - public Elastic.Clients.Elasticsearch.Serverless.RequestCacheStats? RequestCache { get; init; } - [JsonInclude, JsonPropertyName("retention_leases")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardRetentionLeases? RetentionLeases { get; init; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardRouting? Routing { get; init; } - [JsonInclude, JsonPropertyName("search")] - public Elastic.Clients.Elasticsearch.Serverless.SearchStats? Search { get; init; } - [JsonInclude, JsonPropertyName("segments")] - public Elastic.Clients.Elasticsearch.Serverless.SegmentsStats? Segments { get; init; } - [JsonInclude, JsonPropertyName("seq_no")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardSequenceNumber? SeqNo { get; init; } - [JsonInclude, JsonPropertyName("shard_path")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardPath? ShardPath { get; init; } - [JsonInclude, JsonPropertyName("shards")] - [ReadOnlyIndexNameDictionaryConverter(typeof(object))] - public IReadOnlyDictionary? Shards { get; init; } - [JsonInclude, JsonPropertyName("shard_stats")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardsTotalStats? ShardStats2 { get; init; } - [JsonInclude, JsonPropertyName("store")] - public Elastic.Clients.Elasticsearch.Serverless.StoreStats? Store { get; init; } - [JsonInclude, JsonPropertyName("translog")] - public Elastic.Clients.Elasticsearch.Serverless.TranslogStats? Translog { get; init; } - [JsonInclude, JsonPropertyName("warmer")] - public Elastic.Clients.Elasticsearch.Serverless.WarmerStats? Warmer { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsSegment.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsSegment.g.cs deleted file mode 100644 index bac024e1c59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsSegment.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class ShardsSegment -{ - [JsonInclude, JsonPropertyName("num_committed_segments")] - public int NumCommittedSegments { get; init; } - [JsonInclude, JsonPropertyName("num_search_segments")] - public int NumSearchSegments { get; init; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardSegmentRouting Routing { get; init; } - [JsonInclude, JsonPropertyName("segments")] - public IReadOnlyDictionary Segments { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs deleted file mode 100644 index c75a82ef45e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/ShardsTotalStats.g.cs +++ /dev/null @@ -1,34 +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.IndexManagement; - -public sealed partial class ShardsTotalStats -{ - [JsonInclude, JsonPropertyName("total_count")] - public long TotalCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogSettings.g.cs deleted file mode 100644 index 55a56911276..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogSettings.g.cs +++ /dev/null @@ -1,138 +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.IndexManagement; - -public sealed partial class SlowlogSettings -{ - [JsonInclude, JsonPropertyName("level")] - public string? Level { get; set; } - [JsonInclude, JsonPropertyName("reformat")] - public bool? Reformat { get; set; } - [JsonInclude, JsonPropertyName("source")] - public int? Source { get; set; } - [JsonInclude, JsonPropertyName("threshold")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholds? Threshold { get; set; } -} - -public sealed partial class SlowlogSettingsDescriptor : SerializableDescriptor -{ - internal SlowlogSettingsDescriptor(Action configure) => configure.Invoke(this); - - public SlowlogSettingsDescriptor() : base() - { - } - - private string? LevelValue { get; set; } - private bool? ReformatValue { get; set; } - private int? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholds? ThresholdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdsDescriptor ThresholdDescriptor { get; set; } - private Action ThresholdDescriptorAction { get; set; } - - public SlowlogSettingsDescriptor Level(string? level) - { - LevelValue = level; - return Self; - } - - public SlowlogSettingsDescriptor Reformat(bool? reformat = true) - { - ReformatValue = reformat; - return Self; - } - - public SlowlogSettingsDescriptor Source(int? source) - { - SourceValue = source; - return Self; - } - - public SlowlogSettingsDescriptor Threshold(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholds? threshold) - { - ThresholdDescriptor = null; - ThresholdDescriptorAction = null; - ThresholdValue = threshold; - return Self; - } - - public SlowlogSettingsDescriptor Threshold(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdsDescriptor descriptor) - { - ThresholdValue = null; - ThresholdDescriptorAction = null; - ThresholdDescriptor = descriptor; - return Self; - } - - public SlowlogSettingsDescriptor Threshold(Action configure) - { - ThresholdValue = null; - ThresholdDescriptor = null; - ThresholdDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(LevelValue)) - { - writer.WritePropertyName("level"); - writer.WriteStringValue(LevelValue); - } - - if (ReformatValue.HasValue) - { - writer.WritePropertyName("reformat"); - writer.WriteBooleanValue(ReformatValue.Value); - } - - if (SourceValue.HasValue) - { - writer.WritePropertyName("source"); - writer.WriteNumberValue(SourceValue.Value); - } - - if (ThresholdDescriptor is not null) - { - writer.WritePropertyName("threshold"); - JsonSerializer.Serialize(writer, ThresholdDescriptor, options); - } - else if (ThresholdDescriptorAction is not null) - { - writer.WritePropertyName("threshold"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdsDescriptor(ThresholdDescriptorAction), options); - } - else if (ThresholdValue is not null) - { - writer.WritePropertyName("threshold"); - JsonSerializer.Serialize(writer, ThresholdValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs deleted file mode 100644 index 21a955e447e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholdLevels.g.cs +++ /dev/null @@ -1,108 +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.IndexManagement; - -public sealed partial class SlowlogTresholdLevels -{ - [JsonInclude, JsonPropertyName("debug")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Debug { get; set; } - [JsonInclude, JsonPropertyName("info")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Info { get; set; } - [JsonInclude, JsonPropertyName("trace")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Trace { get; set; } - [JsonInclude, JsonPropertyName("warn")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Warn { get; set; } -} - -public sealed partial class SlowlogTresholdLevelsDescriptor : SerializableDescriptor -{ - internal SlowlogTresholdLevelsDescriptor(Action configure) => configure.Invoke(this); - - public SlowlogTresholdLevelsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? DebugValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? InfoValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TraceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? WarnValue { get; set; } - - public SlowlogTresholdLevelsDescriptor Debug(Elastic.Clients.Elasticsearch.Serverless.Duration? debug) - { - DebugValue = debug; - return Self; - } - - public SlowlogTresholdLevelsDescriptor Info(Elastic.Clients.Elasticsearch.Serverless.Duration? info) - { - InfoValue = info; - return Self; - } - - public SlowlogTresholdLevelsDescriptor Trace(Elastic.Clients.Elasticsearch.Serverless.Duration? trace) - { - TraceValue = trace; - return Self; - } - - public SlowlogTresholdLevelsDescriptor Warn(Elastic.Clients.Elasticsearch.Serverless.Duration? warn) - { - WarnValue = warn; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DebugValue is not null) - { - writer.WritePropertyName("debug"); - JsonSerializer.Serialize(writer, DebugValue, options); - } - - if (InfoValue is not null) - { - writer.WritePropertyName("info"); - JsonSerializer.Serialize(writer, InfoValue, options); - } - - if (TraceValue is not null) - { - writer.WritePropertyName("trace"); - JsonSerializer.Serialize(writer, TraceValue, options); - } - - if (WarnValue is not null) - { - writer.WritePropertyName("warn"); - JsonSerializer.Serialize(writer, WarnValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs deleted file mode 100644 index 33bd4dddd97..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SlowlogTresholds.g.cs +++ /dev/null @@ -1,138 +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.IndexManagement; - -public sealed partial class SlowlogTresholds -{ - [JsonInclude, JsonPropertyName("fetch")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? Fetch { get; set; } - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? Query { get; set; } -} - -public sealed partial class SlowlogTresholdsDescriptor : SerializableDescriptor -{ - internal SlowlogTresholdsDescriptor(Action configure) => configure.Invoke(this); - - public SlowlogTresholdsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? FetchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor FetchDescriptor { get; set; } - private Action FetchDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - - public SlowlogTresholdsDescriptor Fetch(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? fetch) - { - FetchDescriptor = null; - FetchDescriptorAction = null; - FetchValue = fetch; - return Self; - } - - public SlowlogTresholdsDescriptor Fetch(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor descriptor) - { - FetchValue = null; - FetchDescriptorAction = null; - FetchDescriptor = descriptor; - return Self; - } - - public SlowlogTresholdsDescriptor Fetch(Action configure) - { - FetchValue = null; - FetchDescriptor = null; - FetchDescriptorAction = configure; - return Self; - } - - public SlowlogTresholdsDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevels? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SlowlogTresholdsDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SlowlogTresholdsDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FetchDescriptor is not null) - { - writer.WritePropertyName("fetch"); - JsonSerializer.Serialize(writer, FetchDescriptor, options); - } - else if (FetchDescriptorAction is not null) - { - writer.WritePropertyName("fetch"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor(FetchDescriptorAction), options); - } - else if (FetchValue is not null) - { - writer.WritePropertyName("fetch"); - JsonSerializer.Serialize(writer, FetchValue, options); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.SlowlogTresholdLevelsDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SoftDeletes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SoftDeletes.g.cs deleted file mode 100644 index 7a86dfc4ff6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/SoftDeletes.g.cs +++ /dev/null @@ -1,135 +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.IndexManagement; - -public sealed partial class SoftDeletes -{ - /// - /// - /// Indicates whether soft deletes are enabled on the index. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - /// - /// - /// The maximum period to retain a shard history retention lease before it is considered expired. - /// Shard history retention leases ensure that soft deletes are retained during merges on the Lucene - /// index. If a soft delete is merged away before it can be replicated to a follower the following - /// process will fail due to incomplete history on the leader. - /// - /// - [JsonInclude, JsonPropertyName("retention_lease")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RetentionLease? RetentionLease { get; set; } -} - -public sealed partial class SoftDeletesDescriptor : SerializableDescriptor -{ - internal SoftDeletesDescriptor(Action configure) => configure.Invoke(this); - - public SoftDeletesDescriptor() : base() - { - } - - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RetentionLease? RetentionLeaseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RetentionLeaseDescriptor RetentionLeaseDescriptor { get; set; } - private Action RetentionLeaseDescriptorAction { get; set; } - - /// - /// - /// Indicates whether soft deletes are enabled on the index. - /// - /// - public SoftDeletesDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - /// - /// - /// The maximum period to retain a shard history retention lease before it is considered expired. - /// Shard history retention leases ensure that soft deletes are retained during merges on the Lucene - /// index. If a soft delete is merged away before it can be replicated to a follower the following - /// process will fail due to incomplete history on the leader. - /// - /// - public SoftDeletesDescriptor RetentionLease(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RetentionLease? retentionLease) - { - RetentionLeaseDescriptor = null; - RetentionLeaseDescriptorAction = null; - RetentionLeaseValue = retentionLease; - return Self; - } - - public SoftDeletesDescriptor RetentionLease(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RetentionLeaseDescriptor descriptor) - { - RetentionLeaseValue = null; - RetentionLeaseDescriptorAction = null; - RetentionLeaseDescriptor = descriptor; - return Self; - } - - public SoftDeletesDescriptor RetentionLease(Action configure) - { - RetentionLeaseValue = null; - RetentionLeaseDescriptor = null; - RetentionLeaseDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (RetentionLeaseDescriptor is not null) - { - writer.WritePropertyName("retention_lease"); - JsonSerializer.Serialize(writer, RetentionLeaseDescriptor, options); - } - else if (RetentionLeaseDescriptorAction is not null) - { - writer.WritePropertyName("retention_lease"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.RetentionLeaseDescriptor(RetentionLeaseDescriptorAction), options); - } - else if (RetentionLeaseValue is not null) - { - writer.WritePropertyName("retention_lease"); - JsonSerializer.Serialize(writer, RetentionLeaseValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Storage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Storage.g.cs deleted file mode 100644 index d24cf487179..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Storage.g.cs +++ /dev/null @@ -1,90 +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.IndexManagement; - -public sealed partial class Storage -{ - /// - /// - /// You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. - /// This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This - /// setting is useful, for example, if you are in an environment where you can not control the ability to create a lot - /// of memory maps so you need disable the ability to use memory-mapping. - /// - /// - [JsonInclude, JsonPropertyName("allow_mmap")] - public bool? AllowMmap { get; set; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageType Type { get; set; } -} - -public sealed partial class StorageDescriptor : SerializableDescriptor -{ - internal StorageDescriptor(Action configure) => configure.Invoke(this); - - public StorageDescriptor() : base() - { - } - - private bool? AllowMmapValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageType TypeValue { get; set; } - - /// - /// - /// You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap. - /// This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This - /// setting is useful, for example, if you are in an environment where you can not control the ability to create a lot - /// of memory maps so you need disable the ability to use memory-mapping. - /// - /// - public StorageDescriptor AllowMmap(bool? allowMmap = true) - { - AllowMmapValue = allowMmap; - return Self; - } - - public StorageDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.StorageType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowMmapValue.HasValue) - { - writer.WritePropertyName("allow_mmap"); - writer.WriteBooleanValue(AllowMmapValue.Value); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Template.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Template.g.cs deleted file mode 100644 index d5eee844bc2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Template.g.cs +++ /dev/null @@ -1,39 +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.IndexManagement; - -public sealed partial class Template -{ - [JsonInclude, JsonPropertyName("aliases")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Alias))] - public IReadOnlyDictionary Aliases { get; init; } - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping Mappings { get; init; } - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexSettings Settings { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TokenDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TokenDetail.g.cs deleted file mode 100644 index 060b1505a10..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TokenDetail.g.cs +++ /dev/null @@ -1,36 +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.IndexManagement; - -public sealed partial class TokenDetail -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("tokens")] - public IReadOnlyCollection Tokens { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Translog.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Translog.g.cs deleted file mode 100644 index 5d44519a217..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/Translog.g.cs +++ /dev/null @@ -1,180 +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.IndexManagement; - -public sealed partial class Translog -{ - /// - /// - /// Whether or not to fsync and commit the translog after every index, delete, update, or bulk request. - /// - /// - [JsonInclude, JsonPropertyName("durability")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDurability? Durability { get; set; } - - /// - /// - /// The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not - /// part of a Lucene commit point). Although these operations are available for reads, they will need - /// to be replayed if the shard was stopped and had to be recovered. This setting controls the - /// maximum total size of these operations, to prevent recoveries from taking too long. Once the - /// maximum size has been reached a flush will happen, generating a new Lucene commit point. - /// - /// - [JsonInclude, JsonPropertyName("flush_threshold_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? FlushThresholdSize { get; set; } - [JsonInclude, JsonPropertyName("retention")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogRetention? Retention { get; set; } - - /// - /// - /// How often the translog is fsynced to disk and committed, regardless of write operations. - /// Values less than 100ms are not allowed. - /// - /// - [JsonInclude, JsonPropertyName("sync_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? SyncInterval { get; set; } -} - -public sealed partial class TranslogDescriptor : SerializableDescriptor -{ - internal TranslogDescriptor(Action configure) => configure.Invoke(this); - - public TranslogDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDurability? DurabilityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? FlushThresholdSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogRetention? RetentionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogRetentionDescriptor RetentionDescriptor { get; set; } - private Action RetentionDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? SyncIntervalValue { get; set; } - - /// - /// - /// Whether or not to fsync and commit the translog after every index, delete, update, or bulk request. - /// - /// - public TranslogDescriptor Durability(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogDurability? durability) - { - DurabilityValue = durability; - return Self; - } - - /// - /// - /// The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not - /// part of a Lucene commit point). Although these operations are available for reads, they will need - /// to be replayed if the shard was stopped and had to be recovered. This setting controls the - /// maximum total size of these operations, to prevent recoveries from taking too long. Once the - /// maximum size has been reached a flush will happen, generating a new Lucene commit point. - /// - /// - public TranslogDescriptor FlushThresholdSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? flushThresholdSize) - { - FlushThresholdSizeValue = flushThresholdSize; - return Self; - } - - public TranslogDescriptor Retention(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogRetention? retention) - { - RetentionDescriptor = null; - RetentionDescriptorAction = null; - RetentionValue = retention; - return Self; - } - - public TranslogDescriptor Retention(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogRetentionDescriptor descriptor) - { - RetentionValue = null; - RetentionDescriptorAction = null; - RetentionDescriptor = descriptor; - return Self; - } - - public TranslogDescriptor Retention(Action configure) - { - RetentionValue = null; - RetentionDescriptor = null; - RetentionDescriptorAction = configure; - return Self; - } - - /// - /// - /// How often the translog is fsynced to disk and committed, regardless of write operations. - /// Values less than 100ms are not allowed. - /// - /// - public TranslogDescriptor SyncInterval(Elastic.Clients.Elasticsearch.Serverless.Duration? syncInterval) - { - SyncIntervalValue = syncInterval; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DurabilityValue is not null) - { - writer.WritePropertyName("durability"); - JsonSerializer.Serialize(writer, DurabilityValue, options); - } - - if (FlushThresholdSizeValue is not null) - { - writer.WritePropertyName("flush_threshold_size"); - JsonSerializer.Serialize(writer, FlushThresholdSizeValue, options); - } - - if (RetentionDescriptor is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, RetentionDescriptor, options); - } - else if (RetentionDescriptorAction is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.TranslogRetentionDescriptor(RetentionDescriptorAction), options); - } - else if (RetentionValue is not null) - { - writer.WritePropertyName("retention"); - JsonSerializer.Serialize(writer, RetentionValue, options); - } - - if (SyncIntervalValue is not null) - { - writer.WritePropertyName("sync_interval"); - JsonSerializer.Serialize(writer, SyncIntervalValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogRetention.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogRetention.g.cs deleted file mode 100644 index f75d4f1b16a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogRetention.g.cs +++ /dev/null @@ -1,115 +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.IndexManagement; - -public sealed partial class TranslogRetention -{ - /// - /// - /// This controls the maximum duration for which translog files are kept by each shard. Keeping more - /// translog files increases the chance of performing an operation based sync when recovering replicas. If - /// the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting - /// is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in - /// indices created in Elasticsearch versions 7.0.0 and later. - /// - /// - [JsonInclude, JsonPropertyName("age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Age { get; set; } - - /// - /// - /// This controls the total size of translog files to keep for each shard. Keeping more translog files increases - /// the chance of performing an operation based sync when recovering a replica. If the translog files are not - /// sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be - /// set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch - /// versions 7.0.0 and later. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; set; } -} - -public sealed partial class TranslogRetentionDescriptor : SerializableDescriptor -{ - internal TranslogRetentionDescriptor(Action configure) => configure.Invoke(this); - - public TranslogRetentionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? AgeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? SizeValue { get; set; } - - /// - /// - /// This controls the maximum duration for which translog files are kept by each shard. Keeping more - /// translog files increases the chance of performing an operation based sync when recovering replicas. If - /// the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting - /// is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in - /// indices created in Elasticsearch versions 7.0.0 and later. - /// - /// - public TranslogRetentionDescriptor Age(Elastic.Clients.Elasticsearch.Serverless.Duration? age) - { - AgeValue = age; - return Self; - } - - /// - /// - /// This controls the total size of translog files to keep for each shard. Keeping more translog files increases - /// the chance of performing an operation based sync when recovering a replica. If the translog files are not - /// sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be - /// set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch - /// versions 7.0.0 and later. - /// - /// - public TranslogRetentionDescriptor Size(Elastic.Clients.Elasticsearch.Serverless.ByteSize? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AgeValue is not null) - { - writer.WritePropertyName("age"); - JsonSerializer.Serialize(writer, AgeValue, options); - } - - if (SizeValue is not null) - { - writer.WritePropertyName("size"); - JsonSerializer.Serialize(writer, SizeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogStatus.g.cs deleted file mode 100644 index bd66679ffc6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TranslogStatus.g.cs +++ /dev/null @@ -1,44 +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.IndexManagement; - -public sealed partial class TranslogStatus -{ - [JsonInclude, JsonPropertyName("percent")] - public double Percent { get; init; } - [JsonInclude, JsonPropertyName("recovered")] - public long Recovered { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } - [JsonInclude, JsonPropertyName("total_on_start")] - public long TotalOnStart { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/VerifyIndex.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/VerifyIndex.g.cs deleted file mode 100644 index f70d7162de6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/VerifyIndex.g.cs +++ /dev/null @@ -1,40 +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.IndexManagement; - -public sealed partial class VerifyIndex -{ - [JsonInclude, JsonPropertyName("check_index_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? CheckIndexTime { get; init; } - [JsonInclude, JsonPropertyName("check_index_time_in_millis")] - public long CheckIndexTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexingStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexingStats.g.cs deleted file mode 100644 index 7b00176e9bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexingStats.g.cs +++ /dev/null @@ -1,62 +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 IndexingStats -{ - [JsonInclude, JsonPropertyName("delete_current")] - public long DeleteCurrent { get; init; } - [JsonInclude, JsonPropertyName("delete_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? DeleteTime { get; init; } - [JsonInclude, JsonPropertyName("delete_time_in_millis")] - public long DeleteTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("delete_total")] - public long DeleteTotal { get; init; } - [JsonInclude, JsonPropertyName("index_current")] - public long IndexCurrent { get; init; } - [JsonInclude, JsonPropertyName("index_failed")] - public long IndexFailed { get; init; } - [JsonInclude, JsonPropertyName("index_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? IndexTime { get; init; } - [JsonInclude, JsonPropertyName("index_time_in_millis")] - public long IndexTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("index_total")] - public long IndexTotal { get; init; } - [JsonInclude, JsonPropertyName("is_throttled")] - public bool IsThrottled { get; init; } - [JsonInclude, JsonPropertyName("noop_update_total")] - public long NoopUpdateTotal { get; init; } - [JsonInclude, JsonPropertyName("throttle_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ThrottleTime { get; init; } - [JsonInclude, JsonPropertyName("throttle_time_in_millis")] - public long ThrottleTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("types")] - public IReadOnlyDictionary? Types { get; init; } - [JsonInclude, JsonPropertyName("write_load")] - public double? WriteLoad { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndicesOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndicesOptions.g.cs deleted file mode 100644 index a71d5c87c47..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndicesOptions.g.cs +++ /dev/null @@ -1,172 +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; - -/// -/// -/// Controls how to deal with unavailable concrete indices (closed or missing), how wildcard expressions are expanded -/// to actual indices (all, closed or open indices) and how to deal with wildcard expressions that resolve to no indices. -/// -/// -public sealed partial class IndicesOptions -{ - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - [JsonInclude, JsonPropertyName("allow_no_indices")] - public bool? AllowNoIndices { get; set; } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument - /// determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - /// such as open,hidden. - /// - /// - [JsonInclude, JsonPropertyName("expand_wildcards")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.ExpandWildcard))] - public ICollection? ExpandWildcards { get; set; } - - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - [JsonInclude, JsonPropertyName("ignore_throttled")] - public bool? IgnoreThrottled { get; set; } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } -} - -/// -/// -/// Controls how to deal with unavailable concrete indices (closed or missing), how wildcard expressions are expanded -/// to actual indices (all, closed or open indices) and how to deal with wildcard expressions that resolve to no indices. -/// -/// -public sealed partial class IndicesOptionsDescriptor : SerializableDescriptor -{ - internal IndicesOptionsDescriptor(Action configure) => configure.Invoke(this); - - public IndicesOptionsDescriptor() : base() - { - } - - private bool? AllowNoIndicesValue { get; set; } - private ICollection? ExpandWildcardsValue { get; set; } - private bool? IgnoreThrottledValue { get; set; } - private bool? IgnoreUnavailableValue { get; set; } - - /// - /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. - /// - /// - public IndicesOptionsDescriptor AllowNoIndices(bool? allowNoIndices = true) - { - AllowNoIndicesValue = allowNoIndices; - return Self; - } - - /// - /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument - /// determines whether wildcard expressions match hidden data streams. Supports comma-separated values, - /// such as open,hidden. - /// - /// - public IndicesOptionsDescriptor ExpandWildcards(ICollection? expandWildcards) - { - ExpandWildcardsValue = expandWildcards; - return Self; - } - - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - public IndicesOptionsDescriptor IgnoreThrottled(bool? ignoreThrottled = true) - { - IgnoreThrottledValue = ignoreThrottled; - return Self; - } - - /// - /// - /// If true, missing or closed indices are not included in the response. - /// - /// - public IndicesOptionsDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowNoIndicesValue.HasValue) - { - writer.WritePropertyName("allow_no_indices"); - writer.WriteBooleanValue(AllowNoIndicesValue.Value); - } - - if (ExpandWildcardsValue is not null) - { - writer.WritePropertyName("expand_wildcards"); - SingleOrManySerializationHelper.Serialize(ExpandWildcardsValue, writer, options); - } - - if (IgnoreThrottledValue.HasValue) - { - writer.WritePropertyName("ignore_throttled"); - writer.WriteBooleanValue(IgnoreThrottledValue.Value); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs deleted file mode 100644 index 3f8912a1069..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpoint.g.cs +++ /dev/null @@ -1,127 +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.Inference; - -/// -/// -/// Configuration options when storing the inference endpoint -/// -/// -public sealed partial class InferenceEndpoint -{ - /// - /// - /// The service type - /// - /// - [JsonInclude, JsonPropertyName("service")] - public string Service { get; set; } - - /// - /// - /// Settings specific to the service - /// - /// - [JsonInclude, JsonPropertyName("service_settings")] - public object ServiceSettings { get; set; } - - /// - /// - /// Task settings specific to the service and task type - /// - /// - [JsonInclude, JsonPropertyName("task_settings")] - public object? TaskSettings { get; set; } -} - -/// -/// -/// Configuration options when storing the inference endpoint -/// -/// -public sealed partial class InferenceEndpointDescriptor : SerializableDescriptor -{ - internal InferenceEndpointDescriptor(Action configure) => configure.Invoke(this); - - public InferenceEndpointDescriptor() : base() - { - } - - private string ServiceValue { get; set; } - private object ServiceSettingsValue { get; set; } - private object? TaskSettingsValue { get; set; } - - /// - /// - /// The service type - /// - /// - public InferenceEndpointDescriptor Service(string service) - { - ServiceValue = service; - return Self; - } - - /// - /// - /// Settings specific to the service - /// - /// - public InferenceEndpointDescriptor ServiceSettings(object serviceSettings) - { - ServiceSettingsValue = serviceSettings; - return Self; - } - - /// - /// - /// Task settings specific to the service and task type - /// - /// - public InferenceEndpointDescriptor TaskSettings(object? taskSettings) - { - TaskSettingsValue = taskSettings; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("service"); - writer.WriteStringValue(ServiceValue); - writer.WritePropertyName("service_settings"); - JsonSerializer.Serialize(writer, ServiceSettingsValue, options); - if (TaskSettingsValue is not null) - { - writer.WritePropertyName("task_settings"); - JsonSerializer.Serialize(writer, TaskSettingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs deleted file mode 100644 index aee66bad661..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Inference/InferenceEndpointInfo.g.cs +++ /dev/null @@ -1,76 +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.Inference; - -/// -/// -/// Represents an inference endpoint as returned by the GET API -/// -/// -public sealed partial class InferenceEndpointInfo -{ - /// - /// - /// The inference Id - /// - /// - [JsonInclude, JsonPropertyName("inference_id")] - public string InferenceId { get; init; } - - /// - /// - /// The service type - /// - /// - [JsonInclude, JsonPropertyName("service")] - public string Service { get; init; } - - /// - /// - /// Settings specific to the service - /// - /// - [JsonInclude, JsonPropertyName("service_settings")] - public object ServiceSettings { get; init; } - - /// - /// - /// Task settings specific to the service and task type - /// - /// - [JsonInclude, JsonPropertyName("task_settings")] - public object? TaskSettings { get; init; } - - /// - /// - /// The task type - /// - /// - [JsonInclude, JsonPropertyName("task_type")] - public Elastic.Clients.Elasticsearch.Serverless.Inference.TaskType TaskType { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs deleted file mode 100644 index d90d96e78bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AppendProcessor.g.cs +++ /dev/null @@ -1,575 +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.Ingest; - -public sealed partial class AppendProcessor -{ - /// - /// - /// If false, the processor does not append values already present in the field. - /// - /// - [JsonInclude, JsonPropertyName("allow_duplicates")] - public bool? AllowDuplicates { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The value to be appended. Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("value")] - [SingleOrManyCollectionConverter(typeof(object))] - public ICollection Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(AppendProcessor appendProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Append(appendProcessor); -} - -public sealed partial class AppendProcessorDescriptor : SerializableDescriptor> -{ - internal AppendProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public AppendProcessorDescriptor() : base() - { - } - - private bool? AllowDuplicatesValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private ICollection ValueValue { get; set; } - - /// - /// - /// If false, the processor does not append values already present in the field. - /// - /// - public AppendProcessorDescriptor AllowDuplicates(bool? allowDuplicates = true) - { - AllowDuplicatesValue = allowDuplicates; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public AppendProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - public AppendProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public AppendProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public AppendProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public AppendProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AppendProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public AppendProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The value to be appended. Supports template snippets. - /// - /// - public AppendProcessorDescriptor Value(ICollection value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowDuplicatesValue.HasValue) - { - writer.WritePropertyName("allow_duplicates"); - writer.WriteBooleanValue(AllowDuplicatesValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("value"); - SingleOrManySerializationHelper.Serialize(ValueValue, writer, options); - writer.WriteEndObject(); - } -} - -public sealed partial class AppendProcessorDescriptor : SerializableDescriptor -{ - internal AppendProcessorDescriptor(Action configure) => configure.Invoke(this); - - public AppendProcessorDescriptor() : base() - { - } - - private bool? AllowDuplicatesValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private ICollection ValueValue { get; set; } - - /// - /// - /// If false, the processor does not append values already present in the field. - /// - /// - public AppendProcessorDescriptor AllowDuplicates(bool? allowDuplicates = true) - { - AllowDuplicatesValue = allowDuplicates; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public AppendProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - public AppendProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be appended to. - /// Supports template snippets. - /// - /// - public AppendProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public AppendProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public AppendProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public AppendProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AppendProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AppendProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public AppendProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The value to be appended. Supports template snippets. - /// - /// - public AppendProcessorDescriptor Value(ICollection value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowDuplicatesValue.HasValue) - { - writer.WritePropertyName("allow_duplicates"); - writer.WriteBooleanValue(AllowDuplicatesValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("value"); - SingleOrManySerializationHelper.Serialize(ValueValue, writer, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AttachmentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AttachmentProcessor.g.cs deleted file mode 100644 index 0a33244ee82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/AttachmentProcessor.g.cs +++ /dev/null @@ -1,892 +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.Ingest; - -public sealed partial class AttachmentProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// The number of chars being used for extraction to prevent huge fields. - /// Use -1 for no limit. - /// - /// - [JsonInclude, JsonPropertyName("indexed_chars")] - public long? IndexedChars { get; set; } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - [JsonInclude, JsonPropertyName("indexed_chars_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? IndexedCharsField { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Array of properties to select to be stored. - /// Can be content, title, name, author, keywords, date, content_type, content_length, language. - /// - /// - [JsonInclude, JsonPropertyName("properties")] - public ICollection? Properties { get; set; } - - /// - /// - /// If true, the binary field will be removed from the document - /// - /// - [JsonInclude, JsonPropertyName("remove_binary")] - public bool? RemoveBinary { get; set; } - - /// - /// - /// Field containing the name of the resource to decode. - /// If specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection. - /// - /// - [JsonInclude, JsonPropertyName("resource_name")] - public string? ResourceName { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(AttachmentProcessor attachmentProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Attachment(attachmentProcessor); -} - -public sealed partial class AttachmentProcessorDescriptor : SerializableDescriptor> -{ - internal AttachmentProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public AttachmentProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private long? IndexedCharsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IndexedCharsFieldValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private bool? RemoveBinaryValue { get; set; } - private string? ResourceNameValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public AttachmentProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - public AttachmentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public AttachmentProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public AttachmentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public AttachmentProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// The number of chars being used for extraction to prevent huge fields. - /// Use -1 for no limit. - /// - /// - public AttachmentProcessorDescriptor IndexedChars(long? indexedChars) - { - IndexedCharsValue = indexedChars; - return Self; - } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - public AttachmentProcessorDescriptor IndexedCharsField(Elastic.Clients.Elasticsearch.Serverless.Field? indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public AttachmentProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Array of properties to select to be stored. - /// Can be content, title, name, author, keywords, date, content_type, content_length, language. - /// - /// - public AttachmentProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// If true, the binary field will be removed from the document - /// - /// - public AttachmentProcessorDescriptor RemoveBinary(bool? removeBinary = true) - { - RemoveBinaryValue = removeBinary; - return Self; - } - - /// - /// - /// Field containing the name of the resource to decode. - /// If specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection. - /// - /// - public AttachmentProcessorDescriptor ResourceName(string? resourceName) - { - ResourceNameValue = resourceName; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public AttachmentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - public AttachmentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IndexedCharsValue.HasValue) - { - writer.WritePropertyName("indexed_chars"); - writer.WriteNumberValue(IndexedCharsValue.Value); - } - - if (IndexedCharsFieldValue is not null) - { - writer.WritePropertyName("indexed_chars_field"); - JsonSerializer.Serialize(writer, IndexedCharsFieldValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RemoveBinaryValue.HasValue) - { - writer.WritePropertyName("remove_binary"); - writer.WriteBooleanValue(RemoveBinaryValue.Value); - } - - if (!string.IsNullOrEmpty(ResourceNameValue)) - { - writer.WritePropertyName("resource_name"); - writer.WriteStringValue(ResourceNameValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AttachmentProcessorDescriptor : SerializableDescriptor -{ - internal AttachmentProcessorDescriptor(Action configure) => configure.Invoke(this); - - public AttachmentProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private long? IndexedCharsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IndexedCharsFieldValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private bool? RemoveBinaryValue { get; set; } - private string? ResourceNameValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public AttachmentProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - public AttachmentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the base64 encoded field from. - /// - /// - public AttachmentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public AttachmentProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public AttachmentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public AttachmentProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// The number of chars being used for extraction to prevent huge fields. - /// Use -1 for no limit. - /// - /// - public AttachmentProcessorDescriptor IndexedChars(long? indexedChars) - { - IndexedCharsValue = indexedChars; - return Self; - } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - public AttachmentProcessorDescriptor IndexedCharsField(Elastic.Clients.Elasticsearch.Serverless.Field? indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - /// - /// - /// Field name from which you can overwrite the number of chars being used for extraction. - /// - /// - public AttachmentProcessorDescriptor IndexedCharsField(Expression> indexedCharsField) - { - IndexedCharsFieldValue = indexedCharsField; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public AttachmentProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public AttachmentProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Array of properties to select to be stored. - /// Can be content, title, name, author, keywords, date, content_type, content_length, language. - /// - /// - public AttachmentProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// If true, the binary field will be removed from the document - /// - /// - public AttachmentProcessorDescriptor RemoveBinary(bool? removeBinary = true) - { - RemoveBinaryValue = removeBinary; - return Self; - } - - /// - /// - /// Field containing the name of the resource to decode. - /// If specified, the processor passes this resource name to the underlying Tika library to enable Resource Name Based Detection. - /// - /// - public AttachmentProcessorDescriptor ResourceName(string? resourceName) - { - ResourceNameValue = resourceName; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public AttachmentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - public AttachmentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the attachment information. - /// - /// - public AttachmentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IndexedCharsValue.HasValue) - { - writer.WritePropertyName("indexed_chars"); - writer.WriteNumberValue(IndexedCharsValue.Value); - } - - if (IndexedCharsFieldValue is not null) - { - writer.WritePropertyName("indexed_chars_field"); - JsonSerializer.Serialize(writer, IndexedCharsFieldValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RemoveBinaryValue.HasValue) - { - writer.WritePropertyName("remove_binary"); - writer.WriteBooleanValue(RemoveBinaryValue.Value); - } - - if (!string.IsNullOrEmpty(ResourceNameValue)) - { - writer.WritePropertyName("resource_name"); - writer.WriteStringValue(ResourceNameValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/BytesProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/BytesProcessor.g.cs deleted file mode 100644 index 2477837b43a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/BytesProcessor.g.cs +++ /dev/null @@ -1,626 +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.Ingest; - -public sealed partial class BytesProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to convert. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(BytesProcessor bytesProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Bytes(bytesProcessor); -} - -public sealed partial class BytesProcessorDescriptor : SerializableDescriptor> -{ - internal BytesProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public BytesProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public BytesProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to convert. - /// - /// - public BytesProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to convert. - /// - /// - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to convert. - /// - /// - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public BytesProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public BytesProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public BytesProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public BytesProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public BytesProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public BytesProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public BytesProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class BytesProcessorDescriptor : SerializableDescriptor -{ - internal BytesProcessorDescriptor(Action configure) => configure.Invoke(this); - - public BytesProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public BytesProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to convert. - /// - /// - public BytesProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to convert. - /// - /// - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to convert. - /// - /// - public BytesProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public BytesProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public BytesProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public BytesProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public BytesProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public BytesProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public BytesProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public BytesProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public BytesProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public BytesProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CircleProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CircleProcessor.g.cs deleted file mode 100644 index f0ccc3c7d70..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CircleProcessor.g.cs +++ /dev/null @@ -1,698 +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.Ingest; - -public sealed partial class CircleProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The difference between the resulting inscribed distance from center to side and the circle’s radius (measured in meters for geo_shape, unit-less for shape). - /// - /// - [JsonInclude, JsonPropertyName("error_distance")] - public double ErrorDistance { get; set; } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Which field mapping type is to be used when processing the circle: geo_shape or shape. - /// - /// - [JsonInclude, JsonPropertyName("shape_type")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.ShapeType ShapeType { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(CircleProcessor circleProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Circle(circleProcessor); -} - -public sealed partial class CircleProcessorDescriptor : SerializableDescriptor> -{ - internal CircleProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public CircleProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private double ErrorDistanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ShapeType ShapeTypeValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public CircleProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The difference between the resulting inscribed distance from center to side and the circle’s radius (measured in meters for geo_shape, unit-less for shape). - /// - /// - public CircleProcessorDescriptor ErrorDistance(double errorDistance) - { - ErrorDistanceValue = errorDistance; - return Self; - } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - public CircleProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public CircleProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public CircleProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public CircleProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public CircleProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CircleProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Which field mapping type is to be used when processing the circle: geo_shape or shape. - /// - /// - public CircleProcessorDescriptor ShapeType(Elastic.Clients.Elasticsearch.Serverless.Ingest.ShapeType shapeType) - { - ShapeTypeValue = shapeType; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public CircleProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - public CircleProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("error_distance"); - writer.WriteNumberValue(ErrorDistanceValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("shape_type"); - JsonSerializer.Serialize(writer, ShapeTypeValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CircleProcessorDescriptor : SerializableDescriptor -{ - internal CircleProcessorDescriptor(Action configure) => configure.Invoke(this); - - public CircleProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private double ErrorDistanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ShapeType ShapeTypeValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public CircleProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The difference between the resulting inscribed distance from center to side and the circle’s radius (measured in meters for geo_shape, unit-less for shape). - /// - /// - public CircleProcessorDescriptor ErrorDistance(double errorDistance) - { - ErrorDistanceValue = errorDistance; - return Self; - } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - public CircleProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to interpret as a circle. Either a string in WKT format or a map for GeoJSON. - /// - /// - public CircleProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public CircleProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public CircleProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public CircleProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public CircleProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CircleProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CircleProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Which field mapping type is to be used when processing the circle: geo_shape or shape. - /// - /// - public CircleProcessorDescriptor ShapeType(Elastic.Clients.Elasticsearch.Serverless.Ingest.ShapeType shapeType) - { - ShapeTypeValue = shapeType; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public CircleProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - public CircleProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to - /// By default, the field is updated in-place. - /// - /// - public CircleProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("error_distance"); - writer.WriteNumberValue(ErrorDistanceValue); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("shape_type"); - JsonSerializer.Serialize(writer, ShapeTypeValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs deleted file mode 100644 index 5bec2b573de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CommunityIDProcessor.g.cs +++ /dev/null @@ -1,1310 +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.Ingest; - -public sealed partial class CommunityIDProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Field containing the destination IP address. - /// - /// - [JsonInclude, JsonPropertyName("destination_ip")] - public Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIp { get; set; } - - /// - /// - /// Field containing the destination port. - /// - /// - [JsonInclude, JsonPropertyName("destination_port")] - public Elastic.Clients.Elasticsearch.Serverless.Field? DestinationPort { get; set; } - - /// - /// - /// Field containing the IANA number. - /// - /// - [JsonInclude, JsonPropertyName("iana_number")] - public Elastic.Clients.Elasticsearch.Serverless.Field? IanaNumber { get; set; } - - /// - /// - /// Field containing the ICMP code. - /// - /// - [JsonInclude, JsonPropertyName("icmp_code")] - public Elastic.Clients.Elasticsearch.Serverless.Field? IcmpCode { get; set; } - - /// - /// - /// Field containing the ICMP type. - /// - /// - [JsonInclude, JsonPropertyName("icmp_type")] - public Elastic.Clients.Elasticsearch.Serverless.Field? IcmpType { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The - /// seed can prevent hash collisions between network domains, such as a staging - /// and production network that use the same addressing scheme. - /// - /// - [JsonInclude, JsonPropertyName("seed")] - public int? Seed { get; set; } - - /// - /// - /// Field containing the source IP address. - /// - /// - [JsonInclude, JsonPropertyName("source_ip")] - public Elastic.Clients.Elasticsearch.Serverless.Field? SourceIp { get; set; } - - /// - /// - /// Field containing the source port. - /// - /// - [JsonInclude, JsonPropertyName("source_port")] - public Elastic.Clients.Elasticsearch.Serverless.Field? SourcePort { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Output field for the community ID. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - [JsonInclude, JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Transport { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(CommunityIDProcessor communityIDProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.CommunityId(communityIDProcessor); -} - -public sealed partial class CommunityIDProcessorDescriptor : SerializableDescriptor> -{ - internal CommunityIDProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public CommunityIDProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationPortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IanaNumberValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpCodeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpTypeValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private int? SeedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SourcePortValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TransportValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public CommunityIDProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public CommunityIDProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination port. - /// - /// - public CommunityIDProcessorDescriptor DestinationPort(Elastic.Clients.Elasticsearch.Serverless.Field? destinationPort) - { - DestinationPortValue = destinationPort; - return Self; - } - - /// - /// - /// Field containing the destination port. - /// - /// - public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) - { - DestinationPortValue = destinationPort; - return Self; - } - - /// - /// - /// Field containing the destination port. - /// - /// - public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) - { - DestinationPortValue = destinationPort; - return Self; - } - - /// - /// - /// Field containing the IANA number. - /// - /// - public CommunityIDProcessorDescriptor IanaNumber(Elastic.Clients.Elasticsearch.Serverless.Field? ianaNumber) - { - IanaNumberValue = ianaNumber; - return Self; - } - - /// - /// - /// Field containing the IANA number. - /// - /// - public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) - { - IanaNumberValue = ianaNumber; - return Self; - } - - /// - /// - /// Field containing the IANA number. - /// - /// - public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) - { - IanaNumberValue = ianaNumber; - return Self; - } - - /// - /// - /// Field containing the ICMP code. - /// - /// - public CommunityIDProcessorDescriptor IcmpCode(Elastic.Clients.Elasticsearch.Serverless.Field? icmpCode) - { - IcmpCodeValue = icmpCode; - return Self; - } - - /// - /// - /// Field containing the ICMP code. - /// - /// - public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) - { - IcmpCodeValue = icmpCode; - return Self; - } - - /// - /// - /// Field containing the ICMP code. - /// - /// - public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) - { - IcmpCodeValue = icmpCode; - return Self; - } - - /// - /// - /// Field containing the ICMP type. - /// - /// - public CommunityIDProcessorDescriptor IcmpType(Elastic.Clients.Elasticsearch.Serverless.Field? icmpType) - { - IcmpTypeValue = icmpType; - return Self; - } - - /// - /// - /// Field containing the ICMP type. - /// - /// - public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) - { - IcmpTypeValue = icmpType; - return Self; - } - - /// - /// - /// Field containing the ICMP type. - /// - /// - public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) - { - IcmpTypeValue = icmpType; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public CommunityIDProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public CommunityIDProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - public CommunityIDProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public CommunityIDProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CommunityIDProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CommunityIDProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CommunityIDProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The - /// seed can prevent hash collisions between network domains, such as a staging - /// and production network that use the same addressing scheme. - /// - /// - public CommunityIDProcessorDescriptor Seed(int? seed) - { - SeedValue = seed; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public CommunityIDProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source port. - /// - /// - public CommunityIDProcessorDescriptor SourcePort(Elastic.Clients.Elasticsearch.Serverless.Field? sourcePort) - { - SourcePortValue = sourcePort; - return Self; - } - - /// - /// - /// Field containing the source port. - /// - /// - public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) - { - SourcePortValue = sourcePort; - return Self; - } - - /// - /// - /// Field containing the source port. - /// - /// - public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) - { - SourcePortValue = sourcePort; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public CommunityIDProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the community ID. - /// - /// - public CommunityIDProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the community ID. - /// - /// - public CommunityIDProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the community ID. - /// - /// - public CommunityIDProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - public CommunityIDProcessorDescriptor Transport(Elastic.Clients.Elasticsearch.Serverless.Field? transport) - { - TransportValue = transport; - return Self; - } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - public CommunityIDProcessorDescriptor Transport(Expression> transport) - { - TransportValue = transport; - return Self; - } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - public CommunityIDProcessorDescriptor Transport(Expression> transport) - { - TransportValue = transport; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestinationIpValue is not null) - { - writer.WritePropertyName("destination_ip"); - JsonSerializer.Serialize(writer, DestinationIpValue, options); - } - - if (DestinationPortValue is not null) - { - writer.WritePropertyName("destination_port"); - JsonSerializer.Serialize(writer, DestinationPortValue, options); - } - - if (IanaNumberValue is not null) - { - writer.WritePropertyName("iana_number"); - JsonSerializer.Serialize(writer, IanaNumberValue, options); - } - - if (IcmpCodeValue is not null) - { - writer.WritePropertyName("icmp_code"); - JsonSerializer.Serialize(writer, IcmpCodeValue, options); - } - - if (IcmpTypeValue is not null) - { - writer.WritePropertyName("icmp_type"); - JsonSerializer.Serialize(writer, IcmpTypeValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (SeedValue.HasValue) - { - writer.WritePropertyName("seed"); - writer.WriteNumberValue(SeedValue.Value); - } - - if (SourceIpValue is not null) - { - writer.WritePropertyName("source_ip"); - JsonSerializer.Serialize(writer, SourceIpValue, options); - } - - if (SourcePortValue is not null) - { - writer.WritePropertyName("source_port"); - JsonSerializer.Serialize(writer, SourcePortValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (TransportValue is not null) - { - writer.WritePropertyName("transport"); - JsonSerializer.Serialize(writer, TransportValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CommunityIDProcessorDescriptor : SerializableDescriptor -{ - internal CommunityIDProcessorDescriptor(Action configure) => configure.Invoke(this); - - public CommunityIDProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationPortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IanaNumberValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpCodeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? IcmpTypeValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private int? SeedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SourcePortValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TransportValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public CommunityIDProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public CommunityIDProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public CommunityIDProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination port. - /// - /// - public CommunityIDProcessorDescriptor DestinationPort(Elastic.Clients.Elasticsearch.Serverless.Field? destinationPort) - { - DestinationPortValue = destinationPort; - return Self; - } - - /// - /// - /// Field containing the destination port. - /// - /// - public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) - { - DestinationPortValue = destinationPort; - return Self; - } - - /// - /// - /// Field containing the destination port. - /// - /// - public CommunityIDProcessorDescriptor DestinationPort(Expression> destinationPort) - { - DestinationPortValue = destinationPort; - return Self; - } - - /// - /// - /// Field containing the IANA number. - /// - /// - public CommunityIDProcessorDescriptor IanaNumber(Elastic.Clients.Elasticsearch.Serverless.Field? ianaNumber) - { - IanaNumberValue = ianaNumber; - return Self; - } - - /// - /// - /// Field containing the IANA number. - /// - /// - public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) - { - IanaNumberValue = ianaNumber; - return Self; - } - - /// - /// - /// Field containing the IANA number. - /// - /// - public CommunityIDProcessorDescriptor IanaNumber(Expression> ianaNumber) - { - IanaNumberValue = ianaNumber; - return Self; - } - - /// - /// - /// Field containing the ICMP code. - /// - /// - public CommunityIDProcessorDescriptor IcmpCode(Elastic.Clients.Elasticsearch.Serverless.Field? icmpCode) - { - IcmpCodeValue = icmpCode; - return Self; - } - - /// - /// - /// Field containing the ICMP code. - /// - /// - public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) - { - IcmpCodeValue = icmpCode; - return Self; - } - - /// - /// - /// Field containing the ICMP code. - /// - /// - public CommunityIDProcessorDescriptor IcmpCode(Expression> icmpCode) - { - IcmpCodeValue = icmpCode; - return Self; - } - - /// - /// - /// Field containing the ICMP type. - /// - /// - public CommunityIDProcessorDescriptor IcmpType(Elastic.Clients.Elasticsearch.Serverless.Field? icmpType) - { - IcmpTypeValue = icmpType; - return Self; - } - - /// - /// - /// Field containing the ICMP type. - /// - /// - public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) - { - IcmpTypeValue = icmpType; - return Self; - } - - /// - /// - /// Field containing the ICMP type. - /// - /// - public CommunityIDProcessorDescriptor IcmpType(Expression> icmpType) - { - IcmpTypeValue = icmpType; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public CommunityIDProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public CommunityIDProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - public CommunityIDProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public CommunityIDProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CommunityIDProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CommunityIDProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CommunityIDProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The - /// seed can prevent hash collisions between network domains, such as a staging - /// and production network that use the same addressing scheme. - /// - /// - public CommunityIDProcessorDescriptor Seed(int? seed) - { - SeedValue = seed; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public CommunityIDProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public CommunityIDProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source port. - /// - /// - public CommunityIDProcessorDescriptor SourcePort(Elastic.Clients.Elasticsearch.Serverless.Field? sourcePort) - { - SourcePortValue = sourcePort; - return Self; - } - - /// - /// - /// Field containing the source port. - /// - /// - public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) - { - SourcePortValue = sourcePort; - return Self; - } - - /// - /// - /// Field containing the source port. - /// - /// - public CommunityIDProcessorDescriptor SourcePort(Expression> sourcePort) - { - SourcePortValue = sourcePort; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public CommunityIDProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the community ID. - /// - /// - public CommunityIDProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the community ID. - /// - /// - public CommunityIDProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the community ID. - /// - /// - public CommunityIDProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - public CommunityIDProcessorDescriptor Transport(Elastic.Clients.Elasticsearch.Serverless.Field? transport) - { - TransportValue = transport; - return Self; - } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - public CommunityIDProcessorDescriptor Transport(Expression> transport) - { - TransportValue = transport; - return Self; - } - - /// - /// - /// Field containing the transport protocol name or number. Used only when the - /// iana_number field is not present. The following protocol names are currently - /// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, udp - /// - /// - public CommunityIDProcessorDescriptor Transport(Expression> transport) - { - TransportValue = transport; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestinationIpValue is not null) - { - writer.WritePropertyName("destination_ip"); - JsonSerializer.Serialize(writer, DestinationIpValue, options); - } - - if (DestinationPortValue is not null) - { - writer.WritePropertyName("destination_port"); - JsonSerializer.Serialize(writer, DestinationPortValue, options); - } - - if (IanaNumberValue is not null) - { - writer.WritePropertyName("iana_number"); - JsonSerializer.Serialize(writer, IanaNumberValue, options); - } - - if (IcmpCodeValue is not null) - { - writer.WritePropertyName("icmp_code"); - JsonSerializer.Serialize(writer, IcmpCodeValue, options); - } - - if (IcmpTypeValue is not null) - { - writer.WritePropertyName("icmp_type"); - JsonSerializer.Serialize(writer, IcmpTypeValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (SeedValue.HasValue) - { - writer.WritePropertyName("seed"); - writer.WriteNumberValue(SeedValue.Value); - } - - if (SourceIpValue is not null) - { - writer.WritePropertyName("source_ip"); - JsonSerializer.Serialize(writer, SourceIpValue, options); - } - - if (SourcePortValue is not null) - { - writer.WritePropertyName("source_port"); - JsonSerializer.Serialize(writer, SourcePortValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (TransportValue is not null) - { - writer.WritePropertyName("transport"); - JsonSerializer.Serialize(writer, TransportValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ConvertProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ConvertProcessor.g.cs deleted file mode 100644 index e5fbdcfca4c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ConvertProcessor.g.cs +++ /dev/null @@ -1,662 +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.Ingest; - -public sealed partial class ConvertProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field whose value is to be converted. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - /// - /// - /// The type to convert the existing value to. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertType Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(ConvertProcessor convertProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Convert(convertProcessor); -} - -public sealed partial class ConvertProcessorDescriptor : SerializableDescriptor> -{ - internal ConvertProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public ConvertProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertType TypeValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public ConvertProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field whose value is to be converted. - /// - /// - public ConvertProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field whose value is to be converted. - /// - /// - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field whose value is to be converted. - /// - /// - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public ConvertProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public ConvertProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public ConvertProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public ConvertProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public ConvertProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public ConvertProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The type to convert the existing value to. - /// - /// - public ConvertProcessorDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class ConvertProcessorDescriptor : SerializableDescriptor -{ - internal ConvertProcessorDescriptor(Action configure) => configure.Invoke(this); - - public ConvertProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertType TypeValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public ConvertProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field whose value is to be converted. - /// - /// - public ConvertProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field whose value is to be converted. - /// - /// - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field whose value is to be converted. - /// - /// - public ConvertProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public ConvertProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public ConvertProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public ConvertProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public ConvertProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ConvertProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public ConvertProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public ConvertProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public ConvertProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The type to convert the existing value to. - /// - /// - public ConvertProcessorDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CsvProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CsvProcessor.g.cs deleted file mode 100644 index 697cf8aa26e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/CsvProcessor.g.cs +++ /dev/null @@ -1,750 +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.Ingest; - -public sealed partial class CsvProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Value used to fill empty fields. - /// Empty fields are skipped if this is not provided. - /// An empty field is one with no value (2 consecutive separators) or empty quotes (""). - /// - /// - [JsonInclude, JsonPropertyName("empty_value")] - public object? EmptyValue { get; set; } - - /// - /// - /// The field to extract data from. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Quote used in CSV, has to be single character string. - /// - /// - [JsonInclude, JsonPropertyName("quote")] - public string? Quote { get; set; } - - /// - /// - /// Separator used in CSV, has to be single character string. - /// - /// - [JsonInclude, JsonPropertyName("separator")] - public string? Separator { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The array of fields to assign extracted values to. - /// - /// - [JsonInclude, JsonPropertyName("target_fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields TargetFields { get; set; } - - /// - /// - /// Trim whitespaces in unquoted fields. - /// - /// - [JsonInclude, JsonPropertyName("trim")] - public bool? Trim { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(CsvProcessor csvProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Csv(csvProcessor); -} - -public sealed partial class CsvProcessorDescriptor : SerializableDescriptor> -{ - internal CsvProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public CsvProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private object? EmptyValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? QuoteValue { get; set; } - private string? SeparatorValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields TargetFieldsValue { get; set; } - private bool? TrimValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public CsvProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Value used to fill empty fields. - /// Empty fields are skipped if this is not provided. - /// An empty field is one with no value (2 consecutive separators) or empty quotes (""). - /// - /// - public CsvProcessorDescriptor EmptyValue(object? emptyValue) - { - EmptyValueValue = emptyValue; - return Self; - } - - /// - /// - /// The field to extract data from. - /// - /// - public CsvProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to extract data from. - /// - /// - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to extract data from. - /// - /// - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public CsvProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public CsvProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public CsvProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public CsvProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CsvProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Quote used in CSV, has to be single character string. - /// - /// - public CsvProcessorDescriptor Quote(string? quote) - { - QuoteValue = quote; - return Self; - } - - /// - /// - /// Separator used in CSV, has to be single character string. - /// - /// - public CsvProcessorDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public CsvProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The array of fields to assign extracted values to. - /// - /// - public CsvProcessorDescriptor TargetFields(Elastic.Clients.Elasticsearch.Serverless.Fields targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - /// - /// - /// Trim whitespaces in unquoted fields. - /// - /// - public CsvProcessorDescriptor Trim(bool? trim = true) - { - TrimValue = trim; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (EmptyValueValue is not null) - { - writer.WritePropertyName("empty_value"); - JsonSerializer.Serialize(writer, EmptyValueValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(QuoteValue)) - { - writer.WritePropertyName("quote"); - writer.WriteStringValue(QuoteValue); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_fields"); - JsonSerializer.Serialize(writer, TargetFieldsValue, options); - if (TrimValue.HasValue) - { - writer.WritePropertyName("trim"); - writer.WriteBooleanValue(TrimValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CsvProcessorDescriptor : SerializableDescriptor -{ - internal CsvProcessorDescriptor(Action configure) => configure.Invoke(this); - - public CsvProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private object? EmptyValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? QuoteValue { get; set; } - private string? SeparatorValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields TargetFieldsValue { get; set; } - private bool? TrimValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public CsvProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Value used to fill empty fields. - /// Empty fields are skipped if this is not provided. - /// An empty field is one with no value (2 consecutive separators) or empty quotes (""). - /// - /// - public CsvProcessorDescriptor EmptyValue(object? emptyValue) - { - EmptyValueValue = emptyValue; - return Self; - } - - /// - /// - /// The field to extract data from. - /// - /// - public CsvProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to extract data from. - /// - /// - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to extract data from. - /// - /// - public CsvProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public CsvProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public CsvProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public CsvProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public CsvProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public CsvProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public CsvProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Quote used in CSV, has to be single character string. - /// - /// - public CsvProcessorDescriptor Quote(string? quote) - { - QuoteValue = quote; - return Self; - } - - /// - /// - /// Separator used in CSV, has to be single character string. - /// - /// - public CsvProcessorDescriptor Separator(string? separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public CsvProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The array of fields to assign extracted values to. - /// - /// - public CsvProcessorDescriptor TargetFields(Elastic.Clients.Elasticsearch.Serverless.Fields targetFields) - { - TargetFieldsValue = targetFields; - return Self; - } - - /// - /// - /// Trim whitespaces in unquoted fields. - /// - /// - public CsvProcessorDescriptor Trim(bool? trim = true) - { - TrimValue = trim; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (EmptyValueValue is not null) - { - writer.WritePropertyName("empty_value"); - JsonSerializer.Serialize(writer, EmptyValueValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(QuoteValue)) - { - writer.WritePropertyName("quote"); - writer.WriteStringValue(QuoteValue); - } - - if (!string.IsNullOrEmpty(SeparatorValue)) - { - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_fields"); - JsonSerializer.Serialize(writer, TargetFieldsValue, options); - if (TrimValue.HasValue) - { - writer.WritePropertyName("trim"); - writer.WriteBooleanValue(TrimValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs deleted file mode 100644 index bbe957c526a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfiguration.g.cs +++ /dev/null @@ -1,309 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -/// -/// -/// The configuration necessary to identify which IP geolocation provider to use to download a database, as well as any provider-specific configuration necessary for such downloading. -/// At present, the only supported providers are maxmind and ipinfo, and the maxmind provider requires that an account_id (string) is configured. -/// A provider (either maxmind or ipinfo) must be specified. The web and local providers can be returned as read only configurations. -/// -/// -[JsonConverter(typeof(DatabaseConfigurationConverter))] -public sealed partial class DatabaseConfiguration -{ - internal DatabaseConfiguration(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static DatabaseConfiguration Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => new DatabaseConfiguration("ipinfo", ipinfo); - public static DatabaseConfiguration Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => new DatabaseConfiguration("maxmind", maxmind); - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name Name { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class DatabaseConfigurationConverter : JsonConverter -{ - public override DatabaseConfiguration Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - Elastic.Clients.Elasticsearch.Serverless.Name nameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "name") - { - nameValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "ipinfo") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "maxmind") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DatabaseConfiguration' from the response."); - } - - var result = new DatabaseConfiguration(variantNameValue, variantValue); - result.Name = nameValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, DatabaseConfiguration value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Name is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, value.Name, options); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "ipinfo": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo)value.Variant, options); - break; - case "maxmind": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DatabaseConfigurationDescriptor : SerializableDescriptor> -{ - internal DatabaseConfigurationDescriptor(Action> configure) => configure.Invoke(this); - - public DatabaseConfigurationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DatabaseConfigurationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DatabaseConfigurationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - public DatabaseConfigurationDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - public DatabaseConfigurationDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); - public DatabaseConfigurationDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); - public DatabaseConfigurationDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); - public DatabaseConfigurationDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DatabaseConfigurationDescriptor : SerializableDescriptor -{ - internal DatabaseConfigurationDescriptor(Action configure) => configure.Invoke(this); - - public DatabaseConfigurationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DatabaseConfigurationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DatabaseConfigurationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - public DatabaseConfigurationDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - public DatabaseConfigurationDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); - public DatabaseConfigurationDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); - public DatabaseConfigurationDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); - public DatabaseConfigurationDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs deleted file mode 100644 index 74ed0662918..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationFull.g.cs +++ /dev/null @@ -1,332 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -[JsonConverter(typeof(DatabaseConfigurationFullConverter))] -public sealed partial class DatabaseConfigurationFull -{ - internal DatabaseConfigurationFull(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static DatabaseConfigurationFull Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => new DatabaseConfigurationFull("ipinfo", ipinfo); - public static DatabaseConfigurationFull Local(Elastic.Clients.Elasticsearch.Serverless.Ingest.Local local) => new DatabaseConfigurationFull("local", local); - public static DatabaseConfigurationFull Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => new DatabaseConfigurationFull("maxmind", maxmind); - public static DatabaseConfigurationFull Web(Elastic.Clients.Elasticsearch.Serverless.Ingest.Web web) => new DatabaseConfigurationFull("web", web); - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class DatabaseConfigurationFullConverter : JsonConverter -{ - public override DatabaseConfigurationFull Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - string nameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "name") - { - nameValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "ipinfo") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "local") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "maxmind") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "web") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DatabaseConfigurationFull' from the response."); - } - - var result = new DatabaseConfigurationFull(variantNameValue, variantValue); - result.Name = nameValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, DatabaseConfigurationFull value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Name)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(value.Name); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "ipinfo": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo)value.Variant, options); - break; - case "local": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Local)value.Variant, options); - break; - case "maxmind": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind)value.Variant, options); - break; - case "web": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.Web)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DatabaseConfigurationFullDescriptor : SerializableDescriptor> -{ - internal DatabaseConfigurationFullDescriptor(Action> configure) => configure.Invoke(this); - - public DatabaseConfigurationFullDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DatabaseConfigurationFullDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DatabaseConfigurationFullDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private string NameValue { get; set; } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - public DatabaseConfigurationFullDescriptor Name(string name) - { - NameValue = name; - return Self; - } - - public DatabaseConfigurationFullDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); - public DatabaseConfigurationFullDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); - public DatabaseConfigurationFullDescriptor Local(Elastic.Clients.Elasticsearch.Serverless.Ingest.Local local) => Set(local, "local"); - public DatabaseConfigurationFullDescriptor Local(Action configure) => Set(configure, "local"); - public DatabaseConfigurationFullDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); - public DatabaseConfigurationFullDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); - public DatabaseConfigurationFullDescriptor Web(Elastic.Clients.Elasticsearch.Serverless.Ingest.Web web) => Set(web, "web"); - public DatabaseConfigurationFullDescriptor Web(Action configure) => Set(configure, "web"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(NameValue)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DatabaseConfigurationFullDescriptor : SerializableDescriptor -{ - internal DatabaseConfigurationFullDescriptor(Action configure) => configure.Invoke(this); - - public DatabaseConfigurationFullDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DatabaseConfigurationFullDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DatabaseConfigurationFullDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private string NameValue { get; set; } - - /// - /// - /// The provider-assigned name of the IP geolocation database to download. - /// - /// - public DatabaseConfigurationFullDescriptor Name(string name) - { - NameValue = name; - return Self; - } - - public DatabaseConfigurationFullDescriptor Ipinfo(Elastic.Clients.Elasticsearch.Serverless.Ingest.Ipinfo ipinfo) => Set(ipinfo, "ipinfo"); - public DatabaseConfigurationFullDescriptor Ipinfo(Action configure) => Set(configure, "ipinfo"); - public DatabaseConfigurationFullDescriptor Local(Elastic.Clients.Elasticsearch.Serverless.Ingest.Local local) => Set(local, "local"); - public DatabaseConfigurationFullDescriptor Local(Action configure) => Set(configure, "local"); - public DatabaseConfigurationFullDescriptor Maxmind(Elastic.Clients.Elasticsearch.Serverless.Ingest.Maxmind maxmind) => Set(maxmind, "maxmind"); - public DatabaseConfigurationFullDescriptor Maxmind(Action configure) => Set(configure, "maxmind"); - public DatabaseConfigurationFullDescriptor Web(Elastic.Clients.Elasticsearch.Serverless.Ingest.Web web) => Set(web, "web"); - public DatabaseConfigurationFullDescriptor Web(Action configure) => Set(configure, "web"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(NameValue)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs deleted file mode 100644 index 2df0f06fda8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DatabaseConfigurationMetadata.g.cs +++ /dev/null @@ -1,40 +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.Ingest; - -public sealed partial class DatabaseConfigurationMetadata -{ - [JsonInclude, JsonPropertyName("database")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration Database { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("modified_date_millis")] - public long ModifiedDateMillis { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs deleted file mode 100644 index 283d93d762b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateIndexNameProcessor.g.cs +++ /dev/null @@ -1,753 +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.Ingest; - -public sealed partial class DateIndexNameProcessor -{ - /// - /// - /// An array of the expected date formats for parsing dates / timestamps in the document being preprocessed. - /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. - /// - /// - [JsonInclude, JsonPropertyName("date_formats")] - public ICollection DateFormats { get; set; } - - /// - /// - /// How to round the date when formatting the date into the index name. Valid values are: - /// y (year), M (month), w (week), d (day), h (hour), m (minute) and s (second). - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("date_rounding")] - public string DateRounding { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// The format to be used when printing the parsed date into the index name. - /// A valid java time pattern is expected here. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("index_name_format")] - public string? IndexNameFormat { get; set; } - - /// - /// - /// A prefix of the index name to be prepended before the printed date. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("index_name_prefix")] - public string? IndexNamePrefix { get; set; } - - /// - /// - /// The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days. - /// - /// - [JsonInclude, JsonPropertyName("locale")] - public string? Locale { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names. - /// - /// - [JsonInclude, JsonPropertyName("timezone")] - public string? Timezone { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(DateIndexNameProcessor dateIndexNameProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.DateIndexName(dateIndexNameProcessor); -} - -public sealed partial class DateIndexNameProcessorDescriptor : SerializableDescriptor> -{ - internal DateIndexNameProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public DateIndexNameProcessorDescriptor() : base() - { - } - - private ICollection DateFormatsValue { get; set; } - private string DateRoundingValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? IndexNameFormatValue { get; set; } - private string? IndexNamePrefixValue { get; set; } - private string? LocaleValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private string? TimezoneValue { get; set; } - - /// - /// - /// An array of the expected date formats for parsing dates / timestamps in the document being preprocessed. - /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. - /// - /// - public DateIndexNameProcessorDescriptor DateFormats(ICollection dateFormats) - { - DateFormatsValue = dateFormats; - return Self; - } - - /// - /// - /// How to round the date when formatting the date into the index name. Valid values are: - /// y (year), M (month), w (week), d (day), h (hour), m (minute) and s (second). - /// Supports template snippets. - /// - /// - public DateIndexNameProcessorDescriptor DateRounding(string dateRounding) - { - DateRoundingValue = dateRounding; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DateIndexNameProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - public DateIndexNameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DateIndexNameProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DateIndexNameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The format to be used when printing the parsed date into the index name. - /// A valid java time pattern is expected here. - /// Supports template snippets. - /// - /// - public DateIndexNameProcessorDescriptor IndexNameFormat(string? indexNameFormat) - { - IndexNameFormatValue = indexNameFormat; - return Self; - } - - /// - /// - /// A prefix of the index name to be prepended before the printed date. - /// Supports template snippets. - /// - /// - public DateIndexNameProcessorDescriptor IndexNamePrefix(string? indexNamePrefix) - { - IndexNamePrefixValue = indexNamePrefix; - return Self; - } - - /// - /// - /// The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days. - /// - /// - public DateIndexNameProcessorDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DateIndexNameProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DateIndexNameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names. - /// - /// - public DateIndexNameProcessorDescriptor Timezone(string? timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("date_formats"); - JsonSerializer.Serialize(writer, DateFormatsValue, options); - writer.WritePropertyName("date_rounding"); - writer.WriteStringValue(DateRoundingValue); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(IndexNameFormatValue)) - { - writer.WritePropertyName("index_name_format"); - writer.WriteStringValue(IndexNameFormatValue); - } - - if (!string.IsNullOrEmpty(IndexNamePrefixValue)) - { - writer.WritePropertyName("index_name_prefix"); - writer.WriteStringValue(IndexNamePrefixValue); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (!string.IsNullOrEmpty(TimezoneValue)) - { - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DateIndexNameProcessorDescriptor : SerializableDescriptor -{ - internal DateIndexNameProcessorDescriptor(Action configure) => configure.Invoke(this); - - public DateIndexNameProcessorDescriptor() : base() - { - } - - private ICollection DateFormatsValue { get; set; } - private string DateRoundingValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? IndexNameFormatValue { get; set; } - private string? IndexNamePrefixValue { get; set; } - private string? LocaleValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private string? TimezoneValue { get; set; } - - /// - /// - /// An array of the expected date formats for parsing dates / timestamps in the document being preprocessed. - /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. - /// - /// - public DateIndexNameProcessorDescriptor DateFormats(ICollection dateFormats) - { - DateFormatsValue = dateFormats; - return Self; - } - - /// - /// - /// How to round the date when formatting the date into the index name. Valid values are: - /// y (year), M (month), w (week), d (day), h (hour), m (minute) and s (second). - /// Supports template snippets. - /// - /// - public DateIndexNameProcessorDescriptor DateRounding(string dateRounding) - { - DateRoundingValue = dateRounding; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DateIndexNameProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - public DateIndexNameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date or timestamp from. - /// - /// - public DateIndexNameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DateIndexNameProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DateIndexNameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The format to be used when printing the parsed date into the index name. - /// A valid java time pattern is expected here. - /// Supports template snippets. - /// - /// - public DateIndexNameProcessorDescriptor IndexNameFormat(string? indexNameFormat) - { - IndexNameFormatValue = indexNameFormat; - return Self; - } - - /// - /// - /// A prefix of the index name to be prepended before the printed date. - /// Supports template snippets. - /// - /// - public DateIndexNameProcessorDescriptor IndexNamePrefix(string? indexNamePrefix) - { - IndexNamePrefixValue = indexNamePrefix; - return Self; - } - - /// - /// - /// The locale to use when parsing the date from the document being preprocessed, relevant when parsing month names or week days. - /// - /// - public DateIndexNameProcessorDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DateIndexNameProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateIndexNameProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DateIndexNameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The timezone to use when parsing the date and when date math index supports resolves expressions into concrete index names. - /// - /// - public DateIndexNameProcessorDescriptor Timezone(string? timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("date_formats"); - JsonSerializer.Serialize(writer, DateFormatsValue, options); - writer.WritePropertyName("date_rounding"); - writer.WriteStringValue(DateRoundingValue); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(IndexNameFormatValue)) - { - writer.WritePropertyName("index_name_format"); - writer.WriteStringValue(IndexNameFormatValue); - } - - if (!string.IsNullOrEmpty(IndexNamePrefixValue)) - { - writer.WritePropertyName("index_name_prefix"); - writer.WriteStringValue(IndexNamePrefixValue); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (!string.IsNullOrEmpty(TimezoneValue)) - { - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs deleted file mode 100644 index 4119d07eea1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DateProcessor.g.cs +++ /dev/null @@ -1,755 +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.Ingest; - -public sealed partial class DateProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to get the date from. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// An array of the expected date formats. - /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. - /// - /// - [JsonInclude, JsonPropertyName("formats")] - public ICollection Formats { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// The locale to use when parsing the date, relevant when parsing month names or week days. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("locale")] - public string? Locale { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// The format to use when writing the date to target_field. Must be a valid - /// java time pattern. - /// - /// - [JsonInclude, JsonPropertyName("output_format")] - public string? OutputFormat { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - /// - /// - /// The timezone to use when parsing the date. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("timezone")] - public string? Timezone { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(DateProcessor dateProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Date(dateProcessor); -} - -public sealed partial class DateProcessorDescriptor : SerializableDescriptor> -{ - internal DateProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public DateProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection FormatsValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? LocaleValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? OutputFormatValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private string? TimezoneValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DateProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to get the date from. - /// - /// - public DateProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date from. - /// - /// - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date from. - /// - /// - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// An array of the expected date formats. - /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. - /// - /// - public DateProcessorDescriptor Formats(ICollection formats) - { - FormatsValue = formats; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DateProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The locale to use when parsing the date, relevant when parsing month names or week days. - /// Supports template snippets. - /// - /// - public DateProcessorDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DateProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The format to use when writing the date to target_field. Must be a valid - /// java time pattern. - /// - /// - public DateProcessorDescriptor OutputFormat(string? outputFormat) - { - OutputFormatValue = outputFormat; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DateProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - public DateProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The timezone to use when parsing the date. - /// Supports template snippets. - /// - /// - public DateProcessorDescriptor Timezone(string? timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("formats"); - JsonSerializer.Serialize(writer, FormatsValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(OutputFormatValue)) - { - writer.WritePropertyName("output_format"); - writer.WriteStringValue(OutputFormatValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimezoneValue)) - { - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DateProcessorDescriptor : SerializableDescriptor -{ - internal DateProcessorDescriptor(Action configure) => configure.Invoke(this); - - public DateProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection FormatsValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? LocaleValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? OutputFormatValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private string? TimezoneValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DateProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to get the date from. - /// - /// - public DateProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date from. - /// - /// - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the date from. - /// - /// - public DateProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// An array of the expected date formats. - /// Can be a java time pattern or one of the following formats: ISO8601, UNIX, UNIX_MS, or TAI64N. - /// - /// - public DateProcessorDescriptor Formats(ICollection formats) - { - FormatsValue = formats; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DateProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The locale to use when parsing the date, relevant when parsing month names or week days. - /// Supports template snippets. - /// - /// - public DateProcessorDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DateProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DateProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DateProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The format to use when writing the date to target_field. Must be a valid - /// java time pattern. - /// - /// - public DateProcessorDescriptor OutputFormat(string? outputFormat) - { - OutputFormatValue = outputFormat; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DateProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - public DateProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the parsed date. - /// - /// - public DateProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The timezone to use when parsing the date. - /// Supports template snippets. - /// - /// - public DateProcessorDescriptor Timezone(string? timezone) - { - TimezoneValue = timezone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("formats"); - JsonSerializer.Serialize(writer, FormatsValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(OutputFormatValue)) - { - writer.WritePropertyName("output_format"); - writer.WriteStringValue(OutputFormatValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimezoneValue)) - { - writer.WritePropertyName("timezone"); - writer.WriteStringValue(TimezoneValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DissectProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DissectProcessor.g.cs deleted file mode 100644 index 0d87b0ad6f6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DissectProcessor.g.cs +++ /dev/null @@ -1,611 +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.Ingest; - -public sealed partial class DissectProcessor -{ - /// - /// - /// The character(s) that separate the appended fields. - /// - /// - [JsonInclude, JsonPropertyName("append_separator")] - public string? AppendSeparator { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to dissect. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// The pattern to apply to the field. - /// - /// - [JsonInclude, JsonPropertyName("pattern")] - public string Pattern { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(DissectProcessor dissectProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Dissect(dissectProcessor); -} - -public sealed partial class DissectProcessorDescriptor : SerializableDescriptor> -{ - internal DissectProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public DissectProcessorDescriptor() : base() - { - } - - private string? AppendSeparatorValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string PatternValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// The character(s) that separate the appended fields. - /// - /// - public DissectProcessorDescriptor AppendSeparator(string? appendSeparator) - { - AppendSeparatorValue = appendSeparator; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DissectProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to dissect. - /// - /// - public DissectProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to dissect. - /// - /// - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to dissect. - /// - /// - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DissectProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DissectProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public DissectProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DissectProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DissectProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The pattern to apply to the field. - /// - /// - public DissectProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DissectProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AppendSeparatorValue)) - { - writer.WritePropertyName("append_separator"); - writer.WriteStringValue(AppendSeparatorValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DissectProcessorDescriptor : SerializableDescriptor -{ - internal DissectProcessorDescriptor(Action configure) => configure.Invoke(this); - - public DissectProcessorDescriptor() : base() - { - } - - private string? AppendSeparatorValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string PatternValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// The character(s) that separate the appended fields. - /// - /// - public DissectProcessorDescriptor AppendSeparator(string? appendSeparator) - { - AppendSeparatorValue = appendSeparator; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DissectProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to dissect. - /// - /// - public DissectProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to dissect. - /// - /// - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to dissect. - /// - /// - public DissectProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DissectProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DissectProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public DissectProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DissectProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DissectProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DissectProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The pattern to apply to the field. - /// - /// - public DissectProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DissectProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AppendSeparatorValue)) - { - writer.WritePropertyName("append_separator"); - writer.WriteStringValue(AppendSeparatorValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Document.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Document.g.cs deleted file mode 100644 index 9b19111ef15..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Document.g.cs +++ /dev/null @@ -1,123 +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.Ingest; - -public sealed partial class Document -{ - /// - /// - /// Unique identifier for the document. - /// This ID must be unique within the _index. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// Name of the index containing the document. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// JSON body for the document. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public object Source { get; set; } -} - -public sealed partial class DocumentDescriptor : SerializableDescriptor -{ - internal DocumentDescriptor(Action configure) => configure.Invoke(this); - - public DocumentDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private object SourceValue { get; set; } - - /// - /// - /// Unique identifier for the document. - /// This ID must be unique within the _index. - /// - /// - public DocumentDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Name of the index containing the document. - /// - /// - public DocumentDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// JSON body for the document. - /// - /// - public DocumentDescriptor Source(object 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 (IndexValue is not null) - { - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DocumentSimulation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DocumentSimulation.g.cs deleted file mode 100644 index 13bfc8367f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DocumentSimulation.g.cs +++ /dev/null @@ -1,151 +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.Ingest; - -internal sealed partial class DocumentSimulationConverter : JsonConverter -{ - public override DocumentSimulation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - string id = default; - string index = default; - Elastic.Clients.Elasticsearch.Serverless.Ingest.IngestInfo ingest = default; - string? routing = default; - IReadOnlyDictionary source = default; - long? version = default; - Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "_id") - { - id = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_index") - { - index = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_ingest") - { - ingest = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_routing") - { - routing = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_source") - { - source = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "_version") - { - version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_version_type") - { - versionType = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - return new DocumentSimulation { Id = id, Index = index, Ingest = ingest, Metadata = additionalProperties, Routing = routing, Source = source, Version = version, VersionType = versionType }; - } - - public override void Write(Utf8JsonWriter writer, DocumentSimulation value, JsonSerializerOptions options) - { - throw new NotImplementedException("'DocumentSimulation' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -/// -/// -/// The simulated document, with optional metadata. -/// -/// -[JsonConverter(typeof(DocumentSimulationConverter))] -public sealed partial class DocumentSimulation -{ - /// - /// - /// Unique identifier for the document. This ID must be unique within the _index. - /// - /// - public string Id { get; init; } - - /// - /// - /// Name of the index containing the document. - /// - /// - public string Index { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.Ingest.IngestInfo Ingest { get; init; } - - /// - /// - /// Additional metadata - /// - /// - public IReadOnlyDictionary Metadata { get; init; } - - /// - /// - /// Value used to send the document to a specific primary shard. - /// - /// - public string? Routing { get; init; } - - /// - /// - /// JSON body for the document. - /// - /// - public IReadOnlyDictionary Source { get; init; } - public long? Version { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs deleted file mode 100644 index e0c64014ac1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DotExpanderProcessor.g.cs +++ /dev/null @@ -1,591 +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.Ingest; - -public sealed partial class DotExpanderProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. - /// When false, the processor will merge conflicts by combining the old and the new values into an array. - /// When true, the value from the expanded field will overwrite the existing value. - /// - /// - [JsonInclude, JsonPropertyName("override")] - public bool? Override { get; set; } - - /// - /// - /// The field that contains the field to expand. - /// Only required if the field to expand is part another object field, because the field option can only understand leaf fields. - /// - /// - [JsonInclude, JsonPropertyName("path")] - public string? Path { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(DotExpanderProcessor dotExpanderProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.DotExpander(dotExpanderProcessor); -} - -public sealed partial class DotExpanderProcessorDescriptor : SerializableDescriptor> -{ - internal DotExpanderProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public DotExpanderProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private bool? OverrideValue { get; set; } - private string? PathValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DotExpanderProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - public DotExpanderProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DotExpanderProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DotExpanderProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DotExpanderProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. - /// When false, the processor will merge conflicts by combining the old and the new values into an array. - /// When true, the value from the expanded field will overwrite the existing value. - /// - /// - public DotExpanderProcessorDescriptor Override(bool? value = true) - { - OverrideValue = value; - return Self; - } - - /// - /// - /// The field that contains the field to expand. - /// Only required if the field to expand is part another object field, because the field option can only understand leaf fields. - /// - /// - public DotExpanderProcessorDescriptor Path(string? path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DotExpanderProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - if (!string.IsNullOrEmpty(PathValue)) - { - writer.WritePropertyName("path"); - writer.WriteStringValue(PathValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DotExpanderProcessorDescriptor : SerializableDescriptor -{ - internal DotExpanderProcessorDescriptor(Action configure) => configure.Invoke(this); - - public DotExpanderProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private bool? OverrideValue { get; set; } - private string? PathValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DotExpanderProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - public DotExpanderProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to expand into an object field. - /// If set to *, all top-level fields will be expanded. - /// - /// - public DotExpanderProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DotExpanderProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DotExpanderProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DotExpanderProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DotExpanderProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls the behavior when there is already an existing nested object that conflicts with the expanded field. - /// When false, the processor will merge conflicts by combining the old and the new values into an array. - /// When true, the value from the expanded field will overwrite the existing value. - /// - /// - public DotExpanderProcessorDescriptor Override(bool? value = true) - { - OverrideValue = value; - return Self; - } - - /// - /// - /// The field that contains the field to expand. - /// Only required if the field to expand is part another object field, because the field option can only understand leaf fields. - /// - /// - public DotExpanderProcessorDescriptor Path(string? path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DotExpanderProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - if (!string.IsNullOrEmpty(PathValue)) - { - writer.WritePropertyName("path"); - writer.WriteStringValue(PathValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DropProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DropProcessor.g.cs deleted file mode 100644 index 1b6659d3e63..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/DropProcessor.g.cs +++ /dev/null @@ -1,407 +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.Ingest; - -public sealed partial class DropProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(DropProcessor dropProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Drop(dropProcessor); -} - -public sealed partial class DropProcessorDescriptor : SerializableDescriptor> -{ - internal DropProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public DropProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DropProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DropProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DropProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DropProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DropProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DropProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DropProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DropProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DropProcessorDescriptor : SerializableDescriptor -{ - internal DropProcessorDescriptor(Action configure) => configure.Invoke(this); - - public DropProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public DropProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public DropProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public DropProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public DropProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public DropProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public DropProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public DropProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public DropProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/EnrichProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/EnrichProcessor.g.cs deleted file mode 100644 index fa0d6e8c1df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/EnrichProcessor.g.cs +++ /dev/null @@ -1,805 +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.Ingest; - -public sealed partial class EnrichProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// The maximum number of matched documents to include under the configured target field. - /// The target_field will be turned into a json array if max_matches is higher than 1, otherwise target_field will become a json object. - /// In order to avoid documents getting too large, the maximum allowed value is 128. - /// - /// - [JsonInclude, JsonPropertyName("max_matches")] - public int? MaxMatches { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// If processor will update fields with pre-existing non-null-valued field. - /// When set to false, such fields will not be touched. - /// - /// - [JsonInclude, JsonPropertyName("override")] - public bool? Override { get; set; } - - /// - /// - /// The name of the enrich policy to use. - /// - /// - [JsonInclude, JsonPropertyName("policy_name")] - public string PolicyName { get; set; } - - /// - /// - /// A spatial relation operator used to match the geoshape of incoming documents to documents in the enrich index. - /// This option is only used for geo_match enrich policy types. - /// - /// - [JsonInclude, JsonPropertyName("shape_relation")] - public Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? ShapeRelation { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(EnrichProcessor enrichProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Enrich(enrichProcessor); -} - -public sealed partial class EnrichProcessorDescriptor : SerializableDescriptor> -{ - internal EnrichProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public EnrichProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private int? MaxMatchesValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private bool? OverrideValue { get; set; } - private string PolicyNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? ShapeRelationValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public EnrichProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public EnrichProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public EnrichProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public EnrichProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// The maximum number of matched documents to include under the configured target field. - /// The target_field will be turned into a json array if max_matches is higher than 1, otherwise target_field will become a json object. - /// In order to avoid documents getting too large, the maximum allowed value is 128. - /// - /// - public EnrichProcessorDescriptor MaxMatches(int? maxMatches) - { - MaxMatchesValue = maxMatches; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public EnrichProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If processor will update fields with pre-existing non-null-valued field. - /// When set to false, such fields will not be touched. - /// - /// - public EnrichProcessorDescriptor Override(bool? value = true) - { - OverrideValue = value; - return Self; - } - - /// - /// - /// The name of the enrich policy to use. - /// - /// - public EnrichProcessorDescriptor PolicyName(string policyName) - { - PolicyNameValue = policyName; - return Self; - } - - /// - /// - /// A spatial relation operator used to match the geoshape of incoming documents to documents in the enrich index. - /// This option is only used for geo_match enrich policy types. - /// - /// - public EnrichProcessorDescriptor ShapeRelation(Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? shapeRelation) - { - ShapeRelationValue = shapeRelation; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public EnrichProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (MaxMatchesValue.HasValue) - { - writer.WritePropertyName("max_matches"); - writer.WriteNumberValue(MaxMatchesValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - writer.WritePropertyName("policy_name"); - writer.WriteStringValue(PolicyNameValue); - if (ShapeRelationValue is not null) - { - writer.WritePropertyName("shape_relation"); - JsonSerializer.Serialize(writer, ShapeRelationValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class EnrichProcessorDescriptor : SerializableDescriptor -{ - internal EnrichProcessorDescriptor(Action configure) => configure.Invoke(this); - - public EnrichProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private int? MaxMatchesValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private bool? OverrideValue { get; set; } - private string PolicyNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? ShapeRelationValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public EnrichProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field in the input document that matches the policies match_field used to retrieve the enrichment data. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public EnrichProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public EnrichProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public EnrichProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// The maximum number of matched documents to include under the configured target field. - /// The target_field will be turned into a json array if max_matches is higher than 1, otherwise target_field will become a json object. - /// In order to avoid documents getting too large, the maximum allowed value is 128. - /// - /// - public EnrichProcessorDescriptor MaxMatches(int? maxMatches) - { - MaxMatchesValue = maxMatches; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public EnrichProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public EnrichProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If processor will update fields with pre-existing non-null-valued field. - /// When set to false, such fields will not be touched. - /// - /// - public EnrichProcessorDescriptor Override(bool? value = true) - { - OverrideValue = value; - return Self; - } - - /// - /// - /// The name of the enrich policy to use. - /// - /// - public EnrichProcessorDescriptor PolicyName(string policyName) - { - PolicyNameValue = policyName; - return Self; - } - - /// - /// - /// A spatial relation operator used to match the geoshape of incoming documents to documents in the enrich index. - /// This option is only used for geo_match enrich policy types. - /// - /// - public EnrichProcessorDescriptor ShapeRelation(Elastic.Clients.Elasticsearch.Serverless.GeoShapeRelation? shapeRelation) - { - ShapeRelationValue = shapeRelation; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public EnrichProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain enrich data. This field contains both the match_field and enrich_fields specified in the enrich policy. - /// Supports template snippets. - /// - /// - public EnrichProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (MaxMatchesValue.HasValue) - { - writer.WritePropertyName("max_matches"); - writer.WriteNumberValue(MaxMatchesValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - writer.WritePropertyName("policy_name"); - writer.WriteStringValue(PolicyNameValue); - if (ShapeRelationValue is not null) - { - writer.WritePropertyName("shape_relation"); - JsonSerializer.Serialize(writer, ShapeRelationValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FailProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FailProcessor.g.cs deleted file mode 100644 index 5d77e770c5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FailProcessor.g.cs +++ /dev/null @@ -1,446 +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.Ingest; - -public sealed partial class FailProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// The error message thrown by the processor. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("message")] - public string Message { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(FailProcessor failProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Fail(failProcessor); -} - -public sealed partial class FailProcessorDescriptor : SerializableDescriptor> -{ - internal FailProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public FailProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string MessageValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public FailProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public FailProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public FailProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The error message thrown by the processor. - /// Supports template snippets. - /// - /// - public FailProcessorDescriptor Message(string message) - { - MessageValue = message; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public FailProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public FailProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public FailProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public FailProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public FailProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("message"); - writer.WriteStringValue(MessageValue); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FailProcessorDescriptor : SerializableDescriptor -{ - internal FailProcessorDescriptor(Action configure) => configure.Invoke(this); - - public FailProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string MessageValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public FailProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public FailProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public FailProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The error message thrown by the processor. - /// Supports template snippets. - /// - /// - public FailProcessorDescriptor Message(string message) - { - MessageValue = message; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public FailProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public FailProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public FailProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public FailProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public FailProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - writer.WritePropertyName("message"); - writer.WriteStringValue(MessageValue); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs deleted file mode 100644 index 810dbfa3704..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/FingerprintProcessor.g.cs +++ /dev/null @@ -1,676 +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.Ingest; - -public sealed partial class FingerprintProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Array of fields to include in the fingerprint. For objects, the processor - /// hashes both the field key and value. For other fields, the processor hashes - /// only the field value. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields Fields { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true, the processor ignores any missing fields. If all fields are - /// missing, the processor silently exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, - /// SHA-256, SHA-512, or MurmurHash3. - /// - /// - [JsonInclude, JsonPropertyName("method")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? Method { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Salt value for the hash function. - /// - /// - [JsonInclude, JsonPropertyName("salt")] - public string? Salt { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Output field for the fingerprint. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(FingerprintProcessor fingerprintProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Fingerprint(fingerprintProcessor); -} - -public sealed partial class FingerprintProcessorDescriptor : SerializableDescriptor> -{ - internal FingerprintProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public FingerprintProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields FieldsValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? MethodValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? SaltValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public FingerprintProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Array of fields to include in the fingerprint. For objects, the processor - /// hashes both the field key and value. For other fields, the processor hashes - /// only the field value. - /// - /// - public FingerprintProcessorDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public FingerprintProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public FingerprintProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true, the processor ignores any missing fields. If all fields are - /// missing, the processor silently exits without modifying the document. - /// - /// - public FingerprintProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, - /// SHA-256, SHA-512, or MurmurHash3. - /// - /// - public FingerprintProcessorDescriptor Method(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? method) - { - MethodValue = method; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public FingerprintProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public FingerprintProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public FingerprintProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public FingerprintProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Salt value for the hash function. - /// - /// - public FingerprintProcessorDescriptor Salt(string? salt) - { - SaltValue = salt; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public FingerprintProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the fingerprint. - /// - /// - public FingerprintProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the fingerprint. - /// - /// - public FingerprintProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the fingerprint. - /// - /// - public FingerprintProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (MethodValue is not null) - { - writer.WritePropertyName("method"); - JsonSerializer.Serialize(writer, MethodValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(SaltValue)) - { - writer.WritePropertyName("salt"); - writer.WriteStringValue(SaltValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FingerprintProcessorDescriptor : SerializableDescriptor -{ - internal FingerprintProcessorDescriptor(Action configure) => configure.Invoke(this); - - public FingerprintProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields FieldsValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? MethodValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? SaltValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public FingerprintProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Array of fields to include in the fingerprint. For objects, the processor - /// hashes both the field key and value. For other fields, the processor hashes - /// only the field value. - /// - /// - public FingerprintProcessorDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public FingerprintProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public FingerprintProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true, the processor ignores any missing fields. If all fields are - /// missing, the processor silently exits without modifying the document. - /// - /// - public FingerprintProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, - /// SHA-256, SHA-512, or MurmurHash3. - /// - /// - public FingerprintProcessorDescriptor Method(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintDigest? method) - { - MethodValue = method; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public FingerprintProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public FingerprintProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public FingerprintProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public FingerprintProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Salt value for the hash function. - /// - /// - public FingerprintProcessorDescriptor Salt(string? salt) - { - SaltValue = salt; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public FingerprintProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the fingerprint. - /// - /// - public FingerprintProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the fingerprint. - /// - /// - public FingerprintProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the fingerprint. - /// - /// - public FingerprintProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (MethodValue is not null) - { - writer.WritePropertyName("method"); - JsonSerializer.Serialize(writer, MethodValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(SaltValue)) - { - writer.WritePropertyName("salt"); - writer.WriteStringValue(SaltValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ForeachProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ForeachProcessor.g.cs deleted file mode 100644 index 691c22c137e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ForeachProcessor.g.cs +++ /dev/null @@ -1,635 +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.Ingest; - -public sealed partial class ForeachProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Field containing array or object values. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true, the processor silently exits without changing the document if the field is null or missing. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Ingest processor to run on each element. - /// - /// - [JsonInclude, JsonPropertyName("processor")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor Processor { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(ForeachProcessor foreachProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Foreach(foreachProcessor); -} - -public sealed partial class ForeachProcessorDescriptor : SerializableDescriptor> -{ - internal ForeachProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public ForeachProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor ProcessorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor ProcessorDescriptor { get; set; } - private Action> ProcessorDescriptorAction { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public ForeachProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing array or object values. - /// - /// - public ForeachProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array or object values. - /// - /// - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array or object values. - /// - /// - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public ForeachProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public ForeachProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true, the processor silently exits without changing the document if the field is null or missing. - /// - /// - public ForeachProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public ForeachProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Ingest processor to run on each element. - /// - /// - public ForeachProcessorDescriptor Processor(Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor processor) - { - ProcessorDescriptor = null; - ProcessorDescriptorAction = null; - ProcessorValue = processor; - return Self; - } - - public ForeachProcessorDescriptor Processor(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - ProcessorValue = null; - ProcessorDescriptorAction = null; - ProcessorDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor Processor(Action> configure) - { - ProcessorValue = null; - ProcessorDescriptor = null; - ProcessorDescriptorAction = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public ForeachProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorDescriptor is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorDescriptor, options); - } - else if (ProcessorDescriptorAction is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(ProcessorDescriptorAction), options); - } - else - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ForeachProcessorDescriptor : SerializableDescriptor -{ - internal ForeachProcessorDescriptor(Action configure) => configure.Invoke(this); - - public ForeachProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor ProcessorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor ProcessorDescriptor { get; set; } - private Action ProcessorDescriptorAction { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public ForeachProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing array or object values. - /// - /// - public ForeachProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array or object values. - /// - /// - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array or object values. - /// - /// - public ForeachProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public ForeachProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public ForeachProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true, the processor silently exits without changing the document if the field is null or missing. - /// - /// - public ForeachProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public ForeachProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ForeachProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Ingest processor to run on each element. - /// - /// - public ForeachProcessorDescriptor Processor(Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor processor) - { - ProcessorDescriptor = null; - ProcessorDescriptorAction = null; - ProcessorValue = processor; - return Self; - } - - public ForeachProcessorDescriptor Processor(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - ProcessorValue = null; - ProcessorDescriptorAction = null; - ProcessorDescriptor = descriptor; - return Self; - } - - public ForeachProcessorDescriptor Processor(Action configure) - { - ProcessorValue = null; - ProcessorDescriptor = null; - ProcessorDescriptorAction = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public ForeachProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorDescriptor is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorDescriptor, options); - } - else if (ProcessorDescriptorAction is not null) - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(ProcessorDescriptorAction), options); - } - else - { - writer.WritePropertyName("processor"); - JsonSerializer.Serialize(writer, ProcessorValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs deleted file mode 100644 index 869d5a103e6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoGridProcessor.g.cs +++ /dev/null @@ -1,1010 +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.Ingest; - -public sealed partial class GeoGridProcessor -{ - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - [JsonInclude, JsonPropertyName("children_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ChildrenField { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to interpret as a geo-tile.= - /// The field format is determined by the tile_type. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public string Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - [JsonInclude, JsonPropertyName("non_children_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? NonChildrenField { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - [JsonInclude, JsonPropertyName("parent_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ParentField { get; set; } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - [JsonInclude, JsonPropertyName("precision_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? PrecisionField { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - /// - /// - /// Which format to save the generated polygon in. - /// - /// - [JsonInclude, JsonPropertyName("target_format")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? TargetFormat { get; set; } - - /// - /// - /// Three tile formats are understood: geohash, geotile and geohex. - /// - /// - [JsonInclude, JsonPropertyName("tile_type")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType TileType { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(GeoGridProcessor geoGridProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.GeoGrid(geoGridProcessor); -} - -public sealed partial class GeoGridProcessorDescriptor : SerializableDescriptor> -{ - internal GeoGridProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public GeoGridProcessorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? ChildrenFieldValue { get; set; } - private string? DescriptionValue { get; set; } - private string FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? NonChildrenFieldValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ParentFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PrecisionFieldValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? TargetFormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType TileTypeValue { get; set; } - - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor ChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? childrenField) - { - ChildrenFieldValue = childrenField; - return Self; - } - - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) - { - ChildrenFieldValue = childrenField; - return Self; - } - - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) - { - ChildrenFieldValue = childrenField; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GeoGridProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to interpret as a geo-tile.= - /// The field format is determined by the tile_type. - /// - /// - public GeoGridProcessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GeoGridProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GeoGridProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public GeoGridProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor NonChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? nonChildrenField) - { - NonChildrenFieldValue = nonChildrenField; - return Self; - } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) - { - NonChildrenFieldValue = nonChildrenField; - return Self; - } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) - { - NonChildrenFieldValue = nonChildrenField; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GeoGridProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GeoGridProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GeoGridProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GeoGridProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - public GeoGridProcessorDescriptor ParentField(Elastic.Clients.Elasticsearch.Serverless.Field? parentField) - { - ParentFieldValue = parentField; - return Self; - } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - public GeoGridProcessorDescriptor ParentField(Expression> parentField) - { - ParentFieldValue = parentField; - return Self; - } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - public GeoGridProcessorDescriptor ParentField(Expression> parentField) - { - ParentFieldValue = parentField; - return Self; - } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - public GeoGridProcessorDescriptor PrecisionField(Elastic.Clients.Elasticsearch.Serverless.Field? precisionField) - { - PrecisionFieldValue = precisionField; - return Self; - } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) - { - PrecisionFieldValue = precisionField; - return Self; - } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) - { - PrecisionFieldValue = precisionField; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GeoGridProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - public GeoGridProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - public GeoGridProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - public GeoGridProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Which format to save the generated polygon in. - /// - /// - public GeoGridProcessorDescriptor TargetFormat(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? targetFormat) - { - TargetFormatValue = targetFormat; - return Self; - } - - /// - /// - /// Three tile formats are understood: geohash, geotile and geohex. - /// - /// - public GeoGridProcessorDescriptor TileType(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType tileType) - { - TileTypeValue = tileType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ChildrenFieldValue is not null) - { - writer.WritePropertyName("children_field"); - JsonSerializer.Serialize(writer, ChildrenFieldValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (NonChildrenFieldValue is not null) - { - writer.WritePropertyName("non_children_field"); - JsonSerializer.Serialize(writer, NonChildrenFieldValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ParentFieldValue is not null) - { - writer.WritePropertyName("parent_field"); - JsonSerializer.Serialize(writer, ParentFieldValue, options); - } - - if (PrecisionFieldValue is not null) - { - writer.WritePropertyName("precision_field"); - JsonSerializer.Serialize(writer, PrecisionFieldValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (TargetFormatValue is not null) - { - writer.WritePropertyName("target_format"); - JsonSerializer.Serialize(writer, TargetFormatValue, options); - } - - writer.WritePropertyName("tile_type"); - JsonSerializer.Serialize(writer, TileTypeValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class GeoGridProcessorDescriptor : SerializableDescriptor -{ - internal GeoGridProcessorDescriptor(Action configure) => configure.Invoke(this); - - public GeoGridProcessorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? ChildrenFieldValue { get; set; } - private string? DescriptionValue { get; set; } - private string FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? NonChildrenFieldValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ParentFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PrecisionFieldValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? TargetFormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType TileTypeValue { get; set; } - - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor ChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? childrenField) - { - ChildrenFieldValue = childrenField; - return Self; - } - - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) - { - ChildrenFieldValue = childrenField; - return Self; - } - - /// - /// - /// If specified and children tiles exist, save those tile addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor ChildrenField(Expression> childrenField) - { - ChildrenFieldValue = childrenField; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GeoGridProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to interpret as a geo-tile.= - /// The field format is determined by the tile_type. - /// - /// - public GeoGridProcessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GeoGridProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GeoGridProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public GeoGridProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor NonChildrenField(Elastic.Clients.Elasticsearch.Serverless.Field? nonChildrenField) - { - NonChildrenFieldValue = nonChildrenField; - return Self; - } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) - { - NonChildrenFieldValue = nonChildrenField; - return Self; - } - - /// - /// - /// If specified and intersecting non-child tiles exist, save their addresses to this field as an array of strings. - /// - /// - public GeoGridProcessorDescriptor NonChildrenField(Expression> nonChildrenField) - { - NonChildrenFieldValue = nonChildrenField; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GeoGridProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GeoGridProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GeoGridProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GeoGridProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - public GeoGridProcessorDescriptor ParentField(Elastic.Clients.Elasticsearch.Serverless.Field? parentField) - { - ParentFieldValue = parentField; - return Self; - } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - public GeoGridProcessorDescriptor ParentField(Expression> parentField) - { - ParentFieldValue = parentField; - return Self; - } - - /// - /// - /// If specified and a parent tile exists, save that tile address to this field. - /// - /// - public GeoGridProcessorDescriptor ParentField(Expression> parentField) - { - ParentFieldValue = parentField; - return Self; - } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - public GeoGridProcessorDescriptor PrecisionField(Elastic.Clients.Elasticsearch.Serverless.Field? precisionField) - { - PrecisionFieldValue = precisionField; - return Self; - } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) - { - PrecisionFieldValue = precisionField; - return Self; - } - - /// - /// - /// If specified, save the tile precision (zoom) as an integer to this field. - /// - /// - public GeoGridProcessorDescriptor PrecisionField(Expression> precisionField) - { - PrecisionFieldValue = precisionField; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GeoGridProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - public GeoGridProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - public GeoGridProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the polygon shape to, by default, the field is updated in-place. - /// - /// - public GeoGridProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Which format to save the generated polygon in. - /// - /// - public GeoGridProcessorDescriptor TargetFormat(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTargetFormat? targetFormat) - { - TargetFormatValue = targetFormat; - return Self; - } - - /// - /// - /// Three tile formats are understood: geohash, geotile and geohex. - /// - /// - public GeoGridProcessorDescriptor TileType(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridTileType tileType) - { - TileTypeValue = tileType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ChildrenFieldValue is not null) - { - writer.WritePropertyName("children_field"); - JsonSerializer.Serialize(writer, ChildrenFieldValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (NonChildrenFieldValue is not null) - { - writer.WritePropertyName("non_children_field"); - JsonSerializer.Serialize(writer, NonChildrenFieldValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ParentFieldValue is not null) - { - writer.WritePropertyName("parent_field"); - JsonSerializer.Serialize(writer, ParentFieldValue, options); - } - - if (PrecisionFieldValue is not null) - { - writer.WritePropertyName("precision_field"); - JsonSerializer.Serialize(writer, PrecisionFieldValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (TargetFormatValue is not null) - { - writer.WritePropertyName("target_format"); - JsonSerializer.Serialize(writer, TargetFormatValue, options); - } - - writer.WritePropertyName("tile_type"); - JsonSerializer.Serialize(writer, TileTypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs deleted file mode 100644 index 053f79ee61a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpDownloadStatistics.g.cs +++ /dev/null @@ -1,79 +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.Ingest; - -public sealed partial class GeoIpDownloadStatistics -{ - /// - /// - /// Current number of databases available for use. - /// - /// - [JsonInclude, JsonPropertyName("databases_count")] - public int DatabasesCount { get; init; } - - /// - /// - /// Total number of databases not updated after 30 days - /// - /// - [JsonInclude, JsonPropertyName("expired_databases")] - public int ExpiredDatabases { get; init; } - - /// - /// - /// Total number of failed database downloads. - /// - /// - [JsonInclude, JsonPropertyName("failed_downloads")] - public int FailedDownloads { get; init; } - - /// - /// - /// Total number of database updates skipped. - /// - /// - [JsonInclude, JsonPropertyName("skipped_updates")] - public int SkippedUpdates { get; init; } - - /// - /// - /// Total number of successful database downloads. - /// - /// - [JsonInclude, JsonPropertyName("successful_downloads")] - public int SuccessfulDownloads { get; init; } - - /// - /// - /// Total milliseconds spent downloading databases. - /// - /// - [JsonInclude, JsonPropertyName("total_download_time")] - public long TotalDownloadTime { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs deleted file mode 100644 index 4946807577b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabaseName.g.cs +++ /dev/null @@ -1,39 +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.Ingest; - -public sealed partial class GeoIpNodeDatabaseName -{ - /// - /// - /// Name of the database. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs deleted file mode 100644 index 67416283f12..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpNodeDatabases.g.cs +++ /dev/null @@ -1,52 +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.Ingest; - -/// -/// -/// Downloaded databases for the node. The field key is the node ID. -/// -/// -public sealed partial class GeoIpNodeDatabases -{ - /// - /// - /// Downloaded databases for the node. - /// - /// - [JsonInclude, JsonPropertyName("databases")] - public IReadOnlyCollection Databases { get; init; } - - /// - /// - /// Downloaded database files, including related license files. Elasticsearch stores these files in the node’s temporary directory: $ES_TMPDIR/geoip-databases/<node_id>. - /// - /// - [JsonInclude, JsonPropertyName("files_in_temp")] - public IReadOnlyCollection FilesInTemp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs deleted file mode 100644 index 7cb501b0299..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GeoIpProcessor.g.cs +++ /dev/null @@ -1,798 +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.Ingest; - -public sealed partial class GeoIpProcessor -{ - /// - /// - /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. - /// - /// - [JsonInclude, JsonPropertyName("database_file")] - public string? DatabaseFile { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. - /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. - /// - /// - [JsonInclude, JsonPropertyName("download_database_on_pipeline_creation")] - public bool? DownloadDatabaseOnPipelineCreation { get; set; } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// If true, only the first found geoip data will be returned, even if the field contains an array. - /// - /// - [JsonInclude, JsonPropertyName("first_only")] - public bool? FirstOnly { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Controls what properties are added to the target_field based on the geoip lookup. - /// - /// - [JsonInclude, JsonPropertyName("properties")] - public ICollection? Properties { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(GeoIpProcessor geoIpProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Geoip(geoIpProcessor); -} - -public sealed partial class GeoIpProcessorDescriptor : SerializableDescriptor> -{ - internal GeoIpProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public GeoIpProcessorDescriptor() : base() - { - } - - private string? DatabaseFileValue { get; set; } - private string? DescriptionValue { get; set; } - private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? FirstOnlyValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. - /// - /// - public GeoIpProcessorDescriptor DatabaseFile(string? databaseFile) - { - DatabaseFileValue = databaseFile; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GeoIpProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. - /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. - /// - /// - public GeoIpProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) - { - DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public GeoIpProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// If true, only the first found geoip data will be returned, even if the field contains an array. - /// - /// - public GeoIpProcessorDescriptor FirstOnly(bool? firstOnly = true) - { - FirstOnlyValue = firstOnly; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GeoIpProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GeoIpProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public GeoIpProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GeoIpProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what properties are added to the target_field based on the geoip lookup. - /// - /// - public GeoIpProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GeoIpProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public GeoIpProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DatabaseFileValue)) - { - writer.WritePropertyName("database_file"); - writer.WriteStringValue(DatabaseFileValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DownloadDatabaseOnPipelineCreationValue.HasValue) - { - writer.WritePropertyName("download_database_on_pipeline_creation"); - writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (FirstOnlyValue.HasValue) - { - writer.WritePropertyName("first_only"); - writer.WriteBooleanValue(FirstOnlyValue.Value); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoIpProcessorDescriptor : SerializableDescriptor -{ - internal GeoIpProcessorDescriptor(Action configure) => configure.Invoke(this); - - public GeoIpProcessorDescriptor() : base() - { - } - - private string? DatabaseFileValue { get; set; } - private string? DescriptionValue { get; set; } - private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? FirstOnlyValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. - /// - /// - public GeoIpProcessorDescriptor DatabaseFile(string? databaseFile) - { - DatabaseFileValue = databaseFile; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GeoIpProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. - /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. - /// - /// - public GeoIpProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) - { - DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public GeoIpProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public GeoIpProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// If true, only the first found geoip data will be returned, even if the field contains an array. - /// - /// - public GeoIpProcessorDescriptor FirstOnly(bool? firstOnly = true) - { - FirstOnlyValue = firstOnly; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GeoIpProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GeoIpProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public GeoIpProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GeoIpProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GeoIpProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what properties are added to the target_field based on the geoip lookup. - /// - /// - public GeoIpProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GeoIpProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public GeoIpProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public GeoIpProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DatabaseFileValue)) - { - writer.WritePropertyName("database_file"); - writer.WriteStringValue(DatabaseFileValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DownloadDatabaseOnPipelineCreationValue.HasValue) - { - writer.WritePropertyName("download_database_on_pipeline_creation"); - writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (FirstOnlyValue.HasValue) - { - writer.WritePropertyName("first_only"); - writer.WriteBooleanValue(FirstOnlyValue.Value); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs deleted file mode 100644 index 4a802178b76..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GrokProcessor.g.cs +++ /dev/null @@ -1,708 +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.Ingest; - -public sealed partial class GrokProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Must be disabled or v1. If v1, the processor uses patterns with Elastic - /// Common Schema (ECS) field names. - /// - /// - [JsonInclude, JsonPropertyName("ecs_compatibility")] - public string? EcsCompatibility { get; set; } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. - /// Patterns matching existing names will override the pre-existing definition. - /// - /// - [JsonInclude, JsonPropertyName("pattern_definitions")] - public IDictionary? PatternDefinitions { get; set; } - - /// - /// - /// An ordered list of grok expression to match and extract named captures with. - /// Returns on the first expression in the list that matches. - /// - /// - [JsonInclude, JsonPropertyName("patterns")] - public ICollection Patterns { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// When true, _ingest._grok_match_index will be inserted into your matched document’s metadata with the index into the pattern found in patterns that matched. - /// - /// - [JsonInclude, JsonPropertyName("trace_match")] - public bool? TraceMatch { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(GrokProcessor grokProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Grok(grokProcessor); -} - -public sealed partial class GrokProcessorDescriptor : SerializableDescriptor> -{ - internal GrokProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public GrokProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? EcsCompatibilityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private IDictionary? PatternDefinitionsValue { get; set; } - private ICollection PatternsValue { get; set; } - private string? TagValue { get; set; } - private bool? TraceMatchValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GrokProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Must be disabled or v1. If v1, the processor uses patterns with Elastic - /// Common Schema (ECS) field names. - /// - /// - public GrokProcessorDescriptor EcsCompatibility(string? ecsCompatibility) - { - EcsCompatibilityValue = ecsCompatibility; - return Self; - } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - public GrokProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GrokProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GrokProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public GrokProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GrokProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GrokProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. - /// Patterns matching existing names will override the pre-existing definition. - /// - /// - public GrokProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) - { - PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// An ordered list of grok expression to match and extract named captures with. - /// Returns on the first expression in the list that matches. - /// - /// - public GrokProcessorDescriptor Patterns(ICollection patterns) - { - PatternsValue = patterns; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GrokProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// When true, _ingest._grok_match_index will be inserted into your matched document’s metadata with the index into the pattern found in patterns that matched. - /// - /// - public GrokProcessorDescriptor TraceMatch(bool? traceMatch = true) - { - TraceMatchValue = traceMatch; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(EcsCompatibilityValue)) - { - writer.WritePropertyName("ecs_compatibility"); - writer.WriteStringValue(EcsCompatibilityValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PatternDefinitionsValue is not null) - { - writer.WritePropertyName("pattern_definitions"); - JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); - } - - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TraceMatchValue.HasValue) - { - writer.WritePropertyName("trace_match"); - writer.WriteBooleanValue(TraceMatchValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GrokProcessorDescriptor : SerializableDescriptor -{ - internal GrokProcessorDescriptor(Action configure) => configure.Invoke(this); - - public GrokProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? EcsCompatibilityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private IDictionary? PatternDefinitionsValue { get; set; } - private ICollection PatternsValue { get; set; } - private string? TagValue { get; set; } - private bool? TraceMatchValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GrokProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Must be disabled or v1. If v1, the processor uses patterns with Elastic - /// Common Schema (ECS) field names. - /// - /// - public GrokProcessorDescriptor EcsCompatibility(string? ecsCompatibility) - { - EcsCompatibilityValue = ecsCompatibility; - return Self; - } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - public GrokProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to use for grok expression parsing. - /// - /// - public GrokProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GrokProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GrokProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public GrokProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GrokProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GrokProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GrokProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// A map of pattern-name and pattern tuples defining custom patterns to be used by the current processor. - /// Patterns matching existing names will override the pre-existing definition. - /// - /// - public GrokProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) - { - PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// An ordered list of grok expression to match and extract named captures with. - /// Returns on the first expression in the list that matches. - /// - /// - public GrokProcessorDescriptor Patterns(ICollection patterns) - { - PatternsValue = patterns; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GrokProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// When true, _ingest._grok_match_index will be inserted into your matched document’s metadata with the index into the pattern found in patterns that matched. - /// - /// - public GrokProcessorDescriptor TraceMatch(bool? traceMatch = true) - { - TraceMatchValue = traceMatch; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(EcsCompatibilityValue)) - { - writer.WritePropertyName("ecs_compatibility"); - writer.WriteStringValue(EcsCompatibilityValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PatternDefinitionsValue is not null) - { - writer.WritePropertyName("pattern_definitions"); - JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); - } - - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TraceMatchValue.HasValue) - { - writer.WritePropertyName("trace_match"); - writer.WriteBooleanValue(TraceMatchValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GsubProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GsubProcessor.g.cs deleted file mode 100644 index 5982f39403c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/GsubProcessor.g.cs +++ /dev/null @@ -1,698 +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.Ingest; - -public sealed partial class GsubProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to apply the replacement to. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// The pattern to be replaced. - /// - /// - [JsonInclude, JsonPropertyName("pattern")] - public string Pattern { get; set; } - - /// - /// - /// The string to replace the matching patterns with. - /// - /// - [JsonInclude, JsonPropertyName("replacement")] - public string Replacement { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(GsubProcessor gsubProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Gsub(gsubProcessor); -} - -public sealed partial class GsubProcessorDescriptor : SerializableDescriptor> -{ - internal GsubProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public GsubProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string PatternValue { get; set; } - private string ReplacementValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GsubProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to apply the replacement to. - /// - /// - public GsubProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to apply the replacement to. - /// - /// - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to apply the replacement to. - /// - /// - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GsubProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GsubProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public GsubProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GsubProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GsubProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The pattern to be replaced. - /// - /// - public GsubProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - /// - /// - /// The string to replace the matching patterns with. - /// - /// - public GsubProcessorDescriptor Replacement(string replacement) - { - ReplacementValue = replacement; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GsubProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public GsubProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GsubProcessorDescriptor : SerializableDescriptor -{ - internal GsubProcessorDescriptor(Action configure) => configure.Invoke(this); - - public GsubProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string PatternValue { get; set; } - private string ReplacementValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public GsubProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to apply the replacement to. - /// - /// - public GsubProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to apply the replacement to. - /// - /// - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to apply the replacement to. - /// - /// - public GsubProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public GsubProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public GsubProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public GsubProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public GsubProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public GsubProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public GsubProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The pattern to be replaced. - /// - /// - public GsubProcessorDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - /// - /// - /// The string to replace the matching patterns with. - /// - /// - public GsubProcessorDescriptor Replacement(string replacement) - { - ReplacementValue = replacement; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public GsubProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public GsubProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public GsubProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - writer.WritePropertyName("replacement"); - writer.WriteStringValue(ReplacementValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/HtmlStripProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/HtmlStripProcessor.g.cs deleted file mode 100644 index 82fd1b22c1a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/HtmlStripProcessor.g.cs +++ /dev/null @@ -1,626 +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.Ingest; - -public sealed partial class HtmlStripProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document, - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(HtmlStripProcessor htmlStripProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.HtmlStrip(htmlStripProcessor); -} - -public sealed partial class HtmlStripProcessorDescriptor : SerializableDescriptor> -{ - internal HtmlStripProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public HtmlStripProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public HtmlStripProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - public HtmlStripProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - public HtmlStripProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - public HtmlStripProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public HtmlStripProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public HtmlStripProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document, - /// - /// - public HtmlStripProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public HtmlStripProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public HtmlStripProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public HtmlStripProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public HtmlStripProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public HtmlStripProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public HtmlStripProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public HtmlStripProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public HtmlStripProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class HtmlStripProcessorDescriptor : SerializableDescriptor -{ - internal HtmlStripProcessorDescriptor(Action configure) => configure.Invoke(this); - - public HtmlStripProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public HtmlStripProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - public HtmlStripProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - public HtmlStripProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to remove HTML tags from. - /// - /// - public HtmlStripProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public HtmlStripProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public HtmlStripProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document, - /// - /// - public HtmlStripProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public HtmlStripProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public HtmlStripProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public HtmlStripProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public HtmlStripProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public HtmlStripProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public HtmlStripProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public HtmlStripProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to - /// By default, the field is updated in-place. - /// - /// - public HtmlStripProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfig.g.cs deleted file mode 100644 index 7d79f093d47..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfig.g.cs +++ /dev/null @@ -1,242 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -[JsonConverter(typeof(InferenceConfigConverter))] -public sealed partial class InferenceConfig -{ - internal InferenceConfig(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static InferenceConfig Classification(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigClassification inferenceConfigClassification) => new InferenceConfig("classification", inferenceConfigClassification); - public static InferenceConfig Regression(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigRegression inferenceConfigRegression) => new InferenceConfig("regression", inferenceConfigRegression); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class InferenceConfigConverter : JsonConverter -{ - public override InferenceConfig Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regression") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfig' from the response."); - } - - var result = new InferenceConfig(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, InferenceConfig value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigClassification)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigRegression)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigDescriptor : SerializableDescriptor> -{ - internal InferenceConfigDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigClassification inferenceConfigClassification) => Set(inferenceConfigClassification, "classification"); - public InferenceConfigDescriptor Classification(Action> configure) => Set(configure, "classification"); - public InferenceConfigDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigRegression inferenceConfigRegression) => Set(inferenceConfigRegression, "regression"); - public InferenceConfigDescriptor Regression(Action> configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigDescriptor : SerializableDescriptor -{ - internal InferenceConfigDescriptor(Action configure) => configure.Invoke(this); - - public InferenceConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigClassification inferenceConfigClassification) => Set(inferenceConfigClassification, "classification"); - public InferenceConfigDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigRegression inferenceConfigRegression) => Set(inferenceConfigRegression, "regression"); - public InferenceConfigDescriptor Regression(Action configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigClassification.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigClassification.g.cs deleted file mode 100644 index 226e73d3d6a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigClassification.g.cs +++ /dev/null @@ -1,376 +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.Ingest; - -public sealed partial class InferenceConfigClassification -{ - /// - /// - /// Specifies the number of top class predictions to return. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - [JsonInclude, JsonPropertyName("num_top_feature_importance_values")] - public int? NumTopFeatureImportanceValues { get; set; } - - /// - /// - /// Specifies the type of the predicted field to write. - /// Valid values are: string, number, boolean. - /// - /// - [JsonInclude, JsonPropertyName("prediction_field_type")] - public string? PredictionFieldType { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ResultsField { get; set; } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - [JsonInclude, JsonPropertyName("top_classes_results_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TopClassesResultsField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig(InferenceConfigClassification inferenceConfigClassification) => Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig.Classification(inferenceConfigClassification); -} - -public sealed partial class InferenceConfigClassificationDescriptor : SerializableDescriptor> -{ - internal InferenceConfigClassificationDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceConfigClassificationDescriptor() : base() - { - } - - private int? NumTopClassesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private string? PredictionFieldTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TopClassesResultsFieldValue { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. - /// - /// - public InferenceConfigClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public InferenceConfigClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Specifies the type of the predicted field to write. - /// Valid values are: string, number, boolean. - /// - /// - public InferenceConfigClassificationDescriptor PredictionFieldType(string? predictionFieldType) - { - PredictionFieldTypeValue = predictionFieldType; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigClassificationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - public InferenceConfigClassificationDescriptor TopClassesResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (!string.IsNullOrEmpty(PredictionFieldTypeValue)) - { - writer.WritePropertyName("prediction_field_type"); - writer.WriteStringValue(PredictionFieldTypeValue); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - if (TopClassesResultsFieldValue is not null) - { - writer.WritePropertyName("top_classes_results_field"); - JsonSerializer.Serialize(writer, TopClassesResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigClassificationDescriptor : SerializableDescriptor -{ - internal InferenceConfigClassificationDescriptor(Action configure) => configure.Invoke(this); - - public InferenceConfigClassificationDescriptor() : base() - { - } - - private int? NumTopClassesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private string? PredictionFieldTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TopClassesResultsFieldValue { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. - /// - /// - public InferenceConfigClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public InferenceConfigClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Specifies the type of the predicted field to write. - /// Valid values are: string, number, boolean. - /// - /// - public InferenceConfigClassificationDescriptor PredictionFieldType(string? predictionFieldType) - { - PredictionFieldTypeValue = predictionFieldType; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigClassificationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigClassificationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - public InferenceConfigClassificationDescriptor TopClassesResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. - /// - /// - public InferenceConfigClassificationDescriptor TopClassesResultsField(Expression> topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (!string.IsNullOrEmpty(PredictionFieldTypeValue)) - { - writer.WritePropertyName("prediction_field_type"); - writer.WriteStringValue(PredictionFieldTypeValue); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - if (TopClassesResultsFieldValue is not null) - { - writer.WritePropertyName("top_classes_results_field"); - JsonSerializer.Serialize(writer, TopClassesResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigRegression.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigRegression.g.cs deleted file mode 100644 index 7cff6fb9ae8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceConfigRegression.g.cs +++ /dev/null @@ -1,197 +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.Ingest; - -public sealed partial class InferenceConfigRegression -{ - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - [JsonInclude, JsonPropertyName("num_top_feature_importance_values")] - public int? NumTopFeatureImportanceValues { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ResultsField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig(InferenceConfigRegression inferenceConfigRegression) => Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig.Regression(inferenceConfigRegression); -} - -public sealed partial class InferenceConfigRegressionDescriptor : SerializableDescriptor> -{ - internal InferenceConfigRegressionDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceConfigRegressionDescriptor() : base() - { - } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public InferenceConfigRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigRegressionDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigRegressionDescriptor : SerializableDescriptor -{ - internal InferenceConfigRegressionDescriptor(Action configure) => configure.Invoke(this); - - public InferenceConfigRegressionDescriptor() : base() - { - } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public InferenceConfigRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigRegressionDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. - /// - /// - public InferenceConfigRegressionDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceProcessor.g.cs deleted file mode 100644 index 402c858e867..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/InferenceProcessor.g.cs +++ /dev/null @@ -1,682 +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.Ingest; - -public sealed partial class InferenceProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Maps the document field names to the known field names of the model. - /// This mapping takes precedence over any default mappings provided in the model configuration. - /// - /// - [JsonInclude, JsonPropertyName("field_map")] - public IDictionary? FieldMap { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Contains the inference type and its options. - /// - /// - [JsonInclude, JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig? InferenceConfig { get; set; } - - /// - /// - /// The ID or alias for the trained model, or the ID of the deployment. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id ModelId { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(InferenceProcessor inferenceProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Inference(inferenceProcessor); -} - -public sealed partial class InferenceProcessorDescriptor : SerializableDescriptor> -{ - internal InferenceProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private IDictionary? FieldMapValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } - private Action> InferenceConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id ModelIdValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public InferenceProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Maps the document field names to the known field names of the model. - /// This mapping takes precedence over any default mappings provided in the model configuration. - /// - /// - public InferenceProcessorDescriptor FieldMap(Func, FluentDictionary> selector) - { - FieldMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public InferenceProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public InferenceProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Contains the inference type and its options. - /// - /// - public InferenceProcessorDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(Action> configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ID or alias for the trained model, or the ID of the deployment. - /// - /// - public InferenceProcessorDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public InferenceProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public InferenceProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - public InferenceProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (FieldMapValue is not null) - { - writer.WritePropertyName("field_map"); - JsonSerializer.Serialize(writer, FieldMapValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - writer.WritePropertyName("model_id"); - JsonSerializer.Serialize(writer, ModelIdValue, options); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceProcessorDescriptor : SerializableDescriptor -{ - internal InferenceProcessorDescriptor(Action configure) => configure.Invoke(this); - - public InferenceProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private IDictionary? FieldMapValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig? InferenceConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } - private Action InferenceConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id ModelIdValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public InferenceProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Maps the document field names to the known field names of the model. - /// This mapping takes precedence over any default mappings provided in the model configuration. - /// - /// - public InferenceProcessorDescriptor FieldMap(Func, FluentDictionary> selector) - { - FieldMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public InferenceProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public InferenceProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Contains the inference type and its options. - /// - /// - public InferenceProcessorDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfig? inferenceConfig) - { - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = null; - InferenceConfigValue = inferenceConfig; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigDescriptor descriptor) - { - InferenceConfigValue = null; - InferenceConfigDescriptorAction = null; - InferenceConfigDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor InferenceConfig(Action configure) - { - InferenceConfigValue = null; - InferenceConfigDescriptor = null; - InferenceConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ID or alias for the trained model, or the ID of the deployment. - /// - /// - public InferenceProcessorDescriptor ModelId(Elastic.Clients.Elasticsearch.Serverless.Id modelId) - { - ModelIdValue = modelId; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public InferenceProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public InferenceProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public InferenceProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - public InferenceProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Field added to incoming documents to contain results objects. - /// - /// - public InferenceProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (FieldMapValue is not null) - { - writer.WritePropertyName("field_map"); - JsonSerializer.Serialize(writer, FieldMapValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (InferenceConfigDescriptor is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigDescriptor, options); - } - else if (InferenceConfigDescriptorAction is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceConfigDescriptor(InferenceConfigDescriptorAction), options); - } - else if (InferenceConfigValue is not null) - { - writer.WritePropertyName("inference_config"); - JsonSerializer.Serialize(writer, InferenceConfigValue, options); - } - - writer.WritePropertyName("model_id"); - JsonSerializer.Serialize(writer, ModelIdValue, options); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs deleted file mode 100644 index 121ef723da6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IngestInfo.g.cs +++ /dev/null @@ -1,38 +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.Ingest; - -public sealed partial class IngestInfo -{ - [JsonInclude, JsonPropertyName("pipeline")] - public string? Pipeline { get; init; } - [JsonInclude, JsonPropertyName("_redact")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.Redact? Redact { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public DateTimeOffset Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs deleted file mode 100644 index d69946484e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpDatabaseConfigurationMetadata.g.cs +++ /dev/null @@ -1,42 +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.Ingest; - -public sealed partial class IpDatabaseConfigurationMetadata -{ - [JsonInclude, JsonPropertyName("database")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull Database { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("modified_date")] - public long? ModifiedDate { get; init; } - [JsonInclude, JsonPropertyName("modified_date_millis")] - public long? ModifiedDateMillis { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs deleted file mode 100644 index 0f8ec6efefe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/IpLocationProcessor.g.cs +++ /dev/null @@ -1,798 +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.Ingest; - -public sealed partial class IpLocationProcessor -{ - /// - /// - /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. - /// - /// - [JsonInclude, JsonPropertyName("database_file")] - public string? DatabaseFile { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. - /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. - /// - /// - [JsonInclude, JsonPropertyName("download_database_on_pipeline_creation")] - public bool? DownloadDatabaseOnPipelineCreation { get; set; } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// If true, only the first found IP location data will be returned, even if the field contains an array. - /// - /// - [JsonInclude, JsonPropertyName("first_only")] - public bool? FirstOnly { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Controls what properties are added to the target_field based on the IP location lookup. - /// - /// - [JsonInclude, JsonPropertyName("properties")] - public ICollection? Properties { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(IpLocationProcessor ipLocationProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.IpLocation(ipLocationProcessor); -} - -public sealed partial class IpLocationProcessorDescriptor : SerializableDescriptor> -{ - internal IpLocationProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public IpLocationProcessorDescriptor() : base() - { - } - - private string? DatabaseFileValue { get; set; } - private string? DescriptionValue { get; set; } - private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? FirstOnlyValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. - /// - /// - public IpLocationProcessorDescriptor DatabaseFile(string? databaseFile) - { - DatabaseFileValue = databaseFile; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public IpLocationProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. - /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. - /// - /// - public IpLocationProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) - { - DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public IpLocationProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public IpLocationProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public IpLocationProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// If true, only the first found IP location data will be returned, even if the field contains an array. - /// - /// - public IpLocationProcessorDescriptor FirstOnly(bool? firstOnly = true) - { - FirstOnlyValue = firstOnly; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public IpLocationProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public IpLocationProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public IpLocationProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public IpLocationProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public IpLocationProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public IpLocationProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public IpLocationProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what properties are added to the target_field based on the IP location lookup. - /// - /// - public IpLocationProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public IpLocationProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public IpLocationProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public IpLocationProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public IpLocationProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DatabaseFileValue)) - { - writer.WritePropertyName("database_file"); - writer.WriteStringValue(DatabaseFileValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DownloadDatabaseOnPipelineCreationValue.HasValue) - { - writer.WritePropertyName("download_database_on_pipeline_creation"); - writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (FirstOnlyValue.HasValue) - { - writer.WritePropertyName("first_only"); - writer.WriteBooleanValue(FirstOnlyValue.Value); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IpLocationProcessorDescriptor : SerializableDescriptor -{ - internal IpLocationProcessorDescriptor(Action configure) => configure.Invoke(this); - - public IpLocationProcessorDescriptor() : base() - { - } - - private string? DatabaseFileValue { get; set; } - private string? DescriptionValue { get; set; } - private bool? DownloadDatabaseOnPipelineCreationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? FirstOnlyValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// The database filename referring to a database the module ships with (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom database in the ingest-geoip config directory. - /// - /// - public IpLocationProcessorDescriptor DatabaseFile(string? databaseFile) - { - DatabaseFileValue = databaseFile; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public IpLocationProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// If true (and if ingest.geoip.downloader.eager.download is false), the missing database is downloaded when the pipeline is created. - /// Else, the download is triggered by when the pipeline is used as the default_pipeline or final_pipeline in an index. - /// - /// - public IpLocationProcessorDescriptor DownloadDatabaseOnPipelineCreation(bool? downloadDatabaseOnPipelineCreation = true) - { - DownloadDatabaseOnPipelineCreationValue = downloadDatabaseOnPipelineCreation; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public IpLocationProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public IpLocationProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to get the ip address from for the geographical lookup. - /// - /// - public IpLocationProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// If true, only the first found IP location data will be returned, even if the field contains an array. - /// - /// - public IpLocationProcessorDescriptor FirstOnly(bool? firstOnly = true) - { - FirstOnlyValue = firstOnly; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public IpLocationProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public IpLocationProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public IpLocationProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public IpLocationProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public IpLocationProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public IpLocationProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public IpLocationProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what properties are added to the target_field based on the IP location lookup. - /// - /// - public IpLocationProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public IpLocationProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public IpLocationProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public IpLocationProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will hold the geographical information looked up from the MaxMind database. - /// - /// - public IpLocationProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DatabaseFileValue)) - { - writer.WritePropertyName("database_file"); - writer.WriteStringValue(DatabaseFileValue); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DownloadDatabaseOnPipelineCreationValue.HasValue) - { - writer.WritePropertyName("download_database_on_pipeline_creation"); - writer.WriteBooleanValue(DownloadDatabaseOnPipelineCreationValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (FirstOnlyValue.HasValue) - { - writer.WritePropertyName("first_only"); - writer.WriteBooleanValue(FirstOnlyValue.Value); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs deleted file mode 100644 index 997db6852de..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Ipinfo.g.cs +++ /dev/null @@ -1,47 +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.Ingest; - -public sealed partial class Ipinfo -{ -} - -public sealed partial class IpinfoDescriptor : SerializableDescriptor -{ - internal IpinfoDescriptor(Action configure) => configure.Invoke(this); - - public IpinfoDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JoinProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JoinProcessor.g.cs deleted file mode 100644 index 67a06195c8a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JoinProcessor.g.cs +++ /dev/null @@ -1,618 +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.Ingest; - -public sealed partial class JoinProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Field containing array values to join. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// The separator character. - /// - /// - [JsonInclude, JsonPropertyName("separator")] - public string Separator { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(JoinProcessor joinProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Join(joinProcessor); -} - -public sealed partial class JoinProcessorDescriptor : SerializableDescriptor> -{ - internal JoinProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public JoinProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string SeparatorValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public JoinProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing array values to join. - /// - /// - public JoinProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array values to join. - /// - /// - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array values to join. - /// - /// - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public JoinProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public JoinProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public JoinProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JoinProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The separator character. - /// - /// - public JoinProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public JoinProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - public JoinProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class JoinProcessorDescriptor : SerializableDescriptor -{ - internal JoinProcessorDescriptor(Action configure) => configure.Invoke(this); - - public JoinProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string SeparatorValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public JoinProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing array values to join. - /// - /// - public JoinProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array values to join. - /// - /// - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing array values to join. - /// - /// - public JoinProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public JoinProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public JoinProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public JoinProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JoinProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JoinProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The separator character. - /// - /// - public JoinProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public JoinProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - public JoinProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the joined value to. - /// By default, the field is updated in-place. - /// - /// - public JoinProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JsonProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JsonProcessor.g.cs deleted file mode 100644 index 92b4f24297a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/JsonProcessor.g.cs +++ /dev/null @@ -1,726 +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.Ingest; - -public sealed partial class JsonProcessor -{ - /// - /// - /// Flag that forces the parsed JSON to be added at the top level of the document. - /// target_field must not be set when this option is chosen. - /// - /// - [JsonInclude, JsonPropertyName("add_to_root")] - public bool? AddToRoot { get; set; } - - /// - /// - /// When set to replace, root fields that conflict with fields from the parsed JSON will be overridden. - /// When set to merge, conflicting fields will be merged. - /// Only applicable if add_to_root is set to true. - /// - /// - [JsonInclude, JsonPropertyName("add_to_root_conflict_strategy")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessorConflictStrategy? AddToRootConflictStrategy { get; set; } - - /// - /// - /// When set to true, the JSON parser will not fail if the JSON contains duplicate keys. - /// Instead, the last encountered value for any duplicate key wins. - /// - /// - [JsonInclude, JsonPropertyName("allow_duplicate_keys")] - public bool? AllowDuplicateKeys { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to be parsed. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(JsonProcessor jsonProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Json(jsonProcessor); -} - -public sealed partial class JsonProcessorDescriptor : SerializableDescriptor> -{ - internal JsonProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public JsonProcessorDescriptor() : base() - { - } - - private bool? AddToRootValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessorConflictStrategy? AddToRootConflictStrategyValue { get; set; } - private bool? AllowDuplicateKeysValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Flag that forces the parsed JSON to be added at the top level of the document. - /// target_field must not be set when this option is chosen. - /// - /// - public JsonProcessorDescriptor AddToRoot(bool? addToRoot = true) - { - AddToRootValue = addToRoot; - return Self; - } - - /// - /// - /// When set to replace, root fields that conflict with fields from the parsed JSON will be overridden. - /// When set to merge, conflicting fields will be merged. - /// Only applicable if add_to_root is set to true. - /// - /// - public JsonProcessorDescriptor AddToRootConflictStrategy(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessorConflictStrategy? addToRootConflictStrategy) - { - AddToRootConflictStrategyValue = addToRootConflictStrategy; - return Self; - } - - /// - /// - /// When set to true, the JSON parser will not fail if the JSON contains duplicate keys. - /// Instead, the last encountered value for any duplicate key wins. - /// - /// - public JsonProcessorDescriptor AllowDuplicateKeys(bool? allowDuplicateKeys = true) - { - AllowDuplicateKeysValue = allowDuplicateKeys; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public JsonProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be parsed. - /// - /// - public JsonProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// - /// - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// - /// - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public JsonProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public JsonProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public JsonProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JsonProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public JsonProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - public JsonProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AddToRootValue.HasValue) - { - writer.WritePropertyName("add_to_root"); - writer.WriteBooleanValue(AddToRootValue.Value); - } - - if (AddToRootConflictStrategyValue is not null) - { - writer.WritePropertyName("add_to_root_conflict_strategy"); - JsonSerializer.Serialize(writer, AddToRootConflictStrategyValue, options); - } - - if (AllowDuplicateKeysValue.HasValue) - { - writer.WritePropertyName("allow_duplicate_keys"); - writer.WriteBooleanValue(AllowDuplicateKeysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class JsonProcessorDescriptor : SerializableDescriptor -{ - internal JsonProcessorDescriptor(Action configure) => configure.Invoke(this); - - public JsonProcessorDescriptor() : base() - { - } - - private bool? AddToRootValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessorConflictStrategy? AddToRootConflictStrategyValue { get; set; } - private bool? AllowDuplicateKeysValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Flag that forces the parsed JSON to be added at the top level of the document. - /// target_field must not be set when this option is chosen. - /// - /// - public JsonProcessorDescriptor AddToRoot(bool? addToRoot = true) - { - AddToRootValue = addToRoot; - return Self; - } - - /// - /// - /// When set to replace, root fields that conflict with fields from the parsed JSON will be overridden. - /// When set to merge, conflicting fields will be merged. - /// Only applicable if add_to_root is set to true. - /// - /// - public JsonProcessorDescriptor AddToRootConflictStrategy(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessorConflictStrategy? addToRootConflictStrategy) - { - AddToRootConflictStrategyValue = addToRootConflictStrategy; - return Self; - } - - /// - /// - /// When set to true, the JSON parser will not fail if the JSON contains duplicate keys. - /// Instead, the last encountered value for any duplicate key wins. - /// - /// - public JsonProcessorDescriptor AllowDuplicateKeys(bool? allowDuplicateKeys = true) - { - AllowDuplicateKeysValue = allowDuplicateKeys; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public JsonProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be parsed. - /// - /// - public JsonProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// - /// - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// - /// - public JsonProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public JsonProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public JsonProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public JsonProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public JsonProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public JsonProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public JsonProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - public JsonProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that the converted structured object will be written into. - /// Any existing content in this field will be overwritten. - /// - /// - public JsonProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AddToRootValue.HasValue) - { - writer.WritePropertyName("add_to_root"); - writer.WriteBooleanValue(AddToRootValue.Value); - } - - if (AddToRootConflictStrategyValue is not null) - { - writer.WritePropertyName("add_to_root_conflict_strategy"); - JsonSerializer.Serialize(writer, AddToRootConflictStrategyValue, options); - } - - if (AllowDuplicateKeysValue.HasValue) - { - writer.WritePropertyName("allow_duplicate_keys"); - writer.WriteBooleanValue(AllowDuplicateKeysValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/KeyValueProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/KeyValueProcessor.g.cs deleted file mode 100644 index 010d194bd82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/KeyValueProcessor.g.cs +++ /dev/null @@ -1,979 +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.Ingest; - -public sealed partial class KeyValueProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// List of keys to exclude from document. - /// - /// - [JsonInclude, JsonPropertyName("exclude_keys")] - public ICollection? ExcludeKeys { get; set; } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Regex pattern to use for splitting key-value pairs. - /// - /// - [JsonInclude, JsonPropertyName("field_split")] - public string FieldSplit { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// List of keys to filter and insert into document. - /// Defaults to including all keys. - /// - /// - [JsonInclude, JsonPropertyName("include_keys")] - public ICollection? IncludeKeys { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Prefix to be added to extracted keys. - /// - /// - [JsonInclude, JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// - /// If true. strip brackets (), <>, [] as well as quotes ' and " from extracted values. - /// - /// - [JsonInclude, JsonPropertyName("strip_brackets")] - public bool? StripBrackets { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - /// - /// - /// String of characters to trim from extracted keys. - /// - /// - [JsonInclude, JsonPropertyName("trim_key")] - public string? TrimKey { get; set; } - - /// - /// - /// String of characters to trim from extracted values. - /// - /// - [JsonInclude, JsonPropertyName("trim_value")] - public string? TrimValue { get; set; } - - /// - /// - /// Regex pattern to use for splitting the key from the value within a key-value pair. - /// - /// - [JsonInclude, JsonPropertyName("value_split")] - public string ValueSplit { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(KeyValueProcessor keyValueProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Kv(keyValueProcessor); -} - -public sealed partial class KeyValueProcessorDescriptor : SerializableDescriptor> -{ - internal KeyValueProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public KeyValueProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private ICollection? ExcludeKeysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string FieldSplitValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? IncludeKeysValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? PrefixValue { get; set; } - private bool? StripBracketsValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private string? TrimKeyValue { get; set; } - private string? TrimValueValue { get; set; } - private string ValueSplitValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public KeyValueProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// List of keys to exclude from document. - /// - /// - public KeyValueProcessorDescriptor ExcludeKeys(ICollection? excludeKeys) - { - ExcludeKeysValue = excludeKeys; - return Self; - } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Regex pattern to use for splitting key-value pairs. - /// - /// - public KeyValueProcessorDescriptor FieldSplit(string fieldSplit) - { - FieldSplitValue = fieldSplit; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public KeyValueProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public KeyValueProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public KeyValueProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// List of keys to filter and insert into document. - /// Defaults to including all keys. - /// - /// - public KeyValueProcessorDescriptor IncludeKeys(ICollection? includeKeys) - { - IncludeKeysValue = includeKeys; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public KeyValueProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Prefix to be added to extracted keys. - /// - /// - public KeyValueProcessorDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// If true. strip brackets (), <>, [] as well as quotes ' and " from extracted values. - /// - /// - public KeyValueProcessorDescriptor StripBrackets(bool? stripBrackets = true) - { - StripBracketsValue = stripBrackets; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public KeyValueProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// String of characters to trim from extracted keys. - /// - /// - public KeyValueProcessorDescriptor TrimKey(string? trimKey) - { - TrimKeyValue = trimKey; - return Self; - } - - /// - /// - /// String of characters to trim from extracted values. - /// - /// - public KeyValueProcessorDescriptor TrimValue(string? trimValue) - { - TrimValueValue = trimValue; - return Self; - } - - /// - /// - /// Regex pattern to use for splitting the key from the value within a key-value pair. - /// - /// - public KeyValueProcessorDescriptor ValueSplit(string valueSplit) - { - ValueSplitValue = valueSplit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (ExcludeKeysValue is not null) - { - writer.WritePropertyName("exclude_keys"); - JsonSerializer.Serialize(writer, ExcludeKeysValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("field_split"); - writer.WriteStringValue(FieldSplitValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IncludeKeysValue is not null) - { - writer.WritePropertyName("include_keys"); - JsonSerializer.Serialize(writer, IncludeKeysValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (StripBracketsValue.HasValue) - { - writer.WritePropertyName("strip_brackets"); - writer.WriteBooleanValue(StripBracketsValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TrimKeyValue)) - { - writer.WritePropertyName("trim_key"); - writer.WriteStringValue(TrimKeyValue); - } - - if (!string.IsNullOrEmpty(TrimValueValue)) - { - writer.WritePropertyName("trim_value"); - writer.WriteStringValue(TrimValueValue); - } - - writer.WritePropertyName("value_split"); - writer.WriteStringValue(ValueSplitValue); - writer.WriteEndObject(); - } -} - -public sealed partial class KeyValueProcessorDescriptor : SerializableDescriptor -{ - internal KeyValueProcessorDescriptor(Action configure) => configure.Invoke(this); - - public KeyValueProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private ICollection? ExcludeKeysValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string FieldSplitValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? IncludeKeysValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? PrefixValue { get; set; } - private bool? StripBracketsValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - private string? TrimKeyValue { get; set; } - private string? TrimValueValue { get; set; } - private string ValueSplitValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public KeyValueProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// List of keys to exclude from document. - /// - /// - public KeyValueProcessorDescriptor ExcludeKeys(ICollection? excludeKeys) - { - ExcludeKeysValue = excludeKeys; - return Self; - } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be parsed. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Regex pattern to use for splitting key-value pairs. - /// - /// - public KeyValueProcessorDescriptor FieldSplit(string fieldSplit) - { - FieldSplitValue = fieldSplit; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public KeyValueProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public KeyValueProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public KeyValueProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// List of keys to filter and insert into document. - /// Defaults to including all keys. - /// - /// - public KeyValueProcessorDescriptor IncludeKeys(ICollection? includeKeys) - { - IncludeKeysValue = includeKeys; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public KeyValueProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public KeyValueProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Prefix to be added to extracted keys. - /// - /// - public KeyValueProcessorDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// If true. strip brackets (), <>, [] as well as quotes ' and " from extracted values. - /// - /// - public KeyValueProcessorDescriptor StripBrackets(bool? stripBrackets = true) - { - StripBracketsValue = stripBrackets; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public KeyValueProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to insert the extracted keys into. - /// Defaults to the root of the document. - /// Supports template snippets. - /// - /// - public KeyValueProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// String of characters to trim from extracted keys. - /// - /// - public KeyValueProcessorDescriptor TrimKey(string? trimKey) - { - TrimKeyValue = trimKey; - return Self; - } - - /// - /// - /// String of characters to trim from extracted values. - /// - /// - public KeyValueProcessorDescriptor TrimValue(string? trimValue) - { - TrimValueValue = trimValue; - return Self; - } - - /// - /// - /// Regex pattern to use for splitting the key from the value within a key-value pair. - /// - /// - public KeyValueProcessorDescriptor ValueSplit(string valueSplit) - { - ValueSplitValue = valueSplit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (ExcludeKeysValue is not null) - { - writer.WritePropertyName("exclude_keys"); - JsonSerializer.Serialize(writer, ExcludeKeysValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("field_split"); - writer.WriteStringValue(FieldSplitValue); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (IncludeKeysValue is not null) - { - writer.WritePropertyName("include_keys"); - JsonSerializer.Serialize(writer, IncludeKeysValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (StripBracketsValue.HasValue) - { - writer.WritePropertyName("strip_brackets"); - writer.WriteBooleanValue(StripBracketsValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (!string.IsNullOrEmpty(TrimKeyValue)) - { - writer.WritePropertyName("trim_key"); - writer.WriteStringValue(TrimKeyValue); - } - - if (!string.IsNullOrEmpty(TrimValueValue)) - { - writer.WritePropertyName("trim_value"); - writer.WriteStringValue(TrimValueValue); - } - - writer.WritePropertyName("value_split"); - writer.WriteStringValue(ValueSplitValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs deleted file mode 100644 index 0e9e69c0020..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Local.g.cs +++ /dev/null @@ -1,61 +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.Ingest; - -public sealed partial class Local -{ - [JsonInclude, JsonPropertyName("type")] - public string Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull(Local local) => Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull.Local(local); -} - -public sealed partial class LocalDescriptor : SerializableDescriptor -{ - internal LocalDescriptor(Action configure) => configure.Invoke(this); - - public LocalDescriptor() : base() - { - } - - private string TypeValue { get; set; } - - public LocalDescriptor Type(string type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/LowercaseProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/LowercaseProcessor.g.cs deleted file mode 100644 index c47b32d7f60..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/LowercaseProcessor.g.cs +++ /dev/null @@ -1,626 +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.Ingest; - -public sealed partial class LowercaseProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to make lowercase. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(LowercaseProcessor lowercaseProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Lowercase(lowercaseProcessor); -} - -public sealed partial class LowercaseProcessorDescriptor : SerializableDescriptor> -{ - internal LowercaseProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public LowercaseProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public LowercaseProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to make lowercase. - /// - /// - public LowercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make lowercase. - /// - /// - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make lowercase. - /// - /// - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public LowercaseProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public LowercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public LowercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public LowercaseProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public LowercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public LowercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class LowercaseProcessorDescriptor : SerializableDescriptor -{ - internal LowercaseProcessorDescriptor(Action configure) => configure.Invoke(this); - - public LowercaseProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public LowercaseProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to make lowercase. - /// - /// - public LowercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make lowercase. - /// - /// - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make lowercase. - /// - /// - public LowercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public LowercaseProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public LowercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public LowercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public LowercaseProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public LowercaseProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public LowercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public LowercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public LowercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs deleted file mode 100644 index 565994e790c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Maxmind.g.cs +++ /dev/null @@ -1,62 +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.Ingest; - -public sealed partial class Maxmind -{ - [JsonInclude, JsonPropertyName("account_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id AccountId { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration(Maxmind maxmind) => Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfiguration.Maxmind(maxmind); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull(Maxmind maxmind) => Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationFull.Maxmind(maxmind); -} - -public sealed partial class MaxmindDescriptor : SerializableDescriptor -{ - internal MaxmindDescriptor(Action configure) => configure.Invoke(this); - - public MaxmindDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id AccountIdValue { get; set; } - - public MaxmindDescriptor AccountId(Elastic.Clients.Elasticsearch.Serverless.Id accountId) - { - AccountIdValue = accountId; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("account_id"); - JsonSerializer.Serialize(writer, AccountIdValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs deleted file mode 100644 index 4f17825cabc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/NetworkDirectionProcessor.g.cs +++ /dev/null @@ -1,866 +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.Ingest; - -public sealed partial class NetworkDirectionProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Field containing the destination IP address. - /// - /// - [JsonInclude, JsonPropertyName("destination_ip")] - public Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIp { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in - /// CIDR notation. Also supports the named ranges listed below. These may be - /// constructed with template snippets. Must specify only one of - /// internal_networks or internal_networks_field. - /// - /// - [JsonInclude, JsonPropertyName("internal_networks")] - public ICollection? InternalNetworks { get; set; } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - [JsonInclude, JsonPropertyName("internal_networks_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? InternalNetworksField { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Field containing the source IP address. - /// - /// - [JsonInclude, JsonPropertyName("source_ip")] - public Elastic.Clients.Elasticsearch.Serverless.Field? SourceIp { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Output field for the network direction. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(NetworkDirectionProcessor networkDirectionProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.NetworkDirection(networkDirectionProcessor); -} - -public sealed partial class NetworkDirectionProcessorDescriptor : SerializableDescriptor> -{ - internal NetworkDirectionProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public NetworkDirectionProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? InternalNetworksValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? InternalNetworksFieldValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public NetworkDirectionProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public NetworkDirectionProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public NetworkDirectionProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public NetworkDirectionProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - public NetworkDirectionProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in - /// CIDR notation. Also supports the named ranges listed below. These may be - /// constructed with template snippets. Must specify only one of - /// internal_networks or internal_networks_field. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworks(ICollection? internalNetworks) - { - InternalNetworksValue = internalNetworks; - return Self; - } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworksField(Elastic.Clients.Elasticsearch.Serverless.Field? internalNetworksField) - { - InternalNetworksFieldValue = internalNetworksField; - return Self; - } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) - { - InternalNetworksFieldValue = internalNetworksField; - return Self; - } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) - { - InternalNetworksFieldValue = internalNetworksField; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public NetworkDirectionProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public NetworkDirectionProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public NetworkDirectionProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public NetworkDirectionProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public NetworkDirectionProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public NetworkDirectionProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the network direction. - /// - /// - public NetworkDirectionProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the network direction. - /// - /// - public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the network direction. - /// - /// - public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestinationIpValue is not null) - { - writer.WritePropertyName("destination_ip"); - JsonSerializer.Serialize(writer, DestinationIpValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (InternalNetworksValue is not null) - { - writer.WritePropertyName("internal_networks"); - JsonSerializer.Serialize(writer, InternalNetworksValue, options); - } - - if (InternalNetworksFieldValue is not null) - { - writer.WritePropertyName("internal_networks_field"); - JsonSerializer.Serialize(writer, InternalNetworksFieldValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (SourceIpValue is not null) - { - writer.WritePropertyName("source_ip"); - JsonSerializer.Serialize(writer, SourceIpValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class NetworkDirectionProcessorDescriptor : SerializableDescriptor -{ - internal NetworkDirectionProcessorDescriptor(Action configure) => configure.Invoke(this); - - public NetworkDirectionProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DestinationIpValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? InternalNetworksValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? InternalNetworksFieldValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SourceIpValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public NetworkDirectionProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public NetworkDirectionProcessorDescriptor DestinationIp(Elastic.Clients.Elasticsearch.Serverless.Field? destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Field containing the destination IP address. - /// - /// - public NetworkDirectionProcessorDescriptor DestinationIp(Expression> destinationIp) - { - DestinationIpValue = destinationIp; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public NetworkDirectionProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public NetworkDirectionProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - public NetworkDirectionProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in - /// CIDR notation. Also supports the named ranges listed below. These may be - /// constructed with template snippets. Must specify only one of - /// internal_networks or internal_networks_field. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworks(ICollection? internalNetworks) - { - InternalNetworksValue = internalNetworks; - return Self; - } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworksField(Elastic.Clients.Elasticsearch.Serverless.Field? internalNetworksField) - { - InternalNetworksFieldValue = internalNetworksField; - return Self; - } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) - { - InternalNetworksFieldValue = internalNetworksField; - return Self; - } - - /// - /// - /// A field on the given document to read the internal_networks configuration - /// from. - /// - /// - public NetworkDirectionProcessorDescriptor InternalNetworksField(Expression> internalNetworksField) - { - InternalNetworksFieldValue = internalNetworksField; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public NetworkDirectionProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public NetworkDirectionProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public NetworkDirectionProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public NetworkDirectionProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public NetworkDirectionProcessorDescriptor SourceIp(Elastic.Clients.Elasticsearch.Serverless.Field? sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Field containing the source IP address. - /// - /// - public NetworkDirectionProcessorDescriptor SourceIp(Expression> sourceIp) - { - SourceIpValue = sourceIp; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public NetworkDirectionProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the network direction. - /// - /// - public NetworkDirectionProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the network direction. - /// - /// - public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the network direction. - /// - /// - public NetworkDirectionProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (DestinationIpValue is not null) - { - writer.WritePropertyName("destination_ip"); - JsonSerializer.Serialize(writer, DestinationIpValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (InternalNetworksValue is not null) - { - writer.WritePropertyName("internal_networks"); - JsonSerializer.Serialize(writer, InternalNetworksValue, options); - } - - if (InternalNetworksFieldValue is not null) - { - writer.WritePropertyName("internal_networks_field"); - JsonSerializer.Serialize(writer, InternalNetworksFieldValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (SourceIpValue is not null) - { - writer.WritePropertyName("source_ip"); - JsonSerializer.Serialize(writer, SourceIpValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs deleted file mode 100644 index 7cbfd0a3e85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Pipeline.g.cs +++ /dev/null @@ -1,565 +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.Ingest; - -public sealed partial class Pipeline -{ - /// - /// - /// Marks this ingest pipeline as deprecated. - /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. - /// - /// - [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; set; } - - /// - /// - /// Description of the ingest pipeline. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - - /// - /// - /// Processors to run immediately after a processor failure. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Processors used to perform transformations on documents before indexing. - /// Processors run sequentially in the order specified. - /// - /// - [JsonInclude, JsonPropertyName("processors")] - public ICollection? Processors { get; set; } - - /// - /// - /// Version number used by external systems to track ingest pipelines. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } -} - -public sealed partial class PipelineDescriptor : SerializableDescriptor> -{ - internal PipelineDescriptor(Action> configure) => configure.Invoke(this); - - public PipelineDescriptor() : base() - { - } - - private bool? DeprecatedValue { get; set; } - private string? DescriptionValue { get; set; } - private IDictionary? MetaValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? ProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor ProcessorsDescriptor { get; set; } - private Action> ProcessorsDescriptorAction { get; set; } - private Action>[] ProcessorsDescriptorActions { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Marks this ingest pipeline as deprecated. - /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. - /// - /// - public PipelineDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// Description of the ingest pipeline. - /// - /// - public PipelineDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch. - /// - /// - public PipelineDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Processors to run immediately after a processor failure. - /// - /// - public PipelineDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Processors used to perform transformations on documents before indexing. - /// Processors run sequentially in the order specified. - /// - /// - public PipelineDescriptor Processors(ICollection? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public PipelineDescriptor Processors(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor Processors(Action> configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor Processors(params Action>[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Version number used by external systems to track ingest pipelines. - /// - /// - public PipelineDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PipelineDescriptor : SerializableDescriptor -{ - internal PipelineDescriptor(Action configure) => configure.Invoke(this); - - public PipelineDescriptor() : base() - { - } - - private bool? DeprecatedValue { get; set; } - private string? DescriptionValue { get; set; } - private IDictionary? MetaValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? ProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor ProcessorsDescriptor { get; set; } - private Action ProcessorsDescriptorAction { get; set; } - private Action[] ProcessorsDescriptorActions { get; set; } - private long? VersionValue { get; set; } - - /// - /// - /// Marks this ingest pipeline as deprecated. - /// When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning. - /// - /// - public PipelineDescriptor Deprecated(bool? deprecated = true) - { - DeprecatedValue = deprecated; - return Self; - } - - /// - /// - /// Description of the ingest pipeline. - /// - /// - public PipelineDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch. - /// - /// - public PipelineDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Processors to run immediately after a processor failure. - /// - /// - public PipelineDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Processors used to perform transformations on documents before indexing. - /// Processors run sequentially in the order specified. - /// - /// - public PipelineDescriptor Processors(ICollection? processors) - { - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsValue = processors; - return Self; - } - - public PipelineDescriptor Processors(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - ProcessorsValue = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptor = descriptor; - return Self; - } - - public PipelineDescriptor Processors(Action configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorActions = null; - ProcessorsDescriptorAction = configure; - return Self; - } - - public PipelineDescriptor Processors(params Action[] configure) - { - ProcessorsValue = null; - ProcessorsDescriptor = null; - ProcessorsDescriptorAction = null; - ProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Version number used by external systems to track ingest pipelines. - /// - /// - public PipelineDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeprecatedValue.HasValue) - { - writer.WritePropertyName("deprecated"); - writer.WriteBooleanValue(DeprecatedValue.Value); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ProcessorsDescriptor is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(ProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("processors"); - writer.WriteStartArray(); - foreach (var action in ProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ProcessorsValue is not null) - { - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineProcessor.g.cs deleted file mode 100644 index 057b1640722..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineProcessor.g.cs +++ /dev/null @@ -1,490 +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.Ingest; - -public sealed partial class PipelineProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Whether to ignore missing pipelines instead of failing. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing_pipeline")] - public bool? IgnoreMissingPipeline { get; set; } - - /// - /// - /// The name of the pipeline to execute. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name Name { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(PipelineProcessor pipelineProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Pipeline(pipelineProcessor); -} - -public sealed partial class PipelineProcessorDescriptor : SerializableDescriptor> -{ - internal PipelineProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public PipelineProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingPipelineValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public PipelineProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public PipelineProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public PipelineProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Whether to ignore missing pipelines instead of failing. - /// - /// - public PipelineProcessorDescriptor IgnoreMissingPipeline(bool? ignoreMissingPipeline = true) - { - IgnoreMissingPipelineValue = ignoreMissingPipeline; - return Self; - } - - /// - /// - /// The name of the pipeline to execute. - /// Supports template snippets. - /// - /// - public PipelineProcessorDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public PipelineProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public PipelineProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingPipelineValue.HasValue) - { - writer.WritePropertyName("ignore_missing_pipeline"); - writer.WriteBooleanValue(IgnoreMissingPipelineValue.Value); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PipelineProcessorDescriptor : SerializableDescriptor -{ - internal PipelineProcessorDescriptor(Action configure) => configure.Invoke(this); - - public PipelineProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingPipelineValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public PipelineProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public PipelineProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public PipelineProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Whether to ignore missing pipelines instead of failing. - /// - /// - public PipelineProcessorDescriptor IgnoreMissingPipeline(bool? ignoreMissingPipeline = true) - { - IgnoreMissingPipelineValue = ignoreMissingPipeline; - return Self; - } - - /// - /// - /// The name of the pipeline to execute. - /// Supports template snippets. - /// - /// - public PipelineProcessorDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public PipelineProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public PipelineProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public PipelineProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingPipelineValue.HasValue) - { - writer.WritePropertyName("ignore_missing_pipeline"); - writer.WriteBooleanValue(IgnoreMissingPipelineValue.Value); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineSimulation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineSimulation.g.cs deleted file mode 100644 index 085de550619..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/PipelineSimulation.g.cs +++ /dev/null @@ -1,46 +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.Ingest; - -public sealed partial class PipelineSimulation -{ - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("doc")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentSimulation? Doc { get; init; } - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? Error { get; init; } - [JsonInclude, JsonPropertyName("ignored_error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? IgnoredError { get; init; } - [JsonInclude, JsonPropertyName("processor_type")] - public string? ProcessorType { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.Watcher.ActionStatusOptions? Status { get; init; } - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs deleted file mode 100644 index f464444d218..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Processor.g.cs +++ /dev/null @@ -1,887 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; - -[JsonConverter(typeof(ProcessorConverter))] -public sealed partial class Processor -{ - internal Processor(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Processor Append(Elastic.Clients.Elasticsearch.Serverless.Ingest.AppendProcessor appendProcessor) => new Processor("append", appendProcessor); - public static Processor Attachment(Elastic.Clients.Elasticsearch.Serverless.Ingest.AttachmentProcessor attachmentProcessor) => new Processor("attachment", attachmentProcessor); - public static Processor Bytes(Elastic.Clients.Elasticsearch.Serverless.Ingest.BytesProcessor bytesProcessor) => new Processor("bytes", bytesProcessor); - public static Processor Circle(Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor circleProcessor) => new Processor("circle", circleProcessor); - public static Processor CommunityId(Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor communityIDProcessor) => new Processor("community_id", communityIDProcessor); - public static Processor Convert(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor convertProcessor) => new Processor("convert", convertProcessor); - public static Processor Csv(Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor csvProcessor) => new Processor("csv", csvProcessor); - public static Processor Date(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateProcessor dateProcessor) => new Processor("date", dateProcessor); - public static Processor DateIndexName(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateIndexNameProcessor dateIndexNameProcessor) => new Processor("date_index_name", dateIndexNameProcessor); - public static Processor Dissect(Elastic.Clients.Elasticsearch.Serverless.Ingest.DissectProcessor dissectProcessor) => new Processor("dissect", dissectProcessor); - public static Processor DotExpander(Elastic.Clients.Elasticsearch.Serverless.Ingest.DotExpanderProcessor dotExpanderProcessor) => new Processor("dot_expander", dotExpanderProcessor); - public static Processor Drop(Elastic.Clients.Elasticsearch.Serverless.Ingest.DropProcessor dropProcessor) => new Processor("drop", dropProcessor); - public static Processor Enrich(Elastic.Clients.Elasticsearch.Serverless.Ingest.EnrichProcessor enrichProcessor) => new Processor("enrich", enrichProcessor); - public static Processor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => new Processor("fail", failProcessor); - public static Processor Fingerprint(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor fingerprintProcessor) => new Processor("fingerprint", fingerprintProcessor); - public static Processor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => new Processor("foreach", foreachProcessor); - public static Processor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => new Processor("geo_grid", geoGridProcessor); - public static Processor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => new Processor("geoip", geoIpProcessor); - public static Processor Grok(Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor grokProcessor) => new Processor("grok", grokProcessor); - public static Processor Gsub(Elastic.Clients.Elasticsearch.Serverless.Ingest.GsubProcessor gsubProcessor) => new Processor("gsub", gsubProcessor); - public static Processor HtmlStrip(Elastic.Clients.Elasticsearch.Serverless.Ingest.HtmlStripProcessor htmlStripProcessor) => new Processor("html_strip", htmlStripProcessor); - public static Processor Inference(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor inferenceProcessor) => new Processor("inference", inferenceProcessor); - public static Processor IpLocation(Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor ipLocationProcessor) => new Processor("ip_location", ipLocationProcessor); - public static Processor Join(Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor joinProcessor) => new Processor("join", joinProcessor); - public static Processor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => new Processor("json", jsonProcessor); - public static Processor Kv(Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor keyValueProcessor) => new Processor("kv", keyValueProcessor); - public static Processor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => new Processor("lowercase", lowercaseProcessor); - public static Processor NetworkDirection(Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => new Processor("network_direction", networkDirectionProcessor); - public static Processor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => new Processor("pipeline", pipelineProcessor); - public static Processor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => new Processor("redact", redactProcessor); - public static Processor RegisteredDomain(Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => new Processor("registered_domain", registeredDomainProcessor); - public static Processor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => new Processor("remove", removeProcessor); - public static Processor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => new Processor("rename", renameProcessor); - public static Processor Reroute(Elastic.Clients.Elasticsearch.Serverless.Ingest.RerouteProcessor rerouteProcessor) => new Processor("reroute", rerouteProcessor); - public static Processor Script(Elastic.Clients.Elasticsearch.Serverless.Ingest.ScriptProcessor scriptProcessor) => new Processor("script", scriptProcessor); - public static Processor Set(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetProcessor setProcessor) => new Processor("set", setProcessor); - public static Processor SetSecurityUser(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetSecurityUserProcessor setSecurityUserProcessor) => new Processor("set_security_user", setSecurityUserProcessor); - public static Processor Sort(Elastic.Clients.Elasticsearch.Serverless.Ingest.SortProcessor sortProcessor) => new Processor("sort", sortProcessor); - public static Processor Split(Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor splitProcessor) => new Processor("split", splitProcessor); - public static Processor Terminate(Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor terminateProcessor) => new Processor("terminate", terminateProcessor); - public static Processor Trim(Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor trimProcessor) => new Processor("trim", trimProcessor); - public static Processor Uppercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor uppercaseProcessor) => new Processor("uppercase", uppercaseProcessor); - public static Processor UriParts(Elastic.Clients.Elasticsearch.Serverless.Ingest.UriPartsProcessor uriPartsProcessor) => new Processor("uri_parts", uriPartsProcessor); - public static Processor UrlDecode(Elastic.Clients.Elasticsearch.Serverless.Ingest.UrlDecodeProcessor urlDecodeProcessor) => new Processor("urldecode", urlDecodeProcessor); - public static Processor UserAgent(Elastic.Clients.Elasticsearch.Serverless.Ingest.UserAgentProcessor userAgentProcessor) => new Processor("user_agent", userAgentProcessor); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class ProcessorConverter : JsonConverter -{ - public override Processor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "append") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "attachment") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "bytes") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "circle") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "community_id") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "convert") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "csv") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "date") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "date_index_name") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "dissect") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "dot_expander") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "drop") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "enrich") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fail") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fingerprint") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "foreach") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_grid") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geoip") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "grok") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "gsub") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "html_strip") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "inference") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ip_location") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "join") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "json") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "kv") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "lowercase") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "network_direction") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "pipeline") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "redact") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "registered_domain") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "remove") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rename") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "reroute") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "script") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "set") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "set_security_user") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "sort") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "split") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terminate") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "trim") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "uppercase") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "uri_parts") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "urldecode") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "user_agent") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Processor' from the response."); - } - - var result = new Processor(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Processor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "append": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.AppendProcessor)value.Variant, options); - break; - case "attachment": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.AttachmentProcessor)value.Variant, options); - break; - case "bytes": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.BytesProcessor)value.Variant, options); - break; - case "circle": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor)value.Variant, options); - break; - case "community_id": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor)value.Variant, options); - break; - case "convert": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor)value.Variant, options); - break; - case "csv": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor)value.Variant, options); - break; - case "date": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.DateProcessor)value.Variant, options); - break; - case "date_index_name": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.DateIndexNameProcessor)value.Variant, options); - break; - case "dissect": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.DissectProcessor)value.Variant, options); - break; - case "dot_expander": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.DotExpanderProcessor)value.Variant, options); - break; - case "drop": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.DropProcessor)value.Variant, options); - break; - case "enrich": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.EnrichProcessor)value.Variant, options); - break; - case "fail": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor)value.Variant, options); - break; - case "fingerprint": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor)value.Variant, options); - break; - case "foreach": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor)value.Variant, options); - break; - case "geo_grid": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor)value.Variant, options); - break; - case "geoip": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor)value.Variant, options); - break; - case "grok": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor)value.Variant, options); - break; - case "gsub": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.GsubProcessor)value.Variant, options); - break; - case "html_strip": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.HtmlStripProcessor)value.Variant, options); - break; - case "inference": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor)value.Variant, options); - break; - case "ip_location": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor)value.Variant, options); - break; - case "join": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor)value.Variant, options); - break; - case "json": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor)value.Variant, options); - break; - case "kv": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor)value.Variant, options); - break; - case "lowercase": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor)value.Variant, options); - break; - case "network_direction": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor)value.Variant, options); - break; - case "pipeline": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor)value.Variant, options); - break; - case "redact": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor)value.Variant, options); - break; - case "registered_domain": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor)value.Variant, options); - break; - case "remove": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor)value.Variant, options); - break; - case "rename": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor)value.Variant, options); - break; - case "reroute": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.RerouteProcessor)value.Variant, options); - break; - case "script": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.ScriptProcessor)value.Variant, options); - break; - case "set": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.SetProcessor)value.Variant, options); - break; - case "set_security_user": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.SetSecurityUserProcessor)value.Variant, options); - break; - case "sort": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.SortProcessor)value.Variant, options); - break; - case "split": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor)value.Variant, options); - break; - case "terminate": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor)value.Variant, options); - break; - case "trim": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor)value.Variant, options); - break; - case "uppercase": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor)value.Variant, options); - break; - case "uri_parts": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.UriPartsProcessor)value.Variant, options); - break; - case "urldecode": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.UrlDecodeProcessor)value.Variant, options); - break; - case "user_agent": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Ingest.UserAgentProcessor)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ProcessorDescriptor : SerializableDescriptor> -{ - internal ProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public ProcessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private ProcessorDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private ProcessorDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public ProcessorDescriptor Append(Elastic.Clients.Elasticsearch.Serverless.Ingest.AppendProcessor appendProcessor) => Set(appendProcessor, "append"); - public ProcessorDescriptor Append(Action> configure) => Set(configure, "append"); - public ProcessorDescriptor Attachment(Elastic.Clients.Elasticsearch.Serverless.Ingest.AttachmentProcessor attachmentProcessor) => Set(attachmentProcessor, "attachment"); - public ProcessorDescriptor Attachment(Action> configure) => Set(configure, "attachment"); - public ProcessorDescriptor Bytes(Elastic.Clients.Elasticsearch.Serverless.Ingest.BytesProcessor bytesProcessor) => Set(bytesProcessor, "bytes"); - public ProcessorDescriptor Bytes(Action> configure) => Set(configure, "bytes"); - public ProcessorDescriptor Circle(Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor circleProcessor) => Set(circleProcessor, "circle"); - public ProcessorDescriptor Circle(Action> configure) => Set(configure, "circle"); - public ProcessorDescriptor CommunityId(Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor communityIDProcessor) => Set(communityIDProcessor, "community_id"); - public ProcessorDescriptor CommunityId(Action> configure) => Set(configure, "community_id"); - public ProcessorDescriptor Convert(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor convertProcessor) => Set(convertProcessor, "convert"); - public ProcessorDescriptor Convert(Action> configure) => Set(configure, "convert"); - public ProcessorDescriptor Csv(Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor csvProcessor) => Set(csvProcessor, "csv"); - public ProcessorDescriptor Csv(Action> configure) => Set(configure, "csv"); - public ProcessorDescriptor Date(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateProcessor dateProcessor) => Set(dateProcessor, "date"); - public ProcessorDescriptor Date(Action> configure) => Set(configure, "date"); - public ProcessorDescriptor DateIndexName(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateIndexNameProcessor dateIndexNameProcessor) => Set(dateIndexNameProcessor, "date_index_name"); - public ProcessorDescriptor DateIndexName(Action> configure) => Set(configure, "date_index_name"); - public ProcessorDescriptor Dissect(Elastic.Clients.Elasticsearch.Serverless.Ingest.DissectProcessor dissectProcessor) => Set(dissectProcessor, "dissect"); - public ProcessorDescriptor Dissect(Action> configure) => Set(configure, "dissect"); - public ProcessorDescriptor DotExpander(Elastic.Clients.Elasticsearch.Serverless.Ingest.DotExpanderProcessor dotExpanderProcessor) => Set(dotExpanderProcessor, "dot_expander"); - public ProcessorDescriptor DotExpander(Action> configure) => Set(configure, "dot_expander"); - public ProcessorDescriptor Drop(Elastic.Clients.Elasticsearch.Serverless.Ingest.DropProcessor dropProcessor) => Set(dropProcessor, "drop"); - public ProcessorDescriptor Drop(Action> configure) => Set(configure, "drop"); - public ProcessorDescriptor Enrich(Elastic.Clients.Elasticsearch.Serverless.Ingest.EnrichProcessor enrichProcessor) => Set(enrichProcessor, "enrich"); - public ProcessorDescriptor Enrich(Action> configure) => Set(configure, "enrich"); - public ProcessorDescriptor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => Set(failProcessor, "fail"); - public ProcessorDescriptor Fail(Action> configure) => Set(configure, "fail"); - public ProcessorDescriptor Fingerprint(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor fingerprintProcessor) => Set(fingerprintProcessor, "fingerprint"); - public ProcessorDescriptor Fingerprint(Action> configure) => Set(configure, "fingerprint"); - public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); - public ProcessorDescriptor Foreach(Action> configure) => Set(configure, "foreach"); - public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); - public ProcessorDescriptor GeoGrid(Action> configure) => Set(configure, "geo_grid"); - public ProcessorDescriptor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => Set(geoIpProcessor, "geoip"); - public ProcessorDescriptor Geoip(Action> configure) => Set(configure, "geoip"); - public ProcessorDescriptor Grok(Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor grokProcessor) => Set(grokProcessor, "grok"); - public ProcessorDescriptor Grok(Action> configure) => Set(configure, "grok"); - public ProcessorDescriptor Gsub(Elastic.Clients.Elasticsearch.Serverless.Ingest.GsubProcessor gsubProcessor) => Set(gsubProcessor, "gsub"); - public ProcessorDescriptor Gsub(Action> configure) => Set(configure, "gsub"); - public ProcessorDescriptor HtmlStrip(Elastic.Clients.Elasticsearch.Serverless.Ingest.HtmlStripProcessor htmlStripProcessor) => Set(htmlStripProcessor, "html_strip"); - public ProcessorDescriptor HtmlStrip(Action> configure) => Set(configure, "html_strip"); - public ProcessorDescriptor Inference(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor inferenceProcessor) => Set(inferenceProcessor, "inference"); - public ProcessorDescriptor Inference(Action> configure) => Set(configure, "inference"); - public ProcessorDescriptor IpLocation(Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor ipLocationProcessor) => Set(ipLocationProcessor, "ip_location"); - public ProcessorDescriptor IpLocation(Action> configure) => Set(configure, "ip_location"); - public ProcessorDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor joinProcessor) => Set(joinProcessor, "join"); - public ProcessorDescriptor Join(Action> configure) => Set(configure, "join"); - public ProcessorDescriptor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => Set(jsonProcessor, "json"); - public ProcessorDescriptor Json(Action> configure) => Set(configure, "json"); - public ProcessorDescriptor Kv(Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor keyValueProcessor) => Set(keyValueProcessor, "kv"); - public ProcessorDescriptor Kv(Action> configure) => Set(configure, "kv"); - public ProcessorDescriptor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => Set(lowercaseProcessor, "lowercase"); - public ProcessorDescriptor Lowercase(Action> configure) => Set(configure, "lowercase"); - public ProcessorDescriptor NetworkDirection(Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => Set(networkDirectionProcessor, "network_direction"); - public ProcessorDescriptor NetworkDirection(Action> configure) => Set(configure, "network_direction"); - public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); - public ProcessorDescriptor Pipeline(Action> configure) => Set(configure, "pipeline"); - public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); - public ProcessorDescriptor Redact(Action> configure) => Set(configure, "redact"); - public ProcessorDescriptor RegisteredDomain(Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => Set(registeredDomainProcessor, "registered_domain"); - public ProcessorDescriptor RegisteredDomain(Action> configure) => Set(configure, "registered_domain"); - public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); - public ProcessorDescriptor Remove(Action> configure) => Set(configure, "remove"); - public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); - public ProcessorDescriptor Rename(Action> configure) => Set(configure, "rename"); - public ProcessorDescriptor Reroute(Elastic.Clients.Elasticsearch.Serverless.Ingest.RerouteProcessor rerouteProcessor) => Set(rerouteProcessor, "reroute"); - public ProcessorDescriptor Reroute(Action> configure) => Set(configure, "reroute"); - public ProcessorDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Ingest.ScriptProcessor scriptProcessor) => Set(scriptProcessor, "script"); - public ProcessorDescriptor Script(Action> configure) => Set(configure, "script"); - public ProcessorDescriptor Set(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetProcessor setProcessor) => Set(setProcessor, "set"); - public ProcessorDescriptor Set(Action> configure) => Set(configure, "set"); - public ProcessorDescriptor SetSecurityUser(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetSecurityUserProcessor setSecurityUserProcessor) => Set(setSecurityUserProcessor, "set_security_user"); - public ProcessorDescriptor SetSecurityUser(Action> configure) => Set(configure, "set_security_user"); - public ProcessorDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Ingest.SortProcessor sortProcessor) => Set(sortProcessor, "sort"); - public ProcessorDescriptor Sort(Action> configure) => Set(configure, "sort"); - public ProcessorDescriptor Split(Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor splitProcessor) => Set(splitProcessor, "split"); - public ProcessorDescriptor Split(Action> configure) => Set(configure, "split"); - public ProcessorDescriptor Terminate(Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor terminateProcessor) => Set(terminateProcessor, "terminate"); - public ProcessorDescriptor Terminate(Action> configure) => Set(configure, "terminate"); - public ProcessorDescriptor Trim(Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor trimProcessor) => Set(trimProcessor, "trim"); - public ProcessorDescriptor Trim(Action> configure) => Set(configure, "trim"); - public ProcessorDescriptor Uppercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor uppercaseProcessor) => Set(uppercaseProcessor, "uppercase"); - public ProcessorDescriptor Uppercase(Action> configure) => Set(configure, "uppercase"); - public ProcessorDescriptor UriParts(Elastic.Clients.Elasticsearch.Serverless.Ingest.UriPartsProcessor uriPartsProcessor) => Set(uriPartsProcessor, "uri_parts"); - public ProcessorDescriptor UriParts(Action> configure) => Set(configure, "uri_parts"); - public ProcessorDescriptor UrlDecode(Elastic.Clients.Elasticsearch.Serverless.Ingest.UrlDecodeProcessor urlDecodeProcessor) => Set(urlDecodeProcessor, "urldecode"); - public ProcessorDescriptor UrlDecode(Action> configure) => Set(configure, "urldecode"); - public ProcessorDescriptor UserAgent(Elastic.Clients.Elasticsearch.Serverless.Ingest.UserAgentProcessor userAgentProcessor) => Set(userAgentProcessor, "user_agent"); - public ProcessorDescriptor UserAgent(Action> configure) => Set(configure, "user_agent"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ProcessorDescriptor : SerializableDescriptor -{ - internal ProcessorDescriptor(Action configure) => configure.Invoke(this); - - public ProcessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private ProcessorDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private ProcessorDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public ProcessorDescriptor Append(Elastic.Clients.Elasticsearch.Serverless.Ingest.AppendProcessor appendProcessor) => Set(appendProcessor, "append"); - public ProcessorDescriptor Append(Action configure) => Set(configure, "append"); - public ProcessorDescriptor Attachment(Elastic.Clients.Elasticsearch.Serverless.Ingest.AttachmentProcessor attachmentProcessor) => Set(attachmentProcessor, "attachment"); - public ProcessorDescriptor Attachment(Action configure) => Set(configure, "attachment"); - public ProcessorDescriptor Bytes(Elastic.Clients.Elasticsearch.Serverless.Ingest.BytesProcessor bytesProcessor) => Set(bytesProcessor, "bytes"); - public ProcessorDescriptor Bytes(Action configure) => Set(configure, "bytes"); - public ProcessorDescriptor Circle(Elastic.Clients.Elasticsearch.Serverless.Ingest.CircleProcessor circleProcessor) => Set(circleProcessor, "circle"); - public ProcessorDescriptor Circle(Action configure) => Set(configure, "circle"); - public ProcessorDescriptor CommunityId(Elastic.Clients.Elasticsearch.Serverless.Ingest.CommunityIDProcessor communityIDProcessor) => Set(communityIDProcessor, "community_id"); - public ProcessorDescriptor CommunityId(Action configure) => Set(configure, "community_id"); - public ProcessorDescriptor Convert(Elastic.Clients.Elasticsearch.Serverless.Ingest.ConvertProcessor convertProcessor) => Set(convertProcessor, "convert"); - public ProcessorDescriptor Convert(Action configure) => Set(configure, "convert"); - public ProcessorDescriptor Csv(Elastic.Clients.Elasticsearch.Serverless.Ingest.CsvProcessor csvProcessor) => Set(csvProcessor, "csv"); - public ProcessorDescriptor Csv(Action configure) => Set(configure, "csv"); - public ProcessorDescriptor Date(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateProcessor dateProcessor) => Set(dateProcessor, "date"); - public ProcessorDescriptor Date(Action configure) => Set(configure, "date"); - public ProcessorDescriptor DateIndexName(Elastic.Clients.Elasticsearch.Serverless.Ingest.DateIndexNameProcessor dateIndexNameProcessor) => Set(dateIndexNameProcessor, "date_index_name"); - public ProcessorDescriptor DateIndexName(Action configure) => Set(configure, "date_index_name"); - public ProcessorDescriptor Dissect(Elastic.Clients.Elasticsearch.Serverless.Ingest.DissectProcessor dissectProcessor) => Set(dissectProcessor, "dissect"); - public ProcessorDescriptor Dissect(Action configure) => Set(configure, "dissect"); - public ProcessorDescriptor DotExpander(Elastic.Clients.Elasticsearch.Serverless.Ingest.DotExpanderProcessor dotExpanderProcessor) => Set(dotExpanderProcessor, "dot_expander"); - public ProcessorDescriptor DotExpander(Action configure) => Set(configure, "dot_expander"); - public ProcessorDescriptor Drop(Elastic.Clients.Elasticsearch.Serverless.Ingest.DropProcessor dropProcessor) => Set(dropProcessor, "drop"); - public ProcessorDescriptor Drop(Action configure) => Set(configure, "drop"); - public ProcessorDescriptor Enrich(Elastic.Clients.Elasticsearch.Serverless.Ingest.EnrichProcessor enrichProcessor) => Set(enrichProcessor, "enrich"); - public ProcessorDescriptor Enrich(Action configure) => Set(configure, "enrich"); - public ProcessorDescriptor Fail(Elastic.Clients.Elasticsearch.Serverless.Ingest.FailProcessor failProcessor) => Set(failProcessor, "fail"); - public ProcessorDescriptor Fail(Action configure) => Set(configure, "fail"); - public ProcessorDescriptor Fingerprint(Elastic.Clients.Elasticsearch.Serverless.Ingest.FingerprintProcessor fingerprintProcessor) => Set(fingerprintProcessor, "fingerprint"); - public ProcessorDescriptor Fingerprint(Action configure) => Set(configure, "fingerprint"); - public ProcessorDescriptor Foreach(Elastic.Clients.Elasticsearch.Serverless.Ingest.ForeachProcessor foreachProcessor) => Set(foreachProcessor, "foreach"); - public ProcessorDescriptor Foreach(Action configure) => Set(configure, "foreach"); - public ProcessorDescriptor GeoGrid(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoGridProcessor geoGridProcessor) => Set(geoGridProcessor, "geo_grid"); - public ProcessorDescriptor GeoGrid(Action configure) => Set(configure, "geo_grid"); - public ProcessorDescriptor Geoip(Elastic.Clients.Elasticsearch.Serverless.Ingest.GeoIpProcessor geoIpProcessor) => Set(geoIpProcessor, "geoip"); - public ProcessorDescriptor Geoip(Action configure) => Set(configure, "geoip"); - public ProcessorDescriptor Grok(Elastic.Clients.Elasticsearch.Serverless.Ingest.GrokProcessor grokProcessor) => Set(grokProcessor, "grok"); - public ProcessorDescriptor Grok(Action configure) => Set(configure, "grok"); - public ProcessorDescriptor Gsub(Elastic.Clients.Elasticsearch.Serverless.Ingest.GsubProcessor gsubProcessor) => Set(gsubProcessor, "gsub"); - public ProcessorDescriptor Gsub(Action configure) => Set(configure, "gsub"); - public ProcessorDescriptor HtmlStrip(Elastic.Clients.Elasticsearch.Serverless.Ingest.HtmlStripProcessor htmlStripProcessor) => Set(htmlStripProcessor, "html_strip"); - public ProcessorDescriptor HtmlStrip(Action configure) => Set(configure, "html_strip"); - public ProcessorDescriptor Inference(Elastic.Clients.Elasticsearch.Serverless.Ingest.InferenceProcessor inferenceProcessor) => Set(inferenceProcessor, "inference"); - public ProcessorDescriptor Inference(Action configure) => Set(configure, "inference"); - public ProcessorDescriptor IpLocation(Elastic.Clients.Elasticsearch.Serverless.Ingest.IpLocationProcessor ipLocationProcessor) => Set(ipLocationProcessor, "ip_location"); - public ProcessorDescriptor IpLocation(Action configure) => Set(configure, "ip_location"); - public ProcessorDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.Ingest.JoinProcessor joinProcessor) => Set(joinProcessor, "join"); - public ProcessorDescriptor Join(Action configure) => Set(configure, "join"); - public ProcessorDescriptor Json(Elastic.Clients.Elasticsearch.Serverless.Ingest.JsonProcessor jsonProcessor) => Set(jsonProcessor, "json"); - public ProcessorDescriptor Json(Action configure) => Set(configure, "json"); - public ProcessorDescriptor Kv(Elastic.Clients.Elasticsearch.Serverless.Ingest.KeyValueProcessor keyValueProcessor) => Set(keyValueProcessor, "kv"); - public ProcessorDescriptor Kv(Action configure) => Set(configure, "kv"); - public ProcessorDescriptor Lowercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.LowercaseProcessor lowercaseProcessor) => Set(lowercaseProcessor, "lowercase"); - public ProcessorDescriptor Lowercase(Action configure) => Set(configure, "lowercase"); - public ProcessorDescriptor NetworkDirection(Elastic.Clients.Elasticsearch.Serverless.Ingest.NetworkDirectionProcessor networkDirectionProcessor) => Set(networkDirectionProcessor, "network_direction"); - public ProcessorDescriptor NetworkDirection(Action configure) => Set(configure, "network_direction"); - public ProcessorDescriptor Pipeline(Elastic.Clients.Elasticsearch.Serverless.Ingest.PipelineProcessor pipelineProcessor) => Set(pipelineProcessor, "pipeline"); - public ProcessorDescriptor Pipeline(Action configure) => Set(configure, "pipeline"); - public ProcessorDescriptor Redact(Elastic.Clients.Elasticsearch.Serverless.Ingest.RedactProcessor redactProcessor) => Set(redactProcessor, "redact"); - public ProcessorDescriptor Redact(Action configure) => Set(configure, "redact"); - public ProcessorDescriptor RegisteredDomain(Elastic.Clients.Elasticsearch.Serverless.Ingest.RegisteredDomainProcessor registeredDomainProcessor) => Set(registeredDomainProcessor, "registered_domain"); - public ProcessorDescriptor RegisteredDomain(Action configure) => Set(configure, "registered_domain"); - public ProcessorDescriptor Remove(Elastic.Clients.Elasticsearch.Serverless.Ingest.RemoveProcessor removeProcessor) => Set(removeProcessor, "remove"); - public ProcessorDescriptor Remove(Action configure) => Set(configure, "remove"); - public ProcessorDescriptor Rename(Elastic.Clients.Elasticsearch.Serverless.Ingest.RenameProcessor renameProcessor) => Set(renameProcessor, "rename"); - public ProcessorDescriptor Rename(Action configure) => Set(configure, "rename"); - public ProcessorDescriptor Reroute(Elastic.Clients.Elasticsearch.Serverless.Ingest.RerouteProcessor rerouteProcessor) => Set(rerouteProcessor, "reroute"); - public ProcessorDescriptor Reroute(Action configure) => Set(configure, "reroute"); - public ProcessorDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Ingest.ScriptProcessor scriptProcessor) => Set(scriptProcessor, "script"); - public ProcessorDescriptor Script(Action configure) => Set(configure, "script"); - public ProcessorDescriptor Set(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetProcessor setProcessor) => Set(setProcessor, "set"); - public ProcessorDescriptor Set(Action configure) => Set(configure, "set"); - public ProcessorDescriptor SetSecurityUser(Elastic.Clients.Elasticsearch.Serverless.Ingest.SetSecurityUserProcessor setSecurityUserProcessor) => Set(setSecurityUserProcessor, "set_security_user"); - public ProcessorDescriptor SetSecurityUser(Action configure) => Set(configure, "set_security_user"); - public ProcessorDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Ingest.SortProcessor sortProcessor) => Set(sortProcessor, "sort"); - public ProcessorDescriptor Sort(Action configure) => Set(configure, "sort"); - public ProcessorDescriptor Split(Elastic.Clients.Elasticsearch.Serverless.Ingest.SplitProcessor splitProcessor) => Set(splitProcessor, "split"); - public ProcessorDescriptor Split(Action configure) => Set(configure, "split"); - public ProcessorDescriptor Terminate(Elastic.Clients.Elasticsearch.Serverless.Ingest.TerminateProcessor terminateProcessor) => Set(terminateProcessor, "terminate"); - public ProcessorDescriptor Terminate(Action configure) => Set(configure, "terminate"); - public ProcessorDescriptor Trim(Elastic.Clients.Elasticsearch.Serverless.Ingest.TrimProcessor trimProcessor) => Set(trimProcessor, "trim"); - public ProcessorDescriptor Trim(Action configure) => Set(configure, "trim"); - public ProcessorDescriptor Uppercase(Elastic.Clients.Elasticsearch.Serverless.Ingest.UppercaseProcessor uppercaseProcessor) => Set(uppercaseProcessor, "uppercase"); - public ProcessorDescriptor Uppercase(Action configure) => Set(configure, "uppercase"); - public ProcessorDescriptor UriParts(Elastic.Clients.Elasticsearch.Serverless.Ingest.UriPartsProcessor uriPartsProcessor) => Set(uriPartsProcessor, "uri_parts"); - public ProcessorDescriptor UriParts(Action configure) => Set(configure, "uri_parts"); - public ProcessorDescriptor UrlDecode(Elastic.Clients.Elasticsearch.Serverless.Ingest.UrlDecodeProcessor urlDecodeProcessor) => Set(urlDecodeProcessor, "urldecode"); - public ProcessorDescriptor UrlDecode(Action configure) => Set(configure, "urldecode"); - public ProcessorDescriptor UserAgent(Elastic.Clients.Elasticsearch.Serverless.Ingest.UserAgentProcessor userAgentProcessor) => Set(userAgentProcessor, "user_agent"); - public ProcessorDescriptor UserAgent(Action configure) => Set(configure, "user_agent"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs deleted file mode 100644 index ab6867a45e6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Redact.g.cs +++ /dev/null @@ -1,39 +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.Ingest; - -public sealed partial class Redact -{ - /// - /// - /// indicates if document has been redacted - /// - /// - [JsonInclude, JsonPropertyName("_is_redacted")] - public bool IsRedacted { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs deleted file mode 100644 index 3fd46a7ab96..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RedactProcessor.g.cs +++ /dev/null @@ -1,771 +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.Ingest; - -public sealed partial class RedactProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to be redacted - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - [JsonInclude, JsonPropertyName("pattern_definitions")] - public IDictionary? PatternDefinitions { get; set; } - - /// - /// - /// A list of grok expressions to match and redact named captures with - /// - /// - [JsonInclude, JsonPropertyName("patterns")] - public ICollection Patterns { get; set; } - - /// - /// - /// Start a redacted section with this token - /// - /// - [JsonInclude, JsonPropertyName("prefix")] - public string? Prefix { get; set; } - - /// - /// - /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document - /// - /// - [JsonInclude, JsonPropertyName("skip_if_unlicensed")] - public bool? SkipIfUnlicensed { get; set; } - - /// - /// - /// End a redacted section with this token - /// - /// - [JsonInclude, JsonPropertyName("suffix")] - public string? Suffix { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted - /// - /// - [JsonInclude, JsonPropertyName("trace_redact")] - public bool? TraceRedact { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RedactProcessor redactProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Redact(redactProcessor); -} - -public sealed partial class RedactProcessorDescriptor : SerializableDescriptor> -{ - internal RedactProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public RedactProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private IDictionary? PatternDefinitionsValue { get; set; } - private ICollection PatternsValue { get; set; } - private string? PrefixValue { get; set; } - private bool? SkipIfUnlicensedValue { get; set; } - private string? SuffixValue { get; set; } - private string? TagValue { get; set; } - private bool? TraceRedactValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RedactProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be redacted - /// - /// - public RedactProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be redacted - /// - /// - public RedactProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be redacted - /// - /// - public RedactProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RedactProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RedactProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public RedactProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RedactProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RedactProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RedactProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RedactProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public RedactProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) - { - PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// A list of grok expressions to match and redact named captures with - /// - /// - public RedactProcessorDescriptor Patterns(ICollection patterns) - { - PatternsValue = patterns; - return Self; - } - - /// - /// - /// Start a redacted section with this token - /// - /// - public RedactProcessorDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document - /// - /// - public RedactProcessorDescriptor SkipIfUnlicensed(bool? skipIfUnlicensed = true) - { - SkipIfUnlicensedValue = skipIfUnlicensed; - return Self; - } - - /// - /// - /// End a redacted section with this token - /// - /// - public RedactProcessorDescriptor Suffix(string? suffix) - { - SuffixValue = suffix; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RedactProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted - /// - /// - public RedactProcessorDescriptor TraceRedact(bool? traceRedact = true) - { - TraceRedactValue = traceRedact; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PatternDefinitionsValue is not null) - { - writer.WritePropertyName("pattern_definitions"); - JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); - } - - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (SkipIfUnlicensedValue.HasValue) - { - writer.WritePropertyName("skip_if_unlicensed"); - writer.WriteBooleanValue(SkipIfUnlicensedValue.Value); - } - - if (!string.IsNullOrEmpty(SuffixValue)) - { - writer.WritePropertyName("suffix"); - writer.WriteStringValue(SuffixValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TraceRedactValue.HasValue) - { - writer.WritePropertyName("trace_redact"); - writer.WriteBooleanValue(TraceRedactValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RedactProcessorDescriptor : SerializableDescriptor -{ - internal RedactProcessorDescriptor(Action configure) => configure.Invoke(this); - - public RedactProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private IDictionary? PatternDefinitionsValue { get; set; } - private ICollection PatternsValue { get; set; } - private string? PrefixValue { get; set; } - private bool? SkipIfUnlicensedValue { get; set; } - private string? SuffixValue { get; set; } - private string? TagValue { get; set; } - private bool? TraceRedactValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RedactProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be redacted - /// - /// - public RedactProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be redacted - /// - /// - public RedactProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be redacted - /// - /// - public RedactProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RedactProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RedactProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public RedactProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RedactProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RedactProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RedactProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RedactProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - public RedactProcessorDescriptor PatternDefinitions(Func, FluentDictionary> selector) - { - PatternDefinitionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// A list of grok expressions to match and redact named captures with - /// - /// - public RedactProcessorDescriptor Patterns(ICollection patterns) - { - PatternsValue = patterns; - return Self; - } - - /// - /// - /// Start a redacted section with this token - /// - /// - public RedactProcessorDescriptor Prefix(string? prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// If true and the current license does not support running redact processors, then the processor quietly exits without modifying the document - /// - /// - public RedactProcessorDescriptor SkipIfUnlicensed(bool? skipIfUnlicensed = true) - { - SkipIfUnlicensedValue = skipIfUnlicensed; - return Self; - } - - /// - /// - /// End a redacted section with this token - /// - /// - public RedactProcessorDescriptor Suffix(string? suffix) - { - SuffixValue = suffix; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RedactProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// If true then ingest metadata _ingest._redact._is_redacted is set to true if the document has been redacted - /// - /// - public RedactProcessorDescriptor TraceRedact(bool? traceRedact = true) - { - TraceRedactValue = traceRedact; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PatternDefinitionsValue is not null) - { - writer.WritePropertyName("pattern_definitions"); - JsonSerializer.Serialize(writer, PatternDefinitionsValue, options); - } - - writer.WritePropertyName("patterns"); - JsonSerializer.Serialize(writer, PatternsValue, options); - if (!string.IsNullOrEmpty(PrefixValue)) - { - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - } - - if (SkipIfUnlicensedValue.HasValue) - { - writer.WritePropertyName("skip_if_unlicensed"); - writer.WriteBooleanValue(SkipIfUnlicensedValue.Value); - } - - if (!string.IsNullOrEmpty(SuffixValue)) - { - writer.WritePropertyName("suffix"); - writer.WriteStringValue(SuffixValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TraceRedactValue.HasValue) - { - writer.WritePropertyName("trace_redact"); - writer.WriteBooleanValue(TraceRedactValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs deleted file mode 100644 index 5edced6ebd3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RegisteredDomainProcessor.g.cs +++ /dev/null @@ -1,629 +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.Ingest; - -public sealed partial class RegisteredDomainProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Field containing the source FQDN. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RegisteredDomainProcessor registeredDomainProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.RegisteredDomain(registeredDomainProcessor); -} - -public sealed partial class RegisteredDomainProcessorDescriptor : SerializableDescriptor> -{ - internal RegisteredDomainProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public RegisteredDomainProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RegisteredDomainProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the source FQDN. - /// - /// - public RegisteredDomainProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the source FQDN. - /// - /// - public RegisteredDomainProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the source FQDN. - /// - /// - public RegisteredDomainProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RegisteredDomainProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RegisteredDomainProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - public RegisteredDomainProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RegisteredDomainProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RegisteredDomainProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RegisteredDomainProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RegisteredDomainProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RegisteredDomainProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - public RegisteredDomainProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RegisteredDomainProcessorDescriptor : SerializableDescriptor -{ - internal RegisteredDomainProcessorDescriptor(Action configure) => configure.Invoke(this); - - public RegisteredDomainProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RegisteredDomainProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the source FQDN. - /// - /// - public RegisteredDomainProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the source FQDN. - /// - /// - public RegisteredDomainProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the source FQDN. - /// - /// - public RegisteredDomainProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RegisteredDomainProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RegisteredDomainProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and any required fields are missing, the processor quietly exits - /// without modifying the document. - /// - /// - public RegisteredDomainProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RegisteredDomainProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RegisteredDomainProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RegisteredDomainProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RegisteredDomainProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RegisteredDomainProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - public RegisteredDomainProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Object field containing extracted domain components. If an empty string, - /// the processor adds components to the document’s root. - /// - /// - public RegisteredDomainProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RemoveProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RemoveProcessor.g.cs deleted file mode 100644 index f6f877bc357..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RemoveProcessor.g.cs +++ /dev/null @@ -1,533 +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.Ingest; - -public sealed partial class RemoveProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Fields to be removed. Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("field")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Fields to be kept. When set, all fields other than those specified are removed. - /// - /// - [JsonInclude, JsonPropertyName("keep")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Keep { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RemoveProcessor removeProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Remove(removeProcessor); -} - -public sealed partial class RemoveProcessorDescriptor : SerializableDescriptor> -{ - internal RemoveProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public RemoveProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? KeepValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RemoveProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Fields to be removed. Supports template snippets. - /// - /// - public RemoveProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Fields field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RemoveProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RemoveProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public RemoveProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Fields to be kept. When set, all fields other than those specified are removed. - /// - /// - public RemoveProcessorDescriptor Keep(Elastic.Clients.Elasticsearch.Serverless.Fields? keep) - { - KeepValue = keep; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RemoveProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RemoveProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (KeepValue is not null) - { - writer.WritePropertyName("keep"); - JsonSerializer.Serialize(writer, KeepValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RemoveProcessorDescriptor : SerializableDescriptor -{ - internal RemoveProcessorDescriptor(Action configure) => configure.Invoke(this); - - public RemoveProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? KeepValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RemoveProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Fields to be removed. Supports template snippets. - /// - /// - public RemoveProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Fields field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RemoveProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RemoveProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public RemoveProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Fields to be kept. When set, all fields other than those specified are removed. - /// - /// - public RemoveProcessorDescriptor Keep(Elastic.Clients.Elasticsearch.Serverless.Fields? keep) - { - KeepValue = keep; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RemoveProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RemoveProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RemoveProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (KeepValue is not null) - { - writer.WritePropertyName("keep"); - JsonSerializer.Serialize(writer, KeepValue, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RenameProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RenameProcessor.g.cs deleted file mode 100644 index 36c0ee328ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RenameProcessor.g.cs +++ /dev/null @@ -1,625 +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.Ingest; - -public sealed partial class RenameProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RenameProcessor renameProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Rename(renameProcessor); -} - -public sealed partial class RenameProcessorDescriptor : SerializableDescriptor> -{ - internal RenameProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public RenameProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RenameProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RenameProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RenameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public RenameProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RenameProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RenameProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RenameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class RenameProcessorDescriptor : SerializableDescriptor -{ - internal RenameProcessorDescriptor(Action configure) => configure.Invoke(this); - - public RenameProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RenameProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be renamed. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RenameProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RenameProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public RenameProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RenameProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RenameProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RenameProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RenameProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The new name of the field. - /// Supports template snippets. - /// - /// - public RenameProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RerouteProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RerouteProcessor.g.cs deleted file mode 100644 index 1e865f6735a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/RerouteProcessor.g.cs +++ /dev/null @@ -1,598 +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.Ingest; - -public sealed partial class RerouteProcessor -{ - /// - /// - /// Field references or a static value for the dataset part of the data stream name. - /// In addition to the criteria for index names, cannot contain - and must be no longer than 100 characters. - /// Example values are nginx.access and nginx.error. - /// - /// - /// Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). - /// When resolving field references, the processor replaces invalid characters with _. Uses the <dataset> part - /// of the index name as a fallback if all field references resolve to a null, missing, or non-string value. - /// - /// - /// default {{data_stream.dataset}} - /// - /// - [JsonInclude, JsonPropertyName("dataset")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Dataset { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// A static value for the target. Can’t be set when the dataset or namespace option is set. - /// - /// - [JsonInclude, JsonPropertyName("destination")] - public string? Destination { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Field references or a static value for the namespace part of the data stream name. See the criteria for - /// index names for allowed characters. Must be no longer than 100 characters. - /// - /// - /// Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). - /// When resolving field references, the processor replaces invalid characters with _. Uses the <namespace> part - /// of the index name as a fallback if all field references resolve to a null, missing, or non-string value. - /// - /// - /// default {{data_stream.namespace}} - /// - /// - [JsonInclude, JsonPropertyName("namespace")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Namespace { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(RerouteProcessor rerouteProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Reroute(rerouteProcessor); -} - -public sealed partial class RerouteProcessorDescriptor : SerializableDescriptor> -{ - internal RerouteProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public RerouteProcessorDescriptor() : base() - { - } - - private ICollection? DatasetValue { get; set; } - private string? DescriptionValue { get; set; } - private string? DestinationValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? NamespaceValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Field references or a static value for the dataset part of the data stream name. - /// In addition to the criteria for index names, cannot contain - and must be no longer than 100 characters. - /// Example values are nginx.access and nginx.error. - /// - /// - /// Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). - /// When resolving field references, the processor replaces invalid characters with _. Uses the <dataset> part - /// of the index name as a fallback if all field references resolve to a null, missing, or non-string value. - /// - /// - /// default {{data_stream.dataset}} - /// - /// - public RerouteProcessorDescriptor Dataset(ICollection? dataset) - { - DatasetValue = dataset; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RerouteProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A static value for the target. Can’t be set when the dataset or namespace option is set. - /// - /// - public RerouteProcessorDescriptor Destination(string? destination) - { - DestinationValue = destination; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RerouteProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RerouteProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Field references or a static value for the namespace part of the data stream name. See the criteria for - /// index names for allowed characters. Must be no longer than 100 characters. - /// - /// - /// Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). - /// When resolving field references, the processor replaces invalid characters with _. Uses the <namespace> part - /// of the index name as a fallback if all field references resolve to a null, missing, or non-string value. - /// - /// - /// default {{data_stream.namespace}} - /// - /// - public RerouteProcessorDescriptor Namespace(ICollection? value) - { - NamespaceValue = value; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RerouteProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RerouteProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RerouteProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RerouteProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RerouteProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DatasetValue is not null) - { - writer.WritePropertyName("dataset"); - SingleOrManySerializationHelper.Serialize(DatasetValue, writer, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(DestinationValue)) - { - writer.WritePropertyName("destination"); - writer.WriteStringValue(DestinationValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (NamespaceValue is not null) - { - writer.WritePropertyName("namespace"); - SingleOrManySerializationHelper.Serialize(NamespaceValue, writer, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RerouteProcessorDescriptor : SerializableDescriptor -{ - internal RerouteProcessorDescriptor(Action configure) => configure.Invoke(this); - - public RerouteProcessorDescriptor() : base() - { - } - - private ICollection? DatasetValue { get; set; } - private string? DescriptionValue { get; set; } - private string? DestinationValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? NamespaceValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Field references or a static value for the dataset part of the data stream name. - /// In addition to the criteria for index names, cannot contain - and must be no longer than 100 characters. - /// Example values are nginx.access and nginx.error. - /// - /// - /// Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). - /// When resolving field references, the processor replaces invalid characters with _. Uses the <dataset> part - /// of the index name as a fallback if all field references resolve to a null, missing, or non-string value. - /// - /// - /// default {{data_stream.dataset}} - /// - /// - public RerouteProcessorDescriptor Dataset(ICollection? dataset) - { - DatasetValue = dataset; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public RerouteProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A static value for the target. Can’t be set when the dataset or namespace option is set. - /// - /// - public RerouteProcessorDescriptor Destination(string? destination) - { - DestinationValue = destination; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public RerouteProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public RerouteProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Field references or a static value for the namespace part of the data stream name. See the criteria for - /// index names for allowed characters. Must be no longer than 100 characters. - /// - /// - /// Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). - /// When resolving field references, the processor replaces invalid characters with _. Uses the <namespace> part - /// of the index name as a fallback if all field references resolve to a null, missing, or non-string value. - /// - /// - /// default {{data_stream.namespace}} - /// - /// - public RerouteProcessorDescriptor Namespace(ICollection? value) - { - NamespaceValue = value; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public RerouteProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public RerouteProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public RerouteProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public RerouteProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public RerouteProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DatasetValue is not null) - { - writer.WritePropertyName("dataset"); - SingleOrManySerializationHelper.Serialize(DatasetValue, writer, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(DestinationValue)) - { - writer.WritePropertyName("destination"); - writer.WriteStringValue(DestinationValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (NamespaceValue is not null) - { - writer.WritePropertyName("namespace"); - SingleOrManySerializationHelper.Serialize(NamespaceValue, writer, options); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ScriptProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ScriptProcessor.g.cs deleted file mode 100644 index a3cb8bc52ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/ScriptProcessor.g.cs +++ /dev/null @@ -1,589 +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.Ingest; - -public sealed partial class ScriptProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// ID of a stored script. - /// If no source is specified, this parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Script language. - /// - /// - [JsonInclude, JsonPropertyName("lang")] - public string? Lang { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Object containing parameters for the script. - /// - /// - [JsonInclude, JsonPropertyName("params")] - public IDictionary? Params { get; set; } - - /// - /// - /// Inline script. - /// If no id is specified, this parameter is required. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string? Source { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(ScriptProcessor scriptProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Script(scriptProcessor); -} - -public sealed partial class ScriptProcessorDescriptor : SerializableDescriptor> -{ - internal ScriptProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public ScriptProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? LangValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private IDictionary? ParamsValue { get; set; } - private string? SourceValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public ScriptProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// ID of a stored script. - /// If no source is specified, this parameter is required. - /// - /// - public ScriptProcessorDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public ScriptProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public ScriptProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Script language. - /// - /// - public ScriptProcessorDescriptor Lang(string? lang) - { - LangValue = lang; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public ScriptProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ScriptProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ScriptProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ScriptProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Object containing parameters for the script. - /// - /// - public ScriptProcessorDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Inline script. - /// If no id is specified, this parameter is required. - /// - /// - public ScriptProcessorDescriptor Source(string? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public ScriptProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(LangValue)) - { - writer.WritePropertyName("lang"); - writer.WriteStringValue(LangValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (!string.IsNullOrEmpty(SourceValue)) - { - writer.WritePropertyName("source"); - writer.WriteStringValue(SourceValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ScriptProcessorDescriptor : SerializableDescriptor -{ - internal ScriptProcessorDescriptor(Action configure) => configure.Invoke(this); - - public ScriptProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? LangValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private IDictionary? ParamsValue { get; set; } - private string? SourceValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public ScriptProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// ID of a stored script. - /// If no source is specified, this parameter is required. - /// - /// - public ScriptProcessorDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public ScriptProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public ScriptProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Script language. - /// - /// - public ScriptProcessorDescriptor Lang(string? lang) - { - LangValue = lang; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public ScriptProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public ScriptProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public ScriptProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public ScriptProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Object containing parameters for the script. - /// - /// - public ScriptProcessorDescriptor Params(Func, FluentDictionary> selector) - { - ParamsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Inline script. - /// If no id is specified, this parameter is required. - /// - /// - public ScriptProcessorDescriptor Source(string? source) - { - SourceValue = source; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public ScriptProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(LangValue)) - { - writer.WritePropertyName("lang"); - writer.WriteStringValue(LangValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (ParamsValue is not null) - { - writer.WritePropertyName("params"); - JsonSerializer.Serialize(writer, ParamsValue, options); - } - - if (!string.IsNullOrEmpty(SourceValue)) - { - writer.WritePropertyName("source"); - writer.WriteStringValue(SourceValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetProcessor.g.cs deleted file mode 100644 index c48440c59f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetProcessor.g.cs +++ /dev/null @@ -1,780 +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.Ingest; - -public sealed partial class SetProcessor -{ - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - [JsonInclude, JsonPropertyName("copy_from")] - public Elastic.Clients.Elasticsearch.Serverless.Field? CopyFrom { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// If true and value is a template snippet that evaluates to null or the empty string, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_empty_value")] - public bool? IgnoreEmptyValue { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// The media type for encoding value. - /// Applies only when value is a template snippet. - /// Must be one of application/json, text/plain, or application/x-www-form-urlencoded. - /// - /// - [JsonInclude, JsonPropertyName("media_type")] - public string? MediaType { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// If true processor will update fields with pre-existing non-null-valued field. - /// When set to false, such fields will not be touched. - /// - /// - [JsonInclude, JsonPropertyName("override")] - public bool? Override { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The value to be set for the field. - /// Supports template snippets. - /// May specify only one of value or copy_from. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public object? Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(SetProcessor setProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Set(setProcessor); -} - -public sealed partial class SetProcessorDescriptor : SerializableDescriptor> -{ - internal SetProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public SetProcessorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? CopyFromValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreEmptyValueValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? MediaTypeValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private bool? OverrideValue { get; set; } - private string? TagValue { get; set; } - private object? ValueValue { get; set; } - - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - public SetProcessorDescriptor CopyFrom(Elastic.Clients.Elasticsearch.Serverless.Field? copyFrom) - { - CopyFromValue = copyFrom; - return Self; - } - - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - public SetProcessorDescriptor CopyFrom(Expression> copyFrom) - { - CopyFromValue = copyFrom; - return Self; - } - - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - public SetProcessorDescriptor CopyFrom(Expression> copyFrom) - { - CopyFromValue = copyFrom; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SetProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - public SetProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SetProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// If true and value is a template snippet that evaluates to null or the empty string, the processor quietly exits without modifying the document. - /// - /// - public SetProcessorDescriptor IgnoreEmptyValue(bool? ignoreEmptyValue = true) - { - IgnoreEmptyValueValue = ignoreEmptyValue; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SetProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The media type for encoding value. - /// Applies only when value is a template snippet. - /// Must be one of application/json, text/plain, or application/x-www-form-urlencoded. - /// - /// - public SetProcessorDescriptor MediaType(string? mediaType) - { - MediaTypeValue = mediaType; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SetProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true processor will update fields with pre-existing non-null-valued field. - /// When set to false, such fields will not be touched. - /// - /// - public SetProcessorDescriptor Override(bool? value = true) - { - OverrideValue = value; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SetProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The value to be set for the field. - /// Supports template snippets. - /// May specify only one of value or copy_from. - /// - /// - public SetProcessorDescriptor Value(object? value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyFromValue is not null) - { - writer.WritePropertyName("copy_from"); - JsonSerializer.Serialize(writer, CopyFromValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreEmptyValueValue.HasValue) - { - writer.WritePropertyName("ignore_empty_value"); - writer.WriteBooleanValue(IgnoreEmptyValueValue.Value); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(MediaTypeValue)) - { - writer.WritePropertyName("media_type"); - writer.WriteStringValue(MediaTypeValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (ValueValue is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SetProcessorDescriptor : SerializableDescriptor -{ - internal SetProcessorDescriptor(Action configure) => configure.Invoke(this); - - public SetProcessorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? CopyFromValue { get; set; } - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreEmptyValueValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private string? MediaTypeValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private bool? OverrideValue { get; set; } - private string? TagValue { get; set; } - private object? ValueValue { get; set; } - - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - public SetProcessorDescriptor CopyFrom(Elastic.Clients.Elasticsearch.Serverless.Field? copyFrom) - { - CopyFromValue = copyFrom; - return Self; - } - - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - public SetProcessorDescriptor CopyFrom(Expression> copyFrom) - { - CopyFromValue = copyFrom; - return Self; - } - - /// - /// - /// The origin field which will be copied to field, cannot set value simultaneously. - /// Supported data types are boolean, number, array, object, string, date, etc. - /// - /// - public SetProcessorDescriptor CopyFrom(Expression> copyFrom) - { - CopyFromValue = copyFrom; - return Self; - } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SetProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - public SetProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to insert, upsert, or update. - /// Supports template snippets. - /// - /// - public SetProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SetProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// If true and value is a template snippet that evaluates to null or the empty string, the processor quietly exits without modifying the document. - /// - /// - public SetProcessorDescriptor IgnoreEmptyValue(bool? ignoreEmptyValue = true) - { - IgnoreEmptyValueValue = ignoreEmptyValue; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SetProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// The media type for encoding value. - /// Applies only when value is a template snippet. - /// Must be one of application/json, text/plain, or application/x-www-form-urlencoded. - /// - /// - public SetProcessorDescriptor MediaType(string? mediaType) - { - MediaTypeValue = mediaType; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SetProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true processor will update fields with pre-existing non-null-valued field. - /// When set to false, such fields will not be touched. - /// - /// - public SetProcessorDescriptor Override(bool? value = true) - { - OverrideValue = value; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SetProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The value to be set for the field. - /// Supports template snippets. - /// May specify only one of value or copy_from. - /// - /// - public SetProcessorDescriptor Value(object? value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyFromValue is not null) - { - writer.WritePropertyName("copy_from"); - JsonSerializer.Serialize(writer, CopyFromValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreEmptyValueValue.HasValue) - { - writer.WritePropertyName("ignore_empty_value"); - writer.WriteBooleanValue(IgnoreEmptyValueValue.Value); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (!string.IsNullOrEmpty(MediaTypeValue)) - { - writer.WritePropertyName("media_type"); - writer.WriteStringValue(MediaTypeValue); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OverrideValue.HasValue) - { - writer.WritePropertyName("override"); - writer.WriteBooleanValue(OverrideValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (ValueValue is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs deleted file mode 100644 index d4c853f4013..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SetSecurityUserProcessor.g.cs +++ /dev/null @@ -1,531 +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.Ingest; - -public sealed partial class SetSecurityUserProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to store the user information into. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Controls what user related properties are added to the field. - /// - /// - [JsonInclude, JsonPropertyName("properties")] - public ICollection? Properties { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(SetSecurityUserProcessor setSecurityUserProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.SetSecurityUser(setSecurityUserProcessor); -} - -public sealed partial class SetSecurityUserProcessorDescriptor : SerializableDescriptor> -{ - internal SetSecurityUserProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public SetSecurityUserProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SetSecurityUserProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to store the user information into. - /// - /// - public SetSecurityUserProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to store the user information into. - /// - /// - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to store the user information into. - /// - /// - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SetSecurityUserProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SetSecurityUserProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SetSecurityUserProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what user related properties are added to the field. - /// - /// - public SetSecurityUserProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SetSecurityUserProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SetSecurityUserProcessorDescriptor : SerializableDescriptor -{ - internal SetSecurityUserProcessorDescriptor(Action configure) => configure.Invoke(this); - - public SetSecurityUserProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SetSecurityUserProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to store the user information into. - /// - /// - public SetSecurityUserProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to store the user information into. - /// - /// - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to store the user information into. - /// - /// - public SetSecurityUserProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SetSecurityUserProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SetSecurityUserProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SetSecurityUserProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SetSecurityUserProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what user related properties are added to the field. - /// - /// - public SetSecurityUserProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SetSecurityUserProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SimulateDocumentResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SimulateDocumentResult.g.cs deleted file mode 100644 index 81d5e102c06..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SimulateDocumentResult.g.cs +++ /dev/null @@ -1,38 +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.Ingest; - -public sealed partial class SimulateDocumentResult -{ - [JsonInclude, JsonPropertyName("doc")] - public Elastic.Clients.Elasticsearch.Serverless.Ingest.DocumentSimulation? Doc { get; init; } - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? Error { get; init; } - [JsonInclude, JsonPropertyName("processor_results")] - public IReadOnlyCollection? ProcessorResults { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SortProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SortProcessor.g.cs deleted file mode 100644 index 5967180b7ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SortProcessor.g.cs +++ /dev/null @@ -1,629 +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.Ingest; - -public sealed partial class SortProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to be sorted. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// The sort order to use. - /// Accepts "asc" or "desc". - /// - /// - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(SortProcessor sortProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Sort(sortProcessor); -} - -public sealed partial class SortProcessorDescriptor : SerializableDescriptor> -{ - internal SortProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public SortProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SortProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be sorted. - /// - /// - public SortProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be sorted. - /// - /// - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be sorted. - /// - /// - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SortProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SortProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SortProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SortProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SortProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SortProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The sort order to use. - /// Accepts "asc" or "desc". - /// - /// - public SortProcessorDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SortProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - public SortProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SortProcessorDescriptor : SerializableDescriptor -{ - internal SortProcessorDescriptor(Action configure) => configure.Invoke(this); - - public SortProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SortProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to be sorted. - /// - /// - public SortProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be sorted. - /// - /// - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to be sorted. - /// - /// - public SortProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SortProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SortProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SortProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SortProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SortProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SortProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// The sort order to use. - /// Accepts "asc" or "desc". - /// - /// - public SortProcessorDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SortProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - public SortProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the sorted value to. - /// By default, the field is updated in-place. - /// - /// - public SortProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SplitProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SplitProcessor.g.cs deleted file mode 100644 index 37004038f5e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/SplitProcessor.g.cs +++ /dev/null @@ -1,706 +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.Ingest; - -public sealed partial class SplitProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to split. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Preserves empty trailing fields, if any. - /// - /// - [JsonInclude, JsonPropertyName("preserve_trailing")] - public bool? PreserveTrailing { get; set; } - - /// - /// - /// A regex which matches the separator, for example, , or \s+. - /// - /// - [JsonInclude, JsonPropertyName("separator")] - public string Separator { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(SplitProcessor splitProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Split(splitProcessor); -} - -public sealed partial class SplitProcessorDescriptor : SerializableDescriptor> -{ - internal SplitProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public SplitProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private bool? PreserveTrailingValue { get; set; } - private string SeparatorValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SplitProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to split. - /// - /// - public SplitProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to split. - /// - /// - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to split. - /// - /// - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SplitProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SplitProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public SplitProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SplitProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SplitProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Preserves empty trailing fields, if any. - /// - /// - public SplitProcessorDescriptor PreserveTrailing(bool? preserveTrailing = true) - { - PreserveTrailingValue = preserveTrailing; - return Self; - } - - /// - /// - /// A regex which matches the separator, for example, , or \s+. - /// - /// - public SplitProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SplitProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - public SplitProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PreserveTrailingValue.HasValue) - { - writer.WritePropertyName("preserve_trailing"); - writer.WriteBooleanValue(PreserveTrailingValue.Value); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SplitProcessorDescriptor : SerializableDescriptor -{ - internal SplitProcessorDescriptor(Action configure) => configure.Invoke(this); - - public SplitProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private bool? PreserveTrailingValue { get; set; } - private string SeparatorValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public SplitProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to split. - /// - /// - public SplitProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to split. - /// - /// - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to split. - /// - /// - public SplitProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public SplitProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public SplitProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public SplitProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public SplitProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public SplitProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public SplitProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Preserves empty trailing fields, if any. - /// - /// - public SplitProcessorDescriptor PreserveTrailing(bool? preserveTrailing = true) - { - PreserveTrailingValue = preserveTrailing; - return Self; - } - - /// - /// - /// A regex which matches the separator, for example, , or \s+. - /// - /// - public SplitProcessorDescriptor Separator(string separator) - { - SeparatorValue = separator; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public SplitProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - public SplitProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the split value to. - /// By default, the field is updated in-place. - /// - /// - public SplitProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PreserveTrailingValue.HasValue) - { - writer.WritePropertyName("preserve_trailing"); - writer.WriteBooleanValue(PreserveTrailingValue.Value); - } - - writer.WritePropertyName("separator"); - writer.WriteStringValue(SeparatorValue); - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs deleted file mode 100644 index 70b2df4e941..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TerminateProcessor.g.cs +++ /dev/null @@ -1,407 +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.Ingest; - -public sealed partial class TerminateProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(TerminateProcessor terminateProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Terminate(terminateProcessor); -} - -public sealed partial class TerminateProcessorDescriptor : SerializableDescriptor> -{ - internal TerminateProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public TerminateProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public TerminateProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public TerminateProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public TerminateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public TerminateProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public TerminateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public TerminateProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public TerminateProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public TerminateProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TerminateProcessorDescriptor : SerializableDescriptor -{ - internal TerminateProcessorDescriptor(Action configure) => configure.Invoke(this); - - public TerminateProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public TerminateProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public TerminateProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public TerminateProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public TerminateProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public TerminateProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public TerminateProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public TerminateProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public TerminateProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TrimProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TrimProcessor.g.cs deleted file mode 100644 index aa3c91d70e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/TrimProcessor.g.cs +++ /dev/null @@ -1,626 +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.Ingest; - -public sealed partial class TrimProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(TrimProcessor trimProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Trim(trimProcessor); -} - -public sealed partial class TrimProcessorDescriptor : SerializableDescriptor> -{ - internal TrimProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public TrimProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public TrimProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - public TrimProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public TrimProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public TrimProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public TrimProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public TrimProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public TrimProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public TrimProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - public TrimProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TrimProcessorDescriptor : SerializableDescriptor -{ - internal TrimProcessorDescriptor(Action configure) => configure.Invoke(this); - - public TrimProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public TrimProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - public TrimProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The string-valued field to trim whitespace from. - /// - /// - public TrimProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public TrimProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public TrimProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public TrimProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public TrimProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public TrimProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public TrimProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public TrimProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - public TrimProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the trimmed value to. - /// By default, the field is updated in-place. - /// - /// - public TrimProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UppercaseProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UppercaseProcessor.g.cs deleted file mode 100644 index 0ac5bc4040a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UppercaseProcessor.g.cs +++ /dev/null @@ -1,626 +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.Ingest; - -public sealed partial class UppercaseProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to make uppercase. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(UppercaseProcessor uppercaseProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.Uppercase(uppercaseProcessor); -} - -public sealed partial class UppercaseProcessorDescriptor : SerializableDescriptor> -{ - internal UppercaseProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public UppercaseProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UppercaseProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to make uppercase. - /// - /// - public UppercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make uppercase. - /// - /// - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make uppercase. - /// - /// - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UppercaseProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UppercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public UppercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UppercaseProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UppercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UppercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UppercaseProcessorDescriptor : SerializableDescriptor -{ - internal UppercaseProcessorDescriptor(Action configure) => configure.Invoke(this); - - public UppercaseProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UppercaseProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to make uppercase. - /// - /// - public UppercaseProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make uppercase. - /// - /// - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to make uppercase. - /// - /// - public UppercaseProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UppercaseProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UppercaseProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public UppercaseProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UppercaseProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UppercaseProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UppercaseProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UppercaseProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UppercaseProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UriPartsProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UriPartsProcessor.g.cs deleted file mode 100644 index 10b91f78d0c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UriPartsProcessor.g.cs +++ /dev/null @@ -1,710 +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.Ingest; - -public sealed partial class UriPartsProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Field containing the URI string. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// If true, the processor copies the unparsed URI to <target_field>.original. - /// - /// - [JsonInclude, JsonPropertyName("keep_original")] - public bool? KeepOriginal { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// If true, the processor removes the field after parsing the URI string. - /// If parsing fails, the processor does not remove the field. - /// - /// - [JsonInclude, JsonPropertyName("remove_if_successful")] - public bool? RemoveIfSuccessful { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// Output field for the URI object. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(UriPartsProcessor uriPartsProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.UriParts(uriPartsProcessor); -} - -public sealed partial class UriPartsProcessorDescriptor : SerializableDescriptor> -{ - internal UriPartsProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public UriPartsProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private bool? KeepOriginalValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private bool? RemoveIfSuccessfulValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UriPartsProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the URI string. - /// - /// - public UriPartsProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the URI string. - /// - /// - public UriPartsProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the URI string. - /// - /// - public UriPartsProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UriPartsProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UriPartsProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public UriPartsProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// If true, the processor copies the unparsed URI to <target_field>.original. - /// - /// - public UriPartsProcessorDescriptor KeepOriginal(bool? keepOriginal = true) - { - KeepOriginalValue = keepOriginal; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UriPartsProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UriPartsProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UriPartsProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UriPartsProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, the processor removes the field after parsing the URI string. - /// If parsing fails, the processor does not remove the field. - /// - /// - public UriPartsProcessorDescriptor RemoveIfSuccessful(bool? removeIfSuccessful = true) - { - RemoveIfSuccessfulValue = removeIfSuccessful; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UriPartsProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the URI object. - /// - /// - public UriPartsProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the URI object. - /// - /// - public UriPartsProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the URI object. - /// - /// - public UriPartsProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (KeepOriginalValue.HasValue) - { - writer.WritePropertyName("keep_original"); - writer.WriteBooleanValue(KeepOriginalValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (RemoveIfSuccessfulValue.HasValue) - { - writer.WritePropertyName("remove_if_successful"); - writer.WriteBooleanValue(RemoveIfSuccessfulValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UriPartsProcessorDescriptor : SerializableDescriptor -{ - internal UriPartsProcessorDescriptor(Action configure) => configure.Invoke(this); - - public UriPartsProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private bool? KeepOriginalValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private bool? RemoveIfSuccessfulValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UriPartsProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Field containing the URI string. - /// - /// - public UriPartsProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the URI string. - /// - /// - public UriPartsProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field containing the URI string. - /// - /// - public UriPartsProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UriPartsProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UriPartsProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public UriPartsProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// If true, the processor copies the unparsed URI to <target_field>.original. - /// - /// - public UriPartsProcessorDescriptor KeepOriginal(bool? keepOriginal = true) - { - KeepOriginalValue = keepOriginal; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UriPartsProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UriPartsProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UriPartsProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UriPartsProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// If true, the processor removes the field after parsing the URI string. - /// If parsing fails, the processor does not remove the field. - /// - /// - public UriPartsProcessorDescriptor RemoveIfSuccessful(bool? removeIfSuccessful = true) - { - RemoveIfSuccessfulValue = removeIfSuccessful; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UriPartsProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// Output field for the URI object. - /// - /// - public UriPartsProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the URI object. - /// - /// - public UriPartsProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// Output field for the URI object. - /// - /// - public UriPartsProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (KeepOriginalValue.HasValue) - { - writer.WritePropertyName("keep_original"); - writer.WriteBooleanValue(KeepOriginalValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (RemoveIfSuccessfulValue.HasValue) - { - writer.WritePropertyName("remove_if_successful"); - writer.WriteBooleanValue(RemoveIfSuccessfulValue.Value); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs deleted file mode 100644 index e9fa9e640bd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UrlDecodeProcessor.g.cs +++ /dev/null @@ -1,626 +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.Ingest; - -public sealed partial class UrlDecodeProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// The field to decode. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(UrlDecodeProcessor urlDecodeProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.UrlDecode(urlDecodeProcessor); -} - -public sealed partial class UrlDecodeProcessorDescriptor : SerializableDescriptor> -{ - internal UrlDecodeProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public UrlDecodeProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UrlDecodeProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to decode. - /// - /// - public UrlDecodeProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to decode. - /// - /// - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to decode. - /// - /// - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UrlDecodeProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UrlDecodeProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public UrlDecodeProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UrlDecodeProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UrlDecodeProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UrlDecodeProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UrlDecodeProcessorDescriptor : SerializableDescriptor -{ - internal UrlDecodeProcessorDescriptor(Action configure) => configure.Invoke(this); - - public UrlDecodeProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UrlDecodeProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The field to decode. - /// - /// - public UrlDecodeProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to decode. - /// - /// - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field to decode. - /// - /// - public UrlDecodeProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UrlDecodeProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UrlDecodeProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist or is null, the processor quietly exits without modifying the document. - /// - /// - public UrlDecodeProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UrlDecodeProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UrlDecodeProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UrlDecodeProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UrlDecodeProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field to assign the converted value to. - /// By default, the field is updated in-place. - /// - /// - public UrlDecodeProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs deleted file mode 100644 index d3686cd1ac9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/UserAgentProcessor.g.cs +++ /dev/null @@ -1,751 +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.Ingest; - -public sealed partial class UserAgentProcessor -{ - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// Extracts device type from the user agent string on a best-effort basis. - /// - /// - [JsonInclude, JsonPropertyName("extract_device_type")] - public bool? ExtractDeviceType { get; set; } - - /// - /// - /// The field containing the user agent string. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Conditionally execute the processor. - /// - /// - [JsonInclude, JsonPropertyName("if")] - public string? If { get; set; } - - /// - /// - /// Ignore failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - [JsonInclude, JsonPropertyName("ignore_missing")] - public bool? IgnoreMissing { get; set; } - - /// - /// - /// Handle failures for the processor. - /// - /// - [JsonInclude, JsonPropertyName("on_failure")] - public ICollection? OnFailure { get; set; } - - /// - /// - /// Controls what properties are added to target_field. - /// - /// - [JsonInclude, JsonPropertyName("properties")] - public ICollection? Properties { get; set; } - - /// - /// - /// The name of the file in the config/ingest-user-agent directory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use the regexes.yaml from uap-core it ships with. - /// - /// - [JsonInclude, JsonPropertyName("regex_file")] - public string? RegexFile { get; set; } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - [JsonInclude, JsonPropertyName("tag")] - public string? Tag { get; set; } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor(UserAgentProcessor userAgentProcessor) => Elastic.Clients.Elasticsearch.Serverless.Ingest.Processor.UserAgent(userAgentProcessor); -} - -public sealed partial class UserAgentProcessorDescriptor : SerializableDescriptor> -{ - internal UserAgentProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public UserAgentProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private bool? ExtractDeviceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action> OnFailureDescriptorAction { get; set; } - private Action>[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? RegexFileValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UserAgentProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Extracts device type from the user agent string on a best-effort basis. - /// - /// - public UserAgentProcessorDescriptor ExtractDeviceType(bool? extractDeviceType = true) - { - ExtractDeviceTypeValue = extractDeviceType; - return Self; - } - - /// - /// - /// The field containing the user agent string. - /// - /// - public UserAgentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field containing the user agent string. - /// - /// - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field containing the user agent string. - /// - /// - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UserAgentProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UserAgentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public UserAgentProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UserAgentProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(Action> configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(params Action>[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what properties are added to target_field. - /// - /// - public UserAgentProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// The name of the file in the config/ingest-user-agent directory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use the regexes.yaml from uap-core it ships with. - /// - /// - public UserAgentProcessorDescriptor RegexFile(string? regexFile) - { - RegexFileValue = regexFile; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UserAgentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - public UserAgentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (ExtractDeviceTypeValue.HasValue) - { - writer.WritePropertyName("extract_device_type"); - writer.WriteBooleanValue(ExtractDeviceTypeValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(RegexFileValue)) - { - writer.WritePropertyName("regex_file"); - writer.WriteStringValue(RegexFileValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UserAgentProcessorDescriptor : SerializableDescriptor -{ - internal UserAgentProcessorDescriptor(Action configure) => configure.Invoke(this); - - public UserAgentProcessorDescriptor() : base() - { - } - - private string? DescriptionValue { get; set; } - private bool? ExtractDeviceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? IfValue { get; set; } - private bool? IgnoreFailureValue { get; set; } - private bool? IgnoreMissingValue { get; set; } - private ICollection? OnFailureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } - private Action OnFailureDescriptorAction { get; set; } - private Action[] OnFailureDescriptorActions { get; set; } - private ICollection? PropertiesValue { get; set; } - private string? RegexFileValue { get; set; } - private string? TagValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TargetFieldValue { get; set; } - - /// - /// - /// Description of the processor. - /// Useful for describing the purpose of the processor or its configuration. - /// - /// - public UserAgentProcessorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// Extracts device type from the user agent string on a best-effort basis. - /// - /// - public UserAgentProcessorDescriptor ExtractDeviceType(bool? extractDeviceType = true) - { - ExtractDeviceTypeValue = extractDeviceType; - return Self; - } - - /// - /// - /// The field containing the user agent string. - /// - /// - public UserAgentProcessorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field containing the user agent string. - /// - /// - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field containing the user agent string. - /// - /// - public UserAgentProcessorDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Conditionally execute the processor. - /// - /// - public UserAgentProcessorDescriptor If(string? value) - { - IfValue = value; - return Self; - } - - /// - /// - /// Ignore failures for the processor. - /// - /// - public UserAgentProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - /// - /// - /// If true and field does not exist, the processor quietly exits without modifying the document. - /// - /// - public UserAgentProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) - { - IgnoreMissingValue = ignoreMissing; - return Self; - } - - /// - /// - /// Handle failures for the processor. - /// - /// - public UserAgentProcessorDescriptor OnFailure(ICollection? onFailure) - { - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureValue = onFailure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor descriptor) - { - OnFailureValue = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = null; - OnFailureDescriptor = descriptor; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(Action configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorActions = null; - OnFailureDescriptorAction = configure; - return Self; - } - - public UserAgentProcessorDescriptor OnFailure(params Action[] configure) - { - OnFailureValue = null; - OnFailureDescriptor = null; - OnFailureDescriptorAction = null; - OnFailureDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls what properties are added to target_field. - /// - /// - public UserAgentProcessorDescriptor Properties(ICollection? properties) - { - PropertiesValue = properties; - return Self; - } - - /// - /// - /// The name of the file in the config/ingest-user-agent directory containing the regular expressions for parsing the user agent string. Both the directory and the file have to be created before starting Elasticsearch. If not specified, ingest-user-agent will use the regexes.yaml from uap-core it ships with. - /// - /// - public UserAgentProcessorDescriptor RegexFile(string? regexFile) - { - RegexFileValue = regexFile; - return Self; - } - - /// - /// - /// Identifier for the processor. - /// Useful for debugging and metrics. - /// - /// - public UserAgentProcessorDescriptor Tag(string? tag) - { - TagValue = tag; - return Self; - } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - public UserAgentProcessorDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// The field that will be filled with the user agent details. - /// - /// - public UserAgentProcessorDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (ExtractDeviceTypeValue.HasValue) - { - writer.WritePropertyName("extract_device_type"); - writer.WriteBooleanValue(ExtractDeviceTypeValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(IfValue)) - { - writer.WritePropertyName("if"); - writer.WriteStringValue(IfValue); - } - - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - if (IgnoreMissingValue.HasValue) - { - writer.WritePropertyName("ignore_missing"); - writer.WriteBooleanValue(IgnoreMissingValue.Value); - } - - if (OnFailureDescriptor is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, OnFailureDescriptor, options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorAction is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(OnFailureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (OnFailureDescriptorActions is not null) - { - writer.WritePropertyName("on_failure"); - writer.WriteStartArray(); - foreach (var action in OnFailureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Ingest.ProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (OnFailureValue is not null) - { - writer.WritePropertyName("on_failure"); - JsonSerializer.Serialize(writer, OnFailureValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(RegexFileValue)) - { - writer.WritePropertyName("regex_file"); - writer.WriteStringValue(RegexFileValue); - } - - if (!string.IsNullOrEmpty(TagValue)) - { - writer.WritePropertyName("tag"); - writer.WriteStringValue(TagValue); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs deleted file mode 100644 index 6783a58f9d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Ingest/Web.g.cs +++ /dev/null @@ -1,47 +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.Ingest; - -public sealed partial class Web -{ -} - -public sealed partial class WebDescriptor : SerializableDescriptor -{ - internal WebDescriptor(Action configure) => configure.Invoke(this); - - public WebDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineGet.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineGet.g.cs deleted file mode 100644 index 0ecc654b5b4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/InlineGet.g.cs +++ /dev/null @@ -1,115 +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; - -internal sealed partial class InlineGetConverter : JsonConverter> -{ - public override InlineGet Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyDictionary? fields = default; - bool found = default; - long? primaryTerm = default; - string? routing = default; - long? seqNo = default; - TDocument? source = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "fields") - { - fields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "found") - { - found = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_primary_term") - { - primaryTerm = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_routing") - { - routing = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_seq_no") - { - seqNo = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_source") - { - source = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - return new InlineGet { Fields = fields, Found = found, Metadata = additionalProperties, PrimaryTerm = primaryTerm, Routing = routing, SeqNo = seqNo, Source = source }; - } - - public override void Write(Utf8JsonWriter writer, InlineGet value, JsonSerializerOptions options) - { - throw new NotImplementedException("'InlineGet' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[GenericConverter(typeof(InlineGetConverter<>), unwrap: true)] -public sealed partial class InlineGet -{ - public IReadOnlyDictionary? Fields { get; init; } - public bool Found { get; init; } - - /// - /// - /// Document metadata - /// - /// - public IReadOnlyDictionary Metadata { get; init; } - public long? PrimaryTerm { get; init; } - public string? Routing { get; init; } - public long? SeqNo { get; init; } - public TDocument? Source { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnQuery.g.cs deleted file mode 100644 index 5c7e205c5ae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnQuery.g.cs +++ /dev/null @@ -1,663 +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 KnnQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The name of the vector field to search against - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Filters for the kNN search query - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// The final number of nearest neighbors to return as top hits - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// The number of nearest neighbor candidates to consider per shard - /// - /// - [JsonInclude, JsonPropertyName("num_candidates")] - public int? NumCandidates { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// The query vector - /// - /// - [JsonInclude, JsonPropertyName("query_vector")] - public ICollection? QueryVector { get; set; } - - /// - /// - /// The query vector builder. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - [JsonInclude, JsonPropertyName("query_vector_builder")] - public Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilder { get; set; } - - /// - /// - /// The minimum similarity for a vector to be considered a match - /// - /// - [JsonInclude, JsonPropertyName("similarity")] - public float? Similarity { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(KnnQuery knnQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Knn(knnQuery); -} - -public sealed partial class KnnQueryDescriptor : SerializableDescriptor> -{ - internal KnnQueryDescriptor(Action> configure) => configure.Invoke(this); - - public KnnQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private int? kValue { get; set; } - private int? NumCandidatesValue { get; set; } - private string? QueryNameValue { get; set; } - private ICollection? QueryVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } - private Action QueryVectorBuilderDescriptorAction { get; set; } - private float? SimilarityValue { 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 KnnQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Filters for the kNN search query - /// - /// - public KnnQueryDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public KnnQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public KnnQueryDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public KnnQueryDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// The final number of nearest neighbors to return as top hits - /// - /// - public KnnQueryDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// The number of nearest neighbor candidates to consider per shard - /// - /// - public KnnQueryDescriptor NumCandidates(int? numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - public KnnQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The query vector - /// - /// - public KnnQueryDescriptor QueryVector(ICollection? queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - /// - /// - /// The query vector builder. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - public KnnQueryDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? queryVectorBuilder) - { - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderValue = queryVectorBuilder; - return Self; - } - - public KnnQueryDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor descriptor) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderDescriptor = descriptor; - return Self; - } - - public KnnQueryDescriptor QueryVectorBuilder(Action configure) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum similarity for a vector to be considered a match - /// - /// - public KnnQueryDescriptor Similarity(float? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (NumCandidatesValue.HasValue) - { - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (QueryVectorValue is not null) - { - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - } - - if (QueryVectorBuilderDescriptor is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderDescriptor, options); - } - else if (QueryVectorBuilderDescriptorAction is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor(QueryVectorBuilderDescriptorAction), options); - } - else if (QueryVectorBuilderValue is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); - } - - if (SimilarityValue.HasValue) - { - writer.WritePropertyName("similarity"); - writer.WriteNumberValue(SimilarityValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class KnnQueryDescriptor : SerializableDescriptor -{ - internal KnnQueryDescriptor(Action configure) => configure.Invoke(this); - - public KnnQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private int? kValue { get; set; } - private int? NumCandidatesValue { get; set; } - private string? QueryNameValue { get; set; } - private ICollection? QueryVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } - private Action QueryVectorBuilderDescriptorAction { get; set; } - private float? SimilarityValue { 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 KnnQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Filters for the kNN search query - /// - /// - public KnnQueryDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public KnnQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public KnnQueryDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public KnnQueryDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// The final number of nearest neighbors to return as top hits - /// - /// - public KnnQueryDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// The number of nearest neighbor candidates to consider per shard - /// - /// - public KnnQueryDescriptor NumCandidates(int? numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - public KnnQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The query vector - /// - /// - public KnnQueryDescriptor QueryVector(ICollection? queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - /// - /// - /// The query vector builder. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - public KnnQueryDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? queryVectorBuilder) - { - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderValue = queryVectorBuilder; - return Self; - } - - public KnnQueryDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor descriptor) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderDescriptor = descriptor; - return Self; - } - - public KnnQueryDescriptor QueryVectorBuilder(Action configure) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum similarity for a vector to be considered a match - /// - /// - public KnnQueryDescriptor Similarity(float? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (NumCandidatesValue.HasValue) - { - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (QueryVectorValue is not null) - { - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - } - - if (QueryVectorBuilderDescriptor is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderDescriptor, options); - } - else if (QueryVectorBuilderDescriptorAction is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor(QueryVectorBuilderDescriptorAction), options); - } - else if (QueryVectorBuilderValue is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); - } - - if (SimilarityValue.HasValue) - { - writer.WritePropertyName("similarity"); - writer.WriteNumberValue(SimilarityValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs deleted file mode 100644 index 12e19169c80..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnRetriever.g.cs +++ /dev/null @@ -1,566 +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 KnnRetriever -{ - /// - /// - /// The name of the vector field to search against. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public string Field { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// Number of nearest neighbors to return as top hits. - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int k { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public float? MinScore { get; set; } - - /// - /// - /// Number of nearest neighbor candidates to consider per shard. - /// - /// - [JsonInclude, JsonPropertyName("num_candidates")] - public int NumCandidates { get; set; } - - /// - /// - /// Query vector. Must have the same number of dimensions as the vector field you are searching against. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - [JsonInclude, JsonPropertyName("query_vector")] - public ICollection? QueryVector { get; set; } - - /// - /// - /// Defines a model to build a query vector. - /// - /// - [JsonInclude, JsonPropertyName("query_vector_builder")] - public Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilder { get; set; } - - /// - /// - /// The minimum similarity required for a document to be considered a match. - /// - /// - [JsonInclude, JsonPropertyName("similarity")] - public float? Similarity { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(KnnRetriever knnRetriever) => Elastic.Clients.Elasticsearch.Serverless.Retriever.Knn(knnRetriever); -} - -public sealed partial class KnnRetrieverDescriptor : SerializableDescriptor> -{ - internal KnnRetrieverDescriptor(Action> configure) => configure.Invoke(this); - - public KnnRetrieverDescriptor() : base() - { - } - - private string FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private int kValue { get; set; } - private float? MinScoreValue { get; set; } - private int NumCandidatesValue { get; set; } - private ICollection? QueryVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } - private Action QueryVectorBuilderDescriptorAction { get; set; } - private float? SimilarityValue { get; set; } - - /// - /// - /// The name of the vector field to search against. - /// - /// - public KnnRetrieverDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public KnnRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public KnnRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public KnnRetrieverDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public KnnRetrieverDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Number of nearest neighbors to return as top hits. - /// - /// - public KnnRetrieverDescriptor k(int k) - { - kValue = k; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public KnnRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Number of nearest neighbor candidates to consider per shard. - /// - /// - public KnnRetrieverDescriptor NumCandidates(int numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - /// - /// - /// Query vector. Must have the same number of dimensions as the vector field you are searching against. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - public KnnRetrieverDescriptor QueryVector(ICollection? queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - /// - /// - /// Defines a model to build a query vector. - /// - /// - public KnnRetrieverDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? queryVectorBuilder) - { - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderValue = queryVectorBuilder; - return Self; - } - - public KnnRetrieverDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor descriptor) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderDescriptor = descriptor; - return Self; - } - - public KnnRetrieverDescriptor QueryVectorBuilder(Action configure) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum similarity required for a document to be considered a match. - /// - /// - public KnnRetrieverDescriptor Similarity(float? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue); - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue); - if (QueryVectorValue is not null) - { - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - } - - if (QueryVectorBuilderDescriptor is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderDescriptor, options); - } - else if (QueryVectorBuilderDescriptorAction is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor(QueryVectorBuilderDescriptorAction), options); - } - else if (QueryVectorBuilderValue is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); - } - - if (SimilarityValue.HasValue) - { - writer.WritePropertyName("similarity"); - writer.WriteNumberValue(SimilarityValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class KnnRetrieverDescriptor : SerializableDescriptor -{ - internal KnnRetrieverDescriptor(Action configure) => configure.Invoke(this); - - public KnnRetrieverDescriptor() : base() - { - } - - private string FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private int kValue { get; set; } - private float? MinScoreValue { get; set; } - private int NumCandidatesValue { get; set; } - private ICollection? QueryVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } - private Action QueryVectorBuilderDescriptorAction { get; set; } - private float? SimilarityValue { get; set; } - - /// - /// - /// The name of the vector field to search against. - /// - /// - public KnnRetrieverDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public KnnRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public KnnRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public KnnRetrieverDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public KnnRetrieverDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Number of nearest neighbors to return as top hits. - /// - /// - public KnnRetrieverDescriptor k(int k) - { - kValue = k; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public KnnRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Number of nearest neighbor candidates to consider per shard. - /// - /// - public KnnRetrieverDescriptor NumCandidates(int numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - /// - /// - /// Query vector. Must have the same number of dimensions as the vector field you are searching against. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - public KnnRetrieverDescriptor QueryVector(ICollection? queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - /// - /// - /// Defines a model to build a query vector. - /// - /// - public KnnRetrieverDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? queryVectorBuilder) - { - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderValue = queryVectorBuilder; - return Self; - } - - public KnnRetrieverDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor descriptor) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderDescriptor = descriptor; - return Self; - } - - public KnnRetrieverDescriptor QueryVectorBuilder(Action configure) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum similarity required for a document to be considered a match. - /// - /// - public KnnRetrieverDescriptor Similarity(float? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue); - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue); - if (QueryVectorValue is not null) - { - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - } - - if (QueryVectorBuilderDescriptor is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderDescriptor, options); - } - else if (QueryVectorBuilderDescriptorAction is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor(QueryVectorBuilderDescriptorAction), options); - } - else if (QueryVectorBuilderValue is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); - } - - if (SimilarityValue.HasValue) - { - writer.WritePropertyName("similarity"); - writer.WriteNumberValue(SimilarityValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnSearch.g.cs deleted file mode 100644 index a1deddb0eb4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/KnnSearch.g.cs +++ /dev/null @@ -1,728 +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 KnnSearch -{ - /// - /// - /// Boost value to apply to kNN scores - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The name of the vector field to search against - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Filters for the kNN search query - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - [JsonInclude, JsonPropertyName("inner_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHits { get; set; } - - /// - /// - /// The final number of nearest neighbors to return as top hits - /// - /// - [JsonInclude, JsonPropertyName("k")] - public int? k { get; set; } - - /// - /// - /// The number of nearest neighbor candidates to consider per shard - /// - /// - [JsonInclude, JsonPropertyName("num_candidates")] - public int? NumCandidates { get; set; } - - /// - /// - /// The query vector - /// - /// - [JsonInclude, JsonPropertyName("query_vector")] - public ICollection? QueryVector { get; set; } - - /// - /// - /// The query vector builder. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - [JsonInclude, JsonPropertyName("query_vector_builder")] - public Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilder { get; set; } - - /// - /// - /// The minimum similarity for a vector to be considered a match - /// - /// - [JsonInclude, JsonPropertyName("similarity")] - public float? Similarity { get; set; } -} - -public sealed partial class KnnSearchDescriptor : SerializableDescriptor> -{ - internal KnnSearchDescriptor(Action> configure) => configure.Invoke(this); - - public KnnSearchDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action> InnerHitsDescriptorAction { get; set; } - private int? kValue { get; set; } - private int? NumCandidatesValue { get; set; } - private ICollection? QueryVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } - private Action QueryVectorBuilderDescriptorAction { get; set; } - private float? SimilarityValue { get; set; } - - /// - /// - /// Boost value to apply to kNN scores - /// - /// - public KnnSearchDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnSearchDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnSearchDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnSearchDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Filters for the kNN search query - /// - /// - public KnnSearchDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public KnnSearchDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public KnnSearchDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public KnnSearchDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public KnnSearchDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public KnnSearchDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public KnnSearchDescriptor InnerHits(Action> configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The final number of nearest neighbors to return as top hits - /// - /// - public KnnSearchDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// The number of nearest neighbor candidates to consider per shard - /// - /// - public KnnSearchDescriptor NumCandidates(int? numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - /// - /// - /// The query vector - /// - /// - public KnnSearchDescriptor QueryVector(ICollection? queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - /// - /// - /// The query vector builder. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - public KnnSearchDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? queryVectorBuilder) - { - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderValue = queryVectorBuilder; - return Self; - } - - public KnnSearchDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor descriptor) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderDescriptor = descriptor; - return Self; - } - - public KnnSearchDescriptor QueryVectorBuilder(Action configure) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum similarity for a vector to be considered a match - /// - /// - public KnnSearchDescriptor Similarity(float? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (NumCandidatesValue.HasValue) - { - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue.Value); - } - - if (QueryVectorValue is not null) - { - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - } - - if (QueryVectorBuilderDescriptor is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderDescriptor, options); - } - else if (QueryVectorBuilderDescriptorAction is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor(QueryVectorBuilderDescriptorAction), options); - } - else if (QueryVectorBuilderValue is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); - } - - if (SimilarityValue.HasValue) - { - writer.WritePropertyName("similarity"); - writer.WriteNumberValue(SimilarityValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class KnnSearchDescriptor : SerializableDescriptor -{ - internal KnnSearchDescriptor(Action configure) => configure.Invoke(this); - - public KnnSearchDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action InnerHitsDescriptorAction { get; set; } - private int? kValue { get; set; } - private int? NumCandidatesValue { get; set; } - private ICollection? QueryVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } - private Action QueryVectorBuilderDescriptorAction { get; set; } - private float? SimilarityValue { get; set; } - - /// - /// - /// Boost value to apply to kNN scores - /// - /// - public KnnSearchDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnSearchDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnSearchDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the vector field to search against - /// - /// - public KnnSearchDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Filters for the kNN search query - /// - /// - public KnnSearchDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public KnnSearchDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public KnnSearchDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public KnnSearchDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public KnnSearchDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public KnnSearchDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public KnnSearchDescriptor InnerHits(Action configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The final number of nearest neighbors to return as top hits - /// - /// - public KnnSearchDescriptor k(int? k) - { - kValue = k; - return Self; - } - - /// - /// - /// The number of nearest neighbor candidates to consider per shard - /// - /// - public KnnSearchDescriptor NumCandidates(int? numCandidates) - { - NumCandidatesValue = numCandidates; - return Self; - } - - /// - /// - /// The query vector - /// - /// - public KnnSearchDescriptor QueryVector(ICollection? queryVector) - { - QueryVectorValue = queryVector; - return Self; - } - - /// - /// - /// The query vector builder. You must provide a query_vector_builder or query_vector, but not both. - /// - /// - public KnnSearchDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder? queryVectorBuilder) - { - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderValue = queryVectorBuilder; - return Self; - } - - public KnnSearchDescriptor QueryVectorBuilder(Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor descriptor) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptorAction = null; - QueryVectorBuilderDescriptor = descriptor; - return Self; - } - - public KnnSearchDescriptor QueryVectorBuilder(Action configure) - { - QueryVectorBuilderValue = null; - QueryVectorBuilderDescriptor = null; - QueryVectorBuilderDescriptorAction = configure; - return Self; - } - - /// - /// - /// The minimum similarity for a vector to be considered a match - /// - /// - public KnnSearchDescriptor Similarity(float? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - if (kValue.HasValue) - { - writer.WritePropertyName("k"); - writer.WriteNumberValue(kValue.Value); - } - - if (NumCandidatesValue.HasValue) - { - writer.WritePropertyName("num_candidates"); - writer.WriteNumberValue(NumCandidatesValue.Value); - } - - if (QueryVectorValue is not null) - { - writer.WritePropertyName("query_vector"); - JsonSerializer.Serialize(writer, QueryVectorValue, options); - } - - if (QueryVectorBuilderDescriptor is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderDescriptor, options); - } - else if (QueryVectorBuilderDescriptorAction is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilderDescriptor(QueryVectorBuilderDescriptorAction), options); - } - else if (QueryVectorBuilderValue is not null) - { - writer.WritePropertyName("query_vector_builder"); - JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); - } - - if (SimilarityValue.HasValue) - { - writer.WritePropertyName("similarity"); - writer.WriteNumberValue(SimilarityValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LatLonGeoLocation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LatLonGeoLocation.g.cs deleted file mode 100644 index 66d09482af8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LatLonGeoLocation.g.cs +++ /dev/null @@ -1,91 +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 LatLonGeoLocation -{ - /// - /// - /// Latitude - /// - /// - [JsonInclude, JsonPropertyName("lat")] - public double Lat { get; set; } - - /// - /// - /// Longitude - /// - /// - [JsonInclude, JsonPropertyName("lon")] - public double Lon { get; set; } -} - -public sealed partial class LatLonGeoLocationDescriptor : SerializableDescriptor -{ - internal LatLonGeoLocationDescriptor(Action configure) => configure.Invoke(this); - - public LatLonGeoLocationDescriptor() : base() - { - } - - private double LatValue { get; set; } - private double LonValue { get; set; } - - /// - /// - /// Latitude - /// - /// - public LatLonGeoLocationDescriptor Lat(double lat) - { - LatValue = lat; - return Self; - } - - /// - /// - /// Longitude - /// - /// - public LatLonGeoLocationDescriptor Lon(double lon) - { - LonValue = lon; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("lat"); - writer.WriteNumberValue(LatValue); - writer.WritePropertyName("lon"); - writer.WriteNumberValue(LonValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LicenseManagement/LicenseInformation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LicenseManagement/LicenseInformation.g.cs deleted file mode 100644 index 5dbfc2c1e0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/LicenseManagement/LicenseInformation.g.cs +++ /dev/null @@ -1,56 +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.LicenseManagement; - -public sealed partial class LicenseInformation -{ - [JsonInclude, JsonPropertyName("expiry_date")] - public DateTimeOffset? ExpiryDate { get; init; } - [JsonInclude, JsonPropertyName("expiry_date_in_millis")] - public long? ExpiryDateInMillis { get; init; } - [JsonInclude, JsonPropertyName("issue_date")] - public DateTimeOffset IssueDate { get; init; } - [JsonInclude, JsonPropertyName("issue_date_in_millis")] - public long IssueDateInMillis { get; init; } - [JsonInclude, JsonPropertyName("issued_to")] - public string IssuedTo { get; init; } - [JsonInclude, JsonPropertyName("issuer")] - public string Issuer { get; init; } - [JsonInclude, JsonPropertyName("max_nodes")] - public long? MaxNodes { get; init; } - [JsonInclude, JsonPropertyName("max_resource_units")] - public int? MaxResourceUnits { get; init; } - [JsonInclude, JsonPropertyName("start_date_in_millis")] - public long StartDateInMillis { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.LicenseManagement.LicenseStatus Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.LicenseManagement.LicenseType Type { get; init; } - [JsonInclude, JsonPropertyName("uid")] - public string Uid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs deleted file mode 100644 index 8ad7a3359a5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs +++ /dev/null @@ -1,38 +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.MachineLearning; - -public sealed partial class AdaptiveAllocationsSettings -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("max_number_of_allocations")] - public int? MaxNumberOfAllocations { get; init; } - [JsonInclude, JsonPropertyName("min_number_of_allocations")] - public int? MinNumberOfAllocations { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AggregateOutput.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AggregateOutput.g.cs deleted file mode 100644 index 468993cb908..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AggregateOutput.g.cs +++ /dev/null @@ -1,228 +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.MachineLearning; - -public sealed partial class AggregateOutput -{ - [JsonInclude, JsonPropertyName("exponent")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? Exponent { get; set; } - [JsonInclude, JsonPropertyName("logistic_regression")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? LogisticRegression { get; set; } - [JsonInclude, JsonPropertyName("weighted_mode")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? WeightedMode { get; set; } - [JsonInclude, JsonPropertyName("weighted_sum")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? WeightedSum { get; set; } -} - -public sealed partial class AggregateOutputDescriptor : SerializableDescriptor -{ - internal AggregateOutputDescriptor(Action configure) => configure.Invoke(this); - - public AggregateOutputDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? ExponentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor ExponentDescriptor { get; set; } - private Action ExponentDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? LogisticRegressionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor LogisticRegressionDescriptor { get; set; } - private Action LogisticRegressionDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? WeightedModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor WeightedModeDescriptor { get; set; } - private Action WeightedModeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? WeightedSumValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor WeightedSumDescriptor { get; set; } - private Action WeightedSumDescriptorAction { get; set; } - - public AggregateOutputDescriptor Exponent(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? exponent) - { - ExponentDescriptor = null; - ExponentDescriptorAction = null; - ExponentValue = exponent; - return Self; - } - - public AggregateOutputDescriptor Exponent(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor descriptor) - { - ExponentValue = null; - ExponentDescriptorAction = null; - ExponentDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor Exponent(Action configure) - { - ExponentValue = null; - ExponentDescriptor = null; - ExponentDescriptorAction = configure; - return Self; - } - - public AggregateOutputDescriptor LogisticRegression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? logisticRegression) - { - LogisticRegressionDescriptor = null; - LogisticRegressionDescriptorAction = null; - LogisticRegressionValue = logisticRegression; - return Self; - } - - public AggregateOutputDescriptor LogisticRegression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor descriptor) - { - LogisticRegressionValue = null; - LogisticRegressionDescriptorAction = null; - LogisticRegressionDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor LogisticRegression(Action configure) - { - LogisticRegressionValue = null; - LogisticRegressionDescriptor = null; - LogisticRegressionDescriptorAction = configure; - return Self; - } - - public AggregateOutputDescriptor WeightedMode(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? weightedMode) - { - WeightedModeDescriptor = null; - WeightedModeDescriptorAction = null; - WeightedModeValue = weightedMode; - return Self; - } - - public AggregateOutputDescriptor WeightedMode(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor descriptor) - { - WeightedModeValue = null; - WeightedModeDescriptorAction = null; - WeightedModeDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor WeightedMode(Action configure) - { - WeightedModeValue = null; - WeightedModeDescriptor = null; - WeightedModeDescriptorAction = configure; - return Self; - } - - public AggregateOutputDescriptor WeightedSum(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Weights? weightedSum) - { - WeightedSumDescriptor = null; - WeightedSumDescriptorAction = null; - WeightedSumValue = weightedSum; - return Self; - } - - public AggregateOutputDescriptor WeightedSum(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor descriptor) - { - WeightedSumValue = null; - WeightedSumDescriptorAction = null; - WeightedSumDescriptor = descriptor; - return Self; - } - - public AggregateOutputDescriptor WeightedSum(Action configure) - { - WeightedSumValue = null; - WeightedSumDescriptor = null; - WeightedSumDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExponentDescriptor is not null) - { - writer.WritePropertyName("exponent"); - JsonSerializer.Serialize(writer, ExponentDescriptor, options); - } - else if (ExponentDescriptorAction is not null) - { - writer.WritePropertyName("exponent"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor(ExponentDescriptorAction), options); - } - else if (ExponentValue is not null) - { - writer.WritePropertyName("exponent"); - JsonSerializer.Serialize(writer, ExponentValue, options); - } - - if (LogisticRegressionDescriptor is not null) - { - writer.WritePropertyName("logistic_regression"); - JsonSerializer.Serialize(writer, LogisticRegressionDescriptor, options); - } - else if (LogisticRegressionDescriptorAction is not null) - { - writer.WritePropertyName("logistic_regression"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor(LogisticRegressionDescriptorAction), options); - } - else if (LogisticRegressionValue is not null) - { - writer.WritePropertyName("logistic_regression"); - JsonSerializer.Serialize(writer, LogisticRegressionValue, options); - } - - if (WeightedModeDescriptor is not null) - { - writer.WritePropertyName("weighted_mode"); - JsonSerializer.Serialize(writer, WeightedModeDescriptor, options); - } - else if (WeightedModeDescriptorAction is not null) - { - writer.WritePropertyName("weighted_mode"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor(WeightedModeDescriptorAction), options); - } - else if (WeightedModeValue is not null) - { - writer.WritePropertyName("weighted_mode"); - JsonSerializer.Serialize(writer, WeightedModeValue, options); - } - - if (WeightedSumDescriptor is not null) - { - writer.WritePropertyName("weighted_sum"); - JsonSerializer.Serialize(writer, WeightedSumDescriptor, options); - } - else if (WeightedSumDescriptorAction is not null) - { - writer.WritePropertyName("weighted_sum"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.WeightsDescriptor(WeightedSumDescriptorAction), options); - } - else if (WeightedSumValue is not null) - { - writer.WritePropertyName("weighted_sum"); - JsonSerializer.Serialize(writer, WeightedSumValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfig.g.cs deleted file mode 100644 index 9335a95cc9c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfig.g.cs +++ /dev/null @@ -1,815 +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.MachineLearning; - -public sealed partial class AnalysisConfig -{ - /// - /// - /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. This value should be either a whole number of days or equate to a - /// whole number of buckets in one day. If the anomaly detection job uses a datafeed with aggregations, this value must also be divisible by the interval of the date histogram aggregation. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BucketSpan { get; set; } - - /// - /// - /// If categorization_field_name is specified, you can also define the analyzer that is used to interpret the categorization field. This property cannot be used at the same time as categorization_filters. The categorization analyzer specifies how the categorization_field is interpreted by the categorization process. The categorization_analyzer field can be specified either as a string or as an object. If it is a string, it must refer to a built-in analyzer or one added by another plugin. - /// - /// - [JsonInclude, JsonPropertyName("categorization_analyzer")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer? CategorizationAnalyzer { get; set; } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - [JsonInclude, JsonPropertyName("categorization_field_name")] - public Elastic.Clients.Elasticsearch.Serverless.Field? CategorizationFieldName { get; set; } - - /// - /// - /// If categorization_field_name is specified, you can also define optional filters. This property expects an array of regular expressions. The expressions are used to filter out matching sequences from the categorization field values. You can use this functionality to fine tune the categorization by excluding sequences from consideration when categories are defined. For example, you can exclude SQL statements that appear in your log files. This property cannot be used at the same time as categorization_analyzer. If you only want to define simple regular expression filters that are applied prior to tokenization, setting this property is the easiest method. If you also want to customize the tokenizer or post-tokenization filtering, use the categorization_analyzer property instead and include the filters as pattern_replace character filters. The effect is exactly the same. - /// - /// - [JsonInclude, JsonPropertyName("categorization_filters")] - public ICollection? CategorizationFilters { get; set; } - - /// - /// - /// Detector configuration objects specify which data fields a job analyzes. They also specify which analytical functions are used. You can specify multiple detectors for a job. If the detectors array does not contain at least one detector, no analysis can occur and an error is returned. - /// - /// - [JsonInclude, JsonPropertyName("detectors")] - public ICollection Detectors { get; set; } - - /// - /// - /// A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. - /// - /// - [JsonInclude, JsonPropertyName("influencers")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Influencers { get; set; } - - /// - /// - /// The size of the window in which to expect data that is out of time order. If you specify a non-zero value, it must be greater than or equal to one second. NOTE: Latency is applicable only when you send data by using the post data API. - /// - /// - [JsonInclude, JsonPropertyName("latency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Latency { get; set; } - - /// - /// - /// Advanced configuration option. Affects the pruning of models that have not been updated for the given time duration. The value must be set to a multiple of the bucket_span. If set too low, important information may be removed from the model. For jobs created in 8.1 and later, the default value is the greater of 30d or 20 times bucket_span. - /// - /// - [JsonInclude, JsonPropertyName("model_prune_window")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindow { get; set; } - - /// - /// - /// This functionality is reserved for internal use. It is not supported for use in customer environments and is not subject to the support SLA of official GA features. If set to true, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. For example, suppose CPU and memory usage on host A is usually highly correlated with the same metrics on host B. Perhaps this correlation occurs because they are running a load-balanced application. If you enable this property, anomalies will be reported when, for example, CPU usage on host A is high and the value of CPU usage on host B is low. That is to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU of host B. To use the multivariate_by_fields property, you must also specify by_field_name in your detector. - /// - /// - [JsonInclude, JsonPropertyName("multivariate_by_fields")] - public bool? MultivariateByFields { get; set; } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - [JsonInclude, JsonPropertyName("per_partition_categorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorization { get; set; } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - [JsonInclude, JsonPropertyName("summary_count_field_name")] - public Elastic.Clients.Elasticsearch.Serverless.Field? SummaryCountFieldName { get; set; } -} - -public sealed partial class AnalysisConfigDescriptor : SerializableDescriptor> -{ - internal AnalysisConfigDescriptor(Action> configure) => configure.Invoke(this); - - public AnalysisConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? BucketSpanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer? CategorizationAnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? CategorizationFieldNameValue { get; set; } - private ICollection? CategorizationFiltersValue { get; set; } - private ICollection DetectorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor DetectorsDescriptor { get; set; } - private Action> DetectorsDescriptorAction { get; set; } - private Action>[] DetectorsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? InfluencersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? LatencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindowValue { get; set; } - private bool? MultivariateByFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - private Action PerPartitionCategorizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SummaryCountFieldNameValue { get; set; } - - /// - /// - /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. This value should be either a whole number of days or equate to a - /// whole number of buckets in one day. If the anomaly detection job uses a datafeed with aggregations, this value must also be divisible by the interval of the date histogram aggregation. - /// - /// - public AnalysisConfigDescriptor BucketSpan(Elastic.Clients.Elasticsearch.Serverless.Duration? bucketSpan) - { - BucketSpanValue = bucketSpan; - return Self; - } - - /// - /// - /// If categorization_field_name is specified, you can also define the analyzer that is used to interpret the categorization field. This property cannot be used at the same time as categorization_filters. The categorization analyzer specifies how the categorization_field is interpreted by the categorization process. The categorization_analyzer field can be specified either as a string or as an object. If it is a string, it must refer to a built-in analyzer or one added by another plugin. - /// - /// - public AnalysisConfigDescriptor CategorizationAnalyzer(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer? categorizationAnalyzer) - { - CategorizationAnalyzerValue = categorizationAnalyzer; - return Self; - } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - public AnalysisConfigDescriptor CategorizationFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - /// - /// - /// If categorization_field_name is specified, you can also define optional filters. This property expects an array of regular expressions. The expressions are used to filter out matching sequences from the categorization field values. You can use this functionality to fine tune the categorization by excluding sequences from consideration when categories are defined. For example, you can exclude SQL statements that appear in your log files. This property cannot be used at the same time as categorization_analyzer. If you only want to define simple regular expression filters that are applied prior to tokenization, setting this property is the easiest method. If you also want to customize the tokenizer or post-tokenization filtering, use the categorization_analyzer property instead and include the filters as pattern_replace character filters. The effect is exactly the same. - /// - /// - public AnalysisConfigDescriptor CategorizationFilters(ICollection? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - /// - /// - /// Detector configuration objects specify which data fields a job analyzes. They also specify which analytical functions are used. You can specify multiple detectors for a job. If the detectors array does not contain at least one detector, no analysis can occur and an error is returned. - /// - /// - public AnalysisConfigDescriptor Detectors(ICollection detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public AnalysisConfigDescriptor Detectors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor Detectors(Action> configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public AnalysisConfigDescriptor Detectors(params Action>[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. - /// - /// - public AnalysisConfigDescriptor Influencers(Elastic.Clients.Elasticsearch.Serverless.Fields? influencers) - { - InfluencersValue = influencers; - return Self; - } - - /// - /// - /// The size of the window in which to expect data that is out of time order. If you specify a non-zero value, it must be greater than or equal to one second. NOTE: Latency is applicable only when you send data by using the post data API. - /// - /// - public AnalysisConfigDescriptor Latency(Elastic.Clients.Elasticsearch.Serverless.Duration? latency) - { - LatencyValue = latency; - return Self; - } - - /// - /// - /// Advanced configuration option. Affects the pruning of models that have not been updated for the given time duration. The value must be set to a multiple of the bucket_span. If set too low, important information may be removed from the model. For jobs created in 8.1 and later, the default value is the greater of 30d or 20 times bucket_span. - /// - /// - public AnalysisConfigDescriptor ModelPruneWindow(Elastic.Clients.Elasticsearch.Serverless.Duration? modelPruneWindow) - { - ModelPruneWindowValue = modelPruneWindow; - return Self; - } - - /// - /// - /// This functionality is reserved for internal use. It is not supported for use in customer environments and is not subject to the support SLA of official GA features. If set to true, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. For example, suppose CPU and memory usage on host A is usually highly correlated with the same metrics on host B. Perhaps this correlation occurs because they are running a load-balanced application. If you enable this property, anomalies will be reported when, for example, CPU usage on host A is high and the value of CPU usage on host B is low. That is to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU of host B. To use the multivariate_by_fields property, you must also specify by_field_name in your detector. - /// - /// - public AnalysisConfigDescriptor MultivariateByFields(bool? multivariateByFields = true) - { - MultivariateByFieldsValue = multivariateByFields; - return Self; - } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - public AnalysisConfigDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - public AnalysisConfigDescriptor SummaryCountFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketSpanValue is not null) - { - writer.WritePropertyName("bucket_span"); - JsonSerializer.Serialize(writer, BucketSpanValue, options); - } - - if (CategorizationAnalyzerValue is not null) - { - writer.WritePropertyName("categorization_analyzer"); - JsonSerializer.Serialize(writer, CategorizationAnalyzerValue, options); - } - - if (CategorizationFieldNameValue is not null) - { - writer.WritePropertyName("categorization_field_name"); - JsonSerializer.Serialize(writer, CategorizationFieldNameValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - if (InfluencersValue is not null) - { - writer.WritePropertyName("influencers"); - JsonSerializer.Serialize(writer, InfluencersValue, options); - } - - if (LatencyValue is not null) - { - writer.WritePropertyName("latency"); - JsonSerializer.Serialize(writer, LatencyValue, options); - } - - if (ModelPruneWindowValue is not null) - { - writer.WritePropertyName("model_prune_window"); - JsonSerializer.Serialize(writer, ModelPruneWindowValue, options); - } - - if (MultivariateByFieldsValue.HasValue) - { - writer.WritePropertyName("multivariate_by_fields"); - writer.WriteBooleanValue(MultivariateByFieldsValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (SummaryCountFieldNameValue is not null) - { - writer.WritePropertyName("summary_count_field_name"); - JsonSerializer.Serialize(writer, SummaryCountFieldNameValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class AnalysisConfigDescriptor : SerializableDescriptor -{ - internal AnalysisConfigDescriptor(Action configure) => configure.Invoke(this); - - public AnalysisConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? BucketSpanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer? CategorizationAnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? CategorizationFieldNameValue { get; set; } - private ICollection? CategorizationFiltersValue { get; set; } - private ICollection DetectorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor DetectorsDescriptor { get; set; } - private Action DetectorsDescriptorAction { get; set; } - private Action[] DetectorsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? InfluencersValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? LatencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindowValue { get; set; } - private bool? MultivariateByFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor PerPartitionCategorizationDescriptor { get; set; } - private Action PerPartitionCategorizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? SummaryCountFieldNameValue { get; set; } - - /// - /// - /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. This value should be either a whole number of days or equate to a - /// whole number of buckets in one day. If the anomaly detection job uses a datafeed with aggregations, this value must also be divisible by the interval of the date histogram aggregation. - /// - /// - public AnalysisConfigDescriptor BucketSpan(Elastic.Clients.Elasticsearch.Serverless.Duration? bucketSpan) - { - BucketSpanValue = bucketSpan; - return Self; - } - - /// - /// - /// If categorization_field_name is specified, you can also define the analyzer that is used to interpret the categorization field. This property cannot be used at the same time as categorization_filters. The categorization analyzer specifies how the categorization_field is interpreted by the categorization process. The categorization_analyzer field can be specified either as a string or as an object. If it is a string, it must refer to a built-in analyzer or one added by another plugin. - /// - /// - public AnalysisConfigDescriptor CategorizationAnalyzer(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer? categorizationAnalyzer) - { - CategorizationAnalyzerValue = categorizationAnalyzer; - return Self; - } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - public AnalysisConfigDescriptor CategorizationFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - public AnalysisConfigDescriptor CategorizationFieldName(Expression> categorizationFieldName) - { - CategorizationFieldNameValue = categorizationFieldName; - return Self; - } - - /// - /// - /// If categorization_field_name is specified, you can also define optional filters. This property expects an array of regular expressions. The expressions are used to filter out matching sequences from the categorization field values. You can use this functionality to fine tune the categorization by excluding sequences from consideration when categories are defined. For example, you can exclude SQL statements that appear in your log files. This property cannot be used at the same time as categorization_analyzer. If you only want to define simple regular expression filters that are applied prior to tokenization, setting this property is the easiest method. If you also want to customize the tokenizer or post-tokenization filtering, use the categorization_analyzer property instead and include the filters as pattern_replace character filters. The effect is exactly the same. - /// - /// - public AnalysisConfigDescriptor CategorizationFilters(ICollection? categorizationFilters) - { - CategorizationFiltersValue = categorizationFilters; - return Self; - } - - /// - /// - /// Detector configuration objects specify which data fields a job analyzes. They also specify which analytical functions are used. You can specify multiple detectors for a job. If the detectors array does not contain at least one detector, no analysis can occur and an error is returned. - /// - /// - public AnalysisConfigDescriptor Detectors(ICollection detectors) - { - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsValue = detectors; - return Self; - } - - public AnalysisConfigDescriptor Detectors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor descriptor) - { - DetectorsValue = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = null; - DetectorsDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor Detectors(Action configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorActions = null; - DetectorsDescriptorAction = configure; - return Self; - } - - public AnalysisConfigDescriptor Detectors(params Action[] configure) - { - DetectorsValue = null; - DetectorsDescriptor = null; - DetectorsDescriptorAction = null; - DetectorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. - /// - /// - public AnalysisConfigDescriptor Influencers(Elastic.Clients.Elasticsearch.Serverless.Fields? influencers) - { - InfluencersValue = influencers; - return Self; - } - - /// - /// - /// The size of the window in which to expect data that is out of time order. If you specify a non-zero value, it must be greater than or equal to one second. NOTE: Latency is applicable only when you send data by using the post data API. - /// - /// - public AnalysisConfigDescriptor Latency(Elastic.Clients.Elasticsearch.Serverless.Duration? latency) - { - LatencyValue = latency; - return Self; - } - - /// - /// - /// Advanced configuration option. Affects the pruning of models that have not been updated for the given time duration. The value must be set to a multiple of the bucket_span. If set too low, important information may be removed from the model. For jobs created in 8.1 and later, the default value is the greater of 30d or 20 times bucket_span. - /// - /// - public AnalysisConfigDescriptor ModelPruneWindow(Elastic.Clients.Elasticsearch.Serverless.Duration? modelPruneWindow) - { - ModelPruneWindowValue = modelPruneWindow; - return Self; - } - - /// - /// - /// This functionality is reserved for internal use. It is not supported for use in customer environments and is not subject to the support SLA of official GA features. If set to true, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. For example, suppose CPU and memory usage on host A is usually highly correlated with the same metrics on host B. Perhaps this correlation occurs because they are running a load-balanced application. If you enable this property, anomalies will be reported when, for example, CPU usage on host A is high and the value of CPU usage on host B is low. That is to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU of host B. To use the multivariate_by_fields property, you must also specify by_field_name in your detector. - /// - /// - public AnalysisConfigDescriptor MultivariateByFields(bool? multivariateByFields = true) - { - MultivariateByFieldsValue = multivariateByFields; - return Self; - } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - public AnalysisConfigDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? perPartitionCategorization) - { - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationValue = perPartitionCategorization; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor descriptor) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptorAction = null; - PerPartitionCategorizationDescriptor = descriptor; - return Self; - } - - public AnalysisConfigDescriptor PerPartitionCategorization(Action configure) - { - PerPartitionCategorizationValue = null; - PerPartitionCategorizationDescriptor = null; - PerPartitionCategorizationDescriptorAction = configure; - return Self; - } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - public AnalysisConfigDescriptor SummaryCountFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. - /// - /// - public AnalysisConfigDescriptor SummaryCountFieldName(Expression> summaryCountFieldName) - { - SummaryCountFieldNameValue = summaryCountFieldName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BucketSpanValue is not null) - { - writer.WritePropertyName("bucket_span"); - JsonSerializer.Serialize(writer, BucketSpanValue, options); - } - - if (CategorizationAnalyzerValue is not null) - { - writer.WritePropertyName("categorization_analyzer"); - JsonSerializer.Serialize(writer, CategorizationAnalyzerValue, options); - } - - if (CategorizationFieldNameValue is not null) - { - writer.WritePropertyName("categorization_field_name"); - JsonSerializer.Serialize(writer, CategorizationFieldNameValue, options); - } - - if (CategorizationFiltersValue is not null) - { - writer.WritePropertyName("categorization_filters"); - JsonSerializer.Serialize(writer, CategorizationFiltersValue, options); - } - - if (DetectorsDescriptor is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DetectorsDescriptor, options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorAction is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor(DetectorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DetectorsDescriptorActions is not null) - { - writer.WritePropertyName("detectors"); - writer.WriteStartArray(); - foreach (var action in DetectorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("detectors"); - JsonSerializer.Serialize(writer, DetectorsValue, options); - } - - if (InfluencersValue is not null) - { - writer.WritePropertyName("influencers"); - JsonSerializer.Serialize(writer, InfluencersValue, options); - } - - if (LatencyValue is not null) - { - writer.WritePropertyName("latency"); - JsonSerializer.Serialize(writer, LatencyValue, options); - } - - if (ModelPruneWindowValue is not null) - { - writer.WritePropertyName("model_prune_window"); - JsonSerializer.Serialize(writer, ModelPruneWindowValue, options); - } - - if (MultivariateByFieldsValue.HasValue) - { - writer.WritePropertyName("multivariate_by_fields"); - writer.WriteBooleanValue(MultivariateByFieldsValue.Value); - } - - if (PerPartitionCategorizationDescriptor is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationDescriptor, options); - } - else if (PerPartitionCategorizationDescriptorAction is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorizationDescriptor(PerPartitionCategorizationDescriptorAction), options); - } - else if (PerPartitionCategorizationValue is not null) - { - writer.WritePropertyName("per_partition_categorization"); - JsonSerializer.Serialize(writer, PerPartitionCategorizationValue, options); - } - - if (SummaryCountFieldNameValue is not null) - { - writer.WritePropertyName("summary_count_field_name"); - JsonSerializer.Serialize(writer, SummaryCountFieldNameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs deleted file mode 100644 index daa30381300..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs +++ /dev/null @@ -1,142 +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.MachineLearning; - -public sealed partial class AnalysisConfigRead -{ - /// - /// - /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public Elastic.Clients.Elasticsearch.Serverless.Duration BucketSpan { get; init; } - - /// - /// - /// If categorization_field_name is specified, you can also define the analyzer that is used to interpret the categorization field. - /// This property cannot be used at the same time as categorization_filters. - /// The categorization analyzer specifies how the categorization_field is interpreted by the categorization process. - /// - /// - [JsonInclude, JsonPropertyName("categorization_analyzer")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer? CategorizationAnalyzer { get; init; } - - /// - /// - /// If this property is specified, the values of the specified field will be categorized. - /// The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. - /// - /// - [JsonInclude, JsonPropertyName("categorization_field_name")] - public string? CategorizationFieldName { get; init; } - - /// - /// - /// If categorization_field_name is specified, you can also define optional filters. - /// This property expects an array of regular expressions. - /// The expressions are used to filter out matching sequences from the categorization field values. - /// - /// - [JsonInclude, JsonPropertyName("categorization_filters")] - public IReadOnlyCollection? CategorizationFilters { get; init; } - - /// - /// - /// An array of detector configuration objects. - /// Detector configuration objects specify which data fields a job analyzes. - /// They also specify which analytical functions are used. - /// You can specify multiple detectors for a job. - /// - /// - [JsonInclude, JsonPropertyName("detectors")] - public IReadOnlyCollection Detectors { get; init; } - - /// - /// - /// A comma separated list of influencer field names. - /// Typically these can be the by, over, or partition fields that are used in the detector configuration. - /// You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. - /// When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. - /// - /// - [JsonInclude, JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } - - /// - /// - /// The size of the window in which to expect data that is out of time order. - /// Defaults to no latency. - /// If you specify a non-zero value, it must be greater than or equal to one second. - /// - /// - [JsonInclude, JsonPropertyName("latency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Latency { get; init; } - - /// - /// - /// Advanced configuration option. - /// Affects the pruning of models that have not been updated for the given time duration. - /// The value must be set to a multiple of the bucket_span. - /// If set too low, important information may be removed from the model. - /// Typically, set to 30d or longer. - /// If not set, model pruning only occurs if the model memory status reaches the soft limit or the hard limit. - /// For jobs created in 8.1 and later, the default value is the greater of 30d or 20 times bucket_span. - /// - /// - [JsonInclude, JsonPropertyName("model_prune_window")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ModelPruneWindow { get; init; } - - /// - /// - /// This functionality is reserved for internal use. - /// It is not supported for use in customer environments and is not subject to the support SLA of official GA features. - /// If set to true, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. - /// - /// - [JsonInclude, JsonPropertyName("multivariate_by_fields")] - public bool? MultivariateByFields { get; init; } - - /// - /// - /// Settings related to how categorization interacts with partition fields. - /// - /// - [JsonInclude, JsonPropertyName("per_partition_categorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PerPartitionCategorization? PerPartitionCategorization { get; init; } - - /// - /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. - /// This property value is the name of the field that contains the count of raw data points that have been summarized. - /// The same summary_count_field_name applies to all detectors in the job. - /// - /// - [JsonInclude, JsonPropertyName("summary_count_field_name")] - public string? SummaryCountFieldName { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs deleted file mode 100644 index 2f42117df7a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisLimits.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class AnalysisLimits -{ - /// - /// - /// The maximum number of examples stored per category in memory and in the results data store. If you increase this value, more examples are available, however it requires that you have more storage available. If you set this value to 0, no examples are stored. NOTE: The categorization_examples_limit applies only to analysis that uses categorization. - /// - /// - [JsonInclude, JsonPropertyName("categorization_examples_limit")] - public long? CategorizationExamplesLimit { get; set; } - - /// - /// - /// The approximate maximum amount of memory resources that are required for analytical processing. Once this limit is approached, data pruning becomes more aggressive. Upon exceeding this limit, new entities are not modeled. If the xpack.ml.max_model_memory_limit setting has a value greater than 0 and less than 1024mb, that value is used instead of the default. The default value is relatively small to ensure that high resource usage is a conscious decision. If you have jobs that are expected to analyze high cardinality fields, you will likely need to use a higher value. If you specify a number instead of a string, the units are assumed to be MiB. Specifying a string is recommended for clarity. If you specify a byte size unit of b or kb and the number does not equate to a discrete number of megabytes, it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you specify a value less than 1 MiB, an error occurs. If you specify a value for the xpack.ml.max_model_memory_limit setting, an error occurs when you try to create jobs that have model_memory_limit values greater than that setting value. - /// - /// - [JsonInclude, JsonPropertyName("model_memory_limit")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelMemoryLimit { get; set; } -} - -public sealed partial class AnalysisLimitsDescriptor : SerializableDescriptor -{ - internal AnalysisLimitsDescriptor(Action configure) => configure.Invoke(this); - - public AnalysisLimitsDescriptor() : base() - { - } - - private long? CategorizationExamplesLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelMemoryLimitValue { get; set; } - - /// - /// - /// The maximum number of examples stored per category in memory and in the results data store. If you increase this value, more examples are available, however it requires that you have more storage available. If you set this value to 0, no examples are stored. NOTE: The categorization_examples_limit applies only to analysis that uses categorization. - /// - /// - public AnalysisLimitsDescriptor CategorizationExamplesLimit(long? categorizationExamplesLimit) - { - CategorizationExamplesLimitValue = categorizationExamplesLimit; - return Self; - } - - /// - /// - /// The approximate maximum amount of memory resources that are required for analytical processing. Once this limit is approached, data pruning becomes more aggressive. Upon exceeding this limit, new entities are not modeled. If the xpack.ml.max_model_memory_limit setting has a value greater than 0 and less than 1024mb, that value is used instead of the default. The default value is relatively small to ensure that high resource usage is a conscious decision. If you have jobs that are expected to analyze high cardinality fields, you will likely need to use a higher value. If you specify a number instead of a string, the units are assumed to be MiB. Specifying a string is recommended for clarity. If you specify a byte size unit of b or kb and the number does not equate to a discrete number of megabytes, it is rounded down to the closest MiB. The minimum valid value is 1 MiB. If you specify a value less than 1 MiB, an error occurs. If you specify a value for the xpack.ml.max_model_memory_limit setting, an error occurs when you try to create jobs that have model_memory_limit values greater than that setting value. - /// - /// - public AnalysisLimitsDescriptor ModelMemoryLimit(Elastic.Clients.Elasticsearch.Serverless.ByteSize? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CategorizationExamplesLimitValue.HasValue) - { - writer.WritePropertyName("categorization_examples_limit"); - writer.WriteNumberValue(CategorizationExamplesLimitValue.Value); - } - - if (ModelMemoryLimitValue is not null) - { - writer.WritePropertyName("model_memory_limit"); - JsonSerializer.Serialize(writer, ModelMemoryLimitValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs deleted file mode 100644 index 5a66ccef7e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnalysisMemoryLimit.g.cs +++ /dev/null @@ -1,69 +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.MachineLearning; - -public sealed partial class AnalysisMemoryLimit -{ - /// - /// - /// Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes. - /// - /// - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; set; } -} - -public sealed partial class AnalysisMemoryLimitDescriptor : SerializableDescriptor -{ - internal AnalysisMemoryLimitDescriptor(Action configure) => configure.Invoke(this); - - public AnalysisMemoryLimitDescriptor() : base() - { - } - - private string ModelMemoryLimitValue { get; set; } - - /// - /// - /// Limits can be applied for the resources required to hold the mathematical models in memory. These limits are approximate and can be set per job. They do not control the memory used by other processes, for example the Elasticsearch Java processes. - /// - /// - public AnalysisMemoryLimitDescriptor ModelMemoryLimit(string modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Anomaly.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Anomaly.g.cs deleted file mode 100644 index 088efbe19a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Anomaly.g.cs +++ /dev/null @@ -1,223 +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.MachineLearning; - -public sealed partial class Anomaly -{ - /// - /// - /// The actual value for the bucket. - /// - /// - [JsonInclude, JsonPropertyName("actual")] - public IReadOnlyCollection? Actual { get; init; } - - /// - /// - /// Information about the factors impacting the initial anomaly score. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_score_explanation")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnomalyExplanation? AnomalyScoreExplanation { get; init; } - - /// - /// - /// The length of the bucket in seconds. This value matches the bucket_span that is specified in the job. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - [JsonInclude, JsonPropertyName("by_field_name")] - public string? ByFieldName { get; init; } - - /// - /// - /// The value of by_field_name. - /// - /// - [JsonInclude, JsonPropertyName("by_field_value")] - public string? ByFieldValue { get; init; } - - /// - /// - /// For population analysis, an over field must be specified in the detector. This property contains an array of anomaly records that are the causes for the anomaly that has been identified for the over field. This sub-resource contains the most anomalous records for the over_field_name. For scalability reasons, a maximum of the 10 most significant causes of the anomaly are returned. As part of the core analytical modeling, these low-level anomaly records are aggregated for their parent over field record. The causes resource contains similar elements to the record resource, namely actual, typical, geo_results.actual_point, geo_results.typical_point, *_field_name and *_field_value. Probability and scores are not applicable to causes. - /// - /// - [JsonInclude, JsonPropertyName("causes")] - public IReadOnlyCollection? Causes { get; init; } - - /// - /// - /// A unique identifier for the detector. - /// - /// - [JsonInclude, JsonPropertyName("detector_index")] - public int DetectorIndex { get; init; } - - /// - /// - /// Certain functions require a field to operate on, for example, sum(). For those functions, this value is the name of the field to be analyzed. - /// - /// - [JsonInclude, JsonPropertyName("field_name")] - public string? FieldName { get; init; } - - /// - /// - /// The function in which the anomaly occurs, as specified in the detector configuration. For example, max. - /// - /// - [JsonInclude, JsonPropertyName("function")] - public string? Function { get; init; } - - /// - /// - /// The description of the function in which the anomaly occurs, as specified in the detector configuration. - /// - /// - [JsonInclude, JsonPropertyName("function_description")] - public string? FunctionDescription { get; init; } - - /// - /// - /// If the detector function is lat_long, this object contains comma delimited strings for the latitude and longitude of the actual and typical values. - /// - /// - [JsonInclude, JsonPropertyName("geo_results")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.GeoResults? GeoResults { get; init; } - - /// - /// - /// If influencers were specified in the detector configuration, this array contains influencers that contributed to or were to blame for an anomaly. - /// - /// - [JsonInclude, JsonPropertyName("influencers")] - public IReadOnlyCollection? Influencers { get; init; } - - /// - /// - /// A normalized score between 0-100, which is based on the probability of the anomalousness of this record. This is the initial value that was calculated at the time the bucket was processed. - /// - /// - [JsonInclude, JsonPropertyName("initial_record_score")] - public double InitialRecordScore { get; init; } - - /// - /// - /// If true, this is an interim result. In other words, the results are calculated based on partial input data. - /// - /// - [JsonInclude, JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - [JsonInclude, JsonPropertyName("over_field_name")] - public string? OverFieldName { get; init; } - - /// - /// - /// The value of over_field_name. - /// - /// - [JsonInclude, JsonPropertyName("over_field_value")] - public string? OverFieldValue { get; init; } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - [JsonInclude, JsonPropertyName("partition_field_name")] - public string? PartitionFieldName { get; init; } - - /// - /// - /// The value of partition_field_name. - /// - /// - [JsonInclude, JsonPropertyName("partition_field_value")] - public string? PartitionFieldValue { get; init; } - - /// - /// - /// The probability of the individual anomaly occurring, in the range 0 to 1. For example, 0.0000772031. This value can be held to a high precision of over 300 decimal places, so the record_score is provided as a human-readable and friendly interpretation of this. - /// - /// - [JsonInclude, JsonPropertyName("probability")] - public double Probability { get; init; } - - /// - /// - /// A normalized score between 0-100, which is based on the probability of the anomalousness of this record. Unlike initial_record_score, this value will be updated by a re-normalization process as new data is analyzed. - /// - /// - [JsonInclude, JsonPropertyName("record_score")] - public double RecordScore { get; init; } - - /// - /// - /// Internal. This is always set to record. - /// - /// - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - - /// - /// - /// The start time of the bucket for which these results were calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - - /// - /// - /// The typical value for the bucket, according to analytical modeling. - /// - /// - [JsonInclude, JsonPropertyName("typical")] - public IReadOnlyCollection? Typical { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyCause.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyCause.g.cs deleted file mode 100644 index f6be27c0c37..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyCause.g.cs +++ /dev/null @@ -1,60 +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.MachineLearning; - -public sealed partial class AnomalyCause -{ - [JsonInclude, JsonPropertyName("actual")] - public IReadOnlyCollection Actual { get; init; } - [JsonInclude, JsonPropertyName("by_field_name")] - public string ByFieldName { get; init; } - [JsonInclude, JsonPropertyName("by_field_value")] - public string ByFieldValue { get; init; } - [JsonInclude, JsonPropertyName("correlated_by_field_value")] - public string CorrelatedByFieldValue { get; init; } - [JsonInclude, JsonPropertyName("field_name")] - public string FieldName { get; init; } - [JsonInclude, JsonPropertyName("function")] - public string Function { get; init; } - [JsonInclude, JsonPropertyName("function_description")] - public string FunctionDescription { get; init; } - [JsonInclude, JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } - [JsonInclude, JsonPropertyName("over_field_name")] - public string OverFieldName { get; init; } - [JsonInclude, JsonPropertyName("over_field_value")] - public string OverFieldValue { get; init; } - [JsonInclude, JsonPropertyName("partition_field_name")] - public string PartitionFieldName { get; init; } - [JsonInclude, JsonPropertyName("partition_field_value")] - public string PartitionFieldValue { get; init; } - [JsonInclude, JsonPropertyName("probability")] - public double Probability { get; init; } - [JsonInclude, JsonPropertyName("typical")] - public IReadOnlyCollection Typical { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs deleted file mode 100644 index cbea71ec7ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyDetectors.g.cs +++ /dev/null @@ -1,42 +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.MachineLearning; - -public sealed partial class AnomalyDetectors -{ - [JsonInclude, JsonPropertyName("categorization_analyzer")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzer CategorizationAnalyzer { get; init; } - [JsonInclude, JsonPropertyName("categorization_examples_limit")] - public int CategorizationExamplesLimit { get; init; } - [JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")] - public int DailyModelSnapshotRetentionAfterDays { get; init; } - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string ModelMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public int ModelSnapshotRetentionDays { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyExplanation.g.cs deleted file mode 100644 index 84be9c2d3c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/AnomalyExplanation.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.MachineLearning; - -public sealed partial class AnomalyExplanation -{ - /// - /// - /// Impact from the duration and magnitude of the detected anomaly relative to the historical average. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_characteristics_impact")] - public int? AnomalyCharacteristicsImpact { get; init; } - - /// - /// - /// Length of the detected anomaly in the number of buckets. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_length")] - public int? AnomalyLength { get; init; } - - /// - /// - /// Type of the detected anomaly: spike or dip. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_type")] - public string? AnomalyType { get; init; } - - /// - /// - /// Indicates reduction of anomaly score for the bucket with large confidence intervals. If a bucket has large confidence intervals, the score is reduced. - /// - /// - [JsonInclude, JsonPropertyName("high_variance_penalty")] - public bool? HighVariancePenalty { get; init; } - - /// - /// - /// If the bucket contains fewer samples than expected, the score is reduced. - /// - /// - [JsonInclude, JsonPropertyName("incomplete_bucket_penalty")] - public bool? IncompleteBucketPenalty { get; init; } - - /// - /// - /// Lower bound of the 95% confidence interval. - /// - /// - [JsonInclude, JsonPropertyName("lower_confidence_bound")] - public double? LowerConfidenceBound { get; init; } - - /// - /// - /// Impact of the deviation between actual and typical values in the past 12 buckets. - /// - /// - [JsonInclude, JsonPropertyName("multi_bucket_impact")] - public int? MultiBucketImpact { get; init; } - - /// - /// - /// Impact of the deviation between actual and typical values in the current bucket. - /// - /// - [JsonInclude, JsonPropertyName("single_bucket_impact")] - public int? SingleBucketImpact { get; init; } - - /// - /// - /// Typical (expected) value for this bucket. - /// - /// - [JsonInclude, JsonPropertyName("typical_value")] - public double? TypicalValue { get; init; } - - /// - /// - /// Upper bound of the 95% confidence interval. - /// - /// - [JsonInclude, JsonPropertyName("upper_confidence_bound")] - public double? UpperConfidenceBound { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs deleted file mode 100644 index 642af49f7fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ApiKeyAuthorization.g.cs +++ /dev/null @@ -1,47 +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.MachineLearning; - -public sealed partial class ApiKeyAuthorization -{ - /// - /// - /// The identifier for the API key. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// The name of the API key. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketInfluencer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketInfluencer.g.cs deleted file mode 100644 index 1cb782fb7fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketInfluencer.g.cs +++ /dev/null @@ -1,123 +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.MachineLearning; - -public sealed partial class BucketInfluencer -{ - /// - /// - /// A normalized score between 0-100, which is calculated for each bucket influencer. This score might be updated as - /// newer data is analyzed. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_score")] - public double AnomalyScore { get; init; } - - /// - /// - /// The length of the bucket in seconds. This value matches the bucket span that is specified in the job. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - /// - /// - /// The field name of the influencer. - /// - /// - [JsonInclude, JsonPropertyName("influencer_field_name")] - public string InfluencerFieldName { get; init; } - - /// - /// - /// The score between 0-100 for each bucket influencer. This score is the initial value that was calculated at the - /// time the bucket was processed. - /// - /// - [JsonInclude, JsonPropertyName("initial_anomaly_score")] - public double InitialAnomalyScore { get; init; } - - /// - /// - /// If true, this is an interim result. In other words, the results are calculated based on partial input data. - /// - /// - [JsonInclude, JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The probability that the bucket has this behavior, in the range 0 to 1. This value can be held to a high precision - /// of over 300 decimal places, so the anomaly_score is provided as a human-readable and friendly interpretation of - /// this. - /// - /// - [JsonInclude, JsonPropertyName("probability")] - public double Probability { get; init; } - - /// - /// - /// Internal. - /// - /// - [JsonInclude, JsonPropertyName("raw_anomaly_score")] - public double RawAnomalyScore { get; init; } - - /// - /// - /// Internal. This value is always set to bucket_influencer. - /// - /// - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - - /// - /// - /// The start time of the bucket for which these results were calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - - /// - /// - /// The start time of the bucket for which these results were calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp_string")] - public DateTimeOffset? TimestampString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketSummary.g.cs deleted file mode 100644 index 3b10161130f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/BucketSummary.g.cs +++ /dev/null @@ -1,118 +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.MachineLearning; - -public sealed partial class BucketSummary -{ - /// - /// - /// The maximum anomaly score, between 0-100, for any of the bucket influencers. This is an overall, rate-limited - /// score for the job. All the anomaly records in the bucket contribute to this score. This value might be updated as - /// new data is analyzed. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_score")] - public double AnomalyScore { get; init; } - [JsonInclude, JsonPropertyName("bucket_influencers")] - public IReadOnlyCollection BucketInfluencers { get; init; } - - /// - /// - /// The length of the bucket in seconds. This value matches the bucket span that is specified in the job. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - /// - /// - /// The number of input data records processed in this bucket. - /// - /// - [JsonInclude, JsonPropertyName("event_count")] - public long EventCount { get; init; } - - /// - /// - /// The maximum anomaly score for any of the bucket influencers. This is the initial value that was calculated at the - /// time the bucket was processed. - /// - /// - [JsonInclude, JsonPropertyName("initial_anomaly_score")] - public double InitialAnomalyScore { get; init; } - - /// - /// - /// If true, this is an interim result. In other words, the results are calculated based on partial input data. - /// - /// - [JsonInclude, JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The amount of time, in milliseconds, that it took to analyze the bucket contents and calculate results. - /// - /// - [JsonInclude, JsonPropertyName("processing_time_ms")] - public long ProcessingTimeMs { get; init; } - - /// - /// - /// Internal. This value is always set to bucket. - /// - /// - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - - /// - /// - /// The start time of the bucket. This timestamp uniquely identifies the bucket. Events that occur exactly at the - /// timestamp of the bucket are included in the results for the bucket. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - - /// - /// - /// The start time of the bucket. This timestamp uniquely identifies the bucket. Events that occur exactly at the - /// timestamp of the bucket are included in the results for the bucket. - /// - /// - [JsonInclude, JsonPropertyName("timestamp_string")] - public DateTimeOffset? TimestampString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Calendar.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Calendar.g.cs deleted file mode 100644 index bd02e5c5c7a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Calendar.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class Calendar -{ - /// - /// - /// A string that uniquely identifies a calendar. - /// - /// - [JsonInclude, JsonPropertyName("calendar_id")] - public string CalendarId { get; init; } - - /// - /// - /// A description of the calendar. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// An array of anomaly detection job identifiers. - /// - /// - [JsonInclude, JsonPropertyName("job_ids")] - public IReadOnlyCollection JobIds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs deleted file mode 100644 index 1adb1897de4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CalendarEvent.g.cs +++ /dev/null @@ -1,232 +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.MachineLearning; - -public sealed partial class CalendarEvent -{ - /// - /// - /// A string that uniquely identifies a calendar. - /// - /// - [JsonInclude, JsonPropertyName("calendar_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? CalendarId { get; set; } - - /// - /// - /// A description of the scheduled event. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string Description { get; set; } - - /// - /// - /// The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format. - /// - /// - [JsonInclude, JsonPropertyName("end_time")] - public DateTimeOffset EndTime { get; set; } - [JsonInclude, JsonPropertyName("event_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? EventId { get; set; } - - /// - /// - /// Shift time by this many seconds. For example adjust time for daylight savings changes - /// - /// - [JsonInclude, JsonPropertyName("force_time_shift")] - public int? ForceTimeShift { get; set; } - - /// - /// - /// When true the model will not be updated for this calendar period. - /// - /// - [JsonInclude, JsonPropertyName("skip_model_update")] - public bool? SkipModelUpdate { get; set; } - - /// - /// - /// When true the model will not create results for this calendar period. - /// - /// - [JsonInclude, JsonPropertyName("skip_result")] - public bool? SkipResult { get; set; } - - /// - /// - /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. - /// - /// - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset StartTime { get; set; } -} - -public sealed partial class CalendarEventDescriptor : SerializableDescriptor -{ - internal CalendarEventDescriptor(Action configure) => configure.Invoke(this); - - public CalendarEventDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id? CalendarIdValue { get; set; } - private string DescriptionValue { get; set; } - private DateTimeOffset EndTimeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? EventIdValue { get; set; } - private int? ForceTimeShiftValue { get; set; } - private bool? SkipModelUpdateValue { get; set; } - private bool? SkipResultValue { get; set; } - private DateTimeOffset StartTimeValue { get; set; } - - /// - /// - /// A string that uniquely identifies a calendar. - /// - /// - public CalendarEventDescriptor CalendarId(Elastic.Clients.Elasticsearch.Serverless.Id? calendarId) - { - CalendarIdValue = calendarId; - return Self; - } - - /// - /// - /// A description of the scheduled event. - /// - /// - public CalendarEventDescriptor Description(string description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// The timestamp for the end of the scheduled event in milliseconds since the epoch or ISO 8601 format. - /// - /// - public CalendarEventDescriptor EndTime(DateTimeOffset endTime) - { - EndTimeValue = endTime; - return Self; - } - - public CalendarEventDescriptor EventId(Elastic.Clients.Elasticsearch.Serverless.Id? eventId) - { - EventIdValue = eventId; - return Self; - } - - /// - /// - /// Shift time by this many seconds. For example adjust time for daylight savings changes - /// - /// - public CalendarEventDescriptor ForceTimeShift(int? forceTimeShift) - { - ForceTimeShiftValue = forceTimeShift; - return Self; - } - - /// - /// - /// When true the model will not be updated for this calendar period. - /// - /// - public CalendarEventDescriptor SkipModelUpdate(bool? skipModelUpdate = true) - { - SkipModelUpdateValue = skipModelUpdate; - return Self; - } - - /// - /// - /// When true the model will not create results for this calendar period. - /// - /// - public CalendarEventDescriptor SkipResult(bool? skipResult = true) - { - SkipResultValue = skipResult; - return Self; - } - - /// - /// - /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. - /// - /// - public CalendarEventDescriptor StartTime(DateTimeOffset startTime) - { - StartTimeValue = startTime; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CalendarIdValue is not null) - { - writer.WritePropertyName("calendar_id"); - JsonSerializer.Serialize(writer, CalendarIdValue, options); - } - - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - writer.WritePropertyName("end_time"); - JsonSerializer.Serialize(writer, EndTimeValue, options); - if (EventIdValue is not null) - { - writer.WritePropertyName("event_id"); - JsonSerializer.Serialize(writer, EventIdValue, options); - } - - if (ForceTimeShiftValue.HasValue) - { - writer.WritePropertyName("force_time_shift"); - writer.WriteNumberValue(ForceTimeShiftValue.Value); - } - - if (SkipModelUpdateValue.HasValue) - { - writer.WritePropertyName("skip_model_update"); - writer.WriteBooleanValue(SkipModelUpdateValue.Value); - } - - if (SkipResultValue.HasValue) - { - writer.WritePropertyName("skip_result"); - writer.WriteBooleanValue(SkipResultValue.Value); - } - - writer.WritePropertyName("start_time"); - JsonSerializer.Serialize(writer, StartTimeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzer.g.cs deleted file mode 100644 index 9f2dfeb68df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzer.g.cs +++ /dev/null @@ -1,42 +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.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.MachineLearning; - -public sealed partial class CategorizationAnalyzer : Union -{ - public CategorizationAnalyzer(string Name) : base(Name) - { - } - - public CategorizationAnalyzer(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationAnalyzerDefinition Definition) : base(Definition) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs deleted file mode 100644 index f52a8cc6d7a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/CategorizationAnalyzerDefinition.g.cs +++ /dev/null @@ -1,125 +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.MachineLearning; - -public sealed partial class CategorizationAnalyzerDefinition -{ - /// - /// - /// One or more character filters. In addition to the built-in character filters, other plugins can provide more character filters. If this property is not specified, no character filters are applied prior to categorization. If you are customizing some other aspect of the analyzer and you need to achieve the equivalent of categorization_filters (which are not permitted when some other aspect of the analyzer is customized), add them here as pattern replace character filters. - /// - /// - [JsonInclude, JsonPropertyName("char_filter")] - public ICollection? CharFilter { get; set; } - - /// - /// - /// One or more token filters. In addition to the built-in token filters, other plugins can provide more token filters. If this property is not specified, no token filters are applied prior to categorization. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public ICollection? Filter { get; set; } - - /// - /// - /// The name or definition of the tokenizer to use after character filters are applied. This property is compulsory if categorization_analyzer is specified as an object. Machine learning provides a tokenizer called ml_standard that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. If you want to use that tokenizer but change the character or token filters, specify "tokenizer": "ml_standard" in your categorization_analyzer. Additionally, the ml_classic tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2). ml_classic was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify "tokenizer": "ml_classic" in your categorization_analyzer. - /// - /// - [JsonInclude, JsonPropertyName("tokenizer")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? Tokenizer { get; set; } -} - -public sealed partial class CategorizationAnalyzerDefinitionDescriptor : SerializableDescriptor -{ - internal CategorizationAnalyzerDefinitionDescriptor(Action configure) => configure.Invoke(this); - - public CategorizationAnalyzerDefinitionDescriptor() : base() - { - } - - private ICollection? CharFilterValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? TokenizerValue { get; set; } - - /// - /// - /// One or more character filters. In addition to the built-in character filters, other plugins can provide more character filters. If this property is not specified, no character filters are applied prior to categorization. If you are customizing some other aspect of the analyzer and you need to achieve the equivalent of categorization_filters (which are not permitted when some other aspect of the analyzer is customized), add them here as pattern replace character filters. - /// - /// - public CategorizationAnalyzerDefinitionDescriptor CharFilter(ICollection? charFilter) - { - CharFilterValue = charFilter; - return Self; - } - - /// - /// - /// One or more token filters. In addition to the built-in token filters, other plugins can provide more token filters. If this property is not specified, no token filters are applied prior to categorization. - /// - /// - public CategorizationAnalyzerDefinitionDescriptor Filter(ICollection? filter) - { - FilterValue = filter; - return Self; - } - - /// - /// - /// The name or definition of the tokenizer to use after character filters are applied. This property is compulsory if categorization_analyzer is specified as an object. Machine learning provides a tokenizer called ml_standard that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English. If you want to use that tokenizer but change the character or token filters, specify "tokenizer": "ml_standard" in your categorization_analyzer. Additionally, the ml_classic tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2). ml_classic was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify "tokenizer": "ml_classic" in your categorization_analyzer. - /// - /// - public CategorizationAnalyzerDefinitionDescriptor Tokenizer(Elastic.Clients.Elasticsearch.Serverless.Analysis.ITokenizer? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CharFilterValue is not null) - { - writer.WritePropertyName("char_filter"); - JsonSerializer.Serialize(writer, CharFilterValue, options); - } - - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (TokenizerValue is not null) - { - writer.WritePropertyName("tokenizer"); - JsonSerializer.Serialize(writer, TokenizerValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Category.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Category.g.cs deleted file mode 100644 index 6dc0faf00f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Category.g.cs +++ /dev/null @@ -1,125 +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.MachineLearning; - -public sealed partial class Category -{ - /// - /// - /// A unique identifier for the category. category_id is unique at the job level, even when per-partition categorization is enabled. - /// - /// - [JsonInclude, JsonPropertyName("category_id")] - public long CategoryId { get; init; } - - /// - /// - /// A list of examples of actual values that matched the category. - /// - /// - [JsonInclude, JsonPropertyName("examples")] - public IReadOnlyCollection Examples { get; init; } - - /// - /// - /// [experimental] A Grok pattern that could be used in Logstash or an ingest pipeline to extract fields from messages that match the category. This field is experimental and may be changed or removed in a future release. The Grok patterns that are found are not optimal, but are often a good starting point for manual tweaking. - /// - /// - [JsonInclude, JsonPropertyName("grok_pattern")] - public string? GrokPattern { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The maximum length of the fields that matched the category. The value is increased by 10% to enable matching for similar fields that have not been analyzed. - /// - /// - [JsonInclude, JsonPropertyName("max_matching_length")] - public long MaxMatchingLength { get; init; } - [JsonInclude, JsonPropertyName("mlcategory")] - public string Mlcategory { get; init; } - - /// - /// - /// The number of messages that have been matched by this category. This is only guaranteed to have the latest accurate count after a job _flush or _close - /// - /// - [JsonInclude, JsonPropertyName("num_matches")] - public long? NumMatches { get; init; } - [JsonInclude, JsonPropertyName("p")] - public string? p { get; init; } - - /// - /// - /// If per-partition categorization is enabled, this property identifies the field used to segment the categorization. It is not present when per-partition categorization is disabled. - /// - /// - [JsonInclude, JsonPropertyName("partition_field_name")] - public string? PartitionFieldName { get; init; } - - /// - /// - /// If per-partition categorization is enabled, this property identifies the value of the partition_field_name for the category. It is not present when per-partition categorization is disabled. - /// - /// - [JsonInclude, JsonPropertyName("partition_field_value")] - public string? PartitionFieldValue { get; init; } - - /// - /// - /// A list of category_id entries that this current category encompasses. Any new message that is processed by the categorizer will match against this category and not any of the categories in this list. This is only guaranteed to have the latest accurate list of categories after a job _flush or _close - /// - /// - [JsonInclude, JsonPropertyName("preferred_to_categories")] - public IReadOnlyCollection? PreferredToCategories { get; init; } - - /// - /// - /// A regular expression that is used to search for values that match the category. - /// - /// - [JsonInclude, JsonPropertyName("regex")] - public string Regex { get; init; } - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - - /// - /// - /// A space separated list of the common tokens that are matched in values of the category. - /// - /// - [JsonInclude, JsonPropertyName("terms")] - public string Terms { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ChunkingConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ChunkingConfig.g.cs deleted file mode 100644 index 06f570ede5a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ChunkingConfig.g.cs +++ /dev/null @@ -1,101 +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.MachineLearning; - -public sealed partial class ChunkingConfig -{ - /// - /// - /// If the mode is auto, the chunk size is dynamically calculated; - /// this is the recommended value when the datafeed does not use aggregations. - /// If the mode is manual, chunking is applied according to the specified time_span; - /// use this mode when the datafeed uses aggregations. If the mode is off, no chunking is applied. - /// - /// - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingMode Mode { get; set; } - - /// - /// - /// The time span that each search will be querying. This setting is applicable only when the mode is set to manual. - /// - /// - [JsonInclude, JsonPropertyName("time_span")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TimeSpan { get; set; } -} - -public sealed partial class ChunkingConfigDescriptor : SerializableDescriptor -{ - internal ChunkingConfigDescriptor(Action configure) => configure.Invoke(this); - - public ChunkingConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingMode ModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? TimeSpanValue { get; set; } - - /// - /// - /// If the mode is auto, the chunk size is dynamically calculated; - /// this is the recommended value when the datafeed does not use aggregations. - /// If the mode is manual, chunking is applied according to the specified time_span; - /// use this mode when the datafeed uses aggregations. If the mode is off, no chunking is applied. - /// - /// - public ChunkingConfigDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingMode mode) - { - ModeValue = mode; - return Self; - } - - /// - /// - /// The time span that each search will be querying. This setting is applicable only when the mode is set to manual. - /// - /// - public ChunkingConfigDescriptor TimeSpan(Elastic.Clients.Elasticsearch.Serverless.Duration? timeSpan) - { - TimeSpanValue = timeSpan; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - if (TimeSpanValue is not null) - { - writer.WritePropertyName("time_span"); - JsonSerializer.Serialize(writer, TimeSpanValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs deleted file mode 100644 index abd1deaa9f6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ClassificationInferenceOptions.g.cs +++ /dev/null @@ -1,181 +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.MachineLearning; - -public sealed partial class ClassificationInferenceOptions -{ - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - [JsonInclude, JsonPropertyName("num_top_feature_importance_values")] - public int? NumTopFeatureImportanceValues { get; set; } - - /// - /// - /// Specifies the type of the predicted field to write. Acceptable values are: string, number, boolean. When boolean is provided 1.0 is transformed to true and 0.0 to false. - /// - /// - [JsonInclude, JsonPropertyName("prediction_field_type")] - public string? PredictionFieldType { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// Specifies the field to which the top classes are written. Defaults to top_classes. - /// - /// - [JsonInclude, JsonPropertyName("top_classes_results_field")] - public string? TopClassesResultsField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig(ClassificationInferenceOptions classificationInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig.Classification(classificationInferenceOptions); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(ClassificationInferenceOptions classificationInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.Classification(classificationInferenceOptions); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(ClassificationInferenceOptions classificationInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.Classification(classificationInferenceOptions); -} - -public sealed partial class ClassificationInferenceOptionsDescriptor : SerializableDescriptor -{ - internal ClassificationInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public ClassificationInferenceOptionsDescriptor() : base() - { - } - - private int? NumTopClassesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private string? PredictionFieldTypeValue { get; set; } - private string? ResultsFieldValue { get; set; } - private string? TopClassesResultsFieldValue { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public ClassificationInferenceOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public ClassificationInferenceOptionsDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Specifies the type of the predicted field to write. Acceptable values are: string, number, boolean. When boolean is provided 1.0 is transformed to true and 0.0 to false. - /// - /// - public ClassificationInferenceOptionsDescriptor PredictionFieldType(string? predictionFieldType) - { - PredictionFieldTypeValue = predictionFieldType; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public ClassificationInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Specifies the field to which the top classes are written. Defaults to top_classes. - /// - /// - public ClassificationInferenceOptionsDescriptor TopClassesResultsField(string? topClassesResultsField) - { - TopClassesResultsFieldValue = topClassesResultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (!string.IsNullOrEmpty(PredictionFieldTypeValue)) - { - writer.WritePropertyName("prediction_field_type"); - writer.WriteStringValue(PredictionFieldTypeValue); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (!string.IsNullOrEmpty(TopClassesResultsFieldValue)) - { - writer.WritePropertyName("top_classes_results_field"); - writer.WriteStringValue(TopClassesResultsFieldValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs deleted file mode 100644 index ae90441244f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixItem.g.cs +++ /dev/null @@ -1,40 +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.MachineLearning; - -public sealed partial class ConfusionMatrixItem -{ - [JsonInclude, JsonPropertyName("actual_class")] - public string ActualClass { get; init; } - [JsonInclude, JsonPropertyName("actual_class_doc_count")] - public int ActualClassDocCount { get; init; } - [JsonInclude, JsonPropertyName("other_predicted_class_doc_count")] - public int OtherPredictedClassDocCount { get; init; } - [JsonInclude, JsonPropertyName("predicted_classes")] - public IReadOnlyCollection PredictedClasses { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs deleted file mode 100644 index a3680c1a3e6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixPrediction.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class ConfusionMatrixPrediction -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("predicted_class")] - public string PredictedClass { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs deleted file mode 100644 index 3157696095f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ConfusionMatrixThreshold.g.cs +++ /dev/null @@ -1,63 +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.MachineLearning; - -public sealed partial class ConfusionMatrixThreshold -{ - /// - /// - /// False Negative - /// - /// - [JsonInclude, JsonPropertyName("fn")] - public int FalseNegative { get; init; } - - /// - /// - /// False Positive - /// - /// - [JsonInclude, JsonPropertyName("fp")] - public int FalsePositive { get; init; } - - /// - /// - /// True Negative - /// - /// - [JsonInclude, JsonPropertyName("tn")] - public int TrueNegative { get; init; } - - /// - /// - /// True Positive - /// - /// - [JsonInclude, JsonPropertyName("tp")] - public int TruePositive { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataCounts.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataCounts.g.cs deleted file mode 100644 index db582b7b1b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataCounts.g.cs +++ /dev/null @@ -1,70 +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.MachineLearning; - -public sealed partial class DataCounts -{ - [JsonInclude, JsonPropertyName("bucket_count")] - public long BucketCount { get; init; } - [JsonInclude, JsonPropertyName("earliest_record_timestamp")] - public long? EarliestRecordTimestamp { get; init; } - [JsonInclude, JsonPropertyName("empty_bucket_count")] - public long EmptyBucketCount { get; init; } - [JsonInclude, JsonPropertyName("input_bytes")] - public long InputBytes { get; init; } - [JsonInclude, JsonPropertyName("input_field_count")] - public long InputFieldCount { get; init; } - [JsonInclude, JsonPropertyName("input_record_count")] - public long InputRecordCount { get; init; } - [JsonInclude, JsonPropertyName("invalid_date_count")] - public long InvalidDateCount { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("last_data_time")] - public long? LastDataTime { get; init; } - [JsonInclude, JsonPropertyName("latest_bucket_timestamp")] - public long? LatestBucketTimestamp { get; init; } - [JsonInclude, JsonPropertyName("latest_empty_bucket_timestamp")] - public long? LatestEmptyBucketTimestamp { get; init; } - [JsonInclude, JsonPropertyName("latest_record_timestamp")] - public long? LatestRecordTimestamp { get; init; } - [JsonInclude, JsonPropertyName("latest_sparse_bucket_timestamp")] - public long? LatestSparseBucketTimestamp { get; init; } - [JsonInclude, JsonPropertyName("log_time")] - public long? LogTime { get; init; } - [JsonInclude, JsonPropertyName("missing_field_count")] - public long MissingFieldCount { get; init; } - [JsonInclude, JsonPropertyName("out_of_order_timestamp_count")] - public long OutOfOrderTimestampCount { get; init; } - [JsonInclude, JsonPropertyName("processed_field_count")] - public long ProcessedFieldCount { get; init; } - [JsonInclude, JsonPropertyName("processed_record_count")] - public long ProcessedRecordCount { get; init; } - [JsonInclude, JsonPropertyName("sparse_bucket_count")] - public long SparseBucketCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataDescription.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataDescription.g.cs deleted file mode 100644 index 8fb2f89e752..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataDescription.g.cs +++ /dev/null @@ -1,268 +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.MachineLearning; - -public sealed partial class DataDescription -{ - [JsonInclude, JsonPropertyName("field_delimiter")] - public string? FieldDelimiter { get; set; } - - /// - /// - /// Only JSON format is supported at this time. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - [JsonInclude, JsonPropertyName("time_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TimeField { get; set; } - - /// - /// - /// The time format, which can be epoch, epoch_ms, or a custom pattern. The value epoch refers to UNIX or Epoch time (the number of seconds since 1 Jan 1970). The value epoch_ms indicates that time is measured in milliseconds since the epoch. The epoch and epoch_ms time formats accept either integer or real values. Custom patterns must conform to the Java DateTimeFormatter class. When you use date-time formatting patterns, it is recommended that you provide the full date, time and time zone. For example: yyyy-MM-dd'T'HH:mm:ssX. If the pattern that you specify is not sufficient to produce a complete timestamp, job creation fails. - /// - /// - [JsonInclude, JsonPropertyName("time_format")] - public string? TimeFormat { get; set; } -} - -public sealed partial class DataDescriptionDescriptor : SerializableDescriptor> -{ - internal DataDescriptionDescriptor(Action> configure) => configure.Invoke(this); - - public DataDescriptionDescriptor() : base() - { - } - - private string? FieldDelimiterValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TimeFieldValue { get; set; } - private string? TimeFormatValue { get; set; } - - public DataDescriptionDescriptor FieldDelimiter(string? fieldDelimiter) - { - FieldDelimiterValue = fieldDelimiter; - return Self; - } - - /// - /// - /// Only JSON format is supported at this time. - /// - /// - public DataDescriptionDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - public DataDescriptionDescriptor TimeField(Elastic.Clients.Elasticsearch.Serverless.Field? timeField) - { - TimeFieldValue = timeField; - return Self; - } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - /// - /// - /// The time format, which can be epoch, epoch_ms, or a custom pattern. The value epoch refers to UNIX or Epoch time (the number of seconds since 1 Jan 1970). The value epoch_ms indicates that time is measured in milliseconds since the epoch. The epoch and epoch_ms time formats accept either integer or real values. Custom patterns must conform to the Java DateTimeFormatter class. When you use date-time formatting patterns, it is recommended that you provide the full date, time and time zone. For example: yyyy-MM-dd'T'HH:mm:ssX. If the pattern that you specify is not sufficient to produce a complete timestamp, job creation fails. - /// - /// - public DataDescriptionDescriptor TimeFormat(string? timeFormat) - { - TimeFormatValue = timeFormat; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FieldDelimiterValue)) - { - writer.WritePropertyName("field_delimiter"); - writer.WriteStringValue(FieldDelimiterValue); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (TimeFieldValue is not null) - { - writer.WritePropertyName("time_field"); - JsonSerializer.Serialize(writer, TimeFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimeFormatValue)) - { - writer.WritePropertyName("time_format"); - writer.WriteStringValue(TimeFormatValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataDescriptionDescriptor : SerializableDescriptor -{ - internal DataDescriptionDescriptor(Action configure) => configure.Invoke(this); - - public DataDescriptionDescriptor() : base() - { - } - - private string? FieldDelimiterValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TimeFieldValue { get; set; } - private string? TimeFormatValue { get; set; } - - public DataDescriptionDescriptor FieldDelimiter(string? fieldDelimiter) - { - FieldDelimiterValue = fieldDelimiter; - return Self; - } - - /// - /// - /// Only JSON format is supported at this time. - /// - /// - public DataDescriptionDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - public DataDescriptionDescriptor TimeField(Elastic.Clients.Elasticsearch.Serverless.Field? timeField) - { - TimeFieldValue = timeField; - return Self; - } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - /// - /// - /// The name of the field that contains the timestamp. - /// - /// - public DataDescriptionDescriptor TimeField(Expression> timeField) - { - TimeFieldValue = timeField; - return Self; - } - - /// - /// - /// The time format, which can be epoch, epoch_ms, or a custom pattern. The value epoch refers to UNIX or Epoch time (the number of seconds since 1 Jan 1970). The value epoch_ms indicates that time is measured in milliseconds since the epoch. The epoch and epoch_ms time formats accept either integer or real values. Custom patterns must conform to the Java DateTimeFormatter class. When you use date-time formatting patterns, it is recommended that you provide the full date, time and time zone. For example: yyyy-MM-dd'T'HH:mm:ssX. If the pattern that you specify is not sufficient to produce a complete timestamp, job creation fails. - /// - /// - public DataDescriptionDescriptor TimeFormat(string? timeFormat) - { - TimeFormatValue = timeFormat; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FieldDelimiterValue)) - { - writer.WritePropertyName("field_delimiter"); - writer.WriteStringValue(FieldDelimiterValue); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (TimeFieldValue is not null) - { - writer.WritePropertyName("time_field"); - JsonSerializer.Serialize(writer, TimeFieldValue, options); - } - - if (!string.IsNullOrEmpty(TimeFormatValue)) - { - writer.WritePropertyName("time_format"); - writer.WriteStringValue(TimeFormatValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeed.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeed.g.cs deleted file mode 100644 index 2b8886a2e00..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeed.g.cs +++ /dev/null @@ -1,189 +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.MachineLearning; - -internal sealed partial class DatafeedConverter : JsonConverter -{ - public override Datafeed Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyDictionary? aggregations = default; - Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedAuthorization? authorization = default; - Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig = default; - string datafeedId = default; - Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig delayedDataCheckConfig = default; - Elastic.Clients.Elasticsearch.Serverless.Duration? frequency = default; - IReadOnlyCollection? indexes = default; - IReadOnlyCollection indices = default; - Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions = default; - string jobId = default; - int? maxEmptySearches = default; - Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query = default; - Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay = default; - IReadOnlyDictionary? runtimeMappings = default; - IReadOnlyDictionary? scriptFields = default; - int? scrollSize = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "authorization") - { - authorization = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - chunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "datafeed_id") - { - datafeedId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - delayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indexes") - { - indexes = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "indices") - { - indices = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "indices_options") - { - indicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - jobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - maxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - queryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - runtimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - scriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - scrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return new Datafeed { Aggregations = aggregations, Authorization = authorization, ChunkingConfig = chunkingConfig, DatafeedId = datafeedId, DelayedDataCheckConfig = delayedDataCheckConfig, Frequency = frequency, Indexes = indexes, Indices = indices, IndicesOptions = indicesOptions, JobId = jobId, MaxEmptySearches = maxEmptySearches, Query = query, QueryDelay = queryDelay, RuntimeMappings = runtimeMappings, ScriptFields = scriptFields, ScrollSize = scrollSize }; - } - - public override void Write(Utf8JsonWriter writer, Datafeed value, JsonSerializerOptions options) - { - throw new NotImplementedException("'Datafeed' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(DatafeedConverter))] -public sealed partial class Datafeed -{ - public IReadOnlyDictionary? Aggregations { get; init; } - - /// - /// - /// The security privileges that the datafeed uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the datafeed, this property is omitted. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedAuthorization? Authorization { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfig { get; init; } - public string DatafeedId { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig DelayedDataCheckConfig { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; init; } - public IReadOnlyCollection? Indexes { get; init; } - public IReadOnlyCollection Indices { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; init; } - public string JobId { get; init; } - public int? MaxEmptySearches { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelay { get; init; } - public IReadOnlyDictionary? RuntimeMappings { get; init; } - public IReadOnlyDictionary? ScriptFields { get; init; } - public int? ScrollSize { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs deleted file mode 100644 index b2fdee79f2e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedAuthorization.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class DatafeedAuthorization -{ - /// - /// - /// If an API key was used for the most recent update to the datafeed, its name and identifier are listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ApiKeyAuthorization? ApiKey { get; init; } - - /// - /// - /// If a user ID was used for the most recent update to the datafeed, its roles at the time of the update are listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - /// - /// - /// If a service account was used for the most recent update to the datafeed, the account name is listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("service_account")] - public string? ServiceAccount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedConfig.g.cs deleted file mode 100644 index fabe268dcb2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedConfig.g.cs +++ /dev/null @@ -1,1082 +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.MachineLearning; - -internal sealed partial class DatafeedConfigConverter : JsonConverter -{ - public override DatafeedConfig Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DatafeedConfig(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "chunking_config") - { - variant.ChunkingConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "datafeed_id") - { - variant.DatafeedId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delayed_data_check_config") - { - variant.DelayedDataCheckConfig = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "frequency") - { - variant.Frequency = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "indexes") - { - variant.Indices = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices_options") - { - variant.IndicesOptions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "job_id") - { - variant.JobId = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_empty_searches") - { - variant.MaxEmptySearches = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query_delay") - { - variant.QueryDelay = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "runtime_mappings") - { - variant.RuntimeMappings = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "script_fields") - { - variant.ScriptFields = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "scroll_size") - { - variant.ScrollSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DatafeedConfig value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.ChunkingConfig is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, value.ChunkingConfig, options); - } - - if (value.DatafeedId is not null) - { - writer.WritePropertyName("datafeed_id"); - JsonSerializer.Serialize(writer, value.DatafeedId, options); - } - - if (value.DelayedDataCheckConfig is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, value.DelayedDataCheckConfig, options); - } - - if (value.Frequency is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, value.Frequency, options); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.IndicesOptions is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, value.IndicesOptions, options); - } - - if (value.JobId is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, value.JobId, options); - } - - if (value.MaxEmptySearches.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(value.MaxEmptySearches.Value); - } - - if (value.Query is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - } - - if (value.QueryDelay is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, value.QueryDelay, options); - } - - if (value.RuntimeMappings is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, value.RuntimeMappings, options); - } - - if (value.ScriptFields is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, value.ScriptFields, options); - } - - if (value.ScrollSize.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(value.ScrollSize.Value); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(DatafeedConfigConverter))] -public sealed partial class DatafeedConfig -{ - /// - /// - /// If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data. - /// - /// - public IDictionary? Aggregations { get; set; } - - /// - /// - /// Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of these time chunks are calculated and is an advanced configuration option. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfig { get; set; } - - /// - /// - /// A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. The default value is the job identifier. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Id? DatafeedId { get; set; } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally search over indices that have already been read in an effort to determine whether any data has subsequently been added to the index. If missing data is found, it is a good indication that the query_delay option is set too low and the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time datafeeds. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfig { get; set; } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: 150s. When frequency is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; set; } - - /// - /// - /// An array of index names. Wildcards are supported. If any indices are in remote clusters, the machine learning nodes must have the remote_cluster_client role. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// Specifies index expansion options that are used during search. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptions { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Id? JobId { get; set; } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period) then it will automatically stop itself and close its associated job after this many real-time searches that return no documents. In other words, it will stop after frequency times max_empty_searches of real-time operation. If not set then a datafeed with no end time that sees no data will remain started until it is explicitly stopped. - /// - /// - public int? MaxEmptySearches { get; set; } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default value is randomly selected between 60s and 120s. This randomness improves the query performance when there are multiple jobs running on the same node. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelay { get; set; } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public IDictionary? ScriptFields { get; set; } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. The maximum value is the value of index.max_result_window, which is 10,000 by default. - /// - /// - public int? ScrollSize { get; set; } -} - -public sealed partial class DatafeedConfigDescriptor : SerializableDescriptor> -{ - internal DatafeedConfigDescriptor(Action> configure) => configure.Invoke(this); - - public DatafeedConfigDescriptor() : base() - { - } - - private IDictionary> AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - private Action ChunkingConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? DatafeedIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - private Action IndicesOptionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private int? MaxEmptySearchesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelayValue { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private int? ScrollSizeValue { get; set; } - - /// - /// - /// If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data. - /// - /// - public DatafeedConfigDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of these time chunks are calculated and is an advanced configuration option. - /// - /// - public DatafeedConfigDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. The default value is the job identifier. - /// - /// - public DatafeedConfigDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id? datafeedId) - { - DatafeedIdValue = datafeedId; - return Self; - } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally search over indices that have already been read in an effort to determine whether any data has subsequently been added to the index. If missing data is found, it is a good indication that the query_delay option is set too low and the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time datafeeds. - /// - /// - public DatafeedConfigDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: 150s. When frequency is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. - /// - /// - public DatafeedConfigDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// An array of index names. Wildcards are supported. If any indices are in remote clusters, the machine learning nodes must have the remote_cluster_client role. - /// - /// - public DatafeedConfigDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies index expansion options that are used during search. - /// - /// - public DatafeedConfigDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period) then it will automatically stop itself and close its associated job after this many real-time searches that return no documents. In other words, it will stop after frequency times max_empty_searches of real-time operation. If not set then a datafeed with no end time that sees no data will remain started until it is explicitly stopped. - /// - /// - public DatafeedConfigDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. - /// - /// - public DatafeedConfigDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DatafeedConfigDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default value is randomly selected between 60s and 120s. This randomness improves the query performance when there are multiple jobs running on the same node. - /// - /// - public DatafeedConfigDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public DatafeedConfigDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public DatafeedConfigDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. The maximum value is the value of index.max_result_window, which is 10,000 by default. - /// - /// - public DatafeedConfigDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DatafeedIdValue is not null) - { - writer.WritePropertyName("datafeed_id"); - JsonSerializer.Serialize(writer, DatafeedIdValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DatafeedConfigDescriptor : SerializableDescriptor -{ - internal DatafeedConfigDescriptor(Action configure) => configure.Invoke(this); - - public DatafeedConfigDescriptor() : base() - { - } - - private IDictionary AggregationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? ChunkingConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor ChunkingConfigDescriptor { get; set; } - private Action ChunkingConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? DatafeedIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? DelayedDataCheckConfigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor DelayedDataCheckConfigDescriptor { get; set; } - private Action DelayedDataCheckConfigDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? FrequencyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? IndicesOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor IndicesOptionsDescriptor { get; set; } - private Action IndicesOptionsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? JobIdValue { get; set; } - private int? MaxEmptySearchesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? QueryDelayValue { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private IDictionary ScriptFieldsValue { get; set; } - private int? ScrollSizeValue { get; set; } - - /// - /// - /// If set, the datafeed performs aggregation searches. Support for aggregations is limited and should be used only with low cardinality data. - /// - /// - public DatafeedConfigDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Datafeeds might be required to search over long time periods, for several months or years. This search is split into time chunks in order to ensure the load on Elasticsearch is managed. Chunking configuration controls how the size of these time chunks are calculated and is an advanced configuration option. - /// - /// - public DatafeedConfigDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfig? chunkingConfig) - { - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigValue = chunkingConfig; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor descriptor) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptorAction = null; - ChunkingConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor ChunkingConfig(Action configure) - { - ChunkingConfigValue = null; - ChunkingConfigDescriptor = null; - ChunkingConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. The default value is the job identifier. - /// - /// - public DatafeedConfigDescriptor DatafeedId(Elastic.Clients.Elasticsearch.Serverless.Id? datafeedId) - { - DatafeedIdValue = datafeedId; - return Self; - } - - /// - /// - /// Specifies whether the datafeed checks for missing data and the size of the window. The datafeed can optionally search over indices that have already been read in an effort to determine whether any data has subsequently been added to the index. If missing data is found, it is a good indication that the query_delay option is set too low and the data is being indexed after the datafeed has passed that moment in time. This check runs only on real-time datafeeds. - /// - /// - public DatafeedConfigDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfig? delayedDataCheckConfig) - { - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigValue = delayedDataCheckConfig; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor descriptor) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptorAction = null; - DelayedDataCheckConfigDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor DelayedDataCheckConfig(Action configure) - { - DelayedDataCheckConfigValue = null; - DelayedDataCheckConfigDescriptor = null; - DelayedDataCheckConfigDescriptorAction = configure; - return Self; - } - - /// - /// - /// The interval at which scheduled queries are made while the datafeed runs in real time. The default value is either the bucket span for short bucket spans, or, for longer bucket spans, a sensible fraction of the bucket span. For example: 150s. When frequency is shorter than the bucket span, interim results for the last (partial) bucket are written then eventually overwritten by the full bucket results. If the datafeed uses aggregations, this value must be divisible by the interval of the date histogram aggregation. - /// - /// - public DatafeedConfigDescriptor Frequency(Elastic.Clients.Elasticsearch.Serverless.Duration? frequency) - { - FrequencyValue = frequency; - return Self; - } - - /// - /// - /// An array of index names. Wildcards are supported. If any indices are in remote clusters, the machine learning nodes must have the remote_cluster_client role. - /// - /// - public DatafeedConfigDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Specifies index expansion options that are used during search. - /// - /// - public DatafeedConfigDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptions? indicesOptions) - { - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsValue = indicesOptions; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor descriptor) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptorAction = null; - IndicesOptionsDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor IndicesOptions(Action configure) - { - IndicesOptionsValue = null; - IndicesOptionsDescriptor = null; - IndicesOptionsDescriptorAction = configure; - return Self; - } - - public DatafeedConfigDescriptor JobId(Elastic.Clients.Elasticsearch.Serverless.Id? jobId) - { - JobIdValue = jobId; - return Self; - } - - /// - /// - /// If a real-time datafeed has never seen any data (including during any initial training period) then it will automatically stop itself and close its associated job after this many real-time searches that return no documents. In other words, it will stop after frequency times max_empty_searches of real-time operation. If not set then a datafeed with no end time that sees no data will remain started until it is explicitly stopped. - /// - /// - public DatafeedConfigDescriptor MaxEmptySearches(int? maxEmptySearches) - { - MaxEmptySearchesValue = maxEmptySearches; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. - /// - /// - public DatafeedConfigDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DatafeedConfigDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DatafeedConfigDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 a.m., set this property to 120 seconds. The default value is randomly selected between 60s and 120s. This randomness improves the query performance when there are multiple jobs running on the same node. - /// - /// - public DatafeedConfigDescriptor QueryDelay(Elastic.Clients.Elasticsearch.Serverless.Duration? queryDelay) - { - QueryDelayValue = queryDelay; - return Self; - } - - /// - /// - /// Specifies runtime fields for the datafeed search. - /// - /// - public DatafeedConfigDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. The detector configuration objects in a job can contain functions that use these script fields. - /// - /// - public DatafeedConfigDescriptor ScriptFields(Func, FluentDescriptorDictionary> selector) - { - ScriptFieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// The size parameter that is used in Elasticsearch searches when the datafeed does not use aggregations. The maximum value is the value of index.max_result_window, which is 10,000 by default. - /// - /// - public DatafeedConfigDescriptor ScrollSize(int? scrollSize) - { - ScrollSizeValue = scrollSize; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (ChunkingConfigDescriptor is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigDescriptor, options); - } - else if (ChunkingConfigDescriptorAction is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ChunkingConfigDescriptor(ChunkingConfigDescriptorAction), options); - } - else if (ChunkingConfigValue is not null) - { - writer.WritePropertyName("chunking_config"); - JsonSerializer.Serialize(writer, ChunkingConfigValue, options); - } - - if (DatafeedIdValue is not null) - { - writer.WritePropertyName("datafeed_id"); - JsonSerializer.Serialize(writer, DatafeedIdValue, options); - } - - if (DelayedDataCheckConfigDescriptor is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigDescriptor, options); - } - else if (DelayedDataCheckConfigDescriptorAction is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DelayedDataCheckConfigDescriptor(DelayedDataCheckConfigDescriptorAction), options); - } - else if (DelayedDataCheckConfigValue is not null) - { - writer.WritePropertyName("delayed_data_check_config"); - JsonSerializer.Serialize(writer, DelayedDataCheckConfigValue, options); - } - - if (FrequencyValue is not null) - { - writer.WritePropertyName("frequency"); - JsonSerializer.Serialize(writer, FrequencyValue, options); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (IndicesOptionsDescriptor is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsDescriptor, options); - } - else if (IndicesOptionsDescriptorAction is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndicesOptionsDescriptor(IndicesOptionsDescriptorAction), options); - } - else if (IndicesOptionsValue is not null) - { - writer.WritePropertyName("indices_options"); - JsonSerializer.Serialize(writer, IndicesOptionsValue, options); - } - - if (JobIdValue is not null) - { - writer.WritePropertyName("job_id"); - JsonSerializer.Serialize(writer, JobIdValue, options); - } - - if (MaxEmptySearchesValue.HasValue) - { - writer.WritePropertyName("max_empty_searches"); - writer.WriteNumberValue(MaxEmptySearchesValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (QueryDelayValue is not null) - { - writer.WritePropertyName("query_delay"); - JsonSerializer.Serialize(writer, QueryDelayValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (ScriptFieldsValue is not null) - { - writer.WritePropertyName("script_fields"); - JsonSerializer.Serialize(writer, ScriptFieldsValue, options); - } - - if (ScrollSizeValue.HasValue) - { - writer.WritePropertyName("scroll_size"); - writer.WriteNumberValue(ScrollSizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs deleted file mode 100644 index 5cf28e49c33..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedRunningState.g.cs +++ /dev/null @@ -1,56 +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.MachineLearning; - -public sealed partial class DatafeedRunningState -{ - /// - /// - /// Indicates if the datafeed is "real-time"; meaning that the datafeed has no configured end time. - /// - /// - [JsonInclude, JsonPropertyName("real_time_configured")] - public bool RealTimeConfigured { get; init; } - - /// - /// - /// Indicates whether the datafeed has finished running on the available past data. - /// For datafeeds without a configured end time, this means that the datafeed is now running on "real-time" data. - /// - /// - [JsonInclude, JsonPropertyName("real_time_running")] - public bool RealTimeRunning { get; init; } - - /// - /// - /// Provides the latest time interval the datafeed has searched. - /// - /// - [JsonInclude, JsonPropertyName("search_interval")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RunningStateSearchInterval? SearchInterval { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs deleted file mode 100644 index 312f0051f07..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedStats.g.cs +++ /dev/null @@ -1,74 +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.MachineLearning; - -public sealed partial class DatafeedStats -{ - /// - /// - /// For started datafeeds only, contains messages relating to the selection of a node. - /// - /// - [JsonInclude, JsonPropertyName("assignment_explanation")] - public string? AssignmentExplanation { get; init; } - - /// - /// - /// A numerical character string that uniquely identifies the datafeed. - /// This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. - /// It must start and end with alphanumeric characters. - /// - /// - [JsonInclude, JsonPropertyName("datafeed_id")] - public string DatafeedId { get; init; } - - /// - /// - /// An object containing the running state for this datafeed. - /// It is only provided if the datafeed is started. - /// - /// - [JsonInclude, JsonPropertyName("running_state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedRunningState? RunningState { get; init; } - - /// - /// - /// The status of the datafeed, which can be one of the following values: starting, started, stopping, stopped. - /// - /// - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedState State { get; init; } - - /// - /// - /// An object that provides statistical information about timing aspect of this datafeed. - /// - /// - [JsonInclude, JsonPropertyName("timing_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DatafeedTimingStats? TimingStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs deleted file mode 100644 index fedc96d9873..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DatafeedTimingStats.g.cs +++ /dev/null @@ -1,81 +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.MachineLearning; - -public sealed partial class DatafeedTimingStats -{ - /// - /// - /// The average search time per bucket, in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("average_search_time_per_bucket_ms")] - public double? AverageSearchTimePerBucketMs { get; init; } - - /// - /// - /// The number of buckets processed. - /// - /// - [JsonInclude, JsonPropertyName("bucket_count")] - public long BucketCount { get; init; } - [JsonInclude, JsonPropertyName("exponential_average_calculation_context")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExponentialAverageCalculationContext? ExponentialAverageCalculationContext { get; init; } - - /// - /// - /// The exponential average search time per hour, in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("exponential_average_search_time_per_hour_ms")] - public double ExponentialAverageSearchTimePerHourMs { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The number of searches run by the datafeed. - /// - /// - [JsonInclude, JsonPropertyName("search_count")] - public long SearchCount { get; init; } - - /// - /// - /// The total time the datafeed spent searching, in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("total_search_time_ms")] - public double TotalSearchTimeMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeeds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeeds.g.cs deleted file mode 100644 index 58cedc1b910..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Datafeeds.g.cs +++ /dev/null @@ -1,34 +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.MachineLearning; - -public sealed partial class Datafeeds -{ - [JsonInclude, JsonPropertyName("scroll_size")] - public int ScrollSize { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs deleted file mode 100644 index e6b6480fc24..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysis.g.cs +++ /dev/null @@ -1,257 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -[JsonConverter(typeof(DataframeAnalysisConverter))] -public sealed partial class DataframeAnalysis -{ - internal DataframeAnalysis(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static DataframeAnalysis Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisClassification dataframeAnalysisClassification) => new DataframeAnalysis("classification", dataframeAnalysisClassification); - public static DataframeAnalysis OutlierDetection(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisOutlierDetection dataframeAnalysisOutlierDetection) => new DataframeAnalysis("outlier_detection", dataframeAnalysisOutlierDetection); - public static DataframeAnalysis Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisRegression dataframeAnalysisRegression) => new DataframeAnalysis("regression", dataframeAnalysisRegression); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class DataframeAnalysisConverter : JsonConverter -{ - public override DataframeAnalysis Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "outlier_detection") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regression") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeAnalysis' from the response."); - } - - var result = new DataframeAnalysis(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysis value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisClassification)value.Variant, options); - break; - case "outlier_detection": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisOutlierDetection)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisRegression)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DataframeAnalysisDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DataframeAnalysisDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public DataframeAnalysisDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisClassification dataframeAnalysisClassification) => Set(dataframeAnalysisClassification, "classification"); - public DataframeAnalysisDescriptor Classification(Action> configure) => Set(configure, "classification"); - public DataframeAnalysisDescriptor OutlierDetection(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisOutlierDetection dataframeAnalysisOutlierDetection) => Set(dataframeAnalysisOutlierDetection, "outlier_detection"); - public DataframeAnalysisDescriptor OutlierDetection(Action configure) => Set(configure, "outlier_detection"); - public DataframeAnalysisDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisRegression dataframeAnalysisRegression) => Set(dataframeAnalysisRegression, "regression"); - public DataframeAnalysisDescriptor Regression(Action> configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DataframeAnalysisDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DataframeAnalysisDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public DataframeAnalysisDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisClassification dataframeAnalysisClassification) => Set(dataframeAnalysisClassification, "classification"); - public DataframeAnalysisDescriptor Classification(Action configure) => Set(configure, "classification"); - public DataframeAnalysisDescriptor OutlierDetection(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisOutlierDetection dataframeAnalysisOutlierDetection) => Set(dataframeAnalysisOutlierDetection, "outlier_detection"); - public DataframeAnalysisDescriptor OutlierDetection(Action configure) => Set(configure, "outlier_detection"); - public DataframeAnalysisDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisRegression dataframeAnalysisRegression) => Set(dataframeAnalysisRegression, "regression"); - public DataframeAnalysisDescriptor Regression(Action configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs deleted file mode 100644 index c4ec45eaae3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisAnalyzedFields.g.cs +++ /dev/null @@ -1,91 +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.MachineLearning; - -public sealed partial class DataframeAnalysisAnalyzedFields -{ - /// - /// - /// An array of strings that defines the fields that will be included in the analysis. - /// - /// - [JsonInclude, JsonPropertyName("excludes")] - public ICollection Excludes { get; set; } - - /// - /// - /// An array of strings that defines the fields that will be excluded from the analysis. You do not need to add fields with unsupported data types to excludes, these fields are excluded from the analysis automatically. - /// - /// - [JsonInclude, JsonPropertyName("includes")] - public ICollection Includes { get; set; } -} - -public sealed partial class DataframeAnalysisAnalyzedFieldsDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisAnalyzedFieldsDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisAnalyzedFieldsDescriptor() : base() - { - } - - private ICollection ExcludesValue { get; set; } - private ICollection IncludesValue { get; set; } - - /// - /// - /// An array of strings that defines the fields that will be included in the analysis. - /// - /// - public DataframeAnalysisAnalyzedFieldsDescriptor Excludes(ICollection excludes) - { - ExcludesValue = excludes; - return Self; - } - - /// - /// - /// An array of strings that defines the fields that will be excluded from the analysis. You do not need to add fields with unsupported data types to excludes, these fields are excluded from the analysis automatically. - /// - /// - public DataframeAnalysisAnalyzedFieldsDescriptor Includes(ICollection includes) - { - IncludesValue = includes; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, ExcludesValue, options); - writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, IncludesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs deleted file mode 100644 index 812e24662e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisClassification.g.cs +++ /dev/null @@ -1,1328 +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.MachineLearning; - -internal sealed partial class DataframeAnalysisClassificationConverter : JsonConverter -{ - public override DataframeAnalysisClassification Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DataframeAnalysisClassification(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "alpha") - { - variant.Alpha = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "class_assignment_objective") - { - variant.ClassAssignmentObjective = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "dependent_variable") - { - variant.DependentVariable = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "downsample_factor") - { - variant.DownsampleFactor = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "early_stopping_enabled") - { - variant.EarlyStoppingEnabled = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta") - { - variant.Eta = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta_growth_rate_per_tree") - { - variant.EtaGrowthRatePerTree = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_bag_fraction") - { - variant.FeatureBagFraction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_processors") - { - variant.FeatureProcessors = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "gamma") - { - variant.Gamma = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lambda") - { - variant.Lambda = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_optimization_rounds_per_hyperparameter") - { - variant.MaxOptimizationRoundsPerHyperparameter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_trees" || property == "maximum_number_trees") - { - variant.MaxTrees = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "num_top_classes") - { - variant.NumTopClasses = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "num_top_feature_importance_values") - { - variant.NumTopFeatureImportanceValues = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prediction_field_name") - { - variant.PredictionFieldName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "randomize_seed") - { - variant.RandomizeSeed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_limit") - { - variant.SoftTreeDepthLimit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_tolerance") - { - variant.SoftTreeDepthTolerance = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "training_percent") - { - variant.TrainingPercent = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisClassification value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Alpha.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(value.Alpha.Value); - } - - if (!string.IsNullOrEmpty(value.ClassAssignmentObjective)) - { - writer.WritePropertyName("class_assignment_objective"); - writer.WriteStringValue(value.ClassAssignmentObjective); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(value.DependentVariable); - if (value.DownsampleFactor.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(value.DownsampleFactor.Value); - } - - if (value.EarlyStoppingEnabled.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(value.EarlyStoppingEnabled.Value); - } - - if (value.Eta.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(value.Eta.Value); - } - - if (value.EtaGrowthRatePerTree.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(value.EtaGrowthRatePerTree.Value); - } - - if (value.FeatureBagFraction.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(value.FeatureBagFraction.Value); - } - - if (value.FeatureProcessors is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, value.FeatureProcessors, options); - } - - if (value.Gamma.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(value.Gamma.Value); - } - - if (value.Lambda.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(value.Lambda.Value); - } - - if (value.MaxOptimizationRoundsPerHyperparameter.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(value.MaxOptimizationRoundsPerHyperparameter.Value); - } - - if (value.MaxTrees.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(value.MaxTrees.Value); - } - - if (value.NumTopClasses.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(value.NumTopClasses.Value); - } - - if (value.NumTopFeatureImportanceValues.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(value.NumTopFeatureImportanceValues.Value); - } - - if (value.PredictionFieldName is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, value.PredictionFieldName, options); - } - - if (value.RandomizeSeed.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(value.RandomizeSeed.Value); - } - - if (value.SoftTreeDepthLimit.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(value.SoftTreeDepthLimit.Value); - } - - if (value.SoftTreeDepthTolerance.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(value.SoftTreeDepthTolerance.Value); - } - - if (value.TrainingPercent.HasValue) - { - writer.WritePropertyName("training_percent"); - writer.WriteNumberValue(value.TrainingPercent.Value); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(DataframeAnalysisClassificationConverter))] -public sealed partial class DataframeAnalysisClassification -{ - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero. - /// - /// - public double? Alpha { get; set; } - public string? ClassAssignmentObjective { get; set; } - - /// - /// - /// Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable. - /// For classification analysis, the data type of the field must be numeric (integer, short, long, byte), categorical (ip or keyword), or boolean. There must be no more than 30 different values in this field. - /// For regression analysis, the data type of the field must be numeric. - /// - /// - public string DependentVariable { get; set; } - - /// - /// - /// Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1. - /// - /// - public double? DownsampleFactor { get; set; } - - /// - /// - /// Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable. - /// - /// - public bool? EarlyStoppingEnabled { get; set; } - - /// - /// - /// Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1. - /// - /// - public double? Eta { get; set; } - - /// - /// - /// Advanced configuration option. Specifies the rate at which eta increases for each new tree that is added to the forest. For example, a rate of 1.05 increases eta by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2. - /// - /// - public double? EtaGrowthRatePerTree { get; set; } - - /// - /// - /// Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization. - /// - /// - public double? FeatureBagFraction { get; set; } - - /// - /// - /// Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple feature_processors entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields. - /// - /// - public ICollection? FeatureProcessors { get; set; } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public double? Gamma { get; set; } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public double? Lambda { get; set; } - - /// - /// - /// Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization. - /// - /// - public int? MaxOptimizationRoundsPerHyperparameter { get; set; } - - /// - /// - /// Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization. - /// - /// - public int? MaxTrees { get; set; } - - /// - /// - /// Defines the number of categories for which the predicted probabilities are reported. It must be non-negative or -1. If it is -1 or greater than the total number of categories, probabilities are reported for all categories; if you have a large number of categories, there could be a significant effect on the size of your destination index. NOTE: To use the AUC ROC evaluation method, num_top_classes must be set to -1 or a value greater than or equal to the total number of categories. - /// - /// - public int? NumTopClasses { get; set; } - - /// - /// - /// Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs. - /// - /// - public int? NumTopFeatureImportanceValues { get; set; } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Field? PredictionFieldName { get; set; } - - /// - /// - /// Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as source and analyzed_fields are the same). - /// - /// - public double? RandomizeSeed { get; set; } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the soft_tree_depth_tolerance to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0. - /// - /// - public int? SoftTreeDepthLimit { get; set; } - - /// - /// - /// Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds soft_tree_depth_limit. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01. - /// - /// - public double? SoftTreeDepthTolerance { get; set; } - - /// - /// - /// Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage. - /// - /// - public double? TrainingPercent { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis(DataframeAnalysisClassification dataframeAnalysisClassification) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis.Classification(dataframeAnalysisClassification); -} - -public sealed partial class DataframeAnalysisClassificationDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisClassificationDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisClassificationDescriptor() : base() - { - } - - private double? AlphaValue { get; set; } - private string? ClassAssignmentObjectiveValue { get; set; } - private string DependentVariableValue { get; set; } - private double? DownsampleFactorValue { get; set; } - private bool? EarlyStoppingEnabledValue { get; set; } - private double? EtaValue { get; set; } - private double? EtaGrowthRatePerTreeValue { get; set; } - private double? FeatureBagFractionValue { get; set; } - private ICollection? FeatureProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - private Action> FeatureProcessorsDescriptorAction { get; set; } - private Action>[] FeatureProcessorsDescriptorActions { get; set; } - private double? GammaValue { get; set; } - private double? LambdaValue { get; set; } - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - private int? MaxTreesValue { get; set; } - private int? NumTopClassesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PredictionFieldNameValue { get; set; } - private double? RandomizeSeedValue { get; set; } - private int? SoftTreeDepthLimitValue { get; set; } - private double? SoftTreeDepthToleranceValue { get; set; } - private double? TrainingPercentValue { get; set; } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero. - /// - /// - public DataframeAnalysisClassificationDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - public DataframeAnalysisClassificationDescriptor ClassAssignmentObjective(string? classAssignmentObjective) - { - ClassAssignmentObjectiveValue = classAssignmentObjective; - return Self; - } - - /// - /// - /// Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable. - /// For classification analysis, the data type of the field must be numeric (integer, short, long, byte), categorical (ip or keyword), or boolean. There must be no more than 30 different values in this field. - /// For regression analysis, the data type of the field must be numeric. - /// - /// - public DataframeAnalysisClassificationDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - /// - /// - /// Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1. - /// - /// - public DataframeAnalysisClassificationDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable. - /// - /// - public DataframeAnalysisClassificationDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - /// - /// - /// Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1. - /// - /// - public DataframeAnalysisClassificationDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the rate at which eta increases for each new tree that is added to the forest. For example, a rate of 1.05 increases eta by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2. - /// - /// - public DataframeAnalysisClassificationDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisClassificationDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - /// - /// - /// Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple feature_processors entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields. - /// - /// - public DataframeAnalysisClassificationDescriptor FeatureProcessors(ICollection? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(Action> configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(params Action>[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisClassificationDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisClassificationDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - /// - /// - /// Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisClassificationDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisClassificationDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - /// - /// - /// Defines the number of categories for which the predicted probabilities are reported. It must be non-negative or -1. If it is -1 or greater than the total number of categories, probabilities are reported for all categories; if you have a large number of categories, there could be a significant effect on the size of your destination index. NOTE: To use the AUC ROC evaluation method, num_top_classes must be set to -1 or a value greater than or equal to the total number of categories. - /// - /// - public DataframeAnalysisClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs. - /// - /// - public DataframeAnalysisClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as source and analyzed_fields are the same). - /// - /// - public DataframeAnalysisClassificationDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the soft_tree_depth_tolerance to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0. - /// - /// - public DataframeAnalysisClassificationDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - /// - /// - /// Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds soft_tree_depth_limit. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01. - /// - /// - public DataframeAnalysisClassificationDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - /// - /// - /// Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage. - /// - /// - public DataframeAnalysisClassificationDescriptor TrainingPercent(double? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - if (!string.IsNullOrEmpty(ClassAssignmentObjectiveValue)) - { - writer.WritePropertyName("class_assignment_objective"); - writer.WriteStringValue(ClassAssignmentObjectiveValue); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue.HasValue) - { - writer.WritePropertyName("training_percent"); - writer.WriteNumberValue(TrainingPercentValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisClassificationDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisClassificationDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisClassificationDescriptor() : base() - { - } - - private double? AlphaValue { get; set; } - private string? ClassAssignmentObjectiveValue { get; set; } - private string DependentVariableValue { get; set; } - private double? DownsampleFactorValue { get; set; } - private bool? EarlyStoppingEnabledValue { get; set; } - private double? EtaValue { get; set; } - private double? EtaGrowthRatePerTreeValue { get; set; } - private double? FeatureBagFractionValue { get; set; } - private ICollection? FeatureProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - private Action FeatureProcessorsDescriptorAction { get; set; } - private Action[] FeatureProcessorsDescriptorActions { get; set; } - private double? GammaValue { get; set; } - private double? LambdaValue { get; set; } - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - private int? MaxTreesValue { get; set; } - private int? NumTopClassesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PredictionFieldNameValue { get; set; } - private double? RandomizeSeedValue { get; set; } - private int? SoftTreeDepthLimitValue { get; set; } - private double? SoftTreeDepthToleranceValue { get; set; } - private double? TrainingPercentValue { get; set; } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero. - /// - /// - public DataframeAnalysisClassificationDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - public DataframeAnalysisClassificationDescriptor ClassAssignmentObjective(string? classAssignmentObjective) - { - ClassAssignmentObjectiveValue = classAssignmentObjective; - return Self; - } - - /// - /// - /// Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable. - /// For classification analysis, the data type of the field must be numeric (integer, short, long, byte), categorical (ip or keyword), or boolean. There must be no more than 30 different values in this field. - /// For regression analysis, the data type of the field must be numeric. - /// - /// - public DataframeAnalysisClassificationDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - /// - /// - /// Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1. - /// - /// - public DataframeAnalysisClassificationDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable. - /// - /// - public DataframeAnalysisClassificationDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - /// - /// - /// Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1. - /// - /// - public DataframeAnalysisClassificationDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the rate at which eta increases for each new tree that is added to the forest. For example, a rate of 1.05 increases eta by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2. - /// - /// - public DataframeAnalysisClassificationDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisClassificationDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - /// - /// - /// Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple feature_processors entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields. - /// - /// - public DataframeAnalysisClassificationDescriptor FeatureProcessors(ICollection? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(Action configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisClassificationDescriptor FeatureProcessors(params Action[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisClassificationDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisClassificationDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - /// - /// - /// Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisClassificationDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisClassificationDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - /// - /// - /// Defines the number of categories for which the predicted probabilities are reported. It must be non-negative or -1. If it is -1 or greater than the total number of categories, probabilities are reported for all categories; if you have a large number of categories, there could be a significant effect on the size of your destination index. NOTE: To use the AUC ROC evaluation method, num_top_classes must be set to -1 or a value greater than or equal to the total number of categories. - /// - /// - public DataframeAnalysisClassificationDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs. - /// - /// - public DataframeAnalysisClassificationDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisClassificationDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as source and analyzed_fields are the same). - /// - /// - public DataframeAnalysisClassificationDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the soft_tree_depth_tolerance to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0. - /// - /// - public DataframeAnalysisClassificationDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - /// - /// - /// Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds soft_tree_depth_limit. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01. - /// - /// - public DataframeAnalysisClassificationDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - /// - /// - /// Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage. - /// - /// - public DataframeAnalysisClassificationDescriptor TrainingPercent(double? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - if (!string.IsNullOrEmpty(ClassAssignmentObjectiveValue)) - { - writer.WritePropertyName("class_assignment_objective"); - writer.WriteStringValue(ClassAssignmentObjectiveValue); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue.HasValue) - { - writer.WritePropertyName("training_percent"); - writer.WriteNumberValue(TrainingPercentValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs deleted file mode 100644 index f9be4f3ac82..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessor.g.cs +++ /dev/null @@ -1,287 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -[JsonConverter(typeof(DataframeAnalysisFeatureProcessorConverter))] -public sealed partial class DataframeAnalysisFeatureProcessor -{ - internal DataframeAnalysisFeatureProcessor(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static DataframeAnalysisFeatureProcessor FrequencyEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorFrequencyEncoding dataframeAnalysisFeatureProcessorFrequencyEncoding) => new DataframeAnalysisFeatureProcessor("frequency_encoding", dataframeAnalysisFeatureProcessorFrequencyEncoding); - public static DataframeAnalysisFeatureProcessor MultiEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorMultiEncoding dataframeAnalysisFeatureProcessorMultiEncoding) => new DataframeAnalysisFeatureProcessor("multi_encoding", dataframeAnalysisFeatureProcessorMultiEncoding); - public static DataframeAnalysisFeatureProcessor NGramEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorNGramEncoding dataframeAnalysisFeatureProcessorNGramEncoding) => new DataframeAnalysisFeatureProcessor("n_gram_encoding", dataframeAnalysisFeatureProcessorNGramEncoding); - public static DataframeAnalysisFeatureProcessor OneHotEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorOneHotEncoding dataframeAnalysisFeatureProcessorOneHotEncoding) => new DataframeAnalysisFeatureProcessor("one_hot_encoding", dataframeAnalysisFeatureProcessorOneHotEncoding); - public static DataframeAnalysisFeatureProcessor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorTargetMeanEncoding dataframeAnalysisFeatureProcessorTargetMeanEncoding) => new DataframeAnalysisFeatureProcessor("target_mean_encoding", dataframeAnalysisFeatureProcessorTargetMeanEncoding); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class DataframeAnalysisFeatureProcessorConverter : JsonConverter -{ - public override DataframeAnalysisFeatureProcessor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "frequency_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "multi_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "n_gram_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "one_hot_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "target_mean_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeAnalysisFeatureProcessor' from the response."); - } - - var result = new DataframeAnalysisFeatureProcessor(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisFeatureProcessor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "frequency_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorFrequencyEncoding)value.Variant, options); - break; - case "multi_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorMultiEncoding)value.Variant, options); - break; - case "n_gram_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorNGramEncoding)value.Variant, options); - break; - case "one_hot_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorOneHotEncoding)value.Variant, options); - break; - case "target_mean_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorTargetMeanEncoding)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisFeatureProcessorDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisFeatureProcessorDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DataframeAnalysisFeatureProcessorDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DataframeAnalysisFeatureProcessorDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public DataframeAnalysisFeatureProcessorDescriptor FrequencyEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorFrequencyEncoding dataframeAnalysisFeatureProcessorFrequencyEncoding) => Set(dataframeAnalysisFeatureProcessorFrequencyEncoding, "frequency_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor FrequencyEncoding(Action> configure) => Set(configure, "frequency_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor MultiEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorMultiEncoding dataframeAnalysisFeatureProcessorMultiEncoding) => Set(dataframeAnalysisFeatureProcessorMultiEncoding, "multi_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor MultiEncoding(Action configure) => Set(configure, "multi_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor NGramEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorNGramEncoding dataframeAnalysisFeatureProcessorNGramEncoding) => Set(dataframeAnalysisFeatureProcessorNGramEncoding, "n_gram_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor NGramEncoding(Action> configure) => Set(configure, "n_gram_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor OneHotEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorOneHotEncoding dataframeAnalysisFeatureProcessorOneHotEncoding) => Set(dataframeAnalysisFeatureProcessorOneHotEncoding, "one_hot_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor OneHotEncoding(Action> configure) => Set(configure, "one_hot_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorTargetMeanEncoding dataframeAnalysisFeatureProcessorTargetMeanEncoding) => Set(dataframeAnalysisFeatureProcessorTargetMeanEncoding, "target_mean_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor TargetMeanEncoding(Action> configure) => Set(configure, "target_mean_encoding"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisFeatureProcessorDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisFeatureProcessorDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DataframeAnalysisFeatureProcessorDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DataframeAnalysisFeatureProcessorDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public DataframeAnalysisFeatureProcessorDescriptor FrequencyEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorFrequencyEncoding dataframeAnalysisFeatureProcessorFrequencyEncoding) => Set(dataframeAnalysisFeatureProcessorFrequencyEncoding, "frequency_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor FrequencyEncoding(Action configure) => Set(configure, "frequency_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor MultiEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorMultiEncoding dataframeAnalysisFeatureProcessorMultiEncoding) => Set(dataframeAnalysisFeatureProcessorMultiEncoding, "multi_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor MultiEncoding(Action configure) => Set(configure, "multi_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor NGramEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorNGramEncoding dataframeAnalysisFeatureProcessorNGramEncoding) => Set(dataframeAnalysisFeatureProcessorNGramEncoding, "n_gram_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor NGramEncoding(Action configure) => Set(configure, "n_gram_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor OneHotEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorOneHotEncoding dataframeAnalysisFeatureProcessorOneHotEncoding) => Set(dataframeAnalysisFeatureProcessorOneHotEncoding, "one_hot_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor OneHotEncoding(Action configure) => Set(configure, "one_hot_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorTargetMeanEncoding dataframeAnalysisFeatureProcessorTargetMeanEncoding) => Set(dataframeAnalysisFeatureProcessorTargetMeanEncoding, "target_mean_encoding"); - public DataframeAnalysisFeatureProcessorDescriptor TargetMeanEncoding(Action configure) => Set(configure, "target_mean_encoding"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs deleted file mode 100644 index 77877ebd80b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorFrequencyEncoding.g.cs +++ /dev/null @@ -1,181 +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.MachineLearning; - -public sealed partial class DataframeAnalysisFeatureProcessorFrequencyEncoding -{ - /// - /// - /// The resulting feature name. - /// - /// - [JsonInclude, JsonPropertyName("feature_name")] - public Elastic.Clients.Elasticsearch.Serverless.Name FeatureName { get; set; } - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0. - /// - /// - [JsonInclude, JsonPropertyName("frequency_map")] - public IDictionary FrequencyMap { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor(DataframeAnalysisFeatureProcessorFrequencyEncoding dataframeAnalysisFeatureProcessorFrequencyEncoding) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor.FrequencyEncoding(dataframeAnalysisFeatureProcessorFrequencyEncoding); -} - -public sealed partial class DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Name FeatureNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private IDictionary FrequencyMapValue { get; set; } - - /// - /// - /// The resulting feature name. - /// - /// - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Serverless.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0. - /// - /// - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Name FeatureNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private IDictionary FrequencyMapValue { get; set; } - - /// - /// - /// The resulting feature name. - /// - /// - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Serverless.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The resulting frequency map for the field value. If the field value is missing from the frequency_map, the resulting value is 0. - /// - /// - public DataframeAnalysisFeatureProcessorFrequencyEncodingDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs deleted file mode 100644 index 82cdc66c1be..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorMultiEncoding.g.cs +++ /dev/null @@ -1,71 +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.MachineLearning; - -public sealed partial class DataframeAnalysisFeatureProcessorMultiEncoding -{ - /// - /// - /// The ordered array of custom processors to execute. Must be more than 1. - /// - /// - [JsonInclude, JsonPropertyName("processors")] - public ICollection Processors { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor(DataframeAnalysisFeatureProcessorMultiEncoding dataframeAnalysisFeatureProcessorMultiEncoding) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor.MultiEncoding(dataframeAnalysisFeatureProcessorMultiEncoding); -} - -public sealed partial class DataframeAnalysisFeatureProcessorMultiEncodingDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisFeatureProcessorMultiEncodingDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorMultiEncodingDescriptor() : base() - { - } - - private ICollection ProcessorsValue { get; set; } - - /// - /// - /// The ordered array of custom processors to execute. Must be more than 1. - /// - /// - public DataframeAnalysisFeatureProcessorMultiEncodingDescriptor Processors(ICollection processors) - { - ProcessorsValue = processors; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("processors"); - JsonSerializer.Serialize(writer, ProcessorsValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs deleted file mode 100644 index 348742af9c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorNGramEncoding.g.cs +++ /dev/null @@ -1,342 +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.MachineLearning; - -public sealed partial class DataframeAnalysisFeatureProcessorNGramEncoding -{ - [JsonInclude, JsonPropertyName("custom")] - public bool? Custom { get; set; } - - /// - /// - /// The feature name prefix. Defaults to ngram_<start>_<length>. - /// - /// - [JsonInclude, JsonPropertyName("feature_prefix")] - public string? FeaturePrefix { get; set; } - - /// - /// - /// The name of the text field to encode. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0. - /// - /// - [JsonInclude, JsonPropertyName("length")] - public int? Length { get; set; } - - /// - /// - /// Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5. - /// - /// - [JsonInclude, JsonPropertyName("n_grams")] - public ICollection NGrams { get; set; } - - /// - /// - /// Specifies the zero-indexed start of the n-gram substring. Negative values are allowed for encoding n-grams of string suffixes. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public int? Start { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor(DataframeAnalysisFeatureProcessorNGramEncoding dataframeAnalysisFeatureProcessorNGramEncoding) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor.NGramEncoding(dataframeAnalysisFeatureProcessorNGramEncoding); -} - -public sealed partial class DataframeAnalysisFeatureProcessorNGramEncodingDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisFeatureProcessorNGramEncodingDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor() : base() - { - } - - private bool? CustomValue { get; set; } - private string? FeaturePrefixValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? LengthValue { get; set; } - private ICollection NGramsValue { get; set; } - private int? StartValue { get; set; } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Custom(bool? custom = true) - { - CustomValue = custom; - return Self; - } - - /// - /// - /// The feature name prefix. Defaults to ngram_<start>_<length>. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor FeaturePrefix(string? featurePrefix) - { - FeaturePrefixValue = featurePrefix; - return Self; - } - - /// - /// - /// The name of the text field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the text field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the text field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Length(int? length) - { - LengthValue = length; - return Self; - } - - /// - /// - /// Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor NGrams(ICollection nGrams) - { - NGramsValue = nGrams; - return Self; - } - - /// - /// - /// Specifies the zero-indexed start of the n-gram substring. Negative values are allowed for encoding n-grams of string suffixes. Defaults to 0. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Start(int? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CustomValue.HasValue) - { - writer.WritePropertyName("custom"); - writer.WriteBooleanValue(CustomValue.Value); - } - - if (!string.IsNullOrEmpty(FeaturePrefixValue)) - { - writer.WritePropertyName("feature_prefix"); - writer.WriteStringValue(FeaturePrefixValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LengthValue.HasValue) - { - writer.WritePropertyName("length"); - writer.WriteNumberValue(LengthValue.Value); - } - - writer.WritePropertyName("n_grams"); - JsonSerializer.Serialize(writer, NGramsValue, options); - if (StartValue.HasValue) - { - writer.WritePropertyName("start"); - writer.WriteNumberValue(StartValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisFeatureProcessorNGramEncodingDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisFeatureProcessorNGramEncodingDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor() : base() - { - } - - private bool? CustomValue { get; set; } - private string? FeaturePrefixValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? LengthValue { get; set; } - private ICollection NGramsValue { get; set; } - private int? StartValue { get; set; } - - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Custom(bool? custom = true) - { - CustomValue = custom; - return Self; - } - - /// - /// - /// The feature name prefix. Defaults to ngram_<start>_<length>. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor FeaturePrefix(string? featurePrefix) - { - FeaturePrefixValue = featurePrefix; - return Self; - } - - /// - /// - /// The name of the text field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the text field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the text field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specifies the length of the n-gram substring. Defaults to 50. Must be greater than 0. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Length(int? length) - { - LengthValue = length; - return Self; - } - - /// - /// - /// Specifies which n-grams to gather. It’s an array of integer values where the minimum value is 1, and a maximum value is 5. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor NGrams(ICollection nGrams) - { - NGramsValue = nGrams; - return Self; - } - - /// - /// - /// Specifies the zero-indexed start of the n-gram substring. Negative values are allowed for encoding n-grams of string suffixes. Defaults to 0. - /// - /// - public DataframeAnalysisFeatureProcessorNGramEncodingDescriptor Start(int? start) - { - StartValue = start; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CustomValue.HasValue) - { - writer.WritePropertyName("custom"); - writer.WriteBooleanValue(CustomValue.Value); - } - - if (!string.IsNullOrEmpty(FeaturePrefixValue)) - { - writer.WritePropertyName("feature_prefix"); - writer.WriteStringValue(FeaturePrefixValue); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LengthValue.HasValue) - { - writer.WritePropertyName("length"); - writer.WriteNumberValue(LengthValue.Value); - } - - writer.WritePropertyName("n_grams"); - JsonSerializer.Serialize(writer, NGramsValue, options); - if (StartValue.HasValue) - { - writer.WritePropertyName("start"); - writer.WriteNumberValue(StartValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs deleted file mode 100644 index c30935c7521..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorOneHotEncoding.g.cs +++ /dev/null @@ -1,181 +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.MachineLearning; - -public sealed partial class DataframeAnalysisFeatureProcessorOneHotEncoding -{ - /// - /// - /// The name of the field to encode. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The one hot map mapping the field value with the column name. - /// - /// - [JsonInclude, JsonPropertyName("hot_map")] - public string HotMap { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor(DataframeAnalysisFeatureProcessorOneHotEncoding dataframeAnalysisFeatureProcessorOneHotEncoding) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor.OneHotEncoding(dataframeAnalysisFeatureProcessorOneHotEncoding); -} - -public sealed partial class DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string HotMapValue { get; set; } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The one hot map mapping the field value with the column name. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor HotMap(string hotMap) - { - HotMapValue = hotMap; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("hot_map"); - writer.WriteStringValue(HotMapValue); - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string HotMapValue { get; set; } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The one hot map mapping the field value with the column name. - /// - /// - public DataframeAnalysisFeatureProcessorOneHotEncodingDescriptor HotMap(string hotMap) - { - HotMapValue = hotMap; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("hot_map"); - writer.WriteStringValue(HotMapValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs deleted file mode 100644 index 68086c92e87..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisFeatureProcessorTargetMeanEncoding.g.cs +++ /dev/null @@ -1,253 +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.MachineLearning; - -public sealed partial class DataframeAnalysisFeatureProcessorTargetMeanEncoding -{ - /// - /// - /// The default value if field value is not found in the target_map. - /// - /// - [JsonInclude, JsonPropertyName("default_value")] - public int DefaultValue { get; set; } - - /// - /// - /// The resulting feature name. - /// - /// - [JsonInclude, JsonPropertyName("feature_name")] - public Elastic.Clients.Elasticsearch.Serverless.Name FeatureName { get; set; } - - /// - /// - /// The name of the field to encode. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The field value to target mean transition map. - /// - /// - [JsonInclude, JsonPropertyName("target_map")] - public IDictionary TargetMap { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor(DataframeAnalysisFeatureProcessorTargetMeanEncoding dataframeAnalysisFeatureProcessorTargetMeanEncoding) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessor.TargetMeanEncoding(dataframeAnalysisFeatureProcessorTargetMeanEncoding); -} - -public sealed partial class DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor() : base() - { - } - - private int DefaultValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name FeatureNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private IDictionary TargetMapValue { get; set; } - - /// - /// - /// The default value if field value is not found in the target_map. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor DefaultValue(int defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - /// - /// - /// The resulting feature name. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Serverless.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field value to target mean transition map. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor() : base() - { - } - - private int DefaultValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name FeatureNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private IDictionary TargetMapValue { get; set; } - - /// - /// - /// The default value if field value is not found in the target_map. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor DefaultValue(int defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - /// - /// - /// The resulting feature name. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor FeatureName(Elastic.Clients.Elasticsearch.Serverless.Name featureName) - { - FeatureNameValue = featureName; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field to encode. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The field value to target mean transition map. - /// - /// - public DataframeAnalysisFeatureProcessorTargetMeanEncodingDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - JsonSerializer.Serialize(writer, FeatureNameValue, options); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs deleted file mode 100644 index 3331daf6d3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisOutlierDetection.g.cs +++ /dev/null @@ -1,205 +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.MachineLearning; - -public sealed partial class DataframeAnalysisOutlierDetection -{ - /// - /// - /// Specifies whether the feature influence calculation is enabled. - /// - /// - [JsonInclude, JsonPropertyName("compute_feature_influence")] - public bool? ComputeFeatureInfluence { get; set; } - - /// - /// - /// The minimum outlier score that a document needs to have in order to calculate its feature influence score. Value range: 0-1. - /// - /// - [JsonInclude, JsonPropertyName("feature_influence_threshold")] - public double? FeatureInfluenceThreshold { get; set; } - - /// - /// - /// The method that outlier detection uses. Available methods are lof, ldof, distance_kth_nn, distance_knn, and ensemble. The default value is ensemble, which means that outlier detection uses an ensemble of different methods and normalises and combines their individual outlier scores to obtain the overall outlier score. - /// - /// - [JsonInclude, JsonPropertyName("method")] - public string? Method { get; set; } - - /// - /// - /// Defines the value for how many nearest neighbors each method of outlier detection uses to calculate its outlier score. When the value is not set, different values are used for different ensemble members. This default behavior helps improve the diversity in the ensemble; only override it if you are confident that the value you choose is appropriate for the data set. - /// - /// - [JsonInclude, JsonPropertyName("n_neighbors")] - public int? NNeighbors { get; set; } - - /// - /// - /// The proportion of the data set that is assumed to be outlying prior to outlier detection. For example, 0.05 means it is assumed that 5% of values are real outliers and 95% are inliers. - /// - /// - [JsonInclude, JsonPropertyName("outlier_fraction")] - public double? OutlierFraction { get; set; } - - /// - /// - /// If true, the following operation is performed on the columns before computing outlier scores: (x_i - mean(x_i)) / sd(x_i). - /// - /// - [JsonInclude, JsonPropertyName("standardization_enabled")] - public bool? StandardizationEnabled { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis(DataframeAnalysisOutlierDetection dataframeAnalysisOutlierDetection) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis.OutlierDetection(dataframeAnalysisOutlierDetection); -} - -public sealed partial class DataframeAnalysisOutlierDetectionDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisOutlierDetectionDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisOutlierDetectionDescriptor() : base() - { - } - - private bool? ComputeFeatureInfluenceValue { get; set; } - private double? FeatureInfluenceThresholdValue { get; set; } - private string? MethodValue { get; set; } - private int? NNeighborsValue { get; set; } - private double? OutlierFractionValue { get; set; } - private bool? StandardizationEnabledValue { get; set; } - - /// - /// - /// Specifies whether the feature influence calculation is enabled. - /// - /// - public DataframeAnalysisOutlierDetectionDescriptor ComputeFeatureInfluence(bool? computeFeatureInfluence = true) - { - ComputeFeatureInfluenceValue = computeFeatureInfluence; - return Self; - } - - /// - /// - /// The minimum outlier score that a document needs to have in order to calculate its feature influence score. Value range: 0-1. - /// - /// - public DataframeAnalysisOutlierDetectionDescriptor FeatureInfluenceThreshold(double? featureInfluenceThreshold) - { - FeatureInfluenceThresholdValue = featureInfluenceThreshold; - return Self; - } - - /// - /// - /// The method that outlier detection uses. Available methods are lof, ldof, distance_kth_nn, distance_knn, and ensemble. The default value is ensemble, which means that outlier detection uses an ensemble of different methods and normalises and combines their individual outlier scores to obtain the overall outlier score. - /// - /// - public DataframeAnalysisOutlierDetectionDescriptor Method(string? method) - { - MethodValue = method; - return Self; - } - - /// - /// - /// Defines the value for how many nearest neighbors each method of outlier detection uses to calculate its outlier score. When the value is not set, different values are used for different ensemble members. This default behavior helps improve the diversity in the ensemble; only override it if you are confident that the value you choose is appropriate for the data set. - /// - /// - public DataframeAnalysisOutlierDetectionDescriptor NNeighbors(int? nNeighbors) - { - NNeighborsValue = nNeighbors; - return Self; - } - - /// - /// - /// The proportion of the data set that is assumed to be outlying prior to outlier detection. For example, 0.05 means it is assumed that 5% of values are real outliers and 95% are inliers. - /// - /// - public DataframeAnalysisOutlierDetectionDescriptor OutlierFraction(double? outlierFraction) - { - OutlierFractionValue = outlierFraction; - return Self; - } - - /// - /// - /// If true, the following operation is performed on the columns before computing outlier scores: (x_i - mean(x_i)) / sd(x_i). - /// - /// - public DataframeAnalysisOutlierDetectionDescriptor StandardizationEnabled(bool? standardizationEnabled = true) - { - StandardizationEnabledValue = standardizationEnabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ComputeFeatureInfluenceValue.HasValue) - { - writer.WritePropertyName("compute_feature_influence"); - writer.WriteBooleanValue(ComputeFeatureInfluenceValue.Value); - } - - if (FeatureInfluenceThresholdValue.HasValue) - { - writer.WritePropertyName("feature_influence_threshold"); - writer.WriteNumberValue(FeatureInfluenceThresholdValue.Value); - } - - if (!string.IsNullOrEmpty(MethodValue)) - { - writer.WritePropertyName("method"); - writer.WriteStringValue(MethodValue); - } - - if (NNeighborsValue.HasValue) - { - writer.WritePropertyName("n_neighbors"); - writer.WriteNumberValue(NNeighborsValue.Value); - } - - if (OutlierFractionValue.HasValue) - { - writer.WritePropertyName("outlier_fraction"); - writer.WriteNumberValue(OutlierFractionValue.Value); - } - - if (StandardizationEnabledValue.HasValue) - { - writer.WritePropertyName("standardization_enabled"); - writer.WriteBooleanValue(StandardizationEnabledValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs deleted file mode 100644 index d8aa08cedd4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalysisRegression.g.cs +++ /dev/null @@ -1,1344 +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.MachineLearning; - -internal sealed partial class DataframeAnalysisRegressionConverter : JsonConverter -{ - public override DataframeAnalysisRegression Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DataframeAnalysisRegression(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "alpha") - { - variant.Alpha = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "dependent_variable") - { - variant.DependentVariable = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "downsample_factor") - { - variant.DownsampleFactor = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "early_stopping_enabled") - { - variant.EarlyStoppingEnabled = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta") - { - variant.Eta = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "eta_growth_rate_per_tree") - { - variant.EtaGrowthRatePerTree = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_bag_fraction") - { - variant.FeatureBagFraction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "feature_processors") - { - variant.FeatureProcessors = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "gamma") - { - variant.Gamma = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lambda") - { - variant.Lambda = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "loss_function") - { - variant.LossFunction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "loss_function_parameter") - { - variant.LossFunctionParameter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_optimization_rounds_per_hyperparameter") - { - variant.MaxOptimizationRoundsPerHyperparameter = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_trees" || property == "maximum_number_trees") - { - variant.MaxTrees = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "num_top_feature_importance_values") - { - variant.NumTopFeatureImportanceValues = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prediction_field_name") - { - variant.PredictionFieldName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "randomize_seed") - { - variant.RandomizeSeed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_limit") - { - variant.SoftTreeDepthLimit = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "soft_tree_depth_tolerance") - { - variant.SoftTreeDepthTolerance = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "training_percent") - { - variant.TrainingPercent = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DataframeAnalysisRegression value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Alpha.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(value.Alpha.Value); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(value.DependentVariable); - if (value.DownsampleFactor.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(value.DownsampleFactor.Value); - } - - if (value.EarlyStoppingEnabled.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(value.EarlyStoppingEnabled.Value); - } - - if (value.Eta.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(value.Eta.Value); - } - - if (value.EtaGrowthRatePerTree.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(value.EtaGrowthRatePerTree.Value); - } - - if (value.FeatureBagFraction.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(value.FeatureBagFraction.Value); - } - - if (value.FeatureProcessors is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, value.FeatureProcessors, options); - } - - if (value.Gamma.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(value.Gamma.Value); - } - - if (value.Lambda.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(value.Lambda.Value); - } - - if (!string.IsNullOrEmpty(value.LossFunction)) - { - writer.WritePropertyName("loss_function"); - writer.WriteStringValue(value.LossFunction); - } - - if (value.LossFunctionParameter.HasValue) - { - writer.WritePropertyName("loss_function_parameter"); - writer.WriteNumberValue(value.LossFunctionParameter.Value); - } - - if (value.MaxOptimizationRoundsPerHyperparameter.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(value.MaxOptimizationRoundsPerHyperparameter.Value); - } - - if (value.MaxTrees.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(value.MaxTrees.Value); - } - - if (value.NumTopFeatureImportanceValues.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(value.NumTopFeatureImportanceValues.Value); - } - - if (value.PredictionFieldName is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, value.PredictionFieldName, options); - } - - if (value.RandomizeSeed.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(value.RandomizeSeed.Value); - } - - if (value.SoftTreeDepthLimit.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(value.SoftTreeDepthLimit.Value); - } - - if (value.SoftTreeDepthTolerance.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(value.SoftTreeDepthTolerance.Value); - } - - if (value.TrainingPercent.HasValue) - { - writer.WritePropertyName("training_percent"); - writer.WriteNumberValue(value.TrainingPercent.Value); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(DataframeAnalysisRegressionConverter))] -public sealed partial class DataframeAnalysisRegression -{ - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero. - /// - /// - public double? Alpha { get; set; } - - /// - /// - /// Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable. - /// For classification analysis, the data type of the field must be numeric (integer, short, long, byte), categorical (ip or keyword), or boolean. There must be no more than 30 different values in this field. - /// For regression analysis, the data type of the field must be numeric. - /// - /// - public string DependentVariable { get; set; } - - /// - /// - /// Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1. - /// - /// - public double? DownsampleFactor { get; set; } - - /// - /// - /// Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable. - /// - /// - public bool? EarlyStoppingEnabled { get; set; } - - /// - /// - /// Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1. - /// - /// - public double? Eta { get; set; } - - /// - /// - /// Advanced configuration option. Specifies the rate at which eta increases for each new tree that is added to the forest. For example, a rate of 1.05 increases eta by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2. - /// - /// - public double? EtaGrowthRatePerTree { get; set; } - - /// - /// - /// Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization. - /// - /// - public double? FeatureBagFraction { get; set; } - - /// - /// - /// Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple feature_processors entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields. - /// - /// - public ICollection? FeatureProcessors { get; set; } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public double? Gamma { get; set; } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public double? Lambda { get; set; } - - /// - /// - /// The loss function used during regression. Available options are mse (mean squared error), msle (mean squared logarithmic error), huber (Pseudo-Huber loss). - /// - /// - public string? LossFunction { get; set; } - - /// - /// - /// A positive number that is used as a parameter to the loss_function. - /// - /// - public double? LossFunctionParameter { get; set; } - - /// - /// - /// Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization. - /// - /// - public int? MaxOptimizationRoundsPerHyperparameter { get; set; } - - /// - /// - /// Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization. - /// - /// - public int? MaxTrees { get; set; } - - /// - /// - /// Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs. - /// - /// - public int? NumTopFeatureImportanceValues { get; set; } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Field? PredictionFieldName { get; set; } - - /// - /// - /// Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as source and analyzed_fields are the same). - /// - /// - public double? RandomizeSeed { get; set; } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the soft_tree_depth_tolerance to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0. - /// - /// - public int? SoftTreeDepthLimit { get; set; } - - /// - /// - /// Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds soft_tree_depth_limit. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01. - /// - /// - public double? SoftTreeDepthTolerance { get; set; } - - /// - /// - /// Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage. - /// - /// - public double? TrainingPercent { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis(DataframeAnalysisRegression dataframeAnalysisRegression) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis.Regression(dataframeAnalysisRegression); -} - -public sealed partial class DataframeAnalysisRegressionDescriptor : SerializableDescriptor> -{ - internal DataframeAnalysisRegressionDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalysisRegressionDescriptor() : base() - { - } - - private double? AlphaValue { get; set; } - private string DependentVariableValue { get; set; } - private double? DownsampleFactorValue { get; set; } - private bool? EarlyStoppingEnabledValue { get; set; } - private double? EtaValue { get; set; } - private double? EtaGrowthRatePerTreeValue { get; set; } - private double? FeatureBagFractionValue { get; set; } - private ICollection? FeatureProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - private Action> FeatureProcessorsDescriptorAction { get; set; } - private Action>[] FeatureProcessorsDescriptorActions { get; set; } - private double? GammaValue { get; set; } - private double? LambdaValue { get; set; } - private string? LossFunctionValue { get; set; } - private double? LossFunctionParameterValue { get; set; } - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - private int? MaxTreesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PredictionFieldNameValue { get; set; } - private double? RandomizeSeedValue { get; set; } - private int? SoftTreeDepthLimitValue { get; set; } - private double? SoftTreeDepthToleranceValue { get; set; } - private double? TrainingPercentValue { get; set; } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero. - /// - /// - public DataframeAnalysisRegressionDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - /// - /// - /// Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable. - /// For classification analysis, the data type of the field must be numeric (integer, short, long, byte), categorical (ip or keyword), or boolean. There must be no more than 30 different values in this field. - /// For regression analysis, the data type of the field must be numeric. - /// - /// - public DataframeAnalysisRegressionDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - /// - /// - /// Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1. - /// - /// - public DataframeAnalysisRegressionDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable. - /// - /// - public DataframeAnalysisRegressionDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - /// - /// - /// Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1. - /// - /// - public DataframeAnalysisRegressionDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the rate at which eta increases for each new tree that is added to the forest. For example, a rate of 1.05 increases eta by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2. - /// - /// - public DataframeAnalysisRegressionDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisRegressionDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - /// - /// - /// Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple feature_processors entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields. - /// - /// - public DataframeAnalysisRegressionDescriptor FeatureProcessors(ICollection? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(Action> configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(params Action>[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisRegressionDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisRegressionDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - /// - /// - /// The loss function used during regression. Available options are mse (mean squared error), msle (mean squared logarithmic error), huber (Pseudo-Huber loss). - /// - /// - public DataframeAnalysisRegressionDescriptor LossFunction(string? lossFunction) - { - LossFunctionValue = lossFunction; - return Self; - } - - /// - /// - /// A positive number that is used as a parameter to the loss_function. - /// - /// - public DataframeAnalysisRegressionDescriptor LossFunctionParameter(double? lossFunctionParameter) - { - LossFunctionParameterValue = lossFunctionParameter; - return Self; - } - - /// - /// - /// Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisRegressionDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisRegressionDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs. - /// - /// - public DataframeAnalysisRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as source and analyzed_fields are the same). - /// - /// - public DataframeAnalysisRegressionDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the soft_tree_depth_tolerance to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0. - /// - /// - public DataframeAnalysisRegressionDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - /// - /// - /// Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds soft_tree_depth_limit. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01. - /// - /// - public DataframeAnalysisRegressionDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - /// - /// - /// Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage. - /// - /// - public DataframeAnalysisRegressionDescriptor TrainingPercent(double? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (!string.IsNullOrEmpty(LossFunctionValue)) - { - writer.WritePropertyName("loss_function"); - writer.WriteStringValue(LossFunctionValue); - } - - if (LossFunctionParameterValue.HasValue) - { - writer.WritePropertyName("loss_function_parameter"); - writer.WriteNumberValue(LossFunctionParameterValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue.HasValue) - { - writer.WritePropertyName("training_percent"); - writer.WriteNumberValue(TrainingPercentValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalysisRegressionDescriptor : SerializableDescriptor -{ - internal DataframeAnalysisRegressionDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalysisRegressionDescriptor() : base() - { - } - - private double? AlphaValue { get; set; } - private string DependentVariableValue { get; set; } - private double? DownsampleFactorValue { get; set; } - private bool? EarlyStoppingEnabledValue { get; set; } - private double? EtaValue { get; set; } - private double? EtaGrowthRatePerTreeValue { get; set; } - private double? FeatureBagFractionValue { get; set; } - private ICollection? FeatureProcessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor FeatureProcessorsDescriptor { get; set; } - private Action FeatureProcessorsDescriptorAction { get; set; } - private Action[] FeatureProcessorsDescriptorActions { get; set; } - private double? GammaValue { get; set; } - private double? LambdaValue { get; set; } - private string? LossFunctionValue { get; set; } - private double? LossFunctionParameterValue { get; set; } - private int? MaxOptimizationRoundsPerHyperparameterValue { get; set; } - private int? MaxTreesValue { get; set; } - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PredictionFieldNameValue { get; set; } - private double? RandomizeSeedValue { get; set; } - private int? SoftTreeDepthLimitValue { get; set; } - private double? SoftTreeDepthToleranceValue { get; set; } - private double? TrainingPercentValue { get; set; } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This parameter affects loss calculations by acting as a multiplier of the tree depth. Higher alpha values result in shallower trees and faster training times. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to zero. - /// - /// - public DataframeAnalysisRegressionDescriptor Alpha(double? alpha) - { - AlphaValue = alpha; - return Self; - } - - /// - /// - /// Defines which field of the document is to be predicted. It must match one of the fields in the index being used to train. If this field is missing from a document, then that document will not be used for training, but a prediction with the trained model will be generated for it. It is also known as continuous target variable. - /// For classification analysis, the data type of the field must be numeric (integer, short, long, byte), categorical (ip or keyword), or boolean. There must be no more than 30 different values in this field. - /// For regression analysis, the data type of the field must be numeric. - /// - /// - public DataframeAnalysisRegressionDescriptor DependentVariable(string dependentVariable) - { - DependentVariableValue = dependentVariable; - return Self; - } - - /// - /// - /// Advanced configuration option. Controls the fraction of data that is used to compute the derivatives of the loss function for tree training. A small value results in the use of a small fraction of the data. If this value is set to be less than 1, accuracy typically improves. However, too small a value may result in poor convergence for the ensemble and so require more trees. By default, this value is calculated during hyperparameter optimization. It must be greater than zero and less than or equal to 1. - /// - /// - public DataframeAnalysisRegressionDescriptor DownsampleFactor(double? downsampleFactor) - { - DownsampleFactorValue = downsampleFactor; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies whether the training process should finish if it is not finding any better performing models. If disabled, the training process can take significantly longer and the chance of finding a better performing model is unremarkable. - /// - /// - public DataframeAnalysisRegressionDescriptor EarlyStoppingEnabled(bool? earlyStoppingEnabled = true) - { - EarlyStoppingEnabledValue = earlyStoppingEnabled; - return Self; - } - - /// - /// - /// Advanced configuration option. The shrinkage applied to the weights. Smaller values result in larger forests which have a better generalization error. However, larger forests cause slower training. By default, this value is calculated during hyperparameter optimization. It must be a value between 0.001 and 1. - /// - /// - public DataframeAnalysisRegressionDescriptor Eta(double? eta) - { - EtaValue = eta; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the rate at which eta increases for each new tree that is added to the forest. For example, a rate of 1.05 increases eta by 5% for each extra tree. By default, this value is calculated during hyperparameter optimization. It must be between 0.5 and 2. - /// - /// - public DataframeAnalysisRegressionDescriptor EtaGrowthRatePerTree(double? etaGrowthRatePerTree) - { - EtaGrowthRatePerTreeValue = etaGrowthRatePerTree; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the fraction of features that will be used when selecting a random bag for each candidate split. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisRegressionDescriptor FeatureBagFraction(double? featureBagFraction) - { - FeatureBagFractionValue = featureBagFraction; - return Self; - } - - /// - /// - /// Advanced configuration option. A collection of feature preprocessors that modify one or more included fields. The analysis uses the resulting one or more features instead of the original document field. However, these features are ephemeral; they are not stored in the destination index. Multiple feature_processors entries can refer to the same document fields. Automatic categorical feature encoding still occurs for the fields that are unprocessed by a custom processor or that have categorical values. Use this property only if you want to override the automatic feature encoding of the specified fields. - /// - /// - public DataframeAnalysisRegressionDescriptor FeatureProcessors(ICollection? featureProcessors) - { - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsValue = featureProcessors; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor descriptor) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptor = descriptor; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(Action configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorActions = null; - FeatureProcessorsDescriptorAction = configure; - return Self; - } - - public DataframeAnalysisRegressionDescriptor FeatureProcessors(params Action[] configure) - { - FeatureProcessorsValue = null; - FeatureProcessorsDescriptor = null; - FeatureProcessorsDescriptorAction = null; - FeatureProcessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies a linear penalty associated with the size of individual trees in the forest. A high gamma value causes training to prefer small trees. A small gamma value results in larger individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisRegressionDescriptor Gamma(double? gamma) - { - GammaValue = gamma; - return Self; - } - - /// - /// - /// Advanced configuration option. Regularization parameter to prevent overfitting on the training data set. Multiplies an L2 regularization term which applies to leaf weights of the individual trees in the forest. A high lambda value causes training to favor small leaf weights. This behavior makes the prediction function smoother at the expense of potentially not being able to capture relevant relationships between the features and the dependent variable. A small lambda value results in large individual trees and slower training. By default, this value is calculated during hyperparameter optimization. It must be a nonnegative value. - /// - /// - public DataframeAnalysisRegressionDescriptor Lambda(double? lambda) - { - LambdaValue = lambda; - return Self; - } - - /// - /// - /// The loss function used during regression. Available options are mse (mean squared error), msle (mean squared logarithmic error), huber (Pseudo-Huber loss). - /// - /// - public DataframeAnalysisRegressionDescriptor LossFunction(string? lossFunction) - { - LossFunctionValue = lossFunction; - return Self; - } - - /// - /// - /// A positive number that is used as a parameter to the loss_function. - /// - /// - public DataframeAnalysisRegressionDescriptor LossFunctionParameter(double? lossFunctionParameter) - { - LossFunctionParameterValue = lossFunctionParameter; - return Self; - } - - /// - /// - /// Advanced configuration option. A multiplier responsible for determining the maximum number of hyperparameter optimization steps in the Bayesian optimization procedure. The maximum number of steps is determined based on the number of undefined hyperparameters times the maximum optimization rounds per hyperparameter. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisRegressionDescriptor MaxOptimizationRoundsPerHyperparameter(int? maxOptimizationRoundsPerHyperparameter) - { - MaxOptimizationRoundsPerHyperparameterValue = maxOptimizationRoundsPerHyperparameter; - return Self; - } - - /// - /// - /// Advanced configuration option. Defines the maximum number of decision trees in the forest. The maximum value is 2000. By default, this value is calculated during hyperparameter optimization. - /// - /// - public DataframeAnalysisRegressionDescriptor MaxTrees(int? maxTrees) - { - MaxTreesValue = maxTrees; - return Self; - } - - /// - /// - /// Advanced configuration option. Specifies the maximum number of feature importance values per document to return. By default, no feature importance calculation occurs. - /// - /// - public DataframeAnalysisRegressionDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the name of the prediction field in the results. Defaults to <dependent_variable>_prediction. - /// - /// - public DataframeAnalysisRegressionDescriptor PredictionFieldName(Expression> predictionFieldName) - { - PredictionFieldNameValue = predictionFieldName; - return Self; - } - - /// - /// - /// Defines the seed for the random generator that is used to pick training data. By default, it is randomly generated. Set it to a specific value to use the same training data each time you start a job (assuming other related parameters such as source and analyzed_fields are the same). - /// - /// - public DataframeAnalysisRegressionDescriptor RandomizeSeed(double? randomizeSeed) - { - RandomizeSeedValue = randomizeSeed; - return Self; - } - - /// - /// - /// Advanced configuration option. Machine learning uses loss guided tree growing, which means that the decision trees grow where the regularized loss decreases most quickly. This soft limit combines with the soft_tree_depth_tolerance to penalize trees that exceed the specified depth; the regularized loss increases quickly beyond this depth. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0. - /// - /// - public DataframeAnalysisRegressionDescriptor SoftTreeDepthLimit(int? softTreeDepthLimit) - { - SoftTreeDepthLimitValue = softTreeDepthLimit; - return Self; - } - - /// - /// - /// Advanced configuration option. This option controls how quickly the regularized loss increases when the tree depth exceeds soft_tree_depth_limit. By default, this value is calculated during hyperparameter optimization. It must be greater than or equal to 0.01. - /// - /// - public DataframeAnalysisRegressionDescriptor SoftTreeDepthTolerance(double? softTreeDepthTolerance) - { - SoftTreeDepthToleranceValue = softTreeDepthTolerance; - return Self; - } - - /// - /// - /// Defines what percentage of the eligible documents that will be used for training. Documents that are ignored by the analysis (for example those that contain arrays with more than one value) won’t be included in the calculation for used percentage. - /// - /// - public DataframeAnalysisRegressionDescriptor TrainingPercent(double? trainingPercent) - { - TrainingPercentValue = trainingPercent; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlphaValue.HasValue) - { - writer.WritePropertyName("alpha"); - writer.WriteNumberValue(AlphaValue.Value); - } - - writer.WritePropertyName("dependent_variable"); - writer.WriteStringValue(DependentVariableValue); - if (DownsampleFactorValue.HasValue) - { - writer.WritePropertyName("downsample_factor"); - writer.WriteNumberValue(DownsampleFactorValue.Value); - } - - if (EarlyStoppingEnabledValue.HasValue) - { - writer.WritePropertyName("early_stopping_enabled"); - writer.WriteBooleanValue(EarlyStoppingEnabledValue.Value); - } - - if (EtaValue.HasValue) - { - writer.WritePropertyName("eta"); - writer.WriteNumberValue(EtaValue.Value); - } - - if (EtaGrowthRatePerTreeValue.HasValue) - { - writer.WritePropertyName("eta_growth_rate_per_tree"); - writer.WriteNumberValue(EtaGrowthRatePerTreeValue.Value); - } - - if (FeatureBagFractionValue.HasValue) - { - writer.WritePropertyName("feature_bag_fraction"); - writer.WriteNumberValue(FeatureBagFractionValue.Value); - } - - if (FeatureProcessorsDescriptor is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FeatureProcessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorAction is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(FeatureProcessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FeatureProcessorsDescriptorActions is not null) - { - writer.WritePropertyName("feature_processors"); - writer.WriteStartArray(); - foreach (var action in FeatureProcessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisFeatureProcessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FeatureProcessorsValue is not null) - { - writer.WritePropertyName("feature_processors"); - JsonSerializer.Serialize(writer, FeatureProcessorsValue, options); - } - - if (GammaValue.HasValue) - { - writer.WritePropertyName("gamma"); - writer.WriteNumberValue(GammaValue.Value); - } - - if (LambdaValue.HasValue) - { - writer.WritePropertyName("lambda"); - writer.WriteNumberValue(LambdaValue.Value); - } - - if (!string.IsNullOrEmpty(LossFunctionValue)) - { - writer.WritePropertyName("loss_function"); - writer.WriteStringValue(LossFunctionValue); - } - - if (LossFunctionParameterValue.HasValue) - { - writer.WritePropertyName("loss_function_parameter"); - writer.WriteNumberValue(LossFunctionParameterValue.Value); - } - - if (MaxOptimizationRoundsPerHyperparameterValue.HasValue) - { - writer.WritePropertyName("max_optimization_rounds_per_hyperparameter"); - writer.WriteNumberValue(MaxOptimizationRoundsPerHyperparameterValue.Value); - } - - if (MaxTreesValue.HasValue) - { - writer.WritePropertyName("max_trees"); - writer.WriteNumberValue(MaxTreesValue.Value); - } - - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (PredictionFieldNameValue is not null) - { - writer.WritePropertyName("prediction_field_name"); - JsonSerializer.Serialize(writer, PredictionFieldNameValue, options); - } - - if (RandomizeSeedValue.HasValue) - { - writer.WritePropertyName("randomize_seed"); - writer.WriteNumberValue(RandomizeSeedValue.Value); - } - - if (SoftTreeDepthLimitValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_limit"); - writer.WriteNumberValue(SoftTreeDepthLimitValue.Value); - } - - if (SoftTreeDepthToleranceValue.HasValue) - { - writer.WritePropertyName("soft_tree_depth_tolerance"); - writer.WriteNumberValue(SoftTreeDepthToleranceValue.Value); - } - - if (TrainingPercentValue.HasValue) - { - writer.WritePropertyName("training_percent"); - writer.WriteNumberValue(TrainingPercentValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs deleted file mode 100644 index f8050261083..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalytics.g.cs +++ /dev/null @@ -1,79 +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.MachineLearning; - -public sealed partial class DataframeAnalytics -{ - /// - /// - /// For running jobs only, contains messages relating to the selection of a node to run the job. - /// - /// - [JsonInclude, JsonPropertyName("assignment_explanation")] - public string? AssignmentExplanation { get; init; } - - /// - /// - /// An object that provides counts for the quantity of documents skipped, used in training, or available for testing. - /// - /// - [JsonInclude, JsonPropertyName("data_counts")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsStatsDataCounts DataCounts { get; init; } - - /// - /// - /// The unique identifier of the data frame analytics job. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// An object describing memory usage of the analytics. It is present only after the job is started and memory usage is reported. - /// - /// - [JsonInclude, JsonPropertyName("memory_usage")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsStatsMemoryUsage MemoryUsage { get; init; } - - /// - /// - /// The progress report of the data frame analytics job by phase. - /// - /// - [JsonInclude, JsonPropertyName("progress")] - public IReadOnlyCollection Progress { get; init; } - - /// - /// - /// The status of the data frame analytics job, which can be one of the following values: failed, started, starting, stopping, stopped. - /// - /// - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeState State { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs deleted file mode 100644 index ec4d17328df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsAuthorization.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsAuthorization -{ - /// - /// - /// If an API key was used for the most recent update to the job, its name and identifier are listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ApiKeyAuthorization? ApiKey { get; init; } - - /// - /// - /// If a user ID was used for the most recent update to the job, its roles at the time of the update are listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - /// - /// - /// If a service account was used for the most recent update to the job, the account name is listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("service_account")] - public string? ServiceAccount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs deleted file mode 100644 index 81422f87404..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsDestination.g.cs +++ /dev/null @@ -1,187 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsDestination -{ - /// - /// - /// Defines the destination index to store the results of the data frame analytics job. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ResultsField { get; set; } -} - -public sealed partial class DataframeAnalyticsDestinationDescriptor : SerializableDescriptor> -{ - internal DataframeAnalyticsDestinationDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalyticsDestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - - /// - /// - /// Defines the destination index to store the results of the data frame analytics job. - /// - /// - public DataframeAnalyticsDestinationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - public DataframeAnalyticsDestinationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalyticsDestinationDescriptor : SerializableDescriptor -{ - internal DataframeAnalyticsDestinationDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalyticsDestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - - /// - /// - /// Defines the destination index to store the results of the data frame analytics job. - /// - /// - public DataframeAnalyticsDestinationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - public DataframeAnalyticsDestinationDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// Defines the name of the field in which to store the results of the analysis. Defaults to ml. - /// - /// - public DataframeAnalyticsDestinationDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs deleted file mode 100644 index d99a523835a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsFieldSelection.g.cs +++ /dev/null @@ -1,79 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsFieldSelection -{ - /// - /// - /// The feature type of this field for the analysis. May be categorical or numerical. - /// - /// - [JsonInclude, JsonPropertyName("feature_type")] - public string? FeatureType { get; init; } - - /// - /// - /// Whether the field is selected to be included in the analysis. - /// - /// - [JsonInclude, JsonPropertyName("is_included")] - public bool IsIncluded { get; init; } - - /// - /// - /// Whether the field is required. - /// - /// - [JsonInclude, JsonPropertyName("is_required")] - public bool IsRequired { get; init; } - - /// - /// - /// The mapping types of the field. - /// - /// - [JsonInclude, JsonPropertyName("mapping_types")] - public IReadOnlyCollection MappingTypes { get; init; } - - /// - /// - /// The field name. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// The reason a field is not selected to be included in the analysis. - /// - /// - [JsonInclude, JsonPropertyName("reason")] - public string? Reason { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs deleted file mode 100644 index dd0c12b7901..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsMemoryEstimation.g.cs +++ /dev/null @@ -1,47 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsMemoryEstimation -{ - /// - /// - /// Estimated memory usage under the assumption that overflowing to disk is allowed during data frame analytics. expected_memory_with_disk is usually smaller than expected_memory_without_disk as using disk allows to limit the main memory needed to perform data frame analytics. - /// - /// - [JsonInclude, JsonPropertyName("expected_memory_with_disk")] - public string ExpectedMemoryWithDisk { get; init; } - - /// - /// - /// Estimated memory usage under the assumption that the whole data frame analytics should happen in memory (i.e. without overflowing to disk). - /// - /// - [JsonInclude, JsonPropertyName("expected_memory_without_disk")] - public string ExpectedMemoryWithoutDisk { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs deleted file mode 100644 index a4f72488bff..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSource.g.cs +++ /dev/null @@ -1,351 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsSource -{ - /// - /// - /// Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.Indices Indices { get; set; } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Definitions of runtime fields that will become part of the mapping of the destination index. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } - - /// - /// - /// Specify includes and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis. - /// - /// - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? Source { get; set; } -} - -public sealed partial class DataframeAnalyticsSourceDescriptor : SerializableDescriptor> -{ - internal DataframeAnalyticsSourceDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeAnalyticsSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - - /// - /// - /// Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index. - /// - /// - public DataframeAnalyticsSourceDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}. - /// - /// - public DataframeAnalyticsSourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Definitions of runtime fields that will become part of the mapping of the destination index. - /// - /// - public DataframeAnalyticsSourceDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Specify includes and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis. - /// - /// - public DataframeAnalyticsSourceDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeAnalyticsSourceDescriptor : SerializableDescriptor -{ - internal DataframeAnalyticsSourceDescriptor(Action configure) => configure.Invoke(this); - - public DataframeAnalyticsSourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - - /// - /// - /// Index or indices on which to perform the analysis. It can be a single index or index pattern as well as an array of indices or patterns. NOTE: If your source indices contain documents with the same IDs, only the document that is indexed last appears in the destination index. - /// - /// - public DataframeAnalyticsSourceDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch. By default, this property has the following value: {"match_all": {}}. - /// - /// - public DataframeAnalyticsSourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Definitions of runtime fields that will become part of the mapping of the destination index. - /// - /// - public DataframeAnalyticsSourceDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Specify includes and/or `excludes patterns to select which fields will be present in the destination. Fields that are excluded cannot be included in the analysis. - /// - /// - public DataframeAnalyticsSourceDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframeAnalyticsSourceDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs deleted file mode 100644 index 7a5eedc30d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsDataCounts.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsStatsDataCounts -{ - /// - /// - /// The number of documents that are skipped during the analysis because they contained values that are not supported by the analysis. For example, outlier detection does not support missing fields so it skips documents with missing fields. Likewise, all types of analysis skip documents that contain arrays with more than one element. - /// - /// - [JsonInclude, JsonPropertyName("skipped_docs_count")] - public int SkippedDocsCount { get; init; } - - /// - /// - /// The number of documents that are not used for training the model and can be used for testing. - /// - /// - [JsonInclude, JsonPropertyName("test_docs_count")] - public int TestDocsCount { get; init; } - - /// - /// - /// The number of documents that are used for training the model. - /// - /// - [JsonInclude, JsonPropertyName("training_docs_count")] - public int TrainingDocsCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs deleted file mode 100644 index d9b2ed04691..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsMemoryUsage.g.cs +++ /dev/null @@ -1,63 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsStatsMemoryUsage -{ - /// - /// - /// This value is present when the status is hard_limit and it is a new estimate of how much memory the job needs. - /// - /// - [JsonInclude, JsonPropertyName("memory_reestimate_bytes")] - public long? MemoryReestimateBytes { get; init; } - - /// - /// - /// The number of bytes used at the highest peak of memory usage. - /// - /// - [JsonInclude, JsonPropertyName("peak_usage_bytes")] - public long PeakUsageBytes { get; init; } - - /// - /// - /// The memory usage status. - /// - /// - [JsonInclude, JsonPropertyName("status")] - public string Status { get; init; } - - /// - /// - /// The timestamp when memory usage was calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs deleted file mode 100644 index c61a9dae93a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsStatsProgress.g.cs +++ /dev/null @@ -1,47 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsStatsProgress -{ - /// - /// - /// Defines the phase of the data frame analytics job. - /// - /// - [JsonInclude, JsonPropertyName("phase")] - public string Phase { get; init; } - - /// - /// - /// The progress that the data frame analytics job has made expressed in percentage. - /// - /// - [JsonInclude, JsonPropertyName("progress_percent")] - public int ProgressPercent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs deleted file mode 100644 index f5ff47be1e7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeAnalyticsSummary.g.cs +++ /dev/null @@ -1,64 +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.MachineLearning; - -public sealed partial class DataframeAnalyticsSummary -{ - [JsonInclude, JsonPropertyName("allow_lazy_start")] - public bool? AllowLazyStart { get; init; } - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis Analysis { get; init; } - [JsonInclude, JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; init; } - - /// - /// - /// The security privileges that the job uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the job, this property is omitted. - /// - /// - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsAuthorization? Authorization { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public long? CreateTime { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsDestination Dest { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; init; } - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource Source { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs deleted file mode 100644 index ef0f0d47608..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummary.g.cs +++ /dev/null @@ -1,72 +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.MachineLearning; - -public sealed partial class DataframeClassificationSummary -{ - /// - /// - /// Accuracy of predictions (per-class and overall). - /// - /// - [JsonInclude, JsonPropertyName("accuracy")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeClassificationSummaryAccuracy? Accuracy { get; init; } - - /// - /// - /// The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. - /// It is calculated for a specific class (provided as "class_name") treated as positive. - /// - /// - [JsonInclude, JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationSummaryAucRoc? AucRoc { get; init; } - - /// - /// - /// Multiclass confusion matrix. - /// - /// - [JsonInclude, JsonPropertyName("multiclass_confusion_matrix")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeClassificationSummaryMulticlassConfusionMatrix? MulticlassConfusionMatrix { get; init; } - - /// - /// - /// Precision of predictions (per-class and average). - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeClassificationSummaryPrecision? Precision { get; init; } - - /// - /// - /// Recall of predictions (per-class and average). - /// - /// - [JsonInclude, JsonPropertyName("recall")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeClassificationSummaryRecall? Recall { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs deleted file mode 100644 index 1054f98958c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryAccuracy.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class DataframeClassificationSummaryAccuracy -{ - [JsonInclude, JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } - [JsonInclude, JsonPropertyName("overall_accuracy")] - public double OverallAccuracy { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs deleted file mode 100644 index 0ec22d13667..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryMulticlassConfusionMatrix.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class DataframeClassificationSummaryMulticlassConfusionMatrix -{ - [JsonInclude, JsonPropertyName("confusion_matrix")] - public IReadOnlyCollection ConfusionMatrix { get; init; } - [JsonInclude, JsonPropertyName("other_actual_class_count")] - public int OtherActualClassCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs deleted file mode 100644 index 8505fdf2805..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryPrecision.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class DataframeClassificationSummaryPrecision -{ - [JsonInclude, JsonPropertyName("avg_precision")] - public double AvgPrecision { get; init; } - [JsonInclude, JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs deleted file mode 100644 index 724a607404f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeClassificationSummaryRecall.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class DataframeClassificationSummaryRecall -{ - [JsonInclude, JsonPropertyName("avg_recall")] - public double AvgRecall { get; init; } - [JsonInclude, JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs deleted file mode 100644 index 1d558249276..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluation.g.cs +++ /dev/null @@ -1,257 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -[JsonConverter(typeof(DataframeEvaluationConverter))] -public sealed partial class DataframeEvaluation -{ - internal DataframeEvaluation(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static DataframeEvaluation Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassification dataframeEvaluationClassification) => new DataframeEvaluation("classification", dataframeEvaluationClassification); - public static DataframeEvaluation OutlierDetection(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetection dataframeEvaluationOutlierDetection) => new DataframeEvaluation("outlier_detection", dataframeEvaluationOutlierDetection); - public static DataframeEvaluation Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegression dataframeEvaluationRegression) => new DataframeEvaluation("regression", dataframeEvaluationRegression); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class DataframeEvaluationConverter : JsonConverter -{ - public override DataframeEvaluation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "outlier_detection") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regression") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DataframeEvaluation' from the response."); - } - - var result = new DataframeEvaluation(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, DataframeEvaluation value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassification)value.Variant, options); - break; - case "outlier_detection": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetection)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegression)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeEvaluationDescriptor : SerializableDescriptor> -{ - internal DataframeEvaluationDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeEvaluationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DataframeEvaluationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DataframeEvaluationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public DataframeEvaluationDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassification dataframeEvaluationClassification) => Set(dataframeEvaluationClassification, "classification"); - public DataframeEvaluationDescriptor Classification(Action> configure) => Set(configure, "classification"); - public DataframeEvaluationDescriptor OutlierDetection(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetection dataframeEvaluationOutlierDetection) => Set(dataframeEvaluationOutlierDetection, "outlier_detection"); - public DataframeEvaluationDescriptor OutlierDetection(Action> configure) => Set(configure, "outlier_detection"); - public DataframeEvaluationDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegression dataframeEvaluationRegression) => Set(dataframeEvaluationRegression, "regression"); - public DataframeEvaluationDescriptor Regression(Action> configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeEvaluationDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DataframeEvaluationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DataframeEvaluationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public DataframeEvaluationDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassification dataframeEvaluationClassification) => Set(dataframeEvaluationClassification, "classification"); - public DataframeEvaluationDescriptor Classification(Action configure) => Set(configure, "classification"); - public DataframeEvaluationDescriptor OutlierDetection(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetection dataframeEvaluationOutlierDetection) => Set(dataframeEvaluationOutlierDetection, "outlier_detection"); - public DataframeEvaluationDescriptor OutlierDetection(Action configure) => Set(configure, "outlier_detection"); - public DataframeEvaluationDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegression dataframeEvaluationRegression) => Set(dataframeEvaluationRegression, "regression"); - public DataframeEvaluationDescriptor Regression(Action configure) => Set(configure, "regression"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs deleted file mode 100644 index d57392546ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClass.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class DataframeEvaluationClass -{ - [JsonInclude, JsonPropertyName("class_name")] - public string ClassName { get; init; } - [JsonInclude, JsonPropertyName("value")] - public double Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs deleted file mode 100644 index b41069346fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassification.g.cs +++ /dev/null @@ -1,425 +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.MachineLearning; - -public sealed partial class DataframeEvaluationClassification -{ - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - [JsonInclude, JsonPropertyName("actual_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field ActualField { get; set; } - - /// - /// - /// Specifies the metrics that are used for the evaluation. - /// - /// - [JsonInclude, JsonPropertyName("metrics")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetrics? Metrics { get; set; } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - [JsonInclude, JsonPropertyName("predicted_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? PredictedField { get; set; } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - [JsonInclude, JsonPropertyName("top_classes_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TopClassesField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation(DataframeEvaluationClassification dataframeEvaluationClassification) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation.Classification(dataframeEvaluationClassification); -} - -public sealed partial class DataframeEvaluationClassificationDescriptor : SerializableDescriptor> -{ - internal DataframeEvaluationClassificationDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeEvaluationClassificationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field ActualFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetrics? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PredictedFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TopClassesFieldValue { get; set; } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationClassificationDescriptor ActualField(Elastic.Clients.Elasticsearch.Serverless.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// Specifies the metrics that are used for the evaluation. - /// - /// - public DataframeEvaluationClassificationDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - public DataframeEvaluationClassificationDescriptor PredictedField(Elastic.Clients.Elasticsearch.Serverless.Field? predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - public DataframeEvaluationClassificationDescriptor TopClassesField(Elastic.Clients.Elasticsearch.Serverless.Field? topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - if (PredictedFieldValue is not null) - { - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - } - - if (TopClassesFieldValue is not null) - { - writer.WritePropertyName("top_classes_field"); - JsonSerializer.Serialize(writer, TopClassesFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeEvaluationClassificationDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationClassificationDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationClassificationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field ActualFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetrics? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PredictedFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TopClassesFieldValue { get; set; } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationClassificationDescriptor ActualField(Elastic.Clients.Elasticsearch.Serverless.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationClassificationDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// Specifies the metrics that are used for the evaluation. - /// - /// - public DataframeEvaluationClassificationDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationClassificationDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - public DataframeEvaluationClassificationDescriptor PredictedField(Elastic.Clients.Elasticsearch.Serverless.Field? predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index which contains the predicted value, in other words the results of the classification analysis. - /// - /// - public DataframeEvaluationClassificationDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - public DataframeEvaluationClassificationDescriptor TopClassesField(Elastic.Clients.Elasticsearch.Serverless.Field? topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - /// - /// - /// The field of the index which is an array of documents of the form { "class_name": XXX, "class_probability": YYY }. This field must be defined as nested in the mappings. - /// - /// - public DataframeEvaluationClassificationDescriptor TopClassesField(Expression> topClassesField) - { - TopClassesFieldValue = topClassesField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - if (PredictedFieldValue is not null) - { - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - } - - if (TopClassesFieldValue is not null) - { - writer.WritePropertyName("top_classes_field"); - JsonSerializer.Serialize(writer, TopClassesFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs deleted file mode 100644 index f776f2df50a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetrics.g.cs +++ /dev/null @@ -1,207 +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.MachineLearning; - -public sealed partial class DataframeEvaluationClassificationMetrics -{ - /// - /// - /// Accuracy of predictions (per-class and overall). - /// - /// - [JsonInclude, JsonPropertyName("accuracy")] - public IDictionary? Accuracy { get; set; } - - /// - /// - /// The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. It is calculated for a specific class (provided as "class_name") treated as positive. - /// - /// - [JsonInclude, JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRoc? AucRoc { get; set; } - - /// - /// - /// Multiclass confusion matrix. - /// - /// - [JsonInclude, JsonPropertyName("multiclass_confusion_matrix")] - public IDictionary? MulticlassConfusionMatrix { get; set; } - - /// - /// - /// Precision of predictions (per-class and average). - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public IDictionary? Precision { get; set; } - - /// - /// - /// Recall of predictions (per-class and average). - /// - /// - [JsonInclude, JsonPropertyName("recall")] - public IDictionary? Recall { get; set; } -} - -public sealed partial class DataframeEvaluationClassificationMetricsDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationClassificationMetricsDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationClassificationMetricsDescriptor() : base() - { - } - - private IDictionary? AccuracyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRoc? AucRocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRocDescriptor AucRocDescriptor { get; set; } - private Action AucRocDescriptorAction { get; set; } - private IDictionary? MulticlassConfusionMatrixValue { get; set; } - private IDictionary? PrecisionValue { get; set; } - private IDictionary? RecallValue { get; set; } - - /// - /// - /// Accuracy of predictions (per-class and overall). - /// - /// - public DataframeEvaluationClassificationMetricsDescriptor Accuracy(Func, FluentDictionary> selector) - { - AccuracyValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. It is calculated for a specific class (provided as "class_name") treated as positive. - /// - /// - public DataframeEvaluationClassificationMetricsDescriptor AucRoc(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRoc? aucRoc) - { - AucRocDescriptor = null; - AucRocDescriptorAction = null; - AucRocValue = aucRoc; - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor AucRoc(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRocDescriptor descriptor) - { - AucRocValue = null; - AucRocDescriptorAction = null; - AucRocDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationClassificationMetricsDescriptor AucRoc(Action configure) - { - AucRocValue = null; - AucRocDescriptor = null; - AucRocDescriptorAction = configure; - return Self; - } - - /// - /// - /// Multiclass confusion matrix. - /// - /// - public DataframeEvaluationClassificationMetricsDescriptor MulticlassConfusionMatrix(Func, FluentDictionary> selector) - { - MulticlassConfusionMatrixValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Precision of predictions (per-class and average). - /// - /// - public DataframeEvaluationClassificationMetricsDescriptor Precision(Func, FluentDictionary> selector) - { - PrecisionValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Recall of predictions (per-class and average). - /// - /// - public DataframeEvaluationClassificationMetricsDescriptor Recall(Func, FluentDictionary> selector) - { - RecallValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AccuracyValue is not null) - { - writer.WritePropertyName("accuracy"); - JsonSerializer.Serialize(writer, AccuracyValue, options); - } - - if (AucRocDescriptor is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocDescriptor, options); - } - else if (AucRocDescriptorAction is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRocDescriptor(AucRocDescriptorAction), options); - } - else if (AucRocValue is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocValue, options); - } - - if (MulticlassConfusionMatrixValue is not null) - { - writer.WritePropertyName("multiclass_confusion_matrix"); - JsonSerializer.Serialize(writer, MulticlassConfusionMatrixValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (RecallValue is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, RecallValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs deleted file mode 100644 index 4c8632f587f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationClassificationMetricsAucRoc.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class DataframeEvaluationClassificationMetricsAucRoc -{ - /// - /// - /// Name of the only class that is treated as positive during AUC ROC calculation. Other classes are treated as negative ("one-vs-all" strategy). All the evaluated documents must have class_name in the list of their top classes. - /// - /// - [JsonInclude, JsonPropertyName("class_name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? ClassName { get; set; } - - /// - /// - /// Whether or not the curve should be returned in addition to the score. Default value is false. - /// - /// - [JsonInclude, JsonPropertyName("include_curve")] - public bool? IncludeCurve { get; set; } -} - -public sealed partial class DataframeEvaluationClassificationMetricsAucRocDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationClassificationMetricsAucRocDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationClassificationMetricsAucRocDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Name? ClassNameValue { get; set; } - private bool? IncludeCurveValue { get; set; } - - /// - /// - /// Name of the only class that is treated as positive during AUC ROC calculation. Other classes are treated as negative ("one-vs-all" strategy). All the evaluated documents must have class_name in the list of their top classes. - /// - /// - public DataframeEvaluationClassificationMetricsAucRocDescriptor ClassName(Elastic.Clients.Elasticsearch.Serverless.Name? className) - { - ClassNameValue = className; - return Self; - } - - /// - /// - /// Whether or not the curve should be returned in addition to the score. Default value is false. - /// - /// - public DataframeEvaluationClassificationMetricsAucRocDescriptor IncludeCurve(bool? includeCurve = true) - { - IncludeCurveValue = includeCurve; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassNameValue is not null) - { - writer.WritePropertyName("class_name"); - JsonSerializer.Serialize(writer, ClassNameValue, options); - } - - if (IncludeCurveValue.HasValue) - { - writer.WritePropertyName("include_curve"); - writer.WriteBooleanValue(IncludeCurveValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs deleted file mode 100644 index d0e2c195922..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetection.g.cs +++ /dev/null @@ -1,329 +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.MachineLearning; - -public sealed partial class DataframeEvaluationOutlierDetection -{ - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - [JsonInclude, JsonPropertyName("actual_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field ActualField { get; set; } - - /// - /// - /// Specifies the metrics that are used for the evaluation. - /// - /// - [JsonInclude, JsonPropertyName("metrics")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetrics? Metrics { get; set; } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - [JsonInclude, JsonPropertyName("predicted_probability_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field PredictedProbabilityField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation(DataframeEvaluationOutlierDetection dataframeEvaluationOutlierDetection) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation.OutlierDetection(dataframeEvaluationOutlierDetection); -} - -public sealed partial class DataframeEvaluationOutlierDetectionDescriptor : SerializableDescriptor> -{ - internal DataframeEvaluationOutlierDetectionDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeEvaluationOutlierDetectionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field ActualFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetrics? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetricsDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field PredictedProbabilityFieldValue { get; set; } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Elastic.Clients.Elasticsearch.Serverless.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// Specifies the metrics that are used for the evaluation. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Elastic.Clients.Elasticsearch.Serverless.Field predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_probability_field"); - JsonSerializer.Serialize(writer, PredictedProbabilityFieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeEvaluationOutlierDetectionDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationOutlierDetectionDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationOutlierDetectionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field ActualFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetrics? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetricsDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field PredictedProbabilityFieldValue { get; set; } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Elastic.Clients.Elasticsearch.Serverless.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field can be boolean or integer. If the data type is integer, the value has to be either 0 (false) or 1 (true). - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// Specifies the metrics that are used for the evaluation. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationOutlierDetectionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Elastic.Clients.Elasticsearch.Serverless.Field predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - /// - /// - /// The field of the index that defines the probability of whether the item belongs to the class in question or not. It’s the field that contains the results of the analysis. - /// - /// - public DataframeEvaluationOutlierDetectionDescriptor PredictedProbabilityField(Expression> predictedProbabilityField) - { - PredictedProbabilityFieldValue = predictedProbabilityField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationOutlierDetectionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_probability_field"); - JsonSerializer.Serialize(writer, PredictedProbabilityFieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs deleted file mode 100644 index 708bc5f7268..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationOutlierDetectionMetrics.g.cs +++ /dev/null @@ -1,181 +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.MachineLearning; - -public sealed partial class DataframeEvaluationOutlierDetectionMetrics -{ - /// - /// - /// The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. It is calculated for a specific class (provided as "class_name") treated as positive. - /// - /// - [JsonInclude, JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRoc? AucRoc { get; set; } - - /// - /// - /// Accuracy of predictions (per-class and overall). - /// - /// - [JsonInclude, JsonPropertyName("confusion_matrix")] - public IDictionary? ConfusionMatrix { get; set; } - - /// - /// - /// Precision of predictions (per-class and average). - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public IDictionary? Precision { get; set; } - - /// - /// - /// Recall of predictions (per-class and average). - /// - /// - [JsonInclude, JsonPropertyName("recall")] - public IDictionary? Recall { get; set; } -} - -public sealed partial class DataframeEvaluationOutlierDetectionMetricsDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationOutlierDetectionMetricsDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationOutlierDetectionMetricsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRoc? AucRocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRocDescriptor AucRocDescriptor { get; set; } - private Action AucRocDescriptorAction { get; set; } - private IDictionary? ConfusionMatrixValue { get; set; } - private IDictionary? PrecisionValue { get; set; } - private IDictionary? RecallValue { get; set; } - - /// - /// - /// The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. It is calculated for a specific class (provided as "class_name") treated as positive. - /// - /// - public DataframeEvaluationOutlierDetectionMetricsDescriptor AucRoc(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRoc? aucRoc) - { - AucRocDescriptor = null; - AucRocDescriptorAction = null; - AucRocValue = aucRoc; - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor AucRoc(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRocDescriptor descriptor) - { - AucRocValue = null; - AucRocDescriptorAction = null; - AucRocDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationOutlierDetectionMetricsDescriptor AucRoc(Action configure) - { - AucRocValue = null; - AucRocDescriptor = null; - AucRocDescriptorAction = configure; - return Self; - } - - /// - /// - /// Accuracy of predictions (per-class and overall). - /// - /// - public DataframeEvaluationOutlierDetectionMetricsDescriptor ConfusionMatrix(Func, FluentDictionary> selector) - { - ConfusionMatrixValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Precision of predictions (per-class and average). - /// - /// - public DataframeEvaluationOutlierDetectionMetricsDescriptor Precision(Func, FluentDictionary> selector) - { - PrecisionValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Recall of predictions (per-class and average). - /// - /// - public DataframeEvaluationOutlierDetectionMetricsDescriptor Recall(Func, FluentDictionary> selector) - { - RecallValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AucRocDescriptor is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocDescriptor, options); - } - else if (AucRocDescriptorAction is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationClassificationMetricsAucRocDescriptor(AucRocDescriptorAction), options); - } - else if (AucRocValue is not null) - { - writer.WritePropertyName("auc_roc"); - JsonSerializer.Serialize(writer, AucRocValue, options); - } - - if (ConfusionMatrixValue is not null) - { - writer.WritePropertyName("confusion_matrix"); - JsonSerializer.Serialize(writer, ConfusionMatrixValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - if (RecallValue is not null) - { - writer.WritePropertyName("recall"); - JsonSerializer.Serialize(writer, RecallValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs deleted file mode 100644 index d232ce84dd3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegression.g.cs +++ /dev/null @@ -1,329 +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.MachineLearning; - -public sealed partial class DataframeEvaluationRegression -{ - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - [JsonInclude, JsonPropertyName("actual_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field ActualField { get; set; } - - /// - /// - /// Specifies the metrics that are used for the evaluation. For more information on mse, msle, and huber, consult the Jupyter notebook on regression loss functions. - /// - /// - [JsonInclude, JsonPropertyName("metrics")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetrics? Metrics { get; set; } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - [JsonInclude, JsonPropertyName("predicted_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field PredictedField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation(DataframeEvaluationRegression dataframeEvaluationRegression) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluation.Regression(dataframeEvaluationRegression); -} - -public sealed partial class DataframeEvaluationRegressionDescriptor : SerializableDescriptor> -{ - internal DataframeEvaluationRegressionDescriptor(Action> configure) => configure.Invoke(this); - - public DataframeEvaluationRegressionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field ActualFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetrics? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field PredictedFieldValue { get; set; } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - public DataframeEvaluationRegressionDescriptor ActualField(Elastic.Clients.Elasticsearch.Serverless.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// Specifies the metrics that are used for the evaluation. For more information on mse, msle, and huber, consult the Jupyter notebook on regression loss functions. - /// - /// - public DataframeEvaluationRegressionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - public DataframeEvaluationRegressionDescriptor PredictedField(Elastic.Clients.Elasticsearch.Serverless.Field predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class DataframeEvaluationRegressionDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationRegressionDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationRegressionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field ActualFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetrics? MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsDescriptor MetricsDescriptor { get; set; } - private Action MetricsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field PredictedFieldValue { get; set; } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - public DataframeEvaluationRegressionDescriptor ActualField(Elastic.Clients.Elasticsearch.Serverless.Field actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// The field of the index which contains the ground truth. The data type of this field must be numerical. - /// - /// - public DataframeEvaluationRegressionDescriptor ActualField(Expression> actualField) - { - ActualFieldValue = actualField; - return Self; - } - - /// - /// - /// Specifies the metrics that are used for the evaluation. For more information on mse, msle, and huber, consult the Jupyter notebook on regression loss functions. - /// - /// - public DataframeEvaluationRegressionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetrics? metrics) - { - MetricsDescriptor = null; - MetricsDescriptorAction = null; - MetricsValue = metrics; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsDescriptor descriptor) - { - MetricsValue = null; - MetricsDescriptorAction = null; - MetricsDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionDescriptor Metrics(Action configure) - { - MetricsValue = null; - MetricsDescriptor = null; - MetricsDescriptorAction = configure; - return Self; - } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - public DataframeEvaluationRegressionDescriptor PredictedField(Elastic.Clients.Elasticsearch.Serverless.Field predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - /// - /// - /// The field in the index that contains the predicted value, in other words the results of the regression analysis. - /// - /// - public DataframeEvaluationRegressionDescriptor PredictedField(Expression> predictedField) - { - PredictedFieldValue = predictedField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actual_field"); - JsonSerializer.Serialize(writer, ActualFieldValue, options); - if (MetricsDescriptor is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsDescriptor, options); - } - else if (MetricsDescriptorAction is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsDescriptor(MetricsDescriptorAction), options); - } - else if (MetricsValue is not null) - { - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - } - - writer.WritePropertyName("predicted_field"); - JsonSerializer.Serialize(writer, PredictedFieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs deleted file mode 100644 index f360d6b2ad1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetrics.g.cs +++ /dev/null @@ -1,211 +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.MachineLearning; - -public sealed partial class DataframeEvaluationRegressionMetrics -{ - /// - /// - /// Pseudo Huber loss function. - /// - /// - [JsonInclude, JsonPropertyName("huber")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsHuber? Huber { get; set; } - - /// - /// - /// Average squared difference between the predicted values and the actual (ground truth) value. For more information, read this wiki article. - /// - /// - [JsonInclude, JsonPropertyName("mse")] - public IDictionary? Mse { get; set; } - - /// - /// - /// Average squared difference between the logarithm of the predicted values and the logarithm of the actual (ground truth) value. - /// - /// - [JsonInclude, JsonPropertyName("msle")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsMsle? Msle { get; set; } - - /// - /// - /// Proportion of the variance in the dependent variable that is predictable from the independent variables. - /// - /// - [JsonInclude, JsonPropertyName("r_squared")] - public IDictionary? RSquared { get; set; } -} - -public sealed partial class DataframeEvaluationRegressionMetricsDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationRegressionMetricsDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationRegressionMetricsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsHuber? HuberValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsHuberDescriptor HuberDescriptor { get; set; } - private Action HuberDescriptorAction { get; set; } - private IDictionary? MseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsMsle? MsleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsMsleDescriptor MsleDescriptor { get; set; } - private Action MsleDescriptorAction { get; set; } - private IDictionary? RSquaredValue { get; set; } - - /// - /// - /// Pseudo Huber loss function. - /// - /// - public DataframeEvaluationRegressionMetricsDescriptor Huber(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsHuber? huber) - { - HuberDescriptor = null; - HuberDescriptorAction = null; - HuberValue = huber; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Huber(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsHuberDescriptor descriptor) - { - HuberValue = null; - HuberDescriptorAction = null; - HuberDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Huber(Action configure) - { - HuberValue = null; - HuberDescriptor = null; - HuberDescriptorAction = configure; - return Self; - } - - /// - /// - /// Average squared difference between the predicted values and the actual (ground truth) value. For more information, read this wiki article. - /// - /// - public DataframeEvaluationRegressionMetricsDescriptor Mse(Func, FluentDictionary> selector) - { - MseValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Average squared difference between the logarithm of the predicted values and the logarithm of the actual (ground truth) value. - /// - /// - public DataframeEvaluationRegressionMetricsDescriptor Msle(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsMsle? msle) - { - MsleDescriptor = null; - MsleDescriptorAction = null; - MsleValue = msle; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Msle(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsMsleDescriptor descriptor) - { - MsleValue = null; - MsleDescriptorAction = null; - MsleDescriptor = descriptor; - return Self; - } - - public DataframeEvaluationRegressionMetricsDescriptor Msle(Action configure) - { - MsleValue = null; - MsleDescriptor = null; - MsleDescriptorAction = configure; - return Self; - } - - /// - /// - /// Proportion of the variance in the dependent variable that is predictable from the independent variables. - /// - /// - public DataframeEvaluationRegressionMetricsDescriptor RSquared(Func, FluentDictionary> selector) - { - RSquaredValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (HuberDescriptor is not null) - { - writer.WritePropertyName("huber"); - JsonSerializer.Serialize(writer, HuberDescriptor, options); - } - else if (HuberDescriptorAction is not null) - { - writer.WritePropertyName("huber"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsHuberDescriptor(HuberDescriptorAction), options); - } - else if (HuberValue is not null) - { - writer.WritePropertyName("huber"); - JsonSerializer.Serialize(writer, HuberValue, options); - } - - if (MseValue is not null) - { - writer.WritePropertyName("mse"); - JsonSerializer.Serialize(writer, MseValue, options); - } - - if (MsleDescriptor is not null) - { - writer.WritePropertyName("msle"); - JsonSerializer.Serialize(writer, MsleDescriptor, options); - } - else if (MsleDescriptorAction is not null) - { - writer.WritePropertyName("msle"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationRegressionMetricsMsleDescriptor(MsleDescriptorAction), options); - } - else if (MsleValue is not null) - { - writer.WritePropertyName("msle"); - JsonSerializer.Serialize(writer, MsleValue, options); - } - - if (RSquaredValue is not null) - { - writer.WritePropertyName("r_squared"); - JsonSerializer.Serialize(writer, RSquaredValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs deleted file mode 100644 index e1388d95a21..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsHuber.g.cs +++ /dev/null @@ -1,73 +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.MachineLearning; - -public sealed partial class DataframeEvaluationRegressionMetricsHuber -{ - /// - /// - /// Approximates 1/2 (prediction - actual)2 for values much less than delta and approximates a straight line with slope delta for values much larger than delta. Defaults to 1. Delta needs to be greater than 0. - /// - /// - [JsonInclude, JsonPropertyName("delta")] - public double? Delta { get; set; } -} - -public sealed partial class DataframeEvaluationRegressionMetricsHuberDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationRegressionMetricsHuberDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationRegressionMetricsHuberDescriptor() : base() - { - } - - private double? DeltaValue { get; set; } - - /// - /// - /// Approximates 1/2 (prediction - actual)2 for values much less than delta and approximates a straight line with slope delta for values much larger than delta. Defaults to 1. Delta needs to be greater than 0. - /// - /// - public DataframeEvaluationRegressionMetricsHuberDescriptor Delta(double? delta) - { - DeltaValue = delta; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DeltaValue.HasValue) - { - writer.WritePropertyName("delta"); - writer.WriteNumberValue(DeltaValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs deleted file mode 100644 index 0d7b10c329d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationRegressionMetricsMsle.g.cs +++ /dev/null @@ -1,73 +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.MachineLearning; - -public sealed partial class DataframeEvaluationRegressionMetricsMsle -{ - /// - /// - /// Defines the transition point at which you switch from minimizing quadratic error to minimizing quadratic log error. Defaults to 1. - /// - /// - [JsonInclude, JsonPropertyName("offset")] - public double? Offset { get; set; } -} - -public sealed partial class DataframeEvaluationRegressionMetricsMsleDescriptor : SerializableDescriptor -{ - internal DataframeEvaluationRegressionMetricsMsleDescriptor(Action configure) => configure.Invoke(this); - - public DataframeEvaluationRegressionMetricsMsleDescriptor() : base() - { - } - - private double? OffsetValue { get; set; } - - /// - /// - /// Defines the transition point at which you switch from minimizing quadratic error to minimizing quadratic log error. Defaults to 1. - /// - /// - public DataframeEvaluationRegressionMetricsMsleDescriptor Offset(double? offset) - { - OffsetValue = offset; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OffsetValue.HasValue) - { - writer.WritePropertyName("offset"); - writer.WriteNumberValue(OffsetValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs deleted file mode 100644 index b1868bf3ba3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRoc.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class DataframeEvaluationSummaryAucRoc -{ - [JsonInclude, JsonPropertyName("curve")] - public IReadOnlyCollection? Curve { get; init; } - [JsonInclude, JsonPropertyName("value")] - public double Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs deleted file mode 100644 index 6475a4ac6c5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationSummaryAucRocCurveItem.g.cs +++ /dev/null @@ -1,38 +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.MachineLearning; - -public sealed partial class DataframeEvaluationSummaryAucRocCurveItem -{ - [JsonInclude, JsonPropertyName("fpr")] - public double Fpr { get; init; } - [JsonInclude, JsonPropertyName("threshold")] - public double Threshold { get; init; } - [JsonInclude, JsonPropertyName("tpr")] - public double Tpr { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs deleted file mode 100644 index 1fecfee17d8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeEvaluationValue.g.cs +++ /dev/null @@ -1,34 +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.MachineLearning; - -public sealed partial class DataframeEvaluationValue -{ - [JsonInclude, JsonPropertyName("value")] - public double Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs deleted file mode 100644 index 43170ed7f19..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeOutlierDetectionSummary.g.cs +++ /dev/null @@ -1,63 +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.MachineLearning; - -public sealed partial class DataframeOutlierDetectionSummary -{ - /// - /// - /// The AUC ROC (area under the curve of the receiver operating characteristic) score and optionally the curve. - /// - /// - [JsonInclude, JsonPropertyName("auc_roc")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationSummaryAucRoc? AucRoc { get; init; } - - /// - /// - /// Set the different thresholds of the outlier score at where the metrics (tp - true positive, fp - false positive, tn - true negative, fn - false negative) are calculated. - /// - /// - [JsonInclude, JsonPropertyName("confusion_matrix")] - public IReadOnlyDictionary? ConfusionMatrix { get; init; } - - /// - /// - /// Set the different thresholds of the outlier score at where the metric is calculated. - /// - /// - [JsonInclude, JsonPropertyName("precision")] - public IReadOnlyDictionary? Precision { get; init; } - - /// - /// - /// Set the different thresholds of the outlier score at where the metric is calculated. - /// - /// - [JsonInclude, JsonPropertyName("recall")] - public IReadOnlyDictionary? Recall { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs deleted file mode 100644 index e75fa0df884..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframePreviewConfig.g.cs +++ /dev/null @@ -1,384 +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.MachineLearning; - -public sealed partial class DataframePreviewConfig -{ - [JsonInclude, JsonPropertyName("analysis")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis Analysis { get; set; } - [JsonInclude, JsonPropertyName("analyzed_fields")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFields { get; set; } - [JsonInclude, JsonPropertyName("max_num_threads")] - public int? MaxNumThreads { get; set; } - [JsonInclude, JsonPropertyName("model_memory_limit")] - public string? ModelMemoryLimit { get; set; } - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource Source { get; set; } -} - -public sealed partial class DataframePreviewConfigDescriptor : SerializableDescriptor> -{ - internal DataframePreviewConfigDescriptor(Action> configure) => configure.Invoke(this); - - public DataframePreviewConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action> AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - private Action AnalyzedFieldsDescriptorAction { get; set; } - private int? MaxNumThreadsValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - private Action> SourceDescriptorAction { get; set; } - - public DataframePreviewConfigDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(Action> configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public DataframePreviewConfigDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Action> configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DataframePreviewConfigDescriptor : SerializableDescriptor -{ - internal DataframePreviewConfigDescriptor(Action configure) => configure.Invoke(this); - - public DataframePreviewConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis AnalysisValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor AnalysisDescriptor { get; set; } - private Action AnalysisDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? AnalyzedFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor AnalyzedFieldsDescriptor { get; set; } - private Action AnalyzedFieldsDescriptorAction { get; set; } - private int? MaxNumThreadsValue { get; set; } - private string? ModelMemoryLimitValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - - public DataframePreviewConfigDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysis analysis) - { - AnalysisDescriptor = null; - AnalysisDescriptorAction = null; - AnalysisValue = analysis; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor descriptor) - { - AnalysisValue = null; - AnalysisDescriptorAction = null; - AnalysisDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Analysis(Action configure) - { - AnalysisValue = null; - AnalysisDescriptor = null; - AnalysisDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFields? analyzedFields) - { - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsValue = analyzedFields; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor descriptor) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptorAction = null; - AnalyzedFieldsDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor AnalyzedFields(Action configure) - { - AnalyzedFieldsValue = null; - AnalyzedFieldsDescriptor = null; - AnalyzedFieldsDescriptorAction = configure; - return Self; - } - - public DataframePreviewConfigDescriptor MaxNumThreads(int? maxNumThreads) - { - MaxNumThreadsValue = maxNumThreads; - return Self; - } - - public DataframePreviewConfigDescriptor ModelMemoryLimit(string? modelMemoryLimit) - { - ModelMemoryLimitValue = modelMemoryLimit; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSource source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public DataframePreviewConfigDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalysisDescriptor is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisDescriptor, options); - } - else if (AnalysisDescriptorAction is not null) - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisDescriptor(AnalysisDescriptorAction), options); - } - else - { - writer.WritePropertyName("analysis"); - JsonSerializer.Serialize(writer, AnalysisValue, options); - } - - if (AnalyzedFieldsDescriptor is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsDescriptor, options); - } - else if (AnalyzedFieldsDescriptorAction is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalysisAnalyzedFieldsDescriptor(AnalyzedFieldsDescriptorAction), options); - } - else if (AnalyzedFieldsValue is not null) - { - writer.WritePropertyName("analyzed_fields"); - JsonSerializer.Serialize(writer, AnalyzedFieldsValue, options); - } - - if (MaxNumThreadsValue.HasValue) - { - writer.WritePropertyName("max_num_threads"); - writer.WriteNumberValue(MaxNumThreadsValue.Value); - } - - if (!string.IsNullOrEmpty(ModelMemoryLimitValue)) - { - writer.WritePropertyName("model_memory_limit"); - writer.WriteStringValue(ModelMemoryLimitValue); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeAnalyticsSourceDescriptor(SourceDescriptorAction), options); - } - else - { - writer.WritePropertyName("source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs deleted file mode 100644 index 9d5ce63f9e8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DataframeRegressionSummary.g.cs +++ /dev/null @@ -1,63 +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.MachineLearning; - -public sealed partial class DataframeRegressionSummary -{ - /// - /// - /// Pseudo Huber loss function. - /// - /// - [JsonInclude, JsonPropertyName("huber")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationValue? Huber { get; init; } - - /// - /// - /// Average squared difference between the predicted values and the actual (ground truth) value. - /// - /// - [JsonInclude, JsonPropertyName("mse")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationValue? Mse { get; init; } - - /// - /// - /// Average squared difference between the logarithm of the predicted values and the logarithm of the actual (ground truth) value. - /// - /// - [JsonInclude, JsonPropertyName("msle")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationValue? Msle { get; init; } - - /// - /// - /// Proportion of the variance in the dependent variable that is predictable from the independent variables. - /// - /// - [JsonInclude, JsonPropertyName("r_squared")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataframeEvaluationValue? RSquared { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Defaults.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Defaults.g.cs deleted file mode 100644 index 425657063bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Defaults.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class Defaults -{ - [JsonInclude, JsonPropertyName("anomaly_detectors")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnomalyDetectors AnomalyDetectors { get; init; } - [JsonInclude, JsonPropertyName("datafeeds")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Datafeeds Datafeeds { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Definition.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Definition.g.cs deleted file mode 100644 index 1e69894799d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Definition.g.cs +++ /dev/null @@ -1,187 +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.MachineLearning; - -public sealed partial class Definition -{ - /// - /// - /// Collection of preprocessors - /// - /// - [JsonInclude, JsonPropertyName("preprocessors")] - public ICollection? Preprocessors { get; set; } - - /// - /// - /// The definition of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("trained_model")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModel TrainedModel { get; set; } -} - -public sealed partial class DefinitionDescriptor : SerializableDescriptor -{ - internal DefinitionDescriptor(Action configure) => configure.Invoke(this); - - public DefinitionDescriptor() : base() - { - } - - private ICollection? PreprocessorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PreprocessorDescriptor PreprocessorsDescriptor { get; set; } - private Action PreprocessorsDescriptorAction { get; set; } - private Action[] PreprocessorsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModel TrainedModelValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor TrainedModelDescriptor { get; set; } - private Action TrainedModelDescriptorAction { get; set; } - - /// - /// - /// Collection of preprocessors - /// - /// - public DefinitionDescriptor Preprocessors(ICollection? preprocessors) - { - PreprocessorsDescriptor = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = null; - PreprocessorsValue = preprocessors; - return Self; - } - - public DefinitionDescriptor Preprocessors(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PreprocessorDescriptor descriptor) - { - PreprocessorsValue = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = null; - PreprocessorsDescriptor = descriptor; - return Self; - } - - public DefinitionDescriptor Preprocessors(Action configure) - { - PreprocessorsValue = null; - PreprocessorsDescriptor = null; - PreprocessorsDescriptorActions = null; - PreprocessorsDescriptorAction = configure; - return Self; - } - - public DefinitionDescriptor Preprocessors(params Action[] configure) - { - PreprocessorsValue = null; - PreprocessorsDescriptor = null; - PreprocessorsDescriptorAction = null; - PreprocessorsDescriptorActions = configure; - return Self; - } - - /// - /// - /// The definition of the trained model. - /// - /// - public DefinitionDescriptor TrainedModel(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModel trainedModel) - { - TrainedModelDescriptor = null; - TrainedModelDescriptorAction = null; - TrainedModelValue = trainedModel; - return Self; - } - - public DefinitionDescriptor TrainedModel(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor descriptor) - { - TrainedModelValue = null; - TrainedModelDescriptorAction = null; - TrainedModelDescriptor = descriptor; - return Self; - } - - public DefinitionDescriptor TrainedModel(Action configure) - { - TrainedModelValue = null; - TrainedModelDescriptor = null; - TrainedModelDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PreprocessorsDescriptor is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, PreprocessorsDescriptor, options); - writer.WriteEndArray(); - } - else if (PreprocessorsDescriptorAction is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PreprocessorDescriptor(PreprocessorsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (PreprocessorsDescriptorActions is not null) - { - writer.WritePropertyName("preprocessors"); - writer.WriteStartArray(); - foreach (var action in PreprocessorsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PreprocessorDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (PreprocessorsValue is not null) - { - writer.WritePropertyName("preprocessors"); - JsonSerializer.Serialize(writer, PreprocessorsValue, options); - } - - if (TrainedModelDescriptor is not null) - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, TrainedModelDescriptor, options); - } - else if (TrainedModelDescriptorAction is not null) - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor(TrainedModelDescriptorAction), options); - } - else - { - writer.WritePropertyName("trained_model"); - JsonSerializer.Serialize(writer, TrainedModelValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs deleted file mode 100644 index ec437ef5102..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DelayedDataCheckConfig.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class DelayedDataCheckConfig -{ - /// - /// - /// The window of time that is searched for late data. This window of time ends with the latest finalized bucket. - /// It defaults to null, which causes an appropriate check_window to be calculated when the real-time datafeed runs. - /// In particular, the default check_window span calculation is based on the maximum of 2h or 8 * bucket_span. - /// - /// - [JsonInclude, JsonPropertyName("check_window")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? CheckWindow { get; set; } - - /// - /// - /// Specifies whether the datafeed periodically checks for delayed data. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } -} - -public sealed partial class DelayedDataCheckConfigDescriptor : SerializableDescriptor -{ - internal DelayedDataCheckConfigDescriptor(Action configure) => configure.Invoke(this); - - public DelayedDataCheckConfigDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? CheckWindowValue { get; set; } - private bool EnabledValue { get; set; } - - /// - /// - /// The window of time that is searched for late data. This window of time ends with the latest finalized bucket. - /// It defaults to null, which causes an appropriate check_window to be calculated when the real-time datafeed runs. - /// In particular, the default check_window span calculation is based on the maximum of 2h or 8 * bucket_span. - /// - /// - public DelayedDataCheckConfigDescriptor CheckWindow(Elastic.Clients.Elasticsearch.Serverless.Duration? checkWindow) - { - CheckWindowValue = checkWindow; - return Self; - } - - /// - /// - /// Specifies whether the datafeed periodically checks for delayed data. - /// - /// - public DelayedDataCheckConfigDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CheckWindowValue is not null) - { - writer.WritePropertyName("check_window"); - JsonSerializer.Serialize(writer, CheckWindowValue, options); - } - - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectionRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectionRule.g.cs deleted file mode 100644 index 23688092d20..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectionRule.g.cs +++ /dev/null @@ -1,311 +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.MachineLearning; - -public sealed partial class DetectionRule -{ - /// - /// - /// The set of actions to be triggered when the rule applies. If more than one action is specified the effects of all actions are combined. - /// - /// - [JsonInclude, JsonPropertyName("actions")] - public ICollection? Actions { get; set; } - - /// - /// - /// An array of numeric conditions when the rule applies. A rule must either have a non-empty scope or at least one condition. Multiple conditions are combined together with a logical AND. - /// - /// - [JsonInclude, JsonPropertyName("conditions")] - public ICollection? Conditions { get; set; } - - /// - /// - /// A scope of series where the rule applies. A rule must either have a non-empty scope or at least one condition. By default, the scope includes all series. Scoping is allowed for any of the fields that are also specified in by_field_name, over_field_name, or partition_field_name. - /// - /// - [JsonInclude, JsonPropertyName("scope")] - public IDictionary? Scope { get; set; } -} - -public sealed partial class DetectionRuleDescriptor : SerializableDescriptor> -{ - internal DetectionRuleDescriptor(Action> configure) => configure.Invoke(this); - - public DetectionRuleDescriptor() : base() - { - } - - private ICollection? ActionsValue { get; set; } - private ICollection? ConditionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor ConditionsDescriptor { get; set; } - private Action ConditionsDescriptorAction { get; set; } - private Action[] ConditionsDescriptorActions { get; set; } - private IDictionary ScopeValue { get; set; } - - /// - /// - /// The set of actions to be triggered when the rule applies. If more than one action is specified the effects of all actions are combined. - /// - /// - public DetectionRuleDescriptor Actions(ICollection? actions) - { - ActionsValue = actions; - return Self; - } - - /// - /// - /// An array of numeric conditions when the rule applies. A rule must either have a non-empty scope or at least one condition. Multiple conditions are combined together with a logical AND. - /// - /// - public DetectionRuleDescriptor Conditions(ICollection? conditions) - { - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = null; - ConditionsValue = conditions; - return Self; - } - - public DetectionRuleDescriptor Conditions(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor descriptor) - { - ConditionsValue = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = null; - ConditionsDescriptor = descriptor; - return Self; - } - - public DetectionRuleDescriptor Conditions(Action configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorActions = null; - ConditionsDescriptorAction = configure; - return Self; - } - - public DetectionRuleDescriptor Conditions(params Action[] configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A scope of series where the rule applies. A rule must either have a non-empty scope or at least one condition. By default, the scope includes all series. Scoping is allowed for any of the fields that are also specified in by_field_name, over_field_name, or partition_field_name. - /// - /// - public DetectionRuleDescriptor Scope(Func, FluentDescriptorDictionary> selector) - { - ScopeValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsValue is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - if (ConditionsDescriptor is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ConditionsDescriptor, options); - writer.WriteEndArray(); - } - else if (ConditionsDescriptorAction is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor(ConditionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ConditionsDescriptorActions is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - foreach (var action in ConditionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ConditionsValue is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsValue, options); - } - - if (ScopeValue is not null) - { - writer.WritePropertyName("scope"); - JsonSerializer.Serialize(writer, ScopeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DetectionRuleDescriptor : SerializableDescriptor -{ - internal DetectionRuleDescriptor(Action configure) => configure.Invoke(this); - - public DetectionRuleDescriptor() : base() - { - } - - private ICollection? ActionsValue { get; set; } - private ICollection? ConditionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor ConditionsDescriptor { get; set; } - private Action ConditionsDescriptorAction { get; set; } - private Action[] ConditionsDescriptorActions { get; set; } - private IDictionary ScopeValue { get; set; } - - /// - /// - /// The set of actions to be triggered when the rule applies. If more than one action is specified the effects of all actions are combined. - /// - /// - public DetectionRuleDescriptor Actions(ICollection? actions) - { - ActionsValue = actions; - return Self; - } - - /// - /// - /// An array of numeric conditions when the rule applies. A rule must either have a non-empty scope or at least one condition. Multiple conditions are combined together with a logical AND. - /// - /// - public DetectionRuleDescriptor Conditions(ICollection? conditions) - { - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = null; - ConditionsValue = conditions; - return Self; - } - - public DetectionRuleDescriptor Conditions(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor descriptor) - { - ConditionsValue = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = null; - ConditionsDescriptor = descriptor; - return Self; - } - - public DetectionRuleDescriptor Conditions(Action configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorActions = null; - ConditionsDescriptorAction = configure; - return Self; - } - - public DetectionRuleDescriptor Conditions(params Action[] configure) - { - ConditionsValue = null; - ConditionsDescriptor = null; - ConditionsDescriptorAction = null; - ConditionsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A scope of series where the rule applies. A rule must either have a non-empty scope or at least one condition. By default, the scope includes all series. Scoping is allowed for any of the fields that are also specified in by_field_name, over_field_name, or partition_field_name. - /// - /// - public DetectionRuleDescriptor Scope(Func, FluentDescriptorDictionary> selector) - { - ScopeValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsValue is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - if (ConditionsDescriptor is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ConditionsDescriptor, options); - writer.WriteEndArray(); - } - else if (ConditionsDescriptorAction is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor(ConditionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ConditionsDescriptorActions is not null) - { - writer.WritePropertyName("conditions"); - writer.WriteStartArray(); - foreach (var action in ConditionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RuleConditionDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ConditionsValue is not null) - { - writer.WritePropertyName("conditions"); - JsonSerializer.Serialize(writer, ConditionsValue, options); - } - - if (ScopeValue is not null) - { - writer.WritePropertyName("scope"); - JsonSerializer.Serialize(writer, ScopeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Detector.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Detector.g.cs deleted file mode 100644 index d609fe6d7cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Detector.g.cs +++ /dev/null @@ -1,795 +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.MachineLearning; - -public sealed partial class Detector -{ - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - [JsonInclude, JsonPropertyName("by_field_name")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ByFieldName { get; set; } - - /// - /// - /// Custom rules enable you to customize the way detectors operate. For example, a rule may dictate conditions under which results should be skipped. Kibana refers to custom rules as job rules. - /// - /// - [JsonInclude, JsonPropertyName("custom_rules")] - public ICollection? CustomRules { get; set; } - - /// - /// - /// A description of the detector. - /// - /// - [JsonInclude, JsonPropertyName("detector_description")] - public string? DetectorDescription { get; set; } - - /// - /// - /// A unique identifier for the detector. This identifier is based on the order of the detectors in the analysis_config, starting at zero. If you specify a value for this property, it is ignored. - /// - /// - [JsonInclude, JsonPropertyName("detector_index")] - public int? DetectorIndex { get; set; } - - /// - /// - /// If set, frequent entities are excluded from influencing the anomaly results. Entities can be considered frequent over time or frequent in a population. If you are working with both over and by fields, you can set exclude_frequent to all for both fields, or to by or over for those specific fields. - /// - /// - [JsonInclude, JsonPropertyName("exclude_frequent")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExcludeFrequent? ExcludeFrequent { get; set; } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - [JsonInclude, JsonPropertyName("field_name")] - public Elastic.Clients.Elasticsearch.Serverless.Field? FieldName { get; set; } - - /// - /// - /// The analysis function that is used. For example, count, rare, mean, min, max, or sum. - /// - /// - [JsonInclude, JsonPropertyName("function")] - public string? Function { get; set; } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - [JsonInclude, JsonPropertyName("over_field_name")] - public Elastic.Clients.Elasticsearch.Serverless.Field? OverFieldName { get; set; } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - [JsonInclude, JsonPropertyName("partition_field_name")] - public Elastic.Clients.Elasticsearch.Serverless.Field? PartitionFieldName { get; set; } - - /// - /// - /// Defines whether a new series is used as the null series when there is no value for the by or partition fields. - /// - /// - [JsonInclude, JsonPropertyName("use_null")] - public bool? UseNull { get; set; } -} - -public sealed partial class DetectorDescriptor : SerializableDescriptor> -{ - internal DetectorDescriptor(Action> configure) => configure.Invoke(this); - - public DetectorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? ByFieldNameValue { get; set; } - private ICollection? CustomRulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } - private Action> CustomRulesDescriptorAction { get; set; } - private Action>[] CustomRulesDescriptorActions { get; set; } - private string? DetectorDescriptionValue { get; set; } - private int? DetectorIndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExcludeFrequent? ExcludeFrequentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldNameValue { get; set; } - private string? FunctionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? OverFieldNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PartitionFieldNameValue { get; set; } - private bool? UseNullValue { get; set; } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - public DetectorDescriptor ByFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - /// - /// - /// Custom rules enable you to customize the way detectors operate. For example, a rule may dictate conditions under which results should be skipped. Kibana refers to custom rules as job rules. - /// - /// - public DetectorDescriptor CustomRules(ICollection? customRules) - { - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesValue = customRules; - return Self; - } - - public DetectorDescriptor CustomRules(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor descriptor) - { - CustomRulesValue = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptor = descriptor; - return Self; - } - - public DetectorDescriptor CustomRules(Action> configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptorAction = configure; - return Self; - } - - public DetectorDescriptor CustomRules(params Action>[] configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = configure; - return Self; - } - - /// - /// - /// A description of the detector. - /// - /// - public DetectorDescriptor DetectorDescription(string? detectorDescription) - { - DetectorDescriptionValue = detectorDescription; - return Self; - } - - /// - /// - /// A unique identifier for the detector. This identifier is based on the order of the detectors in the analysis_config, starting at zero. If you specify a value for this property, it is ignored. - /// - /// - public DetectorDescriptor DetectorIndex(int? detectorIndex) - { - DetectorIndexValue = detectorIndex; - return Self; - } - - /// - /// - /// If set, frequent entities are excluded from influencing the anomaly results. Entities can be considered frequent over time or frequent in a population. If you are working with both over and by fields, you can set exclude_frequent to all for both fields, or to by or over for those specific fields. - /// - /// - public DetectorDescriptor ExcludeFrequent(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExcludeFrequent? excludeFrequent) - { - ExcludeFrequentValue = excludeFrequent; - return Self; - } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - public DetectorDescriptor FieldName(Elastic.Clients.Elasticsearch.Serverless.Field? fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - /// - /// - /// The analysis function that is used. For example, count, rare, mean, min, max, or sum. - /// - /// - public DetectorDescriptor Function(string? function) - { - FunctionValue = function; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - public DetectorDescriptor OverFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - public DetectorDescriptor PartitionFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - /// - /// - /// Defines whether a new series is used as the null series when there is no value for the by or partition fields. - /// - /// - public DetectorDescriptor UseNull(bool? useNull = true) - { - UseNullValue = useNull; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ByFieldNameValue is not null) - { - writer.WritePropertyName("by_field_name"); - JsonSerializer.Serialize(writer, ByFieldNameValue, options); - } - - if (CustomRulesDescriptor is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorAction is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorActions is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - foreach (var action in CustomRulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CustomRulesValue is not null) - { - writer.WritePropertyName("custom_rules"); - JsonSerializer.Serialize(writer, CustomRulesValue, options); - } - - if (!string.IsNullOrEmpty(DetectorDescriptionValue)) - { - writer.WritePropertyName("detector_description"); - writer.WriteStringValue(DetectorDescriptionValue); - } - - if (DetectorIndexValue.HasValue) - { - writer.WritePropertyName("detector_index"); - writer.WriteNumberValue(DetectorIndexValue.Value); - } - - if (ExcludeFrequentValue is not null) - { - writer.WritePropertyName("exclude_frequent"); - JsonSerializer.Serialize(writer, ExcludeFrequentValue, options); - } - - if (FieldNameValue is not null) - { - writer.WritePropertyName("field_name"); - JsonSerializer.Serialize(writer, FieldNameValue, options); - } - - if (!string.IsNullOrEmpty(FunctionValue)) - { - writer.WritePropertyName("function"); - writer.WriteStringValue(FunctionValue); - } - - if (OverFieldNameValue is not null) - { - writer.WritePropertyName("over_field_name"); - JsonSerializer.Serialize(writer, OverFieldNameValue, options); - } - - if (PartitionFieldNameValue is not null) - { - writer.WritePropertyName("partition_field_name"); - JsonSerializer.Serialize(writer, PartitionFieldNameValue, options); - } - - if (UseNullValue.HasValue) - { - writer.WritePropertyName("use_null"); - writer.WriteBooleanValue(UseNullValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DetectorDescriptor : SerializableDescriptor -{ - internal DetectorDescriptor(Action configure) => configure.Invoke(this); - - public DetectorDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? ByFieldNameValue { get; set; } - private ICollection? CustomRulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } - private Action CustomRulesDescriptorAction { get; set; } - private Action[] CustomRulesDescriptorActions { get; set; } - private string? DetectorDescriptionValue { get; set; } - private int? DetectorIndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExcludeFrequent? ExcludeFrequentValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldNameValue { get; set; } - private string? FunctionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? OverFieldNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PartitionFieldNameValue { get; set; } - private bool? UseNullValue { get; set; } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - public DetectorDescriptor ByFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. - /// - /// - public DetectorDescriptor ByFieldName(Expression> byFieldName) - { - ByFieldNameValue = byFieldName; - return Self; - } - - /// - /// - /// Custom rules enable you to customize the way detectors operate. For example, a rule may dictate conditions under which results should be skipped. Kibana refers to custom rules as job rules. - /// - /// - public DetectorDescriptor CustomRules(ICollection? customRules) - { - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesValue = customRules; - return Self; - } - - public DetectorDescriptor CustomRules(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor descriptor) - { - CustomRulesValue = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptor = descriptor; - return Self; - } - - public DetectorDescriptor CustomRules(Action configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptorAction = configure; - return Self; - } - - public DetectorDescriptor CustomRules(params Action[] configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = configure; - return Self; - } - - /// - /// - /// A description of the detector. - /// - /// - public DetectorDescriptor DetectorDescription(string? detectorDescription) - { - DetectorDescriptionValue = detectorDescription; - return Self; - } - - /// - /// - /// A unique identifier for the detector. This identifier is based on the order of the detectors in the analysis_config, starting at zero. If you specify a value for this property, it is ignored. - /// - /// - public DetectorDescriptor DetectorIndex(int? detectorIndex) - { - DetectorIndexValue = detectorIndex; - return Self; - } - - /// - /// - /// If set, frequent entities are excluded from influencing the anomaly results. Entities can be considered frequent over time or frequent in a population. If you are working with both over and by fields, you can set exclude_frequent to all for both fields, or to by or over for those specific fields. - /// - /// - public DetectorDescriptor ExcludeFrequent(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExcludeFrequent? excludeFrequent) - { - ExcludeFrequentValue = excludeFrequent; - return Self; - } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - public DetectorDescriptor FieldName(Elastic.Clients.Elasticsearch.Serverless.Field? fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - /// - /// - /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. - /// - /// - public DetectorDescriptor FieldName(Expression> fieldName) - { - FieldNameValue = fieldName; - return Self; - } - - /// - /// - /// The analysis function that is used. For example, count, rare, mean, min, max, or sum. - /// - /// - public DetectorDescriptor Function(string? function) - { - FunctionValue = function; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - public DetectorDescriptor OverFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - /// - /// - /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. - /// - /// - public DetectorDescriptor OverFieldName(Expression> overFieldName) - { - OverFieldNameValue = overFieldName; - return Self; - } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - public DetectorDescriptor PartitionFieldName(Elastic.Clients.Elasticsearch.Serverless.Field? partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - /// - /// - /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. - /// - /// - public DetectorDescriptor PartitionFieldName(Expression> partitionFieldName) - { - PartitionFieldNameValue = partitionFieldName; - return Self; - } - - /// - /// - /// Defines whether a new series is used as the null series when there is no value for the by or partition fields. - /// - /// - public DetectorDescriptor UseNull(bool? useNull = true) - { - UseNullValue = useNull; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ByFieldNameValue is not null) - { - writer.WritePropertyName("by_field_name"); - JsonSerializer.Serialize(writer, ByFieldNameValue, options); - } - - if (CustomRulesDescriptor is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorAction is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorActions is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - foreach (var action in CustomRulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CustomRulesValue is not null) - { - writer.WritePropertyName("custom_rules"); - JsonSerializer.Serialize(writer, CustomRulesValue, options); - } - - if (!string.IsNullOrEmpty(DetectorDescriptionValue)) - { - writer.WritePropertyName("detector_description"); - writer.WriteStringValue(DetectorDescriptionValue); - } - - if (DetectorIndexValue.HasValue) - { - writer.WritePropertyName("detector_index"); - writer.WriteNumberValue(DetectorIndexValue.Value); - } - - if (ExcludeFrequentValue is not null) - { - writer.WritePropertyName("exclude_frequent"); - JsonSerializer.Serialize(writer, ExcludeFrequentValue, options); - } - - if (FieldNameValue is not null) - { - writer.WritePropertyName("field_name"); - JsonSerializer.Serialize(writer, FieldNameValue, options); - } - - if (!string.IsNullOrEmpty(FunctionValue)) - { - writer.WritePropertyName("function"); - writer.WriteStringValue(FunctionValue); - } - - if (OverFieldNameValue is not null) - { - writer.WritePropertyName("over_field_name"); - JsonSerializer.Serialize(writer, OverFieldNameValue, options); - } - - if (PartitionFieldNameValue is not null) - { - writer.WritePropertyName("partition_field_name"); - JsonSerializer.Serialize(writer, PartitionFieldNameValue, options); - } - - if (UseNullValue.HasValue) - { - writer.WritePropertyName("use_null"); - writer.WriteBooleanValue(UseNullValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorRead.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorRead.g.cs deleted file mode 100644 index b466f39c893..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorRead.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.MachineLearning; - -public sealed partial class DetectorRead -{ - /// - /// - /// The field used to split the data. - /// In particular, this property is used for analyzing the splits with respect to their own history. - /// It is used for finding unusual values in the context of the split. - /// - /// - [JsonInclude, JsonPropertyName("by_field_name")] - public string? ByFieldName { get; init; } - - /// - /// - /// An array of custom rule objects, which enable you to customize the way detectors operate. - /// For example, a rule may dictate to the detector conditions under which results should be skipped. - /// Kibana refers to custom rules as job rules. - /// - /// - [JsonInclude, JsonPropertyName("custom_rules")] - public IReadOnlyCollection? CustomRules { get; init; } - - /// - /// - /// A description of the detector. - /// - /// - [JsonInclude, JsonPropertyName("detector_description")] - public string? DetectorDescription { get; init; } - - /// - /// - /// A unique identifier for the detector. - /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. - /// - /// - [JsonInclude, JsonPropertyName("detector_index")] - public int? DetectorIndex { get; init; } - - /// - /// - /// Contains one of the following values: all, none, by, or over. - /// If set, frequent entities are excluded from influencing the anomaly results. - /// Entities can be considered frequent over time or frequent in a population. - /// If you are working with both over and by fields, then you can set exclude_frequent to all for both fields, or to by or over for those specific fields. - /// - /// - [JsonInclude, JsonPropertyName("exclude_frequent")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ExcludeFrequent? ExcludeFrequent { get; init; } - - /// - /// - /// The field that the detector uses in the function. - /// If you use an event rate function such as count or rare, do not specify this field. - /// - /// - [JsonInclude, JsonPropertyName("field_name")] - public string? FieldName { get; init; } - - /// - /// - /// The analysis function that is used. - /// For example, count, rare, mean, min, max, and sum. - /// - /// - [JsonInclude, JsonPropertyName("function")] - public string Function { get; init; } - - /// - /// - /// The field used to split the data. - /// In particular, this property is used for analyzing the splits with respect to the history of all splits. - /// It is used for finding unusual values in the population of all splits. - /// - /// - [JsonInclude, JsonPropertyName("over_field_name")] - public string? OverFieldName { get; init; } - - /// - /// - /// The field used to segment the analysis. - /// When you use this property, you have completely independent baselines for each value of this field. - /// - /// - [JsonInclude, JsonPropertyName("partition_field_name")] - public string? PartitionFieldName { get; init; } - - /// - /// - /// Defines whether a new series is used as the null series when there is no value for the by or partition fields. - /// - /// - [JsonInclude, JsonPropertyName("use_null")] - public bool? UseNull { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs deleted file mode 100644 index 8cc5b1413aa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/DetectorUpdate.g.cs +++ /dev/null @@ -1,312 +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.MachineLearning; - -public sealed partial class DetectorUpdate -{ - /// - /// - /// An array of custom rule objects, which enable you to customize the way detectors operate. - /// For example, a rule may dictate to the detector conditions under which results should be skipped. - /// Kibana refers to custom rules as job rules. - /// - /// - [JsonInclude, JsonPropertyName("custom_rules")] - public ICollection? CustomRules { get; set; } - - /// - /// - /// A description of the detector. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; set; } - - /// - /// - /// A unique identifier for the detector. - /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. - /// - /// - [JsonInclude, JsonPropertyName("detector_index")] - public int DetectorIndex { get; set; } -} - -public sealed partial class DetectorUpdateDescriptor : SerializableDescriptor> -{ - internal DetectorUpdateDescriptor(Action> configure) => configure.Invoke(this); - - public DetectorUpdateDescriptor() : base() - { - } - - private ICollection? CustomRulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } - private Action> CustomRulesDescriptorAction { get; set; } - private Action>[] CustomRulesDescriptorActions { get; set; } - private string? DescriptionValue { get; set; } - private int DetectorIndexValue { get; set; } - - /// - /// - /// An array of custom rule objects, which enable you to customize the way detectors operate. - /// For example, a rule may dictate to the detector conditions under which results should be skipped. - /// Kibana refers to custom rules as job rules. - /// - /// - public DetectorUpdateDescriptor CustomRules(ICollection? customRules) - { - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesValue = customRules; - return Self; - } - - public DetectorUpdateDescriptor CustomRules(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor descriptor) - { - CustomRulesValue = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptor = descriptor; - return Self; - } - - public DetectorUpdateDescriptor CustomRules(Action> configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptorAction = configure; - return Self; - } - - public DetectorUpdateDescriptor CustomRules(params Action>[] configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = configure; - return Self; - } - - /// - /// - /// A description of the detector. - /// - /// - public DetectorUpdateDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A unique identifier for the detector. - /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. - /// - /// - public DetectorUpdateDescriptor DetectorIndex(int detectorIndex) - { - DetectorIndexValue = detectorIndex; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CustomRulesDescriptor is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorAction is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorActions is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - foreach (var action in CustomRulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CustomRulesValue is not null) - { - writer.WritePropertyName("custom_rules"); - JsonSerializer.Serialize(writer, CustomRulesValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("detector_index"); - writer.WriteNumberValue(DetectorIndexValue); - writer.WriteEndObject(); - } -} - -public sealed partial class DetectorUpdateDescriptor : SerializableDescriptor -{ - internal DetectorUpdateDescriptor(Action configure) => configure.Invoke(this); - - public DetectorUpdateDescriptor() : base() - { - } - - private ICollection? CustomRulesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor CustomRulesDescriptor { get; set; } - private Action CustomRulesDescriptorAction { get; set; } - private Action[] CustomRulesDescriptorActions { get; set; } - private string? DescriptionValue { get; set; } - private int DetectorIndexValue { get; set; } - - /// - /// - /// An array of custom rule objects, which enable you to customize the way detectors operate. - /// For example, a rule may dictate to the detector conditions under which results should be skipped. - /// Kibana refers to custom rules as job rules. - /// - /// - public DetectorUpdateDescriptor CustomRules(ICollection? customRules) - { - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesValue = customRules; - return Self; - } - - public DetectorUpdateDescriptor CustomRules(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor descriptor) - { - CustomRulesValue = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptor = descriptor; - return Self; - } - - public DetectorUpdateDescriptor CustomRules(Action configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorActions = null; - CustomRulesDescriptorAction = configure; - return Self; - } - - public DetectorUpdateDescriptor CustomRules(params Action[] configure) - { - CustomRulesValue = null; - CustomRulesDescriptor = null; - CustomRulesDescriptorAction = null; - CustomRulesDescriptorActions = configure; - return Self; - } - - /// - /// - /// A description of the detector. - /// - /// - public DetectorUpdateDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A unique identifier for the detector. - /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. - /// - /// - public DetectorUpdateDescriptor DetectorIndex(int detectorIndex) - { - DetectorIndexValue = detectorIndex; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CustomRulesDescriptor is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, CustomRulesDescriptor, options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorAction is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(CustomRulesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (CustomRulesDescriptorActions is not null) - { - writer.WritePropertyName("custom_rules"); - writer.WriteStartArray(); - foreach (var action in CustomRulesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DetectionRuleDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (CustomRulesValue is not null) - { - writer.WritePropertyName("custom_rules"); - JsonSerializer.Serialize(writer, CustomRulesValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - writer.WritePropertyName("detector_index"); - writer.WriteNumberValue(DetectorIndexValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Ensemble.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Ensemble.g.cs deleted file mode 100644 index 833a0ffc5bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Ensemble.g.cs +++ /dev/null @@ -1,211 +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.MachineLearning; - -public sealed partial class Ensemble -{ - [JsonInclude, JsonPropertyName("aggregate_output")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AggregateOutput? AggregateOutput { get; set; } - [JsonInclude, JsonPropertyName("classification_labels")] - public ICollection? ClassificationLabels { get; set; } - [JsonInclude, JsonPropertyName("feature_names")] - public ICollection? FeatureNames { get; set; } - [JsonInclude, JsonPropertyName("target_type")] - public string? TargetType { get; set; } - [JsonInclude, JsonPropertyName("trained_models")] - public ICollection TrainedModels { get; set; } -} - -public sealed partial class EnsembleDescriptor : SerializableDescriptor -{ - internal EnsembleDescriptor(Action configure) => configure.Invoke(this); - - public EnsembleDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AggregateOutput? AggregateOutputValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AggregateOutputDescriptor AggregateOutputDescriptor { get; set; } - private Action AggregateOutputDescriptorAction { get; set; } - private ICollection? ClassificationLabelsValue { get; set; } - private ICollection? FeatureNamesValue { get; set; } - private string? TargetTypeValue { get; set; } - private ICollection TrainedModelsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor TrainedModelsDescriptor { get; set; } - private Action TrainedModelsDescriptorAction { get; set; } - private Action[] TrainedModelsDescriptorActions { get; set; } - - public EnsembleDescriptor AggregateOutput(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AggregateOutput? aggregateOutput) - { - AggregateOutputDescriptor = null; - AggregateOutputDescriptorAction = null; - AggregateOutputValue = aggregateOutput; - return Self; - } - - public EnsembleDescriptor AggregateOutput(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AggregateOutputDescriptor descriptor) - { - AggregateOutputValue = null; - AggregateOutputDescriptorAction = null; - AggregateOutputDescriptor = descriptor; - return Self; - } - - public EnsembleDescriptor AggregateOutput(Action configure) - { - AggregateOutputValue = null; - AggregateOutputDescriptor = null; - AggregateOutputDescriptorAction = configure; - return Self; - } - - public EnsembleDescriptor ClassificationLabels(ICollection? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - public EnsembleDescriptor FeatureNames(ICollection? featureNames) - { - FeatureNamesValue = featureNames; - return Self; - } - - public EnsembleDescriptor TargetType(string? targetType) - { - TargetTypeValue = targetType; - return Self; - } - - public EnsembleDescriptor TrainedModels(ICollection trainedModels) - { - TrainedModelsDescriptor = null; - TrainedModelsDescriptorAction = null; - TrainedModelsDescriptorActions = null; - TrainedModelsValue = trainedModels; - return Self; - } - - public EnsembleDescriptor TrainedModels(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor descriptor) - { - TrainedModelsValue = null; - TrainedModelsDescriptorAction = null; - TrainedModelsDescriptorActions = null; - TrainedModelsDescriptor = descriptor; - return Self; - } - - public EnsembleDescriptor TrainedModels(Action configure) - { - TrainedModelsValue = null; - TrainedModelsDescriptor = null; - TrainedModelsDescriptorActions = null; - TrainedModelsDescriptorAction = configure; - return Self; - } - - public EnsembleDescriptor TrainedModels(params Action[] configure) - { - TrainedModelsValue = null; - TrainedModelsDescriptor = null; - TrainedModelsDescriptorAction = null; - TrainedModelsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregateOutputDescriptor is not null) - { - writer.WritePropertyName("aggregate_output"); - JsonSerializer.Serialize(writer, AggregateOutputDescriptor, options); - } - else if (AggregateOutputDescriptorAction is not null) - { - writer.WritePropertyName("aggregate_output"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AggregateOutputDescriptor(AggregateOutputDescriptorAction), options); - } - else if (AggregateOutputValue is not null) - { - writer.WritePropertyName("aggregate_output"); - JsonSerializer.Serialize(writer, AggregateOutputValue, options); - } - - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - if (FeatureNamesValue is not null) - { - writer.WritePropertyName("feature_names"); - JsonSerializer.Serialize(writer, FeatureNamesValue, options); - } - - if (!string.IsNullOrEmpty(TargetTypeValue)) - { - writer.WritePropertyName("target_type"); - writer.WriteStringValue(TargetTypeValue); - } - - if (TrainedModelsDescriptor is not null) - { - writer.WritePropertyName("trained_models"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, TrainedModelsDescriptor, options); - writer.WriteEndArray(); - } - else if (TrainedModelsDescriptorAction is not null) - { - writer.WritePropertyName("trained_models"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor(TrainedModelsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (TrainedModelsDescriptorActions is not null) - { - writer.WritePropertyName("trained_models"); - writer.WriteStartArray(); - foreach (var action in TrainedModelsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("trained_models"); - JsonSerializer.Serialize(writer, TrainedModelsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs deleted file mode 100644 index 52d547b338e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ExponentialAverageCalculationContext.g.cs +++ /dev/null @@ -1,38 +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.MachineLearning; - -public sealed partial class ExponentialAverageCalculationContext -{ - [JsonInclude, JsonPropertyName("incremental_metric_value_ms")] - public double IncrementalMetricValueMs { get; init; } - [JsonInclude, JsonPropertyName("latest_timestamp")] - public long? LatestTimestamp { get; init; } - [JsonInclude, JsonPropertyName("previous_exponential_average_ms")] - public double? PreviousExponentialAverageMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs deleted file mode 100644 index 4ab30dc87a1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceOptions.g.cs +++ /dev/null @@ -1,246 +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.MachineLearning; - -/// -/// -/// Fill mask inference options -/// -/// -public sealed partial class FillMaskInferenceOptions -{ - /// - /// - /// The string/token which will be removed from incoming documents and replaced with the inference prediction(s). - /// In a response, this field contains the mask token for the specified model/tokenizer. Each model and tokenizer - /// has a predefined mask token which cannot be changed. Thus, it is recommended not to set this value in requests. - /// However, if this field is present in a request, its value must match the predefined value for that model/tokenizer, - /// otherwise the request will fail. - /// - /// - [JsonInclude, JsonPropertyName("mask_token")] - public string? MaskToken { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - [JsonInclude, JsonPropertyName("vocabulary")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary Vocabulary { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(FillMaskInferenceOptions fillMaskInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.FillMask(fillMaskInferenceOptions); -} - -/// -/// -/// Fill mask inference options -/// -/// -public sealed partial class FillMaskInferenceOptionsDescriptor : SerializableDescriptor -{ - internal FillMaskInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public FillMaskInferenceOptionsDescriptor() : base() - { - } - - private string? MaskTokenValue { get; set; } - private int? NumTopClassesValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary VocabularyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } - private Action VocabularyDescriptorAction { get; set; } - - /// - /// - /// The string/token which will be removed from incoming documents and replaced with the inference prediction(s). - /// In a response, this field contains the mask token for the specified model/tokenizer. Each model and tokenizer - /// has a predefined mask token which cannot be changed. Thus, it is recommended not to set this value in requests. - /// However, if this field is present in a request, its value must match the predefined value for that model/tokenizer, - /// otherwise the request will fail. - /// - /// - public FillMaskInferenceOptionsDescriptor MaskToken(string? maskToken) - { - MaskTokenValue = maskToken; - return Self; - } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public FillMaskInferenceOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public FillMaskInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public FillMaskInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public FillMaskInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public FillMaskInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - public FillMaskInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary vocabulary) - { - VocabularyDescriptor = null; - VocabularyDescriptorAction = null; - VocabularyValue = vocabulary; - return Self; - } - - public FillMaskInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor descriptor) - { - VocabularyValue = null; - VocabularyDescriptorAction = null; - VocabularyDescriptor = descriptor; - return Self; - } - - public FillMaskInferenceOptionsDescriptor Vocabulary(Action configure) - { - VocabularyValue = null; - VocabularyDescriptor = null; - VocabularyDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(MaskTokenValue)) - { - writer.WritePropertyName("mask_token"); - writer.WriteStringValue(MaskTokenValue); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - if (VocabularyDescriptor is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyDescriptor, options); - } - else if (VocabularyDescriptorAction is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); - } - else - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs deleted file mode 100644 index 373b0c4269e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FillMaskInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,157 +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.MachineLearning; - -public sealed partial class FillMaskInferenceUpdateOptions -{ - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(FillMaskInferenceUpdateOptions fillMaskInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.FillMask(fillMaskInferenceUpdateOptions); -} - -public sealed partial class FillMaskInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal FillMaskInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public FillMaskInferenceUpdateOptionsDescriptor() : base() - { - } - - private int? NumTopClassesValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public FillMaskInferenceUpdateOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public FillMaskInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public FillMaskInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public FillMaskInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public FillMaskInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Filter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Filter.g.cs deleted file mode 100644 index 278c084fb64..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Filter.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class Filter -{ - /// - /// - /// A description of the filter. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// A string that uniquely identifies a filter. - /// - /// - [JsonInclude, JsonPropertyName("filter_id")] - public string FilterId { get; init; } - - /// - /// - /// An array of strings which is the filter item list. - /// - /// - [JsonInclude, JsonPropertyName("items")] - public IReadOnlyCollection Items { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FilterRef.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FilterRef.g.cs deleted file mode 100644 index 1fa35c12454..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FilterRef.g.cs +++ /dev/null @@ -1,95 +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.MachineLearning; - -public sealed partial class FilterRef -{ - /// - /// - /// The identifier for the filter. - /// - /// - [JsonInclude, JsonPropertyName("filter_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id FilterId { get; set; } - - /// - /// - /// If set to include, the rule applies for values in the filter. If set to exclude, the rule applies for values not in the filter. - /// - /// - [JsonInclude, JsonPropertyName("filter_type")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FilterType? FilterType { get; set; } -} - -public sealed partial class FilterRefDescriptor : SerializableDescriptor -{ - internal FilterRefDescriptor(Action configure) => configure.Invoke(this); - - public FilterRefDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id FilterIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FilterType? FilterTypeValue { get; set; } - - /// - /// - /// The identifier for the filter. - /// - /// - public FilterRefDescriptor FilterId(Elastic.Clients.Elasticsearch.Serverless.Id filterId) - { - FilterIdValue = filterId; - return Self; - } - - /// - /// - /// If set to include, the rule applies for values in the filter. If set to exclude, the rule applies for values not in the filter. - /// - /// - public FilterRefDescriptor FilterType(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FilterType? filterType) - { - FilterTypeValue = filterType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("filter_id"); - JsonSerializer.Serialize(writer, FilterIdValue, options); - if (FilterTypeValue is not null) - { - writer.WritePropertyName("filter_type"); - JsonSerializer.Serialize(writer, FilterTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs deleted file mode 100644 index 6e4d09f449b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/FrequencyEncodingPreprocessor.g.cs +++ /dev/null @@ -1,83 +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.MachineLearning; - -public sealed partial class FrequencyEncodingPreprocessor -{ - [JsonInclude, JsonPropertyName("feature_name")] - public string FeatureName { get; set; } - [JsonInclude, JsonPropertyName("field")] - public string Field { get; set; } - [JsonInclude, JsonPropertyName("frequency_map")] - public IDictionary FrequencyMap { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Preprocessor(FrequencyEncodingPreprocessor frequencyEncodingPreprocessor) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Preprocessor.FrequencyEncoding(frequencyEncodingPreprocessor); -} - -public sealed partial class FrequencyEncodingPreprocessorDescriptor : SerializableDescriptor -{ - internal FrequencyEncodingPreprocessorDescriptor(Action configure) => configure.Invoke(this); - - public FrequencyEncodingPreprocessorDescriptor() : base() - { - } - - private string FeatureNameValue { get; set; } - private string FieldValue { get; set; } - private IDictionary FrequencyMapValue { get; set; } - - public FrequencyEncodingPreprocessorDescriptor FeatureName(string featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public FrequencyEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public FrequencyEncodingPreprocessorDescriptor FrequencyMap(Func, FluentDictionary> selector) - { - FrequencyMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("feature_name"); - writer.WriteStringValue(FeatureNameValue); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("frequency_map"); - JsonSerializer.Serialize(writer, FrequencyMapValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/GeoResults.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/GeoResults.g.cs deleted file mode 100644 index d0d27829304..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/GeoResults.g.cs +++ /dev/null @@ -1,47 +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.MachineLearning; - -public sealed partial class GeoResults -{ - /// - /// - /// The actual value for the bucket formatted as a geo_point. - /// - /// - [JsonInclude, JsonPropertyName("actual_point")] - public string ActualPoint { get; init; } - - /// - /// - /// The typical value for the bucket formatted as a geo_point. - /// - /// - [JsonInclude, JsonPropertyName("typical_point")] - public string TypicalPoint { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Hyperparameter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Hyperparameter.g.cs deleted file mode 100644 index e4ed7657f46..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Hyperparameter.g.cs +++ /dev/null @@ -1,71 +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.MachineLearning; - -public sealed partial class Hyperparameter -{ - /// - /// - /// A positive number showing how much the parameter influences the variation of the loss function. For hyperparameters with values that are not specified by the user but tuned during hyperparameter optimization. - /// - /// - [JsonInclude, JsonPropertyName("absolute_importance")] - public double? AbsoluteImportance { get; init; } - - /// - /// - /// Name of the hyperparameter. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// A number between 0 and 1 showing the proportion of influence on the variation of the loss function among all tuned hyperparameters. For hyperparameters with values that are not specified by the user but tuned during hyperparameter optimization. - /// - /// - [JsonInclude, JsonPropertyName("relative_importance")] - public double? RelativeImportance { get; init; } - - /// - /// - /// Indicates if the hyperparameter is specified by the user (true) or optimized (false). - /// - /// - [JsonInclude, JsonPropertyName("supplied")] - public bool Supplied { get; init; } - - /// - /// - /// The value of the hyperparameter, either optimized or specified by the user. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs deleted file mode 100644 index a86e4468446..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs +++ /dev/null @@ -1,367 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -/// -/// -/// Inference configuration provided when storing the model config -/// -/// -[JsonConverter(typeof(InferenceConfigCreateConverter))] -public sealed partial class InferenceConfigCreate -{ - internal InferenceConfigCreate(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static InferenceConfigCreate Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => new InferenceConfigCreate("classification", classificationInferenceOptions); - public static InferenceConfigCreate FillMask(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceOptions fillMaskInferenceOptions) => new InferenceConfigCreate("fill_mask", fillMaskInferenceOptions); - public static InferenceConfigCreate Ner(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceOptions nerInferenceOptions) => new InferenceConfigCreate("ner", nerInferenceOptions); - public static InferenceConfigCreate PassThrough(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceOptions passThroughInferenceOptions) => new InferenceConfigCreate("pass_through", passThroughInferenceOptions); - public static InferenceConfigCreate QuestionAnswering(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceOptions questionAnsweringInferenceOptions) => new InferenceConfigCreate("question_answering", questionAnsweringInferenceOptions); - public static InferenceConfigCreate Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => new InferenceConfigCreate("regression", regressionInferenceOptions); - public static InferenceConfigCreate TextClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceOptions textClassificationInferenceOptions) => new InferenceConfigCreate("text_classification", textClassificationInferenceOptions); - public static InferenceConfigCreate TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => new InferenceConfigCreate("text_embedding", textEmbeddingInferenceOptions); - public static InferenceConfigCreate TextExpansion(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceOptions textExpansionInferenceOptions) => new InferenceConfigCreate("text_expansion", textExpansionInferenceOptions); - public static InferenceConfigCreate ZeroShotClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => new InferenceConfigCreate("zero_shot_classification", zeroShotClassificationInferenceOptions); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class InferenceConfigCreateConverter : JsonConverter -{ - public override InferenceConfigCreate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fill_mask") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ner") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "pass_through") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "question_answering") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regression") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_embedding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_expansion") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "zero_shot_classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfigCreate' from the response."); - } - - var result = new InferenceConfigCreate(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, InferenceConfigCreate value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions)value.Variant, options); - break; - case "fill_mask": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceOptions)value.Variant, options); - break; - case "ner": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceOptions)value.Variant, options); - break; - case "pass_through": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceOptions)value.Variant, options); - break; - case "question_answering": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceOptions)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions)value.Variant, options); - break; - case "text_classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceOptions)value.Variant, options); - break; - case "text_embedding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceOptions)value.Variant, options); - break; - case "text_expansion": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceOptions)value.Variant, options); - break; - case "zero_shot_classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceOptions)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigCreateDescriptor : SerializableDescriptor> -{ - internal InferenceConfigCreateDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceConfigCreateDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigCreateDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigCreateDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigCreateDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => Set(classificationInferenceOptions, "classification"); - public InferenceConfigCreateDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigCreateDescriptor FillMask(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceOptions fillMaskInferenceOptions) => Set(fillMaskInferenceOptions, "fill_mask"); - public InferenceConfigCreateDescriptor FillMask(Action configure) => Set(configure, "fill_mask"); - public InferenceConfigCreateDescriptor Ner(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceOptions nerInferenceOptions) => Set(nerInferenceOptions, "ner"); - public InferenceConfigCreateDescriptor Ner(Action configure) => Set(configure, "ner"); - public InferenceConfigCreateDescriptor PassThrough(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceOptions passThroughInferenceOptions) => Set(passThroughInferenceOptions, "pass_through"); - public InferenceConfigCreateDescriptor PassThrough(Action configure) => Set(configure, "pass_through"); - public InferenceConfigCreateDescriptor QuestionAnswering(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceOptions questionAnsweringInferenceOptions) => Set(questionAnsweringInferenceOptions, "question_answering"); - public InferenceConfigCreateDescriptor QuestionAnswering(Action configure) => Set(configure, "question_answering"); - public InferenceConfigCreateDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => Set(regressionInferenceOptions, "regression"); - public InferenceConfigCreateDescriptor Regression(Action> configure) => Set(configure, "regression"); - public InferenceConfigCreateDescriptor TextClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceOptions textClassificationInferenceOptions) => Set(textClassificationInferenceOptions, "text_classification"); - public InferenceConfigCreateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); - public InferenceConfigCreateDescriptor TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Set(textEmbeddingInferenceOptions, "text_embedding"); - public InferenceConfigCreateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); - public InferenceConfigCreateDescriptor TextExpansion(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceOptions textExpansionInferenceOptions) => Set(textExpansionInferenceOptions, "text_expansion"); - public InferenceConfigCreateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); - public InferenceConfigCreateDescriptor ZeroShotClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => Set(zeroShotClassificationInferenceOptions, "zero_shot_classification"); - public InferenceConfigCreateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigCreateDescriptor : SerializableDescriptor -{ - internal InferenceConfigCreateDescriptor(Action configure) => configure.Invoke(this); - - public InferenceConfigCreateDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigCreateDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigCreateDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigCreateDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => Set(classificationInferenceOptions, "classification"); - public InferenceConfigCreateDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigCreateDescriptor FillMask(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceOptions fillMaskInferenceOptions) => Set(fillMaskInferenceOptions, "fill_mask"); - public InferenceConfigCreateDescriptor FillMask(Action configure) => Set(configure, "fill_mask"); - public InferenceConfigCreateDescriptor Ner(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceOptions nerInferenceOptions) => Set(nerInferenceOptions, "ner"); - public InferenceConfigCreateDescriptor Ner(Action configure) => Set(configure, "ner"); - public InferenceConfigCreateDescriptor PassThrough(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceOptions passThroughInferenceOptions) => Set(passThroughInferenceOptions, "pass_through"); - public InferenceConfigCreateDescriptor PassThrough(Action configure) => Set(configure, "pass_through"); - public InferenceConfigCreateDescriptor QuestionAnswering(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceOptions questionAnsweringInferenceOptions) => Set(questionAnsweringInferenceOptions, "question_answering"); - public InferenceConfigCreateDescriptor QuestionAnswering(Action configure) => Set(configure, "question_answering"); - public InferenceConfigCreateDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => Set(regressionInferenceOptions, "regression"); - public InferenceConfigCreateDescriptor Regression(Action configure) => Set(configure, "regression"); - public InferenceConfigCreateDescriptor TextClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceOptions textClassificationInferenceOptions) => Set(textClassificationInferenceOptions, "text_classification"); - public InferenceConfigCreateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); - public InferenceConfigCreateDescriptor TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Set(textEmbeddingInferenceOptions, "text_embedding"); - public InferenceConfigCreateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); - public InferenceConfigCreateDescriptor TextExpansion(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceOptions textExpansionInferenceOptions) => Set(textExpansionInferenceOptions, "text_expansion"); - public InferenceConfigCreateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); - public InferenceConfigCreateDescriptor ZeroShotClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => Set(zeroShotClassificationInferenceOptions, "zero_shot_classification"); - public InferenceConfigCreateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs deleted file mode 100644 index 84a33ce0b83..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceConfigUpdate.g.cs +++ /dev/null @@ -1,362 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -[JsonConverter(typeof(InferenceConfigUpdateConverter))] -public sealed partial class InferenceConfigUpdate -{ - internal InferenceConfigUpdate(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static InferenceConfigUpdate Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => new InferenceConfigUpdate("classification", classificationInferenceOptions); - public static InferenceConfigUpdate FillMask(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceUpdateOptions fillMaskInferenceUpdateOptions) => new InferenceConfigUpdate("fill_mask", fillMaskInferenceUpdateOptions); - public static InferenceConfigUpdate Ner(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceUpdateOptions nerInferenceUpdateOptions) => new InferenceConfigUpdate("ner", nerInferenceUpdateOptions); - public static InferenceConfigUpdate PassThrough(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceUpdateOptions passThroughInferenceUpdateOptions) => new InferenceConfigUpdate("pass_through", passThroughInferenceUpdateOptions); - public static InferenceConfigUpdate QuestionAnswering(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceUpdateOptions questionAnsweringInferenceUpdateOptions) => new InferenceConfigUpdate("question_answering", questionAnsweringInferenceUpdateOptions); - public static InferenceConfigUpdate Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => new InferenceConfigUpdate("regression", regressionInferenceOptions); - public static InferenceConfigUpdate TextClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceUpdateOptions textClassificationInferenceUpdateOptions) => new InferenceConfigUpdate("text_classification", textClassificationInferenceUpdateOptions); - public static InferenceConfigUpdate TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => new InferenceConfigUpdate("text_embedding", textEmbeddingInferenceUpdateOptions); - public static InferenceConfigUpdate TextExpansion(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => new InferenceConfigUpdate("text_expansion", textExpansionInferenceUpdateOptions); - public static InferenceConfigUpdate ZeroShotClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => new InferenceConfigUpdate("zero_shot_classification", zeroShotClassificationInferenceUpdateOptions); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class InferenceConfigUpdateConverter : JsonConverter -{ - public override InferenceConfigUpdate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fill_mask") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ner") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "pass_through") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "question_answering") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regression") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_embedding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_expansion") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "zero_shot_classification") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'InferenceConfigUpdate' from the response."); - } - - var result = new InferenceConfigUpdate(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, InferenceConfigUpdate value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions)value.Variant, options); - break; - case "fill_mask": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceUpdateOptions)value.Variant, options); - break; - case "ner": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceUpdateOptions)value.Variant, options); - break; - case "pass_through": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceUpdateOptions)value.Variant, options); - break; - case "question_answering": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceUpdateOptions)value.Variant, options); - break; - case "regression": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions)value.Variant, options); - break; - case "text_classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceUpdateOptions)value.Variant, options); - break; - case "text_embedding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceUpdateOptions)value.Variant, options); - break; - case "text_expansion": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceUpdateOptions)value.Variant, options); - break; - case "zero_shot_classification": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceUpdateOptions)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigUpdateDescriptor : SerializableDescriptor> -{ - internal InferenceConfigUpdateDescriptor(Action> configure) => configure.Invoke(this); - - public InferenceConfigUpdateDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigUpdateDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigUpdateDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigUpdateDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => Set(classificationInferenceOptions, "classification"); - public InferenceConfigUpdateDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigUpdateDescriptor FillMask(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceUpdateOptions fillMaskInferenceUpdateOptions) => Set(fillMaskInferenceUpdateOptions, "fill_mask"); - public InferenceConfigUpdateDescriptor FillMask(Action configure) => Set(configure, "fill_mask"); - public InferenceConfigUpdateDescriptor Ner(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceUpdateOptions nerInferenceUpdateOptions) => Set(nerInferenceUpdateOptions, "ner"); - public InferenceConfigUpdateDescriptor Ner(Action configure) => Set(configure, "ner"); - public InferenceConfigUpdateDescriptor PassThrough(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceUpdateOptions passThroughInferenceUpdateOptions) => Set(passThroughInferenceUpdateOptions, "pass_through"); - public InferenceConfigUpdateDescriptor PassThrough(Action configure) => Set(configure, "pass_through"); - public InferenceConfigUpdateDescriptor QuestionAnswering(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceUpdateOptions questionAnsweringInferenceUpdateOptions) => Set(questionAnsweringInferenceUpdateOptions, "question_answering"); - public InferenceConfigUpdateDescriptor QuestionAnswering(Action configure) => Set(configure, "question_answering"); - public InferenceConfigUpdateDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => Set(regressionInferenceOptions, "regression"); - public InferenceConfigUpdateDescriptor Regression(Action> configure) => Set(configure, "regression"); - public InferenceConfigUpdateDescriptor TextClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceUpdateOptions textClassificationInferenceUpdateOptions) => Set(textClassificationInferenceUpdateOptions, "text_classification"); - public InferenceConfigUpdateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); - public InferenceConfigUpdateDescriptor TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => Set(textEmbeddingInferenceUpdateOptions, "text_embedding"); - public InferenceConfigUpdateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); - public InferenceConfigUpdateDescriptor TextExpansion(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => Set(textExpansionInferenceUpdateOptions, "text_expansion"); - public InferenceConfigUpdateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); - public InferenceConfigUpdateDescriptor ZeroShotClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => Set(zeroShotClassificationInferenceUpdateOptions, "zero_shot_classification"); - public InferenceConfigUpdateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class InferenceConfigUpdateDescriptor : SerializableDescriptor -{ - internal InferenceConfigUpdateDescriptor(Action configure) => configure.Invoke(this); - - public InferenceConfigUpdateDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private InferenceConfigUpdateDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private InferenceConfigUpdateDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public InferenceConfigUpdateDescriptor Classification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => Set(classificationInferenceOptions, "classification"); - public InferenceConfigUpdateDescriptor Classification(Action configure) => Set(configure, "classification"); - public InferenceConfigUpdateDescriptor FillMask(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FillMaskInferenceUpdateOptions fillMaskInferenceUpdateOptions) => Set(fillMaskInferenceUpdateOptions, "fill_mask"); - public InferenceConfigUpdateDescriptor FillMask(Action configure) => Set(configure, "fill_mask"); - public InferenceConfigUpdateDescriptor Ner(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NerInferenceUpdateOptions nerInferenceUpdateOptions) => Set(nerInferenceUpdateOptions, "ner"); - public InferenceConfigUpdateDescriptor Ner(Action configure) => Set(configure, "ner"); - public InferenceConfigUpdateDescriptor PassThrough(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.PassThroughInferenceUpdateOptions passThroughInferenceUpdateOptions) => Set(passThroughInferenceUpdateOptions, "pass_through"); - public InferenceConfigUpdateDescriptor PassThrough(Action configure) => Set(configure, "pass_through"); - public InferenceConfigUpdateDescriptor QuestionAnswering(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.QuestionAnsweringInferenceUpdateOptions questionAnsweringInferenceUpdateOptions) => Set(questionAnsweringInferenceUpdateOptions, "question_answering"); - public InferenceConfigUpdateDescriptor QuestionAnswering(Action configure) => Set(configure, "question_answering"); - public InferenceConfigUpdateDescriptor Regression(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RegressionInferenceOptions regressionInferenceOptions) => Set(regressionInferenceOptions, "regression"); - public InferenceConfigUpdateDescriptor Regression(Action configure) => Set(configure, "regression"); - public InferenceConfigUpdateDescriptor TextClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextClassificationInferenceUpdateOptions textClassificationInferenceUpdateOptions) => Set(textClassificationInferenceUpdateOptions, "text_classification"); - public InferenceConfigUpdateDescriptor TextClassification(Action configure) => Set(configure, "text_classification"); - public InferenceConfigUpdateDescriptor TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => Set(textEmbeddingInferenceUpdateOptions, "text_embedding"); - public InferenceConfigUpdateDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); - public InferenceConfigUpdateDescriptor TextExpansion(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => Set(textExpansionInferenceUpdateOptions, "text_expansion"); - public InferenceConfigUpdateDescriptor TextExpansion(Action configure) => Set(configure, "text_expansion"); - public InferenceConfigUpdateDescriptor ZeroShotClassification(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => Set(zeroShotClassificationInferenceUpdateOptions, "zero_shot_classification"); - public InferenceConfigUpdateDescriptor ZeroShotClassification(Action configure) => Set(configure, "zero_shot_classification"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs deleted file mode 100644 index 17adcb46d84..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/InferenceResponseResult.g.cs +++ /dev/null @@ -1,114 +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.MachineLearning; - -public sealed partial class InferenceResponseResult -{ - /// - /// - /// If the model is trained for named entity recognition (NER) tasks, the response contains the recognized entities. - /// - /// - [JsonInclude, JsonPropertyName("entities")] - public IReadOnlyCollection? Entities { get; init; } - - /// - /// - /// The feature importance for the inference results. Relevant only for classification or regression models - /// - /// - [JsonInclude, JsonPropertyName("feature_importance")] - public IReadOnlyCollection? FeatureImportance { get; init; } - - /// - /// - /// Indicates whether the input text was truncated to meet the model's maximum sequence length limit. This property - /// is present only when it is true. - /// - /// - [JsonInclude, JsonPropertyName("is_truncated")] - public bool? IsTruncated { get; init; } - - /// - /// - /// If the model is trained for a text classification or zero shot classification task, the response is the - /// predicted class. - /// For named entity recognition (NER) tasks, it contains the annotated text output. - /// For fill mask tasks, it contains the top prediction for replacing the mask token. - /// For text embedding tasks, it contains the raw numerical text embedding values. - /// For regression models, its a numerical value - /// For classification models, it may be an integer, double, boolean or string depending on prediction type - /// - /// - [JsonInclude, JsonPropertyName("predicted_value")] - [SingleOrManyCollectionConverter(typeof(object))] - public IReadOnlyCollection? PredictedValue { get; init; } - - /// - /// - /// For fill mask tasks, the response contains the input text sequence with the mask token replaced by the predicted - /// value. - /// Additionally - /// - /// - [JsonInclude, JsonPropertyName("predicted_value_sequence")] - public string? PredictedValueSequence { get; init; } - - /// - /// - /// Specifies a probability for the predicted value. - /// - /// - [JsonInclude, JsonPropertyName("prediction_probability")] - public double? PredictionProbability { get; init; } - - /// - /// - /// Specifies a confidence score for the predicted value. - /// - /// - [JsonInclude, JsonPropertyName("prediction_score")] - public double? PredictionScore { get; init; } - - /// - /// - /// For fill mask, text classification, and zero shot classification tasks, the response contains a list of top - /// class entries. - /// - /// - [JsonInclude, JsonPropertyName("top_classes")] - public IReadOnlyCollection? TopClasses { get; init; } - - /// - /// - /// If the request failed, the response contains the reason for the failure. - /// - /// - [JsonInclude, JsonPropertyName("warning")] - public string? Warning { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influence.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influence.g.cs deleted file mode 100644 index c161ca1ae95..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influence.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class Influence -{ - [JsonInclude, JsonPropertyName("influencer_field_name")] - public string InfluencerFieldName { get; init; } - [JsonInclude, JsonPropertyName("influencer_field_values")] - public IReadOnlyCollection InfluencerFieldValues { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influencer.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influencer.g.cs deleted file mode 100644 index 6780f01d772..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Influencer.g.cs +++ /dev/null @@ -1,126 +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.MachineLearning; - -public sealed partial class Influencer -{ - /// - /// - /// The length of the bucket in seconds. This value matches the bucket span that is specified in the job. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - /// - /// - /// Additional influencer properties are added, depending on the fields being analyzed. For example, if it’s - /// analyzing user_name as an influencer, a field user_name is added to the result document. This - /// information enables you to filter the anomaly results more easily. - /// - /// - [JsonInclude, JsonPropertyName("foo")] - public string? Foo { get; init; } - - /// - /// - /// The field name of the influencer. - /// - /// - [JsonInclude, JsonPropertyName("influencer_field_name")] - public string InfluencerFieldName { get; init; } - - /// - /// - /// The entity that influenced, contributed to, or was to blame for the anomaly. - /// - /// - [JsonInclude, JsonPropertyName("influencer_field_value")] - public string InfluencerFieldValue { get; init; } - - /// - /// - /// A normalized score between 0-100, which is based on the probability of the influencer in this bucket aggregated - /// across detectors. Unlike initial_influencer_score, this value is updated by a re-normalization process as new - /// data is analyzed. - /// - /// - [JsonInclude, JsonPropertyName("influencer_score")] - public double InfluencerScore { get; init; } - - /// - /// - /// A normalized score between 0-100, which is based on the probability of the influencer aggregated across detectors. - /// This is the initial value that was calculated at the time the bucket was processed. - /// - /// - [JsonInclude, JsonPropertyName("initial_influencer_score")] - public double InitialInfluencerScore { get; init; } - - /// - /// - /// If true, this is an interim result. In other words, the results are calculated based on partial input data. - /// - /// - [JsonInclude, JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The probability that the influencer has this behavior, in the range 0 to 1. This value can be held to a high - /// precision of over 300 decimal places, so the influencer_score is provided as a human-readable and friendly - /// interpretation of this value. - /// - /// - [JsonInclude, JsonPropertyName("probability")] - public double Probability { get; init; } - - /// - /// - /// Internal. This value is always set to influencer. - /// - /// - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - - /// - /// - /// The start time of the bucket for which these results were calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Input.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Input.g.cs deleted file mode 100644 index 281634121dc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Input.g.cs +++ /dev/null @@ -1,59 +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.MachineLearning; - -public sealed partial class Input -{ - [JsonInclude, JsonPropertyName("field_names")] - public Elastic.Clients.Elasticsearch.Serverless.Names FieldNames { get; set; } -} - -public sealed partial class InputDescriptor : SerializableDescriptor -{ - internal InputDescriptor(Action configure) => configure.Invoke(this); - - public InputDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Names FieldNamesValue { get; set; } - - public InputDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Names fieldNames) - { - FieldNamesValue = fieldNames; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field_names"); - JsonSerializer.Serialize(writer, FieldNamesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Job.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Job.g.cs deleted file mode 100644 index aa895e01ed1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Job.g.cs +++ /dev/null @@ -1,231 +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.MachineLearning; - -public sealed partial class Job -{ - /// - /// - /// Advanced configuration option. - /// Specifies whether this job can open when there is insufficient machine learning node capacity for it to be immediately assigned to a node. - /// - /// - [JsonInclude, JsonPropertyName("allow_lazy_open")] - public bool AllowLazyOpen { get; init; } - - /// - /// - /// The analysis configuration, which specifies how to analyze the data. - /// After you create a job, you cannot change the analysis configuration; all the properties are informational. - /// - /// - [JsonInclude, JsonPropertyName("analysis_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisConfig AnalysisConfig { get; init; } - - /// - /// - /// Limits can be applied for the resources required to hold the mathematical models in memory. - /// These limits are approximate and can be set per job. - /// They do not control the memory used by other processes, for example the Elasticsearch Java processes. - /// - /// - [JsonInclude, JsonPropertyName("analysis_limits")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AnalysisLimits? AnalysisLimits { get; init; } - - /// - /// - /// Advanced configuration option. - /// The time between each periodic persistence of the model. - /// The default value is a randomized value between 3 to 4 hours, which avoids all jobs persisting at exactly the same time. - /// The smallest allowed value is 1 hour. - /// - /// - [JsonInclude, JsonPropertyName("background_persist_interval")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? BackgroundPersistInterval { get; init; } - [JsonInclude, JsonPropertyName("blocked")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobBlocked? Blocked { get; init; } - [JsonInclude, JsonPropertyName("create_time")] - public DateTimeOffset? CreateTime { get; init; } - - /// - /// - /// Advanced configuration option. - /// Contains custom metadata about the job. - /// - /// - [JsonInclude, JsonPropertyName("custom_settings")] - public object? CustomSettings { get; init; } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. - /// It specifies a period of time (in days) after which only the first snapshot per day is retained. - /// This period is relative to the timestamp of the most recent snapshot for this job. - /// Valid values range from 0 to model_snapshot_retention_days. - /// - /// - [JsonInclude, JsonPropertyName("daily_model_snapshot_retention_after_days")] - public long? DailyModelSnapshotRetentionAfterDays { get; init; } - - /// - /// - /// The data description defines the format of the input data when you send data to the job by using the post data API. - /// Note that when configuring a datafeed, these properties are automatically set. - /// When data is received via the post data API, it is not stored in Elasticsearch. - /// Only the results for anomaly detection are retained. - /// - /// - [JsonInclude, JsonPropertyName("data_description")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataDescription DataDescription { get; init; } - - /// - /// - /// The datafeed, which retrieves data from Elasticsearch for analysis by the job. - /// You can associate only one datafeed with each anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("datafeed_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Datafeed? DatafeedConfig { get; init; } - - /// - /// - /// Indicates that the process of deleting the job is in progress but not yet completed. - /// It is only reported when true. - /// - /// - [JsonInclude, JsonPropertyName("deleting")] - public bool? Deleting { get; init; } - - /// - /// - /// A description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// If the job closed or failed, this is the time the job finished, otherwise it is null. - /// This property is informational; you cannot change its value. - /// - /// - [JsonInclude, JsonPropertyName("finished_time")] - public DateTimeOffset? FinishedTime { get; init; } - - /// - /// - /// A list of job groups. - /// A job can belong to no groups or many. - /// - /// - [JsonInclude, JsonPropertyName("groups")] - public IReadOnlyCollection? Groups { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. - /// It must start and end with alphanumeric characters. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// Reserved for future use, currently set to anomaly_detector. - /// - /// - [JsonInclude, JsonPropertyName("job_type")] - public string? JobType { get; init; } - - /// - /// - /// The machine learning configuration version number at which the the job was created. - /// - /// - [JsonInclude, JsonPropertyName("job_version")] - public string? JobVersion { get; init; } - - /// - /// - /// This advanced configuration option stores model information along with the results. - /// It provides a more detailed view into anomaly detection. - /// Model plot provides a simplified and indicative view of the model and its bounds. - /// - /// - [JsonInclude, JsonPropertyName("model_plot_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPlotConfig? ModelPlotConfig { get; init; } - [JsonInclude, JsonPropertyName("model_snapshot_id")] - public string? ModelSnapshotId { get; init; } - - /// - /// - /// Advanced configuration option, which affects the automatic removal of old model snapshots for this job. - /// It specifies the maximum period of time (in days) that snapshots are retained. - /// This period is relative to the timestamp of the most recent snapshot for this job. - /// By default, snapshots ten days older than the newest snapshot are deleted. - /// - /// - [JsonInclude, JsonPropertyName("model_snapshot_retention_days")] - public long ModelSnapshotRetentionDays { get; init; } - - /// - /// - /// Advanced configuration option. - /// The period over which adjustments to the score are applied, as new data is seen. - /// The default value is the longer of 30 days or 100 bucket_spans. - /// - /// - [JsonInclude, JsonPropertyName("renormalization_window_days")] - public long? RenormalizationWindowDays { get; init; } - - /// - /// - /// A text string that affects the name of the machine learning results index. - /// The default value is shared, which generates an index named .ml-anomalies-shared. - /// - /// - [JsonInclude, JsonPropertyName("results_index_name")] - public string ResultsIndexName { get; init; } - - /// - /// - /// Advanced configuration option. - /// The period of time (in days) that results are retained. - /// Age is calculated relative to the timestamp of the latest bucket result. - /// If this property has a non-null value, once per day at 00:30 (server time), results that are the specified number of days older than the latest bucket result are deleted from Elasticsearch. - /// The default value is null, which means all results are retained. - /// Annotations generated by the system also count as results for retention purposes; they are deleted after the same number of days as results. - /// Annotations added by users are retained forever. - /// - /// - [JsonInclude, JsonPropertyName("results_retention_days")] - public long? ResultsRetentionDays { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobBlocked.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobBlocked.g.cs deleted file mode 100644 index a6f0ecc0bb5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobBlocked.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class JobBlocked -{ - [JsonInclude, JsonPropertyName("reason")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobBlockedReason Reason { get; init; } - [JsonInclude, JsonPropertyName("task_id")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? TaskId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs deleted file mode 100644 index 944103753d2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobForecastStatistics.g.cs +++ /dev/null @@ -1,44 +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.MachineLearning; - -public sealed partial class JobForecastStatistics -{ - [JsonInclude, JsonPropertyName("forecasted_jobs")] - public int ForecastedJobs { get; init; } - [JsonInclude, JsonPropertyName("memory_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics? MemoryBytes { get; init; } - [JsonInclude, JsonPropertyName("processing_time_ms")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics? ProcessingTimeMs { get; init; } - [JsonInclude, JsonPropertyName("records")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics? Records { get; init; } - [JsonInclude, JsonPropertyName("status")] - public IReadOnlyDictionary? Status { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStatistics.g.cs deleted file mode 100644 index 95308fbafb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStatistics.g.cs +++ /dev/null @@ -1,40 +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.MachineLearning; - -public sealed partial class JobStatistics -{ - [JsonInclude, JsonPropertyName("avg")] - public double Avg { get; init; } - [JsonInclude, JsonPropertyName("max")] - public double Max { get; init; } - [JsonInclude, JsonPropertyName("min")] - public double Min { get; init; } - [JsonInclude, JsonPropertyName("total")] - public double Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStats.g.cs deleted file mode 100644 index 417d21bf799..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobStats.g.cs +++ /dev/null @@ -1,106 +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.MachineLearning; - -public sealed partial class JobStats -{ - /// - /// - /// For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job. - /// - /// - [JsonInclude, JsonPropertyName("assignment_explanation")] - public string? AssignmentExplanation { get; init; } - - /// - /// - /// An object that describes the quantity of input to the job and any related error counts. - /// The data_count values are cumulative for the lifetime of a job. - /// If a model snapshot is reverted or old results are deleted, the job counts are not reset. - /// - /// - [JsonInclude, JsonPropertyName("data_counts")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DataCounts DataCounts { get; init; } - - /// - /// - /// Indicates that the process of deleting the job is in progress but not yet completed. It is only reported when true. - /// - /// - [JsonInclude, JsonPropertyName("deleting")] - public bool? Deleting { get; init; } - - /// - /// - /// An object that provides statistical information about forecasts belonging to this job. - /// Some statistics are omitted if no forecasts have been made. - /// - /// - [JsonInclude, JsonPropertyName("forecasts_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobForecastStatistics ForecastsStats { get; init; } - - /// - /// - /// Identifier for the anomaly detection job. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// An object that provides information about the size and contents of the model. - /// - /// - [JsonInclude, JsonPropertyName("model_size_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelSizeStats ModelSizeStats { get; init; } - - /// - /// - /// For open jobs only, the elapsed time for which the job has been open. - /// - /// - [JsonInclude, JsonPropertyName("open_time")] - public DateTimeOffset? OpenTime { get; init; } - - /// - /// - /// The status of the anomaly detection job, which can be one of the following values: closed, closing, failed, opened, opening. - /// - /// - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobState State { get; init; } - - /// - /// - /// An object that provides statistical information about timing aspect of this job. - /// - /// - [JsonInclude, JsonPropertyName("timing_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobTimingStats TimingStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobTimingStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobTimingStats.g.cs deleted file mode 100644 index dd6e02ace02..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JobTimingStats.g.cs +++ /dev/null @@ -1,48 +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.MachineLearning; - -public sealed partial class JobTimingStats -{ - [JsonInclude, JsonPropertyName("average_bucket_processing_time_ms")] - public double? AverageBucketProcessingTimeMs { get; init; } - [JsonInclude, JsonPropertyName("bucket_count")] - public long BucketCount { get; init; } - [JsonInclude, JsonPropertyName("exponential_average_bucket_processing_time_ms")] - public double? ExponentialAverageBucketProcessingTimeMs { get; init; } - [JsonInclude, JsonPropertyName("exponential_average_bucket_processing_time_per_hour_ms")] - public double ExponentialAverageBucketProcessingTimePerHourMs { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("maximum_bucket_processing_time_ms")] - public double? MaximumBucketProcessingTimeMs { get; init; } - [JsonInclude, JsonPropertyName("minimum_bucket_processing_time_ms")] - public double? MinimumBucketProcessingTimeMs { get; init; } - [JsonInclude, JsonPropertyName("total_bucket_processing_time_ms")] - public double TotalBucketProcessingTimeMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JvmStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JvmStats.g.cs deleted file mode 100644 index 2d222e2e8ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/JvmStats.g.cs +++ /dev/null @@ -1,79 +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.MachineLearning; - -public sealed partial class JvmStats -{ - /// - /// - /// Maximum amount of memory available for use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("heap_max")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? HeapMax { get; init; } - - /// - /// - /// Maximum amount of memory, in bytes, available for use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("heap_max_in_bytes")] - public int HeapMaxInBytes { get; init; } - - /// - /// - /// Amount of Java heap currently being used for caching inference models. - /// - /// - [JsonInclude, JsonPropertyName("java_inference")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? JavaInference { get; init; } - - /// - /// - /// Amount of Java heap, in bytes, currently being used for caching inference models. - /// - /// - [JsonInclude, JsonPropertyName("java_inference_in_bytes")] - public int JavaInferenceInBytes { get; init; } - - /// - /// - /// Maximum amount of Java heap to be used for caching inference models. - /// - /// - [JsonInclude, JsonPropertyName("java_inference_max")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? JavaInferenceMax { get; init; } - - /// - /// - /// Maximum amount of Java heap, in bytes, to be used for caching inference models. - /// - /// - [JsonInclude, JsonPropertyName("java_inference_max_in_bytes")] - public int JavaInferenceMaxInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs deleted file mode 100644 index 43e5e559dc6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Limits.g.cs +++ /dev/null @@ -1,42 +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.MachineLearning; - -public sealed partial class Limits -{ - [JsonInclude, JsonPropertyName("effective_max_model_memory_limit")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? EffectiveMaxModelMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("max_model_memory_limit")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxModelMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("max_single_ml_node_processors")] - public int? MaxSingleMlNodeProcessors { get; init; } - [JsonInclude, JsonPropertyName("total_ml_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize TotalMlMemory { get; init; } - [JsonInclude, JsonPropertyName("total_ml_processors")] - public int? TotalMlProcessors { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemMlStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemMlStats.g.cs deleted file mode 100644 index fb4ad9f2700..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemMlStats.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.MachineLearning; - -public sealed partial class MemMlStats -{ - /// - /// - /// Amount of native memory set aside for anomaly detection jobs. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_detectors")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? AnomalyDetectors { get; init; } - - /// - /// - /// Amount of native memory, in bytes, set aside for anomaly detection jobs. - /// - /// - [JsonInclude, JsonPropertyName("anomaly_detectors_in_bytes")] - public int AnomalyDetectorsInBytes { get; init; } - - /// - /// - /// Amount of native memory set aside for data frame analytics jobs. - /// - /// - [JsonInclude, JsonPropertyName("data_frame_analytics")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? DataFrameAnalytics { get; init; } - - /// - /// - /// Amount of native memory, in bytes, set aside for data frame analytics jobs. - /// - /// - [JsonInclude, JsonPropertyName("data_frame_analytics_in_bytes")] - public int DataFrameAnalyticsInBytes { get; init; } - - /// - /// - /// Maximum amount of native memory (separate to the JVM heap) that may be used by machine learning native processes. - /// - /// - [JsonInclude, JsonPropertyName("max")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Max { get; init; } - - /// - /// - /// Maximum amount of native memory (separate to the JVM heap), in bytes, that may be used by machine learning native processes. - /// - /// - [JsonInclude, JsonPropertyName("max_in_bytes")] - public int MaxInBytes { get; init; } - - /// - /// - /// Amount of native memory set aside for loading machine learning native code shared libraries. - /// - /// - [JsonInclude, JsonPropertyName("native_code_overhead")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? NativeCodeOverhead { get; init; } - - /// - /// - /// Amount of native memory, in bytes, set aside for loading machine learning native code shared libraries. - /// - /// - [JsonInclude, JsonPropertyName("native_code_overhead_in_bytes")] - public int NativeCodeOverheadInBytes { get; init; } - - /// - /// - /// Amount of native memory set aside for trained models that have a PyTorch model_type. - /// - /// - [JsonInclude, JsonPropertyName("native_inference")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? NativeInference { get; init; } - - /// - /// - /// Amount of native memory, in bytes, set aside for trained models that have a PyTorch model_type. - /// - /// - [JsonInclude, JsonPropertyName("native_inference_in_bytes")] - public int NativeInferenceInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemStats.g.cs deleted file mode 100644 index 57c7d2f5945..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/MemStats.g.cs +++ /dev/null @@ -1,73 +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.MachineLearning; - -public sealed partial class MemStats -{ - /// - /// - /// If the amount of physical memory has been overridden using the es.total_memory_bytes system property - /// then this reports the overridden value. Otherwise it reports the same value as total. - /// - /// - [JsonInclude, JsonPropertyName("adjusted_total")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? AdjustedTotal { get; init; } - - /// - /// - /// If the amount of physical memory has been overridden using the es.total_memory_bytes system property - /// then this reports the overridden value in bytes. Otherwise it reports the same value as total_in_bytes. - /// - /// - [JsonInclude, JsonPropertyName("adjusted_total_in_bytes")] - public int AdjustedTotalInBytes { get; init; } - - /// - /// - /// Contains statistics about machine learning use of native memory on the node. - /// - /// - [JsonInclude, JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.MemMlStats Ml { get; init; } - - /// - /// - /// Total amount of physical memory. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Total { get; init; } - - /// - /// - /// Total amount of physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public int TotalInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Memory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Memory.g.cs deleted file mode 100644 index 4a85e12020b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Memory.g.cs +++ /dev/null @@ -1,76 +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.MachineLearning; - -public sealed partial class Memory -{ - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary Attributes { get; init; } - [JsonInclude, JsonPropertyName("ephemeral_id")] - public string EphemeralId { get; init; } - - /// - /// - /// Contains Java Virtual Machine (JVM) statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JvmStats Jvm { get; init; } - - /// - /// - /// Contains statistics about memory usage for the node. - /// - /// - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.MemStats Mem { get; init; } - - /// - /// - /// Human-readable identifier for the node. Based on the Node name setting setting. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// Roles assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - - /// - /// - /// The host and port where transport HTTP connections are accepted. - /// - /// - [JsonInclude, JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs deleted file mode 100644 index 3152267a8f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPackageConfig.g.cs +++ /dev/null @@ -1,60 +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.MachineLearning; - -public sealed partial class ModelPackageConfig -{ - [JsonInclude, JsonPropertyName("create_time")] - public long? CreateTime { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("inference_config")] - public IReadOnlyDictionary? InferenceConfig { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary? Metadata { get; init; } - [JsonInclude, JsonPropertyName("minimum_version")] - public string? MinimumVersion { get; init; } - [JsonInclude, JsonPropertyName("model_repository")] - public string? ModelRepository { get; init; } - [JsonInclude, JsonPropertyName("model_type")] - public string? ModelType { get; init; } - [JsonInclude, JsonPropertyName("packaged_model_id")] - public string PackagedModelId { get; init; } - [JsonInclude, JsonPropertyName("platform_architecture")] - public string? PlatformArchitecture { get; init; } - [JsonInclude, JsonPropertyName("prefix_strings")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } - [JsonInclude, JsonPropertyName("sha256")] - public string? Sha256 { get; init; } - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; init; } - [JsonInclude, JsonPropertyName("tags")] - public IReadOnlyCollection? Tags { get; init; } - [JsonInclude, JsonPropertyName("vocabulary_file")] - public string? VocabularyFile { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs deleted file mode 100644 index d5394af556e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelPlotConfig.g.cs +++ /dev/null @@ -1,239 +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.MachineLearning; - -public sealed partial class ModelPlotConfig -{ - /// - /// - /// If true, enables calculation and storage of the model change annotations for each entity that is being analyzed. - /// - /// - [JsonInclude, JsonPropertyName("annotations_enabled")] - public bool? AnnotationsEnabled { get; set; } - - /// - /// - /// If true, enables calculation and storage of the model bounds for each entity that is being analyzed. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - [JsonInclude, JsonPropertyName("terms")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Terms { get; set; } -} - -public sealed partial class ModelPlotConfigDescriptor : SerializableDescriptor> -{ - internal ModelPlotConfigDescriptor(Action> configure) => configure.Invoke(this); - - public ModelPlotConfigDescriptor() : base() - { - } - - private bool? AnnotationsEnabledValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TermsValue { get; set; } - - /// - /// - /// If true, enables calculation and storage of the model change annotations for each entity that is being analyzed. - /// - /// - public ModelPlotConfigDescriptor AnnotationsEnabled(bool? annotationsEnabled = true) - { - AnnotationsEnabledValue = annotationsEnabled; - return Self; - } - - /// - /// - /// If true, enables calculation and storage of the model bounds for each entity that is being analyzed. - /// - /// - public ModelPlotConfigDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - public ModelPlotConfigDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Field? terms) - { - TermsValue = terms; - return Self; - } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnnotationsEnabledValue.HasValue) - { - writer.WritePropertyName("annotations_enabled"); - writer.WriteBooleanValue(AnnotationsEnabledValue.Value); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (TermsValue is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ModelPlotConfigDescriptor : SerializableDescriptor -{ - internal ModelPlotConfigDescriptor(Action configure) => configure.Invoke(this); - - public ModelPlotConfigDescriptor() : base() - { - } - - private bool? AnnotationsEnabledValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? TermsValue { get; set; } - - /// - /// - /// If true, enables calculation and storage of the model change annotations for each entity that is being analyzed. - /// - /// - public ModelPlotConfigDescriptor AnnotationsEnabled(bool? annotationsEnabled = true) - { - AnnotationsEnabledValue = annotationsEnabled; - return Self; - } - - /// - /// - /// If true, enables calculation and storage of the model bounds for each entity that is being analyzed. - /// - /// - public ModelPlotConfigDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - public ModelPlotConfigDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Field? terms) - { - TermsValue = terms; - return Self; - } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - /// - /// - /// Limits data collection to this comma separated list of partition or by field values. If terms are not specified or it is an empty string, no filtering is applied. Wildcards are not supported. Only the specified terms can be viewed when using the Single Metric Viewer. - /// - /// - public ModelPlotConfigDescriptor Terms(Expression> terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnnotationsEnabledValue.HasValue) - { - writer.WritePropertyName("annotations_enabled"); - writer.WriteBooleanValue(AnnotationsEnabledValue.Value); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (TermsValue is not null) - { - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs deleted file mode 100644 index 6a4edf5c573..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSizeStats.g.cs +++ /dev/null @@ -1,76 +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.MachineLearning; - -public sealed partial class ModelSizeStats -{ - [JsonInclude, JsonPropertyName("assignment_memory_basis")] - public string? AssignmentMemoryBasis { get; init; } - [JsonInclude, JsonPropertyName("bucket_allocation_failures_count")] - public long BucketAllocationFailuresCount { get; init; } - [JsonInclude, JsonPropertyName("categorization_status")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.CategorizationStatus CategorizationStatus { get; init; } - [JsonInclude, JsonPropertyName("categorized_doc_count")] - public int CategorizedDocCount { get; init; } - [JsonInclude, JsonPropertyName("dead_category_count")] - public int DeadCategoryCount { get; init; } - [JsonInclude, JsonPropertyName("failed_category_count")] - public int FailedCategoryCount { get; init; } - [JsonInclude, JsonPropertyName("frequent_category_count")] - public int FrequentCategoryCount { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("log_time")] - public DateTimeOffset LogTime { get; init; } - [JsonInclude, JsonPropertyName("memory_status")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.MemoryStatus MemoryStatus { get; init; } - [JsonInclude, JsonPropertyName("model_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize ModelBytes { get; init; } - [JsonInclude, JsonPropertyName("model_bytes_exceeded")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelBytesExceeded { get; init; } - [JsonInclude, JsonPropertyName("model_bytes_memory_limit")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelBytesMemoryLimit { get; init; } - [JsonInclude, JsonPropertyName("output_memory_allocator_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? OutputMemoryAllocatorBytes { get; init; } - [JsonInclude, JsonPropertyName("peak_model_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? PeakModelBytes { get; init; } - [JsonInclude, JsonPropertyName("rare_category_count")] - public int RareCategoryCount { get; init; } - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - [JsonInclude, JsonPropertyName("total_by_field_count")] - public long TotalByFieldCount { get; init; } - [JsonInclude, JsonPropertyName("total_category_count")] - public int TotalCategoryCount { get; init; } - [JsonInclude, JsonPropertyName("total_over_field_count")] - public long TotalOverFieldCount { get; init; } - [JsonInclude, JsonPropertyName("total_partition_field_count")] - public long TotalPartitionFieldCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshot.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshot.g.cs deleted file mode 100644 index 9db647910df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshot.g.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. -// -// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ -// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ -// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ -// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ -// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ -// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ -// ------------------------------------------------ -// -// 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.MachineLearning; - -public sealed partial class ModelSnapshot -{ - /// - /// - /// An optional description of the job. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// A numerical character string that uniquely identifies the job that the snapshot was created for. - /// - /// - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - - /// - /// - /// The timestamp of the latest processed record. - /// - /// - [JsonInclude, JsonPropertyName("latest_record_time_stamp")] - public int? LatestRecordTimeStamp { get; init; } - - /// - /// - /// The timestamp of the latest bucket result. - /// - /// - [JsonInclude, JsonPropertyName("latest_result_time_stamp")] - public int? LatestResultTimeStamp { get; init; } - - /// - /// - /// The minimum version required to be able to restore the model snapshot. - /// - /// - [JsonInclude, JsonPropertyName("min_version")] - public string MinVersion { get; init; } - - /// - /// - /// Summary information describing the model. - /// - /// - [JsonInclude, JsonPropertyName("model_size_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelSizeStats? ModelSizeStats { get; init; } - - /// - /// - /// If true, this snapshot will not be deleted during automatic cleanup of snapshots older than model_snapshot_retention_days. However, this snapshot will be deleted when the job is deleted. The default value is false. - /// - /// - [JsonInclude, JsonPropertyName("retain")] - public bool Retain { get; init; } - - /// - /// - /// For internal use only. - /// - /// - [JsonInclude, JsonPropertyName("snapshot_doc_count")] - public long SnapshotDocCount { get; init; } - - /// - /// - /// A numerical character string that uniquely identifies the model snapshot. - /// - /// - [JsonInclude, JsonPropertyName("snapshot_id")] - public string SnapshotId { get; init; } - - /// - /// - /// The creation timestamp for the snapshot. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs deleted file mode 100644 index b3f5d5fd72d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ModelSnapshotUpgrade.g.cs +++ /dev/null @@ -1,40 +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.MachineLearning; - -public sealed partial class ModelSnapshotUpgrade -{ - [JsonInclude, JsonPropertyName("assignment_explanation")] - public string AssignmentExplanation { get; init; } - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("snapshot_id")] - public string SnapshotId { get; init; } - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.SnapshotUpgradeState State { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NativeCode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NativeCode.g.cs deleted file mode 100644 index 15fd1504a3b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NativeCode.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class NativeCode -{ - [JsonInclude, JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs deleted file mode 100644 index 1be4abae252..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceOptions.g.cs +++ /dev/null @@ -1,212 +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.MachineLearning; - -/// -/// -/// Named entity recognition options -/// -/// -public sealed partial class NerInferenceOptions -{ - /// - /// - /// The token classification labels. Must be IOB formatted tags - /// - /// - [JsonInclude, JsonPropertyName("classification_labels")] - public ICollection? ClassificationLabels { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - [JsonInclude, JsonPropertyName("vocabulary")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary? Vocabulary { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(NerInferenceOptions nerInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.Ner(nerInferenceOptions); -} - -/// -/// -/// Named entity recognition options -/// -/// -public sealed partial class NerInferenceOptionsDescriptor : SerializableDescriptor -{ - internal NerInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public NerInferenceOptionsDescriptor() : base() - { - } - - private ICollection? ClassificationLabelsValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary? VocabularyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } - private Action VocabularyDescriptorAction { get; set; } - - /// - /// - /// The token classification labels. Must be IOB formatted tags - /// - /// - public NerInferenceOptionsDescriptor ClassificationLabels(ICollection? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public NerInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options - /// - /// - public NerInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public NerInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public NerInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - public NerInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary? vocabulary) - { - VocabularyDescriptor = null; - VocabularyDescriptorAction = null; - VocabularyValue = vocabulary; - return Self; - } - - public NerInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor descriptor) - { - VocabularyValue = null; - VocabularyDescriptorAction = null; - VocabularyDescriptor = descriptor; - return Self; - } - - public NerInferenceOptionsDescriptor Vocabulary(Action configure) - { - VocabularyValue = null; - VocabularyDescriptor = null; - VocabularyDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - if (VocabularyDescriptor is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyDescriptor, options); - } - else if (VocabularyDescriptorAction is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); - } - else if (VocabularyValue is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs deleted file mode 100644 index 0e001aa293b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NerInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,131 +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.MachineLearning; - -public sealed partial class NerInferenceUpdateOptions -{ - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(NerInferenceUpdateOptions nerInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.Ner(nerInferenceUpdateOptions); -} - -public sealed partial class NerInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal NerInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public NerInferenceUpdateOptionsDescriptor() : base() - { - } - - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public NerInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public NerInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public NerInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public NerInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs deleted file mode 100644 index 6e27c5db1a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpBertTokenizationConfig.g.cs +++ /dev/null @@ -1,187 +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.MachineLearning; - -/// -/// -/// BERT and MPNet tokenization configuration options -/// -/// -public sealed partial class NlpBertTokenizationConfig -{ - /// - /// - /// Should the tokenizer lower case the text - /// - /// - [JsonInclude, JsonPropertyName("do_lower_case")] - public bool? DoLowerCase { get; set; } - - /// - /// - /// Maximum input sequence length for the model - /// - /// - [JsonInclude, JsonPropertyName("max_sequence_length")] - public int? MaxSequenceLength { get; set; } - - /// - /// - /// Tokenization spanning options. Special value of -1 indicates no spanning takes place - /// - /// - [JsonInclude, JsonPropertyName("span")] - public int? Span { get; set; } - - /// - /// - /// Should tokenization input be automatically truncated before sending to the model for inference - /// - /// - [JsonInclude, JsonPropertyName("truncate")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? Truncate { get; set; } - - /// - /// - /// Is tokenization completed with special tokens - /// - /// - [JsonInclude, JsonPropertyName("with_special_tokens")] - public bool? WithSpecialTokens { get; set; } -} - -/// -/// -/// BERT and MPNet tokenization configuration options -/// -/// -public sealed partial class NlpBertTokenizationConfigDescriptor : SerializableDescriptor -{ - internal NlpBertTokenizationConfigDescriptor(Action configure) => configure.Invoke(this); - - public NlpBertTokenizationConfigDescriptor() : base() - { - } - - private bool? DoLowerCaseValue { get; set; } - private int? MaxSequenceLengthValue { get; set; } - private int? SpanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? TruncateValue { get; set; } - private bool? WithSpecialTokensValue { get; set; } - - /// - /// - /// Should the tokenizer lower case the text - /// - /// - public NlpBertTokenizationConfigDescriptor DoLowerCase(bool? doLowerCase = true) - { - DoLowerCaseValue = doLowerCase; - return Self; - } - - /// - /// - /// Maximum input sequence length for the model - /// - /// - public NlpBertTokenizationConfigDescriptor MaxSequenceLength(int? maxSequenceLength) - { - MaxSequenceLengthValue = maxSequenceLength; - return Self; - } - - /// - /// - /// Tokenization spanning options. Special value of -1 indicates no spanning takes place - /// - /// - public NlpBertTokenizationConfigDescriptor Span(int? span) - { - SpanValue = span; - return Self; - } - - /// - /// - /// Should tokenization input be automatically truncated before sending to the model for inference - /// - /// - public NlpBertTokenizationConfigDescriptor Truncate(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? truncate) - { - TruncateValue = truncate; - return Self; - } - - /// - /// - /// Is tokenization completed with special tokens - /// - /// - public NlpBertTokenizationConfigDescriptor WithSpecialTokens(bool? withSpecialTokens = true) - { - WithSpecialTokensValue = withSpecialTokens; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DoLowerCaseValue.HasValue) - { - writer.WritePropertyName("do_lower_case"); - writer.WriteBooleanValue(DoLowerCaseValue.Value); - } - - if (MaxSequenceLengthValue.HasValue) - { - writer.WritePropertyName("max_sequence_length"); - writer.WriteNumberValue(MaxSequenceLengthValue.Value); - } - - if (SpanValue.HasValue) - { - writer.WritePropertyName("span"); - writer.WriteNumberValue(SpanValue.Value); - } - - if (TruncateValue is not null) - { - writer.WritePropertyName("truncate"); - JsonSerializer.Serialize(writer, TruncateValue, options); - } - - if (WithSpecialTokensValue.HasValue) - { - writer.WritePropertyName("with_special_tokens"); - writer.WriteBooleanValue(WithSpecialTokensValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs deleted file mode 100644 index 260c112a22b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpRobertaTokenizationConfig.g.cs +++ /dev/null @@ -1,215 +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.MachineLearning; - -/// -/// -/// RoBERTa tokenization configuration options -/// -/// -public sealed partial class NlpRobertaTokenizationConfig -{ - /// - /// - /// Should the tokenizer prefix input with a space character - /// - /// - [JsonInclude, JsonPropertyName("add_prefix_space")] - public bool? AddPrefixSpace { get; set; } - - /// - /// - /// Should the tokenizer lower case the text - /// - /// - [JsonInclude, JsonPropertyName("do_lower_case")] - public bool? DoLowerCase { get; set; } - - /// - /// - /// Maximum input sequence length for the model - /// - /// - [JsonInclude, JsonPropertyName("max_sequence_length")] - public int? MaxSequenceLength { get; set; } - - /// - /// - /// Tokenization spanning options. Special value of -1 indicates no spanning takes place - /// - /// - [JsonInclude, JsonPropertyName("span")] - public int? Span { get; set; } - - /// - /// - /// Should tokenization input be automatically truncated before sending to the model for inference - /// - /// - [JsonInclude, JsonPropertyName("truncate")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? Truncate { get; set; } - - /// - /// - /// Is tokenization completed with special tokens - /// - /// - [JsonInclude, JsonPropertyName("with_special_tokens")] - public bool? WithSpecialTokens { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig(NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig.Roberta(nlpRobertaTokenizationConfig); -} - -/// -/// -/// RoBERTa tokenization configuration options -/// -/// -public sealed partial class NlpRobertaTokenizationConfigDescriptor : SerializableDescriptor -{ - internal NlpRobertaTokenizationConfigDescriptor(Action configure) => configure.Invoke(this); - - public NlpRobertaTokenizationConfigDescriptor() : base() - { - } - - private bool? AddPrefixSpaceValue { get; set; } - private bool? DoLowerCaseValue { get; set; } - private int? MaxSequenceLengthValue { get; set; } - private int? SpanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? TruncateValue { get; set; } - private bool? WithSpecialTokensValue { get; set; } - - /// - /// - /// Should the tokenizer prefix input with a space character - /// - /// - public NlpRobertaTokenizationConfigDescriptor AddPrefixSpace(bool? addPrefixSpace = true) - { - AddPrefixSpaceValue = addPrefixSpace; - return Self; - } - - /// - /// - /// Should the tokenizer lower case the text - /// - /// - public NlpRobertaTokenizationConfigDescriptor DoLowerCase(bool? doLowerCase = true) - { - DoLowerCaseValue = doLowerCase; - return Self; - } - - /// - /// - /// Maximum input sequence length for the model - /// - /// - public NlpRobertaTokenizationConfigDescriptor MaxSequenceLength(int? maxSequenceLength) - { - MaxSequenceLengthValue = maxSequenceLength; - return Self; - } - - /// - /// - /// Tokenization spanning options. Special value of -1 indicates no spanning takes place - /// - /// - public NlpRobertaTokenizationConfigDescriptor Span(int? span) - { - SpanValue = span; - return Self; - } - - /// - /// - /// Should tokenization input be automatically truncated before sending to the model for inference - /// - /// - public NlpRobertaTokenizationConfigDescriptor Truncate(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? truncate) - { - TruncateValue = truncate; - return Self; - } - - /// - /// - /// Is tokenization completed with special tokens - /// - /// - public NlpRobertaTokenizationConfigDescriptor WithSpecialTokens(bool? withSpecialTokens = true) - { - WithSpecialTokensValue = withSpecialTokens; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AddPrefixSpaceValue.HasValue) - { - writer.WritePropertyName("add_prefix_space"); - writer.WriteBooleanValue(AddPrefixSpaceValue.Value); - } - - if (DoLowerCaseValue.HasValue) - { - writer.WritePropertyName("do_lower_case"); - writer.WriteBooleanValue(DoLowerCaseValue.Value); - } - - if (MaxSequenceLengthValue.HasValue) - { - writer.WritePropertyName("max_sequence_length"); - writer.WriteNumberValue(MaxSequenceLengthValue.Value); - } - - if (SpanValue.HasValue) - { - writer.WritePropertyName("span"); - writer.WriteNumberValue(SpanValue.Value); - } - - if (TruncateValue is not null) - { - writer.WritePropertyName("truncate"); - JsonSerializer.Serialize(writer, TruncateValue, options); - } - - if (WithSpecialTokensValue.HasValue) - { - writer.WritePropertyName("with_special_tokens"); - writer.WriteBooleanValue(WithSpecialTokensValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs deleted file mode 100644 index fa8f9c663a6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/NlpTokenizationUpdateOptions.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class NlpTokenizationUpdateOptions -{ - /// - /// - /// Span options to apply - /// - /// - [JsonInclude, JsonPropertyName("span")] - public int? Span { get; set; } - - /// - /// - /// Truncate options to apply - /// - /// - [JsonInclude, JsonPropertyName("truncate")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? Truncate { get; set; } -} - -public sealed partial class NlpTokenizationUpdateOptionsDescriptor : SerializableDescriptor -{ - internal NlpTokenizationUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public NlpTokenizationUpdateOptionsDescriptor() : base() - { - } - - private int? SpanValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? TruncateValue { get; set; } - - /// - /// - /// Span options to apply - /// - /// - public NlpTokenizationUpdateOptionsDescriptor Span(int? span) - { - SpanValue = span; - return Self; - } - - /// - /// - /// Truncate options to apply - /// - /// - public NlpTokenizationUpdateOptionsDescriptor Truncate(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationTruncate? truncate) - { - TruncateValue = truncate; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SpanValue.HasValue) - { - writer.WritePropertyName("span"); - writer.WriteNumberValue(SpanValue.Value); - } - - if (TruncateValue is not null) - { - writer.WritePropertyName("truncate"); - JsonSerializer.Serialize(writer, TruncateValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs deleted file mode 100644 index 5ade6587249..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OneHotEncodingPreprocessor.g.cs +++ /dev/null @@ -1,72 +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.MachineLearning; - -public sealed partial class OneHotEncodingPreprocessor -{ - [JsonInclude, JsonPropertyName("field")] - public string Field { get; set; } - [JsonInclude, JsonPropertyName("hot_map")] - public IDictionary HotMap { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Preprocessor(OneHotEncodingPreprocessor oneHotEncodingPreprocessor) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Preprocessor.OneHotEncoding(oneHotEncodingPreprocessor); -} - -public sealed partial class OneHotEncodingPreprocessorDescriptor : SerializableDescriptor -{ - internal OneHotEncodingPreprocessorDescriptor(Action configure) => configure.Invoke(this); - - public OneHotEncodingPreprocessorDescriptor() : base() - { - } - - private string FieldValue { get; set; } - private IDictionary HotMapValue { get; set; } - - public OneHotEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public OneHotEncodingPreprocessorDescriptor HotMap(Func, FluentDictionary> selector) - { - HotMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("hot_map"); - JsonSerializer.Serialize(writer, HotMapValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.g.cs deleted file mode 100644 index 76bd6e84c89..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucket.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.MachineLearning; - -public sealed partial class OverallBucket -{ - /// - /// - /// The length of the bucket in seconds. Matches the job with the longest bucket_span value. - /// - /// - [JsonInclude, JsonPropertyName("bucket_span")] - public long BucketSpan { get; init; } - - /// - /// - /// If true, this is an interim result. In other words, the results are calculated based on partial input data. - /// - /// - [JsonInclude, JsonPropertyName("is_interim")] - public bool IsInterim { get; init; } - - /// - /// - /// An array of objects that contain the max_anomaly_score per job_id. - /// - /// - [JsonInclude, JsonPropertyName("jobs")] - public IReadOnlyCollection Jobs { get; init; } - - /// - /// - /// The top_n average of the maximum bucket anomaly_score per job. - /// - /// - [JsonInclude, JsonPropertyName("overall_score")] - public double OverallScore { get; init; } - - /// - /// - /// Internal. This is always set to overall_bucket. - /// - /// - [JsonInclude, JsonPropertyName("result_type")] - public string ResultType { get; init; } - - /// - /// - /// The start time of the bucket for which these results were calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } - - /// - /// - /// The start time of the bucket for which these results were calculated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp_string")] - public DateTimeOffset? TimestampString { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucketJob.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucketJob.g.cs deleted file mode 100644 index 205fb773271..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/OverallBucketJob.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class OverallBucketJob -{ - [JsonInclude, JsonPropertyName("job_id")] - public string JobId { get; init; } - [JsonInclude, JsonPropertyName("max_anomaly_score")] - public double MaxAnomalyScore { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Page.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Page.g.cs deleted file mode 100644 index d01fb20346b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Page.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class Page -{ - /// - /// - /// Skips the specified number of items. - /// - /// - [JsonInclude, JsonPropertyName("from")] - public int? From { get; set; } - - /// - /// - /// Specifies the maximum number of items to obtain. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; set; } -} - -public sealed partial class PageDescriptor : SerializableDescriptor -{ - internal PageDescriptor(Action configure) => configure.Invoke(this); - - public PageDescriptor() : base() - { - } - - private int? FromValue { get; set; } - private int? SizeValue { get; set; } - - /// - /// - /// Skips the specified number of items. - /// - /// - public PageDescriptor From(int? from) - { - FromValue = from; - return Self; - } - - /// - /// - /// Specifies the maximum number of items to obtain. - /// - /// - public PageDescriptor Size(int? size) - { - SizeValue = size; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FromValue.HasValue) - { - writer.WritePropertyName("from"); - writer.WriteNumberValue(FromValue.Value); - } - - if (SizeValue.HasValue) - { - writer.WritePropertyName("size"); - writer.WriteNumberValue(SizeValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs deleted file mode 100644 index ef00813e79e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceOptions.g.cs +++ /dev/null @@ -1,186 +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.MachineLearning; - -/// -/// -/// Pass through configuration options -/// -/// -public sealed partial class PassThroughInferenceOptions -{ - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - [JsonInclude, JsonPropertyName("vocabulary")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary? Vocabulary { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(PassThroughInferenceOptions passThroughInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.PassThrough(passThroughInferenceOptions); -} - -/// -/// -/// Pass through configuration options -/// -/// -public sealed partial class PassThroughInferenceOptionsDescriptor : SerializableDescriptor -{ - internal PassThroughInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public PassThroughInferenceOptionsDescriptor() : base() - { - } - - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary? VocabularyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } - private Action VocabularyDescriptorAction { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public PassThroughInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options - /// - /// - public PassThroughInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public PassThroughInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public PassThroughInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - public PassThroughInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary? vocabulary) - { - VocabularyDescriptor = null; - VocabularyDescriptorAction = null; - VocabularyValue = vocabulary; - return Self; - } - - public PassThroughInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor descriptor) - { - VocabularyValue = null; - VocabularyDescriptorAction = null; - VocabularyDescriptor = descriptor; - return Self; - } - - public PassThroughInferenceOptionsDescriptor Vocabulary(Action configure) - { - VocabularyValue = null; - VocabularyDescriptor = null; - VocabularyDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - if (VocabularyDescriptor is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyDescriptor, options); - } - else if (VocabularyDescriptorAction is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); - } - else if (VocabularyValue is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs deleted file mode 100644 index 0618f73f9d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PassThroughInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,131 +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.MachineLearning; - -public sealed partial class PassThroughInferenceUpdateOptions -{ - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(PassThroughInferenceUpdateOptions passThroughInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.PassThrough(passThroughInferenceUpdateOptions); -} - -public sealed partial class PassThroughInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal PassThroughInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public PassThroughInferenceUpdateOptionsDescriptor() : base() - { - } - - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public PassThroughInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public PassThroughInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public PassThroughInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public PassThroughInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs deleted file mode 100644 index eb7bae950d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/PerPartitionCategorization.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class PerPartitionCategorization -{ - /// - /// - /// To enable this setting, you must also set the partition_field_name property to the same value in every detector that uses the keyword mlcategory. Otherwise, job creation fails. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - /// - /// - /// This setting can be set to true only if per-partition categorization is enabled. If true, both categorization and subsequent anomaly detection stops for partitions where the categorization status changes to warn. This setting makes it viable to have a job where it is expected that categorization works well for some partitions but not others; you do not pay the cost of bad categorization forever in the partitions where it works badly. - /// - /// - [JsonInclude, JsonPropertyName("stop_on_warn")] - public bool? StopOnWarn { get; set; } -} - -public sealed partial class PerPartitionCategorizationDescriptor : SerializableDescriptor -{ - internal PerPartitionCategorizationDescriptor(Action configure) => configure.Invoke(this); - - public PerPartitionCategorizationDescriptor() : base() - { - } - - private bool? EnabledValue { get; set; } - private bool? StopOnWarnValue { get; set; } - - /// - /// - /// To enable this setting, you must also set the partition_field_name property to the same value in every detector that uses the keyword mlcategory. Otherwise, job creation fails. - /// - /// - public PerPartitionCategorizationDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - /// - /// - /// This setting can be set to true only if per-partition categorization is enabled. If true, both categorization and subsequent anomaly detection stops for partitions where the categorization status changes to warn. This setting makes it viable to have a job where it is expected that categorization works well for some partitions but not others; you do not pay the cost of bad categorization forever in the partitions where it works badly. - /// - /// - public PerPartitionCategorizationDescriptor StopOnWarn(bool? stopOnWarn = true) - { - StopOnWarnValue = stopOnWarn; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (StopOnWarnValue.HasValue) - { - writer.WritePropertyName("stop_on_warn"); - writer.WriteBooleanValue(StopOnWarnValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Preprocessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Preprocessor.g.cs deleted file mode 100644 index ffce803e061..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Preprocessor.g.cs +++ /dev/null @@ -1,257 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -[JsonConverter(typeof(PreprocessorConverter))] -public sealed partial class Preprocessor -{ - internal Preprocessor(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Preprocessor FrequencyEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FrequencyEncodingPreprocessor frequencyEncodingPreprocessor) => new Preprocessor("frequency_encoding", frequencyEncodingPreprocessor); - public static Preprocessor OneHotEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.OneHotEncodingPreprocessor oneHotEncodingPreprocessor) => new Preprocessor("one_hot_encoding", oneHotEncodingPreprocessor); - public static Preprocessor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TargetMeanEncodingPreprocessor targetMeanEncodingPreprocessor) => new Preprocessor("target_mean_encoding", targetMeanEncodingPreprocessor); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class PreprocessorConverter : JsonConverter -{ - public override Preprocessor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "frequency_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "one_hot_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "target_mean_encoding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Preprocessor' from the response."); - } - - var result = new Preprocessor(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Preprocessor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "frequency_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FrequencyEncodingPreprocessor)value.Variant, options); - break; - case "one_hot_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.OneHotEncodingPreprocessor)value.Variant, options); - break; - case "target_mean_encoding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TargetMeanEncodingPreprocessor)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PreprocessorDescriptor : SerializableDescriptor> -{ - internal PreprocessorDescriptor(Action> configure) => configure.Invoke(this); - - public PreprocessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private PreprocessorDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private PreprocessorDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public PreprocessorDescriptor FrequencyEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FrequencyEncodingPreprocessor frequencyEncodingPreprocessor) => Set(frequencyEncodingPreprocessor, "frequency_encoding"); - public PreprocessorDescriptor FrequencyEncoding(Action configure) => Set(configure, "frequency_encoding"); - public PreprocessorDescriptor OneHotEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.OneHotEncodingPreprocessor oneHotEncodingPreprocessor) => Set(oneHotEncodingPreprocessor, "one_hot_encoding"); - public PreprocessorDescriptor OneHotEncoding(Action configure) => Set(configure, "one_hot_encoding"); - public PreprocessorDescriptor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TargetMeanEncodingPreprocessor targetMeanEncodingPreprocessor) => Set(targetMeanEncodingPreprocessor, "target_mean_encoding"); - public PreprocessorDescriptor TargetMeanEncoding(Action configure) => Set(configure, "target_mean_encoding"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PreprocessorDescriptor : SerializableDescriptor -{ - internal PreprocessorDescriptor(Action configure) => configure.Invoke(this); - - public PreprocessorDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private PreprocessorDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private PreprocessorDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public PreprocessorDescriptor FrequencyEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.FrequencyEncodingPreprocessor frequencyEncodingPreprocessor) => Set(frequencyEncodingPreprocessor, "frequency_encoding"); - public PreprocessorDescriptor FrequencyEncoding(Action configure) => Set(configure, "frequency_encoding"); - public PreprocessorDescriptor OneHotEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.OneHotEncodingPreprocessor oneHotEncodingPreprocessor) => Set(oneHotEncodingPreprocessor, "one_hot_encoding"); - public PreprocessorDescriptor OneHotEncoding(Action configure) => Set(configure, "one_hot_encoding"); - public PreprocessorDescriptor TargetMeanEncoding(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TargetMeanEncodingPreprocessor targetMeanEncodingPreprocessor) => Set(targetMeanEncodingPreprocessor, "target_mean_encoding"); - public PreprocessorDescriptor TargetMeanEncoding(Action configure) => Set(configure, "target_mean_encoding"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs deleted file mode 100644 index eea25d5cc23..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceOptions.g.cs +++ /dev/null @@ -1,193 +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.MachineLearning; - -/// -/// -/// Question answering inference options -/// -/// -public sealed partial class QuestionAnsweringInferenceOptions -{ - /// - /// - /// The maximum answer length to consider - /// - /// - [JsonInclude, JsonPropertyName("max_answer_length")] - public int? MaxAnswerLength { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(QuestionAnsweringInferenceOptions questionAnsweringInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.QuestionAnswering(questionAnsweringInferenceOptions); -} - -/// -/// -/// Question answering inference options -/// -/// -public sealed partial class QuestionAnsweringInferenceOptionsDescriptor : SerializableDescriptor -{ - internal QuestionAnsweringInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public QuestionAnsweringInferenceOptionsDescriptor() : base() - { - } - - private int? MaxAnswerLengthValue { get; set; } - private int? NumTopClassesValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The maximum answer length to consider - /// - /// - public QuestionAnsweringInferenceOptionsDescriptor MaxAnswerLength(int? maxAnswerLength) - { - MaxAnswerLengthValue = maxAnswerLength; - return Self; - } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public QuestionAnsweringInferenceOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public QuestionAnsweringInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public QuestionAnsweringInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public QuestionAnsweringInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public QuestionAnsweringInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxAnswerLengthValue.HasValue) - { - writer.WritePropertyName("max_answer_length"); - writer.WriteNumberValue(MaxAnswerLengthValue.Value); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs deleted file mode 100644 index 724868b82a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/QuestionAnsweringInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,205 +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.MachineLearning; - -public sealed partial class QuestionAnsweringInferenceUpdateOptions -{ - /// - /// - /// The maximum answer length to consider for extraction - /// - /// - [JsonInclude, JsonPropertyName("max_answer_length")] - public int? MaxAnswerLength { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// The question to answer given the inference context - /// - /// - [JsonInclude, JsonPropertyName("question")] - public string Question { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(QuestionAnsweringInferenceUpdateOptions questionAnsweringInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.QuestionAnswering(questionAnsweringInferenceUpdateOptions); -} - -public sealed partial class QuestionAnsweringInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal QuestionAnsweringInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public QuestionAnsweringInferenceUpdateOptionsDescriptor() : base() - { - } - - private int? MaxAnswerLengthValue { get; set; } - private int? NumTopClassesValue { get; set; } - private string QuestionValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The maximum answer length to consider for extraction - /// - /// - public QuestionAnsweringInferenceUpdateOptionsDescriptor MaxAnswerLength(int? maxAnswerLength) - { - MaxAnswerLengthValue = maxAnswerLength; - return Self; - } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public QuestionAnsweringInferenceUpdateOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// The question to answer given the inference context - /// - /// - public QuestionAnsweringInferenceUpdateOptionsDescriptor Question(string question) - { - QuestionValue = question; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public QuestionAnsweringInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public QuestionAnsweringInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public QuestionAnsweringInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public QuestionAnsweringInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MaxAnswerLengthValue.HasValue) - { - writer.WritePropertyName("max_answer_length"); - writer.WriteNumberValue(MaxAnswerLengthValue.Value); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - writer.WritePropertyName("question"); - writer.WriteStringValue(QuestionValue); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs deleted file mode 100644 index b6c6eb113bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RegressionInferenceOptions.g.cs +++ /dev/null @@ -1,199 +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.MachineLearning; - -public sealed partial class RegressionInferenceOptions -{ - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - [JsonInclude, JsonPropertyName("num_top_feature_importance_values")] - public int? NumTopFeatureImportanceValues { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? ResultsField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig(RegressionInferenceOptions regressionInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.Aggregations.InferenceConfig.Regression(regressionInferenceOptions); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(RegressionInferenceOptions regressionInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.Regression(regressionInferenceOptions); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(RegressionInferenceOptions regressionInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.Regression(regressionInferenceOptions); -} - -public sealed partial class RegressionInferenceOptionsDescriptor : SerializableDescriptor> -{ - internal RegressionInferenceOptionsDescriptor(Action> configure) => configure.Invoke(this); - - public RegressionInferenceOptionsDescriptor() : base() - { - } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public RegressionInferenceOptionsDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public RegressionInferenceOptionsDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public RegressionInferenceOptionsDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public RegressionInferenceOptionsDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RegressionInferenceOptionsDescriptor : SerializableDescriptor -{ - internal RegressionInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public RegressionInferenceOptionsDescriptor() : base() - { - } - - private int? NumTopFeatureImportanceValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? ResultsFieldValue { get; set; } - - /// - /// - /// Specifies the maximum number of feature importance values per document. - /// - /// - public RegressionInferenceOptionsDescriptor NumTopFeatureImportanceValues(int? numTopFeatureImportanceValues) - { - NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public RegressionInferenceOptionsDescriptor ResultsField(Elastic.Clients.Elasticsearch.Serverless.Field? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public RegressionInferenceOptionsDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public RegressionInferenceOptionsDescriptor ResultsField(Expression> resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (NumTopFeatureImportanceValuesValue.HasValue) - { - writer.WritePropertyName("num_top_feature_importance_values"); - writer.WriteNumberValue(NumTopFeatureImportanceValuesValue.Value); - } - - if (ResultsFieldValue is not null) - { - writer.WritePropertyName("results_field"); - JsonSerializer.Serialize(writer, ResultsFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RuleCondition.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RuleCondition.g.cs deleted file mode 100644 index 615ee4c9c1a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RuleCondition.g.cs +++ /dev/null @@ -1,113 +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.MachineLearning; - -public sealed partial class RuleCondition -{ - /// - /// - /// Specifies the result property to which the condition applies. If your detector uses lat_long, metric, rare, or freq_rare functions, you can only specify conditions that apply to time. - /// - /// - [JsonInclude, JsonPropertyName("applies_to")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AppliesTo AppliesTo { get; set; } - - /// - /// - /// Specifies the condition operator. The available options are greater than, greater than or equals, less than, and less than or equals. - /// - /// - [JsonInclude, JsonPropertyName("operator")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ConditionOperator Operator { get; set; } - - /// - /// - /// The value that is compared against the applies_to field using the operator. - /// - /// - [JsonInclude, JsonPropertyName("value")] - public double Value { get; set; } -} - -public sealed partial class RuleConditionDescriptor : SerializableDescriptor -{ - internal RuleConditionDescriptor(Action configure) => configure.Invoke(this); - - public RuleConditionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AppliesTo AppliesToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ConditionOperator OperatorValue { get; set; } - private double ValueValue { get; set; } - - /// - /// - /// Specifies the result property to which the condition applies. If your detector uses lat_long, metric, rare, or freq_rare functions, you can only specify conditions that apply to time. - /// - /// - public RuleConditionDescriptor AppliesTo(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AppliesTo appliesTo) - { - AppliesToValue = appliesTo; - return Self; - } - - /// - /// - /// Specifies the condition operator. The available options are greater than, greater than or equals, less than, and less than or equals. - /// - /// - public RuleConditionDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ConditionOperator value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// The value that is compared against the applies_to field using the operator. - /// - /// - public RuleConditionDescriptor Value(double value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("applies_to"); - JsonSerializer.Serialize(writer, AppliesToValue, options); - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - writer.WritePropertyName("value"); - writer.WriteNumberValue(ValueValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs deleted file mode 100644 index ceffe5648d6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/RunningStateSearchInterval.g.cs +++ /dev/null @@ -1,63 +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.MachineLearning; - -public sealed partial class RunningStateSearchInterval -{ - /// - /// - /// The end time. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? End { get; init; } - - /// - /// - /// The end time as an epoch in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("end_ms")] - public long EndMs { get; init; } - - /// - /// - /// The start time. - /// - /// - [JsonInclude, JsonPropertyName("start")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Start { get; init; } - - /// - /// - /// The start time as an epoch in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("start_ms")] - public long StartMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs deleted file mode 100644 index c8c9f987ff3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TargetMeanEncodingPreprocessor.g.cs +++ /dev/null @@ -1,94 +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.MachineLearning; - -public sealed partial class TargetMeanEncodingPreprocessor -{ - [JsonInclude, JsonPropertyName("default_value")] - public double DefaultValue { get; set; } - [JsonInclude, JsonPropertyName("feature_name")] - public string FeatureName { get; set; } - [JsonInclude, JsonPropertyName("field")] - public string Field { get; set; } - [JsonInclude, JsonPropertyName("target_map")] - public IDictionary TargetMap { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Preprocessor(TargetMeanEncodingPreprocessor targetMeanEncodingPreprocessor) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Preprocessor.TargetMeanEncoding(targetMeanEncodingPreprocessor); -} - -public sealed partial class TargetMeanEncodingPreprocessorDescriptor : SerializableDescriptor -{ - internal TargetMeanEncodingPreprocessorDescriptor(Action configure) => configure.Invoke(this); - - public TargetMeanEncodingPreprocessorDescriptor() : base() - { - } - - private double DefaultValueValue { get; set; } - private string FeatureNameValue { get; set; } - private string FieldValue { get; set; } - private IDictionary TargetMapValue { get; set; } - - public TargetMeanEncodingPreprocessorDescriptor DefaultValue(double defaultValue) - { - DefaultValueValue = defaultValue; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor FeatureName(string featureName) - { - FeatureNameValue = featureName; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - public TargetMeanEncodingPreprocessorDescriptor TargetMap(Func, FluentDictionary> selector) - { - TargetMapValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_value"); - writer.WriteNumberValue(DefaultValueValue); - writer.WritePropertyName("feature_name"); - writer.WriteStringValue(FeatureNameValue); - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("target_map"); - JsonSerializer.Serialize(writer, TargetMapValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs deleted file mode 100644 index fed77e31d98..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs +++ /dev/null @@ -1,193 +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.MachineLearning; - -/// -/// -/// Text classification configuration options -/// -/// -public sealed partial class TextClassificationInferenceOptions -{ - /// - /// - /// Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labels - /// - /// - [JsonInclude, JsonPropertyName("classification_labels")] - public ICollection? ClassificationLabels { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(TextClassificationInferenceOptions textClassificationInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.TextClassification(textClassificationInferenceOptions); -} - -/// -/// -/// Text classification configuration options -/// -/// -public sealed partial class TextClassificationInferenceOptionsDescriptor : SerializableDescriptor -{ - internal TextClassificationInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public TextClassificationInferenceOptionsDescriptor() : base() - { - } - - private ICollection? ClassificationLabelsValue { get; set; } - private int? NumTopClassesValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labels - /// - /// - public TextClassificationInferenceOptionsDescriptor ClassificationLabels(ICollection? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public TextClassificationInferenceOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public TextClassificationInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options - /// - /// - public TextClassificationInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public TextClassificationInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public TextClassificationInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs deleted file mode 100644 index 6613c59a10e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextClassificationInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,183 +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.MachineLearning; - -public sealed partial class TextClassificationInferenceUpdateOptions -{ - /// - /// - /// Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labels - /// - /// - [JsonInclude, JsonPropertyName("classification_labels")] - public ICollection? ClassificationLabels { get; set; } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - [JsonInclude, JsonPropertyName("num_top_classes")] - public int? NumTopClasses { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(TextClassificationInferenceUpdateOptions textClassificationInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.TextClassification(textClassificationInferenceUpdateOptions); -} - -public sealed partial class TextClassificationInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal TextClassificationInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public TextClassificationInferenceUpdateOptionsDescriptor() : base() - { - } - - private ICollection? ClassificationLabelsValue { get; set; } - private int? NumTopClassesValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labels - /// - /// - public TextClassificationInferenceUpdateOptionsDescriptor ClassificationLabels(ICollection? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - /// - /// - /// Specifies the number of top class predictions to return. Defaults to 0. - /// - /// - public TextClassificationInferenceUpdateOptionsDescriptor NumTopClasses(int? numTopClasses) - { - NumTopClassesValue = numTopClasses; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public TextClassificationInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public TextClassificationInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public TextClassificationInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public TextClassificationInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - if (NumTopClassesValue.HasValue) - { - writer.WritePropertyName("num_top_classes"); - writer.WriteNumberValue(NumTopClassesValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs deleted file mode 100644 index 06a6b317396..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceOptions.g.cs +++ /dev/null @@ -1,212 +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.MachineLearning; - -/// -/// -/// Text embedding inference options -/// -/// -public sealed partial class TextEmbeddingInferenceOptions -{ - /// - /// - /// The number of dimensions in the embedding output - /// - /// - [JsonInclude, JsonPropertyName("embedding_size")] - public int? EmbeddingSize { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - [JsonInclude, JsonPropertyName("vocabulary")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary Vocabulary { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(TextEmbeddingInferenceOptions textEmbeddingInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.TextEmbedding(textEmbeddingInferenceOptions); -} - -/// -/// -/// Text embedding inference options -/// -/// -public sealed partial class TextEmbeddingInferenceOptionsDescriptor : SerializableDescriptor -{ - internal TextEmbeddingInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public TextEmbeddingInferenceOptionsDescriptor() : base() - { - } - - private int? EmbeddingSizeValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary VocabularyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } - private Action VocabularyDescriptorAction { get; set; } - - /// - /// - /// The number of dimensions in the embedding output - /// - /// - public TextEmbeddingInferenceOptionsDescriptor EmbeddingSize(int? embeddingSize) - { - EmbeddingSizeValue = embeddingSize; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public TextEmbeddingInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options - /// - /// - public TextEmbeddingInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public TextEmbeddingInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public TextEmbeddingInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - public TextEmbeddingInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary vocabulary) - { - VocabularyDescriptor = null; - VocabularyDescriptorAction = null; - VocabularyValue = vocabulary; - return Self; - } - - public TextEmbeddingInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor descriptor) - { - VocabularyValue = null; - VocabularyDescriptorAction = null; - VocabularyDescriptor = descriptor; - return Self; - } - - public TextEmbeddingInferenceOptionsDescriptor Vocabulary(Action configure) - { - VocabularyValue = null; - VocabularyDescriptor = null; - VocabularyDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EmbeddingSizeValue.HasValue) - { - writer.WritePropertyName("embedding_size"); - writer.WriteNumberValue(EmbeddingSizeValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - if (VocabularyDescriptor is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyDescriptor, options); - } - else if (VocabularyDescriptorAction is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); - } - else - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs deleted file mode 100644 index aab77603e6d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextEmbeddingInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,120 +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.MachineLearning; - -public sealed partial class TextEmbeddingInferenceUpdateOptions -{ - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(TextEmbeddingInferenceUpdateOptions textEmbeddingInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.TextEmbedding(textEmbeddingInferenceUpdateOptions); -} - -public sealed partial class TextEmbeddingInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal TextEmbeddingInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public TextEmbeddingInferenceUpdateOptionsDescriptor() : base() - { - } - - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public TextEmbeddingInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public TextEmbeddingInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public TextEmbeddingInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public TextEmbeddingInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs deleted file mode 100644 index 64ae8998c08..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceOptions.g.cs +++ /dev/null @@ -1,186 +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.MachineLearning; - -/// -/// -/// Text expansion inference options -/// -/// -public sealed partial class TextExpansionInferenceOptions -{ - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - [JsonInclude, JsonPropertyName("vocabulary")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary Vocabulary { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(TextExpansionInferenceOptions textExpansionInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.TextExpansion(textExpansionInferenceOptions); -} - -/// -/// -/// Text expansion inference options -/// -/// -public sealed partial class TextExpansionInferenceOptionsDescriptor : SerializableDescriptor -{ - internal TextExpansionInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public TextExpansionInferenceOptionsDescriptor() : base() - { - } - - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary VocabularyValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } - private Action VocabularyDescriptorAction { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public TextExpansionInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options - /// - /// - public TextExpansionInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public TextExpansionInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public TextExpansionInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - public TextExpansionInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Vocabulary vocabulary) - { - VocabularyDescriptor = null; - VocabularyDescriptorAction = null; - VocabularyValue = vocabulary; - return Self; - } - - public TextExpansionInferenceOptionsDescriptor Vocabulary(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor descriptor) - { - VocabularyValue = null; - VocabularyDescriptorAction = null; - VocabularyDescriptor = descriptor; - return Self; - } - - public TextExpansionInferenceOptionsDescriptor Vocabulary(Action configure) - { - VocabularyValue = null; - VocabularyDescriptor = null; - VocabularyDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - if (VocabularyDescriptor is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyDescriptor, options); - } - else if (VocabularyDescriptorAction is not null) - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); - } - else - { - writer.WritePropertyName("vocabulary"); - JsonSerializer.Serialize(writer, VocabularyValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs deleted file mode 100644 index e7ade69c7e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TextExpansionInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,120 +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.MachineLearning; - -public sealed partial class TextExpansionInferenceUpdateOptions -{ - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(TextExpansionInferenceUpdateOptions textExpansionInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.TextExpansion(textExpansionInferenceUpdateOptions); -} - -public sealed partial class TextExpansionInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal TextExpansionInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public TextExpansionInferenceUpdateOptionsDescriptor() : base() - { - } - - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public TextExpansionInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - public TextExpansionInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public TextExpansionInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public TextExpansionInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs deleted file mode 100644 index fb54aca32fc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TokenizationConfig.g.cs +++ /dev/null @@ -1,277 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.MachineLearning; - -/// -/// -/// Tokenization options stored in inference configuration -/// -/// -[JsonConverter(typeof(TokenizationConfigConverter))] -public sealed partial class TokenizationConfig -{ - internal TokenizationConfig(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static TokenizationConfig Bert(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert", nlpBertTokenizationConfig); - public static TokenizationConfig BertJa(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert_ja", nlpBertTokenizationConfig); - public static TokenizationConfig Mpnet(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("mpnet", nlpBertTokenizationConfig); - public static TokenizationConfig Roberta(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => new TokenizationConfig("roberta", nlpRobertaTokenizationConfig); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class TokenizationConfigConverter : JsonConverter -{ - public override TokenizationConfig Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "bert") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "bert_ja") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "mpnet") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "roberta") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'TokenizationConfig' from the response."); - } - - var result = new TokenizationConfig(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, TokenizationConfig value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "bert": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); - break; - case "bert_ja": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); - break; - case "mpnet": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig)value.Variant, options); - break; - case "roberta": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TokenizationConfigDescriptor : SerializableDescriptor> -{ - internal TokenizationConfigDescriptor(Action> configure) => configure.Invoke(this); - - public TokenizationConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private TokenizationConfigDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private TokenizationConfigDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public TokenizationConfigDescriptor Bert(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert"); - public TokenizationConfigDescriptor Bert(Action configure) => Set(configure, "bert"); - public TokenizationConfigDescriptor BertJa(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert_ja"); - public TokenizationConfigDescriptor BertJa(Action configure) => Set(configure, "bert_ja"); - public TokenizationConfigDescriptor Mpnet(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "mpnet"); - public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); - public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); - public TokenizationConfigDescriptor Roberta(Action configure) => Set(configure, "roberta"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TokenizationConfigDescriptor : SerializableDescriptor -{ - internal TokenizationConfigDescriptor(Action configure) => configure.Invoke(this); - - public TokenizationConfigDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private TokenizationConfigDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private TokenizationConfigDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public TokenizationConfigDescriptor Bert(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert"); - public TokenizationConfigDescriptor Bert(Action configure) => Set(configure, "bert"); - public TokenizationConfigDescriptor BertJa(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "bert_ja"); - public TokenizationConfigDescriptor BertJa(Action configure) => Set(configure, "bert_ja"); - public TokenizationConfigDescriptor Mpnet(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => Set(nlpBertTokenizationConfig, "mpnet"); - public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); - public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); - public TokenizationConfigDescriptor Roberta(Action configure) => Set(configure, "roberta"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TopClassEntry.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TopClassEntry.g.cs deleted file mode 100644 index c9833c2c899..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TopClassEntry.g.cs +++ /dev/null @@ -1,38 +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.MachineLearning; - -public sealed partial class TopClassEntry -{ - [JsonInclude, JsonPropertyName("class_name")] - public string ClassName { get; init; } - [JsonInclude, JsonPropertyName("class_probability")] - public double ClassProbability { get; init; } - [JsonInclude, JsonPropertyName("class_score")] - public double ClassScore { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs deleted file mode 100644 index 691eaff684d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportance.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class TotalFeatureImportance -{ - /// - /// - /// If the trained model is a classification model, feature importance statistics are gathered per target class value. - /// - /// - [JsonInclude, JsonPropertyName("classes")] - public IReadOnlyCollection Classes { get; init; } - - /// - /// - /// The feature for which this importance was calculated. - /// - /// - [JsonInclude, JsonPropertyName("feature_name")] - public string FeatureName { get; init; } - - /// - /// - /// A collection of feature importance statistics related to the training data set for this particular feature. - /// - /// - [JsonInclude, JsonPropertyName("importance")] - public IReadOnlyCollection Importance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs deleted file mode 100644 index 7a660361c36..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceClass.g.cs +++ /dev/null @@ -1,47 +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.MachineLearning; - -public sealed partial class TotalFeatureImportanceClass -{ - /// - /// - /// The target class value. Could be a string, boolean, or number. - /// - /// - [JsonInclude, JsonPropertyName("class_name")] - public string ClassName { get; init; } - - /// - /// - /// A collection of feature importance statistics related to the training data set for this particular feature. - /// - /// - [JsonInclude, JsonPropertyName("importance")] - public IReadOnlyCollection Importance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs deleted file mode 100644 index fb2a4665bec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TotalFeatureImportanceStatistics.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class TotalFeatureImportanceStatistics -{ - /// - /// - /// The maximum importance value across all the training data for this feature. - /// - /// - [JsonInclude, JsonPropertyName("max")] - public int Max { get; init; } - - /// - /// - /// The average magnitude of this feature across all the training data. This value is the average of the absolute values of the importance for this feature. - /// - /// - [JsonInclude, JsonPropertyName("mean_magnitude")] - public double MeanMagnitude { get; init; } - - /// - /// - /// The minimum importance value across all the training data for this feature. - /// - /// - [JsonInclude, JsonPropertyName("min")] - public int Min { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModel.g.cs deleted file mode 100644 index bd3b3d35b2b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModel.g.cs +++ /dev/null @@ -1,241 +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.MachineLearning; - -public sealed partial class TrainedModel -{ - /// - /// - /// The definition for an ensemble model - /// - /// - [JsonInclude, JsonPropertyName("ensemble")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Ensemble? Ensemble { get; set; } - - /// - /// - /// The definition for a binary decision tree. - /// - /// - [JsonInclude, JsonPropertyName("tree")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTree? Tree { get; set; } - - /// - /// - /// The definition of a node in a tree. - /// There are two major types of nodes: leaf nodes and not-leaf nodes. - /// - /// - /// - /// - /// Leaf nodes only need node_index and leaf_value defined. - /// - /// - /// - /// - /// All other nodes need split_feature, left_child, right_child, threshold, decision_type, and default_left defined. - /// - /// - /// - /// - [JsonInclude, JsonPropertyName("tree_node")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNode? TreeNode { get; set; } -} - -public sealed partial class TrainedModelDescriptor : SerializableDescriptor -{ - internal TrainedModelDescriptor(Action configure) => configure.Invoke(this); - - public TrainedModelDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Ensemble? EnsembleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.EnsembleDescriptor EnsembleDescriptor { get; set; } - private Action EnsembleDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTree? TreeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeDescriptor TreeDescriptor { get; set; } - private Action TreeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNode? TreeNodeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor TreeNodeDescriptor { get; set; } - private Action TreeNodeDescriptorAction { get; set; } - - /// - /// - /// The definition for an ensemble model - /// - /// - public TrainedModelDescriptor Ensemble(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.Ensemble? ensemble) - { - EnsembleDescriptor = null; - EnsembleDescriptorAction = null; - EnsembleValue = ensemble; - return Self; - } - - public TrainedModelDescriptor Ensemble(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.EnsembleDescriptor descriptor) - { - EnsembleValue = null; - EnsembleDescriptorAction = null; - EnsembleDescriptor = descriptor; - return Self; - } - - public TrainedModelDescriptor Ensemble(Action configure) - { - EnsembleValue = null; - EnsembleDescriptor = null; - EnsembleDescriptorAction = configure; - return Self; - } - - /// - /// - /// The definition for a binary decision tree. - /// - /// - public TrainedModelDescriptor Tree(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTree? tree) - { - TreeDescriptor = null; - TreeDescriptorAction = null; - TreeValue = tree; - return Self; - } - - public TrainedModelDescriptor Tree(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeDescriptor descriptor) - { - TreeValue = null; - TreeDescriptorAction = null; - TreeDescriptor = descriptor; - return Self; - } - - public TrainedModelDescriptor Tree(Action configure) - { - TreeValue = null; - TreeDescriptor = null; - TreeDescriptorAction = configure; - return Self; - } - - /// - /// - /// The definition of a node in a tree. - /// There are two major types of nodes: leaf nodes and not-leaf nodes. - /// - /// - /// - /// - /// Leaf nodes only need node_index and leaf_value defined. - /// - /// - /// - /// - /// All other nodes need split_feature, left_child, right_child, threshold, decision_type, and default_left defined. - /// - /// - /// - /// - public TrainedModelDescriptor TreeNode(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNode? treeNode) - { - TreeNodeDescriptor = null; - TreeNodeDescriptorAction = null; - TreeNodeValue = treeNode; - return Self; - } - - public TrainedModelDescriptor TreeNode(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor descriptor) - { - TreeNodeValue = null; - TreeNodeDescriptorAction = null; - TreeNodeDescriptor = descriptor; - return Self; - } - - public TrainedModelDescriptor TreeNode(Action configure) - { - TreeNodeValue = null; - TreeNodeDescriptor = null; - TreeNodeDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (EnsembleDescriptor is not null) - { - writer.WritePropertyName("ensemble"); - JsonSerializer.Serialize(writer, EnsembleDescriptor, options); - } - else if (EnsembleDescriptorAction is not null) - { - writer.WritePropertyName("ensemble"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.EnsembleDescriptor(EnsembleDescriptorAction), options); - } - else if (EnsembleValue is not null) - { - writer.WritePropertyName("ensemble"); - JsonSerializer.Serialize(writer, EnsembleValue, options); - } - - if (TreeDescriptor is not null) - { - writer.WritePropertyName("tree"); - JsonSerializer.Serialize(writer, TreeDescriptor, options); - } - else if (TreeDescriptorAction is not null) - { - writer.WritePropertyName("tree"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeDescriptor(TreeDescriptorAction), options); - } - else if (TreeValue is not null) - { - writer.WritePropertyName("tree"); - JsonSerializer.Serialize(writer, TreeValue, options); - } - - if (TreeNodeDescriptor is not null) - { - writer.WritePropertyName("tree_node"); - JsonSerializer.Serialize(writer, TreeNodeDescriptor, options); - } - else if (TreeNodeDescriptorAction is not null) - { - writer.WritePropertyName("tree_node"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor(TreeNodeDescriptorAction), options); - } - else if (TreeNodeValue is not null) - { - writer.WritePropertyName("tree_node"); - JsonSerializer.Serialize(writer, TreeNodeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs deleted file mode 100644 index c091d8ae2a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignment.g.cs +++ /dev/null @@ -1,64 +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.MachineLearning; - -public sealed partial class TrainedModelAssignment -{ - [JsonInclude, JsonPropertyName("adaptive_allocations")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; init; } - - /// - /// - /// The overall assignment state. - /// - /// - [JsonInclude, JsonPropertyName("assignment_state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAssignmentState AssignmentState { get; init; } - [JsonInclude, JsonPropertyName("max_assigned_allocations")] - public int? MaxAssignedAllocations { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public string? Reason { get; init; } - - /// - /// - /// The allocation state for each node. - /// - /// - [JsonInclude, JsonPropertyName("routing_table")] - public IReadOnlyDictionary RoutingTable { get; init; } - - /// - /// - /// The timestamp when the deployment started. - /// - /// - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset StartTime { get; init; } - [JsonInclude, JsonPropertyName("task_parameters")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelAssignmentTaskParameters TaskParameters { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs deleted file mode 100644 index 7a5582dc037..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingTable.g.cs +++ /dev/null @@ -1,64 +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.MachineLearning; - -public sealed partial class TrainedModelAssignmentRoutingTable -{ - /// - /// - /// Current number of allocations. - /// - /// - [JsonInclude, JsonPropertyName("current_allocations")] - public int CurrentAllocations { get; init; } - - /// - /// - /// The reason for the current state. It is usually populated only when the - /// routing_state is failed. - /// - /// - [JsonInclude, JsonPropertyName("reason")] - public string? Reason { get; init; } - - /// - /// - /// The current routing state. - /// - /// - [JsonInclude, JsonPropertyName("routing_state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.RoutingState RoutingState { get; init; } - - /// - /// - /// Target number of allocations. - /// - /// - [JsonInclude, JsonPropertyName("target_allocations")] - public int TargetAllocations { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs deleted file mode 100644 index 180d3e5b690..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelAssignmentTaskParameters.g.cs +++ /dev/null @@ -1,93 +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.MachineLearning; - -public sealed partial class TrainedModelAssignmentTaskParameters -{ - /// - /// - /// The size of the trained model cache. - /// - /// - [JsonInclude, JsonPropertyName("cache_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CacheSize { get; init; } - - /// - /// - /// The unique identifier for the trained model deployment. - /// - /// - [JsonInclude, JsonPropertyName("deployment_id")] - public string DeploymentId { get; init; } - - /// - /// - /// The size of the trained model in bytes. - /// - /// - [JsonInclude, JsonPropertyName("model_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize ModelBytes { get; init; } - - /// - /// - /// The unique identifier for the trained model. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; init; } - - /// - /// - /// The total number of allocations this model is assigned across ML nodes. - /// - /// - [JsonInclude, JsonPropertyName("number_of_allocations")] - public int NumberOfAllocations { get; init; } - [JsonInclude, JsonPropertyName("per_allocation_memory_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize PerAllocationMemoryBytes { get; init; } - [JsonInclude, JsonPropertyName("per_deployment_memory_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize PerDeploymentMemoryBytes { get; init; } - [JsonInclude, JsonPropertyName("priority")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority Priority { get; init; } - - /// - /// - /// Number of inference requests are allowed in the queue at a time. - /// - /// - [JsonInclude, JsonPropertyName("queue_capacity")] - public int QueueCapacity { get; init; } - - /// - /// - /// Number of threads per allocation. - /// - /// - [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int ThreadsPerAllocation { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs deleted file mode 100644 index 8f5496654f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs +++ /dev/null @@ -1,162 +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.MachineLearning; - -public sealed partial class TrainedModelConfig -{ - [JsonInclude, JsonPropertyName("compressed_definition")] - public string? CompressedDefinition { get; init; } - - /// - /// - /// Information on the creator of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("created_by")] - public string? CreatedBy { get; init; } - - /// - /// - /// The time when the trained model was created. - /// - /// - [JsonInclude, JsonPropertyName("create_time")] - public DateTimeOffset? CreateTime { get; init; } - - /// - /// - /// Any field map described in the inference configuration takes precedence. - /// - /// - [JsonInclude, JsonPropertyName("default_field_map")] - public IReadOnlyDictionary? DefaultFieldMap { get; init; } - - /// - /// - /// The free-text description of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// The estimated heap usage in bytes to keep the trained model in memory. - /// - /// - [JsonInclude, JsonPropertyName("estimated_heap_memory_usage_bytes")] - public int? EstimatedHeapMemoryUsageBytes { get; init; } - - /// - /// - /// The estimated number of operations to use the trained model. - /// - /// - [JsonInclude, JsonPropertyName("estimated_operations")] - public int? EstimatedOperations { get; init; } - - /// - /// - /// True if the full model definition is present. - /// - /// - [JsonInclude, JsonPropertyName("fully_defined")] - public bool? FullyDefined { get; init; } - - /// - /// - /// The default configuration for inference. This can be either a regression, classification, or one of the many NLP focused configurations. It must match the underlying definition.trained_model's target_type. For pre-packaged models such as ELSER the config is not required. - /// - /// - [JsonInclude, JsonPropertyName("inference_config")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate? InferenceConfig { get; init; } - - /// - /// - /// The input field names for the model definition. - /// - /// - [JsonInclude, JsonPropertyName("input")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelConfigInput Input { get; init; } - - /// - /// - /// The license level of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("license_level")] - public string? LicenseLevel { get; init; } - [JsonInclude, JsonPropertyName("location")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelLocation? Location { get; init; } - - /// - /// - /// An object containing metadata about the trained model. For example, models created by data frame analytics contain analysis_config and input objects. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelConfigMetadata? Metadata { get; init; } - - /// - /// - /// Identifier for the trained model. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; init; } - [JsonInclude, JsonPropertyName("model_package")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ModelPackageConfig? ModelPackage { get; init; } - [JsonInclude, JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ModelSizeBytes { get; init; } - - /// - /// - /// The model type - /// - /// - [JsonInclude, JsonPropertyName("model_type")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelType? ModelType { get; init; } - [JsonInclude, JsonPropertyName("prefix_strings")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } - - /// - /// - /// A comma delimited string of tags. A trained model can have many tags, or none. - /// - /// - [JsonInclude, JsonPropertyName("tags")] - public IReadOnlyCollection Tags { get; init; } - - /// - /// - /// The Elasticsearch version number in which the trained model was created. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs deleted file mode 100644 index 470067ae3b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigInput.g.cs +++ /dev/null @@ -1,39 +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.MachineLearning; - -public sealed partial class TrainedModelConfigInput -{ - /// - /// - /// An array of input field names for the model. - /// - /// - [JsonInclude, JsonPropertyName("field_names")] - public IReadOnlyCollection FieldNames { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs deleted file mode 100644 index cae44fa3cb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelConfigMetadata.g.cs +++ /dev/null @@ -1,57 +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.MachineLearning; - -public sealed partial class TrainedModelConfigMetadata -{ - /// - /// - /// An object that contains the baseline for feature importance values. For regression analysis, it is a single value. For classification analysis, there is a value for each class. - /// - /// - [JsonInclude, JsonPropertyName("feature_importance_baseline")] - public IReadOnlyDictionary? FeatureImportanceBaseline { get; init; } - - /// - /// - /// List of the available hyperparameters optimized during the fine_parameter_tuning phase as well as specified by the user. - /// - /// - [JsonInclude, JsonPropertyName("hyperparameters")] - public IReadOnlyCollection? Hyperparameters { get; init; } - [JsonInclude, JsonPropertyName("model_aliases")] - public IReadOnlyCollection? ModelAliases { get; init; } - - /// - /// - /// An array of the total feature importance for each feature used from the training data set. This array of objects is returned if data frame analytics trained the model and the request includes total_feature_importance in the include request parameter. - /// - /// - [JsonInclude, JsonPropertyName("total_feature_importance")] - public IReadOnlyCollection? TotalFeatureImportance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs deleted file mode 100644 index 6fdd0cf1dbf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentAllocationStatus.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class TrainedModelDeploymentAllocationStatus -{ - /// - /// - /// The current number of nodes where the model is allocated. - /// - /// - [JsonInclude, JsonPropertyName("allocation_count")] - public int AllocationCount { get; init; } - - /// - /// - /// The detailed allocation state related to the nodes. - /// - /// - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAllocationState State { get; init; } - - /// - /// - /// The desired number of nodes for model allocation. - /// - /// - [JsonInclude, JsonPropertyName("target_allocation_count")] - public int TargetAllocationCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs deleted file mode 100644 index b82df2b6ec2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs +++ /dev/null @@ -1,137 +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.MachineLearning; - -public sealed partial class TrainedModelDeploymentNodesStats -{ - /// - /// - /// The average time for each inference call to complete on this node. - /// - /// - [JsonInclude, JsonPropertyName("average_inference_time_ms")] - public double? AverageInferenceTimeMs { get; init; } - - /// - /// - /// The average time for each inference call to complete on this node, excluding cache - /// - /// - [JsonInclude, JsonPropertyName("average_inference_time_ms_excluding_cache_hits")] - public double? AverageInferenceTimeMsExcludingCacheHits { get; init; } - [JsonInclude, JsonPropertyName("average_inference_time_ms_last_minute")] - public double? AverageInferenceTimeMsLastMinute { get; init; } - - /// - /// - /// The number of errors when evaluating the trained model. - /// - /// - [JsonInclude, JsonPropertyName("error_count")] - public int? ErrorCount { get; init; } - [JsonInclude, JsonPropertyName("inference_cache_hit_count")] - public long? InferenceCacheHitCount { get; init; } - [JsonInclude, JsonPropertyName("inference_cache_hit_count_last_minute")] - public long? InferenceCacheHitCountLastMinute { get; init; } - - /// - /// - /// The total number of inference calls made against this node for this model. - /// - /// - [JsonInclude, JsonPropertyName("inference_count")] - public long? InferenceCount { get; init; } - - /// - /// - /// The epoch time stamp of the last inference call for the model on this node. - /// - /// - [JsonInclude, JsonPropertyName("last_access")] - public long? LastAccess { get; init; } - - /// - /// - /// The number of allocations assigned to this node. - /// - /// - [JsonInclude, JsonPropertyName("number_of_allocations")] - public int? NumberOfAllocations { get; init; } - - /// - /// - /// The number of inference requests queued to be processed. - /// - /// - [JsonInclude, JsonPropertyName("number_of_pending_requests")] - public int? NumberOfPendingRequests { get; init; } - [JsonInclude, JsonPropertyName("peak_throughput_per_minute")] - public long PeakThroughputPerMinute { get; init; } - - /// - /// - /// The number of inference requests that were not processed because the queue was full. - /// - /// - [JsonInclude, JsonPropertyName("rejection_execution_count")] - public int? RejectionExecutionCount { get; init; } - - /// - /// - /// The current routing state and reason for the current routing state for this allocation. - /// - /// - [JsonInclude, JsonPropertyName("routing_state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelAssignmentRoutingTable RoutingState { get; init; } - - /// - /// - /// The epoch timestamp when the allocation started. - /// - /// - [JsonInclude, JsonPropertyName("start_time")] - public long? StartTime { get; init; } - - /// - /// - /// The number of threads used by each allocation during inference. - /// - /// - [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int? ThreadsPerAllocation { get; init; } - [JsonInclude, JsonPropertyName("throughput_last_minute")] - public int ThroughputLastMinute { get; init; } - - /// - /// - /// The number of inference requests that timed out before being processed. - /// - /// - [JsonInclude, JsonPropertyName("timeout_count")] - public int? TimeoutCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs deleted file mode 100644 index 7924cefaf6c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelDeploymentStats.g.cs +++ /dev/null @@ -1,157 +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.MachineLearning; - -public sealed partial class TrainedModelDeploymentStats -{ - [JsonInclude, JsonPropertyName("adaptive_allocations")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; init; } - - /// - /// - /// The detailed allocation status for the deployment. - /// - /// - [JsonInclude, JsonPropertyName("allocation_status")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDeploymentAllocationStatus? AllocationStatus { get; init; } - [JsonInclude, JsonPropertyName("cache_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CacheSize { get; init; } - - /// - /// - /// The unique identifier for the trained model deployment. - /// - /// - [JsonInclude, JsonPropertyName("deployment_id")] - public string DeploymentId { get; init; } - - /// - /// - /// The sum of error_count for all nodes in the deployment. - /// - /// - [JsonInclude, JsonPropertyName("error_count")] - public int? ErrorCount { get; init; } - - /// - /// - /// The sum of inference_count for all nodes in the deployment. - /// - /// - [JsonInclude, JsonPropertyName("inference_count")] - public int? InferenceCount { get; init; } - - /// - /// - /// The unique identifier for the trained model. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; init; } - - /// - /// - /// The deployment stats for each node that currently has the model allocated. - /// In serverless, stats are reported for a single unnamed virtual node. - /// - /// - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyCollection Nodes { get; init; } - - /// - /// - /// The number of allocations requested. - /// - /// - [JsonInclude, JsonPropertyName("number_of_allocations")] - public int? NumberOfAllocations { get; init; } - [JsonInclude, JsonPropertyName("peak_throughput_per_minute")] - public long PeakThroughputPerMinute { get; init; } - [JsonInclude, JsonPropertyName("priority")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainingPriority Priority { get; init; } - - /// - /// - /// The number of inference requests that can be queued before new requests are rejected. - /// - /// - [JsonInclude, JsonPropertyName("queue_capacity")] - public int? QueueCapacity { get; init; } - - /// - /// - /// The reason for the current deployment state. Usually only populated when - /// the model is not deployed to a node. - /// - /// - [JsonInclude, JsonPropertyName("reason")] - public string? Reason { get; init; } - - /// - /// - /// The sum of rejected_execution_count for all nodes in the deployment. - /// Individual nodes reject an inference request if the inference queue is full. - /// The queue size is controlled by the queue_capacity setting in the start - /// trained model deployment API. - /// - /// - [JsonInclude, JsonPropertyName("rejected_execution_count")] - public int? RejectedExecutionCount { get; init; } - - /// - /// - /// The epoch timestamp when the deployment started. - /// - /// - [JsonInclude, JsonPropertyName("start_time")] - public long StartTime { get; init; } - - /// - /// - /// The overall state of the deployment. - /// - /// - [JsonInclude, JsonPropertyName("state")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.DeploymentAssignmentState? State { get; init; } - - /// - /// - /// The number of threads used be each allocation during inference. - /// - /// - [JsonInclude, JsonPropertyName("threads_per_allocation")] - public int? ThreadsPerAllocation { get; init; } - - /// - /// - /// The sum of timeout_count for all nodes in the deployment. - /// - /// - [JsonInclude, JsonPropertyName("timeout_count")] - public int? TimeoutCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs deleted file mode 100644 index e9e694fab64..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelEntities.g.cs +++ /dev/null @@ -1,42 +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.MachineLearning; - -public sealed partial class TrainedModelEntities -{ - [JsonInclude, JsonPropertyName("class_name")] - public string ClassName { get; init; } - [JsonInclude, JsonPropertyName("class_probability")] - public double ClassProbability { get; init; } - [JsonInclude, JsonPropertyName("end_pos")] - public int EndPos { get; init; } - [JsonInclude, JsonPropertyName("entity")] - public string Entity { get; init; } - [JsonInclude, JsonPropertyName("start_pos")] - public int StartPos { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs deleted file mode 100644 index 9f7f76c9471..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceClassImportance.g.cs +++ /dev/null @@ -1,36 +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.MachineLearning; - -public sealed partial class TrainedModelInferenceClassImportance -{ - [JsonInclude, JsonPropertyName("class_name")] - public string ClassName { get; init; } - [JsonInclude, JsonPropertyName("importance")] - public double Importance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs deleted file mode 100644 index 1552eff6e06..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceFeatureImportance.g.cs +++ /dev/null @@ -1,38 +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.MachineLearning; - -public sealed partial class TrainedModelInferenceFeatureImportance -{ - [JsonInclude, JsonPropertyName("classes")] - public IReadOnlyCollection? Classes { get; init; } - [JsonInclude, JsonPropertyName("feature_name")] - public string FeatureName { get; init; } - [JsonInclude, JsonPropertyName("importance")] - public double? Importance { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs deleted file mode 100644 index 44c6dc55125..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelInferenceStats.g.cs +++ /dev/null @@ -1,75 +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.MachineLearning; - -public sealed partial class TrainedModelInferenceStats -{ - /// - /// - /// The number of times the model was loaded for inference and was not retrieved from the cache. - /// If this number is close to the inference_count, the cache is not being appropriately used. - /// This can be solved by increasing the cache size or its time-to-live (TTL). - /// Refer to general machine learning settings for the appropriate settings. - /// - /// - [JsonInclude, JsonPropertyName("cache_miss_count")] - public int CacheMissCount { get; init; } - - /// - /// - /// The number of failures when using the model for inference. - /// - /// - [JsonInclude, JsonPropertyName("failure_count")] - public int FailureCount { get; init; } - - /// - /// - /// The total number of times the model has been called for inference. - /// This is across all inference contexts, including all pipelines. - /// - /// - [JsonInclude, JsonPropertyName("inference_count")] - public int InferenceCount { get; init; } - - /// - /// - /// The number of inference calls where all the training features for the model were missing. - /// - /// - [JsonInclude, JsonPropertyName("missing_all_fields_count")] - public int MissingAllFieldsCount { get; init; } - - /// - /// - /// The time when the statistics were last updated. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs deleted file mode 100644 index f1e48eed8bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocation.g.cs +++ /dev/null @@ -1,34 +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.MachineLearning; - -public sealed partial class TrainedModelLocation -{ - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelLocationIndex Index { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs deleted file mode 100644 index 0f4347111c8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelLocationIndex.g.cs +++ /dev/null @@ -1,34 +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.MachineLearning; - -public sealed partial class TrainedModelLocationIndex -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs deleted file mode 100644 index e22990b6db9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelPrefixStrings.g.cs +++ /dev/null @@ -1,99 +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.MachineLearning; - -public sealed partial class TrainedModelPrefixStrings -{ - /// - /// - /// String prepended to input at ingest - /// - /// - [JsonInclude, JsonPropertyName("ingest")] - public string? Ingest { get; set; } - - /// - /// - /// String prepended to input at search - /// - /// - [JsonInclude, JsonPropertyName("search")] - public string? Search { get; set; } -} - -public sealed partial class TrainedModelPrefixStringsDescriptor : SerializableDescriptor -{ - internal TrainedModelPrefixStringsDescriptor(Action configure) => configure.Invoke(this); - - public TrainedModelPrefixStringsDescriptor() : base() - { - } - - private string? IngestValue { get; set; } - private string? SearchValue { get; set; } - - /// - /// - /// String prepended to input at ingest - /// - /// - public TrainedModelPrefixStringsDescriptor Ingest(string? ingest) - { - IngestValue = ingest; - return Self; - } - - /// - /// - /// String prepended to input at search - /// - /// - public TrainedModelPrefixStringsDescriptor Search(string? search) - { - SearchValue = search; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(IngestValue)) - { - writer.WritePropertyName("ingest"); - writer.WriteStringValue(IngestValue); - } - - if (!string.IsNullOrEmpty(SearchValue)) - { - writer.WritePropertyName("search"); - writer.WriteStringValue(SearchValue); - } - - 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 deleted file mode 100644 index 92944af967e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelSizeStats.g.cs +++ /dev/null @@ -1,47 +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.MachineLearning; - -public sealed partial class TrainedModelSizeStats -{ - /// - /// - /// The size of the model in bytes. - /// - /// - [JsonInclude, JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize ModelSizeBytes { get; init; } - - /// - /// - /// The amount of memory required to load the model in bytes. - /// - /// - [JsonInclude, JsonPropertyName("required_native_memory_bytes")] - 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/MachineLearning/TrainedModelStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelStats.g.cs deleted file mode 100644 index 67f582ae281..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelStats.g.cs +++ /dev/null @@ -1,81 +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.MachineLearning; - -public sealed partial class TrainedModelStats -{ - /// - /// - /// A collection of deployment stats, which is present when the models are deployed. - /// - /// - [JsonInclude, JsonPropertyName("deployment_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelDeploymentStats? DeploymentStats { get; init; } - - /// - /// - /// A collection of inference stats fields. - /// - /// - [JsonInclude, JsonPropertyName("inference_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelInferenceStats? InferenceStats { get; init; } - - /// - /// - /// A collection of ingest stats for the model across all nodes. - /// The values are summations of the individual node statistics. - /// The format matches the ingest section in the nodes stats API. - /// - /// - [JsonInclude, JsonPropertyName("ingest")] - public IReadOnlyDictionary? Ingest { get; init; } - - /// - /// - /// The unique identifier of the trained model. - /// - /// - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; init; } - - /// - /// - /// A collection of model size stats. - /// - /// - [JsonInclude, JsonPropertyName("model_size_stats")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelSizeStats ModelSizeStats { get; init; } - - /// - /// - /// The number of ingest pipelines that currently refer to the model. - /// - /// - [JsonInclude, JsonPropertyName("pipeline_count")] - public int PipelineCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTree.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTree.g.cs deleted file mode 100644 index f128c5a5254..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTree.g.cs +++ /dev/null @@ -1,162 +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.MachineLearning; - -public sealed partial class TrainedModelTree -{ - [JsonInclude, JsonPropertyName("classification_labels")] - public ICollection? ClassificationLabels { get; set; } - [JsonInclude, JsonPropertyName("feature_names")] - public ICollection FeatureNames { get; set; } - [JsonInclude, JsonPropertyName("target_type")] - public string? TargetType { get; set; } - [JsonInclude, JsonPropertyName("tree_structure")] - public ICollection TreeStructure { get; set; } -} - -public sealed partial class TrainedModelTreeDescriptor : SerializableDescriptor -{ - internal TrainedModelTreeDescriptor(Action configure) => configure.Invoke(this); - - public TrainedModelTreeDescriptor() : base() - { - } - - private ICollection? ClassificationLabelsValue { get; set; } - private ICollection FeatureNamesValue { get; set; } - private string? TargetTypeValue { get; set; } - private ICollection TreeStructureValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor TreeStructureDescriptor { get; set; } - private Action TreeStructureDescriptorAction { get; set; } - private Action[] TreeStructureDescriptorActions { get; set; } - - public TrainedModelTreeDescriptor ClassificationLabels(ICollection? classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - public TrainedModelTreeDescriptor FeatureNames(ICollection featureNames) - { - FeatureNamesValue = featureNames; - return Self; - } - - public TrainedModelTreeDescriptor TargetType(string? targetType) - { - TargetTypeValue = targetType; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(ICollection treeStructure) - { - TreeStructureDescriptor = null; - TreeStructureDescriptorAction = null; - TreeStructureDescriptorActions = null; - TreeStructureValue = treeStructure; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor descriptor) - { - TreeStructureValue = null; - TreeStructureDescriptorAction = null; - TreeStructureDescriptorActions = null; - TreeStructureDescriptor = descriptor; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(Action configure) - { - TreeStructureValue = null; - TreeStructureDescriptor = null; - TreeStructureDescriptorActions = null; - TreeStructureDescriptorAction = configure; - return Self; - } - - public TrainedModelTreeDescriptor TreeStructure(params Action[] configure) - { - TreeStructureValue = null; - TreeStructureDescriptor = null; - TreeStructureDescriptorAction = null; - TreeStructureDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ClassificationLabelsValue is not null) - { - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - } - - writer.WritePropertyName("feature_names"); - JsonSerializer.Serialize(writer, FeatureNamesValue, options); - if (!string.IsNullOrEmpty(TargetTypeValue)) - { - writer.WritePropertyName("target_type"); - writer.WriteStringValue(TargetTypeValue); - } - - if (TreeStructureDescriptor is not null) - { - writer.WritePropertyName("tree_structure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, TreeStructureDescriptor, options); - writer.WriteEndArray(); - } - else if (TreeStructureDescriptorAction is not null) - { - writer.WritePropertyName("tree_structure"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor(TreeStructureDescriptorAction), options); - writer.WriteEndArray(); - } - else if (TreeStructureDescriptorActions is not null) - { - writer.WritePropertyName("tree_structure"); - writer.WriteStartArray(); - foreach (var action in TreeStructureDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TrainedModelTreeNodeDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("tree_structure"); - JsonSerializer.Serialize(writer, TreeStructureValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs deleted file mode 100644 index 8e79372da26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TrainedModelTreeNode.g.cs +++ /dev/null @@ -1,179 +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.MachineLearning; - -public sealed partial class TrainedModelTreeNode -{ - [JsonInclude, JsonPropertyName("decision_type")] - public string? DecisionType { get; set; } - [JsonInclude, JsonPropertyName("default_left")] - public bool? DefaultLeft { get; set; } - [JsonInclude, JsonPropertyName("leaf_value")] - public double? LeafValue { get; set; } - [JsonInclude, JsonPropertyName("left_child")] - public int? LeftChild { get; set; } - [JsonInclude, JsonPropertyName("node_index")] - public int NodeIndex { get; set; } - [JsonInclude, JsonPropertyName("right_child")] - public int? RightChild { get; set; } - [JsonInclude, JsonPropertyName("split_feature")] - public int? SplitFeature { get; set; } - [JsonInclude, JsonPropertyName("split_gain")] - public int? SplitGain { get; set; } - [JsonInclude, JsonPropertyName("threshold")] - public double? Threshold { get; set; } -} - -public sealed partial class TrainedModelTreeNodeDescriptor : SerializableDescriptor -{ - internal TrainedModelTreeNodeDescriptor(Action configure) => configure.Invoke(this); - - public TrainedModelTreeNodeDescriptor() : base() - { - } - - private string? DecisionTypeValue { get; set; } - private bool? DefaultLeftValue { get; set; } - private double? LeafValueValue { get; set; } - private int? LeftChildValue { get; set; } - private int NodeIndexValue { get; set; } - private int? RightChildValue { get; set; } - private int? SplitFeatureValue { get; set; } - private int? SplitGainValue { get; set; } - private double? ThresholdValue { get; set; } - - public TrainedModelTreeNodeDescriptor DecisionType(string? decisionType) - { - DecisionTypeValue = decisionType; - return Self; - } - - public TrainedModelTreeNodeDescriptor DefaultLeft(bool? defaultLeft = true) - { - DefaultLeftValue = defaultLeft; - return Self; - } - - public TrainedModelTreeNodeDescriptor LeafValue(double? leafValue) - { - LeafValueValue = leafValue; - return Self; - } - - public TrainedModelTreeNodeDescriptor LeftChild(int? leftChild) - { - LeftChildValue = leftChild; - return Self; - } - - public TrainedModelTreeNodeDescriptor NodeIndex(int nodeIndex) - { - NodeIndexValue = nodeIndex; - return Self; - } - - public TrainedModelTreeNodeDescriptor RightChild(int? rightChild) - { - RightChildValue = rightChild; - return Self; - } - - public TrainedModelTreeNodeDescriptor SplitFeature(int? splitFeature) - { - SplitFeatureValue = splitFeature; - return Self; - } - - public TrainedModelTreeNodeDescriptor SplitGain(int? splitGain) - { - SplitGainValue = splitGain; - return Self; - } - - public TrainedModelTreeNodeDescriptor Threshold(double? threshold) - { - ThresholdValue = threshold; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DecisionTypeValue)) - { - writer.WritePropertyName("decision_type"); - writer.WriteStringValue(DecisionTypeValue); - } - - if (DefaultLeftValue.HasValue) - { - writer.WritePropertyName("default_left"); - writer.WriteBooleanValue(DefaultLeftValue.Value); - } - - if (LeafValueValue.HasValue) - { - writer.WritePropertyName("leaf_value"); - writer.WriteNumberValue(LeafValueValue.Value); - } - - if (LeftChildValue.HasValue) - { - writer.WritePropertyName("left_child"); - writer.WriteNumberValue(LeftChildValue.Value); - } - - writer.WritePropertyName("node_index"); - writer.WriteNumberValue(NodeIndexValue); - if (RightChildValue.HasValue) - { - writer.WritePropertyName("right_child"); - writer.WriteNumberValue(RightChildValue.Value); - } - - if (SplitFeatureValue.HasValue) - { - writer.WritePropertyName("split_feature"); - writer.WriteNumberValue(SplitFeatureValue.Value); - } - - if (SplitGainValue.HasValue) - { - writer.WritePropertyName("split_gain"); - writer.WriteNumberValue(SplitGainValue.Value); - } - - if (ThresholdValue.HasValue) - { - writer.WritePropertyName("threshold"); - writer.WriteNumberValue(ThresholdValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TransformAuthorization.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TransformAuthorization.g.cs deleted file mode 100644 index 260632bff6a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/TransformAuthorization.g.cs +++ /dev/null @@ -1,55 +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.MachineLearning; - -public sealed partial class TransformAuthorization -{ - /// - /// - /// If an API key was used for the most recent update to the transform, its name and identifier are listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("api_key")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.ApiKeyAuthorization? ApiKey { get; init; } - - /// - /// - /// If a user ID was used for the most recent update to the transform, its roles at the time of the update are listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - /// - /// - /// If a service account was used for the most recent update to the transform, the account name is listed in the response. - /// - /// - [JsonInclude, JsonPropertyName("service_account")] - public string? ServiceAccount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Vocabulary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Vocabulary.g.cs deleted file mode 100644 index d3f12e40fb0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Vocabulary.g.cs +++ /dev/null @@ -1,59 +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.MachineLearning; - -public sealed partial class Vocabulary -{ - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } -} - -public sealed partial class VocabularyDescriptor : SerializableDescriptor -{ - internal VocabularyDescriptor(Action configure) => configure.Invoke(this); - - public VocabularyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - - public VocabularyDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Weights.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Weights.g.cs deleted file mode 100644 index 9ce888f15bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/Weights.g.cs +++ /dev/null @@ -1,59 +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.MachineLearning; - -public sealed partial class Weights -{ - [JsonInclude, JsonPropertyName("weights")] - public double WeightsValue { get; set; } -} - -public sealed partial class WeightsDescriptor : SerializableDescriptor -{ - internal WeightsDescriptor(Action configure) => configure.Invoke(this); - - public WeightsDescriptor() : base() - { - } - - private double WeightsValueValue { get; set; } - - public WeightsDescriptor WeightsValue(double weightsValue) - { - WeightsValueValue = weightsValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("weights"); - writer.WriteNumberValue(WeightsValueValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs deleted file mode 100644 index a53eb4c43a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceOptions.g.cs +++ /dev/null @@ -1,243 +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.MachineLearning; - -/// -/// -/// Zero shot classification configuration options -/// -/// -public sealed partial class ZeroShotClassificationInferenceOptions -{ - /// - /// - /// The zero shot classification labels indicating entailment, neutral, and contradiction - /// Must contain exactly and only entailment, neutral, and contradiction - /// - /// - [JsonInclude, JsonPropertyName("classification_labels")] - public ICollection ClassificationLabels { get; set; } - - /// - /// - /// Hypothesis template used when tokenizing labels for prediction - /// - /// - [JsonInclude, JsonPropertyName("hypothesis_template")] - public string? HypothesisTemplate { get; set; } - - /// - /// - /// The labels to predict. - /// - /// - [JsonInclude, JsonPropertyName("labels")] - public ICollection? Labels { get; set; } - - /// - /// - /// Indicates if more than one true label exists. - /// - /// - [JsonInclude, JsonPropertyName("multi_label")] - public bool? MultiLabel { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate(ZeroShotClassificationInferenceOptions zeroShotClassificationInferenceOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigCreate.ZeroShotClassification(zeroShotClassificationInferenceOptions); -} - -/// -/// -/// Zero shot classification configuration options -/// -/// -public sealed partial class ZeroShotClassificationInferenceOptionsDescriptor : SerializableDescriptor -{ - internal ZeroShotClassificationInferenceOptionsDescriptor(Action configure) => configure.Invoke(this); - - public ZeroShotClassificationInferenceOptionsDescriptor() : base() - { - } - - private ICollection ClassificationLabelsValue { get; set; } - private string? HypothesisTemplateValue { get; set; } - private ICollection? LabelsValue { get; set; } - private bool? MultiLabelValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The zero shot classification labels indicating entailment, neutral, and contradiction - /// Must contain exactly and only entailment, neutral, and contradiction - /// - /// - public ZeroShotClassificationInferenceOptionsDescriptor ClassificationLabels(ICollection classificationLabels) - { - ClassificationLabelsValue = classificationLabels; - return Self; - } - - /// - /// - /// Hypothesis template used when tokenizing labels for prediction - /// - /// - public ZeroShotClassificationInferenceOptionsDescriptor HypothesisTemplate(string? hypothesisTemplate) - { - HypothesisTemplateValue = hypothesisTemplate; - return Self; - } - - /// - /// - /// The labels to predict. - /// - /// - public ZeroShotClassificationInferenceOptionsDescriptor Labels(ICollection? labels) - { - LabelsValue = labels; - return Self; - } - - /// - /// - /// Indicates if more than one true label exists. - /// - /// - public ZeroShotClassificationInferenceOptionsDescriptor MultiLabel(bool? multiLabel = true) - { - MultiLabelValue = multiLabel; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public ZeroShotClassificationInferenceOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public ZeroShotClassificationInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfig? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public ZeroShotClassificationInferenceOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public ZeroShotClassificationInferenceOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("classification_labels"); - JsonSerializer.Serialize(writer, ClassificationLabelsValue, options); - if (!string.IsNullOrEmpty(HypothesisTemplateValue)) - { - writer.WritePropertyName("hypothesis_template"); - writer.WriteStringValue(HypothesisTemplateValue); - } - - if (LabelsValue is not null) - { - writer.WritePropertyName("labels"); - JsonSerializer.Serialize(writer, LabelsValue, options); - } - - if (MultiLabelValue.HasValue) - { - writer.WritePropertyName("multi_label"); - writer.WriteBooleanValue(MultiLabelValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TokenizationConfigDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs deleted file mode 100644 index 986afc982df..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MachineLearning/ZeroShotClassificationInferenceUpdateOptions.g.cs +++ /dev/null @@ -1,179 +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.MachineLearning; - -public sealed partial class ZeroShotClassificationInferenceUpdateOptions -{ - /// - /// - /// The labels to predict. - /// - /// - [JsonInclude, JsonPropertyName("labels")] - public ICollection Labels { get; set; } - - /// - /// - /// Update the configured multi label option. Indicates if more than one true label exists. Defaults to the configured value. - /// - /// - [JsonInclude, JsonPropertyName("multi_label")] - public bool? MultiLabel { get; set; } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - [JsonInclude, JsonPropertyName("results_field")] - public string? ResultsField { get; set; } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - [JsonInclude, JsonPropertyName("tokenization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? Tokenization { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate(ZeroShotClassificationInferenceUpdateOptions zeroShotClassificationInferenceUpdateOptions) => Elastic.Clients.Elasticsearch.Serverless.MachineLearning.InferenceConfigUpdate.ZeroShotClassification(zeroShotClassificationInferenceUpdateOptions); -} - -public sealed partial class ZeroShotClassificationInferenceUpdateOptionsDescriptor : SerializableDescriptor -{ - internal ZeroShotClassificationInferenceUpdateOptionsDescriptor(Action configure) => configure.Invoke(this); - - public ZeroShotClassificationInferenceUpdateOptionsDescriptor() : base() - { - } - - private ICollection LabelsValue { get; set; } - private bool? MultiLabelValue { get; set; } - private string? ResultsFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? TokenizationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor TokenizationDescriptor { get; set; } - private Action TokenizationDescriptorAction { get; set; } - - /// - /// - /// The labels to predict. - /// - /// - public ZeroShotClassificationInferenceUpdateOptionsDescriptor Labels(ICollection labels) - { - LabelsValue = labels; - return Self; - } - - /// - /// - /// Update the configured multi label option. Indicates if more than one true label exists. Defaults to the configured value. - /// - /// - public ZeroShotClassificationInferenceUpdateOptionsDescriptor MultiLabel(bool? multiLabel = true) - { - MultiLabelValue = multiLabel; - return Self; - } - - /// - /// - /// The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. - /// - /// - public ZeroShotClassificationInferenceUpdateOptionsDescriptor ResultsField(string? resultsField) - { - ResultsFieldValue = resultsField; - return Self; - } - - /// - /// - /// The tokenization options to update when inferring - /// - /// - public ZeroShotClassificationInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptions? tokenization) - { - TokenizationDescriptor = null; - TokenizationDescriptorAction = null; - TokenizationValue = tokenization; - return Self; - } - - public ZeroShotClassificationInferenceUpdateOptionsDescriptor Tokenization(Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor descriptor) - { - TokenizationValue = null; - TokenizationDescriptorAction = null; - TokenizationDescriptor = descriptor; - return Self; - } - - public ZeroShotClassificationInferenceUpdateOptionsDescriptor Tokenization(Action configure) - { - TokenizationValue = null; - TokenizationDescriptor = null; - TokenizationDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("labels"); - JsonSerializer.Serialize(writer, LabelsValue, options); - if (MultiLabelValue.HasValue) - { - writer.WritePropertyName("multi_label"); - writer.WriteBooleanValue(MultiLabelValue.Value); - } - - if (!string.IsNullOrEmpty(ResultsFieldValue)) - { - writer.WritePropertyName("results_field"); - writer.WriteStringValue(ResultsFieldValue); - } - - if (TokenizationDescriptor is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationDescriptor, options); - } - else if (TokenizationDescriptorAction is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.MachineLearning.NlpTokenizationUpdateOptionsDescriptor(TokenizationDescriptorAction), options); - } - else if (TokenizationValue is not null) - { - writer.WritePropertyName("tokenization"); - JsonSerializer.Serialize(writer, TokenizationValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs deleted file mode 100644 index f098aeb90b0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs +++ /dev/null @@ -1,375 +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.Mapping; - -public sealed partial class AggregateMetricDoubleProperty : IProperty -{ - [JsonInclude, JsonPropertyName("default_metric")] - public string DefaultMetric { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("metrics")] - public ICollection Metrics { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("time_series_metric")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetric { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "aggregate_metric_double"; -} - -public sealed partial class AggregateMetricDoublePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal AggregateMetricDoublePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public AggregateMetricDoublePropertyDescriptor() : base() - { - } - - private string DefaultMetricValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private ICollection MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } - - public AggregateMetricDoublePropertyDescriptor DefaultMetric(string defaultMetric) - { - DefaultMetricValue = defaultMetric; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public AggregateMetricDoublePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Metrics(ICollection metrics) - { - MetricsValue = metrics; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor TimeSeriesMetric(Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? timeSeriesMetric) - { - TimeSeriesMetricValue = timeSeriesMetric; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_metric"); - writer.WriteStringValue(DefaultMetricValue); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (TimeSeriesMetricValue is not null) - { - writer.WritePropertyName("time_series_metric"); - JsonSerializer.Serialize(writer, TimeSeriesMetricValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("aggregate_metric_double"); - writer.WriteEndObject(); - } - - AggregateMetricDoubleProperty IBuildableDescriptor.Build() => new() - { - DefaultMetric = DefaultMetricValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Metrics = MetricsValue, - Properties = PropertiesValue, - TimeSeriesMetric = TimeSeriesMetricValue - }; -} - -public sealed partial class AggregateMetricDoublePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal AggregateMetricDoublePropertyDescriptor(Action configure) => configure.Invoke(this); - - public AggregateMetricDoublePropertyDescriptor() : base() - { - } - - private string DefaultMetricValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private ICollection MetricsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } - - public AggregateMetricDoublePropertyDescriptor DefaultMetric(string defaultMetric) - { - DefaultMetricValue = defaultMetric; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public AggregateMetricDoublePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Metrics(ICollection metrics) - { - MetricsValue = metrics; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public AggregateMetricDoublePropertyDescriptor TimeSeriesMetric(Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? timeSeriesMetric) - { - TimeSeriesMetricValue = timeSeriesMetric; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("default_metric"); - writer.WriteStringValue(DefaultMetricValue); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - writer.WritePropertyName("metrics"); - JsonSerializer.Serialize(writer, MetricsValue, options); - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (TimeSeriesMetricValue is not null) - { - writer.WritePropertyName("time_series_metric"); - JsonSerializer.Serialize(writer, TimeSeriesMetricValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("aggregate_metric_double"); - writer.WriteEndObject(); - } - - AggregateMetricDoubleProperty IBuildableDescriptor.Build() => new() - { - DefaultMetric = DefaultMetricValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Metrics = MetricsValue, - Properties = PropertiesValue, - TimeSeriesMetric = TimeSeriesMetricValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AllField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AllField.g.cs deleted file mode 100644 index bff87e21bdd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/AllField.g.cs +++ /dev/null @@ -1,158 +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.Mapping; - -public sealed partial class AllField -{ - [JsonInclude, JsonPropertyName("analyzer")] - public string Analyzer { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } - [JsonInclude, JsonPropertyName("omit_norms")] - public bool OmitNorms { get; set; } - [JsonInclude, JsonPropertyName("search_analyzer")] - public string SearchAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string Similarity { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool Store { get; set; } - [JsonInclude, JsonPropertyName("store_term_vector_offsets")] - public bool StoreTermVectorOffsets { get; set; } - [JsonInclude, JsonPropertyName("store_term_vector_payloads")] - public bool StoreTermVectorPayloads { get; set; } - [JsonInclude, JsonPropertyName("store_term_vector_positions")] - public bool StoreTermVectorPositions { get; set; } - [JsonInclude, JsonPropertyName("store_term_vectors")] - public bool StoreTermVectors { get; set; } -} - -public sealed partial class AllFieldDescriptor : SerializableDescriptor -{ - internal AllFieldDescriptor(Action configure) => configure.Invoke(this); - - public AllFieldDescriptor() : base() - { - } - - private string AnalyzerValue { get; set; } - private bool EnabledValue { get; set; } - private bool OmitNormsValue { get; set; } - private string SearchAnalyzerValue { get; set; } - private string SimilarityValue { get; set; } - private bool StoreValue { get; set; } - private bool StoreTermVectorOffsetsValue { get; set; } - private bool StoreTermVectorPayloadsValue { get; set; } - private bool StoreTermVectorPositionsValue { get; set; } - private bool StoreTermVectorsValue { get; set; } - - public AllFieldDescriptor Analyzer(string analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public AllFieldDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public AllFieldDescriptor OmitNorms(bool omitNorms = true) - { - OmitNormsValue = omitNorms; - return Self; - } - - public AllFieldDescriptor SearchAnalyzer(string searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public AllFieldDescriptor Similarity(string similarity) - { - SimilarityValue = similarity; - return Self; - } - - public AllFieldDescriptor Store(bool store = true) - { - StoreValue = store; - return Self; - } - - public AllFieldDescriptor StoreTermVectorOffsets(bool storeTermVectorOffsets = true) - { - StoreTermVectorOffsetsValue = storeTermVectorOffsets; - return Self; - } - - public AllFieldDescriptor StoreTermVectorPayloads(bool storeTermVectorPayloads = true) - { - StoreTermVectorPayloadsValue = storeTermVectorPayloads; - return Self; - } - - public AllFieldDescriptor StoreTermVectorPositions(bool storeTermVectorPositions = true) - { - StoreTermVectorPositionsValue = storeTermVectorPositions; - return Self; - } - - public AllFieldDescriptor StoreTermVectors(bool storeTermVectors = true) - { - StoreTermVectorsValue = storeTermVectors; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WritePropertyName("omit_norms"); - writer.WriteBooleanValue(OmitNormsValue); - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue); - writer.WritePropertyName("store_term_vector_offsets"); - writer.WriteBooleanValue(StoreTermVectorOffsetsValue); - writer.WritePropertyName("store_term_vector_payloads"); - writer.WriteBooleanValue(StoreTermVectorPayloadsValue); - writer.WritePropertyName("store_term_vector_positions"); - writer.WriteBooleanValue(StoreTermVectorPositionsValue); - writer.WritePropertyName("store_term_vectors"); - writer.WriteBooleanValue(StoreTermVectorsValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs deleted file mode 100644 index b28e2cb4305..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BinaryProperty.g.cs +++ /dev/null @@ -1,392 +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.Mapping; - -public sealed partial class BinaryProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "binary"; -} - -public sealed partial class BinaryPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal BinaryPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public BinaryPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public BinaryPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public BinaryPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public BinaryPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public BinaryPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public BinaryPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public BinaryPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public BinaryPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("binary"); - writer.WriteEndObject(); - } - - BinaryProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class BinaryPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal BinaryPropertyDescriptor(Action configure) => configure.Invoke(this); - - public BinaryPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public BinaryPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public BinaryPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public BinaryPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public BinaryPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public BinaryPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public BinaryPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public BinaryPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BinaryPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("binary"); - writer.WriteEndObject(); - } - - BinaryProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BooleanProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BooleanProperty.g.cs deleted file mode 100644 index 590190c8b1e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/BooleanProperty.g.cs +++ /dev/null @@ -1,620 +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.Mapping; - -public sealed partial class BooleanProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fielddata")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? Fielddata { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public bool? NullValue { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "boolean"; -} - -public sealed partial class BooleanPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal BooleanPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public BooleanPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? FielddataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor FielddataDescriptor { get; set; } - private Action FielddataDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public BooleanPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public BooleanPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public BooleanPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public BooleanPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public BooleanPropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? fielddata) - { - FielddataDescriptor = null; - FielddataDescriptorAction = null; - FielddataValue = fielddata; - return Self; - } - - public BooleanPropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor descriptor) - { - FielddataValue = null; - FielddataDescriptorAction = null; - FielddataDescriptor = descriptor; - return Self; - } - - public BooleanPropertyDescriptor Fielddata(Action configure) - { - FielddataValue = null; - FielddataDescriptor = null; - FielddataDescriptorAction = configure; - return Self; - } - - public BooleanPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public BooleanPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public BooleanPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public BooleanPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public BooleanPropertyDescriptor NullValue(bool? nullValue = true) - { - NullValueValue = nullValue; - return Self; - } - - public BooleanPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public BooleanPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FielddataDescriptor is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataDescriptor, options); - } - else if (FielddataDescriptorAction is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction), options); - } - else if (FielddataValue is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteBooleanValue(NullValueValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("boolean"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? BuildFielddata() - { - if (FielddataValue is not null) - { - return FielddataValue; - } - - if ((object)FielddataDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (FielddataDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - BooleanProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fielddata = BuildFielddata(), - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class BooleanPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal BooleanPropertyDescriptor(Action configure) => configure.Invoke(this); - - public BooleanPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? FielddataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor FielddataDescriptor { get; set; } - private Action FielddataDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public BooleanPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public BooleanPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public BooleanPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public BooleanPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public BooleanPropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? fielddata) - { - FielddataDescriptor = null; - FielddataDescriptorAction = null; - FielddataValue = fielddata; - return Self; - } - - public BooleanPropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor descriptor) - { - FielddataValue = null; - FielddataDescriptorAction = null; - FielddataDescriptor = descriptor; - return Self; - } - - public BooleanPropertyDescriptor Fielddata(Action configure) - { - FielddataValue = null; - FielddataDescriptor = null; - FielddataDescriptorAction = configure; - return Self; - } - - public BooleanPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public BooleanPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public BooleanPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public BooleanPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public BooleanPropertyDescriptor NullValue(bool? nullValue = true) - { - NullValueValue = nullValue; - return Self; - } - - public BooleanPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public BooleanPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public BooleanPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FielddataDescriptor is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataDescriptor, options); - } - else if (FielddataDescriptorAction is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction), options); - } - else if (FielddataValue is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteBooleanValue(NullValueValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("boolean"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? BuildFielddata() - { - if (FielddataValue is not null) - { - return FielddataValue; - } - - if ((object)FielddataDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (FielddataDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - BooleanProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fielddata = BuildFielddata(), - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ 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 deleted file mode 100644 index bc24858541b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ByteNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class ByteNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public byte? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "byte"; -} - -public sealed partial class ByteNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal ByteNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public ByteNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private byte? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public ByteNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public ByteNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ByteNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ByteNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ByteNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ByteNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ByteNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ByteNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ByteNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ByteNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ByteNumberPropertyDescriptor NullValue(byte? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public ByteNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public ByteNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ByteNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("byte"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class ByteNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ByteNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public ByteNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private byte? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public ByteNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public ByteNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ByteNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ByteNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ByteNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ByteNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ByteNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ByteNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ByteNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ByteNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ByteNumberPropertyDescriptor NullValue(byte? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public ByteNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public ByteNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ByteNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ByteNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("byte"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompletionProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompletionProperty.g.cs deleted file mode 100644 index 68c7d5053b5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompletionProperty.g.cs +++ /dev/null @@ -1,736 +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.Mapping; - -public sealed partial class CompletionProperty : IProperty -{ - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - [JsonInclude, JsonPropertyName("contexts")] - public ICollection? Contexts { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("max_input_length")] - public int? MaxInputLength { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("preserve_position_increments")] - public bool? PreservePositionIncrements { get; set; } - [JsonInclude, JsonPropertyName("preserve_separators")] - public bool? PreserveSeparators { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("search_analyzer")] - public string? SearchAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "completion"; -} - -public sealed partial class CompletionPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal CompletionPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public CompletionPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private ICollection? ContextsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor ContextsDescriptor { get; set; } - private Action> ContextsDescriptorAction { get; set; } - private Action>[] ContextsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private int? MaxInputLengthValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? PreservePositionIncrementsValue { get; set; } - private bool? PreserveSeparatorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SearchAnalyzerValue { get; set; } - private bool? StoreValue { get; set; } - - public CompletionPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public CompletionPropertyDescriptor Contexts(ICollection? contexts) - { - ContextsDescriptor = null; - ContextsDescriptorAction = null; - ContextsDescriptorActions = null; - ContextsValue = contexts; - return Self; - } - - public CompletionPropertyDescriptor Contexts(Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor descriptor) - { - ContextsValue = null; - ContextsDescriptorAction = null; - ContextsDescriptorActions = null; - ContextsDescriptor = descriptor; - return Self; - } - - public CompletionPropertyDescriptor Contexts(Action> configure) - { - ContextsValue = null; - ContextsDescriptor = null; - ContextsDescriptorActions = null; - ContextsDescriptorAction = configure; - return Self; - } - - public CompletionPropertyDescriptor Contexts(params Action>[] configure) - { - ContextsValue = null; - ContextsDescriptor = null; - ContextsDescriptorAction = null; - ContextsDescriptorActions = configure; - return Self; - } - - public CompletionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public CompletionPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public CompletionPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public CompletionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public CompletionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public CompletionPropertyDescriptor MaxInputLength(int? maxInputLength) - { - MaxInputLengthValue = maxInputLength; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public CompletionPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public CompletionPropertyDescriptor PreservePositionIncrements(bool? preservePositionIncrements = true) - { - PreservePositionIncrementsValue = preservePositionIncrements; - return Self; - } - - public CompletionPropertyDescriptor PreserveSeparators(bool? preserveSeparators = true) - { - PreserveSeparatorsValue = preserveSeparators; - return Self; - } - - public CompletionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public CompletionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public CompletionPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (ContextsDescriptor is not null) - { - writer.WritePropertyName("contexts"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ContextsDescriptor, options); - writer.WriteEndArray(); - } - else if (ContextsDescriptorAction is not null) - { - writer.WritePropertyName("contexts"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor(ContextsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ContextsDescriptorActions is not null) - { - writer.WritePropertyName("contexts"); - writer.WriteStartArray(); - foreach (var action in ContextsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ContextsValue is not null) - { - writer.WritePropertyName("contexts"); - JsonSerializer.Serialize(writer, ContextsValue, options); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MaxInputLengthValue.HasValue) - { - writer.WritePropertyName("max_input_length"); - writer.WriteNumberValue(MaxInputLengthValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PreservePositionIncrementsValue.HasValue) - { - writer.WritePropertyName("preserve_position_increments"); - writer.WriteBooleanValue(PreservePositionIncrementsValue.Value); - } - - if (PreserveSeparatorsValue.HasValue) - { - writer.WritePropertyName("preserve_separators"); - writer.WriteBooleanValue(PreserveSeparatorsValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("completion"); - writer.WriteEndObject(); - } - - private ICollection? BuildContexts() - { - if (ContextsValue is not null) - { - return ContextsValue; - } - - if ((object)ContextsDescriptor is IBuildableDescriptor?> buildable) - { - return buildable.Build(); - } - - if (ContextsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor(ContextsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor?> buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - CompletionProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - Contexts = BuildContexts(), - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - MaxInputLength = MaxInputLengthValue, - Meta = MetaValue, - PreservePositionIncrements = PreservePositionIncrementsValue, - PreserveSeparators = PreserveSeparatorsValue, - Properties = PropertiesValue, - SearchAnalyzer = SearchAnalyzerValue, - Store = StoreValue - }; -} - -public sealed partial class CompletionPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal CompletionPropertyDescriptor(Action configure) => configure.Invoke(this); - - public CompletionPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private ICollection? ContextsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor ContextsDescriptor { get; set; } - private Action ContextsDescriptorAction { get; set; } - private Action[] ContextsDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private int? MaxInputLengthValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? PreservePositionIncrementsValue { get; set; } - private bool? PreserveSeparatorsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SearchAnalyzerValue { get; set; } - private bool? StoreValue { get; set; } - - public CompletionPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public CompletionPropertyDescriptor Contexts(ICollection? contexts) - { - ContextsDescriptor = null; - ContextsDescriptorAction = null; - ContextsDescriptorActions = null; - ContextsValue = contexts; - return Self; - } - - public CompletionPropertyDescriptor Contexts(Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor descriptor) - { - ContextsValue = null; - ContextsDescriptorAction = null; - ContextsDescriptorActions = null; - ContextsDescriptor = descriptor; - return Self; - } - - public CompletionPropertyDescriptor Contexts(Action configure) - { - ContextsValue = null; - ContextsDescriptor = null; - ContextsDescriptorActions = null; - ContextsDescriptorAction = configure; - return Self; - } - - public CompletionPropertyDescriptor Contexts(params Action[] configure) - { - ContextsValue = null; - ContextsDescriptor = null; - ContextsDescriptorAction = null; - ContextsDescriptorActions = configure; - return Self; - } - - public CompletionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public CompletionPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public CompletionPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public CompletionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public CompletionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public CompletionPropertyDescriptor MaxInputLength(int? maxInputLength) - { - MaxInputLengthValue = maxInputLength; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public CompletionPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public CompletionPropertyDescriptor PreservePositionIncrements(bool? preservePositionIncrements = true) - { - PreservePositionIncrementsValue = preservePositionIncrements; - return Self; - } - - public CompletionPropertyDescriptor PreserveSeparators(bool? preserveSeparators = true) - { - PreserveSeparatorsValue = preserveSeparators; - return Self; - } - - public CompletionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public CompletionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public CompletionPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public CompletionPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (ContextsDescriptor is not null) - { - writer.WritePropertyName("contexts"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ContextsDescriptor, options); - writer.WriteEndArray(); - } - else if (ContextsDescriptorAction is not null) - { - writer.WritePropertyName("contexts"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor(ContextsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ContextsDescriptorActions is not null) - { - writer.WritePropertyName("contexts"); - writer.WriteStartArray(); - foreach (var action in ContextsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ContextsValue is not null) - { - writer.WritePropertyName("contexts"); - JsonSerializer.Serialize(writer, ContextsValue, options); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MaxInputLengthValue.HasValue) - { - writer.WritePropertyName("max_input_length"); - writer.WriteNumberValue(MaxInputLengthValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PreservePositionIncrementsValue.HasValue) - { - writer.WritePropertyName("preserve_position_increments"); - writer.WriteBooleanValue(PreservePositionIncrementsValue.Value); - } - - if (PreserveSeparatorsValue.HasValue) - { - writer.WritePropertyName("preserve_separators"); - writer.WriteBooleanValue(PreserveSeparatorsValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("completion"); - writer.WriteEndObject(); - } - - private ICollection? BuildContexts() - { - if (ContextsValue is not null) - { - return ContextsValue; - } - - if ((object)ContextsDescriptor is IBuildableDescriptor?> buildable) - { - return buildable.Build(); - } - - if (ContextsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.SuggestContextDescriptor(ContextsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor?> buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - CompletionProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - Contexts = BuildContexts(), - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - MaxInputLength = MaxInputLengthValue, - Meta = MetaValue, - PreservePositionIncrements = PreservePositionIncrementsValue, - PreserveSeparators = PreserveSeparatorsValue, - Properties = PropertiesValue, - SearchAnalyzer = SearchAnalyzerValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs deleted file mode 100644 index a0d3725ffa7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/CompositeSubField.g.cs +++ /dev/null @@ -1,59 +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.Mapping; - -public sealed partial class CompositeSubField -{ - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType Type { get; set; } -} - -public sealed partial class CompositeSubFieldDescriptor : SerializableDescriptor -{ - internal CompositeSubFieldDescriptor(Action configure) => configure.Invoke(this); - - public CompositeSubFieldDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType TypeValue { get; set; } - - public CompositeSubFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs deleted file mode 100644 index aef2cc64a1a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs +++ /dev/null @@ -1,332 +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.Mapping; - -public sealed partial class ConstantKeywordProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "constant_keyword"; - - [JsonInclude, JsonPropertyName("value")] - public object? Value { get; set; } -} - -public sealed partial class ConstantKeywordPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal ConstantKeywordPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public ConstantKeywordPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private object? ValueValue { get; set; } - - public ConstantKeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ConstantKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ConstantKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ConstantKeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ConstantKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ConstantKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor Value(object? value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("constant_keyword"); - if (ValueValue is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - } - - writer.WriteEndObject(); - } - - ConstantKeywordProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Value = ValueValue - }; -} - -public sealed partial class ConstantKeywordPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ConstantKeywordPropertyDescriptor(Action configure) => configure.Invoke(this); - - public ConstantKeywordPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private object? ValueValue { get; set; } - - public ConstantKeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ConstantKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ConstantKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ConstantKeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ConstantKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ConstantKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ConstantKeywordPropertyDescriptor Value(object? value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("constant_keyword"); - if (ValueValue is not null) - { - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - } - - writer.WriteEndObject(); - } - - ConstantKeywordProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Value = ValueValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DataStreamTimestamp.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DataStreamTimestamp.g.cs deleted file mode 100644 index 084ba29b64a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DataStreamTimestamp.g.cs +++ /dev/null @@ -1,59 +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.Mapping; - -public sealed partial class DataStreamTimestamp -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } -} - -public sealed partial class DataStreamTimestampDescriptor : SerializableDescriptor -{ - internal DataStreamTimestampDescriptor(Action configure) => configure.Invoke(this); - - public DataStreamTimestampDescriptor() : base() - { - } - - private bool EnabledValue { get; set; } - - public DataStreamTimestampDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs deleted file mode 100644 index 9cc89e12a5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateNanosProperty.g.cs +++ /dev/null @@ -1,572 +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.Mapping; - -public sealed partial class DateNanosProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public DateTimeOffset? NullValue { get; set; } - [JsonInclude, JsonPropertyName("precision_step")] - public int? PrecisionStep { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "date_nanos"; -} - -public sealed partial class DateNanosPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DateNanosPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DateNanosPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private DateTimeOffset? NullValueValue { get; set; } - private int? PrecisionStepValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DateNanosPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DateNanosPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DateNanosPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DateNanosPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DateNanosPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DateNanosPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DateNanosPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DateNanosPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DateNanosPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DateNanosPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DateNanosPropertyDescriptor NullValue(DateTimeOffset? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DateNanosPropertyDescriptor PrecisionStep(int? precisionStep) - { - PrecisionStepValue = precisionStep; - return Self; - } - - public DateNanosPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DateNanosPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (PrecisionStepValue.HasValue) - { - writer.WritePropertyName("precision_step"); - writer.WriteNumberValue(PrecisionStepValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("date_nanos"); - writer.WriteEndObject(); - } - - DateNanosProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - PrecisionStep = PrecisionStepValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class DateNanosPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DateNanosPropertyDescriptor(Action configure) => configure.Invoke(this); - - public DateNanosPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private DateTimeOffset? NullValueValue { get; set; } - private int? PrecisionStepValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DateNanosPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DateNanosPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DateNanosPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DateNanosPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DateNanosPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DateNanosPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DateNanosPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DateNanosPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DateNanosPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DateNanosPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DateNanosPropertyDescriptor NullValue(DateTimeOffset? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DateNanosPropertyDescriptor PrecisionStep(int? precisionStep) - { - PrecisionStepValue = precisionStep; - return Self; - } - - public DateNanosPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DateNanosPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateNanosPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (PrecisionStepValue.HasValue) - { - writer.WritePropertyName("precision_step"); - writer.WriteNumberValue(PrecisionStepValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("date_nanos"); - writer.WriteEndObject(); - } - - DateNanosProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - PrecisionStep = PrecisionStepValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateProperty.g.cs deleted file mode 100644 index 01298193afb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateProperty.g.cs +++ /dev/null @@ -1,740 +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.Mapping; - -public sealed partial class DateProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fielddata")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? Fielddata { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("locale")] - public string? Locale { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public DateTimeOffset? NullValue { get; set; } - [JsonInclude, JsonPropertyName("precision_step")] - public int? PrecisionStep { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "date"; -} - -public sealed partial class DatePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DatePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DatePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? FielddataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor FielddataDescriptor { get; set; } - private Action FielddataDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private string? LocaleValue { get; set; } - private IDictionary? MetaValue { get; set; } - private DateTimeOffset? NullValueValue { get; set; } - private int? PrecisionStepValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DatePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DatePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DatePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DatePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DatePropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? fielddata) - { - FielddataDescriptor = null; - FielddataDescriptorAction = null; - FielddataValue = fielddata; - return Self; - } - - public DatePropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor descriptor) - { - FielddataValue = null; - FielddataDescriptorAction = null; - FielddataDescriptor = descriptor; - return Self; - } - - public DatePropertyDescriptor Fielddata(Action configure) - { - FielddataValue = null; - FielddataDescriptor = null; - FielddataDescriptorAction = configure; - return Self; - } - - public DatePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DatePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DatePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DatePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DatePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public DatePropertyDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DatePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatePropertyDescriptor NullValue(DateTimeOffset? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DatePropertyDescriptor PrecisionStep(int? precisionStep) - { - PrecisionStepValue = precisionStep; - return Self; - } - - public DatePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DatePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FielddataDescriptor is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataDescriptor, options); - } - else if (FielddataDescriptorAction is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction), options); - } - else if (FielddataValue is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (PrecisionStepValue.HasValue) - { - writer.WritePropertyName("precision_step"); - writer.WriteNumberValue(PrecisionStepValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("date"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? BuildFielddata() - { - if (FielddataValue is not null) - { - return FielddataValue; - } - - if ((object)FielddataDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (FielddataDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - DateProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fielddata = BuildFielddata(), - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Locale = LocaleValue, - Meta = MetaValue, - NullValue = NullValueValue, - PrecisionStep = PrecisionStepValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class DatePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DatePropertyDescriptor(Action configure) => configure.Invoke(this); - - public DatePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? FielddataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor FielddataDescriptor { get; set; } - private Action FielddataDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private string? LocaleValue { get; set; } - private IDictionary? MetaValue { get; set; } - private DateTimeOffset? NullValueValue { get; set; } - private int? PrecisionStepValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DatePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DatePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DatePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DatePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DatePropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? fielddata) - { - FielddataDescriptor = null; - FielddataDescriptorAction = null; - FielddataValue = fielddata; - return Self; - } - - public DatePropertyDescriptor Fielddata(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor descriptor) - { - FielddataValue = null; - FielddataDescriptorAction = null; - FielddataDescriptor = descriptor; - return Self; - } - - public DatePropertyDescriptor Fielddata(Action configure) - { - FielddataValue = null; - FielddataDescriptor = null; - FielddataDescriptorAction = configure; - return Self; - } - - public DatePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DatePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DatePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DatePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DatePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public DatePropertyDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DatePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DatePropertyDescriptor NullValue(DateTimeOffset? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DatePropertyDescriptor PrecisionStep(int? precisionStep) - { - PrecisionStepValue = precisionStep; - return Self; - } - - public DatePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DatePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DatePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FielddataDescriptor is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataDescriptor, options); - } - else if (FielddataDescriptorAction is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction), options); - } - else if (FielddataValue is not null) - { - writer.WritePropertyName("fielddata"); - JsonSerializer.Serialize(writer, FielddataValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (PrecisionStepValue.HasValue) - { - writer.WritePropertyName("precision_step"); - writer.WriteNumberValue(PrecisionStepValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("date"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddata? BuildFielddata() - { - if (FielddataValue is not null) - { - return FielddataValue; - } - - if ((object)FielddataDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (FielddataDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.NumericFielddataDescriptor(FielddataDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - DateProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fielddata = BuildFielddata(), - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Locale = LocaleValue, - Meta = MetaValue, - NullValue = NullValueValue, - PrecisionStep = PrecisionStepValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateRangeProperty.g.cs deleted file mode 100644 index 98a8be7ae0d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DateRangeProperty.g.cs +++ /dev/null @@ -1,512 +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.Mapping; - -public sealed partial class DateRangeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "date_range"; -} - -public sealed partial class DateRangePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DateRangePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DateRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DateRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DateRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DateRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DateRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DateRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DateRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DateRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DateRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DateRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DateRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DateRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DateRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("date_range"); - writer.WriteEndObject(); - } - - DateRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class DateRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DateRangePropertyDescriptor(Action configure) => configure.Invoke(this); - - public DateRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DateRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DateRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DateRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DateRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DateRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DateRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DateRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DateRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DateRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DateRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DateRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DateRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DateRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("date_range"); - writer.WriteEndObject(); - } - - DateRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 46d3cd22aa6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ /dev/null @@ -1,185 +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.Mapping; - -public sealed partial class DenseVectorIndexOptions -{ - /// - /// - /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and - /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for - /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating - /// the quantization thresholds. - /// - /// - /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization - /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). - /// - /// - /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. - /// - /// - /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. - /// - /// - [JsonInclude, JsonPropertyName("confidence_interval")] - public float? ConfidenceInterval { get; set; } - - /// - /// - /// The number of candidates to track while assembling the list of nearest neighbors for each new node. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// - [JsonInclude, JsonPropertyName("ef_construction")] - public int? EfConstruction { get; set; } - - /// - /// - /// The number of neighbors each node will be connected to in the HNSW graph. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// - [JsonInclude, JsonPropertyName("m")] - public int? m { get; set; } - - /// - /// - /// The type of kNN algorithm to use. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsType Type { get; set; } -} - -public sealed partial class DenseVectorIndexOptionsDescriptor : SerializableDescriptor -{ - internal DenseVectorIndexOptionsDescriptor(Action configure) => configure.Invoke(this); - - public DenseVectorIndexOptionsDescriptor() : base() - { - } - - private float? ConfidenceIntervalValue { get; set; } - private int? EfConstructionValue { get; set; } - private int? mValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsType TypeValue { get; set; } - - /// - /// - /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and - /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for - /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating - /// the quantization thresholds. - /// - /// - /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization - /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). - /// - /// - /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. - /// - /// - /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. - /// - /// - public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInterval) - { - ConfidenceIntervalValue = confidenceInterval; - return Self; - } - - /// - /// - /// The number of candidates to track while assembling the list of nearest neighbors for each new node. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// - public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) - { - EfConstructionValue = efConstruction; - return Self; - } - - /// - /// - /// The number of neighbors each node will be connected to in the HNSW graph. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// - public DenseVectorIndexOptionsDescriptor m(int? m) - { - mValue = m; - return Self; - } - - /// - /// - /// The type of kNN algorithm to use. - /// - /// - public DenseVectorIndexOptionsDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs deleted file mode 100644 index dbf11217d64..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ /dev/null @@ -1,698 +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.Mapping; - -public sealed partial class DenseVectorProperty : IProperty -{ - /// - /// - /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of - /// the first vector added to the field. - /// - /// - [JsonInclude, JsonPropertyName("dims")] - public int? Dims { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - - /// - /// - /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. - /// - /// - [JsonInclude, JsonPropertyName("element_type")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? ElementType { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// If true, you can search this field using the kNN search API. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters - /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the - /// expense of slower indexing speed. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? IndexOptions { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - /// - /// - /// The vector similarity metric to use in kNN search. - /// - /// - /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will - /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds - /// to a higher ranking. - /// - /// - /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. - /// - /// - /// bit vectors only support l2_norm as their similarity metric. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - [JsonInclude, JsonPropertyName("similarity")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? Similarity { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "dense_vector"; -} - -public sealed partial class DenseVectorPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DenseVectorPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DenseVectorPropertyDescriptor() : base() - { - } - - private int? DimsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? IndexOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor IndexOptionsDescriptor { get; set; } - private Action IndexOptionsDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } - - /// - /// - /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of - /// the first vector added to the field. - /// - /// - public DenseVectorPropertyDescriptor Dims(int? dims) - { - DimsValue = dims; - return Self; - } - - public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - /// - /// - /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. - /// - /// - public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? elementType) - { - ElementTypeValue = elementType; - return Self; - } - - public DenseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DenseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DenseVectorPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// If true, you can search this field using the kNN search API. - /// - /// - public DenseVectorPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters - /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the - /// expense of slower indexing speed. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? indexOptions) - { - IndexOptionsDescriptor = null; - IndexOptionsDescriptorAction = null; - IndexOptionsValue = indexOptions; - return Self; - } - - public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor descriptor) - { - IndexOptionsValue = null; - IndexOptionsDescriptorAction = null; - IndexOptionsDescriptor = descriptor; - return Self; - } - - public DenseVectorPropertyDescriptor IndexOptions(Action configure) - { - IndexOptionsValue = null; - IndexOptionsDescriptor = null; - IndexOptionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DenseVectorPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DenseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DenseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DenseVectorPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - /// - /// - /// The vector similarity metric to use in kNN search. - /// - /// - /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will - /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds - /// to a higher ranking. - /// - /// - /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. - /// - /// - /// bit vectors only support l2_norm as their similarity metric. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DimsValue.HasValue) - { - writer.WritePropertyName("dims"); - writer.WriteNumberValue(DimsValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (ElementTypeValue is not null) - { - writer.WritePropertyName("element_type"); - JsonSerializer.Serialize(writer, ElementTypeValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsDescriptor is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsDescriptor, options); - } - else if (IndexOptionsDescriptorAction is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor(IndexOptionsDescriptorAction), options); - } - else if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (SimilarityValue is not null) - { - writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, SimilarityValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("dense_vector"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? BuildIndexOptions() - { - if (IndexOptionsValue is not null) - { - return IndexOptionsValue; - } - - if ((object)IndexOptionsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (IndexOptionsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor(IndexOptionsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - DenseVectorProperty IBuildableDescriptor.Build() => new() - { - Dims = DimsValue, - Dynamic = DynamicValue, - ElementType = ElementTypeValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = BuildIndexOptions(), - Meta = MetaValue, - Properties = PropertiesValue, - Similarity = SimilarityValue - }; -} - -public sealed partial class DenseVectorPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DenseVectorPropertyDescriptor(Action configure) => configure.Invoke(this); - - public DenseVectorPropertyDescriptor() : base() - { - } - - private int? DimsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? IndexOptionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor IndexOptionsDescriptor { get; set; } - private Action IndexOptionsDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } - - /// - /// - /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of - /// the first vector added to the field. - /// - /// - public DenseVectorPropertyDescriptor Dims(int? dims) - { - DimsValue = dims; - return Self; - } - - public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - /// - /// - /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. - /// - /// - public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorElementType? elementType) - { - ElementTypeValue = elementType; - return Self; - } - - public DenseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DenseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DenseVectorPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// If true, you can search this field using the kNN search API. - /// - /// - public DenseVectorPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters - /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the - /// expense of slower indexing speed. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? indexOptions) - { - IndexOptionsDescriptor = null; - IndexOptionsDescriptorAction = null; - IndexOptionsValue = indexOptions; - return Self; - } - - public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor descriptor) - { - IndexOptionsValue = null; - IndexOptionsDescriptorAction = null; - IndexOptionsDescriptor = descriptor; - return Self; - } - - public DenseVectorPropertyDescriptor IndexOptions(Action configure) - { - IndexOptionsValue = null; - IndexOptionsDescriptor = null; - IndexOptionsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DenseVectorPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DenseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DenseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DenseVectorPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - /// - /// - /// The vector similarity metric to use in kNN search. - /// - /// - /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will - /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds - /// to a higher ranking. - /// - /// - /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. - /// - /// - /// bit vectors only support l2_norm as their similarity metric. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorSimilarity? similarity) - { - SimilarityValue = similarity; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DimsValue.HasValue) - { - writer.WritePropertyName("dims"); - writer.WriteNumberValue(DimsValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (ElementTypeValue is not null) - { - writer.WritePropertyName("element_type"); - JsonSerializer.Serialize(writer, ElementTypeValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsDescriptor is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsDescriptor, options); - } - else if (IndexOptionsDescriptorAction is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor(IndexOptionsDescriptorAction), options); - } - else if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (SimilarityValue is not null) - { - writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, SimilarityValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("dense_vector"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptions? BuildIndexOptions() - { - if (IndexOptionsValue is not null) - { - return IndexOptionsValue; - } - - if ((object)IndexOptionsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (IndexOptionsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorIndexOptionsDescriptor(IndexOptionsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - DenseVectorProperty IBuildableDescriptor.Build() => new() - { - Dims = DimsValue, - Dynamic = DynamicValue, - ElementType = ElementTypeValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = BuildIndexOptions(), - Meta = MetaValue, - Properties = PropertiesValue, - Similarity = SimilarityValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 1c50170dbfe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class DoubleNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public double? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "double"; -} - -public sealed partial class DoubleNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DoubleNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DoubleNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private double? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public DoubleNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DoubleNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DoubleNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DoubleNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DoubleNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DoubleNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DoubleNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DoubleNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DoubleNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DoubleNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DoubleNumberPropertyDescriptor NullValue(double? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DoubleNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public DoubleNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DoubleNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("double"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class DoubleNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DoubleNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public DoubleNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private double? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public DoubleNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DoubleNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DoubleNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DoubleNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DoubleNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DoubleNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DoubleNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DoubleNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DoubleNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DoubleNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DoubleNumberPropertyDescriptor NullValue(double? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DoubleNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public DoubleNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DoubleNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("double"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleRangeProperty.g.cs deleted file mode 100644 index cd3a1dfc6c5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DoubleRangeProperty.g.cs +++ /dev/null @@ -1,482 +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.Mapping; - -public sealed partial class DoubleRangeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "double_range"; -} - -public sealed partial class DoubleRangePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DoubleRangePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DoubleRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DoubleRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DoubleRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DoubleRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DoubleRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DoubleRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DoubleRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DoubleRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DoubleRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DoubleRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DoubleRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DoubleRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("double_range"); - writer.WriteEndObject(); - } - - DoubleRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class DoubleRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DoubleRangePropertyDescriptor(Action configure) => configure.Invoke(this); - - public DoubleRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public DoubleRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DoubleRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DoubleRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DoubleRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DoubleRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DoubleRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DoubleRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DoubleRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DoubleRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DoubleRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DoubleRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DoubleRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("double_range"); - writer.WriteEndObject(); - } - - DoubleRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index c82eb82083c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicProperty.g.cs +++ /dev/null @@ -1,1268 +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.Mapping; - -public sealed partial class DynamicProperty : IProperty -{ - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("eager_global_ordinals")] - public bool? EagerGlobalOrdinals { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude, JsonPropertyName("index_phrases")] - public bool? IndexPhrases { get; set; } - [JsonInclude, JsonPropertyName("index_prefixes")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? IndexPrefixes { get; set; } - [JsonInclude, JsonPropertyName("locale")] - public string? Locale { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("norms")] - public bool? Norms { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public Elastic.Clients.Elasticsearch.Serverless.FieldValue? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("position_increment_gap")] - public int? PositionIncrementGap { get; set; } - [JsonInclude, JsonPropertyName("precision_step")] - public int? PrecisionStep { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("search_analyzer")] - public string? SearchAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("search_quote_analyzer")] - public string? SearchQuoteAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("term_vector")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVector { get; set; } - [JsonInclude, JsonPropertyName("time_series_metric")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetric { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "{dynamic_type}"; -} - -public sealed partial class DynamicPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal DynamicPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public DynamicPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private bool? IndexPhrasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? IndexPrefixesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor IndexPrefixesDescriptor { get; set; } - private Action IndexPrefixesDescriptorAction { get; set; } - private string? LocaleValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } - private int? PositionIncrementGapValue { get; set; } - 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 bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } - - public DynamicPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public DynamicPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DynamicPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DynamicPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DynamicPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DynamicPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DynamicPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public DynamicPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public DynamicPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DynamicPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DynamicPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DynamicPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DynamicPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public DynamicPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public DynamicPropertyDescriptor IndexPhrases(bool? indexPhrases = true) - { - IndexPhrasesValue = indexPhrases; - return Self; - } - - public DynamicPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? indexPrefixes) - { - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesValue = indexPrefixes; - return Self; - } - - public DynamicPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor descriptor) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesDescriptor = descriptor; - return Self; - } - - public DynamicPropertyDescriptor IndexPrefixes(Action configure) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = configure; - return Self; - } - - public DynamicPropertyDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DynamicPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DynamicPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public DynamicPropertyDescriptor NullValue(Elastic.Clients.Elasticsearch.Serverless.FieldValue? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DynamicPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public DynamicPropertyDescriptor PositionIncrementGap(int? positionIncrementGap) - { - PositionIncrementGapValue = positionIncrementGap; - return Self; - } - - public DynamicPropertyDescriptor PrecisionStep(int? precisionStep) - { - PrecisionStepValue = precisionStep; - return Self; - } - - public DynamicPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DynamicPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor 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; - return Self; - } - - public DynamicPropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer) - { - SearchQuoteAnalyzerValue = searchQuoteAnalyzer; - return Self; - } - - public DynamicPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public DynamicPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? termVector) - { - TermVectorValue = termVector; - return Self; - } - - public DynamicPropertyDescriptor TimeSeriesMetric(Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? timeSeriesMetric) - { - TimeSeriesMetricValue = timeSeriesMetric; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (IndexPhrasesValue.HasValue) - { - writer.WritePropertyName("index_phrases"); - writer.WriteBooleanValue(IndexPhrasesValue.Value); - } - - if (IndexPrefixesDescriptor is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesDescriptor, options); - } - else if (IndexPrefixesDescriptorAction is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction), options); - } - else if (IndexPrefixesValue is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesValue, options); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PositionIncrementGapValue.HasValue) - { - writer.WritePropertyName("position_increment_gap"); - writer.WriteNumberValue(PositionIncrementGapValue.Value); - } - - if (PrecisionStepValue.HasValue) - { - writer.WritePropertyName("precision_step"); - writer.WriteNumberValue(PrecisionStepValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SearchQuoteAnalyzerValue)) - { - writer.WritePropertyName("search_quote_analyzer"); - writer.WriteStringValue(SearchQuoteAnalyzerValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TermVectorValue is not null) - { - writer.WritePropertyName("term_vector"); - JsonSerializer.Serialize(writer, TermVectorValue, options); - } - - if (TimeSeriesMetricValue is not null) - { - writer.WritePropertyName("time_series_metric"); - JsonSerializer.Serialize(writer, TimeSeriesMetricValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("{dynamic_type}"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? BuildIndexPrefixes() - { - if (IndexPrefixesValue is not null) - { - return IndexPrefixesValue; - } - - if ((object)IndexPrefixesDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (IndexPrefixesDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - 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, - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Enabled = EnabledValue, - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - IndexPhrases = IndexPhrasesValue, - IndexPrefixes = BuildIndexPrefixes(), - Locale = LocaleValue, - Meta = MetaValue, - Norms = NormsValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - PositionIncrementGap = PositionIncrementGapValue, - PrecisionStep = PrecisionStepValue, - Properties = PropertiesValue, - Script = BuildScript(), - SearchAnalyzer = SearchAnalyzerValue, - SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Store = StoreValue, - TermVector = TermVectorValue, - TimeSeriesMetric = TimeSeriesMetricValue - }; -} - -public sealed partial class DynamicPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal DynamicPropertyDescriptor(Action configure) => configure.Invoke(this); - - public DynamicPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private string? FormatValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private bool? IndexPhrasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? IndexPrefixesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor IndexPrefixesDescriptor { get; set; } - private Action IndexPrefixesDescriptorAction { get; set; } - private string? LocaleValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } - private int? PositionIncrementGapValue { get; set; } - 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 bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } - - public DynamicPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public DynamicPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public DynamicPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public DynamicPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public DynamicPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public DynamicPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public DynamicPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public DynamicPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public DynamicPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public DynamicPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public DynamicPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public DynamicPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public DynamicPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public DynamicPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public DynamicPropertyDescriptor IndexPhrases(bool? indexPhrases = true) - { - IndexPhrasesValue = indexPhrases; - return Self; - } - - public DynamicPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? indexPrefixes) - { - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesValue = indexPrefixes; - return Self; - } - - public DynamicPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor descriptor) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesDescriptor = descriptor; - return Self; - } - - public DynamicPropertyDescriptor IndexPrefixes(Action configure) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = configure; - return Self; - } - - public DynamicPropertyDescriptor Locale(string? locale) - { - LocaleValue = locale; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public DynamicPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public DynamicPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public DynamicPropertyDescriptor NullValue(Elastic.Clients.Elasticsearch.Serverless.FieldValue? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public DynamicPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public DynamicPropertyDescriptor PositionIncrementGap(int? positionIncrementGap) - { - PositionIncrementGapValue = positionIncrementGap; - return Self; - } - - public DynamicPropertyDescriptor PrecisionStep(int? precisionStep) - { - PrecisionStepValue = precisionStep; - return Self; - } - - public DynamicPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public DynamicPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public DynamicPropertyDescriptor 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; - return Self; - } - - public DynamicPropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer) - { - SearchQuoteAnalyzerValue = searchQuoteAnalyzer; - return Self; - } - - public DynamicPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public DynamicPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? termVector) - { - TermVectorValue = termVector; - return Self; - } - - public DynamicPropertyDescriptor TimeSeriesMetric(Elastic.Clients.Elasticsearch.Serverless.Mapping.TimeSeriesMetricType? timeSeriesMetric) - { - TimeSeriesMetricValue = timeSeriesMetric; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (IndexPhrasesValue.HasValue) - { - writer.WritePropertyName("index_phrases"); - writer.WriteBooleanValue(IndexPhrasesValue.Value); - } - - if (IndexPrefixesDescriptor is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesDescriptor, options); - } - else if (IndexPrefixesDescriptorAction is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction), options); - } - else if (IndexPrefixesValue is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesValue, options); - } - - if (!string.IsNullOrEmpty(LocaleValue)) - { - writer.WritePropertyName("locale"); - writer.WriteStringValue(LocaleValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PositionIncrementGapValue.HasValue) - { - writer.WritePropertyName("position_increment_gap"); - writer.WriteNumberValue(PositionIncrementGapValue.Value); - } - - if (PrecisionStepValue.HasValue) - { - writer.WritePropertyName("precision_step"); - writer.WriteNumberValue(PrecisionStepValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SearchQuoteAnalyzerValue)) - { - writer.WritePropertyName("search_quote_analyzer"); - writer.WriteStringValue(SearchQuoteAnalyzerValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TermVectorValue is not null) - { - writer.WritePropertyName("term_vector"); - JsonSerializer.Serialize(writer, TermVectorValue, options); - } - - if (TimeSeriesMetricValue is not null) - { - writer.WritePropertyName("time_series_metric"); - JsonSerializer.Serialize(writer, TimeSeriesMetricValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("{dynamic_type}"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? BuildIndexPrefixes() - { - if (IndexPrefixesValue is not null) - { - return IndexPrefixesValue; - } - - if ((object)IndexPrefixesDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (IndexPrefixesDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - 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, - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Enabled = EnabledValue, - Fields = FieldsValue, - Format = FormatValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - IndexPhrases = IndexPhrasesValue, - IndexPrefixes = BuildIndexPrefixes(), - Locale = LocaleValue, - Meta = MetaValue, - Norms = NormsValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - PositionIncrementGap = PositionIncrementGapValue, - PrecisionStep = PrecisionStepValue, - Properties = PropertiesValue, - Script = BuildScript(), - SearchAnalyzer = SearchAnalyzerValue, - SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Store = StoreValue, - TermVector = TermVectorValue, - TimeSeriesMetric = TimeSeriesMetricValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicTemplate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicTemplate.g.cs deleted file mode 100644 index 84661cf4461..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/DynamicTemplate.g.cs +++ /dev/null @@ -1,535 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; - -[JsonConverter(typeof(DynamicTemplateConverter))] -public sealed partial class DynamicTemplate -{ - internal DynamicTemplate(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static DynamicTemplate Mapping(Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty property) => new DynamicTemplate("mapping", property); - public static DynamicTemplate Runtime(Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty property) => new DynamicTemplate("runtime", property); - - [JsonInclude, JsonPropertyName("match")] - public ICollection? Match { get; set; } - [JsonInclude, JsonPropertyName("match_mapping_type")] - public ICollection? MatchMappingType { get; set; } - [JsonInclude, JsonPropertyName("match_pattern")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchType? MatchPattern { get; set; } - [JsonInclude, JsonPropertyName("path_match")] - public ICollection? PathMatch { get; set; } - [JsonInclude, JsonPropertyName("path_unmatch")] - public ICollection? PathUnmatch { get; set; } - [JsonInclude, JsonPropertyName("unmatch")] - public ICollection? Unmatch { get; set; } - [JsonInclude, JsonPropertyName("unmatch_mapping_type")] - public ICollection? UnmatchMappingType { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class DynamicTemplateConverter : JsonConverter -{ - public override DynamicTemplate Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - ICollection? matchValue = default; - ICollection? matchMappingTypeValue = default; - Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchType? matchPatternValue = default; - ICollection? pathMatchValue = default; - ICollection? pathUnmatchValue = default; - ICollection? unmatchValue = default; - ICollection? unmatchMappingTypeValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "match") - { - matchValue = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "match_mapping_type") - { - matchMappingTypeValue = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "match_pattern") - { - matchPatternValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "path_match") - { - pathMatchValue = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "path_unmatch") - { - pathUnmatchValue = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "unmatch") - { - unmatchValue = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "unmatch_mapping_type") - { - unmatchMappingTypeValue = SingleOrManySerializationHelper.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "mapping") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "runtime") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'DynamicTemplate' from the response."); - } - - var result = new DynamicTemplate(variantNameValue, variantValue); - result.Match = matchValue; - result.MatchMappingType = matchMappingTypeValue; - result.MatchPattern = matchPatternValue; - result.PathMatch = pathMatchValue; - result.PathUnmatch = pathUnmatchValue; - result.Unmatch = unmatchValue; - result.UnmatchMappingType = unmatchMappingTypeValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, DynamicTemplate value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Match is not null) - { - writer.WritePropertyName("match"); - SingleOrManySerializationHelper.Serialize(value.Match, writer, options); - } - - if (value.MatchMappingType is not null) - { - writer.WritePropertyName("match_mapping_type"); - SingleOrManySerializationHelper.Serialize(value.MatchMappingType, writer, options); - } - - if (value.MatchPattern is not null) - { - writer.WritePropertyName("match_pattern"); - JsonSerializer.Serialize(writer, value.MatchPattern, options); - } - - if (value.PathMatch is not null) - { - writer.WritePropertyName("path_match"); - SingleOrManySerializationHelper.Serialize(value.PathMatch, writer, options); - } - - if (value.PathUnmatch is not null) - { - writer.WritePropertyName("path_unmatch"); - SingleOrManySerializationHelper.Serialize(value.PathUnmatch, writer, options); - } - - if (value.Unmatch is not null) - { - writer.WritePropertyName("unmatch"); - SingleOrManySerializationHelper.Serialize(value.Unmatch, writer, options); - } - - if (value.UnmatchMappingType is not null) - { - writer.WritePropertyName("unmatch_mapping_type"); - SingleOrManySerializationHelper.Serialize(value.UnmatchMappingType, writer, options); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "mapping": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty)value.Variant, options); - break; - case "runtime": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DynamicTemplateDescriptor : SerializableDescriptor> -{ - internal DynamicTemplateDescriptor(Action> configure) => configure.Invoke(this); - - public DynamicTemplateDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DynamicTemplateDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DynamicTemplateDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private ICollection? MatchValue { get; set; } - private ICollection? MatchMappingTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchType? MatchPatternValue { get; set; } - private ICollection? PathMatchValue { get; set; } - private ICollection? PathUnmatchValue { get; set; } - private ICollection? UnmatchValue { get; set; } - private ICollection? UnmatchMappingTypeValue { get; set; } - - public DynamicTemplateDescriptor Match(ICollection? match) - { - MatchValue = match; - return Self; - } - - public DynamicTemplateDescriptor MatchMappingType(ICollection? matchMappingType) - { - MatchMappingTypeValue = matchMappingType; - return Self; - } - - public DynamicTemplateDescriptor MatchPattern(Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchType? matchPattern) - { - MatchPatternValue = matchPattern; - return Self; - } - - public DynamicTemplateDescriptor PathMatch(ICollection? pathMatch) - { - PathMatchValue = pathMatch; - return Self; - } - - public DynamicTemplateDescriptor PathUnmatch(ICollection? pathUnmatch) - { - PathUnmatchValue = pathUnmatch; - return Self; - } - - public DynamicTemplateDescriptor Unmatch(ICollection? unmatch) - { - UnmatchValue = unmatch; - return Self; - } - - public DynamicTemplateDescriptor UnmatchMappingType(ICollection? unmatchMappingType) - { - UnmatchMappingTypeValue = unmatchMappingType; - return Self; - } - - public DynamicTemplateDescriptor Mapping(Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty property) => Set(property, "mapping"); - public DynamicTemplateDescriptor Runtime(Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty property) => Set(property, "runtime"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MatchValue is not null) - { - writer.WritePropertyName("match"); - SingleOrManySerializationHelper.Serialize(MatchValue, writer, options); - } - - if (MatchMappingTypeValue is not null) - { - writer.WritePropertyName("match_mapping_type"); - SingleOrManySerializationHelper.Serialize(MatchMappingTypeValue, writer, options); - } - - if (MatchPatternValue is not null) - { - writer.WritePropertyName("match_pattern"); - JsonSerializer.Serialize(writer, MatchPatternValue, options); - } - - if (PathMatchValue is not null) - { - writer.WritePropertyName("path_match"); - SingleOrManySerializationHelper.Serialize(PathMatchValue, writer, options); - } - - if (PathUnmatchValue is not null) - { - writer.WritePropertyName("path_unmatch"); - SingleOrManySerializationHelper.Serialize(PathUnmatchValue, writer, options); - } - - if (UnmatchValue is not null) - { - writer.WritePropertyName("unmatch"); - SingleOrManySerializationHelper.Serialize(UnmatchValue, writer, options); - } - - if (UnmatchMappingTypeValue is not null) - { - writer.WritePropertyName("unmatch_mapping_type"); - SingleOrManySerializationHelper.Serialize(UnmatchMappingTypeValue, writer, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DynamicTemplateDescriptor : SerializableDescriptor -{ - internal DynamicTemplateDescriptor(Action configure) => configure.Invoke(this); - - public DynamicTemplateDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private DynamicTemplateDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private DynamicTemplateDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private ICollection? MatchValue { get; set; } - private ICollection? MatchMappingTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchType? MatchPatternValue { get; set; } - private ICollection? PathMatchValue { get; set; } - private ICollection? PathUnmatchValue { get; set; } - private ICollection? UnmatchValue { get; set; } - private ICollection? UnmatchMappingTypeValue { get; set; } - - public DynamicTemplateDescriptor Match(ICollection? match) - { - MatchValue = match; - return Self; - } - - public DynamicTemplateDescriptor MatchMappingType(ICollection? matchMappingType) - { - MatchMappingTypeValue = matchMappingType; - return Self; - } - - public DynamicTemplateDescriptor MatchPattern(Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchType? matchPattern) - { - MatchPatternValue = matchPattern; - return Self; - } - - public DynamicTemplateDescriptor PathMatch(ICollection? pathMatch) - { - PathMatchValue = pathMatch; - return Self; - } - - public DynamicTemplateDescriptor PathUnmatch(ICollection? pathUnmatch) - { - PathUnmatchValue = pathUnmatch; - return Self; - } - - public DynamicTemplateDescriptor Unmatch(ICollection? unmatch) - { - UnmatchValue = unmatch; - return Self; - } - - public DynamicTemplateDescriptor UnmatchMappingType(ICollection? unmatchMappingType) - { - UnmatchMappingTypeValue = unmatchMappingType; - return Self; - } - - public DynamicTemplateDescriptor Mapping(Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty property) => Set(property, "mapping"); - public DynamicTemplateDescriptor Runtime(Elastic.Clients.Elasticsearch.Serverless.Mapping.IProperty property) => Set(property, "runtime"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (MatchValue is not null) - { - writer.WritePropertyName("match"); - SingleOrManySerializationHelper.Serialize(MatchValue, writer, options); - } - - if (MatchMappingTypeValue is not null) - { - writer.WritePropertyName("match_mapping_type"); - SingleOrManySerializationHelper.Serialize(MatchMappingTypeValue, writer, options); - } - - if (MatchPatternValue is not null) - { - writer.WritePropertyName("match_pattern"); - JsonSerializer.Serialize(writer, MatchPatternValue, options); - } - - if (PathMatchValue is not null) - { - writer.WritePropertyName("path_match"); - SingleOrManySerializationHelper.Serialize(PathMatchValue, writer, options); - } - - if (PathUnmatchValue is not null) - { - writer.WritePropertyName("path_unmatch"); - SingleOrManySerializationHelper.Serialize(PathUnmatchValue, writer, options); - } - - if (UnmatchValue is not null) - { - writer.WritePropertyName("unmatch"); - SingleOrManySerializationHelper.Serialize(UnmatchValue, writer, options); - } - - if (UnmatchMappingTypeValue is not null) - { - writer.WritePropertyName("unmatch_mapping_type"); - SingleOrManySerializationHelper.Serialize(UnmatchMappingTypeValue, writer, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldAliasProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldAliasProperty.g.cs deleted file mode 100644 index 13f46a7202b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldAliasProperty.g.cs +++ /dev/null @@ -1,355 +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.Mapping; - -public sealed partial class FieldAliasProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Path { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "alias"; -} - -public sealed partial class FieldAliasPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal FieldAliasPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public FieldAliasPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public FieldAliasPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FieldAliasPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FieldAliasPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FieldAliasPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FieldAliasPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FieldAliasPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FieldAliasPropertyDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - public FieldAliasPropertyDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public FieldAliasPropertyDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public FieldAliasPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FieldAliasPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FieldAliasPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("alias"); - writer.WriteEndObject(); - } - - FieldAliasProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Path = PathValue, - Properties = PropertiesValue - }; -} - -public sealed partial class FieldAliasPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FieldAliasPropertyDescriptor(Action configure) => configure.Invoke(this); - - public FieldAliasPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public FieldAliasPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FieldAliasPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FieldAliasPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FieldAliasPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FieldAliasPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FieldAliasPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FieldAliasPropertyDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - public FieldAliasPropertyDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public FieldAliasPropertyDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public FieldAliasPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FieldAliasPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FieldAliasPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("alias"); - writer.WriteEndObject(); - } - - FieldAliasProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Path = PathValue, - Properties = PropertiesValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldNamesField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldNamesField.g.cs deleted file mode 100644 index 68f126f1dd7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FieldNamesField.g.cs +++ /dev/null @@ -1,59 +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.Mapping; - -public sealed partial class FieldNamesField -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } -} - -public sealed partial class FieldNamesFieldDescriptor : SerializableDescriptor -{ - internal FieldNamesFieldDescriptor(Action configure) => configure.Invoke(this); - - public FieldNamesFieldDescriptor() : base() - { - } - - private bool EnabledValue { get; set; } - - public FieldNamesFieldDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FlattenedProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FlattenedProperty.g.cs deleted file mode 100644 index 4b889d7ed35..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FlattenedProperty.g.cs +++ /dev/null @@ -1,571 +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.Mapping; - -public sealed partial class FlattenedProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("depth_limit")] - public int? DepthLimit { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("eager_global_ordinals")] - public bool? EagerGlobalOrdinals { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptions { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public string? NullValue { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } - [JsonInclude, JsonPropertyName("split_queries_on_whitespace")] - public bool? SplitQueriesOnWhitespace { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "flattened"; -} - -public sealed partial class FlattenedPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal FlattenedPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public FlattenedPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private int? DepthLimitValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } - private bool? SplitQueriesOnWhitespaceValue { get; set; } - - public FlattenedPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public FlattenedPropertyDescriptor DepthLimit(int? depthLimit) - { - DepthLimitValue = depthLimit; - return Self; - } - - public FlattenedPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public FlattenedPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FlattenedPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public FlattenedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FlattenedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public FlattenedPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public FlattenedPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FlattenedPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FlattenedPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public FlattenedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FlattenedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public FlattenedPropertyDescriptor SplitQueriesOnWhitespace(bool? splitQueriesOnWhitespace = true) - { - SplitQueriesOnWhitespaceValue = splitQueriesOnWhitespace; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DepthLimitValue.HasValue) - { - writer.WritePropertyName("depth_limit"); - writer.WriteNumberValue(DepthLimitValue.Value); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (SplitQueriesOnWhitespaceValue.HasValue) - { - writer.WritePropertyName("split_queries_on_whitespace"); - writer.WriteBooleanValue(SplitQueriesOnWhitespaceValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("flattened"); - writer.WriteEndObject(); - } - - FlattenedProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - DepthLimit = DepthLimitValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Similarity = SimilarityValue, - SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue - }; -} - -public sealed partial class FlattenedPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FlattenedPropertyDescriptor(Action configure) => configure.Invoke(this); - - public FlattenedPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private int? DepthLimitValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } - private bool? SplitQueriesOnWhitespaceValue { get; set; } - - public FlattenedPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public FlattenedPropertyDescriptor DepthLimit(int? depthLimit) - { - DepthLimitValue = depthLimit; - return Self; - } - - public FlattenedPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public FlattenedPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FlattenedPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public FlattenedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FlattenedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public FlattenedPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public FlattenedPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FlattenedPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FlattenedPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public FlattenedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FlattenedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FlattenedPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public FlattenedPropertyDescriptor SplitQueriesOnWhitespace(bool? splitQueriesOnWhitespace = true) - { - SplitQueriesOnWhitespaceValue = splitQueriesOnWhitespace; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DepthLimitValue.HasValue) - { - writer.WritePropertyName("depth_limit"); - writer.WriteNumberValue(DepthLimitValue.Value); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (SplitQueriesOnWhitespaceValue.HasValue) - { - writer.WritePropertyName("split_queries_on_whitespace"); - writer.WriteBooleanValue(SplitQueriesOnWhitespaceValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("flattened"); - writer.WriteEndObject(); - } - - FlattenedProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - DepthLimit = DepthLimitValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Similarity = SimilarityValue, - SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 209758f348f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class FloatNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public float? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "float"; -} - -public sealed partial class FloatNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal FloatNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public FloatNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private float? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public FloatNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public FloatNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public FloatNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public FloatNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public FloatNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public FloatNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public FloatNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FloatNumberPropertyDescriptor NullValue(float? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public FloatNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public FloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("float"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class FloatNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FloatNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public FloatNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private float? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public FloatNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public FloatNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public FloatNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public FloatNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public FloatNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public FloatNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public FloatNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FloatNumberPropertyDescriptor NullValue(float? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public FloatNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public FloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("float"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatRangeProperty.g.cs deleted file mode 100644 index 18e6057c59c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/FloatRangeProperty.g.cs +++ /dev/null @@ -1,482 +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.Mapping; - -public sealed partial class FloatRangeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "float_range"; -} - -public sealed partial class FloatRangePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal FloatRangePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public FloatRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public FloatRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public FloatRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public FloatRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public FloatRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public FloatRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FloatRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FloatRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public FloatRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FloatRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FloatRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FloatRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("float_range"); - writer.WriteEndObject(); - } - - FloatRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class FloatRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal FloatRangePropertyDescriptor(Action configure) => configure.Invoke(this); - - public FloatRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public FloatRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public FloatRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public FloatRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public FloatRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public FloatRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public FloatRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public FloatRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public FloatRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public FloatRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public FloatRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public FloatRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public FloatRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("float_range"); - writer.WriteEndObject(); - } - - FloatRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 048ce25f474..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoPointProperty.g.cs +++ /dev/null @@ -1,680 +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.Mapping; - -public sealed partial class GeoPointProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("ignore_z_value")] - public bool? IgnoreZValue { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "geo_point"; -} - -public sealed partial class GeoPointPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal GeoPointPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public GeoPointPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public GeoPointPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public GeoPointPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public GeoPointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public GeoPointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public GeoPointPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public GeoPointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - public GeoPointPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public GeoPointPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GeoPointPropertyDescriptor NullValue(Elastic.Clients.Elasticsearch.Serverless.GeoLocation? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public GeoPointPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public GeoPointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public GeoPointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("geo_point"); - 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, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class GeoPointPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal GeoPointPropertyDescriptor(Action configure) => configure.Invoke(this); - - public GeoPointPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public GeoPointPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public GeoPointPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public GeoPointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public GeoPointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public GeoPointPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public GeoPointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - public GeoPointPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public GeoPointPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GeoPointPropertyDescriptor NullValue(Elastic.Clients.Elasticsearch.Serverless.GeoLocation? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public GeoPointPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public GeoPointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public GeoPointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoPointPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue is not null) - { - writer.WritePropertyName("null_value"); - JsonSerializer.Serialize(writer, NullValueValue, options); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("geo_point"); - 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, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs deleted file mode 100644 index 30917b79567..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ /dev/null @@ -1,563 +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.Mapping; - -/// -/// -/// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles -/// and polygons. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class GeoShapeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("ignore_z_value")] - public bool? IgnoreZValue { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("orientation")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? Orientation { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("strategy")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? Strategy { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "geo_shape"; -} - -/// -/// -/// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles -/// and polygons. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal GeoShapePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public GeoShapePropertyDescriptor() : base() - { - } - - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? StrategyValue { get; set; } - - public GeoShapePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public GeoShapePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public GeoShapePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public GeoShapePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public GeoShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public GeoShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public GeoShapePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public GeoShapePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GeoShapePropertyDescriptor Orientation(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? orientation) - { - OrientationValue = orientation; - return Self; - } - - public GeoShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public GeoShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public GeoShapePropertyDescriptor Strategy(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? strategy) - { - StrategyValue = strategy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OrientationValue is not null) - { - writer.WritePropertyName("orientation"); - JsonSerializer.Serialize(writer, OrientationValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (StrategyValue is not null) - { - writer.WritePropertyName("strategy"); - JsonSerializer.Serialize(writer, StrategyValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("geo_shape"); - writer.WriteEndObject(); - } - - GeoShapeProperty IBuildableDescriptor.Build() => new() - { - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Meta = MetaValue, - Orientation = OrientationValue, - Properties = PropertiesValue, - Store = StoreValue, - Strategy = StrategyValue - }; -} - -/// -/// -/// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles -/// and polygons. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal GeoShapePropertyDescriptor(Action configure) => configure.Invoke(this); - - public GeoShapePropertyDescriptor() : base() - { - } - - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? StrategyValue { get; set; } - - public GeoShapePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public GeoShapePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public GeoShapePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public GeoShapePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public GeoShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public GeoShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public GeoShapePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public GeoShapePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GeoShapePropertyDescriptor Orientation(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? orientation) - { - OrientationValue = orientation; - return Self; - } - - public GeoShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public GeoShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public GeoShapePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public GeoShapePropertyDescriptor Strategy(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoStrategy? strategy) - { - StrategyValue = strategy; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OrientationValue is not null) - { - writer.WritePropertyName("orientation"); - JsonSerializer.Serialize(writer, OrientationValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (StrategyValue is not null) - { - writer.WritePropertyName("strategy"); - JsonSerializer.Serialize(writer, StrategyValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("geo_shape"); - writer.WriteEndObject(); - } - - GeoShapeProperty IBuildableDescriptor.Build() => new() - { - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Meta = MetaValue, - Orientation = OrientationValue, - Properties = PropertiesValue, - Store = StoreValue, - Strategy = StrategyValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 2ec7faa6a78..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class HalfFloatNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public float? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "half_float"; -} - -public sealed partial class HalfFloatNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal HalfFloatNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public HalfFloatNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private float? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public HalfFloatNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public HalfFloatNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public HalfFloatNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public HalfFloatNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public HalfFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public HalfFloatNumberPropertyDescriptor NullValue(float? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("half_float"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class HalfFloatNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HalfFloatNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public HalfFloatNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private float? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public HalfFloatNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public HalfFloatNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public HalfFloatNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public HalfFloatNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public HalfFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public HalfFloatNumberPropertyDescriptor NullValue(float? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public HalfFloatNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("half_float"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HistogramProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HistogramProperty.g.cs deleted file mode 100644 index 7a4ee2601c0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/HistogramProperty.g.cs +++ /dev/null @@ -1,331 +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.Mapping; - -public sealed partial class HistogramProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "histogram"; -} - -public sealed partial class HistogramPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal HistogramPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public HistogramPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public HistogramPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public HistogramPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public HistogramPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HistogramPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HistogramPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public HistogramPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public HistogramPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public HistogramPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public HistogramPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public HistogramPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("histogram"); - writer.WriteEndObject(); - } - - HistogramProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Meta = MetaValue, - Properties = PropertiesValue - }; -} - -public sealed partial class HistogramPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal HistogramPropertyDescriptor(Action configure) => configure.Invoke(this); - - public HistogramPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public HistogramPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public HistogramPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public HistogramPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HistogramPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public HistogramPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public HistogramPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public HistogramPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public HistogramPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public HistogramPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public HistogramPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("histogram"); - writer.WriteEndObject(); - } - - HistogramProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Meta = MetaValue, - Properties = PropertiesValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IcuCollationProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IcuCollationProperty.g.cs deleted file mode 100644 index 21424b05c95..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IcuCollationProperty.g.cs +++ /dev/null @@ -1,905 +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.Mapping; - -public sealed partial class IcuCollationProperty : IProperty -{ - [JsonInclude, JsonPropertyName("alternate")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? Alternate { get; set; } - [JsonInclude, JsonPropertyName("case_first")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirst { get; set; } - [JsonInclude, JsonPropertyName("case_level")] - public bool? CaseLevel { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("country")] - public string? Country { get; set; } - [JsonInclude, JsonPropertyName("decomposition")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? Decomposition { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("hiragana_quaternary_mode")] - public bool? HiraganaQuaternaryMode { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Should the field be searchable? - /// - /// - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude, JsonPropertyName("language")] - public string? Language { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("norms")] - public bool? Norms { get; set; } - - /// - /// - /// Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing. - /// - /// - [JsonInclude, JsonPropertyName("null_value")] - public string? NullValue { get; set; } - [JsonInclude, JsonPropertyName("numeric")] - public bool? Numeric { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("rules")] - public string? Rules { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("strength")] - public Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? Strength { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "icu_collation_keyword"; - - [JsonInclude, JsonPropertyName("variable_top")] - public string? VariableTop { get; set; } - [JsonInclude, JsonPropertyName("variant")] - public string? Variant { get; set; } -} - -public sealed partial class IcuCollationPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal IcuCollationPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public IcuCollationPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? AlternateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirstValue { get; set; } - private bool? CaseLevelValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private string? CountryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? DecompositionValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private bool? HiraganaQuaternaryModeValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private string? LanguageValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private string? NullValueValue { get; set; } - private bool? NumericValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? RulesValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? StrengthValue { get; set; } - private string? VariableTopValue { get; set; } - private string? VariantValue { get; set; } - - public IcuCollationPropertyDescriptor Alternate(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? alternate) - { - AlternateValue = alternate; - return Self; - } - - public IcuCollationPropertyDescriptor CaseFirst(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? caseFirst) - { - CaseFirstValue = caseFirst; - return Self; - } - - public IcuCollationPropertyDescriptor CaseLevel(bool? caseLevel = true) - { - CaseLevelValue = caseLevel; - return Self; - } - - public IcuCollationPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IcuCollationPropertyDescriptor Country(string? country) - { - CountryValue = country; - return Self; - } - - public IcuCollationPropertyDescriptor Decomposition(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? decomposition) - { - DecompositionValue = decomposition; - return Self; - } - - public IcuCollationPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IcuCollationPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IcuCollationPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IcuCollationPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor HiraganaQuaternaryMode(bool? hiraganaQuaternaryMode = true) - { - HiraganaQuaternaryModeValue = hiraganaQuaternaryMode; - return Self; - } - - public IcuCollationPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Should the field be searchable? - /// - /// - public IcuCollationPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public IcuCollationPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public IcuCollationPropertyDescriptor Language(string? language) - { - LanguageValue = language; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IcuCollationPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IcuCollationPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - /// - /// - /// Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing. - /// - /// - public IcuCollationPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public IcuCollationPropertyDescriptor Numeric(bool? numeric = true) - { - NumericValue = numeric; - return Self; - } - - public IcuCollationPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IcuCollationPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor Rules(string? rules) - { - RulesValue = rules; - return Self; - } - - public IcuCollationPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public IcuCollationPropertyDescriptor Strength(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? strength) - { - StrengthValue = strength; - return Self; - } - - public IcuCollationPropertyDescriptor VariableTop(string? variableTop) - { - VariableTopValue = variableTop; - return Self; - } - - public IcuCollationPropertyDescriptor Variant(string? variant) - { - VariantValue = variant; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlternateValue is not null) - { - writer.WritePropertyName("alternate"); - JsonSerializer.Serialize(writer, AlternateValue, options); - } - - if (CaseFirstValue is not null) - { - writer.WritePropertyName("case_first"); - JsonSerializer.Serialize(writer, CaseFirstValue, options); - } - - if (CaseLevelValue.HasValue) - { - writer.WritePropertyName("case_level"); - writer.WriteBooleanValue(CaseLevelValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (!string.IsNullOrEmpty(CountryValue)) - { - writer.WritePropertyName("country"); - writer.WriteStringValue(CountryValue); - } - - if (DecompositionValue is not null) - { - writer.WritePropertyName("decomposition"); - JsonSerializer.Serialize(writer, DecompositionValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (HiraganaQuaternaryModeValue.HasValue) - { - writer.WritePropertyName("hiragana_quaternary_mode"); - writer.WriteBooleanValue(HiraganaQuaternaryModeValue.Value); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (!string.IsNullOrEmpty(LanguageValue)) - { - writer.WritePropertyName("language"); - writer.WriteStringValue(LanguageValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (NumericValue.HasValue) - { - writer.WritePropertyName("numeric"); - writer.WriteBooleanValue(NumericValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(RulesValue)) - { - writer.WritePropertyName("rules"); - writer.WriteStringValue(RulesValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (StrengthValue is not null) - { - writer.WritePropertyName("strength"); - JsonSerializer.Serialize(writer, StrengthValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_collation_keyword"); - if (!string.IsNullOrEmpty(VariableTopValue)) - { - writer.WritePropertyName("variable_top"); - writer.WriteStringValue(VariableTopValue); - } - - if (!string.IsNullOrEmpty(VariantValue)) - { - writer.WritePropertyName("variant"); - writer.WriteStringValue(VariantValue); - } - - writer.WriteEndObject(); - } - - IcuCollationProperty IBuildableDescriptor.Build() => new() - { - Alternate = AlternateValue, - CaseFirst = CaseFirstValue, - CaseLevel = CaseLevelValue, - CopyTo = CopyToValue, - Country = CountryValue, - Decomposition = DecompositionValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - HiraganaQuaternaryMode = HiraganaQuaternaryModeValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - Language = LanguageValue, - Meta = MetaValue, - Norms = NormsValue, - NullValue = NullValueValue, - Numeric = NumericValue, - Properties = PropertiesValue, - Rules = RulesValue, - Store = StoreValue, - Strength = StrengthValue, - VariableTop = VariableTopValue, - Variant = VariantValue - }; -} - -public sealed partial class IcuCollationPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IcuCollationPropertyDescriptor(Action configure) => configure.Invoke(this); - - public IcuCollationPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? AlternateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? CaseFirstValue { get; set; } - private bool? CaseLevelValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private string? CountryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? DecompositionValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private bool? HiraganaQuaternaryModeValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private string? LanguageValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private string? NullValueValue { get; set; } - private bool? NumericValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? RulesValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? StrengthValue { get; set; } - private string? VariableTopValue { get; set; } - private string? VariantValue { get; set; } - - public IcuCollationPropertyDescriptor Alternate(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationAlternate? alternate) - { - AlternateValue = alternate; - return Self; - } - - public IcuCollationPropertyDescriptor CaseFirst(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationCaseFirst? caseFirst) - { - CaseFirstValue = caseFirst; - return Self; - } - - public IcuCollationPropertyDescriptor CaseLevel(bool? caseLevel = true) - { - CaseLevelValue = caseLevel; - return Self; - } - - public IcuCollationPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IcuCollationPropertyDescriptor Country(string? country) - { - CountryValue = country; - return Self; - } - - public IcuCollationPropertyDescriptor Decomposition(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationDecomposition? decomposition) - { - DecompositionValue = decomposition; - return Self; - } - - public IcuCollationPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IcuCollationPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IcuCollationPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IcuCollationPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor HiraganaQuaternaryMode(bool? hiraganaQuaternaryMode = true) - { - HiraganaQuaternaryModeValue = hiraganaQuaternaryMode; - return Self; - } - - public IcuCollationPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Should the field be searchable? - /// - /// - public IcuCollationPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public IcuCollationPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public IcuCollationPropertyDescriptor Language(string? language) - { - LanguageValue = language; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IcuCollationPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IcuCollationPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - /// - /// - /// Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing. - /// - /// - public IcuCollationPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public IcuCollationPropertyDescriptor Numeric(bool? numeric = true) - { - NumericValue = numeric; - return Self; - } - - public IcuCollationPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IcuCollationPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IcuCollationPropertyDescriptor Rules(string? rules) - { - RulesValue = rules; - return Self; - } - - public IcuCollationPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public IcuCollationPropertyDescriptor Strength(Elastic.Clients.Elasticsearch.Serverless.Analysis.IcuCollationStrength? strength) - { - StrengthValue = strength; - return Self; - } - - public IcuCollationPropertyDescriptor VariableTop(string? variableTop) - { - VariableTopValue = variableTop; - return Self; - } - - public IcuCollationPropertyDescriptor Variant(string? variant) - { - VariantValue = variant; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlternateValue is not null) - { - writer.WritePropertyName("alternate"); - JsonSerializer.Serialize(writer, AlternateValue, options); - } - - if (CaseFirstValue is not null) - { - writer.WritePropertyName("case_first"); - JsonSerializer.Serialize(writer, CaseFirstValue, options); - } - - if (CaseLevelValue.HasValue) - { - writer.WritePropertyName("case_level"); - writer.WriteBooleanValue(CaseLevelValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (!string.IsNullOrEmpty(CountryValue)) - { - writer.WritePropertyName("country"); - writer.WriteStringValue(CountryValue); - } - - if (DecompositionValue is not null) - { - writer.WritePropertyName("decomposition"); - JsonSerializer.Serialize(writer, DecompositionValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (HiraganaQuaternaryModeValue.HasValue) - { - writer.WritePropertyName("hiragana_quaternary_mode"); - writer.WriteBooleanValue(HiraganaQuaternaryModeValue.Value); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (!string.IsNullOrEmpty(LanguageValue)) - { - writer.WritePropertyName("language"); - writer.WriteStringValue(LanguageValue); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (NumericValue.HasValue) - { - writer.WritePropertyName("numeric"); - writer.WriteBooleanValue(NumericValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(RulesValue)) - { - writer.WritePropertyName("rules"); - writer.WriteStringValue(RulesValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (StrengthValue is not null) - { - writer.WritePropertyName("strength"); - JsonSerializer.Serialize(writer, StrengthValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("icu_collation_keyword"); - if (!string.IsNullOrEmpty(VariableTopValue)) - { - writer.WritePropertyName("variable_top"); - writer.WriteStringValue(VariableTopValue); - } - - if (!string.IsNullOrEmpty(VariantValue)) - { - writer.WritePropertyName("variant"); - writer.WriteStringValue(VariantValue); - } - - writer.WriteEndObject(); - } - - IcuCollationProperty IBuildableDescriptor.Build() => new() - { - Alternate = AlternateValue, - CaseFirst = CaseFirstValue, - CaseLevel = CaseLevelValue, - CopyTo = CopyToValue, - Country = CountryValue, - Decomposition = DecompositionValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - HiraganaQuaternaryMode = HiraganaQuaternaryModeValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - Language = LanguageValue, - Meta = MetaValue, - Norms = NormsValue, - NullValue = NullValueValue, - Numeric = NumericValue, - Properties = PropertiesValue, - Rules = RulesValue, - Store = StoreValue, - Strength = StrengthValue, - VariableTop = VariableTopValue, - Variant = VariantValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IndexField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IndexField.g.cs deleted file mode 100644 index 1761195b7f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IndexField.g.cs +++ /dev/null @@ -1,59 +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.Mapping; - -public sealed partial class IndexField -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } -} - -public sealed partial class IndexFieldDescriptor : SerializableDescriptor -{ - internal IndexFieldDescriptor(Action configure) => configure.Invoke(this); - - public IndexFieldDescriptor() : base() - { - } - - private bool EnabledValue { get; set; } - - public IndexFieldDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 508c776da51..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class IntegerNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public int? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "integer"; -} - -public sealed partial class IntegerNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal IntegerNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public IntegerNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private int? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public IntegerNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IntegerNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public IntegerNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IntegerNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IntegerNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IntegerNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IntegerNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IntegerNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public IntegerNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IntegerNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IntegerNumberPropertyDescriptor NullValue(int? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public IntegerNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public IntegerNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IntegerNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("integer"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class IntegerNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IntegerNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public IntegerNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private int? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public IntegerNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IntegerNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public IntegerNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IntegerNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IntegerNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IntegerNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IntegerNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IntegerNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public IntegerNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IntegerNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IntegerNumberPropertyDescriptor NullValue(int? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public IntegerNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public IntegerNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IntegerNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("integer"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerRangeProperty.g.cs deleted file mode 100644 index 3f5480fa605..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IntegerRangeProperty.g.cs +++ /dev/null @@ -1,482 +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.Mapping; - -public sealed partial class IntegerRangeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "integer_range"; -} - -public sealed partial class IntegerRangePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal IntegerRangePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public IntegerRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public IntegerRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IntegerRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public IntegerRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IntegerRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IntegerRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IntegerRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IntegerRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IntegerRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IntegerRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IntegerRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IntegerRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("integer_range"); - writer.WriteEndObject(); - } - - IntegerRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class IntegerRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IntegerRangePropertyDescriptor(Action configure) => configure.Invoke(this); - - public IntegerRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public IntegerRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IntegerRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public IntegerRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IntegerRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IntegerRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IntegerRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IntegerRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IntegerRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IntegerRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IntegerRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IntegerRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IntegerRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("integer_range"); - writer.WriteEndObject(); - } - - IntegerRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index adffb9e4746..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpProperty.g.cs +++ /dev/null @@ -1,680 +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.Mapping; - -public sealed partial class IpProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public string? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "ip"; -} - -public sealed partial class IpPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal IpPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public IpPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public IpPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IpPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IpPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IpPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IpPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IpPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IpPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public IpPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IpPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IpPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public IpPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public IpPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IpPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("ip"); - 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, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class IpPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IpPropertyDescriptor(Action configure) => configure.Invoke(this); - - public IpPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public IpPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IpPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IpPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IpPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IpPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IpPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IpPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public IpPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IpPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IpPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public IpPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public IpPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IpPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("ip"); - 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, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpRangeProperty.g.cs deleted file mode 100644 index e8bb6651899..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/IpRangeProperty.g.cs +++ /dev/null @@ -1,482 +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.Mapping; - -public sealed partial class IpRangeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "ip_range"; -} - -public sealed partial class IpRangePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal IpRangePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public IpRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public IpRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IpRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public IpRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IpRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IpRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IpRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IpRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IpRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IpRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IpRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IpRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("ip_range"); - writer.WriteEndObject(); - } - - IpRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class IpRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal IpRangePropertyDescriptor(Action configure) => configure.Invoke(this); - - public IpRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public IpRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public IpRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public IpRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public IpRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public IpRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public IpRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public IpRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public IpRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public IpRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public IpRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public IpRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public IpRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("ip_range"); - writer.WriteEndObject(); - } - - IpRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/JoinProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/JoinProperty.g.cs deleted file mode 100644 index 55736e7eda3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/JoinProperty.g.cs +++ /dev/null @@ -1,361 +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.Mapping; - -public sealed partial class JoinProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("eager_global_ordinals")] - public bool? EagerGlobalOrdinals { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("relations")] - public IDictionary>>? Relations { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "join"; -} - -public sealed partial class JoinPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal JoinPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public JoinPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private IDictionary>>? RelationsValue { get; set; } - - public JoinPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public JoinPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public JoinPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public JoinPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public JoinPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public JoinPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public JoinPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor Relations(Func>>, FluentDictionary>>> selector) - { - RelationsValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RelationsValue is not null) - { - writer.WritePropertyName("relations"); - JsonSerializer.Serialize(writer, RelationsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("join"); - writer.WriteEndObject(); - } - - JoinProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Relations = RelationsValue - }; -} - -public sealed partial class JoinPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal JoinPropertyDescriptor(Action configure) => configure.Invoke(this); - - public JoinPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private IDictionary>>? RelationsValue { get; set; } - - public JoinPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public JoinPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public JoinPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public JoinPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public JoinPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public JoinPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public JoinPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public JoinPropertyDescriptor Relations(Func>>, FluentDictionary>>> selector) - { - RelationsValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RelationsValue is not null) - { - writer.WritePropertyName("relations"); - JsonSerializer.Serialize(writer, RelationsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("join"); - writer.WriteEndObject(); - } - - JoinProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Relations = RelationsValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index 2d120c42c28..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/KeywordProperty.g.cs +++ /dev/null @@ -1,830 +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.Mapping; - -public sealed partial class KeywordProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("eager_global_ordinals")] - public bool? EagerGlobalOrdinals { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptions { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("normalizer")] - public string? Normalizer { get; set; } - [JsonInclude, JsonPropertyName("norms")] - public bool? Norms { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public string? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } - [JsonInclude, JsonPropertyName("split_queries_on_whitespace")] - public bool? SplitQueriesOnWhitespace { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "keyword"; -} - -public sealed partial class KeywordPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal KeywordPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public KeywordPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NormalizerValue { get; set; } - private bool? NormsValue { get; set; } - private string? NullValueValue { get; set; } - 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; } - - public KeywordPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public KeywordPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public KeywordPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public KeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public KeywordPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public KeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public KeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public KeywordPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public KeywordPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public KeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public KeywordPropertyDescriptor Normalizer(string? normalizer) - { - NormalizerValue = normalizer; - return Self; - } - - public KeywordPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public KeywordPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public KeywordPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public KeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public KeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor 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; - return Self; - } - - public KeywordPropertyDescriptor SplitQueriesOnWhitespace(bool? splitQueriesOnWhitespace = true) - { - SplitQueriesOnWhitespaceValue = splitQueriesOnWhitespace; - return Self; - } - - public KeywordPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NormalizerValue)) - { - writer.WritePropertyName("normalizer"); - writer.WriteStringValue(NormalizerValue); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (SplitQueriesOnWhitespaceValue.HasValue) - { - writer.WritePropertyName("split_queries_on_whitespace"); - writer.WriteBooleanValue(SplitQueriesOnWhitespaceValue.Value); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("keyword"); - 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, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - Meta = MetaValue, - Normalizer = NormalizerValue, - Norms = NormsValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Similarity = SimilarityValue, - SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, - Store = StoreValue - }; -} - -public sealed partial class KeywordPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal KeywordPropertyDescriptor(Action configure) => configure.Invoke(this); - - public KeywordPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NormalizerValue { get; set; } - private bool? NormsValue { get; set; } - private string? NullValueValue { get; set; } - 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; } - - public KeywordPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public KeywordPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public KeywordPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public KeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public KeywordPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public KeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public KeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public KeywordPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public KeywordPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public KeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public KeywordPropertyDescriptor Normalizer(string? normalizer) - { - NormalizerValue = normalizer; - return Self; - } - - public KeywordPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public KeywordPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public KeywordPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public KeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public KeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public KeywordPropertyDescriptor 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; - return Self; - } - - public KeywordPropertyDescriptor SplitQueriesOnWhitespace(bool? splitQueriesOnWhitespace = true) - { - SplitQueriesOnWhitespaceValue = splitQueriesOnWhitespace; - return Self; - } - - public KeywordPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NormalizerValue)) - { - writer.WritePropertyName("normalizer"); - writer.WriteStringValue(NormalizerValue); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (SplitQueriesOnWhitespaceValue.HasValue) - { - writer.WritePropertyName("split_queries_on_whitespace"); - writer.WriteBooleanValue(SplitQueriesOnWhitespaceValue.Value); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("keyword"); - 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, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - Meta = MetaValue, - Normalizer = NormalizerValue, - Norms = NormsValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Similarity = SimilarityValue, - SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, - Store = StoreValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index b96b7870eef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class LongNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public long? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "long"; -} - -public sealed partial class LongNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal LongNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public LongNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public LongNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public LongNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public LongNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public LongNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public LongNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public LongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public LongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public LongNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public LongNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public LongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public LongNumberPropertyDescriptor NullValue(long? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public LongNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public LongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public LongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("long"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class LongNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LongNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public LongNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public LongNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public LongNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public LongNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public LongNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public LongNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public LongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public LongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public LongNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public LongNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public LongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public LongNumberPropertyDescriptor NullValue(long? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public LongNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public LongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public LongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("long"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongRangeProperty.g.cs deleted file mode 100644 index 8237b58c9eb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/LongRangeProperty.g.cs +++ /dev/null @@ -1,482 +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.Mapping; - -public sealed partial class LongRangeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "long_range"; -} - -public sealed partial class LongRangePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal LongRangePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public LongRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public LongRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public LongRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public LongRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public LongRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public LongRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public LongRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public LongRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public LongRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public LongRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public LongRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public LongRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("long_range"); - writer.WriteEndObject(); - } - - LongRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class LongRangePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LongRangePropertyDescriptor(Action configure) => configure.Invoke(this); - - public LongRangePropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public LongRangePropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public LongRangePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public LongRangePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public LongRangePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public LongRangePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public LongRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public LongRangePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public LongRangePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public LongRangePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public LongRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public LongRangePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public LongRangePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("long_range"); - writer.WriteEndObject(); - } - - LongRangeProperty IBuildableDescriptor.Build() => new() - { - Boost = BoostValue, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs deleted file mode 100644 index 25409117667..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/MatchOnlyTextProperty.g.cs +++ /dev/null @@ -1,278 +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.Mapping; - -/// -/// -/// A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field -/// effectively stores data the same way as a text field that only indexes documents (index_options: docs) and -/// disables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries -/// that need positions such as the match_phrase query perform slower as they need to look at the _source document -/// to verify whether a phrase matches. All queries return constant scores that are equal to 1.0. -/// -/// -public sealed partial class MatchOnlyTextProperty : IProperty -{ - /// - /// - /// Allows you to copy the values of multiple fields into a group - /// field, which can then be queried as a single field. - /// - /// - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - - /// - /// - /// Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one - /// field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "match_only_text"; -} - -/// -/// -/// A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field -/// effectively stores data the same way as a text field that only indexes documents (index_options: docs) and -/// disables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries -/// that need positions such as the match_phrase query perform slower as they need to look at the _source document -/// to verify whether a phrase matches. All queries return constant scores that are equal to 1.0. -/// -/// -public sealed partial class MatchOnlyTextPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal MatchOnlyTextPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public MatchOnlyTextPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private IDictionary? MetaValue { get; set; } - - /// - /// - /// Allows you to copy the values of multiple fields into a group - /// field, which can then be queried as a single field. - /// - /// - public MatchOnlyTextPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - /// - /// - /// Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one - /// field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers. - /// - /// - public MatchOnlyTextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public MatchOnlyTextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public MatchOnlyTextPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public MatchOnlyTextPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("match_only_text"); - writer.WriteEndObject(); - } - - MatchOnlyTextProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Fields = FieldsValue, - Meta = MetaValue - }; -} - -/// -/// -/// A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field -/// effectively stores data the same way as a text field that only indexes documents (index_options: docs) and -/// disables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries -/// that need positions such as the match_phrase query perform slower as they need to look at the _source document -/// to verify whether a phrase matches. All queries return constant scores that are equal to 1.0. -/// -/// -public sealed partial class MatchOnlyTextPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal MatchOnlyTextPropertyDescriptor(Action configure) => configure.Invoke(this); - - public MatchOnlyTextPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private IDictionary? MetaValue { get; set; } - - /// - /// - /// Allows you to copy the values of multiple fields into a group - /// field, which can then be queried as a single field. - /// - /// - public MatchOnlyTextPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - /// - /// - /// Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one - /// field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers. - /// - /// - public MatchOnlyTextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public MatchOnlyTextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public MatchOnlyTextPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public MatchOnlyTextPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("match_only_text"); - writer.WriteEndObject(); - } - - MatchOnlyTextProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Fields = FieldsValue, - Meta = MetaValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Murmur3HashProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Murmur3HashProperty.g.cs deleted file mode 100644 index 5c7491fbe11..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Murmur3HashProperty.g.cs +++ /dev/null @@ -1,392 +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.Mapping; - -public sealed partial class Murmur3HashProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "murmur3"; -} - -public sealed partial class Murmur3HashPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal Murmur3HashPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public Murmur3HashPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public Murmur3HashPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public Murmur3HashPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public Murmur3HashPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public Murmur3HashPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public Murmur3HashPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public Murmur3HashPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public Murmur3HashPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("murmur3"); - writer.WriteEndObject(); - } - - Murmur3HashProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class Murmur3HashPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal Murmur3HashPropertyDescriptor(Action configure) => configure.Invoke(this); - - public Murmur3HashPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public Murmur3HashPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public Murmur3HashPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public Murmur3HashPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public Murmur3HashPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public Murmur3HashPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public Murmur3HashPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public Murmur3HashPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public Murmur3HashPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("murmur3"); - writer.WriteEndObject(); - } - - Murmur3HashProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/NestedProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/NestedProperty.g.cs deleted file mode 100644 index e632c686608..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/NestedProperty.g.cs +++ /dev/null @@ -1,452 +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.Mapping; - -public sealed partial class NestedProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("include_in_parent")] - public bool? IncludeInParent { get; set; } - [JsonInclude, JsonPropertyName("include_in_root")] - public bool? IncludeInRoot { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "nested"; -} - -public sealed partial class NestedPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal NestedPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public NestedPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IncludeInParentValue { get; set; } - private bool? IncludeInRootValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public NestedPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public NestedPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public NestedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public NestedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public NestedPropertyDescriptor IncludeInParent(bool? includeInParent = true) - { - IncludeInParentValue = includeInParent; - return Self; - } - - public NestedPropertyDescriptor IncludeInRoot(bool? includeInRoot = true) - { - IncludeInRootValue = includeInRoot; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public NestedPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public NestedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public NestedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IncludeInParentValue.HasValue) - { - writer.WritePropertyName("include_in_parent"); - writer.WriteBooleanValue(IncludeInParentValue.Value); - } - - if (IncludeInRootValue.HasValue) - { - writer.WritePropertyName("include_in_root"); - writer.WriteBooleanValue(IncludeInRootValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("nested"); - writer.WriteEndObject(); - } - - NestedProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IncludeInParent = IncludeInParentValue, - IncludeInRoot = IncludeInRootValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class NestedPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal NestedPropertyDescriptor(Action configure) => configure.Invoke(this); - - public NestedPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IncludeInParentValue { get; set; } - private bool? IncludeInRootValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public NestedPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public NestedPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public NestedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public NestedPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public NestedPropertyDescriptor IncludeInParent(bool? includeInParent = true) - { - IncludeInParentValue = includeInParent; - return Self; - } - - public NestedPropertyDescriptor IncludeInRoot(bool? includeInRoot = true) - { - IncludeInRootValue = includeInRoot; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public NestedPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public NestedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public NestedPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public NestedPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IncludeInParentValue.HasValue) - { - writer.WritePropertyName("include_in_parent"); - writer.WriteBooleanValue(IncludeInParentValue.Value); - } - - if (IncludeInRootValue.HasValue) - { - writer.WritePropertyName("include_in_root"); - writer.WriteBooleanValue(IncludeInRootValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("nested"); - writer.WriteEndObject(); - } - - NestedProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IncludeInParent = IncludeInParentValue, - IncludeInRoot = IncludeInRootValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ObjectProperty.g.cs deleted file mode 100644 index 39d02cbef85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ObjectProperty.g.cs +++ /dev/null @@ -1,422 +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.Mapping; - -public sealed partial class ObjectProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("subobjects")] - public bool? Subobjects { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "object"; -} - -public sealed partial class ObjectPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal ObjectPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public ObjectPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private bool? SubobjectsValue { get; set; } - - public ObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ObjectPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public ObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public ObjectPropertyDescriptor Subobjects(bool? subobjects = true) - { - SubobjectsValue = subobjects; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (SubobjectsValue.HasValue) - { - writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("object"); - writer.WriteEndObject(); - } - - ObjectProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue, - Subobjects = SubobjectsValue - }; -} - -public sealed partial class ObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ObjectPropertyDescriptor(Action configure) => configure.Invoke(this); - - public ObjectPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private bool? SubobjectsValue { get; set; } - - public ObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ObjectPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public ObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ObjectPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public ObjectPropertyDescriptor Subobjects(bool? subobjects = true) - { - SubobjectsValue = subobjects; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (SubobjectsValue.HasValue) - { - writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("object"); - writer.WriteEndObject(); - } - - ObjectProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue, - Subobjects = SubobjectsValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs deleted file mode 100644 index d7451d3544d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs +++ /dev/null @@ -1,452 +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.Mapping; - -public sealed partial class PassthroughObjectProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("priority")] - public int? Priority { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("time_series_dimension")] - public bool? TimeSeriesDimension { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "passthrough"; -} - -public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal PassthroughObjectPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public PassthroughObjectPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private int? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private bool? TimeSeriesDimensionValue { get; set; } - - public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PassthroughObjectPropertyDescriptor Priority(int? priority) - { - PriorityValue = priority; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) - { - TimeSeriesDimensionValue = timeSeriesDimension; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TimeSeriesDimensionValue.HasValue) - { - writer.WritePropertyName("time_series_dimension"); - writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("passthrough"); - writer.WriteEndObject(); - } - - PassthroughObjectProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Priority = PriorityValue, - Properties = PropertiesValue, - Store = StoreValue, - TimeSeriesDimension = TimeSeriesDimensionValue - }; -} - -public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PassthroughObjectPropertyDescriptor(Action configure) => configure.Invoke(this); - - public PassthroughObjectPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private int? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private bool? TimeSeriesDimensionValue { get; set; } - - public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PassthroughObjectPropertyDescriptor Priority(int? priority) - { - PriorityValue = priority; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) - { - TimeSeriesDimensionValue = timeSeriesDimension; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TimeSeriesDimensionValue.HasValue) - { - writer.WritePropertyName("time_series_dimension"); - writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("passthrough"); - writer.WriteEndObject(); - } - - PassthroughObjectProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Priority = PriorityValue, - Properties = PropertiesValue, - Store = StoreValue, - TimeSeriesDimension = TimeSeriesDimensionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PercolatorProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PercolatorProperty.g.cs deleted file mode 100644 index 444ced0fdfd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PercolatorProperty.g.cs +++ /dev/null @@ -1,301 +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.Mapping; - -public sealed partial class PercolatorProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "percolator"; -} - -public sealed partial class PercolatorPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal PercolatorPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public PercolatorPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public PercolatorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PercolatorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PercolatorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PercolatorPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PercolatorPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PercolatorPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PercolatorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PercolatorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PercolatorPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("percolator"); - writer.WriteEndObject(); - } - - PercolatorProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue - }; -} - -public sealed partial class PercolatorPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PercolatorPropertyDescriptor(Action configure) => configure.Invoke(this); - - public PercolatorPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public PercolatorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PercolatorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PercolatorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PercolatorPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PercolatorPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PercolatorPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PercolatorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PercolatorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PercolatorPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("percolator"); - writer.WriteEndObject(); - } - - PercolatorProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PointProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PointProperty.g.cs deleted file mode 100644 index 5dae9fbd8da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/PointProperty.g.cs +++ /dev/null @@ -1,482 +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.Mapping; - -public sealed partial class PointProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("ignore_z_value")] - public bool? IgnoreZValue { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public string? NullValue { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "point"; -} - -public sealed partial class PointPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal PointPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public PointPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public PointPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public PointPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public PointPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public PointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PointPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PointPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public PointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("point"); - writer.WriteEndObject(); - } - - PointProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class PointPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PointPropertyDescriptor(Action configure) => configure.Invoke(this); - - public PointPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public PointPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public PointPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PointPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public PointPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public PointPropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PointPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PointPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public PointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PointPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PointPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("point"); - writer.WriteEndObject(); - } - - PointProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs deleted file mode 100644 index 1b9d4985eae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/Properties.g.cs +++ /dev/null @@ -1,612 +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.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.Mapping; - -public partial class Properties : IsADictionary -{ - public Properties() - { - } - - public Properties(IDictionary container) : base(container) - { - } - - public void Add(Elastic.Clients.Elasticsearch.Serverless.PropertyName name, IProperty property) => BackingDictionary.Add(Sanitize(name), property); - public bool TryGetProperty(Elastic.Clients.Elasticsearch.Serverless.PropertyName name, [NotNullWhen(returnValue: true)] out IProperty property) => BackingDictionary.TryGetValue(Sanitize(name), out property); - - public bool TryGetProperty(Elastic.Clients.Elasticsearch.Serverless.PropertyName name, [NotNullWhen(returnValue: true)] out T? property) where T : class, IProperty - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - property = finalValue; - return true; - } - - property = null; - return false; - } -} - -public sealed partial class PropertiesDescriptor : IsADictionaryDescriptor, Properties, Elastic.Clients.Elasticsearch.Serverless.PropertyName, IProperty> -{ - public PropertiesDescriptor() : base(new Properties()) - { - } - - public PropertiesDescriptor(Properties properties) : base(properties ?? new Properties()) - { - } - - public PropertiesDescriptor AggregateMetricDouble(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, AggregateMetricDoubleProperty>(propertyName, null); - public PropertiesDescriptor AggregateMetricDouble(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, AggregateMetricDoubleProperty>(propertyName, configure); - public PropertiesDescriptor AggregateMetricDouble(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, AggregateMetricDoubleProperty aggregateMetricDoubleProperty) => AssignVariant(propertyName, aggregateMetricDoubleProperty); - public PropertiesDescriptor AggregateMetricDouble(Expression> propertyName) => AssignVariant, AggregateMetricDoubleProperty>(propertyName, null); - public PropertiesDescriptor AggregateMetricDouble(Expression> propertyName, Action> configure) => AssignVariant, AggregateMetricDoubleProperty>(propertyName, configure); - public PropertiesDescriptor Binary(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, BinaryProperty>(propertyName, null); - public PropertiesDescriptor Binary(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, BinaryProperty>(propertyName, configure); - public PropertiesDescriptor Binary(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, BinaryProperty binaryProperty) => AssignVariant(propertyName, binaryProperty); - public PropertiesDescriptor Binary(Expression> propertyName) => AssignVariant, BinaryProperty>(propertyName, null); - public PropertiesDescriptor Binary(Expression> propertyName, Action> configure) => AssignVariant, BinaryProperty>(propertyName, configure); - public PropertiesDescriptor Boolean(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, BooleanProperty>(propertyName, null); - public PropertiesDescriptor Boolean(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, BooleanProperty>(propertyName, configure); - public PropertiesDescriptor Boolean(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, BooleanProperty booleanProperty) => AssignVariant(propertyName, booleanProperty); - public PropertiesDescriptor Boolean(Expression> propertyName) => AssignVariant, BooleanProperty>(propertyName, null); - public PropertiesDescriptor Boolean(Expression> propertyName, Action> configure) => AssignVariant, BooleanProperty>(propertyName, configure); - public PropertiesDescriptor ByteNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, ByteNumberProperty>(propertyName, null); - public PropertiesDescriptor ByteNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, ByteNumberProperty>(propertyName, configure); - public PropertiesDescriptor ByteNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ByteNumberProperty byteNumberProperty) => AssignVariant(propertyName, byteNumberProperty); - public PropertiesDescriptor ByteNumber(Expression> propertyName) => AssignVariant, ByteNumberProperty>(propertyName, null); - public PropertiesDescriptor ByteNumber(Expression> propertyName, Action> configure) => AssignVariant, ByteNumberProperty>(propertyName, configure); - public PropertiesDescriptor Completion(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, CompletionProperty>(propertyName, null); - public PropertiesDescriptor Completion(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, CompletionProperty>(propertyName, configure); - public PropertiesDescriptor Completion(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, CompletionProperty completionProperty) => AssignVariant(propertyName, completionProperty); - public PropertiesDescriptor Completion(Expression> propertyName) => AssignVariant, CompletionProperty>(propertyName, null); - public PropertiesDescriptor Completion(Expression> propertyName, Action> configure) => AssignVariant, CompletionProperty>(propertyName, configure); - public PropertiesDescriptor ConstantKeyword(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, ConstantKeywordProperty>(propertyName, null); - public PropertiesDescriptor ConstantKeyword(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, ConstantKeywordProperty>(propertyName, configure); - public PropertiesDescriptor ConstantKeyword(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ConstantKeywordProperty constantKeywordProperty) => AssignVariant(propertyName, constantKeywordProperty); - public PropertiesDescriptor ConstantKeyword(Expression> propertyName) => AssignVariant, ConstantKeywordProperty>(propertyName, null); - public PropertiesDescriptor ConstantKeyword(Expression> propertyName, Action> configure) => AssignVariant, ConstantKeywordProperty>(propertyName, configure); - public PropertiesDescriptor DateNanos(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DateNanosProperty>(propertyName, null); - public PropertiesDescriptor DateNanos(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DateNanosProperty>(propertyName, configure); - public PropertiesDescriptor DateNanos(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DateNanosProperty dateNanosProperty) => AssignVariant(propertyName, dateNanosProperty); - public PropertiesDescriptor DateNanos(Expression> propertyName) => AssignVariant, DateNanosProperty>(propertyName, null); - public PropertiesDescriptor DateNanos(Expression> propertyName, Action> configure) => AssignVariant, DateNanosProperty>(propertyName, configure); - public PropertiesDescriptor Date(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DateProperty>(propertyName, null); - public PropertiesDescriptor Date(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DateProperty>(propertyName, configure); - public PropertiesDescriptor Date(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DateProperty dateProperty) => AssignVariant(propertyName, dateProperty); - public PropertiesDescriptor Date(Expression> propertyName) => AssignVariant, DateProperty>(propertyName, null); - public PropertiesDescriptor Date(Expression> propertyName, Action> configure) => AssignVariant, DateProperty>(propertyName, configure); - public PropertiesDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DateRangeProperty>(propertyName, null); - public PropertiesDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DateRangeProperty>(propertyName, configure); - public PropertiesDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DateRangeProperty dateRangeProperty) => AssignVariant(propertyName, dateRangeProperty); - public PropertiesDescriptor DateRange(Expression> propertyName) => AssignVariant, DateRangeProperty>(propertyName, null); - public PropertiesDescriptor DateRange(Expression> propertyName, Action> configure) => AssignVariant, DateRangeProperty>(propertyName, configure); - public PropertiesDescriptor DenseVector(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DenseVectorProperty>(propertyName, null); - public PropertiesDescriptor DenseVector(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DenseVectorProperty>(propertyName, configure); - public PropertiesDescriptor DenseVector(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DenseVectorProperty denseVectorProperty) => AssignVariant(propertyName, denseVectorProperty); - public PropertiesDescriptor DenseVector(Expression> propertyName) => AssignVariant, DenseVectorProperty>(propertyName, null); - public PropertiesDescriptor DenseVector(Expression> propertyName, Action> configure) => AssignVariant, DenseVectorProperty>(propertyName, configure); - public PropertiesDescriptor DoubleNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DoubleNumberProperty>(propertyName, null); - public PropertiesDescriptor DoubleNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DoubleNumberProperty>(propertyName, configure); - public PropertiesDescriptor DoubleNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DoubleNumberProperty doubleNumberProperty) => AssignVariant(propertyName, doubleNumberProperty); - public PropertiesDescriptor DoubleNumber(Expression> propertyName) => AssignVariant, DoubleNumberProperty>(propertyName, null); - public PropertiesDescriptor DoubleNumber(Expression> propertyName, Action> configure) => AssignVariant, DoubleNumberProperty>(propertyName, configure); - public PropertiesDescriptor DoubleRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DoubleRangeProperty>(propertyName, null); - public PropertiesDescriptor DoubleRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DoubleRangeProperty>(propertyName, configure); - public PropertiesDescriptor DoubleRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DoubleRangeProperty doubleRangeProperty) => AssignVariant(propertyName, doubleRangeProperty); - public PropertiesDescriptor DoubleRange(Expression> propertyName) => AssignVariant, DoubleRangeProperty>(propertyName, null); - public PropertiesDescriptor DoubleRange(Expression> propertyName, Action> configure) => AssignVariant, DoubleRangeProperty>(propertyName, configure); - public PropertiesDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, DynamicProperty>(propertyName, null); - public PropertiesDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, DynamicProperty>(propertyName, configure); - public PropertiesDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, DynamicProperty dynamicProperty) => AssignVariant(propertyName, dynamicProperty); - public PropertiesDescriptor Dynamic(Expression> propertyName) => AssignVariant, DynamicProperty>(propertyName, null); - public PropertiesDescriptor Dynamic(Expression> propertyName, Action> configure) => AssignVariant, DynamicProperty>(propertyName, configure); - public PropertiesDescriptor FieldAlias(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, FieldAliasProperty>(propertyName, null); - public PropertiesDescriptor FieldAlias(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, FieldAliasProperty>(propertyName, configure); - public PropertiesDescriptor FieldAlias(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, FieldAliasProperty fieldAliasProperty) => AssignVariant(propertyName, fieldAliasProperty); - public PropertiesDescriptor FieldAlias(Expression> propertyName) => AssignVariant, FieldAliasProperty>(propertyName, null); - public PropertiesDescriptor FieldAlias(Expression> propertyName, Action> configure) => AssignVariant, FieldAliasProperty>(propertyName, configure); - public PropertiesDescriptor Flattened(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, FlattenedProperty>(propertyName, null); - public PropertiesDescriptor Flattened(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, FlattenedProperty>(propertyName, configure); - public PropertiesDescriptor Flattened(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, FlattenedProperty flattenedProperty) => AssignVariant(propertyName, flattenedProperty); - public PropertiesDescriptor Flattened(Expression> propertyName) => AssignVariant, FlattenedProperty>(propertyName, null); - public PropertiesDescriptor Flattened(Expression> propertyName, Action> configure) => AssignVariant, FlattenedProperty>(propertyName, configure); - public PropertiesDescriptor FloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, FloatNumberProperty>(propertyName, null); - public PropertiesDescriptor FloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, FloatNumberProperty>(propertyName, configure); - public PropertiesDescriptor FloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, FloatNumberProperty floatNumberProperty) => AssignVariant(propertyName, floatNumberProperty); - public PropertiesDescriptor FloatNumber(Expression> propertyName) => AssignVariant, FloatNumberProperty>(propertyName, null); - public PropertiesDescriptor FloatNumber(Expression> propertyName, Action> configure) => AssignVariant, FloatNumberProperty>(propertyName, configure); - public PropertiesDescriptor FloatRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, FloatRangeProperty>(propertyName, null); - public PropertiesDescriptor FloatRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, FloatRangeProperty>(propertyName, configure); - public PropertiesDescriptor FloatRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, FloatRangeProperty floatRangeProperty) => AssignVariant(propertyName, floatRangeProperty); - public PropertiesDescriptor FloatRange(Expression> propertyName) => AssignVariant, FloatRangeProperty>(propertyName, null); - public PropertiesDescriptor FloatRange(Expression> propertyName, Action> configure) => AssignVariant, FloatRangeProperty>(propertyName, configure); - public PropertiesDescriptor GeoPoint(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, GeoPointProperty>(propertyName, null); - public PropertiesDescriptor GeoPoint(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, GeoPointProperty>(propertyName, configure); - public PropertiesDescriptor GeoPoint(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, GeoPointProperty geoPointProperty) => AssignVariant(propertyName, geoPointProperty); - public PropertiesDescriptor GeoPoint(Expression> propertyName) => AssignVariant, GeoPointProperty>(propertyName, null); - public PropertiesDescriptor GeoPoint(Expression> propertyName, Action> configure) => AssignVariant, GeoPointProperty>(propertyName, configure); - public PropertiesDescriptor GeoShape(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, GeoShapeProperty>(propertyName, null); - public PropertiesDescriptor GeoShape(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, GeoShapeProperty>(propertyName, configure); - public PropertiesDescriptor GeoShape(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, GeoShapeProperty geoShapeProperty) => AssignVariant(propertyName, geoShapeProperty); - public PropertiesDescriptor GeoShape(Expression> propertyName) => AssignVariant, GeoShapeProperty>(propertyName, null); - public PropertiesDescriptor GeoShape(Expression> propertyName, Action> configure) => AssignVariant, GeoShapeProperty>(propertyName, configure); - public PropertiesDescriptor HalfFloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, HalfFloatNumberProperty>(propertyName, null); - public PropertiesDescriptor HalfFloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, HalfFloatNumberProperty>(propertyName, configure); - public PropertiesDescriptor HalfFloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, HalfFloatNumberProperty halfFloatNumberProperty) => AssignVariant(propertyName, halfFloatNumberProperty); - public PropertiesDescriptor HalfFloatNumber(Expression> propertyName) => AssignVariant, HalfFloatNumberProperty>(propertyName, null); - public PropertiesDescriptor HalfFloatNumber(Expression> propertyName, Action> configure) => AssignVariant, HalfFloatNumberProperty>(propertyName, configure); - public PropertiesDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, HistogramProperty>(propertyName, null); - public PropertiesDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, HistogramProperty>(propertyName, configure); - public PropertiesDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, HistogramProperty histogramProperty) => AssignVariant(propertyName, histogramProperty); - public PropertiesDescriptor Histogram(Expression> propertyName) => AssignVariant, HistogramProperty>(propertyName, null); - public PropertiesDescriptor Histogram(Expression> propertyName, Action> configure) => AssignVariant, HistogramProperty>(propertyName, configure); - public PropertiesDescriptor IcuCollation(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, IcuCollationProperty>(propertyName, null); - public PropertiesDescriptor IcuCollation(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, IcuCollationProperty>(propertyName, configure); - public PropertiesDescriptor IcuCollation(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, IcuCollationProperty icuCollationProperty) => AssignVariant(propertyName, icuCollationProperty); - public PropertiesDescriptor IcuCollation(Expression> propertyName) => AssignVariant, IcuCollationProperty>(propertyName, null); - public PropertiesDescriptor IcuCollation(Expression> propertyName, Action> configure) => AssignVariant, IcuCollationProperty>(propertyName, configure); - public PropertiesDescriptor IntegerNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, IntegerNumberProperty>(propertyName, null); - public PropertiesDescriptor IntegerNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, IntegerNumberProperty>(propertyName, configure); - public PropertiesDescriptor IntegerNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, IntegerNumberProperty integerNumberProperty) => AssignVariant(propertyName, integerNumberProperty); - public PropertiesDescriptor IntegerNumber(Expression> propertyName) => AssignVariant, IntegerNumberProperty>(propertyName, null); - public PropertiesDescriptor IntegerNumber(Expression> propertyName, Action> configure) => AssignVariant, IntegerNumberProperty>(propertyName, configure); - public PropertiesDescriptor IntegerRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, IntegerRangeProperty>(propertyName, null); - public PropertiesDescriptor IntegerRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, IntegerRangeProperty>(propertyName, configure); - public PropertiesDescriptor IntegerRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, IntegerRangeProperty integerRangeProperty) => AssignVariant(propertyName, integerRangeProperty); - public PropertiesDescriptor IntegerRange(Expression> propertyName) => AssignVariant, IntegerRangeProperty>(propertyName, null); - public PropertiesDescriptor IntegerRange(Expression> propertyName, Action> configure) => AssignVariant, IntegerRangeProperty>(propertyName, configure); - public PropertiesDescriptor Ip(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, IpProperty>(propertyName, null); - public PropertiesDescriptor Ip(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, IpProperty>(propertyName, configure); - public PropertiesDescriptor Ip(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, IpProperty ipProperty) => AssignVariant(propertyName, ipProperty); - public PropertiesDescriptor Ip(Expression> propertyName) => AssignVariant, IpProperty>(propertyName, null); - public PropertiesDescriptor Ip(Expression> propertyName, Action> configure) => AssignVariant, IpProperty>(propertyName, configure); - public PropertiesDescriptor IpRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, IpRangeProperty>(propertyName, null); - public PropertiesDescriptor IpRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, IpRangeProperty>(propertyName, configure); - public PropertiesDescriptor IpRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, IpRangeProperty ipRangeProperty) => AssignVariant(propertyName, ipRangeProperty); - public PropertiesDescriptor IpRange(Expression> propertyName) => AssignVariant, IpRangeProperty>(propertyName, null); - public PropertiesDescriptor IpRange(Expression> propertyName, Action> configure) => AssignVariant, IpRangeProperty>(propertyName, configure); - public PropertiesDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, JoinProperty>(propertyName, null); - public PropertiesDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, JoinProperty>(propertyName, configure); - public PropertiesDescriptor Join(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, JoinProperty joinProperty) => AssignVariant(propertyName, joinProperty); - public PropertiesDescriptor Join(Expression> propertyName) => AssignVariant, JoinProperty>(propertyName, null); - public PropertiesDescriptor Join(Expression> propertyName, Action> configure) => AssignVariant, JoinProperty>(propertyName, configure); - public PropertiesDescriptor Keyword(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, KeywordProperty>(propertyName, null); - public PropertiesDescriptor Keyword(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, KeywordProperty>(propertyName, configure); - public PropertiesDescriptor Keyword(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, KeywordProperty keywordProperty) => AssignVariant(propertyName, keywordProperty); - public PropertiesDescriptor Keyword(Expression> propertyName) => AssignVariant, KeywordProperty>(propertyName, null); - public PropertiesDescriptor Keyword(Expression> propertyName, Action> configure) => AssignVariant, KeywordProperty>(propertyName, configure); - public PropertiesDescriptor LongNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, LongNumberProperty>(propertyName, null); - public PropertiesDescriptor LongNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, LongNumberProperty>(propertyName, configure); - public PropertiesDescriptor LongNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, LongNumberProperty longNumberProperty) => AssignVariant(propertyName, longNumberProperty); - public PropertiesDescriptor LongNumber(Expression> propertyName) => AssignVariant, LongNumberProperty>(propertyName, null); - public PropertiesDescriptor LongNumber(Expression> propertyName, Action> configure) => AssignVariant, LongNumberProperty>(propertyName, configure); - public PropertiesDescriptor LongRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, LongRangeProperty>(propertyName, null); - public PropertiesDescriptor LongRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, LongRangeProperty>(propertyName, configure); - public PropertiesDescriptor LongRange(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, LongRangeProperty longRangeProperty) => AssignVariant(propertyName, longRangeProperty); - public PropertiesDescriptor LongRange(Expression> propertyName) => AssignVariant, LongRangeProperty>(propertyName, null); - public PropertiesDescriptor LongRange(Expression> propertyName, Action> configure) => AssignVariant, LongRangeProperty>(propertyName, configure); - public PropertiesDescriptor MatchOnlyText(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, MatchOnlyTextProperty>(propertyName, null); - public PropertiesDescriptor MatchOnlyText(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, MatchOnlyTextProperty>(propertyName, configure); - public PropertiesDescriptor MatchOnlyText(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, MatchOnlyTextProperty matchOnlyTextProperty) => AssignVariant(propertyName, matchOnlyTextProperty); - public PropertiesDescriptor MatchOnlyText(Expression> propertyName) => AssignVariant, MatchOnlyTextProperty>(propertyName, null); - public PropertiesDescriptor MatchOnlyText(Expression> propertyName, Action> configure) => AssignVariant, MatchOnlyTextProperty>(propertyName, configure); - public PropertiesDescriptor Murmur3Hash(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, Murmur3HashProperty>(propertyName, null); - public PropertiesDescriptor Murmur3Hash(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, Murmur3HashProperty>(propertyName, configure); - public PropertiesDescriptor Murmur3Hash(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Murmur3HashProperty murmur3HashProperty) => AssignVariant(propertyName, murmur3HashProperty); - public PropertiesDescriptor Murmur3Hash(Expression> propertyName) => AssignVariant, Murmur3HashProperty>(propertyName, null); - public PropertiesDescriptor Murmur3Hash(Expression> propertyName, Action> configure) => AssignVariant, Murmur3HashProperty>(propertyName, configure); - public PropertiesDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, NestedProperty>(propertyName, null); - public PropertiesDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, NestedProperty>(propertyName, configure); - public PropertiesDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, NestedProperty nestedProperty) => AssignVariant(propertyName, nestedProperty); - public PropertiesDescriptor Nested(Expression> propertyName) => AssignVariant, NestedProperty>(propertyName, null); - public PropertiesDescriptor Nested(Expression> propertyName, Action> configure) => AssignVariant, NestedProperty>(propertyName, configure); - public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, ObjectProperty>(propertyName, null); - public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, ObjectProperty>(propertyName, configure); - public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ObjectProperty objectProperty) => AssignVariant(propertyName, objectProperty); - public PropertiesDescriptor Object(Expression> propertyName) => AssignVariant, ObjectProperty>(propertyName, null); - public PropertiesDescriptor Object(Expression> propertyName, Action> configure) => AssignVariant, ObjectProperty>(propertyName, configure); - public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); - public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); - public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, PassthroughObjectProperty passthroughObjectProperty) => AssignVariant(propertyName, passthroughObjectProperty); - public PropertiesDescriptor PassthroughObject(Expression> propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); - public PropertiesDescriptor PassthroughObject(Expression> propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); - public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, PercolatorProperty>(propertyName, null); - public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, PercolatorProperty>(propertyName, configure); - public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, PercolatorProperty percolatorProperty) => AssignVariant(propertyName, percolatorProperty); - public PropertiesDescriptor Percolator(Expression> propertyName) => AssignVariant, PercolatorProperty>(propertyName, null); - public PropertiesDescriptor Percolator(Expression> propertyName, Action> configure) => AssignVariant, PercolatorProperty>(propertyName, configure); - public PropertiesDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, PointProperty>(propertyName, null); - public PropertiesDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, PointProperty>(propertyName, configure); - public PropertiesDescriptor Point(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, PointProperty pointProperty) => AssignVariant(propertyName, pointProperty); - public PropertiesDescriptor Point(Expression> propertyName) => AssignVariant, PointProperty>(propertyName, null); - public PropertiesDescriptor Point(Expression> propertyName, Action> configure) => AssignVariant, PointProperty>(propertyName, configure); - public PropertiesDescriptor RankFeature(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, RankFeatureProperty>(propertyName, null); - public PropertiesDescriptor RankFeature(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, RankFeatureProperty>(propertyName, configure); - public PropertiesDescriptor RankFeature(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, RankFeatureProperty rankFeatureProperty) => AssignVariant(propertyName, rankFeatureProperty); - public PropertiesDescriptor RankFeature(Expression> propertyName) => AssignVariant, RankFeatureProperty>(propertyName, null); - public PropertiesDescriptor RankFeature(Expression> propertyName, Action> configure) => AssignVariant, RankFeatureProperty>(propertyName, configure); - public PropertiesDescriptor RankFeatures(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, RankFeaturesProperty>(propertyName, null); - public PropertiesDescriptor RankFeatures(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, RankFeaturesProperty>(propertyName, configure); - public PropertiesDescriptor RankFeatures(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, RankFeaturesProperty rankFeaturesProperty) => AssignVariant(propertyName, rankFeaturesProperty); - public PropertiesDescriptor RankFeatures(Expression> propertyName) => AssignVariant, RankFeaturesProperty>(propertyName, null); - public PropertiesDescriptor RankFeatures(Expression> propertyName, Action> configure) => AssignVariant, RankFeaturesProperty>(propertyName, configure); - public PropertiesDescriptor ScaledFloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, ScaledFloatNumberProperty>(propertyName, null); - public PropertiesDescriptor ScaledFloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, ScaledFloatNumberProperty>(propertyName, configure); - public PropertiesDescriptor ScaledFloatNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ScaledFloatNumberProperty scaledFloatNumberProperty) => AssignVariant(propertyName, scaledFloatNumberProperty); - public PropertiesDescriptor ScaledFloatNumber(Expression> propertyName) => AssignVariant, ScaledFloatNumberProperty>(propertyName, null); - public PropertiesDescriptor ScaledFloatNumber(Expression> propertyName, Action> configure) => AssignVariant, ScaledFloatNumberProperty>(propertyName, configure); - public PropertiesDescriptor SearchAsYouType(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, SearchAsYouTypeProperty>(propertyName, null); - public PropertiesDescriptor SearchAsYouType(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, SearchAsYouTypeProperty>(propertyName, configure); - public PropertiesDescriptor SearchAsYouType(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, SearchAsYouTypeProperty searchAsYouTypeProperty) => AssignVariant(propertyName, searchAsYouTypeProperty); - public PropertiesDescriptor SearchAsYouType(Expression> propertyName) => AssignVariant, SearchAsYouTypeProperty>(propertyName, null); - public PropertiesDescriptor SearchAsYouType(Expression> propertyName, Action> configure) => AssignVariant, SearchAsYouTypeProperty>(propertyName, configure); - public PropertiesDescriptor SemanticText(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant(propertyName, null); - public PropertiesDescriptor SemanticText(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action configure) => AssignVariant(propertyName, configure); - public PropertiesDescriptor SemanticText(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, SemanticTextProperty semanticTextProperty) => AssignVariant(propertyName, semanticTextProperty); - public PropertiesDescriptor SemanticText(Expression> propertyName) => AssignVariant(propertyName, null); - public PropertiesDescriptor SemanticText(Expression> propertyName, Action configure) => AssignVariant(propertyName, configure); - public PropertiesDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, ShapeProperty>(propertyName, null); - public PropertiesDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, ShapeProperty>(propertyName, configure); - public PropertiesDescriptor Shape(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ShapeProperty shapeProperty) => AssignVariant(propertyName, shapeProperty); - public PropertiesDescriptor Shape(Expression> propertyName) => AssignVariant, ShapeProperty>(propertyName, null); - public PropertiesDescriptor Shape(Expression> propertyName, Action> configure) => AssignVariant, ShapeProperty>(propertyName, configure); - public PropertiesDescriptor ShortNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, ShortNumberProperty>(propertyName, null); - public PropertiesDescriptor ShortNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, ShortNumberProperty>(propertyName, configure); - public PropertiesDescriptor ShortNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, ShortNumberProperty shortNumberProperty) => AssignVariant(propertyName, shortNumberProperty); - public PropertiesDescriptor ShortNumber(Expression> propertyName) => AssignVariant, ShortNumberProperty>(propertyName, null); - public PropertiesDescriptor ShortNumber(Expression> propertyName, Action> configure) => AssignVariant, ShortNumberProperty>(propertyName, configure); - public PropertiesDescriptor SparseVector(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, SparseVectorProperty>(propertyName, null); - public PropertiesDescriptor SparseVector(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, SparseVectorProperty>(propertyName, configure); - public PropertiesDescriptor SparseVector(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, SparseVectorProperty sparseVectorProperty) => AssignVariant(propertyName, sparseVectorProperty); - public PropertiesDescriptor SparseVector(Expression> propertyName) => AssignVariant, SparseVectorProperty>(propertyName, null); - public PropertiesDescriptor SparseVector(Expression> propertyName, Action> configure) => AssignVariant, SparseVectorProperty>(propertyName, configure); - public PropertiesDescriptor Text(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, TextProperty>(propertyName, null); - public PropertiesDescriptor Text(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, TextProperty>(propertyName, configure); - public PropertiesDescriptor Text(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, TextProperty textProperty) => AssignVariant(propertyName, textProperty); - public PropertiesDescriptor Text(Expression> propertyName) => AssignVariant, TextProperty>(propertyName, null); - public PropertiesDescriptor Text(Expression> propertyName, Action> configure) => AssignVariant, TextProperty>(propertyName, configure); - public PropertiesDescriptor TokenCount(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, TokenCountProperty>(propertyName, null); - public PropertiesDescriptor TokenCount(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, TokenCountProperty>(propertyName, configure); - public PropertiesDescriptor TokenCount(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, TokenCountProperty tokenCountProperty) => AssignVariant(propertyName, tokenCountProperty); - public PropertiesDescriptor TokenCount(Expression> propertyName) => AssignVariant, TokenCountProperty>(propertyName, null); - public PropertiesDescriptor TokenCount(Expression> propertyName, Action> configure) => AssignVariant, TokenCountProperty>(propertyName, configure); - public PropertiesDescriptor UnsignedLongNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, UnsignedLongNumberProperty>(propertyName, null); - public PropertiesDescriptor UnsignedLongNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, UnsignedLongNumberProperty>(propertyName, configure); - public PropertiesDescriptor UnsignedLongNumber(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, UnsignedLongNumberProperty unsignedLongNumberProperty) => AssignVariant(propertyName, unsignedLongNumberProperty); - public PropertiesDescriptor UnsignedLongNumber(Expression> propertyName) => AssignVariant, UnsignedLongNumberProperty>(propertyName, null); - public PropertiesDescriptor UnsignedLongNumber(Expression> propertyName, Action> configure) => AssignVariant, UnsignedLongNumberProperty>(propertyName, configure); - public PropertiesDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, VersionProperty>(propertyName, null); - public PropertiesDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, VersionProperty>(propertyName, configure); - public PropertiesDescriptor Version(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, VersionProperty versionProperty) => AssignVariant(propertyName, versionProperty); - public PropertiesDescriptor Version(Expression> propertyName) => AssignVariant, VersionProperty>(propertyName, null); - public PropertiesDescriptor Version(Expression> propertyName, Action> configure) => AssignVariant, VersionProperty>(propertyName, configure); - public PropertiesDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName) => AssignVariant, WildcardProperty>(propertyName, null); - public PropertiesDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, Action> configure) => AssignVariant, WildcardProperty>(propertyName, configure); - public PropertiesDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.PropertyName propertyName, WildcardProperty wildcardProperty) => AssignVariant(propertyName, wildcardProperty); - public PropertiesDescriptor Wildcard(Expression> propertyName) => AssignVariant, WildcardProperty>(propertyName, null); - public PropertiesDescriptor Wildcard(Expression> propertyName, Action> configure) => AssignVariant, WildcardProperty>(propertyName, configure); -} - -internal sealed partial class PropertyInterfaceConverter : JsonConverter -{ - public override IProperty Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "aggregate_metric_double": - return JsonSerializer.Deserialize(ref reader, options); - case "binary": - return JsonSerializer.Deserialize(ref reader, options); - case "boolean": - return JsonSerializer.Deserialize(ref reader, options); - case "byte": - return JsonSerializer.Deserialize(ref reader, options); - case "completion": - return JsonSerializer.Deserialize(ref reader, options); - case "constant_keyword": - return JsonSerializer.Deserialize(ref reader, options); - case "date_nanos": - return JsonSerializer.Deserialize(ref reader, options); - case "date": - return JsonSerializer.Deserialize(ref reader, options); - case "date_range": - return JsonSerializer.Deserialize(ref reader, options); - case "dense_vector": - return JsonSerializer.Deserialize(ref reader, options); - case "double": - return JsonSerializer.Deserialize(ref reader, options); - case "double_range": - return JsonSerializer.Deserialize(ref reader, options); - case "{dynamic_type}": - return JsonSerializer.Deserialize(ref reader, options); - case "alias": - return JsonSerializer.Deserialize(ref reader, options); - case "flattened": - return JsonSerializer.Deserialize(ref reader, options); - case "float": - return JsonSerializer.Deserialize(ref reader, options); - case "float_range": - return JsonSerializer.Deserialize(ref reader, options); - case "geo_point": - return JsonSerializer.Deserialize(ref reader, options); - case "geo_shape": - return JsonSerializer.Deserialize(ref reader, options); - case "half_float": - return JsonSerializer.Deserialize(ref reader, options); - case "histogram": - return JsonSerializer.Deserialize(ref reader, options); - case "icu_collation_keyword": - return JsonSerializer.Deserialize(ref reader, options); - case "integer": - return JsonSerializer.Deserialize(ref reader, options); - case "integer_range": - return JsonSerializer.Deserialize(ref reader, options); - case "ip": - return JsonSerializer.Deserialize(ref reader, options); - case "ip_range": - return JsonSerializer.Deserialize(ref reader, options); - case "join": - return JsonSerializer.Deserialize(ref reader, options); - case "keyword": - return JsonSerializer.Deserialize(ref reader, options); - case "long": - return JsonSerializer.Deserialize(ref reader, options); - case "long_range": - return JsonSerializer.Deserialize(ref reader, options); - case "match_only_text": - return JsonSerializer.Deserialize(ref reader, options); - case "murmur3": - return JsonSerializer.Deserialize(ref reader, options); - case "nested": - return JsonSerializer.Deserialize(ref reader, options); - case "object": - return JsonSerializer.Deserialize(ref reader, options); - case "passthrough": - return JsonSerializer.Deserialize(ref reader, options); - case "percolator": - return JsonSerializer.Deserialize(ref reader, options); - case "point": - return JsonSerializer.Deserialize(ref reader, options); - case "rank_feature": - return JsonSerializer.Deserialize(ref reader, options); - case "rank_features": - return JsonSerializer.Deserialize(ref reader, options); - case "scaled_float": - return JsonSerializer.Deserialize(ref reader, options); - case "search_as_you_type": - return JsonSerializer.Deserialize(ref reader, options); - case "semantic_text": - return JsonSerializer.Deserialize(ref reader, options); - case "shape": - return JsonSerializer.Deserialize(ref reader, options); - case "short": - return JsonSerializer.Deserialize(ref reader, options); - case "sparse_vector": - return JsonSerializer.Deserialize(ref reader, options); - case "text": - return JsonSerializer.Deserialize(ref reader, options); - case "token_count": - return JsonSerializer.Deserialize(ref reader, options); - case "unsigned_long": - return JsonSerializer.Deserialize(ref reader, options); - case "version": - return JsonSerializer.Deserialize(ref reader, options); - case "wildcard": - return JsonSerializer.Deserialize(ref reader, options); - default: - return JsonSerializer.Deserialize(ref reader, options); - } - } - - public override void Write(Utf8JsonWriter writer, IProperty value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "aggregate_metric_double": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.AggregateMetricDoubleProperty), options); - return; - case "binary": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.BinaryProperty), options); - return; - case "boolean": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.BooleanProperty), options); - return; - case "byte": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ByteNumberProperty), options); - return; - case "completion": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.CompletionProperty), options); - return; - case "constant_keyword": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ConstantKeywordProperty), options); - return; - case "date_nanos": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DateNanosProperty), options); - return; - case "date": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DateProperty), options); - return; - case "date_range": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DateRangeProperty), options); - return; - case "dense_vector": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DenseVectorProperty), options); - return; - case "double": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DoubleNumberProperty), options); - return; - case "double_range": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DoubleRangeProperty), options); - return; - case "{dynamic_type}": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicProperty), options); - return; - case "alias": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldAliasProperty), options); - return; - case "flattened": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.FlattenedProperty), options); - return; - case "float": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.FloatNumberProperty), options); - return; - case "float_range": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.FloatRangeProperty), options); - return; - case "geo_point": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoPointProperty), options); - return; - case "geo_shape": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoShapeProperty), options); - return; - case "half_float": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.HalfFloatNumberProperty), options); - return; - case "histogram": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.HistogramProperty), options); - return; - case "icu_collation_keyword": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.IcuCollationProperty), options); - return; - case "integer": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.IntegerNumberProperty), options); - return; - case "integer_range": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.IntegerRangeProperty), options); - return; - case "ip": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.IpProperty), options); - return; - case "ip_range": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.IpRangeProperty), options); - return; - case "join": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.JoinProperty), options); - return; - case "keyword": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.KeywordProperty), options); - return; - case "long": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.LongNumberProperty), options); - return; - case "long_range": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.LongRangeProperty), options); - return; - case "match_only_text": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.MatchOnlyTextProperty), options); - return; - case "murmur3": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.Murmur3HashProperty), options); - return; - case "nested": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.NestedProperty), options); - return; - case "object": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ObjectProperty), options); - return; - case "passthrough": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.PassthroughObjectProperty), options); - return; - case "percolator": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.PercolatorProperty), options); - return; - case "point": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.PointProperty), options); - return; - case "rank_feature": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.RankFeatureProperty), options); - return; - case "rank_features": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.RankFeaturesProperty), options); - return; - case "scaled_float": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ScaledFloatNumberProperty), options); - return; - case "search_as_you_type": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.SearchAsYouTypeProperty), options); - return; - case "semantic_text": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.SemanticTextProperty), options); - return; - case "shape": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ShapeProperty), options); - return; - case "short": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.ShortNumberProperty), options); - return; - case "sparse_vector": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.SparseVectorProperty), options); - return; - case "text": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextProperty), options); - return; - case "token_count": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.TokenCountProperty), options); - return; - case "unsigned_long": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.UnsignedLongNumberProperty), options); - return; - case "version": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.VersionProperty), options); - return; - case "wildcard": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Mapping.WildcardProperty), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(PropertyInterfaceConverter))] -public partial interface IProperty -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeatureProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeatureProperty.g.cs deleted file mode 100644 index 4e13126ae90..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeatureProperty.g.cs +++ /dev/null @@ -1,331 +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.Mapping; - -public sealed partial class RankFeatureProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("positive_score_impact")] - public bool? PositiveScoreImpact { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "rank_feature"; -} - -public sealed partial class RankFeaturePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal RankFeaturePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public RankFeaturePropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? PositiveScoreImpactValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public RankFeaturePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public RankFeaturePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public RankFeaturePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public RankFeaturePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RankFeaturePropertyDescriptor PositiveScoreImpact(bool? positiveScoreImpact = true) - { - PositiveScoreImpactValue = positiveScoreImpact; - return Self; - } - - public RankFeaturePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public RankFeaturePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PositiveScoreImpactValue.HasValue) - { - writer.WritePropertyName("positive_score_impact"); - writer.WriteBooleanValue(PositiveScoreImpactValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("rank_feature"); - writer.WriteEndObject(); - } - - RankFeatureProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - PositiveScoreImpact = PositiveScoreImpactValue, - Properties = PropertiesValue - }; -} - -public sealed partial class RankFeaturePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal RankFeaturePropertyDescriptor(Action configure) => configure.Invoke(this); - - public RankFeaturePropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? PositiveScoreImpactValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public RankFeaturePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public RankFeaturePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public RankFeaturePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public RankFeaturePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RankFeaturePropertyDescriptor PositiveScoreImpact(bool? positiveScoreImpact = true) - { - PositiveScoreImpactValue = positiveScoreImpact; - return Self; - } - - public RankFeaturePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public RankFeaturePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PositiveScoreImpactValue.HasValue) - { - writer.WritePropertyName("positive_score_impact"); - writer.WriteBooleanValue(PositiveScoreImpactValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("rank_feature"); - writer.WriteEndObject(); - } - - RankFeatureProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - PositiveScoreImpact = PositiveScoreImpactValue, - Properties = PropertiesValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeaturesProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeaturesProperty.g.cs deleted file mode 100644 index 55b90f3c44c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RankFeaturesProperty.g.cs +++ /dev/null @@ -1,331 +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.Mapping; - -public sealed partial class RankFeaturesProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("positive_score_impact")] - public bool? PositiveScoreImpact { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "rank_features"; -} - -public sealed partial class RankFeaturesPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal RankFeaturesPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public RankFeaturesPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? PositiveScoreImpactValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public RankFeaturesPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public RankFeaturesPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public RankFeaturesPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturesPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturesPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public RankFeaturesPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RankFeaturesPropertyDescriptor PositiveScoreImpact(bool? positiveScoreImpact = true) - { - PositiveScoreImpactValue = positiveScoreImpact; - return Self; - } - - public RankFeaturesPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public RankFeaturesPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturesPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PositiveScoreImpactValue.HasValue) - { - writer.WritePropertyName("positive_score_impact"); - writer.WriteBooleanValue(PositiveScoreImpactValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("rank_features"); - writer.WriteEndObject(); - } - - RankFeaturesProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - PositiveScoreImpact = PositiveScoreImpactValue, - Properties = PropertiesValue - }; -} - -public sealed partial class RankFeaturesPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal RankFeaturesPropertyDescriptor(Action configure) => configure.Invoke(this); - - public RankFeaturesPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? PositiveScoreImpactValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public RankFeaturesPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public RankFeaturesPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public RankFeaturesPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturesPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturesPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public RankFeaturesPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public RankFeaturesPropertyDescriptor PositiveScoreImpact(bool? positiveScoreImpact = true) - { - PositiveScoreImpactValue = positiveScoreImpact; - return Self; - } - - public RankFeaturesPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public RankFeaturesPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public RankFeaturesPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PositiveScoreImpactValue.HasValue) - { - writer.WritePropertyName("positive_score_impact"); - writer.WriteBooleanValue(PositiveScoreImpactValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("rank_features"); - writer.WriteEndObject(); - } - - RankFeaturesProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - PositiveScoreImpact = PositiveScoreImpactValue, - Properties = PropertiesValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RoutingField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RoutingField.g.cs deleted file mode 100644 index f83e863b71d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RoutingField.g.cs +++ /dev/null @@ -1,59 +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.Mapping; - -public sealed partial class RoutingField -{ - [JsonInclude, JsonPropertyName("required")] - public bool Required { get; set; } -} - -public sealed partial class RoutingFieldDescriptor : SerializableDescriptor -{ - internal RoutingFieldDescriptor(Action configure) => configure.Invoke(this); - - public RoutingFieldDescriptor() : base() - { - } - - private bool RequiredValue { get; set; } - - public RoutingFieldDescriptor Required(bool required = true) - { - RequiredValue = required; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("required"); - writer.WriteBooleanValue(RequiredValue); - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 369a886cd0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeField.g.cs +++ /dev/null @@ -1,671 +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.Mapping; - -public sealed partial class RuntimeField -{ - /// - /// - /// For type lookup - /// - /// - [JsonInclude, JsonPropertyName("fetch_fields")] - public ICollection? FetchFields { get; set; } - - /// - /// - /// For type composite - /// - /// - [JsonInclude, JsonPropertyName("fields")] - public IDictionary? Fields { get; set; } - - /// - /// - /// A custom format for date type runtime fields. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - - /// - /// - /// For type lookup - /// - /// - [JsonInclude, JsonPropertyName("input_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? InputField { get; set; } - - /// - /// - /// Painless script executed at query time. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - - /// - /// - /// For type lookup - /// - /// - [JsonInclude, JsonPropertyName("target_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? TargetField { get; set; } - - /// - /// - /// For type lookup - /// - /// - [JsonInclude, JsonPropertyName("target_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? TargetIndex { get; set; } - - /// - /// - /// Field type, which can be: boolean, composite, date, double, geo_point, ip,keyword, long, or lookup. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType Type { get; set; } -} - -public sealed partial class RuntimeFieldDescriptor : SerializableDescriptor> -{ - internal RuntimeFieldDescriptor(Action> configure) => configure.Invoke(this); - - public RuntimeFieldDescriptor() : base() - { - } - - private ICollection? FetchFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor FetchFieldsDescriptor { get; set; } - private Action> FetchFieldsDescriptorAction { get; set; } - private Action>[] FetchFieldsDescriptorActions { get; set; } - private IDictionary FieldsValue { get; set; } - 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; } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor FetchFields(ICollection? fetchFields) - { - FetchFieldsDescriptor = null; - FetchFieldsDescriptorAction = null; - FetchFieldsDescriptorActions = null; - FetchFieldsValue = fetchFields; - return Self; - } - - public RuntimeFieldDescriptor FetchFields(Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor descriptor) - { - FetchFieldsValue = null; - FetchFieldsDescriptorAction = null; - FetchFieldsDescriptorActions = null; - FetchFieldsDescriptor = descriptor; - return Self; - } - - public RuntimeFieldDescriptor FetchFields(Action> configure) - { - FetchFieldsValue = null; - FetchFieldsDescriptor = null; - FetchFieldsDescriptorActions = null; - FetchFieldsDescriptorAction = configure; - return Self; - } - - public RuntimeFieldDescriptor FetchFields(params Action>[] configure) - { - FetchFieldsValue = null; - FetchFieldsDescriptor = null; - FetchFieldsDescriptorAction = null; - FetchFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// For type composite - /// - /// - public RuntimeFieldDescriptor Fields(Func, FluentDescriptorDictionary> selector) - { - FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// A custom format for date type runtime fields. - /// - /// - public RuntimeFieldDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor InputField(Elastic.Clients.Elasticsearch.Serverless.Field? inputField) - { - InputFieldValue = inputField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor InputField(Expression> inputField) - { - InputFieldValue = inputField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor InputField(Expression> inputField) - { - InputFieldValue = inputField; - return Self; - } - - /// - /// - /// Painless script executed at query time. - /// - /// - 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 - /// - /// - public RuntimeFieldDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor TargetIndex(Elastic.Clients.Elasticsearch.Serverless.IndexName? targetIndex) - { - TargetIndexValue = targetIndex; - return Self; - } - - /// - /// - /// Field type, which can be: boolean, composite, date, double, geo_point, ip,keyword, long, or lookup. - /// - /// - public RuntimeFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FetchFieldsDescriptor is not null) - { - writer.WritePropertyName("fetch_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FetchFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FetchFieldsDescriptorAction is not null) - { - writer.WritePropertyName("fetch_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor(FetchFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FetchFieldsDescriptorActions is not null) - { - writer.WritePropertyName("fetch_fields"); - writer.WriteStartArray(); - foreach (var action in FetchFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FetchFieldsValue is not null) - { - writer.WritePropertyName("fetch_fields"); - JsonSerializer.Serialize(writer, FetchFieldsValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (InputFieldValue is not null) - { - writer.WritePropertyName("input_field"); - JsonSerializer.Serialize(writer, InputFieldValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (TargetIndexValue is not null) - { - writer.WritePropertyName("target_index"); - JsonSerializer.Serialize(writer, TargetIndexValue, options); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class RuntimeFieldDescriptor : SerializableDescriptor -{ - internal RuntimeFieldDescriptor(Action configure) => configure.Invoke(this); - - public RuntimeFieldDescriptor() : base() - { - } - - private ICollection? FetchFieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor FetchFieldsDescriptor { get; set; } - private Action FetchFieldsDescriptorAction { get; set; } - private Action[] FetchFieldsDescriptorActions { get; set; } - private IDictionary FieldsValue { get; set; } - 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; } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor FetchFields(ICollection? fetchFields) - { - FetchFieldsDescriptor = null; - FetchFieldsDescriptorAction = null; - FetchFieldsDescriptorActions = null; - FetchFieldsValue = fetchFields; - return Self; - } - - public RuntimeFieldDescriptor FetchFields(Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor descriptor) - { - FetchFieldsValue = null; - FetchFieldsDescriptorAction = null; - FetchFieldsDescriptorActions = null; - FetchFieldsDescriptor = descriptor; - return Self; - } - - public RuntimeFieldDescriptor FetchFields(Action configure) - { - FetchFieldsValue = null; - FetchFieldsDescriptor = null; - FetchFieldsDescriptorActions = null; - FetchFieldsDescriptorAction = configure; - return Self; - } - - public RuntimeFieldDescriptor FetchFields(params Action[] configure) - { - FetchFieldsValue = null; - FetchFieldsDescriptor = null; - FetchFieldsDescriptorAction = null; - FetchFieldsDescriptorActions = configure; - return Self; - } - - /// - /// - /// For type composite - /// - /// - public RuntimeFieldDescriptor Fields(Func, FluentDescriptorDictionary> selector) - { - FieldsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// A custom format for date type runtime fields. - /// - /// - public RuntimeFieldDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor InputField(Elastic.Clients.Elasticsearch.Serverless.Field? inputField) - { - InputFieldValue = inputField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor InputField(Expression> inputField) - { - InputFieldValue = inputField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor InputField(Expression> inputField) - { - InputFieldValue = inputField; - return Self; - } - - /// - /// - /// Painless script executed at query time. - /// - /// - 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 - /// - /// - public RuntimeFieldDescriptor TargetField(Elastic.Clients.Elasticsearch.Serverless.Field? targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor TargetField(Expression> targetField) - { - TargetFieldValue = targetField; - return Self; - } - - /// - /// - /// For type lookup - /// - /// - public RuntimeFieldDescriptor TargetIndex(Elastic.Clients.Elasticsearch.Serverless.IndexName? targetIndex) - { - TargetIndexValue = targetIndex; - return Self; - } - - /// - /// - /// Field type, which can be: boolean, composite, date, double, geo_point, ip,keyword, long, or lookup. - /// - /// - public RuntimeFieldDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FetchFieldsDescriptor is not null) - { - writer.WritePropertyName("fetch_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FetchFieldsDescriptor, options); - writer.WriteEndArray(); - } - else if (FetchFieldsDescriptorAction is not null) - { - writer.WritePropertyName("fetch_fields"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor(FetchFieldsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FetchFieldsDescriptorActions is not null) - { - writer.WritePropertyName("fetch_fields"); - writer.WriteStartArray(); - foreach (var action in FetchFieldsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RuntimeFieldFetchFieldsDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FetchFieldsValue is not null) - { - writer.WritePropertyName("fetch_fields"); - JsonSerializer.Serialize(writer, FetchFieldsValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (InputFieldValue is not null) - { - writer.WritePropertyName("input_field"); - JsonSerializer.Serialize(writer, InputFieldValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (TargetFieldValue is not null) - { - writer.WritePropertyName("target_field"); - JsonSerializer.Serialize(writer, TargetFieldValue, options); - } - - if (TargetIndexValue is not null) - { - writer.WritePropertyName("target_index"); - JsonSerializer.Serialize(writer, TargetIndexValue, options); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs deleted file mode 100644 index 8529c1ecd63..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/RuntimeFieldFetchFields.g.cs +++ /dev/null @@ -1,136 +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.Mapping; - -public sealed partial class RuntimeFieldFetchFields -{ - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } -} - -public sealed partial class RuntimeFieldFetchFieldsDescriptor : SerializableDescriptor> -{ - internal RuntimeFieldFetchFieldsDescriptor(Action> configure) => configure.Invoke(this); - - public RuntimeFieldFetchFieldsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - - public RuntimeFieldFetchFieldsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public RuntimeFieldFetchFieldsDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RuntimeFieldFetchFieldsDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RuntimeFieldFetchFieldsDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RuntimeFieldFetchFieldsDescriptor : SerializableDescriptor -{ - internal RuntimeFieldFetchFieldsDescriptor(Action configure) => configure.Invoke(this); - - public RuntimeFieldFetchFieldsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - - public RuntimeFieldFetchFieldsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public RuntimeFieldFetchFieldsDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RuntimeFieldFetchFieldsDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RuntimeFieldFetchFieldsDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 2f3f8288c6f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ScaledFloatNumberProperty.g.cs +++ /dev/null @@ -1,740 +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.Mapping; - -public sealed partial class ScaledFloatNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public double? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("scaling_factor")] - public double? ScalingFactor { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "scaled_float"; -} - -public sealed partial class ScaledFloatNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal ScaledFloatNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public ScaledFloatNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private double? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } - 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 bool? StoreValue { get; set; } - - public ScaledFloatNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ScaledFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ScaledFloatNumberPropertyDescriptor NullValue(double? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor ScalingFactor(double? scalingFactor) - { - ScalingFactorValue = scalingFactor; - return Self; - } - - 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (ScalingFactorValue.HasValue) - { - writer.WritePropertyName("scaling_factor"); - writer.WriteNumberValue(ScalingFactorValue.Value); - } - - 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); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("scaled_float"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - ScalingFactor = ScalingFactorValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class ScaledFloatNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ScaledFloatNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public ScaledFloatNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private double? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptErrorValue { get; set; } - 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 bool? StoreValue { get; set; } - - public ScaledFloatNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ScaledFloatNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ScaledFloatNumberPropertyDescriptor NullValue(double? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ScaledFloatNumberPropertyDescriptor ScalingFactor(double? scalingFactor) - { - ScalingFactorValue = scalingFactor; - return Self; - } - - 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (ScalingFactorValue.HasValue) - { - writer.WritePropertyName("scaling_factor"); - writer.WriteNumberValue(ScalingFactorValue.Value); - } - - 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); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("scaled_float"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - ScalingFactor = ScalingFactorValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs deleted file mode 100644 index ac3109d0e5a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs +++ /dev/null @@ -1,632 +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.Mapping; - -public sealed partial class SearchAsYouTypeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude, JsonPropertyName("max_shingle_size")] - public int? MaxShingleSize { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("norms")] - public bool? Norms { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("search_analyzer")] - public string? SearchAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("search_quote_analyzer")] - public string? SearchQuoteAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("term_vector")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVector { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "search_as_you_type"; -} - -public sealed partial class SearchAsYouTypePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal SearchAsYouTypePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public SearchAsYouTypePropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private int? MaxShingleSizeValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SearchAnalyzerValue { get; set; } - private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } - - public SearchAsYouTypePropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public SearchAsYouTypePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public SearchAsYouTypePropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public SearchAsYouTypePropertyDescriptor MaxShingleSize(int? maxShingleSize) - { - MaxShingleSizeValue = maxShingleSize; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public SearchAsYouTypePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SearchAsYouTypePropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor SearchAnalyzer(string? searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public SearchAsYouTypePropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer) - { - SearchQuoteAnalyzerValue = searchQuoteAnalyzer; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public SearchAsYouTypePropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? termVector) - { - TermVectorValue = termVector; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MaxShingleSizeValue.HasValue) - { - writer.WritePropertyName("max_shingle_size"); - writer.WriteNumberValue(MaxShingleSizeValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SearchQuoteAnalyzerValue)) - { - writer.WritePropertyName("search_quote_analyzer"); - writer.WriteStringValue(SearchQuoteAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TermVectorValue is not null) - { - writer.WritePropertyName("term_vector"); - JsonSerializer.Serialize(writer, TermVectorValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("search_as_you_type"); - writer.WriteEndObject(); - } - - SearchAsYouTypeProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - MaxShingleSize = MaxShingleSizeValue, - Meta = MetaValue, - Norms = NormsValue, - Properties = PropertiesValue, - SearchAnalyzer = SearchAnalyzerValue, - SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, - Store = StoreValue, - TermVector = TermVectorValue - }; -} - -public sealed partial class SearchAsYouTypePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SearchAsYouTypePropertyDescriptor(Action configure) => configure.Invoke(this); - - public SearchAsYouTypePropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private int? MaxShingleSizeValue { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SearchAnalyzerValue { get; set; } - private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } - - public SearchAsYouTypePropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public SearchAsYouTypePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public SearchAsYouTypePropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public SearchAsYouTypePropertyDescriptor MaxShingleSize(int? maxShingleSize) - { - MaxShingleSizeValue = maxShingleSize; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public SearchAsYouTypePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SearchAsYouTypePropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public SearchAsYouTypePropertyDescriptor SearchAnalyzer(string? searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public SearchAsYouTypePropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer) - { - SearchQuoteAnalyzerValue = searchQuoteAnalyzer; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public SearchAsYouTypePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public SearchAsYouTypePropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? termVector) - { - TermVectorValue = termVector; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (MaxShingleSizeValue.HasValue) - { - writer.WritePropertyName("max_shingle_size"); - writer.WriteNumberValue(MaxShingleSizeValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SearchQuoteAnalyzerValue)) - { - writer.WritePropertyName("search_quote_analyzer"); - writer.WriteStringValue(SearchQuoteAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TermVectorValue is not null) - { - writer.WritePropertyName("term_vector"); - JsonSerializer.Serialize(writer, TermVectorValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("search_as_you_type"); - writer.WriteEndObject(); - } - - SearchAsYouTypeProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - MaxShingleSize = MaxShingleSizeValue, - Meta = MetaValue, - Norms = NormsValue, - Properties = PropertiesValue, - SearchAnalyzer = SearchAnalyzerValue, - SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, - Store = StoreValue, - TermVector = TermVectorValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SemanticTextProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SemanticTextProperty.g.cs deleted file mode 100644 index 4136cce6a59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SemanticTextProperty.g.cs +++ /dev/null @@ -1,85 +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.Mapping; - -public sealed partial class SemanticTextProperty : IProperty -{ - [JsonInclude, JsonPropertyName("inference_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id InferenceId { get; set; } - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "semantic_text"; -} - -public sealed partial class SemanticTextPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SemanticTextPropertyDescriptor(Action configure) => configure.Invoke(this); - - public SemanticTextPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id InferenceIdValue { get; set; } - private IDictionary? MetaValue { get; set; } - - public SemanticTextPropertyDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id inferenceId) - { - InferenceIdValue = inferenceId; - return Self; - } - - public SemanticTextPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("inference_id"); - JsonSerializer.Serialize(writer, InferenceIdValue, options); - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("semantic_text"); - writer.WriteEndObject(); - } - - SemanticTextProperty IBuildableDescriptor.Build() => new() - { - InferenceId = InferenceIdValue, - Meta = MetaValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs deleted file mode 100644 index 18ab1659da1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShapeProperty.g.cs +++ /dev/null @@ -1,533 +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.Mapping; - -/// -/// -/// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as -/// rectangles and polygons. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class ShapeProperty : IProperty -{ - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("ignore_z_value")] - public bool? IgnoreZValue { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("orientation")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? Orientation { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "shape"; -} - -/// -/// -/// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as -/// rectangles and polygons. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class ShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal ShapePropertyDescriptor(Action> configure) => configure.Invoke(this); - - public ShapePropertyDescriptor() : base() - { - } - - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public ShapePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ShapePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ShapePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ShapePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ShapePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ShapePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ShapePropertyDescriptor Orientation(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? orientation) - { - OrientationValue = orientation; - return Self; - } - - public ShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OrientationValue is not null) - { - writer.WritePropertyName("orientation"); - JsonSerializer.Serialize(writer, OrientationValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("shape"); - writer.WriteEndObject(); - } - - ShapeProperty IBuildableDescriptor.Build() => new() - { - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Meta = MetaValue, - Orientation = OrientationValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -/// -/// -/// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as -/// rectangles and polygons. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ShapePropertyDescriptor(Action configure) => configure.Invoke(this); - - public ShapePropertyDescriptor() : base() - { - } - - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IgnoreZValueValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? OrientationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public ShapePropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ShapePropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ShapePropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ShapePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ShapePropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ShapePropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) - { - IgnoreZValueValue = ignoreZValue; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ShapePropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ShapePropertyDescriptor Orientation(Elastic.Clients.Elasticsearch.Serverless.Mapping.GeoOrientation? orientation) - { - OrientationValue = orientation; - return Self; - } - - public ShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ShapePropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShapePropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IgnoreZValueValue.HasValue) - { - writer.WritePropertyName("ignore_z_value"); - writer.WriteBooleanValue(IgnoreZValueValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (OrientationValue is not null) - { - writer.WritePropertyName("orientation"); - JsonSerializer.Serialize(writer, OrientationValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("shape"); - writer.WriteEndObject(); - } - - ShapeProperty IBuildableDescriptor.Build() => new() - { - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - IgnoreZValue = IgnoreZValueValue, - Meta = MetaValue, - Orientation = OrientationValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file 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 deleted file mode 100644 index d83c6802a26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/ShortNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class ShortNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public short? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "short"; -} - -public sealed partial class ShortNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal ShortNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public ShortNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private short? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public ShortNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public ShortNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ShortNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ShortNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ShortNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ShortNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ShortNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ShortNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ShortNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ShortNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ShortNumberPropertyDescriptor NullValue(short? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public ShortNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public ShortNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ShortNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("short"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class ShortNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ShortNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public ShortNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private short? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public ShortNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public ShortNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public ShortNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public ShortNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public ShortNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public ShortNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public ShortNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public ShortNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public ShortNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public ShortNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ShortNumberPropertyDescriptor NullValue(short? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public ShortNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public ShortNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public ShortNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public ShortNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("short"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SizeField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SizeField.g.cs deleted file mode 100644 index 87b37992329..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SizeField.g.cs +++ /dev/null @@ -1,59 +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.Mapping; - -public sealed partial class SizeField -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; set; } -} - -public sealed partial class SizeFieldDescriptor : SerializableDescriptor -{ - internal SizeFieldDescriptor(Action configure) => configure.Invoke(this); - - public SizeFieldDescriptor() : base() - { - } - - private bool EnabledValue { get; set; } - - public SizeFieldDescriptor Enabled(bool enabled = true) - { - EnabledValue = enabled; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SourceField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SourceField.g.cs deleted file mode 100644 index a198f729c50..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SourceField.g.cs +++ /dev/null @@ -1,138 +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.Mapping; - -public sealed partial class SourceField -{ - [JsonInclude, JsonPropertyName("compress")] - public bool? Compress { get; set; } - [JsonInclude, JsonPropertyName("compress_threshold")] - public string? CompressThreshold { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("excludes")] - public ICollection? Excludes { get; set; } - [JsonInclude, JsonPropertyName("includes")] - public ICollection? Includes { get; set; } - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldMode? Mode { get; set; } -} - -public sealed partial class SourceFieldDescriptor : SerializableDescriptor -{ - internal SourceFieldDescriptor(Action configure) => configure.Invoke(this); - - public SourceFieldDescriptor() : base() - { - } - - private bool? CompressValue { get; set; } - private string? CompressThresholdValue { get; set; } - private bool? EnabledValue { get; set; } - private ICollection? ExcludesValue { get; set; } - private ICollection? IncludesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldMode? ModeValue { get; set; } - - public SourceFieldDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public SourceFieldDescriptor CompressThreshold(string? compressThreshold) - { - CompressThresholdValue = compressThreshold; - return Self; - } - - public SourceFieldDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public SourceFieldDescriptor Excludes(ICollection? excludes) - { - ExcludesValue = excludes; - return Self; - } - - public SourceFieldDescriptor Includes(ICollection? includes) - { - IncludesValue = includes; - return Self; - } - - public SourceFieldDescriptor Mode(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldMode? mode) - { - ModeValue = mode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - if (!string.IsNullOrEmpty(CompressThresholdValue)) - { - writer.WritePropertyName("compress_threshold"); - writer.WriteStringValue(CompressThresholdValue); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (ExcludesValue is not null) - { - writer.WritePropertyName("excludes"); - JsonSerializer.Serialize(writer, ExcludesValue, options); - } - - if (IncludesValue is not null) - { - writer.WritePropertyName("includes"); - JsonSerializer.Serialize(writer, IncludesValue, options); - } - - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - JsonSerializer.Serialize(writer, ModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SparseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SparseVectorProperty.g.cs deleted file mode 100644 index 248ed867b51..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SparseVectorProperty.g.cs +++ /dev/null @@ -1,301 +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.Mapping; - -public sealed partial class SparseVectorProperty : IProperty -{ - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "sparse_vector"; -} - -public sealed partial class SparseVectorPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal SparseVectorPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public SparseVectorPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public SparseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public SparseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public SparseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SparseVectorPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SparseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public SparseVectorPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SparseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public SparseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public SparseVectorPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("sparse_vector"); - writer.WriteEndObject(); - } - - SparseVectorProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue - }; -} - -public sealed partial class SparseVectorPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SparseVectorPropertyDescriptor(Action configure) => configure.Invoke(this); - - public SparseVectorPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - - public SparseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public SparseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public SparseVectorPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SparseVectorPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public SparseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public SparseVectorPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public SparseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public SparseVectorPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public SparseVectorPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("sparse_vector"); - writer.WriteEndObject(); - } - - SparseVectorProperty IBuildableDescriptor.Build() => new() - { - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SuggestContext.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SuggestContext.g.cs deleted file mode 100644 index bfefef311a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/SuggestContext.g.cs +++ /dev/null @@ -1,184 +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.Mapping; - -public sealed partial class SuggestContext -{ - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name Name { get; set; } - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Path { get; set; } - [JsonInclude, JsonPropertyName("precision")] - public object? Precision { get; set; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; set; } -} - -public sealed partial class SuggestContextDescriptor : SerializableDescriptor> -{ - internal SuggestContextDescriptor(Action> configure) => configure.Invoke(this); - - public SuggestContextDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - private object? PrecisionValue { get; set; } - private string TypeValue { get; set; } - - public SuggestContextDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - public SuggestContextDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - public SuggestContextDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public SuggestContextDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public SuggestContextDescriptor Precision(object? precision) - { - PrecisionValue = precision; - return Self; - } - - public SuggestContextDescriptor Type(string type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - writer.WriteEndObject(); - } -} - -public sealed partial class SuggestContextDescriptor : SerializableDescriptor -{ - internal SuggestContextDescriptor(Action configure) => configure.Invoke(this); - - public SuggestContextDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? PathValue { get; set; } - private object? PrecisionValue { get; set; } - private string TypeValue { get; set; } - - public SuggestContextDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - public SuggestContextDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field? path) - { - PathValue = path; - return Self; - } - - public SuggestContextDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public SuggestContextDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public SuggestContextDescriptor Precision(object? precision) - { - PrecisionValue = precision; - return Self; - } - - public SuggestContextDescriptor Type(string type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (PathValue is not null) - { - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - } - - if (PrecisionValue is not null) - { - writer.WritePropertyName("precision"); - JsonSerializer.Serialize(writer, PrecisionValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextIndexPrefixes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextIndexPrefixes.g.cs deleted file mode 100644 index 4a5f6151233..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextIndexPrefixes.g.cs +++ /dev/null @@ -1,70 +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.Mapping; - -public sealed partial class TextIndexPrefixes -{ - [JsonInclude, JsonPropertyName("max_chars")] - public int MaxChars { get; set; } - [JsonInclude, JsonPropertyName("min_chars")] - public int MinChars { get; set; } -} - -public sealed partial class TextIndexPrefixesDescriptor : SerializableDescriptor -{ - internal TextIndexPrefixesDescriptor(Action configure) => configure.Invoke(this); - - public TextIndexPrefixesDescriptor() : base() - { - } - - private int MaxCharsValue { get; set; } - private int MinCharsValue { get; set; } - - public TextIndexPrefixesDescriptor MaxChars(int maxChars) - { - MaxCharsValue = maxChars; - return Self; - } - - public TextIndexPrefixesDescriptor MinChars(int minChars) - { - MinCharsValue = minChars; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("max_chars"); - writer.WriteNumberValue(MaxCharsValue); - writer.WritePropertyName("min_chars"); - writer.WriteNumberValue(MinCharsValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextProperty.g.cs deleted file mode 100644 index 75c78c9a1b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TextProperty.g.cs +++ /dev/null @@ -1,1028 +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.Mapping; - -public sealed partial class TextProperty : IProperty -{ - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("eager_global_ordinals")] - public bool? EagerGlobalOrdinals { get; set; } - [JsonInclude, JsonPropertyName("fielddata")] - public bool? Fielddata { get; set; } - [JsonInclude, JsonPropertyName("fielddata_frequency_filter")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? FielddataFrequencyFilter { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - [JsonInclude, JsonPropertyName("index_options")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptions { get; set; } - [JsonInclude, JsonPropertyName("index_phrases")] - public bool? IndexPhrases { get; set; } - [JsonInclude, JsonPropertyName("index_prefixes")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? IndexPrefixes { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("norms")] - public bool? Norms { get; set; } - [JsonInclude, JsonPropertyName("position_increment_gap")] - public int? PositionIncrementGap { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("search_analyzer")] - public string? SearchAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("search_quote_analyzer")] - public string? SearchQuoteAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("term_vector")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVector { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "text"; -} - -public sealed partial class TextPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal TextPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public TextPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private bool? FielddataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? FielddataFrequencyFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor FielddataFrequencyFilterDescriptor { get; set; } - private Action FielddataFrequencyFilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private bool? IndexPhrasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? IndexPrefixesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor IndexPrefixesDescriptor { get; set; } - private Action IndexPrefixesDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private int? PositionIncrementGapValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SearchAnalyzerValue { get; set; } - private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } - - public TextPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public TextPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public TextPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public TextPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public TextPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public TextPropertyDescriptor Fielddata(bool? fielddata = true) - { - FielddataValue = fielddata; - return Self; - } - - public TextPropertyDescriptor FielddataFrequencyFilter(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? fielddataFrequencyFilter) - { - FielddataFrequencyFilterDescriptor = null; - FielddataFrequencyFilterDescriptorAction = null; - FielddataFrequencyFilterValue = fielddataFrequencyFilter; - return Self; - } - - public TextPropertyDescriptor FielddataFrequencyFilter(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor descriptor) - { - FielddataFrequencyFilterValue = null; - FielddataFrequencyFilterDescriptorAction = null; - FielddataFrequencyFilterDescriptor = descriptor; - return Self; - } - - public TextPropertyDescriptor FielddataFrequencyFilter(Action configure) - { - FielddataFrequencyFilterValue = null; - FielddataFrequencyFilterDescriptor = null; - FielddataFrequencyFilterDescriptorAction = configure; - return Self; - } - - public TextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public TextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public TextPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public TextPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public TextPropertyDescriptor IndexPhrases(bool? indexPhrases = true) - { - IndexPhrasesValue = indexPhrases; - return Self; - } - - public TextPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? indexPrefixes) - { - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesValue = indexPrefixes; - return Self; - } - - public TextPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor descriptor) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesDescriptor = descriptor; - return Self; - } - - public TextPropertyDescriptor IndexPrefixes(Action configure) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = configure; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public TextPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TextPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public TextPropertyDescriptor PositionIncrementGap(int? positionIncrementGap) - { - PositionIncrementGapValue = positionIncrementGap; - return Self; - } - - public TextPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public TextPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public TextPropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer) - { - SearchQuoteAnalyzerValue = searchQuoteAnalyzer; - return Self; - } - - public TextPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public TextPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public TextPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? termVector) - { - TermVectorValue = termVector; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FielddataValue.HasValue) - { - writer.WritePropertyName("fielddata"); - writer.WriteBooleanValue(FielddataValue.Value); - } - - if (FielddataFrequencyFilterDescriptor is not null) - { - writer.WritePropertyName("fielddata_frequency_filter"); - JsonSerializer.Serialize(writer, FielddataFrequencyFilterDescriptor, options); - } - else if (FielddataFrequencyFilterDescriptorAction is not null) - { - writer.WritePropertyName("fielddata_frequency_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor(FielddataFrequencyFilterDescriptorAction), options); - } - else if (FielddataFrequencyFilterValue is not null) - { - writer.WritePropertyName("fielddata_frequency_filter"); - JsonSerializer.Serialize(writer, FielddataFrequencyFilterValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (IndexPhrasesValue.HasValue) - { - writer.WritePropertyName("index_phrases"); - writer.WriteBooleanValue(IndexPhrasesValue.Value); - } - - if (IndexPrefixesDescriptor is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesDescriptor, options); - } - else if (IndexPrefixesDescriptorAction is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction), options); - } - else if (IndexPrefixesValue is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (PositionIncrementGapValue.HasValue) - { - writer.WritePropertyName("position_increment_gap"); - writer.WriteNumberValue(PositionIncrementGapValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SearchQuoteAnalyzerValue)) - { - writer.WritePropertyName("search_quote_analyzer"); - writer.WriteStringValue(SearchQuoteAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TermVectorValue is not null) - { - writer.WritePropertyName("term_vector"); - JsonSerializer.Serialize(writer, TermVectorValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("text"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? BuildFielddataFrequencyFilter() - { - if (FielddataFrequencyFilterValue is not null) - { - return FielddataFrequencyFilterValue; - } - - if ((object)FielddataFrequencyFilterDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (FielddataFrequencyFilterDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor(FielddataFrequencyFilterDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? BuildIndexPrefixes() - { - if (IndexPrefixesValue is not null) - { - return IndexPrefixesValue; - } - - if ((object)IndexPrefixesDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (IndexPrefixesDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - TextProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - Boost = BoostValue, - CopyTo = CopyToValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fielddata = FielddataValue, - FielddataFrequencyFilter = BuildFielddataFrequencyFilter(), - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - IndexPhrases = IndexPhrasesValue, - IndexPrefixes = BuildIndexPrefixes(), - Meta = MetaValue, - Norms = NormsValue, - PositionIncrementGap = PositionIncrementGapValue, - Properties = PropertiesValue, - SearchAnalyzer = SearchAnalyzerValue, - SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, - Store = StoreValue, - TermVector = TermVectorValue - }; -} - -public sealed partial class TextPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal TextPropertyDescriptor(Action configure) => configure.Invoke(this); - - public TextPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EagerGlobalOrdinalsValue { get; set; } - private bool? FielddataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? FielddataFrequencyFilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor FielddataFrequencyFilterDescriptor { get; set; } - private Action FielddataFrequencyFilterDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? IndexOptionsValue { get; set; } - private bool? IndexPhrasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? IndexPrefixesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor IndexPrefixesDescriptor { get; set; } - private Action IndexPrefixesDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NormsValue { get; set; } - private int? PositionIncrementGapValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private string? SearchAnalyzerValue { get; set; } - private string? SearchQuoteAnalyzerValue { get; set; } - private string? SimilarityValue { get; set; } - private bool? StoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? TermVectorValue { get; set; } - - public TextPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public TextPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public TextPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public TextPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public TextPropertyDescriptor EagerGlobalOrdinals(bool? eagerGlobalOrdinals = true) - { - EagerGlobalOrdinalsValue = eagerGlobalOrdinals; - return Self; - } - - public TextPropertyDescriptor Fielddata(bool? fielddata = true) - { - FielddataValue = fielddata; - return Self; - } - - public TextPropertyDescriptor FielddataFrequencyFilter(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? fielddataFrequencyFilter) - { - FielddataFrequencyFilterDescriptor = null; - FielddataFrequencyFilterDescriptorAction = null; - FielddataFrequencyFilterValue = fielddataFrequencyFilter; - return Self; - } - - public TextPropertyDescriptor FielddataFrequencyFilter(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor descriptor) - { - FielddataFrequencyFilterValue = null; - FielddataFrequencyFilterDescriptorAction = null; - FielddataFrequencyFilterDescriptor = descriptor; - return Self; - } - - public TextPropertyDescriptor FielddataFrequencyFilter(Action configure) - { - FielddataFrequencyFilterValue = null; - FielddataFrequencyFilterDescriptor = null; - FielddataFrequencyFilterDescriptorAction = configure; - return Self; - } - - public TextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public TextPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public TextPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - public TextPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexOptions? indexOptions) - { - IndexOptionsValue = indexOptions; - return Self; - } - - public TextPropertyDescriptor IndexPhrases(bool? indexPhrases = true) - { - IndexPhrasesValue = indexPhrases; - return Self; - } - - public TextPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? indexPrefixes) - { - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesValue = indexPrefixes; - return Self; - } - - public TextPropertyDescriptor IndexPrefixes(Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor descriptor) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptorAction = null; - IndexPrefixesDescriptor = descriptor; - return Self; - } - - public TextPropertyDescriptor IndexPrefixes(Action configure) - { - IndexPrefixesValue = null; - IndexPrefixesDescriptor = null; - IndexPrefixesDescriptorAction = configure; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public TextPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TextPropertyDescriptor Norms(bool? norms = true) - { - NormsValue = norms; - return Self; - } - - public TextPropertyDescriptor PositionIncrementGap(int? positionIncrementGap) - { - PositionIncrementGapValue = positionIncrementGap; - return Self; - } - - public TextPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public TextPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TextPropertyDescriptor SearchAnalyzer(string? searchAnalyzer) - { - SearchAnalyzerValue = searchAnalyzer; - return Self; - } - - public TextPropertyDescriptor SearchQuoteAnalyzer(string? searchQuoteAnalyzer) - { - SearchQuoteAnalyzerValue = searchQuoteAnalyzer; - return Self; - } - - public TextPropertyDescriptor Similarity(string? similarity) - { - SimilarityValue = similarity; - return Self; - } - - public TextPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public TextPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Serverless.Mapping.TermVectorOption? termVector) - { - TermVectorValue = termVector; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EagerGlobalOrdinalsValue.HasValue) - { - writer.WritePropertyName("eager_global_ordinals"); - writer.WriteBooleanValue(EagerGlobalOrdinalsValue.Value); - } - - if (FielddataValue.HasValue) - { - writer.WritePropertyName("fielddata"); - writer.WriteBooleanValue(FielddataValue.Value); - } - - if (FielddataFrequencyFilterDescriptor is not null) - { - writer.WritePropertyName("fielddata_frequency_filter"); - JsonSerializer.Serialize(writer, FielddataFrequencyFilterDescriptor, options); - } - else if (FielddataFrequencyFilterDescriptorAction is not null) - { - writer.WritePropertyName("fielddata_frequency_filter"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor(FielddataFrequencyFilterDescriptorAction), options); - } - else if (FielddataFrequencyFilterValue is not null) - { - writer.WritePropertyName("fielddata_frequency_filter"); - JsonSerializer.Serialize(writer, FielddataFrequencyFilterValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (IndexOptionsValue is not null) - { - writer.WritePropertyName("index_options"); - JsonSerializer.Serialize(writer, IndexOptionsValue, options); - } - - if (IndexPhrasesValue.HasValue) - { - writer.WritePropertyName("index_phrases"); - writer.WriteBooleanValue(IndexPhrasesValue.Value); - } - - if (IndexPrefixesDescriptor is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesDescriptor, options); - } - else if (IndexPrefixesDescriptorAction is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction), options); - } - else if (IndexPrefixesValue is not null) - { - writer.WritePropertyName("index_prefixes"); - JsonSerializer.Serialize(writer, IndexPrefixesValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NormsValue.HasValue) - { - writer.WritePropertyName("norms"); - writer.WriteBooleanValue(NormsValue.Value); - } - - if (PositionIncrementGapValue.HasValue) - { - writer.WritePropertyName("position_increment_gap"); - writer.WriteNumberValue(PositionIncrementGapValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (!string.IsNullOrEmpty(SearchAnalyzerValue)) - { - writer.WritePropertyName("search_analyzer"); - writer.WriteStringValue(SearchAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SearchQuoteAnalyzerValue)) - { - writer.WritePropertyName("search_quote_analyzer"); - writer.WriteStringValue(SearchQuoteAnalyzerValue); - } - - if (!string.IsNullOrEmpty(SimilarityValue)) - { - writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TermVectorValue is not null) - { - writer.WritePropertyName("term_vector"); - JsonSerializer.Serialize(writer, TermVectorValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("text"); - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilter? BuildFielddataFrequencyFilter() - { - if (FielddataFrequencyFilterValue is not null) - { - return FielddataFrequencyFilterValue; - } - - if ((object)FielddataFrequencyFilterDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (FielddataFrequencyFilterDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.IndexManagement.FielddataFrequencyFilterDescriptor(FielddataFrequencyFilterDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixes? BuildIndexPrefixes() - { - if (IndexPrefixesValue is not null) - { - return IndexPrefixesValue; - } - - if ((object)IndexPrefixesDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (IndexPrefixesDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.TextIndexPrefixesDescriptor(IndexPrefixesDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - TextProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - Boost = BoostValue, - CopyTo = CopyToValue, - Dynamic = DynamicValue, - EagerGlobalOrdinals = EagerGlobalOrdinalsValue, - Fielddata = FielddataValue, - FielddataFrequencyFilter = BuildFielddataFrequencyFilter(), - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - IndexOptions = IndexOptionsValue, - IndexPhrases = IndexPhrasesValue, - IndexPrefixes = BuildIndexPrefixes(), - Meta = MetaValue, - Norms = NormsValue, - PositionIncrementGap = PositionIncrementGapValue, - Properties = PropertiesValue, - SearchAnalyzer = SearchAnalyzerValue, - SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, - Similarity = SimilarityValue, - Store = StoreValue, - TermVector = TermVectorValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TokenCountProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TokenCountProperty.g.cs deleted file mode 100644 index 8f5f9b0aaa7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TokenCountProperty.g.cs +++ /dev/null @@ -1,542 +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.Mapping; - -public sealed partial class TokenCountProperty : IProperty -{ - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("enable_position_increments")] - public bool? EnablePositionIncrements { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public double? NullValue { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "token_count"; -} - -public sealed partial class TokenCountPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal TokenCountPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public TokenCountPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnablePositionIncrementsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private double? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public TokenCountPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public TokenCountPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public TokenCountPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public TokenCountPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public TokenCountPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public TokenCountPropertyDescriptor EnablePositionIncrements(bool? enablePositionIncrements = true) - { - EnablePositionIncrementsValue = enablePositionIncrements; - return Self; - } - - public TokenCountPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public TokenCountPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public TokenCountPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public TokenCountPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TokenCountPropertyDescriptor NullValue(double? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public TokenCountPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public TokenCountPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnablePositionIncrementsValue.HasValue) - { - writer.WritePropertyName("enable_position_increments"); - writer.WriteBooleanValue(EnablePositionIncrementsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("token_count"); - writer.WriteEndObject(); - } - - TokenCountProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EnablePositionIncrements = EnablePositionIncrementsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class TokenCountPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal TokenCountPropertyDescriptor(Action configure) => configure.Invoke(this); - - public TokenCountPropertyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private double? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnablePositionIncrementsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private double? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public TokenCountPropertyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - public TokenCountPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public TokenCountPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public TokenCountPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public TokenCountPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public TokenCountPropertyDescriptor EnablePositionIncrements(bool? enablePositionIncrements = true) - { - EnablePositionIncrementsValue = enablePositionIncrements; - return Self; - } - - public TokenCountPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public TokenCountPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public TokenCountPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public TokenCountPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TokenCountPropertyDescriptor NullValue(double? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public TokenCountPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public TokenCountPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TokenCountPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnablePositionIncrementsValue.HasValue) - { - writer.WritePropertyName("enable_position_increments"); - writer.WriteBooleanValue(EnablePositionIncrementsValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("token_count"); - writer.WriteEndObject(); - } - - TokenCountProperty IBuildableDescriptor.Build() => new() - { - Analyzer = AnalyzerValue, - Boost = BoostValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - EnablePositionIncrements = EnablePositionIncrementsValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TypeMapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TypeMapping.g.cs deleted file mode 100644 index 00444c58a91..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/TypeMapping.g.cs +++ /dev/null @@ -1,988 +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.Mapping; - -public sealed partial class TypeMapping -{ - [JsonInclude, JsonPropertyName("all_field")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.AllField? AllField { get; set; } - [JsonInclude, JsonPropertyName("_data_stream_timestamp")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestamp? DataStreamTimestamp { get; set; } - [JsonInclude, JsonPropertyName("date_detection")] - public bool? DateDetection { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("dynamic_date_formats")] - public ICollection? DynamicDateFormats { get; set; } - [JsonInclude, JsonPropertyName("dynamic_templates")] - public ICollection>? DynamicTemplates { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("_field_names")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? FieldNames { get; set; } - [JsonInclude, JsonPropertyName("index_field")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexField? IndexField { get; set; } - [JsonInclude, JsonPropertyName("_meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("numeric_detection")] - public bool? NumericDetection { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("_routing")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? Routing { get; set; } - [JsonInclude, JsonPropertyName("runtime")] - public IDictionary? Runtime { get; set; } - [JsonInclude, JsonPropertyName("_size")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeField? Size { get; set; } - [JsonInclude, JsonPropertyName("_source")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? Source { get; set; } - [JsonInclude, JsonPropertyName("subobjects")] - public bool? Subobjects { get; set; } -} - -public sealed partial class TypeMappingDescriptor : SerializableDescriptor> -{ - internal TypeMappingDescriptor(Action> configure) => configure.Invoke(this); - - public TypeMappingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.AllField? AllFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.AllFieldDescriptor AllFieldDescriptor { get; set; } - private Action AllFieldDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestamp? DataStreamTimestampValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestampDescriptor DataStreamTimestampDescriptor { get; set; } - private Action DataStreamTimestampDescriptorAction { get; set; } - private bool? DateDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? FieldNamesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } - private Action FieldNamesDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexField? IndexFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexFieldDescriptor IndexFieldDescriptor { get; set; } - private Action IndexFieldDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NumericDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor RoutingDescriptor { get; set; } - private Action RoutingDescriptorAction { get; set; } - private IDictionary> RuntimeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeField? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeFieldDescriptor SizeDescriptor { get; set; } - private Action SizeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - private bool? SubobjectsValue { get; set; } - - public TypeMappingDescriptor AllField(Elastic.Clients.Elasticsearch.Serverless.Mapping.AllField? allField) - { - AllFieldDescriptor = null; - AllFieldDescriptorAction = null; - AllFieldValue = allField; - return Self; - } - - public TypeMappingDescriptor AllField(Elastic.Clients.Elasticsearch.Serverless.Mapping.AllFieldDescriptor descriptor) - { - AllFieldValue = null; - AllFieldDescriptorAction = null; - AllFieldDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor AllField(Action configure) - { - AllFieldValue = null; - AllFieldDescriptor = null; - AllFieldDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor DataStreamTimestamp(Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestamp? dataStreamTimestamp) - { - DataStreamTimestampDescriptor = null; - DataStreamTimestampDescriptorAction = null; - DataStreamTimestampValue = dataStreamTimestamp; - return Self; - } - - public TypeMappingDescriptor DataStreamTimestamp(Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestampDescriptor descriptor) - { - DataStreamTimestampValue = null; - DataStreamTimestampDescriptorAction = null; - DataStreamTimestampDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor DataStreamTimestamp(Action configure) - { - DataStreamTimestampValue = null; - DataStreamTimestampDescriptor = null; - DataStreamTimestampDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor DateDetection(bool? dateDetection = true) - { - DateDetectionValue = dateDetection; - return Self; - } - - public TypeMappingDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public TypeMappingDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) - { - DynamicDateFormatsValue = dynamicDateFormats; - return Self; - } - - public TypeMappingDescriptor DynamicTemplates(ICollection>? dynamicTemplates) - { - DynamicTemplatesValue = dynamicTemplates; - return Self; - } - - public TypeMappingDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public TypeMappingDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? fieldNames) - { - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = null; - FieldNamesValue = fieldNames; - return Self; - } - - public TypeMappingDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor descriptor) - { - FieldNamesValue = null; - FieldNamesDescriptorAction = null; - FieldNamesDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor FieldNames(Action configure) - { - FieldNamesValue = null; - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor IndexField(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexField? indexField) - { - IndexFieldDescriptor = null; - IndexFieldDescriptorAction = null; - IndexFieldValue = indexField; - return Self; - } - - public TypeMappingDescriptor IndexField(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexFieldDescriptor descriptor) - { - IndexFieldValue = null; - IndexFieldDescriptorAction = null; - IndexFieldDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor IndexField(Action configure) - { - IndexFieldValue = null; - IndexFieldDescriptor = null; - IndexFieldDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TypeMappingDescriptor NumericDetection(bool? numericDetection = true) - { - NumericDetectionValue = numericDetection; - return Self; - } - - public TypeMappingDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public TypeMappingDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TypeMappingDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TypeMappingDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? routing) - { - RoutingDescriptor = null; - RoutingDescriptorAction = null; - RoutingValue = routing; - return Self; - } - - public TypeMappingDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor descriptor) - { - RoutingValue = null; - RoutingDescriptorAction = null; - RoutingDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor Routing(Action configure) - { - RoutingValue = null; - RoutingDescriptor = null; - RoutingDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Runtime(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public TypeMappingDescriptor Size(Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeField? size) - { - SizeDescriptor = null; - SizeDescriptorAction = null; - SizeValue = size; - return Self; - } - - public TypeMappingDescriptor Size(Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeFieldDescriptor descriptor) - { - SizeValue = null; - SizeDescriptorAction = null; - SizeDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor Size(Action configure) - { - SizeValue = null; - SizeDescriptor = null; - SizeDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TypeMappingDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Subobjects(bool? subobjects = true) - { - SubobjectsValue = subobjects; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllFieldDescriptor is not null) - { - writer.WritePropertyName("all_field"); - JsonSerializer.Serialize(writer, AllFieldDescriptor, options); - } - else if (AllFieldDescriptorAction is not null) - { - writer.WritePropertyName("all_field"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.AllFieldDescriptor(AllFieldDescriptorAction), options); - } - else if (AllFieldValue is not null) - { - writer.WritePropertyName("all_field"); - JsonSerializer.Serialize(writer, AllFieldValue, options); - } - - if (DataStreamTimestampDescriptor is not null) - { - writer.WritePropertyName("_data_stream_timestamp"); - JsonSerializer.Serialize(writer, DataStreamTimestampDescriptor, options); - } - else if (DataStreamTimestampDescriptorAction is not null) - { - writer.WritePropertyName("_data_stream_timestamp"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestampDescriptor(DataStreamTimestampDescriptorAction), options); - } - else if (DataStreamTimestampValue is not null) - { - writer.WritePropertyName("_data_stream_timestamp"); - JsonSerializer.Serialize(writer, DataStreamTimestampValue, options); - } - - if (DateDetectionValue.HasValue) - { - writer.WritePropertyName("date_detection"); - writer.WriteBooleanValue(DateDetectionValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (DynamicDateFormatsValue is not null) - { - writer.WritePropertyName("dynamic_date_formats"); - JsonSerializer.Serialize(writer, DynamicDateFormatsValue, options); - } - - if (DynamicTemplatesValue is not null) - { - writer.WritePropertyName("dynamic_templates"); - JsonSerializer.Serialize(writer, DynamicTemplatesValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldNamesDescriptor is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesDescriptor, options); - } - else if (FieldNamesDescriptorAction is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor(FieldNamesDescriptorAction), options); - } - else if (FieldNamesValue is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesValue, options); - } - - if (IndexFieldDescriptor is not null) - { - writer.WritePropertyName("index_field"); - JsonSerializer.Serialize(writer, IndexFieldDescriptor, options); - } - else if (IndexFieldDescriptorAction is not null) - { - writer.WritePropertyName("index_field"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexFieldDescriptor(IndexFieldDescriptorAction), options); - } - else if (IndexFieldValue is not null) - { - writer.WritePropertyName("index_field"); - JsonSerializer.Serialize(writer, IndexFieldValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NumericDetectionValue.HasValue) - { - writer.WritePropertyName("numeric_detection"); - writer.WriteBooleanValue(NumericDetectionValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RoutingDescriptor is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingDescriptor, options); - } - else if (RoutingDescriptorAction is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor(RoutingDescriptorAction), options); - } - else if (RoutingValue is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (RuntimeValue is not null) - { - writer.WritePropertyName("runtime"); - JsonSerializer.Serialize(writer, RuntimeValue, options); - } - - if (SizeDescriptor is not null) - { - writer.WritePropertyName("_size"); - JsonSerializer.Serialize(writer, SizeDescriptor, options); - } - else if (SizeDescriptorAction is not null) - { - writer.WritePropertyName("_size"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeFieldDescriptor(SizeDescriptorAction), options); - } - else if (SizeValue is not null) - { - writer.WritePropertyName("_size"); - JsonSerializer.Serialize(writer, SizeValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SubobjectsValue.HasValue) - { - writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TypeMappingDescriptor : SerializableDescriptor -{ - internal TypeMappingDescriptor(Action configure) => configure.Invoke(this); - - public TypeMappingDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Mapping.AllField? AllFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.AllFieldDescriptor AllFieldDescriptor { get; set; } - private Action AllFieldDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestamp? DataStreamTimestampValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestampDescriptor DataStreamTimestampDescriptor { get; set; } - private Action DataStreamTimestampDescriptorAction { get; set; } - private bool? DateDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? FieldNamesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } - private Action FieldNamesDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexField? IndexFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexFieldDescriptor IndexFieldDescriptor { get; set; } - private Action IndexFieldDescriptorAction { get; set; } - private IDictionary? MetaValue { get; set; } - private bool? NumericDetectionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? RoutingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor RoutingDescriptor { get; set; } - private Action RoutingDescriptorAction { get; set; } - private IDictionary RuntimeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeField? SizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeFieldDescriptor SizeDescriptor { get; set; } - private Action SizeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? SourceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor SourceDescriptor { get; set; } - private Action SourceDescriptorAction { get; set; } - private bool? SubobjectsValue { get; set; } - - public TypeMappingDescriptor AllField(Elastic.Clients.Elasticsearch.Serverless.Mapping.AllField? allField) - { - AllFieldDescriptor = null; - AllFieldDescriptorAction = null; - AllFieldValue = allField; - return Self; - } - - public TypeMappingDescriptor AllField(Elastic.Clients.Elasticsearch.Serverless.Mapping.AllFieldDescriptor descriptor) - { - AllFieldValue = null; - AllFieldDescriptorAction = null; - AllFieldDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor AllField(Action configure) - { - AllFieldValue = null; - AllFieldDescriptor = null; - AllFieldDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor DataStreamTimestamp(Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestamp? dataStreamTimestamp) - { - DataStreamTimestampDescriptor = null; - DataStreamTimestampDescriptorAction = null; - DataStreamTimestampValue = dataStreamTimestamp; - return Self; - } - - public TypeMappingDescriptor DataStreamTimestamp(Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestampDescriptor descriptor) - { - DataStreamTimestampValue = null; - DataStreamTimestampDescriptorAction = null; - DataStreamTimestampDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor DataStreamTimestamp(Action configure) - { - DataStreamTimestampValue = null; - DataStreamTimestampDescriptor = null; - DataStreamTimestampDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor DateDetection(bool? dateDetection = true) - { - DateDetectionValue = dateDetection; - return Self; - } - - public TypeMappingDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public TypeMappingDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) - { - DynamicDateFormatsValue = dynamicDateFormats; - return Self; - } - - public TypeMappingDescriptor DynamicTemplates(ICollection>? dynamicTemplates) - { - DynamicTemplatesValue = dynamicTemplates; - return Self; - } - - public TypeMappingDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public TypeMappingDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesField? fieldNames) - { - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = null; - FieldNamesValue = fieldNames; - return Self; - } - - public TypeMappingDescriptor FieldNames(Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor descriptor) - { - FieldNamesValue = null; - FieldNamesDescriptorAction = null; - FieldNamesDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor FieldNames(Action configure) - { - FieldNamesValue = null; - FieldNamesDescriptor = null; - FieldNamesDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor IndexField(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexField? indexField) - { - IndexFieldDescriptor = null; - IndexFieldDescriptorAction = null; - IndexFieldValue = indexField; - return Self; - } - - public TypeMappingDescriptor IndexField(Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexFieldDescriptor descriptor) - { - IndexFieldValue = null; - IndexFieldDescriptorAction = null; - IndexFieldDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor IndexField(Action configure) - { - IndexFieldValue = null; - IndexFieldDescriptor = null; - IndexFieldDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public TypeMappingDescriptor NumericDetection(bool? numericDetection = true) - { - NumericDetectionValue = numericDetection; - return Self; - } - - public TypeMappingDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public TypeMappingDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TypeMappingDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public TypeMappingDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingField? routing) - { - RoutingDescriptor = null; - RoutingDescriptorAction = null; - RoutingValue = routing; - return Self; - } - - public TypeMappingDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor descriptor) - { - RoutingValue = null; - RoutingDescriptorAction = null; - RoutingDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor Routing(Action configure) - { - RoutingValue = null; - RoutingDescriptor = null; - RoutingDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Runtime(Func, FluentDescriptorDictionary> selector) - { - RuntimeValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public TypeMappingDescriptor Size(Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeField? size) - { - SizeDescriptor = null; - SizeDescriptorAction = null; - SizeValue = size; - return Self; - } - - public TypeMappingDescriptor Size(Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeFieldDescriptor descriptor) - { - SizeValue = null; - SizeDescriptorAction = null; - SizeDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor Size(Action configure) - { - SizeValue = null; - SizeDescriptor = null; - SizeDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceField? source) - { - SourceDescriptor = null; - SourceDescriptorAction = null; - SourceValue = source; - return Self; - } - - public TypeMappingDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor descriptor) - { - SourceValue = null; - SourceDescriptorAction = null; - SourceDescriptor = descriptor; - return Self; - } - - public TypeMappingDescriptor Source(Action configure) - { - SourceValue = null; - SourceDescriptor = null; - SourceDescriptorAction = configure; - return Self; - } - - public TypeMappingDescriptor Subobjects(bool? subobjects = true) - { - SubobjectsValue = subobjects; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllFieldDescriptor is not null) - { - writer.WritePropertyName("all_field"); - JsonSerializer.Serialize(writer, AllFieldDescriptor, options); - } - else if (AllFieldDescriptorAction is not null) - { - writer.WritePropertyName("all_field"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.AllFieldDescriptor(AllFieldDescriptorAction), options); - } - else if (AllFieldValue is not null) - { - writer.WritePropertyName("all_field"); - JsonSerializer.Serialize(writer, AllFieldValue, options); - } - - if (DataStreamTimestampDescriptor is not null) - { - writer.WritePropertyName("_data_stream_timestamp"); - JsonSerializer.Serialize(writer, DataStreamTimestampDescriptor, options); - } - else if (DataStreamTimestampDescriptorAction is not null) - { - writer.WritePropertyName("_data_stream_timestamp"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.DataStreamTimestampDescriptor(DataStreamTimestampDescriptorAction), options); - } - else if (DataStreamTimestampValue is not null) - { - writer.WritePropertyName("_data_stream_timestamp"); - JsonSerializer.Serialize(writer, DataStreamTimestampValue, options); - } - - if (DateDetectionValue.HasValue) - { - writer.WritePropertyName("date_detection"); - writer.WriteBooleanValue(DateDetectionValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (DynamicDateFormatsValue is not null) - { - writer.WritePropertyName("dynamic_date_formats"); - JsonSerializer.Serialize(writer, DynamicDateFormatsValue, options); - } - - if (DynamicTemplatesValue is not null) - { - writer.WritePropertyName("dynamic_templates"); - JsonSerializer.Serialize(writer, DynamicTemplatesValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldNamesDescriptor is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesDescriptor, options); - } - else if (FieldNamesDescriptorAction is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.FieldNamesFieldDescriptor(FieldNamesDescriptorAction), options); - } - else if (FieldNamesValue is not null) - { - writer.WritePropertyName("_field_names"); - JsonSerializer.Serialize(writer, FieldNamesValue, options); - } - - if (IndexFieldDescriptor is not null) - { - writer.WritePropertyName("index_field"); - JsonSerializer.Serialize(writer, IndexFieldDescriptor, options); - } - else if (IndexFieldDescriptorAction is not null) - { - writer.WritePropertyName("index_field"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.IndexFieldDescriptor(IndexFieldDescriptorAction), options); - } - else if (IndexFieldValue is not null) - { - writer.WritePropertyName("index_field"); - JsonSerializer.Serialize(writer, IndexFieldValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("_meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NumericDetectionValue.HasValue) - { - writer.WritePropertyName("numeric_detection"); - writer.WriteBooleanValue(NumericDetectionValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (RoutingDescriptor is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingDescriptor, options); - } - else if (RoutingDescriptorAction is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.RoutingFieldDescriptor(RoutingDescriptorAction), options); - } - else if (RoutingValue is not null) - { - writer.WritePropertyName("_routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (RuntimeValue is not null) - { - writer.WritePropertyName("runtime"); - JsonSerializer.Serialize(writer, RuntimeValue, options); - } - - if (SizeDescriptor is not null) - { - writer.WritePropertyName("_size"); - JsonSerializer.Serialize(writer, SizeDescriptor, options); - } - else if (SizeDescriptorAction is not null) - { - writer.WritePropertyName("_size"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SizeFieldDescriptor(SizeDescriptorAction), options); - } - else if (SizeValue is not null) - { - writer.WritePropertyName("_size"); - JsonSerializer.Serialize(writer, SizeValue, options); - } - - if (SourceDescriptor is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceDescriptor, options); - } - else if (SourceDescriptorAction is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Mapping.SourceFieldDescriptor(SourceDescriptorAction), options); - } - else if (SourceValue is not null) - { - writer.WritePropertyName("_source"); - JsonSerializer.Serialize(writer, SourceValue, options); - } - - if (SubobjectsValue.HasValue) - { - writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index fbf3e48aad7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs +++ /dev/null @@ -1,710 +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.Mapping; - -public sealed partial class UnsignedLongNumberProperty : IProperty -{ - [JsonInclude, JsonPropertyName("boost")] - public double? Boost { get; set; } - [JsonInclude, JsonPropertyName("coerce")] - public bool? Coerce { get; set; } - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } - [JsonInclude, JsonPropertyName("index")] - public bool? Index { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public long? NullValue { get; set; } - [JsonInclude, JsonPropertyName("on_script_error")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? OnScriptError { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "unsigned_long"; -} - -public sealed partial class UnsignedLongNumberPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal UnsignedLongNumberPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public UnsignedLongNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public UnsignedLongNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public UnsignedLongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public UnsignedLongNumberPropertyDescriptor NullValue(long? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("unsigned_long"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} - -public sealed partial class UnsignedLongNumberPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal UnsignedLongNumberPropertyDescriptor(Action configure) => configure.Invoke(this); - - public UnsignedLongNumberPropertyDescriptor() : base() - { - } - - private double? BoostValue { get; set; } - private bool? CoerceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private bool? IgnoreMalformedValue { get; set; } - private bool? IndexValue { get; set; } - private IDictionary? MetaValue { get; set; } - private long? NullValueValue { get; set; } - 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 bool? StoreValue { get; set; } - - public UnsignedLongNumberPropertyDescriptor Boost(double? boost) - { - BoostValue = boost; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Coerce(bool? coerce = true) - { - CoerceValue = coerce; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) - { - IgnoreMalformedValue = ignoreMalformed; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Index(bool? index = true) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public UnsignedLongNumberPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public UnsignedLongNumberPropertyDescriptor NullValue(long? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Serverless.Mapping.OnScriptError? onScriptError) - { - OnScriptErrorValue = onScriptError; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public UnsignedLongNumberPropertyDescriptor 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 Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CoerceValue.HasValue) - { - writer.WritePropertyName("coerce"); - writer.WriteBooleanValue(CoerceValue.Value); - } - - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (IgnoreMalformedValue.HasValue) - { - writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); - } - - if (IndexValue.HasValue) - { - writer.WritePropertyName("index"); - writer.WriteBooleanValue(IndexValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (NullValueValue.HasValue) - { - writer.WritePropertyName("null_value"); - writer.WriteNumberValue(NullValueValue.Value); - } - - if (OnScriptErrorValue is not null) - { - writer.WritePropertyName("on_script_error"); - JsonSerializer.Serialize(writer, OnScriptErrorValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, 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 if (ScriptValue is not null) - { - writer.WritePropertyName("script"); - JsonSerializer.Serialize(writer, ScriptValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("unsigned_long"); - 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, - Coerce = CoerceValue, - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - IgnoreMalformed = IgnoreMalformedValue, - Index = IndexValue, - Meta = MetaValue, - NullValue = NullValueValue, - OnScriptError = OnScriptErrorValue, - Properties = PropertiesValue, - Script = BuildScript(), - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/VersionProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/VersionProperty.g.cs deleted file mode 100644 index 44e9c097d81..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/VersionProperty.g.cs +++ /dev/null @@ -1,392 +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.Mapping; - -public sealed partial class VersionProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "version"; -} - -public sealed partial class VersionPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal VersionPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public VersionPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public VersionPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public VersionPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public VersionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public VersionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public VersionPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public VersionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public VersionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("version"); - writer.WriteEndObject(); - } - - VersionProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class VersionPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal VersionPropertyDescriptor(Action configure) => configure.Invoke(this); - - public VersionPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public VersionPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public VersionPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public VersionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public VersionPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public VersionPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public VersionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public VersionPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public VersionPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("version"); - writer.WriteEndObject(); - } - - VersionProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/WildcardProperty.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/WildcardProperty.g.cs deleted file mode 100644 index 3361d4ac704..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Mapping/WildcardProperty.g.cs +++ /dev/null @@ -1,422 +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.Mapping; - -public sealed partial class WildcardProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("doc_values")] - public bool? DocValues { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("null_value")] - public string? NullValue { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "wildcard"; -} - -public sealed partial class WildcardPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal WildcardPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public WildcardPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public WildcardPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public WildcardPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public WildcardPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public WildcardPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public WildcardPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public WildcardPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public WildcardPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public WildcardPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("wildcard"); - writer.WriteEndObject(); - } - - WildcardProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} - -public sealed partial class WildcardPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal WildcardPropertyDescriptor(Action configure) => configure.Invoke(this); - - public WildcardPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? CopyToValue { get; set; } - private bool? DocValuesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private string? NullValueValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - - public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Serverless.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public WildcardPropertyDescriptor DocValues(bool? docValues = true) - { - DocValuesValue = docValues; - return Self; - } - - public WildcardPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Serverless.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public WildcardPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public WildcardPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public WildcardPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public WildcardPropertyDescriptor NullValue(string? nullValue) - { - NullValueValue = nullValue; - return Self; - } - - public WildcardPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public WildcardPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public WildcardPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DocValuesValue.HasValue) - { - writer.WritePropertyName("doc_values"); - writer.WriteBooleanValue(DocValuesValue.Value); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(NullValueValue)) - { - writer.WritePropertyName("null_value"); - writer.WriteStringValue(NullValueValue); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("wildcard"); - writer.WriteEndObject(); - } - - WildcardProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - DocValues = DocValuesValue, - Dynamic = DynamicValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - NullValue = NullValueValue, - Properties = PropertiesValue, - Store = StoreValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MergesStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MergesStats.g.cs deleted file mode 100644 index 753e79b1df6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/MergesStats.g.cs +++ /dev/null @@ -1,64 +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 MergesStats -{ - [JsonInclude, JsonPropertyName("current")] - public long Current { get; init; } - [JsonInclude, JsonPropertyName("current_docs")] - public long CurrentDocs { get; init; } - [JsonInclude, JsonPropertyName("current_size")] - public string? CurrentSize { get; init; } - [JsonInclude, JsonPropertyName("current_size_in_bytes")] - public long CurrentSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } - [JsonInclude, JsonPropertyName("total_auto_throttle")] - public string? TotalAutoThrottle { get; init; } - [JsonInclude, JsonPropertyName("total_auto_throttle_in_bytes")] - public long TotalAutoThrottleInBytes { get; init; } - [JsonInclude, JsonPropertyName("total_docs")] - public long TotalDocs { get; init; } - [JsonInclude, JsonPropertyName("total_size")] - public string? TotalSize { get; init; } - [JsonInclude, JsonPropertyName("total_size_in_bytes")] - public long TotalSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("total_stopped_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalStoppedTime { get; init; } - [JsonInclude, JsonPropertyName("total_stopped_time_in_millis")] - public long TotalStoppedTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total_throttled_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalThrottledTime { get; init; } - [JsonInclude, JsonPropertyName("total_throttled_time_in_millis")] - public long TotalThrottledTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NestedSortValue.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NestedSortValue.g.cs deleted file mode 100644 index 5178d99e8b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NestedSortValue.g.cs +++ /dev/null @@ -1,312 +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 NestedSortValue -{ - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - [JsonInclude, JsonPropertyName("max_children")] - public int? MaxChildren { get; set; } - [JsonInclude, JsonPropertyName("nested")] - public Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? Nested { get; set; } - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field Path { get; set; } -} - -public sealed partial class NestedSortValueDescriptor : SerializableDescriptor> -{ - internal NestedSortValueDescriptor(Action> configure) => configure.Invoke(this); - - public NestedSortValueDescriptor() : base() - { - } - - 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 int? MaxChildrenValue { 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.Field PathValue { get; set; } - - public NestedSortValueDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public NestedSortValueDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public NestedSortValueDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public NestedSortValueDescriptor MaxChildren(int? maxChildren) - { - MaxChildrenValue = maxChildren; - return Self; - } - - public NestedSortValueDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) - { - NestedDescriptor = null; - NestedDescriptorAction = null; - NestedValue = nested; - return Self; - } - - public NestedSortValueDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) - { - NestedValue = null; - NestedDescriptorAction = null; - NestedDescriptor = descriptor; - return Self; - } - - public NestedSortValueDescriptor Nested(Action> configure) - { - NestedValue = null; - NestedDescriptor = null; - NestedDescriptorAction = configure; - return Self; - } - - public NestedSortValueDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field path) - { - PathValue = path; - return Self; - } - - public NestedSortValueDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public NestedSortValueDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (MaxChildrenValue.HasValue) - { - writer.WritePropertyName("max_children"); - writer.WriteNumberValue(MaxChildrenValue.Value); - } - - 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); - } - - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class NestedSortValueDescriptor : SerializableDescriptor -{ - internal NestedSortValueDescriptor(Action configure) => configure.Invoke(this); - - public NestedSortValueDescriptor() : base() - { - } - - 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 int? MaxChildrenValue { 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.Field PathValue { get; set; } - - public NestedSortValueDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public NestedSortValueDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public NestedSortValueDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public NestedSortValueDescriptor MaxChildren(int? maxChildren) - { - MaxChildrenValue = maxChildren; - return Self; - } - - public NestedSortValueDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) - { - NestedDescriptor = null; - NestedDescriptorAction = null; - NestedValue = nested; - return Self; - } - - public NestedSortValueDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) - { - NestedValue = null; - NestedDescriptorAction = null; - NestedDescriptor = descriptor; - return Self; - } - - public NestedSortValueDescriptor Nested(Action configure) - { - NestedValue = null; - NestedDescriptor = null; - NestedDescriptorAction = configure; - return Self; - } - - public NestedSortValueDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field path) - { - PathValue = path; - return Self; - } - - public NestedSortValueDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public NestedSortValueDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (MaxChildrenValue.HasValue) - { - writer.WritePropertyName("max_children"); - writer.WriteNumberValue(MaxChildrenValue.Value); - } - - 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); - } - - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NodeStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NodeStatistics.g.cs deleted file mode 100644 index 7801aab5bc2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/NodeStatistics.g.cs +++ /dev/null @@ -1,62 +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; - -/// -/// -/// Contains statistics about the number of nodes selected by the request. -/// -/// -public sealed partial class NodeStatistics -{ - /// - /// - /// Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response. - /// - /// - [JsonInclude, JsonPropertyName("failed")] - public int Failed { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - - /// - /// - /// Number of nodes that responded successfully to the request. - /// - /// - [JsonInclude, JsonPropertyName("successful")] - public int Successful { get; init; } - - /// - /// - /// Total number of nodes selected by the request. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/AdaptiveSelection.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/AdaptiveSelection.g.cs deleted file mode 100644 index b4d43a43aae..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/AdaptiveSelection.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.Nodes; - -public sealed partial class AdaptiveSelection -{ - /// - /// - /// The exponentially weighted moving average queue size of search requests on the keyed node. - /// - /// - [JsonInclude, JsonPropertyName("avg_queue_size")] - public long? AvgQueueSize { get; init; } - - /// - /// - /// The exponentially weighted moving average response time of search requests on the keyed node. - /// - /// - [JsonInclude, JsonPropertyName("avg_response_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? AvgResponseTime { get; init; } - - /// - /// - /// The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node. - /// - /// - [JsonInclude, JsonPropertyName("avg_response_time_ns")] - public long? AvgResponseTimeNs { get; init; } - - /// - /// - /// The exponentially weighted moving average service time of search requests on the keyed node. - /// - /// - [JsonInclude, JsonPropertyName("avg_service_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? AvgServiceTime { get; init; } - - /// - /// - /// The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node. - /// - /// - [JsonInclude, JsonPropertyName("avg_service_time_ns")] - public long? AvgServiceTimeNs { get; init; } - - /// - /// - /// The number of outstanding search requests to the keyed node from the node these stats are for. - /// - /// - [JsonInclude, JsonPropertyName("outgoing_searches")] - public long? OutgoingSearches { get; init; } - - /// - /// - /// The rank of this node; used for shard selection when routing search requests. - /// - /// - [JsonInclude, JsonPropertyName("rank")] - public string? Rank { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Breaker.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Breaker.g.cs deleted file mode 100644 index fab0d9d7aa7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Breaker.g.cs +++ /dev/null @@ -1,79 +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.Nodes; - -public sealed partial class Breaker -{ - /// - /// - /// Estimated memory used for the operation. - /// - /// - [JsonInclude, JsonPropertyName("estimated_size")] - public string? EstimatedSize { get; init; } - - /// - /// - /// Estimated memory used, in bytes, for the operation. - /// - /// - [JsonInclude, JsonPropertyName("estimated_size_in_bytes")] - public long? EstimatedSizeInBytes { get; init; } - - /// - /// - /// Memory limit for the circuit breaker. - /// - /// - [JsonInclude, JsonPropertyName("limit_size")] - public string? LimitSize { get; init; } - - /// - /// - /// Memory limit, in bytes, for the circuit breaker. - /// - /// - [JsonInclude, JsonPropertyName("limit_size_in_bytes")] - public long? LimitSizeInBytes { get; init; } - - /// - /// - /// A constant that all estimates for the circuit breaker are multiplied with to calculate a final estimate. - /// - /// - [JsonInclude, JsonPropertyName("overhead")] - public float? Overhead { get; init; } - - /// - /// - /// Total number of times the circuit breaker has been triggered and prevented an out of memory error. - /// - /// - [JsonInclude, JsonPropertyName("tripped")] - public float? Tripped { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cgroup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cgroup.g.cs deleted file mode 100644 index 2674954d9dd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cgroup.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class Cgroup -{ - /// - /// - /// Contains statistics about cpu control group for the node. - /// - /// - [JsonInclude, JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.CgroupCpu? Cpu { get; init; } - - /// - /// - /// Contains statistics about cpuacct control group for the node. - /// - /// - [JsonInclude, JsonPropertyName("cpuacct")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.CpuAcct? Cpuacct { get; init; } - - /// - /// - /// Contains statistics about the memory control group for the node. - /// - /// - [JsonInclude, JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.CgroupMemory? Memory { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpu.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpu.g.cs deleted file mode 100644 index ac316444b9e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpu.g.cs +++ /dev/null @@ -1,63 +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.Nodes; - -public sealed partial class CgroupCpu -{ - /// - /// - /// The period of time, in microseconds, for how regularly all tasks in the same cgroup as the Elasticsearch process should have their access to CPU resources reallocated. - /// - /// - [JsonInclude, JsonPropertyName("cfs_period_micros")] - public int? CfsPeriodMicros { get; init; } - - /// - /// - /// The total amount of time, in microseconds, for which all tasks in the same cgroup as the Elasticsearch process can run during one period cfs_period_micros. - /// - /// - [JsonInclude, JsonPropertyName("cfs_quota_micros")] - public int? CfsQuotaMicros { get; init; } - - /// - /// - /// The cpu control group to which the Elasticsearch process belongs. - /// - /// - [JsonInclude, JsonPropertyName("control_group")] - public string? ControlGroup { get; init; } - - /// - /// - /// Contains CPU statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("stat")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.CgroupCpuStat? Stat { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpuStat.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpuStat.g.cs deleted file mode 100644 index 9e67a624179..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupCpuStat.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class CgroupCpuStat -{ - /// - /// - /// The number of reporting periods (as specified by cfs_period_micros) that have elapsed. - /// - /// - [JsonInclude, JsonPropertyName("number_of_elapsed_periods")] - public long? NumberOfElapsedPeriods { get; init; } - - /// - /// - /// The number of times all tasks in the same cgroup as the Elasticsearch process have been throttled. - /// - /// - [JsonInclude, JsonPropertyName("number_of_times_throttled")] - public long? NumberOfTimesThrottled { get; init; } - - /// - /// - /// The total amount of time, in nanoseconds, for which all tasks in the same cgroup as the Elasticsearch process have been throttled. - /// - /// - [JsonInclude, JsonPropertyName("time_throttled_nanos")] - public long? TimeThrottledNanos { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupMemory.g.cs deleted file mode 100644 index 9a4633174a2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CgroupMemory.g.cs +++ /dev/null @@ -1,58 +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.Nodes; - -public sealed partial class CgroupMemory -{ - /// - /// - /// The memory control group to which the Elasticsearch process belongs. - /// - /// - [JsonInclude, JsonPropertyName("control_group")] - public string? ControlGroup { get; init; } - - /// - /// - /// The maximum amount of user memory (including file cache) allowed for all tasks in the same cgroup as the Elasticsearch process. - /// This value can be too big to store in a long, so is returned as a string so that the value returned can exactly match what the underlying operating system interface returns. - /// Any value that is too large to parse into a long almost certainly means no limit has been set for the cgroup. - /// - /// - [JsonInclude, JsonPropertyName("limit_in_bytes")] - public string? LimitInBytes { get; init; } - - /// - /// - /// The total current memory usage by processes in the cgroup, in bytes, by all tasks in the same cgroup as the Elasticsearch process. - /// This value is stored as a string for consistency with limit_in_bytes. - /// - /// - [JsonInclude, JsonPropertyName("usage_in_bytes")] - public string? UsageInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Client.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Client.g.cs deleted file mode 100644 index cb3c999c09c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Client.g.cs +++ /dev/null @@ -1,121 +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.Nodes; - -public sealed partial class Client -{ - /// - /// - /// Reported agent for the HTTP client. - /// If unavailable, this property is not included in the response. - /// - /// - [JsonInclude, JsonPropertyName("agent")] - public string? Agent { get; init; } - - /// - /// - /// Time at which the client closed the connection if the connection is closed. - /// - /// - [JsonInclude, JsonPropertyName("closed_time_millis")] - public long? ClosedTimeMillis { get; init; } - - /// - /// - /// Unique ID for the HTTP client. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public long? Id { get; init; } - - /// - /// - /// Time of the most recent request from this client. - /// - /// - [JsonInclude, JsonPropertyName("last_request_time_millis")] - public long? LastRequestTimeMillis { get; init; } - - /// - /// - /// The URI of the client’s most recent request. - /// - /// - [JsonInclude, JsonPropertyName("last_uri")] - public string? LastUri { get; init; } - - /// - /// - /// Local address for the HTTP connection. - /// - /// - [JsonInclude, JsonPropertyName("local_address")] - public string? LocalAddress { get; init; } - - /// - /// - /// Time at which the client opened the connection. - /// - /// - [JsonInclude, JsonPropertyName("opened_time_millis")] - public long? OpenedTimeMillis { get; init; } - - /// - /// - /// Remote address for the HTTP connection. - /// - /// - [JsonInclude, JsonPropertyName("remote_address")] - public string? RemoteAddress { get; init; } - - /// - /// - /// Number of requests from this client. - /// - /// - [JsonInclude, JsonPropertyName("request_count")] - public long? RequestCount { get; init; } - - /// - /// - /// Cumulative size in bytes of all requests from this client. - /// - /// - [JsonInclude, JsonPropertyName("request_size_bytes")] - public long? RequestSizeBytes { get; init; } - - /// - /// - /// Value from the client’s x-opaque-id HTTP header. - /// If unavailable, this property is not included in the response. - /// - /// - [JsonInclude, JsonPropertyName("x_opaque_id")] - public string? XOpaqueId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterAppliedStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterAppliedStats.g.cs deleted file mode 100644 index 9aabe531713..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterAppliedStats.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class ClusterAppliedStats -{ - [JsonInclude, JsonPropertyName("recordings")] - public IReadOnlyCollection? Recordings { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateQueue.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateQueue.g.cs deleted file mode 100644 index c1810c4bf7b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateQueue.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class ClusterStateQueue -{ - /// - /// - /// Number of committed cluster states in queue. - /// - /// - [JsonInclude, JsonPropertyName("committed")] - public long? Committed { get; init; } - - /// - /// - /// Number of pending cluster states in queue. - /// - /// - [JsonInclude, JsonPropertyName("pending")] - public long? Pending { get; init; } - - /// - /// - /// Total number of cluster states in queue. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public long? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateUpdate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateUpdate.g.cs deleted file mode 100644 index 7db3719e5dc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ClusterStateUpdate.g.cs +++ /dev/null @@ -1,155 +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.Nodes; - -public sealed partial class ClusterStateUpdate -{ - /// - /// - /// The cumulative amount of time spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master. - /// - /// - [JsonInclude, JsonPropertyName("commit_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? CommitTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to commit, which measures the time from the start of each publication until a majority of the master-eligible nodes have written the state to disk and confirmed the write to the elected master. - /// - /// - [JsonInclude, JsonPropertyName("commit_time_millis")] - public long? CommitTimeMillis { get; init; } - - /// - /// - /// The cumulative amount of time spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state. - /// - /// - [JsonInclude, JsonPropertyName("completion_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? CompletionTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent waiting for a successful cluster state update to complete, which measures the time from the start of each publication until all the other nodes have notified the elected master that they have applied the cluster state. - /// - /// - [JsonInclude, JsonPropertyName("completion_time_millis")] - public long? CompletionTimeMillis { get; init; } - - /// - /// - /// The cumulative amount of time spent computing no-op cluster state updates since the node started. - /// - /// - [JsonInclude, JsonPropertyName("computation_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ComputationTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent computing no-op cluster state updates since the node started. - /// - /// - [JsonInclude, JsonPropertyName("computation_time_millis")] - public long? ComputationTimeMillis { get; init; } - - /// - /// - /// The cumulative amount of time spent constructing a publication context since the node started for publications that ultimately succeeded. - /// This statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference. - /// - /// - [JsonInclude, JsonPropertyName("context_construction_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ContextConstructionTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent constructing a publication context since the node started for publications that ultimately succeeded. - /// This statistic includes the time spent computing the difference between the current and new cluster state preparing a serialized representation of this difference. - /// - /// - [JsonInclude, JsonPropertyName("context_construction_time_millis")] - public long? ContextConstructionTimeMillis { get; init; } - - /// - /// - /// The number of cluster state update attempts that did not change the cluster state since the node started. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// The cumulative amount of time spent successfully applying cluster state updates on the elected master since the node started. - /// - /// - [JsonInclude, JsonPropertyName("master_apply_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterApplyTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent successfully applying cluster state updates on the elected master since the node started. - /// - /// - [JsonInclude, JsonPropertyName("master_apply_time_millis")] - public long? MasterApplyTimeMillis { get; init; } - - /// - /// - /// The cumulative amount of time spent notifying listeners of a no-op cluster state update since the node started. - /// - /// - [JsonInclude, JsonPropertyName("notification_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? NotificationTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent notifying listeners of a no-op cluster state update since the node started. - /// - /// - [JsonInclude, JsonPropertyName("notification_time_millis")] - public long? NotificationTimeMillis { get; init; } - - /// - /// - /// The cumulative amount of time spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update. - /// This includes the time measured by context_construction_time, commit_time, completion_time and master_apply_time. - /// - /// - [JsonInclude, JsonPropertyName("publication_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? PublicationTime { get; init; } - - /// - /// - /// The cumulative amount of time, in milliseconds, spent publishing cluster state updates which ultimately succeeded, which includes everything from the start of the publication (just after the computation of the new cluster state) until the publication has finished and the master node is ready to start processing the next state update. - /// This includes the time measured by context_construction_time, commit_time, completion_time and master_apply_time. - /// - /// - [JsonInclude, JsonPropertyName("publication_time_millis")] - public long? PublicationTimeMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Context.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Context.g.cs deleted file mode 100644 index 8b398ba6123..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Context.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class Context -{ - [JsonInclude, JsonPropertyName("cache_evictions")] - public long? CacheEvictions { get; init; } - [JsonInclude, JsonPropertyName("compilation_limit_triggered")] - public long? CompilationLimitTriggered { get; init; } - [JsonInclude, JsonPropertyName("compilations")] - public long? Compilations { get; init; } - [JsonInclude, JsonPropertyName("context")] - public string? Context2 { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cpu.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cpu.g.cs deleted file mode 100644 index 8bb79a6c6bc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Cpu.g.cs +++ /dev/null @@ -1,48 +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.Nodes; - -public sealed partial class Cpu -{ - [JsonInclude, JsonPropertyName("load_average")] - public IReadOnlyDictionary? LoadAverage { get; init; } - [JsonInclude, JsonPropertyName("percent")] - public int? Percent { get; init; } - [JsonInclude, JsonPropertyName("sys")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Sys { get; init; } - [JsonInclude, JsonPropertyName("sys_in_millis")] - public long? SysInMillis { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Total { get; init; } - [JsonInclude, JsonPropertyName("total_in_millis")] - public long? TotalInMillis { get; init; } - [JsonInclude, JsonPropertyName("user")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? User { get; init; } - [JsonInclude, JsonPropertyName("user_in_millis")] - public long? UserInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CpuAcct.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CpuAcct.g.cs deleted file mode 100644 index a3e9e956630..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/CpuAcct.g.cs +++ /dev/null @@ -1,47 +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.Nodes; - -public sealed partial class CpuAcct -{ - /// - /// - /// The cpuacct control group to which the Elasticsearch process belongs. - /// - /// - [JsonInclude, JsonPropertyName("control_group")] - public string? ControlGroup { get; init; } - - /// - /// - /// The total CPU time, in nanoseconds, consumed by all tasks in the same cgroup as the Elasticsearch process. - /// - /// - [JsonInclude, JsonPropertyName("usage_nanos")] - public long? UsageNanos { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DataPathStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DataPathStats.g.cs deleted file mode 100644 index 683715551ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DataPathStats.g.cs +++ /dev/null @@ -1,117 +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.Nodes; - -public sealed partial class DataPathStats -{ - /// - /// - /// Total amount of disk space available to this Java virtual machine on this file store. - /// - /// - [JsonInclude, JsonPropertyName("available")] - public string? Available { get; init; } - - /// - /// - /// Total number of bytes available to this Java virtual machine on this file store. - /// - /// - [JsonInclude, JsonPropertyName("available_in_bytes")] - public long? AvailableInBytes { get; init; } - [JsonInclude, JsonPropertyName("disk_queue")] - public string? DiskQueue { get; init; } - [JsonInclude, JsonPropertyName("disk_reads")] - public long? DiskReads { get; init; } - [JsonInclude, JsonPropertyName("disk_read_size")] - public string? DiskReadSize { get; init; } - [JsonInclude, JsonPropertyName("disk_read_size_in_bytes")] - public long? DiskReadSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("disk_writes")] - public long? DiskWrites { get; init; } - [JsonInclude, JsonPropertyName("disk_write_size")] - public string? DiskWriteSize { get; init; } - [JsonInclude, JsonPropertyName("disk_write_size_in_bytes")] - public long? DiskWriteSizeInBytes { get; init; } - - /// - /// - /// Total amount of unallocated disk space in the file store. - /// - /// - [JsonInclude, JsonPropertyName("free")] - public string? Free { get; init; } - - /// - /// - /// Total number of unallocated bytes in the file store. - /// - /// - [JsonInclude, JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - /// - /// - /// Mount point of the file store (for example: /dev/sda2). - /// - /// - [JsonInclude, JsonPropertyName("mount")] - public string? Mount { get; init; } - - /// - /// - /// Path to the file store. - /// - /// - [JsonInclude, JsonPropertyName("path")] - public string? Path { get; init; } - - /// - /// - /// Total size of the file store. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public string? Total { get; init; } - - /// - /// - /// Total size of the file store in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - - /// - /// - /// Type of the file store (ex: ext4). - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string? Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DeprecationIndexing.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DeprecationIndexing.g.cs deleted file mode 100644 index 8cb72e5d710..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/DeprecationIndexing.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class DeprecationIndexing -{ - [JsonInclude, JsonPropertyName("enabled")] - public object Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Discovery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Discovery.g.cs deleted file mode 100644 index 52403657f79..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Discovery.g.cs +++ /dev/null @@ -1,63 +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.Nodes; - -public sealed partial class Discovery -{ - [JsonInclude, JsonPropertyName("cluster_applier_stats")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.ClusterAppliedStats? ClusterApplierStats { get; init; } - - /// - /// - /// Contains statistics for the cluster state queue of the node. - /// - /// - [JsonInclude, JsonPropertyName("cluster_state_queue")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.ClusterStateQueue? ClusterStateQueue { get; init; } - - /// - /// - /// Contains low-level statistics about how long various activities took during cluster state updates while the node was the elected master. - /// Omitted if the node is not master-eligible. - /// Every field whose name ends in _time within this object is also represented as a raw number of milliseconds in a field whose name ends in _time_millis. - /// The human-readable fields with a _time suffix are only returned if requested with the ?human=true query parameter. - /// - /// - [JsonInclude, JsonPropertyName("cluster_state_update")] - public IReadOnlyDictionary? ClusterStateUpdate { get; init; } - - /// - /// - /// Contains statistics for the published cluster states of the node. - /// - /// - [JsonInclude, JsonPropertyName("published_cluster_states")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.PublishedClusterStates? PublishedClusterStates { get; init; } - [JsonInclude, JsonPropertyName("serialized_cluster_states")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.SerializedClusterState? SerializedClusterStates { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs deleted file mode 100644 index aebd1ec5b6e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ExtendedMemoryStats.g.cs +++ /dev/null @@ -1,92 +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.Nodes; - -public sealed partial class ExtendedMemoryStats -{ - /// - /// - /// If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value in bytes. - /// Otherwise it reports the same value as total_in_bytes. - /// - /// - [JsonInclude, JsonPropertyName("adjusted_total_in_bytes")] - public long? AdjustedTotalInBytes { get; init; } - - /// - /// - /// Amount of free physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - /// - /// - /// Percentage of free memory. - /// - /// - [JsonInclude, JsonPropertyName("free_percent")] - public int? FreePercent { get; init; } - [JsonInclude, JsonPropertyName("resident")] - public string? Resident { get; init; } - [JsonInclude, JsonPropertyName("resident_in_bytes")] - public long? ResidentInBytes { get; init; } - [JsonInclude, JsonPropertyName("share")] - public string? Share { get; init; } - [JsonInclude, JsonPropertyName("share_in_bytes")] - public long? ShareInBytes { get; init; } - - /// - /// - /// Total amount of physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - [JsonInclude, JsonPropertyName("total_virtual")] - public string? TotalVirtual { get; init; } - [JsonInclude, JsonPropertyName("total_virtual_in_bytes")] - public long? TotalVirtualInBytes { get; init; } - - /// - /// - /// Amount of used physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } - - /// - /// - /// Percentage of used memory. - /// - /// - [JsonInclude, JsonPropertyName("used_percent")] - public int? UsedPercent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystem.g.cs deleted file mode 100644 index 3282bb8dbc4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystem.g.cs +++ /dev/null @@ -1,64 +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.Nodes; - -public sealed partial class FileSystem -{ - /// - /// - /// List of all file stores. - /// - /// - [JsonInclude, JsonPropertyName("data")] - public IReadOnlyCollection? Data { get; init; } - - /// - /// - /// Contains I/O statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("io_stats")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.IoStats? IoStats { get; init; } - - /// - /// - /// Last time the file stores statistics were refreshed. - /// Recorded in milliseconds since the Unix Epoch. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - /// - /// - /// Contains statistics for all file stores of the node. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.FileSystemTotal? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystemTotal.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystemTotal.g.cs deleted file mode 100644 index 72d413c736d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/FileSystemTotal.g.cs +++ /dev/null @@ -1,83 +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.Nodes; - -public sealed partial class FileSystemTotal -{ - /// - /// - /// Total disk space available to this Java virtual machine on all file stores. - /// Depending on OS or process level restrictions, this might appear less than free. - /// This is the actual amount of free disk space the Elasticsearch node can utilise. - /// - /// - [JsonInclude, JsonPropertyName("available")] - public string? Available { get; init; } - - /// - /// - /// Total number of bytes available to this Java virtual machine on all file stores. - /// Depending on OS or process level restrictions, this might appear less than free_in_bytes. - /// This is the actual amount of free disk space the Elasticsearch node can utilise. - /// - /// - [JsonInclude, JsonPropertyName("available_in_bytes")] - public long? AvailableInBytes { get; init; } - - /// - /// - /// Total unallocated disk space in all file stores. - /// - /// - [JsonInclude, JsonPropertyName("free")] - public string? Free { get; init; } - - /// - /// - /// Total number of unallocated bytes in all file stores. - /// - /// - [JsonInclude, JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - - /// - /// - /// Total size of all file stores. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public string? Total { get; init; } - - /// - /// - /// Total size of all file stores in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollector.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollector.g.cs deleted file mode 100644 index 41ea9bdbf34..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollector.g.cs +++ /dev/null @@ -1,39 +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.Nodes; - -public sealed partial class GarbageCollector -{ - /// - /// - /// Contains statistics about JVM garbage collectors for the node. - /// - /// - [JsonInclude, JsonPropertyName("collectors")] - public IReadOnlyDictionary? Collectors { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs deleted file mode 100644 index d607a1a0849..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/GarbageCollectorTotal.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class GarbageCollectorTotal -{ - /// - /// - /// Total number of JVM garbage collectors that collect objects. - /// - /// - [JsonInclude, JsonPropertyName("collection_count")] - public long? CollectionCount { get; init; } - - /// - /// - /// Total time spent by JVM collecting objects. - /// - /// - [JsonInclude, JsonPropertyName("collection_time")] - public string? CollectionTime { get; init; } - - /// - /// - /// Total time, in milliseconds, spent by JVM collecting objects. - /// - /// - [JsonInclude, JsonPropertyName("collection_time_in_millis")] - public long? CollectionTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Http.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Http.g.cs deleted file mode 100644 index 460c81005a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Http.g.cs +++ /dev/null @@ -1,56 +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.Nodes; - -public sealed partial class Http -{ - /// - /// - /// Information on current and recently-closed HTTP client connections. - /// Clients that have been closed longer than the http.client_stats.closed_channels.max_age setting will not be represented here. - /// - /// - [JsonInclude, JsonPropertyName("clients")] - public IReadOnlyCollection? Clients { get; init; } - - /// - /// - /// Current number of open HTTP connections for the node. - /// - /// - [JsonInclude, JsonPropertyName("current_open")] - public int? CurrentOpen { get; init; } - - /// - /// - /// Total number of HTTP connections opened for the node. - /// - /// - [JsonInclude, JsonPropertyName("total_opened")] - public long? TotalOpened { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressure.g.cs deleted file mode 100644 index 371c8bc550d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressure.g.cs +++ /dev/null @@ -1,39 +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.Nodes; - -public sealed partial class IndexingPressure -{ - /// - /// - /// Contains statistics for memory consumption from indexing load. - /// - /// - [JsonInclude, JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.IndexingPressureMemory? Memory { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressureMemory.g.cs deleted file mode 100644 index 0becf6f3507..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IndexingPressureMemory.g.cs +++ /dev/null @@ -1,65 +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.Nodes; - -public sealed partial class IndexingPressureMemory -{ - /// - /// - /// Contains statistics for current indexing load. - /// - /// - [JsonInclude, JsonPropertyName("current")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.PressureMemory? Current { get; init; } - - /// - /// - /// Configured memory limit for the indexing requests. - /// Replica requests have an automatic limit that is 1.5x this value. - /// - /// - [JsonInclude, JsonPropertyName("limit")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Limit { get; init; } - - /// - /// - /// Configured memory limit, in bytes, for the indexing requests. - /// Replica requests have an automatic limit that is 1.5x this value. - /// - /// - [JsonInclude, JsonPropertyName("limit_in_bytes")] - public long? LimitInBytes { get; init; } - - /// - /// - /// Contains statistics for the cumulative indexing load since the node started. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.PressureMemory? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Ingest.g.cs deleted file mode 100644 index c2e5fcfda51..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Ingest.g.cs +++ /dev/null @@ -1,47 +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.Nodes; - -public sealed partial class Ingest -{ - /// - /// - /// Contains statistics about ingest pipelines for the node. - /// - /// - [JsonInclude, JsonPropertyName("pipelines")] - public IReadOnlyDictionary? Pipelines { get; init; } - - /// - /// - /// Contains statistics about ingest operations for the node. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.IngestTotal? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs deleted file mode 100644 index 14f02675ad2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestStats.g.cs +++ /dev/null @@ -1,92 +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.Nodes; - -public sealed partial class IngestStats -{ - /// - /// - /// Total number of documents ingested during the lifetime of this node. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// Total number of documents currently being ingested. - /// - /// - [JsonInclude, JsonPropertyName("current")] - public long Current { get; init; } - - /// - /// - /// Total number of failed ingest operations during the lifetime of this node. - /// - /// - [JsonInclude, JsonPropertyName("failed")] - public long Failed { get; init; } - - /// - /// - /// Total number of bytes of all documents ingested by the pipeline. - /// This field is only present on pipelines which are the first to process a document. - /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. - /// - /// - [JsonInclude, JsonPropertyName("ingested_as_first_pipeline_in_bytes")] - public long IngestedAsFirstPipelineInBytes { get; init; } - - /// - /// - /// Total number of ingest processors. - /// - /// - [JsonInclude, JsonPropertyName("processors")] - public IReadOnlyCollection> Processors { get; init; } - - /// - /// - /// Total number of bytes of all documents produced by the pipeline. - /// This field is only present on pipelines which are the first to process a document. - /// Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. - /// In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run. - /// - /// - [JsonInclude, JsonPropertyName("produced_as_first_pipeline_in_bytes")] - public long ProducedAsFirstPipelineInBytes { get; init; } - - /// - /// - /// Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node. - /// - /// - [JsonInclude, JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs deleted file mode 100644 index 353d8167d58..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IngestTotal.g.cs +++ /dev/null @@ -1,63 +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.Nodes; - -public sealed partial class IngestTotal -{ - /// - /// - /// Total number of documents ingested during the lifetime of this node. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - - /// - /// - /// Total number of documents currently being ingested. - /// - /// - [JsonInclude, JsonPropertyName("current")] - public long Current { get; init; } - - /// - /// - /// Total number of failed ingest operations during the lifetime of this node. - /// - /// - [JsonInclude, JsonPropertyName("failed")] - public long Failed { get; init; } - - /// - /// - /// Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node. - /// - /// - [JsonInclude, JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStatDevice.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStatDevice.g.cs deleted file mode 100644 index 2eb4d020c26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStatDevice.g.cs +++ /dev/null @@ -1,79 +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.Nodes; - -public sealed partial class IoStatDevice -{ - /// - /// - /// The Linux device name. - /// - /// - [JsonInclude, JsonPropertyName("device_name")] - public string? DeviceName { get; init; } - - /// - /// - /// The total number of read and write operations for the device completed since starting Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("operations")] - public long? Operations { get; init; } - - /// - /// - /// The total number of kilobytes read for the device since starting Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("read_kilobytes")] - public long? ReadKilobytes { get; init; } - - /// - /// - /// The total number of read operations for the device completed since starting Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("read_operations")] - public long? ReadOperations { get; init; } - - /// - /// - /// The total number of kilobytes written for the device since starting Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("write_kilobytes")] - public long? WriteKilobytes { get; init; } - - /// - /// - /// The total number of write operations for the device completed since starting Elasticsearch. - /// - /// - [JsonInclude, JsonPropertyName("write_operations")] - public long? WriteOperations { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStats.g.cs deleted file mode 100644 index 8ca58841b1d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/IoStats.g.cs +++ /dev/null @@ -1,48 +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.Nodes; - -public sealed partial class IoStats -{ - /// - /// - /// Array of disk metrics for each device that is backing an Elasticsearch data path. - /// These disk metrics are probed periodically and averages between the last probe and the current probe are computed. - /// - /// - [JsonInclude, JsonPropertyName("devices")] - public IReadOnlyCollection? Devices { get; init; } - - /// - /// - /// The sum of the disk metrics for all devices that back an Elasticsearch data path. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.IoStatDevice? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Jvm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Jvm.g.cs deleted file mode 100644 index ab1f138066c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Jvm.g.cs +++ /dev/null @@ -1,96 +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.Nodes; - -public sealed partial class Jvm -{ - /// - /// - /// Contains statistics about JVM buffer pools for the node. - /// - /// - [JsonInclude, JsonPropertyName("buffer_pools")] - public IReadOnlyDictionary? BufferPools { get; init; } - - /// - /// - /// Contains statistics about classes loaded by JVM for the node. - /// - /// - [JsonInclude, JsonPropertyName("classes")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.JvmClasses? Classes { get; init; } - - /// - /// - /// Contains statistics about JVM garbage collectors for the node. - /// - /// - [JsonInclude, JsonPropertyName("gc")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.GarbageCollector? Gc { get; init; } - - /// - /// - /// Contains JVM memory usage statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.JvmMemoryStats? Mem { get; init; } - - /// - /// - /// Contains statistics about JVM thread usage for the node. - /// - /// - [JsonInclude, JsonPropertyName("threads")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.JvmThreads? Threads { get; init; } - - /// - /// - /// Last time JVM statistics were refreshed. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - /// - /// - /// Human-readable JVM uptime. - /// Only returned if the human query parameter is true. - /// - /// - [JsonInclude, JsonPropertyName("uptime")] - public string? Uptime { get; init; } - - /// - /// - /// JVM uptime in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("uptime_in_millis")] - public long? UptimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmClasses.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmClasses.g.cs deleted file mode 100644 index 6bf3db7780e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmClasses.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class JvmClasses -{ - /// - /// - /// Number of classes currently loaded by JVM. - /// - /// - [JsonInclude, JsonPropertyName("current_loaded_count")] - public long? CurrentLoadedCount { get; init; } - - /// - /// - /// Total number of classes loaded since the JVM started. - /// - /// - [JsonInclude, JsonPropertyName("total_loaded_count")] - public long? TotalLoadedCount { get; init; } - - /// - /// - /// Total number of classes unloaded since the JVM started. - /// - /// - [JsonInclude, JsonPropertyName("total_unloaded_count")] - public long? TotalUnloadedCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmMemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmMemoryStats.g.cs deleted file mode 100644 index addf31ae4c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmMemoryStats.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.Nodes; - -public sealed partial class JvmMemoryStats -{ - /// - /// - /// Amount of memory, in bytes, available for use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("heap_committed_in_bytes")] - public long? HeapCommittedInBytes { get; init; } - - /// - /// - /// Maximum amount of memory, in bytes, available for use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("heap_max_in_bytes")] - public long? HeapMaxInBytes { get; init; } - - /// - /// - /// Memory, in bytes, currently in use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("heap_used_in_bytes")] - public long? HeapUsedInBytes { get; init; } - - /// - /// - /// Percentage of memory currently in use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("heap_used_percent")] - public long? HeapUsedPercent { get; init; } - - /// - /// - /// Amount of non-heap memory available, in bytes. - /// - /// - [JsonInclude, JsonPropertyName("non_heap_committed_in_bytes")] - public long? NonHeapCommittedInBytes { get; init; } - - /// - /// - /// Non-heap memory used, in bytes. - /// - /// - [JsonInclude, JsonPropertyName("non_heap_used_in_bytes")] - public long? NonHeapUsedInBytes { get; init; } - - /// - /// - /// Contains statistics about heap memory usage for the node. - /// - /// - [JsonInclude, JsonPropertyName("pools")] - public IReadOnlyDictionary? Pools { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmThreads.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmThreads.g.cs deleted file mode 100644 index 5152f8dc6bf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/JvmThreads.g.cs +++ /dev/null @@ -1,47 +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.Nodes; - -public sealed partial class JvmThreads -{ - /// - /// - /// Number of active threads in use by JVM. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } - - /// - /// - /// Highest number of threads used by JVM. - /// - /// - [JsonInclude, JsonPropertyName("peak_count")] - public long? PeakCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/KeyedProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/KeyedProcessor.g.cs deleted file mode 100644 index 244d17c4937..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/KeyedProcessor.g.cs +++ /dev/null @@ -1,36 +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.Nodes; - -public sealed partial class KeyedProcessor -{ - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Processor? Stats { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string? Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/MemoryStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/MemoryStats.g.cs deleted file mode 100644 index 8f65065e537..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/MemoryStats.g.cs +++ /dev/null @@ -1,76 +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.Nodes; - -public sealed partial class MemoryStats -{ - /// - /// - /// If the amount of physical memory has been overridden using the es.total_memory_bytes system property then this reports the overridden value in bytes. - /// Otherwise it reports the same value as total_in_bytes. - /// - /// - [JsonInclude, JsonPropertyName("adjusted_total_in_bytes")] - public long? AdjustedTotalInBytes { get; init; } - - /// - /// - /// Amount of free physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("free_in_bytes")] - public long? FreeInBytes { get; init; } - [JsonInclude, JsonPropertyName("resident")] - public string? Resident { get; init; } - [JsonInclude, JsonPropertyName("resident_in_bytes")] - public long? ResidentInBytes { get; init; } - [JsonInclude, JsonPropertyName("share")] - public string? Share { get; init; } - [JsonInclude, JsonPropertyName("share_in_bytes")] - public long? ShareInBytes { get; init; } - - /// - /// - /// Total amount of physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long? TotalInBytes { get; init; } - [JsonInclude, JsonPropertyName("total_virtual")] - public string? TotalVirtual { get; init; } - [JsonInclude, JsonPropertyName("total_virtual_in_bytes")] - public long? TotalVirtualInBytes { get; init; } - - /// - /// - /// Amount of used physical memory in bytes. - /// - /// - [JsonInclude, JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeBufferPool.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeBufferPool.g.cs deleted file mode 100644 index e5e0f06863c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeBufferPool.g.cs +++ /dev/null @@ -1,71 +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.Nodes; - -public sealed partial class NodeBufferPool -{ - /// - /// - /// Number of buffer pools. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } - - /// - /// - /// Total capacity of buffer pools. - /// - /// - [JsonInclude, JsonPropertyName("total_capacity")] - public string? TotalCapacity { get; init; } - - /// - /// - /// Total capacity of buffer pools in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_capacity_in_bytes")] - public long? TotalCapacityInBytes { get; init; } - - /// - /// - /// Size of buffer pools. - /// - /// - [JsonInclude, JsonPropertyName("used")] - public string? Used { get; init; } - - /// - /// - /// Size of buffer pools in bytes. - /// - /// - [JsonInclude, JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfo.g.cs deleted file mode 100644 index 092befcffef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfo.g.cs +++ /dev/null @@ -1,128 +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.Nodes; - -public sealed partial class NodeInfo -{ - [JsonInclude, JsonPropertyName("aggregations")] - public IReadOnlyDictionary? Aggregations { get; init; } - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary Attributes { get; init; } - [JsonInclude, JsonPropertyName("build_flavor")] - public string BuildFlavor { get; init; } - - /// - /// - /// Short hash of the last git commit in this release. - /// - /// - [JsonInclude, JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - [JsonInclude, JsonPropertyName("build_type")] - public string BuildType { get; init; } - - /// - /// - /// The node’s host name. - /// - /// - [JsonInclude, JsonPropertyName("host")] - public string Host { get; init; } - [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoHttp? Http { get; init; } - [JsonInclude, JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngest? Ingest { get; init; } - - /// - /// - /// The node’s IP address. - /// - /// - [JsonInclude, JsonPropertyName("ip")] - public string Ip { get; init; } - [JsonInclude, JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeJvmInfo? Jvm { get; init; } - [JsonInclude, JsonPropertyName("modules")] - public IReadOnlyCollection? Modules { get; init; } - - /// - /// - /// The node's name - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("network")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoNetwork? Network { get; init; } - [JsonInclude, JsonPropertyName("os")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeOperatingSystemInfo? Os { get; init; } - [JsonInclude, JsonPropertyName("plugins")] - public IReadOnlyCollection? Plugins { get; init; } - [JsonInclude, JsonPropertyName("process")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeProcessInfo? Process { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettings? Settings { get; init; } - [JsonInclude, JsonPropertyName("thread_pool")] - public IReadOnlyDictionary? ThreadPool { get; init; } - - /// - /// - /// Total heap allowed to be used to hold recently indexed documents before they must be written to disk. This size is a shared pool across all shards on this node, and is controlled by Indexing Buffer settings. - /// - /// - [JsonInclude, JsonPropertyName("total_indexing_buffer")] - public long? TotalIndexingBuffer { get; init; } - - /// - /// - /// Same as total_indexing_buffer, but expressed in bytes. - /// - /// - [JsonInclude, JsonPropertyName("total_indexing_buffer_in_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TotalIndexingBufferInBytes { get; init; } - [JsonInclude, JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoTransport? Transport { get; init; } - - /// - /// - /// Host and port where transport HTTP connections are accepted. - /// - /// - [JsonInclude, JsonPropertyName("transport_address")] - public string TransportAddress { get; init; } - - /// - /// - /// Elasticsearch version running on this node. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAction.g.cs deleted file mode 100644 index 6b90ccb9ef4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAction.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoAction -{ - [JsonInclude, JsonPropertyName("destructive_requires_name")] - public string DestructiveRequiresName { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAggregation.g.cs deleted file mode 100644 index 94978daa040..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoAggregation.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoAggregation -{ - [JsonInclude, JsonPropertyName("types")] - public IReadOnlyCollection Types { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs deleted file mode 100644 index d8412af0e41..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoBootstrap.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoBootstrap -{ - [JsonInclude, JsonPropertyName("memory_lock")] - public string MemoryLock { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoClient.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoClient.g.cs deleted file mode 100644 index 6bad11d739c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoClient.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoClient -{ - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoDiscover.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoDiscover.g.cs deleted file mode 100644 index ab16ddd86ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoDiscover.g.cs +++ /dev/null @@ -1,91 +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.Nodes; - -internal sealed partial class NodeInfoDiscoverConverter : JsonConverter -{ - public override NodeInfoDiscover Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyCollection? seedHosts = default; - IReadOnlyCollection? seedProviders = default; - string? type = default; - Dictionary additionalProperties = null; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "seed_hosts") - { - seedHosts = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "seed_providers") - { - seedProviders = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "type") - { - type = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - additionalProperties ??= new Dictionary(); - var additionalValue = JsonSerializer.Deserialize(ref reader, options); - additionalProperties.Add(property, additionalValue); - } - } - - return new NodeInfoDiscover { SeedHosts = seedHosts, SeedProviders = seedProviders, Settings = additionalProperties, Type = type }; - } - - public override void Write(Utf8JsonWriter writer, NodeInfoDiscover value, JsonSerializerOptions options) - { - throw new NotImplementedException("'NodeInfoDiscover' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(NodeInfoDiscoverConverter))] -public sealed partial class NodeInfoDiscover -{ - public IReadOnlyCollection? SeedHosts { get; init; } - public IReadOnlyCollection? SeedProviders { get; init; } - - /// - /// - /// Additional or alternative settings - /// - /// - public IReadOnlyDictionary Settings { get; init; } - public string? Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoHttp.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoHttp.g.cs deleted file mode 100644 index 69945e8eb95..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoHttp.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class NodeInfoHttp -{ - [JsonInclude, JsonPropertyName("bound_address")] - public IReadOnlyCollection BoundAddress { get; init; } - [JsonInclude, JsonPropertyName("max_content_length")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxContentLength { get; init; } - [JsonInclude, JsonPropertyName("max_content_length_in_bytes")] - public long MaxContentLengthInBytes { get; init; } - [JsonInclude, JsonPropertyName("publish_address")] - public string PublishAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngest.g.cs deleted file mode 100644 index 3c2871b2405..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngest.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoIngest -{ - [JsonInclude, JsonPropertyName("processors")] - public IReadOnlyCollection Processors { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs deleted file mode 100644 index 6dc0ca2bc65..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestDownloader.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoIngestDownloader -{ - [JsonInclude, JsonPropertyName("enabled")] - public string Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs deleted file mode 100644 index 32628dae7f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestInfo.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoIngestInfo -{ - [JsonInclude, JsonPropertyName("downloader")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestDownloader Downloader { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs deleted file mode 100644 index 79ce7c63935..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoIngestProcessor.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoIngestProcessor -{ - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs deleted file mode 100644 index 8d3df5869cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoJvmMemory.g.cs +++ /dev/null @@ -1,52 +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.Nodes; - -public sealed partial class NodeInfoJvmMemory -{ - [JsonInclude, JsonPropertyName("direct_max")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? DirectMax { get; init; } - [JsonInclude, JsonPropertyName("direct_max_in_bytes")] - public long DirectMaxInBytes { get; init; } - [JsonInclude, JsonPropertyName("heap_init")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? HeapInit { get; init; } - [JsonInclude, JsonPropertyName("heap_init_in_bytes")] - public long HeapInitInBytes { get; init; } - [JsonInclude, JsonPropertyName("heap_max")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? HeapMax { get; init; } - [JsonInclude, JsonPropertyName("heap_max_in_bytes")] - public long HeapMaxInBytes { get; init; } - [JsonInclude, JsonPropertyName("non_heap_init")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? NonHeapInit { get; init; } - [JsonInclude, JsonPropertyName("non_heap_init_in_bytes")] - public long NonHeapInitInBytes { get; init; } - [JsonInclude, JsonPropertyName("non_heap_max")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? NonHeapMax { get; init; } - [JsonInclude, JsonPropertyName("non_heap_max_in_bytes")] - public long NonHeapMaxInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoMemory.g.cs deleted file mode 100644 index c066ad19e2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoMemory.g.cs +++ /dev/null @@ -1,36 +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.Nodes; - -public sealed partial class NodeInfoMemory -{ - [JsonInclude, JsonPropertyName("total")] - public string Total { get; init; } - [JsonInclude, JsonPropertyName("total_in_bytes")] - public long TotalInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetwork.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetwork.g.cs deleted file mode 100644 index 8d1191ba01e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetwork.g.cs +++ /dev/null @@ -1,36 +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.Nodes; - -public sealed partial class NodeInfoNetwork -{ - [JsonInclude, JsonPropertyName("primary_interface")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoNetworkInterface PrimaryInterface { get; init; } - [JsonInclude, JsonPropertyName("refresh_interval")] - public int RefreshInterval { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs deleted file mode 100644 index 956666f7e5b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoNetworkInterface.g.cs +++ /dev/null @@ -1,38 +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.Nodes; - -public sealed partial class NodeInfoNetworkInterface -{ - [JsonInclude, JsonPropertyName("address")] - public string Address { get; init; } - [JsonInclude, JsonPropertyName("mac_address")] - public string MacAddress { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs deleted file mode 100644 index 9058a7c8060..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoOSCPU.g.cs +++ /dev/null @@ -1,48 +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.Nodes; - -public sealed partial class NodeInfoOSCPU -{ - [JsonInclude, JsonPropertyName("cache_size")] - public string CacheSize { get; init; } - [JsonInclude, JsonPropertyName("cache_size_in_bytes")] - public int CacheSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("cores_per_socket")] - public int CoresPerSocket { get; init; } - [JsonInclude, JsonPropertyName("mhz")] - public int Mhz { get; init; } - [JsonInclude, JsonPropertyName("model")] - public string Model { get; init; } - [JsonInclude, JsonPropertyName("total_cores")] - public int TotalCores { get; init; } - [JsonInclude, JsonPropertyName("total_sockets")] - public int TotalSockets { get; init; } - [JsonInclude, JsonPropertyName("vendor")] - public string Vendor { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs deleted file mode 100644 index c176bb5a08f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoPath.g.cs +++ /dev/null @@ -1,41 +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.Nodes; - -public sealed partial class NodeInfoPath -{ - [JsonInclude, JsonPropertyName("data")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? Data { get; init; } - [JsonInclude, JsonPropertyName("home")] - public string? Home { get; init; } - [JsonInclude, JsonPropertyName("logs")] - public string? Logs { get; init; } - [JsonInclude, JsonPropertyName("repo")] - public IReadOnlyCollection? Repo { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositories.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositories.g.cs deleted file mode 100644 index 9718b0765a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositories.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoRepositories -{ - [JsonInclude, JsonPropertyName("url")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoRepositoriesUrl Url { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs deleted file mode 100644 index 258c9dfb4fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoRepositoriesUrl.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoRepositoriesUrl -{ - [JsonInclude, JsonPropertyName("allowed_urls")] - public string AllowedUrls { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoScript.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoScript.g.cs deleted file mode 100644 index 8ab615c1633..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoScript.g.cs +++ /dev/null @@ -1,36 +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.Nodes; - -public sealed partial class NodeInfoScript -{ - [JsonInclude, JsonPropertyName("allowed_types")] - public string AllowedTypes { get; init; } - [JsonInclude, JsonPropertyName("disable_max_compilations_rate")] - public string? DisableMaxCompilationsRate { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearch.g.cs deleted file mode 100644 index e9854d0e224..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearch.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoSearch -{ - [JsonInclude, JsonPropertyName("remote")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSearchRemote Remote { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs deleted file mode 100644 index 3b98fd964f6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSearchRemote.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoSearchRemote -{ - [JsonInclude, JsonPropertyName("connect")] - public string Connect { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettings.g.cs deleted file mode 100644 index 2fb036e3376..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettings.g.cs +++ /dev/null @@ -1,62 +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.Nodes; - -public sealed partial class NodeInfoSettings -{ - [JsonInclude, JsonPropertyName("action")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoAction? Action { get; init; } - [JsonInclude, JsonPropertyName("bootstrap")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoBootstrap? Bootstrap { get; init; } - [JsonInclude, JsonPropertyName("client")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoClient? Client { get; init; } - [JsonInclude, JsonPropertyName("cluster")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsCluster Cluster { get; init; } - [JsonInclude, JsonPropertyName("discovery")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoDiscover? Discovery { get; init; } - [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsHttp Http { get; init; } - [JsonInclude, JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsIngest? Ingest { get; init; } - [JsonInclude, JsonPropertyName("network")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsNetwork? Network { get; init; } - [JsonInclude, JsonPropertyName("node")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsNode Node { get; init; } - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoPath? Path { get; init; } - [JsonInclude, JsonPropertyName("repositories")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoRepositories? Repositories { get; init; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoScript? Script { get; init; } - [JsonInclude, JsonPropertyName("search")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSearch? Search { get; init; } - [JsonInclude, JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsTransport Transport { get; init; } - [JsonInclude, JsonPropertyName("xpack")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpack? Xpack { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs deleted file mode 100644 index 968c8a7151b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsCluster.g.cs +++ /dev/null @@ -1,42 +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.Nodes; - -public sealed partial class NodeInfoSettingsCluster -{ - [JsonInclude, JsonPropertyName("deprecation_indexing")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.DeprecationIndexing? DeprecationIndexing { get; init; } - [JsonInclude, JsonPropertyName("election")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsClusterElection Election { get; init; } - [JsonInclude, JsonPropertyName("initial_master_nodes")] - public IReadOnlyCollection? InitialMasterNodes { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.IndexRouting? Routing { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs deleted file mode 100644 index 288df779762..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsClusterElection.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoSettingsClusterElection -{ - [JsonInclude, JsonPropertyName("strategy")] - public string Strategy { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs deleted file mode 100644 index 02888461cb1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttp.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class NodeInfoSettingsHttp -{ - [JsonInclude, JsonPropertyName("compression")] - public object? Compression { get; init; } - [JsonInclude, JsonPropertyName("port")] - public object? Port { get; init; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsHttpType Type { get; init; } - [JsonInclude, JsonPropertyName("type.default")] - public string? TypeDefault { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs deleted file mode 100644 index ea8d393b8c3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsHttpType.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoSettingsHttpType -{ - [JsonInclude, JsonPropertyName("default")] - public string Default { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs deleted file mode 100644 index 151231c9ef4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsIngest.g.cs +++ /dev/null @@ -1,100 +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.Nodes; - -public sealed partial class NodeInfoSettingsIngest -{ - [JsonInclude, JsonPropertyName("append")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Append { get; init; } - [JsonInclude, JsonPropertyName("attachment")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Attachment { get; init; } - [JsonInclude, JsonPropertyName("bytes")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Bytes { get; init; } - [JsonInclude, JsonPropertyName("circle")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Circle { get; init; } - [JsonInclude, JsonPropertyName("convert")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Convert { get; init; } - [JsonInclude, JsonPropertyName("csv")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Csv { get; init; } - [JsonInclude, JsonPropertyName("date")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Date { get; init; } - [JsonInclude, JsonPropertyName("date_index_name")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? DateIndexName { get; init; } - [JsonInclude, JsonPropertyName("dissect")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Dissect { get; init; } - [JsonInclude, JsonPropertyName("dot_expander")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? DotExpander { get; init; } - [JsonInclude, JsonPropertyName("drop")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Drop { get; init; } - [JsonInclude, JsonPropertyName("enrich")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Enrich { get; init; } - [JsonInclude, JsonPropertyName("fail")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Fail { get; init; } - [JsonInclude, JsonPropertyName("foreach")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Foreach { get; init; } - [JsonInclude, JsonPropertyName("geoip")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Geoip { get; init; } - [JsonInclude, JsonPropertyName("grok")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Grok { get; init; } - [JsonInclude, JsonPropertyName("gsub")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Gsub { get; init; } - [JsonInclude, JsonPropertyName("inference")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Inference { get; init; } - [JsonInclude, JsonPropertyName("join")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Join { get; init; } - [JsonInclude, JsonPropertyName("json")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Json { get; init; } - [JsonInclude, JsonPropertyName("kv")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Kv { get; init; } - [JsonInclude, JsonPropertyName("lowercase")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Lowercase { get; init; } - [JsonInclude, JsonPropertyName("pipeline")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Pipeline { get; init; } - [JsonInclude, JsonPropertyName("remove")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Remove { get; init; } - [JsonInclude, JsonPropertyName("rename")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Rename { get; init; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Script { get; init; } - [JsonInclude, JsonPropertyName("set")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Set { get; init; } - [JsonInclude, JsonPropertyName("set_security_user")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? SetSecurityUser { get; init; } - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Sort { get; init; } - [JsonInclude, JsonPropertyName("split")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Split { get; init; } - [JsonInclude, JsonPropertyName("trim")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Trim { get; init; } - [JsonInclude, JsonPropertyName("uppercase")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? Uppercase { get; init; } - [JsonInclude, JsonPropertyName("urldecode")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? UrlDecode { get; init; } - [JsonInclude, JsonPropertyName("user_agent")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoIngestInfo? UserAgent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs deleted file mode 100644 index f845950e3bb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNetwork.g.cs +++ /dev/null @@ -1,35 +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.Nodes; - -public sealed partial class NodeInfoSettingsNetwork -{ - [JsonInclude, JsonPropertyName("host")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? Host { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs deleted file mode 100644 index 8168ac2f90f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsNode.g.cs +++ /dev/null @@ -1,38 +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.Nodes; - -public sealed partial class NodeInfoSettingsNode -{ - [JsonInclude, JsonPropertyName("attr")] - public IReadOnlyDictionary Attr { get; init; } - [JsonInclude, JsonPropertyName("max_local_storage_nodes")] - public string? MaxLocalStorageNodes { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs deleted file mode 100644 index cc28d76d736..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransport.g.cs +++ /dev/null @@ -1,38 +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.Nodes; - -public sealed partial class NodeInfoSettingsTransport -{ - [JsonInclude, JsonPropertyName("features")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsTransportFeatures? Features { get; init; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoSettingsTransportType Type { get; init; } - [JsonInclude, JsonPropertyName("type.default")] - public string? TypeDefault { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs deleted file mode 100644 index 886e689d0f4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportFeatures.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoSettingsTransportFeatures -{ - [JsonInclude, JsonPropertyName("x-pack")] - public string XPack { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs deleted file mode 100644 index f08f1144e14..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoSettingsTransportType.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoSettingsTransportType -{ - [JsonInclude, JsonPropertyName("default")] - public string Default { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoTransport.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoTransport.g.cs deleted file mode 100644 index 5269e6ea2b7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoTransport.g.cs +++ /dev/null @@ -1,38 +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.Nodes; - -public sealed partial class NodeInfoTransport -{ - [JsonInclude, JsonPropertyName("bound_address")] - public IReadOnlyCollection BoundAddress { get; init; } - [JsonInclude, JsonPropertyName("profiles")] - public IReadOnlyDictionary Profiles { get; init; } - [JsonInclude, JsonPropertyName("publish_address")] - public string PublishAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs deleted file mode 100644 index 5e6d49c491c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpack.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class NodeInfoXpack -{ - [JsonInclude, JsonPropertyName("license")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackLicense? License { get; init; } - [JsonInclude, JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackMl? Ml { get; init; } - [JsonInclude, JsonPropertyName("notification")] - public IReadOnlyDictionary? Notification { get; init; } - [JsonInclude, JsonPropertyName("security")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurity Security { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs deleted file mode 100644 index afba9836083..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicense.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoXpackLicense -{ - [JsonInclude, JsonPropertyName("self_generated")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackLicenseType SelfGenerated { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs deleted file mode 100644 index b49b2818b15..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackLicenseType.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoXpackLicenseType -{ - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs deleted file mode 100644 index 0d47e32199a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackMl.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoXpackMl -{ - [JsonInclude, JsonPropertyName("use_auto_machine_memory_percent")] - public bool? UseAutoMachineMemoryPercent { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs deleted file mode 100644 index 52f87efcbca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurity.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class NodeInfoXpackSecurity -{ - [JsonInclude, JsonPropertyName("authc")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthc? Authc { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public string Enabled { get; init; } - [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecuritySsl? Http { get; init; } - [JsonInclude, JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecuritySsl? Transport { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs deleted file mode 100644 index 4926312fafa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthc.g.cs +++ /dev/null @@ -1,36 +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.Nodes; - -public sealed partial class NodeInfoXpackSecurityAuthc -{ - [JsonInclude, JsonPropertyName("realms")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthcRealms? Realms { get; init; } - [JsonInclude, JsonPropertyName("token")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoXpackSecurityAuthcToken? Token { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs deleted file mode 100644 index 77608ca0d26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealms.g.cs +++ /dev/null @@ -1,38 +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.Nodes; - -public sealed partial class NodeInfoXpackSecurityAuthcRealms -{ - [JsonInclude, JsonPropertyName("file")] - public IReadOnlyDictionary? File { get; init; } - [JsonInclude, JsonPropertyName("native")] - public IReadOnlyDictionary? Native { get; init; } - [JsonInclude, JsonPropertyName("pki")] - public IReadOnlyDictionary? Pki { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs deleted file mode 100644 index bfb4d658e7a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcRealmsStatus.g.cs +++ /dev/null @@ -1,36 +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.Nodes; - -public sealed partial class NodeInfoXpackSecurityAuthcRealmsStatus -{ - [JsonInclude, JsonPropertyName("enabled")] - public string? Enabled { get; init; } - [JsonInclude, JsonPropertyName("order")] - public string Order { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs deleted file mode 100644 index c9fdc45c15a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecurityAuthcToken.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoXpackSecurityAuthcToken -{ - [JsonInclude, JsonPropertyName("enabled")] - public string Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs deleted file mode 100644 index 0e8ee43122f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeInfoXpackSecuritySsl.g.cs +++ /dev/null @@ -1,34 +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.Nodes; - -public sealed partial class NodeInfoXpackSecuritySsl -{ - [JsonInclude, JsonPropertyName("ssl")] - public IReadOnlyDictionary Ssl { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeJvmInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeJvmInfo.g.cs deleted file mode 100644 index 9c93c25fd84..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeJvmInfo.g.cs +++ /dev/null @@ -1,151 +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.Nodes; - -internal sealed partial class NodeJvmInfoConverter : JsonConverter -{ - public override NodeJvmInfo Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyCollection gcCollectors = default; - IReadOnlyCollection inputArguments = default; - Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoJvmMemory mem = default; - IReadOnlyCollection memoryPools = default; - int pid = default; - long startTimeInMillis = default; - bool usingBundledJdk = default; - object? usingCompressedOrdinaryObjectPointers = default; - string version = default; - string vmName = default; - string vmVendor = default; - string vmVersion = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "gc_collectors") - { - gcCollectors = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "input_arguments") - { - inputArguments = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "mem") - { - mem = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "memory_pools") - { - memoryPools = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "pid") - { - pid = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "start_time_in_millis") - { - startTimeInMillis = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "using_bundled_jdk" || property == "bundled_jdk") - { - usingBundledJdk = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "using_compressed_ordinary_object_pointers") - { - usingCompressedOrdinaryObjectPointers = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "version") - { - version = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "vm_name") - { - vmName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "vm_vendor") - { - vmVendor = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "vm_version") - { - vmVersion = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return new NodeJvmInfo { GcCollectors = gcCollectors, InputArguments = inputArguments, Mem = mem, MemoryPools = memoryPools, Pid = pid, StartTimeInMillis = startTimeInMillis, UsingBundledJdk = usingBundledJdk, UsingCompressedOrdinaryObjectPointers = usingCompressedOrdinaryObjectPointers, Version = version, VmName = vmName, VmVendor = vmVendor, VmVersion = vmVersion }; - } - - public override void Write(Utf8JsonWriter writer, NodeJvmInfo value, JsonSerializerOptions options) - { - throw new NotImplementedException("'NodeJvmInfo' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(NodeJvmInfoConverter))] -public sealed partial class NodeJvmInfo -{ - public IReadOnlyCollection GcCollectors { get; init; } - public IReadOnlyCollection InputArguments { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoJvmMemory Mem { get; init; } - public IReadOnlyCollection MemoryPools { get; init; } - public int Pid { get; init; } - public long StartTimeInMillis { get; init; } - public bool UsingBundledJdk { get; init; } - public object? UsingCompressedOrdinaryObjectPointers { get; init; } - public string Version { get; init; } - public string VmName { get; init; } - public string VmVendor { get; init; } - public string VmVersion { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeOperatingSystemInfo.g.cs deleted file mode 100644 index b014ef505d9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeOperatingSystemInfo.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.Nodes; - -public sealed partial class NodeOperatingSystemInfo -{ - /// - /// - /// The number of processors actually used to calculate thread pool size. This number can be set with the node.processors setting of a node and defaults to the number of processors reported by the OS. - /// - /// - [JsonInclude, JsonPropertyName("allocated_processors")] - public int? AllocatedProcessors { get; init; } - - /// - /// - /// Name of the JVM architecture (ex: amd64, x86) - /// - /// - [JsonInclude, JsonPropertyName("arch")] - public string Arch { get; init; } - - /// - /// - /// Number of processors available to the Java virtual machine - /// - /// - [JsonInclude, JsonPropertyName("available_processors")] - public int AvailableProcessors { get; init; } - [JsonInclude, JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoOSCPU? Cpu { get; init; } - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoMemory? Mem { get; init; } - - /// - /// - /// Name of the operating system (ex: Linux, Windows, Mac OS X) - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("pretty_name")] - public string PrettyName { get; init; } - - /// - /// - /// Refresh interval for the OS statistics - /// - /// - [JsonInclude, JsonPropertyName("refresh_interval_in_millis")] - public long RefreshIntervalInMillis { get; init; } - [JsonInclude, JsonPropertyName("swap")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.NodeInfoMemory? Swap { get; init; } - - /// - /// - /// Version of the operating system - /// - /// - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeProcessInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeProcessInfo.g.cs deleted file mode 100644 index d5b613ae01a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeProcessInfo.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class NodeProcessInfo -{ - /// - /// - /// Process identifier (PID) - /// - /// - [JsonInclude, JsonPropertyName("id")] - public long Id { get; init; } - - /// - /// - /// Indicates if the process address space has been successfully locked in memory - /// - /// - [JsonInclude, JsonPropertyName("mlockall")] - public bool Mlockall { get; init; } - - /// - /// - /// Refresh interval for the process statistics - /// - /// - [JsonInclude, JsonPropertyName("refresh_interval_in_millis")] - public long RefreshIntervalInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs deleted file mode 100644 index a84f939b43d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeThreadPoolInfo.g.cs +++ /dev/null @@ -1,44 +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.Nodes; - -public sealed partial class NodeThreadPoolInfo -{ - [JsonInclude, JsonPropertyName("core")] - public int? Core { get; init; } - [JsonInclude, JsonPropertyName("keep_alive")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; init; } - [JsonInclude, JsonPropertyName("max")] - public int? Max { get; init; } - [JsonInclude, JsonPropertyName("queue_size")] - public int QueueSize { get; init; } - [JsonInclude, JsonPropertyName("size")] - public int? Size { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeUsage.g.cs deleted file mode 100644 index 863d6b5e813..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/NodeUsage.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class NodeUsage -{ - [JsonInclude, JsonPropertyName("aggregations")] - public IReadOnlyDictionary Aggregations { get; init; } - [JsonInclude, JsonPropertyName("rest_actions")] - public IReadOnlyDictionary RestActions { get; init; } - [JsonInclude, JsonPropertyName("since")] - public long Since { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public long Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/OperatingSystem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/OperatingSystem.g.cs deleted file mode 100644 index 52814ad83fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/OperatingSystem.g.cs +++ /dev/null @@ -1,42 +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.Nodes; - -public sealed partial class OperatingSystem -{ - [JsonInclude, JsonPropertyName("cgroup")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Cgroup? Cgroup { get; init; } - [JsonInclude, JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Cpu? Cpu { get; init; } - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.ExtendedMemoryStats? Mem { get; init; } - [JsonInclude, JsonPropertyName("swap")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.MemoryStats? Swap { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Pool.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Pool.g.cs deleted file mode 100644 index bca37f58d78..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Pool.g.cs +++ /dev/null @@ -1,63 +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.Nodes; - -public sealed partial class Pool -{ - /// - /// - /// Maximum amount of memory, in bytes, available for use by the heap. - /// - /// - [JsonInclude, JsonPropertyName("max_in_bytes")] - public long? MaxInBytes { get; init; } - - /// - /// - /// Largest amount of memory, in bytes, historically used by the heap. - /// - /// - [JsonInclude, JsonPropertyName("peak_max_in_bytes")] - public long? PeakMaxInBytes { get; init; } - - /// - /// - /// Largest amount of memory, in bytes, historically used by the heap. - /// - /// - [JsonInclude, JsonPropertyName("peak_used_in_bytes")] - public long? PeakUsedInBytes { get; init; } - - /// - /// - /// Memory, in bytes, used by the heap. - /// - /// - [JsonInclude, JsonPropertyName("used_in_bytes")] - public long? UsedInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PressureMemory.g.cs deleted file mode 100644 index cccfef83ab1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PressureMemory.g.cs +++ /dev/null @@ -1,137 +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.Nodes; - -public sealed partial class PressureMemory -{ - /// - /// - /// Memory consumed by indexing requests in the coordinating, primary, or replica stage. - /// - /// - [JsonInclude, JsonPropertyName("all")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? All { get; init; } - - /// - /// - /// Memory consumed, in bytes, by indexing requests in the coordinating, primary, or replica stage. - /// - /// - [JsonInclude, JsonPropertyName("all_in_bytes")] - public long? AllInBytes { get; init; } - - /// - /// - /// Memory consumed by indexing requests in the coordinating or primary stage. - /// This value is not the sum of coordinating and primary as a node can reuse the coordinating memory if the primary stage is executed locally. - /// - /// - [JsonInclude, JsonPropertyName("combined_coordinating_and_primary")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? CombinedCoordinatingAndPrimary { get; init; } - - /// - /// - /// Memory consumed, in bytes, by indexing requests in the coordinating or primary stage. - /// This value is not the sum of coordinating and primary as a node can reuse the coordinating memory if the primary stage is executed locally. - /// - /// - [JsonInclude, JsonPropertyName("combined_coordinating_and_primary_in_bytes")] - public long? CombinedCoordinatingAndPrimaryInBytes { get; init; } - - /// - /// - /// Memory consumed by indexing requests in the coordinating stage. - /// - /// - [JsonInclude, JsonPropertyName("coordinating")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Coordinating { get; init; } - - /// - /// - /// Memory consumed, in bytes, by indexing requests in the coordinating stage. - /// - /// - [JsonInclude, JsonPropertyName("coordinating_in_bytes")] - public long? CoordinatingInBytes { get; init; } - - /// - /// - /// Number of indexing requests rejected in the coordinating stage. - /// - /// - [JsonInclude, JsonPropertyName("coordinating_rejections")] - public long? CoordinatingRejections { get; init; } - - /// - /// - /// Memory consumed by indexing requests in the primary stage. - /// - /// - [JsonInclude, JsonPropertyName("primary")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Primary { get; init; } - - /// - /// - /// Memory consumed, in bytes, by indexing requests in the primary stage. - /// - /// - [JsonInclude, JsonPropertyName("primary_in_bytes")] - public long? PrimaryInBytes { get; init; } - - /// - /// - /// Number of indexing requests rejected in the primary stage. - /// - /// - [JsonInclude, JsonPropertyName("primary_rejections")] - public long? PrimaryRejections { get; init; } - - /// - /// - /// Memory consumed by indexing requests in the replica stage. - /// - /// - [JsonInclude, JsonPropertyName("replica")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Replica { get; init; } - - /// - /// - /// Memory consumed, in bytes, by indexing requests in the replica stage. - /// - /// - [JsonInclude, JsonPropertyName("replica_in_bytes")] - public long? ReplicaInBytes { get; init; } - - /// - /// - /// Number of indexing requests rejected in the replica stage. - /// - /// - [JsonInclude, JsonPropertyName("replica_rejections")] - public long? ReplicaRejections { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Process.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Process.g.cs deleted file mode 100644 index bea16be24ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Process.g.cs +++ /dev/null @@ -1,72 +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.Nodes; - -public sealed partial class Process -{ - /// - /// - /// Contains CPU statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("cpu")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Cpu? Cpu { get; init; } - - /// - /// - /// Maximum number of file descriptors allowed on the system, or -1 if not supported. - /// - /// - [JsonInclude, JsonPropertyName("max_file_descriptors")] - public int? MaxFileDescriptors { get; init; } - - /// - /// - /// Contains virtual memory statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("mem")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.MemoryStats? Mem { get; init; } - - /// - /// - /// Number of opened file descriptors associated with the current or -1 if not supported. - /// - /// - [JsonInclude, JsonPropertyName("open_file_descriptors")] - public int? OpenFileDescriptors { get; init; } - - /// - /// - /// Last time the statistics were refreshed. - /// Recorded in milliseconds since the Unix Epoch. - /// - /// - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Processor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Processor.g.cs deleted file mode 100644 index 20fb3fa42cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Processor.g.cs +++ /dev/null @@ -1,63 +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.Nodes; - -public sealed partial class Processor -{ - /// - /// - /// Number of documents transformed by the processor. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } - - /// - /// - /// Number of documents currently being transformed by the processor. - /// - /// - [JsonInclude, JsonPropertyName("current")] - public long? Current { get; init; } - - /// - /// - /// Number of failed operations for the processor. - /// - /// - [JsonInclude, JsonPropertyName("failed")] - public long? Failed { get; init; } - - /// - /// - /// Time, in milliseconds, spent by the processor transforming documents. - /// - /// - [JsonInclude, JsonPropertyName("time_in_millis")] - public long? TimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PublishedClusterStates.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PublishedClusterStates.g.cs deleted file mode 100644 index 0db9e471302..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/PublishedClusterStates.g.cs +++ /dev/null @@ -1,55 +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.Nodes; - -public sealed partial class PublishedClusterStates -{ - /// - /// - /// Number of compatible differences between published cluster states. - /// - /// - [JsonInclude, JsonPropertyName("compatible_diffs")] - public long? CompatibleDiffs { get; init; } - - /// - /// - /// Number of published cluster states. - /// - /// - [JsonInclude, JsonPropertyName("full_states")] - public long? FullStates { get; init; } - - /// - /// - /// Number of incompatible differences between published cluster states. - /// - /// - [JsonInclude, JsonPropertyName("incompatible_diffs")] - public long? IncompatibleDiffs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Recording.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Recording.g.cs deleted file mode 100644 index f2b7043c8ed..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Recording.g.cs +++ /dev/null @@ -1,40 +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.Nodes; - -public sealed partial class Recording -{ - [JsonInclude, JsonPropertyName("cumulative_execution_count")] - public long? CumulativeExecutionCount { get; init; } - [JsonInclude, JsonPropertyName("cumulative_execution_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? CumulativeExecutionTime { get; init; } - [JsonInclude, JsonPropertyName("cumulative_execution_time_millis")] - public long? CumulativeExecutionTimeMillis { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ScriptCache.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ScriptCache.g.cs deleted file mode 100644 index b0fbd84d21b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ScriptCache.g.cs +++ /dev/null @@ -1,57 +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.Nodes; - -public sealed partial class ScriptCache -{ - /// - /// - /// Total number of times the script cache has evicted old data. - /// - /// - [JsonInclude, JsonPropertyName("cache_evictions")] - public long? CacheEvictions { get; init; } - - /// - /// - /// Total number of times the script compilation circuit breaker has limited inline script compilations. - /// - /// - [JsonInclude, JsonPropertyName("compilation_limit_triggered")] - public long? CompilationLimitTriggered { get; init; } - - /// - /// - /// Total number of inline script compilations performed by the node. - /// - /// - [JsonInclude, JsonPropertyName("compilations")] - public long? Compilations { get; init; } - [JsonInclude, JsonPropertyName("context")] - public string? Context { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Scripting.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Scripting.g.cs deleted file mode 100644 index 46a5d2cc55e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Scripting.g.cs +++ /dev/null @@ -1,65 +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.Nodes; - -public sealed partial class Scripting -{ - /// - /// - /// Total number of times the script cache has evicted old data. - /// - /// - [JsonInclude, JsonPropertyName("cache_evictions")] - public long? CacheEvictions { get; init; } - - /// - /// - /// Total number of times the script compilation circuit breaker has limited inline script compilations. - /// - /// - [JsonInclude, JsonPropertyName("compilation_limit_triggered")] - public long? CompilationLimitTriggered { get; init; } - - /// - /// - /// Total number of inline script compilations performed by the node. - /// - /// - [JsonInclude, JsonPropertyName("compilations")] - public long? Compilations { get; init; } - - /// - /// - /// Contains this recent history of script compilations. - /// - /// - [JsonInclude, JsonPropertyName("compilations_history")] - public IReadOnlyDictionary? CompilationsHistory { get; init; } - [JsonInclude, JsonPropertyName("contexts")] - public IReadOnlyCollection? Contexts { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterState.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterState.g.cs deleted file mode 100644 index 7ccf28e95af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterState.g.cs +++ /dev/null @@ -1,42 +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.Nodes; - -public sealed partial class SerializedClusterState -{ - [JsonInclude, JsonPropertyName("diffs")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.SerializedClusterStateDetail? Diffs { get; init; } - - /// - /// - /// Number of published cluster states. - /// - /// - [JsonInclude, JsonPropertyName("full_states")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.SerializedClusterStateDetail? FullStates { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs deleted file mode 100644 index 3fd7c5a09f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/SerializedClusterStateDetail.g.cs +++ /dev/null @@ -1,42 +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.Nodes; - -public sealed partial class SerializedClusterStateDetail -{ - [JsonInclude, JsonPropertyName("compressed_size")] - public string? CompressedSize { get; init; } - [JsonInclude, JsonPropertyName("compressed_size_in_bytes")] - public long? CompressedSizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } - [JsonInclude, JsonPropertyName("uncompressed_size")] - public string? UncompressedSize { get; init; } - [JsonInclude, JsonPropertyName("uncompressed_size_in_bytes")] - public long? UncompressedSizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Stats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Stats.g.cs deleted file mode 100644 index 5fa4360b7c1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Stats.g.cs +++ /dev/null @@ -1,198 +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.Nodes; - -public sealed partial class Stats -{ - /// - /// - /// Statistics about adaptive replica selection. - /// - /// - [JsonInclude, JsonPropertyName("adaptive_selection")] - public IReadOnlyDictionary? AdaptiveSelection { get; init; } - - /// - /// - /// Contains a list of attributes for the node. - /// - /// - [JsonInclude, JsonPropertyName("attributes")] - [ReadOnlyFieldDictionaryConverter(typeof(string))] - public IReadOnlyDictionary? Attributes { get; init; } - - /// - /// - /// Statistics about the field data circuit breaker. - /// - /// - [JsonInclude, JsonPropertyName("breakers")] - public IReadOnlyDictionary? Breakers { get; init; } - - /// - /// - /// Contains node discovery statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("discovery")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Discovery? Discovery { get; init; } - - /// - /// - /// File system information, data path, free disk space, read/write stats. - /// - /// - [JsonInclude, JsonPropertyName("fs")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.FileSystem? Fs { get; init; } - - /// - /// - /// Network host for the node, based on the network host setting. - /// - /// - [JsonInclude, JsonPropertyName("host")] - public string? Host { get; init; } - - /// - /// - /// HTTP connection information. - /// - /// - [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Http? Http { get; init; } - - /// - /// - /// Contains indexing pressure statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("indexing_pressure")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.IndexingPressure? IndexingPressure { get; init; } - - /// - /// - /// Indices stats about size, document count, indexing and deletion times, search times, field cache size, merges and flushes. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.ShardStats? Indices { get; init; } - - /// - /// - /// Statistics about ingest preprocessing. - /// - /// - [JsonInclude, JsonPropertyName("ingest")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Ingest? Ingest { get; init; } - - /// - /// - /// IP address and port for the node. - /// - /// - [JsonInclude, JsonPropertyName("ip")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? Ip { get; init; } - - /// - /// - /// JVM stats, memory pool information, garbage collection, buffer pools, number of loaded/unloaded classes. - /// - /// - [JsonInclude, JsonPropertyName("jvm")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Jvm? Jvm { get; init; } - - /// - /// - /// Human-readable identifier for the node. - /// Based on the node name setting. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } - - /// - /// - /// Operating system stats, load average, mem, swap. - /// - /// - [JsonInclude, JsonPropertyName("os")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.OperatingSystem? Os { get; init; } - - /// - /// - /// Process statistics, memory consumption, cpu usage, open file descriptors. - /// - /// - [JsonInclude, JsonPropertyName("process")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Process? Process { get; init; } - - /// - /// - /// Roles assigned to the node. - /// - /// - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - - /// - /// - /// Contains script statistics for the node. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Scripting? Script { get; init; } - [JsonInclude, JsonPropertyName("script_cache")] - public IReadOnlyDictionary>>? ScriptCache { get; init; } - - /// - /// - /// Statistics about each thread pool, including current size, queue and rejected tasks. - /// - /// - [JsonInclude, JsonPropertyName("thread_pool")] - public IReadOnlyDictionary? ThreadPool { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public long? Timestamp { get; init; } - - /// - /// - /// Transport statistics about sent and received bytes in cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Serverless.Nodes.Transport? Transport { get; init; } - - /// - /// - /// Host and port for the transport layer, used for internal communication between nodes in a cluster. - /// - /// - [JsonInclude, JsonPropertyName("transport_address")] - public string? TransportAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ThreadCount.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ThreadCount.g.cs deleted file mode 100644 index bf936d7684b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/ThreadCount.g.cs +++ /dev/null @@ -1,79 +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.Nodes; - -public sealed partial class ThreadCount -{ - /// - /// - /// Number of active threads in the thread pool. - /// - /// - [JsonInclude, JsonPropertyName("active")] - public long? Active { get; init; } - - /// - /// - /// Number of tasks completed by the thread pool executor. - /// - /// - [JsonInclude, JsonPropertyName("completed")] - public long? Completed { get; init; } - - /// - /// - /// Highest number of active threads in the thread pool. - /// - /// - [JsonInclude, JsonPropertyName("largest")] - public long? Largest { get; init; } - - /// - /// - /// Number of tasks in queue for the thread pool. - /// - /// - [JsonInclude, JsonPropertyName("queue")] - public long? Queue { get; init; } - - /// - /// - /// Number of tasks rejected by the thread pool executor. - /// - /// - [JsonInclude, JsonPropertyName("rejected")] - public long? Rejected { get; init; } - - /// - /// - /// Number of threads in the thread pool. - /// - /// - [JsonInclude, JsonPropertyName("threads")] - public long? Threads { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Transport.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Transport.g.cs deleted file mode 100644 index ed04737e6fd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/Transport.g.cs +++ /dev/null @@ -1,113 +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.Nodes; - -public sealed partial class Transport -{ - /// - /// - /// The distribution of the time spent handling each inbound message on a transport thread, represented as a histogram. - /// - /// - [JsonInclude, JsonPropertyName("inbound_handling_time_histogram")] - public IReadOnlyCollection? InboundHandlingTimeHistogram { get; init; } - - /// - /// - /// The distribution of the time spent sending each outbound transport message on a transport thread, represented as a histogram. - /// - /// - [JsonInclude, JsonPropertyName("outbound_handling_time_histogram")] - public IReadOnlyCollection? OutboundHandlingTimeHistogram { get; init; } - - /// - /// - /// Total number of RX (receive) packets received by the node during internal cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("rx_count")] - public long? RxCount { get; init; } - - /// - /// - /// Size of RX packets received by the node during internal cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("rx_size")] - public string? RxSize { get; init; } - - /// - /// - /// Size, in bytes, of RX packets received by the node during internal cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("rx_size_in_bytes")] - public long? RxSizeInBytes { get; init; } - - /// - /// - /// Current number of inbound TCP connections used for internal communication between nodes. - /// - /// - [JsonInclude, JsonPropertyName("server_open")] - public int? ServerOpen { get; init; } - - /// - /// - /// The cumulative number of outbound transport connections that this node has opened since it started. - /// Each transport connection may comprise multiple TCP connections but is only counted once in this statistic. - /// Transport connections are typically long-lived so this statistic should remain constant in a stable cluster. - /// - /// - [JsonInclude, JsonPropertyName("total_outbound_connections")] - public long? TotalOutboundConnections { get; init; } - - /// - /// - /// Total number of TX (transmit) packets sent by the node during internal cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("tx_count")] - public long? TxCount { get; init; } - - /// - /// - /// Size of TX packets sent by the node during internal cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("tx_size")] - public string? TxSize { get; init; } - - /// - /// - /// Size, in bytes, of TX packets sent by the node during internal cluster communication. - /// - /// - [JsonInclude, JsonPropertyName("tx_size_in_bytes")] - public long? TxSizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/TransportHistogram.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/TransportHistogram.g.cs deleted file mode 100644 index 1123336df0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Nodes/TransportHistogram.g.cs +++ /dev/null @@ -1,56 +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.Nodes; - -public sealed partial class TransportHistogram -{ - /// - /// - /// The number of times a transport thread took a period of time within the bounds of this bucket to handle an inbound message. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public long? Count { get; init; } - - /// - /// - /// The inclusive lower bound of the bucket in milliseconds. May be omitted on the first bucket if this bucket has no lower bound. - /// - /// - [JsonInclude, JsonPropertyName("ge_millis")] - public long? GeMillis { get; init; } - - /// - /// - /// The exclusive upper bound of the bucket in milliseconds. - /// May be omitted on the last bucket if this bucket has no upper bound. - /// - /// - [JsonInclude, JsonPropertyName("lt_millis")] - public long? LtMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/PluginStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/PluginStats.g.cs deleted file mode 100644 index 1e8fa0c0962..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/PluginStats.g.cs +++ /dev/null @@ -1,50 +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 PluginStats -{ - [JsonInclude, JsonPropertyName("classname")] - public string Classname { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string Description { get; init; } - [JsonInclude, JsonPropertyName("elasticsearch_version")] - public string ElasticsearchVersion { get; init; } - [JsonInclude, JsonPropertyName("extended_plugins")] - public IReadOnlyCollection ExtendedPlugins { get; init; } - [JsonInclude, JsonPropertyName("has_native_controller")] - public bool HasNativeController { get; init; } - [JsonInclude, JsonPropertyName("java_version")] - public string JavaVersion { get; init; } - [JsonInclude, JsonPropertyName("licensed")] - public bool Licensed { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryCacheStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryCacheStats.g.cs deleted file mode 100644 index 3545bd22965..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryCacheStats.g.cs +++ /dev/null @@ -1,96 +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 QueryCacheStats -{ - /// - /// - /// Total number of entries added to the query cache across all shards assigned to selected nodes. - /// This number includes current and evicted entries. - /// - /// - [JsonInclude, JsonPropertyName("cache_count")] - public long CacheCount { get; init; } - - /// - /// - /// Total number of entries currently in the query cache across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("cache_size")] - public long CacheSize { get; init; } - - /// - /// - /// Total number of query cache evictions across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("evictions")] - public long Evictions { get; init; } - - /// - /// - /// Total count of query cache hits across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("hit_count")] - public long HitCount { get; init; } - - /// - /// - /// Total amount of memory used for the query cache across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("memory_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MemorySize { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for the query cache across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("memory_size_in_bytes")] - public long MemorySizeInBytes { get; init; } - - /// - /// - /// Total count of query cache misses across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("miss_count")] - public long MissCount { get; init; } - - /// - /// - /// Total count of hits and misses in the query cache across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("total_count")] - public long TotalCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoolQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoolQuery.g.cs deleted file mode 100644 index febf7b6dc6a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoolQuery.g.cs +++ /dev/null @@ -1,827 +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.QueryDsl; - -public sealed partial class BoolQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The clause (query) must appear in matching documents. - /// However, unlike must, the score of the query will be ignored. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// Specifies the number or percentage of should clauses returned documents must match. - /// - /// - [JsonInclude, JsonPropertyName("minimum_should_match")] - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// The clause (query) must appear in matching documents and will contribute to the score. - /// - /// - [JsonInclude, JsonPropertyName("must")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Must { get; set; } - - /// - /// - /// The clause (query) must not appear in the matching documents. - /// Because scoring is ignored, a score of 0 is returned for all documents. - /// - /// - [JsonInclude, JsonPropertyName("must_not")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? MustNot { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// The clause (query) should appear in the matching document. - /// - /// - [JsonInclude, JsonPropertyName("should")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Should { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(BoolQuery boolQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Bool(boolQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(BoolQuery boolQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Bool(boolQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(BoolQuery boolQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Bool(boolQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(BoolQuery boolQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Bool(boolQuery); -} - -public sealed partial class BoolQueryDescriptor : SerializableDescriptor> -{ - internal BoolQueryDescriptor(Action> configure) => configure.Invoke(this); - - public BoolQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private ICollection? MustValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor MustDescriptor { get; set; } - private Action> MustDescriptorAction { get; set; } - private Action>[] MustDescriptorActions { get; set; } - private ICollection? MustNotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor MustNotDescriptor { get; set; } - private Action> MustNotDescriptorAction { get; set; } - private Action>[] MustNotDescriptorActions { get; set; } - private string? QueryNameValue { get; set; } - private ICollection? ShouldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor ShouldDescriptor { get; set; } - private Action> ShouldDescriptorAction { get; set; } - private Action>[] ShouldDescriptorActions { 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 BoolQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The clause (query) must appear in matching documents. - /// However, unlike must, the score of the query will be ignored. - /// - /// - public BoolQueryDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public BoolQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Specifies the number or percentage of should clauses returned documents must match. - /// - /// - public BoolQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// The clause (query) must appear in matching documents and will contribute to the score. - /// - /// - public BoolQueryDescriptor Must(ICollection? must) - { - MustDescriptor = null; - MustDescriptorAction = null; - MustDescriptorActions = null; - MustValue = must; - return Self; - } - - public BoolQueryDescriptor Must(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - MustValue = null; - MustDescriptorAction = null; - MustDescriptorActions = null; - MustDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor Must(Action> configure) - { - MustValue = null; - MustDescriptor = null; - MustDescriptorActions = null; - MustDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor Must(params Action>[] configure) - { - MustValue = null; - MustDescriptor = null; - MustDescriptorAction = null; - MustDescriptorActions = configure; - return Self; - } - - /// - /// - /// The clause (query) must not appear in the matching documents. - /// Because scoring is ignored, a score of 0 is returned for all documents. - /// - /// - public BoolQueryDescriptor MustNot(ICollection? mustNot) - { - MustNotDescriptor = null; - MustNotDescriptorAction = null; - MustNotDescriptorActions = null; - MustNotValue = mustNot; - return Self; - } - - public BoolQueryDescriptor MustNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - MustNotValue = null; - MustNotDescriptorAction = null; - MustNotDescriptorActions = null; - MustNotDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor MustNot(Action> configure) - { - MustNotValue = null; - MustNotDescriptor = null; - MustNotDescriptorActions = null; - MustNotDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor MustNot(params Action>[] configure) - { - MustNotValue = null; - MustNotDescriptor = null; - MustNotDescriptorAction = null; - MustNotDescriptorActions = configure; - return Self; - } - - public BoolQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The clause (query) should appear in the matching document. - /// - /// - public BoolQueryDescriptor Should(ICollection? should) - { - ShouldDescriptor = null; - ShouldDescriptorAction = null; - ShouldDescriptorActions = null; - ShouldValue = should; - return Self; - } - - public BoolQueryDescriptor Should(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - ShouldValue = null; - ShouldDescriptorAction = null; - ShouldDescriptorActions = null; - ShouldDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor Should(Action> configure) - { - ShouldValue = null; - ShouldDescriptor = null; - ShouldDescriptorActions = null; - ShouldDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor Should(params Action>[] configure) - { - ShouldValue = null; - ShouldDescriptor = null; - ShouldDescriptorAction = null; - ShouldDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (MustDescriptor is not null) - { - writer.WritePropertyName("must"); - JsonSerializer.Serialize(writer, MustDescriptor, options); - } - else if (MustDescriptorAction is not null) - { - writer.WritePropertyName("must"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(MustDescriptorAction), options); - } - else if (MustDescriptorActions is not null) - { - writer.WritePropertyName("must"); - if (MustDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in MustDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (MustDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (MustValue is not null) - { - writer.WritePropertyName("must"); - SingleOrManySerializationHelper.Serialize(MustValue, writer, options); - } - - if (MustNotDescriptor is not null) - { - writer.WritePropertyName("must_not"); - JsonSerializer.Serialize(writer, MustNotDescriptor, options); - } - else if (MustNotDescriptorAction is not null) - { - writer.WritePropertyName("must_not"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(MustNotDescriptorAction), options); - } - else if (MustNotDescriptorActions is not null) - { - writer.WritePropertyName("must_not"); - if (MustNotDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in MustNotDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (MustNotDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (MustNotValue is not null) - { - writer.WritePropertyName("must_not"); - SingleOrManySerializationHelper.Serialize(MustNotValue, writer, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ShouldDescriptor is not null) - { - writer.WritePropertyName("should"); - JsonSerializer.Serialize(writer, ShouldDescriptor, options); - } - else if (ShouldDescriptorAction is not null) - { - writer.WritePropertyName("should"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(ShouldDescriptorAction), options); - } - else if (ShouldDescriptorActions is not null) - { - writer.WritePropertyName("should"); - if (ShouldDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in ShouldDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (ShouldDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (ShouldValue is not null) - { - writer.WritePropertyName("should"); - SingleOrManySerializationHelper.Serialize(ShouldValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class BoolQueryDescriptor : SerializableDescriptor -{ - internal BoolQueryDescriptor(Action configure) => configure.Invoke(this); - - public BoolQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private ICollection? MustValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor MustDescriptor { get; set; } - private Action MustDescriptorAction { get; set; } - private Action[] MustDescriptorActions { get; set; } - private ICollection? MustNotValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor MustNotDescriptor { get; set; } - private Action MustNotDescriptorAction { get; set; } - private Action[] MustNotDescriptorActions { get; set; } - private string? QueryNameValue { get; set; } - private ICollection? ShouldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor ShouldDescriptor { get; set; } - private Action ShouldDescriptorAction { get; set; } - private Action[] ShouldDescriptorActions { 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 BoolQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The clause (query) must appear in matching documents. - /// However, unlike must, the score of the query will be ignored. - /// - /// - public BoolQueryDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public BoolQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Specifies the number or percentage of should clauses returned documents must match. - /// - /// - public BoolQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// The clause (query) must appear in matching documents and will contribute to the score. - /// - /// - public BoolQueryDescriptor Must(ICollection? must) - { - MustDescriptor = null; - MustDescriptorAction = null; - MustDescriptorActions = null; - MustValue = must; - return Self; - } - - public BoolQueryDescriptor Must(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - MustValue = null; - MustDescriptorAction = null; - MustDescriptorActions = null; - MustDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor Must(Action configure) - { - MustValue = null; - MustDescriptor = null; - MustDescriptorActions = null; - MustDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor Must(params Action[] configure) - { - MustValue = null; - MustDescriptor = null; - MustDescriptorAction = null; - MustDescriptorActions = configure; - return Self; - } - - /// - /// - /// The clause (query) must not appear in the matching documents. - /// Because scoring is ignored, a score of 0 is returned for all documents. - /// - /// - public BoolQueryDescriptor MustNot(ICollection? mustNot) - { - MustNotDescriptor = null; - MustNotDescriptorAction = null; - MustNotDescriptorActions = null; - MustNotValue = mustNot; - return Self; - } - - public BoolQueryDescriptor MustNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - MustNotValue = null; - MustNotDescriptorAction = null; - MustNotDescriptorActions = null; - MustNotDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor MustNot(Action configure) - { - MustNotValue = null; - MustNotDescriptor = null; - MustNotDescriptorActions = null; - MustNotDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor MustNot(params Action[] configure) - { - MustNotValue = null; - MustNotDescriptor = null; - MustNotDescriptorAction = null; - MustNotDescriptorActions = configure; - return Self; - } - - public BoolQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// The clause (query) should appear in the matching document. - /// - /// - public BoolQueryDescriptor Should(ICollection? should) - { - ShouldDescriptor = null; - ShouldDescriptorAction = null; - ShouldDescriptorActions = null; - ShouldValue = should; - return Self; - } - - public BoolQueryDescriptor Should(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - ShouldValue = null; - ShouldDescriptorAction = null; - ShouldDescriptorActions = null; - ShouldDescriptor = descriptor; - return Self; - } - - public BoolQueryDescriptor Should(Action configure) - { - ShouldValue = null; - ShouldDescriptor = null; - ShouldDescriptorActions = null; - ShouldDescriptorAction = configure; - return Self; - } - - public BoolQueryDescriptor Should(params Action[] configure) - { - ShouldValue = null; - ShouldDescriptor = null; - ShouldDescriptorAction = null; - ShouldDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (MustDescriptor is not null) - { - writer.WritePropertyName("must"); - JsonSerializer.Serialize(writer, MustDescriptor, options); - } - else if (MustDescriptorAction is not null) - { - writer.WritePropertyName("must"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(MustDescriptorAction), options); - } - else if (MustDescriptorActions is not null) - { - writer.WritePropertyName("must"); - if (MustDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in MustDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (MustDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (MustValue is not null) - { - writer.WritePropertyName("must"); - SingleOrManySerializationHelper.Serialize(MustValue, writer, options); - } - - if (MustNotDescriptor is not null) - { - writer.WritePropertyName("must_not"); - JsonSerializer.Serialize(writer, MustNotDescriptor, options); - } - else if (MustNotDescriptorAction is not null) - { - writer.WritePropertyName("must_not"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(MustNotDescriptorAction), options); - } - else if (MustNotDescriptorActions is not null) - { - writer.WritePropertyName("must_not"); - if (MustNotDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in MustNotDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (MustNotDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (MustNotValue is not null) - { - writer.WritePropertyName("must_not"); - SingleOrManySerializationHelper.Serialize(MustNotValue, writer, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ShouldDescriptor is not null) - { - writer.WritePropertyName("should"); - JsonSerializer.Serialize(writer, ShouldDescriptor, options); - } - else if (ShouldDescriptorAction is not null) - { - writer.WritePropertyName("should"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(ShouldDescriptorAction), options); - } - else if (ShouldDescriptorActions is not null) - { - writer.WritePropertyName("should"); - if (ShouldDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in ShouldDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (ShouldDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (ShouldValue is not null) - { - writer.WritePropertyName("should"); - SingleOrManySerializationHelper.Serialize(ShouldValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoostingQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoostingQuery.g.cs deleted file mode 100644 index 643c25356d3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/BoostingQuery.g.cs +++ /dev/null @@ -1,390 +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.QueryDsl; - -public sealed partial class BoostingQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Query used to decrease the relevance score of matching documents. - /// - /// - [JsonInclude, JsonPropertyName("negative")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Negative { get; set; } - - /// - /// - /// Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query. - /// - /// - [JsonInclude, JsonPropertyName("negative_boost")] - public double NegativeBoost { get; set; } - - /// - /// - /// Any returned documents must match this query. - /// - /// - [JsonInclude, JsonPropertyName("positive")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Positive { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(BoostingQuery boostingQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Boosting(boostingQuery); -} - -public sealed partial class BoostingQueryDescriptor : SerializableDescriptor> -{ - internal BoostingQueryDescriptor(Action> configure) => configure.Invoke(this); - - public BoostingQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query NegativeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor NegativeDescriptor { get; set; } - private Action> NegativeDescriptorAction { get; set; } - private double NegativeBoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query PositiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PositiveDescriptor { get; set; } - private Action> PositiveDescriptorAction { get; set; } - private string? QueryNameValue { 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 BoostingQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Query used to decrease the relevance score of matching documents. - /// - /// - public BoostingQueryDescriptor Negative(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query negative) - { - NegativeDescriptor = null; - NegativeDescriptorAction = null; - NegativeValue = negative; - return Self; - } - - public BoostingQueryDescriptor Negative(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - NegativeValue = null; - NegativeDescriptorAction = null; - NegativeDescriptor = descriptor; - return Self; - } - - public BoostingQueryDescriptor Negative(Action> configure) - { - NegativeValue = null; - NegativeDescriptor = null; - NegativeDescriptorAction = configure; - return Self; - } - - /// - /// - /// Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query. - /// - /// - public BoostingQueryDescriptor NegativeBoost(double negativeBoost) - { - NegativeBoostValue = negativeBoost; - return Self; - } - - /// - /// - /// Any returned documents must match this query. - /// - /// - public BoostingQueryDescriptor Positive(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query positive) - { - PositiveDescriptor = null; - PositiveDescriptorAction = null; - PositiveValue = positive; - return Self; - } - - public BoostingQueryDescriptor Positive(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PositiveValue = null; - PositiveDescriptorAction = null; - PositiveDescriptor = descriptor; - return Self; - } - - public BoostingQueryDescriptor Positive(Action> configure) - { - PositiveValue = null; - PositiveDescriptor = null; - PositiveDescriptorAction = configure; - return Self; - } - - public BoostingQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (NegativeDescriptor is not null) - { - writer.WritePropertyName("negative"); - JsonSerializer.Serialize(writer, NegativeDescriptor, options); - } - else if (NegativeDescriptorAction is not null) - { - writer.WritePropertyName("negative"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(NegativeDescriptorAction), options); - } - else - { - writer.WritePropertyName("negative"); - JsonSerializer.Serialize(writer, NegativeValue, options); - } - - writer.WritePropertyName("negative_boost"); - writer.WriteNumberValue(NegativeBoostValue); - if (PositiveDescriptor is not null) - { - writer.WritePropertyName("positive"); - JsonSerializer.Serialize(writer, PositiveDescriptor, options); - } - else if (PositiveDescriptorAction is not null) - { - writer.WritePropertyName("positive"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PositiveDescriptorAction), options); - } - else - { - writer.WritePropertyName("positive"); - JsonSerializer.Serialize(writer, PositiveValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class BoostingQueryDescriptor : SerializableDescriptor -{ - internal BoostingQueryDescriptor(Action configure) => configure.Invoke(this); - - public BoostingQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query NegativeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor NegativeDescriptor { get; set; } - private Action NegativeDescriptorAction { get; set; } - private double NegativeBoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query PositiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor PositiveDescriptor { get; set; } - private Action PositiveDescriptorAction { get; set; } - private string? QueryNameValue { 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 BoostingQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Query used to decrease the relevance score of matching documents. - /// - /// - public BoostingQueryDescriptor Negative(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query negative) - { - NegativeDescriptor = null; - NegativeDescriptorAction = null; - NegativeValue = negative; - return Self; - } - - public BoostingQueryDescriptor Negative(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - NegativeValue = null; - NegativeDescriptorAction = null; - NegativeDescriptor = descriptor; - return Self; - } - - public BoostingQueryDescriptor Negative(Action configure) - { - NegativeValue = null; - NegativeDescriptor = null; - NegativeDescriptorAction = configure; - return Self; - } - - /// - /// - /// Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching the negative query. - /// - /// - public BoostingQueryDescriptor NegativeBoost(double negativeBoost) - { - NegativeBoostValue = negativeBoost; - return Self; - } - - /// - /// - /// Any returned documents must match this query. - /// - /// - public BoostingQueryDescriptor Positive(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query positive) - { - PositiveDescriptor = null; - PositiveDescriptorAction = null; - PositiveValue = positive; - return Self; - } - - public BoostingQueryDescriptor Positive(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - PositiveValue = null; - PositiveDescriptorAction = null; - PositiveDescriptor = descriptor; - return Self; - } - - public BoostingQueryDescriptor Positive(Action configure) - { - PositiveValue = null; - PositiveDescriptor = null; - PositiveDescriptorAction = configure; - return Self; - } - - public BoostingQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (NegativeDescriptor is not null) - { - writer.WritePropertyName("negative"); - JsonSerializer.Serialize(writer, NegativeDescriptor, options); - } - else if (NegativeDescriptorAction is not null) - { - writer.WritePropertyName("negative"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(NegativeDescriptorAction), options); - } - else - { - writer.WritePropertyName("negative"); - JsonSerializer.Serialize(writer, NegativeValue, options); - } - - writer.WritePropertyName("negative_boost"); - writer.WriteNumberValue(NegativeBoostValue); - if (PositiveDescriptor is not null) - { - writer.WritePropertyName("positive"); - JsonSerializer.Serialize(writer, PositiveDescriptor, options); - } - else if (PositiveDescriptorAction is not null) - { - writer.WritePropertyName("positive"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(PositiveDescriptorAction), options); - } - else - { - writer.WritePropertyName("positive"); - JsonSerializer.Serialize(writer, PositiveValue, options); - } - - 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/CombinedFieldsQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs deleted file mode 100644 index 5dd65d165b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs +++ /dev/null @@ -1,398 +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.QueryDsl; - -public sealed partial class CombinedFieldsQuery -{ - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - [JsonInclude, JsonPropertyName("auto_generate_synonyms_phrase_query")] - public bool? AutoGenerateSynonymsPhraseQuery { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields Fields { get; set; } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - [JsonInclude, JsonPropertyName("minimum_should_match")] - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - [JsonInclude, JsonPropertyName("operator")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsOperator? Operator { get; set; } - - /// - /// - /// Text to search for in the provided fields. - /// The combined_fields query analyzes the provided text before performing a search. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - [JsonInclude, JsonPropertyName("zero_terms_query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsZeroTerms? ZeroTermsQuery { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(CombinedFieldsQuery combinedFieldsQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.CombinedFields(combinedFieldsQuery); -} - -public sealed partial class CombinedFieldsQueryDescriptor : SerializableDescriptor> -{ - internal CombinedFieldsQueryDescriptor(Action> configure) => configure.Invoke(this); - - public CombinedFieldsQueryDescriptor() : base() - { - } - - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsOperator? OperatorValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsZeroTerms? ZeroTermsQueryValue { get; set; } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public CombinedFieldsQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 CombinedFieldsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer. - /// - /// - public CombinedFieldsQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public CombinedFieldsQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public CombinedFieldsQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsOperator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Text to search for in the provided fields. - /// The combined_fields query analyzes the provided text before performing a search. - /// - /// - public CombinedFieldsQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public CombinedFieldsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public CombinedFieldsQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsZeroTerms? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class CombinedFieldsQueryDescriptor : SerializableDescriptor -{ - internal CombinedFieldsQueryDescriptor(Action configure) => configure.Invoke(this); - - public CombinedFieldsQueryDescriptor() : base() - { - } - - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsOperator? OperatorValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsZeroTerms? ZeroTermsQueryValue { get; set; } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public CombinedFieldsQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 CombinedFieldsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// List of fields to search. Field wildcard patterns are allowed. Only text fields are supported, and they must all have the same search analyzer. - /// - /// - public CombinedFieldsQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public CombinedFieldsQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public CombinedFieldsQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsOperator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Text to search for in the provided fields. - /// The combined_fields query analyzes the provided text before performing a search. - /// - /// - public CombinedFieldsQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public CombinedFieldsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public CombinedFieldsQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsZeroTerms? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs deleted file mode 100644 index 9bc03ff0079..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ConstantScoreQuery.g.cs +++ /dev/null @@ -1,256 +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.QueryDsl; - -public sealed partial class ConstantScoreQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Filter query you wish to run. Any returned documents must match this query. - /// Filter queries do not calculate relevance scores. - /// To speed up performance, Elasticsearch automatically caches frequently used filter queries. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Filter { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(ConstantScoreQuery constantScoreQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.ConstantScore(constantScoreQuery); -} - -public sealed partial class ConstantScoreQueryDescriptor : SerializableDescriptor> -{ - internal ConstantScoreQueryDescriptor(Action> configure) => configure.Invoke(this); - - public ConstantScoreQueryDescriptor() : base() - { - } - - private float? BoostValue { 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? QueryNameValue { 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 ConstantScoreQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Filter query you wish to run. Any returned documents must match this query. - /// Filter queries do not calculate relevance scores. - /// To speed up performance, Elasticsearch automatically caches frequently used filter queries. - /// - /// - public ConstantScoreQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public ConstantScoreQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public ConstantScoreQueryDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public ConstantScoreQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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 - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ConstantScoreQueryDescriptor : SerializableDescriptor -{ - internal ConstantScoreQueryDescriptor(Action configure) => configure.Invoke(this); - - public ConstantScoreQueryDescriptor() : base() - { - } - - private float? BoostValue { 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? QueryNameValue { 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 ConstantScoreQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Filter query you wish to run. Any returned documents must match this query. - /// Filter queries do not calculate relevance scores. - /// To speed up performance, Elasticsearch automatically caches frequently used filter queries. - /// - /// - public ConstantScoreQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public ConstantScoreQueryDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public ConstantScoreQueryDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - public ConstantScoreQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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 - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - 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/DateDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDecayFunction.g.cs deleted file mode 100644 index b19c4540e0f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDecayFunction.g.cs +++ /dev/null @@ -1,228 +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.QueryDsl; - -internal sealed partial class DateDecayFunctionConverter : JsonConverter -{ - public override DateDecayFunction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new DateDecayFunction(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "multi_value_mode") - { - variant.MultiValueMode = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Placement = JsonSerializer.Deserialize>(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, DateDecayFunction value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Placement 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.Placement, options); - } - - if (value.MultiValueMode is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, value.MultiValueMode, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(DateDecayFunctionConverter))] -public sealed partial class DateDecayFunction -{ - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// 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 Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement Placement { get; set; } -} - -public sealed partial class DateDecayFunctionDescriptor : SerializableDescriptor> -{ - internal DateDecayFunctionDescriptor(Action> configure) => configure.Invoke(this); - - public DateDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public DateDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public DateDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public DateDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public DateDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DateDecayFunctionDescriptor : SerializableDescriptor -{ - internal DateDecayFunctionDescriptor(Action configure) => configure.Invoke(this); - - public DateDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public DateDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public DateDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public DateDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public DateDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs deleted file mode 100644 index 4acc19e3a1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateDistanceFeatureQuery.g.cs +++ /dev/null @@ -1,329 +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.QueryDsl; - -public sealed partial class DateDistanceFeatureQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - [JsonInclude, JsonPropertyName("origin")] - public Elastic.Clients.Elasticsearch.Serverless.DateMath Origin { get; set; } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.Serverless.Duration Pivot { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } -} - -public sealed partial class DateDistanceFeatureQueryDescriptor : SerializableDescriptor> -{ - internal DateDistanceFeatureQueryDescriptor(Action> configure) => configure.Invoke(this); - - public DateDistanceFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath OriginValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration PivotValue { get; set; } - private string? QueryNameValue { 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 DateDistanceFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public DateDistanceFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public DateDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public DateDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - public DateDistanceFeatureQueryDescriptor Origin(Elastic.Clients.Elasticsearch.Serverless.DateMath origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - public DateDistanceFeatureQueryDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.Duration pivot) - { - PivotValue = pivot; - return Self; - } - - public DateDistanceFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DateDistanceFeatureQueryDescriptor : SerializableDescriptor -{ - internal DateDistanceFeatureQueryDescriptor(Action configure) => configure.Invoke(this); - - public DateDistanceFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath OriginValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration PivotValue { get; set; } - private string? QueryNameValue { 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 DateDistanceFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public DateDistanceFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public DateDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public DateDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - public DateDistanceFeatureQueryDescriptor Origin(Elastic.Clients.Elasticsearch.Serverless.DateMath origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - public DateDistanceFeatureQueryDescriptor Pivot(Elastic.Clients.Elasticsearch.Serverless.Duration pivot) - { - PivotValue = pivot; - return Self; - } - - public DateDistanceFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - 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/DateRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs deleted file mode 100644 index 685edc8185f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DateRangeQuery.g.cs +++ /dev/null @@ -1,643 +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.QueryDsl; - -internal sealed partial class DateRangeQueryConverter : JsonConverter -{ - public override DateRangeQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new DateRangeQuery(fieldName); - 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 == "format") - { - variant.Format = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gt") - { - variant.Gt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gte") - { - variant.Gte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lt") - { - variant.Lt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lte") - { - variant.Lte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "relation") - { - variant.Relation = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "time_zone") - { - variant.TimeZone = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, DateRangeQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize DateRangeQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (!string.IsNullOrEmpty(value.Format)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(value.Format); - } - - if (value.Gt is not null) - { - writer.WritePropertyName("gt"); - JsonSerializer.Serialize(writer, value.Gt, options); - } - - if (value.Gte is not null) - { - writer.WritePropertyName("gte"); - JsonSerializer.Serialize(writer, value.Gte, options); - } - - if (value.Lt is not null) - { - writer.WritePropertyName("lt"); - JsonSerializer.Serialize(writer, value.Lt, options); - } - - if (value.Lte is not null) - { - writer.WritePropertyName("lte"); - JsonSerializer.Serialize(writer, value.Lte, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.Relation is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, value.Relation, options); - } - - if (!string.IsNullOrEmpty(value.TimeZone)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(value.TimeZone); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(DateRangeQueryConverter))] -public sealed partial class DateRangeQuery -{ - public DateRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Date format used to convert date values in the query. - /// - /// - public string? Format { get; set; } - - /// - /// - /// Greater than. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.DateMath? Gt { get; set; } - - /// - /// - /// Greater than or equal to. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.DateMath? Gte { get; set; } - - /// - /// - /// Less than. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.DateMath? Lt { get; set; } - - /// - /// - /// Less than or equal to. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.DateMath? Lte { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? Relation { get; set; } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC. - /// - /// - public string? TimeZone { get; set; } -} - -public sealed partial class DateRangeQueryDescriptor : SerializableDescriptor> -{ - internal DateRangeQueryDescriptor(Action> configure) => configure.Invoke(this); - - public DateRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? GtValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? GteValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? LtValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? TimeZoneValue { 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 DateRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public DateRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public DateRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date format used to convert date values in the query. - /// - /// - public DateRangeQueryDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public DateRangeQueryDescriptor Gt(Elastic.Clients.Elasticsearch.Serverless.DateMath? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public DateRangeQueryDescriptor Gte(Elastic.Clients.Elasticsearch.Serverless.DateMath? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public DateRangeQueryDescriptor Lt(Elastic.Clients.Elasticsearch.Serverless.DateMath? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public DateRangeQueryDescriptor Lte(Elastic.Clients.Elasticsearch.Serverless.DateMath? lte) - { - LteValue = lte; - return Self; - } - - public DateRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public DateRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC. - /// - /// - public DateRangeQueryDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GtValue is not null) - { - writer.WritePropertyName("gt"); - JsonSerializer.Serialize(writer, GtValue, options); - } - - if (GteValue is not null) - { - writer.WritePropertyName("gte"); - JsonSerializer.Serialize(writer, GteValue, options); - } - - if (LtValue is not null) - { - writer.WritePropertyName("lt"); - JsonSerializer.Serialize(writer, LtValue, options); - } - - if (LteValue is not null) - { - writer.WritePropertyName("lte"); - JsonSerializer.Serialize(writer, LteValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class DateRangeQueryDescriptor : SerializableDescriptor -{ - internal DateRangeQueryDescriptor(Action configure) => configure.Invoke(this); - - public DateRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? GtValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? GteValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? LtValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.DateMath? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? TimeZoneValue { 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 DateRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public DateRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public DateRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public DateRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date format used to convert date values in the query. - /// - /// - public DateRangeQueryDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public DateRangeQueryDescriptor Gt(Elastic.Clients.Elasticsearch.Serverless.DateMath? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public DateRangeQueryDescriptor Gte(Elastic.Clients.Elasticsearch.Serverless.DateMath? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public DateRangeQueryDescriptor Lt(Elastic.Clients.Elasticsearch.Serverless.DateMath? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public DateRangeQueryDescriptor Lte(Elastic.Clients.Elasticsearch.Serverless.DateMath? lte) - { - LteValue = lte; - return Self; - } - - public DateRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public DateRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC. - /// - /// - public DateRangeQueryDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GtValue is not null) - { - writer.WritePropertyName("gt"); - JsonSerializer.Serialize(writer, GtValue, options); - } - - if (GteValue is not null) - { - writer.WritePropertyName("gte"); - JsonSerializer.Serialize(writer, GteValue, options); - } - - if (LtValue is not null) - { - writer.WritePropertyName("lt"); - JsonSerializer.Serialize(writer, LtValue, options); - } - - if (LteValue is not null) - { - writer.WritePropertyName("lte"); - JsonSerializer.Serialize(writer, LteValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DecayPlacement.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DecayPlacement.g.cs deleted file mode 100644 index 52c7faaa5d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DecayPlacement.g.cs +++ /dev/null @@ -1,66 +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.QueryDsl; - -public sealed partial class DecayPlacement -{ - /// - /// - /// Defines how documents are scored at the distance given at scale. - /// - /// - [JsonInclude, JsonPropertyName("decay")] - public double? Decay { get; set; } - - /// - /// - /// If defined, the decay function will only compute the decay function for documents with a distance greater than the defined offset. - /// - /// - [JsonInclude, JsonPropertyName("offset")] - [SourceConverter] - public TScale? Offset { get; set; } - - /// - /// - /// The point of origin used for calculating distance. Must be given as a number for numeric field, date for date fields and geo point for geo fields. - /// - /// - [JsonInclude, JsonPropertyName("origin")] - [SourceConverter] - public TOrigin? Origin { get; set; } - - /// - /// - /// Defines the distance from origin + offset at which the computed score will equal decay parameter. - /// - /// - [JsonInclude, JsonPropertyName("scale")] - [SourceConverter] - public TScale? Scale { get; set; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DisMaxQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DisMaxQuery.g.cs deleted file mode 100644 index 915e9e2b250..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/DisMaxQuery.g.cs +++ /dev/null @@ -1,356 +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.QueryDsl; - -public sealed partial class DisMaxQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// One or more query clauses. - /// Returned documents must match one or more of these queries. - /// If a document matches multiple queries, Elasticsearch uses the highest relevance score. - /// - /// - [JsonInclude, JsonPropertyName("queries")] - public ICollection Queries { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses. - /// - /// - [JsonInclude, JsonPropertyName("tie_breaker")] - public double? TieBreaker { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(DisMaxQuery disMaxQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.DisMax(disMaxQuery); -} - -public sealed partial class DisMaxQueryDescriptor : SerializableDescriptor> -{ - internal DisMaxQueryDescriptor(Action> configure) => configure.Invoke(this); - - public DisMaxQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection QueriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueriesDescriptor { get; set; } - private Action> QueriesDescriptorAction { get; set; } - private Action>[] QueriesDescriptorActions { get; set; } - private string? QueryNameValue { get; set; } - private double? TieBreakerValue { 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 DisMaxQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// One or more query clauses. - /// Returned documents must match one or more of these queries. - /// If a document matches multiple queries, Elasticsearch uses the highest relevance score. - /// - /// - public DisMaxQueryDescriptor Queries(ICollection queries) - { - QueriesDescriptor = null; - QueriesDescriptorAction = null; - QueriesDescriptorActions = null; - QueriesValue = queries; - return Self; - } - - public DisMaxQueryDescriptor Queries(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueriesValue = null; - QueriesDescriptorAction = null; - QueriesDescriptorActions = null; - QueriesDescriptor = descriptor; - return Self; - } - - public DisMaxQueryDescriptor Queries(Action> configure) - { - QueriesValue = null; - QueriesDescriptor = null; - QueriesDescriptorActions = null; - QueriesDescriptorAction = configure; - return Self; - } - - public DisMaxQueryDescriptor Queries(params Action>[] configure) - { - QueriesValue = null; - QueriesDescriptor = null; - QueriesDescriptorAction = null; - QueriesDescriptorActions = configure; - return Self; - } - - public DisMaxQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses. - /// - /// - public DisMaxQueryDescriptor TieBreaker(double? tieBreaker) - { - TieBreakerValue = tieBreaker; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (QueriesDescriptor is not null) - { - writer.WritePropertyName("queries"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, QueriesDescriptor, options); - writer.WriteEndArray(); - } - else if (QueriesDescriptorAction is not null) - { - writer.WritePropertyName("queries"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueriesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (QueriesDescriptorActions is not null) - { - writer.WritePropertyName("queries"); - writer.WriteStartArray(); - foreach (var action in QueriesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, QueriesValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (TieBreakerValue.HasValue) - { - writer.WritePropertyName("tie_breaker"); - writer.WriteNumberValue(TieBreakerValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class DisMaxQueryDescriptor : SerializableDescriptor -{ - internal DisMaxQueryDescriptor(Action configure) => configure.Invoke(this); - - public DisMaxQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection QueriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueriesDescriptor { get; set; } - private Action QueriesDescriptorAction { get; set; } - private Action[] QueriesDescriptorActions { get; set; } - private string? QueryNameValue { get; set; } - private double? TieBreakerValue { 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 DisMaxQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// One or more query clauses. - /// Returned documents must match one or more of these queries. - /// If a document matches multiple queries, Elasticsearch uses the highest relevance score. - /// - /// - public DisMaxQueryDescriptor Queries(ICollection queries) - { - QueriesDescriptor = null; - QueriesDescriptorAction = null; - QueriesDescriptorActions = null; - QueriesValue = queries; - return Self; - } - - public DisMaxQueryDescriptor Queries(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueriesValue = null; - QueriesDescriptorAction = null; - QueriesDescriptorActions = null; - QueriesDescriptor = descriptor; - return Self; - } - - public DisMaxQueryDescriptor Queries(Action configure) - { - QueriesValue = null; - QueriesDescriptor = null; - QueriesDescriptorActions = null; - QueriesDescriptorAction = configure; - return Self; - } - - public DisMaxQueryDescriptor Queries(params Action[] configure) - { - QueriesValue = null; - QueriesDescriptor = null; - QueriesDescriptorAction = null; - QueriesDescriptorActions = configure; - return Self; - } - - public DisMaxQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Floating point number between 0 and 1.0 used to increase the relevance scores of documents matching multiple query clauses. - /// - /// - public DisMaxQueryDescriptor TieBreaker(double? tieBreaker) - { - TieBreakerValue = tieBreaker; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (QueriesDescriptor is not null) - { - writer.WritePropertyName("queries"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, QueriesDescriptor, options); - writer.WriteEndArray(); - } - else if (QueriesDescriptorAction is not null) - { - writer.WritePropertyName("queries"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueriesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (QueriesDescriptorActions is not null) - { - writer.WritePropertyName("queries"); - writer.WriteStartArray(); - foreach (var action in QueriesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("queries"); - JsonSerializer.Serialize(writer, QueriesValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (TieBreakerValue.HasValue) - { - writer.WritePropertyName("tie_breaker"); - writer.WriteNumberValue(TieBreakerValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ExistsQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ExistsQuery.g.cs deleted file mode 100644 index 4f2b09aec21..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ExistsQuery.g.cs +++ /dev/null @@ -1,229 +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.QueryDsl; - -public sealed partial class ExistsQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Name of the field you wish to search. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(ExistsQuery existsQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Exists(existsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(ExistsQuery existsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Exists(existsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(ExistsQuery existsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Exists(existsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(ExistsQuery existsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Exists(existsQuery); -} - -public sealed partial class ExistsQueryDescriptor : SerializableDescriptor> -{ - internal ExistsQueryDescriptor(Action> configure) => configure.Invoke(this); - - public ExistsQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { 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 ExistsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field you wish to search. - /// - /// - public ExistsQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field you wish to search. - /// - /// - public ExistsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field you wish to search. - /// - /// - public ExistsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ExistsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ExistsQueryDescriptor : SerializableDescriptor -{ - internal ExistsQueryDescriptor(Action configure) => configure.Invoke(this); - - public ExistsQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { 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 ExistsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field you wish to search. - /// - /// - public ExistsQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field you wish to search. - /// - /// - public ExistsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field you wish to search. - /// - /// - public ExistsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public ExistsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - 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/FieldAndFormat.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldAndFormat.g.cs deleted file mode 100644 index 65dd5cedf73..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldAndFormat.g.cs +++ /dev/null @@ -1,230 +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.QueryDsl; - -/// -/// -/// A reference to a field with formatting instructions on how to return the value -/// -/// -public sealed partial class FieldAndFormat -{ - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Format in which the values are returned. - /// - /// - [JsonInclude, JsonPropertyName("format")] - public string? Format { get; set; } - [JsonInclude, JsonPropertyName("include_unmapped")] - public bool? IncludeUnmapped { get; set; } -} - -/// -/// -/// A reference to a field with formatting instructions on how to return the value -/// -/// -public sealed partial class FieldAndFormatDescriptor : SerializableDescriptor> -{ - internal FieldAndFormatDescriptor(Action> configure) => configure.Invoke(this); - - public FieldAndFormatDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - private bool? IncludeUnmappedValue { get; set; } - - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - public FieldAndFormatDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - public FieldAndFormatDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - public FieldAndFormatDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Format in which the values are returned. - /// - /// - public FieldAndFormatDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public FieldAndFormatDescriptor IncludeUnmapped(bool? includeUnmapped = true) - { - IncludeUnmappedValue = includeUnmapped; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IncludeUnmappedValue.HasValue) - { - writer.WritePropertyName("include_unmapped"); - writer.WriteBooleanValue(IncludeUnmappedValue.Value); - } - - writer.WriteEndObject(); - } -} - -/// -/// -/// A reference to a field with formatting instructions on how to return the value -/// -/// -public sealed partial class FieldAndFormatDescriptor : SerializableDescriptor -{ - internal FieldAndFormatDescriptor(Action configure) => configure.Invoke(this); - - public FieldAndFormatDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - private bool? IncludeUnmappedValue { get; set; } - - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - public FieldAndFormatDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - public FieldAndFormatDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Wildcard pattern. The request returns values for field names matching this pattern. - /// - /// - public FieldAndFormatDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Format in which the values are returned. - /// - /// - public FieldAndFormatDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - public FieldAndFormatDescriptor IncludeUnmapped(bool? includeUnmapped = true) - { - IncludeUnmappedValue = includeUnmapped; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (IncludeUnmappedValue.HasValue) - { - writer.WritePropertyName("include_unmapped"); - writer.WriteBooleanValue(IncludeUnmappedValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 6a56a71ad59..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldLookup.g.cs +++ /dev/null @@ -1,275 +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.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/FieldValueFactorScoreFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs deleted file mode 100644 index edffcb2d5b2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FieldValueFactorScoreFunction.g.cs +++ /dev/null @@ -1,280 +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.QueryDsl; - -public sealed partial class FieldValueFactorScoreFunction -{ - /// - /// - /// Optional factor to multiply the field value with. - /// - /// - [JsonInclude, JsonPropertyName("factor")] - public double? Factor { get; set; } - - /// - /// - /// Field to be extracted from the document. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Value used if the document doesn’t have that field. - /// The modifier and factor are still applied to it as though it were read from the document. - /// - /// - [JsonInclude, JsonPropertyName("missing")] - public double? Missing { get; set; } - - /// - /// - /// Modifier to apply to the field value. - /// - /// - [JsonInclude, JsonPropertyName("modifier")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorModifier? Modifier { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScore(FieldValueFactorScoreFunction fieldValueFactorScoreFunction) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScore.FieldValueFactor(fieldValueFactorScoreFunction); -} - -public sealed partial class FieldValueFactorScoreFunctionDescriptor : SerializableDescriptor> -{ - internal FieldValueFactorScoreFunctionDescriptor(Action> configure) => configure.Invoke(this); - - public FieldValueFactorScoreFunctionDescriptor() : base() - { - } - - private double? FactorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private double? MissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorModifier? ModifierValue { get; set; } - - /// - /// - /// Optional factor to multiply the field value with. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Factor(double? factor) - { - FactorValue = factor; - return Self; - } - - /// - /// - /// Field to be extracted from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field to be extracted from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field to be extracted from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Value used if the document doesn’t have that field. - /// The modifier and factor are still applied to it as though it were read from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Missing(double? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Modifier to apply to the field value. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Modifier(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorModifier? modifier) - { - ModifierValue = modifier; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FactorValue.HasValue) - { - writer.WritePropertyName("factor"); - writer.WriteNumberValue(FactorValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - if (ModifierValue is not null) - { - writer.WritePropertyName("modifier"); - JsonSerializer.Serialize(writer, ModifierValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldValueFactorScoreFunctionDescriptor : SerializableDescriptor -{ - internal FieldValueFactorScoreFunctionDescriptor(Action configure) => configure.Invoke(this); - - public FieldValueFactorScoreFunctionDescriptor() : base() - { - } - - private double? FactorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private double? MissingValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorModifier? ModifierValue { get; set; } - - /// - /// - /// Optional factor to multiply the field value with. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Factor(double? factor) - { - FactorValue = factor; - return Self; - } - - /// - /// - /// Field to be extracted from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field to be extracted from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field to be extracted from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Value used if the document doesn’t have that field. - /// The modifier and factor are still applied to it as though it were read from the document. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Missing(double? missing) - { - MissingValue = missing; - return Self; - } - - /// - /// - /// Modifier to apply to the field value. - /// - /// - public FieldValueFactorScoreFunctionDescriptor Modifier(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorModifier? modifier) - { - ModifierValue = modifier; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FactorValue.HasValue) - { - writer.WritePropertyName("factor"); - writer.WriteNumberValue(FactorValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (MissingValue.HasValue) - { - writer.WritePropertyName("missing"); - writer.WriteNumberValue(MissingValue.Value); - } - - if (ModifierValue is not null) - { - writer.WritePropertyName("modifier"); - JsonSerializer.Serialize(writer, ModifierValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScore.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScore.g.cs deleted file mode 100644 index 08762e35737..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScore.g.cs +++ /dev/null @@ -1,410 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(FunctionScoreConverter))] -public sealed partial class FunctionScore -{ - internal FunctionScore(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static FunctionScore Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => new FunctionScore("exp", decayFunction); - public static FunctionScore Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => new FunctionScore("exp", decayFunction); - public static FunctionScore Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => new FunctionScore("exp", decayFunction); - public static FunctionScore Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => new FunctionScore("exp", decayFunction); - public static FunctionScore FieldValueFactor(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorScoreFunction fieldValueFactorScoreFunction) => new FunctionScore("field_value_factor", fieldValueFactorScoreFunction); - public static FunctionScore Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => new FunctionScore("gauss", decayFunction); - public static FunctionScore Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => new FunctionScore("gauss", decayFunction); - public static FunctionScore Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => new FunctionScore("gauss", decayFunction); - public static FunctionScore Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => new FunctionScore("gauss", decayFunction); - public static FunctionScore Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => new FunctionScore("linear", decayFunction); - public static FunctionScore Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => new FunctionScore("linear", decayFunction); - public static FunctionScore Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => new FunctionScore("linear", decayFunction); - public static FunctionScore Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => new FunctionScore("linear", decayFunction); - public static FunctionScore RandomScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RandomScoreFunction randomScoreFunction) => new FunctionScore("random_score", randomScoreFunction); - public static FunctionScore ScriptScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreFunction scriptScoreFunction) => new FunctionScore("script_score", scriptScoreFunction); - - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } - [JsonInclude, JsonPropertyName("weight")] - public double? Weight { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class FunctionScoreConverter : JsonConverter -{ - public override FunctionScore Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filterValue = default; - double? weightValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "filter") - { - filterValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "weight") - { - weightValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "exp") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "field_value_factor") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "gauss") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "linear") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "random_score") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "script_score") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FunctionScore' from the response."); - } - - var result = new FunctionScore(variantNameValue, variantValue); - result.Filter = filterValue; - result.Weight = weightValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, FunctionScore value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Filter is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, value.Filter, options); - } - - if (value.Weight.HasValue) - { - writer.WritePropertyName("weight"); - writer.WriteNumberValue(value.Weight.Value); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "exp": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "field_value_factor": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorScoreFunction)value.Variant, options); - break; - case "gauss": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "linear": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "random_score": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RandomScoreFunction)value.Variant, options); - break; - case "script_score": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreFunction)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FunctionScoreDescriptor : SerializableDescriptor> -{ - internal FunctionScoreDescriptor(Action> configure) => configure.Invoke(this); - - public FunctionScoreDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private FunctionScoreDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private FunctionScoreDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } - private double? WeightValue { get; set; } - - public FunctionScoreDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterValue = filter; - return Self; - } - - public FunctionScoreDescriptor Weight(double? weight) - { - WeightValue = weight; - return Self; - } - - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor FieldValueFactor(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorScoreFunction fieldValueFactorScoreFunction) => Set(fieldValueFactorScoreFunction, "field_value_factor"); - public FunctionScoreDescriptor FieldValueFactor(Action> configure) => Set(configure, "field_value_factor"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor RandomScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RandomScoreFunction randomScoreFunction) => Set(randomScoreFunction, "random_score"); - public FunctionScoreDescriptor RandomScore(Action> configure) => Set(configure, "random_score"); - public FunctionScoreDescriptor ScriptScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreFunction scriptScoreFunction) => Set(scriptScoreFunction, "script_score"); - public FunctionScoreDescriptor ScriptScore(Action configure) => Set(configure, "script_score"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (WeightValue.HasValue) - { - writer.WritePropertyName("weight"); - writer.WriteNumberValue(WeightValue.Value); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FunctionScoreDescriptor : SerializableDescriptor -{ - internal FunctionScoreDescriptor(Action configure) => configure.Invoke(this); - - public FunctionScoreDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private FunctionScoreDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private FunctionScoreDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } - private double? WeightValue { get; set; } - - public FunctionScoreDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) - { - FilterValue = filter; - return Self; - } - - public FunctionScoreDescriptor Weight(double? weight) - { - WeightValue = weight; - return Self; - } - - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor Exp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => Set(decayFunction, "exp"); - public FunctionScoreDescriptor FieldValueFactor(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldValueFactorScoreFunction fieldValueFactorScoreFunction) => Set(fieldValueFactorScoreFunction, "field_value_factor"); - public FunctionScoreDescriptor FieldValueFactor(Action configure) => Set(configure, "field_value_factor"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Gauss(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => Set(decayFunction, "gauss"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumericDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDecayFunction decayFunction) => Set(decayFunction, "linear"); - public FunctionScoreDescriptor RandomScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RandomScoreFunction randomScoreFunction) => Set(randomScoreFunction, "random_score"); - public FunctionScoreDescriptor RandomScore(Action configure) => Set(configure, "random_score"); - public FunctionScoreDescriptor ScriptScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreFunction scriptScoreFunction) => Set(scriptScoreFunction, "script_score"); - public FunctionScoreDescriptor ScriptScore(Action configure) => Set(configure, "script_score"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (WeightValue.HasValue) - { - writer.WritePropertyName("weight"); - writer.WriteNumberValue(WeightValue.Value); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs deleted file mode 100644 index d77b5de10da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs +++ /dev/null @@ -1,586 +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.QueryDsl; - -public sealed partial class FunctionScoreQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Defines how he newly computed score is combined with the score of the query - /// - /// - [JsonInclude, JsonPropertyName("boost_mode")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionBoostMode? BoostMode { get; set; } - - /// - /// - /// One or more functions that compute a new score for each document returned by the query. - /// - /// - [JsonInclude, JsonPropertyName("functions")] - public ICollection? Functions { get; set; } - - /// - /// - /// Restricts the new score to not exceed the provided limit. - /// - /// - [JsonInclude, JsonPropertyName("max_boost")] - public double? MaxBoost { get; set; } - - /// - /// - /// Excludes documents that do not meet the provided score threshold. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public double? MinScore { get; set; } - - /// - /// - /// A query that determines the documents for which a new score is computed. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Specifies how the computed scores are combined - /// - /// - [JsonInclude, JsonPropertyName("score_mode")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreMode? ScoreMode { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(FunctionScoreQuery functionScoreQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.FunctionScore(functionScoreQuery); -} - -public sealed partial class FunctionScoreQueryDescriptor : SerializableDescriptor> -{ - internal FunctionScoreQueryDescriptor(Action> configure) => configure.Invoke(this); - - public FunctionScoreQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionBoostMode? BoostModeValue { get; set; } - private ICollection? FunctionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor FunctionsDescriptor { get; set; } - private Action> FunctionsDescriptorAction { get; set; } - private Action>[] FunctionsDescriptorActions { get; set; } - private double? MaxBoostValue { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreMode? ScoreModeValue { 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 FunctionScoreQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Defines how he newly computed score is combined with the score of the query - /// - /// - public FunctionScoreQueryDescriptor BoostMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionBoostMode? boostMode) - { - BoostModeValue = boostMode; - return Self; - } - - /// - /// - /// One or more functions that compute a new score for each document returned by the query. - /// - /// - public FunctionScoreQueryDescriptor Functions(ICollection? functions) - { - FunctionsDescriptor = null; - FunctionsDescriptorAction = null; - FunctionsDescriptorActions = null; - FunctionsValue = functions; - return Self; - } - - public FunctionScoreQueryDescriptor Functions(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor descriptor) - { - FunctionsValue = null; - FunctionsDescriptorAction = null; - FunctionsDescriptorActions = null; - FunctionsDescriptor = descriptor; - return Self; - } - - public FunctionScoreQueryDescriptor Functions(Action> configure) - { - FunctionsValue = null; - FunctionsDescriptor = null; - FunctionsDescriptorActions = null; - FunctionsDescriptorAction = configure; - return Self; - } - - public FunctionScoreQueryDescriptor Functions(params Action>[] configure) - { - FunctionsValue = null; - FunctionsDescriptor = null; - FunctionsDescriptorAction = null; - FunctionsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Restricts the new score to not exceed the provided limit. - /// - /// - public FunctionScoreQueryDescriptor MaxBoost(double? maxBoost) - { - MaxBoostValue = maxBoost; - return Self; - } - - /// - /// - /// Excludes documents that do not meet the provided score threshold. - /// - /// - public FunctionScoreQueryDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// A query that determines the documents for which a new score is computed. - /// - /// - public FunctionScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public FunctionScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public FunctionScoreQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public FunctionScoreQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Specifies how the computed scores are combined - /// - /// - public FunctionScoreQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (BoostModeValue is not null) - { - writer.WritePropertyName("boost_mode"); - JsonSerializer.Serialize(writer, BoostModeValue, options); - } - - if (FunctionsDescriptor is not null) - { - writer.WritePropertyName("functions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FunctionsDescriptor, options); - writer.WriteEndArray(); - } - else if (FunctionsDescriptorAction is not null) - { - writer.WritePropertyName("functions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor(FunctionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FunctionsDescriptorActions is not null) - { - writer.WritePropertyName("functions"); - writer.WriteStartArray(); - foreach (var action in FunctionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FunctionsValue is not null) - { - writer.WritePropertyName("functions"); - JsonSerializer.Serialize(writer, FunctionsValue, options); - } - - if (MaxBoostValue.HasValue) - { - writer.WritePropertyName("max_boost"); - writer.WriteNumberValue(MaxBoostValue.Value); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FunctionScoreQueryDescriptor : SerializableDescriptor -{ - internal FunctionScoreQueryDescriptor(Action configure) => configure.Invoke(this); - - public FunctionScoreQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionBoostMode? BoostModeValue { get; set; } - private ICollection? FunctionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor FunctionsDescriptor { get; set; } - private Action FunctionsDescriptorAction { get; set; } - private Action[] FunctionsDescriptorActions { get; set; } - private double? MaxBoostValue { get; set; } - private double? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreMode? ScoreModeValue { 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 FunctionScoreQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Defines how he newly computed score is combined with the score of the query - /// - /// - public FunctionScoreQueryDescriptor BoostMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionBoostMode? boostMode) - { - BoostModeValue = boostMode; - return Self; - } - - /// - /// - /// One or more functions that compute a new score for each document returned by the query. - /// - /// - public FunctionScoreQueryDescriptor Functions(ICollection? functions) - { - FunctionsDescriptor = null; - FunctionsDescriptorAction = null; - FunctionsDescriptorActions = null; - FunctionsValue = functions; - return Self; - } - - public FunctionScoreQueryDescriptor Functions(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor descriptor) - { - FunctionsValue = null; - FunctionsDescriptorAction = null; - FunctionsDescriptorActions = null; - FunctionsDescriptor = descriptor; - return Self; - } - - public FunctionScoreQueryDescriptor Functions(Action configure) - { - FunctionsValue = null; - FunctionsDescriptor = null; - FunctionsDescriptorActions = null; - FunctionsDescriptorAction = configure; - return Self; - } - - public FunctionScoreQueryDescriptor Functions(params Action[] configure) - { - FunctionsValue = null; - FunctionsDescriptor = null; - FunctionsDescriptorAction = null; - FunctionsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Restricts the new score to not exceed the provided limit. - /// - /// - public FunctionScoreQueryDescriptor MaxBoost(double? maxBoost) - { - MaxBoostValue = maxBoost; - return Self; - } - - /// - /// - /// Excludes documents that do not meet the provided score threshold. - /// - /// - public FunctionScoreQueryDescriptor MinScore(double? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// A query that determines the documents for which a new score is computed. - /// - /// - public FunctionScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public FunctionScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public FunctionScoreQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public FunctionScoreQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Specifies how the computed scores are combined - /// - /// - public FunctionScoreQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (BoostModeValue is not null) - { - writer.WritePropertyName("boost_mode"); - JsonSerializer.Serialize(writer, BoostModeValue, options); - } - - if (FunctionsDescriptor is not null) - { - writer.WritePropertyName("functions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, FunctionsDescriptor, options); - writer.WriteEndArray(); - } - else if (FunctionsDescriptorAction is not null) - { - writer.WritePropertyName("functions"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor(FunctionsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (FunctionsDescriptorActions is not null) - { - writer.WritePropertyName("functions"); - writer.WriteStartArray(); - foreach (var action in FunctionsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (FunctionsValue is not null) - { - writer.WritePropertyName("functions"); - JsonSerializer.Serialize(writer, FunctionsValue, options); - } - - if (MaxBoostValue.HasValue) - { - writer.WritePropertyName("max_boost"); - writer.WriteNumberValue(MaxBoostValue.Value); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FuzzyQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FuzzyQuery.g.cs deleted file mode 100644 index 634c9f48cf2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/FuzzyQuery.g.cs +++ /dev/null @@ -1,578 +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.QueryDsl; - -internal sealed partial class FuzzyQueryConverter : JsonConverter -{ - public override FuzzyQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new FuzzyQuery(fieldName); - 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 == "fuzziness") - { - variant.Fuzziness = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_expansions") - { - variant.MaxExpansions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prefix_length") - { - variant.PrefixLength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rewrite") - { - variant.Rewrite = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "transpositions") - { - variant.Transpositions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "value") - { - variant.Value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, FuzzyQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize FuzzyQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.Fuzziness is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, value.Fuzziness, options); - } - - if (value.MaxExpansions.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(value.MaxExpansions.Value); - } - - if (value.PrefixLength.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(value.PrefixLength.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (!string.IsNullOrEmpty(value.Rewrite)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(value.Rewrite); - } - - if (value.Transpositions.HasValue) - { - writer.WritePropertyName("transpositions"); - writer.WriteBooleanValue(value.Transpositions.Value); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, value.Value, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(FuzzyQueryConverter))] -public sealed partial class FuzzyQuery -{ - public FuzzyQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Maximum number of variations created. - /// - /// - public int? MaxExpansions { get; set; } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public int? PrefixLength { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public string? Rewrite { get; set; } - - /// - /// - /// Indicates whether edits include transpositions of two adjacent characters (for example ab to ba). - /// - /// - public bool? Transpositions { get; set; } - - /// - /// - /// Term you wish to find in the provided field. - /// - /// - public object Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(FuzzyQuery fuzzyQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Fuzzy(fuzzyQuery); -} - -public sealed partial class FuzzyQueryDescriptor : SerializableDescriptor> -{ - internal FuzzyQueryDescriptor(Action> configure) => configure.Invoke(this); - - public FuzzyQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private bool? TranspositionsValue { get; set; } - private object ValueValue { 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 FuzzyQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public FuzzyQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public FuzzyQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public FuzzyQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public FuzzyQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Maximum number of variations created. - /// - /// - public FuzzyQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public FuzzyQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - public FuzzyQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public FuzzyQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Indicates whether edits include transpositions of two adjacent characters (for example ab to ba). - /// - /// - public FuzzyQueryDescriptor Transpositions(bool? transpositions = true) - { - TranspositionsValue = transpositions; - return Self; - } - - /// - /// - /// Term you wish to find in the provided field. - /// - /// - public FuzzyQueryDescriptor Value(object value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - if (TranspositionsValue.HasValue) - { - writer.WritePropertyName("transpositions"); - writer.WriteBooleanValue(TranspositionsValue.Value); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class FuzzyQueryDescriptor : SerializableDescriptor -{ - internal FuzzyQueryDescriptor(Action configure) => configure.Invoke(this); - - public FuzzyQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private bool? TranspositionsValue { get; set; } - private object ValueValue { 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 FuzzyQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public FuzzyQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public FuzzyQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public FuzzyQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public FuzzyQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Maximum number of variations created. - /// - /// - public FuzzyQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public FuzzyQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - public FuzzyQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public FuzzyQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Indicates whether edits include transpositions of two adjacent characters (for example ab to ba). - /// - /// - public FuzzyQueryDescriptor Transpositions(bool? transpositions = true) - { - TranspositionsValue = transpositions; - return Self; - } - - /// - /// - /// Term you wish to find in the provided field. - /// - /// - public FuzzyQueryDescriptor Value(object value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - if (TranspositionsValue.HasValue) - { - writer.WritePropertyName("transpositions"); - writer.WriteBooleanValue(TranspositionsValue.Value); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs deleted file mode 100644 index 3195a8c1898..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoBoundingBoxQuery.g.cs +++ /dev/null @@ -1,393 +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.QueryDsl; - -internal sealed partial class GeoBoundingBoxQueryConverter : JsonConverter -{ - public override GeoBoundingBoxQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new GeoBoundingBoxQuery(); - 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; - } - - if (property == "validation_method") - { - variant.ValidationMethod = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.BoundingBox = JsonSerializer.Deserialize(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, GeoBoundingBoxQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.BoundingBox 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.BoundingBox, 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); - } - - if (value.ValidationMethod is not null) - { - writer.WritePropertyName("validation_method"); - JsonSerializer.Serialize(writer, value.ValidationMethod, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(GeoBoundingBoxQueryConverter))] -public sealed partial class GeoBoundingBoxQuery -{ - /// - /// - /// 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.GeoBounds BoundingBox { 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; } - - /// - /// - /// Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude. - /// Set to COERCE to also try to infer correct latitude or longitude. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? ValidationMethod { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(GeoBoundingBoxQuery geoBoundingBoxQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.GeoBoundingBox(geoBoundingBoxQuery); -} - -public sealed partial class GeoBoundingBoxQueryDescriptor : SerializableDescriptor> -{ - internal GeoBoundingBoxQueryDescriptor(Action> configure) => configure.Invoke(this); - - public GeoBoundingBoxQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds BoundingBoxValue { 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.GeoValidationMethod? ValidationMethodValue { 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 GeoBoundingBoxQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public GeoBoundingBoxQueryDescriptor BoundingBox(Elastic.Clients.Elasticsearch.Serverless.GeoBounds boundingBox) - { - BoundingBoxValue = boundingBox; - return Self; - } - - public GeoBoundingBoxQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoBoundingBoxQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoBoundingBoxQueryDescriptor 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 GeoBoundingBoxQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public GeoBoundingBoxQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude. - /// Set to COERCE to also try to infer correct latitude or longitude. - /// - /// - public GeoBoundingBoxQueryDescriptor ValidationMethod(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? validationMethod) - { - ValidationMethodValue = validationMethod; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && BoundingBoxValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, BoundingBoxValue, 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); - } - - if (ValidationMethodValue is not null) - { - writer.WritePropertyName("validation_method"); - JsonSerializer.Serialize(writer, ValidationMethodValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoBoundingBoxQueryDescriptor : SerializableDescriptor -{ - internal GeoBoundingBoxQueryDescriptor(Action configure) => configure.Invoke(this); - - public GeoBoundingBoxQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoBounds BoundingBoxValue { 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.GeoValidationMethod? ValidationMethodValue { 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 GeoBoundingBoxQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public GeoBoundingBoxQueryDescriptor BoundingBox(Elastic.Clients.Elasticsearch.Serverless.GeoBounds boundingBox) - { - BoundingBoxValue = boundingBox; - return Self; - } - - public GeoBoundingBoxQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoBoundingBoxQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoBoundingBoxQueryDescriptor 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 GeoBoundingBoxQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public GeoBoundingBoxQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude. - /// Set to COERCE to also try to infer correct latitude or longitude. - /// - /// - public GeoBoundingBoxQueryDescriptor ValidationMethod(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? validationMethod) - { - ValidationMethodValue = validationMethod; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && BoundingBoxValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, BoundingBoxValue, 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); - } - - if (ValidationMethodValue is not null) - { - writer.WritePropertyName("validation_method"); - JsonSerializer.Serialize(writer, ValidationMethodValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs deleted file mode 100644 index 6691e33a2f3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDecayFunction.g.cs +++ /dev/null @@ -1,228 +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.QueryDsl; - -internal sealed partial class GeoDecayFunctionConverter : JsonConverter -{ - public override GeoDecayFunction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new GeoDecayFunction(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "multi_value_mode") - { - variant.MultiValueMode = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Placement = JsonSerializer.Deserialize>(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, GeoDecayFunction value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Placement 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.Placement, options); - } - - if (value.MultiValueMode is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, value.MultiValueMode, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(GeoDecayFunctionConverter))] -public sealed partial class GeoDecayFunction -{ - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// 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 Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement Placement { get; set; } -} - -public sealed partial class GeoDecayFunctionDescriptor : SerializableDescriptor> -{ - internal GeoDecayFunctionDescriptor(Action> configure) => configure.Invoke(this); - - public GeoDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public GeoDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public GeoDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public GeoDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoDecayFunctionDescriptor : SerializableDescriptor -{ - internal GeoDecayFunctionDescriptor(Action configure) => configure.Invoke(this); - - public GeoDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public GeoDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public GeoDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public GeoDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs deleted file mode 100644 index 553ecc6bce7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceFeatureQuery.g.cs +++ /dev/null @@ -1,329 +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.QueryDsl; - -public sealed partial class GeoDistanceFeatureQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - [JsonInclude, JsonPropertyName("origin")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation Origin { get; set; } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public string Pivot { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } -} - -public sealed partial class GeoDistanceFeatureQueryDescriptor : SerializableDescriptor> -{ - internal GeoDistanceFeatureQueryDescriptor(Action> configure) => configure.Invoke(this); - - public GeoDistanceFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation OriginValue { get; set; } - private string PivotValue { get; set; } - private string? QueryNameValue { 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 GeoDistanceFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public GeoDistanceFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public GeoDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public GeoDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - public GeoDistanceFeatureQueryDescriptor Origin(Elastic.Clients.Elasticsearch.Serverless.GeoLocation origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - public GeoDistanceFeatureQueryDescriptor Pivot(string pivot) - { - PivotValue = pivot; - return Self; - } - - public GeoDistanceFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - writer.WritePropertyName("pivot"); - writer.WriteStringValue(PivotValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoDistanceFeatureQueryDescriptor : SerializableDescriptor -{ - internal GeoDistanceFeatureQueryDescriptor(Action configure) => configure.Invoke(this); - - public GeoDistanceFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation OriginValue { get; set; } - private string PivotValue { get; set; } - private string? QueryNameValue { 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 GeoDistanceFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public GeoDistanceFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public GeoDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public GeoDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - public GeoDistanceFeatureQueryDescriptor Origin(Elastic.Clients.Elasticsearch.Serverless.GeoLocation origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - public GeoDistanceFeatureQueryDescriptor Pivot(string pivot) - { - PivotValue = pivot; - return Self; - } - - public GeoDistanceFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - writer.WritePropertyName("pivot"); - writer.WriteStringValue(PivotValue); - 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/GeoDistanceQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs deleted file mode 100644 index 2b3714fabf1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoDistanceQuery.g.cs +++ /dev/null @@ -1,497 +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.QueryDsl; - -internal sealed partial class GeoDistanceQueryConverter : JsonConverter -{ - public override GeoDistanceQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new GeoDistanceQuery(); - 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 == "distance") - { - variant.Distance = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "distance_type") - { - variant.DistanceType = 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; - } - - if (property == "validation_method") - { - variant.ValidationMethod = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Location = JsonSerializer.Deserialize(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, GeoDistanceQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Location 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.Location, options); - } - - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - writer.WritePropertyName("distance"); - writer.WriteStringValue(value.Distance); - if (value.DistanceType is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, value.DistanceType, options); - } - - 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); - } - - if (value.ValidationMethod is not null) - { - writer.WritePropertyName("validation_method"); - JsonSerializer.Serialize(writer, value.ValidationMethod, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(GeoDistanceQueryConverter))] -public sealed partial class GeoDistanceQuery -{ - /// - /// - /// 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; } - - /// - /// - /// The radius of the circle centred on the specified location. - /// Points which fall into this circle are considered to be matches. - /// - /// - public string Distance { get; set; } - - /// - /// - /// How to compute the distance. - /// Set to plane for a faster calculation that's inaccurate on long distances and close to the poles. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceType { 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 Elastic.Clients.Elasticsearch.Serverless.GeoLocation Location { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude. - /// Set to COERCE to also try to infer correct latitude or longitude. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? ValidationMethod { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(GeoDistanceQuery geoDistanceQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.GeoDistance(geoDistanceQuery); -} - -public sealed partial class GeoDistanceQueryDescriptor : SerializableDescriptor> -{ - internal GeoDistanceQueryDescriptor(Action> configure) => configure.Invoke(this); - - public GeoDistanceQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string DistanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation LocationValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? ValidationMethodValue { 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 GeoDistanceQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The radius of the circle centred on the specified location. - /// Points which fall into this circle are considered to be matches. - /// - /// - public GeoDistanceQueryDescriptor Distance(string distance) - { - DistanceValue = distance; - return Self; - } - - /// - /// - /// How to compute the distance. - /// Set to plane for a faster calculation that's inaccurate on long distances and close to the poles. - /// - /// - public GeoDistanceQueryDescriptor DistanceType(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? distanceType) - { - DistanceTypeValue = distanceType; - return Self; - } - - public GeoDistanceQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceQueryDescriptor 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 GeoDistanceQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public GeoDistanceQueryDescriptor Location(Elastic.Clients.Elasticsearch.Serverless.GeoLocation location) - { - LocationValue = location; - return Self; - } - - public GeoDistanceQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude. - /// Set to COERCE to also try to infer correct latitude or longitude. - /// - /// - public GeoDistanceQueryDescriptor ValidationMethod(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? validationMethod) - { - ValidationMethodValue = validationMethod; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && LocationValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, LocationValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("distance"); - writer.WriteStringValue(DistanceValue); - if (DistanceTypeValue is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, DistanceTypeValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ValidationMethodValue is not null) - { - writer.WritePropertyName("validation_method"); - JsonSerializer.Serialize(writer, ValidationMethodValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GeoDistanceQueryDescriptor : SerializableDescriptor -{ - internal GeoDistanceQueryDescriptor(Action configure) => configure.Invoke(this); - - public GeoDistanceQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string DistanceValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? DistanceTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation LocationValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? ValidationMethodValue { 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 GeoDistanceQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The radius of the circle centred on the specified location. - /// Points which fall into this circle are considered to be matches. - /// - /// - public GeoDistanceQueryDescriptor Distance(string distance) - { - DistanceValue = distance; - return Self; - } - - /// - /// - /// How to compute the distance. - /// Set to plane for a faster calculation that's inaccurate on long distances and close to the poles. - /// - /// - public GeoDistanceQueryDescriptor DistanceType(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceType? distanceType) - { - DistanceTypeValue = distanceType; - return Self; - } - - public GeoDistanceQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public GeoDistanceQueryDescriptor 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 GeoDistanceQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public GeoDistanceQueryDescriptor Location(Elastic.Clients.Elasticsearch.Serverless.GeoLocation location) - { - LocationValue = location; - return Self; - } - - public GeoDistanceQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Set to IGNORE_MALFORMED to accept geo points with invalid latitude or longitude. - /// Set to COERCE to also try to infer correct latitude or longitude. - /// - /// - public GeoDistanceQueryDescriptor ValidationMethod(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoValidationMethod? validationMethod) - { - ValidationMethodValue = validationMethod; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && LocationValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, LocationValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("distance"); - writer.WriteStringValue(DistanceValue); - if (DistanceTypeValue is not null) - { - writer.WritePropertyName("distance_type"); - JsonSerializer.Serialize(writer, DistanceTypeValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ValidationMethodValue is not null) - { - writer.WritePropertyName("validation_method"); - JsonSerializer.Serialize(writer, ValidationMethodValue, 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 deleted file mode 100644 index ae6f6b188a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeFieldQuery.g.cs +++ /dev/null @@ -1,239 +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.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 deleted file mode 100644 index 7bd66d932fe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/GeoShapeQuery.g.cs +++ /dev/null @@ -1,375 +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.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/HasChildQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasChildQuery.g.cs deleted file mode 100644 index 70bfb6461fb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasChildQuery.g.cs +++ /dev/null @@ -1,575 +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.QueryDsl; - -public sealed partial class HasChildQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Indicates whether to ignore an unmapped type and not return any documents instead of an error. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unmapped")] - public bool? IgnoreUnmapped { get; set; } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - [JsonInclude, JsonPropertyName("inner_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHits { get; set; } - - /// - /// - /// Maximum number of child documents that match the query allowed for a returned parent document. - /// If the parent document exceeds this limit, it is excluded from the search results. - /// - /// - [JsonInclude, JsonPropertyName("max_children")] - public int? MaxChildren { get; set; } - - /// - /// - /// Minimum number of child documents that match the query required to match the query for a returned parent document. - /// If the parent document does not meet this limit, it is excluded from the search results. - /// - /// - [JsonInclude, JsonPropertyName("min_children")] - public int? MinChildren { get; set; } - - /// - /// - /// Query you wish to run on child documents of the type field. - /// If a child document matches the search, the query returns the parent document. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Indicates how scores for matching child documents affect the root parent document’s relevance score. - /// - /// - [JsonInclude, JsonPropertyName("score_mode")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? ScoreMode { get; set; } - - /// - /// - /// Name of the child relationship mapped for the join field. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(HasChildQuery hasChildQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.HasChild(hasChildQuery); -} - -public sealed partial class HasChildQueryDescriptor : SerializableDescriptor> -{ - internal HasChildQueryDescriptor(Action> configure) => configure.Invoke(this); - - public HasChildQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action> InnerHitsDescriptorAction { get; set; } - private int? MaxChildrenValue { get; set; } - private int? MinChildrenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? ScoreModeValue { get; set; } - private string TypeValue { 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 HasChildQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped type and not return any documents instead of an error. - /// - /// - public HasChildQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public HasChildQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public HasChildQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public HasChildQueryDescriptor InnerHits(Action> configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of child documents that match the query allowed for a returned parent document. - /// If the parent document exceeds this limit, it is excluded from the search results. - /// - /// - public HasChildQueryDescriptor MaxChildren(int? maxChildren) - { - MaxChildrenValue = maxChildren; - return Self; - } - - /// - /// - /// Minimum number of child documents that match the query required to match the query for a returned parent document. - /// If the parent document does not meet this limit, it is excluded from the search results. - /// - /// - public HasChildQueryDescriptor MinChildren(int? minChildren) - { - MinChildrenValue = minChildren; - return Self; - } - - /// - /// - /// Query you wish to run on child documents of the type field. - /// If a child document matches the search, the query returns the parent document. - /// - /// - public HasChildQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HasChildQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HasChildQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public HasChildQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how scores for matching child documents affect the root parent document’s relevance score. - /// - /// - public HasChildQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - /// - /// - /// Name of the child relationship mapped for the join field. - /// - /// - public HasChildQueryDescriptor Type(string type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - if (MaxChildrenValue.HasValue) - { - writer.WritePropertyName("max_children"); - writer.WriteNumberValue(MaxChildrenValue.Value); - } - - if (MinChildrenValue.HasValue) - { - writer.WritePropertyName("min_children"); - writer.WriteNumberValue(MinChildrenValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - writer.WriteEndObject(); - } -} - -public sealed partial class HasChildQueryDescriptor : SerializableDescriptor -{ - internal HasChildQueryDescriptor(Action configure) => configure.Invoke(this); - - public HasChildQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action InnerHitsDescriptorAction { get; set; } - private int? MaxChildrenValue { get; set; } - private int? MinChildrenValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? ScoreModeValue { get; set; } - private string TypeValue { 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 HasChildQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped type and not return any documents instead of an error. - /// - /// - public HasChildQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public HasChildQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public HasChildQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public HasChildQueryDescriptor InnerHits(Action configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of child documents that match the query allowed for a returned parent document. - /// If the parent document exceeds this limit, it is excluded from the search results. - /// - /// - public HasChildQueryDescriptor MaxChildren(int? maxChildren) - { - MaxChildrenValue = maxChildren; - return Self; - } - - /// - /// - /// Minimum number of child documents that match the query required to match the query for a returned parent document. - /// If the parent document does not meet this limit, it is excluded from the search results. - /// - /// - public HasChildQueryDescriptor MinChildren(int? minChildren) - { - MinChildrenValue = minChildren; - return Self; - } - - /// - /// - /// Query you wish to run on child documents of the type field. - /// If a child document matches the search, the query returns the parent document. - /// - /// - public HasChildQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HasChildQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HasChildQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public HasChildQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how scores for matching child documents affect the root parent document’s relevance score. - /// - /// - public HasChildQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - /// - /// - /// Name of the child relationship mapped for the join field. - /// - /// - public HasChildQueryDescriptor Type(string type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - if (MaxChildrenValue.HasValue) - { - writer.WritePropertyName("max_children"); - writer.WriteNumberValue(MaxChildrenValue.Value); - } - - if (MinChildrenValue.HasValue) - { - writer.WritePropertyName("min_children"); - writer.WriteNumberValue(MinChildrenValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasParentQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasParentQuery.g.cs deleted file mode 100644 index 5776345b119..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/HasParentQuery.g.cs +++ /dev/null @@ -1,484 +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.QueryDsl; - -public sealed partial class HasParentQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error. - /// You can use this parameter to query multiple indices that may not contain the parent_type. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unmapped")] - public bool? IgnoreUnmapped { get; set; } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - [JsonInclude, JsonPropertyName("inner_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHits { get; set; } - - /// - /// - /// Name of the parent relationship mapped for the join field. - /// - /// - [JsonInclude, JsonPropertyName("parent_type")] - public string ParentType { get; set; } - - /// - /// - /// Query you wish to run on parent documents of the parent_type field. - /// If a parent document matches the search, the query returns its child documents. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Indicates whether the relevance score of a matching parent document is aggregated into its child documents. - /// - /// - [JsonInclude, JsonPropertyName("score")] - public bool? Score { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(HasParentQuery hasParentQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.HasParent(hasParentQuery); -} - -public sealed partial class HasParentQueryDescriptor : SerializableDescriptor> -{ - internal HasParentQueryDescriptor(Action> configure) => configure.Invoke(this); - - public HasParentQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action> InnerHitsDescriptorAction { get; set; } - private string ParentTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private bool? ScoreValue { 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 HasParentQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error. - /// You can use this parameter to query multiple indices that may not contain the parent_type. - /// - /// - public HasParentQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public HasParentQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public HasParentQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public HasParentQueryDescriptor InnerHits(Action> configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Name of the parent relationship mapped for the join field. - /// - /// - public HasParentQueryDescriptor ParentType(string parentType) - { - ParentTypeValue = parentType; - return Self; - } - - /// - /// - /// Query you wish to run on parent documents of the parent_type field. - /// If a parent document matches the search, the query returns its child documents. - /// - /// - public HasParentQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HasParentQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HasParentQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public HasParentQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates whether the relevance score of a matching parent document is aggregated into its child documents. - /// - /// - public HasParentQueryDescriptor Score(bool? score = true) - { - ScoreValue = score; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - writer.WritePropertyName("parent_type"); - writer.WriteStringValue(ParentTypeValue); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreValue.HasValue) - { - writer.WritePropertyName("score"); - writer.WriteBooleanValue(ScoreValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class HasParentQueryDescriptor : SerializableDescriptor -{ - internal HasParentQueryDescriptor(Action configure) => configure.Invoke(this); - - public HasParentQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action InnerHitsDescriptorAction { get; set; } - private string ParentTypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private bool? ScoreValue { 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 HasParentQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error. - /// You can use this parameter to query multiple indices that may not contain the parent_type. - /// - /// - public HasParentQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public HasParentQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public HasParentQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public HasParentQueryDescriptor InnerHits(Action configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Name of the parent relationship mapped for the join field. - /// - /// - public HasParentQueryDescriptor ParentType(string parentType) - { - ParentTypeValue = parentType; - return Self; - } - - /// - /// - /// Query you wish to run on parent documents of the parent_type field. - /// If a parent document matches the search, the query returns its child documents. - /// - /// - public HasParentQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public HasParentQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public HasParentQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public HasParentQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates whether the relevance score of a matching parent document is aggregated into its child documents. - /// - /// - public HasParentQueryDescriptor Score(bool? score = true) - { - ScoreValue = score; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - writer.WritePropertyName("parent_type"); - writer.WriteStringValue(ParentTypeValue); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreValue.HasValue) - { - writer.WritePropertyName("score"); - writer.WriteBooleanValue(ScoreValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IdsQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IdsQuery.g.cs deleted file mode 100644 index 48ca46766af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IdsQuery.g.cs +++ /dev/null @@ -1,125 +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.QueryDsl; - -public sealed partial class IdsQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// An array of document IDs. - /// - /// - [JsonInclude, JsonPropertyName("values")] - public Elastic.Clients.Elasticsearch.Serverless.Ids? Values { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(IdsQuery idsQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Ids(idsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(IdsQuery idsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Ids(idsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(IdsQuery idsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Ids(idsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(IdsQuery idsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Ids(idsQuery); -} - -public sealed partial class IdsQueryDescriptor : SerializableDescriptor -{ - internal IdsQueryDescriptor(Action configure) => configure.Invoke(this); - - public IdsQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Ids? ValuesValue { 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 IdsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public IdsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// An array of document IDs. - /// - /// - public IdsQueryDescriptor Values(Elastic.Clients.Elasticsearch.Serverless.Ids? values) - { - ValuesValue = values; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ValuesValue is not null) - { - writer.WritePropertyName("values"); - JsonSerializer.Serialize(writer, ValuesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Intervals.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Intervals.g.cs deleted file mode 100644 index 2fba17d43c9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Intervals.g.cs +++ /dev/null @@ -1,302 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(IntervalsConverter))] -public sealed partial class Intervals -{ - internal Intervals(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Intervals AllOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf intervalsAllOf) => new Intervals("all_of", intervalsAllOf); - public static Intervals AnyOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf intervalsAnyOf) => new Intervals("any_of", intervalsAnyOf); - public static Intervals Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy intervalsFuzzy) => new Intervals("fuzzy", intervalsFuzzy); - public static Intervals Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch intervalsMatch) => new Intervals("match", intervalsMatch); - public static Intervals Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix intervalsPrefix) => new Intervals("prefix", intervalsPrefix); - public static Intervals Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard intervalsWildcard) => new Intervals("wildcard", intervalsWildcard); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class IntervalsConverter : JsonConverter -{ - public override Intervals Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "all_of") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "any_of") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fuzzy") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wildcard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Intervals' from the response."); - } - - var result = new Intervals(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Intervals value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "all_of": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf)value.Variant, options); - break; - case "any_of": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf)value.Variant, options); - break; - case "fuzzy": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy)value.Variant, options); - break; - case "match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch)value.Variant, options); - break; - case "prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix)value.Variant, options); - break; - case "wildcard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsDescriptor : SerializableDescriptor> -{ - internal IntervalsDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IntervalsDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IntervalsDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IntervalsDescriptor AllOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf intervalsAllOf) => Set(intervalsAllOf, "all_of"); - public IntervalsDescriptor AllOf(Action> configure) => Set(configure, "all_of"); - public IntervalsDescriptor AnyOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf intervalsAnyOf) => Set(intervalsAnyOf, "any_of"); - public IntervalsDescriptor AnyOf(Action> configure) => Set(configure, "any_of"); - public IntervalsDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy intervalsFuzzy) => Set(intervalsFuzzy, "fuzzy"); - public IntervalsDescriptor Fuzzy(Action> configure) => Set(configure, "fuzzy"); - public IntervalsDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch intervalsMatch) => Set(intervalsMatch, "match"); - public IntervalsDescriptor Match(Action> configure) => Set(configure, "match"); - public IntervalsDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix intervalsPrefix) => Set(intervalsPrefix, "prefix"); - public IntervalsDescriptor Prefix(Action> configure) => Set(configure, "prefix"); - public IntervalsDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard intervalsWildcard) => Set(intervalsWildcard, "wildcard"); - public IntervalsDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsDescriptor : SerializableDescriptor -{ - internal IntervalsDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IntervalsDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IntervalsDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IntervalsDescriptor AllOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf intervalsAllOf) => Set(intervalsAllOf, "all_of"); - public IntervalsDescriptor AllOf(Action configure) => Set(configure, "all_of"); - public IntervalsDescriptor AnyOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf intervalsAnyOf) => Set(intervalsAnyOf, "any_of"); - public IntervalsDescriptor AnyOf(Action configure) => Set(configure, "any_of"); - public IntervalsDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy intervalsFuzzy) => Set(intervalsFuzzy, "fuzzy"); - public IntervalsDescriptor Fuzzy(Action configure) => Set(configure, "fuzzy"); - public IntervalsDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch intervalsMatch) => Set(intervalsMatch, "match"); - public IntervalsDescriptor Match(Action configure) => Set(configure, "match"); - public IntervalsDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix intervalsPrefix) => Set(intervalsPrefix, "prefix"); - public IntervalsDescriptor Prefix(Action configure) => Set(configure, "prefix"); - public IntervalsDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard intervalsWildcard) => Set(intervalsWildcard, "wildcard"); - public IntervalsDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs deleted file mode 100644 index 1142c8d067f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs +++ /dev/null @@ -1,421 +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.QueryDsl; - -public sealed partial class IntervalsAllOf -{ - /// - /// - /// Rule used to filter returned intervals. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? Filter { get; set; } - - /// - /// - /// An array of rules to combine. All rules must produce a match in a document for the overall source to match. - /// - /// - [JsonInclude, JsonPropertyName("intervals")] - public ICollection Intervals { get; set; } - - /// - /// - /// Maximum number of positions between the matching terms. - /// Intervals produced by the rules further apart than this are not considered matches. - /// - /// - [JsonInclude, JsonPropertyName("max_gaps")] - public int? MaxGaps { get; set; } - - /// - /// - /// If true, intervals produced by the rules should appear in the order in which they are specified. - /// - /// - [JsonInclude, JsonPropertyName("ordered")] - public bool? Ordered { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals(IntervalsAllOf intervalsAllOf) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals.AllOf(intervalsAllOf); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery(IntervalsAllOf intervalsAllOf) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery.AllOf(intervalsAllOf); -} - -public sealed partial class IntervalsAllOfDescriptor : SerializableDescriptor> -{ - internal IntervalsAllOfDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsAllOfDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private ICollection IntervalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor IntervalsDescriptor { get; set; } - private Action> IntervalsDescriptorAction { get; set; } - private Action>[] IntervalsDescriptorActions { get; set; } - private int? MaxGapsValue { get; set; } - private bool? OrderedValue { get; set; } - - /// - /// - /// Rule used to filter returned intervals. - /// - /// - public IntervalsAllOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public IntervalsAllOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public IntervalsAllOfDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of rules to combine. All rules must produce a match in a document for the overall source to match. - /// - /// - public IntervalsAllOfDescriptor Intervals(ICollection intervals) - { - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsValue = intervals; - return Self; - } - - public IntervalsAllOfDescriptor Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor descriptor) - { - IntervalsValue = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsDescriptor = descriptor; - return Self; - } - - public IntervalsAllOfDescriptor Intervals(Action> configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorActions = null; - IntervalsDescriptorAction = configure; - return Self; - } - - public IntervalsAllOfDescriptor Intervals(params Action>[] configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Maximum number of positions between the matching terms. - /// Intervals produced by the rules further apart than this are not considered matches. - /// - /// - public IntervalsAllOfDescriptor MaxGaps(int? maxGaps) - { - MaxGapsValue = maxGaps; - return Self; - } - - /// - /// - /// If true, intervals produced by the rules should appear in the order in which they are specified. - /// - /// - public IntervalsAllOfDescriptor Ordered(bool? ordered = true) - { - OrderedValue = ordered; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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.IntervalsFilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (IntervalsDescriptor is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IntervalsDescriptor, options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorAction is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(IntervalsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorActions is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - foreach (var action in IntervalsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("intervals"); - JsonSerializer.Serialize(writer, IntervalsValue, options); - } - - if (MaxGapsValue.HasValue) - { - writer.WritePropertyName("max_gaps"); - writer.WriteNumberValue(MaxGapsValue.Value); - } - - if (OrderedValue.HasValue) - { - writer.WritePropertyName("ordered"); - writer.WriteBooleanValue(OrderedValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsAllOfDescriptor : SerializableDescriptor -{ - internal IntervalsAllOfDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsAllOfDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private ICollection IntervalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor IntervalsDescriptor { get; set; } - private Action IntervalsDescriptorAction { get; set; } - private Action[] IntervalsDescriptorActions { get; set; } - private int? MaxGapsValue { get; set; } - private bool? OrderedValue { get; set; } - - /// - /// - /// Rule used to filter returned intervals. - /// - /// - public IntervalsAllOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public IntervalsAllOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public IntervalsAllOfDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of rules to combine. All rules must produce a match in a document for the overall source to match. - /// - /// - public IntervalsAllOfDescriptor Intervals(ICollection intervals) - { - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsValue = intervals; - return Self; - } - - public IntervalsAllOfDescriptor Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor descriptor) - { - IntervalsValue = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsDescriptor = descriptor; - return Self; - } - - public IntervalsAllOfDescriptor Intervals(Action configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorActions = null; - IntervalsDescriptorAction = configure; - return Self; - } - - public IntervalsAllOfDescriptor Intervals(params Action[] configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = configure; - return Self; - } - - /// - /// - /// Maximum number of positions between the matching terms. - /// Intervals produced by the rules further apart than this are not considered matches. - /// - /// - public IntervalsAllOfDescriptor MaxGaps(int? maxGaps) - { - MaxGapsValue = maxGaps; - return Self; - } - - /// - /// - /// If true, intervals produced by the rules should appear in the order in which they are specified. - /// - /// - public IntervalsAllOfDescriptor Ordered(bool? ordered = true) - { - OrderedValue = ordered; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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.IntervalsFilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (IntervalsDescriptor is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IntervalsDescriptor, options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorAction is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(IntervalsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorActions is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - foreach (var action in IntervalsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("intervals"); - JsonSerializer.Serialize(writer, IntervalsValue, options); - } - - if (MaxGapsValue.HasValue) - { - writer.WritePropertyName("max_gaps"); - writer.WriteNumberValue(MaxGapsValue.Value); - } - - if (OrderedValue.HasValue) - { - writer.WritePropertyName("ordered"); - writer.WriteBooleanValue(OrderedValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs deleted file mode 100644 index 4be35cc9c03..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs +++ /dev/null @@ -1,330 +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.QueryDsl; - -public sealed partial class IntervalsAnyOf -{ - /// - /// - /// Rule used to filter returned intervals. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? Filter { get; set; } - - /// - /// - /// An array of rules to match. - /// - /// - [JsonInclude, JsonPropertyName("intervals")] - public ICollection Intervals { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals(IntervalsAnyOf intervalsAnyOf) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals.AnyOf(intervalsAnyOf); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery(IntervalsAnyOf intervalsAnyOf) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery.AnyOf(intervalsAnyOf); -} - -public sealed partial class IntervalsAnyOfDescriptor : SerializableDescriptor> -{ - internal IntervalsAnyOfDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsAnyOfDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private ICollection IntervalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor IntervalsDescriptor { get; set; } - private Action> IntervalsDescriptorAction { get; set; } - private Action>[] IntervalsDescriptorActions { get; set; } - - /// - /// - /// Rule used to filter returned intervals. - /// - /// - public IntervalsAnyOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public IntervalsAnyOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public IntervalsAnyOfDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of rules to match. - /// - /// - public IntervalsAnyOfDescriptor Intervals(ICollection intervals) - { - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsValue = intervals; - return Self; - } - - public IntervalsAnyOfDescriptor Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor descriptor) - { - IntervalsValue = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsDescriptor = descriptor; - return Self; - } - - public IntervalsAnyOfDescriptor Intervals(Action> configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorActions = null; - IntervalsDescriptorAction = configure; - return Self; - } - - public IntervalsAnyOfDescriptor Intervals(params Action>[] configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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.IntervalsFilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (IntervalsDescriptor is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IntervalsDescriptor, options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorAction is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(IntervalsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorActions is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - foreach (var action in IntervalsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("intervals"); - JsonSerializer.Serialize(writer, IntervalsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsAnyOfDescriptor : SerializableDescriptor -{ - internal IntervalsAnyOfDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsAnyOfDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private ICollection IntervalsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor IntervalsDescriptor { get; set; } - private Action IntervalsDescriptorAction { get; set; } - private Action[] IntervalsDescriptorActions { get; set; } - - /// - /// - /// Rule used to filter returned intervals. - /// - /// - public IntervalsAnyOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public IntervalsAnyOfDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public IntervalsAnyOfDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// An array of rules to match. - /// - /// - public IntervalsAnyOfDescriptor Intervals(ICollection intervals) - { - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsValue = intervals; - return Self; - } - - public IntervalsAnyOfDescriptor Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor descriptor) - { - IntervalsValue = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = null; - IntervalsDescriptor = descriptor; - return Self; - } - - public IntervalsAnyOfDescriptor Intervals(Action configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorActions = null; - IntervalsDescriptorAction = configure; - return Self; - } - - public IntervalsAnyOfDescriptor Intervals(params Action[] configure) - { - IntervalsValue = null; - IntervalsDescriptor = null; - IntervalsDescriptorAction = null; - IntervalsDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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.IntervalsFilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (IntervalsDescriptor is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IntervalsDescriptor, options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorAction is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(IntervalsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IntervalsDescriptorActions is not null) - { - writer.WritePropertyName("intervals"); - writer.WriteStartArray(); - foreach (var action in IntervalsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("intervals"); - JsonSerializer.Serialize(writer, IntervalsValue, options); - } - - 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 deleted file mode 100644 index 787ad340e5d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFilter.g.cs +++ /dev/null @@ -1,347 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(IntervalsFilterConverter))] -public sealed partial class IntervalsFilter -{ - internal IntervalsFilter(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static IntervalsFilter After(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("after", intervalsContainer); - public static IntervalsFilter Before(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("before", intervalsContainer); - public static IntervalsFilter ContainedBy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("contained_by", intervalsContainer); - public static IntervalsFilter Containing(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("containing", intervalsContainer); - public static IntervalsFilter NotContainedBy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("not_contained_by", intervalsContainer); - public static IntervalsFilter NotContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("not_containing", intervalsContainer); - public static IntervalsFilter NotOverlapping(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("not_overlapping", intervalsContainer); - public static IntervalsFilter Overlapping(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => new IntervalsFilter("overlapping", intervalsContainer); - public static IntervalsFilter Script(Elastic.Clients.Elasticsearch.Serverless.Script script) => new IntervalsFilter("script", script); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class IntervalsFilterConverter : JsonConverter -{ - public override IntervalsFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "after") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "before") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "contained_by") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "containing") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "not_contained_by") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "not_containing") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "not_overlapping") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "overlapping") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "script") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IntervalsFilter' from the response."); - } - - var result = new IntervalsFilter(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, IntervalsFilter value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "after": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "before": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "contained_by": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "containing": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "not_contained_by": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "not_containing": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "not_overlapping": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "overlapping": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals)value.Variant, options); - break; - case "script": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Script)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsFilterDescriptor : SerializableDescriptor> -{ - internal IntervalsFilterDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsFilterDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IntervalsFilterDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IntervalsFilterDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IntervalsFilterDescriptor After(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "after"); - public IntervalsFilterDescriptor After(Action> configure) => Set(configure, "after"); - public IntervalsFilterDescriptor Before(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "before"); - public IntervalsFilterDescriptor Before(Action> configure) => Set(configure, "before"); - public IntervalsFilterDescriptor ContainedBy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "contained_by"); - public IntervalsFilterDescriptor ContainedBy(Action> configure) => Set(configure, "contained_by"); - public IntervalsFilterDescriptor Containing(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "containing"); - public IntervalsFilterDescriptor Containing(Action> configure) => Set(configure, "containing"); - public IntervalsFilterDescriptor NotContainedBy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "not_contained_by"); - public IntervalsFilterDescriptor NotContainedBy(Action> configure) => Set(configure, "not_contained_by"); - public IntervalsFilterDescriptor NotContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "not_containing"); - public IntervalsFilterDescriptor NotContaining(Action> configure) => Set(configure, "not_containing"); - public IntervalsFilterDescriptor NotOverlapping(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "not_overlapping"); - public IntervalsFilterDescriptor NotOverlapping(Action> configure) => Set(configure, "not_overlapping"); - 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) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsFilterDescriptor : SerializableDescriptor -{ - internal IntervalsFilterDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsFilterDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IntervalsFilterDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IntervalsFilterDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public IntervalsFilterDescriptor After(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "after"); - public IntervalsFilterDescriptor After(Action configure) => Set(configure, "after"); - public IntervalsFilterDescriptor Before(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "before"); - public IntervalsFilterDescriptor Before(Action configure) => Set(configure, "before"); - public IntervalsFilterDescriptor ContainedBy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "contained_by"); - public IntervalsFilterDescriptor ContainedBy(Action configure) => Set(configure, "contained_by"); - public IntervalsFilterDescriptor Containing(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "containing"); - public IntervalsFilterDescriptor Containing(Action configure) => Set(configure, "containing"); - public IntervalsFilterDescriptor NotContainedBy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "not_contained_by"); - public IntervalsFilterDescriptor NotContainedBy(Action configure) => Set(configure, "not_contained_by"); - public IntervalsFilterDescriptor NotContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "not_containing"); - public IntervalsFilterDescriptor NotContaining(Action configure) => Set(configure, "not_containing"); - public IntervalsFilterDescriptor NotOverlapping(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals intervalsContainer) => Set(intervalsContainer, "not_overlapping"); - public IntervalsFilterDescriptor NotOverlapping(Action configure) => Set(configure, "not_overlapping"); - 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) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs deleted file mode 100644 index 4186a5b33dc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsFuzzy.g.cs +++ /dev/null @@ -1,373 +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.QueryDsl; - -public sealed partial class IntervalsFuzzy -{ - /// - /// - /// Analyzer used to normalize the term. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzziness")] - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - [JsonInclude, JsonPropertyName("prefix_length")] - public int? PrefixLength { get; set; } - - /// - /// - /// The term to match. - /// - /// - [JsonInclude, JsonPropertyName("term")] - public string Term { get; set; } - - /// - /// - /// Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - [JsonInclude, JsonPropertyName("transpositions")] - public bool? Transpositions { get; set; } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - [JsonInclude, JsonPropertyName("use_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? UseField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals(IntervalsFuzzy intervalsFuzzy) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals.Fuzzy(intervalsFuzzy); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery(IntervalsFuzzy intervalsFuzzy) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery.Fuzzy(intervalsFuzzy); -} - -public sealed partial class IntervalsFuzzyDescriptor : SerializableDescriptor> -{ - internal IntervalsFuzzyDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsFuzzyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string TermValue { get; set; } - private bool? TranspositionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to normalize the term. - /// - /// - public IntervalsFuzzyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public IntervalsFuzzyDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public IntervalsFuzzyDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// The term to match. - /// - /// - public IntervalsFuzzyDescriptor Term(string term) - { - TermValue = term; - return Self; - } - - /// - /// - /// Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public IntervalsFuzzyDescriptor Transpositions(bool? transpositions = true) - { - TranspositionsValue = transpositions; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsFuzzyDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsFuzzyDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsFuzzyDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("term"); - writer.WriteStringValue(TermValue); - if (TranspositionsValue.HasValue) - { - writer.WritePropertyName("transpositions"); - writer.WriteBooleanValue(TranspositionsValue.Value); - } - - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsFuzzyDescriptor : SerializableDescriptor -{ - internal IntervalsFuzzyDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsFuzzyDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string TermValue { get; set; } - private bool? TranspositionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to normalize the term. - /// - /// - public IntervalsFuzzyDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public IntervalsFuzzyDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged when creating expansions. - /// - /// - public IntervalsFuzzyDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// The term to match. - /// - /// - public IntervalsFuzzyDescriptor Term(string term) - { - TermValue = term; - return Self; - } - - /// - /// - /// Indicates whether edits include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public IntervalsFuzzyDescriptor Transpositions(bool? transpositions = true) - { - TranspositionsValue = transpositions; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsFuzzyDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsFuzzyDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsFuzzyDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("term"); - writer.WriteStringValue(TermValue); - if (TranspositionsValue.HasValue) - { - writer.WritePropertyName("transpositions"); - writer.WriteBooleanValue(TranspositionsValue.Value); - } - - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsMatch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsMatch.g.cs deleted file mode 100644 index 149827281a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsMatch.g.cs +++ /dev/null @@ -1,436 +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.QueryDsl; - -public sealed partial class IntervalsMatch -{ - /// - /// - /// Analyzer used to analyze terms in the query. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// An optional interval filter. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? Filter { get; set; } - - /// - /// - /// Maximum number of positions between the matching terms. - /// Terms further apart than this are not considered matches. - /// - /// - [JsonInclude, JsonPropertyName("max_gaps")] - public int? MaxGaps { get; set; } - - /// - /// - /// If true, matching terms must appear in their specified order. - /// - /// - [JsonInclude, JsonPropertyName("ordered")] - public bool? Ordered { get; set; } - - /// - /// - /// Text you wish to find in the provided field. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - [JsonInclude, JsonPropertyName("use_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? UseField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals(IntervalsMatch intervalsMatch) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals.Match(intervalsMatch); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery(IntervalsMatch intervalsMatch) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery.Match(intervalsMatch); -} - -public sealed partial class IntervalsMatchDescriptor : SerializableDescriptor> -{ - internal IntervalsMatchDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsMatchDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private int? MaxGapsValue { get; set; } - private bool? OrderedValue { get; set; } - private string QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to analyze terms in the query. - /// - /// - public IntervalsMatchDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// An optional interval filter. - /// - /// - public IntervalsMatchDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public IntervalsMatchDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public IntervalsMatchDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of positions between the matching terms. - /// Terms further apart than this are not considered matches. - /// - /// - public IntervalsMatchDescriptor MaxGaps(int? maxGaps) - { - MaxGapsValue = maxGaps; - return Self; - } - - /// - /// - /// If true, matching terms must appear in their specified order. - /// - /// - public IntervalsMatchDescriptor Ordered(bool? ordered = true) - { - OrderedValue = ordered; - return Self; - } - - /// - /// - /// Text you wish to find in the provided field. - /// - /// - public IntervalsMatchDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsMatchDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsMatchDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsMatchDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - 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.IntervalsFilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (MaxGapsValue.HasValue) - { - writer.WritePropertyName("max_gaps"); - writer.WriteNumberValue(MaxGapsValue.Value); - } - - if (OrderedValue.HasValue) - { - writer.WritePropertyName("ordered"); - writer.WriteBooleanValue(OrderedValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsMatchDescriptor : SerializableDescriptor -{ - internal IntervalsMatchDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsMatchDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private int? MaxGapsValue { get; set; } - private bool? OrderedValue { get; set; } - private string QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to analyze terms in the query. - /// - /// - public IntervalsMatchDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// An optional interval filter. - /// - /// - public IntervalsMatchDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilter? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterValue = filter; - return Self; - } - - public IntervalsMatchDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFilterDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptor = descriptor; - return Self; - } - - public IntervalsMatchDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = configure; - return Self; - } - - /// - /// - /// Maximum number of positions between the matching terms. - /// Terms further apart than this are not considered matches. - /// - /// - public IntervalsMatchDescriptor MaxGaps(int? maxGaps) - { - MaxGapsValue = maxGaps; - return Self; - } - - /// - /// - /// If true, matching terms must appear in their specified order. - /// - /// - public IntervalsMatchDescriptor Ordered(bool? ordered = true) - { - OrderedValue = ordered; - return Self; - } - - /// - /// - /// Text you wish to find in the provided field. - /// - /// - public IntervalsMatchDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsMatchDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsMatchDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The term is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsMatchDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - 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.IntervalsFilterDescriptor(FilterDescriptorAction), options); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - JsonSerializer.Serialize(writer, FilterValue, options); - } - - if (MaxGapsValue.HasValue) - { - writer.WritePropertyName("max_gaps"); - writer.WriteNumberValue(MaxGapsValue.Value); - } - - if (OrderedValue.HasValue) - { - writer.WritePropertyName("ordered"); - writer.WriteBooleanValue(OrderedValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs deleted file mode 100644 index d28ebb0cdbe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsPrefix.g.cs +++ /dev/null @@ -1,241 +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.QueryDsl; - -public sealed partial class IntervalsPrefix -{ - /// - /// - /// Analyzer used to analyze the prefix. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// Beginning characters of terms you wish to find in the top-level field. - /// - /// - [JsonInclude, JsonPropertyName("prefix")] - public string Prefix { get; set; } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - [JsonInclude, JsonPropertyName("use_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? UseField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals(IntervalsPrefix intervalsPrefix) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals.Prefix(intervalsPrefix); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery(IntervalsPrefix intervalsPrefix) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery.Prefix(intervalsPrefix); -} - -public sealed partial class IntervalsPrefixDescriptor : SerializableDescriptor> -{ - internal IntervalsPrefixDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsPrefixDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private string PrefixValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to analyze the prefix. - /// - /// - public IntervalsPrefixDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Beginning characters of terms you wish to find in the top-level field. - /// - /// - public IntervalsPrefixDescriptor Prefix(string prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsPrefixDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsPrefixDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsPrefixDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsPrefixDescriptor : SerializableDescriptor -{ - internal IntervalsPrefixDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsPrefixDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private string PrefixValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to analyze the prefix. - /// - /// - public IntervalsPrefixDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Beginning characters of terms you wish to find in the top-level field. - /// - /// - public IntervalsPrefixDescriptor Prefix(string prefix) - { - PrefixValue = prefix; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsPrefixDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsPrefixDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The prefix is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsPrefixDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - writer.WritePropertyName("prefix"); - writer.WriteStringValue(PrefixValue); - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsQuery.g.cs deleted file mode 100644 index 58eac78e84c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsQuery.g.cs +++ /dev/null @@ -1,475 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(IntervalsQueryConverter))] -public sealed partial class IntervalsQuery -{ - internal IntervalsQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static IntervalsQuery AllOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf intervalsAllOf) => new IntervalsQuery("all_of", intervalsAllOf); - public static IntervalsQuery AnyOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf intervalsAnyOf) => new IntervalsQuery("any_of", intervalsAnyOf); - public static IntervalsQuery Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy intervalsFuzzy) => new IntervalsQuery("fuzzy", intervalsFuzzy); - public static IntervalsQuery Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch intervalsMatch) => new IntervalsQuery("match", intervalsMatch); - public static IntervalsQuery Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix intervalsPrefix) => new IntervalsQuery("prefix", intervalsPrefix); - public static IntervalsQuery Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard intervalsWildcard) => new IntervalsQuery("wildcard", intervalsWildcard); - - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class IntervalsQueryConverter : JsonConverter -{ - public override IntervalsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - object? variantValue = default; - string? variantNameValue = default; - float? boostValue = default; - string? queryNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "boost") - { - boostValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "_name") - { - queryNameValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "all_of") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "any_of") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fuzzy") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wildcard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'IntervalsQuery' from the response."); - } - - reader.Read(); - var result = new IntervalsQuery(variantNameValue, variantValue); - result.Boost = boostValue; - result.Field = fieldName; - result.QueryName = queryNameValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, IntervalsQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize IntervalsQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "all_of": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf)value.Variant, options); - break; - case "any_of": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf)value.Variant, options); - break; - case "fuzzy": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy)value.Variant, options); - break; - case "match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch)value.Variant, options); - break; - case "prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix)value.Variant, options); - break; - case "wildcard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsQueryDescriptor : SerializableDescriptor> -{ - internal IntervalsQueryDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IntervalsQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IntervalsQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { 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 IntervalsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public IntervalsQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public IntervalsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public IntervalsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public IntervalsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public IntervalsQueryDescriptor AllOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf intervalsAllOf) => Set(intervalsAllOf, "all_of"); - public IntervalsQueryDescriptor AllOf(Action> configure) => Set(configure, "all_of"); - public IntervalsQueryDescriptor AnyOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf intervalsAnyOf) => Set(intervalsAnyOf, "any_of"); - public IntervalsQueryDescriptor AnyOf(Action> configure) => Set(configure, "any_of"); - public IntervalsQueryDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy intervalsFuzzy) => Set(intervalsFuzzy, "fuzzy"); - public IntervalsQueryDescriptor Fuzzy(Action> configure) => Set(configure, "fuzzy"); - public IntervalsQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch intervalsMatch) => Set(intervalsMatch, "match"); - public IntervalsQueryDescriptor Match(Action> configure) => Set(configure, "match"); - public IntervalsQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix intervalsPrefix) => Set(intervalsPrefix, "prefix"); - public IntervalsQueryDescriptor Prefix(Action> configure) => Set(configure, "prefix"); - public IntervalsQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard intervalsWildcard) => Set(intervalsWildcard, "wildcard"); - public IntervalsQueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsQueryDescriptor : SerializableDescriptor -{ - internal IntervalsQueryDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private IntervalsQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private IntervalsQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { 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 IntervalsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public IntervalsQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public IntervalsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public IntervalsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public IntervalsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public IntervalsQueryDescriptor AllOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAllOf intervalsAllOf) => Set(intervalsAllOf, "all_of"); - public IntervalsQueryDescriptor AllOf(Action configure) => Set(configure, "all_of"); - public IntervalsQueryDescriptor AnyOf(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsAnyOf intervalsAnyOf) => Set(intervalsAnyOf, "any_of"); - public IntervalsQueryDescriptor AnyOf(Action configure) => Set(configure, "any_of"); - public IntervalsQueryDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsFuzzy intervalsFuzzy) => Set(intervalsFuzzy, "fuzzy"); - public IntervalsQueryDescriptor Fuzzy(Action configure) => Set(configure, "fuzzy"); - public IntervalsQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsMatch intervalsMatch) => Set(intervalsMatch, "match"); - public IntervalsQueryDescriptor Match(Action configure) => Set(configure, "match"); - public IntervalsQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsPrefix intervalsPrefix) => Set(intervalsPrefix, "prefix"); - public IntervalsQueryDescriptor Prefix(Action configure) => Set(configure, "prefix"); - public IntervalsQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsWildcard intervalsWildcard) => Set(intervalsWildcard, "wildcard"); - public IntervalsQueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs deleted file mode 100644 index cc611d1b7e3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/IntervalsWildcard.g.cs +++ /dev/null @@ -1,244 +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.QueryDsl; - -public sealed partial class IntervalsWildcard -{ - /// - /// - /// Analyzer used to analyze the pattern. - /// Defaults to the top-level field's analyzer. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// Wildcard pattern used to find matching terms. - /// - /// - [JsonInclude, JsonPropertyName("pattern")] - public string Pattern { get; set; } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - [JsonInclude, JsonPropertyName("use_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? UseField { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals(IntervalsWildcard intervalsWildcard) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Intervals.Wildcard(intervalsWildcard); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery(IntervalsWildcard intervalsWildcard) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery.Wildcard(intervalsWildcard); -} - -public sealed partial class IntervalsWildcardDescriptor : SerializableDescriptor> -{ - internal IntervalsWildcardDescriptor(Action> configure) => configure.Invoke(this); - - public IntervalsWildcardDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private string PatternValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to analyze the pattern. - /// Defaults to the top-level field's analyzer. - /// - /// - public IntervalsWildcardDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Wildcard pattern used to find matching terms. - /// - /// - public IntervalsWildcardDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsWildcardDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsWildcardDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsWildcardDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IntervalsWildcardDescriptor : SerializableDescriptor -{ - internal IntervalsWildcardDescriptor(Action configure) => configure.Invoke(this); - - public IntervalsWildcardDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private string PatternValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? UseFieldValue { get; set; } - - /// - /// - /// Analyzer used to analyze the pattern. - /// Defaults to the top-level field's analyzer. - /// - /// - public IntervalsWildcardDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// Wildcard pattern used to find matching terms. - /// - /// - public IntervalsWildcardDescriptor Pattern(string pattern) - { - PatternValue = pattern; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsWildcardDescriptor UseField(Elastic.Clients.Elasticsearch.Serverless.Field? useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsWildcardDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - /// - /// - /// If specified, match intervals from this field rather than the top-level field. - /// The pattern is normalized using the search analyzer from this field, unless analyzer is specified separately. - /// - /// - public IntervalsWildcardDescriptor UseField(Expression> useField) - { - UseFieldValue = useField; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - writer.WritePropertyName("pattern"); - writer.WriteStringValue(PatternValue); - if (UseFieldValue is not null) - { - writer.WritePropertyName("use_field"); - JsonSerializer.Serialize(writer, UseFieldValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs deleted file mode 100644 index 589de265849..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Like.g.cs +++ /dev/null @@ -1,48 +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.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.QueryDsl; - -/// -/// -/// Text that we want similar documents for or a lookup to a document's field for the text. -/// -/// Learn more about this API in the Elasticsearch documentation. -/// -public sealed partial class Like : Union -{ - public Like(string Text) : base(Text) - { - } - - public Like(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.LikeDocument Document) : base(Document) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/LikeDocument.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/LikeDocument.g.cs deleted file mode 100644 index 366d3423770..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/LikeDocument.g.cs +++ /dev/null @@ -1,352 +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.QueryDsl; - -public sealed partial class LikeDocument -{ - /// - /// - /// A document not present in the index. - /// - /// - [JsonInclude, JsonPropertyName("doc")] - public object? Doc { get; set; } - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// ID of a document. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// Index of a document. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// Overrides the default analyzer. - /// - /// - [JsonInclude, JsonPropertyName("per_field_analyzer")] - public IDictionary? PerFieldAnalyzer { get; set; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } - [JsonInclude, JsonPropertyName("version_type")] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } -} - -public sealed partial class LikeDocumentDescriptor : SerializableDescriptor> -{ - internal LikeDocumentDescriptor(Action> configure) => configure.Invoke(this); - - public LikeDocumentDescriptor() : base() - { - } - - private object? DocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private IDictionary? PerFieldAnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// A document not present in the index. - /// - /// - public LikeDocumentDescriptor Doc(object? doc) - { - DocValue = doc; - return Self; - } - - public LikeDocumentDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// ID of a document. - /// - /// - public LikeDocumentDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Index of a document. - /// - /// - public LikeDocumentDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Overrides the default analyzer. - /// - /// - public LikeDocumentDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) - { - PerFieldAnalyzerValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public LikeDocumentDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - public LikeDocumentDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - public LikeDocumentDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocValue is not null) - { - writer.WritePropertyName("doc"); - JsonSerializer.Serialize(writer, DocValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IdValue is not null) - { - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (PerFieldAnalyzerValue is not null) - { - writer.WritePropertyName("per_field_analyzer"); - JsonSerializer.Serialize(writer, PerFieldAnalyzerValue, options); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class LikeDocumentDescriptor : SerializableDescriptor -{ - internal LikeDocumentDescriptor(Action configure) => configure.Invoke(this); - - public LikeDocumentDescriptor() : base() - { - } - - private object? DocValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private IDictionary? PerFieldAnalyzerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// A document not present in the index. - /// - /// - public LikeDocumentDescriptor Doc(object? doc) - { - DocValue = doc; - return Self; - } - - public LikeDocumentDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// ID of a document. - /// - /// - public LikeDocumentDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Index of a document. - /// - /// - public LikeDocumentDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// Overrides the default analyzer. - /// - /// - public LikeDocumentDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) - { - PerFieldAnalyzerValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public LikeDocumentDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - public LikeDocumentDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - public LikeDocumentDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocValue is not null) - { - writer.WritePropertyName("doc"); - JsonSerializer.Serialize(writer, DocValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IdValue is not null) - { - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (PerFieldAnalyzerValue is not null) - { - writer.WritePropertyName("per_field_analyzer"); - JsonSerializer.Serialize(writer, PerFieldAnalyzerValue, options); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchAllQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchAllQuery.g.cs deleted file mode 100644 index bf7576bc03e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchAllQuery.g.cs +++ /dev/null @@ -1,99 +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.QueryDsl; - -public sealed partial class MatchAllQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MatchAllQuery matchAllQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MatchAll(matchAllQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(MatchAllQuery matchAllQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.MatchAll(matchAllQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(MatchAllQuery matchAllQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.MatchAll(matchAllQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(MatchAllQuery matchAllQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.MatchAll(matchAllQuery); -} - -public sealed partial class MatchAllQueryDescriptor : SerializableDescriptor -{ - internal MatchAllQueryDescriptor(Action configure) => configure.Invoke(this); - - public MatchAllQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string? QueryNameValue { 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 MatchAllQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchAllQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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/MatchBoolPrefixQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs deleted file mode 100644 index d9abed4ea45..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs +++ /dev/null @@ -1,767 +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.QueryDsl; - -internal sealed partial class MatchBoolPrefixQueryConverter : JsonConverter -{ - public override MatchBoolPrefixQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new MatchBoolPrefixQuery(fieldName); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "analyzer") - { - variant.Analyzer = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "boost") - { - variant.Boost = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "fuzziness") - { - variant.Fuzziness = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "fuzzy_rewrite") - { - variant.FuzzyRewrite = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "fuzzy_transpositions") - { - variant.FuzzyTranspositions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_expansions") - { - variant.MaxExpansions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "minimum_should_match") - { - variant.MinimumShouldMatch = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "operator") - { - variant.Operator = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prefix_length") - { - variant.PrefixLength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, MatchBoolPrefixQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize MatchBoolPrefixQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Analyzer)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(value.Analyzer); - } - - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.Fuzziness is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, value.Fuzziness, options); - } - - if (!string.IsNullOrEmpty(value.FuzzyRewrite)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(value.FuzzyRewrite); - } - - if (value.FuzzyTranspositions.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(value.FuzzyTranspositions.Value); - } - - if (value.MaxExpansions.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(value.MaxExpansions.Value); - } - - if (value.MinimumShouldMatch is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, value.MinimumShouldMatch, options); - } - - if (value.Operator is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, value.Operator, options); - } - - if (value.PrefixLength.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(value.PrefixLength.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(value.Query); - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(MatchBoolPrefixQueryConverter))] -public sealed partial class MatchBoolPrefixQuery -{ - public MatchBoolPrefixQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public string? Analyzer { 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 float? Boost { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Maximum edit distance allowed for matching. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public string? FuzzyRewrite { get; set; } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public bool? FuzzyTranspositions { get; set; } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public int? MaxExpansions { get; set; } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// Applied to the constructed bool query. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// Applied to the constructed bool query. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? Operator { get; set; } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public int? PrefixLength { get; set; } - - /// - /// - /// Terms you wish to find in the provided field. - /// The last term is used in a prefix query. - /// - /// - public string Query { get; set; } - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MatchBoolPrefixQuery matchBoolPrefixQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MatchBoolPrefix(matchBoolPrefixQuery); -} - -public sealed partial class MatchBoolPrefixQueryDescriptor : SerializableDescriptor> -{ - internal MatchBoolPrefixQueryDescriptor(Action> configure) => configure.Invoke(this); - - public MatchBoolPrefixQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? OperatorValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MatchBoolPrefixQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MatchBoolPrefixQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchBoolPrefixQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchBoolPrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchBoolPrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// Applied to the constructed bool query. - /// - /// - public MatchBoolPrefixQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// Applied to the constructed bool query. - /// - /// - public MatchBoolPrefixQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Terms you wish to find in the provided field. - /// The last term is used in a prefix query. - /// - /// - public MatchBoolPrefixQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MatchBoolPrefixQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class MatchBoolPrefixQueryDescriptor : SerializableDescriptor -{ - internal MatchBoolPrefixQueryDescriptor(Action configure) => configure.Invoke(this); - - public MatchBoolPrefixQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? OperatorValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MatchBoolPrefixQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MatchBoolPrefixQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchBoolPrefixQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchBoolPrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchBoolPrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// Applied to the constructed bool query. - /// - /// - public MatchBoolPrefixQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// Applied to the constructed bool query. - /// - /// - public MatchBoolPrefixQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MatchBoolPrefixQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Terms you wish to find in the provided field. - /// The last term is used in a prefix query. - /// - /// - public MatchBoolPrefixQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MatchBoolPrefixQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs deleted file mode 100644 index 0d58a802da4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchNoneQuery.g.cs +++ /dev/null @@ -1,96 +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.QueryDsl; - -public sealed partial class MatchNoneQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MatchNoneQuery matchNoneQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MatchNone(matchNoneQuery); -} - -public sealed partial class MatchNoneQueryDescriptor : SerializableDescriptor -{ - internal MatchNoneQueryDescriptor(Action configure) => configure.Invoke(this); - - public MatchNoneQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string? QueryNameValue { 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 MatchNoneQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchNoneQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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/MatchPhrasePrefixQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs deleted file mode 100644 index 037b01ac21b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhrasePrefixQuery.g.cs +++ /dev/null @@ -1,523 +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.QueryDsl; - -internal sealed partial class MatchPhrasePrefixQueryConverter : JsonConverter -{ - public override MatchPhrasePrefixQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new MatchPhrasePrefixQuery(fieldName); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "analyzer") - { - variant.Analyzer = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "boost") - { - variant.Boost = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_expansions") - { - variant.MaxExpansions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "slop") - { - variant.Slop = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "zero_terms_query") - { - variant.ZeroTermsQuery = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, MatchPhrasePrefixQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize MatchPhrasePrefixQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Analyzer)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(value.Analyzer); - } - - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.MaxExpansions.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(value.MaxExpansions.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(value.Query); - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.Slop.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(value.Slop.Value); - } - - if (value.ZeroTermsQuery is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, value.ZeroTermsQuery, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(MatchPhrasePrefixQueryConverter))] -public sealed partial class MatchPhrasePrefixQuery -{ - public MatchPhrasePrefixQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// Analyzer used to convert text in the query value into tokens. - /// - /// - public string? Analyzer { 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 float? Boost { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Maximum number of terms to which the last provided term of the query value will expand. - /// - /// - public int? MaxExpansions { get; set; } - - /// - /// - /// Text you wish to find in the provided field. - /// - /// - public string Query { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public int? Slop { get; set; } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQuery { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MatchPhrasePrefixQuery matchPhrasePrefixQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MatchPhrasePrefix(matchPhrasePrefixQuery); -} - -public sealed partial class MatchPhrasePrefixQueryDescriptor : SerializableDescriptor> -{ - internal MatchPhrasePrefixQueryDescriptor(Action> configure) => configure.Invoke(this); - - public MatchPhrasePrefixQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert text in the query value into tokens. - /// - /// - public MatchPhrasePrefixQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MatchPhrasePrefixQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum number of terms to which the last provided term of the query value will expand. - /// - /// - public MatchPhrasePrefixQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Text you wish to find in the provided field. - /// - /// - public MatchPhrasePrefixQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public MatchPhrasePrefixQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MatchPhrasePrefixQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class MatchPhrasePrefixQueryDescriptor : SerializableDescriptor -{ - internal MatchPhrasePrefixQueryDescriptor(Action configure) => configure.Invoke(this); - - public MatchPhrasePrefixQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert text in the query value into tokens. - /// - /// - public MatchPhrasePrefixQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MatchPhrasePrefixQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum number of terms to which the last provided term of the query value will expand. - /// - /// - public MatchPhrasePrefixQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Text you wish to find in the provided field. - /// - /// - public MatchPhrasePrefixQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MatchPhrasePrefixQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public MatchPhrasePrefixQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MatchPhrasePrefixQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs deleted file mode 100644 index e19091ee3da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchPhraseQuery.g.cs +++ /dev/null @@ -1,468 +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.QueryDsl; - -internal sealed partial class MatchPhraseQueryConverter : JsonConverter -{ - public override MatchPhraseQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new MatchPhraseQuery(fieldName); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "analyzer") - { - variant.Analyzer = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "boost") - { - variant.Boost = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "slop") - { - variant.Slop = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "zero_terms_query") - { - variant.ZeroTermsQuery = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, MatchPhraseQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize MatchPhraseQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Analyzer)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(value.Analyzer); - } - - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(value.Query); - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.Slop.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(value.Slop.Value); - } - - if (value.ZeroTermsQuery is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, value.ZeroTermsQuery, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(MatchPhraseQueryConverter))] -public sealed partial class MatchPhraseQuery -{ - public MatchPhraseQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public string? Analyzer { 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 float? Boost { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Query terms that are analyzed and turned into a phrase query. - /// - /// - public string Query { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public int? Slop { get; set; } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQuery { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MatchPhraseQuery matchPhraseQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MatchPhrase(matchPhraseQuery); -} - -public sealed partial class MatchPhraseQueryDescriptor : SerializableDescriptor> -{ - internal MatchPhraseQueryDescriptor(Action> configure) => configure.Invoke(this); - - public MatchPhraseQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MatchPhraseQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MatchPhraseQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchPhraseQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchPhraseQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchPhraseQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Query terms that are analyzed and turned into a phrase query. - /// - /// - public MatchPhraseQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MatchPhraseQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public MatchPhraseQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MatchPhraseQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class MatchPhraseQueryDescriptor : SerializableDescriptor -{ - internal MatchPhraseQueryDescriptor(Action configure) => configure.Invoke(this); - - public MatchPhraseQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MatchPhraseQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MatchPhraseQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchPhraseQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchPhraseQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchPhraseQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Query terms that are analyzed and turned into a phrase query. - /// - /// - public MatchPhraseQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MatchPhraseQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public MatchPhraseQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MatchPhraseQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchQuery.g.cs deleted file mode 100644 index 5907d2f7093..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MatchQuery.g.cs +++ /dev/null @@ -1,911 +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.QueryDsl; - -internal sealed partial class MatchQueryConverter : JsonConverter -{ - public override MatchQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new MatchQuery(fieldName); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "analyzer") - { - variant.Analyzer = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "auto_generate_synonyms_phrase_query") - { - variant.AutoGenerateSynonymsPhraseQuery = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "boost") - { - variant.Boost = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "fuzziness") - { - variant.Fuzziness = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "fuzzy_rewrite") - { - variant.FuzzyRewrite = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "fuzzy_transpositions") - { - variant.FuzzyTranspositions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lenient") - { - variant.Lenient = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_expansions") - { - variant.MaxExpansions = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "minimum_should_match") - { - variant.MinimumShouldMatch = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "operator") - { - variant.Operator = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "prefix_length") - { - variant.PrefixLength = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "query") - { - variant.Query = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "zero_terms_query") - { - variant.ZeroTermsQuery = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, MatchQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize MatchQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(value.Analyzer)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(value.Analyzer); - } - - if (value.AutoGenerateSynonymsPhraseQuery.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(value.AutoGenerateSynonymsPhraseQuery.Value); - } - - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.Fuzziness is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, value.Fuzziness, options); - } - - if (!string.IsNullOrEmpty(value.FuzzyRewrite)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(value.FuzzyRewrite); - } - - if (value.FuzzyTranspositions.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(value.FuzzyTranspositions.Value); - } - - if (value.Lenient.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(value.Lenient.Value); - } - - if (value.MaxExpansions.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(value.MaxExpansions.Value); - } - - if (value.MinimumShouldMatch is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, value.MinimumShouldMatch, options); - } - - if (value.Operator is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, value.Operator, options); - } - - if (value.PrefixLength.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(value.PrefixLength.Value); - } - - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, value.Query, options); - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.ZeroTermsQuery is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, value.ZeroTermsQuery, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(MatchQueryConverter))] -public sealed partial class MatchQuery -{ - public MatchQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public string? Analyzer { get; set; } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public bool? AutoGenerateSynonymsPhraseQuery { 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 float? Boost { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public string? FuzzyRewrite { get; set; } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public bool? FuzzyTranspositions { get; set; } - - /// - /// - /// If true, format-based errors, such as providing a text query value for a numeric field, are ignored. - /// - /// - public bool? Lenient { get; set; } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// - /// - public int? MaxExpansions { get; set; } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? Operator { get; set; } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public int? PrefixLength { get; set; } - - /// - /// - /// Text, number, boolean value or date you wish to find in the provided field. - /// - /// - public object Query { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQuery { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MatchQuery matchQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Match(matchQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(MatchQuery matchQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Match(matchQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(MatchQuery matchQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Match(matchQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(MatchQuery matchQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Match(matchQuery); -} - -public sealed partial class MatchQueryDescriptor : SerializableDescriptor> -{ - internal MatchQueryDescriptor(Action> configure) => configure.Invoke(this); - - public MatchQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? OperatorValue { get; set; } - private int? PrefixLengthValue { get; set; } - private object QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MatchQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public MatchQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 MatchQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public MatchQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public MatchQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public MatchQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text query value for a numeric field, are ignored. - /// - /// - public MatchQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// - /// - public MatchQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public MatchQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public MatchQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public MatchQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Text, number, boolean value or date you wish to find in the provided field. - /// - /// - public MatchQueryDescriptor Query(object query) - { - QueryValue = query; - return Self; - } - - public MatchQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MatchQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class MatchQueryDescriptor : SerializableDescriptor -{ - internal MatchQueryDescriptor(Action configure) => configure.Invoke(this); - - public MatchQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? OperatorValue { get; set; } - private int? PrefixLengthValue { get; set; } - private object QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MatchQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public MatchQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 MatchQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public MatchQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public MatchQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public MatchQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public MatchQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public MatchQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public MatchQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text query value for a numeric field, are ignored. - /// - /// - public MatchQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// - /// - public MatchQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public MatchQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public MatchQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public MatchQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Text, number, boolean value or date you wish to find in the provided field. - /// - /// - public MatchQueryDescriptor Query(object query) - { - QueryValue = query; - return Self; - } - - public MatchQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MatchQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs deleted file mode 100644 index 96910cced47..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs +++ /dev/null @@ -1,904 +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.QueryDsl; - -public sealed partial class MoreLikeThisQuery -{ - /// - /// - /// The analyzer that is used to analyze the free form text. - /// Defaults to the analyzer associated with the first field in fields. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Each term in the formed query could be further boosted by their tf-idf score. - /// This sets the boost factor to use when using this feature. - /// Defaults to deactivated (0). - /// - /// - [JsonInclude, JsonPropertyName("boost_terms")] - public double? BoostTerms { get; set; } - - /// - /// - /// Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (text or keyword). - /// - /// - [JsonInclude, JsonPropertyName("fail_on_unsupported_field")] - public bool? FailOnUnsupportedField { get; set; } - - /// - /// - /// A list of fields to fetch and analyze the text from. - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// Specifies whether the input documents should also be included in the search results returned. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public bool? Include { get; set; } - - /// - /// - /// Specifies free form text and/or a single or multiple documents for which you want to find similar documents. - /// - /// - [JsonInclude, JsonPropertyName("like")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Like))] - public ICollection Like { get; set; } - - /// - /// - /// The maximum document frequency above which the terms are ignored from the input document. - /// - /// - [JsonInclude, JsonPropertyName("max_doc_freq")] - public int? MaxDocFreq { get; set; } - - /// - /// - /// The maximum number of query terms that can be selected. - /// - /// - [JsonInclude, JsonPropertyName("max_query_terms")] - public int? MaxQueryTerms { get; set; } - - /// - /// - /// The maximum word length above which the terms are ignored. - /// Defaults to unbounded (0). - /// - /// - [JsonInclude, JsonPropertyName("max_word_length")] - public int? MaxWordLength { get; set; } - - /// - /// - /// The minimum document frequency below which the terms are ignored from the input document. - /// - /// - [JsonInclude, JsonPropertyName("min_doc_freq")] - public int? MinDocFreq { get; set; } - - /// - /// - /// After the disjunctive query has been formed, this parameter controls the number of terms that must match. - /// - /// - [JsonInclude, JsonPropertyName("minimum_should_match")] - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// The minimum term frequency below which the terms are ignored from the input document. - /// - /// - [JsonInclude, JsonPropertyName("min_term_freq")] - public int? MinTermFreq { get; set; } - - /// - /// - /// The minimum word length below which the terms are ignored. - /// - /// - [JsonInclude, JsonPropertyName("min_word_length")] - public int? MinWordLength { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// An array of stop words. - /// Any word in this set is ignored. - /// - /// - [JsonInclude, JsonPropertyName("stop_words")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? StopWords { get; set; } - - /// - /// - /// Used in combination with like to exclude documents that match a set of terms. - /// - /// - [JsonInclude, JsonPropertyName("unlike")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Like))] - public ICollection? Unlike { get; set; } - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } - [JsonInclude, JsonPropertyName("version_type")] - public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MoreLikeThisQuery moreLikeThisQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MoreLikeThis(moreLikeThisQuery); -} - -public sealed partial class MoreLikeThisQueryDescriptor : SerializableDescriptor> -{ - internal MoreLikeThisQueryDescriptor(Action> configure) => configure.Invoke(this); - - public MoreLikeThisQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private double? BoostTermsValue { get; set; } - private bool? FailOnUnsupportedFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private bool? IncludeValue { get; set; } - private ICollection LikeValue { get; set; } - private int? MaxDocFreqValue { get; set; } - private int? MaxQueryTermsValue { get; set; } - private int? MaxWordLengthValue { get; set; } - private int? MinDocFreqValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private int? MinTermFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private ICollection? StopWordsValue { get; set; } - private ICollection? UnlikeValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// The analyzer that is used to analyze the free form text. - /// Defaults to the analyzer associated with the first field in fields. - /// - /// - public MoreLikeThisQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MoreLikeThisQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Each term in the formed query could be further boosted by their tf-idf score. - /// This sets the boost factor to use when using this feature. - /// Defaults to deactivated (0). - /// - /// - public MoreLikeThisQueryDescriptor BoostTerms(double? boostTerms) - { - BoostTermsValue = boostTerms; - return Self; - } - - /// - /// - /// Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (text or keyword). - /// - /// - public MoreLikeThisQueryDescriptor FailOnUnsupportedField(bool? failOnUnsupportedField = true) - { - FailOnUnsupportedFieldValue = failOnUnsupportedField; - return Self; - } - - /// - /// - /// A list of fields to fetch and analyze the text from. - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public MoreLikeThisQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Specifies whether the input documents should also be included in the search results returned. - /// - /// - public MoreLikeThisQueryDescriptor Include(bool? include = true) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Specifies free form text and/or a single or multiple documents for which you want to find similar documents. - /// - /// - public MoreLikeThisQueryDescriptor Like(ICollection like) - { - LikeValue = like; - return Self; - } - - /// - /// - /// The maximum document frequency above which the terms are ignored from the input document. - /// - /// - public MoreLikeThisQueryDescriptor MaxDocFreq(int? maxDocFreq) - { - MaxDocFreqValue = maxDocFreq; - return Self; - } - - /// - /// - /// The maximum number of query terms that can be selected. - /// - /// - public MoreLikeThisQueryDescriptor MaxQueryTerms(int? maxQueryTerms) - { - MaxQueryTermsValue = maxQueryTerms; - return Self; - } - - /// - /// - /// The maximum word length above which the terms are ignored. - /// Defaults to unbounded (0). - /// - /// - public MoreLikeThisQueryDescriptor MaxWordLength(int? maxWordLength) - { - MaxWordLengthValue = maxWordLength; - return Self; - } - - /// - /// - /// The minimum document frequency below which the terms are ignored from the input document. - /// - /// - public MoreLikeThisQueryDescriptor MinDocFreq(int? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// After the disjunctive query has been formed, this parameter controls the number of terms that must match. - /// - /// - public MoreLikeThisQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// The minimum term frequency below which the terms are ignored from the input document. - /// - /// - public MoreLikeThisQueryDescriptor MinTermFreq(int? minTermFreq) - { - MinTermFreqValue = minTermFreq; - return Self; - } - - /// - /// - /// The minimum word length below which the terms are ignored. - /// - /// - public MoreLikeThisQueryDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - public MoreLikeThisQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// An array of stop words. - /// Any word in this set is ignored. - /// - /// - public MoreLikeThisQueryDescriptor StopWords(ICollection? stopWords) - { - StopWordsValue = stopWords; - return Self; - } - - /// - /// - /// Used in combination with like to exclude documents that match a set of terms. - /// - /// - public MoreLikeThisQueryDescriptor Unlike(ICollection? unlike) - { - UnlikeValue = unlike; - return Self; - } - - public MoreLikeThisQueryDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - public MoreLikeThisQueryDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (BoostTermsValue.HasValue) - { - writer.WritePropertyName("boost_terms"); - writer.WriteNumberValue(BoostTermsValue.Value); - } - - if (FailOnUnsupportedFieldValue.HasValue) - { - writer.WritePropertyName("fail_on_unsupported_field"); - writer.WriteBooleanValue(FailOnUnsupportedFieldValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IncludeValue.HasValue) - { - writer.WritePropertyName("include"); - writer.WriteBooleanValue(IncludeValue.Value); - } - - writer.WritePropertyName("like"); - SingleOrManySerializationHelper.Serialize(LikeValue, writer, options); - if (MaxDocFreqValue.HasValue) - { - writer.WritePropertyName("max_doc_freq"); - writer.WriteNumberValue(MaxDocFreqValue.Value); - } - - if (MaxQueryTermsValue.HasValue) - { - writer.WritePropertyName("max_query_terms"); - writer.WriteNumberValue(MaxQueryTermsValue.Value); - } - - if (MaxWordLengthValue.HasValue) - { - writer.WritePropertyName("max_word_length"); - writer.WriteNumberValue(MaxWordLengthValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (MinTermFreqValue.HasValue) - { - writer.WritePropertyName("min_term_freq"); - writer.WriteNumberValue(MinTermFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (StopWordsValue is not null) - { - writer.WritePropertyName("stop_words"); - SingleOrManySerializationHelper.Serialize(StopWordsValue, writer, options); - } - - if (UnlikeValue is not null) - { - writer.WritePropertyName("unlike"); - SingleOrManySerializationHelper.Serialize(UnlikeValue, writer, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MoreLikeThisQueryDescriptor : SerializableDescriptor -{ - internal MoreLikeThisQueryDescriptor(Action configure) => configure.Invoke(this); - - public MoreLikeThisQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private float? BoostValue { get; set; } - private double? BoostTermsValue { get; set; } - private bool? FailOnUnsupportedFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private bool? IncludeValue { get; set; } - private ICollection LikeValue { get; set; } - private int? MaxDocFreqValue { get; set; } - private int? MaxQueryTermsValue { get; set; } - private int? MaxWordLengthValue { get; set; } - private int? MinDocFreqValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private int? MinTermFreqValue { get; set; } - private int? MinWordLengthValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private ICollection? StopWordsValue { get; set; } - private ICollection? UnlikeValue { get; set; } - private long? VersionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } - - /// - /// - /// The analyzer that is used to analyze the free form text. - /// Defaults to the analyzer associated with the first field in fields. - /// - /// - public MoreLikeThisQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// 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 MoreLikeThisQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Each term in the formed query could be further boosted by their tf-idf score. - /// This sets the boost factor to use when using this feature. - /// Defaults to deactivated (0). - /// - /// - public MoreLikeThisQueryDescriptor BoostTerms(double? boostTerms) - { - BoostTermsValue = boostTerms; - return Self; - } - - /// - /// - /// Controls whether the query should fail (throw an exception) if any of the specified fields are not of the supported types (text or keyword). - /// - /// - public MoreLikeThisQueryDescriptor FailOnUnsupportedField(bool? failOnUnsupportedField = true) - { - FailOnUnsupportedFieldValue = failOnUnsupportedField; - return Self; - } - - /// - /// - /// A list of fields to fetch and analyze the text from. - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public MoreLikeThisQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Specifies whether the input documents should also be included in the search results returned. - /// - /// - public MoreLikeThisQueryDescriptor Include(bool? include = true) - { - IncludeValue = include; - return Self; - } - - /// - /// - /// Specifies free form text and/or a single or multiple documents for which you want to find similar documents. - /// - /// - public MoreLikeThisQueryDescriptor Like(ICollection like) - { - LikeValue = like; - return Self; - } - - /// - /// - /// The maximum document frequency above which the terms are ignored from the input document. - /// - /// - public MoreLikeThisQueryDescriptor MaxDocFreq(int? maxDocFreq) - { - MaxDocFreqValue = maxDocFreq; - return Self; - } - - /// - /// - /// The maximum number of query terms that can be selected. - /// - /// - public MoreLikeThisQueryDescriptor MaxQueryTerms(int? maxQueryTerms) - { - MaxQueryTermsValue = maxQueryTerms; - return Self; - } - - /// - /// - /// The maximum word length above which the terms are ignored. - /// Defaults to unbounded (0). - /// - /// - public MoreLikeThisQueryDescriptor MaxWordLength(int? maxWordLength) - { - MaxWordLengthValue = maxWordLength; - return Self; - } - - /// - /// - /// The minimum document frequency below which the terms are ignored from the input document. - /// - /// - public MoreLikeThisQueryDescriptor MinDocFreq(int? minDocFreq) - { - MinDocFreqValue = minDocFreq; - return Self; - } - - /// - /// - /// After the disjunctive query has been formed, this parameter controls the number of terms that must match. - /// - /// - public MoreLikeThisQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// The minimum term frequency below which the terms are ignored from the input document. - /// - /// - public MoreLikeThisQueryDescriptor MinTermFreq(int? minTermFreq) - { - MinTermFreqValue = minTermFreq; - return Self; - } - - /// - /// - /// The minimum word length below which the terms are ignored. - /// - /// - public MoreLikeThisQueryDescriptor MinWordLength(int? minWordLength) - { - MinWordLengthValue = minWordLength; - return Self; - } - - public MoreLikeThisQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// An array of stop words. - /// Any word in this set is ignored. - /// - /// - public MoreLikeThisQueryDescriptor StopWords(ICollection? stopWords) - { - StopWordsValue = stopWords; - return Self; - } - - /// - /// - /// Used in combination with like to exclude documents that match a set of terms. - /// - /// - public MoreLikeThisQueryDescriptor Unlike(ICollection? unlike) - { - UnlikeValue = unlike; - return Self; - } - - public MoreLikeThisQueryDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - public MoreLikeThisQueryDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) - { - VersionTypeValue = versionType; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (BoostTermsValue.HasValue) - { - writer.WritePropertyName("boost_terms"); - writer.WriteNumberValue(BoostTermsValue.Value); - } - - if (FailOnUnsupportedFieldValue.HasValue) - { - writer.WritePropertyName("fail_on_unsupported_field"); - writer.WriteBooleanValue(FailOnUnsupportedFieldValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IncludeValue.HasValue) - { - writer.WritePropertyName("include"); - writer.WriteBooleanValue(IncludeValue.Value); - } - - writer.WritePropertyName("like"); - SingleOrManySerializationHelper.Serialize(LikeValue, writer, options); - if (MaxDocFreqValue.HasValue) - { - writer.WritePropertyName("max_doc_freq"); - writer.WriteNumberValue(MaxDocFreqValue.Value); - } - - if (MaxQueryTermsValue.HasValue) - { - writer.WritePropertyName("max_query_terms"); - writer.WriteNumberValue(MaxQueryTermsValue.Value); - } - - if (MaxWordLengthValue.HasValue) - { - writer.WritePropertyName("max_word_length"); - writer.WriteNumberValue(MaxWordLengthValue.Value); - } - - if (MinDocFreqValue.HasValue) - { - writer.WritePropertyName("min_doc_freq"); - writer.WriteNumberValue(MinDocFreqValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (MinTermFreqValue.HasValue) - { - writer.WritePropertyName("min_term_freq"); - writer.WriteNumberValue(MinTermFreqValue.Value); - } - - if (MinWordLengthValue.HasValue) - { - writer.WritePropertyName("min_word_length"); - writer.WriteNumberValue(MinWordLengthValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (StopWordsValue is not null) - { - writer.WritePropertyName("stop_words"); - SingleOrManySerializationHelper.Serialize(StopWordsValue, writer, options); - } - - if (UnlikeValue is not null) - { - writer.WritePropertyName("unlike"); - SingleOrManySerializationHelper.Serialize(UnlikeValue, writer, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - if (VersionTypeValue is not null) - { - writer.WritePropertyName("version_type"); - JsonSerializer.Serialize(writer, VersionTypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs deleted file mode 100644 index 46c3e3aab35..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/MultiMatchQuery.g.cs +++ /dev/null @@ -1,849 +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.QueryDsl; - -public sealed partial class MultiMatchQuery -{ - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - [JsonInclude, JsonPropertyName("auto_generate_synonyms_phrase_query")] - public bool? AutoGenerateSynonymsPhraseQuery { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The fields to be queried. - /// Defaults to the index.query.default_field index settings, which in turn defaults to *. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzziness")] - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_rewrite")] - public string? FuzzyRewrite { get; set; } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_transpositions")] - public bool? FuzzyTranspositions { get; set; } - - /// - /// - /// If true, format-based errors, such as providing a text query value for a numeric field, are ignored. - /// - /// - [JsonInclude, JsonPropertyName("lenient")] - public bool? Lenient { get; set; } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// - /// - [JsonInclude, JsonPropertyName("max_expansions")] - public int? MaxExpansions { get; set; } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - [JsonInclude, JsonPropertyName("minimum_should_match")] - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - [JsonInclude, JsonPropertyName("operator")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? Operator { get; set; } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - [JsonInclude, JsonPropertyName("prefix_length")] - public int? PrefixLength { get; set; } - - /// - /// - /// Text, number, boolean value or date you wish to find in the provided field. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - [JsonInclude, JsonPropertyName("slop")] - public int? Slop { get; set; } - - /// - /// - /// Determines how scores for each per-term blended query and scores across groups are combined. - /// - /// - [JsonInclude, JsonPropertyName("tie_breaker")] - public double? TieBreaker { get; set; } - - /// - /// - /// How the multi_match query is executed internally. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? Type { get; set; } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - [JsonInclude, JsonPropertyName("zero_terms_query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQuery { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(MultiMatchQuery multiMatchQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.MultiMatch(multiMatchQuery); -} - -public sealed partial class MultiMatchQueryDescriptor : SerializableDescriptor> -{ - internal MultiMatchQueryDescriptor(Action> configure) => configure.Invoke(this); - - public MultiMatchQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? OperatorValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { get; set; } - private double? TieBreakerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? TypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MultiMatchQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public MultiMatchQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 MultiMatchQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The fields to be queried. - /// Defaults to the index.query.default_field index settings, which in turn defaults to *. - /// - /// - public MultiMatchQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public MultiMatchQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public MultiMatchQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MultiMatchQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text query value for a numeric field, are ignored. - /// - /// - public MultiMatchQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// - /// - public MultiMatchQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public MultiMatchQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public MultiMatchQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public MultiMatchQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Text, number, boolean value or date you wish to find in the provided field. - /// - /// - public MultiMatchQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MultiMatchQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public MultiMatchQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - /// - /// - /// Determines how scores for each per-term blended query and scores across groups are combined. - /// - /// - public MultiMatchQueryDescriptor TieBreaker(double? tieBreaker) - { - TieBreakerValue = tieBreaker; - return Self; - } - - /// - /// - /// How the multi_match query is executed internally. - /// - /// - public MultiMatchQueryDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? type) - { - TypeValue = type; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MultiMatchQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - if (TieBreakerValue.HasValue) - { - writer.WritePropertyName("tie_breaker"); - writer.WriteNumberValue(TieBreakerValue.Value); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class MultiMatchQueryDescriptor : SerializableDescriptor -{ - internal MultiMatchQueryDescriptor(Action configure) => configure.Invoke(this); - - public MultiMatchQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private int? MaxExpansionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? OperatorValue { get; set; } - private int? PrefixLengthValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { get; set; } - private double? TieBreakerValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? TypeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? ZeroTermsQueryValue { get; set; } - - /// - /// - /// Analyzer used to convert the text in the query value into tokens. - /// - /// - public MultiMatchQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public MultiMatchQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 MultiMatchQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The fields to be queried. - /// Defaults to the index.query.default_field index settings, which in turn defaults to *. - /// - /// - public MultiMatchQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for matching. - /// - /// - public MultiMatchQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public MultiMatchQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// Can be applied to the term subqueries constructed for all terms but the final term. - /// - /// - public MultiMatchQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text query value for a numeric field, are ignored. - /// - /// - public MultiMatchQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query will expand. - /// - /// - public MultiMatchQueryDescriptor MaxExpansions(int? maxExpansions) - { - MaxExpansionsValue = maxExpansions; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public MultiMatchQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Boolean logic used to interpret text in the query value. - /// - /// - public MultiMatchQueryDescriptor Operator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? value) - { - OperatorValue = value; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public MultiMatchQueryDescriptor PrefixLength(int? prefixLength) - { - PrefixLengthValue = prefixLength; - return Self; - } - - /// - /// - /// Text, number, boolean value or date you wish to find in the provided field. - /// - /// - public MultiMatchQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public MultiMatchQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens. - /// - /// - public MultiMatchQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - /// - /// - /// Determines how scores for each per-term blended query and scores across groups are combined. - /// - /// - public MultiMatchQueryDescriptor TieBreaker(double? tieBreaker) - { - TieBreakerValue = tieBreaker; - return Self; - } - - /// - /// - /// How the multi_match query is executed internally. - /// - /// - public MultiMatchQueryDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? type) - { - TypeValue = type; - return Self; - } - - /// - /// - /// Indicates whether no documents are returned if the analyzer removes all tokens, such as when using a stop filter. - /// - /// - public MultiMatchQueryDescriptor ZeroTermsQuery(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ZeroTermsQuery? zeroTermsQuery) - { - ZeroTermsQueryValue = zeroTermsQuery; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MaxExpansionsValue.HasValue) - { - writer.WritePropertyName("max_expansions"); - writer.WriteNumberValue(MaxExpansionsValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (OperatorValue is not null) - { - writer.WritePropertyName("operator"); - JsonSerializer.Serialize(writer, OperatorValue, options); - } - - if (PrefixLengthValue.HasValue) - { - writer.WritePropertyName("prefix_length"); - writer.WriteNumberValue(PrefixLengthValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - if (TieBreakerValue.HasValue) - { - writer.WritePropertyName("tie_breaker"); - writer.WriteNumberValue(TieBreakerValue.Value); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - if (ZeroTermsQueryValue is not null) - { - writer.WritePropertyName("zero_terms_query"); - JsonSerializer.Serialize(writer, ZeroTermsQueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NestedQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NestedQuery.g.cs deleted file mode 100644 index 48e9726c723..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NestedQuery.g.cs +++ /dev/null @@ -1,522 +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.QueryDsl; - -public sealed partial class NestedQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Indicates whether to ignore an unmapped path and not return any documents instead of an error. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unmapped")] - public bool? IgnoreUnmapped { get; set; } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - [JsonInclude, JsonPropertyName("inner_hits")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHits { get; set; } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field Path { get; set; } - - /// - /// - /// Query you wish to run on nested objects in the path. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// How scores for matching child objects affect the root parent document’s relevance score. - /// - /// - [JsonInclude, JsonPropertyName("score_mode")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? ScoreMode { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(NestedQuery nestedQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Nested(nestedQuery); -} - -public sealed partial class NestedQueryDescriptor : SerializableDescriptor> -{ - internal NestedQueryDescriptor(Action> configure) => configure.Invoke(this); - - public NestedQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action> InnerHitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field PathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? ScoreModeValue { 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 NestedQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped path and not return any documents instead of an error. - /// - /// - public NestedQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public NestedQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public NestedQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public NestedQueryDescriptor InnerHits(Action> configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - public NestedQueryDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - public NestedQueryDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - public NestedQueryDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Query you wish to run on nested objects in the path. - /// - /// - public NestedQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public NestedQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public NestedQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public NestedQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// How scores for matching child objects affect the root parent document’s relevance score. - /// - /// - public NestedQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class NestedQueryDescriptor : SerializableDescriptor -{ - internal NestedQueryDescriptor(Action configure) => configure.Invoke(this); - - public NestedQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? InnerHitsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor InnerHitsDescriptor { get; set; } - private Action InnerHitsDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field PathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? ScoreModeValue { 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 NestedQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped path and not return any documents instead of an error. - /// - /// - public NestedQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - /// - /// - /// If defined, each search hit will contain inner hits. - /// - /// - public NestedQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHits? innerHits) - { - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = null; - InnerHitsValue = innerHits; - return Self; - } - - public NestedQueryDescriptor InnerHits(Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor descriptor) - { - InnerHitsValue = null; - InnerHitsDescriptorAction = null; - InnerHitsDescriptor = descriptor; - return Self; - } - - public NestedQueryDescriptor InnerHits(Action configure) - { - InnerHitsValue = null; - InnerHitsDescriptor = null; - InnerHitsDescriptorAction = configure; - return Self; - } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - public NestedQueryDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - public NestedQueryDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Path to the nested object you wish to search. - /// - /// - public NestedQueryDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - /// - /// - /// Query you wish to run on nested objects in the path. - /// - /// - public NestedQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public NestedQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public NestedQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public NestedQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// How scores for matching child objects affect the root parent document’s relevance score. - /// - /// - public NestedQueryDescriptor ScoreMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ChildScoreMode? scoreMode) - { - ScoreModeValue = scoreMode; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (InnerHitsDescriptor is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsDescriptor, options); - } - else if (InnerHitsDescriptorAction is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.InnerHitsDescriptor(InnerHitsDescriptorAction), options); - } - else if (InnerHitsValue is not null) - { - writer.WritePropertyName("inner_hits"); - JsonSerializer.Serialize(writer, InnerHitsValue, options); - } - - writer.WritePropertyName("path"); - JsonSerializer.Serialize(writer, PathValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (ScoreModeValue is not null) - { - writer.WritePropertyName("score_mode"); - JsonSerializer.Serialize(writer, ScoreModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs deleted file mode 100644 index 66640e3d2f5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumberRangeQuery.g.cs +++ /dev/null @@ -1,533 +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.QueryDsl; - -internal sealed partial class NumberRangeQueryConverter : JsonConverter -{ - public override NumberRangeQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new NumberRangeQuery(fieldName); - 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 == "gt") - { - variant.Gt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gte") - { - variant.Gte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lt") - { - variant.Lt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lte") - { - variant.Lte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "relation") - { - variant.Relation = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, NumberRangeQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize NumberRangeQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.Gt.HasValue) - { - writer.WritePropertyName("gt"); - writer.WriteNumberValue(value.Gt.Value); - } - - if (value.Gte.HasValue) - { - writer.WritePropertyName("gte"); - writer.WriteNumberValue(value.Gte.Value); - } - - if (value.Lt.HasValue) - { - writer.WritePropertyName("lt"); - writer.WriteNumberValue(value.Lt.Value); - } - - if (value.Lte.HasValue) - { - writer.WritePropertyName("lte"); - writer.WriteNumberValue(value.Lte.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.Relation is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, value.Relation, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(NumberRangeQueryConverter))] -public sealed partial class NumberRangeQuery -{ - public NumberRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Greater than. - /// - /// - public double? Gt { get; set; } - - /// - /// - /// Greater than or equal to. - /// - /// - public double? Gte { get; set; } - - /// - /// - /// Less than. - /// - /// - public double? Lt { get; set; } - - /// - /// - /// Less than or equal to. - /// - /// - public double? Lte { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? Relation { get; set; } -} - -public sealed partial class NumberRangeQueryDescriptor : SerializableDescriptor> -{ - internal NumberRangeQueryDescriptor(Action> configure) => configure.Invoke(this); - - public NumberRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private double? GtValue { get; set; } - private double? GteValue { get; set; } - private double? LtValue { get; set; } - private double? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { 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 NumberRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public NumberRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public NumberRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public NumberRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public NumberRangeQueryDescriptor Gt(double? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public NumberRangeQueryDescriptor Gte(double? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public NumberRangeQueryDescriptor Lt(double? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public NumberRangeQueryDescriptor Lte(double? lte) - { - LteValue = lte; - return Self; - } - - public NumberRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public NumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (GtValue.HasValue) - { - writer.WritePropertyName("gt"); - writer.WriteNumberValue(GtValue.Value); - } - - if (GteValue.HasValue) - { - writer.WritePropertyName("gte"); - writer.WriteNumberValue(GteValue.Value); - } - - if (LtValue.HasValue) - { - writer.WritePropertyName("lt"); - writer.WriteNumberValue(LtValue.Value); - } - - if (LteValue.HasValue) - { - writer.WritePropertyName("lte"); - writer.WriteNumberValue(LteValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class NumberRangeQueryDescriptor : SerializableDescriptor -{ - internal NumberRangeQueryDescriptor(Action configure) => configure.Invoke(this); - - public NumberRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private double? GtValue { get; set; } - private double? GteValue { get; set; } - private double? LtValue { get; set; } - private double? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { 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 NumberRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public NumberRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public NumberRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public NumberRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public NumberRangeQueryDescriptor Gt(double? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public NumberRangeQueryDescriptor Gte(double? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public NumberRangeQueryDescriptor Lt(double? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public NumberRangeQueryDescriptor Lte(double? lte) - { - LteValue = lte; - return Self; - } - - public NumberRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public NumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (GtValue.HasValue) - { - writer.WritePropertyName("gt"); - writer.WriteNumberValue(GtValue.Value); - } - - if (GteValue.HasValue) - { - writer.WritePropertyName("gte"); - writer.WriteNumberValue(GteValue.Value); - } - - if (LtValue.HasValue) - { - writer.WritePropertyName("lt"); - writer.WriteNumberValue(LtValue.Value); - } - - if (LteValue.HasValue) - { - writer.WritePropertyName("lte"); - writer.WriteNumberValue(LteValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs deleted file mode 100644 index c8fb77dbb14..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/NumericDecayFunction.g.cs +++ /dev/null @@ -1,228 +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.QueryDsl; - -internal sealed partial class NumericDecayFunctionConverter : JsonConverter -{ - public override NumericDecayFunction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new NumericDecayFunction(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "multi_value_mode") - { - variant.MultiValueMode = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Placement = JsonSerializer.Deserialize>(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, NumericDecayFunction value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Placement 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.Placement, options); - } - - if (value.MultiValueMode is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, value.MultiValueMode, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(NumericDecayFunctionConverter))] -public sealed partial class NumericDecayFunction -{ - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// 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 Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement Placement { get; set; } -} - -public sealed partial class NumericDecayFunctionDescriptor : SerializableDescriptor> -{ - internal NumericDecayFunctionDescriptor(Action> configure) => configure.Invoke(this); - - public NumericDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public NumericDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public NumericDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public NumericDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public NumericDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public NumericDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class NumericDecayFunctionDescriptor : SerializableDescriptor -{ - internal NumericDecayFunctionDescriptor(Action configure) => configure.Invoke(this); - - public NumericDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public NumericDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public NumericDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public NumericDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public NumericDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public NumericDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ParentIdQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ParentIdQuery.g.cs deleted file mode 100644 index 23f1dd60129..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ParentIdQuery.g.cs +++ /dev/null @@ -1,174 +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.QueryDsl; - -public sealed partial class ParentIdQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// ID of the parent document. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// Indicates whether to ignore an unmapped type and not return any documents instead of an error. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unmapped")] - public bool? IgnoreUnmapped { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Name of the child relationship mapped for the join field. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public string? Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(ParentIdQuery parentIdQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.ParentId(parentIdQuery); -} - -public sealed partial class ParentIdQueryDescriptor : SerializableDescriptor -{ - internal ParentIdQueryDescriptor(Action configure) => configure.Invoke(this); - - public ParentIdQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private bool? IgnoreUnmappedValue { get; set; } - private string? QueryNameValue { get; set; } - private string? TypeValue { 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 ParentIdQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// ID of the parent document. - /// - /// - public ParentIdQueryDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Indicates whether to ignore an unmapped type and not return any documents instead of an error. - /// - /// - public ParentIdQueryDescriptor IgnoreUnmapped(bool? ignoreUnmapped = true) - { - IgnoreUnmappedValue = ignoreUnmapped; - return Self; - } - - public ParentIdQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Name of the child relationship mapped for the join field. - /// - /// - public ParentIdQueryDescriptor Type(string? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IgnoreUnmappedValue.HasValue) - { - writer.WritePropertyName("ignore_unmapped"); - writer.WriteBooleanValue(IgnoreUnmappedValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(TypeValue)) - { - writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PercolateQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PercolateQuery.g.cs deleted file mode 100644 index 67ad113daa1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PercolateQuery.g.cs +++ /dev/null @@ -1,578 +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.QueryDsl; - -public sealed partial class PercolateQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The source of the document being percolated. - /// - /// - [JsonInclude, JsonPropertyName("document")] - public object? Document { get; set; } - - /// - /// - /// An array of sources of the documents being percolated. - /// - /// - [JsonInclude, JsonPropertyName("documents")] - public ICollection? Documents { get; set; } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The ID of a stored document to percolate. - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// The index of a stored document to percolate. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// The suffix used for the _percolator_document_slot field when multiple percolate queries are specified. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// - /// Preference used to fetch document to percolate. - /// - /// - [JsonInclude, JsonPropertyName("preference")] - public string? Preference { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Routing used to fetch document to percolate. - /// - /// - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } - - /// - /// - /// The expected version of a stored document to percolate. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(PercolateQuery percolateQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Percolate(percolateQuery); -} - -public sealed partial class PercolateQueryDescriptor : SerializableDescriptor> -{ - internal PercolateQueryDescriptor(Action> configure) => configure.Invoke(this); - - public PercolateQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private object? DocumentValue { get; set; } - private ICollection? DocumentsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private string? NameValue { get; set; } - private string? PreferenceValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private long? VersionValue { 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 PercolateQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The source of the document being percolated. - /// - /// - public PercolateQueryDescriptor Document(object? document) - { - DocumentValue = document; - return Self; - } - - /// - /// - /// An array of sources of the documents being percolated. - /// - /// - public PercolateQueryDescriptor Documents(ICollection? documents) - { - DocumentsValue = documents; - return Self; - } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - public PercolateQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - public PercolateQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - public PercolateQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The ID of a stored document to percolate. - /// - /// - public PercolateQueryDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index of a stored document to percolate. - /// - /// - public PercolateQueryDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// The suffix used for the _percolator_document_slot field when multiple percolate queries are specified. - /// - /// - public PercolateQueryDescriptor Name(string? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Preference used to fetch document to percolate. - /// - /// - public PercolateQueryDescriptor Preference(string? preference) - { - PreferenceValue = preference; - return Self; - } - - public PercolateQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Routing used to fetch document to percolate. - /// - /// - public PercolateQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// The expected version of a stored document to percolate. - /// - /// - public PercolateQueryDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DocumentValue is not null) - { - writer.WritePropertyName("document"); - JsonSerializer.Serialize(writer, DocumentValue, options); - } - - if (DocumentsValue is not null) - { - writer.WritePropertyName("documents"); - JsonSerializer.Serialize(writer, DocumentsValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (!string.IsNullOrEmpty(NameValue)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); - } - - if (!string.IsNullOrEmpty(PreferenceValue)) - { - writer.WritePropertyName("preference"); - writer.WriteStringValue(PreferenceValue); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PercolateQueryDescriptor : SerializableDescriptor -{ - internal PercolateQueryDescriptor(Action configure) => configure.Invoke(this); - - public PercolateQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private object? DocumentValue { get; set; } - private ICollection? DocumentsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private string? NameValue { get; set; } - private string? PreferenceValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } - private long? VersionValue { 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 PercolateQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The source of the document being percolated. - /// - /// - public PercolateQueryDescriptor Document(object? document) - { - DocumentValue = document; - return Self; - } - - /// - /// - /// An array of sources of the documents being percolated. - /// - /// - public PercolateQueryDescriptor Documents(ICollection? documents) - { - DocumentsValue = documents; - return Self; - } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - public PercolateQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - public PercolateQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Field that holds the indexed queries. The field must use the percolator mapping type. - /// - /// - public PercolateQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The ID of a stored document to percolate. - /// - /// - public PercolateQueryDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index of a stored document to percolate. - /// - /// - public PercolateQueryDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// The suffix used for the _percolator_document_slot field when multiple percolate queries are specified. - /// - /// - public PercolateQueryDescriptor Name(string? name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Preference used to fetch document to percolate. - /// - /// - public PercolateQueryDescriptor Preference(string? preference) - { - PreferenceValue = preference; - return Self; - } - - public PercolateQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Routing used to fetch document to percolate. - /// - /// - public PercolateQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) - { - RoutingValue = routing; - return Self; - } - - /// - /// - /// The expected version of a stored document to percolate. - /// - /// - public PercolateQueryDescriptor Version(long? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DocumentValue is not null) - { - writer.WritePropertyName("document"); - JsonSerializer.Serialize(writer, DocumentValue, options); - } - - if (DocumentsValue is not null) - { - writer.WritePropertyName("documents"); - JsonSerializer.Serialize(writer, DocumentsValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (IdValue is not null) - { - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - } - - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (!string.IsNullOrEmpty(NameValue)) - { - writer.WritePropertyName("name"); - writer.WriteStringValue(NameValue); - } - - if (!string.IsNullOrEmpty(PreferenceValue)) - { - writer.WritePropertyName("preference"); - writer.WriteStringValue(PreferenceValue); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RoutingValue is not null) - { - writer.WritePropertyName("routing"); - JsonSerializer.Serialize(writer, RoutingValue, options); - } - - if (VersionValue.HasValue) - { - writer.WritePropertyName("version"); - writer.WriteNumberValue(VersionValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedDoc.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedDoc.g.cs deleted file mode 100644 index 3dfb68e3765..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedDoc.g.cs +++ /dev/null @@ -1,91 +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.QueryDsl; - -public sealed partial class PinnedDoc -{ - /// - /// - /// The unique document ID. - /// - /// - [JsonInclude, JsonPropertyName("_id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - - /// - /// - /// The index that contains the document. - /// - /// - [JsonInclude, JsonPropertyName("_index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } -} - -public sealed partial class PinnedDocDescriptor : SerializableDescriptor -{ - internal PinnedDocDescriptor(Action configure) => configure.Invoke(this); - - public PinnedDocDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } - - /// - /// - /// The unique document ID. - /// - /// - public PinnedDocDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - /// - /// - /// The index that contains the document. - /// - /// - public PinnedDocDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("_id"); - JsonSerializer.Serialize(writer, IdValue, options); - writer.WritePropertyName("_index"); - JsonSerializer.Serialize(writer, IndexValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedQuery.g.cs deleted file mode 100644 index 3cee9827032..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PinnedQuery.g.cs +++ /dev/null @@ -1,409 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(PinnedQueryConverter))] -public sealed partial class PinnedQuery -{ - internal PinnedQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static PinnedQuery Docs(IReadOnlyCollection pinnedDoc) => new PinnedQuery("docs", pinnedDoc); - public static PinnedQuery Ids(IReadOnlyCollection id) => new PinnedQuery("ids", id); - - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Any choice of query used to rank documents which will be ranked below the "pinned" documents. - /// - /// - [JsonInclude, JsonPropertyName("organic")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Organic { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class PinnedQueryConverter : JsonConverter -{ - public override PinnedQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - float? boostValue = default; - Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query organicValue = default; - string? queryNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "boost") - { - boostValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "organic") - { - organicValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "_name") - { - queryNameValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "docs") - { - variantValue = JsonSerializer.Deserialize?>(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ids") - { - variantValue = JsonSerializer.Deserialize?>(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'PinnedQuery' from the response."); - } - - var result = new PinnedQuery(variantNameValue, variantValue); - result.Boost = boostValue; - result.Organic = organicValue; - result.QueryName = queryNameValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, PinnedQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.Organic is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, value.Organic, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "docs": - JsonSerializer.Serialize>(writer, (IReadOnlyCollection)value.Variant, options); - break; - case "ids": - JsonSerializer.Serialize>(writer, (IReadOnlyCollection)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PinnedQueryDescriptor : SerializableDescriptor> -{ - internal PinnedQueryDescriptor(Action> configure) => configure.Invoke(this); - - public PinnedQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private PinnedQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private PinnedQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query OrganicValue { get; set; } - private string? QueryNameValue { 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 PinnedQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Any choice of query used to rank documents which will be ranked below the "pinned" documents. - /// - /// - public PinnedQueryDescriptor Organic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query organic) - { - OrganicValue = organic; - return Self; - } - - public PinnedQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public PinnedQueryDescriptor Docs(IReadOnlyCollection pinnedDoc) => Set(pinnedDoc, "docs"); - public PinnedQueryDescriptor Docs(Action configure) => Set(configure, "docs"); - public PinnedQueryDescriptor Ids(IReadOnlyCollection id) => Set(id, "ids"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (OrganicValue is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, OrganicValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PinnedQueryDescriptor : SerializableDescriptor -{ - internal PinnedQueryDescriptor(Action configure) => configure.Invoke(this); - - public PinnedQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private PinnedQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private PinnedQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query OrganicValue { get; set; } - private string? QueryNameValue { 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 PinnedQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Any choice of query used to rank documents which will be ranked below the "pinned" documents. - /// - /// - public PinnedQueryDescriptor Organic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query organic) - { - OrganicValue = organic; - return Self; - } - - public PinnedQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public PinnedQueryDescriptor Docs(IReadOnlyCollection pinnedDoc) => Set(pinnedDoc, "docs"); - public PinnedQueryDescriptor Docs(Action configure) => Set(configure, "docs"); - public PinnedQueryDescriptor Ids(IReadOnlyCollection id) => Set(id, "ids"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (OrganicValue is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, OrganicValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PrefixQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PrefixQuery.g.cs deleted file mode 100644 index f808632a013..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/PrefixQuery.g.cs +++ /dev/null @@ -1,419 +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.QueryDsl; - -internal sealed partial class PrefixQueryConverter : JsonConverter -{ - public override PrefixQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new PrefixQuery(fieldName); - 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 == "case_insensitive") - { - variant.CaseInsensitive = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rewrite") - { - variant.Rewrite = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "value") - { - variant.Value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, PrefixQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize PrefixQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.CaseInsensitive.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(value.CaseInsensitive.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (!string.IsNullOrEmpty(value.Rewrite)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(value.Rewrite); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(value.Value); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(PrefixQueryConverter))] -public sealed partial class PrefixQuery -{ - public PrefixQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Allows ASCII case insensitive matching of the value with the indexed field values when set to true. - /// Default is false which means the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public bool? CaseInsensitive { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public string? Rewrite { get; set; } - - /// - /// - /// Beginning characters of terms you wish to find in the provided field. - /// - /// - public string Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(PrefixQuery prefixQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Prefix(prefixQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(PrefixQuery prefixQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Prefix(prefixQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(PrefixQuery prefixQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Prefix(prefixQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(PrefixQuery prefixQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Prefix(prefixQuery); -} - -public sealed partial class PrefixQueryDescriptor : SerializableDescriptor> -{ - internal PrefixQueryDescriptor(Action> configure) => configure.Invoke(this); - - public PrefixQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private string ValueValue { 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 PrefixQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows ASCII case insensitive matching of the value with the indexed field values when set to true. - /// Default is false which means the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public PrefixQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public PrefixQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public PrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PrefixQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public PrefixQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Beginning characters of terms you wish to find in the provided field. - /// - /// - public PrefixQueryDescriptor Value(string value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class PrefixQueryDescriptor : SerializableDescriptor -{ - internal PrefixQueryDescriptor(Action configure) => configure.Invoke(this); - - public PrefixQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private string ValueValue { 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 PrefixQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows ASCII case insensitive matching of the value with the indexed field values when set to true. - /// Default is false which means the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public PrefixQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public PrefixQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public PrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PrefixQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public PrefixQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public PrefixQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Beginning characters of terms you wish to find in the provided field. - /// - /// - public PrefixQueryDescriptor Value(string value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index a4fda513598..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/Query.g.cs +++ /dev/null @@ -1,1061 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(QueryConverter))] -public sealed partial class Query -{ - internal Query(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Query Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => new Query("bool", boolQuery); - public static Query Boosting(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoostingQuery boostingQuery) => new Query("boosting", boostingQuery); - public static Query CombinedFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsQuery combinedFieldsQuery) => new Query("combined_fields", combinedFieldsQuery); - public static Query ConstantScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ConstantScoreQuery constantScoreQuery) => new Query("constant_score", constantScoreQuery); - public static Query DisMax(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DisMaxQuery disMaxQuery) => new Query("dis_max", disMaxQuery); - public static Query DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDistanceFeatureQuery distanceFeatureQuery) => new Query("distance_feature", distanceFeatureQuery); - public static Query DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceFeatureQuery distanceFeatureQuery) => new Query("distance_feature", distanceFeatureQuery); - public static Query DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDistanceFeatureQuery distanceFeatureQuery) => new Query("distance_feature", distanceFeatureQuery); - public static Query Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => new Query("exists", existsQuery); - public static Query FunctionScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreQuery functionScoreQuery) => new Query("function_score", functionScoreQuery); - 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); - public static Query Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery intervalsQuery) => new Query("intervals", intervalsQuery); - public static Query Knn(Elastic.Clients.Elasticsearch.Serverless.KnnQuery knnQuery) => new Query("knn", knnQuery); - public static Query Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => new Query("match", matchQuery); - public static Query MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => new Query("match_all", matchAllQuery); - public static Query MatchBoolPrefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchBoolPrefixQuery matchBoolPrefixQuery) => new Query("match_bool_prefix", matchBoolPrefixQuery); - public static Query MatchNone(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchNoneQuery matchNoneQuery) => new Query("match_none", matchNoneQuery); - public static Query MatchPhrase(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhraseQuery matchPhraseQuery) => new Query("match_phrase", matchPhraseQuery); - public static Query MatchPhrasePrefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhrasePrefixQuery matchPhrasePrefixQuery) => new Query("match_phrase_prefix", matchPhrasePrefixQuery); - public static Query MoreLikeThis(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MoreLikeThisQuery moreLikeThisQuery) => new Query("more_like_this", moreLikeThisQuery); - public static Query MultiMatch(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiMatchQuery multiMatchQuery) => new Query("multi_match", multiMatchQuery); - public static Query Nested(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NestedQuery nestedQuery) => new Query("nested", nestedQuery); - public static Query ParentId(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ParentIdQuery parentIdQuery) => new Query("parent_id", parentIdQuery); - public static Query Percolate(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PercolateQuery percolateQuery) => new Query("percolate", percolateQuery); - public static Query Pinned(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedQuery pinnedQuery) => new Query("pinned", pinnedQuery); - public static Query Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => new Query("prefix", prefixQuery); - public static Query QueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryStringQuery queryStringQuery) => new Query("query_string", queryStringQuery); - public static Query Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => new Query("range", rangeQuery); - public static Query Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => new Query("range", rangeQuery); - public static Query Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => new Query("range", rangeQuery); - public static Query Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => new Query("range", rangeQuery); - public static Query RankFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureQuery rankFeatureQuery) => new Query("rank_feature", rankFeatureQuery); - public static Query RawJson(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RawJsonQuery rawJsonQuery) => new Query("raw_json", rawJsonQuery); - public static Query Regexp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RegexpQuery regexpQuery) => new Query("regexp", regexpQuery); - public static Query Rule(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RuleQuery ruleQuery) => new Query("rule", ruleQuery); - 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); - public static Query SpanFirst(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery spanFirstQuery) => new Query("span_first", spanFirstQuery); - public static Query SpanMulti(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery spanMultiTermQuery) => new Query("span_multi", spanMultiTermQuery); - public static Query SpanNear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery spanNearQuery) => new Query("span_near", spanNearQuery); - public static Query SpanNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery spanNotQuery) => new Query("span_not", spanNotQuery); - public static Query SpanOr(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery spanOrQuery) => new Query("span_or", spanOrQuery); - public static Query SpanTerm(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery spanTermQuery) => new Query("span_term", spanTermQuery); - public static Query SpanWithin(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery spanWithinQuery) => new Query("span_within", spanWithinQuery); - public static Query SparseVector(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SparseVectorQuery sparseVectorQuery) => new Query("sparse_vector", sparseVectorQuery); - public static Query Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => new Query("term", termQuery); - public static Query Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => new Query("terms", termsQuery); - public static Query TermsSet(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery termsSetQuery) => new Query("terms_set", termsSetQuery); - public static Query Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => new Query("wildcard", wildcardQuery); - public static Query Wrapper(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery wrapperQuery) => new Query("wrapper", wrapperQuery); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class QueryConverter : JsonConverter -{ - public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "bool") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "boosting") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "combined_fields") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "constant_score") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "dis_max") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "distance_feature") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "exists") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "function_score") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "fuzzy") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_bounding_box") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_distance") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geo_shape") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "has_child") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "has_parent") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ids") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "intervals") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "knn") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_all") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_bool_prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_none") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_phrase") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_phrase_prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "more_like_this") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "multi_match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "nested") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "parent_id") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "percolate") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "pinned") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "query_string") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rank_feature") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "raw_json") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "regexp") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rule") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "script") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "script_score") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "semantic") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "shape") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "simple_query_string") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_containing") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_field_masking") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_first") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_multi") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_near") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_not") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_or") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_within") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "sparse_vector") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms_set") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wildcard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wrapper") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Query' from the response."); - } - - var result = new Query(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "bool": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery)value.Variant, options); - break; - case "boosting": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoostingQuery)value.Variant, options); - break; - case "combined_fields": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsQuery)value.Variant, options); - break; - case "constant_score": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ConstantScoreQuery)value.Variant, options); - break; - case "dis_max": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DisMaxQuery)value.Variant, options); - break; - case "distance_feature": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "exists": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery)value.Variant, options); - break; - case "function_score": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreQuery)value.Variant, options); - break; - case "fuzzy": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FuzzyQuery)value.Variant, options); - break; - case "geo_bounding_box": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoBoundingBoxQuery)value.Variant, options); - break; - 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; - case "has_parent": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.HasParentQuery)value.Variant, options); - break; - case "ids": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery)value.Variant, options); - break; - case "intervals": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery)value.Variant, options); - break; - case "knn": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.KnnQuery)value.Variant, options); - break; - case "match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery)value.Variant, options); - break; - case "match_all": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery)value.Variant, options); - break; - case "match_bool_prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchBoolPrefixQuery)value.Variant, options); - break; - case "match_none": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchNoneQuery)value.Variant, options); - break; - case "match_phrase": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhraseQuery)value.Variant, options); - break; - case "match_phrase_prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhrasePrefixQuery)value.Variant, options); - break; - case "more_like_this": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MoreLikeThisQuery)value.Variant, options); - break; - case "multi_match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiMatchQuery)value.Variant, options); - break; - case "nested": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NestedQuery)value.Variant, options); - break; - case "parent_id": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ParentIdQuery)value.Variant, options); - break; - case "percolate": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PercolateQuery)value.Variant, options); - break; - case "pinned": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedQuery)value.Variant, options); - break; - case "prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery)value.Variant, options); - break; - case "query_string": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryStringQuery)value.Variant, options); - break; - case "range": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "rank_feature": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureQuery)value.Variant, options); - break; - case "raw_json": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RawJsonQuery)value.Variant, options); - break; - case "regexp": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RegexpQuery)value.Variant, options); - break; - case "rule": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RuleQuery)value.Variant, options); - break; - case "script": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptQuery)value.Variant, options); - break; - case "script_score": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreQuery)value.Variant, options); - break; - 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; - case "span_containing": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery)value.Variant, options); - break; - case "span_field_masking": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery)value.Variant, options); - break; - case "span_first": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery)value.Variant, options); - break; - case "span_multi": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery)value.Variant, options); - break; - case "span_near": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery)value.Variant, options); - break; - case "span_not": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery)value.Variant, options); - break; - case "span_or": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery)value.Variant, options); - break; - case "span_term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery)value.Variant, options); - break; - case "span_within": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery)value.Variant, options); - break; - case "sparse_vector": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SparseVectorQuery)value.Variant, options); - break; - case "term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery)value.Variant, options); - break; - case "terms_set": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery)value.Variant, options); - break; - case "wildcard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery)value.Variant, options); - break; - case "wrapper": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class QueryDescriptor : SerializableDescriptor> -{ - internal QueryDescriptor(Action> configure) => configure.Invoke(this); - - public QueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private QueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private QueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public QueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public QueryDescriptor Bool(Action> configure) => Set(configure, "bool"); - public QueryDescriptor Boosting(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoostingQuery boostingQuery) => Set(boostingQuery, "boosting"); - public QueryDescriptor Boosting(Action> configure) => Set(configure, "boosting"); - public QueryDescriptor CombinedFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsQuery combinedFieldsQuery) => Set(combinedFieldsQuery, "combined_fields"); - public QueryDescriptor CombinedFields(Action> configure) => Set(configure, "combined_fields"); - public QueryDescriptor ConstantScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ConstantScoreQuery constantScoreQuery) => Set(constantScoreQuery, "constant_score"); - public QueryDescriptor ConstantScore(Action> configure) => Set(configure, "constant_score"); - public QueryDescriptor DisMax(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DisMaxQuery disMaxQuery) => Set(disMaxQuery, "dis_max"); - public QueryDescriptor DisMax(Action> configure) => Set(configure, "dis_max"); - public QueryDescriptor DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDistanceFeatureQuery distanceFeatureQuery) => Set(distanceFeatureQuery, "distance_feature"); - public QueryDescriptor DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceFeatureQuery distanceFeatureQuery) => Set(distanceFeatureQuery, "distance_feature"); - public QueryDescriptor DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDistanceFeatureQuery distanceFeatureQuery) => Set(distanceFeatureQuery, "distance_feature"); - public QueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public QueryDescriptor Exists(Action> configure) => Set(configure, "exists"); - public QueryDescriptor FunctionScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreQuery functionScoreQuery) => Set(functionScoreQuery, "function_score"); - public QueryDescriptor FunctionScore(Action> configure) => Set(configure, "function_score"); - public QueryDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FuzzyQuery fuzzyQuery) => Set(fuzzyQuery, "fuzzy"); - public QueryDescriptor Fuzzy(Action> configure) => Set(configure, "fuzzy"); - public QueryDescriptor GeoBoundingBox(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoBoundingBoxQuery geoBoundingBoxQuery) => Set(geoBoundingBoxQuery, "geo_bounding_box"); - 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"); - public QueryDescriptor HasParent(Action> configure) => Set(configure, "has_parent"); - public QueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public QueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public QueryDescriptor Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery intervalsQuery) => Set(intervalsQuery, "intervals"); - public QueryDescriptor Intervals(Action> configure) => Set(configure, "intervals"); - public QueryDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnQuery knnQuery) => Set(knnQuery, "knn"); - public QueryDescriptor Knn(Action> configure) => Set(configure, "knn"); - public QueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public QueryDescriptor Match(Action> configure) => Set(configure, "match"); - public QueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public QueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public QueryDescriptor MatchBoolPrefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchBoolPrefixQuery matchBoolPrefixQuery) => Set(matchBoolPrefixQuery, "match_bool_prefix"); - public QueryDescriptor MatchBoolPrefix(Action> configure) => Set(configure, "match_bool_prefix"); - public QueryDescriptor MatchNone(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchNoneQuery matchNoneQuery) => Set(matchNoneQuery, "match_none"); - public QueryDescriptor MatchNone(Action configure) => Set(configure, "match_none"); - public QueryDescriptor MatchPhrase(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhraseQuery matchPhraseQuery) => Set(matchPhraseQuery, "match_phrase"); - public QueryDescriptor MatchPhrase(Action> configure) => Set(configure, "match_phrase"); - public QueryDescriptor MatchPhrasePrefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhrasePrefixQuery matchPhrasePrefixQuery) => Set(matchPhrasePrefixQuery, "match_phrase_prefix"); - public QueryDescriptor MatchPhrasePrefix(Action> configure) => Set(configure, "match_phrase_prefix"); - public QueryDescriptor MoreLikeThis(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MoreLikeThisQuery moreLikeThisQuery) => Set(moreLikeThisQuery, "more_like_this"); - public QueryDescriptor MoreLikeThis(Action> configure) => Set(configure, "more_like_this"); - public QueryDescriptor MultiMatch(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiMatchQuery multiMatchQuery) => Set(multiMatchQuery, "multi_match"); - public QueryDescriptor MultiMatch(Action> configure) => Set(configure, "multi_match"); - public QueryDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NestedQuery nestedQuery) => Set(nestedQuery, "nested"); - public QueryDescriptor Nested(Action> configure) => Set(configure, "nested"); - public QueryDescriptor ParentId(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ParentIdQuery parentIdQuery) => Set(parentIdQuery, "parent_id"); - public QueryDescriptor ParentId(Action configure) => Set(configure, "parent_id"); - public QueryDescriptor Percolate(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PercolateQuery percolateQuery) => Set(percolateQuery, "percolate"); - public QueryDescriptor Percolate(Action> configure) => Set(configure, "percolate"); - public QueryDescriptor Pinned(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedQuery pinnedQuery) => Set(pinnedQuery, "pinned"); - public QueryDescriptor Pinned(Action> configure) => Set(configure, "pinned"); - public QueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public QueryDescriptor Prefix(Action> configure) => Set(configure, "prefix"); - public QueryDescriptor QueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryStringQuery queryStringQuery) => Set(queryStringQuery, "query_string"); - public QueryDescriptor QueryString(Action> configure) => Set(configure, "query_string"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor RankFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureQuery rankFeatureQuery) => Set(rankFeatureQuery, "rank_feature"); - public QueryDescriptor RankFeature(Action> configure) => Set(configure, "rank_feature"); - public QueryDescriptor RawJson(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RawJsonQuery rawJsonQuery) => Set(rawJsonQuery, "raw_json"); - public QueryDescriptor Regexp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RegexpQuery regexpQuery) => Set(regexpQuery, "regexp"); - public QueryDescriptor Regexp(Action> configure) => Set(configure, "regexp"); - public QueryDescriptor Rule(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RuleQuery ruleQuery) => Set(ruleQuery, "rule"); - public QueryDescriptor Rule(Action> configure) => Set(configure, "rule"); - public QueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptQuery scriptQuery) => Set(scriptQuery, "script"); - public QueryDescriptor Script(Action configure) => Set(configure, "script"); - public QueryDescriptor ScriptScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreQuery scriptScoreQuery) => Set(scriptScoreQuery, "script_score"); - 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"); - public QueryDescriptor SpanContaining(Action> configure) => Set(configure, "span_containing"); - public QueryDescriptor SpanFieldMasking(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery spanFieldMaskingQuery) => Set(spanFieldMaskingQuery, "span_field_masking"); - public QueryDescriptor SpanFieldMasking(Action> configure) => Set(configure, "span_field_masking"); - public QueryDescriptor SpanFirst(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery spanFirstQuery) => Set(spanFirstQuery, "span_first"); - public QueryDescriptor SpanFirst(Action> configure) => Set(configure, "span_first"); - public QueryDescriptor SpanMulti(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery spanMultiTermQuery) => Set(spanMultiTermQuery, "span_multi"); - public QueryDescriptor SpanMulti(Action> configure) => Set(configure, "span_multi"); - public QueryDescriptor SpanNear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery spanNearQuery) => Set(spanNearQuery, "span_near"); - public QueryDescriptor SpanNear(Action> configure) => Set(configure, "span_near"); - public QueryDescriptor SpanNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery spanNotQuery) => Set(spanNotQuery, "span_not"); - public QueryDescriptor SpanNot(Action> configure) => Set(configure, "span_not"); - public QueryDescriptor SpanOr(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery spanOrQuery) => Set(spanOrQuery, "span_or"); - public QueryDescriptor SpanOr(Action> configure) => Set(configure, "span_or"); - public QueryDescriptor SpanTerm(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery spanTermQuery) => Set(spanTermQuery, "span_term"); - public QueryDescriptor SpanTerm(Action> configure) => Set(configure, "span_term"); - public QueryDescriptor SpanWithin(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery spanWithinQuery) => Set(spanWithinQuery, "span_within"); - public QueryDescriptor SpanWithin(Action> configure) => Set(configure, "span_within"); - public QueryDescriptor SparseVector(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SparseVectorQuery sparseVectorQuery) => Set(sparseVectorQuery, "sparse_vector"); - public QueryDescriptor SparseVector(Action> configure) => Set(configure, "sparse_vector"); - public QueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public QueryDescriptor Term(Action> configure) => Set(configure, "term"); - public QueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public QueryDescriptor Terms(Action> configure) => Set(configure, "terms"); - public QueryDescriptor TermsSet(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); - public QueryDescriptor TermsSet(Action> configure) => Set(configure, "terms_set"); - public QueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public QueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); - public QueryDescriptor Wrapper(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); - public QueryDescriptor Wrapper(Action configure) => Set(configure, "wrapper"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class QueryDescriptor : SerializableDescriptor -{ - internal QueryDescriptor(Action configure) => configure.Invoke(this); - - public QueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private QueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private QueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public QueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public QueryDescriptor Bool(Action configure) => Set(configure, "bool"); - public QueryDescriptor Boosting(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoostingQuery boostingQuery) => Set(boostingQuery, "boosting"); - public QueryDescriptor Boosting(Action configure) => Set(configure, "boosting"); - public QueryDescriptor CombinedFields(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.CombinedFieldsQuery combinedFieldsQuery) => Set(combinedFieldsQuery, "combined_fields"); - public QueryDescriptor CombinedFields(Action configure) => Set(configure, "combined_fields"); - public QueryDescriptor ConstantScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ConstantScoreQuery constantScoreQuery) => Set(constantScoreQuery, "constant_score"); - public QueryDescriptor ConstantScore(Action configure) => Set(configure, "constant_score"); - public QueryDescriptor DisMax(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DisMaxQuery disMaxQuery) => Set(disMaxQuery, "dis_max"); - public QueryDescriptor DisMax(Action configure) => Set(configure, "dis_max"); - public QueryDescriptor DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedDistanceFeatureQuery distanceFeatureQuery) => Set(distanceFeatureQuery, "distance_feature"); - public QueryDescriptor DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoDistanceFeatureQuery distanceFeatureQuery) => Set(distanceFeatureQuery, "distance_feature"); - public QueryDescriptor DistanceFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateDistanceFeatureQuery distanceFeatureQuery) => Set(distanceFeatureQuery, "distance_feature"); - public QueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public QueryDescriptor Exists(Action configure) => Set(configure, "exists"); - public QueryDescriptor FunctionScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScoreQuery functionScoreQuery) => Set(functionScoreQuery, "function_score"); - public QueryDescriptor FunctionScore(Action configure) => Set(configure, "function_score"); - public QueryDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FuzzyQuery fuzzyQuery) => Set(fuzzyQuery, "fuzzy"); - public QueryDescriptor Fuzzy(Action configure) => Set(configure, "fuzzy"); - public QueryDescriptor GeoBoundingBox(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.GeoBoundingBoxQuery geoBoundingBoxQuery) => Set(geoBoundingBoxQuery, "geo_bounding_box"); - 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"); - public QueryDescriptor HasParent(Action configure) => Set(configure, "has_parent"); - public QueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public QueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public QueryDescriptor Intervals(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IntervalsQuery intervalsQuery) => Set(intervalsQuery, "intervals"); - public QueryDescriptor Intervals(Action configure) => Set(configure, "intervals"); - public QueryDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnQuery knnQuery) => Set(knnQuery, "knn"); - public QueryDescriptor Knn(Action configure) => Set(configure, "knn"); - public QueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public QueryDescriptor Match(Action configure) => Set(configure, "match"); - public QueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public QueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public QueryDescriptor MatchBoolPrefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchBoolPrefixQuery matchBoolPrefixQuery) => Set(matchBoolPrefixQuery, "match_bool_prefix"); - public QueryDescriptor MatchBoolPrefix(Action configure) => Set(configure, "match_bool_prefix"); - public QueryDescriptor MatchNone(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchNoneQuery matchNoneQuery) => Set(matchNoneQuery, "match_none"); - public QueryDescriptor MatchNone(Action configure) => Set(configure, "match_none"); - public QueryDescriptor MatchPhrase(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhraseQuery matchPhraseQuery) => Set(matchPhraseQuery, "match_phrase"); - public QueryDescriptor MatchPhrase(Action configure) => Set(configure, "match_phrase"); - public QueryDescriptor MatchPhrasePrefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchPhrasePrefixQuery matchPhrasePrefixQuery) => Set(matchPhrasePrefixQuery, "match_phrase_prefix"); - public QueryDescriptor MatchPhrasePrefix(Action configure) => Set(configure, "match_phrase_prefix"); - public QueryDescriptor MoreLikeThis(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MoreLikeThisQuery moreLikeThisQuery) => Set(moreLikeThisQuery, "more_like_this"); - public QueryDescriptor MoreLikeThis(Action configure) => Set(configure, "more_like_this"); - public QueryDescriptor MultiMatch(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiMatchQuery multiMatchQuery) => Set(multiMatchQuery, "multi_match"); - public QueryDescriptor MultiMatch(Action configure) => Set(configure, "multi_match"); - public QueryDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NestedQuery nestedQuery) => Set(nestedQuery, "nested"); - public QueryDescriptor Nested(Action configure) => Set(configure, "nested"); - public QueryDescriptor ParentId(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ParentIdQuery parentIdQuery) => Set(parentIdQuery, "parent_id"); - public QueryDescriptor ParentId(Action configure) => Set(configure, "parent_id"); - public QueryDescriptor Percolate(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PercolateQuery percolateQuery) => Set(percolateQuery, "percolate"); - public QueryDescriptor Percolate(Action configure) => Set(configure, "percolate"); - public QueryDescriptor Pinned(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedQuery pinnedQuery) => Set(pinnedQuery, "pinned"); - public QueryDescriptor Pinned(Action configure) => Set(configure, "pinned"); - public QueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public QueryDescriptor Prefix(Action configure) => Set(configure, "prefix"); - public QueryDescriptor QueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryStringQuery queryStringQuery) => Set(queryStringQuery, "query_string"); - public QueryDescriptor QueryString(Action configure) => Set(configure, "query_string"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public QueryDescriptor RankFeature(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureQuery rankFeatureQuery) => Set(rankFeatureQuery, "rank_feature"); - public QueryDescriptor RankFeature(Action configure) => Set(configure, "rank_feature"); - public QueryDescriptor RawJson(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RawJsonQuery rawJsonQuery) => Set(rawJsonQuery, "raw_json"); - public QueryDescriptor Regexp(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RegexpQuery regexpQuery) => Set(regexpQuery, "regexp"); - public QueryDescriptor Regexp(Action configure) => Set(configure, "regexp"); - public QueryDescriptor Rule(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RuleQuery ruleQuery) => Set(ruleQuery, "rule"); - public QueryDescriptor Rule(Action configure) => Set(configure, "rule"); - public QueryDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptQuery scriptQuery) => Set(scriptQuery, "script"); - public QueryDescriptor Script(Action configure) => Set(configure, "script"); - public QueryDescriptor ScriptScore(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ScriptScoreQuery scriptScoreQuery) => Set(scriptScoreQuery, "script_score"); - 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"); - public QueryDescriptor SpanContaining(Action configure) => Set(configure, "span_containing"); - public QueryDescriptor SpanFieldMasking(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery spanFieldMaskingQuery) => Set(spanFieldMaskingQuery, "span_field_masking"); - public QueryDescriptor SpanFieldMasking(Action configure) => Set(configure, "span_field_masking"); - public QueryDescriptor SpanFirst(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery spanFirstQuery) => Set(spanFirstQuery, "span_first"); - public QueryDescriptor SpanFirst(Action configure) => Set(configure, "span_first"); - public QueryDescriptor SpanMulti(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery spanMultiTermQuery) => Set(spanMultiTermQuery, "span_multi"); - public QueryDescriptor SpanMulti(Action configure) => Set(configure, "span_multi"); - public QueryDescriptor SpanNear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery spanNearQuery) => Set(spanNearQuery, "span_near"); - public QueryDescriptor SpanNear(Action configure) => Set(configure, "span_near"); - public QueryDescriptor SpanNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery spanNotQuery) => Set(spanNotQuery, "span_not"); - public QueryDescriptor SpanNot(Action configure) => Set(configure, "span_not"); - public QueryDescriptor SpanOr(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery spanOrQuery) => Set(spanOrQuery, "span_or"); - public QueryDescriptor SpanOr(Action configure) => Set(configure, "span_or"); - public QueryDescriptor SpanTerm(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery spanTermQuery) => Set(spanTermQuery, "span_term"); - public QueryDescriptor SpanTerm(Action configure) => Set(configure, "span_term"); - public QueryDescriptor SpanWithin(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery spanWithinQuery) => Set(spanWithinQuery, "span_within"); - public QueryDescriptor SpanWithin(Action configure) => Set(configure, "span_within"); - public QueryDescriptor SparseVector(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SparseVectorQuery sparseVectorQuery) => Set(sparseVectorQuery, "sparse_vector"); - public QueryDescriptor SparseVector(Action configure) => Set(configure, "sparse_vector"); - public QueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public QueryDescriptor Term(Action configure) => Set(configure, "term"); - public QueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public QueryDescriptor Terms(Action configure) => Set(configure, "terms"); - public QueryDescriptor TermsSet(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsSetQuery termsSetQuery) => Set(termsSetQuery, "terms_set"); - public QueryDescriptor TermsSet(Action configure) => Set(configure, "terms_set"); - public QueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public QueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); - public QueryDescriptor Wrapper(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WrapperQuery wrapperQuery) => Set(wrapperQuery, "wrapper"); - public QueryDescriptor Wrapper(Action configure) => Set(configure, "wrapper"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/QueryStringQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/QueryStringQuery.g.cs deleted file mode 100644 index 0e3a26c5163..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/QueryStringQuery.g.cs +++ /dev/null @@ -1,1287 +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.QueryDsl; - -public sealed partial class QueryStringQuery -{ - /// - /// - /// If true, the wildcard characters * and ? are allowed as the first character of the query string. - /// - /// - [JsonInclude, JsonPropertyName("allow_leading_wildcard")] - public bool? AllowLeadingWildcard { get; set; } - - /// - /// - /// Analyzer used to convert text in the query string into tokens. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// If true, the query attempts to analyze wildcard terms in the query string. - /// - /// - [JsonInclude, JsonPropertyName("analyze_wildcard")] - public bool? AnalyzeWildcard { get; set; } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - [JsonInclude, JsonPropertyName("auto_generate_synonyms_phrase_query")] - public bool? AutoGenerateSynonymsPhraseQuery { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - [JsonInclude, JsonPropertyName("default_field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? DefaultField { get; set; } - - /// - /// - /// Default boolean logic used to interpret text in the query string if no operators are specified. - /// - /// - [JsonInclude, JsonPropertyName("default_operator")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get; set; } - - /// - /// - /// If true, enable position increments in queries constructed from a query_string search. - /// - /// - [JsonInclude, JsonPropertyName("enable_position_increments")] - public bool? EnablePositionIncrements { get; set; } - [JsonInclude, JsonPropertyName("escape")] - public bool? Escape { get; set; } - - /// - /// - /// Array of fields to search. Supports wildcards (*). - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// Maximum edit distance allowed for fuzzy matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzziness")] - public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } - - /// - /// - /// Maximum number of terms to which the query expands for fuzzy matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_max_expansions")] - public int? FuzzyMaxExpansions { get; set; } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_prefix_length")] - public int? FuzzyPrefixLength { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_rewrite")] - public string? FuzzyRewrite { get; set; } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_transpositions")] - public bool? FuzzyTranspositions { get; set; } - - /// - /// - /// If true, format-based errors, such as providing a text value for a numeric field, are ignored. - /// - /// - [JsonInclude, JsonPropertyName("lenient")] - public bool? Lenient { get; set; } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - [JsonInclude, JsonPropertyName("max_determinized_states")] - public int? MaxDeterminizedStates { get; set; } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - [JsonInclude, JsonPropertyName("minimum_should_match")] - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Maximum number of positions allowed between matching tokens for phrases. - /// - /// - [JsonInclude, JsonPropertyName("phrase_slop")] - public double? PhraseSlop { get; set; } - - /// - /// - /// Query string you wish to parse and use for search. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Analyzer used to convert quoted text in the query string into tokens. - /// For quoted text, this parameter overrides the analyzer specified in the analyzer parameter. - /// - /// - [JsonInclude, JsonPropertyName("quote_analyzer")] - public string? QuoteAnalyzer { get; set; } - - /// - /// - /// Suffix appended to quoted text in the query string. - /// You can use this suffix to use a different analysis method for exact matches. - /// - /// - [JsonInclude, JsonPropertyName("quote_field_suffix")] - public string? QuoteFieldSuffix { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - [JsonInclude, JsonPropertyName("rewrite")] - public string? Rewrite { get; set; } - - /// - /// - /// How to combine the queries generated from the individual search terms in the resulting dis_max query. - /// - /// - [JsonInclude, JsonPropertyName("tie_breaker")] - public double? TieBreaker { get; set; } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC. - /// - /// - [JsonInclude, JsonPropertyName("time_zone")] - public string? TimeZone { get; set; } - - /// - /// - /// Determines how the query matches and scores documents. - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(QueryStringQuery queryStringQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.QueryString(queryStringQuery); -} - -public sealed partial class QueryStringQueryDescriptor : SerializableDescriptor> -{ - internal QueryStringQueryDescriptor(Action> configure) => configure.Invoke(this); - - public QueryStringQueryDescriptor() : base() - { - } - - private bool? AllowLeadingWildcardValue { get; set; } - private string? AnalyzerValue { get; set; } - private bool? AnalyzeWildcardValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DefaultFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperatorValue { get; set; } - private bool? EnablePositionIncrementsValue { get; set; } - private bool? EscapeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? FuzzyMaxExpansionsValue { get; set; } - private int? FuzzyPrefixLengthValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private int? MaxDeterminizedStatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private double? PhraseSlopValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private string? QuoteAnalyzerValue { get; set; } - private string? QuoteFieldSuffixValue { get; set; } - private string? RewriteValue { get; set; } - private double? TieBreakerValue { get; set; } - private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? TypeValue { get; set; } - - /// - /// - /// If true, the wildcard characters * and ? are allowed as the first character of the query string. - /// - /// - public QueryStringQueryDescriptor AllowLeadingWildcard(bool? allowLeadingWildcard = true) - { - AllowLeadingWildcardValue = allowLeadingWildcard; - return Self; - } - - /// - /// - /// Analyzer used to convert text in the query string into tokens. - /// - /// - public QueryStringQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, the query attempts to analyze wildcard terms in the query string. - /// - /// - public QueryStringQueryDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) - { - AnalyzeWildcardValue = analyzeWildcard; - return Self; - } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public QueryStringQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 QueryStringQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public QueryStringQueryDescriptor DefaultField(Elastic.Clients.Elasticsearch.Serverless.Field? defaultField) - { - DefaultFieldValue = defaultField; - return Self; - } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public QueryStringQueryDescriptor DefaultField(Expression> defaultField) - { - DefaultFieldValue = defaultField; - return Self; - } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public QueryStringQueryDescriptor DefaultField(Expression> defaultField) - { - DefaultFieldValue = defaultField; - return Self; - } - - /// - /// - /// Default boolean logic used to interpret text in the query string if no operators are specified. - /// - /// - public QueryStringQueryDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) - { - DefaultOperatorValue = defaultOperator; - return Self; - } - - /// - /// - /// If true, enable position increments in queries constructed from a query_string search. - /// - /// - public QueryStringQueryDescriptor EnablePositionIncrements(bool? enablePositionIncrements = true) - { - EnablePositionIncrementsValue = enablePositionIncrements; - return Self; - } - - public QueryStringQueryDescriptor Escape(bool? escape = true) - { - EscapeValue = escape; - return Self; - } - - /// - /// - /// Array of fields to search. Supports wildcards (*). - /// - /// - public QueryStringQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for fuzzy matching. - /// - /// - public QueryStringQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query expands for fuzzy matching. - /// - /// - public QueryStringQueryDescriptor FuzzyMaxExpansions(int? fuzzyMaxExpansions) - { - FuzzyMaxExpansionsValue = fuzzyMaxExpansions; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public QueryStringQueryDescriptor FuzzyPrefixLength(int? fuzzyPrefixLength) - { - FuzzyPrefixLengthValue = fuzzyPrefixLength; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public QueryStringQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public QueryStringQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text value for a numeric field, are ignored. - /// - /// - public QueryStringQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - public QueryStringQueryDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) - { - MaxDeterminizedStatesValue = maxDeterminizedStates; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public QueryStringQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens for phrases. - /// - /// - public QueryStringQueryDescriptor PhraseSlop(double? phraseSlop) - { - PhraseSlopValue = phraseSlop; - return Self; - } - - /// - /// - /// Query string you wish to parse and use for search. - /// - /// - public QueryStringQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public QueryStringQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Analyzer used to convert quoted text in the query string into tokens. - /// For quoted text, this parameter overrides the analyzer specified in the analyzer parameter. - /// - /// - public QueryStringQueryDescriptor QuoteAnalyzer(string? quoteAnalyzer) - { - QuoteAnalyzerValue = quoteAnalyzer; - return Self; - } - - /// - /// - /// Suffix appended to quoted text in the query string. - /// You can use this suffix to use a different analysis method for exact matches. - /// - /// - public QueryStringQueryDescriptor QuoteFieldSuffix(string? quoteFieldSuffix) - { - QuoteFieldSuffixValue = quoteFieldSuffix; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public QueryStringQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// How to combine the queries generated from the individual search terms in the resulting dis_max query. - /// - /// - public QueryStringQueryDescriptor TieBreaker(double? tieBreaker) - { - TieBreakerValue = tieBreaker; - return Self; - } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC. - /// - /// - public QueryStringQueryDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - /// - /// - /// Determines how the query matches and scores documents. - /// - /// - public QueryStringQueryDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLeadingWildcardValue.HasValue) - { - writer.WritePropertyName("allow_leading_wildcard"); - writer.WriteBooleanValue(AllowLeadingWildcardValue.Value); - } - - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AnalyzeWildcardValue.HasValue) - { - writer.WritePropertyName("analyze_wildcard"); - writer.WriteBooleanValue(AnalyzeWildcardValue.Value); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DefaultFieldValue is not null) - { - writer.WritePropertyName("default_field"); - JsonSerializer.Serialize(writer, DefaultFieldValue, options); - } - - if (DefaultOperatorValue is not null) - { - writer.WritePropertyName("default_operator"); - JsonSerializer.Serialize(writer, DefaultOperatorValue, options); - } - - if (EnablePositionIncrementsValue.HasValue) - { - writer.WritePropertyName("enable_position_increments"); - writer.WriteBooleanValue(EnablePositionIncrementsValue.Value); - } - - if (EscapeValue.HasValue) - { - writer.WritePropertyName("escape"); - writer.WriteBooleanValue(EscapeValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (FuzzyMaxExpansionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_max_expansions"); - writer.WriteNumberValue(FuzzyMaxExpansionsValue.Value); - } - - if (FuzzyPrefixLengthValue.HasValue) - { - writer.WritePropertyName("fuzzy_prefix_length"); - writer.WriteNumberValue(FuzzyPrefixLengthValue.Value); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MaxDeterminizedStatesValue.HasValue) - { - writer.WritePropertyName("max_determinized_states"); - writer.WriteNumberValue(MaxDeterminizedStatesValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (PhraseSlopValue.HasValue) - { - writer.WritePropertyName("phrase_slop"); - writer.WriteNumberValue(PhraseSlopValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(QuoteAnalyzerValue)) - { - writer.WritePropertyName("quote_analyzer"); - writer.WriteStringValue(QuoteAnalyzerValue); - } - - if (!string.IsNullOrEmpty(QuoteFieldSuffixValue)) - { - writer.WritePropertyName("quote_field_suffix"); - writer.WriteStringValue(QuoteFieldSuffixValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - if (TieBreakerValue.HasValue) - { - writer.WritePropertyName("tie_breaker"); - writer.WriteNumberValue(TieBreakerValue.Value); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class QueryStringQueryDescriptor : SerializableDescriptor -{ - internal QueryStringQueryDescriptor(Action configure) => configure.Invoke(this); - - public QueryStringQueryDescriptor() : base() - { - } - - private bool? AllowLeadingWildcardValue { get; set; } - private string? AnalyzerValue { get; set; } - private bool? AnalyzeWildcardValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field? DefaultFieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperatorValue { get; set; } - private bool? EnablePositionIncrementsValue { get; set; } - private bool? EscapeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fuzziness? FuzzinessValue { get; set; } - private int? FuzzyMaxExpansionsValue { get; set; } - private int? FuzzyPrefixLengthValue { get; set; } - private string? FuzzyRewriteValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private int? MaxDeterminizedStatesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private double? PhraseSlopValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private string? QuoteAnalyzerValue { get; set; } - private string? QuoteFieldSuffixValue { get; set; } - private string? RewriteValue { get; set; } - private double? TieBreakerValue { get; set; } - private string? TimeZoneValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? TypeValue { get; set; } - - /// - /// - /// If true, the wildcard characters * and ? are allowed as the first character of the query string. - /// - /// - public QueryStringQueryDescriptor AllowLeadingWildcard(bool? allowLeadingWildcard = true) - { - AllowLeadingWildcardValue = allowLeadingWildcard; - return Self; - } - - /// - /// - /// Analyzer used to convert text in the query string into tokens. - /// - /// - public QueryStringQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, the query attempts to analyze wildcard terms in the query string. - /// - /// - public QueryStringQueryDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) - { - AnalyzeWildcardValue = analyzeWildcard; - return Self; - } - - /// - /// - /// If true, match phrase queries are automatically created for multi-term synonyms. - /// - /// - public QueryStringQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 QueryStringQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public QueryStringQueryDescriptor DefaultField(Elastic.Clients.Elasticsearch.Serverless.Field? defaultField) - { - DefaultFieldValue = defaultField; - return Self; - } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public QueryStringQueryDescriptor DefaultField(Expression> defaultField) - { - DefaultFieldValue = defaultField; - return Self; - } - - /// - /// - /// Default field to search if no field is provided in the query string. - /// Supports wildcards (*). - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public QueryStringQueryDescriptor DefaultField(Expression> defaultField) - { - DefaultFieldValue = defaultField; - return Self; - } - - /// - /// - /// Default boolean logic used to interpret text in the query string if no operators are specified. - /// - /// - public QueryStringQueryDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) - { - DefaultOperatorValue = defaultOperator; - return Self; - } - - /// - /// - /// If true, enable position increments in queries constructed from a query_string search. - /// - /// - public QueryStringQueryDescriptor EnablePositionIncrements(bool? enablePositionIncrements = true) - { - EnablePositionIncrementsValue = enablePositionIncrements; - return Self; - } - - public QueryStringQueryDescriptor Escape(bool? escape = true) - { - EscapeValue = escape; - return Self; - } - - /// - /// - /// Array of fields to search. Supports wildcards (*). - /// - /// - public QueryStringQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// Maximum edit distance allowed for fuzzy matching. - /// - /// - public QueryStringQueryDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) - { - FuzzinessValue = fuzziness; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query expands for fuzzy matching. - /// - /// - public QueryStringQueryDescriptor FuzzyMaxExpansions(int? fuzzyMaxExpansions) - { - FuzzyMaxExpansionsValue = fuzzyMaxExpansions; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public QueryStringQueryDescriptor FuzzyPrefixLength(int? fuzzyPrefixLength) - { - FuzzyPrefixLengthValue = fuzzyPrefixLength; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public QueryStringQueryDescriptor FuzzyRewrite(string? fuzzyRewrite) - { - FuzzyRewriteValue = fuzzyRewrite; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public QueryStringQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text value for a numeric field, are ignored. - /// - /// - public QueryStringQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - public QueryStringQueryDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) - { - MaxDeterminizedStatesValue = maxDeterminizedStates; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public QueryStringQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Maximum number of positions allowed between matching tokens for phrases. - /// - /// - public QueryStringQueryDescriptor PhraseSlop(double? phraseSlop) - { - PhraseSlopValue = phraseSlop; - return Self; - } - - /// - /// - /// Query string you wish to parse and use for search. - /// - /// - public QueryStringQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public QueryStringQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Analyzer used to convert quoted text in the query string into tokens. - /// For quoted text, this parameter overrides the analyzer specified in the analyzer parameter. - /// - /// - public QueryStringQueryDescriptor QuoteAnalyzer(string? quoteAnalyzer) - { - QuoteAnalyzerValue = quoteAnalyzer; - return Self; - } - - /// - /// - /// Suffix appended to quoted text in the query string. - /// You can use this suffix to use a different analysis method for exact matches. - /// - /// - public QueryStringQueryDescriptor QuoteFieldSuffix(string? quoteFieldSuffix) - { - QuoteFieldSuffixValue = quoteFieldSuffix; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public QueryStringQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// How to combine the queries generated from the individual search terms in the resulting dis_max query. - /// - /// - public QueryStringQueryDescriptor TieBreaker(double? tieBreaker) - { - TieBreakerValue = tieBreaker; - return Self; - } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query string to UTC. - /// - /// - public QueryStringQueryDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - /// - /// - /// Determines how the query matches and scores documents. - /// - /// - public QueryStringQueryDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TextQueryType? type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowLeadingWildcardValue.HasValue) - { - writer.WritePropertyName("allow_leading_wildcard"); - writer.WriteBooleanValue(AllowLeadingWildcardValue.Value); - } - - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AnalyzeWildcardValue.HasValue) - { - writer.WritePropertyName("analyze_wildcard"); - writer.WriteBooleanValue(AnalyzeWildcardValue.Value); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DefaultFieldValue is not null) - { - writer.WritePropertyName("default_field"); - JsonSerializer.Serialize(writer, DefaultFieldValue, options); - } - - if (DefaultOperatorValue is not null) - { - writer.WritePropertyName("default_operator"); - JsonSerializer.Serialize(writer, DefaultOperatorValue, options); - } - - if (EnablePositionIncrementsValue.HasValue) - { - writer.WritePropertyName("enable_position_increments"); - writer.WriteBooleanValue(EnablePositionIncrementsValue.Value); - } - - if (EscapeValue.HasValue) - { - writer.WritePropertyName("escape"); - writer.WriteBooleanValue(EscapeValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FuzzinessValue is not null) - { - writer.WritePropertyName("fuzziness"); - JsonSerializer.Serialize(writer, FuzzinessValue, options); - } - - if (FuzzyMaxExpansionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_max_expansions"); - writer.WriteNumberValue(FuzzyMaxExpansionsValue.Value); - } - - if (FuzzyPrefixLengthValue.HasValue) - { - writer.WritePropertyName("fuzzy_prefix_length"); - writer.WriteNumberValue(FuzzyPrefixLengthValue.Value); - } - - if (!string.IsNullOrEmpty(FuzzyRewriteValue)) - { - writer.WritePropertyName("fuzzy_rewrite"); - writer.WriteStringValue(FuzzyRewriteValue); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MaxDeterminizedStatesValue.HasValue) - { - writer.WritePropertyName("max_determinized_states"); - writer.WriteNumberValue(MaxDeterminizedStatesValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (PhraseSlopValue.HasValue) - { - writer.WritePropertyName("phrase_slop"); - writer.WriteNumberValue(PhraseSlopValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(QuoteAnalyzerValue)) - { - writer.WritePropertyName("quote_analyzer"); - writer.WriteStringValue(QuoteAnalyzerValue); - } - - if (!string.IsNullOrEmpty(QuoteFieldSuffixValue)) - { - writer.WritePropertyName("quote_field_suffix"); - writer.WriteStringValue(QuoteFieldSuffixValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - if (TieBreakerValue.HasValue) - { - writer.WritePropertyName("tie_breaker"); - writer.WriteNumberValue(TieBreakerValue.Value); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - if (TypeValue is not null) - { - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs deleted file mode 100644 index 26d23cfaa5f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RandomScoreFunction.g.cs +++ /dev/null @@ -1,146 +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.QueryDsl; - -public sealed partial class RandomScoreFunction -{ - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("seed")] - public object? Seed { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScore(RandomScoreFunction randomScoreFunction) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScore.RandomScore(randomScoreFunction); -} - -public sealed partial class RandomScoreFunctionDescriptor : SerializableDescriptor> -{ - internal RandomScoreFunctionDescriptor(Action> configure) => configure.Invoke(this); - - public RandomScoreFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private object? SeedValue { get; set; } - - public RandomScoreFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - public RandomScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RandomScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RandomScoreFunctionDescriptor Seed(object? seed) - { - SeedValue = seed; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (SeedValue is not null) - { - writer.WritePropertyName("seed"); - JsonSerializer.Serialize(writer, SeedValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RandomScoreFunctionDescriptor : SerializableDescriptor -{ - internal RandomScoreFunctionDescriptor(Action configure) => configure.Invoke(this); - - public RandomScoreFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private object? SeedValue { get; set; } - - public RandomScoreFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - public RandomScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RandomScoreFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RandomScoreFunctionDescriptor Seed(object? seed) - { - SeedValue = seed; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (SeedValue is not null) - { - writer.WritePropertyName("seed"); - JsonSerializer.Serialize(writer, SeedValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs deleted file mode 100644 index 7d68b4606af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLinear.g.cs +++ /dev/null @@ -1,47 +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.QueryDsl; - -public sealed partial class RankFeatureFunctionLinear -{ -} - -public sealed partial class RankFeatureFunctionLinearDescriptor : SerializableDescriptor -{ - internal RankFeatureFunctionLinearDescriptor(Action configure) => configure.Invoke(this); - - public RankFeatureFunctionLinearDescriptor() : base() - { - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs deleted file mode 100644 index 76810800eff..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionLogarithm.g.cs +++ /dev/null @@ -1,69 +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.QueryDsl; - -public sealed partial class RankFeatureFunctionLogarithm -{ - /// - /// - /// Configurable scaling factor. - /// - /// - [JsonInclude, JsonPropertyName("scaling_factor")] - public float ScalingFactor { get; set; } -} - -public sealed partial class RankFeatureFunctionLogarithmDescriptor : SerializableDescriptor -{ - internal RankFeatureFunctionLogarithmDescriptor(Action configure) => configure.Invoke(this); - - public RankFeatureFunctionLogarithmDescriptor() : base() - { - } - - private float ScalingFactorValue { get; set; } - - /// - /// - /// Configurable scaling factor. - /// - /// - public RankFeatureFunctionLogarithmDescriptor ScalingFactor(float scalingFactor) - { - ScalingFactorValue = scalingFactor; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("scaling_factor"); - writer.WriteNumberValue(ScalingFactorValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs deleted file mode 100644 index 0e0669a440d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSaturation.g.cs +++ /dev/null @@ -1,73 +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.QueryDsl; - -public sealed partial class RankFeatureFunctionSaturation -{ - /// - /// - /// Configurable pivot value so that the result will be less than 0.5. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public float? Pivot { get; set; } -} - -public sealed partial class RankFeatureFunctionSaturationDescriptor : SerializableDescriptor -{ - internal RankFeatureFunctionSaturationDescriptor(Action configure) => configure.Invoke(this); - - public RankFeatureFunctionSaturationDescriptor() : base() - { - } - - private float? PivotValue { get; set; } - - /// - /// - /// Configurable pivot value so that the result will be less than 0.5. - /// - /// - public RankFeatureFunctionSaturationDescriptor Pivot(float? pivot) - { - PivotValue = pivot; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (PivotValue.HasValue) - { - writer.WritePropertyName("pivot"); - writer.WriteNumberValue(PivotValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs deleted file mode 100644 index 3a7adb94c43..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureFunctionSigmoid.g.cs +++ /dev/null @@ -1,91 +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.QueryDsl; - -public sealed partial class RankFeatureFunctionSigmoid -{ - /// - /// - /// Configurable Exponent. - /// - /// - [JsonInclude, JsonPropertyName("exponent")] - public float Exponent { get; set; } - - /// - /// - /// Configurable pivot value so that the result will be less than 0.5. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public float Pivot { get; set; } -} - -public sealed partial class RankFeatureFunctionSigmoidDescriptor : SerializableDescriptor -{ - internal RankFeatureFunctionSigmoidDescriptor(Action configure) => configure.Invoke(this); - - public RankFeatureFunctionSigmoidDescriptor() : base() - { - } - - private float ExponentValue { get; set; } - private float PivotValue { get; set; } - - /// - /// - /// Configurable Exponent. - /// - /// - public RankFeatureFunctionSigmoidDescriptor Exponent(float exponent) - { - ExponentValue = exponent; - return Self; - } - - /// - /// - /// Configurable pivot value so that the result will be less than 0.5. - /// - /// - public RankFeatureFunctionSigmoidDescriptor Pivot(float pivot) - { - PivotValue = pivot; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("exponent"); - writer.WriteNumberValue(ExponentValue); - writer.WritePropertyName("pivot"); - writer.WriteNumberValue(PivotValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs deleted file mode 100644 index d7261a71c85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RankFeatureQuery.g.cs +++ /dev/null @@ -1,642 +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.QueryDsl; - -public sealed partial class RankFeatureQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Linear function used to boost relevance scores based on the value of the rank feature field. - /// - /// - [JsonInclude, JsonPropertyName("linear")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinear? Linear { get; set; } - - /// - /// - /// Logarithmic function used to boost relevance scores based on the value of the rank feature field. - /// - /// - [JsonInclude, JsonPropertyName("log")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithm? Log { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Saturation function used to boost relevance scores based on the value of the rank feature field. - /// - /// - [JsonInclude, JsonPropertyName("saturation")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturation? Saturation { get; set; } - - /// - /// - /// Sigmoid function used to boost relevance scores based on the value of the rank feature field. - /// - /// - [JsonInclude, JsonPropertyName("sigmoid")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoid? Sigmoid { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(RankFeatureQuery rankFeatureQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.RankFeature(rankFeatureQuery); -} - -public sealed partial class RankFeatureQueryDescriptor : SerializableDescriptor> -{ - internal RankFeatureQueryDescriptor(Action> configure) => configure.Invoke(this); - - public RankFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinear? LinearValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinearDescriptor LinearDescriptor { get; set; } - private Action LinearDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithm? LogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithmDescriptor LogDescriptor { get; set; } - private Action LogDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturation? SaturationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturationDescriptor SaturationDescriptor { get; set; } - private Action SaturationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoid? SigmoidValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoidDescriptor SigmoidDescriptor { get; set; } - private Action SigmoidDescriptorAction { 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 RankFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - public RankFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - public RankFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - public RankFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Linear function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinear? linear) - { - LinearDescriptor = null; - LinearDescriptorAction = null; - LinearValue = linear; - return Self; - } - - public RankFeatureQueryDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinearDescriptor descriptor) - { - LinearValue = null; - LinearDescriptorAction = null; - LinearDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Linear(Action configure) - { - LinearValue = null; - LinearDescriptor = null; - LinearDescriptorAction = configure; - return Self; - } - - /// - /// - /// Logarithmic function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Log(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithm? log) - { - LogDescriptor = null; - LogDescriptorAction = null; - LogValue = log; - return Self; - } - - public RankFeatureQueryDescriptor Log(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithmDescriptor descriptor) - { - LogValue = null; - LogDescriptorAction = null; - LogDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Log(Action configure) - { - LogValue = null; - LogDescriptor = null; - LogDescriptorAction = configure; - return Self; - } - - public RankFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Saturation function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Saturation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturation? saturation) - { - SaturationDescriptor = null; - SaturationDescriptorAction = null; - SaturationValue = saturation; - return Self; - } - - public RankFeatureQueryDescriptor Saturation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturationDescriptor descriptor) - { - SaturationValue = null; - SaturationDescriptorAction = null; - SaturationDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Saturation(Action configure) - { - SaturationValue = null; - SaturationDescriptor = null; - SaturationDescriptorAction = configure; - return Self; - } - - /// - /// - /// Sigmoid function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Sigmoid(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoid? sigmoid) - { - SigmoidDescriptor = null; - SigmoidDescriptorAction = null; - SigmoidValue = sigmoid; - return Self; - } - - public RankFeatureQueryDescriptor Sigmoid(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoidDescriptor descriptor) - { - SigmoidValue = null; - SigmoidDescriptorAction = null; - SigmoidDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Sigmoid(Action configure) - { - SigmoidValue = null; - SigmoidDescriptor = null; - SigmoidDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LinearDescriptor is not null) - { - writer.WritePropertyName("linear"); - JsonSerializer.Serialize(writer, LinearDescriptor, options); - } - else if (LinearDescriptorAction is not null) - { - writer.WritePropertyName("linear"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinearDescriptor(LinearDescriptorAction), options); - } - else if (LinearValue is not null) - { - writer.WritePropertyName("linear"); - JsonSerializer.Serialize(writer, LinearValue, options); - } - - if (LogDescriptor is not null) - { - writer.WritePropertyName("log"); - JsonSerializer.Serialize(writer, LogDescriptor, options); - } - else if (LogDescriptorAction is not null) - { - writer.WritePropertyName("log"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithmDescriptor(LogDescriptorAction), options); - } - else if (LogValue is not null) - { - writer.WritePropertyName("log"); - JsonSerializer.Serialize(writer, LogValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SaturationDescriptor is not null) - { - writer.WritePropertyName("saturation"); - JsonSerializer.Serialize(writer, SaturationDescriptor, options); - } - else if (SaturationDescriptorAction is not null) - { - writer.WritePropertyName("saturation"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturationDescriptor(SaturationDescriptorAction), options); - } - else if (SaturationValue is not null) - { - writer.WritePropertyName("saturation"); - JsonSerializer.Serialize(writer, SaturationValue, options); - } - - if (SigmoidDescriptor is not null) - { - writer.WritePropertyName("sigmoid"); - JsonSerializer.Serialize(writer, SigmoidDescriptor, options); - } - else if (SigmoidDescriptorAction is not null) - { - writer.WritePropertyName("sigmoid"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoidDescriptor(SigmoidDescriptorAction), options); - } - else if (SigmoidValue is not null) - { - writer.WritePropertyName("sigmoid"); - JsonSerializer.Serialize(writer, SigmoidValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RankFeatureQueryDescriptor : SerializableDescriptor -{ - internal RankFeatureQueryDescriptor(Action configure) => configure.Invoke(this); - - public RankFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinear? LinearValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinearDescriptor LinearDescriptor { get; set; } - private Action LinearDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithm? LogValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithmDescriptor LogDescriptor { get; set; } - private Action LogDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturation? SaturationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturationDescriptor SaturationDescriptor { get; set; } - private Action SaturationDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoid? SigmoidValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoidDescriptor SigmoidDescriptor { get; set; } - private Action SigmoidDescriptorAction { 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 RankFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - public RankFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - public RankFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// rank_feature or rank_features field used to boost relevance scores. - /// - /// - public RankFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Linear function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinear? linear) - { - LinearDescriptor = null; - LinearDescriptorAction = null; - LinearValue = linear; - return Self; - } - - public RankFeatureQueryDescriptor Linear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinearDescriptor descriptor) - { - LinearValue = null; - LinearDescriptorAction = null; - LinearDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Linear(Action configure) - { - LinearValue = null; - LinearDescriptor = null; - LinearDescriptorAction = configure; - return Self; - } - - /// - /// - /// Logarithmic function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Log(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithm? log) - { - LogDescriptor = null; - LogDescriptorAction = null; - LogValue = log; - return Self; - } - - public RankFeatureQueryDescriptor Log(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithmDescriptor descriptor) - { - LogValue = null; - LogDescriptorAction = null; - LogDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Log(Action configure) - { - LogValue = null; - LogDescriptor = null; - LogDescriptorAction = configure; - return Self; - } - - public RankFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Saturation function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Saturation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturation? saturation) - { - SaturationDescriptor = null; - SaturationDescriptorAction = null; - SaturationValue = saturation; - return Self; - } - - public RankFeatureQueryDescriptor Saturation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturationDescriptor descriptor) - { - SaturationValue = null; - SaturationDescriptorAction = null; - SaturationDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Saturation(Action configure) - { - SaturationValue = null; - SaturationDescriptor = null; - SaturationDescriptorAction = configure; - return Self; - } - - /// - /// - /// Sigmoid function used to boost relevance scores based on the value of the rank feature field. - /// - /// - public RankFeatureQueryDescriptor Sigmoid(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoid? sigmoid) - { - SigmoidDescriptor = null; - SigmoidDescriptorAction = null; - SigmoidValue = sigmoid; - return Self; - } - - public RankFeatureQueryDescriptor Sigmoid(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoidDescriptor descriptor) - { - SigmoidValue = null; - SigmoidDescriptorAction = null; - SigmoidDescriptor = descriptor; - return Self; - } - - public RankFeatureQueryDescriptor Sigmoid(Action configure) - { - SigmoidValue = null; - SigmoidDescriptor = null; - SigmoidDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (LinearDescriptor is not null) - { - writer.WritePropertyName("linear"); - JsonSerializer.Serialize(writer, LinearDescriptor, options); - } - else if (LinearDescriptorAction is not null) - { - writer.WritePropertyName("linear"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLinearDescriptor(LinearDescriptorAction), options); - } - else if (LinearValue is not null) - { - writer.WritePropertyName("linear"); - JsonSerializer.Serialize(writer, LinearValue, options); - } - - if (LogDescriptor is not null) - { - writer.WritePropertyName("log"); - JsonSerializer.Serialize(writer, LogDescriptor, options); - } - else if (LogDescriptorAction is not null) - { - writer.WritePropertyName("log"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionLogarithmDescriptor(LogDescriptorAction), options); - } - else if (LogValue is not null) - { - writer.WritePropertyName("log"); - JsonSerializer.Serialize(writer, LogValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SaturationDescriptor is not null) - { - writer.WritePropertyName("saturation"); - JsonSerializer.Serialize(writer, SaturationDescriptor, options); - } - else if (SaturationDescriptorAction is not null) - { - writer.WritePropertyName("saturation"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSaturationDescriptor(SaturationDescriptorAction), options); - } - else if (SaturationValue is not null) - { - writer.WritePropertyName("saturation"); - JsonSerializer.Serialize(writer, SaturationValue, options); - } - - if (SigmoidDescriptor is not null) - { - writer.WritePropertyName("sigmoid"); - JsonSerializer.Serialize(writer, SigmoidDescriptor, options); - } - else if (SigmoidDescriptorAction is not null) - { - writer.WritePropertyName("sigmoid"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RankFeatureFunctionSigmoidDescriptor(SigmoidDescriptorAction), options); - } - else if (SigmoidValue is not null) - { - writer.WritePropertyName("sigmoid"); - JsonSerializer.Serialize(writer, SigmoidValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RegexpQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RegexpQuery.g.cs deleted file mode 100644 index 7f6db6dfaec..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RegexpQuery.g.cs +++ /dev/null @@ -1,526 +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.QueryDsl; - -internal sealed partial class RegexpQueryConverter : JsonConverter -{ - public override RegexpQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new RegexpQuery(fieldName); - 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 == "case_insensitive") - { - variant.CaseInsensitive = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "flags") - { - variant.Flags = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_determinized_states") - { - variant.MaxDeterminizedStates = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rewrite") - { - variant.Rewrite = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "value") - { - variant.Value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, RegexpQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize RegexpQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.CaseInsensitive.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(value.CaseInsensitive.Value); - } - - if (!string.IsNullOrEmpty(value.Flags)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(value.Flags); - } - - if (value.MaxDeterminizedStates.HasValue) - { - writer.WritePropertyName("max_determinized_states"); - writer.WriteNumberValue(value.MaxDeterminizedStates.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (!string.IsNullOrEmpty(value.Rewrite)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(value.Rewrite); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(value.Value); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(RegexpQueryConverter))] -public sealed partial class RegexpQuery -{ - public RegexpQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Allows case insensitive matching of the regular expression value with the indexed field values when set to true. - /// When false, case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public bool? CaseInsensitive { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Enables optional operators for the regular expression. - /// - /// - public string? Flags { get; set; } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - public int? MaxDeterminizedStates { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public string? Rewrite { get; set; } - - /// - /// - /// Regular expression for terms you wish to find in the provided field. - /// - /// - public string Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(RegexpQuery regexpQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Regexp(regexpQuery); -} - -public sealed partial class RegexpQueryDescriptor : SerializableDescriptor> -{ - internal RegexpQueryDescriptor(Action> configure) => configure.Invoke(this); - - public RegexpQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FlagsValue { get; set; } - private int? MaxDeterminizedStatesValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private string ValueValue { 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 RegexpQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows case insensitive matching of the regular expression value with the indexed field values when set to true. - /// When false, case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public RegexpQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public RegexpQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public RegexpQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RegexpQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Enables optional operators for the regular expression. - /// - /// - public RegexpQueryDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - public RegexpQueryDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) - { - MaxDeterminizedStatesValue = maxDeterminizedStates; - return Self; - } - - public RegexpQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public RegexpQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Regular expression for terms you wish to find in the provided field. - /// - /// - public RegexpQueryDescriptor Value(string value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - - if (MaxDeterminizedStatesValue.HasValue) - { - writer.WritePropertyName("max_determinized_states"); - writer.WriteNumberValue(MaxDeterminizedStatesValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class RegexpQueryDescriptor : SerializableDescriptor -{ - internal RegexpQueryDescriptor(Action configure) => configure.Invoke(this); - - public RegexpQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FlagsValue { get; set; } - private int? MaxDeterminizedStatesValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private string ValueValue { 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 RegexpQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows case insensitive matching of the regular expression value with the indexed field values when set to true. - /// When false, case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public RegexpQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public RegexpQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public RegexpQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public RegexpQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Enables optional operators for the regular expression. - /// - /// - public RegexpQueryDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - - /// - /// - /// Maximum number of automaton states required for the query. - /// - /// - public RegexpQueryDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) - { - MaxDeterminizedStatesValue = maxDeterminizedStates; - return Self; - } - - public RegexpQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public RegexpQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Regular expression for terms you wish to find in the provided field. - /// - /// - public RegexpQueryDescriptor Value(string value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - - if (MaxDeterminizedStatesValue.HasValue) - { - writer.WritePropertyName("max_determinized_states"); - writer.WriteNumberValue(MaxDeterminizedStatesValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RuleQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RuleQuery.g.cs deleted file mode 100644 index 95406611384..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/RuleQuery.g.cs +++ /dev/null @@ -1,274 +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.QueryDsl; - -public sealed partial class RuleQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("match_criteria")] - public object MatchCriteria { get; set; } - [JsonInclude, JsonPropertyName("organic")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Organic { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - [JsonInclude, JsonPropertyName("ruleset_ids")] - public ICollection RulesetIds { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(RuleQuery ruleQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Rule(ruleQuery); -} - -public sealed partial class RuleQueryDescriptor : SerializableDescriptor> -{ - internal RuleQueryDescriptor(Action> configure) => configure.Invoke(this); - - public RuleQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private object MatchCriteriaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query OrganicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor OrganicDescriptor { get; set; } - private Action> OrganicDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private ICollection RulesetIdsValue { 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 RuleQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public RuleQueryDescriptor MatchCriteria(object matchCriteria) - { - MatchCriteriaValue = matchCriteria; - return Self; - } - - public RuleQueryDescriptor Organic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query organic) - { - OrganicDescriptor = null; - OrganicDescriptorAction = null; - OrganicValue = organic; - return Self; - } - - public RuleQueryDescriptor Organic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - OrganicValue = null; - OrganicDescriptorAction = null; - OrganicDescriptor = descriptor; - return Self; - } - - public RuleQueryDescriptor Organic(Action> configure) - { - OrganicValue = null; - OrganicDescriptor = null; - OrganicDescriptorAction = configure; - return Self; - } - - public RuleQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public RuleQueryDescriptor RulesetIds(ICollection rulesetIds) - { - RulesetIdsValue = rulesetIds; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("match_criteria"); - JsonSerializer.Serialize(writer, MatchCriteriaValue, options); - if (OrganicDescriptor is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, OrganicDescriptor, options); - } - else if (OrganicDescriptorAction is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(OrganicDescriptorAction), options); - } - else - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, OrganicValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("ruleset_ids"); - JsonSerializer.Serialize(writer, RulesetIdsValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class RuleQueryDescriptor : SerializableDescriptor -{ - internal RuleQueryDescriptor(Action configure) => configure.Invoke(this); - - public RuleQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private object MatchCriteriaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query OrganicValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor OrganicDescriptor { get; set; } - private Action OrganicDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - private ICollection RulesetIdsValue { 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 RuleQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public RuleQueryDescriptor MatchCriteria(object matchCriteria) - { - MatchCriteriaValue = matchCriteria; - return Self; - } - - public RuleQueryDescriptor Organic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query organic) - { - OrganicDescriptor = null; - OrganicDescriptorAction = null; - OrganicValue = organic; - return Self; - } - - public RuleQueryDescriptor Organic(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - OrganicValue = null; - OrganicDescriptorAction = null; - OrganicDescriptor = descriptor; - return Self; - } - - public RuleQueryDescriptor Organic(Action configure) - { - OrganicValue = null; - OrganicDescriptor = null; - OrganicDescriptorAction = configure; - return Self; - } - - public RuleQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public RuleQueryDescriptor RulesetIds(ICollection rulesetIds) - { - RulesetIdsValue = rulesetIds; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("match_criteria"); - JsonSerializer.Serialize(writer, MatchCriteriaValue, options); - if (OrganicDescriptor is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, OrganicDescriptor, options); - } - else if (OrganicDescriptorAction is not null) - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(OrganicDescriptorAction), options); - } - else - { - writer.WritePropertyName("organic"); - JsonSerializer.Serialize(writer, OrganicValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("ruleset_ids"); - JsonSerializer.Serialize(writer, RulesetIdsValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 6651d241d68..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptQuery.g.cs +++ /dev/null @@ -1,154 +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.QueryDsl; - -public sealed partial class ScriptQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Contains a script to run as a query. - /// This script must return a boolean value, true or false. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(ScriptQuery scriptQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Script(scriptQuery); -} - -public sealed partial class ScriptQueryDescriptor : SerializableDescriptor -{ - internal ScriptQueryDescriptor(Action configure) => configure.Invoke(this); - - 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. - /// - /// - public ScriptQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public ScriptQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Contains a script to run as a query. - /// This script must return a boolean value, true or false. - /// - /// - 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(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - 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 deleted file mode 100644 index 40d2f1244ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreFunction.g.cs +++ /dev/null @@ -1,105 +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.QueryDsl; - -public sealed partial class ScriptScoreFunction -{ - /// - /// - /// A script that computes a score. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScore(ScriptScoreFunction scriptScoreFunction) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FunctionScore.ScriptScore(scriptScoreFunction); -} - -public sealed partial class ScriptScoreFunctionDescriptor : SerializableDescriptor -{ - internal ScriptScoreFunctionDescriptor(Action configure) => configure.Invoke(this); - - 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(); - 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 deleted file mode 100644 index 3b0647afb0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ScriptScoreQuery.g.cs +++ /dev/null @@ -1,401 +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.QueryDsl; - -public sealed partial class ScriptScoreQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Documents with a score lower than this floating point number are excluded from the search results. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public float? MinScore { get; set; } - - /// - /// - /// Query used to return documents. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Script used to compute the score of documents returned by the query. - /// Important: final relevance scores from the script_score query cannot be negative. - /// - /// - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(ScriptScoreQuery scriptScoreQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.ScriptScore(scriptScoreQuery); -} - -public sealed partial class ScriptScoreQueryDescriptor : SerializableDescriptor> -{ - internal ScriptScoreQueryDescriptor(Action> configure) => configure.Invoke(this); - - public ScriptScoreQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private float? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - 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. - /// - /// - public ScriptScoreQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Documents with a score lower than this floating point number are excluded from the search results. - /// - /// - public ScriptScoreQueryDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Query used to return documents. - /// - /// - public ScriptScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ScriptScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ScriptScoreQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public ScriptScoreQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Script used to compute the score of documents returned by the query. - /// Important: final relevance scores from the script_score query cannot be negative. - /// - /// - 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(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - 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(); - } -} - -public sealed partial class ScriptScoreQueryDescriptor : SerializableDescriptor -{ - internal ScriptScoreQueryDescriptor(Action configure) => configure.Invoke(this); - - public ScriptScoreQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private float? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - 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. - /// - /// - public ScriptScoreQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Documents with a score lower than this floating point number are excluded from the search results. - /// - /// - public ScriptScoreQueryDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Query used to return documents. - /// - /// - public ScriptScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public ScriptScoreQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public ScriptScoreQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public ScriptScoreQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Script used to compute the score of documents returned by the query. - /// Important: final relevance scores from the script_score query cannot be negative. - /// - /// - 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(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - 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/SemanticQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SemanticQuery.g.cs deleted file mode 100644 index 7c0c761d25f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SemanticQuery.g.cs +++ /dev/null @@ -1,140 +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.QueryDsl; - -public sealed partial class SemanticQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The field to query, which must be a semantic_text field type - /// - /// - [JsonInclude, JsonPropertyName("field")] - public string Field { get; set; } - - /// - /// - /// The query text - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SemanticQuery semanticQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Semantic(semanticQuery); -} - -public sealed partial class SemanticQueryDescriptor : SerializableDescriptor -{ - internal SemanticQueryDescriptor(Action configure) => configure.Invoke(this); - - public SemanticQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string FieldValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { 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 SemanticQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The field to query, which must be a semantic_text field type - /// - /// - public SemanticQueryDescriptor Field(string field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The query text - /// - /// - public SemanticQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public SemanticQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - 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/ShapeFieldQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs deleted file mode 100644 index ece4254d153..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeFieldQuery.g.cs +++ /dev/null @@ -1,255 +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.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 deleted file mode 100644 index 4d2e827716e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/ShapeQuery.g.cs +++ /dev/null @@ -1,372 +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.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/SimpleQueryStringQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs deleted file mode 100644 index a8928659067..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs +++ /dev/null @@ -1,723 +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.QueryDsl; - -public sealed partial class SimpleQueryStringQuery -{ - /// - /// - /// Analyzer used to convert text in the query string into tokens. - /// - /// - [JsonInclude, JsonPropertyName("analyzer")] - public string? Analyzer { get; set; } - - /// - /// - /// If true, the query attempts to analyze wildcard terms in the query string. - /// - /// - [JsonInclude, JsonPropertyName("analyze_wildcard")] - public bool? AnalyzeWildcard { get; set; } - - /// - /// - /// If true, the parser creates a match_phrase query for each multi-position token. - /// - /// - [JsonInclude, JsonPropertyName("auto_generate_synonyms_phrase_query")] - public bool? AutoGenerateSynonymsPhraseQuery { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Default boolean logic used to interpret text in the query string if no operators are specified. - /// - /// - [JsonInclude, JsonPropertyName("default_operator")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get; set; } - - /// - /// - /// Array of fields you wish to search. - /// Accepts wildcard expressions. - /// You also can boost relevance scores for matches to particular fields using a caret (^) notation. - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } - - /// - /// - /// List of enabled operators for the simple query string syntax. - /// - /// - [JsonInclude, JsonPropertyName("flags")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringFlag? Flags { get; set; } - - /// - /// - /// Maximum number of terms to which the query expands for fuzzy matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_max_expansions")] - public int? FuzzyMaxExpansions { get; set; } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_prefix_length")] - public int? FuzzyPrefixLength { get; set; } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - [JsonInclude, JsonPropertyName("fuzzy_transpositions")] - public bool? FuzzyTranspositions { get; set; } - - /// - /// - /// If true, format-based errors, such as providing a text value for a numeric field, are ignored. - /// - /// - [JsonInclude, JsonPropertyName("lenient")] - public bool? Lenient { get; set; } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - [JsonInclude, JsonPropertyName("minimum_should_match")] - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Query string in the simple query string syntax you wish to parse and use for search. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Suffix appended to quoted text in the query string. - /// - /// - [JsonInclude, JsonPropertyName("quote_field_suffix")] - public string? QuoteFieldSuffix { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SimpleQueryStringQuery simpleQueryStringQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SimpleQueryString(simpleQueryStringQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(SimpleQueryStringQuery simpleQueryStringQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.SimpleQueryString(simpleQueryStringQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(SimpleQueryStringQuery simpleQueryStringQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.SimpleQueryString(simpleQueryStringQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(SimpleQueryStringQuery simpleQueryStringQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.SimpleQueryString(simpleQueryStringQuery); -} - -public sealed partial class SimpleQueryStringQueryDescriptor : SerializableDescriptor> -{ - internal SimpleQueryStringQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SimpleQueryStringQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private bool? AnalyzeWildcardValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperatorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringFlag? FlagsValue { get; set; } - private int? FuzzyMaxExpansionsValue { get; set; } - private int? FuzzyPrefixLengthValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private string? QuoteFieldSuffixValue { get; set; } - - /// - /// - /// Analyzer used to convert text in the query string into tokens. - /// - /// - public SimpleQueryStringQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, the query attempts to analyze wildcard terms in the query string. - /// - /// - public SimpleQueryStringQueryDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) - { - AnalyzeWildcardValue = analyzeWildcard; - return Self; - } - - /// - /// - /// If true, the parser creates a match_phrase query for each multi-position token. - /// - /// - public SimpleQueryStringQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 SimpleQueryStringQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Default boolean logic used to interpret text in the query string if no operators are specified. - /// - /// - public SimpleQueryStringQueryDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) - { - DefaultOperatorValue = defaultOperator; - return Self; - } - - /// - /// - /// Array of fields you wish to search. - /// Accepts wildcard expressions. - /// You also can boost relevance scores for matches to particular fields using a caret (^) notation. - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public SimpleQueryStringQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// List of enabled operators for the simple query string syntax. - /// - /// - public SimpleQueryStringQueryDescriptor Flags(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringFlag? flags) - { - FlagsValue = flags; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query expands for fuzzy matching. - /// - /// - public SimpleQueryStringQueryDescriptor FuzzyMaxExpansions(int? fuzzyMaxExpansions) - { - FuzzyMaxExpansionsValue = fuzzyMaxExpansions; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public SimpleQueryStringQueryDescriptor FuzzyPrefixLength(int? fuzzyPrefixLength) - { - FuzzyPrefixLengthValue = fuzzyPrefixLength; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public SimpleQueryStringQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text value for a numeric field, are ignored. - /// - /// - public SimpleQueryStringQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public SimpleQueryStringQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Query string in the simple query string syntax you wish to parse and use for search. - /// - /// - public SimpleQueryStringQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public SimpleQueryStringQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Suffix appended to quoted text in the query string. - /// - /// - public SimpleQueryStringQueryDescriptor QuoteFieldSuffix(string? quoteFieldSuffix) - { - QuoteFieldSuffixValue = quoteFieldSuffix; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AnalyzeWildcardValue.HasValue) - { - writer.WritePropertyName("analyze_wildcard"); - writer.WriteBooleanValue(AnalyzeWildcardValue.Value); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DefaultOperatorValue is not null) - { - writer.WritePropertyName("default_operator"); - JsonSerializer.Serialize(writer, DefaultOperatorValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FlagsValue is not null) - { - writer.WritePropertyName("flags"); - JsonSerializer.Serialize(writer, FlagsValue, options); - } - - if (FuzzyMaxExpansionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_max_expansions"); - writer.WriteNumberValue(FuzzyMaxExpansionsValue.Value); - } - - if (FuzzyPrefixLengthValue.HasValue) - { - writer.WritePropertyName("fuzzy_prefix_length"); - writer.WriteNumberValue(FuzzyPrefixLengthValue.Value); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(QuoteFieldSuffixValue)) - { - writer.WritePropertyName("quote_field_suffix"); - writer.WriteStringValue(QuoteFieldSuffixValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SimpleQueryStringQueryDescriptor : SerializableDescriptor -{ - internal SimpleQueryStringQueryDescriptor(Action configure) => configure.Invoke(this); - - public SimpleQueryStringQueryDescriptor() : base() - { - } - - private string? AnalyzerValue { get; set; } - private bool? AnalyzeWildcardValue { get; set; } - private bool? AutoGenerateSynonymsPhraseQueryValue { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperatorValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? FieldsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringFlag? FlagsValue { get; set; } - private int? FuzzyMaxExpansionsValue { get; set; } - private int? FuzzyPrefixLengthValue { get; set; } - private bool? FuzzyTranspositionsValue { get; set; } - private bool? LenientValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { get; set; } - private string? QuoteFieldSuffixValue { get; set; } - - /// - /// - /// Analyzer used to convert text in the query string into tokens. - /// - /// - public SimpleQueryStringQueryDescriptor Analyzer(string? analyzer) - { - AnalyzerValue = analyzer; - return Self; - } - - /// - /// - /// If true, the query attempts to analyze wildcard terms in the query string. - /// - /// - public SimpleQueryStringQueryDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) - { - AnalyzeWildcardValue = analyzeWildcard; - return Self; - } - - /// - /// - /// If true, the parser creates a match_phrase query for each multi-position token. - /// - /// - public SimpleQueryStringQueryDescriptor AutoGenerateSynonymsPhraseQuery(bool? autoGenerateSynonymsPhraseQuery = true) - { - AutoGenerateSynonymsPhraseQueryValue = autoGenerateSynonymsPhraseQuery; - return Self; - } - - /// - /// - /// 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 SimpleQueryStringQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Default boolean logic used to interpret text in the query string if no operators are specified. - /// - /// - public SimpleQueryStringQueryDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) - { - DefaultOperatorValue = defaultOperator; - return Self; - } - - /// - /// - /// Array of fields you wish to search. - /// Accepts wildcard expressions. - /// You also can boost relevance scores for matches to particular fields using a caret (^) notation. - /// Defaults to the index.query.default_field index setting, which has a default value of *. - /// - /// - public SimpleQueryStringQueryDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) - { - FieldsValue = fields; - return Self; - } - - /// - /// - /// List of enabled operators for the simple query string syntax. - /// - /// - public SimpleQueryStringQueryDescriptor Flags(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringFlag? flags) - { - FlagsValue = flags; - return Self; - } - - /// - /// - /// Maximum number of terms to which the query expands for fuzzy matching. - /// - /// - public SimpleQueryStringQueryDescriptor FuzzyMaxExpansions(int? fuzzyMaxExpansions) - { - FuzzyMaxExpansionsValue = fuzzyMaxExpansions; - return Self; - } - - /// - /// - /// Number of beginning characters left unchanged for fuzzy matching. - /// - /// - public SimpleQueryStringQueryDescriptor FuzzyPrefixLength(int? fuzzyPrefixLength) - { - FuzzyPrefixLengthValue = fuzzyPrefixLength; - return Self; - } - - /// - /// - /// If true, edits for fuzzy matching include transpositions of two adjacent characters (for example, ab to ba). - /// - /// - public SimpleQueryStringQueryDescriptor FuzzyTranspositions(bool? fuzzyTranspositions = true) - { - FuzzyTranspositionsValue = fuzzyTranspositions; - return Self; - } - - /// - /// - /// If true, format-based errors, such as providing a text value for a numeric field, are ignored. - /// - /// - public SimpleQueryStringQueryDescriptor Lenient(bool? lenient = true) - { - LenientValue = lenient; - return Self; - } - - /// - /// - /// Minimum number of clauses that must match for a document to be returned. - /// - /// - public SimpleQueryStringQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Query string in the simple query string syntax you wish to parse and use for search. - /// - /// - public SimpleQueryStringQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public SimpleQueryStringQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Suffix appended to quoted text in the query string. - /// - /// - public SimpleQueryStringQueryDescriptor QuoteFieldSuffix(string? quoteFieldSuffix) - { - QuoteFieldSuffixValue = quoteFieldSuffix; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(AnalyzerValue)) - { - writer.WritePropertyName("analyzer"); - writer.WriteStringValue(AnalyzerValue); - } - - if (AnalyzeWildcardValue.HasValue) - { - writer.WritePropertyName("analyze_wildcard"); - writer.WriteBooleanValue(AnalyzeWildcardValue.Value); - } - - if (AutoGenerateSynonymsPhraseQueryValue.HasValue) - { - writer.WritePropertyName("auto_generate_synonyms_phrase_query"); - writer.WriteBooleanValue(AutoGenerateSynonymsPhraseQueryValue.Value); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DefaultOperatorValue is not null) - { - writer.WritePropertyName("default_operator"); - JsonSerializer.Serialize(writer, DefaultOperatorValue, options); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (FlagsValue is not null) - { - writer.WritePropertyName("flags"); - JsonSerializer.Serialize(writer, FlagsValue, options); - } - - if (FuzzyMaxExpansionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_max_expansions"); - writer.WriteNumberValue(FuzzyMaxExpansionsValue.Value); - } - - if (FuzzyPrefixLengthValue.HasValue) - { - writer.WritePropertyName("fuzzy_prefix_length"); - writer.WriteNumberValue(FuzzyPrefixLengthValue.Value); - } - - if (FuzzyTranspositionsValue.HasValue) - { - writer.WritePropertyName("fuzzy_transpositions"); - writer.WriteBooleanValue(FuzzyTranspositionsValue.Value); - } - - if (LenientValue.HasValue) - { - writer.WritePropertyName("lenient"); - writer.WriteBooleanValue(LenientValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(QuoteFieldSuffixValue)) - { - writer.WritePropertyName("quote_field_suffix"); - writer.WriteStringValue(QuoteFieldSuffixValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs deleted file mode 100644 index 0f87c6badd4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanContainingQuery.g.cs +++ /dev/null @@ -1,361 +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.QueryDsl; - -public sealed partial class SpanContainingQuery -{ - /// - /// - /// Can be any span query. - /// Matching spans from big that contain matches from little are returned. - /// - /// - [JsonInclude, JsonPropertyName("big")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Big { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Can be any span query. - /// Matching spans from big that contain matches from little are returned. - /// - /// - [JsonInclude, JsonPropertyName("little")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Little { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanContainingQuery spanContainingQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanContaining(spanContainingQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanContainingQuery spanContainingQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanContaining(spanContainingQuery); -} - -public sealed partial class SpanContainingQueryDescriptor : SerializableDescriptor> -{ - internal SpanContainingQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanContainingQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery BigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor BigDescriptor { get; set; } - private Action> BigDescriptorAction { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery LittleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor LittleDescriptor { get; set; } - private Action> LittleDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - - /// - /// - /// Can be any span query. - /// Matching spans from big that contain matches from little are returned. - /// - /// - public SpanContainingQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery big) - { - BigDescriptor = null; - BigDescriptorAction = null; - BigValue = big; - return Self; - } - - public SpanContainingQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - BigValue = null; - BigDescriptorAction = null; - BigDescriptor = descriptor; - return Self; - } - - public SpanContainingQueryDescriptor Big(Action> configure) - { - BigValue = null; - BigDescriptor = null; - BigDescriptorAction = configure; - return Self; - } - - /// - /// - /// 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 SpanContainingQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Can be any span query. - /// Matching spans from big that contain matches from little are returned. - /// - /// - public SpanContainingQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery little) - { - LittleDescriptor = null; - LittleDescriptorAction = null; - LittleValue = little; - return Self; - } - - public SpanContainingQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - LittleValue = null; - LittleDescriptorAction = null; - LittleDescriptor = descriptor; - return Self; - } - - public SpanContainingQueryDescriptor Little(Action> configure) - { - LittleValue = null; - LittleDescriptor = null; - LittleDescriptorAction = configure; - return Self; - } - - public SpanContainingQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BigDescriptor is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigDescriptor, options); - } - else if (BigDescriptorAction is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(BigDescriptorAction), options); - } - else - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (LittleDescriptor is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleDescriptor, options); - } - else if (LittleDescriptorAction is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(LittleDescriptorAction), options); - } - else - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanContainingQueryDescriptor : SerializableDescriptor -{ - internal SpanContainingQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanContainingQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery BigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor BigDescriptor { get; set; } - private Action BigDescriptorAction { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery LittleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor LittleDescriptor { get; set; } - private Action LittleDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - - /// - /// - /// Can be any span query. - /// Matching spans from big that contain matches from little are returned. - /// - /// - public SpanContainingQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery big) - { - BigDescriptor = null; - BigDescriptorAction = null; - BigValue = big; - return Self; - } - - public SpanContainingQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - BigValue = null; - BigDescriptorAction = null; - BigDescriptor = descriptor; - return Self; - } - - public SpanContainingQueryDescriptor Big(Action configure) - { - BigValue = null; - BigDescriptor = null; - BigDescriptorAction = configure; - return Self; - } - - /// - /// - /// 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 SpanContainingQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Can be any span query. - /// Matching spans from big that contain matches from little are returned. - /// - /// - public SpanContainingQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery little) - { - LittleDescriptor = null; - LittleDescriptorAction = null; - LittleValue = little; - return Self; - } - - public SpanContainingQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - LittleValue = null; - LittleDescriptorAction = null; - LittleDescriptor = descriptor; - return Self; - } - - public SpanContainingQueryDescriptor Little(Action configure) - { - LittleValue = null; - LittleDescriptor = null; - LittleDescriptorAction = configure; - return Self; - } - - public SpanContainingQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BigDescriptor is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigDescriptor, options); - } - else if (BigDescriptorAction is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(BigDescriptorAction), options); - } - else - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (LittleDescriptor is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleDescriptor, options); - } - else if (LittleDescriptorAction is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(LittleDescriptorAction), options); - } - else - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleValue, options); - } - - 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/SpanFieldMaskingQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs deleted file mode 100644 index 88681550921..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanFieldMaskingQuery.g.cs +++ /dev/null @@ -1,279 +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.QueryDsl; - -public sealed partial class SpanFieldMaskingQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanFieldMaskingQuery spanFieldMaskingQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanFieldMasking(spanFieldMaskingQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanFieldMaskingQuery spanFieldMaskingQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanFieldMasking(spanFieldMaskingQuery); -} - -public sealed partial class SpanFieldMaskingQueryDescriptor : SerializableDescriptor> -{ - internal SpanFieldMaskingQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanFieldMaskingQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private string? QueryNameValue { 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 SpanFieldMaskingQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SpanFieldMaskingQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanFieldMaskingQueryDescriptor : SerializableDescriptor -{ - internal SpanFieldMaskingQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanFieldMaskingQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private string? QueryNameValue { 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 SpanFieldMaskingQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SpanFieldMaskingQueryDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - public SpanFieldMaskingQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(QueryDescriptorAction), options); - } - else - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - 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/SpanFirstQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs deleted file mode 100644 index 312e93bd1ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanFirstQuery.g.cs +++ /dev/null @@ -1,287 +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.QueryDsl; - -public sealed partial class SpanFirstQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Controls the maximum end position permitted in a match. - /// - /// - [JsonInclude, JsonPropertyName("end")] - public int End { get; set; } - - /// - /// - /// Can be any other span type query. - /// - /// - [JsonInclude, JsonPropertyName("match")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Match { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanFirstQuery spanFirstQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanFirst(spanFirstQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanFirstQuery spanFirstQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanFirst(spanFirstQuery); -} - -public sealed partial class SpanFirstQueryDescriptor : SerializableDescriptor> -{ - internal SpanFirstQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanFirstQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private int EndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery MatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor MatchDescriptor { get; set; } - private Action> MatchDescriptorAction { get; set; } - private string? QueryNameValue { 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 SpanFirstQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Controls the maximum end position permitted in a match. - /// - /// - public SpanFirstQueryDescriptor End(int end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Can be any other span type query. - /// - /// - public SpanFirstQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public SpanFirstQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public SpanFirstQueryDescriptor Match(Action> configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - public SpanFirstQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("end"); - writer.WriteNumberValue(EndValue); - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(MatchDescriptorAction), options); - } - else - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanFirstQueryDescriptor : SerializableDescriptor -{ - internal SpanFirstQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanFirstQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private int EndValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery MatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor MatchDescriptor { get; set; } - private Action MatchDescriptorAction { get; set; } - private string? QueryNameValue { 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 SpanFirstQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Controls the maximum end position permitted in a match. - /// - /// - public SpanFirstQueryDescriptor End(int end) - { - EndValue = end; - return Self; - } - - /// - /// - /// Can be any other span type query. - /// - /// - public SpanFirstQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public SpanFirstQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public SpanFirstQueryDescriptor Match(Action configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - public SpanFirstQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("end"); - writer.WriteNumberValue(EndValue); - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(MatchDescriptorAction), options); - } - else - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - 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/SpanMultiTermQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs deleted file mode 100644 index e4b75dafbc7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanMultiTermQuery.g.cs +++ /dev/null @@ -1,251 +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.QueryDsl; - -public sealed partial class SpanMultiTermQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query). - /// - /// - [JsonInclude, JsonPropertyName("match")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query Match { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanMultiTermQuery spanMultiTermQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanMulti(spanMultiTermQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanMultiTermQuery spanMultiTermQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanMulti(spanMultiTermQuery); -} - -public sealed partial class SpanMultiTermQueryDescriptor : SerializableDescriptor> -{ - internal SpanMultiTermQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanMultiTermQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query MatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor MatchDescriptor { get; set; } - private Action> MatchDescriptorAction { get; set; } - private string? QueryNameValue { 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 SpanMultiTermQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query). - /// - /// - public SpanMultiTermQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public SpanMultiTermQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public SpanMultiTermQueryDescriptor Match(Action> configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - public SpanMultiTermQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(MatchDescriptorAction), options); - } - else - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanMultiTermQueryDescriptor : SerializableDescriptor -{ - internal SpanMultiTermQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanMultiTermQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query MatchValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor MatchDescriptor { get; set; } - private Action MatchDescriptorAction { get; set; } - private string? QueryNameValue { 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 SpanMultiTermQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Should be a multi term query (one of wildcard, fuzzy, prefix, range, or regexp query). - /// - /// - public SpanMultiTermQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query match) - { - MatchDescriptor = null; - MatchDescriptorAction = null; - MatchValue = match; - return Self; - } - - public SpanMultiTermQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - MatchValue = null; - MatchDescriptorAction = null; - MatchDescriptor = descriptor; - return Self; - } - - public SpanMultiTermQueryDescriptor Match(Action configure) - { - MatchValue = null; - MatchDescriptor = null; - MatchDescriptorAction = configure; - return Self; - } - - public SpanMultiTermQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MatchDescriptor is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchDescriptor, options); - } - else if (MatchDescriptorAction is not null) - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(MatchDescriptorAction), options); - } - else - { - writer.WritePropertyName("match"); - JsonSerializer.Serialize(writer, MatchValue, options); - } - - 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/SpanNearQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNearQuery.g.cs deleted file mode 100644 index 46e595b09c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNearQuery.g.cs +++ /dev/null @@ -1,395 +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.QueryDsl; - -public sealed partial class SpanNearQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Array of one or more other span type queries. - /// - /// - [JsonInclude, JsonPropertyName("clauses")] - public ICollection Clauses { get; set; } - - /// - /// - /// Controls whether matches are required to be in-order. - /// - /// - [JsonInclude, JsonPropertyName("in_order")] - public bool? InOrder { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - /// - /// - /// Controls the maximum number of intervening unmatched positions permitted. - /// - /// - [JsonInclude, JsonPropertyName("slop")] - public int? Slop { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanNearQuery spanNearQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanNear(spanNearQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanNearQuery spanNearQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanNear(spanNearQuery); -} - -public sealed partial class SpanNearQueryDescriptor : SerializableDescriptor> -{ - internal SpanNearQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanNearQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection ClausesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor ClausesDescriptor { get; set; } - private Action> ClausesDescriptorAction { get; set; } - private Action>[] ClausesDescriptorActions { get; set; } - private bool? InOrderValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { 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 SpanNearQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Array of one or more other span type queries. - /// - /// - public SpanNearQueryDescriptor Clauses(ICollection clauses) - { - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesValue = clauses; - return Self; - } - - public SpanNearQueryDescriptor Clauses(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - ClausesValue = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesDescriptor = descriptor; - return Self; - } - - public SpanNearQueryDescriptor Clauses(Action> configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorActions = null; - ClausesDescriptorAction = configure; - return Self; - } - - public SpanNearQueryDescriptor Clauses(params Action>[] configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls whether matches are required to be in-order. - /// - /// - public SpanNearQueryDescriptor InOrder(bool? inOrder = true) - { - InOrderValue = inOrder; - return Self; - } - - public SpanNearQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Controls the maximum number of intervening unmatched positions permitted. - /// - /// - public SpanNearQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (ClausesDescriptor is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ClausesDescriptor, options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorAction is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(ClausesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorActions is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - foreach (var action in ClausesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("clauses"); - JsonSerializer.Serialize(writer, ClausesValue, options); - } - - if (InOrderValue.HasValue) - { - writer.WritePropertyName("in_order"); - writer.WriteBooleanValue(InOrderValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanNearQueryDescriptor : SerializableDescriptor -{ - internal SpanNearQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanNearQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection ClausesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor ClausesDescriptor { get; set; } - private Action ClausesDescriptorAction { get; set; } - private Action[] ClausesDescriptorActions { get; set; } - private bool? InOrderValue { get; set; } - private string? QueryNameValue { get; set; } - private int? SlopValue { 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 SpanNearQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Array of one or more other span type queries. - /// - /// - public SpanNearQueryDescriptor Clauses(ICollection clauses) - { - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesValue = clauses; - return Self; - } - - public SpanNearQueryDescriptor Clauses(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - ClausesValue = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesDescriptor = descriptor; - return Self; - } - - public SpanNearQueryDescriptor Clauses(Action configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorActions = null; - ClausesDescriptorAction = configure; - return Self; - } - - public SpanNearQueryDescriptor Clauses(params Action[] configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Controls whether matches are required to be in-order. - /// - /// - public SpanNearQueryDescriptor InOrder(bool? inOrder = true) - { - InOrderValue = inOrder; - return Self; - } - - public SpanNearQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Controls the maximum number of intervening unmatched positions permitted. - /// - /// - public SpanNearQueryDescriptor Slop(int? slop) - { - SlopValue = slop; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (ClausesDescriptor is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ClausesDescriptor, options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorAction is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(ClausesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorActions is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - foreach (var action in ClausesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("clauses"); - JsonSerializer.Serialize(writer, ClausesValue, options); - } - - if (InOrderValue.HasValue) - { - writer.WritePropertyName("in_order"); - writer.WriteBooleanValue(InOrderValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (SlopValue.HasValue) - { - writer.WritePropertyName("slop"); - writer.WriteNumberValue(SlopValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNotQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNotQuery.g.cs deleted file mode 100644 index 32d6a0d7255..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanNotQuery.g.cs +++ /dev/null @@ -1,490 +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.QueryDsl; - -public sealed partial class SpanNotQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The number of tokens from within the include span that can’t have overlap with the exclude span. - /// Equivalent to setting both pre and post. - /// - /// - [JsonInclude, JsonPropertyName("dist")] - public int? Dist { get; set; } - - /// - /// - /// Span query whose matches must not overlap those returned. - /// - /// - [JsonInclude, JsonPropertyName("exclude")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Exclude { get; set; } - - /// - /// - /// Span query whose matches are filtered. - /// - /// - [JsonInclude, JsonPropertyName("include")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Include { get; set; } - - /// - /// - /// The number of tokens after the include span that can’t have overlap with the exclude span. - /// - /// - [JsonInclude, JsonPropertyName("post")] - public int? Post { get; set; } - - /// - /// - /// The number of tokens before the include span that can’t have overlap with the exclude span. - /// - /// - [JsonInclude, JsonPropertyName("pre")] - public int? Pre { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanNotQuery spanNotQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanNot(spanNotQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanNotQuery spanNotQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanNot(spanNotQuery); -} - -public sealed partial class SpanNotQueryDescriptor : SerializableDescriptor> -{ - internal SpanNotQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanNotQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private int? DistValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor ExcludeDescriptor { get; set; } - private Action> ExcludeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor IncludeDescriptor { get; set; } - private Action> IncludeDescriptorAction { get; set; } - private int? PostValue { get; set; } - private int? PreValue { get; set; } - private string? QueryNameValue { 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 SpanNotQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The number of tokens from within the include span that can’t have overlap with the exclude span. - /// Equivalent to setting both pre and post. - /// - /// - public SpanNotQueryDescriptor Dist(int? dist) - { - DistValue = dist; - return Self; - } - - /// - /// - /// Span query whose matches must not overlap those returned. - /// - /// - public SpanNotQueryDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery exclude) - { - ExcludeDescriptor = null; - ExcludeDescriptorAction = null; - ExcludeValue = exclude; - return Self; - } - - public SpanNotQueryDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - ExcludeValue = null; - ExcludeDescriptorAction = null; - ExcludeDescriptor = descriptor; - return Self; - } - - public SpanNotQueryDescriptor Exclude(Action> configure) - { - ExcludeValue = null; - ExcludeDescriptor = null; - ExcludeDescriptorAction = configure; - return Self; - } - - /// - /// - /// Span query whose matches are filtered. - /// - /// - public SpanNotQueryDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeValue = include; - return Self; - } - - public SpanNotQueryDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptor = descriptor; - return Self; - } - - public SpanNotQueryDescriptor Include(Action> configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of tokens after the include span that can’t have overlap with the exclude span. - /// - /// - public SpanNotQueryDescriptor Post(int? post) - { - PostValue = post; - return Self; - } - - /// - /// - /// The number of tokens before the include span that can’t have overlap with the exclude span. - /// - /// - public SpanNotQueryDescriptor Pre(int? pre) - { - PreValue = pre; - return Self; - } - - public SpanNotQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DistValue.HasValue) - { - writer.WritePropertyName("dist"); - writer.WriteNumberValue(DistValue.Value); - } - - if (ExcludeDescriptor is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeDescriptor, options); - } - else if (ExcludeDescriptorAction is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(ExcludeDescriptorAction), options); - } - else - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(IncludeDescriptorAction), options); - } - else - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (PostValue.HasValue) - { - writer.WritePropertyName("post"); - writer.WriteNumberValue(PostValue.Value); - } - - if (PreValue.HasValue) - { - writer.WritePropertyName("pre"); - writer.WriteNumberValue(PreValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanNotQueryDescriptor : SerializableDescriptor -{ - internal SpanNotQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanNotQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private int? DistValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery ExcludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor ExcludeDescriptor { get; set; } - private Action ExcludeDescriptorAction { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery IncludeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor IncludeDescriptor { get; set; } - private Action IncludeDescriptorAction { get; set; } - private int? PostValue { get; set; } - private int? PreValue { get; set; } - private string? QueryNameValue { 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 SpanNotQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The number of tokens from within the include span that can’t have overlap with the exclude span. - /// Equivalent to setting both pre and post. - /// - /// - public SpanNotQueryDescriptor Dist(int? dist) - { - DistValue = dist; - return Self; - } - - /// - /// - /// Span query whose matches must not overlap those returned. - /// - /// - public SpanNotQueryDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery exclude) - { - ExcludeDescriptor = null; - ExcludeDescriptorAction = null; - ExcludeValue = exclude; - return Self; - } - - public SpanNotQueryDescriptor Exclude(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - ExcludeValue = null; - ExcludeDescriptorAction = null; - ExcludeDescriptor = descriptor; - return Self; - } - - public SpanNotQueryDescriptor Exclude(Action configure) - { - ExcludeValue = null; - ExcludeDescriptor = null; - ExcludeDescriptorAction = configure; - return Self; - } - - /// - /// - /// Span query whose matches are filtered. - /// - /// - public SpanNotQueryDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery include) - { - IncludeDescriptor = null; - IncludeDescriptorAction = null; - IncludeValue = include; - return Self; - } - - public SpanNotQueryDescriptor Include(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - IncludeValue = null; - IncludeDescriptorAction = null; - IncludeDescriptor = descriptor; - return Self; - } - - public SpanNotQueryDescriptor Include(Action configure) - { - IncludeValue = null; - IncludeDescriptor = null; - IncludeDescriptorAction = configure; - return Self; - } - - /// - /// - /// The number of tokens after the include span that can’t have overlap with the exclude span. - /// - /// - public SpanNotQueryDescriptor Post(int? post) - { - PostValue = post; - return Self; - } - - /// - /// - /// The number of tokens before the include span that can’t have overlap with the exclude span. - /// - /// - public SpanNotQueryDescriptor Pre(int? pre) - { - PreValue = pre; - return Self; - } - - public SpanNotQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (DistValue.HasValue) - { - writer.WritePropertyName("dist"); - writer.WriteNumberValue(DistValue.Value); - } - - if (ExcludeDescriptor is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeDescriptor, options); - } - else if (ExcludeDescriptorAction is not null) - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(ExcludeDescriptorAction), options); - } - else - { - writer.WritePropertyName("exclude"); - JsonSerializer.Serialize(writer, ExcludeValue, options); - } - - if (IncludeDescriptor is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeDescriptor, options); - } - else if (IncludeDescriptorAction is not null) - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(IncludeDescriptorAction), options); - } - else - { - writer.WritePropertyName("include"); - JsonSerializer.Serialize(writer, IncludeValue, options); - } - - if (PostValue.HasValue) - { - writer.WritePropertyName("post"); - writer.WriteNumberValue(PostValue.Value); - } - - if (PreValue.HasValue) - { - writer.WritePropertyName("pre"); - writer.WriteNumberValue(PreValue.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/SpanOrQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanOrQuery.g.cs deleted file mode 100644 index 83c31d674f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanOrQuery.g.cs +++ /dev/null @@ -1,307 +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.QueryDsl; - -public sealed partial class SpanOrQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Array of one or more other span type queries. - /// - /// - [JsonInclude, JsonPropertyName("clauses")] - public ICollection Clauses { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanOrQuery spanOrQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanOr(spanOrQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanOrQuery spanOrQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanOr(spanOrQuery); -} - -public sealed partial class SpanOrQueryDescriptor : SerializableDescriptor> -{ - internal SpanOrQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanOrQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection ClausesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor ClausesDescriptor { get; set; } - private Action> ClausesDescriptorAction { get; set; } - private Action>[] ClausesDescriptorActions { get; set; } - private string? QueryNameValue { 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 SpanOrQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Array of one or more other span type queries. - /// - /// - public SpanOrQueryDescriptor Clauses(ICollection clauses) - { - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesValue = clauses; - return Self; - } - - public SpanOrQueryDescriptor Clauses(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - ClausesValue = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesDescriptor = descriptor; - return Self; - } - - public SpanOrQueryDescriptor Clauses(Action> configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorActions = null; - ClausesDescriptorAction = configure; - return Self; - } - - public SpanOrQueryDescriptor Clauses(params Action>[] configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = configure; - return Self; - } - - public SpanOrQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (ClausesDescriptor is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ClausesDescriptor, options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorAction is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(ClausesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorActions is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - foreach (var action in ClausesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("clauses"); - JsonSerializer.Serialize(writer, ClausesValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanOrQueryDescriptor : SerializableDescriptor -{ - internal SpanOrQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanOrQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private ICollection ClausesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor ClausesDescriptor { get; set; } - private Action ClausesDescriptorAction { get; set; } - private Action[] ClausesDescriptorActions { get; set; } - private string? QueryNameValue { 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 SpanOrQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Array of one or more other span type queries. - /// - /// - public SpanOrQueryDescriptor Clauses(ICollection clauses) - { - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesValue = clauses; - return Self; - } - - public SpanOrQueryDescriptor Clauses(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - ClausesValue = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = null; - ClausesDescriptor = descriptor; - return Self; - } - - public SpanOrQueryDescriptor Clauses(Action configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorActions = null; - ClausesDescriptorAction = configure; - return Self; - } - - public SpanOrQueryDescriptor Clauses(params Action[] configure) - { - ClausesValue = null; - ClausesDescriptor = null; - ClausesDescriptorAction = null; - ClausesDescriptorActions = configure; - return Self; - } - - public SpanOrQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (ClausesDescriptor is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ClausesDescriptor, options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorAction is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(ClausesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ClausesDescriptorActions is not null) - { - writer.WritePropertyName("clauses"); - writer.WriteStartArray(); - foreach (var action in ClausesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("clauses"); - JsonSerializer.Serialize(writer, ClausesValue, options); - } - - 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/SpanQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanQuery.g.cs deleted file mode 100644 index b12510520db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanQuery.g.cs +++ /dev/null @@ -1,360 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(SpanQueryConverter))] -public sealed partial class SpanQuery -{ - internal SpanQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static SpanQuery SpanContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery spanContainingQuery) => new SpanQuery("span_containing", spanContainingQuery); - public static SpanQuery SpanFieldMasking(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery spanFieldMaskingQuery) => new SpanQuery("span_field_masking", spanFieldMaskingQuery); - public static SpanQuery SpanFirst(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery spanFirstQuery) => new SpanQuery("span_first", spanFirstQuery); - public static SpanQuery SpanGap(KeyValuePair integer) => new SpanQuery("span_gap", integer); - public static SpanQuery SpanMulti(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery spanMultiTermQuery) => new SpanQuery("span_multi", spanMultiTermQuery); - public static SpanQuery SpanNear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery spanNearQuery) => new SpanQuery("span_near", spanNearQuery); - public static SpanQuery SpanNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery spanNotQuery) => new SpanQuery("span_not", spanNotQuery); - public static SpanQuery SpanOr(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery spanOrQuery) => new SpanQuery("span_or", spanOrQuery); - public static SpanQuery SpanTerm(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery spanTermQuery) => new SpanQuery("span_term", spanTermQuery); - public static SpanQuery SpanWithin(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery spanWithinQuery) => new SpanQuery("span_within", spanWithinQuery); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class SpanQueryConverter : JsonConverter -{ - public override SpanQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "span_containing") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_field_masking") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_first") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_gap") - { - variantValue = JsonSerializer.Deserialize?>(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_multi") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_near") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_not") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_or") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "span_within") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SpanQuery' from the response."); - } - - var result = new SpanQuery(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, SpanQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "span_containing": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery)value.Variant, options); - break; - case "span_field_masking": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery)value.Variant, options); - break; - case "span_first": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery)value.Variant, options); - break; - case "span_gap": - JsonSerializer.Serialize>(writer, (KeyValuePair)value.Variant, options); - break; - case "span_multi": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery)value.Variant, options); - break; - case "span_near": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery)value.Variant, options); - break; - case "span_not": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery)value.Variant, options); - break; - case "span_or": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery)value.Variant, options); - break; - case "span_term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery)value.Variant, options); - break; - case "span_within": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanQueryDescriptor : SerializableDescriptor> -{ - internal SpanQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SpanQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SpanQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public SpanQueryDescriptor SpanContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery spanContainingQuery) => Set(spanContainingQuery, "span_containing"); - public SpanQueryDescriptor SpanContaining(Action> configure) => Set(configure, "span_containing"); - public SpanQueryDescriptor SpanFieldMasking(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery spanFieldMaskingQuery) => Set(spanFieldMaskingQuery, "span_field_masking"); - public SpanQueryDescriptor SpanFieldMasking(Action> configure) => Set(configure, "span_field_masking"); - public SpanQueryDescriptor SpanFirst(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery spanFirstQuery) => Set(spanFirstQuery, "span_first"); - public SpanQueryDescriptor SpanFirst(Action> configure) => Set(configure, "span_first"); - public SpanQueryDescriptor SpanGap(KeyValuePair integer) => Set(integer, "span_gap"); - public SpanQueryDescriptor SpanMulti(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery spanMultiTermQuery) => Set(spanMultiTermQuery, "span_multi"); - public SpanQueryDescriptor SpanMulti(Action> configure) => Set(configure, "span_multi"); - public SpanQueryDescriptor SpanNear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery spanNearQuery) => Set(spanNearQuery, "span_near"); - public SpanQueryDescriptor SpanNear(Action> configure) => Set(configure, "span_near"); - public SpanQueryDescriptor SpanNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery spanNotQuery) => Set(spanNotQuery, "span_not"); - public SpanQueryDescriptor SpanNot(Action> configure) => Set(configure, "span_not"); - public SpanQueryDescriptor SpanOr(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery spanOrQuery) => Set(spanOrQuery, "span_or"); - public SpanQueryDescriptor SpanOr(Action> configure) => Set(configure, "span_or"); - public SpanQueryDescriptor SpanTerm(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery spanTermQuery) => Set(spanTermQuery, "span_term"); - public SpanQueryDescriptor SpanTerm(Action> configure) => Set(configure, "span_term"); - public SpanQueryDescriptor SpanWithin(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery spanWithinQuery) => Set(spanWithinQuery, "span_within"); - public SpanQueryDescriptor SpanWithin(Action> configure) => Set(configure, "span_within"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanQueryDescriptor : SerializableDescriptor -{ - internal SpanQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SpanQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SpanQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public SpanQueryDescriptor SpanContaining(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanContainingQuery spanContainingQuery) => Set(spanContainingQuery, "span_containing"); - public SpanQueryDescriptor SpanContaining(Action configure) => Set(configure, "span_containing"); - public SpanQueryDescriptor SpanFieldMasking(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFieldMaskingQuery spanFieldMaskingQuery) => Set(spanFieldMaskingQuery, "span_field_masking"); - public SpanQueryDescriptor SpanFieldMasking(Action configure) => Set(configure, "span_field_masking"); - public SpanQueryDescriptor SpanFirst(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanFirstQuery spanFirstQuery) => Set(spanFirstQuery, "span_first"); - public SpanQueryDescriptor SpanFirst(Action configure) => Set(configure, "span_first"); - public SpanQueryDescriptor SpanGap(KeyValuePair integer) => Set(integer, "span_gap"); - public SpanQueryDescriptor SpanMulti(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanMultiTermQuery spanMultiTermQuery) => Set(spanMultiTermQuery, "span_multi"); - public SpanQueryDescriptor SpanMulti(Action configure) => Set(configure, "span_multi"); - public SpanQueryDescriptor SpanNear(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNearQuery spanNearQuery) => Set(spanNearQuery, "span_near"); - public SpanQueryDescriptor SpanNear(Action configure) => Set(configure, "span_near"); - public SpanQueryDescriptor SpanNot(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanNotQuery spanNotQuery) => Set(spanNotQuery, "span_not"); - public SpanQueryDescriptor SpanNot(Action configure) => Set(configure, "span_not"); - public SpanQueryDescriptor SpanOr(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanOrQuery spanOrQuery) => Set(spanOrQuery, "span_or"); - public SpanQueryDescriptor SpanOr(Action configure) => Set(configure, "span_or"); - public SpanQueryDescriptor SpanTerm(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanTermQuery spanTermQuery) => Set(spanTermQuery, "span_term"); - public SpanQueryDescriptor SpanTerm(Action configure) => Set(configure, "span_term"); - public SpanQueryDescriptor SpanWithin(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanWithinQuery spanWithinQuery) => Set(spanWithinQuery, "span_within"); - public SpanQueryDescriptor SpanWithin(Action configure) => Set(configure, "span_within"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanTermQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanTermQuery.g.cs deleted file mode 100644 index 3567a984d2f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanTermQuery.g.cs +++ /dev/null @@ -1,288 +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.QueryDsl; - -internal sealed partial class SpanTermQueryConverter : JsonConverter -{ - public override SpanTermQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new SpanTermQuery(fieldName); - 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 == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "value") - { - variant.Value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, SpanTermQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize SpanTermQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(value.Value); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(SpanTermQueryConverter))] -public sealed partial class SpanTermQuery -{ - public SpanTermQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - public string? QueryName { get; set; } - public string Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanTermQuery spanTermQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanTerm(spanTermQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanTermQuery spanTermQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanTerm(spanTermQuery); -} - -public sealed partial class SpanTermQueryDescriptor : SerializableDescriptor> -{ - internal SpanTermQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanTermQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private string ValueValue { 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 SpanTermQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public SpanTermQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public SpanTermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanTermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanTermQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public SpanTermQueryDescriptor Value(string value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class SpanTermQueryDescriptor : SerializableDescriptor -{ - internal SpanTermQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanTermQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private string ValueValue { 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 SpanTermQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public SpanTermQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public SpanTermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanTermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SpanTermQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public SpanTermQueryDescriptor Value(string value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs deleted file mode 100644 index 13f49ac0cf3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SpanWithinQuery.g.cs +++ /dev/null @@ -1,361 +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.QueryDsl; - -public sealed partial class SpanWithinQuery -{ - /// - /// - /// Can be any span query. - /// Matching spans from little that are enclosed within big are returned. - /// - /// - [JsonInclude, JsonPropertyName("big")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Big { 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Can be any span query. - /// Matching spans from little that are enclosed within big are returned. - /// - /// - [JsonInclude, JsonPropertyName("little")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery Little { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(SpanWithinQuery spanWithinQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.SpanWithin(spanWithinQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery(SpanWithinQuery spanWithinQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery.SpanWithin(spanWithinQuery); -} - -public sealed partial class SpanWithinQueryDescriptor : SerializableDescriptor> -{ - internal SpanWithinQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SpanWithinQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery BigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor BigDescriptor { get; set; } - private Action> BigDescriptorAction { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery LittleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor LittleDescriptor { get; set; } - private Action> LittleDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - - /// - /// - /// Can be any span query. - /// Matching spans from little that are enclosed within big are returned. - /// - /// - public SpanWithinQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery big) - { - BigDescriptor = null; - BigDescriptorAction = null; - BigValue = big; - return Self; - } - - public SpanWithinQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - BigValue = null; - BigDescriptorAction = null; - BigDescriptor = descriptor; - return Self; - } - - public SpanWithinQueryDescriptor Big(Action> configure) - { - BigValue = null; - BigDescriptor = null; - BigDescriptorAction = configure; - return Self; - } - - /// - /// - /// 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 SpanWithinQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Can be any span query. - /// Matching spans from little that are enclosed within big are returned. - /// - /// - public SpanWithinQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery little) - { - LittleDescriptor = null; - LittleDescriptorAction = null; - LittleValue = little; - return Self; - } - - public SpanWithinQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - LittleValue = null; - LittleDescriptorAction = null; - LittleDescriptor = descriptor; - return Self; - } - - public SpanWithinQueryDescriptor Little(Action> configure) - { - LittleValue = null; - LittleDescriptor = null; - LittleDescriptorAction = configure; - return Self; - } - - public SpanWithinQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BigDescriptor is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigDescriptor, options); - } - else if (BigDescriptorAction is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(BigDescriptorAction), options); - } - else - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (LittleDescriptor is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleDescriptor, options); - } - else if (LittleDescriptorAction is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(LittleDescriptorAction), options); - } - else - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SpanWithinQueryDescriptor : SerializableDescriptor -{ - internal SpanWithinQueryDescriptor(Action configure) => configure.Invoke(this); - - public SpanWithinQueryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery BigValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor BigDescriptor { get; set; } - private Action BigDescriptorAction { get; set; } - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery LittleValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor LittleDescriptor { get; set; } - private Action LittleDescriptorAction { get; set; } - private string? QueryNameValue { get; set; } - - /// - /// - /// Can be any span query. - /// Matching spans from little that are enclosed within big are returned. - /// - /// - public SpanWithinQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery big) - { - BigDescriptor = null; - BigDescriptorAction = null; - BigValue = big; - return Self; - } - - public SpanWithinQueryDescriptor Big(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - BigValue = null; - BigDescriptorAction = null; - BigDescriptor = descriptor; - return Self; - } - - public SpanWithinQueryDescriptor Big(Action configure) - { - BigValue = null; - BigDescriptor = null; - BigDescriptorAction = configure; - return Self; - } - - /// - /// - /// 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 SpanWithinQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Can be any span query. - /// Matching spans from little that are enclosed within big are returned. - /// - /// - public SpanWithinQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQuery little) - { - LittleDescriptor = null; - LittleDescriptorAction = null; - LittleValue = little; - return Self; - } - - public SpanWithinQueryDescriptor Little(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor descriptor) - { - LittleValue = null; - LittleDescriptorAction = null; - LittleDescriptor = descriptor; - return Self; - } - - public SpanWithinQueryDescriptor Little(Action configure) - { - LittleValue = null; - LittleDescriptor = null; - LittleDescriptorAction = configure; - return Self; - } - - public SpanWithinQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BigDescriptor is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigDescriptor, options); - } - else if (BigDescriptorAction is not null) - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(BigDescriptorAction), options); - } - else - { - writer.WritePropertyName("big"); - JsonSerializer.Serialize(writer, BigValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (LittleDescriptor is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleDescriptor, options); - } - else if (LittleDescriptorAction is not null) - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SpanQueryDescriptor(LittleDescriptorAction), options); - } - else - { - writer.WritePropertyName("little"); - JsonSerializer.Serialize(writer, LittleValue, options); - } - - 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/SparseVectorQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs deleted file mode 100644 index d0034b94dbb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/SparseVectorQuery.g.cs +++ /dev/null @@ -1,506 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; - -[JsonConverter(typeof(SparseVectorQueryConverter))] -public sealed partial class SparseVectorQuery -{ - internal SparseVectorQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static SparseVectorQuery InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id id) => new SparseVectorQuery("inference_id", id); - - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// The query text you want to use for search. - /// If inference_id is specified, query must also be specified. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string? Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class SparseVectorQueryConverter : JsonConverter -{ - public override SparseVectorQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - float? boostValue = default; - Elastic.Clients.Elasticsearch.Serverless.Field fieldValue = default; - string? queryValue = default; - string? queryNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "boost") - { - boostValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "field") - { - fieldValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "query") - { - queryValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "_name") - { - queryNameValue = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (propertyName == "inference_id") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'SparseVectorQuery' from the response."); - } - - var result = new SparseVectorQuery(variantNameValue, variantValue); - result.Boost = boostValue; - result.Field = fieldValue; - result.Query = queryValue; - result.QueryName = queryNameValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, SparseVectorQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.Field is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, value.Field, options); - } - - if (!string.IsNullOrEmpty(value.Query)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(value.Query); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "inference_id": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Id)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SparseVectorQueryDescriptor : SerializableDescriptor> -{ - internal SparseVectorQueryDescriptor(Action> configure) => configure.Invoke(this); - - public SparseVectorQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SparseVectorQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SparseVectorQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryValue { get; set; } - private string? QueryNameValue { 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 SparseVectorQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - public SparseVectorQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - public SparseVectorQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - public SparseVectorQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The query text you want to use for search. - /// If inference_id is specified, query must also be specified. - /// - /// - public SparseVectorQueryDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - public SparseVectorQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public SparseVectorQueryDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id id) => Set(id, "inference_id"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SparseVectorQueryDescriptor : SerializableDescriptor -{ - internal SparseVectorQueryDescriptor(Action configure) => configure.Invoke(this); - - public SparseVectorQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SparseVectorQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SparseVectorQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryValue { get; set; } - private string? QueryNameValue { 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 SparseVectorQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - public SparseVectorQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - public SparseVectorQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The name of the field that contains the token-weight pairs to be searched against. - /// This field must be a mapped sparse_vector field. - /// - /// - public SparseVectorQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The query text you want to use for search. - /// If inference_id is specified, query must also be specified. - /// - /// - public SparseVectorQueryDescriptor Query(string? query) - { - QueryValue = query; - return Self; - } - - public SparseVectorQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public SparseVectorQueryDescriptor InferenceId(Elastic.Clients.Elasticsearch.Serverless.Id id) => Set(id, "inference_id"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - if (!string.IsNullOrEmpty(QueryValue)) - { - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermQuery.g.cs deleted file mode 100644 index b5e2dfd6e85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermQuery.g.cs +++ /dev/null @@ -1,364 +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.QueryDsl; - -internal sealed partial class TermQueryConverter : JsonConverter -{ - public override TermQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new TermQuery(fieldName); - 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 == "case_insensitive") - { - variant.CaseInsensitive = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "value") - { - variant.Value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, TermQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize TermQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.CaseInsensitive.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(value.CaseInsensitive.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, value.Value, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(TermQueryConverter))] -public sealed partial class TermQuery -{ - public TermQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Allows ASCII case insensitive matching of the value with the indexed field values when set to true. - /// When false, the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public bool? CaseInsensitive { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Term you wish to find in the provided field. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.FieldValue Value { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(TermQuery termQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Term(termQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(TermQuery termQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Term(termQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(TermQuery termQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Term(termQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(TermQuery termQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Term(termQuery); -} - -public sealed partial class TermQueryDescriptor : SerializableDescriptor> -{ - internal TermQueryDescriptor(Action> configure) => configure.Invoke(this); - - public TermQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue ValueValue { 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 TermQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows ASCII case insensitive matching of the value with the indexed field values when set to true. - /// When false, the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public TermQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public TermQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Term you wish to find in the provided field. - /// - /// - public TermQueryDescriptor Value(Elastic.Clients.Elasticsearch.Serverless.FieldValue value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class TermQueryDescriptor : SerializableDescriptor -{ - internal TermQueryDescriptor(Action configure) => configure.Invoke(this); - - public TermQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldValue ValueValue { 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 TermQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows ASCII case insensitive matching of the value with the indexed field values when set to true. - /// When false, the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public TermQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public TermQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Term you wish to find in the provided field. - /// - /// - public TermQueryDescriptor Value(Elastic.Clients.Elasticsearch.Serverless.FieldValue value) - { - ValueValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("value"); - JsonSerializer.Serialize(writer, ValueValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs deleted file mode 100644 index 538911f2a18..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermRangeQuery.g.cs +++ /dev/null @@ -1,533 +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.QueryDsl; - -internal sealed partial class TermRangeQueryConverter : JsonConverter -{ - public override TermRangeQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new TermRangeQuery(fieldName); - 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 == "gt") - { - variant.Gt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gte") - { - variant.Gte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lt") - { - variant.Lt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lte") - { - variant.Lte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "relation") - { - variant.Relation = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, TermRangeQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize TermRangeQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (!string.IsNullOrEmpty(value.Gt)) - { - writer.WritePropertyName("gt"); - writer.WriteStringValue(value.Gt); - } - - if (!string.IsNullOrEmpty(value.Gte)) - { - writer.WritePropertyName("gte"); - writer.WriteStringValue(value.Gte); - } - - if (!string.IsNullOrEmpty(value.Lt)) - { - writer.WritePropertyName("lt"); - writer.WriteStringValue(value.Lt); - } - - if (!string.IsNullOrEmpty(value.Lte)) - { - writer.WritePropertyName("lte"); - writer.WriteStringValue(value.Lte); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.Relation is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, value.Relation, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(TermRangeQueryConverter))] -public sealed partial class TermRangeQuery -{ - public TermRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Greater than. - /// - /// - public string? Gt { get; set; } - - /// - /// - /// Greater than or equal to. - /// - /// - public string? Gte { get; set; } - - /// - /// - /// Less than. - /// - /// - public string? Lt { get; set; } - - /// - /// - /// Less than or equal to. - /// - /// - public string? Lte { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? Relation { get; set; } -} - -public sealed partial class TermRangeQueryDescriptor : SerializableDescriptor> -{ - internal TermRangeQueryDescriptor(Action> configure) => configure.Invoke(this); - - public TermRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? GtValue { get; set; } - private string? GteValue { get; set; } - private string? LtValue { get; set; } - private string? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { 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 TermRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TermRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public TermRangeQueryDescriptor Gt(string? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public TermRangeQueryDescriptor Gte(string? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public TermRangeQueryDescriptor Lt(string? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public TermRangeQueryDescriptor Lte(string? lte) - { - LteValue = lte; - return Self; - } - - public TermRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public TermRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(GtValue)) - { - writer.WritePropertyName("gt"); - writer.WriteStringValue(GtValue); - } - - if (!string.IsNullOrEmpty(GteValue)) - { - writer.WritePropertyName("gte"); - writer.WriteStringValue(GteValue); - } - - if (!string.IsNullOrEmpty(LtValue)) - { - writer.WritePropertyName("lt"); - writer.WriteStringValue(LtValue); - } - - if (!string.IsNullOrEmpty(LteValue)) - { - writer.WritePropertyName("lte"); - writer.WriteStringValue(LteValue); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class TermRangeQueryDescriptor : SerializableDescriptor -{ - internal TermRangeQueryDescriptor(Action configure) => configure.Invoke(this); - - public TermRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? GtValue { get; set; } - private string? GteValue { get; set; } - private string? LtValue { get; set; } - private string? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { 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 TermRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TermRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public TermRangeQueryDescriptor Gt(string? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public TermRangeQueryDescriptor Gte(string? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public TermRangeQueryDescriptor Lt(string? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public TermRangeQueryDescriptor Lte(string? lte) - { - LteValue = lte; - return Self; - } - - public TermRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public TermRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(GtValue)) - { - writer.WritePropertyName("gt"); - writer.WriteStringValue(GtValue); - } - - if (!string.IsNullOrEmpty(GteValue)) - { - writer.WritePropertyName("gte"); - writer.WriteStringValue(GteValue); - } - - if (!string.IsNullOrEmpty(LtValue)) - { - writer.WritePropertyName("lt"); - writer.WriteStringValue(LtValue); - } - - if (!string.IsNullOrEmpty(LteValue)) - { - writer.WritePropertyName("lte"); - writer.WriteStringValue(LteValue); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsLookup.g.cs deleted file mode 100644 index 4af488b296e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsLookup.g.cs +++ /dev/null @@ -1,176 +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.QueryDsl; - -public sealed partial class TermsLookup -{ - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } - [JsonInclude, JsonPropertyName("path")] - public Elastic.Clients.Elasticsearch.Serverless.Field Path { get; set; } - [JsonInclude, JsonPropertyName("routing")] - public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } -} - -public sealed partial class TermsLookupDescriptor : SerializableDescriptor> -{ - internal TermsLookupDescriptor(Action> configure) => configure.Invoke(this); - - public TermsLookupDescriptor() : 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; } - - public TermsLookupDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - public TermsLookupDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - public TermsLookupDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field path) - { - PathValue = path; - return Self; - } - - public TermsLookupDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public TermsLookupDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public TermsLookupDescriptor 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); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - 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 TermsLookupDescriptor : SerializableDescriptor -{ - internal TermsLookupDescriptor(Action configure) => configure.Invoke(this); - - public TermsLookupDescriptor() : 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; } - - public TermsLookupDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - public TermsLookupDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) - { - IndexValue = index; - return Self; - } - - public TermsLookupDescriptor Path(Elastic.Clients.Elasticsearch.Serverless.Field path) - { - PathValue = path; - return Self; - } - - public TermsLookupDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public TermsLookupDescriptor Path(Expression> path) - { - PathValue = path; - return Self; - } - - public TermsLookupDescriptor 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); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - 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/TermsQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs deleted file mode 100644 index ed80e1a50a8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQuery.g.cs +++ /dev/null @@ -1,280 +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.QueryDsl; - -internal sealed partial class TermsQueryConverter : JsonConverter -{ - public override TermsQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new TermsQuery(); - 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 == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Terms = JsonSerializer.Deserialize(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, TermsQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Terms 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.Terms, options); - } - - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(TermsQueryConverter))] -public sealed partial class TermsQuery -{ - /// - /// - /// 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; } - public string? QueryName { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField Terms { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Terms(termsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Terms(termsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Terms(termsQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(TermsQuery termsQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Terms(termsQuery); -} - -public sealed partial class TermsQueryDescriptor : SerializableDescriptor> -{ - internal TermsQueryDescriptor(Action> configure) => configure.Invoke(this); - - public TermsQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField TermsValue { 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 TermsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TermsQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public TermsQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && TermsValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TermsQueryDescriptor : SerializableDescriptor -{ - internal TermsQueryDescriptor(Action configure) => configure.Invoke(this); - - public TermsQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField TermsValue { 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 TermsQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TermsQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - public TermsQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQueryField terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && TermsValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, TermsValue, options); - } - - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.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/TermsQueryField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQueryField.g.cs deleted file mode 100644 index 2acdddd8b8b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsQueryField.g.cs +++ /dev/null @@ -1,42 +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.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.QueryDsl; - -public sealed partial class TermsQueryField : Union, Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsLookup> -{ - public TermsQueryField(IReadOnlyCollection Value) : base(Value) - { - } - - public TermsQueryField(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsLookup Lookup) : base(Lookup) - { - } -} \ 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 deleted file mode 100644 index 8da1d26d0e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/TermsSetQuery.g.cs +++ /dev/null @@ -1,572 +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.QueryDsl; - -internal sealed partial class TermsSetQueryConverter : JsonConverter -{ - public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new TermsSetQuery(fieldName); - 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 == "minimum_should_match") - { - variant.MinimumShouldMatch = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "minimum_should_match_field") - { - variant.MinimumShouldMatchField = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "minimum_should_match_script") - { - variant.MinimumShouldMatchScript = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "terms") - { - variant.Terms = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, TermsSetQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize TermsSetQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.MinimumShouldMatch is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, value.MinimumShouldMatch, options); - } - - if (value.MinimumShouldMatchField is not null) - { - writer.WritePropertyName("minimum_should_match_field"); - JsonSerializer.Serialize(writer, value.MinimumShouldMatchField, options); - } - - if (value.MinimumShouldMatchScript is not null) - { - writer.WritePropertyName("minimum_should_match_script"); - JsonSerializer.Serialize(writer, value.MinimumShouldMatchScript, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, value.Terms, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(TermsSetQueryConverter))] -public sealed partial class TermsSetQuery -{ - public TermsSetQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Specification describing number of matching terms required to return a document. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatch { get; set; } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Field? MinimumShouldMatchField { get; set; } - - /// - /// - /// Custom script containing the number of matching terms required to return a document. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Script? MinimumShouldMatchScript { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Array of terms you wish to find in the provided field. - /// - /// - public ICollection Terms { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(TermsSetQuery termsSetQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.TermsSet(termsSetQuery); -} - -public sealed partial class TermsSetQueryDescriptor : SerializableDescriptor> -{ - internal TermsSetQueryDescriptor(Action> configure) => configure.Invoke(this); - - public TermsSetQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { 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; } - - /// - /// - /// 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 TermsSetQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TermsSetQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermsSetQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsSetQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specification describing number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatchField(Elastic.Clients.Elasticsearch.Serverless.Field? minimumShouldMatchField) - { - MinimumShouldMatchFieldValue = minimumShouldMatchField; - return Self; - } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatchField(Expression> minimumShouldMatchField) - { - MinimumShouldMatchFieldValue = minimumShouldMatchField; - return Self; - } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatchField(Expression> minimumShouldMatchField) - { - MinimumShouldMatchFieldValue = minimumShouldMatchField; - return Self; - } - - /// - /// - /// Custom script containing the number of matching terms required to return a document. - /// - /// - 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; - return Self; - } - - /// - /// - /// Array of terms you wish to find in the provided field. - /// - /// - public TermsSetQueryDescriptor Terms(ICollection terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (MinimumShouldMatchFieldValue is not null) - { - writer.WritePropertyName("minimum_should_match_field"); - JsonSerializer.Serialize(writer, MinimumShouldMatchFieldValue, options); - } - - 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); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class TermsSetQueryDescriptor : SerializableDescriptor -{ - internal TermsSetQueryDescriptor(Action configure) => configure.Invoke(this); - - public TermsSetQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? MinimumShouldMatchValue { 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; } - - /// - /// - /// 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 TermsSetQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public TermsSetQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public TermsSetQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public TermsSetQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specification describing number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatch(Elastic.Clients.Elasticsearch.Serverless.MinimumShouldMatch? minimumShouldMatch) - { - MinimumShouldMatchValue = minimumShouldMatch; - return Self; - } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatchField(Elastic.Clients.Elasticsearch.Serverless.Field? minimumShouldMatchField) - { - MinimumShouldMatchFieldValue = minimumShouldMatchField; - return Self; - } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatchField(Expression> minimumShouldMatchField) - { - MinimumShouldMatchFieldValue = minimumShouldMatchField; - return Self; - } - - /// - /// - /// Numeric field containing the number of matching terms required to return a document. - /// - /// - public TermsSetQueryDescriptor MinimumShouldMatchField(Expression> minimumShouldMatchField) - { - MinimumShouldMatchFieldValue = minimumShouldMatchField; - return Self; - } - - /// - /// - /// Custom script containing the number of matching terms required to return a document. - /// - /// - 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; - return Self; - } - - /// - /// - /// Array of terms you wish to find in the provided field. - /// - /// - public TermsSetQueryDescriptor Terms(ICollection terms) - { - TermsValue = terms; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (MinimumShouldMatchValue is not null) - { - writer.WritePropertyName("minimum_should_match"); - JsonSerializer.Serialize(writer, MinimumShouldMatchValue, options); - } - - if (MinimumShouldMatchFieldValue is not null) - { - writer.WritePropertyName("minimum_should_match_field"); - JsonSerializer.Serialize(writer, MinimumShouldMatchFieldValue, options); - } - - 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); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WritePropertyName("terms"); - JsonSerializer.Serialize(writer, TermsValue, options); - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 443a3d82046..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDecayFunction.g.cs +++ /dev/null @@ -1,228 +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.QueryDsl; - -internal sealed partial class UntypedDecayFunctionConverter : JsonConverter -{ - public override UntypedDecayFunction Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new UntypedDecayFunction(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "multi_value_mode") - { - variant.MultiValueMode = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - variant.Field = property; - reader.Read(); - variant.Placement = JsonSerializer.Deserialize>(ref reader, options); - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, UntypedDecayFunction value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Field is not null && value.Placement 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.Placement, options); - } - - if (value.MultiValueMode is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, value.MultiValueMode, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(UntypedDecayFunctionConverter))] -public sealed partial class UntypedDecayFunction -{ - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// 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 Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement Placement { get; set; } -} - -public sealed partial class UntypedDecayFunctionDescriptor : SerializableDescriptor> -{ - internal UntypedDecayFunctionDescriptor(Action> configure) => configure.Invoke(this); - - public UntypedDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public UntypedDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public UntypedDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UntypedDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public UntypedDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public UntypedDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UntypedDecayFunctionDescriptor : SerializableDescriptor -{ - internal UntypedDecayFunctionDescriptor(Action configure) => configure.Invoke(this); - - public UntypedDecayFunctionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? MultiValueModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement PlacementValue { get; set; } - - public UntypedDecayFunctionDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public UntypedDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UntypedDecayFunctionDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Determines how the distance is calculated when a field used for computing the decay contains multiple values. - /// - /// - public UntypedDecayFunctionDescriptor MultiValueMode(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MultiValueMode? multiValueMode) - { - MultiValueModeValue = multiValueMode; - return Self; - } - - public UntypedDecayFunctionDescriptor Placement(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DecayPlacement placement) - { - PlacementValue = placement; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null && PlacementValue is not null) - { - var propertyName = settings.Inferrer.Field(FieldValue); - writer.WritePropertyName(propertyName); - JsonSerializer.Serialize(writer, PlacementValue, options); - } - - if (MultiValueModeValue is not null) - { - writer.WritePropertyName("multi_value_mode"); - JsonSerializer.Serialize(writer, MultiValueModeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs deleted file mode 100644 index 3fd405c221e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedDistanceFeatureQuery.g.cs +++ /dev/null @@ -1,329 +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.QueryDsl; - -public sealed partial class UntypedDistanceFeatureQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - [JsonInclude, JsonPropertyName("origin")] - public object Origin { get; set; } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public object Pivot { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } -} - -public sealed partial class UntypedDistanceFeatureQueryDescriptor : SerializableDescriptor> -{ - internal UntypedDistanceFeatureQueryDescriptor(Action> configure) => configure.Invoke(this); - - public UntypedDistanceFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private object OriginValue { get; set; } - private object PivotValue { get; set; } - private string? QueryNameValue { 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 UntypedDistanceFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Origin(object origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Pivot(object pivot) - { - PivotValue = pivot; - return Self; - } - - public UntypedDistanceFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UntypedDistanceFeatureQueryDescriptor : SerializableDescriptor -{ - internal UntypedDistanceFeatureQueryDescriptor(Action configure) => configure.Invoke(this); - - public UntypedDistanceFeatureQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private object OriginValue { get; set; } - private object PivotValue { get; set; } - private string? QueryNameValue { 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 UntypedDistanceFeatureQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Name of the field used to calculate distances. This field must meet the following criteria: - /// be a date, date_nanos or geo_point field; - /// have an index mapping parameter value of true, which is the default; - /// have an doc_values mapping parameter value of true, which is the default. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date or point of origin used to calculate distances. - /// If the field value is a date or date_nanos field, the origin value must be a date. - /// Date Math, such as now-1h, is supported. - /// If the field value is a geo_point field, the origin value must be a geopoint. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Origin(object origin) - { - OriginValue = origin; - return Self; - } - - /// - /// - /// Distance from the origin at which relevance scores receive half of the boost value. - /// If the field value is a date or date_nanos field, the pivot value must be a time unit, such as 1h or 10d. If the field value is a geo_point field, the pivot value must be a distance unit, such as 1km or 12m. - /// - /// - public UntypedDistanceFeatureQueryDescriptor Pivot(object pivot) - { - PivotValue = pivot; - return Self; - } - - public UntypedDistanceFeatureQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("origin"); - JsonSerializer.Serialize(writer, OriginValue, options); - writer.WritePropertyName("pivot"); - JsonSerializer.Serialize(writer, PivotValue, options); - 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/UntypedRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs deleted file mode 100644 index 4a324ee690e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/UntypedRangeQuery.g.cs +++ /dev/null @@ -1,643 +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.QueryDsl; - -internal sealed partial class UntypedRangeQueryConverter : JsonConverter -{ - public override UntypedRangeQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new UntypedRangeQuery(fieldName); - 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 == "format") - { - variant.Format = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gt") - { - variant.Gt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "gte") - { - variant.Gte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lt") - { - variant.Lt = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "lte") - { - variant.Lte = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "relation") - { - variant.Relation = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "time_zone") - { - variant.TimeZone = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, UntypedRangeQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize UntypedRangeQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (!string.IsNullOrEmpty(value.Format)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(value.Format); - } - - if (value.Gt is not null) - { - writer.WritePropertyName("gt"); - JsonSerializer.Serialize(writer, value.Gt, options); - } - - if (value.Gte is not null) - { - writer.WritePropertyName("gte"); - JsonSerializer.Serialize(writer, value.Gte, options); - } - - if (value.Lt is not null) - { - writer.WritePropertyName("lt"); - JsonSerializer.Serialize(writer, value.Lt, options); - } - - if (value.Lte is not null) - { - writer.WritePropertyName("lte"); - JsonSerializer.Serialize(writer, value.Lte, options); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (value.Relation is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, value.Relation, options); - } - - if (!string.IsNullOrEmpty(value.TimeZone)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(value.TimeZone); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(UntypedRangeQueryConverter))] -public sealed partial class UntypedRangeQuery -{ - public UntypedRangeQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Date format used to convert date values in the query. - /// - /// - public string? Format { get; set; } - - /// - /// - /// Greater than. - /// - /// - public object? Gt { get; set; } - - /// - /// - /// Greater than or equal to. - /// - /// - public object? Gte { get; set; } - - /// - /// - /// Less than. - /// - /// - public object? Lt { get; set; } - - /// - /// - /// Less than or equal to. - /// - /// - public object? Lte { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? Relation { get; set; } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC. - /// - /// - public string? TimeZone { get; set; } -} - -public sealed partial class UntypedRangeQueryDescriptor : SerializableDescriptor> -{ - internal UntypedRangeQueryDescriptor(Action> configure) => configure.Invoke(this); - - public UntypedRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - private object? GtValue { get; set; } - private object? GteValue { get; set; } - private object? LtValue { get; set; } - private object? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? TimeZoneValue { 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 UntypedRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public UntypedRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public UntypedRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UntypedRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date format used to convert date values in the query. - /// - /// - public UntypedRangeQueryDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public UntypedRangeQueryDescriptor Gt(object? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public UntypedRangeQueryDescriptor Gte(object? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public UntypedRangeQueryDescriptor Lt(object? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public UntypedRangeQueryDescriptor Lte(object? lte) - { - LteValue = lte; - return Self; - } - - public UntypedRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public UntypedRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC. - /// - /// - public UntypedRangeQueryDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GtValue is not null) - { - writer.WritePropertyName("gt"); - JsonSerializer.Serialize(writer, GtValue, options); - } - - if (GteValue is not null) - { - writer.WritePropertyName("gte"); - JsonSerializer.Serialize(writer, GteValue, options); - } - - if (LtValue is not null) - { - writer.WritePropertyName("lt"); - JsonSerializer.Serialize(writer, LtValue, options); - } - - if (LteValue is not null) - { - writer.WritePropertyName("lte"); - JsonSerializer.Serialize(writer, LteValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class UntypedRangeQueryDescriptor : SerializableDescriptor -{ - internal UntypedRangeQueryDescriptor(Action configure) => configure.Invoke(this); - - public UntypedRangeQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? FormatValue { get; set; } - private object? GtValue { get; set; } - private object? GteValue { get; set; } - private object? LtValue { get; set; } - private object? LteValue { get; set; } - private string? QueryNameValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? RelationValue { get; set; } - private string? TimeZoneValue { 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 UntypedRangeQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - public UntypedRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public UntypedRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public UntypedRangeQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Date format used to convert date values in the query. - /// - /// - public UntypedRangeQueryDescriptor Format(string? format) - { - FormatValue = format; - return Self; - } - - /// - /// - /// Greater than. - /// - /// - public UntypedRangeQueryDescriptor Gt(object? gt) - { - GtValue = gt; - return Self; - } - - /// - /// - /// Greater than or equal to. - /// - /// - public UntypedRangeQueryDescriptor Gte(object? gte) - { - GteValue = gte; - return Self; - } - - /// - /// - /// Less than. - /// - /// - public UntypedRangeQueryDescriptor Lt(object? lt) - { - LtValue = lt; - return Self; - } - - /// - /// - /// Less than or equal to. - /// - /// - public UntypedRangeQueryDescriptor Lte(object? lte) - { - LteValue = lte; - return Self; - } - - public UntypedRangeQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Indicates how the range query matches values for range fields. - /// - /// - public UntypedRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.RangeRelation? relation) - { - RelationValue = relation; - return Self; - } - - /// - /// - /// Coordinated Universal Time (UTC) offset or IANA time zone used to convert date values in the query to UTC. - /// - /// - public UntypedRangeQueryDescriptor TimeZone(string? timeZone) - { - TimeZoneValue = timeZone; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (!string.IsNullOrEmpty(FormatValue)) - { - writer.WritePropertyName("format"); - writer.WriteStringValue(FormatValue); - } - - if (GtValue is not null) - { - writer.WritePropertyName("gt"); - JsonSerializer.Serialize(writer, GtValue, options); - } - - if (GteValue is not null) - { - writer.WritePropertyName("gte"); - JsonSerializer.Serialize(writer, GteValue, options); - } - - if (LtValue is not null) - { - writer.WritePropertyName("lt"); - JsonSerializer.Serialize(writer, LtValue, options); - } - - if (LteValue is not null) - { - writer.WritePropertyName("lte"); - JsonSerializer.Serialize(writer, LteValue, options); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (RelationValue is not null) - { - writer.WritePropertyName("relation"); - JsonSerializer.Serialize(writer, RelationValue, options); - } - - if (!string.IsNullOrEmpty(TimeZoneValue)) - { - writer.WritePropertyName("time_zone"); - writer.WriteStringValue(TimeZoneValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WildcardQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WildcardQuery.g.cs deleted file mode 100644 index f45948b7b38..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WildcardQuery.g.cs +++ /dev/null @@ -1,483 +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.QueryDsl; - -internal sealed partial class WildcardQueryConverter : JsonConverter -{ - public override WildcardQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - reader.Read(); - var fieldName = reader.GetString(); - reader.Read(); - var variant = new WildcardQuery(fieldName); - 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 == "case_insensitive") - { - variant.CaseInsensitive = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "_name") - { - variant.QueryName = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "rewrite") - { - variant.Rewrite = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "value") - { - variant.Value = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "wildcard") - { - variant.Wildcard = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - reader.Read(); - return variant; - } - - public override void Write(Utf8JsonWriter writer, WildcardQuery value, JsonSerializerOptions options) - { - if (value.Field is null) - throw new JsonException("Unable to serialize WildcardQuery because the `Field` property is not set. Field name queries must include a valid field name."); - if (!options.TryGetClientSettings(out var settings)) - throw new JsonException("Unable to retrieve client settings required to infer field."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(value.Field)); - writer.WriteStartObject(); - if (value.Boost.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(value.Boost.Value); - } - - if (value.CaseInsensitive.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(value.CaseInsensitive.Value); - } - - if (!string.IsNullOrEmpty(value.QueryName)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(value.QueryName); - } - - if (!string.IsNullOrEmpty(value.Rewrite)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(value.Rewrite); - } - - if (!string.IsNullOrEmpty(value.Value)) - { - writer.WritePropertyName("value"); - writer.WriteStringValue(value.Value); - } - - if (!string.IsNullOrEmpty(value.Wildcard)) - { - writer.WritePropertyName("wildcard"); - writer.WriteStringValue(value.Wildcard); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(WildcardQueryConverter))] -public sealed partial class WildcardQuery -{ - public WildcardQuery(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - Field = field; - } - - /// - /// - /// 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; } - - /// - /// - /// Allows case insensitive matching of the pattern with the indexed field values when set to true. Default is false which means the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public bool? CaseInsensitive { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - public string? QueryName { get; set; } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public string? Rewrite { get; set; } - - /// - /// - /// Wildcard pattern for terms you wish to find in the provided field. Required, when wildcard is not set. - /// - /// - public string? Value { get; set; } - - /// - /// - /// Wildcard pattern for terms you wish to find in the provided field. Required, when value is not set. - /// - /// - public string? Wildcard { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(WildcardQuery wildcardQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Wildcard(wildcardQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery(WildcardQuery wildcardQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery.Wildcard(wildcardQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery(WildcardQuery wildcardQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.RoleQuery.Wildcard(wildcardQuery); - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery(WildcardQuery wildcardQuery) => Elastic.Clients.Elasticsearch.Serverless.Security.UserQuery.Wildcard(wildcardQuery); -} - -public sealed partial class WildcardQueryDescriptor : SerializableDescriptor> -{ - internal WildcardQueryDescriptor(Action> configure) => configure.Invoke(this); - - public WildcardQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private string? ValueValue { get; set; } - private string? WildcardValue { 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 WildcardQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows case insensitive matching of the pattern with the indexed field values when set to true. Default is false which means the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public WildcardQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public WildcardQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public WildcardQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WildcardQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WildcardQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public WildcardQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Wildcard pattern for terms you wish to find in the provided field. Required, when wildcard is not set. - /// - /// - public WildcardQueryDescriptor Value(string? value) - { - ValueValue = value; - return Self; - } - - /// - /// - /// Wildcard pattern for terms you wish to find in the provided field. Required, when value is not set. - /// - /// - public WildcardQueryDescriptor Wildcard(string? wildcard) - { - WildcardValue = wildcard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - if (!string.IsNullOrEmpty(ValueValue)) - { - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - } - - if (!string.IsNullOrEmpty(WildcardValue)) - { - writer.WritePropertyName("wildcard"); - writer.WriteStringValue(WildcardValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} - -public sealed partial class WildcardQueryDescriptor : SerializableDescriptor -{ - internal WildcardQueryDescriptor(Action configure) => configure.Invoke(this); - - public WildcardQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private bool? CaseInsensitiveValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private string? QueryNameValue { get; set; } - private string? RewriteValue { get; set; } - private string? ValueValue { get; set; } - private string? WildcardValue { 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 WildcardQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// Allows case insensitive matching of the pattern with the indexed field values when set to true. Default is false which means the case sensitivity of matching depends on the underlying field’s mapping. - /// - /// - public WildcardQueryDescriptor CaseInsensitive(bool? caseInsensitive = true) - { - CaseInsensitiveValue = caseInsensitive; - return Self; - } - - public WildcardQueryDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - public WildcardQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WildcardQueryDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public WildcardQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - /// - /// - /// Method used to rewrite the query. - /// - /// - public WildcardQueryDescriptor Rewrite(string? rewrite) - { - RewriteValue = rewrite; - return Self; - } - - /// - /// - /// Wildcard pattern for terms you wish to find in the provided field. Required, when wildcard is not set. - /// - /// - public WildcardQueryDescriptor Value(string? value) - { - ValueValue = value; - return Self; - } - - /// - /// - /// Wildcard pattern for terms you wish to find in the provided field. Required, when value is not set. - /// - /// - public WildcardQueryDescriptor Wildcard(string? wildcard) - { - WildcardValue = wildcard; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (FieldValue is null) - throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); - writer.WriteStartObject(); - writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - if (CaseInsensitiveValue.HasValue) - { - writer.WritePropertyName("case_insensitive"); - writer.WriteBooleanValue(CaseInsensitiveValue.Value); - } - - if (!string.IsNullOrEmpty(QueryNameValue)) - { - writer.WritePropertyName("_name"); - writer.WriteStringValue(QueryNameValue); - } - - if (!string.IsNullOrEmpty(RewriteValue)) - { - writer.WritePropertyName("rewrite"); - writer.WriteStringValue(RewriteValue); - } - - if (!string.IsNullOrEmpty(ValueValue)) - { - writer.WritePropertyName("value"); - writer.WriteStringValue(ValueValue); - } - - if (!string.IsNullOrEmpty(WildcardValue)) - { - writer.WritePropertyName("wildcard"); - writer.WriteStringValue(WildcardValue); - } - - writer.WriteEndObject(); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WrapperQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WrapperQuery.g.cs deleted file mode 100644 index c50c064a3b9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryDsl/WrapperQuery.g.cs +++ /dev/null @@ -1,120 +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.QueryDsl; - -public sealed partial class WrapperQuery -{ - /// - /// - /// 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. - /// - /// - [JsonInclude, JsonPropertyName("boost")] - public float? Boost { get; set; } - - /// - /// - /// A base64 encoded query. - /// The binary data format can be any of JSON, YAML, CBOR or SMILE encodings - /// - /// - [JsonInclude, JsonPropertyName("query")] - public string Query { get; set; } - [JsonInclude, JsonPropertyName("_name")] - public string? QueryName { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query(WrapperQuery wrapperQuery) => Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query.Wrapper(wrapperQuery); -} - -public sealed partial class WrapperQueryDescriptor : SerializableDescriptor -{ - internal WrapperQueryDescriptor(Action configure) => configure.Invoke(this); - - public WrapperQueryDescriptor() : base() - { - } - - private float? BoostValue { get; set; } - private string QueryValue { get; set; } - private string? QueryNameValue { 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 WrapperQueryDescriptor Boost(float? boost) - { - BoostValue = boost; - return Self; - } - - /// - /// - /// A base64 encoded query. - /// The binary data format can be any of JSON, YAML, CBOR or SMILE encodings - /// - /// - public WrapperQueryDescriptor Query(string query) - { - QueryValue = query; - return Self; - } - - public WrapperQueryDescriptor QueryName(string? queryName) - { - QueryNameValue = queryName; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (BoostValue.HasValue) - { - writer.WritePropertyName("boost"); - writer.WriteNumberValue(BoostValue.Value); - } - - writer.WritePropertyName("query"); - writer.WriteStringValue(QueryValue); - 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/QueryRules/QueryRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs deleted file mode 100644 index 9101bf5a97b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRule.g.cs +++ /dev/null @@ -1,202 +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.QueryRules; - -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")] - public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType Type { get; set; } -} - -public sealed partial class QueryRuleDescriptor : SerializableDescriptor -{ - internal QueryRuleDescriptor(Action configure) => configure.Invoke(this); - - public QueryRuleDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions ActionsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor ActionsDescriptor { get; set; } - private Action ActionsDescriptorAction { get; set; } - private ICollection CriteriaValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor CriteriaDescriptor { get; set; } - private Action CriteriaDescriptorAction { get; set; } - private Action[] CriteriaDescriptorActions { get; set; } - private int? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id RuleIdValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType TypeValue { get; set; } - - public QueryRuleDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActions actions) - { - ActionsDescriptor = null; - ActionsDescriptorAction = null; - ActionsValue = actions; - return Self; - } - - public QueryRuleDescriptor Actions(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor descriptor) - { - ActionsValue = null; - ActionsDescriptorAction = null; - ActionsDescriptor = descriptor; - return Self; - } - - public QueryRuleDescriptor Actions(Action configure) - { - ActionsValue = null; - ActionsDescriptor = null; - ActionsDescriptorAction = configure; - return Self; - } - - public QueryRuleDescriptor Criteria(ICollection criteria) - { - CriteriaDescriptor = null; - CriteriaDescriptorAction = null; - CriteriaDescriptorActions = null; - CriteriaValue = criteria; - return Self; - } - - public QueryRuleDescriptor Criteria(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor descriptor) - { - CriteriaValue = null; - CriteriaDescriptorAction = null; - CriteriaDescriptorActions = null; - CriteriaDescriptor = descriptor; - return Self; - } - - public QueryRuleDescriptor Criteria(Action configure) - { - CriteriaValue = null; - CriteriaDescriptor = null; - CriteriaDescriptorActions = null; - CriteriaDescriptorAction = configure; - return Self; - } - - public QueryRuleDescriptor Criteria(params Action[] configure) - { - CriteriaValue = null; - CriteriaDescriptor = null; - CriteriaDescriptorAction = null; - CriteriaDescriptorActions = configure; - return Self; - } - - public QueryRuleDescriptor Priority(int? priority) - { - PriorityValue = priority; - return Self; - } - - public QueryRuleDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId) - { - RuleIdValue = ruleId; - return Self; - } - - public QueryRuleDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleType type) - { - TypeValue = type; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ActionsDescriptor is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsDescriptor, options); - } - else if (ActionsDescriptorAction is not null) - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleActionsDescriptor(ActionsDescriptorAction), options); - } - else - { - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - } - - if (CriteriaDescriptor is not null) - { - writer.WritePropertyName("criteria"); - JsonSerializer.Serialize(writer, CriteriaDescriptor, options); - } - else if (CriteriaDescriptorAction is not null) - { - writer.WritePropertyName("criteria"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor(CriteriaDescriptorAction), options); - } - else if (CriteriaDescriptorActions is not null) - { - writer.WritePropertyName("criteria"); - if (CriteriaDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in CriteriaDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaDescriptor(action), options); - } - - if (CriteriaDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("criteria"); - SingleOrManySerializationHelper.Serialize(CriteriaValue, writer, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - writer.WritePropertyName("rule_id"); - JsonSerializer.Serialize(writer, RuleIdValue, options); - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleActions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleActions.g.cs deleted file mode 100644 index 4b7f4cc77af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleActions.g.cs +++ /dev/null @@ -1,136 +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.QueryRules; - -public sealed partial class QueryRuleActions -{ - [JsonInclude, JsonPropertyName("docs")] - public ICollection? Docs { get; set; } - [JsonInclude, JsonPropertyName("ids")] - public ICollection? Ids { get; set; } -} - -public sealed partial class QueryRuleActionsDescriptor : SerializableDescriptor -{ - internal QueryRuleActionsDescriptor(Action configure) => configure.Invoke(this); - - public QueryRuleActionsDescriptor() : base() - { - } - - private ICollection? DocsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedDocDescriptor DocsDescriptor { get; set; } - private Action DocsDescriptorAction { get; set; } - private Action[] DocsDescriptorActions { get; set; } - private ICollection? IdsValue { get; set; } - - public QueryRuleActionsDescriptor Docs(ICollection? docs) - { - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsValue = docs; - return Self; - } - - public QueryRuleActionsDescriptor Docs(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedDocDescriptor descriptor) - { - DocsValue = null; - DocsDescriptorAction = null; - DocsDescriptorActions = null; - DocsDescriptor = descriptor; - return Self; - } - - public QueryRuleActionsDescriptor Docs(Action configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorActions = null; - DocsDescriptorAction = configure; - return Self; - } - - public QueryRuleActionsDescriptor Docs(params Action[] configure) - { - DocsValue = null; - DocsDescriptor = null; - DocsDescriptorAction = null; - DocsDescriptorActions = configure; - return Self; - } - - public QueryRuleActionsDescriptor Ids(ICollection? ids) - { - IdsValue = ids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DocsDescriptor is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, DocsDescriptor, options); - writer.WriteEndArray(); - } - else if (DocsDescriptorAction is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedDocDescriptor(DocsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (DocsDescriptorActions is not null) - { - writer.WritePropertyName("docs"); - writer.WriteStartArray(); - foreach (var action in DocsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PinnedDocDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (DocsValue is not null) - { - writer.WritePropertyName("docs"); - JsonSerializer.Serialize(writer, DocsValue, options); - } - - if (IdsValue is not null) - { - writer.WritePropertyName("ids"); - JsonSerializer.Serialize(writer, IdsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs deleted file mode 100644 index 502a841f2e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs +++ /dev/null @@ -1,89 +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.QueryRules; - -public sealed partial class QueryRuleCriteria -{ - [JsonInclude, JsonPropertyName("metadata")] - public string? Metadata { get; set; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaType Type { get; set; } - [JsonInclude, JsonPropertyName("values")] - public ICollection? Values { get; set; } -} - -public sealed partial class QueryRuleCriteriaDescriptor : SerializableDescriptor -{ - internal QueryRuleCriteriaDescriptor(Action configure) => configure.Invoke(this); - - public QueryRuleCriteriaDescriptor() : base() - { - } - - private string? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaType TypeValue { get; set; } - private ICollection? ValuesValue { get; set; } - - public QueryRuleCriteriaDescriptor Metadata(string? metadata) - { - MetadataValue = metadata; - return Self; - } - - public QueryRuleCriteriaDescriptor Type(Elastic.Clients.Elasticsearch.Serverless.QueryRules.QueryRuleCriteriaType type) - { - TypeValue = type; - return Self; - } - - public QueryRuleCriteriaDescriptor Values(ICollection? values) - { - ValuesValue = values; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(MetadataValue)) - { - writer.WritePropertyName("metadata"); - writer.WriteStringValue(MetadataValue); - } - - writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); - if (ValuesValue is not null) - { - writer.WritePropertyName("values"); - JsonSerializer.Serialize(writer, ValuesValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file 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 deleted file mode 100644 index 68c61bb2325..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs +++ /dev/null @@ -1,63 +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.QueryRules; - -public sealed partial class QueryRulesetListItem -{ - /// - /// - /// A map of criteria type (e.g. exact) to the number of rules of that type - /// - /// - [JsonInclude, JsonPropertyName("rule_criteria_types_counts")] - public IReadOnlyDictionary RuleCriteriaTypesCounts { get; init; } - - /// - /// - /// Ruleset unique identifier - /// - /// - [JsonInclude, JsonPropertyName("ruleset_id")] - public string RulesetId { get; init; } - - /// - /// - /// The number of rules associated with this ruleset - /// - /// - [JsonInclude, JsonPropertyName("rule_total_count")] - public int RuleTotalCount { get; init; } - - /// - /// - /// A map of rule type (e.g. pinned) to the number of rules of that type - /// - /// - [JsonInclude, JsonPropertyName("rule_type_counts")] - public IReadOnlyDictionary RuleTypeCounts { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs deleted file mode 100644 index 1cd9ee2facd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryRules/QueryRulesetMatchedRule.g.cs +++ /dev/null @@ -1,47 +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.QueryRules; - -public sealed partial class QueryRulesetMatchedRule -{ - /// - /// - /// Rule unique identifier within that ruleset - /// - /// - [JsonInclude, JsonPropertyName("rule_id")] - public string RuleId { get; init; } - - /// - /// - /// Ruleset unique identifier - /// - /// - [JsonInclude, JsonPropertyName("ruleset_id")] - public string RulesetId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryVectorBuilder.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryVectorBuilder.g.cs deleted file mode 100644 index 52036aa17c6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/QueryVectorBuilder.g.cs +++ /dev/null @@ -1,227 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -[JsonConverter(typeof(QueryVectorBuilderConverter))] -public sealed partial class QueryVectorBuilder -{ - internal QueryVectorBuilder(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static QueryVectorBuilder TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.TextEmbedding textEmbedding) => new QueryVectorBuilder("text_embedding", textEmbedding); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class QueryVectorBuilderConverter : JsonConverter -{ - public override QueryVectorBuilder Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "text_embedding") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'QueryVectorBuilder' from the response."); - } - - var result = new QueryVectorBuilder(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, QueryVectorBuilder value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "text_embedding": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.TextEmbedding)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class QueryVectorBuilderDescriptor : SerializableDescriptor> -{ - internal QueryVectorBuilderDescriptor(Action> configure) => configure.Invoke(this); - - public QueryVectorBuilderDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private QueryVectorBuilderDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private QueryVectorBuilderDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public QueryVectorBuilderDescriptor TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.TextEmbedding textEmbedding) => Set(textEmbedding, "text_embedding"); - public QueryVectorBuilderDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class QueryVectorBuilderDescriptor : SerializableDescriptor -{ - internal QueryVectorBuilderDescriptor(Action configure) => configure.Invoke(this); - - public QueryVectorBuilderDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private QueryVectorBuilderDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private QueryVectorBuilderDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public QueryVectorBuilderDescriptor TextEmbedding(Elastic.Clients.Elasticsearch.Serverless.TextEmbedding textEmbedding) => Set(textEmbedding, "text_embedding"); - public QueryVectorBuilderDescriptor TextEmbedding(Action configure) => Set(configure, "text_embedding"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs deleted file mode 100644 index 100f1f40cc2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RRFRetriever.g.cs +++ /dev/null @@ -1,514 +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 RRFRetriever -{ - /// - /// - /// Query to filter the documents that can match. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public float? MinScore { get; set; } - - /// - /// - /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. - /// - /// - [JsonInclude, JsonPropertyName("rank_constant")] - public int? RankConstant { get; set; } - - /// - /// - /// This value determines the size of the individual result sets per query. - /// - /// - [JsonInclude, JsonPropertyName("rank_window_size")] - public int? RankWindowSize { get; set; } - - /// - /// - /// A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them. - /// - /// - [JsonInclude, JsonPropertyName("retrievers")] - public ICollection Retrievers { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(RRFRetriever rRFRetriever) => Elastic.Clients.Elasticsearch.Serverless.Retriever.Rrf(rRFRetriever); -} - -public sealed partial class RRFRetrieverDescriptor : SerializableDescriptor> -{ - internal RRFRetrieverDescriptor(Action> configure) => configure.Invoke(this); - - public RRFRetrieverDescriptor() : base() - { - } - - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private float? MinScoreValue { get; set; } - private int? RankConstantValue { get; set; } - private int? RankWindowSizeValue { get; set; } - private ICollection RetrieversValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieversDescriptor { get; set; } - private Action> RetrieversDescriptorAction { get; set; } - private Action>[] RetrieversDescriptorActions { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public RRFRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public RRFRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public RRFRetrieverDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public RRFRetrieverDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public RRFRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. - /// - /// - public RRFRetrieverDescriptor RankConstant(int? rankConstant) - { - RankConstantValue = rankConstant; - return Self; - } - - /// - /// - /// This value determines the size of the individual result sets per query. - /// - /// - public RRFRetrieverDescriptor RankWindowSize(int? rankWindowSize) - { - RankWindowSizeValue = rankWindowSize; - return Self; - } - - /// - /// - /// A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them. - /// - /// - public RRFRetrieverDescriptor Retrievers(ICollection retrievers) - { - RetrieversDescriptor = null; - RetrieversDescriptorAction = null; - RetrieversDescriptorActions = null; - RetrieversValue = retrievers; - return Self; - } - - public RRFRetrieverDescriptor Retrievers(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieversValue = null; - RetrieversDescriptorAction = null; - RetrieversDescriptorActions = null; - RetrieversDescriptor = descriptor; - return Self; - } - - public RRFRetrieverDescriptor Retrievers(Action> configure) - { - RetrieversValue = null; - RetrieversDescriptor = null; - RetrieversDescriptorActions = null; - RetrieversDescriptorAction = configure; - return Self; - } - - public RRFRetrieverDescriptor Retrievers(params Action>[] configure) - { - RetrieversValue = null; - RetrieversDescriptor = null; - RetrieversDescriptorAction = null; - RetrieversDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (RankConstantValue.HasValue) - { - writer.WritePropertyName("rank_constant"); - writer.WriteNumberValue(RankConstantValue.Value); - } - - if (RankWindowSizeValue.HasValue) - { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); - } - - if (RetrieversDescriptor is not null) - { - writer.WritePropertyName("retrievers"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RetrieversDescriptor, options); - writer.WriteEndArray(); - } - else if (RetrieversDescriptorAction is not null) - { - writer.WritePropertyName("retrievers"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieversDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RetrieversDescriptorActions is not null) - { - writer.WritePropertyName("retrievers"); - writer.WriteStartArray(); - foreach (var action in RetrieversDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("retrievers"); - JsonSerializer.Serialize(writer, RetrieversValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RRFRetrieverDescriptor : SerializableDescriptor -{ - internal RRFRetrieverDescriptor(Action configure) => configure.Invoke(this); - - public RRFRetrieverDescriptor() : base() - { - } - - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private float? MinScoreValue { get; set; } - private int? RankConstantValue { get; set; } - private int? RankWindowSizeValue { get; set; } - private ICollection RetrieversValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieversDescriptor { get; set; } - private Action RetrieversDescriptorAction { get; set; } - private Action[] RetrieversDescriptorActions { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public RRFRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public RRFRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public RRFRetrieverDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public RRFRetrieverDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public RRFRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// This value determines how much influence documents in individual result sets per query have over the final ranked result set. - /// - /// - public RRFRetrieverDescriptor RankConstant(int? rankConstant) - { - RankConstantValue = rankConstant; - return Self; - } - - /// - /// - /// This value determines the size of the individual result sets per query. - /// - /// - public RRFRetrieverDescriptor RankWindowSize(int? rankWindowSize) - { - RankWindowSizeValue = rankWindowSize; - return Self; - } - - /// - /// - /// A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them. - /// - /// - public RRFRetrieverDescriptor Retrievers(ICollection retrievers) - { - RetrieversDescriptor = null; - RetrieversDescriptorAction = null; - RetrieversDescriptorActions = null; - RetrieversValue = retrievers; - return Self; - } - - public RRFRetrieverDescriptor Retrievers(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieversValue = null; - RetrieversDescriptorAction = null; - RetrieversDescriptorActions = null; - RetrieversDescriptor = descriptor; - return Self; - } - - public RRFRetrieverDescriptor Retrievers(Action configure) - { - RetrieversValue = null; - RetrieversDescriptor = null; - RetrieversDescriptorActions = null; - RetrieversDescriptorAction = configure; - return Self; - } - - public RRFRetrieverDescriptor Retrievers(params Action[] configure) - { - RetrieversValue = null; - RetrieversDescriptor = null; - RetrieversDescriptorAction = null; - RetrieversDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (RankConstantValue.HasValue) - { - writer.WritePropertyName("rank_constant"); - writer.WriteNumberValue(RankConstantValue.Value); - } - - if (RankWindowSizeValue.HasValue) - { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); - } - - if (RetrieversDescriptor is not null) - { - writer.WritePropertyName("retrievers"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, RetrieversDescriptor, options); - writer.WriteEndArray(); - } - else if (RetrieversDescriptorAction is not null) - { - writer.WritePropertyName("retrievers"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieversDescriptorAction), options); - writer.WriteEndArray(); - } - else if (RetrieversDescriptorActions is not null) - { - writer.WritePropertyName("retrievers"); - writer.WriteStartArray(); - foreach (var action in RetrieversDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else - { - writer.WritePropertyName("retrievers"); - JsonSerializer.Serialize(writer, RetrieversValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RecoveryStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RecoveryStats.g.cs deleted file mode 100644 index 55616ca2e55..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RecoveryStats.g.cs +++ /dev/null @@ -1,40 +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 RecoveryStats -{ - [JsonInclude, JsonPropertyName("current_as_source")] - public long CurrentAsSource { get; init; } - [JsonInclude, JsonPropertyName("current_as_target")] - public long CurrentAsTarget { get; init; } - [JsonInclude, JsonPropertyName("throttle_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ThrottleTime { get; init; } - [JsonInclude, JsonPropertyName("throttle_time_in_millis")] - public long ThrottleTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RefreshStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RefreshStats.g.cs deleted file mode 100644 index 12b376f83ee..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RefreshStats.g.cs +++ /dev/null @@ -1,44 +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 RefreshStats -{ - [JsonInclude, JsonPropertyName("external_total")] - public long ExternalTotal { get; init; } - [JsonInclude, JsonPropertyName("external_total_time_in_millis")] - public long ExternalTotalTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("listeners")] - public long Listeners { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RequestCacheStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RequestCacheStats.g.cs deleted file mode 100644 index 23dc7daa443..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RequestCacheStats.g.cs +++ /dev/null @@ -1,42 +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 RequestCacheStats -{ - [JsonInclude, JsonPropertyName("evictions")] - public long Evictions { get; init; } - [JsonInclude, JsonPropertyName("hit_count")] - public long HitCount { get; init; } - [JsonInclude, JsonPropertyName("memory_size")] - public string? MemorySize { get; init; } - [JsonInclude, JsonPropertyName("memory_size_in_bytes")] - public long MemorySizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("miss_count")] - public long MissCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retries.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retries.g.cs deleted file mode 100644 index 4cd24f50923..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retries.g.cs +++ /dev/null @@ -1,36 +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 Retries -{ - [JsonInclude, JsonPropertyName("bulk")] - public long Bulk { get; init; } - [JsonInclude, JsonPropertyName("search")] - public long Search { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs deleted file mode 100644 index f6ba60c8271..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Retriever.g.cs +++ /dev/null @@ -1,287 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless; - -[JsonConverter(typeof(RetrieverConverter))] -public sealed partial class Retriever -{ - internal Retriever(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Retriever Knn(Elastic.Clients.Elasticsearch.Serverless.KnnRetriever knnRetriever) => new Retriever("knn", knnRetriever); - public static Retriever Rrf(Elastic.Clients.Elasticsearch.Serverless.RRFRetriever rRFRetriever) => new Retriever("rrf", rRFRetriever); - public static Retriever Rule(Elastic.Clients.Elasticsearch.Serverless.RuleRetriever ruleRetriever) => new Retriever("rule", ruleRetriever); - public static Retriever Standard(Elastic.Clients.Elasticsearch.Serverless.StandardRetriever standardRetriever) => new Retriever("standard", standardRetriever); - public static Retriever TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker textSimilarityReranker) => new Retriever("text_similarity_reranker", textSimilarityReranker); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class RetrieverConverter : JsonConverter -{ - public override Retriever Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "knn") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rrf") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "rule") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "standard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "text_similarity_reranker") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Retriever' from the response."); - } - - var result = new Retriever(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Retriever value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "knn": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.KnnRetriever)value.Variant, options); - break; - case "rrf": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.RRFRetriever)value.Variant, options); - break; - case "rule": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.RuleRetriever)value.Variant, options); - break; - case "standard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.StandardRetriever)value.Variant, options); - break; - case "text_similarity_reranker": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RetrieverDescriptor : SerializableDescriptor> -{ - internal RetrieverDescriptor(Action> configure) => configure.Invoke(this); - - public RetrieverDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RetrieverDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RetrieverDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RetrieverDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnRetriever knnRetriever) => Set(knnRetriever, "knn"); - public RetrieverDescriptor Knn(Action> configure) => Set(configure, "knn"); - public RetrieverDescriptor Rrf(Elastic.Clients.Elasticsearch.Serverless.RRFRetriever rRFRetriever) => Set(rRFRetriever, "rrf"); - public RetrieverDescriptor Rrf(Action> configure) => Set(configure, "rrf"); - public RetrieverDescriptor Rule(Elastic.Clients.Elasticsearch.Serverless.RuleRetriever ruleRetriever) => Set(ruleRetriever, "rule"); - public RetrieverDescriptor Rule(Action> configure) => Set(configure, "rule"); - public RetrieverDescriptor Standard(Elastic.Clients.Elasticsearch.Serverless.StandardRetriever standardRetriever) => Set(standardRetriever, "standard"); - public RetrieverDescriptor Standard(Action> configure) => Set(configure, "standard"); - public RetrieverDescriptor TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker textSimilarityReranker) => Set(textSimilarityReranker, "text_similarity_reranker"); - public RetrieverDescriptor TextSimilarityReranker(Action> configure) => Set(configure, "text_similarity_reranker"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RetrieverDescriptor : SerializableDescriptor -{ - internal RetrieverDescriptor(Action configure) => configure.Invoke(this); - - public RetrieverDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RetrieverDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RetrieverDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RetrieverDescriptor Knn(Elastic.Clients.Elasticsearch.Serverless.KnnRetriever knnRetriever) => Set(knnRetriever, "knn"); - public RetrieverDescriptor Knn(Action configure) => Set(configure, "knn"); - public RetrieverDescriptor Rrf(Elastic.Clients.Elasticsearch.Serverless.RRFRetriever rRFRetriever) => Set(rRFRetriever, "rrf"); - public RetrieverDescriptor Rrf(Action configure) => Set(configure, "rrf"); - public RetrieverDescriptor Rule(Elastic.Clients.Elasticsearch.Serverless.RuleRetriever ruleRetriever) => Set(ruleRetriever, "rule"); - public RetrieverDescriptor Rule(Action configure) => Set(configure, "rule"); - public RetrieverDescriptor Standard(Elastic.Clients.Elasticsearch.Serverless.StandardRetriever standardRetriever) => Set(standardRetriever, "standard"); - public RetrieverDescriptor Standard(Action configure) => Set(configure, "standard"); - public RetrieverDescriptor TextSimilarityReranker(Elastic.Clients.Elasticsearch.Serverless.TextSimilarityReranker textSimilarityReranker) => Set(textSimilarityReranker, "text_similarity_reranker"); - public RetrieverDescriptor TextSimilarityReranker(Action configure) => Set(configure, "text_similarity_reranker"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs deleted file mode 100644 index d4b7c4c0874..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/RuleRetriever.g.cs +++ /dev/null @@ -1,486 +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 RuleRetriever -{ - /// - /// - /// Query to filter the documents that can match. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// The match criteria that will determine if a rule in the provided rulesets should be applied. - /// - /// - [JsonInclude, JsonPropertyName("match_criteria")] - public object MatchCriteria { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public float? MinScore { get; set; } - - /// - /// - /// This value determines the size of the individual result set. - /// - /// - [JsonInclude, JsonPropertyName("rank_window_size")] - public int? RankWindowSize { get; set; } - - /// - /// - /// The retriever whose results rules should be applied to. - /// - /// - [JsonInclude, JsonPropertyName("retriever")] - public Elastic.Clients.Elasticsearch.Serverless.Retriever Retriever { get; set; } - - /// - /// - /// The ruleset IDs containing the rules this retriever is evaluating against. - /// - /// - [JsonInclude, JsonPropertyName("ruleset_ids")] - public ICollection RulesetIds { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(RuleRetriever ruleRetriever) => Elastic.Clients.Elasticsearch.Serverless.Retriever.Rule(ruleRetriever); -} - -public sealed partial class RuleRetrieverDescriptor : SerializableDescriptor> -{ - internal RuleRetrieverDescriptor(Action> configure) => configure.Invoke(this); - - public RuleRetrieverDescriptor() : base() - { - } - - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private object MatchCriteriaValue { get; set; } - private float? MinScoreValue { get; set; } - private int? RankWindowSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } - private Action> RetrieverDescriptorAction { get; set; } - private ICollection RulesetIdsValue { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public RuleRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public RuleRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public RuleRetrieverDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public RuleRetrieverDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// The match criteria that will determine if a rule in the provided rulesets should be applied. - /// - /// - public RuleRetrieverDescriptor MatchCriteria(object matchCriteria) - { - MatchCriteriaValue = matchCriteria; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public RuleRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// This value determines the size of the individual result set. - /// - /// - public RuleRetrieverDescriptor RankWindowSize(int? rankWindowSize) - { - RankWindowSizeValue = rankWindowSize; - return Self; - } - - /// - /// - /// The retriever whose results rules should be applied to. - /// - /// - public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) - { - RetrieverDescriptor = null; - RetrieverDescriptorAction = null; - RetrieverValue = retriever; - return Self; - } - - public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieverValue = null; - RetrieverDescriptorAction = null; - RetrieverDescriptor = descriptor; - return Self; - } - - public RuleRetrieverDescriptor Retriever(Action> configure) - { - RetrieverValue = null; - RetrieverDescriptor = null; - RetrieverDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ruleset IDs containing the rules this retriever is evaluating against. - /// - /// - public RuleRetrieverDescriptor RulesetIds(ICollection rulesetIds) - { - RulesetIdsValue = rulesetIds; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - writer.WritePropertyName("match_criteria"); - JsonSerializer.Serialize(writer, MatchCriteriaValue, options); - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (RankWindowSizeValue.HasValue) - { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); - } - - if (RetrieverDescriptor is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverDescriptor, options); - } - else if (RetrieverDescriptorAction is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); - } - else - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverValue, options); - } - - writer.WritePropertyName("ruleset_ids"); - JsonSerializer.Serialize(writer, RulesetIdsValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class RuleRetrieverDescriptor : SerializableDescriptor -{ - internal RuleRetrieverDescriptor(Action configure) => configure.Invoke(this); - - public RuleRetrieverDescriptor() : base() - { - } - - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private object MatchCriteriaValue { get; set; } - private float? MinScoreValue { get; set; } - private int? RankWindowSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } - private Action RetrieverDescriptorAction { get; set; } - private ICollection RulesetIdsValue { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public RuleRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public RuleRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public RuleRetrieverDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public RuleRetrieverDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// The match criteria that will determine if a rule in the provided rulesets should be applied. - /// - /// - public RuleRetrieverDescriptor MatchCriteria(object matchCriteria) - { - MatchCriteriaValue = matchCriteria; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public RuleRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// This value determines the size of the individual result set. - /// - /// - public RuleRetrieverDescriptor RankWindowSize(int? rankWindowSize) - { - RankWindowSizeValue = rankWindowSize; - return Self; - } - - /// - /// - /// The retriever whose results rules should be applied to. - /// - /// - public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) - { - RetrieverDescriptor = null; - RetrieverDescriptorAction = null; - RetrieverValue = retriever; - return Self; - } - - public RuleRetrieverDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieverValue = null; - RetrieverDescriptorAction = null; - RetrieverDescriptor = descriptor; - return Self; - } - - public RuleRetrieverDescriptor Retriever(Action configure) - { - RetrieverValue = null; - RetrieverDescriptor = null; - RetrieverDescriptorAction = configure; - return Self; - } - - /// - /// - /// The ruleset IDs containing the rules this retriever is evaluating against. - /// - /// - public RuleRetrieverDescriptor RulesetIds(ICollection rulesetIds) - { - RulesetIdsValue = rulesetIds; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - writer.WritePropertyName("match_criteria"); - JsonSerializer.Serialize(writer, MatchCriteriaValue, options); - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (RankWindowSizeValue.HasValue) - { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); - } - - if (RetrieverDescriptor is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverDescriptor, options); - } - else if (RetrieverDescriptorAction is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); - } - else - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverValue, options); - } - - writer.WritePropertyName("ruleset_ids"); - JsonSerializer.Serialize(writer, RulesetIdsValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScoreSort.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScoreSort.g.cs deleted file mode 100644 index 0d449ab5a07..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScoreSort.g.cs +++ /dev/null @@ -1,63 +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 ScoreSort -{ - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } -} - -public sealed partial class ScoreSortDescriptor : SerializableDescriptor -{ - internal ScoreSortDescriptor(Action configure) => configure.Invoke(this); - - public ScoreSortDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.SortOrder? OrderValue { get; set; } - - public ScoreSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (OrderValue is not null) - { - writer.WritePropertyName("order"); - JsonSerializer.Serialize(writer, OrderValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs deleted file mode 100644 index a3b666f40e3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Script.g.cs +++ /dev/null @@ -1,170 +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 Script -{ - /// - /// - /// 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 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 deleted file mode 100644 index 8f8f4f1b8c8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptField.g.cs +++ /dev/null @@ -1,108 +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 ScriptField -{ - [JsonInclude, JsonPropertyName("ignore_failure")] - public bool? IgnoreFailure { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } -} - -public sealed partial class ScriptFieldDescriptor : SerializableDescriptor -{ - internal ScriptFieldDescriptor(Action configure) => configure.Invoke(this); - - 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) - { - IgnoreFailureValue = ignoreFailure; - return Self; - } - - 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(); - if (IgnoreFailureValue.HasValue) - { - writer.WritePropertyName("ignore_failure"); - writer.WriteBooleanValue(IgnoreFailureValue.Value); - } - - 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 deleted file mode 100644 index eb5d5f942cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ScriptSort.g.cs +++ /dev/null @@ -1,326 +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 ScriptSort -{ - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.SortMode? Mode { get; set; } - [JsonInclude, JsonPropertyName("nested")] - public Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? Nested { get; set; } - [JsonInclude, JsonPropertyName("order")] - public Elastic.Clients.Elasticsearch.Serverless.SortOrder? Order { get; set; } - [JsonInclude, JsonPropertyName("script")] - public Elastic.Clients.Elasticsearch.Serverless.Script Script { get; set; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.ScriptSortType? Type { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.SortOptions(ScriptSort scriptSort) => Elastic.Clients.Elasticsearch.Serverless.SortOptions.Script(scriptSort); -} - -public sealed partial class ScriptSortDescriptor : SerializableDescriptor> -{ - internal ScriptSortDescriptor(Action> configure) => configure.Invoke(this); - - public ScriptSortDescriptor() : base() - { - } - - 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.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) - { - ModeValue = mode; - return Self; - } - - public ScriptSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) - { - NestedDescriptor = null; - NestedDescriptorAction = null; - NestedValue = nested; - return Self; - } - - public ScriptSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) - { - NestedValue = null; - NestedDescriptorAction = null; - NestedDescriptor = descriptor; - return Self; - } - - public ScriptSortDescriptor Nested(Action> configure) - { - NestedValue = null; - NestedDescriptor = null; - NestedDescriptorAction = configure; - return Self; - } - - public ScriptSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - 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"); - JsonSerializer.Serialize(writer, OrderValue, 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"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ScriptSortDescriptor : SerializableDescriptor -{ - internal ScriptSortDescriptor(Action configure) => configure.Invoke(this); - - public ScriptSortDescriptor() : base() - { - } - - 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.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) - { - ModeValue = mode; - return Self; - } - - public ScriptSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValue? nested) - { - NestedDescriptor = null; - NestedDescriptorAction = null; - NestedValue = nested; - return Self; - } - - public ScriptSortDescriptor Nested(Elastic.Clients.Elasticsearch.Serverless.NestedSortValueDescriptor descriptor) - { - NestedValue = null; - NestedDescriptorAction = null; - NestedDescriptor = descriptor; - return Self; - } - - public ScriptSortDescriptor Nested(Action configure) - { - NestedValue = null; - NestedDescriptor = null; - NestedDescriptorAction = configure; - return Self; - } - - public ScriptSortDescriptor Order(Elastic.Clients.Elasticsearch.Serverless.SortOrder? order) - { - OrderValue = order; - return Self; - } - - 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; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ModeValue is not null) - { - writer.WritePropertyName("mode"); - 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"); - JsonSerializer.Serialize(writer, OrderValue, 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"); - JsonSerializer.Serialize(writer, TypeValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SearchStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SearchStats.g.cs deleted file mode 100644 index 713db7ba8f7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SearchStats.g.cs +++ /dev/null @@ -1,68 +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 SearchStats -{ - [JsonInclude, JsonPropertyName("fetch_current")] - public long FetchCurrent { get; init; } - [JsonInclude, JsonPropertyName("fetch_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? FetchTime { get; init; } - [JsonInclude, JsonPropertyName("fetch_time_in_millis")] - public long FetchTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("fetch_total")] - public long FetchTotal { get; init; } - [JsonInclude, JsonPropertyName("groups")] - public IReadOnlyDictionary? Groups { get; init; } - [JsonInclude, JsonPropertyName("open_contexts")] - public long? OpenContexts { get; init; } - [JsonInclude, JsonPropertyName("query_current")] - public long QueryCurrent { get; init; } - [JsonInclude, JsonPropertyName("query_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? QueryTime { get; init; } - [JsonInclude, JsonPropertyName("query_time_in_millis")] - public long QueryTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("query_total")] - public long QueryTotal { get; init; } - [JsonInclude, JsonPropertyName("scroll_current")] - public long ScrollCurrent { get; init; } - [JsonInclude, JsonPropertyName("scroll_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? ScrollTime { get; init; } - [JsonInclude, JsonPropertyName("scroll_time_in_millis")] - public long ScrollTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("scroll_total")] - public long ScrollTotal { get; init; } - [JsonInclude, JsonPropertyName("suggest_current")] - public long SuggestCurrent { get; init; } - [JsonInclude, JsonPropertyName("suggest_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? SuggestTime { get; init; } - [JsonInclude, JsonPropertyName("suggest_time_in_millis")] - public long SuggestTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("suggest_total")] - public long SuggestTotal { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs deleted file mode 100644 index 85cb5f9fb10..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Access.g.cs +++ /dev/null @@ -1,47 +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.Security; - -public sealed partial class Access -{ - /// - /// - /// A list of indices permission entries for cross-cluster replication. - /// - /// - [JsonInclude, JsonPropertyName("replication")] - public IReadOnlyCollection? Replication { get; init; } - - /// - /// - /// A list of indices permission entries for cross-cluster search. - /// - /// - [JsonInclude, JsonPropertyName("search")] - public IReadOnlyCollection? Search { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs deleted file mode 100644 index 78b78a2e8be..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKey.g.cs +++ /dev/null @@ -1,166 +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.Security; - -public sealed partial class ApiKey -{ - /// - /// - /// The access granted to cross-cluster API keys. - /// The access is composed of permissions for cross cluster search and cross cluster replication. - /// At least one of them must be specified. - /// When specified, the new access assignment fully replaces the previously assigned access. - /// - /// - [JsonInclude, JsonPropertyName("access")] - public Elastic.Clients.Elasticsearch.Serverless.Security.Access? Access { get; init; } - - /// - /// - /// Creation time for the API key in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("creation")] - public long Creation { get; init; } - - /// - /// - /// Expiration time for the API key in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("expiration")] - public long? Expiration { get; init; } - - /// - /// - /// Id for the API key - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// Invalidation status for the API key. - /// If the key has been invalidated, it has a value of true. Otherwise, it is false. - /// - /// - [JsonInclude, JsonPropertyName("invalidated")] - public bool Invalidated { get; init; } - - /// - /// - /// If the key has been invalidated, invalidation time in milliseconds. - /// - /// - [JsonInclude, JsonPropertyName("invalidation")] - public long? Invalidation { get; init; } - - /// - /// - /// The owner user’s permissions associated with the API key. - /// It is a point-in-time snapshot captured at creation and subsequent updates. - /// An API key’s effective permissions are an intersection of its assigned privileges and the owner user’s permissions. - /// - /// - [JsonInclude, JsonPropertyName("limited_by")] - public IReadOnlyCollection>? LimitedBy { get; init; } - - /// - /// - /// Metadata of the API key - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary Metadata { get; init; } - - /// - /// - /// Name of the API key. - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// The profile uid for the API key owner principal, if requested and if it exists - /// - /// - [JsonInclude, JsonPropertyName("profile_uid")] - public string? ProfileUid { get; init; } - - /// - /// - /// Realm name of the principal for which this API key was created. - /// - /// - [JsonInclude, JsonPropertyName("realm")] - public string Realm { get; init; } - - /// - /// - /// Realm type of the principal for which this API key was created - /// - /// - [JsonInclude, JsonPropertyName("realm_type")] - public string? RealmType { get; init; } - - /// - /// - /// The role descriptors assigned to this API key when it was created or last updated. - /// An empty role descriptor means the API key inherits the owner user’s permissions. - /// - /// - [JsonInclude, JsonPropertyName("role_descriptors")] - public IReadOnlyDictionary? RoleDescriptors { get; init; } - - /// - /// - /// Sorting values when using the sort parameter with the security.query_api_keys API. - /// - /// - [JsonInclude, JsonPropertyName("_sort")] - public IReadOnlyCollection? Sort { get; init; } - - /// - /// - /// The type of the API key (e.g. rest or cross_cluster). - /// - /// - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyType Type { get; init; } - - /// - /// - /// Principal for which this API key was created - /// - /// - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyAggregation.g.cs deleted file mode 100644 index 53a0e25eabb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyAggregation.g.cs +++ /dev/null @@ -1,452 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(ApiKeyAggregationConverter))] -public sealed partial class ApiKeyAggregation -{ - internal ApiKeyAggregation(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static ApiKeyAggregation Cardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation cardinalityAggregation) => new ApiKeyAggregation("cardinality", cardinalityAggregation); - public static ApiKeyAggregation Composite(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation compositeAggregation) => new ApiKeyAggregation("composite", compositeAggregation); - public static ApiKeyAggregation DateRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation dateRangeAggregation) => new ApiKeyAggregation("date_range", dateRangeAggregation); - public static ApiKeyAggregation Filter(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery apiKeyQueryContainer) => new ApiKeyAggregation("filter", apiKeyQueryContainer); - public static ApiKeyAggregation Filters(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyFiltersAggregation apiKeyFiltersAggregation) => new ApiKeyAggregation("filters", apiKeyFiltersAggregation); - public static ApiKeyAggregation Missing(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation missingAggregation) => new ApiKeyAggregation("missing", missingAggregation); - public static ApiKeyAggregation Range(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation rangeAggregation) => new ApiKeyAggregation("range", rangeAggregation); - public static ApiKeyAggregation Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => new ApiKeyAggregation("terms", termsAggregation); - public static ApiKeyAggregation ValueCount(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation valueCountAggregation) => new ApiKeyAggregation("value_count", valueCountAggregation); - - /// - /// - /// Sub-aggregations for this aggregation. - /// Only applies to bucket aggregations. - /// - /// - [JsonInclude, JsonPropertyName("aggregations")] - public IDictionary? Aggregations { get; set; } - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class ApiKeyAggregationConverter : JsonConverter -{ - public override ApiKeyAggregation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - IDictionary? aggregationsValue = default; - IDictionary? metaValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "aggregations") - { - aggregationsValue = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (propertyName == "meta") - { - metaValue = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (propertyName == "cardinality") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "composite") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "date_range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "filter") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "filters") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "missing") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "value_count") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'ApiKeyAggregation' from the response."); - } - - var result = new ApiKeyAggregation(variantNameValue, variantValue); - result.Aggregations = aggregationsValue; - result.Meta = metaValue; - return result; - } - - public override void Write(Utf8JsonWriter writer, ApiKeyAggregation value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.Meta is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, value.Meta, options); - } - - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "cardinality": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation)value.Variant, options); - break; - case "composite": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation)value.Variant, options); - break; - case "date_range": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation)value.Variant, options); - break; - case "filter": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery)value.Variant, options); - break; - case "filters": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyFiltersAggregation)value.Variant, options); - break; - case "missing": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation)value.Variant, options); - break; - case "range": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation)value.Variant, options); - break; - case "value_count": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ApiKeyAggregationDescriptor : SerializableDescriptor> -{ - internal ApiKeyAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public ApiKeyAggregationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private ApiKeyAggregationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private ApiKeyAggregationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private IDictionary> AggregationsValue { get; set; } - private IDictionary? MetaValue { get; set; } - - /// - /// - /// Sub-aggregations for this aggregation. - /// Only applies to bucket aggregations. - /// - /// - public ApiKeyAggregationDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - public ApiKeyAggregationDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ApiKeyAggregationDescriptor Cardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation cardinalityAggregation) => Set(cardinalityAggregation, "cardinality"); - public ApiKeyAggregationDescriptor Cardinality(Action> configure) => Set(configure, "cardinality"); - public ApiKeyAggregationDescriptor Composite(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation compositeAggregation) => Set(compositeAggregation, "composite"); - public ApiKeyAggregationDescriptor Composite(Action> configure) => Set(configure, "composite"); - public ApiKeyAggregationDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation dateRangeAggregation) => Set(dateRangeAggregation, "date_range"); - public ApiKeyAggregationDescriptor DateRange(Action> configure) => Set(configure, "date_range"); - public ApiKeyAggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery apiKeyQueryContainer) => Set(apiKeyQueryContainer, "filter"); - public ApiKeyAggregationDescriptor Filter(Action> configure) => Set(configure, "filter"); - public ApiKeyAggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyFiltersAggregation apiKeyFiltersAggregation) => Set(apiKeyFiltersAggregation, "filters"); - public ApiKeyAggregationDescriptor Filters(Action> configure) => Set(configure, "filters"); - public ApiKeyAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation missingAggregation) => Set(missingAggregation, "missing"); - public ApiKeyAggregationDescriptor Missing(Action> configure) => Set(configure, "missing"); - public ApiKeyAggregationDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation rangeAggregation) => Set(rangeAggregation, "range"); - public ApiKeyAggregationDescriptor Range(Action> configure) => Set(configure, "range"); - public ApiKeyAggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); - public ApiKeyAggregationDescriptor Terms(Action> configure) => Set(configure, "terms"); - public ApiKeyAggregationDescriptor ValueCount(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation valueCountAggregation) => Set(valueCountAggregation, "value_count"); - public ApiKeyAggregationDescriptor ValueCount(Action> configure) => Set(configure, "value_count"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ApiKeyAggregationDescriptor : SerializableDescriptor -{ - internal ApiKeyAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ApiKeyAggregationDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private ApiKeyAggregationDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private ApiKeyAggregationDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private IDictionary AggregationsValue { get; set; } - private IDictionary? MetaValue { get; set; } - - /// - /// - /// Sub-aggregations for this aggregation. - /// Only applies to bucket aggregations. - /// - /// - public ApiKeyAggregationDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - public ApiKeyAggregationDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public ApiKeyAggregationDescriptor Cardinality(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CardinalityAggregation cardinalityAggregation) => Set(cardinalityAggregation, "cardinality"); - public ApiKeyAggregationDescriptor Cardinality(Action configure) => Set(configure, "cardinality"); - public ApiKeyAggregationDescriptor Composite(Elastic.Clients.Elasticsearch.Serverless.Aggregations.CompositeAggregation compositeAggregation) => Set(compositeAggregation, "composite"); - public ApiKeyAggregationDescriptor Composite(Action configure) => Set(configure, "composite"); - public ApiKeyAggregationDescriptor DateRange(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateRangeAggregation dateRangeAggregation) => Set(dateRangeAggregation, "date_range"); - public ApiKeyAggregationDescriptor DateRange(Action configure) => Set(configure, "date_range"); - public ApiKeyAggregationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyQuery apiKeyQueryContainer) => Set(apiKeyQueryContainer, "filter"); - public ApiKeyAggregationDescriptor Filter(Action configure) => Set(configure, "filter"); - public ApiKeyAggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyFiltersAggregation apiKeyFiltersAggregation) => Set(apiKeyFiltersAggregation, "filters"); - public ApiKeyAggregationDescriptor Filters(Action configure) => Set(configure, "filters"); - public ApiKeyAggregationDescriptor Missing(Elastic.Clients.Elasticsearch.Serverless.Aggregations.MissingAggregation missingAggregation) => Set(missingAggregation, "missing"); - public ApiKeyAggregationDescriptor Missing(Action configure) => Set(configure, "missing"); - public ApiKeyAggregationDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.Aggregations.RangeAggregation rangeAggregation) => Set(rangeAggregation, "range"); - public ApiKeyAggregationDescriptor Range(Action configure) => Set(configure, "range"); - public ApiKeyAggregationDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); - public ApiKeyAggregationDescriptor Terms(Action configure) => Set(configure, "terms"); - public ApiKeyAggregationDescriptor ValueCount(Elastic.Clients.Elasticsearch.Serverless.Aggregations.ValueCountAggregation valueCountAggregation) => Set(valueCountAggregation, "value_count"); - public ApiKeyAggregationDescriptor ValueCount(Action configure) => Set(configure, "value_count"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs deleted file mode 100644 index 2e241b37b09..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyFiltersAggregation.g.cs +++ /dev/null @@ -1,244 +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.Security; - -public sealed partial class ApiKeyFiltersAggregation -{ - /// - /// - /// Collection of queries from which to build buckets. - /// - /// - [JsonInclude, JsonPropertyName("filters")] - public Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? Filters { get; set; } - - /// - /// - /// By default, the named filters aggregation returns the buckets as an object. - /// Set to false to return the buckets as an array of objects. - /// - /// - [JsonInclude, JsonPropertyName("keyed")] - public bool? Keyed { get; set; } - - /// - /// - /// Set to true to add a bucket to the response which will contain all documents that do not match any of the given filters. - /// - /// - [JsonInclude, JsonPropertyName("other_bucket")] - public bool? OtherBucket { get; set; } - - /// - /// - /// The key with which the other bucket is returned. - /// - /// - [JsonInclude, JsonPropertyName("other_bucket_key")] - public string? OtherBucketKey { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation(ApiKeyFiltersAggregation apiKeyFiltersAggregation) => Elastic.Clients.Elasticsearch.Serverless.Security.ApiKeyAggregation.Filters(apiKeyFiltersAggregation); -} - -public sealed partial class ApiKeyFiltersAggregationDescriptor : SerializableDescriptor> -{ - internal ApiKeyFiltersAggregationDescriptor(Action> configure) => configure.Invoke(this); - - public ApiKeyFiltersAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? FiltersValue { get; set; } - private bool? KeyedValue { get; set; } - private bool? OtherBucketValue { get; set; } - private string? OtherBucketKeyValue { get; set; } - - /// - /// - /// Collection of queries from which to build buckets. - /// - /// - public ApiKeyFiltersAggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? filters) - { - FiltersValue = filters; - return Self; - } - - /// - /// - /// By default, the named filters aggregation returns the buckets as an object. - /// Set to false to return the buckets as an array of objects. - /// - /// - public ApiKeyFiltersAggregationDescriptor Keyed(bool? keyed = true) - { - KeyedValue = keyed; - return Self; - } - - /// - /// - /// Set to true to add a bucket to the response which will contain all documents that do not match any of the given filters. - /// - /// - public ApiKeyFiltersAggregationDescriptor OtherBucket(bool? otherBucket = true) - { - OtherBucketValue = otherBucket; - return Self; - } - - /// - /// - /// The key with which the other bucket is returned. - /// - /// - public ApiKeyFiltersAggregationDescriptor OtherBucketKey(string? otherBucketKey) - { - OtherBucketKeyValue = otherBucketKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FiltersValue is not null) - { - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - } - - if (KeyedValue.HasValue) - { - writer.WritePropertyName("keyed"); - writer.WriteBooleanValue(KeyedValue.Value); - } - - if (OtherBucketValue.HasValue) - { - writer.WritePropertyName("other_bucket"); - writer.WriteBooleanValue(OtherBucketValue.Value); - } - - if (!string.IsNullOrEmpty(OtherBucketKeyValue)) - { - writer.WritePropertyName("other_bucket_key"); - writer.WriteStringValue(OtherBucketKeyValue); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ApiKeyFiltersAggregationDescriptor : SerializableDescriptor -{ - internal ApiKeyFiltersAggregationDescriptor(Action configure) => configure.Invoke(this); - - public ApiKeyFiltersAggregationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? FiltersValue { get; set; } - private bool? KeyedValue { get; set; } - private bool? OtherBucketValue { get; set; } - private string? OtherBucketKeyValue { get; set; } - - /// - /// - /// Collection of queries from which to build buckets. - /// - /// - public ApiKeyFiltersAggregationDescriptor Filters(Elastic.Clients.Elasticsearch.Serverless.Aggregations.Buckets? filters) - { - FiltersValue = filters; - return Self; - } - - /// - /// - /// By default, the named filters aggregation returns the buckets as an object. - /// Set to false to return the buckets as an array of objects. - /// - /// - public ApiKeyFiltersAggregationDescriptor Keyed(bool? keyed = true) - { - KeyedValue = keyed; - return Self; - } - - /// - /// - /// Set to true to add a bucket to the response which will contain all documents that do not match any of the given filters. - /// - /// - public ApiKeyFiltersAggregationDescriptor OtherBucket(bool? otherBucket = true) - { - OtherBucketValue = otherBucket; - return Self; - } - - /// - /// - /// The key with which the other bucket is returned. - /// - /// - public ApiKeyFiltersAggregationDescriptor OtherBucketKey(string? otherBucketKey) - { - OtherBucketKeyValue = otherBucketKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FiltersValue is not null) - { - writer.WritePropertyName("filters"); - JsonSerializer.Serialize(writer, FiltersValue, options); - } - - if (KeyedValue.HasValue) - { - writer.WritePropertyName("keyed"); - writer.WriteBooleanValue(KeyedValue.Value); - } - - if (OtherBucketValue.HasValue) - { - writer.WritePropertyName("other_bucket"); - writer.WriteBooleanValue(OtherBucketValue.Value); - } - - if (!string.IsNullOrEmpty(OtherBucketKeyValue)) - { - writer.WritePropertyName("other_bucket_key"); - writer.WriteStringValue(OtherBucketKeyValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyQuery.g.cs deleted file mode 100644 index eac62337667..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApiKeyQuery.g.cs +++ /dev/null @@ -1,384 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(ApiKeyQueryConverter))] -public sealed partial class ApiKeyQuery -{ - internal ApiKeyQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static ApiKeyQuery Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => new ApiKeyQuery("bool", boolQuery); - public static ApiKeyQuery Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => new ApiKeyQuery("exists", existsQuery); - public static ApiKeyQuery Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => new ApiKeyQuery("ids", idsQuery); - public static ApiKeyQuery Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => new ApiKeyQuery("match", matchQuery); - public static ApiKeyQuery MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => new ApiKeyQuery("match_all", matchAllQuery); - public static ApiKeyQuery Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => new ApiKeyQuery("prefix", prefixQuery); - public static ApiKeyQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => new ApiKeyQuery("range", rangeQuery); - public static ApiKeyQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => new ApiKeyQuery("range", rangeQuery); - public static ApiKeyQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => new ApiKeyQuery("range", rangeQuery); - public static ApiKeyQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => new ApiKeyQuery("range", rangeQuery); - public static ApiKeyQuery SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => new ApiKeyQuery("simple_query_string", simpleQueryStringQuery); - public static ApiKeyQuery Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => new ApiKeyQuery("term", termQuery); - public static ApiKeyQuery Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => new ApiKeyQuery("terms", termsQuery); - public static ApiKeyQuery Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => new ApiKeyQuery("wildcard", wildcardQuery); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class ApiKeyQueryConverter : JsonConverter -{ - public override ApiKeyQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "bool") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "exists") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ids") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_all") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "simple_query_string") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wildcard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'ApiKeyQuery' from the response."); - } - - var result = new ApiKeyQuery(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, ApiKeyQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "bool": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery)value.Variant, options); - break; - case "exists": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery)value.Variant, options); - break; - case "ids": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery)value.Variant, options); - break; - case "match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery)value.Variant, options); - break; - case "match_all": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery)value.Variant, options); - break; - case "prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery)value.Variant, options); - break; - case "range": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "simple_query_string": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery)value.Variant, options); - break; - case "term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery)value.Variant, options); - break; - case "wildcard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ApiKeyQueryDescriptor : SerializableDescriptor> -{ - internal ApiKeyQueryDescriptor(Action> configure) => configure.Invoke(this); - - public ApiKeyQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private ApiKeyQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private ApiKeyQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public ApiKeyQueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public ApiKeyQueryDescriptor Bool(Action> configure) => Set(configure, "bool"); - public ApiKeyQueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public ApiKeyQueryDescriptor Exists(Action> configure) => Set(configure, "exists"); - public ApiKeyQueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public ApiKeyQueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public ApiKeyQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public ApiKeyQueryDescriptor Match(Action> configure) => Set(configure, "match"); - public ApiKeyQueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public ApiKeyQueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public ApiKeyQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public ApiKeyQueryDescriptor Prefix(Action> configure) => Set(configure, "prefix"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); - public ApiKeyQueryDescriptor SimpleQueryString(Action> configure) => Set(configure, "simple_query_string"); - public ApiKeyQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public ApiKeyQueryDescriptor Term(Action> configure) => Set(configure, "term"); - public ApiKeyQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public ApiKeyQueryDescriptor Terms(Action> configure) => Set(configure, "terms"); - public ApiKeyQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public ApiKeyQueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class ApiKeyQueryDescriptor : SerializableDescriptor -{ - internal ApiKeyQueryDescriptor(Action configure) => configure.Invoke(this); - - public ApiKeyQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private ApiKeyQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private ApiKeyQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public ApiKeyQueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public ApiKeyQueryDescriptor Bool(Action configure) => Set(configure, "bool"); - public ApiKeyQueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public ApiKeyQueryDescriptor Exists(Action configure) => Set(configure, "exists"); - public ApiKeyQueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public ApiKeyQueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public ApiKeyQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public ApiKeyQueryDescriptor Match(Action configure) => Set(configure, "match"); - public ApiKeyQueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public ApiKeyQueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public ApiKeyQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public ApiKeyQueryDescriptor Prefix(Action configure) => Set(configure, "prefix"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public ApiKeyQueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); - public ApiKeyQueryDescriptor SimpleQueryString(Action configure) => Set(configure, "simple_query_string"); - public ApiKeyQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public ApiKeyQueryDescriptor Term(Action configure) => Set(configure, "term"); - public ApiKeyQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public ApiKeyQueryDescriptor Terms(Action configure) => Set(configure, "terms"); - public ApiKeyQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public ApiKeyQueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs deleted file mode 100644 index 27c0724d7fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationGlobalUserPrivileges.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class ApplicationGlobalUserPrivileges -{ - [JsonInclude, JsonPropertyName("manage")] - public Elastic.Clients.Elasticsearch.Serverless.Security.ManageUserPrivileges Manage { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivileges.g.cs deleted file mode 100644 index 5cdb4075a3a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivileges.g.cs +++ /dev/null @@ -1,113 +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.Security; - -public sealed partial class ApplicationPrivileges -{ - /// - /// - /// The name of the application to which this entry applies. - /// - /// - [JsonInclude, JsonPropertyName("application")] - public string Application { get; set; } - - /// - /// - /// A list of strings, where each element is the name of an application privilege or action. - /// - /// - [JsonInclude, JsonPropertyName("privileges")] - public ICollection Privileges { get; set; } - - /// - /// - /// A list resources to which the privileges are applied. - /// - /// - [JsonInclude, JsonPropertyName("resources")] - public ICollection Resources { get; set; } -} - -public sealed partial class ApplicationPrivilegesDescriptor : SerializableDescriptor -{ - internal ApplicationPrivilegesDescriptor(Action configure) => configure.Invoke(this); - - public ApplicationPrivilegesDescriptor() : base() - { - } - - private string ApplicationValue { get; set; } - private ICollection PrivilegesValue { get; set; } - private ICollection ResourcesValue { get; set; } - - /// - /// - /// The name of the application to which this entry applies. - /// - /// - public ApplicationPrivilegesDescriptor Application(string application) - { - ApplicationValue = application; - return Self; - } - - /// - /// - /// A list of strings, where each element is the name of an application privilege or action. - /// - /// - public ApplicationPrivilegesDescriptor Privileges(ICollection privileges) - { - PrivilegesValue = privileges; - return Self; - } - - /// - /// - /// A list resources to which the privileges are applied. - /// - /// - public ApplicationPrivilegesDescriptor Resources(ICollection resources) - { - ResourcesValue = resources; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("application"); - writer.WriteStringValue(ApplicationValue); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - writer.WritePropertyName("resources"); - JsonSerializer.Serialize(writer, ResourcesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs deleted file mode 100644 index 1ff42648227..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs +++ /dev/null @@ -1,113 +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.Security; - -public sealed partial class ApplicationPrivilegesCheck -{ - /// - /// - /// The name of the application. - /// - /// - [JsonInclude, JsonPropertyName("application")] - public string Application { get; set; } - - /// - /// - /// A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privileges - /// - /// - [JsonInclude, JsonPropertyName("privileges")] - public ICollection Privileges { get; set; } - - /// - /// - /// A list of resource names against which the privileges should be checked - /// - /// - [JsonInclude, JsonPropertyName("resources")] - public ICollection Resources { get; set; } -} - -public sealed partial class ApplicationPrivilegesCheckDescriptor : SerializableDescriptor -{ - internal ApplicationPrivilegesCheckDescriptor(Action configure) => configure.Invoke(this); - - public ApplicationPrivilegesCheckDescriptor() : base() - { - } - - private string ApplicationValue { get; set; } - private ICollection PrivilegesValue { get; set; } - private ICollection ResourcesValue { get; set; } - - /// - /// - /// The name of the application. - /// - /// - public ApplicationPrivilegesCheckDescriptor Application(string application) - { - ApplicationValue = application; - return Self; - } - - /// - /// - /// A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privileges - /// - /// - public ApplicationPrivilegesCheckDescriptor Privileges(ICollection privileges) - { - PrivilegesValue = privileges; - return Self; - } - - /// - /// - /// A list of resource names against which the privileges should be checked - /// - /// - public ApplicationPrivilegesCheckDescriptor Resources(ICollection resources) - { - ResourcesValue = resources; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("application"); - writer.WriteStringValue(ApplicationValue); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - writer.WritePropertyName("resources"); - JsonSerializer.Serialize(writer, ResourcesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs deleted file mode 100644 index 37074c34dfd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateApiKey.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class AuthenticateApiKey -{ - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateToken.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateToken.g.cs deleted file mode 100644 index e33e8bd4d3f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticateToken.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class AuthenticateToken -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string? Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticatedUser.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticatedUser.g.cs deleted file mode 100644 index 164996b3e29..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticatedUser.g.cs +++ /dev/null @@ -1,54 +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.Security; - -public sealed partial class AuthenticatedUser -{ - [JsonInclude, JsonPropertyName("authentication_provider")] - public Elastic.Clients.Elasticsearch.Serverless.Security.AuthenticationProvider? AuthenticationProvider { get; init; } - [JsonInclude, JsonPropertyName("authentication_realm")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserRealm AuthenticationRealm { get; init; } - [JsonInclude, JsonPropertyName("authentication_type")] - public string AuthenticationType { get; init; } - [JsonInclude, JsonPropertyName("email")] - public string? Email { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("full_name")] - public string? FullName { get; init; } - [JsonInclude, JsonPropertyName("lookup_realm")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserRealm LookupRealm { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary Metadata { get; init; } - [JsonInclude, JsonPropertyName("profile_uid")] - public string? ProfileUid { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticationProvider.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticationProvider.g.cs deleted file mode 100644 index 83e8094757a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/AuthenticationProvider.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class AuthenticationProvider -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/BulkError.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/BulkError.g.cs deleted file mode 100644 index 41b39cc686c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/BulkError.g.cs +++ /dev/null @@ -1,47 +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.Security; - -public sealed partial class BulkError -{ - /// - /// - /// The number of errors - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Details about the errors, keyed by role name - /// - /// - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyDictionary Details { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ClusterNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ClusterNode.g.cs deleted file mode 100644 index 35dbf38ddf7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ClusterNode.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class ClusterNode -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/CreatedStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/CreatedStatus.g.cs deleted file mode 100644 index bf398809526..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/CreatedStatus.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class CreatedStatus -{ - [JsonInclude, JsonPropertyName("created")] - public bool Created { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldRule.g.cs deleted file mode 100644 index 4b17f9090f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldRule.g.cs +++ /dev/null @@ -1,251 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(FieldRuleConverter))] -public sealed partial class FieldRule -{ - internal FieldRule(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static FieldRule Dn(Elastic.Clients.Elasticsearch.Serverless.Names names) => new FieldRule("dn", names); - public static FieldRule Groups(Elastic.Clients.Elasticsearch.Serverless.Names names) => new FieldRule("groups", names); - public static FieldRule Username(Elastic.Clients.Elasticsearch.Serverless.Names names) => new FieldRule("username", names); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class FieldRuleConverter : JsonConverter -{ - public override FieldRule Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "dn") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "groups") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "username") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'FieldRule' from the response."); - } - - var result = new FieldRule(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, FieldRule value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "dn": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Names)value.Variant, options); - break; - case "groups": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Names)value.Variant, options); - break; - case "username": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Names)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldRuleDescriptor : SerializableDescriptor> -{ - internal FieldRuleDescriptor(Action> configure) => configure.Invoke(this); - - public FieldRuleDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private FieldRuleDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private FieldRuleDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public FieldRuleDescriptor Dn(Elastic.Clients.Elasticsearch.Serverless.Names names) => Set(names, "dn"); - public FieldRuleDescriptor Groups(Elastic.Clients.Elasticsearch.Serverless.Names names) => Set(names, "groups"); - public FieldRuleDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Names names) => Set(names, "username"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldRuleDescriptor : SerializableDescriptor -{ - internal FieldRuleDescriptor(Action configure) => configure.Invoke(this); - - public FieldRuleDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private FieldRuleDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private FieldRuleDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public FieldRuleDescriptor Dn(Elastic.Clients.Elasticsearch.Serverless.Names names) => Set(names, "dn"); - public FieldRuleDescriptor Groups(Elastic.Clients.Elasticsearch.Serverless.Names names) => Set(names, "groups"); - public FieldRuleDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Names names) => Set(names, "username"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldSecurity.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldSecurity.g.cs deleted file mode 100644 index 02fbe16cb49..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FieldSecurity.g.cs +++ /dev/null @@ -1,122 +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.Security; - -public sealed partial class FieldSecurity -{ - [JsonInclude, JsonPropertyName("except")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Except { get; set; } - [JsonInclude, JsonPropertyName("grant")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields? Grant { get; set; } -} - -public sealed partial class FieldSecurityDescriptor : SerializableDescriptor> -{ - internal FieldSecurityDescriptor(Action> configure) => configure.Invoke(this); - - public FieldSecurityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? ExceptValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? GrantValue { get; set; } - - public FieldSecurityDescriptor Except(Elastic.Clients.Elasticsearch.Serverless.Fields? except) - { - ExceptValue = except; - return Self; - } - - public FieldSecurityDescriptor Grant(Elastic.Clients.Elasticsearch.Serverless.Fields? grant) - { - GrantValue = grant; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExceptValue is not null) - { - writer.WritePropertyName("except"); - JsonSerializer.Serialize(writer, ExceptValue, options); - } - - if (GrantValue is not null) - { - writer.WritePropertyName("grant"); - JsonSerializer.Serialize(writer, GrantValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class FieldSecurityDescriptor : SerializableDescriptor -{ - internal FieldSecurityDescriptor(Action configure) => configure.Invoke(this); - - public FieldSecurityDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Fields? ExceptValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields? GrantValue { get; set; } - - public FieldSecurityDescriptor Except(Elastic.Clients.Elasticsearch.Serverless.Fields? except) - { - ExceptValue = except; - return Self; - } - - public FieldSecurityDescriptor Grant(Elastic.Clients.Elasticsearch.Serverless.Fields? grant) - { - GrantValue = grant; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ExceptValue is not null) - { - writer.WritePropertyName("except"); - JsonSerializer.Serialize(writer, ExceptValue, options); - } - - if (GrantValue is not null) - { - writer.WritePropertyName("grant"); - JsonSerializer.Serialize(writer, GrantValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FoundStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FoundStatus.g.cs deleted file mode 100644 index 1a1bce313ea..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/FoundStatus.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class FoundStatus -{ - [JsonInclude, JsonPropertyName("found")] - public bool Found { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GetUserProfileErrors.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GetUserProfileErrors.g.cs deleted file mode 100644 index f4787ecbf87..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GetUserProfileErrors.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class GetUserProfileErrors -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyDictionary Details { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GlobalPrivilege.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GlobalPrivilege.g.cs deleted file mode 100644 index 7bd785a07a9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GlobalPrivilege.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class GlobalPrivilege -{ - [JsonInclude, JsonPropertyName("application")] - public Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationGlobalUserPrivileges Application { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GrantApiKey.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GrantApiKey.g.cs deleted file mode 100644 index 28fd18d61e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/GrantApiKey.g.cs +++ /dev/null @@ -1,231 +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.Security; - -public sealed partial class GrantApiKey -{ - /// - /// - /// Expiration time for the API key. By default, API keys never expire. - /// - /// - [JsonInclude, JsonPropertyName("expiration")] - public string? Expiration { get; set; } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. - /// It supports nested data structure. - /// Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name Name { get; set; } - - /// - /// - /// The role descriptors for this API key. - /// This parameter is optional. - /// When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. - /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token. - /// - /// - [JsonInclude, JsonPropertyName("role_descriptors")] - [SingleOrManyCollectionConverter(typeof(IReadOnlyDictionary))] - public ICollection>? RoleDescriptors { get; set; } -} - -public sealed partial class GrantApiKeyDescriptor : SerializableDescriptor> -{ - internal GrantApiKeyDescriptor(Action> configure) => configure.Invoke(this); - - public GrantApiKeyDescriptor() : base() - { - } - - private string? ExpirationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - private ICollection>? RoleDescriptorsValue { get; set; } - - /// - /// - /// Expiration time for the API key. By default, API keys never expire. - /// - /// - public GrantApiKeyDescriptor Expiration(string? expiration) - { - ExpirationValue = expiration; - return Self; - } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. - /// It supports nested data structure. - /// Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - public GrantApiKeyDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GrantApiKeyDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - /// - /// - /// The role descriptors for this API key. - /// This parameter is optional. - /// When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. - /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token. - /// - /// - public GrantApiKeyDescriptor RoleDescriptors(ICollection>? roleDescriptors) - { - RoleDescriptorsValue = roleDescriptors; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ExpirationValue)) - { - writer.WritePropertyName("expiration"); - writer.WriteStringValue(ExpirationValue); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - SingleOrManySerializationHelper.Serialize>(RoleDescriptorsValue, writer, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class GrantApiKeyDescriptor : SerializableDescriptor -{ - internal GrantApiKeyDescriptor(Action configure) => configure.Invoke(this); - - public GrantApiKeyDescriptor() : base() - { - } - - private string? ExpirationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name NameValue { get; set; } - private ICollection>? RoleDescriptorsValue { get; set; } - - /// - /// - /// Expiration time for the API key. By default, API keys never expire. - /// - /// - public GrantApiKeyDescriptor Expiration(string? expiration) - { - ExpirationValue = expiration; - return Self; - } - - /// - /// - /// Arbitrary metadata that you want to associate with the API key. - /// It supports nested data structure. - /// Within the metadata object, keys beginning with _ are reserved for system usage. - /// - /// - public GrantApiKeyDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public GrantApiKeyDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - NameValue = name; - return Self; - } - - /// - /// - /// The role descriptors for this API key. - /// This parameter is optional. - /// When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. - /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token. - /// - /// - public GrantApiKeyDescriptor RoleDescriptors(ICollection>? roleDescriptors) - { - RoleDescriptorsValue = roleDescriptors; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ExpirationValue)) - { - writer.WritePropertyName("expiration"); - writer.WriteStringValue(ExpirationValue); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (RoleDescriptorsValue is not null) - { - writer.WritePropertyName("role_descriptors"); - SingleOrManySerializationHelper.Serialize>(RoleDescriptorsValue, writer, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs deleted file mode 100644 index 761813bde1f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/HasPrivilegesUserProfileErrors.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class HasPrivilegesUserProfileErrors -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("details")] - public IReadOnlyDictionary Details { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Hint.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Hint.g.cs deleted file mode 100644 index 5d87b05c492..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Hint.g.cs +++ /dev/null @@ -1,103 +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.Security; - -public sealed partial class Hint -{ - /// - /// - /// A single key-value pair to match against the labels section - /// of a profile. A profile is considered matching if it matches - /// at least one of the strings. - /// - /// - [JsonInclude, JsonPropertyName("labels")] - public IDictionary>>? Labels { get; set; } - - /// - /// - /// A list of Profile UIDs to match against. - /// - /// - [JsonInclude, JsonPropertyName("uids")] - public ICollection? Uids { get; set; } -} - -public sealed partial class HintDescriptor : SerializableDescriptor -{ - internal HintDescriptor(Action configure) => configure.Invoke(this); - - public HintDescriptor() : base() - { - } - - private IDictionary>>? LabelsValue { get; set; } - private ICollection? UidsValue { get; set; } - - /// - /// - /// A single key-value pair to match against the labels section - /// of a profile. A profile is considered matching if it matches - /// at least one of the strings. - /// - /// - public HintDescriptor Labels(Func>>, FluentDictionary>>> selector) - { - LabelsValue = selector?.Invoke(new FluentDictionary>>()); - return Self; - } - - /// - /// - /// A list of Profile UIDs to match against. - /// - /// - public HintDescriptor Uids(ICollection? uids) - { - UidsValue = uids; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (LabelsValue is not null) - { - writer.WritePropertyName("labels"); - JsonSerializer.Serialize(writer, LabelsValue, options); - } - - if (UidsValue is not null) - { - writer.WritePropertyName("uids"); - JsonSerializer.Serialize(writer, UidsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndexPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndexPrivilegesCheck.g.cs deleted file mode 100644 index f92e09190ab..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndexPrivilegesCheck.g.cs +++ /dev/null @@ -1,121 +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.Security; - -public sealed partial class IndexPrivilegesCheck -{ - /// - /// - /// This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. - /// Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. - /// If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices. - /// - /// - [JsonInclude, JsonPropertyName("allow_restricted_indices")] - public bool? AllowRestrictedIndices { get; set; } - - /// - /// - /// A list of indices. - /// - /// - [JsonInclude, JsonPropertyName("names")] - public Elastic.Clients.Elasticsearch.Serverless.Indices Names { get; set; } - - /// - /// - /// A list of the privileges that you want to check for the specified indices. - /// - /// - [JsonInclude, JsonPropertyName("privileges")] - public ICollection Privileges { get; set; } -} - -public sealed partial class IndexPrivilegesCheckDescriptor : SerializableDescriptor -{ - internal IndexPrivilegesCheckDescriptor(Action configure) => configure.Invoke(this); - - public IndexPrivilegesCheckDescriptor() : base() - { - } - - private bool? AllowRestrictedIndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices NamesValue { get; set; } - private ICollection PrivilegesValue { get; set; } - - /// - /// - /// This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. - /// Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. - /// If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices. - /// - /// - public IndexPrivilegesCheckDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) - { - AllowRestrictedIndicesValue = allowRestrictedIndices; - return Self; - } - - /// - /// - /// A list of indices. - /// - /// - public IndexPrivilegesCheckDescriptor Names(Elastic.Clients.Elasticsearch.Serverless.Indices names) - { - NamesValue = names; - return Self; - } - - /// - /// - /// A list of the privileges that you want to check for the specified indices. - /// - /// - public IndexPrivilegesCheckDescriptor Privileges(ICollection privileges) - { - PrivilegesValue = privileges; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AllowRestrictedIndicesValue.HasValue) - { - writer.WritePropertyName("allow_restricted_indices"); - writer.WriteBooleanValue(AllowRestrictedIndicesValue.Value); - } - - writer.WritePropertyName("names"); - JsonSerializer.Serialize(writer, NamesValue, options); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs deleted file mode 100644 index 45feac6f03e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/IndicesPrivileges.g.cs +++ /dev/null @@ -1,284 +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.Security; - -public sealed partial class IndicesPrivileges -{ - /// - /// - /// The document fields that the owners of the role have read access to. - /// - /// - [JsonInclude, JsonPropertyName("field_security")] - public Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurity { get; set; } - - /// - /// - /// A list of indices (or index name patterns) to which the permissions in this entry apply. - /// - /// - [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexName))] - public ICollection Names { get; set; } - - /// - /// - /// The index level privileges that owners of the role have on the specified indices. - /// - /// - [JsonInclude, JsonPropertyName("privileges")] - public ICollection Privileges { get; set; } - - /// - /// - /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public object? Query { get; set; } -} - -public sealed partial class IndicesPrivilegesDescriptor : SerializableDescriptor> -{ - internal IndicesPrivilegesDescriptor(Action> configure) => configure.Invoke(this); - - public IndicesPrivilegesDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } - private Action> FieldSecurityDescriptorAction { get; set; } - private ICollection NamesValue { get; set; } - private ICollection PrivilegesValue { get; set; } - private object? QueryValue { get; set; } - - /// - /// - /// The document fields that the owners of the role have read access to. - /// - /// - public IndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? fieldSecurity) - { - FieldSecurityDescriptor = null; - FieldSecurityDescriptorAction = null; - FieldSecurityValue = fieldSecurity; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor descriptor) - { - FieldSecurityValue = null; - FieldSecurityDescriptorAction = null; - FieldSecurityDescriptor = descriptor; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(Action> configure) - { - FieldSecurityValue = null; - FieldSecurityDescriptor = null; - FieldSecurityDescriptorAction = configure; - return Self; - } - - /// - /// - /// A list of indices (or index name patterns) to which the permissions in this entry apply. - /// - /// - public IndicesPrivilegesDescriptor Names(ICollection names) - { - NamesValue = names; - return Self; - } - - /// - /// - /// The index level privileges that owners of the role have on the specified indices. - /// - /// - public IndicesPrivilegesDescriptor Privileges(ICollection privileges) - { - PrivilegesValue = privileges; - return Self; - } - - /// - /// - /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. - /// - /// - public IndicesPrivilegesDescriptor Query(object? query) - { - QueryValue = query; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldSecurityDescriptor is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); - } - else if (FieldSecurityDescriptorAction is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); - } - else if (FieldSecurityValue is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, FieldSecurityValue, options); - } - - writer.WritePropertyName("names"); - SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class IndicesPrivilegesDescriptor : SerializableDescriptor -{ - internal IndicesPrivilegesDescriptor(Action configure) => configure.Invoke(this); - - public IndicesPrivilegesDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurityValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor FieldSecurityDescriptor { get; set; } - private Action FieldSecurityDescriptorAction { get; set; } - private ICollection NamesValue { get; set; } - private ICollection PrivilegesValue { get; set; } - private object? QueryValue { get; set; } - - /// - /// - /// The document fields that the owners of the role have read access to. - /// - /// - public IndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? fieldSecurity) - { - FieldSecurityDescriptor = null; - FieldSecurityDescriptorAction = null; - FieldSecurityValue = fieldSecurity; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor descriptor) - { - FieldSecurityValue = null; - FieldSecurityDescriptorAction = null; - FieldSecurityDescriptor = descriptor; - return Self; - } - - public IndicesPrivilegesDescriptor FieldSecurity(Action configure) - { - FieldSecurityValue = null; - FieldSecurityDescriptor = null; - FieldSecurityDescriptorAction = configure; - return Self; - } - - /// - /// - /// A list of indices (or index name patterns) to which the permissions in this entry apply. - /// - /// - public IndicesPrivilegesDescriptor Names(ICollection names) - { - NamesValue = names; - return Self; - } - - /// - /// - /// The index level privileges that owners of the role have on the specified indices. - /// - /// - public IndicesPrivilegesDescriptor Privileges(ICollection privileges) - { - PrivilegesValue = privileges; - return Self; - } - - /// - /// - /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. - /// - /// - public IndicesPrivilegesDescriptor Query(object? query) - { - QueryValue = query; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldSecurityDescriptor is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, FieldSecurityDescriptor, options); - } - else if (FieldSecurityDescriptorAction is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurityDescriptor(FieldSecurityDescriptorAction), options); - } - else if (FieldSecurityValue is not null) - { - writer.WritePropertyName("field_security"); - JsonSerializer.Serialize(writer, FieldSecurityValue, options); - } - - writer.WritePropertyName("names"); - SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); - writer.WritePropertyName("privileges"); - JsonSerializer.Serialize(writer, PrivilegesValue, options); - if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ManageUserPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ManageUserPrivileges.g.cs deleted file mode 100644 index 950ec09e714..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ManageUserPrivileges.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class ManageUserPrivileges -{ - [JsonInclude, JsonPropertyName("applications")] - public IReadOnlyCollection Applications { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentials.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentials.g.cs deleted file mode 100644 index 7fdb1e7d250..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentials.g.cs +++ /dev/null @@ -1,47 +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.Security; - -public sealed partial class NodesCredentials -{ - /// - /// - /// File-backed tokens collected from all nodes - /// - /// - [JsonInclude, JsonPropertyName("file_tokens")] - public IReadOnlyDictionary FileTokens { get; init; } - - /// - /// - /// General status showing how nodes respond to the above collection request - /// - /// - [JsonInclude, JsonPropertyName("_nodes")] - public Elastic.Clients.Elasticsearch.Serverless.NodeStatistics Nodes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentialsFileToken.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentialsFileToken.g.cs deleted file mode 100644 index 80ce4668e7d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/NodesCredentialsFileToken.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class NodesCredentialsFileToken -{ - [JsonInclude, JsonPropertyName("nodes")] - public IReadOnlyCollection Nodes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegeActions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegeActions.g.cs deleted file mode 100644 index ae01fafbb3a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegeActions.g.cs +++ /dev/null @@ -1,104 +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.Security; - -public sealed partial class PrivilegeActions -{ - [JsonInclude, JsonPropertyName("actions")] - public ICollection Actions { get; set; } - [JsonInclude, JsonPropertyName("application")] - public string? Application { get; set; } - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Serverless.Name? Name { get; set; } -} - -public sealed partial class PrivilegeActionsDescriptor : SerializableDescriptor -{ - internal PrivilegeActionsDescriptor(Action configure) => configure.Invoke(this); - - public PrivilegeActionsDescriptor() : base() - { - } - - private ICollection ActionsValue { get; set; } - private string? ApplicationValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Name? NameValue { get; set; } - - public PrivilegeActionsDescriptor Actions(ICollection actions) - { - ActionsValue = actions; - return Self; - } - - public PrivilegeActionsDescriptor Application(string? application) - { - ApplicationValue = application; - return Self; - } - - public PrivilegeActionsDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PrivilegeActionsDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name? name) - { - NameValue = name; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("actions"); - JsonSerializer.Serialize(writer, ActionsValue, options); - if (!string.IsNullOrEmpty(ApplicationValue)) - { - writer.WritePropertyName("application"); - writer.WriteStringValue(ApplicationValue); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (NameValue is not null) - { - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegesCheck.g.cs deleted file mode 100644 index c88d4b4a514..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/PrivilegesCheck.g.cs +++ /dev/null @@ -1,220 +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.Security; - -public sealed partial class PrivilegesCheck -{ - [JsonInclude, JsonPropertyName("application")] - public ICollection? Application { get; set; } - - /// - /// - /// A list of the cluster privileges that you want to check. - /// - /// - [JsonInclude, JsonPropertyName("cluster")] - public ICollection? Cluster { get; set; } - [JsonInclude, JsonPropertyName("index")] - public ICollection? Index { get; set; } -} - -public sealed partial class PrivilegesCheckDescriptor : SerializableDescriptor -{ - internal PrivilegesCheckDescriptor(Action configure) => configure.Invoke(this); - - public PrivilegesCheckDescriptor() : base() - { - } - - private ICollection? ApplicationValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor ApplicationDescriptor { get; set; } - private Action ApplicationDescriptorAction { get; set; } - private Action[] ApplicationDescriptorActions { get; set; } - private ICollection? ClusterValue { get; set; } - private ICollection? IndexValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor IndexDescriptor { get; set; } - private Action IndexDescriptorAction { get; set; } - private Action[] IndexDescriptorActions { get; set; } - - public PrivilegesCheckDescriptor Application(ICollection? application) - { - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = null; - ApplicationValue = application; - return Self; - } - - public PrivilegesCheckDescriptor Application(Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor descriptor) - { - ApplicationValue = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = null; - ApplicationDescriptor = descriptor; - return Self; - } - - public PrivilegesCheckDescriptor Application(Action configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorActions = null; - ApplicationDescriptorAction = configure; - return Self; - } - - public PrivilegesCheckDescriptor Application(params Action[] configure) - { - ApplicationValue = null; - ApplicationDescriptor = null; - ApplicationDescriptorAction = null; - ApplicationDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of the cluster privileges that you want to check. - /// - /// - public PrivilegesCheckDescriptor Cluster(ICollection? cluster) - { - ClusterValue = cluster; - return Self; - } - - public PrivilegesCheckDescriptor Index(ICollection? index) - { - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexDescriptorActions = null; - IndexValue = index; - return Self; - } - - public PrivilegesCheckDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor descriptor) - { - IndexValue = null; - IndexDescriptorAction = null; - IndexDescriptorActions = null; - IndexDescriptor = descriptor; - return Self; - } - - public PrivilegesCheckDescriptor Index(Action configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorActions = null; - IndexDescriptorAction = configure; - return Self; - } - - public PrivilegesCheckDescriptor Index(params Action[] configure) - { - IndexValue = null; - IndexDescriptor = null; - IndexDescriptorAction = null; - IndexDescriptorActions = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationDescriptor is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationDescriptorAction is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor(ApplicationDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationDescriptorActions is not null) - { - writer.WritePropertyName("application"); - writer.WriteStartArray(); - foreach (var action in ApplicationDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesCheckDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationValue is not null) - { - writer.WritePropertyName("application"); - JsonSerializer.Serialize(writer, ApplicationValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (IndexDescriptor is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndexDescriptor, options); - writer.WriteEndArray(); - } - else if (IndexDescriptorAction is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor(IndexDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndexDescriptorActions is not null) - { - writer.WritePropertyName("index"); - writer.WriteStartArray(); - foreach (var action in IndexDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndexPrivilegesCheckDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs deleted file mode 100644 index 2c717cdc12d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryRole.g.cs +++ /dev/null @@ -1,182 +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.Security; - -internal sealed partial class QueryRoleConverter : JsonConverter -{ - public override QueryRole Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyCollection? applications = default; - IReadOnlyCollection? cluster = default; - string? description = default; - IReadOnlyCollection? indices = default; - IReadOnlyDictionary? metadata = default; - string name = default; - Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction = default; - IReadOnlyCollection? runAs = default; - IReadOnlyCollection? sort = default; - IReadOnlyDictionary? transientMetadata = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "applications") - { - applications = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "cluster") - { - cluster = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "description") - { - description = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "index") - { - indices = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "metadata") - { - metadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "name") - { - name = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "restriction") - { - restriction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "run_as") - { - runAs = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "_sort") - { - sort = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "transient_metadata") - { - transientMetadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return new QueryRole { Applications = applications, Cluster = cluster, Description = description, Indices = indices, Metadata = metadata, Name = name, Restriction = restriction, RunAs = runAs, Sort = sort, TransientMetadata = transientMetadata }; - } - - public override void Write(Utf8JsonWriter writer, QueryRole value, JsonSerializerOptions options) - { - throw new NotImplementedException("'QueryRole' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(QueryRoleConverter))] -public sealed partial class QueryRole -{ - /// - /// - /// A list of application privilege entries - /// - /// - public IReadOnlyCollection? Applications { get; init; } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute. - /// - /// - public IReadOnlyCollection? Cluster { get; init; } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public string? Description { get; init; } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public IReadOnlyCollection? Indices { get; init; } - - /// - /// - /// Optional meta-data. Within the metadata object, keys that begin with _ are reserved for system usage. - /// - /// - public IReadOnlyDictionary? Metadata { get; init; } - - /// - /// - /// Name of the role. - /// - /// - public string Name { get; init; } - - /// - /// - /// Restriction for when the role descriptor is allowed to be effective. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? Restriction { get; init; } - - /// - /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - public IReadOnlyCollection? RunAs { get; init; } - public IReadOnlyCollection? Sort { get; init; } - public IReadOnlyDictionary? TransientMetadata { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryUser.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryUser.g.cs deleted file mode 100644 index c26f6535993..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/QueryUser.g.cs +++ /dev/null @@ -1,48 +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.Security; - -public sealed partial class QueryUser -{ - [JsonInclude, JsonPropertyName("email")] - public string? Email { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("full_name")] - public string? FullName { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary Metadata { get; init; } - [JsonInclude, JsonPropertyName("profile_uid")] - public string? ProfileUid { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("_sort")] - public IReadOnlyCollection? Sort { get; init; } - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RealmInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RealmInfo.g.cs deleted file mode 100644 index ada7a06e620..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RealmInfo.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class RealmInfo -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs deleted file mode 100644 index dfcd8cadd9d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ReplicationAccess.g.cs +++ /dev/null @@ -1,48 +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.Security; - -public sealed partial class ReplicationAccess -{ - /// - /// - /// This needs to be set to true if the patterns in the names field should cover system indices. - /// - /// - [JsonInclude, JsonPropertyName("allow_restricted_indices")] - public bool? AllowRestrictedIndices { get; init; } - - /// - /// - /// A list of indices (or index name patterns) to which the permissions in this entry apply. - /// - /// - [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Names { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs deleted file mode 100644 index 0058fc7d327..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Restriction.g.cs +++ /dev/null @@ -1,59 +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.Security; - -public sealed partial class Restriction -{ - [JsonInclude, JsonPropertyName("workflows")] - public ICollection Workflows { get; set; } -} - -public sealed partial class RestrictionDescriptor : SerializableDescriptor -{ - internal RestrictionDescriptor(Action configure) => configure.Invoke(this); - - public RestrictionDescriptor() : base() - { - } - - private ICollection WorkflowsValue { get; set; } - - public RestrictionDescriptor Workflows(ICollection workflows) - { - WorkflowsValue = workflows; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("workflows"); - JsonSerializer.Serialize(writer, WorkflowsValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs deleted file mode 100644 index 96d69e55dd4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/Role.g.cs +++ /dev/null @@ -1,48 +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.Security; - -public sealed partial class Role -{ - [JsonInclude, JsonPropertyName("applications")] - public IReadOnlyCollection Applications { get; init; } - [JsonInclude, JsonPropertyName("cluster")] - public IReadOnlyCollection Cluster { get; init; } - [JsonInclude, JsonPropertyName("global")] - public IReadOnlyDictionary>>>? Global { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary Metadata { get; init; } - [JsonInclude, JsonPropertyName("role_templates")] - public IReadOnlyCollection? RoleTemplates { get; init; } - [JsonInclude, JsonPropertyName("run_as")] - public IReadOnlyCollection RunAs { get; init; } - [JsonInclude, JsonPropertyName("transient_metadata")] - public IReadOnlyDictionary? TransientMetadata { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs deleted file mode 100644 index d12ecb7310e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptor.g.cs +++ /dev/null @@ -1,804 +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.Security; - -internal sealed partial class RoleDescriptorConverter : JsonConverter -{ - public override RoleDescriptor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new RoleDescriptor(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "applications") - { - variant.Applications = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "cluster") - { - variant.Cluster = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "description") - { - variant.Description = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "index") - { - variant.Indices = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "metadata") - { - variant.Metadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "restriction") - { - variant.Restriction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "run_as") - { - variant.RunAs = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "transient_metadata") - { - variant.TransientMetadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, RoleDescriptor value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Applications is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, value.Applications, options); - } - - if (value.Cluster is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, value.Cluster, options); - } - - if (!string.IsNullOrEmpty(value.Description)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(value.Description); - } - - if (value.Indices is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, value.Indices, options); - } - - if (value.Metadata is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, value.Metadata, options); - } - - if (value.Restriction is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, value.Restriction, options); - } - - if (value.RunAs is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, value.RunAs, options); - } - - if (value.TransientMetadata is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, value.TransientMetadata, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(RoleDescriptorConverter))] -public sealed partial class RoleDescriptor -{ - /// - /// - /// A list of application privilege entries - /// - /// - public ICollection? Applications { get; set; } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute. - /// - /// - public ICollection? Cluster { get; set; } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public string? Description { get; set; } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public ICollection? Indices { get; set; } - - /// - /// - /// Optional meta-data. Within the metadata object, keys that begin with _ are reserved for system usage. - /// - /// - public IDictionary? Metadata { get; set; } - - /// - /// - /// Restriction for when the role descriptor is allowed to be effective. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? Restriction { get; set; } - - /// - /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - public ICollection? RunAs { get; set; } - public IDictionary? TransientMetadata { get; set; } -} - -public sealed partial class RoleDescriptorDescriptor : SerializableDescriptor> -{ - internal RoleDescriptorDescriptor(Action> configure) => configure.Invoke(this); - - public RoleDescriptorDescriptor() : base() - { - } - - private ICollection? ApplicationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor ApplicationsDescriptor { get; set; } - private Action ApplicationsDescriptorAction { get; set; } - private Action[] ApplicationsDescriptorActions { get; set; } - private ICollection? ClusterValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor IndicesDescriptor { get; set; } - private Action> IndicesDescriptorAction { get; set; } - private Action>[] IndicesDescriptorActions { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? RestrictionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor RestrictionDescriptor { get; set; } - private Action RestrictionDescriptorAction { get; set; } - private ICollection? RunAsValue { get; set; } - private IDictionary? TransientMetadataValue { get; set; } - - /// - /// - /// A list of application privilege entries - /// - /// - public RoleDescriptorDescriptor Applications(ICollection? applications) - { - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsValue = applications; - return Self; - } - - public RoleDescriptorDescriptor Applications(Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor descriptor) - { - ApplicationsValue = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Applications(Action configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Applications(params Action[] configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute. - /// - /// - public RoleDescriptorDescriptor Cluster(ICollection? cluster) - { - ClusterValue = cluster; - return Self; - } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public RoleDescriptorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public RoleDescriptorDescriptor Indices(ICollection? indices) - { - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesValue = indices; - return Self; - } - - public RoleDescriptorDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor descriptor) - { - IndicesValue = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Indices(Action> configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorActions = null; - IndicesDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Indices(params Action>[] configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Optional meta-data. Within the metadata object, keys that begin with _ are reserved for system usage. - /// - /// - public RoleDescriptorDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Restriction for when the role descriptor is allowed to be effective. - /// - /// - public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction) - { - RestrictionDescriptor = null; - RestrictionDescriptorAction = null; - RestrictionValue = restriction; - return Self; - } - - public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor descriptor) - { - RestrictionValue = null; - RestrictionDescriptorAction = null; - RestrictionDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Restriction(Action configure) - { - RestrictionValue = null; - RestrictionDescriptor = null; - RestrictionDescriptorAction = configure; - return Self; - } - - /// - /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - public RoleDescriptorDescriptor RunAs(ICollection? runAs) - { - RunAsValue = runAs; - return Self; - } - - public RoleDescriptorDescriptor TransientMetadata(Func, FluentDictionary> selector) - { - TransientMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationsDescriptor is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationsDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorAction is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(ApplicationsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorActions is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - foreach (var action in ApplicationsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationsValue is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, ApplicationsValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (IndicesDescriptor is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndicesDescriptor, options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorAction is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(IndicesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorActions is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - foreach (var action in IndicesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RestrictionDescriptor is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, RestrictionDescriptor, options); - } - else if (RestrictionDescriptorAction is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor(RestrictionDescriptorAction), options); - } - else if (RestrictionValue is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, RestrictionValue, options); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (TransientMetadataValue is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, TransientMetadataValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RoleDescriptorDescriptor : SerializableDescriptor -{ - internal RoleDescriptorDescriptor(Action configure) => configure.Invoke(this); - - public RoleDescriptorDescriptor() : base() - { - } - - private ICollection? ApplicationsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor ApplicationsDescriptor { get; set; } - private Action ApplicationsDescriptorAction { get; set; } - private Action[] ApplicationsDescriptorActions { get; set; } - private ICollection? ClusterValue { get; set; } - private string? DescriptionValue { get; set; } - private ICollection? IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor IndicesDescriptor { get; set; } - private Action IndicesDescriptorAction { get; set; } - private Action[] IndicesDescriptorActions { get; set; } - private IDictionary? MetadataValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? RestrictionValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor RestrictionDescriptor { get; set; } - private Action RestrictionDescriptorAction { get; set; } - private ICollection? RunAsValue { get; set; } - private IDictionary? TransientMetadataValue { get; set; } - - /// - /// - /// A list of application privilege entries - /// - /// - public RoleDescriptorDescriptor Applications(ICollection? applications) - { - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsValue = applications; - return Self; - } - - public RoleDescriptorDescriptor Applications(Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor descriptor) - { - ApplicationsValue = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Applications(Action configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorActions = null; - ApplicationsDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Applications(params Action[] configure) - { - ApplicationsValue = null; - ApplicationsDescriptor = null; - ApplicationsDescriptorAction = null; - ApplicationsDescriptorActions = configure; - return Self; - } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute. - /// - /// - public RoleDescriptorDescriptor Cluster(ICollection? cluster) - { - ClusterValue = cluster; - return Self; - } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public RoleDescriptorDescriptor Description(string? description) - { - DescriptionValue = description; - return Self; - } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public RoleDescriptorDescriptor Indices(ICollection? indices) - { - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesValue = indices; - return Self; - } - - public RoleDescriptorDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor descriptor) - { - IndicesValue = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = null; - IndicesDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Indices(Action configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorActions = null; - IndicesDescriptorAction = configure; - return Self; - } - - public RoleDescriptorDescriptor Indices(params Action[] configure) - { - IndicesValue = null; - IndicesDescriptor = null; - IndicesDescriptorAction = null; - IndicesDescriptorActions = configure; - return Self; - } - - /// - /// - /// Optional meta-data. Within the metadata object, keys that begin with _ are reserved for system usage. - /// - /// - public RoleDescriptorDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// Restriction for when the role descriptor is allowed to be effective. - /// - /// - public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction) - { - RestrictionDescriptor = null; - RestrictionDescriptorAction = null; - RestrictionValue = restriction; - return Self; - } - - public RoleDescriptorDescriptor Restriction(Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor descriptor) - { - RestrictionValue = null; - RestrictionDescriptorAction = null; - RestrictionDescriptor = descriptor; - return Self; - } - - public RoleDescriptorDescriptor Restriction(Action configure) - { - RestrictionValue = null; - RestrictionDescriptor = null; - RestrictionDescriptorAction = configure; - return Self; - } - - /// - /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. - /// - /// - public RoleDescriptorDescriptor RunAs(ICollection? runAs) - { - RunAsValue = runAs; - return Self; - } - - public RoleDescriptorDescriptor TransientMetadata(Func, FluentDictionary> selector) - { - TransientMetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ApplicationsDescriptor is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, ApplicationsDescriptor, options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorAction is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(ApplicationsDescriptorAction), options); - writer.WriteEndArray(); - } - else if (ApplicationsDescriptorActions is not null) - { - writer.WritePropertyName("applications"); - writer.WriteStartArray(); - foreach (var action in ApplicationsDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.ApplicationPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (ApplicationsValue is not null) - { - writer.WritePropertyName("applications"); - JsonSerializer.Serialize(writer, ApplicationsValue, options); - } - - if (ClusterValue is not null) - { - writer.WritePropertyName("cluster"); - JsonSerializer.Serialize(writer, ClusterValue, options); - } - - if (!string.IsNullOrEmpty(DescriptionValue)) - { - writer.WritePropertyName("description"); - writer.WriteStringValue(DescriptionValue); - } - - if (IndicesDescriptor is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, IndicesDescriptor, options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorAction is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(IndicesDescriptorAction), options); - writer.WriteEndArray(); - } - else if (IndicesDescriptorActions is not null) - { - writer.WritePropertyName("indices"); - writer.WriteStartArray(); - foreach (var action in IndicesDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.IndicesPrivilegesDescriptor(action), options); - } - - writer.WriteEndArray(); - } - else if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (RestrictionDescriptor is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, RestrictionDescriptor, options); - } - else if (RestrictionDescriptorAction is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Security.RestrictionDescriptor(RestrictionDescriptorAction), options); - } - else if (RestrictionValue is not null) - { - writer.WritePropertyName("restriction"); - JsonSerializer.Serialize(writer, RestrictionValue, options); - } - - if (RunAsValue is not null) - { - writer.WritePropertyName("run_as"); - JsonSerializer.Serialize(writer, RunAsValue, options); - } - - if (TransientMetadataValue is not null) - { - writer.WritePropertyName("transient_metadata"); - JsonSerializer.Serialize(writer, TransientMetadataValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs deleted file mode 100644 index 34ef826b7ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorRead.g.cs +++ /dev/null @@ -1,160 +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.Security; - -internal sealed partial class RoleDescriptorReadConverter : JsonConverter -{ - public override RoleDescriptorRead Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - IReadOnlyCollection? applications = default; - IReadOnlyCollection cluster = default; - string? description = default; - IReadOnlyCollection indices = default; - IReadOnlyDictionary? metadata = default; - Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? restriction = default; - IReadOnlyCollection? runAs = default; - IReadOnlyDictionary? transientMetadata = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "applications") - { - applications = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "cluster") - { - cluster = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "description") - { - description = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "indices" || property == "index") - { - indices = JsonSerializer.Deserialize>(ref reader, options); - continue; - } - - if (property == "metadata") - { - metadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "restriction") - { - restriction = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "run_as") - { - runAs = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "transient_metadata") - { - transientMetadata = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return new RoleDescriptorRead { Applications = applications, Cluster = cluster, Description = description, Indices = indices, Metadata = metadata, Restriction = restriction, RunAs = runAs, TransientMetadata = transientMetadata }; - } - - public override void Write(Utf8JsonWriter writer, RoleDescriptorRead value, JsonSerializerOptions options) - { - throw new NotImplementedException("'RoleDescriptorRead' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(RoleDescriptorReadConverter))] -public sealed partial class RoleDescriptorRead -{ - /// - /// - /// A list of application privilege entries - /// - /// - public IReadOnlyCollection? Applications { get; init; } - - /// - /// - /// A list of cluster privileges. These privileges define the cluster level actions that API keys are able to execute. - /// - /// - public IReadOnlyCollection Cluster { get; init; } - - /// - /// - /// Optional description of the role descriptor - /// - /// - public string? Description { get; init; } - - /// - /// - /// A list of indices permissions entries. - /// - /// - public IReadOnlyCollection Indices { get; init; } - - /// - /// - /// Optional meta-data. Within the metadata object, keys that begin with _ are reserved for system usage. - /// - /// - public IReadOnlyDictionary? Metadata { get; init; } - - /// - /// - /// Restriction for when the role descriptor is allowed to be effective. - /// - /// - public Elastic.Clients.Elasticsearch.Serverless.Security.Restriction? Restriction { get; init; } - - /// - /// - /// A list of users that the API keys can impersonate. - /// - /// - public IReadOnlyCollection? RunAs { get; init; } - public IReadOnlyDictionary? TransientMetadata { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorWrapper.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorWrapper.g.cs deleted file mode 100644 index 55e020abad6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleDescriptorWrapper.g.cs +++ /dev/null @@ -1,34 +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.Security; - -public sealed partial class RoleDescriptorWrapper -{ - [JsonInclude, JsonPropertyName("role_descriptor")] - public Elastic.Clients.Elasticsearch.Serverless.Security.RoleDescriptorRead RoleDescriptor { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMapping.g.cs deleted file mode 100644 index 791127292da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMapping.g.cs +++ /dev/null @@ -1,42 +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.Security; - -public sealed partial class RoleMapping -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary Metadata { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - [JsonInclude, JsonPropertyName("role_templates")] - public IReadOnlyCollection? RoleTemplates { get; init; } - [JsonInclude, JsonPropertyName("rules")] - public Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule Rules { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMappingRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMappingRule.g.cs deleted file mode 100644 index 3c5dc737caf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleMappingRule.g.cs +++ /dev/null @@ -1,272 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(RoleMappingRuleConverter))] -public sealed partial class RoleMappingRule -{ - internal RoleMappingRule(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static RoleMappingRule All(IReadOnlyCollection roleMappingRule) => new RoleMappingRule("all", roleMappingRule); - public static RoleMappingRule Any(IReadOnlyCollection roleMappingRule) => new RoleMappingRule("any", roleMappingRule); - public static RoleMappingRule Except(Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule roleMappingRule) => new RoleMappingRule("except", roleMappingRule); - public static RoleMappingRule Field(Elastic.Clients.Elasticsearch.Serverless.Security.FieldRule fieldRule) => new RoleMappingRule("field", fieldRule); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class RoleMappingRuleConverter : JsonConverter -{ - public override RoleMappingRule Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "all") - { - variantValue = JsonSerializer.Deserialize?>(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "any") - { - variantValue = JsonSerializer.Deserialize?>(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "except") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "field") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'RoleMappingRule' from the response."); - } - - var result = new RoleMappingRule(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, RoleMappingRule value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "all": - JsonSerializer.Serialize>(writer, (IReadOnlyCollection)value.Variant, options); - break; - case "any": - JsonSerializer.Serialize>(writer, (IReadOnlyCollection)value.Variant, options); - break; - case "except": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule)value.Variant, options); - break; - case "field": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Security.FieldRule)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RoleMappingRuleDescriptor : SerializableDescriptor> -{ - internal RoleMappingRuleDescriptor(Action> configure) => configure.Invoke(this); - - public RoleMappingRuleDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RoleMappingRuleDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RoleMappingRuleDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RoleMappingRuleDescriptor All(IReadOnlyCollection roleMappingRule) => Set(roleMappingRule, "all"); - public RoleMappingRuleDescriptor All(Action configure) => Set(configure, "all"); - public RoleMappingRuleDescriptor Any(IReadOnlyCollection roleMappingRule) => Set(roleMappingRule, "any"); - public RoleMappingRuleDescriptor Any(Action configure) => Set(configure, "any"); - public RoleMappingRuleDescriptor Except(Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule roleMappingRule) => Set(roleMappingRule, "except"); - public RoleMappingRuleDescriptor Except(Action configure) => Set(configure, "except"); - public RoleMappingRuleDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Security.FieldRule fieldRule) => Set(fieldRule, "field"); - public RoleMappingRuleDescriptor Field(Action configure) => Set(configure, "field"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RoleMappingRuleDescriptor : SerializableDescriptor -{ - internal RoleMappingRuleDescriptor(Action configure) => configure.Invoke(this); - - public RoleMappingRuleDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RoleMappingRuleDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RoleMappingRuleDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RoleMappingRuleDescriptor All(IReadOnlyCollection roleMappingRule) => Set(roleMappingRule, "all"); - public RoleMappingRuleDescriptor All(Action configure) => Set(configure, "all"); - public RoleMappingRuleDescriptor Any(IReadOnlyCollection roleMappingRule) => Set(roleMappingRule, "any"); - public RoleMappingRuleDescriptor Any(Action configure) => Set(configure, "any"); - public RoleMappingRuleDescriptor Except(Elastic.Clients.Elasticsearch.Serverless.Security.RoleMappingRule roleMappingRule) => Set(roleMappingRule, "except"); - public RoleMappingRuleDescriptor Except(Action configure) => Set(configure, "except"); - public RoleMappingRuleDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Security.FieldRule fieldRule) => Set(fieldRule, "field"); - public RoleMappingRuleDescriptor Field(Action configure) => Set(configure, "field"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleQuery.g.cs deleted file mode 100644 index 5dee2275fcf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleQuery.g.cs +++ /dev/null @@ -1,384 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(RoleQueryConverter))] -public sealed partial class RoleQuery -{ - internal RoleQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static RoleQuery Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => new RoleQuery("bool", boolQuery); - public static RoleQuery Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => new RoleQuery("exists", existsQuery); - public static RoleQuery Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => new RoleQuery("ids", idsQuery); - public static RoleQuery Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => new RoleQuery("match", matchQuery); - public static RoleQuery MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => new RoleQuery("match_all", matchAllQuery); - public static RoleQuery Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => new RoleQuery("prefix", prefixQuery); - public static RoleQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => new RoleQuery("range", rangeQuery); - public static RoleQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => new RoleQuery("range", rangeQuery); - public static RoleQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => new RoleQuery("range", rangeQuery); - public static RoleQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => new RoleQuery("range", rangeQuery); - public static RoleQuery SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => new RoleQuery("simple_query_string", simpleQueryStringQuery); - public static RoleQuery Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => new RoleQuery("term", termQuery); - public static RoleQuery Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => new RoleQuery("terms", termsQuery); - public static RoleQuery Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => new RoleQuery("wildcard", wildcardQuery); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class RoleQueryConverter : JsonConverter -{ - public override RoleQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "bool") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "exists") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ids") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_all") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "simple_query_string") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wildcard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'RoleQuery' from the response."); - } - - var result = new RoleQuery(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, RoleQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "bool": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery)value.Variant, options); - break; - case "exists": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery)value.Variant, options); - break; - case "ids": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery)value.Variant, options); - break; - case "match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery)value.Variant, options); - break; - case "match_all": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery)value.Variant, options); - break; - case "prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery)value.Variant, options); - break; - case "range": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "simple_query_string": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery)value.Variant, options); - break; - case "term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery)value.Variant, options); - break; - case "wildcard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RoleQueryDescriptor : SerializableDescriptor> -{ - internal RoleQueryDescriptor(Action> configure) => configure.Invoke(this); - - public RoleQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RoleQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RoleQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RoleQueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public RoleQueryDescriptor Bool(Action> configure) => Set(configure, "bool"); - public RoleQueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public RoleQueryDescriptor Exists(Action> configure) => Set(configure, "exists"); - public RoleQueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public RoleQueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public RoleQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public RoleQueryDescriptor Match(Action> configure) => Set(configure, "match"); - public RoleQueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public RoleQueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public RoleQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public RoleQueryDescriptor Prefix(Action> configure) => Set(configure, "prefix"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); - public RoleQueryDescriptor SimpleQueryString(Action> configure) => Set(configure, "simple_query_string"); - public RoleQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public RoleQueryDescriptor Term(Action> configure) => Set(configure, "term"); - public RoleQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public RoleQueryDescriptor Terms(Action> configure) => Set(configure, "terms"); - public RoleQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public RoleQueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RoleQueryDescriptor : SerializableDescriptor -{ - internal RoleQueryDescriptor(Action configure) => configure.Invoke(this); - - public RoleQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RoleQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RoleQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RoleQueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public RoleQueryDescriptor Bool(Action configure) => Set(configure, "bool"); - public RoleQueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public RoleQueryDescriptor Exists(Action configure) => Set(configure, "exists"); - public RoleQueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public RoleQueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public RoleQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public RoleQueryDescriptor Match(Action configure) => Set(configure, "match"); - public RoleQueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public RoleQueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public RoleQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public RoleQueryDescriptor Prefix(Action configure) => Set(configure, "prefix"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public RoleQueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); - public RoleQueryDescriptor SimpleQueryString(Action configure) => Set(configure, "simple_query_string"); - public RoleQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public RoleQueryDescriptor Term(Action configure) => Set(configure, "term"); - public RoleQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public RoleQueryDescriptor Terms(Action configure) => Set(configure, "terms"); - public RoleQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public RoleQueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleTemplate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleTemplate.g.cs deleted file mode 100644 index 6ce4bacb6ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/RoleTemplate.g.cs +++ /dev/null @@ -1,108 +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.Security; - -public sealed partial class RoleTemplate -{ - [JsonInclude, JsonPropertyName("format")] - public Elastic.Clients.Elasticsearch.Serverless.Security.TemplateFormat? Format { get; set; } - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Serverless.Script Template { get; set; } -} - -public sealed partial class RoleTemplateDescriptor : SerializableDescriptor -{ - internal RoleTemplateDescriptor(Action configure) => configure.Invoke(this); - - public RoleTemplateDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Security.TemplateFormat? FormatValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Script TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - - public RoleTemplateDescriptor Format(Elastic.Clients.Elasticsearch.Serverless.Security.TemplateFormat? format) - { - FormatValue = format; - return Self; - } - - public RoleTemplateDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.Script template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public RoleTemplateDescriptor Template(Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public RoleTemplateDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FormatValue is not null) - { - writer.WritePropertyName("format"); - JsonSerializer.Serialize(writer, FormatValue, options); - } - - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.ScriptDescriptor(TemplateDescriptorAction), options); - } - else - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs deleted file mode 100644 index ad56f8bdb5d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/SearchAccess.g.cs +++ /dev/null @@ -1,56 +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.Security; - -public sealed partial class SearchAccess -{ - /// - /// - /// The document fields that the owners of the role have read access to. - /// - /// - [JsonInclude, JsonPropertyName("field_security")] - public Elastic.Clients.Elasticsearch.Serverless.Security.FieldSecurity? FieldSecurity { get; init; } - - /// - /// - /// A list of indices (or index name patterns) to which the permissions in this entry apply. - /// - /// - [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Names { get; init; } - - /// - /// - /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public object? Query { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ServiceToken.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ServiceToken.g.cs deleted file mode 100644 index d3fb27827d5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/ServiceToken.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class ServiceToken -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("value")] - public string Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/TotalUserProfiles.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/TotalUserProfiles.g.cs deleted file mode 100644 index 44b35e525e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/TotalUserProfiles.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class TotalUserProfiles -{ - [JsonInclude, JsonPropertyName("relation")] - public string Relation { get; init; } - [JsonInclude, JsonPropertyName("value")] - public long Value { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs deleted file mode 100644 index 3693ef101e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ /dev/null @@ -1,72 +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.Security; - -public sealed partial class UserIndicesPrivileges -{ - /// - /// - /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. - /// - /// - [JsonInclude, JsonPropertyName("allow_restricted_indices")] - public bool AllowRestrictedIndices { get; init; } - - /// - /// - /// The document fields that the owners of the role have read access to. - /// - /// - [JsonInclude, JsonPropertyName("field_security")] - public IReadOnlyCollection? FieldSecurity { get; init; } - - /// - /// - /// A list of indices (or index name patterns) to which the permissions in this entry apply. - /// - /// - [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Names { get; init; } - - /// - /// - /// The index level privileges that owners of the role have on the specified indices. - /// - /// - [JsonInclude, JsonPropertyName("privileges")] - public IReadOnlyCollection Privileges { get; init; } - - /// - /// - /// Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public object? Query { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfile.g.cs deleted file mode 100644 index 96482c37b66..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfile.g.cs +++ /dev/null @@ -1,42 +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.Security; - -public sealed partial class UserProfile -{ - [JsonInclude, JsonPropertyName("data")] - public IReadOnlyDictionary Data { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; init; } - [JsonInclude, JsonPropertyName("labels")] - public IReadOnlyDictionary Labels { get; init; } - [JsonInclude, JsonPropertyName("uid")] - public string Uid { get; init; } - [JsonInclude, JsonPropertyName("user")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserProfileUser User { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileHitMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileHitMetadata.g.cs deleted file mode 100644 index 739521380a7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileHitMetadata.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class UserProfileHitMetadata -{ - [JsonInclude, JsonPropertyName("_primary_term")] - public long PrimaryTerm { get; init; } - [JsonInclude, JsonPropertyName("_seq_no")] - public long SeqNo { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileUser.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileUser.g.cs deleted file mode 100644 index 59424cab9a3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileUser.g.cs +++ /dev/null @@ -1,44 +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.Security; - -public sealed partial class UserProfileUser -{ - [JsonInclude, JsonPropertyName("email")] - public string? Email { get; init; } - [JsonInclude, JsonPropertyName("full_name")] - public string? FullName { get; init; } - [JsonInclude, JsonPropertyName("realm_domain")] - public string? RealmDomain { get; init; } - [JsonInclude, JsonPropertyName("realm_name")] - public string RealmName { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection Roles { get; init; } - [JsonInclude, JsonPropertyName("username")] - public string Username { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileWithMetadata.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileWithMetadata.g.cs deleted file mode 100644 index 782c2ff537a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserProfileWithMetadata.g.cs +++ /dev/null @@ -1,46 +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.Security; - -public sealed partial class UserProfileWithMetadata -{ - [JsonInclude, JsonPropertyName("data")] - public IReadOnlyDictionary Data { get; init; } - [JsonInclude, JsonPropertyName("_doc")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserProfileHitMetadata Doc { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; init; } - [JsonInclude, JsonPropertyName("labels")] - public IReadOnlyDictionary Labels { get; init; } - [JsonInclude, JsonPropertyName("last_synchronized")] - public long LastSynchronized { get; init; } - [JsonInclude, JsonPropertyName("uid")] - public string Uid { get; init; } - [JsonInclude, JsonPropertyName("user")] - public Elastic.Clients.Elasticsearch.Serverless.Security.UserProfileUser User { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserQuery.g.cs deleted file mode 100644 index d030a6ecd17..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserQuery.g.cs +++ /dev/null @@ -1,384 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.Security; - -[JsonConverter(typeof(UserQueryConverter))] -public sealed partial class UserQuery -{ - internal UserQuery(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static UserQuery Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => new UserQuery("bool", boolQuery); - public static UserQuery Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => new UserQuery("exists", existsQuery); - public static UserQuery Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => new UserQuery("ids", idsQuery); - public static UserQuery Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => new UserQuery("match", matchQuery); - public static UserQuery MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => new UserQuery("match_all", matchAllQuery); - public static UserQuery Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => new UserQuery("prefix", prefixQuery); - public static UserQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => new UserQuery("range", rangeQuery); - public static UserQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => new UserQuery("range", rangeQuery); - public static UserQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => new UserQuery("range", rangeQuery); - public static UserQuery Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => new UserQuery("range", rangeQuery); - public static UserQuery SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => new UserQuery("simple_query_string", simpleQueryStringQuery); - public static UserQuery Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => new UserQuery("term", termQuery); - public static UserQuery Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => new UserQuery("terms", termsQuery); - public static UserQuery Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => new UserQuery("wildcard", wildcardQuery); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class UserQueryConverter : JsonConverter -{ - public override UserQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "bool") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "exists") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "ids") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "match_all") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "prefix") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "range") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "simple_query_string") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "term") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "wildcard") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'UserQuery' from the response."); - } - - var result = new UserQuery(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, UserQuery value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "bool": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery)value.Variant, options); - break; - case "exists": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery)value.Variant, options); - break; - case "ids": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery)value.Variant, options); - break; - case "match": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery)value.Variant, options); - break; - case "match_all": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery)value.Variant, options); - break; - case "prefix": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery)value.Variant, options); - break; - case "range": - JsonSerializer.Serialize(writer, value.Variant, value.Variant.GetType(), options); - break; - case "simple_query_string": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery)value.Variant, options); - break; - case "term": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery)value.Variant, options); - break; - case "wildcard": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UserQueryDescriptor : SerializableDescriptor> -{ - internal UserQueryDescriptor(Action> configure) => configure.Invoke(this); - - public UserQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private UserQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private UserQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public UserQueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public UserQueryDescriptor Bool(Action> configure) => Set(configure, "bool"); - public UserQueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public UserQueryDescriptor Exists(Action> configure) => Set(configure, "exists"); - public UserQueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public UserQueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public UserQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public UserQueryDescriptor Match(Action> configure) => Set(configure, "match"); - public UserQueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public UserQueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public UserQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public UserQueryDescriptor Prefix(Action> configure) => Set(configure, "prefix"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); - public UserQueryDescriptor SimpleQueryString(Action> configure) => Set(configure, "simple_query_string"); - public UserQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public UserQueryDescriptor Term(Action> configure) => Set(configure, "term"); - public UserQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public UserQueryDescriptor Terms(Action> configure) => Set(configure, "terms"); - public UserQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public UserQueryDescriptor Wildcard(Action> configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class UserQueryDescriptor : SerializableDescriptor -{ - internal UserQueryDescriptor(Action configure) => configure.Invoke(this); - - public UserQueryDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private UserQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private UserQueryDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public UserQueryDescriptor Bool(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.BoolQuery boolQuery) => Set(boolQuery, "bool"); - public UserQueryDescriptor Bool(Action configure) => Set(configure, "bool"); - public UserQueryDescriptor Exists(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.ExistsQuery existsQuery) => Set(existsQuery, "exists"); - public UserQueryDescriptor Exists(Action configure) => Set(configure, "exists"); - public UserQueryDescriptor Ids(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.IdsQuery idsQuery) => Set(idsQuery, "ids"); - public UserQueryDescriptor Ids(Action configure) => Set(configure, "ids"); - public UserQueryDescriptor Match(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchQuery matchQuery) => Set(matchQuery, "match"); - public UserQueryDescriptor Match(Action configure) => Set(configure, "match"); - public UserQueryDescriptor MatchAll(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.MatchAllQuery matchAllQuery) => Set(matchAllQuery, "match_all"); - public UserQueryDescriptor MatchAll(Action configure) => Set(configure, "match_all"); - public UserQueryDescriptor Prefix(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.PrefixQuery prefixQuery) => Set(prefixQuery, "prefix"); - public UserQueryDescriptor Prefix(Action configure) => Set(configure, "prefix"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.UntypedRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.DateRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.NumberRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor Range(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermRangeQuery rangeQuery) => Set(rangeQuery, "range"); - public UserQueryDescriptor SimpleQueryString(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.SimpleQueryStringQuery simpleQueryStringQuery) => Set(simpleQueryStringQuery, "simple_query_string"); - public UserQueryDescriptor SimpleQueryString(Action configure) => Set(configure, "simple_query_string"); - public UserQueryDescriptor Term(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermQuery termQuery) => Set(termQuery, "term"); - public UserQueryDescriptor Term(Action configure) => Set(configure, "term"); - public UserQueryDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.TermsQuery termsQuery) => Set(termsQuery, "terms"); - public UserQueryDescriptor Terms(Action configure) => Set(configure, "terms"); - public UserQueryDescriptor Wildcard(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.WildcardQuery wildcardQuery) => Set(wildcardQuery, "wildcard"); - public UserQueryDescriptor Wildcard(Action configure) => Set(configure, "wildcard"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserRealm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserRealm.g.cs deleted file mode 100644 index 6a51e1b4f4e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Security/UserRealm.g.cs +++ /dev/null @@ -1,36 +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.Security; - -public sealed partial class UserRealm -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SegmentsStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SegmentsStats.g.cs deleted file mode 100644 index 0d80a084f21..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SegmentsStats.g.cs +++ /dev/null @@ -1,213 +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 SegmentsStats -{ - /// - /// - /// Total number of segments across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Total amount of memory used for doc values across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("doc_values_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? DocValuesMemory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for doc values across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("doc_values_memory_in_bytes")] - public long DocValuesMemoryInBytes { get; init; } - - /// - /// - /// This object is not populated by the cluster stats API. - /// To get information on segment files, use the node stats API. - /// - /// - [JsonInclude, JsonPropertyName("file_sizes")] - public IReadOnlyDictionary FileSizes { get; init; } - - /// - /// - /// Total amount of memory used by fixed bit sets across all shards assigned to selected nodes. - /// Fixed bit sets are used for nested object field types and type filters for join fields. - /// - /// - [JsonInclude, JsonPropertyName("fixed_bit_set")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? FixedBitSet { get; init; } - - /// - /// - /// Total amount of memory, in bytes, used by fixed bit sets across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("fixed_bit_set_memory_in_bytes")] - public long FixedBitSetMemoryInBytes { get; init; } - [JsonInclude, JsonPropertyName("index_writer_max_memory_in_bytes")] - public long? IndexWriterMaxMemoryInBytes { get; init; } - - /// - /// - /// Total amount of memory used by all index writers across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("index_writer_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? IndexWriterMemory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used by all index writers across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("index_writer_memory_in_bytes")] - public long IndexWriterMemoryInBytes { get; init; } - - /// - /// - /// Unix timestamp, in milliseconds, of the most recently retried indexing request. - /// - /// - [JsonInclude, JsonPropertyName("max_unsafe_auto_id_timestamp")] - public long MaxUnsafeAutoIdTimestamp { get; init; } - - /// - /// - /// Total amount of memory used for segments across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Memory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for segments across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("memory_in_bytes")] - public long MemoryInBytes { get; init; } - - /// - /// - /// Total amount of memory used for normalization factors across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("norms_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? NormsMemory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for normalization factors across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("norms_memory_in_bytes")] - public long NormsMemoryInBytes { get; init; } - - /// - /// - /// Total amount of memory used for points across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("points_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? PointsMemory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for points across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("points_memory_in_bytes")] - public long PointsMemoryInBytes { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for stored fields across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("stored_fields_memory_in_bytes")] - public long StoredFieldsMemoryInBytes { get; init; } - [JsonInclude, JsonPropertyName("stored_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? StoredMemory { get; init; } - - /// - /// - /// Total amount of memory used for terms across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("terms_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TermsMemory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for terms across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("terms_memory_in_bytes")] - public long TermsMemoryInBytes { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used for term vectors across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("term_vectors_memory_in_bytes")] - public long TermVectorsMemoryInBytes { get; init; } - - /// - /// - /// Total amount of memory used for term vectors across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("term_vectory_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TermVectoryMemory { get; init; } - - /// - /// - /// Total amount of memory used by all version maps across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("version_map_memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? VersionMapMemory { get; init; } - - /// - /// - /// Total amount, in bytes, of memory used by all version maps across all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("version_map_memory_in_bytes")] - public long VersionMapMemoryInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardFailure.g.cs deleted file mode 100644 index c97cc06dc85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardFailure.g.cs +++ /dev/null @@ -1,42 +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 ShardFailure -{ - [JsonInclude, JsonPropertyName("index")] - public string? Index { get; init; } - [JsonInclude, JsonPropertyName("node")] - public string? Node { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause Reason { get; init; } - [JsonInclude, JsonPropertyName("shard")] - public int Shard { get; init; } - [JsonInclude, JsonPropertyName("status")] - public string? Status { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardStatistics.g.cs deleted file mode 100644 index 0957c62fef5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ShardStatistics.g.cs +++ /dev/null @@ -1,54 +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 ShardStatistics -{ - [JsonInclude, JsonPropertyName("failed")] - public int Failed { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - [JsonInclude, JsonPropertyName("skipped")] - public int? Skipped { get; init; } - - /// - /// - /// Indicates how many shards have successfully run the search. - /// - /// - [JsonInclude, JsonPropertyName("successful")] - public int Successful { get; init; } - - /// - /// - /// Indicates how many shards the search will run on overall. - /// - /// - [JsonInclude, JsonPropertyName("total")] - public int Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SlicedScroll.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SlicedScroll.g.cs deleted file mode 100644 index 18c2dad5b5e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SlicedScroll.g.cs +++ /dev/null @@ -1,156 +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 SlicedScroll -{ - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field? Field { get; set; } - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } - [JsonInclude, JsonPropertyName("max")] - public int Max { get; set; } -} - -public sealed partial class SlicedScrollDescriptor : SerializableDescriptor> -{ - internal SlicedScrollDescriptor(Action> configure) => configure.Invoke(this); - - public SlicedScrollDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private int MaxValue { get; set; } - - public SlicedScrollDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - public SlicedScrollDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SlicedScrollDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SlicedScrollDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - public SlicedScrollDescriptor Max(int max) - { - MaxValue = max; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - writer.WritePropertyName("max"); - writer.WriteNumberValue(MaxValue); - writer.WriteEndObject(); - } -} - -public sealed partial class SlicedScrollDescriptor : SerializableDescriptor -{ - internal SlicedScrollDescriptor(Action configure) => configure.Invoke(this); - - public SlicedScrollDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field? FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } - private int MaxValue { get; set; } - - public SlicedScrollDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field? field) - { - FieldValue = field; - return Self; - } - - public SlicedScrollDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SlicedScrollDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - public SlicedScrollDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) - { - IdValue = id; - return Self; - } - - public SlicedScrollDescriptor Max(int max) - { - MaxValue = max; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FieldValue is not null) - { - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - } - - writer.WritePropertyName("id"); - JsonSerializer.Serialize(writer, IdValue, options); - writer.WritePropertyName("max"); - writer.WriteNumberValue(MaxValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Slices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Slices.g.cs deleted file mode 100644 index 8742faa50ce..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Slices.g.cs +++ /dev/null @@ -1,47 +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.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; - -/// -/// -/// Slices configuration used to parallelize a process. -/// -/// -public sealed partial class Slices : Union -{ - public Slices(int Value) : base(Value) - { - } - - public Slices(Elastic.Clients.Elasticsearch.Serverless.SlicesCalculation Computed) : base(Computed) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepository.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepository.g.cs deleted file mode 100644 index 4fa4a5d53c3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepository.g.cs +++ /dev/null @@ -1,144 +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.Snapshot; - -public sealed partial class AzureRepository : IRepository -{ - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettings Settings { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "azure"; - - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; set; } -} - -public sealed partial class AzureRepositoryDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal AzureRepositoryDescriptor(Action configure) => configure.Invoke(this); - - public AzureRepositoryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private string? UuidValue { get; set; } - - public AzureRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public AzureRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public AzureRepositoryDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public AzureRepositoryDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("azure"); - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettings BuildSettings() - { - if (SettingsValue is not null) - { - return SettingsValue; - } - - if ((object)SettingsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (SettingsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepositorySettingsDescriptor(SettingsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - AzureRepository IBuildableDescriptor.Build() => new() - { - Settings = BuildSettings(), - Uuid = UuidValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs deleted file mode 100644 index 1810933fb85..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/AzureRepositorySettings.g.cs +++ /dev/null @@ -1,183 +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.Snapshot; - -public sealed partial class AzureRepositorySettings -{ - [JsonInclude, JsonPropertyName("base_path")] - public string? BasePath { get; set; } - [JsonInclude, JsonPropertyName("chunk_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSize { get; set; } - [JsonInclude, JsonPropertyName("client")] - public string? Client { get; set; } - [JsonInclude, JsonPropertyName("compress")] - public bool? Compress { get; set; } - [JsonInclude, JsonPropertyName("container")] - public string? Container { get; set; } - [JsonInclude, JsonPropertyName("location_mode")] - public string? LocationMode { get; set; } - [JsonInclude, JsonPropertyName("max_restore_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("max_snapshot_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("readonly")] - public bool? Readonly { get; set; } -} - -public sealed partial class AzureRepositorySettingsDescriptor : SerializableDescriptor -{ - internal AzureRepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - - public AzureRepositorySettingsDescriptor() : base() - { - } - - private string? BasePathValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSizeValue { get; set; } - private string? ClientValue { get; set; } - private bool? CompressValue { get; set; } - private string? ContainerValue { get; set; } - private string? LocationModeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSecValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSecValue { get; set; } - private bool? ReadonlyValue { get; set; } - - public AzureRepositorySettingsDescriptor BasePath(string? basePath) - { - BasePathValue = basePath; - return Self; - } - - public AzureRepositorySettingsDescriptor ChunkSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public AzureRepositorySettingsDescriptor Client(string? client) - { - ClientValue = client; - return Self; - } - - public AzureRepositorySettingsDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public AzureRepositorySettingsDescriptor Container(string? container) - { - ContainerValue = container; - return Self; - } - - public AzureRepositorySettingsDescriptor LocationMode(string? locationMode) - { - LocationModeValue = locationMode; - return Self; - } - - public AzureRepositorySettingsDescriptor MaxRestoreBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxRestoreBytesPerSec) - { - MaxRestoreBytesPerSecValue = maxRestoreBytesPerSec; - return Self; - } - - public AzureRepositorySettingsDescriptor MaxSnapshotBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSnapshotBytesPerSec) - { - MaxSnapshotBytesPerSecValue = maxSnapshotBytesPerSec; - return Self; - } - - public AzureRepositorySettingsDescriptor Readonly(bool? value = true) - { - ReadonlyValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(BasePathValue)) - { - writer.WritePropertyName("base_path"); - writer.WriteStringValue(BasePathValue); - } - - if (ChunkSizeValue is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, ChunkSizeValue, options); - } - - if (!string.IsNullOrEmpty(ClientValue)) - { - writer.WritePropertyName("client"); - writer.WriteStringValue(ClientValue); - } - - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - if (!string.IsNullOrEmpty(ContainerValue)) - { - writer.WritePropertyName("container"); - writer.WriteStringValue(ContainerValue); - } - - if (!string.IsNullOrEmpty(LocationModeValue)) - { - writer.WritePropertyName("location_mode"); - writer.WriteStringValue(LocationModeValue); - } - - if (MaxRestoreBytesPerSecValue is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxRestoreBytesPerSecValue, options); - } - - if (MaxSnapshotBytesPerSecValue is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxSnapshotBytesPerSecValue, options); - } - - if (ReadonlyValue.HasValue) - { - writer.WritePropertyName("readonly"); - writer.WriteBooleanValue(ReadonlyValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs deleted file mode 100644 index 630ebffe578..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CleanupRepositoryResults.g.cs +++ /dev/null @@ -1,47 +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.Snapshot; - -public sealed partial class CleanupRepositoryResults -{ - /// - /// - /// Number of binary large objects (blobs) removed during cleanup. - /// - /// - [JsonInclude, JsonPropertyName("deleted_blobs")] - public long DeletedBlobs { get; init; } - - /// - /// - /// Number of bytes freed by cleanup operations. - /// - /// - [JsonInclude, JsonPropertyName("deleted_bytes")] - public long DeletedBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CompactNodeInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CompactNodeInfo.g.cs deleted file mode 100644 index 97858134697..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/CompactNodeInfo.g.cs +++ /dev/null @@ -1,34 +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.Snapshot; - -public sealed partial class CompactNodeInfo -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs deleted file mode 100644 index f95ec40b41d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/FileCountSnapshotStats.g.cs +++ /dev/null @@ -1,36 +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.Snapshot; - -public sealed partial class FileCountSnapshotStats -{ - [JsonInclude, JsonPropertyName("file_count")] - public int FileCount { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepository.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepository.g.cs deleted file mode 100644 index e0700adbd5f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepository.g.cs +++ /dev/null @@ -1,144 +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.Snapshot; - -public sealed partial class GcsRepository : IRepository -{ - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettings Settings { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "gcs"; - - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; set; } -} - -public sealed partial class GcsRepositoryDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal GcsRepositoryDescriptor(Action configure) => configure.Invoke(this); - - public GcsRepositoryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private string? UuidValue { get; set; } - - public GcsRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public GcsRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public GcsRepositoryDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public GcsRepositoryDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("gcs"); - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettings BuildSettings() - { - if (SettingsValue is not null) - { - return SettingsValue; - } - - if ((object)SettingsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (SettingsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepositorySettingsDescriptor(SettingsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - GcsRepository IBuildableDescriptor.Build() => new() - { - Settings = BuildSettings(), - Uuid = UuidValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs deleted file mode 100644 index f8129208016..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/GcsRepositorySettings.g.cs +++ /dev/null @@ -1,179 +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.Snapshot; - -public sealed partial class GcsRepositorySettings -{ - [JsonInclude, JsonPropertyName("application_name")] - public string? ApplicationName { get; set; } - [JsonInclude, JsonPropertyName("base_path")] - public string? BasePath { get; set; } - [JsonInclude, JsonPropertyName("bucket")] - public string Bucket { get; set; } - [JsonInclude, JsonPropertyName("chunk_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSize { get; set; } - [JsonInclude, JsonPropertyName("client")] - public string? Client { get; set; } - [JsonInclude, JsonPropertyName("compress")] - public bool? Compress { get; set; } - [JsonInclude, JsonPropertyName("max_restore_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("max_snapshot_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("readonly")] - public bool? Readonly { get; set; } -} - -public sealed partial class GcsRepositorySettingsDescriptor : SerializableDescriptor -{ - internal GcsRepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - - public GcsRepositorySettingsDescriptor() : base() - { - } - - private string? ApplicationNameValue { get; set; } - private string? BasePathValue { get; set; } - private string BucketValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSizeValue { get; set; } - private string? ClientValue { get; set; } - private bool? CompressValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSecValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSecValue { get; set; } - private bool? ReadonlyValue { get; set; } - - public GcsRepositorySettingsDescriptor ApplicationName(string? applicationName) - { - ApplicationNameValue = applicationName; - return Self; - } - - public GcsRepositorySettingsDescriptor BasePath(string? basePath) - { - BasePathValue = basePath; - return Self; - } - - public GcsRepositorySettingsDescriptor Bucket(string bucket) - { - BucketValue = bucket; - return Self; - } - - public GcsRepositorySettingsDescriptor ChunkSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public GcsRepositorySettingsDescriptor Client(string? client) - { - ClientValue = client; - return Self; - } - - public GcsRepositorySettingsDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public GcsRepositorySettingsDescriptor MaxRestoreBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxRestoreBytesPerSec) - { - MaxRestoreBytesPerSecValue = maxRestoreBytesPerSec; - return Self; - } - - public GcsRepositorySettingsDescriptor MaxSnapshotBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSnapshotBytesPerSec) - { - MaxSnapshotBytesPerSecValue = maxSnapshotBytesPerSec; - return Self; - } - - public GcsRepositorySettingsDescriptor Readonly(bool? value = true) - { - ReadonlyValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ApplicationNameValue)) - { - writer.WritePropertyName("application_name"); - writer.WriteStringValue(ApplicationNameValue); - } - - if (!string.IsNullOrEmpty(BasePathValue)) - { - writer.WritePropertyName("base_path"); - writer.WriteStringValue(BasePathValue); - } - - writer.WritePropertyName("bucket"); - writer.WriteStringValue(BucketValue); - if (ChunkSizeValue is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, ChunkSizeValue, options); - } - - if (!string.IsNullOrEmpty(ClientValue)) - { - writer.WritePropertyName("client"); - writer.WriteStringValue(ClientValue); - } - - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - if (MaxRestoreBytesPerSecValue is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxRestoreBytesPerSecValue, options); - } - - if (MaxSnapshotBytesPerSecValue is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxSnapshotBytesPerSecValue, options); - } - - if (ReadonlyValue.HasValue) - { - writer.WritePropertyName("readonly"); - writer.WriteBooleanValue(ReadonlyValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/IndexDetails.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/IndexDetails.g.cs deleted file mode 100644 index ecd38d300fa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/IndexDetails.g.cs +++ /dev/null @@ -1,40 +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.Snapshot; - -public sealed partial class IndexDetails -{ - [JsonInclude, JsonPropertyName("max_segments_per_shard")] - public long MaxSegmentsPerShard { get; init; } - [JsonInclude, JsonPropertyName("shard_count")] - public int ShardCount { get; init; } - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/InfoFeatureState.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/InfoFeatureState.g.cs deleted file mode 100644 index c7a92a7f6e4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/InfoFeatureState.g.cs +++ /dev/null @@ -1,37 +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.Snapshot; - -public sealed partial class InfoFeatureState -{ - [JsonInclude, JsonPropertyName("feature_name")] - public string FeatureName { get; init; } - [JsonInclude, JsonPropertyName("indices")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Indices { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs deleted file mode 100644 index af28380959d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepository.g.cs +++ /dev/null @@ -1,144 +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.Snapshot; - -public sealed partial class ReadOnlyUrlRepository : IRepository -{ - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettings Settings { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "url"; - - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; set; } -} - -public sealed partial class ReadOnlyUrlRepositoryDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal ReadOnlyUrlRepositoryDescriptor(Action configure) => configure.Invoke(this); - - public ReadOnlyUrlRepositoryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private string? UuidValue { get; set; } - - public ReadOnlyUrlRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public ReadOnlyUrlRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public ReadOnlyUrlRepositoryDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public ReadOnlyUrlRepositoryDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("url"); - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettings BuildSettings() - { - if (SettingsValue is not null) - { - return SettingsValue; - } - - if ((object)SettingsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (SettingsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepositorySettingsDescriptor(SettingsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - ReadOnlyUrlRepository IBuildableDescriptor.Build() => new() - { - Settings = BuildSettings(), - Uuid = UuidValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs deleted file mode 100644 index 3335b4442f6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ReadOnlyUrlRepositorySettings.g.cs +++ /dev/null @@ -1,164 +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.Snapshot; - -public sealed partial class ReadOnlyUrlRepositorySettings -{ - [JsonInclude, JsonPropertyName("chunk_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSize { get; set; } - [JsonInclude, JsonPropertyName("compress")] - public bool? Compress { get; set; } - [JsonInclude, JsonPropertyName("http_max_retries")] - public int? HttpMaxRetries { get; set; } - [JsonInclude, JsonPropertyName("http_socket_timeout")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? HttpSocketTimeout { get; set; } - [JsonInclude, JsonPropertyName("max_number_of_snapshots")] - public int? MaxNumberOfSnapshots { get; set; } - [JsonInclude, JsonPropertyName("max_restore_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("max_snapshot_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("url")] - public string Url { get; set; } -} - -public sealed partial class ReadOnlyUrlRepositorySettingsDescriptor : SerializableDescriptor -{ - internal ReadOnlyUrlRepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - - public ReadOnlyUrlRepositorySettingsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSizeValue { get; set; } - private bool? CompressValue { get; set; } - private int? HttpMaxRetriesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration? HttpSocketTimeoutValue { get; set; } - private int? MaxNumberOfSnapshotsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSecValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSecValue { get; set; } - private string UrlValue { get; set; } - - public ReadOnlyUrlRepositorySettingsDescriptor ChunkSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor HttpMaxRetries(int? httpMaxRetries) - { - HttpMaxRetriesValue = httpMaxRetries; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor HttpSocketTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? httpSocketTimeout) - { - HttpSocketTimeoutValue = httpSocketTimeout; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor MaxNumberOfSnapshots(int? maxNumberOfSnapshots) - { - MaxNumberOfSnapshotsValue = maxNumberOfSnapshots; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor MaxRestoreBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxRestoreBytesPerSec) - { - MaxRestoreBytesPerSecValue = maxRestoreBytesPerSec; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor MaxSnapshotBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSnapshotBytesPerSec) - { - MaxSnapshotBytesPerSecValue = maxSnapshotBytesPerSec; - return Self; - } - - public ReadOnlyUrlRepositorySettingsDescriptor Url(string url) - { - UrlValue = url; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ChunkSizeValue is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, ChunkSizeValue, options); - } - - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - if (HttpMaxRetriesValue.HasValue) - { - writer.WritePropertyName("http_max_retries"); - writer.WriteNumberValue(HttpMaxRetriesValue.Value); - } - - if (HttpSocketTimeoutValue is not null) - { - writer.WritePropertyName("http_socket_timeout"); - JsonSerializer.Serialize(writer, HttpSocketTimeoutValue, options); - } - - if (MaxNumberOfSnapshotsValue.HasValue) - { - writer.WritePropertyName("max_number_of_snapshots"); - writer.WriteNumberValue(MaxNumberOfSnapshotsValue.Value); - } - - if (MaxRestoreBytesPerSecValue is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxRestoreBytesPerSecValue, options); - } - - if (MaxSnapshotBytesPerSecValue is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxSnapshotBytesPerSecValue, options); - } - - writer.WritePropertyName("url"); - writer.WriteStringValue(UrlValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Repositories.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Repositories.g.cs deleted file mode 100644 index a8395962378..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Repositories.g.cs +++ /dev/null @@ -1,161 +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.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.Snapshot; - -public partial class Repositories : IsADictionary -{ - public Repositories() - { - } - - public Repositories(IDictionary container) : base(container) - { - } - - public void Add(string name, IRepository repository) => BackingDictionary.Add(Sanitize(name), repository); - public bool TryGetRepository(string name, [NotNullWhen(returnValue: true)] out IRepository repository) => BackingDictionary.TryGetValue(Sanitize(name), out repository); - - public bool TryGetRepository(string name, [NotNullWhen(returnValue: true)] out T? repository) where T : class, IRepository - { - if (BackingDictionary.TryGetValue(Sanitize(name), out var matchedValue) && matchedValue is T finalValue) - { - repository = finalValue; - return true; - } - - repository = null; - return false; - } -} - -public sealed partial class RepositoriesDescriptor : IsADictionaryDescriptor -{ - public RepositoriesDescriptor() : base(new Repositories()) - { - } - - public RepositoriesDescriptor(Repositories repositories) : base(repositories ?? new Repositories()) - { - } - - public RepositoriesDescriptor Azure(string repositoryName) => AssignVariant(repositoryName, null); - public RepositoriesDescriptor Azure(string repositoryName, Action configure) => AssignVariant(repositoryName, configure); - public RepositoriesDescriptor Azure(string repositoryName, AzureRepository azureRepository) => AssignVariant(repositoryName, azureRepository); - public RepositoriesDescriptor Gcs(string repositoryName) => AssignVariant(repositoryName, null); - public RepositoriesDescriptor Gcs(string repositoryName, Action configure) => AssignVariant(repositoryName, configure); - public RepositoriesDescriptor Gcs(string repositoryName, GcsRepository gcsRepository) => AssignVariant(repositoryName, gcsRepository); - public RepositoriesDescriptor ReadOnlyUrl(string repositoryName) => AssignVariant(repositoryName, null); - public RepositoriesDescriptor ReadOnlyUrl(string repositoryName, Action configure) => AssignVariant(repositoryName, configure); - public RepositoriesDescriptor ReadOnlyUrl(string repositoryName, ReadOnlyUrlRepository readOnlyUrlRepository) => AssignVariant(repositoryName, readOnlyUrlRepository); - public RepositoriesDescriptor S3(string repositoryName) => AssignVariant(repositoryName, null); - public RepositoriesDescriptor S3(string repositoryName, Action configure) => AssignVariant(repositoryName, configure); - public RepositoriesDescriptor S3(string repositoryName, S3Repository s3Repository) => AssignVariant(repositoryName, s3Repository); - public RepositoriesDescriptor SharedFileSystem(string repositoryName) => AssignVariant(repositoryName, null); - public RepositoriesDescriptor SharedFileSystem(string repositoryName, Action configure) => AssignVariant(repositoryName, configure); - public RepositoriesDescriptor SharedFileSystem(string repositoryName, SharedFileSystemRepository sharedFileSystemRepository) => AssignVariant(repositoryName, sharedFileSystemRepository); - public RepositoriesDescriptor SourceOnly(string repositoryName) => AssignVariant(repositoryName, null); - public RepositoriesDescriptor SourceOnly(string repositoryName, Action configure) => AssignVariant(repositoryName, configure); - public RepositoriesDescriptor SourceOnly(string repositoryName, SourceOnlyRepository sourceOnlyRepository) => AssignVariant(repositoryName, sourceOnlyRepository); -} - -internal sealed partial class RepositoryInterfaceConverter : JsonConverter -{ - public override IRepository Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var copiedReader = reader; - string? type = null; - using var jsonDoc = JsonDocument.ParseValue(ref copiedReader); - if (jsonDoc is not null && jsonDoc.RootElement.TryGetProperty("type", out var readType) && readType.ValueKind == JsonValueKind.String) - { - type = readType.ToString(); - } - - switch (type) - { - case "azure": - return JsonSerializer.Deserialize(ref reader, options); - case "gcs": - return JsonSerializer.Deserialize(ref reader, options); - case "url": - return JsonSerializer.Deserialize(ref reader, options); - case "s3": - return JsonSerializer.Deserialize(ref reader, options); - case "fs": - return JsonSerializer.Deserialize(ref reader, options); - case "source": - return JsonSerializer.Deserialize(ref reader, options); - default: - ThrowHelper.ThrowUnknownTaggedUnionVariantJsonException(type, typeof(IRepository)); - return null; - } - } - - public override void Write(Utf8JsonWriter writer, IRepository value, JsonSerializerOptions options) - { - if (value is null) - { - writer.WriteNullValue(); - return; - } - - switch (value.Type) - { - case "azure": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.AzureRepository), options); - return; - case "gcs": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.GcsRepository), options); - return; - case "url": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.ReadOnlyUrlRepository), options); - return; - case "s3": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3Repository), options); - return; - case "fs": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepository), options); - return; - case "source": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepository), options); - return; - default: - var type = value.GetType(); - JsonSerializer.Serialize(writer, value, type, options); - return; - } - } -} - -[JsonConverter(typeof(RepositoryInterfaceConverter))] -public partial interface IRepository -{ - public string? Type { get; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3Repository.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3Repository.g.cs deleted file mode 100644 index 5082b90ec15..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3Repository.g.cs +++ /dev/null @@ -1,144 +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.Snapshot; - -public sealed partial class S3Repository : IRepository -{ - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettings Settings { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "s3"; - - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; set; } -} - -public sealed partial class S3RepositoryDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal S3RepositoryDescriptor(Action configure) => configure.Invoke(this); - - public S3RepositoryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private string? UuidValue { get; set; } - - public S3RepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public S3RepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public S3RepositoryDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public S3RepositoryDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("s3"); - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettings BuildSettings() - { - if (SettingsValue is not null) - { - return SettingsValue; - } - - if ((object)SettingsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (SettingsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Snapshot.S3RepositorySettingsDescriptor(SettingsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - S3Repository IBuildableDescriptor.Build() => new() - { - Settings = BuildSettings(), - Uuid = UuidValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3RepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3RepositorySettings.g.cs deleted file mode 100644 index 9a22a6fa90c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/S3RepositorySettings.g.cs +++ /dev/null @@ -1,224 +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.Snapshot; - -public sealed partial class S3RepositorySettings -{ - [JsonInclude, JsonPropertyName("base_path")] - public string? BasePath { get; set; } - [JsonInclude, JsonPropertyName("bucket")] - public string Bucket { get; set; } - [JsonInclude, JsonPropertyName("buffer_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? BufferSize { get; set; } - [JsonInclude, JsonPropertyName("canned_acl")] - public string? CannedAcl { get; set; } - [JsonInclude, JsonPropertyName("chunk_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSize { get; set; } - [JsonInclude, JsonPropertyName("client")] - public string? Client { get; set; } - [JsonInclude, JsonPropertyName("compress")] - public bool? Compress { get; set; } - [JsonInclude, JsonPropertyName("max_restore_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("max_snapshot_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("readonly")] - public bool? Readonly { get; set; } - [JsonInclude, JsonPropertyName("server_side_encryption")] - public bool? ServerSideEncryption { get; set; } - [JsonInclude, JsonPropertyName("storage_class")] - public string? StorageClass { get; set; } -} - -public sealed partial class S3RepositorySettingsDescriptor : SerializableDescriptor -{ - internal S3RepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - - public S3RepositorySettingsDescriptor() : base() - { - } - - private string? BasePathValue { get; set; } - private string BucketValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? BufferSizeValue { get; set; } - private string? CannedAclValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSizeValue { get; set; } - private string? ClientValue { get; set; } - private bool? CompressValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSecValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSecValue { get; set; } - private bool? ReadonlyValue { get; set; } - private bool? ServerSideEncryptionValue { get; set; } - private string? StorageClassValue { get; set; } - - public S3RepositorySettingsDescriptor BasePath(string? basePath) - { - BasePathValue = basePath; - return Self; - } - - public S3RepositorySettingsDescriptor Bucket(string bucket) - { - BucketValue = bucket; - return Self; - } - - public S3RepositorySettingsDescriptor BufferSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? bufferSize) - { - BufferSizeValue = bufferSize; - return Self; - } - - public S3RepositorySettingsDescriptor CannedAcl(string? cannedAcl) - { - CannedAclValue = cannedAcl; - return Self; - } - - public S3RepositorySettingsDescriptor ChunkSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public S3RepositorySettingsDescriptor Client(string? client) - { - ClientValue = client; - return Self; - } - - public S3RepositorySettingsDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public S3RepositorySettingsDescriptor MaxRestoreBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxRestoreBytesPerSec) - { - MaxRestoreBytesPerSecValue = maxRestoreBytesPerSec; - return Self; - } - - public S3RepositorySettingsDescriptor MaxSnapshotBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSnapshotBytesPerSec) - { - MaxSnapshotBytesPerSecValue = maxSnapshotBytesPerSec; - return Self; - } - - public S3RepositorySettingsDescriptor Readonly(bool? value = true) - { - ReadonlyValue = value; - return Self; - } - - public S3RepositorySettingsDescriptor ServerSideEncryption(bool? serverSideEncryption = true) - { - ServerSideEncryptionValue = serverSideEncryption; - return Self; - } - - public S3RepositorySettingsDescriptor StorageClass(string? storageClass) - { - StorageClassValue = storageClass; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(BasePathValue)) - { - writer.WritePropertyName("base_path"); - writer.WriteStringValue(BasePathValue); - } - - writer.WritePropertyName("bucket"); - writer.WriteStringValue(BucketValue); - if (BufferSizeValue is not null) - { - writer.WritePropertyName("buffer_size"); - JsonSerializer.Serialize(writer, BufferSizeValue, options); - } - - if (!string.IsNullOrEmpty(CannedAclValue)) - { - writer.WritePropertyName("canned_acl"); - writer.WriteStringValue(CannedAclValue); - } - - if (ChunkSizeValue is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, ChunkSizeValue, options); - } - - if (!string.IsNullOrEmpty(ClientValue)) - { - writer.WritePropertyName("client"); - writer.WriteStringValue(ClientValue); - } - - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - if (MaxRestoreBytesPerSecValue is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxRestoreBytesPerSecValue, options); - } - - if (MaxSnapshotBytesPerSecValue is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxSnapshotBytesPerSecValue, options); - } - - if (ReadonlyValue.HasValue) - { - writer.WritePropertyName("readonly"); - writer.WriteBooleanValue(ReadonlyValue.Value); - } - - if (ServerSideEncryptionValue.HasValue) - { - writer.WritePropertyName("server_side_encryption"); - writer.WriteBooleanValue(ServerSideEncryptionValue.Value); - } - - if (!string.IsNullOrEmpty(StorageClassValue)) - { - writer.WritePropertyName("storage_class"); - writer.WriteStringValue(StorageClassValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStats.g.cs deleted file mode 100644 index cacaaed5705..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStats.g.cs +++ /dev/null @@ -1,44 +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.Snapshot; - -public sealed partial class ShardsStats -{ - [JsonInclude, JsonPropertyName("done")] - public long Done { get; init; } - [JsonInclude, JsonPropertyName("failed")] - public long Failed { get; init; } - [JsonInclude, JsonPropertyName("finalizing")] - public long Finalizing { get; init; } - [JsonInclude, JsonPropertyName("initializing")] - public long Initializing { get; init; } - [JsonInclude, JsonPropertyName("started")] - public long Started { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs deleted file mode 100644 index 0a0a53d921d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummary.g.cs +++ /dev/null @@ -1,42 +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.Snapshot; - -public sealed partial class ShardsStatsSummary -{ - [JsonInclude, JsonPropertyName("incremental")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ShardsStatsSummaryItem Incremental { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ShardsStatsSummaryItem Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs deleted file mode 100644 index 659caee8f26..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/ShardsStatsSummaryItem.g.cs +++ /dev/null @@ -1,36 +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.Snapshot; - -public sealed partial class ShardsStatsSummaryItem -{ - [JsonInclude, JsonPropertyName("file_count")] - public long FileCount { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs deleted file mode 100644 index ce70a279ec7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepository.g.cs +++ /dev/null @@ -1,144 +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.Snapshot; - -public sealed partial class SharedFileSystemRepository : IRepository -{ - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettings Settings { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "fs"; - - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; set; } -} - -public sealed partial class SharedFileSystemRepositoryDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SharedFileSystemRepositoryDescriptor(Action configure) => configure.Invoke(this); - - public SharedFileSystemRepositoryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private string? UuidValue { get; set; } - - public SharedFileSystemRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public SharedFileSystemRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public SharedFileSystemRepositoryDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public SharedFileSystemRepositoryDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("fs"); - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettings BuildSettings() - { - if (SettingsValue is not null) - { - return SettingsValue; - } - - if ((object)SettingsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (SettingsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Snapshot.SharedFileSystemRepositorySettingsDescriptor(SettingsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - SharedFileSystemRepository IBuildableDescriptor.Build() => new() - { - Settings = BuildSettings(), - Uuid = UuidValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs deleted file mode 100644 index ca0a1dcea34..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SharedFileSystemRepositorySettings.g.cs +++ /dev/null @@ -1,149 +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.Snapshot; - -public sealed partial class SharedFileSystemRepositorySettings -{ - [JsonInclude, JsonPropertyName("chunk_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSize { get; set; } - [JsonInclude, JsonPropertyName("compress")] - public bool? Compress { get; set; } - [JsonInclude, JsonPropertyName("location")] - public string Location { get; set; } - [JsonInclude, JsonPropertyName("max_number_of_snapshots")] - public int? MaxNumberOfSnapshots { get; set; } - [JsonInclude, JsonPropertyName("max_restore_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("max_snapshot_bytes_per_sec")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSec { get; set; } - [JsonInclude, JsonPropertyName("readonly")] - public bool? Readonly { get; set; } -} - -public sealed partial class SharedFileSystemRepositorySettingsDescriptor : SerializableDescriptor -{ - internal SharedFileSystemRepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - - public SharedFileSystemRepositorySettingsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSizeValue { get; set; } - private bool? CompressValue { get; set; } - private string LocationValue { get; set; } - private int? MaxNumberOfSnapshotsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSecValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSecValue { get; set; } - private bool? ReadonlyValue { get; set; } - - public SharedFileSystemRepositorySettingsDescriptor ChunkSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public SharedFileSystemRepositorySettingsDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public SharedFileSystemRepositorySettingsDescriptor Location(string location) - { - LocationValue = location; - return Self; - } - - public SharedFileSystemRepositorySettingsDescriptor MaxNumberOfSnapshots(int? maxNumberOfSnapshots) - { - MaxNumberOfSnapshotsValue = maxNumberOfSnapshots; - return Self; - } - - public SharedFileSystemRepositorySettingsDescriptor MaxRestoreBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxRestoreBytesPerSec) - { - MaxRestoreBytesPerSecValue = maxRestoreBytesPerSec; - return Self; - } - - public SharedFileSystemRepositorySettingsDescriptor MaxSnapshotBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSnapshotBytesPerSec) - { - MaxSnapshotBytesPerSecValue = maxSnapshotBytesPerSec; - return Self; - } - - public SharedFileSystemRepositorySettingsDescriptor Readonly(bool? value = true) - { - ReadonlyValue = value; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ChunkSizeValue is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, ChunkSizeValue, options); - } - - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - writer.WritePropertyName("location"); - writer.WriteStringValue(LocationValue); - if (MaxNumberOfSnapshotsValue.HasValue) - { - writer.WritePropertyName("max_number_of_snapshots"); - writer.WriteNumberValue(MaxNumberOfSnapshotsValue.Value); - } - - if (MaxRestoreBytesPerSecValue is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxRestoreBytesPerSecValue, options); - } - - if (MaxSnapshotBytesPerSecValue is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxSnapshotBytesPerSecValue, options); - } - - if (ReadonlyValue.HasValue) - { - writer.WritePropertyName("readonly"); - writer.WriteBooleanValue(ReadonlyValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs deleted file mode 100644 index 6eba7b4b26e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotIndexStats.g.cs +++ /dev/null @@ -1,38 +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.Snapshot; - -public sealed partial class SnapshotIndexStats -{ - [JsonInclude, JsonPropertyName("shards")] - public IReadOnlyDictionary Shards { get; init; } - [JsonInclude, JsonPropertyName("shards_stats")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ShardsStats ShardsStats { get; init; } - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotStats Stats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotInfo.g.cs deleted file mode 100644 index 56b8fa219e3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotInfo.g.cs +++ /dev/null @@ -1,75 +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.Snapshot; - -public sealed partial class SnapshotInfo -{ - [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } - [JsonInclude, JsonPropertyName("duration")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Duration { get; init; } - [JsonInclude, JsonPropertyName("duration_in_millis")] - public long? DurationInMillis { get; init; } - [JsonInclude, JsonPropertyName("end_time")] - public DateTimeOffset? EndTime { get; init; } - [JsonInclude, JsonPropertyName("end_time_in_millis")] - public long? EndTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("failures")] - public IReadOnlyCollection? Failures { get; init; } - [JsonInclude, JsonPropertyName("feature_states")] - public IReadOnlyCollection? FeatureStates { get; init; } - [JsonInclude, JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; init; } - [JsonInclude, JsonPropertyName("index_details")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.Snapshot.IndexDetails))] - public IReadOnlyDictionary? IndexDetails { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection? Indices { get; init; } - [JsonInclude, JsonPropertyName("metadata")] - public IReadOnlyDictionary? Metadata { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public string? Reason { get; init; } - [JsonInclude, JsonPropertyName("repository")] - public string? Repository { get; init; } - [JsonInclude, JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } - [JsonInclude, JsonPropertyName("snapshot")] - public string Snapshot { get; init; } - [JsonInclude, JsonPropertyName("start_time")] - public DateTimeOffset? StartTime { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long? StartTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("state")] - public string? State { get; init; } - [JsonInclude, JsonPropertyName("uuid")] - public string Uuid { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; init; } - [JsonInclude, JsonPropertyName("version_id")] - public long? VersionId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs deleted file mode 100644 index 773e673d3f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotResponseItem.g.cs +++ /dev/null @@ -1,38 +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.Snapshot; - -public sealed partial class SnapshotResponseItem -{ - [JsonInclude, JsonPropertyName("error")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? Error { get; init; } - [JsonInclude, JsonPropertyName("repository")] - public string Repository { get; init; } - [JsonInclude, JsonPropertyName("snapshots")] - public IReadOnlyCollection? Snapshots { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotRestore.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotRestore.g.cs deleted file mode 100644 index 66f4eafe57b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotRestore.g.cs +++ /dev/null @@ -1,38 +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.Snapshot; - -public sealed partial class SnapshotRestore -{ - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - [JsonInclude, JsonPropertyName("shards")] - public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } - [JsonInclude, JsonPropertyName("snapshot")] - public string Snapshot { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs deleted file mode 100644 index 4c2effd0b43..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs +++ /dev/null @@ -1,44 +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.Snapshot; - -public sealed partial class SnapshotShardFailure -{ - [JsonInclude, JsonPropertyName("index")] - public string Index { get; init; } - [JsonInclude, JsonPropertyName("index_uuid")] - public string IndexUuid { get; init; } - [JsonInclude, JsonPropertyName("node_id")] - public string? NodeId { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public string Reason { get; init; } - [JsonInclude, JsonPropertyName("shard_id")] - public string ShardId { get; init; } - [JsonInclude, JsonPropertyName("status")] - public string Status { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs deleted file mode 100644 index 6f840e7deb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotShardsStatus.g.cs +++ /dev/null @@ -1,36 +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.Snapshot; - -public sealed partial class SnapshotShardsStatus -{ - [JsonInclude, JsonPropertyName("stage")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ShardsStatsStage Stage { get; init; } - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ShardsStatsSummary Stats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotStats.g.cs deleted file mode 100644 index f6089c6b216..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SnapshotStats.g.cs +++ /dev/null @@ -1,42 +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.Snapshot; - -public sealed partial class SnapshotStats -{ - [JsonInclude, JsonPropertyName("incremental")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.FileCountSnapshotStats Incremental { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Time { get; init; } - [JsonInclude, JsonPropertyName("time_in_millis")] - public long TimeInMillis { get; init; } - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.FileCountSnapshotStats Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs deleted file mode 100644 index 559095c9279..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepository.g.cs +++ /dev/null @@ -1,144 +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.Snapshot; - -public sealed partial class SourceOnlyRepository : IRepository -{ - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettings Settings { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "source"; - - [JsonInclude, JsonPropertyName("uuid")] - public string? Uuid { get; set; } -} - -public sealed partial class SourceOnlyRepositoryDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal SourceOnlyRepositoryDescriptor(Action configure) => configure.Invoke(this); - - public SourceOnlyRepositoryDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettings SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - private string? UuidValue { get; set; } - - public SourceOnlyRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettings settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public SourceOnlyRepositoryDescriptor Settings(Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public SourceOnlyRepositoryDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - - public SourceOnlyRepositoryDescriptor Uuid(string? uuid) - { - UuidValue = uuid; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettingsDescriptor(SettingsDescriptorAction), options); - } - else - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("source"); - if (!string.IsNullOrEmpty(UuidValue)) - { - writer.WritePropertyName("uuid"); - writer.WriteStringValue(UuidValue); - } - - writer.WriteEndObject(); - } - - private Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettings BuildSettings() - { - if (SettingsValue is not null) - { - return SettingsValue; - } - - if ((object)SettingsDescriptor is IBuildableDescriptor buildable) - { - return buildable.Build(); - } - - if (SettingsDescriptorAction is not null) - { - var descriptor = new Elastic.Clients.Elasticsearch.Serverless.Snapshot.SourceOnlyRepositorySettingsDescriptor(SettingsDescriptorAction); - if ((object)descriptor is IBuildableDescriptor buildableFromAction) - { - return buildableFromAction.Build(); - } - } - - return null; - } - - SourceOnlyRepository IBuildableDescriptor.Build() => new() - { - Settings = BuildSettings(), - Uuid = UuidValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs deleted file mode 100644 index b039cdb0a45..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/SourceOnlyRepositorySettings.g.cs +++ /dev/null @@ -1,255 +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.Snapshot; - -internal sealed partial class SourceOnlyRepositorySettingsConverter : JsonConverter -{ - public override SourceOnlyRepositorySettings Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new SourceOnlyRepositorySettings(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "chunk_size") - { - variant.ChunkSize = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "compress") - { - variant.Compress = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "delegate_type") - { - variant.DelegateType = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_number_of_snapshots") - { - variant.MaxNumberOfSnapshots = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_restore_bytes_per_sec") - { - variant.MaxRestoreBytesPerSec = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "max_snapshot_bytes_per_sec") - { - variant.MaxSnapshotBytesPerSec = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "read_only" || property == "readonly") - { - variant.ReadOnly = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, SourceOnlyRepositorySettings value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.ChunkSize is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, value.ChunkSize, options); - } - - if (value.Compress.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(value.Compress.Value); - } - - if (!string.IsNullOrEmpty(value.DelegateType)) - { - writer.WritePropertyName("delegate_type"); - writer.WriteStringValue(value.DelegateType); - } - - if (value.MaxNumberOfSnapshots.HasValue) - { - writer.WritePropertyName("max_number_of_snapshots"); - writer.WriteNumberValue(value.MaxNumberOfSnapshots.Value); - } - - if (value.MaxRestoreBytesPerSec is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, value.MaxRestoreBytesPerSec, options); - } - - if (value.MaxSnapshotBytesPerSec is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, value.MaxSnapshotBytesPerSec, options); - } - - if (value.ReadOnly.HasValue) - { - writer.WritePropertyName("read_only"); - writer.WriteBooleanValue(value.ReadOnly.Value); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(SourceOnlyRepositorySettingsConverter))] -public sealed partial class SourceOnlyRepositorySettings -{ - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSize { get; set; } - public bool? Compress { get; set; } - public string? DelegateType { get; set; } - public int? MaxNumberOfSnapshots { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSec { get; set; } - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSec { get; set; } - public bool? ReadOnly { get; set; } -} - -public sealed partial class SourceOnlyRepositorySettingsDescriptor : SerializableDescriptor -{ - internal SourceOnlyRepositorySettingsDescriptor(Action configure) => configure.Invoke(this); - - public SourceOnlyRepositorySettingsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? ChunkSizeValue { get; set; } - private bool? CompressValue { get; set; } - private string? DelegateTypeValue { get; set; } - private int? MaxNumberOfSnapshotsValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxRestoreBytesPerSecValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.ByteSize? MaxSnapshotBytesPerSecValue { get; set; } - private bool? ReadOnlyValue { get; set; } - - public SourceOnlyRepositorySettingsDescriptor ChunkSize(Elastic.Clients.Elasticsearch.Serverless.ByteSize? chunkSize) - { - ChunkSizeValue = chunkSize; - return Self; - } - - public SourceOnlyRepositorySettingsDescriptor Compress(bool? compress = true) - { - CompressValue = compress; - return Self; - } - - public SourceOnlyRepositorySettingsDescriptor DelegateType(string? delegateType) - { - DelegateTypeValue = delegateType; - return Self; - } - - public SourceOnlyRepositorySettingsDescriptor MaxNumberOfSnapshots(int? maxNumberOfSnapshots) - { - MaxNumberOfSnapshotsValue = maxNumberOfSnapshots; - return Self; - } - - public SourceOnlyRepositorySettingsDescriptor MaxRestoreBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxRestoreBytesPerSec) - { - MaxRestoreBytesPerSecValue = maxRestoreBytesPerSec; - return Self; - } - - public SourceOnlyRepositorySettingsDescriptor MaxSnapshotBytesPerSec(Elastic.Clients.Elasticsearch.Serverless.ByteSize? maxSnapshotBytesPerSec) - { - MaxSnapshotBytesPerSecValue = maxSnapshotBytesPerSec; - return Self; - } - - public SourceOnlyRepositorySettingsDescriptor ReadOnly(bool? readOnly = true) - { - ReadOnlyValue = readOnly; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (ChunkSizeValue is not null) - { - writer.WritePropertyName("chunk_size"); - JsonSerializer.Serialize(writer, ChunkSizeValue, options); - } - - if (CompressValue.HasValue) - { - writer.WritePropertyName("compress"); - writer.WriteBooleanValue(CompressValue.Value); - } - - if (!string.IsNullOrEmpty(DelegateTypeValue)) - { - writer.WritePropertyName("delegate_type"); - writer.WriteStringValue(DelegateTypeValue); - } - - if (MaxNumberOfSnapshotsValue.HasValue) - { - writer.WritePropertyName("max_number_of_snapshots"); - writer.WriteNumberValue(MaxNumberOfSnapshotsValue.Value); - } - - if (MaxRestoreBytesPerSecValue is not null) - { - writer.WritePropertyName("max_restore_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxRestoreBytesPerSecValue, options); - } - - if (MaxSnapshotBytesPerSecValue is not null) - { - writer.WritePropertyName("max_snapshot_bytes_per_sec"); - JsonSerializer.Serialize(writer, MaxSnapshotBytesPerSecValue, options); - } - - if (ReadOnlyValue.HasValue) - { - writer.WritePropertyName("read_only"); - writer.WriteBooleanValue(ReadOnlyValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Status.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Status.g.cs deleted file mode 100644 index e8d92e580c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Snapshot/Status.g.cs +++ /dev/null @@ -1,48 +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.Snapshot; - -public sealed partial class Status -{ - [JsonInclude, JsonPropertyName("include_global_state")] - public bool IncludeGlobalState { get; init; } - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyDictionary Indices { get; init; } - [JsonInclude, JsonPropertyName("repository")] - public string Repository { get; init; } - [JsonInclude, JsonPropertyName("shards_stats")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.ShardsStats ShardsStats { get; init; } - [JsonInclude, JsonPropertyName("snapshot")] - public string Snapshot { get; init; } - [JsonInclude, JsonPropertyName("state")] - public string State { get; init; } - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.Snapshot.SnapshotStats Stats { get; init; } - [JsonInclude, JsonPropertyName("uuid")] - public string Uuid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs deleted file mode 100644 index 6cbb520abf2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/InProgress.g.cs +++ /dev/null @@ -1,40 +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.SnapshotLifecycleManagement; - -public sealed partial class InProgress -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("start_time_millis")] - public long StartTimeMillis { get; init; } - [JsonInclude, JsonPropertyName("state")] - public string State { get; init; } - [JsonInclude, JsonPropertyName("uuid")] - public string Uuid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs deleted file mode 100644 index 2e140785f84..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Invocation.g.cs +++ /dev/null @@ -1,36 +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.SnapshotLifecycleManagement; - -public sealed partial class Invocation -{ - [JsonInclude, JsonPropertyName("snapshot_name")] - public string SnapshotName { get; init; } - [JsonInclude, JsonPropertyName("time")] - public DateTimeOffset Time { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs deleted file mode 100644 index 7a871d8ba13..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Retention.g.cs +++ /dev/null @@ -1,113 +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.SnapshotLifecycleManagement; - -public sealed partial class Retention -{ - /// - /// - /// Time period after which a snapshot is considered expired and eligible for deletion. SLM deletes expired snapshots based on the slm.retention_schedule. - /// - /// - [JsonInclude, JsonPropertyName("expire_after")] - public Elastic.Clients.Elasticsearch.Serverless.Duration ExpireAfter { get; set; } - - /// - /// - /// Maximum number of snapshots to retain, even if the snapshots have not yet expired. If the number of snapshots in the repository exceeds this limit, the policy retains the most recent snapshots and deletes older snapshots. - /// - /// - [JsonInclude, JsonPropertyName("max_count")] - public int MaxCount { get; set; } - - /// - /// - /// Minimum number of snapshots to retain, even if the snapshots have expired. - /// - /// - [JsonInclude, JsonPropertyName("min_count")] - public int MinCount { get; set; } -} - -public sealed partial class RetentionDescriptor : SerializableDescriptor -{ - internal RetentionDescriptor(Action configure) => configure.Invoke(this); - - public RetentionDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration ExpireAfterValue { get; set; } - private int MaxCountValue { get; set; } - private int MinCountValue { get; set; } - - /// - /// - /// Time period after which a snapshot is considered expired and eligible for deletion. SLM deletes expired snapshots based on the slm.retention_schedule. - /// - /// - public RetentionDescriptor ExpireAfter(Elastic.Clients.Elasticsearch.Serverless.Duration expireAfter) - { - ExpireAfterValue = expireAfter; - return Self; - } - - /// - /// - /// Maximum number of snapshots to retain, even if the snapshots have not yet expired. If the number of snapshots in the repository exceeds this limit, the policy retains the most recent snapshots and deletes older snapshots. - /// - /// - public RetentionDescriptor MaxCount(int maxCount) - { - MaxCountValue = maxCount; - return Self; - } - - /// - /// - /// Minimum number of snapshots to retain, even if the snapshots have expired. - /// - /// - public RetentionDescriptor MinCount(int minCount) - { - MinCountValue = minCount; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("expire_after"); - JsonSerializer.Serialize(writer, ExpireAfterValue, options); - writer.WritePropertyName("max_count"); - writer.WriteNumberValue(MaxCountValue); - writer.WritePropertyName("min_count"); - writer.WriteNumberValue(MinCountValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs deleted file mode 100644 index 2644e660bfc..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmConfiguration.g.cs +++ /dev/null @@ -1,207 +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.SnapshotLifecycleManagement; - -public sealed partial class SlmConfiguration -{ - /// - /// - /// A list of feature states to be included in this snapshot. A list of features available for inclusion in the snapshot and their descriptions be can be retrieved using the get features API. - /// Each feature state includes one or more system indices containing data necessary for the function of that feature. Providing an empty array will include no feature states in the snapshot, regardless of the value of include_global_state. By default, all available feature states will be included in the snapshot if include_global_state is true, or no feature states if include_global_state is false. - /// - /// - [JsonInclude, JsonPropertyName("feature_states")] - public ICollection? FeatureStates { get; set; } - - /// - /// - /// If false, the snapshot fails if any data stream or index in indices is missing or closed. If true, the snapshot ignores missing or closed data streams and indices. - /// - /// - [JsonInclude, JsonPropertyName("ignore_unavailable")] - public bool? IgnoreUnavailable { get; set; } - - /// - /// - /// If true, the current global state is included in the snapshot. - /// - /// - [JsonInclude, JsonPropertyName("include_global_state")] - public bool? IncludeGlobalState { get; set; } - - /// - /// - /// A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported. - /// By default, a snapshot includes all data streams and indices in the cluster. If this argument is provided, the snapshot only includes the specified data streams and clusters. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public Elastic.Clients.Elasticsearch.Serverless.Indices? Indices { get; set; } - - /// - /// - /// Attaches arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. Metadata must be less than 1024 bytes. - /// - /// - [JsonInclude, JsonPropertyName("metadata")] - public IDictionary? Metadata { get; set; } - - /// - /// - /// If false, the entire snapshot will fail if one or more indices included in the snapshot do not have all primary shards available. - /// - /// - [JsonInclude, JsonPropertyName("partial")] - public bool? Partial { get; set; } -} - -public sealed partial class SlmConfigurationDescriptor : SerializableDescriptor -{ - internal SlmConfigurationDescriptor(Action configure) => configure.Invoke(this); - - public SlmConfigurationDescriptor() : base() - { - } - - private ICollection? FeatureStatesValue { get; set; } - private bool? IgnoreUnavailableValue { get; set; } - private bool? IncludeGlobalStateValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Indices? IndicesValue { get; set; } - private IDictionary? MetadataValue { get; set; } - private bool? PartialValue { get; set; } - - /// - /// - /// A list of feature states to be included in this snapshot. A list of features available for inclusion in the snapshot and their descriptions be can be retrieved using the get features API. - /// Each feature state includes one or more system indices containing data necessary for the function of that feature. Providing an empty array will include no feature states in the snapshot, regardless of the value of include_global_state. By default, all available feature states will be included in the snapshot if include_global_state is true, or no feature states if include_global_state is false. - /// - /// - public SlmConfigurationDescriptor FeatureStates(ICollection? featureStates) - { - FeatureStatesValue = featureStates; - return Self; - } - - /// - /// - /// If false, the snapshot fails if any data stream or index in indices is missing or closed. If true, the snapshot ignores missing or closed data streams and indices. - /// - /// - public SlmConfigurationDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) - { - IgnoreUnavailableValue = ignoreUnavailable; - return Self; - } - - /// - /// - /// If true, the current global state is included in the snapshot. - /// - /// - public SlmConfigurationDescriptor IncludeGlobalState(bool? includeGlobalState = true) - { - IncludeGlobalStateValue = includeGlobalState; - return Self; - } - - /// - /// - /// A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported. - /// By default, a snapshot includes all data streams and indices in the cluster. If this argument is provided, the snapshot only includes the specified data streams and clusters. - /// - /// - public SlmConfigurationDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Attaches arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. Metadata must be less than 1024 bytes. - /// - /// - public SlmConfigurationDescriptor Metadata(Func, FluentDictionary> selector) - { - MetadataValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// If false, the entire snapshot will fail if one or more indices included in the snapshot do not have all primary shards available. - /// - /// - public SlmConfigurationDescriptor Partial(bool? partial = true) - { - PartialValue = partial; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (FeatureStatesValue is not null) - { - writer.WritePropertyName("feature_states"); - JsonSerializer.Serialize(writer, FeatureStatesValue, options); - } - - if (IgnoreUnavailableValue.HasValue) - { - writer.WritePropertyName("ignore_unavailable"); - writer.WriteBooleanValue(IgnoreUnavailableValue.Value); - } - - if (IncludeGlobalStateValue.HasValue) - { - writer.WritePropertyName("include_global_state"); - writer.WriteBooleanValue(IncludeGlobalStateValue.Value); - } - - if (IndicesValue is not null) - { - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - } - - if (MetadataValue is not null) - { - writer.WritePropertyName("metadata"); - JsonSerializer.Serialize(writer, MetadataValue, options); - } - - if (PartialValue.HasValue) - { - writer.WritePropertyName("partial"); - writer.WriteBooleanValue(PartialValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs deleted file mode 100644 index d95d7365b69..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SlmPolicy.g.cs +++ /dev/null @@ -1,42 +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.SnapshotLifecycleManagement; - -public sealed partial class SlmPolicy -{ - [JsonInclude, JsonPropertyName("config")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmConfiguration? Config { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("repository")] - public string Repository { get; init; } - [JsonInclude, JsonPropertyName("retention")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Retention? Retention { get; init; } - [JsonInclude, JsonPropertyName("schedule")] - public string Schedule { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs deleted file mode 100644 index e9e918b2431..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs +++ /dev/null @@ -1,52 +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.SnapshotLifecycleManagement; - -public sealed partial class SnapshotLifecycle -{ - [JsonInclude, JsonPropertyName("in_progress")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.InProgress? InProgress { get; init; } - [JsonInclude, JsonPropertyName("last_failure")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Invocation? LastFailure { get; init; } - [JsonInclude, JsonPropertyName("last_success")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Invocation? LastSuccess { get; init; } - [JsonInclude, JsonPropertyName("modified_date")] - public DateTimeOffset? ModifiedDate { get; init; } - [JsonInclude, JsonPropertyName("modified_date_millis")] - public long ModifiedDateMillis { get; init; } - [JsonInclude, JsonPropertyName("next_execution")] - public DateTimeOffset? NextExecution { get; init; } - [JsonInclude, JsonPropertyName("next_execution_millis")] - public long NextExecutionMillis { get; init; } - [JsonInclude, JsonPropertyName("policy")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.SlmPolicy Policy { get; init; } - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Statistics Stats { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs deleted file mode 100644 index d55ab71cb05..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SnapshotLifecycleManagement/Statistics.g.cs +++ /dev/null @@ -1,135 +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.SnapshotLifecycleManagement; - -internal sealed partial class StatisticsConverter : JsonConverter -{ - public override Statistics Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - string? policy = default; - Elastic.Clients.Elasticsearch.Serverless.Duration? retentionDeletionTime = default; - long? retentionDeletionTimeMillis = default; - long? retentionFailed = default; - long? retentionRuns = default; - long? retentionTimedOut = default; - long? totalSnapshotDeletionFailures = default; - long? totalSnapshotsDeleted = default; - long? totalSnapshotsFailed = default; - long? totalSnapshotsTaken = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "policy") - { - policy = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_deletion_time") - { - retentionDeletionTime = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_deletion_time_millis") - { - retentionDeletionTimeMillis = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_failed") - { - retentionFailed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_runs") - { - retentionRuns = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "retention_timed_out") - { - retentionTimedOut = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshot_deletion_failures" || property == "snapshot_deletion_failures") - { - totalSnapshotDeletionFailures = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshots_deleted" || property == "snapshots_deleted") - { - totalSnapshotsDeleted = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshots_failed" || property == "snapshots_failed") - { - totalSnapshotsFailed = JsonSerializer.Deserialize(ref reader, options); - continue; - } - - if (property == "total_snapshots_taken" || property == "snapshots_taken") - { - totalSnapshotsTaken = JsonSerializer.Deserialize(ref reader, options); - continue; - } - } - } - - return new Statistics { Policy = policy, RetentionDeletionTime = retentionDeletionTime, RetentionDeletionTimeMillis = retentionDeletionTimeMillis, RetentionFailed = retentionFailed, RetentionRuns = retentionRuns, RetentionTimedOut = retentionTimedOut, TotalSnapshotDeletionFailures = totalSnapshotDeletionFailures, TotalSnapshotsDeleted = totalSnapshotsDeleted, TotalSnapshotsFailed = totalSnapshotsFailed, TotalSnapshotsTaken = totalSnapshotsTaken }; - } - - public override void Write(Utf8JsonWriter writer, Statistics value, JsonSerializerOptions options) - { - throw new NotImplementedException("'Statistics' is a readonly type, used only on responses and does not support being written to JSON."); - } -} - -[JsonConverter(typeof(StatisticsConverter))] -public sealed partial class Statistics -{ - public string? Policy { get; init; } - public Elastic.Clients.Elasticsearch.Serverless.Duration? RetentionDeletionTime { get; init; } - public long? RetentionDeletionTimeMillis { get; init; } - public long? RetentionFailed { get; init; } - public long? RetentionRuns { get; init; } - public long? RetentionTimedOut { get; init; } - public long? TotalSnapshotDeletionFailures { get; init; } - public long? TotalSnapshotsDeleted { get; init; } - public long? TotalSnapshotsFailed { get; init; } - public long? TotalSnapshotsTaken { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SortOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SortOptions.g.cs deleted file mode 100644 index 1ffdf611674..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SortOptions.g.cs +++ /dev/null @@ -1,296 +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 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; - -[JsonConverter(typeof(SortOptionsConverter))] -public sealed partial class SortOptions -{ - internal SortOptions(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal SortOptions(Elastic.Clients.Elasticsearch.Serverless.Field field, object variant) - { - if (field is null) - throw new ArgumentNullException(nameof(field)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - AdditionalPropertyName = field; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - internal Elastic.Clients.Elasticsearch.Serverless.Field? AdditionalPropertyName { get; } - - public static SortOptions Doc(Elastic.Clients.Elasticsearch.Serverless.ScoreSort scoreSort) => new SortOptions("_doc", scoreSort); - public static SortOptions GeoDistance(Elastic.Clients.Elasticsearch.Serverless.GeoDistanceSort geoDistanceSort) => new SortOptions("_geo_distance", geoDistanceSort); - public static SortOptions Score(Elastic.Clients.Elasticsearch.Serverless.ScoreSort scoreSort) => new SortOptions("_score", scoreSort); - public static SortOptions Script(Elastic.Clients.Elasticsearch.Serverless.ScriptSort scriptSort) => new SortOptions("_script", scriptSort); - public static SortOptions Field(Elastic.Clients.Elasticsearch.Serverless.Field field, Elastic.Clients.Elasticsearch.Serverless.FieldSort fieldSort) => new SortOptions(field, fieldSort); -} - -public sealed partial class SortOptionsDescriptor : SerializableDescriptor> -{ - internal SortOptionsDescriptor(Action> configure) => configure.Invoke(this); - - public SortOptionsDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field AdditionalPropertyName { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldSort AdditionalPropertyValue { get; set; } - - private SortOptionsDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - AdditionalPropertyValue = null; - AdditionalPropertyName = null; - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SortOptionsDescriptor Set(object variant, string variantName) - { - AdditionalPropertyValue = null; - AdditionalPropertyName = null; - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private SortOptionsDescriptor Set(Action descriptorAction, Elastic.Clients.Elasticsearch.Serverless.Field variantName) where T : Descriptor - { - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - ContainedVariantName = null; - Variant = null; - AdditionalPropertyValue = null; - AdditionalPropertyName = variantName; - ContainsVariant = true; - return Self; - } - - private SortOptionsDescriptor Set(Elastic.Clients.Elasticsearch.Serverless.FieldSort variant, Elastic.Clients.Elasticsearch.Serverless.Field variantName) - { - ContainedVariantName = null; - Variant = null; - AdditionalPropertyValue = variant; - AdditionalPropertyName = variantName; - ContainsVariant = true; - return Self; - } - - public SortOptionsDescriptor Doc(ScoreSort scoreSort) => Set(scoreSort, "_doc"); - public SortOptionsDescriptor Doc(Action configure) => Set(configure, "_doc"); - public SortOptionsDescriptor GeoDistance(GeoDistanceSort geoDistanceSort) => Set(geoDistanceSort, "_geo_distance"); - public SortOptionsDescriptor GeoDistance(Action> configure) => Set(configure, "_geo_distance"); - public SortOptionsDescriptor Score(ScoreSort scoreSort) => Set(scoreSort, "_score"); - public SortOptionsDescriptor Score(Action configure) => Set(configure, "_score"); - public SortOptionsDescriptor Script(ScriptSort scriptSort) => Set(scriptSort, "_script"); - public SortOptionsDescriptor Script(Action> configure) => Set(configure, "_script"); - public SortOptionsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) => Set(FieldSort.Empty, field); - public SortOptionsDescriptor Field(Expression> field) => Set(FieldSort.Empty, field); - public SortOptionsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field, Elastic.Clients.Elasticsearch.Serverless.FieldSort sort) => Set(sort, field); - public SortOptionsDescriptor Field(Expression> field, Elastic.Clients.Elasticsearch.Serverless.FieldSort sort) => Set(sort, field); - public SortOptionsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field, Action> configure) => Set(configure, field); - public SortOptionsDescriptor Field(Expression> field, Action> configure) => Set(configure, field); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - var fieldName = ContainedVariantName; - if (AdditionalPropertyName is IUrlParameter urlParameter) - { - fieldName = urlParameter.GetString(settings); - } - - if ((Variant is not null && Variant.Equals(FieldSort.Empty)) || (AdditionalPropertyValue is not null && AdditionalPropertyValue.Equals(FieldSort.Empty))) - { - writer.WriteStringValue(fieldName); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(fieldName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - if (AdditionalPropertyValue is not null) - { - JsonSerializer.Serialize(writer, AdditionalPropertyValue, options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - writer.WriteEndObject(); - } -} - -public sealed partial class SortOptionsDescriptor : SerializableDescriptor -{ - internal SortOptionsDescriptor(Action configure) => configure.Invoke(this); - - public SortOptionsDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field AdditionalPropertyName { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.FieldSort AdditionalPropertyValue { get; set; } - - private SortOptionsDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - AdditionalPropertyValue = null; - AdditionalPropertyName = null; - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SortOptionsDescriptor Set(object variant, string variantName) - { - AdditionalPropertyValue = null; - AdditionalPropertyName = null; - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - private SortOptionsDescriptor Set(Action descriptorAction, Elastic.Clients.Elasticsearch.Serverless.Field variantName) where T : Descriptor - { - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - ContainedVariantName = null; - Variant = null; - AdditionalPropertyValue = null; - AdditionalPropertyName = variantName; - ContainsVariant = true; - return Self; - } - - private SortOptionsDescriptor Set(Elastic.Clients.Elasticsearch.Serverless.FieldSort variant, Elastic.Clients.Elasticsearch.Serverless.Field variantName) - { - ContainedVariantName = null; - Variant = null; - AdditionalPropertyValue = variant; - AdditionalPropertyName = variantName; - ContainsVariant = true; - return Self; - } - - public SortOptionsDescriptor Doc(ScoreSort scoreSort) => Set(scoreSort, "_doc"); - public SortOptionsDescriptor Doc(Action configure) => Set(configure, "_doc"); - public SortOptionsDescriptor GeoDistance(GeoDistanceSort geoDistanceSort) => Set(geoDistanceSort, "_geo_distance"); - public SortOptionsDescriptor GeoDistance(Action configure) => Set(configure, "_geo_distance"); - public SortOptionsDescriptor GeoDistance(Action> configure) => Set(configure, "_geo_distance"); - public SortOptionsDescriptor Score(ScoreSort scoreSort) => Set(scoreSort, "_score"); - public SortOptionsDescriptor Score(Action configure) => Set(configure, "_score"); - public SortOptionsDescriptor Script(ScriptSort scriptSort) => Set(scriptSort, "_script"); - public SortOptionsDescriptor Script(Action configure) => Set(configure, "_script"); - public SortOptionsDescriptor Script(Action> configure) => Set(configure, "_script"); - public SortOptionsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) => Set(FieldSort.Empty, field); - public SortOptionsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field, Elastic.Clients.Elasticsearch.Serverless.FieldSort sort) => Set(sort, field); - public SortOptionsDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field, Action configure) => Set(configure, field); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - if (!ContainsVariant) - { - writer.WriteNullValue(); - return; - } - - var fieldName = ContainedVariantName; - if (AdditionalPropertyName is IUrlParameter urlParameter) - { - fieldName = urlParameter.GetString(settings); - } - - if ((Variant is not null && Variant.Equals(FieldSort.Empty)) || (AdditionalPropertyValue is not null && AdditionalPropertyValue.Equals(FieldSort.Empty))) - { - writer.WriteStringValue(fieldName); - return; - } - - writer.WriteStartObject(); - writer.WritePropertyName(fieldName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - if (AdditionalPropertyValue is not null) - { - JsonSerializer.Serialize(writer, AdditionalPropertyValue, options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SpecUtils/OverloadOf.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SpecUtils/OverloadOf.g.cs deleted file mode 100644 index 42c76c698cf..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/SpecUtils/OverloadOf.g.cs +++ /dev/null @@ -1,39 +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.SpecUtils; - -/// -/// -/// A class that implements OverloadOf should have the exact same properties with the same types. -/// It can change if a property is required or not. There is no need to port the descriptions -/// and js doc tags, the compiler will do that for you. -/// -/// -public sealed partial class OverloadOf -{ -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs deleted file mode 100644 index 89f4e40f009..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs +++ /dev/null @@ -1,36 +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.Sql; - -public sealed partial class Column -{ - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StandardRetriever.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StandardRetriever.g.cs deleted file mode 100644 index 82e67fa2a28..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StandardRetriever.g.cs +++ /dev/null @@ -1,719 +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 StandardRetriever -{ - /// - /// - /// Collapses the top documents by a specified key into a single top document per key. - /// - /// - [JsonInclude, JsonPropertyName("collapse")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? Collapse { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public float? MinScore { get; set; } - - /// - /// - /// Defines a query to retrieve a set of top documents. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Defines a search after object parameter used for pagination. - /// - /// - [JsonInclude, JsonPropertyName("search_after")] - public ICollection? SearchAfter { get; set; } - - /// - /// - /// A sort object that that specifies the order of matching documents. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] - public ICollection? Sort { get; set; } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// - /// - [JsonInclude, JsonPropertyName("terminate_after")] - public int? TerminateAfter { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(StandardRetriever standardRetriever) => Elastic.Clients.Elasticsearch.Serverless.Retriever.Standard(standardRetriever); -} - -public sealed partial class StandardRetrieverDescriptor : SerializableDescriptor> -{ - internal StandardRetrieverDescriptor(Action> configure) => configure.Invoke(this); - - public StandardRetrieverDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action> CollapseDescriptorAction { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private float? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } - private int? TerminateAfterValue { get; set; } - - /// - /// - /// Collapses the top documents by a specified key into a single top document per key. - /// - /// - public StandardRetrieverDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public StandardRetrieverDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Collapse(Action> configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public StandardRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public StandardRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public StandardRetrieverDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public StandardRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Defines a query to retrieve a set of top documents. - /// - /// - public StandardRetrieverDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public StandardRetrieverDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a search after object parameter used for pagination. - /// - /// - public StandardRetrieverDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// A sort object that that specifies the order of matching documents. - /// - /// - public StandardRetrieverDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public StandardRetrieverDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public StandardRetrieverDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// - /// - public StandardRetrieverDescriptor TerminateAfter(int? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class StandardRetrieverDescriptor : SerializableDescriptor -{ - internal StandardRetrieverDescriptor(Action configure) => configure.Invoke(this); - - public StandardRetrieverDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? CollapseValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor CollapseDescriptor { get; set; } - private Action CollapseDescriptorAction { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private float? MinScoreValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private ICollection? SearchAfterValue { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } - private int? TerminateAfterValue { get; set; } - - /// - /// - /// Collapses the top documents by a specified key into a single top document per key. - /// - /// - public StandardRetrieverDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapse? collapse) - { - CollapseDescriptor = null; - CollapseDescriptorAction = null; - CollapseValue = collapse; - return Self; - } - - public StandardRetrieverDescriptor Collapse(Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor descriptor) - { - CollapseValue = null; - CollapseDescriptorAction = null; - CollapseDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Collapse(Action configure) - { - CollapseValue = null; - CollapseDescriptor = null; - CollapseDescriptorAction = configure; - return Self; - } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public StandardRetrieverDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public StandardRetrieverDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public StandardRetrieverDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public StandardRetrieverDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// Defines a query to retrieve a set of top documents. - /// - /// - public StandardRetrieverDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public StandardRetrieverDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Defines a search after object parameter used for pagination. - /// - /// - public StandardRetrieverDescriptor SearchAfter(ICollection? searchAfter) - { - SearchAfterValue = searchAfter; - return Self; - } - - /// - /// - /// A sort object that that specifies the order of matching documents. - /// - /// - public StandardRetrieverDescriptor Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public StandardRetrieverDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public StandardRetrieverDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public StandardRetrieverDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - - /// - /// - /// Maximum number of documents to collect for each shard. - /// - /// - public StandardRetrieverDescriptor TerminateAfter(int? terminateAfter) - { - TerminateAfterValue = terminateAfter; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CollapseDescriptor is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseDescriptor, options); - } - else if (CollapseDescriptorAction is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.Core.Search.FieldCollapseDescriptor(CollapseDescriptorAction), options); - } - else if (CollapseValue is not null) - { - writer.WritePropertyName("collapse"); - JsonSerializer.Serialize(writer, CollapseValue, options); - } - - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (SearchAfterValue is not null) - { - writer.WritePropertyName("search_after"); - JsonSerializer.Serialize(writer, SearchAfterValue, options); - } - - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - - if (TerminateAfterValue.HasValue) - { - writer.WritePropertyName("terminate_after"); - writer.WriteNumberValue(TerminateAfterValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoreStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoreStats.g.cs deleted file mode 100644 index a83eb985d4b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoreStats.g.cs +++ /dev/null @@ -1,81 +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 StoreStats -{ - /// - /// - /// A prediction of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities. - /// - /// - [JsonInclude, JsonPropertyName("reserved")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Reserved { get; init; } - - /// - /// - /// A prediction, in bytes, of how much larger the shard stores will eventually grow due to ongoing peer recoveries, restoring snapshots, and similar activities. - /// - /// - [JsonInclude, JsonPropertyName("reserved_in_bytes")] - public long ReservedInBytes { get; init; } - - /// - /// - /// Total size of all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Size { get; init; } - - /// - /// - /// Total size, in bytes, of all shards assigned to selected nodes. - /// - /// - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } - - /// - /// - /// Total data set size of all shards assigned to selected nodes. - /// This includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices. - /// - /// - [JsonInclude, JsonPropertyName("total_data_set_size")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? TotalDataSetSize { get; init; } - - /// - /// - /// Total data set size, in bytes, of all shards assigned to selected nodes. - /// This includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices. - /// - /// - [JsonInclude, JsonPropertyName("total_data_set_size_in_bytes")] - public long? TotalDataSetSizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScript.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScript.g.cs deleted file mode 100644 index 9b8e806088e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/StoredScript.g.cs +++ /dev/null @@ -1,106 +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 StoredScript -{ - /// - /// - /// 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; } - - /// - /// - /// The script source. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public string Source { get; set; } -} - -public sealed partial class StoredScriptDescriptor : SerializableDescriptor -{ - internal StoredScriptDescriptor(Action configure) => configure.Invoke(this); - - public StoredScriptDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage LanguageValue { get; set; } - private IDictionary? OptionsValue { get; set; } - private string SourceValue { get; set; } - - /// - /// - /// Specifies the language the script is written in. - /// - /// - public StoredScriptDescriptor Language(Elastic.Clients.Elasticsearch.Serverless.ScriptLanguage language) - { - LanguageValue = language; - return Self; - } - - public StoredScriptDescriptor Options(Func, FluentDictionary> selector) - { - OptionsValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - /// - /// - /// The script source. - /// - /// - public StoredScriptDescriptor Source(string source) - { - SourceValue = source; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("lang"); - JsonSerializer.Serialize(writer, LanguageValue, options); - if (OptionsValue is not null) - { - writer.WritePropertyName("options"); - JsonSerializer.Serialize(writer, OptionsValue, 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/Synonyms/SynonymRule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRule.g.cs deleted file mode 100644 index 309df1f48e1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRule.g.cs +++ /dev/null @@ -1,95 +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.Synonyms; - -public sealed partial class SynonymRule -{ - /// - /// - /// Synonym Rule identifier - /// - /// - [JsonInclude, JsonPropertyName("id")] - public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } - - /// - /// - /// Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 - /// - /// - [JsonInclude, JsonPropertyName("synonyms")] - public string Synonyms { get; set; } -} - -public sealed partial class SynonymRuleDescriptor : SerializableDescriptor -{ - internal SynonymRuleDescriptor(Action configure) => configure.Invoke(this); - - public SynonymRuleDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } - private string SynonymsValue { get; set; } - - /// - /// - /// Synonym Rule identifier - /// - /// - public SynonymRuleDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) - { - IdValue = id; - return Self; - } - - /// - /// - /// Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 - /// - /// - public SynonymRuleDescriptor Synonyms(string synonyms) - { - SynonymsValue = synonyms; - 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); - } - - writer.WritePropertyName("synonyms"); - writer.WriteStringValue(SynonymsValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRuleRead.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRuleRead.g.cs deleted file mode 100644 index 6dcd59c66f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymRuleRead.g.cs +++ /dev/null @@ -1,47 +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.Synonyms; - -public sealed partial class SynonymRuleRead -{ - /// - /// - /// Synonym Rule identifier - /// - /// - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - - /// - /// - /// Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 - /// - /// - [JsonInclude, JsonPropertyName("synonyms")] - public string Synonyms { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymsSetItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymsSetItem.g.cs deleted file mode 100644 index 08e2ab2ee00..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Synonyms/SynonymsSetItem.g.cs +++ /dev/null @@ -1,47 +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.Synonyms; - -public sealed partial class SynonymsSetItem -{ - /// - /// - /// Number of synonym rules that the synonym set contains - /// - /// - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - - /// - /// - /// Synonyms set identifier - /// - /// - [JsonInclude, JsonPropertyName("synonyms_set")] - public string SynonymsSet { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs deleted file mode 100644 index 5ca1c93d417..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs +++ /dev/null @@ -1,40 +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 TaskFailure -{ - [JsonInclude, JsonPropertyName("node_id")] - public string NodeId { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public Elastic.Clients.Elasticsearch.Serverless.ErrorCause Reason { get; init; } - [JsonInclude, JsonPropertyName("status")] - public string Status { get; init; } - [JsonInclude, JsonPropertyName("task_id")] - public long TaskId { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs deleted file mode 100644 index cc5ab990522..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs +++ /dev/null @@ -1,46 +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.Tasks; - -public sealed partial class NodeTasks -{ - [JsonInclude, JsonPropertyName("attributes")] - public IReadOnlyDictionary? Attributes { get; init; } - [JsonInclude, JsonPropertyName("host")] - public string? Host { get; init; } - [JsonInclude, JsonPropertyName("ip")] - public string? Ip { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string? Name { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public IReadOnlyCollection? Roles { get; init; } - [JsonInclude, JsonPropertyName("tasks")] - public IReadOnlyDictionary Tasks { get; init; } - [JsonInclude, JsonPropertyName("transport_address")] - public string? TransportAddress { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs deleted file mode 100644 index 43a33d43cd5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs +++ /dev/null @@ -1,78 +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.Tasks; - -public sealed partial class ParentTaskInfo -{ - [JsonInclude, JsonPropertyName("action")] - public string Action { get; init; } - [JsonInclude, JsonPropertyName("cancellable")] - public bool Cancellable { get; init; } - [JsonInclude, JsonPropertyName("cancelled")] - public bool? Cancelled { get; init; } - [JsonInclude, JsonPropertyName("children")] - public IReadOnlyCollection? Children { get; init; } - - /// - /// - /// Human readable text that identifies the particular request that the task is performing. - /// For example, it might identify the search request being performed by a search task. - /// Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. - /// Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("headers")] - public IReadOnlyDictionary Headers { get; init; } - [JsonInclude, JsonPropertyName("id")] - public long Id { get; init; } - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } - [JsonInclude, JsonPropertyName("parent_task_id")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? ParentTaskId { get; init; } - [JsonInclude, JsonPropertyName("running_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? RunningTime { get; init; } - [JsonInclude, JsonPropertyName("running_time_in_nanos")] - public long RunningTimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - - /// - /// - /// The internal status of the task, which varies from task to task. - /// The format also varies. - /// While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. - /// Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases. - /// - /// - [JsonInclude, JsonPropertyName("status")] - public object? Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs deleted file mode 100644 index 0180c47de17..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfo.g.cs +++ /dev/null @@ -1,76 +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.Tasks; - -public sealed partial class TaskInfo -{ - [JsonInclude, JsonPropertyName("action")] - public string Action { get; init; } - [JsonInclude, JsonPropertyName("cancellable")] - public bool Cancellable { get; init; } - [JsonInclude, JsonPropertyName("cancelled")] - public bool? Cancelled { get; init; } - - /// - /// - /// Human readable text that identifies the particular request that the task is performing. - /// For example, it might identify the search request being performed by a search task. - /// Other kinds of tasks have different descriptions, like _reindex which has the source and the destination, or _bulk which just has the number of requests and the destination indices. - /// Many requests will have only an empty description because more detailed information about the request is not easily available or particularly helpful in identifying the request. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("headers")] - public IReadOnlyDictionary Headers { get; init; } - [JsonInclude, JsonPropertyName("id")] - public long Id { get; init; } - [JsonInclude, JsonPropertyName("node")] - public string Node { get; init; } - [JsonInclude, JsonPropertyName("parent_task_id")] - public Elastic.Clients.Elasticsearch.Serverless.TaskId? ParentTaskId { get; init; } - [JsonInclude, JsonPropertyName("running_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? RunningTime { get; init; } - [JsonInclude, JsonPropertyName("running_time_in_nanos")] - public long RunningTimeInNanos { get; init; } - [JsonInclude, JsonPropertyName("start_time_in_millis")] - public long StartTimeInMillis { get; init; } - - /// - /// - /// The internal status of the task, which varies from task to task. - /// The format also varies. - /// While the goal is to keep the status for a particular task consistent from version to version, this is not always possible because sometimes the implementation changes. - /// Fields might be removed from the status for a particular request so any parsing you do of the status might break in minor releases. - /// - /// - [JsonInclude, JsonPropertyName("status")] - public object? Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs deleted file mode 100644 index 5e951907a42..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs +++ /dev/null @@ -1,42 +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.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.Tasks; - -public sealed partial class TaskInfos : Union, IReadOnlyDictionary> -{ - public TaskInfos(IReadOnlyCollection Flat) : base(Flat) - { - } - - public TaskInfos(IReadOnlyDictionary Grouped) : base(Grouped) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextEmbedding.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextEmbedding.g.cs deleted file mode 100644 index e98b1858db7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextEmbedding.g.cs +++ /dev/null @@ -1,72 +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 TextEmbedding -{ - [JsonInclude, JsonPropertyName("model_id")] - public string ModelId { get; set; } - [JsonInclude, JsonPropertyName("model_text")] - public string ModelText { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder(TextEmbedding textEmbedding) => Elastic.Clients.Elasticsearch.Serverless.QueryVectorBuilder.TextEmbedding(textEmbedding); -} - -public sealed partial class TextEmbeddingDescriptor : SerializableDescriptor -{ - internal TextEmbeddingDescriptor(Action configure) => configure.Invoke(this); - - public TextEmbeddingDescriptor() : base() - { - } - - private string ModelIdValue { get; set; } - private string ModelTextValue { get; set; } - - public TextEmbeddingDescriptor ModelId(string modelId) - { - ModelIdValue = modelId; - return Self; - } - - public TextEmbeddingDescriptor ModelText(string modelText) - { - ModelTextValue = modelText; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("model_id"); - writer.WriteStringValue(ModelIdValue); - writer.WritePropertyName("model_text"); - writer.WriteStringValue(ModelTextValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs deleted file mode 100644 index c3ac989c0e2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextSimilarityReranker.g.cs +++ /dev/null @@ -1,546 +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 TextSimilarityReranker -{ - /// - /// - /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text - /// - /// - [JsonInclude, JsonPropertyName("field")] - public string? Field { get; set; } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] - public ICollection? Filter { get; set; } - - /// - /// - /// Unique identifier of the inference endpoint created using the inference API. - /// - /// - [JsonInclude, JsonPropertyName("inference_id")] - public string? InferenceId { get; set; } - - /// - /// - /// The text snippet used as the basis for similarity comparison - /// - /// - [JsonInclude, JsonPropertyName("inference_text")] - public string? InferenceText { get; set; } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - [JsonInclude, JsonPropertyName("min_score")] - public float? MinScore { get; set; } - - /// - /// - /// This value determines how many documents we will consider from the nested retriever. - /// - /// - [JsonInclude, JsonPropertyName("rank_window_size")] - public int? RankWindowSize { get; set; } - - /// - /// - /// The nested retriever which will produce the first-level results, that will later be used for reranking. - /// - /// - [JsonInclude, JsonPropertyName("retriever")] - public Elastic.Clients.Elasticsearch.Serverless.Retriever Retriever { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.Retriever(TextSimilarityReranker textSimilarityReranker) => Elastic.Clients.Elasticsearch.Serverless.Retriever.TextSimilarityReranker(textSimilarityReranker); -} - -public sealed partial class TextSimilarityRerankerDescriptor : SerializableDescriptor> -{ - internal TextSimilarityRerankerDescriptor(Action> configure) => configure.Invoke(this); - - public TextSimilarityRerankerDescriptor() : base() - { - } - - private string? FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action> FilterDescriptorAction { get; set; } - private Action>[] FilterDescriptorActions { get; set; } - private string? InferenceIdValue { get; set; } - private string? InferenceTextValue { get; set; } - private float? MinScoreValue { get; set; } - private int? RankWindowSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } - private Action> RetrieverDescriptorAction { get; set; } - - /// - /// - /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text - /// - /// - public TextSimilarityRerankerDescriptor Field(string? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public TextSimilarityRerankerDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public TextSimilarityRerankerDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public TextSimilarityRerankerDescriptor Filter(Action> configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public TextSimilarityRerankerDescriptor Filter(params Action>[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Unique identifier of the inference endpoint created using the inference API. - /// - /// - public TextSimilarityRerankerDescriptor InferenceId(string? inferenceId) - { - InferenceIdValue = inferenceId; - return Self; - } - - /// - /// - /// The text snippet used as the basis for similarity comparison - /// - /// - public TextSimilarityRerankerDescriptor InferenceText(string? inferenceText) - { - InferenceTextValue = inferenceText; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public TextSimilarityRerankerDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// This value determines how many documents we will consider from the nested retriever. - /// - /// - public TextSimilarityRerankerDescriptor RankWindowSize(int? rankWindowSize) - { - RankWindowSizeValue = rankWindowSize; - return Self; - } - - /// - /// - /// The nested retriever which will produce the first-level results, that will later be used for reranking. - /// - /// - public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) - { - RetrieverDescriptor = null; - RetrieverDescriptorAction = null; - RetrieverValue = retriever; - return Self; - } - - public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieverValue = null; - RetrieverDescriptorAction = null; - RetrieverDescriptor = descriptor; - return Self; - } - - public TextSimilarityRerankerDescriptor Retriever(Action> configure) - { - RetrieverValue = null; - RetrieverDescriptor = null; - RetrieverDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FieldValue)) - { - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - } - - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (!string.IsNullOrEmpty(InferenceIdValue)) - { - writer.WritePropertyName("inference_id"); - writer.WriteStringValue(InferenceIdValue); - } - - if (!string.IsNullOrEmpty(InferenceTextValue)) - { - writer.WritePropertyName("inference_text"); - writer.WriteStringValue(InferenceTextValue); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (RankWindowSizeValue.HasValue) - { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); - } - - if (RetrieverDescriptor is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverDescriptor, options); - } - else if (RetrieverDescriptorAction is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); - } - else - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class TextSimilarityRerankerDescriptor : SerializableDescriptor -{ - internal TextSimilarityRerankerDescriptor(Action configure) => configure.Invoke(this); - - public TextSimilarityRerankerDescriptor() : base() - { - } - - private string? FieldValue { get; set; } - private ICollection? FilterValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } - private Action FilterDescriptorAction { get; set; } - private Action[] FilterDescriptorActions { get; set; } - private string? InferenceIdValue { get; set; } - private string? InferenceTextValue { get; set; } - private float? MinScoreValue { get; set; } - private int? RankWindowSizeValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Retriever RetrieverValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor RetrieverDescriptor { get; set; } - private Action RetrieverDescriptorAction { get; set; } - - /// - /// - /// The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text - /// - /// - public TextSimilarityRerankerDescriptor Field(string? field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Query to filter the documents that can match. - /// - /// - public TextSimilarityRerankerDescriptor Filter(ICollection? filter) - { - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterValue = filter; - return Self; - } - - public TextSimilarityRerankerDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - FilterValue = null; - FilterDescriptorAction = null; - FilterDescriptorActions = null; - FilterDescriptor = descriptor; - return Self; - } - - public TextSimilarityRerankerDescriptor Filter(Action configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorActions = null; - FilterDescriptorAction = configure; - return Self; - } - - public TextSimilarityRerankerDescriptor Filter(params Action[] configure) - { - FilterValue = null; - FilterDescriptor = null; - FilterDescriptorAction = null; - FilterDescriptorActions = configure; - return Self; - } - - /// - /// - /// Unique identifier of the inference endpoint created using the inference API. - /// - /// - public TextSimilarityRerankerDescriptor InferenceId(string? inferenceId) - { - InferenceIdValue = inferenceId; - return Self; - } - - /// - /// - /// The text snippet used as the basis for similarity comparison - /// - /// - public TextSimilarityRerankerDescriptor InferenceText(string? inferenceText) - { - InferenceTextValue = inferenceText; - return Self; - } - - /// - /// - /// Minimum _score for matching documents. Documents with a lower _score are not included in the top documents. - /// - /// - public TextSimilarityRerankerDescriptor MinScore(float? minScore) - { - MinScoreValue = minScore; - return Self; - } - - /// - /// - /// This value determines how many documents we will consider from the nested retriever. - /// - /// - public TextSimilarityRerankerDescriptor RankWindowSize(int? rankWindowSize) - { - RankWindowSizeValue = rankWindowSize; - return Self; - } - - /// - /// - /// The nested retriever which will produce the first-level results, that will later be used for reranking. - /// - /// - public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.Retriever retriever) - { - RetrieverDescriptor = null; - RetrieverDescriptorAction = null; - RetrieverValue = retriever; - return Self; - } - - public TextSimilarityRerankerDescriptor Retriever(Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor descriptor) - { - RetrieverValue = null; - RetrieverDescriptorAction = null; - RetrieverDescriptor = descriptor; - return Self; - } - - public TextSimilarityRerankerDescriptor Retriever(Action configure) - { - RetrieverValue = null; - RetrieverDescriptor = null; - RetrieverDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(FieldValue)) - { - writer.WritePropertyName("field"); - writer.WriteStringValue(FieldValue); - } - - 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 (FilterDescriptorActions is not null) - { - writer.WritePropertyName("filter"); - if (FilterDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in FilterDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(action), options); - } - - if (FilterDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (FilterValue is not null) - { - writer.WritePropertyName("filter"); - SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); - } - - if (!string.IsNullOrEmpty(InferenceIdValue)) - { - writer.WritePropertyName("inference_id"); - writer.WriteStringValue(InferenceIdValue); - } - - if (!string.IsNullOrEmpty(InferenceTextValue)) - { - writer.WritePropertyName("inference_text"); - writer.WriteStringValue(InferenceTextValue); - } - - if (MinScoreValue.HasValue) - { - writer.WritePropertyName("min_score"); - writer.WriteNumberValue(MinScoreValue.Value); - } - - if (RankWindowSizeValue.HasValue) - { - writer.WritePropertyName("rank_window_size"); - writer.WriteNumberValue(RankWindowSizeValue.Value); - } - - if (RetrieverDescriptor is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverDescriptor, options); - } - else if (RetrieverDescriptorAction is not null) - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.RetrieverDescriptor(RetrieverDescriptorAction), options); - } - else - { - writer.WritePropertyName("retriever"); - JsonSerializer.Serialize(writer, RetrieverValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedField.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedField.g.cs deleted file mode 100644 index e00168eadf6..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedField.g.cs +++ /dev/null @@ -1,38 +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.TextStructure; - -public sealed partial class MatchedField -{ - [JsonInclude, JsonPropertyName("length")] - public int Length { get; init; } - [JsonInclude, JsonPropertyName("match")] - public string Match { get; init; } - [JsonInclude, JsonPropertyName("offset")] - public int Offset { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedText.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedText.g.cs deleted file mode 100644 index 1a552192c91..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TextStructure/MatchedText.g.cs +++ /dev/null @@ -1,36 +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.TextStructure; - -public sealed partial class MatchedText -{ - [JsonInclude, JsonPropertyName("fields")] - public IReadOnlyDictionary>? Fields { get; init; } - [JsonInclude, JsonPropertyName("matched")] - public bool Matched { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs deleted file mode 100644 index 802fede7de5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopLeftBottomRightGeoBounds.g.cs +++ /dev/null @@ -1,70 +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 TopLeftBottomRightGeoBounds -{ - [JsonInclude, JsonPropertyName("bottom_right")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation BottomRight { get; set; } - [JsonInclude, JsonPropertyName("top_left")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation TopLeft { get; set; } -} - -public sealed partial class TopLeftBottomRightGeoBoundsDescriptor : SerializableDescriptor -{ - internal TopLeftBottomRightGeoBoundsDescriptor(Action configure) => configure.Invoke(this); - - public TopLeftBottomRightGeoBoundsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation BottomRightValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation TopLeftValue { get; set; } - - public TopLeftBottomRightGeoBoundsDescriptor BottomRight(Elastic.Clients.Elasticsearch.Serverless.GeoLocation bottomRight) - { - BottomRightValue = bottomRight; - return Self; - } - - public TopLeftBottomRightGeoBoundsDescriptor TopLeft(Elastic.Clients.Elasticsearch.Serverless.GeoLocation topLeft) - { - TopLeftValue = topLeft; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("bottom_right"); - JsonSerializer.Serialize(writer, BottomRightValue, options); - writer.WritePropertyName("top_left"); - JsonSerializer.Serialize(writer, TopLeftValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs deleted file mode 100644 index b36239edcfb..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TopRightBottomLeftGeoBounds.g.cs +++ /dev/null @@ -1,70 +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 TopRightBottomLeftGeoBounds -{ - [JsonInclude, JsonPropertyName("bottom_left")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation BottomLeft { get; set; } - [JsonInclude, JsonPropertyName("top_right")] - public Elastic.Clients.Elasticsearch.Serverless.GeoLocation TopRight { get; set; } -} - -public sealed partial class TopRightBottomLeftGeoBoundsDescriptor : SerializableDescriptor -{ - internal TopRightBottomLeftGeoBoundsDescriptor(Action configure) => configure.Invoke(this); - - public TopRightBottomLeftGeoBoundsDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation BottomLeftValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.GeoLocation TopRightValue { get; set; } - - public TopRightBottomLeftGeoBoundsDescriptor BottomLeft(Elastic.Clients.Elasticsearch.Serverless.GeoLocation bottomLeft) - { - BottomLeftValue = bottomLeft; - return Self; - } - - public TopRightBottomLeftGeoBoundsDescriptor TopRight(Elastic.Clients.Elasticsearch.Serverless.GeoLocation topRight) - { - TopRightValue = topRight; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("bottom_left"); - JsonSerializer.Serialize(writer, BottomLeftValue, options); - writer.WritePropertyName("top_right"); - JsonSerializer.Serialize(writer, TopRightValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/CheckpointStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/CheckpointStats.g.cs deleted file mode 100644 index a01385c2f71..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/CheckpointStats.g.cs +++ /dev/null @@ -1,44 +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.TransformManagement; - -public sealed partial class CheckpointStats -{ - [JsonInclude, JsonPropertyName("checkpoint")] - public long Checkpoint { get; init; } - [JsonInclude, JsonPropertyName("checkpoint_progress")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TransformProgress? CheckpointProgress { get; init; } - [JsonInclude, JsonPropertyName("timestamp")] - public DateTimeOffset? Timestamp { get; init; } - [JsonInclude, JsonPropertyName("timestamp_millis")] - public long? TimestampMillis { get; init; } - [JsonInclude, JsonPropertyName("time_upper_bound")] - public DateTimeOffset? TimeUpperBound { get; init; } - [JsonInclude, JsonPropertyName("time_upper_bound_millis")] - public long? TimeUpperBoundMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Checkpointing.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Checkpointing.g.cs deleted file mode 100644 index fa1925fb923..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Checkpointing.g.cs +++ /dev/null @@ -1,44 +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.TransformManagement; - -public sealed partial class Checkpointing -{ - [JsonInclude, JsonPropertyName("changes_last_detected_at")] - public long? ChangesLastDetectedAt { get; init; } - [JsonInclude, JsonPropertyName("changes_last_detected_at_date_time")] - public DateTimeOffset? ChangesLastDetectedAtDateTime { get; init; } - [JsonInclude, JsonPropertyName("last")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.CheckpointStats Last { get; init; } - [JsonInclude, JsonPropertyName("last_search_time")] - public long? LastSearchTime { get; init; } - [JsonInclude, JsonPropertyName("next")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.CheckpointStats? Next { get; init; } - [JsonInclude, JsonPropertyName("operations_behind")] - public long? OperationsBehind { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Destination.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Destination.g.cs deleted file mode 100644 index 7b122eafbfa..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Destination.g.cs +++ /dev/null @@ -1,103 +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.TransformManagement; - -public sealed partial class Destination -{ - /// - /// - /// The destination index for the transform. The mappings of the destination index are deduced based on the source - /// fields when possible. If alternate mappings are required, use the create index API prior to starting the - /// transform. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } - - /// - /// - /// The unique identifier for an ingest pipeline. - /// - /// - [JsonInclude, JsonPropertyName("pipeline")] - public string? Pipeline { get; set; } -} - -public sealed partial class DestinationDescriptor : SerializableDescriptor -{ - internal DestinationDescriptor(Action configure) => configure.Invoke(this); - - public DestinationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.IndexName? IndexValue { get; set; } - private string? PipelineValue { get; set; } - - /// - /// - /// The destination index for the transform. The mappings of the destination index are deduced based on the source - /// fields when possible. If alternate mappings are required, use the create index API prior to starting the - /// transform. - /// - /// - public DestinationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) - { - IndexValue = index; - return Self; - } - - /// - /// - /// The unique identifier for an ingest pipeline. - /// - /// - public DestinationDescriptor Pipeline(string? pipeline) - { - PipelineValue = pipeline; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (IndexValue is not null) - { - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndexValue, options); - } - - if (!string.IsNullOrEmpty(PipelineValue)) - { - writer.WritePropertyName("pipeline"); - writer.WriteStringValue(PipelineValue); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Latest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Latest.g.cs deleted file mode 100644 index 246e68681c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Latest.g.cs +++ /dev/null @@ -1,180 +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.TransformManagement; - -public sealed partial class Latest -{ - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - [JsonInclude, JsonPropertyName("sort")] - public Elastic.Clients.Elasticsearch.Serverless.Field Sort { get; set; } - - /// - /// - /// Specifies an array of one or more fields that are used to group the data. - /// - /// - [JsonInclude, JsonPropertyName("unique_key")] - [JsonConverter(typeof(FieldsConverter))] - public Elastic.Clients.Elasticsearch.Serverless.Fields UniqueKey { get; set; } -} - -public sealed partial class LatestDescriptor : SerializableDescriptor> -{ - internal LatestDescriptor(Action> configure) => configure.Invoke(this); - - public LatestDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields UniqueKeyValue { get; set; } - - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - public LatestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Specifies an array of one or more fields that are used to group the data. - /// - /// - public LatestDescriptor UniqueKey(Elastic.Clients.Elasticsearch.Serverless.Fields uniqueKey) - { - UniqueKeyValue = uniqueKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - writer.WritePropertyName("unique_key"); - JsonSerializer.Serialize(writer, UniqueKeyValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class LatestDescriptor : SerializableDescriptor -{ - internal LatestDescriptor(Action configure) => configure.Invoke(this); - - public LatestDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field SortValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Fields UniqueKeyValue { get; set; } - - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - public LatestDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Field sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Specifies the date field that is used to identify the latest documents. - /// - /// - public LatestDescriptor Sort(Expression> sort) - { - SortValue = sort; - return Self; - } - - /// - /// - /// Specifies an array of one or more fields that are used to group the data. - /// - /// - public LatestDescriptor UniqueKey(Elastic.Clients.Elasticsearch.Serverless.Fields uniqueKey) - { - UniqueKeyValue = uniqueKey; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortValue, options); - writer.WritePropertyName("unique_key"); - JsonSerializer.Serialize(writer, UniqueKeyValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Pivot.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Pivot.g.cs deleted file mode 100644 index b688a16548d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Pivot.g.cs +++ /dev/null @@ -1,210 +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.TransformManagement; - -internal sealed partial class PivotConverter : JsonConverter -{ - public override Pivot Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - throw new JsonException("Unexpected JSON detected."); - var variant = new Pivot(); - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType == JsonTokenType.PropertyName) - { - var property = reader.GetString(); - if (property == "aggregations" || property == "aggs") - { - variant.Aggregations = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - - if (property == "group_by") - { - variant.GroupBy = JsonSerializer.Deserialize?>(ref reader, options); - continue; - } - } - } - - return variant; - } - - public override void Write(Utf8JsonWriter writer, Pivot value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.Aggregations is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, value.Aggregations, options); - } - - if (value.GroupBy is not null) - { - writer.WritePropertyName("group_by"); - JsonSerializer.Serialize(writer, value.GroupBy, options); - } - - writer.WriteEndObject(); - } -} - -[JsonConverter(typeof(PivotConverter))] -public sealed partial class Pivot -{ - /// - /// - /// Defines how to aggregate the grouped data. The following aggregations are currently supported: average, bucket - /// script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo line, max, median absolute deviation, - /// min, missing, percentiles, rare terms, scripted metric, stats, sum, terms, top metrics, value count, weighted - /// average. - /// - /// - public IDictionary? Aggregations { get; set; } - - /// - /// - /// Defines how to group the data. More than one grouping can be defined per pivot. The following groupings are - /// currently supported: date histogram, geotile grid, histogram, terms. - /// - /// - public IDictionary? GroupBy { get; set; } -} - -public sealed partial class PivotDescriptor : SerializableDescriptor> -{ - internal PivotDescriptor(Action> configure) => configure.Invoke(this); - - public PivotDescriptor() : base() - { - } - - private IDictionary> AggregationsValue { get; set; } - private IDictionary> GroupByValue { get; set; } - - /// - /// - /// Defines how to aggregate the grouped data. The following aggregations are currently supported: average, bucket - /// script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo line, max, median absolute deviation, - /// min, missing, percentiles, rare terms, scripted metric, stats, sum, terms, top metrics, value count, weighted - /// average. - /// - /// - public PivotDescriptor Aggregations(Func>, FluentDescriptorDictionary>> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - /// - /// - /// Defines how to group the data. More than one grouping can be defined per pivot. The following groupings are - /// currently supported: date histogram, geotile grid, histogram, terms. - /// - /// - public PivotDescriptor GroupBy(Func>, FluentDescriptorDictionary>> selector) - { - GroupByValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (GroupByValue is not null) - { - writer.WritePropertyName("group_by"); - JsonSerializer.Serialize(writer, GroupByValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PivotDescriptor : SerializableDescriptor -{ - internal PivotDescriptor(Action configure) => configure.Invoke(this); - - public PivotDescriptor() : base() - { - } - - private IDictionary AggregationsValue { get; set; } - private IDictionary GroupByValue { get; set; } - - /// - /// - /// Defines how to aggregate the grouped data. The following aggregations are currently supported: average, bucket - /// script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo line, max, median absolute deviation, - /// min, missing, percentiles, rare terms, scripted metric, stats, sum, terms, top metrics, value count, weighted - /// average. - /// - /// - public PivotDescriptor Aggregations(Func, FluentDescriptorDictionary> selector) - { - AggregationsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - /// - /// - /// Defines how to group the data. More than one grouping can be defined per pivot. The following groupings are - /// currently supported: date histogram, geotile grid, histogram, terms. - /// - /// - public PivotDescriptor GroupBy(Func, FluentDescriptorDictionary> selector) - { - GroupByValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AggregationsValue is not null) - { - writer.WritePropertyName("aggregations"); - JsonSerializer.Serialize(writer, AggregationsValue, options); - } - - if (GroupByValue is not null) - { - writer.WritePropertyName("group_by"); - JsonSerializer.Serialize(writer, GroupByValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/PivotGroupBy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/PivotGroupBy.g.cs deleted file mode 100644 index 18ae3954bf8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/PivotGroupBy.g.cs +++ /dev/null @@ -1,272 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -[JsonConverter(typeof(PivotGroupByConverter))] -public sealed partial class PivotGroupBy -{ - internal PivotGroupBy(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static PivotGroupBy DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation dateHistogramAggregation) => new PivotGroupBy("date_histogram", dateHistogramAggregation); - public static PivotGroupBy GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation geotileGridAggregation) => new PivotGroupBy("geotile_grid", geotileGridAggregation); - public static PivotGroupBy Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation histogramAggregation) => new PivotGroupBy("histogram", histogramAggregation); - public static PivotGroupBy Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => new PivotGroupBy("terms", termsAggregation); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class PivotGroupByConverter : JsonConverter -{ - public override PivotGroupBy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "date_histogram") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "geotile_grid") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "histogram") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - if (propertyName == "terms") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'PivotGroupBy' from the response."); - } - - var result = new PivotGroupBy(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, PivotGroupBy value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "date_histogram": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation)value.Variant, options); - break; - case "geotile_grid": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation)value.Variant, options); - break; - case "histogram": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation)value.Variant, options); - break; - case "terms": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PivotGroupByDescriptor : SerializableDescriptor> -{ - internal PivotGroupByDescriptor(Action> configure) => configure.Invoke(this); - - public PivotGroupByDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private PivotGroupByDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private PivotGroupByDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public PivotGroupByDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation dateHistogramAggregation) => Set(dateHistogramAggregation, "date_histogram"); - public PivotGroupByDescriptor DateHistogram(Action> configure) => Set(configure, "date_histogram"); - public PivotGroupByDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation geotileGridAggregation) => Set(geotileGridAggregation, "geotile_grid"); - public PivotGroupByDescriptor GeotileGrid(Action> configure) => Set(configure, "geotile_grid"); - public PivotGroupByDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation histogramAggregation) => Set(histogramAggregation, "histogram"); - public PivotGroupByDescriptor Histogram(Action> configure) => Set(configure, "histogram"); - public PivotGroupByDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); - public PivotGroupByDescriptor Terms(Action> configure) => Set(configure, "terms"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class PivotGroupByDescriptor : SerializableDescriptor -{ - internal PivotGroupByDescriptor(Action configure) => configure.Invoke(this); - - public PivotGroupByDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private PivotGroupByDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private PivotGroupByDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public PivotGroupByDescriptor DateHistogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.DateHistogramAggregation dateHistogramAggregation) => Set(dateHistogramAggregation, "date_histogram"); - public PivotGroupByDescriptor DateHistogram(Action configure) => Set(configure, "date_histogram"); - public PivotGroupByDescriptor GeotileGrid(Elastic.Clients.Elasticsearch.Serverless.Aggregations.GeotileGridAggregation geotileGridAggregation) => Set(geotileGridAggregation, "geotile_grid"); - public PivotGroupByDescriptor GeotileGrid(Action configure) => Set(configure, "geotile_grid"); - public PivotGroupByDescriptor Histogram(Elastic.Clients.Elasticsearch.Serverless.Aggregations.HistogramAggregation histogramAggregation) => Set(histogramAggregation, "histogram"); - public PivotGroupByDescriptor Histogram(Action configure) => Set(configure, "histogram"); - public PivotGroupByDescriptor Terms(Elastic.Clients.Elasticsearch.Serverless.Aggregations.TermsAggregation termsAggregation) => Set(termsAggregation, "terms"); - public PivotGroupByDescriptor Terms(Action configure) => Set(configure, "terms"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/RetentionPolicy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/RetentionPolicy.g.cs deleted file mode 100644 index 9839e946239..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/RetentionPolicy.g.cs +++ /dev/null @@ -1,227 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -[JsonConverter(typeof(RetentionPolicyConverter))] -public sealed partial class RetentionPolicy -{ - internal RetentionPolicy(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static RetentionPolicy Time(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeRetentionPolicy retentionPolicy) => new RetentionPolicy("time", retentionPolicy); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class RetentionPolicyConverter : JsonConverter -{ - public override RetentionPolicy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "time") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'RetentionPolicy' from the response."); - } - - var result = new RetentionPolicy(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, RetentionPolicy value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "time": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeRetentionPolicy)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RetentionPolicyDescriptor : SerializableDescriptor> -{ - internal RetentionPolicyDescriptor(Action> configure) => configure.Invoke(this); - - public RetentionPolicyDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RetentionPolicyDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RetentionPolicyDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RetentionPolicyDescriptor Time(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeRetentionPolicy retentionPolicy) => Set(retentionPolicy, "time"); - public RetentionPolicyDescriptor Time(Action> configure) => Set(configure, "time"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class RetentionPolicyDescriptor : SerializableDescriptor -{ - internal RetentionPolicyDescriptor(Action configure) => configure.Invoke(this); - - public RetentionPolicyDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private RetentionPolicyDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private RetentionPolicyDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public RetentionPolicyDescriptor Time(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeRetentionPolicy retentionPolicy) => Set(retentionPolicy, "time"); - public RetentionPolicyDescriptor Time(Action configure) => Set(configure, "time"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Settings.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Settings.g.cs deleted file mode 100644 index 236495082d1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Settings.g.cs +++ /dev/null @@ -1,231 +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.TransformManagement; - -/// -/// -/// The source of the data for the transform. -/// -/// -public sealed partial class Settings -{ - /// - /// - /// Specifies whether the transform checkpoint ranges should be optimized for performance. Such optimization can align - /// checkpoint ranges with the date histogram interval when date histogram is specified as a group source in the - /// transform config. As a result, less document updates in the destination index will be performed thus improving - /// overall performance. - /// - /// - [JsonInclude, JsonPropertyName("align_checkpoints")] - public bool? AlignCheckpoints { get; set; } - - /// - /// - /// Defines if dates in the ouput should be written as ISO formatted string or as millis since epoch. epoch_millis was - /// the default for transforms created before version 7.11. For compatible output set this value to true. - /// - /// - [JsonInclude, JsonPropertyName("dates_as_epoch_millis")] - public bool? DatesAsEpochMillis { get; set; } - - /// - /// - /// Specifies whether the transform should deduce the destination index mappings from the transform configuration. - /// - /// - [JsonInclude, JsonPropertyName("deduce_mappings")] - public bool? DeduceMappings { get; set; } - - /// - /// - /// Specifies a limit on the number of input documents per second. This setting throttles the transform by adding a - /// wait time between search requests. The default value is null, which disables throttling. - /// - /// - [JsonInclude, JsonPropertyName("docs_per_second")] - public float? DocsPerSecond { get; set; } - - /// - /// - /// Defines the initial page size to use for the composite aggregation for each checkpoint. If circuit breaker - /// exceptions occur, the page size is dynamically adjusted to a lower value. The minimum value is 10 and the - /// maximum is 65,536. - /// - /// - [JsonInclude, JsonPropertyName("max_page_search_size")] - public int? MaxPageSearchSize { get; set; } - - /// - /// - /// If true, the transform runs in unattended mode. In unattended mode, the transform retries indefinitely in case - /// of an error which means the transform never fails. Setting the number of retries other than infinite fails in - /// validation. - /// - /// - [JsonInclude, JsonPropertyName("unattended")] - public bool? Unattended { get; set; } -} - -/// -/// -/// The source of the data for the transform. -/// -/// -public sealed partial class SettingsDescriptor : SerializableDescriptor -{ - internal SettingsDescriptor(Action configure) => configure.Invoke(this); - - public SettingsDescriptor() : base() - { - } - - private bool? AlignCheckpointsValue { get; set; } - private bool? DatesAsEpochMillisValue { get; set; } - private bool? DeduceMappingsValue { get; set; } - private float? DocsPerSecondValue { get; set; } - private int? MaxPageSearchSizeValue { get; set; } - private bool? UnattendedValue { get; set; } - - /// - /// - /// Specifies whether the transform checkpoint ranges should be optimized for performance. Such optimization can align - /// checkpoint ranges with the date histogram interval when date histogram is specified as a group source in the - /// transform config. As a result, less document updates in the destination index will be performed thus improving - /// overall performance. - /// - /// - public SettingsDescriptor AlignCheckpoints(bool? alignCheckpoints = true) - { - AlignCheckpointsValue = alignCheckpoints; - return Self; - } - - /// - /// - /// Defines if dates in the ouput should be written as ISO formatted string or as millis since epoch. epoch_millis was - /// the default for transforms created before version 7.11. For compatible output set this value to true. - /// - /// - public SettingsDescriptor DatesAsEpochMillis(bool? datesAsEpochMillis = true) - { - DatesAsEpochMillisValue = datesAsEpochMillis; - return Self; - } - - /// - /// - /// Specifies whether the transform should deduce the destination index mappings from the transform configuration. - /// - /// - public SettingsDescriptor DeduceMappings(bool? deduceMappings = true) - { - DeduceMappingsValue = deduceMappings; - return Self; - } - - /// - /// - /// Specifies a limit on the number of input documents per second. This setting throttles the transform by adding a - /// wait time between search requests. The default value is null, which disables throttling. - /// - /// - public SettingsDescriptor DocsPerSecond(float? docsPerSecond) - { - DocsPerSecondValue = docsPerSecond; - return Self; - } - - /// - /// - /// Defines the initial page size to use for the composite aggregation for each checkpoint. If circuit breaker - /// exceptions occur, the page size is dynamically adjusted to a lower value. The minimum value is 10 and the - /// maximum is 65,536. - /// - /// - public SettingsDescriptor MaxPageSearchSize(int? maxPageSearchSize) - { - MaxPageSearchSizeValue = maxPageSearchSize; - return Self; - } - - /// - /// - /// If true, the transform runs in unattended mode. In unattended mode, the transform retries indefinitely in case - /// of an error which means the transform never fails. Setting the number of retries other than infinite fails in - /// validation. - /// - /// - public SettingsDescriptor Unattended(bool? unattended = true) - { - UnattendedValue = unattended; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AlignCheckpointsValue.HasValue) - { - writer.WritePropertyName("align_checkpoints"); - writer.WriteBooleanValue(AlignCheckpointsValue.Value); - } - - if (DatesAsEpochMillisValue.HasValue) - { - writer.WritePropertyName("dates_as_epoch_millis"); - writer.WriteBooleanValue(DatesAsEpochMillisValue.Value); - } - - if (DeduceMappingsValue.HasValue) - { - writer.WritePropertyName("deduce_mappings"); - writer.WriteBooleanValue(DeduceMappingsValue.Value); - } - - if (DocsPerSecondValue.HasValue) - { - writer.WritePropertyName("docs_per_second"); - writer.WriteNumberValue(DocsPerSecondValue.Value); - } - - if (MaxPageSearchSizeValue.HasValue) - { - writer.WritePropertyName("max_page_search_size"); - writer.WriteNumberValue(MaxPageSearchSizeValue.Value); - } - - if (UnattendedValue.HasValue) - { - writer.WritePropertyName("unattended"); - writer.WriteBooleanValue(UnattendedValue.Value); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Source.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Source.g.cs deleted file mode 100644 index 334c94a87c4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Source.g.cs +++ /dev/null @@ -1,259 +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.TransformManagement; - -public sealed partial class Source -{ - /// - /// - /// The source indices for the transform. It can be a single index, an index pattern (for example, "my-index-*""), an - /// array of indices (for example, ["my-index-000001", "my-index-000002"]), or an array of index patterns (for - /// example, ["my-index-*", "my-other-index-*"]. For remote indices use the syntax "remote_name:index_name". If - /// any indices are in remote clusters then the master node and at least one transform node must have the remote_cluster_client node role. - /// - /// - [JsonInclude, JsonPropertyName("index")] - public Elastic.Clients.Elasticsearch.Serverless.Indices Indices { get; set; } - - /// - /// - /// A query clause that retrieves a subset of data from the source index. - /// - /// - [JsonInclude, JsonPropertyName("query")] - public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } - - /// - /// - /// Definitions of search-time runtime fields that can be used by the transform. For search runtime fields all data - /// nodes, including remote nodes, must be 7.12 or later. - /// - /// - [JsonInclude, JsonPropertyName("runtime_mappings")] - public IDictionary? RuntimeMappings { get; set; } -} - -public sealed partial class SourceDescriptor : SerializableDescriptor> -{ - internal SourceDescriptor(Action> configure) => configure.Invoke(this); - - public SourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action> QueryDescriptorAction { get; set; } - private IDictionary> RuntimeMappingsValue { get; set; } - - /// - /// - /// The source indices for the transform. It can be a single index, an index pattern (for example, "my-index-*""), an - /// array of indices (for example, ["my-index-000001", "my-index-000002"]), or an array of index patterns (for - /// example, ["my-index-*", "my-other-index-*"]. For remote indices use the syntax "remote_name:index_name". If - /// any indices are in remote clusters then the master node and at least one transform node must have the remote_cluster_client node role. - /// - /// - public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// A query clause that retrieves a subset of data from the source index. - /// - /// - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Query(Action> configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Definitions of search-time runtime fields that can be used by the transform. For search runtime fields all data - /// nodes, including remote nodes, must be 7.12 or later. - /// - /// - public SourceDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SourceDescriptor : SerializableDescriptor -{ - internal SourceDescriptor(Action configure) => configure.Invoke(this); - - public SourceDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Indices IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } - private Action QueryDescriptorAction { get; set; } - private IDictionary RuntimeMappingsValue { get; set; } - - /// - /// - /// The source indices for the transform. It can be a single index, an index pattern (for example, "my-index-*""), an - /// array of indices (for example, ["my-index-000001", "my-index-000002"]), or an array of index patterns (for - /// example, ["my-index-*", "my-other-index-*"]. For remote indices use the syntax "remote_name:index_name". If - /// any indices are in remote clusters then the master node and at least one transform node must have the remote_cluster_client node role. - /// - /// - public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// A query clause that retrieves a subset of data from the source index. - /// - /// - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) - { - QueryDescriptor = null; - QueryDescriptorAction = null; - QueryValue = query; - return Self; - } - - public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor descriptor) - { - QueryValue = null; - QueryDescriptorAction = null; - QueryDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Query(Action configure) - { - QueryValue = null; - QueryDescriptor = null; - QueryDescriptorAction = configure; - return Self; - } - - /// - /// - /// Definitions of search-time runtime fields that can be used by the transform. For search runtime fields all data - /// nodes, including remote nodes, must be 7.12 or later. - /// - /// - public SourceDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) - { - RuntimeMappingsValue = selector?.Invoke(new FluentDescriptorDictionary()); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("index"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (QueryDescriptor is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryDescriptor, options); - } - else if (QueryDescriptorAction is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Serverless.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); - } - else if (QueryValue is not null) - { - writer.WritePropertyName("query"); - JsonSerializer.Serialize(writer, QueryValue, options); - } - - if (RuntimeMappingsValue is not null) - { - writer.WritePropertyName("runtime_mappings"); - JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Sync.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Sync.g.cs deleted file mode 100644 index c55ee411781..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/Sync.g.cs +++ /dev/null @@ -1,227 +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.Diagnostics.CodeAnalysis; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.TransformManagement; - -[JsonConverter(typeof(SyncConverter))] -public sealed partial class Sync -{ - internal Sync(string variantName, object variant) - { - if (variantName is null) - throw new ArgumentNullException(nameof(variantName)); - if (variant is null) - throw new ArgumentNullException(nameof(variant)); - if (string.IsNullOrWhiteSpace(variantName)) - throw new ArgumentException("Variant name must not be empty or whitespace."); - VariantName = variantName; - Variant = variant; - } - - internal object Variant { get; } - internal string VariantName { get; } - - public static Sync Time(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeSync timeSync) => new Sync("time", timeSync); - - public bool TryGet([NotNullWhen(true)] out T? result) where T : class - { - result = default; - if (Variant is T variant) - { - result = variant; - return true; - } - - return false; - } -} - -internal sealed partial class SyncConverter : JsonConverter -{ - public override Sync Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType != JsonTokenType.StartObject) - { - throw new JsonException("Expected start token."); - } - - object? variantValue = default; - string? variantNameValue = default; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token."); - } - - if (reader.TokenType != JsonTokenType.PropertyName) - { - throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); - } - - var propertyName = reader.GetString(); - reader.Read(); - if (propertyName == "time") - { - variantValue = JsonSerializer.Deserialize(ref reader, options); - variantNameValue = propertyName; - continue; - } - - throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'Sync' from the response."); - } - - var result = new Sync(variantNameValue, variantValue); - return result; - } - - public override void Write(Utf8JsonWriter writer, Sync value, JsonSerializerOptions options) - { - writer.WriteStartObject(); - if (value.VariantName is not null && value.Variant is not null) - { - writer.WritePropertyName(value.VariantName); - switch (value.VariantName) - { - case "time": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeSync)value.Variant, options); - break; - } - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SyncDescriptor : SerializableDescriptor> -{ - internal SyncDescriptor(Action> configure) => configure.Invoke(this); - - public SyncDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SyncDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SyncDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public SyncDescriptor Time(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeSync timeSync) => Set(timeSync, "time"); - public SyncDescriptor Time(Action> configure) => Set(configure, "time"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} - -public sealed partial class SyncDescriptor : SerializableDescriptor -{ - internal SyncDescriptor(Action configure) => configure.Invoke(this); - - public SyncDescriptor() : base() - { - } - - private bool ContainsVariant { get; set; } - private string ContainedVariantName { get; set; } - private object Variant { get; set; } - private Descriptor Descriptor { get; set; } - - private SyncDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor - { - ContainedVariantName = variantName; - ContainsVariant = true; - var descriptor = (T)Activator.CreateInstance(typeof(T), true); - descriptorAction?.Invoke(descriptor); - Descriptor = descriptor; - return Self; - } - - private SyncDescriptor Set(object variant, string variantName) - { - Variant = variant; - ContainedVariantName = variantName; - ContainsVariant = true; - return Self; - } - - public SyncDescriptor Time(Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TimeSync timeSync) => Set(timeSync, "time"); - public SyncDescriptor Time(Action configure) => Set(configure, "time"); - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (!string.IsNullOrEmpty(ContainedVariantName)) - { - writer.WritePropertyName(ContainedVariantName); - if (Variant is not null) - { - JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); - writer.WriteEndObject(); - return; - } - - JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs deleted file mode 100644 index 830dd573c4e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeRetentionPolicy.g.cs +++ /dev/null @@ -1,184 +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.TransformManagement; - -public sealed partial class TimeRetentionPolicy -{ - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - /// - /// - /// Specifies the maximum age of a document in the destination index. Documents that are older than the configured - /// value are removed from the destination index. - /// - /// - [JsonInclude, JsonPropertyName("max_age")] - public Elastic.Clients.Elasticsearch.Serverless.Duration MaxAge { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy(TimeRetentionPolicy timeRetentionPolicy) => Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy.Time(timeRetentionPolicy); -} - -public sealed partial class TimeRetentionPolicyDescriptor : SerializableDescriptor> -{ - internal TimeRetentionPolicyDescriptor(Action> configure) => configure.Invoke(this); - - public TimeRetentionPolicyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration MaxAgeValue { get; set; } - - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - public TimeRetentionPolicyDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - public TimeRetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - public TimeRetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specifies the maximum age of a document in the destination index. Documents that are older than the configured - /// value are removed from the destination index. - /// - /// - public TimeRetentionPolicyDescriptor MaxAge(Elastic.Clients.Elasticsearch.Serverless.Duration maxAge) - { - MaxAgeValue = maxAge; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_age"); - JsonSerializer.Serialize(writer, MaxAgeValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class TimeRetentionPolicyDescriptor : SerializableDescriptor -{ - internal TimeRetentionPolicyDescriptor(Action configure) => configure.Invoke(this); - - public TimeRetentionPolicyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Duration MaxAgeValue { get; set; } - - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - public TimeRetentionPolicyDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - public TimeRetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to calculate the age of the document. - /// - /// - public TimeRetentionPolicyDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// Specifies the maximum age of a document in the destination index. Documents that are older than the configured - /// value are removed from the destination index. - /// - /// - public TimeRetentionPolicyDescriptor MaxAge(Elastic.Clients.Elasticsearch.Serverless.Duration maxAge) - { - MaxAgeValue = maxAge; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WritePropertyName("max_age"); - JsonSerializer.Serialize(writer, MaxAgeValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeSync.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeSync.g.cs deleted file mode 100644 index 95938096402..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TimeSync.g.cs +++ /dev/null @@ -1,203 +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.TransformManagement; - -public sealed partial class TimeSync -{ - /// - /// - /// The time delay between the current time and the latest input data time. - /// - /// - [JsonInclude, JsonPropertyName("delay")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Delay { get; set; } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - [JsonInclude, JsonPropertyName("field")] - public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } - - public static implicit operator Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync(TimeSync timeSync) => Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync.Time(timeSync); -} - -public sealed partial class TimeSyncDescriptor : SerializableDescriptor> -{ - internal TimeSyncDescriptor(Action> configure) => configure.Invoke(this); - - public TimeSyncDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? DelayValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// The time delay between the current time and the latest input data time. - /// - /// - public TimeSyncDescriptor Delay(Elastic.Clients.Elasticsearch.Serverless.Duration? delay) - { - DelayValue = delay; - return Self; - } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - public TimeSyncDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DelayValue is not null) - { - writer.WritePropertyName("delay"); - JsonSerializer.Serialize(writer, DelayValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} - -public sealed partial class TimeSyncDescriptor : SerializableDescriptor -{ - internal TimeSyncDescriptor(Action configure) => configure.Invoke(this); - - public TimeSyncDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Serverless.Duration? DelayValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.Field FieldValue { get; set; } - - /// - /// - /// The time delay between the current time and the latest input data time. - /// - /// - public TimeSyncDescriptor Delay(Elastic.Clients.Elasticsearch.Serverless.Duration? delay) - { - DelayValue = delay; - return Self; - } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - public TimeSyncDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - /// - /// - /// The date field that is used to identify new documents in the source. In general, it’s a good idea to use a field - /// that contains the ingest timestamp. If you use a different field, you might need to set the delay such that it - /// accounts for data transmission delays. - /// - /// - public TimeSyncDescriptor Field(Expression> field) - { - FieldValue = field; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (DelayValue is not null) - { - writer.WritePropertyName("delay"); - JsonSerializer.Serialize(writer, DelayValue, options); - } - - writer.WritePropertyName("field"); - JsonSerializer.Serialize(writer, FieldValue, options); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs deleted file mode 100644 index 5598a12e818..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformIndexerStats.g.cs +++ /dev/null @@ -1,66 +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.TransformManagement; - -public sealed partial class TransformIndexerStats -{ - [JsonInclude, JsonPropertyName("delete_time_in_ms")] - public long? DeleteTimeInMs { get; init; } - [JsonInclude, JsonPropertyName("documents_deleted")] - public long? DocumentsDeleted { get; init; } - [JsonInclude, JsonPropertyName("documents_indexed")] - public long DocumentsIndexed { get; init; } - [JsonInclude, JsonPropertyName("documents_processed")] - public long DocumentsProcessed { get; init; } - [JsonInclude, JsonPropertyName("exponential_avg_checkpoint_duration_ms")] - public double ExponentialAvgCheckpointDurationMs { get; init; } - [JsonInclude, JsonPropertyName("exponential_avg_documents_indexed")] - public double ExponentialAvgDocumentsIndexed { get; init; } - [JsonInclude, JsonPropertyName("exponential_avg_documents_processed")] - public double ExponentialAvgDocumentsProcessed { get; init; } - [JsonInclude, JsonPropertyName("index_failures")] - public long IndexFailures { get; init; } - [JsonInclude, JsonPropertyName("index_time_in_ms")] - public long IndexTimeInMs { get; init; } - [JsonInclude, JsonPropertyName("index_total")] - public long IndexTotal { get; init; } - [JsonInclude, JsonPropertyName("pages_processed")] - public long PagesProcessed { get; init; } - [JsonInclude, JsonPropertyName("processing_time_in_ms")] - public long ProcessingTimeInMs { get; init; } - [JsonInclude, JsonPropertyName("processing_total")] - public long ProcessingTotal { get; init; } - [JsonInclude, JsonPropertyName("search_failures")] - public long SearchFailures { get; init; } - [JsonInclude, JsonPropertyName("search_time_in_ms")] - public long SearchTimeInMs { get; init; } - [JsonInclude, JsonPropertyName("search_total")] - public long SearchTotal { get; init; } - [JsonInclude, JsonPropertyName("trigger_count")] - public long TriggerCount { get; init; } -} \ 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 deleted file mode 100644 index f66f3ef24da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformProgress.g.cs +++ /dev/null @@ -1,42 +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.TransformManagement; - -public sealed partial class TransformProgress -{ - [JsonInclude, JsonPropertyName("docs_indexed")] - public long DocsIndexed { get; init; } - [JsonInclude, JsonPropertyName("docs_processed")] - public long DocsProcessed { get; init; } - [JsonInclude, JsonPropertyName("docs_remaining")] - public long? DocsRemaining { get; init; } - [JsonInclude, JsonPropertyName("percent_complete")] - public double? PercentComplete { get; init; } - [JsonInclude, JsonPropertyName("total_docs")] - public long? TotalDocs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStats.g.cs deleted file mode 100644 index 9ef4feeee09..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStats.g.cs +++ /dev/null @@ -1,44 +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.TransformManagement; - -public sealed partial class TransformStats -{ - [JsonInclude, JsonPropertyName("checkpointing")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Checkpointing Checkpointing { get; init; } - [JsonInclude, JsonPropertyName("health")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TransformStatsHealth? Health { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("reason")] - public string? Reason { get; init; } - [JsonInclude, JsonPropertyName("state")] - public string State { get; init; } - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.TransformIndexerStats Stats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs deleted file mode 100644 index 0f9e040603e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs +++ /dev/null @@ -1,34 +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.TransformManagement; - -public sealed partial class TransformStatsHealth -{ - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.HealthStatus Status { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformSummary.g.cs deleted file mode 100644 index 2b16dd6e585..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TransformManagement/TransformSummary.g.cs +++ /dev/null @@ -1,113 +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.TransformManagement; - -public sealed partial class TransformSummary -{ - /// - /// - /// The security privileges that the transform uses to run its queries. If Elastic Stack security features were disabled at the time of the most recent update to the transform, this property is omitted. - /// - /// - [JsonInclude, JsonPropertyName("authorization")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.TransformAuthorization? Authorization { get; init; } - - /// - /// - /// The time the transform was created. - /// - /// - [JsonInclude, JsonPropertyName("create_time")] - public long? CreateTime { get; init; } - - /// - /// - /// Free text description of the transform. - /// - /// - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - - /// - /// - /// The destination for the transform. - /// - /// - [JsonInclude, JsonPropertyName("dest")] - public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination Dest { get; init; } - [JsonInclude, JsonPropertyName("frequency")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Frequency { get; init; } - [JsonInclude, JsonPropertyName("id")] - public string Id { get; init; } - [JsonInclude, JsonPropertyName("latest")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Latest? Latest { get; init; } - [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } - - /// - /// - /// The pivot method transforms the data by aggregating and grouping it. - /// - /// - [JsonInclude, JsonPropertyName("pivot")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Pivot? Pivot { get; init; } - [JsonInclude, JsonPropertyName("retention_policy")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.RetentionPolicy? RetentionPolicy { get; init; } - - /// - /// - /// Defines optional transform settings. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Settings? Settings { get; init; } - - /// - /// - /// The source of the data for the transform. - /// - /// - [JsonInclude, JsonPropertyName("source")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Source Source { get; init; } - - /// - /// - /// Defines the properties transforms require to run continuously. - /// - /// - [JsonInclude, JsonPropertyName("sync")] - public Elastic.Clients.Elasticsearch.Serverless.TransformManagement.Sync? Sync { get; init; } - - /// - /// - /// The version of Elasticsearch that existed on the node when the transform was created. - /// - /// - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TranslogStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TranslogStats.g.cs deleted file mode 100644 index 93916b748cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TranslogStats.g.cs +++ /dev/null @@ -1,46 +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 TranslogStats -{ - [JsonInclude, JsonPropertyName("earliest_last_modified_age")] - public long EarliestLastModifiedAge { get; init; } - [JsonInclude, JsonPropertyName("operations")] - public long Operations { get; init; } - [JsonInclude, JsonPropertyName("size")] - public string? Size { get; init; } - [JsonInclude, JsonPropertyName("size_in_bytes")] - public long SizeInBytes { get; init; } - [JsonInclude, JsonPropertyName("uncommitted_operations")] - public int UncommittedOperations { get; init; } - [JsonInclude, JsonPropertyName("uncommitted_size")] - public string? UncommittedSize { get; init; } - [JsonInclude, JsonPropertyName("uncommitted_size_in_bytes")] - public long UncommittedSizeInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WarmerStats.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WarmerStats.g.cs deleted file mode 100644 index e928884a331..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WarmerStats.g.cs +++ /dev/null @@ -1,40 +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 WarmerStats -{ - [JsonInclude, JsonPropertyName("current")] - public long Current { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } - [JsonInclude, JsonPropertyName("total_time")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? TotalTime { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_millis")] - public long TotalTimeInMillis { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WktGeoBounds.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WktGeoBounds.g.cs deleted file mode 100644 index 3c7d254b5e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/WktGeoBounds.g.cs +++ /dev/null @@ -1,59 +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 WktGeoBounds -{ - [JsonInclude, JsonPropertyName("wkt")] - public string Wkt { get; set; } -} - -public sealed partial class WktGeoBoundsDescriptor : SerializableDescriptor -{ - internal WktGeoBoundsDescriptor(Action configure) => configure.Invoke(this); - - public WktGeoBoundsDescriptor() : base() - { - } - - private string WktValue { get; set; } - - public WktGeoBoundsDescriptor Wkt(string wkt) - { - WktValue = wkt; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("wkt"); - writer.WriteStringValue(WktValue); - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Analytics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Analytics.g.cs deleted file mode 100644 index e8ae431eabe..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Analytics.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class Analytics -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("stats")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.AnalyticsStatistics Stats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/AnalyticsStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/AnalyticsStatistics.g.cs deleted file mode 100644 index e4b357a6fb3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/AnalyticsStatistics.g.cs +++ /dev/null @@ -1,50 +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.Xpack; - -public sealed partial class AnalyticsStatistics -{ - [JsonInclude, JsonPropertyName("boxplot_usage")] - public long BoxplotUsage { get; init; } - [JsonInclude, JsonPropertyName("cumulative_cardinality_usage")] - public long CumulativeCardinalityUsage { get; init; } - [JsonInclude, JsonPropertyName("moving_percentiles_usage")] - public long MovingPercentilesUsage { get; init; } - [JsonInclude, JsonPropertyName("multi_terms_usage")] - public long? MultiTermsUsage { get; init; } - [JsonInclude, JsonPropertyName("normalize_usage")] - public long NormalizeUsage { get; init; } - [JsonInclude, JsonPropertyName("rate_usage")] - public long RateUsage { get; init; } - [JsonInclude, JsonPropertyName("string_stats_usage")] - public long StringStatsUsage { get; init; } - [JsonInclude, JsonPropertyName("top_metrics_usage")] - public long TopMetricsUsage { get; init; } - [JsonInclude, JsonPropertyName("t_test_usage")] - public long TTestUsage { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Archive.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Archive.g.cs deleted file mode 100644 index c546b7f76ac..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Archive.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class Archive -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("indices_count")] - public long IndicesCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Audit.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Audit.g.cs deleted file mode 100644 index 8a83da0392d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Audit.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class Audit -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("outputs")] - public IReadOnlyCollection? Outputs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Base.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Base.g.cs deleted file mode 100644 index 300d124aef9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Base.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class Base -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/BuildInformation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/BuildInformation.g.cs deleted file mode 100644 index 3a0fe0808f2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/BuildInformation.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class BuildInformation -{ - [JsonInclude, JsonPropertyName("date")] - public DateTimeOffset Date { get; init; } - [JsonInclude, JsonPropertyName("hash")] - public string Hash { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ccr.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ccr.g.cs deleted file mode 100644 index a620f573c2e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ccr.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class Ccr -{ - [JsonInclude, JsonPropertyName("auto_follow_patterns_count")] - public int AutoFollowPatternsCount { get; init; } - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("follower_indices_count")] - public int FollowerIndicesCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Counter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Counter.g.cs deleted file mode 100644 index 1039ec2e67c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Counter.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class Counter -{ - [JsonInclude, JsonPropertyName("active")] - public long Active { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataStreams.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataStreams.g.cs deleted file mode 100644 index ab13e3404f9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataStreams.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class DataStreams -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("data_streams")] - public long DataStreams2 { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("indices_count")] - public long IndicesCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs deleted file mode 100644 index 925b688cdd4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTierPhaseStatistics.g.cs +++ /dev/null @@ -1,52 +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.Xpack; - -public sealed partial class DataTierPhaseStatistics -{ - [JsonInclude, JsonPropertyName("doc_count")] - public long DocCount { get; init; } - [JsonInclude, JsonPropertyName("index_count")] - public long IndexCount { get; init; } - [JsonInclude, JsonPropertyName("node_count")] - public long NodeCount { get; init; } - [JsonInclude, JsonPropertyName("primary_shard_count")] - public long PrimaryShardCount { get; init; } - [JsonInclude, JsonPropertyName("primary_shard_size_avg_bytes")] - public long PrimaryShardSizeAvgBytes { get; init; } - [JsonInclude, JsonPropertyName("primary_shard_size_mad_bytes")] - public long PrimaryShardSizeMadBytes { get; init; } - [JsonInclude, JsonPropertyName("primary_shard_size_median_bytes")] - public long PrimaryShardSizeMedianBytes { get; init; } - [JsonInclude, JsonPropertyName("primary_size_bytes")] - public long PrimarySizeBytes { get; init; } - [JsonInclude, JsonPropertyName("total_shard_count")] - public long TotalShardCount { get; init; } - [JsonInclude, JsonPropertyName("total_size_bytes")] - public long TotalSizeBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTiers.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTiers.g.cs deleted file mode 100644 index 5ab69df2f3f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/DataTiers.g.cs +++ /dev/null @@ -1,46 +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.Xpack; - -public sealed partial class DataTiers -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("data_cold")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataTierPhaseStatistics DataCold { get; init; } - [JsonInclude, JsonPropertyName("data_content")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataTierPhaseStatistics DataContent { get; init; } - [JsonInclude, JsonPropertyName("data_frozen")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataTierPhaseStatistics? DataFrozen { get; init; } - [JsonInclude, JsonPropertyName("data_hot")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataTierPhaseStatistics DataHot { get; init; } - [JsonInclude, JsonPropertyName("data_warm")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.DataTierPhaseStatistics DataWarm { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Datafeed.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Datafeed.g.cs deleted file mode 100644 index daefcc8c031..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Datafeed.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class Datafeed -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Eql.g.cs deleted file mode 100644 index 99115845263..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Eql.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class Eql -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("features")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.EqlFeatures Features { get; init; } - [JsonInclude, JsonPropertyName("queries")] - public IReadOnlyDictionary Queries { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeatures.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeatures.g.cs deleted file mode 100644 index df7fb215a94..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeatures.g.cs +++ /dev/null @@ -1,46 +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.Xpack; - -public sealed partial class EqlFeatures -{ - [JsonInclude, JsonPropertyName("event")] - public int Event { get; init; } - [JsonInclude, JsonPropertyName("join")] - public int Join { get; init; } - [JsonInclude, JsonPropertyName("joins")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.EqlFeaturesJoin Joins { get; init; } - [JsonInclude, JsonPropertyName("keys")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.EqlFeaturesKeys Keys { get; init; } - [JsonInclude, JsonPropertyName("pipes")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.EqlFeaturesPipes Pipes { get; init; } - [JsonInclude, JsonPropertyName("sequence")] - public int Sequence { get; init; } - [JsonInclude, JsonPropertyName("sequences")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.EqlFeaturesSequences Sequences { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs deleted file mode 100644 index f5c38fc1912..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesJoin.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class EqlFeaturesJoin -{ - [JsonInclude, JsonPropertyName("join_queries_five_or_more")] - public int JoinQueriesFiveOrMore { get; init; } - [JsonInclude, JsonPropertyName("join_queries_four")] - public int JoinQueriesFour { get; init; } - [JsonInclude, JsonPropertyName("join_queries_three")] - public int JoinQueriesThree { get; init; } - [JsonInclude, JsonPropertyName("join_queries_two")] - public int JoinQueriesTwo { get; init; } - [JsonInclude, JsonPropertyName("join_until")] - public int JoinUntil { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs deleted file mode 100644 index 0c07c70c350..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesKeys.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class EqlFeaturesKeys -{ - [JsonInclude, JsonPropertyName("join_keys_five_or_more")] - public int JoinKeysFiveOrMore { get; init; } - [JsonInclude, JsonPropertyName("join_keys_four")] - public int JoinKeysFour { get; init; } - [JsonInclude, JsonPropertyName("join_keys_one")] - public int JoinKeysOne { get; init; } - [JsonInclude, JsonPropertyName("join_keys_three")] - public int JoinKeysThree { get; init; } - [JsonInclude, JsonPropertyName("join_keys_two")] - public int JoinKeysTwo { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs deleted file mode 100644 index 7854cf5e341..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesPipes.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class EqlFeaturesPipes -{ - [JsonInclude, JsonPropertyName("pipe_head")] - public int PipeHead { get; init; } - [JsonInclude, JsonPropertyName("pipe_tail")] - public int PipeTail { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs deleted file mode 100644 index 490ea023d6b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/EqlFeaturesSequences.g.cs +++ /dev/null @@ -1,44 +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.Xpack; - -public sealed partial class EqlFeaturesSequences -{ - [JsonInclude, JsonPropertyName("sequence_maxspan")] - public int SequenceMaxspan { get; init; } - [JsonInclude, JsonPropertyName("sequence_queries_five_or_more")] - public int SequenceQueriesFiveOrMore { get; init; } - [JsonInclude, JsonPropertyName("sequence_queries_four")] - public int SequenceQueriesFour { get; init; } - [JsonInclude, JsonPropertyName("sequence_queries_three")] - public int SequenceQueriesThree { get; init; } - [JsonInclude, JsonPropertyName("sequence_queries_two")] - public int SequenceQueriesTwo { get; init; } - [JsonInclude, JsonPropertyName("sequence_until")] - public int SequenceUntil { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Feature.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Feature.g.cs deleted file mode 100644 index 61fe59b8353..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Feature.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class Feature -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("description")] - public string? Description { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("native_code_info")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.NativeCodeInformation? NativeCodeInfo { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FeatureToggle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FeatureToggle.g.cs deleted file mode 100644 index 859c9a92856..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FeatureToggle.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class FeatureToggle -{ - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs deleted file mode 100644 index 9b76bc470f1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Features.g.cs +++ /dev/null @@ -1,80 +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.Xpack; - -public sealed partial class Features -{ - [JsonInclude, JsonPropertyName("aggregate_metric")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature AggregateMetric { get; init; } - [JsonInclude, JsonPropertyName("analytics")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Analytics { get; init; } - [JsonInclude, JsonPropertyName("ccr")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Ccr { get; init; } - [JsonInclude, JsonPropertyName("data_streams")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature DataStreams { get; init; } - [JsonInclude, JsonPropertyName("data_tiers")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature DataTiers { get; init; } - [JsonInclude, JsonPropertyName("enrich")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Enrich { get; init; } - [JsonInclude, JsonPropertyName("eql")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Eql { get; init; } - [JsonInclude, JsonPropertyName("frozen_indices")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature FrozenIndices { get; init; } - [JsonInclude, JsonPropertyName("graph")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Graph { get; init; } - [JsonInclude, JsonPropertyName("ilm")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Ilm { get; init; } - [JsonInclude, JsonPropertyName("logsdb")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Logsdb { get; init; } - [JsonInclude, JsonPropertyName("logstash")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Logstash { get; init; } - [JsonInclude, JsonPropertyName("ml")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Ml { get; init; } - [JsonInclude, JsonPropertyName("monitoring")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Monitoring { get; init; } - [JsonInclude, JsonPropertyName("rollup")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Rollup { get; init; } - [JsonInclude, JsonPropertyName("runtime_fields")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature? RuntimeFields { get; init; } - [JsonInclude, JsonPropertyName("searchable_snapshots")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature SearchableSnapshots { get; init; } - [JsonInclude, JsonPropertyName("security")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Security { get; init; } - [JsonInclude, JsonPropertyName("slm")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Slm { get; init; } - [JsonInclude, JsonPropertyName("spatial")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Spatial { get; init; } - [JsonInclude, JsonPropertyName("sql")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Sql { get; init; } - [JsonInclude, JsonPropertyName("transform")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Transform { get; init; } - [JsonInclude, JsonPropertyName("voting_only")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature VotingOnly { get; init; } - [JsonInclude, JsonPropertyName("watcher")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Feature Watcher { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Flattened.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Flattened.g.cs deleted file mode 100644 index cab37e171d4..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Flattened.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class Flattened -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("field_count")] - public int FieldCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FrozenIndices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FrozenIndices.g.cs deleted file mode 100644 index e44ef006237..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/FrozenIndices.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class FrozenIndices -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("indices_count")] - public long IndicesCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/HealthStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/HealthStatistics.g.cs deleted file mode 100644 index 2f944f32b16..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/HealthStatistics.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class HealthStatistics -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("invocations")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Invocations Invocations { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ilm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ilm.g.cs deleted file mode 100644 index 4798e3b942d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ilm.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class Ilm -{ - [JsonInclude, JsonPropertyName("policy_count")] - public int PolicyCount { get; init; } - [JsonInclude, JsonPropertyName("policy_stats")] - public IReadOnlyCollection PolicyStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs deleted file mode 100644 index cafdbb0915e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class IlmPolicyStatistics -{ - [JsonInclude, JsonPropertyName("indices_managed")] - public int IndicesManaged { get; init; } - [JsonInclude, JsonPropertyName("phases")] - public Elastic.Clients.Elasticsearch.Serverless.IndexLifecycleManagement.Phases Phases { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Invocations.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Invocations.g.cs deleted file mode 100644 index 7c9ef68c9b3..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Invocations.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class Invocations -{ - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IpFilter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IpFilter.g.cs deleted file mode 100644 index 2ffbebba860..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/IpFilter.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class IpFilter -{ - [JsonInclude, JsonPropertyName("http")] - public bool Http { get; init; } - [JsonInclude, JsonPropertyName("transport")] - public bool Transport { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/JobUsage.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/JobUsage.g.cs deleted file mode 100644 index db5b13551ef..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/JobUsage.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class JobUsage -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("created_by")] - public IReadOnlyDictionary CreatedBy { get; init; } - [JsonInclude, JsonPropertyName("detectors")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics Detectors { get; init; } - [JsonInclude, JsonPropertyName("forecasts")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlJobForecasts Forecasts { get; init; } - [JsonInclude, JsonPropertyName("model_size")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics ModelSize { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MachineLearning.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MachineLearning.g.cs deleted file mode 100644 index bb355cf693c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MachineLearning.g.cs +++ /dev/null @@ -1,52 +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.Xpack; - -public sealed partial class MachineLearning -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("datafeeds")] - public IReadOnlyDictionary Datafeeds { get; init; } - [JsonInclude, JsonPropertyName("data_frame_analytics_jobs")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlDataFrameAnalyticsJobs DataFrameAnalyticsJobs { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("inference")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInference Inference { get; init; } - - /// - /// - /// Job usage statistics. The _all entry is always present and gathers statistics for all jobs. - /// - /// - [JsonInclude, JsonPropertyName("jobs")] - public IReadOnlyDictionary Jobs { get; init; } - [JsonInclude, JsonPropertyName("node_count")] - public int NodeCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs deleted file mode 100644 index a502ed120da..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MinimalLicenseInformation.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class MinimalLicenseInformation -{ - [JsonInclude, JsonPropertyName("expiry_date_in_millis")] - public long ExpiryDateInMillis { get; init; } - [JsonInclude, JsonPropertyName("mode")] - public Elastic.Clients.Elasticsearch.Serverless.LicenseManagement.LicenseType Mode { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Serverless.LicenseManagement.LicenseStatus Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Serverless.LicenseManagement.LicenseType Type { get; init; } - [JsonInclude, JsonPropertyName("uid")] - public string Uid { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlCounter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlCounter.g.cs deleted file mode 100644 index da55acf45e5..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlCounter.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class MlCounter -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs deleted file mode 100644 index ebef5e3011e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobs.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class MlDataFrameAnalyticsJobs -{ - [JsonInclude, JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlDataFrameAnalyticsJobsCount All { get; init; } - [JsonInclude, JsonPropertyName("analysis_counts")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlDataFrameAnalyticsJobsAnalysis? AnalysisCounts { get; init; } - [JsonInclude, JsonPropertyName("memory_usage")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlDataFrameAnalyticsJobsMemory? MemoryUsage { get; init; } - [JsonInclude, JsonPropertyName("stopped")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlDataFrameAnalyticsJobsCount? Stopped { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs deleted file mode 100644 index afa9d637b0e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsAnalysis.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class MlDataFrameAnalyticsJobsAnalysis -{ - [JsonInclude, JsonPropertyName("classification")] - public int? Classification { get; init; } - [JsonInclude, JsonPropertyName("outlier_detection")] - public int? OutlierDetection { get; init; } - [JsonInclude, JsonPropertyName("regression")] - public int? Regression { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs deleted file mode 100644 index faf8f65809f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsCount.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class MlDataFrameAnalyticsJobsCount -{ - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs deleted file mode 100644 index a1b8243319b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlDataFrameAnalyticsJobsMemory.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class MlDataFrameAnalyticsJobsMemory -{ - [JsonInclude, JsonPropertyName("peak_usage_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics PeakUsageBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInference.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInference.g.cs deleted file mode 100644 index 4f2d5a6527e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInference.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class MlInference -{ - [JsonInclude, JsonPropertyName("deployments")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceDeployments? Deployments { get; init; } - [JsonInclude, JsonPropertyName("ingest_processors")] - public IReadOnlyDictionary IngestProcessors { get; init; } - [JsonInclude, JsonPropertyName("trained_models")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceTrainedModels TrainedModels { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeployments.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeployments.g.cs deleted file mode 100644 index 7f0f17f580c..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeployments.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class MlInferenceDeployments -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("inference_counts")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics InferenceCounts { get; init; } - [JsonInclude, JsonPropertyName("model_sizes_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics ModelSizesBytes { get; init; } - [JsonInclude, JsonPropertyName("time_ms")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceDeploymentsTimeMs TimeMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs deleted file mode 100644 index f7051c056c9..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceDeploymentsTimeMs.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class MlInferenceDeploymentsTimeMs -{ - [JsonInclude, JsonPropertyName("avg")] - public double Avg { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs deleted file mode 100644 index c063c037e0b..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessor.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class MlInferenceIngestProcessor -{ - [JsonInclude, JsonPropertyName("num_docs_processed")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceIngestProcessorCount NumDocsProcessed { get; init; } - [JsonInclude, JsonPropertyName("num_failures")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceIngestProcessorCount NumFailures { get; init; } - [JsonInclude, JsonPropertyName("pipelines")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlCounter Pipelines { get; init; } - [JsonInclude, JsonPropertyName("time_ms")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceIngestProcessorCount TimeMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs deleted file mode 100644 index b3de2f545ca..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceIngestProcessorCount.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class MlInferenceIngestProcessorCount -{ - [JsonInclude, JsonPropertyName("max")] - public long Max { get; init; } - [JsonInclude, JsonPropertyName("min")] - public long Min { get; init; } - [JsonInclude, JsonPropertyName("sum")] - public long Sum { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs deleted file mode 100644 index fe319ef07af..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModels.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class MlInferenceTrainedModels -{ - [JsonInclude, JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlCounter All { get; init; } - [JsonInclude, JsonPropertyName("count")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.MlInferenceTrainedModelsCount? Count { get; init; } - [JsonInclude, JsonPropertyName("estimated_heap_memory_usage_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics? EstimatedHeapMemoryUsageBytes { get; init; } - [JsonInclude, JsonPropertyName("estimated_operations")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics? EstimatedOperations { get; init; } - [JsonInclude, JsonPropertyName("model_size_bytes")] - public Elastic.Clients.Elasticsearch.Serverless.MachineLearning.JobStatistics? ModelSizeBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs deleted file mode 100644 index ad74c6694f8..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlInferenceTrainedModelsCount.g.cs +++ /dev/null @@ -1,48 +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.Xpack; - -public sealed partial class MlInferenceTrainedModelsCount -{ - [JsonInclude, JsonPropertyName("classification")] - public long? Classification { get; init; } - [JsonInclude, JsonPropertyName("ner")] - public long? Ner { get; init; } - [JsonInclude, JsonPropertyName("other")] - public long Other { get; init; } - [JsonInclude, JsonPropertyName("pass_through")] - public long? PassThrough { get; init; } - [JsonInclude, JsonPropertyName("prepackaged")] - public long Prepackaged { get; init; } - [JsonInclude, JsonPropertyName("regression")] - public long? Regression { get; init; } - [JsonInclude, JsonPropertyName("text_embedding")] - public long? TextEmbedding { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlJobForecasts.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlJobForecasts.g.cs deleted file mode 100644 index cc1d5719be0..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/MlJobForecasts.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class MlJobForecasts -{ - [JsonInclude, JsonPropertyName("forecasted_jobs")] - public long ForecastedJobs { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Monitoring.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Monitoring.g.cs deleted file mode 100644 index e205c28a569..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Monitoring.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class Monitoring -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("collection_enabled")] - public bool CollectionEnabled { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("enabled_exporters")] - public IReadOnlyDictionary EnabledExporters { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/NativeCodeInformation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/NativeCodeInformation.g.cs deleted file mode 100644 index 6f08c7cd376..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/NativeCodeInformation.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class NativeCodeInformation -{ - [JsonInclude, JsonPropertyName("build_hash")] - public string BuildHash { get; init; } - [JsonInclude, JsonPropertyName("version")] - public string Version { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Realm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Realm.g.cs deleted file mode 100644 index 10f1b193815..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Realm.g.cs +++ /dev/null @@ -1,52 +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.Xpack; - -public sealed partial class Realm -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("cache")] - public IReadOnlyCollection? Cache { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("has_authorization_realms")] - public IReadOnlyCollection? HasAuthorizationRealms { get; init; } - [JsonInclude, JsonPropertyName("has_default_username_pattern")] - public IReadOnlyCollection? HasDefaultUsernamePattern { get; init; } - [JsonInclude, JsonPropertyName("has_truststore")] - public IReadOnlyCollection? HasTruststore { get; init; } - [JsonInclude, JsonPropertyName("is_authentication_delegated")] - public IReadOnlyCollection? IsAuthenticationDelegated { get; init; } - [JsonInclude, JsonPropertyName("name")] - public IReadOnlyCollection? Name { get; init; } - [JsonInclude, JsonPropertyName("order")] - public IReadOnlyCollection? Order { get; init; } - [JsonInclude, JsonPropertyName("size")] - public IReadOnlyCollection? Size { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RealmCache.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RealmCache.g.cs deleted file mode 100644 index 1acc373ee33..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RealmCache.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class RealmCache -{ - [JsonInclude, JsonPropertyName("size")] - public long Size { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RoleMapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RoleMapping.g.cs deleted file mode 100644 index 30715f8461e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RoleMapping.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class RoleMapping -{ - [JsonInclude, JsonPropertyName("enabled")] - public int Enabled { get; init; } - [JsonInclude, JsonPropertyName("size")] - public int Size { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs deleted file mode 100644 index 29d1c98ebe2..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldTypes.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class RuntimeFieldTypes -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("field_types")] - public IReadOnlyCollection FieldTypes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldsType.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldsType.g.cs deleted file mode 100644 index 979efc96503..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/RuntimeFieldsType.g.cs +++ /dev/null @@ -1,60 +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.Xpack; - -public sealed partial class RuntimeFieldsType -{ - [JsonInclude, JsonPropertyName("chars_max")] - public long CharsMax { get; init; } - [JsonInclude, JsonPropertyName("chars_total")] - public long CharsTotal { get; init; } - [JsonInclude, JsonPropertyName("count")] - public long Count { get; init; } - [JsonInclude, JsonPropertyName("doc_max")] - public long DocMax { get; init; } - [JsonInclude, JsonPropertyName("doc_total")] - public long DocTotal { get; init; } - [JsonInclude, JsonPropertyName("index_count")] - public long IndexCount { get; init; } - [JsonInclude, JsonPropertyName("lang")] - public IReadOnlyCollection Lang { get; init; } - [JsonInclude, JsonPropertyName("lines_max")] - public long LinesMax { get; init; } - [JsonInclude, JsonPropertyName("lines_total")] - public long LinesTotal { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - [JsonInclude, JsonPropertyName("scriptless_count")] - public long ScriptlessCount { get; init; } - [JsonInclude, JsonPropertyName("shadowed_count")] - public long ShadowedCount { get; init; } - [JsonInclude, JsonPropertyName("source_max")] - public long SourceMax { get; init; } - [JsonInclude, JsonPropertyName("source_total")] - public long SourceTotal { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SearchableSnapshots.g.cs deleted file mode 100644 index 2ce854bdd8a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SearchableSnapshots.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class SearchableSnapshots -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("full_copy_indices_count")] - public int? FullCopyIndicesCount { get; init; } - [JsonInclude, JsonPropertyName("indices_count")] - public int IndicesCount { get; init; } - [JsonInclude, JsonPropertyName("shared_cache_indices_count")] - public int? SharedCacheIndicesCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Security.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Security.g.cs deleted file mode 100644 index f987fa4f3cd..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Security.g.cs +++ /dev/null @@ -1,60 +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.Xpack; - -public sealed partial class Security -{ - [JsonInclude, JsonPropertyName("anonymous")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle Anonymous { get; init; } - [JsonInclude, JsonPropertyName("api_key_service")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle ApiKeyService { get; init; } - [JsonInclude, JsonPropertyName("audit")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Audit Audit { get; init; } - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("fips_140")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle Fips140 { get; init; } - [JsonInclude, JsonPropertyName("ipfilter")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.IpFilter Ipfilter { get; init; } - [JsonInclude, JsonPropertyName("operator_privileges")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Base OperatorPrivileges { get; init; } - [JsonInclude, JsonPropertyName("realms")] - public IReadOnlyDictionary Realms { get; init; } - [JsonInclude, JsonPropertyName("role_mapping")] - public IReadOnlyDictionary RoleMapping { get; init; } - [JsonInclude, JsonPropertyName("roles")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.SecurityRoles Roles { get; init; } - [JsonInclude, JsonPropertyName("ssl")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Ssl Ssl { get; init; } - [JsonInclude, JsonPropertyName("system_key")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle? SystemKey { get; init; } - [JsonInclude, JsonPropertyName("token_service")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle TokenService { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRoles.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRoles.g.cs deleted file mode 100644 index 9f74bbedff7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRoles.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class SecurityRoles -{ - [JsonInclude, JsonPropertyName("dls")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.SecurityRolesDls Dls { get; init; } - [JsonInclude, JsonPropertyName("file")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.SecurityRolesFile File { get; init; } - [JsonInclude, JsonPropertyName("native")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.SecurityRolesNative Native { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDls.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDls.g.cs deleted file mode 100644 index e6de2cb08d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDls.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class SecurityRolesDls -{ - [JsonInclude, JsonPropertyName("bit_set_cache")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.SecurityRolesDlsBitSetCache BitSetCache { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs deleted file mode 100644 index 92e8dbdd33e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesDlsBitSetCache.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class SecurityRolesDlsBitSetCache -{ - [JsonInclude, JsonPropertyName("count")] - public int Count { get; init; } - [JsonInclude, JsonPropertyName("memory")] - public Elastic.Clients.Elasticsearch.Serverless.ByteSize? Memory { get; init; } - [JsonInclude, JsonPropertyName("memory_in_bytes")] - public long MemoryInBytes { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesFile.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesFile.g.cs deleted file mode 100644 index 626eb3dc92d..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesFile.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class SecurityRolesFile -{ - [JsonInclude, JsonPropertyName("dls")] - public bool Dls { get; init; } - [JsonInclude, JsonPropertyName("fls")] - public bool Fls { get; init; } - [JsonInclude, JsonPropertyName("size")] - public long Size { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesNative.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesNative.g.cs deleted file mode 100644 index 5b94639eb10..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/SecurityRolesNative.g.cs +++ /dev/null @@ -1,38 +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.Xpack; - -public sealed partial class SecurityRolesNative -{ - [JsonInclude, JsonPropertyName("dls")] - public bool Dls { get; init; } - [JsonInclude, JsonPropertyName("fls")] - public bool Fls { get; init; } - [JsonInclude, JsonPropertyName("size")] - public long Size { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Slm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Slm.g.cs deleted file mode 100644 index e27ee18bb9f..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Slm.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class Slm -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("policy_count")] - public int? PolicyCount { get; init; } - [JsonInclude, JsonPropertyName("policy_stats")] - public Elastic.Clients.Elasticsearch.Serverless.SnapshotLifecycleManagement.Statistics? PolicyStats { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Sql.g.cs deleted file mode 100644 index 8811ad78e0a..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Sql.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class Sql -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("features")] - public IReadOnlyDictionary Features { get; init; } - [JsonInclude, JsonPropertyName("queries")] - public IReadOnlyDictionary Queries { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ssl.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ssl.g.cs deleted file mode 100644 index 2fe1cb85582..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Ssl.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class Ssl -{ - [JsonInclude, JsonPropertyName("http")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle Http { get; init; } - [JsonInclude, JsonPropertyName("transport")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.FeatureToggle Transport { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Vector.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Vector.g.cs deleted file mode 100644 index a69bbe0ee39..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Vector.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class Vector -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("dense_vector_dims_avg_count")] - public int DenseVectorDimsAvgCount { get; init; } - [JsonInclude, JsonPropertyName("dense_vector_fields_count")] - public int DenseVectorFieldsCount { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("sparse_vector_fields_count")] - public int? SparseVectorFieldsCount { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Watcher.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Watcher.g.cs deleted file mode 100644 index dc49f61282e..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/Watcher.g.cs +++ /dev/null @@ -1,42 +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.Xpack; - -public sealed partial class Watcher -{ - [JsonInclude, JsonPropertyName("available")] - public bool Available { get; init; } - [JsonInclude, JsonPropertyName("count")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Counter Count { get; init; } - [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } - [JsonInclude, JsonPropertyName("execution")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.WatcherActions Execution { get; init; } - [JsonInclude, JsonPropertyName("watch")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.WatcherWatch Watch { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActionTotals.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActionTotals.g.cs deleted file mode 100644 index ac37c4573d7..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActionTotals.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class WatcherActionTotals -{ - [JsonInclude, JsonPropertyName("total")] - public Elastic.Clients.Elasticsearch.Serverless.Duration Total { get; init; } - [JsonInclude, JsonPropertyName("total_time_in_ms")] - public long TotalTimeInMs { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActions.g.cs deleted file mode 100644 index 7b71ef3d484..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherActions.g.cs +++ /dev/null @@ -1,34 +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.Xpack; - -public sealed partial class WatcherActions -{ - [JsonInclude, JsonPropertyName("actions")] - public IReadOnlyDictionary Actions { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatch.g.cs deleted file mode 100644 index 490c7e5eb21..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatch.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class WatcherWatch -{ - [JsonInclude, JsonPropertyName("action")] - public IReadOnlyDictionary? Action { get; init; } - [JsonInclude, JsonPropertyName("condition")] - public IReadOnlyDictionary? Condition { get; init; } - [JsonInclude, JsonPropertyName("input")] - public IReadOnlyDictionary Input { get; init; } - [JsonInclude, JsonPropertyName("trigger")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.WatcherWatchTrigger Trigger { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs deleted file mode 100644 index c05af2cc6b1..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTrigger.g.cs +++ /dev/null @@ -1,36 +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.Xpack; - -public sealed partial class WatcherWatchTrigger -{ - [JsonInclude, JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Counter All { get; init; } - [JsonInclude, JsonPropertyName("schedule")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.WatcherWatchTriggerSchedule? Schedule { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs deleted file mode 100644 index 42ce175d791..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/WatcherWatchTriggerSchedule.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class WatcherWatchTriggerSchedule -{ - [JsonInclude, JsonPropertyName("active")] - public long Active { get; init; } - [JsonInclude, JsonPropertyName("_all")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Counter All { get; init; } - [JsonInclude, JsonPropertyName("cron")] - public Elastic.Clients.Elasticsearch.Serverless.Xpack.Counter Cron { get; init; } - [JsonInclude, JsonPropertyName("total")] - public long Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/XpackUsageQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/XpackUsageQuery.g.cs deleted file mode 100644 index 997b65d42db..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Xpack/XpackUsageQuery.g.cs +++ /dev/null @@ -1,40 +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.Xpack; - -public sealed partial class XpackUsageQuery -{ - [JsonInclude, JsonPropertyName("count")] - public int? Count { get; init; } - [JsonInclude, JsonPropertyName("failed")] - public int? Failed { get; init; } - [JsonInclude, JsonPropertyName("paging")] - public int? Paging { get; init; } - [JsonInclude, JsonPropertyName("total")] - public int? Total { get; init; } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index 782d0808216..d21f64b5921 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -9,9 +9,6 @@ true README.md - - $(DefineConstants);ELASTICSEARCH_STACK - true true diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs index f2f73c8857d..0df7e6e5abe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/GetAsyncSearchRequest.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; -#else namespace Elastic.Clients.Elasticsearch.AsyncSearch; -#endif public partial class GetAsyncSearchRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs index a28d9a55e58..a1ced0490e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/AsyncSearch/SubmitAsyncSearchRequest.cs @@ -3,17 +3,9 @@ // See the LICENSE file in the project root for more information. using System; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else using Elastic.Clients.Elasticsearch.QueryDsl; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; -#else namespace Elastic.Clients.Elasticsearch.AsyncSearch; -#endif public partial class SubmitAsyncSearchRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs index 853b13a8be5..f23c1024675 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkRequest.cs @@ -8,27 +8,11 @@ using System.IO; using System.Collections.Generic; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else using Elastic.Clients.Elasticsearch.Core.Bulk; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Requests; -#else using Elastic.Clients.Elasticsearch.Requests; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class BulkRequest : IStreamSerializable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkResponse.cs index d5fd6d808f3..10780cbce97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/BulkResponse.cs @@ -6,17 +6,9 @@ using System.Text.Json.Serialization; using System.Text; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else using Elastic.Clients.Elasticsearch.Core.Bulk; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class BulkResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/CountRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/CountRequest.cs index 208739a25d6..63dcddab77c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/CountRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/CountRequest.cs @@ -3,17 +3,9 @@ // See the LICENSE file in the project root for more information. using System; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else using Elastic.Clients.Elasticsearch.QueryDsl; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed partial class CountRequest : CountRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/CreateRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/CreateRequest.cs index 0adcab0935c..c5675311479 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/CreateRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/CreateRequest.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed partial class CreateRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/DeleteRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/DeleteRequest.cs index f1b209d2706..c2a6e9ceb67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/DeleteRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/DeleteRequest.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed partial class DeleteRequest : DeleteRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs index 981a599fcc3..0bd7841bfd9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Esql/EsqlQueryRequest.cs @@ -9,11 +9,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Esql; -#else namespace Elastic.Clients.Elasticsearch.Esql; -#endif internal sealed class EsqlResponseBuilder : TypedResponseBuilder { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsRequest.cs index ff6b53bf5eb..abb03eb618c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsRequest.cs @@ -7,11 +7,7 @@ using System.Linq; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class ExistsRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsResponse.cs index 2f92cd51777..069cdeb14d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsResponse.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed partial class ExistsResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsSourceResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsSourceResponse.cs index 6e537053a64..efc2f4269a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsSourceResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ExistsSourceResponse.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed partial class ExistsSourceResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceRequestDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceRequestDescriptor.cs index d862790031d..9c284eac810 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceRequestDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceRequestDescriptor.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class GetSourceRequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceResponse.cs index 3cc2eb06a73..96cfa23efe7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/GetSourceResponse.cs @@ -4,17 +4,9 @@ using System.Text.Json; using System.IO; -#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 partial class GetSourceResponse : ISelfDeserializable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs index c5c1aa04369..221d54ba104 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsAliasResponse.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public sealed partial class ExistsAliasResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs index dc054dcc4c8..86a9d0aae2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsIndexTemplateResponse.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public sealed partial class ExistsIndexTemplateResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsResponse.cs index 26cd81fcce8..93544c6ee00 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsResponse.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public sealed partial class ExistsResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs index a3362dc7e18..224c3fd4211 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/ExistsTemplateResponse.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public sealed partial class ExistsTemplateResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs index 0bbc5b5b3f3..d0a3fdcd288 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public partial class GetAliasResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetIndexResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetIndexResponse.cs index ebb9409beae..9b33d1544fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetIndexResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetIndexResponse.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public partial class GetIndexResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetMappingResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetMappingResponse.cs index 383346b5da4..bfe6ac31e30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetMappingResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetMappingResponse.cs @@ -4,17 +4,9 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Mapping; -#else using Elastic.Clients.Elasticsearch.Mapping; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public partial class GetMappingResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexRequest.cs index 731ae90bfcb..b1f8495634c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexRequest.cs @@ -3,18 +3,10 @@ // See the LICENSE file in the project root for more information. using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Requests; -#else using Elastic.Clients.Elasticsearch.Requests; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class IndexRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Ingest/GetPipelineResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Ingest/GetPipelineResponse.cs index 4f9bf0a7259..22c85ee1f72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Ingest/GetPipelineResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Ingest/GetPipelineResponse.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Ingest; -#else namespace Elastic.Clients.Elasticsearch.Ingest; -#endif public partial class GetPipelineResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/MultiSearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/MultiSearchRequest.cs index 067e83ec882..c7fc45a28af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/MultiSearchRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/MultiSearchRequest.cs @@ -5,11 +5,7 @@ using System.Linq; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class MultiSearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ResponseItem.cs index 893c62831a7..f43dd53ef29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ResponseItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ResponseItem.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public abstract partial class ResponseItem { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ScrollResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ScrollResponse.cs index 8e9988f7f63..494b3b15084 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/ScrollResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/ScrollResponse.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class ScrollResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchRequest.cs index 844ad157bc2..f22e3e323c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchRequest.cs @@ -4,17 +4,9 @@ using System; using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Requests; -#else using Elastic.Clients.Elasticsearch.Requests; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class SearchRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchResponse.cs index 27b97c50e3b..22d4cd39207 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/SearchResponse.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class SearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/GetAsyncResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/GetAsyncResponse.cs index f6437b688f3..0ef4200ceb6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/GetAsyncResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/GetAsyncResponse.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; -#else namespace Elastic.Clients.Elasticsearch.Sql; -#endif public partial class GetAsyncResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/QueryResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/QueryResponse.cs index e441429bfb9..b8b0f77dbc3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/QueryResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Api/Sql/QueryResponse.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; -#else namespace Elastic.Clients.Elasticsearch.Sql; -#endif public partial class QueryResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-Manual.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-Manual.cs index 2c2a1186461..30b2a62e3f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-Manual.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient-Manual.cs @@ -6,11 +6,7 @@ using System.Threading.Tasks; using System.Threading; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class ElasticsearchClient { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs index faee0c33fbc..b8af23beebe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.cs @@ -13,17 +13,9 @@ using Elastic.Transport; using Elastic.Transport.Diagnostics; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Requests; -#else using Elastic.Clients.Elasticsearch.Requests; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// A strongly-typed client for communicating with Elasticsearch server endpoints. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchResponseBaseExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchResponseBaseExtensions.cs index bde69cf5f81..aca4334e42a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchResponseBaseExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchResponseBaseExtensions.cs @@ -4,11 +4,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public static class ElasticsearchResponseExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/IndexManyExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/IndexManyExtensions.cs index d1a41d9780e..9002e2f13dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/IndexManyExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/IndexManyExtensions.cs @@ -7,17 +7,9 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else using Elastic.Clients.Elasticsearch.Core.Bulk; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Provides GetMany extensions that make it easier to get many documents given a list of ids diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/NamespacedClientProxy.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/NamespacedClientProxy.cs index 08d43d8d6a7..65b32e91a8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/NamespacedClientProxy.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/NamespacedClientProxy.cs @@ -5,19 +5,11 @@ using System; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Requests; -#else using Elastic.Clients.Elasticsearch.Requests; -#endif using Elastic.Transport; using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public abstract class NamespacedClientProxy { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ClrTypeDefaults.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ClrTypeDefaults.cs index c5f6b858a00..18759b25600 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ClrTypeDefaults.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ClrTypeDefaults.cs @@ -4,17 +4,9 @@ using System; using System.Linq.Expressions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public class ClrTypeMapping { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs index b8381c7df40..164388c4ad0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/ElasticsearchClientSettings.cs @@ -17,22 +17,14 @@ using Elastic.Clients.Elasticsearch.Fluent; #endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; using Elastic.Transport.Products; using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// public class ElasticsearchClientSettings : ElasticsearchClientSettingsBase diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/IElasticsearchClientSettings.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/IElasticsearchClientSettings.cs index 070b7ebb27a..5f480534fe5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/IElasticsearchClientSettings.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/IElasticsearchClientSettings.cs @@ -5,18 +5,10 @@ using System; using System.Collections.Generic; using System.Reflection; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Provides the connection settings for Elastic.Clients.Elasticsearch's high level diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/MemberInfoResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/MemberInfoResolver.cs index 04dcf8806d0..e1401c4f9e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/MemberInfoResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Configuration/MemberInfoResolver.cs @@ -6,11 +6,7 @@ using System.Linq.Expressions; using System.Reflection; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Resolves member infos in an expression, instance may NOT be shared. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMath.cs index 05c5217b0ad..b83b689a4f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMath.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMath.cs @@ -10,11 +10,7 @@ using System.Text.Json.Serialization; using System.Text.RegularExpressions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(DateMathConverter))] public abstract class DateMath diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathExpression.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathExpression.cs index 8c62e942c12..bac070f3404 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathExpression.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathExpression.cs @@ -7,11 +7,7 @@ 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(DateMathExpressionConverter))] public class DateMathExpression : DateMath diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathOperation.cs index c98daed1077..97b6443ae32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathOperation.cs @@ -6,17 +6,9 @@ using System.Runtime.Serialization; 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 [StringEnum] [JsonConverter(typeof(DateMathOperationConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTime.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTime.cs index b04d6a4884c..ba472b8fbe3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTime.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTime.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; using System.Text.RegularExpressions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// A time representation for use within expressions. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs index 8efa78ff0e8..424df43497b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/DateMath/DateMathTimeUnit.cs @@ -6,17 +6,9 @@ using System.Runtime.Serialization; 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 [StringEnum] [JsonConverter(typeof(DateMathTimeUnitConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/Duration.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/Duration.cs index aff9c726056..c419e74112d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/Duration.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/Duration.cs @@ -9,11 +9,7 @@ using System.Text.RegularExpressions; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Represents a duration value. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/TimeUnit.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/TimeUnit.cs index 830a0c2a6a2..bb14adbe488 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/TimeUnit.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/DateTime/TimeUnit.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public static class TimeUnitExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnly.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnly.cs index 0ff1f98b165..4c315cc8ec8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnly.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnly.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class EmptyReadOnly { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnlyExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnlyExtensions.cs index df41d8091f5..516e97be6c3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnlyExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EmptyReadOnlyExtensions.cs @@ -6,11 +6,7 @@ using System.Collections.ObjectModel; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class EmptyReadOnlyExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Exceptions/ThrowHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Exceptions/ThrowHelper.cs index 881592d3e73..0f3376692d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Exceptions/ThrowHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Exceptions/ThrowHelper.cs @@ -7,11 +7,7 @@ using System.Runtime.CompilerServices; using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class ThrowHelper { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExceptionExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExceptionExtensions.cs index 687beed1811..9bea6600ff0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExceptionExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExceptionExtensions.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class ExceptionExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExpressionExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExpressionExtensions.cs index 5e4c2c494e5..c95b207f3c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExpressionExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/ExpressionExtensions.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Linq.Expressions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public static class ExpressionExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/Extensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/Extensions.cs index 81210225106..c990a339bb4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/Extensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/Extensions.cs @@ -14,11 +14,7 @@ using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class Extensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/StringExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/StringExtensions.cs index b2493d99503..2e6e9599315 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/StringExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/StringExtensions.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class StringExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/SuffixExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/SuffixExtensions.cs index 7d4e661ce1d..2fe7f90222a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/SuffixExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/SuffixExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public static class SuffixExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TaskExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TaskExtensions.cs index dcff3fbf155..0b740fd82ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TaskExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TaskExtensions.cs @@ -10,11 +10,7 @@ using System.Diagnostics; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class TaskExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TypeExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TypeExtensions.cs index 432cfce1908..331b4ed39c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TypeExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Extensions/TypeExtensions.cs @@ -10,11 +10,7 @@ using System.Reflection; using System.Text; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class TypeExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs index a2b89956e86..9caff82f822 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValue.cs @@ -11,17 +11,9 @@ using Elastic.Transport.Extensions; -#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 /// /// Represents a value for a field which depends on the field mapping and is only known at runtime, diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValues.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValues.cs index affeca53609..cf2ef28ec16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValues.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fields/FieldValues.cs @@ -8,17 +8,9 @@ using System.Linq.Expressions; 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 [JsonConverter(typeof(FieldValuesConverter))] public sealed class FieldValues : IsADictionary diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Descriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Descriptor.cs index d6fb61d5560..becbd038927 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Descriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Descriptor.cs @@ -8,17 +8,9 @@ using System.Runtime.Serialization; 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.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif public abstract class Descriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Fluent.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Fluent.cs index 4383a8c9704..c3d9572a920 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Fluent.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Fluent.cs @@ -5,11 +5,7 @@ using System; using System.Runtime.CompilerServices; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif internal static class FluentAssign { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/FluentDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/FluentDictionary.cs index 9ab6b0e2982..ee895d79cb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/FluentDictionary.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/FluentDictionary.cs @@ -5,11 +5,7 @@ using System; using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif /// /// Used in the "fluent" syntax to support chained configuration of dictionary entries. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/IBuildableDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/IBuildableDescriptor.cs index 6d4c47cc9ed..697f243ae5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/IBuildableDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/IBuildableDescriptor.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif /// /// Used to mark descriptors which can be used to build the object they describe. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IPromise.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IPromise.cs index b4e4438a344..2f467d0347a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IPromise.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IPromise.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif internal interface IPromise where TValue : class { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs index 09d8a241725..f6b5ac2b798 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/IsADictionaryDescriptor.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif public abstract class IsADictionaryDescriptor : PromiseDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/PromiseDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/PromiseDescriptor.cs index c2f4ce2fa47..7eefb2578f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/PromiseDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Fluent/Promise/PromiseDescriptor.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else namespace Elastic.Clients.Elasticsearch.Fluent; -#endif public abstract class PromiseDescriptor : Descriptor, IPromise where TDescriptor : PromiseDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IComplexUnion.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IComplexUnion.cs index 678b6ed05d9..5f8e77b8826 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IComplexUnion.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IComplexUnion.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core; -#else namespace Elastic.Clients.Elasticsearch.Core; -#endif internal interface IComplexUnion where TEnum : Enum { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IEnumStruct.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IEnumStruct.cs index 06ec5d57b8a..0fc170344fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IEnumStruct.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IEnumStruct.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core; -#else namespace Elastic.Clients.Elasticsearch.Core; -#endif internal interface IEnumStruct where TSelf : struct, IEnumStruct { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DefaultPropertyMappingProvider.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DefaultPropertyMappingProvider.cs index 48401f5d47f..434f54e30ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DefaultPropertyMappingProvider.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DefaultPropertyMappingProvider.cs @@ -6,11 +6,7 @@ using System.Reflection; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// public class DefaultPropertyMappingProvider : IPropertyMappingProvider diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DocumentPath/DocumentPath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DocumentPath/DocumentPath.cs index ce4f7b3dd77..30daca886a1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DocumentPath/DocumentPath.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/DocumentPath/DocumentPath.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif // MARKED INTERNAL AS WE MAY NO LONGER USE THIS TYPE // TODO - REVIEW THIS @@ -22,11 +18,7 @@ internal interface IDocumentPath // TODO - REVIEW THIS internal sealed class DocumentPath : IEquatable>, IDocumentPath { -#if ELASTICSEARCH_SERVERLESS - public DocumentPath(T document) : this(Elasticsearch.Serverless.Id.From(document)) => Document = document; -#else public DocumentPath(T document) : this(Elasticsearch.Id.From(document)) => Document = document; -#endif public DocumentPath(Id id) { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldConverter.cs index 3269e0143e3..43cfededc56 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldConverter.cs @@ -5,18 +5,10 @@ using System; 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 using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal sealed class FieldConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExpressionVisitor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExpressionVisitor.cs index f9b202fe880..237ec3a2a80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExpressionVisitor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExpressionVisitor.cs @@ -11,11 +11,7 @@ using System.Text; using System.Collections; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal class FieldExpressionVisitor : ExpressionVisitor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExtensions.cs index 68f7b260972..8752441d6ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif //internal static class FieldExtensions //{ // internal static bool IsConditionless(this Field field) => diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldResolver.cs index c0dc6f65aa8..82b17ff3f3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/FieldResolver.cs @@ -8,11 +8,7 @@ using System.Globalization; using System.Linq.Expressions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal class FieldResolver { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/ToStringExpressionVisitor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/ToStringExpressionVisitor.cs index cc4f09d81a7..a84cc653f6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/ToStringExpressionVisitor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Field/ToStringExpressionVisitor.cs @@ -11,11 +11,7 @@ using System.Runtime.CompilerServices; using System.Text; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal class ToStringExpressionVisitor : ExpressionVisitor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/Fields.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/Fields.cs index cf610735c72..fc2aabc9eba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/Fields.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/Fields.cs @@ -12,11 +12,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay($"{{{nameof(DebuggerDisplay)},nq}}")] public sealed class Fields : diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsConverter.cs index 2e7c514c3b3..f0a6b611f0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal sealed class FieldsConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsDescriptor.cs index c9c353833d1..a7eb3d5b8ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Fields/FieldsDescriptor.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif //public class FieldsDescriptor : DescriptorPromiseBase, Fields> // where T : class //{ diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IPropertyMappingProvider.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IPropertyMappingProvider.cs index 2f75e613fcd..27d4b0e6bb1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IPropertyMappingProvider.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IPropertyMappingProvider.cs @@ -4,11 +4,7 @@ using System.Reflection; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Provides mappings for CLR types. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Id.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Id.cs index aabd32c7c23..1adab333a9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Id.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Id.cs @@ -9,11 +9,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] [JsonConverter(typeof(IdConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdConverter.cs index 03294d94ff9..4e4781092d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdConverter.cs @@ -5,18 +5,10 @@ using System; 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 using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal sealed class IdConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdExtensions.cs index ea4f36499de..b246a83173f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif //internal static class IdExtensions //{ // internal static bool IsConditionless(this Id id) => diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs index 70b07561a6f..b7f5bd46b30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdResolver.cs @@ -7,11 +7,7 @@ using System.Globalization; using System.Reflection; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public class IdResolver { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Ids.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Ids.cs index 9385d4a80a7..7ca13c2d2b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Ids.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/Ids.cs @@ -9,11 +9,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] [JsonConverter(typeof(IdsConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdsConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdsConverter.cs index 5e9da65b3fc..0fcada2b2fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdsConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Id/IdsConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal sealed class IdsConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs index ddbf28ac5d6..9109432ffa2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexName.cs @@ -7,11 +7,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Represents the name of an index, which may be inferred from a . diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameConverter.cs index d42f354bc9e..675f04d48a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameConverter.cs @@ -5,18 +5,10 @@ using System; 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 using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Converts an to and from its JSON representation. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameExtensions.cs index cfb09b3828d..44075fc9d6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif //public static class IndexNameExtensions //{ // public static string? Resolve(this IndexName? marker, IElasticsearchClientSettings elasticsearchClientSettings) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameResolver.cs index 65aa393a66e..82526235753 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/IndexName/IndexNameResolver.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal class IndexNameResolver { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Indices/Indices.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Indices/Indices.cs index 2a23cba5062..60937ddbcf5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Indices/Indices.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Indices/Indices.cs @@ -9,18 +9,10 @@ using System.Linq; 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 using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] [JsonConverter(typeof(IndicesJsonConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Inferrer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Inferrer.cs index d98c695df67..4d5c459660f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Inferrer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Inferrer.cs @@ -5,11 +5,7 @@ using System; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class Inferrer { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinField.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinField.cs index bd18619542b..d3b791c999a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinField.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinField.cs @@ -5,11 +5,7 @@ using System; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(JoinFieldConverter))] public class JoinField diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldConverter.cs index f7ac5d2221c..7aff28193fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldConverter.cs @@ -6,18 +6,10 @@ using System.Text.Json.Serialization; using System.Text.Json; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using System.Runtime; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal sealed class JoinFieldConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/Routing.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/Routing.cs index 518c1420c64..9e5108a7101 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/Routing.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/Routing.cs @@ -10,11 +10,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(RoutingConverter))] [DebuggerDisplay("{" + nameof(DebugDisplay) + ",nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs index 7a475f18f23..1691211f273 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/JoinFieldRouting/RoutingConverter.cs @@ -5,17 +5,9 @@ using System; 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 internal sealed class RoutingConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Metric/Metrics.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Metric/Metrics.cs index 279a4221c1d..68cc21015f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Metric/Metrics.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Metric/Metrics.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Represents a collection of unique metric names to be included in URL paths to limit the request. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyMapping.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyMapping.cs index 5e0051b5516..3292fe6cdb6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyMapping.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyMapping.cs @@ -3,17 +3,9 @@ // See the LICENSE file in the project root for more information. using System; -#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 /// /// Represents meta data about a property which may be used by inferrence and during serialization. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyName.cs index cdf3a03d1e7..8da6edd6523 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyName.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyName.cs @@ -7,18 +7,10 @@ using System.Linq.Expressions; using System.Reflection; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{" + nameof(DebugDisplay) + ",nq}")] [JsonConverter(typeof(PropertyNameConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs index ba572b2a680..e24e1559818 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/PropertyName/PropertyNameExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif //internal static class PropertyNameExtensions //{ // internal static bool IsConditionless(this PropertyName property) => diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationName.cs index ce4dc4ad35d..7808bed02b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationName.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationName.cs @@ -6,17 +6,9 @@ using Elastic.Transport; using System.Text.Json.Serialization; using System.Text.Json; -#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 [JsonConverter(typeof(RelationNameConverter))] public sealed class RelationName : IEquatable, IUrlParameter diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationNameResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationNameResolver.cs index 1da804f368f..d14ed4c4344 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationNameResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RelationName/RelationNameResolver.cs @@ -5,11 +5,7 @@ using System; using System.Collections.Concurrent; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal sealed class RelationNameResolver { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RoutingResolver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RoutingResolver.cs index 838523def95..dac444251ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RoutingResolver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/RoutingResolver.cs @@ -7,11 +7,7 @@ using System.Reflection; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public class RoutingResolver { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Timestamp/Timestamp.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Timestamp/Timestamp.cs index 289e223bff6..921f39a66d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Timestamp/Timestamp.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Infer/Timestamp/Timestamp.cs @@ -6,11 +6,7 @@ using System.Globalization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class Timestamp : IUrlParameter, IEquatable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsADictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsADictionary.cs index 3347c55f910..3afb7a0a598 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsADictionary.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsADictionary.cs @@ -8,11 +8,7 @@ using System.ComponentModel; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public interface IIsADictionary { } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsAReadOnlyDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsAReadOnlyDictionary.cs index 8bdc1d9f65b..3921e5ed085 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsAReadOnlyDictionary.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/IsAReadOnlyDictionary.cs @@ -5,11 +5,7 @@ using System.Collections; using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public interface IIsAReadOnlyDictionary { } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/LazyJson.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/LazyJson.cs index 5e57d9ae070..6a231c9a501 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/LazyJson.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/LazyJson.cs @@ -5,17 +5,9 @@ using System; 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 /// /// Lazily deserializable JSON. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/MinimumShouldMatch.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/MinimumShouldMatch.cs index ae1fb1f6ee6..b8a954eff2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/MinimumShouldMatch.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/MinimumShouldMatch.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class MinimumShouldMatch : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/OpenTelemetry/SemanticConventions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/OpenTelemetry/SemanticConventions.cs index 2f7cce8386c..afc1d7437cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/OpenTelemetry/SemanticConventions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/OpenTelemetry/SemanticConventions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.OpenTelemetry; -#else namespace Elastic.Clients.Elasticsearch.OpenTelemetry; -#endif internal static class SemanticConventions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/RawJsonString.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/RawJsonString.cs index bf910b35e80..981a9642556 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/RawJsonString.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/RawJsonString.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif #if NET6_0_OR_GREATER [JsonConverter(typeof(RawJsonConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyFieldDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyFieldDictionary.cs index c75f89e23f0..018f0e82c46 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyFieldDictionary.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyFieldDictionary.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// A specialised readonly dictionary for data, keyed by . diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyIndexNameDictionary.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyIndexNameDictionary.cs index 74a8155d6ab..e0e254f0906 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyIndexNameDictionary.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/ReadOnlyIndexNameDictionary.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// A specialised readonly dictionary for data, keyed by . diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs index 8fbd5de5eab..de845025315 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/ApiUrls.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; -#else namespace Elastic.Clients.Elasticsearch.Requests; -#endif /// /// Each Request type holds a static instance of this class which creates cached builders for each diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs index 9e36e7f3894..0feaf827f3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/PlainRequest.cs @@ -6,11 +6,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; -#else namespace Elastic.Clients.Elasticsearch.Requests; -#endif public abstract class PlainRequest : Request where TParameters : RequestParameters, new() diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs index 9d3a2470874..5d33f00b393 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/Request.cs @@ -7,11 +7,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; -#else namespace Elastic.Clients.Elasticsearch.Requests; -#endif /// /// Base type for requests sent by the client. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs index 157552162a8..87d747be588 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RequestDescriptor.cs @@ -6,18 +6,10 @@ using System.ComponentModel; using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; -#else namespace Elastic.Clients.Elasticsearch.Requests; -#endif /// /// Base class for all request descriptor types. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RouteValues.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RouteValues.cs index c2b520c8d28..5265cb15d1c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RouteValues.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/RouteValues.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; -#else namespace Elastic.Clients.Elasticsearch.Requests; -#endif internal sealed class ResolvedRouteValues : Dictionary { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/UrlLookup.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/UrlLookup.cs index a250290d1e8..55e2f8f4624 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/UrlLookup.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Request/UrlLookup.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Text; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Requests; -#else namespace Elastic.Clients.Elasticsearch.Requests; -#endif internal class UrlLookup { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/DictionaryResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/DictionaryResponse.cs index 63e3e4630db..e9a8537cfb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/DictionaryResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/DictionaryResponse.cs @@ -7,11 +7,7 @@ using Elastic.Transport.Products.Elasticsearch; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public abstract class DictionaryResponse : ElasticsearchResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/ResolvableDictionaryProxy.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/ResolvableDictionaryProxy.cs index 0a90cbba2ed..1edc6924b3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/ResolvableDictionaryProxy.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Response/ResolvableDictionaryProxy.cs @@ -6,11 +6,7 @@ using System.Collections; using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// A proxy dictionary that is settings-aware to correctly handle IUrlParameter-based keys such as IndexName. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Static/Infer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Static/Infer.cs index 400b7238b02..15b320e96e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Static/Infer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Static/Infer.cs @@ -8,11 +8,7 @@ using System.Linq.Expressions; using System.Reflection; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public static class Infer { @@ -44,11 +40,7 @@ public static class Infer public static Names Names(IEnumerable names) => string.Join(",", names); -#if ELASTICSEARCH_SERVERLESS - public static Id Id(T document) where T : class => Elasticsearch.Serverless.Id.From(document); -#else public static Id Id(T document) where T : class => Elasticsearch.Id.From(document); -#endif public static Fields Fields(params Expression>[] fields) where T : class => new(fields.Select(f => new Field(f))); diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Union/Union.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Union/Union.cs index 7245632274b..95fcf32d3a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/Union/Union.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/Union/Union.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Represents the union of two types, and . Used diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs index 217d2b8bb50..45de4980f85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamName.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(DataStreamNameConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs index 5c0bbfaf5b6..3cf8c5e97d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/DataStreamNames/DataStreamNames.cs @@ -11,11 +11,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(DataStreamNamesConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs index 565bc674ddb..cf11c50cb3b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexAlias/IndexAlias.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(IndexAliasConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs index a7341ae6e3f..5a29dbec53c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/IndexUuid/IndexUuid.cs @@ -5,11 +5,7 @@ using System; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class IndexUuid : IUrlParameter, IEquatable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Name.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Name.cs index cd2b68acb0a..906d3e34c38 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Name.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Name.cs @@ -5,18 +5,10 @@ using System; using System.Diagnostics; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] [JsonConverter(typeof(StringAliasConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs index 19f7e64c788..0cd673b3a4c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs @@ -8,11 +8,7 @@ using System.Linq; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] public sealed class Names : IEquatable, IUrlParameter diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/NodeIds/NodeIds.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/NodeIds/NodeIds.cs index 38f045d330e..5537e7ff7a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/NodeIds/NodeIds.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/NodeIds/NodeIds.cs @@ -8,11 +8,7 @@ using System.Linq; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] public sealed class NodeIds : IEquatable, IUrlParameter diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollId.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollId.cs index f8eee29cc64..a7f26e6469e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollId.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollId.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(ScrollIdConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs index d261b36c264..2a9028fce7a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/ScrollIds/ScrollIds.cs @@ -11,11 +11,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(ScrollIdsConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/TaskId/TaskId.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/TaskId/TaskId.cs index e5a3eaad137..107e8da4cdb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/TaskId/TaskId.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/TaskId/TaskId.cs @@ -7,18 +7,10 @@ using System.Globalization; 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 using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(TaskIdConverter))] [DebuggerDisplay("{DebugDisplay,nq}")] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Username/Username.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Username/Username.cs index 93d41f39dd3..65f8b734471 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Username/Username.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Username/Username.cs @@ -5,18 +5,10 @@ using System; using System.Diagnostics; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [DebuggerDisplay("{DebugDisplay,nq}")] [JsonConverter(typeof(StringAliasConverter))] diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NativeMethods.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NativeMethods.cs index 3c9def509f3..665237fc284 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NativeMethods.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/NativeMethods.cs @@ -9,11 +9,7 @@ using System.Runtime.InteropServices; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class NativeMethods { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/RuntimeInformation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/RuntimeInformation.cs index e7893241f88..488262a3f45 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/RuntimeInformation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/RuntimeInformation.cs @@ -7,11 +7,7 @@ using System.Linq; using System.Reflection; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless -#else namespace Elastic.Clients.Elasticsearch -#endif { internal static class RuntimeInformation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/TypeExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/TypeExtensions.cs index eeba6465023..61cdbf2d2bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/TypeExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/CrossPlatform/TypeExtensions.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class DotNetCoreTypeExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Exceptions/UnsupportedProductException.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Exceptions/UnsupportedProductException.cs index df4fd46e68e..720106de74b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Exceptions/UnsupportedProductException.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Exceptions/UnsupportedProductException.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// Thrown when the client pre-flight check determines that the server is not a supported Elasticsearch product. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObserver.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObserver.cs index a5d810090a4..d0e0b327264 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObserver.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllObserver.cs @@ -5,11 +5,7 @@ using System; using System.Threading; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class BulkAllObserver : CoordinatedRequestObserverBase { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllRequest.cs index 391b40c1955..131b127a268 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllRequest.cs @@ -6,22 +6,10 @@ using System.Collections.Generic; using System.Text.Json; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else using Elastic.Clients.Elasticsearch.Core.Bulk; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class BulkAllRequest : IBulkAllRequest, IHelperCallable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllResponse.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllResponse.cs index 567a0d6baba..396c4e8bfc3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/BulkAllResponse.cs @@ -3,17 +3,9 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else using Elastic.Clients.Elasticsearch.Core.Bulk; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class BulkAllResponse { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestDefaults.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestDefaults.cs index c6ad0dec3e1..930ffdddf13 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestDefaults.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestDefaults.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class CoordinatedRequestDefaults { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestObserverBase.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestObserverBase.cs index bf0b4bb9980..5f66f7f0367 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestObserverBase.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/CoordinatedRequestObserverBase.cs @@ -5,11 +5,7 @@ using System; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public abstract class CoordinatedRequestObserverBase : IObserver { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/HelperIdentifiers.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/HelperIdentifiers.cs index e44d73ba972..156bcd50c9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/HelperIdentifiers.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/HelperIdentifiers.cs @@ -3,11 +3,7 @@ // See the LICENSE file in the project root for more information. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class HelperIdentifiers { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IBulkAllRequest.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IBulkAllRequest.cs index 8b0c5133dc1..ee368951c8c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IBulkAllRequest.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IBulkAllRequest.cs @@ -4,17 +4,9 @@ using System; using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else using Elastic.Clients.Elasticsearch.Core.Bulk; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public interface IBulkAllRequest { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IHelperCallable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IHelperCallable.cs index 8ca3e936d73..18f320b85c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IHelperCallable.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/IHelperCallable.cs @@ -4,11 +4,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif /// /// May be applied to helper requests where they may be called by an upstream helper. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/PartitionHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/PartitionHelper.cs index dc28a29f92a..ea89d130820 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/PartitionHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/PartitionHelper.cs @@ -6,11 +6,7 @@ using System.Collections.Generic; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal class PartitionHelper : IEnumerable> { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/ProducerConsumerBackPressure.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/ProducerConsumerBackPressure.cs index 3ace1481f88..d7e8db23c82 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/ProducerConsumerBackPressure.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/ProducerConsumerBackPressure.cs @@ -6,11 +6,7 @@ using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public sealed class ProducerConsumerBackPressure { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataExtensions.cs index 88f4c3d1c57..591981f17a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataExtensions.cs @@ -5,11 +5,7 @@ using System; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class RequestMetaDataExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataFactory.cs index 7208249e327..87a76eb77f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataFactory.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Helpers/RequestMetaDataFactory.cs @@ -4,11 +4,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif internal static class RequestMetaDataFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/CustomizedNamingPolicy.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/CustomizedNamingPolicy.cs index 2a756018f4f..ae9ff4b20e4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/CustomizedNamingPolicy.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/CustomizedNamingPolicy.cs @@ -5,11 +5,7 @@ using System; using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal class CustomizedNamingPolicy : JsonNamingPolicy { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs index 915c0552dcd..c0e8bfef918 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultRequestResponseSerializer.cs @@ -11,11 +11,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// The built-in internal serializer that the uses to serialize built in types. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs index 2b986d4fa07..4402fd7b23a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DefaultSourceSerializer.cs @@ -8,11 +8,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// The built-in internal serializer that the uses to serialize diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DictionaryResponseConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DictionaryResponseConverter.cs index 909b0292068..374b0667765 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DictionaryResponseConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DictionaryResponseConverter.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class DictionaryResponseConverterFactory : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DoubleWithFractionalPortionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DoubleWithFractionalPortionConverter.cs index 6ccba78f21d..911f69f399e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DoubleWithFractionalPortionConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/DoubleWithFractionalPortionConverter.cs @@ -21,11 +21,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class DoubleWithFractionalPortionConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/EnumStructConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/EnumStructConverter.cs index 80de1fa303d..7bfb00d91dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/EnumStructConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/EnumStructConverter.cs @@ -5,17 +5,9 @@ using System; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core; -#else using Elastic.Clients.Elasticsearch.Core; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class EnumStructConverter : JsonConverter where T : struct, IEnumStruct { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/GenericConverterAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/GenericConverterAttribute.cs index 6812414709b..efe2547dd06 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/GenericConverterAttribute.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/GenericConverterAttribute.cs @@ -6,11 +6,7 @@ using System.Reflection; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// A custom used to dynamically create diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ISourceMarker.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ISourceMarker.cs index a8cf2520d1f..70308dd7f03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ISourceMarker.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ISourceMarker.cs @@ -2,10 +2,6 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal interface ISourceMarker { } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IStreamSerializable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IStreamSerializable.cs index 63549e092cd..8bd24041108 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IStreamSerializable.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IStreamSerializable.cs @@ -6,11 +6,7 @@ using Elastic.Transport; using System.IO; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// Used to mark types which expect to directly serialize into a stream. This supports non-json compliant output such as NDJSON. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IUnionVerifiable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IUnionVerifiable.cs index 61770f76849..51fac87e1c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IUnionVerifiable.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IUnionVerifiable.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal interface IUnionVerifiable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverter.cs index 280ac0552c8..dd48123d8f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverter.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class InterfaceConverter : JsonConverter where TConcrete : class, TInterface diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverterAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverterAttribute.cs index 8a0ae48f724..b53215f504a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverterAttribute.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/InterfaceConverterAttribute.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif [AttributeUsage(AttributeTargets.Interface)] internal class InterfaceConverterAttribute : Attribute diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IntermediateSourceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IntermediateSourceConverter.cs index 691d1091337..abc4703b5f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IntermediateSourceConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IntermediateSourceConverter.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class IntermediateSourceConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IsADictionaryConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IsADictionaryConverterFactory.cs index 4d0261ac4fa..3d36da2a1ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IsADictionaryConverterFactory.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/IsADictionaryConverterFactory.cs @@ -6,17 +6,9 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Mapping; -#else using Elastic.Clients.Elasticsearch.Mapping; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class IsADictionaryConverterFactory : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonConstants.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonConstants.cs index 3b1b4376108..3c28f552a46 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonConstants.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonConstants.cs @@ -11,11 +11,7 @@ #endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal static class JsonConstants { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonHelper.cs index 19d4e1252a8..1e02bd31afc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonHelper.cs @@ -4,11 +4,7 @@ using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal static class JsonHelper { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonSerializerOptionsExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonSerializerOptionsExtensions.cs index 8f4ab29ee2f..3a8742c1962 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonSerializerOptionsExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/JsonSerializerOptionsExtensions.cs @@ -4,11 +4,7 @@ using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal static class JsonSerializerOptionsExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/KeyValuePairConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/KeyValuePairConverter.cs index 3e39dfa4369..7a9d39935fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/KeyValuePairConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/KeyValuePairConverter.cs @@ -9,11 +9,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class KeyValuePairConverterFactory : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/MultiItemUnionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/MultiItemUnionConverter.cs index 3a8354ad3ee..0aece1e358a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/MultiItemUnionConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/MultiItemUnionConverter.cs @@ -6,17 +6,9 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core; -#else using Elastic.Clients.Elasticsearch.Core; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// A base converter for any multi-item (>2 items) unions. The code-generator creates a diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/NumericAliasConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/NumericAliasConverter.cs index ed5c204ba62..99d59a64379 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/NumericAliasConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/NumericAliasConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class NumericAliasConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs index b9711de6e94..632b79272cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ObjectToInferredTypesConverter.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class ObjectToInferredTypesConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/PropertyNameConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/PropertyNameConverter.cs index 40bdd478c9c..8ed87f2be87 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/PropertyNameConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/PropertyNameConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class PropertyNameConverter : SettingsJsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/QueryConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/QueryConverter.cs index a408fb7a30e..2210f6ad23d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/QueryConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/QueryConverter.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif // This converter is generated for the Query container type. We add the CanConvert override here (for now) // as the Query type may be used in source POCOs. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs index 853f538fe62..231a7b85c4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyFieldDictionaryConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class ReadOnlyFieldDictionaryConverterAttribute : JsonConverterAttribute { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs index c1d29d6fe35..4d585c65680 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ReadOnlyIndexNameDictionaryConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class ReadOnlyIndexNameDictionaryConverter : JsonConverterAttribute { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs index bc58d7dada9..16f0e433e36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResolvableReadonlyDictionaryConverterFactory.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class ResolvableReadonlyDictionaryConverterFactory : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResponseItemConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResponseItemConverterFactory.cs index da50972972b..06f503d1e55 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResponseItemConverterFactory.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/ResponseItemConverterFactory.cs @@ -5,22 +5,10 @@ using System; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Get; -#else using Elastic.Clients.Elasticsearch.Core.Get; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.MGet; -#else using Elastic.Clients.Elasticsearch.Core.MGet; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// A converter factory able to provide a converter to handle (de)serializing . diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializable.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializable.cs index 1a4fd1cf9ad..1f40c872ca9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializable.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializable.cs @@ -4,11 +4,7 @@ using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// Marks a type to provide it's own serialization code. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializableConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializableConverterFactory.cs index 8fb0b39a204..b1095fdc9d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializableConverterFactory.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SelfSerializableConverterFactory.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class SelfSerializableConverterFactory : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializationConstants.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializationConstants.cs index 74d868fada4..006daf3a91c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializationConstants.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SerializationConstants.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal static class SerializationConstants { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SettingsJsonConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SettingsJsonConverter.cs index 21190673061..486bac3ae13 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SettingsJsonConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SettingsJsonConverter.cs @@ -5,11 +5,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif /// /// Used for derived converters which need access to in order to serialize. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SimpleInterfaceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SimpleInterfaceConverter.cs index 4a4315f08db..65a1a75c86a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SimpleInterfaceConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SimpleInterfaceConverter.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class SimpleInterfaceConverter : JsonConverter where TConcrete : class, TInterface { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionAttribute.cs index 22581f4fc9e..1761ab6db7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionAttribute.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionAttribute.cs @@ -5,11 +5,7 @@ using System; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif [AttributeUsage(AttributeTargets.Property)] internal class SingleOrManyCollectionConverterAttribute : JsonConverterAttribute diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionConverter.cs index bb734416a2c..0e76814ad14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManyCollectionConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal class SingleOrManyCollectionConverter : JsonConverter> { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManySerializationHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManySerializationHelper.cs index c7b6e6f25b1..da2689fa490 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManySerializationHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleOrManySerializationHelper.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Text.Json; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal static class SingleOrManySerializationHelper { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleWithFractionalPortionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleWithFractionalPortionConverter.cs index 731b07d58a0..279516fcfbf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleWithFractionalPortionConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SingleWithFractionalPortionConverter.cs @@ -21,11 +21,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class SingleWithFractionalPortionConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs index 6c1e0295cd5..82292ea1155 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverter.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport.Extensions; diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterAttribute.cs index 2b166d3c612..d7d3e06fb02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterAttribute.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterAttribute.cs @@ -5,11 +5,7 @@ using System; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class SourceConverterAttribute : JsonConverterAttribute { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterFactory.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterFactory.cs index c0e5adc9ffd..d576c964a4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterFactory.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceConverterFactory.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class SourceConverterFactory : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceMarker.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceMarker.cs index 70ed8c5335f..7cb89ef1d84 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceMarker.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/SourceMarker.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class SourceMarker { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringAliasConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringAliasConverter.cs index 4271f61dcf2..a1107687c1a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringAliasConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringAliasConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif // TODO - In .NET 7 we could review supporting IParsable as a type constraint? internal sealed class StringAliasConverter : JsonConverter diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringEnumAttribute.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringEnumAttribute.cs index 1edcc2a1cc8..2bdf4c83d18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringEnumAttribute.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/StringEnumAttribute.cs @@ -4,11 +4,7 @@ using System; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif [AttributeUsage(AttributeTargets.Property | AttributeTargets.Enum)] public class StringEnumAttribute : Attribute { } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/Stringified.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/Stringified.cs index 0d178e886f8..36a51971fe9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/Stringified.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/Stringified.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class StringifiedLongConverter : JsonConverter { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/TermsAggregateSerializationHelper.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/TermsAggregateSerializationHelper.cs index d3e0e72294f..87d1e8e6882 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/TermsAggregateSerializationHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/TermsAggregateSerializationHelper.cs @@ -5,17 +5,9 @@ using System; using System.Text.Json; using System.Text; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Aggregations; -#else using Elastic.Clients.Elasticsearch.Aggregations; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal static class TermsAggregateSerializationHelper { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/UnionConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/UnionConverter.cs index 779d37be2c9..25f61bf8fa9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/UnionConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Serialization/UnionConverter.cs @@ -6,17 +6,9 @@ using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Aggregations; -#else using Elastic.Clients.Elasticsearch.Aggregations; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else namespace Elastic.Clients.Elasticsearch.Serialization; -#endif internal sealed class UnionConverter : JsonConverterFactory { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/AggregateOrder.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/AggregateOrder.cs index 6ce16971c97..1a8aba299ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/AggregateOrder.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/AggregateOrder.cs @@ -4,11 +4,7 @@ using System.Collections.Generic; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; -#else namespace Elastic.Clients.Elasticsearch.Aggregations; -#endif public static class AggregateOrder { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs index d01f5260ce8..21c585824f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/BucketsPath.cs @@ -4,11 +4,7 @@ #nullable enable -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core; -#else using Elastic.Clients.Elasticsearch.Core; -#endif using System; using System.Collections.Generic; @@ -16,11 +12,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; -#else namespace Elastic.Clients.Elasticsearch.Aggregations; -#endif /// /// Buckets path can be expressed in different ways, and an aggregation may accept some or all of these
forms depending on its type. Please refer to each aggregation's documentation to know what buckets
path forms they accept.
diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsExclude.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsExclude.cs index 0f4c415a100..67d4491be29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsExclude.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsExclude.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; #nullable enable -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; -#else namespace Elastic.Clients.Elasticsearch.Aggregations; -#endif /// /// Filters which terms to exclude from the response. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsInclude.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsInclude.cs index 00b6cf85974..2861d59703c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsInclude.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Aggregations/TermsInclude.cs @@ -8,11 +8,7 @@ using System.Text.Json.Serialization; #nullable enable -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Aggregations; -#else namespace Elastic.Clients.Elasticsearch.Aggregations; -#endif /// /// Filters which terms to include in the response. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/AsyncSearch/AsyncSearch.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/AsyncSearch/AsyncSearch.cs index e3536ef6f54..289ef7cf6be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/AsyncSearch/AsyncSearch.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/AsyncSearch/AsyncSearch.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; -#else namespace Elastic.Clients.Elasticsearch.AsyncSearch; -#endif public partial class AsyncSearch { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs index f9674169a14..34dc3cb2fb0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperation.cs @@ -9,17 +9,9 @@ using System.Text.Json.Serialization; using System.Threading.Tasks; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif /// /// Represents a bulk operation to create a document. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs index e5de624043c..9b52cefff6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkCreateOperationDescriptor.cs @@ -8,24 +8,12 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkCreateOperationDescriptor : BulkOperationDescriptor> { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs index 92b16d6099d..93db7a670f9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperation.cs @@ -8,17 +8,9 @@ using System.Text.Json.Serialization; using System.Threading.Tasks; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public class BulkDeleteOperation : BulkOperation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs index 63ce144185d..64ccdf0566e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkDeleteOperationDescriptor.cs @@ -7,19 +7,11 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public class BulkDeleteOperationDescriptor : BulkOperationDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs index c71cf41949a..dcd9179a838 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperation.cs @@ -9,17 +9,9 @@ using System.Text.Json.Serialization; using System.Threading.Tasks; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkIndexOperation : BulkOperation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs index a59188d75c0..ed64fce6c4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkIndexOperationDescriptor.cs @@ -8,24 +8,12 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkIndexOperationDescriptor : BulkOperationDescriptor> { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperation.cs index 861543eecd2..562d60a61b7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperation.cs @@ -6,18 +6,10 @@ using System.IO; using System.Text.Json.Serialization; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif /// /// Provides the base class from which the classes that represent bulk operations are derived. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationDescriptor.cs index c8103d07e5b..0451a0ba7c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationDescriptor.cs @@ -7,23 +7,11 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public abstract class BulkOperationDescriptor : SerializableDescriptor, IBulkOperation, IStreamSerializable where TDescriptor : BulkOperationDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationsCollection.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationsCollection.cs index 85b12f55a8a..80cc7e01cdb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationsCollection.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkOperationsCollection.cs @@ -7,18 +7,10 @@ using System.Collections.Generic; using System.IO; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif ///// ///// This class is used by which needs thread-safe adding , as well as expose diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkResponseItemConverter.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkResponseItemConverter.cs index 4881e942d03..992bcd61e8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkResponseItemConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkResponseItemConverter.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif internal sealed class BulkResponseItemConverter : JsonConverter> { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs index a4804b1b425..1451045cb03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateBody.cs @@ -4,22 +4,10 @@ using System.Text.Json; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Search; -#else using Elastic.Clients.Elasticsearch.Core.Search; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif internal abstract class BulkUpdateBody : ISelfSerializable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs index 1ddc44f3c4e..d3ea1a0a78d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperation.cs @@ -7,19 +7,11 @@ using System.Text.Json.Serialization; using System.Threading; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public abstract class BulkUpdateOperation : BulkOperation { 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 9b18c46939f..45b3802a956 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationDescriptor.cs @@ -10,22 +10,10 @@ using System.Threading.Tasks; using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Search; -#else using Elastic.Clients.Elasticsearch.Core.Search; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkUpdateOperationDescriptor : BulkOperationDescriptor> { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationT.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationT.cs index 07eab380c94..0272e5f9ae0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationT.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationT.cs @@ -7,17 +7,9 @@ using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.Search; -#else using Elastic.Clients.Elasticsearch.Core.Search; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkUpdateOperation : BulkUpdateOperation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs index 26c09249de3..8ad17bb279a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithPartial.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkUpdateOperationWithPartial : BulkUpdateOperation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs index 92663e6851a..d3feccab61d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/BulkUpdateOperationWithScript.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public class BulkUpdateOperationWithScript : BulkUpdateOperation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/IBulkOperation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/IBulkOperation.cs index 70edfd8397f..ed6e49ba40c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/IBulkOperation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/IBulkOperation.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif /// /// Marker interface for types that can be serialised as an operation of a bulk API request. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs index 62d1f378193..256239bfe4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/PartialBulkUpdateBody.cs @@ -4,17 +4,9 @@ using System.Text.Json; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif internal class PartialBulkUpdateBody : BulkUpdateBody { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs index 0e59d96e7ed..6e183cbb35c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkCreateResponseItem.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class CreateResponseItem : ResponseItem { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs index f7d3bf5698a..d7462faf2d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkDeleteResponseItem.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkDeleteResponseItem : ResponseItem { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs index c1e5dac1bf1..4b6c0219107 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkIndexResponseItem.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkIndexResponseItem : ResponseItem { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs index 636d8992580..ac2530b6e5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/Response/BulkUpdateResponseItem.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif public sealed class BulkUpdateResponseItem : ResponseItem { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs index 08200fe989b..531f5c09240 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Bulk/ScriptedBulkUpdateBody.cs @@ -4,17 +4,9 @@ using System.Text.Json; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; -#else namespace Elastic.Clients.Elasticsearch.Core.Bulk; -#endif internal class ScriptedBulkUpdateBody : BulkUpdateBody { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs index f3e0d25d78d..cdf12c100a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearch/SearchRequestItem.cs @@ -5,19 +5,11 @@ using System.IO; using System.Text.Json; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.MSearch; -#else namespace Elastic.Clients.Elasticsearch.Core.MSearch; -#endif // POC - If we have more than one union doing this, can we autogenerate with correct ctors etc. public sealed class SearchRequestItem : IStreamSerializable diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs index c6790c7abb3..10a089a4262 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/MSearchTemplate/SearchTemplateRequestItem.cs @@ -5,24 +5,12 @@ using System.IO; using System.Text.Json; using System.Threading.Tasks; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Core.MSearch; -#else using Elastic.Clients.Elasticsearch.Core.MSearch; -#endif -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -#else using Elastic.Clients.Elasticsearch.Serialization; -#endif using Elastic.Transport; using Elastic.Transport.Extensions; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.MSearchTemplate; -#else namespace Elastic.Clients.Elasticsearch.Core.MSearchTemplate; -#endif public sealed class SearchTemplateRequestItem : IStreamSerializable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Search/SourceConfigParam.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Search/SourceConfigParam.cs index 9a1fb940454..2a1a1c6d706 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Search/SourceConfigParam.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Core/Search/SourceConfigParam.cs @@ -6,11 +6,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; -#else namespace Elastic.Clients.Elasticsearch.Core.Search; -#endif public partial class SourceConfigParam : IUrlParameter diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/FieldSort.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/FieldSort.cs index facf19d1b8b..ea4cd931ea7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/FieldSort.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/FieldSort.cs @@ -5,17 +5,9 @@ using System; using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Mapping; -#else using Elastic.Clients.Elasticsearch.Mapping; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(FieldSortConverter))] public partial class FieldSort diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/GeoLocation.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/GeoLocation.cs index aa823d9402b..e3a6e3b4d10 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/GeoLocation.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/GeoLocation.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class GeoLocation { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/Properties.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/Properties.cs index 70852e0b977..6b0ebb9d460 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/Properties.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/Properties.cs @@ -6,17 +6,9 @@ using System.Linq.Expressions; 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.Mapping; -#else namespace Elastic.Clients.Elasticsearch.Mapping; -#endif [JsonConverter(typeof(PropertiesConverter))] public partial class Properties diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertiesDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertiesDescriptor.cs index 6e3a3ee74da..9bfb6107178 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertiesDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertiesDescriptor.cs @@ -5,17 +5,9 @@ using System; using System.Collections.Generic; using System.Linq.Expressions; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; -#else namespace Elastic.Clients.Elasticsearch.Mapping; -#endif public sealed partial class PropertiesDescriptor : IsADictionaryDescriptor, Properties, PropertyName, IProperty> diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertyNameExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertyNameExtensions.cs index 15349dd35f2..df487687f72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertyNameExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Mapping/PropertyNameExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Mapping; -#else namespace Elastic.Clients.Elasticsearch.Mapping; -#endif internal static class PropertyNameExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/MultiSearchItem.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/MultiSearchItem.cs index 9fec9a274bf..59a2008478d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/MultiSearchItem.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/MultiSearchItem.cs @@ -6,11 +6,7 @@ using System.Linq; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.MSearch; -#else namespace Elastic.Clients.Elasticsearch.Core.MSearch; -#endif public partial class MultiSearchItem { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/OpType.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/OpType.cs index 08e1887ae8f..ee10bfebc03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/OpType.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/OpType.cs @@ -8,11 +8,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif [JsonConverter(typeof(OpTypeConverter))] public partial struct OpType : IStringable diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/PointInTimeReferenceDescriptor.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/PointInTimeReferenceDescriptor.cs index 1adf99f8921..0370f78f5b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/PointInTimeReferenceDescriptor.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/PointInTimeReferenceDescriptor.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; -#else namespace Elastic.Clients.Elasticsearch.Core.Search; -#endif public sealed partial class PointInTimeReferenceDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQuery.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQuery.cs index 184947b5bf2..2efca3b70a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQuery.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQuery.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif public partial class BoolQuery { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryAndExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryAndExtensions.cs index 70ff5bfb147..493c1dcdccc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryAndExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryAndExtensions.cs @@ -6,11 +6,7 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif internal static class BoolQueryAndExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryExtensions.cs index 1cc438d1897..38af2755d39 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryExtensions.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif internal static class BoolQueryExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryOrExtensions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryOrExtensions.cs index 22f2baf139d..4ed4fca190d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryOrExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/BoolQueryOrExtensions.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Linq; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif internal static class BoolQueryOrExtensions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/FunctionScore.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/FunctionScore.cs index ca170eba4bf..21248c619a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/FunctionScore.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/FunctionScore.cs @@ -2,11 +2,7 @@ // 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. -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif // A quirk of the function score type which is valid without a variant. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/Query.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/Query.cs index 3da5f73d917..772fd283d5d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/Query.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/Query.cs @@ -5,11 +5,7 @@ using System; using System.Diagnostics.CodeAnalysis; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif public partial class Query { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RangeQuery.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RangeQuery.cs index 220dde1f328..c4b7a918a9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RangeQuery.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RangeQuery.cs @@ -4,17 +4,9 @@ using System; -#if ELASTICSEARCH_SERVERLESS -using Elastic.Clients.Elasticsearch.Serverless.Fluent; -#else using Elastic.Clients.Elasticsearch.Fluent; -#endif -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif // TODO: This should be removed after implementing descriptor generation for union types diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RawJsonQuery.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RawJsonQuery.cs index 99057baca2d..4c1c879639e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RawJsonQuery.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/QueryDsl/RawJsonQuery.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.QueryDsl; -#else namespace Elastic.Clients.Elasticsearch.QueryDsl; -#endif /// /// Allows a query represented as a string of JSON to be defined. This can be useful when support for a built-in query is not yet available. diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Ranges.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Ranges.cs index 43013c58311..e6478ebe9db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Ranges.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Ranges.cs @@ -5,11 +5,7 @@ using System; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public class DateRange { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Refresh.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Refresh.cs index 9a2e7b99acb..c4f41a86102 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Refresh.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Refresh.cs @@ -4,11 +4,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial struct Refresh : IStringable { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Slices.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Slices.cs index 42fcbaa2879..baf72922b75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Slices.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Slices.cs @@ -7,11 +7,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class Slices : IUrlParameter diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/SortOptions.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/SortOptions.cs index cbbe2c06568..713272d31ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/SortOptions.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/SortOptions.cs @@ -5,18 +5,10 @@ using System; 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 using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial class SortOptions { diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/SourceConfig.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/SourceConfig.cs index ca1aa59f17b..d9fdff1fba9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/SourceConfig.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/SourceConfig.cs @@ -7,11 +7,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; -#else namespace Elastic.Clients.Elasticsearch.Core.Search; -#endif [JsonConverter(typeof(SourceConfigConverter))] public partial class SourceConfig diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlRow.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlRow.cs index 69376a1b646..d002fd031d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlRow.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlRow.cs @@ -8,11 +8,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; -#else namespace Elastic.Clients.Elasticsearch.Sql; -#endif [JsonConverter(typeof(SqlRowConverter))] public sealed class SqlRow : ReadOnlyCollection diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlValue.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlValue.cs index 28792699134..edd5d94d6c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlValue.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/Sql/SqlValue.cs @@ -6,11 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.Sql; -#else namespace Elastic.Clients.Elasticsearch.Sql; -#endif [JsonConverter(typeof(SqlValueConverter))] public readonly struct SqlValue diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Types/WaitForActiveShards.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Types/WaitForActiveShards.cs index f512efe80ee..e033e7af327 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Types/WaitForActiveShards.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Types/WaitForActiveShards.cs @@ -4,11 +4,7 @@ using Elastic.Transport; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless; -#else namespace Elastic.Clients.Elasticsearch; -#endif public partial struct WaitForActiveShards : IStringable { diff --git a/src/Playground/Playground.csproj b/src/Playground/Playground.csproj index 004205ffb13..863f7d2015e 100644 --- a/src/Playground/Playground.csproj +++ b/src/Playground/Playground.csproj @@ -15,7 +15,6 @@ - From e91b1ea19fa963c18362aca53ed673664bf6331e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 16 Mar 2025 12:40:32 +0100 Subject: [PATCH 23/28] Regenerate client using the latest specification (#8472) (#8473) * Regenerate client using the latest specification * Update `Elastic.Transport` to `0.5.9` Co-authored-by: Florian Bernd --- .../Elastic.Clients.Elasticsearch.csproj | 2 +- .../_Generated/Api/ApiUrlLookup.g.cs | 17 + .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 24 + .../_Generated/Api/BulkRequest.g.cs | 619 +- .../_Generated/Api/BulkResponse.g.cs | 11 + .../_Generated/Api/ClearScrollRequest.g.cs | 8 +- .../_Generated/Api/ClearScrollResponse.g.cs | 12 + .../Api/ClosePointInTimeRequest.g.cs | 4 - .../Api/ClosePointInTimeResponse.g.cs | 11 + .../DeleteComponentTemplateRequest.g.cs | 2 - .../Cluster/GetComponentTemplateRequest.g.cs | 4 +- .../Cluster/PutComponentTemplateRequest.g.cs | 30 +- .../_Generated/Api/CountRequest.g.cs | 134 +- .../_Generated/Api/CreateRequest.g.cs | 274 +- .../_Generated/Api/CreateResponse.g.cs | 43 + .../FollowRequest.g.cs | 487 +- .../_Generated/Api/DeleteByQueryRequest.g.cs | 534 +- .../_Generated/Api/DeleteByQueryResponse.g.cs | 78 + .../Api/DeleteByQueryRethrottleRequest.g.cs | 2 + .../_Generated/Api/DeleteRequest.g.cs | 203 +- .../_Generated/Api/DeleteResponse.g.cs | 43 + .../_Generated/Api/DeleteScriptRequest.g.cs | 12 +- .../_Generated/Api/Eql/EqlGetResponse.g.cs | 8 - .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 106 - .../_Generated/Api/Eql/EqlSearchResponse.g.cs | 8 - .../Api/Esql/AsyncQueryDeleteRequest.g.cs | 170 + .../Api/Esql/AsyncQueryDeleteResponse.g.cs | 38 + .../Api/Esql/AsyncQueryGetRequest.g.cs | 187 + .../Api/Esql/AsyncQueryGetResponse.g.cs | 31 + .../Api/Esql/AsyncQueryRequest.g.cs | 601 + .../Api/Esql/AsyncQueryResponse.g.cs | 31 + .../_Generated/Api/Esql/EsqlQueryRequest.g.cs | 50 + .../_Generated/Api/ExistsRequest.g.cs | 129 +- .../_Generated/Api/ExistsSourceRequest.g.cs | 71 +- .../_Generated/Api/ExplainRequest.g.cs | 59 +- .../_Generated/Api/FieldCapsRequest.g.cs | 49 +- .../_Generated/Api/FieldCapsResponse.g.cs | 6 + .../_Generated/Api/GetRequest.g.cs | 284 +- .../_Generated/Api/GetResponse.g.cs | 55 + .../_Generated/Api/GetScriptRequest.g.cs | 8 +- .../_Generated/Api/GetSourceRequest.g.cs | 88 +- .../MigrateToDataTiersResponse.g.cs | 37 + .../MoveToStepRequest.g.cs | 31 + .../StartIlmRequest.g.cs | 22 + .../StopIlmRequest.g.cs | 22 + .../IndexManagement/AnalyzeIndexRequest.g.cs | 24 +- .../IndexManagement/ClearCacheRequest.g.cs | 15 + .../IndexManagement/CloneIndexRequest.g.cs | 102 + .../IndexManagement/CreateIndexRequest.g.cs | 108 +- .../IndexManagement/DeleteIndexRequest.g.cs | 24 +- .../DeleteTemplateRequest.g.cs | 4 +- .../Api/IndexManagement/DiskUsageRequest.g.cs | 15 + .../IndexManagement/ExistsAliasRequest.g.cs | 19 - .../Api/IndexManagement/ExistsRequest.g.cs | 6 +- .../ExistsTemplateRequest.g.cs | 28 +- .../FieldUsageStatsRequest.g.cs | 12 + .../IndexManagement/ForcemergeRequest.g.cs | 198 + .../Api/IndexManagement/GetAliasRequest.g.cs | 19 - .../GetDataLifecycleStatsRequest.g.cs | 79 + .../GetDataLifecycleStatsResponse.g.cs | 63 + .../GetFieldMappingRequest.g.cs | 9 + .../Api/IndexManagement/GetIndexRequest.g.cs | 6 +- .../GetIndexTemplateRequest.g.cs | 4 +- .../GetIndicesSettingsRequest.g.cs | 12 +- .../IndexManagement/GetMappingRequest.g.cs | 3 - .../IndexManagement/GetTemplateRequest.g.cs | 10 +- .../Api/IndexManagement/OpenIndexRequest.g.cs | 87 +- .../PutDataLifecycleRequest.g.cs | 106 +- .../PutIndexTemplateRequest.g.cs | 123 +- .../PutIndicesSettingsRequest.g.cs | 57 +- .../IndexManagement/PutMappingRequest.g.cs | 119 +- .../IndexManagement/PutTemplateRequest.g.cs | 39 + .../Api/IndexManagement/RecoveryRequest.g.cs | 9 + .../Api/IndexManagement/RefreshRequest.g.cs | 45 + .../ResolveClusterRequest.g.cs | 64 + .../Api/IndexManagement/RolloverRequest.g.cs | 150 +- .../Api/IndexManagement/SegmentsRequest.g.cs | 17 + .../SimulateIndexTemplateRequest.g.cs | 4 +- .../SimulateTemplateRequest.g.cs | 6 +- .../IndexManagement/SplitIndexRequest.g.cs | 30 + .../_Generated/Api/IndexRequest.g.cs | 406 +- .../_Generated/Api/IndexResponse.g.cs | 43 + .../Api/Inference/PutInferenceResponse.g.cs | 8 + .../Api/Inference/StreamInferenceRequest.g.cs | 151 + .../Inference/StreamInferenceResponse.g.cs | 31 + .../Api/Inference/UpdateInferenceRequest.g.cs | 148 + .../Inference/UpdateInferenceResponse.g.cs | 78 + .../_Generated/Api/InfoRequest.g.cs | 4 +- .../_Generated/Api/InfoResponse.g.cs | 17 + .../EvaluateDataFrameResponse.g.cs | 19 + .../PutDataFrameAnalyticsRequest.g.cs | 21 + .../MachineLearning/PutDatafeedRequest.g.cs | 24 +- .../Api/MachineLearning/PutJobRequest.g.cs | 3 + .../Api/MachineLearning/ValidateRequest.g.cs | 6 +- .../_Generated/Api/MultiGetRequest.g.cs | 48 + .../_Generated/Api/MultiGetResponse.g.cs | 7 + .../Api/MultiSearchTemplateRequest.g.cs | 48 +- .../Api/MultiTermVectorsRequest.g.cs | 60 +- ...arRepositoriesMeteringArchiveResponse.g.cs | 2 +- .../GetRepositoriesMeteringInfoResponse.g.cs | 2 +- .../Api/OpenPointInTimeRequest.g.cs | 143 +- .../_Generated/Api/PutScriptRequest.g.cs | 18 +- .../Api/QueryRules/DeleteRuleRequest.g.cs | 2 + .../Api/QueryRules/DeleteRulesetRequest.g.cs | 4 + .../Api/QueryRules/GetRuleResponse.g.cs | 27 + .../Api/QueryRules/GetRulesetResponse.g.cs | 4 +- .../Api/QueryRules/ListRulesetsRequest.g.cs | 8 +- .../Api/QueryRules/PutRuleRequest.g.cs | 48 + .../Api/QueryRules/PutRulesetRequest.g.cs | 16 + .../Api/QueryRules/TestRequest.g.cs | 12 + .../_Generated/Api/ReindexRequest.g.cs | 938 +- .../_Generated/Api/ReindexResponse.g.cs | 88 + .../Api/ReindexRethrottleRequest.g.cs | 20 + .../Api/RenderSearchTemplateRequest.g.cs | 76 +- .../Api/Rollup/RollupSearchRequest.g.cs | 147 +- .../_Generated/Api/Rollup/StopJobRequest.g.cs | 37 + .../_Generated/Api/ScrollRequest.g.cs | 8 +- .../_Generated/Api/ScrollResponse.g.cs | 71 + .../GetSearchApplicationResponse.g.cs | 2 +- .../Api/SearchApplication/ListRequest.g.cs | 6 +- .../Api/SearchApplication/ListResponse.g.cs | 2 +- .../PostBehavioralAnalyticsEventRequest.g.cs | 125 + .../PostBehavioralAnalyticsEventResponse.g.cs | 35 + .../PutSearchApplicationRequest.g.cs | 16 +- .../SearchApplication/RenderQueryRequest.g.cs | 118 + .../RenderQueryResponse.g.cs | 31 + .../SearchApplicationSearchResponse.g.cs | 71 + .../_Generated/Api/SearchMvtRequest.g.cs | 903 +- .../_Generated/Api/SearchRequest.g.cs | 521 +- .../_Generated/Api/SearchResponse.g.cs | 71 + .../_Generated/Api/SearchShardsRequest.g.cs | 27 +- .../_Generated/Api/SearchTemplateRequest.g.cs | 54 +- .../Api/SearchableSnapshots/MountRequest.g.cs | 62 +- .../Security/ActivateUserProfileRequest.g.cs | 85 + .../Security/BulkUpdateApiKeysRequest.g.cs | 371 + .../Security/BulkUpdateApiKeysResponse.g.cs | 37 + .../Security/ClearCachedRealmsRequest.g.cs | 22 +- .../ClearCachedServiceTokensRequest.g.cs | 12 + .../Api/Security/CreateApiKeyRequest.g.cs | 84 +- .../Security/CreateServiceTokenRequest.g.cs | 8 + .../Api/Security/DelegatePkiRequest.g.cs | 138 + .../Api/Security/DelegatePkiResponse.g.cs | 56 + .../Api/Security/DeletePrivilegesRequest.g.cs | 30 + .../Security/DeleteRoleMappingRequest.g.cs | 10 + .../Security/DeleteRoleMappingResponse.g.cs | 6 + .../Api/Security/DeleteRoleRequest.g.cs | 4 + .../Api/Security/DeleteRoleResponse.g.cs | 6 + .../Security/DeleteServiceTokenResponse.g.cs | 6 + .../Api/Security/DeleteUserResponse.g.cs | 6 + .../Security/DisableUserProfileRequest.g.cs | 30 +- .../Api/Security/DisableUserRequest.g.cs | 4 + .../Security/EnableUserProfileRequest.g.cs | 28 +- .../Api/Security/EnableUserRequest.g.cs | 2 + .../Api/Security/EnrollKibanaRequest.g.cs | 8 + .../Api/Security/EnrollKibanaResponse.g.cs | 6 + .../Api/Security/EnrollNodeRequest.g.cs | 8 + .../Api/Security/EnrollNodeResponse.g.cs | 35 + .../GetBuiltinPrivilegesResponse.g.cs | 20 +- .../Api/Security/GetPrivilegesRequest.g.cs | 30 + .../Api/Security/GetRoleRequest.g.cs | 4 + .../Security/GetSecuritySettingsRequest.g.cs | 129 + .../Security/GetSecuritySettingsResponse.g.cs | 54 + .../Security/GetServiceAccountsRequest.g.cs | 6 + .../GetServiceCredentialsRequest.g.cs | 20 + .../GetServiceCredentialsResponse.g.cs | 2 +- .../Api/Security/GetTokenRequest.g.cs | 113 + .../Security/GetUserPrivilegesRequest.g.cs | 12 + .../Security/GetUserPrivilegesResponse.g.cs | 4 + .../Api/Security/GetUserProfileRequest.g.cs | 22 +- .../Api/Security/GetUserProfileResponse.g.cs | 8 + .../Api/Security/GetUserRequest.g.cs | 4 +- .../Api/Security/GrantApiKeyRequest.g.cs | 96 +- .../Api/Security/HasPrivilegesRequest.g.cs | 4 + .../HasPrivilegesUserProfileRequest.g.cs | 18 + .../Api/Security/InvalidateApiKeyRequest.g.cs | 34 +- .../Security/InvalidateApiKeyResponse.g.cs | 24 + .../Api/Security/InvalidateTokenRequest.g.cs | 67 +- .../Api/Security/InvalidateTokenResponse.g.cs | 24 + .../Api/Security/OidcAuthenticateRequest.g.cs | 194 + .../Security/OidcAuthenticateResponse.g.cs | 62 + .../Api/Security/OidcLogoutRequest.g.cs | 148 + .../Api/Security/OidcLogoutResponse.g.cs | 38 + .../OidcPrepareAuthenticationRequest.g.cs | 244 + .../OidcPrepareAuthenticationResponse.g.cs | 45 + .../Api/Security/PutPrivilegesRequest.g.cs | 112 + .../Api/Security/PutRoleMappingRequest.g.cs | 115 +- .../Api/Security/PutRoleRequest.g.cs | 12 + .../Api/Security/PutRoleResponse.g.cs | 5 + .../Api/Security/PutUserRequest.g.cs | 107 +- .../Api/Security/PutUserResponse.g.cs | 6 + .../Api/Security/QueryApiKeysRequest.g.cs | 81 +- .../Api/Security/QueryRoleRequest.g.cs | 57 +- .../Api/Security/QueryRoleResponse.g.cs | 7 +- .../Api/Security/QueryUserRequest.g.cs | 55 +- .../Api/Security/QueryUserResponse.g.cs | 2 +- .../Api/Security/SamlAuthenticateRequest.g.cs | 64 +- .../Security/SamlAuthenticateResponse.g.cs | 29 + .../Security/SamlCompleteLogoutRequest.g.cs | 26 +- .../Api/Security/SamlInvalidateRequest.g.cs | 44 +- .../Api/Security/SamlInvalidateResponse.g.cs | 17 + .../Api/Security/SamlLogoutRequest.g.cs | 20 +- .../Api/Security/SamlLogoutResponse.g.cs | 6 + .../SamlPrepareAuthenticationRequest.g.cs | 42 +- .../SamlPrepareAuthenticationResponse.g.cs | 17 + .../SamlServiceProviderMetadataRequest.g.cs | 8 + .../SamlServiceProviderMetadataResponse.g.cs | 5 + .../Security/SuggestUserProfilesRequest.g.cs | 42 +- .../Security/SuggestUserProfilesResponse.g.cs | 17 + .../Api/Security/UpdateApiKeyRequest.g.cs | 147 +- .../Api/Security/UpdateApiKeyResponse.g.cs | 2 +- .../UpdateCrossClusterApiKeyRequest.g.cs | 63 +- .../Api/Security/UpdateSettingsRequest.g.cs | 490 + .../Api/Security/UpdateSettingsResponse.g.cs | 33 + .../UpdateUserProfileDataRequest.g.cs | 80 +- .../Api/Simulate/IngestRequest.g.cs | 603 + .../Api/Simulate/IngestResponse.g.cs | 33 + .../Snapshot/RepositoryAnalyzeRequest.g.cs | 547 + .../Snapshot/RepositoryAnalyzeResponse.g.cs | 191 + .../DeleteLifecycleRequest.g.cs | 36 + .../ExecuteLifecycleRequest.g.cs | 36 + .../ExecuteRetentionRequest.g.cs | 36 + .../GetLifecycleRequest.g.cs | 36 + .../GetSlmStatusRequest.g.cs | 40 + .../GetStatsRequest.g.cs | 32 + .../PutLifecycleRequest.g.cs | 16 +- .../StartSlmRequest.g.cs | 40 + .../StopSlmRequest.g.cs | 40 + .../Api/Sql/DeleteAsyncRequest.g.cs | 45 + .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 41 +- .../_Generated/Api/Sql/GetAsyncResponse.g.cs | 26 +- .../Api/Sql/GetAsyncStatusResponse.g.cs | 22 +- .../_Generated/Api/Sql/QueryRequest.g.cs | 184 +- .../_Generated/Api/Sql/QueryResponse.g.cs | 26 +- .../_Generated/Api/Sql/TranslateRequest.g.cs | 21 +- .../Api/Synonyms/DeleteSynonymRequest.g.cs | 66 + .../Synonyms/DeleteSynonymRuleResponse.g.cs | 4 +- .../Api/Synonyms/GetSynonymRequest.g.cs | 8 +- .../Api/Synonyms/GetSynonymResponse.g.cs | 11 + .../Api/Synonyms/GetSynonymsSetsRequest.g.cs | 8 +- .../Api/Synonyms/GetSynonymsSetsResponse.g.cs | 11 + .../Api/Synonyms/PutSynonymRequest.g.cs | 18 +- .../Api/Synonyms/PutSynonymRuleRequest.g.cs | 22 + .../Api/Synonyms/PutSynonymRuleResponse.g.cs | 4 +- .../_Generated/Api/Tasks/CancelRequest.g.cs | 28 +- .../_Generated/Api/Tasks/GetTasksRequest.g.cs | 18 +- .../_Generated/Api/Tasks/ListRequest.g.cs | 164 +- .../_Generated/Api/TermVectorsRequest.g.cs | 234 +- .../_Generated/Api/TermsEnumRequest.g.cs | 94 +- .../_Generated/Api/TermsEnumResponse.g.cs | 6 + .../FindFieldStructureRequest.g.cs | 119 +- .../FindMessageStructureRequest.g.cs | 22 +- .../TextStructure/TestGrokPatternRequest.g.cs | 16 +- .../_Generated/Api/UpdateByQueryRequest.g.cs | 571 +- .../_Generated/Api/UpdateByQueryResponse.g.cs | 84 + .../Api/UpdateByQueryRethrottleRequest.g.cs | 2 + .../_Generated/Api/UpdateRequest.g.cs | 164 +- .../_Generated/Api/UpdateResponse.g.cs | 43 + .../Api/Xpack/XpackInfoRequest.g.cs | 6 +- .../Api/Xpack/XpackUsageRequest.g.cs | 8 +- .../Client/ElasticsearchClient.Cluster.g.cs | 144 +- .../ElasticsearchClient.DanglingIndices.g.cs | 16 +- .../Client/ElasticsearchClient.Esql.g.cs | 883 + .../Client/ElasticsearchClient.Indices.g.cs | 9354 ++- .../Client/ElasticsearchClient.Inference.g.cs | 516 + .../Client/ElasticsearchClient.License.g.cs | 16 +- .../Client/ElasticsearchClient.Ml.g.cs | 188 +- .../Client/ElasticsearchClient.Nodes.g.cs | 32 +- .../ElasticsearchClient.QueryRules.g.cs | 264 +- .../Client/ElasticsearchClient.Rollup.g.cs | 970 +- ...ElasticsearchClient.SearchApplication.g.cs | 292 +- ...asticsearchClient.SearchableSnapshots.g.cs | 128 +- .../Client/ElasticsearchClient.Security.g.cs | 10478 +++- .../Client/ElasticsearchClient.Simulate.g.cs | 780 + .../Client/ElasticsearchClient.Slm.g.cs | 152 +- .../Client/ElasticsearchClient.Snapshot.g.cs | 1642 +- .../Client/ElasticsearchClient.Sql.g.cs | 422 +- .../Client/ElasticsearchClient.Synonyms.g.cs | 560 +- .../Client/ElasticsearchClient.Tasks.g.cs | 616 + .../ElasticsearchClient.TextStructure.g.cs | 606 +- .../Client/ElasticsearchClient.Xpack.g.cs | 32 +- .../Client/ElasticsearchClient.g.cs | 47149 +++++++++++++--- .../Types/BulkIndexByScrollFailure.g.cs | 2 - .../Types/Cluster/ComponentTemplateNode.g.cs | 204 +- .../Cluster/ComponentTemplateSummary.g.cs | 321 +- .../Types/Core/Bulk/ResponseItem.g.cs | 18 +- .../_Generated/Types/Core/Get/GetResult.g.cs | 55 + .../Types/Core/HealthReport/Indicators.g.cs | 2 - .../Types/Core/MSearch/MultiSearchItem.g.cs | 71 + .../Core/MSearchTemplate/TemplateConfig.g.cs | 4 +- .../Types/Core/Reindex/Destination.g.cs | 24 +- .../Types/Core/Reindex/RemoteSource.g.cs | 8 +- .../_Generated/Types/Core/Reindex/Source.g.cs | 171 +- .../Types/Core/TermVectors/Filter.g.cs | 8 +- .../FollowerIndexParameters.g.cs | 84 +- .../Types/ElasticsearchVersionInfo.g.cs | 55 + .../Types/Enums/Enums.Core.Bulk.g.cs | 85 + .../Types/Enums/Enums.IndexManagement.g.cs | 49 + .../_Generated/Types/Enums/Enums.Mapping.g.cs | 368 +- .../Types/Enums/Enums.NoNamespace.g.cs | 13 +- .../Types/Enums/Enums.SearchApplication.g.cs | 78 + .../Types/Enums/Enums.Security.g.cs | 29 + .../_Generated/Types/Enums/Enums.Tasks.g.cs | 4 +- .../_Generated/Types/ErrorCause.g.cs | 2 +- .../IndexLifecycleManagement/IlmPolicy.g.cs | 10 + .../Types/IndexLifecycleManagement/Phase.g.cs | 6 +- .../IndexLifecycleManagement/StepKey.g.cs | 21 + .../IndexManagement/AliasDefinition.g.cs | 326 +- .../IndexManagement/DataStreamLifecycle.g.cs | 53 - ...DataStreamLifecycleRolloverConditions.g.cs | 166 +- .../DataStreamLifecycleWithRollover.g.cs | 147 +- .../DataStreamStats.g.cs} | 42 +- .../DataStreamWithLifecycle.g.cs | 2 +- .../IndexSettingsLifecycle.g.cs | 28 + .../Types/IndexManagement/IndexTemplate.g.cs | 530 +- .../IndexTemplateDataStreamConfiguration.g.cs | 56 +- .../IndexManagement/IndexTemplateSummary.g.cs | 363 +- .../IndexManagement/MappingLimitSettings.g.cs | 55 +- .../MappingLimitSettingsSourceFields.g.cs | 59 + .../IndexManagement/ResolveClusterInfo.g.cs | 4 +- .../Inference/InferenceChunkingSettings.g.cs | 299 + .../Types/Inference/InferenceEndpoint.g.cs | 56 + .../Inference/InferenceEndpointInfo.g.cs | 8 + .../Types/Ingest/DocumentSimulation.g.cs | 6 +- .../Ingest/{IngestInfo.g.cs => Ingest.g.cs} | 2 +- .../Types/MachineLearning/AnomalyCause.g.cs | 28 +- .../Types/MachineLearning/CalendarEvent.g.cs | 78 - .../Types/MachineLearning/GeoResults.g.cs | 4 +- .../AggregateMetricDoubleProperty.g.cs | 30 + .../Types/Mapping/BinaryProperty.g.cs | 34 +- .../Types/Mapping/BooleanProperty.g.cs | 34 +- .../Types/Mapping/ByteNumberProperty.g.cs | 30 + .../Types/Mapping/CompletionProperty.g.cs | 34 +- .../Mapping/ConstantKeywordProperty.g.cs | 30 + .../Types/Mapping/DateNanosProperty.g.cs | 34 +- .../Types/Mapping/DateProperty.g.cs | 34 +- .../Types/Mapping/DateRangeProperty.g.cs | 34 +- .../Mapping/DenseVectorIndexOptions.g.cs | 89 +- .../Types/Mapping/DenseVectorProperty.g.cs | 209 +- .../Types/Mapping/DoubleNumberProperty.g.cs | 30 + .../Types/Mapping/DoubleRangeProperty.g.cs | 34 +- .../Types/Mapping/DynamicProperty.g.cs | 30 + .../Types/Mapping/FieldAliasProperty.g.cs | 34 +- .../Types/Mapping/FlattenedProperty.g.cs | 34 +- .../Types/Mapping/FloatNumberProperty.g.cs | 30 + .../Types/Mapping/FloatRangeProperty.g.cs | 34 +- .../Types/Mapping/GeoPointProperty.g.cs | 34 +- .../Types/Mapping/GeoShapeProperty.g.cs | 34 +- .../Mapping/HalfFloatNumberProperty.g.cs | 30 + .../Types/Mapping/HistogramProperty.g.cs | 34 +- .../Types/Mapping/IcuCollationProperty.g.cs | 30 + .../Types/Mapping/IntegerNumberProperty.g.cs | 30 + .../Types/Mapping/IntegerRangeProperty.g.cs | 34 +- .../_Generated/Types/Mapping/IpProperty.g.cs | 30 + .../Types/Mapping/IpRangeProperty.g.cs | 34 +- .../Types/Mapping/JoinProperty.g.cs | 34 +- .../Types/Mapping/KeywordProperty.g.cs | 30 + .../Types/Mapping/LongNumberProperty.g.cs | 30 + .../Types/Mapping/LongRangeProperty.g.cs | 34 +- .../Types/Mapping/Murmur3HashProperty.g.cs | 34 +- .../Types/Mapping/NestedProperty.g.cs | 34 +- .../Types/Mapping/ObjectProperty.g.cs | 34 +- .../Mapping/PassthroughObjectProperty.g.cs | 452 - .../Types/Mapping/PercolatorProperty.g.cs | 34 +- .../Types/Mapping/PointProperty.g.cs | 34 +- .../_Generated/Types/Mapping/Properties.g.cs | 10 - .../Types/Mapping/RankFeatureProperty.g.cs | 34 +- .../Types/Mapping/RankFeaturesProperty.g.cs | 34 +- .../Mapping/ScaledFloatNumberProperty.g.cs | 30 + .../Mapping/SearchAsYouTypeProperty.g.cs | 30 + .../Types/Mapping/SemanticTextProperty.g.cs | 61 +- .../Types/Mapping/ShapeProperty.g.cs | 34 +- .../Types/Mapping/ShortNumberProperty.g.cs | 30 + .../Types/Mapping/SparseVectorProperty.g.cs | 34 +- .../Types/Mapping/TextProperty.g.cs | 30 + .../Types/Mapping/TokenCountProperty.g.cs | 34 +- .../Mapping/UnsignedLongNumberProperty.g.cs | 30 + .../Types/Mapping/VersionProperty.g.cs | 34 +- .../Types/Mapping/WildcardProperty.g.cs | 34 +- .../Types/Nodes/NodeReloadResult.g.cs | 16 +- .../Types/QueryDsl/FieldAndFormat.g.cs | 20 +- .../Types/QueryDsl/GeoGridQuery.g.cs | 424 + .../_Generated/Types/QueryDsl/Query.g.cs | 20 + .../Types/QueryDsl/TermsSetQuery.g.cs | 12 +- .../Types/QueryRules/QueryRule.g.cs | 51 + .../Types/QueryRules/QueryRuleActions.g.cs | 53 + .../Types/QueryRules/QueryRuleCriteria.g.cs | 144 + .../QueryRules/QueryRulesetListItem.g.cs | 11 +- .../_Generated/Types/Retries.g.cs | 11 + .../Types/Rollup/RollupCapabilities.g.cs | 5 + .../_Generated/Types/Rollup/RollupJob.g.cs | 19 + .../SearchApplication/SearchApplication.g.cs | 136 +- .../SearchApplicationListItem.g.cs | 63 + .../SearchApplicationParameters.g.cs | 151 - .../Security/ApplicationPrivilegesCheck.g.cs | 10 +- .../Types/Security/Authentication.g.cs | 54 + .../Types/Security/AuthenticationRealm.g.cs | 38 + .../Types/Security/GrantApiKey.g.cs | 3 - .../_Generated/Types/Security/Hint.g.cs | 4 +- .../Types/Security/IndexPrivilegesCheck.g.cs | 8 +- .../Types/Security/KibanaToken.g.cs | 12 + .../_Generated/Types/Security/QueryRole.g.cs | 7 +- .../Security/RemoteUserIndicesPrivileges.g.cs | 74 + .../Types/Security/Restriction.g.cs | 12 + .../_Generated/Types/Security/Role.g.cs | 4 +- .../Types/Security/RoleDescriptor.g.cs | 21 +- .../Types/Security/RoleDescriptorRead.g.cs | 7 +- .../Types/Security/SecuritySettings.g.cs | 152 + .../_Generated/Types/ShardStatistics.g.cs | 9 +- .../Simulate/IngestDocumentSimulation.g.cs | 170 + .../SimulateIngestDocumentResult.g.cs} | 10 +- .../Types/Snapshot/BlobDetails.g.cs | 90 + .../Types/Snapshot/DetailsInfo.g.cs | 97 + .../Types/Snapshot/ReadBlobDetails.g.cs | 110 + .../Types/Snapshot/ReadSummaryInfo.g.cs | 119 + .../SnapshotNodeInfo.g.cs} | 8 +- .../Types/Snapshot/SummaryInfo.g.cs | 47 + .../Types/Snapshot/WriteSummaryInfo.g.cs | 87 + .../SnapshotLifecycle.g.cs | 19 + .../_Generated/Types/StoredScript.g.cs | 8 +- .../Types/Synonyms/SynonymRule.g.cs | 10 +- .../Types/Xpack/IlmPolicyStatistics.g.cs | 2 +- .../_Generated/Types/Xpack/Phase.g.cs | 36 + .../_Generated/Types/Xpack/Phases.g.cs | 42 + src/Playground/Playground.csproj | 2 +- 424 files changed, 86612 insertions(+), 16376 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Bulk.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchApplication.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/{Core/HealthReport/FileSettingsIndicator.g.cs => IndexManagement/DataStreamStats.g.cs} (61%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/{IngestInfo.g.cs => Ingest.g.cs} (97%) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/{Core/HealthReport/FileSettingsIndicatorDetails.g.cs => Simulate/SimulateIngestDocumentResult.g.cs} (81%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/{Nodes/NodeReloadError.g.cs => Snapshot/SnapshotNodeInfo.g.cs} (86%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index d21f64b5921..6ff6841ca78 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -18,7 +18,7 @@ annotations - + diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 31fbe774bcc..0fbea097dfe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -60,6 +60,9 @@ 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 EsqlAsyncQuery = new ApiUrls(new[] { "_query/async" }); + internal static ApiUrls EsqlAsyncQueryDelete = new ApiUrls(new[] { "_query/async/{id}" }); + internal static ApiUrls EsqlAsyncQueryGet = new ApiUrls(new[] { "_query/async/{id}" }); internal static ApiUrls EsqlQuery = new ApiUrls(new[] { "_query" }); internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "_features" }); internal static ApiUrls FeaturesResetFeatures = new ApiUrls(new[] { "_features/_reset" }); @@ -100,6 +103,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" }); internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" }); internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" }); + internal static ApiUrls IndexManagementGetDataLifecycleStats = new ApiUrls(new[] { "_lifecycle/stats" }); internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" }); internal static ApiUrls IndexManagementGetFieldMapping = new ApiUrls(new[] { "_mapping/field/{fields}", "{index}/_mapping/field/{fields}" }); internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" }); @@ -135,6 +139,8 @@ internal static class ApiUrlLookup internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); + internal static ApiUrls InferenceStreamInference = new ApiUrls(new[] { "_inference/{inference_id}/_stream", "_inference/{task_type}/{inference_id}/_stream" }); + internal static ApiUrls InferenceUpdate = new ApiUrls(new[] { "_inference/{inference_id}/_update", "_inference/{task_type}/{inference_id}/_update" }); internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" }); internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" }); @@ -300,13 +306,16 @@ internal static class ApiUrlLookup internal static ApiUrls SearchApplicationGet = new ApiUrls(new[] { "_application/search_application/{name}" }); internal static ApiUrls SearchApplicationGetBehavioralAnalytics = new ApiUrls(new[] { "_application/analytics", "_application/analytics/{name}" }); internal static ApiUrls SearchApplicationList = new ApiUrls(new[] { "_application/search_application" }); + internal static ApiUrls SearchApplicationPostBehavioralAnalyticsEvent = new ApiUrls(new[] { "_application/analytics/{collection_name}/event/{event_type}" }); internal static ApiUrls SearchApplicationPut = new ApiUrls(new[] { "_application/search_application/{name}" }); internal static ApiUrls SearchApplicationPutBehavioralAnalytics = new ApiUrls(new[] { "_application/analytics/{name}" }); + internal static ApiUrls SearchApplicationRenderQuery = new ApiUrls(new[] { "_application/search_application/{name}/_render_query" }); internal static ApiUrls SearchApplicationSearch = new ApiUrls(new[] { "_application/search_application/{name}/_search" }); internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" }); internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "_security/_authenticate" }); internal static ApiUrls SecurityBulkDeleteRole = new ApiUrls(new[] { "_security/role" }); internal static ApiUrls SecurityBulkPutRole = new ApiUrls(new[] { "_security/role" }); + internal static ApiUrls SecurityBulkUpdateApiKeys = new ApiUrls(new[] { "_security/api_key/_bulk_update" }); internal static ApiUrls SecurityChangePassword = new ApiUrls(new[] { "_security/user/{username}/_password", "_security/user/_password" }); internal static ApiUrls SecurityClearApiKeyCache = new ApiUrls(new[] { "_security/api_key/{ids}/_clear_cache" }); internal static ApiUrls SecurityClearCachedPrivileges = new ApiUrls(new[] { "_security/privilege/{application}/_clear_cache" }); @@ -316,6 +325,7 @@ internal static class ApiUrlLookup internal static ApiUrls SecurityCreateApiKey = new ApiUrls(new[] { "_security/api_key" }); internal static ApiUrls SecurityCreateCrossClusterApiKey = new ApiUrls(new[] { "_security/cross_cluster/api_key" }); internal static ApiUrls SecurityCreateServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}", "_security/service/{namespace}/{service}/credential/token" }); + internal static ApiUrls SecurityDelegatePki = new ApiUrls(new[] { "_security/delegate_pki" }); internal static ApiUrls SecurityDeletePrivileges = new ApiUrls(new[] { "_security/privilege/{application}/{name}" }); internal static ApiUrls SecurityDeleteRole = new ApiUrls(new[] { "_security/role/{name}" }); internal static ApiUrls SecurityDeleteRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}" }); @@ -334,6 +344,7 @@ internal static class ApiUrlLookup internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}", "_security/role_mapping" }); internal static ApiUrls SecurityGetServiceAccounts = new ApiUrls(new[] { "_security/service/{namespace}/{service}", "_security/service/{namespace}", "_security/service" }); internal static ApiUrls SecurityGetServiceCredentials = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential" }); + internal static ApiUrls SecurityGetSettings = new ApiUrls(new[] { "_security/settings" }); internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "_security/oauth2/token" }); internal static ApiUrls SecurityGetUser = new ApiUrls(new[] { "_security/user/{username}", "_security/user" }); internal static ApiUrls SecurityGetUserPrivileges = new ApiUrls(new[] { "_security/user/_privileges" }); @@ -343,6 +354,9 @@ internal static class ApiUrlLookup internal static ApiUrls SecurityHasPrivilegesUserProfile = new ApiUrls(new[] { "_security/profile/_has_privileges" }); internal static ApiUrls SecurityInvalidateApiKey = new ApiUrls(new[] { "_security/api_key" }); internal static ApiUrls SecurityInvalidateToken = new ApiUrls(new[] { "_security/oauth2/token" }); + internal static ApiUrls SecurityOidcAuthenticate = new ApiUrls(new[] { "_security/oidc/authenticate" }); + internal static ApiUrls SecurityOidcLogout = new ApiUrls(new[] { "_security/oidc/logout" }); + internal static ApiUrls SecurityOidcPrepareAuthentication = new ApiUrls(new[] { "_security/oidc/prepare" }); internal static ApiUrls SecurityPutPrivileges = new ApiUrls(new[] { "_security/privilege" }); internal static ApiUrls SecurityPutRole = new ApiUrls(new[] { "_security/role/{name}" }); internal static ApiUrls SecurityPutRoleMapping = new ApiUrls(new[] { "_security/role_mapping/{name}" }); @@ -359,7 +373,9 @@ internal static class ApiUrlLookup internal static ApiUrls SecuritySuggestUserProfiles = new ApiUrls(new[] { "_security/profile/_suggest" }); internal static ApiUrls SecurityUpdateApiKey = new ApiUrls(new[] { "_security/api_key/{id}" }); internal static ApiUrls SecurityUpdateCrossClusterApiKey = new ApiUrls(new[] { "_security/cross_cluster/api_key/{id}" }); + internal static ApiUrls SecurityUpdateSettings = new ApiUrls(new[] { "_security/settings" }); internal static ApiUrls SecurityUpdateUserProfileData = new ApiUrls(new[] { "_security/profile/{uid}/_data" }); + internal static ApiUrls SimulateIngest = new ApiUrls(new[] { "_ingest/_simulate", "_ingest/{index}/_simulate" }); internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" }); internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" }); internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" }); @@ -377,6 +393,7 @@ internal static class ApiUrlLookup internal static ApiUrls SnapshotLifecycleManagementPutLifecycle = new ApiUrls(new[] { "_slm/policy/{policy_id}" }); internal static ApiUrls SnapshotLifecycleManagementStart = new ApiUrls(new[] { "_slm/start" }); internal static ApiUrls SnapshotLifecycleManagementStop = new ApiUrls(new[] { "_slm/stop" }); + internal static ApiUrls SnapshotRepositoryAnalyze = new ApiUrls(new[] { "_snapshot/{repository}/_analyze" }); internal static ApiUrls SnapshotRepositoryVerifyIntegrity = new ApiUrls(new[] { "_snapshot/{repository}/_verify_integrity" }); internal static ApiUrls SnapshotRestore = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_restore" }); internal static ApiUrls SnapshotStatus = new ApiUrls(new[] { "_snapshot/_status", "_snapshot/{repository}/_status", "_snapshot/{repository}/{snapshot}/_status" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index db47e9c2ee2..d44016dcd11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -110,6 +110,14 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + /// + /// + /// Specifies how long the async search needs to be available. + /// Ongoing async searches and any saved search results are deleted after this period. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + /// /// /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout. @@ -130,6 +138,7 @@ public sealed partial class SubmitAsyncSearchRequestParameters : RequestParamete /// /// public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } + public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } /// /// @@ -762,6 +771,15 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + /// + /// + /// Specifies how long the async search needs to be available. + /// Ongoing async searches and any saved search results are deleted after this period. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + /// /// /// If true, results are stored for later retrieval when the search completes within the wait_for_completion_timeout. @@ -785,6 +803,8 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) /// [JsonIgnore] public long? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } + [JsonIgnore] + public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } /// /// @@ -1169,9 +1189,11 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public SubmitAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); + public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); @@ -2290,9 +2312,11 @@ public SubmitAsyncSearchRequestDescriptor() public SubmitAsyncSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SubmitAsyncSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public SubmitAsyncSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); public SubmitAsyncSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); public SubmitAsyncSearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SubmitAsyncSearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); + public SubmitAsyncSearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SubmitAsyncSearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SubmitAsyncSearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); public SubmitAsyncSearchRequestDescriptor RequestCache(bool? requestCache = true) => Qs("request_cache", requestCache); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index 6e2ebd29f2a..ef6467a0c3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -34,23 +34,25 @@ public sealed partial class BulkRequestParameters : RequestParameters { /// /// - /// If true, the response will include the ingest pipelines that were executed for each index or create. + /// If true, the response will include the ingest pipelines that were run for each index or create. /// /// public bool? ListExecutedPipelines { get => Q("list_executed_pipelines"); set => Q("list_executed_pipelines", value); } /// /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. + /// The pipeline identifier to use to preprocess incoming documents. + /// If the index has a default ingest pipeline specified, setting the value to _none turns off the default ingest pipeline for this request. + /// If a final pipeline is configured, it will always run regardless of the value of this parameter. /// /// public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, wait for a refresh to make this operation visible to search. + /// If false, do nothing with refreshes. /// Valid values: true, false, wait_for. /// /// @@ -58,28 +60,28 @@ public sealed partial class BulkRequestParameters : RequestParameters /// /// - /// If true, the request’s actions must target an index alias. + /// If true, the request's actions must target an index alias. /// /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } /// /// - /// If true, the request's actions must target a data stream (existing or to-be-created). + /// If true, the request's actions must target a data stream (existing or to be created). /// /// public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// true or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or contains a list of fields to return. /// /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } @@ -87,6 +89,8 @@ public sealed partial class BulkRequestParameters : RequestParameters /// /// /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } @@ -94,13 +98,18 @@ public sealed partial class BulkRequestParameters : RequestParameters /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// /// - /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// The period each action waits for the following operations: automatic index creation, dynamic mapping updates, and waiting for active shards. + /// The default is 1m (one minute), which guarantees Elasticsearch waits for at least the timeout before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -108,7 +117,8 @@ public sealed partial class BulkRequestParameters : RequestParameters /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default is 1, which waits for each primary shard to be active. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -117,9 +127,192 @@ public sealed partial class BulkRequestParameters : RequestParameters /// /// /// Bulk index or delete documents. -/// Performs multiple indexing or delete operations in a single API call. +/// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. +/// +/// +/// +/// +/// To use the index action, you must have the create, index, or write index privilege. +/// +/// +/// +/// +/// To use the delete action, you must have the delete or write index privilege. +/// +/// +/// +/// +/// To use the update action, you must have the index or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: +/// +/// +/// action_and_meta_data\n +/// optional_source\n +/// action_and_meta_data\n +/// optional_source\n +/// .... +/// action_and_meta_data\n +/// optional_source\n +/// +/// +/// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. +/// A create action fails if a document with the same ID already exists in the target +/// An index action adds or replaces a document as necessary. +/// +/// +/// NOTE: Data streams support only the create action. +/// To update or delete a document in a data stream, you must target the backing index containing the document. +/// +/// +/// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. +/// +/// +/// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. +/// +/// +/// NOTE: The final line of data must end with a newline character (\n). +/// Each newline character may be preceded by a carriage return (\r). +/// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. +/// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. +/// +/// +/// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. +/// +/// +/// A note on the format: the idea here is to make processing as fast as possible. +/// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. +/// +/// +/// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. +/// +/// +/// There is no "correct" number of actions to perform in a single bulk request. +/// Experiment with different settings to find the optimal size for your particular workload. +/// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. +/// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. +/// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. +/// +/// +/// Client suppport for bulk requests +/// +/// +/// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: +/// +/// +/// +/// +/// Go: Check out esutil.BulkIndexer +/// +/// +/// +/// +/// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll +/// +/// +/// +/// +/// Python: Check out elasticsearch.helpers.* +/// +/// +/// +/// +/// JavaScript: Check out client.helpers.* +/// +/// +/// +/// +/// .NET: Check out BulkAllObservable +/// +/// +/// +/// +/// PHP: Check out bulk indexing. +/// +/// +/// +/// +/// Submitting bulk requests with cURL +/// +/// +/// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. +/// The latter doesn't preserve newlines. For example: +/// +/// +/// $ cat requests +/// { "index" : { "_index" : "test", "_id" : "1" } } +/// { "field1" : "value1" } +/// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo +/// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} +/// +/// +/// Optimistic concurrency control +/// +/// +/// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. +/// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. +/// +/// +/// Versioning +/// +/// +/// Each bulk item can include the version value using the version field. +/// It automatically follows the behavior of the index or delete operation based on the _version mapping. +/// It also support the version_type. +/// +/// +/// Routing +/// +/// +/// Each bulk item can include the routing value using the routing field. +/// It automatically follows the behavior of the index or delete operation based on the _routing mapping. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// Wait for active shards +/// +/// +/// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. +/// +/// +/// Refresh +/// +/// +/// Control when the changes made by this request are visible to search. +/// +/// +/// NOTE: Only the shards that receive the bulk request will be affected by refresh. +/// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. +/// The request will only wait for those three shards to refresh. +/// The other two shards that make up the index do not participate in the _bulk request at all. +/// /// public sealed partial class BulkRequest : PlainRequest { @@ -141,7 +334,7 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// If true, the response will include the ingest pipelines that were executed for each index or create. + /// If true, the response will include the ingest pipelines that were run for each index or create. /// /// [JsonIgnore] @@ -149,9 +342,9 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. + /// The pipeline identifier to use to preprocess incoming documents. + /// If the index has a default ingest pipeline specified, setting the value to _none turns off the default ingest pipeline for this request. + /// If a final pipeline is configured, it will always run regardless of the value of this parameter. /// /// [JsonIgnore] @@ -159,7 +352,9 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, wait for a refresh to make this operation visible to search. + /// If false, do nothing with refreshes. /// Valid values: true, false, wait_for. /// /// @@ -168,7 +363,7 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// If true, the request’s actions must target an index alias. + /// If true, the request's actions must target an index alias. /// /// [JsonIgnore] @@ -176,7 +371,7 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// If true, the request's actions must target a data stream (existing or to-be-created). + /// If true, the request's actions must target a data stream (existing or to be created). /// /// [JsonIgnore] @@ -184,7 +379,7 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// [JsonIgnore] @@ -192,7 +387,7 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// true or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or contains a list of fields to return. /// /// [JsonIgnore] @@ -201,6 +396,8 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -209,6 +406,9 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -216,7 +416,9 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// - /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// The period each action waits for the following operations: automatic index creation, dynamic mapping updates, and waiting for active shards. + /// The default is 1m (one minute), which guarantees Elasticsearch waits for at least the timeout before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// [JsonIgnore] @@ -225,7 +427,8 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default is 1, which waits for each primary shard to be active. /// /// [JsonIgnore] @@ -235,9 +438,192 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r /// /// /// Bulk index or delete documents. -/// Performs multiple indexing or delete operations in a single API call. +/// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. +/// +/// +/// +/// +/// To use the index action, you must have the create, index, or write index privilege. +/// +/// +/// +/// +/// To use the delete action, you must have the delete or write index privilege. +/// +/// +/// +/// +/// To use the update action, you must have the index or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: +/// +/// +/// action_and_meta_data\n +/// optional_source\n +/// action_and_meta_data\n +/// optional_source\n +/// .... +/// action_and_meta_data\n +/// optional_source\n +/// +/// +/// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. +/// A create action fails if a document with the same ID already exists in the target +/// An index action adds or replaces a document as necessary. +/// +/// +/// NOTE: Data streams support only the create action. +/// To update or delete a document in a data stream, you must target the backing index containing the document. +/// +/// +/// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. +/// +/// +/// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. +/// +/// +/// NOTE: The final line of data must end with a newline character (\n). +/// Each newline character may be preceded by a carriage return (\r). +/// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. +/// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. +/// +/// +/// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. +/// +/// +/// A note on the format: the idea here is to make processing as fast as possible. +/// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. +/// +/// +/// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. +/// +/// +/// There is no "correct" number of actions to perform in a single bulk request. +/// Experiment with different settings to find the optimal size for your particular workload. +/// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. +/// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. +/// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. +/// +/// +/// Client suppport for bulk requests +/// +/// +/// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: +/// +/// +/// +/// +/// Go: Check out esutil.BulkIndexer +/// +/// +/// +/// +/// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll +/// +/// +/// +/// +/// Python: Check out elasticsearch.helpers.* +/// +/// +/// +/// +/// JavaScript: Check out client.helpers.* +/// +/// +/// +/// +/// .NET: Check out BulkAllObservable +/// +/// +/// +/// +/// PHP: Check out bulk indexing. +/// +/// +/// +/// +/// Submitting bulk requests with cURL +/// +/// +/// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. +/// The latter doesn't preserve newlines. For example: +/// +/// +/// $ cat requests +/// { "index" : { "_index" : "test", "_id" : "1" } } +/// { "field1" : "value1" } +/// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo +/// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} +/// +/// +/// Optimistic concurrency control +/// +/// +/// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. +/// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. +/// +/// +/// Versioning +/// +/// +/// Each bulk item can include the version value using the version field. +/// It automatically follows the behavior of the index or delete operation based on the _version mapping. +/// It also support the version_type. +/// +/// +/// Routing +/// +/// +/// Each bulk item can include the routing value using the routing field. +/// It automatically follows the behavior of the index or delete operation based on the _routing mapping. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// Wait for active shards +/// +/// +/// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. +/// +/// +/// Refresh +/// +/// +/// Control when the changes made by this request are visible to search. +/// +/// +/// NOTE: Only the shards that receive the bulk request will be affected by refresh. +/// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. +/// The request will only wait for those three shards to refresh. +/// The other two shards that make up the index do not participate in the _bulk request at all. +/// /// public sealed partial class BulkRequestDescriptor : RequestDescriptor, BulkRequestParameters> { @@ -287,9 +673,192 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Bulk index or delete documents. -/// Performs multiple indexing or delete operations in a single API call. +/// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. +/// +/// +/// +/// +/// To use the index action, you must have the create, index, or write index privilege. +/// +/// +/// +/// +/// To use the delete action, you must have the delete or write index privilege. +/// +/// +/// +/// +/// To use the update action, you must have the index or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: +/// +/// +/// action_and_meta_data\n +/// optional_source\n +/// action_and_meta_data\n +/// optional_source\n +/// .... +/// action_and_meta_data\n +/// optional_source\n +/// +/// +/// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. +/// A create action fails if a document with the same ID already exists in the target +/// An index action adds or replaces a document as necessary. +/// +/// +/// NOTE: Data streams support only the create action. +/// To update or delete a document in a data stream, you must target the backing index containing the document. +/// +/// +/// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. +/// +/// +/// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. +/// +/// +/// NOTE: The final line of data must end with a newline character (\n). +/// Each newline character may be preceded by a carriage return (\r). +/// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. +/// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. +/// +/// +/// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. +/// +/// +/// A note on the format: the idea here is to make processing as fast as possible. +/// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. +/// +/// +/// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. +/// +/// +/// There is no "correct" number of actions to perform in a single bulk request. +/// Experiment with different settings to find the optimal size for your particular workload. +/// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. +/// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. +/// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. +/// +/// +/// Client suppport for bulk requests +/// +/// +/// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: +/// +/// +/// +/// +/// Go: Check out esutil.BulkIndexer +/// +/// +/// +/// +/// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll +/// +/// +/// +/// +/// Python: Check out elasticsearch.helpers.* +/// +/// +/// +/// +/// JavaScript: Check out client.helpers.* +/// +/// +/// +/// +/// .NET: Check out BulkAllObservable +/// +/// +/// +/// +/// PHP: Check out bulk indexing. +/// +/// +/// +/// +/// Submitting bulk requests with cURL +/// +/// +/// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. +/// The latter doesn't preserve newlines. For example: +/// +/// +/// $ cat requests +/// { "index" : { "_index" : "test", "_id" : "1" } } +/// { "field1" : "value1" } +/// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo +/// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} +/// +/// +/// Optimistic concurrency control +/// +/// +/// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. +/// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. +/// +/// +/// Versioning +/// +/// +/// Each bulk item can include the version value using the version field. +/// It automatically follows the behavior of the index or delete operation based on the _version mapping. +/// It also support the version_type. +/// +/// +/// Routing +/// +/// +/// Each bulk item can include the routing value using the routing field. +/// It automatically follows the behavior of the index or delete operation based on the _routing mapping. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// Wait for active shards +/// +/// +/// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. +/// +/// +/// Refresh +/// +/// +/// Control when the changes made by this request are visible to search. +/// +/// +/// NOTE: Only the shards that receive the bulk request will be affected by refresh. +/// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. +/// The request will only wait for those three shards to refresh. +/// The other two shards that make up the index do not participate in the _bulk request at all. +/// /// public sealed partial class BulkRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs index a2c342a8ee7..9bb66902b31 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkResponse.g.cs @@ -28,10 +28,21 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class BulkResponse : ElasticsearchResponse { + /// + /// + /// If true, one or more of the operations in the bulk request did not complete successfully. + /// + /// [JsonInclude, JsonPropertyName("errors")] public bool Errors { get; init; } [JsonInclude, JsonPropertyName("ingest_took")] public long? IngestTook { get; init; } + + /// + /// + /// The length of time, in milliseconds, it took to process the bulk request. + /// + /// [JsonInclude, JsonPropertyName("took")] public long Took { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs index 156d7b50847..1399f8ad99c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs @@ -37,8 +37,6 @@ public sealed partial class ClearScrollRequestParameters : RequestParameters /// /// /// Clear a scrolling search. -/// -/// /// Clear the search context and results for a scrolling search. /// /// @@ -54,7 +52,7 @@ public sealed partial class ClearScrollRequest : PlainRequest /// - /// Scroll IDs to clear. + /// The scroll IDs to clear. /// To clear all scroll IDs, use _all. /// /// @@ -65,8 +63,6 @@ public sealed partial class ClearScrollRequest : PlainRequest /// /// Clear a scrolling search. -/// -/// /// Clear the search context and results for a scrolling search. /// /// @@ -90,7 +86,7 @@ public ClearScrollRequestDescriptor() /// /// - /// Scroll IDs to clear. + /// The scroll IDs to clear. /// To clear all scroll IDs, use _all. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs index 29bfde63e45..09f12a13975 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollResponse.g.cs @@ -28,8 +28,20 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class ClearScrollResponse : ElasticsearchResponse { + /// + /// + /// The number of scrolling search requests cleared. + /// + /// [JsonInclude, JsonPropertyName("num_freed")] public int NumFreed { get; init; } + + /// + /// + /// If true, the request succeeded. + /// This does not indicate whether any scrolling search requests were cleared. + /// + /// [JsonInclude, JsonPropertyName("succeeded")] public bool Succeeded { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs index 4bc64124f7a..72511ba0d11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -37,8 +37,6 @@ public sealed partial class ClosePointInTimeRequestParameters : RequestParameter /// /// /// Close a point in time. -/// -/// /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// A point in time is automatically closed when the keep_alive period has elapsed. @@ -67,8 +65,6 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest /// /// Close a point in time. -/// -/// /// A point in time must be opened explicitly before being used in search requests. /// The keep_alive parameter tells Elasticsearch how long it should persist. /// A point in time is automatically closed when the keep_alive period has elapsed. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs index 1fdf5b5b3ae..da1514d5bcc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeResponse.g.cs @@ -28,8 +28,19 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class ClosePointInTimeResponse : ElasticsearchResponse { + /// + /// + /// The number of search contexts that were successfully closed. + /// + /// [JsonInclude, JsonPropertyName("num_freed")] public int NumFreed { get; init; } + + /// + /// + /// If true, all search contexts associated with the point-in-time ID were successfully closed. + /// + /// [JsonInclude, JsonPropertyName("succeeded")] public bool Succeeded { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs index b0db2cd21b4..c0ef544063c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteComponentTemplateRequest.g.cs @@ -52,7 +52,6 @@ public sealed partial class DeleteComponentTemplateRequestParameters : RequestPa /// /// /// Delete component templates. -/// Deletes component templates. /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// @@ -92,7 +91,6 @@ public DeleteComponentTemplateRequest(Elastic.Clients.Elasticsearch.Names name) /// /// /// Delete component templates. -/// Deletes component templates. /// Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs index a344e42d854..15751974598 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetComponentTemplateRequest.g.cs @@ -66,7 +66,7 @@ public sealed partial class GetComponentTemplateRequestParameters : RequestParam /// /// /// Get component templates. -/// Retrieves information about component templates. +/// Get information about component templates. /// /// public sealed partial class GetComponentTemplateRequest : PlainRequest @@ -125,7 +125,7 @@ public GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : b /// /// /// Get component templates. -/// Retrieves information about component templates. +/// Get information about component templates. /// /// public sealed partial class GetComponentTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs index 2670838909f..6189a98d131 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PutComponentTemplateRequest.g.cs @@ -51,7 +51,6 @@ public sealed partial class PutComponentTemplateRequestParameters : RequestParam /// /// /// 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. /// /// @@ -71,6 +70,13 @@ public sealed partial class PutComponentTemplateRequestParameters : RequestParam /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// +/// +/// Applying component templates +/// +/// +/// You cannot directly apply a component template to a data stream or index. +/// To be applied, a component template must be included in an index template's composed_of list. +/// /// public sealed partial class PutComponentTemplateRequest : PlainRequest { @@ -115,7 +121,7 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : ba /// /// /// Optional user metadata about the component template. - /// May have any contents. This map is not automatically generated by Elasticsearch. + /// It may have any contents. This map is not automatically generated by Elasticsearch. /// This information is stored in the cluster state, so keeping it short is preferable. /// To unset _meta, replace the template without specifying this information. /// @@ -145,7 +151,6 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : ba /// /// /// 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. /// /// @@ -165,6 +170,13 @@ public PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : ba /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// +/// +/// Applying component templates +/// +/// +/// You cannot directly apply a component template to a data stream or index. +/// To be applied, a component template must be included in an index template's composed_of list. +/// /// public sealed partial class PutComponentTemplateRequestDescriptor : RequestDescriptor, PutComponentTemplateRequestParameters> { @@ -213,7 +225,7 @@ public PutComponentTemplateRequestDescriptor Deprecated(bool? depreca /// /// /// Optional user metadata about the component template. - /// May have any contents. This map is not automatically generated by Elasticsearch. + /// It may have any contents. This map is not automatically generated by Elasticsearch. /// This information is stored in the cluster state, so keeping it short is preferable. /// To unset _meta, replace the template without specifying this information. /// @@ -310,7 +322,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// 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. /// /// @@ -330,6 +341,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// +/// +/// Applying component templates +/// +/// +/// You cannot directly apply a component template to a data stream or index. +/// To be applied, a component template must be included in an index template's composed_of list. +/// /// public sealed partial class PutComponentTemplateRequestDescriptor : RequestDescriptor { @@ -378,7 +396,7 @@ public PutComponentTemplateRequestDescriptor Deprecated(bool? deprecated = true) /// /// /// Optional user metadata about the component template. - /// May have any contents. This map is not automatically generated by Elasticsearch. + /// It may have any contents. This map is not automatically generated by Elasticsearch. /// This information is stored in the cluster state, so keeping it short is preferable. /// To unset _meta, replace the template without specifying this information. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index a6dcb0989ca..2ace77ec6b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -36,14 +36,15 @@ public sealed partial class CountRequestParameters : RequestParameters /// /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. /// This behavior applies even if the request targets other open indices. + /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } @@ -51,7 +52,7 @@ public sealed partial class CountRequestParameters : RequestParameters /// /// /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } @@ -59,35 +60,28 @@ public sealed partial class CountRequestParameters : RequestParameters /// /// /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. + /// This parameter can be used only when the q query string parameter is specified. /// /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The field to use as a default when no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Df { get => Q("df"); set => Q("df", value); } /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. + /// It supports comma-separated values, such as open,hidden. /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - /// /// /// If false, the request returns an error if it targets a missing or closed index. @@ -98,45 +92,52 @@ public sealed partial class CountRequestParameters : RequestParameters /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// /// - /// Sets the minimum _score value that documents must have to be included in the result. + /// The minimum _score value that documents must have to be included in the result. /// /// public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, it is random. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Query in the Lucene query string syntax. + /// The query in Lucene query string syntax. This parameter cannot be used with a request body. /// /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. /// + /// + /// IMPORTANT: Use with caution. + /// Elasticsearch applies this parameter to each shard handling the request. + /// When possible, let Elasticsearch perform early termination automatically. + /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + /// /// public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } } @@ -146,6 +147,18 @@ public sealed partial class CountRequestParameters : RequestParameters /// Count search results. /// Get the number of documents matching a query. /// +/// +/// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. +/// The query is optional. When no query is provided, the API uses match_all to count all the documents. +/// +/// +/// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. +/// +/// +/// The operation is broadcast across all shards. +/// For each shard ID group, a replica is chosen and the search is run against it. +/// This means that replicas increase the scalability of the count. +/// /// public partial class CountRequest : PlainRequest { @@ -169,6 +182,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. /// This behavior applies even if the request targets other open indices. + /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. /// /// [JsonIgnore] @@ -176,8 +190,8 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -186,7 +200,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -195,7 +209,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -203,8 +217,8 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The field to use as a default when no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -212,22 +226,14 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. + /// It supports comma-separated values, such as open,hidden. /// /// [JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - /// - /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - /// /// /// If false, the request returns an error if it targets a missing or closed index. @@ -239,6 +245,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -246,7 +253,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Sets the minimum _score value that documents must have to be included in the result. + /// The minimum _score value that documents must have to be included in the result. /// /// [JsonIgnore] @@ -254,8 +261,8 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, it is random. /// /// [JsonIgnore] @@ -263,7 +270,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Query in the Lucene query string syntax. + /// The query in Lucene query string syntax. This parameter cannot be used with a request body. /// /// [JsonIgnore] @@ -271,7 +278,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -279,17 +286,24 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. /// + /// + /// IMPORTANT: Use with caution. + /// Elasticsearch applies this parameter to each shard handling the request. + /// When possible, let Elasticsearch perform early termination automatically. + /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + /// /// [JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// /// - /// Defines the search definition using the Query DSL. + /// Defines the search query using Query DSL. A request body query cannot be used + /// with the q query string parameter. /// /// [JsonInclude, JsonPropertyName("query")] @@ -301,6 +315,18 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// Count search results. /// Get the number of documents matching a query. /// +/// +/// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. +/// The query is optional. When no query is provided, the API uses match_all to count all the documents. +/// +/// +/// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. +/// +/// +/// The operation is broadcast across all shards. +/// For each shard ID group, a replica is chosen and the search is run against it. +/// This means that replicas increase the scalability of the count. +/// /// public sealed partial class CountRequestDescriptor : RequestDescriptor, CountRequestParameters> { @@ -328,7 +354,6 @@ public CountRequestDescriptor() public CountRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public CountRequestDescriptor Df(string? df) => Qs("df", df); public CountRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public CountRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public CountRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public CountRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public CountRequestDescriptor MinScore(double? minScore) => Qs("min_score", minScore); @@ -349,7 +374,8 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.I /// /// - /// Defines the search definition using the Query DSL. + /// Defines the search query using Query DSL. A request body query cannot be used + /// with the q query string parameter. /// /// public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -404,6 +430,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Count search results. /// Get the number of documents matching a query. /// +/// +/// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. +/// The query is optional. When no query is provided, the API uses match_all to count all the documents. +/// +/// +/// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. +/// +/// +/// The operation is broadcast across all shards. +/// For each shard ID group, a replica is chosen and the search is run against it. +/// This means that replicas increase the scalability of the count. +/// /// public sealed partial class CountRequestDescriptor : RequestDescriptor { @@ -431,7 +469,6 @@ public CountRequestDescriptor() public CountRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public CountRequestDescriptor Df(string? df) => Qs("df", df); public CountRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public CountRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public CountRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public CountRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public CountRequestDescriptor MinScore(double? minScore) => Qs("min_score", minScore); @@ -452,7 +489,8 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? ind /// /// - /// Defines the search definition using the Query DSL. + /// Defines the search query using Query DSL. A request body query cannot be used + /// with the q query string parameter. /// /// public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs index e9cf25961c7..f477155194a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs @@ -34,46 +34,55 @@ public sealed partial class CreateRequestParameters : RequestParameters { /// /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. + /// The ID of the pipeline to use to preprocess incoming documents. + /// If the index has a default ingest pipeline specified, setting the value to _none turns off the default ingest pipeline for this request. + /// If a final pipeline is configured, it will always run regardless of the value of this parameter. /// /// public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, it waits for a refresh to make this operation visible to search. + /// If false, it does nothing with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// Elasticsearch waits for at least the specified timeout period before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. + /// + /// + /// This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. + /// Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. + /// By default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// The explicit version number for concurrency control. + /// It must be a non-negative long number. /// /// public long? Version { get => Q("version"); set => Q("version", value); } /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -81,7 +90,8 @@ public sealed partial class CreateRequestParameters : RequestParameters /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// You can set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -89,9 +99,108 @@ public sealed partial class CreateRequestParameters : RequestParameters /// /// -/// 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. +/// Create a new document in the index. +/// +/// +/// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs +/// Using _create guarantees that the document is indexed only if it does not already exist. +/// It returns a 409 response when a document with a same ID already exists in the index. +/// To update an existing document, you must use the /<target>/_doc/ API. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// Automatically create data streams and indices +/// +/// +/// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. +/// +/// +/// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. +/// +/// +/// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. +/// +/// +/// If no mapping exists, the index operation creates a dynamic mapping. +/// By default, new fields and objects are automatically added to the mapping if needed. +/// +/// +/// Automatic index creation is controlled by the action.auto_create_index setting. +/// If it is true, any index can be created automatically. +/// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. +/// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. +/// When a list is specified, the default behaviour is to disallow. +/// +/// +/// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. +/// It does not affect the creation of data streams. +/// +/// +/// Routing +/// +/// +/// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. +/// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. +/// +/// +/// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. +/// This does come at the (very minimal) cost of an additional document parsing pass. +/// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// ** Distributed** +/// +/// +/// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. +/// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. +/// +/// +/// Active shards +/// +/// +/// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. +/// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. +/// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). +/// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. +/// To alter this behavior per operation, use the wait_for_active_shards request parameter. +/// +/// +/// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). +/// Specifying a negative value or a number greater than the number of shard copies will throw an error. +/// +/// +/// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). +/// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. +/// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. +/// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. +/// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. +/// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. +/// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. +/// +/// +/// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. +/// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. +/// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// /// public sealed partial class CreateRequest : PlainRequest, ISelfSerializable @@ -110,9 +219,9 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// ID of the pipeline to use to preprocess incoming documents. - /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. - /// If a final pipeline is configured it will always run, regardless of the value of this parameter. + /// The ID of the pipeline to use to preprocess incoming documents. + /// If the index has a default ingest pipeline specified, setting the value to _none turns off the default ingest pipeline for this request. + /// If a final pipeline is configured, it will always run regardless of the value of this parameter. /// /// [JsonIgnore] @@ -120,8 +229,9 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, it waits for a refresh to make this operation visible to search. + /// If false, it does nothing with refreshes. /// /// [JsonIgnore] @@ -129,7 +239,7 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// [JsonIgnore] @@ -137,7 +247,15 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// Elasticsearch waits for at least the specified timeout period before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. + /// + /// + /// This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. + /// Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. + /// By default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// [JsonIgnore] @@ -145,8 +263,8 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// The explicit version number for concurrency control. + /// It must be a non-negative long number. /// /// [JsonIgnore] @@ -154,7 +272,7 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -163,7 +281,8 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// You can set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// [JsonIgnore] @@ -179,9 +298,108 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// 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. +/// Create a new document in the index. +/// +/// +/// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs +/// Using _create guarantees that the document is indexed only if it does not already exist. +/// It returns a 409 response when a document with a same ID already exists in the index. +/// To update an existing document, you must use the /<target>/_doc/ API. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// Automatically create data streams and indices +/// +/// +/// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. +/// +/// +/// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. +/// +/// +/// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. +/// +/// +/// If no mapping exists, the index operation creates a dynamic mapping. +/// By default, new fields and objects are automatically added to the mapping if needed. +/// +/// +/// Automatic index creation is controlled by the action.auto_create_index setting. +/// If it is true, any index can be created automatically. +/// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. +/// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. +/// When a list is specified, the default behaviour is to disallow. +/// +/// +/// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. +/// It does not affect the creation of data streams. +/// +/// +/// Routing +/// +/// +/// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. +/// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. +/// +/// +/// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. +/// This does come at the (very minimal) cost of an additional document parsing pass. +/// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// ** Distributed** +/// +/// +/// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. +/// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. +/// +/// +/// Active shards +/// +/// +/// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. +/// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. +/// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). +/// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. +/// To alter this behavior per operation, use the wait_for_active_shards request parameter. +/// +/// +/// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). +/// Specifying a negative value or a number greater than the number of shard copies will throw an error. +/// +/// +/// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). +/// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. +/// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. +/// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. +/// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. +/// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. +/// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. +/// +/// +/// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. +/// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. +/// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// /// public sealed partial class CreateRequestDescriptor : RequestDescriptor, CreateRequestParameters> diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs index edeaeb613d2..4f790c1c9c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateResponse.g.cs @@ -30,18 +30,61 @@ public sealed partial class CreateResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("forced_refresh")] public bool? ForcedRefresh { get; init; } + + /// + /// + /// The unique identifier for the added document. + /// + /// [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + + /// + /// + /// The name of the index the document was added to. + /// + /// [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// + /// The primary term assigned to the document for the indexing operation. + /// + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// + /// The result of the indexing operation: created or updated. + /// + /// [JsonInclude, JsonPropertyName("result")] public Elastic.Clients.Elasticsearch.Result Result { get; init; } + + /// + /// + /// The sequence number assigned to the document for the indexing operation. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. + /// + /// [JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// + /// Information about the replication process of the operation. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + + /// + /// + /// The document version, which is incremented each time the document is updated. + /// + /// [JsonInclude, JsonPropertyName("_version")] public long Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs index 713e143d421..bc1b6ba95fe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -34,10 +34,7 @@ public sealed partial class FollowRequestParameters : RequestParameters { /// /// - /// Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be - /// active. - /// A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the - /// remote Lucene segment files to the follower index. + /// Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -66,131 +63,35 @@ public FollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => /// /// - /// Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be - /// active. - /// A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the - /// remote Lucene segment files to the follower index. + /// Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) /// /// [JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } - - /// - /// - /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. - /// - /// - [JsonInclude, JsonPropertyName("data_stream_name")] - public string? DataStreamName { get; set; } - - /// - /// - /// The name of the index in the leader cluster to follow. - /// - /// [JsonInclude, JsonPropertyName("leader_index")] - public Elastic.Clients.Elasticsearch.IndexName LeaderIndex { get; set; } - - /// - /// - /// The maximum number of outstanding reads requests from the remote cluster. - /// - /// + public Elastic.Clients.Elasticsearch.IndexName? LeaderIndex { get; set; } [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] public long? MaxOutstandingReadRequests { get; set; } - - /// - /// - /// The maximum number of outstanding write requests on the follower. - /// - /// [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] - public int? MaxOutstandingWriteRequests { get; set; } - - /// - /// - /// The maximum number of operations to pull per read from the remote cluster. - /// - /// + public long? MaxOutstandingWriteRequests { get; set; } [JsonInclude, JsonPropertyName("max_read_request_operation_count")] - public int? MaxReadRequestOperationCount { get; set; } - - /// - /// - /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. - /// - /// + public long? MaxReadRequestOperationCount { get; set; } [JsonInclude, JsonPropertyName("max_read_request_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; set; } - - /// - /// - /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when - /// retrying. - /// - /// + public string? MaxReadRequestSize { get; set; } [JsonInclude, JsonPropertyName("max_retry_delay")] public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; } - - /// - /// - /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be - /// deferred until the number of queued operations goes below the limit. - /// - /// [JsonInclude, JsonPropertyName("max_write_buffer_count")] - public int? MaxWriteBufferCount { get; set; } - - /// - /// - /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will - /// be deferred until the total bytes of queued operations goes below the limit. - /// - /// + public long? MaxWriteBufferCount { get; set; } [JsonInclude, JsonPropertyName("max_write_buffer_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; set; } - - /// - /// - /// The maximum number of operations per bulk write request executed on the follower. - /// - /// + public string? MaxWriteBufferSize { get; set; } [JsonInclude, JsonPropertyName("max_write_request_operation_count")] - public int? MaxWriteRequestOperationCount { get; set; } - - /// - /// - /// The maximum total bytes of operations per bulk write request executed on the follower. - /// - /// + public long? MaxWriteRequestOperationCount { get; set; } [JsonInclude, JsonPropertyName("max_write_request_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; set; } - - /// - /// - /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. - /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. - /// Then the follower will immediately attempt to read from the leader again. - /// - /// + public string? MaxWriteRequestSize { get; set; } [JsonInclude, JsonPropertyName("read_poll_timeout")] public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; } - - /// - /// - /// The remote cluster containing the leader index. - /// - /// [JsonInclude, JsonPropertyName("remote_cluster")] - public string RemoteCluster { get; set; } - - /// - /// - /// Settings to override from the leader index. - /// - /// - [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; set; } + public string? RemoteCluster { get; set; } } /// @@ -228,211 +129,100 @@ public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.In return Self; } - private string? DataStreamNameValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexName LeaderIndexValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } private long? MaxOutstandingReadRequestsValue { get; set; } - private int? MaxOutstandingWriteRequestsValue { get; set; } - private int? MaxReadRequestOperationCountValue { get; set; } - private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } + private long? MaxOutstandingWriteRequestsValue { get; set; } + private long? MaxReadRequestOperationCountValue { get; set; } + private string? MaxReadRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - private int? MaxWriteBufferCountValue { get; set; } - private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } - private int? MaxWriteRequestOperationCountValue { get; set; } - private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } + private long? MaxWriteBufferCountValue { get; set; } + private string? MaxWriteBufferSizeValue { get; set; } + private long? MaxWriteRequestOperationCountValue { get; set; } + private string? MaxWriteRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - private string RemoteClusterValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action> SettingsDescriptorAction { get; set; } + private string? RemoteClusterValue { get; set; } - /// - /// - /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. - /// - /// - public FollowRequestDescriptor DataStreamName(string? dataStreamName) - { - DataStreamNameValue = dataStreamName; - return Self; - } - - /// - /// - /// The name of the index in the leader cluster to follow. - /// - /// - public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName leaderIndex) + public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) { LeaderIndexValue = leaderIndex; return Self; } - /// - /// - /// The maximum number of outstanding reads requests from the remote cluster. - /// - /// public FollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) { MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; return Self; } - /// - /// - /// The maximum number of outstanding write requests on the follower. - /// - /// - public FollowRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) + public FollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) { MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; return Self; } - /// - /// - /// The maximum number of operations to pull per read from the remote cluster. - /// - /// - public FollowRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) + public FollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) { MaxReadRequestOperationCountValue = maxReadRequestOperationCount; return Self; } - /// - /// - /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. - /// - /// - public FollowRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) + public FollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) { MaxReadRequestSizeValue = maxReadRequestSize; return Self; } - /// - /// - /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when - /// retrying. - /// - /// public FollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) { MaxRetryDelayValue = maxRetryDelay; return Self; } - /// - /// - /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be - /// deferred until the number of queued operations goes below the limit. - /// - /// - public FollowRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) + public FollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) { MaxWriteBufferCountValue = maxWriteBufferCount; return Self; } - /// - /// - /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will - /// be deferred until the total bytes of queued operations goes below the limit. - /// - /// - public FollowRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) + public FollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) { MaxWriteBufferSizeValue = maxWriteBufferSize; return Self; } - /// - /// - /// The maximum number of operations per bulk write request executed on the follower. - /// - /// - public FollowRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) + public FollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) { MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; return Self; } - /// - /// - /// The maximum total bytes of operations per bulk write request executed on the follower. - /// - /// - public FollowRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) + public FollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) { MaxWriteRequestSizeValue = maxWriteRequestSize; return Self; } - /// - /// - /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. - /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. - /// Then the follower will immediately attempt to read from the leader again. - /// - /// public FollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) { ReadPollTimeoutValue = readPollTimeout; return Self; } - /// - /// - /// The remote cluster containing the leader index. - /// - /// - public FollowRequestDescriptor RemoteCluster(string remoteCluster) + public FollowRequestDescriptor RemoteCluster(string? remoteCluster) { RemoteClusterValue = remoteCluster; return Self; } - /// - /// - /// Settings to override from the leader index. - /// - /// - public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public FollowRequestDescriptor Settings(Action> configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DataStreamNameValue)) + if (LeaderIndexValue is not null) { - writer.WritePropertyName("data_stream_name"); - writer.WriteStringValue(DataStreamNameValue); + writer.WritePropertyName("leader_index"); + JsonSerializer.Serialize(writer, LeaderIndexValue, options); } - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); if (MaxOutstandingReadRequestsValue.HasValue) { writer.WritePropertyName("max_outstanding_read_requests"); @@ -451,10 +241,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); } - if (MaxReadRequestSizeValue is not null) + if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) { writer.WritePropertyName("max_read_request_size"); - JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); + writer.WriteStringValue(MaxReadRequestSizeValue); } if (MaxRetryDelayValue is not null) @@ -469,10 +259,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteBufferCountValue.Value); } - if (MaxWriteBufferSizeValue is not null) + if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) { writer.WritePropertyName("max_write_buffer_size"); - JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); + writer.WriteStringValue(MaxWriteBufferSizeValue); } if (MaxWriteRequestOperationCountValue.HasValue) @@ -481,10 +271,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); } - if (MaxWriteRequestSizeValue is not null) + if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) { writer.WritePropertyName("max_write_request_size"); - JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); + writer.WriteStringValue(MaxWriteRequestSizeValue); } if (ReadPollTimeoutValue is not null) @@ -493,22 +283,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); } - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) + if (!string.IsNullOrEmpty(RemoteClusterValue)) { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); + writer.WritePropertyName("remote_cluster"); + writer.WriteStringValue(RemoteClusterValue); } writer.WriteEndObject(); @@ -546,211 +324,100 @@ public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName ind return Self; } - private string? DataStreamNameValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexName LeaderIndexValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } private long? MaxOutstandingReadRequestsValue { get; set; } - private int? MaxOutstandingWriteRequestsValue { get; set; } - private int? MaxReadRequestOperationCountValue { get; set; } - private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } + private long? MaxOutstandingWriteRequestsValue { get; set; } + private long? MaxReadRequestOperationCountValue { get; set; } + private string? MaxReadRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - private int? MaxWriteBufferCountValue { get; set; } - private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } - private int? MaxWriteRequestOperationCountValue { get; set; } - private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } + private long? MaxWriteBufferCountValue { get; set; } + private string? MaxWriteBufferSizeValue { get; set; } + private long? MaxWriteRequestOperationCountValue { get; set; } + private string? MaxWriteRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - private string RemoteClusterValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } - private Action SettingsDescriptorAction { get; set; } - - /// - /// - /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. - /// - /// - public FollowRequestDescriptor DataStreamName(string? dataStreamName) - { - DataStreamNameValue = dataStreamName; - return Self; - } + private string? RemoteClusterValue { get; set; } - /// - /// - /// The name of the index in the leader cluster to follow. - /// - /// - public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName leaderIndex) + public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) { LeaderIndexValue = leaderIndex; return Self; } - /// - /// - /// The maximum number of outstanding reads requests from the remote cluster. - /// - /// public FollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) { MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; return Self; } - /// - /// - /// The maximum number of outstanding write requests on the follower. - /// - /// - public FollowRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) + public FollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) { MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; return Self; } - /// - /// - /// The maximum number of operations to pull per read from the remote cluster. - /// - /// - public FollowRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) + public FollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) { MaxReadRequestOperationCountValue = maxReadRequestOperationCount; return Self; } - /// - /// - /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. - /// - /// - public FollowRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) + public FollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) { MaxReadRequestSizeValue = maxReadRequestSize; return Self; } - /// - /// - /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when - /// retrying. - /// - /// public FollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) { MaxRetryDelayValue = maxRetryDelay; return Self; } - /// - /// - /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be - /// deferred until the number of queued operations goes below the limit. - /// - /// - public FollowRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) + public FollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) { MaxWriteBufferCountValue = maxWriteBufferCount; return Self; } - /// - /// - /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will - /// be deferred until the total bytes of queued operations goes below the limit. - /// - /// - public FollowRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) + public FollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) { MaxWriteBufferSizeValue = maxWriteBufferSize; return Self; } - /// - /// - /// The maximum number of operations per bulk write request executed on the follower. - /// - /// - public FollowRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) + public FollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) { MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; return Self; } - /// - /// - /// The maximum total bytes of operations per bulk write request executed on the follower. - /// - /// - public FollowRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) + public FollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) { MaxWriteRequestSizeValue = maxWriteRequestSize; return Self; } - /// - /// - /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. - /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. - /// Then the follower will immediately attempt to read from the leader again. - /// - /// public FollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) { ReadPollTimeoutValue = readPollTimeout; return Self; } - /// - /// - /// The remote cluster containing the leader index. - /// - /// - public FollowRequestDescriptor RemoteCluster(string remoteCluster) + public FollowRequestDescriptor RemoteCluster(string? remoteCluster) { RemoteClusterValue = remoteCluster; return Self; } - /// - /// - /// Settings to override from the leader index. - /// - /// - public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) - { - SettingsDescriptor = null; - SettingsDescriptorAction = null; - SettingsValue = settings; - return Self; - } - - public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) - { - SettingsValue = null; - SettingsDescriptorAction = null; - SettingsDescriptor = descriptor; - return Self; - } - - public FollowRequestDescriptor Settings(Action configure) - { - SettingsValue = null; - SettingsDescriptor = null; - SettingsDescriptorAction = configure; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (!string.IsNullOrEmpty(DataStreamNameValue)) + if (LeaderIndexValue is not null) { - writer.WritePropertyName("data_stream_name"); - writer.WriteStringValue(DataStreamNameValue); + writer.WritePropertyName("leader_index"); + JsonSerializer.Serialize(writer, LeaderIndexValue, options); } - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); if (MaxOutstandingReadRequestsValue.HasValue) { writer.WritePropertyName("max_outstanding_read_requests"); @@ -769,10 +436,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); } - if (MaxReadRequestSizeValue is not null) + if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) { writer.WritePropertyName("max_read_request_size"); - JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); + writer.WriteStringValue(MaxReadRequestSizeValue); } if (MaxRetryDelayValue is not null) @@ -787,10 +454,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteBufferCountValue.Value); } - if (MaxWriteBufferSizeValue is not null) + if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) { writer.WritePropertyName("max_write_buffer_size"); - JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); + writer.WriteStringValue(MaxWriteBufferSizeValue); } if (MaxWriteRequestOperationCountValue.HasValue) @@ -799,10 +466,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); } - if (MaxWriteRequestSizeValue is not null) + if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) { writer.WritePropertyName("max_write_request_size"); - JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); + writer.WriteStringValue(MaxWriteRequestSizeValue); } if (ReadPollTimeoutValue is not null) @@ -811,22 +478,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); } - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); - if (SettingsDescriptor is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsDescriptor, options); - } - else if (SettingsDescriptorAction is not null) - { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); - } - else if (SettingsValue is not null) + if (!string.IsNullOrEmpty(RemoteClusterValue)) { - writer.WritePropertyName("settings"); - JsonSerializer.Serialize(writer, SettingsValue, options); + writer.WritePropertyName("remote_cluster"); + writer.WriteStringValue(RemoteClusterValue); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 34541aa28c1..69efb1ad911 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -44,6 +44,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// Analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } @@ -51,6 +52,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } @@ -65,22 +67,24 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// The default operator for query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// /// - /// Field to use as default where no field prefix is given in the query string. + /// The field to use as default where no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Df { get => Q("df"); set => Q("df", value); } /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. + /// It supports comma-separated values, such as open,hidden. /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -102,21 +106,22 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Query in the Lucene query string syntax. + /// A query in the Lucene query string syntax. /// /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } @@ -124,6 +129,8 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + /// This is different than the delete API's refresh parameter, which causes just the shard that received the delete request to be refreshed. + /// Unlike the delete API, it does not support wait_for. /// /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -145,29 +152,29 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Period to retain the search context for scrolling. + /// The period to retain the search context for scrolling. /// /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// /// - /// Size of the scroll request that powers the operation. + /// The size of the scroll request that powers the operation. /// /// public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// /// - /// Explicit timeout for each search request. - /// Defaults to no timeout. + /// The explicit timeout for each search request. + /// It defaults to no timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } @@ -175,7 +182,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. + /// Available options include query_then_fetch and dfs_query_then_fetch. /// /// public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } @@ -189,23 +196,25 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// - /// A comma-separated list of <field>:<direction> pairs. + /// A comma-separated list of <field>:<direction> pairs. /// /// public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// /// - /// Specific tag of the request for logging and statistical purposes. + /// The specific tag of the request for logging and statistical purposes. /// /// public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. + /// + /// /// Use with caution. /// Elasticsearch applies this parameter to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. @@ -216,7 +225,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// - /// Period each deletion request waits for active shards. + /// The period each deletion request waits for active shards. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -231,7 +240,8 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The timeout value controls how long each write request waits for unavailable shards to become available. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -239,6 +249,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// If true, the request blocks until the operation is complete. + /// If false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at .tasks/task/${taskId}. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. /// /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -247,8 +258,154 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// /// Delete documents. +/// +/// /// Deletes documents that match the specified query. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: +/// +/// +/// +/// +/// read +/// +/// +/// +/// +/// delete or write +/// +/// +/// +/// +/// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. +/// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. +/// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. +/// +/// +/// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. +/// +/// +/// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. +/// A bulk delete request is performed for each batch of matching documents. +/// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. +/// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. +/// Any delete requests that completed successfully still stick, they are not rolled back. +/// +/// +/// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. +/// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. +/// +/// +/// Throttling delete requests +/// +/// +/// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. +/// This pads each batch with a wait time to throttle the rate. +/// Set requests_per_second to -1 to disable throttling. +/// +/// +/// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Delete by query supports sliced scroll to parallelize the delete process. +/// This can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// Setting slices to auto lets Elasticsearch choose the number of slices to use. +/// This setting will use one slice per shard, up to a certain limit. +/// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. +/// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: +/// +/// +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// +/// +/// Delete performance scales linearly across available resources with the number of slices. +/// +/// +/// +/// +/// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Cancel a delete by query operation +/// +/// +/// Any delete by query can be canceled using the task cancel API. For example: +/// +/// +/// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel +/// +/// +/// The task ID can be found by using the get tasks API. +/// +/// +/// Cancellation should happen quickly but might take a few seconds. +/// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. +/// /// public sealed partial class DeleteByQueryRequest : PlainRequest { @@ -277,6 +434,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// Analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -285,6 +443,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -301,6 +460,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// The default operator for query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -308,7 +468,8 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Field to use as default where no field prefix is given in the query string. + /// The field to use as default where no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -316,9 +477,9 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. + /// It supports comma-separated values, such as open,hidden. /// /// [JsonIgnore] @@ -343,6 +504,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -350,8 +512,8 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -359,7 +521,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Query in the Lucene query string syntax. + /// A query in the Lucene query string syntax. /// /// [JsonIgnore] @@ -368,6 +530,8 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + /// This is different than the delete API's refresh parameter, which causes just the shard that received the delete request to be refreshed. + /// Unlike the delete API, it does not support wait_for. /// /// [JsonIgnore] @@ -392,7 +556,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -400,7 +564,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Period to retain the search context for scrolling. + /// The period to retain the search context for scrolling. /// /// [JsonIgnore] @@ -408,7 +572,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Size of the scroll request that powers the operation. + /// The size of the scroll request that powers the operation. /// /// [JsonIgnore] @@ -416,8 +580,8 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Explicit timeout for each search request. - /// Defaults to no timeout. + /// The explicit timeout for each search request. + /// It defaults to no timeout. /// /// [JsonIgnore] @@ -426,7 +590,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. + /// Available options include query_then_fetch and dfs_query_then_fetch. /// /// [JsonIgnore] @@ -442,7 +606,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// A comma-separated list of <field>:<direction> pairs. + /// A comma-separated list of <field>:<direction> pairs. /// /// [JsonIgnore] @@ -450,7 +614,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Specific tag of the request for logging and statistical purposes. + /// The specific tag of the request for logging and statistical purposes. /// /// [JsonIgnore] @@ -458,9 +622,11 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. + /// + /// /// Use with caution. /// Elasticsearch applies this parameter to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. @@ -472,7 +638,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Period each deletion request waits for active shards. + /// The period each deletion request waits for active shards. /// /// [JsonIgnore] @@ -489,7 +655,8 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The timeout value controls how long each write request waits for unavailable shards to become available. /// /// [JsonIgnore] @@ -498,6 +665,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, the request blocks until the operation is complete. + /// If false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. Elasticsearch creates a record of this task as a document at .tasks/task/${taskId}. When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. /// /// [JsonIgnore] @@ -513,7 +681,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Specifies the documents to delete using the Query DSL. + /// The documents to delete specified with Query DSL. /// /// [JsonInclude, JsonPropertyName("query")] @@ -531,8 +699,154 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// Delete documents. +/// +/// /// Deletes documents that match the specified query. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: +/// +/// +/// +/// +/// read +/// +/// +/// +/// +/// delete or write +/// +/// +/// +/// +/// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. +/// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. +/// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. +/// +/// +/// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. +/// +/// +/// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. +/// A bulk delete request is performed for each batch of matching documents. +/// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. +/// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. +/// Any delete requests that completed successfully still stick, they are not rolled back. +/// +/// +/// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. +/// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. +/// +/// +/// Throttling delete requests +/// +/// +/// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. +/// This pads each batch with a wait time to throttle the rate. +/// Set requests_per_second to -1 to disable throttling. +/// +/// +/// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Delete by query supports sliced scroll to parallelize the delete process. +/// This can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// Setting slices to auto lets Elasticsearch choose the number of slices to use. +/// This setting will use one slice per shard, up to a certain limit. +/// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. +/// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: +/// +/// +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// +/// +/// Delete performance scales linearly across available resources with the number of slices. +/// +/// +/// +/// +/// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Cancel a delete by query operation +/// +/// +/// Any delete by query can be canceled using the task cancel API. For example: +/// +/// +/// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel +/// +/// +/// The task ID can be found by using the get tasks API. +/// +/// +/// Cancellation should happen quickly but might take a few seconds. +/// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. +/// /// public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor, DeleteByQueryRequestParameters> { @@ -610,7 +924,7 @@ public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) /// /// - /// Specifies the documents to delete using the Query DSL. + /// The documents to delete specified with Query DSL. /// /// public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -714,8 +1028,154 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Delete documents. +/// +/// /// Deletes documents that match the specified query. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: +/// +/// +/// +/// +/// read +/// +/// +/// +/// +/// delete or write +/// +/// +/// +/// +/// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. +/// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. +/// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. +/// +/// +/// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. +/// +/// +/// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. +/// A bulk delete request is performed for each batch of matching documents. +/// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. +/// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. +/// Any delete requests that completed successfully still stick, they are not rolled back. +/// +/// +/// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. +/// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. +/// +/// +/// Throttling delete requests +/// +/// +/// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. +/// This pads each batch with a wait time to throttle the rate. +/// Set requests_per_second to -1 to disable throttling. +/// +/// +/// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Delete by query supports sliced scroll to parallelize the delete process. +/// This can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// Setting slices to auto lets Elasticsearch choose the number of slices to use. +/// This setting will use one slice per shard, up to a certain limit. +/// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. +/// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: +/// +/// +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// +/// +/// Delete performance scales linearly across available resources with the number of slices. +/// +/// +/// +/// +/// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Cancel a delete by query operation +/// +/// +/// Any delete by query can be canceled using the task cancel API. For example: +/// +/// +/// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel +/// +/// +/// The task ID can be found by using the get tasks API. +/// +/// +/// Cancellation should happen quickly but might take a few seconds. +/// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. +/// /// public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor { @@ -789,7 +1249,7 @@ public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) /// /// - /// Specifies the documents to delete using the Query DSL. + /// The documents to delete specified with Query DSL. /// /// public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs index 04d1a451f0d..34d777cadbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryResponse.g.cs @@ -28,16 +28,57 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class DeleteByQueryResponse : ElasticsearchResponse { + /// + /// + /// The number of scroll responses pulled back by the delete by query. + /// + /// [JsonInclude, JsonPropertyName("batches")] public long? Batches { get; init; } + + /// + /// + /// The number of documents that were successfully deleted. + /// + /// [JsonInclude, JsonPropertyName("deleted")] public long? Deleted { get; init; } + + /// + /// + /// An array of failures if there were any unrecoverable errors during the process. + /// If this array is not empty, the request ended abnormally because of those failures. + /// Delete by query is implemented using batches and any failures cause the entire process to end but all failures in the current batch are collected into the array. + /// You can use the conflicts option to prevent reindex from ending on version conflicts. + /// + /// [JsonInclude, JsonPropertyName("failures")] public IReadOnlyCollection? Failures { get; init; } + + /// + /// + /// This field is always equal to zero for delete by query. + /// It exists only so that delete by query, update by query, and reindex APIs return responses with the same structure. + /// + /// [JsonInclude, JsonPropertyName("noops")] public long? Noops { get; init; } + + /// + /// + /// The number of requests per second effectively run during the delete by query. + /// + /// [JsonInclude, JsonPropertyName("requests_per_second")] public float? RequestsPerSecond { get; init; } + + /// + /// + /// The number of retries attempted by delete by query. + /// bulk is the number of bulk actions retried. + /// search is the number of search actions retried. + /// + /// [JsonInclude, JsonPropertyName("retries")] public Elastic.Clients.Elasticsearch.Retries? Retries { get; init; } [JsonInclude, JsonPropertyName("slice_id")] @@ -46,18 +87,55 @@ public sealed partial class DeleteByQueryResponse : ElasticsearchResponse public Elastic.Clients.Elasticsearch.TaskId? Task { get; init; } [JsonInclude, JsonPropertyName("throttled")] public Elastic.Clients.Elasticsearch.Duration? Throttled { get; init; } + + /// + /// + /// The number of milliseconds the request slept to conform to requests_per_second. + /// + /// [JsonInclude, JsonPropertyName("throttled_millis")] public long? ThrottledMillis { get; init; } [JsonInclude, JsonPropertyName("throttled_until")] public Elastic.Clients.Elasticsearch.Duration? ThrottledUntil { get; init; } + + /// + /// + /// This field should always be equal to zero in a _delete_by_query response. + /// It has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform to requests_per_second. + /// + /// [JsonInclude, JsonPropertyName("throttled_until_millis")] public long? ThrottledUntilMillis { get; init; } + + /// + /// + /// If true, some requests run during the delete by query operation timed out. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool? TimedOut { get; init; } + + /// + /// + /// The number of milliseconds from start to end of the whole operation. + /// + /// [JsonInclude, JsonPropertyName("took")] public long? Took { get; init; } + + /// + /// + /// The number of documents that were successfully processed. + /// + /// [JsonInclude, JsonPropertyName("total")] public long? Total { get; init; } + + /// + /// + /// The number of version conflicts that the delete by query hit. + /// + /// [JsonInclude, JsonPropertyName("version_conflicts")] public long? VersionConflicts { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index 2b09f0d917c..20985a3d66d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -35,6 +35,7 @@ public sealed partial class DeleteByQueryRethrottleRequestParameters : RequestPa /// /// /// The throttle for this request in sub-requests per second. + /// To disable throttling, set it to -1. /// /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } @@ -66,6 +67,7 @@ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.TaskId taskI /// /// /// The throttle for this request in sub-requests per second. + /// To disable throttling, set it to -1. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs index 479d7e6c9a3..4eee442b580 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs @@ -48,45 +48,52 @@ public sealed partial class DeleteRequestParameters : RequestParameters /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, it waits for a refresh to make this operation visible to search. + /// If false, it does nothing with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Period to wait for active shards. + /// The period to wait for active shards. + /// + /// + /// This parameter is useful for situations where the primary shard assigned to perform the delete operation might not be available when the delete operation runs. + /// Some reasons for this might be that the primary shard is currently recovering from a store or undergoing relocation. + /// By default, the delete operation will wait on the primary shard to become available for up to 1 minute before failing and responding with an error. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// An explicit version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// public long? Version { get => Q("version"); set => Q("version", value); } /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The minimum number of shard copies that must be active before proceeding with the operation. + /// You can set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -95,7 +102,56 @@ public sealed partial class DeleteRequestParameters : RequestParameters /// /// /// Delete a document. -/// Removes a JSON document from the specified index. +/// +/// +/// Remove a JSON document from the specified index. +/// +/// +/// NOTE: You cannot send deletion requests directly to a data stream. +/// To delete a document in a data stream, you must target the backing index containing the document. +/// +/// +/// Optimistic concurrency control +/// +/// +/// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. +/// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. +/// +/// +/// Versioning +/// +/// +/// Each document indexed is versioned. +/// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. +/// Every write operation run on a document, deletes included, causes its version to be incremented. +/// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. +/// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. +/// +/// +/// Routing +/// +/// +/// If routing is used during indexing, the routing value also needs to be specified to delete a document. +/// +/// +/// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. +/// +/// +/// For example: +/// +/// +/// DELETE /my-index-000001/_doc/1?routing=shard-1 +/// +/// +/// This request deletes the document with ID 1, but it is routed based on the user. +/// The document is not deleted if the correct routing is not specified. +/// +/// +/// Distributed +/// +/// +/// The delete operation gets hashed into a specific shard ID. +/// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// /// public partial class DeleteRequest : PlainRequest @@ -130,8 +186,9 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, it waits for a refresh to make this operation visible to search. + /// If false, it does nothing with refreshes. /// /// [JsonIgnore] @@ -139,7 +196,7 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -147,7 +204,12 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Period to wait for active shards. + /// The period to wait for active shards. + /// + /// + /// This parameter is useful for situations where the primary shard assigned to perform the delete operation might not be available when the delete operation runs. + /// Some reasons for this might be that the primary shard is currently recovering from a store or undergoing relocation. + /// By default, the delete operation will wait on the primary shard to become available for up to 1 minute before failing and responding with an error. /// /// [JsonIgnore] @@ -155,8 +217,8 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// An explicit version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// [JsonIgnore] @@ -164,7 +226,7 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -172,8 +234,9 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The minimum number of shard copies that must be active before proceeding with the operation. + /// You can set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// [JsonIgnore] @@ -183,7 +246,56 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// /// Delete a document. -/// Removes a JSON document from the specified index. +/// +/// +/// Remove a JSON document from the specified index. +/// +/// +/// NOTE: You cannot send deletion requests directly to a data stream. +/// To delete a document in a data stream, you must target the backing index containing the document. +/// +/// +/// Optimistic concurrency control +/// +/// +/// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. +/// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. +/// +/// +/// Versioning +/// +/// +/// Each document indexed is versioned. +/// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. +/// Every write operation run on a document, deletes included, causes its version to be incremented. +/// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. +/// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. +/// +/// +/// Routing +/// +/// +/// If routing is used during indexing, the routing value also needs to be specified to delete a document. +/// +/// +/// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. +/// +/// +/// For example: +/// +/// +/// DELETE /my-index-000001/_doc/1?routing=shard-1 +/// +/// +/// This request deletes the document with ID 1, but it is routed based on the user. +/// The document is not deleted if the correct routing is not specified. +/// +/// +/// Distributed +/// +/// +/// The delete operation gets hashed into a specific shard ID. +/// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// /// public sealed partial class DeleteRequestDescriptor : RequestDescriptor, DeleteRequestParameters> @@ -247,7 +359,56 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Delete a document. -/// Removes a JSON document from the specified index. +/// +/// +/// Remove a JSON document from the specified index. +/// +/// +/// NOTE: You cannot send deletion requests directly to a data stream. +/// To delete a document in a data stream, you must target the backing index containing the document. +/// +/// +/// Optimistic concurrency control +/// +/// +/// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. +/// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. +/// +/// +/// Versioning +/// +/// +/// Each document indexed is versioned. +/// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. +/// Every write operation run on a document, deletes included, causes its version to be incremented. +/// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. +/// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. +/// +/// +/// Routing +/// +/// +/// If routing is used during indexing, the routing value also needs to be specified to delete a document. +/// +/// +/// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. +/// +/// +/// For example: +/// +/// +/// DELETE /my-index-000001/_doc/1?routing=shard-1 +/// +/// +/// This request deletes the document with ID 1, but it is routed based on the user. +/// The document is not deleted if the correct routing is not specified. +/// +/// +/// Distributed +/// +/// +/// The delete operation gets hashed into a specific shard ID. +/// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// /// public sealed partial class DeleteRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs index 035076c71fd..8527471584b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteResponse.g.cs @@ -30,18 +30,61 @@ public sealed partial class DeleteResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("forced_refresh")] public bool? ForcedRefresh { get; init; } + + /// + /// + /// The unique identifier for the added document. + /// + /// [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + + /// + /// + /// The name of the index the document was added to. + /// + /// [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// + /// The primary term assigned to the document for the indexing operation. + /// + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// + /// The result of the indexing operation: created or updated. + /// + /// [JsonInclude, JsonPropertyName("result")] public Elastic.Clients.Elasticsearch.Result Result { get; init; } + + /// + /// + /// The sequence number assigned to the document for the indexing operation. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. + /// + /// [JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// + /// Information about the replication process of the operation. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + + /// + /// + /// The document version, which is incremented each time the document is updated. + /// + /// [JsonInclude, JsonPropertyName("_version")] public long Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs index 42659a1f2b2..e435467e3a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs @@ -34,16 +34,18 @@ public sealed partial class DeleteScriptRequestParameters : RequestParameters { /// /// - /// Period to wait for a connection to the master node. + /// The period to wait for a connection to the master node. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Period to wait for a response. + /// The period to wait for a response. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -71,8 +73,9 @@ public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// - /// Period to wait for a connection to the master node. + /// The period to wait for a connection to the master node. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// [JsonIgnore] @@ -80,8 +83,9 @@ public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// - /// Period to wait for a response. + /// The period to wait for a response. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs index ccdd1f5ef9d..b808cd86302 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs @@ -60,14 +60,6 @@ public sealed partial class EqlGetResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("is_running")] public bool? IsRunning { get; init; } - /// - /// - /// Contains information about shard failures (if any), in case allow_partial_search_results=true - /// - /// - [JsonInclude, JsonPropertyName("shard_failures")] - public IReadOnlyCollection? ShardFailures { get; init; } - /// /// /// If true, the request timed out before completion. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index 5f88564f66a..d9b227b20ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -76,10 +76,6 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - [JsonInclude, JsonPropertyName("allow_partial_search_results")] - public bool? AllowPartialSearchResults { get; set; } - [JsonInclude, JsonPropertyName("allow_partial_sequence_results")] - public bool? AllowPartialSequenceResults { get; set; } [JsonInclude, JsonPropertyName("case_sensitive")] public bool? CaseSensitive { get; set; } @@ -121,16 +117,6 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude, JsonPropertyName("keep_on_completion")] public bool? KeepOnCompletion { get; set; } - /// - /// - /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size - /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the - /// max_samples_per_key parameter. Pipes are not supported for sample queries. - /// - /// - [JsonInclude, JsonPropertyName("max_samples_per_key")] - public int? MaxSamplesPerKey { get; set; } - /// /// /// EQL query you wish to run. @@ -207,8 +193,6 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear return Self; } - private bool? AllowPartialSearchResultsValue { get; set; } - private bool? AllowPartialSequenceResultsValue { get; set; } private bool? CaseSensitiveValue { get; set; } private Elastic.Clients.Elasticsearch.Field? EventCategoryFieldValue { get; set; } private int? FetchSizeValue { get; set; } @@ -222,7 +206,6 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Action>[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } - private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary> RuntimeMappingsValue { get; set; } @@ -231,18 +214,6 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Elastic.Clients.Elasticsearch.Field? TimestampFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } - public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) - { - AllowPartialSearchResultsValue = allowPartialSearchResults; - return Self; - } - - public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) - { - AllowPartialSequenceResultsValue = allowPartialSequenceResults; - return Self; - } - public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) { CaseSensitiveValue = caseSensitive; @@ -387,19 +358,6 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnComple return Self; } - /// - /// - /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size - /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the - /// max_samples_per_key parameter. Pipes are not supported for sample queries. - /// - /// - public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) - { - MaxSamplesPerKeyValue = maxSamplesPerKey; - return Self; - } - /// /// /// EQL query you wish to run. @@ -509,18 +467,6 @@ public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Cl protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (AllowPartialSearchResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_search_results"); - writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); - } - - if (AllowPartialSequenceResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_sequence_results"); - writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); - } - if (CaseSensitiveValue.HasValue) { writer.WritePropertyName("case_sensitive"); @@ -609,12 +555,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } - if (MaxSamplesPerKeyValue.HasValue) - { - writer.WritePropertyName("max_samples_per_key"); - writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); - } - writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) @@ -690,8 +630,6 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices return Self; } - private bool? AllowPartialSearchResultsValue { get; set; } - private bool? AllowPartialSequenceResultsValue { get; set; } private bool? CaseSensitiveValue { get; set; } private Elastic.Clients.Elasticsearch.Field? EventCategoryFieldValue { get; set; } private int? FetchSizeValue { get; set; } @@ -705,7 +643,6 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Action[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } - private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary RuntimeMappingsValue { get; set; } @@ -714,18 +651,6 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Elastic.Clients.Elasticsearch.Field? TimestampFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } - public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) - { - AllowPartialSearchResultsValue = allowPartialSearchResults; - return Self; - } - - public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) - { - AllowPartialSequenceResultsValue = allowPartialSequenceResults; - return Self; - } - public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) { CaseSensitiveValue = caseSensitive; @@ -870,19 +795,6 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true return Self; } - /// - /// - /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size - /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the - /// max_samples_per_key parameter. Pipes are not supported for sample queries. - /// - /// - public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) - { - MaxSamplesPerKeyValue = maxSamplesPerKey; - return Self; - } - /// /// /// EQL query you wish to run. @@ -992,18 +904,6 @@ public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elast protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (AllowPartialSearchResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_search_results"); - writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); - } - - if (AllowPartialSequenceResultsValue.HasValue) - { - writer.WritePropertyName("allow_partial_sequence_results"); - writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); - } - if (CaseSensitiveValue.HasValue) { writer.WritePropertyName("case_sensitive"); @@ -1092,12 +992,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } - if (MaxSamplesPerKeyValue.HasValue) - { - writer.WritePropertyName("max_samples_per_key"); - writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); - } - writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs index 720dbc35012..1f4602dc9b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs @@ -60,14 +60,6 @@ public sealed partial class EqlSearchResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("is_running")] public bool? IsRunning { get; init; } - /// - /// - /// Contains information about shard failures (if any), in case allow_partial_search_results=true - /// - /// - [JsonInclude, JsonPropertyName("shard_failures")] - public IReadOnlyCollection? ShardFailures { get; init; } - /// /// /// If true, the request timed out before completion. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs new file mode 100644 index 00000000000..5d663bd9589 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteRequest.g.cs @@ -0,0 +1,170 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryDeleteRequestParameters : RequestParameters +{ +} + +/// +/// +/// Delete an async ES|QL query. +/// If the query is still running, it is cancelled. +/// Otherwise, the stored results are deleted. +/// +/// +/// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: +/// +/// +/// +/// +/// The authenticated user that submitted the original query request +/// +/// +/// +/// +/// Users with the cancel_task cluster privilege +/// +/// +/// +/// +public sealed partial class AsyncQueryDeleteRequest : PlainRequest +{ + public AsyncQueryDeleteRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_delete"; +} + +/// +/// +/// Delete an async ES|QL query. +/// If the query is still running, it is cancelled. +/// Otherwise, the stored results are deleted. +/// +/// +/// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: +/// +/// +/// +/// +/// The authenticated user that submitted the original query request +/// +/// +/// +/// +/// Users with the cancel_task cluster privilege +/// +/// +/// +/// +public sealed partial class AsyncQueryDeleteRequestDescriptor : RequestDescriptor, AsyncQueryDeleteRequestParameters> +{ + internal AsyncQueryDeleteRequestDescriptor(Action> configure) => configure.Invoke(this); + + public AsyncQueryDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_delete"; + + public AsyncQueryDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Delete an async ES|QL query. +/// If the query is still running, it is cancelled. +/// Otherwise, the stored results are deleted. +/// +/// +/// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: +/// +/// +/// +/// +/// The authenticated user that submitted the original query request +/// +/// +/// +/// +/// Users with the cancel_task cluster privilege +/// +/// +/// +/// +public sealed partial class AsyncQueryDeleteRequestDescriptor : RequestDescriptor +{ + internal AsyncQueryDeleteRequestDescriptor(Action configure) => configure.Invoke(this); + + public AsyncQueryDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_delete"; + + public AsyncQueryDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs new file mode 100644 index 00000000000..4cc0e709c48 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryDeleteResponse.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryDeleteResponse : ElasticsearchResponse +{ + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs new file mode 100644 index 00000000000..0f8f1900b21 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetRequest.g.cs @@ -0,0 +1,187 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryGetRequestParameters : RequestParameters +{ + /// + /// + /// Indicates whether columns that are entirely null will be removed from the columns and values portion of the results. + /// If true, the response will include an extra section under the name all_columns which has the name of all the columns. + /// + /// + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } + + /// + /// + /// The period for which the query and its results are stored in the cluster. + /// When this period expires, the query and its results are deleted, even if the query is still ongoing. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for complete query results. + /// If the request completes during the period specified in this parameter, complete query results are returned. + /// Otherwise, the response returns an is_running value of true and no results. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// +/// Get async ES|QL query results. +/// Get the current status and available results or stored results for an ES|QL asynchronous query. +/// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. +/// +/// +public sealed partial class AsyncQueryGetRequest : PlainRequest +{ + public AsyncQueryGetRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_get"; + + /// + /// + /// Indicates whether columns that are entirely null will be removed from the columns and values portion of the results. + /// If true, the response will include an extra section under the name all_columns which has the name of all the columns. + /// + /// + [JsonIgnore] + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } + + /// + /// + /// The period for which the query and its results are stored in the cluster. + /// When this period expires, the query and its results are deleted, even if the query is still ongoing. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for complete query results. + /// If the request completes during the period specified in this parameter, complete query results are returned. + /// Otherwise, the response returns an is_running value of true and no results. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// +/// Get async ES|QL query results. +/// Get the current status and available results or stored results for an ES|QL asynchronous query. +/// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. +/// +/// +public sealed partial class AsyncQueryGetRequestDescriptor : RequestDescriptor, AsyncQueryGetRequestParameters> +{ + internal AsyncQueryGetRequestDescriptor(Action> configure) => configure.Invoke(this); + + public AsyncQueryGetRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_get"; + + public AsyncQueryGetRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + public AsyncQueryGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public AsyncQueryGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + public AsyncQueryGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Get async ES|QL query results. +/// Get the current status and available results or stored results for an ES|QL asynchronous query. +/// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. +/// +/// +public sealed partial class AsyncQueryGetRequestDescriptor : RequestDescriptor +{ + internal AsyncQueryGetRequestDescriptor(Action configure) => configure.Invoke(this); + + public AsyncQueryGetRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_get"; + + public AsyncQueryGetRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + public AsyncQueryGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public AsyncQueryGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + public AsyncQueryGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.g.cs new file mode 100644 index 00000000000..7e4c3c74151 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryGetResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs new file mode 100644 index 00000000000..ee4cbf7d5be --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs @@ -0,0 +1,601 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryRequestParameters : RequestParameters +{ + /// + /// + /// The character to use between values within a CSV row. + /// It is valid only for the CSV format. + /// + /// + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// + /// Indicates whether columns that are entirely null will be removed from the columns and values portion of the results. + /// If true, the response will include an extra section under the name all_columns which has the name of all the columns. + /// + /// + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } + + /// + /// + /// A short version of the Accept header, for example json or yaml. + /// + /// + public Elastic.Clients.Elasticsearch.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } + + /// + /// + /// The period for which the query and its results are stored in the cluster. + /// The default period is five days. + /// When this period expires, the query and its results are deleted, even if the query is still ongoing. + /// If the keep_on_completion parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the wait_for_completion_timeout parameter, regardless of this value. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// + /// Indicates whether the query and its results are stored in the cluster. + /// If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the wait_for_completion_timeout parameter. + /// + /// + public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } + + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for 1 second for the query results. + /// If the query completes during this period, results are returned + /// Otherwise, a query ID is returned that can later be used to retrieve the results. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// +/// Run an async ES|QL query. +/// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. +/// +/// +/// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. +/// +/// +public sealed partial class AsyncQueryRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "esql.async_query"; + + /// + /// + /// The character to use between values within a CSV row. + /// It is valid only for the CSV format. + /// + /// + [JsonIgnore] + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// + /// Indicates whether columns that are entirely null will be removed from the columns and values portion of the results. + /// If true, the response will include an extra section under the name all_columns which has the name of all the columns. + /// + /// + [JsonIgnore] + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } + + /// + /// + /// A short version of the Accept header, for example json or yaml. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Esql.EsqlFormat? Format { get => Q("format"); set => Q("format", value); } + + /// + /// + /// The period for which the query and its results are stored in the cluster. + /// The default period is five days. + /// When this period expires, the query and its results are deleted, even if the query is still ongoing. + /// If the keep_on_completion parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the wait_for_completion_timeout parameter, regardless of this value. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// + /// Indicates whether the query and its results are stored in the cluster. + /// If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the wait_for_completion_timeout parameter. + /// + /// + [JsonIgnore] + public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } + + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for 1 second for the query results. + /// If the query completes during this period, results are returned + /// Otherwise, a query ID is returned that can later be used to retrieve the results. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", 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.QueryDsl.Query? Filter { get; set; } + + /// + /// + /// When set to true and performing a cross-cluster query, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// + /// + [JsonInclude, JsonPropertyName("include_ccs_metadata")] + public bool? IncludeCcsMetadata { 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; } +} + +/// +/// +/// Run an async ES|QL query. +/// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. +/// +/// +/// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. +/// +/// +public sealed partial class AsyncQueryRequestDescriptor : RequestDescriptor, AsyncQueryRequestParameters> +{ + internal AsyncQueryRequestDescriptor(Action> configure) => configure.Invoke(this); + + public AsyncQueryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "esql.async_query"; + + public AsyncQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public AsyncQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + public AsyncQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Esql.EsqlFormat? format) => Qs("format", format); + public AsyncQueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public AsyncQueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); + public AsyncQueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + private bool? ColumnarValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private bool? IncludeCcsMetadataValue { 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 AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public AsyncQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public AsyncQueryRequestDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + /// + /// + /// When set to true and performing a cross-cluster query, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// + /// + public AsyncQueryRequestDescriptor IncludeCcsMetadata(bool? includeCcsMetadata = true) + { + IncludeCcsMetadataValue = includeCcsMetadata; + return Self; + } + + public AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (IncludeCcsMetadataValue.HasValue) + { + writer.WritePropertyName("include_ccs_metadata"); + writer.WriteBooleanValue(IncludeCcsMetadataValue.Value); + } + + 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(); + } +} + +/// +/// +/// Run an async ES|QL query. +/// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. +/// +/// +/// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. +/// +/// +public sealed partial class AsyncQueryRequestDescriptor : RequestDescriptor +{ + internal AsyncQueryRequestDescriptor(Action configure) => configure.Invoke(this); + + public AsyncQueryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "esql.async_query"; + + public AsyncQueryRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public AsyncQueryRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + public AsyncQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Esql.EsqlFormat? format) => Qs("format", format); + public AsyncQueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public AsyncQueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); + public AsyncQueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + private bool? ColumnarValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private bool? IncludeCcsMetadataValue { 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 AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public AsyncQueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public AsyncQueryRequestDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + /// + /// + /// When set to true and performing a cross-cluster query, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// + /// + public AsyncQueryRequestDescriptor IncludeCcsMetadata(bool? includeCcsMetadata = true) + { + IncludeCcsMetadataValue = includeCcsMetadata; + return Self; + } + + public AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor 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 AsyncQueryRequestDescriptor 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (IncludeCcsMetadataValue.HasValue) + { + writer.WritePropertyName("include_ccs_metadata"); + writer.WriteBooleanValue(IncludeCcsMetadataValue.Value); + } + + 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/_Generated/Api/Esql/AsyncQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryResponse.g.cs new file mode 100644 index 00000000000..b1f6ebd37a4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs index 1947cab2686..98f4d4fbde4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -111,6 +111,16 @@ public sealed partial class EsqlQueryRequest : PlainRequest [JsonInclude, JsonPropertyName("filter")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Filter { get; set; } + + /// + /// + /// When set to true and performing a cross-cluster query, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// + /// + [JsonInclude, JsonPropertyName("include_ccs_metadata")] + public bool? IncludeCcsMetadata { get; set; } [JsonInclude, JsonPropertyName("locale")] public string? Locale { get; set; } @@ -172,6 +182,7 @@ public EsqlQueryRequestDescriptor() private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action> FilterDescriptorAction { get; set; } + private bool? IncludeCcsMetadataValue { get; set; } private string? LocaleValue { get; set; } private ICollection? ParamsValue { get; set; } private bool? ProfileValue { get; set; } @@ -217,6 +228,19 @@ public EsqlQueryRequestDescriptor Filter(Action + /// + /// When set to true and performing a cross-cluster query, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// + /// + public EsqlQueryRequestDescriptor IncludeCcsMetadata(bool? includeCcsMetadata = true) + { + IncludeCcsMetadataValue = includeCcsMetadata; + return Self; + } + public EsqlQueryRequestDescriptor Locale(string? locale) { LocaleValue = locale; @@ -284,6 +308,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FilterValue, options); } + if (IncludeCcsMetadataValue.HasValue) + { + writer.WritePropertyName("include_ccs_metadata"); + writer.WriteBooleanValue(IncludeCcsMetadataValue.Value); + } + if (!string.IsNullOrEmpty(LocaleValue)) { writer.WritePropertyName("locale"); @@ -338,6 +368,7 @@ public EsqlQueryRequestDescriptor() private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } private Action FilterDescriptorAction { get; set; } + private bool? IncludeCcsMetadataValue { get; set; } private string? LocaleValue { get; set; } private ICollection? ParamsValue { get; set; } private bool? ProfileValue { get; set; } @@ -383,6 +414,19 @@ public EsqlQueryRequestDescriptor Filter(Action + /// + /// When set to true and performing a cross-cluster query, the response will include an extra _clusters + /// object with information about the clusters that participated in the search along with info such as shards + /// count. + /// + /// + public EsqlQueryRequestDescriptor IncludeCcsMetadata(bool? includeCcsMetadata = true) + { + IncludeCcsMetadataValue = includeCcsMetadata; + return Self; + } + public EsqlQueryRequestDescriptor Locale(string? locale) { LocaleValue = locale; @@ -450,6 +494,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FilterValue, options); } + if (IncludeCcsMetadataValue.HasValue) + { + writer.WritePropertyName("include_ccs_metadata"); + writer.WriteBooleanValue(IncludeCcsMetadataValue.Value); + } + if (!string.IsNullOrEmpty(LocaleValue)) { writer.WritePropertyName("locale"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs index a69f181062f..332e8c2cc3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs @@ -34,8 +34,14 @@ public sealed partial class ExistsRequestParameters : RequestParameters { /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. + /// + /// + /// If it is set to _local, the operation will prefer to be run on a local allocated shard when possible. + /// If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. + /// This can help with "jumping values" when hitting different shards in different refresh states. + /// A sample value can be something like the web session ID or the user name. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -49,28 +55,31 @@ public sealed partial class ExistsRequestParameters : RequestParameters /// /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// true or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// /// - /// A comma-separated list of source fields to exclude in the response. + /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } @@ -78,15 +87,18 @@ public sealed partial class ExistsRequestParameters : RequestParameters /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source parameter defaults to false. /// /// public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } @@ -101,7 +113,7 @@ public sealed partial class ExistsRequestParameters : RequestParameters /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -110,7 +122,28 @@ public sealed partial class ExistsRequestParameters : RequestParameters /// /// /// Check a document. -/// Checks if a specified document exists. +/// +/// +/// Verify that a document exists. +/// For example, check to see if a document with the _id 0 exists: +/// +/// +/// HEAD my-index-000001/_doc/0 +/// +/// +/// If the document exists, the API returns a status code of 200 - OK. +/// If the document doesn’t exist, the API returns 404 - Not Found. +/// +/// +/// Versioning support +/// +/// +/// You can use the version parameter to check the document only if its current version is equal to the specified one. +/// +/// +/// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. +/// The old version of the document doesn't disappear immediately, although you won't be able to access it. +/// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// /// public sealed partial class ExistsRequest : PlainRequest @@ -129,8 +162,14 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. + /// + /// + /// If it is set to _local, the operation will prefer to be run on a local allocated shard when possible. + /// If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. + /// This can help with "jumping values" when hitting different shards in different refresh states. + /// A sample value can be something like the web session ID or the user name. /// /// [JsonIgnore] @@ -146,7 +185,8 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// [JsonIgnore] @@ -154,7 +194,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -162,7 +202,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// true or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// [JsonIgnore] @@ -170,7 +210,9 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// A comma-separated list of source fields to exclude in the response. + /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -179,6 +221,9 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -186,9 +231,9 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source parameter defaults to false. /// /// [JsonIgnore] @@ -205,7 +250,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -215,7 +260,28 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// /// Check a document. -/// Checks if a specified document exists. +/// +/// +/// Verify that a document exists. +/// For example, check to see if a document with the _id 0 exists: +/// +/// +/// HEAD my-index-000001/_doc/0 +/// +/// +/// If the document exists, the API returns a status code of 200 - OK. +/// If the document doesn’t exist, the API returns 404 - Not Found. +/// +/// +/// Versioning support +/// +/// +/// You can use the version parameter to check the document only if its current version is equal to the specified one. +/// +/// +/// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. +/// The old version of the document doesn't disappear immediately, although you won't be able to access it. +/// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> @@ -281,7 +347,28 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Check a document. -/// Checks if a specified document exists. +/// +/// +/// Verify that a document exists. +/// For example, check to see if a document with the _id 0 exists: +/// +/// +/// HEAD my-index-000001/_doc/0 +/// +/// +/// If the document exists, the API returns a status code of 200 - OK. +/// If the document doesn’t exist, the API returns 404 - Not Found. +/// +/// +/// Versioning support +/// +/// +/// You can use the version parameter to check the document only if its current version is equal to the specified one. +/// +/// +/// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. +/// The old version of the document doesn't disappear immediately, although you won't be able to access it. +/// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs index 92ee29cc3a7..dc07cb2c935 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs @@ -34,36 +34,37 @@ public sealed partial class ExistsSourceRequestParameters : RequestParameters { /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// If true, the request is real-time as opposed to near-real-time. + /// If true, the request is real-time as opposed to near-real-time. /// /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// true or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } @@ -84,15 +85,15 @@ public sealed partial class ExistsSourceRequestParameters : RequestParameters /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// The version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// public long? Version { get => Q("version"); set => Q("version", value); } /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -101,7 +102,16 @@ public sealed partial class ExistsSourceRequestParameters : RequestParameters /// /// /// Check for a document source. -/// Checks if a document's _source is stored. +/// +/// +/// Check whether a document source exists in an index. +/// For example: +/// +/// +/// HEAD my-index-000001/_source/1 +/// +/// +/// A document's source is not available if it is disabled in the mapping. /// /// public sealed partial class ExistsSourceRequest : PlainRequest @@ -120,8 +130,8 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. /// /// [JsonIgnore] @@ -129,7 +139,7 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// If true, the request is real-time as opposed to near-real-time. + /// If true, the request is real-time as opposed to near-real-time. /// /// [JsonIgnore] @@ -137,7 +147,8 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// If true, Elasticsearch refreshes all shards involved in the delete by query after the request completes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// [JsonIgnore] @@ -145,7 +156,7 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -153,7 +164,7 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// true or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// [JsonIgnore] @@ -177,8 +188,8 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// The version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// [JsonIgnore] @@ -186,7 +197,7 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -196,7 +207,16 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti /// /// /// Check for a document source. -/// Checks if a document's _source is stored. +/// +/// +/// Check whether a document source exists in an index. +/// For example: +/// +/// +/// HEAD my-index-000001/_source/1 +/// +/// +/// A document's source is not available if it is disabled in the mapping. /// /// public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor, ExistsSourceRequestParameters> @@ -261,7 +281,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Check for a document source. -/// Checks if a document's _source is stored. +/// +/// +/// Check whether a document source exists in an index. +/// For example: +/// +/// +/// HEAD my-index-000001/_source/1 +/// +/// +/// A document's source is not available if it is disabled in the mapping. /// /// public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs index a747706a688..6d2e2946136 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs @@ -34,8 +34,8 @@ public sealed partial class ExplainRequestParameters : RequestParameters { /// /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } @@ -43,6 +43,7 @@ public sealed partial class ExplainRequestParameters : RequestParameters /// /// /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } @@ -50,13 +51,15 @@ public sealed partial class ExplainRequestParameters : RequestParameters /// /// /// The default operator for query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// /// - /// Field to use as default where no field prefix is given in the query string. + /// The field to use as default where no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Df { get => Q("df"); set => Q("df", value); } @@ -64,35 +67,36 @@ public sealed partial class ExplainRequestParameters : RequestParameters /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Query in the Lucene query string syntax. + /// The query in the Lucene query string syntax. /// /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// True or false to return the _source field or not, or a list of fields to return. + /// True or false to return the _source field or not or a list of fields to return. /// /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } @@ -100,6 +104,8 @@ public sealed partial class ExplainRequestParameters : RequestParameters /// /// /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } @@ -107,6 +113,9 @@ public sealed partial class ExplainRequestParameters : RequestParameters /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } @@ -122,7 +131,8 @@ public sealed partial class ExplainRequestParameters : RequestParameters /// /// /// Explain a document match result. -/// Returns information about why a specific document matches, or doesn’t match, a query. +/// Get information about why a specific document matches, or doesn't match, a query. +/// It computes a score explanation for a query and a specific document. /// /// public sealed partial class ExplainRequest : PlainRequest @@ -141,8 +151,8 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -151,6 +161,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -159,6 +170,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// /// The default operator for query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -166,7 +178,8 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// - /// Field to use as default where no field prefix is given in the query string. + /// The field to use as default where no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -175,6 +188,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -182,8 +196,8 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -191,7 +205,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// - /// Query in the Lucene query string syntax. + /// The query in the Lucene query string syntax. /// /// [JsonIgnore] @@ -199,7 +213,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -207,7 +221,7 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// - /// True or false to return the _source field or not, or a list of fields to return. + /// True or false to return the _source field or not or a list of fields to return. /// /// [JsonIgnore] @@ -216,6 +230,8 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -224,6 +240,9 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -249,7 +268,8 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli /// /// /// Explain a document match result. -/// Returns information about why a specific document matches, or doesn’t match, a query. +/// Get information about why a specific document matches, or doesn't match, a query. +/// It computes a score explanation for a query and a specific document. /// /// public sealed partial class ExplainRequestDescriptor : RequestDescriptor, ExplainRequestParameters> @@ -368,7 +388,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Explain a document match result. -/// Returns information about why a specific document matches, or doesn’t match, a query. +/// Get information about why a specific document matches, or doesn't match, a query. +/// It computes a score explanation for a query and a specific document. /// /// public sealed partial class ExplainRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index 40ca0aa9140..743ac9c88b5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -43,14 +43,14 @@ public sealed partial class FieldCapsRequestParameters : RequestParameters /// /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as open,hidden. + /// The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as open,hidden. /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// /// - /// An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent + /// A comma-separated list of filters to apply to the response. /// /// public string? Filters { get => Q("filters"); set => Q("filters", value); } @@ -78,7 +78,9 @@ public sealed partial class FieldCapsRequestParameters : RequestParameters /// /// - /// Only return results for fields that have one of the types in the list + /// A comma-separated list of field types to include. + /// Any fields that do not match one of these types will be excluded from the results. + /// It defaults to empty, meaning that all field types are returned. /// /// public ICollection? Types { get => Q?>("types"); set => Q("types", value); } @@ -127,7 +129,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// - /// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as open,hidden. + /// The type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as open,hidden. /// /// [JsonIgnore] @@ -135,7 +137,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// - /// An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent + /// A comma-separated list of filters to apply to the response. /// /// [JsonIgnore] @@ -167,7 +169,9 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// - /// Only return results for fields that have one of the types in the list + /// A comma-separated list of field types to include. + /// Any fields that do not match one of these types will be excluded from the results. + /// It defaults to empty, meaning that all field types are returned. /// /// [JsonIgnore] @@ -175,7 +179,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// - /// List of fields to retrieve capabilities for. Wildcard (*) expressions are supported. + /// A list of fields to retrieve capabilities for. Wildcard (*) expressions are supported. /// /// [JsonInclude, JsonPropertyName("fields")] @@ -184,7 +188,12 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// Filter indices if the provided query rewrites to match_none on every shard. + /// + /// + /// IMPORTANT: The filtering is done on a best-effort basis, it uses index statistics and mappings to rewrite queries to match_none instead of fully running the request. + /// For instance a range query over a date field can rewrite to match_none if all documents within a shard (including deleted documents) are outside of the provided range. + /// However, not all queries can rewrite to match_none so this API may return an index even if the provided filter matches no document. /// /// [JsonInclude, JsonPropertyName("index_filter")] @@ -192,7 +201,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// /// - /// Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. + /// Define ad-hoc runtime fields in the request similar to the way it is done in search requests. /// These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings. /// /// @@ -255,7 +264,7 @@ public FieldCapsRequestDescriptor Indices(Elastic.Clients.Elasticsear /// /// - /// List of fields to retrieve capabilities for. Wildcard (*) expressions are supported. + /// A list of fields to retrieve capabilities for. Wildcard (*) expressions are supported. /// /// public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) @@ -266,7 +275,12 @@ public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearc /// /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// Filter indices if the provided query rewrites to match_none on every shard. + /// + /// + /// IMPORTANT: The filtering is done on a best-effort basis, it uses index statistics and mappings to rewrite queries to match_none instead of fully running the request. + /// For instance a range query over a date field can rewrite to match_none if all documents within a shard (including deleted documents) are outside of the provided range. + /// However, not all queries can rewrite to match_none so this API may return an index even if the provided filter matches no document. /// /// public FieldCapsRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) @@ -295,7 +309,7 @@ public FieldCapsRequestDescriptor IndexFilter(Action /// - /// Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. + /// Define ad-hoc runtime fields in the request similar to the way it is done in search requests. /// These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings. /// /// @@ -395,7 +409,7 @@ public FieldCapsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? /// /// - /// List of fields to retrieve capabilities for. Wildcard (*) expressions are supported. + /// A list of fields to retrieve capabilities for. Wildcard (*) expressions are supported. /// /// public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) @@ -406,7 +420,12 @@ public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? f /// /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// Filter indices if the provided query rewrites to match_none on every shard. + /// + /// + /// IMPORTANT: The filtering is done on a best-effort basis, it uses index statistics and mappings to rewrite queries to match_none instead of fully running the request. + /// For instance a range query over a date field can rewrite to match_none if all documents within a shard (including deleted documents) are outside of the provided range. + /// However, not all queries can rewrite to match_none so this API may return an index even if the provided filter matches no document. /// /// public FieldCapsRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) @@ -435,7 +454,7 @@ public FieldCapsRequestDescriptor IndexFilter(Action /// - /// Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. + /// Define ad-hoc runtime fields in the request similar to the way it is done in search requests. /// These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs index 1f2841fe397..efa756d8a3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsResponse.g.cs @@ -31,6 +31,12 @@ public sealed partial class FieldCapsResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("fields")] [ReadOnlyFieldDictionaryConverter(typeof(IReadOnlyDictionary))] public IReadOnlyDictionary> Fields { get; init; } + + /// + /// + /// The list of indices where this field has the same type family, or null if all indices have the same type family for the field. + /// + /// [JsonInclude, JsonPropertyName("indices")] [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection Indices { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs index e71f67d6fca..b5f6178c117 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs @@ -34,16 +34,23 @@ public sealed partial class GetRequestParameters : RequestParameters { /// /// - /// Should this request force synthetic _source? - /// Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. - /// Fetches with this enabled will be slower the enabling synthetic source natively in the index. + /// Indicates whether the request forces synthetic _source. + /// Use this paramater to test if the mapping supports synthetic _source and to get a sense of the worst case performance. + /// Fetches with this parameter enabled will be slower than enabling synthetic source natively in the index. /// /// public bool? ForceSyntheticSource { get => Q("force_synthetic_source"); set => Q("force_synthetic_source", value); } /// /// - /// Specifies the node or shard the operation should be performed on. Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. + /// + /// + /// If it is set to _local, the operation will prefer to be run on a local allocated shard when possible. + /// If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. + /// This can help with "jumping values" when hitting different shards in different refresh states. + /// A sample value can be something like the web session ID or the user name. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -57,28 +64,31 @@ public sealed partial class GetRequestParameters : RequestParameters /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// True or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// /// - /// A comma-separated list of source fields to exclude in the response. + /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } @@ -86,29 +96,35 @@ public sealed partial class GetRequestParameters : RequestParameters /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source parameter defaults to false. + /// Only leaf fields can be retrieved with the stored_field option. + /// Object fields can't be returned;​if specified, the request fails. /// /// public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. + /// The version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// public long? Version { get => Q("version"); set => Q("version", value); } /// /// - /// Specific version type: internal, external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -117,7 +133,73 @@ public sealed partial class GetRequestParameters : RequestParameters /// /// /// Get a document by its ID. -/// Retrieves the document with the specified ID from an index. +/// +/// +/// Get a document and its source or stored fields from an index. +/// +/// +/// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). +/// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. +/// To turn off realtime behavior, set the realtime parameter to false. +/// +/// +/// Source filtering +/// +/// +/// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. +/// You can turn off _source retrieval by using the _source parameter: +/// +/// +/// GET my-index-000001/_doc/0?_source=false +/// +/// +/// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. +/// This can be helpful with large documents where partial retrieval can save on network overhead +/// Both parameters take a comma separated list of fields or wildcard expressions. +/// For example: +/// +/// +/// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities +/// +/// +/// If you only want to specify includes, you can use a shorter notation: +/// +/// +/// GET my-index-000001/_doc/0?_source=*.id +/// +/// +/// Routing +/// +/// +/// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. +/// For example: +/// +/// +/// GET my-index-000001/_doc/2?routing=user1 +/// +/// +/// This request gets the document with ID 2, but it is routed based on the user. +/// The document is not fetched if the correct routing is not specified. +/// +/// +/// Distributed +/// +/// +/// The GET operation is hashed into a specific shard ID. +/// It is then redirected to one of the replicas within that shard ID and returns the result. +/// The replicas are the primary shard and its replicas within that shard ID group. +/// This means that the more replicas you have, the better your GET scaling will be. +/// +/// +/// Versioning support +/// +/// +/// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. +/// +/// +/// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. +/// The old version of the document doesn't disappear immediately, although you won't be able to access it. +/// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// /// public sealed partial class GetRequest : PlainRequest @@ -136,9 +218,9 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// Should this request force synthetic _source? - /// Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. - /// Fetches with this enabled will be slower the enabling synthetic source natively in the index. + /// Indicates whether the request forces synthetic _source. + /// Use this paramater to test if the mapping supports synthetic _source and to get a sense of the worst case performance. + /// Fetches with this parameter enabled will be slower than enabling synthetic source natively in the index. /// /// [JsonIgnore] @@ -146,7 +228,14 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// Specifies the node or shard the operation should be performed on. Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. + /// + /// + /// If it is set to _local, the operation will prefer to be run on a local allocated shard when possible. + /// If it is set to a custom value, the value is used to guarantee that the same shards will be used for the same custom value. + /// This can help with "jumping values" when hitting different shards in different refresh states. + /// A sample value can be something like the web session ID or the user name. /// /// [JsonIgnore] @@ -162,7 +251,8 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// [JsonIgnore] @@ -170,7 +260,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -178,7 +268,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// True or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// [JsonIgnore] @@ -186,7 +276,9 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// A comma-separated list of source fields to exclude in the response. + /// A comma-separated list of source fields to exclude from the response. + /// You can also use this parameter to exclude fields from the subset specified in _source_includes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -195,6 +287,9 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// /// A comma-separated list of source fields to include in the response. + /// If this parameter is specified, only these source fields are returned. + /// You can exclude fields from this subset using the _source_excludes query parameter. + /// If the _source parameter is false, this parameter is ignored. /// /// [JsonIgnore] @@ -202,9 +297,11 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source parameter defaults to false. + /// Only leaf fields can be retrieved with the stored_field option. + /// Object fields can't be returned;​if specified, the request fails. /// /// [JsonIgnore] @@ -212,7 +309,8 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. + /// The version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// [JsonIgnore] @@ -220,7 +318,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// - /// Specific version type: internal, external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -230,7 +328,73 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients /// /// /// Get a document by its ID. -/// Retrieves the document with the specified ID from an index. +/// +/// +/// Get a document and its source or stored fields from an index. +/// +/// +/// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). +/// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. +/// To turn off realtime behavior, set the realtime parameter to false. +/// +/// +/// Source filtering +/// +/// +/// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. +/// You can turn off _source retrieval by using the _source parameter: +/// +/// +/// GET my-index-000001/_doc/0?_source=false +/// +/// +/// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. +/// This can be helpful with large documents where partial retrieval can save on network overhead +/// Both parameters take a comma separated list of fields or wildcard expressions. +/// For example: +/// +/// +/// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities +/// +/// +/// If you only want to specify includes, you can use a shorter notation: +/// +/// +/// GET my-index-000001/_doc/0?_source=*.id +/// +/// +/// Routing +/// +/// +/// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. +/// For example: +/// +/// +/// GET my-index-000001/_doc/2?routing=user1 +/// +/// +/// This request gets the document with ID 2, but it is routed based on the user. +/// The document is not fetched if the correct routing is not specified. +/// +/// +/// Distributed +/// +/// +/// The GET operation is hashed into a specific shard ID. +/// It is then redirected to one of the replicas within that shard ID and returns the result. +/// The replicas are the primary shard and its replicas within that shard ID group. +/// This means that the more replicas you have, the better your GET scaling will be. +/// +/// +/// Versioning support +/// +/// +/// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. +/// +/// +/// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. +/// The old version of the document doesn't disappear immediately, although you won't be able to access it. +/// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// /// public sealed partial class GetRequestDescriptor : RequestDescriptor, GetRequestParameters> @@ -297,7 +461,73 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get a document by its ID. -/// Retrieves the document with the specified ID from an index. +/// +/// +/// Get a document and its source or stored fields from an index. +/// +/// +/// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). +/// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. +/// To turn off realtime behavior, set the realtime parameter to false. +/// +/// +/// Source filtering +/// +/// +/// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. +/// You can turn off _source retrieval by using the _source parameter: +/// +/// +/// GET my-index-000001/_doc/0?_source=false +/// +/// +/// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. +/// This can be helpful with large documents where partial retrieval can save on network overhead +/// Both parameters take a comma separated list of fields or wildcard expressions. +/// For example: +/// +/// +/// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities +/// +/// +/// If you only want to specify includes, you can use a shorter notation: +/// +/// +/// GET my-index-000001/_doc/0?_source=*.id +/// +/// +/// Routing +/// +/// +/// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. +/// For example: +/// +/// +/// GET my-index-000001/_doc/2?routing=user1 +/// +/// +/// This request gets the document with ID 2, but it is routed based on the user. +/// The document is not fetched if the correct routing is not specified. +/// +/// +/// Distributed +/// +/// +/// The GET operation is hashed into a specific shard ID. +/// It is then redirected to one of the replicas within that shard ID and returns the result. +/// The replicas are the primary shard and its replicas within that shard ID group. +/// This means that the more replicas you have, the better your GET scaling will be. +/// +/// +/// Versioning support +/// +/// +/// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. +/// +/// +/// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. +/// The old version of the document doesn't disappear immediately, although you won't be able to access it. +/// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// /// public sealed partial class GetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs index 09773e266f6..f110c87f9ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetResponse.g.cs @@ -28,25 +28,80 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class GetResponse : ElasticsearchResponse { + /// + /// + /// If the stored_fields parameter is set to true and found is true, it contains the document fields stored in the index. + /// + /// [JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.FieldValues? Fields { get; init; } + + /// + /// + /// Indicates whether the document exists. + /// + /// [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } + + /// + /// + /// The unique identifier for the document. + /// + /// [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } [JsonInclude, JsonPropertyName("_ignored")] public IReadOnlyCollection? Ignored { get; init; } + + /// + /// + /// The name of the index the document belongs to. + /// + /// [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// + /// The primary term assigned to the document for the indexing operation. + /// + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// + /// The explicit routing, if set. + /// + /// [JsonInclude, JsonPropertyName("_routing")] public string? Routing { get; init; } + + /// + /// + /// The sequence number assigned to the document for the indexing operation. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. + /// + /// [JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// + /// If found is true, it contains the document data formatted in JSON. + /// If the _source parameter is set to false or the stored_fields parameter is set to true, it is excluded. + /// + /// [JsonInclude, JsonPropertyName("_source")] [SourceConverter] public TDocument? Source { get; init; } + + /// + /// + /// The document version, which is ncremented each time the document is updated. + /// + /// [JsonInclude, JsonPropertyName("_version")] public long? Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs index 27db2736d08..34ef3573000 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs @@ -34,7 +34,9 @@ public sealed partial class GetScriptRequestParameters : RequestParameters { /// /// - /// Specify timeout for connection to master + /// The period to wait for the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } @@ -62,7 +64,9 @@ public GetScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requi /// /// - /// Specify timeout for connection to master + /// The period to wait for the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs index d44b4d6b1a2..0f3e7044d4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetSourceRequest.g.cs @@ -34,35 +34,37 @@ public sealed partial class GetSourceRequestParameters : RequestParameters { /// /// - /// Specifies the node or shard the operation should be performed on. Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. + /// If true, the request is real-time as opposed to near-real-time. /// /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// True or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } @@ -80,18 +82,25 @@ public sealed partial class GetSourceRequestParameters : RequestParameters /// /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } + + /// + /// + /// A comma-separated list of stored fields to return as part of a hit. + /// + /// public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. + /// The version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// public long? Version { get => Q("version"); set => Q("version", value); } /// /// - /// Specific version type: internal, external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -100,8 +109,20 @@ public sealed partial class GetSourceRequestParameters : RequestParameters /// /// /// Get a document's source. -/// Returns the source of a document. /// +/// +/// Get the source of a document. +/// For example: +/// +/// +/// GET my-index-000001/_source/1 +/// +/// +/// You can use the source filtering parameters to control which parts of the _source are returned: +/// +/// +/// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities +/// /// public sealed partial class GetSourceRequest : PlainRequest { @@ -119,7 +140,8 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// - /// Specifies the node or shard the operation should be performed on. Random by default. + /// The node or shard the operation should be performed on. + /// By default, the operation is randomized between the shard replicas. /// /// [JsonIgnore] @@ -127,7 +149,7 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. + /// If true, the request is real-time as opposed to near-real-time. /// /// [JsonIgnore] @@ -135,7 +157,8 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes. + /// If true, the request refreshes the relevant shards before retrieving the document. + /// Setting it to true should be done after careful thought and verification that this does not cause a heavy load on the system (and slow down indexing). /// /// [JsonIgnore] @@ -143,7 +166,7 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// - /// Target the specified primary shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -151,7 +174,7 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// - /// True or false to return the _source field or not, or a list of fields to return. + /// Indicates whether to return the _source field (true or false) or lists the fields to return. /// /// [JsonIgnore] @@ -172,12 +195,19 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } + + /// + /// + /// A comma-separated list of stored fields to return as part of a hit. + /// + /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// /// - /// Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed. + /// The version number for concurrency control. + /// It must match the current version of the document for the request to succeed. /// /// [JsonIgnore] @@ -185,7 +215,7 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// - /// Specific version type: internal, external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -195,8 +225,20 @@ public GetSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.C /// /// /// Get a document's source. -/// Returns the source of a document. /// +/// +/// Get the source of a document. +/// For example: +/// +/// +/// GET my-index-000001/_source/1 +/// +/// +/// You can use the source filtering parameters to control which parts of the _source are returned: +/// +/// +/// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities +/// /// public sealed partial class GetSourceRequestDescriptor : RequestDescriptor, GetSourceRequestParameters> { @@ -261,8 +303,20 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get a document's source. -/// Returns the source of a document. /// +/// +/// Get the source of a document. +/// For example: +/// +/// +/// GET my-index-000001/_source/1 +/// +/// +/// You can use the source filtering parameters to control which parts of the _source are returned: +/// +/// +/// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities +/// /// public sealed partial class GetSourceRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs index d0d38a0096a..72723c175c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MigrateToDataTiersResponse.g.cs @@ -30,17 +30,54 @@ public sealed partial class MigrateToDataTiersResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("dry_run")] public bool DryRun { get; init; } + + /// + /// + /// The component templates that were updated to not contain custom routing settings for the provided data attribute. + /// + /// [JsonInclude, JsonPropertyName("migrated_component_templates")] public IReadOnlyCollection MigratedComponentTemplates { get; init; } + + /// + /// + /// The composable index templates that were updated to not contain custom routing settings for the provided data attribute. + /// + /// [JsonInclude, JsonPropertyName("migrated_composable_templates")] public IReadOnlyCollection MigratedComposableTemplates { get; init; } + + /// + /// + /// The ILM policies that were updated. + /// + /// [JsonInclude, JsonPropertyName("migrated_ilm_policies")] public IReadOnlyCollection MigratedIlmPolicies { get; init; } + + /// + /// + /// The indices that were migrated to tier preference routing. + /// + /// [JsonInclude, JsonPropertyName("migrated_indices")] [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection MigratedIndices { get; init; } + + /// + /// + /// The legacy index templates that were updated to not contain custom routing settings for the provided data attribute. + /// + /// [JsonInclude, JsonPropertyName("migrated_legacy_templates")] public IReadOnlyCollection MigratedLegacyTemplates { get; init; } + + /// + /// + /// The name of the legacy index template that was deleted. + /// This information is missing if no legacy index templates were deleted. + /// + /// [JsonInclude, JsonPropertyName("removed_legacy_template")] public string RemovedLegacyTemplate { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs index e69e5d40c39..c45c2815647 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/MoveToStepRequest.g.cs @@ -69,8 +69,19 @@ public MoveToStepRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r internal override string OperationName => "ilm.move_to_step"; + /// + /// + /// The step that the index is expected to be in. + /// + /// [JsonInclude, JsonPropertyName("current_step")] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey CurrentStep { get; set; } + + /// + /// + /// The step that you want to run. + /// + /// [JsonInclude, JsonPropertyName("next_step")] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey NextStep { get; set; } } @@ -129,6 +140,11 @@ public MoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearc private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor NextStepDescriptor { get; set; } private Action NextStepDescriptorAction { get; set; } + /// + /// + /// The step that the index is expected to be in. + /// + /// public MoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey currentStep) { CurrentStepDescriptor = null; @@ -153,6 +169,11 @@ public MoveToStepRequestDescriptor CurrentStep(Action + /// + /// The step that you want to run. + /// + /// public MoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey nextStep) { NextStepDescriptor = null; @@ -266,6 +287,11 @@ public MoveToStepRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKeyDescriptor NextStepDescriptor { get; set; } private Action NextStepDescriptorAction { get; set; } + /// + /// + /// The step that the index is expected to be in. + /// + /// public MoveToStepRequestDescriptor CurrentStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey currentStep) { CurrentStepDescriptor = null; @@ -290,6 +316,11 @@ public MoveToStepRequestDescriptor CurrentStep(Action + /// + /// The step that you want to run. + /// + /// public MoveToStepRequestDescriptor NextStep(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.StepKey nextStep) { NextStepDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs index 9458140d79e..5849282dd88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs @@ -32,7 +32,18 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; public sealed partial class StartIlmRequestParameters : RequestParameters { + /// + /// + /// Explicit operation timeout for connection to master node + /// + /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Explicit operation timeout + /// + /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } @@ -54,8 +65,19 @@ public sealed partial class StartIlmRequest : PlainRequest "ilm.start"; + /// + /// + /// Explicit operation timeout for connection to master node + /// + /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Explicit operation timeout + /// + /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs index 900918996e5..3cd7e0ddf37 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs @@ -32,7 +32,18 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; public sealed partial class StopIlmRequestParameters : RequestParameters { + /// + /// + /// Explicit operation timeout for connection to master node + /// + /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Explicit operation timeout + /// + /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } @@ -57,8 +68,19 @@ public sealed partial class StopIlmRequest : PlainRequest "ilm.stop"; + /// + /// + /// Explicit operation timeout for connection to master node + /// + /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Explicit operation timeout + /// + /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs index 0a17e30d21c..a542c96bd8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeIndexRequest.g.cs @@ -37,7 +37,13 @@ public sealed partial class AnalyzeIndexRequestParameters : RequestParameters /// /// /// Get tokens from text analysis. -/// The analyze API performs analysis on a text string and returns the resulting tokens. +/// The analyze API performs analysis on a text string and returns the resulting tokens. +/// +/// +/// Generating excessive amount of tokens may cause a node to run out of memory. +/// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. +/// If more than this limit of tokens gets generated, an error occurs. +/// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// public sealed partial class AnalyzeIndexRequest : PlainRequest @@ -139,7 +145,13 @@ public AnalyzeIndexRequest(Elastic.Clients.Elasticsearch.IndexName? index) : bas /// /// /// Get tokens from text analysis. -/// The analyze API performs analysis on a text string and returns the resulting tokens. +/// The analyze API performs analysis on a text string and returns the resulting tokens. +/// +/// +/// Generating excessive amount of tokens may cause a node to run out of memory. +/// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. +/// If more than this limit of tokens gets generated, an error occurs. +/// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor, AnalyzeIndexRequestParameters> @@ -371,7 +383,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get tokens from text analysis. -/// The analyze API performs analysis on a text string and returns the resulting tokens. +/// The analyze API performs analysis on a text string and returns the resulting tokens. +/// +/// +/// Generating excessive amount of tokens may cause a node to run out of memory. +/// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. +/// If more than this limit of tokens gets generated, an error occurs. +/// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// public sealed partial class AnalyzeIndexRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index 86ff0cc74bc..344bcff4e50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -93,6 +93,11 @@ public sealed partial class ClearCacheRequestParameters : RequestParameters /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// +/// +/// By default, the clear cache API clears all caches. +/// To clear only specific caches, use the fielddata, query, or request parameters. +/// To clear the cache only of specific fields, use the fields parameter. +/// /// public sealed partial class ClearCacheRequest : PlainRequest { @@ -180,6 +185,11 @@ public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// +/// +/// By default, the clear cache API clears all caches. +/// To clear only specific caches, use the fielddata, query, or request parameters. +/// To clear the cache only of specific fields, use the fields parameter. +/// /// public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor, ClearCacheRequestParameters> { @@ -226,6 +236,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// +/// +/// By default, the clear cache API clears all caches. +/// To clear only specific caches, use the fielddata, query, or request parameters. +/// To clear the cache only of specific fields, use the fields parameter. +/// /// public sealed partial class ClearCacheRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs index e6c9e2e8529..f5366157ae8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloneIndexRequest.g.cs @@ -99,6 +99,11 @@ public sealed partial class CloneIndexRequestParameters : RequestParameters /// /// /// +/// The index must be marked as read-only and have a cluster health status of green. +/// +/// +/// +/// /// The target index must not exist. /// /// @@ -113,6 +118,35 @@ public sealed partial class CloneIndexRequestParameters : RequestParameters /// /// /// +/// +/// The current write index on a data stream cannot be cloned. +/// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. +/// +/// +/// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. +/// +/// +/// Monitor the cloning process +/// +/// +/// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. +/// +/// +/// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. +/// At this point, all shards are in the state unassigned. +/// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. +/// +/// +/// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. +/// When the clone operation completes, the shard will become active. +/// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. +/// +/// +/// Wait for active shards +/// +/// +/// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. +/// /// public sealed partial class CloneIndexRequest : PlainRequest { @@ -214,6 +248,11 @@ public CloneIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. /// /// /// +/// The index must be marked as read-only and have a cluster health status of green. +/// +/// +/// +/// /// The target index must not exist. /// /// @@ -228,6 +267,35 @@ public CloneIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. /// /// /// +/// +/// The current write index on a data stream cannot be cloned. +/// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. +/// +/// +/// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. +/// +/// +/// Monitor the cloning process +/// +/// +/// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. +/// +/// +/// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. +/// At this point, all shards are in the state unassigned. +/// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. +/// +/// +/// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. +/// When the clone operation completes, the shard will become active. +/// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. +/// +/// +/// Wait for active shards +/// +/// +/// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. +/// /// public sealed partial class CloneIndexRequestDescriptor : RequestDescriptor, CloneIndexRequestParameters> { @@ -351,6 +419,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// +/// The index must be marked as read-only and have a cluster health status of green. +/// +/// +/// +/// /// The target index must not exist. /// /// @@ -365,6 +438,35 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// +/// +/// The current write index on a data stream cannot be cloned. +/// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. +/// +/// +/// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. +/// +/// +/// Monitor the cloning process +/// +/// +/// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. +/// +/// +/// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. +/// At this point, all shards are in the state unassigned. +/// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. +/// +/// +/// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. +/// When the clone operation completes, the shard will become active. +/// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. +/// +/// +/// Wait for active shards +/// +/// +/// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. +/// /// public sealed partial class CloneIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs index 1cab06ad5e6..fc291de27db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateIndexRequest.g.cs @@ -60,7 +60,41 @@ public sealed partial class CreateIndexRequestParameters : RequestParameters /// /// /// Create an index. -/// Creates a new index. +/// You can use the create index API to add a new index to an Elasticsearch cluster. +/// When creating an index, you can specify the following: +/// +/// +/// +/// +/// Settings for the index. +/// +/// +/// +/// +/// Mappings for fields in the index. +/// +/// +/// +/// +/// Index aliases +/// +/// +/// +/// +/// Wait for active shards +/// +/// +/// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. +/// The index creation response will indicate what happened. +/// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. +/// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. +/// These values simply indicate whether the operation completed before the timeout. +/// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. +/// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). +/// +/// +/// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. +/// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// public sealed partial class CreateIndexRequest : PlainRequest @@ -149,7 +183,41 @@ public CreateIndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// /// Create an index. -/// Creates a new index. +/// You can use the create index API to add a new index to an Elasticsearch cluster. +/// When creating an index, you can specify the following: +/// +/// +/// +/// +/// Settings for the index. +/// +/// +/// +/// +/// Mappings for fields in the index. +/// +/// +/// +/// +/// Index aliases +/// +/// +/// +/// +/// Wait for active shards +/// +/// +/// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. +/// The index creation response will indicate what happened. +/// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. +/// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. +/// These values simply indicate whether the operation completed before the timeout. +/// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. +/// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). +/// +/// +/// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. +/// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// public sealed partial class CreateIndexRequestDescriptor : RequestDescriptor, CreateIndexRequestParameters> @@ -324,7 +392,41 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Create an index. -/// Creates a new index. +/// You can use the create index API to add a new index to an Elasticsearch cluster. +/// When creating an index, you can specify the following: +/// +/// +/// +/// +/// Settings for the index. +/// +/// +/// +/// +/// Mappings for fields in the index. +/// +/// +/// +/// +/// Index aliases +/// +/// +/// +/// +/// Wait for active shards +/// +/// +/// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. +/// The index creation response will indicate what happened. +/// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. +/// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. +/// These values simply indicate whether the operation completed before the timeout. +/// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. +/// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). +/// +/// +/// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. +/// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// public sealed partial class CreateIndexRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index f73c4862ff4..9e2fde6fe70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -77,7 +77,13 @@ public sealed partial class DeleteIndexRequestParameters : RequestParameters /// /// /// Delete indices. -/// Deletes one or more indices. +/// Deleting an index deletes its documents, shards, and metadata. +/// It does not delete related Kibana components, such as data views, visualizations, or dashboards. +/// +/// +/// You cannot delete the current write index of a data stream. +/// To delete the index, you must roll over the data stream so a new write index is created. +/// You can then use the delete index API to delete the previous write index. /// /// public sealed partial class DeleteIndexRequest : PlainRequest @@ -144,7 +150,13 @@ public DeleteIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base( /// /// /// Delete indices. -/// Deletes one or more indices. +/// Deleting an index deletes its documents, shards, and metadata. +/// It does not delete related Kibana components, such as data views, visualizations, or dashboards. +/// +/// +/// You cannot delete the current write index of a data stream. +/// To delete the index, you must roll over the data stream so a new write index is created. +/// You can then use the delete index API to delete the previous write index. /// /// public sealed partial class DeleteIndexRequestDescriptor : RequestDescriptor, DeleteIndexRequestParameters> @@ -187,7 +199,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Delete indices. -/// Deletes one or more indices. +/// Deleting an index deletes its documents, shards, and metadata. +/// It does not delete related Kibana components, such as data views, visualizations, or dashboards. +/// +/// +/// You cannot delete the current write index of a data stream. +/// To delete the index, you must roll over the data stream so a new write index is created. +/// You can then use the delete index API to delete the previous write index. /// /// public sealed partial class DeleteIndexRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs index 22c27dca5fb..9636af46a91 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class DeleteTemplateRequestParameters : RequestParameters /// /// -/// Deletes a legacy index template. +/// Delete a legacy index template. /// /// public sealed partial class DeleteTemplateRequest : PlainRequest @@ -89,7 +89,7 @@ public DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r = /// /// -/// Deletes a legacy index template. +/// Delete a legacy index template. /// /// public sealed partial class DeleteTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index f72d916026c..b8a1b0e113d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -81,6 +81,11 @@ public sealed partial class DiskUsageRequestParameters : RequestParameters /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// +/// +/// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. +/// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. +/// The stored size of the _id field is likely underestimated while the _source field is overestimated. +/// ///
public sealed partial class DiskUsageRequest : PlainRequest { @@ -150,6 +155,11 @@ public DiskUsageRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// +/// +/// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. +/// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. +/// The stored size of the _id field is likely underestimated while the _source field is overestimated. +/// ///
public sealed partial class DiskUsageRequestDescriptor : RequestDescriptor, DiskUsageRequestParameters> { @@ -195,6 +205,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// +/// +/// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. +/// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. +/// The stored size of the _id field is likely underestimated while the _source field is overestimated. +/// ///
public sealed partial class DiskUsageRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index ee84ea82590..497533fe195 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -56,14 +56,6 @@ public sealed partial class ExistsAliasRequestParameters : RequestParameters /// ///
public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -117,15 +109,6 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elasti /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -157,7 +140,6 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -205,7 +187,6 @@ public ExistsAliasRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ExistsAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ExistsAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs index efbc7dff46a..0d37ec92318 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -82,7 +82,7 @@ public sealed partial class ExistsRequestParameters : RequestParameters /// /// /// Check indices. -/// Checks if one or more indices, index aliases, or data streams exist. +/// Check if one or more indices, index aliases, or data streams exist. /// /// public sealed partial class ExistsRequest : PlainRequest @@ -155,7 +155,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => /// /// /// Check indices. -/// Checks if one or more indices, index aliases, or data streams exist. +/// Check if one or more indices, index aliases, or data streams exist. /// /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> @@ -199,7 +199,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Check indices. -/// Checks if one or more indices, index aliases, or data streams exist. +/// Check if one or more indices, index aliases, or data streams exist. /// /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs index 59042066550..de54274ac72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs @@ -34,21 +34,23 @@ public sealed partial class ExistsTemplateRequestParameters : RequestParameters { /// /// - /// Return settings in flat format (default: false) + /// Indicates whether to use a flat format for the response. /// /// public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } /// /// - /// Return local information, do not retrieve the state from master node (default: false) + /// Indicates whether to get information from the local node only. /// /// public bool? Local { get => Q("local"); set => Q("local", value); } /// /// - /// Explicit operation timeout for connection to master node + /// The period to wait for the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } @@ -57,7 +59,11 @@ public sealed partial class ExistsTemplateRequestParameters : RequestParameters /// /// /// Check existence of index templates. -/// Returns information about whether a particular index template exists. +/// Get information about whether index templates exist. +/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// public sealed partial class ExistsTemplateRequest : PlainRequest @@ -76,7 +82,7 @@ public ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// - /// Return settings in flat format (default: false) + /// Indicates whether to use a flat format for the response. /// /// [JsonIgnore] @@ -84,7 +90,7 @@ public ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// - /// Return local information, do not retrieve the state from master node (default: false) + /// Indicates whether to get information from the local node only. /// /// [JsonIgnore] @@ -92,7 +98,9 @@ public ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// - /// Explicit operation timeout for connection to master node + /// The period to wait for the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// [JsonIgnore] @@ -102,7 +110,11 @@ public ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// /// Check existence of index templates. -/// Returns information about whether a particular index template exists. +/// Get information about whether index templates exist. +/// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// public sealed partial class ExistsTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index 32d5670584b..3d7957b2e4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -96,6 +96,10 @@ public sealed partial class FieldUsageStatsRequestParameters : RequestParameters /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// +/// +/// The response body reports the per-shard usage count of the data structures that back the fields in the index. +/// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. +/// /// public sealed partial class FieldUsageStatsRequest : PlainRequest { @@ -182,6 +186,10 @@ public FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// +/// +/// The response body reports the per-shard usage count of the data structures that back the fields in the index. +/// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. +/// /// public sealed partial class FieldUsageStatsRequestDescriptor : RequestDescriptor, FieldUsageStatsRequestParameters> { @@ -229,6 +237,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// +/// +/// The response body reports the per-shard usage count of the data structures that back the fields in the index. +/// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. +/// /// public sealed partial class FieldUsageStatsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 9059a333f91..d375c67ad88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -100,6 +100,72 @@ public sealed partial class ForcemergeRequestParameters : RequestParameters /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// +/// +/// Blocks during a force merge +/// +/// +/// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). +/// If the client connection is lost before completion then the force merge process will continue in the background. +/// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. +/// +/// +/// Running force merge asynchronously +/// +/// +/// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. +/// However, you can not cancel this task as the force merge task is not cancelable. +/// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. +/// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. +/// +/// +/// Force merging multiple indices +/// +/// +/// You can force merge multiple indices with a single request by targeting: +/// +/// +/// +/// +/// One or more data streams that contain multiple backing indices +/// +/// +/// +/// +/// Multiple indices +/// +/// +/// +/// +/// One or more aliases +/// +/// +/// +/// +/// All data streams and indices in a cluster +/// +/// +/// +/// +/// Each targeted shard is force-merged separately using the force_merge threadpool. +/// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. +/// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel +/// +/// +/// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. +/// +/// +/// Data streams and time-based indices +/// +/// +/// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. +/// In these cases, each index only receives indexing traffic for a certain period of time. +/// Once an index receive no more writes, its shards can be force-merged to a single segment. +/// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. +/// For example: +/// +/// +/// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 +/// /// public sealed partial class ForcemergeRequest : PlainRequest { @@ -194,6 +260,72 @@ public ForcemergeRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// +/// +/// Blocks during a force merge +/// +/// +/// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). +/// If the client connection is lost before completion then the force merge process will continue in the background. +/// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. +/// +/// +/// Running force merge asynchronously +/// +/// +/// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. +/// However, you can not cancel this task as the force merge task is not cancelable. +/// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. +/// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. +/// +/// +/// Force merging multiple indices +/// +/// +/// You can force merge multiple indices with a single request by targeting: +/// +/// +/// +/// +/// One or more data streams that contain multiple backing indices +/// +/// +/// +/// +/// Multiple indices +/// +/// +/// +/// +/// One or more aliases +/// +/// +/// +/// +/// All data streams and indices in a cluster +/// +/// +/// +/// +/// Each targeted shard is force-merged separately using the force_merge threadpool. +/// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. +/// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel +/// +/// +/// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. +/// +/// +/// Data streams and time-based indices +/// +/// +/// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. +/// In these cases, each index only receives indexing traffic for a certain period of time. +/// Once an index receive no more writes, its shards can be force-merged to a single segment. +/// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. +/// For example: +/// +/// +/// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 +/// /// public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor, ForcemergeRequestParameters> { @@ -252,6 +384,72 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// +/// +/// Blocks during a force merge +/// +/// +/// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). +/// If the client connection is lost before completion then the force merge process will continue in the background. +/// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. +/// +/// +/// Running force merge asynchronously +/// +/// +/// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. +/// However, you can not cancel this task as the force merge task is not cancelable. +/// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. +/// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. +/// +/// +/// Force merging multiple indices +/// +/// +/// You can force merge multiple indices with a single request by targeting: +/// +/// +/// +/// +/// One or more data streams that contain multiple backing indices +/// +/// +/// +/// +/// Multiple indices +/// +/// +/// +/// +/// One or more aliases +/// +/// +/// +/// +/// All data streams and indices in a cluster +/// +/// +/// +/// +/// Each targeted shard is force-merged separately using the force_merge threadpool. +/// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. +/// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel +/// +/// +/// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. +/// +/// +/// Data streams and time-based indices +/// +/// +/// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. +/// In these cases, each index only receives indexing traffic for a certain period of time. +/// Once an index receive no more writes, its shards can be force-merged to a single segment. +/// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. +/// For example: +/// +/// +/// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 +/// /// public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 0b66e257a11..dde2e261da7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -56,14 +56,6 @@ public sealed partial class GetAliasRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -125,15 +117,6 @@ public GetAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -165,7 +148,6 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -213,7 +195,6 @@ public GetAliasRequestDescriptor() public GetAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetAliasRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public GetAliasRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs new file mode 100644 index 00000000000..edc0580d692 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsRequest.g.cs @@ -0,0 +1,79 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class GetDataLifecycleStatsRequestParameters : RequestParameters +{ +} + +/// +/// +/// Get data stream lifecycle stats. +/// Get statistics about the data streams that are managed by a data stream lifecycle. +/// +/// +public sealed partial class GetDataLifecycleStatsRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataLifecycleStats; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_data_lifecycle_stats"; +} + +/// +/// +/// Get data stream lifecycle stats. +/// Get statistics about the data streams that are managed by a data stream lifecycle. +/// +/// +public sealed partial class GetDataLifecycleStatsRequestDescriptor : RequestDescriptor +{ + internal GetDataLifecycleStatsRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetDataLifecycleStatsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetDataLifecycleStats; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_data_lifecycle_stats"; + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs new file mode 100644 index 00000000000..53645820197 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleStatsResponse.g.cs @@ -0,0 +1,63 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class GetDataLifecycleStatsResponse : ElasticsearchResponse +{ + /// + /// + /// The count of data streams currently being managed by the data stream lifecycle. + /// + /// + [JsonInclude, JsonPropertyName("data_stream_count")] + public int DataStreamCount { get; init; } + + /// + /// + /// Information about the data streams that are managed by the data stream lifecycle. + /// + /// + [JsonInclude, JsonPropertyName("data_streams")] + public IReadOnlyCollection DataStreams { get; init; } + + /// + /// + /// The duration of the last data stream lifecycle execution. + /// + /// + [JsonInclude, JsonPropertyName("last_run_duration_in_millis")] + public long? LastRunDurationInMillis { get; init; } + + /// + /// + /// The time that passed between the start of the last two data stream lifecycle executions. + /// This value should amount approximately to data_streams.lifecycle.poll_interval. + /// + /// + [JsonInclude, JsonPropertyName("time_between_starts_in_millis")] + public long? TimeBetweenStartsInMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs index 960c83e0bab..751c051c51c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs @@ -78,6 +78,9 @@ public sealed partial class GetFieldMappingRequestParameters : RequestParameters /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// +/// +/// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. +/// /// public sealed partial class GetFieldMappingRequest : PlainRequest { @@ -148,6 +151,9 @@ public GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Indices? indices, El /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// +/// +/// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. +/// /// public sealed partial class GetFieldMappingRequestDescriptor : RequestDescriptor, GetFieldMappingRequestParameters> { @@ -198,6 +204,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// +/// +/// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. +/// /// public sealed partial class GetFieldMappingRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index 69965de963b..82a29f2bd97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -96,7 +96,7 @@ public sealed partial class GetIndexRequestParameters : RequestParameters /// /// /// Get index information. -/// Returns information about one or more indices. For data streams, the API returns information about the +/// Get information about one or more indices. For data streams, the API returns information about the /// stream’s backing indices. /// /// @@ -186,7 +186,7 @@ public GetIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r = /// /// /// Get index information. -/// Returns information about one or more indices. For data streams, the API returns information about the +/// Get information about one or more indices. For data streams, the API returns information about the /// stream’s backing indices. /// /// @@ -233,7 +233,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get index information. -/// Returns information about one or more indices. For data streams, the API returns information about the +/// Get information about one or more indices. For data streams, the API returns information about the /// stream’s backing indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs index b4c809766b6..60ed8e8db98 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexTemplateRequest.g.cs @@ -64,7 +64,7 @@ public sealed partial class GetIndexTemplateRequestParameters : RequestParameter /// /// /// Get index templates. -/// Returns information about one or more index templates. +/// Get information about one or more index templates. /// /// public sealed partial class GetIndexTemplateRequest : PlainRequest @@ -121,7 +121,7 @@ public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base( /// /// /// Get index templates. -/// Returns information about one or more index templates. +/// Get information about one or more index templates. /// /// public sealed partial class GetIndexTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 64fa5aa087b..9f336f6bebe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -94,8 +94,8 @@ public sealed partial class GetIndicesSettingsRequestParameters : RequestParamet /// /// /// Get index settings. -/// Returns setting information for one or more indices. For data streams, -/// returns setting information for the stream’s backing indices. +/// Get setting information for one or more indices. +/// For data streams, it returns setting information for the stream's backing indices. /// /// public sealed partial class GetIndicesSettingsRequest : PlainRequest @@ -193,8 +193,8 @@ public GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Names? name) : ba /// /// /// Get index settings. -/// Returns setting information for one or more indices. For data streams, -/// returns setting information for the stream’s backing indices. +/// Get setting information for one or more indices. +/// For data streams, it returns setting information for the stream's backing indices. /// /// public sealed partial class GetIndicesSettingsRequestDescriptor : RequestDescriptor, GetIndicesSettingsRequestParameters> @@ -245,8 +245,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get index settings. -/// Returns setting information for one or more indices. For data streams, -/// returns setting information for the stream’s backing indices. +/// Get setting information for one or more indices. +/// For data streams, it returns setting information for the stream's backing indices. /// /// public sealed partial class GetIndicesSettingsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index ef614f8fa4e..9fe3b3aefb0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -76,7 +76,6 @@ public sealed partial class GetMappingRequestParameters : RequestParameters /// /// /// Get mapping definitions. -/// Retrieves mapping definitions for one or more indices. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// /// @@ -147,7 +146,6 @@ public GetMappingRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( /// /// /// Get mapping definitions. -/// Retrieves mapping definitions for one or more indices. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// /// @@ -191,7 +189,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get mapping definitions. -/// Retrieves mapping definitions for one or more indices. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs index e65ca2399a7..fccb36b1bfe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs @@ -58,7 +58,10 @@ public sealed partial class GetTemplateRequestParameters : RequestParameters /// /// /// Get index templates. -/// Retrieves information about one or more index templates. +/// Get information about one or more index templates. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// public sealed partial class GetTemplateRequest : PlainRequest @@ -108,7 +111,10 @@ public GetTemplateRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => /// /// /// Get index templates. -/// Retrieves information about one or more index templates. +/// Get information about one or more index templates. +/// +/// +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// public sealed partial class GetTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index b1a51e3447a..170dddb414d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -84,9 +84,36 @@ public sealed partial class OpenIndexRequestParameters : RequestParameters /// /// -/// Opens a closed index. +/// Open a closed index. /// For data streams, the API opens any closed backing indices. /// +/// +/// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. +/// It is not possible to index documents or to search for documents in a closed index. +/// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. +/// +/// +/// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. +/// The shards will then go through the normal recovery process. +/// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. +/// +/// +/// You can open and close multiple indices. +/// An error is thrown if the request explicitly refers to a missing index. +/// This behavior can be turned off by using the ignore_unavailable=true parameter. +/// +/// +/// By default, you must explicitly name the indices you are opening or closing. +/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. +/// This setting can also be changed with the cluster update settings API. +/// +/// +/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. +/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. +/// +/// +/// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. +/// /// public sealed partial class OpenIndexRequest : PlainRequest { @@ -160,9 +187,36 @@ public OpenIndexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// -/// Opens a closed index. +/// Open a closed index. /// For data streams, the API opens any closed backing indices. /// +/// +/// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. +/// It is not possible to index documents or to search for documents in a closed index. +/// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. +/// +/// +/// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. +/// The shards will then go through the normal recovery process. +/// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. +/// +/// +/// You can open and close multiple indices. +/// An error is thrown if the request explicitly refers to a missing index. +/// This behavior can be turned off by using the ignore_unavailable=true parameter. +/// +/// +/// By default, you must explicitly name the indices you are opening or closing. +/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. +/// This setting can also be changed with the cluster update settings API. +/// +/// +/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. +/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. +/// +/// +/// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. +/// /// public sealed partial class OpenIndexRequestDescriptor : RequestDescriptor, OpenIndexRequestParameters> { @@ -204,9 +258,36 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Opens a closed index. +/// Open a closed index. /// For data streams, the API opens any closed backing indices. /// +/// +/// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. +/// It is not possible to index documents or to search for documents in a closed index. +/// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. +/// +/// +/// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. +/// The shards will then go through the normal recovery process. +/// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. +/// +/// +/// You can open and close multiple indices. +/// An error is thrown if the request explicitly refers to a missing index. +/// This behavior can be turned off by using the ignore_unavailable=true parameter. +/// +/// +/// By default, you must explicitly name the indices you are opening or closing. +/// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. +/// This setting can also be changed with the cluster update settings API. +/// +/// +/// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. +/// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. +/// +/// +/// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. +/// /// public sealed partial class OpenIndexRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index 85d023869c7..34af04025ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class PutDataLifecycleRequestParameters : RequestParameter /// Update the data stream lifecycle of the specified data streams. /// /// -public sealed partial class PutDataLifecycleRequest : PlainRequest, ISelfSerializable +public sealed partial class PutDataLifecycleRequest : PlainRequest { public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) { @@ -107,13 +107,25 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle Lifecycle { get; set; } - void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - JsonSerializer.Serialize(writer, Lifecycle, options); - } + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// + [JsonInclude, JsonPropertyName("data_retention")] + public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } + + /// + /// + /// If defined, every backing index will execute the configured downsampling configuration after the backing + /// index is not the data stream write index anymore. + /// + /// + [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } } /// @@ -125,7 +137,10 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor { internal PutDataLifecycleRequestDescriptor(Action configure) => configure.Invoke(this); - public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) => LifecycleValue = lifecycle; + + public PutDataLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.DataStreamNames name) : base(r => r.Required("name", name)) + { + } internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementPutDataLifecycle; @@ -145,36 +160,79 @@ public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Data return Self; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle LifecycleValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } + private Action DownsamplingDescriptorAction { get; set; } - public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle) + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// + public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) + { + DataRetentionValue = dataRetention; + return Self; + } + + /// + /// + /// If defined, every backing index will execute the configured downsampling configuration after the backing + /// index is not the data stream write index anymore. + /// + /// + public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) { - LifecycleDescriptor = null; - LifecycleDescriptorAction = null; - LifecycleValue = lifecycle; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = null; + DownsamplingValue = downsampling; return Self; } - public PutDataLifecycleRequestDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDescriptor descriptor) + public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor descriptor) { - LifecycleValue = null; - LifecycleDescriptorAction = null; - LifecycleDescriptor = descriptor; + DownsamplingValue = null; + DownsamplingDescriptorAction = null; + DownsamplingDescriptor = descriptor; return Self; } - public PutDataLifecycleRequestDescriptor Lifecycle(Action configure) + public PutDataLifecycleRequestDescriptor Downsampling(Action configure) { - LifecycleValue = null; - LifecycleDescriptor = null; - LifecycleDescriptorAction = configure; + DownsamplingValue = null; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = configure; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { - JsonSerializer.Serialize(writer, LifecycleValue, options); + writer.WriteStartObject(); + if (DataRetentionValue is not null) + { + writer.WritePropertyName("data_retention"); + JsonSerializer.Serialize(writer, DataRetentionValue, options); + } + + if (DownsamplingDescriptor is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); + } + else if (DownsamplingDescriptorAction is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); + } + else if (DownsamplingValue is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingValue, options); + } + + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs index 614820e2fd8..32f549bebd0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs @@ -60,6 +60,39 @@ public sealed partial class PutIndexTemplateRequestParameters : RequestParameter /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// +/// +/// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. +/// Index templates are applied during data stream or index creation. +/// For data streams, these settings and mappings are applied when the stream's backing indices are created. +/// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. +/// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. +/// +/// +/// You can use C-style /* *\/ block comments in index templates. +/// You can include comments anywhere in the request body, except before the opening curly bracket. +/// +/// +/// Multiple matching templates +/// +/// +/// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. +/// +/// +/// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. +/// +/// +/// Composing aliases, mappings, and settings +/// +/// +/// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. +/// Any mappings, settings, or aliases from the parent index template are merged in next. +/// Finally, any configuration on the index request itself is merged. +/// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. +/// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. +/// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. +/// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. +/// If an entry already exists with the same key, then it is overwritten by the new definition. +/// /// public sealed partial class PutIndexTemplateRequest : PlainRequest { @@ -158,8 +191,10 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r /// /// /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. + /// It may have any contents. + /// It is not automatically generated or used by Elasticsearch. + /// This user-defined object is stored in the cluster state, so keeping it short is preferable + /// To unset the metadata, replace the template without specifying it. /// /// [JsonInclude, JsonPropertyName("_meta")] @@ -189,6 +224,8 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r /// /// Version number used to manage index templates externally. /// This number is not automatically generated by Elasticsearch. + /// External systems can use these version numbers to simplify template management. + /// To unset a version, replace the template without specifying one. /// /// [JsonInclude, JsonPropertyName("version")] @@ -200,6 +237,39 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// +/// +/// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. +/// Index templates are applied during data stream or index creation. +/// For data streams, these settings and mappings are applied when the stream's backing indices are created. +/// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. +/// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. +/// +/// +/// You can use C-style /* *\/ block comments in index templates. +/// You can include comments anywhere in the request body, except before the opening curly bracket. +/// +/// +/// Multiple matching templates +/// +/// +/// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. +/// +/// +/// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. +/// +/// +/// Composing aliases, mappings, and settings +/// +/// +/// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. +/// Any mappings, settings, or aliases from the parent index template are merged in next. +/// Finally, any configuration on the index request itself is merged. +/// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. +/// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. +/// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. +/// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. +/// If an entry already exists with the same key, then it is overwritten by the new definition. +/// /// public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor, PutIndexTemplateRequestParameters> { @@ -336,8 +406,10 @@ public PutIndexTemplateRequestDescriptor IndexPatterns(Elastic.Client /// /// /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. + /// It may have any contents. + /// It is not automatically generated or used by Elasticsearch. + /// This user-defined object is stored in the cluster state, so keeping it short is preferable + /// To unset the metadata, replace the template without specifying it. /// /// public PutIndexTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) @@ -394,6 +466,8 @@ public PutIndexTemplateRequestDescriptor Template(Action /// Version number used to manage index templates externally. /// This number is not automatically generated by Elasticsearch. + /// External systems can use these version numbers to simplify template management. + /// To unset a version, replace the template without specifying one. /// /// public PutIndexTemplateRequestDescriptor Version(long? version) @@ -494,6 +568,39 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// +/// +/// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. +/// Index templates are applied during data stream or index creation. +/// For data streams, these settings and mappings are applied when the stream's backing indices are created. +/// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. +/// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. +/// +/// +/// You can use C-style /* *\/ block comments in index templates. +/// You can include comments anywhere in the request body, except before the opening curly bracket. +/// +/// +/// Multiple matching templates +/// +/// +/// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. +/// +/// +/// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. +/// +/// +/// Composing aliases, mappings, and settings +/// +/// +/// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. +/// Any mappings, settings, or aliases from the parent index template are merged in next. +/// Finally, any configuration on the index request itself is merged. +/// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. +/// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. +/// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. +/// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. +/// If an entry already exists with the same key, then it is overwritten by the new definition. +/// /// public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor { @@ -630,8 +737,10 @@ public PutIndexTemplateRequestDescriptor IndexPatterns(Elastic.Clients.Elasticse /// /// /// Optional user metadata about the index template. - /// May have any contents. - /// This map is not automatically generated by Elasticsearch. + /// It may have any contents. + /// It is not automatically generated or used by Elasticsearch. + /// This user-defined object is stored in the cluster state, so keeping it short is preferable + /// To unset the metadata, replace the template without specifying it. /// /// public PutIndexTemplateRequestDescriptor Meta(Func, FluentDictionary> selector) @@ -688,6 +797,8 @@ public PutIndexTemplateRequestDescriptor Template(Action /// Version number used to manage index templates externally. /// This number is not automatically generated by Elasticsearch. + /// External systems can use these version numbers to simplify template management. + /// To unset a version, replace the template without specifying one. /// /// public PutIndexTemplateRequestDescriptor Version(long? version) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs index 9eb516eb4e1..8bb53488e96 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -95,8 +95,23 @@ public sealed partial class PutIndicesSettingsRequestParameters : RequestParamet /// /// /// Update index settings. -/// Changes dynamic index settings in real time. For data streams, index setting -/// changes are applied to all backing indices by default. +/// Changes dynamic index settings in real time. +/// For data streams, index setting changes are applied to all backing indices by default. +/// +/// +/// To revert a setting to the default value, use a null value. +/// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. +/// To preserve existing settings from being updated, set the preserve_existing parameter to true. +/// +/// +/// NOTE: You can only define new analyzers on closed indices. +/// To add an analyzer, you must close the index, define the analyzer, and reopen the index. +/// You cannot close the write index of a data stream. +/// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. +/// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. +/// This affects searches and any new data added to the stream after the rollover. +/// However, it does not affect the data stream's backing indices or their existing data. +/// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// /// public sealed partial class PutIndicesSettingsRequest : PlainRequest, ISelfSerializable @@ -194,8 +209,23 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// /// Update index settings. -/// Changes dynamic index settings in real time. For data streams, index setting -/// changes are applied to all backing indices by default. +/// Changes dynamic index settings in real time. +/// For data streams, index setting changes are applied to all backing indices by default. +/// +/// +/// To revert a setting to the default value, use a null value. +/// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. +/// To preserve existing settings from being updated, set the preserve_existing parameter to true. +/// +/// +/// NOTE: You can only define new analyzers on closed indices. +/// To add an analyzer, you must close the index, define the analyzer, and reopen the index. +/// You cannot close the write index of a data stream. +/// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. +/// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. +/// This affects searches and any new data added to the stream after the rollover. +/// However, it does not affect the data stream's backing indices or their existing data. +/// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// /// public sealed partial class PutIndicesSettingsRequestDescriptor : RequestDescriptor, PutIndicesSettingsRequestParameters> @@ -263,8 +293,23 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Update index settings. -/// Changes dynamic index settings in real time. For data streams, index setting -/// changes are applied to all backing indices by default. +/// Changes dynamic index settings in real time. +/// For data streams, index setting changes are applied to all backing indices by default. +/// +/// +/// To revert a setting to the default value, use a null value. +/// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. +/// To preserve existing settings from being updated, set the preserve_existing parameter to true. +/// +/// +/// NOTE: You can only define new analyzers on closed indices. +/// To add an analyzer, you must close the index, define the analyzer, and reopen the index. +/// You cannot close the write index of a data stream. +/// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. +/// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. +/// This affects searches and any new data added to the stream after the rollover. +/// However, it does not affect the data stream's backing indices or their existing data. +/// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// /// public sealed partial class PutIndicesSettingsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index 708c10deaef..d4375cf1a3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -84,10 +84,44 @@ public sealed partial class PutMappingRequestParameters : RequestParameters /// /// /// 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. +/// Add new fields to an existing data stream or index. +/// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// +/// +/// Add multi-fields to an existing field +/// +/// +/// Multi-fields let you index the same field in different ways. +/// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. +/// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. +/// You can populate the new multi-field with the update by query API. +/// +/// +/// Change supported mapping parameters for an existing field +/// +/// +/// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. +/// For example, you can use the update mapping API to update the ignore_above parameter. +/// +/// +/// Change the mapping of an existing field +/// +/// +/// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. +/// Changing an existing field could invalidate data that's already indexed. +/// +/// +/// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. +/// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. +/// +/// +/// Rename a field +/// +/// +/// Renaming a field would invalidate data already indexed under the old field name. +/// Instead, add an alias field to create an alternate field name. +/// /// public sealed partial class PutMappingRequest : PlainRequest { @@ -189,7 +223,6 @@ public PutMappingRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// [JsonInclude, JsonPropertyName("dynamic_templates")] - [SingleOrManyCollectionConverter(typeof(IReadOnlyDictionary))] public ICollection>? DynamicTemplates { get; set; } /// @@ -271,10 +304,44 @@ public PutMappingRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// /// 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. +/// Add new fields to an existing data stream or index. +/// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// +/// +/// Add multi-fields to an existing field +/// +/// +/// Multi-fields let you index the same field in different ways. +/// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. +/// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. +/// You can populate the new multi-field with the update by query API. +/// +/// +/// Change supported mapping parameters for an existing field +/// +/// +/// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. +/// For example, you can use the update mapping API to update the ignore_above parameter. +/// +/// +/// Change the mapping of an existing field +/// +/// +/// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. +/// Changing an existing field could invalidate data that's already indexed. +/// +/// +/// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. +/// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. +/// +/// +/// Rename a field +/// +/// +/// Renaming a field would invalidate data already indexed under the old field name. +/// Instead, add an alias field to create an alternate field name. +/// /// public sealed partial class PutMappingRequestDescriptor : RequestDescriptor, PutMappingRequestParameters> { @@ -561,7 +628,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (DynamicTemplatesValue is not null) { writer.WritePropertyName("dynamic_templates"); - SingleOrManySerializationHelper.Serialize>(DynamicTemplatesValue, writer, options); + JsonSerializer.Serialize(writer, DynamicTemplatesValue, options); } if (FieldNamesDescriptor is not null) @@ -643,10 +710,44 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// 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. +/// Add new fields to an existing data stream or index. +/// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// +/// +/// Add multi-fields to an existing field +/// +/// +/// Multi-fields let you index the same field in different ways. +/// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. +/// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. +/// You can populate the new multi-field with the update by query API. +/// +/// +/// Change supported mapping parameters for an existing field +/// +/// +/// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. +/// For example, you can use the update mapping API to update the ignore_above parameter. +/// +/// +/// Change the mapping of an existing field +/// +/// +/// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. +/// Changing an existing field could invalidate data that's already indexed. +/// +/// +/// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. +/// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. +/// +/// +/// Rename a field +/// +/// +/// Renaming a field would invalidate data already indexed under the old field name. +/// Instead, add an alias field to create an alternate field name. +/// /// public sealed partial class PutMappingRequestDescriptor : RequestDescriptor { @@ -929,7 +1030,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (DynamicTemplatesValue is not null) { writer.WritePropertyName("dynamic_templates"); - SingleOrManySerializationHelper.Serialize>(DynamicTemplatesValue, writer, options); + JsonSerializer.Serialize(writer, DynamicTemplatesValue, options); } if (FieldNamesDescriptor is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index 6c14ce93433..3c6067ef0eb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -68,6 +68,18 @@ public sealed partial class PutTemplateRequestParameters : RequestParameters /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// +/// +/// You can use C-style /* *\/ block comments in index templates. +/// You can include comments anywhere in the request body, except before the opening curly bracket. +/// +/// +/// Indices matching multiple templates +/// +/// +/// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. +/// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. +/// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. +/// /// public sealed partial class PutTemplateRequest : PlainRequest { @@ -154,6 +166,7 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r /// /// Version number used to manage index templates externally. This number /// is not automatically generated by Elasticsearch. + /// To unset a version, replace the template without specifying one. /// /// [JsonInclude, JsonPropertyName("version")] @@ -178,6 +191,18 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// +/// +/// You can use C-style /* *\/ block comments in index templates. +/// You can include comments anywhere in the request body, except before the opening curly bracket. +/// +/// +/// Indices matching multiple templates +/// +/// +/// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. +/// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. +/// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. +/// /// public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor, PutTemplateRequestParameters> { @@ -317,6 +342,7 @@ public PutTemplateRequestDescriptor Settings(Action /// Version number used to manage index templates externally. This number /// is not automatically generated by Elasticsearch. + /// To unset a version, replace the template without specifying one. /// /// public PutTemplateRequestDescriptor Version(long? version) @@ -406,6 +432,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// +/// +/// You can use C-style /* *\/ block comments in index templates. +/// You can include comments anywhere in the request body, except before the opening curly bracket. +/// +/// +/// Indices matching multiple templates +/// +/// +/// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. +/// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. +/// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. +/// /// public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor { @@ -545,6 +583,7 @@ public PutTemplateRequestDescriptor Settings(Action /// Version number used to manage index templates externally. This number /// is not automatically generated by Elasticsearch. + /// To unset a version, replace the template without specifying one. /// /// public PutTemplateRequestDescriptor Version(long? version) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index fa16870effe..2b970903d67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -54,6 +54,9 @@ public sealed partial class RecoveryRequestParameters : RequestParameters /// For data streams, the API returns information for the stream's backing indices. /// /// +/// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. +/// +/// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -143,6 +146,9 @@ public RecoveryRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// For data streams, the API returns information for the stream's backing indices. /// /// +/// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. +/// +/// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -231,6 +237,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// For data streams, the API returns information for the stream's backing indices. /// /// +/// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. +/// +/// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs index 7b6446a62d7..abecc21a22e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -64,6 +64,21 @@ 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. /// +/// +/// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. +/// You can change this default interval with the index.refresh_interval setting. +/// +/// +/// Refresh requests are synchronous and do not return a response until the refresh operation completes. +/// +/// +/// Refreshes are resource-intensive. +/// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. +/// +/// +/// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. +/// This option ensures the indexing operation waits for a periodic refresh before running the search. +/// /// public sealed partial class RefreshRequest : PlainRequest { @@ -118,6 +133,21 @@ public RefreshRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r = /// 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. /// +/// +/// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. +/// You can change this default interval with the index.refresh_interval setting. +/// +/// +/// Refresh requests are synchronous and do not return a response until the refresh operation completes. +/// +/// +/// Refreshes are resource-intensive. +/// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. +/// +/// +/// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. +/// This option ensures the indexing operation waits for a periodic refresh before running the search. +/// /// public sealed partial class RefreshRequestDescriptor : RequestDescriptor, RefreshRequestParameters> { @@ -160,6 +190,21 @@ 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. /// +/// +/// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. +/// You can change this default interval with the index.refresh_interval setting. +/// +/// +/// Refresh requests are synchronous and do not return a response until the refresh operation completes. +/// +/// +/// Refreshes are resource-intensive. +/// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. +/// +/// +/// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. +/// This option ensures the indexing operation waits for a periodic refresh before running the search. +/// /// public sealed partial class RefreshRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs index 3081c88ff9d..daee9636fb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs @@ -109,6 +109,38 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters /// /// /// +/// +/// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. +/// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. +/// +/// +/// Advantages of using this endpoint before a cross-cluster search +/// +/// +/// You may want to exclude a cluster or index from a search when: +/// +/// +/// +/// +/// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. +/// +/// +/// +/// +/// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. +/// +/// +/// +/// +/// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) +/// +/// +/// +/// +/// A remote cluster is an older version that does not support the feature you want to use in your search. +/// +/// +/// /// public sealed partial class ResolveClusterRequest : PlainRequest { @@ -205,6 +237,38 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// /// +/// +/// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. +/// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. +/// +/// +/// Advantages of using this endpoint before a cross-cluster search +/// +/// +/// You may want to exclude a cluster or index from a search when: +/// +/// +/// +/// +/// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. +/// +/// +/// +/// +/// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. +/// +/// +/// +/// +/// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) +/// +/// +/// +/// +/// A remote cluster is an older version that does not support the feature you want to use in your search. +/// +/// +/// /// public sealed partial class ResolveClusterRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs index 4d0efc47482..331aa7bfe7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs @@ -67,7 +67,55 @@ public sealed partial class RolloverRequestParameters : RequestParameters /// /// /// Roll over to a new index. -/// Creates a new index for a data stream or index alias. +/// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. +/// +/// +/// The rollover API creates a new index for a data stream or index alias. +/// The API behavior depends on the rollover target. +/// +/// +/// Roll over a data stream +/// +/// +/// If you roll over a data stream, the API creates a new write index for the stream. +/// The stream's previous write index becomes a regular backing index. +/// A rollover also increments the data stream's generation. +/// +/// +/// Roll over an index alias with a write index +/// +/// +/// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. +/// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. +/// +/// +/// If an index alias points to multiple indices, one of the indices must be a write index. +/// The rollover API creates a new write index for the alias with is_write_index set to true. +/// The API also sets is_write_index to false for the previous write index. +/// +/// +/// Roll over an index alias with one index +/// +/// +/// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. +/// +/// +/// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. +/// +/// +/// Increment index names for an alias +/// +/// +/// When you roll over an index alias, you can specify a name for the new index. +/// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. +/// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. +/// This number is always six characters and zero-padded, regardless of the previous index's name. +/// +/// +/// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. +/// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. +/// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. +/// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// public sealed partial class RolloverRequest : PlainRequest @@ -166,7 +214,55 @@ public RolloverRequest(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.C /// /// /// Roll over to a new index. -/// Creates a new index for a data stream or index alias. +/// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. +/// +/// +/// The rollover API creates a new index for a data stream or index alias. +/// The API behavior depends on the rollover target. +/// +/// +/// Roll over a data stream +/// +/// +/// If you roll over a data stream, the API creates a new write index for the stream. +/// The stream's previous write index becomes a regular backing index. +/// A rollover also increments the data stream's generation. +/// +/// +/// Roll over an index alias with a write index +/// +/// +/// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. +/// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. +/// +/// +/// If an index alias points to multiple indices, one of the indices must be a write index. +/// The rollover API creates a new write index for the alias with is_write_index set to true. +/// The API also sets is_write_index to false for the previous write index. +/// +/// +/// Roll over an index alias with one index +/// +/// +/// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. +/// +/// +/// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. +/// +/// +/// Increment index names for an alias +/// +/// +/// When you roll over an index alias, you can specify a name for the new index. +/// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. +/// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. +/// This number is always six characters and zero-padded, regardless of the previous index's name. +/// +/// +/// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. +/// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. +/// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. +/// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// public sealed partial class RolloverRequestDescriptor : RequestDescriptor, RolloverRequestParameters> @@ -356,7 +452,55 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Roll over to a new index. -/// Creates a new index for a data stream or index alias. +/// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. +/// +/// +/// The rollover API creates a new index for a data stream or index alias. +/// The API behavior depends on the rollover target. +/// +/// +/// Roll over a data stream +/// +/// +/// If you roll over a data stream, the API creates a new write index for the stream. +/// The stream's previous write index becomes a regular backing index. +/// A rollover also increments the data stream's generation. +/// +/// +/// Roll over an index alias with a write index +/// +/// +/// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. +/// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. +/// +/// +/// If an index alias points to multiple indices, one of the indices must be a write index. +/// The rollover API creates a new write index for the alias with is_write_index set to true. +/// The API also sets is_write_index to false for the previous write index. +/// +/// +/// Roll over an index alias with one index +/// +/// +/// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. +/// +/// +/// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. +/// +/// +/// Increment index names for an alias +/// +/// +/// When you roll over an index alias, you can specify a name for the new index. +/// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. +/// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. +/// This number is always six characters and zero-padded, regardless of the previous index's name. +/// +/// +/// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. +/// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. +/// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. +/// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// public sealed partial class RolloverRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 935d749c917..4bd6a06cc35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -56,6 +56,13 @@ public sealed partial class SegmentsRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// If true, the request returns a verbose response. + /// + /// + public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -110,6 +117,14 @@ public SegmentsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// If true, the request returns a verbose response. + /// + /// + [JsonIgnore] + public bool? Verbose { get => Q("verbose"); set => Q("verbose", value); } } /// @@ -142,6 +157,7 @@ public SegmentsRequestDescriptor() public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -184,6 +200,7 @@ public SegmentsRequestDescriptor() public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SegmentsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index 94431e9a878..11c724fe951 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -50,7 +50,7 @@ public sealed partial class SimulateIndexTemplateRequestParameters : RequestPara /// /// /// Simulate an index. -/// Returns the index configuration that would be applied to the specified index from an existing index template. +/// Get the index configuration that would be applied to the specified index from an existing index template. /// /// public sealed partial class SimulateIndexTemplateRequest : PlainRequest @@ -87,7 +87,7 @@ public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : b /// /// /// Simulate an index. -/// Returns the index configuration that would be applied to the specified index from an existing index template. +/// Get the index configuration that would be applied to the specified index from an existing index template. /// /// public sealed partial class SimulateIndexTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs index 51e33f2427e..2e522a02799 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -57,7 +57,7 @@ public sealed partial class SimulateTemplateRequestParameters : RequestParameter /// /// /// Simulate an index template. -/// Returns the index configuration that would be applied by a particular index template. +/// Get the index configuration that would be applied by a particular index template. /// /// public sealed partial class SimulateTemplateRequest : PlainRequest @@ -200,7 +200,7 @@ public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base( /// /// /// Simulate an index template. -/// Returns the index configuration that would be applied by a particular index template. +/// Get the index configuration that would be applied by a particular index template. /// /// public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor, SimulateTemplateRequestParameters> @@ -498,7 +498,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Simulate an index template. -/// Returns the index configuration that would be applied by a particular index template. +/// Get the index configuration that would be applied by a particular index template. /// /// public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs index de7ea89236b..132249bcd26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SplitIndexRequest.g.cs @@ -80,6 +80,16 @@ public sealed partial class SplitIndexRequestParameters : RequestParameters /// /// /// +/// You can do make an index read-only with the following request using the add index block API: +/// +/// +/// PUT /my_source_index/_block/write +/// +/// +/// The current write index on a data stream cannot be split. +/// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. +/// +/// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -216,6 +226,16 @@ public SplitIndexRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic. /// /// /// +/// You can do make an index read-only with the following request using the add index block API: +/// +/// +/// PUT /my_source_index/_block/write +/// +/// +/// The current write index on a data stream cannot be split. +/// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. +/// +/// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -370,6 +390,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// +/// You can do make an index read-only with the following request using the add index block API: +/// +/// +/// PUT /my_source_index/_block/write +/// +/// +/// The current write index on a data stream cannot be split. +/// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. +/// +/// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs index 2722f0c9b24..044af3b8442 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs @@ -48,19 +48,19 @@ public sealed partial class IndexRequestParameters : RequestParameters /// /// - /// Set to create to only index the document if it does not already exist (put if absent). + /// Set to create to only index the document if it does not already exist (put if absent). /// If a document with the specified _id already exists, the indexing operation will fail. - /// Same as using the <index>/_create endpoint. - /// Valid values: index, create. - /// If document id is specified, it defaults to index. + /// The behavior is the same as using the <index>/_create endpoint. + /// If a document ID is specified, this paramater defaults to index. /// Otherwise, it defaults to create. + /// If the request targets a data stream, an op_type of create is required. /// /// public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } /// /// - /// ID of the pipeline to use to preprocess incoming documents. + /// The ID of the pipeline to use to preprocess incoming documents. /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. /// If a final pipeline is configured it will always run, regardless of the value of this parameter. /// @@ -69,8 +69,9 @@ public sealed partial class IndexRequestParameters : RequestParameters /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, it waits for a refresh to make this operation visible to search. + /// If false, it does nothing with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -84,29 +85,35 @@ public sealed partial class IndexRequestParameters : RequestParameters /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// + /// + /// This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. + /// Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. + /// By default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// An explicit version number for concurrency control. + /// It must be a non-negative long number. /// /// public long? Version { get => Q("version"); set => Q("version", value); } /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -114,7 +121,8 @@ public sealed partial class IndexRequestParameters : RequestParameters /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// You can set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -122,10 +130,175 @@ public sealed partial class IndexRequestParameters : RequestParameters /// /// -/// Index a document. -/// Adds a JSON document to the specified data stream or index and makes it searchable. +/// Create or update a document in an index. +/// +/// +/// Add a JSON document to the specified data stream or index and make it searchable. /// If the target is an index and the document already exists, the request updates the document and increments its version. /// +/// +/// NOTE: You cannot use this API to send update requests for existing documents in a data stream. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. +/// +/// +/// +/// +/// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// NOTE: Replica shards might not all be started when an indexing operation returns successfully. +/// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. +/// +/// +/// Automatically create data streams and indices +/// +/// +/// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. +/// +/// +/// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. +/// +/// +/// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. +/// +/// +/// If no mapping exists, the index operation creates a dynamic mapping. +/// By default, new fields and objects are automatically added to the mapping if needed. +/// +/// +/// Automatic index creation is controlled by the action.auto_create_index setting. +/// If it is true, any index can be created automatically. +/// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. +/// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. +/// When a list is specified, the default behaviour is to disallow. +/// +/// +/// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. +/// It does not affect the creation of data streams. +/// +/// +/// Optimistic concurrency control +/// +/// +/// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. +/// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. +/// +/// +/// Routing +/// +/// +/// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. +/// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. +/// +/// +/// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. +/// This does come at the (very minimal) cost of an additional document parsing pass. +/// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// +/// +/// ** Distributed** +/// +/// +/// +/// +/// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. +/// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. +/// +/// +/// Active shards +/// +/// +/// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. +/// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. +/// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). +/// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. +/// To alter this behavior per operation, use the wait_for_active_shards request parameter. +/// +/// +/// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). +/// Specifying a negative value or a number greater than the number of shard copies will throw an error. +/// +/// +/// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). +/// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. +/// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. +/// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. +/// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. +/// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. +/// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. +/// +/// +/// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. +/// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. +/// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. +/// +/// +/// No operation (noop) updates +/// +/// +/// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. +/// If this isn't acceptable use the _update API with detect_noop set to true. +/// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. +/// +/// +/// There isn't a definitive rule for when noop updates aren't acceptable. +/// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. +/// +/// +/// Versioning +/// +/// +/// Each indexed document is given a version number. +/// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. +/// Optionally, the version number can be set to an external value (for example, if maintained in a database). +/// To enable this functionality, version_type should be set to external. +/// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. +/// +/// +/// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. +/// If no version is provided, the operation runs without any version checks. +/// +/// +/// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. +/// If true, the document will be indexed and the new version number used. +/// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: +/// +/// +/// PUT my-index-000001/_doc/1?version=2&version_type=external +/// { +/// "user": { +/// "id": "elkbee" +/// } +/// } +/// +/// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. +/// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). +/// +/// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. +/// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. +/// /// public sealed partial class IndexRequest : PlainRequest, ISelfSerializable { @@ -163,12 +336,12 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// Set to create to only index the document if it does not already exist (put if absent). + /// Set to create to only index the document if it does not already exist (put if absent). /// If a document with the specified _id already exists, the indexing operation will fail. - /// Same as using the <index>/_create endpoint. - /// Valid values: index, create. - /// If document id is specified, it defaults to index. + /// The behavior is the same as using the <index>/_create endpoint. + /// If a document ID is specified, this paramater defaults to index. /// Otherwise, it defaults to create. + /// If the request targets a data stream, an op_type of create is required. /// /// [JsonIgnore] @@ -176,7 +349,7 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// ID of the pipeline to use to preprocess incoming documents. + /// The ID of the pipeline to use to preprocess incoming documents. /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. /// If a final pipeline is configured it will always run, regardless of the value of this parameter. /// @@ -186,8 +359,9 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. - /// Valid values: true, false, wait_for. + /// If true, Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If wait_for, it waits for a refresh to make this operation visible to search. + /// If false, it does nothing with refreshes. /// /// [JsonIgnore] @@ -203,7 +377,7 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// [JsonIgnore] @@ -211,7 +385,13 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// The period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. + /// + /// + /// This parameter is useful for situations where the primary shard assigned to perform the operation might not be available when the operation runs. + /// Some reasons for this might be that the primary shard is currently recovering from a gateway or undergoing relocation. + /// By default, the operation will wait on the primary shard to become available for at least 1 minute before failing and responding with an error. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// [JsonIgnore] @@ -219,8 +399,8 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// Explicit version number for concurrency control. - /// The specified version must match the current version of the document for the request to succeed. + /// An explicit version number for concurrency control. + /// It must be a non-negative long number. /// /// [JsonIgnore] @@ -228,7 +408,7 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// - /// Specific version type: external, external_gte. + /// The version type. /// /// [JsonIgnore] @@ -237,7 +417,8 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// You can set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// [JsonIgnore] @@ -253,10 +434,175 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// -/// Index a document. -/// Adds a JSON document to the specified data stream or index and makes it searchable. +/// Create or update a document in an index. +/// +/// +/// Add a JSON document to the specified data stream or index and make it searchable. /// If the target is an index and the document already exists, the request updates the document and increments its version. /// +/// +/// NOTE: You cannot use this API to send update requests for existing documents in a data stream. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: +/// +/// +/// +/// +/// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. +/// +/// +/// +/// +/// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. +/// +/// +/// +/// +/// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. +/// +/// +/// +/// +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// NOTE: Replica shards might not all be started when an indexing operation returns successfully. +/// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. +/// +/// +/// Automatically create data streams and indices +/// +/// +/// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. +/// +/// +/// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. +/// +/// +/// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. +/// +/// +/// If no mapping exists, the index operation creates a dynamic mapping. +/// By default, new fields and objects are automatically added to the mapping if needed. +/// +/// +/// Automatic index creation is controlled by the action.auto_create_index setting. +/// If it is true, any index can be created automatically. +/// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. +/// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. +/// When a list is specified, the default behaviour is to disallow. +/// +/// +/// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. +/// It does not affect the creation of data streams. +/// +/// +/// Optimistic concurrency control +/// +/// +/// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. +/// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. +/// +/// +/// Routing +/// +/// +/// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. +/// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. +/// +/// +/// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. +/// This does come at the (very minimal) cost of an additional document parsing pass. +/// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. +/// +/// +/// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. +/// +/// +/// +/// +/// ** Distributed** +/// +/// +/// +/// +/// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. +/// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. +/// +/// +/// Active shards +/// +/// +/// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. +/// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. +/// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). +/// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. +/// To alter this behavior per operation, use the wait_for_active_shards request parameter. +/// +/// +/// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). +/// Specifying a negative value or a number greater than the number of shard copies will throw an error. +/// +/// +/// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). +/// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. +/// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. +/// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. +/// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. +/// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. +/// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. +/// +/// +/// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. +/// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. +/// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. +/// +/// +/// No operation (noop) updates +/// +/// +/// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. +/// If this isn't acceptable use the _update API with detect_noop set to true. +/// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. +/// +/// +/// There isn't a definitive rule for when noop updates aren't acceptable. +/// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. +/// +/// +/// Versioning +/// +/// +/// Each indexed document is given a version number. +/// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. +/// Optionally, the version number can be set to an external value (for example, if maintained in a database). +/// To enable this functionality, version_type should be set to external. +/// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. +/// +/// +/// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. +/// If no version is provided, the operation runs without any version checks. +/// +/// +/// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. +/// If true, the document will be indexed and the new version number used. +/// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: +/// +/// +/// PUT my-index-000001/_doc/1?version=2&version_type=external +/// { +/// "user": { +/// "id": "elkbee" +/// } +/// } +/// +/// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. +/// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). +/// +/// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. +/// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. +/// /// public sealed partial class IndexRequestDescriptor : RequestDescriptor, IndexRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs index 289d66cf21d..f6d0222b690 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexResponse.g.cs @@ -30,18 +30,61 @@ public sealed partial class IndexResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("forced_refresh")] public bool? ForcedRefresh { get; init; } + + /// + /// + /// The unique identifier for the added document. + /// + /// [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + + /// + /// + /// The name of the index the document was added to. + /// + /// [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// + /// The primary term assigned to the document for the indexing operation. + /// + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// + /// The result of the indexing operation: created or updated. + /// + /// [JsonInclude, JsonPropertyName("result")] public Elastic.Clients.Elasticsearch.Result Result { get; init; } + + /// + /// + /// The sequence number assigned to the document for the indexing operation. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. + /// + /// [JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// + /// Information about the replication process of the operation. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + + /// + /// + /// The document version, which is incremented each time the document is updated. + /// + /// [JsonInclude, JsonPropertyName("_version")] public long Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs index dca82330fc2..a4efc6e47fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceResponse.g.cs @@ -28,6 +28,14 @@ namespace Elastic.Clients.Elasticsearch.Inference; public sealed partial class PutInferenceResponse : ElasticsearchResponse { + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + /// /// /// The inference Id diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs new file mode 100644 index 00000000000..13e9654e82f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class StreamInferenceRequestParameters : RequestParameters +{ +} + +/// +/// +/// Perform streaming inference. +/// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. +/// This API works only with the completion task type. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. +/// +/// +/// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. +/// +/// +public sealed partial class StreamInferenceRequest : PlainRequest +{ + public StreamInferenceRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + public StreamInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceStreamInference; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.stream_inference"; + + /// + /// + /// The text on which you want to perform the inference task. + /// It can be a single string or an array. + /// + /// + /// NOTE: Inference endpoints for the completion task type currently only support a single string as input. + /// + /// + [JsonInclude, JsonPropertyName("input")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Input { get; set; } +} + +/// +/// +/// Perform streaming inference. +/// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. +/// This API works only with the completion task type. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. +/// +/// +/// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. +/// +/// +public sealed partial class StreamInferenceRequestDescriptor : RequestDescriptor +{ + internal StreamInferenceRequestDescriptor(Action configure) => configure.Invoke(this); + + public StreamInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + public StreamInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceStreamInference; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.stream_inference"; + + public StreamInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + public StreamInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType) + { + RouteValues.Optional("task_type", taskType); + return Self; + } + + private ICollection InputValue { get; set; } + + /// + /// + /// The text on which you want to perform the inference task. + /// It can be a single string or an array. + /// + /// + /// NOTE: Inference endpoints for the completion task type currently only support a single string as input. + /// + /// + public StreamInferenceRequestDescriptor Input(ICollection input) + { + InputValue = input; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input"); + SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.g.cs new file mode 100644 index 00000000000..6b31527b8b9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class StreamInferenceResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs new file mode 100644 index 00000000000..b3b1146f41e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs @@ -0,0 +1,148 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class UpdateInferenceRequestParameters : RequestParameters +{ +} + +/// +/// +/// Update an inference endpoint. +/// +/// +/// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. +/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. +/// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. +/// +/// +public sealed partial class UpdateInferenceRequest : PlainRequest, ISelfSerializable +{ + public UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + public UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceUpdate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.update"; + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint InferenceConfig { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, InferenceConfig, options); + } +} + +/// +/// +/// Update an inference endpoint. +/// +/// +/// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. +/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. +/// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. +/// +/// +public sealed partial class UpdateInferenceRequestDescriptor : RequestDescriptor +{ + internal UpdateInferenceRequestDescriptor(Action configure) => configure.Invoke(this); + public UpdateInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) => InferenceConfigValue = inferenceConfig; + public UpdateInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) => InferenceConfigValue = inferenceConfig; + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceUpdate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.update"; + + public UpdateInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + public UpdateInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType) + { + RouteValues.Optional("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint InferenceConfigValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceEndpointDescriptor InferenceConfigDescriptor { get; set; } + private Action InferenceConfigDescriptorAction { get; set; } + + public UpdateInferenceRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig) + { + InferenceConfigDescriptor = null; + InferenceConfigDescriptorAction = null; + InferenceConfigValue = inferenceConfig; + return Self; + } + + public UpdateInferenceRequestDescriptor InferenceConfig(Elastic.Clients.Elasticsearch.Inference.InferenceEndpointDescriptor descriptor) + { + InferenceConfigValue = null; + InferenceConfigDescriptorAction = null; + InferenceConfigDescriptor = descriptor; + return Self; + } + + public UpdateInferenceRequestDescriptor InferenceConfig(Action configure) + { + InferenceConfigValue = null; + InferenceConfigDescriptor = null; + InferenceConfigDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, InferenceConfigValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs new file mode 100644 index 00000000000..219b81f402e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class UpdateInferenceResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs index 9d5e5290857..792542afd63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs @@ -37,7 +37,7 @@ public sealed partial class InfoRequestParameters : RequestParameters /// /// /// Get cluster info. -/// Returns basic information about the cluster. +/// Get basic build, version, and cluster information. /// /// public sealed partial class InfoRequest : PlainRequest @@ -54,7 +54,7 @@ public sealed partial class InfoRequest : PlainRequest /// /// /// Get cluster info. -/// Returns basic information about the cluster. +/// Get basic build, version, and cluster information. /// /// public sealed partial class InfoRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs index 0558e1d8735..48d217b3951 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs @@ -28,14 +28,31 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class InfoResponse : ElasticsearchResponse { + /// + /// + /// The responding cluster's name. + /// + /// [JsonInclude, JsonPropertyName("cluster_name")] public string ClusterName { get; init; } [JsonInclude, JsonPropertyName("cluster_uuid")] public string ClusterUuid { get; init; } + + /// + /// + /// The responding node's name. + /// + /// [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } [JsonInclude, JsonPropertyName("tagline")] public string Tagline { get; init; } + + /// + /// + /// The running version of Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("version")] public Elastic.Clients.Elasticsearch.ElasticsearchVersionInfo Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs index 8cad649908a..239a4585c7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameResponse.g.cs @@ -28,10 +28,29 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class EvaluateDataFrameResponse : ElasticsearchResponse { + /// + /// + /// Evaluation results for a classification analysis. + /// It outputs a prediction that identifies to which of the classes each document belongs. + /// + /// [JsonInclude, JsonPropertyName("classification")] public Elastic.Clients.Elasticsearch.MachineLearning.DataframeClassificationSummary? Classification { get; init; } + + /// + /// + /// Evaluation results for an outlier detection analysis. + /// It outputs the probability that each document is an outlier. + /// + /// [JsonInclude, JsonPropertyName("outlier_detection")] public Elastic.Clients.Elasticsearch.MachineLearning.DataframeOutlierDetectionSummary? OutlierDetection { get; init; } + + /// + /// + /// Evaluation results for a regression analysis which outputs a prediction of values. + /// + /// [JsonInclude, JsonPropertyName("regression")] public Elastic.Clients.Elasticsearch.MachineLearning.DataframeRegressionSummary? Regression { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs index f62f35e8c15..e135e76d45e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDataFrameAnalyticsRequest.g.cs @@ -39,6 +39,13 @@ public sealed partial class PutDataFrameAnalyticsRequestParameters : RequestPara /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. +/// By default, the query used in the source configuration is {"match_all": {}}. +/// +/// +/// If the destination index does not exist, it is created automatically when you start the job. +/// +/// +/// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// public sealed partial class PutDataFrameAnalyticsRequest : PlainRequest @@ -174,6 +181,13 @@ public PutDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id id) : base( /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. +/// By default, the query used in the source configuration is {"match_all": {}}. +/// +/// +/// If the destination index does not exist, it is created automatically when you start the job. +/// +/// +/// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// public sealed partial class PutDataFrameAnalyticsRequestDescriptor : RequestDescriptor, PutDataFrameAnalyticsRequestParameters> @@ -557,6 +571,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. +/// By default, the query used in the source configuration is {"match_all": {}}. +/// +/// +/// If the destination index does not exist, it is created automatically when you start the job. +/// +/// +/// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// public sealed partial class PutDataFrameAnalyticsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index f73cd9f69fd..b6c1bf9569d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -254,7 +254,9 @@ public override void Write(Utf8JsonWriter writer, PutDatafeedRequest value, Json /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. +/// +/// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -355,8 +357,8 @@ public PutDatafeedRequest() /// /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. + /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master + /// nodes and the machine learning nodes must have the remote_cluster_client role. /// /// [JsonInclude, JsonPropertyName("indices")] @@ -443,7 +445,9 @@ public PutDatafeedRequest() /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. +/// +/// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -600,8 +604,8 @@ public PutDatafeedRequestDescriptor Headers(Func /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. + /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master + /// nodes and the machine learning nodes must have the remote_cluster_client role. /// /// public PutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -881,7 +885,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). -/// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. +/// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. +/// +/// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -1038,8 +1044,8 @@ public PutDatafeedRequestDescriptor Headers(Func /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine - /// learning nodes must have the remote_cluster_client role. + /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master + /// nodes and the machine learning nodes must have the remote_cluster_client role. /// /// public PutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs index 7810b59710c..6b657b25509 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -87,6 +87,7 @@ public sealed partial class PutJobRequestParameters : RequestParameters /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. +/// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// public sealed partial class PutJobRequest : PlainRequest @@ -289,6 +290,7 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Requi /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. +/// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// public sealed partial class PutJobRequestDescriptor : RequestDescriptor, PutJobRequestParameters> @@ -757,6 +759,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. +/// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// public sealed partial class PutJobRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs index 2f532c21c40..9b5d2f7b8ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ValidateRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class ValidateRequestParameters : RequestParameters /// /// -/// Validates an anomaly detection job. +/// Validate an anomaly detection job. /// /// public sealed partial class ValidateRequest : PlainRequest @@ -71,7 +71,7 @@ public sealed partial class ValidateRequest : PlainRequest /// -/// Validates an anomaly detection job. +/// Validate an anomaly detection job. /// /// public sealed partial class ValidateRequestDescriptor : RequestDescriptor, ValidateRequestParameters> @@ -337,7 +337,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Validates an anomaly detection job. +/// Validate an anomaly detection job. /// /// public sealed partial class ValidateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs index 192b345d954..11041d3ecde 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs @@ -110,6 +110,22 @@ public sealed partial class MultiGetRequestParameters : RequestParameters /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// +/// +/// Filter source fields +/// +/// +/// By default, the _source field is returned for every document (if stored). +/// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. +/// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. +/// +/// +/// Get stored fields +/// +/// +/// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. +/// Any requested fields that are not stored are ignored. +/// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. +/// /// public sealed partial class MultiGetRequest : PlainRequest { @@ -232,6 +248,22 @@ public MultiGetRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// +/// +/// Filter source fields +/// +/// +/// By default, the _source field is returned for every document (if stored). +/// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. +/// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. +/// +/// +/// Get stored fields +/// +/// +/// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. +/// Any requested fields that are not stored are ignored. +/// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. +/// /// public sealed partial class MultiGetRequestDescriptor : RequestDescriptor, MultiGetRequestParameters> { @@ -380,6 +412,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. /// +/// +/// Filter source fields +/// +/// +/// By default, the _source field is returned for every document (if stored). +/// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. +/// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. +/// +/// +/// Get stored fields +/// +/// +/// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. +/// Any requested fields that are not stored are ignored. +/// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. +/// /// public sealed partial class MultiGetRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs index 13199e2f0a7..1831e3c54b1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetResponse.g.cs @@ -28,6 +28,13 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class MultiGetResponse : ElasticsearchResponse { + /// + /// + /// The response includes a docs array that contains the documents in the order specified in the request. + /// The structure of the returned documents is similar to that returned by the get API. + /// If there is a failure getting a particular document, the error is included in place of the document. + /// + /// [JsonInclude, JsonPropertyName("docs")] public IReadOnlyCollection> Docs { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs index 2c558db006d..db526110c63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -43,7 +43,7 @@ public sealed partial class MultiSearchTemplateRequestParameters : RequestParame /// /// - /// Maximum number of concurrent searches the API can run. + /// The maximum number of concurrent searches the API can run. /// /// public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } @@ -59,7 +59,6 @@ public sealed partial class MultiSearchTemplateRequestParameters : RequestParame /// /// /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. /// /// public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } @@ -76,6 +75,20 @@ public sealed partial class MultiSearchTemplateRequestParameters : RequestParame /// /// Run multiple templated searches. /// +/// +/// Run multiple templated searches with a single request. +/// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. +/// For example: +/// +/// +/// $ cat requests +/// { "index": "my-index" } +/// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} +/// { "index": "my-other-index" } +/// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} +/// +/// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo +/// /// public sealed partial class MultiSearchTemplateRequest : PlainRequest, IStreamSerializable { @@ -105,7 +118,7 @@ public MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices /// /// - /// Maximum number of concurrent searches the API can run. + /// The maximum number of concurrent searches the API can run. /// /// [JsonIgnore] @@ -123,7 +136,6 @@ public MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices /// /// /// The type of the search operation. - /// Available options: query_then_fetch, dfs_query_then_fetch. /// /// [JsonIgnore] @@ -165,6 +177,20 @@ async Task IStreamSerializable.SerializeAsync(Stream stream, IElasticsearchClien /// /// Run multiple templated searches. /// +/// +/// Run multiple templated searches with a single request. +/// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. +/// For example: +/// +/// +/// $ cat requests +/// { "index": "my-index" } +/// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} +/// { "index": "my-other-index" } +/// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} +/// +/// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo +/// /// public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, MultiSearchTemplateRequestParameters>, IStreamSerializable { @@ -237,6 +263,20 @@ public MultiSearchTemplateRequestDescriptor AddSearchTemplates(Elasti /// /// Run multiple templated searches. /// +/// +/// Run multiple templated searches with a single request. +/// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. +/// For example: +/// +/// +/// $ cat requests +/// { "index": "my-index" } +/// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} +/// { "index": "my-other-index" } +/// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} +/// +/// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo +/// /// public sealed partial class MultiSearchTemplateRequestDescriptor : RequestDescriptor, IStreamSerializable { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs index 9a6c3ba7206..9005e71cdea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -34,8 +34,8 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter { /// /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// A comma-separated list or wildcard expressions of fields to include in the statistics. + /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. /// /// public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } @@ -70,8 +70,8 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -85,7 +85,7 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } @@ -106,7 +106,7 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter /// /// - /// Specific version type. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -117,11 +117,19 @@ public sealed partial class MultiTermVectorsRequestParameters : RequestParameter /// Get multiple term vectors. /// /// +/// Get multiple term vectors with a single request. /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. /// You can specify the index in the request body or request URI. /// The response contains a docs array with all the fetched termvectors. /// Each element has the structure provided by the termvectors API. /// +/// +/// Artificial documents +/// +/// +/// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. +/// The mapping used is determined by the specified _index. +/// /// public sealed partial class MultiTermVectorsRequest : PlainRequest { @@ -143,8 +151,8 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// A comma-separated list or wildcard expressions of fields to include in the statistics. + /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. /// /// [JsonIgnore] @@ -184,8 +192,8 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -201,7 +209,7 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -225,7 +233,7 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// - /// Specific version type. + /// The version type. /// /// [JsonIgnore] @@ -233,7 +241,7 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// - /// Array of existing or artificial documents. + /// An array of existing or artificial documents. /// /// [JsonInclude, JsonPropertyName("docs")] @@ -241,7 +249,7 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// /// - /// Simplified syntax to specify documents by their ID if they're in the same index. + /// A simplified syntax to specify documents by their ID if they're in the same index. /// /// [JsonInclude, JsonPropertyName("ids")] @@ -253,11 +261,19 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : /// Get multiple term vectors. /// /// +/// Get multiple term vectors with a single request. /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. /// You can specify the index in the request body or request URI. /// The response contains a docs array with all the fetched termvectors. /// Each element has the structure provided by the termvectors API. /// +/// +/// Artificial documents +/// +/// +/// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. +/// The mapping used is determined by the specified _index. +/// /// public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor, MultiTermVectorsRequestParameters> { @@ -305,7 +321,7 @@ public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasti /// /// - /// Array of existing or artificial documents. + /// An array of existing or artificial documents. /// /// public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) @@ -346,7 +362,7 @@ public MultiTermVectorsRequestDescriptor Docs(params Action /// - /// Simplified syntax to specify documents by their ID if they're in the same index. + /// A simplified syntax to specify documents by their ID if they're in the same index. /// /// public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) @@ -404,11 +420,19 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Get multiple term vectors. /// /// +/// Get multiple term vectors with a single request. /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. /// You can specify the index in the request body or request URI. /// The response contains a docs array with all the fetched termvectors. /// Each element has the structure provided by the termvectors API. /// +/// +/// Artificial documents +/// +/// +/// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. +/// The mapping used is determined by the specified _index. +/// /// public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor { @@ -456,7 +480,7 @@ public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Ind /// /// - /// Array of existing or artificial documents. + /// An array of existing or artificial documents. /// /// public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) @@ -497,7 +521,7 @@ public MultiTermVectorsRequestDescriptor Docs(params Action /// - /// Simplified syntax to specify documents by their ID if they're in the same index. + /// A simplified syntax to specify documents by their ID if they're in the same index. /// /// public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs index 5b20e33dca1..7e786c95929 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/ClearRepositoriesMeteringArchiveResponse.g.cs @@ -30,7 +30,7 @@ public sealed partial class ClearRepositoriesMeteringArchiveResponse : Elasticse { /// /// - /// Name of the cluster. Based on the Cluster name setting. + /// Name of the cluster. Based on the cluster.name setting. /// /// [JsonInclude, JsonPropertyName("cluster_name")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs index 5699dc4d2fb..cc5ce41da4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/GetRepositoriesMeteringInfoResponse.g.cs @@ -30,7 +30,7 @@ public sealed partial class GetRepositoriesMeteringInfoResponse : ElasticsearchR { /// /// - /// Name of the cluster. Based on the Cluster name setting. + /// Name of the cluster. Based on the cluster.name setting. /// /// [JsonInclude, JsonPropertyName("cluster_name")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 4741472e4d9..8a6b6acbb11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -34,6 +34,7 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters { /// /// + /// Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. /// If false, creating a point in time request when a shard is missing or unavailable will throw an exception. /// If true, the point in time will contain all the shards that are available at the time of the request. /// @@ -42,9 +43,9 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. + /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -58,22 +59,22 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters /// /// - /// Extends the time to live of the corresponding point in time. + /// Extend the length of time that the point in time persists. /// /// public Elastic.Clients.Elasticsearch.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, it is random. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } @@ -93,7 +94,42 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters /// /// /// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// +/// +/// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. +/// +/// +/// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. +/// If you want to retrieve more hits, use PIT with search_after. +/// +/// +/// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. +/// +/// +/// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. +/// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. +/// +/// +/// Keeping point in time alive +/// +/// +/// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. +/// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. +/// +/// +/// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. +/// Once the smaller segments are no longer needed they are deleted. +/// However, open point-in-times prevent the old segments from being deleted since they are still in use. +/// +/// +/// TIP: Keeping older segments alive means that more disk space and file handles are needed. +/// Ensure that you have configured your nodes to have ample free file handles. +/// +/// +/// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. +/// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. +/// Note that a point-in-time doesn't prevent its associated indices from being deleted. +/// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// /// public sealed partial class OpenPointInTimeRequest : PlainRequest @@ -112,6 +148,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// + /// Indicates whether the point in time tolerates unavailable shards or shard failures when initially creating the PIT. /// If false, creating a point in time request when a shard is missing or unavailable will throw an exception. /// If true, the point in time will contain all the shards that are available at the time of the request. /// @@ -121,9 +158,9 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. + /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none. /// /// [JsonIgnore] @@ -139,7 +176,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// - /// Extends the time to live of the corresponding point in time. + /// Extend the length of time that the point in time persists. /// /// [JsonIgnore] @@ -147,8 +184,8 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// By default, it is random. /// /// [JsonIgnore] @@ -156,7 +193,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// [JsonIgnore] @@ -164,7 +201,7 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// Filter indices if the provided query rewrites to match_none on every shard. /// /// [JsonInclude, JsonPropertyName("index_filter")] @@ -185,7 +222,42 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// /// /// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// +/// +/// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. +/// +/// +/// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. +/// If you want to retrieve more hits, use PIT with search_after. +/// +/// +/// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. +/// +/// +/// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. +/// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. +/// +/// +/// Keeping point in time alive +/// +/// +/// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. +/// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. +/// +/// +/// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. +/// Once the smaller segments are no longer needed they are deleted. +/// However, open point-in-times prevent the old segments from being deleted since they are still in use. +/// +/// +/// TIP: Keeping older segments alive means that more disk space and file handles are needed. +/// Ensure that you have configured your nodes to have ample free file handles. +/// +/// +/// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. +/// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. +/// Note that a point-in-time doesn't prevent its associated indices from being deleted. +/// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// /// public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor, OpenPointInTimeRequestParameters> @@ -227,7 +299,7 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elast /// /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// Filter indices if the provided query rewrites to match_none on every shard. /// /// public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) @@ -291,7 +363,42 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// A point in time must be opened explicitly before being used in search requests. -/// The keep_alive parameter tells Elasticsearch how long it should persist. +/// +/// +/// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. +/// +/// +/// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. +/// If you want to retrieve more hits, use PIT with search_after. +/// +/// +/// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. +/// +/// +/// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. +/// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. +/// +/// +/// Keeping point in time alive +/// +/// +/// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. +/// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. +/// +/// +/// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. +/// Once the smaller segments are no longer needed they are deleted. +/// However, open point-in-times prevent the old segments from being deleted since they are still in use. +/// +/// +/// TIP: Keeping older segments alive means that more disk space and file handles are needed. +/// Ensure that you have configured your nodes to have ample free file handles. +/// +/// +/// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. +/// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. +/// Note that a point-in-time doesn't prevent its associated indices from being deleted. +/// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// /// public sealed partial class OpenPointInTimeRequestDescriptor : RequestDescriptor @@ -329,7 +436,7 @@ public OpenPointInTimeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.In /// /// - /// Allows to filter indices if the provided query rewrites to match_none on every shard. + /// Filter indices if the provided query rewrites to match_none on every shard. /// /// public OpenPointInTimeRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs index 91d6b99e3cf..30a9ae556c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs @@ -34,16 +34,18 @@ public sealed partial class PutScriptRequestParameters : RequestParameters { /// /// - /// Period to wait for a connection to the master node. + /// The period to wait for a connection to the master node. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Period to wait for a response. + /// The period to wait for a response. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -75,8 +77,9 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Ela /// /// - /// Period to wait for a connection to the master node. + /// The period to wait for a connection to the master node. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// [JsonIgnore] @@ -84,8 +87,9 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Ela /// /// - /// Period to wait for a response. + /// The period to wait for a response. /// If no response is received before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. /// /// [JsonIgnore] @@ -93,7 +97,7 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Ela /// /// - /// Contains the script or search template, its parameters, and its language. + /// The script or search template, its parameters, and its language. /// /// [JsonInclude, JsonPropertyName("script")] @@ -147,7 +151,7 @@ public PutScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id /// /// - /// Contains the script or search template, its parameters, and its language. + /// The script or search template, its parameters, and its language. /// /// public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.StoredScript script) @@ -244,7 +248,7 @@ public PutScriptRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Contains the script or search template, its parameters, and its language. + /// The script or search template, its parameters, and its language. /// /// public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.StoredScript script) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs index 5db5e648058..4ee5638c217 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs @@ -38,6 +38,7 @@ public sealed partial class DeleteRuleRequestParameters : RequestParameters /// /// Delete a query rule. /// Delete a query rule within a query ruleset. +/// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// /// public sealed partial class DeleteRuleRequest : PlainRequest @@ -59,6 +60,7 @@ public DeleteRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Cli /// /// Delete a query rule. /// Delete a query rule within a query ruleset. +/// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// /// public sealed partial class DeleteRuleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs index c9ff402c290..138ef634f74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class DeleteRulesetRequestParameters : RequestParameters /// /// /// Delete a query ruleset. +/// Remove a query ruleset and its associated data. +/// This is a destructive action that is not recoverable. /// /// public sealed partial class DeleteRulesetRequest : PlainRequest @@ -57,6 +59,8 @@ public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r /// /// /// Delete a query ruleset. +/// Remove a query ruleset and its associated data. +/// This is a destructive action that is not recoverable. /// /// public sealed partial class DeleteRulesetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs index 014f75a2f0f..b66e024dbbf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRuleResponse.g.cs @@ -28,15 +28,42 @@ namespace Elastic.Clients.Elasticsearch.QueryRules; public sealed partial class GetRuleResponse : ElasticsearchResponse { + /// + /// + /// The actions to take when the rule is matched. + /// The format of this action depends on the rule type. + /// + /// [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; init; } + + /// + /// + /// The criteria that must be met for the rule to be applied. + /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. + /// + /// [JsonInclude, JsonPropertyName("criteria")] [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteria))] public IReadOnlyCollection Criteria { get; init; } [JsonInclude, JsonPropertyName("priority")] public int? Priority { get; init; } + + /// + /// + /// A unique identifier for the rule. + /// + /// [JsonInclude, JsonPropertyName("rule_id")] public string RuleId { get; init; } + + /// + /// + /// The type of rule. + /// pinned will identify and pin specific documents to the top of search results. + /// exclude will exclude specific documents from search results. + /// + /// [JsonInclude, JsonPropertyName("type")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs index c0fef19badb..d4cef289e17 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/GetRulesetResponse.g.cs @@ -30,7 +30,7 @@ public sealed partial class GetRulesetResponse : ElasticsearchResponse { /// /// - /// Rules associated with the query ruleset + /// Rules associated with the query ruleset. /// /// [JsonInclude, JsonPropertyName("rules")] @@ -38,7 +38,7 @@ public sealed partial class GetRulesetResponse : ElasticsearchResponse /// /// - /// Query Ruleset unique identifier + /// A unique identifier for the ruleset. /// /// [JsonInclude, JsonPropertyName("ruleset_id")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs index 1c0b5e1be87..3073fd3f1fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/ListRulesetsRequest.g.cs @@ -34,14 +34,14 @@ public sealed partial class ListRulesetsRequestParameters : RequestParameters { /// /// - /// Starting offset (default: 0) + /// The offset from the first result to fetch. /// /// public int? From { get => Q("from"); set => Q("from", value); } /// /// - /// specifies a max number of results to get + /// The maximum number of results to retrieve. /// /// public int? Size { get => Q("size"); set => Q("size", value); } @@ -65,7 +65,7 @@ public sealed partial class ListRulesetsRequest : PlainRequest /// - /// Starting offset (default: 0) + /// The offset from the first result to fetch. /// /// [JsonIgnore] @@ -73,7 +73,7 @@ public sealed partial class ListRulesetsRequest : PlainRequest /// - /// specifies a max number of results to get + /// The maximum number of results to retrieve. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs index b9287c5cda7..0fd2174e097 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRuleRequest.g.cs @@ -39,6 +39,12 @@ public sealed partial class PutRuleRequestParameters : RequestParameters /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// +/// +/// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. +/// It is advised to use one or the other in query rulesets, to avoid errors. +/// Additionally, pinned queries have a maximum limit of 100 pinned hits. +/// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. +/// /// public sealed partial class PutRuleRequest : PlainRequest { @@ -54,13 +60,32 @@ public PutRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Client internal override string OperationName => "query_rules.put_rule"; + /// + /// + /// The actions to take when the rule is matched. + /// The format of this action depends on the rule type. + /// + /// [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } + + /// + /// + /// The criteria that must be met for the rule to be applied. + /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. + /// + /// [JsonInclude, JsonPropertyName("criteria")] [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteria))] public ICollection Criteria { get; set; } [JsonInclude, JsonPropertyName("priority")] public int? Priority { get; set; } + + /// + /// + /// The type of rule. + /// + /// [JsonInclude, JsonPropertyName("type")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } } @@ -70,6 +95,12 @@ public PutRuleRequest(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Client /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// +/// +/// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. +/// It is advised to use one or the other in query rulesets, to avoid errors. +/// Additionally, pinned queries have a maximum limit of 100 pinned hits. +/// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. +/// /// public sealed partial class PutRuleRequestDescriptor : RequestDescriptor { @@ -109,6 +140,12 @@ public PutRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Id rules private int? PriorityValue { get; set; } private Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType TypeValue { get; set; } + /// + /// + /// The actions to take when the rule is matched. + /// The format of this action depends on the rule type. + /// + /// public PutRuleRequestDescriptor Actions(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions actions) { ActionsDescriptor = null; @@ -133,6 +170,12 @@ public PutRuleRequestDescriptor Actions(Action + /// + /// The criteria that must be met for the rule to be applied. + /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. + /// + /// public PutRuleRequestDescriptor Criteria(ICollection criteria) { CriteriaDescriptor = null; @@ -175,6 +218,11 @@ public PutRuleRequestDescriptor Priority(int? priority) return Self; } + /// + /// + /// The type of rule. + /// + /// public PutRuleRequestDescriptor Type(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType type) { TypeValue = type; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs index 3d91b4e2890..86ddbaede4e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/PutRulesetRequest.g.cs @@ -37,6 +37,14 @@ public sealed partial class PutRulesetRequestParameters : RequestParameters /// /// /// Create or update a query ruleset. +/// There is a limit of 100 rules per ruleset. +/// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. +/// +/// +/// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. +/// It is advised to use one or the other in query rulesets, to avoid errors. +/// Additionally, pinned queries have a maximum limit of 100 pinned hits. +/// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// /// public sealed partial class PutRulesetRequest : PlainRequest @@ -61,6 +69,14 @@ public PutRulesetRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => /// /// /// Create or update a query ruleset. +/// There is a limit of 100 rules per ruleset. +/// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. +/// +/// +/// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. +/// It is advised to use one or the other in query rulesets, to avoid errors. +/// Additionally, pinned queries have a maximum limit of 100 pinned hits. +/// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// /// public sealed partial class PutRulesetRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs index 973d126cfdb..04d3da58199 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/QueryRules/TestRequest.g.cs @@ -54,6 +54,12 @@ public TestRequest(Elastic.Clients.Elasticsearch.Id rulesetId) : base(r => r.Req internal override string OperationName => "query_rules.test"; + /// + /// + /// The match criteria to apply to rules in the given query ruleset. + /// Match criteria should match the keys defined in the criteria.metadata field of the rule. + /// + /// [JsonInclude, JsonPropertyName("match_criteria")] public IDictionary MatchCriteria { get; set; } } @@ -88,6 +94,12 @@ public TestRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Id rulesetI private IDictionary MatchCriteriaValue { get; set; } + /// + /// + /// The match criteria to apply to rules in the given query ruleset. + /// Match criteria should match the keys defined in the criteria.metadata field of the rule. + /// + /// public TestRequestDescriptor MatchCriteria(Func, FluentDictionary> selector) { MatchCriteriaValue = selector?.Invoke(new FluentDictionary()); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs index fa7c00a14bd..428503821c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs @@ -42,7 +42,7 @@ public sealed partial class ReindexRequestParameters : RequestParameters /// /// /// The throttle for this request in sub-requests per second. - /// Defaults to no throttle. + /// By default, there is no throttle. /// /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } @@ -56,7 +56,7 @@ public sealed partial class ReindexRequestParameters : RequestParameters /// /// - /// Specifies how long a consistent view of the index should be maintained for scrolled search. + /// The period of time that a consistent view of the index should be maintained for scrolled search. /// /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } @@ -64,14 +64,28 @@ public sealed partial class ReindexRequestParameters : RequestParameters /// /// /// The number of slices this task should be divided into. - /// Defaults to 1 slice, meaning the task isn’t sliced into subtasks. + /// It defaults to one slice, which means the task isn't sliced into subtasks. + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// If set to auto, Elasticsearch chooses the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// /// - /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + /// The period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + /// By default, Elasticsearch waits for at least one minute before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -79,7 +93,8 @@ public sealed partial class ReindexRequestParameters : RequestParameters /// /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// Set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value is one, which means it waits for each primary shard to be active. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -95,7 +110,294 @@ public sealed partial class ReindexRequestParameters : RequestParameters /// /// /// 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. +/// +/// +/// Copy documents from a source to a destination. +/// You can copy all documents to the destination index or reindex a subset of the documents. +/// 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. +/// +/// +/// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. +/// The destination should be configured as wanted before calling the reindex API. +/// Reindex does not copy the settings from the source or its associated template. +/// Mappings, shard counts, and replicas, for example, must be configured ahead of time. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following security privileges: +/// +/// +/// +/// +/// The read index privilege for the source data stream, index, or alias. +/// +/// +/// +/// +/// The write index privilege for the destination data stream, index, or index alias. +/// +/// +/// +/// +/// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. +/// +/// +/// +/// +/// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. +/// +/// +/// +/// +/// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// The dest element can be configured like the index API to control optimistic concurrency control. +/// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. +/// +/// +/// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. +/// +/// +/// Setting op_type to create causes the reindex API to create only missing documents in the destination. +/// All existing documents will cause a version conflict. +/// +/// +/// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. +/// A reindex can only add new documents to a destination data stream. +/// It cannot update existing documents in a destination data stream. +/// +/// +/// By default, version conflicts abort the reindex process. +/// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. +/// In this case, the response includes a count of the version conflicts that were encountered. +/// Note that the handling of other error types is unaffected by the conflicts property. +/// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. +/// +/// +/// NOTE: The reindex API makes no effort to handle ID collisions. +/// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. +/// Instead, make sure that IDs are unique by using a script. +/// +/// +/// Running reindex asynchronously +/// +/// +/// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. +/// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. +/// +/// +/// Reindex from multiple sources +/// +/// +/// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. +/// That way you can resume the process if there are any errors by removing the partially completed source and starting over. +/// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. +/// +/// +/// For example, you can use a bash script like this: +/// +/// +/// for index in i1 i2 i3 i4 i5; do +/// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ +/// "source": { +/// "index": "'$index'" +/// }, +/// "dest": { +/// "index": "'$index'-reindexed" +/// } +/// }' +/// done +/// +/// +/// ** Throttling** +/// +/// +/// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. +/// Requests are throttled by padding each batch with a wait time. +/// To turn off throttling, set requests_per_second to -1. +/// +/// +/// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Reindex supports sliced scroll to parallelize the reindexing process. +/// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. +/// +/// +/// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. +/// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. +/// The slices parameter specifies the number of slices to use. +/// +/// +/// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. +/// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index. +/// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. +/// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// Indexing performance scales linearly across available resources with the number of slices. +/// +/// +/// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Modify documents during reindexing +/// +/// +/// Like _update_by_query, reindex operations support a script that modifies the document. +/// Unlike _update_by_query, the script is allowed to modify the document's metadata. +/// +/// +/// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. +/// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. +/// Set ctx.op to delete if your script decides that the document must be deleted from the destination. +/// The deletion will be reported in the deleted counter in the response body. +/// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. +/// +/// +/// Think of the possibilities! Just be careful; you are able to change: +/// +/// +/// +/// +/// _id +/// +/// +/// +/// +/// _index +/// +/// +/// +/// +/// _version +/// +/// +/// +/// +/// _routing +/// +/// +/// +/// +/// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. +/// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. +/// +/// +/// Reindex from remote +/// +/// +/// Reindex supports reindexing from a remote Elasticsearch cluster. +/// The host parameter must contain a scheme, host, port, and optional path. +/// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. +/// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. +/// There are a range of settings available to configure the behavior of the HTTPS connection. +/// +/// +/// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. +/// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. +/// It can be set to a comma delimited list of allowed remote host and port combinations. +/// Scheme is ignored; only the host and port are used. +/// For example: +/// +/// +/// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] +/// +/// +/// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. +/// This feature should work with remote clusters of any version of Elasticsearch. +/// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. +/// +/// +/// WARNING: Elasticsearch does not support forward compatibility across major versions. +/// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. +/// +/// +/// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. +/// +/// +/// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. +/// +/// +/// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. +/// If the remote index includes very large documents you'll need to use a smaller batch size. +/// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. +/// Both default to 30 seconds. +/// +/// +/// Configuring SSL parameters +/// +/// +/// Reindex from remote supports configurable SSL settings. +/// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. +/// It is not possible to configure SSL in the body of the reindex request. /// /// public sealed partial class ReindexRequest : PlainRequest @@ -119,7 +421,7 @@ public sealed partial class ReindexRequest : PlainRequest /// /// The throttle for this request in sub-requests per second. - /// Defaults to no throttle. + /// By default, there is no throttle. /// /// [JsonIgnore] @@ -135,7 +437,7 @@ public sealed partial class ReindexRequest : PlainRequest /// - /// Specifies how long a consistent view of the index should be maintained for scrolled search. + /// The period of time that a consistent view of the index should be maintained for scrolled search. /// /// [JsonIgnore] @@ -144,7 +446,19 @@ public sealed partial class ReindexRequest : PlainRequest /// /// The number of slices this task should be divided into. - /// Defaults to 1 slice, meaning the task isn’t sliced into subtasks. + /// It defaults to one slice, which means the task isn't sliced into subtasks. + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// If set to auto, Elasticsearch chooses the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple sources, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// [JsonIgnore] @@ -152,7 +466,9 @@ public sealed partial class ReindexRequest : PlainRequest /// - /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + /// The period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + /// By default, Elasticsearch waits for at least one minute before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// [JsonIgnore] @@ -161,7 +477,8 @@ public sealed partial class ReindexRequest : PlainRequest /// /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// Set it to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value is one, which means it waits for each primary shard to be active. /// /// [JsonIgnore] @@ -177,7 +494,7 @@ public sealed partial class ReindexRequest : PlainRequest /// - /// Set to proceed to continue reindexing even if there are conflicts. + /// Indicates whether to continue reindexing even when there are conflicts. /// /// [JsonInclude, JsonPropertyName("conflicts")] @@ -194,6 +511,11 @@ public sealed partial class ReindexRequest : PlainRequest /// /// The maximum number of documents to reindex. + /// By default, all documents are reindexed. + /// If it is a value less then or equal to scroll_size, a scroll will not be used to retrieve the results for the operation. + /// + /// + /// If conflicts is set to proceed, the reindex operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. /// /// [JsonInclude, JsonPropertyName("max_docs")] @@ -221,7 +543,294 @@ public sealed partial class ReindexRequest : PlainRequest /// /// 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. +/// +/// +/// Copy documents from a source to a destination. +/// You can copy all documents to the destination index or reindex a subset of the documents. +/// 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. +/// +/// +/// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. +/// The destination should be configured as wanted before calling the reindex API. +/// Reindex does not copy the settings from the source or its associated template. +/// Mappings, shard counts, and replicas, for example, must be configured ahead of time. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following security privileges: +/// +/// +/// +/// +/// The read index privilege for the source data stream, index, or alias. +/// +/// +/// +/// +/// The write index privilege for the destination data stream, index, or index alias. +/// +/// +/// +/// +/// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. +/// +/// +/// +/// +/// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. +/// +/// +/// +/// +/// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// The dest element can be configured like the index API to control optimistic concurrency control. +/// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. +/// +/// +/// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. +/// +/// +/// Setting op_type to create causes the reindex API to create only missing documents in the destination. +/// All existing documents will cause a version conflict. +/// +/// +/// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. +/// A reindex can only add new documents to a destination data stream. +/// It cannot update existing documents in a destination data stream. +/// +/// +/// By default, version conflicts abort the reindex process. +/// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. +/// In this case, the response includes a count of the version conflicts that were encountered. +/// Note that the handling of other error types is unaffected by the conflicts property. +/// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. +/// +/// +/// NOTE: The reindex API makes no effort to handle ID collisions. +/// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. +/// Instead, make sure that IDs are unique by using a script. +/// +/// +/// Running reindex asynchronously +/// +/// +/// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. +/// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. +/// +/// +/// Reindex from multiple sources +/// +/// +/// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. +/// That way you can resume the process if there are any errors by removing the partially completed source and starting over. +/// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. +/// +/// +/// For example, you can use a bash script like this: +/// +/// +/// for index in i1 i2 i3 i4 i5; do +/// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ +/// "source": { +/// "index": "'$index'" +/// }, +/// "dest": { +/// "index": "'$index'-reindexed" +/// } +/// }' +/// done +/// +/// +/// ** Throttling** +/// +/// +/// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. +/// Requests are throttled by padding each batch with a wait time. +/// To turn off throttling, set requests_per_second to -1. +/// +/// +/// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Reindex supports sliced scroll to parallelize the reindexing process. +/// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. +/// +/// +/// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. +/// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. +/// The slices parameter specifies the number of slices to use. +/// +/// +/// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. +/// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index. +/// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. +/// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// Indexing performance scales linearly across available resources with the number of slices. +/// +/// +/// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Modify documents during reindexing +/// +/// +/// Like _update_by_query, reindex operations support a script that modifies the document. +/// Unlike _update_by_query, the script is allowed to modify the document's metadata. +/// +/// +/// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. +/// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. +/// Set ctx.op to delete if your script decides that the document must be deleted from the destination. +/// The deletion will be reported in the deleted counter in the response body. +/// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. +/// +/// +/// Think of the possibilities! Just be careful; you are able to change: +/// +/// +/// +/// +/// _id +/// +/// +/// +/// +/// _index +/// +/// +/// +/// +/// _version +/// +/// +/// +/// +/// _routing +/// +/// +/// +/// +/// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. +/// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. +/// +/// +/// Reindex from remote +/// +/// +/// Reindex supports reindexing from a remote Elasticsearch cluster. +/// The host parameter must contain a scheme, host, port, and optional path. +/// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. +/// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. +/// There are a range of settings available to configure the behavior of the HTTPS connection. +/// +/// +/// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. +/// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. +/// It can be set to a comma delimited list of allowed remote host and port combinations. +/// Scheme is ignored; only the host and port are used. +/// For example: +/// +/// +/// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] +/// +/// +/// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. +/// This feature should work with remote clusters of any version of Elasticsearch. +/// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. +/// +/// +/// WARNING: Elasticsearch does not support forward compatibility across major versions. +/// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. +/// +/// +/// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. +/// +/// +/// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. +/// +/// +/// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. +/// If the remote index includes very large documents you'll need to use a smaller batch size. +/// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. +/// Both default to 30 seconds. +/// +/// +/// Configuring SSL parameters +/// +/// +/// Reindex from remote supports configurable SSL settings. +/// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. +/// It is not possible to configure SSL in the body of the reindex request. /// /// public sealed partial class ReindexRequestDescriptor : RequestDescriptor, ReindexRequestParameters> @@ -264,7 +873,7 @@ public ReindexRequestDescriptor() /// /// - /// Set to proceed to continue reindexing even if there are conflicts. + /// Indicates whether to continue reindexing even when there are conflicts. /// /// public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) @@ -305,6 +914,11 @@ public ReindexRequestDescriptor Dest(Action /// /// The maximum number of documents to reindex. + /// By default, all documents are reindexed. + /// If it is a value less then or equal to scroll_size, a scroll will not be used to retrieve the results for the operation. + /// + /// + /// If conflicts is set to proceed, the reindex operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. /// /// public ReindexRequestDescriptor MaxDocs(long? maxDocs) @@ -453,7 +1067,294 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// 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. +/// +/// +/// Copy documents from a source to a destination. +/// You can copy all documents to the destination index or reindex a subset of the documents. +/// 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. +/// +/// +/// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. +/// The destination should be configured as wanted before calling the reindex API. +/// Reindex does not copy the settings from the source or its associated template. +/// Mappings, shard counts, and replicas, for example, must be configured ahead of time. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the following security privileges: +/// +/// +/// +/// +/// The read index privilege for the source data stream, index, or alias. +/// +/// +/// +/// +/// The write index privilege for the destination data stream, index, or index alias. +/// +/// +/// +/// +/// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. +/// +/// +/// +/// +/// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. +/// +/// +/// +/// +/// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. +/// Automatic data stream creation requires a matching index template with data stream enabled. +/// +/// +/// The dest element can be configured like the index API to control optimistic concurrency control. +/// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. +/// +/// +/// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. +/// +/// +/// Setting op_type to create causes the reindex API to create only missing documents in the destination. +/// All existing documents will cause a version conflict. +/// +/// +/// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. +/// A reindex can only add new documents to a destination data stream. +/// It cannot update existing documents in a destination data stream. +/// +/// +/// By default, version conflicts abort the reindex process. +/// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. +/// In this case, the response includes a count of the version conflicts that were encountered. +/// Note that the handling of other error types is unaffected by the conflicts property. +/// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. +/// +/// +/// NOTE: The reindex API makes no effort to handle ID collisions. +/// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. +/// Instead, make sure that IDs are unique by using a script. +/// +/// +/// Running reindex asynchronously +/// +/// +/// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. +/// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. +/// +/// +/// Reindex from multiple sources +/// +/// +/// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. +/// That way you can resume the process if there are any errors by removing the partially completed source and starting over. +/// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. +/// +/// +/// For example, you can use a bash script like this: +/// +/// +/// for index in i1 i2 i3 i4 i5; do +/// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ +/// "source": { +/// "index": "'$index'" +/// }, +/// "dest": { +/// "index": "'$index'-reindexed" +/// } +/// }' +/// done +/// +/// +/// ** Throttling** +/// +/// +/// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. +/// Requests are throttled by padding each batch with a wait time. +/// To turn off throttling, set requests_per_second to -1. +/// +/// +/// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Reindex supports sliced scroll to parallelize the reindexing process. +/// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. +/// +/// +/// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. +/// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. +/// The slices parameter specifies the number of slices to use. +/// +/// +/// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. +/// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index. +/// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. +/// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// Indexing performance scales linearly across available resources with the number of slices. +/// +/// +/// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Modify documents during reindexing +/// +/// +/// Like _update_by_query, reindex operations support a script that modifies the document. +/// Unlike _update_by_query, the script is allowed to modify the document's metadata. +/// +/// +/// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. +/// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. +/// Set ctx.op to delete if your script decides that the document must be deleted from the destination. +/// The deletion will be reported in the deleted counter in the response body. +/// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. +/// +/// +/// Think of the possibilities! Just be careful; you are able to change: +/// +/// +/// +/// +/// _id +/// +/// +/// +/// +/// _index +/// +/// +/// +/// +/// _version +/// +/// +/// +/// +/// _routing +/// +/// +/// +/// +/// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. +/// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. +/// +/// +/// Reindex from remote +/// +/// +/// Reindex supports reindexing from a remote Elasticsearch cluster. +/// The host parameter must contain a scheme, host, port, and optional path. +/// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. +/// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. +/// There are a range of settings available to configure the behavior of the HTTPS connection. +/// +/// +/// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. +/// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. +/// It can be set to a comma delimited list of allowed remote host and port combinations. +/// Scheme is ignored; only the host and port are used. +/// For example: +/// +/// +/// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] +/// +/// +/// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. +/// This feature should work with remote clusters of any version of Elasticsearch. +/// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. +/// +/// +/// WARNING: Elasticsearch does not support forward compatibility across major versions. +/// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. +/// +/// +/// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. +/// +/// +/// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. +/// +/// +/// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. +/// If the remote index includes very large documents you'll need to use a smaller batch size. +/// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. +/// Both default to 30 seconds. +/// +/// +/// Configuring SSL parameters +/// +/// +/// Reindex from remote supports configurable SSL settings. +/// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. +/// It is not possible to configure SSL in the body of the reindex request. /// /// public sealed partial class ReindexRequestDescriptor : RequestDescriptor @@ -496,7 +1397,7 @@ public ReindexRequestDescriptor() /// /// - /// Set to proceed to continue reindexing even if there are conflicts. + /// Indicates whether to continue reindexing even when there are conflicts. /// /// public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) @@ -537,6 +1438,11 @@ public ReindexRequestDescriptor Dest(Action /// /// The maximum number of documents to reindex. + /// By default, all documents are reindexed. + /// If it is a value less then or equal to scroll_size, a scroll will not be used to retrieve the results for the operation. + /// + /// + /// If conflicts is set to proceed, the reindex operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. /// /// public ReindexRequestDescriptor MaxDocs(long? maxDocs) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexResponse.g.cs index 615f5821c06..57fafdd818b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexResponse.g.cs @@ -28,36 +28,124 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class ReindexResponse : ElasticsearchResponse { + /// + /// + /// The number of scroll responses that were pulled back by the reindex. + /// + /// [JsonInclude, JsonPropertyName("batches")] public long? Batches { get; init; } + + /// + /// + /// The number of documents that were successfully created. + /// + /// [JsonInclude, JsonPropertyName("created")] public long? Created { get; init; } + + /// + /// + /// The number of documents that were successfully deleted. + /// + /// [JsonInclude, JsonPropertyName("deleted")] public long? Deleted { get; init; } + + /// + /// + /// If there were any unrecoverable errors during the process, it is an array of those failures. + /// If this array is not empty, the request ended because of those failures. + /// Reindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array. + /// You can use the conflicts option to prevent the reindex from ending on version conflicts. + /// + /// [JsonInclude, JsonPropertyName("failures")] public IReadOnlyCollection? Failures { get; init; } + + /// + /// + /// The number of documents that were ignored because the script used for the reindex returned a noop value for ctx.op. + /// + /// [JsonInclude, JsonPropertyName("noops")] public long? Noops { get; init; } + + /// + /// + /// The number of requests per second effectively run during the reindex. + /// + /// [JsonInclude, JsonPropertyName("requests_per_second")] public float? RequestsPerSecond { get; init; } + + /// + /// + /// The number of retries attempted by reindex. + /// + /// [JsonInclude, JsonPropertyName("retries")] public Elastic.Clients.Elasticsearch.Retries? Retries { get; init; } [JsonInclude, JsonPropertyName("slice_id")] public int? SliceId { get; init; } [JsonInclude, JsonPropertyName("task")] public Elastic.Clients.Elasticsearch.TaskId? Task { get; init; } + + /// + /// + /// The number of milliseconds the request slept to conform to requests_per_second. + /// + /// [JsonInclude, JsonPropertyName("throttled_millis")] public long? ThrottledMillis { get; init; } + + /// + /// + /// This field should always be equal to zero in a reindex response. + /// It has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) that a throttled request will be run again in order to conform to requests_per_second. + /// + /// [JsonInclude, JsonPropertyName("throttled_until_millis")] public long? ThrottledUntilMillis { get; init; } + + /// + /// + /// If any of the requests that ran during the reindex timed out, it is true. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool? TimedOut { get; init; } + + /// + /// + /// The total milliseconds the entire operation took. + /// + /// [JsonInclude, JsonPropertyName("took")] public long? Took { get; init; } + + /// + /// + /// The number of documents that were successfully processed. + /// + /// [JsonInclude, JsonPropertyName("total")] public long? Total { get; init; } + + /// + /// + /// The number of documents that were successfully updated. + /// That is to say, a document with the same ID already existed before the reindex updated it. + /// + /// [JsonInclude, JsonPropertyName("updated")] public long? Updated { get; init; } + + /// + /// + /// The number of version conflicts that occurred. + /// + /// [JsonInclude, JsonPropertyName("version_conflicts")] public long? VersionConflicts { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs index 88bf92f8d80..bc01acf7030 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -35,6 +35,7 @@ public sealed partial class ReindexRethrottleRequestParameters : RequestParamete /// /// /// The throttle for this request in sub-requests per second. + /// It can be either -1 to turn off throttling or any decimal number like 1.7 or 12 to throttle to that level. /// /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } @@ -46,6 +47,15 @@ public sealed partial class ReindexRethrottleRequestParameters : RequestParamete /// /// /// Change the number of requests per second for a particular reindex operation. +/// For example: +/// +/// +/// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 +/// +/// +/// Rethrottling that speeds up the query takes effect immediately. +/// Rethrottling that slows down the query will take effect after completing the current batch. +/// This behavior prevents scroll timeouts. /// /// public sealed partial class ReindexRethrottleRequest : PlainRequest @@ -65,6 +75,7 @@ public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : base( /// /// /// The throttle for this request in sub-requests per second. + /// It can be either -1 to turn off throttling or any decimal number like 1.7 or 12 to throttle to that level. /// /// [JsonIgnore] @@ -77,6 +88,15 @@ public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : base( /// /// /// Change the number of requests per second for a particular reindex operation. +/// For example: +/// +/// +/// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 +/// +/// +/// Rethrottling that speeds up the query takes effect immediately. +/// Rethrottling that slows down the query will take effect after completing the current batch. +/// This behavior prevents scroll timeouts. /// /// public sealed partial class ReindexRethrottleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs index 26361bc0ec5..7e7a6a4d21b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -63,6 +63,16 @@ public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Id? id) : base( [JsonInclude, JsonPropertyName("file")] public string? File { get; set; } + /// + /// + /// The ID of the search template to render. + /// If no source is specified, this or the <template-id> request path parameter is required. + /// If you specify both this parameter and the <template-id> parameter, the API uses only <template-id>. + /// + /// + [JsonInclude, JsonPropertyName("id")] + public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + /// /// /// Key-value pairs used to replace Mustache variables in the template. @@ -76,7 +86,7 @@ public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Id? id) : base( /// /// /// An inline search template. - /// Supports the same parameters as the search API's request body. + /// It supports the same parameters as the search API's request body. /// These parameters also support Mustache variables. /// If no id or <templated-id> is specified, this parameter is required. /// @@ -97,10 +107,6 @@ public sealed partial class RenderSearchTemplateRequestDescriptor : R { internal RenderSearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); - public RenderSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - public RenderSearchTemplateRequestDescriptor() { } @@ -113,13 +119,8 @@ public RenderSearchTemplateRequestDescriptor() internal override string OperationName => "render_search_template"; - public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - private string? FileValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } private IDictionary? ParamsValue { get; set; } private string? SourceValue { get; set; } @@ -129,6 +130,19 @@ public RenderSearchTemplateRequestDescriptor File(string? file) return Self; } + /// + /// + /// The ID of the search template to render. + /// If no source is specified, this or the <template-id> request path parameter is required. + /// If you specify both this parameter and the <template-id> parameter, the API uses only <template-id>. + /// + /// + public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + IdValue = id; + return Self; + } + /// /// /// Key-value pairs used to replace Mustache variables in the template. @@ -145,7 +159,7 @@ public RenderSearchTemplateRequestDescriptor Params(Func /// /// An inline search template. - /// Supports the same parameters as the search API's request body. + /// It supports the same parameters as the search API's request body. /// These parameters also support Mustache variables. /// If no id or <templated-id> is specified, this parameter is required. /// @@ -165,6 +179,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FileValue); } + if (IdValue is not null) + { + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + } + if (ParamsValue is not null) { writer.WritePropertyName("params"); @@ -193,10 +213,6 @@ public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescr { internal RenderSearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - public RenderSearchTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) - { - } - public RenderSearchTemplateRequestDescriptor() { } @@ -209,13 +225,8 @@ public RenderSearchTemplateRequestDescriptor() internal override string OperationName => "render_search_template"; - public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) - { - RouteValues.Optional("id", id); - return Self; - } - private string? FileValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } private IDictionary? ParamsValue { get; set; } private string? SourceValue { get; set; } @@ -225,6 +236,19 @@ public RenderSearchTemplateRequestDescriptor File(string? file) return Self; } + /// + /// + /// The ID of the search template to render. + /// If no source is specified, this or the <template-id> request path parameter is required. + /// If you specify both this parameter and the <template-id> parameter, the API uses only <template-id>. + /// + /// + public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + IdValue = id; + return Self; + } + /// /// /// Key-value pairs used to replace Mustache variables in the template. @@ -241,7 +265,7 @@ public RenderSearchTemplateRequestDescriptor Params(Func /// /// An inline search template. - /// Supports the same parameters as the search API's request body. + /// It supports the same parameters as the search API's request body. /// These parameters also support Mustache variables. /// If no id or <templated-id> is specified, this parameter is required. /// @@ -261,6 +285,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FileValue); } + if (IdValue is not null) + { + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + } + if (ParamsValue is not null) { writer.WritePropertyName("params"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs index 983b3bbff95..e81b3267e9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/RollupSearchRequest.g.cs @@ -113,6 +113,53 @@ public override void Write(Utf8JsonWriter writer, RollupSearchRequest value, Jso /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// +/// +/// The request body supports a subset of features from the regular search API. +/// The following functionality is not available: +/// +/// +/// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. +/// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. +/// +/// +/// Searching both historical rollup and non-rollup data +/// +/// +/// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. +/// This is done by simply adding the live indices to the URI. For example: +/// +/// +/// GET sensor-1,sensor_rollup/_rollup_search +/// { +/// "size": 0, +/// "aggregations": { +/// "max_temperature": { +/// "max": { +/// "field": "temperature" +/// } +/// } +/// } +/// } +/// +/// +/// The rollup search endpoint does two things when the search runs: +/// +/// +/// +/// +/// The original request is sent to the non-rollup index unaltered. +/// +/// +/// +/// +/// A rewritten version of the original request is sent to the rollup index. +/// +/// +/// +/// +/// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. +/// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. +/// /// [JsonConverter(typeof(RollupSearchRequestConverter))] public sealed partial class RollupSearchRequest : PlainRequest @@ -159,7 +206,7 @@ public RollupSearchRequest() /// /// - /// Specifies a DSL query. + /// Specifies a DSL query that is subject to some limitations. /// /// [JsonInclude, JsonPropertyName("query")] @@ -180,6 +227,53 @@ public RollupSearchRequest() /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// +/// +/// The request body supports a subset of features from the regular search API. +/// The following functionality is not available: +/// +/// +/// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. +/// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. +/// +/// +/// Searching both historical rollup and non-rollup data +/// +/// +/// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. +/// This is done by simply adding the live indices to the URI. For example: +/// +/// +/// GET sensor-1,sensor_rollup/_rollup_search +/// { +/// "size": 0, +/// "aggregations": { +/// "max_temperature": { +/// "max": { +/// "field": "temperature" +/// } +/// } +/// } +/// } +/// +/// +/// The rollup search endpoint does two things when the search runs: +/// +/// +/// +/// +/// The original request is sent to the non-rollup index unaltered. +/// +/// +/// +/// +/// A rewritten version of the original request is sent to the rollup index. +/// +/// +/// +/// +/// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. +/// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. +/// /// public sealed partial class RollupSearchRequestDescriptor : RequestDescriptor, RollupSearchRequestParameters> { @@ -229,7 +323,7 @@ public RollupSearchRequestDescriptor Aggregations(Func /// - /// Specifies a DSL query. + /// Specifies a DSL query that is subject to some limitations. /// /// public RollupSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -308,6 +402,53 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// +/// +/// The request body supports a subset of features from the regular search API. +/// The following functionality is not available: +/// +/// +/// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. +/// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. +/// +/// +/// Searching both historical rollup and non-rollup data +/// +/// +/// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. +/// This is done by simply adding the live indices to the URI. For example: +/// +/// +/// GET sensor-1,sensor_rollup/_rollup_search +/// { +/// "size": 0, +/// "aggregations": { +/// "max_temperature": { +/// "max": { +/// "field": "temperature" +/// } +/// } +/// } +/// } +/// +/// +/// The rollup search endpoint does two things when the search runs: +/// +/// +/// +/// +/// The original request is sent to the non-rollup index unaltered. +/// +/// +/// +/// +/// A rewritten version of the original request is sent to the rollup index. +/// +/// +/// +/// +/// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. +/// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. +/// /// public sealed partial class RollupSearchRequestDescriptor : RequestDescriptor { @@ -353,7 +494,7 @@ public RollupSearchRequestDescriptor Aggregations(Func /// - /// Specifies a DSL query. + /// Specifies a DSL query that is subject to some limitations. /// /// public RollupSearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs index f4129512b7e..ae55889760a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Rollup/StopJobRequest.g.cs @@ -36,6 +36,8 @@ public sealed partial class StopJobRequestParameters : RequestParameters /// /// If wait_for_completion is true, the API blocks for (at maximum) the specified duration while waiting for the job to stop. /// If more than timeout time has passed, the API throws a timeout exception. + /// NOTE: Even if a timeout occurs, the stop request is still processing and eventually moves the job to STOPPED. + /// The timeout simply means the API call itself timed out while waiting for the status change. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -55,6 +57,17 @@ public sealed partial class StopJobRequestParameters : RequestParameters /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// +/// +/// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. +/// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: +/// +/// +/// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s +/// +/// +/// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. +/// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. +/// /// public sealed partial class StopJobRequest : PlainRequest { @@ -74,6 +87,8 @@ public StopJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Require /// /// If wait_for_completion is true, the API blocks for (at maximum) the specified duration while waiting for the job to stop. /// If more than timeout time has passed, the API throws a timeout exception. + /// NOTE: Even if a timeout occurs, the stop request is still processing and eventually moves the job to STOPPED. + /// The timeout simply means the API call itself timed out while waiting for the status change. /// /// [JsonIgnore] @@ -95,6 +110,17 @@ public StopJobRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Require /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// +/// +/// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. +/// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: +/// +/// +/// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s +/// +/// +/// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. +/// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. +/// /// public sealed partial class StopJobRequestDescriptor : RequestDescriptor, StopJobRequestParameters> { @@ -132,6 +158,17 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// +/// +/// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. +/// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: +/// +/// +/// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s +/// +/// +/// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. +/// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. +/// /// public sealed partial class StopJobRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs index 71eeba5ada6..a2a70d0c5cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollRequest.g.cs @@ -82,7 +82,7 @@ public sealed partial class ScrollRequest : PlainRequest /// - /// Period to retain the search context for scrolling. + /// The period to retain the search context for scrolling. /// /// [JsonInclude, JsonPropertyName("scroll")] @@ -90,7 +90,7 @@ public sealed partial class ScrollRequest : PlainRequest /// - /// Scroll ID of the search. + /// The scroll ID of the search. /// /// [JsonInclude, JsonPropertyName("scroll_id")] @@ -142,7 +142,7 @@ public ScrollRequestDescriptor() /// /// - /// Period to retain the search context for scrolling. + /// The period to retain the search context for scrolling. /// /// public ScrollRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Duration? scroll) @@ -153,7 +153,7 @@ public ScrollRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Duration? sc /// /// - /// Scroll ID of the search. + /// The scroll ID of the search. /// /// public ScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.ScrollId scrollId) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs index 056d1985d46..9c67203c91f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScrollResponse.g.cs @@ -34,6 +34,12 @@ public sealed partial class ScrollResponse : ElasticsearchResponse public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; init; } [JsonInclude, JsonPropertyName("fields")] public IReadOnlyDictionary? Fields { get; init; } + + /// + /// + /// The returned documents and metadata. + /// + /// [JsonInclude, JsonPropertyName("hits")] public Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; init; } [JsonInclude, JsonPropertyName("max_score")] @@ -44,16 +50,81 @@ public sealed partial class ScrollResponse : ElasticsearchResponse public string? PitId { get; init; } [JsonInclude, JsonPropertyName("profile")] public Elastic.Clients.Elasticsearch.Core.Search.Profile? Profile { get; init; } + + /// + /// + /// The identifier for the search and its search context. + /// You can use this scroll ID with the scroll API to retrieve the next batch of search results for the request. + /// This property is returned only if the scroll query parameter is specified in the request. + /// + /// [JsonInclude, JsonPropertyName("_scroll_id")] public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; init; } + + /// + /// + /// A count of shards used for the request. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } [JsonInclude, JsonPropertyName("suggest")] public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; init; } [JsonInclude, JsonPropertyName("terminated_early")] public bool? TerminatedEarly { get; init; } + + /// + /// + /// If true, the request timed out before completion; returned results may be partial or empty. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool TimedOut { get; init; } + + /// + /// + /// The number of milliseconds it took Elasticsearch to run the request. + /// This value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response. + /// It includes: + /// + /// + /// + /// + /// Communication time between the coordinating node and data nodes + /// + /// + /// + /// + /// Time the request spends in the search thread pool, queued for execution + /// + /// + /// + /// + /// Actual run time + /// + /// + /// + /// + /// It does not include: + /// + /// + /// + /// + /// Time needed to send the request to Elasticsearch + /// + /// + /// + /// + /// Time needed to serialize the JSON response + /// + /// + /// + /// + /// Time needed to send the response to a client + /// + /// + /// + /// [JsonInclude, JsonPropertyName("took")] public long Took { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs index e8dfe37f8c5..13bcb8d5841 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs @@ -46,7 +46,7 @@ public sealed partial class GetSearchApplicationResponse : ElasticsearchResponse /// /// - /// Search Application name + /// Search Application name. /// /// [JsonInclude, JsonPropertyName("name")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs index 4a1abd18f85..b34b4602f13 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListRequest.g.cs @@ -56,7 +56,8 @@ public sealed partial class ListRequestParameters : RequestParameters /// /// -/// Returns the existing search applications. +/// Get search applications. +/// Get information about search applications. /// /// public sealed partial class ListRequest : PlainRequest @@ -96,7 +97,8 @@ public sealed partial class ListRequest : PlainRequest /// /// -/// Returns the existing search applications. +/// Get search applications. +/// Get information about search applications. /// /// public sealed partial class ListRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs index c1945b4a695..634f03fc463 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs @@ -31,5 +31,5 @@ public sealed partial class ListResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("count")] public long Count { get; init; } [JsonInclude, JsonPropertyName("results")] - public IReadOnlyCollection Results { get; init; } + public IReadOnlyCollection Results { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs new file mode 100644 index 00000000000..7dc60d7ed16 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventRequest.g.cs @@ -0,0 +1,125 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class PostBehavioralAnalyticsEventRequestParameters : RequestParameters +{ + /// + /// + /// Whether the response type has to include more details + /// + /// + public bool? Debug { get => Q("debug"); set => Q("debug", value); } +} + +/// +/// +/// Create a behavioral analytics collection event. +/// +/// +public sealed partial class PostBehavioralAnalyticsEventRequest : PlainRequest, ISelfSerializable +{ + public PostBehavioralAnalyticsEventRequest(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType) : base(r => r.Required("collection_name", collectionName).Required("event_type", eventType)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationPostBehavioralAnalyticsEvent; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "search_application.post_behavioral_analytics_event"; + + /// + /// + /// Whether the response type has to include more details + /// + /// + [JsonIgnore] + public bool? Debug { get => Q("debug"); set => Q("debug", value); } + [JsonIgnore] + public object Payload { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, Payload, options); + } +} + +/// +/// +/// Create a behavioral analytics collection event. +/// +/// +public sealed partial class PostBehavioralAnalyticsEventRequestDescriptor : RequestDescriptor +{ + internal PostBehavioralAnalyticsEventRequestDescriptor(Action configure) => configure.Invoke(this); + + public PostBehavioralAnalyticsEventRequestDescriptor(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType) : base(r => r.Required("collection_name", collectionName).Required("event_type", eventType)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationPostBehavioralAnalyticsEvent; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "search_application.post_behavioral_analytics_event"; + + public PostBehavioralAnalyticsEventRequestDescriptor Debug(bool? debug = true) => Qs("debug", debug); + + public PostBehavioralAnalyticsEventRequestDescriptor CollectionName(Elastic.Clients.Elasticsearch.Name collectionName) + { + RouteValues.Required("collection_name", collectionName); + return Self; + } + + public PostBehavioralAnalyticsEventRequestDescriptor EventType(Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType) + { + RouteValues.Required("event_type", eventType); + return Self; + } + + private object PayloadValue { get; set; } + + public PostBehavioralAnalyticsEventRequestDescriptor Payload(object payload) + { + PayloadValue = payload; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, PayloadValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs new file mode 100644 index 00000000000..c9fbc6dc44e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PostBehavioralAnalyticsEventResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class PostBehavioralAnalyticsEventResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("accepted")] + public bool Accepted { get; init; } + [JsonInclude, JsonPropertyName("event")] + public object? Event { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs index 09736ffa1d9..30d3c434500 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs @@ -67,7 +67,7 @@ public PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : ba [JsonIgnore] public bool? Create { get => Q("create"); set => Q("create", value); } [JsonIgnore] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplication { get; set; } + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication SearchApplication { get; set; } void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -83,7 +83,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op public sealed partial class PutSearchApplicationRequestDescriptor : RequestDescriptor { internal PutSearchApplicationRequestDescriptor(Action configure) => configure.Invoke(this); - public PutSearchApplicationRequestDescriptor(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) => SearchApplicationValue = searchApplication; + public PutSearchApplicationRequestDescriptor(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) => SearchApplicationValue = searchApplication; internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationPut; @@ -101,11 +101,11 @@ public PutSearchApplicationRequestDescriptor Name(Elastic.Clients.Elasticsearch. return Self; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplicationValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParametersDescriptor SearchApplicationDescriptor { get; set; } - private Action SearchApplicationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication SearchApplicationValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationDescriptor SearchApplicationDescriptor { get; set; } + private Action SearchApplicationDescriptorAction { get; set; } - public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication) + public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication) { SearchApplicationDescriptor = null; SearchApplicationDescriptorAction = null; @@ -113,7 +113,7 @@ public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.E return Self; } - public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParametersDescriptor descriptor) + public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationDescriptor descriptor) { SearchApplicationValue = null; SearchApplicationDescriptorAction = null; @@ -121,7 +121,7 @@ public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.E return Self; } - public PutSearchApplicationRequestDescriptor SearchApplication(Action configure) + public PutSearchApplicationRequestDescriptor SearchApplication(Action configure) { SearchApplicationValue = null; SearchApplicationDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs new file mode 100644 index 00000000000..da8e0779a89 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryRequest.g.cs @@ -0,0 +1,118 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class RenderQueryRequestParameters : RequestParameters +{ +} + +/// +/// +/// Render a search application query. +/// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. +/// If a parameter used in the search template is not specified in params, the parameter's default value will be used. +/// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. +/// +/// +/// You must have read privileges on the backing alias of the search application. +/// +/// +public sealed partial class RenderQueryRequest : PlainRequest +{ + public RenderQueryRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationRenderQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "search_application.render_query"; + + [JsonInclude, JsonPropertyName("params")] + public IDictionary? Params { get; set; } +} + +/// +/// +/// Render a search application query. +/// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. +/// If a parameter used in the search template is not specified in params, the parameter's default value will be used. +/// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. +/// +/// +/// You must have read privileges on the backing alias of the search application. +/// +/// +public sealed partial class RenderQueryRequestDescriptor : RequestDescriptor +{ + internal RenderQueryRequestDescriptor(Action configure) => configure.Invoke(this); + + public RenderQueryRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationRenderQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "search_application.render_query"; + + public RenderQueryRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + RouteValues.Required("name", name); + return Self; + } + + private IDictionary? ParamsValue { get; set; } + + public RenderQueryRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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/_Generated/Api/SearchApplication/RenderQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryResponse.g.cs new file mode 100644 index 00000000000..1e3ecd37ae6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/RenderQueryResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class RenderQueryResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs index 65205873d88..3a656edaf6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/SearchApplicationSearchResponse.g.cs @@ -34,6 +34,12 @@ public sealed partial class SearchApplicationSearchResponse : Elastic public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; init; } [JsonInclude, JsonPropertyName("fields")] public IReadOnlyDictionary? Fields { get; init; } + + /// + /// + /// The returned documents and metadata. + /// + /// [JsonInclude, JsonPropertyName("hits")] public Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; init; } [JsonInclude, JsonPropertyName("max_score")] @@ -44,16 +50,81 @@ public sealed partial class SearchApplicationSearchResponse : Elastic public string? PitId { get; init; } [JsonInclude, JsonPropertyName("profile")] public Elastic.Clients.Elasticsearch.Core.Search.Profile? Profile { get; init; } + + /// + /// + /// The identifier for the search and its search context. + /// You can use this scroll ID with the scroll API to retrieve the next batch of search results for the request. + /// This property is returned only if the scroll query parameter is specified in the request. + /// + /// [JsonInclude, JsonPropertyName("_scroll_id")] public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; init; } + + /// + /// + /// A count of shards used for the request. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } [JsonInclude, JsonPropertyName("suggest")] public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; init; } [JsonInclude, JsonPropertyName("terminated_early")] public bool? TerminatedEarly { get; init; } + + /// + /// + /// If true, the request timed out before completion; returned results may be partial or empty. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool TimedOut { get; init; } + + /// + /// + /// The number of milliseconds it took Elasticsearch to run the request. + /// This value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response. + /// It includes: + /// + /// + /// + /// + /// Communication time between the coordinating node and data nodes + /// + /// + /// + /// + /// Time the request spends in the search thread pool, queued for execution + /// + /// + /// + /// + /// Actual run time + /// + /// + /// + /// + /// It does not include: + /// + /// + /// + /// + /// Time needed to send the request to Elasticsearch + /// + /// + /// + /// + /// Time needed to serialize the JSON response + /// + /// + /// + /// + /// Time needed to send the response to a client + /// + /// + /// + /// [JsonInclude, JsonPropertyName("took")] public long Took { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs index 2863e257262..b42cdd1bb4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs @@ -40,6 +40,193 @@ public sealed partial class SearchMvtRequestParameters : RequestParameters /// /// /// Search a vector tile for geospatial values. +/// Before using this API, you should be familiar with the Mapbox vector tile specification. +/// The API returns results as a binary mapbox vector tile. +/// +/// +/// Internally, Elasticsearch translates a vector tile search API request into a search containing: +/// +/// +/// +/// +/// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. +/// +/// +/// +/// +/// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. +/// +/// +/// +/// +/// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. +/// +/// +/// +/// +/// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. +/// +/// +/// +/// +/// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search +/// +/// +/// GET my-index/_search +/// { +/// "size": 10000, +/// "query": { +/// "geo_bounding_box": { +/// "my-geo-field": { +/// "top_left": { +/// "lat": -40.979898069620134, +/// "lon": -45 +/// }, +/// "bottom_right": { +/// "lat": -66.51326044311186, +/// "lon": 0 +/// } +/// } +/// } +/// }, +/// "aggregations": { +/// "grid": { +/// "geotile_grid": { +/// "field": "my-geo-field", +/// "precision": 11, +/// "size": 65536, +/// "bounds": { +/// "top_left": { +/// "lat": -40.979898069620134, +/// "lon": -45 +/// }, +/// "bottom_right": { +/// "lat": -66.51326044311186, +/// "lon": 0 +/// } +/// } +/// } +/// }, +/// "bounds": { +/// "geo_bounds": { +/// "field": "my-geo-field", +/// "wrap_longitude": false +/// } +/// } +/// } +/// } +/// +/// +/// The API returns results as a binary Mapbox vector tile. +/// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: +/// +/// +/// +/// +/// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. +/// +/// +/// +/// +/// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. +/// +/// +/// +/// +/// A meta layer containing: +/// +/// +/// +/// +/// A feature containing a bounding box. By default, this is the bounding box of the tile. +/// +/// +/// +/// +/// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. +/// +/// +/// +/// +/// Metadata for the search. +/// +/// +/// +/// +/// +/// +/// The API only returns features that can display at its zoom level. +/// For example, if a polygon feature has no area at its zoom level, the API omits it. +/// The API returns errors as UTF-8 encoded JSON. +/// +/// +/// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. +/// If you specify both parameters, the query parameter takes precedence. +/// +/// +/// Grid precision for geotile +/// +/// +/// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. +/// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. +/// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. +/// The maximum final precision is 29. +/// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). +/// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. +/// The aggs layer only contains features for cells with matching data. +/// +/// +/// Grid precision for geohex +/// +/// +/// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. +/// +/// +/// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. +/// The following table maps the H3 resolution for each precision. +/// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. +/// At a precision of 6, hexagonal cells have an H3 resolution of 2. +/// If <zoom> is 3 and grid_precision is 4, the precision is 7. +/// At a precision of 7, hexagonal cells have an H3 resolution of 3. +/// +/// +/// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | +/// | --------- | ---------------- | ------------- | ----------------| ----- | +/// | 1 | 4 | 0 | 122 | 30.5 | +/// | 2 | 16 | 0 | 122 | 7.625 | +/// | 3 | 64 | 1 | 842 | 13.15625 | +/// | 4 | 256 | 1 | 842 | 3.2890625 | +/// | 5 | 1024 | 2 | 5882 | 5.744140625 | +/// | 6 | 4096 | 2 | 5882 | 1.436035156 | +/// | 7 | 16384 | 3 | 41162 | 2.512329102 | +/// | 8 | 65536 | 3 | 41162 | 0.6280822754 | +/// | 9 | 262144 | 4 | 288122 | 1.099098206 | +/// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | +/// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | +/// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | +/// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | +/// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | +/// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | +/// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | +/// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | +/// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | +/// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | +/// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | +/// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | +/// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | +/// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | +/// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | +/// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | +/// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | +/// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | +/// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | +/// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | +/// +/// +/// Hexagonal cells don't align perfectly on a vector tile. +/// Some cells may intersect more than one vector tile. +/// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. +/// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// /// public sealed partial class SearchMvtRequest : PlainRequest @@ -61,42 +248,80 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// Sub-aggregations for the geotile_grid. /// /// - /// Supports the following aggregation types: + /// It supports the following aggregation types: /// /// /// /// - /// avg + /// avg + /// + /// + /// + /// + /// boxplot /// /// /// /// - /// cardinality + /// cardinality /// /// /// /// - /// max + /// extended stats /// /// /// /// - /// min + /// max /// /// /// /// - /// sum + /// median absolute deviation + /// + /// + /// + /// + /// min + /// + /// + /// + /// + /// percentile + /// + /// + /// + /// + /// percentile-rank + /// + /// + /// + /// + /// stats + /// + /// + /// + /// + /// sum + /// + /// + /// + /// + /// value count /// /// /// + /// + /// The aggregation names can't start with _mvt_. The _mvt_ prefix is reserved for internal aggregations. + /// /// [JsonInclude, JsonPropertyName("aggs")] public IDictionary? Aggs { get; set; } /// /// - /// Size, in pixels, of a clipping buffer outside the tile. This allows renderers + /// The size, in pixels, of a clipping buffer outside the tile. This allows renderers /// to avoid outline artifacts from geometries that extend past the extent of the tile. /// /// @@ -105,10 +330,10 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// If false, the meta layer’s feature is the bounding box of the tile. - /// If true, the meta layer’s feature is a bounding box resulting from a - /// geo_bounds aggregation. The aggregation runs on <field> values that intersect - /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting + /// If false, the meta layer's feature is the bounding box of the tile. + /// If true, the meta layer's feature is a bounding box resulting from a + /// geo_bounds aggregation. The aggregation runs on <field> values that intersect + /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting /// bounding box may be larger than the vector tile. /// /// @@ -117,7 +342,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Size, in pixels, of a side of the tile. Vector tiles are square with equal sides. + /// The size, in pixels, of a side of the tile. Vector tiles are square with equal sides. /// /// [JsonInclude, JsonPropertyName("extent")] @@ -125,7 +350,8 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Fields to return in the hits layer. Supports wildcards (*). + /// The fields to return in the hits layer. + /// It supports wildcards (*). /// This parameter does not support fields with array values. Fields with array /// values may return inconsistent results. /// @@ -136,7 +362,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Aggregation used to create a grid for the field. + /// The aggregation used to create a grid for the field. /// /// [JsonInclude, JsonPropertyName("grid_agg")] @@ -144,9 +370,9 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 - /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results - /// don’t include the aggs layer. + /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 + /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results + /// don't include the aggs layer. /// /// [JsonInclude, JsonPropertyName("grid_precision")] @@ -155,8 +381,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// /// Determines the geometry type for features in the aggs layer. In the aggs layer, - /// each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon - /// of the cells bounding box. If 'point' each feature is a Point that is the centroid + /// each feature represents a geotile_grid cell. If grid, each feature is a polygon of the cells bounding box. If point`, each feature is a Point that is the centroid /// of the cell. /// /// @@ -165,7 +390,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Query DSL used to filter documents for the search. + /// The query DSL used to filter documents for the search. /// /// [JsonInclude, JsonPropertyName("query")] @@ -182,8 +407,8 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Maximum number of features to return in the hits layer. Accepts 0-10000. - /// If 0, results don’t include the hits layer. + /// The maximum number of features to return in the hits layer. Accepts 0-10000. + /// If 0, results don't include the hits layer. /// /// [JsonInclude, JsonPropertyName("size")] @@ -191,8 +416,8 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Sorts features in the hits layer. By default, the API calculates a bounding - /// box for each feature. It sorts features based on this box’s diagonal length, + /// Sort the features in the hits layer. By default, the API calculates a bounding + /// box for each feature. It sorts features based on this box's diagonal length, /// from longest to shortest. /// /// @@ -202,7 +427,7 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// - /// Number of hits matching the query to count accurately. If true, the exact number + /// The number of hits matching the query to count accurately. If true, the exact number /// of hits is returned at the cost of some performance. If false, the response does /// not include the total number of hits matching the query. /// @@ -215,6 +440,32 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// If true, the hits and aggs layers will contain additional point features representing /// suggested label positions for the original features. /// + /// + /// + /// + /// Point and MultiPoint features will have one of the points selected. + /// + /// + /// + /// + /// Polygon and MultiPolygon features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. + /// + /// + /// + /// + /// LineString features will likewise provide a roughly central point selected from the triangle-tree. + /// + /// + /// + /// + /// The aggregation results will provide one central point for each aggregation bucket. + /// + /// + /// + /// + /// All attributes from the original features will also be copied to the new label features. + /// In addition, the new features will be distinguishable using the tag _mvt_label_position. + /// /// [JsonInclude, JsonPropertyName("with_labels")] public bool? WithLabels { get; set; } @@ -226,6 +477,193 @@ public SearchMvtRequest(Elastic.Clients.Elasticsearch.Indices indices, Elastic.C /// /// /// Search a vector tile for geospatial values. +/// Before using this API, you should be familiar with the Mapbox vector tile specification. +/// The API returns results as a binary mapbox vector tile. +/// +/// +/// Internally, Elasticsearch translates a vector tile search API request into a search containing: +/// +/// +/// +/// +/// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. +/// +/// +/// +/// +/// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. +/// +/// +/// +/// +/// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. +/// +/// +/// +/// +/// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. +/// +/// +/// +/// +/// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search +/// +/// +/// GET my-index/_search +/// { +/// "size": 10000, +/// "query": { +/// "geo_bounding_box": { +/// "my-geo-field": { +/// "top_left": { +/// "lat": -40.979898069620134, +/// "lon": -45 +/// }, +/// "bottom_right": { +/// "lat": -66.51326044311186, +/// "lon": 0 +/// } +/// } +/// } +/// }, +/// "aggregations": { +/// "grid": { +/// "geotile_grid": { +/// "field": "my-geo-field", +/// "precision": 11, +/// "size": 65536, +/// "bounds": { +/// "top_left": { +/// "lat": -40.979898069620134, +/// "lon": -45 +/// }, +/// "bottom_right": { +/// "lat": -66.51326044311186, +/// "lon": 0 +/// } +/// } +/// } +/// }, +/// "bounds": { +/// "geo_bounds": { +/// "field": "my-geo-field", +/// "wrap_longitude": false +/// } +/// } +/// } +/// } +/// +/// +/// The API returns results as a binary Mapbox vector tile. +/// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: +/// +/// +/// +/// +/// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. +/// +/// +/// +/// +/// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. +/// +/// +/// +/// +/// A meta layer containing: +/// +/// +/// +/// +/// A feature containing a bounding box. By default, this is the bounding box of the tile. +/// +/// +/// +/// +/// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. +/// +/// +/// +/// +/// Metadata for the search. +/// +/// +/// +/// +/// +/// +/// The API only returns features that can display at its zoom level. +/// For example, if a polygon feature has no area at its zoom level, the API omits it. +/// The API returns errors as UTF-8 encoded JSON. +/// +/// +/// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. +/// If you specify both parameters, the query parameter takes precedence. +/// +/// +/// Grid precision for geotile +/// +/// +/// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. +/// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. +/// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. +/// The maximum final precision is 29. +/// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). +/// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. +/// The aggs layer only contains features for cells with matching data. +/// +/// +/// Grid precision for geohex +/// +/// +/// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. +/// +/// +/// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. +/// The following table maps the H3 resolution for each precision. +/// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. +/// At a precision of 6, hexagonal cells have an H3 resolution of 2. +/// If <zoom> is 3 and grid_precision is 4, the precision is 7. +/// At a precision of 7, hexagonal cells have an H3 resolution of 3. +/// +/// +/// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | +/// | --------- | ---------------- | ------------- | ----------------| ----- | +/// | 1 | 4 | 0 | 122 | 30.5 | +/// | 2 | 16 | 0 | 122 | 7.625 | +/// | 3 | 64 | 1 | 842 | 13.15625 | +/// | 4 | 256 | 1 | 842 | 3.2890625 | +/// | 5 | 1024 | 2 | 5882 | 5.744140625 | +/// | 6 | 4096 | 2 | 5882 | 1.436035156 | +/// | 7 | 16384 | 3 | 41162 | 2.512329102 | +/// | 8 | 65536 | 3 | 41162 | 0.6280822754 | +/// | 9 | 262144 | 4 | 288122 | 1.099098206 | +/// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | +/// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | +/// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | +/// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | +/// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | +/// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | +/// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | +/// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | +/// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | +/// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | +/// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | +/// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | +/// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | +/// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | +/// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | +/// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | +/// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | +/// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | +/// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | +/// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | +/// +/// +/// Hexagonal cells don't align perfectly on a vector tile. +/// Some cells may intersect more than one vector tile. +/// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. +/// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// /// public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor, SearchMvtRequestParameters> @@ -303,35 +741,73 @@ public SearchMvtRequestDescriptor Zoom(int zoom) /// Sub-aggregations for the geotile_grid. /// /// - /// Supports the following aggregation types: + /// It supports the following aggregation types: /// /// /// /// - /// avg + /// avg + /// + /// + /// + /// + /// boxplot + /// + /// + /// + /// + /// cardinality + /// + /// + /// + /// + /// extended stats + /// + /// + /// + /// + /// max + /// + /// + /// + /// + /// median absolute deviation + /// + /// + /// + /// + /// min /// /// /// /// - /// cardinality + /// percentile /// /// /// /// - /// max + /// percentile-rank /// /// /// /// - /// min + /// stats /// /// /// /// - /// sum + /// sum + /// + /// + /// + /// + /// value count /// /// /// + /// + /// The aggregation names can't start with _mvt_. The _mvt_ prefix is reserved for internal aggregations. + /// /// public SearchMvtRequestDescriptor Aggs(Func>, FluentDescriptorDictionary>> selector) { @@ -341,7 +817,7 @@ public SearchMvtRequestDescriptor Aggs(Func /// - /// Size, in pixels, of a clipping buffer outside the tile. This allows renderers + /// The size, in pixels, of a clipping buffer outside the tile. This allows renderers /// to avoid outline artifacts from geometries that extend past the extent of the tile. /// /// @@ -353,10 +829,10 @@ public SearchMvtRequestDescriptor Buffer(int? buffer) /// /// - /// If false, the meta layer’s feature is the bounding box of the tile. - /// If true, the meta layer’s feature is a bounding box resulting from a - /// geo_bounds aggregation. The aggregation runs on <field> values that intersect - /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting + /// If false, the meta layer's feature is the bounding box of the tile. + /// If true, the meta layer's feature is a bounding box resulting from a + /// geo_bounds aggregation. The aggregation runs on <field> values that intersect + /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting /// bounding box may be larger than the vector tile. /// /// @@ -368,7 +844,7 @@ public SearchMvtRequestDescriptor ExactBounds(bool? exactBounds = tru /// /// - /// Size, in pixels, of a side of the tile. Vector tiles are square with equal sides. + /// The size, in pixels, of a side of the tile. Vector tiles are square with equal sides. /// /// public SearchMvtRequestDescriptor Extent(int? extent) @@ -379,7 +855,8 @@ public SearchMvtRequestDescriptor Extent(int? extent) /// /// - /// Fields to return in the hits layer. Supports wildcards (*). + /// The fields to return in the hits layer. + /// It supports wildcards (*). /// This parameter does not support fields with array values. Fields with array /// values may return inconsistent results. /// @@ -392,7 +869,7 @@ public SearchMvtRequestDescriptor Fields(Elastic.Clients.Elasticsearc /// /// - /// Aggregation used to create a grid for the field. + /// The aggregation used to create a grid for the field. /// /// public SearchMvtRequestDescriptor GridAgg(Elastic.Clients.Elasticsearch.Core.SearchMvt.GridAggregationType? gridAgg) @@ -403,9 +880,9 @@ public SearchMvtRequestDescriptor GridAgg(Elastic.Clients.Elasticsear /// /// - /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 - /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results - /// don’t include the aggs layer. + /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 + /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results + /// don't include the aggs layer. /// /// public SearchMvtRequestDescriptor GridPrecision(int? gridPrecision) @@ -417,8 +894,7 @@ public SearchMvtRequestDescriptor GridPrecision(int? gridPrecision) /// /// /// Determines the geometry type for features in the aggs layer. In the aggs layer, - /// each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon - /// of the cells bounding box. If 'point' each feature is a Point that is the centroid + /// each feature represents a geotile_grid cell. If grid, each feature is a polygon of the cells bounding box. If point`, each feature is a Point that is the centroid /// of the cell. /// /// @@ -430,7 +906,7 @@ public SearchMvtRequestDescriptor GridType(Elastic.Clients.Elasticsea /// /// - /// Query DSL used to filter documents for the search. + /// The query DSL used to filter documents for the search. /// /// public SearchMvtRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -471,8 +947,8 @@ public SearchMvtRequestDescriptor RuntimeMappings(Func /// - /// Maximum number of features to return in the hits layer. Accepts 0-10000. - /// If 0, results don’t include the hits layer. + /// The maximum number of features to return in the hits layer. Accepts 0-10000. + /// If 0, results don't include the hits layer. /// /// public SearchMvtRequestDescriptor Size(int? size) @@ -483,8 +959,8 @@ public SearchMvtRequestDescriptor Size(int? size) /// /// - /// Sorts features in the hits layer. By default, the API calculates a bounding - /// box for each feature. It sorts features based on this box’s diagonal length, + /// Sort the features in the hits layer. By default, the API calculates a bounding + /// box for each feature. It sorts features based on this box's diagonal length, /// from longest to shortest. /// /// @@ -526,7 +1002,7 @@ public SearchMvtRequestDescriptor Sort(params Action /// - /// Number of hits matching the query to count accurately. If true, the exact number + /// The number of hits matching the query to count accurately. If true, the exact number /// of hits is returned at the cost of some performance. If false, the response does /// not include the total number of hits matching the query. /// @@ -542,6 +1018,32 @@ public SearchMvtRequestDescriptor TrackTotalHits(Elastic.Clients.Elas /// If true, the hits and aggs layers will contain additional point features representing /// suggested label positions for the original features. /// + /// + /// + /// + /// Point and MultiPoint features will have one of the points selected. + /// + /// + /// + /// + /// Polygon and MultiPolygon features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. + /// + /// + /// + /// + /// LineString features will likewise provide a roughly central point selected from the triangle-tree. + /// + /// + /// + /// + /// The aggregation results will provide one central point for each aggregation bucket. + /// + /// + /// + /// + /// All attributes from the original features will also be copied to the new label features. + /// In addition, the new features will be distinguishable using the tag _mvt_label_position. + /// /// public SearchMvtRequestDescriptor WithLabels(bool? withLabels = true) { @@ -679,6 +1181,193 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Search a vector tile for geospatial values. +/// Before using this API, you should be familiar with the Mapbox vector tile specification. +/// The API returns results as a binary mapbox vector tile. +/// +/// +/// Internally, Elasticsearch translates a vector tile search API request into a search containing: +/// +/// +/// +/// +/// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. +/// +/// +/// +/// +/// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. +/// +/// +/// +/// +/// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. +/// +/// +/// +/// +/// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. +/// +/// +/// +/// +/// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search +/// +/// +/// GET my-index/_search +/// { +/// "size": 10000, +/// "query": { +/// "geo_bounding_box": { +/// "my-geo-field": { +/// "top_left": { +/// "lat": -40.979898069620134, +/// "lon": -45 +/// }, +/// "bottom_right": { +/// "lat": -66.51326044311186, +/// "lon": 0 +/// } +/// } +/// } +/// }, +/// "aggregations": { +/// "grid": { +/// "geotile_grid": { +/// "field": "my-geo-field", +/// "precision": 11, +/// "size": 65536, +/// "bounds": { +/// "top_left": { +/// "lat": -40.979898069620134, +/// "lon": -45 +/// }, +/// "bottom_right": { +/// "lat": -66.51326044311186, +/// "lon": 0 +/// } +/// } +/// } +/// }, +/// "bounds": { +/// "geo_bounds": { +/// "field": "my-geo-field", +/// "wrap_longitude": false +/// } +/// } +/// } +/// } +/// +/// +/// The API returns results as a binary Mapbox vector tile. +/// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: +/// +/// +/// +/// +/// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. +/// +/// +/// +/// +/// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. +/// +/// +/// +/// +/// A meta layer containing: +/// +/// +/// +/// +/// A feature containing a bounding box. By default, this is the bounding box of the tile. +/// +/// +/// +/// +/// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. +/// +/// +/// +/// +/// Metadata for the search. +/// +/// +/// +/// +/// +/// +/// The API only returns features that can display at its zoom level. +/// For example, if a polygon feature has no area at its zoom level, the API omits it. +/// The API returns errors as UTF-8 encoded JSON. +/// +/// +/// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. +/// If you specify both parameters, the query parameter takes precedence. +/// +/// +/// Grid precision for geotile +/// +/// +/// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. +/// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. +/// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. +/// The maximum final precision is 29. +/// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). +/// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. +/// The aggs layer only contains features for cells with matching data. +/// +/// +/// Grid precision for geohex +/// +/// +/// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. +/// +/// +/// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. +/// The following table maps the H3 resolution for each precision. +/// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. +/// At a precision of 6, hexagonal cells have an H3 resolution of 2. +/// If <zoom> is 3 and grid_precision is 4, the precision is 7. +/// At a precision of 7, hexagonal cells have an H3 resolution of 3. +/// +/// +/// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | +/// | --------- | ---------------- | ------------- | ----------------| ----- | +/// | 1 | 4 | 0 | 122 | 30.5 | +/// | 2 | 16 | 0 | 122 | 7.625 | +/// | 3 | 64 | 1 | 842 | 13.15625 | +/// | 4 | 256 | 1 | 842 | 3.2890625 | +/// | 5 | 1024 | 2 | 5882 | 5.744140625 | +/// | 6 | 4096 | 2 | 5882 | 1.436035156 | +/// | 7 | 16384 | 3 | 41162 | 2.512329102 | +/// | 8 | 65536 | 3 | 41162 | 0.6280822754 | +/// | 9 | 262144 | 4 | 288122 | 1.099098206 | +/// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | +/// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | +/// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | +/// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | +/// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | +/// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | +/// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | +/// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | +/// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | +/// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | +/// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | +/// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | +/// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | +/// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | +/// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | +/// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | +/// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | +/// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | +/// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | +/// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | +/// +/// +/// Hexagonal cells don't align perfectly on a vector tile. +/// Some cells may intersect more than one vector tile. +/// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. +/// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// /// public sealed partial class SearchMvtRequestDescriptor : RequestDescriptor @@ -752,35 +1441,73 @@ public SearchMvtRequestDescriptor Zoom(int zoom) /// Sub-aggregations for the geotile_grid. /// /// - /// Supports the following aggregation types: + /// It supports the following aggregation types: /// /// /// /// - /// avg + /// avg + /// + /// + /// + /// + /// boxplot + /// + /// + /// + /// + /// cardinality + /// + /// + /// + /// + /// extended stats + /// + /// + /// + /// + /// max + /// + /// + /// + /// + /// median absolute deviation + /// + /// + /// + /// + /// min /// /// /// /// - /// cardinality + /// percentile /// /// /// /// - /// max + /// percentile-rank /// /// /// /// - /// min + /// stats /// /// /// /// - /// sum + /// sum + /// + /// + /// + /// + /// value count /// /// /// + /// + /// The aggregation names can't start with _mvt_. The _mvt_ prefix is reserved for internal aggregations. + /// /// public SearchMvtRequestDescriptor Aggs(Func, FluentDescriptorDictionary> selector) { @@ -790,7 +1517,7 @@ public SearchMvtRequestDescriptor Aggs(Func /// - /// Size, in pixels, of a clipping buffer outside the tile. This allows renderers + /// The size, in pixels, of a clipping buffer outside the tile. This allows renderers /// to avoid outline artifacts from geometries that extend past the extent of the tile. /// /// @@ -802,10 +1529,10 @@ public SearchMvtRequestDescriptor Buffer(int? buffer) /// /// - /// If false, the meta layer’s feature is the bounding box of the tile. - /// If true, the meta layer’s feature is a bounding box resulting from a - /// geo_bounds aggregation. The aggregation runs on <field> values that intersect - /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting + /// If false, the meta layer's feature is the bounding box of the tile. + /// If true, the meta layer's feature is a bounding box resulting from a + /// geo_bounds aggregation. The aggregation runs on <field> values that intersect + /// the <zoom>/<x>/<y> tile with wrap_longitude set to false. The resulting /// bounding box may be larger than the vector tile. /// /// @@ -817,7 +1544,7 @@ public SearchMvtRequestDescriptor ExactBounds(bool? exactBounds = true) /// /// - /// Size, in pixels, of a side of the tile. Vector tiles are square with equal sides. + /// The size, in pixels, of a side of the tile. Vector tiles are square with equal sides. /// /// public SearchMvtRequestDescriptor Extent(int? extent) @@ -828,7 +1555,8 @@ public SearchMvtRequestDescriptor Extent(int? extent) /// /// - /// Fields to return in the hits layer. Supports wildcards (*). + /// The fields to return in the hits layer. + /// It supports wildcards (*). /// This parameter does not support fields with array values. Fields with array /// values may return inconsistent results. /// @@ -841,7 +1569,7 @@ public SearchMvtRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? f /// /// - /// Aggregation used to create a grid for the field. + /// The aggregation used to create a grid for the field. /// /// public SearchMvtRequestDescriptor GridAgg(Elastic.Clients.Elasticsearch.Core.SearchMvt.GridAggregationType? gridAgg) @@ -852,9 +1580,9 @@ public SearchMvtRequestDescriptor GridAgg(Elastic.Clients.Elasticsearch.Core.Sea /// /// - /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 - /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results - /// don’t include the aggs layer. + /// Additional zoom levels available through the aggs layer. For example, if <zoom> is 7 + /// and grid_precision is 8, you can zoom in up to level 15. Accepts 0-8. If 0, results + /// don't include the aggs layer. /// /// public SearchMvtRequestDescriptor GridPrecision(int? gridPrecision) @@ -866,8 +1594,7 @@ public SearchMvtRequestDescriptor GridPrecision(int? gridPrecision) /// /// /// Determines the geometry type for features in the aggs layer. In the aggs layer, - /// each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon - /// of the cells bounding box. If 'point' each feature is a Point that is the centroid + /// each feature represents a geotile_grid cell. If grid, each feature is a polygon of the cells bounding box. If point`, each feature is a Point that is the centroid /// of the cell. /// /// @@ -879,7 +1606,7 @@ public SearchMvtRequestDescriptor GridType(Elastic.Clients.Elasticsearch.Core.Se /// /// - /// Query DSL used to filter documents for the search. + /// The query DSL used to filter documents for the search. /// /// public SearchMvtRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -920,8 +1647,8 @@ public SearchMvtRequestDescriptor RuntimeMappings(Func /// - /// Maximum number of features to return in the hits layer. Accepts 0-10000. - /// If 0, results don’t include the hits layer. + /// The maximum number of features to return in the hits layer. Accepts 0-10000. + /// If 0, results don't include the hits layer. /// /// public SearchMvtRequestDescriptor Size(int? size) @@ -932,8 +1659,8 @@ public SearchMvtRequestDescriptor Size(int? size) /// /// - /// Sorts features in the hits layer. By default, the API calculates a bounding - /// box for each feature. It sorts features based on this box’s diagonal length, + /// Sort the features in the hits layer. By default, the API calculates a bounding + /// box for each feature. It sorts features based on this box's diagonal length, /// from longest to shortest. /// /// @@ -975,7 +1702,7 @@ public SearchMvtRequestDescriptor Sort(params Action /// - /// Number of hits matching the query to count accurately. If true, the exact number + /// The number of hits matching the query to count accurately. If true, the exact number /// of hits is returned at the cost of some performance. If false, the response does /// not include the total number of hits matching the query. /// @@ -991,6 +1718,32 @@ public SearchMvtRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.C /// If true, the hits and aggs layers will contain additional point features representing /// suggested label positions for the original features. /// + /// + /// + /// + /// Point and MultiPoint features will have one of the points selected. + /// + /// + /// + /// + /// Polygon and MultiPolygon features will have a single point generated, either the centroid, if it is within the polygon, or another point within the polygon selected from the sorted triangle-tree. + /// + /// + /// + /// + /// LineString features will likewise provide a roughly central point selected from the triangle-tree. + /// + /// + /// + /// + /// The aggregation results will provide one central point for each aggregation bucket. + /// + /// + /// + /// + /// All attributes from the original features will also be copied to the new label features. + /// In addition, the new features will be distinguishable using the tag _mvt_label_position. + /// /// public SearchMvtRequestDescriptor WithLabels(bool? withLabels = true) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 7c11901438f..1ce4a5ef0d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -43,23 +43,27 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// - /// If true, returns partial results if there are shard request timeouts or shard failures. If false, returns an error with no partial results. + /// If true and there are shard request timeouts or shard failures, the request returns partial results. + /// If false, it returns an error with no partial results. + /// + /// + /// To override the default behavior, you can set the search.default_allow_partial_results cluster setting to false. /// /// public bool? AllowPartialSearchResults { get => Q("allow_partial_search_results"); set => Q("allow_partial_search_results", value); } /// /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// /// - /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. + /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } @@ -67,39 +71,39 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// /// The number of shard results that should be reduced at once on the coordinating node. - /// This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. + /// If the potential number of shards in the request can be large, this value should be used as a protection mechanism to reduce the memory overhead per search request. /// /// public long? BatchedReduceSize { get => Q("batched_reduce_size"); set => Q("batched_reduce_size", value); } /// /// - /// If true, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. + /// If true, network round-trips between the coordinating node and the remote clusters are minimized when running cross-cluster search (CCS) requests. /// /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// /// - /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. + /// The default operator for the query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The field to use as a default when no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Df { get => Q("df"); set => Q("df", value); } /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. + /// It supports comma-separated values such as open,hidden. /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -113,13 +117,6 @@ public sealed partial class SearchRequestParameters : RequestParameters /// public bool? ForceSyntheticSource { get => Q("force_synthetic_source"); set => Q("force_synthetic_source", value); } - /// - /// - /// If true, concrete, expanded or aliased indices will be ignored when frozen. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - /// /// /// If false, the request returns an error if it targets a missing or closed index. @@ -130,14 +127,14 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// This parameter can only be used when the q query string parameter is specified. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// /// - /// Defines the number of concurrent shard requests per node this search executes concurrently. + /// The number of concurrent shard requests per node that the search runs concurrently. /// This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. /// /// @@ -145,42 +142,94 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// - /// Nodes and shards used for the search. + /// The minimum version of the node that can handle the request. + /// Any handling node with a lower version will fail the request. + /// + /// + public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } + + /// + /// + /// The nodes and shards used for the search. /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: + /// + /// + /// + /// /// _only_local to run the search only on shards on the local node; + /// + /// + /// + /// /// _local to, if possible, run the search on shards on the local node, or if not, select shards using the default method; + /// + /// + /// + /// /// _only_nodes:<node-id>,<node-id> to run the search on only the specified nodes IDs, where, if suitable shards exist on more than one selected node, use shards on those nodes using the default method, or if none of the specified nodes are available, select shards from any available node using the default method; + /// + /// + /// + /// /// _prefer_nodes:<node-id>,<node-id> to if possible, run the search on the specified nodes IDs, or if not, select shards using the default method; + /// + /// + /// + /// /// _shards:<shard>,<shard> to run the search only on the specified shards; + /// + /// + /// + /// /// <custom-string> (any string that does not start with _) to route searches with the same <custom-string> to the same shards in the same order. /// + /// + /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. + /// A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. /// This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). /// When unspecified, the pre-filter phase is executed if any of these conditions is met: - /// the request targets more than 128 shards; - /// the request targets one or more read-only index; - /// the primary sort of the query targets an indexed field. /// + /// + /// + /// + /// The request targets more than 128 shards. + /// + /// + /// + /// + /// The request targets one or more read-only index. + /// + /// + /// + /// + /// The primary sort of the query targets an indexed field. + /// + /// + /// /// public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } /// /// - /// Query in the Lucene query string syntax using query parameter search. + /// A query in the Lucene query string syntax. /// Query parameter searches do not support the full Elasticsearch Query DSL but are handy for testing. /// + /// + /// IMPORTANT: This parameter overrides the query parameter in the request body. + /// If both parameters are specified, documents matching the query request body parameter are not returned. + /// /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// /// /// If true, the caching of search results is enabled for requests where size is 0. - /// Defaults to index level settings. + /// It defaults to index level settings. /// /// public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } @@ -194,23 +243,23 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Period to retain the search context for scrolling. See Scroll search results. + /// The period to retain the search context for scrolling. /// By default, this value cannot exceed 1d (24 hours). - /// You can change this limit using the search.max_keep_alive cluster-level setting. + /// You can change this limit by using the search.max_keep_alive cluster-level setting. /// /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// /// - /// How distributed term frequencies are calculated for relevance scoring. + /// Indicates how distributed term frequencies are calculated for relevance scoring. /// /// public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } @@ -236,23 +285,23 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// - /// Specifies which field to use for suggestions. + /// The field to use for suggestions. /// /// public Elastic.Clients.Elasticsearch.Field? SuggestField { get => Q("suggest_field"); set => Q("suggest_field", value); } /// /// - /// Specifies the suggest mode. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. + /// The suggest mode. + /// This parameter can be used only when the suggest_field and suggest_text query string parameters are specified. /// /// public Elastic.Clients.Elasticsearch.SuggestMode? SuggestMode { get => Q("suggest_mode"); set => Q("suggest_mode", value); } /// /// - /// Number of suggestions to return. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. + /// The number of suggestions to return. + /// This parameter can be used only when the suggest_field and suggest_text query string parameters are specified. /// /// public long? SuggestSize { get => Q("suggest_size"); set => Q("suggest_size", value); } @@ -260,7 +309,7 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// /// The source text for which the suggestions should be returned. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. + /// This parameter can be used only when the suggest_field and suggest_text query string parameters are specified. /// /// public string? SuggestText { get => Q("suggest_text"); set => Q("suggest_text", value); } @@ -714,6 +763,26 @@ public override void Write(Utf8JsonWriter writer, SearchRequest value, JsonSeria /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// +/// +/// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. +/// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. +/// +/// +/// Search slicing +/// +/// +/// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. +/// By default the splitting is done first on the shards, then locally on each shard. +/// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. +/// +/// +/// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. +/// +/// +/// IMPORTANT: The same point-in-time ID should be used for all slices. +/// If different PIT IDs are used, slices can overlap and miss documents. +/// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. +/// /// [JsonConverter(typeof(SearchRequestConverter))] public partial class SearchRequest : PlainRequest @@ -746,7 +815,11 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, returns partial results if there are shard request timeouts or shard failures. If false, returns an error with no partial results. + /// If true and there are shard request timeouts or shard failures, the request returns partial results. + /// If false, it returns an error with no partial results. + /// + /// + /// To override the default behavior, you can set the search.default_allow_partial_results cluster setting to false. /// /// [JsonIgnore] @@ -754,8 +827,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Analyzer to use for the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -763,8 +836,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, wildcard and prefix queries are analyzed. - /// This parameter can only be used when the q query string parameter is specified. + /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -773,7 +846,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// The number of shard results that should be reduced at once on the coordinating node. - /// This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large. + /// If the potential number of shards in the request can be large, this value should be used as a protection mechanism to reduce the memory overhead per search request. /// /// [JsonIgnore] @@ -781,7 +854,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, network round-trips between the coordinating node and the remote clusters are minimized when executing cross-cluster search (CCS) requests. + /// If true, network round-trips between the coordinating node and the remote clusters are minimized when running cross-cluster search (CCS) requests. /// /// [JsonIgnore] @@ -789,8 +862,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// The default operator for query string query: AND or OR. - /// This parameter can only be used when the q query string parameter is specified. + /// The default operator for the query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -798,8 +871,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Field to use as default where no field prefix is given in the query string. - /// This parameter can only be used when the q query string parameter is specified. + /// The field to use as a default when no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -807,9 +880,9 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. + /// It supports comma-separated values such as open,hidden. /// /// [JsonIgnore] @@ -825,14 +898,6 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonIgnore] public bool? ForceSyntheticSource { get => Q("force_synthetic_source"); set => Q("force_synthetic_source", value); } - /// - /// - /// If true, concrete, expanded or aliased indices will be ignored when frozen. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - /// /// /// If false, the request returns an error if it targets a missing or closed index. @@ -844,7 +909,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. - /// This parameter can only be used when the q query string parameter is specified. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -852,7 +917,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Defines the number of concurrent shard requests per node this search executes concurrently. + /// The number of concurrent shard requests per node that the search runs concurrently. /// This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. /// /// @@ -861,37 +926,90 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Nodes and shards used for the search. + /// The minimum version of the node that can handle the request. + /// Any handling node with a lower version will fail the request. + /// + /// + [JsonIgnore] + public string? MinCompatibleShardNode { get => Q("min_compatible_shard_node"); set => Q("min_compatible_shard_node", value); } + + /// + /// + /// The nodes and shards used for the search. /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: + /// + /// + /// + /// /// _only_local to run the search only on shards on the local node; + /// + /// + /// + /// /// _local to, if possible, run the search on shards on the local node, or if not, select shards using the default method; + /// + /// + /// + /// /// _only_nodes:<node-id>,<node-id> to run the search on only the specified nodes IDs, where, if suitable shards exist on more than one selected node, use shards on those nodes using the default method, or if none of the specified nodes are available, select shards from any available node using the default method; + /// + /// + /// + /// /// _prefer_nodes:<node-id>,<node-id> to if possible, run the search on the specified nodes IDs, or if not, select shards using the default method; + /// + /// + /// + /// /// _shards:<shard>,<shard> to run the search only on the specified shards; + /// + /// + /// + /// /// <custom-string> (any string that does not start with _) to route searches with the same <custom-string> to the same shards in the same order. /// + /// + /// /// [JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. + /// A threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. /// This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method (if date filters are mandatory to match but the shard bounds and the query are disjoint). /// When unspecified, the pre-filter phase is executed if any of these conditions is met: - /// the request targets more than 128 shards; - /// the request targets one or more read-only index; - /// the primary sort of the query targets an indexed field. /// + /// + /// + /// + /// The request targets more than 128 shards. + /// + /// + /// + /// + /// The request targets one or more read-only index. + /// + /// + /// + /// + /// The primary sort of the query targets an indexed field. + /// + /// + /// /// [JsonIgnore] public long? PreFilterShardSize { get => Q("pre_filter_shard_size"); set => Q("pre_filter_shard_size", value); } /// /// - /// Query in the Lucene query string syntax using query parameter search. + /// A query in the Lucene query string syntax. /// Query parameter searches do not support the full Elasticsearch Query DSL but are handy for testing. /// + /// + /// IMPORTANT: This parameter overrides the query parameter in the request body. + /// If both parameters are specified, documents matching the query request body parameter are not returned. + /// /// [JsonIgnore] public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } @@ -899,7 +1017,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// If true, the caching of search results is enabled for requests where size is 0. - /// Defaults to index level settings. + /// It defaults to index level settings. /// /// [JsonIgnore] @@ -915,7 +1033,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// [JsonIgnore] @@ -923,9 +1041,9 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Period to retain the search context for scrolling. See Scroll search results. + /// The period to retain the search context for scrolling. /// By default, this value cannot exceed 1d (24 hours). - /// You can change this limit using the search.max_keep_alive cluster-level setting. + /// You can change this limit by using the search.max_keep_alive cluster-level setting. /// /// [JsonIgnore] @@ -933,7 +1051,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// How distributed term frequencies are calculated for relevance scoring. + /// Indicates how distributed term frequencies are calculated for relevance scoring. /// /// [JsonIgnore] @@ -962,7 +1080,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Specifies which field to use for suggestions. + /// The field to use for suggestions. /// /// [JsonIgnore] @@ -970,8 +1088,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Specifies the suggest mode. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. + /// The suggest mode. + /// This parameter can be used only when the suggest_field and suggest_text query string parameters are specified. /// /// [JsonIgnore] @@ -979,8 +1097,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Number of suggestions to return. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. + /// The number of suggestions to return. + /// This parameter can be used only when the suggest_field and suggest_text query string parameters are specified. /// /// [JsonIgnore] @@ -989,7 +1107,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// The source text for which the suggestions should be returned. - /// This parameter can only be used when the suggest_field and suggest_text query string parameters are specified. + /// This parameter can be used only when the suggest_field and suggest_text query string parameters are specified. /// /// [JsonIgnore] @@ -1021,7 +1139,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Array of wildcard (*) patterns. + /// An array of wildcard (*) field patterns. /// The request returns doc values for field names matching these patterns in the hits.fields property of the response. /// /// @@ -1030,7 +1148,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, returns detailed information about score computation as part of a hit. + /// If true, the request returns detailed information about score computation as part of a hit. /// /// [JsonInclude, JsonPropertyName("explain")] @@ -1046,7 +1164,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Array of wildcard (*) patterns. + /// An array of wildcard (*) field patterns. /// The request returns values for field names matching these patterns in the hits.fields property of the response. /// /// @@ -1055,8 +1173,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Starting document offset. - /// Needs to be non-negative. + /// The starting document offset, which must be non-negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -1074,7 +1191,10 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Boosts the _score of documents from specified indices. + /// Boost the _score of documents from specified indices. + /// The boost value is the factor by which scores are multiplied. + /// A boost value greater than 1.0 increases the score. + /// A boost value between 0 and 1.0 decreases the score. /// /// [JsonInclude, JsonPropertyName("indices_boost")] @@ -1082,7 +1202,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Defines the approximate kNN search to run. + /// The approximate kNN search to run. /// /// [JsonInclude, JsonPropertyName("knn")] @@ -1091,7 +1211,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Minimum _score for matching documents. + /// The minimum _score for matching documents. /// Documents with a lower _score are not included in the search results. /// /// @@ -1100,7 +1220,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Limits the search to a point in time (PIT). + /// Limit the search to a point in time (PIT). /// If you provide a PIT, you cannot specify an <index> in the request path. /// /// @@ -1128,7 +1248,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Defines the search definition using the Query DSL. + /// The search definition using the Query DSL. /// /// [JsonInclude, JsonPropertyName("query")] @@ -1136,7 +1256,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Defines the Reciprocal Rank Fusion (RRF) to use. + /// The Reciprocal Rank Fusion (RRF) to use. /// /// [JsonInclude, JsonPropertyName("rank")] @@ -1153,7 +1273,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. + /// A retriever is a specification to describe top documents returned from a search. + /// A retriever replaces other elements of the search API that also return top documents such as query and knn. /// /// [JsonInclude, JsonPropertyName("retriever")] @@ -1161,7 +1282,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Defines one or more runtime fields in the search request. + /// One or more runtime fields in the search request. /// These fields take precedence over mapped fields with the same name. /// /// @@ -1186,7 +1307,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, returns sequence number and primary term of the last modification of each hit. + /// If true, the request returns sequence number and primary term of the last modification of each hit. /// /// [JsonInclude, JsonPropertyName("seq_no_primary_term")] @@ -1194,9 +1315,9 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// The number of hits to return. + /// The number of hits to return, which must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. + /// To page through more hits, use the search_after property. /// /// [JsonInclude, JsonPropertyName("size")] @@ -1204,7 +1325,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Can be used to split a scrolled search into multiple slices that can be consumed independently. + /// Split a scrolled search into multiple slices that can be consumed independently. /// /// [JsonInclude, JsonPropertyName("slice")] @@ -1221,8 +1342,10 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Indicates which source fields are returned for matching documents. - /// These fields are returned in the hits._source property of the search response. + /// The source fields that are returned for matching documents. + /// These fields are returned in the hits._source property of the search response. + /// If the stored_fields property is specified, the _source property defaults to false. + /// Otherwise, it defaults to true. /// /// [JsonInclude, JsonPropertyName("_source")] @@ -1230,7 +1353,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Stats groups to associate with the search. + /// The stats groups to associate with the search. /// Each group maintains a statistics aggregation for its associated searches. /// You can retrieve these stats using the indices stats API. /// @@ -1240,9 +1363,9 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source property defaults to false. /// You can pass _source: true to return both source fields and stored fields in the search response. /// /// @@ -1260,13 +1383,17 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. + /// + /// + /// IMPORTANT: Use with caution. + /// Elasticsearch applies this property to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + /// Avoid specifying this property for requests that target data streams with backing indices across multiple data tiers. + /// + /// /// If set to 0 (default), the query does not terminate early. /// /// @@ -1275,7 +1402,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// Specifies the period of time to wait for a response from each shard. + /// The period of time to wait for a response from each shard. /// If no response is received before the timeout expires, the request fails and returns an error. /// Defaults to no timeout. /// @@ -1285,7 +1412,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. + /// If true, calculate and return document scores, even if the scores are not used for sorting. /// /// [JsonInclude, JsonPropertyName("track_scores")] @@ -1303,7 +1430,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// If true, returns document version as part of a hit. + /// If true, the request returns the document version as part of a hit. /// /// [JsonInclude, JsonPropertyName("version")] @@ -1319,6 +1446,26 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// +/// +/// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. +/// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. +/// +/// +/// Search slicing +/// +/// +/// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. +/// By default the splitting is done first on the shards, then locally on each shard. +/// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. +/// +/// +/// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. +/// +/// +/// IMPORTANT: The same point-in-time ID should be used for all slices. +/// If different PIT IDs are used, slices can overlap and miss documents. +/// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. +/// /// public sealed partial class SearchRequestDescriptor : RequestDescriptor, SearchRequestParameters> { @@ -1350,10 +1497,10 @@ public SearchRequestDescriptor() public SearchRequestDescriptor Df(string? df) => Qs("df", df); public SearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchRequestDescriptor ForceSyntheticSource(bool? forceSyntheticSource = true) => Qs("force_synthetic_source", forceSyntheticSource); - public SearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); + public SearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); @@ -1486,7 +1633,7 @@ public SearchRequestDescriptor Collapse(Action /// - /// Array of wildcard (*) patterns. + /// An array of wildcard (*) field patterns. /// The request returns doc values for field names matching these patterns in the hits.fields property of the response. /// /// @@ -1528,7 +1675,7 @@ public SearchRequestDescriptor DocvalueFields(params Action /// - /// If true, returns detailed information about score computation as part of a hit. + /// If true, the request returns detailed information about score computation as part of a hit. /// /// public SearchRequestDescriptor Explain(bool? explain = true) @@ -1550,7 +1697,7 @@ public SearchRequestDescriptor Ext(Func /// - /// Array of wildcard (*) patterns. + /// An array of wildcard (*) field patterns. /// The request returns values for field names matching these patterns in the hits.fields property of the response. /// /// @@ -1592,8 +1739,7 @@ public SearchRequestDescriptor Fields(params Action /// - /// Starting document offset. - /// Needs to be non-negative. + /// The starting document offset, which must be non-negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -1635,7 +1781,10 @@ public SearchRequestDescriptor Highlight(Action /// - /// Boosts the _score of documents from specified indices. + /// Boost the _score of documents from specified indices. + /// The boost value is the factor by which scores are multiplied. + /// A boost value greater than 1.0 increases the score. + /// A boost value between 0 and 1.0 decreases the score. /// /// public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) @@ -1646,7 +1795,7 @@ public SearchRequestDescriptor IndicesBoost(ICollection /// - /// Defines the approximate kNN search to run. + /// The approximate kNN search to run. /// /// public SearchRequestDescriptor Knn(ICollection? knn) @@ -1687,7 +1836,7 @@ public SearchRequestDescriptor Knn(params Action /// - /// Minimum _score for matching documents. + /// The minimum _score for matching documents. /// Documents with a lower _score are not included in the search results. /// /// @@ -1699,7 +1848,7 @@ public SearchRequestDescriptor MinScore(double? minScore) /// /// - /// Limits the search to a point in time (PIT). + /// Limit the search to a point in time (PIT). /// If you provide a PIT, you cannot specify an <index> in the request path. /// /// @@ -1772,7 +1921,7 @@ public SearchRequestDescriptor Profile(bool? profile = true) /// /// - /// Defines the search definition using the Query DSL. + /// The search definition using the Query DSL. /// /// public SearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -1801,7 +1950,7 @@ public SearchRequestDescriptor Query(Action /// - /// Defines the Reciprocal Rank Fusion (RRF) to use. + /// The Reciprocal Rank Fusion (RRF) to use. /// /// public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Rank? rank) @@ -1871,7 +2020,8 @@ public SearchRequestDescriptor Rescore(params Action /// - /// A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. + /// A retriever is a specification to describe top documents returned from a search. + /// A retriever replaces other elements of the search API that also return top documents such as query and knn. /// /// public SearchRequestDescriptor Retriever(Elastic.Clients.Elasticsearch.Retriever? retriever) @@ -1900,7 +2050,7 @@ public SearchRequestDescriptor Retriever(Action /// - /// Defines one or more runtime fields in the search request. + /// One or more runtime fields in the search request. /// These fields take precedence over mapped fields with the same name. /// /// @@ -1934,7 +2084,7 @@ public SearchRequestDescriptor SearchAfter(ICollection /// - /// If true, returns sequence number and primary term of the last modification of each hit. + /// If true, the request returns sequence number and primary term of the last modification of each hit. /// /// public SearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) @@ -1945,9 +2095,9 @@ public SearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTer /// /// - /// The number of hits to return. + /// The number of hits to return, which must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. + /// To page through more hits, use the search_after property. /// /// public SearchRequestDescriptor Size(int? size) @@ -1958,7 +2108,7 @@ public SearchRequestDescriptor Size(int? size) /// /// - /// Can be used to split a scrolled search into multiple slices that can be consumed independently. + /// Split a scrolled search into multiple slices that can be consumed independently. /// /// public SearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) @@ -2028,8 +2178,10 @@ public SearchRequestDescriptor Sort(params Action /// - /// Indicates which source fields are returned for matching documents. - /// These fields are returned in the hits._source property of the search response. + /// The source fields that are returned for matching documents. + /// These fields are returned in the hits._source property of the search response. + /// If the stored_fields property is specified, the _source property defaults to false. + /// Otherwise, it defaults to true. /// /// public SearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Search.SourceConfig? source) @@ -2040,7 +2192,7 @@ public SearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.C /// /// - /// Stats groups to associate with the search. + /// The stats groups to associate with the search. /// Each group maintains a statistics aggregation for its associated searches. /// You can retrieve these stats using the indices stats API. /// @@ -2053,9 +2205,9 @@ public SearchRequestDescriptor Stats(ICollection? stats) /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source property defaults to false. /// You can pass _source: true to return both source fields and stored fields in the search response. /// /// @@ -2096,13 +2248,17 @@ public SearchRequestDescriptor Suggest(Action /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. + /// + /// + /// IMPORTANT: Use with caution. + /// Elasticsearch applies this property to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + /// Avoid specifying this property for requests that target data streams with backing indices across multiple data tiers. + /// + /// /// If set to 0 (default), the query does not terminate early. /// /// @@ -2114,7 +2270,7 @@ public SearchRequestDescriptor TerminateAfter(long? terminateAfter) /// /// - /// Specifies the period of time to wait for a response from each shard. + /// The period of time to wait for a response from each shard. /// If no response is received before the timeout expires, the request fails and returns an error. /// Defaults to no timeout. /// @@ -2127,7 +2283,7 @@ public SearchRequestDescriptor Timeout(string? timeout) /// /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. + /// If true, calculate and return document scores, even if the scores are not used for sorting. /// /// public SearchRequestDescriptor TrackScores(bool? trackScores = true) @@ -2151,7 +2307,7 @@ public SearchRequestDescriptor TrackTotalHits(Elastic.Clients.Elastic /// /// - /// If true, returns document version as part of a hit. + /// If true, the request returns the document version as part of a hit. /// /// public SearchRequestDescriptor Version(bool? version = true) @@ -2589,6 +2745,26 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// You can provide search queries using the q query string parameter or the request body. /// If both are specified, only the query parameter is used. /// +/// +/// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. +/// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. +/// +/// +/// Search slicing +/// +/// +/// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. +/// By default the splitting is done first on the shards, then locally on each shard. +/// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. +/// +/// +/// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. +/// +/// +/// IMPORTANT: The same point-in-time ID should be used for all slices. +/// If different PIT IDs are used, slices can overlap and miss documents. +/// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. +/// /// public sealed partial class SearchRequestDescriptor : RequestDescriptor { @@ -2620,10 +2796,10 @@ public SearchRequestDescriptor() public SearchRequestDescriptor Df(string? df) => Qs("df", df); public SearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchRequestDescriptor ForceSyntheticSource(bool? forceSyntheticSource = true) => Qs("force_synthetic_source", forceSyntheticSource); - public SearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); public SearchRequestDescriptor MaxConcurrentShardRequests(long? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); + public SearchRequestDescriptor MinCompatibleShardNode(string? minCompatibleShardNode) => Qs("min_compatible_shard_node", minCompatibleShardNode); public SearchRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchRequestDescriptor PreFilterShardSize(long? preFilterShardSize) => Qs("pre_filter_shard_size", preFilterShardSize); public SearchRequestDescriptor QueryLuceneSyntax(string? queryLuceneSyntax) => Qs("q", queryLuceneSyntax); @@ -2756,7 +2932,7 @@ public SearchRequestDescriptor Collapse(Action /// - /// Array of wildcard (*) patterns. + /// An array of wildcard (*) field patterns. /// The request returns doc values for field names matching these patterns in the hits.fields property of the response. /// /// @@ -2798,7 +2974,7 @@ public SearchRequestDescriptor DocvalueFields(params Action /// - /// If true, returns detailed information about score computation as part of a hit. + /// If true, the request returns detailed information about score computation as part of a hit. /// /// public SearchRequestDescriptor Explain(bool? explain = true) @@ -2820,7 +2996,7 @@ public SearchRequestDescriptor Ext(Func, Fluent /// /// - /// Array of wildcard (*) patterns. + /// An array of wildcard (*) field patterns. /// The request returns values for field names matching these patterns in the hits.fields property of the response. /// /// @@ -2862,8 +3038,7 @@ public SearchRequestDescriptor Fields(params Action /// - /// Starting document offset. - /// Needs to be non-negative. + /// The starting document offset, which must be non-negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -2905,7 +3080,10 @@ public SearchRequestDescriptor Highlight(Action /// - /// Boosts the _score of documents from specified indices. + /// Boost the _score of documents from specified indices. + /// The boost value is the factor by which scores are multiplied. + /// A boost value greater than 1.0 increases the score. + /// A boost value between 0 and 1.0 decreases the score. /// /// public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) @@ -2916,7 +3094,7 @@ public SearchRequestDescriptor IndicesBoost(ICollection /// - /// Defines the approximate kNN search to run. + /// The approximate kNN search to run. /// /// public SearchRequestDescriptor Knn(ICollection? knn) @@ -2957,7 +3135,7 @@ public SearchRequestDescriptor Knn(params Action /// - /// Minimum _score for matching documents. + /// The minimum _score for matching documents. /// Documents with a lower _score are not included in the search results. /// /// @@ -2969,7 +3147,7 @@ public SearchRequestDescriptor MinScore(double? minScore) /// /// - /// Limits the search to a point in time (PIT). + /// Limit the search to a point in time (PIT). /// If you provide a PIT, you cannot specify an <index> in the request path. /// /// @@ -3042,7 +3220,7 @@ public SearchRequestDescriptor Profile(bool? profile = true) /// /// - /// Defines the search definition using the Query DSL. + /// The search definition using the Query DSL. /// /// public SearchRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -3071,7 +3249,7 @@ public SearchRequestDescriptor Query(Action /// - /// Defines the Reciprocal Rank Fusion (RRF) to use. + /// The Reciprocal Rank Fusion (RRF) to use. /// /// public SearchRequestDescriptor Rank(Elastic.Clients.Elasticsearch.Rank? rank) @@ -3141,7 +3319,8 @@ public SearchRequestDescriptor Rescore(params Action /// - /// A retriever is a specification to describe top documents returned from a search. A retriever replaces other elements of the search API that also return top documents such as query and knn. + /// A retriever is a specification to describe top documents returned from a search. + /// A retriever replaces other elements of the search API that also return top documents such as query and knn. /// /// public SearchRequestDescriptor Retriever(Elastic.Clients.Elasticsearch.Retriever? retriever) @@ -3170,7 +3349,7 @@ public SearchRequestDescriptor Retriever(Action /// - /// Defines one or more runtime fields in the search request. + /// One or more runtime fields in the search request. /// These fields take precedence over mapped fields with the same name. /// /// @@ -3204,7 +3383,7 @@ public SearchRequestDescriptor SearchAfter(ICollection /// - /// If true, returns sequence number and primary term of the last modification of each hit. + /// If true, the request returns sequence number and primary term of the last modification of each hit. /// /// public SearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) @@ -3215,9 +3394,9 @@ public SearchRequestDescriptor SeqNoPrimaryTerm(bool? seqNoPrimaryTerm = true) /// /// - /// The number of hits to return. + /// The number of hits to return, which must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. - /// To page through more hits, use the search_after parameter. + /// To page through more hits, use the search_after property. /// /// public SearchRequestDescriptor Size(int? size) @@ -3228,7 +3407,7 @@ public SearchRequestDescriptor Size(int? size) /// /// - /// Can be used to split a scrolled search into multiple slices that can be consumed independently. + /// Split a scrolled search into multiple slices that can be consumed independently. /// /// public SearchRequestDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) @@ -3298,8 +3477,10 @@ public SearchRequestDescriptor Sort(params Action /// - /// Indicates which source fields are returned for matching documents. - /// These fields are returned in the hits._source property of the search response. + /// The source fields that are returned for matching documents. + /// These fields are returned in the hits._source property of the search response. + /// If the stored_fields property is specified, the _source property defaults to false. + /// Otherwise, it defaults to true. /// /// public SearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Search.SourceConfig? source) @@ -3310,7 +3491,7 @@ public SearchRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Search. /// /// - /// Stats groups to associate with the search. + /// The stats groups to associate with the search. /// Each group maintains a statistics aggregation for its associated searches. /// You can retrieve these stats using the indices stats API. /// @@ -3323,9 +3504,9 @@ public SearchRequestDescriptor Stats(ICollection? stats) /// /// - /// List of stored fields to return as part of a hit. + /// A comma-separated list of stored fields to return as part of a hit. /// If no fields are specified, no stored fields are included in the response. - /// If this field is specified, the _source parameter defaults to false. + /// If this field is specified, the _source property defaults to false. /// You can pass _source: true to return both source fields and stored fields in the search response. /// /// @@ -3366,13 +3547,17 @@ public SearchRequestDescriptor Suggest(Action /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. - /// Use with caution. - /// Elasticsearch applies this parameter to each shard handling the request. + /// + /// + /// IMPORTANT: Use with caution. + /// Elasticsearch applies this property to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. - /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. + /// Avoid specifying this property for requests that target data streams with backing indices across multiple data tiers. + /// + /// /// If set to 0 (default), the query does not terminate early. /// /// @@ -3384,7 +3569,7 @@ public SearchRequestDescriptor TerminateAfter(long? terminateAfter) /// /// - /// Specifies the period of time to wait for a response from each shard. + /// The period of time to wait for a response from each shard. /// If no response is received before the timeout expires, the request fails and returns an error. /// Defaults to no timeout. /// @@ -3397,7 +3582,7 @@ public SearchRequestDescriptor Timeout(string? timeout) /// /// - /// If true, calculate and return document scores, even if the scores are not used for sorting. + /// If true, calculate and return document scores, even if the scores are not used for sorting. /// /// public SearchRequestDescriptor TrackScores(bool? trackScores = true) @@ -3421,7 +3606,7 @@ public SearchRequestDescriptor TrackTotalHits(Elastic.Clients.Elasticsearch.Core /// /// - /// If true, returns document version as part of a hit. + /// If true, the request returns the document version as part of a hit. /// /// public SearchRequestDescriptor Version(bool? version = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs index 2d2eba622c5..bb1afb949ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchResponse.g.cs @@ -34,6 +34,12 @@ public sealed partial class SearchResponse : ElasticsearchResponse public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; init; } [JsonInclude, JsonPropertyName("fields")] public IReadOnlyDictionary? Fields { get; init; } + + /// + /// + /// The returned documents and metadata. + /// + /// [JsonInclude, JsonPropertyName("hits")] public Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; init; } [JsonInclude, JsonPropertyName("max_score")] @@ -44,16 +50,81 @@ public sealed partial class SearchResponse : ElasticsearchResponse public string? PitId { get; init; } [JsonInclude, JsonPropertyName("profile")] public Elastic.Clients.Elasticsearch.Core.Search.Profile? Profile { get; init; } + + /// + /// + /// The identifier for the search and its search context. + /// You can use this scroll ID with the scroll API to retrieve the next batch of search results for the request. + /// This property is returned only if the scroll query parameter is specified in the request. + /// + /// [JsonInclude, JsonPropertyName("_scroll_id")] public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; init; } + + /// + /// + /// A count of shards used for the request. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } [JsonInclude, JsonPropertyName("suggest")] public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; init; } [JsonInclude, JsonPropertyName("terminated_early")] public bool? TerminatedEarly { get; init; } + + /// + /// + /// If true, the request timed out before completion; returned results may be partial or empty. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool TimedOut { get; init; } + + /// + /// + /// The number of milliseconds it took Elasticsearch to run the request. + /// This value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response. + /// It includes: + /// + /// + /// + /// + /// Communication time between the coordinating node and data nodes + /// + /// + /// + /// + /// Time the request spends in the search thread pool, queued for execution + /// + /// + /// + /// + /// Actual run time + /// + /// + /// + /// + /// It does not include: + /// + /// + /// + /// + /// Time needed to send the request to Elasticsearch + /// + /// + /// + /// + /// Time needed to serialize the JSON response + /// + /// + /// + /// + /// Time needed to send the response to a client + /// + /// + /// + /// [JsonInclude, JsonPropertyName("took")] public long Took { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index 9e3baa8588e..ca5f0caf3ea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -67,15 +67,15 @@ public sealed partial class SearchShardsRequestParameters : RequestParameters /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } @@ -88,7 +88,10 @@ public sealed partial class SearchShardsRequestParameters : RequestParameters /// /// Get the indices and shards that a search request would be run against. /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. -/// When filtered aliases are used, the filter is returned as part of the indices section. +/// When filtered aliases are used, the filter is returned as part of the indices section. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// /// public sealed partial class SearchShardsRequest : PlainRequest @@ -148,8 +151,8 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -157,7 +160,7 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -171,7 +174,10 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas /// /// Get the indices and shards that a search request would be run against. /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. -/// When filtered aliases are used, the filter is returned as part of the indices section. +/// When filtered aliases are used, the filter is returned as part of the indices section. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// /// public sealed partial class SearchShardsRequestDescriptor : RequestDescriptor, SearchShardsRequestParameters> @@ -219,7 +225,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Get the indices and shards that a search request would be run against. /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. -/// When filtered aliases are used, the filter is returned as part of the indices section. +/// When filtered aliases are used, the filter is returned as part of the indices section. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// /// public sealed partial class SearchShardsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index 79f27aa0434..e72ff281349 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -50,7 +50,7 @@ public sealed partial class SearchTemplateRequestParameters : RequestParameters /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. /// Supports comma-separated values, such as open,hidden. /// Valid values are: all, open, closed, hidden, none. @@ -58,13 +58,6 @@ public sealed partial class SearchTemplateRequestParameters : RequestParameters /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - /// - /// - /// If true, specified concrete, expanded, or aliased indices are not included in the response when throttled. - /// - /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - /// /// /// If false, the request returns an error if it targets a missing or closed index. @@ -74,22 +67,23 @@ public sealed partial class SearchTemplateRequestParameters : RequestParameters /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// If true, hits.total are rendered as an integer in the response. + /// If true, hits.total is rendered as an integer in the response. + /// If false, it is rendered as an object. /// /// public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } @@ -160,7 +154,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. /// Supports comma-separated values, such as open,hidden. /// Valid values are: all, open, closed, hidden, none. @@ -169,14 +163,6 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b [JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } - /// - /// - /// If true, specified concrete, expanded, or aliased indices are not included in the response when throttled. - /// - /// - [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } - /// /// /// If false, the request returns an error if it targets a missing or closed index. @@ -187,8 +173,8 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -196,7 +182,8 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// - /// If true, hits.total are rendered as an integer in the response. + /// If true, hits.total is rendered as an integer in the response. + /// If false, it is rendered as an object. /// /// [JsonIgnore] @@ -204,7 +191,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -238,6 +225,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// /// If true, returns detailed information about score calculation as part of each hit. + /// If you specify both this and the explain query parameter, the API uses only the query parameter. /// /// [JsonInclude, JsonPropertyName("explain")] @@ -245,7 +233,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// - /// ID of the search template to use. If no source is specified, + /// The ID of the search template to use. If no source is specified, /// this parameter is required. /// /// @@ -273,7 +261,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b /// /// /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this + /// request body. It also supports Mustache variables. If no id is specified, this /// parameter is required. /// /// @@ -309,7 +297,6 @@ public SearchTemplateRequestDescriptor() public SearchTemplateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); public SearchTemplateRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchTemplateRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SearchTemplateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchTemplateRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); @@ -333,6 +320,7 @@ public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasti /// /// /// If true, returns detailed information about score calculation as part of each hit. + /// If you specify both this and the explain query parameter, the API uses only the query parameter. /// /// public SearchTemplateRequestDescriptor Explain(bool? explain = true) @@ -343,7 +331,7 @@ public SearchTemplateRequestDescriptor Explain(bool? explain = true) /// /// - /// ID of the search template to use. If no source is specified, + /// The ID of the search template to use. If no source is specified, /// this parameter is required. /// /// @@ -380,7 +368,7 @@ public SearchTemplateRequestDescriptor Profile(bool? profile = true) /// /// /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this + /// request body. It also supports Mustache variables. If no id is specified, this /// parameter is required. /// /// @@ -455,7 +443,6 @@ public SearchTemplateRequestDescriptor() public SearchTemplateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); public SearchTemplateRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public SearchTemplateRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SearchTemplateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchTemplateRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); @@ -479,6 +466,7 @@ public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Ind /// /// /// If true, returns detailed information about score calculation as part of each hit. + /// If you specify both this and the explain query parameter, the API uses only the query parameter. /// /// public SearchTemplateRequestDescriptor Explain(bool? explain = true) @@ -489,7 +477,7 @@ public SearchTemplateRequestDescriptor Explain(bool? explain = true) /// /// - /// ID of the search template to use. If no source is specified, + /// The ID of the search template to use. If no source is specified, /// this parameter is required. /// /// @@ -526,7 +514,7 @@ public SearchTemplateRequestDescriptor Profile(bool? profile = true) /// /// /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this + /// request body. It also supports Mustache variables. If no id is specified, this /// parameter is required. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs index fd393b4da9f..1a5e655ea4c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/MountRequest.g.cs @@ -34,21 +34,23 @@ public sealed partial class MountRequestParameters : RequestParameters { /// /// - /// Explicit operation timeout for connection to master node + /// The period to wait for the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Selects the kind of local storage used to accelerate searches. Experimental, and defaults to full_copy + /// The mount option for the searchable snapshot index. /// /// public string? Storage { get => Q("storage"); set => Q("storage", value); } /// /// - /// Should this request wait until the operation has completed before returning + /// If true, the request blocks until the operation is complete. /// /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -78,7 +80,9 @@ public MountRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clien /// /// - /// Explicit operation timeout for connection to master node + /// The period to wait for the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// [JsonIgnore] @@ -86,7 +90,7 @@ public MountRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clien /// /// - /// Selects the kind of local storage used to accelerate searches. Experimental, and defaults to full_copy + /// The mount option for the searchable snapshot index. /// /// [JsonIgnore] @@ -94,17 +98,42 @@ public MountRequest(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clien /// /// - /// Should this request wait until the operation has completed before returning + /// If true, the request blocks until the operation is complete. /// /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// + /// The names of settings that should be removed from the index when it is mounted. + /// + /// [JsonInclude, JsonPropertyName("ignore_index_settings")] public ICollection? IgnoreIndexSettings { get; set; } + + /// + /// + /// The name of the index contained in the snapshot whose data is to be mounted. + /// If no renamed_index is specified, this name will also be used to create the new index. + /// + /// [JsonInclude, JsonPropertyName("index")] public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + + /// + /// + /// The settings that should be added to the index when it is mounted. + /// + /// [JsonInclude, JsonPropertyName("index_settings")] public IDictionary? IndexSettings { get; set; } + + /// + /// + /// The name of the index that will be created. + /// + /// [JsonInclude, JsonPropertyName("renamed_index")] public Elastic.Clients.Elasticsearch.IndexName? RenamedIndex { get; set; } } @@ -154,24 +183,45 @@ public MountRequestDescriptor Snapshot(Elastic.Clients.Elasticsearch.Name snapsh private IDictionary? IndexSettingsValue { get; set; } private Elastic.Clients.Elasticsearch.IndexName? RenamedIndexValue { get; set; } + /// + /// + /// The names of settings that should be removed from the index when it is mounted. + /// + /// public MountRequestDescriptor IgnoreIndexSettings(ICollection? ignoreIndexSettings) { IgnoreIndexSettingsValue = ignoreIndexSettings; return Self; } + /// + /// + /// The name of the index contained in the snapshot whose data is to be mounted. + /// If no renamed_index is specified, this name will also be used to create the new index. + /// + /// public MountRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { IndexValue = index; return Self; } + /// + /// + /// The settings that should be added to the index when it is mounted. + /// + /// public MountRequestDescriptor IndexSettings(Func, FluentDictionary> selector) { IndexSettingsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// + /// The name of the index that will be created. + /// + /// public MountRequestDescriptor RenamedIndex(Elastic.Clients.Elasticsearch.IndexName? renamedIndex) { RenamedIndexValue = renamedIndex; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs index 6efb0a6afae..9ffd640adb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ActivateUserProfileRequest.g.cs @@ -41,6 +41,20 @@ public sealed partial class ActivateUserProfileRequestParameters : RequestParame /// /// Create or update a user profile on behalf of another user. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. +/// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. +/// +/// +/// When updating a profile document, the API enables the document if it was disabled. +/// Any updates do not change existing content for either the labels or data fields. +/// /// public sealed partial class ActivateUserProfileRequest : PlainRequest { @@ -52,12 +66,42 @@ public sealed partial class ActivateUserProfileRequest : PlainRequest "security.activate_user_profile"; + /// + /// + /// The user's Elasticsearch access token or JWT. + /// Both access and id JWT token types are supported and they depend on the underlying JWT realm configuration. + /// If you specify the access_token grant type, this parameter is required. + /// It is not valid with other grant types. + /// + /// [JsonInclude, JsonPropertyName("access_token")] public string? AccessToken { get; set; } + + /// + /// + /// The type of grant. + /// + /// [JsonInclude, JsonPropertyName("grant_type")] public Elastic.Clients.Elasticsearch.Security.GrantType GrantType { get; set; } + + /// + /// + /// The user's password. + /// If you specify the password grant type, this parameter is required. + /// It is not valid with other grant types. + /// + /// [JsonInclude, JsonPropertyName("password")] public string? Password { get; set; } + + /// + /// + /// The username that identifies the user. + /// If you specify the password grant type, this parameter is required. + /// It is not valid with other grant types. + /// + /// [JsonInclude, JsonPropertyName("username")] public string? Username { get; set; } } @@ -69,6 +113,20 @@ public sealed partial class ActivateUserProfileRequest : PlainRequest /// Create or update a user profile on behalf of another user. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. +/// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. +/// +/// +/// When updating a profile document, the API enables the document if it was disabled. +/// Any updates do not change existing content for either the labels or data fields. +/// /// public sealed partial class ActivateUserProfileRequestDescriptor : RequestDescriptor { @@ -91,24 +149,51 @@ public ActivateUserProfileRequestDescriptor() private string? PasswordValue { get; set; } private string? UsernameValue { get; set; } + /// + /// + /// The user's Elasticsearch access token or JWT. + /// Both access and id JWT token types are supported and they depend on the underlying JWT realm configuration. + /// If you specify the access_token grant type, this parameter is required. + /// It is not valid with other grant types. + /// + /// public ActivateUserProfileRequestDescriptor AccessToken(string? accessToken) { AccessTokenValue = accessToken; return Self; } + /// + /// + /// The type of grant. + /// + /// public ActivateUserProfileRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Security.GrantType grantType) { GrantTypeValue = grantType; return Self; } + /// + /// + /// The user's password. + /// If you specify the password grant type, this parameter is required. + /// It is not valid with other grant types. + /// + /// public ActivateUserProfileRequestDescriptor Password(string? password) { PasswordValue = password; return Self; } + /// + /// + /// The username that identifies the user. + /// If you specify the password grant type, this parameter is required. + /// It is not valid with other grant types. + /// + /// public ActivateUserProfileRequestDescriptor Username(string? username) { UsernameValue = username; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs new file mode 100644 index 00000000000..c0d3ded7557 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysRequest.g.cs @@ -0,0 +1,371 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class BulkUpdateApiKeysRequestParameters : RequestParameters +{ +} + +/// +/// +/// Bulk update API keys. +/// Update the attributes for multiple API keys. +/// +/// +/// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. +/// +/// +/// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. +/// +/// +/// It is not possible to update expired or invalidated API keys. +/// +/// +/// This API supports updates to API key access scope, metadata and expiration. +/// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. +/// The snapshot of the owner's permissions is updated automatically on every call. +/// +/// +/// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. +/// +/// +/// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. +/// +/// +public sealed partial class BulkUpdateApiKeysRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkUpdateApiKeys; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.bulk_update_api_keys"; + + /// + /// + /// Expiration time for the API keys. + /// By default, API keys never expire. + /// This property can be omitted to leave the value unchanged. + /// + /// + [JsonInclude, JsonPropertyName("expiration")] + public Elastic.Clients.Elasticsearch.Duration? Expiration { get; set; } + + /// + /// + /// The API key identifiers. + /// + /// + [JsonInclude, JsonPropertyName("ids")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Ids { get; set; } + + /// + /// + /// Arbitrary nested metadata to associate with the API keys. + /// Within the metadata object, top-level keys beginning with an underscore (_) are reserved for system usage. + /// Any information specified with this parameter fully replaces metadata previously associated with the API key. + /// + /// + [JsonInclude, JsonPropertyName("metadata")] + public IDictionary? Metadata { get; set; } + + /// + /// + /// The role descriptors to assign to the API keys. + /// An API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user. + /// You can assign new privileges by specifying them in this parameter. + /// To remove assigned privileges, supply the role_descriptors parameter as an empty object {}. + /// If an API key has no assigned privileges, it inherits the owner user's full permissions. + /// The snapshot of the owner's permissions is always updated, whether you supply the role_descriptors parameter. + /// The structure of a role descriptor is the same as the request for the create API keys API. + /// + /// + [JsonInclude, JsonPropertyName("role_descriptors")] + public IDictionary? RoleDescriptors { get; set; } +} + +/// +/// +/// Bulk update API keys. +/// Update the attributes for multiple API keys. +/// +/// +/// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. +/// +/// +/// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. +/// +/// +/// It is not possible to update expired or invalidated API keys. +/// +/// +/// This API supports updates to API key access scope, metadata and expiration. +/// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. +/// The snapshot of the owner's permissions is updated automatically on every call. +/// +/// +/// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. +/// +/// +/// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. +/// +/// +public sealed partial class BulkUpdateApiKeysRequestDescriptor : RequestDescriptor, BulkUpdateApiKeysRequestParameters> +{ + internal BulkUpdateApiKeysRequestDescriptor(Action> configure) => configure.Invoke(this); + + public BulkUpdateApiKeysRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkUpdateApiKeys; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.bulk_update_api_keys"; + + private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } + private ICollection IdsValue { get; set; } + private IDictionary? MetadataValue { get; set; } + private IDictionary> RoleDescriptorsValue { get; set; } + + /// + /// + /// Expiration time for the API keys. + /// By default, API keys never expire. + /// This property can be omitted to leave the value unchanged. + /// + /// + public BulkUpdateApiKeysRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) + { + ExpirationValue = expiration; + return Self; + } + + /// + /// + /// The API key identifiers. + /// + /// + public BulkUpdateApiKeysRequestDescriptor Ids(ICollection ids) + { + IdsValue = ids; + return Self; + } + + /// + /// + /// Arbitrary nested metadata to associate with the API keys. + /// Within the metadata object, top-level keys beginning with an underscore (_) are reserved for system usage. + /// Any information specified with this parameter fully replaces metadata previously associated with the API key. + /// + /// + public BulkUpdateApiKeysRequestDescriptor Metadata(Func, FluentDictionary> selector) + { + MetadataValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// The role descriptors to assign to the API keys. + /// An API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user. + /// You can assign new privileges by specifying them in this parameter. + /// To remove assigned privileges, supply the role_descriptors parameter as an empty object {}. + /// If an API key has no assigned privileges, it inherits the owner user's full permissions. + /// The snapshot of the owner's permissions is always updated, whether you supply the role_descriptors parameter. + /// The structure of a role descriptor is the same as the request for the create API keys API. + /// + /// + public BulkUpdateApiKeysRequestDescriptor RoleDescriptors(Func>, FluentDescriptorDictionary>> selector) + { + RoleDescriptorsValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExpirationValue is not null) + { + writer.WritePropertyName("expiration"); + JsonSerializer.Serialize(writer, ExpirationValue, options); + } + + writer.WritePropertyName("ids"); + SingleOrManySerializationHelper.Serialize(IdsValue, writer, options); + if (MetadataValue is not null) + { + writer.WritePropertyName("metadata"); + JsonSerializer.Serialize(writer, MetadataValue, options); + } + + if (RoleDescriptorsValue is not null) + { + writer.WritePropertyName("role_descriptors"); + JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// +/// Bulk update API keys. +/// Update the attributes for multiple API keys. +/// +/// +/// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. +/// +/// +/// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. +/// +/// +/// It is not possible to update expired or invalidated API keys. +/// +/// +/// This API supports updates to API key access scope, metadata and expiration. +/// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. +/// The snapshot of the owner's permissions is updated automatically on every call. +/// +/// +/// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. +/// +/// +/// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. +/// +/// +public sealed partial class BulkUpdateApiKeysRequestDescriptor : RequestDescriptor +{ + internal BulkUpdateApiKeysRequestDescriptor(Action configure) => configure.Invoke(this); + + public BulkUpdateApiKeysRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityBulkUpdateApiKeys; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.bulk_update_api_keys"; + + private Elastic.Clients.Elasticsearch.Duration? ExpirationValue { get; set; } + private ICollection IdsValue { get; set; } + private IDictionary? MetadataValue { get; set; } + private IDictionary RoleDescriptorsValue { get; set; } + + /// + /// + /// Expiration time for the API keys. + /// By default, API keys never expire. + /// This property can be omitted to leave the value unchanged. + /// + /// + public BulkUpdateApiKeysRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) + { + ExpirationValue = expiration; + return Self; + } + + /// + /// + /// The API key identifiers. + /// + /// + public BulkUpdateApiKeysRequestDescriptor Ids(ICollection ids) + { + IdsValue = ids; + return Self; + } + + /// + /// + /// Arbitrary nested metadata to associate with the API keys. + /// Within the metadata object, top-level keys beginning with an underscore (_) are reserved for system usage. + /// Any information specified with this parameter fully replaces metadata previously associated with the API key. + /// + /// + public BulkUpdateApiKeysRequestDescriptor Metadata(Func, FluentDictionary> selector) + { + MetadataValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// The role descriptors to assign to the API keys. + /// An API key's effective permissions are an intersection of its assigned privileges and the point-in-time snapshot of permissions of the owner user. + /// You can assign new privileges by specifying them in this parameter. + /// To remove assigned privileges, supply the role_descriptors parameter as an empty object {}. + /// If an API key has no assigned privileges, it inherits the owner user's full permissions. + /// The snapshot of the owner's permissions is always updated, whether you supply the role_descriptors parameter. + /// The structure of a role descriptor is the same as the request for the create API keys API. + /// + /// + public BulkUpdateApiKeysRequestDescriptor RoleDescriptors(Func, FluentDescriptorDictionary> selector) + { + RoleDescriptorsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExpirationValue is not null) + { + writer.WritePropertyName("expiration"); + JsonSerializer.Serialize(writer, ExpirationValue, options); + } + + writer.WritePropertyName("ids"); + SingleOrManySerializationHelper.Serialize(IdsValue, writer, options); + if (MetadataValue is not null) + { + writer.WritePropertyName("metadata"); + JsonSerializer.Serialize(writer, MetadataValue, options); + } + + if (RoleDescriptorsValue is not null) + { + writer.WritePropertyName("role_descriptors"); + JsonSerializer.Serialize(writer, RoleDescriptorsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs new file mode 100644 index 00000000000..2cd808cde1d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/BulkUpdateApiKeysResponse.g.cs @@ -0,0 +1,37 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class BulkUpdateApiKeysResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("errors")] + public Elastic.Clients.Elasticsearch.Security.BulkError? Errors { get; init; } + [JsonInclude, JsonPropertyName("noops")] + public IReadOnlyCollection Noops { get; init; } + [JsonInclude, JsonPropertyName("updated")] + public IReadOnlyCollection Updated { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs index 0687c5d5d41..f5be66489ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedRealmsRequest.g.cs @@ -34,7 +34,8 @@ public sealed partial class ClearCachedRealmsRequestParameters : RequestParamete { /// /// - /// Comma-separated list of usernames to clear from the cache + /// A comma-separated list of the users to clear from the cache. + /// If you do not specify this parameter, the API evicts all users from the user cache. /// /// public ICollection? Usernames { get => Q?>("usernames"); set => Q("usernames", value); } @@ -45,7 +46,13 @@ public sealed partial class ClearCachedRealmsRequestParameters : RequestParamete /// Clear the user cache. /// /// -/// Evict users from the user cache. You can completely clear the cache or evict specific users. +/// Evict users from the user cache. +/// You can completely clear the cache or evict specific users. +/// +/// +/// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. +/// There are realm settings that you can use to configure the user cache. +/// For more information, refer to the documentation about controlling the user cache. /// /// public sealed partial class ClearCachedRealmsRequest : PlainRequest @@ -64,7 +71,8 @@ public ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Names realms) : ba /// /// - /// Comma-separated list of usernames to clear from the cache + /// A comma-separated list of the users to clear from the cache. + /// If you do not specify this parameter, the API evicts all users from the user cache. /// /// [JsonIgnore] @@ -76,7 +84,13 @@ public ClearCachedRealmsRequest(Elastic.Clients.Elasticsearch.Names realms) : ba /// Clear the user cache. /// /// -/// Evict users from the user cache. You can completely clear the cache or evict specific users. +/// Evict users from the user cache. +/// You can completely clear the cache or evict specific users. +/// +/// +/// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. +/// There are realm settings that you can use to configure the user cache. +/// For more information, refer to the documentation about controlling the user cache. /// /// public sealed partial class ClearCachedRealmsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs index a018b729fd4..9619c6c7428 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/ClearCachedServiceTokensRequest.g.cs @@ -40,6 +40,12 @@ public sealed partial class ClearCachedServiceTokensRequestParameters : RequestP /// /// /// Evict a subset of all entries from the service account token caches. +/// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. +/// This API clears matching entries from both caches. +/// +/// +/// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. +/// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// /// public sealed partial class ClearCachedServiceTokensRequest : PlainRequest @@ -63,6 +69,12 @@ public ClearCachedServiceTokensRequest(string ns, string service, Elastic.Client /// /// /// Evict a subset of all entries from the service account token caches. +/// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. +/// This API clears matching entries from both caches. +/// +/// +/// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. +/// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// /// public sealed partial class ClearCachedServiceTokensRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs index cc79ddf4274..5aea492a048 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateApiKeyRequest.g.cs @@ -46,10 +46,22 @@ public sealed partial class CreateApiKeyRequestParameters : RequestParameters /// /// /// Create an API key for access without requiring basic authentication. +/// +/// +/// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. +/// If you specify privileges, the API returns an error. +/// +/// /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. +/// +/// /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// +/// +/// The API keys are created by the Elasticsearch API key service, which is automatically enabled. +/// To configure or turn off the API key service, refer to API key service setting documentation. +/// /// public sealed partial class CreateApiKeyRequest : PlainRequest { @@ -71,7 +83,8 @@ public sealed partial class CreateApiKeyRequest : PlainRequest /// - /// Expiration time for the API key. By default, API keys never expire. + /// The expiration time for the API key. + /// By default, API keys never expire. /// /// [JsonInclude, JsonPropertyName("expiration")] @@ -87,7 +100,7 @@ public sealed partial class CreateApiKeyRequest : PlainRequest /// - /// Specifies the name for this API key. + /// A name for the API key. /// /// [JsonInclude, JsonPropertyName("name")] @@ -95,7 +108,16 @@ public sealed partial class CreateApiKeyRequest : PlainRequest /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. + /// An array of role descriptors for this API key. + /// When it is not specified or it is an empty array, the API key will have a point in time snapshot of permissions of the authenticated user. + /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the authenticated user's permissions thereby limiting the access scope for API keys. + /// The structure of role descriptor is the same as the request for the create role API. + /// For more details, refer to the create or update roles API. + /// + /// + /// NOTE: Due to the way in which this permission intersection is calculated, it is not possible to create an API key that is a child of another API key, unless the derived key is created without any privileges. + /// In this case, you must explicitly specify a role descriptor with no privileges. + /// The derived API key can be used for authentication; it will not have authority to call Elasticsearch APIs. /// /// [JsonInclude, JsonPropertyName("role_descriptors")] @@ -108,10 +130,22 @@ public sealed partial class CreateApiKeyRequest : PlainRequest /// /// Create an API key for access without requiring basic authentication. +/// +/// +/// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. +/// If you specify privileges, the API returns an error. +/// +/// /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. +/// +/// /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// +/// +/// The API keys are created by the Elasticsearch API key service, which is automatically enabled. +/// To configure or turn off the API key service, refer to API key service setting documentation. +/// /// public sealed partial class CreateApiKeyRequestDescriptor : RequestDescriptor, CreateApiKeyRequestParameters> { @@ -138,7 +172,8 @@ public CreateApiKeyRequestDescriptor() /// /// - /// Expiration time for the API key. By default, API keys never expire. + /// The expiration time for the API key. + /// By default, API keys never expire. /// /// public CreateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) @@ -160,7 +195,7 @@ public CreateApiKeyRequestDescriptor Metadata(Func /// - /// Specifies the name for this API key. + /// A name for the API key. /// /// public CreateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) @@ -171,7 +206,16 @@ public CreateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsear /// /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. + /// An array of role descriptors for this API key. + /// When it is not specified or it is an empty array, the API key will have a point in time snapshot of permissions of the authenticated user. + /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the authenticated user's permissions thereby limiting the access scope for API keys. + /// The structure of role descriptor is the same as the request for the create role API. + /// For more details, refer to the create or update roles API. + /// + /// + /// NOTE: Due to the way in which this permission intersection is calculated, it is not possible to create an API key that is a child of another API key, unless the derived key is created without any privileges. + /// In this case, you must explicitly specify a role descriptor with no privileges. + /// The derived API key can be used for authentication; it will not have authority to call Elasticsearch APIs. /// /// public CreateApiKeyRequestDescriptor RoleDescriptors(Func>, FluentDescriptorDictionary>> selector) @@ -217,10 +261,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Create an API key for access without requiring basic authentication. +/// +/// +/// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. +/// If you specify privileges, the API returns an error. +/// +/// /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. /// If applicable, it also returns expiration information for the API key in milliseconds. +/// +/// /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// +/// +/// The API keys are created by the Elasticsearch API key service, which is automatically enabled. +/// To configure or turn off the API key service, refer to API key service setting documentation. +/// /// public sealed partial class CreateApiKeyRequestDescriptor : RequestDescriptor { @@ -247,7 +303,8 @@ public CreateApiKeyRequestDescriptor() /// /// - /// Expiration time for the API key. By default, API keys never expire. + /// The expiration time for the API key. + /// By default, API keys never expire. /// /// public CreateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) @@ -269,7 +326,7 @@ public CreateApiKeyRequestDescriptor Metadata(Func /// - /// Specifies the name for this API key. + /// A name for the API key. /// /// public CreateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) @@ -280,7 +337,16 @@ public CreateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? na /// /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. + /// An array of role descriptors for this API key. + /// When it is not specified or it is an empty array, the API key will have a point in time snapshot of permissions of the authenticated user. + /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the authenticated user's permissions thereby limiting the access scope for API keys. + /// The structure of role descriptor is the same as the request for the create role API. + /// For more details, refer to the create or update roles API. + /// + /// + /// NOTE: Due to the way in which this permission intersection is calculated, it is not possible to create an API key that is a child of another API key, unless the derived key is created without any privileges. + /// In this case, you must explicitly specify a role descriptor with no privileges. + /// The derived API key can be used for authentication; it will not have authority to call Elasticsearch APIs. /// /// public CreateApiKeyRequestDescriptor RoleDescriptors(Func, FluentDescriptorDictionary> selector) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs index 6b8dd3f4062..7bab67cf459 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CreateServiceTokenRequest.g.cs @@ -47,6 +47,10 @@ public sealed partial class CreateServiceTokenRequestParameters : RequestParamet /// /// Create a service accounts token for access without requiring basic authentication. /// +/// +/// NOTE: Service account tokens never expire. +/// You must actively delete them if they are no longer needed. +/// /// public sealed partial class CreateServiceTokenRequest : PlainRequest { @@ -82,6 +86,10 @@ public CreateServiceTokenRequest(string ns, string service) : base(r => r.Requir /// /// Create a service accounts token for access without requiring basic authentication. /// +/// +/// NOTE: Service account tokens never expire. +/// You must actively delete them if they are no longer needed. +/// /// public sealed partial class CreateServiceTokenRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs new file mode 100644 index 00000000000..c94ab0015e3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiRequest.g.cs @@ -0,0 +1,138 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class DelegatePkiRequestParameters : RequestParameters +{ +} + +/// +/// +/// Delegate PKI authentication. +/// +/// +/// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. +/// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. +/// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. +/// +/// +/// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. +/// +/// +/// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. +/// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. +/// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. +/// +/// +public sealed partial class DelegatePkiRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDelegatePki; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.delegate_pki"; + + /// + /// + /// The X509Certificate chain, which is represented as an ordered string array. + /// Each string in the array is a base64-encoded (Section 4 of RFC4648 - not base64url-encoded) of the certificate's DER encoding. + /// + /// + /// The first element is the target certificate that contains the subject distinguished name that is requesting access. + /// This may be followed by additional certificates; each subsequent certificate is used to certify the previous one. + /// + /// + [JsonInclude, JsonPropertyName("x509_certificate_chain")] + public ICollection X509CertificateChain { get; set; } +} + +/// +/// +/// Delegate PKI authentication. +/// +/// +/// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. +/// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. +/// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. +/// +/// +/// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. +/// +/// +/// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. +/// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. +/// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. +/// +/// +public sealed partial class DelegatePkiRequestDescriptor : RequestDescriptor +{ + internal DelegatePkiRequestDescriptor(Action configure) => configure.Invoke(this); + + public DelegatePkiRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityDelegatePki; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.delegate_pki"; + + private ICollection X509CertificateChainValue { get; set; } + + /// + /// + /// The X509Certificate chain, which is represented as an ordered string array. + /// Each string in the array is a base64-encoded (Section 4 of RFC4648 - not base64url-encoded) of the certificate's DER encoding. + /// + /// + /// The first element is the target certificate that contains the subject distinguished name that is requesting access. + /// This may be followed by additional certificates; each subsequent certificate is used to certify the previous one. + /// + /// + public DelegatePkiRequestDescriptor X509CertificateChain(ICollection x509CertificateChain) + { + X509CertificateChainValue = x509CertificateChain; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("x509_certificate_chain"); + JsonSerializer.Serialize(writer, X509CertificateChainValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs new file mode 100644 index 00000000000..c92c3b2f2ea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DelegatePkiResponse.g.cs @@ -0,0 +1,56 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class DelegatePkiResponse : ElasticsearchResponse +{ + /// + /// + /// An access token associated with the subject distinguished name of the client's certificate. + /// + /// + [JsonInclude, JsonPropertyName("access_token")] + public string AccessToken { get; init; } + [JsonInclude, JsonPropertyName("authentication")] + public Elastic.Clients.Elasticsearch.Security.Authentication? Authentication { get; init; } + + /// + /// + /// The amount of time (in seconds) before the token expires. + /// + /// + [JsonInclude, JsonPropertyName("expires_in")] + public long ExpiresIn { get; init; } + + /// + /// + /// The type of token. + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs index 320489f1431..a90646696de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeletePrivilegesRequest.g.cs @@ -44,6 +44,21 @@ public sealed partial class DeletePrivilegesRequestParameters : RequestParameter /// /// Delete application privileges. /// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The manage_security cluster privilege (or a greater privilege such as all). +/// +/// +/// +/// +/// The "Manage Application Privileges" global privilege for the application being referenced in the request. +/// +/// +/// /// public sealed partial class DeletePrivilegesRequest : PlainRequest { @@ -72,6 +87,21 @@ public DeletePrivilegesRequest(Elastic.Clients.Elasticsearch.Name application, E /// /// Delete application privileges. /// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The manage_security cluster privilege (or a greater privilege such as all). +/// +/// +/// +/// +/// The "Manage Application Privileges" global privilege for the application being referenced in the request. +/// +/// +/// /// public sealed partial class DeletePrivilegesRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs index 2421e540477..a749b8bb662 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingRequest.g.cs @@ -44,6 +44,11 @@ public sealed partial class DeleteRoleMappingRequestParameters : RequestParamete /// /// Delete role mappings. /// +/// +/// Role mappings define which roles are assigned to each user. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. +/// The delete role mappings API cannot remove role mappings that are defined in role mapping files. +/// /// public sealed partial class DeleteRoleMappingRequest : PlainRequest { @@ -72,6 +77,11 @@ public DeleteRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base( /// /// Delete role mappings. /// +/// +/// Role mappings define which roles are assigned to each user. +/// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. +/// The delete role mappings API cannot remove role mappings that are defined in role mapping files. +/// /// public sealed partial class DeleteRoleMappingRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs index ba9829eeecf..f35ccfb53bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleMappingResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class DeleteRoleMappingResponse : ElasticsearchResponse { + /// + /// + /// If the mapping is successfully deleted, found is true. + /// Otherwise, found is false. + /// + /// [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs index fd976f508f4..f968e565be8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class DeleteRoleRequestParameters : RequestParameters /// /// /// Delete roles in the native realm. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The delete roles API cannot remove roles that are defined in roles files. /// /// public sealed partial class DeleteRoleRequest : PlainRequest @@ -77,6 +79,8 @@ public DeleteRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r. /// /// /// Delete roles in the native realm. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The delete roles API cannot remove roles that are defined in roles files. /// /// public sealed partial class DeleteRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs index 8733410e218..6e29da67b58 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteRoleResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class DeleteRoleResponse : ElasticsearchResponse { + /// + /// + /// If the role is successfully deleted, found is true. + /// Otherwise, found is false. + /// + /// [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs index a9ad6329929..f0957cc140a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteServiceTokenResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class DeleteServiceTokenResponse : ElasticsearchResponse { + /// + /// + /// If the service account token is successfully deleted, the request returns {"found": true}. + /// Otherwise, the response will have status code 404 and found is set to false. + /// + /// [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs index 3ccd3bafba1..702edc36c8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DeleteUserResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class DeleteUserResponse : ElasticsearchResponse { + /// + /// + /// If the user is successfully deleted, the request returns {"found": true}. + /// Otherwise, found is set to false. + /// + /// [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs index ee4991e79cf..f7ebc6d77e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserProfileRequest.g.cs @@ -34,9 +34,9 @@ public sealed partial class DisableUserProfileRequestParameters : RequestParamet { /// /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', it does nothing with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -49,6 +49,15 @@ public sealed partial class DisableUserProfileRequestParameters : RequestParamet /// /// Disable user profiles so that they are not visible in user profile searches. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. +/// To re-enable a disabled user profile, use the enable user profile API . +/// /// public sealed partial class DisableUserProfileRequest : PlainRequest { @@ -66,9 +75,9 @@ public DisableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', it does nothing with refreshes. /// /// [JsonIgnore] @@ -82,6 +91,15 @@ public DisableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// Disable user profiles so that they are not visible in user profile searches. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. +/// To re-enable a disabled user profile, use the enable user profile API . +/// /// public sealed partial class DisableUserProfileRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs index e8f286a5a80..f8344afb71d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/DisableUserRequest.g.cs @@ -46,6 +46,8 @@ public sealed partial class DisableUserRequestParameters : RequestParameters /// /// /// Disable users in the native realm. +/// By default, when you create users, they are enabled. +/// You can use this API to revoke a user's access to Elasticsearch. /// /// public sealed partial class DisableUserRequest : PlainRequest @@ -77,6 +79,8 @@ public DisableUserRequest(Elastic.Clients.Elasticsearch.Username username) : bas /// /// /// Disable users in the native realm. +/// By default, when you create users, they are enabled. +/// You can use this API to revoke a user's access to Elasticsearch. /// /// public sealed partial class DisableUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs index 725a5665805..07d530d791a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserProfileRequest.g.cs @@ -35,8 +35,9 @@ public sealed partial class EnableUserProfileRequestParameters : RequestParamete /// /// /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', nothing is done with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -49,6 +50,15 @@ public sealed partial class EnableUserProfileRequestParameters : RequestParamete /// /// Enable user profiles to make them visible in user profile searches. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// When you activate a user profile, it's automatically enabled and visible in user profile searches. +/// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. +/// /// public sealed partial class EnableUserProfileRequest : PlainRequest { @@ -67,8 +77,9 @@ public EnableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', nothing is done with refreshes. /// /// [JsonIgnore] @@ -82,6 +93,15 @@ public EnableUserProfileRequest(string uid) : base(r => r.Required("uid", uid)) /// /// Enable user profiles to make them visible in user profile searches. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// When you activate a user profile, it's automatically enabled and visible in user profile searches. +/// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. +/// /// public sealed partial class EnableUserProfileRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs index 4758880e9f4..87c16d465bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnableUserRequest.g.cs @@ -46,6 +46,7 @@ public sealed partial class EnableUserRequestParameters : RequestParameters /// /// /// Enable users in the native realm. +/// By default, when you create users, they are enabled. /// /// public sealed partial class EnableUserRequest : PlainRequest @@ -77,6 +78,7 @@ public EnableUserRequest(Elastic.Clients.Elasticsearch.Username username) : base /// /// /// Enable users in the native realm. +/// By default, when you create users, they are enabled. /// /// public sealed partial class EnableUserRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs index 51c0a32e140..78485cf7df6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaRequest.g.cs @@ -41,6 +41,10 @@ public sealed partial class EnrollKibanaRequestParameters : RequestParameters /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// +/// +/// NOTE: This API is currently intended for internal use only by Kibana. +/// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. +/// /// public sealed partial class EnrollKibanaRequest : PlainRequest { @@ -60,6 +64,10 @@ public sealed partial class EnrollKibanaRequest : PlainRequest /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// +/// +/// NOTE: This API is currently intended for internal use only by Kibana. +/// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. +/// /// public sealed partial class EnrollKibanaRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs index 79907207140..6e2c48b581e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollKibanaResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class EnrollKibanaResponse : ElasticsearchResponse { + /// + /// + /// The CA certificate used to sign the node certificates that Elasticsearch uses for TLS on the HTTP layer. + /// The certificate is returned as a Base64 encoded string of the ASN.1 DER encoding of the certificate. + /// + /// [JsonInclude, JsonPropertyName("http_ca")] public string HttpCa { get; init; } [JsonInclude, JsonPropertyName("token")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs index 580b4bc0b0c..28c88d40096 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeRequest.g.cs @@ -41,6 +41,10 @@ public sealed partial class EnrollNodeRequestParameters : RequestParameters /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// +/// +/// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. +/// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. +/// /// public sealed partial class EnrollNodeRequest : PlainRequest { @@ -60,6 +64,10 @@ public sealed partial class EnrollNodeRequest : PlainRequest /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// +/// +/// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. +/// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. +/// /// public sealed partial class EnrollNodeRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs index 5d34b09a546..230e2e4cf6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/EnrollNodeResponse.g.cs @@ -28,16 +28,51 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class EnrollNodeResponse : ElasticsearchResponse { + /// + /// + /// The CA certificate that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate. + /// + /// [JsonInclude, JsonPropertyName("http_ca_cert")] public string HttpCaCert { get; init; } + + /// + /// + /// The CA private key that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the key. + /// + /// [JsonInclude, JsonPropertyName("http_ca_key")] public string HttpCaKey { get; init; } + + /// + /// + /// A list of transport addresses in the form of host:port for the nodes that are already members of the cluster. + /// + /// [JsonInclude, JsonPropertyName("nodes_addresses")] public IReadOnlyCollection NodesAddresses { get; init; } + + /// + /// + /// The CA certificate that is used to sign the TLS certificate for the transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate. + /// + /// [JsonInclude, JsonPropertyName("transport_ca_cert")] public string TransportCaCert { get; init; } + + /// + /// + /// The certificate that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate. + /// + /// [JsonInclude, JsonPropertyName("transport_cert")] public string TransportCert { get; init; } + + /// + /// + /// The private key that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the key. + /// + /// [JsonInclude, JsonPropertyName("transport_key")] public string TransportKey { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index 2410a2d7776..1884ff7bccf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -28,10 +28,28 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse { + /// + /// + /// The list of cluster privileges that are understood by this version of Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("cluster")] public IReadOnlyCollection Cluster { get; init; } + + /// + /// + /// The list of index privileges that are understood by this version of Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("index")] - public IReadOnlyCollection Index { get; init; } + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection Indices { get; init; } + + /// + /// + /// The list of remote_cluster privileges that are understood by this version of Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("remote_cluster")] public IReadOnlyCollection RemoteCluster { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs index 54604deb0ad..b336fdc83e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetPrivilegesRequest.g.cs @@ -38,6 +38,21 @@ public sealed partial class GetPrivilegesRequestParameters : RequestParameters /// /// Get application privileges. /// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The read_security cluster privilege (or a greater privilege such as manage_security or all). +/// +/// +/// +/// +/// The "Manage Application Privileges" global privilege for the application being referenced in the request. +/// +/// +/// /// public sealed partial class GetPrivilegesRequest : PlainRequest { @@ -66,6 +81,21 @@ public GetPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? application, Ela /// /// Get application privileges. /// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The read_security cluster privilege (or a greater privilege such as manage_security or all). +/// +/// +/// +/// +/// The "Manage Application Privileges" global privilege for the application being referenced in the request. +/// +/// +/// /// public sealed partial class GetPrivilegesRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs index 9269177ee80..a065e28fd89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetRoleRequest.g.cs @@ -40,6 +40,8 @@ public sealed partial class GetRoleRequestParameters : RequestParameters /// /// /// Get roles in the native realm. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The get roles API cannot retrieve roles that are defined in roles files. /// /// public sealed partial class GetRoleRequest : PlainRequest @@ -67,6 +69,8 @@ public GetRoleRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.O /// /// /// Get roles in the native realm. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The get roles API cannot retrieve roles that are defined in roles files. /// /// public sealed partial class GetRoleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs new file mode 100644 index 00000000000..d86243a72d9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsRequest.g.cs @@ -0,0 +1,129 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class GetSecuritySettingsRequestParameters : RequestParameters +{ + /// + /// + /// Period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get security index settings. +/// +/// +/// Get the user-configurable settings for the security internal index (.security and associated indices). +/// Only a subset of the index settings — those that are user-configurable—will be shown. +/// This includes: +/// +/// +/// +/// +/// index.auto_expand_replicas +/// +/// +/// +/// +/// index.number_of_replicas +/// +/// +/// +/// +public sealed partial class GetSecuritySettingsRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "security.get_settings"; + + /// + /// + /// Period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// +/// Get security index settings. +/// +/// +/// Get the user-configurable settings for the security internal index (.security and associated indices). +/// Only a subset of the index settings — those that are user-configurable—will be shown. +/// This includes: +/// +/// +/// +/// +/// index.auto_expand_replicas +/// +/// +/// +/// +/// index.number_of_replicas +/// +/// +/// +/// +public sealed partial class GetSecuritySettingsRequestDescriptor : RequestDescriptor +{ + internal GetSecuritySettingsRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetSecuritySettingsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityGetSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "security.get_settings"; + + public GetSecuritySettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs new file mode 100644 index 00000000000..971087523dd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetSecuritySettingsResponse.g.cs @@ -0,0 +1,54 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class GetSecuritySettingsResponse : ElasticsearchResponse +{ + /// + /// + /// Settings for the index used for most security configuration, including native realm users and roles configured with the API. + /// + /// + [JsonInclude, JsonPropertyName("security")] + public Elastic.Clients.Elasticsearch.Security.SecuritySettings Security { get; init; } + + /// + /// + /// Settings for the index used to store profile information. + /// + /// + [JsonInclude, JsonPropertyName("security-profile")] + public Elastic.Clients.Elasticsearch.Security.SecuritySettings SecurityProfile { get; init; } + + /// + /// + /// Settings for the index used to store tokens. + /// + /// + [JsonInclude, JsonPropertyName("security-tokens")] + public Elastic.Clients.Elasticsearch.Security.SecuritySettings SecurityTokens { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs index 921b203f237..7da44006569 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceAccountsRequest.g.cs @@ -41,6 +41,9 @@ public sealed partial class GetServiceAccountsRequestParameters : RequestParamet /// /// Get a list of service accounts that match the provided path parameters. /// +/// +/// NOTE: Currently, only the elastic/fleet-server service account is available. +/// /// public sealed partial class GetServiceAccountsRequest : PlainRequest { @@ -72,6 +75,9 @@ public GetServiceAccountsRequest(string? ns) : base(r => r.Optional("namespace", /// /// Get a list of service accounts that match the provided path parameters. /// +/// +/// NOTE: Currently, only the elastic/fleet-server service account is available. +/// /// public sealed partial class GetServiceAccountsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs index a1a5d627f24..3524da47732 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsRequest.g.cs @@ -38,6 +38,16 @@ public sealed partial class GetServiceCredentialsRequestParameters : RequestPara /// /// Get service account credentials. /// +/// +/// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). +/// +/// +/// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. +/// +/// +/// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. +/// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. +/// /// public sealed partial class GetServiceCredentialsRequest : PlainRequest { @@ -58,6 +68,16 @@ public GetServiceCredentialsRequest(string ns, Elastic.Clients.Elasticsearch.Nam /// /// Get service account credentials. /// +/// +/// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). +/// +/// +/// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. +/// +/// +/// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. +/// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. +/// /// public sealed partial class GetServiceCredentialsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs index 7fa558776e9..c4ffbf06f64 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetServiceCredentialsResponse.g.cs @@ -33,7 +33,7 @@ public sealed partial class GetServiceCredentialsResponse : ElasticsearchRespons /// /// - /// Contains service account credentials collected from all nodes of the cluster + /// Service account credentials collected from all nodes of the cluster. /// /// [JsonInclude, JsonPropertyName("nodes_credentials")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs index ee7fd7ce384..bbe54f8bd35 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetTokenRequest.g.cs @@ -40,6 +40,20 @@ public sealed partial class GetTokenRequestParameters : RequestParameters /// /// /// Create a bearer token for access without requiring basic authentication. +/// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. +/// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. +/// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. +/// +/// +/// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. +/// +/// +/// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. +/// +/// +/// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. +/// That time period is defined by the xpack.security.authc.token.timeout setting. +/// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// /// public sealed partial class GetTokenRequest : PlainRequest @@ -52,16 +66,61 @@ public sealed partial class GetTokenRequest : PlainRequest "security.get_token"; + /// + /// + /// The type of grant. + /// Supported grant types are: password, _kerberos, client_credentials, and refresh_token. + /// + /// [JsonInclude, JsonPropertyName("grant_type")] public Elastic.Clients.Elasticsearch.Security.AccessTokenGrantType? GrantType { get; set; } + + /// + /// + /// The base64 encoded kerberos ticket. + /// If you specify the _kerberos grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// [JsonInclude, JsonPropertyName("kerberos_ticket")] public string? KerberosTicket { get; set; } + + /// + /// + /// The user's password. + /// If you specify the password grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// [JsonInclude, JsonPropertyName("password")] public string? Password { get; set; } + + /// + /// + /// The string that was returned when you created the token, which enables you to extend its life. + /// If you specify the refresh_token grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// [JsonInclude, JsonPropertyName("refresh_token")] public string? RefreshToken { get; set; } + + /// + /// + /// The scope of the token. + /// Currently tokens are only issued for a scope of FULL regardless of the value sent with the request. + /// + /// [JsonInclude, JsonPropertyName("scope")] public string? Scope { get; set; } + + /// + /// + /// The username that identifies the user. + /// If you specify the password grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// [JsonInclude, JsonPropertyName("username")] public Elastic.Clients.Elasticsearch.Username? Username { get; set; } } @@ -72,6 +131,20 @@ public sealed partial class GetTokenRequest : PlainRequest /// /// Create a bearer token for access without requiring basic authentication. +/// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. +/// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. +/// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. +/// +/// +/// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. +/// +/// +/// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. +/// +/// +/// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. +/// That time period is defined by the xpack.security.authc.token.timeout setting. +/// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// /// public sealed partial class GetTokenRequestDescriptor : RequestDescriptor @@ -97,36 +170,76 @@ public GetTokenRequestDescriptor() private string? ScopeValue { get; set; } private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } + /// + /// + /// The type of grant. + /// Supported grant types are: password, _kerberos, client_credentials, and refresh_token. + /// + /// public GetTokenRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Security.AccessTokenGrantType? grantType) { GrantTypeValue = grantType; return Self; } + /// + /// + /// The base64 encoded kerberos ticket. + /// If you specify the _kerberos grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// public GetTokenRequestDescriptor KerberosTicket(string? kerberosTicket) { KerberosTicketValue = kerberosTicket; return Self; } + /// + /// + /// The user's password. + /// If you specify the password grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// public GetTokenRequestDescriptor Password(string? password) { PasswordValue = password; return Self; } + /// + /// + /// The string that was returned when you created the token, which enables you to extend its life. + /// If you specify the refresh_token grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// public GetTokenRequestDescriptor RefreshToken(string? refreshToken) { RefreshTokenValue = refreshToken; return Self; } + /// + /// + /// The scope of the token. + /// Currently tokens are only issued for a scope of FULL regardless of the value sent with the request. + /// + /// public GetTokenRequestDescriptor Scope(string? scope) { ScopeValue = scope; return Self; } + /// + /// + /// The username that identifies the user. + /// If you specify the password grant type, this parameter is required. + /// This parameter is not valid with any other supported grant type. + /// + /// public GetTokenRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) { UsernameValue = username; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs index 52d790b0458..0f6204998bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesRequest.g.cs @@ -52,6 +52,12 @@ public sealed partial class GetUserPrivilegesRequestParameters : RequestParamete /// /// Get user privileges. /// +/// +/// Get the security privileges for the logged in user. +/// All users can use this API, but only to determine their own privileges. +/// To check the privileges of other users, you must use the run as feature. +/// To check whether a user has a specific list of privileges, use the has privileges API. +/// /// public sealed partial class GetUserPrivilegesRequest : PlainRequest { @@ -86,6 +92,12 @@ public sealed partial class GetUserPrivilegesRequest : PlainRequest /// Get user privileges. /// +/// +/// Get the security privileges for the logged in user. +/// All users can use this API, but only to determine their own privileges. +/// To check the privileges of other users, you must use the run as feature. +/// To check whether a user has a specific list of privileges, use the has privileges API. +/// /// public sealed partial class GetUserPrivilegesRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs index 521ec2a00f5..fad2cdfadbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserPrivilegesResponse.g.cs @@ -36,6 +36,10 @@ public sealed partial class GetUserPrivilegesResponse : ElasticsearchResponse public IReadOnlyCollection Global { get; init; } [JsonInclude, JsonPropertyName("indices")] public IReadOnlyCollection Indices { get; init; } + [JsonInclude, JsonPropertyName("remote_cluster")] + public IReadOnlyCollection? RemoteCluster { get; init; } + [JsonInclude, JsonPropertyName("remote_indices")] + public IReadOnlyCollection? RemoteIndices { get; init; } [JsonInclude, JsonPropertyName("run_as")] public IReadOnlyCollection RunAs { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs index fa92cf1108f..0775822ceb4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileRequest.g.cs @@ -34,9 +34,9 @@ public sealed partial class GetUserProfileRequestParameters : RequestParameters { /// /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. + /// A comma-separated list of filters for the data field of the profile document. + /// To return all content use data=*. + /// To return a subset of content use data=<key> to retrieve content nested under the specified <key>. /// By default returns no data content. /// /// @@ -50,6 +50,11 @@ public sealed partial class GetUserProfileRequestParameters : RequestParameters /// /// Get a user's profile using the unique profile ID. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// /// public sealed partial class GetUserProfileRequest : PlainRequest { @@ -67,9 +72,9 @@ public GetUserProfileRequest(IReadOnlyCollection uid) : base(r => r.Requ /// /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. + /// A comma-separated list of filters for the data field of the profile document. + /// To return all content use data=*. + /// To return a subset of content use data=<key> to retrieve content nested under the specified <key>. /// By default returns no data content. /// /// @@ -84,6 +89,11 @@ public GetUserProfileRequest(IReadOnlyCollection uid) : base(r => r.Requ /// /// Get a user's profile using the unique profile ID. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// /// public sealed partial class GetUserProfileRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs index 71e2118cb2b..1fb42115499 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserProfileResponse.g.cs @@ -30,6 +30,14 @@ public sealed partial class GetUserProfileResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("errors")] public Elastic.Clients.Elasticsearch.Security.GetUserProfileErrors? Errors { get; init; } + + /// + /// + /// A successful call returns the JSON representation of the user profile and its internal versioning numbers. + /// The API returns an empty object if no profile document is found for the provided uid. + /// The content of the data field is not returned by default to avoid deserializing a potential large payload. + /// + /// [JsonInclude, JsonPropertyName("profiles")] public IReadOnlyCollection Profiles { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs index 9c77e91e3f6..b10ec69b601 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetUserRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class GetUserRequestParameters : RequestParameters { /// /// - /// If true will return the User Profile ID for a user, if any. + /// Determines whether to retrieve the user profile UID, if it exists, for the users. /// /// public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } @@ -68,7 +68,7 @@ public GetUserRequest(IReadOnlyCollection /// - /// If true will return the User Profile ID for a user, if any. + /// Determines whether to retrieve the user profile UID, if it exists, for the users. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs index c09da87befc..21fc73fc0db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GrantApiKeyRequest.g.cs @@ -41,13 +41,34 @@ public sealed partial class GrantApiKeyRequestParameters : RequestParameters /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. -/// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. -/// It is not possible to use this API to create an API key without that user’s credentials. +/// The caller must have authentication credentials for the user on whose behalf the API key will be created. +/// It is not possible to use this API to create an API key without that user's credentials. +/// The supported user authentication credential types are: +/// +/// +/// +/// +/// username and password +/// +/// +/// +/// +/// Elasticsearch access tokens +/// +/// +/// +/// +/// JWTs +/// +/// +/// +/// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. +/// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -69,7 +90,7 @@ public sealed partial class GrantApiKeyRequest : PlainRequest /// - /// The user’s access token. + /// The user's access token. /// If you specify the access_token grant type, this parameter is required. /// It is not valid with other grant types. /// @@ -79,7 +100,7 @@ public sealed partial class GrantApiKeyRequest : PlainRequest /// - /// Defines the API key. + /// The API key. /// /// [JsonInclude, JsonPropertyName("api_key")] @@ -95,7 +116,8 @@ public sealed partial class GrantApiKeyRequest : PlainRequest /// - /// The user’s password. If you specify the password grant type, this parameter is required. + /// The user's password. + /// If you specify the password grant type, this parameter is required. /// It is not valid with other grant types. /// /// @@ -128,13 +150,34 @@ public sealed partial class GrantApiKeyRequest : PlainRequest /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. -/// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. -/// It is not possible to use this API to create an API key without that user’s credentials. +/// The caller must have authentication credentials for the user on whose behalf the API key will be created. +/// It is not possible to use this API to create an API key without that user's credentials. +/// The supported user authentication credential types are: +/// +/// +/// +/// +/// username and password +/// +/// +/// +/// +/// Elasticsearch access tokens +/// +/// +/// +/// +/// JWTs +/// +/// +/// +/// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. +/// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -171,7 +214,7 @@ public GrantApiKeyRequestDescriptor() /// /// - /// The user’s access token. + /// The user's access token. /// If you specify the access_token grant type, this parameter is required. /// It is not valid with other grant types. /// @@ -184,7 +227,7 @@ public GrantApiKeyRequestDescriptor AccessToken(string? accessToken) /// /// - /// Defines the API key. + /// The API key. /// /// public GrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Security.GrantApiKey apiKey) @@ -224,7 +267,8 @@ public GrantApiKeyRequestDescriptor GrantType(Elastic.Clients.Elastic /// /// - /// The user’s password. If you specify the password grant type, this parameter is required. + /// The user's password. + /// If you specify the password grant type, this parameter is required. /// It is not valid with other grant types. /// /// @@ -314,13 +358,34 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. -/// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. -/// It is not possible to use this API to create an API key without that user’s credentials. +/// The caller must have authentication credentials for the user on whose behalf the API key will be created. +/// It is not possible to use this API to create an API key without that user's credentials. +/// The supported user authentication credential types are: +/// +/// +/// +/// +/// username and password +/// +/// +/// +/// +/// Elasticsearch access tokens +/// +/// +/// +/// +/// JWTs +/// +/// +/// +/// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. +/// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -357,7 +422,7 @@ public GrantApiKeyRequestDescriptor() /// /// - /// The user’s access token. + /// The user's access token. /// If you specify the access_token grant type, this parameter is required. /// It is not valid with other grant types. /// @@ -370,7 +435,7 @@ public GrantApiKeyRequestDescriptor AccessToken(string? accessToken) /// /// - /// Defines the API key. + /// The API key. /// /// public GrantApiKeyRequestDescriptor ApiKey(Elastic.Clients.Elasticsearch.Security.GrantApiKey apiKey) @@ -410,7 +475,8 @@ public GrantApiKeyRequestDescriptor GrantType(Elastic.Clients.Elasticsearch.Secu /// /// - /// The user’s password. If you specify the password grant type, this parameter is required. + /// The user's password. + /// If you specify the password grant type, this parameter is required. /// It is not valid with other grant types. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs index 623c868da87..4806f948b7d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesRequest.g.cs @@ -40,6 +40,8 @@ public sealed partial class HasPrivilegesRequestParameters : RequestParameters /// /// /// Determine whether the specified user has a specified list of privileges. +/// All users can use this API, but only to determine their own privileges. +/// To check the privileges of other users, you must use the run as feature. /// /// public sealed partial class HasPrivilegesRequest : PlainRequest @@ -80,6 +82,8 @@ public HasPrivilegesRequest(Elastic.Clients.Elasticsearch.Name? user) : base(r = /// /// /// Determine whether the specified user has a specified list of privileges. +/// All users can use this API, but only to determine their own privileges. +/// To check the privileges of other users, you must use the run as feature. /// /// public sealed partial class HasPrivilegesRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs index 81f80132120..d0932e39510 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/HasPrivilegesUserProfileRequest.g.cs @@ -41,6 +41,10 @@ public sealed partial class HasPrivilegesUserProfileRequestParameters : RequestP /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// /// public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest { @@ -52,6 +56,11 @@ public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest "security.has_privileges_user_profile"; + /// + /// + /// An object containing all the privileges to be checked. + /// + /// [JsonInclude, JsonPropertyName("privileges")] public Elastic.Clients.Elasticsearch.Security.PrivilegesCheck Privileges { get; set; } @@ -71,6 +80,10 @@ public sealed partial class HasPrivilegesUserProfileRequest : PlainRequest /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// /// public sealed partial class HasPrivilegesUserProfileRequestDescriptor : RequestDescriptor { @@ -93,6 +106,11 @@ public HasPrivilegesUserProfileRequestDescriptor() private Action PrivilegesDescriptorAction { get; set; } private ICollection UidsValue { get; set; } + /// + /// + /// An object containing all the privileges to be checked. + /// + /// public HasPrivilegesUserProfileRequestDescriptor Privileges(Elastic.Clients.Elasticsearch.Security.PrivilegesCheck privileges) { PrivilegesDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs index d648b5974ce..3764e2f5164 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyRequest.g.cs @@ -41,8 +41,12 @@ public sealed partial class InvalidateApiKeyRequestParameters : RequestParameter /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. -/// The manage_api_key privilege allows deleting any API keys. -/// The manage_own_api_key only allows deleting API keys that are owned by the user. +/// +/// +/// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. +/// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. +/// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. +/// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -53,7 +57,7 @@ public sealed partial class InvalidateApiKeyRequestParameters : RequestParameter /// /// /// -/// Or, set both username and realm_name to match the user’s identity. +/// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -96,9 +100,12 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// - /// Can be used to query API keys owned by the currently authenticated user. + /// Query API keys owned by the currently authenticated user. /// The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones. /// + /// + /// NOTE: At least one of ids, name, username, and realm_name must be specified if owner is false. + /// /// [JsonInclude, JsonPropertyName("owner")] public bool? Owner { get; set; } @@ -115,7 +122,7 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// /// The username of a user. - /// This parameter cannot be used with either ids or name, or when owner flag is set to true. + /// This parameter cannot be used with either ids or name or when owner flag is set to true. /// /// [JsonInclude, JsonPropertyName("username")] @@ -129,8 +136,12 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. -/// The manage_api_key privilege allows deleting any API keys. -/// The manage_own_api_key only allows deleting API keys that are owned by the user. +/// +/// +/// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. +/// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. +/// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. +/// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -141,7 +152,7 @@ public sealed partial class InvalidateApiKeyRequest : PlainRequest /// /// -/// Or, set both username and realm_name to match the user’s identity. +/// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -206,9 +217,12 @@ public InvalidateApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name /// /// - /// Can be used to query API keys owned by the currently authenticated user. + /// Query API keys owned by the currently authenticated user. /// The realm_name or username parameters cannot be specified when this parameter is set to true as they are assumed to be the currently authenticated ones. /// + /// + /// NOTE: At least one of ids, name, username, and realm_name must be specified if owner is false. + /// /// public InvalidateApiKeyRequestDescriptor Owner(bool? owner = true) { @@ -231,7 +245,7 @@ public InvalidateApiKeyRequestDescriptor RealmName(string? realmName) /// /// /// The username of a user. - /// This parameter cannot be used with either ids or name, or when owner flag is set to true. + /// This parameter cannot be used with either ids or name or when owner flag is set to true. /// /// public InvalidateApiKeyRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs index c46e96aaf8b..9b3a5dc8f50 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateApiKeyResponse.g.cs @@ -28,12 +28,36 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class InvalidateApiKeyResponse : ElasticsearchResponse { + /// + /// + /// The number of errors that were encountered when invalidating the API keys. + /// + /// [JsonInclude, JsonPropertyName("error_count")] public int ErrorCount { get; init; } + + /// + /// + /// Details about the errors. + /// This field is not present in the response when error_count is 0. + /// + /// [JsonInclude, JsonPropertyName("error_details")] public IReadOnlyCollection? ErrorDetails { get; init; } + + /// + /// + /// The IDs of the API keys that were invalidated as part of this request. + /// + /// [JsonInclude, JsonPropertyName("invalidated_api_keys")] public IReadOnlyCollection InvalidatedApiKeys { get; init; } + + /// + /// + /// The IDs of the API keys that were already invalidated. + /// + /// [JsonInclude, JsonPropertyName("previously_invalidated_api_keys")] public IReadOnlyCollection PreviouslyInvalidatedApiKeys { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs index 4386ef53852..b3c54fd862f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenRequest.g.cs @@ -44,9 +44,15 @@ public sealed partial class InvalidateTokenRequestParameters : RequestParameters /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// -/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. +/// The refresh tokens returned by the get token API are only valid for 24 hours. +/// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// +/// +/// NOTE: While all parameters are optional, at least one of them is required. +/// More specifically, either one of token or refresh_token parameters is required. +/// If none of these two are specified, then realm_name and/or username need to be specified. +/// /// public sealed partial class InvalidateTokenRequest : PlainRequest { @@ -58,12 +64,39 @@ public sealed partial class InvalidateTokenRequest : PlainRequest "security.invalidate_token"; + /// + /// + /// The name of an authentication realm. + /// This parameter cannot be used with either refresh_token or token. + /// + /// [JsonInclude, JsonPropertyName("realm_name")] public Elastic.Clients.Elasticsearch.Name? RealmName { get; set; } + + /// + /// + /// A refresh token. + /// This parameter cannot be used if any of refresh_token, realm_name, or username are used. + /// + /// [JsonInclude, JsonPropertyName("refresh_token")] public string? RefreshToken { get; set; } + + /// + /// + /// An access token. + /// This parameter cannot be used if any of refresh_token, realm_name, or username are used. + /// + /// [JsonInclude, JsonPropertyName("token")] public string? Token { get; set; } + + /// + /// + /// The username of a user. + /// This parameter cannot be used with either refresh_token or token. + /// + /// [JsonInclude, JsonPropertyName("username")] public Elastic.Clients.Elasticsearch.Username? Username { get; set; } } @@ -78,9 +111,15 @@ public sealed partial class InvalidateTokenRequest : PlainRequestxpack.security.authc.token.timeout setting. /// /// -/// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. +/// The refresh tokens returned by the get token API are only valid for 24 hours. +/// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// +/// +/// NOTE: While all parameters are optional, at least one of them is required. +/// More specifically, either one of token or refresh_token parameters is required. +/// If none of these two are specified, then realm_name and/or username need to be specified. +/// /// public sealed partial class InvalidateTokenRequestDescriptor : RequestDescriptor { @@ -103,24 +142,48 @@ public InvalidateTokenRequestDescriptor() private string? TokenValue { get; set; } private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } + /// + /// + /// The name of an authentication realm. + /// This parameter cannot be used with either refresh_token or token. + /// + /// public InvalidateTokenRequestDescriptor RealmName(Elastic.Clients.Elasticsearch.Name? realmName) { RealmNameValue = realmName; return Self; } + /// + /// + /// A refresh token. + /// This parameter cannot be used if any of refresh_token, realm_name, or username are used. + /// + /// public InvalidateTokenRequestDescriptor RefreshToken(string? refreshToken) { RefreshTokenValue = refreshToken; return Self; } + /// + /// + /// An access token. + /// This parameter cannot be used if any of refresh_token, realm_name, or username are used. + /// + /// public InvalidateTokenRequestDescriptor Token(string? token) { TokenValue = token; return Self; } + /// + /// + /// The username of a user. + /// This parameter cannot be used with either refresh_token or token. + /// + /// public InvalidateTokenRequestDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) { UsernameValue = username; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs index d014871850b..7710fd3bb20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/InvalidateTokenResponse.g.cs @@ -28,12 +28,36 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class InvalidateTokenResponse : ElasticsearchResponse { + /// + /// + /// The number of errors that were encountered when invalidating the tokens. + /// + /// [JsonInclude, JsonPropertyName("error_count")] public long ErrorCount { get; init; } + + /// + /// + /// Details about the errors. + /// This field is not present in the response when error_count is 0. + /// + /// [JsonInclude, JsonPropertyName("error_details")] public IReadOnlyCollection? ErrorDetails { get; init; } + + /// + /// + /// The number of the tokens that were invalidated as part of this request. + /// + /// [JsonInclude, JsonPropertyName("invalidated_tokens")] public long InvalidatedTokens { get; init; } + + /// + /// + /// The number of tokens that were already invalidated. + /// + /// [JsonInclude, JsonPropertyName("previously_invalidated_tokens")] public long PreviouslyInvalidatedTokens { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs new file mode 100644 index 00000000000..638ae1a9671 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateRequest.g.cs @@ -0,0 +1,194 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class OidcAuthenticateRequestParameters : RequestParameters +{ +} + +/// +/// +/// Authenticate OpenID Connect. +/// +/// +/// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. +/// +/// +/// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. +/// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. +/// +/// +public sealed partial class OidcAuthenticateRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityOidcAuthenticate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.oidc_authenticate"; + + /// + /// + /// Associate a client session with an ID token and mitigate replay attacks. + /// This value needs to be the same as the one that was provided to the /_security/oidc/prepare API or the one that was generated by Elasticsearch and included in the response to that call. + /// + /// + [JsonInclude, JsonPropertyName("nonce")] + public string Nonce { get; set; } + + /// + /// + /// The name of the OpenID Connect realm. + /// This property is useful in cases where multiple realms are defined. + /// + /// + [JsonInclude, JsonPropertyName("realm")] + public string? Realm { get; set; } + + /// + /// + /// The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication. + /// This URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider. + /// + /// + [JsonInclude, JsonPropertyName("redirect_uri")] + public string RedirectUri { get; set; } + + /// + /// + /// Maintain state between the authentication request and the response. + /// This value needs to be the same as the one that was provided to the /_security/oidc/prepare API or the one that was generated by Elasticsearch and included in the response to that call. + /// + /// + [JsonInclude, JsonPropertyName("state")] + public string State { get; set; } +} + +/// +/// +/// Authenticate OpenID Connect. +/// +/// +/// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. +/// +/// +/// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. +/// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. +/// +/// +public sealed partial class OidcAuthenticateRequestDescriptor : RequestDescriptor +{ + internal OidcAuthenticateRequestDescriptor(Action configure) => configure.Invoke(this); + + public OidcAuthenticateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityOidcAuthenticate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.oidc_authenticate"; + + private string NonceValue { get; set; } + private string? RealmValue { get; set; } + private string RedirectUriValue { get; set; } + private string StateValue { get; set; } + + /// + /// + /// Associate a client session with an ID token and mitigate replay attacks. + /// This value needs to be the same as the one that was provided to the /_security/oidc/prepare API or the one that was generated by Elasticsearch and included in the response to that call. + /// + /// + public OidcAuthenticateRequestDescriptor Nonce(string nonce) + { + NonceValue = nonce; + return Self; + } + + /// + /// + /// The name of the OpenID Connect realm. + /// This property is useful in cases where multiple realms are defined. + /// + /// + public OidcAuthenticateRequestDescriptor Realm(string? realm) + { + RealmValue = realm; + return Self; + } + + /// + /// + /// The URL to which the OpenID Connect Provider redirected the User Agent in response to an authentication request after a successful authentication. + /// This URL must be provided as-is (URL encoded), taken from the body of the response or as the value of a location header in the response from the OpenID Connect Provider. + /// + /// + public OidcAuthenticateRequestDescriptor RedirectUri(string redirectUri) + { + RedirectUriValue = redirectUri; + return Self; + } + + /// + /// + /// Maintain state between the authentication request and the response. + /// This value needs to be the same as the one that was provided to the /_security/oidc/prepare API or the one that was generated by Elasticsearch and included in the response to that call. + /// + /// + public OidcAuthenticateRequestDescriptor State(string state) + { + StateValue = state; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("nonce"); + writer.WriteStringValue(NonceValue); + if (!string.IsNullOrEmpty(RealmValue)) + { + writer.WritePropertyName("realm"); + writer.WriteStringValue(RealmValue); + } + + writer.WritePropertyName("redirect_uri"); + writer.WriteStringValue(RedirectUriValue); + writer.WritePropertyName("state"); + writer.WriteStringValue(StateValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs new file mode 100644 index 00000000000..3e2363e1ca6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcAuthenticateResponse.g.cs @@ -0,0 +1,62 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class OidcAuthenticateResponse : ElasticsearchResponse +{ + /// + /// + /// The Elasticsearch access token. + /// + /// + [JsonInclude, JsonPropertyName("access_token")] + public string AccessToken { get; init; } + + /// + /// + /// The duration (in seconds) of the tokens. + /// + /// + [JsonInclude, JsonPropertyName("expires_in")] + public int ExpiresIn { get; init; } + + /// + /// + /// The Elasticsearch refresh token. + /// + /// + [JsonInclude, JsonPropertyName("refresh_token")] + public string RefreshToken { get; init; } + + /// + /// + /// The type of token. + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs new file mode 100644 index 00000000000..30273c570ae --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs @@ -0,0 +1,148 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class OidcLogoutRequestParameters : RequestParameters +{ +} + +/// +/// +/// Logout of OpenID Connect. +/// +/// +/// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. +/// +/// +/// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. +/// +/// +/// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. +/// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. +/// +/// +public sealed partial class OidcLogoutRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityOidcLogout; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.oidc_logout"; + + /// + /// + /// The access token to be invalidated. + /// + /// + [JsonInclude, JsonPropertyName("access_token")] + public string AccessToken { get; set; } + + /// + /// + /// The refresh token to be invalidated. + /// + /// + [JsonInclude, JsonPropertyName("refresh_token")] + public string? RefreshToken { get; set; } +} + +/// +/// +/// Logout of OpenID Connect. +/// +/// +/// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. +/// +/// +/// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. +/// +/// +/// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. +/// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. +/// +/// +public sealed partial class OidcLogoutRequestDescriptor : RequestDescriptor +{ + internal OidcLogoutRequestDescriptor(Action configure) => configure.Invoke(this); + + public OidcLogoutRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityOidcLogout; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.oidc_logout"; + + private string AccessTokenValue { get; set; } + private string? RefreshTokenValue { get; set; } + + /// + /// + /// The access token to be invalidated. + /// + /// + public OidcLogoutRequestDescriptor AccessToken(string accessToken) + { + AccessTokenValue = accessToken; + return Self; + } + + /// + /// + /// The refresh token to be invalidated. + /// + /// + public OidcLogoutRequestDescriptor RefreshToken(string? refreshToken) + { + RefreshTokenValue = refreshToken; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("access_token"); + writer.WriteStringValue(AccessTokenValue); + if (!string.IsNullOrEmpty(RefreshTokenValue)) + { + writer.WritePropertyName("refresh_token"); + writer.WriteStringValue(RefreshTokenValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs new file mode 100644 index 00000000000..a0952e506fb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutResponse.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class OidcLogoutResponse : ElasticsearchResponse +{ + /// + /// + /// A URI that points to the end session endpoint of the OpenID Connect Provider with all the parameters of the logout request as HTTP GET parameters. + /// + /// + [JsonInclude, JsonPropertyName("redirect")] + public string Redirect { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs new file mode 100644 index 00000000000..5c4cff8f89a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationRequest.g.cs @@ -0,0 +1,244 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class OidcPrepareAuthenticationRequestParameters : RequestParameters +{ +} + +/// +/// +/// Prepare OpenID connect authentication. +/// +/// +/// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. +/// +/// +/// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. +/// +/// +/// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. +/// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. +/// +/// +public sealed partial class OidcPrepareAuthenticationRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityOidcPrepareAuthentication; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.oidc_prepare_authentication"; + + /// + /// + /// In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to. + /// It cannot be specified when realm is specified. + /// One of realm or iss is required. + /// + /// + [JsonInclude, JsonPropertyName("iss")] + public string? Iss { get; set; } + + /// + /// + /// In the case of a third party initiated single sign on, it is a string value that is included in the authentication request as the login_hint parameter. + /// This parameter is not valid when realm is specified. + /// + /// + [JsonInclude, JsonPropertyName("login_hint")] + public string? LoginHint { get; set; } + + /// + /// + /// The value used to associate a client session with an ID token and to mitigate replay attacks. + /// If the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response. + /// + /// + [JsonInclude, JsonPropertyName("nonce")] + public string? Nonce { get; set; } + + /// + /// + /// The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request. + /// It cannot be specified when iss is specified. + /// One of realm or iss is required. + /// + /// + [JsonInclude, JsonPropertyName("realm")] + public string? Realm { get; set; } + + /// + /// + /// The value used to maintain state between the authentication request and the response, typically used as a Cross-Site Request Forgery mitigation. + /// If the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response. + /// + /// + [JsonInclude, JsonPropertyName("state")] + public string? State { get; set; } +} + +/// +/// +/// Prepare OpenID connect authentication. +/// +/// +/// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. +/// +/// +/// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. +/// +/// +/// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. +/// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. +/// +/// +public sealed partial class OidcPrepareAuthenticationRequestDescriptor : RequestDescriptor +{ + internal OidcPrepareAuthenticationRequestDescriptor(Action configure) => configure.Invoke(this); + + public OidcPrepareAuthenticationRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityOidcPrepareAuthentication; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.oidc_prepare_authentication"; + + private string? IssValue { get; set; } + private string? LoginHintValue { get; set; } + private string? NonceValue { get; set; } + private string? RealmValue { get; set; } + private string? StateValue { get; set; } + + /// + /// + /// In the case of a third party initiated single sign on, this is the issuer identifier for the OP that the RP is to send the authentication request to. + /// It cannot be specified when realm is specified. + /// One of realm or iss is required. + /// + /// + public OidcPrepareAuthenticationRequestDescriptor Iss(string? iss) + { + IssValue = iss; + return Self; + } + + /// + /// + /// In the case of a third party initiated single sign on, it is a string value that is included in the authentication request as the login_hint parameter. + /// This parameter is not valid when realm is specified. + /// + /// + public OidcPrepareAuthenticationRequestDescriptor LoginHint(string? loginHint) + { + LoginHintValue = loginHint; + return Self; + } + + /// + /// + /// The value used to associate a client session with an ID token and to mitigate replay attacks. + /// If the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response. + /// + /// + public OidcPrepareAuthenticationRequestDescriptor Nonce(string? nonce) + { + NonceValue = nonce; + return Self; + } + + /// + /// + /// The name of the OpenID Connect realm in Elasticsearch the configuration of which should be used in order to generate the authentication request. + /// It cannot be specified when iss is specified. + /// One of realm or iss is required. + /// + /// + public OidcPrepareAuthenticationRequestDescriptor Realm(string? realm) + { + RealmValue = realm; + return Self; + } + + /// + /// + /// The value used to maintain state between the authentication request and the response, typically used as a Cross-Site Request Forgery mitigation. + /// If the caller of the API does not provide a value, Elasticsearch will generate one with sufficient entropy and return it in the response. + /// + /// + public OidcPrepareAuthenticationRequestDescriptor State(string? state) + { + StateValue = state; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(IssValue)) + { + writer.WritePropertyName("iss"); + writer.WriteStringValue(IssValue); + } + + if (!string.IsNullOrEmpty(LoginHintValue)) + { + writer.WritePropertyName("login_hint"); + writer.WriteStringValue(LoginHintValue); + } + + if (!string.IsNullOrEmpty(NonceValue)) + { + writer.WritePropertyName("nonce"); + writer.WriteStringValue(NonceValue); + } + + if (!string.IsNullOrEmpty(RealmValue)) + { + writer.WritePropertyName("realm"); + writer.WriteStringValue(RealmValue); + } + + if (!string.IsNullOrEmpty(StateValue)) + { + writer.WritePropertyName("state"); + writer.WriteStringValue(StateValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs new file mode 100644 index 00000000000..39e1e97d39e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcPrepareAuthenticationResponse.g.cs @@ -0,0 +1,45 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class OidcPrepareAuthenticationResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("nonce")] + public string Nonce { get; init; } + [JsonInclude, JsonPropertyName("realm")] + public string Realm { get; init; } + + /// + /// + /// A URI that points to the authorization endpoint of the OpenID Connect Provider with all the parameters of the authentication request as HTTP GET parameters. + /// + /// + [JsonInclude, JsonPropertyName("redirect")] + public string Redirect { get; init; } + [JsonInclude, JsonPropertyName("state")] + public string State { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs index 9ba02c01239..5d886651927 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutPrivilegesRequest.g.cs @@ -46,6 +46,62 @@ public sealed partial class PutPrivilegesRequestParameters : RequestParameters /// /// Create or update application privileges. /// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The manage_security cluster privilege (or a greater privilege such as all). +/// +/// +/// +/// +/// The "Manage Application Privileges" global privilege for the application being referenced in the request. +/// +/// +/// +/// +/// Application names are formed from a prefix, with an optional suffix that conform to the following rules: +/// +/// +/// +/// +/// The prefix must begin with a lowercase ASCII letter. +/// +/// +/// +/// +/// The prefix must contain only ASCII letters or digits. +/// +/// +/// +/// +/// The prefix must be at least 3 characters long. +/// +/// +/// +/// +/// If the suffix exists, it must begin with either a dash - or _. +/// +/// +/// +/// +/// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. +/// +/// +/// +/// +/// No part of the name can contain whitespace. +/// +/// +/// +/// +/// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. +/// +/// +/// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. +/// /// public sealed partial class PutPrivilegesRequest : PlainRequest, ISelfSerializable { @@ -76,6 +132,62 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// Create or update application privileges. /// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The manage_security cluster privilege (or a greater privilege such as all). +/// +/// +/// +/// +/// The "Manage Application Privileges" global privilege for the application being referenced in the request. +/// +/// +/// +/// +/// Application names are formed from a prefix, with an optional suffix that conform to the following rules: +/// +/// +/// +/// +/// The prefix must begin with a lowercase ASCII letter. +/// +/// +/// +/// +/// The prefix must contain only ASCII letters or digits. +/// +/// +/// +/// +/// The prefix must be at least 3 characters long. +/// +/// +/// +/// +/// If the suffix exists, it must begin with either a dash - or _. +/// +/// +/// +/// +/// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. +/// +/// +/// +/// +/// No part of the name can contain whitespace. +/// +/// +/// +/// +/// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. +/// +/// +/// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. +/// /// public sealed partial class PutPrivilegesRequestDescriptor : RequestDescriptor, ISelfSerializable { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs index e0713523d9f..3a335fae9cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleMappingRequest.g.cs @@ -50,9 +50,33 @@ public sealed partial class PutRoleMappingRequestParameters : RequestParameters /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. /// /// -/// This API does not create roles. Rather, it maps users to existing roles. +/// NOTE: This API does not create roles. Rather, it maps users to existing roles. /// Roles can be created by using the create or update roles API or roles files. /// +/// +/// Role templates +/// +/// +/// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. +/// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. +/// The roles field is used for this purpose. +/// +/// +/// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. +/// The role_templates field is used for this purpose. +/// +/// +/// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. +/// Otherwise, all attempts to create a role mapping with role templates fail. +/// +/// +/// All of the user fields that are available in the role mapping rules are also available in the role templates. +/// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. +/// +/// +/// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. +/// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. +/// /// public sealed partial class PutRoleMappingRequest : PlainRequest { @@ -75,14 +99,48 @@ public PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base(r = /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + + /// + /// + /// Mappings that have enabled set to false are ignored when role mapping is performed. + /// + /// [JsonInclude, JsonPropertyName("enabled")] public bool? Enabled { get; set; } + + /// + /// + /// Additional metadata that helps define which roles are assigned to each user. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// [JsonInclude, JsonPropertyName("metadata")] public IDictionary? Metadata { get; set; } + + /// + /// + /// A list of role names that are granted to the users that match the role mapping rules. + /// Exactly one of roles or role_templates must be specified. + /// + /// [JsonInclude, JsonPropertyName("roles")] public ICollection? Roles { get; set; } + + /// + /// + /// A list of Mustache templates that will be evaluated to determine the roles names that should granted to the users that match the role mapping rules. + /// Exactly one of roles or role_templates must be specified. + /// + /// [JsonInclude, JsonPropertyName("role_templates")] public ICollection? RoleTemplates { get; set; } + + /// + /// + /// The rules that determine which users should be matched by the mapping. + /// A rule is a logical condition that is expressed by using a JSON DSL. + /// + /// [JsonInclude, JsonPropertyName("rules")] public Elastic.Clients.Elasticsearch.Security.RoleMappingRule? Rules { get; set; } [JsonInclude, JsonPropertyName("run_as")] @@ -99,9 +157,33 @@ public PutRoleMappingRequest(Elastic.Clients.Elasticsearch.Name name) : base(r = /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. /// /// -/// This API does not create roles. Rather, it maps users to existing roles. +/// NOTE: This API does not create roles. Rather, it maps users to existing roles. /// Roles can be created by using the create or update roles API or roles files. /// +/// +/// Role templates +/// +/// +/// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. +/// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. +/// The roles field is used for this purpose. +/// +/// +/// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. +/// The role_templates field is used for this purpose. +/// +/// +/// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. +/// Otherwise, all attempts to create a role mapping with role templates fail. +/// +/// +/// All of the user fields that are available in the role mapping rules are also available in the role templates. +/// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. +/// +/// +/// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. +/// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. +/// /// public sealed partial class PutRoleMappingRequestDescriptor : RequestDescriptor { @@ -139,24 +221,47 @@ public PutRoleMappingRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name n private Action RulesDescriptorAction { get; set; } private ICollection? RunAsValue { get; set; } + /// + /// + /// Mappings that have enabled set to false are ignored when role mapping is performed. + /// + /// public PutRoleMappingRequestDescriptor Enabled(bool? enabled = true) { EnabledValue = enabled; return Self; } + /// + /// + /// Additional metadata that helps define which roles are assigned to each user. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// public PutRoleMappingRequestDescriptor Metadata(Func, FluentDictionary> selector) { MetadataValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// + /// A list of role names that are granted to the users that match the role mapping rules. + /// Exactly one of roles or role_templates must be specified. + /// + /// public PutRoleMappingRequestDescriptor Roles(ICollection? roles) { RolesValue = roles; return Self; } + /// + /// + /// A list of Mustache templates that will be evaluated to determine the roles names that should granted to the users that match the role mapping rules. + /// Exactly one of roles or role_templates must be specified. + /// + /// public PutRoleMappingRequestDescriptor RoleTemplates(ICollection? roleTemplates) { RoleTemplatesDescriptor = null; @@ -193,6 +298,12 @@ public PutRoleMappingRequestDescriptor RoleTemplates(params Action + /// + /// The rules that determine which users should be matched by the mapping. + /// A rule is a logical condition that is expressed by using a JSON DSL. + /// + /// public PutRoleMappingRequestDescriptor Rules(Elastic.Clients.Elasticsearch.Security.RoleMappingRule? rules) { RulesDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs index 300912ec21c..01e434d9717 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleRequest.g.cs @@ -132,6 +132,10 @@ public PutRoleRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Req /// /// A list of remote indices permissions entries. /// + /// + /// NOTE: Remote indices are effective for remote clusters configured with the API key based model. + /// They have no effect for remote clusters configured with the certificate based model. + /// /// [JsonInclude, JsonPropertyName("remote_indices")] public ICollection? RemoteIndices { get; set; } @@ -381,6 +385,10 @@ public PutRoleRequestDescriptor RemoteCluster(params Action /// A list of remote indices permissions entries. /// + /// + /// NOTE: Remote indices are effective for remote clusters configured with the API key based model. + /// They have no effect for remote clusters configured with the certificate based model. + /// /// public PutRoleRequestDescriptor RemoteIndices(ICollection? remoteIndices) { @@ -835,6 +843,10 @@ public PutRoleRequestDescriptor RemoteCluster(params Action /// A list of remote indices permissions entries. /// + /// + /// NOTE: Remote indices are effective for remote clusters configured with the API key based model. + /// They have no effect for remote clusters configured with the certificate based model. + /// /// public PutRoleRequestDescriptor RemoteIndices(ICollection? remoteIndices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs index 6c6b329cdb4..bd63075fa2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutRoleResponse.g.cs @@ -28,6 +28,11 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class PutRoleResponse : ElasticsearchResponse { + /// + /// + /// When an existing role is updated, created is set to false. + /// + /// [JsonInclude, JsonPropertyName("role")] public Elastic.Clients.Elasticsearch.Security.CreatedStatus Role { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs index be4076b0394..91245e22493 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserRequest.g.cs @@ -34,7 +34,8 @@ public sealed partial class PutUserRequestParameters : RequestParameters { /// /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. + /// Valid values are true, false, and wait_for. + /// These values have the same meaning as in the index API, but the default value for this API is true. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -45,8 +46,9 @@ public sealed partial class PutUserRequestParameters : RequestParameters /// Create or update users. /// /// +/// Add and update users in the native realm. /// A password is required for adding a new user but is optional when updating an existing user. -/// To change a user’s password without updating any other fields, use the change password API. +/// To change a user's password without updating any other fields, use the change password API. /// /// public sealed partial class PutUserRequest : PlainRequest @@ -65,23 +67,75 @@ public PutUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r /// /// - /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. + /// Valid values are true, false, and wait_for. + /// These values have the same meaning as in the index API, but the default value for this API is true. /// /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + + /// + /// + /// The email of the user. + /// + /// [JsonInclude, JsonPropertyName("email")] public string? Email { get; set; } + + /// + /// + /// Specifies whether the user is enabled. + /// + /// [JsonInclude, JsonPropertyName("enabled")] public bool? Enabled { get; set; } + + /// + /// + /// The full name of the user. + /// + /// [JsonInclude, JsonPropertyName("full_name")] public string? FullName { get; set; } + + /// + /// + /// Arbitrary metadata that you want to associate with the user. + /// + /// [JsonInclude, JsonPropertyName("metadata")] public IDictionary? Metadata { get; set; } + + /// + /// + /// The user's password. + /// Passwords must be at least 6 characters long. + /// When adding a user, one of password or password_hash is required. + /// When updating an existing user, the password is optional, so that other fields on the user (such as their roles) may be updated without modifying the user's password + /// + /// [JsonInclude, JsonPropertyName("password")] public string? Password { get; set; } + + /// + /// + /// A hash of the user's password. + /// This must be produced using the same hashing algorithm as has been configured for password storage. + /// For more details, see the explanation of the xpack.security.authc.password_hashing.algorithm setting in the user cache and password hash algorithm documentation. + /// Using this parameter allows the client to pre-hash the password for performance and/or confidentiality reasons. + /// The password parameter and the password_hash parameter cannot be used in the same request. + /// + /// [JsonInclude, JsonPropertyName("password_hash")] public string? PasswordHash { get; set; } + + /// + /// + /// A set of roles the user has. + /// The roles determine the user's access permissions. + /// To create a user without any roles, specify an empty list ([]). + /// + /// [JsonInclude, JsonPropertyName("roles")] public ICollection? Roles { get; set; } [JsonInclude, JsonPropertyName("username")] @@ -93,8 +147,9 @@ public PutUserRequest(Elastic.Clients.Elasticsearch.Username username) : base(r /// Create or update users. /// /// +/// Add and update users in the native realm. /// A password is required for adding a new user but is optional when updating an existing user. -/// To change a user’s password without updating any other fields, use the change password API. +/// To change a user's password without updating any other fields, use the change password API. /// /// public sealed partial class PutUserRequestDescriptor : RequestDescriptor @@ -120,42 +175,86 @@ public sealed partial class PutUserRequestDescriptor : RequestDescriptor? RolesValue { get; set; } private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } + /// + /// + /// The email of the user. + /// + /// public PutUserRequestDescriptor Email(string? email) { EmailValue = email; return Self; } + /// + /// + /// Specifies whether the user is enabled. + /// + /// public PutUserRequestDescriptor Enabled(bool? enabled = true) { EnabledValue = enabled; return Self; } + /// + /// + /// The full name of the user. + /// + /// public PutUserRequestDescriptor FullName(string? fullName) { FullNameValue = fullName; return Self; } + /// + /// + /// Arbitrary metadata that you want to associate with the user. + /// + /// public PutUserRequestDescriptor Metadata(Func, FluentDictionary> selector) { MetadataValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// + /// The user's password. + /// Passwords must be at least 6 characters long. + /// When adding a user, one of password or password_hash is required. + /// When updating an existing user, the password is optional, so that other fields on the user (such as their roles) may be updated without modifying the user's password + /// + /// public PutUserRequestDescriptor Password(string? password) { PasswordValue = password; return Self; } + /// + /// + /// A hash of the user's password. + /// This must be produced using the same hashing algorithm as has been configured for password storage. + /// For more details, see the explanation of the xpack.security.authc.password_hashing.algorithm setting in the user cache and password hash algorithm documentation. + /// Using this parameter allows the client to pre-hash the password for performance and/or confidentiality reasons. + /// The password parameter and the password_hash parameter cannot be used in the same request. + /// + /// public PutUserRequestDescriptor PasswordHash(string? passwordHash) { PasswordHashValue = passwordHash; return Self; } + /// + /// + /// A set of roles the user has. + /// The roles determine the user's access permissions. + /// To create a user without any roles, specify an empty list ([]). + /// + /// public PutUserRequestDescriptor Roles(ICollection? roles) { RolesValue = roles; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs index 5941437d1cc..83f742893a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/PutUserResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class PutUserResponse : ElasticsearchResponse { + /// + /// + /// A successful call returns a JSON structure that shows whether the user has been created or updated. + /// When an existing user is updated, created is set to false. + /// + /// [JsonInclude, JsonPropertyName("created")] public bool Created { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs index fdd42b6136d..73bab3d943d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryApiKeysRequest.g.cs @@ -42,14 +42,16 @@ public sealed partial class QueryApiKeysRequestParameters : RequestParameters /// /// /// Return the snapshot of the owner user's role descriptors associated with the API key. - /// An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors. + /// An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it). + /// An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has manage_api_key or higher privileges. /// /// public bool? WithLimitedBy { get => Q("with_limited_by"); set => Q("with_limited_by", value); } /// /// - /// Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. + /// Determines whether to also retrieve the profile UID for the API key owner principal. + /// If it exists, the profile UID is returned under the profile_uid response field for each API key. /// /// public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } @@ -156,7 +158,13 @@ public override void Write(Utf8JsonWriter writer, QueryApiKeysRequest value, Jso /// Find API keys with a query. /// /// -/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Get a paginated list of API keys and their information. +/// You can optionally filter the results with a query. +/// +/// +/// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. +/// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. +/// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// /// [JsonConverter(typeof(QueryApiKeysRequestConverter))] @@ -185,7 +193,8 @@ public QueryApiKeysRequest() /// /// /// Return the snapshot of the owner user's role descriptors associated with the API key. - /// An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors. + /// An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors (effectively limited by it). + /// An API key cannot retrieve any API key’s limited-by role descriptors (including itself) unless it has manage_api_key or higher privileges. /// /// [JsonIgnore] @@ -193,7 +202,8 @@ public QueryApiKeysRequest() /// /// - /// Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists. + /// Determines whether to also retrieve the profile UID for the API key owner principal. + /// If it exists, the profile UID is returned under the profile_uid response field for each API key. /// /// [JsonIgnore] @@ -213,8 +223,9 @@ public QueryApiKeysRequest() /// /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -230,13 +241,18 @@ public QueryApiKeysRequest() /// You can query the following public information associated with an API key: id, type, name, /// creation, expiration, invalidated, invalidation, username, realm, and metadata. /// + /// + /// NOTE: The queryable string values associated with API keys are internally mapped as keywords. + /// Consequently, if no analyzer parameter is specified for a match query, then the provided match query string is interpreted as a single keyword value. + /// Such a match query is hence equivalent to a term query. + /// /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Security.ApiKeyQuery? Query { get; set; } /// /// - /// Search after definition + /// The search after definition. /// /// [JsonInclude, JsonPropertyName("search_after")] @@ -245,6 +261,8 @@ public QueryApiKeysRequest() /// /// /// The number of hits to return. + /// It must not be negative. + /// The size parameter can be set to 0, in which case no API key matches are returned, only the aggregation results. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -254,6 +272,7 @@ public QueryApiKeysRequest() /// /// + /// The sort definition. /// Other than id, all public fields of an API key are eligible for sorting. /// In addition, sort can also be applied to the _doc field to sort by index order. /// @@ -268,7 +287,13 @@ public QueryApiKeysRequest() /// Find API keys with a query. /// /// -/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Get a paginated list of API keys and their information. +/// You can optionally filter the results with a query. +/// +/// +/// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. +/// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. +/// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// /// public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor, QueryApiKeysRequestParameters> @@ -320,8 +345,9 @@ public QueryApiKeysRequestDescriptor Aggregations(Func /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -340,6 +366,11 @@ public QueryApiKeysRequestDescriptor From(int? from) /// You can query the following public information associated with an API key: id, type, name, /// creation, expiration, invalidated, invalidation, username, realm, and metadata. /// + /// + /// NOTE: The queryable string values associated with API keys are internally mapped as keywords. + /// Consequently, if no analyzer parameter is specified for a match query, then the provided match query string is interpreted as a single keyword value. + /// Such a match query is hence equivalent to a term query. + /// /// public QueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.Security.ApiKeyQuery? query) { @@ -367,7 +398,7 @@ public QueryApiKeysRequestDescriptor Query(Action /// - /// Search after definition + /// The search after definition. /// /// public QueryApiKeysRequestDescriptor SearchAfter(ICollection? searchAfter) @@ -379,6 +410,8 @@ public QueryApiKeysRequestDescriptor SearchAfter(ICollection /// /// The number of hits to return. + /// It must not be negative. + /// The size parameter can be set to 0, in which case no API key matches are returned, only the aggregation results. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -391,6 +424,7 @@ public QueryApiKeysRequestDescriptor Size(int? size) /// /// + /// The sort definition. /// Other than id, all public fields of an API key are eligible for sorting. /// In addition, sort can also be applied to the _doc field to sort by index order. /// @@ -512,7 +546,13 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Find API keys with a query. /// /// -/// Get a paginated list of API keys and their information. You can optionally filter the results with a query. +/// Get a paginated list of API keys and their information. +/// You can optionally filter the results with a query. +/// +/// +/// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. +/// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. +/// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// /// public sealed partial class QueryApiKeysRequestDescriptor : RequestDescriptor @@ -564,8 +604,9 @@ public QueryApiKeysRequestDescriptor Aggregations(Func /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -584,6 +625,11 @@ public QueryApiKeysRequestDescriptor From(int? from) /// You can query the following public information associated with an API key: id, type, name, /// creation, expiration, invalidated, invalidation, username, realm, and metadata. /// + /// + /// NOTE: The queryable string values associated with API keys are internally mapped as keywords. + /// Consequently, if no analyzer parameter is specified for a match query, then the provided match query string is interpreted as a single keyword value. + /// Such a match query is hence equivalent to a term query. + /// /// public QueryApiKeysRequestDescriptor Query(Elastic.Clients.Elasticsearch.Security.ApiKeyQuery? query) { @@ -611,7 +657,7 @@ public QueryApiKeysRequestDescriptor Query(Action /// - /// Search after definition + /// The search after definition. /// /// public QueryApiKeysRequestDescriptor SearchAfter(ICollection? searchAfter) @@ -623,6 +669,8 @@ public QueryApiKeysRequestDescriptor SearchAfter(ICollection /// /// The number of hits to return. + /// It must not be negative. + /// The size parameter can be set to 0, in which case no API key matches are returned, only the aggregation results. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -635,6 +683,7 @@ public QueryApiKeysRequestDescriptor Size(int? size) /// /// + /// The sort definition. /// Other than id, all public fields of an API key are eligible for sorting. /// In addition, sort can also be applied to the _doc field to sort by index order. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs index e55732256d7..f5f97c5ab6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleRequest.g.cs @@ -39,7 +39,11 @@ public sealed partial class QueryRoleRequestParameters : RequestParameters /// Find roles with a query. /// /// -/// Get roles in a paginated manner. You can optionally filter the results with a query. +/// Get roles in a paginated manner. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. +/// You can optionally filter the results with a query. +/// Also, the results can be paginated and sorted. /// /// public sealed partial class QueryRoleRequest : PlainRequest @@ -54,8 +58,9 @@ public sealed partial class QueryRoleRequest : PlainRequest /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -69,7 +74,7 @@ public sealed partial class QueryRoleRequest : PlainRequestmatch_all, bool, term, terms, match, /// ids, prefix, wildcard, exists, range, and simple_query_string. /// You can query the following information associated with roles: name, description, metadata, - /// applications.application, applications.privileges, applications.resources. + /// applications.application, applications.privileges, and applications.resources. /// /// [JsonInclude, JsonPropertyName("query")] @@ -77,7 +82,7 @@ public sealed partial class QueryRoleRequest : PlainRequest /// - /// Search after definition + /// The search after definition. /// /// [JsonInclude, JsonPropertyName("search_after")] @@ -86,6 +91,7 @@ public sealed partial class QueryRoleRequest : PlainRequest /// /// The number of hits to return. + /// It must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -95,7 +101,8 @@ public sealed partial class QueryRoleRequest : PlainRequest /// - /// All public fields of a role are eligible for sorting. + /// The sort definition. + /// You can sort on username, roles, or enabled. /// In addition, sort can also be applied to the _doc field to sort by index order. /// /// @@ -109,7 +116,11 @@ public sealed partial class QueryRoleRequest : PlainRequest /// -/// Get roles in a paginated manner. You can optionally filter the results with a query. +/// Get roles in a paginated manner. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. +/// You can optionally filter the results with a query. +/// Also, the results can be paginated and sorted. /// /// public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor, QueryRoleRequestParameters> @@ -141,8 +152,9 @@ public QueryRoleRequestDescriptor() /// /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -159,7 +171,7 @@ public QueryRoleRequestDescriptor From(int? from) /// The query supports a subset of query types, including match_all, bool, term, terms, match, /// ids, prefix, wildcard, exists, range, and simple_query_string. /// You can query the following information associated with roles: name, description, metadata, - /// applications.application, applications.privileges, applications.resources. + /// applications.application, applications.privileges, and applications.resources. /// /// public QueryRoleRequestDescriptor Query(Elastic.Clients.Elasticsearch.Security.RoleQuery? query) @@ -188,7 +200,7 @@ public QueryRoleRequestDescriptor Query(Action /// - /// Search after definition + /// The search after definition. /// /// public QueryRoleRequestDescriptor SearchAfter(ICollection? searchAfter) @@ -200,6 +212,7 @@ public QueryRoleRequestDescriptor SearchAfter(ICollection /// /// The number of hits to return. + /// It must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -212,7 +225,8 @@ public QueryRoleRequestDescriptor Size(int? size) /// /// - /// All public fields of a role are eligible for sorting. + /// The sort definition. + /// You can sort on username, roles, or enabled. /// In addition, sort can also be applied to the _doc field to sort by index order. /// /// @@ -327,7 +341,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Find roles with a query. /// /// -/// Get roles in a paginated manner. You can optionally filter the results with a query. +/// Get roles in a paginated manner. +/// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. +/// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. +/// You can optionally filter the results with a query. +/// Also, the results can be paginated and sorted. /// /// public sealed partial class QueryRoleRequestDescriptor : RequestDescriptor @@ -359,8 +377,9 @@ public QueryRoleRequestDescriptor() /// /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -377,7 +396,7 @@ public QueryRoleRequestDescriptor From(int? from) /// The query supports a subset of query types, including match_all, bool, term, terms, match, /// ids, prefix, wildcard, exists, range, and simple_query_string. /// You can query the following information associated with roles: name, description, metadata, - /// applications.application, applications.privileges, applications.resources. + /// applications.application, applications.privileges, and applications.resources. /// /// public QueryRoleRequestDescriptor Query(Elastic.Clients.Elasticsearch.Security.RoleQuery? query) @@ -406,7 +425,7 @@ public QueryRoleRequestDescriptor Query(Action /// - /// Search after definition + /// The search after definition. /// /// public QueryRoleRequestDescriptor SearchAfter(ICollection? searchAfter) @@ -418,6 +437,7 @@ public QueryRoleRequestDescriptor SearchAfter(ICollection /// /// The number of hits to return. + /// It must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -430,7 +450,8 @@ public QueryRoleRequestDescriptor Size(int? size) /// /// - /// All public fields of a role are eligible for sorting. + /// The sort definition. + /// You can sort on username, roles, or enabled. /// In addition, sort can also be applied to the _doc field to sort by index order. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs index dab72c52d73..56a0deeb981 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryRoleResponse.g.cs @@ -38,7 +38,12 @@ public sealed partial class QueryRoleResponse : ElasticsearchResponse /// /// - /// The list of roles. + /// A list of roles that match the query. + /// The returned role format is an extension of the role definition format. + /// It adds the transient_metadata.enabled and the _sort fields. + /// transient_metadata.enabled is set to false in case the role is automatically disabled, for example when the role grants privileges that are not allowed by the installed license. + /// _sort is present when the search query sorts on some field. + /// It contains the array of values that have been used for sorting. /// /// [JsonInclude, JsonPropertyName("roles")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs index c5d98d22452..eca270c307e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class QueryUserRequestParameters : RequestParameters { /// /// - /// If true will return the User Profile ID for the users in the query result, if any. + /// Determines whether to retrieve the user profile UID, if it exists, for the users. /// /// public bool? WithProfileUid { get => Q("with_profile_uid"); set => Q("with_profile_uid", value); } @@ -48,6 +48,10 @@ public sealed partial class QueryUserRequestParameters : RequestParameters /// Get information for users in a paginated manner. /// You can optionally filter the results with a query. /// +/// +/// NOTE: As opposed to the get user API, built-in users are excluded from the result. +/// This API is only for native users. +/// /// public sealed partial class QueryUserRequest : PlainRequest { @@ -61,7 +65,7 @@ public sealed partial class QueryUserRequest : PlainRequest /// - /// If true will return the User Profile ID for the users in the query result, if any. + /// Determines whether to retrieve the user profile UID, if it exists, for the users. /// /// [JsonIgnore] @@ -69,8 +73,9 @@ public sealed partial class QueryUserRequest : PlainRequest /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -83,7 +88,7 @@ public sealed partial class QueryUserRequest : PlainRequestmatch_all query. /// The query supports a subset of query types, including match_all, bool, term, terms, match, /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with user: username, roles, enabled + /// You can query the following information associated with user: username, roles, enabled, full_name, and email. /// /// [JsonInclude, JsonPropertyName("query")] @@ -91,7 +96,7 @@ public sealed partial class QueryUserRequest : PlainRequest /// - /// Search after definition + /// The search after definition /// /// [JsonInclude, JsonPropertyName("search_after")] @@ -100,6 +105,7 @@ public sealed partial class QueryUserRequest : PlainRequest /// /// The number of hits to return. + /// It must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -109,7 +115,8 @@ public sealed partial class QueryUserRequest : PlainRequest /// - /// Fields eligible for sorting are: username, roles, enabled + /// The sort definition. + /// Fields eligible for sorting are: username, roles, enabled. /// In addition, sort can also be applied to the _doc field to sort by index order. /// /// @@ -126,6 +133,10 @@ public sealed partial class QueryUserRequest : PlainRequest +/// +/// NOTE: As opposed to the get user API, built-in users are excluded from the result. +/// This API is only for native users. +/// /// public sealed partial class QueryUserRequestDescriptor : RequestDescriptor, QueryUserRequestParameters> { @@ -158,8 +169,9 @@ public QueryUserRequestDescriptor() /// /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -175,7 +187,7 @@ public QueryUserRequestDescriptor From(int? from) /// If the query parameter is missing, it is equivalent to a match_all query. /// The query supports a subset of query types, including match_all, bool, term, terms, match, /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with user: username, roles, enabled + /// You can query the following information associated with user: username, roles, enabled, full_name, and email. /// /// public QueryUserRequestDescriptor Query(Elastic.Clients.Elasticsearch.Security.UserQuery? query) @@ -204,7 +216,7 @@ public QueryUserRequestDescriptor Query(Action /// - /// Search after definition + /// The search after definition /// /// public QueryUserRequestDescriptor SearchAfter(ICollection? searchAfter) @@ -216,6 +228,7 @@ public QueryUserRequestDescriptor SearchAfter(ICollection /// /// The number of hits to return. + /// It must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -228,7 +241,8 @@ public QueryUserRequestDescriptor Size(int? size) /// /// - /// Fields eligible for sorting are: username, roles, enabled + /// The sort definition. + /// Fields eligible for sorting are: username, roles, enabled. /// In addition, sort can also be applied to the _doc field to sort by index order. /// /// @@ -346,6 +360,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Get information for users in a paginated manner. /// You can optionally filter the results with a query. /// +/// +/// NOTE: As opposed to the get user API, built-in users are excluded from the result. +/// This API is only for native users. +/// /// public sealed partial class QueryUserRequestDescriptor : RequestDescriptor { @@ -378,8 +396,9 @@ public QueryUserRequestDescriptor() /// /// - /// Starting document offset. - /// By default, you cannot page through more than 10,000 hits using the from and size parameters. + /// The starting document offset. + /// It must not be negative. + /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// /// @@ -395,7 +414,7 @@ public QueryUserRequestDescriptor From(int? from) /// If the query parameter is missing, it is equivalent to a match_all query. /// The query supports a subset of query types, including match_all, bool, term, terms, match, /// ids, prefix, wildcard, exists, range, and simple_query_string. - /// You can query the following information associated with user: username, roles, enabled + /// You can query the following information associated with user: username, roles, enabled, full_name, and email. /// /// public QueryUserRequestDescriptor Query(Elastic.Clients.Elasticsearch.Security.UserQuery? query) @@ -424,7 +443,7 @@ public QueryUserRequestDescriptor Query(Action /// - /// Search after definition + /// The search after definition /// /// public QueryUserRequestDescriptor SearchAfter(ICollection? searchAfter) @@ -436,6 +455,7 @@ public QueryUserRequestDescriptor SearchAfter(ICollection /// /// The number of hits to return. + /// It must not be negative. /// By default, you cannot page through more than 10,000 hits using the from and size parameters. /// To page through more hits, use the search_after parameter. /// @@ -448,7 +468,8 @@ public QueryUserRequestDescriptor Size(int? size) /// /// - /// Fields eligible for sorting are: username, roles, enabled + /// The sort definition. + /// Fields eligible for sorting are: username, roles, enabled. /// In addition, sort can also be applied to the _doc field to sort by index order. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs index 36090081fc3..bdadd02bb4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/QueryUserResponse.g.cs @@ -46,7 +46,7 @@ public sealed partial class QueryUserResponse : ElasticsearchResponse /// /// - /// A list of user information. + /// A list of users that match the query. /// /// [JsonInclude, JsonPropertyName("users")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs index 478b941c9d3..ee1e858e3d4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateRequest.g.cs @@ -39,7 +39,33 @@ public sealed partial class SamlAuthenticateRequestParameters : RequestParameter /// Authenticate SAML. /// /// -/// Submits a SAML response message to Elasticsearch for consumption. +/// Submit a SAML response message to Elasticsearch for consumption. +/// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// The SAML message that is submitted can be: +/// +/// +/// +/// +/// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. +/// +/// +/// +/// +/// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. +/// +/// +/// +/// +/// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. +/// +/// +/// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. +/// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// /// public sealed partial class SamlAuthenticateRequest : PlainRequest @@ -54,7 +80,7 @@ public sealed partial class SamlAuthenticateRequest : PlainRequest /// - /// The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document. + /// The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document. /// /// [JsonInclude, JsonPropertyName("content")] @@ -62,7 +88,7 @@ public sealed partial class SamlAuthenticateRequest : PlainRequest /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. + /// A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. /// /// [JsonInclude, JsonPropertyName("ids")] @@ -82,7 +108,33 @@ public sealed partial class SamlAuthenticateRequest : PlainRequest /// -/// Submits a SAML response message to Elasticsearch for consumption. +/// Submit a SAML response message to Elasticsearch for consumption. +/// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// The SAML message that is submitted can be: +/// +/// +/// +/// +/// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. +/// +/// +/// +/// +/// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. +/// +/// +/// +/// +/// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. +/// +/// +/// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. +/// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// /// public sealed partial class SamlAuthenticateRequestDescriptor : RequestDescriptor @@ -107,7 +159,7 @@ public SamlAuthenticateRequestDescriptor() /// /// - /// The SAML response as it was sent by the user’s browser, usually a Base64 encoded XML document. + /// The SAML response as it was sent by the user's browser, usually a Base64 encoded XML document. /// /// public SamlAuthenticateRequestDescriptor Content(string content) @@ -118,7 +170,7 @@ public SamlAuthenticateRequestDescriptor Content(string content) /// /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. + /// A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. /// /// public SamlAuthenticateRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Ids ids) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs index 563c505d691..c79371c6f6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlAuthenticateResponse.g.cs @@ -28,14 +28,43 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class SamlAuthenticateResponse : ElasticsearchResponse { + /// + /// + /// The access token that was generated by Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("access_token")] public string AccessToken { get; init; } + + /// + /// + /// The amount of time (in seconds) left until the token expires. + /// + /// [JsonInclude, JsonPropertyName("expires_in")] public int ExpiresIn { get; init; } + + /// + /// + /// The name of the realm where the user was authenticated. + /// + /// [JsonInclude, JsonPropertyName("realm")] public string Realm { get; init; } + + /// + /// + /// The refresh token that was generated by Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("refresh_token")] public string RefreshToken { get; init; } + + /// + /// + /// The authenticated user's name. + /// + /// [JsonInclude, JsonPropertyName("username")] public string Username { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs index 9224bf81328..1783bafce95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlCompleteLogoutRequest.g.cs @@ -41,6 +41,17 @@ public sealed partial class SamlCompleteLogoutRequestParameters : RequestParamet /// /// Verifies the logout response sent from the SAML IdP. /// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. +/// This API verifies the response by ensuring the content is relevant and validating its signature. +/// An empty response is returned if the verification process is successful. +/// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. +/// The caller of this API must prepare the request accordingly so that this API can handle either of them. +/// /// public sealed partial class SamlCompleteLogoutRequest : PlainRequest { @@ -62,7 +73,7 @@ public sealed partial class SamlCompleteLogoutRequest : PlainRequest /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. + /// A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. /// /// [JsonInclude, JsonPropertyName("ids")] @@ -92,6 +103,17 @@ public sealed partial class SamlCompleteLogoutRequest : PlainRequest /// Verifies the logout response sent from the SAML IdP. /// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. +/// This API verifies the response by ensuring the content is relevant and validating its signature. +/// An empty response is returned if the verification process is successful. +/// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. +/// The caller of this API must prepare the request accordingly so that this API can handle either of them. +/// /// public sealed partial class SamlCompleteLogoutRequestDescriptor : RequestDescriptor { @@ -127,7 +149,7 @@ public SamlCompleteLogoutRequestDescriptor Content(string? content) /// /// - /// A json array with all the valid SAML Request Ids that the caller of the API has for the current user. + /// A JSON array with all the valid SAML Request Ids that the caller of the API has for the current user. /// /// public SamlCompleteLogoutRequestDescriptor Ids(Elastic.Clients.Elasticsearch.Ids ids) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs index 987ee8fde44..f428cb87bcf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateRequest.g.cs @@ -39,7 +39,17 @@ public sealed partial class SamlInvalidateRequestParameters : RequestParameters /// Invalidate SAML. /// /// -/// Submits a SAML LogoutRequest message to Elasticsearch for consumption. +/// Submit a SAML LogoutRequest message to Elasticsearch for consumption. +/// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// The logout request comes from the SAML IdP during an IdP initiated Single Logout. +/// The custom web application can use this API to have Elasticsearch process the LogoutRequest. +/// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. +/// Thus the user can be redirected back to their IdP. /// /// public sealed partial class SamlInvalidateRequest : PlainRequest @@ -54,7 +64,7 @@ public sealed partial class SamlInvalidateRequest : PlainRequest /// - /// The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the realm parameter. + /// The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the realm parameter. /// /// [JsonInclude, JsonPropertyName("acs")] @@ -63,9 +73,9 @@ public sealed partial class SamlInvalidateRequest : PlainRequest /// /// The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout. - /// This query should include a single parameter named SAMLRequest that contains a SAML logout request that is deflated and Base64 encoded. - /// If the SAML IdP has signed the logout request, the URL should include two extra parameters named SigAlg and Signature that contain the algorithm used for the signature and the signature value itself. - /// In order for Elasticsearch to be able to verify the IdP’s signature, the value of the query_string field must be an exact match to the string provided by the browser. + /// This query should include a single parameter named SAMLRequest that contains a SAML logout request that is deflated and Base64 encoded. + /// If the SAML IdP has signed the logout request, the URL should include two extra parameters named SigAlg and Signature that contain the algorithm used for the signature and the signature value itself. + /// In order for Elasticsearch to be able to verify the IdP's signature, the value of the query_string field must be an exact match to the string provided by the browser. /// The client application must not attempt to parse or process the string in any way. /// /// @@ -74,7 +84,7 @@ public sealed partial class SamlInvalidateRequest : PlainRequest /// - /// The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the acs parameter. + /// The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the acs parameter. /// /// [JsonInclude, JsonPropertyName("realm")] @@ -86,7 +96,17 @@ public sealed partial class SamlInvalidateRequest : PlainRequest /// -/// Submits a SAML LogoutRequest message to Elasticsearch for consumption. +/// Submit a SAML LogoutRequest message to Elasticsearch for consumption. +/// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// The logout request comes from the SAML IdP during an IdP initiated Single Logout. +/// The custom web application can use this API to have Elasticsearch process the LogoutRequest. +/// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. +/// Thus the user can be redirected back to their IdP. /// /// public sealed partial class SamlInvalidateRequestDescriptor : RequestDescriptor @@ -111,7 +131,7 @@ public SamlInvalidateRequestDescriptor() /// /// - /// The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the realm parameter. + /// The Assertion Consumer Service URL that matches the one of the SAML realm in Elasticsearch that should be used. You must specify either this parameter or the realm parameter. /// /// public SamlInvalidateRequestDescriptor Acs(string? acs) @@ -123,9 +143,9 @@ public SamlInvalidateRequestDescriptor Acs(string? acs) /// /// /// The query part of the URL that the user was redirected to by the SAML IdP to initiate the Single Logout. - /// This query should include a single parameter named SAMLRequest that contains a SAML logout request that is deflated and Base64 encoded. - /// If the SAML IdP has signed the logout request, the URL should include two extra parameters named SigAlg and Signature that contain the algorithm used for the signature and the signature value itself. - /// In order for Elasticsearch to be able to verify the IdP’s signature, the value of the query_string field must be an exact match to the string provided by the browser. + /// This query should include a single parameter named SAMLRequest that contains a SAML logout request that is deflated and Base64 encoded. + /// If the SAML IdP has signed the logout request, the URL should include two extra parameters named SigAlg and Signature that contain the algorithm used for the signature and the signature value itself. + /// In order for Elasticsearch to be able to verify the IdP's signature, the value of the query_string field must be an exact match to the string provided by the browser. /// The client application must not attempt to parse or process the string in any way. /// /// @@ -137,7 +157,7 @@ public SamlInvalidateRequestDescriptor QueryString(string queryString) /// /// - /// The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the acs parameter. + /// The name of the SAML realm in Elasticsearch the configuration. You must specify either this parameter or the acs parameter. /// /// public SamlInvalidateRequestDescriptor Realm(string? realm) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs index afb8237ad22..d905cc45799 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlInvalidateResponse.g.cs @@ -28,10 +28,27 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class SamlInvalidateResponse : ElasticsearchResponse { + /// + /// + /// The number of tokens that were invalidated as part of this logout. + /// + /// [JsonInclude, JsonPropertyName("invalidated")] public int Invalidated { get; init; } + + /// + /// + /// The realm name of the SAML realm in Elasticsearch that authenticated the user. + /// + /// [JsonInclude, JsonPropertyName("realm")] public string Realm { get; init; } + + /// + /// + /// A SAML logout response as a parameter so that the user can be redirected back to the SAML IdP. + /// + /// [JsonInclude, JsonPropertyName("redirect")] public string Redirect { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs index ffa0b19985c..3da82e55162 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutRequest.g.cs @@ -41,6 +41,14 @@ public sealed partial class SamlLogoutRequestParameters : RequestParameters /// /// Submits a request to invalidate an access token and refresh token. /// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// This API invalidates the tokens that were generated for a user by the SAML authenticate API. +/// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). +/// /// public sealed partial class SamlLogoutRequest : PlainRequest { @@ -64,7 +72,7 @@ public sealed partial class SamlLogoutRequest : PlainRequest /// /// The access token that was returned as a response to calling the SAML authenticate API. - /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. + /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. /// /// [JsonInclude, JsonPropertyName("token")] @@ -78,6 +86,14 @@ public sealed partial class SamlLogoutRequest : PlainRequest /// Submits a request to invalidate an access token and refresh token. /// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// This API invalidates the tokens that were generated for a user by the SAML authenticate API. +/// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). +/// /// public sealed partial class SamlLogoutRequestDescriptor : RequestDescriptor { @@ -113,7 +129,7 @@ public SamlLogoutRequestDescriptor RefreshToken(string? refreshToken) /// /// /// The access token that was returned as a response to calling the SAML authenticate API. - /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. + /// Alternatively, the most recent token that was received after refreshing the original one by using a refresh_token. /// /// public SamlLogoutRequestDescriptor Token(string token) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs index 07e111b2a2b..865d73829e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlLogoutResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class SamlLogoutResponse : ElasticsearchResponse { + /// + /// + /// A URL that contains a SAML logout request as a parameter. + /// You can use this URL to be redirected back to the SAML IdP and to initiate Single Logout. + /// + /// [JsonInclude, JsonPropertyName("redirect")] public string Redirect { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs index 9afa7d595d4..6184b009bdc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationRequest.g.cs @@ -39,7 +39,20 @@ public sealed partial class SamlPrepareAuthenticationRequestParameters : Request /// Prepare SAML authentication. /// /// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. +/// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. +/// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// This API returns a URL pointing to the SAML Identity Provider. +/// You can use the URL to redirect the browser of the user in order to continue the authentication process. +/// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. +/// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. +/// These parameters contain the algorithm used for the signature and the signature value itself. +/// It also returns a random string that uniquely identifies this SAML Authentication request. +/// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// /// public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest @@ -55,7 +68,7 @@ public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest /// /// The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. - /// The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter. + /// The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter. /// /// [JsonInclude, JsonPropertyName("acs")] @@ -64,7 +77,7 @@ public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest /// /// The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request. - /// You must specify either this parameter or the acs parameter. + /// You must specify either this parameter or the acs parameter. /// /// [JsonInclude, JsonPropertyName("realm")] @@ -72,7 +85,7 @@ public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest /// - /// A string that will be included in the redirect URL that this API returns as the RelayState query parameter. + /// A string that will be included in the redirect URL that this API returns as the RelayState query parameter. /// If the Authentication Request is signed, this value is used as part of the signature computation. /// /// @@ -85,7 +98,20 @@ public sealed partial class SamlPrepareAuthenticationRequest : PlainRequest /// -/// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. +/// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. +/// +/// +/// NOTE: This API is intended for use by custom web applications other than Kibana. +/// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. +/// +/// +/// This API returns a URL pointing to the SAML Identity Provider. +/// You can use the URL to redirect the browser of the user in order to continue the authentication process. +/// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. +/// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. +/// These parameters contain the algorithm used for the signature and the signature value itself. +/// It also returns a random string that uniquely identifies this SAML Authentication request. +/// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// /// public sealed partial class SamlPrepareAuthenticationRequestDescriptor : RequestDescriptor @@ -111,7 +137,7 @@ public SamlPrepareAuthenticationRequestDescriptor() /// /// /// The Assertion Consumer Service URL that matches the one of the SAML realms in Elasticsearch. - /// The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter. + /// The realm is used to generate the authentication request. You must specify either this parameter or the realm parameter. /// /// public SamlPrepareAuthenticationRequestDescriptor Acs(string? acs) @@ -123,7 +149,7 @@ public SamlPrepareAuthenticationRequestDescriptor Acs(string? acs) /// /// /// The name of the SAML realm in Elasticsearch for which the configuration is used to generate the authentication request. - /// You must specify either this parameter or the acs parameter. + /// You must specify either this parameter or the acs parameter. /// /// public SamlPrepareAuthenticationRequestDescriptor Realm(string? realm) @@ -134,7 +160,7 @@ public SamlPrepareAuthenticationRequestDescriptor Realm(string? realm) /// /// - /// A string that will be included in the redirect URL that this API returns as the RelayState query parameter. + /// A string that will be included in the redirect URL that this API returns as the RelayState query parameter. /// If the Authentication Request is signed, this value is used as part of the signature computation. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs index dd6dd3b5d56..898d103b4ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlPrepareAuthenticationResponse.g.cs @@ -28,10 +28,27 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class SamlPrepareAuthenticationResponse : ElasticsearchResponse { + /// + /// + /// A unique identifier for the SAML Request to be stored by the caller of the API. + /// + /// [JsonInclude, JsonPropertyName("id")] public string Id { get; init; } + + /// + /// + /// The name of the Elasticsearch realm that was used to construct the authentication request. + /// + /// [JsonInclude, JsonPropertyName("realm")] public string Realm { get; init; } + + /// + /// + /// The URL to redirect the user to. + /// + /// [JsonInclude, JsonPropertyName("redirect")] public string Redirect { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs index 009395c49bc..cfc267d2636 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataRequest.g.cs @@ -41,6 +41,10 @@ public sealed partial class SamlServiceProviderMetadataRequestParameters : Reque /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// +/// +/// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. +/// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. +/// /// public sealed partial class SamlServiceProviderMetadataRequest : PlainRequest { @@ -64,6 +68,10 @@ public SamlServiceProviderMetadataRequest(Elastic.Clients.Elasticsearch.Name rea /// /// Generate SAML metadata for a SAML 2.0 Service Provider. /// +/// +/// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. +/// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. +/// /// public sealed partial class SamlServiceProviderMetadataRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs index b64c8776d95..6535cf400cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SamlServiceProviderMetadataResponse.g.cs @@ -28,6 +28,11 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class SamlServiceProviderMetadataResponse : ElasticsearchResponse { + /// + /// + /// An XML string that contains a SAML Service Provider's metadata for the realm. + /// + /// [JsonInclude, JsonPropertyName("metadata")] public string Metadata { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs index c6596d47ecb..26583a14faf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesRequest.g.cs @@ -41,6 +41,11 @@ public sealed partial class SuggestUserProfilesRequestParameters : RequestParame /// /// Get suggestions for user profiles that match specified search criteria. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// /// public sealed partial class SuggestUserProfilesRequest : PlainRequest { @@ -54,10 +59,11 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. - /// By default returns no data content. + /// A comma-separated list of filters for the data field of the profile document. + /// To return all content use data=*. + /// To return a subset of content, use data=<key> to retrieve content nested under the specified <key>. + /// By default, the API returns no data content. + /// It is an error to specify data as both the query parameter and the request body field. /// /// [JsonInclude, JsonPropertyName("data")] @@ -68,8 +74,7 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// Extra search criteria to improve relevance of the suggestion result. /// Profiles matching the spcified hint are ranked higher in the response. - /// Profiles not matching the hint don't exclude the profile from the response - /// as long as the profile matches the name field query. + /// Profiles not matching the hint aren't excluded from the response as long as the profile matches the name field query. /// /// [JsonInclude, JsonPropertyName("hint")] @@ -77,7 +82,7 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// - /// Query string used to match name-related fields in user profile documents. + /// A query string used to match name-related fields in user profile documents. /// Name-related fields are the user's username, full_name, and email. /// /// @@ -86,7 +91,7 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// - /// Number of profiles to return. + /// The number of profiles to return. /// /// [JsonInclude, JsonPropertyName("size")] @@ -100,6 +105,11 @@ public sealed partial class SuggestUserProfilesRequest : PlainRequest /// Get suggestions for user profiles that match specified search criteria. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// /// public sealed partial class SuggestUserProfilesRequestDescriptor : RequestDescriptor { @@ -126,10 +136,11 @@ public SuggestUserProfilesRequestDescriptor() /// /// - /// List of filters for the data field of the profile document. - /// To return all content use data=*. To return a subset of content - /// use data=<key> to retrieve content nested under the specified <key>. - /// By default returns no data content. + /// A comma-separated list of filters for the data field of the profile document. + /// To return all content use data=*. + /// To return a subset of content, use data=<key> to retrieve content nested under the specified <key>. + /// By default, the API returns no data content. + /// It is an error to specify data as both the query parameter and the request body field. /// /// public SuggestUserProfilesRequestDescriptor Data(ICollection? data) @@ -142,8 +153,7 @@ public SuggestUserProfilesRequestDescriptor Data(ICollection? data) /// /// Extra search criteria to improve relevance of the suggestion result. /// Profiles matching the spcified hint are ranked higher in the response. - /// Profiles not matching the hint don't exclude the profile from the response - /// as long as the profile matches the name field query. + /// Profiles not matching the hint aren't excluded from the response as long as the profile matches the name field query. /// /// public SuggestUserProfilesRequestDescriptor Hint(Elastic.Clients.Elasticsearch.Security.Hint? hint) @@ -172,7 +182,7 @@ public SuggestUserProfilesRequestDescriptor Hint(Action /// - /// Query string used to match name-related fields in user profile documents. + /// A query string used to match name-related fields in user profile documents. /// Name-related fields are the user's username, full_name, and email. /// /// @@ -184,7 +194,7 @@ public SuggestUserProfilesRequestDescriptor Name(string? name) /// /// - /// Number of profiles to return. + /// The number of profiles to return. /// /// public SuggestUserProfilesRequestDescriptor Size(long? size) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs index 9ab634abb11..442800a1a8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/SuggestUserProfilesResponse.g.cs @@ -28,10 +28,27 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class SuggestUserProfilesResponse : ElasticsearchResponse { + /// + /// + /// A list of profile documents, ordered by relevance, that match the search criteria. + /// + /// [JsonInclude, JsonPropertyName("profiles")] public IReadOnlyCollection Profiles { get; init; } + + /// + /// + /// The number of milliseconds it took Elasticsearch to run the request. + /// + /// [JsonInclude, JsonPropertyName("took")] public long Took { get; init; } + + /// + /// + /// Metadata about the number of matching profiles. + /// + /// [JsonInclude, JsonPropertyName("total")] public Elastic.Clients.Elasticsearch.Security.TotalUserProfiles Total { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs index 15a488a199c..0c219cdf8c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyRequest.g.cs @@ -39,19 +39,29 @@ public sealed partial class UpdateApiKeyRequestParameters : RequestParameters /// Update an API key. /// /// -/// Updates attributes of an existing API key. +/// Update attributes of an existing API key. +/// This API supports updates to an API key's access scope, expiration, and metadata. +/// +/// +/// To use this API, you must have at least the manage_own_api_key cluster privilege. /// Users can only update API keys that they created or that were granted to them. -/// Use this API to update API keys created by the create API Key or grant API Key APIs. -/// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. -/// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. -/// This API supports updates to an API key’s access scope and metadata. -/// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. -/// The snapshot of the owner’s permissions is updated automatically on every call. -/// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. -/// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. -/// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. -/// To update an API key, the owner user’s credentials are required. +/// +/// +/// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. +/// +/// +/// Use this API to update API keys created by the create API key or grant API Key APIs. +/// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. +/// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. +/// +/// +/// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. +/// The snapshot of the owner's permissions is updated automatically on every call. +/// +/// +/// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. +/// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// /// public sealed partial class UpdateApiKeyRequest : PlainRequest @@ -70,7 +80,9 @@ public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// - /// Expiration time for the API key. + /// The expiration time for the API key. + /// By default, API keys never expire. + /// This property can be omitted to leave the expiration unchanged. /// /// [JsonInclude, JsonPropertyName("expiration")] @@ -78,7 +90,10 @@ public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. + /// Arbitrary metadata that you want to associate with the API key. + /// It supports a nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// When specified, this value fully replaces the metadata previously associated with the API key. /// /// [JsonInclude, JsonPropertyName("metadata")] @@ -86,7 +101,13 @@ public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. + /// The role descriptors to assign to this API key. + /// The API key's effective permissions are an intersection of its assigned privileges and the point in time snapshot of permissions of the owner user. + /// You can assign new privileges by specifying them in this parameter. + /// To remove assigned privileges, you can supply an empty role_descriptors parameter, that is to say, an empty object {}. + /// If an API key has no assigned privileges, it inherits the owner user's full permissions. + /// The snapshot of the owner's permissions is always updated, whether you supply the role_descriptors parameter or not. + /// The structure of a role descriptor is the same as the request for the create API keys API. /// /// [JsonInclude, JsonPropertyName("role_descriptors")] @@ -98,19 +119,29 @@ public UpdateApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re /// Update an API key. /// /// -/// Updates attributes of an existing API key. +/// Update attributes of an existing API key. +/// This API supports updates to an API key's access scope, expiration, and metadata. +/// +/// +/// To use this API, you must have at least the manage_own_api_key cluster privilege. /// Users can only update API keys that they created or that were granted to them. -/// Use this API to update API keys created by the create API Key or grant API Key APIs. -/// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. -/// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. -/// This API supports updates to an API key’s access scope and metadata. -/// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. -/// The snapshot of the owner’s permissions is updated automatically on every call. -/// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. -/// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. -/// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. -/// To update an API key, the owner user’s credentials are required. +/// +/// +/// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. +/// +/// +/// Use this API to update API keys created by the create API key or grant API Key APIs. +/// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. +/// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. +/// +/// +/// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. +/// The snapshot of the owner's permissions is updated automatically on every call. +/// +/// +/// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. +/// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// /// public sealed partial class UpdateApiKeyRequestDescriptor : RequestDescriptor, UpdateApiKeyRequestParameters> @@ -141,7 +172,9 @@ public UpdateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch /// /// - /// Expiration time for the API key. + /// The expiration time for the API key. + /// By default, API keys never expire. + /// This property can be omitted to leave the expiration unchanged. /// /// public UpdateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) @@ -152,7 +185,10 @@ public UpdateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elast /// /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. + /// Arbitrary metadata that you want to associate with the API key. + /// It supports a nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// When specified, this value fully replaces the metadata previously associated with the API key. /// /// public UpdateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) @@ -163,7 +199,13 @@ public UpdateApiKeyRequestDescriptor Metadata(Func /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. + /// The role descriptors to assign to this API key. + /// The API key's effective permissions are an intersection of its assigned privileges and the point in time snapshot of permissions of the owner user. + /// You can assign new privileges by specifying them in this parameter. + /// To remove assigned privileges, you can supply an empty role_descriptors parameter, that is to say, an empty object {}. + /// If an API key has no assigned privileges, it inherits the owner user's full permissions. + /// The snapshot of the owner's permissions is always updated, whether you supply the role_descriptors parameter or not. + /// The structure of a role descriptor is the same as the request for the create API keys API. /// /// public UpdateApiKeyRequestDescriptor RoleDescriptors(Func>, FluentDescriptorDictionary>> selector) @@ -202,19 +244,29 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Update an API key. /// /// -/// Updates attributes of an existing API key. +/// Update attributes of an existing API key. +/// This API supports updates to an API key's access scope, expiration, and metadata. +/// +/// +/// To use this API, you must have at least the manage_own_api_key cluster privilege. /// Users can only update API keys that they created or that were granted to them. -/// Use this API to update API keys created by the create API Key or grant API Key APIs. -/// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. -/// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. -/// This API supports updates to an API key’s access scope and metadata. -/// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. -/// The snapshot of the owner’s permissions is updated automatically on every call. -/// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. -/// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. -/// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. -/// To update an API key, the owner user’s credentials are required. +/// +/// +/// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. +/// +/// +/// Use this API to update API keys created by the create API key or grant API Key APIs. +/// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. +/// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. +/// +/// +/// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. +/// The snapshot of the owner's permissions is updated automatically on every call. +/// +/// +/// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. +/// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// /// public sealed partial class UpdateApiKeyRequestDescriptor : RequestDescriptor @@ -245,7 +297,9 @@ public UpdateApiKeyRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) /// /// - /// Expiration time for the API key. + /// The expiration time for the API key. + /// By default, API keys never expire. + /// This property can be omitted to leave the expiration unchanged. /// /// public UpdateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? expiration) @@ -256,7 +310,10 @@ public UpdateApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Du /// /// - /// Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage. + /// Arbitrary metadata that you want to associate with the API key. + /// It supports a nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// When specified, this value fully replaces the metadata previously associated with the API key. /// /// public UpdateApiKeyRequestDescriptor Metadata(Func, FluentDictionary> selector) @@ -267,7 +324,13 @@ public UpdateApiKeyRequestDescriptor Metadata(Func /// - /// An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API. + /// The role descriptors to assign to this API key. + /// The API key's effective permissions are an intersection of its assigned privileges and the point in time snapshot of permissions of the owner user. + /// You can assign new privileges by specifying them in this parameter. + /// To remove assigned privileges, you can supply an empty role_descriptors parameter, that is to say, an empty object {}. + /// If an API key has no assigned privileges, it inherits the owner user's full permissions. + /// The snapshot of the owner's permissions is always updated, whether you supply the role_descriptors parameter or not. + /// The structure of a role descriptor is the same as the request for the create API keys API. /// /// public UpdateApiKeyRequestDescriptor RoleDescriptors(Func, FluentDescriptorDictionary> selector) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs index ceeb922e33e..601c40bae2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateApiKeyResponse.g.cs @@ -31,7 +31,7 @@ public sealed partial class UpdateApiKeyResponse : ElasticsearchResponse /// /// /// If true, the API key was updated. - /// If false, the API key didn’t change because no change was detected. + /// If false, the API key didn't change because no change was detected. /// /// [JsonInclude, JsonPropertyName("updated")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs index c93f01a473e..ddb44dbad2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateCrossClusterApiKeyRequest.g.cs @@ -41,6 +41,25 @@ public sealed partial class UpdateCrossClusterApiKeyRequestParameters : RequestP /// /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. /// +/// +/// To use this API, you must have at least the manage_security cluster privilege. +/// Users can only update API keys that they created. +/// To update another user's API key, use the run_as feature to submit a request on behalf of another user. +/// +/// +/// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. +/// To update an API key, the owner user's credentials are required. +/// +/// +/// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. +/// +/// +/// This API supports updates to an API key's access scope, metadata, and expiration. +/// The owner user's information, such as the username and realm, is also updated automatically on every call. +/// +/// +/// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. +/// /// public sealed partial class UpdateCrossClusterApiKeyRequest : PlainRequest { @@ -69,7 +88,7 @@ public UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : ba /// /// - /// Expiration time for the API key. + /// The expiration time for the API key. /// By default, API keys never expire. This property can be omitted to leave the value unchanged. /// /// @@ -95,6 +114,25 @@ public UpdateCrossClusterApiKeyRequest(Elastic.Clients.Elasticsearch.Id id) : ba /// /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. /// +/// +/// To use this API, you must have at least the manage_security cluster privilege. +/// Users can only update API keys that they created. +/// To update another user's API key, use the run_as feature to submit a request on behalf of another user. +/// +/// +/// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. +/// To update an API key, the owner user's credentials are required. +/// +/// +/// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. +/// +/// +/// This API supports updates to an API key's access scope, metadata, and expiration. +/// The owner user's information, such as the username and realm, is also updated automatically on every call. +/// +/// +/// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. +/// /// public sealed partial class UpdateCrossClusterApiKeyRequestDescriptor : RequestDescriptor, UpdateCrossClusterApiKeyRequestParameters> { @@ -158,7 +196,7 @@ public UpdateCrossClusterApiKeyRequestDescriptor Access(Action /// - /// Expiration time for the API key. + /// The expiration time for the API key. /// By default, API keys never expire. This property can be omitted to leave the value unchanged. /// /// @@ -224,6 +262,25 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. /// +/// +/// To use this API, you must have at least the manage_security cluster privilege. +/// Users can only update API keys that they created. +/// To update another user's API key, use the run_as feature to submit a request on behalf of another user. +/// +/// +/// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. +/// To update an API key, the owner user's credentials are required. +/// +/// +/// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. +/// +/// +/// This API supports updates to an API key's access scope, metadata, and expiration. +/// The owner user's information, such as the username and realm, is also updated automatically on every call. +/// +/// +/// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. +/// /// public sealed partial class UpdateCrossClusterApiKeyRequestDescriptor : RequestDescriptor { @@ -287,7 +344,7 @@ public UpdateCrossClusterApiKeyRequestDescriptor Access(Action /// - /// Expiration time for the API key. + /// The expiration time for the API key. /// By default, API keys never expire. This property can be omitted to leave the value unchanged. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs new file mode 100644 index 00000000000..2564ff8cc9e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsRequest.g.cs @@ -0,0 +1,490 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class UpdateSettingsRequestParameters : RequestParameters +{ + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Update security index settings. +/// +/// +/// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. +/// +/// +/// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. +/// +/// +/// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. +/// This API does not yet support configuring the settings for indices before they are in use. +/// +/// +public sealed partial class UpdateSettingsRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.update_settings"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// Settings for the index used for most security configuration, including native realm users and roles configured with the API. + /// + /// + [JsonInclude, JsonPropertyName("security")] + public Elastic.Clients.Elasticsearch.Security.SecuritySettings? Security { get; set; } + + /// + /// + /// Settings for the index used to store profile information. + /// + /// + [JsonInclude, JsonPropertyName("security-profile")] + public Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityProfile { get; set; } + + /// + /// + /// Settings for the index used to store tokens. + /// + /// + [JsonInclude, JsonPropertyName("security-tokens")] + public Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityTokens { get; set; } +} + +/// +/// +/// Update security index settings. +/// +/// +/// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. +/// +/// +/// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. +/// +/// +/// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. +/// This API does not yet support configuring the settings for indices before they are in use. +/// +/// +public sealed partial class UpdateSettingsRequestDescriptor : RequestDescriptor, UpdateSettingsRequestParameters> +{ + internal UpdateSettingsRequestDescriptor(Action> configure) => configure.Invoke(this); + + public UpdateSettingsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.update_settings"; + + public UpdateSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public UpdateSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + private Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor SecurityDescriptor { get; set; } + private Action> SecurityDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityProfileValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor SecurityProfileDescriptor { get; set; } + private Action> SecurityProfileDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityTokensValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor SecurityTokensDescriptor { get; set; } + private Action> SecurityTokensDescriptorAction { get; set; } + + /// + /// + /// Settings for the index used for most security configuration, including native realm users and roles configured with the API. + /// + /// + public UpdateSettingsRequestDescriptor Security(Elastic.Clients.Elasticsearch.Security.SecuritySettings? security) + { + SecurityDescriptor = null; + SecurityDescriptorAction = null; + SecurityValue = security; + return Self; + } + + public UpdateSettingsRequestDescriptor Security(Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor descriptor) + { + SecurityValue = null; + SecurityDescriptorAction = null; + SecurityDescriptor = descriptor; + return Self; + } + + public UpdateSettingsRequestDescriptor Security(Action> configure) + { + SecurityValue = null; + SecurityDescriptor = null; + SecurityDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings for the index used to store profile information. + /// + /// + public UpdateSettingsRequestDescriptor SecurityProfile(Elastic.Clients.Elasticsearch.Security.SecuritySettings? securityProfile) + { + SecurityProfileDescriptor = null; + SecurityProfileDescriptorAction = null; + SecurityProfileValue = securityProfile; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityProfile(Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor descriptor) + { + SecurityProfileValue = null; + SecurityProfileDescriptorAction = null; + SecurityProfileDescriptor = descriptor; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityProfile(Action> configure) + { + SecurityProfileValue = null; + SecurityProfileDescriptor = null; + SecurityProfileDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings for the index used to store tokens. + /// + /// + public UpdateSettingsRequestDescriptor SecurityTokens(Elastic.Clients.Elasticsearch.Security.SecuritySettings? securityTokens) + { + SecurityTokensDescriptor = null; + SecurityTokensDescriptorAction = null; + SecurityTokensValue = securityTokens; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityTokens(Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor descriptor) + { + SecurityTokensValue = null; + SecurityTokensDescriptorAction = null; + SecurityTokensDescriptor = descriptor; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityTokens(Action> configure) + { + SecurityTokensValue = null; + SecurityTokensDescriptor = null; + SecurityTokensDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (SecurityDescriptor is not null) + { + writer.WritePropertyName("security"); + JsonSerializer.Serialize(writer, SecurityDescriptor, options); + } + else if (SecurityDescriptorAction is not null) + { + writer.WritePropertyName("security"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor(SecurityDescriptorAction), options); + } + else if (SecurityValue is not null) + { + writer.WritePropertyName("security"); + JsonSerializer.Serialize(writer, SecurityValue, options); + } + + if (SecurityProfileDescriptor is not null) + { + writer.WritePropertyName("security-profile"); + JsonSerializer.Serialize(writer, SecurityProfileDescriptor, options); + } + else if (SecurityProfileDescriptorAction is not null) + { + writer.WritePropertyName("security-profile"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor(SecurityProfileDescriptorAction), options); + } + else if (SecurityProfileValue is not null) + { + writer.WritePropertyName("security-profile"); + JsonSerializer.Serialize(writer, SecurityProfileValue, options); + } + + if (SecurityTokensDescriptor is not null) + { + writer.WritePropertyName("security-tokens"); + JsonSerializer.Serialize(writer, SecurityTokensDescriptor, options); + } + else if (SecurityTokensDescriptorAction is not null) + { + writer.WritePropertyName("security-tokens"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor(SecurityTokensDescriptorAction), options); + } + else if (SecurityTokensValue is not null) + { + writer.WritePropertyName("security-tokens"); + JsonSerializer.Serialize(writer, SecurityTokensValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// +/// Update security index settings. +/// +/// +/// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. +/// +/// +/// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. +/// +/// +/// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. +/// This API does not yet support configuring the settings for indices before they are in use. +/// +/// +public sealed partial class UpdateSettingsRequestDescriptor : RequestDescriptor +{ + internal UpdateSettingsRequestDescriptor(Action configure) => configure.Invoke(this); + + public UpdateSettingsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SecurityUpdateSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.update_settings"; + + public UpdateSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public UpdateSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + private Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor SecurityDescriptor { get; set; } + private Action SecurityDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityProfileValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor SecurityProfileDescriptor { get; set; } + private Action SecurityProfileDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettings? SecurityTokensValue { get; set; } + private Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor SecurityTokensDescriptor { get; set; } + private Action SecurityTokensDescriptorAction { get; set; } + + /// + /// + /// Settings for the index used for most security configuration, including native realm users and roles configured with the API. + /// + /// + public UpdateSettingsRequestDescriptor Security(Elastic.Clients.Elasticsearch.Security.SecuritySettings? security) + { + SecurityDescriptor = null; + SecurityDescriptorAction = null; + SecurityValue = security; + return Self; + } + + public UpdateSettingsRequestDescriptor Security(Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor descriptor) + { + SecurityValue = null; + SecurityDescriptorAction = null; + SecurityDescriptor = descriptor; + return Self; + } + + public UpdateSettingsRequestDescriptor Security(Action configure) + { + SecurityValue = null; + SecurityDescriptor = null; + SecurityDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings for the index used to store profile information. + /// + /// + public UpdateSettingsRequestDescriptor SecurityProfile(Elastic.Clients.Elasticsearch.Security.SecuritySettings? securityProfile) + { + SecurityProfileDescriptor = null; + SecurityProfileDescriptorAction = null; + SecurityProfileValue = securityProfile; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityProfile(Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor descriptor) + { + SecurityProfileValue = null; + SecurityProfileDescriptorAction = null; + SecurityProfileDescriptor = descriptor; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityProfile(Action configure) + { + SecurityProfileValue = null; + SecurityProfileDescriptor = null; + SecurityProfileDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings for the index used to store tokens. + /// + /// + public UpdateSettingsRequestDescriptor SecurityTokens(Elastic.Clients.Elasticsearch.Security.SecuritySettings? securityTokens) + { + SecurityTokensDescriptor = null; + SecurityTokensDescriptorAction = null; + SecurityTokensValue = securityTokens; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityTokens(Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor descriptor) + { + SecurityTokensValue = null; + SecurityTokensDescriptorAction = null; + SecurityTokensDescriptor = descriptor; + return Self; + } + + public UpdateSettingsRequestDescriptor SecurityTokens(Action configure) + { + SecurityTokensValue = null; + SecurityTokensDescriptor = null; + SecurityTokensDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (SecurityDescriptor is not null) + { + writer.WritePropertyName("security"); + JsonSerializer.Serialize(writer, SecurityDescriptor, options); + } + else if (SecurityDescriptorAction is not null) + { + writer.WritePropertyName("security"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor(SecurityDescriptorAction), options); + } + else if (SecurityValue is not null) + { + writer.WritePropertyName("security"); + JsonSerializer.Serialize(writer, SecurityValue, options); + } + + if (SecurityProfileDescriptor is not null) + { + writer.WritePropertyName("security-profile"); + JsonSerializer.Serialize(writer, SecurityProfileDescriptor, options); + } + else if (SecurityProfileDescriptorAction is not null) + { + writer.WritePropertyName("security-profile"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor(SecurityProfileDescriptorAction), options); + } + else if (SecurityProfileValue is not null) + { + writer.WritePropertyName("security-profile"); + JsonSerializer.Serialize(writer, SecurityProfileValue, options); + } + + if (SecurityTokensDescriptor is not null) + { + writer.WritePropertyName("security-tokens"); + JsonSerializer.Serialize(writer, SecurityTokensDescriptor, options); + } + else if (SecurityTokensDescriptorAction is not null) + { + writer.WritePropertyName("security-tokens"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Security.SecuritySettingsDescriptor(SecurityTokensDescriptorAction), options); + } + else if (SecurityTokensValue is not null) + { + writer.WritePropertyName("security-tokens"); + JsonSerializer.Serialize(writer, SecurityTokensValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs new file mode 100644 index 00000000000..0aeb2aa7ab6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateSettingsResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class UpdateSettingsResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs index 98048ccd890..1b23f342c53 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/UpdateUserProfileDataRequest.g.cs @@ -49,8 +49,9 @@ public sealed partial class UpdateUserProfileDataRequestParameters : RequestPara /// /// /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', nothing is done with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -63,6 +64,34 @@ public sealed partial class UpdateUserProfileDataRequestParameters : RequestPara /// /// Update specific data for the user profile that is associated with a unique ID. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The manage_user_profile cluster privilege. +/// +/// +/// +/// +/// The update_profile_data global privilege for the namespaces that are referenced in the request. +/// +/// +/// +/// +/// This API updates the labels and data fields of an existing user profile document with JSON objects. +/// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. +/// +/// +/// For both labels and data, content is namespaced by the top-level fields. +/// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. +/// /// public sealed partial class UpdateUserProfileDataRequest : PlainRequest { @@ -97,8 +126,9 @@ public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", ui /// /// /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', nothing is done with refreshes. /// /// [JsonIgnore] @@ -108,6 +138,8 @@ public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", ui /// /// Non-searchable data that you want to associate with the user profile. /// This field supports a nested data structure. + /// Within the data object, top-level keys cannot begin with an underscore (_) or contain a period (.). + /// The data object is not searchable, but can be retrieved with the get user profile API. /// /// [JsonInclude, JsonPropertyName("data")] @@ -115,8 +147,9 @@ public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", ui /// /// - /// Searchable data that you want to associate with the user profile. This - /// field supports a nested data structure. + /// Searchable data that you want to associate with the user profile. + /// This field supports a nested data structure. + /// Within the labels object, top-level keys cannot begin with an underscore (_) or contain a period (.). /// /// [JsonInclude, JsonPropertyName("labels")] @@ -130,6 +163,34 @@ public UpdateUserProfileDataRequest(string uid) : base(r => r.Required("uid", ui /// /// Update specific data for the user profile that is associated with a unique ID. /// +/// +/// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. +/// Individual users and external applications should not call this API directly. +/// Elastic reserves the right to change or remove this feature in future releases without prior notice. +/// +/// +/// To use this API, you must have one of the following privileges: +/// +/// +/// +/// +/// The manage_user_profile cluster privilege. +/// +/// +/// +/// +/// The update_profile_data global privilege for the namespaces that are referenced in the request. +/// +/// +/// +/// +/// This API updates the labels and data fields of an existing user profile document with JSON objects. +/// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. +/// +/// +/// For both labels and data, content is namespaced by the top-level fields. +/// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. +/// /// public sealed partial class UpdateUserProfileDataRequestDescriptor : RequestDescriptor { @@ -164,6 +225,8 @@ public UpdateUserProfileDataRequestDescriptor Uid(string uid) /// /// Non-searchable data that you want to associate with the user profile. /// This field supports a nested data structure. + /// Within the data object, top-level keys cannot begin with an underscore (_) or contain a period (.). + /// The data object is not searchable, but can be retrieved with the get user profile API. /// /// public UpdateUserProfileDataRequestDescriptor Data(Func, FluentDictionary> selector) @@ -174,8 +237,9 @@ public UpdateUserProfileDataRequestDescriptor Data(Func /// - /// Searchable data that you want to associate with the user profile. This - /// field supports a nested data structure. + /// Searchable data that you want to associate with the user profile. + /// This field supports a nested data structure. + /// Within the labels object, top-level keys cannot begin with an underscore (_) or contain a period (.). /// /// public UpdateUserProfileDataRequestDescriptor Labels(Func, FluentDictionary> selector) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs new file mode 100644 index 00000000000..6f70593e752 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestRequest.g.cs @@ -0,0 +1,603 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Simulate; + +public sealed partial class IngestRequestParameters : RequestParameters +{ + /// + /// + /// The pipeline to use as the default pipeline. + /// This value can be used to override the default pipeline of the index. + /// + /// + public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } +} + +/// +/// +/// Simulate data ingestion. +/// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. +/// +/// +/// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. +/// +/// +/// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. +/// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. +/// No data is indexed into Elasticsearch. +/// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. +/// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. +/// +/// +/// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. +/// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. +/// +/// +/// By default, the pipeline definitions that are currently in the system are used. +/// However, you can supply substitute pipeline definitions in the body of the request. +/// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. +/// +/// +public sealed partial class IngestRequest : PlainRequest +{ + public IngestRequest() + { + } + + public IngestRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SimulateIngest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "simulate.ingest"; + + /// + /// + /// The pipeline to use as the default pipeline. + /// This value can be used to override the default pipeline of the index. + /// + /// + [JsonIgnore] + public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } + + /// + /// + /// A map of component template names to substitute component template definition objects. + /// + /// + [JsonInclude, JsonPropertyName("component_template_substitutions")] + public IDictionary? ComponentTemplateSubstitutions { get; set; } + + /// + /// + /// Sample documents to test in the pipeline. + /// + /// + [JsonInclude, JsonPropertyName("docs")] + public ICollection Docs { get; set; } + + /// + /// + /// A map of index template names to substitute index template definition objects. + /// + /// + [JsonInclude, JsonPropertyName("index_template_substitutions")] + public IDictionary? IndexTemplateSubstitutions { get; set; } + [JsonInclude, JsonPropertyName("mapping_addition")] + public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingAddition { get; set; } + + /// + /// + /// Pipelines to test. + /// If you don’t specify the pipeline request path parameter, this parameter is required. + /// If you specify both this and the request path parameter, the API only uses the request path parameter. + /// + /// + [JsonInclude, JsonPropertyName("pipeline_substitutions")] + public IDictionary? PipelineSubstitutions { get; set; } +} + +/// +/// +/// Simulate data ingestion. +/// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. +/// +/// +/// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. +/// +/// +/// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. +/// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. +/// No data is indexed into Elasticsearch. +/// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. +/// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. +/// +/// +/// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. +/// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. +/// +/// +/// By default, the pipeline definitions that are currently in the system are used. +/// However, you can supply substitute pipeline definitions in the body of the request. +/// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. +/// +/// +public sealed partial class IngestRequestDescriptor : RequestDescriptor, IngestRequestParameters> +{ + internal IngestRequestDescriptor(Action> configure) => configure.Invoke(this); + + public IngestRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) + { + } + + public IngestRequestDescriptor() : this(typeof(TDocument)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SimulateIngest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "simulate.ingest"; + + public IngestRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); + + public IngestRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + RouteValues.Optional("index", index); + return Self; + } + + private IDictionary> ComponentTemplateSubstitutionsValue { get; set; } + private ICollection DocsValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor DocsDescriptor { get; set; } + private Action DocsDescriptorAction { get; set; } + private Action[] DocsDescriptorActions { get; set; } + private IDictionary> IndexTemplateSubstitutionsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingAdditionValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingAdditionDescriptor { get; set; } + private Action> MappingAdditionDescriptorAction { get; set; } + private IDictionary> PipelineSubstitutionsValue { get; set; } + + /// + /// + /// A map of component template names to substitute component template definition objects. + /// + /// + public IngestRequestDescriptor ComponentTemplateSubstitutions(Func>, FluentDescriptorDictionary>> selector) + { + ComponentTemplateSubstitutionsValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + /// + /// + /// Sample documents to test in the pipeline. + /// + /// + public IngestRequestDescriptor Docs(ICollection docs) + { + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsValue = docs; + return Self; + } + + public IngestRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor descriptor) + { + DocsValue = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsDescriptor = descriptor; + return Self; + } + + public IngestRequestDescriptor Docs(Action configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorActions = null; + DocsDescriptorAction = configure; + return Self; + } + + public IngestRequestDescriptor Docs(params Action[] configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = configure; + return Self; + } + + /// + /// + /// A map of index template names to substitute index template definition objects. + /// + /// + public IngestRequestDescriptor IndexTemplateSubstitutions(Func>, FluentDescriptorDictionary>> selector) + { + IndexTemplateSubstitutionsValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + public IngestRequestDescriptor MappingAddition(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappingAddition) + { + MappingAdditionDescriptor = null; + MappingAdditionDescriptorAction = null; + MappingAdditionValue = mappingAddition; + return Self; + } + + public IngestRequestDescriptor MappingAddition(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingAdditionValue = null; + MappingAdditionDescriptorAction = null; + MappingAdditionDescriptor = descriptor; + return Self; + } + + public IngestRequestDescriptor MappingAddition(Action> configure) + { + MappingAdditionValue = null; + MappingAdditionDescriptor = null; + MappingAdditionDescriptorAction = configure; + return Self; + } + + /// + /// + /// Pipelines to test. + /// If you don’t specify the pipeline request path parameter, this parameter is required. + /// If you specify both this and the request path parameter, the API only uses the request path parameter. + /// + /// + public IngestRequestDescriptor PipelineSubstitutions(Func>, FluentDescriptorDictionary>> selector) + { + PipelineSubstitutionsValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ComponentTemplateSubstitutionsValue is not null) + { + writer.WritePropertyName("component_template_substitutions"); + JsonSerializer.Serialize(writer, ComponentTemplateSubstitutionsValue, options); + } + + if (DocsDescriptor is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, DocsDescriptor, options); + writer.WriteEndArray(); + } + else if (DocsDescriptorAction is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor(DocsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (DocsDescriptorActions is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + foreach (var action in DocsDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("docs"); + JsonSerializer.Serialize(writer, DocsValue, options); + } + + if (IndexTemplateSubstitutionsValue is not null) + { + writer.WritePropertyName("index_template_substitutions"); + JsonSerializer.Serialize(writer, IndexTemplateSubstitutionsValue, options); + } + + if (MappingAdditionDescriptor is not null) + { + writer.WritePropertyName("mapping_addition"); + JsonSerializer.Serialize(writer, MappingAdditionDescriptor, options); + } + else if (MappingAdditionDescriptorAction is not null) + { + writer.WritePropertyName("mapping_addition"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingAdditionDescriptorAction), options); + } + else if (MappingAdditionValue is not null) + { + writer.WritePropertyName("mapping_addition"); + JsonSerializer.Serialize(writer, MappingAdditionValue, options); + } + + if (PipelineSubstitutionsValue is not null) + { + writer.WritePropertyName("pipeline_substitutions"); + JsonSerializer.Serialize(writer, PipelineSubstitutionsValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// +/// Simulate data ingestion. +/// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. +/// +/// +/// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. +/// +/// +/// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. +/// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. +/// No data is indexed into Elasticsearch. +/// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. +/// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. +/// +/// +/// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. +/// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. +/// +/// +/// By default, the pipeline definitions that are currently in the system are used. +/// However, you can supply substitute pipeline definitions in the body of the request. +/// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. +/// +/// +public sealed partial class IngestRequestDescriptor : RequestDescriptor +{ + internal IngestRequestDescriptor(Action configure) => configure.Invoke(this); + + public IngestRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) + { + } + + public IngestRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SimulateIngest; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "simulate.ingest"; + + public IngestRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); + + public IngestRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + RouteValues.Optional("index", index); + return Self; + } + + private IDictionary ComponentTemplateSubstitutionsValue { get; set; } + private ICollection DocsValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor DocsDescriptor { get; set; } + private Action DocsDescriptorAction { get; set; } + private Action[] DocsDescriptorActions { get; set; } + private IDictionary IndexTemplateSubstitutionsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingAdditionValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingAdditionDescriptor { get; set; } + private Action MappingAdditionDescriptorAction { get; set; } + private IDictionary PipelineSubstitutionsValue { get; set; } + + /// + /// + /// A map of component template names to substitute component template definition objects. + /// + /// + public IngestRequestDescriptor ComponentTemplateSubstitutions(Func, FluentDescriptorDictionary> selector) + { + ComponentTemplateSubstitutionsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + /// + /// + /// Sample documents to test in the pipeline. + /// + /// + public IngestRequestDescriptor Docs(ICollection docs) + { + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsValue = docs; + return Self; + } + + public IngestRequestDescriptor Docs(Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor descriptor) + { + DocsValue = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsDescriptor = descriptor; + return Self; + } + + public IngestRequestDescriptor Docs(Action configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorActions = null; + DocsDescriptorAction = configure; + return Self; + } + + public IngestRequestDescriptor Docs(params Action[] configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = configure; + return Self; + } + + /// + /// + /// A map of index template names to substitute index template definition objects. + /// + /// + public IngestRequestDescriptor IndexTemplateSubstitutions(Func, FluentDescriptorDictionary> selector) + { + IndexTemplateSubstitutionsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + public IngestRequestDescriptor MappingAddition(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappingAddition) + { + MappingAdditionDescriptor = null; + MappingAdditionDescriptorAction = null; + MappingAdditionValue = mappingAddition; + return Self; + } + + public IngestRequestDescriptor MappingAddition(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingAdditionValue = null; + MappingAdditionDescriptorAction = null; + MappingAdditionDescriptor = descriptor; + return Self; + } + + public IngestRequestDescriptor MappingAddition(Action configure) + { + MappingAdditionValue = null; + MappingAdditionDescriptor = null; + MappingAdditionDescriptorAction = configure; + return Self; + } + + /// + /// + /// Pipelines to test. + /// If you don’t specify the pipeline request path parameter, this parameter is required. + /// If you specify both this and the request path parameter, the API only uses the request path parameter. + /// + /// + public IngestRequestDescriptor PipelineSubstitutions(Func, FluentDescriptorDictionary> selector) + { + PipelineSubstitutionsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ComponentTemplateSubstitutionsValue is not null) + { + writer.WritePropertyName("component_template_substitutions"); + JsonSerializer.Serialize(writer, ComponentTemplateSubstitutionsValue, options); + } + + if (DocsDescriptor is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, DocsDescriptor, options); + writer.WriteEndArray(); + } + else if (DocsDescriptorAction is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor(DocsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (DocsDescriptorActions is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + foreach (var action in DocsDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.DocumentDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("docs"); + JsonSerializer.Serialize(writer, DocsValue, options); + } + + if (IndexTemplateSubstitutionsValue is not null) + { + writer.WritePropertyName("index_template_substitutions"); + JsonSerializer.Serialize(writer, IndexTemplateSubstitutionsValue, options); + } + + if (MappingAdditionDescriptor is not null) + { + writer.WritePropertyName("mapping_addition"); + JsonSerializer.Serialize(writer, MappingAdditionDescriptor, options); + } + else if (MappingAdditionDescriptorAction is not null) + { + writer.WritePropertyName("mapping_addition"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingAdditionDescriptorAction), options); + } + else if (MappingAdditionValue is not null) + { + writer.WritePropertyName("mapping_addition"); + JsonSerializer.Serialize(writer, MappingAdditionValue, options); + } + + if (PipelineSubstitutionsValue is not null) + { + writer.WritePropertyName("pipeline_substitutions"); + JsonSerializer.Serialize(writer, PipelineSubstitutionsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs new file mode 100644 index 00000000000..dbf42007b2a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Simulate/IngestResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Simulate; + +public sealed partial class IngestResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("docs")] + public IReadOnlyCollection Docs { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs new file mode 100644 index 00000000000..c433c15e4f4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs @@ -0,0 +1,547 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class RepositoryAnalyzeRequestParameters : RequestParameters +{ + /// + /// + /// The total number of blobs to write to the repository during the test. + /// For realistic experiments, you should set it to at least 2000. + /// + /// + public int? BlobCount { get => Q("blob_count"); set => Q("blob_count", value); } + + /// + /// + /// The number of operations to run concurrently during the test. + /// + /// + public int? Concurrency { get => Q("concurrency"); set => Q("concurrency", value); } + + /// + /// + /// Indicates whether to return detailed results, including timing information for every operation performed during the analysis. + /// If false, it returns only a summary of the analysis. + /// + /// + public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } + + /// + /// + /// The number of nodes on which to perform an early read operation while writing each blob. + /// Early read operations are only rarely performed. + /// + /// + public int? EarlyReadNodeCount { get => Q("early_read_node_count"); set => Q("early_read_node_count", value); } + + /// + /// + /// The maximum size of a blob to be written during the test. + /// For realistic experiments, you should set it to at least 2gb. + /// + /// + public Elastic.Clients.Elasticsearch.ByteSize? MaxBlobSize { get => Q("max_blob_size"); set => Q("max_blob_size", value); } + + /// + /// + /// An upper limit on the total size of all the blobs written during the test. + /// For realistic experiments, you should set it to at least 1tb. + /// + /// + public Elastic.Clients.Elasticsearch.ByteSize? MaxTotalDataSize { get => Q("max_total_data_size"); set => Q("max_total_data_size", value); } + + /// + /// + /// The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. + /// + /// + public double? RareActionProbability { get => Q("rare_action_probability"); set => Q("rare_action_probability", value); } + + /// + /// + /// Indicates whether to rarely cancel writes before they complete. + /// + /// + public bool? RarelyAbortWrites { get => Q("rarely_abort_writes"); set => Q("rarely_abort_writes", value); } + + /// + /// + /// The number of nodes on which to read a blob after writing. + /// + /// + public int? ReadNodeCount { get => Q("read_node_count"); set => Q("read_node_count", value); } + + /// + /// + /// The minimum number of linearizable register operations to perform in total. + /// For realistic experiments, you should set it to at least 100. + /// + /// + public int? RegisterOperationCount { get => Q("register_operation_count"); set => Q("register_operation_count", value); } + + /// + /// + /// The seed for the pseudo-random number generator used to generate the list of operations performed during the test. + /// To repeat the same set of operations in multiple experiments, use the same seed in each experiment. + /// Note that the operations are performed concurrently so might not always happen in the same order on each run. + /// + /// + public int? Seed { get => Q("seed"); set => Q("seed", value); } + + /// + /// + /// The period of time to wait for the test to complete. + /// If no response is received before the timeout expires, the test is cancelled and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Analyze a snapshot repository. +/// Analyze the performance characteristics and any incorrect behaviour found in a repository. +/// +/// +/// The response exposes implementation details of the analysis which may change from version to version. +/// The response body format is therefore not considered stable and may be different in newer versions. +/// +/// +/// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. +/// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. +/// +/// +/// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. +/// Run your first analysis with the default parameter values to check for simple problems. +/// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. +/// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. +/// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. +/// +/// +/// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. +/// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. +/// If so, this storage system is not suitable for use as a snapshot repository. +/// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. +/// +/// +/// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. +/// You can use this information to determine the performance of your storage system. +/// If any operation fails or returns an incorrect result, the API returns an error. +/// If the API returns an error, it may not have removed all the data it wrote to the repository. +/// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. +/// You should verify that this location has been cleaned up correctly. +/// If there is still leftover data at the specified location, you should manually remove it. +/// +/// +/// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. +/// Some clients are configured to close their connection if no response is received within a certain timeout. +/// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. +/// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. +/// The path to the leftover data is recorded in the Elasticsearch logs. +/// You should verify that this location has been cleaned up correctly. +/// If there is still leftover data at the specified location, you should manually remove it. +/// +/// +/// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. +/// The analysis attempts to detect common bugs but it does not offer 100% coverage. +/// Additionally, it does not test the following: +/// +/// +/// +/// +/// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. +/// +/// +/// +/// +/// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. +/// +/// +/// +/// +/// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. +/// +/// +/// +/// +/// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. +/// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. +/// You must ensure this load does not affect other users of these systems. +/// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. +/// +/// +/// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. +/// +/// +/// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. +/// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. +/// This indicates it behaves incorrectly in ways that the former version did not detect. +/// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. +/// +/// +/// NOTE: This API may not work correctly in a mixed-version cluster. +/// +/// +/// Implementation details +/// +/// +/// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. +/// +/// +/// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. +/// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. +/// +/// +/// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. +/// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. +/// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. +/// +/// +/// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. +/// These reads are permitted to fail, but must not return partial data. +/// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. +/// +/// +/// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. +/// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. +/// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. +/// +/// +/// The executing node will use a variety of different methods to write the blob. +/// For instance, where applicable, it will use both single-part and multi-part uploads. +/// Similarly, the reading nodes will use a variety of different methods to read the data back again. +/// For instance they may read the entire blob from start to end or may read only a subset of the data. +/// +/// +/// For some blob-level tasks, the executing node will cancel the write before it is complete. +/// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. +/// +/// +/// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. +/// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. +/// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. +/// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. +/// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. +/// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. +/// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. +/// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. +/// +/// +public sealed partial class RepositoryAnalyzeRequest : PlainRequest +{ + public RepositoryAnalyzeRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("repository", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRepositoryAnalyze; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "snapshot.repository_analyze"; + + /// + /// + /// The total number of blobs to write to the repository during the test. + /// For realistic experiments, you should set it to at least 2000. + /// + /// + [JsonIgnore] + public int? BlobCount { get => Q("blob_count"); set => Q("blob_count", value); } + + /// + /// + /// The number of operations to run concurrently during the test. + /// + /// + [JsonIgnore] + public int? Concurrency { get => Q("concurrency"); set => Q("concurrency", value); } + + /// + /// + /// Indicates whether to return detailed results, including timing information for every operation performed during the analysis. + /// If false, it returns only a summary of the analysis. + /// + /// + [JsonIgnore] + public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } + + /// + /// + /// The number of nodes on which to perform an early read operation while writing each blob. + /// Early read operations are only rarely performed. + /// + /// + [JsonIgnore] + public int? EarlyReadNodeCount { get => Q("early_read_node_count"); set => Q("early_read_node_count", value); } + + /// + /// + /// The maximum size of a blob to be written during the test. + /// For realistic experiments, you should set it to at least 2gb. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.ByteSize? MaxBlobSize { get => Q("max_blob_size"); set => Q("max_blob_size", value); } + + /// + /// + /// An upper limit on the total size of all the blobs written during the test. + /// For realistic experiments, you should set it to at least 1tb. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.ByteSize? MaxTotalDataSize { get => Q("max_total_data_size"); set => Q("max_total_data_size", value); } + + /// + /// + /// The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. + /// + /// + [JsonIgnore] + public double? RareActionProbability { get => Q("rare_action_probability"); set => Q("rare_action_probability", value); } + + /// + /// + /// Indicates whether to rarely cancel writes before they complete. + /// + /// + [JsonIgnore] + public bool? RarelyAbortWrites { get => Q("rarely_abort_writes"); set => Q("rarely_abort_writes", value); } + + /// + /// + /// The number of nodes on which to read a blob after writing. + /// + /// + [JsonIgnore] + public int? ReadNodeCount { get => Q("read_node_count"); set => Q("read_node_count", value); } + + /// + /// + /// The minimum number of linearizable register operations to perform in total. + /// For realistic experiments, you should set it to at least 100. + /// + /// + [JsonIgnore] + public int? RegisterOperationCount { get => Q("register_operation_count"); set => Q("register_operation_count", value); } + + /// + /// + /// The seed for the pseudo-random number generator used to generate the list of operations performed during the test. + /// To repeat the same set of operations in multiple experiments, use the same seed in each experiment. + /// Note that the operations are performed concurrently so might not always happen in the same order on each run. + /// + /// + [JsonIgnore] + public int? Seed { get => Q("seed"); set => Q("seed", value); } + + /// + /// + /// The period of time to wait for the test to complete. + /// If no response is received before the timeout expires, the test is cancelled and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Analyze a snapshot repository. +/// Analyze the performance characteristics and any incorrect behaviour found in a repository. +/// +/// +/// The response exposes implementation details of the analysis which may change from version to version. +/// The response body format is therefore not considered stable and may be different in newer versions. +/// +/// +/// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. +/// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. +/// +/// +/// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. +/// Run your first analysis with the default parameter values to check for simple problems. +/// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. +/// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. +/// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. +/// +/// +/// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. +/// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. +/// If so, this storage system is not suitable for use as a snapshot repository. +/// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. +/// +/// +/// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. +/// You can use this information to determine the performance of your storage system. +/// If any operation fails or returns an incorrect result, the API returns an error. +/// If the API returns an error, it may not have removed all the data it wrote to the repository. +/// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. +/// You should verify that this location has been cleaned up correctly. +/// If there is still leftover data at the specified location, you should manually remove it. +/// +/// +/// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. +/// Some clients are configured to close their connection if no response is received within a certain timeout. +/// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. +/// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. +/// The path to the leftover data is recorded in the Elasticsearch logs. +/// You should verify that this location has been cleaned up correctly. +/// If there is still leftover data at the specified location, you should manually remove it. +/// +/// +/// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. +/// The analysis attempts to detect common bugs but it does not offer 100% coverage. +/// Additionally, it does not test the following: +/// +/// +/// +/// +/// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. +/// +/// +/// +/// +/// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. +/// +/// +/// +/// +/// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. +/// +/// +/// +/// +/// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. +/// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. +/// You must ensure this load does not affect other users of these systems. +/// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. +/// +/// +/// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. +/// +/// +/// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. +/// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. +/// This indicates it behaves incorrectly in ways that the former version did not detect. +/// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. +/// +/// +/// NOTE: This API may not work correctly in a mixed-version cluster. +/// +/// +/// Implementation details +/// +/// +/// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. +/// +/// +/// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. +/// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. +/// +/// +/// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. +/// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. +/// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. +/// +/// +/// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. +/// These reads are permitted to fail, but must not return partial data. +/// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. +/// +/// +/// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. +/// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. +/// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. +/// +/// +/// The executing node will use a variety of different methods to write the blob. +/// For instance, where applicable, it will use both single-part and multi-part uploads. +/// Similarly, the reading nodes will use a variety of different methods to read the data back again. +/// For instance they may read the entire blob from start to end or may read only a subset of the data. +/// +/// +/// For some blob-level tasks, the executing node will cancel the write before it is complete. +/// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. +/// +/// +/// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. +/// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. +/// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. +/// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. +/// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. +/// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. +/// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. +/// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. +/// +/// +public sealed partial class RepositoryAnalyzeRequestDescriptor : RequestDescriptor +{ + internal RepositoryAnalyzeRequestDescriptor(Action configure) => configure.Invoke(this); + + public RepositoryAnalyzeRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("repository", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SnapshotRepositoryAnalyze; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "snapshot.repository_analyze"; + + public RepositoryAnalyzeRequestDescriptor BlobCount(int? blobCount) => Qs("blob_count", blobCount); + public RepositoryAnalyzeRequestDescriptor Concurrency(int? concurrency) => Qs("concurrency", concurrency); + public RepositoryAnalyzeRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); + public RepositoryAnalyzeRequestDescriptor EarlyReadNodeCount(int? earlyReadNodeCount) => Qs("early_read_node_count", earlyReadNodeCount); + public RepositoryAnalyzeRequestDescriptor MaxBlobSize(Elastic.Clients.Elasticsearch.ByteSize? maxBlobSize) => Qs("max_blob_size", maxBlobSize); + public RepositoryAnalyzeRequestDescriptor MaxTotalDataSize(Elastic.Clients.Elasticsearch.ByteSize? maxTotalDataSize) => Qs("max_total_data_size", maxTotalDataSize); + public RepositoryAnalyzeRequestDescriptor RareActionProbability(double? rareActionProbability) => Qs("rare_action_probability", rareActionProbability); + public RepositoryAnalyzeRequestDescriptor RarelyAbortWrites(bool? rarelyAbortWrites = true) => Qs("rarely_abort_writes", rarelyAbortWrites); + public RepositoryAnalyzeRequestDescriptor ReadNodeCount(int? readNodeCount) => Qs("read_node_count", readNodeCount); + public RepositoryAnalyzeRequestDescriptor RegisterOperationCount(int? registerOperationCount) => Qs("register_operation_count", registerOperationCount); + public RepositoryAnalyzeRequestDescriptor Seed(int? seed) => Qs("seed", seed); + public RepositoryAnalyzeRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public RepositoryAnalyzeRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + RouteValues.Required("repository", name); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs new file mode 100644 index 00000000000..0ed58394662 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeResponse.g.cs @@ -0,0 +1,191 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class RepositoryAnalyzeResponse : ElasticsearchResponse +{ + /// + /// + /// The number of blobs written to the repository during the test. + /// + /// + [JsonInclude, JsonPropertyName("blob_count")] + public int BlobCount { get; init; } + + /// + /// + /// The path in the repository under which all the blobs were written during the test. + /// + /// + [JsonInclude, JsonPropertyName("blob_path")] + public string BlobPath { get; init; } + + /// + /// + /// The number of write operations performed concurrently during the test. + /// + /// + [JsonInclude, JsonPropertyName("concurrency")] + public int Concurrency { get; init; } + + /// + /// + /// The node that coordinated the analysis and performed the final cleanup. + /// + /// + [JsonInclude, JsonPropertyName("coordinating_node")] + public Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo CoordinatingNode { get; init; } + + /// + /// + /// The time it took to delete all the blobs in the container. + /// + /// + [JsonInclude, JsonPropertyName("delete_elapsed")] + public Elastic.Clients.Elasticsearch.Duration DeleteElapsed { get; init; } + + /// + /// + /// The time it took to delete all the blobs in the container, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("delete_elapsed_nanos")] + public long DeleteElapsedNanos { get; init; } + + /// + /// + /// A description of every read and write operation performed during the test. + /// + /// + [JsonInclude, JsonPropertyName("details")] + public Elastic.Clients.Elasticsearch.Snapshot.DetailsInfo Details { get; init; } + + /// + /// + /// The limit on the number of nodes on which early read operations were performed after writing each blob. + /// + /// + [JsonInclude, JsonPropertyName("early_read_node_count")] + public int EarlyReadNodeCount { get; init; } + + /// + /// + /// A list of correctness issues detected, which is empty if the API succeeded. + /// It is included to emphasize that a successful response does not guarantee correct behaviour in future. + /// + /// + [JsonInclude, JsonPropertyName("issues_detected")] + public IReadOnlyCollection IssuesDetected { get; init; } + + /// + /// + /// The time it took to retrieve a list of all the blobs in the container. + /// + /// + [JsonInclude, JsonPropertyName("listing_elapsed")] + public Elastic.Clients.Elasticsearch.Duration ListingElapsed { get; init; } + + /// + /// + /// The time it took to retrieve a list of all the blobs in the container, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("listing_elapsed_nanos")] + public long ListingElapsedNanos { get; init; } + + /// + /// + /// The limit on the size of a blob written during the test. + /// + /// + [JsonInclude, JsonPropertyName("max_blob_size")] + public Elastic.Clients.Elasticsearch.ByteSize MaxBlobSize { get; init; } + + /// + /// + /// The limit, in bytes, on the size of a blob written during the test. + /// + /// + [JsonInclude, JsonPropertyName("max_blob_size_bytes")] + public long MaxBlobSizeBytes { get; init; } + + /// + /// + /// The limit on the total size of all blob written during the test. + /// + /// + [JsonInclude, JsonPropertyName("max_total_data_size")] + public Elastic.Clients.Elasticsearch.ByteSize MaxTotalDataSize { get; init; } + + /// + /// + /// The limit, in bytes, on the total size of all blob written during the test. + /// + /// + [JsonInclude, JsonPropertyName("max_total_data_size_bytes")] + public long MaxTotalDataSizeBytes { get; init; } + + /// + /// + /// The probability of performing rare actions during the test. + /// + /// + [JsonInclude, JsonPropertyName("rare_action_probability")] + public double RareActionProbability { get; init; } + + /// + /// + /// The limit on the number of nodes on which read operations were performed after writing each blob. + /// + /// + [JsonInclude, JsonPropertyName("read_node_count")] + public int ReadNodeCount { get; init; } + + /// + /// + /// The name of the repository that was the subject of the analysis. + /// + /// + [JsonInclude, JsonPropertyName("repository")] + public string Repository { get; init; } + + /// + /// + /// The seed for the pseudo-random number generator used to generate the operations used during the test. + /// + /// + [JsonInclude, JsonPropertyName("seed")] + public long Seed { get; init; } + + /// + /// + /// A collection of statistics that summarize the results of the test. + /// + /// + [JsonInclude, JsonPropertyName("summary")] + public Elastic.Clients.Elasticsearch.Snapshot.SummaryInfo Summary { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs index e50ac965692..73128b67ad4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/DeleteLifecycleRequest.g.cs @@ -32,6 +32,21 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class DeleteLifecycleRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -54,6 +69,24 @@ public DeleteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : bas internal override bool SupportsBody => false; internal override string OperationName => "slm.delete_lifecycle"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -79,6 +112,9 @@ public DeleteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name polic internal override string OperationName => "slm.delete_lifecycle"; + public DeleteLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeleteLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public DeleteLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Name policyId) { RouteValues.Required("policy_id", policyId); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs index 46c763acd3a..c16b8ed0aae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteLifecycleRequest.g.cs @@ -32,6 +32,21 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class ExecuteLifecycleRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -54,6 +69,24 @@ public ExecuteLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : ba internal override bool SupportsBody => false; internal override string OperationName => "slm.execute_lifecycle"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -79,6 +112,9 @@ public ExecuteLifecycleRequestDescriptor(Elastic.Clients.Elasticsearch.Name poli internal override string OperationName => "slm.execute_lifecycle"; + public ExecuteLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public ExecuteLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public ExecuteLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Name policyId) { RouteValues.Required("policy_id", policyId); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs index 14f759460ca..c4e9c78952a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/ExecuteRetentionRequest.g.cs @@ -32,6 +32,21 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class ExecuteRetentionRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -50,6 +65,24 @@ public sealed partial class ExecuteRetentionRequest : PlainRequest false; internal override string OperationName => "slm.execute_retention"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -75,6 +108,9 @@ public ExecuteRetentionRequestDescriptor() internal override string OperationName => "slm.execute_retention"; + public ExecuteRetentionRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public ExecuteRetentionRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs index e647bd33bb8..94b96f6bd9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetLifecycleRequest.g.cs @@ -32,6 +32,21 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class GetLifecycleRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -57,6 +72,24 @@ public GetLifecycleRequest(Elastic.Clients.Elasticsearch.Names? policyId) : base internal override bool SupportsBody => false; internal override string OperationName => "slm.get_lifecycle"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -85,6 +118,9 @@ public GetLifecycleRequestDescriptor() internal override string OperationName => "slm.get_lifecycle"; + public GetLifecycleRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetLifecycleRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public GetLifecycleRequestDescriptor PolicyId(Elastic.Clients.Elasticsearch.Names? policyId) { RouteValues.Optional("policy_id", policyId); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs index 3b0fc096ab6..cca9b56579b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetSlmStatusRequest.g.cs @@ -32,6 +32,23 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class GetSlmStatusRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -48,6 +65,26 @@ public sealed partial class GetSlmStatusRequest : PlainRequest false; internal override string OperationName => "slm.get_status"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -71,6 +108,9 @@ public GetSlmStatusRequestDescriptor() internal override string OperationName => "slm.get_status"; + public GetSlmStatusRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetSlmStatusRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs index 183295795da..32d4b1a5b6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/GetStatsRequest.g.cs @@ -32,6 +32,19 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class GetStatsRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -49,6 +62,22 @@ public sealed partial class GetStatsRequest : PlainRequest false; internal override string OperationName => "slm.get_stats"; + + /// + /// + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -73,6 +102,9 @@ public GetStatsRequestDescriptor() internal override string OperationName => "slm.get_stats"; + public GetStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs index 865a2baf563..a474b64957a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/PutLifecycleRequest.g.cs @@ -34,14 +34,18 @@ public sealed partial class PutLifecycleRequestParameters : RequestParameters { /// /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -71,7 +75,9 @@ public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : base(r /// /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// [JsonIgnore] @@ -79,7 +85,9 @@ public PutLifecycleRequest(Elastic.Clients.Elasticsearch.Name policyId) : base(r /// /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs index f45719cc0a0..a11234ab25c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StartSlmRequest.g.cs @@ -32,6 +32,23 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class StartSlmRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -50,6 +67,26 @@ public sealed partial class StartSlmRequest : PlainRequest false; internal override string OperationName => "slm.start"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -75,6 +112,9 @@ public StartSlmRequestDescriptor() internal override string OperationName => "slm.start"; + public StartSlmRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public StartSlmRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs index 4f8e240975d..e3d150b7356 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SnapshotLifecycleManagement/StopSlmRequest.g.cs @@ -32,6 +32,23 @@ namespace Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; public sealed partial class StopSlmRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -56,6 +73,26 @@ public sealed partial class StopSlmRequest : PlainRequest false; internal override string OperationName => "slm.stop"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -87,6 +124,9 @@ public StopSlmRequestDescriptor() internal override string OperationName => "slm.stop"; + public StopSlmRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public StopSlmRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs index d306d8916d2..126cfaca0cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -40,6 +40,21 @@ public sealed partial class DeleteAsyncRequestParameters : RequestParameters /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// +/// +/// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: +/// +/// +/// +/// +/// Users with the cancel_task cluster privilege. +/// +/// +/// +/// +/// The user who first submitted the search. +/// +/// +/// /// public sealed partial class DeleteAsyncRequest : PlainRequest { @@ -62,6 +77,21 @@ public DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Req /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// +/// +/// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: +/// +/// +/// +/// +/// Users with the cancel_task cluster privilege. +/// +/// +/// +/// +/// The user who first submitted the search. +/// +/// +/// /// public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor, DeleteAsyncRequestParameters> { @@ -96,6 +126,21 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// +/// +/// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: +/// +/// +/// +/// +/// Users with the cancel_task cluster privilege. +/// +/// +/// +/// +/// The user who first submitted the search. +/// +/// +/// /// public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs index a725dcd4bd3..c4808c31240 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -34,31 +34,33 @@ public sealed partial class GetAsyncRequestParameters : RequestParameters { /// /// - /// Separator for CSV results. The API only supports this parameter for CSV responses. + /// The separator for CSV results. + /// The API supports this parameter only for CSV responses. /// /// public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } /// /// - /// Format for the response. You must specify a format using this parameter or the - /// Accept HTTP header. If you specify both, the API uses this parameter. + /// The format for the response. + /// You must specify a format using this parameter or the Accept HTTP header. + /// If you specify both, the API uses this parameter. /// /// public string? Format { get => Q("format"); set => Q("format", value); } /// /// - /// Retention period for the search and its results. Defaults - /// to the keep_alive period for the original SQL search. + /// The retention period for the search and its results. + /// It defaults to the keep_alive period for the original SQL search. /// /// public Elastic.Clients.Elasticsearch.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } /// /// - /// Period to wait for complete results. Defaults to no timeout, - /// meaning the request waits for complete search results. + /// The period to wait for complete results. + /// It defaults to no timeout, meaning the request waits for complete search results. /// /// public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } @@ -69,6 +71,9 @@ public sealed partial class GetAsyncRequestParameters : RequestParameters /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// +/// +/// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. +/// /// public sealed partial class GetAsyncRequest : PlainRequest { @@ -86,7 +91,8 @@ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// /// - /// Separator for CSV results. The API only supports this parameter for CSV responses. + /// The separator for CSV results. + /// The API supports this parameter only for CSV responses. /// /// [JsonIgnore] @@ -94,8 +100,9 @@ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// /// - /// Format for the response. You must specify a format using this parameter or the - /// Accept HTTP header. If you specify both, the API uses this parameter. + /// The format for the response. + /// You must specify a format using this parameter or the Accept HTTP header. + /// If you specify both, the API uses this parameter. /// /// [JsonIgnore] @@ -103,8 +110,8 @@ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// /// - /// Retention period for the search and its results. Defaults - /// to the keep_alive period for the original SQL search. + /// The retention period for the search and its results. + /// It defaults to the keep_alive period for the original SQL search. /// /// [JsonIgnore] @@ -112,8 +119,8 @@ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// /// - /// Period to wait for complete results. Defaults to no timeout, - /// meaning the request waits for complete search results. + /// The period to wait for complete results. + /// It defaults to no timeout, meaning the request waits for complete search results. /// /// [JsonIgnore] @@ -125,6 +132,9 @@ public GetAsyncRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requir /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// +/// +/// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. +/// /// public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor, GetAsyncRequestParameters> { @@ -163,6 +173,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// +/// +/// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. +/// /// public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs index 9762bd7bd96..77feb20b3d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncResponse.g.cs @@ -38,8 +38,8 @@ public sealed partial class GetAsyncResponse : ElasticsearchResponse /// /// - /// Cursor for the next set of paginated results. For CSV, TSV, and - /// TXT responses, this value is returned in the Cursor HTTP header. + /// The cursor for the next set of paginated results. + /// For CSV, TSV, and TXT responses, this value is returned in the Cursor HTTP header. /// /// [JsonInclude, JsonPropertyName("cursor")] @@ -47,9 +47,9 @@ public sealed partial class GetAsyncResponse : ElasticsearchResponse /// /// - /// Identifier for the search. This value is only returned for async and saved - /// synchronous searches. For CSV, TSV, and TXT responses, this value is returned - /// in the Async-ID HTTP header. + /// Identifier for the search. + /// This value is returned only for async and saved synchronous searches. + /// For CSV, TSV, and TXT responses, this value is returned in the Async-ID HTTP header. /// /// [JsonInclude, JsonPropertyName("id")] @@ -57,10 +57,10 @@ public sealed partial class GetAsyncResponse : ElasticsearchResponse /// /// - /// If true, the response does not contain complete search results. If is_partial - /// is true and is_running is true, the search is still running. If is_partial - /// is true but is_running is false, the results are partial due to a failure or - /// timeout. This value is only returned for async and saved synchronous searches. + /// If true, the response does not contain complete search results. + /// If is_partial is true and is_running is true, the search is still running. + /// If is_partial is true but is_running is false, the results are partial due to a failure or timeout. + /// This value is returned only for async and saved synchronous searches. /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. /// /// @@ -69,10 +69,10 @@ public sealed partial class GetAsyncResponse : ElasticsearchResponse /// /// - /// If true, the search is still running. If false, the search has finished. - /// This value is only returned for async and saved synchronous searches. For - /// CSV, TSV, and TXT responses, this value is returned in the Async-partial - /// HTTP header. + /// If true, the search is still running. + /// If false, the search has finished. + /// This value is returned only for async and saved synchronous searches. + /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. /// /// [JsonInclude, JsonPropertyName("is_running")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs index 8dd9a09e22b..10d924dfbdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs @@ -30,7 +30,8 @@ public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse { /// /// - /// HTTP status code for the search. The API only returns this property for completed searches. + /// The HTTP status code for the search. + /// The API returns this property only for completed searches. /// /// [JsonInclude, JsonPropertyName("completion_status")] @@ -38,8 +39,7 @@ public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse /// /// - /// Timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete - /// the search and its results, even if the search is still running. + /// The timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete the search and its results, even if the search is still running. /// /// [JsonInclude, JsonPropertyName("expiration_time_in_millis")] @@ -47,7 +47,7 @@ public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse /// /// - /// Identifier for the search. + /// The identifier for the search. /// /// [JsonInclude, JsonPropertyName("id")] @@ -55,10 +55,9 @@ public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse /// /// - /// If true, the response does not contain complete search results. If is_partial - /// is true and is_running is true, the search is still running. If is_partial - /// is true but is_running is false, the results are partial due to a failure or - /// timeout. + /// If true, the response does not contain complete search results. + /// If is_partial is true and is_running is true, the search is still running. + /// If is_partial is true but is_running is false, the results are partial due to a failure or timeout. /// /// [JsonInclude, JsonPropertyName("is_partial")] @@ -66,7 +65,8 @@ public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse /// /// - /// If true, the search is still running. If false, the search has finished. + /// If true, the search is still running. + /// If false, the search has finished. /// /// [JsonInclude, JsonPropertyName("is_running")] @@ -74,8 +74,8 @@ public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse /// /// - /// Timestamp, in milliseconds since the Unix epoch, when the search started. - /// The API only returns this property for running searches. + /// The timestamp, in milliseconds since the Unix epoch, when the search started. + /// The API returns this property only for running searches. /// /// [JsonInclude, JsonPropertyName("start_time_in_millis")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs index a45bfdcc1cd..247b732a256 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -34,7 +34,9 @@ public sealed partial class QueryRequestParameters : RequestParameters { /// /// - /// Format for the response. + /// The format for the response. + /// You can also specify a format using the Accept HTTP header. + /// If you specify both this parameter and the Accept HTTP header, this parameter takes precedence. /// /// public Elastic.Clients.Elasticsearch.Sql.SqlFormat? Format { get => Q("format"); set => Q("format", value); } @@ -58,7 +60,9 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Format for the response. + /// The format for the response. + /// You can also specify a format using the Accept HTTP header. + /// If you specify both this parameter and the Accept HTTP header, this parameter takes precedence. /// /// [JsonIgnore] @@ -66,7 +70,17 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. + /// If true, the response has partial results when there are shard request timeouts or shard failures. + /// If false, the API returns an error with no partial results. + /// + /// + [JsonInclude, JsonPropertyName("allow_partial_search_results")] + public bool? AllowPartialSearchResults { get; set; } + + /// + /// + /// The default catalog (cluster) for queries. + /// If unspecified, the queries execute on the data in the local cluster only. /// /// [JsonInclude, JsonPropertyName("catalog")] @@ -74,7 +88,8 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// If true, the results are in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// The API supports this parameter only for CBOR, JSON, SMILE, and YAML responses. /// /// [JsonInclude, JsonPropertyName("columnar")] @@ -82,7 +97,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Cursor used to retrieve a set of paginated results. + /// The cursor used to retrieve a set of paginated results. /// If you specify a cursor, the API only uses the columnar and time_zone request body parameters. /// It ignores other request body parameters. /// @@ -92,7 +107,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// The maximum number of rows (or entries) to return in one response + /// The maximum number of rows (or entries) to return in one response. /// /// [JsonInclude, JsonPropertyName("fetch_size")] @@ -100,7 +115,8 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). + /// If false, the API returns an exception when encountering multiple values for a field. + /// If true, the API is lenient and returns the first value from the array with no guarantee of consistent results. /// /// [JsonInclude, JsonPropertyName("field_multi_value_leniency")] @@ -108,7 +124,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Elasticsearch query DSL for additional filtering. + /// The Elasticsearch query DSL for additional filtering. /// /// [JsonInclude, JsonPropertyName("filter")] @@ -116,7 +132,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// If true, the search can run on frozen indices. Defaults to false. + /// If true, the search can run on frozen indices. /// /// [JsonInclude, JsonPropertyName("index_using_frozen")] @@ -124,7 +140,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Retention period for an async or saved synchronous search. + /// The retention period for an async or saved synchronous search. /// /// [JsonInclude, JsonPropertyName("keep_alive")] @@ -132,7 +148,8 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. + /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. + /// If false, Elasticsearch only stores async searches that don't finish before the wait_for_completion_timeout. /// /// [JsonInclude, JsonPropertyName("keep_on_completion")] @@ -140,7 +157,9 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// The timeout before a pagination request fails. + /// The minimum retention period for the scroll cursor. + /// After this time period, a pagination request might fail because the scroll cursor is no longer available. + /// Subsequent scroll requests prolong the lifetime of the scroll cursor by the duration of page_timeout in the scroll request. /// /// [JsonInclude, JsonPropertyName("page_timeout")] @@ -148,7 +167,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Values for parameters in the query. + /// The values for parameters in the query. /// /// [JsonInclude, JsonPropertyName("params")] @@ -156,7 +175,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// SQL query to run. + /// The SQL query to run. /// /// [JsonInclude, JsonPropertyName("query")] @@ -172,8 +191,8 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. + /// One or more runtime fields for the search request. + /// These fields take precedence over mapped fields with the same name. /// /// [JsonInclude, JsonPropertyName("runtime_mappings")] @@ -181,7 +200,7 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// ISO-8601 time zone ID for the search. + /// The ISO-8601 time zone ID for the search. /// /// [JsonInclude, JsonPropertyName("time_zone")] @@ -189,7 +208,12 @@ public sealed partial class QueryRequest : PlainRequest /// /// - /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. + /// The period to wait for complete results. + /// It defaults to no timeout, meaning the request waits for complete search results. + /// If the search doesn't finish within this period, the search becomes async. + /// + /// + /// To save a synchronous search, you must specify this parameter and the keep_on_completion parameter. /// /// [JsonInclude, JsonPropertyName("wait_for_completion_timeout")] @@ -220,6 +244,7 @@ public QueryRequestDescriptor() public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Sql.SqlFormat? format) => Qs("format", format); + private bool? AllowPartialSearchResultsValue { get; set; } private string? CatalogValue { get; set; } private bool? ColumnarValue { get; set; } private string? CursorValue { get; set; } @@ -241,7 +266,20 @@ public QueryRequestDescriptor() /// /// - /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. + /// If true, the response has partial results when there are shard request timeouts or shard failures. + /// If false, the API returns an error with no partial results. + /// + /// + public QueryRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) + { + AllowPartialSearchResultsValue = allowPartialSearchResults; + return Self; + } + + /// + /// + /// The default catalog (cluster) for queries. + /// If unspecified, the queries execute on the data in the local cluster only. /// /// public QueryRequestDescriptor Catalog(string? catalog) @@ -252,7 +290,8 @@ public QueryRequestDescriptor Catalog(string? catalog) /// /// - /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// If true, the results are in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// The API supports this parameter only for CBOR, JSON, SMILE, and YAML responses. /// /// public QueryRequestDescriptor Columnar(bool? columnar = true) @@ -263,7 +302,7 @@ public QueryRequestDescriptor Columnar(bool? columnar = true) /// /// - /// Cursor used to retrieve a set of paginated results. + /// The cursor used to retrieve a set of paginated results. /// If you specify a cursor, the API only uses the columnar and time_zone request body parameters. /// It ignores other request body parameters. /// @@ -276,7 +315,7 @@ public QueryRequestDescriptor Cursor(string? cursor) /// /// - /// The maximum number of rows (or entries) to return in one response + /// The maximum number of rows (or entries) to return in one response. /// /// public QueryRequestDescriptor FetchSize(int? fetchSize) @@ -287,7 +326,8 @@ public QueryRequestDescriptor FetchSize(int? fetchSize) /// /// - /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). + /// If false, the API returns an exception when encountering multiple values for a field. + /// If true, the API is lenient and returns the first value from the array with no guarantee of consistent results. /// /// public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLeniency = true) @@ -298,7 +338,7 @@ public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMult /// /// - /// Elasticsearch query DSL for additional filtering. + /// The Elasticsearch query DSL for additional filtering. /// /// public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) @@ -327,7 +367,7 @@ public QueryRequestDescriptor Filter(Action /// - /// If true, the search can run on frozen indices. Defaults to false. + /// If true, the search can run on frozen indices. /// /// public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) @@ -338,7 +378,7 @@ public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen /// /// - /// Retention period for an async or saved synchronous search. + /// The retention period for an async or saved synchronous search. /// /// public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) @@ -349,7 +389,8 @@ public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch /// /// - /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. + /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. + /// If false, Elasticsearch only stores async searches that don't finish before the wait_for_completion_timeout. /// /// public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) @@ -360,7 +401,9 @@ public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion /// /// - /// The timeout before a pagination request fails. + /// The minimum retention period for the scroll cursor. + /// After this time period, a pagination request might fail because the scroll cursor is no longer available. + /// Subsequent scroll requests prolong the lifetime of the scroll cursor by the duration of page_timeout in the scroll request. /// /// public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Duration? pageTimeout) @@ -371,7 +414,7 @@ public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsear /// /// - /// Values for parameters in the query. + /// The values for parameters in the query. /// /// public QueryRequestDescriptor Params(Func, FluentDictionary> selector) @@ -382,7 +425,7 @@ public QueryRequestDescriptor Params(Func /// - /// SQL query to run. + /// The SQL query to run. /// /// public QueryRequestDescriptor Query(string? query) @@ -404,8 +447,8 @@ public QueryRequestDescriptor RequestTimeout(Elastic.Clients.Elastics /// /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. + /// One or more runtime fields for the search request. + /// These fields take precedence over mapped fields with the same name. /// /// public QueryRequestDescriptor RuntimeMappings(Func>, FluentDescriptorDictionary>> selector) @@ -416,7 +459,7 @@ public QueryRequestDescriptor RuntimeMappings(Func /// - /// ISO-8601 time zone ID for the search. + /// The ISO-8601 time zone ID for the search. /// /// public QueryRequestDescriptor TimeZone(string? timeZone) @@ -427,7 +470,12 @@ public QueryRequestDescriptor TimeZone(string? timeZone) /// /// - /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. + /// The period to wait for complete results. + /// It defaults to no timeout, meaning the request waits for complete search results. + /// If the search doesn't finish within this period, the search becomes async. + /// + /// + /// To save a synchronous search, you must specify this parameter and the keep_on_completion parameter. /// /// public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) @@ -439,6 +487,12 @@ public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Client protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowPartialSearchResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_search_results"); + writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); + } + if (!string.IsNullOrEmpty(CatalogValue)) { writer.WritePropertyName("catalog"); @@ -573,6 +627,7 @@ public QueryRequestDescriptor() public QueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Sql.SqlFormat? format) => Qs("format", format); + private bool? AllowPartialSearchResultsValue { get; set; } private string? CatalogValue { get; set; } private bool? ColumnarValue { get; set; } private string? CursorValue { get; set; } @@ -594,7 +649,20 @@ public QueryRequestDescriptor() /// /// - /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. + /// If true, the response has partial results when there are shard request timeouts or shard failures. + /// If false, the API returns an error with no partial results. + /// + /// + public QueryRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) + { + AllowPartialSearchResultsValue = allowPartialSearchResults; + return Self; + } + + /// + /// + /// The default catalog (cluster) for queries. + /// If unspecified, the queries execute on the data in the local cluster only. /// /// public QueryRequestDescriptor Catalog(string? catalog) @@ -605,7 +673,8 @@ public QueryRequestDescriptor Catalog(string? catalog) /// /// - /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// If true, the results are in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// The API supports this parameter only for CBOR, JSON, SMILE, and YAML responses. /// /// public QueryRequestDescriptor Columnar(bool? columnar = true) @@ -616,7 +685,7 @@ public QueryRequestDescriptor Columnar(bool? columnar = true) /// /// - /// Cursor used to retrieve a set of paginated results. + /// The cursor used to retrieve a set of paginated results. /// If you specify a cursor, the API only uses the columnar and time_zone request body parameters. /// It ignores other request body parameters. /// @@ -629,7 +698,7 @@ public QueryRequestDescriptor Cursor(string? cursor) /// /// - /// The maximum number of rows (or entries) to return in one response + /// The maximum number of rows (or entries) to return in one response. /// /// public QueryRequestDescriptor FetchSize(int? fetchSize) @@ -640,7 +709,8 @@ public QueryRequestDescriptor FetchSize(int? fetchSize) /// /// - /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). + /// If false, the API returns an exception when encountering multiple values for a field. + /// If true, the API is lenient and returns the first value from the array with no guarantee of consistent results. /// /// public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLeniency = true) @@ -651,7 +721,7 @@ public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLenie /// /// - /// Elasticsearch query DSL for additional filtering. + /// The Elasticsearch query DSL for additional filtering. /// /// public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) @@ -680,7 +750,7 @@ public QueryRequestDescriptor Filter(Action /// - /// If true, the search can run on frozen indices. Defaults to false. + /// If true, the search can run on frozen indices. /// /// public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) @@ -691,7 +761,7 @@ public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) /// /// - /// Retention period for an async or saved synchronous search. + /// The retention period for an async or saved synchronous search. /// /// public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) @@ -702,7 +772,8 @@ public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? /// /// - /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. + /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. + /// If false, Elasticsearch only stores async searches that don't finish before the wait_for_completion_timeout. /// /// public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) @@ -713,7 +784,9 @@ public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) /// /// - /// The timeout before a pagination request fails. + /// The minimum retention period for the scroll cursor. + /// After this time period, a pagination request might fail because the scroll cursor is no longer available. + /// Subsequent scroll requests prolong the lifetime of the scroll cursor by the duration of page_timeout in the scroll request. /// /// public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Duration? pageTimeout) @@ -724,7 +797,7 @@ public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Duration /// /// - /// Values for parameters in the query. + /// The values for parameters in the query. /// /// public QueryRequestDescriptor Params(Func, FluentDictionary> selector) @@ -735,7 +808,7 @@ public QueryRequestDescriptor Params(Func, Flue /// /// - /// SQL query to run. + /// The SQL query to run. /// /// public QueryRequestDescriptor Query(string? query) @@ -757,8 +830,8 @@ public QueryRequestDescriptor RequestTimeout(Elastic.Clients.Elasticsearch.Durat /// /// - /// Defines one or more runtime fields in the search request. These fields take - /// precedence over mapped fields with the same name. + /// One or more runtime fields for the search request. + /// These fields take precedence over mapped fields with the same name. /// /// public QueryRequestDescriptor RuntimeMappings(Func, FluentDescriptorDictionary> selector) @@ -769,7 +842,7 @@ public QueryRequestDescriptor RuntimeMappings(Func /// - /// ISO-8601 time zone ID for the search. + /// The ISO-8601 time zone ID for the search. /// /// public QueryRequestDescriptor TimeZone(string? timeZone) @@ -780,7 +853,12 @@ public QueryRequestDescriptor TimeZone(string? timeZone) /// /// - /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. + /// The period to wait for complete results. + /// It defaults to no timeout, meaning the request waits for complete search results. + /// If the search doesn't finish within this period, the search becomes async. + /// + /// + /// To save a synchronous search, you must specify this parameter and the keep_on_completion parameter. /// /// public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) @@ -792,6 +870,12 @@ public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticse protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowPartialSearchResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_search_results"); + writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); + } + if (!string.IsNullOrEmpty(CatalogValue)) { writer.WritePropertyName("catalog"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs index 68a8c3c72ca..30bb2dceda4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryResponse.g.cs @@ -38,8 +38,8 @@ public sealed partial class QueryResponse : ElasticsearchResponse /// /// - /// Cursor for the next set of paginated results. For CSV, TSV, and - /// TXT responses, this value is returned in the Cursor HTTP header. + /// The cursor for the next set of paginated results. + /// For CSV, TSV, and TXT responses, this value is returned in the Cursor HTTP header. /// /// [JsonInclude, JsonPropertyName("cursor")] @@ -47,9 +47,9 @@ public sealed partial class QueryResponse : ElasticsearchResponse /// /// - /// Identifier for the search. This value is only returned for async and saved - /// synchronous searches. For CSV, TSV, and TXT responses, this value is returned - /// in the Async-ID HTTP header. + /// The identifier for the search. + /// This value is returned only for async and saved synchronous searches. + /// For CSV, TSV, and TXT responses, this value is returned in the Async-ID HTTP header. /// /// [JsonInclude, JsonPropertyName("id")] @@ -57,10 +57,10 @@ public sealed partial class QueryResponse : ElasticsearchResponse /// /// - /// If true, the response does not contain complete search results. If is_partial - /// is true and is_running is true, the search is still running. If is_partial - /// is true but is_running is false, the results are partial due to a failure or - /// timeout. This value is only returned for async and saved synchronous searches. + /// If true, the response does not contain complete search results. + /// If is_partial is true and is_running is true, the search is still running. + /// If is_partial is true but is_running is false, the results are partial due to a failure or timeout. + /// This value is returned only for async and saved synchronous searches. /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. /// /// @@ -69,10 +69,10 @@ public sealed partial class QueryResponse : ElasticsearchResponse /// /// - /// If true, the search is still running. If false, the search has finished. - /// This value is only returned for async and saved synchronous searches. For - /// CSV, TSV, and TXT responses, this value is returned in the Async-partial - /// HTTP header. + /// If true, the search is still running. + /// If false, the search has finished. + /// This value is returned only for async and saved synchronous searches. + /// For CSV, TSV, and TXT responses, this value is returned in the Async-partial HTTP header. /// /// [JsonInclude, JsonPropertyName("is_running")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs index 33dd98cbf08..072b4acbd93 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/TranslateRequest.g.cs @@ -38,6 +38,7 @@ public sealed partial class TranslateRequestParameters : RequestParameters /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. +/// It accepts the same request body parameters as the SQL search API, excluding cursor. /// /// public sealed partial class TranslateRequest : PlainRequest @@ -60,7 +61,7 @@ public sealed partial class TranslateRequest : PlainRequest /// - /// Elasticsearch query DSL for additional filtering. + /// The Elasticsearch query DSL for additional filtering. /// /// [JsonInclude, JsonPropertyName("filter")] @@ -68,7 +69,7 @@ public sealed partial class TranslateRequest : PlainRequest /// - /// SQL query to run. + /// The SQL query to run. /// /// [JsonInclude, JsonPropertyName("query")] @@ -76,7 +77,7 @@ public sealed partial class TranslateRequest : PlainRequest /// - /// ISO-8601 time zone ID for the search. + /// The ISO-8601 time zone ID for the search. /// /// [JsonInclude, JsonPropertyName("time_zone")] @@ -87,6 +88,7 @@ public sealed partial class TranslateRequest : PlainRequest /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. +/// It accepts the same request body parameters as the SQL search API, excluding cursor. /// /// public sealed partial class TranslateRequestDescriptor : RequestDescriptor, TranslateRequestParameters> @@ -125,7 +127,7 @@ public TranslateRequestDescriptor FetchSize(int? fetchSize) /// /// - /// Elasticsearch query DSL for additional filtering. + /// The Elasticsearch query DSL for additional filtering. /// /// public TranslateRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) @@ -154,7 +156,7 @@ public TranslateRequestDescriptor Filter(Action /// - /// SQL query to run. + /// The SQL query to run. /// /// public TranslateRequestDescriptor Query(string query) @@ -165,7 +167,7 @@ public TranslateRequestDescriptor Query(string query) /// /// - /// ISO-8601 time zone ID for the search. + /// The ISO-8601 time zone ID for the search. /// /// public TranslateRequestDescriptor TimeZone(string? timeZone) @@ -215,6 +217,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. +/// It accepts the same request body parameters as the SQL search API, excluding cursor. /// /// public sealed partial class TranslateRequestDescriptor : RequestDescriptor @@ -253,7 +256,7 @@ public TranslateRequestDescriptor FetchSize(int? fetchSize) /// /// - /// Elasticsearch query DSL for additional filtering. + /// The Elasticsearch query DSL for additional filtering. /// /// public TranslateRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) @@ -282,7 +285,7 @@ public TranslateRequestDescriptor Filter(Action /// - /// SQL query to run. + /// The SQL query to run. /// /// public TranslateRequestDescriptor Query(string query) @@ -293,7 +296,7 @@ public TranslateRequestDescriptor Query(string query) /// /// - /// ISO-8601 time zone ID for the search. + /// The ISO-8601 time zone ID for the search. /// /// public TranslateRequestDescriptor TimeZone(string? timeZone) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs index 8468d27085d..387db94bba7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRequest.g.cs @@ -38,6 +38,28 @@ public sealed partial class DeleteSynonymRequestParameters : RequestParameters /// /// Delete a synonym set. /// +/// +/// You can only delete a synonyms set that is not in use by any index analyzer. +/// +/// +/// Synonyms sets can be used in synonym graph token filters and synonym token filters. +/// These synonym filters can be used as part of search analyzers. +/// +/// +/// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). +/// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. +/// +/// +/// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. +/// To prevent that, synonyms sets that are used in analyzers can't be deleted. +/// A delete request in this case will return a 400 response code. +/// +/// +/// To remove a synonyms set, you must first remove all indices that contain analyzers using it. +/// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. +/// Once finished, you can delete the index. +/// When the synonyms set is not used in analyzers, you will be able to delete it. +/// /// public sealed partial class DeleteSynonymRequest : PlainRequest { @@ -58,6 +80,28 @@ public DeleteSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.R /// /// Delete a synonym set. /// +/// +/// You can only delete a synonyms set that is not in use by any index analyzer. +/// +/// +/// Synonyms sets can be used in synonym graph token filters and synonym token filters. +/// These synonym filters can be used as part of search analyzers. +/// +/// +/// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). +/// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. +/// +/// +/// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. +/// To prevent that, synonyms sets that are used in analyzers can't be deleted. +/// A delete request in this case will return a 400 response code. +/// +/// +/// To remove a synonyms set, you must first remove all indices that contain analyzers using it. +/// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. +/// Once finished, you can delete the index. +/// When the synonyms set is not used in analyzers, you will be able to delete it. +/// /// public sealed partial class DeleteSynonymRequestDescriptor : RequestDescriptor, DeleteSynonymRequestParameters> { @@ -90,6 +134,28 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// Delete a synonym set. /// +/// +/// You can only delete a synonyms set that is not in use by any index analyzer. +/// +/// +/// Synonyms sets can be used in synonym graph token filters and synonym token filters. +/// These synonym filters can be used as part of search analyzers. +/// +/// +/// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). +/// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. +/// +/// +/// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. +/// To prevent that, synonyms sets that are used in analyzers can't be deleted. +/// A delete request in this case will return a 400 response code. +/// +/// +/// To remove a synonyms set, you must first remove all indices that contain analyzers using it. +/// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. +/// Once finished, you can delete the index. +/// When the synonyms set is not used in analyzers, you will be able to delete it. +/// /// public sealed partial class DeleteSynonymRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs index 7a128cafa53..433948244ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/DeleteSynonymRuleResponse.g.cs @@ -31,7 +31,7 @@ public sealed partial class DeleteSynonymRuleResponse : ElasticsearchResponse /// /// /// Updating synonyms in a synonym set reloads the associated analyzers. - /// This is the analyzers reloading result + /// This information is the analyzers reloading result. /// /// [JsonInclude, JsonPropertyName("reload_analyzers_details")] @@ -39,7 +39,7 @@ public sealed partial class DeleteSynonymRuleResponse : ElasticsearchResponse /// /// - /// Update operation result + /// The update operation result. /// /// [JsonInclude, JsonPropertyName("result")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs index 4a03450e469..1a1c2913a29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRequest.g.cs @@ -34,14 +34,14 @@ public sealed partial class GetSynonymRequestParameters : RequestParameters { /// /// - /// Starting offset for query rules to be retrieved + /// The starting offset for query rules to retrieve. /// /// public int? From { get => Q("from"); set => Q("from", value); } /// /// - /// specifies a max number of query rules to retrieve + /// The max number of query rules to retrieve. /// /// public int? Size { get => Q("size"); set => Q("size", value); } @@ -68,7 +68,7 @@ public GetSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// /// - /// Starting offset for query rules to be retrieved + /// The starting offset for query rules to retrieve. /// /// [JsonIgnore] @@ -76,7 +76,7 @@ public GetSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// /// - /// specifies a max number of query rules to retrieve + /// The max number of query rules to retrieve. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs index e61b17766d2..b60eca5b7fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymResponse.g.cs @@ -28,8 +28,19 @@ namespace Elastic.Clients.Elasticsearch.Synonyms; public sealed partial class GetSynonymResponse : ElasticsearchResponse { + /// + /// + /// The total number of synonyms rules that the synonyms set contains. + /// + /// [JsonInclude, JsonPropertyName("count")] public int Count { get; init; } + + /// + /// + /// Synonym rule details. + /// + /// [JsonInclude, JsonPropertyName("synonyms_set")] public IReadOnlyCollection SynonymsSet { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs index ff263268dcd..0904230c63f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsRequest.g.cs @@ -34,14 +34,14 @@ public sealed partial class GetSynonymsSetsRequestParameters : RequestParameters { /// /// - /// Starting offset + /// The starting offset for synonyms sets to retrieve. /// /// public int? From { get => Q("from"); set => Q("from", value); } /// /// - /// specifies a max number of results to get + /// The maximum number of synonyms sets to retrieve. /// /// public int? Size { get => Q("size"); set => Q("size", value); } @@ -65,7 +65,7 @@ public sealed partial class GetSynonymsSetsRequest : PlainRequest /// - /// Starting offset + /// The starting offset for synonyms sets to retrieve. /// /// [JsonIgnore] @@ -73,7 +73,7 @@ public sealed partial class GetSynonymsSetsRequest : PlainRequest /// - /// specifies a max number of results to get + /// The maximum number of synonyms sets to retrieve. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs index 62143e3725b..a076a0a397c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymsSetsResponse.g.cs @@ -28,8 +28,19 @@ namespace Elastic.Clients.Elasticsearch.Synonyms; public sealed partial class GetSynonymsSetsResponse : ElasticsearchResponse { + /// + /// + /// The total number of synonyms sets defined. + /// + /// [JsonInclude, JsonPropertyName("count")] public int Count { get; init; } + + /// + /// + /// The identifier and total number of defined synonym rules for each synonyms set. + /// + /// [JsonInclude, JsonPropertyName("results")] public IReadOnlyCollection Results { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index ebde087aa42..ce973aee8d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -40,6 +40,10 @@ public sealed partial class PutSynonymRequestParameters : RequestParameters /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// +/// +/// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. +/// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. +/// /// public sealed partial class PutSynonymRequest : PlainRequest { @@ -57,7 +61,7 @@ public PutSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// /// - /// The synonym set information to update + /// The synonym rules definitions for the synonyms set. /// /// [JsonInclude, JsonPropertyName("synonyms_set")] @@ -71,6 +75,10 @@ public PutSynonymRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requ /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// +/// +/// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. +/// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. +/// /// public sealed partial class PutSynonymRequestDescriptor : RequestDescriptor, PutSynonymRequestParameters> { @@ -101,7 +109,7 @@ public PutSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.I /// /// - /// The synonym set information to update + /// The synonym rules definitions for the synonyms set. /// /// public PutSynonymRequestDescriptor SynonymsSet(ICollection synonymsSet) @@ -182,6 +190,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// +/// +/// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. +/// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. +/// /// public sealed partial class PutSynonymRequestDescriptor : RequestDescriptor { @@ -212,7 +224,7 @@ public PutSynonymRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) /// /// - /// The synonym set information to update + /// The synonym rules definitions for the synonyms set. /// /// public PutSynonymRequestDescriptor SynonymsSet(ICollection synonymsSet) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs index 30b670af3d5..21e739027ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleRequest.g.cs @@ -39,6 +39,12 @@ public sealed partial class PutSynonymRuleRequestParameters : RequestParameters /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// +/// +/// If any of the synonym rules included is invalid, the API returns an error. +/// +/// +/// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. +/// /// public sealed partial class PutSynonymRuleRequest : PlainRequest { @@ -54,6 +60,11 @@ public PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Cli internal override string OperationName => "synonyms.put_synonym_rule"; + /// + /// + /// The synonym rule information definition, which must be in Solr format. + /// + /// [JsonInclude, JsonPropertyName("synonyms")] public string Synonyms { get; set; } } @@ -63,6 +74,12 @@ public PutSynonymRuleRequest(Elastic.Clients.Elasticsearch.Id setId, Elastic.Cli /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// +/// +/// If any of the synonym rules included is invalid, the API returns an error. +/// +/// +/// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. +/// /// public sealed partial class PutSynonymRuleRequestDescriptor : RequestDescriptor { @@ -94,6 +111,11 @@ public PutSynonymRuleRequestDescriptor SetId(Elastic.Clients.Elasticsearch.Id se private string SynonymsValue { get; set; } + /// + /// + /// The synonym rule information definition, which must be in Solr format. + /// + /// public PutSynonymRuleRequestDescriptor Synonyms(string synonyms) { SynonymsValue = synonyms; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs index 652aebc8333..f539cd6fe61 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRuleResponse.g.cs @@ -31,7 +31,7 @@ public sealed partial class PutSynonymRuleResponse : ElasticsearchResponse /// /// /// Updating synonyms in a synonym set reloads the associated analyzers. - /// This is the analyzers reloading result + /// This information is the analyzers reloading result. /// /// [JsonInclude, JsonPropertyName("reload_analyzers_details")] @@ -39,7 +39,7 @@ public sealed partial class PutSynonymRuleResponse : ElasticsearchResponse /// /// - /// Update operation result + /// The update operation result. /// /// [JsonInclude, JsonPropertyName("result")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs index ecf9f2c38c1..efeb0a68d20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs @@ -34,28 +34,28 @@ public sealed partial class CancelRequestParameters : RequestParameters { /// /// - /// Comma-separated list or wildcard expression of actions used to limit the request. + /// A comma-separated list or wildcard expression of actions that is used to limit the request. /// /// public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } /// /// - /// Comma-separated list of node IDs or names used to limit the request. + /// A comma-separated list of node IDs or names that is used to limit the request. /// /// public ICollection? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } /// /// - /// Parent task ID used to limit the tasks. + /// A parent task ID that is used to limit the tasks. /// /// public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } /// /// - /// Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false + /// If true, the request blocks until all found tasks are complete. /// /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -64,6 +64,12 @@ public sealed partial class CancelRequestParameters : RequestParameters /// /// /// Cancel a task. +/// +/// +/// WARNING: The task management API is new and should still be considered a beta feature. +/// The API may change in ways that are not backwards compatible. +/// +/// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -94,7 +100,7 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r /// /// - /// Comma-separated list or wildcard expression of actions used to limit the request. + /// A comma-separated list or wildcard expression of actions that is used to limit the request. /// /// [JsonIgnore] @@ -102,7 +108,7 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r /// /// - /// Comma-separated list of node IDs or names used to limit the request. + /// A comma-separated list of node IDs or names that is used to limit the request. /// /// [JsonIgnore] @@ -110,7 +116,7 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r /// /// - /// Parent task ID used to limit the tasks. + /// A parent task ID that is used to limit the tasks. /// /// [JsonIgnore] @@ -118,7 +124,7 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r /// /// - /// Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false + /// If true, the request blocks until all found tasks are complete. /// /// [JsonIgnore] @@ -128,6 +134,12 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? taskId) : base(r => r /// /// /// Cancel a task. +/// +/// +/// WARNING: The task management API is new and should still be considered a beta feature. +/// The API may change in ways that are not backwards compatible. +/// +/// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs index 543a2fadcd0..b3f67333a91 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class GetTasksRequestParameters : RequestParameters { /// /// - /// Period to wait for a response. + /// The period to wait for a response. /// If no response is received before the timeout expires, the request fails and returns an error. /// /// @@ -53,6 +53,13 @@ public sealed partial class GetTasksRequestParameters : RequestParameters /// Get task information. /// Get information about a task currently running in the cluster. /// +/// +/// WARNING: The task management API is new and should still be considered a beta feature. +/// The API may change in ways that are not backwards compatible. +/// +/// +/// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. +/// /// public sealed partial class GetTasksRequest : PlainRequest { @@ -70,7 +77,7 @@ public GetTasksRequest(Elastic.Clients.Elasticsearch.Id taskId) : base(r => r.Re /// /// - /// Period to wait for a response. + /// The period to wait for a response. /// If no response is received before the timeout expires, the request fails and returns an error. /// /// @@ -91,6 +98,13 @@ public GetTasksRequest(Elastic.Clients.Elasticsearch.Id taskId) : base(r => r.Re /// Get task information. /// Get information about a task currently running in the cluster. /// +/// +/// WARNING: The task management API is new and should still be considered a beta feature. +/// The API may change in ways that are not backwards compatible. +/// +/// +/// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. +/// /// public sealed partial class GetTasksRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs index f20af93fc1b..257c676096f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -34,14 +34,15 @@ public sealed partial class ListRequestParameters : RequestParameters { /// /// - /// Comma-separated list or wildcard expression of actions used to limit the request. + /// A comma-separated list or wildcard expression of actions used to limit the request. + /// For example, you can use cluser:* to retrieve all cluster-related tasks. /// /// public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } /// /// - /// If true, the response includes detailed information about shard recoveries. + /// If true, the response includes detailed information about the running tasks. /// This information is useful to distinguish tasks from each other but is more costly to run. /// /// @@ -49,35 +50,41 @@ public sealed partial class ListRequestParameters : RequestParameters /// /// - /// Key used to group tasks in the response. + /// A key that is used to group tasks in the response. + /// The task lists can be grouped either by nodes or by parent tasks. /// /// public Elastic.Clients.Elasticsearch.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } /// /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Comma-separated list of node IDs or names used to limit returned information. + /// A comma-separated list of node IDs or names that is used to limit the returned information. /// /// public Elastic.Clients.Elasticsearch.NodeIds? Nodes { get => Q("nodes"); set => Q("nodes", value); } /// /// - /// Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of -1. + /// A parent task identifier that is used to limit returned information. + /// To return all tasks, omit this parameter or use a value of -1. + /// If the parent task is not found, the API does not return a 404 response code. /// /// public Elastic.Clients.Elasticsearch.Id? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } /// /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for each node to respond. + /// If a node does not respond before its timeout expires, the response does not include its information. + /// However, timed out nodes are included in the node_failures property. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -95,6 +102,67 @@ public sealed partial class ListRequestParameters : RequestParameters /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// +/// +/// WARNING: The task management API is new and should still be considered a beta feature. +/// The API may change in ways that are not backwards compatible. +/// +/// +/// Identifying running tasks +/// +/// +/// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. +/// This enables you to track certain calls or associate certain tasks with the client that started them. +/// For example: +/// +/// +/// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" +/// +/// +/// The API returns the following result: +/// +/// +/// HTTP/1.1 200 OK +/// X-Opaque-Id: 123456 +/// content-type: application/json; charset=UTF-8 +/// content-length: 831 +/// +/// { +/// "tasks" : { +/// "u5lcZHqcQhu-rUoFaqDphA:45" : { +/// "node" : "u5lcZHqcQhu-rUoFaqDphA", +/// "id" : 45, +/// "type" : "transport", +/// "action" : "cluster:monitor/tasks/lists", +/// "start_time_in_millis" : 1513823752749, +/// "running_time_in_nanos" : 293139, +/// "cancellable" : false, +/// "headers" : { +/// "X-Opaque-Id" : "123456" +/// }, +/// "children" : [ +/// { +/// "node" : "u5lcZHqcQhu-rUoFaqDphA", +/// "id" : 46, +/// "type" : "direct", +/// "action" : "cluster:monitor/tasks/lists[n]", +/// "start_time_in_millis" : 1513823752750, +/// "running_time_in_nanos" : 92133, +/// "cancellable" : false, +/// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", +/// "headers" : { +/// "X-Opaque-Id" : "123456" +/// } +/// } +/// ] +/// } +/// } +/// } +/// +/// +/// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. +/// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. +/// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. +/// /// public sealed partial class ListRequest : PlainRequest { @@ -108,7 +176,8 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// Comma-separated list or wildcard expression of actions used to limit the request. + /// A comma-separated list or wildcard expression of actions used to limit the request. + /// For example, you can use cluser:* to retrieve all cluster-related tasks. /// /// [JsonIgnore] @@ -116,7 +185,7 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// If true, the response includes detailed information about shard recoveries. + /// If true, the response includes detailed information about the running tasks. /// This information is useful to distinguish tasks from each other but is more costly to run. /// /// @@ -125,7 +194,8 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// Key used to group tasks in the response. + /// A key that is used to group tasks in the response. + /// The task lists can be grouped either by nodes or by parent tasks. /// /// [JsonIgnore] @@ -133,7 +203,8 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. /// /// [JsonIgnore] @@ -141,7 +212,7 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// Comma-separated list of node IDs or names used to limit returned information. + /// A comma-separated list of node IDs or names that is used to limit the returned information. /// /// [JsonIgnore] @@ -149,7 +220,9 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of -1. + /// A parent task identifier that is used to limit returned information. + /// To return all tasks, omit this parameter or use a value of -1. + /// If the parent task is not found, the API does not return a 404 response code. /// /// [JsonIgnore] @@ -157,7 +230,9 @@ public sealed partial class ListRequest : PlainRequest /// /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for each node to respond. + /// If a node does not respond before its timeout expires, the response does not include its information. + /// However, timed out nodes are included in the node_failures property. /// /// [JsonIgnore] @@ -177,6 +252,67 @@ public sealed partial class ListRequest : PlainRequest /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// +/// +/// WARNING: The task management API is new and should still be considered a beta feature. +/// The API may change in ways that are not backwards compatible. +/// +/// +/// Identifying running tasks +/// +/// +/// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. +/// This enables you to track certain calls or associate certain tasks with the client that started them. +/// For example: +/// +/// +/// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" +/// +/// +/// The API returns the following result: +/// +/// +/// HTTP/1.1 200 OK +/// X-Opaque-Id: 123456 +/// content-type: application/json; charset=UTF-8 +/// content-length: 831 +/// +/// { +/// "tasks" : { +/// "u5lcZHqcQhu-rUoFaqDphA:45" : { +/// "node" : "u5lcZHqcQhu-rUoFaqDphA", +/// "id" : 45, +/// "type" : "transport", +/// "action" : "cluster:monitor/tasks/lists", +/// "start_time_in_millis" : 1513823752749, +/// "running_time_in_nanos" : 293139, +/// "cancellable" : false, +/// "headers" : { +/// "X-Opaque-Id" : "123456" +/// }, +/// "children" : [ +/// { +/// "node" : "u5lcZHqcQhu-rUoFaqDphA", +/// "id" : 46, +/// "type" : "direct", +/// "action" : "cluster:monitor/tasks/lists[n]", +/// "start_time_in_millis" : 1513823752750, +/// "running_time_in_nanos" : 92133, +/// "cancellable" : false, +/// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", +/// "headers" : { +/// "X-Opaque-Id" : "123456" +/// } +/// } +/// ] +/// } +/// } +/// } +/// +/// +/// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. +/// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. +/// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. +/// /// public sealed partial class ListRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index f9052ff3303..9b7d2037c92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -34,16 +34,33 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters { /// /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// A comma-separated list or wildcard expressions of fields to include in the statistics. + /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. /// /// public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// If true, the response includes: /// + /// + /// + /// + /// The document count (how many documents contain this field). + /// + /// + /// + /// + /// The sum of document frequencies (the sum of document frequencies for all terms in this field). + /// + /// + /// + /// + /// The sum of total term frequencies (the sum of total term frequencies of each term in this field). + /// + /// + /// /// public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } @@ -70,8 +87,8 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -85,14 +102,29 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// If true, the response includes term frequency and document frequency. + /// If true, the response includes: + /// + /// + /// + /// + /// The total term frequency (how often a term occurs in all documents). + /// + /// + /// + /// + /// The document frequency (the number of documents containing the current term). + /// + /// + /// + /// + /// By default these values are not returned since term statistics can have a serious performance impact. /// /// public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } @@ -106,7 +138,7 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// - /// Specific version type. + /// The version type. /// /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } @@ -119,6 +151,69 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// Get information and statistics about terms in the fields of a particular document. /// +/// +/// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. +/// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. +/// For example: +/// +/// +/// GET /my-index-000001/_termvectors/1?fields=message +/// +/// +/// Fields can be specified using wildcards, similar to the multi match query. +/// +/// +/// Term vectors are real-time by default, not near real-time. +/// This can be changed by setting realtime parameter to false. +/// +/// +/// You can request three types of values: term information, term statistics, and field statistics. +/// By default, all term information and field statistics are returned for all fields but term statistics are excluded. +/// +/// +/// Term information +/// +/// +/// +/// +/// term frequency in the field (always returned) +/// +/// +/// +/// +/// term positions (positions: true) +/// +/// +/// +/// +/// start and end offsets (offsets: true) +/// +/// +/// +/// +/// term payloads (payloads: true), as base64 encoded bytes +/// +/// +/// +/// +/// If the requested information wasn't stored in the index, it will be computed on the fly if possible. +/// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. +/// +/// +/// warn +/// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. +/// +/// +/// Behaviour +/// +/// +/// The term and field statistics are not accurate. +/// Deleted documents are not taken into account. +/// The information is only retrieved for the shard the requested document resides in. +/// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. +/// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. +/// Use routing only to hit a particular shard. +/// /// public sealed partial class TermVectorsRequest : PlainRequest { @@ -140,8 +235,8 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// Comma-separated list or wildcard expressions of fields to include in the statistics. - /// Used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// A comma-separated list or wildcard expressions of fields to include in the statistics. + /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. /// /// [JsonIgnore] @@ -149,8 +244,25 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// If true, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// If true, the response includes: /// + /// + /// + /// + /// The document count (how many documents contain this field). + /// + /// + /// + /// + /// The sum of document frequencies (the sum of document frequencies for all terms in this field). + /// + /// + /// + /// + /// The sum of total term frequencies (the sum of total term frequencies of each term in this field). + /// + /// + /// /// [JsonIgnore] public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } @@ -181,8 +293,8 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -198,7 +310,7 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value that is used to route operations to a specific shard. /// /// [JsonIgnore] @@ -206,7 +318,22 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// If true, the response includes term frequency and document frequency. + /// If true, the response includes: + /// + /// + /// + /// + /// The total term frequency (how often a term occurs in all documents). + /// + /// + /// + /// + /// The document frequency (the number of documents containing the current term). + /// + /// + /// + /// + /// By default these values are not returned since term statistics can have a serious performance impact. /// /// [JsonIgnore] @@ -222,7 +349,7 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// Specific version type. + /// The version type. /// /// [JsonIgnore] @@ -240,6 +367,8 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// /// Filter terms based on their tf-idf scores. + /// This could be useful in order find out a good characteristic vector of a document. + /// This feature works in a similar manner to the second phase of the More Like This Query. /// /// [JsonInclude, JsonPropertyName("filter")] @@ -247,7 +376,9 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// Overrides the default per-field analyzer. + /// Override the default per-field analyzer. + /// This is useful in order to generate term vectors in any fashion, especially when using artificial documents. + /// When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated. /// /// [JsonInclude, JsonPropertyName("per_field_analyzer")] @@ -261,6 +392,69 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// Get information and statistics about terms in the fields of a particular document. /// +/// +/// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. +/// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. +/// For example: +/// +/// +/// GET /my-index-000001/_termvectors/1?fields=message +/// +/// +/// Fields can be specified using wildcards, similar to the multi match query. +/// +/// +/// Term vectors are real-time by default, not near real-time. +/// This can be changed by setting realtime parameter to false. +/// +/// +/// You can request three types of values: term information, term statistics, and field statistics. +/// By default, all term information and field statistics are returned for all fields but term statistics are excluded. +/// +/// +/// Term information +/// +/// +/// +/// +/// term frequency in the field (always returned) +/// +/// +/// +/// +/// term positions (positions: true) +/// +/// +/// +/// +/// start and end offsets (offsets: true) +/// +/// +/// +/// +/// term payloads (payloads: true), as base64 encoded bytes +/// +/// +/// +/// +/// If the requested information wasn't stored in the index, it will be computed on the fly if possible. +/// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. +/// +/// +/// warn +/// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. +/// +/// +/// Behaviour +/// +/// +/// The term and field statistics are not accurate. +/// Deleted documents are not taken into account. +/// The information is only retrieved for the shard the requested document resides in. +/// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. +/// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. +/// Use routing only to hit a particular shard. +/// /// public sealed partial class TermVectorsRequestDescriptor : RequestDescriptor, TermVectorsRequestParameters> { @@ -342,6 +536,8 @@ public TermVectorsRequestDescriptor Doc(TDocument? doc) /// /// /// Filter terms based on their tf-idf scores. + /// This could be useful in order find out a good characteristic vector of a document. + /// This feature works in a similar manner to the second phase of the More Like This Query. /// /// public TermVectorsRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) @@ -370,7 +566,9 @@ public TermVectorsRequestDescriptor Filter(Action /// - /// Overrides the default per-field analyzer. + /// Override the default per-field analyzer. + /// This is useful in order to generate term vectors in any fashion, especially when using artificial documents. + /// When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated. /// /// public TermVectorsRequestDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs index 60b90b70370..6e0014e722a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumRequest.g.cs @@ -40,14 +40,11 @@ public sealed partial class TermsEnumRequestParameters : RequestParameters /// /// /// Discover terms that match a partial string in an index. -/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. +/// This API is designed for low-latency look-ups used in auto-complete scenarios. /// /// -/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. -/// This can occur due to a few reasons, such as a request timeout or a node error. -/// -/// -/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. +/// info +/// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequest : PlainRequest @@ -66,7 +63,7 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// - /// When true the provided search string is matched against index terms without case sensitivity. + /// When true, the provided search string is matched against index terms without case sensitivity. /// /// [JsonInclude, JsonPropertyName("case_insensitive")] @@ -82,17 +79,24 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// - /// Allows to filter an index shard if the provided query rewrites to match_none. + /// Filter an index shard if the provided query rewrites to match_none. /// /// [JsonInclude, JsonPropertyName("index_filter")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? IndexFilter { get; set; } + + /// + /// + /// The string after which terms in the index should be returned. + /// It allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. + /// + /// [JsonInclude, JsonPropertyName("search_after")] public string? SearchAfter { get; set; } /// /// - /// How many matching terms to return. + /// The number of matching terms to return. /// /// [JsonInclude, JsonPropertyName("size")] @@ -100,7 +104,12 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// - /// The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. + /// The string to match at the start of indexed terms. + /// If it is not provided, all terms in the field are considered. + /// + /// + /// info + /// The prefix string cannot be larger than the largest possible keyword value, which is Lucene's term byte-length limit of 32766. /// /// [JsonInclude, JsonPropertyName("string")] @@ -108,7 +117,8 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// - /// The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. + /// The maximum length of time to spend collecting results. + /// If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. /// /// [JsonInclude, JsonPropertyName("timeout")] @@ -121,14 +131,11 @@ public TermsEnumRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r /// /// /// Discover terms that match a partial string in an index. -/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. -/// -/// -/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. -/// This can occur due to a few reasons, such as a request timeout or a node error. +/// This API is designed for low-latency look-ups used in auto-complete scenarios. /// /// -/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. +/// info +/// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor, TermsEnumRequestParameters> @@ -169,7 +176,7 @@ public TermsEnumRequestDescriptor Index(Elastic.Clients.Elasticsearch /// /// - /// When true the provided search string is matched against index terms without case sensitivity. + /// When true, the provided search string is matched against index terms without case sensitivity. /// /// public TermsEnumRequestDescriptor CaseInsensitive(bool? caseInsensitive = true) @@ -213,7 +220,7 @@ public TermsEnumRequestDescriptor Field(Expression /// - /// Allows to filter an index shard if the provided query rewrites to match_none. + /// Filter an index shard if the provided query rewrites to match_none. /// /// public TermsEnumRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) @@ -240,6 +247,12 @@ public TermsEnumRequestDescriptor IndexFilter(Action + /// + /// The string after which terms in the index should be returned. + /// It allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. + /// + /// public TermsEnumRequestDescriptor SearchAfter(string? searchAfter) { SearchAfterValue = searchAfter; @@ -248,7 +261,7 @@ public TermsEnumRequestDescriptor SearchAfter(string? searchAfter) /// /// - /// How many matching terms to return. + /// The number of matching terms to return. /// /// public TermsEnumRequestDescriptor Size(int? size) @@ -259,7 +272,12 @@ public TermsEnumRequestDescriptor Size(int? size) /// /// - /// The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. + /// The string to match at the start of indexed terms. + /// If it is not provided, all terms in the field are considered. + /// + /// + /// info + /// The prefix string cannot be larger than the largest possible keyword value, which is Lucene's term byte-length limit of 32766. /// /// public TermsEnumRequestDescriptor String(string? value) @@ -270,7 +288,8 @@ public TermsEnumRequestDescriptor String(string? value) /// /// - /// The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. + /// The maximum length of time to spend collecting results. + /// If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. /// /// public TermsEnumRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) @@ -340,14 +359,11 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Discover terms that match a partial string in an index. -/// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. -/// -/// -/// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. -/// This can occur due to a few reasons, such as a request timeout or a node error. +/// This API is designed for low-latency look-ups used in auto-complete scenarios. /// /// -/// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. +/// info +/// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// /// public sealed partial class TermsEnumRequestDescriptor : RequestDescriptor @@ -384,7 +400,7 @@ public TermsEnumRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName /// /// - /// When true the provided search string is matched against index terms without case sensitivity. + /// When true, the provided search string is matched against index terms without case sensitivity. /// /// public TermsEnumRequestDescriptor CaseInsensitive(bool? caseInsensitive = true) @@ -428,7 +444,7 @@ public TermsEnumRequestDescriptor Field(Expression /// - /// Allows to filter an index shard if the provided query rewrites to match_none. + /// Filter an index shard if the provided query rewrites to match_none. /// /// public TermsEnumRequestDescriptor IndexFilter(Elastic.Clients.Elasticsearch.QueryDsl.Query? indexFilter) @@ -455,6 +471,12 @@ public TermsEnumRequestDescriptor IndexFilter(Action + /// + /// The string after which terms in the index should be returned. + /// It allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. + /// + /// public TermsEnumRequestDescriptor SearchAfter(string? searchAfter) { SearchAfterValue = searchAfter; @@ -463,7 +485,7 @@ public TermsEnumRequestDescriptor SearchAfter(string? searchAfter) /// /// - /// How many matching terms to return. + /// The number of matching terms to return. /// /// public TermsEnumRequestDescriptor Size(int? size) @@ -474,7 +496,12 @@ public TermsEnumRequestDescriptor Size(int? size) /// /// - /// The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request. + /// The string to match at the start of indexed terms. + /// If it is not provided, all terms in the field are considered. + /// + /// + /// info + /// The prefix string cannot be larger than the largest possible keyword value, which is Lucene's term byte-length limit of 32766. /// /// public TermsEnumRequestDescriptor String(string? value) @@ -485,7 +512,8 @@ public TermsEnumRequestDescriptor String(string? value) /// /// - /// The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. + /// The maximum length of time to spend collecting results. + /// If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty. /// /// public TermsEnumRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs index 0c18094311e..f09e804b78d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermsEnumResponse.g.cs @@ -28,6 +28,12 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class TermsEnumResponse : ElasticsearchResponse { + /// + /// + /// If false, the returned terms set may be incomplete and should be treated as approximate. + /// This can occur due to a few reasons, such as a request timeout or a node error. + /// + /// [JsonInclude, JsonPropertyName("complete")] public bool Complete { get; init; } [JsonInclude, JsonPropertyName("_shards")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs index 0e810f8dd67..2fa590ddda5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindFieldStructureRequest.g.cs @@ -73,7 +73,7 @@ public sealed partial class FindFieldStructureRequestParameters : RequestParamet /// /// - /// If true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + /// If true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. /// /// public bool? Explain { get => Q("explain"); set => Q("explain", value); } @@ -126,7 +126,7 @@ public sealed partial class FindFieldStructureRequestParameters : RequestParamet /// /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. - /// Otherwise, the default value is false. + /// Otherwise, the default value is false. /// /// public bool? ShouldTrimFields { get => Q("should_trim_fields"); set => Q("should_trim_fields", value); } @@ -285,6 +285,43 @@ public sealed partial class FindFieldStructureRequestParameters : RequestParamet /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// +/// +/// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. +/// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. +/// +/// +/// The response from the API contains: +/// +/// +/// +/// +/// Sample messages. +/// +/// +/// +/// +/// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. +/// +/// +/// +/// +/// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. +/// +/// +/// +/// +/// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. +/// +/// +/// +/// +/// All this information can be calculated by the structure finder with no guidance. +/// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. +/// +/// +/// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. +/// It helps determine why the returned structure was chosen. +/// /// public sealed partial class FindFieldStructureRequest : PlainRequest { @@ -341,7 +378,7 @@ public sealed partial class FindFieldStructureRequest : PlainRequest /// - /// If true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. + /// If true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result. /// /// [JsonIgnore] @@ -400,7 +437,7 @@ public sealed partial class FindFieldStructureRequest : PlainRequest /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. - /// Otherwise, the default value is false. + /// Otherwise, the default value is false. /// /// [JsonIgnore] @@ -563,6 +600,43 @@ public sealed partial class FindFieldStructureRequest : PlainRequest +/// +/// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. +/// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. +/// +/// +/// The response from the API contains: +/// +/// +/// +/// +/// Sample messages. +/// +/// +/// +/// +/// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. +/// +/// +/// +/// +/// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. +/// +/// +/// +/// +/// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. +/// +/// +/// +/// +/// All this information can be calculated by the structure finder with no guidance. +/// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. +/// +/// +/// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. +/// It helps determine why the returned structure was chosen. +/// /// public sealed partial class FindFieldStructureRequestDescriptor : RequestDescriptor, FindFieldStructureRequestParameters> { @@ -605,6 +679,43 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// +/// +/// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. +/// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. +/// +/// +/// The response from the API contains: +/// +/// +/// +/// +/// Sample messages. +/// +/// +/// +/// +/// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. +/// +/// +/// +/// +/// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. +/// +/// +/// +/// +/// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. +/// +/// +/// +/// +/// All this information can be calculated by the structure finder with no guidance. +/// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. +/// +/// +/// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. +/// It helps determine why the returned structure was chosen. +/// /// public sealed partial class FindFieldStructureRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs index b50c0cabef5..598446e4b63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/FindMessageStructureRequest.g.cs @@ -103,7 +103,7 @@ public sealed partial class FindMessageStructureRequestParameters : RequestParam /// /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. - /// Otherwise, the default value is false. + /// Otherwise, the default value is false. /// /// public bool? ShouldTrimFields { get => Q("should_trim_fields"); set => Q("should_trim_fields", value); } @@ -266,6 +266,8 @@ public sealed partial class FindMessageStructureRequestParameters : RequestParam /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. +/// +/// /// The response from the API contains: /// /// @@ -290,6 +292,10 @@ public sealed partial class FindMessageStructureRequestParameters : RequestParam /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// +/// +/// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. +/// It helps determine why the returned structure was chosen. +/// /// public sealed partial class FindMessageStructureRequest : PlainRequest { @@ -379,7 +385,7 @@ public sealed partial class FindMessageStructureRequest : PlainRequest /// If the format is delimited, you can specify whether values between delimiters should have whitespace trimmed from them. /// If this parameter is not specified and the delimiter is pipe (|), the default value is true. - /// Otherwise, the default value is false. + /// Otherwise, the default value is false. /// /// [JsonIgnore] @@ -554,6 +560,8 @@ public sealed partial class FindMessageStructureRequest : PlainRequest /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. +/// +/// /// The response from the API contains: /// /// @@ -578,6 +586,10 @@ public sealed partial class FindMessageStructureRequest : PlainRequest +/// +/// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. +/// It helps determine why the returned structure was chosen. +/// /// public sealed partial class FindMessageStructureRequestDescriptor : RequestDescriptor, FindMessageStructureRequestParameters> { @@ -638,6 +650,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. +/// +/// /// The response from the API contains: /// /// @@ -662,6 +676,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// +/// +/// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. +/// It helps determine why the returned structure was chosen. +/// /// public sealed partial class FindMessageStructureRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs index 247d72941e7..a5739c82910 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TextStructure/TestGrokPatternRequest.g.cs @@ -34,7 +34,9 @@ public sealed partial class TestGrokPatternRequestParameters : RequestParameters { /// /// - /// The mode of compatibility with ECS compliant Grok patterns (disabled or v1, default: disabled). + /// The mode of compatibility with ECS compliant Grok patterns. + /// Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + /// Valid values are disabled and v1. /// /// public string? EcsCompatibility { get => Q("ecs_compatibility"); set => Q("ecs_compatibility", value); } @@ -59,7 +61,9 @@ public sealed partial class TestGrokPatternRequest : PlainRequest /// - /// The mode of compatibility with ECS compliant Grok patterns (disabled or v1, default: disabled). + /// The mode of compatibility with ECS compliant Grok patterns. + /// Use this parameter to specify whether to use ECS Grok patterns instead of legacy ones when the structure finder creates a Grok pattern. + /// Valid values are disabled and v1. /// /// [JsonIgnore] @@ -67,7 +71,7 @@ public sealed partial class TestGrokPatternRequest : PlainRequest /// - /// Grok pattern to run on the text. + /// The Grok pattern to run on the text. /// /// [JsonInclude, JsonPropertyName("grok_pattern")] @@ -75,7 +79,7 @@ public sealed partial class TestGrokPatternRequest : PlainRequest /// - /// Lines of text to run the Grok pattern on. + /// The lines of text to run the Grok pattern on. /// /// [JsonInclude, JsonPropertyName("text")] @@ -112,7 +116,7 @@ public TestGrokPatternRequestDescriptor() /// /// - /// Grok pattern to run on the text. + /// The Grok pattern to run on the text. /// /// public TestGrokPatternRequestDescriptor GrokPattern(string grokPattern) @@ -123,7 +127,7 @@ public TestGrokPatternRequestDescriptor GrokPattern(string grokPattern) /// /// - /// Lines of text to run the Grok pattern on. + /// The lines of text to run the Grok pattern on. /// /// public TestGrokPatternRequestDescriptor Text(ICollection text) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 26842bb705f..62ddddb5ae9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -43,7 +43,8 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// - /// Analyzer to use for the query string. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } @@ -51,6 +52,7 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } @@ -58,22 +60,24 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// /// The default operator for query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// /// - /// Field to use as default where no field prefix is given in the query string. + /// The field to use as default where no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// public string? Df { get => Q("df"); set => Q("df", value); } /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. + /// It supports comma-separated values, such as open,hidden. /// Valid values are: all, open, closed, hidden, none. /// /// @@ -96,13 +100,14 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// /// - /// ID of the pipeline to use to preprocess incoming documents. + /// The ID of the pipeline to use to preprocess incoming documents. /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. /// If a final pipeline is configured it will always run, regardless of the value of this parameter. /// @@ -111,22 +116,23 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// public string? Preference { get => Q("preference"); set => Q("preference", value); } /// /// - /// Query in the Lucene query string syntax. + /// A query in the Lucene query string syntax. /// /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// /// - /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. + /// If true, Elasticsearch refreshes affected shards to make the operation visible to search after the request completes. + /// This is different than the update API's refresh parameter, which causes just the shard that received the request to be refreshed. /// /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } @@ -134,6 +140,7 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// /// If true, the request cache is used for this request. + /// It defaults to the index-level setting. /// /// public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } @@ -147,35 +154,36 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Period to retain the search context for scrolling. + /// The period to retain the search context for scrolling. /// /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// /// - /// Size of the scroll request that powers the operation. + /// The size of the scroll request that powers the operation. /// /// public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// /// - /// Explicit timeout for each search request. + /// An explicit timeout for each search request. + /// By default, there is no timeout. /// /// public Elastic.Clients.Elasticsearch.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// /// - /// The type of the search operation. Available options: query_then_fetch, dfs_query_then_fetch. + /// The type of the search operation. Available options include query_then_fetch and dfs_query_then_fetch. /// /// public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } @@ -196,17 +204,19 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// - /// Specific tag of the request for logging and statistical purposes. + /// The specific tag of the request for logging and statistical purposes. /// /// public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. - /// Use with caution. + /// + /// + /// IMPORTANT: Use with caution. /// Elasticsearch applies this parameter to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. @@ -216,7 +226,10 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// - /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. + /// The period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. + /// By default, it is one minute. + /// This guarantees Elasticsearch waits for at least the timeout before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -239,6 +252,8 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// The number of shard copies that must be active before proceeding with the operation. /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The timeout parameter controls how long each write request waits for unavailable shards to become available. + /// Both work exactly the way they work in the bulk API. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -246,6 +261,8 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// /// If true, the request blocks until the operation is complete. + /// If false, Elasticsearch performs some preflight checks, launches the request, and returns a task ID that you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at .tasks/task/${taskId}. /// /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } @@ -257,6 +274,157 @@ 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. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: +/// +/// +/// +/// +/// read +/// +/// +/// +/// +/// index or write +/// +/// +/// +/// +/// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. +/// +/// +/// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. +/// When the versions match, the document is updated and the version number is incremented. +/// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. +/// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. +/// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. +/// +/// +/// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. +/// +/// +/// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. +/// A bulk update request is performed for each batch of matching documents. +/// Any query or update failures cause the update by query request to fail and the failures are shown in the response. +/// Any update requests that completed successfully still stick, they are not rolled back. +/// +/// +/// Throttling update requests +/// +/// +/// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. +/// This pads each batch with a wait time to throttle the rate. +/// Set requests_per_second to -1 to turn off throttling. +/// +/// +/// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Update by query supports sliced scroll to parallelize the update process. +/// This can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// Setting slices to auto chooses a reasonable number for most data streams and indices. +/// This setting will use one slice per shard, up to a certain limit. +/// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. +/// +/// +/// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: +/// +/// +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// +/// +/// Update performance scales linearly across available resources with the number of slices. +/// +/// +/// +/// +/// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Update the document source +/// +/// +/// Update by query supports scripts to update the document source. +/// As with the update API, you can set ctx.op to change the operation that is performed. +/// +/// +/// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. +/// The update by query operation skips updating the document and increments the noop counter. +/// +/// +/// Set ctx.op = "delete" if your script decides that the document should be deleted. +/// The update by query operation deletes the document and increments the deleted counter. +/// +/// +/// Update by query supports only index, noop, and delete. +/// Setting ctx.op to anything else is an error. +/// Setting any other field in ctx is an error. +/// This API enables you to only modify the source of matching documents; you cannot move them. +/// /// public sealed partial class UpdateByQueryRequest : PlainRequest { @@ -284,7 +452,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Analyzer to use for the query string. + /// The analyzer to use for the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -293,6 +462,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, wildcard and prefix queries are analyzed. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -301,6 +471,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// The default operator for query string query: AND or OR. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -308,7 +479,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Field to use as default where no field prefix is given in the query string. + /// The field to use as default where no field prefix is given in the query string. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -316,9 +488,9 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Type of index that wildcard patterns can match. + /// The type of index that wildcard patterns can match. /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. - /// Supports comma-separated values, such as open,hidden. + /// It supports comma-separated values, such as open,hidden. /// Valid values are: all, open, closed, hidden, none. /// /// @@ -344,6 +516,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// This parameter can be used only when the q query string parameter is specified. /// /// [JsonIgnore] @@ -351,7 +524,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// ID of the pipeline to use to preprocess incoming documents. + /// The ID of the pipeline to use to preprocess incoming documents. /// If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. /// If a final pipeline is configured it will always run, regardless of the value of this parameter. /// @@ -361,8 +534,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Specifies the node or shard the operation should be performed on. - /// Random by default. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] @@ -370,7 +543,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Query in the Lucene query string syntax. + /// A query in the Lucene query string syntax. /// /// [JsonIgnore] @@ -378,7 +551,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// If true, Elasticsearch refreshes affected shards to make the operation visible to search. + /// If true, Elasticsearch refreshes affected shards to make the operation visible to search after the request completes. + /// This is different than the update API's refresh parameter, which causes just the shard that received the request to be refreshed. /// /// [JsonIgnore] @@ -387,6 +561,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, the request cache is used for this request. + /// It defaults to the index-level setting. /// /// [JsonIgnore] @@ -402,7 +577,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -410,7 +585,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Period to retain the search context for scrolling. + /// The period to retain the search context for scrolling. /// /// [JsonIgnore] @@ -418,7 +593,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Size of the scroll request that powers the operation. + /// The size of the scroll request that powers the operation. /// /// [JsonIgnore] @@ -426,7 +601,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Explicit timeout for each search request. + /// An explicit timeout for each search request. + /// By default, there is no timeout. /// /// [JsonIgnore] @@ -434,7 +610,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// The type of the search operation. Available options: query_then_fetch, dfs_query_then_fetch. + /// The type of the search operation. Available options include query_then_fetch and dfs_query_then_fetch. /// /// [JsonIgnore] @@ -458,7 +634,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Specific tag of the request for logging and statistical purposes. + /// The specific tag of the request for logging and statistical purposes. /// /// [JsonIgnore] @@ -466,10 +642,12 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Maximum number of documents to collect for each shard. + /// The maximum number of documents to collect for each shard. /// If a query reaches this limit, Elasticsearch terminates the query early. /// Elasticsearch collects documents before sorting. - /// Use with caution. + /// + /// + /// IMPORTANT: Use with caution. /// Elasticsearch applies this parameter to each shard handling the request. /// When possible, let Elasticsearch perform early termination automatically. /// Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers. @@ -480,7 +658,10 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. + /// The period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. + /// By default, it is one minute. + /// This guarantees Elasticsearch waits for at least the timeout before failing. + /// The actual wait time could be longer, particularly when multiple waits occur. /// /// [JsonIgnore] @@ -506,6 +687,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// The number of shard copies that must be active before proceeding with the operation. /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The timeout parameter controls how long each write request waits for unavailable shards to become available. + /// Both work exactly the way they work in the bulk API. /// /// [JsonIgnore] @@ -514,6 +697,8 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// /// If true, the request blocks until the operation is complete. + /// If false, Elasticsearch performs some preflight checks, launches the request, and returns a task ID that you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at .tasks/task/${taskId}. /// /// [JsonIgnore] @@ -521,7 +706,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// What to do if update by query hits version conflicts: abort or proceed. + /// The preferred behavior when update by query hits version conflicts: abort or proceed. /// /// [JsonInclude, JsonPropertyName("conflicts")] @@ -537,7 +722,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Specifies the documents to update using the Query DSL. + /// The documents to update using the Query DSL. /// /// [JsonInclude, JsonPropertyName("query")] @@ -566,6 +751,157 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// 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. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: +/// +/// +/// +/// +/// read +/// +/// +/// +/// +/// index or write +/// +/// +/// +/// +/// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. +/// +/// +/// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. +/// When the versions match, the document is updated and the version number is incremented. +/// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. +/// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. +/// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. +/// +/// +/// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. +/// +/// +/// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. +/// A bulk update request is performed for each batch of matching documents. +/// Any query or update failures cause the update by query request to fail and the failures are shown in the response. +/// Any update requests that completed successfully still stick, they are not rolled back. +/// +/// +/// Throttling update requests +/// +/// +/// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. +/// This pads each batch with a wait time to throttle the rate. +/// Set requests_per_second to -1 to turn off throttling. +/// +/// +/// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Update by query supports sliced scroll to parallelize the update process. +/// This can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// Setting slices to auto chooses a reasonable number for most data streams and indices. +/// This setting will use one slice per shard, up to a certain limit. +/// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. +/// +/// +/// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: +/// +/// +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// +/// +/// Update performance scales linearly across available resources with the number of slices. +/// +/// +/// +/// +/// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Update the document source +/// +/// +/// Update by query supports scripts to update the document source. +/// As with the update API, you can set ctx.op to change the operation that is performed. +/// +/// +/// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. +/// The update by query operation skips updating the document and increments the noop counter. +/// +/// +/// Set ctx.op = "delete" if your script decides that the document should be deleted. +/// The update by query operation deletes the document and increments the deleted counter. +/// +/// +/// Update by query supports only index, noop, and delete. +/// Setting ctx.op to anything else is an error. +/// Setting any other field in ctx is an error. +/// This API enables you to only modify the source of matching documents; you cannot move them. +/// /// public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor, UpdateByQueryRequestParameters> { @@ -637,7 +973,7 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elastic /// /// - /// What to do if update by query hits version conflicts: abort or proceed. + /// The preferred behavior when update by query hits version conflicts: abort or proceed. /// /// public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) @@ -659,7 +995,7 @@ public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) /// /// - /// Specifies the documents to update using the Query DSL. + /// The documents to update using the Query DSL. /// /// public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -817,6 +1153,157 @@ 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. /// +/// +/// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: +/// +/// +/// +/// +/// read +/// +/// +/// +/// +/// index or write +/// +/// +/// +/// +/// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. +/// +/// +/// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. +/// When the versions match, the document is updated and the version number is incremented. +/// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. +/// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. +/// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. +/// +/// +/// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. +/// +/// +/// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. +/// A bulk update request is performed for each batch of matching documents. +/// Any query or update failures cause the update by query request to fail and the failures are shown in the response. +/// Any update requests that completed successfully still stick, they are not rolled back. +/// +/// +/// Throttling update requests +/// +/// +/// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. +/// This pads each batch with a wait time to throttle the rate. +/// Set requests_per_second to -1 to turn off throttling. +/// +/// +/// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. +/// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. +/// By default the batch size is 1000, so if requests_per_second is set to 500: +/// +/// +/// target_time = 1000 / 500 per second = 2 seconds +/// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds +/// +/// +/// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. +/// This is "bursty" instead of "smooth". +/// +/// +/// Slicing +/// +/// +/// Update by query supports sliced scroll to parallelize the update process. +/// This can improve efficiency and provide a convenient way to break the request down into smaller parts. +/// +/// +/// Setting slices to auto chooses a reasonable number for most data streams and indices. +/// This setting will use one slice per shard, up to a certain limit. +/// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. +/// +/// +/// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: +/// +/// +/// +/// +/// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. +/// +/// +/// +/// +/// Fetching the status of the task for the request with slices only contains the status of completed slices. +/// +/// +/// +/// +/// These sub-requests are individually addressable for things like cancellation and rethrottling. +/// +/// +/// +/// +/// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. +/// +/// +/// +/// +/// Canceling the request with slices will cancel each sub-request. +/// +/// +/// +/// +/// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. +/// +/// +/// +/// +/// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. +/// +/// +/// +/// +/// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. +/// +/// +/// +/// +/// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: +/// +/// +/// +/// +/// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. +/// +/// +/// +/// +/// Update performance scales linearly across available resources with the number of slices. +/// +/// +/// +/// +/// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. +/// +/// +/// Update the document source +/// +/// +/// Update by query supports scripts to update the document source. +/// As with the update API, you can set ctx.op to change the operation that is performed. +/// +/// +/// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. +/// The update by query operation skips updating the document and increments the noop counter. +/// +/// +/// Set ctx.op = "delete" if your script decides that the document should be deleted. +/// The update by query operation deletes the document and increments the deleted counter. +/// +/// +/// Update by query supports only index, noop, and delete. +/// Setting ctx.op to anything else is an error. +/// Setting any other field in ctx is an error. +/// This API enables you to only modify the source of matching documents; you cannot move them. +/// /// public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor { @@ -884,7 +1371,7 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indi /// /// - /// What to do if update by query hits version conflicts: abort or proceed. + /// The preferred behavior when update by query hits version conflicts: abort or proceed. /// /// public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) @@ -906,7 +1393,7 @@ public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) /// /// - /// Specifies the documents to update using the Query DSL. + /// The documents to update using the Query DSL. /// /// public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryResponse.g.cs index c08f04aa435..6fe3e3fca59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryResponse.g.cs @@ -28,36 +28,120 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class UpdateByQueryResponse : ElasticsearchResponse { + /// + /// + /// The number of scroll responses pulled back by the update by query. + /// + /// [JsonInclude, JsonPropertyName("batches")] public long? Batches { get; init; } + + /// + /// + /// The number of documents that were successfully deleted. + /// + /// [JsonInclude, JsonPropertyName("deleted")] public long? Deleted { get; init; } + + /// + /// + /// Array of failures if there were any unrecoverable errors during the process. + /// If this is non-empty then the request ended because of those failures. + /// Update by query is implemented using batches. + /// Any failure causes the entire process to end, but all failures in the current batch are collected into the array. + /// You can use the conflicts option to prevent reindex from ending when version conflicts occur. + /// + /// [JsonInclude, JsonPropertyName("failures")] public IReadOnlyCollection? Failures { get; init; } + + /// + /// + /// The number of documents that were ignored because the script used for the update by query returned a noop value for ctx.op. + /// + /// [JsonInclude, JsonPropertyName("noops")] public long? Noops { get; init; } + + /// + /// + /// The number of requests per second effectively run during the update by query. + /// + /// [JsonInclude, JsonPropertyName("requests_per_second")] public float? RequestsPerSecond { get; init; } + + /// + /// + /// The number of retries attempted by update by query. + /// bulk is the number of bulk actions retried. + /// search is the number of search actions retried. + /// + /// [JsonInclude, JsonPropertyName("retries")] public Elastic.Clients.Elasticsearch.Retries? Retries { get; init; } [JsonInclude, JsonPropertyName("task")] public Elastic.Clients.Elasticsearch.TaskId? Task { get; init; } [JsonInclude, JsonPropertyName("throttled")] public Elastic.Clients.Elasticsearch.Duration? Throttled { get; init; } + + /// + /// + /// The number of milliseconds the request slept to conform to requests_per_second. + /// + /// [JsonInclude, JsonPropertyName("throttled_millis")] public long? ThrottledMillis { get; init; } [JsonInclude, JsonPropertyName("throttled_until")] public Elastic.Clients.Elasticsearch.Duration? ThrottledUntil { get; init; } + + /// + /// + /// This field should always be equal to zero in an _update_by_query response. + /// It only has meaning when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform to requests_per_second. + /// + /// [JsonInclude, JsonPropertyName("throttled_until_millis")] public long? ThrottledUntilMillis { get; init; } + + /// + /// + /// If true, some requests timed out during the update by query. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool? TimedOut { get; init; } + + /// + /// + /// The number of milliseconds from start to end of the whole operation. + /// + /// [JsonInclude, JsonPropertyName("took")] public long? Took { get; init; } + + /// + /// + /// The number of documents that were successfully processed. + /// + /// [JsonInclude, JsonPropertyName("total")] public long? Total { get; init; } + + /// + /// + /// The number of documents that were successfully updated. + /// + /// [JsonInclude, JsonPropertyName("updated")] public long? Updated { get; init; } + + /// + /// + /// The number of version conflicts that the update by query hit. + /// + /// [JsonInclude, JsonPropertyName("version_conflicts")] public long? VersionConflicts { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index 6ee3ca87ed4..0444bab4be6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -35,6 +35,7 @@ public sealed partial class UpdateByQueryRethrottleRequestParameters : RequestPa /// /// /// The throttle for this request in sub-requests per second. + /// To turn off throttling, set it to -1. /// /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } @@ -66,6 +67,7 @@ public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Id taskId) : /// /// /// The throttle for this request in sub-requests per second. + /// To turn off throttling, set it to -1. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs index 2b7fb9ce352..04e8cf18581 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs @@ -55,52 +55,52 @@ public sealed partial class UpdateRequestParameters : RequestParameters /// /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', it does nothing with refreshes. /// /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// /// - /// If true, the destination must be an index alias. + /// If true, the destination must be an index alias. /// /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } /// /// - /// Specify how many times should the operation be retried when a conflict occurs. + /// The number of times the operation should be retried when a conflict occurs. /// /// public int? RetryOnConflict { get => Q("retry_on_conflict"); set => Q("retry_on_conflict", value); } /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// /// - /// Specify the source fields you want to exclude. + /// The source fields you want to exclude. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// /// - /// Specify the source fields you want to retrieve. + /// The source fields you want to retrieve. /// /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// /// - /// Period to wait for dynamic mapping updates and active shards. - /// This guarantees Elasticsearch waits for at least the timeout before failing. + /// The period to wait for the following operations: dynamic mapping updates and waiting for active shards. + /// Elasticsearch waits for at least the timeout period before failing. /// The actual wait time could be longer, particularly when multiple waits occur. /// /// @@ -108,9 +108,9 @@ public sealed partial class UpdateRequestParameters : RequestParameters /// /// - /// The number of shard copies that must be active before proceeding with the operations. - /// Set to 'all' or any positive integer up to the total number of shards in the index - /// (number_of_replicas+1). Defaults to 1 meaning the primary shard. + /// The number of copies of each shard that must be active before proceeding with the operation. + /// Set to 'all' or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -119,7 +119,42 @@ public sealed partial class UpdateRequestParameters : RequestParameters /// /// /// Update a document. -/// Updates a document by running a script or passing a partial document. +/// +/// +/// Update a document by running a script or passing a partial document. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. +/// +/// +/// The script can update, delete, or skip modifying the document. +/// The API also supports passing a partial document, which is merged into the existing document. +/// To fully replace an existing document, use the index API. +/// This operation: +/// +/// +/// +/// +/// Gets the document (collocated with the shard) from the index. +/// +/// +/// +/// +/// Runs the specified script. +/// +/// +/// +/// +/// Indexes the result. +/// +/// +/// +/// +/// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. +/// +/// +/// The _source field must be enabled to use this API. +/// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// /// public sealed partial class UpdateRequest : PlainRequest @@ -162,9 +197,9 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// If 'true', Elasticsearch refreshes the affected shards to make this operation - /// visible to search, if 'wait_for' then wait for a refresh to make this operation - /// visible to search, if 'false' do nothing with refreshes. + /// If 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. + /// If 'wait_for', it waits for a refresh to make this operation visible to search. + /// If 'false', it does nothing with refreshes. /// /// [JsonIgnore] @@ -172,7 +207,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// If true, the destination must be an index alias. + /// If true, the destination must be an index alias. /// /// [JsonIgnore] @@ -180,7 +215,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specify how many times should the operation be retried when a conflict occurs. + /// The number of times the operation should be retried when a conflict occurs. /// /// [JsonIgnore] @@ -188,7 +223,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Custom value used to route operations to a specific shard. + /// A custom value used to route operations to a specific shard. /// /// [JsonIgnore] @@ -196,7 +231,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specify the source fields you want to exclude. + /// The source fields you want to exclude. /// /// [JsonIgnore] @@ -204,7 +239,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Specify the source fields you want to retrieve. + /// The source fields you want to retrieve. /// /// [JsonIgnore] @@ -212,8 +247,8 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Period to wait for dynamic mapping updates and active shards. - /// This guarantees Elasticsearch waits for at least the timeout before failing. + /// The period to wait for the following operations: dynamic mapping updates and waiting for active shards. + /// Elasticsearch waits for at least the timeout period before failing. /// The actual wait time could be longer, particularly when multiple waits occur. /// /// @@ -222,9 +257,9 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// The number of shard copies that must be active before proceeding with the operations. - /// Set to 'all' or any positive integer up to the total number of shards in the index - /// (number_of_replicas+1). Defaults to 1 meaning the primary shard. + /// The number of copies of each shard that must be active before proceeding with the operation. + /// Set to 'all' or any positive integer up to the total number of shards in the index (number_of_replicas+1). + /// The default value of 1 means it waits for each primary shard to be active. /// /// [JsonIgnore] @@ -232,8 +267,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Set to false to disable setting 'result' in the response - /// to 'noop' if no change to the document occurred. + /// If true, the result in the response is set to noop (no operation) when there are no changes to the document. /// /// [JsonInclude, JsonPropertyName("detect_noop")] @@ -242,6 +276,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// /// A partial update to an existing document. + /// If both doc and script are specified, doc is ignored. /// /// [JsonInclude, JsonPropertyName("doc")] @@ -250,7 +285,8 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Set to true to use the contents of 'doc' as the value of 'upsert' + /// If true, use the contents of 'doc' as the value of 'upsert'. + /// NOTE: Using ingest pipelines with doc_as_upsert is not supported. /// /// [JsonInclude, JsonPropertyName("doc_as_upsert")] @@ -258,7 +294,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Script to execute to update the document. + /// The script to run to update the document. /// /// [JsonInclude, JsonPropertyName("script")] @@ -266,7 +302,7 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Set to true to execute the script whether or not the document exists. + /// If true, run the script whether or not the document exists. /// /// [JsonInclude, JsonPropertyName("scripted_upsert")] @@ -274,8 +310,8 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// Set to false to disable source retrieval. You can also specify a comma-separated - /// list of the fields you want to retrieve. + /// If false, turn off source retrieval. + /// You can also specify a comma-separated list of the fields you want to retrieve. /// /// [JsonInclude, JsonPropertyName("_source")] @@ -283,8 +319,8 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// - /// If the document does not already exist, the contents of 'upsert' are inserted as a - /// new document. If the document exists, the 'script' is executed. + /// If the document does not already exist, the contents of 'upsert' are inserted as a new document. + /// If the document exists, the 'script' is run. /// /// [JsonInclude, JsonPropertyName("upsert")] @@ -295,7 +331,42 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie /// /// /// Update a document. -/// Updates a document by running a script or passing a partial document. +/// +/// +/// Update a document by running a script or passing a partial document. +/// +/// +/// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. +/// +/// +/// The script can update, delete, or skip modifying the document. +/// The API also supports passing a partial document, which is merged into the existing document. +/// To fully replace an existing document, use the index API. +/// This operation: +/// +/// +/// +/// +/// Gets the document (collocated with the shard) from the index. +/// +/// +/// +/// +/// Runs the specified script. +/// +/// +/// +/// +/// Indexes the result. +/// +/// +/// +/// +/// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. +/// +/// +/// The _source field must be enabled to use this API. +/// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// /// public sealed partial class UpdateRequestDescriptor : RequestDescriptor, UpdateRequestParameters> @@ -366,8 +437,7 @@ public UpdateRequestDescriptor Index(Elastic.Client /// /// - /// Set to false to disable setting 'result' in the response - /// to 'noop' if no change to the document occurred. + /// If true, the result in the response is set to noop (no operation) when there are no changes to the document. /// /// public UpdateRequestDescriptor DetectNoop(bool? detectNoop = true) @@ -379,6 +449,7 @@ public UpdateRequestDescriptor DetectNoop(bool? det /// /// /// A partial update to an existing document. + /// If both doc and script are specified, doc is ignored. /// /// public UpdateRequestDescriptor Doc(TPartialDocument? doc) @@ -389,7 +460,8 @@ public UpdateRequestDescriptor Doc(TPartialDocument /// /// - /// Set to true to use the contents of 'doc' as the value of 'upsert' + /// If true, use the contents of 'doc' as the value of 'upsert'. + /// NOTE: Using ingest pipelines with doc_as_upsert is not supported. /// /// public UpdateRequestDescriptor DocAsUpsert(bool? docAsUpsert = true) @@ -400,7 +472,7 @@ public UpdateRequestDescriptor DocAsUpsert(bool? do /// /// - /// Script to execute to update the document. + /// The script to run to update the document. /// /// public UpdateRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) @@ -429,7 +501,7 @@ public UpdateRequestDescriptor Script(Action /// - /// Set to true to execute the script whether or not the document exists. + /// If true, run the script whether or not the document exists. /// /// public UpdateRequestDescriptor ScriptedUpsert(bool? scriptedUpsert = true) @@ -440,8 +512,8 @@ public UpdateRequestDescriptor ScriptedUpsert(bool? /// /// - /// Set to false to disable source retrieval. You can also specify a comma-separated - /// list of the fields you want to retrieve. + /// If false, turn off source retrieval. + /// You can also specify a comma-separated list of the fields you want to retrieve. /// /// public UpdateRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Search.SourceConfig? source) @@ -452,8 +524,8 @@ public UpdateRequestDescriptor Source(Elastic.Clien /// /// - /// If the document does not already exist, the contents of 'upsert' are inserted as a - /// new document. If the document exists, the 'script' is executed. + /// If the document does not already exist, the contents of 'upsert' are inserted as a new document. + /// If the document exists, the 'script' is run. /// /// public UpdateRequestDescriptor Upsert(TDocument? upsert) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs index fb1f7195afe..5a2685e9bdf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateResponse.g.cs @@ -32,18 +32,61 @@ public sealed partial class UpdateResponse : ElasticsearchResponse public bool? ForcedRefresh { get; init; } [JsonInclude, JsonPropertyName("get")] public Elastic.Clients.Elasticsearch.InlineGet? Get { get; init; } + + /// + /// + /// The unique identifier for the added document. + /// + /// [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } + + /// + /// + /// The name of the index the document was added to. + /// + /// [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// + /// The primary term assigned to the document for the indexing operation. + /// + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// + /// The result of the indexing operation: created or updated. + /// + /// [JsonInclude, JsonPropertyName("result")] public Elastic.Clients.Elasticsearch.Result Result { get; init; } + + /// + /// + /// The sequence number assigned to the document for the indexing operation. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. + /// + /// [JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// + /// Information about the replication process of the operation. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + + /// + /// + /// The document version, which is incremented each time the document is updated. + /// + /// [JsonInclude, JsonPropertyName("_version")] public long Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs index 42b67ad0cb0..770c668527f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackInfoRequest.g.cs @@ -41,7 +41,8 @@ public sealed partial class XpackInfoRequestParameters : RequestParameters /// /// - /// A comma-separated list of the information categories to include in the response. For example, build,license,features. + /// A comma-separated list of the information categories to include in the response. + /// For example, build,license,features. /// /// public ICollection? Categories { get => Q?>("categories"); set => Q("categories", value); } @@ -90,7 +91,8 @@ public sealed partial class XpackInfoRequest : PlainRequest /// - /// A comma-separated list of the information categories to include in the response. For example, build,license,features. + /// A comma-separated list of the information categories to include in the response. + /// For example, build,license,features. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs index f166a00e6dc..206d8f11788 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Xpack/XpackUsageRequest.g.cs @@ -34,7 +34,9 @@ public sealed partial class XpackUsageRequestParameters : RequestParameters { /// /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } @@ -59,7 +61,9 @@ public sealed partial class XpackUsageRequest : PlainRequest /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a connection to the master node. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// To indicate that the request should never timeout, set it to -1. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 12a5de69299..64dc90ee161 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -180,7 +180,6 @@ public virtual Task AllocationExplainAsync(Action /// /// 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. @@ -195,7 +194,6 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// /// /// 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. @@ -209,7 +207,6 @@ public virtual Task DeleteComponentTemplateAsyn /// /// /// 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. @@ -224,7 +221,6 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// /// /// 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. @@ -240,7 +236,6 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// /// /// 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. @@ -257,7 +252,6 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// /// /// 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. @@ -271,7 +265,6 @@ public virtual Task DeleteComponentTemplateAsyn /// /// /// 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. @@ -286,7 +279,6 @@ public virtual Task DeleteComponentTemplateAsyn /// /// /// 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. @@ -530,7 +522,7 @@ public virtual Task ExistsComponentTemplateAsyn /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -544,7 +536,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -557,7 +549,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -571,7 +563,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -586,7 +578,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -602,7 +594,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -617,7 +609,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate() /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -633,7 +625,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Action /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -646,7 +638,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -660,7 +652,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -675,7 +667,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -689,7 +681,7 @@ public virtual Task GetComponentTemplateAsync(Canc /// /// /// Get component templates. - /// Retrieves information about component templates. + /// Get information about component templates. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -1893,7 +1885,6 @@ public virtual Task PostVotingConfigExclusio /// /// /// 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. /// /// @@ -1913,6 +1904,13 @@ public virtual Task PostVotingConfigExclusio /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1925,7 +1923,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// /// /// 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. /// /// @@ -1945,6 +1942,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) @@ -1956,7 +1960,6 @@ public virtual Task PutComponentTemplateAsync(PutC /// /// /// 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. /// /// @@ -1976,6 +1979,13 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1988,7 +1998,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutC /// /// /// 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. /// /// @@ -2008,6 +2017,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2021,7 +2037,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// /// /// 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. /// /// @@ -2041,6 +2056,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2055,7 +2077,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// /// /// 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. /// /// @@ -2075,6 +2096,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2087,7 +2115,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// /// /// 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. /// /// @@ -2107,6 +2134,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2120,7 +2154,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// /// /// 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. /// /// @@ -2140,6 +2173,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2154,7 +2194,6 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// /// /// 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. /// /// @@ -2174,6 +2213,13 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2185,7 +2231,6 @@ public virtual Task PutComponentTemplateAsync /// /// 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. /// /// @@ -2205,6 +2250,13 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) @@ -2217,7 +2269,6 @@ public virtual Task PutComponentTemplateAsync /// /// 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. /// /// @@ -2237,6 +2288,13 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -2250,7 +2308,6 @@ public virtual Task PutComponentTemplateAsync /// /// 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. /// /// @@ -2270,6 +2327,13 @@ public virtual Task PutComponentTemplateAsync/* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2281,7 +2345,6 @@ public virtual Task PutComponentTemplateAsync(PutC /// /// /// 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. /// /// @@ -2301,6 +2364,13 @@ public virtual Task PutComponentTemplateAsync(PutC /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) @@ -2313,7 +2383,6 @@ public virtual Task PutComponentTemplateAsync(Elas /// /// /// 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. /// /// @@ -2333,6 +2402,13 @@ public virtual Task PutComponentTemplateAsync(Elas /// You can use C-style /* *\/ block comments in component templates. /// You can include comments anywhere in the request body except before the opening curly bracket. /// + /// + /// Applying component templates + /// + /// + /// You cannot directly apply a component template to a data stream or index. + /// To be applied, a component template must be included in an index template's composed_of list. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs index 544af02adfa..f35e1605024 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs @@ -50,7 +50,7 @@ internal DanglingIndicesNamespacedClient(ElasticsearchClient client) : base(clie /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequest request) @@ -70,7 +70,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndic /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(ListDanglingIndicesRequest request, CancellationToken cancellationToken = default) { @@ -89,7 +89,7 @@ public virtual Task ListDanglingIndicesAsync(ListDa /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequestDescriptor descriptor) @@ -109,7 +109,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndic /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices() @@ -130,7 +130,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices() /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(Action configureRequest) @@ -152,7 +152,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(Action /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(ListDanglingIndicesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -171,7 +171,7 @@ public virtual Task ListDanglingIndicesAsync(ListDa /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task ListDanglingIndicesAsync(Cancel /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs index 53ae4b23514..3a425ae05b8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -39,6 +39,889 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) { } + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(AsyncQueryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryResponse, AsyncQueryRequestParameters>(descriptor); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery() + { + var descriptor = new AsyncQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryResponse, AsyncQueryRequestParameters>(descriptor); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery(Action> configureRequest) + { + var descriptor = new AsyncQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryResponse, AsyncQueryRequestParameters>(descriptor); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery() + { + var descriptor = new AsyncQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryResponse AsyncQuery(Action configureRequest) + { + var descriptor = new AsyncQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(AsyncQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryResponse, AsyncQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryResponse, AsyncQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryResponse, AsyncQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(AsyncQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Run an async ES|QL query. + /// Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its progress, and retrieve results when they become available. + /// + /// + /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(AsyncQueryDeleteRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryDeleteResponse, AsyncQueryDeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryDeleteResponse, AsyncQueryDeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryDeleteResponse, AsyncQueryDeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(AsyncQueryDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryDeleteResponse, AsyncQueryDeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryDeleteResponse, AsyncQueryDeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryDeleteResponse, AsyncQueryDeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(AsyncQueryDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete an async ES|QL query. + /// If the query is still running, it is cancelled. + /// Otherwise, the stored results are deleted. + /// + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a query: + /// + /// + /// + /// + /// The authenticated user that submitted the original query request + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(AsyncQueryGetRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryGetResponse, AsyncQueryGetRequestParameters>(descriptor); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryGetResponse, AsyncQueryGetRequestParameters>(descriptor); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryGetResponse, AsyncQueryGetRequestParameters>(descriptor); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(AsyncQueryGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryGetResponse, AsyncQueryGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryGetResponse, AsyncQueryGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryGetResponse, AsyncQueryGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(AsyncQueryGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get async ES|QL query results. + /// Get the current status and available results or stored results for an ES|QL asynchronous query. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryGetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Run an ES|QL query. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index a47f5e10434..7eee58bcd92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -42,7 +42,13 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -56,7 +62,13 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -69,7 +81,13 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequest reque /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -83,7 +101,13 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescri /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -98,7 +122,13 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -114,7 +144,13 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -129,7 +165,13 @@ public virtual AnalyzeIndexResponse Analyze() /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -145,7 +187,13 @@ public virtual AnalyzeIndexResponse Analyze(Action /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -159,7 +207,13 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descri /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -174,7 +228,13 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -190,7 +250,13 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -205,7 +271,13 @@ public virtual AnalyzeIndexResponse Analyze() /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -221,7 +293,13 @@ public virtual AnalyzeIndexResponse Analyze(Action /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -234,7 +312,13 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRe /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -248,7 +332,13 @@ public virtual Task AnalyzeAsync(Elastic.Client /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -263,7 +353,13 @@ public virtual Task AnalyzeAsync(Elastic.Client /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -277,7 +373,13 @@ public virtual Task AnalyzeAsync(CancellationTo /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -292,7 +394,13 @@ public virtual Task AnalyzeAsync(Action /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -305,7 +413,13 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescri /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -319,7 +433,13 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -334,7 +454,13 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -348,7 +474,13 @@ public virtual Task AnalyzeAsync(CancellationToken cancell /// /// /// Get tokens from text analysis. - /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// The analyze API performs analysis on a text string and returns the resulting tokens. + /// + /// + /// Generating excessive amount of tokens may cause a node to run out of memory. + /// The index.analyze.max_token_count setting enables you to limit the number of tokens that can be produced. + /// If more than this limit of tokens gets generated, an error occurs. + /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -366,6 +498,11 @@ public virtual Task AnalyzeAsync(Action + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -381,6 +518,11 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequest request, CancellationToken cancellationToken = default) @@ -395,6 +537,11 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -410,6 +557,11 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -426,6 +578,11 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -443,6 +600,11 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -459,6 +621,11 @@ public virtual ClearCacheResponse ClearCache() /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -476,6 +643,11 @@ public virtual ClearCacheResponse ClearCache(Action + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -491,6 +663,11 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descrip /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -507,6 +684,11 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -524,6 +706,11 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -540,6 +727,11 @@ public virtual ClearCacheResponse ClearCache() /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -557,6 +749,11 @@ public virtual ClearCacheResponse ClearCache(Action /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -571,6 +768,11 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) @@ -586,6 +788,11 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -602,6 +809,11 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) @@ -617,6 +829,11 @@ public virtual Task ClearCacheAsync(CancellationT /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -633,6 +850,11 @@ public virtual Task ClearCacheAsync(Action + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -647,6 +869,11 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) @@ -662,6 +889,11 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -678,6 +910,11 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) @@ -693,6 +930,11 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// Clear the cache of one or more indices. /// For data streams, the API clears the caches of the stream's backing indices. /// + /// + /// By default, the clear cache API clears all caches. + /// To clear only specific caches, use the fielddata, query, or request parameters. + /// To clear the cache only of specific fields, use the fields parameter. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -745,6 +987,11 @@ public virtual Task ClearCacheAsync(Action /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -759,6 +1006,35 @@ public virtual Task ClearCacheAsync(Action /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -810,6 +1086,11 @@ public virtual CloneIndexResponse Clone(CloneIndexRequest request) /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -824,6 +1105,35 @@ public virtual CloneIndexResponse Clone(CloneIndexRequest request) /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequest request, CancellationToken cancellationToken = default) @@ -874,6 +1184,11 @@ public virtual Task CloneAsync(CloneIndexRequest request, Ca /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -888,6 +1203,35 @@ public virtual Task CloneAsync(CloneIndexRequest request, Ca /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -939,6 +1283,11 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -953,6 +1302,35 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1005,6 +1383,11 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1019,6 +1402,35 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1072,6 +1484,11 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1086,6 +1503,35 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1138,6 +1584,11 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1152,6 +1603,35 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1205,6 +1685,11 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1219,6 +1704,35 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1270,6 +1784,11 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1284,10 +1803,39 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target) + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target) { var descriptor = new CloneIndexRequestDescriptor(index, target); descriptor.BeforeRequest(); @@ -1336,6 +1884,11 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1350,6 +1903,35 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1403,6 +1985,11 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1417,6 +2004,35 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1467,6 +2083,11 @@ public virtual Task CloneAsync(CloneIndexRequestD /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1481,6 +2102,35 @@ public virtual Task CloneAsync(CloneIndexRequestD /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) @@ -1532,6 +2182,11 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1546,6 +2201,35 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1598,6 +2282,11 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1612,6 +2301,35 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) @@ -1663,6 +2381,11 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1677,6 +2400,35 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) @@ -1729,6 +2481,11 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1743,6 +2500,35 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1793,6 +2579,11 @@ public virtual Task CloneAsync(CloneIndexRequestDescriptor d /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1807,6 +2598,35 @@ public virtual Task CloneAsync(CloneIndexRequestDescriptor d /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) @@ -1858,6 +2678,11 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// /// /// + /// The index must be marked as read-only and have a cluster health status of green. + /// + /// + /// + /// /// The target index must not exist. /// /// @@ -1872,6 +2697,35 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// /// /// + /// + /// The current write index on a data stream cannot be cloned. + /// In order to clone the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be cloned. + /// + /// + /// NOTE: Mappings cannot be specified in the _clone request. The mappings of the source index will be used for the target index. + /// + /// + /// Monitor the cloning process + /// + /// + /// The cloning process can be monitored with the cat recovery API or the cluster health API can be used to wait until all primary shards have been allocated by setting the wait_for_status parameter to yellow. + /// + /// + /// The _clone API returns as soon as the target index has been added to the cluster state, before any shards have been allocated. + /// At this point, all shards are in the state unassigned. + /// If, for any reason, the target index can't be allocated, its primary shard will remain unassigned until it can be allocated on that node. + /// + /// + /// Once the primary shard is allocated, it moves to state initializing, and the clone process begins. + /// When the clone operation completes, the shard will become active. + /// At that point, Elasticsearch will try to allocate any replicas and may decide to relocate the primary shard to another node. + /// + /// + /// Wait for active shards + /// + /// + /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action configureRequest, CancellationToken cancellationToken = default) @@ -2506,7 +3360,41 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2520,7 +3408,41 @@ public virtual CreateIndexResponse Create(CreateIndexRequest request) /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2533,25 +3455,93 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Create an index. - /// Creates a new index. + /// Settings for the index. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); + } + + /// + /// + /// Create an index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -2562,7 +3552,41 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2578,7 +3602,41 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2593,7 +3651,41 @@ public virtual CreateIndexResponse Create() /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2609,7 +3701,41 @@ public virtual CreateIndexResponse Create(Action /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2623,7 +3749,41 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descripto /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2638,7 +3798,41 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2654,7 +3848,41 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2667,7 +3895,41 @@ public virtual Task CreateAsync(CreateIndexReque /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2681,7 +3943,41 @@ public virtual Task CreateAsync(Elastic.Clients. /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2696,7 +3992,41 @@ public virtual Task CreateAsync(Elastic.Clients. /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2710,12 +4040,46 @@ public virtual Task CreateAsync(CancellationToke /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { var descriptor = new CreateIndexRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); @@ -2725,7 +4089,41 @@ public virtual Task CreateAsync(Action /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2738,7 +4136,41 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -2752,7 +4184,41 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// /// /// Create an index. - /// Creates a new index. + /// You can use the create index API to add a new index to an Elasticsearch cluster. + /// When creating an index, you can specify the following: + /// + /// + /// + /// + /// Settings for the index. + /// + /// + /// + /// + /// Mappings for fields in the index. + /// + /// + /// + /// + /// Index aliases + /// + /// + /// + /// + /// Wait for active shards + /// + /// + /// By default, index creation will only return a response to the client when the primary copies of each shard have been started, or the request times out. + /// The index creation response will indicate what happened. + /// For example, acknowledged indicates whether the index was successfully created in the cluster, while shards_acknowledged indicates whether the requisite number of shard copies were started for each shard in the index before timing out. + /// Note that it is still possible for either acknowledged or shards_acknowledged to be false, but for the index creation to be successful. + /// These values simply indicate whether the operation completed before the timeout. + /// If acknowledged is false, the request timed out before the cluster state was updated with the newly created index, but it probably will be created sometime soon. + /// If shards_acknowledged is false, then the request timed out before the requisite number of shards were started (by default just the primaries), even if the cluster state was successfully updated to reflect the newly created index (that is to say, acknowledged is true). + /// + /// + /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. + /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -3063,9 +4529,15 @@ public virtual Task DataStreamsStatsAsync(Action /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequest request) @@ -3077,9 +4549,15 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequest request) /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequest request, CancellationToken cancellationToken = default) { @@ -3090,9 +4568,15 @@ public virtual Task DeleteAsync(DeleteIndexRequest request, /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) @@ -3104,9 +4588,15 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescripto /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices) @@ -3119,9 +4609,15 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsear /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -3135,9 +4631,15 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsear /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete() @@ -3150,9 +4652,15 @@ public virtual DeleteIndexResponse Delete() /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Action> configureRequest) @@ -3166,9 +4674,15 @@ public virtual DeleteIndexResponse Delete(Action /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) @@ -3180,9 +4694,15 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descripto /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices) @@ -3195,9 +4715,15 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -3211,9 +4737,15 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3224,9 +4756,15 @@ public virtual Task DeleteAsync(DeleteIndexReque /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -3238,9 +4776,15 @@ public virtual Task DeleteAsync(Elastic.Clients. /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3253,9 +4797,15 @@ public virtual Task DeleteAsync(Elastic.Clients. /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(CancellationToken cancellationToken = default) { @@ -3267,9 +4817,15 @@ public virtual Task DeleteAsync(CancellationToke /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3282,9 +4838,15 @@ public virtual Task DeleteAsync(Action /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3295,9 +4857,15 @@ public virtual Task DeleteAsync(DeleteIndexRequestDescripto /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -3309,9 +4877,15 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear /// /// /// Delete indices. - /// Deletes one or more indices. + /// Deleting an index deletes its documents, shards, and metadata. + /// It does not delete related Kibana components, such as data views, visualizations, or dashboards. + /// + /// + /// You cannot delete the current write index of a data stream. + /// To delete the index, you must roll over the data stream so a new write index is created. + /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3326,7 +4900,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) @@ -3340,7 +4914,7 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(DeleteAliasRequest request, CancellationToken cancellationToken = default) { @@ -3353,7 +4927,7 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequest req /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) @@ -3367,7 +4941,7 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDesc /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) @@ -3382,7 +4956,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) @@ -3398,7 +4972,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Names name) @@ -3413,7 +4987,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) @@ -3429,7 +5003,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) @@ -3443,7 +5017,7 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor desc /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) @@ -3458,7 +5032,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Ind /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -3474,7 +5048,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Ind /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3487,7 +5061,7 @@ public virtual Task DeleteAliasAsync(DeleteAlias /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -3501,7 +5075,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3516,7 +5090,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -3530,7 +5104,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3545,7 +5119,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3558,7 +5132,7 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequestDesc /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -3572,7 +5146,7 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3817,7 +5391,7 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequest request) @@ -3833,7 +5407,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTempla /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -3848,7 +5422,7 @@ public virtual Task DeleteIndexTemplateAsync(Delete /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequestDescriptor descriptor) @@ -3864,7 +5438,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTempla /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -3881,7 +5455,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.E /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -3899,7 +5473,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.E /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3914,7 +5488,7 @@ public virtual Task DeleteIndexTemplateAsync(Delete /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -3930,7 +5504,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3942,9 +5516,9 @@ public virtual Task DeleteIndexTemplateAsync(Elasti /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest request) @@ -3955,9 +5529,9 @@ public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest reque /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(DeleteTemplateRequest request, CancellationToken cancellationToken = default) { @@ -3967,9 +5541,9 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescriptor descriptor) @@ -3980,9 +5554,9 @@ public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescri /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -3994,9 +5568,9 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -4009,9 +5583,9 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(DeleteTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4021,9 +5595,9 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -4034,9 +5608,9 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// /// - /// Deletes a legacy index template. + /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4053,6 +5627,11 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4069,6 +5648,11 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequest request, CancellationToken cancellationToken = default) @@ -4084,6 +5668,11 @@ public virtual Task DiskUsageAsync(DiskUsageRequest request, /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4100,6 +5689,11 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4117,6 +5711,11 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4135,6 +5734,11 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4152,6 +5756,11 @@ public virtual DiskUsageResponse DiskUsage() /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4170,6 +5779,11 @@ public virtual DiskUsageResponse DiskUsage(Action + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4186,6 +5800,11 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4203,6 +5822,11 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4221,6 +5845,11 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -4236,6 +5865,11 @@ public virtual Task DiskUsageAsync(DiskUsageReques /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) @@ -4252,6 +5886,11 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) @@ -4269,6 +5908,11 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(CancellationToken cancellationToken = default) @@ -4285,6 +5929,11 @@ public virtual Task DiskUsageAsync(CancellationTok /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -4302,6 +5951,11 @@ public virtual Task DiskUsageAsync(Action + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -4317,6 +5971,11 @@ public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) @@ -4333,6 +5992,11 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// This API might not support indices created in previous Elasticsearch versions. /// The result of a small index can be inaccurate as some parts of an index might not be analyzed by the API. /// + /// + /// NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index store_size value because some small metadata files are ignored and some parts of data files might not be scanned by the API. + /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. + /// The stored size of the _id field is likely underestimated while the _source field is overestimated. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) @@ -4645,9 +6309,9 @@ public virtual Task DownsampleAsync(Elastic.Clients.Elastics /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequest request) @@ -4659,9 +6323,9 @@ public virtual ExistsResponse Exists(ExistsRequest request) /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) { @@ -4672,9 +6336,9 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) @@ -4686,9 +6350,9 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices) @@ -4701,9 +6365,9 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -4717,9 +6381,9 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists() @@ -4732,9 +6396,9 @@ public virtual ExistsResponse Exists() /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Action> configureRequest) @@ -4748,9 +6412,9 @@ public virtual ExistsResponse Exists(Action /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) @@ -4762,9 +6426,9 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices) @@ -4777,9 +6441,9 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -4793,9 +6457,9 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4806,9 +6470,9 @@ public virtual Task ExistsAsync(ExistsRequestDescript /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -4820,9 +6484,9 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4835,9 +6499,9 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(CancellationToken cancellationToken = default) { @@ -4849,9 +6513,9 @@ public virtual Task ExistsAsync(CancellationToken can /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4864,9 +6528,9 @@ public virtual Task ExistsAsync(Action /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4877,9 +6541,9 @@ public virtual Task ExistsAsync(ExistsRequestDescriptor descript /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -4891,9 +6555,9 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// /// /// Check indices. - /// Checks if one or more indices, index aliases, or data streams exist. + /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5341,9 +7005,13 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequest request) @@ -5355,9 +7023,13 @@ public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequest reque /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(ExistsTemplateRequest request, CancellationToken cancellationToken = default) { @@ -5368,9 +7040,13 @@ public virtual Task ExistsTemplateAsync(ExistsTemplateRe /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequestDescriptor descriptor) @@ -5382,9 +7058,13 @@ public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequestDescri /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -5397,9 +7077,13 @@ public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsear /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -5413,9 +7097,13 @@ public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsear /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(ExistsTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5426,9 +7114,13 @@ public virtual Task ExistsTemplateAsync(ExistsTemplateRe /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -5440,9 +7132,13 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. /// /// /// Check existence of index templates. - /// Returns information about whether a particular index template exists. + /// Get information about whether index templates exist. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5720,7 +7416,11 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest request) @@ -5736,7 +7436,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest re /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(FieldUsageStatsRequest request, CancellationToken cancellationToken = default) { @@ -5751,7 +7455,11 @@ public virtual Task FieldUsageStatsAsync(FieldUsageStat /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDescriptor descriptor) @@ -5767,7 +7475,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStat /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -5784,7 +7496,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -5802,7 +7518,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats() @@ -5819,7 +7539,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats() /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Action> configureRequest) @@ -5837,7 +7561,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDescriptor descriptor) @@ -5853,7 +7581,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDes /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -5870,7 +7602,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticse /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -5888,7 +7624,11 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticse /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(FieldUsageStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5903,7 +7643,11 @@ public virtual Task FieldUsageStatsAsync(Fie /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -5919,7 +7663,11 @@ public virtual Task FieldUsageStatsAsync(Ela /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5936,7 +7684,11 @@ public virtual Task FieldUsageStatsAsync(Ela /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(CancellationToken cancellationToken = default) { @@ -5952,7 +7704,11 @@ public virtual Task FieldUsageStatsAsync(Can /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5969,7 +7725,11 @@ public virtual Task FieldUsageStatsAsync(Act /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(FieldUsageStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5984,7 +7744,11 @@ public virtual Task FieldUsageStatsAsync(FieldUsageStat /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -6000,7 +7764,11 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// Field usage statistics are automatically captured when queries are running on a cluster. /// A shard-level search request that accesses a given field, even if multiple times during that request, is counted as a single use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response body reports the per-shard usage count of the data structures that back the fields in the index. + /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6591,39 +8359,79 @@ public virtual Task FlushAsync(Action con /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Force a merge. - /// Perform the force merge operation on the shards of one or more indices. - /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// Blocks during a force merge /// /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. /// /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ForcemergeAsync(ForcemergeRequest request, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequest(request); } /// @@ -6644,13 +8452,78 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) + public virtual Task ForcemergeAsync(ForcemergeRequest request, CancellationToken cancellationToken = default) { - descriptor.BeforeRequest(); - return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// @@ -6671,12 +8544,77 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescrip /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices) + public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) { - var descriptor = new ForcemergeRequestDescriptor(indices); descriptor.BeforeRequest(); return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } @@ -6699,13 +8637,78 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices) { var descriptor = new ForcemergeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } @@ -6728,12 +8731,79 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge() + public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new ForcemergeRequestDescriptor(); + var descriptor = new ForcemergeRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } @@ -6756,13 +8826,78 @@ public virtual ForcemergeResponse Forcemerge() /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ForcemergeResponse Forcemerge(Action> configureRequest) + public virtual ForcemergeResponse Forcemerge() { var descriptor = new ForcemergeRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } @@ -6785,9 +8920,170 @@ public virtual ForcemergeResponse Forcemerge(Action - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ForcemergeResponse Forcemerge(Action> configureRequest) + { + var descriptor = new ForcemergeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); + } + + /// + /// + /// Force a merge. + /// Perform the force merge operation on the shards of one or more indices. + /// For data streams, the API forces a merge on the shards of the stream's backing indices. + /// + /// + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. + /// + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) { descriptor.BeforeRequest(); @@ -6812,7 +9108,73 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descrip /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices) @@ -6840,7 +9202,73 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indic /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -6869,7 +9297,73 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indic /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge() @@ -6897,7 +9391,73 @@ public virtual ForcemergeResponse Forcemerge() /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Action configureRequest) @@ -6926,7 +9486,73 @@ public virtual ForcemergeResponse Forcemerge(Action /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6952,7 +9578,73 @@ public virtual Task ForcemergeAsync(ForcemergeReq /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -6979,7 +9671,73 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7007,7 +9765,73 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { @@ -7034,7 +9858,73 @@ public virtual Task ForcemergeAsync(CancellationT /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7051,18 +9941,84 @@ public virtual Task ForcemergeAsync(Action /// - /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. - /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// Merging reduces the number of segments in each shard by merging some of them together and also frees up the space used by deleted documents. + /// Merging normally happens automatically, but sometimes it is useful to trigger a merge manually. + /// + /// + /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). + /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". + /// These soft-deleted documents are automatically cleaned up during regular segment merges. + /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. + /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. + /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. + /// + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices /// /// - /// WARNING: We recommend force merging only a read-only index (meaning the index is no longer receiving writes). - /// When documents are updated or deleted, the old version is not immediately removed but instead soft-deleted and marked with a "tombstone". - /// These soft-deleted documents are automatically cleaned up during regular segment merges. - /// But force merge can cause very large (greater than 5 GB) segments to be produced, which are not eligible for regular merges. - /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. - /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7088,7 +10044,73 @@ public virtual Task ForcemergeAsync(ForcemergeRequestDescrip /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -7115,7 +10137,73 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7143,7 +10231,73 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { @@ -7170,7 +10324,73 @@ public virtual Task ForcemergeAsync(CancellationToken cancel /// So the number of soft-deleted documents can then grow rapidly, resulting in higher disk usage and worse search performance. /// If you regularly force merge an index receiving writes, this can also make snapshots more expensive, since the new documents can't be backed up incrementally. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Blocks during a force merge + /// + /// + /// Calls to this API block until the merge is complete (unless request contains wait_for_completion=false). + /// If the client connection is lost before completion then the force merge process will continue in the background. + /// Any new requests to force merge the same indices will also block until the ongoing force merge is complete. + /// + /// + /// Running force merge asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to get the status of the task. + /// However, you can not cancel this task as the force merge task is not cancelable. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// When you are done with a task, you should delete the task document so Elasticsearch can reclaim the space. + /// + /// + /// Force merging multiple indices + /// + /// + /// You can force merge multiple indices with a single request by targeting: + /// + /// + /// + /// + /// One or more data streams that contain multiple backing indices + /// + /// + /// + /// + /// Multiple indices + /// + /// + /// + /// + /// One or more aliases + /// + /// + /// + /// + /// All data streams and indices in a cluster + /// + /// + /// + /// + /// Each targeted shard is force-merged separately using the force_merge threadpool. + /// By default each node only has a single force_merge thread which means that the shards on that node are force-merged one at a time. + /// If you expand the force_merge threadpool on a node then it will force merge its shards in parallel + /// + /// + /// Force merge makes the storage for the shard being merged temporarily increase, as it may require free space up to triple its size in case max_num_segments parameter is set to 1, to rewrite all segments into a new one. + /// + /// + /// Data streams and time-based indices + /// + /// + /// Force-merging is useful for managing a data stream's older backing indices and other time-based indices, particularly after a rollover. + /// In these cases, each index only receives indexing traffic for a certain period of time. + /// Once an index receive no more writes, its shards can be force-merged to a single segment. + /// This can be a good idea because single-segment shards can sometimes use simpler and more efficient data structures to perform searches. + /// For example: + /// + /// + /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7183,10 +10403,10 @@ public virtual Task ForcemergeAsync(Action /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequest request) @@ -7198,10 +10418,10 @@ public virtual GetIndexResponse Get(GetIndexRequest request) /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequest request, CancellationToken cancellationToken = default) { @@ -7212,10 +10432,10 @@ public virtual Task GetAsync(GetIndexRequest request, Cancella /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) @@ -7227,10 +10447,10 @@ public virtual GetIndexResponse Get(GetIndexRequestDescriptor /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices) @@ -7243,10 +10463,10 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Ind /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -7260,10 +10480,10 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Ind /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get() @@ -7276,10 +10496,10 @@ public virtual GetIndexResponse Get() /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Action> configureRequest) @@ -7293,10 +10513,10 @@ public virtual GetIndexResponse Get(Action /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) @@ -7308,10 +10528,10 @@ public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices) @@ -7324,10 +10544,10 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -7341,10 +10561,10 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7355,10 +10575,10 @@ public virtual Task GetAsync(GetIndexRequestDescrip /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7370,10 +10590,10 @@ public virtual Task GetAsync(Elastic.Clients.Elasti /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7386,10 +10606,10 @@ public virtual Task GetAsync(Elastic.Clients.Elasti /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(CancellationToken cancellationToken = default) { @@ -7401,10 +10621,10 @@ public virtual Task GetAsync(CancellationToken canc /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7417,10 +10637,10 @@ public virtual Task GetAsync(Action /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7431,10 +10651,10 @@ public virtual Task GetAsync(GetIndexRequestDescriptor descrip /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7446,10 +10666,10 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind /// /// /// Get index information. - /// Returns information about one or more indices. For data streams, the API returns information about the + /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7464,7 +10684,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequest request) @@ -7478,7 +10698,7 @@ public virtual GetAliasResponse GetAlias(GetAliasRequest request) /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequest request, CancellationToken cancellationToken = default) { @@ -7491,7 +10711,7 @@ public virtual Task GetAliasAsync(GetAliasRequest request, Can /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) @@ -7505,7 +10725,7 @@ public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -7520,7 +10740,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) @@ -7536,7 +10756,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias() @@ -7551,7 +10771,7 @@ public virtual GetAliasResponse GetAlias() /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Action> configureRequest) @@ -7567,7 +10787,7 @@ public virtual GetAliasResponse GetAlias(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) @@ -7581,7 +10801,7 @@ public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -7596,7 +10816,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -7612,7 +10832,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias() @@ -7627,7 +10847,7 @@ public virtual GetAliasResponse GetAlias() /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Action configureRequest) @@ -7643,7 +10863,7 @@ public virtual GetAliasResponse GetAlias(Action confi /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7656,7 +10876,7 @@ public virtual Task GetAliasAsync(GetAliasRequestDe /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -7670,7 +10890,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.E /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7685,7 +10905,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.E /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { @@ -7699,7 +10919,7 @@ public virtual Task GetAliasAsync(CancellationToken /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7714,7 +10934,7 @@ public virtual Task GetAliasAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7727,7 +10947,7 @@ public virtual Task GetAliasAsync(GetAliasRequestDescriptor de /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -7741,7 +10961,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7756,7 +10976,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { @@ -7770,7 +10990,7 @@ public virtual Task GetAliasAsync(CancellationToken cancellati /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7894,6 +11114,120 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(GetDataLifecycleStatsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleStatsAsync(GetDataLifecycleStatsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(GetDataLifecycleStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats() + { + var descriptor = new GetDataLifecycleStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(Action configureRequest) + { + var descriptor = new GetDataLifecycleStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleStatsAsync(GetDataLifecycleStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleStatsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetDataLifecycleStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get data stream lifecycle stats. + /// Get statistics about the data streams that are managed by a data stream lifecycle. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataLifecycleStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetDataLifecycleStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Get data streams. @@ -8074,7 +11408,10 @@ public virtual Task GetDataStreamAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequest request) @@ -8089,7 +11426,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequest re /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(GetFieldMappingRequest request, CancellationToken cancellationToken = default) { @@ -8103,7 +11443,10 @@ public virtual Task GetFieldMappingAsync(GetFieldMappin /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDescriptor descriptor) @@ -8118,7 +11461,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappin /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields) @@ -8134,7 +11480,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest) @@ -8151,7 +11500,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields) @@ -8167,7 +11519,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest) @@ -8184,7 +11539,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDescriptor descriptor) @@ -8199,7 +11557,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDes /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields) @@ -8215,7 +11576,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest) @@ -8232,7 +11596,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields) @@ -8248,7 +11615,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest) @@ -8265,7 +11635,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(GetFieldMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8279,7 +11652,10 @@ public virtual Task GetFieldMappingAsync(Get /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -8294,7 +11670,10 @@ public virtual Task GetFieldMappingAsync(Ela /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8310,7 +11689,10 @@ public virtual Task GetFieldMappingAsync(Ela /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -8325,7 +11707,10 @@ public virtual Task GetFieldMappingAsync(Ela /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8341,7 +11726,10 @@ public virtual Task GetFieldMappingAsync(Ela /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(GetFieldMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8355,7 +11743,10 @@ public virtual Task GetFieldMappingAsync(GetFieldMappin /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -8370,7 +11761,10 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8386,7 +11780,10 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -8401,7 +11798,10 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// Retrieves mapping definitions for one or more fields. /// For data streams, the API retrieves field mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8414,9 +11814,9 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest request) @@ -8428,9 +11828,9 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -8441,9 +11841,9 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequestDescriptor descriptor) @@ -8455,9 +11855,9 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -8470,9 +11870,9 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elastic /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -8486,9 +11886,9 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elastic /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate() @@ -8501,9 +11901,9 @@ public virtual GetIndexTemplateResponse GetIndexTemplate() /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(Action configureRequest) @@ -8517,9 +11917,9 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Action /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8530,9 +11930,9 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -8544,9 +11944,9 @@ public virtual Task GetIndexTemplateAsync(Elastic.Clie /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8559,9 +11959,9 @@ public virtual Task GetIndexTemplateAsync(Elastic.Clie /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(CancellationToken cancellationToken = default) { @@ -8573,9 +11973,9 @@ public virtual Task GetIndexTemplateAsync(Cancellation /// /// /// Get index templates. - /// Returns information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8588,10 +11988,9 @@ public virtual Task GetIndexTemplateAsync(Action /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequest request) @@ -8603,10 +12002,9 @@ public virtual GetMappingResponse GetMapping(GetMappingRequest request) /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequest request, CancellationToken cancellationToken = default) { @@ -8617,10 +12015,9 @@ public virtual Task GetMappingAsync(GetMappingRequest reques /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) @@ -8632,10 +12029,9 @@ public virtual GetMappingResponse GetMapping(GetMappingRequestDescrip /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices) @@ -8648,10 +12044,9 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elastics /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -8665,10 +12060,9 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elastics /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping() @@ -8681,10 +12075,9 @@ public virtual GetMappingResponse GetMapping() /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Action> configureRequest) @@ -8698,10 +12091,9 @@ public virtual GetMappingResponse GetMapping(Action /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) @@ -8713,10 +12105,9 @@ public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descrip /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices) @@ -8729,10 +12120,9 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indic /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -8746,10 +12136,9 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indic /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping() @@ -8762,10 +12151,9 @@ public virtual GetMappingResponse GetMapping() /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Action configureRequest) @@ -8779,10 +12167,9 @@ public virtual GetMappingResponse GetMapping(Action /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8793,10 +12180,9 @@ public virtual Task GetMappingAsync(GetMappingReq /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -8808,10 +12194,9 @@ public virtual Task GetMappingAsync(Elastic.Clien /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8824,10 +12209,9 @@ public virtual Task GetMappingAsync(Elastic.Clien /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) { @@ -8839,10 +12223,9 @@ public virtual Task GetMappingAsync(CancellationT /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8855,10 +12238,9 @@ public virtual Task GetMappingAsync(Action /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8869,10 +12251,9 @@ public virtual Task GetMappingAsync(GetMappingRequestDescrip /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -8884,10 +12265,9 @@ public virtual Task GetMappingAsync(Elastic.Clients.Elastics /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8900,10 +12280,9 @@ public virtual Task GetMappingAsync(Elastic.Clients.Elastics /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) { @@ -8915,10 +12294,9 @@ public virtual Task GetMappingAsync(CancellationToken cancel /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8931,10 +12309,10 @@ public virtual Task GetMappingAsync(Action /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequest request) @@ -8946,10 +12324,10 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequest /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequest request, CancellationToken cancellationToken = default) { @@ -8960,10 +12338,10 @@ public virtual Task GetSettingsAsync(GetIndicesSetti /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestDescriptor descriptor) @@ -8975,10 +12353,10 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSetti /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -8991,10 +12369,10 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) @@ -9008,10 +12386,10 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings() @@ -9024,10 +12402,10 @@ public virtual GetIndicesSettingsResponse GetSettings() /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Action> configureRequest) @@ -9041,10 +12419,10 @@ public virtual GetIndicesSettingsResponse GetSettings(Action /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestDescriptor descriptor) @@ -9056,10 +12434,10 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestD /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -9072,10 +12450,10 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsea /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -9089,10 +12467,10 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsea /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings() @@ -9105,10 +12483,10 @@ public virtual GetIndicesSettingsResponse GetSettings() /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Action configureRequest) @@ -9122,10 +12500,10 @@ public virtual GetIndicesSettingsResponse GetSettings(Action /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9136,10 +12514,10 @@ public virtual Task GetSettingsAsync(GetI /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -9151,10 +12529,10 @@ public virtual Task GetSettingsAsync(Elas /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9167,10 +12545,10 @@ public virtual Task GetSettingsAsync(Elas /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -9182,10 +12560,10 @@ public virtual Task GetSettingsAsync(Canc /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9198,10 +12576,10 @@ public virtual Task GetSettingsAsync(Acti /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9212,10 +12590,10 @@ public virtual Task GetSettingsAsync(GetIndicesSetti /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -9227,10 +12605,10 @@ public virtual Task GetSettingsAsync(Elastic.Clients /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9243,10 +12621,10 @@ public virtual Task GetSettingsAsync(Elastic.Clients /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -9258,10 +12636,10 @@ public virtual Task GetSettingsAsync(CancellationTok /// /// /// Get index settings. - /// Returns setting information for one or more indices. For data streams, - /// returns setting information for the stream’s backing indices. + /// Get setting information for one or more indices. + /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9274,9 +12652,12 @@ public virtual Task GetSettingsAsync(Action /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) @@ -9288,9 +12669,12 @@ public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(GetTemplateRequest request, CancellationToken cancellationToken = default) { @@ -9301,9 +12685,12 @@ public virtual Task GetTemplateAsync(GetTemplateRequest req /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor descriptor) @@ -9315,9 +12702,12 @@ public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor desc /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Names? name) @@ -9330,9 +12720,12 @@ public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Nam /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -9346,9 +12739,12 @@ public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Nam /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate() @@ -9361,9 +12757,12 @@ public virtual GetTemplateResponse GetTemplate() /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(Action configureRequest) @@ -9377,9 +12776,12 @@ public virtual GetTemplateResponse GetTemplate(Action /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(GetTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9390,9 +12792,12 @@ public virtual Task GetTemplateAsync(GetTemplateRequestDesc /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -9404,9 +12809,12 @@ public virtual Task GetTemplateAsync(Elastic.Clients.Elasti /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9419,9 +12827,12 @@ public virtual Task GetTemplateAsync(Elastic.Clients.Elasti /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(CancellationToken cancellationToken = default) { @@ -9433,9 +12844,12 @@ public virtual Task GetTemplateAsync(CancellationToken canc /// /// /// Get index templates. - /// Retrieves information about one or more index templates. + /// Get information about one or more index templates. + /// + /// + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9747,10 +13161,37 @@ public virtual Task ModifyDataStreamAsync(Action /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(OpenIndexRequest request) @@ -9761,10 +13202,37 @@ public virtual OpenIndexResponse Open(OpenIndexRequest request) /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(OpenIndexRequest request, CancellationToken cancellationToken = default) { @@ -9774,10 +13242,37 @@ public virtual Task OpenAsync(OpenIndexRequest request, Cance /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) @@ -9788,10 +13283,37 @@ public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) @@ -9803,10 +13325,37 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -9819,10 +13368,37 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open() @@ -9834,10 +13410,37 @@ public virtual OpenIndexResponse Open() /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Action> configureRequest) @@ -9850,24 +13453,78 @@ public virtual OpenIndexResponse Open(Action /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. + /// Open a closed index. + /// For data streams, the API opens any closed backing indices. + /// + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Open a closed index. + /// For data streams, the API opens any closed backing indices. + /// + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Opens a closed index. - /// For data streams, the API opens any closed backing indices. + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) @@ -9879,10 +13536,37 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indi /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -9895,10 +13579,37 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indi /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9908,10 +13619,37 @@ public virtual Task OpenAsync(OpenIndexRequestDesc /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -9922,10 +13660,37 @@ public virtual Task OpenAsync(Elastic.Clients.Elas /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9937,10 +13702,37 @@ public virtual Task OpenAsync(Elastic.Clients.Elas /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(CancellationToken cancellationToken = default) { @@ -9951,10 +13743,37 @@ public virtual Task OpenAsync(CancellationToken ca /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9966,10 +13785,37 @@ public virtual Task OpenAsync(Action /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9979,10 +13825,37 @@ public virtual Task OpenAsync(OpenIndexRequestDescriptor desc /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -9993,10 +13866,37 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I /// /// - /// Opens a closed index. + /// Open a closed index. /// For data streams, the API opens any closed backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// A closed index is blocked for read/write operations and does not allow all operations that opened indices allow. + /// It is not possible to index documents or to search for documents in a closed index. + /// This allows closed indices to not have to maintain internal data structures for indexing or searching documents, resulting in a smaller overhead on the cluster. + /// + /// + /// When opening or closing an index, the master is responsible for restarting the index shards to reflect the new state of the index. + /// The shards will then go through the normal recovery process. + /// The data of opened or closed indices is automatically replicated by the cluster to ensure that enough shard copies are safely kept around at all times. + /// + /// + /// You can open and close multiple indices. + /// An error is thrown if the request explicitly refers to a missing index. + /// This behavior can be turned off by using the ignore_unavailable=true parameter. + /// + /// + /// By default, you must explicitly name the indices you are opening or closing. + /// To open or close indices with _all, *, or other wildcard expressions, change the action.destructive_requires_name setting to false. + /// This setting can also be changed with the cluster update settings API. + /// + /// + /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. + /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. + /// + /// + /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10518,9 +14418,9 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name) + public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) { - var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); + var descriptor = new PutDataLifecycleRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequest(descriptor); } @@ -10533,9 +14433,9 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) + public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) { - var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); + var descriptor = new PutDataLifecycleRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest(descriptor); @@ -10561,9 +14461,9 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { - var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); + var descriptor = new PutDataLifecycleRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } @@ -10575,9 +14475,9 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle lifecycle, Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutDataLifecycleRequestDescriptor(lifecycle, name); + var descriptor = new PutDataLifecycleRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); @@ -10588,6 +14488,39 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10602,6 +14535,39 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequest request, CancellationToken cancellationToken = default) @@ -10615,6 +14581,39 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10629,6 +14628,39 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemp /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10641,8 +14673,41 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clie /// /// - /// Create or update an index template. - /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// Create or update an index template. + /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. + /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -10660,6 +14725,39 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clie /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10674,6 +14772,39 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10689,6 +14820,39 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elastic /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -10705,6 +14869,39 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elastic /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -10718,6 +14915,39 @@ public virtual Task PutIndexTemplateAsync(P /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) @@ -10732,6 +14962,39 @@ public virtual Task PutIndexTemplateAsync(E /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) @@ -10747,6 +15010,39 @@ public virtual Task PutIndexTemplateAsync(E /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -10760,6 +15056,39 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) @@ -10774,6 +15103,39 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie /// Create or update an index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// + /// + /// Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. + /// Index templates are applied during data stream or index creation. + /// For data streams, these settings and mappings are applied when the stream's backing indices are created. + /// Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. + /// Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. + /// + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Multiple matching templates + /// + /// + /// If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. + /// + /// + /// Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. + /// + /// + /// Composing aliases, mappings, and settings + /// + /// + /// When multiple component templates are specified in the composed_of field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. + /// Any mappings, settings, or aliases from the parent index template are merged in next. + /// Finally, any configuration on the index request itself is merged. + /// Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. + /// If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. + /// This recursive merging strategy applies not only to field mappings, but also root options like dynamic_templates and meta. + /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. + /// If an entry already exists with the same key, then it is overwritten by the new definition. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) @@ -10787,11 +15149,45 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequest request) @@ -10803,11 +15199,45 @@ public virtual PutMappingResponse PutMapping(PutMappingRequest request) /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequest request, CancellationToken cancellationToken = default) { @@ -10818,11 +15248,45 @@ public virtual Task PutMappingAsync(PutMappingRequest reques /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descriptor) @@ -10834,11 +15298,45 @@ public virtual PutMappingResponse PutMapping(PutMappingRequestDescrip /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices) @@ -10851,11 +15349,45 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elastics /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -10869,11 +15401,45 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elastics /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping() @@ -10885,12 +15451,46 @@ public virtual PutMappingResponse PutMapping() /// /// - /// 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. + /// Update field mappings. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. + /// For data streams, these changes are applied to all backing indices by default. + /// + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Action> configureRequest) @@ -10904,11 +15504,45 @@ public virtual PutMappingResponse PutMapping(Action /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descriptor) @@ -10920,11 +15554,45 @@ public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descrip /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices) @@ -10937,11 +15605,45 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indic /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -10955,11 +15657,45 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indic /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10970,11 +15706,45 @@ public virtual Task PutMappingAsync(PutMappingReq /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -10986,11 +15756,45 @@ public virtual Task PutMappingAsync(Elastic.Clien /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11003,11 +15807,45 @@ public virtual Task PutMappingAsync(Elastic.Clien /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(CancellationToken cancellationToken = default) { @@ -11019,11 +15857,45 @@ public virtual Task PutMappingAsync(CancellationT /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11036,11 +15908,45 @@ public virtual Task PutMappingAsync(Action /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11051,11 +15957,45 @@ public virtual Task PutMappingAsync(PutMappingRequestDescrip /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -11067,11 +16007,45 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics /// /// /// 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. + /// Add new fields to an existing data stream or index. + /// You can also use this API to change the search settings of existing fields and add new properties to existing object fields. /// For data streams, these changes are applied to all backing indices by default. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Add multi-fields to an existing field + /// + /// + /// Multi-fields let you index the same field in different ways. + /// You can use this API to update the fields mapping parameter and enable multi-fields for an existing field. + /// WARNING: If an index (or data stream) contains documents when you add a multi-field, those documents will not have values for the new multi-field. + /// You can populate the new multi-field with the update by query API. + /// + /// + /// Change supported mapping parameters for an existing field + /// + /// + /// The documentation for each mapping parameter indicates whether you can update it for an existing field using this API. + /// For example, you can use the update mapping API to update the ignore_above parameter. + /// + /// + /// Change the mapping of an existing field + /// + /// + /// Except for supported mapping parameters, you can't change the mapping or field type of an existing field. + /// Changing an existing field could invalidate data that's already indexed. + /// + /// + /// If you need to change the mapping of a field in a data stream's backing indices, refer to documentation about modifying data streams. + /// If you need to change the mapping of a field in other indices, create a new index with the correct mapping and reindex your data into that index. + /// + /// + /// Rename a field + /// + /// + /// Renaming a field would invalidate data already indexed under the old field name. + /// Instead, add an alias field to create an alternate field name. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11084,10 +16058,25 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequest request) @@ -11099,10 +16088,25 @@ public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequest /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(PutIndicesSettingsRequest request, CancellationToken cancellationToken = default) { @@ -11113,10 +16117,25 @@ public virtual Task PutSettingsAsync(PutIndicesSetti /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequestDescriptor descriptor) @@ -11128,10 +16147,25 @@ public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSetti /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices) @@ -11144,10 +16178,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -11161,10 +16210,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings) @@ -11177,10 +16241,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action> configureRequest) @@ -11194,10 +16273,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequestDescriptor descriptor) @@ -11209,10 +16303,25 @@ public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequestD /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices) @@ -11225,10 +16334,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -11242,10 +16366,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings) @@ -11258,10 +16397,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action configureRequest) @@ -11275,10 +16429,25 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(PutIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11289,10 +16458,25 @@ public virtual Task PutSettingsAsync(PutI /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -11304,10 +16488,25 @@ public virtual Task PutSettingsAsync(Elas /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11320,10 +16519,25 @@ public virtual Task PutSettingsAsync(Elas /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, CancellationToken cancellationToken = default) { @@ -11335,10 +16549,25 @@ public virtual Task PutSettingsAsync(Elas /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11351,10 +16580,25 @@ public virtual Task PutSettingsAsync(Elas /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(PutIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11365,10 +16609,25 @@ public virtual Task PutSettingsAsync(PutIndicesSetti /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -11380,10 +16639,25 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11396,10 +16670,25 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// 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. + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, CancellationToken cancellationToken = default) { @@ -11411,10 +16700,25 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// /// /// Update index settings. - /// Changes dynamic index settings in real time. For data streams, index setting - /// changes are applied to all backing indices by default. + /// Changes dynamic index settings in real time. + /// For data streams, index setting changes are applied to all backing indices by default. + /// + /// + /// To revert a setting to the default value, use a null value. + /// The list of per-index settings that can be updated dynamically on live indices can be found in index module documentation. + /// To preserve existing settings from being updated, set the preserve_existing parameter to true. + /// + /// + /// NOTE: You can only define new analyzers on closed indices. + /// To add an analyzer, you must close the index, define the analyzer, and reopen the index. + /// You cannot close the write index of a data stream. + /// To update the analyzer for a data stream's write index and future backing indices, update the analyzer in the index template used by the stream. + /// Then roll over the data stream to apply the new analyzer to the stream's write index and future backing indices. + /// This affects searches and any new data added to the stream after the rollover. + /// However, it does not affect the data stream's backing indices or their existing data. + /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11442,7 +16746,19 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) @@ -11469,7 +16785,19 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(PutTemplateRequest request, CancellationToken cancellationToken = default) { @@ -11495,7 +16823,19 @@ public virtual Task PutTemplateAsync(PutTemplateRequest req /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor descriptor) @@ -11522,7 +16862,19 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDesc /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -11550,7 +16902,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -11579,7 +16943,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor descriptor) @@ -11606,7 +16982,19 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor desc /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -11634,7 +17022,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -11663,7 +17063,19 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11689,7 +17101,19 @@ public virtual Task PutTemplateAsync(PutTemplate /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -11716,7 +17140,19 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11744,7 +17180,19 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11770,7 +17218,19 @@ public virtual Task PutTemplateAsync(PutTemplateRequestDesc /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -11797,7 +17257,19 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// Changes to index templates do not affect existing indices. /// Settings and mappings specified in create index API requests override any settings or mappings specified in an index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can use C-style /* *\/ block comments in index templates. + /// You can include comments anywhere in the request body, except before the opening curly bracket. + /// + /// + /// Indices matching multiple templates + /// + /// + /// Multiple index templates can potentially match an index, in this case, both the settings and mappings are merged into the final configuration of the index. + /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. + /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11814,6 +17286,9 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -11860,7 +17335,7 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequest request) @@ -11876,6 +17351,9 @@ public virtual RecoveryResponse Recovery(RecoveryRequest request) /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -11922,7 +17400,7 @@ public virtual RecoveryResponse Recovery(RecoveryRequest request) /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(RecoveryRequest request, CancellationToken cancellationToken = default) { @@ -11937,6 +17415,9 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -11983,7 +17464,7 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) @@ -11999,6 +17480,9 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12045,7 +17529,7 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices) @@ -12062,6 +17546,9 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12108,7 +17595,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -12126,6 +17613,9 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12172,7 +17662,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery() @@ -12189,6 +17679,9 @@ public virtual RecoveryResponse Recovery() /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12235,7 +17728,7 @@ public virtual RecoveryResponse Recovery() /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Action> configureRequest) @@ -12253,6 +17746,9 @@ public virtual RecoveryResponse Recovery(Action /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12299,7 +17795,7 @@ public virtual RecoveryResponse Recovery(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) @@ -12315,6 +17811,9 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12361,7 +17860,7 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices) @@ -12378,6 +17877,9 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12424,7 +17926,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -12442,6 +17944,9 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12488,7 +17993,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery() @@ -12505,6 +18010,9 @@ public virtual RecoveryResponse Recovery() /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12551,7 +18059,7 @@ public virtual RecoveryResponse Recovery() /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Action configureRequest) @@ -12569,6 +18077,9 @@ public virtual RecoveryResponse Recovery(Action confi /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12615,7 +18126,7 @@ public virtual RecoveryResponse Recovery(Action confi /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12630,6 +18141,9 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12676,7 +18190,7 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -12692,6 +18206,9 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12738,7 +18255,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12755,6 +18272,9 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12801,7 +18321,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) { @@ -12817,6 +18337,9 @@ public virtual Task RecoveryAsync(CancellationToken /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12863,7 +18386,7 @@ public virtual Task RecoveryAsync(CancellationToken /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12880,6 +18403,9 @@ public virtual Task RecoveryAsync(Action /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12926,7 +18452,7 @@ public virtual Task RecoveryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12941,6 +18467,9 @@ public virtual Task RecoveryAsync(RecoveryRequestDescriptor de /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -12987,7 +18516,7 @@ public virtual Task RecoveryAsync(RecoveryRequestDescriptor de /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -13003,6 +18532,9 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -13049,7 +18581,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13066,6 +18598,9 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -13112,7 +18647,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) { @@ -13128,6 +18663,9 @@ public virtual Task RecoveryAsync(CancellationToken cancellati /// For data streams, the API returns information for the stream's backing indices. /// /// + /// All recoveries, whether ongoing or complete, are kept in the cluster state and may be reported on at any time. + /// + /// /// Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or creating a replica shard from a primary shard. /// When a shard recovery completes, the recovered shard is available for search and indexing. /// @@ -13174,7 +18712,7 @@ public virtual Task RecoveryAsync(CancellationToken cancellati /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13190,7 +18728,22 @@ public virtual Task RecoveryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequest request) @@ -13205,7 +18758,22 @@ public virtual RefreshResponse Refresh(RefreshRequest request) /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequest request, CancellationToken cancellationToken = default) { @@ -13219,7 +18787,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) @@ -13234,7 +18817,22 @@ public virtual RefreshResponse Refresh(RefreshRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices) @@ -13250,7 +18848,22 @@ public virtual RefreshResponse Refresh(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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -13267,7 +18880,22 @@ public virtual RefreshResponse Refresh(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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh() @@ -13283,7 +18911,22 @@ public virtual RefreshResponse Refresh() /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Action> configureRequest) @@ -13300,7 +18943,22 @@ public virtual RefreshResponse Refresh(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) @@ -13315,7 +18973,22 @@ public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices) @@ -13331,7 +19004,22 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? in /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -13348,7 +19036,22 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? in /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh() @@ -13364,7 +19067,22 @@ public virtual RefreshResponse Refresh() /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Action configureRequest) @@ -13381,7 +19099,22 @@ public virtual RefreshResponse Refresh(Action configur /// 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. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13395,7 +19128,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -13410,7 +19158,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13426,7 +19189,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { @@ -13441,7 +19219,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13457,7 +19250,22 @@ public virtual Task RefreshAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13471,7 +19279,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -13486,7 +19309,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13502,7 +19340,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { @@ -13517,7 +19370,22 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds. + /// You can change this default interval with the index.refresh_interval setting. + /// + /// + /// Refresh requests are synchronous and do not return a response until the refresh operation completes. + /// + /// + /// Refreshes are resource-intensive. + /// To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible. + /// + /// + /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. + /// This option ensures the indexing operation waits for a periodic refresh before running the search. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13547,7 +19415,7 @@ public virtual Task RefreshAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) @@ -13576,7 +19444,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchA /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequest request, CancellationToken cancellationToken = default) { @@ -13604,7 +19472,7 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequestDescriptor descriptor) @@ -13633,7 +19501,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Re /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices) @@ -13663,7 +19531,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -13694,7 +19562,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers() @@ -13724,7 +19592,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers() /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Action> configureRequest) @@ -13755,7 +19623,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Ac /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequestDescriptor descriptor) @@ -13784,7 +19652,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchA /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices) @@ -13814,7 +19682,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -13845,7 +19713,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13873,7 +19741,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -13902,7 +19770,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13932,7 +19800,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(CancellationToken cancellationToken = default) { @@ -13961,7 +19829,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13991,7 +19859,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14019,7 +19887,7 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -14048,7 +19916,7 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14087,27 +19955,226 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// /// /// - /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. + /// Multiple patterns and remote clusters are supported. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ResolveClusterAsync(ResolveClusterRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Resolve the cluster. + /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. + /// Multiple patterns and remote clusters are supported. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. /// /// /// /// - /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) /// /// /// /// - /// Cluster version information, including the Elasticsearch server version. + /// A remote cluster is an older version that does not support the feature you want to use in your search. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest request) + public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescriptor descriptor) { - request.BeforeRequest(); - return DoRequest(request); + descriptor.BeforeRequest(); + return DoRequest(descriptor); } /// @@ -14153,62 +20220,44 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest reque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ResolveClusterAsync(ResolveClusterRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// - /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. - /// /// - /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// /// - /// You use the same index expression with this endpoint as you would for cross-cluster search. - /// Index and cluster exclusions are also supported with this endpoint. + /// Advantages of using this endpoint before a cross-cluster search /// /// - /// For each cluster in the index expression, information is returned about: + /// You may want to exclude a cluster or index from a search when: /// /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. - /// - /// - /// - /// - /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. /// /// /// /// - /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. /// /// /// /// - /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) /// /// /// /// - /// Cluster version information, including the Elasticsearch server version. + /// A remote cluster is an older version that does not support the feature you want to use in your search. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescriptor descriptor) + public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names name) { + var descriptor = new ResolveClusterRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequest(descriptor); } @@ -14256,60 +20305,39 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescri /// /// /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names name) - { - var descriptor = new ResolveClusterRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. - /// - /// - /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// /// - /// You use the same index expression with this endpoint as you would for cross-cluster search. - /// Index and cluster exclusions are also supported with this endpoint. + /// Advantages of using this endpoint before a cross-cluster search /// /// - /// For each cluster in the index expression, information is returned about: + /// You may want to exclude a cluster or index from a search when: /// /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. - /// - /// - /// - /// - /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. /// /// /// /// - /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. /// /// /// /// - /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) /// /// /// /// - /// Cluster version information, including the Elasticsearch server version. + /// A remote cluster is an older version that does not support the feature you want to use in your search. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -14363,7 +20391,39 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(ResolveClusterRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14414,7 +20474,39 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -14466,7 +20558,39 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14482,7 +20606,7 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) @@ -14497,7 +20621,7 @@ public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(ResolveIndexRequest request, CancellationToken cancellationToken = default) { @@ -14511,7 +20635,7 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequest /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequestDescriptor descriptor) @@ -14526,7 +20650,7 @@ public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequestDescriptor d /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.Names name) @@ -14542,7 +20666,7 @@ public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.N /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -14559,7 +20683,7 @@ public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.N /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(ResolveIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14573,7 +20697,7 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequestD /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -14588,7 +20712,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14601,7 +20725,55 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14614,35 +20786,179 @@ public virtual RolloverResponse Rollover(RolloverRequest request) /// /// - /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Roll over to a new index. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, RolloverResponse, RolloverRequestParameters>(descriptor); + } + + /// + /// + /// Roll over to a new index. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, RolloverResponse, RolloverRequestParameters>(descriptor); - } - - /// /// - /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14657,7 +20973,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14673,7 +21037,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14688,7 +21100,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14704,7 +21164,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14718,7 +21226,55 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14733,7 +21289,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14749,7 +21353,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14764,7 +21416,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14780,7 +21480,55 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14792,8 +21540,56 @@ public virtual Task RolloverAsync(RolloverRequestDe /// /// - /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// Roll over to a new index. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14807,7 +21603,55 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14822,7 +21666,55 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14836,7 +21728,55 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14851,7 +21791,55 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14864,7 +21852,55 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14878,7 +21914,55 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14893,7 +21977,55 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14907,7 +22039,55 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// /// Roll over to a new index. - /// Creates a new index for a data stream or index alias. + /// TIP: It is recommended to use the index lifecycle rollover action to automate rollovers. + /// + /// + /// The rollover API creates a new index for a data stream or index alias. + /// The API behavior depends on the rollover target. + /// + /// + /// Roll over a data stream + /// + /// + /// If you roll over a data stream, the API creates a new write index for the stream. + /// The stream's previous write index becomes a regular backing index. + /// A rollover also increments the data stream's generation. + /// + /// + /// Roll over an index alias with a write index + /// + /// + /// TIP: Prior to Elasticsearch 7.9, you'd typically use an index alias with a write index to manage time series data. + /// Data streams replace this functionality, require less maintenance, and automatically integrate with data tiers. + /// + /// + /// If an index alias points to multiple indices, one of the indices must be a write index. + /// The rollover API creates a new write index for the alias with is_write_index set to true. + /// The API also sets is_write_index to false for the previous write index. + /// + /// + /// Roll over an index alias with one index + /// + /// + /// If you roll over an index alias that points to only one index, the API creates a new index for the alias and removes the original index from the alias. + /// + /// + /// NOTE: A rollover creates a new index and is subject to the wait_for_active_shards setting. + /// + /// + /// Increment index names for an alias + /// + /// + /// When you roll over an index alias, you can specify a name for the new index. + /// If you don't specify a name and the current index ends with - and a number, such as my-index-000001 or my-index-3, the new index name increments that number. + /// For example, if you roll over an alias with a current index of my-index-000001, the rollover creates a new index named my-index-000002. + /// This number is always six characters and zero-padded, regardless of the previous index's name. + /// + /// + /// If you use an index alias for time series data, you can use date math in the index name to track the rollover date. + /// For example, you can create an alias that points to an index named <my-index-{now/d}-000001>. + /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. + /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -14925,7 +22105,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequest request) @@ -14940,7 +22120,7 @@ public virtual SegmentsResponse Segments(SegmentsRequest request) /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(SegmentsRequest request, CancellationToken cancellationToken = default) { @@ -14954,7 +22134,7 @@ public virtual Task SegmentsAsync(SegmentsRequest request, Can /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) @@ -14969,7 +22149,7 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices) @@ -14985,7 +22165,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -15002,7 +22182,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments() @@ -15018,7 +22198,7 @@ public virtual SegmentsResponse Segments() /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Action> configureRequest) @@ -15035,7 +22215,7 @@ public virtual SegmentsResponse Segments(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) @@ -15050,7 +22230,7 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices) @@ -15066,7 +22246,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -15083,7 +22263,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments() @@ -15099,7 +22279,7 @@ public virtual SegmentsResponse Segments() /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Action configureRequest) @@ -15116,7 +22296,7 @@ public virtual SegmentsResponse Segments(Action confi /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15130,7 +22310,7 @@ public virtual Task SegmentsAsync(SegmentsRequestDe /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -15145,7 +22325,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15161,7 +22341,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(CancellationToken cancellationToken = default) { @@ -15176,7 +22356,7 @@ public virtual Task SegmentsAsync(CancellationToken /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15192,7 +22372,7 @@ public virtual Task SegmentsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15206,7 +22386,7 @@ public virtual Task SegmentsAsync(SegmentsRequestDescriptor de /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -15221,7 +22401,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -15237,7 +22417,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(CancellationToken cancellationToken = default) { @@ -15252,7 +22432,7 @@ public virtual Task SegmentsAsync(CancellationToken cancellati /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -15296,7 +22476,7 @@ public virtual Task SegmentsAsync(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequest request) @@ -15339,7 +22519,7 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequest request) /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(ShardStoresRequest request, CancellationToken cancellationToken = default) { @@ -15381,7 +22561,7 @@ public virtual Task ShardStoresAsync(ShardStoresRequest req /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor descriptor) @@ -15424,7 +22604,7 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDesc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices) @@ -15468,7 +22648,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -15513,7 +22693,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores() @@ -15557,7 +22737,7 @@ public virtual ShardStoresResponse ShardStores() /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Action> configureRequest) @@ -15602,7 +22782,7 @@ public virtual ShardStoresResponse ShardStores(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor descriptor) @@ -15645,7 +22825,7 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor desc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices) @@ -15689,7 +22869,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Ind /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -15734,7 +22914,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Ind /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores() @@ -15778,7 +22958,7 @@ public virtual ShardStoresResponse ShardStores() /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Action configureRequest) @@ -15823,7 +23003,7 @@ public virtual ShardStoresResponse ShardStores(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(ShardStoresRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15865,7 +23045,7 @@ public virtual Task ShardStoresAsync(ShardStores /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -15908,7 +23088,7 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15952,7 +23132,7 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(CancellationToken cancellationToken = default) { @@ -15995,7 +23175,7 @@ public virtual Task ShardStoresAsync(Cancellatio /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -16039,7 +23219,7 @@ public virtual Task ShardStoresAsync(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(ShardStoresRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -16081,7 +23261,7 @@ public virtual Task ShardStoresAsync(ShardStoresRequestDesc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -16124,7 +23304,7 @@ public virtual Task ShardStoresAsync(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -16168,7 +23348,7 @@ public virtual Task ShardStoresAsync(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(CancellationToken cancellationToken = default) { @@ -16211,7 +23391,7 @@ public virtual Task ShardStoresAsync(CancellationToken canc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -17587,9 +24767,9 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndexTemplateRequest request) @@ -17601,9 +24781,9 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndex /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -17614,9 +24794,9 @@ public virtual Task SimulateIndexTemplateAsync(Si /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndexTemplateRequestDescriptor descriptor) @@ -17628,9 +24808,9 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndex /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -17643,9 +24823,9 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clien /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -17659,9 +24839,9 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clien /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17672,9 +24852,9 @@ public virtual Task SimulateIndexTemplateAsync(Si /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -17686,9 +24866,9 @@ public virtual Task SimulateIndexTemplateAsync(El /// /// /// Simulate an index. - /// Returns the index configuration that would be applied to the specified index from an existing index template. + /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -17701,9 +24881,9 @@ public virtual Task SimulateIndexTemplateAsync(El /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest request) @@ -17715,9 +24895,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(SimulateTemplateRequest request, CancellationToken cancellationToken = default) { @@ -17728,9 +24908,9 @@ public virtual Task SimulateTemplateAsync(SimulateTemp /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequestDescriptor descriptor) @@ -17742,9 +24922,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemp /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -17757,9 +24937,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clie /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name, Action> configureRequest) @@ -17773,9 +24953,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clie /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate() @@ -17788,9 +24968,9 @@ public virtual SimulateTemplateResponse SimulateTemplate() /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Action> configureRequest) @@ -17804,9 +24984,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(Action /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequestDescriptor descriptor) @@ -17818,9 +24998,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -17833,9 +25013,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elastic /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -17849,9 +25029,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elastic /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate() @@ -17864,9 +25044,9 @@ public virtual SimulateTemplateResponse SimulateTemplate() /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Action configureRequest) @@ -17880,9 +25060,9 @@ public virtual SimulateTemplateResponse SimulateTemplate(Action /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17893,9 +25073,9 @@ public virtual Task SimulateTemplateAsync(S /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -17907,9 +25087,9 @@ public virtual Task SimulateTemplateAsync(E /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17922,9 +25102,9 @@ public virtual Task SimulateTemplateAsync(E /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) { @@ -17936,9 +25116,9 @@ public virtual Task SimulateTemplateAsync(C /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17951,9 +25131,9 @@ public virtual Task SimulateTemplateAsync(A /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17964,9 +25144,9 @@ public virtual Task SimulateTemplateAsync(SimulateTemp /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -17978,9 +25158,9 @@ public virtual Task SimulateTemplateAsync(Elastic.Clie /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -17993,9 +25173,9 @@ public virtual Task SimulateTemplateAsync(Elastic.Clie /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) { @@ -18007,9 +25187,9 @@ public virtual Task SimulateTemplateAsync(Cancellation /// /// /// Simulate an index template. - /// Returns the index configuration that would be applied by a particular index template. + /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -18042,6 +25222,16 @@ public virtual Task SimulateTemplateAsync(Action /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18128,6 +25318,16 @@ public virtual SplitIndexResponse Split(SplitIndexRequest request) /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18213,6 +25413,16 @@ public virtual Task SplitAsync(SplitIndexRequest request, Ca /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18299,6 +25509,16 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18386,6 +25606,16 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18474,6 +25704,16 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18560,6 +25800,16 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18647,6 +25897,16 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18735,6 +25995,16 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18820,6 +26090,16 @@ public virtual Task SplitAsync(SplitIndexRequestD /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18906,6 +26186,16 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -18993,6 +26283,16 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -19078,6 +26378,16 @@ public virtual Task SplitAsync(SplitIndexRequestDescriptor d /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -19164,6 +26474,16 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// /// + /// You can do make an index read-only with the following request using the add index block API: + /// + /// + /// PUT /my_source_index/_block/write + /// + /// + /// The current write index on a data stream cannot be split. + /// In order to split the current write index, the data stream must first be rolled over so that a new write index is created and then the previous write index can be split. + /// + /// /// The number of times the index can be split (and the number of shards that each original shard can be split into) is determined by the index.number_of_routing_shards setting. /// The number of routing shards specifies the hashing space that is used internally to distribute documents across shards with consistent hashing. /// For instance, a 5 shard index with number_of_routing_shards set to 30 (5 x 2 x 3) could be split by a factor of 2 or 3. @@ -19245,7 +26565,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) @@ -19271,7 +26591,7 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(IndicesStatsRequest request, CancellationToken cancellationToken = default) { @@ -19296,7 +26616,7 @@ public virtual Task StatsAsync(IndicesStatsRequest request /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descriptor) @@ -19322,7 +26642,7 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescript /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -19349,7 +26669,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action> configureRequest) @@ -19377,7 +26697,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats() @@ -19404,7 +26724,7 @@ public virtual IndicesStatsResponse Stats() /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Action> configureRequest) @@ -19432,7 +26752,7 @@ public virtual IndicesStatsResponse Stats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descriptor) @@ -19458,7 +26778,7 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descript /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -19485,7 +26805,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -19513,7 +26833,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats() @@ -19540,7 +26860,7 @@ public virtual IndicesStatsResponse Stats() /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Action configureRequest) @@ -19568,7 +26888,7 @@ public virtual IndicesStatsResponse Stats(Action /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -19593,7 +26913,7 @@ public virtual Task StatsAsync(IndicesStatsRequ /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -19619,7 +26939,7 @@ public virtual Task StatsAsync(Elastic.Clients. /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -19646,7 +26966,7 @@ public virtual Task StatsAsync(Elastic.Clients. /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -19672,7 +26992,7 @@ public virtual Task StatsAsync(CancellationToke /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -19699,7 +27019,7 @@ public virtual Task StatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -19724,7 +27044,7 @@ public virtual Task StatsAsync(IndicesStatsRequestDescript /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -19750,7 +27070,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -19777,7 +27097,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -19803,7 +27123,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index 42d1bec24e3..0da706e74f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -806,4 +806,520 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamInferenceResponse StreamInference(StreamInferenceRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamInferenceAsync(StreamInferenceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamInferenceResponse StreamInference(StreamInferenceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new StreamInferenceRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new StreamInferenceRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamInferenceAsync(StreamInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new StreamInferenceRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new StreamInferenceRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateInferenceResponse Update(UpdateInferenceRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAsync(UpdateInferenceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateInferenceResponse Update(UpdateInferenceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAsync(UpdateInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, taskType, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Update an inference endpoint. + /// + /// + /// Modify task_settings, secrets (within service_settings), or num_allocations for an inference endpoint, depending on the specific endpoint service and task_type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. + /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateInferenceRequestDescriptor(inferenceConfig, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs index af43b48f478..2de10d980ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs @@ -911,7 +911,7 @@ public virtual Task PostStartBasicAsync(Action /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequest request) @@ -932,7 +932,7 @@ public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequest reque /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(PostStartTrialRequest request, CancellationToken cancellationToken = default) { @@ -952,7 +952,7 @@ public virtual Task PostStartTrialAsync(PostStartTrialRe /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequestDescriptor descriptor) @@ -973,7 +973,7 @@ public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequestDescri /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial() @@ -995,7 +995,7 @@ public virtual PostStartTrialResponse PostStartTrial() /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(Action configureRequest) @@ -1018,7 +1018,7 @@ public virtual PostStartTrialResponse PostStartTrial(Action /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(PostStartTrialRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1038,7 +1038,7 @@ public virtual Task PostStartTrialAsync(PostStartTrialRe /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(CancellationToken cancellationToken = default) { @@ -1059,7 +1059,7 @@ public virtual Task PostStartTrialAsync(CancellationToke /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index abdd42fa477..9dc7d86eab9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -8825,7 +8825,9 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8847,7 +8849,9 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequest request) /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8868,7 +8872,9 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequest req /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8890,7 +8896,9 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDesc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8913,7 +8921,9 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8937,7 +8947,9 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8959,7 +8971,9 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDescriptor desc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -8982,7 +8996,9 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9006,7 +9022,9 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9027,7 +9045,9 @@ public virtual Task PutDatafeedAsync(PutDatafeed /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9049,7 +9069,9 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9072,7 +9094,9 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9093,7 +9117,9 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequestDesc /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9115,7 +9141,9 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job. /// You can associate only one datafeed with each anomaly detection job. /// The datafeed contains a query that runs at a defined interval (frequency). - /// If you are concerned about delayed data, you can add a delay (query_delay) at each interval. + /// If you are concerned about delayed data, you can add a delay (query_delay') at each interval. By default, the datafeed uses the following query: {"match_all": {"boost": 1}}`. + /// + /// /// When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had /// at the time of creation and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. @@ -9137,6 +9165,13 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9152,6 +9187,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9166,6 +9208,13 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9181,6 +9230,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Pu /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9197,6 +9253,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9214,6 +9277,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9229,6 +9299,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9245,6 +9322,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9262,6 +9346,13 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9276,6 +9367,13 @@ public virtual Task PutDataFrameAnalyticsAsync{"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9291,6 +9389,13 @@ public virtual Task PutDataFrameAnalyticsAsync{"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9307,6 +9412,13 @@ public virtual Task PutDataFrameAnalyticsAsync{"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9321,6 +9433,13 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9336,6 +9455,13 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// Create a data frame analytics job. /// This API creates a data frame analytics job that performs an analysis on the /// source indices and stores the outcome in a destination index. + /// By default, the query used in the source configuration is {"match_all": {}}. + /// + /// + /// If the destination index does not exist, it is created automatically when you start the job. + /// + /// + /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9473,6 +9599,7 @@ public virtual Task PutFilterAsync(Elastic.Clients.Elasticsea /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. + /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9487,6 +9614,7 @@ public virtual PutJobResponse PutJob(PutJobRequest request) /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. + /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9500,6 +9628,7 @@ public virtual Task PutJobAsync(PutJobRequest request, Cancellat /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. + /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9514,6 +9643,7 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. + /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9528,6 +9658,7 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. + /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -9541,6 +9672,7 @@ public virtual Task PutJobAsync(PutJobRequestDescript /// /// Create an anomaly detection job. /// If you include a datafeed_config, you must have read index privileges on the source index. + /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -12992,7 +13124,7 @@ public virtual Task UpgradeJobSnapshotAsync(Elastic. /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13005,7 +13137,7 @@ public virtual ValidateResponse Validate(ValidateRequest request) /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13017,7 +13149,7 @@ public virtual Task ValidateAsync(ValidateRequest request, Can /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13030,7 +13162,7 @@ public virtual ValidateResponse Validate(ValidateRequestDescriptor /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13044,7 +13176,7 @@ public virtual ValidateResponse Validate() /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13059,7 +13191,7 @@ public virtual ValidateResponse Validate(Action /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13072,7 +13204,7 @@ public virtual ValidateResponse Validate(ValidateRequestDescriptor descriptor) /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13086,7 +13218,7 @@ public virtual ValidateResponse Validate() /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13101,7 +13233,7 @@ public virtual ValidateResponse Validate(Action confi /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13113,7 +13245,7 @@ public virtual Task ValidateAsync(ValidateRequestDe /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13126,7 +13258,7 @@ public virtual Task ValidateAsync(CancellationToken /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13140,7 +13272,7 @@ public virtual Task ValidateAsync(Action /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13152,7 +13284,7 @@ public virtual Task ValidateAsync(ValidateRequestDescriptor de /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13165,7 +13297,7 @@ public virtual Task ValidateAsync(CancellationToken cancellati /// /// - /// Validates an anomaly detection job. + /// Validate an anomaly detection job. /// /// Learn more about this API in the Elasticsearch documentation. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs index 72850e0b230..5a814aaae77 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -44,7 +44,7 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequest request) @@ -58,7 +58,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(ClearRepositoriesMeteringArchiveRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task ClearRepositoriesM /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion) @@ -100,7 +100,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion, Action configureRequest) @@ -116,7 +116,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(ClearRepositoriesMeteringArchiveRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -129,7 +129,7 @@ public virtual Task ClearRepositoriesM /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion, CancellationToken cancellationToken = default) { @@ -143,7 +143,7 @@ public virtual Task ClearRepositoriesM /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion, Action configureRequest, CancellationToken cancellationToken = default) { @@ -160,7 +160,7 @@ public virtual Task ClearRepositoriesM /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequest request) @@ -176,7 +176,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(G /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(GetRepositoriesMeteringInfoRequest request, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task GetRepositoriesMetering /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequestDescriptor descriptor) @@ -207,7 +207,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(G /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(Elastic.Clients.Elasticsearch.NodeIds nodeId) @@ -224,7 +224,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(E /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(Elastic.Clients.Elasticsearch.NodeIds nodeId, Action configureRequest) @@ -242,7 +242,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(E /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(GetRepositoriesMeteringInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -257,7 +257,7 @@ public virtual Task GetRepositoriesMetering /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, CancellationToken cancellationToken = default) { @@ -273,7 +273,7 @@ public virtual Task GetRepositoriesMetering /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs index ea4ba5f77b9..d53f20e8501 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs @@ -43,8 +43,9 @@ internal QueryRulesNamespacedClient(ElasticsearchClient client) : base(client) /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request) @@ -57,8 +58,9 @@ public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request) /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(DeleteRuleRequest request, CancellationToken cancellationToken = default) { @@ -70,8 +72,9 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequest reques /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequestDescriptor descriptor) @@ -84,8 +87,9 @@ public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequestDescriptor descrip /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -99,8 +103,9 @@ public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id ru /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -115,8 +120,9 @@ public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id ru /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(DeleteRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -128,8 +134,9 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequestDescrip /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -142,8 +149,9 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// /// Delete a query rule. /// Delete a query rule within a query ruleset. + /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -156,8 +164,10 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequest request) @@ -169,8 +179,10 @@ public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequest request) /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(DeleteRulesetRequest request, CancellationToken cancellationToken = default) { @@ -181,8 +193,10 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequestDescriptor descriptor) @@ -194,8 +208,10 @@ public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequestDescripto /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -208,8 +224,10 @@ public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -223,8 +241,10 @@ public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(DeleteRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -235,8 +255,10 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -248,8 +270,10 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// /// /// Delete a query ruleset. + /// Remove a query ruleset and its associated data. + /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -264,7 +288,7 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(GetRuleRequest request) @@ -278,7 +302,7 @@ public virtual GetRuleResponse GetRule(GetRuleRequest request) /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(GetRuleRequest request, CancellationToken cancellationToken = default) { @@ -291,7 +315,7 @@ public virtual Task GetRuleAsync(GetRuleRequest request, Cancel /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(GetRuleRequestDescriptor descriptor) @@ -305,7 +329,7 @@ public virtual GetRuleResponse GetRule(GetRuleRequestDescriptor descriptor) /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -320,7 +344,7 @@ public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -336,7 +360,7 @@ public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(GetRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -349,7 +373,7 @@ public virtual Task GetRuleAsync(GetRuleRequestDescriptor descr /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -363,7 +387,7 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -378,7 +402,7 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(GetRulesetRequest request) @@ -392,7 +416,7 @@ public virtual GetRulesetResponse GetRuleset(GetRulesetRequest request) /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(GetRulesetRequest request, CancellationToken cancellationToken = default) { @@ -405,7 +429,7 @@ public virtual Task GetRulesetAsync(GetRulesetRequest reques /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(GetRulesetRequestDescriptor descriptor) @@ -419,7 +443,7 @@ public virtual GetRulesetResponse GetRuleset(GetRulesetRequestDescriptor descrip /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -434,7 +458,7 @@ public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id ru /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -450,7 +474,7 @@ public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id ru /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(GetRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -463,7 +487,7 @@ public virtual Task GetRulesetAsync(GetRulesetRequestDescrip /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -477,7 +501,7 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -492,7 +516,7 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequest request) @@ -506,7 +530,7 @@ public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequest request) /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(ListRulesetsRequest request, CancellationToken cancellationToken = default) { @@ -519,7 +543,7 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequest /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequestDescriptor descriptor) @@ -533,7 +557,7 @@ public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequestDescriptor d /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets() @@ -548,7 +572,7 @@ public virtual ListRulesetsResponse ListRulesets() /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets(Action configureRequest) @@ -564,7 +588,7 @@ public virtual ListRulesetsResponse ListRulesets(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(ListRulesetsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -577,7 +601,7 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequestD /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(CancellationToken cancellationToken = default) { @@ -591,7 +615,7 @@ public virtual Task ListRulesetsAsync(CancellationToken ca /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -606,7 +630,13 @@ public virtual Task ListRulesetsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(PutRuleRequest request) @@ -620,7 +650,13 @@ public virtual PutRuleResponse PutRule(PutRuleRequest request) /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(PutRuleRequest request, CancellationToken cancellationToken = default) { @@ -633,7 +669,13 @@ public virtual Task PutRuleAsync(PutRuleRequest request, Cancel /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(PutRuleRequestDescriptor descriptor) @@ -647,7 +689,13 @@ public virtual PutRuleResponse PutRule(PutRuleRequestDescriptor descriptor) /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -662,7 +710,13 @@ public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -678,7 +732,13 @@ public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(PutRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -691,7 +751,13 @@ public virtual Task PutRuleAsync(PutRuleRequestDescriptor descr /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -705,7 +771,13 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// Create or update a query rule. /// Create or update a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only pin documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -718,8 +790,16 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(PutRulesetRequest request) @@ -731,8 +811,16 @@ public virtual PutRulesetResponse PutRuleset(PutRulesetRequest request) /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. + /// + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(PutRulesetRequest request, CancellationToken cancellationToken = default) { @@ -743,8 +831,16 @@ public virtual Task PutRulesetAsync(PutRulesetRequest reques /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(PutRulesetRequestDescriptor descriptor) @@ -756,8 +852,16 @@ public virtual PutRulesetResponse PutRuleset(PutRulesetRequestDescriptor descrip /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. + /// + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -770,8 +874,16 @@ public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id ru /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -785,8 +897,16 @@ public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id ru /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. + /// + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(PutRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -797,8 +917,16 @@ public virtual Task PutRulesetAsync(PutRulesetRequestDescrip /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -810,8 +938,16 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// /// /// Create or update a query ruleset. + /// There is a limit of 100 rules per ruleset. + /// This limit can be increased by using the xpack.applications.rules.max_rules_per_ruleset cluster setting. + /// + /// + /// IMPORTANT: Due to limitations within pinned queries, you can only select documents using ids or docs, but cannot use both in single rule. + /// It is advised to use one or the other in query rulesets, to avoid errors. + /// Additionally, pinned queries have a maximum limit of 100 pinned hits. + /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -826,7 +962,7 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(TestRequest request) @@ -840,7 +976,7 @@ public virtual TestResponse Test(TestRequest request) /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(TestRequest request, CancellationToken cancellationToken = default) { @@ -853,7 +989,7 @@ public virtual Task TestAsync(TestRequest request, CancellationTok /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(TestRequestDescriptor descriptor) @@ -867,7 +1003,7 @@ public virtual TestResponse Test(TestRequestDescriptor descriptor) /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -882,7 +1018,7 @@ public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId) /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -898,7 +1034,7 @@ public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId, Act /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(TestRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -911,7 +1047,7 @@ public virtual Task TestAsync(TestRequestDescriptor descriptor, Ca /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -925,7 +1061,7 @@ public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rul /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs index c697cc783bd..2a967dba092 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs @@ -67,7 +67,7 @@ internal RollupNamespacedClient(ElasticsearchClient client) : base(client) /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) @@ -104,7 +104,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken = default) { @@ -140,7 +140,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequest request, /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) @@ -177,7 +177,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) @@ -215,7 +215,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -254,7 +254,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) @@ -291,7 +291,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) @@ -329,7 +329,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -368,7 +368,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task DeleteJobAsync(DeleteJobReques /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -441,7 +441,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -479,7 +479,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -515,7 +515,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -552,7 +552,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -572,7 +572,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequest request) @@ -591,7 +591,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequest request) /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequest request, CancellationToken cancellationToken = default) { @@ -609,7 +609,7 @@ public virtual Task GetJobsAsync(GetJobsRequest request, Cancel /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) @@ -628,7 +628,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) @@ -648,7 +648,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -669,7 +669,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs() @@ -689,7 +689,7 @@ public virtual GetJobsResponse GetJobs() /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Action> configureRequest) @@ -710,7 +710,7 @@ public virtual GetJobsResponse GetJobs(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) @@ -729,7 +729,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) @@ -749,7 +749,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -770,7 +770,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Act /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs() @@ -790,7 +790,7 @@ public virtual GetJobsResponse GetJobs() /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Action configureRequest) @@ -811,7 +811,7 @@ public virtual GetJobsResponse GetJobs(Action configur /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -829,7 +829,7 @@ public virtual Task GetJobsAsync(GetJobsRequestDescr /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -848,7 +848,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -868,7 +868,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) { @@ -887,7 +887,7 @@ public virtual Task GetJobsAsync(CancellationToken c /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -907,7 +907,7 @@ public virtual Task GetJobsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -925,7 +925,7 @@ public virtual Task GetJobsAsync(GetJobsRequestDescriptor descr /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -944,7 +944,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -964,7 +964,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) { @@ -983,7 +983,7 @@ public virtual Task GetJobsAsync(CancellationToken cancellation /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1015,7 +1015,7 @@ public virtual Task GetJobsAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequest request) @@ -1046,7 +1046,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequest request, CancellationToken cancellationToken = default) { @@ -1076,7 +1076,7 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescriptor descriptor) @@ -1107,7 +1107,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id) @@ -1139,7 +1139,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -1172,7 +1172,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps() @@ -1204,7 +1204,7 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Action> configureRequest) @@ -1237,7 +1237,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescriptor descriptor) @@ -1268,7 +1268,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescripto /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id) @@ -1300,7 +1300,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -1333,7 +1333,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps() @@ -1365,7 +1365,7 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Action configureRequest) @@ -1398,7 +1398,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1428,7 +1428,7 @@ public virtual Task GetRollupCapsAsync(GetRoll /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -1459,7 +1459,7 @@ public virtual Task GetRollupCapsAsync(Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1491,7 +1491,7 @@ public virtual Task GetRollupCapsAsync(Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) { @@ -1522,7 +1522,7 @@ public virtual Task GetRollupCapsAsync(Cancell /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1554,7 +1554,7 @@ public virtual Task GetRollupCapsAsync(Action< /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1584,7 +1584,7 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -1615,7 +1615,7 @@ public virtual Task GetRollupCapsAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1647,7 +1647,7 @@ public virtual Task GetRollupCapsAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) { @@ -1678,7 +1678,7 @@ public virtual Task GetRollupCapsAsync(CancellationToken /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1706,7 +1706,7 @@ public virtual Task GetRollupCapsAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequest request) @@ -1733,7 +1733,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsR /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequest request, CancellationToken cancellationToken = default) { @@ -1759,7 +1759,7 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequestDescriptor descriptor) @@ -1786,7 +1786,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index) @@ -1814,7 +1814,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest) @@ -1843,7 +1843,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequestDescriptor descriptor) @@ -1870,7 +1870,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsR /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index) @@ -1898,7 +1898,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest) @@ -1927,7 +1927,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1953,7 +1953,7 @@ public virtual Task GetRollupIndexCapsAsync /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) { @@ -1980,7 +1980,7 @@ public virtual Task GetRollupIndexCapsAsync /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2008,7 +2008,7 @@ public virtual Task GetRollupIndexCapsAsync /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2034,7 +2034,7 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) { @@ -2061,7 +2061,7 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2087,7 +2087,7 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequest request) @@ -2112,7 +2112,7 @@ public virtual PutJobResponse PutJob(PutJobRequest request) /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequest request, CancellationToken cancellationToken = default) { @@ -2136,7 +2136,7 @@ public virtual Task PutJobAsync(PutJobRequest request, Cancellat /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) @@ -2161,7 +2161,7 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) @@ -2187,7 +2187,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -2214,7 +2214,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) @@ -2239,7 +2239,7 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) @@ -2265,7 +2265,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -2292,7 +2292,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2316,7 +2316,7 @@ public virtual Task PutJobAsync(PutJobRequestDescript /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2341,7 +2341,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2367,7 +2367,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2391,7 +2391,7 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2416,7 +2416,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2432,7 +2432,54 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(RollupSearchRequest request) @@ -2447,7 +2494,54 @@ public virtual RollupSearchResponse RollupSearch(RollupSea /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(RollupSearchRequest request, CancellationToken cancellationToken = default) { @@ -2461,7 +2555,54 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(RollupSearchRequestDescriptor descriptor) @@ -2476,7 +2617,54 @@ public virtual RollupSearchResponse RollupSearch(RollupSea /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(Elastic.Clients.Elasticsearch.Indices indices) @@ -2492,7 +2680,54 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -2509,7 +2744,54 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch() @@ -2525,7 +2807,54 @@ public virtual RollupSearchResponse RollupSearch() /// The rollup search endpoint is needed because, internally, rolled-up documents utilize a different document structure than the original data. /// It rewrites standard Query DSL into a format that matches the rollup documents then takes the response and rewrites it back to what a client would expect given the original query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(Action> configureRequest) @@ -2542,7 +2871,54 @@ public virtual RollupSearchResponse RollupSearch(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(RollupSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2556,7 +2932,54 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2571,7 +2994,54 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2587,7 +3057,54 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(CancellationToken cancellationToken = default) { @@ -2602,7 +3119,54 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The request body supports a subset of features from the regular search API. + /// The following functionality is not available: + /// + /// + /// size: Because rollups work on pre-aggregated data, no search hits can be returned and so size must be set to zero or omitted entirely. + /// highlighter, suggestors, post_filter, profile, explain: These are similarly disallowed. + /// + /// + /// Searching both historical rollup and non-rollup data + /// + /// + /// The rollup search API has the capability to search across both "live" non-rollup data and the aggregated rollup data. + /// This is done by simply adding the live indices to the URI. For example: + /// + /// + /// GET sensor-1,sensor_rollup/_rollup_search + /// { + /// "size": 0, + /// "aggregations": { + /// "max_temperature": { + /// "max": { + /// "field": "temperature" + /// } + /// } + /// } + /// } + /// + /// + /// The rollup search endpoint does two things when the search runs: + /// + /// + /// + /// + /// The original request is sent to the non-rollup index unaltered. + /// + /// + /// + /// + /// A rewritten version of the original request is sent to the rollup index. + /// + /// + /// + /// + /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. + /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2618,7 +3182,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequest request) @@ -2633,7 +3197,7 @@ public virtual StartJobResponse StartJob(StartJobRequest request) /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(StartJobRequest request, CancellationToken cancellationToken = default) { @@ -2647,7 +3211,7 @@ public virtual Task StartJobAsync(StartJobRequest request, Can /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) @@ -2662,7 +3226,7 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) @@ -2678,7 +3242,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -2695,7 +3259,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) @@ -2710,7 +3274,7 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) @@ -2726,7 +3290,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -2743,7 +3307,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Ac /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(StartJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2757,7 +3321,7 @@ public virtual Task StartJobAsync(StartJobRequestDe /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2772,7 +3336,7 @@ public virtual Task StartJobAsync(Elastic.Clients.E /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2788,7 +3352,7 @@ public virtual Task StartJobAsync(Elastic.Clients.E /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(StartJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2802,7 +3366,7 @@ public virtual Task StartJobAsync(StartJobRequestDescriptor de /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2817,7 +3381,7 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2833,7 +3397,18 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequest request) @@ -2848,7 +3423,18 @@ public virtual StopJobResponse StopJob(StopJobRequest request) /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(StopJobRequest request, CancellationToken cancellationToken = default) { @@ -2862,7 +3448,18 @@ public virtual Task StopJobAsync(StopJobRequest request, Cancel /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) @@ -2877,7 +3474,18 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) @@ -2893,7 +3501,18 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -2910,7 +3529,18 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) @@ -2925,7 +3555,18 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) @@ -2941,7 +3582,18 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -2958,7 +3610,18 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Acti /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(StopJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2972,7 +3635,18 @@ public virtual Task StopJobAsync(StopJobRequestDescr /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2987,7 +3661,18 @@ public virtual Task StopJobAsync(Elastic.Clients.Ela /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3003,7 +3688,18 @@ public virtual Task StopJobAsync(Elastic.Clients.Ela /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(StopJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3017,7 +3713,18 @@ public virtual Task StopJobAsync(StopJobRequestDescriptor descr /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -3032,7 +3739,18 @@ public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch. /// If you try to stop a job that does not exist, an exception occurs. /// If you try to stop a job that is already stopped, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Since only a stopped job can be deleted, it can be useful to block the API until the indexer has fully stopped. + /// This is accomplished with the wait_for_completion query parameter, and optionally a timeout. For example: + /// + /// + /// POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s + /// + /// + /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. + /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs index 856c7d76569..12a5aac252b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs @@ -537,7 +537,8 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -550,7 +551,8 @@ public virtual ListResponse List(ListRequest request) /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -562,7 +564,8 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -575,7 +578,8 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -589,7 +593,8 @@ public virtual ListResponse List() /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -604,7 +609,8 @@ public virtual ListResponse List(Action configureRequest) /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -616,7 +622,8 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -629,7 +636,8 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// /// - /// Returns the existing search applications. + /// Get search applications. + /// Get information about search applications. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -641,6 +649,112 @@ public virtual Task ListAsync(Action config return DoRequestAsync(descriptor, cancellationToken); } + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(PostBehavioralAnalyticsEventRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PostBehavioralAnalyticsEventAsync(PostBehavioralAnalyticsEventRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(PostBehavioralAnalyticsEventRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType) + { + var descriptor = new PostBehavioralAnalyticsEventRequestDescriptor(collectionName, eventType); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType, Action configureRequest) + { + var descriptor = new PostBehavioralAnalyticsEventRequestDescriptor(collectionName, eventType); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PostBehavioralAnalyticsEventAsync(PostBehavioralAnalyticsEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PostBehavioralAnalyticsEventAsync(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType, CancellationToken cancellationToken = default) + { + var descriptor = new PostBehavioralAnalyticsEventRequestDescriptor(collectionName, eventType); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a behavioral analytics collection event. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PostBehavioralAnalyticsEventAsync(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PostBehavioralAnalyticsEventRequestDescriptor(collectionName, eventType); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Create or update a search application. @@ -686,7 +800,7 @@ public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequestDescr /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name) + public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); descriptor.BeforeRequest(); @@ -700,7 +814,7 @@ public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.Se /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); configureRequest?.Invoke(descriptor); @@ -726,7 +840,7 @@ public virtual Task PutAsync(PutSearchApplicationR /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); descriptor.BeforeRequest(); @@ -739,7 +853,7 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); configureRequest?.Invoke(descriptor); @@ -853,6 +967,160 @@ public virtual Task PutBehavioralAnalyticsAsync( return DoRequestAsync(descriptor, cancellationToken); } + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RenderQueryResponse RenderQuery(RenderQueryRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderQueryAsync(RenderQueryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RenderQueryResponse RenderQuery(RenderQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RenderQueryResponse RenderQuery(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new RenderQueryRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RenderQueryResponse RenderQuery(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new RenderQueryRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderQueryAsync(RenderQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderQueryAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new RenderQueryRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Render a search application query. + /// Generate an Elasticsearch query using the specified query parameters and the search template associated with the search application or a default template if none is specified. + /// If a parameter used in the search template is not specified in params, the parameter's default value will be used. + /// The API returns the specific Elasticsearch query that would be generated and run by calling the search application search API. + /// + /// + /// You must have read privileges on the backing alias of the search application. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderQueryAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RenderQueryRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Run a search application search. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs index a95a69b5f0d..e94cd8a7a21 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs @@ -44,7 +44,7 @@ internal SearchableSnapshotsNamespacedClient(ElasticsearchClient client) : base( /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(CacheStatsRequest request) @@ -58,7 +58,7 @@ public virtual CacheStatsResponse CacheStats(CacheStatsRequest request) /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(CacheStatsRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task CacheStatsAsync(CacheStatsRequest reques /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(CacheStatsRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual CacheStatsResponse CacheStats(CacheStatsRequestDescriptor descrip /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -100,7 +100,7 @@ public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeI /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -116,7 +116,7 @@ public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeI /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats() @@ -131,7 +131,7 @@ public virtual CacheStatsResponse CacheStats() /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(Action configureRequest) @@ -147,7 +147,7 @@ public virtual CacheStatsResponse CacheStats(Action /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(CacheStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -160,7 +160,7 @@ public virtual Task CacheStatsAsync(CacheStatsRequestDescrip /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -174,7 +174,7 @@ public virtual Task CacheStatsAsync(Elastic.Clients.Elastics /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -189,7 +189,7 @@ public virtual Task CacheStatsAsync(Elastic.Clients.Elastics /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task CacheStatsAsync(CancellationToken cancel /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -218,7 +218,7 @@ public virtual Task CacheStatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) @@ -232,7 +232,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequest request, CancellationToken cancellationToken = default) { @@ -245,7 +245,7 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) @@ -259,7 +259,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) @@ -274,7 +274,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -290,7 +290,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() @@ -305,7 +305,7 @@ public virtual ClearCacheResponse ClearCache() /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Action> configureRequest) @@ -321,7 +321,7 @@ public virtual ClearCacheResponse ClearCache(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) @@ -335,7 +335,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descrip /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) @@ -350,7 +350,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -366,7 +366,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() @@ -381,7 +381,7 @@ public virtual ClearCacheResponse ClearCache() /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Action configureRequest) @@ -397,7 +397,7 @@ public virtual ClearCacheResponse ClearCache(Action /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -410,7 +410,7 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -424,7 +424,7 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -439,7 +439,7 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { @@ -453,7 +453,7 @@ public virtual Task ClearCacheAsync(CancellationT /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -468,7 +468,7 @@ public virtual Task ClearCacheAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -481,7 +481,7 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -495,7 +495,7 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -510,7 +510,7 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { @@ -524,7 +524,7 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -541,7 +541,7 @@ public virtual Task ClearCacheAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(MountRequest request) @@ -557,7 +557,7 @@ public virtual MountResponse Mount(MountRequest request) /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(MountRequest request, CancellationToken cancellationToken = default) { @@ -572,7 +572,7 @@ public virtual Task MountAsync(MountRequest request, Cancellation /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(MountRequestDescriptor descriptor) @@ -588,7 +588,7 @@ public virtual MountResponse Mount(MountRequestDescriptor descriptor) /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -605,7 +605,7 @@ public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -623,7 +623,7 @@ public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(MountRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -638,7 +638,7 @@ public virtual Task MountAsync(MountRequestDescriptor descriptor, /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -654,7 +654,7 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -668,7 +668,7 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequest request) @@ -681,7 +681,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRe /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(SearchableSnapshotsStatsRequest request, CancellationToken cancellationToken = default) { @@ -693,7 +693,7 @@ public virtual Task StatsAsync(SearchableSnaps /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequestDescriptor descriptor) @@ -706,7 +706,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnaps /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices) @@ -720,7 +720,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -735,7 +735,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats() @@ -749,7 +749,7 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Action> configureRequest) @@ -764,7 +764,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Action /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequestDescriptor descriptor) @@ -777,7 +777,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRe /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices) @@ -791,7 +791,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsea /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -806,7 +806,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsea /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats() @@ -820,7 +820,7 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Action configureRequest) @@ -835,7 +835,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Action /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(SearchableSnapshotsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -847,7 +847,7 @@ public virtual Task StatsAsync(Sear /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -860,7 +860,7 @@ public virtual Task StatsAsync(Elas /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -874,7 +874,7 @@ public virtual Task StatsAsync(Elas /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -887,7 +887,7 @@ public virtual Task StatsAsync(Canc /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -901,7 +901,7 @@ public virtual Task StatsAsync(Acti /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(SearchableSnapshotsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -913,7 +913,7 @@ public virtual Task StatsAsync(SearchableSnaps /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -926,7 +926,7 @@ public virtual Task StatsAsync(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -940,7 +940,7 @@ public virtual Task StatsAsync(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -953,7 +953,7 @@ public virtual Task StatsAsync(CancellationTok /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs index 65290355da1..5c8a9861956 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs @@ -46,7 +46,21 @@ internal SecurityNamespacedClient(ElasticsearchClient client) : base(client) /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfileRequest request) @@ -62,7 +76,21 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfi /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(ActivateUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -77,7 +105,21 @@ public virtual Task ActivateUserProfileAsync(Activa /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfileRequestDescriptor descriptor) @@ -93,7 +135,21 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfi /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile() @@ -110,7 +166,21 @@ public virtual ActivateUserProfileResponse ActivateUserProfile() /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile(Action configureRequest) @@ -128,7 +198,21 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(Action /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(ActivateUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -143,7 +227,21 @@ public virtual Task ActivateUserProfileAsync(Activa /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(CancellationToken cancellationToken = default) { @@ -159,7 +257,21 @@ public virtual Task ActivateUserProfileAsync(Cancel /// /// Create or update a user profile on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// The calling application must have either an access_token or a combination of username and password for the user that the profile document is intended for. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// This API creates or updates a profile document for end users with information that is extracted from the user's authentication object including username, full_name, roles, and the authentication realm. + /// For example, in the JWT access_token case, the profile user's username is extracted from the JWT token claim pointed to by the claims.principal setting of the JWT realm that authenticated the token. + /// + /// + /// When updating a profile document, the API enables the document if it was disabled. + /// Any updates do not change existing content for either the labels or data fields. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -179,7 +291,7 @@ public virtual Task ActivateUserProfileAsync(Action /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate(AuthenticateRequest request) @@ -198,7 +310,7 @@ public virtual AuthenticateResponse Authenticate(AuthenticateRequest request) /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(AuthenticateRequest request, CancellationToken cancellationToken = default) { @@ -216,7 +328,7 @@ public virtual Task AuthenticateAsync(AuthenticateRequest /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate(AuthenticateRequestDescriptor descriptor) @@ -235,7 +347,7 @@ public virtual AuthenticateResponse Authenticate(AuthenticateRequestDescriptor d /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate() @@ -255,7 +367,7 @@ public virtual AuthenticateResponse Authenticate() /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate(Action configureRequest) @@ -276,7 +388,7 @@ public virtual AuthenticateResponse Authenticate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(AuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -294,7 +406,7 @@ public virtual Task AuthenticateAsync(AuthenticateRequestD /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(CancellationToken cancellationToken = default) { @@ -313,7 +425,7 @@ public virtual Task AuthenticateAsync(CancellationToken ca /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -706,1355 +818,1882 @@ public virtual Task BulkPutRoleAsync(Action /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequest request) + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ChangePasswordAsync(ChangePasswordRequest request, CancellationToken cancellationToken = default) + public virtual Task BulkUpdateApiKeysAsync(BulkUpdateApiKeysRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequestDescriptor descriptor) + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, BulkUpdateApiKeysResponse, BulkUpdateApiKeysRequestParameters>(descriptor); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsearch.Username? username) + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys() { - var descriptor = new ChangePasswordRequestDescriptor(username); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, BulkUpdateApiKeysResponse, BulkUpdateApiKeysRequestParameters>(descriptor); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsearch.Username? username, Action configureRequest) + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(Action> configureRequest) { - var descriptor = new ChangePasswordRequestDescriptor(username); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, BulkUpdateApiKeysResponse, BulkUpdateApiKeysRequestParameters>(descriptor); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ChangePasswordResponse ChangePassword() + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequestDescriptor descriptor) { - var descriptor = new ChangePasswordRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ChangePasswordResponse ChangePassword(Action configureRequest) + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys() { - var descriptor = new ChangePasswordRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ChangePasswordAsync(ChangePasswordRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Change passwords. + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ChangePasswordAsync(Elastic.Clients.Elasticsearch.Username? username, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(Action configureRequest) { - var descriptor = new ChangePasswordRequestDescriptor(username); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ChangePasswordAsync(Elastic.Clients.Elasticsearch.Username? username, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task BulkUpdateApiKeysAsync(BulkUpdateApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new ChangePasswordRequestDescriptor(username); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, BulkUpdateApiKeysResponse, BulkUpdateApiKeysRequestParameters>(descriptor, cancellationToken); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ChangePasswordAsync(CancellationToken cancellationToken = default) + public virtual Task BulkUpdateApiKeysAsync(CancellationToken cancellationToken = default) { - var descriptor = new ChangePasswordRequestDescriptor(); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, BulkUpdateApiKeysResponse, BulkUpdateApiKeysRequestParameters>(descriptor, cancellationToken); } /// /// - /// Change passwords. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Change the passwords of users in the native realm and built-in users. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ChangePasswordAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task BulkUpdateApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ChangePasswordRequestDescriptor(); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, BulkUpdateApiKeysResponse, BulkUpdateApiKeysRequestParameters>(descriptor, cancellationToken); } /// /// - /// Clear the API key cache. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Clear the API key cache. + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// It is not possible to update expired or invalidated API keys. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Clear the API key cache. + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequestDescriptor descriptor) + public virtual Task BulkUpdateApiKeysAsync(BulkUpdateApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the API key cache. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids) + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkUpdateApiKeysAsync(CancellationToken cancellationToken = default) { - var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the API key cache. + /// Bulk update API keys. + /// Update the attributes for multiple API keys. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// IMPORTANT: It is not possible to use an API key as the authentication credential for this API. To update API keys, the owner user's credentials are required. + /// + /// + /// This API is similar to the update API key API but enables you to apply the same update to multiple API keys in one API call. This operation can greatly improve performance over making individual updates. + /// + /// + /// It is not possible to update expired or invalidated API keys. + /// + /// + /// This API supports updates to API key access scope, metadata and expiration. + /// The access scope of each API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change an API key's access scope. This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// + /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest) + public virtual Task BulkUpdateApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); + var descriptor = new BulkUpdateApiKeysRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the API key cache. + /// Change passwords. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequest request) { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Clear the API key cache. + /// Change passwords. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, CancellationToken cancellationToken = default) + public virtual Task ChangePasswordAsync(ChangePasswordRequest request, CancellationToken cancellationToken = default) { - var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Clear the API key cache. + /// Change passwords. /// /// - /// Evict a subset of all entries from the API key cache. - /// The cache is also automatically cleared on state changes of the security index. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequestDescriptor descriptor) { - var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPrivilegesRequest request) + public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsearch.Username? username) { - request.BeforeRequest(); - return DoRequest(request); + var descriptor = new ChangePasswordRequestDescriptor(username); + descriptor.BeforeRequest(); + return DoRequest(descriptor); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequest request, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsearch.Username? username, Action configureRequest) { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + var descriptor = new ChangePasswordRequestDescriptor(username); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPrivilegesRequestDescriptor descriptor) + public virtual ChangePasswordResponse ChangePassword() { + var descriptor = new ChangePasswordRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application) + public virtual ChangePasswordResponse ChangePassword(Action configureRequest) { - var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); + var descriptor = new ChangePasswordRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application, Action configureRequest) + public virtual Task ChangePasswordAsync(ChangePasswordRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ChangePasswordAsync(Elastic.Clients.Elasticsearch.Username? username, CancellationToken cancellationToken = default) { + var descriptor = new ChangePasswordRequestDescriptor(username); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, CancellationToken cancellationToken = default) + public virtual Task ChangePasswordAsync(Elastic.Clients.Elasticsearch.Username? username, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); + var descriptor = new ChangePasswordRequestDescriptor(username); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the privileges cache. + /// Change passwords. /// /// - /// Evict privileges from the native application privilege cache. - /// The cache is also automatically cleared for applications that have their privileges updated. + /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ChangePasswordAsync(CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); + var descriptor = new ChangePasswordRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Change passwords. + /// + /// + /// Change the passwords of users in the native realm and built-in users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ChangePasswordAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ChangePasswordRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequest request) + public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequest request, CancellationToken cancellationToken = default) + public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequestDescriptor descriptor) + public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms) + public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids) { - var descriptor = new ClearCachedRealmsRequestDescriptor(realms); + var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest) + public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest) { - var descriptor = new ClearCachedRealmsRequestDescriptor(realms); + var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, CancellationToken cancellationToken = default) + public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedRealmsRequestDescriptor(realms); + var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the user cache. + /// Clear the API key cache. /// /// - /// Evict users from the user cache. You can completely clear the cache or evict specific users. + /// Evict a subset of all entries from the API key cache. + /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedRealmsRequestDescriptor(realms); + var descriptor = new ClearApiKeyCacheRequestDescriptor(ids); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest request) + public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPrivilegesRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequest request, CancellationToken cancellationToken = default) + public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequestDescriptor descriptor) + public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPrivilegesRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name) + public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application) { - var descriptor = new ClearCachedRolesRequestDescriptor(name); + var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application, Action configureRequest) { - var descriptor = new ClearCachedRolesRequestDescriptor(name); + var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) + public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedRolesRequestDescriptor(name); + var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear the roles cache. + /// Clear the privileges cache. /// /// - /// Evict roles from the native role cache. + /// Evict privileges from the native application privilege cache. + /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedRolesRequestDescriptor(name); + var descriptor = new ClearCachedPrivilegesRequestDescriptor(application); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. + /// + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCachedServiceTokensRequest request) + public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. + /// + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequest request, CancellationToken cancellationToken = default) + public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCachedServiceTokensRequestDescriptor descriptor) + public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. + /// + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string ns, string service, Elastic.Clients.Elasticsearch.Names name) + public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms) { - var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); + var descriptor = new ClearCachedRealmsRequestDescriptor(realms); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string ns, string service, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest) { - var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); + var descriptor = new ClearCachedRealmsRequestDescriptor(realms); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. + /// + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) + public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); + var descriptor = new ClearCachedRealmsRequestDescriptor(realms); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Clear service account token caches. + /// Clear the user cache. /// /// - /// Evict a subset of all entries from the service account token caches. + /// Evict users from the user cache. + /// You can completely clear the cache or evict specific users. + /// + /// + /// User credentials are cached in memory on each node to avoid connecting to a remote authentication service or hitting the disk for every incoming request. + /// There are realm settings that you can use to configure the user cache. + /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); + var descriptor = new ClearCachedRealmsRequestDescriptor(realms); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) + public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(CreateApiKeyRequest request, CancellationToken cancellationToken = default) + public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor descriptor) + public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey() + public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name) { - var descriptor = new CreateApiKeyRequestDescriptor(); + var descriptor = new ClearCachedRolesRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequest, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey(Action> configureRequest) + public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) { - var descriptor = new CreateApiKeyRequestDescriptor(); + var descriptor = new ClearCachedRolesRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor descriptor) + public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey() + public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { - var descriptor = new CreateApiKeyRequestDescriptor(); + var descriptor = new ClearCachedRolesRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create an API key. + /// Clear the roles cache. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateApiKeyResponse CreateApiKey(Action configureRequest) + public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new CreateApiKeyRequestDescriptor(); + var descriptor = new ClearCachedRolesRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create an API key. + /// Clear service account token caches. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. + /// + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCachedServiceTokensRequest request) { - descriptor.BeforeRequest(); - return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Create an API key. + /// Clear service account token caches. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. + /// + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) + public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Clear service account token caches. + /// + /// + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. + /// + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCachedServiceTokensRequestDescriptor descriptor) { - var descriptor = new CreateApiKeyRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Create an API key. + /// Clear service account token caches. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string ns, string service, Elastic.Clients.Elasticsearch.Names name) { - var descriptor = new CreateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); descriptor.BeforeRequest(); - return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Create an API key. + /// Clear service account token caches. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. + /// + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string ns, string service, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) { + var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Create an API key. + /// Clear service account token caches. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. + /// + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) + public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new CreateApiKeyRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create an API key. + /// Clear service account token caches. /// /// - /// Create an API key for access without requiring basic authentication. - /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. - /// If applicable, it also returns expiration information for the API key in milliseconds. - /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. + /// + /// + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { - var descriptor = new CreateApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create a cross-cluster API key. + /// Clear service account token caches. /// /// - /// Create an API key of the cross_cluster type for the API key based remote cluster access. - /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// Evict a subset of all entries from the service account token caches. + /// Two separate caches exist for service account tokens: one cache for tokens backed by the service_tokens file, and another for tokens backed by the .security index. + /// This API clears matching entries from both caches. /// /// - /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. + /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ClearCachedServiceTokensRequestDescriptor(ns, service, name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// /// - /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// Create an API key. /// /// - /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// Create an API key for access without requiring basic authentication. /// /// - /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. /// /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. /// /// - /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. - /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequest request) + public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Create a cross-cluster API key. - /// - /// - /// Create an API key of the cross_cluster type for the API key based remote cluster access. - /// A cross_cluster API key cannot be used to authenticate through the REST interface. - /// - /// - /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// Create an API key. /// /// - /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// Create an API key for access without requiring basic authentication. /// /// - /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. /// /// - /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. /// /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// /// - /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. - /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) + public virtual Task CreateApiKeyAsync(CreateApiKeyRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Create a cross-cluster API key. - /// - /// - /// Create an API key of the cross_cluster type for the API key based remote cluster access. - /// A cross_cluster API key cannot be used to authenticate through the REST interface. - /// - /// - /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// Create an API key. /// /// - /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// Create an API key for access without requiring basic authentication. /// /// - /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. /// /// - /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. /// /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// /// - /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. - /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) + public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); + return DoRequest, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor); } /// /// - /// Create a cross-cluster API key. - /// - /// - /// Create an API key of the cross_cluster type for the API key based remote cluster access. - /// A cross_cluster API key cannot be used to authenticate through the REST interface. - /// - /// - /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// Create an API key. /// /// - /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// Create an API key for access without requiring basic authentication. /// /// - /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. /// /// - /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. /// /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// /// - /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. - /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() + public virtual CreateApiKeyResponse CreateApiKey() { - var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + var descriptor = new CreateApiKeyRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); + return DoRequest, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor); } /// /// - /// Create a cross-cluster API key. - /// - /// - /// Create an API key of the cross_cluster type for the API key based remote cluster access. - /// A cross_cluster API key cannot be used to authenticate through the REST interface. - /// - /// - /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// Create an API key. /// /// - /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// Create an API key for access without requiring basic authentication. /// /// - /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. /// /// - /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. /// /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// /// - /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. - /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action> configureRequest) + public virtual CreateApiKeyResponse CreateApiKey(Action> configureRequest) { - var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + var descriptor = new CreateApiKeyRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); + return DoRequest, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor); } /// /// - /// Create a cross-cluster API key. - /// - /// - /// Create an API key of the cross_cluster type for the API key based remote cluster access. - /// A cross_cluster API key cannot be used to authenticate through the REST interface. - /// - /// - /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// Create an API key. /// /// - /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// Create an API key for access without requiring basic authentication. /// /// - /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. /// /// - /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. /// /// - /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. /// /// - /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. - /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) + public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateApiKeyResponse CreateApiKey() + { + var descriptor = new CreateApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateApiKeyResponse CreateApiKey(Action configureRequest) + { + var descriptor = new CreateApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CreateApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateApiKeyResponse, CreateApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CreateApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an API key. + /// + /// + /// Create an API key for access without requiring basic authentication. + /// + /// + /// IMPORTANT: If the credential that is used to authenticate this request is an API key, the derived API key cannot have any privileges. + /// If you specify privileges, the API returns an error. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique id, and its name. + /// If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// NOTE: By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// To configure or turn off the API key service, refer to API key service setting documentation. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -2084,14 +2723,13 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateC /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequest request) { - var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequest(request); } /// @@ -2121,15 +2759,12 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action configureRequest) + public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) { - var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// @@ -2159,12 +2794,13 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action< /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); } /// @@ -2194,13 +2830,14 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() { var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); } /// @@ -2230,14 +2867,15 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action> configureRequest) { var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequest, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor); } /// @@ -2267,12 +2905,13 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// @@ -2302,13 +2941,14 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() { var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// @@ -2338,14 +2978,231 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateCrossClusterApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action configureRequest) { var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateCrossClusterApiKeyResponse, CreateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a cross-cluster API key. + /// + /// + /// Create an API key of the cross_cluster type for the API key based remote cluster access. + /// A cross_cluster API key cannot be used to authenticate through the REST interface. + /// + /// + /// IMPORTANT: To authenticate this request you must use a credential that is not an API key. Even if you use an API key that has the required privilege, the API returns an error. + /// + /// + /// Cross-cluster API keys are created by the Elasticsearch API key service, which is automatically enabled. + /// + /// + /// NOTE: Unlike REST API keys, a cross-cluster API key does not capture permissions of the authenticated user. The API key’s effective permission is exactly as specified with the access property. + /// + /// + /// A successful request returns a JSON structure that contains the API key, its unique ID, and its name. If applicable, it also returns expiration information for the API key in milliseconds. + /// + /// + /// By default, API keys never expire. You can specify expiration information when you create the API keys. + /// + /// + /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. + /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateCrossClusterApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateCrossClusterApiKeyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -2355,7 +3212,11 @@ public virtual Task CreateCrossClusterApiKeyAs /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequest request) @@ -2371,7 +3232,11 @@ public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenR /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequest request, CancellationToken cancellationToken = default) { @@ -2386,7 +3251,11 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequestDescriptor descriptor) @@ -2402,7 +3271,11 @@ public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenR /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name? name) @@ -2419,7 +3292,11 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -2437,7 +3314,11 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service) @@ -2454,7 +3335,11 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Action configureRequest) @@ -2472,7 +3357,11 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2487,7 +3376,11 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -2503,7 +3396,11 @@ public virtual Task CreateServiceTokenAsync(string n /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2520,7 +3417,11 @@ public virtual Task CreateServiceTokenAsync(string n /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, CancellationToken cancellationToken = default) { @@ -2536,7 +3437,11 @@ public virtual Task CreateServiceTokenAsync(string n /// /// Create a service accounts token for access without requiring basic authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Service account tokens never expire. + /// You must actively delete them if they are no longer needed. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2548,36 +3453,291 @@ public virtual Task CreateServiceTokenAsync(string n /// /// - /// Delete application privileges. + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest request) + public virtual DelegatePkiResponse DelegatePki(DelegatePkiRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Delete application privileges. + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequest request, CancellationToken cancellationToken = default) + public virtual Task DelegatePkiAsync(DelegatePkiRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Delete application privileges. + /// Delegate PKI authentication. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DelegatePkiResponse DelegatePki(DelegatePkiRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DelegatePkiResponse DelegatePki() + { + var descriptor = new DelegatePkiRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DelegatePkiResponse DelegatePki(Action configureRequest) + { + var descriptor = new DelegatePkiRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DelegatePkiAsync(DelegatePkiRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DelegatePkiAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DelegatePkiRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delegate PKI authentication. + /// + /// + /// This API implements the exchange of an X509Certificate chain for an Elasticsearch access token. + /// The certificate chain is validated, according to RFC 5280, by sequentially considering the trust configuration of every installed PKI realm that has delegation.enabled set to true. + /// A successfully trusted client certificate is also subject to the validation of the subject distinguished name according to thw username_pattern of the respective realm. + /// + /// + /// This API is called by smart and trusted proxies, such as Kibana, which terminate the user's TLS session but still want to authenticate the user by using a PKI realm—-​as if the user connected directly to Elasticsearch. + /// + /// + /// IMPORTANT: The association between the subject public key in the target certificate and the corresponding private key is not validated. + /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. + /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DelegatePkiAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DelegatePkiRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Delete application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequestDescriptor descriptor) { descriptor.BeforeRequest(); @@ -2588,7 +3748,22 @@ public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest /// /// Delete application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name) @@ -2602,7 +3777,22 @@ public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elastic /// /// Delete application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -2617,7 +3807,22 @@ public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elastic /// /// Delete application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2629,7 +3834,22 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// Delete application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -2642,7 +3862,22 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// Delete application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2658,8 +3893,10 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequest request) @@ -2674,8 +3911,10 @@ public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequest request) /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(DeleteRoleRequest request, CancellationToken cancellationToken = default) { @@ -2689,8 +3928,10 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequest reques /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequestDescriptor descriptor) @@ -2705,8 +3946,10 @@ public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequestDescriptor descrip /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name) @@ -2722,8 +3965,10 @@ public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2740,8 +3985,10 @@ public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(DeleteRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2755,8 +4002,10 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequestDescrip /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2771,8 +4020,10 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// /// /// Delete roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2786,7 +4037,12 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequest request) @@ -2799,7 +4055,12 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequ /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(DeleteRoleMappingRequest request, CancellationToken cancellationToken = default) { @@ -2811,7 +4072,12 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequestDescriptor descriptor) @@ -2824,7 +4090,12 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequ /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elasticsearch.Name name) @@ -2838,7 +4109,12 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elast /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2853,7 +4129,12 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elast /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(DeleteRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2865,7 +4146,12 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2878,7 +4164,12 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// Delete role mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Role mappings define which roles are assigned to each user. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. + /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2895,7 +4186,7 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenRequest request) @@ -2911,7 +4202,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenR /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(DeleteServiceTokenRequest request, CancellationToken cancellationToken = default) { @@ -2926,7 +4217,7 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenRequestDescriptor descriptor) @@ -2942,7 +4233,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenR /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name name) @@ -2959,7 +4250,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string s /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2977,7 +4268,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string s /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(DeleteServiceTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2992,7 +4283,7 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -3008,7 +4299,7 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3025,7 +4316,7 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) @@ -3041,7 +4332,7 @@ public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(DeleteUserRequest request, CancellationToken cancellationToken = default) { @@ -3056,7 +4347,7 @@ public virtual Task DeleteUserAsync(DeleteUserRequest reques /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(DeleteUserRequestDescriptor descriptor) @@ -3072,7 +4363,7 @@ public virtual DeleteUserResponse DeleteUser(DeleteUserRequestDescriptor descrip /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Username username) @@ -3089,7 +4380,7 @@ public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Usern /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) @@ -3107,7 +4398,7 @@ public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Usern /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(DeleteUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3122,7 +4413,7 @@ public virtual Task DeleteUserAsync(DeleteUserRequestDescrip /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) { @@ -3138,7 +4429,7 @@ public virtual Task DeleteUserAsync(Elastic.Clients.Elastics /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3154,8 +4445,10 @@ public virtual Task DeleteUserAsync(Elastic.Clients.Elastics /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(DisableUserRequest request) @@ -3170,8 +4463,10 @@ public virtual DisableUserResponse DisableUser(DisableUserRequest request) /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(DisableUserRequest request, CancellationToken cancellationToken = default) { @@ -3185,8 +4480,10 @@ public virtual Task DisableUserAsync(DisableUserRequest req /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(DisableUserRequestDescriptor descriptor) @@ -3201,8 +4498,10 @@ public virtual DisableUserResponse DisableUser(DisableUserRequestDescriptor desc /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Username username) @@ -3218,8 +4517,10 @@ public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Use /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) @@ -3236,8 +4537,10 @@ public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Use /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(DisableUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3251,8 +4554,10 @@ public virtual Task DisableUserAsync(DisableUserRequestDesc /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) { @@ -3267,8 +4572,10 @@ public virtual Task DisableUserAsync(Elastic.Clients.Elasti /// /// /// Disable users in the native realm. + /// By default, when you create users, they are enabled. + /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3285,7 +4592,16 @@ public virtual Task DisableUserAsync(Elastic.Clients.Elasti /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileRequest request) @@ -3301,8 +4617,17 @@ public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileR /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. - /// + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DisableUserProfileAsync(DisableUserProfileRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); @@ -3316,7 +4641,16 @@ public virtual Task DisableUserProfileAsync(DisableU /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileRequestDescriptor descriptor) @@ -3332,7 +4666,16 @@ public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileR /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(string uid) @@ -3349,7 +4692,16 @@ public virtual DisableUserProfileResponse DisableUserProfile(string uid) /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(string uid, Action configureRequest) @@ -3367,7 +4719,16 @@ public virtual DisableUserProfileResponse DisableUserProfile(string uid, Action< /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(DisableUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3382,7 +4743,16 @@ public virtual Task DisableUserProfileAsync(DisableU /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(string uid, CancellationToken cancellationToken = default) { @@ -3398,7 +4768,16 @@ public virtual Task DisableUserProfileAsync(string u /// /// Disable user profiles so that they are not visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. + /// To re-enable a disabled user profile, use the enable user profile API . + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3414,8 +4793,9 @@ public virtual Task DisableUserProfileAsync(string u /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(EnableUserRequest request) @@ -3430,8 +4810,9 @@ public virtual EnableUserResponse EnableUser(EnableUserRequest request) /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(EnableUserRequest request, CancellationToken cancellationToken = default) { @@ -3445,8 +4826,9 @@ public virtual Task EnableUserAsync(EnableUserRequest reques /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(EnableUserRequestDescriptor descriptor) @@ -3461,8 +4843,9 @@ public virtual EnableUserResponse EnableUser(EnableUserRequestDescriptor descrip /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Username username) @@ -3478,8 +4861,9 @@ public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Usern /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) @@ -3496,8 +4880,9 @@ public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Usern /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(EnableUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3511,8 +4896,9 @@ public virtual Task EnableUserAsync(EnableUserRequestDescrip /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) { @@ -3527,8 +4913,9 @@ public virtual Task EnableUserAsync(Elastic.Clients.Elastics /// /// /// Enable users in the native realm. + /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3545,7 +4932,16 @@ public virtual Task EnableUserAsync(Elastic.Clients.Elastics /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequest request) @@ -3561,7 +4957,16 @@ public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequ /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(EnableUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -3576,7 +4981,16 @@ public virtual Task EnableUserProfileAsync(EnableUser /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequestDescriptor descriptor) @@ -3592,7 +5006,16 @@ public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequ /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(string uid) @@ -3609,7 +5032,16 @@ public virtual EnableUserProfileResponse EnableUserProfile(string uid) /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(string uid, Action configureRequest) @@ -3627,7 +5059,16 @@ public virtual EnableUserProfileResponse EnableUserProfile(string uid, Action /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(EnableUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3642,7 +5083,16 @@ public virtual Task EnableUserProfileAsync(EnableUser /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(string uid, CancellationToken cancellationToken = default) { @@ -3658,7 +5108,16 @@ public virtual Task EnableUserProfileAsync(string uid /// /// Enable user profiles to make them visible in user profile searches. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// When you activate a user profile, it's automatically enabled and visible in user profile searches. + /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3675,7 +5134,11 @@ public virtual Task EnableUserProfileAsync(string uid /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequest request) @@ -3691,7 +5154,11 @@ public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequest request) /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(EnrollKibanaRequest request, CancellationToken cancellationToken = default) { @@ -3706,7 +5173,11 @@ public virtual Task EnrollKibanaAsync(EnrollKibanaRequest /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequestDescriptor descriptor) @@ -3722,7 +5193,11 @@ public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequestDescriptor d /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana() @@ -3739,7 +5214,11 @@ public virtual EnrollKibanaResponse EnrollKibana() /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana(Action configureRequest) @@ -3757,7 +5236,11 @@ public virtual EnrollKibanaResponse EnrollKibana(Action /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(EnrollKibanaRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3772,7 +5255,11 @@ public virtual Task EnrollKibanaAsync(EnrollKibanaRequestD /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(CancellationToken cancellationToken = default) { @@ -3788,7 +5275,11 @@ public virtual Task EnrollKibanaAsync(CancellationToken ca /// /// Enable a Kibana instance to configure itself for communication with a secured Elasticsearch cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is currently intended for internal use only by Kibana. + /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3805,7 +5296,11 @@ public virtual Task EnrollKibanaAsync(Action /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequest request) @@ -3821,7 +5316,11 @@ public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequest request) /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(EnrollNodeRequest request, CancellationToken cancellationToken = default) { @@ -3836,7 +5335,11 @@ public virtual Task EnrollNodeAsync(EnrollNodeRequest reques /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequestDescriptor descriptor) @@ -3852,7 +5355,11 @@ public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequestDescriptor descrip /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode() @@ -3869,7 +5376,11 @@ public virtual EnrollNodeResponse EnrollNode() /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode(Action configureRequest) @@ -3887,7 +5398,11 @@ public virtual EnrollNodeResponse EnrollNode(Action /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(EnrollNodeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3902,7 +5417,11 @@ public virtual Task EnrollNodeAsync(EnrollNodeRequestDescrip /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(CancellationToken cancellationToken = default) { @@ -3918,7 +5437,11 @@ public virtual Task EnrollNodeAsync(CancellationToken cancel /// /// Enroll a new node to allow it to join an existing cluster with security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. + /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3937,7 +5460,7 @@ public virtual Task EnrollNodeAsync(Actionmanage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request) @@ -3955,7 +5478,7 @@ public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request) /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(GetApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -3972,7 +5495,7 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequest request, /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequestDescriptor descriptor) @@ -3990,7 +5513,7 @@ public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequestDescriptor descriptor /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey() @@ -4009,7 +5532,7 @@ public virtual GetApiKeyResponse GetApiKey() /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey(Action configureRequest) @@ -4029,7 +5552,7 @@ public virtual GetApiKeyResponse GetApiKey(Action co /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4046,7 +5569,7 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(CancellationToken cancellationToken = default) { @@ -4064,7 +5587,7 @@ public virtual Task GetApiKeyAsync(CancellationToken cancella /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4081,7 +5604,7 @@ public virtual Task GetApiKeyAsync(Action /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivilegesRequest request) @@ -4097,7 +5620,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivi /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(GetBuiltinPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -4112,7 +5635,7 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivilegesRequestDescriptor descriptor) @@ -4128,7 +5651,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivi /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges() @@ -4145,7 +5668,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges() /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(Action configureRequest) @@ -4163,7 +5686,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(Action /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(GetBuiltinPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4178,7 +5701,7 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -4194,7 +5717,7 @@ public virtual Task GetBuiltinPrivilegesAsync(Canc /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4208,7 +5731,22 @@ public virtual Task GetBuiltinPrivilegesAsync(Acti /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequest request) @@ -4221,7 +5759,22 @@ public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequest request) /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(GetPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -4233,7 +5786,22 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequestDescriptor descriptor) @@ -4246,7 +5814,22 @@ public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequestDescripto /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name) @@ -4260,7 +5843,22 @@ public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -4275,7 +5873,22 @@ public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges() @@ -4289,7 +5902,22 @@ public virtual GetPrivilegesResponse GetPrivileges() /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(Action configureRequest) @@ -4304,7 +5932,22 @@ public virtual GetPrivilegesResponse GetPrivileges(Action /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(GetPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4316,7 +5959,22 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -4329,7 +5987,22 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4343,7 +6016,22 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -4356,7 +6044,22 @@ public virtual Task GetPrivilegesAsync(CancellationToken /// /// Get application privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The read_security cluster privilege (or a greater privilege such as manage_security or all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4372,8 +6075,10 @@ public virtual Task GetPrivilegesAsync(Action /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(GetRoleRequest request) @@ -4388,8 +6093,10 @@ public virtual GetRoleResponse GetRole(GetRoleRequest request) /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(GetRoleRequest request, CancellationToken cancellationToken = default) { @@ -4403,8 +6110,10 @@ public virtual Task GetRoleAsync(GetRoleRequest request, Cancel /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(GetRoleRequestDescriptor descriptor) @@ -4419,8 +6128,10 @@ public virtual GetRoleResponse GetRole(GetRoleRequestDescriptor descriptor) /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name) @@ -4436,8 +6147,10 @@ public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -4454,8 +6167,10 @@ public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole() @@ -4471,8 +6186,10 @@ public virtual GetRoleResponse GetRole() /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(Action configureRequest) @@ -4489,8 +6206,10 @@ public virtual GetRoleResponse GetRole(Action configur /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(GetRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4504,8 +6223,10 @@ public virtual Task GetRoleAsync(GetRoleRequestDescriptor descr /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -4520,8 +6241,10 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4537,8 +6260,10 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(CancellationToken cancellationToken = default) { @@ -4553,8 +6278,10 @@ public virtual Task GetRoleAsync(CancellationToken cancellation /// /// /// Get roles in the native realm. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4573,7 +6300,7 @@ public virtual Task GetRoleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequest request) @@ -4591,7 +6318,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequest reque /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(GetRoleMappingRequest request, CancellationToken cancellationToken = default) { @@ -4608,7 +6335,7 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequestDescriptor descriptor) @@ -4626,7 +6353,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequestDescri /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsearch.Names? name) @@ -4645,7 +6372,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsear /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -4665,7 +6392,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsear /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping() @@ -4684,7 +6411,7 @@ public virtual GetRoleMappingResponse GetRoleMapping() /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(Action configureRequest) @@ -4704,7 +6431,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(GetRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4721,7 +6448,7 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -4739,7 +6466,7 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4758,7 +6485,7 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(CancellationToken cancellationToken = default) { @@ -4776,7 +6503,7 @@ public virtual Task GetRoleMappingAsync(CancellationToke /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4793,7 +6520,10 @@ public virtual Task GetRoleMappingAsync(Action /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsRequest request) @@ -4809,7 +6539,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsR /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(GetServiceAccountsRequest request, CancellationToken cancellationToken = default) { @@ -4824,7 +6557,10 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsRequestDescriptor descriptor) @@ -4840,8 +6576,11 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsR /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. - /// + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? service) { @@ -4857,7 +6596,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? service, Action configureRequest) @@ -4875,7 +6617,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts() @@ -4892,7 +6637,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts() /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(Action configureRequest) @@ -4910,7 +6658,10 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(Action /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(GetServiceAccountsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4925,7 +6676,10 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(string? ns, string? service, CancellationToken cancellationToken = default) { @@ -4941,7 +6695,10 @@ public virtual Task GetServiceAccountsAsync(string? /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(string? ns, string? service, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4958,7 +6715,10 @@ public virtual Task GetServiceAccountsAsync(string? /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(CancellationToken cancellationToken = default) { @@ -4974,7 +6734,10 @@ public virtual Task GetServiceAccountsAsync(Cancella /// /// Get a list of service accounts that match the provided path parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: Currently, only the elastic/fleet-server service account is available. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4988,7 +6751,17 @@ public virtual Task GetServiceAccountsAsync(Action /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCredentialsRequest request) @@ -5001,7 +6774,17 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCre /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(GetServiceCredentialsRequest request, CancellationToken cancellationToken = default) { @@ -5013,7 +6796,17 @@ public virtual Task GetServiceCredentialsAsync(Ge /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCredentialsRequestDescriptor descriptor) @@ -5026,7 +6819,17 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCre /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, Elastic.Clients.Elasticsearch.Name service) @@ -5040,7 +6843,17 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, El /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, Elastic.Clients.Elasticsearch.Name service, Action configureRequest) @@ -5055,7 +6868,17 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, El /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(GetServiceCredentialsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5067,7 +6890,17 @@ public virtual Task GetServiceCredentialsAsync(Ge /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(string ns, Elastic.Clients.Elasticsearch.Name service, CancellationToken cancellationToken = default) { @@ -5080,7 +6913,17 @@ public virtual Task GetServiceCredentialsAsync(st /// /// Get service account credentials. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the read_security cluster privilege (or a greater privilege such as manage_service_account or manage_security). + /// + /// + /// The response includes service account tokens that were created with the create service account tokens API as well as file-backed tokens from all nodes of the cluster. + /// + /// + /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. + /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(string ns, Elastic.Clients.Elasticsearch.Name service, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5092,214 +6935,568 @@ public virtual Task GetServiceCredentialsAsync(st /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetTokenResponse GetToken(GetTokenRequest request) + public virtual GetSecuritySettingsResponse GetSettings(GetSecuritySettingsRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetTokenAsync(GetTokenRequest request, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(GetSecuritySettingsRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetTokenResponse GetToken(GetTokenRequestDescriptor descriptor) + public virtual GetSecuritySettingsResponse GetSettings(GetSecuritySettingsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetTokenResponse GetToken() + public virtual GetSecuritySettingsResponse GetSettings() { - var descriptor = new GetTokenRequestDescriptor(); + var descriptor = new GetSecuritySettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetTokenResponse GetToken(Action configureRequest) + public virtual GetSecuritySettingsResponse GetSettings(Action configureRequest) { - var descriptor = new GetTokenRequestDescriptor(); + var descriptor = new GetSecuritySettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetTokenAsync(GetTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(GetSecuritySettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetTokenAsync(CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { - var descriptor = new GetTokenRequestDescriptor(); + var descriptor = new GetSecuritySettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get a token. + /// Get security index settings. /// /// - /// Create a bearer token for access without requiring basic authentication. + /// Get the user-configurable settings for the security internal index (.security and associated indices). + /// Only a subset of the index settings — those that are user-configurable—will be shown. + /// This includes: + /// + /// + /// + /// + /// index.auto_expand_replicas + /// + /// + /// + /// + /// index.number_of_replicas /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetTokenRequestDescriptor(); + var descriptor = new GetSecuritySettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get users. + /// Get a token. /// /// - /// Get information about users in the native realm and built-in users. + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetUserResponse GetUser(GetUserRequest request) + public virtual GetTokenResponse GetToken(GetTokenRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Get users. + /// Get a token. /// /// - /// Get information about users in the native realm and built-in users. + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetUserAsync(GetUserRequest request, CancellationToken cancellationToken = default) + public virtual Task GetTokenAsync(GetTokenRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Get users. + /// Get a token. /// /// - /// Get information about users in the native realm and built-in users. + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetUserResponse GetUser(GetUserRequestDescriptor descriptor) + public virtual GetTokenResponse GetToken(GetTokenRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get users. + /// Get a token. /// /// - /// Get information about users in the native realm and built-in users. + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetUserResponse GetUser(IReadOnlyCollection? username) + public virtual GetTokenResponse GetToken() { - var descriptor = new GetUserRequestDescriptor(username); + var descriptor = new GetTokenRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get users. + /// Get a token. /// /// - /// Get information about users in the native realm and built-in users. + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetUserResponse GetUser(IReadOnlyCollection? username, Action configureRequest) + public virtual GetTokenResponse GetToken(Action configureRequest) { - var descriptor = new GetUserRequestDescriptor(username); + var descriptor = new GetTokenRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); + } + + /// + /// + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetTokenAsync(GetTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetTokenAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetTokenRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get a token. + /// + /// + /// Create a bearer token for access without requiring basic authentication. + /// The tokens are created by the Elasticsearch Token Service, which is automatically enabled when you configure TLS on the HTTP interface. + /// Alternatively, you can explicitly enable the xpack.security.authc.token.enabled setting. + /// When you are running in production mode, a bootstrap check prevents you from enabling the token service unless you also enable TLS on the HTTP interface. + /// + /// + /// The get token API takes the same parameters as a typical OAuth 2.0 token API except for the use of a JSON request body. + /// + /// + /// A successful get token API call returns a JSON structure that contains the access token, the amount of time (seconds) that the token expires in, the type, and the scope if available. + /// + /// + /// The tokens returned by the get token API have a finite period of time for which they are valid and after that time period, they can no longer be used. + /// That time period is defined by the xpack.security.authc.token.timeout setting. + /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetTokenRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetUserResponse GetUser(GetUserRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetUserAsync(GetUserRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetUserResponse GetUser(GetUserRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetUserResponse GetUser(IReadOnlyCollection? username) + { + var descriptor = new GetUserRequestDescriptor(username); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get users. + /// + /// + /// Get information about users in the native realm and built-in users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetUserResponse GetUser(IReadOnlyCollection? username, Action configureRequest) + { + var descriptor = new GetUserRequestDescriptor(username); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); } /// @@ -5309,7 +7506,7 @@ public virtual GetUserResponse GetUser(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser() @@ -5326,7 +7523,7 @@ public virtual GetUserResponse GetUser() /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser(Action configureRequest) @@ -5344,7 +7541,7 @@ public virtual GetUserResponse GetUser(Action configur /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(GetUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5359,7 +7556,7 @@ public virtual Task GetUserAsync(GetUserRequestDescriptor descr /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(IReadOnlyCollection? username, CancellationToken cancellationToken = default) { @@ -5375,7 +7572,7 @@ public virtual Task GetUserAsync(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(IReadOnlyCollection? username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5392,7 +7589,7 @@ public virtual Task GetUserAsync(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(CancellationToken cancellationToken = default) { @@ -5408,7 +7605,7 @@ public virtual Task GetUserAsync(CancellationToken cancellation /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5422,7 +7619,13 @@ public virtual Task GetUserAsync(Action /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequest request) @@ -5435,7 +7638,13 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequ /// /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(GetUserPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -5447,7 +7656,13 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequestDescriptor descriptor) @@ -5460,7 +7675,13 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequ /// /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges() @@ -5474,7 +7695,13 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges() /// /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges(Action configureRequest) @@ -5489,7 +7716,13 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(Action /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(GetUserPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5501,7 +7734,13 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -5514,7 +7753,13 @@ public virtual Task GetUserPrivilegesAsync(Cancellati /// /// Get user privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get the security privileges for the logged in user. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. + /// To check whether a user has a specific list of privileges, use the has privileges API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5531,7 +7776,12 @@ public virtual Task GetUserPrivilegesAsync(Action /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequest request) @@ -5547,7 +7797,12 @@ public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequest reque /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(GetUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -5562,7 +7817,12 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequestDescriptor descriptor) @@ -5578,7 +7838,12 @@ public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequestDescri /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection uid) @@ -5595,7 +7860,12 @@ public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection uid, Action configureRequest) @@ -5613,7 +7883,12 @@ public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(GetUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5628,7 +7903,12 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(IReadOnlyCollection uid, CancellationToken cancellationToken = default) { @@ -5644,7 +7924,12 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// Get a user's profile using the unique profile ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(IReadOnlyCollection uid, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5661,13 +7946,34 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5676,7 +7982,7 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequest request) @@ -5692,13 +7998,34 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequest request) /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5707,7 +8034,7 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequest request) /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(GrantApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -5722,13 +8049,34 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequest req /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5737,7 +8085,7 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequest req /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor descriptor) @@ -5753,13 +8101,34 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDesc /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5768,7 +8137,7 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDesc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey() @@ -5785,13 +8154,34 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5800,7 +8190,7 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(Action> configureRequest) @@ -5818,13 +8208,34 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. - /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. - /// In this case, the API key will be created on behalf of the impersonated user. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: /// - /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// + /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. + /// In this case, the API key will be created on behalf of the impersonated user. + /// + /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5833,7 +8244,7 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor descriptor) @@ -5849,13 +8260,34 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor desc /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5864,7 +8296,7 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor desc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey() @@ -5881,13 +8313,34 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5896,7 +8349,7 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(Action configureRequest) @@ -5914,13 +8367,34 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5929,7 +8403,7 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5944,13 +8418,34 @@ public virtual Task GrantApiKeyAsync(GrantApiKey /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5959,7 +8454,7 @@ public virtual Task GrantApiKeyAsync(GrantApiKey /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(CancellationToken cancellationToken = default) { @@ -5975,13 +8470,34 @@ public virtual Task GrantApiKeyAsync(Cancellatio /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -5990,7 +8506,7 @@ public virtual Task GrantApiKeyAsync(Cancellatio /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6007,13 +8523,34 @@ public virtual Task GrantApiKeyAsync(Action /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -6022,7 +8559,7 @@ public virtual Task GrantApiKeyAsync(Action /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6037,13 +8574,34 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDesc /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -6052,7 +8610,7 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDesc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(CancellationToken cancellationToken = default) { @@ -6068,13 +8626,34 @@ public virtual Task GrantApiKeyAsync(CancellationToken canc /// /// Create an API key on behalf of another user. /// This API is similar to the create API keys API, however it creates the API key for a user that is different than the user that runs the API. - /// The caller must have authentication credentials (either an access token, or a username and password) for the user on whose behalf the API key will be created. - /// It is not possible to use this API to create an API key without that user’s credentials. + /// The caller must have authentication credentials for the user on whose behalf the API key will be created. + /// It is not possible to use this API to create an API key without that user's credentials. + /// The supported user authentication credential types are: + /// + /// + /// + /// + /// username and password + /// + /// + /// + /// + /// Elasticsearch access tokens + /// + /// + /// + /// + /// JWTs + /// + /// + /// + /// /// The user, for whom the authentication credentials is provided, can optionally "run as" (impersonate) another user. /// In this case, the API key will be created on behalf of the impersonated user. /// /// /// This API is intended be used by applications that need to create and manage API keys for end users, but cannot guarantee that those users have permission to create API keys on their own behalf. + /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// /// /// A successful grant API key API call returns a JSON structure that contains the API key, its unique id, and its name. @@ -6083,7 +8662,7 @@ public virtual Task GrantApiKeyAsync(CancellationToken canc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6099,8 +8678,10 @@ public virtual Task GrantApiKeyAsync(Action /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequest request) @@ -6115,8 +8696,10 @@ public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequest request) /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(HasPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -6130,8 +8713,10 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequestDescriptor descriptor) @@ -6146,8 +8731,10 @@ public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequestDescripto /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch.Name? user) @@ -6163,8 +8750,10 @@ public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch.Name? user, Action configureRequest) @@ -6181,8 +8770,10 @@ public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges() @@ -6198,8 +8789,10 @@ public virtual HasPrivilegesResponse HasPrivileges() /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(Action configureRequest) @@ -6216,8 +8809,10 @@ public virtual HasPrivilegesResponse HasPrivileges(Action /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(HasPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6231,8 +8826,10 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? user, CancellationToken cancellationToken = default) { @@ -6247,8 +8844,10 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? user, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6264,8 +8863,10 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -6280,8 +8881,10 @@ public virtual Task HasPrivilegesAsync(CancellationToken /// /// /// Determine whether the specified user has a specified list of privileges. + /// All users can use this API, but only to determine their own privileges. + /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6298,7 +8901,11 @@ public virtual Task HasPrivilegesAsync(Action /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPrivilegesUserProfileRequest request) @@ -6314,7 +8921,11 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPriv /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(HasPrivilegesUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -6329,7 +8940,11 @@ public virtual Task HasPrivilegesUserProfileAs /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPrivilegesUserProfileRequestDescriptor descriptor) @@ -6345,7 +8960,11 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPriv /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile() @@ -6362,7 +8981,11 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile() /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(Action configureRequest) @@ -6380,7 +9003,11 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(Action< /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(HasPrivilegesUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6395,7 +9022,11 @@ public virtual Task HasPrivilegesUserProfileAs /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(CancellationToken cancellationToken = default) { @@ -6411,7 +9042,11 @@ public virtual Task HasPrivilegesUserProfileAs /// /// Determine whether the users associated with the specified user profile IDs have all the requested privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6428,8 +9063,12 @@ public virtual Task HasPrivilegesUserProfileAs /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6440,7 +9079,7 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6449,7 +9088,7 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest request) @@ -6465,8 +9104,12 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6477,7 +9120,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6486,7 +9129,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(InvalidateApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -6501,8 +9144,12 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6513,7 +9160,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6522,7 +9169,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequestDescriptor descriptor) @@ -6538,8 +9185,12 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6550,7 +9201,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6559,7 +9210,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey() @@ -6576,8 +9227,12 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey() /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6588,7 +9243,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey() /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6597,7 +9252,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey(Action configureRequest) @@ -6615,8 +9270,12 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(Action /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6627,7 +9286,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(Action /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6636,7 +9295,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(InvalidateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6651,8 +9310,12 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6663,7 +9326,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6672,7 +9335,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(CancellationToken cancellationToken = default) { @@ -6688,8 +9351,12 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// This API invalidates API keys created by the create API key or grant API key APIs. /// Invalidated API keys fail authentication, but they can still be viewed using the get API key information and query API key information APIs, for at least the configured retention period, until they are automatically deleted. - /// The manage_api_key privilege allows deleting any API keys. - /// The manage_own_api_key only allows deleting API keys that are owned by the user. + /// + /// + /// To use this API, you must have at least the manage_security, manage_api_key, or manage_own_api_key cluster privileges. + /// The manage_security privilege allows deleting any API key, including both REST and cross cluster API keys. + /// The manage_api_key privilege allows deleting any REST API key, but not cross cluster API keys. + /// The manage_own_api_key only allows deleting REST API keys that are owned by the user. /// In addition, with the manage_own_api_key privilege, an invalidation request must be issued in one of the three formats: /// /// @@ -6700,7 +9367,7 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// - /// Or, set both username and realm_name to match the user’s identity. + /// Or, set both username and realm_name to match the user's identity. /// /// /// @@ -6709,7 +9376,7 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6729,10 +9396,16 @@ public virtual Task InvalidateApiKeyAsync(Actionxpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequest request) @@ -6751,10 +9424,16 @@ public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequest re /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(InvalidateTokenRequest request, CancellationToken cancellationToken = default) { @@ -6772,10 +9451,16 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequestDescriptor descriptor) @@ -6794,10 +9479,16 @@ public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequestDes /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken() @@ -6817,10 +9508,16 @@ public virtual InvalidateTokenResponse InvalidateToken() /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken(Action configureRequest) @@ -6841,10 +9538,16 @@ public virtual InvalidateTokenResponse InvalidateToken(Actionxpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(InvalidateTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6862,10 +9565,16 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(CancellationToken cancellationToken = default) { @@ -6884,10 +9593,16 @@ public virtual Task InvalidateTokenAsync(CancellationTo /// The time period is defined by the xpack.security.authc.token.timeout setting. /// /// - /// The refresh tokens returned by the get token API are only valid for 24 hours. They can also be used exactly once. + /// The refresh tokens returned by the get token API are only valid for 24 hours. + /// They can also be used exactly once. /// If you want to invalidate one or more access or refresh tokens immediately, use this invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: While all parameters are optional, at least one of them is required. + /// More specifically, either one of token or refresh_token parameters is required. + /// If none of these two are specified, then realm_name and/or username need to be specified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6899,2846 +9614,5569 @@ public virtual Task InvalidateTokenAsync(Action /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. + /// + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequest request) + public virtual OidcAuthenticateResponse OidcAuthenticate(OidcAuthenticateRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. + /// + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutPrivilegesAsync(PutPrivilegesRequest request, CancellationToken cancellationToken = default) + public virtual Task OidcAuthenticateAsync(OidcAuthenticateRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. + /// + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequestDescriptor descriptor) + public virtual OidcAuthenticateResponse OidcAuthenticate(OidcAuthenticateRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. + /// + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutPrivilegesResponse PutPrivileges() + public virtual OidcAuthenticateResponse OidcAuthenticate() { - var descriptor = new PutPrivilegesRequestDescriptor(); + var descriptor = new OidcAuthenticateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. + /// + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutPrivilegesResponse PutPrivileges(Action configureRequest) + public virtual OidcAuthenticateResponse OidcAuthenticate(Action configureRequest) { - var descriptor = new PutPrivilegesRequestDescriptor(); + var descriptor = new OidcAuthenticateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. + /// + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutPrivilegesAsync(PutPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OidcAuthenticateAsync(OidcAuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutPrivilegesAsync(CancellationToken cancellationToken = default) + public virtual Task OidcAuthenticateAsync(CancellationToken cancellationToken = default) { - var descriptor = new PutPrivilegesRequestDescriptor(); + var descriptor = new OidcAuthenticateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update application privileges. + /// Authenticate OpenID Connect. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Exchange an OpenID Connect authentication response message for an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OidcAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutPrivilegesRequestDescriptor(); + var descriptor = new OidcAuthenticateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. + /// + /// + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(PutRoleRequest request) + public virtual OidcLogoutResponse OidcLogout(OidcLogoutRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. + /// + /// + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleAsync(PutRoleRequest request, CancellationToken cancellationToken = default) + public virtual Task OidcLogoutAsync(OidcLogoutRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, PutRoleResponse, PutRoleRequestParameters>(descriptor); - } - - /// /// - /// Create or update roles. + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) + public virtual OidcLogoutResponse OidcLogout(OidcLogoutRequestDescriptor descriptor) { - var descriptor = new PutRoleRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequest, PutRoleResponse, PutRoleRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) - { - var descriptor = new PutRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, PutRoleResponse, PutRoleRequestParameters>(descriptor); - } - - /// /// - /// Create or update roles. + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) + public virtual OidcLogoutResponse OidcLogout() { + var descriptor = new OidcLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) - { - var descriptor = new PutRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Create or update roles. + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + public virtual OidcLogoutResponse OidcLogout(Action configureRequest) { - var descriptor = new PutRoleRequestDescriptor(name); + var descriptor = new OidcLogoutRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Create or update roles. + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + public virtual Task OidcLogoutAsync(OidcLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new PutRoleRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Create or update roles. + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OidcLogoutAsync(CancellationToken cancellationToken = default) { + var descriptor = new OidcLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update roles. + /// Logout of OpenID Connect. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Invalidate an access token and a refresh token that were generated as a response to the /_security/oidc/authenticate API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new PutRoleRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Create or update roles. + /// If the OpenID Connect authentication realm in Elasticsearch is accordingly configured, the response to this call will contain a URI pointing to the end session endpoint of the OpenID Connect Provider in order to perform single logout. /// /// - /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. - /// The create or update roles API cannot update roles that are defined in roles files. - /// File-based role management is not available in Elastic Serverless. + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OidcLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutRoleRequestDescriptor(name); + var descriptor = new OidcLogoutRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequest request) + public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(OidcPrepareAuthenticationRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleMappingAsync(PutRoleMappingRequest request, CancellationToken cancellationToken = default) + public virtual Task OidcPrepareAuthenticationAsync(OidcPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequestDescriptor descriptor) + public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(OidcPrepareAuthenticationRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsearch.Name name) + public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication() { - var descriptor = new PutRoleMappingRequestDescriptor(name); + var descriptor = new OidcPrepareAuthenticationRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(Action configureRequest) { - var descriptor = new PutRoleMappingRequestDescriptor(name); + var descriptor = new OidcPrepareAuthenticationRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleMappingAsync(PutRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task OidcPrepareAuthenticationAsync(OidcPrepareAuthenticationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + public virtual Task OidcPrepareAuthenticationAsync(CancellationToken cancellationToken = default) { - var descriptor = new PutRoleMappingRequestDescriptor(name); + var descriptor = new OidcPrepareAuthenticationRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update role mappings. + /// Prepare OpenID connect authentication. /// /// - /// Role mappings define which roles are assigned to each user. - /// Each mapping has rules that identify users and a list of roles that are granted to those users. - /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// Create an oAuth 2.0 authentication request as a URL string based on the configuration of the OpenID Connect authentication realm in Elasticsearch. /// /// - /// This API does not create roles. Rather, it maps users to existing roles. - /// Roles can be created by using the create or update roles API or roles files. + /// The response of this API is a URL pointing to the Authorization Endpoint of the configured OpenID Connect Provider, which can be used to redirect the browser of the user in order to continue the authentication process. + /// + /// + /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. + /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task OidcPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutRoleMappingRequestDescriptor(name); + var descriptor = new OidcPrepareAuthenticationRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Create or update users. + /// Create or update application privileges. /// /// - /// A password is required for adding a new user but is optional when updating an existing user. - /// To change a user’s password without updating any other fields, use the change password API. + /// To use this API, you must have one of the following privileges: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutUserResponse PutUser(PutUserRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Create or update users. + /// The manage_security cluster privilege (or a greater privilege such as all). /// + /// + /// /// - /// A password is required for adding a new user but is optional when updating an existing user. - /// To change a user’s password without updating any other fields, use the change password API. + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutUserAsync(PutUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Create or update users. + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: /// + /// + /// /// - /// A password is required for adding a new user but is optional when updating an existing user. - /// To change a user’s password without updating any other fields, use the change password API. + /// The prefix must begin with a lowercase ASCII letter. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutUserResponse PutUser(PutUserRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPrivilegesAsync(PutPrivilegesRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutPrivilegesResponse PutPrivileges() + { + var descriptor = new PutPrivilegesRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutPrivilegesResponse PutPrivileges(Action configureRequest) + { + var descriptor = new PutPrivilegesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPrivilegesAsync(PutPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPrivilegesAsync(CancellationToken cancellationToken = default) + { + var descriptor = new PutPrivilegesRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update application privileges. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_security cluster privilege (or a greater privilege such as all). + /// + /// + /// + /// + /// The "Manage Application Privileges" global privilege for the application being referenced in the request. + /// + /// + /// + /// + /// Application names are formed from a prefix, with an optional suffix that conform to the following rules: + /// + /// + /// + /// + /// The prefix must begin with a lowercase ASCII letter. + /// + /// + /// + /// + /// The prefix must contain only ASCII letters or digits. + /// + /// + /// + /// + /// The prefix must be at least 3 characters long. + /// + /// + /// + /// + /// If the suffix exists, it must begin with either a dash - or _. + /// + /// + /// + /// + /// The suffix cannot contain any of the following characters: \, /, *, ?, ", <, >, |, ,, *. + /// + /// + /// + /// + /// No part of the name can contain whitespace. + /// + /// + /// + /// + /// Privilege names must begin with a lowercase ASCII letter and must contain only ASCII letters and digits along with the characters _, -, and .. + /// + /// + /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutPrivilegesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(PutRoleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(PutRoleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutRoleResponse, PutRoleRequestParameters>(descriptor); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new PutRoleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest, PutRoleResponse, PutRoleRequestParameters>(descriptor); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) + { + var descriptor = new PutRoleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutRoleResponse, PutRoleRequestParameters>(descriptor); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new PutRoleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new PutRoleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new PutRoleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutRoleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutRoleResponse, PutRoleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new PutRoleRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update roles. + /// + /// + /// The role management APIs are generally the preferred way to manage roles in the native realm, rather than using file-based role management. + /// The create or update roles API cannot update roles that are defined in roles files. + /// File-based role management is not available in Elastic Serverless. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutRoleRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleMappingAsync(PutRoleMappingRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new PutRoleMappingRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new PutRoleMappingRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleMappingAsync(PutRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new PutRoleMappingRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update role mappings. + /// + /// + /// Role mappings define which roles are assigned to each user. + /// Each mapping has rules that identify users and a list of roles that are granted to those users. + /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The create or update role mappings API cannot update role mappings that are defined in role mapping files. + /// + /// + /// NOTE: This API does not create roles. Rather, it maps users to existing roles. + /// Roles can be created by using the create or update roles API or roles files. + /// + /// + /// Role templates + /// + /// + /// The most common use for role mappings is to create a mapping from a known value on the user to a fixed role name. + /// For example, all users in the cn=admin,dc=example,dc=com LDAP group should be given the superuser role in Elasticsearch. + /// The roles field is used for this purpose. + /// + /// + /// For more complex needs, it is possible to use Mustache templates to dynamically determine the names of the roles that should be granted to the user. + /// The role_templates field is used for this purpose. + /// + /// + /// NOTE: To use role templates successfully, the relevant scripting feature must be enabled. + /// Otherwise, all attempts to create a role mapping with role templates fail. + /// + /// + /// All of the user fields that are available in the role mapping rules are also available in the role templates. + /// Thus it is possible to assign a user to a role that reflects their username, their groups, or the name of the realm to which they authenticated. + /// + /// + /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. + /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutRoleMappingRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update users. + /// + /// + /// Add and update users in the native realm. + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user's password without updating any other fields, use the change password API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutUserResponse PutUser(PutUserRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create or update users. + /// + /// + /// Add and update users in the native realm. + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user's password without updating any other fields, use the change password API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutUserAsync(PutUserRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create or update users. + /// + /// + /// Add and update users in the native realm. + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user's password without updating any other fields, use the change password API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutUserResponse PutUser(PutUserRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create or update users. + /// + /// + /// Add and update users in the native realm. + /// A password is required for adding a new user but is optional when updating an existing user. + /// To change a user's password without updating any other fields, use the change password API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutUserAsync(PutUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(QueryApiKeysRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys() + { + var descriptor = new QueryApiKeysRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys(Action> configureRequest) + { + var descriptor = new QueryApiKeysRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys() + { + var descriptor = new QueryApiKeysRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryApiKeysResponse QueryApiKeys(Action configureRequest) + { + var descriptor = new QueryApiKeysRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryApiKeysRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryApiKeysRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryApiKeysRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find API keys with a query. + /// + /// + /// Get a paginated list of API keys and their information. + /// You can optionally filter the results with a query. + /// + /// + /// To use this API, you must have at least the manage_own_api_key or the read_security cluster privileges. + /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. + /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryApiKeysRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole(QueryRoleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(QueryRoleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, QueryRoleResponse, QueryRoleRequestParameters>(descriptor); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole() + { + var descriptor = new QueryRoleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, QueryRoleResponse, QueryRoleRequestParameters>(descriptor); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole(Action> configureRequest) + { + var descriptor = new QueryRoleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, QueryRoleResponse, QueryRoleRequestParameters>(descriptor); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole() + { + var descriptor = new QueryRoleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryRoleResponse QueryRole(Action configureRequest) + { + var descriptor = new QueryRoleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryRoleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryRoleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryRoleRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find roles with a query. + /// + /// + /// Get roles in a paginated manner. + /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. + /// The query roles API does not retrieve roles that are defined in roles files, nor built-in ones. + /// You can optionally filter the results with a query. + /// Also, the results can be paginated and sorted. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryRoleRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser(QueryUserRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(QueryUserRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, QueryUserResponse, QueryUserRequestParameters>(descriptor); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser() + { + var descriptor = new QueryUserRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, QueryUserResponse, QueryUserRequestParameters>(descriptor); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser(Action> configureRequest) + { + var descriptor = new QueryUserRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, QueryUserResponse, QueryUserRequestParameters>(descriptor); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser() + { + var descriptor = new QueryUserRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual QueryUserResponse QueryUser(Action configureRequest) + { + var descriptor = new QueryUserRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryUserRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryUserRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryUserRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Find users with a query. + /// + /// + /// Get information for users in a paginated manner. + /// You can optionally filter the results with a query. + /// + /// + /// NOTE: As opposed to the get user API, built-in users are excluded from the result. + /// This API is only for native users. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryUserAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryUserRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Authenticate SAML. + /// + /// + /// Submit a SAML response message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The SAML message that is submitted can be: + /// + /// + /// + /// + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. + /// + /// + /// + /// + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. + /// + /// + /// + /// + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. + /// + /// + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + /// /// - /// Create or update users. + /// Authenticate SAML. + /// + /// + /// Submit a SAML response message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The SAML message that is submitted can be: + /// + /// + /// + /// + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. /// + /// + /// /// - /// A password is required for adding a new user but is optional when updating an existing user. - /// To change a user’s password without updating any other fields, use the change password API. + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutUserAsync(PutUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Find API keys with a query. + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequest request) + public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequest(request); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Find API keys with a query. + /// Authenticate SAML. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Submit a SAML response message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(QueryApiKeysRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Find API keys with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// The SAML message that is submitted can be: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Find API keys with a query. + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. /// + /// + /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys() - { - var descriptor = new QueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Find API keys with a query. + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys(Action> configureRequest) + public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequestDescriptor descriptor) { - var descriptor = new QueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Find API keys with a query. + /// Authenticate SAML. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Submit a SAML response message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Find API keys with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The SAML message that is submitted can be: + /// + /// + /// + /// + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. + /// + /// + /// + /// + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. + /// + /// + /// + /// + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys() + public virtual SamlAuthenticateResponse SamlAuthenticate() { - var descriptor = new QueryApiKeysRequestDescriptor(); + var descriptor = new SamlAuthenticateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Find API keys with a query. + /// Authenticate SAML. + /// + /// + /// Submit a SAML response message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The SAML message that is submitted can be: + /// + /// + /// + /// + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. + /// + /// + /// + /// + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. + /// + /// + /// + /// + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryApiKeysResponse QueryApiKeys(Action configureRequest) + public virtual SamlAuthenticateResponse SamlAuthenticate(Action configureRequest) { - var descriptor = new QueryApiKeysRequestDescriptor(); + var descriptor = new SamlAuthenticateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Find API keys with a query. + /// Authenticate SAML. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Submit a SAML response message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Find API keys with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// The SAML message that is submitted can be: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Find API keys with a query. + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. /// + /// + /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, QueryApiKeysResponse, QueryApiKeysRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Find API keys with a query. + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find API keys with a query. + /// Authenticate SAML. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// Submit a SAML response message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) - { - var descriptor = new QueryApiKeysRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Find API keys with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The SAML message that is submitted can be: + /// + /// + /// + /// + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. + /// + /// + /// + /// + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. + /// + /// + /// + /// + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get a paginated list of API keys and their information. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SamlAuthenticateAsync(CancellationToken cancellationToken = default) { - var descriptor = new QueryApiKeysRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new SamlAuthenticateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find roles with a query. + /// Authenticate SAML. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// Submit a SAML response message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole(QueryRoleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Find roles with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML message that is submitted can be: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryRoleAsync(QueryRoleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Find roles with a query. + /// A response to a SAML authentication request that was previously created using the SAML prepare authentication API. + /// + /// + /// + /// + /// An unsolicited SAML message in the case of an IdP-initiated single sign-on (SSO) flow. + /// + /// + /// + /// + /// In either case, the SAML message needs to be a base64 encoded XML document with a root element of <Response>. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. + /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor) + public virtual Task SamlAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) { + var descriptor = new SamlAuthenticateRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, QueryRoleResponse, QueryRoleRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole() + public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutRequest request) { - var descriptor = new QueryRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, QueryRoleResponse, QueryRoleRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole(Action> configureRequest) + public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequest request, CancellationToken cancellationToken = default) { - var descriptor = new QueryRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, QueryRoleResponse, QueryRoleRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor) + public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole() + public virtual SamlCompleteLogoutResponse SamlCompleteLogout() { - var descriptor = new QueryRoleRequestDescriptor(); + var descriptor = new SamlCompleteLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryRoleResponse QueryRole(Action configureRequest) + public virtual SamlCompleteLogoutResponse SamlCompleteLogout(Action configureRequest) { - var descriptor = new QueryRoleRequestDescriptor(); + var descriptor = new SamlCompleteLogoutRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) + public virtual Task SamlCompleteLogoutAsync(CancellationToken cancellationToken = default) { - var descriptor = new QueryRoleRequestDescriptor(); + var descriptor = new SamlCompleteLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find roles with a query. + /// Logout of SAML completely. + /// + /// + /// Verifies the logout response sent from the SAML IdP. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The SAML IdP may send a logout response back to the SP after handling the SP-initiated SAML Single Logout. + /// This API verifies the response by ensuring the content is relevant and validating its signature. + /// An empty response is returned if the verification process is successful. + /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. + /// The caller of this API must prepare the request accordingly so that this API can handle either of them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryRoleAsync(Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task SamlCompleteLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new QueryRoleRequestDescriptor(); + var descriptor = new SamlCompleteLogoutRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, QueryRoleResponse, QueryRoleRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find roles with a query. + /// Invalidate SAML. + /// + /// + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequest request) { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Find roles with a query. + /// Invalidate SAML. + /// + /// + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) + public virtual Task SamlInvalidateAsync(SamlInvalidateRequest request, CancellationToken cancellationToken = default) { - var descriptor = new QueryRoleRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Find roles with a query. + /// Invalidate SAML. /// /// - /// Get roles in a paginated manner. You can optionally filter the results with a query. + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequestDescriptor descriptor) { - var descriptor = new QueryRoleRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Find users with a query. + /// Invalidate SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser(QueryUserRequest request) + public virtual SamlInvalidateResponse SamlInvalidate() { - request.BeforeRequest(); - return DoRequest(request); + var descriptor = new SamlInvalidateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); } /// /// - /// Find users with a query. + /// Invalidate SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task QueryUserAsync(QueryUserRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Find users with a query. + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor) + public virtual SamlInvalidateResponse SamlInvalidate(Action configureRequest) { + var descriptor = new SamlInvalidateRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, QueryUserResponse, QueryUserRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Find users with a query. + /// Invalidate SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser() + public virtual Task SamlInvalidateAsync(SamlInvalidateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new QueryUserRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, QueryUserResponse, QueryUserRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find users with a query. + /// Invalidate SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser(Action> configureRequest) + public virtual Task SamlInvalidateAsync(CancellationToken cancellationToken = default) { - var descriptor = new QueryUserRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new SamlInvalidateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, QueryUserResponse, QueryUserRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find users with a query. + /// Invalidate SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submit a SAML LogoutRequest message to Elasticsearch for consumption. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// The logout request comes from the SAML IdP during an IdP initiated Single Logout. + /// The custom web application can use this API to have Elasticsearch process the LogoutRequest. + /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. + /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor) + public virtual Task SamlInvalidateAsync(Action configureRequest, CancellationToken cancellationToken = default) { + var descriptor = new SamlInvalidateRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser() + public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequest request) { - var descriptor = new QueryUserRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual QueryUserResponse QueryUser(Action configureRequest) + public virtual Task SamlLogoutAsync(SamlLogoutRequest request, CancellationToken cancellationToken = default) { - var descriptor = new QueryUserRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Find users with a query. + /// Logout of SAML. + /// + /// + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SamlLogoutResponse SamlLogout() { - var descriptor = new QueryUserRequestDescriptor(); + var descriptor = new SamlLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryUserAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SamlLogoutResponse SamlLogout(Action configureRequest) { - var descriptor = new QueryUserRequestDescriptor(); + var descriptor = new SamlLogoutRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, QueryUserResponse, QueryUserRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SamlLogoutAsync(SamlLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) + public virtual Task SamlLogoutAsync(CancellationToken cancellationToken = default) { - var descriptor = new QueryUserRequestDescriptor(); + var descriptor = new SamlLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Find users with a query. + /// Logout of SAML. /// /// - /// Get information for users in a paginated manner. - /// You can optionally filter the results with a query. + /// Submits a request to invalidate an access token and refresh token. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. + /// + /// + /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. + /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task QueryUserAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SamlLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new QueryUserRequestDescriptor(); + var descriptor = new SamlLogoutRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest request) + public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlPrepareAuthenticationRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequest request, CancellationToken cancellationToken = default) + public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequestDescriptor descriptor) + public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlPrepareAuthenticationRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlAuthenticateResponse SamlAuthenticate() + public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication() { - var descriptor = new SamlAuthenticateRequestDescriptor(); + var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlAuthenticateResponse SamlAuthenticate(Action configureRequest) + public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(Action configureRequest) { - var descriptor = new SamlAuthenticateRequestDescriptor(); + var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlAuthenticateAsync(CancellationToken cancellationToken = default) + public virtual Task SamlPrepareAuthenticationAsync(CancellationToken cancellationToken = default) { - var descriptor = new SamlAuthenticateRequestDescriptor(); + var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Authenticate SAML. + /// Prepare SAML authentication. + /// + /// + /// Create a SAML authentication request (<AuthnRequest>) as a URL string based on the configuration of the respective SAML realm in Elasticsearch. + /// + /// + /// NOTE: This API is intended for use by custom web applications other than Kibana. + /// If you are using Kibana, refer to the documentation for configuring SAML single-sign-on on the Elastic Stack. /// /// - /// Submits a SAML response message to Elasticsearch for consumption. + /// This API returns a URL pointing to the SAML Identity Provider. + /// You can use the URL to redirect the browser of the user in order to continue the authentication process. + /// The URL includes a single parameter named SAMLRequest, which contains a SAML Authentication request that is deflated and Base64 encoded. + /// If the configuration dictates that SAML authentication requests should be signed, the URL has two extra parameters named SigAlg and Signature. + /// These parameters contain the algorithm used for the signature and the signature value itself. + /// It also returns a random string that uniquely identifies this SAML Authentication request. + /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SamlPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SamlAuthenticateRequestDescriptor(); + var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutRequest request) + public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SamlServiceProviderMetadataRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequest request, CancellationToken cancellationToken = default) + public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutRequestDescriptor descriptor) + public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SamlServiceProviderMetadataRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlCompleteLogoutResponse SamlCompleteLogout() + public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realmName) { - var descriptor = new SamlCompleteLogoutRequestDescriptor(); + var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlCompleteLogoutResponse SamlCompleteLogout(Action configureRequest) + public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realmName, Action configureRequest) { - var descriptor = new SamlCompleteLogoutRequestDescriptor(); + var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlCompleteLogoutAsync(CancellationToken cancellationToken = default) + public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realmName, CancellationToken cancellationToken = default) { - var descriptor = new SamlCompleteLogoutRequestDescriptor(); + var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Logout of SAML completely. + /// Create SAML service provider metadata. /// /// - /// Verifies the logout response sent from the SAML IdP. + /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// + /// + /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. + /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlCompleteLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realmName, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SamlCompleteLogoutRequestDescriptor(); + var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequest request) + public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfilesRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlInvalidateAsync(SamlInvalidateRequest request, CancellationToken cancellationToken = default) + public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequestDescriptor descriptor) + public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfilesRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// Get suggestions for user profiles that match specified search criteria. + /// + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlInvalidateResponse SamlInvalidate() + public virtual SuggestUserProfilesResponse SuggestUserProfiles() { - var descriptor = new SamlInvalidateRequestDescriptor(); + var descriptor = new SuggestUserProfilesRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlInvalidateResponse SamlInvalidate(Action configureRequest) + public virtual SuggestUserProfilesResponse SuggestUserProfiles(Action configureRequest) { - var descriptor = new SamlInvalidateRequestDescriptor(); + var descriptor = new SuggestUserProfilesRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlInvalidateAsync(SamlInvalidateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlInvalidateAsync(CancellationToken cancellationToken = default) + public virtual Task SuggestUserProfilesAsync(CancellationToken cancellationToken = default) { - var descriptor = new SamlInvalidateRequestDescriptor(); + var descriptor = new SuggestUserProfilesRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Invalidate SAML. + /// Suggest a user profile. + /// + /// + /// Get suggestions for user profiles that match specified search criteria. /// /// - /// Submits a SAML LogoutRequest message to Elasticsearch for consumption. + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlInvalidateAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SuggestUserProfilesAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SamlInvalidateRequestDescriptor(); + var descriptor = new SuggestUserProfilesRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Logout of SAML. + /// Update an API key. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. + /// + /// + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequest request) + public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Logout of SAML. + /// Update an API key. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. + /// + /// + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. + /// + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlLogoutAsync(SamlLogoutRequest request, CancellationToken cancellationToken = default) + public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Logout of SAML. + /// Update an API key. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Logout of SAML. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. + /// + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlLogoutResponse SamlLogout() + public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor descriptor) { - var descriptor = new SamlLogoutRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor); } /// /// - /// Logout of SAML. + /// Update an API key. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. + /// + /// + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. + /// + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlLogoutResponse SamlLogout(Action configureRequest) + public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new SamlLogoutRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new UpdateApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor); } /// /// - /// Logout of SAML. + /// Update an API key. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlLogoutAsync(SamlLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Logout of SAML. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlLogoutAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlLogoutRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Logout of SAML. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. /// /// - /// Submits a request to invalidate an access token and refresh token. + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new SamlLogoutRequestDescriptor(); + var descriptor = new UpdateApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor); } /// /// - /// Prepare SAML authentication. + /// Update an API key. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlPrepareAuthenticationRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Prepare SAML authentication. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Prepare SAML authentication. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlPrepareAuthenticationRequestDescriptor descriptor) + public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Prepare SAML authentication. + /// Update an API key. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. + /// + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication() + public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); + var descriptor = new UpdateApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Prepare SAML authentication. + /// Update an API key. + /// + /// + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. + /// + /// + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. + /// + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(Action configureRequest) + public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { - var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); + var descriptor = new UpdateApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Prepare SAML authentication. + /// Update an API key. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Prepare SAML authentication. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlPrepareAuthenticationAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Prepare SAML authentication. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. /// /// - /// Creates a SAML authentication request (<AuthnRequest>) as a URL string, based on the configuration of the respective SAML realm in Elasticsearch. + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new SamlPrepareAuthenticationRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create SAML service provider metadata. + /// Update an API key. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SamlServiceProviderMetadataRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Create SAML service provider metadata. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Create SAML service provider metadata. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SamlServiceProviderMetadataRequestDescriptor descriptor) + public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { + var descriptor = new UpdateApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create SAML service provider metadata. + /// Update an API key. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realmName) - { - var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Create SAML service provider metadata. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realmName, Action configureRequest) + public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); + var descriptor = new UpdateApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create SAML service provider metadata. + /// Update an API key. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Create SAML service provider metadata. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realmName, CancellationToken cancellationToken = default) - { - var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Create SAML service provider metadata. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. /// /// - /// Generate SAML metadata for a SAML 2.0 Service Provider. + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realmName, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new SamlServiceProviderMetadataRequestDescriptor(realmName); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Suggest a user profile. + /// Update an API key. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfilesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Suggest a user profile. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Suggest a user profile. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfilesRequestDescriptor descriptor) + public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { + var descriptor = new UpdateApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Suggest a user profile. + /// Update an API key. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// Update attributes of an existing API key. + /// This API supports updates to an API key's access scope, expiration, and metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SuggestUserProfilesResponse SuggestUserProfiles() - { - var descriptor = new SuggestUserProfilesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Suggest a user profile. + /// To use this API, you must have at least the manage_own_api_key cluster privilege. + /// Users can only update API keys that they created or that were granted to them. + /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. The owner user’s credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SuggestUserProfilesResponse SuggestUserProfiles(Action configureRequest) - { - var descriptor = new SuggestUserProfilesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Suggest a user profile. + /// Use this API to update API keys created by the create API key or grant API Key APIs. + /// If you need to apply the same update to many API keys, you can use the bulk update API keys API to reduce overhead. + /// It's not possible to update expired API keys or API keys that have been invalidated by the invalidate API key API. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// The access scope of an API key is derived from the role_descriptors you specify in the request and a snapshot of the owner user's permissions at the time of the request. + /// The snapshot of the owner's permissions is updated automatically on every call. + /// + /// + /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. + /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { + var descriptor = new UpdateApiKeyRequestDescriptor(id); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Suggest a user profile. + /// Update a cross-cluster API key. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SuggestUserProfilesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Suggest a user profile. + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. /// /// - /// Get suggestions for user profiles that match specified search criteria. + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SuggestUserProfilesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SuggestUserProfilesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Update an API key. + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest request, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor descriptor) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor); + return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor); + return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor); + return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor descriptor) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, UpdateApiKeyResponse, UpdateApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. + /// + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Update an API key. + /// Update a cross-cluster API key. /// /// - /// Updates attributes of an existing API key. - /// Users can only update API keys that they created or that were granted to them. - /// Use this API to update API keys created by the create API Key or grant API Key APIs. - /// If you need to apply the same update to many API keys, you can use bulk update API Keys to reduce overhead. - /// It’s not possible to update expired API keys, or API keys that have been invalidated by invalidate API Key. - /// This API supports updates to an API key’s access scope and metadata. - /// The access scope of an API key is derived from the role_descriptors you specify in the request, and a snapshot of the owner user’s permissions at the time of the request. - /// The snapshot of the owner’s permissions is updated automatically on every call. - /// If you don’t specify role_descriptors in the request, a call to this API might still change the API key’s access scope. - /// This change can occur if the owner user’s permissions have changed since the API key was created or last modified. - /// To update another user’s API key, use the run_as feature to submit a request on behalf of another user. - /// IMPORTANT: It’s not possible to use an API key as the authentication credential for this API. - /// To update an API key, the owner user’s credentials are required. + /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// + /// + /// To use this API, you must have at least the manage_security cluster privilege. + /// Users can only update API keys that they created. + /// To update another user's API key, use the run_as feature to submit a request on behalf of another user. + /// + /// + /// IMPORTANT: It's not possible to use an API key as the authentication credential for this API. + /// To update an API key, the owner user's credentials are required. + /// + /// + /// It's not possible to update expired API keys, or API keys that have been invalidated by the invalidate API key API. + /// + /// + /// This API supports updates to an API key's access scope, metadata, and expiration. + /// The owner user's information, such as the username and realm, is also updated automatically on every call. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateApiKeyRequestDescriptor(id); + var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequest request) + public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(UpdateSettingsRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) + public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); + return DoRequest, UpdateSettingsResponse, UpdateSettingsRequestParameters>(descriptor); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) + public virtual UpdateSettingsResponse UpdateSettings() { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); + return DoRequest, UpdateSettingsResponse, UpdateSettingsRequestParameters>(descriptor); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual UpdateSettingsResponse UpdateSettings(Action> configureRequest) { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor); + return DoRequest, UpdateSettingsResponse, UpdateSettingsRequestParameters>(descriptor); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) + public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) + public virtual UpdateSettingsResponse UpdateSettings() { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual UpdateSettingsResponse UpdateSettings(Action configureRequest) { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(UpdateSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateSettingsResponse, UpdateSettingsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(CancellationToken cancellationToken = default) { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateSettingsResponse, UpdateSettingsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, UpdateCrossClusterApiKeyResponse, UpdateCrossClusterApiKeyRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateSettingsResponse, UpdateSettingsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(UpdateSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(CancellationToken cancellationToken = default) { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Update a cross-cluster API key. + /// Update security index settings. /// /// - /// Update the attributes of an existing cross-cluster API key, which is used for API key based remote cluster access. + /// Update the user-configurable settings for the security internal index (.security and associated indices). Only a subset of settings are allowed to be modified. This includes index.auto_expand_replicas and index.number_of_replicas. + /// + /// + /// NOTE: If index.auto_expand_replicas is set, index.number_of_replicas will be ignored during updates. + /// + /// + /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. + /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateCrossClusterApiKeyRequestDescriptor(id); + var descriptor = new UpdateSettingsRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -9748,7 +15186,35 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserProfileDataRequest request) @@ -9764,7 +15230,35 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserPro /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(UpdateUserProfileDataRequest request, CancellationToken cancellationToken = default) { @@ -9779,7 +15273,35 @@ public virtual Task UpdateUserProfileDataAsync(Up /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserProfileDataRequestDescriptor descriptor) @@ -9795,7 +15317,35 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserPro /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid) @@ -9812,7 +15362,35 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid) /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid, Action configureRequest) @@ -9830,7 +15408,35 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid, A /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(UpdateUserProfileDataRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9845,7 +15451,35 @@ public virtual Task UpdateUserProfileDataAsync(Up /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(string uid, CancellationToken cancellationToken = default) { @@ -9861,7 +15495,35 @@ public virtual Task UpdateUserProfileDataAsync(st /// /// Update specific data for the user profile that is associated with a unique ID. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. + /// Individual users and external applications should not call this API directly. + /// Elastic reserves the right to change or remove this feature in future releases without prior notice. + /// + /// + /// To use this API, you must have one of the following privileges: + /// + /// + /// + /// + /// The manage_user_profile cluster privilege. + /// + /// + /// + /// + /// The update_profile_data global privilege for the namespaces that are referenced in the request. + /// + /// + /// + /// + /// This API updates the labels and data fields of an existing user profile document with JSON objects. + /// New keys and their values are added to the profile document and conflicting keys are replaced by data that's included in the request. + /// + /// + /// For both labels and data, content is namespaced by the top-level fields. + /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs new file mode 100644 index 00000000000..ac004dcf4c8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs @@ -0,0 +1,780 @@ +// 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.Simulate; + +public partial class SimulateNamespacedClient : NamespacedClientProxy +{ + /// + /// + /// Initializes a new instance of the class for mocking. + /// + /// + protected SimulateNamespacedClient() : base() + { + } + + internal SimulateNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(IngestRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(IngestRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(IngestRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, IngestResponse, IngestRequestParameters>(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index) + { + var descriptor = new IngestRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequest, IngestResponse, IngestRequestParameters>(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) + { + var descriptor = new IngestRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IngestResponse, IngestRequestParameters>(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest() + { + var descriptor = new IngestRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, IngestResponse, IngestRequestParameters>(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(Action> configureRequest) + { + var descriptor = new IngestRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IngestResponse, IngestRequestParameters>(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(IngestRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index) + { + var descriptor = new IngestRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) + { + var descriptor = new IngestRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest() + { + var descriptor = new IngestRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IngestResponse Ingest(Action configureRequest) + { + var descriptor = new IngestRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(IngestRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, IngestResponse, IngestRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync, IngestResponse, IngestRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IngestResponse, IngestRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, IngestResponse, IngestRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IngestResponse, IngestRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(IngestRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Simulate data ingestion. + /// Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index. + /// + /// + /// This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch. + /// + /// + /// The API runs the default and final pipeline for that index against a set of documents provided in the body of the request. + /// If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would. + /// No data is indexed into Elasticsearch. + /// Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation. + /// The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result. + /// + /// + /// This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline. + /// The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index. + /// + /// + /// By default, the pipeline definitions that are currently in the system are used. + /// However, you can supply substitute pipeline definitions in the body of the request. + /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IngestAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IngestRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs index 10afe02d0cf..0155e78e786 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs @@ -45,7 +45,7 @@ internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest request) @@ -60,7 +60,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest re /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDescriptor descriptor) @@ -89,7 +89,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDes /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policyId) @@ -105,7 +105,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest) @@ -122,7 +122,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -136,7 +136,7 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, CancellationToken cancellationToken = default) { @@ -151,7 +151,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -167,7 +167,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest request) @@ -182,7 +182,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(ExecuteLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -196,7 +196,7 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequestDescriptor descriptor) @@ -211,7 +211,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policyId) @@ -227,7 +227,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elastic /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest) @@ -244,7 +244,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elastic /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(ExecuteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -258,7 +258,7 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, CancellationToken cancellationToken = default) { @@ -273,7 +273,7 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -289,7 +289,7 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest request) @@ -304,7 +304,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(ExecuteRetentionRequest request, CancellationToken cancellationToken = default) { @@ -318,7 +318,7 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequestDescriptor descriptor) @@ -333,7 +333,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention() @@ -349,7 +349,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention() /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(Action configureRequest) @@ -366,7 +366,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(ExecuteRetentionRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -380,7 +380,7 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(CancellationToken cancellationToken = default) { @@ -395,7 +395,7 @@ public virtual Task ExecuteRetentionAsync(Cancellation /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -410,7 +410,7 @@ public virtual Task ExecuteRetentionAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) @@ -424,7 +424,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(GetLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -437,7 +437,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequest /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor descriptor) @@ -451,7 +451,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor d /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.Names? policyId) @@ -466,7 +466,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.Names? policyId, Action configureRequest) @@ -482,7 +482,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle() @@ -497,7 +497,7 @@ public virtual GetLifecycleResponse GetLifecycle() /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Action configureRequest) @@ -513,7 +513,7 @@ public virtual GetLifecycleResponse GetLifecycle(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(GetLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -526,7 +526,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequestD /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Names? policyId, CancellationToken cancellationToken = default) { @@ -540,7 +540,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Names? policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -555,7 +555,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(CancellationToken cancellationToken = default) { @@ -569,7 +569,7 @@ public virtual Task GetLifecycleAsync(CancellationToken ca /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -584,7 +584,7 @@ public virtual Task GetLifecycleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(GetStatsRequest request) @@ -598,7 +598,7 @@ public virtual GetStatsResponse GetStats(GetStatsRequest request) /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(GetStatsRequest request, CancellationToken cancellationToken = default) { @@ -611,7 +611,7 @@ public virtual Task GetStatsAsync(GetStatsRequest request, Can /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(GetStatsRequestDescriptor descriptor) @@ -625,7 +625,7 @@ public virtual GetStatsResponse GetStats(GetStatsRequestDescriptor descriptor) /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats() @@ -640,7 +640,7 @@ public virtual GetStatsResponse GetStats() /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(Action configureRequest) @@ -656,7 +656,7 @@ public virtual GetStatsResponse GetStats(Action confi /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(GetStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -669,7 +669,7 @@ public virtual Task GetStatsAsync(GetStatsRequestDescriptor de /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(CancellationToken cancellationToken = default) { @@ -683,7 +683,7 @@ public virtual Task GetStatsAsync(CancellationToken cancellati /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -697,7 +697,7 @@ public virtual Task GetStatsAsync(Action /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) @@ -710,7 +710,7 @@ public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetSlmStatusRequest request, CancellationToken cancellationToken = default) { @@ -722,7 +722,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequest req /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequestDescriptor descriptor) @@ -735,7 +735,7 @@ public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequestDescriptor desc /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus() @@ -749,7 +749,7 @@ public virtual GetSlmStatusResponse GetStatus() /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(Action configureRequest) @@ -764,7 +764,7 @@ public virtual GetSlmStatusResponse GetStatus(Action /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetSlmStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -776,7 +776,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequestDesc /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(CancellationToken cancellationToken = default) { @@ -789,7 +789,7 @@ public virtual Task GetStatusAsync(CancellationToken cance /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -806,7 +806,7 @@ public virtual Task GetStatusAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) @@ -822,7 +822,7 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(PutLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -837,7 +837,7 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequest /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor descriptor) @@ -853,7 +853,7 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor d /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policyId) @@ -870,7 +870,7 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest) @@ -888,7 +888,7 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(PutLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -903,7 +903,7 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequestD /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, CancellationToken cancellationToken = default) { @@ -919,7 +919,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -935,7 +935,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(StartSlmRequest request) @@ -950,7 +950,7 @@ public virtual StartSlmResponse Start(StartSlmRequest request) /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(StartSlmRequest request, CancellationToken cancellationToken = default) { @@ -964,7 +964,7 @@ public virtual Task StartAsync(StartSlmRequest request, Cancel /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(StartSlmRequestDescriptor descriptor) @@ -979,7 +979,7 @@ public virtual StartSlmResponse Start(StartSlmRequestDescriptor descriptor) /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start() @@ -995,7 +995,7 @@ public virtual StartSlmResponse Start() /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(Action configureRequest) @@ -1012,7 +1012,7 @@ public virtual StartSlmResponse Start(Action configur /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(StartSlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1026,7 +1026,7 @@ public virtual Task StartAsync(StartSlmRequestDescriptor descr /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(CancellationToken cancellationToken = default) { @@ -1041,7 +1041,7 @@ public virtual Task StartAsync(CancellationToken cancellationT /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1063,7 +1063,7 @@ public virtual Task StartAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(StopSlmRequest request) @@ -1084,7 +1084,7 @@ public virtual StopSlmResponse Stop(StopSlmRequest request) /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(StopSlmRequest request, CancellationToken cancellationToken = default) { @@ -1104,7 +1104,7 @@ public virtual Task StopAsync(StopSlmRequest request, Cancellat /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(StopSlmRequestDescriptor descriptor) @@ -1125,7 +1125,7 @@ public virtual StopSlmResponse Stop(StopSlmRequestDescriptor descriptor) /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop() @@ -1147,7 +1147,7 @@ public virtual StopSlmResponse Stop() /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(Action configureRequest) @@ -1170,7 +1170,7 @@ public virtual StopSlmResponse Stop(Action configureRe /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(StopSlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1190,7 +1190,7 @@ public virtual Task StopAsync(StopSlmRequestDescriptor descript /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(CancellationToken cancellationToken = default) { @@ -1211,7 +1211,7 @@ public virtual Task StopAsync(CancellationToken cancellationTok /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index ad3a2767b86..d696321c120 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -44,7 +44,7 @@ internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequest request) @@ -58,7 +58,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequ /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(CleanupRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequ /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name name) @@ -100,7 +100,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elast /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -116,7 +116,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elast /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(CleanupRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -129,7 +129,7 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -143,7 +143,7 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -158,7 +158,7 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) @@ -172,7 +172,7 @@ public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -185,7 +185,7 @@ public virtual Task CloneAsync(CloneSnapshotRequest reque /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(CloneSnapshotRequestDescriptor descriptor) @@ -199,7 +199,7 @@ public virtual CloneSnapshotResponse Clone(CloneSnapshotRequestDescriptor descri /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot) @@ -214,7 +214,7 @@ public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name re /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot, Action configureRequest) @@ -230,7 +230,7 @@ public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name re /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -243,7 +243,7 @@ public virtual Task CloneAsync(CloneSnapshotRequestDescri /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot, CancellationToken cancellationToken = default) { @@ -257,7 +257,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -272,7 +272,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) @@ -286,7 +286,7 @@ public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -299,7 +299,7 @@ public virtual Task CreateAsync(CreateSnapshotRequest re /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(CreateSnapshotRequestDescriptor descriptor) @@ -313,7 +313,7 @@ public virtual CreateSnapshotResponse Create(CreateSnapshotRequestDescriptor des /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -328,7 +328,7 @@ public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -344,7 +344,7 @@ public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -357,7 +357,7 @@ public virtual Task CreateAsync(CreateSnapshotRequestDes /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -371,7 +371,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -515,7 +515,7 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) @@ -528,7 +528,7 @@ public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -540,7 +540,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequest re /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequestDescriptor descriptor) @@ -553,7 +553,7 @@ public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequestDescriptor des /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -567,7 +567,7 @@ public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -582,7 +582,7 @@ public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -594,7 +594,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequestDes /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -607,7 +607,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -623,7 +623,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) @@ -638,7 +638,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -652,7 +652,7 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequestDescriptor descriptor) @@ -667,7 +667,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elasticsearch.Names name) @@ -683,7 +683,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elastic /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -700,7 +700,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elastic /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -714,7 +714,7 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -729,7 +729,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -743,7 +743,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(GetSnapshotRequest request) @@ -756,7 +756,7 @@ public virtual GetSnapshotResponse Get(GetSnapshotRequest request) /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -768,7 +768,7 @@ public virtual Task GetAsync(GetSnapshotRequest request, Ca /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(GetSnapshotRequestDescriptor descriptor) @@ -779,232 +779,1338 @@ public virtual GetSnapshotResponse Get(GetSnapshotRequestDescriptor descriptor) /// /// - /// Get snapshot information. + /// Get snapshot information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) + { + var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest) + { + var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, CancellationToken cancellationToken = default) + { + var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetRepositoryAsync(GetRepositoryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetRepositoryResponse GetRepository(GetRepositoryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch.Names? name) + { + var descriptor = new GetRepositoryRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) + { + var descriptor = new GetRepositoryRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetRepositoryResponse GetRepository() + { + var descriptor = new GetRepositoryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetRepositoryResponse GetRepository(Action configureRequest) + { + var descriptor = new GetRepositoryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetRepositoryAsync(GetRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) + { + var descriptor = new GetRepositoryRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRepositoryRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetRepositoryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetRepositoryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get snapshot repository information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetRepositoryAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRepositoryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryAnalyzeResponse RepositoryAnalyze(RepositoryAnalyzeRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RepositoryAnalyzeAsync(RepositoryAnalyzeRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryAnalyzeResponse RepositoryAnalyze(RepositoryAnalyzeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryAnalyzeResponse RepositoryAnalyze(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new RepositoryAnalyzeRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RepositoryAnalyzeResponse RepositoryAnalyze(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new RepositoryAnalyzeRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RepositoryAnalyzeAsync(RepositoryAnalyzeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. + /// + /// + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. + /// + /// + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. + /// + /// + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. + /// + /// + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. + /// + /// + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. + /// + /// + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: + /// + /// + /// + /// + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. + /// + /// + /// + /// + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. + /// + /// + /// + /// + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. + /// + /// + /// + /// + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. + /// + /// + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. + /// + /// + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. + /// + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get snapshot information. + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get snapshot information. + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetAsync(GetSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RepositoryAnalyzeAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { + var descriptor = new RepositoryAnalyzeRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get snapshot information. + /// Analyze a snapshot repository. + /// Analyze the performance characteristics and any incorrect behaviour found in a repository. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, CancellationToken cancellationToken = default) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get snapshot information. + /// The response exposes implementation details of the analysis which may change from version to version. + /// The response body format is therefore not considered stable and may be different in newer versions. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSnapshotRequestDescriptor(repository, snapshot); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get snapshot repository information. + /// There are a large number of third-party storage systems available, not all of which are suitable for use as a snapshot repository by Elasticsearch. + /// Some storage systems behave incorrectly, or perform poorly, especially when accessed concurrently by multiple clients as the nodes of an Elasticsearch cluster do. This API performs a collection of read and write operations on your repository which are designed to detect incorrect behaviour and to measure the performance characteristics of your storage system. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Get snapshot repository information. + /// The default values for the parameters are deliberately low to reduce the impact of running an analysis inadvertently and to provide a sensible starting point for your investigations. + /// Run your first analysis with the default parameter values to check for simple problems. + /// If successful, run a sequence of increasingly large analyses until you encounter a failure or you reach a blob_count of at least 2000, a max_blob_size of at least 2gb, a max_total_data_size of at least 1tb, and a register_operation_count of at least 100. + /// Always specify a generous timeout, possibly 1h or longer, to allow time for each analysis to run to completion. + /// Perform the analyses using a multi-node cluster of a similar size to your production cluster so that it can detect any problems that only arise when the repository is accessed by many nodes at once. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(GetRepositoryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Get snapshot repository information. + /// If the analysis fails, Elasticsearch detected that your repository behaved unexpectedly. + /// This usually means you are using a third-party storage system with an incorrect or incompatible implementation of the API it claims to support. + /// If so, this storage system is not suitable for use as a snapshot repository. + /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRepositoryResponse GetRepository(GetRepositoryRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get snapshot repository information. + /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. + /// You can use this information to determine the performance of your storage system. + /// If any operation fails or returns an incorrect result, the API returns an error. + /// If the API returns an error, it may not have removed all the data it wrote to the repository. + /// The error will indicate the location of any leftover data and this path is also recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch.Names? name) - { - var descriptor = new GetRepositoryRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get snapshot repository information. + /// If the connection from your client to Elasticsearch is closed while the client is waiting for the result of the analysis, the test is cancelled. + /// Some clients are configured to close their connection if no response is received within a certain timeout. + /// An analysis takes a long time to complete so you might need to relax any such client-side timeouts. + /// On cancellation the analysis attempts to clean up the data it was writing, but it may not be able to remove it all. + /// The path to the leftover data is recorded in the Elasticsearch logs. + /// You should verify that this location has been cleaned up correctly. + /// If there is still leftover data at the specified location, you should manually remove it. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) - { - var descriptor = new GetRepositoryRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get snapshot repository information. + /// If the analysis is successful then it detected no incorrect behaviour, but this does not mean that correct behaviour is guaranteed. + /// The analysis attempts to detect common bugs but it does not offer 100% coverage. + /// Additionally, it does not test the following: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRepositoryResponse GetRepository() - { - var descriptor = new GetRepositoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get snapshot repository information. + /// Your repository must perform durable writes. Once a blob has been written it must remain in place until it is deleted, even after a power loss or similar disaster. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetRepositoryResponse GetRepository(Action configureRequest) - { - var descriptor = new GetRepositoryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get snapshot repository information. + /// Your repository must not suffer from silent data corruption. Once a blob has been written, its contents must remain unchanged until it is deliberately modified or deleted. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(GetRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get snapshot repository information. + /// Your repository must behave correctly even if connectivity from the cluster is disrupted. Reads and writes may fail in this case, but they must not return incorrect results. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get snapshot repository information. + /// IMPORTANT: An analysis writes a substantial amount of data to your repository and then reads it back again. + /// This consumes bandwidth on the network between the cluster and the repository, and storage space and I/O bandwidth on the repository itself. + /// You must ensure this load does not affect other users of these systems. + /// Analyses respect the repository settings max_snapshot_bytes_per_sec and max_restore_bytes_per_sec if available and the cluster setting indices.recovery.max_bytes_per_sec which you can use to limit the bandwidth they consume. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get snapshot repository information. + /// NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetRepositoryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetRepositoryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get snapshot repository information. + /// NOTE: Different versions of Elasticsearch may perform different checks for repository compatibility, with newer versions typically being stricter than older ones. + /// A storage system that passes repository analysis with one version of Elasticsearch may fail with a different version. + /// This indicates it behaves incorrectly in ways that the former version did not detect. + /// You must work with the supplier of your storage system to address the incompatibilities detected by the repository analysis API in any version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// NOTE: This API may not work correctly in a mixed-version cluster. + /// + /// + /// Implementation details + /// + /// + /// NOTE: This section of documentation describes how the repository analysis API works in this version of Elasticsearch, but you should expect the implementation to vary between versions. The request parameters and response format depend on details of the implementation so may also be different in newer versions. + /// + /// + /// The analysis comprises a number of blob-level tasks, as set by the blob_count parameter and a number of compare-and-exchange operations on linearizable registers, as set by the register_operation_count parameter. + /// These tasks are distributed over the data and master-eligible nodes in the cluster for execution. + /// + /// + /// For most blob-level tasks, the executing node first writes a blob to the repository and then instructs some of the other nodes in the cluster to attempt to read the data it just wrote. + /// The size of the blob is chosen randomly, according to the max_blob_size and max_total_data_size parameters. + /// If any of these reads fails then the repository does not implement the necessary read-after-write semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will instruct some of its peers to attempt to read the data before the writing process completes. + /// These reads are permitted to fail, but must not return partial data. + /// If any read returns partial data then the repository does not implement the necessary atomicity semantics that Elasticsearch requires. + /// + /// + /// For some blob-level tasks, the executing node will overwrite the blob while its peers are reading it. + /// In this case the data read may come from either the original or the overwritten blob, but the read operation must not return partial data or a mix of data from the two blobs. + /// If any of these reads returns partial data or a mix of the two blobs then the repository does not implement the necessary atomicity semantics that Elasticsearch requires for overwrites. + /// + /// + /// The executing node will use a variety of different methods to write the blob. + /// For instance, where applicable, it will use both single-part and multi-part uploads. + /// Similarly, the reading nodes will use a variety of different methods to read the data back again. + /// For instance they may read the entire blob from start to end or may read only a subset of the data. + /// + /// + /// For some blob-level tasks, the executing node will cancel the write before it is complete. + /// In this case, it still instructs some of the other nodes in the cluster to attempt to read the blob but all of these reads must fail to find the blob. + /// + /// + /// Linearizable registers are special blobs that Elasticsearch manipulates using an atomic compare-and-exchange operation. + /// This operation ensures correct and strongly-consistent behavior even when the blob is accessed by multiple nodes at the same time. + /// The detailed implementation of the compare-and-exchange operation on linearizable registers varies by repository type. + /// Repository analysis verifies that that uncontended compare-and-exchange operations on a linearizable register blob always succeed. + /// Repository analysis also verifies that contended operations either succeed or report the contention but do not return incorrect results. + /// If an operation fails due to contention, Elasticsearch retries the operation until it succeeds. + /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. + /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetRepositoryAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task RepositoryAnalyzeAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetRepositoryRequestDescriptor(); + var descriptor = new RepositoryAnalyzeRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -1066,7 +2172,7 @@ public virtual Task GetRepositoryAsync(Action /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(RepositoryVerifyIntegrityRequest request) @@ -1134,7 +2240,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Repos /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(RepositoryVerifyIntegrityRequest request, CancellationToken cancellationToken = default) { @@ -1201,7 +2307,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(RepositoryVerifyIntegrityRequestDescriptor descriptor) @@ -1269,7 +2375,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Repos /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elastic.Clients.Elasticsearch.Names name) @@ -1338,7 +2444,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elast /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -1408,7 +2514,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elast /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(RepositoryVerifyIntegrityRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1475,7 +2581,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -1543,7 +2649,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1578,7 +2684,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequest request) @@ -1612,7 +2718,7 @@ public virtual RestoreResponse Restore(RestoreRequest request) /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(RestoreRequest request, CancellationToken cancellationToken = default) { @@ -1645,7 +2751,7 @@ public virtual Task RestoreAsync(RestoreRequest request, Cancel /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) @@ -1679,7 +2785,7 @@ public virtual RestoreResponse Restore(RestoreRequestDescriptor /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -1714,7 +2820,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch. /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action> configureRequest) @@ -1750,7 +2856,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch. /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) @@ -1784,7 +2890,7 @@ public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -1819,7 +2925,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name reposi /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -1855,7 +2961,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name reposi /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(RestoreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1888,7 +2994,7 @@ public virtual Task RestoreAsync(RestoreRequestDescr /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -1922,7 +3028,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1957,7 +3063,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(RestoreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1990,7 +3096,7 @@ public virtual Task RestoreAsync(RestoreRequestDescriptor descr /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -2024,7 +3130,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2050,7 +3156,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) @@ -2075,7 +3181,7 @@ public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(SnapshotStatusRequest request, CancellationToken cancellationToken = default) { @@ -2099,7 +3205,7 @@ public virtual Task StatusAsync(SnapshotStatusRequest re /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(SnapshotStatusRequestDescriptor descriptor) @@ -2124,7 +3230,7 @@ public virtual SnapshotStatusResponse Status(SnapshotStatusRequestDescriptor des /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot) @@ -2150,7 +3256,7 @@ public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot, Action configureRequest) @@ -2177,7 +3283,7 @@ public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status() @@ -2203,7 +3309,7 @@ public virtual SnapshotStatusResponse Status() /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(Action configureRequest) @@ -2230,7 +3336,7 @@ public virtual SnapshotStatusResponse Status(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(SnapshotStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2254,7 +3360,7 @@ public virtual Task StatusAsync(SnapshotStatusRequestDes /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot, CancellationToken cancellationToken = default) { @@ -2279,7 +3385,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2305,7 +3411,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(CancellationToken cancellationToken = default) { @@ -2330,7 +3436,7 @@ public virtual Task StatusAsync(CancellationToken cancel /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2345,7 +3451,7 @@ public virtual Task StatusAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest request) @@ -2359,7 +3465,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(VerifyRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -2372,7 +3478,7 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequestDescriptor descriptor) @@ -2386,7 +3492,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elasticsearch.Name name) @@ -2401,7 +3507,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elastic /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2417,7 +3523,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elastic /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(VerifyRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2430,7 +3536,7 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2444,7 +3550,7 @@ public virtual Task VerifyRepositoryAsync(Elastic.Clie /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs index 11a328ffb04..8f72a0423c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -43,7 +43,7 @@ internal SqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) @@ -56,7 +56,7 @@ public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(ClearCursorRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequest req /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor desc /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor() @@ -95,7 +95,7 @@ public virtual ClearCursorResponse ClearCursor() /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(Action configureRequest) @@ -110,7 +110,7 @@ public virtual ClearCursorResponse ClearCursor(Action /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(ClearCursorRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequestDesc /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(CancellationToken cancellationToken = default) { @@ -135,7 +135,7 @@ public virtual Task ClearCursorAsync(CancellationToken canc /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -151,7 +151,22 @@ public virtual Task ClearCursorAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) @@ -166,7 +181,22 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(DeleteAsyncRequest request, CancellationToken cancellationToken = default) { @@ -180,7 +210,22 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequest req /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor descriptor) @@ -195,7 +240,22 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDesc /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id) @@ -211,7 +271,22 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -228,7 +303,22 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor descriptor) @@ -243,7 +333,22 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor desc /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id) @@ -259,7 +364,22 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -276,7 +396,22 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -290,7 +425,22 @@ public virtual Task DeleteAsyncAsync(DeleteAsync /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -305,7 +455,22 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -321,7 +486,22 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -335,7 +515,22 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDesc /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -350,7 +545,22 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// Delete an async SQL search or a stored synchronous SQL search. /// If the search is still running, the API cancels it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the following users can use this API to delete a search: + /// + /// + /// + /// + /// Users with the cancel_task cluster privilege. + /// + /// + /// + /// + /// The user who first submitted the search. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -365,7 +575,10 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) @@ -379,7 +592,10 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(GetAsyncRequest request, CancellationToken cancellationToken = default) { @@ -392,7 +608,10 @@ public virtual Task GetAsyncAsync(GetAsyncRequest request, Can /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) @@ -406,7 +625,10 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) @@ -421,7 +643,10 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -437,7 +662,10 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) @@ -451,7 +679,10 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) @@ -466,7 +697,10 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -482,7 +716,10 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Ac /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -495,7 +732,10 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDe /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -509,7 +749,10 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -524,7 +767,10 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -537,7 +783,10 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor de /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -551,7 +800,10 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// Get async SQL search results. /// Get the current status and available results for an async SQL search or stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -566,7 +818,7 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest request) @@ -580,7 +832,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest reque /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequest request, CancellationToken cancellationToken = default) { @@ -593,7 +845,7 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescriptor descriptor) @@ -607,7 +859,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRe /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id) @@ -622,7 +874,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -638,7 +890,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescriptor descriptor) @@ -652,7 +904,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescri /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id) @@ -667,7 +919,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -683,7 +935,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -696,7 +948,7 @@ public virtual Task GetAsyncStatusAsync(GetAs /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -710,7 +962,7 @@ public virtual Task GetAsyncStatusAsync(Elast /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -725,7 +977,7 @@ public virtual Task GetAsyncStatusAsync(Elast /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -738,7 +990,7 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -752,7 +1004,7 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -767,7 +1019,7 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequest request) @@ -781,7 +1033,7 @@ public virtual QueryResponse Query(QueryRequest request) /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(QueryRequest request, CancellationToken cancellationToken = default) { @@ -794,7 +1046,7 @@ public virtual Task QueryAsync(QueryRequest request, Cancellation /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequestDescriptor descriptor) @@ -808,7 +1060,7 @@ public virtual QueryResponse Query(QueryRequestDescriptor /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query() @@ -823,7 +1075,7 @@ public virtual QueryResponse Query() /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(Action> configureRequest) @@ -839,7 +1091,7 @@ public virtual QueryResponse Query(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequestDescriptor descriptor) @@ -853,7 +1105,7 @@ public virtual QueryResponse Query(QueryRequestDescriptor descriptor) /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query() @@ -868,7 +1120,7 @@ public virtual QueryResponse Query() /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(Action configureRequest) @@ -884,7 +1136,7 @@ public virtual QueryResponse Query(Action configureReque /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -897,7 +1149,7 @@ public virtual Task QueryAsync(QueryRequestDescriptor< /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -911,7 +1163,7 @@ public virtual Task QueryAsync(CancellationToken cance /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -926,7 +1178,7 @@ public virtual Task QueryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -939,7 +1191,7 @@ public virtual Task QueryAsync(QueryRequestDescriptor descriptor, /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -953,7 +1205,7 @@ public virtual Task QueryAsync(CancellationToken cancellationToke /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -967,8 +1219,9 @@ public virtual Task QueryAsync(Action con /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequest request) @@ -981,8 +1234,9 @@ public virtual TranslateResponse Translate(TranslateRequest request) /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(TranslateRequest request, CancellationToken cancellationToken = default) { @@ -994,8 +1248,9 @@ public virtual Task TranslateAsync(TranslateRequest request, /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor) @@ -1008,8 +1263,9 @@ public virtual TranslateResponse Translate(TranslateRequestDescriptor /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate() @@ -1023,8 +1279,9 @@ public virtual TranslateResponse Translate() /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(Action> configureRequest) @@ -1039,8 +1296,9 @@ public virtual TranslateResponse Translate(Action /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor) @@ -1053,8 +1311,9 @@ public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate() @@ -1068,8 +1327,9 @@ public virtual TranslateResponse Translate() /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(Action configureRequest) @@ -1084,8 +1344,9 @@ public virtual TranslateResponse Translate(Action co /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(TranslateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1097,8 +1358,9 @@ public virtual Task TranslateAsync(TranslateReques /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(CancellationToken cancellationToken = default) { @@ -1111,8 +1373,9 @@ public virtual Task TranslateAsync(CancellationTok /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1126,8 +1389,9 @@ public virtual Task TranslateAsync(Action /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(TranslateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1139,8 +1403,9 @@ public virtual Task TranslateAsync(TranslateRequestDescriptor /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(CancellationToken cancellationToken = default) { @@ -1153,8 +1418,9 @@ public virtual Task TranslateAsync(CancellationToken cancella /// /// Translate SQL into Elasticsearch queries. /// Translate an SQL search into a search API request containing Query DSL. + /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 8f7ca764fe7..09db9e200fc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -43,7 +43,29 @@ internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) @@ -56,7 +78,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(DeleteSynonymRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +112,29 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescriptor descriptor) @@ -81,7 +147,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymReque /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -95,7 +183,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -110,7 +220,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescriptor descriptor) @@ -123,7 +255,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescripto /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -137,7 +291,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -152,7 +328,29 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -164,7 +362,29 @@ public virtual Task DeleteSynonymAsync(DeleteS /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -177,7 +397,29 @@ public virtual Task DeleteSynonymAsync(Elastic /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -191,7 +433,29 @@ public virtual Task DeleteSynonymAsync(Elastic /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -203,7 +467,29 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -216,7 +502,29 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// /// Delete a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can only delete a synonyms set that is not in use by any index analyzer. + /// + /// + /// Synonyms sets can be used in synonym graph token filters and synonym token filters. + /// These synonym filters can be used as part of search analyzers. + /// + /// + /// Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open). + /// Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase. + /// + /// + /// If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available. + /// To prevent that, synonyms sets that are used in analyzers can't be deleted. + /// A delete request in this case will return a 400 response code. + /// + /// + /// To remove a synonyms set, you must first remove all indices that contain analyzers using it. + /// You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data. + /// Once finished, you can delete the index. + /// When the synonyms set is not used in analyzers, you will be able to delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -231,7 +539,7 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequest request) @@ -245,7 +553,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequ /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(DeleteSynonymRuleRequest request, CancellationToken cancellationToken = default) { @@ -258,7 +566,7 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequestDescriptor descriptor) @@ -272,7 +580,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequ /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -287,7 +595,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elast /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -303,7 +611,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elast /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(DeleteSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -316,7 +624,7 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -330,7 +638,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -344,7 +652,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) @@ -357,7 +665,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(GetSynonymRequest request, CancellationToken cancellationToken = default) { @@ -369,7 +677,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequest reques /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descriptor) @@ -382,7 +690,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescrip /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -396,7 +704,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -411,7 +719,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descriptor) @@ -424,7 +732,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descrip /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -438,7 +746,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -453,7 +761,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -465,7 +773,7 @@ public virtual Task GetSynonymAsync(GetSynonymReq /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -478,7 +786,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -492,7 +800,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -504,7 +812,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequestDescrip /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -517,7 +825,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -532,7 +840,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest request) @@ -546,7 +854,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest reque /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(GetSynonymRuleRequest request, CancellationToken cancellationToken = default) { @@ -559,7 +867,7 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequestDescriptor descriptor) @@ -573,7 +881,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequestDescri /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -588,7 +896,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsear /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -604,7 +912,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsear /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(GetSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -617,7 +925,7 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -631,7 +939,7 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -646,7 +954,7 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest request) @@ -660,7 +968,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest re /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(GetSynonymsSetsRequest request, CancellationToken cancellationToken = default) { @@ -673,7 +981,7 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequestDescriptor descriptor) @@ -687,7 +995,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequestDes /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets() @@ -702,7 +1010,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets() /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(Action configureRequest) @@ -718,7 +1026,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(GetSynonymsSetsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -731,7 +1039,7 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(CancellationToken cancellationToken = default) { @@ -745,7 +1053,7 @@ public virtual Task GetSynonymsSetsAsync(CancellationTo /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -761,7 +1069,11 @@ public virtual Task GetSynonymsSetsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) @@ -776,7 +1088,11 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(PutSynonymRequest request, CancellationToken cancellationToken = default) { @@ -790,7 +1106,11 @@ public virtual Task PutSynonymAsync(PutSynonymRequest reques /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descriptor) @@ -805,7 +1125,11 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescrip /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -821,7 +1145,11 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -838,7 +1166,11 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descriptor) @@ -853,7 +1185,11 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descrip /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -869,7 +1205,11 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -886,7 +1226,11 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -900,7 +1244,11 @@ public virtual Task PutSynonymAsync(PutSynonymReq /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -915,7 +1263,11 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -931,7 +1283,11 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -945,7 +1301,11 @@ public virtual Task PutSynonymAsync(PutSynonymRequestDescrip /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -960,7 +1320,11 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. /// If you need to manage more synonym rules, you can create multiple synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. + /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -975,7 +1339,13 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest request) @@ -989,7 +1359,13 @@ public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest reque /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(PutSynonymRuleRequest request, CancellationToken cancellationToken = default) { @@ -1002,7 +1378,13 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequestDescriptor descriptor) @@ -1016,7 +1398,13 @@ public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequestDescri /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -1031,7 +1419,13 @@ public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsear /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -1047,7 +1441,13 @@ public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsear /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(PutSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1060,7 +1460,13 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -1074,7 +1480,13 @@ public virtual Task PutSynonymRuleAsync(Elastic.Clients. /// Create or update a synonym rule. /// Create or update a synonym rule in a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If any of the synonym rules included is invalid, the API returns an error. + /// + /// + /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs index 4ed8ca03514..30dbb5969b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -42,6 +42,12 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -63,6 +69,12 @@ public virtual CancelResponse Cancel(CancelRequest request) /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -83,6 +95,12 @@ public virtual Task CancelAsync(CancelRequest request, Cancellat /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -104,6 +122,12 @@ public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -126,6 +150,12 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -149,6 +179,12 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -171,6 +207,12 @@ public virtual CancelResponse Cancel() /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -194,6 +236,12 @@ public virtual CancelResponse Cancel(Action configureRe /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -214,6 +262,12 @@ public virtual Task CancelAsync(CancelRequestDescriptor descript /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -235,6 +289,12 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -257,6 +317,12 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -278,6 +344,12 @@ public virtual Task CancelAsync(CancellationToken cancellationTo /// /// /// Cancel a task. + /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// /// A task may continue to run for some time after it has been cancelled because it may not be able to safely stop its current activity straight away. /// It is also possible that Elasticsearch must complete its work on other tasks before it can process the cancellation. /// The get task information API will continue to list these cancelled tasks until they complete. @@ -302,6 +374,13 @@ public virtual Task CancelAsync(Action /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -316,6 +395,13 @@ public virtual GetTasksResponse Get(GetTasksRequest request) /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) @@ -329,6 +415,13 @@ public virtual Task GetAsync(GetTasksRequest request, Cancella /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -343,6 +436,13 @@ public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -358,6 +458,13 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -374,6 +481,13 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Act /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -387,6 +501,13 @@ public virtual Task GetAsync(GetTasksRequestDescriptor descrip /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) @@ -401,6 +522,13 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// Get task information. /// Get information about a task currently running in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) @@ -416,6 +544,67 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -430,6 +619,67 @@ public virtual ListResponse List(ListRequest request) /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) @@ -443,6 +693,67 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -457,6 +768,67 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -472,6 +844,67 @@ public virtual ListResponse List() /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -488,6 +921,67 @@ public virtual ListResponse List(Action configureRequest) /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -501,6 +995,67 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) @@ -515,6 +1070,67 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// Get all tasks. /// Get information about the tasks currently running on one or more nodes in the cluster. /// + /// + /// WARNING: The task management API is new and should still be considered a beta feature. + /// The API may change in ways that are not backwards compatible. + /// + /// + /// Identifying running tasks + /// + /// + /// The X-Opaque-Id header, when provided on the HTTP request header, is going to be returned as a header in the response as well as in the headers field for in the task information. + /// This enables you to track certain calls or associate certain tasks with the client that started them. + /// For example: + /// + /// + /// curl -i -H "X-Opaque-Id: 123456" "http://localhost:9200/_tasks?group_by=parents" + /// + /// + /// The API returns the following result: + /// + /// + /// HTTP/1.1 200 OK + /// X-Opaque-Id: 123456 + /// content-type: application/json; charset=UTF-8 + /// content-length: 831 + /// + /// { + /// "tasks" : { + /// "u5lcZHqcQhu-rUoFaqDphA:45" : { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 45, + /// "type" : "transport", + /// "action" : "cluster:monitor/tasks/lists", + /// "start_time_in_millis" : 1513823752749, + /// "running_time_in_nanos" : 293139, + /// "cancellable" : false, + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// }, + /// "children" : [ + /// { + /// "node" : "u5lcZHqcQhu-rUoFaqDphA", + /// "id" : 46, + /// "type" : "direct", + /// "action" : "cluster:monitor/tasks/lists[n]", + /// "start_time_in_millis" : 1513823752750, + /// "running_time_in_nanos" : 92133, + /// "cancellable" : false, + /// "parent_task_id" : "u5lcZHqcQhu-rUoFaqDphA:45", + /// "headers" : { + /// "X-Opaque-Id" : "123456" + /// } + /// } + /// ] + /// } + /// } + /// } + /// + /// + /// In this example, X-Opaque-Id: 123456 is the ID as a part of the response header. + /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. + /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs index ed77c6ee9a8..3b1721dce1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs @@ -44,6 +44,43 @@ internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -58,6 +95,43 @@ public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureR /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(FindFieldStructureRequest request, CancellationToken cancellationToken = default) @@ -71,6 +145,43 @@ public virtual Task FindFieldStructureAsync(FindFiel /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -85,6 +196,43 @@ public virtual FindFieldStructureResponse FindFieldStructure(FindFiel /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -100,6 +248,43 @@ public virtual FindFieldStructureResponse FindFieldStructure() /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -116,6 +301,43 @@ public virtual FindFieldStructureResponse FindFieldStructure(Action + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -130,6 +352,43 @@ public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureR /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -142,8 +401,45 @@ public virtual FindFieldStructureResponse FindFieldStructure() /// /// - /// Find the structure of a text field. - /// Find the structure of a text field in an Elasticsearch index. + /// Find the structure of a text field. + /// Find the structure of a text field in an Elasticsearch index. + /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -161,6 +457,43 @@ public virtual FindFieldStructureResponse FindFieldStructure(Action + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(FindFieldStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -174,6 +507,43 @@ public virtual Task FindFieldStructureAsync + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(CancellationToken cancellationToken = default) @@ -188,6 +558,43 @@ public virtual Task FindFieldStructureAsync + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -203,6 +610,43 @@ public virtual Task FindFieldStructureAsync + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(FindFieldStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -216,6 +660,43 @@ public virtual Task FindFieldStructureAsync(FindFiel /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(CancellationToken cancellationToken = default) @@ -230,6 +711,43 @@ public virtual Task FindFieldStructureAsync(Cancella /// Find the structure of a text field. /// Find the structure of a text field in an Elasticsearch index. /// + /// + /// This API provides a starting point for extracting further information from log messages already ingested into Elasticsearch. + /// For example, if you have ingested data into a very simple index that has just @timestamp and message fields, you can use this API to see what common structure exists in the message field. + /// + /// + /// The response from the API contains: + /// + /// + /// + /// + /// Sample messages. + /// + /// + /// + /// + /// Statistics that reveal the most common values for all fields detected within the text and basic numeric statistics for numeric fields. + /// + /// + /// + /// + /// Information about the structure of the text, which is useful when you write ingest configurations to index it or similarly formatted text. + /// + /// + /// + /// + /// Appropriate mappings for an Elasticsearch index, which you could use to ingest the text. + /// + /// + /// + /// + /// All this information can be calculated by the structure finder with no guidance. + /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. + /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(Action configureRequest, CancellationToken cancellationToken = default) @@ -249,6 +767,8 @@ public virtual Task FindFieldStructureAsync(Action /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -273,6 +793,10 @@ public virtual Task FindFieldStructureAsync(Action + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -291,6 +815,8 @@ public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStru /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -315,6 +841,10 @@ public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStru /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(FindMessageStructureRequest request, CancellationToken cancellationToken = default) @@ -332,6 +862,8 @@ public virtual Task FindMessageStructureAsync(Find /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -356,6 +888,10 @@ public virtual Task FindMessageStructureAsync(Find /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -374,6 +910,8 @@ public virtual FindMessageStructureResponse FindMessageStructure(Find /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -398,6 +936,10 @@ public virtual FindMessageStructureResponse FindMessageStructure(Find /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -417,6 +959,8 @@ public virtual FindMessageStructureResponse FindMessageStructure() /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -441,6 +985,10 @@ public virtual FindMessageStructureResponse FindMessageStructure() /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -461,6 +1009,8 @@ public virtual FindMessageStructureResponse FindMessageStructure(Acti /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -485,6 +1035,10 @@ public virtual FindMessageStructureResponse FindMessageStructure(Acti /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -503,6 +1057,8 @@ public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStru /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -527,6 +1083,10 @@ public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStru /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -546,6 +1106,8 @@ public virtual FindMessageStructureResponse FindMessageStructure() /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -570,6 +1132,10 @@ public virtual FindMessageStructureResponse FindMessageStructure() /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -590,6 +1156,8 @@ public virtual FindMessageStructureResponse FindMessageStructure(Action /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -614,6 +1182,10 @@ public virtual FindMessageStructureResponse FindMessageStructure(Action + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(FindMessageStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -631,6 +1203,8 @@ public virtual Task FindMessageStructureAsync /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -655,6 +1229,10 @@ public virtual Task FindMessageStructureAsync + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(CancellationToken cancellationToken = default) @@ -673,6 +1251,8 @@ public virtual Task FindMessageStructureAsync /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -697,6 +1277,10 @@ public virtual Task FindMessageStructureAsync + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -716,6 +1300,8 @@ public virtual Task FindMessageStructureAsync /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -740,6 +1326,10 @@ public virtual Task FindMessageStructureAsync + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(FindMessageStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -757,6 +1347,8 @@ public virtual Task FindMessageStructureAsync(Find /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -781,6 +1373,10 @@ public virtual Task FindMessageStructureAsync(Find /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(CancellationToken cancellationToken = default) @@ -799,6 +1395,8 @@ public virtual Task FindMessageStructureAsync(Canc /// /// This API provides a starting point for ingesting data into Elasticsearch in a format that is suitable for subsequent use with other Elastic Stack functionality. /// Use this API rather than the find text structure API if your input text has already been split up into separate messages by some other process. + /// + /// /// The response from the API contains: /// /// @@ -823,6 +1421,10 @@ public virtual Task FindMessageStructureAsync(Canc /// All this information can be calculated by the structure finder with no guidance. /// However, you can optionally override some of the decisions about the text structure by specifying one or more query parameters. /// + /// + /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. + /// It helps determine why the returned structure was chosen. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs index c456147620c..6ba1065a617 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs @@ -61,7 +61,7 @@ internal XpackNamespacedClient(ElasticsearchClient client) : base(client) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(XpackInfoRequest request) @@ -92,7 +92,7 @@ public virtual XpackInfoResponse Info(XpackInfoRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequest request, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task InfoAsync(XpackInfoRequest request, Cance /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(XpackInfoRequestDescriptor descriptor) @@ -153,7 +153,7 @@ public virtual XpackInfoResponse Info(XpackInfoRequestDescriptor descriptor) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info() @@ -185,7 +185,7 @@ public virtual XpackInfoResponse Info() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(Action configureRequest) @@ -218,7 +218,7 @@ public virtual XpackInfoResponse Info(Action configu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -248,7 +248,7 @@ public virtual Task InfoAsync(XpackInfoRequestDescriptor desc /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -279,7 +279,7 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -295,7 +295,7 @@ public virtual Task InfoAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(XpackUsageRequest request) @@ -310,7 +310,7 @@ public virtual XpackUsageResponse Usage(XpackUsageRequest request) /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(XpackUsageRequest request, CancellationToken cancellationToken = default) { @@ -324,7 +324,7 @@ public virtual Task UsageAsync(XpackUsageRequest request, Ca /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(XpackUsageRequestDescriptor descriptor) @@ -339,7 +339,7 @@ public virtual XpackUsageResponse Usage(XpackUsageRequestDescriptor descriptor) /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage() @@ -355,7 +355,7 @@ public virtual XpackUsageResponse Usage() /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(Action configureRequest) @@ -372,7 +372,7 @@ public virtual XpackUsageResponse Usage(Action conf /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(XpackUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -386,7 +386,7 @@ public virtual Task UsageAsync(XpackUsageRequestDescriptor d /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -401,7 +401,7 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index d3ce0ad78fe..01649feef83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -38,6 +38,7 @@ using Elastic.Clients.Elasticsearch.SearchableSnapshots; using Elastic.Clients.Elasticsearch.SearchApplication; using Elastic.Clients.Elasticsearch.Security; +using Elastic.Clients.Elasticsearch.Simulate; using Elastic.Clients.Elasticsearch.Snapshot; using Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement; using Elastic.Clients.Elasticsearch.Sql; @@ -76,6 +77,7 @@ public partial class ElasticsearchClient public virtual SearchableSnapshotsNamespacedClient SearchableSnapshots { get; private set; } public virtual SearchApplicationNamespacedClient SearchApplication { get; private set; } public virtual SecurityNamespacedClient Security { get; private set; } + public virtual SimulateNamespacedClient Simulate { get; private set; } public virtual SnapshotNamespacedClient Snapshot { get; private set; } public virtual SnapshotLifecycleManagementNamespacedClient SnapshotLifecycleManagement { get; private set; } public virtual SqlNamespacedClient Sql { get; private set; } @@ -108,6 +110,7 @@ private partial void SetupNamespaces() SearchableSnapshots = new SearchableSnapshotsNamespacedClient(this); SearchApplication = new SearchApplicationNamespacedClient(this); Security = new SecurityNamespacedClient(this); + Simulate = new SimulateNamespacedClient(this); Snapshot = new SnapshotNamespacedClient(this); SnapshotLifecycleManagement = new SnapshotLifecycleManagementNamespacedClient(this); Sql = new SqlNamespacedClient(this); @@ -121,9 +124,192 @@ private partial void SetupNamespaces() /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -136,9 +322,192 @@ public virtual BulkResponse Bulk(BulkRequest request) /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) @@ -150,9 +519,192 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -165,13 +717,196 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) { var descriptor = new BulkRequestDescriptor(index); descriptor.BeforeRequest(); @@ -181,9 +916,192 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -198,9 +1116,192 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -214,9 +1315,192 @@ public virtual BulkResponse Bulk() /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -231,9 +1515,192 @@ public virtual BulkResponse Bulk(Action /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -246,9 +1713,192 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -262,13 +1912,196 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) { var descriptor = new BulkRequestDescriptor(index); configureRequest?.Invoke(descriptor); @@ -279,9 +2112,192 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -295,9 +2311,192 @@ public virtual BulkResponse Bulk() /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -312,9 +2511,192 @@ public virtual BulkResponse Bulk(Action configureRequest) /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -326,9 +2708,192 @@ public virtual Task BulkAsync(BulkRequestDescriptor /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) @@ -341,9 +2906,192 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticse /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) @@ -357,13 +3105,196 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticse /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// 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) - { + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(CancellationToken cancellationToken = default) + { var descriptor = new BulkRequestDescriptor(); descriptor.BeforeRequest(); return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor, cancellationToken); @@ -372,9 +3303,192 @@ public virtual Task BulkAsync(CancellationToken cancell /// /// /// Bulk index or delete documents. - /// Performs multiple indexing or delete operations in a single API call. + /// Perform multiple index, create, delete, and update actions in a single request. /// This reduces overhead and can greatly increase indexing speed. /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) @@ -387,11448 +3501,38277 @@ public virtual Task BulkAsync(Action /// - /// 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. + /// Bulk index or delete documents. + /// Perform multiple index, create, delete, and update actions in a single request. + /// This reduces overhead and can greatly increase indexing speed. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Bulk index or delete documents. + /// Perform multiple index, create, delete, and update actions in a single request. + /// This reduces overhead and can greatly increase indexing speed. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + { + var descriptor = new BulkRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Bulk index or delete documents. + /// Perform multiple index, create, delete, and update actions in a single request. + /// This reduces overhead and can greatly increase indexing speed. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new BulkRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Bulk index or delete documents. + /// Perform multiple index, create, delete, and update actions in a single request. + /// This reduces overhead and can greatly increase indexing speed. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(CancellationToken cancellationToken = default) + { + var descriptor = new BulkRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Bulk index or delete documents. + /// Perform multiple index, create, delete, and update actions in a single request. + /// This reduces overhead and can greatly increase indexing speed. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To use the create action, you must have the create_doc, create, index, or write index privilege. Data streams support only the create action. + /// + /// + /// + /// + /// To use the index action, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To use the delete action, you must have the delete or write index privilege. + /// + /// + /// + /// + /// To use the update action, you must have the index or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with a bulk API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// To make the result of a bulk operation visible to search using the refresh parameter, you must have the maintenance or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The actions are specified in the request body using a newline delimited JSON (NDJSON) structure: + /// + /// + /// action_and_meta_data\n + /// optional_source\n + /// action_and_meta_data\n + /// optional_source\n + /// .... + /// action_and_meta_data\n + /// optional_source\n + /// + /// + /// The index and create actions expect a source on the next line and have the same semantics as the op_type parameter in the standard index API. + /// A create action fails if a document with the same ID already exists in the target + /// An index action adds or replaces a document as necessary. + /// + /// + /// NOTE: Data streams support only the create action. + /// To update or delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// An update action expects that the partial doc, upsert, and script and its options are specified on the next line. + /// + /// + /// A delete action does not expect a source on the next line and has the same semantics as the standard delete API. + /// + /// + /// NOTE: The final line of data must end with a newline character (\n). + /// Each newline character may be preceded by a carriage return (\r). + /// When sending NDJSON data to the _bulk endpoint, use a Content-Type header of application/json or application/x-ndjson. + /// Because this format uses literal newline characters (\n) as delimiters, make sure that the JSON actions and sources are not pretty printed. + /// + /// + /// If you provide a target in the request path, it is used for any actions that don't explicitly specify an _index argument. + /// + /// + /// A note on the format: the idea here is to make processing as fast as possible. + /// As some of the actions are redirected to other shards on other nodes, only action_meta_data is parsed on the receiving node side. + /// + /// + /// Client libraries using this protocol should try and strive to do something similar on the client side, and reduce buffering as much as possible. + /// + /// + /// There is no "correct" number of actions to perform in a single bulk request. + /// Experiment with different settings to find the optimal size for your particular workload. + /// Note that Elasticsearch limits the maximum size of a HTTP request to 100mb by default so clients must ensure that no request exceeds this size. + /// It is not possible to index a single document that exceeds the size limit, so you must pre-process any such documents into smaller pieces before sending them to Elasticsearch. + /// For instance, split documents into pages or chapters before indexing them, or store raw binary data in a system outside Elasticsearch and replace the raw data with a link to the external system in the documents that you send to Elasticsearch. + /// + /// + /// Client suppport for bulk requests + /// + /// + /// Some of the officially supported clients provide helpers to assist with bulk requests and reindexing: + /// + /// + /// + /// + /// Go: Check out esutil.BulkIndexer + /// + /// + /// + /// + /// Perl: Check out Search::Elasticsearch::Client::5_0::Bulk and Search::Elasticsearch::Client::5_0::Scroll + /// + /// + /// + /// + /// Python: Check out elasticsearch.helpers.* + /// + /// + /// + /// + /// JavaScript: Check out client.helpers.* + /// + /// + /// + /// + /// .NET: Check out BulkAllObservable + /// + /// + /// + /// + /// PHP: Check out bulk indexing. + /// + /// + /// + /// + /// Submitting bulk requests with cURL + /// + /// + /// If you're providing text file input to curl, you must use the --data-binary flag instead of plain -d. + /// The latter doesn't preserve newlines. For example: + /// + /// + /// $ cat requests + /// { "index" : { "_index" : "test", "_id" : "1" } } + /// { "field1" : "value1" } + /// $ curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9200/_bulk --data-binary "@requests"; echo + /// {"took":7, "errors": false, "items":[{"index":{"_index":"test","_id":"1","_version":1,"result":"created","forced_refresh":false}}]} + /// + /// + /// Optimistic concurrency control + /// + /// + /// Each index and delete action within a bulk API call may include the if_seq_no and if_primary_term parameters in their respective action and meta data lines. + /// The if_seq_no and if_primary_term parameters control how operations are run, based on the last modification to existing documents. See Optimistic concurrency control for more details. + /// + /// + /// Versioning + /// + /// + /// Each bulk item can include the version value using the version field. + /// It automatically follows the behavior of the index or delete operation based on the _version mapping. + /// It also support the version_type. + /// + /// + /// Routing + /// + /// + /// Each bulk item can include the routing value using the routing field. + /// It automatically follows the behavior of the index or delete operation based on the _routing mapping. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// Wait for active shards + /// + /// + /// When making bulk calls, you can set the wait_for_active_shards parameter to require a minimum number of shard copies to be active before starting to process the bulk request. + /// + /// + /// Refresh + /// + /// + /// Control when the changes made by this request are visible to search. + /// + /// + /// NOTE: Only the shards that receive the bulk request will be affected by refresh. + /// Imagine a _bulk?refresh=wait_for request with three documents in it that happen to be routed to different shards in an index with five shards. + /// The request will only wait for those three shards to refresh. + /// The other two shards that make up the index do not participate in the _bulk request at all. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new BulkRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearScrollResponse ClearScroll() + { + var descriptor = new ClearScrollRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClearScrollResponse ClearScroll(Action configureRequest) + { + var descriptor = new ClearScrollRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ClearScrollRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Clear a scrolling search. + /// Clear the search context and results for a scrolling search. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ClearScrollRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClosePointInTimeResponse ClosePointInTime() + { + var descriptor = new ClosePointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) + { + var descriptor = new ClosePointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ClosePointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Close a point in time. + /// A point in time must be opened explicitly before being used in search requests. + /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// A point in time is automatically closed when the keep_alive period has elapsed. + /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ClosePointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(CountRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CountRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(CountRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new CountRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + { + var descriptor = new CountRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count() + { + var descriptor = new CountRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(Action> configureRequest) + { + var descriptor = new CountRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(CountRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new CountRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + { + var descriptor = new CountRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count() + { + var descriptor = new CountRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CountResponse Count(Action configureRequest) + { + var descriptor = new CountRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Count search results. + /// Get the number of documents matching a query. + /// + /// + /// The query can be provided either by using a simple query string as a parameter, or by defining Query DSL within the request body. + /// The query is optional. When no query is provided, the API uses match_all to count all the documents. + /// + /// + /// The count API supports multi-target syntax. You can run a single count API search across multiple data streams and indices. + /// + /// + /// The operation is broadcast across all shards. + /// For each shard ID group, a replica is chosen and the search is run against it. + /// This means that replicas increase the scalability of the count. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CountRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(CreateRequest request) + { + request.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(request); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(CreateRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(CreateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new CreateRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new CreateRequestDescriptor(document, index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document) + { + var descriptor = new CreateRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Action> configureRequest) + { + var descriptor = new CreateRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new CreateRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new CreateRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new CreateRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new CreateRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(CreateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create a new document in the index. + /// + /// + /// You can index a new JSON document with the /<target>/_doc/ or /<target>/_create/<_id> APIs + /// Using _create guarantees that the document is indexed only if it does not already exist. + /// It returns a 409 response when a document with a same ID already exists in the index. + /// To update an existing document, you must use the /<target>/_doc/ API. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add a document using the PUT /<target>/_create/<_id> or POST /<target>/_create/<_id> request formats, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// ** Distributed** + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(DeleteRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new DeleteRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new DeleteRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(TDocument document) + { + var descriptor = new DeleteRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(TDocument document, Action> configureRequest) + { + var descriptor = new DeleteRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new DeleteRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new DeleteRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new DeleteRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new DeleteRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new DeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new DeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new DeleteRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new DeleteRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete a document. + /// + /// + /// Remove a JSON document from the specified index. + /// + /// + /// NOTE: You cannot send deletion requests directly to a data stream. + /// To delete a document in a data stream, you must target the backing index containing the document. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Delete operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Versioning + /// + /// + /// Each document indexed is versioned. + /// When deleting a document, the version can be specified to make sure the relevant document you are trying to delete is actually being deleted and it has not changed in the meantime. + /// Every write operation run on a document, deletes included, causes its version to be incremented. + /// The version number of a deleted document remains available for a short time after deletion to allow for control of concurrent operations. + /// The length of time for which a deleted document's version remains available is determined by the index.gc_deletes index setting. + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to delete a document. + /// + /// + /// If the _routing mapping is set to required and no routing value is specified, the delete API throws a RoutingMissingException and rejects the request. + /// + /// + /// For example: + /// + /// + /// DELETE /my-index-000001/_doc/1?routing=shard-1 + /// + /// + /// This request deletes the document with ID 1, but it is routed based on the user. + /// The document is not deleted if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The delete operation gets hashed into a specific shard ID. + /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(DeleteByQueryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery() + { + var descriptor = new DeleteByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(Action> configureRequest) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete documents. + /// + /// + /// Deletes documents that match the specified query. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// delete or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// When you submit a delete by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and deletes matching documents using internal versioning. + /// If a document changes between the time that the snapshot is taken and the delete operation is processed, it results in a version conflict and the delete operation fails. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be deleted using delete by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing a delete by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents to delete. + /// A bulk delete request is performed for each batch of matching documents. + /// If a search or bulk request is rejected, the requests are retried up to 10 times, with exponential back off. + /// If the maximum retry limit is reached, processing halts and all failed requests are returned in the response. + /// Any delete requests that completed successfully still stick, they are not rolled back. + /// + /// + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts the operation could attempt to delete more documents from the source than max_docs until it has successfully deleted max_docs documents, or it has gone through every document in the source query. + /// + /// + /// Throttling delete requests + /// + /// + /// To control the rate at which delete by query issues batches of delete operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to disable throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Delete by query supports sliced scroll to parallelize the delete process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto lets Elasticsearch choose the number of slices to use. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// Adding slices to the delete by query operation creates sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the earlier point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being deleted. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Delete performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or delete performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Cancel a delete by query operation + /// + /// + /// Any delete by query can be canceled using the task cancel API. For example: + /// + /// + /// POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel + /// + /// + /// The task ID can be found by using the get tasks API. + /// + /// + /// Cancellation should happen quickly but might take a few seconds. + /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId taskId) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId taskId, Action configureRequest) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId taskId, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Throttle a delete by query operation. + /// + /// + /// Change the number of requests per second for a particular delete by query operation. + /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId taskId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// 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) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Delete a script or search template. + /// Deletes a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(ExistsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExistsRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(TDocument document) + { + var descriptor = new ExistsRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(TDocument document, Action> configureRequest) + { + var descriptor = new ExistsRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new ExistsRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new ExistsRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExistsRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExistsRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new ExistsRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Check a document. + /// + /// + /// Verify that a document exists. + /// For example, check to see if a document with the _id 0 exists: + /// + /// + /// HEAD my-index-000001/_doc/0 + /// + /// + /// If the document exists, the API returns a status code of 200 - OK. + /// If the document doesn’t exist, the API returns 404 - Not Found. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to check the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(ExistsSourceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(TDocument document) + { + var descriptor = new ExistsSourceRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(TDocument document, Action> configureRequest) + { + var descriptor = new ExistsSourceRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new ExistsSourceRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new ExistsSourceRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsSourceRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExistsSourceRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsSourceRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExistsSourceRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Check for a document source. + /// + /// + /// Check whether a document source exists in an index. + /// For example: + /// + /// + /// HEAD my-index-000001/_source/1 + /// + /// + /// A document's source is not available if it is disabled in the mapping. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsSourceRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(ExplainRequest request) + { + request.BeforeRequest(); + return DoRequest, ExplainRequestParameters>(request); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(ExplainRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, ExplainRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(ExplainRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExplainRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(TDocument document) + { + var descriptor = new ExplainRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(TDocument document, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new ExplainRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExplainRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new ExplainRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(ExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Explain a document match result. + /// Get information about why a specific document matches, or doesn't match, a query. + /// It computes a score explanation for a query and a specific document. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(FieldCapsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps() + { + var descriptor = new FieldCapsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(Action> configureRequest) + { + var descriptor = new FieldCapsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps() + { + var descriptor = new FieldCapsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual FieldCapsResponse FieldCaps(Action configureRequest) + { + var descriptor = new FieldCapsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the field capabilities. + /// + /// + /// Get information about the capabilities of fields among multiple indices. + /// + /// + /// For data streams, the API returns field capabilities among the stream’s backing indices. + /// It returns runtime fields like any other field. + /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new FieldCapsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(GetRequest request) + { + request.BeforeRequest(); + return DoRequest, GetRequestParameters>(request); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(GetRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, GetRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(GetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(TDocument document) + { + var descriptor = new GetRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(TDocument document, Action> configureRequest) + { + var descriptor = new GetRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new GetRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new GetRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(GetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document by its ID. + /// + /// + /// Get a document and its source or stored fields from an index. + /// + /// + /// By default, this API is realtime and is not affected by the refresh rate of the index (when data will become visible for search). + /// In the case where stored fields are requested with the stored_fields parameter and the document has been updated but is not yet refreshed, the API will have to parse and analyze the source to extract the stored fields. + /// To turn off realtime behavior, set the realtime parameter to false. + /// + /// + /// Source filtering + /// + /// + /// By default, the API returns the contents of the _source field unless you have used the stored_fields parameter or the _source field is turned off. + /// You can turn off _source retrieval by using the _source parameter: + /// + /// + /// GET my-index-000001/_doc/0?_source=false + /// + /// + /// If you only need one or two fields from the _source, use the _source_includes or _source_excludes parameters to include or filter out particular fields. + /// This can be helpful with large documents where partial retrieval can save on network overhead + /// Both parameters take a comma separated list of fields or wildcard expressions. + /// For example: + /// + /// + /// GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities + /// + /// + /// If you only want to specify includes, you can use a shorter notation: + /// + /// + /// GET my-index-000001/_doc/0?_source=*.id + /// + /// + /// Routing + /// + /// + /// If routing is used during indexing, the routing value also needs to be specified to retrieve a document. + /// For example: + /// + /// + /// GET my-index-000001/_doc/2?routing=user1 + /// + /// + /// This request gets the document with ID 2, but it is routed based on the user. + /// The document is not fetched if the correct routing is not specified. + /// + /// + /// Distributed + /// + /// + /// The GET operation is hashed into a specific shard ID. + /// It is then redirected to one of the replicas within that shard ID and returns the result. + /// The replicas are the primary shard and its replicas within that shard ID group. + /// This means that the more replicas you have, the better your GET scaling will be. + /// + /// + /// Versioning support + /// + /// + /// You can use the version parameter to retrieve the document only if its current version is equal to the specified one. + /// + /// + /// Internally, Elasticsearch has marked the old document as deleted and added an entirely new document. + /// The old version of the document doesn't disappear immediately, although you won't be able to access it. + /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(GetScriptRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// 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) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get a script or search template. + /// Retrieves a stored script or search template. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new GetScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptContextAsync(GetScriptContextRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptContextResponse GetScriptContext() + { + var descriptor = new GetScriptContextRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptContextResponse GetScriptContext(Action configureRequest) + { + var descriptor = new GetScriptContextRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptContextAsync(GetScriptContextRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptContextAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptContextRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get script contexts. + /// + /// + /// Get a list of supported script contexts and their methods. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptContextAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptContextRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptLanguagesResponse GetScriptLanguages() + { + var descriptor = new GetScriptLanguagesRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetScriptLanguagesResponse GetScriptLanguages(Action configureRequest) + { + var descriptor = new GetScriptLanguagesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptLanguagesAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptLanguagesRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get script languages. + /// + /// + /// Get a list of available script types, languages, and contexts. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptLanguagesAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetScriptLanguagesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(GetSourceRequest request) + { + request.BeforeRequest(); + return DoRequest, GetSourceRequestParameters>(request); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, GetSourceRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(GetSourceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetSourceRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetSourceRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(TDocument document) + { + var descriptor = new GetSourceRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(TDocument document, Action> configureRequest) + { + var descriptor = new GetSourceRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new GetSourceRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new GetSourceRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetSourceRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetSourceRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetSourceRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new GetSourceRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(GetSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get a document's source. + /// + /// + /// Get the source of a document. + /// For example: + /// + /// + /// GET my-index-000001/_source/1 + /// + /// + /// You can use the source filtering parameters to control which parts of the _source are returned: + /// + /// + /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetSourceRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual HealthReportResponse HealthReport(HealthReportRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthReportAsync(HealthReportRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual HealthReportResponse HealthReport(HealthReportRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual HealthReportResponse HealthReport(IReadOnlyCollection? feature) + { + var descriptor = new HealthReportRequestDescriptor(feature); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual HealthReportResponse HealthReport(IReadOnlyCollection? feature, Action configureRequest) + { + var descriptor = new HealthReportRequestDescriptor(feature); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual HealthReportResponse HealthReport() + { + var descriptor = new HealthReportRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual HealthReportResponse HealthReport(Action configureRequest) + { + var descriptor = new HealthReportRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthReportAsync(HealthReportRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthReportAsync(IReadOnlyCollection? feature, CancellationToken cancellationToken = default) + { + var descriptor = new HealthReportRequestDescriptor(feature); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthReportAsync(IReadOnlyCollection? feature, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new HealthReportRequestDescriptor(feature); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthReportAsync(CancellationToken cancellationToken = default) + { + var descriptor = new HealthReportRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the cluster health. + /// Get a report with the health status of an Elasticsearch cluster. + /// The report contains a list of indicators that compose Elasticsearch functionality. + /// + /// + /// Each indicator has a health status of: green, unknown, yellow or red. + /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// + /// + /// The cluster’s status is controlled by the worst indicator status. + /// + /// + /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. + /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// + /// + /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. + /// The root cause and remediation steps are encapsulated in a diagnosis. + /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// + /// + /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. + /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthReportAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new HealthReportRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(IndexRequest request) + { + request.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(request); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(IndexRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(IndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) + { + var descriptor = new IndexRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) + { + var descriptor = new IndexRequestDescriptor(document, index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document) + { + var descriptor = new IndexRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Action> configureRequest) + { + var descriptor = new IndexRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new IndexRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new IndexRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.Id? id) + { + var descriptor = new IndexRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) + { + var descriptor = new IndexRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(IndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, id); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create or update a document in an index. + /// + /// + /// Add a JSON document to the specified data stream or index and make it searchable. + /// If the target is an index and the document already exists, the request updates the document and increments its version. + /// + /// + /// NOTE: You cannot use this API to send update requests for existing documents in a data stream. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or index alias: + /// + /// + /// + /// + /// To add or overwrite a document using the PUT /<target>/_doc/<_id> request format, you must have the create, index, or write index privilege. + /// + /// + /// + /// + /// To add a document using the POST /<target>/_doc/ request format, you must have the create_doc, create, index, or write index privilege. + /// + /// + /// + /// + /// To automatically create a data stream or index with this API request, you must have the auto_configure, create_index, or manage index privilege. + /// + /// + /// + /// + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// NOTE: Replica shards might not all be started when an indexing operation returns successfully. + /// By default, only the primary is required. Set wait_for_active_shards to change this default behavior. + /// + /// + /// Automatically create data streams and indices + /// + /// + /// If the request's target doesn't exist and matches an index template with a data_stream definition, the index operation automatically creates the data stream. + /// + /// + /// If the target doesn't exist and doesn't match a data stream template, the operation automatically creates the index and applies any matching index templates. + /// + /// + /// NOTE: Elasticsearch includes several built-in index templates. To avoid naming collisions with these templates, refer to index pattern documentation. + /// + /// + /// If no mapping exists, the index operation creates a dynamic mapping. + /// By default, new fields and objects are automatically added to the mapping if needed. + /// + /// + /// Automatic index creation is controlled by the action.auto_create_index setting. + /// If it is true, any index can be created automatically. + /// You can modify this setting to explicitly allow or block automatic creation of indices that match specified patterns or set it to false to turn off automatic index creation entirely. + /// Specify a comma-separated list of patterns you want to allow or prefix each pattern with + or - to indicate whether it should be allowed or blocked. + /// When a list is specified, the default behaviour is to disallow. + /// + /// + /// NOTE: The action.auto_create_index setting affects the automatic creation of indices only. + /// It does not affect the creation of data streams. + /// + /// + /// Optimistic concurrency control + /// + /// + /// Index operations can be made conditional and only be performed if the last modification to the document was assigned the sequence number and primary term specified by the if_seq_no and if_primary_term parameters. + /// If a mismatch is detected, the operation will result in a VersionConflictException and a status code of 409. + /// + /// + /// Routing + /// + /// + /// By default, shard placement — or routing — is controlled by using a hash of the document's ID value. + /// For more explicit control, the value fed into the hash function used by the router can be directly specified on a per-operation basis using the routing parameter. + /// + /// + /// When setting up explicit mapping, you can also use the _routing field to direct the index operation to extract the routing value from the document itself. + /// This does come at the (very minimal) cost of an additional document parsing pass. + /// If the _routing mapping is defined and set to be required, the index operation will fail if no routing value is provided or extracted. + /// + /// + /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. + /// + /// + /// + /// + /// ** Distributed** + /// + /// + /// + /// + /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. + /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. + /// + /// + /// Active shards + /// + /// + /// To improve the resiliency of writes to the system, indexing operations can be configured to wait for a certain number of active shard copies before proceeding with the operation. + /// If the requisite number of active shard copies are not available, then the write operation must wait and retry, until either the requisite shard copies have started or a timeout occurs. + /// By default, write operations only wait for the primary shards to be active before proceeding (that is to say wait_for_active_shards is 1). + /// This default can be overridden in the index settings dynamically by setting index.write.wait_for_active_shards. + /// To alter this behavior per operation, use the wait_for_active_shards request parameter. + /// + /// + /// Valid values are all or any positive integer up to the total number of configured copies per shard in the index (which is number_of_replicas+1). + /// Specifying a negative value or a number greater than the number of shard copies will throw an error. + /// + /// + /// For example, suppose you have a cluster of three nodes, A, B, and C and you create an index index with the number of replicas set to 3 (resulting in 4 shard copies, one more copy than there are nodes). + /// If you attempt an indexing operation, by default the operation will only ensure the primary copy of each shard is available before proceeding. + /// This means that even if B and C went down and A hosted the primary shard copies, the indexing operation would still proceed with only one copy of the data. + /// If wait_for_active_shards is set on the request to 3 (and all three nodes are up), the indexing operation will require 3 active shard copies before proceeding. + /// This requirement should be met because there are 3 active nodes in the cluster, each one holding a copy of the shard. + /// However, if you set wait_for_active_shards to all (or to 4, which is the same in this situation), the indexing operation will not proceed as you do not have all 4 copies of each shard active in the index. + /// The operation will timeout unless a new node is brought up in the cluster to host the fourth copy of the shard. + /// + /// + /// It is important to note that this setting greatly reduces the chances of the write operation not writing to the requisite number of shard copies, but it does not completely eliminate the possibility, because this check occurs before the write operation starts. + /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. + /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. + /// + /// + /// No operation (noop) updates + /// + /// + /// When updating a document by using this API, a new version of the document is always created even if the document hasn't changed. + /// If this isn't acceptable use the _update API with detect_noop set to true. + /// The detect_noop option isn't available on this API because it doesn’t fetch the old source and isn't able to compare it against the new source. + /// + /// + /// There isn't a definitive rule for when noop updates aren't acceptable. + /// It's a combination of lots of factors like how frequently your data source sends updates that are actually noops and how many queries per second Elasticsearch runs on the shard receiving the updates. + /// + /// + /// Versioning + /// + /// + /// Each indexed document is given a version number. + /// By default, internal versioning is used that starts at 1 and increments with each update, deletes included. + /// Optionally, the version number can be set to an external value (for example, if maintained in a database). + /// To enable this functionality, version_type should be set to external. + /// The value provided must be a numeric, long value greater than or equal to 0, and less than around 9.2e+18. + /// + /// + /// NOTE: Versioning is completely real time, and is not affected by the near real time aspects of search operations. + /// If no version is provided, the operation runs without any version checks. + /// + /// + /// When using the external version type, the system checks to see if the version number passed to the index request is greater than the version of the currently stored document. + /// If true, the document will be indexed and the new version number used. + /// If the value provided is less than or equal to the stored document's version number, a version conflict will occur and the index operation will fail. For example: + /// + /// + /// PUT my-index-000001/_doc/1?version=2&version_type=external + /// { + /// "user": { + /// "id": "elkbee" + /// } + /// } + /// + /// In this example, the operation will succeed since the supplied version of 2 is higher than the current document version of 1. + /// If the document was already updated and its version was set to 2 or higher, the indexing command will fail and result in a conflict (409 HTTP status code). + /// + /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. + /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual InfoResponse Info(InfoRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InfoAsync(InfoRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual InfoResponse Info(InfoRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual InfoResponse Info() + { + var descriptor = new InfoRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual InfoResponse Info(Action configureRequest) + { + var descriptor = new InfoRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InfoAsync(InfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InfoAsync(CancellationToken cancellationToken = default) + { + var descriptor = new InfoRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get cluster info. + /// Get basic build, version, and cluster information. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new InfoRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(MultiTermVectorsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors() + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(Action> configureRequest) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors() + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiTermVectorsResponse Mtermvectors(Action configureRequest) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple term vectors. + /// + /// + /// Get multiple term vectors with a single request. + /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. + /// You can specify the index in the request body or request URI. + /// The response contains a docs array with all the fetched termvectors. + /// Each element has the structure provided by the termvectors API. + /// + /// + /// Artificial documents + /// + /// + /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. + /// The mapping used is determined by the specified _index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MtermvectorsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiGetResponse MultiGet(MultiGetRequest request) + { + request.BeforeRequest(); + return DoRequest, MultiGetRequestParameters>(request); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(MultiGetRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, MultiGetRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiGetResponse MultiGet(MultiGetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiGetResponse MultiGet(Elastic.Clients.Elasticsearch.IndexName? index) + { + var descriptor = new MultiGetRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiGetResponse MultiGet(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) + { + var descriptor = new MultiGetRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiGetResponse MultiGet() + { + var descriptor = new MultiGetRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiGetResponse MultiGet(Action> configureRequest) + { + var descriptor = new MultiGetRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(MultiGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + { + var descriptor = new MultiGetRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiGetRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiGetRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get multiple documents. + /// + /// + /// Get multiple JSON documents by ID from one or more indices. + /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. + /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// + /// + /// Filter source fields + /// + /// + /// By default, the _source field is returned for every document (if stored). + /// Use the _source and _source_include or source_exclude attributes to filter what fields are returned for a particular document. + /// You can include the _source, _source_includes, and _source_excludes query parameters in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// + /// Get stored fields + /// + /// + /// Use the stored_fields attribute to specify the set of stored fields you want to retrieve. + /// Any requested fields that are not stored are ignored. + /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiGetRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchResponse MultiSearch(MultiSearchRequest request) + { + request.BeforeRequest(); + return DoRequest, MultiSearchRequestParameters>(request); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(MultiSearchRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, MultiSearchRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchResponse MultiSearch(MultiSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new MultiSearchRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + { + var descriptor = new MultiSearchRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchResponse MultiSearch() + { + var descriptor = new MultiSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchResponse MultiSearch(Action> configureRequest) + { + var descriptor = new MultiSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple searches. + /// + /// + /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. + /// The structure is as follows: + /// + /// + /// header\n + /// body\n + /// header\n + /// body\n + /// + /// + /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// + /// + /// IMPORTANT: The final line of data must end with a newline character \n. + /// Each newline character may be preceded by a carriage return \r. + /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequest request) + { + request.BeforeRequest(); + return DoRequest, MultiSearchTemplateRequestParameters>(request); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateRequestParameters>(request, cancellationToken); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchTemplateResponse MultiSearchTemplate() + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MultiSearchTemplateResponse MultiSearchTemplate(Action> configureRequest) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Run multiple templated searches. + /// + /// + /// Run multiple templated searches with a single request. + /// If you are providing a text file or text input to curl, use the --data-binary flag instead of -d to preserve newlines. + /// For example: + /// + /// + /// $ cat requests + /// { "index": "my-index" } + /// { "id": "my-search-template", "params": { "query_string": "hello world", "from": 0, "size": 10 }} + /// { "index": "my-other-index" } + /// { "id": "my-other-search-template", "params": { "query_type": "match_all" }} + /// + /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime() + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(Action> configureRequest) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Open a point in time. + /// + /// + /// A search request by default runs against the most recent visible data of the target indices, + /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the + /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple + /// search requests using the same point in time. For example, if refreshes happen between + /// search_after requests, then the results of those requests might not be consistent as changes happening + /// between searches are only visible to the more recent point in time. + /// + /// + /// A point in time must be opened explicitly before being used in search requests. + /// + /// + /// A subsequent search request with the pit parameter must not specify index, routing, or preference values as these parameters are copied from the point in time. + /// + /// + /// Just like regular searches, you can use from and size to page through point in time search results, up to the first 10,000 hits. + /// If you want to retrieve more hits, use PIT with search_after. + /// + /// + /// IMPORTANT: The open point in time request and each subsequent search request can return different identifiers; always use the most recently received ID for the next search request. + /// + /// + /// When a PIT that contains shard failures is used in a search request, the missing are always reported in the search response as a NoShardAvailableActionException exception. + /// To get rid of these exceptions, a new PIT needs to be created so that shards missing from the previous PIT can be handled, assuming they become available in the meantime. + /// + /// + /// Keeping point in time alive + /// + /// + /// The keep_alive parameter, which is passed to a open point in time request and search request, extends the time to live of the corresponding point in time. + /// The value does not need to be long enough to process all data — it just needs to be long enough for the next request. + /// + /// + /// Normally, the background merge process optimizes the index by merging together smaller segments to create new, bigger segments. + /// Once the smaller segments are no longer needed they are deleted. + /// However, open point-in-times prevent the old segments from being deleted since they are still in use. + /// + /// + /// TIP: Keeping older segments alive means that more disk space and file handles are needed. + /// Ensure that you have configured your nodes to have ample free file handles. + /// + /// + /// Additionally, if a segment contains deleted or updated documents then the point in time must keep track of whether each document in the segment was live at the time of the initial search request. + /// Ensure that your nodes have sufficient heap space if you have many open point-in-times on an index that is subject to ongoing deletes or updates. + /// Note that a point-in-time doesn't prevent its associated indices from being deleted. + /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new OpenPointInTimeRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PingResponse Ping(PingRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PingAsync(PingRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PingResponse Ping(PingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PingResponse Ping() + { + var descriptor = new PingRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PingResponse Ping(Action configureRequest) + { + var descriptor = new PingRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PingAsync(PingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PingAsync(CancellationToken cancellationToken = default) + { + var descriptor = new PingRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Ping the cluster. + /// Get information about whether the cluster is running. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PingAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PingRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(PutScriptRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// 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) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + descriptor.BeforeRequest(); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new PutScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new PutScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new PutScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new PutScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// 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) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + descriptor.BeforeRequest(); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// 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) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id, context); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(RankEvalRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(RankEvalRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new RankEvalRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + { + var descriptor = new RankEvalRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval() + { + var descriptor = new RankEvalRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(Action> configureRequest) + { + var descriptor = new RankEvalRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new RankEvalRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + { + var descriptor = new RankEvalRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval() + { + var descriptor = new RankEvalRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RankEvalResponse RankEval(Action configureRequest) + { + var descriptor = new RankEvalRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Evaluate ranked search results. + /// + /// + /// Evaluate the quality of ranked search results over a set of typical search queries. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RankEvalAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RankEvalRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex(ReindexRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexAsync(ReindexRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex() + { + var descriptor = new ReindexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex(Action> configureRequest) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex() + { + var descriptor = new ReindexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexResponse Reindex(Action configureRequest) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** + /// + /// + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. + /// + /// + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. + /// + /// + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// Indexing performance scales linearly across available resources with the number of slices. + /// + /// + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Modify documents during reindexing + /// + /// + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. + /// + /// + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. + /// + /// + /// Think of the possibilities! Just be careful; you are able to change: + /// + /// + /// + /// + /// _id + /// + /// + /// + /// + /// _index + /// + /// + /// + /// + /// _version + /// + /// + /// + /// + /// _routing + /// + /// + /// + /// + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. + /// + /// + /// Reindex from remote + /// + /// + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. + /// + /// + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: + /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// + /// + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. + /// + /// + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. + /// + /// + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. + /// + /// + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. + /// + /// + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. + /// + /// + /// Configuring SSL parameters + /// + /// + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Reindex documents. + /// + /// + /// Copy documents from a source to a destination. + /// You can copy all documents to the destination index or reindex a subset of the documents. + /// 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. + /// + /// + /// IMPORTANT: Reindex requires _source to be enabled for all documents in the source. + /// The destination should be configured as wanted before calling the reindex API. + /// Reindex does not copy the settings from the source or its associated template. + /// Mappings, shard counts, and replicas, for example, must be configured ahead of time. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the following security privileges: + /// + /// + /// + /// + /// The read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// The write index privilege for the destination data stream, index, or index alias. + /// + /// + /// + /// + /// To automatically create a data stream or index with a reindex API request, you must have the auto_configure, create_index, or manage index privilege for the destination data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, the source.remote.user must have the monitor cluster privilege and the read index privilege for the source data stream, index, or alias. + /// + /// + /// + /// + /// If reindexing from a remote cluster, you must explicitly allow the remote host in the reindex.remote.whitelist setting. + /// Automatic data stream creation requires a matching index template with data stream enabled. + /// + /// + /// The dest element can be configured like the index API to control optimistic concurrency control. + /// Omitting version_type or setting it to internal causes Elasticsearch to blindly dump documents into the destination, overwriting any that happen to have the same ID. + /// + /// + /// Setting version_type to external causes Elasticsearch to preserve the version from the source, create any documents that are missing, and update any documents that have an older version in the destination than they do in the source. + /// + /// + /// Setting op_type to create causes the reindex API to create only missing documents in the destination. + /// All existing documents will cause a version conflict. + /// + /// + /// IMPORTANT: Because data streams are append-only, any reindex request to a destination data stream must have an op_type of create. + /// A reindex can only add new documents to a destination data stream. + /// It cannot update existing documents in a destination data stream. + /// + /// + /// By default, version conflicts abort the reindex process. + /// To continue reindexing if there are conflicts, set the conflicts request body property to proceed. + /// In this case, the response includes a count of the version conflicts that were encountered. + /// Note that the handling of other error types is unaffected by the conflicts property. + /// Additionally, if you opt to count version conflicts, the operation could attempt to reindex more documents from the source than max_docs until it has successfully indexed max_docs documents into the target or it has gone through every document in the source query. + /// + /// + /// NOTE: The reindex API makes no effort to handle ID collisions. + /// The last document written will "win" but the order isn't usually predictable so it is not a good idea to rely on this behavior. + /// Instead, make sure that IDs are unique by using a script. + /// + /// + /// Running reindex asynchronously + /// + /// + /// If the request contains wait_for_completion=false, Elasticsearch performs some preflight checks, launches the request, and returns a task you can use to cancel or get the status of the task. + /// Elasticsearch creates a record of this task as a document at _tasks/<task_id>. + /// + /// + /// Reindex from multiple sources + /// + /// + /// If you have many sources to reindex it is generally better to reindex them one at a time rather than using a glob pattern to pick up multiple sources. + /// That way you can resume the process if there are any errors by removing the partially completed source and starting over. + /// It also makes parallelizing the process fairly simple: split the list of sources to reindex and run each list in parallel. + /// + /// + /// For example, you can use a bash script like this: + /// + /// + /// for index in i1 i2 i3 i4 i5; do + /// curl -HContent-Type:application/json -XPOST localhost:9200/_reindex?pretty -d'{ + /// "source": { + /// "index": "'$index'" + /// }, + /// "dest": { + /// "index": "'$index'-reindexed" + /// } + /// }' + /// done + /// + /// + /// ** Throttling** /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// 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. + /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. + /// Requests are throttled by padding each batch with a wait time. + /// To turn off throttling, set requests_per_second to -1. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new BulkRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// 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. + /// The throttling is done by waiting between batches so that the scroll that reindex uses internally can be given a timeout that takes into account the padding. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new BulkRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// 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. + /// Since the batch is issued as a single bulk request, large batch sizes cause Elasticsearch to create many requests and then wait for a while before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkAsync(CancellationToken cancellationToken = default) - { - var descriptor = new BulkRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// 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. + /// Slicing /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new BulkRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Clear a scrolling search. + /// Reindex supports sliced scroll to parallelize the reindexing process. + /// This parallelization can improve efficiency and provide a convenient way to break the request down into smaller parts. /// /// - /// Clear the search context and results for a scrolling search. + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Clear a scrolling search. + /// You can slice a reindex request manually by providing a slice ID and total number of slices to each request. + /// You can also let reindex automatically parallelize by using sliced scroll to slice on _id. + /// The slices parameter specifies the number of slices to use. /// /// - /// Clear the search context and results for a scrolling search. + /// Adding slices to the reindex request just automates the manual process, creating sub-requests which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Clear a scrolling search. + /// You can see these requests in the tasks API. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// Clear the search context and results for a scrolling search. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Clear a scrolling search. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// + /// + /// /// - /// Clear the search context and results for a scrolling search. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearScrollResponse ClearScroll() - { - var descriptor = new ClearScrollRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Clear a scrolling search. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// Clear the search context and results for a scrolling search. + /// Due to the nature of slices, each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClearScrollResponse ClearScroll(Action configureRequest) - { - var descriptor = new ClearScrollRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Clear a scrolling search. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the previous point about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being reindexed. /// + /// + /// /// - /// Clear the search context and results for a scrolling search. + /// Each sub-request gets a slightly different snapshot of the source, though these are all taken at approximately the same time. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Clear a scrolling search. + /// If slicing automatically, setting slices to auto will choose a reasonable number for most indices. + /// If slicing manually or otherwise tuning automatic slicing, use the following guidelines. /// /// - /// Clear the search context and results for a scrolling search. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index. + /// If that number is large (for example, 500), choose a lower number as too many slices will hurt performance. + /// Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClearScrollRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Clear a scrolling search. + /// Indexing performance scales linearly across available resources with the number of slices. /// /// - /// Clear the search context and results for a scrolling search. + /// Whether query or indexing performance dominates the runtime depends on the documents being reindexed and cluster resources. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClearScrollRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Close a point in time. + /// Modify documents during reindexing /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// Like _update_by_query, reindex operations support a script that modifies the document. + /// Unlike _update_by_query, the script is allowed to modify the document's metadata. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Close a point in time. + /// Just as in _update_by_query, you can set ctx.op to change the operation that is run on the destination. + /// For example, set ctx.op to noop if your script decides that the document doesn’t have to be indexed in the destination. This "no operation" will be reported in the noop counter in the response body. + /// Set ctx.op to delete if your script decides that the document must be deleted from the destination. + /// The deletion will be reported in the deleted counter in the response body. + /// Setting ctx.op to anything else will return an error, as will setting any other field in ctx. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// Think of the possibilities! Just be careful; you are able to change: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Close a point in time. + /// _id /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// _index /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Close a point in time. + /// _version /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// _routing /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClosePointInTimeResponse ClosePointInTime() - { - var descriptor = new ClosePointInTimeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Close a point in time. + /// Setting _version to null or clearing it from the ctx map is just like not sending the version in an indexing request. + /// It will cause the document to be overwritten in the destination regardless of the version on the target or the version type you use in the reindex API. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// Reindex from remote /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) - { - var descriptor = new ClosePointInTimeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Close a point in time. + /// Reindex supports reindexing from a remote Elasticsearch cluster. + /// The host parameter must contain a scheme, host, port, and optional path. + /// The username and password parameters are optional and when they are present the reindex operation will connect to the remote Elasticsearch node using basic authentication. + /// Be sure to use HTTPS when using basic authentication or the password will be sent in plain text. + /// There are a range of settings available to configure the behavior of the HTTPS connection. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// When using Elastic Cloud, it is also possible to authenticate against the remote cluster through the use of a valid API key. + /// Remote hosts must be explicitly allowed with the reindex.remote.whitelist setting. + /// It can be set to a comma delimited list of allowed remote host and port combinations. + /// Scheme is ignored; only the host and port are used. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// reindex.remote.whitelist: [otherhost:9200, another:9200, 127.0.10.*:9200, localhost:*"] + /// /// - /// Close a point in time. + /// The list of allowed hosts must be configured on any nodes that will coordinate the reindex. + /// This feature should work with remote clusters of any version of Elasticsearch. + /// This should enable you to upgrade from any version of Elasticsearch to the current version by reindexing from a cluster of the old version. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// WARNING: Elasticsearch does not support forward compatibility across major versions. + /// For example, you cannot reindex from a 7.x cluster into a 6.x cluster. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ClosePointInTimeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Close a point in time. + /// To enable queries sent to older versions of Elasticsearch, the query parameter is sent directly to the remote host without validation or modification. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. - /// A point in time is automatically closed when the keep_alive period has elapsed. - /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. + /// NOTE: Reindexing from remote clusters does not support manual or automatic slicing. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ClosePointInTimeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Reindexing from a remote server uses an on-heap buffer that defaults to a maximum size of 100mb. + /// If the remote index includes very large documents you'll need to use a smaller batch size. + /// It is also possible to set the socket read timeout on the remote connection with the socket_timeout field and the connection timeout with the connect_timeout field. + /// Both default to 30 seconds. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(CountRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Configuring SSL parameters /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CountRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Reindex from remote supports configurable SSL settings. + /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. + /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(CountRequestDescriptor descriptor) + public virtual Task ReindexAsync(Action configureRequest, CancellationToken cancellationToken = default) { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, CountResponse, CountRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new CountRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, CountResponse, CountRequestParameters>(descriptor); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) - { - var descriptor = new CountRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CountResponse, CountRequestParameters>(descriptor); - } - - /// + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count() + public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequest request) { - var descriptor = new CountRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, CountResponse, CountRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(Action> configureRequest) - { - var descriptor = new CountRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CountResponse, CountRequestParameters>(descriptor); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(CountRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices) + public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequest request, CancellationToken cancellationToken = default) { - var descriptor = new CountRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) - { - var descriptor = new CountRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count() - { - var descriptor = new CountRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CountResponse Count(Action configureRequest) - { - var descriptor = new CountRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// - /// Count search results. - /// Get the number of documents matching a query. - /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CountAsync(CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id taskId) { - var descriptor = new CountRequestDescriptor(); + var descriptor = new ReindexRethrottleRequestDescriptor(taskId); descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new CountRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) { - var descriptor = new CountRequestDescriptor(indices); + var descriptor = new ReindexRethrottleRequestDescriptor(taskId); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// + /// + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new CountRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// + /// + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CountAsync(CancellationToken cancellationToken = default) + public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { - var descriptor = new CountRequestDescriptor(); + var descriptor = new ReindexRethrottleRequestDescriptor(taskId); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Count search results. - /// Get the number of documents matching a query. + /// Throttle a reindex operation. + /// + /// + /// Change the number of requests per second for a particular reindex operation. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1 + /// + /// + /// Rethrottling that speeds up the query takes effect immediately. + /// Rethrottling that slows down the query will take effect after completing the current batch. + /// This behavior prevents scroll timeouts. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CountAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new CountRequestDescriptor(); + var descriptor = new ReindexRethrottleRequestDescriptor(taskId); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Render a search template as a search request body. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(CreateRequest request) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequest request) { request.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(request); + return DoRequest(request); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(CreateRequest request, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(CreateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); - } - - /// /// - /// 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. + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) { - var descriptor = new CreateRequestDescriptor(document, index, id); descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new CreateRequestDescriptor(document, index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); - } - - /// /// - /// 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. + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document) + public virtual RenderSearchTemplateResponse RenderSearchTemplate() { - var descriptor = new CreateRequestDescriptor(document); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Action> configureRequest) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action> configureRequest) { - var descriptor = new CreateRequestDescriptor(document); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new CreateRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); - } - - /// /// - /// 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. + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) { - var descriptor = new CreateRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Render a search template as a search request body. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.Id id) + public virtual RenderSearchTemplateResponse RenderSearchTemplate() { - var descriptor = new CreateRequestDescriptor(document, id); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action configureRequest) { - var descriptor = new CreateRequestDescriptor(document, id); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(CreateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document, index, id); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document, index, id); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task CreateAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new CreateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// 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. + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Render a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Render a search template as a search request body. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document, index); + var descriptor = new RenderSearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Render a search template. + /// + /// + /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document, index); + var descriptor = new RenderSearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequest request) { - var descriptor = new CreateRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest, ScriptsPainlessExecuteRequestParameters>(request); } /// /// - /// 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. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequest request, CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequestAsync, ScriptsPainlessExecuteRequestParameters>(request, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(DeleteRequest request) + public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequestDescriptor descriptor) { - request.BeforeRequest(); - return DoRequest(request); + descriptor.BeforeRequest(); + return DoRequest, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(DeleteRequest request, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute() { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) + public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(Action> configureRequest) { + var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequest, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + public virtual Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(index, id); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequestAsync, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual Task> ScriptsPainlessExecuteAsync(CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); + var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequestAsync, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a script. + /// Runs a script and returns a result. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(TDocument document) + public virtual Task> ScriptsPainlessExecuteAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(document); + var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequestAsync, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a scrolling search. + /// + /// + /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// + /// + /// The scroll API gets large sets of results from a single scrolling search request. + /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. + /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. + /// The search response returns a scroll ID in the _scroll_id response body parameter. + /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. + /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// + /// + /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// + /// + /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(TDocument document, Action> configureRequest) + public virtual ScrollResponse Scroll(ScrollRequest request) { - var descriptor = new DeleteRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequest, ScrollRequestParameters>(request); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a scrolling search. + /// + /// + /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// + /// + /// The scroll API gets large sets of results from a single scrolling search request. + /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. + /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. + /// The search response returns a scroll ID in the _scroll_id response body parameter. + /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. + /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// + /// + /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// + /// + /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + public virtual Task> ScrollAsync(ScrollRequest request, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequestAsync, ScrollRequestParameters>(request, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + public virtual SearchResponse Search(SearchRequest request) { - var descriptor = new DeleteRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequest, SearchRequestParameters>(request); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.Id id) + public virtual Task> SearchAsync(SearchRequest request, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequestAsync, SearchRequestParameters>(request, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual SearchResponse Search(SearchRequestDescriptor descriptor) { - var descriptor = new DeleteRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) + public virtual SearchResponse Search(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new DeleteRequestDescriptor(id); + var descriptor = new SearchRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual SearchResponse Search(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new DeleteRequestDescriptor(id); + var descriptor = new SearchRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) + public virtual SearchResponse Search() { + var descriptor = new SearchRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new DeleteRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual SearchResponse Search(Action> configureRequest) { - var descriptor = new DeleteRequestDescriptor(index, id); + var descriptor = new SearchRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> SearchAsync(SearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(index, id); + var descriptor = new SearchRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(index, id); + var descriptor = new SearchRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(TDocument document, CancellationToken cancellationToken = default) + public virtual Task> SearchAsync(CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(document); + var descriptor = new SearchRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Run a search. + /// + /// + /// Get search hits that match the query defined in the request. + /// You can provide search queries using the q query string parameter or the request body. + /// If both are specified, only the query parameter is used. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the read index privilege for the target data stream, index, or alias. For cross-cluster search, refer to the documentation about configuring CCS privileges. + /// To search a point in time (PIT) for an alias, you must have the read index privilege for the alias's data streams or indices. + /// + /// + /// Search slicing + /// + /// + /// When paging through a large number of documents, it can be helpful to split the search into multiple slices to consume them independently with the slice and pit properties. + /// By default the splitting is done first on the shards, then locally on each shard. + /// The local splitting partitions the shard into contiguous ranges based on Lucene document IDs. + /// + /// + /// For instance if the number of shards is equal to 2 and you request 4 slices, the slices 0 and 2 are assigned to the first shard and the slices 1 and 3 are assigned to the second shard. + /// + /// + /// IMPORTANT: The same point-in-time ID should be used for all slices. + /// If different PIT IDs are used, slices can overlap and miss documents. + /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(document); + var descriptor = new SearchRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Search a vector tile. + /// + /// + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. + /// + /// + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: + /// + /// + /// + /// + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. + /// + /// + /// + /// + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. + /// + /// + /// + /// + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. + /// + /// + /// + /// + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + /// + /// + /// + /// + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search + /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// + /// + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: + /// + /// + /// + /// + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. + /// + /// + /// + /// + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. + /// + /// + /// + /// + /// A meta layer containing: + /// + /// + /// + /// + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. + /// + /// + /// + /// + /// Metadata for the search. + /// + /// + /// + /// + /// + /// + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile + /// + /// + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. + /// + /// + /// Grid precision for geohex + /// + /// + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. + /// + /// + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. + /// + /// + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + /// + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) { - var descriptor = new DeleteRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Search a vector tile. + /// + /// + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. + /// + /// + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: + /// + /// + /// + /// + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. + /// + /// + /// + /// + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. + /// + /// + /// + /// + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. + /// + /// + /// + /// + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + /// + /// + /// + /// + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search + /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// + /// + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: + /// + /// + /// + /// + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. + /// + /// + /// + /// + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. + /// + /// + /// + /// + /// A meta layer containing: + /// + /// + /// + /// + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. + /// + /// + /// + /// + /// Metadata for the search. + /// + /// + /// + /// + /// + /// + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile + /// + /// + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. + /// + /// + /// Grid precision for geohex + /// + /// + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. + /// + /// + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. + /// + /// + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task SearchMvtAsync(SearchMvtRequest request, CancellationToken cancellationToken = default) { - var descriptor = new DeleteRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete a document. - /// Removes a JSON document from the specified index. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(DeleteByQueryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery() - { - var descriptor = new DeleteByQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(Action> configureRequest) - { - var descriptor = new DeleteByQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// + /// + /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. + /// + /// + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. + /// + /// + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + /// + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DeleteByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor) { - var descriptor = new DeleteByQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); } /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Delete documents. - /// Deletes documents that match the specified query. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Throttle a delete by query operation. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Throttle a delete by query operation. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// + /// + /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Throttle a delete by query operation. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Throttle a delete by query operation. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// + /// + /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId taskId) - { - var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Throttle a delete by query operation. + /// A meta layer containing: /// + /// + /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId taskId, Action configureRequest) - { - var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Throttle a delete by query operation. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// + /// + /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// + /// + /// /// - /// Throttle a delete by query operation. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId taskId, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Throttle a delete by query operation. + /// Grid precision for geotile /// /// - /// Change the number of requests per second for a particular delete by query operation. - /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId taskId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteByQueryRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(DeleteScriptRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) { - var descriptor = new DeleteScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); descriptor.BeforeRequest(); - return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); } /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Search a vector tile. + /// + /// + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. + /// + /// + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: + /// + /// + /// + /// + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. + /// + /// + /// + /// + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. + /// + /// + /// + /// + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. + /// + /// + /// + /// + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + /// + /// + /// + /// + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search + /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// + /// + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: + /// + /// + /// + /// + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. + /// + /// + /// + /// + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. + /// + /// + /// + /// + /// A meta layer containing: + /// + /// + /// + /// + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. + /// + /// + /// + /// + /// Metadata for the search. + /// + /// + /// + /// + /// + /// + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile + /// + /// + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. + /// + /// + /// Grid precision for geohex + /// + /// + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) { - var descriptor = new DeleteScriptRequestDescriptor(id); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); } /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Delete a script or search template. - /// Deletes a stored script or search template. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(ExistsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExistsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(TDocument document) - { - var descriptor = new ExistsRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(TDocument document, Action> configureRequest) - { - var descriptor = new ExistsRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new ExistsRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new ExistsRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// + /// + /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExistsRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExistsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Grid precision for geohex + /// + /// + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) { - var descriptor = new ExistsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); } /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check a document. - /// Checks if a specified document exists. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(ExistsSourceRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(TDocument document) - { - var descriptor = new ExistsSourceRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(TDocument document, Action> configureRequest) - { - var descriptor = new ExistsSourceRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. + /// + /// + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new ExistsSourceRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) { - var descriptor = new ExistsSourceRequestDescriptor(document, index); + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); } /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsSourceRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExistsSourceRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsSourceRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExistsSourceRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + /// + /// + /// + /// + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search + /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// + /// + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: + /// + /// + /// + /// + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. + /// + /// + /// + /// + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. + /// + /// + /// + /// + /// A meta layer containing: + /// + /// + /// + /// + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. + /// + /// + /// + /// + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// + /// + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile + /// + /// + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. + /// + /// + /// Grid precision for geohex + /// + /// + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. + /// + /// + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. + /// + /// + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + /// + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor) { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// A meta layer containing: + /// + /// + /// + /// + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. + /// + /// + /// + /// + /// Metadata for the search. + /// + /// + /// + /// + /// + /// + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Check for a document source. - /// Checks if a document's _source is stored. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExistsSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(ExplainRequest request) - { - request.BeforeRequest(); - return DoRequest, ExplainRequestParameters>(request); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(ExplainRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, ExplainRequestParameters>(request, cancellationToken); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(ExplainRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExplainRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) { - var descriptor = new ExplainRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + return DoRequest(descriptor); } /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(TDocument document) - { - var descriptor = new ExplainRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(TDocument document, Action> configureRequest) - { - var descriptor = new ExplainRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new ExplainRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new ExplainRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExplainRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExplainRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new ExplainRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new ExplainRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(ExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// + /// + /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile + /// + /// + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. + /// + /// + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new ExplainRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Explain a document match result. - /// Returns information about why a specific document matches, or doesn’t match, a query. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + /// + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action configureRequest) { - var descriptor = new ExplainRequestDescriptor(id); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Get the field capabilities. + /// Search a vector tile. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(FieldCapsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); - } - - /// + /// + /// + /// + /// /// - /// Get the field capabilities. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps() - { - var descriptor = new FieldCapsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); - } - - /// /// - /// Get the field capabilities. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Grid precision for geohex /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(Action> configureRequest) - { - var descriptor = new FieldCapsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); - } - - /// /// - /// Get the field capabilities. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) + public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get the field capabilities. + /// Search a vector tile. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps() - { - var descriptor = new FieldCapsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual FieldCapsResponse FieldCaps(Action configureRequest) - { - var descriptor = new FieldCapsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// + /// + /// /// - /// Get the field capabilities. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get the field capabilities. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Grid precision for geohex /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get the field capabilities. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) { - var descriptor = new FieldCapsRequestDescriptor(); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get the field capabilities. + /// Search a vector tile. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the field capabilities. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// + /// + /// /// - /// Get information about the capabilities of fields among multiple indices. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// + /// + /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// + /// + /// /// - /// Get the field capabilities. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// /// - /// Get information about the capabilities of fields among multiple indices. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// /// - /// For data streams, the API returns field capabilities among the stream’s backing indices. - /// It returns runtime fields like any other field. - /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task FieldCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new FieldCapsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(GetRequest request) - { - request.BeforeRequest(); - return DoRequest, GetRequestParameters>(request); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(GetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, GetRequestParameters>(request, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(GetRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + /// + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetRequestDescriptor(index, id); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(TDocument document) - { - var descriptor = new GetRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(TDocument document, Action> configureRequest) - { - var descriptor = new GetRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new GetRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new GetRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new GetRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. + /// + /// + /// + /// + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search + /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// + /// + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: + /// + /// + /// + /// + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. + /// + /// + /// + /// + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. + /// + /// + /// + /// + /// A meta layer containing: + /// + /// + /// + /// + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. + /// + /// + /// + /// + /// Metadata for the search. + /// + /// + /// + /// + /// + /// + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new GetRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetResponse, GetRequestParameters>(descriptor); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(GetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> GetAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) { - var descriptor = new GetRequestDescriptor(document); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document by its ID. - /// Retrieves the document with the specified ID from an index. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(GetScriptRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptAsync(GetScriptRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new GetScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new GetScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// + /// + /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. + /// + /// + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. + /// + /// + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get a script or search template. - /// Retrieves a stored script or search template. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | + /// + /// + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new GetScriptRequestDescriptor(id); + var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get script contexts. + /// Search a vector tile. /// /// - /// Get a list of supported script contexts and their methods. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Get script contexts. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptContextAsync(GetScriptContextRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Get script contexts. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get script contexts. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptContextResponse GetScriptContext() - { - var descriptor = new GetScriptContextRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Get script contexts. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptContextResponse GetScriptContext(Action configureRequest) - { - var descriptor = new GetScriptContextRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get script contexts. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// A meta layer containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptContextAsync(GetScriptContextRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get script contexts. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptContextAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptContextRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get script contexts. + /// Metadata for the search. /// + /// + /// + /// + /// /// - /// Get a list of supported script contexts and their methods. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptContextAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptContextRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get script languages. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// /// - /// Get a list of available script types, languages, and contexts. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Get script languages. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// /// - /// Get a list of available script types, languages, and contexts. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Get script languages. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// /// - /// Get a list of available script types, languages, and contexts. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get script languages. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// /// - /// Get a list of available script types, languages, and contexts. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptLanguagesResponse GetScriptLanguages() + public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new GetScriptLanguagesRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get script languages. + /// Search a vector tile. /// /// - /// Get a list of available script types, languages, and contexts. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetScriptLanguagesResponse GetScriptLanguages(Action configureRequest) - { - var descriptor = new GetScriptLanguagesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get script languages. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// + /// + /// /// - /// Get a list of available script types, languages, and contexts. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get script languages. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// + /// + /// /// - /// Get a list of available script types, languages, and contexts. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptLanguagesAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptLanguagesRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get script languages. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// + /// + /// /// - /// Get a list of available script types, languages, and contexts. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetScriptLanguagesAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetScriptLanguagesRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(GetSourceRequest request) - { - request.BeforeRequest(); - return DoRequest, GetSourceRequestParameters>(request); - } - - /// + /// + /// + /// + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. + /// + /// + /// + /// + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. + /// + /// + /// + /// + /// A meta layer containing: + /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, GetSourceRequestParameters>(request, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(GetSourceRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Metadata for the search. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// + /// + /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new GetSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(TDocument document) - { - var descriptor = new GetSourceRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(TDocument document, Action> configureRequest) - { - var descriptor = new GetSourceRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new GetSourceRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Grid precision for geohex /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new GetSourceRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetSourceRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new GetSourceRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new GetSourceRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) { - var descriptor = new GetSourceRequestDescriptor(id); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); descriptor.BeforeRequest(); - return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Search a vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(GetSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Search a vector tile for geospatial values. + /// Before using this API, you should be familiar with the Mapbox vector tile specification. + /// The API returns results as a binary mapbox vector tile. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Internally, Elasticsearch translates a vector tile search API request into a search containing: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// A geo_bounding_box query on the <field>. The query uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// A geotile_grid or geohex_grid aggregation on the <field>. The grid_agg parameter determines the aggregation type. The aggregation uses the <zoom>/<x>/<y> tile as a bounding box. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// Optionally, a geo_bounds aggregation on the <field>. The search only includes this aggregation if the exact_bounds parameter is true. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// If the optional parameter with_labels is true, the internal search will include a dynamic runtime field that calls the getLabelPosition function of the geometry doc value. This enables the generation of new point features containing suggested geometry labels, so that, for example, multi-polygons will have only one label. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// For example, Elasticsearch may translate a vector tile search API request with a grid_agg argument of geotile and an exact_bounds argument of true into the following search /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// GET my-index/_search + /// { + /// "size": 10000, + /// "query": { + /// "geo_bounding_box": { + /// "my-geo-field": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "aggregations": { + /// "grid": { + /// "geotile_grid": { + /// "field": "my-geo-field", + /// "precision": 11, + /// "size": 65536, + /// "bounds": { + /// "top_left": { + /// "lat": -40.979898069620134, + /// "lon": -45 + /// }, + /// "bottom_right": { + /// "lat": -66.51326044311186, + /// "lon": 0 + /// } + /// } + /// } + /// }, + /// "bounds": { + /// "geo_bounds": { + /// "field": "my-geo-field", + /// "wrap_longitude": false + /// } + /// } + /// } + /// } + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// The API returns results as a binary Mapbox vector tile. + /// Mapbox vector tiles are encoded as Google Protobufs (PBF). By default, the tile contains three layers: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// A hits layer containing a feature for each <field> value matching the geo_bounding_box query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get a document's source. - /// Returns the source of a document. + /// An aggs layer containing a feature for each cell of the geotile_grid or geohex_grid. The layer only contains features for cells with matching data. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetSourceRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// A meta layer containing: /// + /// + /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// A feature containing a bounding box. By default, this is the bounding box of the tile. + /// + /// + /// + /// + /// Value ranges for any sub-aggregations on the geotile_grid or geohex_grid. /// + /// + /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// Metadata for the search. /// + /// + /// + /// + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// The API only returns features that can display at its zoom level. + /// For example, if a polygon feature has no area at its zoom level, the API omits it. + /// The API returns errors as UTF-8 encoded JSON. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// IMPORTANT: You can specify several options for this API as either a query parameter or request body parameter. + /// If you specify both parameters, the query parameter takes precedence. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// Grid precision for geotile /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthReportResponse HealthReport(HealthReportRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// For a grid_agg of geotile, you can use cells in the aggs layer as tiles for lower zoom levels. + /// grid_precision represents the additional zoom levels available through these cells. The final precision is computed by as follows: <zoom> + grid_precision. + /// For example, if <zoom> is 7 and grid_precision is 8, then the geotile_grid aggregation will use a precision of 15. + /// The maximum final precision is 29. + /// The grid_precision also determines the number of cells for the grid as follows: (2^grid_precision) x (2^grid_precision). + /// For example, a value of 8 divides the tile into a grid of 256 x 256 cells. + /// The aggs layer only contains features for cells with matching data. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Grid precision for geohex /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// For a grid_agg of geohex, Elasticsearch uses <zoom> and grid_precision to calculate a final precision as follows: <zoom> + grid_precision. /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// This precision determines the H3 resolution of the hexagonal cells produced by the geohex aggregation. + /// The following table maps the H3 resolution for each precision. + /// For example, if <zoom> is 3 and grid_precision is 3, the precision is 6. + /// At a precision of 6, hexagonal cells have an H3 resolution of 2. + /// If <zoom> is 3 and grid_precision is 4, the precision is 7. + /// At a precision of 7, hexagonal cells have an H3 resolution of 3. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// | Precision | Unique tile bins | H3 resolution | Unique hex bins | Ratio | + /// | --------- | ---------------- | ------------- | ----------------| ----- | + /// | 1 | 4 | 0 | 122 | 30.5 | + /// | 2 | 16 | 0 | 122 | 7.625 | + /// | 3 | 64 | 1 | 842 | 13.15625 | + /// | 4 | 256 | 1 | 842 | 3.2890625 | + /// | 5 | 1024 | 2 | 5882 | 5.744140625 | + /// | 6 | 4096 | 2 | 5882 | 1.436035156 | + /// | 7 | 16384 | 3 | 41162 | 2.512329102 | + /// | 8 | 65536 | 3 | 41162 | 0.6280822754 | + /// | 9 | 262144 | 4 | 288122 | 1.099098206 | + /// | 10 | 1048576 | 4 | 288122 | 0.2747745514 | + /// | 11 | 4194304 | 5 | 2016842 | 0.4808526039 | + /// | 12 | 16777216 | 6 | 14117882 | 0.8414913416 | + /// | 13 | 67108864 | 6 | 14117882 | 0.2103728354 | + /// | 14 | 268435456 | 7 | 98825162 | 0.3681524172 | + /// | 15 | 1073741824 | 8 | 691776122 | 0.644266719 | + /// | 16 | 4294967296 | 8 | 691776122 | 0.1610666797 | + /// | 17 | 17179869184 | 9 | 4842432842 | 0.2818666889 | + /// | 18 | 68719476736 | 10 | 33897029882 | 0.4932667053 | + /// | 19 | 274877906944 | 11 | 237279209162 | 0.8632167343 | + /// | 20 | 1099511627776 | 11 | 237279209162 | 0.2158041836 | + /// | 21 | 4398046511104 | 12 | 1660954464122 | 0.3776573213 | + /// | 22 | 17592186044416 | 13 | 11626681248842 | 0.6609003122 | + /// | 23 | 70368744177664 | 13 | 11626681248842 | 0.165225078 | + /// | 24 | 281474976710656 | 14 | 81386768741882 | 0.2891438866 | + /// | 25 | 1125899906842620 | 15 | 569707381193162 | 0.5060018015 | + /// | 26 | 4503599627370500 | 15 | 569707381193162 | 0.1265004504 | + /// | 27 | 18014398509482000 | 15 | 569707381193162 | 0.03162511259 | + /// | 28 | 72057594037927900 | 15 | 569707381193162 | 0.007906278149 | + /// | 29 | 288230376151712000 | 15 | 569707381193162 | 0.001976569537 | /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// Hexagonal cells don't align perfectly on a vector tile. + /// Some cells may intersect more than one vector tile. + /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. + /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthReportAsync(HealthReportRequest request, CancellationToken cancellationToken = default) + public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action configureRequest, CancellationToken cancellationToken = default) { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards(SearchShardsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthReportResponse HealthReport(HealthReportRequestDescriptor descriptor) + public virtual Task SearchShardsAsync(SearchShardsRequest request, CancellationToken cancellationToken = default) { - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthReportResponse HealthReport(IReadOnlyCollection? feature) + public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new HealthReportRequestDescriptor(feature); + var descriptor = new SearchShardsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + { + var descriptor = new SearchShardsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthReportResponse HealthReport(IReadOnlyCollection? feature, Action configureRequest) + public virtual SearchShardsResponse SearchShards() { - var descriptor = new HealthReportRequestDescriptor(feature); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchShardsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards(Action> configureRequest) + { + var descriptor = new SearchShardsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthReportResponse HealthReport() + public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) { - var descriptor = new HealthReportRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) + { + var descriptor = new SearchShardsRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual HealthReportResponse HealthReport(Action configureRequest) + public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) { - var descriptor = new HealthReportRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards() + { + var descriptor = new SearchShardsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthReportAsync(HealthReportRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SearchShardsResponse SearchShards(Action configureRequest) { + var descriptor = new SearchShardsRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthReportAsync(IReadOnlyCollection? feature, CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new HealthReportRequestDescriptor(feature); + var descriptor = new SearchShardsRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new SearchShardsRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthReportAsync(IReadOnlyCollection? feature, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) { - var descriptor = new HealthReportRequestDescriptor(feature); - configureRequest?.Invoke(descriptor); + var descriptor = new SearchShardsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchShardsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new SearchShardsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthReportAsync(CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new HealthReportRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get the cluster health. - /// Get a report with the health status of an Elasticsearch cluster. - /// The report contains a list of indicators that compose Elasticsearch functionality. + /// Get the search shards. /// /// - /// Each indicator has a health status of: green, unknown, yellow or red. - /// The indicator will provide an explanation and metadata describing the reason for its current health status. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// The cluster’s status is controlled by the worst indicator status. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) + { + var descriptor = new SearchShardsRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// /// - /// In the event that an indicator’s status is non-green, a list of impacts may be present in the indicator result which detail the functionalities that are negatively affected by the health issue. - /// Each impact carries with it a severity level, an area of the system that is affected, and a simple description of the impact on the system. + /// Get the search shards. /// /// - /// Some health indicators can determine the root cause of a health problem and prescribe a set of steps that can be performed in order to improve the health of the system. - /// The root cause and remediation steps are encapsulated in a diagnosis. - /// A diagnosis contains a cause detailing a root cause analysis, an action containing a brief description of the steps to take to fix the problem, the list of affected resources (if applicable), and a detailed step-by-step troubleshooting guide to fix the diagnosed problem. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// /// - /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. - /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task HealthReportAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new HealthReportRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Get the search shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(IndexRequest request) - { - request.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(request); - } - - /// /// - /// 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. + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task IndexAsync(IndexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(request, cancellationToken); - } - - /// /// - /// 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. + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(IndexRequestDescriptor descriptor) + public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) { + var descriptor = new SearchShardsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Get the search shards. + /// + /// + /// Get the indices and shards that a search request would be run against. + /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. + /// When filtered aliases are used, the filter is returned as part of the indices section. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) + public virtual Task SearchShardsAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document, index, id); + var descriptor = new SearchShardsRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) + public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequest request) { - var descriptor = new IndexRequestDescriptor(document, index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequest, SearchTemplateRequestParameters>(request); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document) + public virtual Task> SearchTemplateAsync(SearchTemplateRequest request, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequestAsync, SearchTemplateRequestParameters>(request, cancellationToken); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Action> configureRequest) + public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequestDescriptor descriptor) { - var descriptor = new IndexRequestDescriptor(document); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) { - var descriptor = new IndexRequestDescriptor(document, index); + var descriptor = new SearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) { - var descriptor = new IndexRequestDescriptor(document, index); + var descriptor = new SearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.Id? id) + public virtual SearchTemplateResponse SearchTemplate() { - var descriptor = new IndexRequestDescriptor(document, id); + var descriptor = new SearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) + public virtual SearchTemplateResponse SearchTemplate(Action> configureRequest) { - var descriptor = new IndexRequestDescriptor(document, id); + var descriptor = new SearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(IndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document, index, id); + var descriptor = new SearchTemplateRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document, index, id); + var descriptor = new SearchTemplateRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document); + var descriptor = new SearchTemplateRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document); + var descriptor = new SearchTemplateRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) { - var descriptor = new IndexRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest(request); } /// /// - /// 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. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task TermsEnumAsync(TermsEnumRequest request, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// 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. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) { - var descriptor = new IndexRequestDescriptor(document, id); descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } /// /// - /// 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. + /// Get terms in an index. + /// + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new IndexRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); + var descriptor = new TermsEnumRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); + return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual InfoResponse Info(InfoRequest request) + public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - request.BeforeRequest(); - return DoRequest(request); + var descriptor = new TermsEnumRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task InfoAsync(InfoRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual InfoResponse Info(InfoRequestDescriptor descriptor) + public virtual TermsEnumResponse TermsEnum() { + var descriptor = new TermsEnumRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual InfoResponse Info() + public virtual TermsEnumResponse TermsEnum(Action> configureRequest) { - var descriptor = new InfoRequestDescriptor(); + var descriptor = new TermsEnumRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual InfoResponse Info(Action configureRequest) + public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) { - var descriptor = new InfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task InfoAsync(InfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) { + var descriptor = new TermsEnumRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task InfoAsync(CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) { - var descriptor = new InfoRequestDescriptor(); + var descriptor = new TermsEnumRequestDescriptor(index); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Get cluster info. - /// Returns basic information about the cluster. + /// Get terms in an index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new InfoRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest request) + public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - request.BeforeRequest(); - return DoRequest(request); + var descriptor = new TermsEnumRequestDescriptor(index); + descriptor.BeforeRequest(); + return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task MtermvectorsAsync(MultiTermVectorsRequest request, CancellationToken cancellationToken = default) + public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + var descriptor = new TermsEnumRequestDescriptor(index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDescriptor descriptor) + public virtual Task TermsEnumAsync(CancellationToken cancellationToken = default) { + var descriptor = new TermsEnumRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. + /// + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index) + public virtual Task TermsEnumAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiTermVectorsRequestDescriptor(index); + var descriptor = new TermsEnumRequestDescriptor(); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) + public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors() + public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new MultiTermVectorsRequestDescriptor(); + var descriptor = new TermsEnumRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get terms in an index. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Discover terms that match a partial string in an index. + /// This API is designed for low-latency look-ups used in auto-complete scenarios. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(Action> configureRequest) + public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new MultiTermVectorsRequestDescriptor(); + var descriptor = new TermsEnumRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDescriptor descriptor) + public virtual TermVectorsResponse Termvectors(TermVectorsRequest request) { - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(request); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index) + public virtual Task TermvectorsAsync(TermVectorsRequest request, CancellationToken cancellationToken = default) { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(request, cancellationToken); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) + public virtual TermVectorsResponse Termvectors(TermVectorsRequestDescriptor descriptor) { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors() + public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new MultiTermVectorsRequestDescriptor(); + var descriptor = new TermVectorsRequestDescriptor(index, id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiTermVectorsResponse Mtermvectors(Action configureRequest) + public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new MultiTermVectorsRequestDescriptor(); + var descriptor = new TermVectorsRequestDescriptor(index, id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get multiple term vectors. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Fields can be specified using wildcards, similar to the multi match query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get multiple term vectors. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get multiple term vectors. + /// Term information /// + /// + /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// term frequency in the field (always returned) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get multiple term vectors. + /// term positions (positions: true) /// + /// + /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// start and end offsets (offsets: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get multiple term vectors. + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get multiple term vectors. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new MultiTermVectorsRequestDescriptor(index); + var descriptor = new TermVectorsRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Get multiple term vectors. + /// Get term vector information. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get multiple term vectors. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// Fields can be specified using wildcards, similar to the multi match query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get multiple term vectors. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// /// - /// You can specify existing documents by index and ID or provide artificial documents in the body of the request. - /// You can specify the index in the request body or request URI. - /// The response contains a docs array with all the fetched termvectors. - /// Each element has the structure provided by the termvectors API. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task MtermvectorsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiTermVectorsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get multiple documents. + /// Term information /// + /// + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// term frequency in the field (always returned) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiGetResponse MultiGet(MultiGetRequest request) - { - request.BeforeRequest(); - return DoRequest, MultiGetRequestParameters>(request); - } - - /// + /// + /// /// - /// Get multiple documents. + /// term positions (positions: true) /// + /// + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// start and end offsets (offsets: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(MultiGetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, MultiGetRequestParameters>(request, cancellationToken); - } - - /// + /// + /// /// - /// Get multiple documents. + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiGetResponse MultiGet(MultiGetRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); - } - - /// /// - /// Get multiple documents. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// Behaviour /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiGetResponse MultiGet(Elastic.Clients.Elasticsearch.IndexName? index) + public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new MultiGetRequestDescriptor(index); + var descriptor = new TermVectorsRequestDescriptor(index); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Get multiple documents. + /// Get term vector information. /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiGetResponse MultiGet(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) - { - var descriptor = new MultiGetRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); - } - - /// /// - /// Get multiple documents. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// Fields can be specified using wildcards, similar to the multi match query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiGetResponse MultiGet() - { - var descriptor = new MultiGetRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); - } - - /// /// - /// Get multiple documents. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiGetResponse MultiGet(Action> configureRequest) + public virtual TermVectorsResponse Termvectors(TDocument document) { - var descriptor = new MultiGetRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new TermVectorsRequestDescriptor(document); descriptor.BeforeRequest(); - return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Get multiple documents. + /// Get term vector information. /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(MultiGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get multiple documents. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// Fields can be specified using wildcards, similar to the multi match query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get multiple documents. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get multiple documents. + /// Term information /// + /// + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// term frequency in the field (always returned) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiGetAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiGetRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get multiple documents. + /// term positions (positions: true) /// + /// + /// /// - /// Get multiple JSON documents by ID from one or more indices. - /// If you specify an index in the request URI, you only need to specify the document IDs in the request body. - /// To ensure fast responses, this multi get (mget) API responds with partial results if one or more shards fail. + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiGetAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermVectorsResponse Termvectors(TDocument document, Action> configureRequest) { - var descriptor = new MultiGetRequestDescriptor(); + var descriptor = new TermVectorsRequestDescriptor(document); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Run multiple searches. + /// Get term vector information. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// /// - /// header\n - /// body\n - /// header\n - /// body\n + /// GET /my-index-000001/_termvectors/1?fields=message /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(MultiSearchRequest request) - { - request.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(request); - } - - /// /// - /// Run multiple searches. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Term information /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// + /// + /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// term frequency in the field (always returned) /// + /// + /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(MultiSearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, MultiSearchRequestParameters>(request, cancellationToken); - } - - /// + /// + /// /// - /// Run multiple searches. + /// start and end offsets (offsets: true) /// + /// + /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// term payloads (payloads: true), as base64 encoded bytes /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// + /// + /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(MultiSearchRequestDescriptor descriptor) + public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) { + var descriptor = new TermVectorsRequestDescriptor(document, index); descriptor.BeforeRequest(); - return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Run multiple searches. + /// Get term vector information. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// /// - /// header\n - /// body\n - /// header\n - /// body\n + /// GET /my-index-000001/_termvectors/1?fields=message /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new MultiSearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); - } - - /// /// - /// Run multiple searches. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Term information /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// + /// + /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// term frequency in the field (always returned) /// + /// + /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new TermVectorsRequestDescriptor(document, index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Run multiple searches. + /// Get term vector information. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// /// - /// header\n - /// body\n - /// header\n - /// body\n + /// GET /my-index-000001/_termvectors/1?fields=message /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch() - { - var descriptor = new MultiSearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); - } - - /// /// - /// Run multiple searches. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// Behaviour /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchResponse MultiSearch(Action> configureRequest) + public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new MultiSearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new TermVectorsRequestDescriptor(document, id); descriptor.BeforeRequest(); - return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Run multiple searches. + /// Get term vector information. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// /// - /// header\n - /// body\n - /// header\n - /// body\n + /// GET /my-index-000001/_termvectors/1?fields=message /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run multiple searches. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Term information /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// + /// + /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// term frequency in the field (always returned) /// + /// + /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run multiple searches. + /// start and end offsets (offsets: true) /// + /// + /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// term payloads (payloads: true), as base64 encoded bytes /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// + /// + /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new MultiSearchRequestDescriptor(indices); + var descriptor = new TermVectorsRequestDescriptor(document, id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Run multiple searches. + /// Get term vector information. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// /// - /// header\n - /// body\n - /// header\n - /// body\n + /// GET /my-index-000001/_termvectors/1?fields=message /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run multiple searches. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// /// - /// The format of the request is similar to the bulk API format and makes use of the newline delimited JSON (NDJSON) format. - /// The structure is as follows: + /// Term information /// - /// - /// header\n - /// body\n - /// header\n - /// body\n - /// + /// + /// /// - /// This structure is specifically optimized to reduce parsing if a specific search ends up redirected to another node. + /// term frequency in the field (always returned) /// + /// + /// /// - /// IMPORTANT: The final line of data must end with a newline character \n. - /// Each newline character may be preceded by a carriage return \r. - /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run multiple templated searches. + /// start and end offsets (offsets: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(request); - } - - /// + /// + /// /// - /// Run multiple templated searches. + /// term payloads (payloads: true), as base64 encoded bytes /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateRequestParameters>(request, cancellationToken); - } - - /// + /// + /// /// - /// Run multiple templated searches. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run multiple templated searches. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run multiple templated searches. + /// Behaviour /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run multiple templated searches. + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate() + public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.Id? id) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new TermVectorsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Run multiple templated searches. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MultiSearchTemplateResponse MultiSearchTemplate(Action> configureRequest) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run multiple templated searches. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run multiple templated searches. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run multiple templated searches. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run multiple templated searches. + /// Behaviour /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new MultiSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run multiple templated searches. + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) { - var descriptor = new MultiSearchTemplateRequestDescriptor(); + var descriptor = new TermVectorsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); } /// /// - /// Open a point in time. + /// Get term vector information. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Get information and statistics about terms in the fields of a particular document. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Open a point in time. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Open a point in time. + /// Term information /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term frequency in the field (always returned) /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Open a point in time. + /// start and end offsets (offsets: true) /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); - } - - /// /// - /// Open a point in time. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Behaviour /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + public virtual Task TermvectorsAsync(TermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Open a point in time. + /// Get term vector information. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Get information and statistics about terms in the fields of a particular document. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime() - { - var descriptor = new OpenPointInTimeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); - } - - /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Open a point in time. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(Action> configureRequest) - { - var descriptor = new OpenPointInTimeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); - } - - /// /// - /// Open a point in time. + /// Term information /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term frequency in the field (always returned) /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Open a point in time. + /// start and end offsets (offsets: true) /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Open a point in time. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Behaviour /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); + var descriptor = new TermVectorsRequestDescriptor(index, id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Open a point in time. + /// Get term vector information. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Get information and statistics about terms in the fields of a particular document. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Open a point in time. + /// Term information /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term frequency in the field (always returned) /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Open a point in time. + /// start and end offsets (offsets: true) /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); + var descriptor = new TermVectorsRequestDescriptor(index, id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Open a point in time. + /// Get term vector information. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Get information and statistics about terms in the fields of a particular document. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Open a point in time. + /// Fields can be specified using wildcards, similar to the multi match query. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Open a point in time. + /// Term information /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term frequency in the field (always returned) /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Open a point in time. + /// start and end offsets (offsets: true) /// + /// + /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// term payloads (payloads: true), as base64 encoded bytes /// + /// + /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Open a point in time. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// /// - /// A search request by default runs against the most recent visible data of the target indices, - /// which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the - /// state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple - /// search requests using the same point in time. For example, if refreshes happen between - /// search_after requests, then the results of those requests might not be consistent as changes happening - /// between searches are only visible to the more recent point in time. + /// Behaviour /// /// - /// A point in time must be opened explicitly before being used in search requests. - /// The keep_alive parameter tells Elasticsearch how long it should persist. + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new OpenPointInTimeRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); + var descriptor = new TermVectorsRequestDescriptor(index); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PingResponse Ping(PingRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(PingRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PingResponse Ping(PingRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// Fields can be specified using wildcards, similar to the multi match query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PingResponse Ping() - { - var descriptor = new PingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PingResponse Ping(Action configureRequest) - { - var descriptor = new PingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(PingRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// Term information /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(CancellationToken cancellationToken = default) - { - var descriptor = new PingRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Ping the cluster. - /// Get information about whether the cluster is running. + /// term frequency in the field (always returned) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PingAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new PingRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// term positions (positions: true) /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(PutScriptRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutScriptAsync(PutScriptRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Behaviour /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - descriptor.BeforeRequest(); - return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest) + public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new TermVectorsRequestDescriptor(index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) + public virtual Task TermvectorsAsync(TDocument document, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new TermVectorsRequestDescriptor(document); descriptor.BeforeRequest(); - return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + public virtual Task TermvectorsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new TermVectorsRequestDescriptor(document); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) + public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new TermVectorsRequestDescriptor(document, index); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest) + public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new TermVectorsRequestDescriptor(document, index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. + /// + /// + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) + public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new TermVectorsRequestDescriptor(document, id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) - { - var descriptor = new PutScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get information and statistics about terms in the fields of a particular document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Fields can be specified using wildcards, similar to the multi match query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id, context); + var descriptor = new TermVectorsRequestDescriptor(document, id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new TermVectorsRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Get term vector information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information and statistics about terms in the fields of a particular document. + /// + /// + /// You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request. + /// You can specify the fields you are interested in through the fields parameter or by adding the fields to the request body. + /// For example: + /// + /// + /// GET /my-index-000001/_termvectors/1?fields=message + /// + /// + /// Fields can be specified using wildcards, similar to the multi match query. + /// + /// + /// Term vectors are real-time by default, not near real-time. + /// This can be changed by setting realtime parameter to false. + /// + /// + /// You can request three types of values: term information, term statistics, and field statistics. + /// By default, all term information and field statistics are returned for all fields but term statistics are excluded. + /// + /// + /// Term information + /// + /// + /// + /// + /// term frequency in the field (always returned) + /// + /// + /// + /// + /// term positions (positions: true) + /// + /// + /// + /// + /// start and end offsets (offsets: true) + /// + /// + /// + /// + /// term payloads (payloads: true), as base64 encoded bytes + /// + /// + /// + /// + /// If the requested information wasn't stored in the index, it will be computed on the fly if possible. + /// Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user. + /// + /// + /// warn + /// Start and end offsets assume UTF-16 encoding is being used. If you want to use these offsets in order to get the original text that produced this token, you should make sure that the string you are taking a sub-string of is also encoded using UTF-16. + /// + /// + /// Behaviour + /// + /// + /// The term and field statistics are not accurate. + /// Deleted documents are not taken into account. + /// The information is only retrieved for the shard the requested document resides in. + /// The term and field statistics are therefore only useful as relative measures whereas the absolute numbers have no meaning in this context. + /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. + /// Use routing only to hit a particular shard. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); + var descriptor = new TermVectorsRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Update a document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) - { - var descriptor = new PutScriptRequestDescriptor(id, context); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateResponse Update(UpdateRequest request) { - var descriptor = new PutScriptRequestDescriptor(id, context); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequest, UpdateResponse, UpdateRequestParameters>(request); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Update a document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(UpdateRequest request, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + request.BeforeRequest(); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(request, cancellationToken); } /// /// - /// Create or update a script or search template. - /// Creates or updates a stored script or search template. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateResponse Update(UpdateRequestDescriptor descriptor) { - var descriptor = new PutScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(RankEvalRequest request) + public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) { - request.BeforeRequest(); - return DoRequest(request); + var descriptor = new UpdateRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(RankEvalRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Evaluate ranked search results. + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) + public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { + var descriptor = new UpdateRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices) + public virtual UpdateResponse Update(TDocument document) { - var descriptor = new RankEvalRequestDescriptor(indices); + var descriptor = new UpdateRequestDescriptor(document); descriptor.BeforeRequest(); - return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) + public virtual UpdateResponse Update(TDocument document, Action> configureRequest) { - var descriptor = new RankEvalRequestDescriptor(indices); + var descriptor = new UpdateRequestDescriptor(document); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval() + public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) { - var descriptor = new RankEvalRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(document, index); descriptor.BeforeRequest(); - return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(Action> configureRequest) + public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { - var descriptor = new RankEvalRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(document, index); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Evaluate ranked search results. + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices) + public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new RankEvalRequestDescriptor(indices); + var descriptor = new UpdateRequestDescriptor(document, id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) + public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new RankEvalRequestDescriptor(indices); + var descriptor = new UpdateRequestDescriptor(document, id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval() + public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.Id id) { - var descriptor = new RankEvalRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RankEvalResponse RankEval(Action configureRequest) + public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { - var descriptor = new RankEvalRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Evaluate ranked search results. + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Evaluate ranked search results. + /// Gets the document (collocated with the shard) from the index. /// + /// + /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Runs the specified script. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Evaluate ranked search results. + /// Indexes the result. /// + /// + /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(UpdateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new RankEvalRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Evaluate ranked search results. + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Evaluate ranked search results. + /// Gets the document (collocated with the shard) from the index. /// + /// + /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Runs the specified script. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Evaluate ranked search results. + /// Indexes the result. /// + /// + /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new RankEvalRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); + var descriptor = new UpdateRequestDescriptor(index, id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// Evaluate ranked search results. + /// Update a document. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Evaluate ranked search results. + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. /// /// - /// Evaluate the quality of ranked search results over a set of typical search queries. + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RankEvalAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RankEvalRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// 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. + /// Gets the document (collocated with the shard) from the index. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex(ReindexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// 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. + /// Runs the specified script. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexAsync(ReindexRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// 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. + /// Indexes the result. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// 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. + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex() - { - var descriptor = new ReindexRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); - } - - /// /// - /// 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. + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex(Action> configureRequest) + public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(index, id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// 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. + /// Update a document by running a script or passing a partial document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex() + public virtual Task> UpdateAsync(TDocument document, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(document); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexResponse Reindex(Action configureRequest) + public virtual Task> UpdateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(document); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { + var descriptor = new UpdateRequestDescriptor(document, index); descriptor.BeforeRequest(); - return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReindexAsync(CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new UpdateRequestDescriptor(document, id); descriptor.BeforeRequest(); - return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { + var descriptor = new UpdateRequestDescriptor(document, id); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReindexAsync(CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// 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. + /// Update a document. + /// + /// + /// Update a document by running a script or passing a partial document. + /// + /// + /// If the Elasticsearch security features are enabled, you must have the index or write index privilege for the target index or index alias. + /// + /// + /// The script can update, delete, or skip modifying the document. + /// The API also supports passing a partial document, which is merged into the existing document. + /// To fully replace an existing document, use the index API. + /// This operation: + /// + /// + /// + /// + /// Gets the document (collocated with the shard) from the index. + /// + /// + /// + /// + /// Runs the specified script. + /// + /// + /// + /// + /// Indexes the result. + /// + /// + /// + /// + /// The document must still be reindexed, but using this API removes some network roundtrips and reduces chances of version conflicts between the GET and the index operation. + /// + /// + /// The _source field must be enabled to use this API. + /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ReindexAsync(Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); + var descriptor = new UpdateRequestDescriptor(id); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } /// /// - /// Throttle a reindex operation. + /// 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. /// /// - /// Change the number of requests per second for a particular reindex operation. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// + /// + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequest request) + public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Throttle a reindex operation. + /// 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. /// /// - /// Change the number of requests per second for a particular reindex operation. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Throttle a reindex operation. + /// read /// + /// + /// /// - /// Change the number of requests per second for a particular reindex operation. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Throttle a reindex operation. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Change the number of requests per second for a particular reindex operation. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id taskId) - { - var descriptor = new ReindexRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Throttle a reindex operation. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// + /// + /// /// - /// Change the number of requests per second for a particular reindex operation. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) - { - var descriptor = new ReindexRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Throttle a reindex operation. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// + /// + /// /// - /// Change the number of requests per second for a particular reindex operation. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Throttle a reindex operation. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// + /// + /// /// - /// Change the number of requests per second for a particular reindex operation. + /// Canceling the request with slices will cancel each sub-request. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) - { - var descriptor = new ReindexRethrottleRequestDescriptor(taskId); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Throttle a reindex operation. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// + /// + /// /// - /// Change the number of requests per second for a particular reindex operation. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ReindexRethrottleRequestDescriptor(taskId); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// + /// + /// /// - /// Render a search template as a search request body. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Render a search template. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// + /// + /// /// - /// Render a search template as a search request body. + /// Update performance scales linearly across available resources with the number of slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// /// - /// Render a search template as a search request body. + /// Update the document source /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Render a search template. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// /// - /// Render a search template as a search request body. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Render a search template. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// Render a search template as a search request body. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) + public virtual Task UpdateByQueryAsync(UpdateByQueryRequest request, CancellationToken cancellationToken = default) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Render a search template. + /// 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. /// /// - /// Render a search template as a search request body. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate() - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Render a search template. + /// read /// + /// + /// /// - /// Render a search template as a search request body. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action> configureRequest) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Render a search template. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Render a search template as a search request body. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Render a search template. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// Render a search template as a search request body. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Render a search template. + /// Throttling update requests /// /// - /// Render a search template as a search request body. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Render a search template. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Render a search template as a search request body. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate() - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Render a search template. + /// Slicing /// /// - /// Render a search template as a search request body. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action configureRequest) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Render a search template. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// Render a search template as a search request body. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// Render a search template as a search request body. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// + /// + /// /// - /// Render a search template as a search request body. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// Render a search template as a search request body. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// Render a search template as a search request body. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// + /// + /// /// - /// Render a search template as a search request body. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Render a search template. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// Render a search template as a search request body. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } /// /// - /// Render a search template. + /// 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. /// /// - /// Render a search template as a search request body. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// read /// + /// + /// /// - /// Render a search template as a search request body. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Render a search template. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Render a search template as a search request body. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new RenderSearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequest request) - { - request.BeforeRequest(); - return DoRequest, ScriptsPainlessExecuteRequestParameters>(request); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, ScriptsPainlessExecuteRequestParameters>(request, cancellationToken); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// Throttling update requests /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute() - { - var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(Action> configureRequest) - { - var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor); - } - - /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Run a script. - /// Runs a script and returns a result. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// Slicing /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ScriptsPainlessExecuteAsync(CancellationToken cancellationToken = default) - { - var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run a script. - /// Runs a script and returns a result. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ScriptsPainlessExecuteAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ScriptsPainlessExecuteRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, ScriptsPainlessExecuteResponse, ScriptsPainlessExecuteRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run a scrolling search. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// + /// + /// /// - /// The scroll API gets large sets of results from a single scrolling search request. - /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. - /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. - /// The search response returns a scroll ID in the _scroll_id response body parameter. - /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. - /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// + /// + /// /// - /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ScrollResponse Scroll(ScrollRequest request) - { - request.BeforeRequest(); - return DoRequest, ScrollRequestParameters>(request); - } - - /// + /// + /// /// - /// Run a scrolling search. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// + /// + /// /// - /// IMPORTANT: The scroll API is no longer recommend for deep pagination. If you need to preserve the index state while paging through more than 10,000 hits, use the search_after parameter with a point in time (PIT). + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// The scroll API gets large sets of results from a single scrolling search request. - /// To get the necessary scroll ID, submit a search API request that includes an argument for the scroll query parameter. - /// The scroll parameter indicates how long Elasticsearch should retain the search context for the request. - /// The search response returns a scroll ID in the _scroll_id response body parameter. - /// You can then use the scroll ID with the scroll API to retrieve the next batch of results for the request. - /// If the Elasticsearch security features are enabled, the access to the results of a specific scroll ID is restricted to the user or API key that submitted the search. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// + /// + /// /// - /// You can also use the scroll API to specify a new scroll parameter that extends or shortens the retention period for the search context. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> ScrollAsync(ScrollRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, ScrollRequestParameters>(request, cancellationToken); - } - - /// + /// + /// /// - /// Run a search. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// + /// + /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchResponse Search(SearchRequest request) - { - request.BeforeRequest(); - return DoRequest, SearchRequestParameters>(request); - } - - /// + /// + /// /// - /// Run a search. + /// Update performance scales linearly across available resources with the number of slices. /// + /// + /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(SearchRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, SearchRequestParameters>(request, cancellationToken); - } - - /// /// - /// Run a search. + /// Update the document source /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchResponse Search(SearchRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); - } - - /// /// - /// Run a search. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchResponse Search(Elastic.Clients.Elasticsearch.Indices? indices) + public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices) { - var descriptor = new SearchRequestDescriptor(indices); + var descriptor = new UpdateByQueryRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } /// /// - /// Run a search. + /// 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. /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchResponse Search(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) - { - var descriptor = new SearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); - } - - /// /// - /// Run a search. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Throttling update requests /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchResponse Search() - { - var descriptor = new SearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); - } - - /// /// - /// Run a search. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchResponse Search(Action> configureRequest) - { - var descriptor = new SearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); - } - - /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Run a search. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Slicing /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(SearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run a search. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Run a search. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// + /// + /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run a search. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// + /// + /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run a search. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// + /// + /// /// - /// Get search hits that match the query defined in the request. - /// You can provide search queries using the q query string parameter or the request body. - /// If both are specified, only the query parameter is used. + /// Canceling the request with slices will cancel each sub-request. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(SearchMvtRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// Update performance scales linearly across available resources with the number of slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// /// - /// Search a vector tile for geospatial values. + /// Update the document source /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); - } - - /// /// - /// Search a vector tile. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// /// - /// Search a vector tile for geospatial values. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) + public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); + var descriptor = new UpdateByQueryRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } /// /// - /// Search a vector tile. + /// 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. /// /// - /// Search a vector tile for geospatial values. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) - { - var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Search a vector tile. + /// read /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) - { - var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchMvtResponse, SearchMvtRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Search a vector tile. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Search a vector tile for geospatial values. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Search a vector tile. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// Search a vector tile for geospatial values. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Search a vector tile. + /// Throttling update requests /// /// - /// Search a vector tile for geospatial values. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action configureRequest) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Search a vector tile. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Search a vector tile for geospatial values. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Search a vector tile. + /// Slicing /// /// - /// Search a vector tile for geospatial values. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Search a vector tile. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// Search a vector tile for geospatial values. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) - { - var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// Canceling the request with slices will cancel each sub-request. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchMvtRequestDescriptor(field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchMvtResponse, SearchMvtRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Search a vector tile. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// + /// + /// /// - /// Search a vector tile for geospatial values. + /// Update performance scales linearly across available resources with the number of slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchMvtRequestDescriptor(indices, field, zoom, x, y); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the search shards. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Update the document source /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(SearchShardsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// Get the search shards. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(SearchShardsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Get the search shards. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) + public virtual UpdateByQueryResponse UpdateByQuery() { + var descriptor = new UpdateByQueryRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } /// /// - /// Get the search shards. + /// 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. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get the search shards. + /// read /// + /// + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get the search shards. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards() - { - var descriptor = new SearchShardsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); - } - - /// /// - /// Get the search shards. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Action> configureRequest) - { - var descriptor = new SearchShardsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); - } - - /// /// - /// Get the search shards. + /// Throttling update requests /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get the search shards. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get the search shards. + /// Slicing /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get the search shards. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards() - { - var descriptor = new SearchShardsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get the search shards. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchShardsResponse SearchShards(Action configureRequest) - { - var descriptor = new SearchShardsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get the search shards. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// + /// + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the search shards. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the search shards. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get the search shards. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get the search shards. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task SearchShardsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateByQueryResponse UpdateByQuery(Action> configureRequest) { - var descriptor = new SearchShardsRequestDescriptor(); + var descriptor = new UpdateByQueryRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor, cancellationToken); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } /// /// - /// Get the search shards. + /// 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. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the search shards. + /// read /// + /// + /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get the search shards. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get the search shards. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get the search shards. + /// Throttling update requests /// /// - /// Get the indices and shards that a search request would be run against. - /// This information can be useful for working out issues or planning optimizations with routing and shard preferences. - /// When filtered aliases are used, the filter is returned as part of the indices section. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task SearchShardsAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchShardsRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Run a search with a search template. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest, SearchTemplateRequestParameters>(request); - } - - /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Run a search with a search template. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(SearchTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, SearchTemplateRequestParameters>(request, cancellationToken); - } - - /// /// - /// Run a search with a search template. + /// Slicing /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run a search with a search template. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) - { - var descriptor = new SearchTemplateRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run a search with a search template. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) - { - var descriptor = new SearchTemplateRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); - } - - /// /// - /// Run a search with a search template. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate() - { - var descriptor = new SearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Run a search with a search template. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual SearchTemplateResponse SearchTemplate(Action> configureRequest) - { - var descriptor = new SearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Run a search with a search template. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run a search with a search template. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run a search with a search template. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run a search with a search template. + /// Canceling the request with slices will cancel each sub-request. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Run a search with a search template. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new SearchTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get terms in an index. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) + public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) { - request.BeforeRequest(); - return DoRequest(request); + descriptor.BeforeRequest(); + return DoRequest(descriptor); } /// /// - /// Get terms in an index. + /// 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. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// read /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(TermsEnumRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// /// - /// Get terms in an index. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Throttling update requests /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); - } - - /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Get terms in an index. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Slicing /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new TermsEnumRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); - } - - /// /// - /// Get terms in an index. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new TermsEnumRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get terms in an index. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum() - { - var descriptor = new TermsEnumRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get terms in an index. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Update performance scales linearly across available resources with the number of slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(Action> configureRequest) - { - var descriptor = new TermsEnumRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get terms in an index. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) + public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices) { + var descriptor = new UpdateByQueryRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get terms in an index. + /// 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. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// read /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new TermsEnumRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// Get terms in an index. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) - { - var descriptor = new TermsEnumRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// Get terms in an index. + /// Throttling update requests /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get terms in an index. + /// Slicing /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get terms in an index. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get terms in an index. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get terms in an index. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// + /// + /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Update performance scales linearly across available resources with the number of slices. /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get terms in an index. + /// Update the document source /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { + var descriptor = new UpdateByQueryRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// /// - /// Get terms in an index. + /// 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. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// + /// + /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// read /// + /// + /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get terms in an index. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Discover terms that match a partial string in an index. - /// This "terms enum" API is designed for low-latency look-ups used in auto-complete scenarios. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// /// - /// If the complete property in the response is false, the returned terms set may be incomplete and should be treated as approximate. - /// This can occur due to a few reasons, such as a request timeout or a node error. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermsEnumRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Throttling update requests /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TermVectorsRequest request) - { - request.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(request); - } - - /// /// - /// Get term vector information. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TermVectorsRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(request, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Slicing /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TermVectorsRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// /// - /// Get term vector information. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) - { - var descriptor = new TermVectorsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) - { - var descriptor = new TermVectorsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new TermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new TermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TDocument document) - { - var descriptor = new TermVectorsRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TDocument document, Action> configureRequest) - { - var descriptor = new TermVectorsRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// Update performance scales linearly across available resources with the number of slices. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new TermVectorsRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// /// - /// Get term vector information. + /// Update the document source /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new TermVectorsRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// /// - /// Get term vector information. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.Id? id) + public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new TermVectorsRequestDescriptor(document, id); descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get term vector information. + /// 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. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) - { - var descriptor = new TermVectorsRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// read /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.Id? id) - { - var descriptor = new TermVectorsRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// Get term vector information. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) - { - var descriptor = new TermVectorsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); - } - - /// /// - /// Get term vector information. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Throttling update requests /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Slicing /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(index); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get term vector information. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get term vector information. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get term vector information. + /// Canceling the request with slices will cancel each sub-request. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get term vector information. + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get term vector information. + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Get term vector information. + /// Update performance scales linearly across available resources with the number of slices. /// + /// + /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Get term vector information. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) + public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { - var descriptor = new TermVectorsRequestDescriptor(id); + var descriptor = new UpdateByQueryRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } /// /// - /// Get term vector information. + /// 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. /// /// - /// Get information and statistics about terms in the fields of a particular document. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new TermVectorsRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// read /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(UpdateRequest request) - { - request.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(request); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(UpdateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(request, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(UpdateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new UpdateRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new UpdateRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(TDocument document) - { - var descriptor = new UpdateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Throttling update requests /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(TDocument document, Action> configureRequest) - { - var descriptor = new UpdateRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) - { - var descriptor = new UpdateRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) - { - var descriptor = new UpdateRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new UpdateRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Slicing /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new UpdateRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.Id id) - { - var descriptor = new UpdateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) - { - var descriptor = new UpdateRequestDescriptor(id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(UpdateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(index, id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Fetching the status of the task for the request with slices only contains the status of completed slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(index, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// These sub-requests are individually addressable for things like cancellation and rethrottling. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Canceling the request with slices will cancel each sub-request. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Update the document source /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document, id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document, id); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(id); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// Update a document. - /// Updates a document by running a script or passing a partial document. + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new UpdateRequestDescriptor(id); + var descriptor = new UpdateByQueryRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } /// @@ -11837,108 +41780,164 @@ public virtual Task> UpdateAsync - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// /// - /// 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. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryAsync(UpdateByQueryRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// + /// + /// /// - /// 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. + /// read /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// 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. + /// index or write /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); - } - - /// + /// + /// /// - /// 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. + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); - } - - /// /// - /// 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. + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery() - { - var descriptor = new UpdateByQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); - } - - /// /// - /// 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. + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// + /// + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. + /// + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(Action> configureRequest) + public virtual Task UpdateByQueryAsync(CancellationToken cancellationToken = default) { var descriptor = new UpdateByQueryRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } /// @@ -11947,115 +41946,158 @@ public virtual UpdateByQueryResponse UpdateByQuery(Action - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// /// - /// 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. + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// /// - /// 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. + /// read /// - /// Learn more about this API in the Elasticsearch documentation. - /// - [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// + /// + /// + /// + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// + /// + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// /// - /// 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. + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// 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. + /// Update performance scales linearly across available resources with the number of slices. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// + /// + /// /// - /// 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. + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// 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. + /// Update the document source /// - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task UpdateByQueryAsync(CancellationToken cancellationToken = default) - { - var descriptor = new UpdateByQueryRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); - } - - /// /// - /// 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. + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. + /// + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12071,7 +42113,158 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// + /// + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. + /// + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12085,7 +42278,158 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// + /// + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. + /// + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -12100,7 +42444,158 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// If the Elasticsearch security features are enabled, you must have the following index privileges for the target data stream, index, or alias: + /// + /// + /// + /// + /// read + /// + /// + /// + /// + /// index or write + /// + /// + /// + /// + /// You can specify the query criteria in the request URI or the request body using the same syntax as the search API. + /// + /// + /// When you submit an update by query request, Elasticsearch gets a snapshot of the data stream or index when it begins processing the request and updates matching documents using internal versioning. + /// When the versions match, the document is updated and the version number is incremented. + /// If a document changes between the time that the snapshot is taken and the update operation is processed, it results in a version conflict and the operation fails. + /// You can opt to count version conflicts instead of halting and returning by setting conflicts to proceed. + /// Note that if you opt to count version conflicts, the operation could attempt to update more documents from the source than max_docs until it has successfully updated max_docs documents or it has gone through every document in the source query. + /// + /// + /// NOTE: Documents with a version equal to 0 cannot be updated using update by query because internal versioning does not support 0 as a valid version number. + /// + /// + /// While processing an update by query request, Elasticsearch performs multiple search requests sequentially to find all of the matching documents. + /// A bulk update request is performed for each batch of matching documents. + /// Any query or update failures cause the update by query request to fail and the failures are shown in the response. + /// Any update requests that completed successfully still stick, they are not rolled back. + /// + /// + /// Throttling update requests + /// + /// + /// To control the rate at which update by query issues batches of update operations, you can set requests_per_second to any positive decimal number. + /// This pads each batch with a wait time to throttle the rate. + /// Set requests_per_second to -1 to turn off throttling. + /// + /// + /// Throttling uses a wait time between batches so that the internal scroll requests can be given a timeout that takes the request padding into account. + /// The padding time is the difference between the batch size divided by the requests_per_second and the time spent writing. + /// By default the batch size is 1000, so if requests_per_second is set to 500: + /// + /// + /// target_time = 1000 / 500 per second = 2 seconds + /// wait_time = target_time - write_time = 2 seconds - .5 seconds = 1.5 seconds + /// + /// + /// Since the batch is issued as a single _bulk request, large batch sizes cause Elasticsearch to create many requests and wait before starting the next set. + /// This is "bursty" instead of "smooth". + /// + /// + /// Slicing + /// + /// + /// Update by query supports sliced scroll to parallelize the update process. + /// This can improve efficiency and provide a convenient way to break the request down into smaller parts. + /// + /// + /// Setting slices to auto chooses a reasonable number for most data streams and indices. + /// This setting will use one slice per shard, up to a certain limit. + /// If there are multiple source data streams or indices, it will choose the number of slices based on the index or backing index with the smallest number of shards. + /// + /// + /// Adding slices to _update_by_query just automates the manual process of creating sub-requests, which means it has some quirks: + /// + /// + /// + /// + /// You can see these requests in the tasks APIs. These sub-requests are "child" tasks of the task for the request with slices. + /// + /// + /// + /// + /// Fetching the status of the task for the request with slices only contains the status of completed slices. + /// + /// + /// + /// + /// These sub-requests are individually addressable for things like cancellation and rethrottling. + /// + /// + /// + /// + /// Rethrottling the request with slices will rethrottle the unfinished sub-request proportionally. + /// + /// + /// + /// + /// Canceling the request with slices will cancel each sub-request. + /// + /// + /// + /// + /// Due to the nature of slices each sub-request won't get a perfectly even portion of the documents. All documents will be addressed, but some slices may be larger than others. Expect larger slices to have a more even distribution. + /// + /// + /// + /// + /// Parameters like requests_per_second and max_docs on a request with slices are distributed proportionally to each sub-request. Combine that with the point above about distribution being uneven and you should conclude that using max_docs with slices might not result in exactly max_docs documents being updated. + /// + /// + /// + /// + /// Each sub-request gets a slightly different snapshot of the source data stream or index though these are all taken at approximately the same time. + /// + /// + /// + /// + /// If you're slicing manually or otherwise tuning automatic slicing, keep in mind that: + /// + /// + /// + /// + /// Query performance is most efficient when the number of slices is equal to the number of shards in the index or backing index. If that number is large (for example, 500), choose a lower number as too many slices hurts performance. Setting slices higher than the number of shards generally does not improve efficiency and adds overhead. + /// + /// + /// + /// + /// Update performance scales linearly across available resources with the number of slices. + /// + /// + /// + /// + /// Whether query or update performance dominates the runtime depends on the documents being reindexed and cluster resources. + /// + /// + /// Update the document source + /// + /// + /// Update by query supports scripts to update the document source. + /// As with the update API, you can set ctx.op to change the operation that is performed. + /// + /// + /// Set ctx.op = "noop" if your script decides that it doesn't have to make any changes. + /// The update by query operation skips updating the document and increments the noop counter. + /// + /// + /// Set ctx.op = "delete" if your script decides that the document should be deleted. + /// The update by query operation deletes the document and increments the deleted counter. + /// + /// + /// Update by query supports only index, noop, and delete. + /// Setting ctx.op to anything else is an error. + /// Setting any other field in ctx is an error. + /// This API enables you to only modify the source of matching documents; you cannot move them. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12118,7 +42613,7 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequest request) @@ -12135,7 +42630,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQ /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequest request, CancellationToken cancellationToken = default) { @@ -12151,7 +42646,7 @@ public virtual Task UpdateByQueryRethrottleAsyn /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequestDescriptor descriptor) @@ -12168,7 +42663,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQ /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Id taskId) @@ -12186,7 +42681,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) @@ -12205,7 +42700,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12221,7 +42716,7 @@ public virtual Task UpdateByQueryRethrottleAsyn /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { @@ -12238,7 +42733,7 @@ public virtual Task UpdateByQueryRethrottleAsyn /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs index 2008b28414e..f964fa55cd5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/BulkIndexByScrollFailure.g.cs @@ -37,6 +37,4 @@ public sealed partial class BulkIndexByScrollFailure public string Index { get; init; } [JsonInclude, JsonPropertyName("status")] public int Status { get; init; } - [JsonInclude, JsonPropertyName("type")] - public string Type { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs index c59818c659b..ab9a407b846 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateNode.g.cs @@ -29,10 +29,208 @@ namespace Elastic.Clients.Elasticsearch.Cluster; public sealed partial class ComponentTemplateNode { + [JsonInclude, JsonPropertyName("deprecated")] + public bool? Deprecated { get; set; } [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } + public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary Template { get; init; } + public Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary Template { get; set; } [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } + public long? Version { get; set; } +} + +public sealed partial class ComponentTemplateNodeDescriptor : SerializableDescriptor> +{ + internal ComponentTemplateNodeDescriptor(Action> configure) => configure.Invoke(this); + + public ComponentTemplateNodeDescriptor() : base() + { + } + + private bool? DeprecatedValue { get; set; } + private IDictionary? MetaValue { get; set; } + private Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummaryDescriptor TemplateDescriptor { get; set; } + private Action> TemplateDescriptorAction { get; set; } + private long? VersionValue { get; set; } + + public ComponentTemplateNodeDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + + public ComponentTemplateNodeDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public ComponentTemplateNodeDescriptor Template(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public ComponentTemplateNodeDescriptor Template(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummaryDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public ComponentTemplateNodeDescriptor Template(Action> configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + public ComponentTemplateNodeDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummaryDescriptor(TemplateDescriptorAction), options); + } + else + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class ComponentTemplateNodeDescriptor : SerializableDescriptor +{ + internal ComponentTemplateNodeDescriptor(Action configure) => configure.Invoke(this); + + public ComponentTemplateNodeDescriptor() : base() + { + } + + private bool? DeprecatedValue { get; set; } + private IDictionary? MetaValue { get; set; } + private Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummaryDescriptor TemplateDescriptor { get; set; } + private Action TemplateDescriptorAction { get; set; } + private long? VersionValue { get; set; } + + public ComponentTemplateNodeDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + + public ComponentTemplateNodeDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public ComponentTemplateNodeDescriptor Template(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummary template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public ComponentTemplateNodeDescriptor Template(Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummaryDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public ComponentTemplateNodeDescriptor Template(Action configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + public ComponentTemplateNodeDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Cluster.ComponentTemplateSummaryDescriptor(TemplateDescriptorAction), options); + } + else + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs index 62b3163daa1..7e6398e09e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ComponentTemplateSummary.g.cs @@ -30,16 +30,323 @@ namespace Elastic.Clients.Elasticsearch.Cluster; public sealed partial class ComponentTemplateSummary { [JsonInclude, JsonPropertyName("aliases")] - public IReadOnlyDictionary? Aliases { get; init; } + public IDictionary? Aliases { get; set; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; set; } [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; init; } + public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } + public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("settings")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings))] - public IReadOnlyDictionary? Settings { get; init; } + public IDictionary? Settings { get; set; } [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } + public long? Version { get; set; } +} + +public sealed partial class ComponentTemplateSummaryDescriptor : SerializableDescriptor> +{ + internal ComponentTemplateSummaryDescriptor(Action> configure) => configure.Invoke(this); + + public ComponentTemplateSummaryDescriptor() : base() + { + } + + private IDictionary> AliasesValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? LifecycleValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } + private Action> MappingsDescriptorAction { get; set; } + private IDictionary? MetaValue { get; set; } + private IDictionary> SettingsValue { get; set; } + private long? VersionValue { get; set; } + + public ComponentTemplateSummaryDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) + { + AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + public ComponentTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public ComponentTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public ComponentTemplateSummaryDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + + public ComponentTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) + { + MappingsDescriptor = null; + MappingsDescriptorAction = null; + MappingsValue = mappings; + return Self; + } + + public ComponentTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingsValue = null; + MappingsDescriptorAction = null; + MappingsDescriptor = descriptor; + return Self; + } + + public ComponentTemplateSummaryDescriptor Mappings(Action> configure) + { + MappingsValue = null; + MappingsDescriptor = null; + MappingsDescriptorAction = configure; + return Self; + } + + public ComponentTemplateSummaryDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public ComponentTemplateSummaryDescriptor Settings(Func>, FluentDescriptorDictionary>> selector) + { + SettingsValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + public ComponentTemplateSummaryDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AliasesValue is not null) + { + writer.WritePropertyName("aliases"); + JsonSerializer.Serialize(writer, AliasesValue, options); + } + + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + + if (MappingsDescriptor is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsDescriptor, options); + } + else if (MappingsDescriptorAction is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); + } + else if (MappingsValue is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsValue, options); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (SettingsValue is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class ComponentTemplateSummaryDescriptor : SerializableDescriptor +{ + internal ComponentTemplateSummaryDescriptor(Action configure) => configure.Invoke(this); + + public ComponentTemplateSummaryDescriptor() : base() + { + } + + private IDictionary AliasesValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? LifecycleValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } + private Action MappingsDescriptorAction { get; set; } + private IDictionary? MetaValue { get; set; } + private IDictionary SettingsValue { get; set; } + private long? VersionValue { get; set; } + + public ComponentTemplateSummaryDescriptor Aliases(Func, FluentDescriptorDictionary> selector) + { + AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + public ComponentTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public ComponentTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public ComponentTemplateSummaryDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + + public ComponentTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) + { + MappingsDescriptor = null; + MappingsDescriptorAction = null; + MappingsValue = mappings; + return Self; + } + + public ComponentTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingsValue = null; + MappingsDescriptorAction = null; + MappingsDescriptor = descriptor; + return Self; + } + + public ComponentTemplateSummaryDescriptor Mappings(Action configure) + { + MappingsValue = null; + MappingsDescriptor = null; + MappingsDescriptorAction = configure; + return Self; + } + + public ComponentTemplateSummaryDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public ComponentTemplateSummaryDescriptor Settings(Func, FluentDescriptorDictionary> selector) + { + SettingsValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + public ComponentTemplateSummaryDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AliasesValue is not null) + { + writer.WritePropertyName("aliases"); + JsonSerializer.Serialize(writer, AliasesValue, options); + } + + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + + if (MappingsDescriptor is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsDescriptor, options); + } + else if (MappingsDescriptorAction is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); + } + else if (MappingsValue is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsValue, options); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (SettingsValue is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs index fa67e544390..61f1188da67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs @@ -31,12 +31,14 @@ public partial class ResponseItem { /// /// - /// Contains additional information about the failed operation. - /// The parameter is only returned for failed operations. + /// Additional information about the failed operation. + /// The property is returned only for failed operations. /// /// [JsonInclude, JsonPropertyName("error")] public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; init; } + [JsonInclude, JsonPropertyName("failure_store")] + public Elastic.Clients.Elasticsearch.Core.Bulk.FailureStoreStatus? FailureStore { get; init; } [JsonInclude, JsonPropertyName("forced_refresh")] public bool? ForcedRefresh { get; init; } [JsonInclude, JsonPropertyName("get")] @@ -52,7 +54,7 @@ public partial class ResponseItem /// /// - /// Name of the index associated with the operation. + /// The name of the index associated with the operation. /// If the operation targeted a data stream, this is the backing index into which the document was written. /// /// @@ -62,6 +64,7 @@ public partial class ResponseItem /// /// /// The primary term assigned to the document for the operation. + /// This property is returned only for successful operations. /// /// [JsonInclude, JsonPropertyName("_primary_term")] @@ -69,7 +72,7 @@ public partial class ResponseItem /// /// - /// Result of the operation. + /// The result of the operation. /// Successful values are created, deleted, and updated. /// /// @@ -79,7 +82,7 @@ public partial class ResponseItem /// /// /// The sequence number assigned to the document for the operation. - /// Sequence numbers are used to ensure an older version of a document doesn’t overwrite a newer version. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. /// /// [JsonInclude, JsonPropertyName("_seq_no")] @@ -87,7 +90,7 @@ public partial class ResponseItem /// /// - /// Contains shard information for the operation. + /// Shard information for the operation. /// /// [JsonInclude, JsonPropertyName("_shards")] @@ -95,7 +98,7 @@ public partial class ResponseItem /// /// - /// HTTP status code returned for the operation. + /// The HTTP status code returned for the operation. /// /// [JsonInclude, JsonPropertyName("status")] @@ -105,6 +108,7 @@ public partial class ResponseItem /// /// The document version associated with the operation. /// The document version is incremented each time the document is updated. + /// This property is returned only for successful actions. /// /// [JsonInclude, JsonPropertyName("_version")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs index 07624ca28ed..74c1fb23d0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Get/GetResult.g.cs @@ -29,25 +29,80 @@ namespace Elastic.Clients.Elasticsearch.Core.Get; public sealed partial class GetResult { + /// + /// + /// If the stored_fields parameter is set to true and found is true, it contains the document fields stored in the index. + /// + /// [JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.FieldValues? Fields { get; init; } + + /// + /// + /// Indicates whether the document exists. + /// + /// [JsonInclude, JsonPropertyName("found")] public bool Found { get; init; } + + /// + /// + /// The unique identifier for the document. + /// + /// [JsonInclude, JsonPropertyName("_id")] public string Id { get; init; } [JsonInclude, JsonPropertyName("_ignored")] public IReadOnlyCollection? Ignored { get; init; } + + /// + /// + /// The name of the index the document belongs to. + /// + /// [JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// + /// The primary term assigned to the document for the indexing operation. + /// + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// + /// The explicit routing, if set. + /// + /// [JsonInclude, JsonPropertyName("_routing")] public string? Routing { get; init; } + + /// + /// + /// The sequence number assigned to the document for the indexing operation. + /// Sequence numbers are used to ensure an older version of a document doesn't overwrite a newer version. + /// + /// [JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// + /// If found is true, it contains the document data formatted in JSON. + /// If the _source parameter is set to false or the stored_fields parameter is set to true, it is excluded. + /// + /// [JsonInclude, JsonPropertyName("_source")] [SourceConverter] public TDocument? Source { get; init; } + + /// + /// + /// The document version, which is ncremented each time the document is updated. + /// + /// [JsonInclude, JsonPropertyName("_version")] public long? Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs index 05f5aa6f061..6cc347b2606 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/Indicators.g.cs @@ -33,8 +33,6 @@ public sealed partial class Indicators public Elastic.Clients.Elasticsearch.Core.HealthReport.DataStreamLifecycleIndicator? DataStreamLifecycle { get; init; } [JsonInclude, JsonPropertyName("disk")] public Elastic.Clients.Elasticsearch.Core.HealthReport.DiskIndicator? Disk { get; init; } - [JsonInclude, JsonPropertyName("file_settings")] - public Elastic.Clients.Elasticsearch.Core.HealthReport.FileSettingsIndicator? FileSettings { get; init; } [JsonInclude, JsonPropertyName("ilm")] public Elastic.Clients.Elasticsearch.Core.HealthReport.IlmIndicator? Ilm { get; init; } [JsonInclude, JsonPropertyName("master_is_stable")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs index 48bf0448faf..129bb9dcdd5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultiSearchItem.g.cs @@ -35,6 +35,12 @@ public sealed partial class MultiSearchItem public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; init; } [JsonInclude, JsonPropertyName("fields")] public IReadOnlyDictionary? Fields { get; init; } + + /// + /// + /// The returned documents and metadata. + /// + /// [JsonInclude, JsonPropertyName("hits")] public Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata HitsMetadata { get; init; } [JsonInclude, JsonPropertyName("max_score")] @@ -45,8 +51,22 @@ public sealed partial class MultiSearchItem public string? PitId { get; init; } [JsonInclude, JsonPropertyName("profile")] public Elastic.Clients.Elasticsearch.Core.Search.Profile? Profile { get; init; } + + /// + /// + /// The identifier for the search and its search context. + /// You can use this scroll ID with the scroll API to retrieve the next batch of search results for the request. + /// This property is returned only if the scroll query parameter is specified in the request. + /// + /// [JsonInclude, JsonPropertyName("_scroll_id")] public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; init; } + + /// + /// + /// A count of shards used for the request. + /// + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } [JsonInclude, JsonPropertyName("status")] @@ -55,8 +75,59 @@ public sealed partial class MultiSearchItem public Elastic.Clients.Elasticsearch.Core.Search.SuggestDictionary? Suggest { get; init; } [JsonInclude, JsonPropertyName("terminated_early")] public bool? TerminatedEarly { get; init; } + + /// + /// + /// If true, the request timed out before completion; returned results may be partial or empty. + /// + /// [JsonInclude, JsonPropertyName("timed_out")] public bool TimedOut { get; init; } + + /// + /// + /// The number of milliseconds it took Elasticsearch to run the request. + /// This value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response. + /// It includes: + /// + /// + /// + /// + /// Communication time between the coordinating node and data nodes + /// + /// + /// + /// + /// Time the request spends in the search thread pool, queued for execution + /// + /// + /// + /// + /// Actual run time + /// + /// + /// + /// + /// It does not include: + /// + /// + /// + /// + /// Time needed to send the request to Elasticsearch + /// + /// + /// + /// + /// Time needed to serialize the JSON response + /// + /// + /// + /// + /// Time needed to send the response to a client + /// + /// + /// + /// [JsonInclude, JsonPropertyName("took")] public long Took { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs index c9586c9b995..9b4e2b6bcb4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs @@ -39,7 +39,7 @@ public sealed partial class TemplateConfig /// /// - /// ID of the search template to use. If no source is specified, + /// The ID of the search template to use. If no source is specified, /// this parameter is required. /// /// @@ -67,7 +67,7 @@ public sealed partial class TemplateConfig /// /// /// An inline search template. Supports the same parameters as the search API's - /// request body. Also supports Mustache variables. If no id is specified, this + /// request body. It also supports Mustache variables. If no id is specified, this /// parameter is required. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs index c2cec5cccf6..06c0ba69fef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs @@ -39,8 +39,10 @@ public sealed partial class Destination /// /// - /// Set to create to only index documents that do not already exist. - /// Important: To reindex to a data stream destination, this argument must be create. + /// If it is create, the operation will only index documents that do not already exist (also known as "put if absent"). + /// + /// + /// IMPORTANT: To reindex to a data stream destination, this argument must be create. /// /// [JsonInclude, JsonPropertyName("op_type")] @@ -56,8 +58,10 @@ public sealed partial class Destination /// /// - /// By default, a document's routing is preserved unless it’s changed by the script. - /// Set to discard to set routing to null, or =value to route using the specified value. + /// By default, a document's routing is preserved unless it's changed by the script. + /// If it is keep, the routing on the bulk request sent for each match is set to the routing on the match. + /// If it is discard, the routing on the bulk request sent for each match is set to null. + /// If it is =value, the routing on the bulk request sent for each match is set to all value specified after the equals sign (=). /// /// [JsonInclude, JsonPropertyName("routing")] @@ -99,8 +103,10 @@ public DestinationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index /// /// - /// Set to create to only index documents that do not already exist. - /// Important: To reindex to a data stream destination, this argument must be create. + /// If it is create, the operation will only index documents that do not already exist (also known as "put if absent"). + /// + /// + /// IMPORTANT: To reindex to a data stream destination, this argument must be create. /// /// public DestinationDescriptor OpType(Elastic.Clients.Elasticsearch.OpType? opType) @@ -122,8 +128,10 @@ public DestinationDescriptor Pipeline(string? pipeline) /// /// - /// By default, a document's routing is preserved unless it’s changed by the script. - /// Set to discard to set routing to null, or =value to route using the specified value. + /// By default, a document's routing is preserved unless it's changed by the script. + /// If it is keep, the routing on the bulk request sent for each match is set to the routing on the match. + /// If it is discard, the routing on the bulk request sent for each match is set to null. + /// If it is =value, the routing on the bulk request sent for each match is set to all value specified after the equals sign (=). /// /// public DestinationDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs index db2b38bbd22..33d553f98b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs @@ -32,7 +32,6 @@ public sealed partial class RemoteSource /// /// /// The remote connection timeout. - /// Defaults to 30 seconds. /// /// [JsonInclude, JsonPropertyName("connect_timeout")] @@ -49,6 +48,7 @@ public sealed partial class RemoteSource /// /// /// The URL for the remote instance of Elasticsearch that you want to index from. + /// This information is required when you're indexing from remote. /// /// [JsonInclude, JsonPropertyName("host")] @@ -64,7 +64,7 @@ public sealed partial class RemoteSource /// /// - /// The remote socket read timeout. Defaults to 30 seconds. + /// The remote socket read timeout. /// /// [JsonInclude, JsonPropertyName("socket_timeout")] @@ -97,7 +97,6 @@ public RemoteSourceDescriptor() : base() /// /// /// The remote connection timeout. - /// Defaults to 30 seconds. /// /// public RemoteSourceDescriptor ConnectTimeout(Elastic.Clients.Elasticsearch.Duration? connectTimeout) @@ -120,6 +119,7 @@ public RemoteSourceDescriptor Headers(Func, Flu /// /// /// The URL for the remote instance of Elasticsearch that you want to index from. + /// This information is required when you're indexing from remote. /// /// public RemoteSourceDescriptor Host(string host) @@ -141,7 +141,7 @@ public RemoteSourceDescriptor Password(string? password) /// /// - /// The remote socket read timeout. Defaults to 30 seconds. + /// The remote socket read timeout. /// /// public RemoteSourceDescriptor SocketTimeout(Elastic.Clients.Elasticsearch.Duration? socketTimeout) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs index 0c75aa06abf..a00ef4dace2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs @@ -32,7 +32,7 @@ public sealed partial class Source /// /// /// The name of the data stream, index, or alias you are copying from. - /// Accepts a comma-separated list to reindex from multiple sources. + /// It accepts a comma-separated list to reindex from multiple sources. /// /// [JsonInclude, JsonPropertyName("index")] @@ -40,7 +40,7 @@ public sealed partial class Source /// /// - /// Specifies the documents to reindex using the Query DSL. + /// The documents to reindex, which is defined with Query DSL. /// /// [JsonInclude, JsonPropertyName("query")] @@ -59,7 +59,7 @@ public sealed partial class Source /// /// /// The number of documents to index per batch. - /// Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. + /// Use it when you are indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. /// /// [JsonInclude, JsonPropertyName("size")] @@ -72,14 +72,11 @@ public sealed partial class Source /// [JsonInclude, JsonPropertyName("slice")] public Elastic.Clients.Elasticsearch.SlicedScroll? Slice { get; set; } - [JsonInclude, JsonPropertyName("sort")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.SortOptions))] - public ICollection? Sort { get; set; } /// /// - /// If true reindexes all source fields. - /// Set to a list to reindex select fields. + /// If true, reindex all source fields. + /// Set it to a list to reindex select fields. /// /// [JsonInclude, JsonPropertyName("_source")] @@ -107,16 +104,12 @@ public SourceDescriptor() : base() private Elastic.Clients.Elasticsearch.SlicedScroll? SliceValue { get; set; } private Elastic.Clients.Elasticsearch.SlicedScrollDescriptor SliceDescriptor { get; set; } private Action> SliceDescriptorAction { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.SortOptionsDescriptor SortDescriptor { get; set; } - private Action> SortDescriptorAction { get; set; } - private Action>[] SortDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Fields? SourceFieldsValue { get; set; } /// /// /// The name of the data stream, index, or alias you are copying from. - /// Accepts a comma-separated list to reindex from multiple sources. + /// It accepts a comma-separated list to reindex from multiple sources. /// /// public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) @@ -127,7 +120,7 @@ public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Indices /// /// - /// Specifies the documents to reindex using the Query DSL. + /// The documents to reindex, which is defined with Query DSL. /// /// public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -192,7 +185,7 @@ public SourceDescriptor RuntimeMappings(Func /// /// The number of documents to index per batch. - /// Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. + /// Use it when you are indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. /// /// public SourceDescriptor Size(int? size) @@ -230,46 +223,10 @@ public SourceDescriptor Slice(Action Sort(ICollection? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SourceDescriptor Sort(Elastic.Clients.Elasticsearch.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Sort(Action> configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Sort(params Action>[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - /// /// - /// If true reindexes all source fields. - /// Set to a list to reindex select fields. + /// If true, reindex all source fields. + /// Set it to a list to reindex select fields. /// /// public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Fields? sourceFields) @@ -343,35 +300,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, SliceValue, options); } - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - if (SourceFieldsValue is not null) { writer.WritePropertyName("_source"); @@ -402,16 +330,12 @@ public SourceDescriptor() : base() private Elastic.Clients.Elasticsearch.SlicedScroll? SliceValue { get; set; } private Elastic.Clients.Elasticsearch.SlicedScrollDescriptor SliceDescriptor { get; set; } private Action SliceDescriptorAction { get; set; } - private ICollection? SortValue { get; set; } - private Elastic.Clients.Elasticsearch.SortOptionsDescriptor SortDescriptor { get; set; } - private Action SortDescriptorAction { get; set; } - private Action[] SortDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Fields? SourceFieldsValue { get; set; } /// /// /// The name of the data stream, index, or alias you are copying from. - /// Accepts a comma-separated list to reindex from multiple sources. + /// It accepts a comma-separated list to reindex from multiple sources. /// /// public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) @@ -422,7 +346,7 @@ public SourceDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) /// /// - /// Specifies the documents to reindex using the Query DSL. + /// The documents to reindex, which is defined with Query DSL. /// /// public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) @@ -487,7 +411,7 @@ public SourceDescriptor RuntimeMappings(Func /// /// The number of documents to index per batch. - /// Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. + /// Use it when you are indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB. /// /// public SourceDescriptor Size(int? size) @@ -525,46 +449,10 @@ public SourceDescriptor Slice(Action? sort) - { - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortValue = sort; - return Self; - } - - public SourceDescriptor Sort(Elastic.Clients.Elasticsearch.SortOptionsDescriptor descriptor) - { - SortValue = null; - SortDescriptorAction = null; - SortDescriptorActions = null; - SortDescriptor = descriptor; - return Self; - } - - public SourceDescriptor Sort(Action configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorActions = null; - SortDescriptorAction = configure; - return Self; - } - - public SourceDescriptor Sort(params Action[] configure) - { - SortValue = null; - SortDescriptor = null; - SortDescriptorAction = null; - SortDescriptorActions = configure; - return Self; - } - /// /// - /// If true reindexes all source fields. - /// Set to a list to reindex select fields. + /// If true, reindex all source fields. + /// Set it to a list to reindex select fields. /// /// public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Fields? sourceFields) @@ -638,35 +526,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, SliceValue, options); } - if (SortDescriptor is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, SortDescriptor, options); - } - else if (SortDescriptorAction is not null) - { - writer.WritePropertyName("sort"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SortOptionsDescriptor(SortDescriptorAction), options); - } - else if (SortDescriptorActions is not null) - { - writer.WritePropertyName("sort"); - if (SortDescriptorActions.Length != 1) - writer.WriteStartArray(); - foreach (var action in SortDescriptorActions) - { - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SortOptionsDescriptor(action), options); - } - - if (SortDescriptorActions.Length != 1) - writer.WriteEndArray(); - } - else if (SortValue is not null) - { - writer.WritePropertyName("sort"); - SingleOrManySerializationHelper.Serialize(SortValue, writer, options); - } - if (SourceFieldsValue is not null) { writer.WritePropertyName("_source"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs index 6b5fbf32507..53294e06c2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs @@ -40,7 +40,7 @@ public sealed partial class Filter /// /// - /// Maximum number of terms that must be returned per field. + /// The maximum number of terms that must be returned per field. /// /// [JsonInclude, JsonPropertyName("max_num_terms")] @@ -49,7 +49,7 @@ public sealed partial class Filter /// /// /// Ignore words with more than this frequency in the source doc. - /// Defaults to unbounded. + /// It defaults to unbounded. /// /// [JsonInclude, JsonPropertyName("max_term_freq")] @@ -119,7 +119,7 @@ public FilterDescriptor MaxDocFreq(int? maxDocFreq) /// /// - /// Maximum number of terms that must be returned per field. + /// The maximum number of terms that must be returned per field. /// /// public FilterDescriptor MaxNumTerms(int? maxNumTerms) @@ -131,7 +131,7 @@ public FilterDescriptor MaxNumTerms(int? maxNumTerms) /// /// /// Ignore words with more than this frequency in the source doc. - /// Defaults to unbounded. + /// It defaults to unbounded. /// /// public FilterDescriptor MaxTermFreq(int? maxTermFreq) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs index 95d202cef15..06ff51f8ada 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs @@ -29,88 +29,24 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowerIndexParameters { - /// - /// - /// The maximum number of outstanding reads requests from the remote cluster. - /// - /// [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] - public long? MaxOutstandingReadRequests { get; init; } - - /// - /// - /// The maximum number of outstanding write requests on the follower. - /// - /// + public int MaxOutstandingReadRequests { get; init; } [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] - public int? MaxOutstandingWriteRequests { get; init; } - - /// - /// - /// The maximum number of operations to pull per read from the remote cluster. - /// - /// + public int MaxOutstandingWriteRequests { get; init; } [JsonInclude, JsonPropertyName("max_read_request_operation_count")] - public int? MaxReadRequestOperationCount { get; init; } - - /// - /// - /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. - /// - /// + public int MaxReadRequestOperationCount { get; init; } [JsonInclude, JsonPropertyName("max_read_request_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; init; } - - /// - /// - /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when - /// retrying. - /// - /// + public string MaxReadRequestSize { get; init; } [JsonInclude, JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; init; } - - /// - /// - /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be - /// deferred until the number of queued operations goes below the limit. - /// - /// + public Elastic.Clients.Elasticsearch.Duration MaxRetryDelay { get; init; } [JsonInclude, JsonPropertyName("max_write_buffer_count")] - public int? MaxWriteBufferCount { get; init; } - - /// - /// - /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will - /// be deferred until the total bytes of queued operations goes below the limit. - /// - /// + public int MaxWriteBufferCount { get; init; } [JsonInclude, JsonPropertyName("max_write_buffer_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; init; } - - /// - /// - /// The maximum number of operations per bulk write request executed on the follower. - /// - /// + public string MaxWriteBufferSize { get; init; } [JsonInclude, JsonPropertyName("max_write_request_operation_count")] - public int? MaxWriteRequestOperationCount { get; init; } - - /// - /// - /// The maximum total bytes of operations per bulk write request executed on the follower. - /// - /// + public int MaxWriteRequestOperationCount { get; init; } [JsonInclude, JsonPropertyName("max_write_request_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; init; } - - /// - /// - /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. - /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. - /// Then the follower will immediately attempt to read from the leader again. - /// - /// + public string MaxWriteRequestSize { get; init; } [JsonInclude, JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; init; } + public Elastic.Clients.Elasticsearch.Duration ReadPollTimeout { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs index 96417d2236e..5d9a9a38b09 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ElasticsearchVersionInfo.g.cs @@ -29,22 +29,77 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class ElasticsearchVersionInfo { + /// + /// + /// The Elasticsearch Git commit's date. + /// + /// [JsonInclude, JsonPropertyName("build_date")] public DateTimeOffset BuildDate { get; init; } + + /// + /// + /// The build flavor. For example, default. + /// + /// [JsonInclude, JsonPropertyName("build_flavor")] public string BuildFlavor { get; init; } + + /// + /// + /// The Elasticsearch Git commit's SHA hash. + /// + /// [JsonInclude, JsonPropertyName("build_hash")] public string BuildHash { get; init; } + + /// + /// + /// Indicates whether the Elasticsearch build was a snapshot. + /// + /// [JsonInclude, JsonPropertyName("build_snapshot")] public bool BuildSnapshot { get; init; } + + /// + /// + /// The build type that corresponds to how Elasticsearch was installed. + /// For example, docker, rpm, or tar. + /// + /// [JsonInclude, JsonPropertyName("build_type")] public string BuildType { get; init; } + + /// + /// + /// The version number of Elasticsearch's underlying Lucene software. + /// + /// [JsonInclude, JsonPropertyName("lucene_version")] public string LuceneVersion { get; init; } + + /// + /// + /// The minimum index version with which the responding node can read from disk. + /// + /// [JsonInclude, JsonPropertyName("minimum_index_compatibility_version")] public string MinimumIndexCompatibilityVersion { get; init; } + + /// + /// + /// The minimum node version with which the responding node can communicate. + /// Also the minimum version from which you can perform a rolling upgrade. + /// + /// [JsonInclude, JsonPropertyName("minimum_wire_compatibility_version")] public string MinimumWireCompatibilityVersion { get; init; } + + /// + /// + /// The Elasticsearch version number. + /// + /// [JsonInclude, JsonPropertyName("number")] public string Number { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Bulk.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Bulk.g.cs new file mode 100644 index 00000000000..1adc3ce767e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Bulk.g.cs @@ -0,0 +1,85 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.Bulk; + +[JsonConverter(typeof(FailureStoreStatusConverter))] +public enum FailureStoreStatus +{ + [EnumMember(Value = "used")] + Used, + [EnumMember(Value = "not_enabled")] + NotEnabled, + [EnumMember(Value = "not_applicable_or_unknown")] + NotApplicableOrUnknown, + [EnumMember(Value = "failed")] + Failed +} + +internal sealed class FailureStoreStatusConverter : JsonConverter +{ + public override FailureStoreStatus Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "used": + return FailureStoreStatus.Used; + case "not_enabled": + return FailureStoreStatus.NotEnabled; + case "not_applicable_or_unknown": + return FailureStoreStatus.NotApplicableOrUnknown; + case "failed": + return FailureStoreStatus.Failed; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, FailureStoreStatus value, JsonSerializerOptions options) + { + switch (value) + { + case FailureStoreStatus.Used: + writer.WriteStringValue("used"); + return; + case FailureStoreStatus.NotEnabled: + writer.WriteStringValue("not_enabled"); + return; + case FailureStoreStatus.NotApplicableOrUnknown: + writer.WriteStringValue("not_applicable_or_unknown"); + return; + case FailureStoreStatus.Failed: + writer.WriteStringValue("failed"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs index a5fbdb62bbf..26f7df4182d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs @@ -682,6 +682,55 @@ public override void Write(Utf8JsonWriter writer, ShardStoreStatus value, JsonSe } } +[JsonConverter(typeof(SourceModeConverter))] +public enum SourceMode +{ + [EnumMember(Value = "synthetic")] + Synthetic, + [EnumMember(Value = "stored")] + Stored, + [EnumMember(Value = "disabled")] + Disabled +} + +internal sealed class SourceModeConverter : JsonConverter +{ + public override SourceMode Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "synthetic": + return SourceMode.Synthetic; + case "stored": + return SourceMode.Stored; + case "disabled": + return SourceMode.Disabled; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, SourceMode value, JsonSerializerOptions options) + { + switch (value) + { + case SourceMode.Synthetic: + writer.WriteStringValue("synthetic"); + return; + case SourceMode.Stored: + writer.WriteStringValue("stored"); + return; + case SourceMode.Disabled: + writer.WriteStringValue("disabled"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(EnumStructConverter))] public readonly partial struct StorageType : IEnumStruct { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index af9e0d808bf..3cde2b5248d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -28,298 +28,6 @@ namespace Elastic.Clients.Elasticsearch.Mapping; -[JsonConverter(typeof(DenseVectorElementTypeConverter))] -public enum DenseVectorElementType -{ - /// - /// - /// Indexes a 4-byte floating-point value per dimension. - /// - /// - [EnumMember(Value = "float")] - Float, - /// - /// - /// Indexes a 1-byte integer value per dimension. - /// - /// - [EnumMember(Value = "byte")] - Byte, - /// - /// - /// Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support - /// bit vectors. - /// - /// - /// NOTE: when using bit, the number of dimensions must be a multiple of 8 and must represent the number of bits. - /// - /// - [EnumMember(Value = "bit")] - Bit -} - -internal sealed class DenseVectorElementTypeConverter : JsonConverter -{ - public override DenseVectorElementType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "float": - return DenseVectorElementType.Float; - case "byte": - return DenseVectorElementType.Byte; - case "bit": - return DenseVectorElementType.Bit; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DenseVectorElementType value, JsonSerializerOptions options) - { - switch (value) - { - case DenseVectorElementType.Float: - writer.WriteStringValue("float"); - return; - case DenseVectorElementType.Byte: - writer.WriteStringValue("byte"); - return; - case DenseVectorElementType.Bit: - writer.WriteStringValue("bit"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DenseVectorIndexOptionsTypeConverter))] -public enum DenseVectorIndexOptionsType -{ - /// - /// - /// The default index type for float vectors. This utilizes the HNSW algorithm in addition to automatically scalar - /// quantization for scalable approximate kNN search with element_type of float. - /// - /// - /// This can reduce the memory footprint by 4x at the cost of some accuracy. - /// - /// - [EnumMember(Value = "int8_hnsw")] - Int8Hnsw, - /// - /// - /// This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports - /// element_type of float. - /// - /// - [EnumMember(Value = "int8_flat")] - Int8Flat, - /// - /// - /// This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN - /// search with element_type of float. - /// - /// - /// This can reduce the memory footprint by 8x at the cost of some accuracy. - /// - /// - [EnumMember(Value = "int4_hnsw")] - Int4Hnsw, - /// - /// - /// This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization. - /// Only supports element_type of float. - /// - /// - [EnumMember(Value = "int4_flat")] - Int4Flat, - /// - /// - /// This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all element_type values. - /// - /// - [EnumMember(Value = "hnsw")] - Hnsw, - /// - /// - /// This utilizes a brute-force search algorithm for exact kNN search. This supports all element_type values. - /// - /// - [EnumMember(Value = "flat")] - Flat -} - -internal sealed class DenseVectorIndexOptionsTypeConverter : JsonConverter -{ - public override DenseVectorIndexOptionsType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "int8_hnsw": - return DenseVectorIndexOptionsType.Int8Hnsw; - case "int8_flat": - return DenseVectorIndexOptionsType.Int8Flat; - case "int4_hnsw": - return DenseVectorIndexOptionsType.Int4Hnsw; - case "int4_flat": - return DenseVectorIndexOptionsType.Int4Flat; - case "hnsw": - return DenseVectorIndexOptionsType.Hnsw; - case "flat": - return DenseVectorIndexOptionsType.Flat; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DenseVectorIndexOptionsType value, JsonSerializerOptions options) - { - switch (value) - { - case DenseVectorIndexOptionsType.Int8Hnsw: - writer.WriteStringValue("int8_hnsw"); - return; - case DenseVectorIndexOptionsType.Int8Flat: - writer.WriteStringValue("int8_flat"); - return; - case DenseVectorIndexOptionsType.Int4Hnsw: - writer.WriteStringValue("int4_hnsw"); - return; - case DenseVectorIndexOptionsType.Int4Flat: - writer.WriteStringValue("int4_flat"); - return; - case DenseVectorIndexOptionsType.Hnsw: - writer.WriteStringValue("hnsw"); - return; - case DenseVectorIndexOptionsType.Flat: - writer.WriteStringValue("flat"); - return; - } - - writer.WriteNullValue(); - } -} - -[JsonConverter(typeof(DenseVectorSimilarityConverter))] -public enum DenseVectorSimilarity -{ - /// - /// - /// Computes the maximum inner product of two vectors. This is similar to dot_product, but doesn't require vectors - /// to be normalized. This means that each vector’s magnitude can significantly effect the score. - /// - /// - /// The document _score is adjusted to prevent negative values. For max_inner_product values < 0, the _score - /// is 1 / (1 + -1 * max_inner_product(query, vector)). For non-negative max_inner_product results the _score - /// is calculated max_inner_product(query, vector) + 1. - /// - /// - [EnumMember(Value = "max_inner_product")] - MaxInnerProduct, - /// - /// - /// Computes similarity based on the L2 distance (also known as Euclidean distance) between the vectors. - /// - /// - /// The document _score is computed as 1 / (1 + l2_norm(query, vector)^2). - /// - /// - /// For bit vectors, instead of using l2_norm, the hamming distance between the vectors is used. - /// - /// - /// The _score transformation is (numBits - hamming(a, b)) / numBits. - /// - /// - [EnumMember(Value = "l2_norm")] - L2Norm, - /// - /// - /// Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity. - /// The constraints and computed score are defined by element_type. - /// - /// - /// When element_type is float, all vectors must be unit length, including both document and query vectors. - /// - /// - /// The document _score is computed as (1 + dot_product(query, vector)) / 2. - /// - /// - /// When element_type is byte, all vectors must have the same length including both document and query vectors or - /// results will be inaccurate. - /// - /// - /// The document _score is computed as 0.5 + (dot_product(query, vector) / (32768 * dims)) where dims is the - /// number of dimensions per vector. - /// - /// - [EnumMember(Value = "dot_product")] - DotProduct, - /// - /// - /// Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with cosine - /// similarity to unit length. This allows to internally use dot_product for computing similarity, which is more - /// efficient. Original un-normalized vectors can be still accessed through scripts. - /// - /// - /// The document _score is computed as (1 + cosine(query, vector)) / 2. - /// - /// - /// The cosine similarity does not allow vectors with zero magnitude, since cosine is not defined in this case. - /// - /// - [EnumMember(Value = "cosine")] - Cosine -} - -internal sealed class DenseVectorSimilarityConverter : JsonConverter -{ - public override DenseVectorSimilarity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "max_inner_product": - return DenseVectorSimilarity.MaxInnerProduct; - case "l2_norm": - return DenseVectorSimilarity.L2Norm; - case "dot_product": - return DenseVectorSimilarity.DotProduct; - case "cosine": - return DenseVectorSimilarity.Cosine; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, DenseVectorSimilarity value, JsonSerializerOptions options) - { - switch (value) - { - case DenseVectorSimilarity.MaxInnerProduct: - writer.WriteStringValue("max_inner_product"); - return; - case DenseVectorSimilarity.L2Norm: - writer.WriteStringValue("l2_norm"); - return; - case DenseVectorSimilarity.DotProduct: - writer.WriteStringValue("dot_product"); - return; - case DenseVectorSimilarity.Cosine: - writer.WriteStringValue("cosine"); - return; - } - - writer.WriteNullValue(); - } -} - [JsonConverter(typeof(DynamicMappingConverter))] public enum DynamicMapping { @@ -403,8 +111,6 @@ public enum FieldType RankFeature, [EnumMember(Value = "percolator")] Percolator, - [EnumMember(Value = "passthrough")] - Passthrough, [EnumMember(Value = "object")] Object, [EnumMember(Value = "none")] @@ -506,8 +212,6 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.RankFeature; case "percolator": return FieldType.Percolator; - case "passthrough": - return FieldType.Passthrough; case "object": return FieldType.Object; case "none": @@ -622,9 +326,6 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Percolator: writer.WriteStringValue("percolator"); return; - case FieldType.Passthrough: - writer.WriteStringValue("passthrough"); - return; case FieldType.Object: writer.WriteStringValue("object"); return; @@ -1109,6 +810,75 @@ public override void Write(Utf8JsonWriter writer, SourceFieldMode value, JsonSer } } +[JsonConverter(typeof(SyntheticSourceKeepEnumConverter))] +public enum SyntheticSourceKeepEnum +{ + /// + /// + /// Synthetic source diverges from the original source (default) + /// + /// + [EnumMember(Value = "none")] + None, + /// + /// + /// Arrays of the corresponding field or object preserve the original element ordering and duplicate elements. + /// The synthetic source fragment for such arrays is not guaranteed to match the original source exactly, + /// e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5]. + /// The exact format may change in the future, in an effort to reduce the storage overhead of this option. + /// + /// + [EnumMember(Value = "arrays")] + Arrays, + /// + /// + /// The source for both singleton instances and arrays of the corresponding field or object gets recorded. + /// When applied to objects, the source of all sub-objects and sub-fields gets captured. + /// Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications. + /// + /// + [EnumMember(Value = "all")] + All +} + +internal sealed class SyntheticSourceKeepEnumConverter : JsonConverter +{ + public override SyntheticSourceKeepEnum Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "none": + return SyntheticSourceKeepEnum.None; + case "arrays": + return SyntheticSourceKeepEnum.Arrays; + case "all": + return SyntheticSourceKeepEnum.All; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, SyntheticSourceKeepEnum value, JsonSerializerOptions options) + { + switch (value) + { + case SyntheticSourceKeepEnum.None: + writer.WriteStringValue("none"); + return; + case SyntheticSourceKeepEnum.Arrays: + writer.WriteStringValue("arrays"); + return; + case SyntheticSourceKeepEnum.All: + writer.WriteStringValue("all"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(TermVectorOptionConverter))] public enum TermVectorOption { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs index f2c5c6202bc..c590e11665a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs @@ -491,7 +491,7 @@ public enum ExpandWildcard None, /// /// - /// Match hidden data streams and hidden indices. Must be combined with open, closed, or both. + /// Match hidden data streams and hidden indices. Must be combined with open, closed, or both. /// /// [EnumMember(Value = "hidden")] @@ -1766,12 +1766,17 @@ public enum VersionType /// [EnumMember(Value = "internal")] Internal, + /// + /// + /// This option is deprecated because it can cause primary and replica shards to diverge. + /// + /// [EnumMember(Value = "force")] Force, /// /// - /// Only index the document if the given version is equal or higher than the version of the stored document or if there is no existing document. - /// Note: the external_gte version type is meant for special use cases and should be used with care. + /// Only index the document if the specified version is equal or higher than the version of the stored document or if there is no existing document. + /// NOTE: The external_gte version type is meant for special use cases and should be used with care. /// If used incorrectly, it can result in loss of data. /// /// @@ -1779,7 +1784,7 @@ public enum VersionType ExternalGte, /// /// - /// Only index the document if the given version is strictly higher than the version of the stored document or if there is no existing document. + /// Only index the document if the specified version is strictly higher than the version of the stored document or if there is no existing document. /// /// [EnumMember(Value = "external")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchApplication.g.cs new file mode 100644 index 00000000000..0b57910379c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.SearchApplication.g.cs @@ -0,0 +1,78 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +[JsonConverter(typeof(EventTypeConverter))] +public enum EventType +{ + [EnumMember(Value = "search_click")] + Searchclick, + [EnumMember(Value = "search")] + Search, + [EnumMember(Value = "page_view")] + Pageview +} + +internal sealed class EventTypeConverter : JsonConverter +{ + public override EventType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "search_click": + return EventType.Searchclick; + case "search": + return EventType.Search; + case "page_view": + return EventType.Pageview; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, EventType value, JsonSerializerOptions options) + { + switch (value) + { + case EventType.Searchclick: + writer.WriteStringValue("search_click"); + return; + case EventType.Search: + writer.WriteStringValue("search"); + return; + case EventType.Pageview: + writer.WriteStringValue("page_view"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs index a73a00e061d..d2100d3b8df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Security.g.cs @@ -31,12 +31,40 @@ namespace Elastic.Clients.Elasticsearch.Security; [JsonConverter(typeof(AccessTokenGrantTypeConverter))] public enum AccessTokenGrantType { + /// + /// + /// This grant type implements the Refresh Token Grant of OAuth2. + /// In this grant a user exchanges a previously issued refresh token for a new access token and a new refresh token. + /// + /// [EnumMember(Value = "refresh_token")] RefreshToken, + /// + /// + /// This grant type implements the Resource Owner Password Credentials Grant of OAuth2. + /// In this grant, a trusted client exchanges the end user's credentials for an access token and (possibly) a refresh token. + /// The request needs to be made by an authenticated user but happens on behalf of another authenticated user (the one whose credentials are passed as request parameters). + /// This grant type is not suitable or designed for the self-service user creation of tokens. + /// + /// [EnumMember(Value = "password")] Password, + /// + /// + /// This grant type is supported internally and implements SPNEGO based Kerberos support. + /// The _kerberos grant type may change from version to version. + /// + /// [EnumMember(Value = "_kerberos")] Kerberos, + /// + /// + /// This grant type implements the Client Credentials Grant of OAuth2. + /// It is geared for machine to machine communication and is not suitable or designed for the self-service user creation of tokens. + /// It generates only access tokens that cannot be refreshed. + /// The premise is that the entity that uses client_credentials has constant access to a set of (client, not end-user) credentials and can authenticate itself at will. + /// + /// [EnumMember(Value = "client_credentials")] ClientCredentials } @@ -262,6 +290,7 @@ public enum GrantType /// /// /// In this type of grant, you must supply an access token that was created by the Elasticsearch token service. + /// If you are activating a user profile, you can alternatively supply a JWT (either a JWT access_token or a JWT id_token). /// /// [EnumMember(Value = "access_token")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs index 23950271dfa..8dd4b7e1bd6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Tasks.g.cs @@ -33,7 +33,7 @@ public enum GroupBy { /// /// - /// Parent task ID + /// Group tasks by parent task ID. /// /// [EnumMember(Value = "parents")] @@ -47,7 +47,7 @@ public enum GroupBy None, /// /// - /// Node ID + /// Group tasks by node ID. /// /// [EnumMember(Value = "nodes")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs index 55ae6e38d10..e35a05a388e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ErrorCause.g.cs @@ -116,7 +116,7 @@ public sealed partial class ErrorCause /// /// - /// A human-readable explanation of the error, in english + /// A human-readable explanation of the error, in English. /// /// public string? Reason { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs index e1676136b51..16e5f4cdfe0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/IlmPolicy.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; public sealed partial class IlmPolicy { + /// + /// + /// Arbitrary metadata that is not automatically generated or used by Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("_meta")] public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("phases")] @@ -48,6 +53,11 @@ public IlmPolicyDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.PhasesDescriptor PhasesDescriptor { get; set; } private Action PhasesDescriptorAction { get; set; } + /// + /// + /// Arbitrary metadata that is not automatically generated or used by Elasticsearch. + /// + /// public IlmPolicyDescriptor Meta(Func, FluentDictionary> selector) { MetaValue = selector?.Invoke(new FluentDictionary()); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs index 86d494d0faf..6c34675689a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/Phase.g.cs @@ -32,7 +32,7 @@ public sealed partial class Phase [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Actions? Actions { get; set; } [JsonInclude, JsonPropertyName("min_age")] - public Union? MinAge { get; set; } + public Elastic.Clients.Elasticsearch.Duration? MinAge { get; set; } } public sealed partial class PhaseDescriptor : SerializableDescriptor @@ -46,7 +46,7 @@ public PhaseDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Actions? ActionsValue { get; set; } private Elastic.Clients.Elasticsearch.IndexLifecycleManagement.ActionsDescriptor ActionsDescriptor { get; set; } private Action ActionsDescriptorAction { get; set; } - private Union? MinAgeValue { get; set; } + private Elastic.Clients.Elasticsearch.Duration? MinAgeValue { get; set; } public PhaseDescriptor Actions(Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Actions? actions) { @@ -72,7 +72,7 @@ public PhaseDescriptor Actions(Action? minAge) + public PhaseDescriptor MinAge(Elastic.Clients.Elasticsearch.Duration? minAge) { MinAgeValue = minAge; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs index 30fc8645cd8..0da782d1db3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexLifecycleManagement/StepKey.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.IndexLifecycleManagement; public sealed partial class StepKey { + /// + /// + /// The optional action to which the index will be moved. + /// + /// [JsonInclude, JsonPropertyName("action")] public string? Action { get; set; } + + /// + /// + /// The optional step name to which the index will be moved. + /// + /// [JsonInclude, JsonPropertyName("name")] public string? Name { get; set; } [JsonInclude, JsonPropertyName("phase")] @@ -49,12 +60,22 @@ public StepKeyDescriptor() : base() private string? NameValue { get; set; } private string PhaseValue { get; set; } + /// + /// + /// The optional action to which the index will be moved. + /// + /// public StepKeyDescriptor Action(string? action) { ActionValue = action; return Self; } + /// + /// + /// The optional step name to which the index will be moved. + /// + /// public StepKeyDescriptor Name(string? name) { NameValue = name; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs index e777aab041b..72c98d5beba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/AliasDefinition.g.cs @@ -35,7 +35,7 @@ public sealed partial class AliasDefinition /// /// [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.QueryDsl.Query? Filter { get; init; } + public Elastic.Clients.Elasticsearch.QueryDsl.Query? Filter { get; set; } /// /// @@ -44,7 +44,7 @@ public sealed partial class AliasDefinition /// /// [JsonInclude, JsonPropertyName("index_routing")] - public string? IndexRouting { get; init; } + public string? IndexRouting { get; set; } /// /// @@ -53,7 +53,7 @@ public sealed partial class AliasDefinition /// /// [JsonInclude, JsonPropertyName("is_hidden")] - public bool? IsHidden { get; init; } + public bool? IsHidden { get; set; } /// /// @@ -61,7 +61,7 @@ public sealed partial class AliasDefinition /// /// [JsonInclude, JsonPropertyName("is_write_index")] - public bool? IsWriteIndex { get; init; } + public bool? IsWriteIndex { get; set; } /// /// @@ -69,7 +69,7 @@ public sealed partial class AliasDefinition /// /// [JsonInclude, JsonPropertyName("routing")] - public string? Routing { get; init; } + public string? Routing { get; set; } /// /// @@ -78,5 +78,319 @@ public sealed partial class AliasDefinition /// /// [JsonInclude, JsonPropertyName("search_routing")] - public string? SearchRouting { get; init; } + public string? SearchRouting { get; set; } +} + +public sealed partial class AliasDefinitionDescriptor : SerializableDescriptor> +{ + internal AliasDefinitionDescriptor(Action> configure) => configure.Invoke(this); + + public AliasDefinitionDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private string? IndexRoutingValue { get; set; } + private bool? IsHiddenValue { get; set; } + private bool? IsWriteIndexValue { get; set; } + private string? RoutingValue { get; set; } + private string? SearchRoutingValue { get; set; } + + /// + /// + /// Query used to limit documents the alias can access. + /// + /// + public AliasDefinitionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public AliasDefinitionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public AliasDefinitionDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + /// + /// + /// Value used to route indexing operations to a specific shard. + /// If specified, this overwrites the routing value for indexing operations. + /// + /// + public AliasDefinitionDescriptor IndexRouting(string? indexRouting) + { + IndexRoutingValue = indexRouting; + return Self; + } + + /// + /// + /// If true, the alias is hidden. + /// All indices for the alias must have the same is_hidden value. + /// + /// + public AliasDefinitionDescriptor IsHidden(bool? isHidden = true) + { + IsHiddenValue = isHidden; + return Self; + } + + /// + /// + /// If true, the index is the write index for the alias. + /// + /// + public AliasDefinitionDescriptor IsWriteIndex(bool? isWriteIndex = true) + { + IsWriteIndexValue = isWriteIndex; + return Self; + } + + /// + /// + /// Value used to route indexing and search operations to a specific shard. + /// + /// + public AliasDefinitionDescriptor Routing(string? routing) + { + RoutingValue = routing; + return Self; + } + + /// + /// + /// Value used to route search operations to a specific shard. + /// If specified, this overwrites the routing value for search operations. + /// + /// + public AliasDefinitionDescriptor SearchRouting(string? searchRouting) + { + SearchRoutingValue = searchRouting; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (!string.IsNullOrEmpty(IndexRoutingValue)) + { + writer.WritePropertyName("index_routing"); + writer.WriteStringValue(IndexRoutingValue); + } + + if (IsHiddenValue.HasValue) + { + writer.WritePropertyName("is_hidden"); + writer.WriteBooleanValue(IsHiddenValue.Value); + } + + if (IsWriteIndexValue.HasValue) + { + writer.WritePropertyName("is_write_index"); + writer.WriteBooleanValue(IsWriteIndexValue.Value); + } + + if (!string.IsNullOrEmpty(RoutingValue)) + { + writer.WritePropertyName("routing"); + writer.WriteStringValue(RoutingValue); + } + + if (!string.IsNullOrEmpty(SearchRoutingValue)) + { + writer.WritePropertyName("search_routing"); + writer.WriteStringValue(SearchRoutingValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class AliasDefinitionDescriptor : SerializableDescriptor +{ + internal AliasDefinitionDescriptor(Action configure) => configure.Invoke(this); + + public AliasDefinitionDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private string? IndexRoutingValue { get; set; } + private bool? IsHiddenValue { get; set; } + private bool? IsWriteIndexValue { get; set; } + private string? RoutingValue { get; set; } + private string? SearchRoutingValue { get; set; } + + /// + /// + /// Query used to limit documents the alias can access. + /// + /// + public AliasDefinitionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public AliasDefinitionDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public AliasDefinitionDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + /// + /// + /// Value used to route indexing operations to a specific shard. + /// If specified, this overwrites the routing value for indexing operations. + /// + /// + public AliasDefinitionDescriptor IndexRouting(string? indexRouting) + { + IndexRoutingValue = indexRouting; + return Self; + } + + /// + /// + /// If true, the alias is hidden. + /// All indices for the alias must have the same is_hidden value. + /// + /// + public AliasDefinitionDescriptor IsHidden(bool? isHidden = true) + { + IsHiddenValue = isHidden; + return Self; + } + + /// + /// + /// If true, the index is the write index for the alias. + /// + /// + public AliasDefinitionDescriptor IsWriteIndex(bool? isWriteIndex = true) + { + IsWriteIndexValue = isWriteIndex; + return Self; + } + + /// + /// + /// Value used to route indexing and search operations to a specific shard. + /// + /// + public AliasDefinitionDescriptor Routing(string? routing) + { + RoutingValue = routing; + return Self; + } + + /// + /// + /// Value used to route search operations to a specific shard. + /// If specified, this overwrites the routing value for search operations. + /// + /// + public AliasDefinitionDescriptor SearchRouting(string? searchRouting) + { + SearchRoutingValue = searchRouting; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + 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.QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (!string.IsNullOrEmpty(IndexRoutingValue)) + { + writer.WritePropertyName("index_routing"); + writer.WriteStringValue(IndexRoutingValue); + } + + if (IsHiddenValue.HasValue) + { + writer.WritePropertyName("is_hidden"); + writer.WriteBooleanValue(IsHiddenValue.Value); + } + + if (IsWriteIndexValue.HasValue) + { + writer.WritePropertyName("is_write_index"); + writer.WriteBooleanValue(IsWriteIndexValue.Value); + } + + if (!string.IsNullOrEmpty(RoutingValue)) + { + writer.WritePropertyName("routing"); + writer.WriteStringValue(RoutingValue); + } + + if (!string.IsNullOrEmpty(SearchRoutingValue)) + { + writer.WritePropertyName("search_routing"); + writer.WriteStringValue(SearchRoutingValue); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index af6ef53abc5..bde86c5aa76 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -34,32 +34,10 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// public sealed partial class DataStreamLifecycle { - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } - - /// - /// - /// The downsampling configuration to execute for the managed backing index after rollover. - /// - /// [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } - - /// - /// - /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle - /// that's disabled (enabled: false) will have no effect on the data stream. - /// - /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } } /// @@ -79,26 +57,13 @@ public DataStreamLifecycleDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } private Action DownsamplingDescriptorAction { get; set; } - private bool? EnabledValue { get; set; } - /// - /// - /// If defined, every document added to this data stream will be stored at least for this time frame. - /// Any time after this duration the document could be deleted. - /// When empty, every document in this data stream will be stored indefinitely. - /// - /// public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) { DataRetentionValue = dataRetention; return Self; } - /// - /// - /// The downsampling configuration to execute for the managed backing index after rollover. - /// - /// public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) { DownsamplingDescriptor = null; @@ -123,18 +88,6 @@ public DataStreamLifecycleDescriptor Downsampling(Action - /// - /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle - /// that's disabled (enabled: false) will have no effect on the data stream. - /// - /// - public DataStreamLifecycleDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -160,12 +113,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DownsamplingValue, options); } - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs index 41fef444c36..8b858e71b2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs @@ -30,23 +30,169 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class DataStreamLifecycleRolloverConditions { [JsonInclude, JsonPropertyName("max_age")] - public string? MaxAge { get; init; } + public string? MaxAge { get; set; } [JsonInclude, JsonPropertyName("max_docs")] - public long? MaxDocs { get; init; } + public long? MaxDocs { get; set; } [JsonInclude, JsonPropertyName("max_primary_shard_docs")] - public long? MaxPrimaryShardDocs { get; init; } + public long? MaxPrimaryShardDocs { get; set; } [JsonInclude, JsonPropertyName("max_primary_shard_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxPrimaryShardSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxPrimaryShardSize { get; set; } [JsonInclude, JsonPropertyName("max_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MaxSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxSize { get; set; } [JsonInclude, JsonPropertyName("min_age")] - public Elastic.Clients.Elasticsearch.Duration? MinAge { get; init; } + public Elastic.Clients.Elasticsearch.Duration? MinAge { get; set; } [JsonInclude, JsonPropertyName("min_docs")] - public long? MinDocs { get; init; } + public long? MinDocs { get; set; } [JsonInclude, JsonPropertyName("min_primary_shard_docs")] - public long? MinPrimaryShardDocs { get; init; } + public long? MinPrimaryShardDocs { get; set; } [JsonInclude, JsonPropertyName("min_primary_shard_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MinPrimaryShardSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MinPrimaryShardSize { get; set; } [JsonInclude, JsonPropertyName("min_size")] - public Elastic.Clients.Elasticsearch.ByteSize? MinSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MinSize { get; set; } +} + +public sealed partial class DataStreamLifecycleRolloverConditionsDescriptor : SerializableDescriptor +{ + internal DataStreamLifecycleRolloverConditionsDescriptor(Action configure) => configure.Invoke(this); + + public DataStreamLifecycleRolloverConditionsDescriptor() : base() + { + } + + private string? MaxAgeValue { get; set; } + private long? MaxDocsValue { get; set; } + private long? MaxPrimaryShardDocsValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxPrimaryShardSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Duration? MinAgeValue { get; set; } + private long? MinDocsValue { get; set; } + private long? MinPrimaryShardDocsValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MinPrimaryShardSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MinSizeValue { get; set; } + + public DataStreamLifecycleRolloverConditionsDescriptor MaxAge(string? maxAge) + { + MaxAgeValue = maxAge; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MaxDocs(long? maxDocs) + { + MaxDocsValue = maxDocs; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MaxPrimaryShardDocs(long? maxPrimaryShardDocs) + { + MaxPrimaryShardDocsValue = maxPrimaryShardDocs; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MaxPrimaryShardSize(Elastic.Clients.Elasticsearch.ByteSize? maxPrimaryShardSize) + { + MaxPrimaryShardSizeValue = maxPrimaryShardSize; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MaxSize(Elastic.Clients.Elasticsearch.ByteSize? maxSize) + { + MaxSizeValue = maxSize; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MinAge(Elastic.Clients.Elasticsearch.Duration? minAge) + { + MinAgeValue = minAge; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MinDocs(long? minDocs) + { + MinDocsValue = minDocs; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MinPrimaryShardDocs(long? minPrimaryShardDocs) + { + MinPrimaryShardDocsValue = minPrimaryShardDocs; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MinPrimaryShardSize(Elastic.Clients.Elasticsearch.ByteSize? minPrimaryShardSize) + { + MinPrimaryShardSizeValue = minPrimaryShardSize; + return Self; + } + + public DataStreamLifecycleRolloverConditionsDescriptor MinSize(Elastic.Clients.Elasticsearch.ByteSize? minSize) + { + MinSizeValue = minSize; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(MaxAgeValue)) + { + writer.WritePropertyName("max_age"); + writer.WriteStringValue(MaxAgeValue); + } + + if (MaxDocsValue.HasValue) + { + writer.WritePropertyName("max_docs"); + writer.WriteNumberValue(MaxDocsValue.Value); + } + + if (MaxPrimaryShardDocsValue.HasValue) + { + writer.WritePropertyName("max_primary_shard_docs"); + writer.WriteNumberValue(MaxPrimaryShardDocsValue.Value); + } + + if (MaxPrimaryShardSizeValue is not null) + { + writer.WritePropertyName("max_primary_shard_size"); + JsonSerializer.Serialize(writer, MaxPrimaryShardSizeValue, options); + } + + if (MaxSizeValue is not null) + { + writer.WritePropertyName("max_size"); + JsonSerializer.Serialize(writer, MaxSizeValue, options); + } + + if (MinAgeValue is not null) + { + writer.WritePropertyName("min_age"); + JsonSerializer.Serialize(writer, MinAgeValue, options); + } + + if (MinDocsValue.HasValue) + { + writer.WritePropertyName("min_docs"); + writer.WriteNumberValue(MinDocsValue.Value); + } + + if (MinPrimaryShardDocsValue.HasValue) + { + writer.WritePropertyName("min_primary_shard_docs"); + writer.WriteNumberValue(MinPrimaryShardDocsValue.Value); + } + + if (MinPrimaryShardSizeValue is not null) + { + writer.WritePropertyName("min_primary_shard_size"); + JsonSerializer.Serialize(writer, MinPrimaryShardSizeValue, options); + } + + if (MinSizeValue is not null) + { + writer.WritePropertyName("min_size"); + JsonSerializer.Serialize(writer, MinSizeValue, options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index 974bb01a049..faa19347cfc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -43,7 +43,7 @@ public sealed partial class DataStreamLifecycleWithRollover /// /// [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; init; } + public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } /// /// @@ -51,16 +51,82 @@ public sealed partial class DataStreamLifecycleWithRollover /// /// [JsonInclude, JsonPropertyName("downsampling")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } /// /// - /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle - /// that's disabled (enabled: false) will have no effect on the data stream. + /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. + /// This property is an implementation detail and it will only be retrieved when the query param include_defaults is set to true. + /// The contents of this field are subject to change. /// /// - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; init; } + [JsonInclude, JsonPropertyName("rollover")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditions? Rollover { get; set; } +} + +/// +/// +/// Data stream lifecycle with rollover can be used to display the configuration including the default rollover conditions, +/// if asked. +/// +/// +public sealed partial class DataStreamLifecycleWithRolloverDescriptor : SerializableDescriptor +{ + internal DataStreamLifecycleWithRolloverDescriptor(Action configure) => configure.Invoke(this); + + public DataStreamLifecycleWithRolloverDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } + private Action DownsamplingDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditions? RolloverValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditionsDescriptor RolloverDescriptor { get; set; } + private Action RolloverDescriptorAction { get; set; } + + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// + public DataStreamLifecycleWithRolloverDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) + { + DataRetentionValue = dataRetention; + return Self; + } + + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// + public DataStreamLifecycleWithRolloverDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + { + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = null; + DownsamplingValue = downsampling; + return Self; + } + + public DataStreamLifecycleWithRolloverDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor descriptor) + { + DownsamplingValue = null; + DownsamplingDescriptorAction = null; + DownsamplingDescriptor = descriptor; + return Self; + } + + public DataStreamLifecycleWithRolloverDescriptor Downsampling(Action configure) + { + DownsamplingValue = null; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = configure; + return Self; + } /// /// @@ -69,6 +135,71 @@ public sealed partial class DataStreamLifecycleWithRollover /// The contents of this field are subject to change. /// /// - [JsonInclude, JsonPropertyName("rollover")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditions? Rollover { get; init; } + public DataStreamLifecycleWithRolloverDescriptor Rollover(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditions? rollover) + { + RolloverDescriptor = null; + RolloverDescriptorAction = null; + RolloverValue = rollover; + return Self; + } + + public DataStreamLifecycleWithRolloverDescriptor Rollover(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditionsDescriptor descriptor) + { + RolloverValue = null; + RolloverDescriptorAction = null; + RolloverDescriptor = descriptor; + return Self; + } + + public DataStreamLifecycleWithRolloverDescriptor Rollover(Action configure) + { + RolloverValue = null; + RolloverDescriptor = null; + RolloverDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DataRetentionValue is not null) + { + writer.WritePropertyName("data_retention"); + JsonSerializer.Serialize(writer, DataRetentionValue, options); + } + + if (DownsamplingDescriptor is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); + } + else if (DownsamplingDescriptorAction is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); + } + else if (DownsamplingValue is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingValue, options); + } + + if (RolloverDescriptor is not null) + { + writer.WritePropertyName("rollover"); + JsonSerializer.Serialize(writer, RolloverDescriptor, options); + } + else if (RolloverDescriptorAction is not null) + { + writer.WritePropertyName("rollover"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditionsDescriptor(RolloverDescriptorAction), options); + } + else if (RolloverValue is not null) + { + writer.WritePropertyName("rollover"); + JsonSerializer.Serialize(writer, RolloverValue, options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs similarity index 61% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs index ffbababfc4a..a814c24f3cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamStats.g.cs @@ -25,23 +25,31 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Core.HealthReport; +namespace Elastic.Clients.Elasticsearch.IndexManagement; -/// -/// -/// FILE_SETTINGS -/// -/// -public sealed partial class FileSettingsIndicator +public sealed partial class DataStreamStats { - [JsonInclude, JsonPropertyName("details")] - public Elastic.Clients.Elasticsearch.Core.HealthReport.FileSettingsIndicatorDetails? Details { get; init; } - [JsonInclude, JsonPropertyName("diagnosis")] - public IReadOnlyCollection? Diagnosis { get; init; } - [JsonInclude, JsonPropertyName("impacts")] - public IReadOnlyCollection? Impacts { get; init; } - [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Core.HealthReport.IndicatorHealthStatus Status { get; init; } - [JsonInclude, JsonPropertyName("symptom")] - public string Symptom { get; init; } + /// + /// + /// The count of the backing indices for the data stream. + /// + /// + [JsonInclude, JsonPropertyName("backing_indices_in_error")] + public int BackingIndicesInError { get; init; } + + /// + /// + /// The count of the backing indices for the data stream that have encountered an error. + /// + /// + [JsonInclude, JsonPropertyName("backing_indices_in_total")] + public int BackingIndicesInTotal { get; init; } + + /// + /// + /// The name of the data stream. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs index 68c2b4ced4b..f1f55abf69b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class DataStreamWithLifecycle { [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? Lifecycle { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs index 74651d5ea79..b0ffbd8ba5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettingsLifecycle.g.cs @@ -67,6 +67,15 @@ public sealed partial class IndexSettingsLifecycle [JsonInclude, JsonPropertyName("parse_origination_date")] public bool? ParseOriginationDate { get; set; } + /// + /// + /// Preference for the system that manages a data stream backing index (preferring ILM when both ILM and DLM are + /// applicable for an index). + /// + /// + [JsonInclude, JsonPropertyName("prefer_ilm")] + public object? PreferIlm { get; set; } + /// /// /// The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. @@ -92,6 +101,7 @@ public IndexSettingsLifecycleDescriptor() : base() private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } private long? OriginationDateValue { get; set; } private bool? ParseOriginationDateValue { get; set; } + private object? PreferIlmValue { get; set; } private string? RolloverAliasValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsLifecycleStep? StepValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsLifecycleStepDescriptor StepDescriptor { get; set; } @@ -147,6 +157,18 @@ public IndexSettingsLifecycleDescriptor ParseOriginationDate(bool? parseOriginat return Self; } + /// + /// + /// Preference for the system that manages a data stream backing index (preferring ILM when both ILM and DLM are + /// applicable for an index). + /// + /// + public IndexSettingsLifecycleDescriptor PreferIlm(object? preferIlm) + { + PreferIlmValue = preferIlm; + return Self; + } + /// /// /// The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. @@ -211,6 +233,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(ParseOriginationDateValue.Value); } + if (PreferIlmValue is not null) + { + writer.WritePropertyName("prefer_ilm"); + JsonSerializer.Serialize(writer, PreferIlmValue, options); + } + if (!string.IsNullOrEmpty(RolloverAliasValue)) { writer.WritePropertyName("rollover_alias"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs index f66dc302ac4..97869c59b97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplate.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class IndexTemplate { [JsonInclude, JsonPropertyName("allow_auto_create")] - public bool? AllowAutoCreate { get; init; } + public bool? AllowAutoCreate { get; set; } /// /// @@ -39,7 +39,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("composed_of")] - public IReadOnlyCollection ComposedOf { get; init; } + public ICollection ComposedOf { get; set; } /// /// @@ -49,7 +49,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("data_stream")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? DataStream { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? DataStream { get; set; } /// /// @@ -59,7 +59,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("deprecated")] - public bool? Deprecated { get; init; } + public bool? Deprecated { get; set; } /// /// @@ -67,8 +67,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("ignore_missing_component_templates")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection? IgnoreMissingComponentTemplates { get; init; } + public Elastic.Clients.Elasticsearch.Names? IgnoreMissingComponentTemplates { get; set; } /// /// @@ -76,8 +75,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("index_patterns")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection IndexPatterns { get; init; } + public Elastic.Clients.Elasticsearch.Names IndexPatterns { get; set; } /// /// @@ -86,7 +84,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("_meta")] - public IReadOnlyDictionary? Meta { get; init; } + public IDictionary? Meta { get; set; } /// /// @@ -97,7 +95,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("priority")] - public long? Priority { get; init; } + public long? Priority { get; set; } /// /// @@ -106,7 +104,7 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummary? Template { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummary? Template { get; set; } /// /// @@ -115,5 +113,513 @@ public sealed partial class IndexTemplate /// /// [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } + public long? Version { get; set; } +} + +public sealed partial class IndexTemplateDescriptor : SerializableDescriptor> +{ + internal IndexTemplateDescriptor(Action> configure) => configure.Invoke(this); + + public IndexTemplateDescriptor() : base() + { + } + + private bool? AllowAutoCreateValue { get; set; } + private ICollection ComposedOfValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? DataStreamValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfigurationDescriptor DataStreamDescriptor { get; set; } + private Action DataStreamDescriptorAction { get; set; } + private bool? DeprecatedValue { get; set; } + private Elastic.Clients.Elasticsearch.Names? IgnoreMissingComponentTemplatesValue { get; set; } + private Elastic.Clients.Elasticsearch.Names IndexPatternsValue { get; set; } + private IDictionary? MetaValue { get; set; } + private long? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummary? TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummaryDescriptor TemplateDescriptor { get; set; } + private Action> TemplateDescriptorAction { get; set; } + private long? VersionValue { get; set; } + + public IndexTemplateDescriptor AllowAutoCreate(bool? allowAutoCreate = true) + { + AllowAutoCreateValue = allowAutoCreate; + return Self; + } + + /// + /// + /// An ordered list of component template names. + /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. + /// + /// + public IndexTemplateDescriptor ComposedOf(ICollection composedOf) + { + ComposedOfValue = composedOf; + return Self; + } + + /// + /// + /// If this object is included, the template is used to create data streams and their backing indices. + /// Supports an empty object. + /// Data streams require a matching index template with a data_stream object. + /// + /// + public IndexTemplateDescriptor DataStream(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? dataStream) + { + DataStreamDescriptor = null; + DataStreamDescriptorAction = null; + DataStreamValue = dataStream; + return Self; + } + + public IndexTemplateDescriptor DataStream(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfigurationDescriptor descriptor) + { + DataStreamValue = null; + DataStreamDescriptorAction = null; + DataStreamDescriptor = descriptor; + return Self; + } + + public IndexTemplateDescriptor DataStream(Action configure) + { + DataStreamValue = null; + DataStreamDescriptor = null; + DataStreamDescriptorAction = configure; + return Self; + } + + /// + /// + /// Marks this index template as deprecated. + /// When creating or updating a non-deprecated index template that uses deprecated components, + /// Elasticsearch will emit a deprecation warning. + /// + /// + public IndexTemplateDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + + /// + /// + /// A list of component template names that are allowed to be absent. + /// + /// + public IndexTemplateDescriptor IgnoreMissingComponentTemplates(Elastic.Clients.Elasticsearch.Names? ignoreMissingComponentTemplates) + { + IgnoreMissingComponentTemplatesValue = ignoreMissingComponentTemplates; + return Self; + } + + /// + /// + /// Name of the index template. + /// + /// + public IndexTemplateDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Names indexPatterns) + { + IndexPatternsValue = indexPatterns; + return Self; + } + + /// + /// + /// Optional user metadata about the index template. May have any contents. + /// This map is not automatically generated by Elasticsearch. + /// + /// + public IndexTemplateDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// Priority to determine index template precedence when a new data stream or index is created. + /// The index template with the highest priority is chosen. + /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). + /// This number is not automatically generated by Elasticsearch. + /// + /// + public IndexTemplateDescriptor Priority(long? priority) + { + PriorityValue = priority; + return Self; + } + + /// + /// + /// Template to be applied. + /// It may optionally include an aliases, mappings, or settings configuration. + /// + /// + public IndexTemplateDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummary? template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public IndexTemplateDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummaryDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public IndexTemplateDescriptor Template(Action> configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + /// + /// + /// Version number used to manage index templates externally. + /// This number is not automatically generated by Elasticsearch. + /// + /// + public IndexTemplateDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowAutoCreateValue.HasValue) + { + writer.WritePropertyName("allow_auto_create"); + writer.WriteBooleanValue(AllowAutoCreateValue.Value); + } + + writer.WritePropertyName("composed_of"); + JsonSerializer.Serialize(writer, ComposedOfValue, options); + if (DataStreamDescriptor is not null) + { + writer.WritePropertyName("data_stream"); + JsonSerializer.Serialize(writer, DataStreamDescriptor, options); + } + else if (DataStreamDescriptorAction is not null) + { + writer.WritePropertyName("data_stream"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfigurationDescriptor(DataStreamDescriptorAction), options); + } + else if (DataStreamValue is not null) + { + writer.WritePropertyName("data_stream"); + JsonSerializer.Serialize(writer, DataStreamValue, options); + } + + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + + if (IgnoreMissingComponentTemplatesValue is not null) + { + writer.WritePropertyName("ignore_missing_component_templates"); + JsonSerializer.Serialize(writer, IgnoreMissingComponentTemplatesValue, options); + } + + writer.WritePropertyName("index_patterns"); + JsonSerializer.Serialize(writer, IndexPatternsValue, options); + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummaryDescriptor(TemplateDescriptorAction), options); + } + else if (TemplateValue is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class IndexTemplateDescriptor : SerializableDescriptor +{ + internal IndexTemplateDescriptor(Action configure) => configure.Invoke(this); + + public IndexTemplateDescriptor() : base() + { + } + + private bool? AllowAutoCreateValue { get; set; } + private ICollection ComposedOfValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? DataStreamValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfigurationDescriptor DataStreamDescriptor { get; set; } + private Action DataStreamDescriptorAction { get; set; } + private bool? DeprecatedValue { get; set; } + private Elastic.Clients.Elasticsearch.Names? IgnoreMissingComponentTemplatesValue { get; set; } + private Elastic.Clients.Elasticsearch.Names IndexPatternsValue { get; set; } + private IDictionary? MetaValue { get; set; } + private long? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummary? TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummaryDescriptor TemplateDescriptor { get; set; } + private Action TemplateDescriptorAction { get; set; } + private long? VersionValue { get; set; } + + public IndexTemplateDescriptor AllowAutoCreate(bool? allowAutoCreate = true) + { + AllowAutoCreateValue = allowAutoCreate; + return Self; + } + + /// + /// + /// An ordered list of component template names. + /// Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence. + /// + /// + public IndexTemplateDescriptor ComposedOf(ICollection composedOf) + { + ComposedOfValue = composedOf; + return Self; + } + + /// + /// + /// If this object is included, the template is used to create data streams and their backing indices. + /// Supports an empty object. + /// Data streams require a matching index template with a data_stream object. + /// + /// + public IndexTemplateDescriptor DataStream(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfiguration? dataStream) + { + DataStreamDescriptor = null; + DataStreamDescriptorAction = null; + DataStreamValue = dataStream; + return Self; + } + + public IndexTemplateDescriptor DataStream(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfigurationDescriptor descriptor) + { + DataStreamValue = null; + DataStreamDescriptorAction = null; + DataStreamDescriptor = descriptor; + return Self; + } + + public IndexTemplateDescriptor DataStream(Action configure) + { + DataStreamValue = null; + DataStreamDescriptor = null; + DataStreamDescriptorAction = configure; + return Self; + } + + /// + /// + /// Marks this index template as deprecated. + /// When creating or updating a non-deprecated index template that uses deprecated components, + /// Elasticsearch will emit a deprecation warning. + /// + /// + public IndexTemplateDescriptor Deprecated(bool? deprecated = true) + { + DeprecatedValue = deprecated; + return Self; + } + + /// + /// + /// A list of component template names that are allowed to be absent. + /// + /// + public IndexTemplateDescriptor IgnoreMissingComponentTemplates(Elastic.Clients.Elasticsearch.Names? ignoreMissingComponentTemplates) + { + IgnoreMissingComponentTemplatesValue = ignoreMissingComponentTemplates; + return Self; + } + + /// + /// + /// Name of the index template. + /// + /// + public IndexTemplateDescriptor IndexPatterns(Elastic.Clients.Elasticsearch.Names indexPatterns) + { + IndexPatternsValue = indexPatterns; + return Self; + } + + /// + /// + /// Optional user metadata about the index template. May have any contents. + /// This map is not automatically generated by Elasticsearch. + /// + /// + public IndexTemplateDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// + /// Priority to determine index template precedence when a new data stream or index is created. + /// The index template with the highest priority is chosen. + /// If no priority is specified the template is treated as though it is of priority 0 (lowest priority). + /// This number is not automatically generated by Elasticsearch. + /// + /// + public IndexTemplateDescriptor Priority(long? priority) + { + PriorityValue = priority; + return Self; + } + + /// + /// + /// Template to be applied. + /// It may optionally include an aliases, mappings, or settings configuration. + /// + /// + public IndexTemplateDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummary? template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public IndexTemplateDescriptor Template(Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummaryDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public IndexTemplateDescriptor Template(Action configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + /// + /// + /// Version number used to manage index templates externally. + /// This number is not automatically generated by Elasticsearch. + /// + /// + public IndexTemplateDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowAutoCreateValue.HasValue) + { + writer.WritePropertyName("allow_auto_create"); + writer.WriteBooleanValue(AllowAutoCreateValue.Value); + } + + writer.WritePropertyName("composed_of"); + JsonSerializer.Serialize(writer, ComposedOfValue, options); + if (DataStreamDescriptor is not null) + { + writer.WritePropertyName("data_stream"); + JsonSerializer.Serialize(writer, DataStreamDescriptor, options); + } + else if (DataStreamDescriptorAction is not null) + { + writer.WritePropertyName("data_stream"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateDataStreamConfigurationDescriptor(DataStreamDescriptorAction), options); + } + else if (DataStreamValue is not null) + { + writer.WritePropertyName("data_stream"); + JsonSerializer.Serialize(writer, DataStreamValue, options); + } + + if (DeprecatedValue.HasValue) + { + writer.WritePropertyName("deprecated"); + writer.WriteBooleanValue(DeprecatedValue.Value); + } + + if (IgnoreMissingComponentTemplatesValue is not null) + { + writer.WritePropertyName("ignore_missing_component_templates"); + JsonSerializer.Serialize(writer, IgnoreMissingComponentTemplatesValue, options); + } + + writer.WritePropertyName("index_patterns"); + JsonSerializer.Serialize(writer, IndexPatternsValue, options); + if (MetaValue is not null) + { + writer.WritePropertyName("_meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexTemplateSummaryDescriptor(TemplateDescriptorAction), options); + } + else if (TemplateValue is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs index c8d05104c87..aef9bcd6101 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateDataStreamConfiguration.g.cs @@ -35,7 +35,7 @@ public sealed partial class IndexTemplateDataStreamConfiguration /// /// [JsonInclude, JsonPropertyName("allow_custom_routing")] - public bool? AllowCustomRouting { get; init; } + public bool? AllowCustomRouting { get; set; } /// /// @@ -43,5 +43,57 @@ public sealed partial class IndexTemplateDataStreamConfiguration /// /// [JsonInclude, JsonPropertyName("hidden")] - public bool? Hidden { get; init; } + public bool? Hidden { get; set; } +} + +public sealed partial class IndexTemplateDataStreamConfigurationDescriptor : SerializableDescriptor +{ + internal IndexTemplateDataStreamConfigurationDescriptor(Action configure) => configure.Invoke(this); + + public IndexTemplateDataStreamConfigurationDescriptor() : base() + { + } + + private bool? AllowCustomRoutingValue { get; set; } + private bool? HiddenValue { get; set; } + + /// + /// + /// If true, the data stream supports custom routing. + /// + /// + public IndexTemplateDataStreamConfigurationDescriptor AllowCustomRouting(bool? allowCustomRouting = true) + { + AllowCustomRoutingValue = allowCustomRouting; + return Self; + } + + /// + /// + /// If true, the data stream is hidden. + /// + /// + public IndexTemplateDataStreamConfigurationDescriptor Hidden(bool? hidden = true) + { + HiddenValue = hidden; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AllowCustomRoutingValue.HasValue) + { + writer.WritePropertyName("allow_custom_routing"); + writer.WriteBooleanValue(AllowCustomRoutingValue.Value); + } + + if (HiddenValue.HasValue) + { + writer.WritePropertyName("hidden"); + writer.WriteBooleanValue(HiddenValue.Value); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs index be455d697cb..15fdb68c53c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs @@ -38,10 +38,9 @@ public sealed partial class IndexTemplateSummary /// /// [JsonInclude, JsonPropertyName("aliases")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Alias))] - public IReadOnlyDictionary? Aliases { get; init; } + public IDictionary? Aliases { get; set; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; set; } /// /// @@ -50,7 +49,7 @@ public sealed partial class IndexTemplateSummary /// /// [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; init; } + public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } /// /// @@ -58,5 +57,359 @@ public sealed partial class IndexTemplateSummary /// /// [JsonInclude, JsonPropertyName("settings")] - public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; set; } +} + +public sealed partial class IndexTemplateSummaryDescriptor : SerializableDescriptor> +{ + internal IndexTemplateSummaryDescriptor(Action> configure) => configure.Invoke(this); + + public IndexTemplateSummaryDescriptor() : base() + { + } + + private IDictionary> AliasesValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? LifecycleValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } + private Action> MappingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } + private Action> SettingsDescriptorAction { get; set; } + + /// + /// + /// Aliases to add. + /// If the index template includes a data_stream object, these are data stream aliases. + /// Otherwise, these are index aliases. + /// Data stream aliases ignore the index_routing, routing, and search_routing options. + /// + /// + public IndexTemplateSummaryDescriptor Aliases(Func>, FluentDescriptorDictionary>> selector) + { + AliasesValue = selector?.Invoke(new FluentDescriptorDictionary>()); + return Self; + } + + public IndexTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public IndexTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public IndexTemplateSummaryDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + + /// + /// + /// Mapping for fields in the index. + /// If specified, this mapping can include field names, field data types, and mapping parameters. + /// + /// + public IndexTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) + { + MappingsDescriptor = null; + MappingsDescriptorAction = null; + MappingsValue = mappings; + return Self; + } + + public IndexTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingsValue = null; + MappingsDescriptorAction = null; + MappingsDescriptor = descriptor; + return Self; + } + + public IndexTemplateSummaryDescriptor Mappings(Action> configure) + { + MappingsValue = null; + MappingsDescriptor = null; + MappingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Configuration options for the index. + /// + /// + public IndexTemplateSummaryDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) + { + SettingsDescriptor = null; + SettingsDescriptorAction = null; + SettingsValue = settings; + return Self; + } + + public IndexTemplateSummaryDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsValue = null; + SettingsDescriptorAction = null; + SettingsDescriptor = descriptor; + return Self; + } + + public IndexTemplateSummaryDescriptor Settings(Action> configure) + { + SettingsValue = null; + SettingsDescriptor = null; + SettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AliasesValue is not null) + { + writer.WritePropertyName("aliases"); + JsonSerializer.Serialize(writer, AliasesValue, options); + } + + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + + if (MappingsDescriptor is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsDescriptor, options); + } + else if (MappingsDescriptorAction is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); + } + else if (MappingsValue is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsValue, options); + } + + if (SettingsDescriptor is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsDescriptor, options); + } + else if (SettingsDescriptorAction is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); + } + else if (SettingsValue is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class IndexTemplateSummaryDescriptor : SerializableDescriptor +{ + internal IndexTemplateSummaryDescriptor(Action configure) => configure.Invoke(this); + + public IndexTemplateSummaryDescriptor() : base() + { + } + + private IDictionary AliasesValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? LifecycleValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingsDescriptor { get; set; } + private Action MappingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } + private Action SettingsDescriptorAction { get; set; } + + /// + /// + /// Aliases to add. + /// If the index template includes a data_stream object, these are data stream aliases. + /// Otherwise, these are index aliases. + /// Data stream aliases ignore the index_routing, routing, and search_routing options. + /// + /// + public IndexTemplateSummaryDescriptor Aliases(Func, FluentDescriptorDictionary> selector) + { + AliasesValue = selector?.Invoke(new FluentDescriptorDictionary()); + return Self; + } + + public IndexTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? lifecycle) + { + LifecycleDescriptor = null; + LifecycleDescriptorAction = null; + LifecycleValue = lifecycle; + return Self; + } + + public IndexTemplateSummaryDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor descriptor) + { + LifecycleValue = null; + LifecycleDescriptorAction = null; + LifecycleDescriptor = descriptor; + return Self; + } + + public IndexTemplateSummaryDescriptor Lifecycle(Action configure) + { + LifecycleValue = null; + LifecycleDescriptor = null; + LifecycleDescriptorAction = configure; + return Self; + } + + /// + /// + /// Mapping for fields in the index. + /// If specified, this mapping can include field names, field data types, and mapping parameters. + /// + /// + public IndexTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappings) + { + MappingsDescriptor = null; + MappingsDescriptorAction = null; + MappingsValue = mappings; + return Self; + } + + public IndexTemplateSummaryDescriptor Mappings(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingsValue = null; + MappingsDescriptorAction = null; + MappingsDescriptor = descriptor; + return Self; + } + + public IndexTemplateSummaryDescriptor Mappings(Action configure) + { + MappingsValue = null; + MappingsDescriptor = null; + MappingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Configuration options for the index. + /// + /// + public IndexTemplateSummaryDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) + { + SettingsDescriptor = null; + SettingsDescriptorAction = null; + SettingsValue = settings; + return Self; + } + + public IndexTemplateSummaryDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsValue = null; + SettingsDescriptorAction = null; + SettingsDescriptor = descriptor; + return Self; + } + + public IndexTemplateSummaryDescriptor Settings(Action configure) + { + SettingsValue = null; + SettingsDescriptor = null; + SettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AliasesValue is not null) + { + writer.WritePropertyName("aliases"); + JsonSerializer.Serialize(writer, AliasesValue, options); + } + + if (LifecycleDescriptor is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleDescriptor, options); + } + else if (LifecycleDescriptorAction is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRolloverDescriptor(LifecycleDescriptorAction), options); + } + else if (LifecycleValue is not null) + { + writer.WritePropertyName("lifecycle"); + JsonSerializer.Serialize(writer, LifecycleValue, options); + } + + if (MappingsDescriptor is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsDescriptor, options); + } + else if (MappingsDescriptorAction is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingsDescriptorAction), options); + } + else if (MappingsValue is not null) + { + writer.WritePropertyName("mappings"); + JsonSerializer.Serialize(writer, MappingsValue, options); + } + + if (SettingsDescriptor is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsDescriptor, options); + } + else if (SettingsDescriptorAction is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); + } + else if (SettingsValue is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index a0fb8572f81..98ed5d32891 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -44,11 +44,13 @@ public sealed partial class MappingLimitSettings [JsonInclude, JsonPropertyName("field_name_length")] public Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsFieldNameLength? FieldNameLength { get; set; } [JsonInclude, JsonPropertyName("ignore_malformed")] - public bool? IgnoreMalformed { get; set; } + public object? IgnoreMalformed { get; set; } [JsonInclude, JsonPropertyName("nested_fields")] public Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsNestedFields? NestedFields { get; set; } [JsonInclude, JsonPropertyName("nested_objects")] public Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsNestedObjects? NestedObjects { get; set; } + [JsonInclude, JsonPropertyName("source")] + public Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsSourceFields? Source { get; set; } [JsonInclude, JsonPropertyName("total_fields")] public Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsTotalFields? TotalFields { get; set; } } @@ -77,13 +79,16 @@ public MappingLimitSettingsDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsFieldNameLength? FieldNameLengthValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsFieldNameLengthDescriptor FieldNameLengthDescriptor { get; set; } private Action FieldNameLengthDescriptorAction { get; set; } - private bool? IgnoreMalformedValue { get; set; } + private object? IgnoreMalformedValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsNestedFields? NestedFieldsValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsNestedFieldsDescriptor NestedFieldsDescriptor { get; set; } private Action NestedFieldsDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsNestedObjects? NestedObjectsValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsNestedObjectsDescriptor NestedObjectsDescriptor { get; set; } private Action NestedObjectsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsSourceFields? SourceValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsSourceFieldsDescriptor SourceDescriptor { get; set; } + private Action SourceDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsTotalFields? TotalFieldsValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsTotalFieldsDescriptor TotalFieldsDescriptor { get; set; } private Action TotalFieldsDescriptorAction { get; set; } @@ -166,7 +171,7 @@ public MappingLimitSettingsDescriptor FieldNameLength(Action configure) + { + SourceValue = null; + SourceDescriptor = null; + SourceDescriptorAction = configure; + return Self; + } + public MappingLimitSettingsDescriptor TotalFields(Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsTotalFields? totalFields) { TotalFieldsDescriptor = null; @@ -301,10 +330,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FieldNameLengthValue, options); } - if (IgnoreMalformedValue.HasValue) + if (IgnoreMalformedValue is not null) { writer.WritePropertyName("ignore_malformed"); - writer.WriteBooleanValue(IgnoreMalformedValue.Value); + JsonSerializer.Serialize(writer, IgnoreMalformedValue, options); } if (NestedFieldsDescriptor is not null) @@ -339,6 +368,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, NestedObjectsValue, options); } + if (SourceDescriptor is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceDescriptor, options); + } + else if (SourceDescriptorAction is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.MappingLimitSettingsSourceFieldsDescriptor(SourceDescriptorAction), options); + } + else if (SourceValue is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceValue, options); + } + if (TotalFieldsDescriptor is not null) { writer.WritePropertyName("total_fields"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs new file mode 100644 index 00000000000..cd91e0cc57e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettingsSourceFields.g.cs @@ -0,0 +1,59 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class MappingLimitSettingsSourceFields +{ + [JsonInclude, JsonPropertyName("mode")] + public Elastic.Clients.Elasticsearch.IndexManagement.SourceMode Mode { get; set; } +} + +public sealed partial class MappingLimitSettingsSourceFieldsDescriptor : SerializableDescriptor +{ + internal MappingLimitSettingsSourceFieldsDescriptor(Action configure) => configure.Invoke(this); + + public MappingLimitSettingsSourceFieldsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.IndexManagement.SourceMode ModeValue { get; set; } + + public MappingLimitSettingsSourceFieldsDescriptor Mode(Elastic.Clients.Elasticsearch.IndexManagement.SourceMode mode) + { + ModeValue = mode; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("mode"); + JsonSerializer.Serialize(writer, ModeValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs index 80a4821a300..6870149f308 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ResolveClusterInfo.g.cs @@ -45,7 +45,7 @@ public sealed partial class ResolveClusterInfo /// /// /// Provides error messages that are likely to occur if you do a search with this index expression - /// on the specified cluster (e.g., lack of security privileges to query an index). + /// on the specified cluster (for example, lack of security privileges to query an index). /// /// [JsonInclude, JsonPropertyName("error")] @@ -62,7 +62,7 @@ public sealed partial class ResolveClusterInfo /// /// - /// The skip_unavailable setting for a remote cluster. + /// The skip_unavailable setting for a remote cluster. /// /// [JsonInclude, JsonPropertyName("skip_unavailable")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs new file mode 100644 index 00000000000..4e6406fc6aa --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs @@ -0,0 +1,299 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// Chunking configuration object +/// +/// +public sealed partial class InferenceChunkingSettings +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// Specifies the maximum size of a chunk in words + /// This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy) + /// + /// + [JsonInclude, JsonPropertyName("max_chunk_size")] + public int? MaxChunkSize { get; set; } + + /// + /// + /// Specifies the number of overlapping words for chunks + /// Only for word chunking strategy + /// This value cannot be higher than the half of max_chunk_size + /// + /// + [JsonInclude, JsonPropertyName("overlap")] + public int? Overlap { get; set; } + + /// + /// + /// Specifies the number of overlapping sentences for chunks + /// Only for sentence chunking strategy + /// It can be either 1 or 0 + /// + /// + [JsonInclude, JsonPropertyName("sentence_overlap")] + public int? SentenceOverlap { get; set; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; set; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; set; } + + /// + /// + /// Specifies the chunking strategy + /// It could be either sentence or word + /// + /// + [JsonInclude, JsonPropertyName("strategy")] + public string? Strategy { get; set; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Chunking configuration object +/// +/// +public sealed partial class InferenceChunkingSettingsDescriptor : SerializableDescriptor +{ + internal InferenceChunkingSettingsDescriptor(Action configure) => configure.Invoke(this); + + public InferenceChunkingSettingsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private int? MaxChunkSizeValue { get; set; } + private int? OverlapValue { get; set; } + private int? SentenceOverlapValue { get; set; } + private string ServiceValue { get; set; } + private object ServiceSettingsValue { get; set; } + private string? StrategyValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// Chunking configuration object + /// + /// + public InferenceChunkingSettingsDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public InferenceChunkingSettingsDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public InferenceChunkingSettingsDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Specifies the maximum size of a chunk in words + /// This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy) + /// + /// + public InferenceChunkingSettingsDescriptor MaxChunkSize(int? maxChunkSize) + { + MaxChunkSizeValue = maxChunkSize; + return Self; + } + + /// + /// + /// Specifies the number of overlapping words for chunks + /// Only for word chunking strategy + /// This value cannot be higher than the half of max_chunk_size + /// + /// + public InferenceChunkingSettingsDescriptor Overlap(int? overlap) + { + OverlapValue = overlap; + return Self; + } + + /// + /// + /// Specifies the number of overlapping sentences for chunks + /// Only for sentence chunking strategy + /// It can be either 1 or 0 + /// + /// + public InferenceChunkingSettingsDescriptor SentenceOverlap(int? sentenceOverlap) + { + SentenceOverlapValue = sentenceOverlap; + return Self; + } + + /// + /// + /// The service type + /// + /// + public InferenceChunkingSettingsDescriptor Service(string service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings specific to the service + /// + /// + public InferenceChunkingSettingsDescriptor ServiceSettings(object serviceSettings) + { + ServiceSettingsValue = serviceSettings; + return Self; + } + + /// + /// + /// Specifies the chunking strategy + /// It could be either sentence or word + /// + /// + public InferenceChunkingSettingsDescriptor Strategy(string? strategy) + { + StrategyValue = strategy; + return Self; + } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + public InferenceChunkingSettingsDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + if (MaxChunkSizeValue.HasValue) + { + writer.WritePropertyName("max_chunk_size"); + writer.WriteNumberValue(MaxChunkSizeValue.Value); + } + + if (OverlapValue.HasValue) + { + writer.WritePropertyName("overlap"); + writer.WriteNumberValue(OverlapValue.Value); + } + + if (SentenceOverlapValue.HasValue) + { + writer.WritePropertyName("sentence_overlap"); + writer.WriteNumberValue(SentenceOverlapValue.Value); + } + + writer.WritePropertyName("service"); + writer.WriteStringValue(ServiceValue); + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + if (!string.IsNullOrEmpty(StrategyValue)) + { + writer.WritePropertyName("strategy"); + writer.WriteStringValue(StrategyValue); + } + + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs index cd1fd616d31..396fd5dfbf4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpoint.g.cs @@ -34,6 +34,14 @@ namespace Elastic.Clients.Elasticsearch.Inference; /// public sealed partial class InferenceEndpoint { + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + /// /// /// The service type @@ -72,10 +80,42 @@ public InferenceEndpointDescriptor() : base() { } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } private string ServiceValue { get; set; } private object ServiceSettingsValue { get; set; } private object? TaskSettingsValue { get; set; } + /// + /// + /// Chunking configuration object + /// + /// + public InferenceEndpointDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public InferenceEndpointDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public InferenceEndpointDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + /// /// /// The service type @@ -112,6 +152,22 @@ public InferenceEndpointDescriptor TaskSettings(object? taskSettings) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + writer.WritePropertyName("service"); writer.WriteStringValue(ServiceValue); writer.WritePropertyName("service_settings"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs index d0324de75cc..c47cc9d986c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceEndpointInfo.g.cs @@ -34,6 +34,14 @@ namespace Elastic.Clients.Elasticsearch.Inference; /// public sealed partial class InferenceEndpointInfo { + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + /// /// /// The inference Id diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs index 8d048ce6754..2b1315027ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/DocumentSimulation.g.cs @@ -35,7 +35,7 @@ public override DocumentSimulation Read(ref Utf8JsonReader reader, Type typeToCo throw new JsonException("Unexpected JSON detected."); string id = default; string index = default; - Elastic.Clients.Elasticsearch.Ingest.IngestInfo ingest = default; + Elastic.Clients.Elasticsearch.Ingest.Ingest ingest = default; string? routing = default; IReadOnlyDictionary source = default; long? version = default; @@ -60,7 +60,7 @@ public override DocumentSimulation Read(ref Utf8JsonReader reader, Type typeToCo if (property == "_ingest") { - ingest = JsonSerializer.Deserialize(ref reader, options); + ingest = JsonSerializer.Deserialize(ref reader, options); continue; } @@ -124,7 +124,7 @@ public sealed partial class DocumentSimulation /// /// public string Index { get; init; } - public Elastic.Clients.Elasticsearch.Ingest.IngestInfo Ingest { get; init; } + public Elastic.Clients.Elasticsearch.Ingest.Ingest Ingest { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs similarity index 97% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs index 45e9a06e279..972a815ffdd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/IngestInfo.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/Ingest.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.Ingest; -public sealed partial class IngestInfo +public sealed partial class Ingest { [JsonInclude, JsonPropertyName("pipeline")] public string? Pipeline { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs index 9d46f90aac6..5b7654f74c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnomalyCause.g.cs @@ -30,31 +30,33 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class AnomalyCause { [JsonInclude, JsonPropertyName("actual")] - public IReadOnlyCollection Actual { get; init; } + public IReadOnlyCollection? Actual { get; init; } [JsonInclude, JsonPropertyName("by_field_name")] - public string ByFieldName { get; init; } + public string? ByFieldName { get; init; } [JsonInclude, JsonPropertyName("by_field_value")] - public string ByFieldValue { get; init; } + public string? ByFieldValue { get; init; } [JsonInclude, JsonPropertyName("correlated_by_field_value")] - public string CorrelatedByFieldValue { get; init; } + public string? CorrelatedByFieldValue { get; init; } [JsonInclude, JsonPropertyName("field_name")] - public string FieldName { get; init; } + public string? FieldName { get; init; } [JsonInclude, JsonPropertyName("function")] - public string Function { get; init; } + public string? Function { get; init; } [JsonInclude, JsonPropertyName("function_description")] - public string FunctionDescription { get; init; } + public string? FunctionDescription { get; init; } + [JsonInclude, JsonPropertyName("geo_results")] + public Elastic.Clients.Elasticsearch.MachineLearning.GeoResults? GeoResults { get; init; } [JsonInclude, JsonPropertyName("influencers")] - public IReadOnlyCollection Influencers { get; init; } + public IReadOnlyCollection? Influencers { get; init; } [JsonInclude, JsonPropertyName("over_field_name")] - public string OverFieldName { get; init; } + public string? OverFieldName { get; init; } [JsonInclude, JsonPropertyName("over_field_value")] - public string OverFieldValue { get; init; } + public string? OverFieldValue { get; init; } [JsonInclude, JsonPropertyName("partition_field_name")] - public string PartitionFieldName { get; init; } + public string? PartitionFieldName { get; init; } [JsonInclude, JsonPropertyName("partition_field_value")] - public string PartitionFieldValue { get; init; } + public string? PartitionFieldValue { get; init; } [JsonInclude, JsonPropertyName("probability")] public double Probability { get; init; } [JsonInclude, JsonPropertyName("typical")] - public IReadOnlyCollection Typical { get; init; } + public IReadOnlyCollection? Typical { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs index 7bd01bd3b81..a0e178429e7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/CalendarEvent.g.cs @@ -55,30 +55,6 @@ public sealed partial class CalendarEvent [JsonInclude, JsonPropertyName("event_id")] public Elastic.Clients.Elasticsearch.Id? EventId { get; set; } - /// - /// - /// Shift time by this many seconds. For example adjust time for daylight savings changes - /// - /// - [JsonInclude, JsonPropertyName("force_time_shift")] - public int? ForceTimeShift { get; set; } - - /// - /// - /// When true the model will not be updated for this calendar period. - /// - /// - [JsonInclude, JsonPropertyName("skip_model_update")] - public bool? SkipModelUpdate { get; set; } - - /// - /// - /// When true the model will not create results for this calendar period. - /// - /// - [JsonInclude, JsonPropertyName("skip_result")] - public bool? SkipResult { get; set; } - /// /// /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. @@ -100,9 +76,6 @@ public CalendarEventDescriptor() : base() private string DescriptionValue { get; set; } private DateTimeOffset EndTimeValue { get; set; } private Elastic.Clients.Elasticsearch.Id? EventIdValue { get; set; } - private int? ForceTimeShiftValue { get; set; } - private bool? SkipModelUpdateValue { get; set; } - private bool? SkipResultValue { get; set; } private DateTimeOffset StartTimeValue { get; set; } /// @@ -144,39 +117,6 @@ public CalendarEventDescriptor EventId(Elastic.Clients.Elasticsearch.Id? eventId return Self; } - /// - /// - /// Shift time by this many seconds. For example adjust time for daylight savings changes - /// - /// - public CalendarEventDescriptor ForceTimeShift(int? forceTimeShift) - { - ForceTimeShiftValue = forceTimeShift; - return Self; - } - - /// - /// - /// When true the model will not be updated for this calendar period. - /// - /// - public CalendarEventDescriptor SkipModelUpdate(bool? skipModelUpdate = true) - { - SkipModelUpdateValue = skipModelUpdate; - return Self; - } - - /// - /// - /// When true the model will not create results for this calendar period. - /// - /// - public CalendarEventDescriptor SkipResult(bool? skipResult = true) - { - SkipResultValue = skipResult; - return Self; - } - /// /// /// The timestamp for the beginning of the scheduled event in milliseconds since the epoch or ISO 8601 format. @@ -207,24 +147,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, EventIdValue, options); } - if (ForceTimeShiftValue.HasValue) - { - writer.WritePropertyName("force_time_shift"); - writer.WriteNumberValue(ForceTimeShiftValue.Value); - } - - if (SkipModelUpdateValue.HasValue) - { - writer.WritePropertyName("skip_model_update"); - writer.WriteBooleanValue(SkipModelUpdateValue.Value); - } - - if (SkipResultValue.HasValue) - { - writer.WritePropertyName("skip_result"); - writer.WriteBooleanValue(SkipResultValue.Value); - } - writer.WritePropertyName("start_time"); JsonSerializer.Serialize(writer, StartTimeValue, options); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs index f3edb0a1949..4839e17a6e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/GeoResults.g.cs @@ -35,7 +35,7 @@ public sealed partial class GeoResults /// /// [JsonInclude, JsonPropertyName("actual_point")] - public string ActualPoint { get; init; } + public string? ActualPoint { get; init; } /// /// @@ -43,5 +43,5 @@ public sealed partial class GeoResults /// /// [JsonInclude, JsonPropertyName("typical_point")] - public string TypicalPoint { get; init; } + public string? TypicalPoint { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs index b9d6ba63c8b..b1417a7bf30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs @@ -49,6 +49,8 @@ public sealed partial class AggregateMetricDoubleProperty : IProperty public ICollection Metrics { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("time_series_metric")] public Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetric { get; set; } @@ -71,6 +73,7 @@ public AggregateMetricDoublePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private ICollection MetricsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } public AggregateMetricDoublePropertyDescriptor DefaultMetric(string defaultMetric) @@ -148,6 +151,12 @@ public AggregateMetricDoublePropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public AggregateMetricDoublePropertyDescriptor TimeSeriesMetric(Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? timeSeriesMetric) { TimeSeriesMetricValue = timeSeriesMetric; @@ -191,6 +200,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesMetricValue is not null) { writer.WritePropertyName("time_series_metric"); @@ -211,6 +226,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Metrics = MetricsValue, Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesMetric = TimeSeriesMetricValue }; } @@ -230,6 +246,7 @@ public AggregateMetricDoublePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private ICollection MetricsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } public AggregateMetricDoublePropertyDescriptor DefaultMetric(string defaultMetric) @@ -307,6 +324,12 @@ public AggregateMetricDoublePropertyDescriptor Properties(Action "binary"; @@ -73,6 +75,7 @@ public BinaryPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -155,6 +158,12 @@ public BinaryPropertyDescriptor Store(bool? store = true) return Self; } + public BinaryPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -206,6 +215,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("binary"); writer.WriteEndObject(); @@ -220,7 +235,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -240,6 +256,7 @@ public BinaryPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public BinaryPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -322,6 +339,12 @@ public BinaryPropertyDescriptor Store(bool? store = true) return Self; } + public BinaryPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -373,6 +396,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("binary"); writer.WriteEndObject(); @@ -387,6 +416,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs index f0f377e59a1..3823bc9de08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs @@ -60,6 +60,8 @@ public sealed partial class BooleanProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "boolean"; @@ -87,6 +89,7 @@ public BooleanPropertyDescriptor() : base() private bool? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) { @@ -211,6 +214,12 @@ public BooleanPropertyDescriptor Store(bool? store = true) return Self; } + public BooleanPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -296,6 +305,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("boolean"); writer.WriteEndObject(); @@ -338,7 +353,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -364,6 +380,7 @@ public BooleanPropertyDescriptor() : base() private bool? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) { @@ -488,6 +505,12 @@ public BooleanPropertyDescriptor Store(bool? store = true) return Self; } + public BooleanPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -573,6 +596,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("boolean"); writer.WriteEndObject(); @@ -615,6 +644,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs index 71d104cab4c..3d0ed7df7e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ByteNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class ByteNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public ByteNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public ByteNumberPropertyDescriptor Store(bool? store = true) return Self; } + public ByteNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public ByteNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public ByteNumberPropertyDescriptor Store(bool? store = true) return Self; } + public ByteNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs index c0074fde8a4..e5852e1fc41 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs @@ -64,6 +64,8 @@ public sealed partial class CompletionProperty : IProperty public string? SearchAnalyzer { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "completion"; @@ -94,6 +96,7 @@ public CompletionPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private string? SearchAnalyzerValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public CompletionPropertyDescriptor Analyzer(string? analyzer) { @@ -242,6 +245,12 @@ public CompletionPropertyDescriptor Store(bool? store = true) return Self; } + public CompletionPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -354,6 +363,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("completion"); writer.WriteEndObject(); @@ -398,7 +413,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -427,6 +443,7 @@ public CompletionPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private string? SearchAnalyzerValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public CompletionPropertyDescriptor Analyzer(string? analyzer) { @@ -575,6 +592,12 @@ public CompletionPropertyDescriptor Store(bool? store = true) return Self; } + public CompletionPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -687,6 +710,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("completion"); writer.WriteEndObject(); @@ -731,6 +760,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PreserveSeparators = PreserveSeparatorsValue, Properties = PropertiesValue, SearchAnalyzer = SearchAnalyzerValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs index aa3097fd7bf..d8a59989901 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ConstantKeywordProperty.g.cs @@ -45,6 +45,8 @@ public sealed partial class ConstantKeywordProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "constant_keyword"; @@ -66,6 +68,7 @@ public ConstantKeywordPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private object? ValueValue { get; set; } public ConstantKeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) @@ -131,6 +134,12 @@ public ConstantKeywordPropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public ConstantKeywordPropertyDescriptor Value(object? value) { ValueValue = value; @@ -170,6 +179,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("constant_keyword"); if (ValueValue is not null) @@ -188,6 +203,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, Value = ValueValue }; } @@ -205,6 +221,7 @@ public ConstantKeywordPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private object? ValueValue { get; set; } public ConstantKeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) @@ -270,6 +287,12 @@ public ConstantKeywordPropertyDescriptor Properties(Action "date_nanos"; @@ -91,6 +93,7 @@ public DateNanosPropertyDescriptor() : base() private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DateNanosPropertyDescriptor Boost(double? boost) { @@ -209,6 +212,12 @@ public DateNanosPropertyDescriptor Store(bool? store = true) return Self; } + public DateNanosPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -296,6 +305,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("date_nanos"); writer.WriteEndObject(); @@ -316,7 +331,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -342,6 +358,7 @@ public DateNanosPropertyDescriptor() : base() private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DateNanosPropertyDescriptor Boost(double? boost) { @@ -460,6 +477,12 @@ public DateNanosPropertyDescriptor Store(bool? store = true) return Self; } + public DateNanosPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -547,6 +570,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("date_nanos"); writer.WriteEndObject(); @@ -567,6 +596,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs index 39b0ac3fdaa..aa0ba132652 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs @@ -68,6 +68,8 @@ public sealed partial class DateProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "date"; @@ -99,6 +101,7 @@ public DatePropertyDescriptor() : base() private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DatePropertyDescriptor Boost(double? boost) { @@ -247,6 +250,12 @@ public DatePropertyDescriptor Store(bool? store = true) return Self; } + public DatePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -356,6 +365,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("date"); writer.WriteEndObject(); @@ -402,7 +417,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -432,6 +448,7 @@ public DatePropertyDescriptor() : base() private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DatePropertyDescriptor Boost(double? boost) { @@ -580,6 +597,12 @@ public DatePropertyDescriptor Store(bool? store = true) return Self; } + public DatePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -689,6 +712,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("date"); writer.WriteEndObject(); @@ -735,6 +764,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs index bb5b8d54471..b0d04f9d26a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateRangeProperty.g.cs @@ -60,6 +60,8 @@ public sealed partial class DateRangeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "date_range"; @@ -85,6 +87,7 @@ public DateRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DateRangePropertyDescriptor Boost(double? boost) { @@ -191,6 +194,12 @@ public DateRangePropertyDescriptor Store(bool? store = true) return Self; } + public DateRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -266,6 +275,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("date_range"); writer.WriteEndObject(); @@ -284,7 +299,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -308,6 +324,7 @@ public DateRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DateRangePropertyDescriptor Boost(double? boost) { @@ -414,6 +431,12 @@ public DateRangePropertyDescriptor Store(bool? store = true) return Self; } + public DateRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -489,6 +512,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("date_range"); writer.WriteEndObject(); @@ -507,6 +536,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs index b511d9b0955..72b319a4a6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs @@ -29,56 +29,14 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class DenseVectorIndexOptions { - /// - /// - /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and - /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for - /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating - /// the quantization thresholds. - /// - /// - /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization - /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). - /// - /// - /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. - /// - /// - /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. - /// - /// [JsonInclude, JsonPropertyName("confidence_interval")] public float? ConfidenceInterval { get; set; } - - /// - /// - /// The number of candidates to track while assembling the list of nearest neighbors for each new node. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// [JsonInclude, JsonPropertyName("ef_construction")] public int? EfConstruction { get; set; } - - /// - /// - /// The number of neighbors each node will be connected to in the HNSW graph. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// [JsonInclude, JsonPropertyName("m")] public int? m { get; set; } - - /// - /// - /// The type of kNN algorithm to use. - /// - /// [JsonInclude, JsonPropertyName("type")] - public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType Type { get; set; } + public string Type { get; set; } } public sealed partial class DenseVectorIndexOptionsDescriptor : SerializableDescriptor @@ -92,66 +50,27 @@ public DenseVectorIndexOptionsDescriptor() : base() private float? ConfidenceIntervalValue { get; set; } private int? EfConstructionValue { get; set; } private int? mValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType TypeValue { get; set; } + private string TypeValue { get; set; } - /// - /// - /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and - /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for - /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating - /// the quantization thresholds. - /// - /// - /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization - /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). - /// - /// - /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. - /// - /// - /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. - /// - /// public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInterval) { ConfidenceIntervalValue = confidenceInterval; return Self; } - /// - /// - /// The number of candidates to track while assembling the list of nearest neighbors for each new node. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) { EfConstructionValue = efConstruction; return Self; } - /// - /// - /// The number of neighbors each node will be connected to in the HNSW graph. - /// - /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. - /// - /// public DenseVectorIndexOptionsDescriptor m(int? m) { mValue = m; return Self; } - /// - /// - /// The type of kNN algorithm to use. - /// - /// - public DenseVectorIndexOptionsDescriptor Type(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType type) + public DenseVectorIndexOptionsDescriptor Type(string type) { TypeValue = type; return Self; @@ -179,7 +98,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("type"); - JsonSerializer.Serialize(writer, TypeValue, options); + writer.WriteStringValue(TypeValue); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs index 945bd8cf841..63eecc6fa75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs @@ -29,47 +29,18 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class DenseVectorProperty : IProperty { - /// - /// - /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of - /// the first vector added to the field. - /// - /// [JsonInclude, JsonPropertyName("dims")] public int? Dims { get; set; } [JsonInclude, JsonPropertyName("dynamic")] public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } - - /// - /// - /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. - /// - /// [JsonInclude, JsonPropertyName("element_type")] - public Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementType { get; set; } + public string? ElementType { get; set; } [JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } [JsonInclude, JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } - - /// - /// - /// If true, you can search this field using the kNN search API. - /// - /// [JsonInclude, JsonPropertyName("index")] public bool? Index { get; set; } - - /// - /// - /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters - /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the - /// expense of slower indexing speed. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// [JsonInclude, JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? IndexOptions { get; set; } @@ -82,28 +53,10 @@ public sealed partial class DenseVectorProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - - /// - /// - /// The vector similarity metric to use in kNN search. - /// - /// - /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will - /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds - /// to a higher ranking. - /// - /// - /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. - /// - /// - /// bit vectors only support l2_norm as their similarity metric. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// [JsonInclude, JsonPropertyName("similarity")] - public Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? Similarity { get; set; } + public string? Similarity { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "dense_vector"; @@ -119,7 +72,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } + private string? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -128,14 +81,9 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } + private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } - /// - /// - /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of - /// the first vector added to the field. - /// - /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -148,12 +96,7 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elastics return Self; } - /// - /// - /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. - /// - /// - public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? elementType) + public DenseVectorPropertyDescriptor ElementType(string? elementType) { ElementTypeValue = elementType; return Self; @@ -185,27 +128,12 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - /// - /// - /// If true, you can search this field using the kNN search API. - /// - /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } - /// - /// - /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters - /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the - /// expense of slower indexing speed. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -261,31 +189,18 @@ public DenseVectorPropertyDescriptor Properties(Action - /// - /// The vector similarity metric to use in kNN search. - /// - /// - /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will - /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds - /// to a higher ranking. - /// - /// - /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. - /// - /// - /// bit vectors only support l2_norm as their similarity metric. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? similarity) + public DenseVectorPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; return Self; } + public DenseVectorPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -301,10 +216,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (ElementTypeValue is not null) + if (!string.IsNullOrEmpty(ElementTypeValue)) { writer.WritePropertyName("element_type"); - JsonSerializer.Serialize(writer, ElementTypeValue, options); + writer.WriteStringValue(ElementTypeValue); } if (FieldsValue is not null) @@ -353,10 +268,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (SimilarityValue is not null) + if (!string.IsNullOrEmpty(SimilarityValue)) { writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, SimilarityValue, options); + writer.WriteStringValue(SimilarityValue); + } + + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); } writer.WritePropertyName("type"); @@ -399,7 +320,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IndexOptions = BuildIndexOptions(), Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue + Similarity = SimilarityValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -413,7 +335,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } + private string? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -422,14 +344,9 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } + private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } - /// - /// - /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of - /// the first vector added to the field. - /// - /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -442,12 +359,7 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mappi return Self; } - /// - /// - /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. - /// - /// - public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? elementType) + public DenseVectorPropertyDescriptor ElementType(string? elementType) { ElementTypeValue = elementType; return Self; @@ -479,27 +391,12 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } - /// - /// - /// If true, you can search this field using the kNN search API. - /// - /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } - /// - /// - /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters - /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the - /// expense of slower indexing speed. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -555,31 +452,18 @@ public DenseVectorPropertyDescriptor Properties(Action - /// - /// The vector similarity metric to use in kNN search. - /// - /// - /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will - /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds - /// to a higher ranking. - /// - /// - /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. - /// - /// - /// bit vectors only support l2_norm as their similarity metric. - /// - /// - /// This parameter can only be specified when index is true. - /// - /// - public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? similarity) + public DenseVectorPropertyDescriptor Similarity(string? similarity) { SimilarityValue = similarity; return Self; } + public DenseVectorPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -595,10 +479,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (ElementTypeValue is not null) + if (!string.IsNullOrEmpty(ElementTypeValue)) { writer.WritePropertyName("element_type"); - JsonSerializer.Serialize(writer, ElementTypeValue, options); + writer.WriteStringValue(ElementTypeValue); } if (FieldsValue is not null) @@ -647,10 +531,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (SimilarityValue is not null) + if (!string.IsNullOrEmpty(SimilarityValue)) { writer.WritePropertyName("similarity"); - JsonSerializer.Serialize(writer, SimilarityValue, options); + writer.WriteStringValue(SimilarityValue); + } + + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); } writer.WritePropertyName("type"); @@ -693,6 +583,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IndexOptions = BuildIndexOptions(), Meta = MetaValue, Properties = PropertiesValue, - Similarity = SimilarityValue + Similarity = SimilarityValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs index 923e630d9fa..850d6e8d65d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class DoubleNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public DoubleNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public DoubleNumberPropertyDescriptor Store(bool? store = true) return Self; } + public DoubleNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public DoubleNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public DoubleNumberPropertyDescriptor Store(bool? store = true) return Self; } + public DoubleNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs index 4c0c6868967..c4c7f2c9284 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DoubleRangeProperty.g.cs @@ -58,6 +58,8 @@ public sealed partial class DoubleRangeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "double_range"; @@ -82,6 +84,7 @@ public DoubleRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DoubleRangePropertyDescriptor Boost(double? boost) { @@ -182,6 +185,12 @@ public DoubleRangePropertyDescriptor Store(bool? store = true) return Self; } + public DoubleRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,6 +260,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("double_range"); writer.WriteEndObject(); @@ -268,7 +283,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -291,6 +307,7 @@ public DoubleRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public DoubleRangePropertyDescriptor Boost(double? boost) { @@ -391,6 +408,12 @@ public DoubleRangePropertyDescriptor Store(bool? store = true) return Self; } + public DoubleRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -460,6 +483,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("double_range"); writer.WriteEndObject(); @@ -477,6 +506,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs index e44d585e58d..4738c3bce8a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicProperty.g.cs @@ -92,6 +92,8 @@ public sealed partial class DynamicProperty : IProperty public string? SearchQuoteAnalyzer { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("term_vector")] public Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVector { get; set; } [JsonInclude, JsonPropertyName("time_series_metric")] @@ -141,6 +143,7 @@ public DynamicPropertyDescriptor() : base() private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -381,6 +384,12 @@ public DynamicPropertyDescriptor Store(bool? store = true) return Self; } + public DynamicPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public DynamicPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? termVector) { TermVectorValue = termVector; @@ -584,6 +593,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TermVectorValue is not null) { writer.WritePropertyName("term_vector"); @@ -679,6 +694,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -724,6 +740,7 @@ public DynamicPropertyDescriptor() : base() private string? SearchAnalyzerValue { get; set; } private string? SearchQuoteAnalyzerValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -964,6 +981,12 @@ public DynamicPropertyDescriptor Store(bool? store = true) return Self; } + public DynamicPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public DynamicPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? termVector) { TermVectorValue = termVector; @@ -1167,6 +1190,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TermVectorValue is not null) { writer.WritePropertyName("term_vector"); @@ -1262,6 +1291,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SearchAnalyzer = SearchAnalyzerValue, SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TermVector = TermVectorValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs index 3aaabb1fbea..b724d80015d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldAliasProperty.g.cs @@ -47,6 +47,8 @@ public sealed partial class FieldAliasProperty : IProperty public Elastic.Clients.Elasticsearch.Field? Path { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "alias"; @@ -66,6 +68,7 @@ public FieldAliasPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Field? PathValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public FieldAliasPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -148,6 +151,12 @@ public FieldAliasPropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -187,6 +196,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("alias"); writer.WriteEndObject(); @@ -199,7 +214,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Path = PathValue, - Properties = PropertiesValue + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -217,6 +233,7 @@ public FieldAliasPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Field? PathValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public FieldAliasPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -299,6 +316,12 @@ public FieldAliasPropertyDescriptor Properties(Action "flattened"; @@ -90,6 +92,7 @@ public FlattenedPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private string? SimilarityValue { get; set; } private bool? SplitQueriesOnWhitespaceValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public FlattenedPropertyDescriptor Boost(double? boost) { @@ -208,6 +211,12 @@ public FlattenedPropertyDescriptor SplitQueriesOnWhitespace(bool? spl return Self; } + public FlattenedPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -295,6 +304,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(SplitQueriesOnWhitespaceValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("flattened"); writer.WriteEndObject(); @@ -315,7 +330,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, - SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue + SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -341,6 +357,7 @@ public FlattenedPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private string? SimilarityValue { get; set; } private bool? SplitQueriesOnWhitespaceValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public FlattenedPropertyDescriptor Boost(double? boost) { @@ -459,6 +476,12 @@ public FlattenedPropertyDescriptor SplitQueriesOnWhitespace(bool? splitQueriesOn return Self; } + public FlattenedPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -546,6 +569,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(SplitQueriesOnWhitespaceValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("flattened"); writer.WriteEndObject(); @@ -566,6 +595,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o NullValue = NullValueValue, Properties = PropertiesValue, Similarity = SimilarityValue, - SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue + SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs index 78b51afb62b..71055b76a19 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class FloatNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public FloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public FloatNumberPropertyDescriptor Store(bool? store = true) return Self; } + public FloatNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public FloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public FloatNumberPropertyDescriptor Store(bool? store = true) return Self; } + public FloatNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs index baba3f12be0..d27758883b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FloatRangeProperty.g.cs @@ -58,6 +58,8 @@ public sealed partial class FloatRangeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "float_range"; @@ -82,6 +84,7 @@ public FloatRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public FloatRangePropertyDescriptor Boost(double? boost) { @@ -182,6 +185,12 @@ public FloatRangePropertyDescriptor Store(bool? store = true) return Self; } + public FloatRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,6 +260,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("float_range"); writer.WriteEndObject(); @@ -268,7 +283,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -291,6 +307,7 @@ public FloatRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public FloatRangePropertyDescriptor Boost(double? boost) { @@ -391,6 +408,12 @@ public FloatRangePropertyDescriptor Store(bool? store = true) return Self; } + public FloatRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -460,6 +483,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("float_range"); writer.WriteEndObject(); @@ -477,6 +506,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs index 8151792a3a9..e78b7c5d4c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoPointProperty.g.cs @@ -64,6 +64,8 @@ public sealed partial class GeoPointProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "geo_point"; @@ -93,6 +95,7 @@ public GeoPointPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -229,6 +232,12 @@ public GeoPointPropertyDescriptor Store(bool? store = true) return Self; } + public GeoPointPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -326,6 +335,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("geo_point"); writer.WriteEndObject(); @@ -370,7 +385,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -398,6 +414,7 @@ public GeoPointPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public GeoPointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -534,6 +551,12 @@ public GeoPointPropertyDescriptor Store(bool? store = true) return Self; } + public GeoPointPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -631,6 +654,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("geo_point"); writer.WriteEndObject(); @@ -675,6 +704,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, Script = BuildScript(), - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 0563e2b83b6..2c10ba3ebc0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -69,6 +69,8 @@ public sealed partial class GeoShapeProperty : IProperty public bool? Store { get; set; } [JsonInclude, JsonPropertyName("strategy")] public Elastic.Clients.Elasticsearch.Mapping.GeoStrategy? Strategy { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "geo_shape"; @@ -102,6 +104,7 @@ public GeoShapePropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoStrategy? StrategyValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public GeoShapePropertyDescriptor Coerce(bool? coerce = true) { @@ -214,6 +217,12 @@ public GeoShapePropertyDescriptor Strategy(Elastic.Clients.Elasticsea return Self; } + public GeoShapePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -295,6 +304,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, StrategyValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("geo_shape"); writer.WriteEndObject(); @@ -314,7 +329,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Orientation = OrientationValue, Properties = PropertiesValue, Store = StoreValue, - Strategy = StrategyValue + Strategy = StrategyValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -346,6 +362,7 @@ public GeoShapePropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoStrategy? StrategyValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public GeoShapePropertyDescriptor Coerce(bool? coerce = true) { @@ -458,6 +475,12 @@ public GeoShapePropertyDescriptor Strategy(Elastic.Clients.Elasticsearch.Mapping return Self; } + public GeoShapePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -539,6 +562,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, StrategyValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("geo_shape"); writer.WriteEndObject(); @@ -558,6 +587,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Orientation = OrientationValue, Properties = PropertiesValue, Store = StoreValue, - Strategy = StrategyValue + Strategy = StrategyValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs index 5dadc17bb15..fa6266c6b1e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HalfFloatNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class HalfFloatNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public HalfFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public HalfFloatNumberPropertyDescriptor Store(bool? store = true) return Self; } + public HalfFloatNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public HalfFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public HalfFloatNumberPropertyDescriptor Store(bool? store = true) return Self; } + public HalfFloatNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs index dcdc5b0b0e8..4cc969ef2b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/HistogramProperty.g.cs @@ -47,6 +47,8 @@ public sealed partial class HistogramProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "histogram"; @@ -66,6 +68,7 @@ public HistogramPropertyDescriptor() : base() private bool? IgnoreMalformedValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public HistogramPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -136,6 +139,12 @@ public HistogramPropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -175,6 +184,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("histogram"); writer.WriteEndObject(); @@ -187,7 +202,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, Meta = MetaValue, - Properties = PropertiesValue + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -205,6 +221,7 @@ public HistogramPropertyDescriptor() : base() private bool? IgnoreMalformedValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public HistogramPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -275,6 +292,12 @@ public HistogramPropertyDescriptor Properties(Action "icu_collation_keyword"; @@ -132,6 +134,7 @@ public IcuCollationPropertyDescriptor() : base() private string? RulesValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Analysis.IcuCollationStrength? StrengthValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private string? VariableTopValue { get; set; } private string? VariantValue { get; set; } @@ -310,6 +313,12 @@ public IcuCollationPropertyDescriptor Strength(Elastic.Clients.Elasti return Self; } + public IcuCollationPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public IcuCollationPropertyDescriptor VariableTop(string? variableTop) { VariableTopValue = variableTop; @@ -457,6 +466,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, StrengthValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("icu_collation_keyword"); if (!string.IsNullOrEmpty(VariableTopValue)) @@ -498,6 +513,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Rules = RulesValue, Store = StoreValue, Strength = StrengthValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, VariableTop = VariableTopValue, Variant = VariantValue }; @@ -533,6 +549,7 @@ public IcuCollationPropertyDescriptor() : base() private string? RulesValue { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Analysis.IcuCollationStrength? StrengthValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private string? VariableTopValue { get; set; } private string? VariantValue { get; set; } @@ -711,6 +728,12 @@ public IcuCollationPropertyDescriptor Strength(Elastic.Clients.Elasticsearch.Ana return Self; } + public IcuCollationPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public IcuCollationPropertyDescriptor VariableTop(string? variableTop) { VariableTopValue = variableTop; @@ -858,6 +881,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, StrengthValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("icu_collation_keyword"); if (!string.IsNullOrEmpty(VariableTopValue)) @@ -899,6 +928,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Rules = RulesValue, Store = StoreValue, Strength = StrengthValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, VariableTop = VariableTopValue, Variant = VariantValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs index 8d2512bed63..14674ebd906 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class IntegerNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public IntegerNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public IntegerNumberPropertyDescriptor Store(bool? store = true) return Self; } + public IntegerNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public IntegerNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public IntegerNumberPropertyDescriptor Store(bool? store = true) return Self; } + public IntegerNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs index 47b66fc7aaf..de6b052568b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IntegerRangeProperty.g.cs @@ -58,6 +58,8 @@ public sealed partial class IntegerRangeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "integer_range"; @@ -82,6 +84,7 @@ public IntegerRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public IntegerRangePropertyDescriptor Boost(double? boost) { @@ -182,6 +185,12 @@ public IntegerRangePropertyDescriptor Store(bool? store = true) return Self; } + public IntegerRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,6 +260,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("integer_range"); writer.WriteEndObject(); @@ -268,7 +283,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -291,6 +307,7 @@ public IntegerRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public IntegerRangePropertyDescriptor Boost(double? boost) { @@ -391,6 +408,12 @@ public IntegerRangePropertyDescriptor Store(bool? store = true) return Self; } + public IntegerRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -460,6 +483,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("integer_range"); writer.WriteEndObject(); @@ -477,6 +506,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs index 8a4ebec39cb..a7e773c1450 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpProperty.g.cs @@ -64,6 +64,8 @@ public sealed partial class IpProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -101,6 +103,7 @@ public IpPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } public IpPropertyDescriptor Boost(double? boost) @@ -238,6 +241,12 @@ public IpPropertyDescriptor Store(bool? store = true) return Self; } + public IpPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -346,6 +355,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -397,6 +412,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } @@ -425,6 +441,7 @@ public IpPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } public IpPropertyDescriptor Boost(double? boost) @@ -562,6 +579,12 @@ public IpPropertyDescriptor Store(bool? store = true) return Self; } + public IpPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -670,6 +693,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -721,6 +750,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs index d714a86ad87..ae250c3913b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/IpRangeProperty.g.cs @@ -58,6 +58,8 @@ public sealed partial class IpRangeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "ip_range"; @@ -82,6 +84,7 @@ public IpRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public IpRangePropertyDescriptor Boost(double? boost) { @@ -182,6 +185,12 @@ public IpRangePropertyDescriptor Store(bool? store = true) return Self; } + public IpRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,6 +260,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("ip_range"); writer.WriteEndObject(); @@ -268,7 +283,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -291,6 +307,7 @@ public IpRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public IpRangePropertyDescriptor Boost(double? boost) { @@ -391,6 +408,12 @@ public IpRangePropertyDescriptor Store(bool? store = true) return Self; } + public IpRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -460,6 +483,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("ip_range"); writer.WriteEndObject(); @@ -477,6 +506,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs index 6585e14e662..7bed45378a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs @@ -49,6 +49,8 @@ public sealed partial class JoinProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("relations")] public IDictionary>>? Relations { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "join"; @@ -69,6 +71,7 @@ public JoinPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private IDictionary>>? RelationsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public JoinPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -145,6 +148,12 @@ public JoinPropertyDescriptor Relations(Func SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -190,6 +199,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, RelationsValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("join"); writer.WriteEndObject(); @@ -203,7 +218,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Relations = RelationsValue + Relations = RelationsValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -222,6 +238,7 @@ public JoinPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private IDictionary>>? RelationsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public JoinPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -298,6 +315,12 @@ public JoinPropertyDescriptor Relations(Func /// @@ -116,6 +118,7 @@ public KeywordPropertyDescriptor() : base() private string? SimilarityValue { get; set; } private bool? SplitQueriesOnWhitespaceValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } public KeywordPropertyDescriptor Boost(double? boost) @@ -283,6 +286,12 @@ public KeywordPropertyDescriptor Store(bool? store = true) return Self; } + public KeywordPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -421,6 +430,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -477,6 +492,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } @@ -510,6 +526,7 @@ public KeywordPropertyDescriptor() : base() private string? SimilarityValue { get; set; } private bool? SplitQueriesOnWhitespaceValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } public KeywordPropertyDescriptor Boost(double? boost) @@ -677,6 +694,12 @@ public KeywordPropertyDescriptor Store(bool? store = true) return Self; } + public KeywordPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -815,6 +838,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -871,6 +900,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Similarity = SimilarityValue, SplitQueriesOnWhitespace = SplitQueriesOnWhitespaceValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs index e2454a28973..e9cf13c2661 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class LongNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public LongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public LongNumberPropertyDescriptor Store(bool? store = true) return Self; } + public LongNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public LongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public LongNumberPropertyDescriptor Store(bool? store = true) return Self; } + public LongNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs index 301a1c2d56a..db676111088 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/LongRangeProperty.g.cs @@ -58,6 +58,8 @@ public sealed partial class LongRangeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "long_range"; @@ -82,6 +84,7 @@ public LongRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public LongRangePropertyDescriptor Boost(double? boost) { @@ -182,6 +185,12 @@ public LongRangePropertyDescriptor Store(bool? store = true) return Self; } + public LongRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,6 +260,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("long_range"); writer.WriteEndObject(); @@ -268,7 +283,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -291,6 +307,7 @@ public LongRangePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public LongRangePropertyDescriptor Boost(double? boost) { @@ -391,6 +408,12 @@ public LongRangePropertyDescriptor Store(bool? store = true) return Self; } + public LongRangePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -460,6 +483,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("long_range"); writer.WriteEndObject(); @@ -477,6 +506,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs index 13bf5f0c702..f800395efef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Murmur3HashProperty.g.cs @@ -52,6 +52,8 @@ public sealed partial class Murmur3HashProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "murmur3"; @@ -73,6 +75,7 @@ public Murmur3HashPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -155,6 +158,12 @@ public Murmur3HashPropertyDescriptor Store(bool? store = true) return Self; } + public Murmur3HashPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -206,6 +215,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("murmur3"); writer.WriteEndObject(); @@ -220,7 +235,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -240,6 +256,7 @@ public Murmur3HashPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public Murmur3HashPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -322,6 +339,12 @@ public Murmur3HashPropertyDescriptor Store(bool? store = true) return Self; } + public Murmur3HashPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -373,6 +396,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("murmur3"); writer.WriteEndObject(); @@ -387,6 +416,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs index 959c90ccf45..ddb85aa7699 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/NestedProperty.g.cs @@ -56,6 +56,8 @@ public sealed partial class NestedProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "nested"; @@ -79,6 +81,7 @@ public NestedPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -173,6 +176,12 @@ public NestedPropertyDescriptor Store(bool? store = true) return Self; } + public NestedPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -236,6 +245,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("nested"); writer.WriteEndObject(); @@ -252,7 +267,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IncludeInRoot = IncludeInRootValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -274,6 +290,7 @@ public NestedPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public NestedPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -368,6 +385,12 @@ public NestedPropertyDescriptor Store(bool? store = true) return Self; } + public NestedPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -431,6 +454,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("nested"); writer.WriteEndObject(); @@ -447,6 +476,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IncludeInRoot = IncludeInRootValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs index 72b364f5dea..32b66e7cd6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs @@ -54,6 +54,8 @@ public sealed partial class ObjectProperty : IProperty public bool? Store { get; set; } [JsonInclude, JsonPropertyName("subobjects")] public bool? Subobjects { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "object"; @@ -76,6 +78,7 @@ public ObjectPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } private bool? SubobjectsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public ObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -164,6 +167,12 @@ public ObjectPropertyDescriptor Subobjects(bool? subobjects = true) return Self; } + public ObjectPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -221,6 +230,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(SubobjectsValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("object"); writer.WriteEndObject(); @@ -236,7 +251,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Properties = PropertiesValue, Store = StoreValue, - Subobjects = SubobjectsValue + Subobjects = SubobjectsValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -257,6 +273,7 @@ public ObjectPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } private bool? SubobjectsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public ObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -345,6 +362,12 @@ public ObjectPropertyDescriptor Subobjects(bool? subobjects = true) return Self; } + public ObjectPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -402,6 +425,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(SubobjectsValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("object"); writer.WriteEndObject(); @@ -417,6 +446,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Properties = PropertiesValue, Store = StoreValue, - Subobjects = SubobjectsValue + Subobjects = SubobjectsValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs deleted file mode 100644 index db4a8355410..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs +++ /dev/null @@ -1,452 +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.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Mapping; - -public sealed partial class PassthroughObjectProperty : IProperty -{ - [JsonInclude, JsonPropertyName("copy_to")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] - public Elastic.Clients.Elasticsearch.Fields? CopyTo { get; set; } - [JsonInclude, JsonPropertyName("dynamic")] - public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } - [JsonInclude, JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - [JsonInclude, JsonPropertyName("fields")] - public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } - [JsonInclude, JsonPropertyName("ignore_above")] - public int? IgnoreAbove { get; set; } - - /// - /// - /// Metadata about the field. - /// - /// - [JsonInclude, JsonPropertyName("meta")] - public IDictionary? Meta { get; set; } - [JsonInclude, JsonPropertyName("priority")] - public int? Priority { get; set; } - [JsonInclude, JsonPropertyName("properties")] - public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } - [JsonInclude, JsonPropertyName("store")] - public bool? Store { get; set; } - [JsonInclude, JsonPropertyName("time_series_dimension")] - public bool? TimeSeriesDimension { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "passthrough"; -} - -public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor -{ - internal PassthroughObjectPropertyDescriptor(Action> configure) => configure.Invoke(this); - - public PassthroughObjectPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private int? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private bool? TimeSeriesDimensionValue { get; set; } - - public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PassthroughObjectPropertyDescriptor Priority(int? priority) - { - PriorityValue = priority; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) - { - TimeSeriesDimensionValue = timeSeriesDimension; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TimeSeriesDimensionValue.HasValue) - { - writer.WritePropertyName("time_series_dimension"); - writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("passthrough"); - writer.WriteEndObject(); - } - - PassthroughObjectProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Priority = PriorityValue, - Properties = PropertiesValue, - Store = StoreValue, - TimeSeriesDimension = TimeSeriesDimensionValue - }; -} - -public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal PassthroughObjectPropertyDescriptor(Action configure) => configure.Invoke(this); - - public PassthroughObjectPropertyDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Fields? CopyToValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private bool? EnabledValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } - private int? IgnoreAboveValue { get; set; } - private IDictionary? MetaValue { get; set; } - private int? PriorityValue { get; set; } - private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private bool? StoreValue { get; set; } - private bool? TimeSeriesDimensionValue { get; set; } - - public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) - { - CopyToValue = copyTo; - return Self; - } - - public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) - { - DynamicValue = dynamic; - return Self; - } - - public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) - { - EnabledValue = enabled; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) - { - FieldsValue = fields; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) - { - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Fields(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - FieldsValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) - { - IgnoreAboveValue = ignoreAbove; - return Self; - } - - /// - /// - /// Metadata about the field. - /// - /// - public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) - { - MetaValue = selector?.Invoke(new FluentDictionary()); - return Self; - } - - public PassthroughObjectPropertyDescriptor Priority(int? priority) - { - PriorityValue = priority; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) - { - PropertiesValue = properties; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) - { - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Properties(Action> configure) - { - var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); - configure?.Invoke(descriptor); - PropertiesValue = descriptor.PromisedValue; - return Self; - } - - public PassthroughObjectPropertyDescriptor Store(bool? store = true) - { - StoreValue = store; - return Self; - } - - public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) - { - TimeSeriesDimensionValue = timeSeriesDimension; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (CopyToValue is not null) - { - writer.WritePropertyName("copy_to"); - JsonSerializer.Serialize(writer, CopyToValue, options); - } - - if (DynamicValue is not null) - { - writer.WritePropertyName("dynamic"); - JsonSerializer.Serialize(writer, DynamicValue, options); - } - - if (EnabledValue.HasValue) - { - writer.WritePropertyName("enabled"); - writer.WriteBooleanValue(EnabledValue.Value); - } - - if (FieldsValue is not null) - { - writer.WritePropertyName("fields"); - JsonSerializer.Serialize(writer, FieldsValue, options); - } - - if (IgnoreAboveValue.HasValue) - { - writer.WritePropertyName("ignore_above"); - writer.WriteNumberValue(IgnoreAboveValue.Value); - } - - if (MetaValue is not null) - { - writer.WritePropertyName("meta"); - JsonSerializer.Serialize(writer, MetaValue, options); - } - - if (PriorityValue.HasValue) - { - writer.WritePropertyName("priority"); - writer.WriteNumberValue(PriorityValue.Value); - } - - if (PropertiesValue is not null) - { - writer.WritePropertyName("properties"); - JsonSerializer.Serialize(writer, PropertiesValue, options); - } - - if (StoreValue.HasValue) - { - writer.WritePropertyName("store"); - writer.WriteBooleanValue(StoreValue.Value); - } - - if (TimeSeriesDimensionValue.HasValue) - { - writer.WritePropertyName("time_series_dimension"); - writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("passthrough"); - writer.WriteEndObject(); - } - - PassthroughObjectProperty IBuildableDescriptor.Build() => new() - { - CopyTo = CopyToValue, - Dynamic = DynamicValue, - Enabled = EnabledValue, - Fields = FieldsValue, - IgnoreAbove = IgnoreAboveValue, - Meta = MetaValue, - Priority = PriorityValue, - Properties = PropertiesValue, - Store = StoreValue, - TimeSeriesDimension = TimeSeriesDimensionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs index 5861ca10580..2cae62921b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PercolatorProperty.g.cs @@ -45,6 +45,8 @@ public sealed partial class PercolatorProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "percolator"; @@ -63,6 +65,7 @@ public PercolatorPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public PercolatorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -127,6 +130,12 @@ public PercolatorPropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -160,6 +169,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("percolator"); writer.WriteEndObject(); @@ -171,7 +186,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, - Properties = PropertiesValue + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -188,6 +204,7 @@ public PercolatorPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public PercolatorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -252,6 +269,12 @@ public PercolatorPropertyDescriptor Properties(Action "point"; @@ -82,6 +84,7 @@ public PointPropertyDescriptor() : base() private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -182,6 +185,12 @@ public PointPropertyDescriptor Store(bool? store = true) return Self; } + public PointPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -251,6 +260,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("point"); writer.WriteEndObject(); @@ -268,7 +283,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -291,6 +307,7 @@ public PointPropertyDescriptor() : base() private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public PointPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -391,6 +408,12 @@ public PointPropertyDescriptor Store(bool? store = true) return Self; } + public PointPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -460,6 +483,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("point"); writer.WriteEndObject(); @@ -477,6 +506,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs index b3b3c49457d..9cf52241069 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs @@ -236,11 +236,6 @@ public PropertiesDescriptor() : base(new Properties()) public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.PropertyName propertyName, ObjectProperty objectProperty) => AssignVariant(propertyName, objectProperty); public PropertiesDescriptor Object(Expression> propertyName) => AssignVariant, ObjectProperty>(propertyName, null); public PropertiesDescriptor Object(Expression> propertyName, Action> configure) => AssignVariant, ObjectProperty>(propertyName, configure); - public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); - public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); - public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName, PassthroughObjectProperty passthroughObjectProperty) => AssignVariant(propertyName, passthroughObjectProperty); - public PropertiesDescriptor PassthroughObject(Expression> propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); - public PropertiesDescriptor PassthroughObject(Expression> propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, PercolatorProperty>(propertyName, null); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, PercolatorProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName, PercolatorProperty percolatorProperty) => AssignVariant(propertyName, percolatorProperty); @@ -400,8 +395,6 @@ public override IProperty Read(ref Utf8JsonReader reader, Type typeToConvert, Js return JsonSerializer.Deserialize(ref reader, options); case "object": return JsonSerializer.Deserialize(ref reader, options); - case "passthrough": - return JsonSerializer.Deserialize(ref reader, options); case "percolator": return JsonSerializer.Deserialize(ref reader, options); case "point": @@ -549,9 +542,6 @@ public override void Write(Utf8JsonWriter writer, IProperty value, JsonSerialize case "object": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.ObjectProperty), options); return; - case "passthrough": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.PassthroughObjectProperty), options); - return; case "percolator": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.PercolatorProperty), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs index 3ee3c6d40c8..f69e0dd7818 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RankFeatureProperty.g.cs @@ -47,6 +47,8 @@ public sealed partial class RankFeatureProperty : IProperty public bool? PositiveScoreImpact { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "rank_feature"; @@ -66,6 +68,7 @@ public RankFeaturePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private bool? PositiveScoreImpactValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public RankFeaturePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -136,6 +139,12 @@ public RankFeaturePropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -175,6 +184,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("rank_feature"); writer.WriteEndObject(); @@ -187,7 +202,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, PositiveScoreImpact = PositiveScoreImpactValue, - Properties = PropertiesValue + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -205,6 +221,7 @@ public RankFeaturePropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private bool? PositiveScoreImpactValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public RankFeaturePropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -275,6 +292,12 @@ public RankFeaturePropertyDescriptor Properties(Action "rank_features"; @@ -66,6 +68,7 @@ public RankFeaturesPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private bool? PositiveScoreImpactValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public RankFeaturesPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -136,6 +139,12 @@ public RankFeaturesPropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -175,6 +184,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("rank_features"); writer.WriteEndObject(); @@ -187,7 +202,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, PositiveScoreImpact = PositiveScoreImpactValue, - Properties = PropertiesValue + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -205,6 +221,7 @@ public RankFeaturesPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private bool? PositiveScoreImpactValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public RankFeaturesPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -275,6 +292,12 @@ public RankFeaturesPropertyDescriptor Properties(Action /// @@ -115,6 +117,7 @@ public ScaledFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -265,6 +268,12 @@ public ScaledFloatNumberPropertyDescriptor Store(bool? store = true) return Self; } + public ScaledFloatNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -396,6 +405,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -455,6 +470,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o ScalingFactor = ScalingFactorValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -486,6 +502,7 @@ public ScaledFloatNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -636,6 +653,12 @@ public ScaledFloatNumberPropertyDescriptor Store(bool? store = true) return Self; } + public ScaledFloatNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -767,6 +790,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -826,6 +855,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o ScalingFactor = ScalingFactorValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs index 01869286d25..ccfb13d6ed1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SearchAsYouTypeProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class SearchAsYouTypeProperty : IProperty public string? Similarity { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("term_vector")] public Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVector { get; set; } @@ -96,6 +98,7 @@ public SearchAsYouTypePropertyDescriptor() : base() private string? SearchQuoteAnalyzerValue { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } public SearchAsYouTypePropertyDescriptor Analyzer(string? analyzer) @@ -221,6 +224,12 @@ public SearchAsYouTypePropertyDescriptor Store(bool? store = true) return Self; } + public SearchAsYouTypePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public SearchAsYouTypePropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? termVector) { TermVectorValue = termVector; @@ -320,6 +329,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TermVectorValue is not null) { writer.WritePropertyName("term_vector"); @@ -348,6 +363,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TermVector = TermVectorValue }; } @@ -375,6 +391,7 @@ public SearchAsYouTypePropertyDescriptor() : base() private string? SearchQuoteAnalyzerValue { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } public SearchAsYouTypePropertyDescriptor Analyzer(string? analyzer) @@ -500,6 +517,12 @@ public SearchAsYouTypePropertyDescriptor Store(bool? store = true) return Self; } + public SearchAsYouTypePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public SearchAsYouTypePropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? termVector) { TermVectorValue = termVector; @@ -599,6 +622,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TermVectorValue is not null) { writer.WritePropertyName("term_vector"); @@ -627,6 +656,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TermVector = TermVectorValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs index 0e3d3412758..25d160139c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SemanticTextProperty.g.cs @@ -29,11 +29,28 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class SemanticTextProperty : IProperty { + /// + /// + /// Inference endpoint that will be used to generate embeddings for the field. + /// This parameter cannot be updated. Use the Create inference API to create the endpoint. + /// If search_inference_id is specified, the inference endpoint will only be used at index time. + /// + /// [JsonInclude, JsonPropertyName("inference_id")] - public Elastic.Clients.Elasticsearch.Id InferenceId { get; set; } + public Elastic.Clients.Elasticsearch.Id? InferenceId { get; set; } [JsonInclude, JsonPropertyName("meta")] public IDictionary? Meta { get; set; } + /// + /// + /// Inference endpoint that will be used to generate embeddings at query time. + /// You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint. + /// If not specified, the inference endpoint defined by inference_id will be used at both index and query time. + /// + /// + [JsonInclude, JsonPropertyName("search_inference_id")] + public Elastic.Clients.Elasticsearch.Id? SearchInferenceId { get; set; } + [JsonInclude, JsonPropertyName("type")] public string Type => "semantic_text"; } @@ -46,10 +63,18 @@ public SemanticTextPropertyDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Id InferenceIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? InferenceIdValue { get; set; } private IDictionary? MetaValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? SearchInferenceIdValue { get; set; } - public SemanticTextPropertyDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + /// + /// + /// Inference endpoint that will be used to generate embeddings for the field. + /// This parameter cannot be updated. Use the Create inference API to create the endpoint. + /// If search_inference_id is specified, the inference endpoint will only be used at index time. + /// + /// + public SemanticTextPropertyDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id? inferenceId) { InferenceIdValue = inferenceId; return Self; @@ -61,17 +86,40 @@ public SemanticTextPropertyDescriptor Meta(Func return Self; } + /// + /// + /// Inference endpoint that will be used to generate embeddings at query time. + /// You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint. + /// If not specified, the inference endpoint defined by inference_id will be used at both index and query time. + /// + /// + public SemanticTextPropertyDescriptor SearchInferenceId(Elastic.Clients.Elasticsearch.Id? searchInferenceId) + { + SearchInferenceIdValue = searchInferenceId; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("inference_id"); - JsonSerializer.Serialize(writer, InferenceIdValue, options); + if (InferenceIdValue is not null) + { + writer.WritePropertyName("inference_id"); + JsonSerializer.Serialize(writer, InferenceIdValue, options); + } + if (MetaValue is not null) { writer.WritePropertyName("meta"); JsonSerializer.Serialize(writer, MetaValue, options); } + if (SearchInferenceIdValue is not null) + { + writer.WritePropertyName("search_inference_id"); + JsonSerializer.Serialize(writer, SearchInferenceIdValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("semantic_text"); writer.WriteEndObject(); @@ -80,6 +128,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SemanticTextProperty IBuildableDescriptor.Build() => new() { InferenceId = InferenceIdValue, - Meta = MetaValue + Meta = MetaValue, + SearchInferenceId = SearchInferenceIdValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs index 746ae77f100..1c11744d207 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -67,6 +67,8 @@ public sealed partial class ShapeProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "shape"; @@ -99,6 +101,7 @@ public ShapePropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public ShapePropertyDescriptor Coerce(bool? coerce = true) { @@ -205,6 +208,12 @@ public ShapePropertyDescriptor Store(bool? store = true) return Self; } + public ShapePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -280,6 +289,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("shape"); writer.WriteEndObject(); @@ -298,7 +313,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -329,6 +345,7 @@ public ShapePropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public ShapePropertyDescriptor Coerce(bool? coerce = true) { @@ -435,6 +452,12 @@ public ShapePropertyDescriptor Store(bool? store = true) return Self; } + public ShapePropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -510,6 +533,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("shape"); writer.WriteEndObject(); @@ -528,6 +557,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs index 828c1519a6d..86726793733 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShortNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class ShortNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public ShortNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public ShortNumberPropertyDescriptor Store(bool? store = true) return Self; } + public ShortNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public ShortNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public ShortNumberPropertyDescriptor Store(bool? store = true) return Self; } + public ShortNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs index 421e6a48fc4..cecbc772afe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SparseVectorProperty.g.cs @@ -45,6 +45,8 @@ public sealed partial class SparseVectorProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "sparse_vector"; @@ -63,6 +65,7 @@ public SparseVectorPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public SparseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -127,6 +130,12 @@ public SparseVectorPropertyDescriptor Properties(Action SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -160,6 +169,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("sparse_vector"); writer.WriteEndObject(); @@ -171,7 +186,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, - Properties = PropertiesValue + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -188,6 +204,7 @@ public SparseVectorPropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public SparseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -252,6 +269,12 @@ public SparseVectorPropertyDescriptor Properties(Action Analyzer(string? analyzer) @@ -315,6 +318,12 @@ public TextPropertyDescriptor Store(bool? store = true) return Self; } + public TextPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public TextPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? termVector) { TermVectorValue = termVector; @@ -470,6 +479,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TermVectorValue is not null) { writer.WritePropertyName("term_vector"); @@ -552,6 +567,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TermVector = TermVectorValue }; } @@ -589,6 +605,7 @@ public TextPropertyDescriptor() : base() private string? SearchQuoteAnalyzerValue { get; set; } private string? SimilarityValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? TermVectorValue { get; set; } public TextPropertyDescriptor Analyzer(string? analyzer) @@ -786,6 +803,12 @@ public TextPropertyDescriptor Store(bool? store = true) return Self; } + public TextPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + public TextPropertyDescriptor TermVector(Elastic.Clients.Elasticsearch.Mapping.TermVectorOption? termVector) { TermVectorValue = termVector; @@ -941,6 +964,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TermVectorValue is not null) { writer.WritePropertyName("term_vector"); @@ -1023,6 +1052,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o SearchQuoteAnalyzer = SearchQuoteAnalyzerValue, Similarity = SimilarityValue, Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TermVector = TermVectorValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs index 6a9e2302b3e..a0e6f6a9248 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TokenCountProperty.g.cs @@ -62,6 +62,8 @@ public sealed partial class TokenCountProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "token_count"; @@ -88,6 +90,7 @@ public TokenCountPropertyDescriptor() : base() private double? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public TokenCountPropertyDescriptor Analyzer(string? analyzer) { @@ -200,6 +203,12 @@ public TokenCountPropertyDescriptor Store(bool? store = true) return Self; } + public TokenCountPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -281,6 +290,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("token_count"); writer.WriteEndObject(); @@ -300,7 +315,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -325,6 +341,7 @@ public TokenCountPropertyDescriptor() : base() private double? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public TokenCountPropertyDescriptor Analyzer(string? analyzer) { @@ -437,6 +454,12 @@ public TokenCountPropertyDescriptor Store(bool? store = true) return Self; } + public TokenCountPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -518,6 +541,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("token_count"); writer.WriteEndObject(); @@ -537,6 +566,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs index 0d7d4bebd18..62babbd8409 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/UnsignedLongNumberProperty.g.cs @@ -66,6 +66,8 @@ public sealed partial class UnsignedLongNumberProperty : IProperty public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } /// /// @@ -112,6 +114,7 @@ public UnsignedLongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -256,6 +259,12 @@ public UnsignedLongNumberPropertyDescriptor Store(bool? store = true) return Self; } + public UnsignedLongNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -381,6 +390,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -439,6 +454,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; @@ -469,6 +485,7 @@ public UnsignedLongNumberPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } private bool? TimeSeriesDimensionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TimeSeriesMetricType? TimeSeriesMetricValue { get; set; } @@ -613,6 +630,12 @@ public UnsignedLongNumberPropertyDescriptor Store(bool? store = true) return Self; } + public UnsignedLongNumberPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + /// /// /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. @@ -738,6 +761,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + if (TimeSeriesDimensionValue.HasValue) { writer.WritePropertyName("time_series_dimension"); @@ -796,6 +825,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Properties = PropertiesValue, Script = BuildScript(), Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, TimeSeriesDimension = TimeSeriesDimensionValue, TimeSeriesMetric = TimeSeriesMetricValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs index aeab1142b5e..a47cc0b2ba0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/VersionProperty.g.cs @@ -52,6 +52,8 @@ public sealed partial class VersionProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "version"; @@ -73,6 +75,7 @@ public VersionPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -155,6 +158,12 @@ public VersionPropertyDescriptor Store(bool? store = true) return Self; } + public VersionPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -206,6 +215,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("version"); writer.WriteEndObject(); @@ -220,7 +235,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -240,6 +256,7 @@ public VersionPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public VersionPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -322,6 +339,12 @@ public VersionPropertyDescriptor Store(bool? store = true) return Self; } + public VersionPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -373,6 +396,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("version"); writer.WriteEndObject(); @@ -387,6 +416,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, Meta = MetaValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs index a35b3b65721..3ea44163a71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/WildcardProperty.g.cs @@ -54,6 +54,8 @@ public sealed partial class WildcardProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "wildcard"; @@ -76,6 +78,7 @@ public WildcardPropertyDescriptor() : base() private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -164,6 +167,12 @@ public WildcardPropertyDescriptor Store(bool? store = true) return Self; } + public WildcardPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -221,6 +230,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("wildcard"); writer.WriteEndObject(); @@ -236,7 +251,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } @@ -257,6 +273,7 @@ public WildcardPropertyDescriptor() : base() private string? NullValueValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public WildcardPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) { @@ -345,6 +362,12 @@ public WildcardPropertyDescriptor Store(bool? store = true) return Self; } + public WildcardPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -402,6 +425,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + writer.WritePropertyName("type"); writer.WriteStringValue("wildcard"); writer.WriteEndObject(); @@ -417,6 +446,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Meta = MetaValue, NullValue = NullValueValue, Properties = PropertiesValue, - Store = StoreValue + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs index e0ad61a6cd6..b55c403a77b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadResult.g.cs @@ -17,26 +17,20 @@ #nullable restore -using Elastic.Clients.Elasticsearch.Core; using Elastic.Clients.Elasticsearch.Fluent; using Elastic.Clients.Elasticsearch.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.Nodes; -public sealed partial class NodeReloadResult : Union +public sealed partial class NodeReloadResult { - public NodeReloadResult(Elastic.Clients.Elasticsearch.Nodes.Stats Stats) : base(Stats) - { - } - - public NodeReloadResult(Elastic.Clients.Elasticsearch.Nodes.NodeReloadError Error) : base(Error) - { - } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("reload_exception")] + public Elastic.Clients.Elasticsearch.ErrorCause? ReloadException { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs index 16db583ecbe..3f01188d339 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FieldAndFormat.g.cs @@ -36,7 +36,7 @@ public sealed partial class FieldAndFormat { /// /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// [JsonInclude, JsonPropertyName("field")] @@ -44,7 +44,7 @@ public sealed partial class FieldAndFormat /// /// - /// Format in which the values are returned. + /// The format in which the values are returned. /// /// [JsonInclude, JsonPropertyName("format")] @@ -72,7 +72,7 @@ public FieldAndFormatDescriptor() : base() /// /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// public FieldAndFormatDescriptor Field(Elastic.Clients.Elasticsearch.Field field) @@ -83,7 +83,7 @@ public FieldAndFormatDescriptor Field(Elastic.Clients.Elasticsearch.F /// /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// public FieldAndFormatDescriptor Field(Expression> field) @@ -94,7 +94,7 @@ public FieldAndFormatDescriptor Field(Expression /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// public FieldAndFormatDescriptor Field(Expression> field) @@ -105,7 +105,7 @@ public FieldAndFormatDescriptor Field(Expression /// - /// Format in which the values are returned. + /// The format in which the values are returned. /// /// public FieldAndFormatDescriptor Format(string? format) @@ -160,7 +160,7 @@ public FieldAndFormatDescriptor() : base() /// /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// public FieldAndFormatDescriptor Field(Elastic.Clients.Elasticsearch.Field field) @@ -171,7 +171,7 @@ public FieldAndFormatDescriptor Field(Elastic.Clients.Elasticsearch.Field field) /// /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// public FieldAndFormatDescriptor Field(Expression> field) @@ -182,7 +182,7 @@ public FieldAndFormatDescriptor Field(Expression /// - /// Wildcard pattern. The request returns values for field names matching this pattern. + /// A wildcard pattern. The request returns values for field names matching this pattern. /// /// public FieldAndFormatDescriptor Field(Expression> field) @@ -193,7 +193,7 @@ public FieldAndFormatDescriptor Field(Expression /// - /// Format in which the values are returned. + /// The format in which the values are returned. /// /// public FieldAndFormatDescriptor Format(string? format) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs new file mode 100644 index 00000000000..bb5ec2e3665 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/GeoGridQuery.g.cs @@ -0,0 +1,424 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +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.QueryDsl; + +[JsonConverter(typeof(GeoGridQueryConverter))] +public sealed partial class GeoGridQuery +{ + internal GeoGridQuery(string variantName, object variant) + { + if (variantName is null) + throw new ArgumentNullException(nameof(variantName)); + if (variant is null) + throw new ArgumentNullException(nameof(variant)); + if (string.IsNullOrWhiteSpace(variantName)) + throw new ArgumentException("Variant name must not be empty or whitespace."); + VariantName = variantName; + Variant = variant; + } + + internal object Variant { get; } + internal string VariantName { get; } + + public static GeoGridQuery Geogrid(string s) => new GeoGridQuery("geogrid", s); + public static GeoGridQuery Geohash(string s) => new GeoGridQuery("geohash", s); + public static GeoGridQuery Geohex(string s) => new GeoGridQuery("geohex", s); + + /// + /// + /// 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. + /// + /// + [JsonInclude, JsonPropertyName("boost")] + public float? Boost { get; set; } + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Field Field { get; set; } + [JsonInclude, JsonPropertyName("_name")] + public string? QueryName { get; set; } + + public bool TryGet([NotNullWhen(true)] out T? result) where T : class + { + result = default; + if (Variant is T variant) + { + result = variant; + return true; + } + + return false; + } +} + +internal sealed partial class GeoGridQueryConverter : JsonConverter +{ + public override GeoGridQuery Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + { + throw new JsonException("Expected start token."); + } + + reader.Read(); + var fieldName = reader.GetString(); + reader.Read(); + object? variantValue = default; + string? variantNameValue = default; + float? boostValue = default; + string? queryNameValue = default; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token."); + } + + if (reader.TokenType != JsonTokenType.PropertyName) + { + throw new JsonException("Expected a property name token representing the name of an Elasticsearch field."); + } + + var propertyName = reader.GetString(); + reader.Read(); + if (propertyName == "boost") + { + boostValue = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (propertyName == "_name") + { + queryNameValue = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (propertyName == "geogrid") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "geohash") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + if (propertyName == "geohex") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'GeoGridQuery' from the response."); + } + + reader.Read(); + var result = new GeoGridQuery(variantNameValue, variantValue); + result.Boost = boostValue; + result.Field = fieldName; + result.QueryName = queryNameValue; + return result; + } + + public override void Write(Utf8JsonWriter writer, GeoGridQuery value, JsonSerializerOptions options) + { + if (value.Field is null) + throw new JsonException("Unable to serialize GeoGridQuery because the `Field` property is not set. Field name queries must include a valid field name."); + if (!options.TryGetClientSettings(out var settings)) + throw new JsonException("Unable to retrieve client settings required to infer field."); + writer.WriteStartObject(); + writer.WritePropertyName(settings.Inferrer.Field(value.Field)); + writer.WriteStartObject(); + if (value.Boost.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(value.Boost.Value); + } + + if (!string.IsNullOrEmpty(value.QueryName)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(value.QueryName); + } + + if (value.VariantName is not null && value.Variant is not null) + { + writer.WritePropertyName(value.VariantName); + switch (value.VariantName) + { + case "geogrid": + JsonSerializer.Serialize(writer, (string)value.Variant, options); + break; + case "geohash": + JsonSerializer.Serialize(writer, (string)value.Variant, options); + break; + case "geohex": + JsonSerializer.Serialize(writer, (string)value.Variant, options); + break; + } + } + + writer.WriteEndObject(); + writer.WriteEndObject(); + } +} + +public sealed partial class GeoGridQueryDescriptor : SerializableDescriptor> +{ + internal GeoGridQueryDescriptor(Action> configure) => configure.Invoke(this); + + public GeoGridQueryDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private GeoGridQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private GeoGridQueryDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private float? BoostValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private string? QueryNameValue { 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 GeoGridQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + public GeoGridQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + public GeoGridQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public GeoGridQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public GeoGridQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public GeoGridQueryDescriptor Geogrid(string s) => Set(s, "geogrid"); + public GeoGridQueryDescriptor Geohash(string s) => Set(s, "geohash"); + public GeoGridQueryDescriptor Geohex(string s) => Set(s, "geohex"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + if (FieldValue is null) + throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); + writer.WriteStartObject(); + writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); + writer.WriteStartObject(); + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + writer.WriteEndObject(); + } +} + +public sealed partial class GeoGridQueryDescriptor : SerializableDescriptor +{ + internal GeoGridQueryDescriptor(Action configure) => configure.Invoke(this); + + public GeoGridQueryDescriptor() : base() + { + } + + private bool ContainsVariant { get; set; } + private string ContainedVariantName { get; set; } + private object Variant { get; set; } + private Descriptor Descriptor { get; set; } + + private GeoGridQueryDescriptor Set(Action descriptorAction, string variantName) where T : Descriptor + { + ContainedVariantName = variantName; + ContainsVariant = true; + var descriptor = (T)Activator.CreateInstance(typeof(T), true); + descriptorAction?.Invoke(descriptor); + Descriptor = descriptor; + return Self; + } + + private GeoGridQueryDescriptor Set(object variant, string variantName) + { + Variant = variant; + ContainedVariantName = variantName; + ContainsVariant = true; + return Self; + } + + private float? BoostValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private string? QueryNameValue { 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 GeoGridQueryDescriptor Boost(float? boost) + { + BoostValue = boost; + return Self; + } + + public GeoGridQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + public GeoGridQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public GeoGridQueryDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public GeoGridQueryDescriptor QueryName(string? queryName) + { + QueryNameValue = queryName; + return Self; + } + + public GeoGridQueryDescriptor Geogrid(string s) => Set(s, "geogrid"); + public GeoGridQueryDescriptor Geohash(string s) => Set(s, "geohash"); + public GeoGridQueryDescriptor Geohex(string s) => Set(s, "geohex"); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + if (FieldValue is null) + throw new JsonException("Unable to serialize field name query descriptor with a null field. Ensure you use a suitable descriptor constructor or call the Field method, passing a non-null value for the field argument."); + writer.WriteStartObject(); + writer.WritePropertyName(settings.Inferrer.Field(FieldValue)); + writer.WriteStartObject(); + if (BoostValue.HasValue) + { + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue.Value); + } + + if (!string.IsNullOrEmpty(QueryNameValue)) + { + writer.WritePropertyName("_name"); + writer.WriteStringValue(QueryNameValue); + } + + if (!string.IsNullOrEmpty(ContainedVariantName)) + { + writer.WritePropertyName(ContainedVariantName); + if (Variant is not null) + { + JsonSerializer.Serialize(writer, Variant, Variant.GetType(), options); + writer.WriteEndObject(); + return; + } + + JsonSerializer.Serialize(writer, Descriptor, Descriptor.GetType(), options); + } + + writer.WriteEndObject(); + writer.WriteEndObject(); + } +} diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs index 35c8ba75904..f1dd33535f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs @@ -28,6 +28,11 @@ namespace Elastic.Clients.Elasticsearch.QueryDsl; +/// +/// +/// An Elasticsearch Query DSL (Domain Specific Language) object that defines a query. +/// +/// [JsonConverter(typeof(QueryConverter))] public sealed partial class Query { @@ -59,6 +64,7 @@ internal Query(string variantName, object variant) public static Query Fuzzy(Elastic.Clients.Elasticsearch.QueryDsl.FuzzyQuery fuzzyQuery) => new Query("fuzzy", fuzzyQuery); public static Query GeoBoundingBox(Elastic.Clients.Elasticsearch.QueryDsl.GeoBoundingBoxQuery geoBoundingBoxQuery) => new Query("geo_bounding_box", geoBoundingBoxQuery); public static Query GeoDistance(Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceQuery geoDistanceQuery) => new Query("geo_distance", geoDistanceQuery); + public static Query GeoGrid(Elastic.Clients.Elasticsearch.QueryDsl.GeoGridQuery geoGridQuery) => new Query("geo_grid", geoGridQuery); public static Query GeoShape(Elastic.Clients.Elasticsearch.QueryDsl.GeoShapeQuery geoShapeQuery) => new Query("geo_shape", geoShapeQuery); public static Query HasChild(Elastic.Clients.Elasticsearch.QueryDsl.HasChildQuery hasChildQuery) => new Query("has_child", hasChildQuery); public static Query HasParent(Elastic.Clients.Elasticsearch.QueryDsl.HasParentQuery hasParentQuery) => new Query("has_parent", hasParentQuery); @@ -223,6 +229,13 @@ public override Query Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSe continue; } + if (propertyName == "geo_grid") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "geo_shape") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -586,6 +599,9 @@ public override void Write(Utf8JsonWriter writer, Query value, JsonSerializerOpt case "geo_distance": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceQuery)value.Variant, options); break; + case "geo_grid": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.GeoGridQuery)value.Variant, options); + break; case "geo_shape": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.QueryDsl.GeoShapeQuery)value.Variant, options); break; @@ -782,6 +798,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor GeoBoundingBox(Action> configure) => Set(configure, "geo_bounding_box"); public QueryDescriptor GeoDistance(Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceQuery geoDistanceQuery) => Set(geoDistanceQuery, "geo_distance"); public QueryDescriptor GeoDistance(Action> configure) => Set(configure, "geo_distance"); + public QueryDescriptor GeoGrid(Elastic.Clients.Elasticsearch.QueryDsl.GeoGridQuery geoGridQuery) => Set(geoGridQuery, "geo_grid"); + public QueryDescriptor GeoGrid(Action> configure) => Set(configure, "geo_grid"); public QueryDescriptor GeoShape(Elastic.Clients.Elasticsearch.QueryDsl.GeoShapeQuery geoShapeQuery) => Set(geoShapeQuery, "geo_shape"); public QueryDescriptor GeoShape(Action> configure) => Set(configure, "geo_shape"); public QueryDescriptor HasChild(Elastic.Clients.Elasticsearch.QueryDsl.HasChildQuery hasChildQuery) => Set(hasChildQuery, "has_child"); @@ -948,6 +966,8 @@ private QueryDescriptor Set(object variant, string variantName) public QueryDescriptor GeoBoundingBox(Action configure) => Set(configure, "geo_bounding_box"); public QueryDescriptor GeoDistance(Elastic.Clients.Elasticsearch.QueryDsl.GeoDistanceQuery geoDistanceQuery) => Set(geoDistanceQuery, "geo_distance"); public QueryDescriptor GeoDistance(Action configure) => Set(configure, "geo_distance"); + public QueryDescriptor GeoGrid(Elastic.Clients.Elasticsearch.QueryDsl.GeoGridQuery geoGridQuery) => Set(geoGridQuery, "geo_grid"); + public QueryDescriptor GeoGrid(Action configure) => Set(configure, "geo_grid"); public QueryDescriptor GeoShape(Elastic.Clients.Elasticsearch.QueryDsl.GeoShapeQuery geoShapeQuery) => Set(geoShapeQuery, "geo_shape"); public QueryDescriptor GeoShape(Action configure) => Set(configure, "geo_shape"); public QueryDescriptor HasChild(Elastic.Clients.Elasticsearch.QueryDsl.HasChildQuery hasChildQuery) => Set(hasChildQuery, "has_child"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs index 47cb8cf5415..dab8941c77b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs @@ -74,7 +74,7 @@ public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "terms") { - variant.Terms = JsonSerializer.Deserialize>(ref reader, options); + variant.Terms = JsonSerializer.Deserialize>(ref reader, options); continue; } } @@ -178,7 +178,7 @@ public TermsSetQuery(Elastic.Clients.Elasticsearch.Field field) /// Array of terms you wish to find in the provided field. /// /// - public ICollection Terms { get; set; } + public ICollection Terms { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(TermsSetQuery termsSetQuery) => Elastic.Clients.Elasticsearch.QueryDsl.Query.TermsSet(termsSetQuery); } @@ -199,7 +199,7 @@ public TermsSetQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor MinimumShouldMatchScriptDescriptor { get; set; } private Action MinimumShouldMatchScriptDescriptorAction { get; set; } private string? QueryNameValue { get; set; } - private ICollection TermsValue { get; set; } + private ICollection TermsValue { get; set; } /// /// @@ -317,7 +317,7 @@ public TermsSetQueryDescriptor QueryName(string? queryName) /// Array of terms you wish to find in the provided field. /// /// - public TermsSetQueryDescriptor Terms(ICollection terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; @@ -393,7 +393,7 @@ public TermsSetQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.ScriptDescriptor MinimumShouldMatchScriptDescriptor { get; set; } private Action MinimumShouldMatchScriptDescriptorAction { get; set; } private string? QueryNameValue { get; set; } - private ICollection TermsValue { get; set; } + private ICollection TermsValue { get; set; } /// /// @@ -511,7 +511,7 @@ public TermsSetQueryDescriptor QueryName(string? queryName) /// Array of terms you wish to find in the provided field. /// /// - public TermsSetQueryDescriptor Terms(ICollection terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs index fc8f7a84ead..157ded6328a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRule.g.cs @@ -29,15 +29,42 @@ namespace Elastic.Clients.Elasticsearch.QueryRules; public sealed partial class QueryRule { + /// + /// + /// The actions to take when the rule is matched. + /// The format of this action depends on the rule type. + /// + /// [JsonInclude, JsonPropertyName("actions")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions Actions { get; set; } + + /// + /// + /// The criteria that must be met for the rule to be applied. + /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. + /// + /// [JsonInclude, JsonPropertyName("criteria")] [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteria))] public ICollection Criteria { get; set; } [JsonInclude, JsonPropertyName("priority")] public int? Priority { get; set; } + + /// + /// + /// A unique identifier for the rule. + /// + /// [JsonInclude, JsonPropertyName("rule_id")] public Elastic.Clients.Elasticsearch.Id RuleId { get; set; } + + /// + /// + /// The type of rule. + /// pinned will identify and pin specific documents to the top of search results. + /// exclude will exclude specific documents from search results. + /// + /// [JsonInclude, JsonPropertyName("type")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType Type { get; set; } } @@ -61,6 +88,12 @@ public QueryRuleDescriptor() : base() private Elastic.Clients.Elasticsearch.Id RuleIdValue { get; set; } private Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType TypeValue { get; set; } + /// + /// + /// The actions to take when the rule is matched. + /// The format of this action depends on the rule type. + /// + /// public QueryRuleDescriptor Actions(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleActions actions) { ActionsDescriptor = null; @@ -85,6 +118,12 @@ public QueryRuleDescriptor Actions(Action + /// + /// The criteria that must be met for the rule to be applied. + /// If multiple criteria are specified for a rule, all criteria must be met for the rule to be applied. + /// + /// public QueryRuleDescriptor Criteria(ICollection criteria) { CriteriaDescriptor = null; @@ -127,12 +166,24 @@ public QueryRuleDescriptor Priority(int? priority) return Self; } + /// + /// + /// A unique identifier for the rule. + /// + /// public QueryRuleDescriptor RuleId(Elastic.Clients.Elasticsearch.Id ruleId) { RuleIdValue = ruleId; return Self; } + /// + /// + /// The type of rule. + /// pinned will identify and pin specific documents to the top of search results. + /// exclude will exclude specific documents from search results. + /// + /// public QueryRuleDescriptor Type(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleType type) { TypeValue = type; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs index b8db32502f8..90b30f342bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleActions.g.cs @@ -29,8 +29,35 @@ namespace Elastic.Clients.Elasticsearch.QueryRules; public sealed partial class QueryRuleActions { + /// + /// + /// The documents to apply the rule to. + /// Only one of ids or docs may be specified and at least one must be specified. + /// There is a maximum value of 100 documents in a rule. + /// You can specify the following attributes for each document: + /// + /// + /// + /// + /// _index: The index of the document to pin. + /// + /// + /// + /// + /// _id: The unique document ID. + /// + /// + /// + /// [JsonInclude, JsonPropertyName("docs")] public ICollection? Docs { get; set; } + + /// + /// + /// The unique document IDs of the documents to apply the rule to. + /// Only one of ids or docs may be specified and at least one must be specified. + /// + /// [JsonInclude, JsonPropertyName("ids")] public ICollection? Ids { get; set; } } @@ -49,6 +76,26 @@ public QueryRuleActionsDescriptor() : base() private Action[] DocsDescriptorActions { get; set; } private ICollection? IdsValue { get; set; } + /// + /// + /// The documents to apply the rule to. + /// Only one of ids or docs may be specified and at least one must be specified. + /// There is a maximum value of 100 documents in a rule. + /// You can specify the following attributes for each document: + /// + /// + /// + /// + /// _index: The index of the document to pin. + /// + /// + /// + /// + /// _id: The unique document ID. + /// + /// + /// + /// public QueryRuleActionsDescriptor Docs(ICollection? docs) { DocsDescriptor = null; @@ -85,6 +132,12 @@ public QueryRuleActionsDescriptor Docs(params Action + /// + /// The unique document IDs of the documents to apply the rule to. + /// Only one of ids or docs may be specified and at least one must be specified. + /// + /// public QueryRuleActionsDescriptor Ids(ICollection? ids) { IdsValue = ids; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs index f29c12c6a80..42bd4563f2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRuleCriteria.g.cs @@ -29,10 +29,83 @@ namespace Elastic.Clients.Elasticsearch.QueryRules; public sealed partial class QueryRuleCriteria { + /// + /// + /// The metadata field to match against. + /// This metadata will be used to match against match_criteria sent in the rule. + /// It is required for all criteria types except always. + /// + /// [JsonInclude, JsonPropertyName("metadata")] public string? Metadata { get; set; } + + /// + /// + /// The type of criteria. The following criteria types are supported: + /// + /// + /// + /// + /// always: Matches all queries, regardless of input. + /// + /// + /// + /// + /// contains: Matches that contain this value anywhere in the field meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// + /// exact: Only exact matches meet the criteria defined by the rule. Applicable for string or numerical values. + /// + /// + /// + /// + /// fuzzy: Exact matches or matches within the allowed Levenshtein Edit Distance meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// + /// gt: Matches with a value greater than this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// gte: Matches with a value greater than or equal to this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// lt: Matches with a value less than this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// lte: Matches with a value less than or equal to this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// prefix: Matches that start with this value meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// + /// suffix: Matches that end with this value meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// [JsonInclude, JsonPropertyName("type")] public Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteriaType Type { get; set; } + + /// + /// + /// The values to match against the metadata field. + /// Only one value must match for the criteria to be met. + /// It is required for all criteria types except always. + /// + /// [JsonInclude, JsonPropertyName("values")] public ICollection? Values { get; set; } } @@ -49,18 +122,89 @@ public QueryRuleCriteriaDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteriaType TypeValue { get; set; } private ICollection? ValuesValue { get; set; } + /// + /// + /// The metadata field to match against. + /// This metadata will be used to match against match_criteria sent in the rule. + /// It is required for all criteria types except always. + /// + /// public QueryRuleCriteriaDescriptor Metadata(string? metadata) { MetadataValue = metadata; return Self; } + /// + /// + /// The type of criteria. The following criteria types are supported: + /// + /// + /// + /// + /// always: Matches all queries, regardless of input. + /// + /// + /// + /// + /// contains: Matches that contain this value anywhere in the field meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// + /// exact: Only exact matches meet the criteria defined by the rule. Applicable for string or numerical values. + /// + /// + /// + /// + /// fuzzy: Exact matches or matches within the allowed Levenshtein Edit Distance meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// + /// gt: Matches with a value greater than this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// gte: Matches with a value greater than or equal to this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// lt: Matches with a value less than this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// lte: Matches with a value less than or equal to this value meet the criteria defined by the rule. Only applicable for numerical values. + /// + /// + /// + /// + /// prefix: Matches that start with this value meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// + /// suffix: Matches that end with this value meet the criteria defined by the rule. Only applicable for string values. + /// + /// + /// + /// public QueryRuleCriteriaDescriptor Type(Elastic.Clients.Elasticsearch.QueryRules.QueryRuleCriteriaType type) { TypeValue = type; return Self; } + /// + /// + /// The values to match against the metadata field. + /// Only one value must match for the criteria to be met. + /// It is required for all criteria types except always. + /// + /// public QueryRuleCriteriaDescriptor Values(ICollection? values) { ValuesValue = values; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs index b2263dece8b..d6c376465ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryRules/QueryRulesetListItem.g.cs @@ -31,7 +31,10 @@ public sealed partial class QueryRulesetListItem { /// /// - /// A map of criteria type (e.g. exact) to the number of rules of that type + /// A map of criteria type (for example, exact) to the number of rules of that type. + /// + /// + /// NOTE: The counts in rule_criteria_types_counts may be larger than the value of rule_total_count because a rule may have multiple criteria. /// /// [JsonInclude, JsonPropertyName("rule_criteria_types_counts")] @@ -39,7 +42,7 @@ public sealed partial class QueryRulesetListItem /// /// - /// Ruleset unique identifier + /// A unique identifier for the ruleset. /// /// [JsonInclude, JsonPropertyName("ruleset_id")] @@ -47,7 +50,7 @@ public sealed partial class QueryRulesetListItem /// /// - /// The number of rules associated with this ruleset + /// The number of rules associated with the ruleset. /// /// [JsonInclude, JsonPropertyName("rule_total_count")] @@ -55,7 +58,7 @@ public sealed partial class QueryRulesetListItem /// /// - /// A map of rule type (e.g. pinned) to the number of rules of that type + /// A map of rule type (for example, pinned) to the number of rules of that type. /// /// [JsonInclude, JsonPropertyName("rule_type_counts")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs index 03ba029d9a9..e1d9e9efe76 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Retries.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class Retries { + /// + /// + /// The number of bulk actions retried. + /// + /// [JsonInclude, JsonPropertyName("bulk")] public long Bulk { get; init; } + + /// + /// + /// The number of search actions retried. + /// + /// [JsonInclude, JsonPropertyName("search")] public long Search { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs index bfd22219cc4..14261858c28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupCapabilities.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Rollup; public sealed partial class RollupCapabilities { + /// + /// + /// There can be multiple, independent jobs configured for a single index or index pattern. Each of these jobs may have different configurations, so the API returns a list of all the various configurations available. + /// + /// [JsonInclude, JsonPropertyName("rollup_jobs")] public IReadOnlyCollection RollupJobs { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs index 824f882f957..156bc4d18f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Rollup/RollupJob.g.cs @@ -29,10 +29,29 @@ namespace Elastic.Clients.Elasticsearch.Rollup; public sealed partial class RollupJob { + /// + /// + /// The rollup job configuration. + /// + /// [JsonInclude, JsonPropertyName("config")] public Elastic.Clients.Elasticsearch.Rollup.RollupJobConfiguration Config { get; init; } + + /// + /// + /// Transient statistics about the rollup job, such as how many documents have been processed and how many rollup summary docs have been indexed. + /// These stats are not persisted. + /// If a node is restarted, these stats are reset. + /// + /// [JsonInclude, JsonPropertyName("stats")] public Elastic.Clients.Elasticsearch.Rollup.RollupJobStats Stats { get; init; } + + /// + /// + /// The current status of the indexer for the rollup job. + /// + /// [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.Rollup.RollupJobStatus Status { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs index 7dc4df34f85..645430c37b4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs @@ -35,7 +35,7 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("analytics_collection_name")] - public string? AnalyticsCollectionName { get; init; } + public Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionName { get; set; } /// /// @@ -43,15 +43,15 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } + public ICollection Indices { get; set; } /// /// - /// Search Application name + /// Search Application name. /// /// [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } + public Elastic.Clients.Elasticsearch.Name Name { get; set; } /// /// @@ -59,7 +59,7 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; init; } + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; set; } /// /// @@ -67,5 +67,129 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("updated_at_millis")] - public long UpdatedAtMillis { get; init; } + public long UpdatedAtMillis { get; set; } +} + +public sealed partial class SearchApplicationDescriptor : SerializableDescriptor +{ + internal SearchApplicationDescriptor(Action configure) => configure.Invoke(this); + + public SearchApplicationDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionNameValue { get; set; } + private ICollection IndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor TemplateDescriptor { get; set; } + private Action TemplateDescriptorAction { get; set; } + private long UpdatedAtMillisValue { get; set; } + + /// + /// + /// Analytics collection associated to the Search Application. + /// + /// + public SearchApplicationDescriptor AnalyticsCollectionName(Elastic.Clients.Elasticsearch.Name? analyticsCollectionName) + { + AnalyticsCollectionNameValue = analyticsCollectionName; + return Self; + } + + /// + /// + /// Indices that are part of the Search Application. + /// + /// + public SearchApplicationDescriptor Indices(ICollection indices) + { + IndicesValue = indices; + return Self; + } + + /// + /// + /// Search Application name. + /// + /// + public SearchApplicationDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + NameValue = name; + return Self; + } + + /// + /// + /// Search template to use on search operations. + /// + /// + public SearchApplicationDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public SearchApplicationDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public SearchApplicationDescriptor Template(Action configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + /// + /// + /// Last time the Search Application was updated. + /// + /// + public SearchApplicationDescriptor UpdatedAtMillis(long updatedAtMillis) + { + UpdatedAtMillisValue = updatedAtMillis; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AnalyticsCollectionNameValue is not null) + { + writer.WritePropertyName("analytics_collection_name"); + JsonSerializer.Serialize(writer, AnalyticsCollectionNameValue, options); + } + + writer.WritePropertyName("indices"); + JsonSerializer.Serialize(writer, IndicesValue, options); + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor(TemplateDescriptorAction), options); + } + else if (TemplateValue is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + writer.WritePropertyName("updated_at_millis"); + writer.WriteNumberValue(UpdatedAtMillisValue); + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs new file mode 100644 index 00000000000..f660ec1cfd7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs @@ -0,0 +1,63 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class SearchApplicationListItem +{ + /// + /// + /// Analytics collection associated to the Search Application + /// + /// + [JsonInclude, JsonPropertyName("analytics_collection_name")] + public string? AnalyticsCollectionName { get; init; } + + /// + /// + /// Indices that are part of the Search Application + /// + /// + [JsonInclude, JsonPropertyName("indices")] + public IReadOnlyCollection Indices { get; init; } + + /// + /// + /// Search Application name + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + + /// + /// + /// Last time the Search Application was updated + /// + /// + [JsonInclude, JsonPropertyName("updated_at_millis")] + public long UpdatedAtMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs deleted file mode 100644 index 923ead8239e..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs +++ /dev/null @@ -1,151 +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.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.SearchApplication; - -public sealed partial class SearchApplicationParameters -{ - /// - /// - /// Analytics collection associated to the Search Application. - /// - /// - [JsonInclude, JsonPropertyName("analytics_collection_name")] - public Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionName { get; set; } - - /// - /// - /// Indices that are part of the Search Application. - /// - /// - [JsonInclude, JsonPropertyName("indices")] - public ICollection Indices { get; set; } - - /// - /// - /// Search template to use on search operations. - /// - /// - [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; set; } -} - -public sealed partial class SearchApplicationParametersDescriptor : SerializableDescriptor -{ - internal SearchApplicationParametersDescriptor(Action configure) => configure.Invoke(this); - - public SearchApplicationParametersDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionNameValue { get; set; } - private ICollection IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - - /// - /// - /// Analytics collection associated to the Search Application. - /// - /// - public SearchApplicationParametersDescriptor AnalyticsCollectionName(Elastic.Clients.Elasticsearch.Name? analyticsCollectionName) - { - AnalyticsCollectionNameValue = analyticsCollectionName; - return Self; - } - - /// - /// - /// Indices that are part of the Search Application. - /// - /// - public SearchApplicationParametersDescriptor Indices(ICollection indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Search template to use on search operations. - /// - /// - public SearchApplicationParametersDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public SearchApplicationParametersDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public SearchApplicationParametersDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalyticsCollectionNameValue is not null) - { - writer.WritePropertyName("analytics_collection_name"); - JsonSerializer.Serialize(writer, AnalyticsCollectionNameValue, options); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - writer.WriteEndObject(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs index 1c8c7875f33..a1722cdeb72 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApplicationPrivilegesCheck.g.cs @@ -39,7 +39,8 @@ public sealed partial class ApplicationPrivilegesCheck /// /// - /// A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privileges + /// A list of the privileges that you want to check for the specified resources. + /// It may be either application privilege names or the names of actions that are granted by those privileges /// /// [JsonInclude, JsonPropertyName("privileges")] @@ -47,7 +48,7 @@ public sealed partial class ApplicationPrivilegesCheck /// /// - /// A list of resource names against which the privileges should be checked + /// A list of resource names against which the privileges should be checked. /// /// [JsonInclude, JsonPropertyName("resources")] @@ -79,7 +80,8 @@ public ApplicationPrivilegesCheckDescriptor Application(string application) /// /// - /// A list of the privileges that you want to check for the specified resources. May be either application privilege names, or the names of actions that are granted by those privileges + /// A list of the privileges that you want to check for the specified resources. + /// It may be either application privilege names or the names of actions that are granted by those privileges /// /// public ApplicationPrivilegesCheckDescriptor Privileges(ICollection privileges) @@ -90,7 +92,7 @@ public ApplicationPrivilegesCheckDescriptor Privileges(ICollection privi /// /// - /// A list of resource names against which the privileges should be checked + /// A list of resource names against which the privileges should be checked. /// /// public ApplicationPrivilegesCheckDescriptor Resources(ICollection resources) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs new file mode 100644 index 00000000000..ce5f188a6f8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Authentication.g.cs @@ -0,0 +1,54 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class Authentication +{ + [JsonInclude, JsonPropertyName("api_key")] + public IReadOnlyDictionary? ApiKey { get; init; } + [JsonInclude, JsonPropertyName("authentication_realm")] + public Elastic.Clients.Elasticsearch.Security.AuthenticationRealm AuthenticationRealm { get; init; } + [JsonInclude, JsonPropertyName("authentication_type")] + public string AuthenticationType { get; init; } + [JsonInclude, JsonPropertyName("email")] + public string? Email { get; init; } + [JsonInclude, JsonPropertyName("enabled")] + public bool Enabled { get; init; } + [JsonInclude, JsonPropertyName("full_name")] + public string? FullName { get; init; } + [JsonInclude, JsonPropertyName("lookup_realm")] + public Elastic.Clients.Elasticsearch.Security.AuthenticationRealm LookupRealm { get; init; } + [JsonInclude, JsonPropertyName("metadata")] + public IReadOnlyDictionary Metadata { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection Roles { get; init; } + [JsonInclude, JsonPropertyName("token")] + public IReadOnlyDictionary? Token { get; init; } + [JsonInclude, JsonPropertyName("username")] + public string Username { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs new file mode 100644 index 00000000000..818cba15063 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticationRealm.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class AuthenticationRealm +{ + [JsonInclude, JsonPropertyName("domain")] + public string? Domain { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs index 1014fb194b1..d88bfbbc6bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/GrantApiKey.g.cs @@ -52,7 +52,6 @@ public sealed partial class GrantApiKey /// /// /// The role descriptors for this API key. - /// This parameter is optional. /// When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token. /// @@ -108,7 +107,6 @@ public GrantApiKeyDescriptor Name(Elastic.Clients.Elasticsearch.Name /// /// /// The role descriptors for this API key. - /// This parameter is optional. /// When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token. /// @@ -192,7 +190,6 @@ public GrantApiKeyDescriptor Name(Elastic.Clients.Elasticsearch.Name name) /// /// /// The role descriptors for this API key. - /// This parameter is optional. /// When it is not specified or is an empty array, the API key has a point in time snapshot of permissions of the specified user or access token. /// If you supply role descriptors, the resultant permissions are an intersection of API keys permissions and the permissions of the user or access token. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs index c194b947807..c184dd519c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Hint.g.cs @@ -41,7 +41,7 @@ public sealed partial class Hint /// /// - /// A list of Profile UIDs to match against. + /// A list of profile UIDs to match against. /// /// [JsonInclude, JsonPropertyName("uids")] @@ -74,7 +74,7 @@ public HintDescriptor Labels(Func /// - /// A list of Profile UIDs to match against. + /// A list of profile UIDs to match against. /// /// public HintDescriptor Uids(ICollection? uids) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs index 1738636adc9..c5bcc5bb5bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndexPrivilegesCheck.g.cs @@ -31,9 +31,9 @@ public sealed partial class IndexPrivilegesCheck { /// /// - /// This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. + /// This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. /// Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. - /// If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices. + /// If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices. /// /// [JsonInclude, JsonPropertyName("allow_restricted_indices")] @@ -70,9 +70,9 @@ public IndexPrivilegesCheckDescriptor() : base() /// /// - /// This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. + /// This needs to be set to true (default is false) if using wildcards or regexps for patterns that cover restricted indices. /// Implicitly, restricted indices do not match index patterns because restricted indices usually have limited privileges and including them in pattern tests would render most such tests false. - /// If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices. + /// If restricted indices are explicitly included in the names list, privileges will be checked against them regardless of the value of allow_restricted_indices. /// /// public IndexPrivilegesCheckDescriptor AllowRestrictedIndices(bool? allowRestrictedIndices = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs index 251936ca047..4949c3a2107 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/KibanaToken.g.cs @@ -29,8 +29,20 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class KibanaToken { + /// + /// + /// The name of the bearer token for the elastic/kibana service account. + /// + /// [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } + + /// + /// + /// The value of the bearer token for the elastic/kibana service account. + /// Use this value to authenticate the service account with Elasticsearch. + /// + /// [JsonInclude, JsonPropertyName("value")] public string Value { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs index e137275de92..cbec368b368 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/QueryRole.g.cs @@ -194,7 +194,8 @@ public sealed partial class QueryRole /// /// - /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// A list of cluster permissions for remote clusters. + /// NOTE: This is limited a subset of the cluster permissions. /// /// public IReadOnlyCollection? RemoteCluster { get; init; } @@ -215,7 +216,9 @@ public sealed partial class QueryRole /// /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. + /// A list of users that the API keys can impersonate. + /// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. + /// For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. /// /// public IReadOnlyCollection? RunAs { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs new file mode 100644 index 00000000000..1b0ea2f3c79 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteUserIndicesPrivileges.g.cs @@ -0,0 +1,74 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class RemoteUserIndicesPrivileges +{ + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + [JsonInclude, JsonPropertyName("allow_restricted_indices")] + public bool AllowRestrictedIndices { get; init; } + [JsonInclude, JsonPropertyName("clusters")] + public IReadOnlyCollection Clusters { get; init; } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + [JsonInclude, JsonPropertyName("field_security")] + public IReadOnlyCollection? FieldSecurity { get; init; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + [JsonInclude, JsonPropertyName("names")] + [SingleOrManyCollectionConverter(typeof(string))] + public IReadOnlyCollection Names { get; init; } + + /// + /// + /// The index level privileges that owners of the role have on the specified indices. + /// + /// + [JsonInclude, JsonPropertyName("privileges")] + public IReadOnlyCollection Privileges { get; init; } + + /// + /// + /// Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role. + /// + /// + [JsonInclude, JsonPropertyName("query")] + public object? Query { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs index 0f48846bd95..bedf71ce381 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Restriction.g.cs @@ -29,6 +29,12 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class Restriction { + /// + /// + /// A list of workflows to which the API key is restricted. + /// NOTE: In order to use a role restriction, an API key must be created with a single role descriptor. + /// + /// [JsonInclude, JsonPropertyName("workflows")] public ICollection Workflows { get; set; } } @@ -43,6 +49,12 @@ public RestrictionDescriptor() : base() private ICollection WorkflowsValue { get; set; } + /// + /// + /// A list of workflows to which the API key is restricted. + /// NOTE: In order to use a role restriction, an API key must be created with a single role descriptor. + /// + /// public RestrictionDescriptor Workflows(ICollection workflows) { WorkflowsValue = workflows; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs index feecdc34beb..8804eee441c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/Role.g.cs @@ -33,6 +33,8 @@ public sealed partial class Role public IReadOnlyCollection Applications { get; init; } [JsonInclude, JsonPropertyName("cluster")] public IReadOnlyCollection Cluster { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; init; } [JsonInclude, JsonPropertyName("global")] public IReadOnlyDictionary>>>? Global { get; init; } [JsonInclude, JsonPropertyName("indices")] @@ -46,7 +48,7 @@ public sealed partial class Role [JsonInclude, JsonPropertyName("role_templates")] public IReadOnlyCollection? RoleTemplates { get; init; } [JsonInclude, JsonPropertyName("run_as")] - public IReadOnlyCollection RunAs { get; init; } + public IReadOnlyCollection? RunAs { get; init; } [JsonInclude, JsonPropertyName("transient_metadata")] public IReadOnlyDictionary? TransientMetadata { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs index 3eaf8158d4c..bb8f8688391 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptor.g.cs @@ -230,7 +230,8 @@ public sealed partial class RoleDescriptor /// /// - /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// A list of cluster permissions for remote clusters. + /// NOTE: This is limited a subset of the cluster permissions. /// /// public ICollection? RemoteCluster { get; set; } @@ -251,7 +252,9 @@ public sealed partial class RoleDescriptor /// /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. + /// A list of users that the API keys can impersonate. + /// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. + /// For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. /// /// public ICollection? RunAs { get; set; } @@ -453,7 +456,8 @@ public RoleDescriptorDescriptor Metadata(Func /// - /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// A list of cluster permissions for remote clusters. + /// NOTE: This is limited a subset of the cluster permissions. /// /// public RoleDescriptorDescriptor RemoteCluster(ICollection? remoteCluster) @@ -564,7 +568,9 @@ public RoleDescriptorDescriptor Restriction(Action /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. + /// A list of users that the API keys can impersonate. + /// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. + /// For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. /// /// public RoleDescriptorDescriptor RunAs(ICollection? runAs) @@ -980,7 +986,8 @@ public RoleDescriptorDescriptor Metadata(Func, /// /// - /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// A list of cluster permissions for remote clusters. + /// NOTE: This is limited a subset of the cluster permissions. /// /// public RoleDescriptorDescriptor RemoteCluster(ICollection? remoteCluster) @@ -1091,7 +1098,9 @@ public RoleDescriptorDescriptor Restriction(Action /// - /// A list of users that the API keys can impersonate. Note: in Serverless, the run-as feature is disabled. For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. + /// A list of users that the API keys can impersonate. + /// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. + /// For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. /// /// public RoleDescriptorDescriptor RunAs(ICollection? runAs) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs index 0cbba91ee67..0ce7e0a1c83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs @@ -145,7 +145,7 @@ public sealed partial class RoleDescriptorRead /// /// - /// Optional description of the role descriptor + /// An optional description of the role descriptor. /// /// public string? Description { get; init; } @@ -173,7 +173,8 @@ public sealed partial class RoleDescriptorRead /// /// - /// A list of cluster permissions for remote clusters. Note - this is limited a subset of the cluster permissions. + /// A list of cluster permissions for remote clusters. + /// NOTE: This is limited a subset of the cluster permissions. /// /// public IReadOnlyCollection? RemoteCluster { get; init; } @@ -187,7 +188,7 @@ public sealed partial class RoleDescriptorRead /// /// - /// Restriction for when the role descriptor is allowed to be effective. + /// A restriction for when the role descriptor is allowed to be effective. /// /// public Elastic.Clients.Elasticsearch.Security.Restriction? Restriction { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs new file mode 100644 index 00000000000..6fa6be1e3cf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/SecuritySettings.g.cs @@ -0,0 +1,152 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class SecuritySettings +{ + [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Index { get; set; } +} + +public sealed partial class SecuritySettingsDescriptor : SerializableDescriptor> +{ + internal SecuritySettingsDescriptor(Action> configure) => configure.Invoke(this); + + public SecuritySettingsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor IndexDescriptor { get; set; } + private Action> IndexDescriptorAction { get; set; } + + public SecuritySettingsDescriptor Index(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? index) + { + IndexDescriptor = null; + IndexDescriptorAction = null; + IndexValue = index; + return Self; + } + + public SecuritySettingsDescriptor Index(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + IndexValue = null; + IndexDescriptorAction = null; + IndexDescriptor = descriptor; + return Self; + } + + public SecuritySettingsDescriptor Index(Action> configure) + { + IndexValue = null; + IndexDescriptor = null; + IndexDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IndexDescriptor is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexDescriptor, options); + } + else if (IndexDescriptorAction is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(IndexDescriptorAction), options); + } + else if (IndexValue is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class SecuritySettingsDescriptor : SerializableDescriptor +{ + internal SecuritySettingsDescriptor(Action configure) => configure.Invoke(this); + + public SecuritySettingsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor IndexDescriptor { get; set; } + private Action IndexDescriptorAction { get; set; } + + public SecuritySettingsDescriptor Index(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? index) + { + IndexDescriptor = null; + IndexDescriptorAction = null; + IndexValue = index; + return Self; + } + + public SecuritySettingsDescriptor Index(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + IndexValue = null; + IndexDescriptorAction = null; + IndexDescriptor = descriptor; + return Self; + } + + public SecuritySettingsDescriptor Index(Action configure) + { + IndexValue = null; + IndexDescriptor = null; + IndexDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IndexDescriptor is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexDescriptor, options); + } + else if (IndexDescriptorAction is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(IndexDescriptorAction), options); + } + else if (IndexValue is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs index 81e8acb34b8..bd3a30849f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ShardStatistics.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class ShardStatistics { + /// + /// + /// The number of shards the operation or search attempted to run on but failed. + /// + /// [JsonInclude, JsonPropertyName("failed")] public int Failed { get; init; } [JsonInclude, JsonPropertyName("failures")] @@ -38,7 +43,7 @@ public sealed partial class ShardStatistics /// /// - /// Indicates how many shards have successfully run the search. + /// The number of shards the operation or search succeeded on. /// /// [JsonInclude, JsonPropertyName("successful")] @@ -46,7 +51,7 @@ public sealed partial class ShardStatistics /// /// - /// Indicates how many shards the search will run on overall. + /// The number of shards the operation or search will run on overall. /// /// [JsonInclude, JsonPropertyName("total")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs new file mode 100644 index 00000000000..42516255062 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/IngestDocumentSimulation.g.cs @@ -0,0 +1,170 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Simulate; + +internal sealed partial class IngestDocumentSimulationConverter : JsonConverter +{ + public override IngestDocumentSimulation Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException("Unexpected JSON detected."); + Elastic.Clients.Elasticsearch.ErrorCause? error = default; + IReadOnlyCollection executedPipelines = default; + string id = default; + IReadOnlyCollection>? ignoredFields = default; + string index = default; + IReadOnlyDictionary source = default; + long version = default; + Dictionary additionalProperties = null; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType == JsonTokenType.PropertyName) + { + var property = reader.GetString(); + if (property == "error") + { + error = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "executed_pipelines") + { + executedPipelines = JsonSerializer.Deserialize>(ref reader, options); + continue; + } + + if (property == "_id") + { + id = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "ignored_fields") + { + ignoredFields = JsonSerializer.Deserialize>?>(ref reader, options); + continue; + } + + if (property == "_index") + { + index = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "_source") + { + source = JsonSerializer.Deserialize>(ref reader, options); + continue; + } + + if (property == "_version") + { + version = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + additionalProperties ??= new Dictionary(); + var additionalValue = JsonSerializer.Deserialize(ref reader, options); + additionalProperties.Add(property, additionalValue); + } + } + + return new IngestDocumentSimulation { Error = error, ExecutedPipelines = executedPipelines, Id = id, IgnoredFields = ignoredFields, Index = index, Metadata = additionalProperties, Source = source, Version = version }; + } + + public override void Write(Utf8JsonWriter writer, IngestDocumentSimulation value, JsonSerializerOptions options) + { + throw new NotImplementedException("'IngestDocumentSimulation' is a readonly type, used only on responses and does not support being written to JSON."); + } +} + +/// +/// +/// The results of ingest simulation on a single document. The _source of the document contains +/// the results after running all pipelines listed in executed_pipelines on the document. The +/// list of executed pipelines is derived from the pipelines that would be executed if this +/// document had been ingested into _index. +/// +/// +[JsonConverter(typeof(IngestDocumentSimulationConverter))] +public sealed partial class IngestDocumentSimulation +{ + /// + /// + /// Any error resulting from simulatng ingest on this doc. This can be an error generated by + /// executing a processor, or a mapping validation error when simulating indexing the resulting + /// doc. + /// + /// + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; init; } + + /// + /// + /// A list of the names of the pipelines executed on this document. + /// + /// + public IReadOnlyCollection ExecutedPipelines { get; init; } + + /// + /// + /// Identifier for the document. + /// + /// + public string Id { get; init; } + + /// + /// + /// A list of the fields that would be ignored at the indexing step. For example, a field whose + /// value is larger than the allowed limit would make it through all of the pipelines, but + /// would not be indexed into Elasticsearch. + /// + /// + public IReadOnlyCollection>? IgnoredFields { get; init; } + + /// + /// + /// Name of the index that the document would be indexed into if this were not a simulation. + /// + /// + public string Index { get; init; } + + /// + /// + /// Additional metadata + /// + /// + public IReadOnlyDictionary Metadata { get; init; } + + /// + /// + /// JSON body for the document. + /// + /// + public IReadOnlyDictionary Source { get; init; } + public long Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs similarity index 81% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs index e104bbb7ddb..c1e3ae9f062 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/HealthReport/FileSettingsIndicatorDetails.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Simulate/SimulateIngestDocumentResult.g.cs @@ -25,12 +25,10 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Core.HealthReport; +namespace Elastic.Clients.Elasticsearch.Simulate; -public sealed partial class FileSettingsIndicatorDetails +public sealed partial class SimulateIngestDocumentResult { - [JsonInclude, JsonPropertyName("failure_streak")] - public long FailureStreak { get; init; } - [JsonInclude, JsonPropertyName("most_recent_failure")] - public string MostRecentFailure { get; init; } + [JsonInclude, JsonPropertyName("doc")] + public Elastic.Clients.Elasticsearch.Simulate.IngestDocumentSimulation? Doc { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs new file mode 100644 index 00000000000..cb468018d0d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/BlobDetails.g.cs @@ -0,0 +1,90 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class BlobDetails +{ + /// + /// + /// The name of the blob. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + + /// + /// + /// Indicates whether the blob was overwritten while the read operations were ongoing. + /// /** + /// + /// + [JsonInclude, JsonPropertyName("overwritten")] + public bool Overwritten { get; init; } + [JsonInclude, JsonPropertyName("read_early")] + public bool ReadEarly { get; init; } + + /// + /// + /// The position, in bytes, at which read operations completed. + /// + /// + [JsonInclude, JsonPropertyName("read_end")] + public long ReadEnd { get; init; } + + /// + /// + /// A description of every read operation performed on the blob. + /// + /// + [JsonInclude, JsonPropertyName("reads")] + public Elastic.Clients.Elasticsearch.Snapshot.ReadBlobDetails Reads { get; init; } + + /// + /// + /// The position, in bytes, at which read operations started. + /// + /// + [JsonInclude, JsonPropertyName("read_start")] + public long ReadStart { get; init; } + + /// + /// + /// The size of the blob. + /// + /// + [JsonInclude, JsonPropertyName("size")] + public Elastic.Clients.Elasticsearch.ByteSize Size { get; init; } + + /// + /// + /// The size of the blob in bytes. + /// + /// + [JsonInclude, JsonPropertyName("size_bytes")] + public long SizeBytes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs new file mode 100644 index 00000000000..f0b69f04947 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/DetailsInfo.g.cs @@ -0,0 +1,97 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class DetailsInfo +{ + /// + /// + /// A description of the blob that was written and read. + /// + /// + [JsonInclude, JsonPropertyName("blob")] + public Elastic.Clients.Elasticsearch.Snapshot.BlobDetails Blob { get; init; } + + /// + /// + /// The elapsed time spent overwriting the blob. + /// If the blob was not overwritten, this information is omitted. + /// + /// + [JsonInclude, JsonPropertyName("overwrite_elapsed")] + public Elastic.Clients.Elasticsearch.Duration? OverwriteElapsed { get; init; } + + /// + /// + /// The elapsed time spent overwriting the blob, in nanoseconds. + /// If the blob was not overwritten, this information is omitted. + /// + /// + [JsonInclude, JsonPropertyName("overwrite_elapsed_nanos")] + public long? OverwriteElapsedNanos { get; init; } + + /// + /// + /// The elapsed time spent writing the blob. + /// + /// + [JsonInclude, JsonPropertyName("write_elapsed")] + public Elastic.Clients.Elasticsearch.Duration WriteElapsed { get; init; } + + /// + /// + /// The elapsed time spent writing the blob, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("write_elapsed_nanos")] + public long WriteElapsedNanos { get; init; } + + /// + /// + /// The node which wrote the blob and coordinated the read operations. + /// + /// + [JsonInclude, JsonPropertyName("writer_node")] + public Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo WriterNode { get; init; } + + /// + /// + /// The length of time spent waiting for the max_snapshot_bytes_per_sec (or indices.recovery.max_bytes_per_sec if the recovery settings for managed services are set) throttle while writing the blob. + /// + /// + [JsonInclude, JsonPropertyName("write_throttled")] + public Elastic.Clients.Elasticsearch.Duration WriteThrottled { get; init; } + + /// + /// + /// The length of time spent waiting for the max_snapshot_bytes_per_sec (or indices.recovery.max_bytes_per_sec if the recovery settings for managed services are set) throttle while writing the blob, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("write_throttled_nanos")] + public long WriteThrottledNanos { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs new file mode 100644 index 00000000000..17acefa6cf2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadBlobDetails.g.cs @@ -0,0 +1,110 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class ReadBlobDetails +{ + /// + /// + /// Indicates whether the read operation may have started before the write operation was complete. + /// + /// + [JsonInclude, JsonPropertyName("before_write_complete")] + public bool? BeforeWriteComplete { get; init; } + + /// + /// + /// The length of time spent reading the blob. + /// If the blob was not found, this detail is omitted. + /// + /// + [JsonInclude, JsonPropertyName("elapsed")] + public Elastic.Clients.Elasticsearch.Duration? Elapsed { get; init; } + + /// + /// + /// The length of time spent reading the blob, in nanoseconds. + /// If the blob was not found, this detail is omitted. + /// + /// + [JsonInclude, JsonPropertyName("elapsed_nanos")] + public long? ElapsedNanos { get; init; } + + /// + /// + /// The length of time waiting for the first byte of the read operation to be received. + /// If the blob was not found, this detail is omitted. + /// + /// + [JsonInclude, JsonPropertyName("first_byte_time")] + public Elastic.Clients.Elasticsearch.Duration? FirstByteTime { get; init; } + + /// + /// + /// The length of time waiting for the first byte of the read operation to be received, in nanoseconds. + /// If the blob was not found, this detail is omitted. + /// + /// + [JsonInclude, JsonPropertyName("first_byte_time_nanos")] + public long FirstByteTimeNanos { get; init; } + + /// + /// + /// Indicates whether the blob was found by the read operation. + /// If the read was started before the write completed or the write was ended before completion, it might be false. + /// + /// + [JsonInclude, JsonPropertyName("found")] + public bool Found { get; init; } + + /// + /// + /// The node that performed the read operation. + /// + /// + [JsonInclude, JsonPropertyName("node")] + public Elastic.Clients.Elasticsearch.Snapshot.SnapshotNodeInfo Node { get; init; } + + /// + /// + /// The length of time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles during the read of the blob. + /// If the blob was not found, this detail is omitted. + /// + /// + [JsonInclude, JsonPropertyName("throttled")] + public Elastic.Clients.Elasticsearch.Duration? Throttled { get; init; } + + /// + /// + /// The length of time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles during the read of the blob, in nanoseconds. + /// If the blob was not found, this detail is omitted. + /// + /// + [JsonInclude, JsonPropertyName("throttled_nanos")] + public long? ThrottledNanos { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs new file mode 100644 index 00000000000..03a0d2e7847 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/ReadSummaryInfo.g.cs @@ -0,0 +1,119 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class ReadSummaryInfo +{ + /// + /// + /// The number of read operations performed in the test. + /// + /// + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + + /// + /// + /// The maximum time spent waiting for the first byte of any read request to be received. + /// + /// + [JsonInclude, JsonPropertyName("max_wait")] + public Elastic.Clients.Elasticsearch.Duration MaxWait { get; init; } + + /// + /// + /// The maximum time spent waiting for the first byte of any read request to be received, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("max_wait_nanos")] + public long MaxWaitNanos { get; init; } + + /// + /// + /// The total elapsed time spent on reading blobs in the test. + /// + /// + [JsonInclude, JsonPropertyName("total_elapsed")] + public Elastic.Clients.Elasticsearch.Duration TotalElapsed { get; init; } + + /// + /// + /// The total elapsed time spent on reading blobs in the test, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("total_elapsed_nanos")] + public long TotalElapsedNanos { get; init; } + + /// + /// + /// The total size of all the blobs or partial blobs read in the test. + /// + /// + [JsonInclude, JsonPropertyName("total_size")] + public Elastic.Clients.Elasticsearch.ByteSize TotalSize { get; init; } + + /// + /// + /// The total size of all the blobs or partial blobs read in the test, in bytes. + /// + /// + [JsonInclude, JsonPropertyName("total_size_bytes")] + public long TotalSizeBytes { get; init; } + + /// + /// + /// The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles. + /// + /// + [JsonInclude, JsonPropertyName("total_throttled")] + public Elastic.Clients.Elasticsearch.Duration TotalThrottled { get; init; } + + /// + /// + /// The total time spent waiting due to the max_restore_bytes_per_sec or indices.recovery.max_bytes_per_sec throttles, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("total_throttled_nanos")] + public long TotalThrottledNanos { get; init; } + + /// + /// + /// The total time spent waiting for the first byte of each read request to be received. + /// + /// + [JsonInclude, JsonPropertyName("total_wait")] + public Elastic.Clients.Elasticsearch.Duration TotalWait { get; init; } + + /// + /// + /// The total time spent waiting for the first byte of each read request to be received, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("total_wait_nanos")] + public long TotalWaitNanos { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs similarity index 86% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs index 0f97bac6e7d..5f9098ecda0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Nodes/NodeReloadError.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotNodeInfo.g.cs @@ -25,12 +25,12 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Nodes; +namespace Elastic.Clients.Elasticsearch.Snapshot; -public sealed partial class NodeReloadError +public sealed partial class SnapshotNodeInfo { + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } - [JsonInclude, JsonPropertyName("reload_exception")] - public Elastic.Clients.Elasticsearch.ErrorCause? ReloadException { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs new file mode 100644 index 00000000000..ae1877ae6f4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SummaryInfo.g.cs @@ -0,0 +1,47 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class SummaryInfo +{ + /// + /// + /// A collection of statistics that summarise the results of the read operations in the test. + /// + /// + [JsonInclude, JsonPropertyName("read")] + public Elastic.Clients.Elasticsearch.Snapshot.ReadSummaryInfo Read { get; init; } + + /// + /// + /// A collection of statistics that summarise the results of the write operations in the test. + /// + /// + [JsonInclude, JsonPropertyName("write")] + public Elastic.Clients.Elasticsearch.Snapshot.WriteSummaryInfo Write { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs new file mode 100644 index 00000000000..0af04ba64da --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/WriteSummaryInfo.g.cs @@ -0,0 +1,87 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Snapshot; + +public sealed partial class WriteSummaryInfo +{ + /// + /// + /// The number of write operations performed in the test. + /// + /// + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + + /// + /// + /// The total elapsed time spent on writing blobs in the test. + /// + /// + [JsonInclude, JsonPropertyName("total_elapsed")] + public Elastic.Clients.Elasticsearch.Duration TotalElapsed { get; init; } + + /// + /// + /// The total elapsed time spent on writing blobs in the test, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("total_elapsed_nanos")] + public long TotalElapsedNanos { get; init; } + + /// + /// + /// The total size of all the blobs written in the test. + /// + /// + [JsonInclude, JsonPropertyName("total_size")] + public Elastic.Clients.Elasticsearch.ByteSize TotalSize { get; init; } + + /// + /// + /// The total size of all the blobs written in the test, in bytes. + /// + /// + [JsonInclude, JsonPropertyName("total_size_bytes")] + public long TotalSizeBytes { get; init; } + + /// + /// + /// The total time spent waiting due to the max_snapshot_bytes_per_sec throttle. + /// + /// + [JsonInclude, JsonPropertyName("total_throttled")] + public Elastic.Clients.Elasticsearch.Duration TotalThrottled { get; init; } + + /// + /// + /// The total time spent waiting due to the max_snapshot_bytes_per_sec throttle, in nanoseconds. + /// + /// + [JsonInclude, JsonPropertyName("total_throttled_nanos")] + public long TotalThrottledNanos { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs index e502de544fb..f4a9896f7d8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SnapshotLifecycleManagement/SnapshotLifecycle.g.cs @@ -35,10 +35,22 @@ public sealed partial class SnapshotLifecycle public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Invocation? LastFailure { get; init; } [JsonInclude, JsonPropertyName("last_success")] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Invocation? LastSuccess { get; init; } + + /// + /// + /// The last time the policy was modified. + /// + /// [JsonInclude, JsonPropertyName("modified_date")] public DateTimeOffset? ModifiedDate { get; init; } [JsonInclude, JsonPropertyName("modified_date_millis")] public long ModifiedDateMillis { get; init; } + + /// + /// + /// The next time the policy will run. + /// + /// [JsonInclude, JsonPropertyName("next_execution")] public DateTimeOffset? NextExecution { get; init; } [JsonInclude, JsonPropertyName("next_execution_millis")] @@ -47,6 +59,13 @@ public sealed partial class SnapshotLifecycle public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.SlmPolicy Policy { get; init; } [JsonInclude, JsonPropertyName("stats")] public Elastic.Clients.Elasticsearch.SnapshotLifecycleManagement.Statistics Stats { get; init; } + + /// + /// + /// The version of the snapshot policy. + /// Only the latest version is stored and incremented when the policy is updated. + /// + /// [JsonInclude, JsonPropertyName("version")] public long Version { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs index d7551125245..60688ac17db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StoredScript.g.cs @@ -31,7 +31,8 @@ public sealed partial class StoredScript { /// /// - /// Specifies the language the script is written in. + /// The language the script is written in. + /// For serach templates, use mustache. /// /// [JsonInclude, JsonPropertyName("lang")] @@ -42,6 +43,7 @@ public sealed partial class StoredScript /// /// /// The script source. + /// For search templates, an object containing the search template. /// /// [JsonInclude, JsonPropertyName("source")] @@ -62,7 +64,8 @@ public StoredScriptDescriptor() : base() /// /// - /// Specifies the language the script is written in. + /// The language the script is written in. + /// For serach templates, use mustache. /// /// public StoredScriptDescriptor Language(Elastic.Clients.Elasticsearch.ScriptLanguage language) @@ -80,6 +83,7 @@ public StoredScriptDescriptor Options(Func, Flu /// /// /// The script source. + /// For search templates, an object containing the search template. /// /// public StoredScriptDescriptor Source(string source) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs index 91bfd2db8bd..b17b72d196f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRule.g.cs @@ -31,7 +31,8 @@ public sealed partial class SynonymRule { /// /// - /// Synonym Rule identifier + /// The identifier for the synonym rule. + /// If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch. /// /// [JsonInclude, JsonPropertyName("id")] @@ -39,7 +40,7 @@ public sealed partial class SynonymRule /// /// - /// Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 + /// The synonyms that conform the synonym rule in Solr format. /// /// [JsonInclude, JsonPropertyName("synonyms")] @@ -59,7 +60,8 @@ public SynonymRuleDescriptor() : base() /// /// - /// Synonym Rule identifier + /// The identifier for the synonym rule. + /// If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch. /// /// public SynonymRuleDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) @@ -70,7 +72,7 @@ public SynonymRuleDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) /// /// - /// Synonyms, in Solr format, that conform the synonym rule. See https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-synonym-graph-tokenfilter.html#_solr_synonyms_2 + /// The synonyms that conform the synonym rule in Solr format. /// /// public SynonymRuleDescriptor Synonyms(string synonyms) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs index b684b4369bc..be0d3fda2f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/IlmPolicyStatistics.g.cs @@ -32,5 +32,5 @@ public sealed partial class IlmPolicyStatistics [JsonInclude, JsonPropertyName("indices_managed")] public int IndicesManaged { get; init; } [JsonInclude, JsonPropertyName("phases")] - public Elastic.Clients.Elasticsearch.IndexLifecycleManagement.Phases Phases { get; init; } + public Elastic.Clients.Elasticsearch.Xpack.Phases Phases { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs new file mode 100644 index 00000000000..9215ae75778 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phase.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Xpack; + +public sealed partial class Phase +{ + [JsonInclude, JsonPropertyName("actions")] + public IReadOnlyCollection Actions { get; init; } + [JsonInclude, JsonPropertyName("min_age")] + public long MinAge { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs new file mode 100644 index 00000000000..8b1328b0b0c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Xpack/Phases.g.cs @@ -0,0 +1,42 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Xpack; + +public sealed partial class Phases +{ + [JsonInclude, JsonPropertyName("cold")] + public Elastic.Clients.Elasticsearch.Xpack.Phase? Cold { get; init; } + [JsonInclude, JsonPropertyName("delete")] + public Elastic.Clients.Elasticsearch.Xpack.Phase? Delete { get; init; } + [JsonInclude, JsonPropertyName("frozen")] + public Elastic.Clients.Elasticsearch.Xpack.Phase? Frozen { get; init; } + [JsonInclude, JsonPropertyName("hot")] + public Elastic.Clients.Elasticsearch.Xpack.Phase? Hot { get; init; } + [JsonInclude, JsonPropertyName("warm")] + public Elastic.Clients.Elasticsearch.Xpack.Phase? Warm { get; init; } +} \ No newline at end of file diff --git a/src/Playground/Playground.csproj b/src/Playground/Playground.csproj index 863f7d2015e..eace8526b9c 100644 --- a/src/Playground/Playground.csproj +++ b/src/Playground/Playground.csproj @@ -10,7 +10,7 @@ - + From 899ccaedf05b02ee3d901243e54c061a0c80e605 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 11:49:26 +0100 Subject: [PATCH 24/28] Regenerate client using the latest specification (#8476) (#8477) Co-authored-by: Florian Bernd --- .../_Generated/Types/Enums/Enums.Mapping.g.cs | 292 ++++++++++++++++++ .../Mapping/DenseVectorIndexOptions.g.cs | 89 +++++- .../Types/Mapping/DenseVectorProperty.g.cs | 175 +++++++++-- 3 files changed, 534 insertions(+), 22 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index 3cde2b5248d..97f25205c22 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -28,6 +28,298 @@ namespace Elastic.Clients.Elasticsearch.Mapping; +[JsonConverter(typeof(DenseVectorElementTypeConverter))] +public enum DenseVectorElementType +{ + /// + /// + /// Indexes a 4-byte floating-point value per dimension. + /// + /// + [EnumMember(Value = "float")] + Float, + /// + /// + /// Indexes a 1-byte integer value per dimension. + /// + /// + [EnumMember(Value = "byte")] + Byte, + /// + /// + /// Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support + /// bit vectors. + /// + /// + /// NOTE: when using bit, the number of dimensions must be a multiple of 8 and must represent the number of bits. + /// + /// + [EnumMember(Value = "bit")] + Bit +} + +internal sealed class DenseVectorElementTypeConverter : JsonConverter +{ + public override DenseVectorElementType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "float": + return DenseVectorElementType.Float; + case "byte": + return DenseVectorElementType.Byte; + case "bit": + return DenseVectorElementType.Bit; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorElementType value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorElementType.Float: + writer.WriteStringValue("float"); + return; + case DenseVectorElementType.Byte: + writer.WriteStringValue("byte"); + return; + case DenseVectorElementType.Bit: + writer.WriteStringValue("bit"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DenseVectorIndexOptionsTypeConverter))] +public enum DenseVectorIndexOptionsType +{ + /// + /// + /// The default index type for float vectors. This utilizes the HNSW algorithm in addition to automatically scalar + /// quantization for scalable approximate kNN search with element_type of float. + /// + /// + /// This can reduce the memory footprint by 4x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "int8_hnsw")] + Int8Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports + /// element_type of float. + /// + /// + [EnumMember(Value = "int8_flat")] + Int8Flat, + /// + /// + /// This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN + /// search with element_type of float. + /// + /// + /// This can reduce the memory footprint by 8x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "int4_hnsw")] + Int4Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization. + /// Only supports element_type of float. + /// + /// + [EnumMember(Value = "int4_flat")] + Int4Flat, + /// + /// + /// This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all element_type values. + /// + /// + [EnumMember(Value = "hnsw")] + Hnsw, + /// + /// + /// This utilizes a brute-force search algorithm for exact kNN search. This supports all element_type values. + /// + /// + [EnumMember(Value = "flat")] + Flat +} + +internal sealed class DenseVectorIndexOptionsTypeConverter : JsonConverter +{ + public override DenseVectorIndexOptionsType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "int8_hnsw": + return DenseVectorIndexOptionsType.Int8Hnsw; + case "int8_flat": + return DenseVectorIndexOptionsType.Int8Flat; + case "int4_hnsw": + return DenseVectorIndexOptionsType.Int4Hnsw; + case "int4_flat": + return DenseVectorIndexOptionsType.Int4Flat; + case "hnsw": + return DenseVectorIndexOptionsType.Hnsw; + case "flat": + return DenseVectorIndexOptionsType.Flat; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorIndexOptionsType value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorIndexOptionsType.Int8Hnsw: + writer.WriteStringValue("int8_hnsw"); + return; + case DenseVectorIndexOptionsType.Int8Flat: + writer.WriteStringValue("int8_flat"); + return; + case DenseVectorIndexOptionsType.Int4Hnsw: + writer.WriteStringValue("int4_hnsw"); + return; + case DenseVectorIndexOptionsType.Int4Flat: + writer.WriteStringValue("int4_flat"); + return; + case DenseVectorIndexOptionsType.Hnsw: + writer.WriteStringValue("hnsw"); + return; + case DenseVectorIndexOptionsType.Flat: + writer.WriteStringValue("flat"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DenseVectorSimilarityConverter))] +public enum DenseVectorSimilarity +{ + /// + /// + /// Computes the maximum inner product of two vectors. This is similar to dot_product, but doesn't require vectors + /// to be normalized. This means that each vector’s magnitude can significantly effect the score. + /// + /// + /// The document _score is adjusted to prevent negative values. For max_inner_product values < 0, the _score + /// is 1 / (1 + -1 * max_inner_product(query, vector)). For non-negative max_inner_product results the _score + /// is calculated max_inner_product(query, vector) + 1. + /// + /// + [EnumMember(Value = "max_inner_product")] + MaxInnerProduct, + /// + /// + /// Computes similarity based on the L2 distance (also known as Euclidean distance) between the vectors. + /// + /// + /// The document _score is computed as 1 / (1 + l2_norm(query, vector)^2). + /// + /// + /// For bit vectors, instead of using l2_norm, the hamming distance between the vectors is used. + /// + /// + /// The _score transformation is (numBits - hamming(a, b)) / numBits. + /// + /// + [EnumMember(Value = "l2_norm")] + L2Norm, + /// + /// + /// Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity. + /// The constraints and computed score are defined by element_type. + /// + /// + /// When element_type is float, all vectors must be unit length, including both document and query vectors. + /// + /// + /// The document _score is computed as (1 + dot_product(query, vector)) / 2. + /// + /// + /// When element_type is byte, all vectors must have the same length including both document and query vectors or + /// results will be inaccurate. + /// + /// + /// The document _score is computed as 0.5 + (dot_product(query, vector) / (32768 * dims)) where dims is the + /// number of dimensions per vector. + /// + /// + [EnumMember(Value = "dot_product")] + DotProduct, + /// + /// + /// Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with cosine + /// similarity to unit length. This allows to internally use dot_product for computing similarity, which is more + /// efficient. Original un-normalized vectors can be still accessed through scripts. + /// + /// + /// The document _score is computed as (1 + cosine(query, vector)) / 2. + /// + /// + /// The cosine similarity does not allow vectors with zero magnitude, since cosine is not defined in this case. + /// + /// + [EnumMember(Value = "cosine")] + Cosine +} + +internal sealed class DenseVectorSimilarityConverter : JsonConverter +{ + public override DenseVectorSimilarity Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "max_inner_product": + return DenseVectorSimilarity.MaxInnerProduct; + case "l2_norm": + return DenseVectorSimilarity.L2Norm; + case "dot_product": + return DenseVectorSimilarity.DotProduct; + case "cosine": + return DenseVectorSimilarity.Cosine; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, DenseVectorSimilarity value, JsonSerializerOptions options) + { + switch (value) + { + case DenseVectorSimilarity.MaxInnerProduct: + writer.WriteStringValue("max_inner_product"); + return; + case DenseVectorSimilarity.L2Norm: + writer.WriteStringValue("l2_norm"); + return; + case DenseVectorSimilarity.DotProduct: + writer.WriteStringValue("dot_product"); + return; + case DenseVectorSimilarity.Cosine: + writer.WriteStringValue("cosine"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(DynamicMappingConverter))] public enum DynamicMapping { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs index 72b319a4a6e..b511d9b0955 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs @@ -29,14 +29,56 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class DenseVectorIndexOptions { + /// + /// + /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and + /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for + /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating + /// the quantization thresholds. + /// + /// + /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization + /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). + /// + /// + /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. + /// + /// + /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. + /// + /// [JsonInclude, JsonPropertyName("confidence_interval")] public float? ConfidenceInterval { get; set; } + + /// + /// + /// The number of candidates to track while assembling the list of nearest neighbors for each new node. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// [JsonInclude, JsonPropertyName("ef_construction")] public int? EfConstruction { get; set; } + + /// + /// + /// The number of neighbors each node will be connected to in the HNSW graph. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// [JsonInclude, JsonPropertyName("m")] public int? m { get; set; } + + /// + /// + /// The type of kNN algorithm to use. + /// + /// [JsonInclude, JsonPropertyName("type")] - public string Type { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType Type { get; set; } } public sealed partial class DenseVectorIndexOptionsDescriptor : SerializableDescriptor @@ -50,27 +92,66 @@ public DenseVectorIndexOptionsDescriptor() : base() private float? ConfidenceIntervalValue { get; set; } private int? EfConstructionValue { get; set; } private int? mValue { get; set; } - private string TypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType TypeValue { get; set; } + /// + /// + /// The confidence interval to use when quantizing the vectors. Can be any value between and including 0.90 and + /// 1.0 or exactly 0. When the value is 0, this indicates that dynamic quantiles should be calculated for + /// optimized quantization. When between 0.90 and 1.0, this value restricts the values used when calculating + /// the quantization thresholds. + /// + /// + /// For example, a value of 0.95 will only use the middle 95% of the values when calculating the quantization + /// thresholds (e.g. the highest and lowest 2.5% of values will be ignored). + /// + /// + /// Defaults to 1/(dims + 1) for int8 quantized vectors and 0 for int4 for dynamic quantile calculation. + /// + /// + /// Only applicable to int8_hnsw, int4_hnsw, int8_flat, and int4_flat index types. + /// + /// public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInterval) { ConfidenceIntervalValue = confidenceInterval; return Self; } + /// + /// + /// The number of candidates to track while assembling the list of nearest neighbors for each new node. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) { EfConstructionValue = efConstruction; return Self; } + /// + /// + /// The number of neighbors each node will be connected to in the HNSW graph. + /// + /// + /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// + /// public DenseVectorIndexOptionsDescriptor m(int? m) { mValue = m; return Self; } - public DenseVectorIndexOptionsDescriptor Type(string type) + /// + /// + /// The type of kNN algorithm to use. + /// + /// + public DenseVectorIndexOptionsDescriptor Type(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptionsType type) { TypeValue = type; return Self; @@ -98,7 +179,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("type"); - writer.WriteStringValue(TypeValue); + JsonSerializer.Serialize(writer, TypeValue, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs index 63eecc6fa75..b05fbb4e3a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorProperty.g.cs @@ -29,18 +29,47 @@ namespace Elastic.Clients.Elasticsearch.Mapping; public sealed partial class DenseVectorProperty : IProperty { + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// [JsonInclude, JsonPropertyName("dims")] public int? Dims { get; set; } [JsonInclude, JsonPropertyName("dynamic")] public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } + + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// [JsonInclude, JsonPropertyName("element_type")] - public string? ElementType { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementType { get; set; } [JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } [JsonInclude, JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } + + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// [JsonInclude, JsonPropertyName("index")] public bool? Index { get; set; } + + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// [JsonInclude, JsonPropertyName("index_options")] public Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? IndexOptions { get; set; } @@ -53,8 +82,28 @@ public sealed partial class DenseVectorProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + + /// + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// [JsonInclude, JsonPropertyName("similarity")] - public string? Similarity { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? Similarity { get; set; } [JsonInclude, JsonPropertyName("synthetic_source_keep")] public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } @@ -72,7 +121,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private string? ElementTypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -81,9 +130,15 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -96,7 +151,12 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elastics return Self; } - public DenseVectorPropertyDescriptor ElementType(string? elementType) + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// + public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? elementType) { ElementTypeValue = elementType; return Self; @@ -128,12 +188,27 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -189,7 +264,26 @@ public DenseVectorPropertyDescriptor Properties(Action Similarity(string? similarity) + /// + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// + public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? similarity) { SimilarityValue = similarity; return Self; @@ -216,10 +310,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (!string.IsNullOrEmpty(ElementTypeValue)) + if (ElementTypeValue is not null) { writer.WritePropertyName("element_type"); - writer.WriteStringValue(ElementTypeValue); + JsonSerializer.Serialize(writer, ElementTypeValue, options); } if (FieldsValue is not null) @@ -268,10 +362,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) + if (SimilarityValue is not null) { writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); + JsonSerializer.Serialize(writer, SimilarityValue, options); } if (SyntheticSourceKeepValue is not null) @@ -335,7 +429,7 @@ public DenseVectorPropertyDescriptor() : base() private int? DimsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private string? ElementTypeValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? ElementTypeValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } private bool? IndexValue { get; set; } @@ -344,9 +438,15 @@ public DenseVectorPropertyDescriptor() : base() private Action IndexOptionsDescriptorAction { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private string? SimilarityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? SimilarityValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + /// + /// + /// Number of vector dimensions. Can't exceed 4096. If dims is not specified, it will be set to the length of + /// the first vector added to the field. + /// + /// public DenseVectorPropertyDescriptor Dims(int? dims) { DimsValue = dims; @@ -359,7 +459,12 @@ public DenseVectorPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mappi return Self; } - public DenseVectorPropertyDescriptor ElementType(string? elementType) + /// + /// + /// The data type used to encode vectors. The supported data types are float (default), byte, and bit. + /// + /// + public DenseVectorPropertyDescriptor ElementType(Elastic.Clients.Elasticsearch.Mapping.DenseVectorElementType? elementType) { ElementTypeValue = elementType; return Self; @@ -391,12 +496,27 @@ public DenseVectorPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + /// + /// + /// If true, you can search this field using the kNN search API. + /// + /// public DenseVectorPropertyDescriptor Index(bool? index = true) { IndexValue = index; return Self; } + /// + /// + /// An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters + /// that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the + /// expense of slower indexing speed. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// public DenseVectorPropertyDescriptor IndexOptions(Elastic.Clients.Elasticsearch.Mapping.DenseVectorIndexOptions? indexOptions) { IndexOptionsDescriptor = null; @@ -452,7 +572,26 @@ public DenseVectorPropertyDescriptor Properties(Action + /// + /// The vector similarity metric to use in kNN search. + /// + /// + /// Documents are ranked by their vector field's similarity to the query vector. The _score of each document will + /// be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds + /// to a higher ranking. + /// + /// + /// Defaults to l2_norm when element_type is bit otherwise defaults to cosine. + /// + /// + /// bit vectors only support l2_norm as their similarity metric. + /// + /// + /// This parameter can only be specified when index is true. + /// + /// + public DenseVectorPropertyDescriptor Similarity(Elastic.Clients.Elasticsearch.Mapping.DenseVectorSimilarity? similarity) { SimilarityValue = similarity; return Self; @@ -479,10 +618,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DynamicValue, options); } - if (!string.IsNullOrEmpty(ElementTypeValue)) + if (ElementTypeValue is not null) { writer.WritePropertyName("element_type"); - writer.WriteStringValue(ElementTypeValue); + JsonSerializer.Serialize(writer, ElementTypeValue, options); } if (FieldsValue is not null) @@ -531,10 +670,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, options); } - if (!string.IsNullOrEmpty(SimilarityValue)) + if (SimilarityValue is not null) { writer.WritePropertyName("similarity"); - writer.WriteStringValue(SimilarityValue); + JsonSerializer.Serialize(writer, SimilarityValue, options); } if (SyntheticSourceKeepValue is not null) From a170ce52bff876d4569dd93f037e3d57b40c42f7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 8 Apr 2025 15:35:05 +0200 Subject: [PATCH 25/28] Fix serialization of `Names` (#8486) (#8487) Co-authored-by: Florian Bernd --- .../_Shared/Core/UrlParameters/Name/Names.cs | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs index 0cd673b3a4c..63b058d3e26 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs @@ -6,14 +6,20 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using System.Text.Json; +using System.Text.Json.Serialization; + using Elastic.Transport; namespace Elastic.Clients.Elasticsearch; [DebuggerDisplay("{DebugDisplay,nq}")] +[JsonConverter(typeof(NamesConverter))] public sealed class Names : IEquatable, IUrlParameter { - public Names(IEnumerable names) : this(names?.Select(n => (Name)n).ToList()) { } + public Names(IEnumerable names) : this(names?.Select(n => (Name)n).ToList()) + { + } public Names(IEnumerable names) { @@ -61,3 +67,44 @@ private static bool EqualsAllIds(ICollection thisIds, ICollection ot public override int GetHashCode() => Value.GetHashCode(); } + +internal sealed class NamesConverter : + JsonConverter +{ + public override Names? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case JsonTokenType.Null: + return null; + + case JsonTokenType.String: + var name = JsonSerializer.Deserialize(ref reader, options); + return new Names([name]); + + case JsonTokenType.StartArray: + var names = JsonSerializer.Deserialize>(ref reader, options); + return new Names(names); + + default: + throw new JsonException("Unexpected token."); + } + } + + public override void Write(Utf8JsonWriter writer, Names value, JsonSerializerOptions options) + { + if (value is null) + { + writer.WriteNullValue(); + return; + } + + if (value.Value.Count == 1) + { + JsonSerializer.Serialize(writer, value.Value[0], options); + return; + } + + JsonSerializer.Serialize(writer, value.Value, options); + } +} From 98fa1986505f64f26b7c29b6f7fbb5268a7eecef Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 8 Apr 2025 15:35:08 +0200 Subject: [PATCH 26/28] Fix serialization of `Names` (#8486) (#8488) Co-authored-by: Florian Bernd --- .../_Shared/Core/UrlParameters/Name/Names.cs | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs index 19f7e64c788..9e525c6e8f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/UrlParameters/Name/Names.cs @@ -6,6 +6,9 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using System.Text.Json; +using System.Text.Json.Serialization; + using Elastic.Transport; #if ELASTICSEARCH_SERVERLESS @@ -15,9 +18,12 @@ namespace Elastic.Clients.Elasticsearch; #endif [DebuggerDisplay("{DebugDisplay,nq}")] +[JsonConverter(typeof(NamesConverter))] public sealed class Names : IEquatable, IUrlParameter { - public Names(IEnumerable names) : this(names?.Select(n => (Name)n).ToList()) { } + public Names(IEnumerable names) : this(names?.Select(n => (Name)n).ToList()) + { + } public Names(IEnumerable names) { @@ -65,3 +71,44 @@ private static bool EqualsAllIds(ICollection thisIds, ICollection ot public override int GetHashCode() => Value.GetHashCode(); } + +internal sealed class NamesConverter : + JsonConverter +{ + public override Names? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case JsonTokenType.Null: + return null; + + case JsonTokenType.String: + var name = JsonSerializer.Deserialize(ref reader, options); + return new Names([name]); + + case JsonTokenType.StartArray: + var names = JsonSerializer.Deserialize>(ref reader, options); + return new Names(names); + + default: + throw new JsonException("Unexpected token."); + } + } + + public override void Write(Utf8JsonWriter writer, Names value, JsonSerializerOptions options) + { + if (value is null) + { + writer.WriteNullValue(); + return; + } + + if (value.Value.Count == 1) + { + JsonSerializer.Serialize(writer, value.Value[0], options); + return; + } + + JsonSerializer.Serialize(writer, value.Value, options); + } +} From ab5e3e907f021450a8ec247a7ac934d0452e4342 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Mon, 5 May 2025 09:50:59 +0200 Subject: [PATCH 27/28] Regenerate client --- .../_Generated/Api/ApiUrlLookup.g.cs | 29 +- .../AsyncSearch/AsyncSearchStatusRequest.g.cs | 46 +- .../AsyncSearchStatusResponse.g.cs | 17 +- .../AsyncSearch/GetAsyncSearchRequest.g.cs | 4 +- .../AsyncSearch/GetAsyncSearchResponse.g.cs | 9 +- .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 12 +- .../SubmitAsyncSearchResponse.g.cs | 9 +- .../_Generated/Api/BulkRequest.g.cs | 17 + .../Api/Cluster/AllocationExplainRequest.g.cs | 16 + .../DeleteVotingConfigExclusionsRequest.g.cs | 16 + .../_Generated/Api/Cluster/HealthRequest.g.cs | 8 +- .../Api/Cluster/HealthResponse.g.cs | 8 + .../PostVotingConfigExclusionsRequest.g.cs | 16 + .../_Generated/Api/CreateRequest.g.cs | 110 +- .../CcrStatsRequest.g.cs | 40 + .../CcrStatsResponse.g.cs | 11 + .../DeleteAutoFollowPatternRequest.g.cs | 24 + .../FollowInfoRequest.g.cs | 28 + .../FollowRequest.g.cs | 504 +- .../FollowStatsRequest.g.cs | 26 + .../FollowStatsResponse.g.cs | 5 + .../ForgetFollowerRequest.g.cs | 17 + .../GetAutoFollowPatternRequest.g.cs | 24 + .../PauseAutoFollowPatternRequest.g.cs | 24 + .../PauseFollowRequest.g.cs | 28 + .../PutAutoFollowPatternRequest.g.cs | 16 + .../ResumeAutoFollowPatternRequest.g.cs | 24 + .../ResumeFollowRequest.g.cs | 17 + .../UnfollowRequest.g.cs | 37 +- .../_Generated/Api/DeleteByQueryRequest.g.cs | 4 +- .../Api/Enrich/DeletePolicyRequest.g.cs | 16 + .../Api/Enrich/EnrichStatsRequest.g.cs | 16 + .../Api/Enrich/ExecutePolicyRequest.g.cs | 16 + .../Api/Enrich/ExecutePolicyResponse.g.cs | 4 +- .../Api/Enrich/GetPolicyRequest.g.cs | 16 + .../Api/Enrich/PutPolicyRequest.g.cs | 18 + .../_Generated/Api/Eql/EqlGetResponse.g.cs | 8 + .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 150 + .../_Generated/Api/Eql/EqlSearchResponse.g.cs | 8 + .../Api/Esql/AsyncQueryRequest.g.cs | 76 +- .../Api/Esql/AsyncQueryStopRequest.g.cs | 151 + .../Api/Esql/AsyncQueryStopResponse.g.cs | 31 + .../Api/Features/GetFeaturesRequest.g.cs | 16 + .../Api/Features/ResetFeaturesRequest.g.cs | 16 + .../GetIlmStatusRequest.g.cs | 4 + .../StartIlmRequest.g.cs | 8 +- .../StopIlmRequest.g.cs | 8 +- .../CancelMigrateReindexRequest.g.cs | 132 + .../CancelMigrateReindexResponse.g.cs | 38 + .../CreateDataStreamRequest.g.cs | 6 +- .../IndexManagement/CreateFromRequest.g.cs | 200 + .../IndexManagement/CreateFromResponse.g.cs | 37 + .../DataStreamsStatsRequest.g.cs | 8 +- .../IndexManagement/ExistsAliasRequest.g.cs | 12 +- .../ExistsIndexTemplateRequest.g.cs | 36 + .../FieldUsageStatsRequest.g.cs | 57 - .../GetDataLifecycleRequest.g.cs | 8 +- .../IndexManagement/GetDataStreamRequest.g.cs | 8 +- .../IndexManagement/GetMappingRequest.g.cs | 17 - .../GetMigrateReindexStatusRequest.g.cs | 132 + .../GetMigrateReindexStatusResponse.g.cs | 51 + .../MigrateReindexRequest.g.cs | 121 + .../MigrateReindexResponse.g.cs | 38 + .../PutDataLifecycleRequest.g.cs | 34 +- .../PutIndicesSettingsRequest.g.cs | 21 + .../IndexManagement/PutMappingRequest.g.cs | 10 +- .../IndexManagement/PutTemplateRequest.g.cs | 10 + .../ReloadSearchAnalyzersRequest.g.cs | 17 + .../ResolveClusterRequest.g.cs | 124 +- .../Api/IndexManagement/RolloverRequest.g.cs | 19 + .../SimulateIndexTemplateRequest.g.cs | 32 + .../SimulateTemplateRequest.g.cs | 17 + .../_Generated/Api/IndexRequest.g.cs | 28 +- .../ChatCompletionUnifiedRequest.g.cs | 136 + .../ChatCompletionUnifiedResponse.g.cs | 31 + .../Api/Inference/CompletionRequest.g.cs | 157 + .../Api/Inference/CompletionResponse.g.cs | 33 + .../Api/Inference/DeleteInferenceRequest.g.cs | 8 +- .../Api/Inference/InferenceRequest.g.cs | 62 +- .../Api/Inference/PutAlibabacloudRequest.g.cs | 308 ++ .../Inference/PutAlibabacloudResponse.g.cs | 78 + .../Inference/PutAmazonbedrockRequest.g.cs | 316 ++ .../Inference/PutAmazonbedrockResponse.g.cs | 78 + .../Api/Inference/PutAnthropicRequest.g.cs | 308 ++ .../Api/Inference/PutAnthropicResponse.g.cs | 78 + .../Inference/PutAzureaistudioRequest.g.cs | 308 ++ .../Inference/PutAzureaistudioResponse.g.cs | 78 + .../Api/Inference/PutAzureopenaiRequest.g.cs | 344 ++ .../Api/Inference/PutAzureopenaiResponse.g.cs | 78 + .../Api/Inference/PutCohereRequest.g.cs | 310 ++ .../Api/Inference/PutCohereResponse.g.cs | 78 + .../Inference/PutElasticsearchRequest.g.cs | 328 ++ .../Inference/PutElasticsearchResponse.g.cs | 78 + .../Api/Inference/PutElserRequest.g.cs | 272 + .../Api/Inference/PutElserResponse.g.cs | 78 + .../Inference/PutGoogleaistudioRequest.g.cs | 250 + .../Inference/PutGoogleaistudioResponse.g.cs | 78 + .../Inference/PutGooglevertexaiRequest.g.cs | 308 ++ .../Inference/PutGooglevertexaiResponse.g.cs | 78 + .../Api/Inference/PutHuggingFaceRequest.g.cs | 340 ++ .../Api/Inference/PutHuggingFaceResponse.g.cs | 78 + .../Api/Inference/PutJinaaiRequest.g.cs | 316 ++ .../Api/Inference/PutJinaaiResponse.g.cs | 78 + .../Api/Inference/PutMistralRequest.g.cs | 250 + .../Api/Inference/PutMistralResponse.g.cs | 78 + .../Api/Inference/PutOpenaiRequest.g.cs | 308 ++ .../Api/Inference/PutOpenaiResponse.g.cs | 78 + .../Api/Inference/PutWatsonxRequest.g.cs | 198 + .../Api/Inference/PutWatsonxResponse.g.cs | 78 + .../Api/Inference/RerankRequest.g.cs | 189 + .../Api/Inference/RerankResponse.g.cs | 33 + .../Api/Inference/SparseEmbeddingRequest.g.cs | 157 + .../Inference/SparseEmbeddingResponse.g.cs | 33 + ...uest.g.cs => StreamCompletionRequest.g.cs} | 64 +- .../Inference/StreamCompletionResponse.g.cs | 31 + .../Api/Inference/TextEmbeddingRequest.g.cs | 157 + ...sponse.g.cs => TextEmbeddingResponse.g.cs} | 2 +- .../Api/Inference/UpdateInferenceRequest.g.cs | 4 +- .../Ingest/DeleteGeoipDatabaseRequest.g.cs | 14 +- .../Api/Ingest/GetGeoipDatabaseRequest.g.cs | 26 +- .../Api/Ingest/GetPipelineRequest.g.cs | 6 + .../Api/Ingest/PutGeoipDatabaseRequest.g.cs | 6 + .../Api/Ingest/SimulateRequest.g.cs | 18 +- .../DeleteLicenseRequest.g.cs | 36 + .../LicenseManagement/GetLicenseRequest.g.cs | 10 +- .../Api/LicenseManagement/PostRequest.g.cs | 36 + .../PostStartBasicRequest.g.cs | 36 + .../PostStartTrialRequest.g.cs | 16 + ...earTrainedModelDeploymentCacheRequest.g.cs | 4 + .../Api/MachineLearning/CloseJobRequest.g.cs | 4 + .../DeleteCalendarRequest.g.cs | 8 +- .../DeleteExpiredDataRequest.g.cs | 16 +- .../MachineLearning/DeleteFilterRequest.g.cs | 4 + .../DeleteForecastRequest.g.cs | 4 + .../Api/MachineLearning/DeleteJobRequest.g.cs | 4 + .../DeleteModelSnapshotRequest.g.cs | 4 + .../DeleteTrainedModelAliasRequest.g.cs | 4 + .../DeleteTrainedModelRequest.g.cs | 20 + .../EstimateModelMemoryRequest.g.cs | 18 +- .../EvaluateDataFrameRequest.g.cs | 6 + .../ExplainDataFrameAnalyticsRequest.g.cs | 6 + .../GetDataFrameAnalyticsStatsRequest.g.cs | 6 +- .../GetDatafeedStatsRequest.g.cs | 4 +- .../MachineLearning/GetJobStatsRequest.g.cs | 4 +- .../Api/MachineLearning/OpenJobRequest.g.cs | 4 + .../PreviewDataFrameAnalyticsRequest.g.cs | 6 +- .../MachineLearning/PutDatafeedRequest.g.cs | 12 +- .../Api/MachineLearning/PutJobRequest.g.cs | 6 + .../PutTrainedModelResponse.g.cs | 2 + .../StartTrainedModelDeploymentRequest.g.cs | 69 +- .../UpdateTrainedModelDeploymentRequest.g.cs | 62 + .../UpgradeJobSnapshotRequest.g.cs | 4 +- .../Api/Nodes/HotThreadsRequest.g.cs | 20 - .../Api/Nodes/NodesInfoRequest.g.cs | 20 +- .../Api/Nodes/NodesStatsRequest.g.cs | 17 - .../Api/OpenPointInTimeRequest.g.cs | 17 + .../_Generated/Api/ReindexRequest.g.cs | 6 +- .../Api/ScriptsPainlessExecuteRequest.g.cs | 60 +- .../DeleteSearchApplicationRequest.g.cs | 4 + .../GetSearchApplicationResponse.g.cs | 2 +- .../Api/SearchApplication/ListResponse.g.cs | 2 +- .../PutSearchApplicationRequest.g.cs | 16 +- .../_Generated/Api/SearchRequest.g.cs | 22 +- .../_Generated/Api/SearchShardsRequest.g.cs | 21 + .../GetBuiltinPrivilegesResponse.g.cs | 3 +- .../Api/Security/OidcLogoutRequest.g.cs | 30 +- .../Api/Snapshot/CloneSnapshotRequest.g.cs | 4 - .../_Generated/Api/Tasks/ListRequest.g.cs | 18 - .../_Generated/Api/TermVectorsRequest.g.cs | 417 +- .../DeleteTransformRequest.g.cs | 2 - .../GetTransformRequest.g.cs | 4 +- .../GetTransformStatsRequest.g.cs | 8 +- .../ResetTransformRequest.g.cs | 22 +- .../ScheduleNowTransformRequest.g.cs | 16 +- .../StartTransformRequest.g.cs | 2 - .../UpgradeTransformsRequest.g.cs | 4 + .../_Generated/Api/UpdateByQueryRequest.g.cs | 4 +- .../_Generated/Api/UpdateRequest.g.cs | 16 + .../ElasticsearchClient.AsyncSearch.g.cs | 292 +- .../Client/ElasticsearchClient.Ccr.g.cs | 642 ++- .../Client/ElasticsearchClient.Cluster.g.cs | 248 +- .../ElasticsearchClient.DanglingIndices.g.cs | 16 +- .../Client/ElasticsearchClient.Enrich.g.cs | 100 +- .../Client/ElasticsearchClient.Eql.g.cs | 96 +- .../Client/ElasticsearchClient.Esql.g.cs | 355 +- .../Client/ElasticsearchClient.Features.g.cs | 32 +- .../Client/ElasticsearchClient.Graph.g.cs | 36 +- .../Client/ElasticsearchClient.Ilm.g.cs | 244 +- .../Client/ElasticsearchClient.Indices.g.cs | 3791 ++++++++++---- .../Client/ElasticsearchClient.Inference.g.cs | 4416 ++++++++++++++++- .../Client/ElasticsearchClient.Ingest.g.cs | 564 ++- .../Client/ElasticsearchClient.License.g.cs | 200 +- .../Client/ElasticsearchClient.Ml.g.cs | 2160 ++++---- .../Client/ElasticsearchClient.Nodes.g.cs | 196 +- .../ElasticsearchClient.QueryRules.g.cs | 128 +- .../Client/ElasticsearchClient.Rollup.g.cs | 252 +- ...ElasticsearchClient.SearchApplication.g.cs | 180 +- ...asticsearchClient.SearchableSnapshots.g.cs | 128 +- .../Client/ElasticsearchClient.Security.g.cs | 1224 ++--- .../Client/ElasticsearchClient.Simulate.g.cs | 44 +- .../Client/ElasticsearchClient.Slm.g.cs | 152 +- .../Client/ElasticsearchClient.Snapshot.g.cs | 220 +- .../Client/ElasticsearchClient.Sql.g.cs | 156 +- .../Client/ElasticsearchClient.Synonyms.g.cs | 148 +- .../Client/ElasticsearchClient.Tasks.g.cs | 56 +- .../ElasticsearchClient.TextStructure.g.cs | 72 +- .../Client/ElasticsearchClient.Transform.g.cs | 392 +- .../Client/ElasticsearchClient.Xpack.g.cs | 32 +- .../Client/ElasticsearchClient.g.cs | 1684 +++---- .../_Generated/Types/Analysis/Analyzers.g.cs | 8 - .../Types/Analysis/LanguageAnalyzer.g.cs | 131 - .../Types/Analysis/Normalizers.g.cs | 2 +- .../Types/AsyncSearch/AsyncSearch.g.cs | 2 +- .../_Generated/Types/ByteSize.g.cs | 2 +- .../Types/Cluster/WaitForNodes.g.cs | 42 + .../_Generated/Types/Core/Context.g.cs | 2 +- .../Types/Core/MSearch/MultisearchBody.g.cs | 12 +- ...ankEvalMetricDiscountedCumulativeGain.g.cs | 4 +- .../RankEvalMetricExpectedReciprocalRank.g.cs | 4 +- .../RankEvalMetricMeanReciprocalRank.g.cs | 4 +- .../RankEval/RankEvalMetricPrecision.g.cs | 4 +- .../Core/RankEval/RankEvalMetricRecall.g.cs | 4 +- .../PainlessContextSetup.g.cs | 30 +- .../Types/Core/Search/InnerHits.g.cs | 2 +- .../AutoFollowStats.g.cs | 25 + .../FollowIndexStats.g.cs | 11 + .../FollowerIndex.g.cs | 29 + .../FollowerIndexParameters.g.cs | 84 +- .../ReadException.g.cs | 17 + .../CrossClusterReplication/ShardStats.g.cs | 170 + .../Enrich/ExecuteEnrichPolicyStatus.g.cs | 2 + .../Types/Enums/Enums.Analysis.g.cs | 266 - .../Enums.Core.ScriptsPainlessExecute.g.cs | 189 + .../_Generated/Types/Enums/Enums.Enrich.g.cs | 9 +- .../Types/Enums/Enums.IndexManagement.g.cs | 35 + .../Types/Enums/Enums.Inference.g.cs | 1472 +++++- .../_Generated/Types/Enums/Enums.Ingest.g.cs | 63 + .../_Generated/Types/Enums/Enums.Mapping.g.cs | 101 +- .../_Generated/Types/Enums/Enums.Watcher.g.cs | 85 - .../_Generated/Types/Fuzziness.g.cs | 2 +- .../Types/IndexManagement/CreateFrom.g.cs | 315 ++ .../IndexManagement/DataStreamLifecycle.g.cs | 53 + .../DataStreamLifecycleWithRollover.g.cs | 28 + .../DataStreamWithLifecycle.g.cs | 2 +- .../Types/IndexManagement/IndexSettings.g.cs | 6 +- .../IndexManagement/MappingLimitSettings.g.cs | 4 +- .../Types/IndexManagement/MigrateReindex.g.cs | 125 + .../Types/IndexManagement/SourceIndex.g.cs | 59 + .../Types/IndexManagement/StatusError.g.cs | 36 + .../IndexManagement/StatusInProgress.g.cs | 38 + .../Types/Inference/AdaptiveAllocations.g.cs | 131 + .../AlibabaCloudServiceSettings.g.cs | 299 ++ .../Inference/AlibabaCloudTaskSettings.g.cs | 127 + .../AmazonBedrockServiceSettings.g.cs | 295 ++ .../Inference/AmazonBedrockTaskSettings.g.cs | 163 + .../Inference/AnthropicServiceSettings.g.cs | 151 + .../Inference/AnthropicTaskSettings.g.cs | 161 + .../AzureAiStudioServiceSettings.g.cs | 281 ++ .../Inference/AzureAiStudioTaskSettings.g.cs | 189 + .../Inference/AzureOpenAIServiceSettings.g.cs | 253 + .../Inference/AzureOpenAITaskSettings.g.cs | 75 + .../Inference/CohereServiceSettings.g.cs | 269 + .../Types/Inference/CohereTaskSettings.g.cs | 243 + .../Types/Inference/CompletionResult.g.cs | 39 + .../Types/Inference/CompletionTool.g.cs | 135 + .../Types/Inference/CompletionToolChoice.g.cs | 135 + .../CompletionToolChoiceFunction.g.cs | 79 + .../Inference/CompletionToolFunction.g.cs | 159 + .../Types/Inference/CompletionToolType.g.cs | 42 + .../Types/Inference/ContentObject.g.cs | 101 + .../ElasticsearchServiceSettings.g.cs | 223 + .../Inference/ElasticsearchTaskSettings.g.cs | 73 + .../Types/Inference/ElserServiceSettings.g.cs | 175 + .../GoogleAiStudioServiceSettings.g.cs | 151 + .../GoogleVertexAIServiceSettings.g.cs | 197 + .../Inference/GoogleVertexAITaskSettings.g.cs | 99 + .../Inference/HuggingFaceServiceSettings.g.cs | 163 + .../Inference/InferenceChunkingSettings.g.cs | 164 +- .../Inference/JinaAIServiceSettings.g.cs | 199 + .../Types/Inference/JinaAITaskSettings.g.cs | 175 + .../_Generated/Types/Inference/Message.g.cs | 215 + .../Types/Inference/MessageContent.g.cs | 42 + .../Inference/MistralServiceSettings.g.cs | 191 + .../Inference/OpenAIServiceSettings.g.cs | 255 + .../Types/Inference/OpenAITaskSettings.g.cs | 75 + .../Types/Inference/RankedDocument.g.cs | 46 + .../Types/Inference/RateLimitSetting.g.cs | 73 + .../Inference/RequestChatCompletion.g.cs | 371 ++ .../Inference/SparseEmbeddingResult.g.cs | 34 + .../_Generated/Types/Inference/ToolCall.g.cs | 157 + .../Types/Inference/ToolCallFunction.g.cs | 101 + .../Inference/WatsonxServiceSettings.g.cs | 233 + .../Types/Ingest/InferenceProcessor.g.cs | 210 + .../_Generated/Types/Ingest/InputConfig.g.cs | 70 + ...tion.g.cs => PipelineProcessorResult.g.cs} | 4 +- .../Types/Ingest/SimulateDocumentResult.g.cs | 2 +- .../_Generated/Types/KnnQuery.g.cs | 104 + .../_Generated/Types/KnnRetriever.g.cs | 104 + .../_Generated/Types/KnnSearch.g.cs | 104 + .../AdaptiveAllocationsSettings.g.cs | 95 +- .../InferenceConfigCreate.g.cs | 15 + .../MachineLearning/LearningToRankConfig.g.cs | 142 + .../QueryFeatureExtractor.g.cs | 200 + .../TextClassificationInferenceOptions.g.cs | 45 + .../MachineLearning/TokenizationConfig.g.cs | 15 + ...ModelAssignmentRoutingStateAndReason.g.cs} | 33 +- .../MachineLearning/TrainedModelConfig.g.cs | 2 + .../TrainedModelDeploymentNodesStats.g.cs | 6 +- .../XlmRobertaTokenizationConfig.g.cs | 179 + .../Types/Mapping/BooleanProperty.g.cs | 248 +- .../Types/Mapping/CountedKeywordProperty.g.cs | 361 ++ .../Types/Mapping/DateNanosProperty.g.cs | 168 + .../Types/Mapping/DateProperty.g.cs | 168 + .../Mapping/DenseVectorIndexOptions.g.cs | 8 +- .../Types/Mapping/DynamicTemplate.g.cs | 12 +- .../Types/Mapping/GeoShapeProperty.g.cs | 36 +- .../Types/Mapping/ObjectProperty.g.cs | 18 +- .../Mapping/PassthroughObjectProperty.g.cs | 482 ++ .../_Generated/Types/Mapping/Properties.g.cs | 20 + .../Types/Mapping/RuntimeField.g.cs | 2 + .../Types/Mapping/ShapeProperty.g.cs | 6 +- .../_Generated/Types/Mapping/TypeMapping.g.cs | 28 +- .../_Generated/Types/QueryDsl/Like.g.cs | 2 +- .../_Generated/Types/RescoreVector.g.cs | 69 + .../SearchApplication/SearchApplication.g.cs | 136 +- .../SearchApplicationParameters.g.cs | 151 + .../Types/Security/IndicesPrivileges.g.cs | 5 +- .../Security/RemoteIndicesPrivileges.g.cs | 5 +- .../Types/Security/UserIndicesPrivileges.g.cs | 1 - .../TransformManagement/Checkpointing.g.cs | 6 +- .../TransformHealthIssue.g.cs | 73 + .../TransformStatsHealth.g.cs | 7 + .../TransformManagement/TransformSummary.g.cs | 2 + 333 files changed, 35544 insertions(+), 7168 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/{StreamInferenceRequest.g.cs => StreamCompletionRequest.g.cs} (75%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/{StreamInferenceResponse.g.cs => TextEmbeddingResponse.g.cs} (95%) delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/WaitForNodes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.ScriptsPainlessExecute.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MessageContent.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/{PipelineSimulation.g.cs => PipelineProcessorResult.g.cs} (93%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/{SearchApplication/SearchApplicationListItem.g.cs => MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs} (65%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 0fbea097dfe..bda27c31de8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -63,6 +63,7 @@ internal static class ApiUrlLookup internal static ApiUrls EsqlAsyncQuery = new ApiUrls(new[] { "_query/async" }); internal static ApiUrls EsqlAsyncQueryDelete = new ApiUrls(new[] { "_query/async/{id}" }); internal static ApiUrls EsqlAsyncQueryGet = new ApiUrls(new[] { "_query/async/{id}" }); + internal static ApiUrls EsqlAsyncQueryStop = new ApiUrls(new[] { "_query/async/{id}/stop" }); internal static ApiUrls EsqlQuery = new ApiUrls(new[] { "_query" }); internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "_features" }); internal static ApiUrls FeaturesResetFeatures = new ApiUrls(new[] { "_features/_reset" }); @@ -78,11 +79,13 @@ internal static class ApiUrlLookup internal static ApiUrls IndexLifecycleManagementStart = new ApiUrls(new[] { "_ilm/start" }); internal static ApiUrls IndexLifecycleManagementStop = new ApiUrls(new[] { "_ilm/stop" }); internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "_analyze", "{index}/_analyze" }); + internal static ApiUrls IndexManagementCancelMigrateReindex = new ApiUrls(new[] { "_migration/reindex/{index}/_cancel" }); internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "_cache/clear", "{index}/_cache/clear" }); internal static ApiUrls IndexManagementClone = new ApiUrls(new[] { "{index}/_clone/{target}" }); internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "{index}/_close" }); internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "{index}" }); internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "_data_stream/{name}" }); + internal static ApiUrls IndexManagementCreateFrom = new ApiUrls(new[] { "_create_from/{source}/{dest}" }); internal static ApiUrls IndexManagementDataStreamsStats = new ApiUrls(new[] { "_data_stream/_stats", "_data_stream/{name}/_stats" }); internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" }); internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" }); @@ -108,8 +111,10 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementGetFieldMapping = new ApiUrls(new[] { "_mapping/field/{fields}", "{index}/_mapping/field/{fields}" }); internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" }); internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" }); + internal static ApiUrls IndexManagementGetMigrateReindexStatus = new ApiUrls(new[] { "_migration/reindex/{index}/_status" }); internal static ApiUrls IndexManagementGetSettings = new ApiUrls(new[] { "_settings", "{index}/_settings", "{index}/_settings/{name}", "_settings/{name}" }); internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" }); + internal static ApiUrls IndexManagementMigrateReindex = new ApiUrls(new[] { "_migration/reindex" }); internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" }); internal static ApiUrls IndexManagementModifyDataStream = new ApiUrls(new[] { "_data_stream/_modify" }); internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" }); @@ -123,7 +128,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" }); internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" }); internal static ApiUrls IndexManagementReloadSearchAnalyzers = new ApiUrls(new[] { "{index}/_reload_search_analyzers" }); - internal static ApiUrls IndexManagementResolveCluster = new ApiUrls(new[] { "_resolve/cluster/{name}" }); + internal static ApiUrls IndexManagementResolveCluster = new ApiUrls(new[] { "_resolve/cluster", "_resolve/cluster/{name}" }); internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" }); internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" }); internal static ApiUrls IndexManagementSegments = new ApiUrls(new[] { "_segments", "{index}/_segments" }); @@ -135,11 +140,31 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" }); internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" }); internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" }); + internal static ApiUrls InferenceChatCompletionUnified = new ApiUrls(new[] { "_inference/chat_completion/{inference_id}/_stream" }); + internal static ApiUrls InferenceCompletion = new ApiUrls(new[] { "_inference/completion/{inference_id}" }); internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" }); - internal static ApiUrls InferenceStreamInference = new ApiUrls(new[] { "_inference/{inference_id}/_stream", "_inference/{task_type}/{inference_id}/_stream" }); + internal static ApiUrls InferencePutAlibabacloud = new ApiUrls(new[] { "_inference/{task_type}/{alibabacloud_inference_id}" }); + internal static ApiUrls InferencePutAmazonbedrock = new ApiUrls(new[] { "_inference/{task_type}/{amazonbedrock_inference_id}" }); + internal static ApiUrls InferencePutAnthropic = new ApiUrls(new[] { "_inference/{task_type}/{anthropic_inference_id}" }); + internal static ApiUrls InferencePutAzureaistudio = new ApiUrls(new[] { "_inference/{task_type}/{azureaistudio_inference_id}" }); + internal static ApiUrls InferencePutAzureopenai = new ApiUrls(new[] { "_inference/{task_type}/{azureopenai_inference_id}" }); + internal static ApiUrls InferencePutCohere = new ApiUrls(new[] { "_inference/{task_type}/{cohere_inference_id}" }); + internal static ApiUrls InferencePutElasticsearch = new ApiUrls(new[] { "_inference/{task_type}/{elasticsearch_inference_id}" }); + internal static ApiUrls InferencePutElser = new ApiUrls(new[] { "_inference/{task_type}/{elser_inference_id}" }); + internal static ApiUrls InferencePutGoogleaistudio = new ApiUrls(new[] { "_inference/{task_type}/{googleaistudio_inference_id}" }); + internal static ApiUrls InferencePutGooglevertexai = new ApiUrls(new[] { "_inference/{task_type}/{googlevertexai_inference_id}" }); + internal static ApiUrls InferencePutHuggingFace = new ApiUrls(new[] { "_inference/{task_type}/{huggingface_inference_id}" }); + internal static ApiUrls InferencePutJinaai = new ApiUrls(new[] { "_inference/{task_type}/{jinaai_inference_id}" }); + internal static ApiUrls InferencePutMistral = new ApiUrls(new[] { "_inference/{task_type}/{mistral_inference_id}" }); + internal static ApiUrls InferencePutOpenai = new ApiUrls(new[] { "_inference/{task_type}/{openai_inference_id}" }); + internal static ApiUrls InferencePutWatsonx = new ApiUrls(new[] { "_inference/{task_type}/{watsonx_inference_id}" }); + internal static ApiUrls InferenceRerank = new ApiUrls(new[] { "_inference/rerank/{inference_id}" }); + internal static ApiUrls InferenceSparseEmbedding = new ApiUrls(new[] { "_inference/sparse_embedding/{inference_id}" }); + internal static ApiUrls InferenceStreamCompletion = new ApiUrls(new[] { "_inference/completion/{inference_id}/_stream" }); + internal static ApiUrls InferenceTextEmbedding = new ApiUrls(new[] { "_inference/text_embedding/{inference_id}" }); internal static ApiUrls InferenceUpdate = new ApiUrls(new[] { "_inference/{inference_id}/_update", "_inference/{task_type}/{inference_id}/_update" }); internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" }); internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs index ed385a30bf7..5b4702753ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class AsyncSearchStatusRequestParameters : RequestParamete { /// /// - /// Specifies how long the async search needs to be available. + /// The length of time that the async search needs to be available. /// Ongoing async searches and any saved search results are deleted after this period. /// /// @@ -47,8 +47,20 @@ public sealed partial class AsyncSearchStatusRequestParameters : RequestParamete /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. -/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. +/// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: /// +/// +/// +/// +/// The user or API key that submitted the original async search request. +/// +/// +/// +/// +/// Users that have the monitor cluster privilege or greater privileges. +/// +/// +/// /// public sealed partial class AsyncSearchStatusRequest : PlainRequest { @@ -66,7 +78,7 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => /// /// - /// Specifies how long the async search needs to be available. + /// The length of time that the async search needs to be available. /// Ongoing async searches and any saved search results are deleted after this period. /// /// @@ -80,8 +92,20 @@ public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. -/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. +/// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: +/// +/// +/// +/// +/// The user or API key that submitted the original async search request. /// +/// +/// +/// +/// Users that have the monitor cluster privilege or greater privileges. +/// +/// +/// /// public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor, AsyncSearchStatusRequestParameters> { @@ -118,8 +142,20 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. -/// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. +/// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: +/// +/// +/// +/// +/// The user or API key that submitted the original async search request. +/// +/// +/// +/// +/// Users that have the monitor cluster privilege or greater privileges. /// +/// +/// /// public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs index 126481dc53a..da03113e439 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchStatusResponse.g.cs @@ -31,7 +31,7 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse /// /// /// Metadata about clusters involved in the cross-cluster search. - /// Not shown for local-only searches. + /// It is not shown for local-only searches. /// /// [JsonInclude, JsonPropertyName("_clusters")] @@ -40,8 +40,8 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse /// /// /// If the async search completed, this field shows the status code of the search. - /// For example, 200 indicates that the async search was successfully completed. - /// 503 indicates that the async search was completed with an error. + /// For example, 200 indicates that the async search was successfully completed. + /// 503 indicates that the async search was completed with an error. /// /// [JsonInclude, JsonPropertyName("completion_status")] @@ -49,8 +49,8 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse /// /// - /// Indicates when the async search completed. Only present - /// when the search has completed. + /// Indicates when the async search completed. + /// It is present only when the search has completed. /// /// [JsonInclude, JsonPropertyName("completion_time")] @@ -82,7 +82,10 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse /// /// /// Indicates whether the search is still running or has completed. - /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. + /// + /// + /// info + /// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. /// /// [JsonInclude, JsonPropertyName("is_running")] @@ -90,7 +93,7 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse /// /// - /// Indicates how many shards have run the query so far. + /// The number of shards that have run the query so far. /// /// [JsonInclude, JsonPropertyName("_shards")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs index c2884fe1b43..e39bb764de2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class GetAsyncSearchRequestParameters : RequestParameters { /// /// - /// Specifies how long the async search should be available in the cluster. + /// The length of time that the async search should be available in the cluster. /// When not specified, the keep_alive set with the corresponding submit async request will be used. /// Otherwise, it is possible to override the value and extend the validity of the request. /// When this period expires, the search, if still running, is cancelled. @@ -85,7 +85,7 @@ public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r. /// /// - /// Specifies how long the async search should be available in the cluster. + /// The length of time that the async search should be available in the cluster. /// When not specified, the keep_alive set with the corresponding submit async request will be used. /// Otherwise, it is possible to override the value and extend the validity of the request. /// When this period expires, the search, if still running, is cancelled. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs index 3dd949e280f..ee00e431c24 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/GetAsyncSearchResponse.g.cs @@ -30,8 +30,8 @@ public sealed partial class GetAsyncSearchResponse : ElasticsearchRes { /// /// - /// Indicates when the async search completed. Only present - /// when the search has completed. + /// Indicates when the async search completed. + /// It is present only when the search has completed. /// /// [JsonInclude, JsonPropertyName("completion_time")] @@ -63,7 +63,10 @@ public sealed partial class GetAsyncSearchResponse : ElasticsearchRes /// /// /// Indicates whether the search is still running or has completed. - /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. + /// + /// + /// info + /// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. /// /// [JsonInclude, JsonPropertyName("is_running")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs index d44016dcd11..fa65b58cd8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -302,7 +302,7 @@ public override SubmitAsyncSearchRequest Read(ref Utf8JsonReader reader, Type ty if (property == "indices_boost") { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); + variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); continue; } @@ -975,7 +975,7 @@ public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) /// /// [JsonInclude, JsonPropertyName("indices_boost")] - public ICollection>? IndicesBoost { get; set; } + public ICollection>? IndicesBoost { get; set; } /// /// @@ -1233,7 +1233,7 @@ public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Ela private Elastic.Clients.Elasticsearch.Core.Search.Highlight? HighlightValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } private Action> HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private ICollection? KnnValue { get; set; } private Elastic.Clients.Elasticsearch.KnnSearchDescriptor KnnDescriptor { get; set; } private Action> KnnDescriptorAction { get; set; } @@ -1455,7 +1455,7 @@ public SubmitAsyncSearchRequestDescriptor Highlight(Action /// - public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) + public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -2356,7 +2356,7 @@ public SubmitAsyncSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Elastic.Clients.Elasticsearch.Core.Search.Highlight? HighlightValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } private Action HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private ICollection? KnnValue { get; set; } private Elastic.Clients.Elasticsearch.KnnSearchDescriptor KnnDescriptor { get; set; } private Action KnnDescriptorAction { get; set; } @@ -2578,7 +2578,7 @@ public SubmitAsyncSearchRequestDescriptor Highlight(Action /// - public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) + public SubmitAsyncSearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs index 1eaf8d1c848..4e2e83486f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchResponse.g.cs @@ -30,8 +30,8 @@ public sealed partial class SubmitAsyncSearchResponse : Elasticsearch { /// /// - /// Indicates when the async search completed. Only present - /// when the search has completed. + /// Indicates when the async search completed. + /// It is present only when the search has completed. /// /// [JsonInclude, JsonPropertyName("completion_time")] @@ -63,7 +63,10 @@ public sealed partial class SubmitAsyncSearchResponse : Elasticsearch /// /// /// Indicates whether the search is still running or has completed. - /// NOTE: If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. + /// + /// + /// info + /// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though is_running is false. /// /// [JsonInclude, JsonPropertyName("is_running")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index ef6467a0c3a..187a47691bb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class BulkRequestParameters : RequestParameters { + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + /// /// /// If true, the response will include the ingest pipelines that were run for each index or create. @@ -332,6 +339,14 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r internal override string OperationName => "bulk"; + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + [JsonIgnore] + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + /// /// /// If true, the response will include the ingest pipelines that were run for each index or create. @@ -645,6 +660,7 @@ public BulkRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "bulk"; + public BulkRequestDescriptor IncludeSourceOnError(bool? includeSourceOnError = true) => Qs("include_source_on_error", includeSourceOnError); public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines); public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); @@ -880,6 +896,7 @@ public BulkRequestDescriptor() internal override string OperationName => "bulk"; + public BulkRequestDescriptor IncludeSourceOnError(bool? includeSourceOnError = true) => Qs("include_source_on_error", includeSourceOnError); public BulkRequestDescriptor ListExecutedPipelines(bool? listExecutedPipelines = true) => Qs("list_executed_pipelines", listExecutedPipelines); public BulkRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public BulkRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs index 23e668b1bcd..3d9b842bc1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -45,6 +45,13 @@ public sealed partial class AllocationExplainRequestParameters : RequestParamete /// /// public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -82,6 +89,14 @@ public sealed partial class AllocationExplainRequest : PlainRequest Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. @@ -142,6 +157,7 @@ public AllocationExplainRequestDescriptor() public AllocationExplainRequestDescriptor IncludeDiskInfo(bool? includeDiskInfo = true) => Qs("include_disk_info", includeDiskInfo); public AllocationExplainRequestDescriptor IncludeYesDecisions(bool? includeYesDecisions = true) => Qs("include_yes_decisions", includeYesDecisions); + public AllocationExplainRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); private string? CurrentNodeValue { get; set; } private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs index b666916f7c7..7302332ee76 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/DeleteVotingConfigExclusionsRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.Cluster; public sealed partial class DeleteVotingConfigExclusionsRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// Specifies whether to wait for all excluded nodes to be removed from the @@ -61,6 +68,14 @@ public sealed partial class DeleteVotingConfigExclusionsRequest : PlainRequest "cluster.delete_voting_config_exclusions"; + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// Specifies whether to wait for all excluded nodes to be removed from the @@ -97,6 +112,7 @@ public DeleteVotingConfigExclusionsRequestDescriptor() internal override string OperationName => "cluster.delete_voting_config_exclusions"; + public DeleteVotingConfigExclusionsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public DeleteVotingConfigExclusionsRequestDescriptor WaitForRemoval(bool? waitForRemoval = true) => Qs("wait_for_removal", waitForRemoval); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs index 07c6a721bf8..42dd00c9a02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthRequest.g.cs @@ -86,7 +86,7 @@ public sealed partial class HealthRequestParameters : RequestParameters /// The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and <N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation. /// /// - public object? WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } + public Elastic.Clients.Elasticsearch.Cluster.WaitForNodes? WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } /// /// @@ -206,7 +206,7 @@ public HealthRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// [JsonIgnore] - public object? WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } + public Elastic.Clients.Elasticsearch.Cluster.WaitForNodes? WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } /// /// @@ -276,7 +276,7 @@ public HealthRequestDescriptor() public HealthRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public HealthRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); public HealthRequestDescriptor WaitForEvents(Elastic.Clients.Elasticsearch.WaitForEvents? waitForEvents) => Qs("wait_for_events", waitForEvents); - public HealthRequestDescriptor WaitForNodes(object? waitForNodes) => Qs("wait_for_nodes", waitForNodes); + public HealthRequestDescriptor WaitForNodes(Elastic.Clients.Elasticsearch.Cluster.WaitForNodes? waitForNodes) => Qs("wait_for_nodes", waitForNodes); public HealthRequestDescriptor WaitForNoInitializingShards(bool? waitForNoInitializingShards = true) => Qs("wait_for_no_initializing_shards", waitForNoInitializingShards); public HealthRequestDescriptor WaitForNoRelocatingShards(bool? waitForNoRelocatingShards = true) => Qs("wait_for_no_relocating_shards", waitForNoRelocatingShards); public HealthRequestDescriptor WaitForStatus(Elastic.Clients.Elasticsearch.HealthStatus? waitForStatus) => Qs("wait_for_status", waitForStatus); @@ -335,7 +335,7 @@ public HealthRequestDescriptor() public HealthRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public HealthRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); public HealthRequestDescriptor WaitForEvents(Elastic.Clients.Elasticsearch.WaitForEvents? waitForEvents) => Qs("wait_for_events", waitForEvents); - public HealthRequestDescriptor WaitForNodes(object? waitForNodes) => Qs("wait_for_nodes", waitForNodes); + public HealthRequestDescriptor WaitForNodes(Elastic.Clients.Elasticsearch.Cluster.WaitForNodes? waitForNodes) => Qs("wait_for_nodes", waitForNodes); public HealthRequestDescriptor WaitForNoInitializingShards(bool? waitForNoInitializingShards = true) => Qs("wait_for_no_initializing_shards", waitForNoInitializingShards); public HealthRequestDescriptor WaitForNoRelocatingShards(bool? waitForNoRelocatingShards = true) => Qs("wait_for_no_relocating_shards", waitForNoRelocatingShards); public HealthRequestDescriptor WaitForStatus(Elastic.Clients.Elasticsearch.HealthStatus? waitForStatus) => Qs("wait_for_status", waitForStatus); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs index e3fca0ec657..39ffb3ba95d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/HealthResponse.g.cs @@ -44,6 +44,14 @@ public sealed partial class HealthResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("active_shards")] public int ActiveShards { get; init; } + /// + /// + /// The ratio of active shards in the cluster expressed as a string formatted percentage. + /// + /// + [JsonInclude, JsonPropertyName("active_shards_percent")] + public string? ActiveShardsPercent { get; init; } + /// /// /// The ratio of active shards in the cluster expressed as a percentage. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs index 75da7c39dae..e15ad231e47 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PostVotingConfigExclusionsRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.Cluster; public sealed partial class PostVotingConfigExclusionsRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// A comma-separated list of the persistent ids of the nodes to exclude @@ -94,6 +101,14 @@ public sealed partial class PostVotingConfigExclusionsRequest : PlainRequest "cluster.post_voting_config_exclusions"; + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// A comma-separated list of the persistent ids of the nodes to exclude @@ -165,6 +180,7 @@ public PostVotingConfigExclusionsRequestDescriptor() internal override string OperationName => "cluster.post_voting_config_exclusions"; + public PostVotingConfigExclusionsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public PostVotingConfigExclusionsRequestDescriptor NodeIds(Elastic.Clients.Elasticsearch.Ids? nodeIds) => Qs("node_ids", nodeIds); public PostVotingConfigExclusionsRequestDescriptor NodeNames(Elastic.Clients.Elasticsearch.Names? nodeNames) => Qs("node_names", nodeNames); public PostVotingConfigExclusionsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs index f477155194a..7300ce3e295 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs @@ -32,6 +32,39 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class CreateRequestParameters : RequestParameters { + /// + /// + /// Only perform the operation if the document has this primary term. + /// + /// + public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } + + /// + /// + /// Only perform the operation if the document has this sequence number. + /// + /// + public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } + + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + + /// + /// + /// Set to create to only index the document if it does not already exist (put if absent). + /// If a document with the specified _id already exists, the indexing operation will fail. + /// The behavior is the same as using the <index>/_create endpoint. + /// If a document ID is specified, this paramater defaults to index. + /// Otherwise, it defaults to create. + /// If the request targets a data stream, an op_type of create is required. + /// + /// + public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } + /// /// /// The ID of the pipeline to use to preprocess incoming documents. @@ -50,6 +83,20 @@ public sealed partial class CreateRequestParameters : RequestParameters /// public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + /// + /// + /// If true, the destination must be an index alias. + /// + /// + public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } + + /// + /// + /// If true, the request's actions must target a data stream (existing or to be created). + /// + /// + public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } + /// /// /// A custom value that is used to route operations to a specific shard. @@ -168,7 +215,7 @@ public sealed partial class CreateRequestParameters : RequestParameters /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// -/// ** Distributed** +/// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -217,6 +264,43 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie internal override string OperationName => "create"; + /// + /// + /// Only perform the operation if the document has this primary term. + /// + /// + [JsonIgnore] + public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } + + /// + /// + /// Only perform the operation if the document has this sequence number. + /// + /// + [JsonIgnore] + public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } + + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + [JsonIgnore] + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + + /// + /// + /// Set to create to only index the document if it does not already exist (put if absent). + /// If a document with the specified _id already exists, the indexing operation will fail. + /// The behavior is the same as using the <index>/_create endpoint. + /// If a document ID is specified, this paramater defaults to index. + /// Otherwise, it defaults to create. + /// If the request targets a data stream, an op_type of create is required. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } + /// /// /// The ID of the pipeline to use to preprocess incoming documents. @@ -237,6 +321,22 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie [JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + /// + /// + /// If true, the destination must be an index alias. + /// + /// + [JsonIgnore] + public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } + + /// + /// + /// If true, the request's actions must target a data stream (existing or to be created). + /// + /// + [JsonIgnore] + public bool? RequireDataStream { get => Q("require_data_stream"); set => Q("require_data_stream", value); } + /// /// /// A custom value that is used to route operations to a specific shard. @@ -367,7 +467,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// -/// ** Distributed** +/// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -427,8 +527,14 @@ public CreateRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch internal override string OperationName => "create"; + public CreateRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); + public CreateRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); + public CreateRequestDescriptor IncludeSourceOnError(bool? includeSourceOnError = true) => Qs("include_source_on_error", includeSourceOnError); + public CreateRequestDescriptor OpType(Elastic.Clients.Elasticsearch.OpType? opType) => Qs("op_type", opType); public CreateRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public CreateRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); + public CreateRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); + public CreateRequestDescriptor RequireDataStream(bool? requireDataStream = true) => Qs("require_data_stream", requireDataStream); public CreateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); public CreateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public CreateRequestDescriptor Version(long? version) => Qs("version", version); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs index 0c05bca66b6..92c07a3f2ff 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsRequest.g.cs @@ -32,11 +32,28 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class CcrStatsRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Get cross-cluster replication stats. +/// +/// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// /// @@ -49,11 +66,31 @@ public sealed partial class CcrStatsRequest : PlainRequest false; internal override string OperationName => "ccr.stats"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Get cross-cluster replication stats. +/// +/// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// /// @@ -73,6 +110,9 @@ public CcrStatsRequestDescriptor() internal override string OperationName => "ccr.stats"; + public CcrStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public CcrStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs index 774d051bff4..c5fc43d96ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/CcrStatsResponse.g.cs @@ -28,8 +28,19 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class CcrStatsResponse : ElasticsearchResponse { + /// + /// + /// Statistics for the auto-follow coordinator. + /// + /// [JsonInclude, JsonPropertyName("auto_follow_stats")] public Elastic.Clients.Elasticsearch.CrossClusterReplication.AutoFollowStats AutoFollowStats { get; init; } + + /// + /// + /// Shard-level statistics for follower indices. + /// + /// [JsonInclude, JsonPropertyName("follow_stats")] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowStats FollowStats { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs index 838922632ca..1cbf16b757f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/DeleteAutoFollowPatternRequest.g.cs @@ -32,11 +32,21 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class DeleteAutoFollowPatternRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Delete auto-follow patterns. +/// +/// /// Delete a collection of cross-cluster replication auto-follow patterns. /// /// @@ -53,11 +63,23 @@ public DeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : internal override bool SupportsBody => false; internal override string OperationName => "ccr.delete_auto_follow_pattern"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Delete auto-follow patterns. +/// +/// /// Delete a collection of cross-cluster replication auto-follow patterns. /// /// @@ -77,6 +99,8 @@ public DeleteAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Na internal override string OperationName => "ccr.delete_auto_follow_pattern"; + public DeleteAutoFollowPatternRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeleteAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs index 75a456deb2a..b8c78cb0ca8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowInfoRequest.g.cs @@ -32,11 +32,21 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowInfoRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Get follower information. +/// +/// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// @@ -54,11 +64,23 @@ public FollowInfoRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r internal override bool SupportsBody => false; internal override string OperationName => "ccr.follow_info"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Get follower information. +/// +/// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// @@ -83,6 +105,8 @@ public FollowInfoRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.follow_info"; + public FollowInfoRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public FollowInfoRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { RouteValues.Required("index", indices); @@ -97,6 +121,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get follower information. +/// +/// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// @@ -117,6 +143,8 @@ public FollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices internal override string OperationName => "ccr.follow_info"; + public FollowInfoRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public FollowInfoRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { RouteValues.Required("index", indices); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs index bc1b6ba95fe..ca2af361b76 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowRequest.g.cs @@ -34,7 +34,17 @@ public sealed partial class FollowRequestParameters : RequestParameters { /// /// - /// Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be + /// active. + /// A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the + /// remote Lucene segment files to the follower index. /// /// public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } @@ -63,35 +73,139 @@ public FollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => /// /// - /// Sets the number of shard copies that must be active before returning. Defaults to 0. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be + /// active. + /// A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the + /// remote Lucene segment files to the follower index. /// /// [JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } + + /// + /// + /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. + /// + /// + [JsonInclude, JsonPropertyName("data_stream_name")] + public string? DataStreamName { get; set; } + + /// + /// + /// The name of the index in the leader cluster to follow. + /// + /// [JsonInclude, JsonPropertyName("leader_index")] - public Elastic.Clients.Elasticsearch.IndexName? LeaderIndex { get; set; } + public Elastic.Clients.Elasticsearch.IndexName LeaderIndex { get; set; } + + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] public long? MaxOutstandingReadRequests { get; set; } + + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] - public long? MaxOutstandingWriteRequests { get; set; } + public int? MaxOutstandingWriteRequests { get; set; } + + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_operation_count")] - public long? MaxReadRequestOperationCount { get; set; } + public int? MaxReadRequestOperationCount { get; set; } + + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_size")] - public string? MaxReadRequestSize { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; set; } + + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// [JsonInclude, JsonPropertyName("max_retry_delay")] public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; } + + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_count")] - public long? MaxWriteBufferCount { get; set; } + public int? MaxWriteBufferCount { get; set; } + + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_size")] - public string? MaxWriteBufferSize { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; set; } + + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_operation_count")] - public long? MaxWriteRequestOperationCount { get; set; } + public int? MaxWriteRequestOperationCount { get; set; } + + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_size")] - public string? MaxWriteRequestSize { get; set; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; set; } + + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// [JsonInclude, JsonPropertyName("read_poll_timeout")] public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; } + + /// + /// + /// The remote cluster containing the leader index. + /// + /// [JsonInclude, JsonPropertyName("remote_cluster")] - public string? RemoteCluster { get; set; } + public string RemoteCluster { get; set; } + + /// + /// + /// Settings to override from the leader index. + /// + /// + [JsonInclude, JsonPropertyName("settings")] + public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? Settings { get; set; } } /// @@ -121,6 +235,7 @@ public FollowRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.follow"; + public FollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public FollowRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) @@ -129,100 +244,211 @@ public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.In return Self; } - private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } + private string? DataStreamNameValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName LeaderIndexValue { get; set; } private long? MaxOutstandingReadRequestsValue { get; set; } - private long? MaxOutstandingWriteRequestsValue { get; set; } - private long? MaxReadRequestOperationCountValue { get; set; } - private string? MaxReadRequestSizeValue { get; set; } + private int? MaxOutstandingWriteRequestsValue { get; set; } + private int? MaxReadRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - private long? MaxWriteBufferCountValue { get; set; } - private string? MaxWriteBufferSizeValue { get; set; } - private long? MaxWriteRequestOperationCountValue { get; set; } - private string? MaxWriteRequestSizeValue { get; set; } + private int? MaxWriteBufferCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } + private int? MaxWriteRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - private string? RemoteClusterValue { get; set; } + private string RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } + private Action> SettingsDescriptorAction { get; set; } + + /// + /// + /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. + /// + /// + public FollowRequestDescriptor DataStreamName(string? dataStreamName) + { + DataStreamNameValue = dataStreamName; + return Self; + } - public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) + /// + /// + /// The name of the index in the leader cluster to follow. + /// + /// + public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName leaderIndex) { LeaderIndexValue = leaderIndex; return Self; } + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// public FollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) { MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; return Self; } - public FollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// + public FollowRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) { MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; return Self; } - public FollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) { MaxReadRequestOperationCountValue = maxReadRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) { MaxReadRequestSizeValue = maxReadRequestSize; return Self; } + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// public FollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) { MaxRetryDelayValue = maxRetryDelay; return Self; } - public FollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) { MaxWriteBufferCountValue = maxWriteBufferCount; return Self; } - public FollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) { MaxWriteBufferSizeValue = maxWriteBufferSize; return Self; } - public FollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) { MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) { MaxWriteRequestSizeValue = maxWriteRequestSize; return Self; } + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// public FollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) { ReadPollTimeoutValue = readPollTimeout; return Self; } - public FollowRequestDescriptor RemoteCluster(string? remoteCluster) + /// + /// + /// The remote cluster containing the leader index. + /// + /// + public FollowRequestDescriptor RemoteCluster(string remoteCluster) { RemoteClusterValue = remoteCluster; return Self; } + /// + /// + /// Settings to override from the leader index. + /// + /// + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) + { + SettingsDescriptor = null; + SettingsDescriptorAction = null; + SettingsValue = settings; + return Self; + } + + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsValue = null; + SettingsDescriptorAction = null; + SettingsDescriptor = descriptor; + return Self; + } + + public FollowRequestDescriptor Settings(Action> configure) + { + SettingsValue = null; + SettingsDescriptor = null; + SettingsDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (LeaderIndexValue is not null) + if (!string.IsNullOrEmpty(DataStreamNameValue)) { - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); + writer.WritePropertyName("data_stream_name"); + writer.WriteStringValue(DataStreamNameValue); } + writer.WritePropertyName("leader_index"); + JsonSerializer.Serialize(writer, LeaderIndexValue, options); if (MaxOutstandingReadRequestsValue.HasValue) { writer.WritePropertyName("max_outstanding_read_requests"); @@ -241,10 +467,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) + if (MaxReadRequestSizeValue is not null) { writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); + JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); } if (MaxRetryDelayValue is not null) @@ -259,10 +485,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteBufferCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) + if (MaxWriteBufferSizeValue is not null) { writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); + JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); } if (MaxWriteRequestOperationCountValue.HasValue) @@ -271,10 +497,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) + if (MaxWriteRequestSizeValue is not null) { writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); + JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); } if (ReadPollTimeoutValue is not null) @@ -283,10 +509,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); } - if (!string.IsNullOrEmpty(RemoteClusterValue)) + writer.WritePropertyName("remote_cluster"); + writer.WriteStringValue(RemoteClusterValue); + if (SettingsDescriptor is not null) { - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsDescriptor, options); + } + else if (SettingsDescriptorAction is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); + } + else if (SettingsValue is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); } writer.WriteEndObject(); @@ -316,6 +554,7 @@ public FollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : internal override string OperationName => "ccr.follow"; + public FollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public FollowRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) @@ -324,100 +563,211 @@ public FollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName ind return Self; } - private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; } + private string? DataStreamNameValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName LeaderIndexValue { get; set; } private long? MaxOutstandingReadRequestsValue { get; set; } - private long? MaxOutstandingWriteRequestsValue { get; set; } - private long? MaxReadRequestOperationCountValue { get; set; } - private string? MaxReadRequestSizeValue { get; set; } + private int? MaxOutstandingWriteRequestsValue { get; set; } + private int? MaxReadRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; } - private long? MaxWriteBufferCountValue { get; set; } - private string? MaxWriteBufferSizeValue { get; set; } - private long? MaxWriteRequestOperationCountValue { get; set; } - private string? MaxWriteRequestSizeValue { get; set; } + private int? MaxWriteBufferCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; } + private int? MaxWriteRequestOperationCountValue { get; set; } + private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; } - private string? RemoteClusterValue { get; set; } + private string RemoteClusterValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsDescriptor { get; set; } + private Action SettingsDescriptorAction { get; set; } - public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex) + /// + /// + /// If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed. + /// + /// + public FollowRequestDescriptor DataStreamName(string? dataStreamName) + { + DataStreamNameValue = dataStreamName; + return Self; + } + + /// + /// + /// The name of the index in the leader cluster to follow. + /// + /// + public FollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName leaderIndex) { LeaderIndexValue = leaderIndex; return Self; } + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// public FollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests) { MaxOutstandingReadRequestsValue = maxOutstandingReadRequests; return Self; } - public FollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests) + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// + public FollowRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests) { MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests; return Self; } - public FollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount) + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount) { MaxReadRequestOperationCountValue = maxReadRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize) + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// + public FollowRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize) { MaxReadRequestSizeValue = maxReadRequestSize; return Self; } + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// public FollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay) { MaxRetryDelayValue = maxRetryDelay; return Self; } - public FollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount) + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount) { MaxWriteBufferCountValue = maxWriteBufferCount; return Self; } - public FollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize) + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// + public FollowRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize) { MaxWriteBufferSizeValue = maxWriteBufferSize; return Self; } - public FollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount) + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount) { MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount; return Self; } - public FollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize) + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// + public FollowRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize) { MaxWriteRequestSizeValue = maxWriteRequestSize; return Self; } + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// public FollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout) { ReadPollTimeoutValue = readPollTimeout; return Self; } - public FollowRequestDescriptor RemoteCluster(string? remoteCluster) + /// + /// + /// The remote cluster containing the leader index. + /// + /// + public FollowRequestDescriptor RemoteCluster(string remoteCluster) { RemoteClusterValue = remoteCluster; return Self; } + /// + /// + /// Settings to override from the leader index. + /// + /// + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settings) + { + SettingsDescriptor = null; + SettingsDescriptorAction = null; + SettingsValue = settings; + return Self; + } + + public FollowRequestDescriptor Settings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsValue = null; + SettingsDescriptorAction = null; + SettingsDescriptor = descriptor; + return Self; + } + + public FollowRequestDescriptor Settings(Action configure) + { + SettingsValue = null; + SettingsDescriptor = null; + SettingsDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (LeaderIndexValue is not null) + if (!string.IsNullOrEmpty(DataStreamNameValue)) { - writer.WritePropertyName("leader_index"); - JsonSerializer.Serialize(writer, LeaderIndexValue, options); + writer.WritePropertyName("data_stream_name"); + writer.WriteStringValue(DataStreamNameValue); } + writer.WritePropertyName("leader_index"); + JsonSerializer.Serialize(writer, LeaderIndexValue, options); if (MaxOutstandingReadRequestsValue.HasValue) { writer.WritePropertyName("max_outstanding_read_requests"); @@ -436,10 +786,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxReadRequestSizeValue)) + if (MaxReadRequestSizeValue is not null) { writer.WritePropertyName("max_read_request_size"); - writer.WriteStringValue(MaxReadRequestSizeValue); + JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options); } if (MaxRetryDelayValue is not null) @@ -454,10 +804,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteBufferCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue)) + if (MaxWriteBufferSizeValue is not null) { writer.WritePropertyName("max_write_buffer_size"); - writer.WriteStringValue(MaxWriteBufferSizeValue); + JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options); } if (MaxWriteRequestOperationCountValue.HasValue) @@ -466,10 +816,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value); } - if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue)) + if (MaxWriteRequestSizeValue is not null) { writer.WritePropertyName("max_write_request_size"); - writer.WriteStringValue(MaxWriteRequestSizeValue); + JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options); } if (ReadPollTimeoutValue is not null) @@ -478,10 +828,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options); } - if (!string.IsNullOrEmpty(RemoteClusterValue)) + writer.WritePropertyName("remote_cluster"); + writer.WriteStringValue(RemoteClusterValue); + if (SettingsDescriptor is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsDescriptor, options); + } + else if (SettingsDescriptorAction is not null) + { + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsDescriptorAction), options); + } + else if (SettingsValue is not null) { - writer.WritePropertyName("remote_cluster"); - writer.WriteStringValue(RemoteClusterValue); + writer.WritePropertyName("settings"); + JsonSerializer.Serialize(writer, SettingsValue, options); } writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs index a08fd5c57f4..840059b0fd9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsRequest.g.cs @@ -32,11 +32,20 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowStatsRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Get follower stats. +/// +/// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// @@ -54,11 +63,22 @@ public FollowStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base( internal override bool SupportsBody => false; internal override string OperationName => "ccr.follow_stats"; + + /// + /// + /// The period to wait for a response. + /// If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Get follower stats. +/// +/// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// @@ -83,6 +103,8 @@ public FollowStatsRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.follow_stats"; + public FollowStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public FollowStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { RouteValues.Required("index", indices); @@ -97,6 +119,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get follower stats. +/// +/// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// @@ -117,6 +141,8 @@ public FollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indice internal override string OperationName => "ccr.follow_stats"; + public FollowStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public FollowStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { RouteValues.Required("index", indices); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs index 46fc142371f..c7e7733596a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/FollowStatsResponse.g.cs @@ -28,6 +28,11 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowStatsResponse : ElasticsearchResponse { + /// + /// + /// An array of follower index statistics. + /// + /// [JsonInclude, JsonPropertyName("indices")] public IReadOnlyCollection Indices { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs index 83afef716e7..21ee2cc2092 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ForgetFollowerRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class ForgetFollowerRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -66,6 +72,13 @@ public ForgetFollowerRequest(Elastic.Clients.Elasticsearch.IndexName index) : ba internal override string OperationName => "ccr.forget_follower"; + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } [JsonInclude, JsonPropertyName("follower_cluster")] public string? FollowerCluster { get; set; } [JsonInclude, JsonPropertyName("follower_index")] @@ -114,6 +127,8 @@ public ForgetFollowerRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.forget_follower"; + public ForgetFollowerRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public ForgetFollowerRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); @@ -214,6 +229,8 @@ public ForgetFollowerRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName i internal override string OperationName => "ccr.forget_follower"; + public ForgetFollowerRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + public ForgetFollowerRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs index 0d67104509e..1481b87b537 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/GetAutoFollowPatternRequest.g.cs @@ -32,11 +32,21 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class GetAutoFollowPatternRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Get auto-follow patterns. +/// +/// /// Get cross-cluster replication auto-follow patterns. /// /// @@ -57,11 +67,23 @@ public GetAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name? name) : b internal override bool SupportsBody => false; internal override string OperationName => "ccr.get_auto_follow_pattern"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Get auto-follow patterns. +/// +/// /// Get cross-cluster replication auto-follow patterns. /// /// @@ -85,6 +107,8 @@ public GetAutoFollowPatternRequestDescriptor() internal override string OperationName => "ccr.get_auto_follow_pattern"; + public GetAutoFollowPatternRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) { RouteValues.Optional("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs index 6d1d06ba408..e17b4e17bc0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseAutoFollowPatternRequest.g.cs @@ -32,11 +32,21 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class PauseAutoFollowPatternRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Pause an auto-follow pattern. +/// +/// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -60,11 +70,23 @@ public PauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : internal override bool SupportsBody => false; internal override string OperationName => "ccr.pause_auto_follow_pattern"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Pause an auto-follow pattern. +/// +/// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -91,6 +113,8 @@ public PauseAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Nam internal override string OperationName => "ccr.pause_auto_follow_pattern"; + public PauseAutoFollowPatternRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PauseAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs index ba974a7ce62..5c25d7eaa7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PauseFollowRequest.g.cs @@ -32,11 +32,21 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class PauseFollowRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Pause a follower. +/// +/// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. @@ -56,11 +66,23 @@ public PauseFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( internal override bool SupportsBody => false; internal override string OperationName => "ccr.pause_follow"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Pause a follower. +/// +/// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. @@ -87,6 +109,8 @@ public PauseFollowRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.pause_follow"; + public PauseFollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PauseFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); @@ -101,6 +125,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Pause a follower. +/// +/// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. @@ -123,6 +149,8 @@ public PauseFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName inde internal override string OperationName => "ccr.pause_follow"; + public PauseFollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PauseFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs index 0d2b49c3377..172ee9422d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/PutAutoFollowPatternRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class PutAutoFollowPatternRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -60,6 +66,14 @@ public PutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : ba internal override string OperationName => "ccr.put_auto_follow_pattern"; + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// The name of follower index. The template {{leader_index}} can be used to derive the name of the follower index from the name of the leader index. When following a data stream, use {{leader_index}}; CCR does not support changes to the names of a follower data stream’s backing indices. @@ -209,6 +223,8 @@ public PutAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name internal override string OperationName => "ccr.put_auto_follow_pattern"; + public PutAutoFollowPatternRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PutAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs index 33dd4afe9a4..7fb9ccb2d7a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeAutoFollowPatternRequest.g.cs @@ -32,11 +32,21 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class ResumeAutoFollowPatternRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Resume an auto-follow pattern. +/// +/// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. @@ -55,11 +65,23 @@ public ResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : internal override bool SupportsBody => false; internal override string OperationName => "ccr.resume_auto_follow_pattern"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Resume an auto-follow pattern. +/// +/// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. @@ -81,6 +103,8 @@ public ResumeAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Na internal override string OperationName => "ccr.resume_auto_follow_pattern"; + public ResumeAutoFollowPatternRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public ResumeAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs index ab0686ccb90..f9b1356d4fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/ResumeFollowRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class ResumeFollowRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -57,6 +63,13 @@ public ResumeFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base internal override string OperationName => "ccr.resume_follow"; + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] public long? MaxOutstandingReadRequests { get; set; } [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] @@ -108,6 +121,8 @@ public ResumeFollowRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.resume_follow"; + public ResumeFollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public ResumeFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); @@ -277,6 +292,8 @@ public ResumeFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName ind internal override string OperationName => "ccr.resume_follow"; + public ResumeFollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public ResumeFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs index ab1fab0076b..d77e5bbca0b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CrossClusterReplication/UnfollowRequest.g.cs @@ -32,17 +32,28 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class UnfollowRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Unfollow an index. +/// +/// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// -/// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. +/// info +/// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// /// public sealed partial class UnfollowRequest : PlainRequest @@ -58,17 +69,30 @@ public UnfollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r = internal override bool SupportsBody => false; internal override string OperationName => "ccr.unfollow"; + + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// It can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Unfollow an index. +/// +/// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// -/// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. +/// info +/// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// /// public sealed partial class UnfollowRequestDescriptor : RequestDescriptor, UnfollowRequestParameters> @@ -91,6 +115,8 @@ public UnfollowRequestDescriptor() : this(typeof(TDocument)) internal override string OperationName => "ccr.unfollow"; + public UnfollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public UnfollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); @@ -105,12 +131,15 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Unfollow an index. +/// +/// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// -/// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. +/// info +/// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// /// public sealed partial class UnfollowRequestDescriptor : RequestDescriptor @@ -129,6 +158,8 @@ public UnfollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) internal override string OperationName => "ccr.unfollow"; + public UnfollowRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public UnfollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { RouteValues.Required("index", index); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 69efb1ad911..0ef96b3729e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -91,7 +91,7 @@ public sealed partial class DeleteByQueryRequestParameters : RequestParameters /// /// - /// Starting offset (default: 0) + /// Skips the specified number of documents. /// /// public long? From { get => Q("from"); set => Q("from", value); } @@ -487,7 +487,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Starting offset (default: 0) + /// Skips the specified number of documents. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs index 6e2547bbd3c..404277ff3cb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Enrich; public sealed partial class DeletePolicyRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -53,6 +59,14 @@ public DeletePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => internal override bool SupportsBody => false; internal override string OperationName => "enrich.delete_policy"; + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -77,6 +91,8 @@ public DeletePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : internal override string OperationName => "enrich.delete_policy"; + public DeletePolicyRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeletePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs index 83c270e3f05..4352504b8e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Enrich; public sealed partial class EnrichStatsRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -49,6 +55,14 @@ public sealed partial class EnrichStatsRequest : PlainRequest false; internal override string OperationName => "enrich.stats"; + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -73,6 +87,8 @@ public EnrichStatsRequestDescriptor() internal override string OperationName => "enrich.stats"; + public EnrichStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs index daa404fd68f..bb197206557 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.Enrich; public sealed partial class ExecutePolicyRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// If true, the request blocks other enrich policy execution requests until complete. @@ -60,6 +67,14 @@ public ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => internal override string OperationName => "enrich.execute_policy"; + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// If true, the request blocks other enrich policy execution requests until complete. @@ -91,6 +106,7 @@ public ExecutePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : internal override string OperationName => "enrich.execute_policy"; + public ExecutePolicyRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ExecutePolicyRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); public ExecutePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs index 16db521cad5..90bcf604af6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs @@ -30,6 +30,6 @@ public sealed partial class ExecutePolicyResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.Enrich.ExecuteEnrichPolicyStatus? Status { get; init; } - [JsonInclude, JsonPropertyName("task_id")] - public Elastic.Clients.Elasticsearch.TaskId? TaskId { get; init; } + [JsonInclude, JsonPropertyName("task")] + public Elastic.Clients.Elasticsearch.TaskId? Task { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs index 48e5c1b5181..7f6ae0f7dbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Enrich; public sealed partial class GetPolicyRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -57,6 +63,14 @@ public GetPolicyRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r internal override bool SupportsBody => false; internal override string OperationName => "enrich.get_policy"; + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -85,6 +99,8 @@ public GetPolicyRequestDescriptor() internal override string OperationName => "enrich.get_policy"; + public GetPolicyRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) { RouteValues.Optional("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs index 7431d4cedbb..9aad2024b09 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Enrich; public sealed partial class PutPolicyRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -54,6 +60,14 @@ public PutPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.R internal override string OperationName => "enrich.put_policy"; + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// Matches enrich data to incoming documents based on a geo_shape query. @@ -101,6 +115,8 @@ public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : bas internal override string OperationName => "enrich.put_policy"; + public PutPolicyRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); @@ -281,6 +297,8 @@ public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : bas internal override string OperationName => "enrich.put_policy"; + public PutPolicyRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs index b808cd86302..ccdd1f5ef9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlGetResponse.g.cs @@ -60,6 +60,14 @@ public sealed partial class EqlGetResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("is_running")] public bool? IsRunning { get; init; } + /// + /// + /// Contains information about shard failures (if any), in case allow_partial_search_results=true + /// + /// + [JsonInclude, JsonPropertyName("shard_failures")] + public IReadOnlyCollection? ShardFailures { get; init; } + /// /// /// If true, the request timed out before completion. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index d9b227b20ef..445eb5581e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -76,6 +76,26 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Allow query execution also in case of shard failures. + /// If true, the query will keep running and will return results based on the available shards. + /// For sequences, the behavior can be further refined using allow_partial_sequence_results + /// + /// + [JsonInclude, JsonPropertyName("allow_partial_search_results")] + public bool? AllowPartialSearchResults { get; set; } + + /// + /// + /// This flag applies only to sequences and has effect only if allow_partial_search_results=true. + /// If true, the sequence query will return results based on the available shards, ignoring the others. + /// If false, the sequence query will return successfully, but will always have empty results. + /// + /// + [JsonInclude, JsonPropertyName("allow_partial_sequence_results")] + public bool? AllowPartialSequenceResults { get; set; } [JsonInclude, JsonPropertyName("case_sensitive")] public bool? CaseSensitive { get; set; } @@ -117,6 +137,16 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude, JsonPropertyName("keep_on_completion")] public bool? KeepOnCompletion { get; set; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + [JsonInclude, JsonPropertyName("max_samples_per_key")] + public int? MaxSamplesPerKey { get; set; } + /// /// /// EQL query you wish to run. @@ -193,6 +223,8 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear return Self; } + private bool? AllowPartialSearchResultsValue { get; set; } + private bool? AllowPartialSequenceResultsValue { get; set; } private bool? CaseSensitiveValue { get; set; } private Elastic.Clients.Elasticsearch.Field? EventCategoryFieldValue { get; set; } private int? FetchSizeValue { get; set; } @@ -206,6 +238,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Action>[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } + private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary> RuntimeMappingsValue { get; set; } @@ -214,6 +247,32 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Elastic.Clients.Elasticsearch.Field? TimestampFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } + /// + /// + /// Allow query execution also in case of shard failures. + /// If true, the query will keep running and will return results based on the available shards. + /// For sequences, the behavior can be further refined using allow_partial_sequence_results + /// + /// + public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) + { + AllowPartialSearchResultsValue = allowPartialSearchResults; + return Self; + } + + /// + /// + /// This flag applies only to sequences and has effect only if allow_partial_search_results=true. + /// If true, the sequence query will return results based on the available shards, ignoring the others. + /// If false, the sequence query will return successfully, but will always have empty results. + /// + /// + public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) + { + AllowPartialSequenceResultsValue = allowPartialSequenceResults; + return Self; + } + public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) { CaseSensitiveValue = caseSensitive; @@ -358,6 +417,19 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnComple return Self; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) + { + MaxSamplesPerKeyValue = maxSamplesPerKey; + return Self; + } + /// /// /// EQL query you wish to run. @@ -467,6 +539,18 @@ public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Cl protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowPartialSearchResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_search_results"); + writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); + } + + if (AllowPartialSequenceResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_sequence_results"); + writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); + } + if (CaseSensitiveValue.HasValue) { writer.WritePropertyName("case_sensitive"); @@ -555,6 +639,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } + if (MaxSamplesPerKeyValue.HasValue) + { + writer.WritePropertyName("max_samples_per_key"); + writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); + } + writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) @@ -630,6 +720,8 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices return Self; } + private bool? AllowPartialSearchResultsValue { get; set; } + private bool? AllowPartialSequenceResultsValue { get; set; } private bool? CaseSensitiveValue { get; set; } private Elastic.Clients.Elasticsearch.Field? EventCategoryFieldValue { get; set; } private int? FetchSizeValue { get; set; } @@ -643,6 +735,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Action[] FilterDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Duration? KeepAliveValue { get; set; } private bool? KeepOnCompletionValue { get; set; } + private int? MaxSamplesPerKeyValue { get; set; } private string QueryValue { get; set; } private Elastic.Clients.Elasticsearch.Eql.ResultPosition? ResultPositionValue { get; set; } private IDictionary RuntimeMappingsValue { get; set; } @@ -651,6 +744,32 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Elastic.Clients.Elasticsearch.Field? TimestampFieldValue { get; set; } private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } + /// + /// + /// Allow query execution also in case of shard failures. + /// If true, the query will keep running and will return results based on the available shards. + /// For sequences, the behavior can be further refined using allow_partial_sequence_results + /// + /// + public EqlSearchRequestDescriptor AllowPartialSearchResults(bool? allowPartialSearchResults = true) + { + AllowPartialSearchResultsValue = allowPartialSearchResults; + return Self; + } + + /// + /// + /// This flag applies only to sequences and has effect only if allow_partial_search_results=true. + /// If true, the sequence query will return results based on the available shards, ignoring the others. + /// If false, the sequence query will return successfully, but will always have empty results. + /// + /// + public EqlSearchRequestDescriptor AllowPartialSequenceResults(bool? allowPartialSequenceResults = true) + { + AllowPartialSequenceResultsValue = allowPartialSequenceResults; + return Self; + } + public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) { CaseSensitiveValue = caseSensitive; @@ -795,6 +914,19 @@ public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true return Self; } + /// + /// + /// By default, the response of a sample query contains up to 10 samples, with one sample per unique set of join keys. Use the size + /// parameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use the + /// max_samples_per_key parameter. Pipes are not supported for sample queries. + /// + /// + public EqlSearchRequestDescriptor MaxSamplesPerKey(int? maxSamplesPerKey) + { + MaxSamplesPerKeyValue = maxSamplesPerKey; + return Self; + } + /// /// /// EQL query you wish to run. @@ -904,6 +1036,18 @@ public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elast protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AllowPartialSearchResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_search_results"); + writer.WriteBooleanValue(AllowPartialSearchResultsValue.Value); + } + + if (AllowPartialSequenceResultsValue.HasValue) + { + writer.WritePropertyName("allow_partial_sequence_results"); + writer.WriteBooleanValue(AllowPartialSequenceResultsValue.Value); + } + if (CaseSensitiveValue.HasValue) { writer.WritePropertyName("case_sensitive"); @@ -992,6 +1136,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(KeepOnCompletionValue.Value); } + if (MaxSamplesPerKeyValue.HasValue) + { + writer.WritePropertyName("max_samples_per_key"); + writer.WriteNumberValue(MaxSamplesPerKeyValue.Value); + } + writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); if (ResultPositionValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs index 1f4602dc9b6..720dbc35012 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchResponse.g.cs @@ -60,6 +60,14 @@ public sealed partial class EqlSearchResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("is_running")] public bool? IsRunning { get; init; } + /// + /// + /// Contains information about shard failures (if any), in case allow_partial_search_results=true + /// + /// + [JsonInclude, JsonPropertyName("shard_failures")] + public IReadOnlyCollection? ShardFailures { get; init; } + /// /// /// If true, the request timed out before completion. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs index ee4cbf7d5be..d532cd46774 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs @@ -72,16 +72,6 @@ public sealed partial class AsyncQueryRequestParameters : RequestParameters /// /// public bool? KeepOnCompletion { get => Q("keep_on_completion"); set => Q("keep_on_completion", value); } - - /// - /// - /// The period to wait for the request to finish. - /// By default, the request waits for 1 second for the query results. - /// If the query completes during this period, results are returned - /// Otherwise, a query ID is returned that can later be used to retrieve the results. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } } /// @@ -149,17 +139,6 @@ public sealed partial class AsyncQueryRequest : PlainRequest Q("keep_on_completion"); set => Q("keep_on_completion", value); } - /// - /// - /// The period to wait for the request to finish. - /// By default, the request waits for 1 second for the query results. - /// If the query completes during this period, results are returned - /// Otherwise, a query ID is returned that can later be used to retrieve the results. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", 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. @@ -214,6 +193,17 @@ public sealed partial class AsyncQueryRequest : PlainRequest [JsonInclude, JsonPropertyName("query")] public string Query { get; set; } + + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for 1 second for the query results. + /// If the query completes during this period, results are returned + /// Otherwise, a query ID is returned that can later be used to retrieve the results. + /// + /// + [JsonInclude, JsonPropertyName("wait_for_completion_timeout")] + public Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeout { get; set; } } /// @@ -246,7 +236,6 @@ public AsyncQueryRequestDescriptor() public AsyncQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Esql.EsqlFormat? format) => Qs("format", format); public AsyncQueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); public AsyncQueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); - public AsyncQueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); private bool? ColumnarValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } @@ -257,6 +246,7 @@ public AsyncQueryRequestDescriptor() private ICollection? ParamsValue { get; set; } private bool? ProfileValue { get; set; } private string QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } /// /// @@ -353,6 +343,20 @@ public AsyncQueryRequestDescriptor Query(string query) return Self; } + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for 1 second for the query results. + /// If the query completes during this period, results are returned + /// Otherwise, a query ID is returned that can later be used to retrieve the results. + /// + /// + public AsyncQueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) + { + WaitForCompletionTimeoutValue = waitForCompletionTimeout; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -404,6 +408,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); + if (WaitForCompletionTimeoutValue is not null) + { + writer.WritePropertyName("wait_for_completion_timeout"); + JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); + } + writer.WriteEndObject(); } } @@ -438,7 +448,6 @@ public AsyncQueryRequestDescriptor() public AsyncQueryRequestDescriptor Format(Elastic.Clients.Elasticsearch.Esql.EsqlFormat? format) => Qs("format", format); public AsyncQueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); public AsyncQueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) => Qs("keep_on_completion", keepOnCompletion); - public AsyncQueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); private bool? ColumnarValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.Query? FilterValue { get; set; } @@ -449,6 +458,7 @@ public AsyncQueryRequestDescriptor() private ICollection? ParamsValue { get; set; } private bool? ProfileValue { get; set; } private string QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } /// /// @@ -545,6 +555,20 @@ public AsyncQueryRequestDescriptor Query(string query) return Self; } + /// + /// + /// The period to wait for the request to finish. + /// By default, the request waits for 1 second for the query results. + /// If the query completes during this period, results are returned + /// Otherwise, a query ID is returned that can later be used to retrieve the results. + /// + /// + public AsyncQueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Duration? waitForCompletionTimeout) + { + WaitForCompletionTimeoutValue = waitForCompletionTimeout; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -596,6 +620,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("query"); writer.WriteStringValue(QueryValue); + if (WaitForCompletionTimeoutValue is not null) + { + writer.WritePropertyName("wait_for_completion_timeout"); + JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs new file mode 100644 index 00000000000..0793ddf3637 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopRequest.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryStopRequestParameters : RequestParameters +{ + /// + /// + /// Indicates whether columns that are entirely null will be removed from the columns and values portion of the results. + /// If true, the response will include an extra section under the name all_columns which has the name of all the columns. + /// + /// + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } +} + +/// +/// +/// Stop async ES|QL query. +/// +/// +/// This API interrupts the query execution and returns the results so far. +/// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. +/// +/// +public sealed partial class AsyncQueryStopRequest : PlainRequest +{ + public AsyncQueryStopRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryStop; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_stop"; + + /// + /// + /// Indicates whether columns that are entirely null will be removed from the columns and values portion of the results. + /// If true, the response will include an extra section under the name all_columns which has the name of all the columns. + /// + /// + [JsonIgnore] + public bool? DropNullColumns { get => Q("drop_null_columns"); set => Q("drop_null_columns", value); } +} + +/// +/// +/// Stop async ES|QL query. +/// +/// +/// This API interrupts the query execution and returns the results so far. +/// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. +/// +/// +public sealed partial class AsyncQueryStopRequestDescriptor : RequestDescriptor, AsyncQueryStopRequestParameters> +{ + internal AsyncQueryStopRequestDescriptor(Action> configure) => configure.Invoke(this); + + public AsyncQueryStopRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryStop; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_stop"; + + public AsyncQueryStopRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + + public AsyncQueryStopRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Stop async ES|QL query. +/// +/// +/// This API interrupts the query execution and returns the results so far. +/// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. +/// +/// +public sealed partial class AsyncQueryStopRequestDescriptor : RequestDescriptor +{ + internal AsyncQueryStopRequestDescriptor(Action configure) => configure.Invoke(this); + + public AsyncQueryStopRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EsqlAsyncQueryStop; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "esql.async_query_stop"; + + public AsyncQueryStopRequestDescriptor DropNullColumns(bool? dropNullColumns = true) => Qs("drop_null_columns", dropNullColumns); + + public AsyncQueryStopRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs new file mode 100644 index 00000000000..bd148952585 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Esql; + +public sealed partial class AsyncQueryStopResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs index ec3b39f037f..06c4e4f4a9d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/GetFeaturesRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Features; public sealed partial class GetFeaturesRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -59,6 +65,14 @@ public sealed partial class GetFeaturesRequest : PlainRequest false; internal override string OperationName => "features.get_features"; + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -93,6 +107,8 @@ public GetFeaturesRequestDescriptor() internal override string OperationName => "features.get_features"; + public GetFeaturesRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs index 5a4891114bd..ec96a1fddaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Features/ResetFeaturesRequest.g.cs @@ -32,6 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Features; public sealed partial class ResetFeaturesRequestParameters : RequestParameters { + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -70,6 +76,14 @@ public sealed partial class ResetFeaturesRequest : PlainRequest false; internal override string OperationName => "features.reset_features"; + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -115,6 +129,8 @@ public ResetFeaturesRequestDescriptor() internal override string OperationName => "features.reset_features"; + public ResetFeaturesRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs index 7ca469ce9c7..5fd6fa2fd1b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/GetIlmStatusRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class GetIlmStatusRequestParameters : RequestParameters /// /// /// Get the ILM status. +/// +/// /// Get the current index lifecycle management status. /// /// @@ -54,6 +56,8 @@ public sealed partial class GetIlmStatusRequest : PlainRequest /// /// Get the ILM status. +/// +/// /// Get the current index lifecycle management status. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs index 5849282dd88..9f5efacdb19 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StartIlmRequest.g.cs @@ -34,14 +34,14 @@ public sealed partial class StartIlmRequestParameters : RequestParameters { /// /// - /// Explicit operation timeout for connection to master node + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Explicit operation timeout + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -67,7 +67,7 @@ public sealed partial class StartIlmRequest : PlainRequest /// - /// Explicit operation timeout for connection to master node + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. /// /// [JsonIgnore] @@ -75,7 +75,7 @@ public sealed partial class StartIlmRequest : PlainRequest /// - /// Explicit operation timeout + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs index 3cd7e0ddf37..c6f78fe937c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexLifecycleManagement/StopIlmRequest.g.cs @@ -34,14 +34,14 @@ public sealed partial class StopIlmRequestParameters : RequestParameters { /// /// - /// Explicit operation timeout for connection to master node + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// /// - /// Explicit operation timeout + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -70,7 +70,7 @@ public sealed partial class StopIlmRequest : PlainRequest /// - /// Explicit operation timeout for connection to master node + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. /// /// [JsonIgnore] @@ -78,7 +78,7 @@ public sealed partial class StopIlmRequest : PlainRequest /// - /// Explicit operation timeout + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs new file mode 100644 index 00000000000..3ed2e4ebca8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexRequest.g.cs @@ -0,0 +1,132 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class CancelMigrateReindexRequestParameters : RequestParameters +{ +} + +/// +/// +/// Cancel a migration reindex operation. +/// +/// +/// Cancel a migration reindex attempt for a data stream or index. +/// +/// +public sealed partial class CancelMigrateReindexRequest : PlainRequest +{ + public CancelMigrateReindexRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCancelMigrateReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.cancel_migrate_reindex"; +} + +/// +/// +/// Cancel a migration reindex operation. +/// +/// +/// Cancel a migration reindex attempt for a data stream or index. +/// +/// +public sealed partial class CancelMigrateReindexRequestDescriptor : RequestDescriptor, CancelMigrateReindexRequestParameters> +{ + internal CancelMigrateReindexRequestDescriptor(Action> configure) => configure.Invoke(this); + + public CancelMigrateReindexRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + public CancelMigrateReindexRequestDescriptor() : this(typeof(TDocument)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCancelMigrateReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.cancel_migrate_reindex"; + + public CancelMigrateReindexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Cancel a migration reindex operation. +/// +/// +/// Cancel a migration reindex attempt for a data stream or index. +/// +/// +public sealed partial class CancelMigrateReindexRequestDescriptor : RequestDescriptor +{ + internal CancelMigrateReindexRequestDescriptor(Action configure) => configure.Invoke(this); + + public CancelMigrateReindexRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCancelMigrateReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.cancel_migrate_reindex"; + + public CancelMigrateReindexRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs new file mode 100644 index 00000000000..55bcf0e6522 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CancelMigrateReindexResponse.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class CancelMigrateReindexResponse : ElasticsearchResponse +{ + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs index 1c318a40ef9..73a14301b44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateDataStreamRequest.g.cs @@ -50,7 +50,8 @@ public sealed partial class CreateDataStreamRequestParameters : RequestParameter /// /// /// Create a data stream. -/// Creates a data stream. +/// +/// /// You must have a matching index template with data stream enabled. /// /// @@ -88,7 +89,8 @@ public CreateDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamName name /// /// /// Create a data stream. -/// Creates a data stream. +/// +/// /// You must have a matching index template with data stream enabled. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs new file mode 100644 index 00000000000..e4801583cd2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromRequest.g.cs @@ -0,0 +1,200 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class CreateFromRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an index from a source index. +/// +/// +/// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. +/// +/// +public sealed partial class CreateFromRequest : PlainRequest, ISelfSerializable +{ + public CreateFromRequest(Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) : base(r => r.Required("source", source).Required("dest", dest)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreateFrom; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "indices.create_from"; + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom CreateFrom { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, CreateFrom, options); + } +} + +/// +/// +/// Create an index from a source index. +/// +/// +/// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. +/// +/// +public sealed partial class CreateFromRequestDescriptor : RequestDescriptor, CreateFromRequestParameters> +{ + internal CreateFromRequestDescriptor(Action> configure) => configure.Invoke(this); + public CreateFromRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) : base(r => r.Required("source", source).Required("dest", dest)) => CreateFromValue = createFrom; + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreateFrom; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "indices.create_from"; + + public CreateFromRequestDescriptor Dest(Elastic.Clients.Elasticsearch.IndexName dest) + { + RouteValues.Required("dest", dest); + return Self; + } + + public CreateFromRequestDescriptor Source(Elastic.Clients.Elasticsearch.IndexName source) + { + RouteValues.Required("source", source); + return Self; + } + + private Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom CreateFromValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.CreateFromDescriptor CreateFromDescriptor { get; set; } + private Action> CreateFromDescriptorAction { get; set; } + + public CreateFromRequestDescriptor CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom) + { + CreateFromDescriptor = null; + CreateFromDescriptorAction = null; + CreateFromValue = createFrom; + return Self; + } + + public CreateFromRequestDescriptor CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFromDescriptor descriptor) + { + CreateFromValue = null; + CreateFromDescriptorAction = null; + CreateFromDescriptor = descriptor; + return Self; + } + + public CreateFromRequestDescriptor CreateFrom(Action> configure) + { + CreateFromValue = null; + CreateFromDescriptor = null; + CreateFromDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, CreateFromValue, options); + } +} + +/// +/// +/// Create an index from a source index. +/// +/// +/// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. +/// +/// +public sealed partial class CreateFromRequestDescriptor : RequestDescriptor +{ + internal CreateFromRequestDescriptor(Action configure) => configure.Invoke(this); + public CreateFromRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) : base(r => r.Required("source", source).Required("dest", dest)) => CreateFromValue = createFrom; + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementCreateFrom; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "indices.create_from"; + + public CreateFromRequestDescriptor Dest(Elastic.Clients.Elasticsearch.IndexName dest) + { + RouteValues.Required("dest", dest); + return Self; + } + + public CreateFromRequestDescriptor Source(Elastic.Clients.Elasticsearch.IndexName source) + { + RouteValues.Required("source", source); + return Self; + } + + private Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom CreateFromValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.CreateFromDescriptor CreateFromDescriptor { get; set; } + private Action CreateFromDescriptorAction { get; set; } + + public CreateFromRequestDescriptor CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom) + { + CreateFromDescriptor = null; + CreateFromDescriptorAction = null; + CreateFromValue = createFrom; + return Self; + } + + public CreateFromRequestDescriptor CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFromDescriptor descriptor) + { + CreateFromValue = null; + CreateFromDescriptorAction = null; + CreateFromDescriptor = descriptor; + return Self; + } + + public CreateFromRequestDescriptor CreateFrom(Action configure) + { + CreateFromValue = null; + CreateFromDescriptor = null; + CreateFromDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, CreateFromValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs new file mode 100644 index 00000000000..950cfef3fd3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CreateFromResponse.g.cs @@ -0,0 +1,37 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class CreateFromResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("shards_acknowledged")] + public bool ShardsAcknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs index 91a722ceab5..1f4ee6836ce 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs @@ -44,7 +44,9 @@ public sealed partial class DataStreamsStatsRequestParameters : RequestParameter /// /// /// Get data stream stats. -/// Retrieves statistics for one or more data streams. +/// +/// +/// Get statistics for one or more data streams. /// /// public sealed partial class DataStreamsStatsRequest : PlainRequest @@ -78,7 +80,9 @@ public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.IndexName? name) : /// /// /// Get data stream stats. -/// Retrieves statistics for one or more data streams. +/// +/// +/// Get statistics for one or more data streams. /// /// public sealed partial class DataStreamsStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index 497533fe195..addfadd2ca5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -61,7 +61,9 @@ public sealed partial class ExistsAliasRequestParameters : RequestParameters /// /// /// Check aliases. -/// Checks if one or more data stream or index aliases exist. +/// +/// +/// Check if one or more data stream or index aliases exist. /// /// public sealed partial class ExistsAliasRequest : PlainRequest @@ -114,7 +116,9 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elasti /// /// /// Check aliases. -/// Checks if one or more data stream or index aliases exist. +/// +/// +/// Check if one or more data stream or index aliases exist. /// /// public sealed partial class ExistsAliasRequestDescriptor : RequestDescriptor, ExistsAliasRequestParameters> @@ -161,7 +165,9 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Check aliases. -/// Checks if one or more data stream or index aliases exist. +/// +/// +/// Check if one or more data stream or index aliases exist. /// /// public sealed partial class ExistsAliasRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs index 0fafea15669..477d8fbeeda 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateRequest.g.cs @@ -32,6 +32,20 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class ExistsIndexTemplateRequestParameters : RequestParameters { + /// + /// + /// If true, returns settings in flat format. + /// + /// + public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + + /// + /// + /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. + /// + /// + public bool? Local { get => Q("local"); set => Q("local", value); } + /// /// /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. @@ -43,6 +57,8 @@ public sealed partial class ExistsIndexTemplateRequestParameters : RequestParame /// /// /// Check index templates. +/// +/// /// Check whether index templates exist. /// /// @@ -60,6 +76,22 @@ public ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : bas internal override string OperationName => "indices.exists_index_template"; + /// + /// + /// If true, returns settings in flat format. + /// + /// + [JsonIgnore] + public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + + /// + /// + /// If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node. + /// + /// + [JsonIgnore] + public bool? Local { get => Q("local"); set => Q("local", value); } + /// /// /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. @@ -72,6 +104,8 @@ public ExistsIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : bas /// /// /// Check index templates. +/// +/// /// Check whether index templates exist. /// /// @@ -91,6 +125,8 @@ public ExistsIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name n internal override string OperationName => "indices.exists_index_template"; + public ExistsIndexTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); + public ExistsIndexTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ExistsIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index 3d7957b2e4d..61a36ba906e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -63,30 +63,6 @@ public sealed partial class FieldUsageStatsRequestParameters : RequestParameters /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// @@ -150,33 +126,6 @@ public FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : b /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - - /// - /// - /// Period to wait for a response. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } - - /// - /// - /// The number of shard copies that must be active before proceeding with the operation. - /// Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1). - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// @@ -215,9 +164,6 @@ public FieldUsageStatsRequestDescriptor() : this(typeof(TDocument)) public FieldUsageStatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FieldUsageStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public FieldUsageStatsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FieldUsageStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public FieldUsageStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public FieldUsageStatsRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); public FieldUsageStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { @@ -262,9 +208,6 @@ public FieldUsageStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices in public FieldUsageStatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FieldUsageStatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public FieldUsageStatsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public FieldUsageStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public FieldUsageStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public FieldUsageStatsRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); public FieldUsageStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs index 49f3058f361..52efdea94e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -59,7 +59,9 @@ public sealed partial class GetDataLifecycleRequestParameters : RequestParameter /// /// /// Get data stream lifecycles. -/// Retrieves the data stream lifecycle configuration of one or more data streams. +/// +/// +/// Get the data stream lifecycle configuration of one or more data streams. /// /// public sealed partial class GetDataLifecycleRequest : PlainRequest @@ -106,7 +108,9 @@ public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam /// /// /// Get data stream lifecycles. -/// Retrieves the data stream lifecycle configuration of one or more data streams. +/// +/// +/// Get the data stream lifecycle configuration of one or more data streams. /// /// public sealed partial class GetDataLifecycleRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs index ce6a1e7e754..82a441c4e93 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataStreamRequest.g.cs @@ -65,7 +65,9 @@ public sealed partial class GetDataStreamRequestParameters : RequestParameters /// /// /// Get data streams. -/// Retrieves information about one or more data streams. +/// +/// +/// Get information about one or more data streams. /// /// public sealed partial class GetDataStreamRequest : PlainRequest @@ -123,7 +125,9 @@ public GetDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames? name) /// /// /// Get data streams. -/// Retrieves information about one or more data streams. +/// +/// +/// Get information about one or more data streams. /// /// public sealed partial class GetDataStreamRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 9fe3b3aefb0..2a623fe1ec6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -57,13 +57,6 @@ public sealed partial class GetMappingRequestParameters : RequestParameters /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - /// /// /// Period to wait for a connection to the master node. @@ -125,14 +118,6 @@ public GetMappingRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } - /// - /// - /// If true, the request retrieves information from the local node only. - /// - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - /// /// /// Period to wait for a connection to the master node. @@ -172,7 +157,6 @@ public GetMappingRequestDescriptor() public GetMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetMappingRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public GetMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -215,7 +199,6 @@ public GetMappingRequestDescriptor() public GetMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public GetMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public GetMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public GetMappingRequestDescriptor Local(bool? local = true) => Qs("local", local); public GetMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public GetMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs new file mode 100644 index 00000000000..6cef365ed26 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusRequest.g.cs @@ -0,0 +1,132 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class GetMigrateReindexStatusRequestParameters : RequestParameters +{ +} + +/// +/// +/// Get the migration reindexing status. +/// +/// +/// Get the status of a migration reindex attempt for a data stream or index. +/// +/// +public sealed partial class GetMigrateReindexStatusRequest : PlainRequest +{ + public GetMigrateReindexStatusRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetMigrateReindexStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_migrate_reindex_status"; +} + +/// +/// +/// Get the migration reindexing status. +/// +/// +/// Get the status of a migration reindex attempt for a data stream or index. +/// +/// +public sealed partial class GetMigrateReindexStatusRequestDescriptor : RequestDescriptor, GetMigrateReindexStatusRequestParameters> +{ + internal GetMigrateReindexStatusRequestDescriptor(Action> configure) => configure.Invoke(this); + + public GetMigrateReindexStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + public GetMigrateReindexStatusRequestDescriptor() : this(typeof(TDocument)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetMigrateReindexStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_migrate_reindex_status"; + + public GetMigrateReindexStatusRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// +/// Get the migration reindexing status. +/// +/// +/// Get the status of a migration reindex attempt for a data stream or index. +/// +/// +public sealed partial class GetMigrateReindexStatusRequestDescriptor : RequestDescriptor +{ + internal GetMigrateReindexStatusRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetMigrateReindexStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetMigrateReindexStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.get_migrate_reindex_status"; + + public GetMigrateReindexStatusRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs new file mode 100644 index 00000000000..a5fd7be56cd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMigrateReindexStatusResponse.g.cs @@ -0,0 +1,51 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class GetMigrateReindexStatusResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("complete")] + public bool Complete { get; init; } + [JsonInclude, JsonPropertyName("errors")] + public IReadOnlyCollection Errors { get; init; } + [JsonInclude, JsonPropertyName("exception")] + public string? Exception { get; init; } + [JsonInclude, JsonPropertyName("in_progress")] + public IReadOnlyCollection InProgress { get; init; } + [JsonInclude, JsonPropertyName("pending")] + public int Pending { get; init; } + [JsonInclude, JsonPropertyName("start_time")] + public DateTimeOffset? StartTime { get; init; } + [JsonInclude, JsonPropertyName("start_time_millis")] + public long StartTimeMillis { get; init; } + [JsonInclude, JsonPropertyName("successes")] + public int Successes { get; init; } + [JsonInclude, JsonPropertyName("total_indices_in_data_stream")] + public int TotalIndicesInDataStream { get; init; } + [JsonInclude, JsonPropertyName("total_indices_requiring_upgrade")] + public int TotalIndicesRequiringUpgrade { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs new file mode 100644 index 00000000000..e70d7569ef0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexRequest.g.cs @@ -0,0 +1,121 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class MigrateReindexRequestParameters : RequestParameters +{ +} + +/// +/// +/// Reindex legacy backing indices. +/// +/// +/// Reindex all legacy backing indices for a data stream. +/// This operation occurs in a persistent task. +/// The persistent task ID is returned immediately and the reindexing work is completed in that task. +/// +/// +public sealed partial class MigrateReindexRequest : PlainRequest, ISelfSerializable +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementMigrateReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "indices.migrate_reindex"; + + [JsonIgnore] + public Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex Reindex { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, Reindex, options); + } +} + +/// +/// +/// Reindex legacy backing indices. +/// +/// +/// Reindex all legacy backing indices for a data stream. +/// This operation occurs in a persistent task. +/// The persistent task ID is returned immediately and the reindexing work is completed in that task. +/// +/// +public sealed partial class MigrateReindexRequestDescriptor : RequestDescriptor +{ + internal MigrateReindexRequestDescriptor(Action configure) => configure.Invoke(this); + public MigrateReindexRequestDescriptor(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex reindex) => ReindexValue = reindex; + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementMigrateReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "indices.migrate_reindex"; + + private Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex ReindexValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindexDescriptor ReindexDescriptor { get; set; } + private Action ReindexDescriptorAction { get; set; } + + public MigrateReindexRequestDescriptor Reindex(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex reindex) + { + ReindexDescriptor = null; + ReindexDescriptorAction = null; + ReindexValue = reindex; + return Self; + } + + public MigrateReindexRequestDescriptor Reindex(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindexDescriptor descriptor) + { + ReindexValue = null; + ReindexDescriptorAction = null; + ReindexDescriptor = descriptor; + return Self; + } + + public MigrateReindexRequestDescriptor Reindex(Action configure) + { + ReindexValue = null; + ReindexDescriptor = null; + ReindexDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, ReindexValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs new file mode 100644 index 00000000000..16ba5913be8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MigrateReindexResponse.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class MigrateReindexResponse : ElasticsearchResponse +{ + /// + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index 34af04025ab..2d901a47623 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -120,12 +120,20 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam /// /// - /// If defined, every backing index will execute the configured downsampling configuration after the backing - /// index is not the data stream write index anymore. + /// The downsampling configuration to execute for the managed backing index after rollover. /// /// [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } } /// @@ -164,6 +172,7 @@ public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Data private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } private Action DownsamplingDescriptorAction { get; set; } + private bool? EnabledValue { get; set; } /// /// @@ -180,8 +189,7 @@ public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticse /// /// - /// If defined, every backing index will execute the configured downsampling configuration after the backing - /// index is not the data stream write index anymore. + /// The downsampling configuration to execute for the managed backing index after rollover. /// /// public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) @@ -208,6 +216,18 @@ public PutDataLifecycleRequestDescriptor Downsampling(Action + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + public PutDataLifecycleRequestDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -233,6 +253,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DownsamplingValue, options); } + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs index 8bb53488e96..76983c96bb8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -83,6 +83,15 @@ public sealed partial class PutIndicesSettingsRequestParameters : RequestParamet /// public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } + /// + /// + /// Whether to close and reopen the index to apply non-dynamic settings. + /// If set to true the indices to which the settings are being applied + /// will be closed temporarily and then reopened in order to apply the changes. + /// + /// + public bool? Reopen { get => Q("reopen"); set => Q("reopen", value); } + /// /// /// Period to wait for a response. If no response is received before the @@ -189,6 +198,16 @@ public PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonIgnore] public bool? PreserveExisting { get => Q("preserve_existing"); set => Q("preserve_existing", value); } + /// + /// + /// Whether to close and reopen the index to apply non-dynamic settings. + /// If set to true the indices to which the settings are being applied + /// will be closed temporarily and then reopened in order to apply the changes. + /// + /// + [JsonIgnore] + public bool? Reopen { get => Q("reopen"); set => Q("reopen", value); } + /// /// /// Period to wait for a response. If no response is received before the @@ -248,6 +267,7 @@ public sealed partial class PutIndicesSettingsRequestDescriptor : Req public PutIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public PutIndicesSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public PutIndicesSettingsRequestDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); + public PutIndicesSettingsRequestDescriptor Reopen(bool? reopen = true) => Qs("reopen", reopen); public PutIndicesSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public PutIndicesSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -332,6 +352,7 @@ public sealed partial class PutIndicesSettingsRequestDescriptor : RequestDescrip public PutIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public PutIndicesSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public PutIndicesSettingsRequestDescriptor PreserveExisting(bool? preserveExisting = true) => Qs("preserve_existing", preserveExisting); + public PutIndicesSettingsRequestDescriptor Reopen(bool? reopen = true) => Qs("reopen", reopen); public PutIndicesSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public PutIndicesSettingsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index d4375cf1a3d..d504730260e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -223,7 +223,7 @@ public PutMappingRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r /// /// [JsonInclude, JsonPropertyName("dynamic_templates")] - public ICollection>? DynamicTemplates { get; set; } + public ICollection>? DynamicTemplates { get; set; } /// /// @@ -379,7 +379,7 @@ public PutMappingRequestDescriptor Indices(Elastic.Clients.Elasticsea private bool? DateDetectionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } + private ICollection>? DynamicTemplatesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesField? FieldNamesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } private Action FieldNamesDescriptorAction { get; set; } @@ -434,7 +434,7 @@ public PutMappingRequestDescriptor DynamicDateFormats(ICollection /// - public PutMappingRequestDescriptor DynamicTemplates(ICollection>? dynamicTemplates) + public PutMappingRequestDescriptor DynamicTemplates(ICollection>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; @@ -781,7 +781,7 @@ public PutMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private bool? DateDetectionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } + private ICollection>? DynamicTemplatesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesField? FieldNamesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } private Action FieldNamesDescriptorAction { get; set; } @@ -836,7 +836,7 @@ public PutMappingRequestDescriptor DynamicDateFormats(ICollection? dynam /// Specify dynamic templates for the mapping. /// /// - public PutMappingRequestDescriptor DynamicTemplates(ICollection>? dynamicTemplates) + public PutMappingRequestDescriptor DynamicTemplates(ICollection>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index 3c6067ef0eb..f6c836fd87e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -32,6 +32,11 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class PutTemplateRequestParameters : RequestParameters { + /// + /// + /// User defined reason for creating/updating the index template + /// + /// public string? Cause { get => Q("cause"); set => Q("cause", value); } /// @@ -95,6 +100,11 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r internal override string OperationName => "indices.put_template"; + /// + /// + /// User defined reason for creating/updating the index template + /// + /// [JsonIgnore] public string? Cause { get => Q("cause"); set => Q("cause", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 736815127c6..a04e6963d0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -52,6 +52,13 @@ public sealed partial class ReloadSearchAnalyzersRequestParameters : RequestPara /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Changed resource to reload analyzers from if applicable + /// + /// + public string? Resource { get => Q("resource"); set => Q("resource", value); } } /// @@ -112,6 +119,14 @@ public ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Indices indice /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// + /// Changed resource to reload analyzers from if applicable + /// + /// + [JsonIgnore] + public string? Resource { get => Q("resource"); set => Q("resource", value); } } /// @@ -158,6 +173,7 @@ public ReloadSearchAnalyzersRequestDescriptor() : this(typeof(TDocument)) public ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ReloadSearchAnalyzersRequestDescriptor Resource(string? resource) => Qs("resource", resource); public ReloadSearchAnalyzersRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { @@ -210,6 +226,7 @@ public ReloadSearchAnalyzersRequestDescriptor(Elastic.Clients.Elasticsearch.Indi public ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ReloadSearchAnalyzersRequestDescriptor Resource(string? resource) => Qs("resource", resource); public ReloadSearchAnalyzersRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs index daee9636fb7..cf8018dd688 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs @@ -34,9 +34,11 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing + /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing /// or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + /// options to the _resolve/cluster API endpoint that takes no index expression. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -47,30 +49,44 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. /// Supports comma-separated values, such as open,hidden. /// Valid values are: all, open, closed, hidden, none. + /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + /// options to the _resolve/cluster API endpoint that takes no index expression. /// /// public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. Defaults to false. + /// If false, the request returns an error if it targets a missing or closed index. + /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + /// options to the _resolve/cluster API endpoint that takes no index expression. /// /// - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// /// - /// If false, the request returns an error if it targets a missing or closed index. Defaults to false. + /// The maximum time to wait for remote clusters to respond. + /// If a remote cluster does not respond within this timeout period, the API response + /// will show the cluster as not connected and include an error message that the + /// request timed out. + /// + /// + /// The default timeout is unset and the query can take + /// as long as the networking layer is configured to wait for remote clusters that are + /// not responding (typically 30 seconds). /// /// - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Resolve the cluster. -/// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. -/// Multiple patterns and remote clusters are supported. +/// +/// +/// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. +/// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -85,7 +101,7 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters /// /// /// -/// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. +/// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -113,9 +129,15 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// +/// Note on backwards compatibility /// -/// Advantages of using this endpoint before a cross-cluster search +/// The ability to query without an index expression was added in version 8.18, so when +/// querying remote clusters older than that, the local cluster will send the index +/// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference +/// to that index expression even though you didn't request it. If it causes a problem, you can +/// instead include an index expression like *:* to bypass the issue. /// +/// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -141,10 +163,25 @@ public sealed partial class ResolveClusterRequestParameters : RequestParameters /// /// /// +/// Test availability of remote clusters +/// +/// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. +/// The remote cluster may be available, while the local cluster is not currently connected to it. +/// +/// +/// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. +/// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. +/// The connected field in the response will indicate whether it was successful. +/// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. +/// /// public sealed partial class ResolveClusterRequest : PlainRequest { - public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) + public ResolveClusterRequest() + { + } + + public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) { } @@ -158,9 +195,11 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing + /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing /// or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + /// options to the _resolve/cluster API endpoint that takes no index expression. /// /// [JsonIgnore] @@ -172,6 +211,8 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. /// Supports comma-separated values, such as open,hidden. /// Valid values are: all, open, closed, hidden, none. + /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + /// options to the _resolve/cluster API endpoint that takes no index expression. /// /// [JsonIgnore] @@ -179,26 +220,38 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// - /// If true, concrete, expanded or aliased indices are ignored when frozen. Defaults to false. + /// If false, the request returns an error if it targets a missing or closed index. + /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index + /// options to the _resolve/cluster API endpoint that takes no index expression. /// /// [JsonIgnore] - public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// /// - /// If false, the request returns an error if it targets a missing or closed index. Defaults to false. + /// The maximum time to wait for remote clusters to respond. + /// If a remote cluster does not respond within this timeout period, the API response + /// will show the cluster as not connected and include an error message that the + /// request timed out. + /// + /// + /// The default timeout is unset and the query can take + /// as long as the networking layer is configured to wait for remote clusters that are + /// not responding (typically 30 seconds). /// /// [JsonIgnore] - public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Resolve the cluster. -/// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. -/// Multiple patterns and remote clusters are supported. +/// +/// +/// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. +/// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -213,7 +266,7 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// /// -/// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. +/// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -241,9 +294,15 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// +/// Note on backwards compatibility /// -/// Advantages of using this endpoint before a cross-cluster search +/// The ability to query without an index expression was added in version 8.18, so when +/// querying remote clusters older than that, the local cluster will send the index +/// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference +/// to that index expression even though you didn't request it. If it causes a problem, you can +/// instead include an index expression like *:* to bypass the issue. /// +/// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -269,12 +328,27 @@ public ResolveClusterRequest(Elastic.Clients.Elasticsearch.Names name) : base(r /// /// /// +/// Test availability of remote clusters +/// +/// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. +/// The remote cluster may be available, while the local cluster is not currently connected to it. +/// +/// +/// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. +/// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. +/// The connected field in the response will indicate whether it was successful. +/// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. +/// /// public sealed partial class ResolveClusterRequestDescriptor : RequestDescriptor { internal ResolveClusterRequestDescriptor(Action configure) => configure.Invoke(this); - public ResolveClusterRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) : base(r => r.Required("name", name)) + public ResolveClusterRequestDescriptor(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) + { + } + + public ResolveClusterRequestDescriptor() { } @@ -288,12 +362,12 @@ public ResolveClusterRequestDescriptor(Elastic.Clients.Elasticsearch.Names name) public ResolveClusterRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public ResolveClusterRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public ResolveClusterRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public ResolveClusterRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ResolveClusterRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); - public ResolveClusterRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) + public ResolveClusterRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) { - RouteValues.Required("name", name); + RouteValues.Optional("name", name); return Self; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs index 331aa7bfe7b..340057758bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RolloverRequest.g.cs @@ -39,6 +39,14 @@ public sealed partial class RolloverRequestParameters : RequestParameters /// public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } + /// + /// + /// If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. + /// Only allowed on data streams. + /// + /// + public bool? Lazy { get => Q("lazy"); set => Q("lazy", value); } + /// /// /// Period to wait for a connection to the master node. @@ -144,6 +152,15 @@ public RolloverRequest(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.C [JsonIgnore] public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } + /// + /// + /// If set to true, the rollover action will only mark a data stream to signal that it needs to be rolled over at the next write. + /// Only allowed on data streams. + /// + /// + [JsonIgnore] + public bool? Lazy { get => Q("lazy"); set => Q("lazy", value); } + /// /// /// Period to wait for a connection to the master node. @@ -286,6 +303,7 @@ public RolloverRequestDescriptor(Elastic.Clients.Elasticsearch.IndexAlias alias) internal override string OperationName => "indices.rollover"; public RolloverRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); + public RolloverRequestDescriptor Lazy(bool? lazy = true) => Qs("lazy", lazy); public RolloverRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public RolloverRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public RolloverRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); @@ -524,6 +542,7 @@ public RolloverRequestDescriptor(Elastic.Clients.Elasticsearch.IndexAlias alias) internal override string OperationName => "indices.rollover"; public RolloverRequestDescriptor DryRun(bool? dryRun = true) => Qs("dry_run", dryRun); + public RolloverRequestDescriptor Lazy(bool? lazy = true) => Qs("lazy", lazy); public RolloverRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public RolloverRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public RolloverRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index 11c724fe951..87b0e3cb1b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -32,6 +32,20 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class SimulateIndexTemplateRequestParameters : RequestParameters { + /// + /// + /// User defined reason for dry-run creating the new template for simulation purposes + /// + /// + public string? Cause { get => Q("cause"); set => Q("cause", value); } + + /// + /// + /// Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one + /// + /// + public bool? Create { get => Q("create"); set => Q("create", value); } + /// /// /// If true, returns all relevant default configurations for the index template. @@ -67,6 +81,22 @@ public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : b internal override string OperationName => "indices.simulate_index_template"; + /// + /// + /// User defined reason for dry-run creating the new template for simulation purposes + /// + /// + [JsonIgnore] + public string? Cause { get => Q("cause"); set => Q("cause", value); } + + /// + /// + /// Whether the index template we optionally defined in the body should only be dry-run added if new or can also replace an existing one + /// + /// + [JsonIgnore] + public bool? Create { get => Q("create"); set => Q("create", value); } + /// /// /// If true, returns all relevant default configurations for the index template. @@ -106,6 +136,8 @@ public SimulateIndexTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Name internal override string OperationName => "indices.simulate_index_template"; + public SimulateIndexTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); + public SimulateIndexTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); public SimulateIndexTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public SimulateIndexTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs index 2e522a02799..9c81e3cf7c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateTemplateRequest.g.cs @@ -32,6 +32,13 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class SimulateTemplateRequestParameters : RequestParameters { + /// + /// + /// User defined reason for dry-run creating the new template for simulation purposes + /// + /// + public string? Cause { get => Q("cause"); set => Q("cause", value); } + /// /// /// If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. @@ -78,6 +85,14 @@ public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Name? name) : base( internal override string OperationName => "indices.simulate_template"; + /// + /// + /// User defined reason for dry-run creating the new template for simulation purposes + /// + /// + [JsonIgnore] + public string? Cause { get => Q("cause"); set => Q("cause", value); } + /// /// /// If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation. @@ -223,6 +238,7 @@ public SimulateTemplateRequestDescriptor() internal override string OperationName => "indices.simulate_template"; + public SimulateTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); public SimulateTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); public SimulateTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public SimulateTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); @@ -521,6 +537,7 @@ public SimulateTemplateRequestDescriptor() internal override string OperationName => "indices.simulate_template"; + public SimulateTemplateRequestDescriptor Cause(string? cause) => Qs("cause", cause); public SimulateTemplateRequestDescriptor Create(bool? create = true) => Qs("create", create); public SimulateTemplateRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public SimulateTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs index 044af3b8442..0866c65c10c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs @@ -46,6 +46,13 @@ public sealed partial class IndexRequestParameters : RequestParameters /// public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + /// /// /// Set to create to only index the document if it does not already exist (put if absent). @@ -215,13 +222,9 @@ public sealed partial class IndexRequestParameters : RequestParameters /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// -/// -/// /// -/// ** Distributed** +/// Distributed /// -/// -/// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -334,6 +337,14 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r [JsonIgnore] public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + [JsonIgnore] + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + /// /// /// Set to create to only index the document if it does not already exist (put if absent). @@ -519,13 +530,9 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// -/// -/// /// -/// ** Distributed** +/// Distributed /// -/// -/// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -631,6 +638,7 @@ public IndexRequestDescriptor(TDocument document, Elastic.Clients.Elasticsearch. public IndexRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); public IndexRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); + public IndexRequestDescriptor IncludeSourceOnError(bool? includeSourceOnError = true) => Qs("include_source_on_error", includeSourceOnError); public IndexRequestDescriptor OpType(Elastic.Clients.Elasticsearch.OpType? opType) => Qs("op_type", opType); public IndexRequestDescriptor Pipeline(string? pipeline) => Qs("pipeline", pipeline); public IndexRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs new file mode 100644 index 00000000000..e098d734379 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs @@ -0,0 +1,136 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class ChatCompletionUnifiedRequestParameters : RequestParameters +{ + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Perform chat completion inference +/// +/// +public sealed partial class ChatCompletionUnifiedRequest : PlainRequest, ISelfSerializable +{ + public ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceChatCompletionUnified; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.chat_completion_unified"; + + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion ChatCompletionRequest { get; set; } + + void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, ChatCompletionRequest, options); + } +} + +/// +/// +/// Perform chat completion inference +/// +/// +public sealed partial class ChatCompletionUnifiedRequestDescriptor : RequestDescriptor +{ + internal ChatCompletionUnifiedRequestDescriptor(Action configure) => configure.Invoke(this); + public ChatCompletionUnifiedRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) => ChatCompletionRequestValue = chatCompletionRequest; + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceChatCompletionUnified; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.chat_completion_unified"; + + public ChatCompletionUnifiedRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public ChatCompletionUnifiedRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion ChatCompletionRequestValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RequestChatCompletionDescriptor ChatCompletionRequestDescriptor { get; set; } + private Action ChatCompletionRequestDescriptorAction { get; set; } + + public ChatCompletionUnifiedRequestDescriptor ChatCompletionRequest(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest) + { + ChatCompletionRequestDescriptor = null; + ChatCompletionRequestDescriptorAction = null; + ChatCompletionRequestValue = chatCompletionRequest; + return Self; + } + + public ChatCompletionUnifiedRequestDescriptor ChatCompletionRequest(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletionDescriptor descriptor) + { + ChatCompletionRequestValue = null; + ChatCompletionRequestDescriptorAction = null; + ChatCompletionRequestDescriptor = descriptor; + return Self; + } + + public ChatCompletionUnifiedRequestDescriptor ChatCompletionRequest(Action configure) + { + ChatCompletionRequestValue = null; + ChatCompletionRequestDescriptor = null; + ChatCompletionRequestDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + JsonSerializer.Serialize(writer, ChatCompletionRequestValue, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs new file mode 100644 index 00000000000..1c8dc407b1f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class ChatCompletionUnifiedResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs new file mode 100644 index 00000000000..d451024aa2c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionRequest.g.cs @@ -0,0 +1,157 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class CompletionRequestParameters : RequestParameters +{ + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Perform completion inference on the service +/// +/// +public sealed partial class CompletionRequest : PlainRequest +{ + public CompletionRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceCompletion; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.completion"; + + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("input")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Input { get; set; } + + /// + /// + /// Optional task settings + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Perform completion inference on the service +/// +/// +public sealed partial class CompletionRequestDescriptor : RequestDescriptor +{ + internal CompletionRequestDescriptor(Action configure) => configure.Invoke(this); + + public CompletionRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceCompletion; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.completion"; + + public CompletionRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public CompletionRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + private ICollection InputValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + public CompletionRequestDescriptor Input(ICollection input) + { + InputValue = input; + return Self; + } + + /// + /// + /// Optional task settings + /// + /// + public CompletionRequestDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input"); + SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs new file mode 100644 index 00000000000..1cc1c04b588 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/CompletionResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class CompletionResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("completion")] + public IReadOnlyCollection Completion { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs index d8514b99866..ad0a0be9dea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/DeleteInferenceRequest.g.cs @@ -34,14 +34,14 @@ public sealed partial class DeleteInferenceRequestParameters : RequestParameters { /// /// - /// When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned + /// When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned. /// /// public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } /// /// - /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields + /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields. /// /// public bool? Force { get => Q("force"); set => Q("force", value); } @@ -72,7 +72,7 @@ public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? /// /// - /// When true, the endpoint is not deleted, and a list of ingest processors which reference this endpoint is returned + /// When true, the endpoint is not deleted and a list of ingest processors which reference this endpoint is returned. /// /// [JsonIgnore] @@ -80,7 +80,7 @@ public DeleteInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? /// /// - /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields + /// When true, the inference endpoint is forcefully deleted even if it is still being used by ingest processors or semantic text fields. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs index 8c0ff5643b7..a232282ca14 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/InferenceRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class InferenceRequestParameters : RequestParameters { /// /// - /// Specifies the amount of time to wait for the inference request to complete. + /// The amount of time to wait for the inference request to complete. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -42,7 +42,19 @@ public sealed partial class InferenceRequestParameters : RequestParameters /// /// -/// Perform inference on the service +/// Perform inference on the service. +/// +/// +/// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. +/// It returns a response with the results of the tasks. +/// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. +/// +/// +/// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. +/// +/// +/// info +/// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// public sealed partial class InferenceRequest : PlainRequest @@ -65,7 +77,7 @@ public InferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskTy /// /// - /// Specifies the amount of time to wait for the inference request to complete. + /// The amount of time to wait for the inference request to complete. /// /// [JsonIgnore] @@ -73,8 +85,12 @@ public InferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskTy /// /// - /// Inference input. - /// Either a string or an array of strings. + /// The text on which you want to perform the inference task. + /// It can be a single string or an array. + /// + /// + /// info + /// Inference endpoints for the completion task type currently only support a single string as input. /// /// [JsonInclude, JsonPropertyName("input")] @@ -83,8 +99,8 @@ public InferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskTy /// /// - /// Query input, required for rerank task. - /// Not required for other tasks. + /// The query input, which is required only for the rerank task. + /// It is not required for other tasks. /// /// [JsonInclude, JsonPropertyName("query")] @@ -92,7 +108,8 @@ public InferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskTy /// /// - /// Optional task settings + /// Task settings for the individual inference request. + /// These settings are specific to the task type you specified and override the task settings specified when initializing the service. /// /// [JsonInclude, JsonPropertyName("task_settings")] @@ -101,7 +118,19 @@ public InferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskTy /// /// -/// Perform inference on the service +/// Perform inference on the service. +/// +/// +/// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. +/// It returns a response with the results of the tasks. +/// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. +/// +/// +/// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. +/// +/// +/// info +/// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// /// public sealed partial class InferenceRequestDescriptor : RequestDescriptor @@ -144,8 +173,12 @@ public InferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inferen /// /// - /// Inference input. - /// Either a string or an array of strings. + /// The text on which you want to perform the inference task. + /// It can be a single string or an array. + /// + /// + /// info + /// Inference endpoints for the completion task type currently only support a single string as input. /// /// public InferenceRequestDescriptor Input(ICollection input) @@ -156,8 +189,8 @@ public InferenceRequestDescriptor Input(ICollection input) /// /// - /// Query input, required for rerank task. - /// Not required for other tasks. + /// The query input, which is required only for the rerank task. + /// It is not required for other tasks. /// /// public InferenceRequestDescriptor Query(string? query) @@ -168,7 +201,8 @@ public InferenceRequestDescriptor Query(string? query) /// /// - /// Optional task settings + /// Task settings for the individual inference request. + /// These settings are specific to the task type you specified and override the task settings specified when initializing the service. /// /// public InferenceRequestDescriptor TaskSettings(object? taskSettings) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs new file mode 100644 index 00000000000..26ece1ba656 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs @@ -0,0 +1,308 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAlibabacloudRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an AlibabaCloud AI Search inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAlibabacloudRequest : PlainRequest +{ + public PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId) : base(r => r.Required("task_type", taskType).Required("alibabacloud_inference_id", alibabacloudInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAlibabacloud; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_alibabacloud"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, alibabacloud-ai-search. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the alibabacloud-ai-search service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an AlibabaCloud AI Search inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAlibabacloudRequestDescriptor : RequestDescriptor +{ + internal PutAlibabacloudRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutAlibabacloudRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId) : base(r => r.Required("task_type", taskType).Required("alibabacloud_inference_id", alibabacloudInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAlibabacloud; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_alibabacloud"; + + public PutAlibabacloudRequestDescriptor AlibabacloudInferenceId(Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId) + { + RouteValues.Required("alibabacloud_inference_id", alibabacloudInferenceId); + return Self; + } + + public PutAlibabacloudRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutAlibabacloudRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutAlibabacloudRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutAlibabacloudRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, alibabacloud-ai-search. + /// + /// + public PutAlibabacloudRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the alibabacloud-ai-search service. + /// + /// + public PutAlibabacloudRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutAlibabacloudRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutAlibabacloudRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutAlibabacloudRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutAlibabacloudRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutAlibabacloudRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AlibabaCloudServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs new file mode 100644 index 00000000000..089549b7982 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAlibabacloudResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs new file mode 100644 index 00000000000..83f68070de1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs @@ -0,0 +1,316 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAmazonbedrockRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an Amazon Bedrock inference endpoint. +/// +/// +/// Creates an inference endpoint to perform an inference task with the amazonbedrock service. +/// +/// +/// info +/// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAmazonbedrockRequest : PlainRequest +{ + public PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId) : base(r => r.Required("task_type", taskType).Required("amazonbedrock_inference_id", amazonbedrockInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAmazonbedrock; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_amazonbedrock"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, amazonbedrock. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the amazonbedrock service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an Amazon Bedrock inference endpoint. +/// +/// +/// Creates an inference endpoint to perform an inference task with the amazonbedrock service. +/// +/// +/// info +/// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAmazonbedrockRequestDescriptor : RequestDescriptor +{ + internal PutAmazonbedrockRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutAmazonbedrockRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId) : base(r => r.Required("task_type", taskType).Required("amazonbedrock_inference_id", amazonbedrockInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAmazonbedrock; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_amazonbedrock"; + + public PutAmazonbedrockRequestDescriptor AmazonbedrockInferenceId(Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId) + { + RouteValues.Required("amazonbedrock_inference_id", amazonbedrockInferenceId); + return Self; + } + + public PutAmazonbedrockRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutAmazonbedrockRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutAmazonbedrockRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutAmazonbedrockRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, amazonbedrock. + /// + /// + public PutAmazonbedrockRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the amazonbedrock service. + /// + /// + public PutAmazonbedrockRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutAmazonbedrockRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutAmazonbedrockRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutAmazonbedrockRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutAmazonbedrockRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutAmazonbedrockRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AmazonBedrockServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs new file mode 100644 index 00000000000..0e953953784 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAmazonbedrockResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs new file mode 100644 index 00000000000..87328763959 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs @@ -0,0 +1,308 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAnthropicRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an Anthropic inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the anthropic service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAnthropicRequest : PlainRequest +{ + public PutAnthropicRequest(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId) : base(r => r.Required("task_type", taskType).Required("anthropic_inference_id", anthropicInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAnthropic; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_anthropic"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, anthropic. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.AnthropicServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the watsonxai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.AnthropicTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an Anthropic inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the anthropic service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAnthropicRequestDescriptor : RequestDescriptor +{ + internal PutAnthropicRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutAnthropicRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId) : base(r => r.Required("task_type", taskType).Required("anthropic_inference_id", anthropicInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAnthropic; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_anthropic"; + + public PutAnthropicRequestDescriptor AnthropicInferenceId(Elastic.Clients.Elasticsearch.Id anthropicInferenceId) + { + RouteValues.Required("anthropic_inference_id", anthropicInferenceId); + return Self; + } + + public PutAnthropicRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AnthropicServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AnthropicTaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AnthropicTaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutAnthropicRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutAnthropicRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutAnthropicRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, anthropic. + /// + /// + public PutAnthropicRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.AnthropicServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the watsonxai service. + /// + /// + public PutAnthropicRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutAnthropicRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutAnthropicRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutAnthropicRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutAnthropicRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutAnthropicRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AnthropicServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AnthropicTaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs new file mode 100644 index 00000000000..c24e8a139ff --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAnthropicResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs new file mode 100644 index 00000000000..17ba45c5d2f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs @@ -0,0 +1,308 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAzureaistudioRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an Azure AI studio inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the azureaistudio service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAzureaistudioRequest : PlainRequest +{ + public PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId) : base(r => r.Required("task_type", taskType).Required("azureaistudio_inference_id", azureaistudioInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAzureaistudio; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_azureaistudio"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, azureaistudio. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an Azure AI studio inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the azureaistudio service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAzureaistudioRequestDescriptor : RequestDescriptor +{ + internal PutAzureaistudioRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutAzureaistudioRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId) : base(r => r.Required("task_type", taskType).Required("azureaistudio_inference_id", azureaistudioInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAzureaistudio; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_azureaistudio"; + + public PutAzureaistudioRequestDescriptor AzureaistudioInferenceId(Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId) + { + RouteValues.Required("azureaistudio_inference_id", azureaistudioInferenceId); + return Self; + } + + public PutAzureaistudioRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutAzureaistudioRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutAzureaistudioRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutAzureaistudioRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, azureaistudio. + /// + /// + public PutAzureaistudioRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openai service. + /// + /// + public PutAzureaistudioRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutAzureaistudioRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutAzureaistudioRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutAzureaistudioRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutAzureaistudioRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutAzureaistudioRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AzureAiStudioServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs new file mode 100644 index 00000000000..4c7d9a1157a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAzureaistudioResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs new file mode 100644 index 00000000000..22f2036369a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs @@ -0,0 +1,344 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAzureopenaiRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an Azure OpenAI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the azureopenai service. +/// +/// +/// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: +/// +/// +/// +/// +/// GPT-4 and GPT-4 Turbo models +/// +/// +/// +/// +/// GPT-3.5 +/// +/// +/// +/// +/// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAzureopenaiRequest : PlainRequest +{ + public PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId) : base(r => r.Required("task_type", taskType).Required("azureopenai_inference_id", azureopenaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAzureopenai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_azureopenai"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, azureopenai. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the azureopenai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an Azure OpenAI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the azureopenai service. +/// +/// +/// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: +/// +/// +/// +/// +/// GPT-4 and GPT-4 Turbo models +/// +/// +/// +/// +/// GPT-3.5 +/// +/// +/// +/// +/// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutAzureopenaiRequestDescriptor : RequestDescriptor +{ + internal PutAzureopenaiRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutAzureopenaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId) : base(r => r.Required("task_type", taskType).Required("azureopenai_inference_id", azureopenaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutAzureopenai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_azureopenai"; + + public PutAzureopenaiRequestDescriptor AzureopenaiInferenceId(Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId) + { + RouteValues.Required("azureopenai_inference_id", azureopenaiInferenceId); + return Self; + } + + public PutAzureopenaiRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutAzureopenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutAzureopenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutAzureopenaiRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, azureopenai. + /// + /// + public PutAzureopenaiRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the azureopenai service. + /// + /// + public PutAzureopenaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutAzureopenaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutAzureopenaiRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutAzureopenaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutAzureopenaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutAzureopenaiRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs new file mode 100644 index 00000000000..50986134ada --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutAzureopenaiResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs new file mode 100644 index 00000000000..143e82ed8c7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs @@ -0,0 +1,310 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutCohereRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create a Cohere inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the cohere service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutCohereRequest : PlainRequest +{ + public PutCohereRequest(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId) : base(r => r.Required("task_type", taskType).Required("cohere_inference_id", cohereInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutCohere; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_cohere"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, cohere. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.CohereServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. + /// These settings are specific to the cohere service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.CohereServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.CohereTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create a Cohere inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the cohere service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutCohereRequestDescriptor : RequestDescriptor +{ + internal PutCohereRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutCohereRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId) : base(r => r.Required("task_type", taskType).Required("cohere_inference_id", cohereInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutCohere; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_cohere"; + + public PutCohereRequestDescriptor CohereInferenceId(Elastic.Clients.Elasticsearch.Id cohereInferenceId) + { + RouteValues.Required("cohere_inference_id", cohereInferenceId); + return Self; + } + + public PutCohereRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereTaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereTaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutCohereRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutCohereRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutCohereRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, cohere. + /// + /// + public PutCohereRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.CohereServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. + /// These settings are specific to the cohere service. + /// + /// + public PutCohereRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.CohereServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutCohereRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.CohereServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutCohereRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutCohereRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.CohereTaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutCohereRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.CohereTaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutCohereRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.CohereServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.CohereTaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs new file mode 100644 index 00000000000..22699c88536 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutCohereResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs new file mode 100644 index 00000000000..df0bb9fa633 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchRequest.g.cs @@ -0,0 +1,328 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutElasticsearchRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an Elasticsearch inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the elasticsearch service. +/// +/// +/// info +/// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. +/// +/// +/// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. +/// +/// +/// info +/// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. +/// +/// +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutElasticsearchRequest : PlainRequest +{ + public PutElasticsearchRequest(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType, Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId) : base(r => r.Required("task_type", taskType).Required("elasticsearch_inference_id", elasticsearchInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutElasticsearch; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_elasticsearch"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, elasticsearch. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the elasticsearch service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an Elasticsearch inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the elasticsearch service. +/// +/// +/// info +/// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. +/// +/// +/// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. +/// +/// +/// info +/// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. +/// +/// +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutElasticsearchRequestDescriptor : RequestDescriptor +{ + internal PutElasticsearchRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutElasticsearchRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType, Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId) : base(r => r.Required("task_type", taskType).Required("elasticsearch_inference_id", elasticsearchInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutElasticsearch; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_elasticsearch"; + + public PutElasticsearchRequestDescriptor ElasticsearchInferenceId(Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId) + { + RouteValues.Required("elasticsearch_inference_id", elasticsearchInferenceId); + return Self; + } + + public PutElasticsearchRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutElasticsearchRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutElasticsearchRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutElasticsearchRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, elasticsearch. + /// + /// + public PutElasticsearchRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the elasticsearch service. + /// + /// + public PutElasticsearchRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutElasticsearchRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutElasticsearchRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutElasticsearchRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutElasticsearchRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutElasticsearchRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.ElasticsearchServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs new file mode 100644 index 00000000000..509a96f08c3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElasticsearchResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutElasticsearchResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs new file mode 100644 index 00000000000..964f26d9db5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserRequest.g.cs @@ -0,0 +1,272 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutElserRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an ELSER inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the elser service. +/// You can also deploy ELSER by using the Elasticsearch inference integration. +/// +/// +/// info +/// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. +/// +/// +/// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. +/// +/// +/// info +/// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. +/// +/// +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutElserRequest : PlainRequest +{ + public PutElserRequest(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType, Elastic.Clients.Elasticsearch.Id elserInferenceId) : base(r => r.Required("task_type", taskType).Required("elser_inference_id", elserInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutElser; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_elser"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, elser. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.ElserServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the elser service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.ElserServiceSettings ServiceSettings { get; set; } +} + +/// +/// +/// Create an ELSER inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the elser service. +/// You can also deploy ELSER by using the Elasticsearch inference integration. +/// +/// +/// info +/// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. +/// +/// +/// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. +/// +/// +/// info +/// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. +/// +/// +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutElserRequestDescriptor : RequestDescriptor +{ + internal PutElserRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutElserRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType, Elastic.Clients.Elasticsearch.Id elserInferenceId) : base(r => r.Required("task_type", taskType).Required("elser_inference_id", elserInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutElser; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_elser"; + + public PutElserRequestDescriptor ElserInferenceId(Elastic.Clients.Elasticsearch.Id elserInferenceId) + { + RouteValues.Required("elser_inference_id", elserInferenceId); + return Self; + } + + public PutElserRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElserServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElserServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ElserServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutElserRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutElserRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutElserRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, elser. + /// + /// + public PutElserRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.ElserServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the elser service. + /// + /// + public PutElserRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.ElserServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutElserRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.ElserServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutElserRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.ElserServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs new file mode 100644 index 00000000000..ac9ddbe397e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutElserResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutElserResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs new file mode 100644 index 00000000000..26e86d4279c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs @@ -0,0 +1,250 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutGoogleaistudioRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an Google AI Studio inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the googleaistudio service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutGoogleaistudioRequest : PlainRequest +{ + public PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId) : base(r => r.Required("task_type", taskType).Required("googleaistudio_inference_id", googleaistudioInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutGoogleaistudio; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_googleaistudio"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, googleaistudio. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.GoogleAiServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the googleaistudio service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettings ServiceSettings { get; set; } +} + +/// +/// +/// Create an Google AI Studio inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the googleaistudio service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutGoogleaistudioRequestDescriptor : RequestDescriptor +{ + internal PutGoogleaistudioRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutGoogleaistudioRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId) : base(r => r.Required("task_type", taskType).Required("googleaistudio_inference_id", googleaistudioInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutGoogleaistudio; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_googleaistudio"; + + public PutGoogleaistudioRequestDescriptor GoogleaistudioInferenceId(Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId) + { + RouteValues.Required("googleaistudio_inference_id", googleaistudioInferenceId); + return Self; + } + + public PutGoogleaistudioRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleAiServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutGoogleaistudioRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutGoogleaistudioRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutGoogleaistudioRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, googleaistudio. + /// + /// + public PutGoogleaistudioRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.GoogleAiServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the googleaistudio service. + /// + /// + public PutGoogleaistudioRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutGoogleaistudioRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutGoogleaistudioRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs new file mode 100644 index 00000000000..6fb059cc03e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutGoogleaistudioResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs new file mode 100644 index 00000000000..39ce1075e60 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs @@ -0,0 +1,308 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutGooglevertexaiRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create a Google Vertex AI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the googlevertexai service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutGooglevertexaiRequest : PlainRequest +{ + public PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId) : base(r => r.Required("task_type", taskType).Required("googlevertexai_inference_id", googlevertexaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutGooglevertexai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_googlevertexai"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, googlevertexai. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the googlevertexai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create a Google Vertex AI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the googlevertexai service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutGooglevertexaiRequestDescriptor : RequestDescriptor +{ + internal PutGooglevertexaiRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutGooglevertexaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId) : base(r => r.Required("task_type", taskType).Required("googlevertexai_inference_id", googlevertexaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutGooglevertexai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_googlevertexai"; + + public PutGooglevertexaiRequestDescriptor GooglevertexaiInferenceId(Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId) + { + RouteValues.Required("googlevertexai_inference_id", googlevertexaiInferenceId); + return Self; + } + + public PutGooglevertexaiRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutGooglevertexaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutGooglevertexaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutGooglevertexaiRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, googlevertexai. + /// + /// + public PutGooglevertexaiRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the googlevertexai service. + /// + /// + public PutGooglevertexaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutGooglevertexaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutGooglevertexaiRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutGooglevertexaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutGooglevertexaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutGooglevertexaiRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.GoogleVertexAIServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs new file mode 100644 index 00000000000..67ffc4fc15f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutGooglevertexaiResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs new file mode 100644 index 00000000000..3ce6c5e5620 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs @@ -0,0 +1,340 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutHuggingFaceRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create a Hugging Face inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the hugging_face service. +/// +/// +/// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. +/// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. +/// Create the endpoint and copy the URL after the endpoint initialization has been finished. +/// +/// +/// The following models are recommended for the Hugging Face service: +/// +/// +/// +/// +/// all-MiniLM-L6-v2 +/// +/// +/// +/// +/// all-MiniLM-L12-v2 +/// +/// +/// +/// +/// all-mpnet-base-v2 +/// +/// +/// +/// +/// e5-base-v2 +/// +/// +/// +/// +/// e5-small-v2 +/// +/// +/// +/// +/// multilingual-e5-base +/// +/// +/// +/// +/// multilingual-e5-small +/// +/// +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutHuggingFaceRequest : PlainRequest +{ + public PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId) : base(r => r.Required("task_type", taskType).Required("huggingface_inference_id", huggingfaceInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutHuggingFace; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_hugging_face"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, hugging_face. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the hugging_face service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettings ServiceSettings { get; set; } +} + +/// +/// +/// Create a Hugging Face inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the hugging_face service. +/// +/// +/// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. +/// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. +/// Create the endpoint and copy the URL after the endpoint initialization has been finished. +/// +/// +/// The following models are recommended for the Hugging Face service: +/// +/// +/// +/// +/// all-MiniLM-L6-v2 +/// +/// +/// +/// +/// all-MiniLM-L12-v2 +/// +/// +/// +/// +/// all-mpnet-base-v2 +/// +/// +/// +/// +/// e5-base-v2 +/// +/// +/// +/// +/// e5-small-v2 +/// +/// +/// +/// +/// multilingual-e5-base +/// +/// +/// +/// +/// multilingual-e5-small +/// +/// +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutHuggingFaceRequestDescriptor : RequestDescriptor +{ + internal PutHuggingFaceRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutHuggingFaceRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId) : base(r => r.Required("task_type", taskType).Required("huggingface_inference_id", huggingfaceInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutHuggingFace; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_hugging_face"; + + public PutHuggingFaceRequestDescriptor HuggingfaceInferenceId(Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId) + { + RouteValues.Required("huggingface_inference_id", huggingfaceInferenceId); + return Self; + } + + public PutHuggingFaceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutHuggingFaceRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutHuggingFaceRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutHuggingFaceRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, hugging_face. + /// + /// + public PutHuggingFaceRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the hugging_face service. + /// + /// + public PutHuggingFaceRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutHuggingFaceRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutHuggingFaceRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.HuggingFaceServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs new file mode 100644 index 00000000000..0cc557f4997 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutHuggingFaceResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs new file mode 100644 index 00000000000..fe4820b8438 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs @@ -0,0 +1,316 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutJinaaiRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an JinaAI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the jinaai service. +/// +/// +/// To review the available rerank models, refer to https://jina.ai/reranker. +/// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutJinaaiRequest : PlainRequest +{ + public PutJinaaiRequest(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId) : base(r => r.Required("task_type", taskType).Required("jinaai_inference_id", jinaaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutJinaai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_jinaai"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, jinaai. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.JinaAIServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the jinaai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.JinaAITaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an JinaAI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the jinaai service. +/// +/// +/// To review the available rerank models, refer to https://jina.ai/reranker. +/// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutJinaaiRequestDescriptor : RequestDescriptor +{ + internal PutJinaaiRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutJinaaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId) : base(r => r.Required("task_type", taskType).Required("jinaai_inference_id", jinaaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutJinaai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_jinaai"; + + public PutJinaaiRequestDescriptor JinaaiInferenceId(Elastic.Clients.Elasticsearch.Id jinaaiInferenceId) + { + RouteValues.Required("jinaai_inference_id", jinaaiInferenceId); + return Self; + } + + public PutJinaaiRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAIServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAITaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAITaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutJinaaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutJinaaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutJinaaiRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, jinaai. + /// + /// + public PutJinaaiRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.JinaAIServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the jinaai service. + /// + /// + public PutJinaaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutJinaaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutJinaaiRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutJinaaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.JinaAITaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutJinaaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.JinaAITaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutJinaaiRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.JinaAIServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.JinaAITaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs new file mode 100644 index 00000000000..8e9dd28df5c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutJinaaiResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs new file mode 100644 index 00000000000..1a208604ce4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs @@ -0,0 +1,250 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutMistralRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create a Mistral inference endpoint. +/// +/// +/// Creates an inference endpoint to perform an inference task with the mistral service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutMistralRequest : PlainRequest +{ + public PutMistralRequest(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId) : base(r => r.Required("task_type", taskType).Required("mistral_inference_id", mistralInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutMistral; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_mistral"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, mistral. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.MistralServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the mistral service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.MistralServiceSettings ServiceSettings { get; set; } +} + +/// +/// +/// Create a Mistral inference endpoint. +/// +/// +/// Creates an inference endpoint to perform an inference task with the mistral service. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutMistralRequestDescriptor : RequestDescriptor +{ + internal PutMistralRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutMistralRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId) : base(r => r.Required("task_type", taskType).Required("mistral_inference_id", mistralInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutMistral; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_mistral"; + + public PutMistralRequestDescriptor MistralInferenceId(Elastic.Clients.Elasticsearch.Id mistralInferenceId) + { + RouteValues.Required("mistral_inference_id", mistralInferenceId); + return Self; + } + + public PutMistralRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.MistralServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.MistralServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.MistralServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutMistralRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutMistralRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutMistralRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, mistral. + /// + /// + public PutMistralRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.MistralServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the mistral service. + /// + /// + public PutMistralRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.MistralServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutMistralRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.MistralServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutMistralRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.MistralServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs new file mode 100644 index 00000000000..675fe953758 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutMistralResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs new file mode 100644 index 00000000000..b634ec6e3b0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs @@ -0,0 +1,308 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutOpenaiRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create an OpenAI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutOpenaiRequest : PlainRequest +{ + public PutOpenaiRequest(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId) : base(r => r.Required("task_type", taskType).Required("openai_inference_id", openaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutOpenai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_openai"; + + /// + /// + /// The chunking configuration object. + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, openai. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.OpenAIServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettings ServiceSettings { get; set; } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public Elastic.Clients.Elasticsearch.Inference.OpenAITaskSettings? TaskSettings { get; set; } +} + +/// +/// +/// Create an OpenAI inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutOpenaiRequestDescriptor : RequestDescriptor +{ + internal PutOpenaiRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutOpenaiRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId) : base(r => r.Required("task_type", taskType).Required("openai_inference_id", openaiInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutOpenai; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_openai"; + + public PutOpenaiRequestDescriptor OpenaiInferenceId(Elastic.Clients.Elasticsearch.Id openaiInferenceId) + { + RouteValues.Required("openai_inference_id", openaiInferenceId); + return Self; + } + + public PutOpenaiRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } + private Action ChunkingSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.OpenAIServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.OpenAITaskSettings? TaskSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.OpenAITaskSettingsDescriptor TaskSettingsDescriptor { get; set; } + private Action TaskSettingsDescriptorAction { get; set; } + + /// + /// + /// The chunking configuration object. + /// + /// + public PutOpenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) + { + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsValue = chunkingSettings; + return Self; + } + + public PutOpenaiRequestDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptorAction = null; + ChunkingSettingsDescriptor = descriptor; + return Self; + } + + public PutOpenaiRequestDescriptor ChunkingSettings(Action configure) + { + ChunkingSettingsValue = null; + ChunkingSettingsDescriptor = null; + ChunkingSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of service supported for the specified task type. In this case, openai. + /// + /// + public PutOpenaiRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.OpenAIServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the openai service. + /// + /// + public PutOpenaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutOpenaiRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutOpenaiRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + /// + /// + /// Settings to configure the inference task. + /// These settings are specific to the task type you specified. + /// + /// + public PutOpenaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.OpenAITaskSettings? taskSettings) + { + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = null; + TaskSettingsValue = taskSettings; + return Self; + } + + public PutOpenaiRequestDescriptor TaskSettings(Elastic.Clients.Elasticsearch.Inference.OpenAITaskSettingsDescriptor descriptor) + { + TaskSettingsValue = null; + TaskSettingsDescriptorAction = null; + TaskSettingsDescriptor = descriptor; + return Self; + } + + public PutOpenaiRequestDescriptor TaskSettings(Action configure) + { + TaskSettingsValue = null; + TaskSettingsDescriptor = null; + TaskSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ChunkingSettingsDescriptor is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); + } + else if (ChunkingSettingsDescriptorAction is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); + } + else if (ChunkingSettingsValue is not null) + { + writer.WritePropertyName("chunking_settings"); + JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); + } + + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.OpenAIServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + if (TaskSettingsDescriptor is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsDescriptor, options); + } + else if (TaskSettingsDescriptorAction is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.OpenAITaskSettingsDescriptor(TaskSettingsDescriptorAction), options); + } + else if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs new file mode 100644 index 00000000000..55dd89c5336 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutOpenaiResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs new file mode 100644 index 00000000000..51de1f3ab34 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs @@ -0,0 +1,198 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutWatsonxRequestParameters : RequestParameters +{ +} + +/// +/// +/// Create a Watsonx inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the watsonxai service. +/// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. +/// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutWatsonxRequest : PlainRequest +{ + public PutWatsonxRequest(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId) : base(r => r.Required("task_type", taskType).Required("watsonx_inference_id", watsonxInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutWatsonx; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_watsonx"; + + /// + /// + /// The type of service supported for the specified task type. In this case, watsonxai. + /// + /// + [JsonInclude, JsonPropertyName("service")] + public Elastic.Clients.Elasticsearch.Inference.WatsonxServiceType Service { get; set; } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the watsonxai service. + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettings ServiceSettings { get; set; } +} + +/// +/// +/// Create a Watsonx inference endpoint. +/// +/// +/// Create an inference endpoint to perform an inference task with the watsonxai service. +/// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. +/// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. +/// +/// +/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. +/// After creating the endpoint, wait for the model deployment to complete before using it. +/// To verify the deployment status, use the get trained model statistics API. +/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". +/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. +/// +/// +public sealed partial class PutWatsonxRequestDescriptor : RequestDescriptor +{ + internal PutWatsonxRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutWatsonxRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId) : base(r => r.Required("task_type", taskType).Required("watsonx_inference_id", watsonxInferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferencePutWatsonx; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.put_watsonx"; + + public PutWatsonxRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType) + { + RouteValues.Required("task_type", taskType); + return Self; + } + + public PutWatsonxRequestDescriptor WatsonxInferenceId(Elastic.Clients.Elasticsearch.Id watsonxInferenceId) + { + RouteValues.Required("watsonx_inference_id", watsonxInferenceId); + return Self; + } + + private Elastic.Clients.Elasticsearch.Inference.WatsonxServiceType ServiceValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettings ServiceSettingsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettingsDescriptor ServiceSettingsDescriptor { get; set; } + private Action ServiceSettingsDescriptorAction { get; set; } + + /// + /// + /// The type of service supported for the specified task type. In this case, watsonxai. + /// + /// + public PutWatsonxRequestDescriptor Service(Elastic.Clients.Elasticsearch.Inference.WatsonxServiceType service) + { + ServiceValue = service; + return Self; + } + + /// + /// + /// Settings used to install the inference model. These settings are specific to the watsonxai service. + /// + /// + public PutWatsonxRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettings serviceSettings) + { + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsValue = serviceSettings; + return Self; + } + + public PutWatsonxRequestDescriptor ServiceSettings(Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettingsDescriptor descriptor) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptorAction = null; + ServiceSettingsDescriptor = descriptor; + return Self; + } + + public PutWatsonxRequestDescriptor ServiceSettings(Action configure) + { + ServiceSettingsValue = null; + ServiceSettingsDescriptor = null; + ServiceSettingsDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("service"); + JsonSerializer.Serialize(writer, ServiceValue, options); + if (ServiceSettingsDescriptor is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsDescriptor, options); + } + else if (ServiceSettingsDescriptorAction is not null) + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.WatsonxServiceSettingsDescriptor(ServiceSettingsDescriptorAction), options); + } + else + { + writer.WritePropertyName("service_settings"); + JsonSerializer.Serialize(writer, ServiceSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs new file mode 100644 index 00000000000..540c9ac4e2c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxResponse.g.cs @@ -0,0 +1,78 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class PutWatsonxResponse : ElasticsearchResponse +{ + /// + /// + /// Chunking configuration object + /// + /// + [JsonInclude, JsonPropertyName("chunking_settings")] + public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; init; } + + /// + /// + /// The inference Id + /// + /// + [JsonInclude, JsonPropertyName("inference_id")] + public string InferenceId { get; init; } + + /// + /// + /// The service type + /// + /// + [JsonInclude, JsonPropertyName("service")] + public string Service { get; init; } + + /// + /// + /// Settings specific to the service + /// + /// + [JsonInclude, JsonPropertyName("service_settings")] + public object ServiceSettings { get; init; } + + /// + /// + /// Task settings specific to the service and task type + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; init; } + + /// + /// + /// The task type + /// + /// + [JsonInclude, JsonPropertyName("task_type")] + public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs new file mode 100644 index 00000000000..ef8d1a7f345 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankRequest.g.cs @@ -0,0 +1,189 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class RerankRequestParameters : RequestParameters +{ + /// + /// + /// The amount of time to wait for the inference request to complete. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Perform rereanking inference on the service +/// +/// +public sealed partial class RerankRequest : PlainRequest +{ + public RerankRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceRerank; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.rerank"; + + /// + /// + /// The amount of time to wait for the inference request to complete. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// The text on which you want to perform the inference task. + /// It can be a single string or an array. + /// + /// + /// info + /// Inference endpoints for the completion task type currently only support a single string as input. + /// + /// + [JsonInclude, JsonPropertyName("input")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Input { get; set; } + + /// + /// + /// Query input. + /// + /// + [JsonInclude, JsonPropertyName("query")] + public string Query { get; set; } + + /// + /// + /// Task settings for the individual inference request. + /// These settings are specific to the task type you specified and override the task settings specified when initializing the service. + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Perform rereanking inference on the service +/// +/// +public sealed partial class RerankRequestDescriptor : RequestDescriptor +{ + internal RerankRequestDescriptor(Action configure) => configure.Invoke(this); + + public RerankRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceRerank; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.rerank"; + + public RerankRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public RerankRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + private ICollection InputValue { get; set; } + private string QueryValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// The text on which you want to perform the inference task. + /// It can be a single string or an array. + /// + /// + /// info + /// Inference endpoints for the completion task type currently only support a single string as input. + /// + /// + public RerankRequestDescriptor Input(ICollection input) + { + InputValue = input; + return Self; + } + + /// + /// + /// Query input. + /// + /// + public RerankRequestDescriptor Query(string query) + { + QueryValue = query; + return Self; + } + + /// + /// + /// Task settings for the individual inference request. + /// These settings are specific to the task type you specified and override the task settings specified when initializing the service. + /// + /// + public RerankRequestDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input"); + SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs new file mode 100644 index 00000000000..e16720c8019 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/RerankResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class RerankResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("rerank")] + public IReadOnlyCollection Rerank { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs new file mode 100644 index 00000000000..5be15f8aa34 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingRequest.g.cs @@ -0,0 +1,157 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class SparseEmbeddingRequestParameters : RequestParameters +{ + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Perform sparse embedding inference on the service +/// +/// +public sealed partial class SparseEmbeddingRequest : PlainRequest +{ + public SparseEmbeddingRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceSparseEmbedding; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.sparse_embedding"; + + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("input")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Input { get; set; } + + /// + /// + /// Optional task settings + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Perform sparse embedding inference on the service +/// +/// +public sealed partial class SparseEmbeddingRequestDescriptor : RequestDescriptor +{ + internal SparseEmbeddingRequestDescriptor(Action configure) => configure.Invoke(this); + + public SparseEmbeddingRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceSparseEmbedding; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.sparse_embedding"; + + public SparseEmbeddingRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public SparseEmbeddingRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + private ICollection InputValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + public SparseEmbeddingRequestDescriptor Input(ICollection input) + { + InputValue = input; + return Self; + } + + /// + /// + /// Optional task settings + /// + /// + public SparseEmbeddingRequestDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input"); + SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs new file mode 100644 index 00000000000..5556b4229fe --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/SparseEmbeddingResponse.g.cs @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class SparseEmbeddingResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("sparse_embedding")] + public IReadOnlyCollection SparseEmbedding { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs similarity index 75% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs index 13e9654e82f..3c2336b70b2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Inference; -public sealed partial class StreamInferenceRequestParameters : RequestParameters +public sealed partial class StreamCompletionRequestParameters : RequestParameters { } @@ -47,23 +47,19 @@ public sealed partial class StreamInferenceRequestParameters : RequestParameters /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// /// -public sealed partial class StreamInferenceRequest : PlainRequest +public sealed partial class StreamCompletionRequest : PlainRequest { - public StreamInferenceRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + public StreamCompletionRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) { } - public StreamInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceStreamInference; + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceStreamCompletion; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; internal override bool SupportsBody => true; - internal override string OperationName => "inference.stream_inference"; + internal override string OperationName => "inference.stream_completion"; /// /// @@ -77,6 +73,14 @@ public StreamInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? [JsonInclude, JsonPropertyName("input")] [SingleOrManyCollectionConverter(typeof(string))] public ICollection Input { get; set; } + + /// + /// + /// Optional task settings + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } } /// @@ -92,39 +96,30 @@ public StreamInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// /// -public sealed partial class StreamInferenceRequestDescriptor : RequestDescriptor +public sealed partial class StreamCompletionRequestDescriptor : RequestDescriptor { - internal StreamInferenceRequestDescriptor(Action configure) => configure.Invoke(this); - - public StreamInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Optional("task_type", taskType).Required("inference_id", inferenceId)) - { - } + internal StreamCompletionRequestDescriptor(Action configure) => configure.Invoke(this); - public StreamInferenceRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + public StreamCompletionRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) { } - internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceStreamInference; + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceStreamCompletion; protected override HttpMethod StaticHttpMethod => HttpMethod.POST; internal override bool SupportsBody => true; - internal override string OperationName => "inference.stream_inference"; + internal override string OperationName => "inference.stream_completion"; - public StreamInferenceRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + public StreamCompletionRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) { RouteValues.Required("inference_id", inferenceId); return Self; } - public StreamInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType) - { - RouteValues.Optional("task_type", taskType); - return Self; - } - private ICollection InputValue { get; set; } + private object? TaskSettingsValue { get; set; } /// /// @@ -135,17 +130,34 @@ public StreamInferenceRequestDescriptor TaskType(Elastic.Clients.Elasticsearch.I /// NOTE: Inference endpoints for the completion task type currently only support a single string as input. /// /// - public StreamInferenceRequestDescriptor Input(ICollection input) + public StreamCompletionRequestDescriptor Input(ICollection input) { InputValue = input; return Self; } + /// + /// + /// Optional task settings + /// + /// + public StreamCompletionRequestDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); writer.WritePropertyName("input"); SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs new file mode 100644 index 00000000000..5d9bb9f2602 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class StreamCompletionResponse : ElasticsearchResponse +{ +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs new file mode 100644 index 00000000000..851a39b58c4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingRequest.g.cs @@ -0,0 +1,157 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using Elastic.Transport.Extensions; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class TextEmbeddingRequestParameters : RequestParameters +{ + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// +/// Perform text embedding inference on the service +/// +/// +public sealed partial class TextEmbeddingRequest : PlainRequest +{ + public TextEmbeddingRequest(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceTextEmbedding; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.text_embedding"; + + /// + /// + /// Specifies the amount of time to wait for the inference request to complete. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + [JsonInclude, JsonPropertyName("input")] + [SingleOrManyCollectionConverter(typeof(string))] + public ICollection Input { get; set; } + + /// + /// + /// Optional task settings + /// + /// + [JsonInclude, JsonPropertyName("task_settings")] + public object? TaskSettings { get; set; } +} + +/// +/// +/// Perform text embedding inference on the service +/// +/// +public sealed partial class TextEmbeddingRequestDescriptor : RequestDescriptor +{ + internal TextEmbeddingRequestDescriptor(Action configure) => configure.Invoke(this); + + public TextEmbeddingRequestDescriptor(Elastic.Clients.Elasticsearch.Id inferenceId) : base(r => r.Required("inference_id", inferenceId)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceTextEmbedding; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "inference.text_embedding"; + + public TextEmbeddingRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public TextEmbeddingRequestDescriptor InferenceId(Elastic.Clients.Elasticsearch.Id inferenceId) + { + RouteValues.Required("inference_id", inferenceId); + return Self; + } + + private ICollection InputValue { get; set; } + private object? TaskSettingsValue { get; set; } + + /// + /// + /// Inference input. + /// Either a string or an array of strings. + /// + /// + public TextEmbeddingRequestDescriptor Input(ICollection input) + { + InputValue = input; + return Self; + } + + /// + /// + /// Optional task settings + /// + /// + public TextEmbeddingRequestDescriptor TaskSettings(object? taskSettings) + { + TaskSettingsValue = taskSettings; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input"); + SingleOrManySerializationHelper.Serialize(InputValue, writer, options); + if (TaskSettingsValue is not null) + { + writer.WritePropertyName("task_settings"); + JsonSerializer.Serialize(writer, TaskSettingsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs similarity index 95% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs index 6b31527b8b9..5787d7008d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamInferenceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/TextEmbeddingResponse.g.cs @@ -26,6 +26,6 @@ namespace Elastic.Clients.Elasticsearch.Inference; -public sealed partial class StreamInferenceResponse : ElasticsearchResponse +public sealed partial class TextEmbeddingResponse : ElasticsearchResponse { } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs index b3b1146f41e..49cd0b004cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/UpdateInferenceRequest.g.cs @@ -59,7 +59,7 @@ public UpdateInferenceRequest(Elastic.Clients.Elasticsearch.Inference.TaskType? internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceUpdate; - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; internal override bool SupportsBody => true; @@ -95,7 +95,7 @@ public sealed partial class UpdateInferenceRequestDescriptor : RequestDescriptor internal override ApiUrls ApiUrls => ApiUrlLookup.InferenceUpdate; - protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; internal override bool SupportsBody => true; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs index 26a49ab502d..607dd34ce0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.g.cs @@ -34,7 +34,7 @@ public sealed partial class DeleteGeoipDatabaseRequestParameters : RequestParame { /// /// - /// Period to wait for a connection to the master node. + /// The period to wait for a connection to the master node. /// If no response is received before the timeout expires, the request fails and returns an error. /// /// @@ -42,7 +42,7 @@ public sealed partial class DeleteGeoipDatabaseRequestParameters : RequestParame /// /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. /// /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } @@ -51,6 +51,8 @@ public sealed partial class DeleteGeoipDatabaseRequestParameters : RequestParame /// /// /// Delete GeoIP database configurations. +/// +/// /// Delete one or more IP geolocation database configurations. /// /// @@ -70,7 +72,7 @@ public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r /// /// - /// Period to wait for a connection to the master node. + /// The period to wait for a connection to the master node. /// If no response is received before the timeout expires, the request fails and returns an error. /// /// @@ -79,7 +81,7 @@ public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r /// /// - /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. /// /// [JsonIgnore] @@ -89,6 +91,8 @@ public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids id) : base(r /// /// /// Delete GeoIP database configurations. +/// +/// /// Delete one or more IP geolocation database configurations. /// /// @@ -125,6 +129,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Delete GeoIP database configurations. +/// +/// /// Delete one or more IP geolocation database configurations. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs index b118dfd90f7..33b8b504c8d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetGeoipDatabaseRequest.g.cs @@ -32,18 +32,13 @@ namespace Elastic.Clients.Elasticsearch.Ingest; public sealed partial class GetGeoipDatabaseRequestParameters : RequestParameters { - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Get GeoIP database configurations. +/// +/// /// Get information about one or more IP geolocation database configurations. /// /// @@ -64,20 +59,13 @@ public GetGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Ids? id) : base(r = internal override bool SupportsBody => false; internal override string OperationName => "ingest.get_geoip_database"; - - /// - /// - /// Period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// /// /// Get GeoIP database configurations. +/// +/// /// Get information about one or more IP geolocation database configurations. /// /// @@ -101,8 +89,6 @@ public GetGeoipDatabaseRequestDescriptor() internal override string OperationName => "ingest.get_geoip_database"; - public GetGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Ids? id) { RouteValues.Optional("id", id); @@ -117,6 +103,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get GeoIP database configurations. +/// +/// /// Get information about one or more IP geolocation database configurations. /// /// @@ -140,8 +128,6 @@ public GetGeoipDatabaseRequestDescriptor() internal override string OperationName => "ingest.get_geoip_database"; - public GetGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public GetGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Ids? id) { RouteValues.Optional("id", id); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs index 39ca9bc7147..950c44ff498 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/GetPipelineRequest.g.cs @@ -51,6 +51,8 @@ public sealed partial class GetPipelineRequestParameters : RequestParameters /// /// /// Get pipelines. +/// +/// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// @@ -94,6 +96,8 @@ public GetPipelineRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Op /// /// /// Get pipelines. +/// +/// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// @@ -135,6 +139,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Get pipelines. +/// +/// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs index 8d0e30805a5..0cb99e62384 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/PutGeoipDatabaseRequest.g.cs @@ -51,6 +51,8 @@ public sealed partial class PutGeoipDatabaseRequestParameters : RequestParameter /// /// /// Create or update a GeoIP database configuration. +/// +/// /// Refer to the create or update IP geolocation database configuration API. /// /// @@ -106,6 +108,8 @@ public PutGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => /// /// /// Create or update a GeoIP database configuration. +/// +/// /// Refer to the create or update IP geolocation database configuration API. /// /// @@ -208,6 +212,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Create or update a GeoIP database configuration. +/// +/// /// Refer to the create or update IP geolocation database configuration API. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs index 945801158d6..f595df47262 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ingest/SimulateRequest.g.cs @@ -43,6 +43,8 @@ public sealed partial class SimulateRequestParameters : RequestParameters /// /// /// Simulate a pipeline. +/// +/// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// @@ -83,8 +85,8 @@ public SimulateRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optio /// /// - /// Pipeline to test. - /// If you don’t specify the pipeline request path parameter, this parameter is required. + /// The pipeline to test. + /// If you don't specify the pipeline request path parameter, this parameter is required. /// If you specify both this and the request path parameter, the API only uses the request path parameter. /// /// @@ -95,6 +97,8 @@ public SimulateRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optio /// /// /// Simulate a pipeline. +/// +/// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// @@ -178,8 +182,8 @@ public SimulateRequestDescriptor Docs(params Action /// - /// Pipeline to test. - /// If you don’t specify the pipeline request path parameter, this parameter is required. + /// The pipeline to test. + /// If you don't specify the pipeline request path parameter, this parameter is required. /// If you specify both this and the request path parameter, the API only uses the request path parameter. /// /// @@ -264,6 +268,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Simulate a pipeline. +/// +/// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// @@ -347,8 +353,8 @@ public SimulateRequestDescriptor Docs(params Action /// - /// Pipeline to test. - /// If you don’t specify the pipeline request path parameter, this parameter is required. + /// The pipeline to test. + /// If you don't specify the pipeline request path parameter, this parameter is required. /// If you specify both this and the request path parameter, the API only uses the request path parameter. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs index 4f61497c928..01fc1705dd4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/DeleteLicenseRequest.g.cs @@ -32,11 +32,26 @@ namespace Elastic.Clients.Elasticsearch.LicenseManagement; public sealed partial class DeleteLicenseRequestParameters : RequestParameters { + /// + /// + /// The period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Delete the license. +/// +/// /// When the license expires, your subscription level reverts to Basic. /// /// @@ -52,11 +67,29 @@ public sealed partial class DeleteLicenseRequest : PlainRequest false; internal override string OperationName => "license.delete"; + + /// + /// + /// The period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Delete the license. +/// +/// /// When the license expires, your subscription level reverts to Basic. /// /// @@ -79,6 +112,9 @@ public DeleteLicenseRequestDescriptor() internal override string OperationName => "license.delete"; + public DeleteLicenseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public DeleteLicenseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs index 7cf79fc8f49..b3f624c3edb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/GetLicenseRequest.g.cs @@ -43,10 +43,13 @@ public sealed partial class GetLicenseRequestParameters : RequestParameters /// /// /// Get license information. +/// +/// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// -/// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. +/// info +/// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// @@ -72,10 +75,13 @@ public sealed partial class GetLicenseRequest : PlainRequest /// /// Get license information. +/// +/// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// -/// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. +/// info +/// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs index 44625e7feaa..c98725508a5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs @@ -38,11 +38,27 @@ public sealed partial class PostRequestParameters : RequestParameters /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } + + /// + /// + /// The period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Update the license. +/// +/// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -70,6 +86,22 @@ public sealed partial class PostRequest : PlainRequest /// [JsonIgnore] public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } + + /// + /// + /// The period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } [JsonInclude, JsonPropertyName("license")] public Elastic.Clients.Elasticsearch.LicenseManagement.License? License { get; set; } @@ -85,6 +117,8 @@ public sealed partial class PostRequest : PlainRequest /// /// /// Update the license. +/// +/// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -112,6 +146,8 @@ public PostRequestDescriptor() internal override string OperationName => "license.post"; public PostRequestDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); + public PostRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PostRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); private Elastic.Clients.Elasticsearch.LicenseManagement.License? LicenseValue { get; set; } private Elastic.Clients.Elasticsearch.LicenseManagement.LicenseDescriptor LicenseDescriptor { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs index f08108f337c..5aed9764e2e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs @@ -38,11 +38,27 @@ public sealed partial class PostStartBasicRequestParameters : RequestParameters /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Start a basic license. +/// +/// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -73,11 +89,29 @@ public sealed partial class PostStartBasicRequest : PlainRequest [JsonIgnore] public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Start a basic license. +/// +/// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -108,6 +142,8 @@ public PostStartBasicRequestDescriptor() internal override string OperationName => "license.post_start_basic"; public PostStartBasicRequestDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); + public PostStartBasicRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public PostStartBasicRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs index e15c0abbf0f..454a82bbc0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs @@ -38,6 +38,13 @@ public sealed partial class PostStartTrialRequestParameters : RequestParameters /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } public string? TypeQueryString { get => Q("type_query_string"); set => Q("type_query_string", value); } } @@ -71,6 +78,14 @@ public sealed partial class PostStartTrialRequest : PlainRequest [JsonIgnore] public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } + + /// + /// + /// Period to wait for a connection to the master node. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } [JsonIgnore] public string? TypeQueryString { get => Q("type_query_string"); set => Q("type_query_string", value); } } @@ -105,6 +120,7 @@ public PostStartTrialRequestDescriptor() internal override string OperationName => "license.post_start_trial"; public PostStartTrialRequestDescriptor Acknowledge(bool? acknowledge = true) => Qs("acknowledge", acknowledge); + public PostStartTrialRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public PostStartTrialRequestDescriptor TypeQueryString(string? typeQueryString) => Qs("type_query_string", typeQueryString); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs index d0623e3f5cf..9fb19ac21a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ClearTrainedModelDeploymentCacheRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class ClearTrainedModelDeploymentCacheRequestParameters : /// /// /// Clear trained model deployment cache. +/// +/// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. @@ -61,6 +63,8 @@ public ClearTrainedModelDeploymentCacheRequest(Elastic.Clients.Elasticsearch.Id /// /// /// Clear trained model deployment cache. +/// +/// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs index 57ebbdb573f..c3e6681cc64 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/CloseJobRequest.g.cs @@ -37,6 +37,8 @@ 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. @@ -85,6 +87,8 @@ public CloseJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Req /// /// /// 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. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs index e96d8a0c6fc..5c12702cf29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteCalendarRequest.g.cs @@ -37,7 +37,9 @@ public sealed partial class DeleteCalendarRequestParameters : RequestParameters /// /// /// Delete a calendar. -/// Removes all scheduled events from a calendar, then deletes it. +/// +/// +/// Remove all scheduled events from a calendar, then delete it. /// /// public sealed partial class DeleteCalendarRequest : PlainRequest @@ -58,7 +60,9 @@ public DeleteCalendarRequest(Elastic.Clients.Elasticsearch.Id calendarId) : base /// /// /// Delete a calendar. -/// Removes all scheduled events from a calendar, then deletes it. +/// +/// +/// Remove all scheduled events from a calendar, then delete it. /// /// public sealed partial class DeleteCalendarRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs index 02f49150cf5..70a4bfde704 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteExpiredDataRequest.g.cs @@ -37,14 +37,16 @@ public sealed partial class DeleteExpiredDataRequestParameters : RequestParamete /// /// /// Delete expired ML data. -/// Deletes all job results, model snapshots and forecast data that have exceeded +/// +/// +/// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection -/// jobs by using _all, by specifying * as the <job_id>, or by omitting the -/// <job_id>. +/// jobs by using _all, by specifying * as the <job_id>, or by omitting the +/// <job_id>. /// /// public sealed partial class DeleteExpiredDataRequest : PlainRequest @@ -86,14 +88,16 @@ public DeleteExpiredDataRequest(Elastic.Clients.Elasticsearch.Id? jobId) : base( /// /// /// Delete expired ML data. -/// Deletes all job results, model snapshots and forecast data that have exceeded +/// +/// +/// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection -/// jobs by using _all, by specifying * as the <job_id>, or by omitting the -/// <job_id>. +/// jobs by using _all, by specifying * as the <job_id>, or by omitting the +/// <job_id>. /// /// public sealed partial class DeleteExpiredDataRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs index babccd97a41..4cc35859d8e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteFilterRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class DeleteFilterRequestParameters : RequestParameters /// /// /// Delete a filter. +/// +/// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// @@ -59,6 +61,8 @@ public DeleteFilterRequest(Elastic.Clients.Elasticsearch.Id filterId) : base(r = /// /// /// Delete a filter. +/// +/// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs index f6ccf14951c..0291d10fad6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteForecastRequest.g.cs @@ -55,6 +55,8 @@ public sealed partial class DeleteForecastRequestParameters : RequestParameters /// /// /// Delete forecasts from a job. +/// +/// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more @@ -104,6 +106,8 @@ public DeleteForecastRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Cli /// /// /// Delete forecasts from a job. +/// +/// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs index 68da0f7870a..ba3c65229c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteJobRequest.g.cs @@ -61,6 +61,8 @@ public sealed partial class DeleteJobRequestParameters : RequestParameters /// /// /// 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 @@ -115,6 +117,8 @@ public DeleteJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Re /// /// /// 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 diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs index 60154991bb8..63f9409ae80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteModelSnapshotRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class DeleteModelSnapshotRequestParameters : RequestParame /// /// /// Delete a model snapshot. +/// +/// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. @@ -60,6 +62,8 @@ public DeleteModelSnapshotRequest(Elastic.Clients.Elasticsearch.Id jobId, Elasti /// /// /// Delete a model snapshot. +/// +/// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs index a2802a0df4a..9537285c1b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelAliasRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class DeleteTrainedModelAliasRequestParameters : RequestPa /// /// /// Delete a trained model alias. +/// +/// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. @@ -60,6 +62,8 @@ public DeleteTrainedModelAliasRequest(Elastic.Clients.Elasticsearch.Id modelId, /// /// /// Delete a trained model alias. +/// +/// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs index 11d60873725..7da4560d223 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/DeleteTrainedModelRequest.g.cs @@ -38,11 +38,20 @@ public sealed partial class DeleteTrainedModelRequestParameters : RequestParamet /// /// public bool? Force { get => Q("force"); set => Q("force", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Delete an unreferenced trained model. +/// +/// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// /// @@ -67,11 +76,21 @@ public DeleteTrainedModelRequest(Elastic.Clients.Elasticsearch.Id modelId) : bas /// [JsonIgnore] public bool? Force { get => Q("force"); set => Q("force", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// Delete an unreferenced trained model. +/// +/// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// /// @@ -92,6 +111,7 @@ public DeleteTrainedModelRequestDescriptor(Elastic.Clients.Elasticsearch.Id mode internal override string OperationName => "ml.delete_trained_model"; public DeleteTrainedModelRequestDescriptor Force(bool? force = true) => Qs("force", force); + public DeleteTrainedModelRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public DeleteTrainedModelRequestDescriptor ModelId(Elastic.Clients.Elasticsearch.Id modelId) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs index 9ea7bd489fd..6d24b0ec5bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EstimateModelMemoryRequest.g.cs @@ -37,8 +37,10 @@ public sealed partial class EstimateModelMemoryRequestParameters : RequestParame /// /// /// Estimate job model memory usage. -/// Makes an estimation of the memory usage for an anomaly detection job model. -/// It is based on analysis configuration details for the job and cardinality +/// +/// +/// Make an estimation of the memory usage for an anomaly detection job model. +/// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// /// @@ -91,8 +93,10 @@ public sealed partial class EstimateModelMemoryRequest : PlainRequest /// /// Estimate job model memory usage. -/// Makes an estimation of the memory usage for an anomaly detection job model. -/// It is based on analysis configuration details for the job and cardinality +/// +/// +/// Make an estimation of the memory usage for an anomaly detection job model. +/// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// /// @@ -218,8 +222,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Estimate job model memory usage. -/// Makes an estimation of the memory usage for an anomaly detection job model. -/// It is based on analysis configuration details for the job and cardinality +/// +/// +/// Make an estimation of the memory usage for an anomaly detection job model. +/// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs index 55715713750..30c8470c21e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/EvaluateDataFrameRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class EvaluateDataFrameRequestParameters : RequestParamete /// /// /// Evaluate data frame analytics. +/// +/// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth @@ -81,6 +83,8 @@ public sealed partial class EvaluateDataFrameRequest : PlainRequest /// /// Evaluate data frame analytics. +/// +/// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth @@ -224,6 +228,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Evaluate data frame analytics. +/// +/// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs index 86ef39e34da..27b61f5f9f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/ExplainDataFrameAnalyticsRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class ExplainDataFrameAnalyticsRequestParameters : Request /// /// /// Explain data frame analytics config. +/// +/// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -157,6 +159,8 @@ public ExplainDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : /// /// /// Explain data frame analytics config. +/// +/// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -492,6 +496,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Explain data frame analytics config. +/// +/// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs index ee5420191c0..72970798b90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDataFrameAnalyticsStatsRequest.g.cs @@ -87,7 +87,7 @@ public sealed partial class GetDataFrameAnalyticsStatsRequestParameters : Reques /// /// -/// Get data frame analytics jobs usage info. +/// Get data frame analytics job stats. /// /// public sealed partial class GetDataFrameAnalyticsStatsRequest : PlainRequest @@ -167,7 +167,7 @@ public GetDataFrameAnalyticsStatsRequest(Elastic.Clients.Elasticsearch.Id? id) : /// /// -/// Get data frame analytics jobs usage info. +/// Get data frame analytics job stats. /// /// public sealed partial class GetDataFrameAnalyticsStatsRequestDescriptor : RequestDescriptor, GetDataFrameAnalyticsStatsRequestParameters> @@ -208,7 +208,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Get data frame analytics jobs usage info. +/// Get data frame analytics job stats. /// /// public sealed partial class GetDataFrameAnalyticsStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs index 12d213290c1..211580e1a65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetDatafeedStatsRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class GetDatafeedStatsRequestParameters : RequestParameter /// /// -/// Get datafeeds usage info. +/// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -126,7 +126,7 @@ public GetDatafeedStatsRequest(Elastic.Clients.Elasticsearch.Ids? datafeedId) : /// /// -/// Get datafeeds usage info. +/// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs index bea2d642d87..6146ec51618 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/GetJobStatsRequest.g.cs @@ -65,7 +65,7 @@ public sealed partial class GetJobStatsRequestParameters : RequestParameters /// /// -/// Get anomaly detection jobs usage info. +/// Get anomaly detection job stats. /// /// public sealed partial class GetJobStatsRequest : PlainRequest @@ -120,7 +120,7 @@ public GetJobStatsRequest(Elastic.Clients.Elasticsearch.Id? jobId) : base(r => r /// /// -/// Get anomaly detection jobs usage info. +/// Get anomaly detection job stats. /// /// public sealed partial class GetJobStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs index b997be7d093..3ba30cd372d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/OpenJobRequest.g.cs @@ -37,6 +37,8 @@ public sealed partial class OpenJobRequestParameters : RequestParameters /// /// /// Open anomaly detection jobs. +/// +/// /// An anomaly detection job must be opened 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. @@ -71,6 +73,8 @@ public OpenJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Requ /// /// /// Open anomaly detection jobs. +/// +/// /// An anomaly detection job must be opened 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. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs index c59ce728794..8e546a10379 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PreviewDataFrameAnalyticsRequest.g.cs @@ -37,7 +37,7 @@ public sealed partial class PreviewDataFrameAnalyticsRequestParameters : Request /// /// /// Preview features used by data frame analytics. -/// Previews the extracted features used by a data frame analytics config. +/// Preview the extracted features used by a data frame analytics config. /// /// public sealed partial class PreviewDataFrameAnalyticsRequest : PlainRequest @@ -72,7 +72,7 @@ public PreviewDataFrameAnalyticsRequest(Elastic.Clients.Elasticsearch.Id? id) : /// /// /// Preview features used by data frame analytics. -/// Previews the extracted features used by a data frame analytics config. +/// Preview the extracted features used by a data frame analytics config. /// /// public sealed partial class PreviewDataFrameAnalyticsRequestDescriptor : RequestDescriptor, PreviewDataFrameAnalyticsRequestParameters> @@ -162,7 +162,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Preview features used by data frame analytics. -/// Previews the extracted features used by a data frame analytics config. +/// Preview the extracted features used by a data frame analytics config. /// /// public sealed partial class PreviewDataFrameAnalyticsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index b6c1bf9569d..4640697d437 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -357,8 +357,8 @@ public PutDatafeedRequest() /// /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master - /// nodes and the machine learning nodes must have the remote_cluster_client role. + /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine + /// learning nodes must have the remote_cluster_client role. /// /// [JsonInclude, JsonPropertyName("indices")] @@ -604,8 +604,8 @@ public PutDatafeedRequestDescriptor Headers(Func /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master - /// nodes and the machine learning nodes must have the remote_cluster_client role. + /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine + /// learning nodes must have the remote_cluster_client role. /// /// public PutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -1044,8 +1044,8 @@ public PutDatafeedRequestDescriptor Headers(Func /// - /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the master - /// nodes and the machine learning nodes must have the remote_cluster_client role. + /// An array of index names. Wildcards are supported. If any of the indices are in remote clusters, the machine + /// learning nodes must have the remote_cluster_client role. /// /// public PutDatafeedRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs index 6b657b25509..e3e47cd4878 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -86,6 +86,8 @@ public sealed partial class PutJobRequestParameters : RequestParameters /// /// /// Create an anomaly detection job. +/// +/// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// @@ -289,6 +291,8 @@ public PutJobRequest(Elastic.Clients.Elasticsearch.Id jobId) : base(r => r.Requi /// /// /// Create an anomaly detection job. +/// +/// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// @@ -758,6 +762,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// /// Create an anomaly detection job. +/// +/// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs index cb1d77cd15a..ace4f084a7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutTrainedModelResponse.g.cs @@ -140,6 +140,8 @@ public sealed partial class PutTrainedModelResponse : ElasticsearchResponse /// [JsonInclude, JsonPropertyName("model_type")] public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelType? ModelType { get; init; } + [JsonInclude, JsonPropertyName("platform_architecture")] + public string? PlatformArchitecture { get; init; } [JsonInclude, JsonPropertyName("prefix_strings")] public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs index 81f77f7f92a..932a8ca36a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/StartTrainedModelDeploymentRequest.g.cs @@ -56,6 +56,7 @@ public sealed partial class StartTrainedModelDeploymentRequestParameters : Reque /// Increasing this value generally increases the throughput. /// If this setting is greater than the number of hardware threads /// it will automatically be changed to a value less than the number of hardware threads. + /// If adaptive_allocations is enabled, do not set this value, because it’s automatically set. /// /// public int? NumberOfAllocations { get => Q("number_of_allocations"); set => Q("number_of_allocations", value); } @@ -117,7 +118,7 @@ public StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id model protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "ml.start_trained_model_deployment"; @@ -147,6 +148,7 @@ public StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id model /// Increasing this value generally increases the throughput. /// If this setting is greater than the number of hardware threads /// it will automatically be changed to a value less than the number of hardware threads. + /// If adaptive_allocations is enabled, do not set this value, because it’s automatically set. /// /// [JsonIgnore] @@ -196,6 +198,16 @@ public StartTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id model /// [JsonIgnore] public Elastic.Clients.Elasticsearch.MachineLearning.DeploymentAllocationState? WaitFor { get => Q("wait_for"); set => Q("wait_for", value); } + + /// + /// + /// Adaptive allocations configuration. When enabled, the number of allocations + /// is set based on the current load. + /// If adaptive_allocations is enabled, do not set the number of allocations manually. + /// + /// + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; set; } } /// @@ -216,7 +228,7 @@ public StartTrainedModelDeploymentRequestDescriptor(Elastic.Clients.Elasticsearc protected override HttpMethod StaticHttpMethod => HttpMethod.POST; - internal override bool SupportsBody => false; + internal override bool SupportsBody => true; internal override string OperationName => "ml.start_trained_model_deployment"; @@ -235,7 +247,60 @@ public StartTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Elas return Self; } + private Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocationsValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettingsDescriptor AdaptiveAllocationsDescriptor { get; set; } + private Action AdaptiveAllocationsDescriptorAction { get; set; } + + /// + /// + /// Adaptive allocations configuration. When enabled, the number of allocations + /// is set based on the current load. + /// If adaptive_allocations is enabled, do not set the number of allocations manually. + /// + /// + public StartTrainedModelDeploymentRequestDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? adaptiveAllocations) + { + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsValue = adaptiveAllocations; + return Self; + } + + public StartTrainedModelDeploymentRequestDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettingsDescriptor descriptor) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsDescriptor = descriptor; + return Self; + } + + public StartTrainedModelDeploymentRequestDescriptor AdaptiveAllocations(Action configure) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { + writer.WriteStartObject(); + if (AdaptiveAllocationsDescriptor is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsDescriptor, options); + } + else if (AdaptiveAllocationsDescriptorAction is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettingsDescriptor(AdaptiveAllocationsDescriptorAction), options); + } + else if (AdaptiveAllocationsValue is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsValue, options); + } + + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs index fbbf728cec4..240b6d20616 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateTrainedModelDeploymentRequest.g.cs @@ -53,6 +53,16 @@ public UpdateTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id mode internal override string OperationName => "ml.update_trained_model_deployment"; + /// + /// + /// Adaptive allocations configuration. When enabled, the number of allocations + /// is set based on the current load. + /// If adaptive_allocations is enabled, do not set the number of allocations manually. + /// + /// + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocations { get; set; } + /// /// /// The number of model allocations on each node where the model is deployed. @@ -61,6 +71,7 @@ public UpdateTrainedModelDeploymentRequest(Elastic.Clients.Elasticsearch.Id mode /// Increasing this value generally increases the throughput. /// If this setting is greater than the number of hardware threads /// it will automatically be changed to a value less than the number of hardware threads. + /// If adaptive_allocations is enabled, do not set this value, because it’s automatically set. /// /// [JsonInclude, JsonPropertyName("number_of_allocations")] @@ -94,8 +105,42 @@ public UpdateTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Ela return Self; } + private Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? AdaptiveAllocationsValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettingsDescriptor AdaptiveAllocationsDescriptor { get; set; } + private Action AdaptiveAllocationsDescriptorAction { get; set; } private int? NumberOfAllocationsValue { get; set; } + /// + /// + /// Adaptive allocations configuration. When enabled, the number of allocations + /// is set based on the current load. + /// If adaptive_allocations is enabled, do not set the number of allocations manually. + /// + /// + public UpdateTrainedModelDeploymentRequestDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettings? adaptiveAllocations) + { + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsValue = adaptiveAllocations; + return Self; + } + + public UpdateTrainedModelDeploymentRequestDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettingsDescriptor descriptor) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsDescriptor = descriptor; + return Self; + } + + public UpdateTrainedModelDeploymentRequestDescriptor AdaptiveAllocations(Action configure) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = configure; + return Self; + } + /// /// /// The number of model allocations on each node where the model is deployed. @@ -104,6 +149,7 @@ public UpdateTrainedModelDeploymentRequestDescriptor ModelId(Elastic.Clients.Ela /// Increasing this value generally increases the throughput. /// If this setting is greater than the number of hardware threads /// it will automatically be changed to a value less than the number of hardware threads. + /// If adaptive_allocations is enabled, do not set this value, because it’s automatically set. /// /// public UpdateTrainedModelDeploymentRequestDescriptor NumberOfAllocations(int? numberOfAllocations) @@ -115,6 +161,22 @@ public UpdateTrainedModelDeploymentRequestDescriptor NumberOfAllocations(int? nu protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); + if (AdaptiveAllocationsDescriptor is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsDescriptor, options); + } + else if (AdaptiveAllocationsDescriptorAction is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.AdaptiveAllocationsSettingsDescriptor(AdaptiveAllocationsDescriptorAction), options); + } + else if (AdaptiveAllocationsValue is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsValue, options); + } + if (NumberOfAllocationsValue.HasValue) { writer.WritePropertyName("number_of_allocations"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs index 07886ed234a..fa1d2ae792d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpgradeJobSnapshotRequest.g.cs @@ -51,7 +51,7 @@ public sealed partial class UpgradeJobSnapshotRequestParameters : RequestParamet /// /// /// Upgrade a snapshot. -/// Upgrades an anomaly detection model snapshot to the latest major version. +/// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -97,7 +97,7 @@ public UpgradeJobSnapshotRequest(Elastic.Clients.Elasticsearch.Id jobId, Elastic /// /// /// Upgrade a snapshot. -/// Upgrades an anomaly detection model snapshot to the latest major version. +/// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs index 0f6987065fc..71c04adb07b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/HotThreadsRequest.g.cs @@ -47,15 +47,6 @@ public sealed partial class HotThreadsRequestParameters : RequestParameters /// public Elastic.Clients.Elasticsearch.Duration? Interval { get => Q("interval"); set => Q("interval", value); } - /// - /// - /// Period to wait for a connection to the master node. If no response - /// is received before the timeout expires, the request fails and - /// returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// Number of samples of thread stacktrace. @@ -135,16 +126,6 @@ public HotThreadsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId) : base(r [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Interval { get => Q("interval"); set => Q("interval", value); } - /// - /// - /// Period to wait for a connection to the master node. If no response - /// is received before the timeout expires, the request fails and - /// returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// Number of samples of thread stacktrace. @@ -216,7 +197,6 @@ public HotThreadsRequestDescriptor() public HotThreadsRequestDescriptor IgnoreIdleThreads(bool? ignoreIdleThreads = true) => Qs("ignore_idle_threads", ignoreIdleThreads); public HotThreadsRequestDescriptor Interval(Elastic.Clients.Elasticsearch.Duration? interval) => Qs("interval", interval); - public HotThreadsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public HotThreadsRequestDescriptor Snapshots(long? snapshots) => Qs("snapshots", snapshots); public HotThreadsRequestDescriptor Sort(Elastic.Clients.Elasticsearch.ThreadType? sort) => Qs("sort", sort); public HotThreadsRequestDescriptor Threads(long? threads) => Qs("threads", threads); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs index 104b1f5333f..3a6572008bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesInfoRequest.g.cs @@ -39,13 +39,6 @@ public sealed partial class NodesInfoRequestParameters : RequestParameters /// public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. @@ -57,6 +50,8 @@ public sealed partial class NodesInfoRequestParameters : RequestParameters /// /// /// Get node information. +/// +/// /// By default, the API returns all attributes and core settings for cluster nodes. /// /// @@ -94,14 +89,6 @@ public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.C [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. @@ -114,6 +101,8 @@ public NodesInfoRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.C /// /// /// Get node information. +/// +/// /// By default, the API returns all attributes and core settings for cluster nodes. /// /// @@ -138,7 +127,6 @@ public NodesInfoRequestDescriptor() internal override string OperationName => "nodes.info"; public NodesInfoRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public NodesInfoRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public NodesInfoRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public NodesInfoRequestDescriptor Metric(Elastic.Clients.Elasticsearch.Metrics? metric) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs index 47a0483057f..6322bbf9325 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Nodes/NodesStatsRequest.g.cs @@ -81,13 +81,6 @@ public sealed partial class NodesStatsRequestParameters : RequestParameters /// public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); } - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. @@ -200,14 +193,6 @@ public NodesStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic. [JsonIgnore] public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); } - /// - /// - /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. @@ -259,7 +244,6 @@ public NodesStatsRequestDescriptor() public NodesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); public NodesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); public NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); - public NodesStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public NodesStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public NodesStatsRequestDescriptor Types(ICollection? types) => Qs("types", types); @@ -320,7 +304,6 @@ public NodesStatsRequestDescriptor() public NodesStatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); public NodesStatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); public NodesStatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); - public NodesStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public NodesStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public NodesStatsRequestDescriptor Types(ICollection? types) => Qs("types", types); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 8a6b6acbb11..43a2ea9837d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -64,6 +64,13 @@ public sealed partial class OpenPointInTimeRequestParameters : RequestParameters /// public Elastic.Clients.Elasticsearch.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + /// + /// + /// Maximum number of concurrent shard requests that each sub-search request executes per node. + /// + /// + public int? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } + /// /// /// The node or shard the operation should be performed on. @@ -182,6 +189,14 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + /// + /// + /// Maximum number of concurrent shard requests that each sub-search request executes per node. + /// + /// + [JsonIgnore] + public int? MaxConcurrentShardRequests { get => Q("max_concurrent_shard_requests"); set => Q("max_concurrent_shard_requests", value); } + /// /// /// The node or shard the operation should be performed on. @@ -284,6 +299,7 @@ public OpenPointInTimeRequestDescriptor() : this(typeof(TDocument)) public OpenPointInTimeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public OpenPointInTimeRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration keepAlive) => Qs("keep_alive", keepAlive); + public OpenPointInTimeRequestDescriptor MaxConcurrentShardRequests(int? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); public OpenPointInTimeRequestDescriptor Preference(string? preference) => Qs("preference", preference); public OpenPointInTimeRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); @@ -421,6 +437,7 @@ public OpenPointInTimeRequestDescriptor(Elastic.Clients.Elasticsearch.Indices in public OpenPointInTimeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public OpenPointInTimeRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration keepAlive) => Qs("keep_alive", keepAlive); + public OpenPointInTimeRequestDescriptor MaxConcurrentShardRequests(int? maxConcurrentShardRequests) => Qs("max_concurrent_shard_requests", maxConcurrentShardRequests); public OpenPointInTimeRequestDescriptor Preference(string? preference) => Qs("preference", preference); public OpenPointInTimeRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs index 428503821c2..078bc6b8d3c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs @@ -212,7 +212,7 @@ public sealed partial class ReindexRequestParameters : RequestParameters /// done /// /// -/// ** Throttling** +/// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -645,7 +645,7 @@ public sealed partial class ReindexRequest : PlainRequest /// -/// ** Throttling** +/// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -1169,7 +1169,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// done /// /// -/// ** Throttling** +/// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs index ddf8dbfa7ec..589512a7f3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ScriptsPainlessExecuteRequest.g.cs @@ -37,7 +37,17 @@ public sealed partial class ScriptsPainlessExecuteRequestParameters : RequestPar /// /// /// Run a script. +/// +/// /// Runs a script and returns a result. +/// Use this API to build and test scripts, such as when defining a script for a runtime field. +/// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. +/// +/// +/// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. +/// +/// +/// Each context requires a script, but additional parameters depend on the context you're using for that script. /// /// public sealed partial class ScriptsPainlessExecuteRequest : PlainRequest @@ -53,14 +63,16 @@ public sealed partial class ScriptsPainlessExecuteRequest : PlainRequest /// /// The context that the script should run in. + /// NOTE: Result ordering in the field contexts is not guaranteed. /// /// [JsonInclude, JsonPropertyName("context")] - public string? Context { get; set; } + public Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContext? Context { get; set; } /// /// /// Additional parameters for the context. + /// NOTE: This parameter is required for all contexts except painless_test, which is the default if no value is provided for context. /// /// [JsonInclude, JsonPropertyName("context_setup")] @@ -68,7 +80,7 @@ public sealed partial class ScriptsPainlessExecuteRequest : PlainRequest /// - /// The Painless script to execute. + /// The Painless script to run. /// /// [JsonInclude, JsonPropertyName("script")] @@ -78,7 +90,17 @@ public sealed partial class ScriptsPainlessExecuteRequest : PlainRequest /// /// Run a script. +/// +/// /// Runs a script and returns a result. +/// Use this API to build and test scripts, such as when defining a script for a runtime field. +/// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. +/// +/// +/// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. +/// +/// +/// Each context requires a script, but additional parameters depend on the context you're using for that script. /// /// public sealed partial class ScriptsPainlessExecuteRequestDescriptor : RequestDescriptor, ScriptsPainlessExecuteRequestParameters> @@ -97,7 +119,7 @@ public ScriptsPainlessExecuteRequestDescriptor() internal override string OperationName => "scripts_painless_execute"; - private string? ContextValue { get; set; } + private Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContext? ContextValue { get; set; } private Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContextSetup? ContextSetupValue { get; set; } private Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContextSetupDescriptor ContextSetupDescriptor { get; set; } private Action> ContextSetupDescriptorAction { get; set; } @@ -108,9 +130,10 @@ public ScriptsPainlessExecuteRequestDescriptor() /// /// /// The context that the script should run in. + /// NOTE: Result ordering in the field contexts is not guaranteed. /// /// - public ScriptsPainlessExecuteRequestDescriptor Context(string? context) + public ScriptsPainlessExecuteRequestDescriptor Context(Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContext? context) { ContextValue = context; return Self; @@ -119,6 +142,7 @@ public ScriptsPainlessExecuteRequestDescriptor Context(string? contex /// /// /// Additional parameters for the context. + /// NOTE: This parameter is required for all contexts except painless_test, which is the default if no value is provided for context. /// /// public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContextSetup? contextSetup) @@ -147,7 +171,7 @@ public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Action /// - /// The Painless script to execute. + /// The Painless script to run. /// /// public ScriptsPainlessExecuteRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) @@ -177,10 +201,10 @@ public ScriptsPainlessExecuteRequestDescriptor Script(Action /// /// Run a script. +/// +/// /// Runs a script and returns a result. +/// Use this API to build and test scripts, such as when defining a script for a runtime field. +/// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. +/// +/// +/// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. +/// +/// +/// Each context requires a script, but additional parameters depend on the context you're using for that script. /// /// public sealed partial class ScriptsPainlessExecuteRequestDescriptor : RequestDescriptor @@ -241,7 +275,7 @@ public ScriptsPainlessExecuteRequestDescriptor() internal override string OperationName => "scripts_painless_execute"; - private string? ContextValue { get; set; } + private Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContext? ContextValue { get; set; } private Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContextSetup? ContextSetupValue { get; set; } private Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContextSetupDescriptor ContextSetupDescriptor { get; set; } private Action ContextSetupDescriptorAction { get; set; } @@ -252,9 +286,10 @@ public ScriptsPainlessExecuteRequestDescriptor() /// /// /// The context that the script should run in. + /// NOTE: Result ordering in the field contexts is not guaranteed. /// /// - public ScriptsPainlessExecuteRequestDescriptor Context(string? context) + public ScriptsPainlessExecuteRequestDescriptor Context(Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContext? context) { ContextValue = context; return Self; @@ -263,6 +298,7 @@ public ScriptsPainlessExecuteRequestDescriptor Context(string? context) /// /// /// Additional parameters for the context. + /// NOTE: This parameter is required for all contexts except painless_test, which is the default if no value is provided for context. /// /// public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute.PainlessContextSetup? contextSetup) @@ -291,7 +327,7 @@ public ScriptsPainlessExecuteRequestDescriptor ContextSetup(Action /// - /// The Painless script to execute. + /// The Painless script to run. /// /// public ScriptsPainlessExecuteRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) @@ -321,10 +357,10 @@ public ScriptsPainlessExecuteRequestDescriptor Script(Action /// /// Delete a search application. +/// +/// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// @@ -58,6 +60,8 @@ public DeleteSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : /// /// /// Delete a search application. +/// +/// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs index 13bcb8d5841..e8dfe37f8c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/GetSearchApplicationResponse.g.cs @@ -46,7 +46,7 @@ public sealed partial class GetSearchApplicationResponse : ElasticsearchResponse /// /// - /// Search Application name. + /// Search Application name /// /// [JsonInclude, JsonPropertyName("name")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs index 634f03fc463..c1945b4a695 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/ListResponse.g.cs @@ -31,5 +31,5 @@ public sealed partial class ListResponse : ElasticsearchResponse [JsonInclude, JsonPropertyName("count")] public long Count { get; init; } [JsonInclude, JsonPropertyName("results")] - public IReadOnlyCollection Results { get; init; } + public IReadOnlyCollection Results { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs index 30d3c434500..09736ffa1d9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchApplication/PutSearchApplicationRequest.g.cs @@ -67,7 +67,7 @@ public PutSearchApplicationRequest(Elastic.Clients.Elasticsearch.Name name) : ba [JsonIgnore] public bool? Create { get => Q("create"); set => Q("create", value); } [JsonIgnore] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication SearchApplication { get; set; } + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplication { get; set; } void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -83,7 +83,7 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op public sealed partial class PutSearchApplicationRequestDescriptor : RequestDescriptor { internal PutSearchApplicationRequestDescriptor(Action configure) => configure.Invoke(this); - public PutSearchApplicationRequestDescriptor(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) => SearchApplicationValue = searchApplication; + public PutSearchApplicationRequestDescriptor(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) => SearchApplicationValue = searchApplication; internal override ApiUrls ApiUrls => ApiUrlLookup.SearchApplicationPut; @@ -101,11 +101,11 @@ public PutSearchApplicationRequestDescriptor Name(Elastic.Clients.Elasticsearch. return Self; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication SearchApplicationValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationDescriptor SearchApplicationDescriptor { get; set; } - private Action SearchApplicationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters SearchApplicationValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParametersDescriptor SearchApplicationDescriptor { get; set; } + private Action SearchApplicationDescriptorAction { get; set; } - public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication) + public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication) { SearchApplicationDescriptor = null; SearchApplicationDescriptorAction = null; @@ -113,7 +113,7 @@ public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.E return Self; } - public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationDescriptor descriptor) + public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParametersDescriptor descriptor) { SearchApplicationValue = null; SearchApplicationDescriptorAction = null; @@ -121,7 +121,7 @@ public PutSearchApplicationRequestDescriptor SearchApplication(Elastic.Clients.E return Self; } - public PutSearchApplicationRequestDescriptor SearchApplication(Action configure) + public PutSearchApplicationRequestDescriptor SearchApplication(Action configure) { SearchApplicationValue = null; SearchApplicationDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 1ce4a5ef0d8..65ecc689b4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -142,7 +142,7 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// - /// The minimum version of the node that can handle the request. + /// The minimum version of the node that can handle the request /// Any handling node with a lower version will fail the request. /// /// @@ -151,7 +151,8 @@ public sealed partial class SearchRequestParameters : RequestParameters /// /// /// The nodes and shards used for the search. - /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: + /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. + /// Valid values are: /// /// /// @@ -384,7 +385,7 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "indices_boost") { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); + variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); continue; } @@ -926,7 +927,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// - /// The minimum version of the node that can handle the request. + /// The minimum version of the node that can handle the request /// Any handling node with a lower version will fail the request. /// /// @@ -936,7 +937,8 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// /// The nodes and shards used for the search. - /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: + /// By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. + /// Valid values are: /// /// /// @@ -1198,7 +1200,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => /// /// [JsonInclude, JsonPropertyName("indices_boost")] - public ICollection>? IndicesBoost { get; set; } + public ICollection>? IndicesBoost { get; set; } /// /// @@ -1541,7 +1543,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Elastic.Clients.Elasticsearch.Core.Search.Highlight? HighlightValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } private Action> HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private ICollection? KnnValue { get; set; } private Elastic.Clients.Elasticsearch.KnnSearchDescriptor KnnDescriptor { get; set; } private Action> KnnDescriptorAction { get; set; } @@ -1787,7 +1789,7 @@ public SearchRequestDescriptor Highlight(Action0 and 1.0 decreases the score. /// /// - public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) + public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -2840,7 +2842,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private Elastic.Clients.Elasticsearch.Core.Search.Highlight? HighlightValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } private Action HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private ICollection? KnnValue { get; set; } private Elastic.Clients.Elasticsearch.KnnSearchDescriptor KnnDescriptor { get; set; } private Action KnnDescriptorAction { get; set; } @@ -3086,7 +3088,7 @@ public SearchRequestDescriptor Highlight(Action0 and 1.0 decreases the score. /// /// - public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) + public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index ca5f0caf3ea..cdd709a4913 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -65,6 +65,15 @@ public sealed partial class SearchShardsRequestParameters : RequestParameters /// public bool? Local { get => Q("local"); set => Q("local", value); } + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// IT can also be set to -1 to indicate that the request should never timeout. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// The node or shard the operation should be performed on. @@ -149,6 +158,16 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas [JsonIgnore] public bool? Local { get => Q("local"); set => Q("local", value); } + /// + /// + /// The period to wait for a connection to the master node. + /// If the master node is not available before the timeout expires, the request fails and returns an error. + /// IT can also be set to -1 to indicate that the request should never timeout. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + /// /// /// The node or shard the operation should be performed on. @@ -204,6 +223,7 @@ public SearchShardsRequestDescriptor() public SearchShardsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchShardsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchShardsRequestDescriptor Local(bool? local = true) => Qs("local", local); + public SearchShardsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public SearchShardsRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchShardsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); @@ -255,6 +275,7 @@ public SearchShardsRequestDescriptor() public SearchShardsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchShardsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchShardsRequestDescriptor Local(bool? local = true) => Qs("local", local); + public SearchShardsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public SearchShardsRequestDescriptor Preference(string? preference) => Qs("preference", preference); public SearchShardsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs index 1884ff7bccf..a4658b2eb52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/GetBuiltinPrivilegesResponse.g.cs @@ -42,8 +42,7 @@ public sealed partial class GetBuiltinPrivilegesResponse : ElasticsearchResponse /// /// [JsonInclude, JsonPropertyName("index")] - [SingleOrManyCollectionConverter(typeof(string))] - public IReadOnlyCollection Indices { get; init; } + public IReadOnlyCollection Index { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs index 30273c570ae..cad87477d70 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/OidcLogoutRequest.g.cs @@ -61,19 +61,19 @@ public sealed partial class OidcLogoutRequest : PlainRequest /// - /// The access token to be invalidated. + /// The refresh token to be invalidated. /// /// - [JsonInclude, JsonPropertyName("access_token")] - public string AccessToken { get; set; } + [JsonInclude, JsonPropertyName("refresh_token")] + public string? RefreshToken { get; set; } /// /// - /// The refresh token to be invalidated. + /// The access token to be invalidated. /// /// - [JsonInclude, JsonPropertyName("refresh_token")] - public string? RefreshToken { get; set; } + [JsonInclude, JsonPropertyName("token")] + public string Token { get; set; } } /// @@ -107,42 +107,42 @@ public OidcLogoutRequestDescriptor() internal override string OperationName => "security.oidc_logout"; - private string AccessTokenValue { get; set; } private string? RefreshTokenValue { get; set; } + private string TokenValue { get; set; } /// /// - /// The access token to be invalidated. + /// The refresh token to be invalidated. /// /// - public OidcLogoutRequestDescriptor AccessToken(string accessToken) + public OidcLogoutRequestDescriptor RefreshToken(string? refreshToken) { - AccessTokenValue = accessToken; + RefreshTokenValue = refreshToken; return Self; } /// /// - /// The refresh token to be invalidated. + /// The access token to be invalidated. /// /// - public OidcLogoutRequestDescriptor RefreshToken(string? refreshToken) + public OidcLogoutRequestDescriptor Token(string token) { - RefreshTokenValue = refreshToken; + TokenValue = token; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - writer.WritePropertyName("access_token"); - writer.WriteStringValue(AccessTokenValue); if (!string.IsNullOrEmpty(RefreshTokenValue)) { writer.WritePropertyName("refresh_token"); writer.WriteStringValue(RefreshTokenValue); } + writer.WritePropertyName("token"); + writer.WriteStringValue(TokenValue); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs index 69c10ac78c7..e1b4de8d132 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/CloneSnapshotRequest.g.cs @@ -38,7 +38,6 @@ public sealed partial class CloneSnapshotRequestParameters : RequestParameters /// /// public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// @@ -68,8 +67,6 @@ public CloneSnapshotRequest(Elastic.Clients.Elasticsearch.Name repository, Elast /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } [JsonInclude, JsonPropertyName("indices")] public string Indices { get; set; } } @@ -97,7 +94,6 @@ public CloneSnapshotRequestDescriptor(Elastic.Clients.Elasticsearch.Name reposit internal override string OperationName => "snapshot.clone"; public CloneSnapshotRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public CloneSnapshotRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public CloneSnapshotRequestDescriptor Repository(Elastic.Clients.Elasticsearch.Name repository) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs index 257c676096f..e14cb402877 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/ListRequest.g.cs @@ -56,14 +56,6 @@ public sealed partial class ListRequestParameters : RequestParameters /// public Elastic.Clients.Elasticsearch.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// A comma-separated list of node IDs or names that is used to limit the returned information. @@ -201,15 +193,6 @@ public sealed partial class ListRequest : PlainRequest [JsonIgnore] public Elastic.Clients.Elasticsearch.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } - /// - /// - /// The period to wait for a connection to the master node. - /// If no response is received before the timeout expires, the request fails and returns an error. - /// - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } - /// /// /// A comma-separated list of node IDs or names that is used to limit the returned information. @@ -333,7 +316,6 @@ public ListRequestDescriptor() public ListRequestDescriptor Actions(ICollection? actions) => Qs("actions", actions); public ListRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); public ListRequestDescriptor GroupBy(Elastic.Clients.Elasticsearch.Tasks.GroupBy? groupBy) => Qs("group_by", groupBy); - public ListRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public ListRequestDescriptor Nodes(Elastic.Clients.Elasticsearch.NodeIds? nodes) => Qs("nodes", nodes); public ListRequestDescriptor ParentTaskId(Elastic.Clients.Elasticsearch.Id? parentTaskId) => Qs("parent_task_id", parentTaskId); public ListRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index 9b7d2037c92..e13534d263e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -32,59 +32,6 @@ namespace Elastic.Clients.Elasticsearch; public sealed partial class TermVectorsRequestParameters : RequestParameters { - /// - /// - /// A comma-separated list or wildcard expressions of fields to include in the statistics. - /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } - - /// - /// - /// If true, the response includes: - /// - /// - /// - /// - /// The document count (how many documents contain this field). - /// - /// - /// - /// - /// The sum of document frequencies (the sum of document frequencies for all terms in this field). - /// - /// - /// - /// - /// The sum of total term frequencies (the sum of total term frequencies of each term in this field). - /// - /// - /// - /// - public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } - - /// - /// - /// If true, the response includes term offsets. - /// - /// - public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } - - /// - /// - /// If true, the response includes term payloads. - /// - /// - public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } - - /// - /// - /// If true, the response includes term positions. - /// - /// - public bool? Positions { get => Q("positions"); set => Q("positions", value); } - /// /// /// The node or shard the operation should be performed on. @@ -99,49 +46,6 @@ public sealed partial class TermVectorsRequestParameters : RequestParameters /// /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } - - /// - /// - /// A custom value that is used to route operations to a specific shard. - /// - /// - public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } - - /// - /// - /// If true, the response includes: - /// - /// - /// - /// - /// The total term frequency (how often a term occurs in all documents). - /// - /// - /// - /// - /// The document frequency (the number of documents containing the current term). - /// - /// - /// - /// - /// By default these values are not returned since term statistics can have a serious performance impact. - /// - /// - public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } - - /// - /// - /// If true, returns the document version as part of a hit. - /// - /// - public long? Version { get => Q("version"); set => Q("version", value); } - - /// - /// - /// The version type. - /// - /// - public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// @@ -235,12 +139,39 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// - /// A comma-separated list or wildcard expressions of fields to include in the statistics. - /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// The node or shard the operation should be performed on. + /// It is random by default. /// /// [JsonIgnore] - public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } + public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// + /// If true, the request is real-time as opposed to near-real-time. + /// + /// + [JsonIgnore] + public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } + + /// + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// + /// + [JsonInclude, JsonPropertyName("doc")] + [SourceConverter] + public TDocument? Doc { get; set; } + + /// + /// + /// A list of fields to include in the statistics. + /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// + /// + [JsonInclude, JsonPropertyName("fields")] + [JsonConverter(typeof(SingleOrManyFieldsConverter))] + public Elastic.Clients.Elasticsearch.Fields? Fields { get; set; } /// /// @@ -264,57 +195,60 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// /// /// - [JsonIgnore] - public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } + [JsonInclude, JsonPropertyName("field_statistics")] + public bool? FieldStatistics { get; set; } /// /// - /// If true, the response includes term offsets. + /// Filter terms based on their tf-idf scores. + /// This could be useful in order find out a good characteristic vector of a document. + /// This feature works in a similar manner to the second phase of the More Like This Query. /// /// - [JsonIgnore] - public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } + [JsonInclude, JsonPropertyName("filter")] + public Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? Filter { get; set; } /// /// - /// If true, the response includes term payloads. + /// If true, the response includes term offsets. /// /// - [JsonIgnore] - public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } + [JsonInclude, JsonPropertyName("offsets")] + public bool? Offsets { get; set; } /// /// - /// If true, the response includes term positions. + /// If true, the response includes term payloads. /// /// - [JsonIgnore] - public bool? Positions { get => Q("positions"); set => Q("positions", value); } + [JsonInclude, JsonPropertyName("payloads")] + public bool? Payloads { get; set; } /// /// - /// The node or shard the operation should be performed on. - /// It is random by default. + /// Override the default per-field analyzer. + /// This is useful in order to generate term vectors in any fashion, especially when using artificial documents. + /// When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated. /// /// - [JsonIgnore] - public string? Preference { get => Q("preference"); set => Q("preference", value); } + [JsonInclude, JsonPropertyName("per_field_analyzer")] + public IDictionary? PerFieldAnalyzer { get; set; } /// /// - /// If true, the request is real-time as opposed to near-real-time. + /// If true, the response includes term positions. /// /// - [JsonIgnore] - public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } + [JsonInclude, JsonPropertyName("positions")] + public bool? Positions { get; set; } /// /// /// A custom value that is used to route operations to a specific shard. /// /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + [JsonInclude, JsonPropertyName("routing")] + public Elastic.Clients.Elasticsearch.Routing? Routing { get; set; } /// /// @@ -336,53 +270,24 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( /// By default these values are not returned since term statistics can have a serious performance impact. /// /// - [JsonIgnore] - public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } + [JsonInclude, JsonPropertyName("term_statistics")] + public bool? TermStatistics { get; set; } /// /// /// If true, returns the document version as part of a hit. /// /// - [JsonIgnore] - public long? Version { get => Q("version"); set => Q("version", value); } + [JsonInclude, JsonPropertyName("version")] + public long? Version { get; set; } /// /// /// The version type. /// /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } - - /// - /// - /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. - /// - /// - [JsonInclude, JsonPropertyName("doc")] - [SourceConverter] - public TDocument? Doc { get; set; } - - /// - /// - /// Filter terms based on their tf-idf scores. - /// This could be useful in order find out a good characteristic vector of a document. - /// This feature works in a similar manner to the second phase of the More Like This Query. - /// - /// - [JsonInclude, JsonPropertyName("filter")] - public Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? Filter { get; set; } - - /// - /// - /// Override the default per-field analyzer. - /// This is useful in order to generate term vectors in any fashion, especially when using artificial documents. - /// When providing an analyzer for a field that already stores term vectors, the term vectors will be regenerated. - /// - /// - [JsonInclude, JsonPropertyName("per_field_analyzer")] - public IDictionary? PerFieldAnalyzer { get; set; } + [JsonInclude, JsonPropertyName("version_type")] + public Elastic.Clients.Elasticsearch.VersionType? VersionType { get; set; } } /// @@ -492,17 +397,8 @@ public TermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.Id? id) : this internal override string OperationName => "termvectors"; - public TermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); - public TermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); - public TermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); - public TermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); - public TermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); public TermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); public TermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); - public TermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); - public TermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); - public TermVectorsRequestDescriptor Version(long? version) => Qs("version", version); - public TermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) => Qs("version_type", versionType); public TermVectorsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) { @@ -517,10 +413,19 @@ public TermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsear } private TDocument? DocValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields? FieldsValue { get; set; } + private bool? FieldStatisticsValue { get; set; } private Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? FilterValue { get; set; } private Elastic.Clients.Elasticsearch.Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } private Action FilterDescriptorAction { get; set; } + private bool? OffsetsValue { get; set; } + private bool? PayloadsValue { get; set; } private IDictionary? PerFieldAnalyzerValue { get; set; } + private bool? PositionsValue { get; set; } + private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } + private bool? TermStatisticsValue { get; set; } + private long? VersionValue { get; set; } + private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } /// /// @@ -533,6 +438,46 @@ public TermVectorsRequestDescriptor Doc(TDocument? doc) return Self; } + /// + /// + /// A list of fields to include in the statistics. + /// It is used as the default list unless a specific field list is provided in the completion_fields or fielddata_fields parameters. + /// + /// + public TermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) + { + FieldsValue = fields; + return Self; + } + + /// + /// + /// If true, the response includes: + /// + /// + /// + /// + /// The document count (how many documents contain this field). + /// + /// + /// + /// + /// The sum of document frequencies (the sum of document frequencies for all terms in this field). + /// + /// + /// + /// + /// The sum of total term frequencies (the sum of total term frequencies of each term in this field). + /// + /// + /// + /// + public TermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) + { + FieldStatisticsValue = fieldStatistics; + return Self; + } + /// /// /// Filter terms based on their tf-idf scores. @@ -564,6 +509,28 @@ public TermVectorsRequestDescriptor Filter(Action + /// + /// If true, the response includes term offsets. + /// + /// + public TermVectorsRequestDescriptor Offsets(bool? offsets = true) + { + OffsetsValue = offsets; + return Self; + } + + /// + /// + /// If true, the response includes term payloads. + /// + /// + public TermVectorsRequestDescriptor Payloads(bool? payloads = true) + { + PayloadsValue = payloads; + return Self; + } + /// /// /// Override the default per-field analyzer. @@ -577,6 +544,76 @@ public TermVectorsRequestDescriptor PerFieldAnalyzer(Func + /// + /// If true, the response includes term positions. + /// + /// + public TermVectorsRequestDescriptor Positions(bool? positions = true) + { + PositionsValue = positions; + return Self; + } + + /// + /// + /// A custom value that is used to route operations to a specific shard. + /// + /// + public TermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) + { + RoutingValue = routing; + return Self; + } + + /// + /// + /// If true, the response includes: + /// + /// + /// + /// + /// The total term frequency (how often a term occurs in all documents). + /// + /// + /// + /// + /// The document frequency (the number of documents containing the current term). + /// + /// + /// + /// + /// By default these values are not returned since term statistics can have a serious performance impact. + /// + /// + public TermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) + { + TermStatisticsValue = termStatistics; + return Self; + } + + /// + /// + /// If true, returns the document version as part of a hit. + /// + /// + public TermVectorsRequestDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + /// + /// + /// The version type. + /// + /// + public TermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) + { + VersionTypeValue = versionType; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -586,6 +623,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o settings.SourceSerializer.Serialize(DocValue, writer); } + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (FieldStatisticsValue.HasValue) + { + writer.WritePropertyName("field_statistics"); + writer.WriteBooleanValue(FieldStatisticsValue.Value); + } + if (FilterDescriptor is not null) { writer.WritePropertyName("filter"); @@ -602,12 +651,54 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, FilterValue, options); } + if (OffsetsValue.HasValue) + { + writer.WritePropertyName("offsets"); + writer.WriteBooleanValue(OffsetsValue.Value); + } + + if (PayloadsValue.HasValue) + { + writer.WritePropertyName("payloads"); + writer.WriteBooleanValue(PayloadsValue.Value); + } + if (PerFieldAnalyzerValue is not null) { writer.WritePropertyName("per_field_analyzer"); JsonSerializer.Serialize(writer, PerFieldAnalyzerValue, options); } + if (PositionsValue.HasValue) + { + writer.WritePropertyName("positions"); + writer.WriteBooleanValue(PositionsValue.Value); + } + + if (RoutingValue is not null) + { + writer.WritePropertyName("routing"); + JsonSerializer.Serialize(writer, RoutingValue, options); + } + + if (TermStatisticsValue.HasValue) + { + writer.WritePropertyName("term_statistics"); + writer.WriteBooleanValue(TermStatisticsValue.Value); + } + + if (VersionValue.HasValue) + { + writer.WritePropertyName("version"); + writer.WriteNumberValue(VersionValue.Value); + } + + if (VersionTypeValue is not null) + { + writer.WritePropertyName("version_type"); + JsonSerializer.Serialize(writer, VersionTypeValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs index 4c99c8484f9..512fbe3f06d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/DeleteTransformRequest.g.cs @@ -59,7 +59,6 @@ public sealed partial class DeleteTransformRequestParameters : RequestParameters /// /// /// Delete a transform. -/// Deletes a transform. /// /// public sealed partial class DeleteTransformRequest : PlainRequest @@ -106,7 +105,6 @@ public DeleteTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : ba /// /// /// Delete a transform. -/// Deletes a transform. /// /// public sealed partial class DeleteTransformRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs index c5d4152ca6b..6442792baa1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformRequest.g.cs @@ -87,7 +87,7 @@ public sealed partial class GetTransformRequestParameters : RequestParameters /// /// /// Get transforms. -/// Retrieves configuration information for transforms. +/// Get configuration information for transforms. /// /// public sealed partial class GetTransformRequest : PlainRequest @@ -167,7 +167,7 @@ public GetTransformRequest(Elastic.Clients.Elasticsearch.Names? transformId) : b /// /// /// Get transforms. -/// Retrieves configuration information for transforms. +/// Get configuration information for transforms. /// /// public sealed partial class GetTransformRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs index bfd538ede2c..45484546fc9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/GetTransformStatsRequest.g.cs @@ -85,7 +85,9 @@ public sealed partial class GetTransformStatsRequestParameters : RequestParamete /// /// /// Get transform stats. -/// Retrieves usage information for transforms. +/// +/// +/// Get usage information for transforms. /// /// public sealed partial class GetTransformStatsRequest : PlainRequest @@ -159,7 +161,9 @@ public GetTransformStatsRequest(Elastic.Clients.Elasticsearch.Names transformId) /// /// /// Get transform stats. -/// Retrieves usage information for transforms. +/// +/// +/// Get usage information for transforms. /// /// public sealed partial class GetTransformStatsRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs index bbe3236f756..cbd89c47c1d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ResetTransformRequest.g.cs @@ -39,12 +39,20 @@ public sealed partial class ResetTransformRequestParameters : RequestParameters /// /// public bool? Force { get => Q("force"); set => Q("force", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// 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. /// @@ -71,12 +79,21 @@ public ResetTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : bas /// [JsonIgnore] public bool? Force { get => Q("force"); set => Q("force", value); } + + /// + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// /// /// 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. /// @@ -98,6 +115,7 @@ public ResetTransformRequestDescriptor(Elastic.Clients.Elasticsearch.Id transfor internal override string OperationName => "transform.reset_transform"; public ResetTransformRequestDescriptor Force(bool? force = true) => Qs("force", force); + public ResetTransformRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public ResetTransformRequestDescriptor TransformId(Elastic.Clients.Elasticsearch.Id transformId) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs index b77da029d31..827e87d9efd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs @@ -43,12 +43,12 @@ public sealed partial class ScheduleNowTransformRequestParameters : RequestParam /// /// /// 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 +/// Instantly run a transform to process data. +/// If you run this API, the transform will process the new data instantly, +/// without waiting for the configured frequency interval. After the API is called, +/// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// /// @@ -78,12 +78,12 @@ public ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) /// /// /// 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 +/// Instantly run a transform to process data. +/// If you run this API, the transform will process the new data instantly, +/// without waiting for the configured frequency interval. After the API is called, +/// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs index c13718c4ae6..4ab0fcc7ae5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/StartTransformRequest.g.cs @@ -50,7 +50,6 @@ public sealed partial class StartTransformRequestParameters : RequestParameters /// /// /// 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 @@ -104,7 +103,6 @@ public StartTransformRequest(Elastic.Clients.Elasticsearch.Id transformId) : bas /// /// /// 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 diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs index 50bfb0a2008..9c78a62f739 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/UpgradeTransformsRequest.g.cs @@ -51,6 +51,8 @@ public sealed partial class UpgradeTransformsRequestParameters : RequestParamete /// /// /// Upgrade all transforms. +/// +/// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -99,6 +101,8 @@ public sealed partial class UpgradeTransformsRequest : PlainRequest /// /// Upgrade all transforms. +/// +/// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 62ddddb5ae9..cb3ad6d318d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -85,7 +85,7 @@ public sealed partial class UpdateByQueryRequestParameters : RequestParameters /// /// - /// Starting offset (default: 0) + /// Skips the specified number of documents. /// /// public long? From { get => Q("from"); set => Q("from", value); } @@ -499,7 +499,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas /// /// - /// Starting offset (default: 0) + /// Skips the specified number of documents. /// /// [JsonIgnore] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs index 04e8cf18581..e7bb5e78105 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateRequest.g.cs @@ -46,6 +46,13 @@ public sealed partial class UpdateRequestParameters : RequestParameters /// public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + /// /// /// The script language. @@ -187,6 +194,14 @@ public UpdateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie [JsonIgnore] public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } + /// + /// + /// True or false if to include the document source in the error message in case of parsing errors. + /// + /// + [JsonIgnore] + public bool? IncludeSourceOnError { get => Q("include_source_on_error"); set => Q("include_source_on_error", value); } + /// /// /// The script language. @@ -403,6 +418,7 @@ public UpdateRequestDescriptor(Elastic.Clients.Elasticsearch.Id id) : this(typeo public UpdateRequestDescriptor IfPrimaryTerm(long? ifPrimaryTerm) => Qs("if_primary_term", ifPrimaryTerm); public UpdateRequestDescriptor IfSeqNo(long? ifSeqNo) => Qs("if_seq_no", ifSeqNo); + public UpdateRequestDescriptor IncludeSourceOnError(bool? includeSourceOnError = true) => Qs("include_source_on_error", includeSourceOnError); public UpdateRequestDescriptor Lang(string? lang) => Qs("lang", lang); public UpdateRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? refresh) => Qs("refresh", refresh); public UpdateRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 6cdf90cffa7..7d7f719f07a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -48,7 +48,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) @@ -66,7 +66,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -83,7 +83,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) @@ -101,7 +101,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -120,7 +120,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -140,7 +140,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) @@ -158,7 +158,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescript /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -177,7 +177,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -197,7 +197,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -214,7 +214,7 @@ public virtual Task DeleteAsync(DeleteAsyn /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -251,7 +251,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -268,7 +268,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Otherwise, the saved search results are deleted. /// If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -304,7 +304,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) @@ -321,7 +321,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -337,7 +337,7 @@ public virtual Task> GetAsync(GetAs /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequestDescriptor descriptor) @@ -354,7 +354,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -372,7 +372,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -391,7 +391,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -407,7 +407,7 @@ public virtual Task> GetAsync(GetAs /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -424,7 +424,7 @@ public virtual Task> GetAsync(Elast /// Retrieve the results of a previously submitted asynchronous search request. /// If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -440,9 +440,21 @@ public virtual Task> GetAsync(Elast /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) @@ -457,9 +469,21 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -473,9 +497,21 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) @@ -490,9 +526,21 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) @@ -508,9 +556,21 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -527,9 +587,21 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) @@ -544,9 +616,21 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescript /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) @@ -562,9 +646,21 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -581,9 +677,21 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -597,9 +705,21 @@ public virtual Task StatusAsync(AsyncSearc /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -614,9 +734,21 @@ public virtual Task StatusAsync(Elastic.Cl /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -632,9 +764,21 @@ public virtual Task StatusAsync(Elastic.Cl /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. + /// + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -648,9 +792,21 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -665,9 +821,21 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// /// Get the status of a previously submitted async search request given its identifier, without retrieving search results. - /// If the Elasticsearch security features are enabled, use of this API is restricted to the monitoring_user role. + /// If the Elasticsearch security features are enabled, the access to the status of a specific async search is restricted to: + /// + /// + /// + /// + /// The user or API key that submitted the original async search request. + /// + /// + /// + /// + /// Users that have the monitor cluster privilege or greater privileges. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -691,7 +859,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) @@ -714,7 +882,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -736,7 +904,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) @@ -759,7 +927,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Elastic.Clients.Elasticsearch.Indices? indices) @@ -783,7 +951,7 @@ public virtual SubmitAsyncSearchResponse Submit(Elastic.Cl /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -808,7 +976,7 @@ public virtual SubmitAsyncSearchResponse Submit(Elastic.Cl /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit() @@ -832,7 +1000,7 @@ public virtual SubmitAsyncSearchResponse Submit() /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) @@ -857,7 +1025,7 @@ public virtual SubmitAsyncSearchResponse Submit(Actionsearch.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -879,7 +1047,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -902,7 +1070,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -926,7 +1094,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -949,7 +1117,7 @@ public virtual Task> SubmitAsync /// By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error. /// The maximum allowed size for a stored async search response can be set by changing the search.max_async_search_response_size cluster level setting. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs index 410d8d118fe..a801e1a0751 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs @@ -42,9 +42,11 @@ internal CrossClusterReplicationNamespacedClient(ElasticsearchClient client) : b /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequest request) @@ -56,9 +58,11 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAut /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -69,9 +73,11 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequestDescriptor descriptor) @@ -83,9 +89,11 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAut /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -98,9 +106,11 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.C /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -114,9 +124,11 @@ public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(Elastic.C /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(DeleteAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -127,9 +139,11 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -141,9 +155,11 @@ public virtual Task DeleteAutoFollowPatternAsyn /// /// /// Delete auto-follow patterns. + /// + /// /// Delete a collection of cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -159,7 +175,7 @@ public virtual Task DeleteAutoFollowPatternAsyn /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequest request) @@ -174,7 +190,7 @@ public virtual FollowResponse Follow(FollowRequest request) /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +204,7 @@ public virtual Task FollowAsync(FollowRequest request, Cancellat /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) @@ -203,7 +219,7 @@ public virtual FollowResponse Follow(FollowRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) @@ -219,7 +235,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -236,7 +252,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.In /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow() @@ -252,7 +268,7 @@ public virtual FollowResponse Follow() /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Action> configureRequest) @@ -269,7 +285,7 @@ public virtual FollowResponse Follow(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) @@ -284,7 +300,7 @@ public virtual FollowResponse Follow(FollowRequestDescriptor descriptor) /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index) @@ -300,7 +316,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -317,7 +333,7 @@ public virtual FollowResponse Follow(Elastic.Clients.Elasticsearch.IndexName ind /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -331,7 +347,7 @@ public virtual Task FollowAsync(FollowRequestDescript /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -346,7 +362,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elast /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -362,7 +378,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elast /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(CancellationToken cancellationToken = default) { @@ -377,7 +393,7 @@ public virtual Task FollowAsync(CancellationToken can /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -393,7 +409,7 @@ public virtual Task FollowAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(FollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -407,7 +423,7 @@ public virtual Task FollowAsync(FollowRequestDescriptor descript /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -422,7 +438,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// Create a cross-cluster replication follower index that follows a specific leader index. /// When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -435,10 +451,12 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) @@ -450,10 +468,12 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequest request, CancellationToken cancellationToken = default) { @@ -464,10 +484,12 @@ public virtual Task FollowInfoAsync(FollowInfoRequest reques /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) @@ -479,10 +501,12 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescrip /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) @@ -495,10 +519,12 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -512,10 +538,12 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elastics /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo() @@ -528,10 +556,12 @@ public virtual FollowInfoResponse FollowInfo() /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Action> configureRequest) @@ -545,10 +575,12 @@ public virtual FollowInfoResponse FollowInfo(Action /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descriptor) @@ -560,10 +592,12 @@ public virtual FollowInfoResponse FollowInfo(FollowInfoRequestDescriptor descrip /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices) @@ -576,10 +610,12 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -593,10 +629,12 @@ public virtual FollowInfoResponse FollowInfo(Elastic.Clients.Elasticsearch.Indic /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -607,10 +645,12 @@ public virtual Task FollowInfoAsync(FollowInfoReq /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -622,10 +662,12 @@ public virtual Task FollowInfoAsync(Elastic.Clien /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -638,10 +680,12 @@ public virtual Task FollowInfoAsync(Elastic.Clien /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(CancellationToken cancellationToken = default) { @@ -653,10 +697,12 @@ public virtual Task FollowInfoAsync(CancellationT /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -669,10 +715,12 @@ public virtual Task FollowInfoAsync(Action /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(FollowInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -683,10 +731,12 @@ public virtual Task FollowInfoAsync(FollowInfoRequestDescrip /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -698,10 +748,12 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// /// /// Get follower information. + /// + /// /// Get information about all cross-cluster replication follower indices. /// For example, the results include follower index names, leader index names, replication options, and whether the follower indices are active or paused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowInfoAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -714,10 +766,12 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) @@ -729,10 +783,12 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequest request, CancellationToken cancellationToken = default) { @@ -743,10 +799,12 @@ public virtual Task FollowStatsAsync(FollowStatsRequest req /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) @@ -758,10 +816,12 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDesc /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -774,10 +834,12 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -791,10 +853,12 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasti /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats() @@ -807,10 +871,12 @@ public virtual FollowStatsResponse FollowStats() /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Action> configureRequest) @@ -824,10 +890,12 @@ public virtual FollowStatsResponse FollowStats(Action /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor descriptor) @@ -839,10 +907,12 @@ public virtual FollowStatsResponse FollowStats(FollowStatsRequestDescriptor desc /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -855,10 +925,12 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -872,10 +944,12 @@ public virtual FollowStatsResponse FollowStats(Elastic.Clients.Elasticsearch.Ind /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -886,10 +960,12 @@ public virtual Task FollowStatsAsync(FollowStats /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -901,10 +977,12 @@ public virtual Task FollowStatsAsync(Elastic.Cli /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -917,10 +995,12 @@ public virtual Task FollowStatsAsync(Elastic.Cli /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(CancellationToken cancellationToken = default) { @@ -932,10 +1012,12 @@ public virtual Task FollowStatsAsync(Cancellatio /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -948,10 +1030,12 @@ public virtual Task FollowStatsAsync(Action /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(FollowStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -962,10 +1046,12 @@ public virtual Task FollowStatsAsync(FollowStatsRequestDesc /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -977,10 +1063,12 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// /// /// Get follower stats. + /// + /// /// Get cross-cluster replication follower stats. /// The API returns shard-level stats about the "following tasks" associated with each shard for the specified indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FollowStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1007,7 +1095,7 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest request) @@ -1033,7 +1121,7 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest reque /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequest request, CancellationToken cancellationToken = default) { @@ -1058,7 +1146,7 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) @@ -1084,7 +1172,7 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRe /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) @@ -1111,7 +1199,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1139,7 +1227,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients. /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower() @@ -1166,7 +1254,7 @@ public virtual ForgetFollowerResponse ForgetFollower() /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Action> configureRequest) @@ -1194,7 +1282,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescriptor descriptor) @@ -1220,7 +1308,7 @@ public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequestDescri /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index) @@ -1247,7 +1335,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1275,7 +1363,7 @@ public virtual ForgetFollowerResponse ForgetFollower(Elastic.Clients.Elasticsear /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1300,7 +1388,7 @@ public virtual Task ForgetFollowerAsync(Forge /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1326,7 +1414,7 @@ public virtual Task ForgetFollowerAsync(Elast /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1353,7 +1441,7 @@ public virtual Task ForgetFollowerAsync(Elast /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(CancellationToken cancellationToken = default) { @@ -1379,7 +1467,7 @@ public virtual Task ForgetFollowerAsync(Cance /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1406,7 +1494,7 @@ public virtual Task ForgetFollowerAsync(Actio /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(ForgetFollowerRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1431,7 +1519,7 @@ public virtual Task ForgetFollowerAsync(ForgetFollowerRe /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1457,7 +1545,7 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// NOTE: This API does not stop replication by a following index. If you use this API with a follower index that is still actively following, the following index will add back retention leases on the leader. /// The only purpose of this API is to handle the case of failure to remove the following retention leases after the unfollow API is invoked. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForgetFollowerAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1470,9 +1558,11 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequest request) @@ -1484,9 +1574,11 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPa /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(GetAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1497,9 +1589,11 @@ public virtual Task GetAutoFollowPatternAsync(GetA /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequestDescriptor descriptor) @@ -1511,9 +1605,11 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPa /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients.Elasticsearch.Name? name) @@ -1526,9 +1622,11 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -1542,9 +1640,11 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Elastic.Clients /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern() @@ -1557,9 +1657,11 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern() /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Action configureRequest) @@ -1573,9 +1675,11 @@ public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(Action /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(GetAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1586,9 +1690,11 @@ public virtual Task GetAutoFollowPatternAsync(GetA /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -1600,9 +1706,11 @@ public virtual Task GetAutoFollowPatternAsync(Elas /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1615,9 +1723,11 @@ public virtual Task GetAutoFollowPatternAsync(Elas /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(CancellationToken cancellationToken = default) { @@ -1629,9 +1739,11 @@ public virtual Task GetAutoFollowPatternAsync(Canc /// /// /// Get auto-follow patterns. + /// + /// /// Get cross-cluster replication auto-follow patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAutoFollowPatternAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1644,6 +1756,8 @@ public virtual Task GetAutoFollowPatternAsync(Acti /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1653,7 +1767,7 @@ public virtual Task GetAutoFollowPatternAsync(Acti /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequest request) @@ -1665,6 +1779,8 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1674,7 +1790,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(PauseAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -1685,6 +1801,8 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1694,7 +1812,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequestDescriptor descriptor) @@ -1706,6 +1824,8 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1715,7 +1835,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFo /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -1728,6 +1848,8 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1737,7 +1859,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1751,6 +1873,8 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1760,7 +1884,7 @@ public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(Elastic.Cli /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(PauseAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1771,6 +1895,8 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1780,7 +1906,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1792,6 +1918,8 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// /// Pause an auto-follow pattern. + /// + /// /// Pause a cross-cluster replication auto-follow pattern. /// When the API returns, the auto-follow pattern is inactive. /// New indices that are created on the remote cluster and match the auto-follow patterns are ignored. @@ -1801,7 +1929,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// When it resumes, the auto-follow pattern is active again and automatically configures follower indices for newly created indices on the remote cluster that match its patterns. /// Remote indices that were created while the pattern was paused will also be followed, unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1814,12 +1942,14 @@ public virtual Task PauseAutoFollowPatternAsync( /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) @@ -1831,12 +1961,14 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequest request, CancellationToken cancellationToken = default) { @@ -1847,12 +1979,14 @@ public virtual Task PauseFollowAsync(PauseFollowRequest req /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) @@ -1864,12 +1998,14 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDesc /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1882,12 +2018,14 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1901,12 +2039,14 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasti /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow() @@ -1919,12 +2059,14 @@ public virtual PauseFollowResponse PauseFollow() /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Action> configureRequest) @@ -1938,12 +2080,14 @@ public virtual PauseFollowResponse PauseFollow(Action /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor descriptor) @@ -1955,12 +2099,14 @@ public virtual PauseFollowResponse PauseFollow(PauseFollowRequestDescriptor desc /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -1973,12 +2119,14 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1992,12 +2140,14 @@ public virtual PauseFollowResponse PauseFollow(Elastic.Clients.Elasticsearch.Ind /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2008,12 +2158,14 @@ public virtual Task PauseFollowAsync(PauseFollow /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2025,12 +2177,14 @@ public virtual Task PauseFollowAsync(Elastic.Cli /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2043,12 +2197,14 @@ public virtual Task PauseFollowAsync(Elastic.Cli /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(CancellationToken cancellationToken = default) { @@ -2060,12 +2216,14 @@ public virtual Task PauseFollowAsync(Cancellatio /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2078,12 +2236,14 @@ public virtual Task PauseFollowAsync(Action /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(PauseFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2094,12 +2254,14 @@ public virtual Task PauseFollowAsync(PauseFollowRequestDesc /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2111,12 +2273,14 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// /// /// Pause a follower. + /// + /// /// Pause a cross-cluster replication follower index. /// The follower index will not fetch any additional operations from the leader index. /// You can resume following with the resume follower API. /// You can pause and resume a follower index to change the configuration of the following task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PauseFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2137,7 +2301,7 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequest request) @@ -2157,7 +2321,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPa /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(PutAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -2176,7 +2340,7 @@ public virtual Task PutAutoFollowPatternAsync(PutA /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequestDescriptor descriptor) @@ -2196,7 +2360,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPa /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -2217,7 +2381,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2239,7 +2403,7 @@ public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(Elastic.Clients /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(PutAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2258,7 +2422,7 @@ public virtual Task PutAutoFollowPatternAsync(PutA /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2278,7 +2442,7 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// This API can also be used to update auto-follow patterns. /// NOTE: Follower indices that were configured automatically before updating an auto-follow pattern will remain unchanged even if they do not match against the new patterns. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2291,11 +2455,13 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequest request) @@ -2307,11 +2473,13 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAut /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequest request, CancellationToken cancellationToken = default) { @@ -2322,11 +2490,13 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequestDescriptor descriptor) @@ -2338,11 +2508,13 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAut /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name) @@ -2355,11 +2527,13 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.C /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2373,11 +2547,13 @@ public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(Elastic.C /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(ResumeAutoFollowPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2388,11 +2564,13 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2404,11 +2582,13 @@ public virtual Task ResumeAutoFollowPatternAsyn /// /// /// Resume an auto-follow pattern. + /// + /// /// Resume a cross-cluster replication auto-follow pattern that was paused. /// The auto-follow pattern will resume configuring following indices for newly created indices that match its patterns on the remote cluster. /// Remote indices created while the pattern was paused will also be followed unless they have been deleted or closed in the interim. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeAutoFollowPatternAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2426,7 +2606,7 @@ public virtual Task ResumeAutoFollowPatternAsyn /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) @@ -2443,7 +2623,7 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequest request, CancellationToken cancellationToken = default) { @@ -2459,7 +2639,7 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequest /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) @@ -2476,7 +2656,7 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestD /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2494,7 +2674,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -2513,7 +2693,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elas /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow() @@ -2531,7 +2711,7 @@ public virtual ResumeFollowResponse ResumeFollow() /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Action> configureRequest) @@ -2550,7 +2730,7 @@ public virtual ResumeFollowResponse ResumeFollow(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor descriptor) @@ -2567,7 +2747,7 @@ public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequestDescriptor d /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2585,7 +2765,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -2604,7 +2784,7 @@ public virtual ResumeFollowResponse ResumeFollow(Elastic.Clients.Elasticsearch.I /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2620,7 +2800,7 @@ public virtual Task ResumeFollowAsync(ResumeFol /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2637,7 +2817,7 @@ public virtual Task ResumeFollowAsync(Elastic.C /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2655,7 +2835,7 @@ public virtual Task ResumeFollowAsync(Elastic.C /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(CancellationToken cancellationToken = default) { @@ -2672,7 +2852,7 @@ public virtual Task ResumeFollowAsync(Cancellat /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2690,7 +2870,7 @@ public virtual Task ResumeFollowAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(ResumeFollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2706,7 +2886,7 @@ public virtual Task ResumeFollowAsync(ResumeFollowRequestD /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -2723,7 +2903,7 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks. /// When this API returns, the follower index will resume fetching operations from the leader index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResumeFollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2736,9 +2916,11 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequest request) @@ -2750,9 +2932,11 @@ public virtual CcrStatsResponse Stats(CcrStatsRequest request) /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CcrStatsRequest request, CancellationToken cancellationToken = default) { @@ -2763,9 +2947,11 @@ public virtual Task StatsAsync(CcrStatsRequest request, Cancel /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequestDescriptor descriptor) @@ -2777,9 +2963,11 @@ public virtual CcrStatsResponse Stats(CcrStatsRequestDescriptor descriptor) /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats() @@ -2792,9 +2980,11 @@ public virtual CcrStatsResponse Stats() /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(Action configureRequest) @@ -2808,9 +2998,11 @@ public virtual CcrStatsResponse Stats(Action configur /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CcrStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2821,9 +3013,11 @@ public virtual Task StatsAsync(CcrStatsRequestDescriptor descr /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -2835,9 +3029,11 @@ public virtual Task StatsAsync(CancellationToken cancellationT /// /// /// Get cross-cluster replication stats. + /// + /// /// This API returns stats about auto-following and the same shard-level stats as the get follower stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2850,14 +3046,17 @@ public virtual Task StatsAsync(Action /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequest request) @@ -2869,14 +3068,17 @@ public virtual UnfollowResponse Unfollow(UnfollowRequest request) /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequest request, CancellationToken cancellationToken = default) { @@ -2887,14 +3089,17 @@ public virtual Task UnfollowAsync(UnfollowRequest request, Can /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) @@ -2906,14 +3111,17 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -2926,14 +3134,17 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -2947,14 +3158,17 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearc /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow() @@ -2967,14 +3181,17 @@ public virtual UnfollowResponse Unfollow() /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Action> configureRequest) @@ -2988,14 +3205,17 @@ public virtual UnfollowResponse Unfollow(Action /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) @@ -3007,14 +3227,17 @@ public virtual UnfollowResponse Unfollow(UnfollowRequestDescriptor descriptor) /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index) @@ -3027,14 +3250,17 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -3048,14 +3274,17 @@ public virtual UnfollowResponse Unfollow(Elastic.Clients.Elasticsearch.IndexName /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3066,14 +3295,17 @@ public virtual Task UnfollowAsync(UnfollowRequestDe /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -3085,14 +3317,17 @@ public virtual Task UnfollowAsync(Elastic.Clients.E /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3105,14 +3340,17 @@ public virtual Task UnfollowAsync(Elastic.Clients.E /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(CancellationToken cancellationToken = default) { @@ -3124,14 +3362,17 @@ public virtual Task UnfollowAsync(CancellationToken /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3144,14 +3385,17 @@ public virtual Task UnfollowAsync(Action /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(UnfollowRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3162,14 +3406,17 @@ public virtual Task UnfollowAsync(UnfollowRequestDescriptor de /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -3181,14 +3428,17 @@ public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearc /// /// /// Unfollow an index. + /// + /// /// Convert a cross-cluster replication follower index to a regular index. /// The API stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// The follower index must be paused and closed before you call the unfollow API. /// /// - /// NOTE: Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. + /// info + /// Currently cross-cluster replication does not support converting an existing regular index to a follower index. Converting a follower index to a regular index is an irreversible operation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UnfollowAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 64dc90ee161..93fca9ebeaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -47,7 +47,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) @@ -64,7 +64,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -80,7 +80,7 @@ public virtual Task AllocationExplainAsync(Allocation /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) @@ -97,7 +97,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain() @@ -115,7 +115,7 @@ public virtual AllocationExplainResponse AllocationExplain() /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) @@ -134,7 +134,7 @@ public virtual AllocationExplainResponse AllocationExplain(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -150,7 +150,7 @@ public virtual Task AllocationExplainAsync(Allocation /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -167,7 +167,7 @@ public virtual Task AllocationExplainAsync(Cancellati /// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node. /// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -182,7 +182,7 @@ public virtual Task AllocationExplainAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequest request) @@ -196,7 +196,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -209,7 +209,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequestDescriptor descriptor) @@ -223,7 +223,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteCom /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -238,7 +238,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -254,7 +254,7 @@ public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(Elastic.C /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(DeleteComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -267,7 +267,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -281,7 +281,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Delete 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -296,7 +296,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequest request) @@ -310,7 +310,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(DeleteVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) { @@ -323,7 +323,7 @@ public virtual Task DeleteVotingConfigExcl /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequestDescriptor descriptor) @@ -337,7 +337,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions() @@ -352,7 +352,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(Action configureRequest) @@ -368,7 +368,7 @@ public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(DeleteVotingConfigExclusionsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -381,7 +381,7 @@ public virtual Task DeleteVotingConfigExcl /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) { @@ -395,7 +395,7 @@ public virtual Task DeleteVotingConfigExcl /// Clear cluster voting config exclusions. /// Remove master-eligible nodes from the voting configuration exclusion list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -410,7 +410,7 @@ public virtual Task DeleteVotingConfigExcl /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequest request) @@ -424,7 +424,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsCom /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -437,7 +437,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequestDescriptor descriptor) @@ -451,7 +451,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsCom /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -466,7 +466,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.C /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -482,7 +482,7 @@ public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(Elastic.C /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(ExistsComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -495,7 +495,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -509,7 +509,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Check component templates. /// Returns information about whether a particular component template exists. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsComponentTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -524,7 +524,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequest request) @@ -538,7 +538,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -551,7 +551,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequestDescriptor descriptor) @@ -565,7 +565,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTem /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -580,7 +580,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -596,7 +596,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Elastic.Clients /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate() @@ -611,7 +611,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate() /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(Action configureRequest) @@ -627,7 +627,7 @@ public virtual GetComponentTemplateResponse GetComponentTemplate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(GetComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -640,7 +640,7 @@ public virtual Task GetComponentTemplateAsync(GetC /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -654,7 +654,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -669,7 +669,7 @@ public virtual Task GetComponentTemplateAsync(Elas /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(CancellationToken cancellationToken = default) { @@ -683,7 +683,7 @@ public virtual Task GetComponentTemplateAsync(Canc /// Get component templates. /// Get information about component templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetComponentTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -698,7 +698,7 @@ public virtual Task GetComponentTemplateAsync(Acti /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) @@ -712,7 +712,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -725,7 +725,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) @@ -739,7 +739,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestD /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings() @@ -754,7 +754,7 @@ public virtual GetClusterSettingsResponse GetSettings() /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) @@ -770,7 +770,7 @@ public virtual GetClusterSettingsResponse GetSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -783,7 +783,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -797,7 +797,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// Get cluster-wide settings. /// By default, it returns only settings that have been explicitly defined. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -822,7 +822,7 @@ public virtual Task GetSettingsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequest request) @@ -846,7 +846,7 @@ public virtual HealthResponse Health(HealthRequest request) /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -869,7 +869,7 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequestDescriptor descriptor) @@ -893,7 +893,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) @@ -918,7 +918,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -944,7 +944,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.In /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() @@ -969,7 +969,7 @@ public virtual HealthResponse Health() /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Action> configureRequest) @@ -995,7 +995,7 @@ public virtual HealthResponse Health(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequestDescriptor descriptor) @@ -1019,7 +1019,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor descriptor) /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices) @@ -1044,7 +1044,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indi /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -1070,7 +1070,7 @@ public virtual HealthResponse Health(Elastic.Clients.Elasticsearch.Indices? indi /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health() @@ -1095,7 +1095,7 @@ public virtual HealthResponse Health() /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(Action configureRequest) @@ -1121,7 +1121,7 @@ public virtual HealthResponse Health(Action configureRe /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1144,7 +1144,7 @@ public virtual Task HealthAsync(HealthRequestDescript /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -1168,7 +1168,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1193,7 +1193,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elast /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -1217,7 +1217,7 @@ public virtual Task HealthAsync(CancellationToken can /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1242,7 +1242,7 @@ public virtual Task HealthAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1265,7 +1265,7 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -1289,7 +1289,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.In /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1314,7 +1314,7 @@ public virtual Task HealthAsync(Elastic.Clients.Elasticsearch.In /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -1338,7 +1338,7 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level. /// The cluster status is controlled by the worst index status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1353,7 +1353,7 @@ public virtual Task HealthAsync(Action /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequest request) @@ -1367,7 +1367,7 @@ public virtual ClusterInfoResponse Info(ClusterInfoRequest request) /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequest request, CancellationToken cancellationToken = default) { @@ -1380,7 +1380,7 @@ public virtual Task InfoAsync(ClusterInfoRequest request, C /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequestDescriptor descriptor) @@ -1394,7 +1394,7 @@ public virtual ClusterInfoResponse Info(ClusterInfoRequestDescriptor descriptor) /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(IReadOnlyCollection target) @@ -1409,7 +1409,7 @@ public virtual ClusterInfoResponse Info(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(IReadOnlyCollection target, Action configureRequest) @@ -1425,7 +1425,7 @@ public virtual ClusterInfoResponse Info(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(ClusterInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1438,7 +1438,7 @@ public virtual Task InfoAsync(ClusterInfoRequestDescriptor /// Get cluster info. /// Returns basic information about the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, CancellationToken cancellationToken = default) { @@ -1452,7 +1452,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(IReadOnlyCollection target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1472,7 +1472,7 @@ public virtual Task InfoAsync(IReadOnlyCollection - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) @@ -1491,7 +1491,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -1509,7 +1509,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) @@ -1528,7 +1528,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor d /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks() @@ -1548,7 +1548,7 @@ public virtual PendingTasksResponse PendingTasks() /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(Action configureRequest) @@ -1569,7 +1569,7 @@ public virtual PendingTasksResponse PendingTasks(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1587,7 +1587,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -1606,7 +1606,7 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests. /// However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1640,7 +1640,7 @@ public virtual Task PendingTasksAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequest request) @@ -1673,7 +1673,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Pos /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(PostVotingConfigExclusionsRequest request, CancellationToken cancellationToken = default) { @@ -1705,7 +1705,7 @@ public virtual Task PostVotingConfigExclusio /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequestDescriptor descriptor) @@ -1738,7 +1738,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Pos /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions() @@ -1772,7 +1772,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions() /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Action configureRequest) @@ -1807,7 +1807,7 @@ public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(Act /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(PostVotingConfigExclusionsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1839,7 +1839,7 @@ public virtual Task PostVotingConfigExclusio /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(CancellationToken cancellationToken = default) { @@ -1872,7 +1872,7 @@ public virtual Task PostVotingConfigExclusio /// NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period. /// They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostVotingConfigExclusionsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1911,7 +1911,7 @@ public virtual Task PostVotingConfigExclusio /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequest request) @@ -1949,7 +1949,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequest request, CancellationToken cancellationToken = default) { @@ -1986,7 +1986,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequestDescriptor descriptor) @@ -2024,7 +2024,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutC /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -2063,7 +2063,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -2103,7 +2103,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elas /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequestDescriptor descriptor) @@ -2141,7 +2141,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTem /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -2180,7 +2180,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -2220,7 +2220,7 @@ public virtual PutComponentTemplateResponse PutComponentTemplate(Elastic.Clients /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2257,7 +2257,7 @@ public virtual Task PutComponentTemplateAsynccomposed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2295,7 +2295,7 @@ public virtual Task PutComponentTemplateAsynccomposed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2334,7 +2334,7 @@ public virtual Task PutComponentTemplateAsynccomposed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(PutComponentTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2371,7 +2371,7 @@ public virtual Task PutComponentTemplateAsync(PutC /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2409,7 +2409,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// You cannot directly apply a component template to a data stream or index. /// To be applied, a component template must be included in an index template's composed_of list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutComponentTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2424,7 +2424,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) @@ -2438,7 +2438,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -2451,7 +2451,7 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) @@ -2465,7 +2465,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descript /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -2480,7 +2480,7 @@ public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -2496,7 +2496,7 @@ public virtual ClusterStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats() @@ -2511,7 +2511,7 @@ public virtual ClusterStatsResponse Stats() /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(Action configureRequest) @@ -2527,7 +2527,7 @@ public virtual ClusterStatsResponse Stats(Action /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2540,7 +2540,7 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -2554,7 +2554,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2569,7 +2569,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -2583,7 +2583,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// Get cluster statistics. /// Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins). /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs index f35e1605024..2032bf3302f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs @@ -50,7 +50,7 @@ internal DanglingIndicesNamespacedClient(ElasticsearchClient client) : base(clie /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequest request) @@ -70,7 +70,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndic /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(ListDanglingIndicesRequest request, CancellationToken cancellationToken = default) { @@ -89,7 +89,7 @@ public virtual Task ListDanglingIndicesAsync(ListDa /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequestDescriptor descriptor) @@ -109,7 +109,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndic /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices() @@ -130,7 +130,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices() /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(Action configureRequest) @@ -152,7 +152,7 @@ public virtual ListDanglingIndicesResponse ListDanglingIndices(Action /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(ListDanglingIndicesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -171,7 +171,7 @@ public virtual Task ListDanglingIndicesAsync(ListDa /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task ListDanglingIndicesAsync(Cancel /// /// Use this API to list dangling indices, which you can then import or delete. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListDanglingIndicesAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs index 7884181a8ee..26875d3b59f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -44,7 +44,7 @@ internal EnrichNamespacedClient(ElasticsearchClient client) : base(client) /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) @@ -58,7 +58,7 @@ public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePolicyAsync(DeletePolicyRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task DeletePolicyAsync(DeletePolicyRequest /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequestDescriptor d /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.Name name) @@ -100,7 +100,7 @@ public virtual DeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.N /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -116,7 +116,7 @@ public virtual DeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.N /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePolicyAsync(DeletePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -129,7 +129,7 @@ public virtual Task DeletePolicyAsync(DeletePolicyRequestD /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -143,7 +143,7 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// Delete an enrich policy. /// Deletes an existing enrich policy and its enrich index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -158,7 +158,7 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) @@ -172,7 +172,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -185,7 +185,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescriptor descriptor) @@ -199,7 +199,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescripto /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name) @@ -214,7 +214,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -230,7 +230,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -243,7 +243,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -257,7 +257,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// Run an enrich policy. /// Create the enrich index for an existing enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -272,7 +272,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request) @@ -286,7 +286,7 @@ public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request) /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPolicyAsync(GetPolicyRequest request, CancellationToken cancellationToken = default) { @@ -299,7 +299,7 @@ public virtual Task GetPolicyAsync(GetPolicyRequest request, /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy(GetPolicyRequestDescriptor descriptor) @@ -313,7 +313,7 @@ public virtual GetPolicyResponse GetPolicy(GetPolicyRequestDescriptor descriptor /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy(Elastic.Clients.Elasticsearch.Names? name) @@ -328,7 +328,7 @@ public virtual GetPolicyResponse GetPolicy(Elastic.Clients.Elasticsearch.Names? /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -344,7 +344,7 @@ public virtual GetPolicyResponse GetPolicy(Elastic.Clients.Elasticsearch.Names? /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy() @@ -359,7 +359,7 @@ public virtual GetPolicyResponse GetPolicy() /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy(Action configureRequest) @@ -375,7 +375,7 @@ public virtual GetPolicyResponse GetPolicy(Action co /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPolicyAsync(GetPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -388,7 +388,7 @@ public virtual Task GetPolicyAsync(GetPolicyRequestDescriptor /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -402,7 +402,7 @@ public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsea /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -417,7 +417,7 @@ public virtual Task GetPolicyAsync(Elastic.Clients.Elasticsea /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPolicyAsync(CancellationToken cancellationToken = default) { @@ -431,7 +431,7 @@ public virtual Task GetPolicyAsync(CancellationToken cancella /// Get an enrich policy. /// Returns information about an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPolicyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -446,7 +446,7 @@ public virtual Task GetPolicyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) @@ -460,7 +460,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -473,7 +473,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) @@ -487,7 +487,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) @@ -502,7 +502,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -518,7 +518,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) @@ -532,7 +532,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name) @@ -547,7 +547,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -563,7 +563,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -576,7 +576,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -590,7 +590,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -605,7 +605,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -618,7 +618,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -632,7 +632,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// Create an enrich policy. /// Creates an enrich policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -647,7 +647,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrichStatsResponse Stats(EnrichStatsRequest request) @@ -661,7 +661,7 @@ public virtual EnrichStatsResponse Stats(EnrichStatsRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(EnrichStatsRequest request, CancellationToken cancellationToken = default) { @@ -674,7 +674,7 @@ public virtual Task StatsAsync(EnrichStatsRequest request, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrichStatsResponse Stats(EnrichStatsRequestDescriptor descriptor) @@ -688,7 +688,7 @@ public virtual EnrichStatsResponse Stats(EnrichStatsRequestDescriptor descriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrichStatsResponse Stats() @@ -703,7 +703,7 @@ public virtual EnrichStatsResponse Stats() /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrichStatsResponse Stats(Action configureRequest) @@ -719,7 +719,7 @@ public virtual EnrichStatsResponse Stats(Action co /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(EnrichStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -732,7 +732,7 @@ public virtual Task StatsAsync(EnrichStatsRequestDescriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -746,7 +746,7 @@ public virtual Task StatsAsync(CancellationToken cancellati /// 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. + /// 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/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs index 22475255bd0..618768174e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -45,7 +45,7 @@ internal EqlNamespacedClient(ElasticsearchClient client) : base(client) /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(EqlDeleteRequest request) @@ -60,7 +60,7 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequest request) /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(EqlDeleteRequest request, CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ public virtual Task DeleteAsync(EqlDeleteRequest request, Can /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) @@ -89,7 +89,7 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -105,7 +105,7 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -122,7 +122,7 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) @@ -137,7 +137,7 @@ public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -153,7 +153,7 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -170,7 +170,7 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Act /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -184,7 +184,7 @@ public virtual Task DeleteAsync(EqlDeleteRequestDe /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -199,7 +199,7 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -215,7 +215,7 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -229,7 +229,7 @@ public virtual Task DeleteAsync(EqlDeleteRequestDescriptor de /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -244,7 +244,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// Delete an async EQL search or a stored synchronous EQL search. /// The API also deletes results for the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -259,7 +259,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequest request) @@ -273,7 +273,7 @@ public virtual EqlGetResponse Get(EqlGetRequest request) /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task> GetAsync(EqlGetRequest reque /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) @@ -300,7 +300,7 @@ public virtual EqlGetResponse Get(EqlGetRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -315,7 +315,7 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -331,7 +331,7 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -344,7 +344,7 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -358,7 +358,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// Get async EQL search results. /// Get the current status and available results for an async EQL search or a stored synchronous EQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -373,7 +373,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) @@ -387,7 +387,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) { @@ -400,7 +400,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) @@ -414,7 +414,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDesc /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) @@ -429,7 +429,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -445,7 +445,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) @@ -459,7 +459,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor desc /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) @@ -474,7 +474,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -490,7 +490,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -503,7 +503,7 @@ public virtual Task GetStatusAsync(GetEqlStatus /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -517,7 +517,7 @@ public virtual Task GetStatusAsync(Elastic.Clie /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -532,7 +532,7 @@ public virtual Task GetStatusAsync(Elastic.Clie /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -545,7 +545,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequestDesc /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -559,7 +559,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// Get the async EQL status. /// Get the current status for an async EQL search or a stored synchronous EQL search without returning results. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -575,7 +575,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search(EqlSearchRequest request) @@ -590,7 +590,7 @@ public virtual EqlSearchResponse Search(EqlSearchRequest request /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(EqlSearchRequest request, CancellationToken cancellationToken = default) { @@ -604,7 +604,7 @@ public virtual Task> SearchAsync(EqlSearchRequ /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search(EqlSearchRequestDescriptor descriptor) @@ -619,7 +619,7 @@ public virtual EqlSearchResponse Search(EqlSearchRequestDescript /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search(Elastic.Clients.Elasticsearch.Indices indices) @@ -635,7 +635,7 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -652,7 +652,7 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search() @@ -668,7 +668,7 @@ public virtual EqlSearchResponse Search() /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search(Action> configureRequest) @@ -685,7 +685,7 @@ public virtual EqlSearchResponse Search(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(EqlSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -699,7 +699,7 @@ public virtual Task> SearchAsync(EqlSearchRequ /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -714,7 +714,7 @@ public virtual Task> SearchAsync(Elastic.Clien /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -730,7 +730,7 @@ public virtual Task> SearchAsync(Elastic.Clien /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(CancellationToken cancellationToken = default) { @@ -745,7 +745,7 @@ public virtual Task> SearchAsync(CancellationT /// Returns search results for an Event Query Language (EQL) query. /// EQL assumes each document in a data stream or index corresponds to an event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs index 3a425ae05b8..e2c12d18f88 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -47,7 +47,7 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequest request) @@ -64,7 +64,7 @@ public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequest request) /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(AsyncQueryRequest request, CancellationToken cancellationToken = default) { @@ -80,7 +80,7 @@ public virtual Task AsyncQueryAsync(AsyncQueryRequest reques /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequestDescriptor descriptor) @@ -97,7 +97,7 @@ public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequestDescrip /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery() @@ -115,7 +115,7 @@ public virtual AsyncQueryResponse AsyncQuery() /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery(Action> configureRequest) @@ -134,7 +134,7 @@ public virtual AsyncQueryResponse AsyncQuery(Action /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequestDescriptor descriptor) @@ -151,7 +151,7 @@ public virtual AsyncQueryResponse AsyncQuery(AsyncQueryRequestDescriptor descrip /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery() @@ -169,7 +169,7 @@ public virtual AsyncQueryResponse AsyncQuery() /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryResponse AsyncQuery(Action configureRequest) @@ -188,7 +188,7 @@ public virtual AsyncQueryResponse AsyncQuery(Action /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(AsyncQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -204,7 +204,7 @@ public virtual Task AsyncQueryAsync(AsyncQueryReq /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(CancellationToken cancellationToken = default) { @@ -221,7 +221,7 @@ public virtual Task AsyncQueryAsync(CancellationT /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -239,7 +239,7 @@ public virtual Task AsyncQueryAsync(Action /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(AsyncQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -255,7 +255,7 @@ public virtual Task AsyncQueryAsync(AsyncQueryRequestDescrip /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(CancellationToken cancellationToken = default) { @@ -272,7 +272,7 @@ public virtual Task AsyncQueryAsync(CancellationToken cancel /// /// The API accepts the same parameters and request body as the synchronous query API, along with additional async related properties. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -303,7 +303,7 @@ public virtual Task AsyncQueryAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequest request) @@ -333,7 +333,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(AsyncQueryDeleteRequest request, CancellationToken cancellationToken = default) { @@ -362,7 +362,7 @@ public virtual Task AsyncQueryDeleteAsync(AsyncQueryDe /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequestDescriptor descriptor) @@ -392,7 +392,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDe /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id) @@ -423,7 +423,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clie /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -455,7 +455,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clie /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequestDescriptor descriptor) @@ -485,7 +485,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(AsyncQueryDeleteRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id) @@ -516,7 +516,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -548,7 +548,7 @@ public virtual AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(AsyncQueryDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -577,7 +577,7 @@ public virtual Task AsyncQueryDeleteAsync(A /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -607,7 +607,7 @@ public virtual Task AsyncQueryDeleteAsync(E /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -638,7 +638,7 @@ public virtual Task AsyncQueryDeleteAsync(E /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(AsyncQueryDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -667,7 +667,7 @@ public virtual Task AsyncQueryDeleteAsync(AsyncQueryDe /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -697,7 +697,7 @@ public virtual Task AsyncQueryDeleteAsync(Elastic.Clie /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryDeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -713,7 +713,7 @@ public virtual Task AsyncQueryDeleteAsync(Elastic.Clie /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequest request) @@ -728,7 +728,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequest request) /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(AsyncQueryGetRequest request, CancellationToken cancellationToken = default) { @@ -742,7 +742,7 @@ public virtual Task AsyncQueryGetAsync(AsyncQueryGetReque /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequestDescriptor descriptor) @@ -757,7 +757,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetReque /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id) @@ -773,7 +773,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.El /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -790,7 +790,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.El /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequestDescriptor descriptor) @@ -805,7 +805,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(AsyncQueryGetRequestDescripto /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id) @@ -821,7 +821,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -838,7 +838,7 @@ public virtual AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(AsyncQueryGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -852,7 +852,7 @@ public virtual Task AsyncQueryGetAsync(AsyncQu /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -867,7 +867,7 @@ public virtual Task AsyncQueryGetAsync(Elastic /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -883,7 +883,7 @@ public virtual Task AsyncQueryGetAsync(Elastic /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(AsyncQueryGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -897,7 +897,7 @@ public virtual Task AsyncQueryGetAsync(AsyncQueryGetReque /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -912,7 +912,7 @@ public virtual Task AsyncQueryGetAsync(Elastic.Clients.El /// Get the current status and available results or stored results for an ES|QL asynchronous query. /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can retrieve the results using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -922,12 +922,255 @@ public virtual Task AsyncQueryGetAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(AsyncQueryStopRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(AsyncQueryStopRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(AsyncQueryStopRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryStopResponse, AsyncQueryStopRequestParameters>(descriptor); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryStopResponse, AsyncQueryStopRequestParameters>(descriptor); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, AsyncQueryStopResponse, AsyncQueryStopRequestParameters>(descriptor); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(AsyncQueryStopRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(AsyncQueryStopRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryStopResponse, AsyncQueryStopRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryStopResponse, AsyncQueryStopRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncQueryStopResponse, AsyncQueryStopRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(AsyncQueryStopRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Stop async ES|QL query. + /// + /// + /// This API interrupts the query execution and returns the results so far. + /// If the Elasticsearch security features are enabled, only the user who first submitted the ES|QL query can stop it. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AsyncQueryStopRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequest request) @@ -941,7 +1184,7 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequest request) /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequest request, CancellationToken cancellationToken = default) { @@ -954,7 +1197,7 @@ public virtual Task QueryAsync(EsqlQueryRequest request, Canc /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) @@ -968,7 +1211,7 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query() @@ -983,7 +1226,7 @@ public virtual EsqlQueryResponse Query() /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(Action> configureRequest) @@ -999,7 +1242,7 @@ public virtual EsqlQueryResponse Query(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) @@ -1013,7 +1256,7 @@ public virtual EsqlQueryResponse Query(EsqlQueryRequestDescriptor descriptor) /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query() @@ -1028,7 +1271,7 @@ public virtual EsqlQueryResponse Query() /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(Action configureRequest) @@ -1044,7 +1287,7 @@ public virtual EsqlQueryResponse Query(Action config /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1057,7 +1300,7 @@ public virtual Task QueryAsync(EsqlQueryRequestDes /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -1071,7 +1314,7 @@ public virtual Task QueryAsync(CancellationToken c /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1086,7 +1329,7 @@ public virtual Task QueryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(EsqlQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1099,7 +1342,7 @@ public virtual Task QueryAsync(EsqlQueryRequestDescriptor des /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -1113,7 +1356,7 @@ public virtual Task QueryAsync(CancellationToken cancellation /// Run an ES|QL query. /// Get search results for an ES|QL (Elasticsearch query language) query. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs index 03bfacd5777..b488e30ac2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs @@ -54,7 +54,7 @@ internal FeaturesNamespacedClient(ElasticsearchClient client) : base(client) /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequest request) @@ -78,7 +78,7 @@ public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequest request) /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFeaturesAsync(GetFeaturesRequest request, CancellationToken cancellationToken = default) { @@ -101,7 +101,7 @@ public virtual Task GetFeaturesAsync(GetFeaturesRequest req /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequestDescriptor descriptor) @@ -125,7 +125,7 @@ public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequestDescriptor desc /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFeaturesResponse GetFeatures() @@ -150,7 +150,7 @@ public virtual GetFeaturesResponse GetFeatures() /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFeaturesResponse GetFeatures(Action configureRequest) @@ -176,7 +176,7 @@ public virtual GetFeaturesResponse GetFeatures(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFeaturesAsync(GetFeaturesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -199,7 +199,7 @@ public virtual Task GetFeaturesAsync(GetFeaturesRequestDesc /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFeaturesAsync(CancellationToken cancellationToken = default) { @@ -223,7 +223,7 @@ public virtual Task GetFeaturesAsync(CancellationToken canc /// The features listed by this API are a combination of built-in features and features defined by plugins. /// In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFeaturesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -259,7 +259,7 @@ public virtual Task GetFeaturesAsync(Action /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequest request) @@ -294,7 +294,7 @@ public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequest request) /// /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetFeaturesAsync(ResetFeaturesRequest request, CancellationToken cancellationToken = default) { @@ -328,7 +328,7 @@ public virtual Task ResetFeaturesAsync(ResetFeaturesReque /// /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequestDescriptor descriptor) @@ -363,7 +363,7 @@ public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequestDescripto /// /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetFeaturesResponse ResetFeatures() @@ -399,7 +399,7 @@ public virtual ResetFeaturesResponse ResetFeatures() /// /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetFeaturesResponse ResetFeatures(Action configureRequest) @@ -436,7 +436,7 @@ public virtual ResetFeaturesResponse ResetFeatures(Action /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetFeaturesAsync(ResetFeaturesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -470,7 +470,7 @@ public virtual Task ResetFeaturesAsync(ResetFeaturesReque /// /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetFeaturesAsync(CancellationToken cancellationToken = default) { @@ -505,7 +505,7 @@ public virtual Task ResetFeaturesAsync(CancellationToken /// /// IMPORTANT: The features installed on the node you submit this request to are the features that will be reset. Run on the master node if you have any doubts about which plugins are installed on individual nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetFeaturesAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs index 39ec68a30d6..e077d047c16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -48,7 +48,7 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequest request) @@ -66,7 +66,7 @@ public virtual ExploreResponse Explore(ExploreRequest request) /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -83,7 +83,7 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) @@ -101,7 +101,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) @@ -120,7 +120,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -140,7 +140,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore() @@ -159,7 +159,7 @@ public virtual ExploreResponse Explore() /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Action> configureRequest) @@ -179,7 +179,7 @@ public virtual ExploreResponse Explore(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) @@ -197,7 +197,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) @@ -216,7 +216,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -236,7 +236,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -253,7 +253,7 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -271,7 +271,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -290,7 +290,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Ela /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(CancellationToken cancellationToken = default) { @@ -308,7 +308,7 @@ public virtual Task ExploreAsync(CancellationToken c /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -327,7 +327,7 @@ public virtual Task ExploreAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -344,7 +344,7 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -362,7 +362,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// Subsequent requests enable you to spider out from one more vertices of interest. /// You can exclude vertices that have already been returned. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs index 0b4267d04ba..a5bd1abde44 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs @@ -44,7 +44,7 @@ internal IndexLifecycleManagementNamespacedClient(ElasticsearchClient client) : /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest request) @@ -58,7 +58,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest re /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDes /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name name) @@ -100,7 +100,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -116,7 +116,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -129,7 +129,7 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -143,7 +143,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Delete a lifecycle policy. /// You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -157,7 +157,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) @@ -170,7 +170,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(GetLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -182,7 +182,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequest /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor descriptor) @@ -195,7 +195,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor d /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.Name? name) @@ -209,7 +209,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -224,7 +224,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle() @@ -238,7 +238,7 @@ public virtual GetLifecycleResponse GetLifecycle() /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Action configureRequest) @@ -253,7 +253,7 @@ public virtual GetLifecycleResponse GetLifecycle(Action /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(GetLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -265,7 +265,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequestD /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -278,7 +278,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -292,7 +292,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(CancellationToken cancellationToken = default) { @@ -305,7 +305,7 @@ public virtual Task GetLifecycleAsync(CancellationToken ca /// /// Get lifecycle policies. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -318,9 +318,11 @@ public virtual Task GetLifecycleAsync(Action /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequest request) @@ -332,9 +334,11 @@ public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequest request) /// /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetIlmStatusRequest request, CancellationToken cancellationToken = default) { @@ -345,9 +349,11 @@ public virtual Task GetStatusAsync(GetIlmStatusRequest req /// /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequestDescriptor descriptor) @@ -359,9 +365,11 @@ public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequestDescriptor desc /// /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIlmStatusResponse GetStatus() @@ -374,9 +382,11 @@ public virtual GetIlmStatusResponse GetStatus() /// /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIlmStatusResponse GetStatus(Action configureRequest) @@ -390,9 +400,11 @@ public virtual GetIlmStatusResponse GetStatus(Action /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetIlmStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -403,9 +415,11 @@ public virtual Task GetStatusAsync(GetIlmStatusRequestDesc /// /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(CancellationToken cancellationToken = default) { @@ -417,9 +431,11 @@ public virtual Task GetStatusAsync(CancellationToken cance /// /// /// Get the ILM status. + /// + /// /// Get the current index lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -461,7 +477,7 @@ public virtual Task GetStatusAsync(ActionSTOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersRequest request) @@ -502,7 +518,7 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersR /// ILM must be stopped before performing the migration. /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(MigrateToDataTiersRequest request, CancellationToken cancellationToken = default) { @@ -542,7 +558,7 @@ public virtual Task MigrateToDataTiersAsync(MigrateT /// ILM must be stopped before performing the migration. /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersRequestDescriptor descriptor) @@ -583,7 +599,7 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersR /// ILM must be stopped before performing the migration. /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataTiersResponse MigrateToDataTiers() @@ -625,7 +641,7 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers() /// ILM must be stopped before performing the migration. /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataTiersResponse MigrateToDataTiers(Action configureRequest) @@ -668,7 +684,7 @@ public virtual MigrateToDataTiersResponse MigrateToDataTiers(ActionSTOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(MigrateToDataTiersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -708,7 +724,7 @@ public virtual Task MigrateToDataTiersAsync(MigrateT /// ILM must be stopped before performing the migration. /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(CancellationToken cancellationToken = default) { @@ -749,7 +765,7 @@ public virtual Task MigrateToDataTiersAsync(Cancella /// ILM must be stopped before performing the migration. /// Use the stop ILM and get ILM status APIs to wait until the reported operation mode is STOPPED. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataTiersAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -779,7 +795,7 @@ public virtual Task MigrateToDataTiersAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(MoveToStepRequest request) @@ -808,7 +824,7 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequest request) /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(MoveToStepRequest request, CancellationToken cancellationToken = default) { @@ -836,7 +852,7 @@ public virtual Task MoveToStepAsync(MoveToStepRequest reques /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescriptor descriptor) @@ -865,7 +881,7 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescrip /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index) @@ -895,7 +911,7 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elastics /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -926,7 +942,7 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elastics /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep() @@ -956,7 +972,7 @@ public virtual MoveToStepResponse MoveToStep() /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(Action> configureRequest) @@ -987,7 +1003,7 @@ public virtual MoveToStepResponse MoveToStep(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescriptor descriptor) @@ -1016,7 +1032,7 @@ public virtual MoveToStepResponse MoveToStep(MoveToStepRequestDescriptor descrip /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index) @@ -1046,7 +1062,7 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.Index /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1077,7 +1093,7 @@ public virtual MoveToStepResponse MoveToStep(Elastic.Clients.Elasticsearch.Index /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(MoveToStepRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1105,7 +1121,7 @@ public virtual Task MoveToStepAsync(MoveToStepReq /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1134,7 +1150,7 @@ public virtual Task MoveToStepAsync(Elastic.Clien /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1164,7 +1180,7 @@ public virtual Task MoveToStepAsync(Elastic.Clien /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(CancellationToken cancellationToken = default) { @@ -1193,7 +1209,7 @@ public virtual Task MoveToStepAsync(CancellationT /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1223,7 +1239,7 @@ public virtual Task MoveToStepAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(MoveToStepRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1251,7 +1267,7 @@ public virtual Task MoveToStepAsync(MoveToStepRequestDescrip /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1280,7 +1296,7 @@ public virtual Task MoveToStepAsync(Elastic.Clients.Elastics /// Only actions specified in the ILM policy are considered valid. /// An index cannot move to a step that is not part of its policy. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MoveToStepAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1298,7 +1314,7 @@ public virtual Task MoveToStepAsync(Elastic.Clients.Elastics /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) @@ -1315,7 +1331,7 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(PutLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -1331,7 +1347,7 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequest /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor descriptor) @@ -1348,7 +1364,7 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor d /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name name) @@ -1366,7 +1382,7 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1385,7 +1401,7 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(PutLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1401,7 +1417,7 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequestD /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1418,7 +1434,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// /// NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1434,7 +1450,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequest request) @@ -1449,7 +1465,7 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequest request) /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(RemovePolicyRequest request, CancellationToken cancellationToken = default) { @@ -1463,7 +1479,7 @@ public virtual Task RemovePolicyAsync(RemovePolicyRequest /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestDescriptor descriptor) @@ -1478,7 +1494,7 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestD /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index) @@ -1494,7 +1510,7 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elas /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1511,7 +1527,7 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elas /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy() @@ -1527,7 +1543,7 @@ public virtual RemovePolicyResponse RemovePolicy() /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(Action> configureRequest) @@ -1544,7 +1560,7 @@ public virtual RemovePolicyResponse RemovePolicy(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestDescriptor descriptor) @@ -1559,7 +1575,7 @@ public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequestDescriptor d /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index) @@ -1575,7 +1591,7 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.I /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1592,7 +1608,7 @@ public virtual RemovePolicyResponse RemovePolicy(Elastic.Clients.Elasticsearch.I /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(RemovePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1606,7 +1622,7 @@ public virtual Task RemovePolicyAsync(RemovePol /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1621,7 +1637,7 @@ public virtual Task RemovePolicyAsync(Elastic.C /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1637,7 +1653,7 @@ public virtual Task RemovePolicyAsync(Elastic.C /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(CancellationToken cancellationToken = default) { @@ -1652,7 +1668,7 @@ public virtual Task RemovePolicyAsync(Cancellat /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1668,7 +1684,7 @@ public virtual Task RemovePolicyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(RemovePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1682,7 +1698,7 @@ public virtual Task RemovePolicyAsync(RemovePolicyRequestD /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1697,7 +1713,7 @@ public virtual Task RemovePolicyAsync(Elastic.Clients.Elas /// Remove the assigned lifecycle policies from an index or a data stream's backing indices. /// It also stops managing the indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RemovePolicyAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1714,7 +1730,7 @@ public virtual Task RemovePolicyAsync(Elastic.Clients.Elas /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(RetryRequest request) @@ -1730,7 +1746,7 @@ public virtual RetryResponse Retry(RetryRequest request) /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(RetryRequest request, CancellationToken cancellationToken = default) { @@ -1745,7 +1761,7 @@ public virtual Task RetryAsync(RetryRequest request, Cancellation /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) @@ -1761,7 +1777,7 @@ public virtual RetryResponse Retry(RetryRequestDescriptor /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index) @@ -1778,7 +1794,7 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.Inde /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -1796,7 +1812,7 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.Inde /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry() @@ -1813,7 +1829,7 @@ public virtual RetryResponse Retry() /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(Action> configureRequest) @@ -1831,7 +1847,7 @@ public virtual RetryResponse Retry(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) @@ -1847,7 +1863,7 @@ public virtual RetryResponse Retry(RetryRequestDescriptor descriptor) /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index) @@ -1864,7 +1880,7 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -1882,7 +1898,7 @@ public virtual RetryResponse Retry(Elastic.Clients.Elasticsearch.IndexName index /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(RetryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1897,7 +1913,7 @@ public virtual Task RetryAsync(RetryRequestDescriptor< /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1913,7 +1929,7 @@ public virtual Task RetryAsync(Elastic.Clients.Elastic /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1930,7 +1946,7 @@ public virtual Task RetryAsync(Elastic.Clients.Elastic /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(CancellationToken cancellationToken = default) { @@ -1946,7 +1962,7 @@ public virtual Task RetryAsync(CancellationToken cance /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1963,7 +1979,7 @@ public virtual Task RetryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(RetryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1978,7 +1994,7 @@ public virtual Task RetryAsync(RetryRequestDescriptor descriptor, /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -1994,7 +2010,7 @@ public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.Inde /// The API sets the policy back to the step where the error occurred and runs the step. /// Use the explain lifecycle state API to determine whether an index is in the ERROR step. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2011,7 +2027,7 @@ public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.Inde /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartIlmResponse Start(StartIlmRequest request) @@ -2027,7 +2043,7 @@ public virtual StartIlmResponse Start(StartIlmRequest request) /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(StartIlmRequest request, CancellationToken cancellationToken = default) { @@ -2042,7 +2058,7 @@ public virtual Task StartAsync(StartIlmRequest request, Cancel /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartIlmResponse Start(StartIlmRequestDescriptor descriptor) @@ -2058,7 +2074,7 @@ public virtual StartIlmResponse Start(StartIlmRequestDescriptor descriptor) /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartIlmResponse Start() @@ -2075,7 +2091,7 @@ public virtual StartIlmResponse Start() /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartIlmResponse Start(Action configureRequest) @@ -2093,7 +2109,7 @@ public virtual StartIlmResponse Start(Action configur /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(StartIlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2108,7 +2124,7 @@ public virtual Task StartAsync(StartIlmRequestDescriptor descr /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(CancellationToken cancellationToken = default) { @@ -2124,7 +2140,7 @@ public virtual Task StartAsync(CancellationToken cancellationT /// ILM is started automatically when the cluster is formed. /// Restarting ILM is necessary only when it has been stopped using the stop ILM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2144,7 +2160,7 @@ public virtual Task StartAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopIlmResponse Stop(StopIlmRequest request) @@ -2163,7 +2179,7 @@ public virtual StopIlmResponse Stop(StopIlmRequest request) /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(StopIlmRequest request, CancellationToken cancellationToken = default) { @@ -2181,7 +2197,7 @@ public virtual Task StopAsync(StopIlmRequest request, Cancellat /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopIlmResponse Stop(StopIlmRequestDescriptor descriptor) @@ -2200,7 +2216,7 @@ public virtual StopIlmResponse Stop(StopIlmRequestDescriptor descriptor) /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopIlmResponse Stop() @@ -2220,7 +2236,7 @@ public virtual StopIlmResponse Stop() /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopIlmResponse Stop(Action configureRequest) @@ -2241,7 +2257,7 @@ public virtual StopIlmResponse Stop(Action configureRe /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(StopIlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2259,7 +2275,7 @@ public virtual Task StopAsync(StopIlmRequestDescriptor descript /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(CancellationToken cancellationToken = default) { @@ -2278,7 +2294,7 @@ public virtual Task StopAsync(CancellationToken cancellationTok /// The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped. /// Use the get ILM status API to check whether ILM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index 7eee58bcd92..a228badba30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -50,7 +50,7 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) @@ -70,7 +70,7 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequest request, CancellationToken cancellationToken = default) { @@ -89,7 +89,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequest reque /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descriptor) @@ -109,7 +109,7 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescri /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index) @@ -130,7 +130,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -152,7 +152,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticse /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze() @@ -173,7 +173,7 @@ public virtual AnalyzeIndexResponse Analyze() /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Action> configureRequest) @@ -195,7 +195,7 @@ public virtual AnalyzeIndexResponse Analyze(Action_analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descriptor) @@ -215,7 +215,7 @@ public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequestDescriptor descri /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index) @@ -236,7 +236,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -258,7 +258,7 @@ public virtual AnalyzeIndexResponse Analyze(Elastic.Clients.Elasticsearch.IndexN /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze() @@ -279,7 +279,7 @@ public virtual AnalyzeIndexResponse Analyze() /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(Action configureRequest) @@ -301,7 +301,7 @@ public virtual AnalyzeIndexResponse Analyze(Action_analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -320,7 +320,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRe /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -340,7 +340,7 @@ public virtual Task AnalyzeAsync(Elastic.Client /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -361,7 +361,7 @@ public virtual Task AnalyzeAsync(Elastic.Client /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -381,7 +381,7 @@ public virtual Task AnalyzeAsync(CancellationTo /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -402,7 +402,7 @@ public virtual Task AnalyzeAsync(Action_analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -421,7 +421,7 @@ public virtual Task AnalyzeAsync(AnalyzeIndexRequestDescri /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -441,7 +441,7 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -462,7 +462,7 @@ public virtual Task AnalyzeAsync(Elastic.Clients.Elasticse /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(CancellationToken cancellationToken = default) { @@ -482,7 +482,7 @@ public virtual Task AnalyzeAsync(CancellationToken cancell /// If more than this limit of tokens gets generated, an error occurs. /// The _analyze endpoint without a specified index will always use 10000 as its limit. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AnalyzeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -492,6 +492,303 @@ public virtual Task AnalyzeAsync(Action(descriptor, cancellationToken); } + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(CancelMigrateReindexRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(CancelMigrateReindexRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(CancelMigrateReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex() + { + var descriptor = new CancelMigrateReindexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(Action> configureRequest) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(CancelMigrateReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CancelMigrateReindexResponse CancelMigrateReindex(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(CancelMigrateReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CancelMigrateReindexResponse, CancelMigrateReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(CancelMigrateReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Cancel a migration reindex operation. + /// + /// + /// Cancel a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelMigrateReindexAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CancelMigrateReindexRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Clear the cache. @@ -503,7 +800,7 @@ public virtual Task AnalyzeAsync(Actionfielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) @@ -523,7 +820,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequest request, CancellationToken cancellationToken = default) { @@ -542,7 +839,7 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) @@ -562,7 +859,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) @@ -583,7 +880,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -605,7 +902,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() @@ -626,7 +923,7 @@ public virtual ClearCacheResponse ClearCache() /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Action> configureRequest) @@ -648,7 +945,7 @@ public virtual ClearCacheResponse ClearCache(Actionfielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) @@ -668,7 +965,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descrip /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) @@ -689,7 +986,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -711,7 +1008,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() @@ -732,7 +1029,7 @@ public virtual ClearCacheResponse ClearCache() /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Action configureRequest) @@ -754,7 +1051,7 @@ public virtual ClearCacheResponse ClearCache(Action /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -773,7 +1070,7 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -793,7 +1090,7 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -814,7 +1111,7 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { @@ -834,7 +1131,7 @@ public virtual Task ClearCacheAsync(CancellationT /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -855,7 +1152,7 @@ public virtual Task ClearCacheAsync(Actionfielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -874,7 +1171,7 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -894,7 +1191,7 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -915,7 +1212,7 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { @@ -935,7 +1232,7 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// To clear only specific caches, use the fielddata, query, or request parameters. /// To clear the cache only of specific fields, use the fields parameter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1035,7 +1332,7 @@ public virtual Task ClearCacheAsync(Action /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(CloneIndexRequest request) @@ -1134,7 +1431,7 @@ public virtual CloneIndexResponse Clone(CloneIndexRequest request) /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequest request, CancellationToken cancellationToken = default) { @@ -1232,7 +1529,7 @@ public virtual Task CloneAsync(CloneIndexRequest request, Ca /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) @@ -1331,7 +1628,7 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target) @@ -1431,7 +1728,7 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest) @@ -1532,7 +1829,7 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.Name target) @@ -1632,7 +1929,7 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.Name target, Action> configureRequest) @@ -1733,7 +2030,7 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) @@ -1832,7 +2129,7 @@ public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target) @@ -1932,7 +2229,7 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action configureRequest) @@ -2033,7 +2330,7 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2131,7 +2428,7 @@ public virtual Task CloneAsync(CloneIndexRequestD /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) { @@ -2230,7 +2527,7 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2330,7 +2627,7 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) { @@ -2429,7 +2726,7 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2529,7 +2826,7 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2627,7 +2924,7 @@ public virtual Task CloneAsync(CloneIndexRequestDescriptor d /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) { @@ -2726,7 +3023,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// /// Because the clone operation creates a new index to clone the shards to, the wait for active shards setting on index creation applies to the clone index action as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2761,7 +3058,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequest request) @@ -2795,7 +3092,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequest request) /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -2828,7 +3125,7 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) @@ -2862,7 +3159,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptorcluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) @@ -2897,7 +3194,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -2933,7 +3230,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close() @@ -2968,7 +3265,7 @@ public virtual CloseIndexResponse Close() /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Action> configureRequest) @@ -3004,7 +3301,7 @@ public virtual CloseIndexResponse Close(Actioncluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) @@ -3038,7 +3335,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) @@ -3073,7 +3370,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -3109,7 +3406,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3142,7 +3439,7 @@ public virtual Task CloseAsync(CloseIndexRequestD /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -3176,7 +3473,7 @@ public virtual Task CloseAsync(Elastic.Clients.El /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3211,7 +3508,7 @@ public virtual Task CloseAsync(Elastic.Clients.El /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CancellationToken cancellationToken = default) { @@ -3245,7 +3542,7 @@ public virtual Task CloseAsync(CancellationToken /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3280,7 +3577,7 @@ public virtual Task CloseAsync(Actioncluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3313,7 +3610,7 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -3347,7 +3644,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// Closed indices consume a significant amount of disk-space which can cause problems in managed environments. /// Closing indices can be turned off with the cluster settings API by setting cluster.indices.close.enable to false. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3396,7 +3693,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequest request) @@ -3444,7 +3741,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequest request) /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -3491,7 +3788,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) @@ -3539,7 +3836,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescripto /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) @@ -3588,7 +3885,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -3638,7 +3935,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create() @@ -3687,7 +3984,7 @@ public virtual CreateIndexResponse Create() /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Action> configureRequest) @@ -3737,7 +4034,7 @@ public virtual CreateIndexResponse Create(Actionindex.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) @@ -3785,7 +4082,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descripto /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) @@ -3834,7 +4131,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -3884,7 +4181,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3931,7 +4228,7 @@ public virtual Task CreateAsync(CreateIndexReque /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -3979,7 +4276,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4028,7 +4325,7 @@ public virtual Task CreateAsync(Elastic.Clients. /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -4076,7 +4373,7 @@ public virtual Task CreateAsync(CancellationToke /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4125,7 +4422,7 @@ public virtual Task CreateAsync(Actionindex.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4172,7 +4469,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -4220,7 +4517,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// You can change the default of only waiting for the primary shards to start through the index setting index.write.wait_for_active_shards. /// Note that changing this setting will also affect the wait_for_active_shards value on all subsequent write operations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4233,10 +4530,11 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequest request) @@ -4248,10 +4546,11 @@ public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequest /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateDataStreamAsync(CreateDataStreamRequest request, CancellationToken cancellationToken = default) { @@ -4262,10 +4561,11 @@ public virtual Task CreateDataStreamAsync(CreateDataSt /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequestDescriptor descriptor) @@ -4277,10 +4577,11 @@ public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequest /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elasticsearch.DataStreamName name) @@ -4293,10 +4594,11 @@ public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elastic /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elasticsearch.DataStreamName name, Action configureRequest) @@ -4310,10 +4612,11 @@ public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elastic /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateDataStreamAsync(CreateDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4324,10 +4627,11 @@ public virtual Task CreateDataStreamAsync(CreateDataSt /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamName name, CancellationToken cancellationToken = default) { @@ -4339,10 +4643,11 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamName name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4354,115 +4659,360 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequest request) + public virtual CreateFromResponse CreateFrom(CreateFromRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DataStreamsStatsAsync(DataStreamsStatsRequest request, CancellationToken cancellationToken = default) + public virtual Task CreateFromAsync(CreateFromRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequestDescriptor descriptor) + public virtual CreateFromResponse CreateFrom(CreateFromRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, CreateFromResponse, CreateFromRequestParameters>(descriptor); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name) + public virtual CreateFromResponse CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) { - var descriptor = new DataStreamsStatsRequestDescriptor(name); + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, CreateFromResponse, CreateFromRequestParameters>(descriptor); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name, Action configureRequest) + public virtual CreateFromResponse CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, Action> configureRequest) { - var descriptor = new DataStreamsStatsRequestDescriptor(name); + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, CreateFromResponse, CreateFromRequestParameters>(descriptor); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DataStreamsStatsResponse DataStreamsStats() + public virtual CreateFromResponse CreateFrom(CreateFromRequestDescriptor descriptor) { - var descriptor = new DataStreamsStatsRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual DataStreamsStatsResponse DataStreamsStats(Action configureRequest) + public virtual CreateFromResponse CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest) { - var descriptor = new DataStreamsStatsRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Get data stream stats. - /// Retrieves statistics for one or more data streams. + /// Create an index from a source index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task DataStreamsStatsAsync(DataStreamsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CreateFromResponse CreateFrom(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, Action configureRequest) + { + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateFromAsync(CreateFromRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CreateFromResponse, CreateFromRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateFromAsync(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateFromResponse, CreateFromRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateFromAsync(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateFromResponse, CreateFromRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateFromAsync(CreateFromRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateFromAsync(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an index from a source index. + /// + /// + /// Copy the mappings and settings from the source index to a destination index while allowing request settings and mappings to override the source values. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateFromAsync(Elastic.Clients.Elasticsearch.IndexManagement.CreateFrom createFrom, Elastic.Clients.Elasticsearch.IndexName source, Elastic.Clients.Elasticsearch.IndexName dest, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CreateFromRequestDescriptor(createFrom, source, dest); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get 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) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name) + { + var descriptor = new DataStreamsStatsRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DataStreamsStatsResponse DataStreamsStats(Elastic.Clients.Elasticsearch.IndexName? name, Action configureRequest) + { + var descriptor = new DataStreamsStatsRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DataStreamsStatsResponse DataStreamsStats() + { + var descriptor = new DataStreamsStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual DataStreamsStatsResponse DataStreamsStats(Action configureRequest) + { + var descriptor = new DataStreamsStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get data stream stats. + /// + /// + /// Get 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) { descriptor.BeforeRequest(); return DoRequestAsync(descriptor, cancellationToken); @@ -4471,9 +5021,11 @@ public virtual Task DataStreamsStatsAsync(DataStreamsS /// /// /// Get data stream stats. - /// Retrieves statistics for one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.IndexName? name, CancellationToken cancellationToken = default) { @@ -4485,9 +5037,11 @@ public virtual Task DataStreamsStatsAsync(Elastic.Clie /// /// /// Get data stream stats. - /// Retrieves statistics for one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DataStreamsStatsAsync(Elastic.Clients.Elasticsearch.IndexName? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4500,9 +5054,11 @@ public virtual Task DataStreamsStatsAsync(Elastic.Clie /// /// /// Get data stream stats. - /// Retrieves statistics for one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get statistics for one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DataStreamsStatsAsync(CancellationToken cancellationToken = default) { @@ -4514,9 +5070,11 @@ public virtual Task DataStreamsStatsAsync(Cancellation /// /// /// Get data stream stats. - /// Retrieves statistics for one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get 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) { @@ -4537,7 +5095,7 @@ public virtual Task DataStreamsStatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequest request) @@ -4557,7 +5115,7 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequest request) /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequest request, CancellationToken cancellationToken = default) { @@ -4576,7 +5134,7 @@ public virtual Task DeleteAsync(DeleteIndexRequest request, /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) @@ -4596,7 +5154,7 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescripto /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices) @@ -4617,7 +5175,7 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsear /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -4639,7 +5197,7 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsear /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete() @@ -4660,7 +5218,7 @@ public virtual DeleteIndexResponse Delete() /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Action> configureRequest) @@ -4682,7 +5240,7 @@ public virtual DeleteIndexResponse Delete(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) @@ -4702,7 +5260,7 @@ public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descripto /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices) @@ -4723,7 +5281,7 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -4745,7 +5303,7 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4764,7 +5322,7 @@ public virtual Task DeleteAsync(DeleteIndexReque /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -4784,7 +5342,7 @@ public virtual Task DeleteAsync(Elastic.Clients. /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4805,7 +5363,7 @@ public virtual Task DeleteAsync(Elastic.Clients. /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(CancellationToken cancellationToken = default) { @@ -4825,7 +5383,7 @@ public virtual Task DeleteAsync(CancellationToke /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4846,7 +5404,7 @@ public virtual Task DeleteAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4865,7 +5423,7 @@ public virtual Task DeleteAsync(DeleteIndexRequestDescripto /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -4885,7 +5443,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear /// To delete the index, you must roll over the data stream so a new write index is created. /// You can then use the delete index API to delete the previous write index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4900,7 +5458,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) @@ -4914,7 +5472,7 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(DeleteAliasRequest request, CancellationToken cancellationToken = default) { @@ -4927,7 +5485,7 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequest req /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) @@ -4941,7 +5499,7 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDesc /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) @@ -4956,7 +5514,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) @@ -4972,7 +5530,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Names name) @@ -4987,7 +5545,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) @@ -5003,7 +5561,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) @@ -5017,7 +5575,7 @@ public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor desc /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) @@ -5032,7 +5590,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Ind /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -5048,7 +5606,7 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Ind /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5061,7 +5619,7 @@ public virtual Task DeleteAliasAsync(DeleteAlias /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -5075,7 +5633,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5090,7 +5648,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -5104,7 +5662,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5119,7 +5677,7 @@ public virtual Task DeleteAliasAsync(Elastic.Cli /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5132,7 +5690,7 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequestDesc /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -5146,7 +5704,7 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti /// Delete an alias. /// Removes a data stream or index from an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5161,7 +5719,7 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequest request) @@ -5175,7 +5733,7 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecyc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -5188,7 +5746,7 @@ public virtual Task DeleteDataLifecycleAsync(Delete /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequestDescriptor descriptor) @@ -5202,7 +5760,7 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecyc /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) @@ -5217,7 +5775,7 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) @@ -5233,7 +5791,7 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5246,7 +5804,7 @@ public virtual Task DeleteDataLifecycleAsync(Delete /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -5260,7 +5818,7 @@ public virtual Task DeleteDataLifecycleAsync(Elasti /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5275,7 +5833,7 @@ public virtual Task DeleteDataLifecycleAsync(Elasti /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequest request) @@ -5289,7 +5847,7 @@ public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequest /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequest request, CancellationToken cancellationToken = default) { @@ -5302,7 +5860,7 @@ public virtual Task DeleteDataStreamAsync(DeleteDataSt /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequestDescriptor descriptor) @@ -5316,7 +5874,7 @@ public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequest /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elasticsearch.DataStreamNames name) @@ -5331,7 +5889,7 @@ public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elastic /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) @@ -5347,7 +5905,7 @@ public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elastic /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5360,7 +5918,7 @@ public virtual Task DeleteDataStreamAsync(DeleteDataSt /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -5374,7 +5932,7 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie /// Delete data streams. /// Deletes one or more data streams and their backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5391,7 +5949,7 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequest request) @@ -5407,7 +5965,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTempla /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -5422,7 +5980,7 @@ public virtual Task DeleteIndexTemplateAsync(Delete /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequestDescriptor descriptor) @@ -5438,7 +5996,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTempla /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -5455,7 +6013,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.E /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -5473,7 +6031,7 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.E /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5488,7 +6046,7 @@ public virtual Task DeleteIndexTemplateAsync(Delete /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -5504,7 +6062,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti /// names are specified then there is no wildcard support and the provided names should match completely with /// existing templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5518,7 +6076,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest request) @@ -5531,7 +6089,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest reque /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(DeleteTemplateRequest request, CancellationToken cancellationToken = default) { @@ -5543,7 +6101,7 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescriptor descriptor) @@ -5556,7 +6114,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescri /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -5570,7 +6128,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -5585,7 +6143,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(DeleteTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5597,7 +6155,7 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -5610,7 +6168,7 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// /// Delete a legacy index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5632,7 +6190,7 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) @@ -5653,7 +6211,7 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequest request, CancellationToken cancellationToken = default) { @@ -5673,7 +6231,7 @@ public virtual Task DiskUsageAsync(DiskUsageRequest request, /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) @@ -5694,7 +6252,7 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) @@ -5716,7 +6274,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -5739,7 +6297,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsea /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage() @@ -5761,7 +6319,7 @@ public virtual DiskUsageResponse DiskUsage() /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Action> configureRequest) @@ -5784,7 +6342,7 @@ public virtual DiskUsageResponse DiskUsage(Action_id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor) @@ -5805,7 +6363,7 @@ public virtual DiskUsageResponse DiskUsage(DiskUsageRequestDescriptor descriptor /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices) @@ -5827,7 +6385,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -5850,7 +6408,7 @@ public virtual DiskUsageResponse DiskUsage(Elastic.Clients.Elasticsearch.Indices /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5870,7 +6428,7 @@ public virtual Task DiskUsageAsync(DiskUsageReques /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -5891,7 +6449,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5913,7 +6471,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(CancellationToken cancellationToken = default) { @@ -5934,7 +6492,7 @@ public virtual Task DiskUsageAsync(CancellationTok /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5956,7 +6514,7 @@ public virtual Task DiskUsageAsync(Action_id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5976,7 +6534,7 @@ public virtual Task DiskUsageAsync(DiskUsageRequestDescriptor /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -5997,7 +6555,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate. /// The stored size of the _id field is likely underestimated while the _source field is overestimated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6019,7 +6577,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequest request) @@ -6040,7 +6598,7 @@ public virtual DownsampleResponse Downsample(DownsampleRequest request) /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequest request, CancellationToken cancellationToken = default) { @@ -6060,7 +6618,7 @@ public virtual Task DownsampleAsync(DownsampleRequest reques /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) @@ -6081,7 +6639,7 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescrip /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) @@ -6103,7 +6661,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest) @@ -6126,7 +6684,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elastics /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descriptor) @@ -6147,7 +6705,7 @@ public virtual DownsampleResponse Downsample(DownsampleRequestDescriptor descrip /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex) @@ -6169,7 +6727,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest) @@ -6192,7 +6750,7 @@ public virtual DownsampleResponse Downsample(Elastic.Clients.Elasticsearch.Index /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6212,7 +6770,7 @@ public virtual Task DownsampleAsync(DownsampleReq /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { @@ -6233,7 +6791,7 @@ public virtual Task DownsampleAsync(Elastic.Clien /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6255,7 +6813,7 @@ public virtual Task DownsampleAsync(Elastic.Clien /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(DownsampleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6275,7 +6833,7 @@ public virtual Task DownsampleAsync(DownsampleRequestDescrip /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, CancellationToken cancellationToken = default) { @@ -6296,7 +6854,7 @@ public virtual Task DownsampleAsync(Elastic.Clients.Elastics /// Neither field nor document level security can be defined on the source index. /// The source index must be read only (index.blocks.write: true). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DownsampleAsync(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName targetIndex, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6311,7 +6869,7 @@ public virtual Task DownsampleAsync(Elastic.Clients.Elastics /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequest request) @@ -6325,7 +6883,7 @@ public virtual ExistsResponse Exists(ExistsRequest request) /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) { @@ -6338,7 +6896,7 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) @@ -6352,7 +6910,7 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices) @@ -6367,7 +6925,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -6383,7 +6941,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists() @@ -6398,7 +6956,7 @@ public virtual ExistsResponse Exists() /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Action> configureRequest) @@ -6414,7 +6972,7 @@ public virtual ExistsResponse Exists(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) @@ -6428,7 +6986,7 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices) @@ -6443,7 +7001,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -6459,7 +7017,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6472,7 +7030,7 @@ public virtual Task ExistsAsync(ExistsRequestDescript /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -6486,7 +7044,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6501,7 +7059,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(CancellationToken cancellationToken = default) { @@ -6515,7 +7073,7 @@ public virtual Task ExistsAsync(CancellationToken can /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6530,7 +7088,7 @@ public virtual Task ExistsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6543,7 +7101,7 @@ public virtual Task ExistsAsync(ExistsRequestDescriptor descript /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -6557,7 +7115,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// Check indices. /// Check if one or more indices, index aliases, or data streams exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6570,9 +7128,11 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequest request) @@ -6584,9 +7144,11 @@ public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequest request) /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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) { @@ -6597,9 +7159,11 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequest req /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor descriptor) @@ -6611,9 +7175,11 @@ public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDesc /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name) @@ -6626,9 +7192,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) @@ -6642,9 +7210,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name) @@ -6657,9 +7227,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) @@ -6673,9 +7245,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor descriptor) @@ -6687,9 +7261,11 @@ public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor desc /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name) @@ -6702,9 +7278,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Ind /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -6718,9 +7296,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Ind /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name) @@ -6733,9 +7313,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Nam /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check if one or more data stream or index aliases exist. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -6749,9 +7331,11 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Nam /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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) { @@ -6762,9 +7346,11 @@ public virtual Task ExistsAliasAsync(ExistsAlias /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Indices? indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -6776,9 +7362,11 @@ public virtual Task ExistsAliasAsync(Elastic.Cli /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6791,9 +7379,11 @@ public virtual Task ExistsAliasAsync(Elastic.Cli /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Names name, CancellationToken cancellationToken = default) { @@ -6805,9 +7395,11 @@ public virtual Task ExistsAliasAsync(Elastic.Cli /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6820,9 +7412,11 @@ public virtual Task ExistsAliasAsync(Elastic.Cli /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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) { @@ -6833,9 +7427,11 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequestDesc /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Indices? indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -6847,9 +7443,11 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Indices? indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6862,9 +7460,11 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Names name, CancellationToken cancellationToken = default) { @@ -6876,9 +7476,11 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// /// /// Check aliases. - /// Checks if one or more data stream or index aliases exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Check 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.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6891,9 +7493,11 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTemplateRequest request) @@ -6905,9 +7509,11 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTempla /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsIndexTemplateAsync(ExistsIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -6918,9 +7524,11 @@ public virtual Task ExistsIndexTemplateAsync(Exists /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTemplateRequestDescriptor descriptor) @@ -6932,9 +7540,11 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTempla /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -6947,9 +7557,11 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.E /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -6963,9 +7575,11 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.E /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsIndexTemplateAsync(ExistsIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6976,9 +7590,11 @@ public virtual Task ExistsIndexTemplateAsync(Exists /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -6990,9 +7606,11 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// /// /// Check index templates. + /// + /// /// Check whether index templates exist. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7011,7 +7629,7 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequest request) @@ -7029,7 +7647,7 @@ public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequest reque /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(ExistsTemplateRequest request, CancellationToken cancellationToken = default) { @@ -7046,7 +7664,7 @@ public virtual Task ExistsTemplateAsync(ExistsTemplateRe /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequestDescriptor descriptor) @@ -7064,7 +7682,7 @@ public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequestDescri /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Names name) @@ -7083,7 +7701,7 @@ public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsear /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -7103,7 +7721,7 @@ public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsear /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(ExistsTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7120,7 +7738,7 @@ public virtual Task ExistsTemplateAsync(ExistsTemplateRe /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -7138,7 +7756,7 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7153,7 +7771,7 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) @@ -7167,7 +7785,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLife /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -7180,7 +7798,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) @@ -7194,7 +7812,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Expl /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices) @@ -7209,7 +7827,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elas /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -7225,7 +7843,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elas /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle() @@ -7240,7 +7858,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle() /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Action> configureRequest) @@ -7256,7 +7874,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Acti /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) @@ -7270,7 +7888,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLife /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices) @@ -7285,7 +7903,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -7301,7 +7919,7 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7314,7 +7932,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7328,7 +7946,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7343,7 +7961,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(CancellationToken cancellationToken = default) { @@ -7357,7 +7975,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7372,7 +7990,7 @@ public virtual Task ExplainDataLifecycleAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7385,7 +8003,7 @@ public virtual Task ExplainDataLifecycleAsync(Expl /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7399,7 +8017,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// Get the status for a data stream lifecycle. /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7420,7 +8038,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest request) @@ -7440,7 +8058,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest re /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(FieldUsageStatsRequest request, CancellationToken cancellationToken = default) { @@ -7459,7 +8077,7 @@ public virtual Task FieldUsageStatsAsync(FieldUsageStat /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDescriptor descriptor) @@ -7479,7 +8097,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStat /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -7500,7 +8118,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -7522,7 +8140,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Client /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats() @@ -7543,7 +8161,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats() /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Action> configureRequest) @@ -7565,7 +8183,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDescriptor descriptor) @@ -7585,7 +8203,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequestDes /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices) @@ -7606,7 +8224,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticse /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -7628,7 +8246,7 @@ public virtual FieldUsageStatsResponse FieldUsageStats(Elastic.Clients.Elasticse /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(FieldUsageStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7647,7 +8265,7 @@ public virtual Task FieldUsageStatsAsync(Fie /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7667,7 +8285,7 @@ public virtual Task FieldUsageStatsAsync(Ela /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7688,7 +8306,7 @@ public virtual Task FieldUsageStatsAsync(Ela /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(CancellationToken cancellationToken = default) { @@ -7708,7 +8326,7 @@ public virtual Task FieldUsageStatsAsync(Can /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7729,7 +8347,7 @@ public virtual Task FieldUsageStatsAsync(Act /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(FieldUsageStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7748,7 +8366,7 @@ public virtual Task FieldUsageStatsAsync(FieldUsageStat /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -7768,7 +8386,7 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// The response body reports the per-shard usage count of the data structures that back the fields in the index. /// A given request will increment each count by a maximum value of 1, even if the request accesses the same field multiple times. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldUsageStatsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7794,7 +8412,7 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequest request) @@ -7819,7 +8437,7 @@ public virtual FlushResponse Flush(FlushRequest request) /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { @@ -7843,7 +8461,7 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) @@ -7868,7 +8486,7 @@ public virtual FlushResponse Flush(FlushRequestDescriptor /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) @@ -7894,7 +8512,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -7921,7 +8539,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indi /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() @@ -7947,7 +8565,7 @@ public virtual FlushResponse Flush() /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Action> configureRequest) @@ -7974,7 +8592,7 @@ public virtual FlushResponse Flush(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) @@ -7999,7 +8617,7 @@ public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices) @@ -8025,7 +8643,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indice /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -8052,7 +8670,7 @@ public virtual FlushResponse Flush(Elastic.Clients.Elasticsearch.Indices? indice /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush() @@ -8078,7 +8696,7 @@ public virtual FlushResponse Flush() /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(Action configureRequest) @@ -8105,7 +8723,7 @@ public virtual FlushResponse Flush(Action configureReque /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8129,7 +8747,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor< /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -8154,7 +8772,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8180,7 +8798,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elastic /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -8205,7 +8823,7 @@ public virtual Task FlushAsync(CancellationToken cance /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8231,7 +8849,7 @@ public virtual Task FlushAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8255,7 +8873,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor descriptor, /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -8280,7 +8898,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indi /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8306,7 +8924,7 @@ public virtual Task FlushAsync(Elastic.Clients.Elasticsearch.Indi /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -8331,7 +8949,7 @@ public virtual Task FlushAsync(CancellationToken cancellationToke /// It is also possible to trigger a flush on one or more indices using the flush API, although it is rare for users to need to call this API directly. /// If you call the flush API after indexing some documents then a successful response indicates that Elasticsearch has flushed all the documents that were indexed before the flush API was called. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8425,7 +9043,7 @@ public virtual Task FlushAsync(Action con /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) @@ -8518,7 +9136,7 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(ForcemergeRequest request, CancellationToken cancellationToken = default) { @@ -8610,7 +9228,7 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) @@ -8703,7 +9321,7 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescrip /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices) @@ -8797,7 +9415,7 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -8892,7 +9510,7 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elastics /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge() @@ -8986,7 +9604,7 @@ public virtual ForcemergeResponse Forcemerge() /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Action> configureRequest) @@ -9081,7 +9699,7 @@ public virtual ForcemergeResponse Forcemerge(Action /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) @@ -9174,7 +9792,7 @@ public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descrip /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices) @@ -9268,7 +9886,7 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indic /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -9363,7 +9981,7 @@ public virtual ForcemergeResponse Forcemerge(Elastic.Clients.Elasticsearch.Indic /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge() @@ -9457,7 +10075,7 @@ public virtual ForcemergeResponse Forcemerge() /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(Action configureRequest) @@ -9552,7 +10170,7 @@ public virtual ForcemergeResponse Forcemerge(Action /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9644,7 +10262,7 @@ public virtual Task ForcemergeAsync(ForcemergeReq /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -9737,7 +10355,7 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9831,7 +10449,7 @@ public virtual Task ForcemergeAsync(Elastic.Clien /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { @@ -9924,7 +10542,7 @@ public virtual Task ForcemergeAsync(CancellationT /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10018,7 +10636,7 @@ public virtual Task ForcemergeAsync(Action /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10110,7 +10728,7 @@ public virtual Task ForcemergeAsync(ForcemergeRequestDescrip /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -10203,7 +10821,7 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10297,7 +10915,7 @@ public virtual Task ForcemergeAsync(Elastic.Clients.Elastics /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { @@ -10390,7 +11008,7 @@ public virtual Task ForcemergeAsync(CancellationToken cancel /// /// POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1 /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -10406,7 +11024,7 @@ public virtual Task ForcemergeAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequest request) @@ -10421,7 +11039,7 @@ public virtual GetIndexResponse Get(GetIndexRequest request) /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequest request, CancellationToken cancellationToken = default) { @@ -10435,7 +11053,7 @@ public virtual Task GetAsync(GetIndexRequest request, Cancella /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) @@ -10450,7 +11068,7 @@ public virtual GetIndexResponse Get(GetIndexRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices) @@ -10466,7 +11084,7 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Ind /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -10483,7 +11101,7 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Ind /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get() @@ -10499,7 +11117,7 @@ public virtual GetIndexResponse Get() /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Action> configureRequest) @@ -10516,7 +11134,7 @@ public virtual GetIndexResponse Get(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) @@ -10531,7 +11149,7 @@ public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices) @@ -10547,7 +11165,7 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -10564,7 +11182,7 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10578,7 +11196,7 @@ public virtual Task GetAsync(GetIndexRequestDescrip /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -10593,7 +11211,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasti /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10609,7 +11227,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasti /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(CancellationToken cancellationToken = default) { @@ -10624,7 +11242,7 @@ public virtual Task GetAsync(CancellationToken canc /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10640,7 +11258,7 @@ public virtual Task GetAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10654,7 +11272,7 @@ public virtual Task GetAsync(GetIndexRequestDescriptor descrip /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -10669,7 +11287,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind /// Get 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10684,7 +11302,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequest request) @@ -10698,7 +11316,7 @@ public virtual GetAliasResponse GetAlias(GetAliasRequest request) /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequest request, CancellationToken cancellationToken = default) { @@ -10711,7 +11329,7 @@ public virtual Task GetAliasAsync(GetAliasRequest request, Can /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) @@ -10725,7 +11343,7 @@ public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -10740,7 +11358,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) @@ -10756,7 +11374,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias() @@ -10771,7 +11389,7 @@ public virtual GetAliasResponse GetAlias() /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Action> configureRequest) @@ -10787,7 +11405,7 @@ public virtual GetAliasResponse GetAlias(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) @@ -10801,7 +11419,7 @@ public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -10816,7 +11434,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -10832,7 +11450,7 @@ public virtual GetAliasResponse GetAlias(Elastic.Clients.Elasticsearch.Indices? /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias() @@ -10847,7 +11465,7 @@ public virtual GetAliasResponse GetAlias() /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(Action configureRequest) @@ -10863,7 +11481,7 @@ public virtual GetAliasResponse GetAlias(Action confi /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10876,7 +11494,7 @@ public virtual Task GetAliasAsync(GetAliasRequestDe /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -10890,7 +11508,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.E /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10905,7 +11523,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.E /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { @@ -10919,7 +11537,7 @@ public virtual Task GetAliasAsync(CancellationToken /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10934,7 +11552,7 @@ public virtual Task GetAliasAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10947,7 +11565,7 @@ public virtual Task GetAliasAsync(GetAliasRequestDescriptor de /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -10961,7 +11579,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10976,7 +11594,7 @@ public virtual Task GetAliasAsync(Elastic.Clients.Elasticsearc /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { @@ -10990,7 +11608,7 @@ public virtual Task GetAliasAsync(CancellationToken cancellati /// Get aliases. /// Retrieves information for one or more data stream or index aliases. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAliasAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -11003,9 +11621,11 @@ public virtual Task GetAliasAsync(Action /// /// 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. + /// + /// Get the data stream lifecycle configuration of one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest request) @@ -11017,9 +11637,11 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest /// /// /// 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. + /// + /// Get 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) { @@ -11030,9 +11652,11 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec /// /// /// 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. + /// + /// Get the data stream lifecycle configuration of one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequestDescriptor descriptor) @@ -11044,9 +11668,11 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest /// /// /// 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. + /// + /// Get the data stream lifecycle configuration of one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) @@ -11059,9 +11685,11 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elastic /// /// /// 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. + /// + /// Get the data stream lifecycle configuration of one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) @@ -11075,9 +11703,11 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elastic /// /// /// 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. + /// + /// Get 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) { @@ -11088,9 +11718,11 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec /// /// /// 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. + /// + /// Get 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.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -11102,9 +11734,11 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie /// /// /// 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. + /// + /// Get 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.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11119,7 +11753,7 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(GetDataLifecycleStatsRequest request) @@ -11133,7 +11767,7 @@ public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(GetDataLifecy /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleStatsAsync(GetDataLifecycleStatsRequest request, CancellationToken cancellationToken = default) { @@ -11146,7 +11780,7 @@ public virtual Task GetDataLifecycleStatsAsync(Ge /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(GetDataLifecycleStatsRequestDescriptor descriptor) @@ -11160,7 +11794,7 @@ public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(GetDataLifecy /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats() @@ -11175,7 +11809,7 @@ public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats() /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(Action configureRequest) @@ -11191,7 +11825,7 @@ public virtual GetDataLifecycleStatsResponse GetDataLifecycleStats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleStatsAsync(GetDataLifecycleStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11204,7 +11838,7 @@ public virtual Task GetDataLifecycleStatsAsync(Ge /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleStatsAsync(CancellationToken cancellationToken = default) { @@ -11218,7 +11852,7 @@ public virtual Task GetDataLifecycleStatsAsync(Ca /// Get data stream lifecycle stats. /// Get statistics about the data streams that are managed by a data stream lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -11231,9 +11865,11 @@ public virtual Task GetDataLifecycleStatsAsync(Ac /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequest request) @@ -11245,9 +11881,11 @@ public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequest request) /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get 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) { @@ -11258,9 +11896,11 @@ public virtual Task GetDataStreamAsync(GetDataStreamReque /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequestDescriptor descriptor) @@ -11272,9 +11912,11 @@ public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequestDescripto /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream(Elastic.Clients.Elasticsearch.DataStreamNames? name) @@ -11287,9 +11929,11 @@ public virtual GetDataStreamResponse GetDataStream(Elastic.Clients.Elasticsearch /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream(Elastic.Clients.Elasticsearch.DataStreamNames? name, Action configureRequest) @@ -11303,9 +11947,11 @@ public virtual GetDataStreamResponse GetDataStream(Elastic.Clients.Elasticsearch /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream() @@ -11318,9 +11964,11 @@ public virtual GetDataStreamResponse GetDataStream() /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream(Action configureRequest) @@ -11334,9 +11982,11 @@ public virtual GetDataStreamResponse GetDataStream(Action /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get 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) { @@ -11347,9 +11997,11 @@ public virtual Task GetDataStreamAsync(GetDataStreamReque /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamNames? name, CancellationToken cancellationToken = default) { @@ -11361,9 +12013,11 @@ public virtual Task GetDataStreamAsync(Elastic.Clients.El /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamNames? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11376,9 +12030,11 @@ public virtual Task GetDataStreamAsync(Elastic.Clients.El /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get information about one or more data streams. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataStreamAsync(CancellationToken cancellationToken = default) { @@ -11390,9 +12046,11 @@ public virtual Task GetDataStreamAsync(CancellationToken /// /// /// Get data streams. - /// Retrieves information about one or more data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get 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) { @@ -11411,7 +12069,7 @@ public virtual Task GetDataStreamAsync(Action /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequest request) @@ -11429,7 +12087,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequest re /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(GetFieldMappingRequest request, CancellationToken cancellationToken = default) { @@ -11446,7 +12104,7 @@ public virtual Task GetFieldMappingAsync(GetFieldMappin /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDescriptor descriptor) @@ -11464,7 +12122,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappin /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields) @@ -11483,7 +12141,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest) @@ -11503,7 +12161,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields) @@ -11522,7 +12180,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest) @@ -11542,7 +12200,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDescriptor descriptor) @@ -11560,7 +12218,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDes /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields) @@ -11579,7 +12237,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest) @@ -11599,7 +12257,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields) @@ -11618,7 +12276,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest) @@ -11638,7 +12296,7 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(GetFieldMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11655,7 +12313,7 @@ public virtual Task GetFieldMappingAsync(Get /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -11673,7 +12331,7 @@ public virtual Task GetFieldMappingAsync(Ela /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11692,7 +12350,7 @@ public virtual Task GetFieldMappingAsync(Ela /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -11710,7 +12368,7 @@ public virtual Task GetFieldMappingAsync(Ela /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11729,7 +12387,7 @@ public virtual Task GetFieldMappingAsync(Ela /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(GetFieldMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11746,7 +12404,7 @@ public virtual Task GetFieldMappingAsync(GetFieldMappin /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -11764,7 +12422,7 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11783,7 +12441,7 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { @@ -11801,7 +12459,7 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// /// This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11816,7 +12474,7 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest request) @@ -11830,7 +12488,7 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -11843,7 +12501,7 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequestDescriptor descriptor) @@ -11857,7 +12515,7 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -11872,7 +12530,7 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elastic /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -11888,7 +12546,7 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Elastic.Clients.Elastic /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate() @@ -11903,7 +12561,7 @@ public virtual GetIndexTemplateResponse GetIndexTemplate() /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(Action configureRequest) @@ -11919,7 +12577,7 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11932,7 +12590,7 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -11946,7 +12604,7 @@ public virtual Task GetIndexTemplateAsync(Elastic.Clie /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11961,7 +12619,7 @@ public virtual Task GetIndexTemplateAsync(Elastic.Clie /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(CancellationToken cancellationToken = default) { @@ -11975,7 +12633,7 @@ public virtual Task GetIndexTemplateAsync(Cancellation /// Get index templates. /// Get information about one or more index templates. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIndexTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -11990,7 +12648,7 @@ public virtual Task GetIndexTemplateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequest request) @@ -12004,7 +12662,7 @@ public virtual GetMappingResponse GetMapping(GetMappingRequest request) /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequest request, CancellationToken cancellationToken = default) { @@ -12017,7 +12675,7 @@ public virtual Task GetMappingAsync(GetMappingRequest reques /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) @@ -12031,7 +12689,7 @@ public virtual GetMappingResponse GetMapping(GetMappingRequestDescrip /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices) @@ -12046,7 +12704,7 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elastics /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -12062,7 +12720,7 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elastics /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping() @@ -12077,7 +12735,7 @@ public virtual GetMappingResponse GetMapping() /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Action> configureRequest) @@ -12093,7 +12751,7 @@ public virtual GetMappingResponse GetMapping(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) @@ -12107,7 +12765,7 @@ public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descrip /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices) @@ -12122,7 +12780,7 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indic /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -12138,7 +12796,7 @@ public virtual GetMappingResponse GetMapping(Elastic.Clients.Elasticsearch.Indic /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping() @@ -12153,7 +12811,7 @@ public virtual GetMappingResponse GetMapping() /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(Action configureRequest) @@ -12169,7 +12827,7 @@ public virtual GetMappingResponse GetMapping(Action /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12182,7 +12840,7 @@ public virtual Task GetMappingAsync(GetMappingReq /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -12196,7 +12854,7 @@ public virtual Task GetMappingAsync(Elastic.Clien /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12211,7 +12869,7 @@ public virtual Task GetMappingAsync(Elastic.Clien /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) { @@ -12225,7 +12883,7 @@ public virtual Task GetMappingAsync(CancellationT /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12240,7 +12898,7 @@ public virtual Task GetMappingAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12253,7 +12911,7 @@ public virtual Task GetMappingAsync(GetMappingRequestDescrip /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -12267,7 +12925,7 @@ public virtual Task GetMappingAsync(Elastic.Clients.Elastics /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12282,7 +12940,7 @@ public virtual Task GetMappingAsync(Elastic.Clients.Elastics /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) { @@ -12296,7 +12954,7 @@ public virtual Task GetMappingAsync(CancellationToken cancel /// Get mapping definitions. /// For data streams, the API retrieves mappings for the stream’s backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12306,13 +12964,310 @@ public virtual Task GetMappingAsync(Action(descriptor, cancellationToken); } + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(GetMigrateReindexStatusRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(GetMigrateReindexStatusRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(GetMigrateReindexStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus() + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(Action> configureRequest) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(GetMigrateReindexStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual GetMigrateReindexStatusResponse GetMigrateReindexStatus(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(GetMigrateReindexStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetMigrateReindexStatusResponse, GetMigrateReindexStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(GetMigrateReindexStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Get the migration reindexing status. + /// + /// + /// Get the status of a migration reindex attempt for a data stream or index. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMigrateReindexStatusAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetMigrateReindexStatusRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Get index settings. /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequest request) @@ -12327,7 +13282,7 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequest /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequest request, CancellationToken cancellationToken = default) { @@ -12341,7 +13296,7 @@ public virtual Task GetSettingsAsync(GetIndicesSetti /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestDescriptor descriptor) @@ -12356,7 +13311,7 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSetti /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -12372,7 +13327,7 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest) @@ -12389,7 +13344,7 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings() @@ -12405,7 +13360,7 @@ public virtual GetIndicesSettingsResponse GetSettings() /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Action> configureRequest) @@ -12422,7 +13377,7 @@ public virtual GetIndicesSettingsResponse GetSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestDescriptor descriptor) @@ -12437,7 +13392,7 @@ public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequestD /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name) @@ -12453,7 +13408,7 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsea /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -12470,7 +13425,7 @@ public virtual GetIndicesSettingsResponse GetSettings(Elastic.Clients.Elasticsea /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings() @@ -12486,7 +13441,7 @@ public virtual GetIndicesSettingsResponse GetSettings() /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(Action configureRequest) @@ -12503,7 +13458,7 @@ public virtual GetIndicesSettingsResponse GetSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12517,7 +13472,7 @@ public virtual Task GetSettingsAsync(GetI /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -12532,7 +13487,7 @@ public virtual Task GetSettingsAsync(Elas /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12548,7 +13503,7 @@ public virtual Task GetSettingsAsync(Elas /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -12563,7 +13518,7 @@ public virtual Task GetSettingsAsync(Canc /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12579,7 +13534,7 @@ public virtual Task GetSettingsAsync(Acti /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12593,7 +13548,7 @@ public virtual Task GetSettingsAsync(GetIndicesSetti /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -12608,7 +13563,7 @@ public virtual Task GetSettingsAsync(Elastic.Clients /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12624,7 +13579,7 @@ public virtual Task GetSettingsAsync(Elastic.Clients /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -12639,7 +13594,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// Get setting information for one or more indices. /// For data streams, it returns setting information for the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12657,7 +13612,7 @@ public virtual Task GetSettingsAsync(Action /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) @@ -12674,7 +13629,7 @@ public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(GetTemplateRequest request, CancellationToken cancellationToken = default) { @@ -12690,7 +13645,7 @@ public virtual Task GetTemplateAsync(GetTemplateRequest req /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor descriptor) @@ -12707,7 +13662,7 @@ public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor desc /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Names? name) @@ -12725,7 +13680,7 @@ public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Nam /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -12744,7 +13699,7 @@ public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Nam /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate() @@ -12762,7 +13717,7 @@ public virtual GetTemplateResponse GetTemplate() /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(Action configureRequest) @@ -12781,7 +13736,7 @@ public virtual GetTemplateResponse GetTemplate(Action /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(GetTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12797,7 +13752,7 @@ public virtual Task GetTemplateAsync(GetTemplateRequestDesc /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -12814,7 +13769,7 @@ public virtual Task GetTemplateAsync(Elastic.Clients.Elasti /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12832,7 +13787,7 @@ public virtual Task GetTemplateAsync(Elastic.Clients.Elasti /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(CancellationToken cancellationToken = default) { @@ -12849,7 +13804,7 @@ public virtual Task GetTemplateAsync(CancellationToken canc /// /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12861,52 +13816,153 @@ public virtual Task GetTemplateAsync(Action /// - /// 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. + /// Reindex legacy backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStreamRequest request) + public virtual MigrateReindexResponse MigrateReindex(MigrateReindexRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// 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. + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task MigrateToDataStreamAsync(MigrateToDataStreamRequest request, CancellationToken cancellationToken = default) + public virtual Task MigrateReindexAsync(MigrateReindexRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Convert an index alias to a data stream. + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MigrateReindexResponse MigrateReindex(MigrateReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MigrateReindexResponse MigrateReindex(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex reindex) + { + var descriptor = new MigrateReindexRequestDescriptor(reindex); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MigrateReindexResponse MigrateReindex(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex reindex, Action configureRequest) + { + var descriptor = new MigrateReindexRequestDescriptor(reindex); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MigrateReindexAsync(MigrateReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MigrateReindexAsync(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex reindex, CancellationToken cancellationToken = default) + { + var descriptor = new MigrateReindexRequestDescriptor(reindex); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Reindex legacy backing indices. + /// + /// + /// Reindex all legacy backing indices for a data stream. + /// This operation occurs in a persistent task. + /// The persistent task ID is returned immediately and the reindexing work is completed in that task. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MigrateReindexAsync(Elastic.Clients.Elasticsearch.IndexManagement.MigrateReindex reindex, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MigrateReindexRequestDescriptor(reindex); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// 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: @@ -12918,7 +13974,52 @@ public virtual Task MigrateToDataStreamAsync(Migrat /// 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. + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStreamRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// 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) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// 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. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStreamRequestDescriptor descriptor) @@ -12941,7 +14042,7 @@ public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStre /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.Elasticsearch.IndexName name) @@ -12965,7 +14066,7 @@ public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.Elasticsearch.IndexName name, Action configureRequest) @@ -12990,7 +14091,7 @@ public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.E /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataStreamAsync(MigrateToDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13012,7 +14113,7 @@ public virtual Task MigrateToDataStreamAsync(Migrat /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataStreamAsync(Elastic.Clients.Elasticsearch.IndexName name, CancellationToken cancellationToken = default) { @@ -13035,7 +14136,7 @@ public virtual Task MigrateToDataStreamAsync(Elasti /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MigrateToDataStreamAsync(Elastic.Clients.Elasticsearch.IndexName name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13050,7 +14151,7 @@ public virtual Task MigrateToDataStreamAsync(Elasti /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequest request) @@ -13064,7 +14165,7 @@ public virtual ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequest /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ModifyDataStreamAsync(ModifyDataStreamRequest request, CancellationToken cancellationToken = default) { @@ -13077,7 +14178,7 @@ public virtual Task ModifyDataStreamAsync(ModifyDataSt /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequestDescriptor descriptor) @@ -13091,7 +14192,7 @@ public virtual ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequest /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ModifyDataStreamResponse ModifyDataStream() @@ -13106,7 +14207,7 @@ public virtual ModifyDataStreamResponse ModifyDataStream() /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ModifyDataStreamResponse ModifyDataStream(Action configureRequest) @@ -13122,7 +14223,7 @@ public virtual ModifyDataStreamResponse ModifyDataStream(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ModifyDataStreamAsync(ModifyDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13135,7 +14236,7 @@ public virtual Task ModifyDataStreamAsync(ModifyDataSt /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ModifyDataStreamAsync(CancellationToken cancellationToken = default) { @@ -13149,7 +14250,7 @@ public virtual Task ModifyDataStreamAsync(Cancellation /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ModifyDataStreamAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13191,7 +14292,7 @@ public virtual Task ModifyDataStreamAsync(Action /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(OpenIndexRequest request) @@ -13232,7 +14333,7 @@ public virtual OpenIndexResponse Open(OpenIndexRequest request) /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(OpenIndexRequest request, CancellationToken cancellationToken = default) { @@ -13272,7 +14373,7 @@ public virtual Task OpenAsync(OpenIndexRequest request, Cance /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) @@ -13313,7 +14414,7 @@ public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) @@ -13355,7 +14456,7 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -13398,7 +14499,7 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open() @@ -13440,7 +14541,7 @@ public virtual OpenIndexResponse Open() /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Action> configureRequest) @@ -13483,7 +14584,7 @@ public virtual OpenIndexResponse Open(Action /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) @@ -13524,7 +14625,7 @@ public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) @@ -13566,7 +14667,7 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indi /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -13609,7 +14710,7 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indi /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13649,7 +14750,7 @@ public virtual Task OpenAsync(OpenIndexRequestDesc /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -13690,7 +14791,7 @@ public virtual Task OpenAsync(Elastic.Clients.Elas /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13732,7 +14833,7 @@ public virtual Task OpenAsync(Elastic.Clients.Elas /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(CancellationToken cancellationToken = default) { @@ -13773,7 +14874,7 @@ public virtual Task OpenAsync(CancellationToken ca /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13815,7 +14916,7 @@ public virtual Task OpenAsync(Action /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13855,7 +14956,7 @@ public virtual Task OpenAsync(OpenIndexRequestDescriptor desc /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -13896,7 +14997,7 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I /// /// Because opening or closing an index allocates its shards, the wait_for_active_shards setting on index creation applies to the _open and _close index actions as well. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13922,7 +15023,7 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequest request) @@ -13947,7 +15048,7 @@ public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequ /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PromoteDataStreamAsync(PromoteDataStreamRequest request, CancellationToken cancellationToken = default) { @@ -13971,7 +15072,7 @@ public virtual Task PromoteDataStreamAsync(PromoteDat /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequestDescriptor descriptor) @@ -13996,7 +15097,7 @@ public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequ /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PromoteDataStreamResponse PromoteDataStream(Elastic.Clients.Elasticsearch.IndexName name) @@ -14022,7 +15123,7 @@ public virtual PromoteDataStreamResponse PromoteDataStream(Elastic.Clients.Elast /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PromoteDataStreamResponse PromoteDataStream(Elastic.Clients.Elasticsearch.IndexName name, Action configureRequest) @@ -14049,7 +15150,7 @@ public virtual PromoteDataStreamResponse PromoteDataStream(Elastic.Clients.Elast /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PromoteDataStreamAsync(PromoteDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14073,7 +15174,7 @@ public virtual Task PromoteDataStreamAsync(PromoteDat /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PromoteDataStreamAsync(Elastic.Clients.Elasticsearch.IndexName name, CancellationToken cancellationToken = default) { @@ -14098,7 +15199,7 @@ public virtual Task PromoteDataStreamAsync(Elastic.Cl /// If this is missing, the data stream will not be able to roll over until a matching index template is created. /// This will affect the lifecycle management of the data stream and interfere with the data stream size and retention. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PromoteDataStreamAsync(Elastic.Clients.Elasticsearch.IndexName name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14113,7 +15214,7 @@ public virtual Task PromoteDataStreamAsync(Elastic.Cl /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(PutAliasRequest request) @@ -14127,7 +15228,7 @@ public virtual PutAliasResponse PutAlias(PutAliasRequest request) /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(PutAliasRequest request, CancellationToken cancellationToken = default) { @@ -14140,7 +15241,7 @@ public virtual Task PutAliasAsync(PutAliasRequest request, Can /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(PutAliasRequestDescriptor descriptor) @@ -14154,7 +15255,7 @@ public virtual PutAliasResponse PutAlias(PutAliasRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name) @@ -14169,7 +15270,7 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearc /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -14185,7 +15286,7 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearc /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Name name) @@ -14200,7 +15301,7 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearc /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -14216,7 +15317,7 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearc /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(PutAliasRequestDescriptor descriptor) @@ -14230,7 +15331,7 @@ public virtual PutAliasResponse PutAlias(PutAliasRequestDescriptor descriptor) /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name) @@ -14245,7 +15346,7 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices i /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -14261,7 +15362,7 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices i /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(PutAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14274,7 +15375,7 @@ public virtual Task PutAliasAsync(PutAliasRequestDe /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -14288,7 +15389,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14303,7 +15404,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -14317,7 +15418,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14332,7 +15433,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.E /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(PutAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14345,7 +15446,7 @@ public virtual Task PutAliasAsync(PutAliasRequestDescriptor de /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -14359,7 +15460,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14374,7 +15475,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest request) @@ -14388,7 +15489,7 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -14401,7 +15502,7 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequestDescriptor descriptor) @@ -14415,7 +15516,7 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) @@ -14430,7 +15531,7 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) @@ -14446,7 +15547,7 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14459,7 +15560,7 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -14473,7 +15574,7 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// Update data stream lifecycles. /// Update the data stream lifecycle of the specified data streams. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14521,7 +15622,7 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest request) @@ -14568,7 +15669,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -14614,7 +15715,7 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequestDescriptor descriptor) @@ -14661,7 +15762,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemp /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -14709,7 +15810,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clie /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -14758,7 +15859,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clie /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequestDescriptor descriptor) @@ -14805,7 +15906,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -14853,7 +15954,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elastic /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -14902,7 +16003,7 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elastic /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14948,7 +16049,7 @@ public virtual Task PutIndexTemplateAsync(P /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -14995,7 +16096,7 @@ public virtual Task PutIndexTemplateAsync(E /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15043,7 +16144,7 @@ public virtual Task PutIndexTemplateAsync(E /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15089,7 +16190,7 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -15136,7 +16237,7 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie /// If an earlier component contains a dynamic_templates block, then by default new dynamic_templates entries are appended onto the end. /// If an entry already exists with the same key, then it is overwritten by the new definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -15187,7 +16288,7 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequest request) @@ -15237,7 +16338,7 @@ public virtual PutMappingResponse PutMapping(PutMappingRequest request) /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequest request, CancellationToken cancellationToken = default) { @@ -15286,7 +16387,7 @@ public virtual Task PutMappingAsync(PutMappingRequest reques /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descriptor) @@ -15336,7 +16437,7 @@ public virtual PutMappingResponse PutMapping(PutMappingRequestDescrip /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices) @@ -15387,7 +16488,7 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elastics /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -15439,7 +16540,7 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elastics /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping() @@ -15490,7 +16591,7 @@ public virtual PutMappingResponse PutMapping() /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Action> configureRequest) @@ -15542,7 +16643,7 @@ public virtual PutMappingResponse PutMapping(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descriptor) @@ -15592,7 +16693,7 @@ public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descrip /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices) @@ -15643,7 +16744,7 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indic /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -15695,7 +16796,7 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indic /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15744,7 +16845,7 @@ public virtual Task PutMappingAsync(PutMappingReq /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -15794,7 +16895,7 @@ public virtual Task PutMappingAsync(Elastic.Clien /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15845,7 +16946,7 @@ public virtual Task PutMappingAsync(Elastic.Clien /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(CancellationToken cancellationToken = default) { @@ -15895,7 +16996,7 @@ public virtual Task PutMappingAsync(CancellationT /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15946,7 +17047,7 @@ public virtual Task PutMappingAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15995,7 +17096,7 @@ public virtual Task PutMappingAsync(PutMappingRequestDescrip /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -16045,7 +17146,7 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics /// Renaming a field would invalidate data already indexed under the old field name. /// Instead, add an alias field to create an alternate field name. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -16076,7 +17177,7 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequest request) @@ -16106,7 +17207,7 @@ public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequest /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(PutIndicesSettingsRequest request, CancellationToken cancellationToken = default) { @@ -16135,7 +17236,7 @@ public virtual Task PutSettingsAsync(PutIndicesSetti /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequestDescriptor descriptor) @@ -16165,7 +17266,7 @@ public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSetti /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices) @@ -16196,7 +17297,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -16228,7 +17329,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings) @@ -16259,7 +17360,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action> configureRequest) @@ -16291,7 +17392,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequestDescriptor descriptor) @@ -16321,7 +17422,7 @@ public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequestD /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices) @@ -16352,7 +17453,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -16384,7 +17485,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings) @@ -16415,7 +17516,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action configureRequest) @@ -16447,7 +17548,7 @@ public virtual PutIndicesSettingsResponse PutSettings(Elastic.Clients.Elasticsea /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(PutIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -16476,7 +17577,7 @@ public virtual Task PutSettingsAsync(PutI /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -16506,7 +17607,7 @@ public virtual Task PutSettingsAsync(Elas /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -16537,7 +17638,7 @@ public virtual Task PutSettingsAsync(Elas /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, CancellationToken cancellationToken = default) { @@ -16567,7 +17668,7 @@ public virtual Task PutSettingsAsync(Elas /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -16598,7 +17699,7 @@ public virtual Task PutSettingsAsync(Elas /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(PutIndicesSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -16627,7 +17728,7 @@ public virtual Task PutSettingsAsync(PutIndicesSetti /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -16657,7 +17758,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -16688,7 +17789,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, CancellationToken cancellationToken = default) { @@ -16718,7 +17819,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// However, it does not affect the data stream's backing indices or their existing data. /// To change the analyzer for existing backing indices, you must create a new data stream and reindex your data into it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSettingsAsync(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings settings, Action configureRequest, CancellationToken cancellationToken = default) { @@ -16758,7 +17859,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) @@ -16797,7 +17898,7 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(PutTemplateRequest request, CancellationToken cancellationToken = default) { @@ -16835,7 +17936,7 @@ public virtual Task PutTemplateAsync(PutTemplateRequest req /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor descriptor) @@ -16874,7 +17975,7 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDesc /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -16914,7 +18015,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -16955,7 +18056,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor descriptor) @@ -16994,7 +18095,7 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor desc /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -17034,7 +18135,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -17075,7 +18176,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17113,7 +18214,7 @@ public virtual Task PutTemplateAsync(PutTemplate /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -17152,7 +18253,7 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17192,7 +18293,7 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17230,7 +18331,7 @@ public virtual Task PutTemplateAsync(PutTemplateRequestDesc /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -17269,7 +18370,7 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// The order of the merging can be controlled using the order parameter, with lower order being applied first, and higher orders overriding them. /// NOTE: Multiple matching templates with the same order value will result in a non-deterministic merging order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -17335,7 +18436,7 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequest request) @@ -17400,7 +18501,7 @@ public virtual RecoveryResponse Recovery(RecoveryRequest request) /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(RecoveryRequest request, CancellationToken cancellationToken = default) { @@ -17464,7 +18565,7 @@ public virtual Task RecoveryAsync(RecoveryRequest request, Can /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) @@ -17529,7 +18630,7 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices) @@ -17595,7 +18696,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -17662,7 +18763,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery() @@ -17728,7 +18829,7 @@ public virtual RecoveryResponse Recovery() /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Action> configureRequest) @@ -17795,7 +18896,7 @@ public virtual RecoveryResponse Recovery(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) @@ -17860,7 +18961,7 @@ public virtual RecoveryResponse Recovery(RecoveryRequestDescriptor descriptor) /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices) @@ -17926,7 +19027,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -17993,7 +19094,7 @@ public virtual RecoveryResponse Recovery(Elastic.Clients.Elasticsearch.Indices? /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery() @@ -18059,7 +19160,7 @@ public virtual RecoveryResponse Recovery() /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(Action configureRequest) @@ -18126,7 +19227,7 @@ public virtual RecoveryResponse Recovery(Action confi /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -18190,7 +19291,7 @@ public virtual Task RecoveryAsync(RecoveryRequestDe /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -18255,7 +19356,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18321,7 +19422,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.E /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) { @@ -18386,7 +19487,7 @@ public virtual Task RecoveryAsync(CancellationToken /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18452,7 +19553,7 @@ public virtual Task RecoveryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(RecoveryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -18516,7 +19617,7 @@ public virtual Task RecoveryAsync(RecoveryRequestDescriptor de /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -18581,7 +19682,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -18647,7 +19748,7 @@ public virtual Task RecoveryAsync(Elastic.Clients.Elasticsearc /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(CancellationToken cancellationToken = default) { @@ -18712,7 +19813,7 @@ public virtual Task RecoveryAsync(CancellationToken cancellati /// It only reports the last recovery for each shard copy and does not report historical information about earlier recoveries, nor does it report information about the recoveries of shard copies that no longer exist. /// This means that if a shard copy completes a recovery and then Elasticsearch relocates it onto a different node then the information about the original recovery will not be shown in the recovery API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RecoveryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -18743,7 +19844,7 @@ public virtual Task RecoveryAsync(Actionrefresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequest request) @@ -18773,7 +19874,7 @@ public virtual RefreshResponse Refresh(RefreshRequest request) /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequest request, CancellationToken cancellationToken = default) { @@ -18802,7 +19903,7 @@ public virtual Task RefreshAsync(RefreshRequest request, Cancel /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) @@ -18832,7 +19933,7 @@ public virtual RefreshResponse Refresh(RefreshRequestDescriptorrefresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices) @@ -18863,7 +19964,7 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch. /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -18895,7 +19996,7 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch. /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh() @@ -18926,7 +20027,7 @@ public virtual RefreshResponse Refresh() /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Action> configureRequest) @@ -18958,7 +20059,7 @@ public virtual RefreshResponse Refresh(Actionrefresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) @@ -18988,7 +20089,7 @@ public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices) @@ -19019,7 +20120,7 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? in /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -19051,7 +20152,7 @@ public virtual RefreshResponse Refresh(Elastic.Clients.Elasticsearch.Indices? in /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh() @@ -19082,7 +20183,7 @@ public virtual RefreshResponse Refresh() /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(Action configureRequest) @@ -19114,7 +20215,7 @@ public virtual RefreshResponse Refresh(Action configur /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -19143,7 +20244,7 @@ public virtual Task RefreshAsync(RefreshRequestDescr /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -19173,7 +20274,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Ela /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -19204,7 +20305,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Ela /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { @@ -19234,7 +20335,7 @@ public virtual Task RefreshAsync(CancellationToken c /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -19265,7 +20366,7 @@ public virtual Task RefreshAsync(Actionrefresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -19294,7 +20395,7 @@ public virtual Task RefreshAsync(RefreshRequestDescriptor descr /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -19324,7 +20425,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch. /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -19355,7 +20456,7 @@ public virtual Task RefreshAsync(Elastic.Clients.Elasticsearch. /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { @@ -19385,7 +20486,7 @@ public virtual Task RefreshAsync(CancellationToken cancellation /// If your application workflow indexes documents and then runs a search to retrieve the indexed document, it's recommended to use the index API's refresh=wait_for query parameter option. /// This option ensures the indexing operation waits for a periodic refresh before running the search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -19415,7 +20516,7 @@ public virtual Task RefreshAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) @@ -19444,7 +20545,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchA /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequest request, CancellationToken cancellationToken = default) { @@ -19472,7 +20573,7 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequestDescriptor descriptor) @@ -19501,7 +20602,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Re /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices) @@ -19531,7 +20632,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -19562,7 +20663,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(El /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers() @@ -19592,7 +20693,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers() /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Action> configureRequest) @@ -19623,7 +20724,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Ac /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequestDescriptor descriptor) @@ -19652,7 +20753,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchA /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices) @@ -19682,7 +20783,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -19713,7 +20814,7 @@ public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(Elastic.Clien /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -19741,7 +20842,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -19770,7 +20871,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -19800,7 +20901,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(CancellationToken cancellationToken = default) { @@ -19829,7 +20930,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -19859,7 +20960,7 @@ public virtual Task ReloadSearchAnalyzersAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(ReloadSearchAnalyzersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -19887,7 +20988,7 @@ public virtual Task ReloadSearchAnalyzersAsync(Re /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -19916,7 +21017,7 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// Because reloading affects every node with an index shard, it is important to update the synonym file on every data node in the cluster--including nodes that don't contain a shard replica--before using this API. /// This ensures the synonym file is updated everywhere in the cluster in case shards are relocated in the future. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSearchAnalyzersAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -19929,8 +21030,10 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -19945,7 +21048,7 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -19973,9 +21076,15 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20001,7 +21110,18 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest request) @@ -20013,8 +21133,10 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest reque /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20029,7 +21151,7 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest reque /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20057,9 +21179,15 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest reque /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20085,7 +21213,18 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest reque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(ResolveClusterRequest request, CancellationToken cancellationToken = default) { @@ -20096,8 +21235,10 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20112,7 +21253,7 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20140,9 +21281,15 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20168,7 +21315,18 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescriptor descriptor) @@ -20180,8 +21338,10 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescri /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20196,7 +21356,7 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescri /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20224,9 +21384,15 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescri /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20252,10 +21418,21 @@ public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequestDescri /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names name) + public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names? name) { var descriptor = new ResolveClusterRequestDescriptor(name); descriptor.BeforeRequest(); @@ -20265,8 +21442,10 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20281,7 +21460,7 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20309,9 +21488,15 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20337,10 +21522,21 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) { var descriptor = new ResolveClusterRequestDescriptor(name); configureRequest?.Invoke(descriptor); @@ -20351,8 +21547,10 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20367,7 +21565,7 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20395,9 +21593,15 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20423,7 +21627,227 @@ public virtual ResolveClusterResponse ResolveCluster(Elastic.Clients.Elasticsear /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ResolveClusterResponse ResolveCluster() + { + var descriptor = new ResolveClusterRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Resolve the cluster. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// Note on backwards compatibility + /// + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ResolveClusterResponse ResolveCluster(Action configureRequest) + { + var descriptor = new ResolveClusterRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Resolve the cluster. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// Note on backwards compatibility + /// + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveClusterAsync(ResolveClusterRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -20434,8 +21858,10 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20450,7 +21876,7 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20478,9 +21904,15 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20506,9 +21938,20 @@ public virtual Task ResolveClusterAsync(ResolveClusterRe /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) + public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { var descriptor = new ResolveClusterRequestDescriptor(name); descriptor.BeforeRequest(); @@ -20518,8 +21961,10 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// /// /// Resolve the cluster. - /// Resolve the specified index expressions to return information about each cluster, including the local cluster, if included. - /// Multiple patterns and remote clusters are supported. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. /// /// /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. @@ -20534,7 +21979,7 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// /// /// - /// Whether the querying ("local") cluster is currently connected to each remote cluster in the index expression scope. + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. /// /// /// @@ -20562,9 +22007,15 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. /// + /// Note on backwards compatibility /// - /// Advantages of using this endpoint before a cross-cluster search + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. /// + /// Advantages of using this endpoint before a cross-cluster search /// /// You may want to exclude a cluster or index from a search when: /// @@ -20590,9 +22041,20 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ResolveClusterAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ResolveClusterRequestDescriptor(name); configureRequest?.Invoke(descriptor); @@ -20600,13 +22062,220 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } + /// + /// + /// Resolve the cluster. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// Note on backwards compatibility + /// + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ResolveClusterAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ResolveClusterRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Resolve the cluster. + /// + /// + /// Resolve the specified index expressions to return information about each cluster, including the local "querying" cluster, if included. + /// If no index expression is provided, the API will return information about all the remote clusters that are configured on the querying cluster. + /// + /// + /// This endpoint is useful before doing a cross-cluster search in order to determine which remote clusters should be included in a search. + /// + /// + /// You use the same index expression with this endpoint as you would for cross-cluster search. + /// Index and cluster exclusions are also supported with this endpoint. + /// + /// + /// For each cluster in the index expression, information is returned about: + /// + /// + /// + /// + /// Whether the querying ("local") cluster is currently connected to each remote cluster specified in the index expression. Note that this endpoint actively attempts to contact the remote clusters, unlike the remote/info endpoint. + /// + /// + /// + /// + /// Whether each remote cluster is configured with skip_unavailable as true or false. + /// + /// + /// + /// + /// Whether there are any indices, aliases, or data streams on that cluster that match the index expression. + /// + /// + /// + /// + /// Whether the search is likely to have errors returned when you do the cross-cluster search (including any authorization errors if you do not have permission to query the index). + /// + /// + /// + /// + /// Cluster version information, including the Elasticsearch server version. + /// + /// + /// + /// + /// For example, GET /_resolve/cluster/my-index-*,cluster*:my-index-* returns information about the local cluster and all remotely configured clusters that start with the alias cluster*. + /// Each cluster returns information about whether it has any indices, aliases or data streams that match my-index-*. + /// + /// Note on backwards compatibility + /// + /// The ability to query without an index expression was added in version 8.18, so when + /// querying remote clusters older than that, the local cluster will send the index + /// expression dummy* to those remote clusters. Thus, if an errors occur, you may see a reference + /// to that index expression even though you didn't request it. If it causes a problem, you can + /// instead include an index expression like *:* to bypass the issue. + /// + /// Advantages of using this endpoint before a cross-cluster search + /// + /// You may want to exclude a cluster or index from a search when: + /// + /// + /// + /// + /// A remote cluster is not currently connected and is configured with skip_unavailable=false. Running a cross-cluster search under those conditions will cause the entire search to fail. + /// + /// + /// + /// + /// A cluster has no matching indices, aliases or data streams for the index expression (or your user does not have permissions to search them). For example, suppose your index expression is logs*,remote1:logs* and the remote1 cluster has no indices, aliases or data streams that match logs*. In that case, that cluster will return no results from that cluster if you include it in a cross-cluster search. + /// + /// + /// + /// + /// The index expression (combined with any query parameters you specify) will likely cause an exception to be thrown when you do the search. In these cases, the "error" field in the _resolve/cluster response will be present. (This is also where security/permission errors will be shown.) + /// + /// + /// + /// + /// A remote cluster is an older version that does not support the feature you want to use in your search. + /// + /// + /// + /// Test availability of remote clusters + /// + /// The remote/info endpoint is commonly used to test whether the "local" cluster (the cluster being queried) is connected to its remote clusters, but it does not necessarily reflect whether the remote cluster is available or not. + /// The remote cluster may be available, while the local cluster is not currently connected to it. + /// + /// + /// You can use the _resolve/cluster API to attempt to reconnect to remote clusters. + /// For example with GET _resolve/cluster or GET _resolve/cluster/*:*. + /// The connected field in the response will indicate whether it was successful. + /// If a connection was (re-)established, this will also cause the remote/info endpoint to now indicate a connected status. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ResolveClusterAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ResolveClusterRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Resolve indices. /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) @@ -20621,7 +22290,7 @@ public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(ResolveIndexRequest request, CancellationToken cancellationToken = default) { @@ -20635,7 +22304,7 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequest /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequestDescriptor descriptor) @@ -20650,7 +22319,7 @@ public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequestDescriptor d /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.Names name) @@ -20666,7 +22335,7 @@ public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.N /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -20683,7 +22352,7 @@ public virtual ResolveIndexResponse ResolveIndex(Elastic.Clients.Elasticsearch.N /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(ResolveIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -20697,7 +22366,7 @@ public virtual Task ResolveIndexAsync(ResolveIndexRequestD /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -20712,7 +22381,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// Resolve the names and/or index patterns for indices, aliases, and data streams. /// Multiple patterns and remote clusters are supported. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResolveIndexAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -20775,7 +22444,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequest request) @@ -20837,7 +22506,7 @@ public virtual RolloverResponse Rollover(RolloverRequest request) /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -20898,7 +22567,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) @@ -20960,7 +22629,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptormy-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) @@ -21023,7 +22692,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action> configureRequest) @@ -21087,7 +22756,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) @@ -21150,7 +22819,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action> configureRequest) @@ -21214,7 +22883,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) @@ -21276,7 +22945,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex) @@ -21339,7 +23008,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action configureRequest) @@ -21403,7 +23072,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) @@ -21466,7 +23135,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest) @@ -21530,7 +23199,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -21591,7 +23260,7 @@ public virtual Task RolloverAsync(RolloverRequestDe /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, CancellationToken cancellationToken = default) { @@ -21653,7 +23322,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -21716,7 +23385,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -21778,7 +23447,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -21841,7 +23510,7 @@ public virtual Task RolloverAsync(Elastic.Clients.E /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -21902,7 +23571,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, CancellationToken cancellationToken = default) { @@ -21964,7 +23633,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Elastic.Clients.Elasticsearch.IndexName? newIndex, Action configureRequest, CancellationToken cancellationToken = default) { @@ -22027,7 +23696,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -22089,7 +23758,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// If you create the index on May 6, 2099, the index's name is my-index-2099.05.06-000001. /// If you roll over the alias on May 7, 2099, the new index's name is my-index-2099.05.07-000002. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -22105,7 +23774,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequest request) @@ -22120,7 +23789,7 @@ public virtual SegmentsResponse Segments(SegmentsRequest request) /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(SegmentsRequest request, CancellationToken cancellationToken = default) { @@ -22134,7 +23803,7 @@ public virtual Task SegmentsAsync(SegmentsRequest request, Can /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) @@ -22149,7 +23818,7 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices) @@ -22165,7 +23834,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -22182,7 +23851,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments() @@ -22198,7 +23867,7 @@ public virtual SegmentsResponse Segments() /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Action> configureRequest) @@ -22215,7 +23884,7 @@ public virtual SegmentsResponse Segments(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) @@ -22230,7 +23899,7 @@ public virtual SegmentsResponse Segments(SegmentsRequestDescriptor descriptor) /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices) @@ -22246,7 +23915,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -22263,7 +23932,7 @@ public virtual SegmentsResponse Segments(Elastic.Clients.Elasticsearch.Indices? /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments() @@ -22279,7 +23948,7 @@ public virtual SegmentsResponse Segments() /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(Action configureRequest) @@ -22296,7 +23965,7 @@ public virtual SegmentsResponse Segments(Action confi /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -22310,7 +23979,7 @@ public virtual Task SegmentsAsync(SegmentsRequestDe /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -22325,7 +23994,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -22341,7 +24010,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.E /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(CancellationToken cancellationToken = default) { @@ -22356,7 +24025,7 @@ public virtual Task SegmentsAsync(CancellationToken /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -22372,7 +24041,7 @@ public virtual Task SegmentsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(SegmentsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -22386,7 +24055,7 @@ public virtual Task SegmentsAsync(SegmentsRequestDescriptor de /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -22401,7 +24070,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -22417,7 +24086,7 @@ public virtual Task SegmentsAsync(Elastic.Clients.Elasticsearc /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(CancellationToken cancellationToken = default) { @@ -22432,7 +24101,7 @@ public virtual Task SegmentsAsync(CancellationToken cancellati /// Get low-level information about the Lucene segments in index shards. /// For data streams, the API returns information about the stream's backing indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SegmentsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -22476,7 +24145,7 @@ public virtual Task SegmentsAsync(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequest request) @@ -22519,7 +24188,7 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequest request) /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(ShardStoresRequest request, CancellationToken cancellationToken = default) { @@ -22561,7 +24230,7 @@ public virtual Task ShardStoresAsync(ShardStoresRequest req /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor descriptor) @@ -22604,7 +24273,7 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDesc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices) @@ -22648,7 +24317,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -22693,7 +24362,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores() @@ -22737,7 +24406,7 @@ public virtual ShardStoresResponse ShardStores() /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Action> configureRequest) @@ -22782,7 +24451,7 @@ public virtual ShardStoresResponse ShardStores(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor descriptor) @@ -22825,7 +24494,7 @@ public virtual ShardStoresResponse ShardStores(ShardStoresRequestDescriptor desc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices) @@ -22869,7 +24538,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Ind /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -22914,7 +24583,7 @@ public virtual ShardStoresResponse ShardStores(Elastic.Clients.Elasticsearch.Ind /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores() @@ -22958,7 +24627,7 @@ public virtual ShardStoresResponse ShardStores() /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(Action configureRequest) @@ -23003,7 +24672,7 @@ public virtual ShardStoresResponse ShardStores(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(ShardStoresRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -23045,7 +24714,7 @@ public virtual Task ShardStoresAsync(ShardStores /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -23088,7 +24757,7 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23132,7 +24801,7 @@ public virtual Task ShardStoresAsync(Elastic.Cli /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(CancellationToken cancellationToken = default) { @@ -23175,7 +24844,7 @@ public virtual Task ShardStoresAsync(Cancellatio /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23219,7 +24888,7 @@ public virtual Task ShardStoresAsync(Action /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(ShardStoresRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -23261,7 +24930,7 @@ public virtual Task ShardStoresAsync(ShardStoresRequestDesc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -23304,7 +24973,7 @@ public virtual Task ShardStoresAsync(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -23348,7 +25017,7 @@ public virtual Task ShardStoresAsync(Elastic.Clients.Elasti /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(CancellationToken cancellationToken = default) { @@ -23391,7 +25060,7 @@ public virtual Task ShardStoresAsync(CancellationToken canc /// /// By default, the API returns store information only for primary shards that are unassigned or have one or more unassigned replica shards. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShardStoresAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -23489,7 +25158,7 @@ public virtual Task ShardStoresAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) @@ -23586,7 +25255,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequest request, CancellationToken cancellationToken = default) { @@ -23682,7 +25351,7 @@ public virtual Task ShrinkAsync(ShrinkIndexRequest request, /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) @@ -23779,7 +25448,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescripto /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -23877,7 +25546,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) @@ -23976,7 +25645,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) @@ -24073,7 +25742,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descripto /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -24171,7 +25840,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) @@ -24270,7 +25939,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -24366,7 +26035,7 @@ public virtual Task ShrinkAsync(ShrinkIndexReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -24463,7 +26132,7 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -24561,7 +26230,7 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -24657,7 +26326,7 @@ public virtual Task ShrinkAsync(ShrinkIndexRequestDescripto /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -24754,7 +26423,7 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -24769,7 +26438,7 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndexTemplateRequest request) @@ -24783,7 +26452,7 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndex /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequest request, CancellationToken cancellationToken = default) { @@ -24796,7 +26465,7 @@ public virtual Task SimulateIndexTemplateAsync(Si /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndexTemplateRequestDescriptor descriptor) @@ -24810,7 +26479,7 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndex /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clients.Elasticsearch.Name name) @@ -24825,7 +26494,7 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clien /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -24841,7 +26510,7 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clien /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -24854,7 +26523,7 @@ public virtual Task SimulateIndexTemplateAsync(Si /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -24868,7 +26537,7 @@ public virtual Task SimulateIndexTemplateAsync(El /// Simulate an index. /// Get the index configuration that would be applied to the specified index from an existing index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -24883,7 +26552,7 @@ public virtual Task SimulateIndexTemplateAsync(El /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest request) @@ -24897,7 +26566,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(SimulateTemplateRequest request, CancellationToken cancellationToken = default) { @@ -24910,7 +26579,7 @@ public virtual Task SimulateTemplateAsync(SimulateTemp /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequestDescriptor descriptor) @@ -24924,7 +26593,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemp /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -24939,7 +26608,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clie /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name, Action> configureRequest) @@ -24955,7 +26624,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clie /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate() @@ -24970,7 +26639,7 @@ public virtual SimulateTemplateResponse SimulateTemplate() /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Action> configureRequest) @@ -24986,7 +26655,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequestDescriptor descriptor) @@ -25000,7 +26669,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name) @@ -25015,7 +26684,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elastic /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -25031,7 +26700,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(Elastic.Clients.Elastic /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate() @@ -25046,7 +26715,7 @@ public virtual SimulateTemplateResponse SimulateTemplate() /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(Action configureRequest) @@ -25062,7 +26731,7 @@ public virtual SimulateTemplateResponse SimulateTemplate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25075,7 +26744,7 @@ public virtual Task SimulateTemplateAsync(S /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -25089,7 +26758,7 @@ public virtual Task SimulateTemplateAsync(E /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -25104,7 +26773,7 @@ public virtual Task SimulateTemplateAsync(E /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) { @@ -25118,7 +26787,7 @@ public virtual Task SimulateTemplateAsync(C /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -25133,7 +26802,7 @@ public virtual Task SimulateTemplateAsync(A /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25146,7 +26815,7 @@ public virtual Task SimulateTemplateAsync(SimulateTemp /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -25160,7 +26829,7 @@ public virtual Task SimulateTemplateAsync(Elastic.Clie /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -25175,7 +26844,7 @@ public virtual Task SimulateTemplateAsync(Elastic.Clie /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) { @@ -25189,7 +26858,7 @@ public virtual Task SimulateTemplateAsync(Cancellation /// Simulate an index template. /// Get the index configuration that would be applied by a particular index template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -25286,7 +26955,7 @@ public virtual Task SimulateTemplateAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequest request) @@ -25382,7 +27051,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequest request, CancellationToken cancellationToken = default) { @@ -25477,7 +27146,7 @@ public virtual Task SplitAsync(SplitIndexRequest request, Ca /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) @@ -25573,7 +27242,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -25670,7 +27339,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) @@ -25768,7 +27437,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) @@ -25864,7 +27533,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) @@ -25961,7 +27630,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) @@ -26059,7 +27728,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -26154,7 +27823,7 @@ public virtual Task SplitAsync(SplitIndexRequestD /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -26250,7 +27919,7 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -26347,7 +28016,7 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -26442,7 +28111,7 @@ public virtual Task SplitAsync(SplitIndexRequestDescriptor d /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -26538,7 +28207,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -26565,7 +28234,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) @@ -26591,7 +28260,7 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(IndicesStatsRequest request, CancellationToken cancellationToken = default) { @@ -26616,7 +28285,7 @@ public virtual Task StatsAsync(IndicesStatsRequest request /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descriptor) @@ -26642,7 +28311,7 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescript /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -26669,7 +28338,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action> configureRequest) @@ -26697,7 +28366,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats() @@ -26724,7 +28393,7 @@ public virtual IndicesStatsResponse Stats() /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Action> configureRequest) @@ -26752,7 +28421,7 @@ public virtual IndicesStatsResponse Stats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descriptor) @@ -26778,7 +28447,7 @@ public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descript /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -26805,7 +28474,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -26833,7 +28502,7 @@ public virtual IndicesStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats() @@ -26860,7 +28529,7 @@ public virtual IndicesStatsResponse Stats() /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(Action configureRequest) @@ -26888,7 +28557,7 @@ public virtual IndicesStatsResponse Stats(Action /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -26913,7 +28582,7 @@ public virtual Task StatsAsync(IndicesStatsRequ /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -26939,7 +28608,7 @@ public virtual Task StatsAsync(Elastic.Clients. /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -26966,7 +28635,7 @@ public virtual Task StatsAsync(Elastic.Clients. /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -26992,7 +28661,7 @@ public virtual Task StatsAsync(CancellationToke /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -27019,7 +28688,7 @@ public virtual Task StatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -27044,7 +28713,7 @@ public virtual Task StatsAsync(IndicesStatsRequestDescript /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -27070,7 +28739,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -27097,7 +28766,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsear /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -27123,7 +28792,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// NOTE: When moving to another node, the shard-level statistics for a shard are cleared. /// Although the shard is no longer part of the node, that node retains any node-level statistics to which the shard contributed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -27138,7 +28807,7 @@ public virtual Task StatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequest request) @@ -27152,7 +28821,7 @@ public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequest request) /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(UpdateAliasesRequest request, CancellationToken cancellationToken = default) { @@ -27165,7 +28834,7 @@ public virtual Task UpdateAliasesAsync(UpdateAliasesReque /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequestDescriptor descriptor) @@ -27179,7 +28848,7 @@ public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesReque /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases() @@ -27194,7 +28863,7 @@ public virtual UpdateAliasesResponse UpdateAliases() /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases(Action> configureRequest) @@ -27210,7 +28879,7 @@ public virtual UpdateAliasesResponse UpdateAliases(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequestDescriptor descriptor) @@ -27224,7 +28893,7 @@ public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequestDescripto /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases() @@ -27239,7 +28908,7 @@ public virtual UpdateAliasesResponse UpdateAliases() /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases(Action configureRequest) @@ -27255,7 +28924,7 @@ public virtual UpdateAliasesResponse UpdateAliases(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(UpdateAliasesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -27268,7 +28937,7 @@ public virtual Task UpdateAliasesAsync(UpdateA /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(CancellationToken cancellationToken = default) { @@ -27282,7 +28951,7 @@ public virtual Task UpdateAliasesAsync(Cancell /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -27297,7 +28966,7 @@ public virtual Task UpdateAliasesAsync(Action< /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(UpdateAliasesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -27310,7 +28979,7 @@ public virtual Task UpdateAliasesAsync(UpdateAliasesReque /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(CancellationToken cancellationToken = default) { @@ -27324,7 +28993,7 @@ public virtual Task UpdateAliasesAsync(CancellationToken /// Create or update an alias. /// Adds a data stream or index to an alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAliasesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -27339,7 +29008,7 @@ public virtual Task UpdateAliasesAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequest request) @@ -27353,7 +29022,7 @@ public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequest request) /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(ValidateQueryRequest request, CancellationToken cancellationToken = default) { @@ -27366,7 +29035,7 @@ public virtual Task ValidateQueryAsync(ValidateQueryReque /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequestDescriptor descriptor) @@ -27380,7 +29049,7 @@ public virtual ValidateQueryResponse ValidateQuery(ValidateQueryReque /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.Elasticsearch.Indices? indices) @@ -27395,7 +29064,7 @@ public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.El /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -27411,7 +29080,7 @@ public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.El /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery() @@ -27426,7 +29095,7 @@ public virtual ValidateQueryResponse ValidateQuery() /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(Action> configureRequest) @@ -27442,7 +29111,7 @@ public virtual ValidateQueryResponse ValidateQuery(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequestDescriptor descriptor) @@ -27456,7 +29125,7 @@ public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequestDescripto /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.Elasticsearch.Indices? indices) @@ -27471,7 +29140,7 @@ public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.Elasticsearch /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -27487,7 +29156,7 @@ public virtual ValidateQueryResponse ValidateQuery(Elastic.Clients.Elasticsearch /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery() @@ -27502,7 +29171,7 @@ public virtual ValidateQueryResponse ValidateQuery() /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(Action configureRequest) @@ -27518,7 +29187,7 @@ public virtual ValidateQueryResponse ValidateQuery(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(ValidateQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -27531,7 +29200,7 @@ public virtual Task ValidateQueryAsync(Validat /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -27545,7 +29214,7 @@ public virtual Task ValidateQueryAsync(Elastic /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -27560,7 +29229,7 @@ public virtual Task ValidateQueryAsync(Elastic /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(CancellationToken cancellationToken = default) { @@ -27574,7 +29243,7 @@ public virtual Task ValidateQueryAsync(Cancell /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -27589,7 +29258,7 @@ public virtual Task ValidateQueryAsync(Action< /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(ValidateQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -27602,7 +29271,7 @@ public virtual Task ValidateQueryAsync(ValidateQueryReque /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -27616,7 +29285,7 @@ public virtual Task ValidateQueryAsync(Elastic.Clients.El /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -27631,7 +29300,7 @@ public virtual Task ValidateQueryAsync(Elastic.Clients.El /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateQueryAsync(CancellationToken cancellationToken = default) { @@ -27645,7 +29314,7 @@ public virtual Task ValidateQueryAsync(CancellationToken /// Validate a query. /// Validates a query without running it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index 0da706e74f5..8ac2867117f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -39,11 +39,223 @@ internal InferenceNamespacedClient(ElasticsearchClient client) : base(client) { } + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(ChatCompletionUnifiedRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ChatCompletionUnifiedAsync(ChatCompletionUnifiedRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(ChatCompletionUnifiedRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new ChatCompletionUnifiedRequestDescriptor(chatCompletionRequest, inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new ChatCompletionUnifiedRequestDescriptor(chatCompletionRequest, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ChatCompletionUnifiedAsync(ChatCompletionUnifiedRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new ChatCompletionUnifiedRequestDescriptor(chatCompletionRequest, inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform chat completion inference + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ChatCompletionUnifiedRequestDescriptor(chatCompletionRequest, inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CompletionResponse Completion(CompletionRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CompletionAsync(CompletionRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CompletionResponse Completion(CompletionRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CompletionResponse Completion(Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new CompletionRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual CompletionResponse Completion(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new CompletionRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CompletionAsync(CompletionRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new CompletionRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform completion inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CompletionRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteInferenceResponse Delete(DeleteInferenceRequest request) @@ -56,7 +268,7 @@ public virtual DeleteInferenceResponse Delete(DeleteInferenceRequest request) /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteInferenceRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +280,7 @@ public virtual Task DeleteAsync(DeleteInferenceRequest /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteInferenceResponse Delete(DeleteInferenceRequestDescriptor descriptor) @@ -81,7 +293,7 @@ public virtual DeleteInferenceResponse Delete(DeleteInferenceRequestDescriptor d /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) @@ -95,7 +307,7 @@ public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Infe /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -110,7 +322,7 @@ public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Infe /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Id inferenceId) @@ -124,7 +336,7 @@ public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Id i /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -139,7 +351,7 @@ public virtual DeleteInferenceResponse Delete(Elastic.Clients.Elasticsearch.Id i /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -151,7 +363,7 @@ public virtual Task DeleteAsync(DeleteInferenceRequestD /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -164,7 +376,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastic /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -178,7 +390,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastic /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -191,7 +403,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastic /// /// Delete an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -205,7 +417,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastic /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInferenceResponse Get(GetInferenceRequest request) @@ -218,7 +430,7 @@ public virtual GetInferenceResponse Get(GetInferenceRequest request) /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetInferenceRequest request, CancellationToken cancellationToken = default) { @@ -230,7 +442,7 @@ public virtual Task GetAsync(GetInferenceRequest request, /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInferenceResponse Get(GetInferenceRequestDescriptor descriptor) @@ -243,7 +455,7 @@ public virtual GetInferenceResponse Get(GetInferenceRequestDescriptor descriptor /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInferenceResponse Get(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id? inferenceId) @@ -257,7 +469,7 @@ public virtual GetInferenceResponse Get(Elastic.Clients.Elasticsearch.Inference. /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInferenceResponse Get(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id? inferenceId, Action configureRequest) @@ -272,7 +484,7 @@ public virtual GetInferenceResponse Get(Elastic.Clients.Elasticsearch.Inference. /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInferenceResponse Get() @@ -286,7 +498,7 @@ public virtual GetInferenceResponse Get() /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInferenceResponse Get(Action configureRequest) @@ -301,7 +513,7 @@ public virtual GetInferenceResponse Get(Action co /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -313,7 +525,7 @@ public virtual Task GetAsync(GetInferenceRequestDescriptor /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id? inferenceId, CancellationToken cancellationToken = default) { @@ -326,7 +538,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id? inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -340,7 +552,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(CancellationToken cancellationToken = default) { @@ -353,7 +565,7 @@ public virtual Task GetAsync(CancellationToken cancellatio /// /// Get an inference endpoint /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -365,9 +577,21 @@ public virtual Task GetAsync(Action /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(InferenceRequest request) @@ -378,9 +602,21 @@ public virtual InferenceResponse Inference(InferenceRequest request) /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferenceAsync(InferenceRequest request, CancellationToken cancellationToken = default) { @@ -390,9 +626,21 @@ public virtual Task InferenceAsync(InferenceRequest request, /// /// - /// Perform inference on the service + /// Perform inference on the service. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(InferenceRequestDescriptor descriptor) @@ -403,9 +651,21 @@ public virtual InferenceResponse Inference(InferenceRequestDescriptor descriptor /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) @@ -417,9 +677,21 @@ public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Inferen /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -432,9 +704,21 @@ public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Inferen /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Id inferenceId) @@ -446,9 +730,21 @@ public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Id infe /// /// - /// Perform inference on the service + /// Perform inference on the service. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -461,9 +757,21 @@ public virtual InferenceResponse Inference(Elastic.Clients.Elasticsearch.Id infe /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferenceAsync(InferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -473,9 +781,21 @@ public virtual Task InferenceAsync(InferenceRequestDescriptor /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -486,9 +806,21 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -500,9 +832,21 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// /// - /// Perform inference on the service + /// Perform inference on the service. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. + /// + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -513,9 +857,21 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// /// - /// Perform inference on the service + /// Perform inference on the service. + /// + /// + /// This API enables you to use machine learning models to perform specific tasks on data that you provide as an input. + /// It returns a response with the results of the tasks. + /// The inference endpoint you use can perform one specific task that has been defined when the endpoint was created with the create inference API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// For details about using this API with a service, such as Amazon Bedrock, Anthropic, or HuggingFace, refer to the service-specific documentation. + /// + /// + /// info + /// The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferenceAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -539,7 +895,7 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutInferenceResponse Put(PutInferenceRequest request) @@ -562,7 +918,7 @@ public virtual PutInferenceResponse Put(PutInferenceRequest request) /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(PutInferenceRequest request, CancellationToken cancellationToken = default) { @@ -584,7 +940,7 @@ public virtual Task PutAsync(PutInferenceRequest request, /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutInferenceResponse Put(PutInferenceRequestDescriptor descriptor) @@ -607,7 +963,7 @@ public virtual PutInferenceResponse Put(PutInferenceRequestDescriptor descriptor /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) @@ -631,7 +987,7 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -656,7 +1012,7 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId) @@ -680,7 +1036,7 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -705,7 +1061,7 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(PutInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -727,7 +1083,7 @@ public virtual Task PutAsync(PutInferenceRequestDescriptor /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -750,7 +1106,7 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -774,7 +1130,7 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -797,7 +1153,7 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -809,109 +1165,3756 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// - /// Perform streaming inference. - /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. - /// This API works only with the completion task type. + /// Create an AlibabaCloud AI Search inference endpoint. /// /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// /// - /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StreamInferenceResponse StreamInference(StreamInferenceRequest request) + public virtual PutAlibabacloudResponse PutAlibabacloud(PutAlibabacloudRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// /// - /// Perform streaming inference. - /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. - /// This API works only with the completion task type. + /// Create an AlibabaCloud AI Search inference endpoint. /// /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// /// - /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StreamInferenceAsync(StreamInferenceRequest request, CancellationToken cancellationToken = default) + public virtual Task PutAlibabacloudAsync(PutAlibabacloudRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// /// - /// Perform streaming inference. - /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. - /// This API works only with the completion task type. + /// Create an AlibabaCloud AI Search inference endpoint. /// /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// /// - /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StreamInferenceResponse StreamInference(StreamInferenceRequestDescriptor descriptor) + public virtual PutAlibabacloudResponse PutAlibabacloud(PutAlibabacloudRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Perform streaming inference. - /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. - /// This API works only with the completion task type. + /// Create an AlibabaCloud AI Search inference endpoint. /// /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// /// - /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) + public virtual PutAlibabacloudResponse PutAlibabacloud(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId) { - var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + var descriptor = new PutAlibabacloudRequestDescriptor(taskType, alibabacloudInferenceId); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// /// - /// Perform streaming inference. - /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. - /// This API works only with the completion task type. + /// Create an AlibabaCloud AI Search inference endpoint. /// /// - /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// /// - /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAlibabacloudResponse PutAlibabacloud(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId, Action configureRequest) + { + var descriptor = new PutAlibabacloudRequestDescriptor(taskType, alibabacloudInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an AlibabaCloud AI Search inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAlibabacloudAsync(PutAlibabacloudRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an AlibabaCloud AI Search inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAlibabacloudAsync(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutAlibabacloudRequestDescriptor(taskType, alibabacloudInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an AlibabaCloud AI Search inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAlibabacloudAsync(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAlibabacloudRequestDescriptor(taskType, alibabacloudInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAmazonbedrockResponse PutAmazonbedrock(PutAmazonbedrockRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAmazonbedrockAsync(PutAmazonbedrockRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAmazonbedrockResponse PutAmazonbedrock(PutAmazonbedrockRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAmazonbedrockResponse PutAmazonbedrock(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId) + { + var descriptor = new PutAmazonbedrockRequestDescriptor(taskType, amazonbedrockInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAmazonbedrockResponse PutAmazonbedrock(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId, Action configureRequest) + { + var descriptor = new PutAmazonbedrockRequestDescriptor(taskType, amazonbedrockInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAmazonbedrockAsync(PutAmazonbedrockRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAmazonbedrockAsync(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutAmazonbedrockRequestDescriptor(taskType, amazonbedrockInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Amazon Bedrock inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the amazonbedrock service. + /// + /// + /// info + /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAmazonbedrockAsync(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAmazonbedrockRequestDescriptor(taskType, amazonbedrockInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAnthropicResponse PutAnthropic(PutAnthropicRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAnthropicAsync(PutAnthropicRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAnthropicResponse PutAnthropic(PutAnthropicRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAnthropicResponse PutAnthropic(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId) + { + var descriptor = new PutAnthropicRequestDescriptor(taskType, anthropicInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAnthropicResponse PutAnthropic(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId, Action configureRequest) + { + var descriptor = new PutAnthropicRequestDescriptor(taskType, anthropicInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAnthropicAsync(PutAnthropicRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAnthropicAsync(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutAnthropicRequestDescriptor(taskType, anthropicInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Anthropic inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the anthropic service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAnthropicAsync(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAnthropicRequestDescriptor(taskType, anthropicInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureaistudioResponse PutAzureaistudio(PutAzureaistudioRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureaistudioAsync(PutAzureaistudioRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureaistudioResponse PutAzureaistudio(PutAzureaistudioRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureaistudioResponse PutAzureaistudio(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId) + { + var descriptor = new PutAzureaistudioRequestDescriptor(taskType, azureaistudioInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureaistudioResponse PutAzureaistudio(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId, Action configureRequest) + { + var descriptor = new PutAzureaistudioRequestDescriptor(taskType, azureaistudioInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureaistudioAsync(PutAzureaistudioRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureaistudioAsync(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutAzureaistudioRequestDescriptor(taskType, azureaistudioInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Azure AI studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureaistudioAsync(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAzureaistudioRequestDescriptor(taskType, azureaistudioInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureopenaiResponse PutAzureopenai(PutAzureopenaiRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureopenaiAsync(PutAzureopenaiRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureopenaiResponse PutAzureopenai(PutAzureopenaiRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureopenaiResponse PutAzureopenai(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId) + { + var descriptor = new PutAzureopenaiRequestDescriptor(taskType, azureopenaiInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutAzureopenaiResponse PutAzureopenai(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId, Action configureRequest) + { + var descriptor = new PutAzureopenaiRequestDescriptor(taskType, azureopenaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureopenaiAsync(PutAzureopenaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureopenaiAsync(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutAzureopenaiRequestDescriptor(taskType, azureopenaiInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Azure OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the azureopenai service. + /// + /// + /// The list of chat completion models that you can choose from in your Azure OpenAI deployment include: + /// + /// + /// + /// + /// GPT-4 and GPT-4 Turbo models + /// + /// + /// + /// + /// GPT-3.5 + /// + /// + /// + /// + /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAzureopenaiAsync(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutAzureopenaiRequestDescriptor(taskType, azureopenaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutCohereResponse PutCohere(PutCohereRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutCohereAsync(PutCohereRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutCohereResponse PutCohere(PutCohereRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutCohereResponse PutCohere(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId) + { + var descriptor = new PutCohereRequestDescriptor(taskType, cohereInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutCohereResponse PutCohere(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId, Action configureRequest) + { + var descriptor = new PutCohereRequestDescriptor(taskType, cohereInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutCohereAsync(PutCohereRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutCohereAsync(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutCohereRequestDescriptor(taskType, cohereInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Cohere inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the cohere service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutCohereAsync(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutCohereRequestDescriptor(taskType, cohereInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElasticsearchResponse PutElasticsearch(PutElasticsearchRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElasticsearchAsync(PutElasticsearchRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElasticsearchResponse PutElasticsearch(PutElasticsearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElasticsearchResponse PutElasticsearch(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType, Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId) + { + var descriptor = new PutElasticsearchRequestDescriptor(taskType, elasticsearchInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElasticsearchResponse PutElasticsearch(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType, Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId, Action configureRequest) + { + var descriptor = new PutElasticsearchRequestDescriptor(taskType, elasticsearchInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElasticsearchAsync(PutElasticsearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElasticsearchAsync(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType, Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutElasticsearchRequestDescriptor(taskType, elasticsearchInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Elasticsearch inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elasticsearch service. + /// + /// + /// info + /// Your Elasticsearch deployment contains preconfigured ELSER and E5 inference endpoints, you only need to create the enpoints using the API if you want to customize the settings. + /// + /// + /// If you use the ELSER or the E5 model through the elasticsearch service, the API request will automatically download and deploy the model if it isn't downloaded yet. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElasticsearchAsync(Elastic.Clients.Elasticsearch.Inference.ElasticsearchTaskType taskType, Elastic.Clients.Elasticsearch.Id elasticsearchInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutElasticsearchRequestDescriptor(taskType, elasticsearchInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElserResponse PutElser(PutElserRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElserAsync(PutElserRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElserResponse PutElser(PutElserRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElserResponse PutElser(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType, Elastic.Clients.Elasticsearch.Id elserInferenceId) + { + var descriptor = new PutElserRequestDescriptor(taskType, elserInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutElserResponse PutElser(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType, Elastic.Clients.Elasticsearch.Id elserInferenceId, Action configureRequest) + { + var descriptor = new PutElserRequestDescriptor(taskType, elserInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElserAsync(PutElserRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElserAsync(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType, Elastic.Clients.Elasticsearch.Id elserInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutElserRequestDescriptor(taskType, elserInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an ELSER inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the elser service. + /// You can also deploy ELSER by using the Elasticsearch inference integration. + /// + /// + /// info + /// Your Elasticsearch deployment contains a preconfigured ELSER inference endpoint, you only need to create the enpoint using the API if you want to customize the settings. + /// + /// + /// The API request will automatically download and deploy the ELSER model if it isn't already downloaded. + /// + /// + /// info + /// You might see a 502 bad gateway error in the response when using the Kibana Console. This error usually just reflects a timeout, while the model downloads in the background. You can check the download progress in the Machine Learning UI. If using the Python client, you can set the timeout parameter to a higher value. + /// + /// + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutElserAsync(Elastic.Clients.Elasticsearch.Inference.ElserTaskType taskType, Elastic.Clients.Elasticsearch.Id elserInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutElserRequestDescriptor(taskType, elserInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGoogleaistudioResponse PutGoogleaistudio(PutGoogleaistudioRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGoogleaistudioAsync(PutGoogleaistudioRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGoogleaistudioResponse PutGoogleaistudio(PutGoogleaistudioRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGoogleaistudioResponse PutGoogleaistudio(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId) + { + var descriptor = new PutGoogleaistudioRequestDescriptor(taskType, googleaistudioInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGoogleaistudioResponse PutGoogleaistudio(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId, Action configureRequest) + { + var descriptor = new PutGoogleaistudioRequestDescriptor(taskType, googleaistudioInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGoogleaistudioAsync(PutGoogleaistudioRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGoogleaistudioAsync(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutGoogleaistudioRequestDescriptor(taskType, googleaistudioInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an Google AI Studio inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googleaistudio service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGoogleaistudioAsync(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutGoogleaistudioRequestDescriptor(taskType, googleaistudioInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGooglevertexaiResponse PutGooglevertexai(PutGooglevertexaiRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGooglevertexaiAsync(PutGooglevertexaiRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGooglevertexaiResponse PutGooglevertexai(PutGooglevertexaiRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGooglevertexaiResponse PutGooglevertexai(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId) + { + var descriptor = new PutGooglevertexaiRequestDescriptor(taskType, googlevertexaiInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutGooglevertexaiResponse PutGooglevertexai(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId, Action configureRequest) + { + var descriptor = new PutGooglevertexaiRequestDescriptor(taskType, googlevertexaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGooglevertexaiAsync(PutGooglevertexaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGooglevertexaiAsync(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutGooglevertexaiRequestDescriptor(taskType, googlevertexaiInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Google Vertex AI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the googlevertexai service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutGooglevertexaiAsync(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutGooglevertexaiRequestDescriptor(taskType, googlevertexaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutHuggingFaceResponse PutHuggingFace(PutHuggingFaceRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutHuggingFaceAsync(PutHuggingFaceRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutHuggingFaceResponse PutHuggingFace(PutHuggingFaceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutHuggingFaceResponse PutHuggingFace(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId) + { + var descriptor = new PutHuggingFaceRequestDescriptor(taskType, huggingfaceInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutHuggingFaceResponse PutHuggingFace(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId, Action configureRequest) + { + var descriptor = new PutHuggingFaceRequestDescriptor(taskType, huggingfaceInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutHuggingFaceAsync(PutHuggingFaceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutHuggingFaceAsync(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutHuggingFaceRequestDescriptor(taskType, huggingfaceInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Hugging Face inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the hugging_face service. + /// + /// + /// You must first create an inference endpoint on the Hugging Face endpoint page to get an endpoint URL. + /// Select the model you want to use on the new endpoint creation page (for example intfloat/e5-small-v2), then select the sentence embeddings task under the advanced configuration section. + /// Create the endpoint and copy the URL after the endpoint initialization has been finished. + /// + /// + /// The following models are recommended for the Hugging Face service: + /// + /// + /// + /// + /// all-MiniLM-L6-v2 + /// + /// + /// + /// + /// all-MiniLM-L12-v2 + /// + /// + /// + /// + /// all-mpnet-base-v2 + /// + /// + /// + /// + /// e5-base-v2 + /// + /// + /// + /// + /// e5-small-v2 + /// + /// + /// + /// + /// multilingual-e5-base + /// + /// + /// + /// + /// multilingual-e5-small + /// + /// + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutHuggingFaceAsync(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutHuggingFaceRequestDescriptor(taskType, huggingfaceInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutJinaaiResponse PutJinaai(PutJinaaiRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutJinaaiAsync(PutJinaaiRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutJinaaiResponse PutJinaai(PutJinaaiRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutJinaaiResponse PutJinaai(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId) + { + var descriptor = new PutJinaaiRequestDescriptor(taskType, jinaaiInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutJinaaiResponse PutJinaai(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId, Action configureRequest) + { + var descriptor = new PutJinaaiRequestDescriptor(taskType, jinaaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutJinaaiAsync(PutJinaaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutJinaaiAsync(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutJinaaiRequestDescriptor(taskType, jinaaiInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an JinaAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the jinaai service. + /// + /// + /// To review the available rerank models, refer to https://jina.ai/reranker. + /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutJinaaiAsync(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutJinaaiRequestDescriptor(taskType, jinaaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutMistralResponse PutMistral(PutMistralRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMistralAsync(PutMistralRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutMistralResponse PutMistral(PutMistralRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutMistralResponse PutMistral(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId) + { + var descriptor = new PutMistralRequestDescriptor(taskType, mistralInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutMistralResponse PutMistral(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId, Action configureRequest) + { + var descriptor = new PutMistralRequestDescriptor(taskType, mistralInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMistralAsync(PutMistralRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMistralAsync(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutMistralRequestDescriptor(taskType, mistralInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Mistral inference endpoint. + /// + /// + /// Creates an inference endpoint to perform an inference task with the mistral service. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMistralAsync(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutMistralRequestDescriptor(taskType, mistralInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutOpenaiResponse PutOpenai(PutOpenaiRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutOpenaiAsync(PutOpenaiRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutOpenaiResponse PutOpenai(PutOpenaiRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutOpenaiResponse PutOpenai(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId) + { + var descriptor = new PutOpenaiRequestDescriptor(taskType, openaiInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutOpenaiResponse PutOpenai(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId, Action configureRequest) + { + var descriptor = new PutOpenaiRequestDescriptor(taskType, openaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutOpenaiAsync(PutOpenaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutOpenaiAsync(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutOpenaiRequestDescriptor(taskType, openaiInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create an OpenAI inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutOpenaiAsync(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutOpenaiRequestDescriptor(taskType, openaiInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutWatsonxResponse PutWatsonx(PutWatsonxRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutWatsonxAsync(PutWatsonxRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutWatsonxResponse PutWatsonx(PutWatsonxRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutWatsonxResponse PutWatsonx(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId) + { + var descriptor = new PutWatsonxRequestDescriptor(taskType, watsonxInferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual PutWatsonxResponse PutWatsonx(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId, Action configureRequest) + { + var descriptor = new PutWatsonxRequestDescriptor(taskType, watsonxInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutWatsonxAsync(PutWatsonxRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutWatsonxAsync(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new PutWatsonxRequestDescriptor(taskType, watsonxInferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Create a Watsonx inference endpoint. + /// + /// + /// Create an inference endpoint to perform an inference task with the watsonxai service. + /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. + /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. + /// + /// + /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. + /// After creating the endpoint, wait for the model deployment to complete before using it. + /// To verify the deployment status, use the get trained model statistics API. + /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". + /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutWatsonxAsync(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutWatsonxRequestDescriptor(taskType, watsonxInferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RerankResponse Rerank(RerankRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RerankAsync(RerankRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RerankResponse Rerank(RerankRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RerankResponse Rerank(Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new RerankRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual RerankResponse Rerank(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new RerankRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RerankAsync(RerankRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RerankAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new RerankRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform rereanking inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RerankAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RerankRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SparseEmbeddingResponse SparseEmbedding(SparseEmbeddingRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SparseEmbeddingAsync(SparseEmbeddingRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SparseEmbeddingResponse SparseEmbedding(SparseEmbeddingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform sparse embedding inference on the service /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + public virtual SparseEmbeddingResponse SparseEmbedding(Elastic.Clients.Elasticsearch.Id inferenceId) { - var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + var descriptor = new SparseEmbeddingRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual SparseEmbeddingResponse SparseEmbedding(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new SparseEmbeddingRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SparseEmbeddingAsync(SparseEmbeddingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SparseEmbeddingAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new SparseEmbeddingRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform sparse embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SparseEmbeddingAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new SparseEmbeddingRequestDescriptor(inferenceId); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -926,14 +4929,33 @@ public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticse /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Id inferenceId) + public virtual StreamCompletionResponse StreamCompletion(StreamCompletionRequest request) { - var descriptor = new StreamInferenceRequestDescriptor(inferenceId); - descriptor.BeforeRequest(); - return DoRequest(descriptor); + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform streaming inference. + /// Get real-time responses for completion tasks by delivering answers incrementally, reducing response times during computation. + /// This API works only with the completion task type. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamCompletionAsync(StreamCompletionRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); } /// @@ -948,15 +4970,13 @@ public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticse /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + public virtual StreamCompletionResponse StreamCompletion(StreamCompletionRequestDescriptor descriptor) { - var descriptor = new StreamInferenceRequestDescriptor(inferenceId); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// @@ -971,12 +4991,14 @@ public virtual StreamInferenceResponse StreamInference(Elastic.Clients.Elasticse /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StreamInferenceAsync(StreamInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamCompletionResponse StreamCompletion(Elastic.Clients.Elasticsearch.Id inferenceId) { + var descriptor = new StreamCompletionRequestDescriptor(inferenceId); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// @@ -991,13 +5013,15 @@ public virtual Task StreamInferenceAsync(StreamInferenc /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual StreamCompletionResponse StreamCompletion(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) { - var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); + var descriptor = new StreamCompletionRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest(descriptor); } /// @@ -1012,14 +5036,12 @@ public virtual Task StreamInferenceAsync(Elastic.Client /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task StreamCompletionAsync(StreamCompletionRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new StreamInferenceRequestDescriptor(taskType, inferenceId); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -1034,13 +5056,13 @@ public virtual Task StreamInferenceAsync(Elastic.Client /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + public virtual Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { - var descriptor = new StreamInferenceRequestDescriptor(inferenceId); + var descriptor = new StreamCompletionRequestDescriptor(inferenceId); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -1055,14 +5077,120 @@ public virtual Task StreamInferenceAsync(Elastic.Client /// /// This API requires the monitor_inference cluster privilege (the built-in inference_admin and inference_user roles grant this privilege). You must use a client that supports streaming. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new StreamCompletionRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TextEmbeddingResponse TextEmbedding(TextEmbeddingRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TextEmbeddingAsync(TextEmbeddingRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TextEmbeddingResponse TextEmbedding(TextEmbeddingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TextEmbeddingResponse TextEmbedding(Elastic.Clients.Elasticsearch.Id inferenceId) + { + var descriptor = new TextEmbeddingRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] + public virtual TextEmbeddingResponse TextEmbedding(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) + { + var descriptor = new TextEmbeddingRequestDescriptor(inferenceId); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TextEmbeddingAsync(TextEmbeddingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TextEmbeddingAsync(Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) + { + var descriptor = new TextEmbeddingRequestDescriptor(inferenceId); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// + /// Perform text embedding inference on the service + /// + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task StreamInferenceAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task TextEmbeddingAsync(Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new StreamInferenceRequestDescriptor(inferenceId); + var descriptor = new TextEmbeddingRequestDescriptor(inferenceId); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// @@ -1077,7 +5205,7 @@ public virtual Task StreamInferenceAsync(Elastic.Client /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateInferenceResponse Update(UpdateInferenceRequest request) @@ -1098,7 +5226,7 @@ public virtual UpdateInferenceResponse Update(UpdateInferenceRequest request) /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAsync(UpdateInferenceRequest request, CancellationToken cancellationToken = default) { @@ -1118,7 +5246,7 @@ public virtual Task UpdateAsync(UpdateInferenceRequest /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateInferenceResponse Update(UpdateInferenceRequestDescriptor descriptor) @@ -1139,7 +5267,7 @@ public virtual UpdateInferenceResponse Update(UpdateInferenceRequestDescriptor d /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId) @@ -1161,7 +5289,7 @@ public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Infe /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -1184,7 +5312,7 @@ public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Infe /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId) @@ -1206,7 +5334,7 @@ public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Infe /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest) @@ -1229,7 +5357,7 @@ public virtual UpdateInferenceResponse Update(Elastic.Clients.Elasticsearch.Infe /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAsync(UpdateInferenceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1249,7 +5377,7 @@ public virtual Task UpdateAsync(UpdateInferenceRequestD /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -1270,7 +5398,7 @@ public virtual Task UpdateAsync(Elastic.Clients.Elastic /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Inference.TaskType? taskType, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1292,7 +5420,7 @@ public virtual Task UpdateAsync(Elastic.Clients.Elastic /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) { @@ -1313,7 +5441,7 @@ public virtual Task UpdateAsync(Elastic.Clients.Elastic /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. /// However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateAsync(Elastic.Clients.Elasticsearch.Inference.InferenceEndpoint inferenceConfig, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index dd4bc32e2a3..314b04eb9ab 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -42,9 +42,11 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDatabaseRequest request) @@ -56,9 +58,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDataba /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -69,9 +73,11 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDatabaseRequestDescriptor descriptor) @@ -83,9 +89,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Delete /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id) @@ -98,9 +106,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elasti /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest) @@ -114,9 +124,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elasti /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDatabaseRequestDescriptor descriptor) @@ -128,9 +140,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(DeleteGeoipDataba /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id) @@ -143,9 +157,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.E /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest) @@ -159,9 +175,11 @@ public virtual DeleteGeoipDatabaseResponse DeleteGeoipDatabase(Elastic.Clients.E /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -172,9 +190,11 @@ public virtual Task DeleteGeoipDatabaseAsync /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) { @@ -186,9 +206,11 @@ public virtual Task DeleteGeoipDatabaseAsync /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -201,9 +223,11 @@ public virtual Task DeleteGeoipDatabaseAsync /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(DeleteGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -214,9 +238,11 @@ public virtual Task DeleteGeoipDatabaseAsync(Delete /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) { @@ -228,9 +254,11 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// /// Delete GeoIP database configurations. + /// + /// /// Delete one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -244,7 +272,7 @@ public virtual Task DeleteGeoipDatabaseAsync(Elasti /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteIpLocationDatabaseRequest request) @@ -257,7 +285,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteI /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -269,7 +297,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteIpLocationDatabaseRequestDescriptor descriptor) @@ -282,7 +310,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id) @@ -296,7 +324,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest) @@ -311,7 +339,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteIpLocationDatabaseRequestDescriptor descriptor) @@ -324,7 +352,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(DeleteI /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id) @@ -338,7 +366,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest) @@ -353,7 +381,7 @@ public virtual DeleteIpLocationDatabaseResponse DeleteIpLocationDatabase(Elastic /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -365,7 +393,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) { @@ -378,7 +406,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -392,7 +420,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(DeleteIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -404,7 +432,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, CancellationToken cancellationToken = default) { @@ -417,7 +445,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// /// Delete IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -432,7 +460,7 @@ public virtual Task DeleteIpLocationDatabaseAs /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest request) @@ -446,7 +474,7 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest reque /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(DeletePipelineRequest request, CancellationToken cancellationToken = default) { @@ -459,7 +487,7 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescriptor descriptor) @@ -473,7 +501,7 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRe /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id) @@ -488,7 +516,7 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients. /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -504,7 +532,7 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients. /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescriptor descriptor) @@ -518,7 +546,7 @@ public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescri /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id) @@ -533,7 +561,7 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -549,7 +577,7 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -562,7 +590,7 @@ public virtual Task DeletePipelineAsync(Delet /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -576,7 +604,7 @@ public virtual Task DeletePipelineAsync(Elast /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -591,7 +619,7 @@ public virtual Task DeletePipelineAsync(Elast /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -604,7 +632,7 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -618,7 +646,7 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// Delete pipelines. /// Delete one or more ingest pipelines. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -633,7 +661,7 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) @@ -647,7 +675,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -660,7 +688,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descriptor) @@ -674,7 +702,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descrip /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats() @@ -689,7 +717,7 @@ public virtual GeoIpStatsResponse GeoIpStats() /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(Action configureRequest) @@ -705,7 +733,7 @@ public virtual GeoIpStatsResponse GeoIpStats(Action /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -718,7 +746,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -732,7 +760,7 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// Get GeoIP statistics. /// Get download statistics for GeoIP2 databases that are used with the GeoIP processor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -745,9 +773,11 @@ public virtual Task GeoIpStatsAsync(Action /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest request) @@ -759,9 +789,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -772,9 +804,11 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequestDescriptor descriptor) @@ -786,9 +820,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipData /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id) @@ -801,9 +837,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clie /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest) @@ -817,9 +855,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clie /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase() @@ -832,9 +872,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase() /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action> configureRequest) @@ -848,9 +890,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequestDescriptor descriptor) @@ -862,9 +906,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(GetGeoipDatabaseRequest /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id) @@ -877,9 +923,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elastic /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest) @@ -893,9 +941,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Elastic.Clients.Elastic /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase() @@ -908,9 +958,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase() /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action configureRequest) @@ -924,9 +976,11 @@ public virtual GetGeoipDatabaseResponse GetGeoipDatabase(Action /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -937,9 +991,11 @@ public virtual Task GetGeoipDatabaseAsync(G /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) { @@ -951,9 +1007,11 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -966,9 +1024,11 @@ public virtual Task GetGeoipDatabaseAsync(E /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) { @@ -980,9 +1040,11 @@ public virtual Task GetGeoipDatabaseAsync(C /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -995,9 +1057,11 @@ public virtual Task GetGeoipDatabaseAsync(A /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(GetGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1008,9 +1072,11 @@ public virtual Task GetGeoipDatabaseAsync(GetGeoipData /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) { @@ -1022,9 +1088,11 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1037,9 +1105,11 @@ public virtual Task GetGeoipDatabaseAsync(Elastic.Clie /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(CancellationToken cancellationToken = default) { @@ -1051,9 +1121,11 @@ public virtual Task GetGeoipDatabaseAsync(Cancellation /// /// /// Get GeoIP database configurations. + /// + /// /// Get information about one or more IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetGeoipDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1067,7 +1139,7 @@ public virtual Task GetGeoipDatabaseAsync(Action /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocationDatabaseRequest request) @@ -1080,7 +1152,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocation /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -1092,7 +1164,7 @@ public virtual Task GetIpLocationDatabaseAsync(Ge /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocationDatabaseRequestDescriptor descriptor) @@ -1105,7 +1177,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Ge /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id) @@ -1119,7 +1191,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(El /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest) @@ -1134,7 +1206,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(El /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase() @@ -1148,7 +1220,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase() /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Action> configureRequest) @@ -1163,7 +1235,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Ac /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocationDatabaseRequestDescriptor descriptor) @@ -1176,7 +1248,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(GetIpLocation /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id) @@ -1190,7 +1262,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clien /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest) @@ -1205,7 +1277,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Elastic.Clien /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase() @@ -1219,7 +1291,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase() /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Action configureRequest) @@ -1234,7 +1306,7 @@ public virtual GetIpLocationDatabaseResponse GetIpLocationDatabase(Action /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1246,7 +1318,7 @@ public virtual Task GetIpLocationDatabaseAsync /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) { @@ -1259,7 +1331,7 @@ public virtual Task GetIpLocationDatabaseAsync /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1273,7 +1345,7 @@ public virtual Task GetIpLocationDatabaseAsync /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) { @@ -1286,7 +1358,7 @@ public virtual Task GetIpLocationDatabaseAsync /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1300,7 +1372,7 @@ public virtual Task GetIpLocationDatabaseAsync /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(GetIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1312,7 +1384,7 @@ public virtual Task GetIpLocationDatabaseAsync(Ge /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, CancellationToken cancellationToken = default) { @@ -1325,7 +1397,7 @@ public virtual Task GetIpLocationDatabaseAsync(El /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ids? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1339,7 +1411,7 @@ public virtual Task GetIpLocationDatabaseAsync(El /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(CancellationToken cancellationToken = default) { @@ -1352,7 +1424,7 @@ public virtual Task GetIpLocationDatabaseAsync(Ca /// /// Get IP geolocation database configurations. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetIpLocationDatabaseAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1365,10 +1437,12 @@ public virtual Task GetIpLocationDatabaseAsync(Ac /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(GetPipelineRequest request) @@ -1380,10 +1454,12 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequest request) /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(GetPipelineRequest request, CancellationToken cancellationToken = default) { @@ -1394,10 +1470,12 @@ public virtual Task GetPipelineAsync(GetPipelineRequest req /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor descriptor) @@ -1409,10 +1487,12 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDesc /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id) @@ -1425,10 +1505,12 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasti /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -1442,10 +1524,12 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasti /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline() @@ -1458,10 +1542,12 @@ public virtual GetPipelineResponse GetPipeline() /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Action> configureRequest) @@ -1475,10 +1561,12 @@ public virtual GetPipelineResponse GetPipeline(Action /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor descriptor) @@ -1490,10 +1578,12 @@ public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor desc /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id) @@ -1506,10 +1596,12 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -1523,10 +1615,12 @@ public virtual GetPipelineResponse GetPipeline(Elastic.Clients.Elasticsearch.Id? /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline() @@ -1539,10 +1633,12 @@ public virtual GetPipelineResponse GetPipeline() /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(Action configureRequest) @@ -1556,10 +1652,12 @@ public virtual GetPipelineResponse GetPipeline(Action /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1570,10 +1668,12 @@ public virtual Task GetPipelineAsync(GetPipeline /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -1585,10 +1685,12 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1601,10 +1703,12 @@ public virtual Task GetPipelineAsync(Elastic.Cli /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) { @@ -1616,10 +1720,12 @@ public virtual Task GetPipelineAsync(Cancellatio /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1632,10 +1738,12 @@ public virtual Task GetPipelineAsync(Action /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1646,10 +1754,12 @@ public virtual Task GetPipelineAsync(GetPipelineRequestDesc /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -1661,10 +1771,12 @@ public virtual Task GetPipelineAsync(Elastic.Clients.Elasti /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1677,10 +1789,12 @@ public virtual Task GetPipelineAsync(Elastic.Clients.Elasti /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) { @@ -1692,10 +1806,12 @@ public virtual Task GetPipelineAsync(CancellationToken canc /// /// /// Get pipelines. + /// + /// /// Get information about one or more ingest pipelines. /// This API returns a local reference of the pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPipelineAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1712,7 +1828,7 @@ public virtual Task GetPipelineAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) @@ -1728,7 +1844,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -1743,7 +1859,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescriptor descriptor) @@ -1759,7 +1875,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescripto /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok() @@ -1776,7 +1892,7 @@ public virtual ProcessorGrokResponse ProcessorGrok() /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(Action configureRequest) @@ -1794,7 +1910,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1809,7 +1925,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -1825,7 +1941,7 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// You must choose which field to extract matched fields from, as well as the grok pattern you expect will match. /// A grok pattern is like a regular expression that supports aliased expressions that can be reused. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1838,9 +1954,11 @@ public virtual Task ProcessorGrokAsync(Action /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest request) @@ -1852,9 +1970,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -1865,9 +1985,11 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequestDescriptor descriptor) @@ -1879,9 +2001,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipData /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id) @@ -1894,9 +2018,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clie /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -1910,9 +2036,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clie /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequestDescriptor descriptor) @@ -1924,9 +2052,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(PutGeoipDatabaseRequest /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id) @@ -1939,9 +2069,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elastic /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -1955,9 +2087,11 @@ public virtual PutGeoipDatabaseResponse PutGeoipDatabase(Elastic.Clients.Elastic /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1968,9 +2102,11 @@ public virtual Task PutGeoipDatabaseAsync(P /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1982,9 +2118,11 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1997,9 +2135,11 @@ public virtual Task PutGeoipDatabaseAsync(E /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(PutGeoipDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2010,9 +2150,11 @@ public virtual Task PutGeoipDatabaseAsync(PutGeoipData /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2024,9 +2166,11 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// /// Create or update a GeoIP database configuration. + /// + /// /// Refer to the create or update IP geolocation database configuration API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGeoipDatabaseAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2040,7 +2184,7 @@ public virtual Task PutGeoipDatabaseAsync(Elastic.Clie /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocationDatabaseRequest request) @@ -2053,7 +2197,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocation /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequest request, CancellationToken cancellationToken = default) { @@ -2065,7 +2209,7 @@ public virtual Task PutIpLocationDatabaseAsync(Pu /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocationDatabaseRequestDescriptor descriptor) @@ -2078,7 +2222,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Pu /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id) @@ -2092,7 +2236,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(El /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -2107,7 +2251,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(El /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocationDatabaseRequestDescriptor descriptor) @@ -2120,7 +2264,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(PutIpLocation /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id) @@ -2134,7 +2278,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clien /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -2149,7 +2293,7 @@ public virtual PutIpLocationDatabaseResponse PutIpLocationDatabase(Elastic.Clien /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2161,7 +2305,7 @@ public virtual Task PutIpLocationDatabaseAsync /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2174,7 +2318,7 @@ public virtual Task PutIpLocationDatabaseAsync /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2188,7 +2332,7 @@ public virtual Task PutIpLocationDatabaseAsync /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(PutIpLocationDatabaseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2200,7 +2344,7 @@ public virtual Task PutIpLocationDatabaseAsync(Pu /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2213,7 +2357,7 @@ public virtual Task PutIpLocationDatabaseAsync(El /// /// Create or update an IP geolocation database configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutIpLocationDatabaseAsync(Elastic.Clients.Elasticsearch.Ingest.DatabaseConfiguration configuration, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2228,7 +2372,7 @@ public virtual Task PutIpLocationDatabaseAsync(El /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) @@ -2242,7 +2386,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -2255,7 +2399,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) @@ -2269,7 +2413,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDesc /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) @@ -2284,7 +2428,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -2300,7 +2444,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) @@ -2314,7 +2458,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor desc /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) @@ -2329,7 +2473,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -2345,7 +2489,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2358,7 +2502,7 @@ public virtual Task PutPipelineAsync(PutPipeline /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2372,7 +2516,7 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2387,7 +2531,7 @@ public virtual Task PutPipelineAsync(Elastic.Cli /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2400,7 +2544,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2414,7 +2558,7 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// Create or update a pipeline. /// Changes made using this API take effect immediately. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2427,10 +2571,12 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(SimulateRequest request) @@ -2442,10 +2588,12 @@ public virtual SimulateResponse Simulate(SimulateRequest request) /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(SimulateRequest request, CancellationToken cancellationToken = default) { @@ -2456,10 +2604,12 @@ public virtual Task SimulateAsync(SimulateRequest request, Can /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(SimulateRequestDescriptor descriptor) @@ -2471,10 +2621,12 @@ public virtual SimulateResponse Simulate(SimulateRequestDescriptor /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id) @@ -2487,10 +2639,12 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearc /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -2504,10 +2658,12 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearc /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate() @@ -2520,10 +2676,12 @@ public virtual SimulateResponse Simulate() /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(Action> configureRequest) @@ -2537,10 +2695,12 @@ public virtual SimulateResponse Simulate(Action /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(SimulateRequestDescriptor descriptor) @@ -2552,10 +2712,12 @@ public virtual SimulateResponse Simulate(SimulateRequestDescriptor descriptor) /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id) @@ -2568,10 +2730,12 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id) /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -2585,10 +2749,12 @@ public virtual SimulateResponse Simulate(Elastic.Clients.Elasticsearch.Id? id, A /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate() @@ -2601,10 +2767,12 @@ public virtual SimulateResponse Simulate() /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(Action configureRequest) @@ -2618,10 +2786,12 @@ public virtual SimulateResponse Simulate(Action confi /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(SimulateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2632,10 +2802,12 @@ public virtual Task SimulateAsync(SimulateRequestDe /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -2647,10 +2819,12 @@ public virtual Task SimulateAsync(Elastic.Clients.E /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2663,10 +2837,12 @@ public virtual Task SimulateAsync(Elastic.Clients.E /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(CancellationToken cancellationToken = default) { @@ -2678,10 +2854,12 @@ public virtual Task SimulateAsync(CancellationToken /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2694,10 +2872,12 @@ public virtual Task SimulateAsync(Action /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(SimulateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2708,10 +2888,12 @@ public virtual Task SimulateAsync(SimulateRequestDescriptor de /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -2723,10 +2905,12 @@ public virtual Task SimulateAsync(Elastic.Clients.Elasticsearc /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2739,10 +2923,12 @@ public virtual Task SimulateAsync(Elastic.Clients.Elasticsearc /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(CancellationToken cancellationToken = default) { @@ -2754,10 +2940,12 @@ public virtual Task SimulateAsync(CancellationToken cancellati /// /// /// Simulate a pipeline. + /// + /// /// Run an ingest pipeline against a set of provided documents. /// You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SimulateAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs index 2de10d980ed..00993c663a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs @@ -42,12 +42,14 @@ internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(cl /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLicenseResponse Delete(DeleteLicenseRequest request) @@ -59,12 +61,14 @@ public virtual DeleteLicenseResponse Delete(DeleteLicenseRequest request) /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteLicenseRequest request, CancellationToken cancellationToken = default) { @@ -75,12 +79,14 @@ public virtual Task DeleteAsync(DeleteLicenseRequest requ /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLicenseResponse Delete(DeleteLicenseRequestDescriptor descriptor) @@ -92,12 +98,14 @@ public virtual DeleteLicenseResponse Delete(DeleteLicenseRequestDescriptor descr /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLicenseResponse Delete() @@ -110,12 +118,14 @@ public virtual DeleteLicenseResponse Delete() /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLicenseResponse Delete(Action configureRequest) @@ -129,12 +139,14 @@ public virtual DeleteLicenseResponse Delete(Action /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteLicenseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -145,12 +157,14 @@ public virtual Task DeleteAsync(DeleteLicenseRequestDescr /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(CancellationToken cancellationToken = default) { @@ -162,12 +176,14 @@ public virtual Task DeleteAsync(CancellationToken cancell /// /// /// Delete the license. + /// + /// /// When the license expires, your subscription level reverts to Basic. /// /// /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -180,13 +196,16 @@ public virtual Task DeleteAsync(Action /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLicenseResponse Get(GetLicenseRequest request) @@ -198,13 +217,16 @@ public virtual GetLicenseResponse Get(GetLicenseRequest request) /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetLicenseRequest request, CancellationToken cancellationToken = default) { @@ -215,13 +237,16 @@ public virtual Task GetAsync(GetLicenseRequest request, Canc /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLicenseResponse Get(GetLicenseRequestDescriptor descriptor) @@ -233,13 +258,16 @@ public virtual GetLicenseResponse Get(GetLicenseRequestDescriptor descriptor) /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLicenseResponse Get() @@ -252,13 +280,16 @@ public virtual GetLicenseResponse Get() /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLicenseResponse Get(Action configureRequest) @@ -272,13 +303,16 @@ public virtual GetLicenseResponse Get(Action config /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetLicenseRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -289,13 +323,16 @@ public virtual Task GetAsync(GetLicenseRequestDescriptor des /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(CancellationToken cancellationToken = default) { @@ -307,13 +344,16 @@ public virtual Task GetAsync(CancellationToken cancellationT /// /// /// Get license information. + /// + /// /// Get information about your Elastic license including its type, its status, when it was issued, and when it expires. /// /// - /// NOTE: If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. + /// info + /// If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. /// If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -327,7 +367,7 @@ public virtual Task GetAsync(Action /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequest request) @@ -340,7 +380,7 @@ public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequest reque /// /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBasicStatusAsync(GetBasicStatusRequest request, CancellationToken cancellationToken = default) { @@ -352,7 +392,7 @@ public virtual Task GetBasicStatusAsync(GetBasicStatusRe /// /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequestDescriptor descriptor) @@ -365,7 +405,7 @@ public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequestDescri /// /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBasicStatusResponse GetBasicStatus() @@ -379,7 +419,7 @@ public virtual GetBasicStatusResponse GetBasicStatus() /// /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBasicStatusResponse GetBasicStatus(Action configureRequest) @@ -394,7 +434,7 @@ public virtual GetBasicStatusResponse GetBasicStatus(Action /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBasicStatusAsync(GetBasicStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -406,7 +446,7 @@ public virtual Task GetBasicStatusAsync(GetBasicStatusRe /// /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBasicStatusAsync(CancellationToken cancellationToken = default) { @@ -419,7 +459,7 @@ public virtual Task GetBasicStatusAsync(CancellationToke /// /// Get the basic license status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBasicStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -433,7 +473,7 @@ public virtual Task GetBasicStatusAsync(Action /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequest request) @@ -446,7 +486,7 @@ public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequest reque /// /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrialStatusAsync(GetTrialStatusRequest request, CancellationToken cancellationToken = default) { @@ -458,7 +498,7 @@ public virtual Task GetTrialStatusAsync(GetTrialStatusRe /// /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequestDescriptor descriptor) @@ -471,7 +511,7 @@ public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequestDescri /// /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrialStatusResponse GetTrialStatus() @@ -485,7 +525,7 @@ public virtual GetTrialStatusResponse GetTrialStatus() /// /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrialStatusResponse GetTrialStatus(Action configureRequest) @@ -500,7 +540,7 @@ public virtual GetTrialStatusResponse GetTrialStatus(Action /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrialStatusAsync(GetTrialStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -512,7 +552,7 @@ public virtual Task GetTrialStatusAsync(GetTrialStatusRe /// /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrialStatusAsync(CancellationToken cancellationToken = default) { @@ -525,7 +565,7 @@ public virtual Task GetTrialStatusAsync(CancellationToke /// /// Get the trial status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrialStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -538,6 +578,8 @@ public virtual Task GetTrialStatusAsync(Action /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -547,7 +589,7 @@ public virtual Task GetTrialStatusAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostResponse Post(PostRequest request) @@ -559,6 +601,8 @@ public virtual PostResponse Post(PostRequest request) /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -568,7 +612,7 @@ public virtual PostResponse Post(PostRequest request) /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostAsync(PostRequest request, CancellationToken cancellationToken = default) { @@ -579,6 +623,8 @@ public virtual Task PostAsync(PostRequest request, CancellationTok /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -588,7 +634,7 @@ public virtual Task PostAsync(PostRequest request, CancellationTok /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostResponse Post(PostRequestDescriptor descriptor) @@ -600,6 +646,8 @@ public virtual PostResponse Post(PostRequestDescriptor descriptor) /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -609,7 +657,7 @@ public virtual PostResponse Post(PostRequestDescriptor descriptor) /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostResponse Post() @@ -622,6 +670,8 @@ public virtual PostResponse Post() /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -631,7 +681,7 @@ public virtual PostResponse Post() /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostResponse Post(Action configureRequest) @@ -645,6 +695,8 @@ public virtual PostResponse Post(Action configureRequest) /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -654,7 +706,7 @@ public virtual PostResponse Post(Action configureRequest) /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostAsync(PostRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -665,6 +717,8 @@ public virtual Task PostAsync(PostRequestDescriptor descriptor, Ca /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -674,7 +728,7 @@ public virtual Task PostAsync(PostRequestDescriptor descriptor, Ca /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostAsync(CancellationToken cancellationToken = default) { @@ -686,6 +740,8 @@ public virtual Task PostAsync(CancellationToken cancellationToken /// /// /// Update the license. + /// + /// /// You can update your license at runtime without shutting down your nodes. /// License updates take effect immediately. /// If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. @@ -695,7 +751,7 @@ public virtual Task PostAsync(CancellationToken cancellationToken /// NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. /// If the operator privileges feature is enabled, only operator users can use this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -708,6 +764,8 @@ public virtual Task PostAsync(Action config /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -720,7 +778,7 @@ public virtual Task PostAsync(Action config /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequest request) @@ -732,6 +790,8 @@ public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequest reque /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -744,7 +804,7 @@ public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequest reque /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartBasicAsync(PostStartBasicRequest request, CancellationToken cancellationToken = default) { @@ -755,6 +815,8 @@ public virtual Task PostStartBasicAsync(PostStartBasicRe /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -767,7 +829,7 @@ public virtual Task PostStartBasicAsync(PostStartBasicRe /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequestDescriptor descriptor) @@ -779,6 +841,8 @@ public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequestDescri /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -791,7 +855,7 @@ public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequestDescri /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartBasicResponse PostStartBasic() @@ -804,6 +868,8 @@ public virtual PostStartBasicResponse PostStartBasic() /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -816,7 +882,7 @@ public virtual PostStartBasicResponse PostStartBasic() /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartBasicResponse PostStartBasic(Action configureRequest) @@ -830,6 +896,8 @@ public virtual PostStartBasicResponse PostStartBasic(Action /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -842,7 +910,7 @@ public virtual PostStartBasicResponse PostStartBasic(Action /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartBasicAsync(PostStartBasicRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -853,6 +921,8 @@ public virtual Task PostStartBasicAsync(PostStartBasicRe /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -865,7 +935,7 @@ public virtual Task PostStartBasicAsync(PostStartBasicRe /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartBasicAsync(CancellationToken cancellationToken = default) { @@ -877,6 +947,8 @@ public virtual Task PostStartBasicAsync(CancellationToke /// /// /// Start a basic license. + /// + /// /// Start an indefinite basic license, which gives access to all the basic features. /// /// @@ -889,7 +961,7 @@ public virtual Task PostStartBasicAsync(CancellationToke /// /// To check the status of your basic license, use the get basic license API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartBasicAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -911,7 +983,7 @@ public virtual Task PostStartBasicAsync(Action /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequest request) @@ -932,7 +1004,7 @@ public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequest reque /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(PostStartTrialRequest request, CancellationToken cancellationToken = default) { @@ -952,7 +1024,7 @@ public virtual Task PostStartTrialAsync(PostStartTrialRe /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequestDescriptor descriptor) @@ -973,7 +1045,7 @@ public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequestDescri /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial() @@ -995,7 +1067,7 @@ public virtual PostStartTrialResponse PostStartTrial() /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(Action configureRequest) @@ -1018,7 +1090,7 @@ public virtual PostStartTrialResponse PostStartTrial(Action /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(PostStartTrialRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1038,7 +1110,7 @@ public virtual Task PostStartTrialAsync(PostStartTrialRe /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(CancellationToken cancellationToken = default) { @@ -1059,7 +1131,7 @@ public virtual Task PostStartTrialAsync(CancellationToke /// /// To check the status of your trial, use the get trial status API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostStartTrialAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index 9dc7d86eab9..e8c0130c0ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -42,12 +42,14 @@ internal MachineLearningNamespacedClient(ElasticsearchClient client) : base(clie /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploymentCache(ClearTrainedModelDeploymentCacheRequest request) @@ -59,12 +61,14 @@ public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploym /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearTrainedModelDeploymentCacheAsync(ClearTrainedModelDeploymentCacheRequest request, CancellationToken cancellationToken = default) { @@ -75,12 +79,14 @@ public virtual Task ClearTrainedModelD /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploymentCache(ClearTrainedModelDeploymentCacheRequestDescriptor descriptor) @@ -92,12 +98,14 @@ public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploym /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploymentCache(Elastic.Clients.Elasticsearch.Id modelId) @@ -110,12 +118,14 @@ public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploym /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploymentCache(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -129,12 +139,14 @@ public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploym /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearTrainedModelDeploymentCacheAsync(ClearTrainedModelDeploymentCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -145,12 +157,14 @@ public virtual Task ClearTrainedModelD /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearTrainedModelDeploymentCacheAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -162,12 +176,14 @@ public virtual Task ClearTrainedModelD /// /// /// Clear trained model deployment cache. + /// + /// /// Cache will be cleared on all nodes where the trained model is assigned. /// A trained model deployment may have an inference cache enabled. /// As requests are handled by each allocated node, their responses may be cached on that individual node. /// Calling this API clears the caches without restarting the deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearTrainedModelDeploymentCacheAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -180,12 +196,14 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequest request) @@ -197,12 +215,14 @@ public virtual CloseJobResponse CloseJob(CloseJobRequest request) /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequest request, CancellationToken cancellationToken = default) { @@ -213,12 +233,14 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequestDescriptor descriptor) @@ -230,12 +252,14 @@ public virtual CloseJobResponse CloseJob(CloseJobRequestDescriptor descriptor) /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -248,12 +272,14 @@ public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId) /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -267,12 +293,14 @@ public virtual CloseJobResponse CloseJob(Elastic.Clients.Elasticsearch.Id jobId, /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(CloseJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -283,12 +311,14 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -300,12 +330,14 @@ 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. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -318,9 +350,11 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest request) @@ -332,9 +366,11 @@ public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest reque /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequest request, CancellationToken cancellationToken = default) { @@ -345,9 +381,11 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequestDescriptor descriptor) @@ -359,9 +397,11 @@ public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequestDescri /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendarId) @@ -374,9 +414,11 @@ public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsear /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest) @@ -390,9 +432,11 @@ public virtual DeleteCalendarResponse DeleteCalendar(Elastic.Clients.Elasticsear /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(DeleteCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -403,9 +447,11 @@ public virtual Task DeleteCalendarAsync(DeleteCalendarRe /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, CancellationToken cancellationToken = default) { @@ -417,9 +463,11 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// /// /// Delete a calendar. - /// Removes all scheduled events from a calendar, then deletes it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Remove all scheduled events from a calendar, then delete it. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -433,7 +481,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequest request) @@ -446,7 +494,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEve /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequest request, CancellationToken cancellationToken = default) { @@ -458,7 +506,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequestDescriptor descriptor) @@ -471,7 +519,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEve /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId) @@ -485,7 +533,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.E /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, Action configureRequest) @@ -500,7 +548,7 @@ public virtual DeleteCalendarEventResponse DeleteCalendarEvent(Elastic.Clients.E /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(DeleteCalendarEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -512,7 +560,7 @@ public virtual Task DeleteCalendarEventAsync(Delete /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, CancellationToken cancellationToken = default) { @@ -525,7 +573,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete events from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarEventAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Id eventId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -539,7 +587,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequest request) @@ -552,7 +600,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequ /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequest request, CancellationToken cancellationToken = default) { @@ -564,7 +612,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequestDescriptor descriptor) @@ -577,7 +625,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequ /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId) @@ -591,7 +639,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elast /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest) @@ -606,7 +654,7 @@ public virtual DeleteCalendarJobResponse DeleteCalendarJob(Elastic.Clients.Elast /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(DeleteCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -618,7 +666,7 @@ public virtual Task DeleteCalendarJobAsync(DeleteCale /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, CancellationToken cancellationToken = default) { @@ -631,7 +679,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete anomaly jobs from a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -645,7 +693,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest request) @@ -658,7 +706,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest reque /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -670,7 +718,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequestDescriptor descriptor) @@ -683,7 +731,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequestDescri /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -697,7 +745,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsear /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -712,7 +760,7 @@ public virtual DeleteDatafeedResponse DeleteDatafeed(Elastic.Clients.Elasticsear /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(DeleteDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -724,7 +772,7 @@ public virtual Task DeleteDatafeedAsync(DeleteDatafeedRe /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -737,7 +785,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a datafeed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -751,7 +799,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) @@ -764,7 +812,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteD /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -776,7 +824,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) @@ -789,7 +837,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -803,7 +851,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -818,7 +866,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequestDescriptor descriptor) @@ -831,7 +879,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteD /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -845,7 +893,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -860,7 +908,7 @@ public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(Elastic /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -872,7 +920,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -885,7 +933,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -899,7 +947,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(DeleteDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -911,7 +959,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -924,7 +972,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// Delete a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -937,16 +985,18 @@ public virtual Task DeleteDataFrameAnalyticsAs /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData(DeleteExpiredDataRequest request) @@ -958,16 +1008,18 @@ public virtual DeleteExpiredDataResponse DeleteExpiredData(DeleteExpiredDataRequ /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteExpiredDataAsync(DeleteExpiredDataRequest request, CancellationToken cancellationToken = default) { @@ -978,16 +1030,18 @@ public virtual Task DeleteExpiredDataAsync(DeleteExpi /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData(DeleteExpiredDataRequestDescriptor descriptor) @@ -999,16 +1053,18 @@ public virtual DeleteExpiredDataResponse DeleteExpiredData(DeleteExpiredDataRequ /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData(Elastic.Clients.Elasticsearch.Id? jobId) @@ -1021,16 +1077,18 @@ public virtual DeleteExpiredDataResponse DeleteExpiredData(Elastic.Clients.Elast /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData(Elastic.Clients.Elasticsearch.Id? jobId, Action configureRequest) @@ -1044,16 +1102,18 @@ public virtual DeleteExpiredDataResponse DeleteExpiredData(Elastic.Clients.Elast /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData() @@ -1066,16 +1126,18 @@ public virtual DeleteExpiredDataResponse DeleteExpiredData() /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData(Action configureRequest) @@ -1089,16 +1151,18 @@ public virtual DeleteExpiredDataResponse DeleteExpiredData(Action /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteExpiredDataAsync(DeleteExpiredDataRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1109,16 +1173,18 @@ public virtual Task DeleteExpiredDataAsync(DeleteExpi /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteExpiredDataAsync(Elastic.Clients.Elasticsearch.Id? jobId, CancellationToken cancellationToken = default) { @@ -1130,16 +1196,18 @@ public virtual Task DeleteExpiredDataAsync(Elastic.Cl /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteExpiredDataAsync(Elastic.Clients.Elasticsearch.Id? jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1152,16 +1220,18 @@ public virtual Task DeleteExpiredDataAsync(Elastic.Cl /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteExpiredDataAsync(CancellationToken cancellationToken = default) { @@ -1173,16 +1243,18 @@ public virtual Task DeleteExpiredDataAsync(Cancellati /// /// /// Delete expired ML data. - /// Deletes all job results, model snapshots and forecast data that have exceeded + /// + /// + /// Delete all job results, model snapshots and forecast data that have exceeded /// their retention days period. Machine learning state documents that are not /// associated with any job are also deleted. /// You can limit the request to a single or set of anomaly detection jobs by /// using a job identifier, a group name, a comma-separated list of jobs, or a /// wildcard expression. You can delete expired data for all anomaly detection - /// jobs by using _all, by specifying * as the <job_id>, or by omitting the - /// <job_id>. + /// jobs by using _all, by specifying * as the <job_id>, or by omitting the + /// <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteExpiredDataAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1195,10 +1267,12 @@ public virtual Task DeleteExpiredDataAsync(Action /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequest request) @@ -1210,10 +1284,12 @@ public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequest request) /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteFilterAsync(DeleteFilterRequest request, CancellationToken cancellationToken = default) { @@ -1224,10 +1300,12 @@ public virtual Task DeleteFilterAsync(DeleteFilterRequest /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequestDescriptor descriptor) @@ -1239,10 +1317,12 @@ public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequestDescriptor d /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteFilterResponse DeleteFilter(Elastic.Clients.Elasticsearch.Id filterId) @@ -1255,10 +1335,12 @@ public virtual DeleteFilterResponse DeleteFilter(Elastic.Clients.Elasticsearch.I /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteFilterResponse DeleteFilter(Elastic.Clients.Elasticsearch.Id filterId, Action configureRequest) @@ -1272,10 +1354,12 @@ public virtual DeleteFilterResponse DeleteFilter(Elastic.Clients.Elasticsearch.I /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteFilterAsync(DeleteFilterRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1286,10 +1370,12 @@ public virtual Task DeleteFilterAsync(DeleteFilterRequestD /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteFilterAsync(Elastic.Clients.Elasticsearch.Id filterId, CancellationToken cancellationToken = default) { @@ -1301,10 +1387,12 @@ public virtual Task DeleteFilterAsync(Elastic.Clients.Elas /// /// /// Delete a filter. + /// + /// /// If an anomaly detection job references the filter, you cannot delete the /// filter. You must update or delete the job before you can delete the filter. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteFilterAsync(Elastic.Clients.Elasticsearch.Id filterId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1317,12 +1405,14 @@ public virtual Task DeleteFilterAsync(Elastic.Clients.Elas /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(DeleteForecastRequest request) @@ -1334,12 +1424,14 @@ public virtual DeleteForecastResponse DeleteForecast(DeleteForecastRequest reque /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteForecastAsync(DeleteForecastRequest request, CancellationToken cancellationToken = default) { @@ -1350,12 +1442,14 @@ public virtual Task DeleteForecastAsync(DeleteForecastRe /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(DeleteForecastRequestDescriptor descriptor) @@ -1367,12 +1461,14 @@ public virtual DeleteForecastResponse DeleteForecast(DeleteForecastRequestDescri /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? forecastId) @@ -1385,12 +1481,14 @@ public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsear /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? forecastId, Action configureRequest) @@ -1404,12 +1502,14 @@ public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsear /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsearch.Id jobId) @@ -1422,12 +1522,14 @@ public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsear /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -1441,12 +1543,14 @@ public virtual DeleteForecastResponse DeleteForecast(Elastic.Clients.Elasticsear /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteForecastAsync(DeleteForecastRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1457,12 +1561,14 @@ public virtual Task DeleteForecastAsync(DeleteForecastRe /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? forecastId, CancellationToken cancellationToken = default) { @@ -1474,12 +1580,14 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? forecastId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1492,12 +1600,14 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -1509,12 +1619,14 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. /// /// /// Delete forecasts from a job. + /// + /// /// By default, forecasts are retained for 14 days. You can specify a /// different retention period with the expires_in parameter in the forecast /// jobs API. The delete forecast API enables you to delete one or more /// forecasts before they expire. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteForecastAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1527,6 +1639,8 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. /// /// /// 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 @@ -1534,7 +1648,7 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) @@ -1546,6 +1660,8 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequest 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 @@ -1553,7 +1669,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken = default) { @@ -1564,6 +1680,8 @@ public virtual Task DeleteJobAsync(DeleteJobRequest 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 @@ -1571,7 +1689,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequest request, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) @@ -1583,6 +1701,8 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor /// /// /// 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 @@ -1590,7 +1710,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -1603,6 +1723,8 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id jobI /// /// /// 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 @@ -1610,7 +1732,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id jobI /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -1624,6 +1746,8 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id jobI /// /// /// 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 @@ -1631,7 +1755,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id jobI /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1642,6 +1766,8 @@ public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor /// /// /// 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 @@ -1649,7 +1775,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -1661,6 +1787,8 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// /// /// 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 @@ -1668,7 +1796,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1681,11 +1809,13 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(DeleteModelSnapshotRequest request) @@ -1697,11 +1827,13 @@ public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(DeleteModelSnapsh /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteModelSnapshotAsync(DeleteModelSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -1712,11 +1844,13 @@ public virtual Task DeleteModelSnapshotAsync(Delete /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(DeleteModelSnapshotRequestDescriptor descriptor) @@ -1728,11 +1862,13 @@ public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(DeleteModelSnapsh /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) @@ -1745,11 +1881,13 @@ public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(Elastic.Clients.E /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest) @@ -1763,11 +1901,13 @@ public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(Elastic.Clients.E /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteModelSnapshotAsync(DeleteModelSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1778,11 +1918,13 @@ public virtual Task DeleteModelSnapshotAsync(Delete /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, CancellationToken cancellationToken = default) { @@ -1794,11 +1936,13 @@ public virtual Task DeleteModelSnapshotAsync(Elasti /// /// /// Delete a model snapshot. + /// + /// /// You cannot delete the active model snapshot. To delete that snapshot, first /// revert to a different one. To identify the active model snapshot, refer to /// the model_snapshot_id in the results from the get jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1811,9 +1955,11 @@ public virtual Task DeleteModelSnapshotAsync(Elasti /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelResponse DeleteTrainedModel(DeleteTrainedModelRequest request) @@ -1825,9 +1971,11 @@ public virtual DeleteTrainedModelResponse DeleteTrainedModel(DeleteTrainedModelR /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAsync(DeleteTrainedModelRequest request, CancellationToken cancellationToken = default) { @@ -1838,9 +1986,11 @@ public virtual Task DeleteTrainedModelAsync(DeleteTr /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelResponse DeleteTrainedModel(DeleteTrainedModelRequestDescriptor descriptor) @@ -1852,9 +2002,11 @@ public virtual DeleteTrainedModelResponse DeleteTrainedModel(DeleteTrainedModelR /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelResponse DeleteTrainedModel(Elastic.Clients.Elasticsearch.Id modelId) @@ -1867,9 +2019,11 @@ public virtual DeleteTrainedModelResponse DeleteTrainedModel(Elastic.Clients.Ela /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelResponse DeleteTrainedModel(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -1883,9 +2037,11 @@ public virtual DeleteTrainedModelResponse DeleteTrainedModel(Elastic.Clients.Ela /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAsync(DeleteTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1896,9 +2052,11 @@ public virtual Task DeleteTrainedModelAsync(DeleteTr /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -1910,9 +2068,11 @@ public virtual Task DeleteTrainedModelAsync(Elastic. /// /// /// Delete an unreferenced trained model. + /// + /// /// The request deletes a trained inference model that is not referenced by an ingest pipeline. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1925,11 +2085,13 @@ public virtual Task DeleteTrainedModelAsync(Elastic. /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(DeleteTrainedModelAliasRequest request) @@ -1941,11 +2103,13 @@ public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(DeleteTra /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAliasAsync(DeleteTrainedModelAliasRequest request, CancellationToken cancellationToken = default) { @@ -1956,11 +2120,13 @@ public virtual Task DeleteTrainedModelAliasAsyn /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(DeleteTrainedModelAliasRequestDescriptor descriptor) @@ -1972,11 +2138,13 @@ public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(DeleteTra /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias) @@ -1989,11 +2157,13 @@ public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(Elastic.C /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias, Action configureRequest) @@ -2007,11 +2177,13 @@ public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(Elastic.C /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAliasAsync(DeleteTrainedModelAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2022,11 +2194,13 @@ public virtual Task DeleteTrainedModelAliasAsyn /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias, CancellationToken cancellationToken = default) { @@ -2038,11 +2212,13 @@ public virtual Task DeleteTrainedModelAliasAsyn /// /// /// Delete a trained model alias. + /// + /// /// This API deletes an existing model alias that refers to a trained model. If /// the model alias is missing or refers to a model other than the one identified /// by the model_id, this API returns an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2055,11 +2231,13 @@ public virtual Task DeleteTrainedModelAliasAsyn /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemoryRequest request) @@ -2071,11 +2249,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemo /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(EstimateModelMemoryRequest request, CancellationToken cancellationToken = default) { @@ -2086,11 +2266,13 @@ public virtual Task EstimateModelMemoryAsync(Estima /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemoryRequestDescriptor descriptor) @@ -2102,11 +2284,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory(Estima /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory() @@ -2119,11 +2303,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory() /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory(Action> configureRequest) @@ -2137,11 +2323,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory(Action /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemoryRequestDescriptor descriptor) @@ -2153,11 +2341,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemo /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory() @@ -2170,11 +2360,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory() /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory(Action configureRequest) @@ -2188,11 +2380,13 @@ public virtual EstimateModelMemoryResponse EstimateModelMemory(Action /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(EstimateModelMemoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2203,11 +2397,13 @@ public virtual Task EstimateModelMemoryAsync /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(CancellationToken cancellationToken = default) { @@ -2219,11 +2415,13 @@ public virtual Task EstimateModelMemoryAsync /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2236,11 +2434,13 @@ public virtual Task EstimateModelMemoryAsync /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(EstimateModelMemoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2251,11 +2451,13 @@ public virtual Task EstimateModelMemoryAsync(Estima /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(CancellationToken cancellationToken = default) { @@ -2267,11 +2469,13 @@ public virtual Task EstimateModelMemoryAsync(Cancel /// /// /// Estimate job model memory usage. - /// Makes an estimation of the memory usage for an anomaly detection job model. - /// It is based on analysis configuration details for the job and cardinality + /// + /// + /// Make an estimation of the memory usage for an anomaly detection job model. + /// The estimate is based on analysis configuration details for the job and cardinality /// estimates for the fields it references. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EstimateModelMemoryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2284,12 +2488,14 @@ public virtual Task EstimateModelMemoryAsync(Action /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequest request) @@ -2301,12 +2507,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequ /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(EvaluateDataFrameRequest request, CancellationToken cancellationToken = default) { @@ -2317,12 +2525,14 @@ public virtual Task EvaluateDataFrameAsync(EvaluateDa /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequestDescriptor descriptor) @@ -2334,12 +2544,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDa /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame() @@ -2352,12 +2564,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame() /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame(Action> configureRequest) @@ -2371,12 +2585,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame(Action /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequestDescriptor descriptor) @@ -2388,12 +2604,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequ /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame() @@ -2406,12 +2624,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame() /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame(Action configureRequest) @@ -2425,12 +2645,14 @@ public virtual EvaluateDataFrameResponse EvaluateDataFrame(Action /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(EvaluateDataFrameRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2441,12 +2663,14 @@ public virtual Task EvaluateDataFrameAsync /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(CancellationToken cancellationToken = default) { @@ -2458,12 +2682,14 @@ public virtual Task EvaluateDataFrameAsync /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2476,12 +2702,14 @@ public virtual Task EvaluateDataFrameAsync /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(EvaluateDataFrameRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2492,12 +2720,14 @@ public virtual Task EvaluateDataFrameAsync(EvaluateDa /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(CancellationToken cancellationToken = default) { @@ -2509,12 +2739,14 @@ public virtual Task EvaluateDataFrameAsync(Cancellati /// /// /// Evaluate data frame analytics. + /// + /// /// The API packages together commonly used evaluation metrics for various types /// of machine learning features. This has been designed for use on indexes /// created by data frame analytics. Evaluation requires both a ground truth /// field and an analytics result field to be present. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EvaluateDataFrameAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2527,6 +2759,8 @@ public virtual Task EvaluateDataFrameAsync(Action /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2544,7 +2778,7 @@ public virtual Task EvaluateDataFrameAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request) @@ -2556,6 +2790,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Expla /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2573,7 +2809,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Expla /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -2584,6 +2820,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2601,7 +2839,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(ExplainDataFrameAnalyticsRequestDescriptor descriptor) @@ -2613,6 +2851,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2630,7 +2870,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) @@ -2643,6 +2883,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2660,7 +2902,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -2674,6 +2916,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2691,7 +2935,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics() @@ -2704,6 +2948,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2721,7 +2967,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Action> configureRequest) @@ -2735,6 +2981,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2752,7 +3000,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(ExplainDataFrameAnalyticsRequestDescriptor descriptor) @@ -2764,6 +3012,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Expla /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2781,7 +3031,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Expla /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) @@ -2794,6 +3044,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elast /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2811,7 +3063,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elast /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -2825,6 +3077,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elast /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2842,7 +3096,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Elast /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics() @@ -2855,6 +3109,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics() /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2872,7 +3128,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Action configureRequest) @@ -2886,6 +3142,8 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Actio /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2903,7 +3161,7 @@ public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(Actio /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2914,6 +3172,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2931,7 +3191,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -2943,6 +3203,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2960,7 +3222,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2973,6 +3235,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -2990,7 +3254,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -3002,6 +3266,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -3019,7 +3285,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3032,6 +3298,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -3049,7 +3317,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(ExplainDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3060,6 +3328,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -3077,7 +3347,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -3089,6 +3359,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -3106,7 +3378,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3119,6 +3391,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -3136,7 +3410,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -3148,6 +3422,8 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// Explain data frame analytics config. + /// + /// /// This API provides explanations for a data frame analytics config that either /// exists already or one that has not been created yet. The following /// explanations are provided: @@ -3165,7 +3441,7 @@ public virtual Task ExplainDataFrameAnalytics /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3187,7 +3463,7 @@ public virtual Task ExplainDataFrameAnalytics /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushJobResponse FlushJob(FlushJobRequest request) @@ -3208,7 +3484,7 @@ public virtual FlushJobResponse FlushJob(FlushJobRequest request) /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushJobAsync(FlushJobRequest request, CancellationToken cancellationToken = default) { @@ -3228,7 +3504,7 @@ public virtual Task FlushJobAsync(FlushJobRequest request, Can /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushJobResponse FlushJob(FlushJobRequestDescriptor descriptor) @@ -3249,7 +3525,7 @@ public virtual FlushJobResponse FlushJob(FlushJobRequestDescriptor descriptor) /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -3271,7 +3547,7 @@ public virtual FlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id jobId) /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -3294,7 +3570,7 @@ public virtual FlushJobResponse FlushJob(Elastic.Clients.Elasticsearch.Id jobId, /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushJobAsync(FlushJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3314,7 +3590,7 @@ public virtual Task FlushJobAsync(FlushJobRequestDescriptor de /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -3335,7 +3611,7 @@ public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearc /// persists the model state to disk and the job must be opened again before /// analyzing further data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3355,7 +3631,7 @@ public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearc /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForecastResponse Forecast(ForecastRequest request) @@ -3374,7 +3650,7 @@ public virtual ForecastResponse Forecast(ForecastRequest request) /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForecastAsync(ForecastRequest request, CancellationToken cancellationToken = default) { @@ -3392,7 +3668,7 @@ public virtual Task ForecastAsync(ForecastRequest request, Can /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForecastResponse Forecast(ForecastRequestDescriptor descriptor) @@ -3411,7 +3687,7 @@ public virtual ForecastResponse Forecast(ForecastRequestDescriptor descriptor) /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForecastResponse Forecast(Elastic.Clients.Elasticsearch.Id jobId) @@ -3431,7 +3707,7 @@ public virtual ForecastResponse Forecast(Elastic.Clients.Elasticsearch.Id jobId) /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForecastResponse Forecast(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -3452,7 +3728,7 @@ public virtual ForecastResponse Forecast(Elastic.Clients.Elasticsearch.Id jobId, /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForecastAsync(ForecastRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3470,7 +3746,7 @@ public virtual Task ForecastAsync(ForecastRequestDescriptor de /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForecastAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -3489,7 +3765,7 @@ public virtual Task ForecastAsync(Elastic.Clients.Elasticsearc /// over_field_name in its configuration. Forcasts predict future behavior /// based on historical data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ForecastAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3504,7 +3780,7 @@ public virtual Task ForecastAsync(Elastic.Clients.Elasticsearc /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(GetBucketsRequest request) @@ -3518,7 +3794,7 @@ public virtual GetBucketsResponse GetBuckets(GetBucketsRequest request) /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(GetBucketsRequest request, CancellationToken cancellationToken = default) { @@ -3531,7 +3807,7 @@ public virtual Task GetBucketsAsync(GetBucketsRequest reques /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(GetBucketsRequestDescriptor descriptor) @@ -3545,7 +3821,7 @@ public virtual GetBucketsResponse GetBuckets(GetBucketsRequestDescrip /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp) @@ -3560,7 +3836,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp, Action> configureRequest) @@ -3576,7 +3852,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId) @@ -3591,7 +3867,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest) @@ -3607,7 +3883,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(GetBucketsRequestDescriptor descriptor) @@ -3621,7 +3897,7 @@ public virtual GetBucketsResponse GetBuckets(GetBucketsRequestDescriptor descrip /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp) @@ -3636,7 +3912,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jo /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp, Action configureRequest) @@ -3652,7 +3928,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jo /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId) @@ -3667,7 +3943,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jo /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -3683,7 +3959,7 @@ public virtual GetBucketsResponse GetBuckets(Elastic.Clients.Elasticsearch.Id jo /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(GetBucketsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3696,7 +3972,7 @@ public virtual Task GetBucketsAsync(GetBucketsReq /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp, CancellationToken cancellationToken = default) { @@ -3710,7 +3986,7 @@ public virtual Task GetBucketsAsync(Elastic.Clien /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3725,7 +4001,7 @@ public virtual Task GetBucketsAsync(Elastic.Clien /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -3739,7 +4015,7 @@ public virtual Task GetBucketsAsync(Elastic.Clien /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3754,7 +4030,7 @@ public virtual Task GetBucketsAsync(Elastic.Clien /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(GetBucketsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3767,7 +4043,7 @@ public virtual Task GetBucketsAsync(GetBucketsRequestDescrip /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp, CancellationToken cancellationToken = default) { @@ -3781,7 +4057,7 @@ public virtual Task GetBucketsAsync(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, DateTimeOffset? timestamp, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3796,7 +4072,7 @@ public virtual Task GetBucketsAsync(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -3810,7 +4086,7 @@ public virtual Task GetBucketsAsync(Elastic.Clients.Elastics /// Get anomaly detection job results for buckets. /// The API presents a chronological view of the records, grouped by bucket. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3824,7 +4100,7 @@ public virtual Task GetBucketsAsync(Elastic.Clients.Elastics /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarEventsResponse GetCalendarEvents(GetCalendarEventsRequest request) @@ -3837,7 +4113,7 @@ public virtual GetCalendarEventsResponse GetCalendarEvents(GetCalendarEventsRequ /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarEventsAsync(GetCalendarEventsRequest request, CancellationToken cancellationToken = default) { @@ -3849,7 +4125,7 @@ public virtual Task GetCalendarEventsAsync(GetCalenda /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarEventsResponse GetCalendarEvents(GetCalendarEventsRequestDescriptor descriptor) @@ -3862,7 +4138,7 @@ public virtual GetCalendarEventsResponse GetCalendarEvents(GetCalendarEventsRequ /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarEventsResponse GetCalendarEvents(Elastic.Clients.Elasticsearch.Id calendarId) @@ -3876,7 +4152,7 @@ public virtual GetCalendarEventsResponse GetCalendarEvents(Elastic.Clients.Elast /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarEventsResponse GetCalendarEvents(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest) @@ -3891,7 +4167,7 @@ public virtual GetCalendarEventsResponse GetCalendarEvents(Elastic.Clients.Elast /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarEventsAsync(GetCalendarEventsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3903,7 +4179,7 @@ public virtual Task GetCalendarEventsAsync(GetCalenda /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendarId, CancellationToken cancellationToken = default) { @@ -3916,7 +4192,7 @@ public virtual Task GetCalendarEventsAsync(Elastic.Cl /// /// Get info about events in calendars. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3930,7 +4206,7 @@ public virtual Task GetCalendarEventsAsync(Elastic.Cl /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars(GetCalendarsRequest request) @@ -3943,7 +4219,7 @@ public virtual GetCalendarsResponse GetCalendars(GetCalendarsRequest request) /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarsAsync(GetCalendarsRequest request, CancellationToken cancellationToken = default) { @@ -3955,7 +4231,7 @@ public virtual Task GetCalendarsAsync(GetCalendarsRequest /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars(GetCalendarsRequestDescriptor descriptor) @@ -3968,7 +4244,7 @@ public virtual GetCalendarsResponse GetCalendars(GetCalendarsRequestDescriptor d /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars(Elastic.Clients.Elasticsearch.Id? calendarId) @@ -3982,7 +4258,7 @@ public virtual GetCalendarsResponse GetCalendars(Elastic.Clients.Elasticsearch.I /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars(Elastic.Clients.Elasticsearch.Id? calendarId, Action configureRequest) @@ -3997,7 +4273,7 @@ public virtual GetCalendarsResponse GetCalendars(Elastic.Clients.Elasticsearch.I /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars() @@ -4011,7 +4287,7 @@ public virtual GetCalendarsResponse GetCalendars() /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars(Action configureRequest) @@ -4026,7 +4302,7 @@ public virtual GetCalendarsResponse GetCalendars(Action /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarsAsync(GetCalendarsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4038,7 +4314,7 @@ public virtual Task GetCalendarsAsync(GetCalendarsRequestD /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarsAsync(Elastic.Clients.Elasticsearch.Id? calendarId, CancellationToken cancellationToken = default) { @@ -4051,7 +4327,7 @@ public virtual Task GetCalendarsAsync(Elastic.Clients.Elas /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarsAsync(Elastic.Clients.Elasticsearch.Id? calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4065,7 +4341,7 @@ public virtual Task GetCalendarsAsync(Elastic.Clients.Elas /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarsAsync(CancellationToken cancellationToken = default) { @@ -4078,7 +4354,7 @@ public virtual Task GetCalendarsAsync(CancellationToken ca /// /// Get calendar configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCalendarsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4092,7 +4368,7 @@ public virtual Task GetCalendarsAsync(Action /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(GetCategoriesRequest request) @@ -4105,7 +4381,7 @@ public virtual GetCategoriesResponse GetCategories(GetCategoriesRequest request) /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCategoriesAsync(GetCategoriesRequest request, CancellationToken cancellationToken = default) { @@ -4117,7 +4393,7 @@ public virtual Task GetCategoriesAsync(GetCategoriesReque /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(GetCategoriesRequestDescriptor descriptor) @@ -4130,7 +4406,7 @@ public virtual GetCategoriesResponse GetCategories(GetCategoriesRequestDescripto /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId) @@ -4144,7 +4420,7 @@ public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId, Action configureRequest) @@ -4159,7 +4435,7 @@ public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId) @@ -4173,7 +4449,7 @@ public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -4188,7 +4464,7 @@ public virtual GetCategoriesResponse GetCategories(Elastic.Clients.Elasticsearch /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCategoriesAsync(GetCategoriesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4200,7 +4476,7 @@ public virtual Task GetCategoriesAsync(GetCategoriesReque /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId, CancellationToken cancellationToken = default) { @@ -4213,7 +4489,7 @@ public virtual Task GetCategoriesAsync(Elastic.Clients.El /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, string? categoryId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4227,7 +4503,7 @@ public virtual Task GetCategoriesAsync(Elastic.Clients.El /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -4240,7 +4516,7 @@ public virtual Task GetCategoriesAsync(Elastic.Clients.El /// /// Get anomaly detection job results for categories. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetCategoriesAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4259,7 +4535,7 @@ public virtual Task GetCategoriesAsync(Elastic.Clients.El /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds(GetDatafeedsRequest request) @@ -4277,7 +4553,7 @@ public virtual GetDatafeedsResponse GetDatafeeds(GetDatafeedsRequest request) /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedsAsync(GetDatafeedsRequest request, CancellationToken cancellationToken = default) { @@ -4294,7 +4570,7 @@ public virtual Task GetDatafeedsAsync(GetDatafeedsRequest /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds(GetDatafeedsRequestDescriptor descriptor) @@ -4312,7 +4588,7 @@ public virtual GetDatafeedsResponse GetDatafeeds(GetDatafeedsRequestDescriptor d /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds(Elastic.Clients.Elasticsearch.Ids? datafeedId) @@ -4331,7 +4607,7 @@ public virtual GetDatafeedsResponse GetDatafeeds(Elastic.Clients.Elasticsearch.I /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds(Elastic.Clients.Elasticsearch.Ids? datafeedId, Action configureRequest) @@ -4351,7 +4627,7 @@ public virtual GetDatafeedsResponse GetDatafeeds(Elastic.Clients.Elasticsearch.I /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds() @@ -4370,7 +4646,7 @@ public virtual GetDatafeedsResponse GetDatafeeds() /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds(Action configureRequest) @@ -4390,7 +4666,7 @@ public virtual GetDatafeedsResponse GetDatafeeds(Action<feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedsAsync(GetDatafeedsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4407,7 +4683,7 @@ public virtual Task GetDatafeedsAsync(GetDatafeedsRequestD /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedsAsync(Elastic.Clients.Elasticsearch.Ids? datafeedId, CancellationToken cancellationToken = default) { @@ -4425,7 +4701,7 @@ public virtual Task GetDatafeedsAsync(Elastic.Clients.Elas /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedsAsync(Elastic.Clients.Elasticsearch.Ids? datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4444,7 +4720,7 @@ public virtual Task GetDatafeedsAsync(Elastic.Clients.Elas /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedsAsync(CancellationToken cancellationToken = default) { @@ -4462,7 +4738,7 @@ public virtual Task GetDatafeedsAsync(CancellationToken ca /// <feed_id>, or by omitting the <feed_id>. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4474,7 +4750,7 @@ public virtual Task GetDatafeedsAsync(Action /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4482,7 +4758,7 @@ public virtual Task GetDatafeedsAsync(Actiondatafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest request) @@ -4493,7 +4769,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4501,7 +4777,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedStatsAsync(GetDatafeedStatsRequest request, CancellationToken cancellationToken = default) { @@ -4511,7 +4787,7 @@ public virtual Task GetDatafeedStatsAsync(GetDatafeedS /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4519,7 +4795,7 @@ public virtual Task GetDatafeedStatsAsync(GetDatafeedS /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequestDescriptor descriptor) @@ -4530,7 +4806,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4538,7 +4814,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats(Elastic.Clients.Elasticsearch.Ids? datafeedId) @@ -4550,7 +4826,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(Elastic.Clients.Elastic /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4558,7 +4834,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(Elastic.Clients.Elastic /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats(Elastic.Clients.Elasticsearch.Ids? datafeedId, Action configureRequest) @@ -4571,7 +4847,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(Elastic.Clients.Elastic /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4579,7 +4855,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(Elastic.Clients.Elastic /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats() @@ -4591,7 +4867,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats() /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4599,7 +4875,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats() /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats(Action configureRequest) @@ -4612,7 +4888,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(Action /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4620,7 +4896,7 @@ public virtual GetDatafeedStatsResponse GetDatafeedStats(Actiondatafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedStatsAsync(GetDatafeedStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4630,7 +4906,7 @@ public virtual Task GetDatafeedStatsAsync(GetDatafeedS /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4638,7 +4914,7 @@ public virtual Task GetDatafeedStatsAsync(GetDatafeedS /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedStatsAsync(Elastic.Clients.Elasticsearch.Ids? datafeedId, CancellationToken cancellationToken = default) { @@ -4649,7 +4925,7 @@ public virtual Task GetDatafeedStatsAsync(Elastic.Clie /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4657,7 +4933,7 @@ public virtual Task GetDatafeedStatsAsync(Elastic.Clie /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedStatsAsync(Elastic.Clients.Elasticsearch.Ids? datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4669,7 +4945,7 @@ public virtual Task GetDatafeedStatsAsync(Elastic.Clie /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4677,7 +4953,7 @@ public virtual Task GetDatafeedStatsAsync(Elastic.Clie /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedStatsAsync(CancellationToken cancellationToken = default) { @@ -4688,7 +4964,7 @@ public virtual Task GetDatafeedStatsAsync(Cancellation /// /// - /// Get datafeeds usage info. + /// Get datafeed stats. /// You can get statistics for multiple datafeeds in a single API request by /// using a comma-separated list of datafeeds or a wildcard expression. You can /// get statistics for all datafeeds by using _all, by specifying * as the @@ -4696,7 +4972,7 @@ public virtual Task GetDatafeedStatsAsync(Cancellation /// only information you receive is the datafeed_id and the state. /// This API returns a maximum of 10,000 datafeeds. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDatafeedStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4713,7 +4989,7 @@ public virtual Task GetDatafeedStatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequest request) @@ -4729,7 +5005,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameA /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -4744,7 +5020,7 @@ public virtual Task GetDataFrameAnalyticsAsync(Ge /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequestDescriptor descriptor) @@ -4760,7 +5036,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Ge /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) @@ -4777,7 +5053,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(El /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -4795,7 +5071,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(El /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics() @@ -4812,7 +5088,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics() /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action> configureRequest) @@ -4830,7 +5106,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Ac /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequestDescriptor descriptor) @@ -4846,7 +5122,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameA /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) @@ -4863,7 +5139,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clien /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -4881,7 +5157,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Elastic.Clien /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics() @@ -4898,7 +5174,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics() /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action configureRequest) @@ -4916,7 +5192,7 @@ public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4931,7 +5207,7 @@ public virtual Task GetDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -4947,7 +5223,7 @@ public virtual Task GetDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4964,7 +5240,7 @@ public virtual Task GetDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -4980,7 +5256,7 @@ public virtual Task GetDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4997,7 +5273,7 @@ public virtual Task GetDataFrameAnalyticsAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(GetDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5012,7 +5288,7 @@ public virtual Task GetDataFrameAnalyticsAsync(Ge /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -5028,7 +5304,7 @@ public virtual Task GetDataFrameAnalyticsAsync(El /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5045,7 +5321,7 @@ public virtual Task GetDataFrameAnalyticsAsync(El /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -5061,7 +5337,7 @@ public virtual Task GetDataFrameAnalyticsAsync(Ca /// API request by using a comma-separated list of data frame analytics jobs or a /// wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5073,9 +5349,9 @@ public virtual Task GetDataFrameAnalyticsAsync(Ac /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request) @@ -5086,9 +5362,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Get /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequest request, CancellationToken cancellationToken = default) { @@ -5098,9 +5374,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequestDescriptor descriptor) @@ -5111,9 +5387,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id) @@ -5125,9 +5401,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -5140,9 +5416,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats() @@ -5154,9 +5430,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Action> configureRequest) @@ -5169,9 +5445,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequestDescriptor descriptor) @@ -5182,9 +5458,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Get /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id) @@ -5196,9 +5472,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Ela /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -5211,9 +5487,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Ela /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats() @@ -5225,9 +5501,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats() /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Action configureRequest) @@ -5240,9 +5516,9 @@ public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(Act /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5252,9 +5528,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -5265,9 +5541,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5279,9 +5555,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) { @@ -5292,9 +5568,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5306,9 +5582,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(GetDataFrameAnalyticsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5318,9 +5594,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -5331,9 +5607,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5345,9 +5621,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(CancellationToken cancellationToken = default) { @@ -5358,9 +5634,9 @@ public virtual Task GetDataFrameAnalyticsSta /// /// - /// Get data frame analytics jobs usage info. + /// Get data frame analytics job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataFrameAnalyticsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5375,7 +5651,7 @@ public virtual Task GetDataFrameAnalyticsSta /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters(GetFiltersRequest request) @@ -5389,7 +5665,7 @@ public virtual GetFiltersResponse GetFilters(GetFiltersRequest request) /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFiltersAsync(GetFiltersRequest request, CancellationToken cancellationToken = default) { @@ -5402,7 +5678,7 @@ public virtual Task GetFiltersAsync(GetFiltersRequest reques /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters(GetFiltersRequestDescriptor descriptor) @@ -5416,7 +5692,7 @@ public virtual GetFiltersResponse GetFilters(GetFiltersRequestDescriptor descrip /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters(Elastic.Clients.Elasticsearch.Ids? filterId) @@ -5431,7 +5707,7 @@ public virtual GetFiltersResponse GetFilters(Elastic.Clients.Elasticsearch.Ids? /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters(Elastic.Clients.Elasticsearch.Ids? filterId, Action configureRequest) @@ -5447,7 +5723,7 @@ public virtual GetFiltersResponse GetFilters(Elastic.Clients.Elasticsearch.Ids? /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters() @@ -5462,7 +5738,7 @@ public virtual GetFiltersResponse GetFilters() /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters(Action configureRequest) @@ -5478,7 +5754,7 @@ public virtual GetFiltersResponse GetFilters(Action /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFiltersAsync(GetFiltersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5491,7 +5767,7 @@ public virtual Task GetFiltersAsync(GetFiltersRequestDescrip /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFiltersAsync(Elastic.Clients.Elasticsearch.Ids? filterId, CancellationToken cancellationToken = default) { @@ -5505,7 +5781,7 @@ public virtual Task GetFiltersAsync(Elastic.Clients.Elastics /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFiltersAsync(Elastic.Clients.Elasticsearch.Ids? filterId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5520,7 +5796,7 @@ public virtual Task GetFiltersAsync(Elastic.Clients.Elastics /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFiltersAsync(CancellationToken cancellationToken = default) { @@ -5534,7 +5810,7 @@ public virtual Task GetFiltersAsync(CancellationToken cancel /// Get filters. /// You can get a single filter or all filters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetFiltersAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5551,7 +5827,7 @@ public virtual Task GetFiltersAsync(Actioninfluencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequest request) @@ -5567,7 +5843,7 @@ public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequest reque /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(GetInfluencersRequest request, CancellationToken cancellationToken = default) { @@ -5582,7 +5858,7 @@ public virtual Task GetInfluencersAsync(GetInfluencersRe /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequestDescriptor descriptor) @@ -5598,7 +5874,7 @@ public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRe /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id jobId) @@ -5615,7 +5891,7 @@ public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients. /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest) @@ -5633,7 +5909,7 @@ public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients. /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequestDescriptor descriptor) @@ -5649,7 +5925,7 @@ public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequestDescri /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id jobId) @@ -5666,7 +5942,7 @@ public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsear /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -5684,7 +5960,7 @@ public virtual GetInfluencersResponse GetInfluencers(Elastic.Clients.Elasticsear /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(GetInfluencersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5699,7 +5975,7 @@ public virtual Task GetInfluencersAsync(GetIn /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -5715,7 +5991,7 @@ public virtual Task GetInfluencersAsync(Elast /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5732,7 +6008,7 @@ public virtual Task GetInfluencersAsync(Elast /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(GetInfluencersRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5747,7 +6023,7 @@ public virtual Task GetInfluencersAsync(GetInfluencersRe /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -5763,7 +6039,7 @@ public virtual Task GetInfluencersAsync(Elastic.Clients. /// the anomalies. Influencer results are available only if an /// influencer_field_name is specified in the job configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetInfluencersAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5781,7 +6057,7 @@ public virtual Task GetInfluencersAsync(Elastic.Clients. /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequest request) @@ -5798,7 +6074,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequest request) /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequest request, CancellationToken cancellationToken = default) { @@ -5814,7 +6090,7 @@ public virtual Task GetJobsAsync(GetJobsRequest request, Cancel /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) @@ -5831,7 +6107,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Ids? jobId) @@ -5849,7 +6125,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Ids? jobId) /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Ids? jobId, Action configureRequest) @@ -5868,7 +6144,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Ids? jobId, /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs() @@ -5886,7 +6162,7 @@ public virtual GetJobsResponse GetJobs() /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Action configureRequest) @@ -5905,7 +6181,7 @@ public virtual GetJobsResponse GetJobs(Action configur /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5921,7 +6197,7 @@ public virtual Task GetJobsAsync(GetJobsRequestDescriptor descr /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Ids? jobId, CancellationToken cancellationToken = default) { @@ -5938,7 +6214,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Ids? jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5956,7 +6232,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) { @@ -5973,7 +6249,7 @@ public virtual Task GetJobsAsync(CancellationToken cancellation /// expression. You can get information for all anomaly detection jobs by using /// _all, by specifying * as the <job_id>, or by omitting the <job_id>. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5985,9 +6261,9 @@ public virtual Task GetJobsAsync(Action /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats(GetJobStatsRequest request) @@ -5998,9 +6274,9 @@ public virtual GetJobStatsResponse GetJobStats(GetJobStatsRequest request) /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobStatsAsync(GetJobStatsRequest request, CancellationToken cancellationToken = default) { @@ -6010,9 +6286,9 @@ public virtual Task GetJobStatsAsync(GetJobStatsRequest req /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats(GetJobStatsRequestDescriptor descriptor) @@ -6023,9 +6299,9 @@ public virtual GetJobStatsResponse GetJobStats(GetJobStatsRequestDescriptor desc /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats(Elastic.Clients.Elasticsearch.Id? jobId) @@ -6037,9 +6313,9 @@ public virtual GetJobStatsResponse GetJobStats(Elastic.Clients.Elasticsearch.Id? /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats(Elastic.Clients.Elasticsearch.Id? jobId, Action configureRequest) @@ -6052,9 +6328,9 @@ public virtual GetJobStatsResponse GetJobStats(Elastic.Clients.Elasticsearch.Id? /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats() @@ -6066,9 +6342,9 @@ public virtual GetJobStatsResponse GetJobStats() /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats(Action configureRequest) @@ -6081,9 +6357,9 @@ public virtual GetJobStatsResponse GetJobStats(Action /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobStatsAsync(GetJobStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6093,9 +6369,9 @@ public virtual Task GetJobStatsAsync(GetJobStatsRequestDesc /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobStatsAsync(Elastic.Clients.Elasticsearch.Id? jobId, CancellationToken cancellationToken = default) { @@ -6106,9 +6382,9 @@ public virtual Task GetJobStatsAsync(Elastic.Clients.Elasti /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobStatsAsync(Elastic.Clients.Elasticsearch.Id? jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6120,9 +6396,9 @@ public virtual Task GetJobStatsAsync(Elastic.Clients.Elasti /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobStatsAsync(CancellationToken cancellationToken = default) { @@ -6133,9 +6409,9 @@ public virtual Task GetJobStatsAsync(CancellationToken canc /// /// - /// Get anomaly detection jobs usage info. + /// Get anomaly detection job stats. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6151,7 +6427,7 @@ public virtual Task GetJobStatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats(GetMemoryStatsRequest request) @@ -6166,7 +6442,7 @@ public virtual GetMemoryStatsResponse GetMemoryStats(GetMemoryStatsRequest reque /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMemoryStatsAsync(GetMemoryStatsRequest request, CancellationToken cancellationToken = default) { @@ -6180,7 +6456,7 @@ public virtual Task GetMemoryStatsAsync(GetMemoryStatsRe /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats(GetMemoryStatsRequestDescriptor descriptor) @@ -6195,7 +6471,7 @@ public virtual GetMemoryStatsResponse GetMemoryStats(GetMemoryStatsRequestDescri /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats(Elastic.Clients.Elasticsearch.Id? nodeId) @@ -6211,7 +6487,7 @@ public virtual GetMemoryStatsResponse GetMemoryStats(Elastic.Clients.Elasticsear /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats(Elastic.Clients.Elasticsearch.Id? nodeId, Action configureRequest) @@ -6228,7 +6504,7 @@ public virtual GetMemoryStatsResponse GetMemoryStats(Elastic.Clients.Elasticsear /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats() @@ -6244,7 +6520,7 @@ public virtual GetMemoryStatsResponse GetMemoryStats() /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats(Action configureRequest) @@ -6261,7 +6537,7 @@ public virtual GetMemoryStatsResponse GetMemoryStats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMemoryStatsAsync(GetMemoryStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6275,7 +6551,7 @@ public virtual Task GetMemoryStatsAsync(GetMemoryStatsRe /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMemoryStatsAsync(Elastic.Clients.Elasticsearch.Id? nodeId, CancellationToken cancellationToken = default) { @@ -6290,7 +6566,7 @@ public virtual Task GetMemoryStatsAsync(Elastic.Clients. /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMemoryStatsAsync(Elastic.Clients.Elasticsearch.Id? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6306,7 +6582,7 @@ public virtual Task GetMemoryStatsAsync(Elastic.Clients. /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMemoryStatsAsync(CancellationToken cancellationToken = default) { @@ -6321,7 +6597,7 @@ public virtual Task GetMemoryStatsAsync(CancellationToke /// Get information about how machine learning jobs and trained models are using memory, /// on each node, both within the JVM heap, and natively, outside of the JVM. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetMemoryStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6335,7 +6611,7 @@ public virtual Task GetMemoryStatsAsync(Action /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequest request) @@ -6348,7 +6624,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequ /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(GetModelSnapshotsRequest request, CancellationToken cancellationToken = default) { @@ -6360,7 +6636,7 @@ public virtual Task GetModelSnapshotsAsync(GetModelSn /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequestDescriptor descriptor) @@ -6373,7 +6649,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSn /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId) @@ -6387,7 +6663,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId, Action> configureRequest) @@ -6402,7 +6678,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId) @@ -6416,7 +6692,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest) @@ -6431,7 +6707,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequestDescriptor descriptor) @@ -6444,7 +6720,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequ /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId) @@ -6458,7 +6734,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elast /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId, Action configureRequest) @@ -6473,7 +6749,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elast /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId) @@ -6487,7 +6763,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elast /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -6502,7 +6778,7 @@ public virtual GetModelSnapshotsResponse GetModelSnapshots(Elastic.Clients.Elast /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(GetModelSnapshotsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6514,7 +6790,7 @@ public virtual Task GetModelSnapshotsAsync /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId, CancellationToken cancellationToken = default) { @@ -6527,7 +6803,7 @@ public virtual Task GetModelSnapshotsAsync /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6541,7 +6817,7 @@ public virtual Task GetModelSnapshotsAsync /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -6554,7 +6830,7 @@ public virtual Task GetModelSnapshotsAsync /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -6568,7 +6844,7 @@ public virtual Task GetModelSnapshotsAsync /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(GetModelSnapshotsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6580,7 +6856,7 @@ public virtual Task GetModelSnapshotsAsync(GetModelSn /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId, CancellationToken cancellationToken = default) { @@ -6593,7 +6869,7 @@ public virtual Task GetModelSnapshotsAsync(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id? snapshotId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6607,7 +6883,7 @@ public virtual Task GetModelSnapshotsAsync(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -6620,7 +6896,7 @@ public virtual Task GetModelSnapshotsAsync(Elastic.Cl /// /// Get model snapshots info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6634,7 +6910,7 @@ public virtual Task GetModelSnapshotsAsync(Elastic.Cl /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats(GetModelSnapshotUpgradeStatsRequest request) @@ -6647,7 +6923,7 @@ public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotUpgradeStatsAsync(GetModelSnapshotUpgradeStatsRequest request, CancellationToken cancellationToken = default) { @@ -6659,7 +6935,7 @@ public virtual Task GetModelSnapshotUpgrad /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats(GetModelSnapshotUpgradeStatsRequestDescriptor descriptor) @@ -6672,7 +6948,7 @@ public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) @@ -6686,7 +6962,7 @@ public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest) @@ -6701,7 +6977,7 @@ public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotUpgradeStatsAsync(GetModelSnapshotUpgradeStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6713,7 +6989,7 @@ public virtual Task GetModelSnapshotUpgrad /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotUpgradeStatsAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, CancellationToken cancellationToken = default) { @@ -6726,7 +7002,7 @@ public virtual Task GetModelSnapshotUpgrad /// /// Get anomaly detection job model snapshot upgrade usage info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetModelSnapshotUpgradeStatsAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6760,7 +7036,7 @@ public virtual Task GetModelSnapshotUpgrad /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetOverallBucketsResponse GetOverallBuckets(GetOverallBucketsRequest request) @@ -6793,7 +7069,7 @@ public virtual GetOverallBucketsResponse GetOverallBuckets(GetOverallBucketsRequ /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetOverallBucketsAsync(GetOverallBucketsRequest request, CancellationToken cancellationToken = default) { @@ -6825,7 +7101,7 @@ public virtual Task GetOverallBucketsAsync(GetOverall /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetOverallBucketsResponse GetOverallBuckets(GetOverallBucketsRequestDescriptor descriptor) @@ -6858,7 +7134,7 @@ public virtual GetOverallBucketsResponse GetOverallBuckets(GetOverallBucketsRequ /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetOverallBucketsResponse GetOverallBuckets(Elastic.Clients.Elasticsearch.Id jobId) @@ -6892,7 +7168,7 @@ public virtual GetOverallBucketsResponse GetOverallBuckets(Elastic.Clients.Elast /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetOverallBucketsResponse GetOverallBuckets(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -6927,7 +7203,7 @@ public virtual GetOverallBucketsResponse GetOverallBuckets(Elastic.Clients.Elast /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetOverallBucketsAsync(GetOverallBucketsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6959,7 +7235,7 @@ public virtual Task GetOverallBucketsAsync(GetOverall /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetOverallBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -6992,7 +7268,7 @@ public virtual Task GetOverallBucketsAsync(Elastic.Cl /// overall_score of the overall buckets that have a span equal to the /// jobs' largest bucket span. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetOverallBucketsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7016,7 +7292,7 @@ public virtual Task GetOverallBucketsAsync(Elastic.Cl /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(GetRecordsRequest request) @@ -7039,7 +7315,7 @@ public virtual GetRecordsResponse GetRecords(GetRecordsRequest request) /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(GetRecordsRequest request, CancellationToken cancellationToken = default) { @@ -7061,7 +7337,7 @@ public virtual Task GetRecordsAsync(GetRecordsRequest reques /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(GetRecordsRequestDescriptor descriptor) @@ -7084,7 +7360,7 @@ public virtual GetRecordsResponse GetRecords(GetRecordsRequestDescrip /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id jobId) @@ -7108,7 +7384,7 @@ public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elastics /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest) @@ -7133,7 +7409,7 @@ public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elastics /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(GetRecordsRequestDescriptor descriptor) @@ -7156,7 +7432,7 @@ public virtual GetRecordsResponse GetRecords(GetRecordsRequestDescriptor descrip /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id jobId) @@ -7180,7 +7456,7 @@ public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id jo /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -7205,7 +7481,7 @@ public virtual GetRecordsResponse GetRecords(Elastic.Clients.Elasticsearch.Id jo /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(GetRecordsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7227,7 +7503,7 @@ public virtual Task GetRecordsAsync(GetRecordsReq /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -7250,7 +7526,7 @@ public virtual Task GetRecordsAsync(Elastic.Clien /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7274,7 +7550,7 @@ public virtual Task GetRecordsAsync(Elastic.Clien /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(GetRecordsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7296,7 +7572,7 @@ public virtual Task GetRecordsAsync(GetRecordsRequestDescrip /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -7319,7 +7595,7 @@ public virtual Task GetRecordsAsync(Elastic.Clients.Elastics /// bucket, which relates to the number of time series being modeled and the /// number of detectors. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRecordsAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7333,7 +7609,7 @@ public virtual Task GetRecordsAsync(Elastic.Clients.Elastics /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels(GetTrainedModelsRequest request) @@ -7346,7 +7622,7 @@ public virtual GetTrainedModelsResponse GetTrainedModels(GetTrainedModelsRequest /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsAsync(GetTrainedModelsRequest request, CancellationToken cancellationToken = default) { @@ -7358,7 +7634,7 @@ public virtual Task GetTrainedModelsAsync(GetTrainedMo /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels(GetTrainedModelsRequestDescriptor descriptor) @@ -7371,7 +7647,7 @@ public virtual GetTrainedModelsResponse GetTrainedModels(GetTrainedModelsRequest /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels(Elastic.Clients.Elasticsearch.Ids? modelId) @@ -7385,7 +7661,7 @@ public virtual GetTrainedModelsResponse GetTrainedModels(Elastic.Clients.Elastic /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels(Elastic.Clients.Elasticsearch.Ids? modelId, Action configureRequest) @@ -7400,7 +7676,7 @@ public virtual GetTrainedModelsResponse GetTrainedModels(Elastic.Clients.Elastic /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels() @@ -7414,7 +7690,7 @@ public virtual GetTrainedModelsResponse GetTrainedModels() /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels(Action configureRequest) @@ -7429,7 +7705,7 @@ public virtual GetTrainedModelsResponse GetTrainedModels(Action /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsAsync(GetTrainedModelsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7441,7 +7717,7 @@ public virtual Task GetTrainedModelsAsync(GetTrainedMo /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsAsync(Elastic.Clients.Elasticsearch.Ids? modelId, CancellationToken cancellationToken = default) { @@ -7454,7 +7730,7 @@ public virtual Task GetTrainedModelsAsync(Elastic.Clie /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsAsync(Elastic.Clients.Elasticsearch.Ids? modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7468,7 +7744,7 @@ public virtual Task GetTrainedModelsAsync(Elastic.Clie /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsAsync(CancellationToken cancellationToken = default) { @@ -7481,7 +7757,7 @@ public virtual Task GetTrainedModelsAsync(Cancellation /// /// Get trained model configuration info. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7497,7 +7773,7 @@ public virtual Task GetTrainedModelsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(GetTrainedModelsStatsRequest request) @@ -7512,7 +7788,7 @@ public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(GetTrainedMod /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsStatsAsync(GetTrainedModelsStatsRequest request, CancellationToken cancellationToken = default) { @@ -7526,7 +7802,7 @@ public virtual Task GetTrainedModelsStatsAsync(Ge /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(GetTrainedModelsStatsRequestDescriptor descriptor) @@ -7541,7 +7817,7 @@ public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(GetTrainedMod /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(Elastic.Clients.Elasticsearch.Ids? modelId) @@ -7557,7 +7833,7 @@ public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(Elastic.Clien /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(Elastic.Clients.Elasticsearch.Ids? modelId, Action configureRequest) @@ -7574,7 +7850,7 @@ public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(Elastic.Clien /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats() @@ -7590,7 +7866,7 @@ public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats() /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(Action configureRequest) @@ -7607,7 +7883,7 @@ public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsStatsAsync(GetTrainedModelsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7621,7 +7897,7 @@ public virtual Task GetTrainedModelsStatsAsync(Ge /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsStatsAsync(Elastic.Clients.Elasticsearch.Ids? modelId, CancellationToken cancellationToken = default) { @@ -7636,7 +7912,7 @@ public virtual Task GetTrainedModelsStatsAsync(El /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsStatsAsync(Elastic.Clients.Elasticsearch.Ids? modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7652,7 +7928,7 @@ public virtual Task GetTrainedModelsStatsAsync(El /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsStatsAsync(CancellationToken cancellationToken = default) { @@ -7667,7 +7943,7 @@ public virtual Task GetTrainedModelsStatsAsync(Ca /// You can get usage information for multiple trained /// models in a single API request by using a comma-separated list of model IDs or a wildcard expression. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTrainedModelsStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7681,7 +7957,7 @@ public virtual Task GetTrainedModelsStatsAsync(Ac /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequest request) @@ -7694,7 +7970,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequ /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(InferTrainedModelRequest request, CancellationToken cancellationToken = default) { @@ -7706,7 +7982,7 @@ public virtual Task InferTrainedModelAsync(InferTrain /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequestDescriptor descriptor) @@ -7719,7 +7995,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(InferTrain /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Clients.Elasticsearch.Id modelId) @@ -7733,7 +8009,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Cl /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Clients.Elasticsearch.Id modelId, Action> configureRequest) @@ -7748,7 +8024,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Cl /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequestDescriptor descriptor) @@ -7761,7 +8037,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequ /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Clients.Elasticsearch.Id modelId) @@ -7775,7 +8051,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Clients.Elast /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -7790,7 +8066,7 @@ public virtual InferTrainedModelResponse InferTrainedModel(Elastic.Clients.Elast /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(InferTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7802,7 +8078,7 @@ public virtual Task InferTrainedModelAsync /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -7815,7 +8091,7 @@ public virtual Task InferTrainedModelAsync /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7829,7 +8105,7 @@ public virtual Task InferTrainedModelAsync /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(InferTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7841,7 +8117,7 @@ public virtual Task InferTrainedModelAsync(InferTrain /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -7854,7 +8130,7 @@ public virtual Task InferTrainedModelAsync(Elastic.Cl /// /// Evaluate a trained model. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InferTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7875,7 +8151,7 @@ public virtual Task InferTrainedModelAsync(Elastic.Cl /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MlInfoResponse Info(MlInfoRequest request) @@ -7895,7 +8171,7 @@ public virtual MlInfoResponse Info(MlInfoRequest request) /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(MlInfoRequest request, CancellationToken cancellationToken = default) { @@ -7914,7 +8190,7 @@ public virtual Task InfoAsync(MlInfoRequest request, Cancellatio /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MlInfoResponse Info(MlInfoRequestDescriptor descriptor) @@ -7934,7 +8210,7 @@ public virtual MlInfoResponse Info(MlInfoRequestDescriptor descriptor) /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MlInfoResponse Info() @@ -7955,7 +8231,7 @@ public virtual MlInfoResponse Info() /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MlInfoResponse Info(Action configureRequest) @@ -7977,7 +8253,7 @@ public virtual MlInfoResponse Info(Action configureRequ /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(MlInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7996,7 +8272,7 @@ public virtual Task InfoAsync(MlInfoRequestDescriptor descriptor /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -8016,7 +8292,7 @@ public virtual Task InfoAsync(CancellationToken cancellationToke /// the maximum size of machine learning jobs that could run in the current /// cluster configuration. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8029,6 +8305,8 @@ public virtual Task InfoAsync(Action co /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8036,7 +8314,7 @@ public virtual Task InfoAsync(Action co /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenJobResponse OpenJob(OpenJobRequest request) @@ -8048,6 +8326,8 @@ public virtual OpenJobResponse OpenJob(OpenJobRequest request) /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8055,7 +8335,7 @@ public virtual OpenJobResponse OpenJob(OpenJobRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenJobAsync(OpenJobRequest request, CancellationToken cancellationToken = default) { @@ -8066,6 +8346,8 @@ public virtual Task OpenJobAsync(OpenJobRequest request, Cancel /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8073,7 +8355,7 @@ public virtual Task OpenJobAsync(OpenJobRequest request, Cancel /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenJobResponse OpenJob(OpenJobRequestDescriptor descriptor) @@ -8085,6 +8367,8 @@ public virtual OpenJobResponse OpenJob(OpenJobRequestDescriptor descriptor) /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8092,7 +8376,7 @@ public virtual OpenJobResponse OpenJob(OpenJobRequestDescriptor descriptor) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -8105,6 +8389,8 @@ public virtual OpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id jobId) /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8112,7 +8398,7 @@ public virtual OpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id jobId) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -8126,6 +8412,8 @@ public virtual OpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id jobId, A /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8133,7 +8421,7 @@ public virtual OpenJobResponse OpenJob(Elastic.Clients.Elasticsearch.Id jobId, A /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenJobAsync(OpenJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8144,6 +8432,8 @@ public virtual Task OpenJobAsync(OpenJobRequestDescriptor descr /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8151,7 +8441,7 @@ public virtual Task OpenJobAsync(OpenJobRequestDescriptor descr /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -8163,6 +8453,8 @@ public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch. /// /// /// Open anomaly detection jobs. + /// + /// /// An anomaly detection job must be opened 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. @@ -8170,7 +8462,7 @@ public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch. /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8184,7 +8476,7 @@ public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch. /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostCalendarEventsResponse PostCalendarEvents(PostCalendarEventsRequest request) @@ -8197,7 +8489,7 @@ public virtual PostCalendarEventsResponse PostCalendarEvents(PostCalendarEventsR /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostCalendarEventsAsync(PostCalendarEventsRequest request, CancellationToken cancellationToken = default) { @@ -8209,7 +8501,7 @@ public virtual Task PostCalendarEventsAsync(PostCale /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostCalendarEventsResponse PostCalendarEvents(PostCalendarEventsRequestDescriptor descriptor) @@ -8222,7 +8514,7 @@ public virtual PostCalendarEventsResponse PostCalendarEvents(PostCalendarEventsR /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostCalendarEventsResponse PostCalendarEvents(Elastic.Clients.Elasticsearch.Id calendarId) @@ -8236,7 +8528,7 @@ public virtual PostCalendarEventsResponse PostCalendarEvents(Elastic.Clients.Ela /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostCalendarEventsResponse PostCalendarEvents(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest) @@ -8251,7 +8543,7 @@ public virtual PostCalendarEventsResponse PostCalendarEvents(Elastic.Clients.Ela /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostCalendarEventsAsync(PostCalendarEventsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8263,7 +8555,7 @@ public virtual Task PostCalendarEventsAsync(PostCale /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendarId, CancellationToken cancellationToken = default) { @@ -8276,7 +8568,7 @@ public virtual Task PostCalendarEventsAsync(Elastic. /// /// Add scheduled events to the calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostCalendarEventsAsync(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8289,9 +8581,9 @@ public virtual Task PostCalendarEventsAsync(Elastic. /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(PreviewDataFrameAnalyticsRequest request) @@ -8303,9 +8595,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Previ /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(PreviewDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -8316,9 +8608,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(PreviewDataFrameAnalyticsRequestDescriptor descriptor) @@ -8330,9 +8622,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) @@ -8345,9 +8637,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -8361,9 +8653,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics() @@ -8376,9 +8668,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Action> configureRequest) @@ -8392,9 +8684,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(PreviewDataFrameAnalyticsRequestDescriptor descriptor) @@ -8406,9 +8698,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Previ /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id) @@ -8421,9 +8713,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Elast /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -8437,9 +8729,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Elast /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics() @@ -8452,9 +8744,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics() /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Action configureRequest) @@ -8468,9 +8760,9 @@ public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(Actio /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(PreviewDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8481,9 +8773,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -8495,9 +8787,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8510,9 +8802,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -8524,9 +8816,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8539,9 +8831,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(PreviewDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8552,9 +8844,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -8566,9 +8858,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8581,9 +8873,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -8595,9 +8887,9 @@ public virtual Task PreviewDataFrameAnalytics /// /// /// Preview features used by data frame analytics. - /// Previews the extracted features used by a data frame analytics config. + /// Preview the extracted features used by a data frame analytics config. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PreviewDataFrameAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8611,7 +8903,7 @@ public virtual Task PreviewDataFrameAnalytics /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarResponse PutCalendar(PutCalendarRequest request) @@ -8624,7 +8916,7 @@ public virtual PutCalendarResponse PutCalendar(PutCalendarRequest request) /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarAsync(PutCalendarRequest request, CancellationToken cancellationToken = default) { @@ -8636,7 +8928,7 @@ public virtual Task PutCalendarAsync(PutCalendarRequest req /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarResponse PutCalendar(PutCalendarRequestDescriptor descriptor) @@ -8649,7 +8941,7 @@ public virtual PutCalendarResponse PutCalendar(PutCalendarRequestDescriptor desc /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarResponse PutCalendar(Elastic.Clients.Elasticsearch.Id calendarId) @@ -8663,7 +8955,7 @@ public virtual PutCalendarResponse PutCalendar(Elastic.Clients.Elasticsearch.Id /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarResponse PutCalendar(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest) @@ -8678,7 +8970,7 @@ public virtual PutCalendarResponse PutCalendar(Elastic.Clients.Elasticsearch.Id /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarAsync(PutCalendarRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8690,7 +8982,7 @@ public virtual Task PutCalendarAsync(PutCalendarRequestDesc /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, CancellationToken cancellationToken = default) { @@ -8703,7 +8995,7 @@ public virtual Task PutCalendarAsync(Elastic.Clients.Elasti /// /// Create a calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarAsync(Elastic.Clients.Elasticsearch.Id calendarId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8717,7 +9009,7 @@ public virtual Task PutCalendarAsync(Elastic.Clients.Elasti /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarJobResponse PutCalendarJob(PutCalendarJobRequest request) @@ -8730,7 +9022,7 @@ public virtual PutCalendarJobResponse PutCalendarJob(PutCalendarJobRequest reque /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarJobAsync(PutCalendarJobRequest request, CancellationToken cancellationToken = default) { @@ -8742,7 +9034,7 @@ public virtual Task PutCalendarJobAsync(PutCalendarJobRe /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarJobResponse PutCalendarJob(PutCalendarJobRequestDescriptor descriptor) @@ -8755,7 +9047,7 @@ public virtual PutCalendarJobResponse PutCalendarJob(PutCalendarJobRequestDescri /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarJobResponse PutCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId) @@ -8769,7 +9061,7 @@ public virtual PutCalendarJobResponse PutCalendarJob(Elastic.Clients.Elasticsear /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarJobResponse PutCalendarJob(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest) @@ -8784,7 +9076,7 @@ public virtual PutCalendarJobResponse PutCalendarJob(Elastic.Clients.Elasticsear /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarJobAsync(PutCalendarJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8796,7 +9088,7 @@ public virtual Task PutCalendarJobAsync(PutCalendarJobRe /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, CancellationToken cancellationToken = default) { @@ -8809,7 +9101,7 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. /// /// Add anomaly detection job to calendar. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCalendarJobAsync(Elastic.Clients.Elasticsearch.Id calendarId, Elastic.Clients.Elasticsearch.Ids jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8834,7 +9126,7 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequest request) @@ -8858,7 +9150,7 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequest request) /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(PutDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -8881,7 +9173,7 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequest req /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDescriptor descriptor) @@ -8905,7 +9197,7 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDesc /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -8930,7 +9222,7 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasti /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action> configureRequest) @@ -8956,7 +9248,7 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasti /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDescriptor descriptor) @@ -8980,7 +9272,7 @@ public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequestDescriptor desc /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -9005,7 +9297,7 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -9031,7 +9323,7 @@ public virtual PutDatafeedResponse PutDatafeed(Elastic.Clients.Elasticsearch.Id /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(PutDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9054,7 +9346,7 @@ public virtual Task PutDatafeedAsync(PutDatafeed /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -9078,7 +9370,7 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9103,7 +9395,7 @@ public virtual Task PutDatafeedAsync(Elastic.Cli /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(PutDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9126,7 +9418,7 @@ public virtual Task PutDatafeedAsync(PutDatafeedRequestDesc /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -9150,7 +9442,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed /// directly to the .ml-config index. Do not give users write privileges on the .ml-config index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9173,7 +9465,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequest request) @@ -9195,7 +9487,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -9216,7 +9508,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequestDescriptor descriptor) @@ -9238,7 +9530,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Pu /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -9261,7 +9553,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -9285,7 +9577,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(El /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequestDescriptor descriptor) @@ -9307,7 +9599,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameA /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -9330,7 +9622,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -9354,7 +9646,7 @@ public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(Elastic.Clien /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9375,7 +9667,7 @@ public virtual Task PutDataFrameAnalyticsAsync /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9397,7 +9689,7 @@ public virtual Task PutDataFrameAnalyticsAsync /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9420,7 +9712,7 @@ public virtual Task PutDataFrameAnalyticsAsync /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(PutDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9441,7 +9733,7 @@ public virtual Task PutDataFrameAnalyticsAsync(Pu /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9463,7 +9755,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// /// If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9479,7 +9771,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutFilterResponse PutFilter(PutFilterRequest request) @@ -9494,7 +9786,7 @@ public virtual PutFilterResponse PutFilter(PutFilterRequest request) /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutFilterAsync(PutFilterRequest request, CancellationToken cancellationToken = default) { @@ -9508,7 +9800,7 @@ public virtual Task PutFilterAsync(PutFilterRequest request, /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutFilterResponse PutFilter(PutFilterRequestDescriptor descriptor) @@ -9523,7 +9815,7 @@ public virtual PutFilterResponse PutFilter(PutFilterRequestDescriptor descriptor /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutFilterResponse PutFilter(Elastic.Clients.Elasticsearch.Id filterId) @@ -9539,7 +9831,7 @@ public virtual PutFilterResponse PutFilter(Elastic.Clients.Elasticsearch.Id filt /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutFilterResponse PutFilter(Elastic.Clients.Elasticsearch.Id filterId, Action configureRequest) @@ -9556,7 +9848,7 @@ public virtual PutFilterResponse PutFilter(Elastic.Clients.Elasticsearch.Id filt /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutFilterAsync(PutFilterRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9570,7 +9862,7 @@ public virtual Task PutFilterAsync(PutFilterRequestDescriptor /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutFilterAsync(Elastic.Clients.Elasticsearch.Id filterId, CancellationToken cancellationToken = default) { @@ -9585,7 +9877,7 @@ public virtual Task PutFilterAsync(Elastic.Clients.Elasticsea /// A filter contains a list of strings. It can be used by one or more anomaly detection jobs. /// Specifically, filters are referenced in the custom_rules property of detector configuration objects. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutFilterAsync(Elastic.Clients.Elasticsearch.Id filterId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9598,10 +9890,12 @@ public virtual Task PutFilterAsync(Elastic.Clients.Elasticsea /// /// /// Create an anomaly detection job. + /// + /// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequest request) @@ -9613,10 +9907,12 @@ public virtual PutJobResponse PutJob(PutJobRequest request) /// /// /// Create an anomaly detection job. + /// + /// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequest request, CancellationToken cancellationToken = default) { @@ -9627,10 +9923,12 @@ public virtual Task PutJobAsync(PutJobRequest request, Cancellat /// /// /// Create an anomaly detection job. + /// + /// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) @@ -9642,10 +9940,12 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor /// /// Create an anomaly detection job. + /// + /// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) @@ -9657,10 +9957,12 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) /// /// /// Create an anomaly detection job. + /// + /// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9671,10 +9973,12 @@ public virtual Task PutJobAsync(PutJobRequestDescript /// /// /// Create an anomaly detection job. + /// + /// /// If you include a datafeed_config, you must have read index privileges on the source index. /// If you include a datafeed_config but do not provide a query, the datafeed uses {"match_all": {"boost": 1}}. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9687,7 +9991,7 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequest request) @@ -9701,7 +10005,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequest re /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(PutTrainedModelRequest request, CancellationToken cancellationToken = default) { @@ -9714,7 +10018,7 @@ public virtual Task PutTrainedModelAsync(PutTrainedMode /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequestDescriptor descriptor) @@ -9728,7 +10032,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedMode /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id modelId) @@ -9743,7 +10047,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Client /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id modelId, Action> configureRequest) @@ -9759,7 +10063,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Client /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequestDescriptor descriptor) @@ -9773,7 +10077,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequestDes /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id modelId) @@ -9788,7 +10092,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticse /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -9804,7 +10108,7 @@ public virtual PutTrainedModelResponse PutTrainedModel(Elastic.Clients.Elasticse /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(PutTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9817,7 +10121,7 @@ public virtual Task PutTrainedModelAsync(Put /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -9831,7 +10135,7 @@ public virtual Task PutTrainedModelAsync(Ela /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9846,7 +10150,7 @@ public virtual Task PutTrainedModelAsync(Ela /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(PutTrainedModelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9859,7 +10163,7 @@ public virtual Task PutTrainedModelAsync(PutTrainedMode /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -9873,7 +10177,7 @@ public virtual Task PutTrainedModelAsync(Elastic.Client /// Create a trained model. /// Enable you to supply a trained model that is not created by data frame analytics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9903,7 +10207,7 @@ public virtual Task PutTrainedModelAsync(Elastic.Client /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(PutTrainedModelAliasRequest request) @@ -9932,7 +10236,7 @@ public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(PutTrainedModel /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAliasAsync(PutTrainedModelAliasRequest request, CancellationToken cancellationToken = default) { @@ -9960,7 +10264,7 @@ public virtual Task PutTrainedModelAliasAsync(PutT /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(PutTrainedModelAliasRequestDescriptor descriptor) @@ -9989,7 +10293,7 @@ public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(PutTrainedModel /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias) @@ -10019,7 +10323,7 @@ public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(Elastic.Clients /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias, Action configureRequest) @@ -10050,7 +10354,7 @@ public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(Elastic.Clients /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAliasAsync(PutTrainedModelAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10078,7 +10382,7 @@ public virtual Task PutTrainedModelAliasAsync(PutT /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias, CancellationToken cancellationToken = default) { @@ -10107,7 +10411,7 @@ public virtual Task PutTrainedModelAliasAsync(Elas /// common between the old and new trained models for the model alias, the API /// returns a warning. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelAliasAsync(Elastic.Clients.Elasticsearch.Id modelId, Elastic.Clients.Elasticsearch.Name modelAlias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10121,7 +10425,7 @@ public virtual Task PutTrainedModelAliasAsync(Elas /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPart(PutTrainedModelDefinitionPartRequest request) @@ -10134,7 +10438,7 @@ public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPa /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelDefinitionPartAsync(PutTrainedModelDefinitionPartRequest request, CancellationToken cancellationToken = default) { @@ -10146,7 +10450,7 @@ public virtual Task PutTrainedModelDefini /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPart(PutTrainedModelDefinitionPartRequestDescriptor descriptor) @@ -10159,7 +10463,7 @@ public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPa /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPart(Elastic.Clients.Elasticsearch.Id modelId, int part) @@ -10173,7 +10477,7 @@ public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPa /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPart(Elastic.Clients.Elasticsearch.Id modelId, int part, Action configureRequest) @@ -10188,7 +10492,7 @@ public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPa /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelDefinitionPartAsync(PutTrainedModelDefinitionPartRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10200,7 +10504,7 @@ public virtual Task PutTrainedModelDefini /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelDefinitionPartAsync(Elastic.Clients.Elasticsearch.Id modelId, int part, CancellationToken cancellationToken = default) { @@ -10213,7 +10517,7 @@ public virtual Task PutTrainedModelDefini /// /// Create part of a trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelDefinitionPartAsync(Elastic.Clients.Elasticsearch.Id modelId, int part, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10229,7 +10533,7 @@ public virtual Task PutTrainedModelDefini /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(PutTrainedModelVocabularyRequest request) @@ -10244,7 +10548,7 @@ public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(PutTr /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelVocabularyAsync(PutTrainedModelVocabularyRequest request, CancellationToken cancellationToken = default) { @@ -10258,7 +10562,7 @@ public virtual Task PutTrainedModelVocabulary /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(PutTrainedModelVocabularyRequestDescriptor descriptor) @@ -10273,7 +10577,7 @@ public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(PutTr /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(Elastic.Clients.Elasticsearch.Id modelId) @@ -10289,7 +10593,7 @@ public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(Elast /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -10306,7 +10610,7 @@ public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(Elast /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelVocabularyAsync(PutTrainedModelVocabularyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10320,7 +10624,7 @@ public virtual Task PutTrainedModelVocabulary /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelVocabularyAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -10335,7 +10639,7 @@ public virtual Task PutTrainedModelVocabulary /// This API is supported only for natural language processing (NLP) models. /// The vocabulary is stored in the index as described in inference_config.*.vocabulary of the trained model definition. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTrainedModelVocabularyAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10353,7 +10657,7 @@ public virtual Task PutTrainedModelVocabulary /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetJobResponse ResetJob(ResetJobRequest request) @@ -10370,7 +10674,7 @@ public virtual ResetJobResponse ResetJob(ResetJobRequest request) /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetJobAsync(ResetJobRequest request, CancellationToken cancellationToken = default) { @@ -10386,7 +10690,7 @@ public virtual Task ResetJobAsync(ResetJobRequest request, Can /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetJobResponse ResetJob(ResetJobRequestDescriptor descriptor) @@ -10403,7 +10707,7 @@ public virtual ResetJobResponse ResetJob(ResetJobRequestDescriptor descriptor) /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetJobResponse ResetJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -10421,7 +10725,7 @@ public virtual ResetJobResponse ResetJob(Elastic.Clients.Elasticsearch.Id jobId) /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetJobResponse ResetJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -10440,7 +10744,7 @@ public virtual ResetJobResponse ResetJob(Elastic.Clients.Elasticsearch.Id jobId, /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetJobAsync(ResetJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10456,7 +10760,7 @@ public virtual Task ResetJobAsync(ResetJobRequestDescriptor de /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -10473,7 +10777,7 @@ public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearc /// It is not currently possible to reset multiple jobs using wildcards or a /// comma separated list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10494,7 +10798,7 @@ public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearc /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RevertModelSnapshotResponse RevertModelSnapshot(RevertModelSnapshotRequest request) @@ -10514,7 +10818,7 @@ public virtual RevertModelSnapshotResponse RevertModelSnapshot(RevertModelSnapsh /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RevertModelSnapshotAsync(RevertModelSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -10533,7 +10837,7 @@ public virtual Task RevertModelSnapshotAsync(Revert /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RevertModelSnapshotResponse RevertModelSnapshot(RevertModelSnapshotRequestDescriptor descriptor) @@ -10553,7 +10857,7 @@ public virtual RevertModelSnapshotResponse RevertModelSnapshot(RevertModelSnapsh /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RevertModelSnapshotResponse RevertModelSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) @@ -10574,7 +10878,7 @@ public virtual RevertModelSnapshotResponse RevertModelSnapshot(Elastic.Clients.E /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RevertModelSnapshotResponse RevertModelSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest) @@ -10596,7 +10900,7 @@ public virtual RevertModelSnapshotResponse RevertModelSnapshot(Elastic.Clients.E /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RevertModelSnapshotAsync(RevertModelSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10615,7 +10919,7 @@ public virtual Task RevertModelSnapshotAsync(Revert /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RevertModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, CancellationToken cancellationToken = default) { @@ -10635,7 +10939,7 @@ public virtual Task RevertModelSnapshotAsync(Elasti /// before this event. For example, you might consider reverting to a saved /// snapshot after Black Friday or a critical system failure. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RevertModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10661,7 +10965,7 @@ public virtual Task RevertModelSnapshotAsync(Elasti /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SetUpgradeModeResponse SetUpgradeMode(SetUpgradeModeRequest request) @@ -10686,7 +10990,7 @@ public virtual SetUpgradeModeResponse SetUpgradeMode(SetUpgradeModeRequest reque /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SetUpgradeModeAsync(SetUpgradeModeRequest request, CancellationToken cancellationToken = default) { @@ -10710,7 +11014,7 @@ public virtual Task SetUpgradeModeAsync(SetUpgradeModeRe /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SetUpgradeModeResponse SetUpgradeMode(SetUpgradeModeRequestDescriptor descriptor) @@ -10735,7 +11039,7 @@ public virtual SetUpgradeModeResponse SetUpgradeMode(SetUpgradeModeRequestDescri /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SetUpgradeModeResponse SetUpgradeMode() @@ -10761,7 +11065,7 @@ public virtual SetUpgradeModeResponse SetUpgradeMode() /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SetUpgradeModeResponse SetUpgradeMode(Action configureRequest) @@ -10788,7 +11092,7 @@ public virtual SetUpgradeModeResponse SetUpgradeMode(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SetUpgradeModeAsync(SetUpgradeModeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10812,7 +11116,7 @@ public virtual Task SetUpgradeModeAsync(SetUpgradeModeRe /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SetUpgradeModeAsync(CancellationToken cancellationToken = default) { @@ -10837,7 +11141,7 @@ public virtual Task SetUpgradeModeAsync(CancellationToke /// You can see the current value for the upgrade_mode setting by using the get /// machine learning info API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SetUpgradeModeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -10867,7 +11171,7 @@ public virtual Task SetUpgradeModeAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDatafeedResponse StartDatafeed(StartDatafeedRequest request) @@ -10896,7 +11200,7 @@ public virtual StartDatafeedResponse StartDatafeed(StartDatafeedRequest request) /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDatafeedAsync(StartDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -10924,7 +11228,7 @@ public virtual Task StartDatafeedAsync(StartDatafeedReque /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDatafeedResponse StartDatafeed(StartDatafeedRequestDescriptor descriptor) @@ -10953,7 +11257,7 @@ public virtual StartDatafeedResponse StartDatafeed(StartDatafeedRequestDescripto /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDatafeedResponse StartDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -10983,7 +11287,7 @@ public virtual StartDatafeedResponse StartDatafeed(Elastic.Clients.Elasticsearch /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDatafeedResponse StartDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -11014,7 +11318,7 @@ public virtual StartDatafeedResponse StartDatafeed(Elastic.Clients.Elasticsearch /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDatafeedAsync(StartDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11042,7 +11346,7 @@ public virtual Task StartDatafeedAsync(StartDatafeedReque /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -11071,7 +11375,7 @@ public virtual Task StartDatafeedAsync(Elastic.Clients.El /// update it had at the time of creation or update and runs the query using those same roles. If you provided secondary /// authorization headers when you created or updated the datafeed, those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11096,7 +11400,7 @@ public virtual Task StartDatafeedAsync(Elastic.Clients.El /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequest request) @@ -11120,7 +11424,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartData /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -11143,7 +11447,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequestDescriptor descriptor) @@ -11167,7 +11471,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -11192,7 +11496,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -11218,7 +11522,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequestDescriptor descriptor) @@ -11242,7 +11546,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartData /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -11267,7 +11571,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.C /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -11293,7 +11597,7 @@ public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(Elastic.C /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11316,7 +11620,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -11340,7 +11644,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11365,7 +11669,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(StartDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11388,7 +11692,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -11412,7 +11716,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// If the destination index exists, it is used as is. You can therefore set up /// the destination index in advance with custom settings and mappings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11427,7 +11731,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(StartTrainedModelDeploymentRequest request) @@ -11441,7 +11745,7 @@ public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(S /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTrainedModelDeploymentAsync(StartTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) { @@ -11454,7 +11758,7 @@ public virtual Task StartTrainedModelDeploy /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(StartTrainedModelDeploymentRequestDescriptor descriptor) @@ -11468,7 +11772,7 @@ public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(S /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id modelId) @@ -11483,7 +11787,7 @@ public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(E /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -11499,7 +11803,7 @@ public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(E /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTrainedModelDeploymentAsync(StartTrainedModelDeploymentRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11512,7 +11816,7 @@ public virtual Task StartTrainedModelDeploy /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -11526,7 +11830,7 @@ public virtual Task StartTrainedModelDeploy /// Start a trained model deployment. /// It allocates the model to every machine learning node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11542,7 +11846,7 @@ public virtual Task StartTrainedModelDeploy /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDatafeedResponse StopDatafeed(StopDatafeedRequest request) @@ -11557,7 +11861,7 @@ public virtual StopDatafeedResponse StopDatafeed(StopDatafeedRequest request) /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDatafeedAsync(StopDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -11571,7 +11875,7 @@ public virtual Task StopDatafeedAsync(StopDatafeedRequest /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDatafeedResponse StopDatafeed(StopDatafeedRequestDescriptor descriptor) @@ -11586,7 +11890,7 @@ public virtual StopDatafeedResponse StopDatafeed(StopDatafeedRequestDescriptor d /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDatafeedResponse StopDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -11602,7 +11906,7 @@ public virtual StopDatafeedResponse StopDatafeed(Elastic.Clients.Elasticsearch.I /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDatafeedResponse StopDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -11619,7 +11923,7 @@ public virtual StopDatafeedResponse StopDatafeed(Elastic.Clients.Elasticsearch.I /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDatafeedAsync(StopDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11633,7 +11937,7 @@ public virtual Task StopDatafeedAsync(StopDatafeedRequestD /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -11648,7 +11952,7 @@ public virtual Task StopDatafeedAsync(Elastic.Clients.Elas /// A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped /// multiple times throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11664,7 +11968,7 @@ public virtual Task StopDatafeedAsync(Elastic.Clients.Elas /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequest request) @@ -11679,7 +11983,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFra /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -11693,7 +11997,7 @@ public virtual Task StopDataFrameAnalyticsAsync( /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequestDescriptor descriptor) @@ -11708,7 +12012,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics( /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -11724,7 +12028,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics( /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -11741,7 +12045,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics( /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequestDescriptor descriptor) @@ -11756,7 +12060,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFra /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -11772,7 +12076,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Cli /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -11789,7 +12093,7 @@ public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(Elastic.Cli /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11803,7 +12107,7 @@ public virtual Task StopDataFrameAnalyticsAsync< /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -11818,7 +12122,7 @@ public virtual Task StopDataFrameAnalyticsAsync< /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11834,7 +12138,7 @@ public virtual Task StopDataFrameAnalyticsAsync< /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(StopDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11848,7 +12152,7 @@ public virtual Task StopDataFrameAnalyticsAsync( /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -11863,7 +12167,7 @@ public virtual Task StopDataFrameAnalyticsAsync( /// A data frame analytics job can be started and stopped multiple times /// throughout its lifecycle. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11877,7 +12181,7 @@ public virtual Task StopDataFrameAnalyticsAsync( /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(StopTrainedModelDeploymentRequest request) @@ -11890,7 +12194,7 @@ public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(Sto /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTrainedModelDeploymentAsync(StopTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) { @@ -11902,7 +12206,7 @@ public virtual Task StopTrainedModelDeployme /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(StopTrainedModelDeploymentRequestDescriptor descriptor) @@ -11915,7 +12219,7 @@ public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(Sto /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id modelId) @@ -11929,7 +12233,7 @@ public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(Ela /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -11944,7 +12248,7 @@ public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(Ela /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTrainedModelDeploymentAsync(StopTrainedModelDeploymentRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11956,7 +12260,7 @@ public virtual Task StopTrainedModelDeployme /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -11969,7 +12273,7 @@ public virtual Task StopTrainedModelDeployme /// /// Stop a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11987,7 +12291,7 @@ public virtual Task StopTrainedModelDeployme /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequest request) @@ -12004,7 +12308,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequest reque /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(UpdateDatafeedRequest request, CancellationToken cancellationToken = default) { @@ -12020,7 +12324,7 @@ public virtual Task UpdateDatafeedAsync(UpdateDatafeedRe /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequestDescriptor descriptor) @@ -12037,7 +12341,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRe /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -12055,7 +12359,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients. /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action> configureRequest) @@ -12074,7 +12378,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients. /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequestDescriptor descriptor) @@ -12091,7 +12395,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequestDescri /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId) @@ -12109,7 +12413,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsear /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest) @@ -12128,7 +12432,7 @@ public virtual UpdateDatafeedResponse UpdateDatafeed(Elastic.Clients.Elasticsear /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(UpdateDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12144,7 +12448,7 @@ public virtual Task UpdateDatafeedAsync(Updat /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -12161,7 +12465,7 @@ public virtual Task UpdateDatafeedAsync(Elast /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12179,7 +12483,7 @@ public virtual Task UpdateDatafeedAsync(Elast /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(UpdateDatafeedRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12195,7 +12499,7 @@ public virtual Task UpdateDatafeedAsync(UpdateDatafeedRe /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, CancellationToken cancellationToken = default) { @@ -12212,7 +12516,7 @@ public virtual Task UpdateDatafeedAsync(Elastic.Clients. /// the time of the update and runs the query using those same roles. If you provide secondary authorization headers, /// those credentials are used instead. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDatafeedAsync(Elastic.Clients.Elasticsearch.Id datafeedId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12226,7 +12530,7 @@ public virtual Task UpdateDatafeedAsync(Elastic.Clients. /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequest request) @@ -12239,7 +12543,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateD /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -12251,7 +12555,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequestDescriptor descriptor) @@ -12264,7 +12568,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -12278,7 +12582,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -12293,7 +12597,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequestDescriptor descriptor) @@ -12306,7 +12610,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateD /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id) @@ -12320,7 +12624,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -12335,7 +12639,7 @@ public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(Elastic /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12347,7 +12651,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -12360,7 +12664,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12374,7 +12678,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(UpdateDataFrameAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12386,7 +12690,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -12399,7 +12703,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// /// Update a data frame analytics job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateDataFrameAnalyticsAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12414,7 +12718,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request) @@ -12428,7 +12732,7 @@ public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request) /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateFilterAsync(UpdateFilterRequest request, CancellationToken cancellationToken = default) { @@ -12441,7 +12745,7 @@ public virtual Task UpdateFilterAsync(UpdateFilterRequest /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequestDescriptor descriptor) @@ -12455,7 +12759,7 @@ public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequestDescriptor d /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateFilterResponse UpdateFilter(Elastic.Clients.Elasticsearch.Id filterId) @@ -12470,7 +12774,7 @@ public virtual UpdateFilterResponse UpdateFilter(Elastic.Clients.Elasticsearch.I /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateFilterResponse UpdateFilter(Elastic.Clients.Elasticsearch.Id filterId, Action configureRequest) @@ -12486,7 +12790,7 @@ public virtual UpdateFilterResponse UpdateFilter(Elastic.Clients.Elasticsearch.I /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateFilterAsync(UpdateFilterRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12499,7 +12803,7 @@ public virtual Task UpdateFilterAsync(UpdateFilterRequestD /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateFilterAsync(Elastic.Clients.Elasticsearch.Id filterId, CancellationToken cancellationToken = default) { @@ -12513,7 +12817,7 @@ public virtual Task UpdateFilterAsync(Elastic.Clients.Elas /// Update a filter. /// Updates the description of a filter, adds items, or removes items from the list. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateFilterAsync(Elastic.Clients.Elasticsearch.Id filterId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12528,7 +12832,7 @@ public virtual Task UpdateFilterAsync(Elastic.Clients.Elas /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request) @@ -12542,7 +12846,7 @@ public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request) /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(UpdateJobRequest request, CancellationToken cancellationToken = default) { @@ -12555,7 +12859,7 @@ public virtual Task UpdateJobAsync(UpdateJobRequest request, /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(UpdateJobRequestDescriptor descriptor) @@ -12569,7 +12873,7 @@ public virtual UpdateJobResponse UpdateJob(UpdateJobRequestDescriptor /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -12584,7 +12888,7 @@ public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsea /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest) @@ -12600,7 +12904,7 @@ public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsea /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(UpdateJobRequestDescriptor descriptor) @@ -12614,7 +12918,7 @@ public virtual UpdateJobResponse UpdateJob(UpdateJobRequestDescriptor descriptor /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id jobId) @@ -12629,7 +12933,7 @@ public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id jobI /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest) @@ -12645,7 +12949,7 @@ public virtual UpdateJobResponse UpdateJob(Elastic.Clients.Elasticsearch.Id jobI /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(UpdateJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12658,7 +12962,7 @@ public virtual Task UpdateJobAsync(UpdateJobReques /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -12672,7 +12976,7 @@ public virtual Task UpdateJobAsync(Elastic.Clients /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12687,7 +12991,7 @@ public virtual Task UpdateJobAsync(Elastic.Clients /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(UpdateJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12700,7 +13004,7 @@ public virtual Task UpdateJobAsync(UpdateJobRequestDescriptor /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id jobId, CancellationToken cancellationToken = default) { @@ -12714,7 +13018,7 @@ public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsea /// Update an anomaly detection job. /// Updates certain properties of an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsearch.Id jobId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12729,7 +13033,7 @@ public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsea /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(UpdateModelSnapshotRequest request) @@ -12743,7 +13047,7 @@ public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(UpdateModelSnapsh /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateModelSnapshotAsync(UpdateModelSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -12756,7 +13060,7 @@ public virtual Task UpdateModelSnapshotAsync(Update /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(UpdateModelSnapshotRequestDescriptor descriptor) @@ -12770,7 +13074,7 @@ public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(UpdateModelSnapsh /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) @@ -12785,7 +13089,7 @@ public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(Elastic.Clients.E /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest) @@ -12801,7 +13105,7 @@ public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(Elastic.Clients.E /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateModelSnapshotAsync(UpdateModelSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12814,7 +13118,7 @@ public virtual Task UpdateModelSnapshotAsync(Update /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, CancellationToken cancellationToken = default) { @@ -12828,7 +13132,7 @@ public virtual Task UpdateModelSnapshotAsync(Elasti /// Update a snapshot. /// Updates certain properties of a snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateModelSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12842,7 +13146,7 @@ public virtual Task UpdateModelSnapshotAsync(Elasti /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment(UpdateTrainedModelDeploymentRequest request) @@ -12855,7 +13159,7 @@ public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTrainedModelDeploymentAsync(UpdateTrainedModelDeploymentRequest request, CancellationToken cancellationToken = default) { @@ -12867,7 +13171,7 @@ public virtual Task UpdateTrainedModelDepl /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment(UpdateTrainedModelDeploymentRequestDescriptor descriptor) @@ -12880,7 +13184,7 @@ public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id modelId) @@ -12894,7 +13198,7 @@ public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest) @@ -12909,7 +13213,7 @@ public virtual UpdateTrainedModelDeploymentResponse UpdateTrainedModelDeployment /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTrainedModelDeploymentAsync(UpdateTrainedModelDeploymentRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12921,7 +13225,7 @@ public virtual Task UpdateTrainedModelDepl /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id modelId, CancellationToken cancellationToken = default) { @@ -12934,7 +13238,7 @@ public virtual Task UpdateTrainedModelDepl /// /// Update a trained model deployment. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTrainedModelDeploymentAsync(Elastic.Clients.Elasticsearch.Id modelId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12947,7 +13251,7 @@ public virtual Task UpdateTrainedModelDepl /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -12957,7 +13261,7 @@ public virtual Task UpdateTrainedModelDepl /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotRequest request) @@ -12969,7 +13273,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotR /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -12979,7 +13283,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotR /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeJobSnapshotAsync(UpgradeJobSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -12990,7 +13294,7 @@ public virtual Task UpgradeJobSnapshotAsync(UpgradeJ /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -13000,7 +13304,7 @@ public virtual Task UpgradeJobSnapshotAsync(UpgradeJ /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotRequestDescriptor descriptor) @@ -13012,7 +13316,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotR /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -13022,7 +13326,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotR /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId) @@ -13035,7 +13339,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Ela /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -13045,7 +13349,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Ela /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest) @@ -13059,7 +13363,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Ela /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -13069,7 +13373,7 @@ public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(Elastic.Clients.Ela /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeJobSnapshotAsync(UpgradeJobSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13080,7 +13384,7 @@ public virtual Task UpgradeJobSnapshotAsync(UpgradeJ /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -13090,7 +13394,7 @@ public virtual Task UpgradeJobSnapshotAsync(UpgradeJ /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeJobSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, CancellationToken cancellationToken = default) { @@ -13102,7 +13406,7 @@ public virtual Task UpgradeJobSnapshotAsync(Elastic. /// /// /// Upgrade a snapshot. - /// Upgrades an anomaly detection model snapshot to the latest major version. + /// Upgrade an anomaly detection model snapshot to the latest major version. /// Over time, older snapshot formats are deprecated and removed. Anomaly /// detection jobs support only snapshots that are from the current or previous /// major version. @@ -13112,7 +13416,7 @@ public virtual Task UpgradeJobSnapshotAsync(Elastic. /// upgraded snapshot cannot be the current snapshot of the anomaly detection /// job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeJobSnapshotAsync(Elastic.Clients.Elasticsearch.Id jobId, Elastic.Clients.Elasticsearch.Id snapshotId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13313,7 +13617,7 @@ public virtual Task ValidateAsync(Action /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest request) @@ -13326,7 +13630,7 @@ public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(ValidateDetectorRequest request, CancellationToken cancellationToken = default) { @@ -13338,7 +13642,7 @@ public virtual Task ValidateDetectorAsync(ValidateDete /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequestDescriptor descriptor) @@ -13351,7 +13655,7 @@ public virtual ValidateDetectorResponse ValidateDetector(ValidateDete /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector) @@ -13365,7 +13669,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clie /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector, Action> configureRequest) @@ -13380,7 +13684,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clie /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequestDescriptor descriptor) @@ -13393,7 +13697,7 @@ public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector) @@ -13407,7 +13711,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elastic /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector, Action configureRequest) @@ -13422,7 +13726,7 @@ public virtual ValidateDetectorResponse ValidateDetector(Elastic.Clients.Elastic /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(ValidateDetectorRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13434,7 +13738,7 @@ public virtual Task ValidateDetectorAsync(V /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector, CancellationToken cancellationToken = default) { @@ -13447,7 +13751,7 @@ public virtual Task ValidateDetectorAsync(E /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13461,7 +13765,7 @@ public virtual Task ValidateDetectorAsync(E /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(ValidateDetectorRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13473,7 +13777,7 @@ public virtual Task ValidateDetectorAsync(ValidateDete /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector, CancellationToken cancellationToken = default) { @@ -13486,7 +13790,7 @@ public virtual Task ValidateDetectorAsync(Elastic.Clie /// /// Validate an anomaly detection job. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ValidateDetectorAsync(Elastic.Clients.Elasticsearch.MachineLearning.Detector detector, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs index 5a814aaae77..5b76c32da4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -44,7 +44,7 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequest request) @@ -58,7 +58,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(ClearRepositoriesMeteringArchiveRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task ClearRepositoriesM /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion) @@ -100,7 +100,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion, Action configureRequest) @@ -116,7 +116,7 @@ public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeterin /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(ClearRepositoriesMeteringArchiveRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -129,7 +129,7 @@ public virtual Task ClearRepositoriesM /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion, CancellationToken cancellationToken = default) { @@ -143,7 +143,7 @@ public virtual Task ClearRepositoriesM /// Clear the archived repositories metering. /// Clear the archived repositories metering information in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearRepositoriesMeteringArchiveAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, long maxArchiveVersion, Action configureRequest, CancellationToken cancellationToken = default) { @@ -160,7 +160,7 @@ public virtual Task ClearRepositoriesM /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequest request) @@ -176,7 +176,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(G /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(GetRepositoriesMeteringInfoRequest request, CancellationToken cancellationToken = default) { @@ -191,7 +191,7 @@ public virtual Task GetRepositoriesMetering /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequestDescriptor descriptor) @@ -207,7 +207,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(G /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(Elastic.Clients.Elasticsearch.NodeIds nodeId) @@ -224,7 +224,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(E /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(Elastic.Clients.Elasticsearch.NodeIds nodeId, Action configureRequest) @@ -242,7 +242,7 @@ public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(E /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(GetRepositoriesMeteringInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -257,7 +257,7 @@ public virtual Task GetRepositoriesMetering /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, CancellationToken cancellationToken = default) { @@ -273,7 +273,7 @@ public virtual Task GetRepositoriesMetering /// This API exposes monotonically non-decreasing counters and it is expected that clients would durably store the information needed to compute aggregations over a period of time. /// Additionally, the information exposed by this API is volatile, meaning that it will not be present after node restarts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoriesMeteringInfoAsync(Elastic.Clients.Elasticsearch.NodeIds nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -289,7 +289,7 @@ public virtual Task GetRepositoriesMetering /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) @@ -304,7 +304,7 @@ public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequest request, CancellationToken cancellationToken = default) { @@ -318,7 +318,7 @@ public virtual Task HotThreadsAsync(HotThreadsRequest reques /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequestDescriptor descriptor) @@ -333,7 +333,7 @@ public virtual HotThreadsResponse HotThreads(HotThreadsRequestDescriptor descrip /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -349,7 +349,7 @@ public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeI /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -366,7 +366,7 @@ public virtual HotThreadsResponse HotThreads(Elastic.Clients.Elasticsearch.NodeI /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads() @@ -382,7 +382,7 @@ public virtual HotThreadsResponse HotThreads() /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(Action configureRequest) @@ -399,7 +399,7 @@ public virtual HotThreadsResponse HotThreads(Action /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(HotThreadsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -413,7 +413,7 @@ public virtual Task HotThreadsAsync(HotThreadsRequestDescrip /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -428,7 +428,7 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -444,7 +444,7 @@ public virtual Task HotThreadsAsync(Elastic.Clients.Elastics /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(CancellationToken cancellationToken = default) { @@ -459,7 +459,7 @@ public virtual Task HotThreadsAsync(CancellationToken cancel /// Get a breakdown of the hot threads on each selected node in the cluster. /// The output is plain text with a breakdown of the top hot threads for each node. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HotThreadsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -472,9 +472,11 @@ public virtual Task HotThreadsAsync(Action /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequest request) @@ -486,9 +488,11 @@ public virtual NodesInfoResponse Info(NodesInfoRequest request) /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequest request, CancellationToken cancellationToken = default) { @@ -499,9 +503,11 @@ public virtual Task InfoAsync(NodesInfoRequest request, Cance /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequestDescriptor descriptor) @@ -513,9 +519,11 @@ public virtual NodesInfoResponse Info(NodesInfoRequestDescriptor descriptor) /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -528,9 +536,11 @@ public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nod /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -544,9 +554,11 @@ public virtual NodesInfoResponse Info(Elastic.Clients.Elasticsearch.NodeIds? nod /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info() @@ -559,9 +571,11 @@ public virtual NodesInfoResponse Info() /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(Action configureRequest) @@ -575,9 +589,11 @@ public virtual NodesInfoResponse Info(Action configu /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(NodesInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -588,9 +604,11 @@ public virtual Task InfoAsync(NodesInfoRequestDescriptor desc /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -602,9 +620,11 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.N /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -617,9 +637,11 @@ public virtual Task InfoAsync(Elastic.Clients.Elasticsearch.N /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -631,9 +653,11 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// /// Get node information. + /// + /// /// By default, the API returns all attributes and core settings for cluster nodes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -657,7 +681,7 @@ public virtual Task InfoAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSettingsRequest request) @@ -680,7 +704,7 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSet /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSecureSettingsAsync(ReloadSecureSettingsRequest request, CancellationToken cancellationToken = default) { @@ -702,7 +726,7 @@ public virtual Task ReloadSecureSettingsAsync(Relo /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSettingsRequestDescriptor descriptor) @@ -725,7 +749,7 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSet /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -749,7 +773,7 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Elastic.Clients /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -774,7 +798,7 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Elastic.Clients /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings() @@ -798,7 +822,7 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings() /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Action configureRequest) @@ -823,7 +847,7 @@ public virtual ReloadSecureSettingsResponse ReloadSecureSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSecureSettingsAsync(ReloadSecureSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -845,7 +869,7 @@ public virtual Task ReloadSecureSettingsAsync(Relo /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSecureSettingsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -868,7 +892,7 @@ public virtual Task ReloadSecureSettingsAsync(Elas /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSecureSettingsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -892,7 +916,7 @@ public virtual Task ReloadSecureSettingsAsync(Elas /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSecureSettingsAsync(CancellationToken cancellationToken = default) { @@ -915,7 +939,7 @@ public virtual Task ReloadSecureSettingsAsync(Canc /// Reloading the settings for the whole cluster assumes that the keystores for all nodes are protected with the same password; this method is allowed only when inter-node communications are encrypted. /// Alternatively, you can reload the secure settings on each node by locally accessing the API and passing the node-specific Elasticsearch keystore password. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReloadSecureSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -931,7 +955,7 @@ public virtual Task ReloadSecureSettingsAsync(Acti /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequest request) @@ -946,7 +970,7 @@ public virtual NodesStatsResponse Stats(NodesStatsRequest request) /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequest request, CancellationToken cancellationToken = default) { @@ -960,7 +984,7 @@ public virtual Task StatsAsync(NodesStatsRequest request, Ca /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) @@ -975,7 +999,7 @@ public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) @@ -991,7 +1015,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action> configureRequest) @@ -1008,7 +1032,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats() @@ -1024,7 +1048,7 @@ public virtual NodesStatsResponse Stats() /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Action> configureRequest) @@ -1041,7 +1065,7 @@ public virtual NodesStatsResponse Stats(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) @@ -1056,7 +1080,7 @@ public virtual NodesStatsResponse Stats(NodesStatsRequestDescriptor descriptor) /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric) @@ -1072,7 +1096,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? n /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action configureRequest) @@ -1089,7 +1113,7 @@ public virtual NodesStatsResponse Stats(Elastic.Clients.Elasticsearch.NodeIds? n /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats() @@ -1105,7 +1129,7 @@ public virtual NodesStatsResponse Stats() /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(Action configureRequest) @@ -1122,7 +1146,7 @@ public virtual NodesStatsResponse Stats(Action conf /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1136,7 +1160,7 @@ public virtual Task StatsAsync(NodesStatsRequestD /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -1151,7 +1175,7 @@ public virtual Task StatsAsync(Elastic.Clients.El /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1167,7 +1191,7 @@ public virtual Task StatsAsync(Elastic.Clients.El /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -1182,7 +1206,7 @@ public virtual Task StatsAsync(CancellationToken /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1198,7 +1222,7 @@ public virtual Task StatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(NodesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1212,7 +1236,7 @@ public virtual Task StatsAsync(NodesStatsRequestDescriptor d /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, CancellationToken cancellationToken = default) { @@ -1227,7 +1251,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Elastic.Clients.Elasticsearch.Metrics? indexMetric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1243,7 +1267,7 @@ public virtual Task StatsAsync(Elastic.Clients.Elasticsearch /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -1258,7 +1282,7 @@ public virtual Task StatsAsync(CancellationToken cancellatio /// Get statistics for nodes in a cluster. /// By default, all stats are returned. You can limit the returned information by using metrics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1272,7 +1296,7 @@ public virtual Task StatsAsync(Action /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequest request) @@ -1285,7 +1309,7 @@ public virtual NodesUsageResponse Usage(NodesUsageRequest request) /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequest request, CancellationToken cancellationToken = default) { @@ -1297,7 +1321,7 @@ public virtual Task UsageAsync(NodesUsageRequest request, Ca /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequestDescriptor descriptor) @@ -1310,7 +1334,7 @@ public virtual NodesUsageResponse Usage(NodesUsageRequestDescriptor descriptor) /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric) @@ -1324,7 +1348,7 @@ public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? n /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest) @@ -1339,7 +1363,7 @@ public virtual NodesUsageResponse Usage(Elastic.Clients.Elasticsearch.NodeIds? n /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage() @@ -1353,7 +1377,7 @@ public virtual NodesUsageResponse Usage() /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(Action configureRequest) @@ -1368,7 +1392,7 @@ public virtual NodesUsageResponse Usage(Action conf /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(NodesUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1380,7 +1404,7 @@ public virtual Task UsageAsync(NodesUsageRequestDescriptor d /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, CancellationToken cancellationToken = default) { @@ -1393,7 +1417,7 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Elastic.Clients.Elasticsearch.Metrics? metric, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1407,7 +1431,7 @@ public virtual Task UsageAsync(Elastic.Clients.Elasticsearch /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -1420,7 +1444,7 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// /// Get feature usage information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs index d53f20e8501..17f82909096 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRules.g.cs @@ -45,7 +45,7 @@ internal QueryRulesNamespacedClient(ElasticsearchClient client) : base(client) /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request) @@ -60,7 +60,7 @@ public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequest request) /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(DeleteRuleRequest request, CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequest reques /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequestDescriptor descriptor) @@ -89,7 +89,7 @@ public virtual DeleteRuleResponse DeleteRule(DeleteRuleRequestDescriptor descrip /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -105,7 +105,7 @@ public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id ru /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -122,7 +122,7 @@ public virtual DeleteRuleResponse DeleteRule(Elastic.Clients.Elasticsearch.Id ru /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(DeleteRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -136,7 +136,7 @@ public virtual Task DeleteRuleAsync(DeleteRuleRequestDescrip /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -151,7 +151,7 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// Delete a query rule within a query ruleset. /// This is a destructive action that is only recoverable by re-adding the same rule with the create or update query rule API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -167,7 +167,7 @@ public virtual Task DeleteRuleAsync(Elastic.Clients.Elastics /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequest request) @@ -182,7 +182,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequest request) /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(DeleteRulesetRequest request, CancellationToken cancellationToken = default) { @@ -196,7 +196,7 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequestDescriptor descriptor) @@ -211,7 +211,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(DeleteRulesetRequestDescripto /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -227,7 +227,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -244,7 +244,7 @@ public virtual DeleteRulesetResponse DeleteRuleset(Elastic.Clients.Elasticsearch /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(DeleteRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -258,7 +258,7 @@ public virtual Task DeleteRulesetAsync(DeleteRulesetReque /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -273,7 +273,7 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// Remove a query ruleset and its associated data. /// This is a destructive action that is not recoverable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -288,7 +288,7 @@ public virtual Task DeleteRulesetAsync(Elastic.Clients.El /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(GetRuleRequest request) @@ -302,7 +302,7 @@ public virtual GetRuleResponse GetRule(GetRuleRequest request) /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(GetRuleRequest request, CancellationToken cancellationToken = default) { @@ -315,7 +315,7 @@ public virtual Task GetRuleAsync(GetRuleRequest request, Cancel /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(GetRuleRequestDescriptor descriptor) @@ -329,7 +329,7 @@ public virtual GetRuleResponse GetRule(GetRuleRequestDescriptor descriptor) /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -344,7 +344,7 @@ public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -360,7 +360,7 @@ public virtual GetRuleResponse GetRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(GetRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -373,7 +373,7 @@ public virtual Task GetRuleAsync(GetRuleRequestDescriptor descr /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -387,7 +387,7 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// Get a query rule. /// Get details about a query rule within a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -402,7 +402,7 @@ public virtual Task GetRuleAsync(Elastic.Clients.Elasticsearch. /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(GetRulesetRequest request) @@ -416,7 +416,7 @@ public virtual GetRulesetResponse GetRuleset(GetRulesetRequest request) /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(GetRulesetRequest request, CancellationToken cancellationToken = default) { @@ -429,7 +429,7 @@ public virtual Task GetRulesetAsync(GetRulesetRequest reques /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(GetRulesetRequestDescriptor descriptor) @@ -443,7 +443,7 @@ public virtual GetRulesetResponse GetRuleset(GetRulesetRequestDescriptor descrip /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -458,7 +458,7 @@ public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id ru /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -474,7 +474,7 @@ public virtual GetRulesetResponse GetRuleset(Elastic.Clients.Elasticsearch.Id ru /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(GetRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -487,7 +487,7 @@ public virtual Task GetRulesetAsync(GetRulesetRequestDescrip /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -501,7 +501,7 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// Get a query ruleset. /// Get details about a query ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -516,7 +516,7 @@ public virtual Task GetRulesetAsync(Elastic.Clients.Elastics /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequest request) @@ -530,7 +530,7 @@ public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequest request) /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(ListRulesetsRequest request, CancellationToken cancellationToken = default) { @@ -543,7 +543,7 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequest /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequestDescriptor descriptor) @@ -557,7 +557,7 @@ public virtual ListRulesetsResponse ListRulesets(ListRulesetsRequestDescriptor d /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets() @@ -572,7 +572,7 @@ public virtual ListRulesetsResponse ListRulesets() /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListRulesetsResponse ListRulesets(Action configureRequest) @@ -588,7 +588,7 @@ public virtual ListRulesetsResponse ListRulesets(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(ListRulesetsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -601,7 +601,7 @@ public virtual Task ListRulesetsAsync(ListRulesetsRequestD /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(CancellationToken cancellationToken = default) { @@ -615,7 +615,7 @@ public virtual Task ListRulesetsAsync(CancellationToken ca /// Get all query rulesets. /// Get summarized information about the query rulesets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListRulesetsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -636,7 +636,7 @@ public virtual Task ListRulesetsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(PutRuleRequest request) @@ -656,7 +656,7 @@ public virtual PutRuleResponse PutRule(PutRuleRequest request) /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(PutRuleRequest request, CancellationToken cancellationToken = default) { @@ -675,7 +675,7 @@ public virtual Task PutRuleAsync(PutRuleRequest request, Cancel /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(PutRuleRequestDescriptor descriptor) @@ -695,7 +695,7 @@ public virtual PutRuleResponse PutRule(PutRuleRequestDescriptor descriptor) /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -716,7 +716,7 @@ public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -738,7 +738,7 @@ public virtual PutRuleResponse PutRule(Elastic.Clients.Elasticsearch.Id rulesetI /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(PutRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -757,7 +757,7 @@ public virtual Task PutRuleAsync(PutRuleRequestDescriptor descr /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -777,7 +777,7 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -799,7 +799,7 @@ public virtual Task PutRuleAsync(Elastic.Clients.Elasticsearch. /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(PutRulesetRequest request) @@ -820,7 +820,7 @@ public virtual PutRulesetResponse PutRuleset(PutRulesetRequest request) /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(PutRulesetRequest request, CancellationToken cancellationToken = default) { @@ -840,7 +840,7 @@ public virtual Task PutRulesetAsync(PutRulesetRequest reques /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(PutRulesetRequestDescriptor descriptor) @@ -861,7 +861,7 @@ public virtual PutRulesetResponse PutRuleset(PutRulesetRequestDescriptor descrip /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -883,7 +883,7 @@ public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id ru /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -906,7 +906,7 @@ public virtual PutRulesetResponse PutRuleset(Elastic.Clients.Elasticsearch.Id ru /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(PutRulesetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -926,7 +926,7 @@ public virtual Task PutRulesetAsync(PutRulesetRequestDescrip /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -947,7 +947,7 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// Additionally, pinned queries have a maximum limit of 100 pinned hits. /// If multiple matching rules pin more than 100 documents, only the first 100 documents are pinned in the order they are specified in the ruleset. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRulesetAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -962,7 +962,7 @@ public virtual Task PutRulesetAsync(Elastic.Clients.Elastics /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(TestRequest request) @@ -976,7 +976,7 @@ public virtual TestResponse Test(TestRequest request) /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(TestRequest request, CancellationToken cancellationToken = default) { @@ -989,7 +989,7 @@ public virtual Task TestAsync(TestRequest request, CancellationTok /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(TestRequestDescriptor descriptor) @@ -1003,7 +1003,7 @@ public virtual TestResponse Test(TestRequestDescriptor descriptor) /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId) @@ -1018,7 +1018,7 @@ public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId) /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest) @@ -1034,7 +1034,7 @@ public virtual TestResponse Test(Elastic.Clients.Elasticsearch.Id rulesetId, Act /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(TestRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1047,7 +1047,7 @@ public virtual Task TestAsync(TestRequestDescriptor descriptor, Ca /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rulesetId, CancellationToken cancellationToken = default) { @@ -1061,7 +1061,7 @@ public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rul /// Test a query ruleset. /// Evaluate match criteria against a query ruleset to identify the rules that would match that criteria. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestAsync(Elastic.Clients.Elasticsearch.Id rulesetId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs index 2a967dba092..ae60669884b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs @@ -67,7 +67,7 @@ internal RollupNamespacedClient(ElasticsearchClient client) : base(client) /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) @@ -104,7 +104,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken = default) { @@ -140,7 +140,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequest request, /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) @@ -177,7 +177,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) @@ -215,7 +215,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -254,7 +254,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsea /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor) @@ -291,7 +291,7 @@ public virtual DeleteJobResponse DeleteJob(DeleteJobRequestDescriptor descriptor /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) @@ -329,7 +329,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id) /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -368,7 +368,7 @@ public virtual DeleteJobResponse DeleteJob(Elastic.Clients.Elasticsearch.Id id, /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task DeleteJobAsync(DeleteJobReques /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -441,7 +441,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -479,7 +479,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -515,7 +515,7 @@ public virtual Task DeleteJobAsync(DeleteJobRequestDescriptor /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -552,7 +552,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// } /// } /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -572,7 +572,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequest request) @@ -591,7 +591,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequest request) /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequest request, CancellationToken cancellationToken = default) { @@ -609,7 +609,7 @@ public virtual Task GetJobsAsync(GetJobsRequest request, Cancel /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) @@ -628,7 +628,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) @@ -648,7 +648,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -669,7 +669,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs() @@ -689,7 +689,7 @@ public virtual GetJobsResponse GetJobs() /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Action> configureRequest) @@ -710,7 +710,7 @@ public virtual GetJobsResponse GetJobs(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) @@ -729,7 +729,7 @@ public virtual GetJobsResponse GetJobs(GetJobsRequestDescriptor descriptor) /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) @@ -749,7 +749,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id) /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -770,7 +770,7 @@ public virtual GetJobsResponse GetJobs(Elastic.Clients.Elasticsearch.Id? id, Act /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs() @@ -790,7 +790,7 @@ public virtual GetJobsResponse GetJobs() /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(Action configureRequest) @@ -811,7 +811,7 @@ public virtual GetJobsResponse GetJobs(Action configur /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -829,7 +829,7 @@ public virtual Task GetJobsAsync(GetJobsRequestDescr /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -848,7 +848,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -868,7 +868,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Ela /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) { @@ -887,7 +887,7 @@ public virtual Task GetJobsAsync(CancellationToken c /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -907,7 +907,7 @@ public virtual Task GetJobsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(GetJobsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -925,7 +925,7 @@ public virtual Task GetJobsAsync(GetJobsRequestDescriptor descr /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -944,7 +944,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -964,7 +964,7 @@ public virtual Task GetJobsAsync(Elastic.Clients.Elasticsearch. /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(CancellationToken cancellationToken = default) { @@ -983,7 +983,7 @@ public virtual Task GetJobsAsync(CancellationToken cancellation /// If a job was created, ran for a while, then was deleted, the API does not return any details about it. /// For details about a historical rollup job, the rollup capabilities API may be more useful. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetJobsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1015,7 +1015,7 @@ public virtual Task GetJobsAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequest request) @@ -1046,7 +1046,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequest request, CancellationToken cancellationToken = default) { @@ -1076,7 +1076,7 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescriptor descriptor) @@ -1107,7 +1107,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id) @@ -1139,7 +1139,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -1172,7 +1172,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps() @@ -1204,7 +1204,7 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Action> configureRequest) @@ -1237,7 +1237,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescriptor descriptor) @@ -1268,7 +1268,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequestDescripto /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id) @@ -1300,7 +1300,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest) @@ -1333,7 +1333,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps() @@ -1365,7 +1365,7 @@ public virtual GetRollupCapsResponse GetRollupCaps() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(Action configureRequest) @@ -1398,7 +1398,7 @@ public virtual GetRollupCapsResponse GetRollupCaps(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1428,7 +1428,7 @@ public virtual Task GetRollupCapsAsync(GetRoll /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -1459,7 +1459,7 @@ public virtual Task GetRollupCapsAsync(Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1491,7 +1491,7 @@ public virtual Task GetRollupCapsAsync(Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) { @@ -1522,7 +1522,7 @@ public virtual Task GetRollupCapsAsync(Cancell /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1554,7 +1554,7 @@ public virtual Task GetRollupCapsAsync(Action< /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(GetRollupCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1584,7 +1584,7 @@ public virtual Task GetRollupCapsAsync(GetRollupCapsReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -1615,7 +1615,7 @@ public virtual Task GetRollupCapsAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Elastic.Clients.Elasticsearch.Id? id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1647,7 +1647,7 @@ public virtual Task GetRollupCapsAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(CancellationToken cancellationToken = default) { @@ -1678,7 +1678,7 @@ public virtual Task GetRollupCapsAsync(CancellationToken /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1706,7 +1706,7 @@ public virtual Task GetRollupCapsAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequest request) @@ -1733,7 +1733,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsR /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequest request, CancellationToken cancellationToken = default) { @@ -1759,7 +1759,7 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequestDescriptor descriptor) @@ -1786,7 +1786,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index) @@ -1814,7 +1814,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest) @@ -1843,7 +1843,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequestDescriptor descriptor) @@ -1870,7 +1870,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsR /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index) @@ -1898,7 +1898,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest) @@ -1927,7 +1927,7 @@ public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(Elastic.Clients.Ela /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1953,7 +1953,7 @@ public virtual Task GetRollupIndexCapsAsync /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) { @@ -1980,7 +1980,7 @@ public virtual Task GetRollupIndexCapsAsync /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2008,7 +2008,7 @@ public virtual Task GetRollupIndexCapsAsync /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(GetRollupIndexCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2034,7 +2034,7 @@ public virtual Task GetRollupIndexCapsAsync(GetRollu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, CancellationToken cancellationToken = default) { @@ -2061,7 +2061,7 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRollupIndexCapsAsync(Elastic.Clients.Elasticsearch.Ids index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2087,7 +2087,7 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequest request) @@ -2112,7 +2112,7 @@ public virtual PutJobResponse PutJob(PutJobRequest request) /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequest request, CancellationToken cancellationToken = default) { @@ -2136,7 +2136,7 @@ public virtual Task PutJobAsync(PutJobRequest request, Cancellat /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) @@ -2161,7 +2161,7 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) @@ -2187,7 +2187,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -2214,7 +2214,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) @@ -2239,7 +2239,7 @@ public virtual PutJobResponse PutJob(PutJobRequestDescriptor descriptor) /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) @@ -2265,7 +2265,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id) /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -2292,7 +2292,7 @@ public virtual PutJobResponse PutJob(Elastic.Clients.Elasticsearch.Id id, Action /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2316,7 +2316,7 @@ public virtual Task PutJobAsync(PutJobRequestDescript /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2341,7 +2341,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2367,7 +2367,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elast /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(PutJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2391,7 +2391,7 @@ public virtual Task PutJobAsync(PutJobRequestDescriptor descript /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -2416,7 +2416,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// /// Jobs are created in a STOPPED state. You can start them with the start rollup jobs API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2479,7 +2479,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(RollupSearchRequest request) @@ -2541,7 +2541,7 @@ public virtual RollupSearchResponse RollupSearch(RollupSea /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(RollupSearchRequest request, CancellationToken cancellationToken = default) { @@ -2602,7 +2602,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(RollupSearchRequestDescriptor descriptor) @@ -2664,7 +2664,7 @@ public virtual RollupSearchResponse RollupSearch(RollupSea /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(Elastic.Clients.Elasticsearch.Indices indices) @@ -2727,7 +2727,7 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -2791,7 +2791,7 @@ public virtual RollupSearchResponse RollupSearch(Elastic.C /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch() @@ -2854,7 +2854,7 @@ public virtual RollupSearchResponse RollupSearch() /// When the two responses are received, the endpoint rewrites the rollup response and merges the two together. /// During the merging process, if there is any overlap in buckets between the two responses, the buckets from the non-rollup index are used. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(Action> configureRequest) @@ -2918,7 +2918,7 @@ public virtual RollupSearchResponse RollupSearch(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(RollupSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2979,7 +2979,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -3041,7 +3041,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3104,7 +3104,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(CancellationToken cancellationToken = default) { @@ -3166,7 +3166,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> RollupSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3182,7 +3182,7 @@ public virtual Task> RollupSearchAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequest request) @@ -3197,7 +3197,7 @@ public virtual StartJobResponse StartJob(StartJobRequest request) /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(StartJobRequest request, CancellationToken cancellationToken = default) { @@ -3211,7 +3211,7 @@ public virtual Task StartJobAsync(StartJobRequest request, Can /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) @@ -3226,7 +3226,7 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) @@ -3242,7 +3242,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -3259,7 +3259,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearc /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) @@ -3274,7 +3274,7 @@ public virtual StartJobResponse StartJob(StartJobRequestDescriptor descriptor) /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) @@ -3290,7 +3290,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id) /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -3307,7 +3307,7 @@ public virtual StartJobResponse StartJob(Elastic.Clients.Elasticsearch.Id id, Ac /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(StartJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3321,7 +3321,7 @@ public virtual Task StartJobAsync(StartJobRequestDe /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -3336,7 +3336,7 @@ public virtual Task StartJobAsync(Elastic.Clients.E /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3352,7 +3352,7 @@ public virtual Task StartJobAsync(Elastic.Clients.E /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(StartJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3366,7 +3366,7 @@ public virtual Task StartJobAsync(StartJobRequestDescriptor de /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -3381,7 +3381,7 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// If you try to start a job that does not exist, an exception occurs. /// If you try to start a job that is already started, nothing happens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3408,7 +3408,7 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequest request) @@ -3434,7 +3434,7 @@ public virtual StopJobResponse StopJob(StopJobRequest request) /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(StopJobRequest request, CancellationToken cancellationToken = default) { @@ -3459,7 +3459,7 @@ public virtual Task StopJobAsync(StopJobRequest request, Cancel /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) @@ -3485,7 +3485,7 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) @@ -3512,7 +3512,7 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -3540,7 +3540,7 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch. /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) @@ -3566,7 +3566,7 @@ public virtual StopJobResponse StopJob(StopJobRequestDescriptor descriptor) /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) @@ -3593,7 +3593,7 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id) /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -3621,7 +3621,7 @@ public virtual StopJobResponse StopJob(Elastic.Clients.Elasticsearch.Id id, Acti /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(StopJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3646,7 +3646,7 @@ public virtual Task StopJobAsync(StopJobRequestDescr /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -3672,7 +3672,7 @@ public virtual Task StopJobAsync(Elastic.Clients.Ela /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3699,7 +3699,7 @@ public virtual Task StopJobAsync(Elastic.Clients.Ela /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(StopJobRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3724,7 +3724,7 @@ public virtual Task StopJobAsync(StopJobRequestDescriptor descr /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -3750,7 +3750,7 @@ public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch. /// The parameter blocks the API call from returning until either the job has moved to STOPPED or the specified time has elapsed. /// If the specified time elapses without the job moving to STOPPED, a timeout exception occurs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopJobAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs index 12a5aac252b..ffeae46e743 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs @@ -42,9 +42,11 @@ internal SearchApplicationNamespacedClient(ElasticsearchClient client) : base(cl /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationRequest request) @@ -56,9 +58,11 @@ public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationReq /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteSearchApplicationRequest request, CancellationToken cancellationToken = default) { @@ -69,9 +73,11 @@ public virtual Task DeleteAsync(DeleteSearchApp /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationRequestDescriptor descriptor) @@ -83,9 +89,11 @@ public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationReq /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSearchApplicationResponse Delete(Elastic.Clients.Elasticsearch.Name name) @@ -98,9 +106,11 @@ public virtual DeleteSearchApplicationResponse Delete(Elastic.Clients.Elasticsea /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSearchApplicationResponse Delete(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -114,9 +124,11 @@ public virtual DeleteSearchApplicationResponse Delete(Elastic.Clients.Elasticsea /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteSearchApplicationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -127,9 +139,11 @@ public virtual Task DeleteAsync(DeleteSearchApp /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -141,9 +155,11 @@ public virtual Task DeleteAsync(Elastic.Clients /// /// /// Delete a search application. + /// + /// /// Remove a search application and its associated alias. Indices attached to the search application are not removed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -158,7 +174,7 @@ public virtual Task DeleteAsync(Elastic.Clients /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(DeleteBehavioralAnalyticsRequest request) @@ -172,7 +188,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Delet /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteBehavioralAnalyticsAsync(DeleteBehavioralAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -185,7 +201,7 @@ public virtual Task DeleteBehavioralAnalytics /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(DeleteBehavioralAnalyticsRequestDescriptor descriptor) @@ -199,7 +215,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Delet /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Elastic.Clients.Elasticsearch.Name name) @@ -214,7 +230,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Elast /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -230,7 +246,7 @@ public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(Elast /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteBehavioralAnalyticsAsync(DeleteBehavioralAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -243,7 +259,7 @@ public virtual Task DeleteBehavioralAnalytics /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteBehavioralAnalyticsAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -257,7 +273,7 @@ public virtual Task DeleteBehavioralAnalytics /// Delete a behavioral analytics collection. /// The associated data stream is also deleted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteBehavioralAnalyticsAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -271,7 +287,7 @@ public virtual Task DeleteBehavioralAnalytics /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequest request) @@ -284,7 +300,7 @@ public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequest requ /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetSearchApplicationRequest request, CancellationToken cancellationToken = default) { @@ -296,7 +312,7 @@ public virtual Task GetAsync(GetSearchApplicationR /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequestDescriptor descriptor) @@ -309,7 +325,7 @@ public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequestDescr /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSearchApplicationResponse Get(Elastic.Clients.Elasticsearch.Name name) @@ -323,7 +339,7 @@ public virtual GetSearchApplicationResponse Get(Elastic.Clients.Elasticsearch.Na /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSearchApplicationResponse Get(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -338,7 +354,7 @@ public virtual GetSearchApplicationResponse Get(Elastic.Clients.Elasticsearch.Na /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetSearchApplicationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -350,7 +366,7 @@ public virtual Task GetAsync(GetSearchApplicationR /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -363,7 +379,7 @@ public virtual Task GetAsync(Elastic.Clients.Elast /// /// Get search application details. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -377,7 +393,7 @@ public virtual Task GetAsync(Elastic.Clients.Elast /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavioralAnalyticsRequest request) @@ -390,7 +406,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavior /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBehavioralAnalyticsAsync(GetBehavioralAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -402,7 +418,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavioralAnalyticsRequestDescriptor descriptor) @@ -415,7 +431,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavior /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(IReadOnlyCollection? name) @@ -429,7 +445,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(IReadOnlyCo /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(IReadOnlyCollection? name, Action configureRequest) @@ -444,7 +460,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(IReadOnlyCo /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics() @@ -458,7 +474,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics() /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(Action configureRequest) @@ -473,7 +489,7 @@ public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(Action /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBehavioralAnalyticsAsync(GetBehavioralAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -485,7 +501,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBehavioralAnalyticsAsync(IReadOnlyCollection? name, CancellationToken cancellationToken = default) { @@ -498,7 +514,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBehavioralAnalyticsAsync(IReadOnlyCollection? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -512,7 +528,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBehavioralAnalyticsAsync(CancellationToken cancellationToken = default) { @@ -525,7 +541,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// /// Get behavioral analytics collections. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBehavioralAnalyticsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -540,7 +556,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) @@ -554,7 +570,7 @@ public virtual ListResponse List(ListRequest request) /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) { @@ -567,7 +583,7 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequestDescriptor descriptor) @@ -581,7 +597,7 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List() @@ -596,7 +612,7 @@ public virtual ListResponse List() /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(Action configureRequest) @@ -612,7 +628,7 @@ public virtual ListResponse List(Action configureRequest) /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -625,7 +641,7 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) { @@ -639,7 +655,7 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// Get search applications. /// Get information about search applications. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -653,7 +669,7 @@ public virtual Task ListAsync(Action config /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(PostBehavioralAnalyticsEventRequest request) @@ -666,7 +682,7 @@ public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostBehavioralAnalyticsEventAsync(PostBehavioralAnalyticsEventRequest request, CancellationToken cancellationToken = default) { @@ -678,7 +694,7 @@ public virtual Task PostBehavioralAnalytic /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(PostBehavioralAnalyticsEventRequestDescriptor descriptor) @@ -691,7 +707,7 @@ public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType) @@ -705,7 +721,7 @@ public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType, Action configureRequest) @@ -720,7 +736,7 @@ public virtual PostBehavioralAnalyticsEventResponse PostBehavioralAnalyticsEvent /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostBehavioralAnalyticsEventAsync(PostBehavioralAnalyticsEventRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -732,7 +748,7 @@ public virtual Task PostBehavioralAnalytic /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostBehavioralAnalyticsEventAsync(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType, CancellationToken cancellationToken = default) { @@ -745,7 +761,7 @@ public virtual Task PostBehavioralAnalytic /// /// Create a behavioral analytics collection event. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PostBehavioralAnalyticsEventAsync(Elastic.Clients.Elasticsearch.Name collectionName, Elastic.Clients.Elasticsearch.SearchApplication.EventType eventType, Action configureRequest, CancellationToken cancellationToken = default) { @@ -759,7 +775,7 @@ public virtual Task PostBehavioralAnalytic /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequest request) @@ -772,7 +788,7 @@ public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequest requ /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(PutSearchApplicationRequest request, CancellationToken cancellationToken = default) { @@ -784,7 +800,7 @@ public virtual Task PutAsync(PutSearchApplicationR /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequestDescriptor descriptor) @@ -797,10 +813,10 @@ public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequestDescr /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name) + public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); descriptor.BeforeRequest(); @@ -811,10 +827,10 @@ public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.Se /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] - public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); configureRequest?.Invoke(descriptor); @@ -826,7 +842,7 @@ public virtual PutSearchApplicationResponse Put(Elastic.Clients.Elasticsearch.Se /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAsync(PutSearchApplicationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -838,9 +854,9 @@ public virtual Task PutAsync(PutSearchApplicationR /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); descriptor.BeforeRequest(); @@ -851,9 +867,9 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// /// Create or update a search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplication searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task PutAsync(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationParameters searchApplication, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutSearchApplicationRequestDescriptor(searchApplication, name); configureRequest?.Invoke(descriptor); @@ -865,7 +881,7 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavioralAnalyticsRequest request) @@ -878,7 +894,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavior /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutBehavioralAnalyticsAsync(PutBehavioralAnalyticsRequest request, CancellationToken cancellationToken = default) { @@ -890,7 +906,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavioralAnalyticsRequestDescriptor descriptor) @@ -903,7 +919,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavior /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(Elastic.Clients.Elasticsearch.Name name) @@ -917,7 +933,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(Elastic.Cli /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -932,7 +948,7 @@ public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(Elastic.Cli /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutBehavioralAnalyticsAsync(PutBehavioralAnalyticsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -944,7 +960,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutBehavioralAnalyticsAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -957,7 +973,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// Create a behavioral analytics collection. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutBehavioralAnalyticsAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -977,7 +993,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderQueryResponse RenderQuery(RenderQueryRequest request) @@ -996,7 +1012,7 @@ public virtual RenderQueryResponse RenderQuery(RenderQueryRequest request) /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderQueryAsync(RenderQueryRequest request, CancellationToken cancellationToken = default) { @@ -1014,7 +1030,7 @@ public virtual Task RenderQueryAsync(RenderQueryRequest req /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderQueryResponse RenderQuery(RenderQueryRequestDescriptor descriptor) @@ -1033,7 +1049,7 @@ public virtual RenderQueryResponse RenderQuery(RenderQueryRequestDescriptor desc /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderQueryResponse RenderQuery(Elastic.Clients.Elasticsearch.Name name) @@ -1053,7 +1069,7 @@ public virtual RenderQueryResponse RenderQuery(Elastic.Clients.Elasticsearch.Nam /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderQueryResponse RenderQuery(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1074,7 +1090,7 @@ public virtual RenderQueryResponse RenderQuery(Elastic.Clients.Elasticsearch.Nam /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderQueryAsync(RenderQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1092,7 +1108,7 @@ public virtual Task RenderQueryAsync(RenderQueryRequestDesc /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderQueryAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -1111,7 +1127,7 @@ public virtual Task RenderQueryAsync(Elastic.Clients.Elasti /// /// You must have read privileges on the backing alias of the search application. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderQueryAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1127,7 +1143,7 @@ public virtual Task RenderQueryAsync(Elastic.Clients.Elasti /// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. /// Unspecified template parameters are assigned their default values if applicable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchApplicationSearchResponse Search(SearchApplicationSearchRequest request) @@ -1142,7 +1158,7 @@ public virtual SearchApplicationSearchResponse Search(Sear /// Generate and run an Elasticsearch query that uses the specified query parameteter and the search template associated with the search application or default template. /// Unspecified template parameters are assigned their default values if applicable. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(SearchApplicationSearchRequest request, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs index e94cd8a7a21..c50dec445c7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs @@ -44,7 +44,7 @@ internal SearchableSnapshotsNamespacedClient(ElasticsearchClient client) : base( /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(CacheStatsRequest request) @@ -58,7 +58,7 @@ public virtual CacheStatsResponse CacheStats(CacheStatsRequest request) /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(CacheStatsRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task CacheStatsAsync(CacheStatsRequest reques /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(CacheStatsRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual CacheStatsResponse CacheStats(CacheStatsRequestDescriptor descrip /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeIds? nodeId) @@ -100,7 +100,7 @@ public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeI /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest) @@ -116,7 +116,7 @@ public virtual CacheStatsResponse CacheStats(Elastic.Clients.Elasticsearch.NodeI /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats() @@ -131,7 +131,7 @@ public virtual CacheStatsResponse CacheStats() /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(Action configureRequest) @@ -147,7 +147,7 @@ public virtual CacheStatsResponse CacheStats(Action /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(CacheStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -160,7 +160,7 @@ public virtual Task CacheStatsAsync(CacheStatsRequestDescrip /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, CancellationToken cancellationToken = default) { @@ -174,7 +174,7 @@ public virtual Task CacheStatsAsync(Elastic.Clients.Elastics /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(Elastic.Clients.Elasticsearch.NodeIds? nodeId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -189,7 +189,7 @@ public virtual Task CacheStatsAsync(Elastic.Clients.Elastics /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task CacheStatsAsync(CancellationToken cancel /// Get cache statistics. /// Get statistics about the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CacheStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -218,7 +218,7 @@ public virtual Task CacheStatsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) @@ -232,7 +232,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequest request, CancellationToken cancellationToken = default) { @@ -245,7 +245,7 @@ public virtual Task ClearCacheAsync(ClearCacheRequest reques /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) @@ -259,7 +259,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescrip /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) @@ -274,7 +274,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -290,7 +290,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() @@ -305,7 +305,7 @@ public virtual ClearCacheResponse ClearCache() /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Action> configureRequest) @@ -321,7 +321,7 @@ public virtual ClearCacheResponse ClearCache(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descriptor) @@ -335,7 +335,7 @@ public virtual ClearCacheResponse ClearCache(ClearCacheRequestDescriptor descrip /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices) @@ -350,7 +350,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -366,7 +366,7 @@ public virtual ClearCacheResponse ClearCache(Elastic.Clients.Elasticsearch.Indic /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache() @@ -381,7 +381,7 @@ public virtual ClearCacheResponse ClearCache() /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(Action configureRequest) @@ -397,7 +397,7 @@ public virtual ClearCacheResponse ClearCache(Action /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -410,7 +410,7 @@ public virtual Task ClearCacheAsync(ClearCacheReq /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -424,7 +424,7 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -439,7 +439,7 @@ public virtual Task ClearCacheAsync(Elastic.Clien /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { @@ -453,7 +453,7 @@ public virtual Task ClearCacheAsync(CancellationT /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -468,7 +468,7 @@ public virtual Task ClearCacheAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(ClearCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -481,7 +481,7 @@ public virtual Task ClearCacheAsync(ClearCacheRequestDescrip /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -495,7 +495,7 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -510,7 +510,7 @@ public virtual Task ClearCacheAsync(Elastic.Clients.Elastics /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(CancellationToken cancellationToken = default) { @@ -524,7 +524,7 @@ public virtual Task ClearCacheAsync(CancellationToken cancel /// Clear the cache. /// Clear indices and data streams from the shared cache for partially mounted indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCacheAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -541,7 +541,7 @@ public virtual Task ClearCacheAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(MountRequest request) @@ -557,7 +557,7 @@ public virtual MountResponse Mount(MountRequest request) /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(MountRequest request, CancellationToken cancellationToken = default) { @@ -572,7 +572,7 @@ public virtual Task MountAsync(MountRequest request, Cancellation /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(MountRequestDescriptor descriptor) @@ -588,7 +588,7 @@ public virtual MountResponse Mount(MountRequestDescriptor descriptor) /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -605,7 +605,7 @@ public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -623,7 +623,7 @@ public virtual MountResponse Mount(Elastic.Clients.Elasticsearch.Name repository /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(MountRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -638,7 +638,7 @@ public virtual Task MountAsync(MountRequestDescriptor descriptor, /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -654,7 +654,7 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// Do not use this API for snapshots managed by index lifecycle management (ILM). /// Manually mounting ILM-managed snapshots can interfere with ILM processes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -668,7 +668,7 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequest request) @@ -681,7 +681,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRe /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(SearchableSnapshotsStatsRequest request, CancellationToken cancellationToken = default) { @@ -693,7 +693,7 @@ public virtual Task StatsAsync(SearchableSnaps /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequestDescriptor descriptor) @@ -706,7 +706,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnaps /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices) @@ -720,7 +720,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -735,7 +735,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats() @@ -749,7 +749,7 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Action> configureRequest) @@ -764,7 +764,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Action /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequestDescriptor descriptor) @@ -777,7 +777,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRe /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices) @@ -791,7 +791,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsea /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -806,7 +806,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Elastic.Clients.Elasticsea /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats() @@ -820,7 +820,7 @@ public virtual SearchableSnapshotsStatsResponse Stats() /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(Action configureRequest) @@ -835,7 +835,7 @@ public virtual SearchableSnapshotsStatsResponse Stats(Action /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(SearchableSnapshotsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -847,7 +847,7 @@ public virtual Task StatsAsync(Sear /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -860,7 +860,7 @@ public virtual Task StatsAsync(Elas /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -874,7 +874,7 @@ public virtual Task StatsAsync(Elas /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -887,7 +887,7 @@ public virtual Task StatsAsync(Canc /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -901,7 +901,7 @@ public virtual Task StatsAsync(Acti /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(SearchableSnapshotsStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -913,7 +913,7 @@ public virtual Task StatsAsync(SearchableSnaps /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -926,7 +926,7 @@ public virtual Task StatsAsync(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -940,7 +940,7 @@ public virtual Task StatsAsync(Elastic.Clients /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -953,7 +953,7 @@ public virtual Task StatsAsync(CancellationTok /// /// Get searchable snapshot statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// 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/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs index 5c8a9861956..b1694193a5a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs @@ -60,7 +60,7 @@ internal SecurityNamespacedClient(ElasticsearchClient client) : base(client) /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfileRequest request) @@ -90,7 +90,7 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfi /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(ActivateUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -119,7 +119,7 @@ public virtual Task ActivateUserProfileAsync(Activa /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfileRequestDescriptor descriptor) @@ -149,7 +149,7 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(ActivateUserProfi /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile() @@ -180,7 +180,7 @@ public virtual ActivateUserProfileResponse ActivateUserProfile() /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ActivateUserProfileResponse ActivateUserProfile(Action configureRequest) @@ -212,7 +212,7 @@ public virtual ActivateUserProfileResponse ActivateUserProfile(Actionlabels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(ActivateUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -241,7 +241,7 @@ public virtual Task ActivateUserProfileAsync(Activa /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(CancellationToken cancellationToken = default) { @@ -271,7 +271,7 @@ public virtual Task ActivateUserProfileAsync(Cancel /// When updating a profile document, the API enables the document if it was disabled. /// Any updates do not change existing content for either the labels or data fields. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ActivateUserProfileAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -291,7 +291,7 @@ public virtual Task ActivateUserProfileAsync(Action /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate(AuthenticateRequest request) @@ -310,7 +310,7 @@ public virtual AuthenticateResponse Authenticate(AuthenticateRequest request) /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(AuthenticateRequest request, CancellationToken cancellationToken = default) { @@ -328,7 +328,7 @@ public virtual Task AuthenticateAsync(AuthenticateRequest /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate(AuthenticateRequestDescriptor descriptor) @@ -347,7 +347,7 @@ public virtual AuthenticateResponse Authenticate(AuthenticateRequestDescriptor d /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate() @@ -367,7 +367,7 @@ public virtual AuthenticateResponse Authenticate() /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AuthenticateResponse Authenticate(Action configureRequest) @@ -388,7 +388,7 @@ public virtual AuthenticateResponse Authenticate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(AuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -406,7 +406,7 @@ public virtual Task AuthenticateAsync(AuthenticateRequestD /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(CancellationToken cancellationToken = default) { @@ -425,7 +425,7 @@ public virtual Task AuthenticateAsync(CancellationToken ca /// A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. /// If the user cannot be authenticated, this API returns a 401 status code. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -443,7 +443,7 @@ public virtual Task AuthenticateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkDeleteRoleResponse BulkDeleteRole(BulkDeleteRoleRequest request) @@ -460,7 +460,7 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole(BulkDeleteRoleRequest reque /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRequest request, CancellationToken cancellationToken = default) { @@ -476,7 +476,7 @@ public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRe /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkDeleteRoleResponse BulkDeleteRole(BulkDeleteRoleRequestDescriptor descriptor) @@ -493,7 +493,7 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole(BulkDeleteRoleRequestDescri /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkDeleteRoleResponse BulkDeleteRole() @@ -511,7 +511,7 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole() /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkDeleteRoleResponse BulkDeleteRole(Action configureRequest) @@ -530,7 +530,7 @@ public virtual BulkDeleteRoleResponse BulkDeleteRole(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -546,7 +546,7 @@ public virtual Task BulkDeleteRoleAsync(BulkDeleteRoleRe /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkDeleteRoleAsync(CancellationToken cancellationToken = default) { @@ -563,7 +563,7 @@ public virtual Task BulkDeleteRoleAsync(CancellationToke /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk delete roles API cannot delete roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkDeleteRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -581,7 +581,7 @@ public virtual Task BulkDeleteRoleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequest request) @@ -598,7 +598,7 @@ public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequest request) /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(BulkPutRoleRequest request, CancellationToken cancellationToken = default) { @@ -614,7 +614,7 @@ public virtual Task BulkPutRoleAsync(BulkPutRoleRequest req /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequestDescriptor descriptor) @@ -631,7 +631,7 @@ public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequestDesc /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole() @@ -649,7 +649,7 @@ public virtual BulkPutRoleResponse BulkPutRole() /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole(Action> configureRequest) @@ -668,7 +668,7 @@ public virtual BulkPutRoleResponse BulkPutRole(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequestDescriptor descriptor) @@ -685,7 +685,7 @@ public virtual BulkPutRoleResponse BulkPutRole(BulkPutRoleRequestDescriptor desc /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole() @@ -703,7 +703,7 @@ public virtual BulkPutRoleResponse BulkPutRole() /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkPutRoleResponse BulkPutRole(Action configureRequest) @@ -722,7 +722,7 @@ public virtual BulkPutRoleResponse BulkPutRole(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -738,7 +738,7 @@ public virtual Task BulkPutRoleAsync(BulkPutRole /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(CancellationToken cancellationToken = default) { @@ -755,7 +755,7 @@ public virtual Task BulkPutRoleAsync(Cancellatio /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -773,7 +773,7 @@ public virtual Task BulkPutRoleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -789,7 +789,7 @@ public virtual Task BulkPutRoleAsync(BulkPutRoleRequestDesc /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(CancellationToken cancellationToken = default) { @@ -806,7 +806,7 @@ public virtual Task BulkPutRoleAsync(CancellationToken canc /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The bulk create or update roles API cannot update roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkPutRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -841,7 +841,7 @@ public virtual Task BulkPutRoleAsync(Action /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequest request) @@ -875,7 +875,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequ /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(BulkUpdateApiKeysRequest request, CancellationToken cancellationToken = default) { @@ -908,7 +908,7 @@ public virtual Task BulkUpdateApiKeysAsync(BulkUpdate /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequestDescriptor descriptor) @@ -942,7 +942,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdate /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys() @@ -977,7 +977,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys() /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(Action> configureRequest) @@ -1013,7 +1013,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(Action /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequestDescriptor descriptor) @@ -1047,7 +1047,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(BulkUpdateApiKeysRequ /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys() @@ -1082,7 +1082,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys() /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(Action configureRequest) @@ -1118,7 +1118,7 @@ public virtual BulkUpdateApiKeysResponse BulkUpdateApiKeys(Action /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(BulkUpdateApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1151,7 +1151,7 @@ public virtual Task BulkUpdateApiKeysAsync /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(CancellationToken cancellationToken = default) { @@ -1185,7 +1185,7 @@ public virtual Task BulkUpdateApiKeysAsync /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1220,7 +1220,7 @@ public virtual Task BulkUpdateApiKeysAsync /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(BulkUpdateApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1253,7 +1253,7 @@ public virtual Task BulkUpdateApiKeysAsync(BulkUpdate /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(CancellationToken cancellationToken = default) { @@ -1287,7 +1287,7 @@ public virtual Task BulkUpdateApiKeysAsync(Cancellati /// /// A successful request returns a JSON structure that contains the IDs of all updated API keys, the IDs of API keys that already had the requested changes and did not require an update, and error details for any failed update. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkUpdateApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1304,7 +1304,7 @@ public virtual Task BulkUpdateApiKeysAsync(Action /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequest request) @@ -1320,7 +1320,7 @@ public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequest reque /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChangePasswordAsync(ChangePasswordRequest request, CancellationToken cancellationToken = default) { @@ -1335,7 +1335,7 @@ public virtual Task ChangePasswordAsync(ChangePasswordRe /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequestDescriptor descriptor) @@ -1351,7 +1351,7 @@ public virtual ChangePasswordResponse ChangePassword(ChangePasswordRequestDescri /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsearch.Username? username) @@ -1368,7 +1368,7 @@ public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsear /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsearch.Username? username, Action configureRequest) @@ -1386,7 +1386,7 @@ public virtual ChangePasswordResponse ChangePassword(Elastic.Clients.Elasticsear /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ChangePasswordResponse ChangePassword() @@ -1403,7 +1403,7 @@ public virtual ChangePasswordResponse ChangePassword() /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ChangePasswordResponse ChangePassword(Action configureRequest) @@ -1421,7 +1421,7 @@ public virtual ChangePasswordResponse ChangePassword(Action /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChangePasswordAsync(ChangePasswordRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1436,7 +1436,7 @@ public virtual Task ChangePasswordAsync(ChangePasswordRe /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChangePasswordAsync(Elastic.Clients.Elasticsearch.Username? username, CancellationToken cancellationToken = default) { @@ -1452,7 +1452,7 @@ public virtual Task ChangePasswordAsync(Elastic.Clients. /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChangePasswordAsync(Elastic.Clients.Elasticsearch.Username? username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1469,7 +1469,7 @@ public virtual Task ChangePasswordAsync(Elastic.Clients. /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChangePasswordAsync(CancellationToken cancellationToken = default) { @@ -1485,7 +1485,7 @@ public virtual Task ChangePasswordAsync(CancellationToke /// /// Change the passwords of users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChangePasswordAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1503,7 +1503,7 @@ public virtual Task ChangePasswordAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest request) @@ -1520,7 +1520,7 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequest request, CancellationToken cancellationToken = default) { @@ -1536,7 +1536,7 @@ public virtual Task ClearApiKeyCacheAsync(ClearApiKeyC /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequestDescriptor descriptor) @@ -1553,7 +1553,7 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(ClearApiKeyCacheRequest /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids) @@ -1571,7 +1571,7 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elastic /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest) @@ -1590,7 +1590,7 @@ public virtual ClearApiKeyCacheResponse ClearApiKeyCache(Elastic.Clients.Elastic /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearApiKeyCacheAsync(ClearApiKeyCacheRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1606,7 +1606,7 @@ public virtual Task ClearApiKeyCacheAsync(ClearApiKeyC /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, CancellationToken cancellationToken = default) { @@ -1623,7 +1623,7 @@ public virtual Task ClearApiKeyCacheAsync(Elastic.Clie /// Evict a subset of all entries from the API key cache. /// The cache is also automatically cleared on state changes of the security index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearApiKeyCacheAsync(Elastic.Clients.Elasticsearch.Ids ids, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1641,7 +1641,7 @@ public virtual Task ClearApiKeyCacheAsync(Elastic.Clie /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPrivilegesRequest request) @@ -1658,7 +1658,7 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPr /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -1674,7 +1674,7 @@ public virtual Task ClearCachedPrivilegesAsync(Cl /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPrivilegesRequestDescriptor descriptor) @@ -1691,7 +1691,7 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(ClearCachedPr /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application) @@ -1709,7 +1709,7 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clien /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clients.Elasticsearch.Name application, Action configureRequest) @@ -1728,7 +1728,7 @@ public virtual ClearCachedPrivilegesResponse ClearCachedPrivileges(Elastic.Clien /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedPrivilegesAsync(ClearCachedPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1744,7 +1744,7 @@ public virtual Task ClearCachedPrivilegesAsync(Cl /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, CancellationToken cancellationToken = default) { @@ -1761,7 +1761,7 @@ public virtual Task ClearCachedPrivilegesAsync(El /// Evict privileges from the native application privilege cache. /// The cache is also automatically cleared for applications that have their privileges updated. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedPrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1784,7 +1784,7 @@ public virtual Task ClearCachedPrivilegesAsync(El /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequest request) @@ -1806,7 +1806,7 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequ /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequest request, CancellationToken cancellationToken = default) { @@ -1827,7 +1827,7 @@ public virtual Task ClearCachedRealmsAsync(ClearCache /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequestDescriptor descriptor) @@ -1849,7 +1849,7 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(ClearCachedRealmsRequ /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms) @@ -1872,7 +1872,7 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elast /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest) @@ -1896,7 +1896,7 @@ public virtual ClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elast /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRealmsAsync(ClearCachedRealmsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1917,7 +1917,7 @@ public virtual Task ClearCachedRealmsAsync(ClearCache /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, CancellationToken cancellationToken = default) { @@ -1939,7 +1939,7 @@ public virtual Task ClearCachedRealmsAsync(Elastic.Cl /// There are realm settings that you can use to configure the user cache. /// For more information, refer to the documentation about controlling the user cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1956,7 +1956,7 @@ public virtual Task ClearCachedRealmsAsync(Elastic.Cl /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest request) @@ -1972,7 +1972,7 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequest request, CancellationToken cancellationToken = default) { @@ -1987,7 +1987,7 @@ public virtual Task ClearCachedRolesAsync(ClearCachedR /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequestDescriptor descriptor) @@ -2003,7 +2003,7 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(ClearCachedRolesRequest /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name) @@ -2020,7 +2020,7 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elastic /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -2038,7 +2038,7 @@ public virtual ClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elastic /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRolesAsync(ClearCachedRolesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2053,7 +2053,7 @@ public virtual Task ClearCachedRolesAsync(ClearCachedR /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -2069,7 +2069,7 @@ public virtual Task ClearCachedRolesAsync(Elastic.Clie /// /// Evict roles from the native role cache. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2092,7 +2092,7 @@ public virtual Task ClearCachedRolesAsync(Elastic.Clie /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCachedServiceTokensRequest request) @@ -2114,7 +2114,7 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCa /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequest request, CancellationToken cancellationToken = default) { @@ -2135,7 +2135,7 @@ public virtual Task ClearCachedServiceTokensAs /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCachedServiceTokensRequestDescriptor descriptor) @@ -2157,7 +2157,7 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(ClearCa /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string ns, string service, Elastic.Clients.Elasticsearch.Names name) @@ -2180,7 +2180,7 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string ns, string service, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -2204,7 +2204,7 @@ public virtual ClearCachedServiceTokensResponse ClearCachedServiceTokens(string /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedServiceTokensAsync(ClearCachedServiceTokensRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2225,7 +2225,7 @@ public virtual Task ClearCachedServiceTokensAs /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -2247,7 +2247,7 @@ public virtual Task ClearCachedServiceTokensAs /// The cache for service account tokens backed by the .security index is cleared automatically on state changes of the security index. /// The cache for tokens backed by the service_tokens file is cleared automatically on file changes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCachedServiceTokensAsync(string ns, string service, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2279,7 +2279,7 @@ public virtual Task ClearCachedServiceTokensAs /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) @@ -2310,7 +2310,7 @@ public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request) /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(CreateApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -2340,7 +2340,7 @@ public virtual Task CreateApiKeyAsync(CreateApiKeyRequest /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor descriptor) @@ -2371,7 +2371,7 @@ public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestD /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey() @@ -2403,7 +2403,7 @@ public virtual CreateApiKeyResponse CreateApiKey() /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey(Action> configureRequest) @@ -2436,7 +2436,7 @@ public virtual CreateApiKeyResponse CreateApiKey(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor descriptor) @@ -2467,7 +2467,7 @@ public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequestDescriptor d /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey() @@ -2499,7 +2499,7 @@ public virtual CreateApiKeyResponse CreateApiKey() /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateApiKeyResponse CreateApiKey(Action configureRequest) @@ -2532,7 +2532,7 @@ public virtual CreateApiKeyResponse CreateApiKey(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2562,7 +2562,7 @@ public virtual Task CreateApiKeyAsync(CreateApi /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) { @@ -2593,7 +2593,7 @@ public virtual Task CreateApiKeyAsync(Cancellat /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2625,7 +2625,7 @@ public virtual Task CreateApiKeyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(CreateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2655,7 +2655,7 @@ public virtual Task CreateApiKeyAsync(CreateApiKeyRequestD /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(CancellationToken cancellationToken = default) { @@ -2686,7 +2686,7 @@ public virtual Task CreateApiKeyAsync(CancellationToken ca /// The API keys are created by the Elasticsearch API key service, which is automatically enabled. /// To configure or turn off the API key service, refer to API key service setting documentation. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2723,7 +2723,7 @@ public virtual Task CreateApiKeyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequest request) @@ -2759,7 +2759,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateC /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -2794,7 +2794,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) @@ -2830,7 +2830,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() @@ -2867,7 +2867,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action> configureRequest) @@ -2905,7 +2905,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateCrossClusterApiKeyRequestDescriptor descriptor) @@ -2941,7 +2941,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(CreateC /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() @@ -2978,7 +2978,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey() /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action configureRequest) @@ -3016,7 +3016,7 @@ public virtual CreateCrossClusterApiKeyResponse CreateCrossClusterApiKey(Action< /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3051,7 +3051,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) { @@ -3087,7 +3087,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3124,7 +3124,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(CreateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3159,7 +3159,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(CancellationToken cancellationToken = default) { @@ -3195,7 +3195,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// Cross-cluster API keys can only be updated with the update cross-cluster API key API. /// Attempting to update them with the update REST API key API or the bulk update REST API keys API will result in an error. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateCrossClusterApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3216,7 +3216,7 @@ public virtual Task CreateCrossClusterApiKeyAs /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequest request) @@ -3236,7 +3236,7 @@ public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenR /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequest request, CancellationToken cancellationToken = default) { @@ -3255,7 +3255,7 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenRequestDescriptor descriptor) @@ -3275,7 +3275,7 @@ public virtual CreateServiceTokenResponse CreateServiceToken(CreateServiceTokenR /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name? name) @@ -3296,7 +3296,7 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name? name, Action configureRequest) @@ -3318,7 +3318,7 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service) @@ -3339,7 +3339,7 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string service, Action configureRequest) @@ -3361,7 +3361,7 @@ public virtual CreateServiceTokenResponse CreateServiceToken(string ns, string s /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(CreateServiceTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3380,7 +3380,7 @@ public virtual Task CreateServiceTokenAsync(CreateSe /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name? name, CancellationToken cancellationToken = default) { @@ -3400,7 +3400,7 @@ public virtual Task CreateServiceTokenAsync(string n /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3421,7 +3421,7 @@ public virtual Task CreateServiceTokenAsync(string n /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, CancellationToken cancellationToken = default) { @@ -3441,7 +3441,7 @@ public virtual Task CreateServiceTokenAsync(string n /// NOTE: Service account tokens never expire. /// You must actively delete them if they are no longer needed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateServiceTokenAsync(string ns, string service, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3468,7 +3468,7 @@ public virtual Task CreateServiceTokenAsync(string n /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DelegatePkiResponse DelegatePki(DelegatePkiRequest request) @@ -3494,7 +3494,7 @@ public virtual DelegatePkiResponse DelegatePki(DelegatePkiRequest request) /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DelegatePkiAsync(DelegatePkiRequest request, CancellationToken cancellationToken = default) { @@ -3519,7 +3519,7 @@ public virtual Task DelegatePkiAsync(DelegatePkiRequest req /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DelegatePkiResponse DelegatePki(DelegatePkiRequestDescriptor descriptor) @@ -3545,7 +3545,7 @@ public virtual DelegatePkiResponse DelegatePki(DelegatePkiRequestDescriptor desc /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DelegatePkiResponse DelegatePki() @@ -3572,7 +3572,7 @@ public virtual DelegatePkiResponse DelegatePki() /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DelegatePkiResponse DelegatePki(Action configureRequest) @@ -3600,7 +3600,7 @@ public virtual DelegatePkiResponse DelegatePki(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DelegatePkiAsync(DelegatePkiRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3625,7 +3625,7 @@ public virtual Task DelegatePkiAsync(DelegatePkiRequestDesc /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DelegatePkiAsync(CancellationToken cancellationToken = default) { @@ -3651,7 +3651,7 @@ public virtual Task DelegatePkiAsync(CancellationToken canc /// This is part of the TLS authentication process and it is delegated to the proxy that calls this API. /// The proxy is trusted to have performed the TLS authentication and this API translates that authentication into an Elasticsearch access token. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DelegatePkiAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3680,7 +3680,7 @@ public virtual Task DelegatePkiAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest request) @@ -3708,7 +3708,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -3735,7 +3735,7 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequestDescriptor descriptor) @@ -3763,7 +3763,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(DeletePrivilegesRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name) @@ -3792,7 +3792,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -3822,7 +3822,7 @@ public virtual DeletePrivilegesResponse DeletePrivileges(Elastic.Clients.Elastic /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(DeletePrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3849,7 +3849,7 @@ public virtual Task DeletePrivilegesAsync(DeletePrivil /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -3877,7 +3877,7 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeletePrivilegesAsync(Elastic.Clients.Elasticsearch.Name application, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3896,7 +3896,7 @@ public virtual Task DeletePrivilegesAsync(Elastic.Clie /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequest request) @@ -3914,7 +3914,7 @@ public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequest request) /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(DeleteRoleRequest request, CancellationToken cancellationToken = default) { @@ -3931,7 +3931,7 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequest reques /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequestDescriptor descriptor) @@ -3949,7 +3949,7 @@ public virtual DeleteRoleResponse DeleteRole(DeleteRoleRequestDescriptor descrip /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name) @@ -3968,7 +3968,7 @@ public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -3988,7 +3988,7 @@ public virtual DeleteRoleResponse DeleteRole(Elastic.Clients.Elasticsearch.Name /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(DeleteRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4005,7 +4005,7 @@ public virtual Task DeleteRoleAsync(DeleteRoleRequestDescrip /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -4023,7 +4023,7 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The delete roles API cannot remove roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4042,7 +4042,7 @@ public virtual Task DeleteRoleAsync(Elastic.Clients.Elastics /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequest request) @@ -4060,7 +4060,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequ /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(DeleteRoleMappingRequest request, CancellationToken cancellationToken = default) { @@ -4077,7 +4077,7 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequestDescriptor descriptor) @@ -4095,7 +4095,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(DeleteRoleMappingRequ /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elasticsearch.Name name) @@ -4114,7 +4114,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elast /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -4134,7 +4134,7 @@ public virtual DeleteRoleMappingResponse DeleteRoleMapping(Elastic.Clients.Elast /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(DeleteRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4151,7 +4151,7 @@ public virtual Task DeleteRoleMappingAsync(DeleteRole /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -4169,7 +4169,7 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The delete role mappings API cannot remove role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4186,7 +4186,7 @@ public virtual Task DeleteRoleMappingAsync(Elastic.Cl /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenRequest request) @@ -4202,7 +4202,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenR /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(DeleteServiceTokenRequest request, CancellationToken cancellationToken = default) { @@ -4217,7 +4217,7 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenRequestDescriptor descriptor) @@ -4233,7 +4233,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(DeleteServiceTokenR /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name name) @@ -4250,7 +4250,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string s /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string service, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -4268,7 +4268,7 @@ public virtual DeleteServiceTokenResponse DeleteServiceToken(string ns, string s /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(DeleteServiceTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4283,7 +4283,7 @@ public virtual Task DeleteServiceTokenAsync(DeleteSe /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -4299,7 +4299,7 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// Delete service account tokens for a service in a specified namespace. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteServiceTokenAsync(string ns, string service, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4316,7 +4316,7 @@ public virtual Task DeleteServiceTokenAsync(string n /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) @@ -4332,7 +4332,7 @@ public virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(DeleteUserRequest request, CancellationToken cancellationToken = default) { @@ -4347,7 +4347,7 @@ public virtual Task DeleteUserAsync(DeleteUserRequest reques /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(DeleteUserRequestDescriptor descriptor) @@ -4363,7 +4363,7 @@ public virtual DeleteUserResponse DeleteUser(DeleteUserRequestDescriptor descrip /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Username username) @@ -4380,7 +4380,7 @@ public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Usern /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) @@ -4398,7 +4398,7 @@ public virtual DeleteUserResponse DeleteUser(Elastic.Clients.Elasticsearch.Usern /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(DeleteUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4413,7 +4413,7 @@ public virtual Task DeleteUserAsync(DeleteUserRequestDescrip /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) { @@ -4429,7 +4429,7 @@ public virtual Task DeleteUserAsync(Elastic.Clients.Elastics /// /// Delete users from the native realm. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4448,7 +4448,7 @@ public virtual Task DeleteUserAsync(Elastic.Clients.Elastics /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(DisableUserRequest request) @@ -4466,7 +4466,7 @@ public virtual DisableUserResponse DisableUser(DisableUserRequest request) /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(DisableUserRequest request, CancellationToken cancellationToken = default) { @@ -4483,7 +4483,7 @@ public virtual Task DisableUserAsync(DisableUserRequest req /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(DisableUserRequestDescriptor descriptor) @@ -4501,7 +4501,7 @@ public virtual DisableUserResponse DisableUser(DisableUserRequestDescriptor desc /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Username username) @@ -4520,7 +4520,7 @@ public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Use /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) @@ -4540,7 +4540,7 @@ public virtual DisableUserResponse DisableUser(Elastic.Clients.Elasticsearch.Use /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(DisableUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4557,7 +4557,7 @@ public virtual Task DisableUserAsync(DisableUserRequestDesc /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) { @@ -4575,7 +4575,7 @@ public virtual Task DisableUserAsync(Elastic.Clients.Elasti /// By default, when you create users, they are enabled. /// You can use this API to revoke a user's access to Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4601,7 +4601,7 @@ public virtual Task DisableUserAsync(Elastic.Clients.Elasti /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileRequest request) @@ -4626,7 +4626,7 @@ public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileR /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(DisableUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -4650,7 +4650,7 @@ public virtual Task DisableUserProfileAsync(DisableU /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileRequestDescriptor descriptor) @@ -4675,7 +4675,7 @@ public virtual DisableUserProfileResponse DisableUserProfile(DisableUserProfileR /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(string uid) @@ -4701,7 +4701,7 @@ public virtual DisableUserProfileResponse DisableUserProfile(string uid) /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DisableUserProfileResponse DisableUserProfile(string uid, Action configureRequest) @@ -4728,7 +4728,7 @@ public virtual DisableUserProfileResponse DisableUserProfile(string uid, Action< /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(DisableUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4752,7 +4752,7 @@ public virtual Task DisableUserProfileAsync(DisableU /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(string uid, CancellationToken cancellationToken = default) { @@ -4777,7 +4777,7 @@ public virtual Task DisableUserProfileAsync(string u /// When you activate a user profile, its automatically enabled and visible in user profile searches. You can use the disable user profile API to disable a user profile so it’s not visible in these searches. /// To re-enable a disabled user profile, use the enable user profile API . /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DisableUserProfileAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4795,7 +4795,7 @@ public virtual Task DisableUserProfileAsync(string u /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(EnableUserRequest request) @@ -4812,7 +4812,7 @@ public virtual EnableUserResponse EnableUser(EnableUserRequest request) /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(EnableUserRequest request, CancellationToken cancellationToken = default) { @@ -4828,7 +4828,7 @@ public virtual Task EnableUserAsync(EnableUserRequest reques /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(EnableUserRequestDescriptor descriptor) @@ -4845,7 +4845,7 @@ public virtual EnableUserResponse EnableUser(EnableUserRequestDescriptor descrip /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Username username) @@ -4863,7 +4863,7 @@ public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Usern /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Username username, Action configureRequest) @@ -4882,7 +4882,7 @@ public virtual EnableUserResponse EnableUser(Elastic.Clients.Elasticsearch.Usern /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(EnableUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4898,7 +4898,7 @@ public virtual Task EnableUserAsync(EnableUserRequestDescrip /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(Elastic.Clients.Elasticsearch.Username username, CancellationToken cancellationToken = default) { @@ -4915,7 +4915,7 @@ public virtual Task EnableUserAsync(Elastic.Clients.Elastics /// Enable users in the native realm. /// By default, when you create users, they are enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserAsync(Elastic.Clients.Elasticsearch.Username username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4941,7 +4941,7 @@ public virtual Task EnableUserAsync(Elastic.Clients.Elastics /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequest request) @@ -4966,7 +4966,7 @@ public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequ /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(EnableUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -4990,7 +4990,7 @@ public virtual Task EnableUserProfileAsync(EnableUser /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequestDescriptor descriptor) @@ -5015,7 +5015,7 @@ public virtual EnableUserProfileResponse EnableUserProfile(EnableUserProfileRequ /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(string uid) @@ -5041,7 +5041,7 @@ public virtual EnableUserProfileResponse EnableUserProfile(string uid) /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnableUserProfileResponse EnableUserProfile(string uid, Action configureRequest) @@ -5068,7 +5068,7 @@ public virtual EnableUserProfileResponse EnableUserProfile(string uid, Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(EnableUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5092,7 +5092,7 @@ public virtual Task EnableUserProfileAsync(EnableUser /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(string uid, CancellationToken cancellationToken = default) { @@ -5117,7 +5117,7 @@ public virtual Task EnableUserProfileAsync(string uid /// When you activate a user profile, it's automatically enabled and visible in user profile searches. /// If you later disable the user profile, you can use the enable user profile API to make the profile visible in these searches again. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnableUserProfileAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5138,7 +5138,7 @@ public virtual Task EnableUserProfileAsync(string uid /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequest request) @@ -5158,7 +5158,7 @@ public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequest request) /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(EnrollKibanaRequest request, CancellationToken cancellationToken = default) { @@ -5177,7 +5177,7 @@ public virtual Task EnrollKibanaAsync(EnrollKibanaRequest /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequestDescriptor descriptor) @@ -5197,7 +5197,7 @@ public virtual EnrollKibanaResponse EnrollKibana(EnrollKibanaRequestDescriptor d /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana() @@ -5218,7 +5218,7 @@ public virtual EnrollKibanaResponse EnrollKibana() /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollKibanaResponse EnrollKibana(Action configureRequest) @@ -5240,7 +5240,7 @@ public virtual EnrollKibanaResponse EnrollKibana(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(EnrollKibanaRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5259,7 +5259,7 @@ public virtual Task EnrollKibanaAsync(EnrollKibanaRequestD /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(CancellationToken cancellationToken = default) { @@ -5279,7 +5279,7 @@ public virtual Task EnrollKibanaAsync(CancellationToken ca /// NOTE: This API is currently intended for internal use only by Kibana. /// Kibana uses this API internally to configure itself for communications with an Elasticsearch cluster that already has security features enabled. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollKibanaAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5300,7 +5300,7 @@ public virtual Task EnrollKibanaAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequest request) @@ -5320,7 +5320,7 @@ public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequest request) /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(EnrollNodeRequest request, CancellationToken cancellationToken = default) { @@ -5339,7 +5339,7 @@ public virtual Task EnrollNodeAsync(EnrollNodeRequest reques /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequestDescriptor descriptor) @@ -5359,7 +5359,7 @@ public virtual EnrollNodeResponse EnrollNode(EnrollNodeRequestDescriptor descrip /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode() @@ -5380,7 +5380,7 @@ public virtual EnrollNodeResponse EnrollNode() /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrollNodeResponse EnrollNode(Action configureRequest) @@ -5402,7 +5402,7 @@ public virtual EnrollNodeResponse EnrollNode(Action /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(EnrollNodeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5421,7 +5421,7 @@ public virtual Task EnrollNodeAsync(EnrollNodeRequestDescrip /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(CancellationToken cancellationToken = default) { @@ -5441,7 +5441,7 @@ public virtual Task EnrollNodeAsync(CancellationToken cancel /// The response contains all the necessary information for the joining node to bootstrap discovery and security related settings so that it can successfully join the cluster. /// The response contains key and certificate material that allows the caller to generate valid signed certificates for the HTTP layer of all nodes in the cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task EnrollNodeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5460,7 +5460,7 @@ public virtual Task EnrollNodeAsync(Actionmanage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request) @@ -5478,7 +5478,7 @@ public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequest request) /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(GetApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -5495,7 +5495,7 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequest request, /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequestDescriptor descriptor) @@ -5513,7 +5513,7 @@ public virtual GetApiKeyResponse GetApiKey(GetApiKeyRequestDescriptor descriptor /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey() @@ -5532,7 +5532,7 @@ public virtual GetApiKeyResponse GetApiKey() /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetApiKeyResponse GetApiKey(Action configureRequest) @@ -5552,7 +5552,7 @@ public virtual GetApiKeyResponse GetApiKey(Action co /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5569,7 +5569,7 @@ public virtual Task GetApiKeyAsync(GetApiKeyRequestDescriptor /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(CancellationToken cancellationToken = default) { @@ -5587,7 +5587,7 @@ public virtual Task GetApiKeyAsync(CancellationToken cancella /// NOTE: If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have read_security, manage_api_key or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5604,7 +5604,7 @@ public virtual Task GetApiKeyAsync(Action /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivilegesRequest request) @@ -5620,7 +5620,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivi /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(GetBuiltinPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -5635,7 +5635,7 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivilegesRequestDescriptor descriptor) @@ -5651,7 +5651,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(GetBuiltinPrivi /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges() @@ -5668,7 +5668,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges() /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(Action configureRequest) @@ -5686,7 +5686,7 @@ public virtual GetBuiltinPrivilegesResponse GetBuiltinPrivileges(Action /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(GetBuiltinPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5701,7 +5701,7 @@ public virtual Task GetBuiltinPrivilegesAsync(GetB /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -5717,7 +5717,7 @@ public virtual Task GetBuiltinPrivilegesAsync(Canc /// /// Get the list of cluster privileges and index privileges that are available in this version of Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetBuiltinPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5746,7 +5746,7 @@ public virtual Task GetBuiltinPrivilegesAsync(Acti /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequest request) @@ -5774,7 +5774,7 @@ public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(GetPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -5801,7 +5801,7 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequestDescriptor descriptor) @@ -5829,7 +5829,7 @@ public virtual GetPrivilegesResponse GetPrivileges(GetPrivilegesRequestDescripto /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name) @@ -5858,7 +5858,7 @@ public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -5888,7 +5888,7 @@ public virtual GetPrivilegesResponse GetPrivileges(Elastic.Clients.Elasticsearch /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges() @@ -5917,7 +5917,7 @@ public virtual GetPrivilegesResponse GetPrivileges() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPrivilegesResponse GetPrivileges(Action configureRequest) @@ -5947,7 +5947,7 @@ public virtual GetPrivilegesResponse GetPrivileges(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(GetPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5974,7 +5974,7 @@ public virtual Task GetPrivilegesAsync(GetPrivilegesReque /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -6002,7 +6002,7 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? application, Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6031,7 +6031,7 @@ public virtual Task GetPrivilegesAsync(Elastic.Clients.El /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -6059,7 +6059,7 @@ public virtual Task GetPrivilegesAsync(CancellationToken /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6078,7 +6078,7 @@ public virtual Task GetPrivilegesAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(GetRoleRequest request) @@ -6096,7 +6096,7 @@ public virtual GetRoleResponse GetRole(GetRoleRequest request) /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(GetRoleRequest request, CancellationToken cancellationToken = default) { @@ -6113,7 +6113,7 @@ public virtual Task GetRoleAsync(GetRoleRequest request, Cancel /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(GetRoleRequestDescriptor descriptor) @@ -6131,7 +6131,7 @@ public virtual GetRoleResponse GetRole(GetRoleRequestDescriptor descriptor) /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name) @@ -6150,7 +6150,7 @@ public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -6170,7 +6170,7 @@ public virtual GetRoleResponse GetRole(Elastic.Clients.Elasticsearch.Names? name /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole() @@ -6189,7 +6189,7 @@ public virtual GetRoleResponse GetRole() /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleResponse GetRole(Action configureRequest) @@ -6209,7 +6209,7 @@ public virtual GetRoleResponse GetRole(Action configur /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(GetRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6226,7 +6226,7 @@ public virtual Task GetRoleAsync(GetRoleRequestDescriptor descr /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -6244,7 +6244,7 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6263,7 +6263,7 @@ public virtual Task GetRoleAsync(Elastic.Clients.Elasticsearch. /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(CancellationToken cancellationToken = default) { @@ -6281,7 +6281,7 @@ public virtual Task GetRoleAsync(CancellationToken cancellation /// The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. /// The get roles API cannot retrieve roles that are defined in roles files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6300,7 +6300,7 @@ public virtual Task GetRoleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequest request) @@ -6318,7 +6318,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequest reque /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(GetRoleMappingRequest request, CancellationToken cancellationToken = default) { @@ -6335,7 +6335,7 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequestDescriptor descriptor) @@ -6353,7 +6353,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(GetRoleMappingRequestDescri /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsearch.Names? name) @@ -6372,7 +6372,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsear /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -6392,7 +6392,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(Elastic.Clients.Elasticsear /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping() @@ -6411,7 +6411,7 @@ public virtual GetRoleMappingResponse GetRoleMapping() /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRoleMappingResponse GetRoleMapping(Action configureRequest) @@ -6431,7 +6431,7 @@ public virtual GetRoleMappingResponse GetRoleMapping(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(GetRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6448,7 +6448,7 @@ public virtual Task GetRoleMappingAsync(GetRoleMappingRe /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -6466,7 +6466,7 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6485,7 +6485,7 @@ public virtual Task GetRoleMappingAsync(Elastic.Clients. /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(CancellationToken cancellationToken = default) { @@ -6503,7 +6503,7 @@ public virtual Task GetRoleMappingAsync(CancellationToke /// The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. /// The get role mappings API cannot retrieve role mappings that are defined in role mapping files. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRoleMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6523,7 +6523,7 @@ public virtual Task GetRoleMappingAsync(Action /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsRequest request) @@ -6542,7 +6542,7 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsR /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(GetServiceAccountsRequest request, CancellationToken cancellationToken = default) { @@ -6560,7 +6560,7 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsRequestDescriptor descriptor) @@ -6579,7 +6579,7 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(GetServiceAccountsR /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? service) @@ -6599,7 +6599,7 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? service, Action configureRequest) @@ -6620,7 +6620,7 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(string? ns, string? /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts() @@ -6640,7 +6640,7 @@ public virtual GetServiceAccountsResponse GetServiceAccounts() /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceAccountsResponse GetServiceAccounts(Action configureRequest) @@ -6661,7 +6661,7 @@ public virtual GetServiceAccountsResponse GetServiceAccounts(Action /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(GetServiceAccountsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6679,7 +6679,7 @@ public virtual Task GetServiceAccountsAsync(GetServi /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(string? ns, string? service, CancellationToken cancellationToken = default) { @@ -6698,7 +6698,7 @@ public virtual Task GetServiceAccountsAsync(string? /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(string? ns, string? service, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6718,7 +6718,7 @@ public virtual Task GetServiceAccountsAsync(string? /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(CancellationToken cancellationToken = default) { @@ -6737,7 +6737,7 @@ public virtual Task GetServiceAccountsAsync(Cancella /// /// NOTE: Currently, only the elastic/fleet-server service account is available. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceAccountsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -6761,7 +6761,7 @@ public virtual Task GetServiceAccountsAsync(Actionservice_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCredentialsRequest request) @@ -6784,7 +6784,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCre /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(GetServiceCredentialsRequest request, CancellationToken cancellationToken = default) { @@ -6806,7 +6806,7 @@ public virtual Task GetServiceCredentialsAsync(Ge /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCredentialsRequestDescriptor descriptor) @@ -6829,7 +6829,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(GetServiceCre /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, Elastic.Clients.Elasticsearch.Name service) @@ -6853,7 +6853,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, El /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, Elastic.Clients.Elasticsearch.Name service, Action configureRequest) @@ -6878,7 +6878,7 @@ public virtual GetServiceCredentialsResponse GetServiceCredentials(string ns, El /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(GetServiceCredentialsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6900,7 +6900,7 @@ public virtual Task GetServiceCredentialsAsync(Ge /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(string ns, Elastic.Clients.Elasticsearch.Name service, CancellationToken cancellationToken = default) { @@ -6923,7 +6923,7 @@ public virtual Task GetServiceCredentialsAsync(st /// NOTE: For tokens backed by the service_tokens file, the API collects them from all nodes of the cluster. /// Tokens with the same name from different nodes are assumed to be the same token and are only counted once towards the total number of service tokens. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetServiceCredentialsAsync(string ns, Elastic.Clients.Elasticsearch.Name service, Action configureRequest, CancellationToken cancellationToken = default) { @@ -6954,7 +6954,7 @@ public virtual Task GetServiceCredentialsAsync(st /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSecuritySettingsResponse GetSettings(GetSecuritySettingsRequest request) @@ -6984,7 +6984,7 @@ public virtual GetSecuritySettingsResponse GetSettings(GetSecuritySettingsReques /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetSecuritySettingsRequest request, CancellationToken cancellationToken = default) { @@ -7013,7 +7013,7 @@ public virtual Task GetSettingsAsync(GetSecuritySet /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSecuritySettingsResponse GetSettings(GetSecuritySettingsRequestDescriptor descriptor) @@ -7043,7 +7043,7 @@ public virtual GetSecuritySettingsResponse GetSettings(GetSecuritySettingsReques /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSecuritySettingsResponse GetSettings() @@ -7074,7 +7074,7 @@ public virtual GetSecuritySettingsResponse GetSettings() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSecuritySettingsResponse GetSettings(Action configureRequest) @@ -7106,7 +7106,7 @@ public virtual GetSecuritySettingsResponse GetSettings(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetSecuritySettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7135,7 +7135,7 @@ public virtual Task GetSettingsAsync(GetSecuritySet /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -7165,7 +7165,7 @@ public virtual Task GetSettingsAsync(CancellationTo /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7196,7 +7196,7 @@ public virtual Task GetSettingsAsync(Actionxpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTokenResponse GetToken(GetTokenRequest request) @@ -7226,7 +7226,7 @@ public virtual GetTokenResponse GetToken(GetTokenRequest request) /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTokenAsync(GetTokenRequest request, CancellationToken cancellationToken = default) { @@ -7255,7 +7255,7 @@ public virtual Task GetTokenAsync(GetTokenRequest request, Can /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTokenResponse GetToken(GetTokenRequestDescriptor descriptor) @@ -7285,7 +7285,7 @@ public virtual GetTokenResponse GetToken(GetTokenRequestDescriptor descriptor) /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTokenResponse GetToken() @@ -7316,7 +7316,7 @@ public virtual GetTokenResponse GetToken() /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTokenResponse GetToken(Action configureRequest) @@ -7348,7 +7348,7 @@ public virtual GetTokenResponse GetToken(Action confi /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTokenAsync(GetTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7377,7 +7377,7 @@ public virtual Task GetTokenAsync(GetTokenRequestDescriptor de /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTokenAsync(CancellationToken cancellationToken = default) { @@ -7407,7 +7407,7 @@ public virtual Task GetTokenAsync(CancellationToken cancellati /// That time period is defined by the xpack.security.authc.token.timeout setting. /// If you want to invalidate a token immediately, you can do so by using the invalidate token API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7424,7 +7424,7 @@ public virtual Task GetTokenAsync(Action /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser(GetUserRequest request) @@ -7440,7 +7440,7 @@ public virtual GetUserResponse GetUser(GetUserRequest request) /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(GetUserRequest request, CancellationToken cancellationToken = default) { @@ -7455,7 +7455,7 @@ public virtual Task GetUserAsync(GetUserRequest request, Cancel /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser(GetUserRequestDescriptor descriptor) @@ -7471,7 +7471,7 @@ public virtual GetUserResponse GetUser(GetUserRequestDescriptor descriptor) /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser(IReadOnlyCollection? username) @@ -7488,7 +7488,7 @@ public virtual GetUserResponse GetUser(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser(IReadOnlyCollection? username, Action configureRequest) @@ -7506,7 +7506,7 @@ public virtual GetUserResponse GetUser(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser() @@ -7523,7 +7523,7 @@ public virtual GetUserResponse GetUser() /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserResponse GetUser(Action configureRequest) @@ -7541,7 +7541,7 @@ public virtual GetUserResponse GetUser(Action configur /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(GetUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7556,7 +7556,7 @@ public virtual Task GetUserAsync(GetUserRequestDescriptor descr /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(IReadOnlyCollection? username, CancellationToken cancellationToken = default) { @@ -7572,7 +7572,7 @@ public virtual Task GetUserAsync(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(IReadOnlyCollection? username, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7589,7 +7589,7 @@ public virtual Task GetUserAsync(IReadOnlyCollection /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(CancellationToken cancellationToken = default) { @@ -7605,7 +7605,7 @@ public virtual Task GetUserAsync(CancellationToken cancellation /// /// Get information about users in the native realm and built-in users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7625,7 +7625,7 @@ public virtual Task GetUserAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequest request) @@ -7644,7 +7644,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequ /// To check the privileges of other users, you must use the run as feature. /// To check whether a user has a specific list of privileges, use the has privileges API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(GetUserPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -7662,7 +7662,7 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// To check the privileges of other users, you must use the run as feature. /// To check whether a user has a specific list of privileges, use the has privileges API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequestDescriptor descriptor) @@ -7681,7 +7681,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(GetUserPrivilegesRequ /// To check the privileges of other users, you must use the run as feature. /// To check whether a user has a specific list of privileges, use the has privileges API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges() @@ -7701,7 +7701,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges() /// To check the privileges of other users, you must use the run as feature. /// To check whether a user has a specific list of privileges, use the has privileges API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserPrivilegesResponse GetUserPrivileges(Action configureRequest) @@ -7722,7 +7722,7 @@ public virtual GetUserPrivilegesResponse GetUserPrivileges(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(GetUserPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7740,7 +7740,7 @@ public virtual Task GetUserPrivilegesAsync(GetUserPri /// To check the privileges of other users, you must use the run as feature. /// To check whether a user has a specific list of privileges, use the has privileges API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -7759,7 +7759,7 @@ public virtual Task GetUserPrivilegesAsync(Cancellati /// To check the privileges of other users, you must use the run as feature. /// To check whether a user has a specific list of privileges, use the has privileges API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -7781,7 +7781,7 @@ public virtual Task GetUserPrivilegesAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequest request) @@ -7802,7 +7802,7 @@ public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequest reque /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(GetUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -7822,7 +7822,7 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequestDescriptor descriptor) @@ -7843,7 +7843,7 @@ public virtual GetUserProfileResponse GetUserProfile(GetUserProfileRequestDescri /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection uid) @@ -7865,7 +7865,7 @@ public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection uid, Action configureRequest) @@ -7888,7 +7888,7 @@ public virtual GetUserProfileResponse GetUserProfile(IReadOnlyCollection /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(GetUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -7908,7 +7908,7 @@ public virtual Task GetUserProfileAsync(GetUserProfileRe /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(IReadOnlyCollection uid, CancellationToken cancellationToken = default) { @@ -7929,7 +7929,7 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetUserProfileAsync(IReadOnlyCollection uid, Action configureRequest, CancellationToken cancellationToken = default) { @@ -7982,7 +7982,7 @@ public virtual Task GetUserProfileAsync(IReadOnlyCollect /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequest request) @@ -8034,7 +8034,7 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequest request) /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(GrantApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -8085,7 +8085,7 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequest req /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor descriptor) @@ -8137,7 +8137,7 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDesc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey() @@ -8190,7 +8190,7 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(Action> configureRequest) @@ -8244,7 +8244,7 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor descriptor) @@ -8296,7 +8296,7 @@ public virtual GrantApiKeyResponse GrantApiKey(GrantApiKeyRequestDescriptor desc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey() @@ -8349,7 +8349,7 @@ public virtual GrantApiKeyResponse GrantApiKey() /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GrantApiKeyResponse GrantApiKey(Action configureRequest) @@ -8403,7 +8403,7 @@ public virtual GrantApiKeyResponse GrantApiKey(Action /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8454,7 +8454,7 @@ public virtual Task GrantApiKeyAsync(GrantApiKey /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(CancellationToken cancellationToken = default) { @@ -8506,7 +8506,7 @@ public virtual Task GrantApiKeyAsync(Cancellatio /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8559,7 +8559,7 @@ public virtual Task GrantApiKeyAsync(Action /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8610,7 +8610,7 @@ public virtual Task GrantApiKeyAsync(GrantApiKeyRequestDesc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(CancellationToken cancellationToken = default) { @@ -8662,7 +8662,7 @@ public virtual Task GrantApiKeyAsync(CancellationToken canc /// /// By default, API keys never expire. You can specify expiration information when you create the API keys. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GrantApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8681,7 +8681,7 @@ public virtual Task GrantApiKeyAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequest request) @@ -8699,7 +8699,7 @@ public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequest request) /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(HasPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -8716,7 +8716,7 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequestDescriptor descriptor) @@ -8734,7 +8734,7 @@ public virtual HasPrivilegesResponse HasPrivileges(HasPrivilegesRequestDescripto /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch.Name? user) @@ -8753,7 +8753,7 @@ public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch.Name? user, Action configureRequest) @@ -8773,7 +8773,7 @@ public virtual HasPrivilegesResponse HasPrivileges(Elastic.Clients.Elasticsearch /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges() @@ -8792,7 +8792,7 @@ public virtual HasPrivilegesResponse HasPrivileges() /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesResponse HasPrivileges(Action configureRequest) @@ -8812,7 +8812,7 @@ public virtual HasPrivilegesResponse HasPrivileges(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(HasPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8829,7 +8829,7 @@ public virtual Task HasPrivilegesAsync(HasPrivilegesReque /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? user, CancellationToken cancellationToken = default) { @@ -8847,7 +8847,7 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(Elastic.Clients.Elasticsearch.Name? user, Action configureRequest, CancellationToken cancellationToken = default) { @@ -8866,7 +8866,7 @@ public virtual Task HasPrivilegesAsync(Elastic.Clients.El /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -8884,7 +8884,7 @@ public virtual Task HasPrivilegesAsync(CancellationToken /// All users can use this API, but only to determine their own privileges. /// To check the privileges of other users, you must use the run as feature. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -8905,7 +8905,7 @@ public virtual Task HasPrivilegesAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPrivilegesUserProfileRequest request) @@ -8925,7 +8925,7 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPriv /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(HasPrivilegesUserProfileRequest request, CancellationToken cancellationToken = default) { @@ -8944,7 +8944,7 @@ public virtual Task HasPrivilegesUserProfileAs /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPrivilegesUserProfileRequestDescriptor descriptor) @@ -8964,7 +8964,7 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(HasPriv /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile() @@ -8985,7 +8985,7 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile() /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(Action configureRequest) @@ -9007,7 +9007,7 @@ public virtual HasPrivilegesUserProfileResponse HasPrivilegesUserProfile(Action< /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(HasPrivilegesUserProfileRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9026,7 +9026,7 @@ public virtual Task HasPrivilegesUserProfileAs /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(CancellationToken cancellationToken = default) { @@ -9046,7 +9046,7 @@ public virtual Task HasPrivilegesUserProfileAs /// NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HasPrivilegesUserProfileAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9088,7 +9088,7 @@ public virtual Task HasPrivilegesUserProfileAs /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest request) @@ -9129,7 +9129,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(InvalidateApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -9169,7 +9169,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequestDescriptor descriptor) @@ -9210,7 +9210,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(InvalidateApiKeyRequest /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey() @@ -9252,7 +9252,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateApiKeyResponse InvalidateApiKey(Action configureRequest) @@ -9295,7 +9295,7 @@ public virtual InvalidateApiKeyResponse InvalidateApiKey(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(InvalidateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9335,7 +9335,7 @@ public virtual Task InvalidateApiKeyAsync(InvalidateAp /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(CancellationToken cancellationToken = default) { @@ -9376,7 +9376,7 @@ public virtual Task InvalidateApiKeyAsync(Cancellation /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateApiKeyAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9405,7 +9405,7 @@ public virtual Task InvalidateApiKeyAsync(Actiontoken or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequest request) @@ -9433,7 +9433,7 @@ public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequest re /// More specifically, either one of token or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(InvalidateTokenRequest request, CancellationToken cancellationToken = default) { @@ -9460,7 +9460,7 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// More specifically, either one of token or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequestDescriptor descriptor) @@ -9488,7 +9488,7 @@ public virtual InvalidateTokenResponse InvalidateToken(InvalidateTokenRequestDes /// More specifically, either one of token or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken() @@ -9517,7 +9517,7 @@ public virtual InvalidateTokenResponse InvalidateToken() /// More specifically, either one of token or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InvalidateTokenResponse InvalidateToken(Action configureRequest) @@ -9547,7 +9547,7 @@ public virtual InvalidateTokenResponse InvalidateToken(Actiontoken or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(InvalidateTokenRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9574,7 +9574,7 @@ public virtual Task InvalidateTokenAsync(InvalidateToke /// More specifically, either one of token or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(CancellationToken cancellationToken = default) { @@ -9602,7 +9602,7 @@ public virtual Task InvalidateTokenAsync(CancellationTo /// More specifically, either one of token or refresh_token parameters is required. /// If none of these two are specified, then realm_name and/or username need to be specified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InvalidateTokenAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9623,7 +9623,7 @@ public virtual Task InvalidateTokenAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcAuthenticateResponse OidcAuthenticate(OidcAuthenticateRequest request) @@ -9643,7 +9643,7 @@ public virtual OidcAuthenticateResponse OidcAuthenticate(OidcAuthenticateRequest /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcAuthenticateAsync(OidcAuthenticateRequest request, CancellationToken cancellationToken = default) { @@ -9662,7 +9662,7 @@ public virtual Task OidcAuthenticateAsync(OidcAuthenti /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcAuthenticateResponse OidcAuthenticate(OidcAuthenticateRequestDescriptor descriptor) @@ -9682,7 +9682,7 @@ public virtual OidcAuthenticateResponse OidcAuthenticate(OidcAuthenticateRequest /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcAuthenticateResponse OidcAuthenticate() @@ -9703,7 +9703,7 @@ public virtual OidcAuthenticateResponse OidcAuthenticate() /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcAuthenticateResponse OidcAuthenticate(Action configureRequest) @@ -9725,7 +9725,7 @@ public virtual OidcAuthenticateResponse OidcAuthenticate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcAuthenticateAsync(OidcAuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9744,7 +9744,7 @@ public virtual Task OidcAuthenticateAsync(OidcAuthenti /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcAuthenticateAsync(CancellationToken cancellationToken = default) { @@ -9764,7 +9764,7 @@ public virtual Task OidcAuthenticateAsync(Cancellation /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9788,7 +9788,7 @@ public virtual Task OidcAuthenticateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcLogoutResponse OidcLogout(OidcLogoutRequest request) @@ -9811,7 +9811,7 @@ public virtual OidcLogoutResponse OidcLogout(OidcLogoutRequest request) /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcLogoutAsync(OidcLogoutRequest request, CancellationToken cancellationToken = default) { @@ -9833,7 +9833,7 @@ public virtual Task OidcLogoutAsync(OidcLogoutRequest reques /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcLogoutResponse OidcLogout(OidcLogoutRequestDescriptor descriptor) @@ -9856,7 +9856,7 @@ public virtual OidcLogoutResponse OidcLogout(OidcLogoutRequestDescriptor descrip /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcLogoutResponse OidcLogout() @@ -9880,7 +9880,7 @@ public virtual OidcLogoutResponse OidcLogout() /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcLogoutResponse OidcLogout(Action configureRequest) @@ -9905,7 +9905,7 @@ public virtual OidcLogoutResponse OidcLogout(Action /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcLogoutAsync(OidcLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9927,7 +9927,7 @@ public virtual Task OidcLogoutAsync(OidcLogoutRequestDescrip /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcLogoutAsync(CancellationToken cancellationToken = default) { @@ -9950,7 +9950,7 @@ public virtual Task OidcLogoutAsync(CancellationToken cancel /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -9974,7 +9974,7 @@ public virtual Task OidcLogoutAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(OidcPrepareAuthenticationRequest request) @@ -9997,7 +9997,7 @@ public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(OidcP /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcPrepareAuthenticationAsync(OidcPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) { @@ -10019,7 +10019,7 @@ public virtual Task OidcPrepareAuthentication /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(OidcPrepareAuthenticationRequestDescriptor descriptor) @@ -10042,7 +10042,7 @@ public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(OidcP /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication() @@ -10066,7 +10066,7 @@ public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication() /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(Action configureRequest) @@ -10091,7 +10091,7 @@ public virtual OidcPrepareAuthenticationResponse OidcPrepareAuthentication(Actio /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcPrepareAuthenticationAsync(OidcPrepareAuthenticationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10113,7 +10113,7 @@ public virtual Task OidcPrepareAuthentication /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcPrepareAuthenticationAsync(CancellationToken cancellationToken = default) { @@ -10136,7 +10136,7 @@ public virtual Task OidcPrepareAuthentication /// Elasticsearch exposes all the necessary OpenID Connect related functionality with the OpenID Connect APIs. /// These APIs are used internally by Kibana in order to provide OpenID Connect based authentication, but can also be used by other, custom web applications or other clients. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OidcPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -10206,7 +10206,7 @@ public virtual Task OidcPrepareAuthentication /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequest request) @@ -10275,7 +10275,7 @@ public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequest request) /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPrivilegesAsync(PutPrivilegesRequest request, CancellationToken cancellationToken = default) { @@ -10343,7 +10343,7 @@ public virtual Task PutPrivilegesAsync(PutPrivilegesReque /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequestDescriptor descriptor) @@ -10412,7 +10412,7 @@ public virtual PutPrivilegesResponse PutPrivileges(PutPrivilegesRequestDescripto /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPrivilegesResponse PutPrivileges() @@ -10482,7 +10482,7 @@ public virtual PutPrivilegesResponse PutPrivileges() /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPrivilegesResponse PutPrivileges(Action configureRequest) @@ -10553,7 +10553,7 @@ public virtual PutPrivilegesResponse PutPrivileges(Action /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPrivilegesAsync(PutPrivilegesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10621,7 +10621,7 @@ public virtual Task PutPrivilegesAsync(PutPrivilegesReque /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPrivilegesAsync(CancellationToken cancellationToken = default) { @@ -10690,7 +10690,7 @@ public virtual Task PutPrivilegesAsync(CancellationToken /// /// Action names can contain any number of printable ASCII characters and must contain at least one of the following characters: /, *, :. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPrivilegesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -10709,7 +10709,7 @@ public virtual Task PutPrivilegesAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(PutRoleRequest request) @@ -10727,7 +10727,7 @@ public virtual PutRoleResponse PutRole(PutRoleRequest request) /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(PutRoleRequest request, CancellationToken cancellationToken = default) { @@ -10744,7 +10744,7 @@ public virtual Task PutRoleAsync(PutRoleRequest request, Cancel /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) @@ -10762,7 +10762,7 @@ public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) @@ -10781,7 +10781,7 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch. /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) @@ -10801,7 +10801,7 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch. /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) @@ -10819,7 +10819,7 @@ public virtual PutRoleResponse PutRole(PutRoleRequestDescriptor descriptor) /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) @@ -10838,7 +10838,7 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name) /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -10858,7 +10858,7 @@ public virtual PutRoleResponse PutRole(Elastic.Clients.Elasticsearch.Name name, /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10875,7 +10875,7 @@ public virtual Task PutRoleAsync(PutRoleRequestDescr /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -10893,7 +10893,7 @@ public virtual Task PutRoleAsync(Elastic.Clients.Ela /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -10912,7 +10912,7 @@ public virtual Task PutRoleAsync(Elastic.Clients.Ela /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(PutRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -10929,7 +10929,7 @@ public virtual Task PutRoleAsync(PutRoleRequestDescriptor descr /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -10947,7 +10947,7 @@ public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch. /// The create or update roles API cannot update roles that are defined in roles files. /// File-based role management is not available in Elastic Serverless. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -10994,7 +10994,7 @@ public virtual Task PutRoleAsync(Elastic.Clients.Elasticsearch. /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequest request) @@ -11040,7 +11040,7 @@ public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequest reque /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleMappingAsync(PutRoleMappingRequest request, CancellationToken cancellationToken = default) { @@ -11085,7 +11085,7 @@ public virtual Task PutRoleMappingAsync(PutRoleMappingRe /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequestDescriptor descriptor) @@ -11131,7 +11131,7 @@ public virtual PutRoleMappingResponse PutRoleMapping(PutRoleMappingRequestDescri /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsearch.Name name) @@ -11178,7 +11178,7 @@ public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsear /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -11226,7 +11226,7 @@ public virtual PutRoleMappingResponse PutRoleMapping(Elastic.Clients.Elasticsear /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleMappingAsync(PutRoleMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11271,7 +11271,7 @@ public virtual Task PutRoleMappingAsync(PutRoleMappingRe /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -11317,7 +11317,7 @@ public virtual Task PutRoleMappingAsync(Elastic.Clients. /// By default a template is evaluated to produce a single string that is the name of the role which should be assigned to the user. /// If the format of the template is set to "json" then the template is expected to produce a JSON string or an array of JSON strings for the role names. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutRoleMappingAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -11336,7 +11336,7 @@ public virtual Task PutRoleMappingAsync(Elastic.Clients. /// A password is required for adding a new user but is optional when updating an existing user. /// To change a user's password without updating any other fields, use the change password API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutUserResponse PutUser(PutUserRequest request) @@ -11354,7 +11354,7 @@ public virtual PutUserResponse PutUser(PutUserRequest request) /// A password is required for adding a new user but is optional when updating an existing user. /// To change a user's password without updating any other fields, use the change password API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutUserAsync(PutUserRequest request, CancellationToken cancellationToken = default) { @@ -11371,7 +11371,7 @@ public virtual Task PutUserAsync(PutUserRequest request, Cancel /// A password is required for adding a new user but is optional when updating an existing user. /// To change a user's password without updating any other fields, use the change password API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutUserResponse PutUser(PutUserRequestDescriptor descriptor) @@ -11389,7 +11389,7 @@ public virtual PutUserResponse PutUser(PutUserRequestDescriptor descriptor) /// A password is required for adding a new user but is optional when updating an existing user. /// To change a user's password without updating any other fields, use the change password API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutUserAsync(PutUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11410,7 +11410,7 @@ public virtual Task PutUserAsync(PutUserRequestDescriptor descr /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequest request) @@ -11432,7 +11432,7 @@ public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequest request) /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(QueryApiKeysRequest request, CancellationToken cancellationToken = default) { @@ -11453,7 +11453,7 @@ public virtual Task QueryApiKeysAsync(QueryApiKeysRequest /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor descriptor) @@ -11475,7 +11475,7 @@ public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestD /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys() @@ -11498,7 +11498,7 @@ public virtual QueryApiKeysResponse QueryApiKeys() /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys(Action> configureRequest) @@ -11522,7 +11522,7 @@ public virtual QueryApiKeysResponse QueryApiKeys(Actionmanage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor descriptor) @@ -11544,7 +11544,7 @@ public virtual QueryApiKeysResponse QueryApiKeys(QueryApiKeysRequestDescriptor d /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys() @@ -11567,7 +11567,7 @@ public virtual QueryApiKeysResponse QueryApiKeys() /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryApiKeysResponse QueryApiKeys(Action configureRequest) @@ -11591,7 +11591,7 @@ public virtual QueryApiKeysResponse QueryApiKeys(Actionmanage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11612,7 +11612,7 @@ public virtual Task QueryApiKeysAsync(QueryApiK /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) { @@ -11634,7 +11634,7 @@ public virtual Task QueryApiKeysAsync(Cancellat /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11657,7 +11657,7 @@ public virtual Task QueryApiKeysAsync(Actionmanage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(QueryApiKeysRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11678,7 +11678,7 @@ public virtual Task QueryApiKeysAsync(QueryApiKeysRequestD /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(CancellationToken cancellationToken = default) { @@ -11700,7 +11700,7 @@ public virtual Task QueryApiKeysAsync(CancellationToken ca /// If you have only the manage_own_api_key privilege, this API returns only the API keys that you own. /// If you have the read_security, manage_api_key, or greater privileges (including manage_security), this API returns all API keys regardless of ownership. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryApiKeysAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -11721,7 +11721,7 @@ public virtual Task QueryApiKeysAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole(QueryRoleRequest request) @@ -11741,7 +11741,7 @@ public virtual QueryRoleResponse QueryRole(QueryRoleRequest request) /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(QueryRoleRequest request, CancellationToken cancellationToken = default) { @@ -11760,7 +11760,7 @@ public virtual Task QueryRoleAsync(QueryRoleRequest request, /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor) @@ -11780,7 +11780,7 @@ public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole() @@ -11801,7 +11801,7 @@ public virtual QueryRoleResponse QueryRole() /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole(Action> configureRequest) @@ -11823,7 +11823,7 @@ public virtual QueryRoleResponse QueryRole(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor) @@ -11843,7 +11843,7 @@ public virtual QueryRoleResponse QueryRole(QueryRoleRequestDescriptor descriptor /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole() @@ -11864,7 +11864,7 @@ public virtual QueryRoleResponse QueryRole() /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryRoleResponse QueryRole(Action configureRequest) @@ -11886,7 +11886,7 @@ public virtual QueryRoleResponse QueryRole(Action co /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11905,7 +11905,7 @@ public virtual Task QueryRoleAsync(QueryRoleReques /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) { @@ -11925,7 +11925,7 @@ public virtual Task QueryRoleAsync(CancellationTok /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11946,7 +11946,7 @@ public virtual Task QueryRoleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11965,7 +11965,7 @@ public virtual Task QueryRoleAsync(QueryRoleRequestDescriptor /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(CancellationToken cancellationToken = default) { @@ -11985,7 +11985,7 @@ public virtual Task QueryRoleAsync(CancellationToken cancella /// You can optionally filter the results with a query. /// Also, the results can be paginated and sorted. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryRoleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12007,7 +12007,7 @@ public virtual Task QueryRoleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser(QueryUserRequest request) @@ -12028,7 +12028,7 @@ public virtual QueryUserResponse QueryUser(QueryUserRequest request) /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(QueryUserRequest request, CancellationToken cancellationToken = default) { @@ -12048,7 +12048,7 @@ public virtual Task QueryUserAsync(QueryUserRequest request, /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor) @@ -12069,7 +12069,7 @@ public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser() @@ -12091,7 +12091,7 @@ public virtual QueryUserResponse QueryUser() /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser(Action> configureRequest) @@ -12114,7 +12114,7 @@ public virtual QueryUserResponse QueryUser(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor) @@ -12135,7 +12135,7 @@ public virtual QueryUserResponse QueryUser(QueryUserRequestDescriptor descriptor /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser() @@ -12157,7 +12157,7 @@ public virtual QueryUserResponse QueryUser() /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryUserResponse QueryUser(Action configureRequest) @@ -12180,7 +12180,7 @@ public virtual QueryUserResponse QueryUser(Action co /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12200,7 +12200,7 @@ public virtual Task QueryUserAsync(QueryUserReques /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) { @@ -12221,7 +12221,7 @@ public virtual Task QueryUserAsync(CancellationTok /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12243,7 +12243,7 @@ public virtual Task QueryUserAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(QueryUserRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12263,7 +12263,7 @@ public virtual Task QueryUserAsync(QueryUserRequestDescriptor /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(CancellationToken cancellationToken = default) { @@ -12284,7 +12284,7 @@ public virtual Task QueryUserAsync(CancellationToken cancella /// NOTE: As opposed to the get user API, built-in users are excluded from the result. /// This API is only for native users. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryUserAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12327,7 +12327,7 @@ public virtual Task QueryUserAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest request) @@ -12369,7 +12369,7 @@ public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequest request, CancellationToken cancellationToken = default) { @@ -12410,7 +12410,7 @@ public virtual Task SamlAuthenticateAsync(SamlAuthenti /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequestDescriptor descriptor) @@ -12452,7 +12452,7 @@ public virtual SamlAuthenticateResponse SamlAuthenticate(SamlAuthenticateRequest /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlAuthenticateResponse SamlAuthenticate() @@ -12495,7 +12495,7 @@ public virtual SamlAuthenticateResponse SamlAuthenticate() /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlAuthenticateResponse SamlAuthenticate(Action configureRequest) @@ -12539,7 +12539,7 @@ public virtual SamlAuthenticateResponse SamlAuthenticate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlAuthenticateAsync(SamlAuthenticateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12580,7 +12580,7 @@ public virtual Task SamlAuthenticateAsync(SamlAuthenti /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlAuthenticateAsync(CancellationToken cancellationToken = default) { @@ -12622,7 +12622,7 @@ public virtual Task SamlAuthenticateAsync(Cancellation /// After successful validation, Elasticsearch responds with an Elasticsearch internal access token and refresh token that can be subsequently used for authentication. /// This API endpoint essentially exchanges SAML responses that indicate successful authentication in the IdP for Elasticsearch access and refresh tokens, which can be used for authentication against Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlAuthenticateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12650,7 +12650,7 @@ public virtual Task SamlAuthenticateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutRequest request) @@ -12677,7 +12677,7 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutR /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequest request, CancellationToken cancellationToken = default) { @@ -12703,7 +12703,7 @@ public virtual Task SamlCompleteLogoutAsync(SamlComp /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutRequestDescriptor descriptor) @@ -12730,7 +12730,7 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout(SamlCompleteLogoutR /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlCompleteLogoutResponse SamlCompleteLogout() @@ -12758,7 +12758,7 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout() /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlCompleteLogoutResponse SamlCompleteLogout(Action configureRequest) @@ -12787,7 +12787,7 @@ public virtual SamlCompleteLogoutResponse SamlCompleteLogout(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlCompleteLogoutAsync(SamlCompleteLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12813,7 +12813,7 @@ public virtual Task SamlCompleteLogoutAsync(SamlComp /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlCompleteLogoutAsync(CancellationToken cancellationToken = default) { @@ -12840,7 +12840,7 @@ public virtual Task SamlCompleteLogoutAsync(Cancella /// The response can be sent by the IdP with either the HTTP-Redirect or the HTTP-Post binding. /// The caller of this API must prepare the request accordingly so that this API can handle either of them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlCompleteLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -12867,7 +12867,7 @@ public virtual Task SamlCompleteLogoutAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequest request) @@ -12893,7 +12893,7 @@ public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequest reque /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlInvalidateAsync(SamlInvalidateRequest request, CancellationToken cancellationToken = default) { @@ -12918,7 +12918,7 @@ public virtual Task SamlInvalidateAsync(SamlInvalidateRe /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequestDescriptor descriptor) @@ -12944,7 +12944,7 @@ public virtual SamlInvalidateResponse SamlInvalidate(SamlInvalidateRequestDescri /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlInvalidateResponse SamlInvalidate() @@ -12971,7 +12971,7 @@ public virtual SamlInvalidateResponse SamlInvalidate() /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlInvalidateResponse SamlInvalidate(Action configureRequest) @@ -12999,7 +12999,7 @@ public virtual SamlInvalidateResponse SamlInvalidate(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlInvalidateAsync(SamlInvalidateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13024,7 +13024,7 @@ public virtual Task SamlInvalidateAsync(SamlInvalidateRe /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlInvalidateAsync(CancellationToken cancellationToken = default) { @@ -13050,7 +13050,7 @@ public virtual Task SamlInvalidateAsync(CancellationToke /// After successful validation of the request, Elasticsearch invalidates the access token and refresh token that corresponds to that specific SAML principal and provides a URL that contains a SAML LogoutResponse message. /// Thus the user can be redirected back to their IdP. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlInvalidateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13075,7 +13075,7 @@ public virtual Task SamlInvalidateAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequest request) @@ -13099,7 +13099,7 @@ public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequest request) /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlLogoutAsync(SamlLogoutRequest request, CancellationToken cancellationToken = default) { @@ -13122,7 +13122,7 @@ public virtual Task SamlLogoutAsync(SamlLogoutRequest reques /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequestDescriptor descriptor) @@ -13146,7 +13146,7 @@ public virtual SamlLogoutResponse SamlLogout(SamlLogoutRequestDescriptor descrip /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlLogoutResponse SamlLogout() @@ -13171,7 +13171,7 @@ public virtual SamlLogoutResponse SamlLogout() /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlLogoutResponse SamlLogout(Action configureRequest) @@ -13197,7 +13197,7 @@ public virtual SamlLogoutResponse SamlLogout(Action /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlLogoutAsync(SamlLogoutRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13220,7 +13220,7 @@ public virtual Task SamlLogoutAsync(SamlLogoutRequestDescrip /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlLogoutAsync(CancellationToken cancellationToken = default) { @@ -13244,7 +13244,7 @@ public virtual Task SamlLogoutAsync(CancellationToken cancel /// This API invalidates the tokens that were generated for a user by the SAML authenticate API. /// If the SAML realm in Elasticsearch is configured accordingly and the SAML IdP supports this, the Elasticsearch response contains a URL to redirect the user to the IdP that contains a SAML logout request (starting an SP-initiated SAML Single Logout). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlLogoutAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13274,7 +13274,7 @@ public virtual Task SamlLogoutAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlPrepareAuthenticationRequest request) @@ -13303,7 +13303,7 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlP /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequest request, CancellationToken cancellationToken = default) { @@ -13331,7 +13331,7 @@ public virtual Task SamlPrepareAuthentication /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlPrepareAuthenticationRequestDescriptor descriptor) @@ -13360,7 +13360,7 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(SamlP /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication() @@ -13390,7 +13390,7 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication() /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(Action configureRequest) @@ -13421,7 +13421,7 @@ public virtual SamlPrepareAuthenticationResponse SamlPrepareAuthentication(Actio /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlPrepareAuthenticationAsync(SamlPrepareAuthenticationRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13449,7 +13449,7 @@ public virtual Task SamlPrepareAuthentication /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlPrepareAuthenticationAsync(CancellationToken cancellationToken = default) { @@ -13478,7 +13478,7 @@ public virtual Task SamlPrepareAuthentication /// It also returns a random string that uniquely identifies this SAML Authentication request. /// The caller of this API needs to store this identifier as it needs to be used in a following step of the authentication process. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlPrepareAuthenticationAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13499,7 +13499,7 @@ public virtual Task SamlPrepareAuthentication /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SamlServiceProviderMetadataRequest request) @@ -13519,7 +13519,7 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(S /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequest request, CancellationToken cancellationToken = default) { @@ -13538,7 +13538,7 @@ public virtual Task SamlServiceProviderMeta /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(SamlServiceProviderMetadataRequestDescriptor descriptor) @@ -13558,7 +13558,7 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(S /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realmName) @@ -13579,7 +13579,7 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(E /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(Elastic.Clients.Elasticsearch.Name realmName, Action configureRequest) @@ -13601,7 +13601,7 @@ public virtual SamlServiceProviderMetadataResponse SamlServiceProviderMetadata(E /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlServiceProviderMetadataAsync(SamlServiceProviderMetadataRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13620,7 +13620,7 @@ public virtual Task SamlServiceProviderMeta /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realmName, CancellationToken cancellationToken = default) { @@ -13640,7 +13640,7 @@ public virtual Task SamlServiceProviderMeta /// The SAML 2.0 specification provides a mechanism for Service Providers to describe their capabilities and configuration using a metadata file. /// This API generates Service Provider metadata based on the configuration of a SAML realm in Elasticsearch. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SamlServiceProviderMetadataAsync(Elastic.Clients.Elasticsearch.Name realmName, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13662,7 +13662,7 @@ public virtual Task SamlServiceProviderMeta /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfilesRequest request) @@ -13683,7 +13683,7 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfil /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequest request, CancellationToken cancellationToken = default) { @@ -13703,7 +13703,7 @@ public virtual Task SuggestUserProfilesAsync(Sugges /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfilesRequestDescriptor descriptor) @@ -13724,7 +13724,7 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles(SuggestUserProfil /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SuggestUserProfilesResponse SuggestUserProfiles() @@ -13746,7 +13746,7 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles() /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SuggestUserProfilesResponse SuggestUserProfiles(Action configureRequest) @@ -13769,7 +13769,7 @@ public virtual SuggestUserProfilesResponse SuggestUserProfiles(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SuggestUserProfilesAsync(SuggestUserProfilesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13789,7 +13789,7 @@ public virtual Task SuggestUserProfilesAsync(Sugges /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SuggestUserProfilesAsync(CancellationToken cancellationToken = default) { @@ -13810,7 +13810,7 @@ public virtual Task SuggestUserProfilesAsync(Cancel /// Individual users and external applications should not call this API directly. /// Elastic reserves the right to change or remove this feature in future releases without prior notice. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SuggestUserProfilesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -13849,7 +13849,7 @@ public virtual Task SuggestUserProfilesAsync(Action /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) @@ -13887,7 +13887,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request) /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -13924,7 +13924,7 @@ public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequest /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor descriptor) @@ -13962,7 +13962,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestD /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) @@ -14001,7 +14001,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elas /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14041,7 +14041,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elas /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor descriptor) @@ -14079,7 +14079,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequestDescriptor d /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id) @@ -14118,7 +14118,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.I /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -14158,7 +14158,7 @@ public virtual UpdateApiKeyResponse UpdateApiKey(Elastic.Clients.Elasticsearch.I /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14195,7 +14195,7 @@ public virtual Task UpdateApiKeyAsync(UpdateApi /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14233,7 +14233,7 @@ public virtual Task UpdateApiKeyAsync(Elastic.C /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14272,7 +14272,7 @@ public virtual Task UpdateApiKeyAsync(Elastic.C /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14309,7 +14309,7 @@ public virtual Task UpdateApiKeyAsync(UpdateApiKeyRequestD /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14347,7 +14347,7 @@ public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elas /// IMPORTANT: If you don't specify role_descriptors in the request, a call to this API might still change the API key's access scope. /// This change can occur if the owner user's permissions have changed since the API key was created or last modified. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14383,7 +14383,7 @@ public virtual Task UpdateApiKeyAsync(Elastic.Clients.Elas /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequest request) @@ -14418,7 +14418,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateC /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequest request, CancellationToken cancellationToken = default) { @@ -14452,7 +14452,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) @@ -14487,7 +14487,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) @@ -14523,7 +14523,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14560,7 +14560,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateCrossClusterApiKeyRequestDescriptor descriptor) @@ -14595,7 +14595,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(UpdateC /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id) @@ -14631,7 +14631,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -14668,7 +14668,7 @@ public virtual UpdateCrossClusterApiKeyResponse UpdateCrossClusterApiKey(Elastic /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14702,7 +14702,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14737,7 +14737,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14773,7 +14773,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(UpdateCrossClusterApiKeyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14807,7 +14807,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14842,7 +14842,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// /// NOTE: This API cannot update REST API keys, which should be updated by either the update API key or bulk update API keys API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateCrossClusterApiKeyAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14866,7 +14866,7 @@ public virtual Task UpdateCrossClusterApiKeyAs /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequest request) @@ -14889,7 +14889,7 @@ public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequest reque /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(UpdateSettingsRequest request, CancellationToken cancellationToken = default) { @@ -14911,7 +14911,7 @@ public virtual Task UpdateSettingsAsync(UpdateSettingsRe /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequestDescriptor descriptor) @@ -14934,7 +14934,7 @@ public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRe /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings() @@ -14958,7 +14958,7 @@ public virtual UpdateSettingsResponse UpdateSettings() /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings(Action> configureRequest) @@ -14983,7 +14983,7 @@ public virtual UpdateSettingsResponse UpdateSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequestDescriptor descriptor) @@ -15006,7 +15006,7 @@ public virtual UpdateSettingsResponse UpdateSettings(UpdateSettingsRequestDescri /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings() @@ -15030,7 +15030,7 @@ public virtual UpdateSettingsResponse UpdateSettings() /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateSettingsResponse UpdateSettings(Action configureRequest) @@ -15055,7 +15055,7 @@ public virtual UpdateSettingsResponse UpdateSettings(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(UpdateSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15077,7 +15077,7 @@ public virtual Task UpdateSettingsAsync(Updat /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(CancellationToken cancellationToken = default) { @@ -15100,7 +15100,7 @@ public virtual Task UpdateSettingsAsync(Cance /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15124,7 +15124,7 @@ public virtual Task UpdateSettingsAsync(Actio /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(UpdateSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15146,7 +15146,7 @@ public virtual Task UpdateSettingsAsync(UpdateSettingsRe /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(CancellationToken cancellationToken = default) { @@ -15169,7 +15169,7 @@ public virtual Task UpdateSettingsAsync(CancellationToke /// If a specific index is not in use on the system and settings are provided for it, the request will be rejected. /// This API does not yet support configuring the settings for indices before they are in use. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -15214,7 +15214,7 @@ public virtual Task UpdateSettingsAsync(Actionupdate_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserProfileDataRequest request) @@ -15258,7 +15258,7 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserPro /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(UpdateUserProfileDataRequest request, CancellationToken cancellationToken = default) { @@ -15301,7 +15301,7 @@ public virtual Task UpdateUserProfileDataAsync(Up /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserProfileDataRequestDescriptor descriptor) @@ -15345,7 +15345,7 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(UpdateUserPro /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid) @@ -15390,7 +15390,7 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid) /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid, Action configureRequest) @@ -15436,7 +15436,7 @@ public virtual UpdateUserProfileDataResponse UpdateUserProfileData(string uid, A /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(UpdateUserProfileDataRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15479,7 +15479,7 @@ public virtual Task UpdateUserProfileDataAsync(Up /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(string uid, CancellationToken cancellationToken = default) { @@ -15523,7 +15523,7 @@ public virtual Task UpdateUserProfileDataAsync(st /// For both labels and data, content is namespaced by the top-level fields. /// The update_profile_data global privilege grants privileges for updating only the allowed namespaces. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateUserProfileDataAsync(string uid, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs index ac004dcf4c8..8bb25aa3c0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Simulate.g.cs @@ -63,7 +63,7 @@ internal SimulateNamespacedClient(ElasticsearchClient client) : base(client) /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(IngestRequest request) @@ -96,7 +96,7 @@ public virtual IngestResponse Ingest(IngestRequest request) /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(IngestRequest request, CancellationToken cancellationToken = default) { @@ -128,7 +128,7 @@ public virtual Task IngestAsync(IngestRequest request, Cancellat /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(IngestRequestDescriptor descriptor) @@ -161,7 +161,7 @@ public virtual IngestResponse Ingest(IngestRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index) @@ -195,7 +195,7 @@ public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.In /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -230,7 +230,7 @@ public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.In /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest() @@ -264,7 +264,7 @@ public virtual IngestResponse Ingest() /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(Action> configureRequest) @@ -299,7 +299,7 @@ public virtual IngestResponse Ingest(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(IngestRequestDescriptor descriptor) @@ -332,7 +332,7 @@ public virtual IngestResponse Ingest(IngestRequestDescriptor descriptor) /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index) @@ -366,7 +366,7 @@ public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? in /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -401,7 +401,7 @@ public virtual IngestResponse Ingest(Elastic.Clients.Elasticsearch.IndexName? in /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest() @@ -435,7 +435,7 @@ public virtual IngestResponse Ingest() /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IngestResponse Ingest(Action configureRequest) @@ -470,7 +470,7 @@ public virtual IngestResponse Ingest(Action configureRe /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(IngestRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -502,7 +502,7 @@ public virtual Task IngestAsync(IngestRequestDescript /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -535,7 +535,7 @@ public virtual Task IngestAsync(Elastic.Clients.Elast /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -569,7 +569,7 @@ public virtual Task IngestAsync(Elastic.Clients.Elast /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(CancellationToken cancellationToken = default) { @@ -602,7 +602,7 @@ public virtual Task IngestAsync(CancellationToken can /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -636,7 +636,7 @@ public virtual Task IngestAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(IngestRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -668,7 +668,7 @@ public virtual Task IngestAsync(IngestRequestDescriptor descript /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -701,7 +701,7 @@ public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.In /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -735,7 +735,7 @@ public virtual Task IngestAsync(Elastic.Clients.Elasticsearch.In /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(CancellationToken cancellationToken = default) { @@ -768,7 +768,7 @@ public virtual Task IngestAsync(CancellationToken cancellationTo /// However, you can supply substitute pipeline definitions in the body of the request. /// These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IngestAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs index 0155e78e786..ab542c57a9b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs @@ -45,7 +45,7 @@ internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest request) @@ -60,7 +60,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest re /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -74,7 +74,7 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDescriptor descriptor) @@ -89,7 +89,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequestDes /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policyId) @@ -105,7 +105,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest) @@ -122,7 +122,7 @@ public virtual DeleteLifecycleResponse DeleteLifecycle(Elastic.Clients.Elasticse /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(DeleteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -136,7 +136,7 @@ public virtual Task DeleteLifecycleAsync(DeleteLifecycl /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, CancellationToken cancellationToken = default) { @@ -151,7 +151,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Delete a snapshot lifecycle policy definition. /// This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -167,7 +167,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest request) @@ -182,7 +182,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(ExecuteLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -196,7 +196,7 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequestDescriptor descriptor) @@ -211,7 +211,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policyId) @@ -227,7 +227,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elastic /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest) @@ -244,7 +244,7 @@ public virtual ExecuteLifecycleResponse ExecuteLifecycle(Elastic.Clients.Elastic /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(ExecuteLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -258,7 +258,7 @@ public virtual Task ExecuteLifecycleAsync(ExecuteLifec /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, CancellationToken cancellationToken = default) { @@ -273,7 +273,7 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time. /// The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -289,7 +289,7 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest request) @@ -304,7 +304,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(ExecuteRetentionRequest request, CancellationToken cancellationToken = default) { @@ -318,7 +318,7 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequestDescriptor descriptor) @@ -333,7 +333,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention() @@ -349,7 +349,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention() /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(Action configureRequest) @@ -366,7 +366,7 @@ public virtual ExecuteRetentionResponse ExecuteRetention(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(ExecuteRetentionRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -380,7 +380,7 @@ public virtual Task ExecuteRetentionAsync(ExecuteReten /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(CancellationToken cancellationToken = default) { @@ -395,7 +395,7 @@ public virtual Task ExecuteRetentionAsync(Cancellation /// Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules. /// The retention policy is normally applied according to its schedule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecuteRetentionAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -410,7 +410,7 @@ public virtual Task ExecuteRetentionAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) @@ -424,7 +424,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(GetLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -437,7 +437,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequest /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor descriptor) @@ -451,7 +451,7 @@ public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequestDescriptor d /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.Names? policyId) @@ -466,7 +466,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.Names? policyId, Action configureRequest) @@ -482,7 +482,7 @@ public virtual GetLifecycleResponse GetLifecycle(Elastic.Clients.Elasticsearch.N /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle() @@ -497,7 +497,7 @@ public virtual GetLifecycleResponse GetLifecycle() /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(Action configureRequest) @@ -513,7 +513,7 @@ public virtual GetLifecycleResponse GetLifecycle(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(GetLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -526,7 +526,7 @@ public virtual Task GetLifecycleAsync(GetLifecycleRequestD /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Names? policyId, CancellationToken cancellationToken = default) { @@ -540,7 +540,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Elastic.Clients.Elasticsearch.Names? policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -555,7 +555,7 @@ public virtual Task GetLifecycleAsync(Elastic.Clients.Elas /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(CancellationToken cancellationToken = default) { @@ -569,7 +569,7 @@ public virtual Task GetLifecycleAsync(CancellationToken ca /// Get policy information. /// Get snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetLifecycleAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -584,7 +584,7 @@ public virtual Task GetLifecycleAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(GetStatsRequest request) @@ -598,7 +598,7 @@ public virtual GetStatsResponse GetStats(GetStatsRequest request) /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(GetStatsRequest request, CancellationToken cancellationToken = default) { @@ -611,7 +611,7 @@ public virtual Task GetStatsAsync(GetStatsRequest request, Can /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(GetStatsRequestDescriptor descriptor) @@ -625,7 +625,7 @@ public virtual GetStatsResponse GetStats(GetStatsRequestDescriptor descriptor) /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats() @@ -640,7 +640,7 @@ public virtual GetStatsResponse GetStats() /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(Action configureRequest) @@ -656,7 +656,7 @@ public virtual GetStatsResponse GetStats(Action confi /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(GetStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -669,7 +669,7 @@ public virtual Task GetStatsAsync(GetStatsRequestDescriptor de /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(CancellationToken cancellationToken = default) { @@ -683,7 +683,7 @@ public virtual Task GetStatsAsync(CancellationToken cancellati /// Get snapshot lifecycle management statistics. /// Get global and policy-level statistics about actions taken by snapshot lifecycle management. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -697,7 +697,7 @@ public virtual Task GetStatsAsync(Action /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) @@ -710,7 +710,7 @@ public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetSlmStatusRequest request, CancellationToken cancellationToken = default) { @@ -722,7 +722,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequest req /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequestDescriptor descriptor) @@ -735,7 +735,7 @@ public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequestDescriptor desc /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus() @@ -749,7 +749,7 @@ public virtual GetSlmStatusResponse GetStatus() /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(Action configureRequest) @@ -764,7 +764,7 @@ public virtual GetSlmStatusResponse GetStatus(Action /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetSlmStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -776,7 +776,7 @@ public virtual Task GetStatusAsync(GetSlmStatusRequestDesc /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(CancellationToken cancellationToken = default) { @@ -789,7 +789,7 @@ public virtual Task GetStatusAsync(CancellationToken cance /// /// Get the snapshot lifecycle management status. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -806,7 +806,7 @@ public virtual Task GetStatusAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) @@ -822,7 +822,7 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(PutLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -837,7 +837,7 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequest /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor descriptor) @@ -853,7 +853,7 @@ public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequestDescriptor d /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policyId) @@ -870,7 +870,7 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest) @@ -888,7 +888,7 @@ public virtual PutLifecycleResponse PutLifecycle(Elastic.Clients.Elasticsearch.N /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(PutLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -903,7 +903,7 @@ public virtual Task PutLifecycleAsync(PutLifecycleRequestD /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, CancellationToken cancellationToken = default) { @@ -919,7 +919,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// If the policy already exists, this request increments the policy version. /// Only the latest version of a policy is stored. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutLifecycleAsync(Elastic.Clients.Elasticsearch.Name policyId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -935,7 +935,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(StartSlmRequest request) @@ -950,7 +950,7 @@ public virtual StartSlmResponse Start(StartSlmRequest request) /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(StartSlmRequest request, CancellationToken cancellationToken = default) { @@ -964,7 +964,7 @@ public virtual Task StartAsync(StartSlmRequest request, Cancel /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(StartSlmRequestDescriptor descriptor) @@ -979,7 +979,7 @@ public virtual StartSlmResponse Start(StartSlmRequestDescriptor descriptor) /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start() @@ -995,7 +995,7 @@ public virtual StartSlmResponse Start() /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(Action configureRequest) @@ -1012,7 +1012,7 @@ public virtual StartSlmResponse Start(Action configur /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(StartSlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1026,7 +1026,7 @@ public virtual Task StartAsync(StartSlmRequestDescriptor descr /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(CancellationToken cancellationToken = default) { @@ -1041,7 +1041,7 @@ public virtual Task StartAsync(CancellationToken cancellationT /// Snapshot lifecycle management (SLM) starts automatically when a cluster is formed. /// Manually starting SLM is necessary only if it has been stopped using the stop SLM API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1063,7 +1063,7 @@ public virtual Task StartAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(StopSlmRequest request) @@ -1084,7 +1084,7 @@ public virtual StopSlmResponse Stop(StopSlmRequest request) /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(StopSlmRequest request, CancellationToken cancellationToken = default) { @@ -1104,7 +1104,7 @@ public virtual Task StopAsync(StopSlmRequest request, Cancellat /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(StopSlmRequestDescriptor descriptor) @@ -1125,7 +1125,7 @@ public virtual StopSlmResponse Stop(StopSlmRequestDescriptor descriptor) /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop() @@ -1147,7 +1147,7 @@ public virtual StopSlmResponse Stop() /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(Action configureRequest) @@ -1170,7 +1170,7 @@ public virtual StopSlmResponse Stop(Action configureRe /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(StopSlmRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1190,7 +1190,7 @@ public virtual Task StopAsync(StopSlmRequestDescriptor descript /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(CancellationToken cancellationToken = default) { @@ -1211,7 +1211,7 @@ public virtual Task StopAsync(CancellationToken cancellationTok /// The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped. /// Use the get snapshot lifecycle management status API to see if SLM is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index d696321c120..2666a186407 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -44,7 +44,7 @@ internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequest request) @@ -58,7 +58,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequ /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(CleanupRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -71,7 +71,7 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequestDescriptor descriptor) @@ -85,7 +85,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequ /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name name) @@ -100,7 +100,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elast /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -116,7 +116,7 @@ public virtual CleanupRepositoryResponse CleanupRepository(Elastic.Clients.Elast /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(CleanupRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -129,7 +129,7 @@ public virtual Task CleanupRepositoryAsync(CleanupRep /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -143,7 +143,7 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// Clean up the snapshot repository. /// Trigger the review of the contents of a snapshot repository and delete any stale data not referenced by existing snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CleanupRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -158,7 +158,7 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) @@ -172,7 +172,7 @@ public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -185,7 +185,7 @@ public virtual Task CloneAsync(CloneSnapshotRequest reque /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(CloneSnapshotRequestDescriptor descriptor) @@ -199,7 +199,7 @@ public virtual CloneSnapshotResponse Clone(CloneSnapshotRequestDescriptor descri /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot) @@ -214,7 +214,7 @@ public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name re /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot, Action configureRequest) @@ -230,7 +230,7 @@ public virtual CloneSnapshotResponse Clone(Elastic.Clients.Elasticsearch.Name re /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(CloneSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -243,7 +243,7 @@ public virtual Task CloneAsync(CloneSnapshotRequestDescri /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot, CancellationToken cancellationToken = default) { @@ -257,7 +257,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// Clone a snapshot. /// Clone part of all of a snapshot into another snapshot in the same repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Elastic.Clients.Elasticsearch.Name targetSnapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -272,7 +272,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) @@ -286,7 +286,7 @@ public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -299,7 +299,7 @@ public virtual Task CreateAsync(CreateSnapshotRequest re /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(CreateSnapshotRequestDescriptor descriptor) @@ -313,7 +313,7 @@ public virtual CreateSnapshotResponse Create(CreateSnapshotRequestDescriptor des /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -328,7 +328,7 @@ public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -344,7 +344,7 @@ public virtual CreateSnapshotResponse Create(Elastic.Clients.Elasticsearch.Name /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -357,7 +357,7 @@ public virtual Task CreateAsync(CreateSnapshotRequestDes /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -371,7 +371,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// Create a snapshot. /// Take a snapshot of a cluster or of data streams and indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -515,7 +515,7 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) @@ -528,7 +528,7 @@ public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -540,7 +540,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequest re /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequestDescriptor descriptor) @@ -553,7 +553,7 @@ public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequestDescriptor des /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -567,7 +567,7 @@ public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -582,7 +582,7 @@ public virtual DeleteSnapshotResponse Delete(Elastic.Clients.Elasticsearch.Name /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -594,7 +594,7 @@ public virtual Task DeleteAsync(DeleteSnapshotRequestDes /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -607,7 +607,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// /// Delete snapshots. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -623,7 +623,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) @@ -638,7 +638,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -652,7 +652,7 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequestDescriptor descriptor) @@ -667,7 +667,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elasticsearch.Names name) @@ -683,7 +683,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elastic /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -700,7 +700,7 @@ public virtual DeleteRepositoryResponse DeleteRepository(Elastic.Clients.Elastic /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -714,7 +714,7 @@ public virtual Task DeleteRepositoryAsync(DeleteReposi /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -729,7 +729,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// When a repository is unregistered, Elasticsearch removes only the reference to the location where the repository is storing the snapshots. /// The snapshots themselves are left untouched and in place. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteRepositoryAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -743,7 +743,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(GetSnapshotRequest request) @@ -756,7 +756,7 @@ public virtual GetSnapshotResponse Get(GetSnapshotRequest request) /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetSnapshotRequest request, CancellationToken cancellationToken = default) { @@ -768,7 +768,7 @@ public virtual Task GetAsync(GetSnapshotRequest request, Ca /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(GetSnapshotRequestDescriptor descriptor) @@ -781,7 +781,7 @@ public virtual GetSnapshotResponse Get(GetSnapshotRequestDescriptor descriptor) /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot) @@ -795,7 +795,7 @@ public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name reposi /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest) @@ -810,7 +810,7 @@ public virtual GetSnapshotResponse Get(Elastic.Clients.Elasticsearch.Name reposi /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetSnapshotRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -822,7 +822,7 @@ public virtual Task GetAsync(GetSnapshotRequestDescriptor d /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, CancellationToken cancellationToken = default) { @@ -835,7 +835,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// /// Get snapshot information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Names snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -849,7 +849,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) @@ -862,7 +862,7 @@ public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoryAsync(GetRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -874,7 +874,7 @@ public virtual Task GetRepositoryAsync(GetRepositoryReque /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository(GetRepositoryRequestDescriptor descriptor) @@ -887,7 +887,7 @@ public virtual GetRepositoryResponse GetRepository(GetRepositoryRequestDescripto /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch.Names? name) @@ -901,7 +901,7 @@ public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest) @@ -916,7 +916,7 @@ public virtual GetRepositoryResponse GetRepository(Elastic.Clients.Elasticsearch /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository() @@ -930,7 +930,7 @@ public virtual GetRepositoryResponse GetRepository() /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository(Action configureRequest) @@ -945,7 +945,7 @@ public virtual GetRepositoryResponse GetRepository(Action /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoryAsync(GetRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -957,7 +957,7 @@ public virtual Task GetRepositoryAsync(GetRepositoryReque /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Names? name, CancellationToken cancellationToken = default) { @@ -970,7 +970,7 @@ public virtual Task GetRepositoryAsync(Elastic.Clients.El /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoryAsync(Elastic.Clients.Elasticsearch.Names? name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -984,7 +984,7 @@ public virtual Task GetRepositoryAsync(Elastic.Clients.El /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoryAsync(CancellationToken cancellationToken = default) { @@ -997,7 +997,7 @@ public virtual Task GetRepositoryAsync(CancellationToken /// /// Get snapshot repository information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetRepositoryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1136,7 +1136,7 @@ public virtual Task GetRepositoryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryAnalyzeResponse RepositoryAnalyze(RepositoryAnalyzeRequest request) @@ -1274,7 +1274,7 @@ public virtual RepositoryAnalyzeResponse RepositoryAnalyze(RepositoryAnalyzeRequ /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryAnalyzeAsync(RepositoryAnalyzeRequest request, CancellationToken cancellationToken = default) { @@ -1411,7 +1411,7 @@ public virtual Task RepositoryAnalyzeAsync(Repository /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryAnalyzeResponse RepositoryAnalyze(RepositoryAnalyzeRequestDescriptor descriptor) @@ -1549,7 +1549,7 @@ public virtual RepositoryAnalyzeResponse RepositoryAnalyze(RepositoryAnalyzeRequ /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryAnalyzeResponse RepositoryAnalyze(Elastic.Clients.Elasticsearch.Name name) @@ -1688,7 +1688,7 @@ public virtual RepositoryAnalyzeResponse RepositoryAnalyze(Elastic.Clients.Elast /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryAnalyzeResponse RepositoryAnalyze(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -1828,7 +1828,7 @@ public virtual RepositoryAnalyzeResponse RepositoryAnalyze(Elastic.Clients.Elast /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryAnalyzeAsync(RepositoryAnalyzeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1965,7 +1965,7 @@ public virtual Task RepositoryAnalyzeAsync(Repository /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryAnalyzeAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -2103,7 +2103,7 @@ public virtual Task RepositoryAnalyzeAsync(Elastic.Cl /// Most of the compare-and-exchange operations performed by repository analysis atomically increment a counter which is represented as an 8-byte blob. /// Some operations also verify the behavior on small blobs with sizes other than 8 bytes. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryAnalyzeAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2172,7 +2172,7 @@ public virtual Task RepositoryAnalyzeAsync(Elastic.Cl /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(RepositoryVerifyIntegrityRequest request) @@ -2240,7 +2240,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Repos /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(RepositoryVerifyIntegrityRequest request, CancellationToken cancellationToken = default) { @@ -2307,7 +2307,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(RepositoryVerifyIntegrityRequestDescriptor descriptor) @@ -2375,7 +2375,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Repos /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elastic.Clients.Elasticsearch.Names name) @@ -2444,7 +2444,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elast /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) @@ -2514,7 +2514,7 @@ public virtual RepositoryVerifyIntegrityResponse RepositoryVerifyIntegrity(Elast /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(RepositoryVerifyIntegrityRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2581,7 +2581,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { @@ -2649,7 +2649,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// NOTE: This API may not work correctly in a mixed-version cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RepositoryVerifyIntegrityAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2684,7 +2684,7 @@ public virtual Task RepositoryVerifyIntegrity /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequest request) @@ -2718,7 +2718,7 @@ public virtual RestoreResponse Restore(RestoreRequest request) /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(RestoreRequest request, CancellationToken cancellationToken = default) { @@ -2751,7 +2751,7 @@ public virtual Task RestoreAsync(RestoreRequest request, Cancel /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) @@ -2785,7 +2785,7 @@ public virtual RestoreResponse Restore(RestoreRequestDescriptor /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -2820,7 +2820,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch. /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action> configureRequest) @@ -2856,7 +2856,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch. /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) @@ -2890,7 +2890,7 @@ public virtual RestoreResponse Restore(RestoreRequestDescriptor descriptor) /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot) @@ -2925,7 +2925,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name reposi /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest) @@ -2961,7 +2961,7 @@ public virtual RestoreResponse Restore(Elastic.Clients.Elasticsearch.Name reposi /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(RestoreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2994,7 +2994,7 @@ public virtual Task RestoreAsync(RestoreRequestDescr /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -3028,7 +3028,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3063,7 +3063,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Ela /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(RestoreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3096,7 +3096,7 @@ public virtual Task RestoreAsync(RestoreRequestDescriptor descr /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, CancellationToken cancellationToken = default) { @@ -3130,7 +3130,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// /// If your snapshot contains data from App Search or Workplace Search, you must restore the Enterprise Search encryption key before you restore the snapshot. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch.Name repository, Elastic.Clients.Elasticsearch.Name snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3156,7 +3156,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) @@ -3181,7 +3181,7 @@ public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(SnapshotStatusRequest request, CancellationToken cancellationToken = default) { @@ -3205,7 +3205,7 @@ public virtual Task StatusAsync(SnapshotStatusRequest re /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(SnapshotStatusRequestDescriptor descriptor) @@ -3230,7 +3230,7 @@ public virtual SnapshotStatusResponse Status(SnapshotStatusRequestDescriptor des /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot) @@ -3256,7 +3256,7 @@ public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot, Action configureRequest) @@ -3283,7 +3283,7 @@ public virtual SnapshotStatusResponse Status(Elastic.Clients.Elasticsearch.Name? /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status() @@ -3309,7 +3309,7 @@ public virtual SnapshotStatusResponse Status() /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(Action configureRequest) @@ -3336,7 +3336,7 @@ public virtual SnapshotStatusResponse Status(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(SnapshotStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3360,7 +3360,7 @@ public virtual Task StatusAsync(SnapshotStatusRequestDes /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot, CancellationToken cancellationToken = default) { @@ -3385,7 +3385,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Name? repository, Elastic.Clients.Elasticsearch.Names? snapshot, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3411,7 +3411,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elastics /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(CancellationToken cancellationToken = default) { @@ -3436,7 +3436,7 @@ public virtual Task StatusAsync(CancellationToken cancel /// Depending on the latency of your storage, such requests can take an extremely long time to return results. /// These requests can also tax machine resources and, when using cloud storage, incur high processing costs. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -3451,7 +3451,7 @@ public virtual Task StatusAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest request) @@ -3465,7 +3465,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(VerifyRepositoryRequest request, CancellationToken cancellationToken = default) { @@ -3478,7 +3478,7 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequestDescriptor descriptor) @@ -3492,7 +3492,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elasticsearch.Name name) @@ -3507,7 +3507,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elastic /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) @@ -3523,7 +3523,7 @@ public virtual VerifyRepositoryResponse VerifyRepository(Elastic.Clients.Elastic /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(VerifyRepositoryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3536,7 +3536,7 @@ public virtual Task VerifyRepositoryAsync(VerifyReposi /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -3550,7 +3550,7 @@ public virtual Task VerifyRepositoryAsync(Elastic.Clie /// Verify a snapshot repository. /// Check for common misconfigurations in a snapshot repository. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task VerifyRepositoryAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs index 8f72a0423c4..e4030f182f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -43,7 +43,7 @@ internal SqlNamespacedClient(ElasticsearchClient client) : base(client) /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) @@ -56,7 +56,7 @@ public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(ClearCursorRequest request, CancellationToken cancellationToken = default) { @@ -68,7 +68,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequest req /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor descriptor) @@ -81,7 +81,7 @@ public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor desc /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor() @@ -95,7 +95,7 @@ public virtual ClearCursorResponse ClearCursor() /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(Action configureRequest) @@ -110,7 +110,7 @@ public virtual ClearCursorResponse ClearCursor(Action /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(ClearCursorRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task ClearCursorAsync(ClearCursorRequestDesc /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(CancellationToken cancellationToken = default) { @@ -135,7 +135,7 @@ public virtual Task ClearCursorAsync(CancellationToken canc /// /// Clear an SQL search cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearCursorAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -166,7 +166,7 @@ public virtual Task ClearCursorAsync(Action /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) @@ -196,7 +196,7 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(DeleteAsyncRequest request, CancellationToken cancellationToken = default) { @@ -225,7 +225,7 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequest req /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor descriptor) @@ -255,7 +255,7 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDesc /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id) @@ -286,7 +286,7 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -318,7 +318,7 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasti /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor descriptor) @@ -348,7 +348,7 @@ public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequestDescriptor desc /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id) @@ -379,7 +379,7 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -411,7 +411,7 @@ public virtual DeleteAsyncResponse DeleteAsync(Elastic.Clients.Elasticsearch.Id /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -440,7 +440,7 @@ public virtual Task DeleteAsyncAsync(DeleteAsync /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -470,7 +470,7 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -501,7 +501,7 @@ public virtual Task DeleteAsyncAsync(Elastic.Cli /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -530,7 +530,7 @@ public virtual Task DeleteAsyncAsync(DeleteAsyncRequestDesc /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -560,7 +560,7 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -578,7 +578,7 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) @@ -595,7 +595,7 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(GetAsyncRequest request, CancellationToken cancellationToken = default) { @@ -611,7 +611,7 @@ public virtual Task GetAsyncAsync(GetAsyncRequest request, Can /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) @@ -628,7 +628,7 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) @@ -646,7 +646,7 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -665,7 +665,7 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearc /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) @@ -682,7 +682,7 @@ public virtual GetAsyncResponse GetAsync(GetAsyncRequestDescriptor descriptor) /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) @@ -700,7 +700,7 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id) /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -719,7 +719,7 @@ public virtual GetAsyncResponse GetAsync(Elastic.Clients.Elasticsearch.Id id, Ac /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -735,7 +735,7 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDe /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -752,7 +752,7 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -770,7 +770,7 @@ public virtual Task GetAsyncAsync(Elastic.Clients.E /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -786,7 +786,7 @@ public virtual Task GetAsyncAsync(GetAsyncRequestDescriptor de /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -803,7 +803,7 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// /// If the Elasticsearch security features are enabled, only the user who first submitted the SQL search can retrieve the search using this API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -818,7 +818,7 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest request) @@ -832,7 +832,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest reque /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequest request, CancellationToken cancellationToken = default) { @@ -845,7 +845,7 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescriptor descriptor) @@ -859,7 +859,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRe /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id) @@ -874,7 +874,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -890,7 +890,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients. /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescriptor descriptor) @@ -904,7 +904,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequestDescri /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id) @@ -919,7 +919,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -935,7 +935,7 @@ public virtual GetAsyncStatusResponse GetAsyncStatus(Elastic.Clients.Elasticsear /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -948,7 +948,7 @@ public virtual Task GetAsyncStatusAsync(GetAs /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -962,7 +962,7 @@ public virtual Task GetAsyncStatusAsync(Elast /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -977,7 +977,7 @@ public virtual Task GetAsyncStatusAsync(Elast /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -990,7 +990,7 @@ public virtual Task GetAsyncStatusAsync(GetAsyncStatusRe /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1004,7 +1004,7 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// Get the async SQL search status. /// Get the current status of an async SQL search or a stored synchronous SQL search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsyncStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1019,7 +1019,7 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequest request) @@ -1033,7 +1033,7 @@ public virtual QueryResponse Query(QueryRequest request) /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(QueryRequest request, CancellationToken cancellationToken = default) { @@ -1046,7 +1046,7 @@ public virtual Task QueryAsync(QueryRequest request, Cancellation /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequestDescriptor descriptor) @@ -1060,7 +1060,7 @@ public virtual QueryResponse Query(QueryRequestDescriptor /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query() @@ -1075,7 +1075,7 @@ public virtual QueryResponse Query() /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(Action> configureRequest) @@ -1091,7 +1091,7 @@ public virtual QueryResponse Query(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequestDescriptor descriptor) @@ -1105,7 +1105,7 @@ public virtual QueryResponse Query(QueryRequestDescriptor descriptor) /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query() @@ -1120,7 +1120,7 @@ public virtual QueryResponse Query() /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(Action configureRequest) @@ -1136,7 +1136,7 @@ public virtual QueryResponse Query(Action configureReque /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1149,7 +1149,7 @@ public virtual Task QueryAsync(QueryRequestDescriptor< /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -1163,7 +1163,7 @@ public virtual Task QueryAsync(CancellationToken cance /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1178,7 +1178,7 @@ public virtual Task QueryAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1191,7 +1191,7 @@ public virtual Task QueryAsync(QueryRequestDescriptor descriptor, /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { @@ -1205,7 +1205,7 @@ public virtual Task QueryAsync(CancellationToken cancellationToke /// Get SQL search results. /// Run an SQL request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1221,7 +1221,7 @@ public virtual Task QueryAsync(Action con /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequest request) @@ -1236,7 +1236,7 @@ public virtual TranslateResponse Translate(TranslateRequest request) /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(TranslateRequest request, CancellationToken cancellationToken = default) { @@ -1250,7 +1250,7 @@ public virtual Task TranslateAsync(TranslateRequest request, /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor) @@ -1265,7 +1265,7 @@ public virtual TranslateResponse Translate(TranslateRequestDescriptor /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate() @@ -1281,7 +1281,7 @@ public virtual TranslateResponse Translate() /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(Action> configureRequest) @@ -1298,7 +1298,7 @@ public virtual TranslateResponse Translate(Actioncursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor) @@ -1313,7 +1313,7 @@ public virtual TranslateResponse Translate(TranslateRequestDescriptor descriptor /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate() @@ -1329,7 +1329,7 @@ public virtual TranslateResponse Translate() /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(Action configureRequest) @@ -1346,7 +1346,7 @@ public virtual TranslateResponse Translate(Action co /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(TranslateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1360,7 +1360,7 @@ public virtual Task TranslateAsync(TranslateReques /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(CancellationToken cancellationToken = default) { @@ -1375,7 +1375,7 @@ public virtual Task TranslateAsync(CancellationTok /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1391,7 +1391,7 @@ public virtual Task TranslateAsync(Actioncursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(TranslateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1405,7 +1405,7 @@ public virtual Task TranslateAsync(TranslateRequestDescriptor /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(CancellationToken cancellationToken = default) { @@ -1420,7 +1420,7 @@ public virtual Task TranslateAsync(CancellationToken cancella /// Translate an SQL search into a search API request containing Query DSL. /// It accepts the same request body parameters as the SQL search API, excluding cursor. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TranslateAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 09db9e200fc..5e2fb96986b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -65,7 +65,7 @@ internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) @@ -100,7 +100,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(DeleteSynonymRequest request, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescriptor descriptor) @@ -169,7 +169,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymReque /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -205,7 +205,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -242,7 +242,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.El /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescriptor descriptor) @@ -277,7 +277,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequestDescripto /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -313,7 +313,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -350,7 +350,7 @@ public virtual DeleteSynonymResponse DeleteSynonym(Elastic.Clients.Elasticsearch /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -384,7 +384,7 @@ public virtual Task DeleteSynonymAsync(DeleteS /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -419,7 +419,7 @@ public virtual Task DeleteSynonymAsync(Elastic /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -455,7 +455,7 @@ public virtual Task DeleteSynonymAsync(Elastic /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(DeleteSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -489,7 +489,7 @@ public virtual Task DeleteSynonymAsync(DeleteSynonymReque /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -524,7 +524,7 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// Once finished, you can delete the index. /// When the synonyms set is not used in analyzers, you will be able to delete it. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -539,7 +539,7 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequest request) @@ -553,7 +553,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequ /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(DeleteSynonymRuleRequest request, CancellationToken cancellationToken = default) { @@ -566,7 +566,7 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequestDescriptor descriptor) @@ -580,7 +580,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequ /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -595,7 +595,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elast /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -611,7 +611,7 @@ public virtual DeleteSynonymRuleResponse DeleteSynonymRule(Elastic.Clients.Elast /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(DeleteSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -624,7 +624,7 @@ public virtual Task DeleteSynonymRuleAsync(DeleteSyno /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -638,7 +638,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// Delete a synonym rule. /// Delete a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -652,7 +652,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) @@ -665,7 +665,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(GetSynonymRequest request, CancellationToken cancellationToken = default) { @@ -677,7 +677,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequest reques /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descriptor) @@ -690,7 +690,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescrip /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -704,7 +704,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -719,7 +719,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elastics /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descriptor) @@ -732,7 +732,7 @@ public virtual GetSynonymResponse GetSynonym(GetSynonymRequestDescriptor descrip /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -746,7 +746,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -761,7 +761,7 @@ public virtual GetSynonymResponse GetSynonym(Elastic.Clients.Elasticsearch.Id id /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -773,7 +773,7 @@ public virtual Task GetSynonymAsync(GetSynonymReq /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -786,7 +786,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -800,7 +800,7 @@ public virtual Task GetSynonymAsync(Elastic.Clien /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(GetSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -812,7 +812,7 @@ public virtual Task GetSynonymAsync(GetSynonymRequestDescrip /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -825,7 +825,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// /// Get a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -840,7 +840,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest request) @@ -854,7 +854,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest reque /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(GetSynonymRuleRequest request, CancellationToken cancellationToken = default) { @@ -867,7 +867,7 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequestDescriptor descriptor) @@ -881,7 +881,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequestDescri /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -896,7 +896,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsear /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -912,7 +912,7 @@ public virtual GetSynonymRuleResponse GetSynonymRule(Elastic.Clients.Elasticsear /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(GetSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -925,7 +925,7 @@ public virtual Task GetSynonymRuleAsync(GetSynonymRuleRe /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -939,7 +939,7 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// Get a synonym rule. /// Get a synonym rule from a synonym set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -954,7 +954,7 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest request) @@ -968,7 +968,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest re /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(GetSynonymsSetsRequest request, CancellationToken cancellationToken = default) { @@ -981,7 +981,7 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequestDescriptor descriptor) @@ -995,7 +995,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequestDes /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets() @@ -1010,7 +1010,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets() /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(Action configureRequest) @@ -1026,7 +1026,7 @@ public virtual GetSynonymsSetsResponse GetSynonymsSets(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(GetSynonymsSetsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1039,7 +1039,7 @@ public virtual Task GetSynonymsSetsAsync(GetSynonymsSet /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(CancellationToken cancellationToken = default) { @@ -1053,7 +1053,7 @@ public virtual Task GetSynonymsSetsAsync(CancellationTo /// Get all synonym sets. /// Get a summary of all defined synonym sets. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSynonymsSetsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1073,7 +1073,7 @@ public virtual Task GetSynonymsSetsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) @@ -1092,7 +1092,7 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(PutSynonymRequest request, CancellationToken cancellationToken = default) { @@ -1110,7 +1110,7 @@ public virtual Task PutSynonymAsync(PutSynonymRequest reques /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descriptor) @@ -1129,7 +1129,7 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescrip /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -1149,7 +1149,7 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -1170,7 +1170,7 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elastics /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descriptor) @@ -1189,7 +1189,7 @@ public virtual PutSynonymResponse PutSynonym(PutSynonymRequestDescriptor descrip /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id) @@ -1209,7 +1209,7 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -1230,7 +1230,7 @@ public virtual PutSynonymResponse PutSynonym(Elastic.Clients.Elasticsearch.Id id /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1248,7 +1248,7 @@ public virtual Task PutSynonymAsync(PutSynonymReq /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1267,7 +1267,7 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1287,7 +1287,7 @@ public virtual Task PutSynonymAsync(Elastic.Clien /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(PutSynonymRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1305,7 +1305,7 @@ public virtual Task PutSynonymAsync(PutSynonymRequestDescrip /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -1324,7 +1324,7 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. /// This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1345,7 +1345,7 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest request) @@ -1365,7 +1365,7 @@ public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest reque /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(PutSynonymRuleRequest request, CancellationToken cancellationToken = default) { @@ -1384,7 +1384,7 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequestDescriptor descriptor) @@ -1404,7 +1404,7 @@ public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequestDescri /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId) @@ -1425,7 +1425,7 @@ public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsear /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest) @@ -1447,7 +1447,7 @@ public virtual PutSynonymRuleResponse PutSynonymRule(Elastic.Clients.Elasticsear /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(PutSynonymRuleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1466,7 +1466,7 @@ public virtual Task PutSynonymRuleAsync(PutSynonymRuleRe /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, CancellationToken cancellationToken = default) { @@ -1486,7 +1486,7 @@ public virtual Task PutSynonymRuleAsync(Elastic.Clients. /// /// When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutSynonymRuleAsync(Elastic.Clients.Elasticsearch.Id setId, Elastic.Clients.Elasticsearch.Id ruleId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs index 30dbb5969b0..f52fbabf04e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -57,7 +57,7 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequest request) @@ -84,7 +84,7 @@ public virtual CancelResponse Cancel(CancelRequest request) /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequest request, CancellationToken cancellationToken = default) { @@ -110,7 +110,7 @@ public virtual Task CancelAsync(CancelRequest request, Cancellat /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) @@ -137,7 +137,7 @@ public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskId) @@ -165,7 +165,7 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskId, Action configureRequest) @@ -194,7 +194,7 @@ public virtual CancelResponse Cancel(Elastic.Clients.Elasticsearch.TaskId? taskI /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel() @@ -222,7 +222,7 @@ public virtual CancelResponse Cancel() /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(Action configureRequest) @@ -251,7 +251,7 @@ public virtual CancelResponse Cancel(Action configureRe /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -277,7 +277,7 @@ public virtual Task CancelAsync(CancelRequestDescriptor descript /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.TaskId? taskId, CancellationToken cancellationToken = default) { @@ -304,7 +304,7 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.TaskId? taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -332,7 +332,7 @@ public virtual Task CancelAsync(Elastic.Clients.Elasticsearch.Ta /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancellationToken cancellationToken = default) { @@ -359,7 +359,7 @@ public virtual Task CancelAsync(CancellationToken cancellationTo /// To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the ?detailed parameter to identify the other tasks the system is running. /// You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -381,7 +381,7 @@ public virtual Task CancelAsync(Action /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequest request) @@ -402,7 +402,7 @@ public virtual GetTasksResponse Get(GetTasksRequest request) /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) { @@ -422,7 +422,7 @@ public virtual Task GetAsync(GetTasksRequest request, Cancella /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) @@ -443,7 +443,7 @@ public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) @@ -465,7 +465,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId) /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) @@ -488,7 +488,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id taskId, Act /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -508,7 +508,7 @@ public virtual Task GetAsync(GetTasksRequestDescriptor descrip /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { @@ -529,7 +529,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// If the task identifier is not found, a 404 response code indicates that there are no resources that match the request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -605,7 +605,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) @@ -680,7 +680,7 @@ public virtual ListResponse List(ListRequest request) /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) { @@ -754,7 +754,7 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequestDescriptor descriptor) @@ -829,7 +829,7 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List() @@ -905,7 +905,7 @@ public virtual ListResponse List() /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(Action configureRequest) @@ -982,7 +982,7 @@ public virtual ListResponse List(Action configureRequest) /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1056,7 +1056,7 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) { @@ -1131,7 +1131,7 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// The X-Opaque-Id in the task headers is the ID for the task that was initiated by the REST request. /// The X-Opaque-Id in the children headers is the child task of the task that was initiated by the REST request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs index 3b1721dce1b..e237a945798 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs @@ -81,7 +81,7 @@ internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureRequest request) @@ -132,7 +132,7 @@ public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureR /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(FindFieldStructureRequest request, CancellationToken cancellationToken = default) { @@ -182,7 +182,7 @@ public virtual Task FindFieldStructureAsync(FindFiel /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureRequestDescriptor descriptor) @@ -233,7 +233,7 @@ public virtual FindFieldStructureResponse FindFieldStructure(FindFiel /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure() @@ -285,7 +285,7 @@ public virtual FindFieldStructureResponse FindFieldStructure() /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure(Action> configureRequest) @@ -338,7 +338,7 @@ public virtual FindFieldStructureResponse FindFieldStructure(Actionexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureRequestDescriptor descriptor) @@ -389,7 +389,7 @@ public virtual FindFieldStructureResponse FindFieldStructure(FindFieldStructureR /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure() @@ -441,7 +441,7 @@ public virtual FindFieldStructureResponse FindFieldStructure() /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindFieldStructureResponse FindFieldStructure(Action configureRequest) @@ -494,7 +494,7 @@ public virtual FindFieldStructureResponse FindFieldStructure(Actionexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(FindFieldStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -544,7 +544,7 @@ public virtual Task FindFieldStructureAsyncexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(CancellationToken cancellationToken = default) { @@ -595,7 +595,7 @@ public virtual Task FindFieldStructureAsyncexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -647,7 +647,7 @@ public virtual Task FindFieldStructureAsyncexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(FindFieldStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -697,7 +697,7 @@ public virtual Task FindFieldStructureAsync(FindFiel /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(CancellationToken cancellationToken = default) { @@ -748,7 +748,7 @@ public virtual Task FindFieldStructureAsync(Cancella /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindFieldStructureAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -797,7 +797,7 @@ public virtual Task FindFieldStructureAsync(Actionexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStructureRequest request) @@ -845,7 +845,7 @@ public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStru /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(FindMessageStructureRequest request, CancellationToken cancellationToken = default) { @@ -892,7 +892,7 @@ public virtual Task FindMessageStructureAsync(Find /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStructureRequestDescriptor descriptor) @@ -940,7 +940,7 @@ public virtual FindMessageStructureResponse FindMessageStructure(Find /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure() @@ -989,7 +989,7 @@ public virtual FindMessageStructureResponse FindMessageStructure() /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure(Action> configureRequest) @@ -1039,7 +1039,7 @@ public virtual FindMessageStructureResponse FindMessageStructure(Acti /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStructureRequestDescriptor descriptor) @@ -1087,7 +1087,7 @@ public virtual FindMessageStructureResponse FindMessageStructure(FindMessageStru /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure() @@ -1136,7 +1136,7 @@ public virtual FindMessageStructureResponse FindMessageStructure() /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FindMessageStructureResponse FindMessageStructure(Action configureRequest) @@ -1186,7 +1186,7 @@ public virtual FindMessageStructureResponse FindMessageStructure(Actionexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(FindMessageStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1233,7 +1233,7 @@ public virtual Task FindMessageStructureAsyncexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(CancellationToken cancellationToken = default) { @@ -1281,7 +1281,7 @@ public virtual Task FindMessageStructureAsyncexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1330,7 +1330,7 @@ public virtual Task FindMessageStructureAsyncexplain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(FindMessageStructureRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1377,7 +1377,7 @@ public virtual Task FindMessageStructureAsync(Find /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(CancellationToken cancellationToken = default) { @@ -1425,7 +1425,7 @@ public virtual Task FindMessageStructureAsync(Canc /// If the structure finder produces unexpected results, specify the explain query parameter and an explanation will appear in the response. /// It helps determine why the returned structure was chosen. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FindMessageStructureAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1441,7 +1441,7 @@ public virtual Task FindMessageStructureAsync(Acti /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequest request) @@ -1456,7 +1456,7 @@ public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequest re /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestGrokPatternAsync(TestGrokPatternRequest request, CancellationToken cancellationToken = default) { @@ -1470,7 +1470,7 @@ public virtual Task TestGrokPatternAsync(TestGrokPatter /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequestDescriptor descriptor) @@ -1485,7 +1485,7 @@ public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequestDes /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestGrokPatternResponse TestGrokPattern() @@ -1501,7 +1501,7 @@ public virtual TestGrokPatternResponse TestGrokPattern() /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestGrokPatternResponse TestGrokPattern(Action configureRequest) @@ -1518,7 +1518,7 @@ public virtual TestGrokPatternResponse TestGrokPattern(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestGrokPatternAsync(TestGrokPatternRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1532,7 +1532,7 @@ public virtual Task TestGrokPatternAsync(TestGrokPatter /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestGrokPatternAsync(CancellationToken cancellationToken = default) { @@ -1547,7 +1547,7 @@ public virtual Task TestGrokPatternAsync(CancellationTo /// Test a Grok pattern on one or more lines of text. /// The API indicates whether the lines match the pattern together with the offsets and lengths of the matched substrings. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TestGrokPatternAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs index 383aa2450e9..abc632a1e2f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs @@ -42,9 +42,8 @@ internal TransformManagementNamespacedClient(ElasticsearchClient client) : base( /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTransformResponse DeleteTransform(DeleteTransformRequest request) @@ -56,9 +55,8 @@ public virtual DeleteTransformResponse DeleteTransform(DeleteTransformRequest re /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTransformAsync(DeleteTransformRequest request, CancellationToken cancellationToken = default) { @@ -69,9 +67,8 @@ public virtual Task DeleteTransformAsync(DeleteTransfor /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTransformResponse DeleteTransform(DeleteTransformRequestDescriptor descriptor) @@ -83,9 +80,8 @@ public virtual DeleteTransformResponse DeleteTransform(DeleteTransformRequestDes /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTransformResponse DeleteTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -98,9 +94,8 @@ public virtual DeleteTransformResponse DeleteTransform(Elastic.Clients.Elasticse /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTransformResponse DeleteTransform(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest) @@ -114,9 +109,8 @@ public virtual DeleteTransformResponse DeleteTransform(Elastic.Clients.Elasticse /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTransformAsync(DeleteTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -127,9 +121,8 @@ public virtual Task DeleteTransformAsync(DeleteTransfor /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -141,9 +134,8 @@ public virtual Task DeleteTransformAsync(Elastic.Client /// /// /// Delete a transform. - /// Deletes a transform. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -156,9 +148,9 @@ public virtual Task DeleteTransformAsync(Elastic.Client /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform(GetTransformRequest request) @@ -170,9 +162,9 @@ public virtual GetTransformResponse GetTransform(GetTransformRequest request) /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformAsync(GetTransformRequest request, CancellationToken cancellationToken = default) { @@ -183,9 +175,9 @@ public virtual Task GetTransformAsync(GetTransformRequest /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform(GetTransformRequestDescriptor descriptor) @@ -197,9 +189,9 @@ public virtual GetTransformResponse GetTransform(GetTransformRequestDescriptor d /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform(Elastic.Clients.Elasticsearch.Names? transformId) @@ -212,9 +204,9 @@ public virtual GetTransformResponse GetTransform(Elastic.Clients.Elasticsearch.N /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform(Elastic.Clients.Elasticsearch.Names? transformId, Action configureRequest) @@ -228,9 +220,9 @@ public virtual GetTransformResponse GetTransform(Elastic.Clients.Elasticsearch.N /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform() @@ -243,9 +235,9 @@ public virtual GetTransformResponse GetTransform() /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform(Action configureRequest) @@ -259,9 +251,9 @@ public virtual GetTransformResponse GetTransform(Action /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformAsync(GetTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -272,9 +264,9 @@ public virtual Task GetTransformAsync(GetTransformRequestD /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformAsync(Elastic.Clients.Elasticsearch.Names? transformId, CancellationToken cancellationToken = default) { @@ -286,9 +278,9 @@ public virtual Task GetTransformAsync(Elastic.Clients.Elas /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformAsync(Elastic.Clients.Elasticsearch.Names? transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -301,9 +293,9 @@ public virtual Task GetTransformAsync(Elastic.Clients.Elas /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformAsync(CancellationToken cancellationToken = default) { @@ -315,9 +307,9 @@ public virtual Task GetTransformAsync(CancellationToken ca /// /// /// Get transforms. - /// Retrieves configuration information for transforms. + /// Get configuration information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -330,9 +322,11 @@ public virtual Task GetTransformAsync(Action /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformStatsResponse GetTransformStats(GetTransformStatsRequest request) @@ -344,9 +338,11 @@ public virtual GetTransformStatsResponse GetTransformStats(GetTransformStatsRequ /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformStatsAsync(GetTransformStatsRequest request, CancellationToken cancellationToken = default) { @@ -357,9 +353,11 @@ public virtual Task GetTransformStatsAsync(GetTransfo /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformStatsResponse GetTransformStats(GetTransformStatsRequestDescriptor descriptor) @@ -371,9 +369,11 @@ public virtual GetTransformStatsResponse GetTransformStats(GetTransformStatsRequ /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformStatsResponse GetTransformStats(Elastic.Clients.Elasticsearch.Names transformId) @@ -386,9 +386,11 @@ public virtual GetTransformStatsResponse GetTransformStats(Elastic.Clients.Elast /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformStatsResponse GetTransformStats(Elastic.Clients.Elasticsearch.Names transformId, Action configureRequest) @@ -402,9 +404,11 @@ public virtual GetTransformStatsResponse GetTransformStats(Elastic.Clients.Elast /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformStatsAsync(GetTransformStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -415,9 +419,11 @@ public virtual Task GetTransformStatsAsync(GetTransfo /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformStatsAsync(Elastic.Clients.Elasticsearch.Names transformId, CancellationToken cancellationToken = default) { @@ -429,9 +435,11 @@ public virtual Task GetTransformStatsAsync(Elastic.Cl /// /// /// Get transform stats. - /// Retrieves usage information for transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Get usage information for transforms. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetTransformStatsAsync(Elastic.Clients.Elasticsearch.Names transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -451,7 +459,7 @@ public virtual Task GetTransformStatsAsync(Elastic.Cl /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform(PreviewTransformRequest request) @@ -470,7 +478,7 @@ public virtual PreviewTransformResponse PreviewTransform /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> PreviewTransformAsync(PreviewTransformRequest request, CancellationToken cancellationToken = default) { @@ -488,7 +496,7 @@ public virtual Task> PreviewTransformAsync< /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform(PreviewTransformRequestDescriptor descriptor) @@ -507,7 +515,7 @@ public virtual PreviewTransformResponse PreviewTransform /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform(Elastic.Clients.Elasticsearch.Id? transformId) @@ -527,7 +535,7 @@ public virtual PreviewTransformResponse PreviewTransform /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform(Elastic.Clients.Elasticsearch.Id? transformId, Action> configureRequest) @@ -548,7 +556,7 @@ public virtual PreviewTransformResponse PreviewTransform /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform() @@ -568,7 +576,7 @@ public virtual PreviewTransformResponse PreviewTransform /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform(Action> configureRequest) @@ -589,7 +597,7 @@ public virtual PreviewTransformResponse PreviewTransform /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> PreviewTransformAsync(PreviewTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -607,7 +615,7 @@ public virtual Task> PreviewTransformAsync< /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> PreviewTransformAsync(Elastic.Clients.Elasticsearch.Id? transformId, CancellationToken cancellationToken = default) { @@ -626,7 +634,7 @@ public virtual Task> PreviewTransformAsync< /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> PreviewTransformAsync(Elastic.Clients.Elasticsearch.Id? transformId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -646,7 +654,7 @@ public virtual Task> PreviewTransformAsync< /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> PreviewTransformAsync(CancellationToken cancellationToken = default) { @@ -665,7 +673,7 @@ public virtual Task> PreviewTransformAsync< /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> PreviewTransformAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -704,7 +712,7 @@ public virtual Task> PreviewTransformAsync< /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(PutTransformRequest request) @@ -742,7 +750,7 @@ public virtual PutTransformResponse PutTransform(PutTransformRequest request) /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(PutTransformRequest request, CancellationToken cancellationToken = default) { @@ -779,7 +787,7 @@ public virtual Task PutTransformAsync(PutTransformRequest /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(PutTransformRequestDescriptor descriptor) @@ -817,7 +825,7 @@ public virtual PutTransformResponse PutTransform(PutTransformRequestD /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -856,7 +864,7 @@ public virtual PutTransformResponse PutTransform(Elastic.Clients.Elas /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(Elastic.Clients.Elasticsearch.Id transformId, Action> configureRequest) @@ -896,7 +904,7 @@ public virtual PutTransformResponse PutTransform(Elastic.Clients.Elas /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(PutTransformRequestDescriptor descriptor) @@ -934,7 +942,7 @@ public virtual PutTransformResponse PutTransform(PutTransformRequestDescriptor d /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -973,7 +981,7 @@ public virtual PutTransformResponse PutTransform(Elastic.Clients.Elasticsearch.I /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest) @@ -1013,7 +1021,7 @@ public virtual PutTransformResponse PutTransform(Elastic.Clients.Elasticsearch.I /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(PutTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1050,7 +1058,7 @@ public virtual Task PutTransformAsync(PutTransf /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -1088,7 +1096,7 @@ public virtual Task PutTransformAsync(Elastic.C /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1127,7 +1135,7 @@ public virtual Task PutTransformAsync(Elastic.C /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(PutTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1164,7 +1172,7 @@ public virtual Task PutTransformAsync(PutTransformRequestD /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -1202,7 +1210,7 @@ public virtual Task PutTransformAsync(Elastic.Clients.Elas /// not give users any privileges on .transform-internal* indices. If you used transforms prior to 7.5, also do not /// give users any privileges on .data-frame-internal* indices. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1215,11 +1223,12 @@ public virtual Task PutTransformAsync(Elastic.Clients.Elas /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetTransformResponse ResetTransform(ResetTransformRequest request) @@ -1231,11 +1240,12 @@ public virtual ResetTransformResponse ResetTransform(ResetTransformRequest reque /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetTransformAsync(ResetTransformRequest request, CancellationToken cancellationToken = default) { @@ -1246,11 +1256,12 @@ public virtual Task ResetTransformAsync(ResetTransformRe /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetTransformResponse ResetTransform(ResetTransformRequestDescriptor descriptor) @@ -1262,11 +1273,12 @@ public virtual ResetTransformResponse ResetTransform(ResetTransformRequestDescri /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetTransformResponse ResetTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -1279,11 +1291,12 @@ public virtual ResetTransformResponse ResetTransform(Elastic.Clients.Elasticsear /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetTransformResponse ResetTransform(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest) @@ -1297,11 +1310,12 @@ public virtual ResetTransformResponse ResetTransform(Elastic.Clients.Elasticsear /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetTransformAsync(ResetTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1312,11 +1326,12 @@ public virtual Task ResetTransformAsync(ResetTransformRe /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -1328,11 +1343,12 @@ public virtual Task ResetTransformAsync(Elastic.Clients. /// /// /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ResetTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1345,15 +1361,15 @@ public virtual Task ResetTransformAsync(Elastic.Clients. /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScheduleNowTransformResponse ScheduleNowTransform(ScheduleNowTransformRequest request) @@ -1365,15 +1381,15 @@ public virtual ScheduleNowTransformResponse ScheduleNowTransform(ScheduleNowTran /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ScheduleNowTransformAsync(ScheduleNowTransformRequest request, CancellationToken cancellationToken = default) { @@ -1384,15 +1400,15 @@ public virtual Task ScheduleNowTransformAsync(Sche /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScheduleNowTransformResponse ScheduleNowTransform(ScheduleNowTransformRequestDescriptor descriptor) @@ -1404,15 +1420,15 @@ public virtual ScheduleNowTransformResponse ScheduleNowTransform(ScheduleNowTran /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScheduleNowTransformResponse ScheduleNowTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -1425,15 +1441,15 @@ public virtual ScheduleNowTransformResponse ScheduleNowTransform(Elastic.Clients /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScheduleNowTransformResponse ScheduleNowTransform(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest) @@ -1447,15 +1463,15 @@ public virtual ScheduleNowTransformResponse ScheduleNowTransform(Elastic.Clients /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ScheduleNowTransformAsync(ScheduleNowTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1466,15 +1482,15 @@ public virtual Task ScheduleNowTransformAsync(Sche /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ScheduleNowTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -1486,15 +1502,15 @@ public virtual Task ScheduleNowTransformAsync(Elas /// /// /// 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 + /// Instantly run a transform to process data. + /// If you run this API, the transform will process the new data instantly, + /// without waiting for the configured frequency interval. After the API is called, + /// the transform will be processed again at now + frequency unless the API /// is called again in the meantime. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ScheduleNowTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1507,7 +1523,6 @@ public virtual Task ScheduleNowTransformAsync(Elas /// /// /// 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 @@ -1526,7 +1541,7 @@ public virtual Task ScheduleNowTransformAsync(Elas /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTransformResponse StartTransform(StartTransformRequest request) @@ -1538,7 +1553,6 @@ public virtual StartTransformResponse StartTransform(StartTransformRequest reque /// /// /// 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 @@ -1557,7 +1571,7 @@ public virtual StartTransformResponse StartTransform(StartTransformRequest reque /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTransformAsync(StartTransformRequest request, CancellationToken cancellationToken = default) { @@ -1568,7 +1582,6 @@ public virtual Task StartTransformAsync(StartTransformRe /// /// /// 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 @@ -1587,7 +1600,7 @@ public virtual Task StartTransformAsync(StartTransformRe /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTransformResponse StartTransform(StartTransformRequestDescriptor descriptor) @@ -1599,7 +1612,6 @@ public virtual StartTransformResponse StartTransform(StartTransformRequestDescri /// /// /// 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 @@ -1618,7 +1630,7 @@ public virtual StartTransformResponse StartTransform(StartTransformRequestDescri /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTransformResponse StartTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -1631,7 +1643,6 @@ public virtual StartTransformResponse StartTransform(Elastic.Clients.Elasticsear /// /// /// 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 @@ -1650,7 +1661,7 @@ public virtual StartTransformResponse StartTransform(Elastic.Clients.Elasticsear /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTransformResponse StartTransform(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest) @@ -1664,7 +1675,6 @@ public virtual StartTransformResponse StartTransform(Elastic.Clients.Elasticsear /// /// /// 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 @@ -1683,7 +1693,7 @@ public virtual StartTransformResponse StartTransform(Elastic.Clients.Elasticsear /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTransformAsync(StartTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1694,7 +1704,6 @@ public virtual Task StartTransformAsync(StartTransformRe /// /// /// 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 @@ -1713,7 +1722,7 @@ public virtual Task StartTransformAsync(StartTransformRe /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -1725,7 +1734,6 @@ public virtual Task StartTransformAsync(Elastic.Clients. /// /// /// 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 @@ -1744,7 +1752,7 @@ public virtual Task StartTransformAsync(Elastic.Clients. /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StartTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1759,7 +1767,7 @@ public virtual Task StartTransformAsync(Elastic.Clients. /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTransformResponse StopTransform(StopTransformRequest request) @@ -1773,7 +1781,7 @@ public virtual StopTransformResponse StopTransform(StopTransformRequest request) /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTransformAsync(StopTransformRequest request, CancellationToken cancellationToken = default) { @@ -1786,7 +1794,7 @@ public virtual Task StopTransformAsync(StopTransformReque /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTransformResponse StopTransform(StopTransformRequestDescriptor descriptor) @@ -1800,7 +1808,7 @@ public virtual StopTransformResponse StopTransform(StopTransformRequestDescripto /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTransformResponse StopTransform(Elastic.Clients.Elasticsearch.Name transformId) @@ -1815,7 +1823,7 @@ public virtual StopTransformResponse StopTransform(Elastic.Clients.Elasticsearch /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTransformResponse StopTransform(Elastic.Clients.Elasticsearch.Name transformId, Action configureRequest) @@ -1831,7 +1839,7 @@ public virtual StopTransformResponse StopTransform(Elastic.Clients.Elasticsearch /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTransformAsync(StopTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1844,7 +1852,7 @@ public virtual Task StopTransformAsync(StopTransformReque /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTransformAsync(Elastic.Clients.Elasticsearch.Name transformId, CancellationToken cancellationToken = default) { @@ -1858,7 +1866,7 @@ public virtual Task StopTransformAsync(Elastic.Clients.El /// Stop transforms. /// Stops one or more transforms. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StopTransformAsync(Elastic.Clients.Elasticsearch.Name transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1880,7 +1888,7 @@ public virtual Task StopTransformAsync(Elastic.Clients.El /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequest request) @@ -1901,7 +1909,7 @@ public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequest re /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(UpdateTransformRequest request, CancellationToken cancellationToken = default) { @@ -1921,7 +1929,7 @@ public virtual Task UpdateTransformAsync(UpdateTransfor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequestDescriptor descriptor) @@ -1942,7 +1950,7 @@ public virtual UpdateTransformResponse UpdateTransform(UpdateTransfor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -1964,7 +1972,7 @@ public virtual UpdateTransformResponse UpdateTransform(Elastic.Client /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(Elastic.Clients.Elasticsearch.Id transformId, Action> configureRequest) @@ -1987,7 +1995,7 @@ public virtual UpdateTransformResponse UpdateTransform(Elastic.Client /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequestDescriptor descriptor) @@ -2008,7 +2016,7 @@ public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequestDes /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(Elastic.Clients.Elasticsearch.Id transformId) @@ -2030,7 +2038,7 @@ public virtual UpdateTransformResponse UpdateTransform(Elastic.Clients.Elasticse /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest) @@ -2053,7 +2061,7 @@ public virtual UpdateTransformResponse UpdateTransform(Elastic.Clients.Elasticse /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(UpdateTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2073,7 +2081,7 @@ public virtual Task UpdateTransformAsync(Upd /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -2094,7 +2102,7 @@ public virtual Task UpdateTransformAsync(Ela /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2116,7 +2124,7 @@ public virtual Task UpdateTransformAsync(Ela /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(UpdateTransformRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2136,7 +2144,7 @@ public virtual Task UpdateTransformAsync(UpdateTransfor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, CancellationToken cancellationToken = default) { @@ -2157,7 +2165,7 @@ public virtual Task UpdateTransformAsync(Elastic.Client /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateTransformAsync(Elastic.Clients.Elasticsearch.Id transformId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2170,6 +2178,8 @@ public virtual Task UpdateTransformAsync(Elastic.Client /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2186,7 +2196,7 @@ public virtual Task UpdateTransformAsync(Elastic.Client /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequest request) @@ -2198,6 +2208,8 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequ /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2214,7 +2226,7 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequ /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeTransformsAsync(UpgradeTransformsRequest request, CancellationToken cancellationToken = default) { @@ -2225,6 +2237,8 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2241,7 +2255,7 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequestDescriptor descriptor) @@ -2253,6 +2267,8 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequ /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2269,7 +2285,7 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequ /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeTransformsResponse UpgradeTransforms() @@ -2282,6 +2298,8 @@ public virtual UpgradeTransformsResponse UpgradeTransforms() /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2298,7 +2316,7 @@ public virtual UpgradeTransformsResponse UpgradeTransforms() /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeTransformsResponse UpgradeTransforms(Action configureRequest) @@ -2312,6 +2330,8 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(Action /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2328,7 +2348,7 @@ public virtual UpgradeTransformsResponse UpgradeTransforms(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeTransformsAsync(UpgradeTransformsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2339,6 +2359,8 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2355,7 +2377,7 @@ public virtual Task UpgradeTransformsAsync(UpgradeTra /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeTransformsAsync(CancellationToken cancellationToken = default) { @@ -2367,6 +2389,8 @@ public virtual Task UpgradeTransformsAsync(Cancellati /// /// /// Upgrade all transforms. + /// + /// /// Transforms are compatible across minor versions and between supported major versions. /// However, over time, the format of transform configuration information may change. /// This API identifies transforms that have a legacy configuration format and upgrades them to the latest version. @@ -2383,7 +2407,7 @@ public virtual Task UpgradeTransformsAsync(Cancellati /// To ensure continuous transforms remain running during a major version upgrade of the cluster – for example, from 7.16 to 8.0 – it is recommended to upgrade transforms before upgrading the cluster. /// You may want to perform a recent cluster backup prior to the upgrade. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpgradeTransformsAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs index 6ba1065a617..13885d4dfe2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs @@ -61,7 +61,7 @@ internal XpackNamespacedClient(ElasticsearchClient client) : base(client) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(XpackInfoRequest request) @@ -92,7 +92,7 @@ public virtual XpackInfoResponse Info(XpackInfoRequest request) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequest request, CancellationToken cancellationToken = default) { @@ -122,7 +122,7 @@ public virtual Task InfoAsync(XpackInfoRequest request, Cance /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(XpackInfoRequestDescriptor descriptor) @@ -153,7 +153,7 @@ public virtual XpackInfoResponse Info(XpackInfoRequestDescriptor descriptor) /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info() @@ -185,7 +185,7 @@ public virtual XpackInfoResponse Info() /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(Action configureRequest) @@ -218,7 +218,7 @@ public virtual XpackInfoResponse Info(Action configu /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(XpackInfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -248,7 +248,7 @@ public virtual Task InfoAsync(XpackInfoRequestDescriptor desc /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -279,7 +279,7 @@ public virtual Task InfoAsync(CancellationToken cancellationT /// /// /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -295,7 +295,7 @@ public virtual Task InfoAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(XpackUsageRequest request) @@ -310,7 +310,7 @@ public virtual XpackUsageResponse Usage(XpackUsageRequest request) /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(XpackUsageRequest request, CancellationToken cancellationToken = default) { @@ -324,7 +324,7 @@ public virtual Task UsageAsync(XpackUsageRequest request, Ca /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(XpackUsageRequestDescriptor descriptor) @@ -339,7 +339,7 @@ public virtual XpackUsageResponse Usage(XpackUsageRequestDescriptor descriptor) /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage() @@ -355,7 +355,7 @@ public virtual XpackUsageResponse Usage() /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(Action configureRequest) @@ -372,7 +372,7 @@ public virtual XpackUsageResponse Usage(Action conf /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(XpackUsageRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -386,7 +386,7 @@ public virtual Task UsageAsync(XpackUsageRequestDescriptor d /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(CancellationToken cancellationToken = default) { @@ -401,7 +401,7 @@ public virtual Task UsageAsync(CancellationToken cancellatio /// Get information about the features that are currently enabled and available under the current license. /// The API also provides some usage statistics. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UsageAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 01649feef83..3cb9991c53a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -310,7 +310,7 @@ private partial void SetupNamespaces() /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequest request) @@ -508,7 +508,7 @@ public virtual BulkResponse Bulk(BulkRequest request) /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -705,7 +705,7 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) @@ -903,7 +903,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) @@ -1102,7 +1102,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -1302,7 +1302,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexN /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk() @@ -1501,7 +1501,7 @@ public virtual BulkResponse Bulk() /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Action> configureRequest) @@ -1701,7 +1701,7 @@ public virtual BulkResponse Bulk(Action_bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) @@ -1899,7 +1899,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) @@ -2098,7 +2098,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index) /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -2298,7 +2298,7 @@ public virtual BulkResponse Bulk(Elastic.Clients.Elasticsearch.IndexName? index, /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk() @@ -2497,7 +2497,7 @@ public virtual BulkResponse Bulk() /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(Action configureRequest) @@ -2697,7 +2697,7 @@ public virtual BulkResponse Bulk(Action configureRequest) /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2894,7 +2894,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor_bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -3092,7 +3092,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticse /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3291,7 +3291,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticse /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -3489,7 +3489,7 @@ public virtual Task BulkAsync(CancellationToken cancell /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -3688,7 +3688,7 @@ public virtual Task BulkAsync(Action_bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3885,7 +3885,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor descriptor, Ca /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -4083,7 +4083,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexN /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4282,7 +4282,7 @@ public virtual Task BulkAsync(Elastic.Clients.Elasticsearch.IndexN /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(CancellationToken cancellationToken = default) { @@ -4480,7 +4480,7 @@ public virtual Task BulkAsync(CancellationToken cancellationToken /// The request will only wait for those three shards to refresh. /// The other two shards that make up the index do not participate in the _bulk request at all. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4495,7 +4495,7 @@ public virtual Task BulkAsync(Action config /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) @@ -4509,7 +4509,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -4522,7 +4522,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) @@ -4536,7 +4536,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor desc /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll() @@ -4551,7 +4551,7 @@ public virtual ClearScrollResponse ClearScroll() /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(Action configureRequest) @@ -4567,7 +4567,7 @@ public virtual ClearScrollResponse ClearScroll(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4580,7 +4580,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -4594,7 +4594,7 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// Clear a scrolling search. /// Clear the search context and results for a scrolling search. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4612,7 +4612,7 @@ public virtual Task ClearScrollAsync(Actionkeep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) @@ -4629,7 +4629,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -4645,7 +4645,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) @@ -4662,7 +4662,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime() @@ -4680,7 +4680,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime() /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) @@ -4699,7 +4699,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Actionkeep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4715,7 +4715,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -4732,7 +4732,7 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// A point in time is automatically closed when the keep_alive period has elapsed. /// However, keeping points in time has a cost; close them as soon as they are no longer required for search requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -4759,7 +4759,7 @@ public virtual Task ClosePointInTimeAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(CountRequest request) @@ -4785,7 +4785,7 @@ public virtual CountResponse Count(CountRequest request) /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(CountRequest request, CancellationToken cancellationToken = default) { @@ -4810,7 +4810,7 @@ public virtual Task CountAsync(CountRequest request, Cancellation /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(CountRequestDescriptor descriptor) @@ -4836,7 +4836,7 @@ public virtual CountResponse Count(CountRequestDescriptor /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices) @@ -4863,7 +4863,7 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indi /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -4891,7 +4891,7 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indi /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count() @@ -4918,7 +4918,7 @@ public virtual CountResponse Count() /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(Action> configureRequest) @@ -4946,7 +4946,7 @@ public virtual CountResponse Count(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(CountRequestDescriptor descriptor) @@ -4972,7 +4972,7 @@ public virtual CountResponse Count(CountRequestDescriptor descriptor) /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices) @@ -4999,7 +4999,7 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indice /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -5027,7 +5027,7 @@ public virtual CountResponse Count(Elastic.Clients.Elasticsearch.Indices? indice /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count() @@ -5054,7 +5054,7 @@ public virtual CountResponse Count() /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(Action configureRequest) @@ -5082,7 +5082,7 @@ public virtual CountResponse Count(Action configureReque /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5107,7 +5107,7 @@ public virtual Task CountAsync(CountRequestDescriptor< /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -5133,7 +5133,7 @@ public virtual Task CountAsync(Elastic.Clients.Elastic /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5160,7 +5160,7 @@ public virtual Task CountAsync(Elastic.Clients.Elastic /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(CancellationToken cancellationToken = default) { @@ -5186,7 +5186,7 @@ public virtual Task CountAsync(CancellationToken cance /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -5213,7 +5213,7 @@ public virtual Task CountAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -5238,7 +5238,7 @@ public virtual Task CountAsync(CountRequestDescriptor descriptor, /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -5264,7 +5264,7 @@ public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indi /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -5291,7 +5291,7 @@ public virtual Task CountAsync(Elastic.Clients.Elasticsearch.Indi /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(CancellationToken cancellationToken = default) { @@ -5317,7 +5317,7 @@ public virtual Task CountAsync(CancellationToken cancellationToke /// For each shard ID group, a replica is chosen and the search is run against it. /// This means that replicas increase the scalability of the count. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CountAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -5398,7 +5398,7 @@ public virtual Task CountAsync(Action con /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -5432,7 +5432,7 @@ public virtual Task CountAsync(Action con /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(CreateRequest request) @@ -5512,7 +5512,7 @@ public virtual CreateResponse Create(CreateRequest request /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -5546,7 +5546,7 @@ public virtual CreateResponse Create(CreateRequest request /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateRequest request, CancellationToken cancellationToken = default) { @@ -5625,7 +5625,7 @@ public virtual Task CreateAsync(CreateRequestallow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -5659,7 +5659,7 @@ public virtual Task CreateAsync(CreateRequest_shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(CreateRequestDescriptor descriptor) @@ -5739,7 +5739,7 @@ public virtual CreateResponse Create(CreateRequestDescriptorallow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -5773,7 +5773,7 @@ public virtual CreateResponse Create(CreateRequestDescriptor_shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -5854,7 +5854,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -5888,7 +5888,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -5970,7 +5970,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6004,7 +6004,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document) @@ -6085,7 +6085,7 @@ public virtual CreateResponse Create(TDocument document) /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6119,7 +6119,7 @@ public virtual CreateResponse Create(TDocument document) /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Action> configureRequest) @@ -6201,7 +6201,7 @@ public virtual CreateResponse Create(TDocument document, Actionallow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6235,7 +6235,7 @@ public virtual CreateResponse Create(TDocument document, Action_shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -6316,7 +6316,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6350,7 +6350,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -6432,7 +6432,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6466,7 +6466,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -6547,7 +6547,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6581,7 +6581,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -6663,7 +6663,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6697,7 +6697,7 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -6776,7 +6776,7 @@ public virtual Task CreateAsync(CreateRequestDescript /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6810,7 +6810,7 @@ public virtual Task CreateAsync(CreateRequestDescript /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -6890,7 +6890,7 @@ public virtual Task CreateAsync(TDocument document, E /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -6924,7 +6924,7 @@ public virtual Task CreateAsync(TDocument document, E /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7005,7 +7005,7 @@ public virtual Task CreateAsync(TDocument document, E /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -7039,7 +7039,7 @@ public virtual Task CreateAsync(TDocument document, E /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -7119,7 +7119,7 @@ public virtual Task CreateAsync(TDocument document, C /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -7153,7 +7153,7 @@ public virtual Task CreateAsync(TDocument document, C /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7234,7 +7234,7 @@ public virtual Task CreateAsync(TDocument document, A /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -7268,7 +7268,7 @@ public virtual Task CreateAsync(TDocument document, A /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -7348,7 +7348,7 @@ public virtual Task CreateAsync(TDocument document, E /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -7382,7 +7382,7 @@ public virtual Task CreateAsync(TDocument document, E /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7463,7 +7463,7 @@ public virtual Task CreateAsync(TDocument document, E /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -7497,7 +7497,7 @@ public virtual Task CreateAsync(TDocument document, E /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -7577,7 +7577,7 @@ public virtual Task CreateAsync(TDocument document, E /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// /// - /// ** Distributed** + /// Distributed /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. @@ -7611,7 +7611,7 @@ public virtual Task CreateAsync(TDocument document, E /// After the write operation is underway, it is still possible for replication to fail on any number of shard copies but still succeed on the primary. /// The _shards section of the API response reveals the number of shard copies on which replication succeeded and failed. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -7675,7 +7675,7 @@ public virtual Task CreateAsync(TDocument document, E /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(DeleteRequest request) @@ -7738,7 +7738,7 @@ public virtual DeleteResponse Delete(DeleteRequest request) /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteRequest request, CancellationToken cancellationToken = default) { @@ -7800,7 +7800,7 @@ public virtual Task DeleteAsync(DeleteRequest request, Cancellat /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) @@ -7863,7 +7863,7 @@ public virtual DeleteResponse Delete(DeleteRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -7927,7 +7927,7 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.In /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -7992,7 +7992,7 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.In /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(TDocument document) @@ -8056,7 +8056,7 @@ public virtual DeleteResponse Delete(TDocument document) /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(TDocument document, Action> configureRequest) @@ -8121,7 +8121,7 @@ public virtual DeleteResponse Delete(TDocument document, Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -8185,7 +8185,7 @@ public virtual DeleteResponse Delete(TDocument document, Elastic.Clie /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -8250,7 +8250,7 @@ public virtual DeleteResponse Delete(TDocument document, Elastic.Clie /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -8314,7 +8314,7 @@ public virtual DeleteResponse Delete(TDocument document, Elastic.Clie /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -8379,7 +8379,7 @@ public virtual DeleteResponse Delete(TDocument document, Elastic.Clie /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) @@ -8443,7 +8443,7 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -8508,7 +8508,7 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) @@ -8571,7 +8571,7 @@ public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -8635,7 +8635,7 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName ind /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -8700,7 +8700,7 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName ind /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -8762,7 +8762,7 @@ public virtual Task DeleteAsync(DeleteRequestDescript /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -8825,7 +8825,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -8889,7 +8889,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -8952,7 +8952,7 @@ public virtual Task DeleteAsync(TDocument document, C /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9016,7 +9016,7 @@ public virtual Task DeleteAsync(TDocument document, A /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -9079,7 +9079,7 @@ public virtual Task DeleteAsync(TDocument document, E /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9143,7 +9143,7 @@ public virtual Task DeleteAsync(TDocument document, E /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9206,7 +9206,7 @@ public virtual Task DeleteAsync(TDocument document, E /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9270,7 +9270,7 @@ public virtual Task DeleteAsync(TDocument document, E /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9333,7 +9333,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -9397,7 +9397,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -9459,7 +9459,7 @@ public virtual Task DeleteAsync(DeleteRequestDescriptor descript /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -9522,7 +9522,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.In /// The delete operation gets hashed into a specific shard ID. /// It then gets redirected into the primary shard within that ID group and replicated (if needed) to shard replicas within that ID group. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -9683,7 +9683,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.In /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequest request) @@ -9843,7 +9843,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequest request) /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(DeleteByQueryRequest request, CancellationToken cancellationToken = default) { @@ -10002,7 +10002,7 @@ public virtual Task DeleteByQueryAsync(DeleteByQueryReque /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) @@ -10162,7 +10162,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryReque /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) @@ -10323,7 +10323,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.El /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -10485,7 +10485,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.El /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery() @@ -10646,7 +10646,7 @@ public virtual DeleteByQueryResponse DeleteByQuery() /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(Action> configureRequest) @@ -10808,7 +10808,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) @@ -10968,7 +10968,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescripto /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) @@ -11129,7 +11129,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -11291,7 +11291,7 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -11450,7 +11450,7 @@ public virtual Task DeleteByQueryAsync(DeleteB /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -11610,7 +11610,7 @@ public virtual Task DeleteByQueryAsync(Elastic /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -11771,7 +11771,7 @@ public virtual Task DeleteByQueryAsync(Elastic /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(CancellationToken cancellationToken = default) { @@ -11931,7 +11931,7 @@ public virtual Task DeleteByQueryAsync(Cancell /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12092,7 +12092,7 @@ public virtual Task DeleteByQueryAsync(Action< /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12251,7 +12251,7 @@ public virtual Task DeleteByQueryAsync(DeleteByQueryReque /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -12411,7 +12411,7 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El /// Cancellation should happen quickly but might take a few seconds. /// The get task status API will continue to list the delete by query task until this task checks that it has been cancelled and terminates itself. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12429,7 +12429,7 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) @@ -12446,7 +12446,7 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQ /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequest request, CancellationToken cancellationToken = default) { @@ -12462,7 +12462,7 @@ public virtual Task DeleteByQueryRethrottleAsyn /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequestDescriptor descriptor) @@ -12479,7 +12479,7 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQ /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId taskId) @@ -12497,7 +12497,7 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.C /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId taskId, Action configureRequest) @@ -12516,7 +12516,7 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.C /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12532,7 +12532,7 @@ public virtual Task DeleteByQueryRethrottleAsyn /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId taskId, CancellationToken cancellationToken = default) { @@ -12549,7 +12549,7 @@ public virtual Task DeleteByQueryRethrottleAsyn /// Change the number of requests per second for a particular delete by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12564,7 +12564,7 @@ public virtual Task DeleteByQueryRethrottleAsyn /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request) @@ -12578,7 +12578,7 @@ public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request) /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(DeleteScriptRequest request, CancellationToken cancellationToken = default) { @@ -12591,7 +12591,7 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequest /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) @@ -12605,7 +12605,7 @@ public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestD /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) @@ -12620,7 +12620,7 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elas /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -12636,7 +12636,7 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elas /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) @@ -12650,7 +12650,7 @@ public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor d /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) @@ -12665,7 +12665,7 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.I /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -12681,7 +12681,7 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.I /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12694,7 +12694,7 @@ public virtual Task DeleteScriptAsync(DeleteScr /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -12708,7 +12708,7 @@ public virtual Task DeleteScriptAsync(Elastic.C /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -12723,7 +12723,7 @@ public virtual Task DeleteScriptAsync(Elastic.C /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -12736,7 +12736,7 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequestD /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -12750,7 +12750,7 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas /// Delete a script or search template. /// Deletes a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -12786,7 +12786,7 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequest request) @@ -12821,7 +12821,7 @@ public virtual ExistsResponse Exists(ExistsRequest request) /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequest request, CancellationToken cancellationToken = default) { @@ -12855,7 +12855,7 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) @@ -12890,7 +12890,7 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -12926,7 +12926,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -12963,7 +12963,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(TDocument document) @@ -12999,7 +12999,7 @@ public virtual ExistsResponse Exists(TDocument document) /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(TDocument document, Action> configureRequest) @@ -13036,7 +13036,7 @@ public virtual ExistsResponse Exists(TDocument document, Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -13072,7 +13072,7 @@ public virtual ExistsResponse Exists(TDocument document, Elastic.Clie /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -13109,7 +13109,7 @@ public virtual ExistsResponse Exists(TDocument document, Elastic.Clie /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -13145,7 +13145,7 @@ public virtual ExistsResponse Exists(TDocument document, Elastic.Clie /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -13182,7 +13182,7 @@ public virtual ExistsResponse Exists(TDocument document, Elastic.Clie /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id) @@ -13218,7 +13218,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -13255,7 +13255,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) @@ -13290,7 +13290,7 @@ public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -13326,7 +13326,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName ind /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -13363,7 +13363,7 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName ind /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13397,7 +13397,7 @@ public virtual Task ExistsAsync(ExistsRequestDescript /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -13432,7 +13432,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13468,7 +13468,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -13503,7 +13503,7 @@ public virtual Task ExistsAsync(TDocument document, C /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13539,7 +13539,7 @@ public virtual Task ExistsAsync(TDocument document, A /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -13574,7 +13574,7 @@ public virtual Task ExistsAsync(TDocument document, E /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13610,7 +13610,7 @@ public virtual Task ExistsAsync(TDocument document, E /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -13645,7 +13645,7 @@ public virtual Task ExistsAsync(TDocument document, E /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13681,7 +13681,7 @@ public virtual Task ExistsAsync(TDocument document, E /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -13716,7 +13716,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -13752,7 +13752,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -13786,7 +13786,7 @@ public virtual Task ExistsAsync(ExistsRequestDescriptor descript /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -13821,7 +13821,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -13845,7 +13845,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequest request) @@ -13868,7 +13868,7 @@ public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequest request) /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(ExistsSourceRequest request, CancellationToken cancellationToken = default) { @@ -13890,7 +13890,7 @@ public virtual Task ExistsSourceAsync(ExistsSourceRequest /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) @@ -13913,7 +13913,7 @@ public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestD /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -13937,7 +13937,7 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -13962,7 +13962,7 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(TDocument document) @@ -13986,7 +13986,7 @@ public virtual ExistsSourceResponse ExistsSource(TDocument document) /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(TDocument document, Action> configureRequest) @@ -14011,7 +14011,7 @@ public virtual ExistsSourceResponse ExistsSource(TDocument document, /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -14035,7 +14035,7 @@ public virtual ExistsSourceResponse ExistsSource(TDocument document, /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -14060,7 +14060,7 @@ public virtual ExistsSourceResponse ExistsSource(TDocument document, /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -14084,7 +14084,7 @@ public virtual ExistsSourceResponse ExistsSource(TDocument document, /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14109,7 +14109,7 @@ public virtual ExistsSourceResponse ExistsSource(TDocument document, /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id) @@ -14133,7 +14133,7 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14158,7 +14158,7 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) @@ -14181,7 +14181,7 @@ public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor d /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -14205,7 +14205,7 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.I /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -14230,7 +14230,7 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.I /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14252,7 +14252,7 @@ public virtual Task ExistsSourceAsync(ExistsSou /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14275,7 +14275,7 @@ public virtual Task ExistsSourceAsync(Elastic.C /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14299,7 +14299,7 @@ public virtual Task ExistsSourceAsync(Elastic.C /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -14322,7 +14322,7 @@ public virtual Task ExistsSourceAsync(TDocument /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14346,7 +14346,7 @@ public virtual Task ExistsSourceAsync(TDocument /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -14369,7 +14369,7 @@ public virtual Task ExistsSourceAsync(TDocument /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14393,7 +14393,7 @@ public virtual Task ExistsSourceAsync(TDocument /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14416,7 +14416,7 @@ public virtual Task ExistsSourceAsync(TDocument /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14440,7 +14440,7 @@ public virtual Task ExistsSourceAsync(TDocument /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14463,7 +14463,7 @@ public virtual Task ExistsSourceAsync(Elastic.C /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14487,7 +14487,7 @@ public virtual Task ExistsSourceAsync(Elastic.C /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14509,7 +14509,7 @@ public virtual Task ExistsSourceAsync(ExistsSourceRequestD /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14532,7 +14532,7 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas /// /// A document's source is not available if it is disabled in the mapping. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -14548,7 +14548,7 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(ExplainRequest request) @@ -14563,7 +14563,7 @@ public virtual ExplainResponse Explain(ExplainRequest requ /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(ExplainRequest request, CancellationToken cancellationToken = default) { @@ -14577,7 +14577,7 @@ public virtual Task> ExplainAsync(ExplainR /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(ExplainRequestDescriptor descriptor) @@ -14592,7 +14592,7 @@ public virtual ExplainResponse Explain(ExplainRequestDescr /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -14608,7 +14608,7 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14625,7 +14625,7 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(TDocument document) @@ -14641,7 +14641,7 @@ public virtual ExplainResponse Explain(TDocument document) /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(TDocument document, Action> configureRequest) @@ -14658,7 +14658,7 @@ public virtual ExplainResponse Explain(TDocument document, /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -14674,7 +14674,7 @@ public virtual ExplainResponse Explain(TDocument document, /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -14691,7 +14691,7 @@ public virtual ExplainResponse Explain(TDocument document, /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -14707,7 +14707,7 @@ public virtual ExplainResponse Explain(TDocument document, /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14724,7 +14724,7 @@ public virtual ExplainResponse Explain(TDocument document, /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id) @@ -14740,7 +14740,7 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -14757,7 +14757,7 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(ExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -14771,7 +14771,7 @@ public virtual Task> ExplainAsync(ExplainR /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14786,7 +14786,7 @@ public virtual Task> ExplainAsync(Elastic. /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14802,7 +14802,7 @@ public virtual Task> ExplainAsync(Elastic. /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -14817,7 +14817,7 @@ public virtual Task> ExplainAsync(TDocumen /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14833,7 +14833,7 @@ public virtual Task> ExplainAsync(TDocumen /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -14848,7 +14848,7 @@ public virtual Task> ExplainAsync(TDocumen /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14864,7 +14864,7 @@ public virtual Task> ExplainAsync(TDocumen /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14879,7 +14879,7 @@ public virtual Task> ExplainAsync(TDocumen /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14895,7 +14895,7 @@ public virtual Task> ExplainAsync(TDocumen /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -14910,7 +14910,7 @@ public virtual Task> ExplainAsync(Elastic. /// Get information about why a specific document matches, or doesn't match, a query. /// It computes a score explanation for a query and a specific document. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -14932,7 +14932,7 @@ public virtual Task> ExplainAsync(Elastic. /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) @@ -14953,7 +14953,7 @@ public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(FieldCapsRequest request, CancellationToken cancellationToken = default) { @@ -14973,7 +14973,7 @@ public virtual Task FieldCapsAsync(FieldCapsRequest request, /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) @@ -14994,7 +14994,7 @@ public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices) @@ -15016,7 +15016,7 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsea /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -15039,7 +15039,7 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsea /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps() @@ -15061,7 +15061,7 @@ public virtual FieldCapsResponse FieldCaps() /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(Action> configureRequest) @@ -15084,7 +15084,7 @@ public virtual FieldCapsResponse FieldCaps(Actionkeyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) @@ -15105,7 +15105,7 @@ public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices) @@ -15127,7 +15127,7 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -15150,7 +15150,7 @@ public virtual FieldCapsResponse FieldCaps(Elastic.Clients.Elasticsearch.Indices /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps() @@ -15172,7 +15172,7 @@ public virtual FieldCapsResponse FieldCaps() /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(Action configureRequest) @@ -15195,7 +15195,7 @@ public virtual FieldCapsResponse FieldCaps(Action co /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15215,7 +15215,7 @@ public virtual Task FieldCapsAsync(FieldCapsReques /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -15236,7 +15236,7 @@ public virtual Task FieldCapsAsync(Elastic.Clients /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15258,7 +15258,7 @@ public virtual Task FieldCapsAsync(Elastic.Clients /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) { @@ -15279,7 +15279,7 @@ public virtual Task FieldCapsAsync(CancellationTok /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -15301,7 +15301,7 @@ public virtual Task FieldCapsAsync(Actionkeyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -15321,7 +15321,7 @@ public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -15342,7 +15342,7 @@ public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsea /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -15364,7 +15364,7 @@ public virtual Task FieldCapsAsync(Elastic.Clients.Elasticsea /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) { @@ -15385,7 +15385,7 @@ public virtual Task FieldCapsAsync(CancellationToken cancella /// It returns runtime fields like any other field. /// For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the keyword family. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FieldCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -15466,7 +15466,7 @@ public virtual Task FieldCapsAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(GetRequest request) @@ -15546,7 +15546,7 @@ public virtual GetResponse Get(GetRequest request) /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetRequest request, CancellationToken cancellationToken = default) { @@ -15625,7 +15625,7 @@ public virtual Task> GetAsync(GetRequest reque /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(GetRequestDescriptor descriptor) @@ -15705,7 +15705,7 @@ public virtual GetResponse Get(GetRequestDescriptor - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -15786,7 +15786,7 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -15868,7 +15868,7 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(TDocument document) @@ -15949,7 +15949,7 @@ public virtual GetResponse Get(TDocument document) /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(TDocument document, Action> configureRequest) @@ -16031,7 +16031,7 @@ public virtual GetResponse Get(TDocument document, Action< /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -16112,7 +16112,7 @@ public virtual GetResponse Get(TDocument document, Elastic /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -16194,7 +16194,7 @@ public virtual GetResponse Get(TDocument document, Elastic /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -16275,7 +16275,7 @@ public virtual GetResponse Get(TDocument document, Elastic /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -16357,7 +16357,7 @@ public virtual GetResponse Get(TDocument document, Elastic /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id) @@ -16438,7 +16438,7 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -16520,7 +16520,7 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -16599,7 +16599,7 @@ public virtual Task> GetAsync(GetRequestDescri /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -16679,7 +16679,7 @@ public virtual Task> GetAsync(Elastic.Clients. /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -16760,7 +16760,7 @@ public virtual Task> GetAsync(Elastic.Clients. /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -16840,7 +16840,7 @@ public virtual Task> GetAsync(TDocument docume /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -16921,7 +16921,7 @@ public virtual Task> GetAsync(TDocument docume /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -17001,7 +17001,7 @@ public virtual Task> GetAsync(TDocument docume /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17082,7 +17082,7 @@ public virtual Task> GetAsync(TDocument docume /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -17162,7 +17162,7 @@ public virtual Task> GetAsync(TDocument docume /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17243,7 +17243,7 @@ public virtual Task> GetAsync(TDocument docume /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -17323,7 +17323,7 @@ public virtual Task> GetAsync(Elastic.Clients. /// The old version of the document doesn't disappear immediately, although you won't be able to access it. /// Elasticsearch cleans up deleted documents in the background as you continue to index more data. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17338,7 +17338,7 @@ public virtual Task> GetAsync(Elastic.Clients. /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(GetScriptRequest request) @@ -17352,7 +17352,7 @@ public virtual GetScriptResponse GetScript(GetScriptRequest request) /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(GetScriptRequest request, CancellationToken cancellationToken = default) { @@ -17365,7 +17365,7 @@ public virtual Task GetScriptAsync(GetScriptRequest request, /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) @@ -17379,7 +17379,7 @@ public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) @@ -17394,7 +17394,7 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsea /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -17410,7 +17410,7 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsea /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) @@ -17424,7 +17424,7 @@ public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) @@ -17439,7 +17439,7 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -17455,7 +17455,7 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17468,7 +17468,7 @@ public virtual Task GetScriptAsync(GetScriptReques /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -17482,7 +17482,7 @@ public virtual Task GetScriptAsync(Elastic.Clients /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -17497,7 +17497,7 @@ public virtual Task GetScriptAsync(Elastic.Clients /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17510,7 +17510,7 @@ public virtual Task GetScriptAsync(GetScriptRequestDescriptor /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -17524,7 +17524,7 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea /// Get a script or search template. /// Retrieves a stored script or search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -17541,7 +17541,7 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest request) @@ -17557,7 +17557,7 @@ public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptContextAsync(GetScriptContextRequest request, CancellationToken cancellationToken = default) { @@ -17572,7 +17572,7 @@ public virtual Task GetScriptContextAsync(GetScriptCon /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequestDescriptor descriptor) @@ -17588,7 +17588,7 @@ public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptContextResponse GetScriptContext() @@ -17605,7 +17605,7 @@ public virtual GetScriptContextResponse GetScriptContext() /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptContextResponse GetScriptContext(Action configureRequest) @@ -17623,7 +17623,7 @@ public virtual GetScriptContextResponse GetScriptContext(Action /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptContextAsync(GetScriptContextRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17638,7 +17638,7 @@ public virtual Task GetScriptContextAsync(GetScriptCon /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptContextAsync(CancellationToken cancellationToken = default) { @@ -17654,7 +17654,7 @@ public virtual Task GetScriptContextAsync(Cancellation /// /// Get a list of supported script contexts and their methods. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptContextAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -17671,7 +17671,7 @@ public virtual Task GetScriptContextAsync(Action /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequest request) @@ -17687,7 +17687,7 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesR /// /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequest request, CancellationToken cancellationToken = default) { @@ -17702,7 +17702,7 @@ public virtual Task GetScriptLanguagesAsync(GetScrip /// /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequestDescriptor descriptor) @@ -17718,7 +17718,7 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesR /// /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptLanguagesResponse GetScriptLanguages() @@ -17735,7 +17735,7 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages() /// /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptLanguagesResponse GetScriptLanguages(Action configureRequest) @@ -17753,7 +17753,7 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(Action /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -17768,7 +17768,7 @@ public virtual Task GetScriptLanguagesAsync(GetScrip /// /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptLanguagesAsync(CancellationToken cancellationToken = default) { @@ -17784,7 +17784,7 @@ public virtual Task GetScriptLanguagesAsync(Cancella /// /// Get a list of available script types, languages, and contexts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetScriptLanguagesAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -17811,7 +17811,7 @@ public virtual Task GetScriptLanguagesAsync(Action /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(GetSourceRequest request) @@ -17837,7 +17837,7 @@ public virtual GetSourceResponse GetSource(GetSourceReques /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(GetSourceRequest request, CancellationToken cancellationToken = default) { @@ -17862,7 +17862,7 @@ public virtual Task> GetSourceAsync(GetS /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(GetSourceRequestDescriptor descriptor) @@ -17888,7 +17888,7 @@ public virtual GetSourceResponse GetSource(GetSourceReques /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -17915,7 +17915,7 @@ public virtual GetSourceResponse GetSource(Elastic.Clients /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -17943,7 +17943,7 @@ public virtual GetSourceResponse GetSource(Elastic.Clients /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(TDocument document) @@ -17970,7 +17970,7 @@ public virtual GetSourceResponse GetSource(TDocument docum /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(TDocument document, Action> configureRequest) @@ -17998,7 +17998,7 @@ public virtual GetSourceResponse GetSource(TDocument docum /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -18025,7 +18025,7 @@ public virtual GetSourceResponse GetSource(TDocument docum /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -18053,7 +18053,7 @@ public virtual GetSourceResponse GetSource(TDocument docum /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -18080,7 +18080,7 @@ public virtual GetSourceResponse GetSource(TDocument docum /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -18108,7 +18108,7 @@ public virtual GetSourceResponse GetSource(TDocument docum /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id) @@ -18135,7 +18135,7 @@ public virtual GetSourceResponse GetSource(Elastic.Clients /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -18163,7 +18163,7 @@ public virtual GetSourceResponse GetSource(Elastic.Clients /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(GetSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -18188,7 +18188,7 @@ public virtual Task> GetSourceAsync(GetS /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -18214,7 +18214,7 @@ public virtual Task> GetSourceAsync(Elas /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18241,7 +18241,7 @@ public virtual Task> GetSourceAsync(Elas /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -18267,7 +18267,7 @@ public virtual Task> GetSourceAsync(TDoc /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18294,7 +18294,7 @@ public virtual Task> GetSourceAsync(TDoc /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -18320,7 +18320,7 @@ public virtual Task> GetSourceAsync(TDoc /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18347,7 +18347,7 @@ public virtual Task> GetSourceAsync(TDoc /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -18373,7 +18373,7 @@ public virtual Task> GetSourceAsync(TDoc /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18400,7 +18400,7 @@ public virtual Task> GetSourceAsync(TDoc /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -18426,7 +18426,7 @@ public virtual Task> GetSourceAsync(Elas /// /// GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -18462,7 +18462,7 @@ public virtual Task> GetSourceAsync(Elas /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport(HealthReportRequest request) @@ -18497,7 +18497,7 @@ public virtual HealthReportResponse HealthReport(HealthReportRequest request) /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthReportAsync(HealthReportRequest request, CancellationToken cancellationToken = default) { @@ -18531,7 +18531,7 @@ public virtual Task HealthReportAsync(HealthReportRequest /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport(HealthReportRequestDescriptor descriptor) @@ -18566,7 +18566,7 @@ public virtual HealthReportResponse HealthReport(HealthReportRequestDescriptor d /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport(IReadOnlyCollection? feature) @@ -18602,7 +18602,7 @@ public virtual HealthReportResponse HealthReport(IReadOnlyCollection? fe /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport(IReadOnlyCollection? feature, Action configureRequest) @@ -18639,7 +18639,7 @@ public virtual HealthReportResponse HealthReport(IReadOnlyCollection? fe /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport() @@ -18675,7 +18675,7 @@ public virtual HealthReportResponse HealthReport() /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport(Action configureRequest) @@ -18712,7 +18712,7 @@ public virtual HealthReportResponse HealthReport(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthReportAsync(HealthReportRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -18746,7 +18746,7 @@ public virtual Task HealthReportAsync(HealthReportRequestD /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthReportAsync(IReadOnlyCollection? feature, CancellationToken cancellationToken = default) { @@ -18781,7 +18781,7 @@ public virtual Task HealthReportAsync(IReadOnlyCollection< /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthReportAsync(IReadOnlyCollection? feature, Action configureRequest, CancellationToken cancellationToken = default) { @@ -18817,7 +18817,7 @@ public virtual Task HealthReportAsync(IReadOnlyCollection< /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthReportAsync(CancellationToken cancellationToken = default) { @@ -18852,7 +18852,7 @@ public virtual Task HealthReportAsync(CancellationToken ca /// NOTE: The health indicators perform root cause analysis of non-green health statuses. This can be computationally expensive when called frequently. /// When setting up automated polling of the API for health status, set verbose to false to disable the more expensive analysis logic. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthReportAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -18949,13 +18949,9 @@ public virtual Task HealthReportAsync(Action /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -19033,7 +19029,7 @@ public virtual Task HealthReportAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(IndexRequest request) @@ -19129,13 +19125,9 @@ public virtual IndexResponse Index(IndexRequest request) /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -19213,7 +19205,7 @@ public virtual IndexResponse Index(IndexRequest request) /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(IndexRequest request, CancellationToken cancellationToken = default) { @@ -19308,13 +19300,9 @@ public virtual Task IndexAsync(IndexRequest /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -19392,7 +19380,7 @@ public virtual Task IndexAsync(IndexRequest /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(IndexRequestDescriptor descriptor) @@ -19488,13 +19476,9 @@ public virtual IndexResponse Index(IndexRequestDescriptor /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -19572,7 +19556,7 @@ public virtual IndexResponse Index(IndexRequestDescriptor /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) @@ -19669,13 +19653,9 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -19753,7 +19733,7 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -19851,13 +19831,9 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -19935,7 +19911,7 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document) @@ -20032,13 +20008,9 @@ public virtual IndexResponse Index(TDocument document) /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -20116,7 +20088,7 @@ public virtual IndexResponse Index(TDocument document) /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Action> configureRequest) @@ -20214,13 +20186,9 @@ public virtual IndexResponse Index(TDocument document, Action /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -20298,7 +20266,7 @@ public virtual IndexResponse Index(TDocument document, Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -20395,13 +20363,9 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -20479,7 +20443,7 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -20577,13 +20541,9 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -20661,7 +20621,7 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.Id? id) @@ -20758,13 +20718,9 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -20842,7 +20798,7 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -20940,13 +20896,9 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -21024,7 +20976,7 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(IndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -21119,13 +21071,9 @@ public virtual Task IndexAsync(IndexRequestDescriptor< /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -21203,7 +21151,7 @@ public virtual Task IndexAsync(IndexRequestDescriptor< /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -21299,13 +21247,9 @@ public virtual Task IndexAsync(TDocument document, Ela /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -21383,7 +21327,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -21480,13 +21424,9 @@ public virtual Task IndexAsync(TDocument document, Ela /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -21564,7 +21504,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -21660,13 +21600,9 @@ public virtual Task IndexAsync(TDocument document, Can /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -21744,7 +21680,7 @@ public virtual Task IndexAsync(TDocument document, Can /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -21841,13 +21777,9 @@ public virtual Task IndexAsync(TDocument document, Act /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -21925,7 +21857,7 @@ public virtual Task IndexAsync(TDocument document, Act /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -22021,13 +21953,9 @@ public virtual Task IndexAsync(TDocument document, Ela /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -22105,7 +22033,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -22202,13 +22130,9 @@ public virtual Task IndexAsync(TDocument document, Ela /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -22286,7 +22210,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -22382,13 +22306,9 @@ public virtual Task IndexAsync(TDocument document, Ela /// /// NOTE: Data streams do not support custom routing unless they were created with the allow_custom_routing setting enabled in the template. /// - /// - /// /// - /// ** Distributed** + /// Distributed /// - /// - /// /// /// The index operation is directed to the primary shard based on its route and performed on the actual node containing this shard. /// After the primary shard completes the operation, if needed, the update is distributed to applicable replicas. @@ -22466,7 +22386,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// A nice side effect is that there is no need to maintain strict ordering of async indexing operations run as a result of changes to a source database, as long as version numbers from the source database are used. /// Even the simple case of updating the Elasticsearch index using data from a database is simplified if external versioning is used, as only the latest version will be used if the index operations arrive out of order. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -22481,7 +22401,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InfoResponse Info(InfoRequest request) @@ -22495,7 +22415,7 @@ public virtual InfoResponse Info(InfoRequest request) /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(InfoRequest request, CancellationToken cancellationToken = default) { @@ -22508,7 +22428,7 @@ public virtual Task InfoAsync(InfoRequest request, CancellationTok /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InfoResponse Info(InfoRequestDescriptor descriptor) @@ -22522,7 +22442,7 @@ public virtual InfoResponse Info(InfoRequestDescriptor descriptor) /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InfoResponse Info() @@ -22537,7 +22457,7 @@ public virtual InfoResponse Info() /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InfoResponse Info(Action configureRequest) @@ -22553,7 +22473,7 @@ public virtual InfoResponse Info(Action configureRequest) /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(InfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -22566,7 +22486,7 @@ public virtual Task InfoAsync(InfoRequestDescriptor descriptor, Ca /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { @@ -22580,7 +22500,7 @@ public virtual Task InfoAsync(CancellationToken cancellationToken /// Get cluster info. /// Get basic build, version, and cluster information. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -22608,7 +22528,7 @@ public virtual Task InfoAsync(Action config /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest request) @@ -22635,7 +22555,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest req /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(MultiTermVectorsRequest request, CancellationToken cancellationToken = default) { @@ -22661,7 +22581,7 @@ public virtual Task MtermvectorsAsync(MultiTermVectors /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDescriptor descriptor) @@ -22688,7 +22608,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectors /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index) @@ -22716,7 +22636,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients. /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -22745,7 +22665,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients. /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors() @@ -22773,7 +22693,7 @@ public virtual MultiTermVectorsResponse Mtermvectors() /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(Action> configureRequest) @@ -22802,7 +22722,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(Actionmtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDescriptor descriptor) @@ -22829,7 +22749,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequestDesc /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index) @@ -22857,7 +22777,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsear /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest) @@ -22886,7 +22806,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsear /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors() @@ -22914,7 +22834,7 @@ public virtual MultiTermVectorsResponse Mtermvectors() /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(Action configureRequest) @@ -22943,7 +22863,7 @@ public virtual MultiTermVectorsResponse Mtermvectors(Actionmtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -22969,7 +22889,7 @@ public virtual Task MtermvectorsAsync(Multi /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -22996,7 +22916,7 @@ public virtual Task MtermvectorsAsync(Elast /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23024,7 +22944,7 @@ public virtual Task MtermvectorsAsync(Elast /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) { @@ -23051,7 +22971,7 @@ public virtual Task MtermvectorsAsync(Cance /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23079,7 +22999,7 @@ public virtual Task MtermvectorsAsync(Actio /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -23105,7 +23025,7 @@ public virtual Task MtermvectorsAsync(MultiTermVectors /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -23132,7 +23052,7 @@ public virtual Task MtermvectorsAsync(Elastic.Clients. /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -23160,7 +23080,7 @@ public virtual Task MtermvectorsAsync(Elastic.Clients. /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(CancellationToken cancellationToken = default) { @@ -23187,7 +23107,7 @@ public virtual Task MtermvectorsAsync(CancellationToke /// You can also use mtermvectors to generate term vectors for artificial documents provided in the body of the request. /// The mapping used is determined by the specified _index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task MtermvectorsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -23222,7 +23142,7 @@ public virtual Task MtermvectorsAsync(Actionstored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet(MultiGetRequest request) @@ -23256,7 +23176,7 @@ public virtual MultiGetResponse MultiGet(MultiGetRequest r /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiGetAsync(MultiGetRequest request, CancellationToken cancellationToken = default) { @@ -23289,7 +23209,7 @@ public virtual Task> MultiGetAsync(MultiG /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet(MultiGetRequestDescriptor descriptor) @@ -23323,7 +23243,7 @@ public virtual MultiGetResponse MultiGet(MultiGetRequestDe /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet(Elastic.Clients.Elasticsearch.IndexName? index) @@ -23358,7 +23278,7 @@ public virtual MultiGetResponse MultiGet(Elastic.Clients.E /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest) @@ -23394,7 +23314,7 @@ public virtual MultiGetResponse MultiGet(Elastic.Clients.E /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet() @@ -23429,7 +23349,7 @@ public virtual MultiGetResponse MultiGet() /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet(Action> configureRequest) @@ -23465,7 +23385,7 @@ public virtual MultiGetResponse MultiGet(Actionstored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiGetAsync(MultiGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -23498,7 +23418,7 @@ public virtual Task> MultiGetAsync(MultiG /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.IndexName? index, CancellationToken cancellationToken = default) { @@ -23532,7 +23452,7 @@ public virtual Task> MultiGetAsync(Elasti /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiGetAsync(Elastic.Clients.Elasticsearch.IndexName? index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23567,7 +23487,7 @@ public virtual Task> MultiGetAsync(Elasti /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiGetAsync(CancellationToken cancellationToken = default) { @@ -23601,7 +23521,7 @@ public virtual Task> MultiGetAsync(Cancel /// Any requested fields that are not stored are ignored. /// You can include the stored_fields query parameter in the request URI to specify the defaults to use when there are no per-document instructions. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiGetAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23633,7 +23553,7 @@ public virtual Task> MultiGetAsync(Action /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(MultiSearchRequest request) @@ -23664,7 +23584,7 @@ public virtual MultiSearchResponse MultiSearch(MultiSearch /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchAsync(MultiSearchRequest request, CancellationToken cancellationToken = default) { @@ -23694,7 +23614,7 @@ public virtual Task> MultiSearchAsync( /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(MultiSearchRequestDescriptor descriptor) @@ -23725,7 +23645,7 @@ public virtual MultiSearchResponse MultiSearch(MultiSearch /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices) @@ -23757,7 +23677,7 @@ public virtual MultiSearchResponse MultiSearch(Elastic.Cli /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -23790,7 +23710,7 @@ public virtual MultiSearchResponse MultiSearch(Elastic.Cli /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch() @@ -23822,7 +23742,7 @@ public virtual MultiSearchResponse MultiSearch() /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(Action> configureRequest) @@ -23855,7 +23775,7 @@ public virtual MultiSearchResponse MultiSearch(Action\r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -23885,7 +23805,7 @@ public virtual Task> MultiSearchAsync( /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -23916,7 +23836,7 @@ public virtual Task> MultiSearchAsync( /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -23948,7 +23868,7 @@ public virtual Task> MultiSearchAsync( /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) { @@ -23979,7 +23899,7 @@ public virtual Task> MultiSearchAsync( /// Each newline character may be preceded by a carriage return \r. /// When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -24007,7 +23927,7 @@ public virtual Task> MultiSearchAsync( /// /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequest request) @@ -24034,7 +23954,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequest request, CancellationToken cancellationToken = default) { @@ -24060,7 +23980,7 @@ public virtual Task> MultiSearchTemplateA /// /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequestDescriptor descriptor) @@ -24087,7 +24007,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) @@ -24115,7 +24035,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -24144,7 +24064,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate() @@ -24172,7 +24092,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate(Action> configureRequest) @@ -24201,7 +24121,7 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -24227,7 +24147,7 @@ public virtual Task> MultiSearchTemplateA /// /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -24254,7 +24174,7 @@ public virtual Task> MultiSearchTemplateA /// /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -24282,7 +24202,7 @@ public virtual Task> MultiSearchTemplateA /// /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) { @@ -24309,7 +24229,7 @@ public virtual Task> MultiSearchTemplateA /// /// $ curl -H "Content-Type: application/x-ndjson" -XGET localhost:9200/_msearch/template --data-binary "@requests"; echo /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -24370,7 +24290,7 @@ public virtual Task> MultiSearchTemplateA /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) @@ -24430,7 +24350,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest re /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -24489,7 +24409,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) @@ -24549,7 +24469,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) @@ -24610,7 +24530,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -24672,7 +24592,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime() @@ -24733,7 +24653,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime() /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Action> configureRequest) @@ -24795,7 +24715,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) @@ -24855,7 +24775,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDes /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) @@ -24916,7 +24836,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -24978,7 +24898,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25037,7 +24957,7 @@ public virtual Task OpenPointInTimeAsync(Ope /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -25097,7 +25017,7 @@ public virtual Task OpenPointInTimeAsync(Ela /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -25158,7 +25078,7 @@ public virtual Task OpenPointInTimeAsync(Ela /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(CancellationToken cancellationToken = default) { @@ -25218,7 +25138,7 @@ public virtual Task OpenPointInTimeAsync(Can /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -25279,7 +25199,7 @@ public virtual Task OpenPointInTimeAsync(Act /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25338,7 +25258,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -25398,7 +25318,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// Note that a point-in-time doesn't prevent its associated indices from being deleted. /// You can check how many point-in-times (that is, search contexts) are open with the nodes stats API. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -25413,7 +25333,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PingResponse Ping(PingRequest request) @@ -25427,7 +25347,7 @@ public virtual PingResponse Ping(PingRequest request) /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PingAsync(PingRequest request, CancellationToken cancellationToken = default) { @@ -25440,7 +25360,7 @@ public virtual Task PingAsync(PingRequest request, CancellationTok /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PingResponse Ping(PingRequestDescriptor descriptor) @@ -25454,7 +25374,7 @@ public virtual PingResponse Ping(PingRequestDescriptor descriptor) /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PingResponse Ping() @@ -25469,7 +25389,7 @@ public virtual PingResponse Ping() /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PingResponse Ping(Action configureRequest) @@ -25485,7 +25405,7 @@ public virtual PingResponse Ping(Action configureRequest) /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PingAsync(PingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25498,7 +25418,7 @@ public virtual Task PingAsync(PingRequestDescriptor descriptor, Ca /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PingAsync(CancellationToken cancellationToken = default) { @@ -25512,7 +25432,7 @@ public virtual Task PingAsync(CancellationToken cancellationToken /// Ping the cluster. /// Get information about whether the cluster is running. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PingAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -25527,7 +25447,7 @@ public virtual Task PingAsync(Action config /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(PutScriptRequest request) @@ -25541,7 +25461,7 @@ public virtual PutScriptResponse PutScript(PutScriptRequest request) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(PutScriptRequest request, CancellationToken cancellationToken = default) { @@ -25554,7 +25474,7 @@ public virtual Task PutScriptAsync(PutScriptRequest request, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) @@ -25568,7 +25488,7 @@ public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) @@ -25583,7 +25503,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest) @@ -25599,7 +25519,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) @@ -25614,7 +25534,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -25630,7 +25550,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) @@ -25644,7 +25564,7 @@ public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context) @@ -25659,7 +25579,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest) @@ -25675,7 +25595,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) @@ -25690,7 +25610,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) @@ -25706,7 +25626,7 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25719,7 +25639,7 @@ public virtual Task PutScriptAsync(PutScriptReques /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) { @@ -25733,7 +25653,7 @@ public virtual Task PutScriptAsync(Elastic.Clients /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -25748,7 +25668,7 @@ public virtual Task PutScriptAsync(Elastic.Clients /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -25762,7 +25682,7 @@ public virtual Task PutScriptAsync(Elastic.Clients /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -25777,7 +25697,7 @@ public virtual Task PutScriptAsync(Elastic.Clients /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -25790,7 +25710,7 @@ public virtual Task PutScriptAsync(PutScriptRequestDescriptor /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, CancellationToken cancellationToken = default) { @@ -25804,7 +25724,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Elasticsearch.Name? context, Action configureRequest, CancellationToken cancellationToken = default) { @@ -25819,7 +25739,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -25833,7 +25753,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// 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. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -25850,7 +25770,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(RankEvalRequest request) @@ -25866,7 +25786,7 @@ public virtual RankEvalResponse RankEval(RankEvalRequest request) /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(RankEvalRequest request, CancellationToken cancellationToken = default) { @@ -25881,7 +25801,7 @@ public virtual Task RankEvalAsync(RankEvalRequest request, Can /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) @@ -25897,7 +25817,7 @@ public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices) @@ -25914,7 +25834,7 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearc /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -25932,7 +25852,7 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearc /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval() @@ -25949,7 +25869,7 @@ public virtual RankEvalResponse RankEval() /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(Action> configureRequest) @@ -25967,7 +25887,7 @@ public virtual RankEvalResponse RankEval(Action /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) @@ -25983,7 +25903,7 @@ public virtual RankEvalResponse RankEval(RankEvalRequestDescriptor descriptor) /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices) @@ -26000,7 +25920,7 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -26018,7 +25938,7 @@ public virtual RankEvalResponse RankEval(Elastic.Clients.Elasticsearch.Indices? /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval() @@ -26035,7 +25955,7 @@ public virtual RankEvalResponse RankEval() /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(Action configureRequest) @@ -26053,7 +25973,7 @@ public virtual RankEvalResponse RankEval(Action confi /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -26068,7 +25988,7 @@ public virtual Task RankEvalAsync(RankEvalRequestDe /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -26084,7 +26004,7 @@ public virtual Task RankEvalAsync(Elastic.Clients.E /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -26101,7 +26021,7 @@ public virtual Task RankEvalAsync(Elastic.Clients.E /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) { @@ -26117,7 +26037,7 @@ public virtual Task RankEvalAsync(CancellationToken /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -26134,7 +26054,7 @@ public virtual Task RankEvalAsync(Action /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -26149,7 +26069,7 @@ public virtual Task RankEvalAsync(RankEvalRequestDescriptor de /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -26165,7 +26085,7 @@ public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearc /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -26182,7 +26102,7 @@ public virtual Task RankEvalAsync(Elastic.Clients.Elasticsearc /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(CancellationToken cancellationToken = default) { @@ -26198,7 +26118,7 @@ public virtual Task RankEvalAsync(CancellationToken cancellati /// /// Evaluate the quality of ranked search results over a set of typical search queries. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RankEvalAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -26313,7 +26233,7 @@ public virtual Task RankEvalAsync(Action /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -26500,7 +26420,7 @@ public virtual Task RankEvalAsync(Actionelasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex(ReindexRequest request) @@ -26614,7 +26534,7 @@ public virtual ReindexResponse Reindex(ReindexRequest request) /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -26801,7 +26721,7 @@ public virtual ReindexResponse Reindex(ReindexRequest request) /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(ReindexRequest request, CancellationToken cancellationToken = default) { @@ -26914,7 +26834,7 @@ public virtual Task ReindexAsync(ReindexRequest request, Cancel /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -27101,7 +27021,7 @@ public virtual Task ReindexAsync(ReindexRequest request, Cancel /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) @@ -27215,7 +27135,7 @@ public virtual ReindexResponse Reindex(ReindexRequestDescriptor /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -27402,7 +27322,7 @@ public virtual ReindexResponse Reindex(ReindexRequestDescriptorelasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex() @@ -27517,7 +27437,7 @@ public virtual ReindexResponse Reindex() /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -27704,7 +27624,7 @@ public virtual ReindexResponse Reindex() /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex(Action> configureRequest) @@ -27820,7 +27740,7 @@ public virtual ReindexResponse Reindex(Action /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -28007,7 +27927,7 @@ public virtual ReindexResponse Reindex(Actionelasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) @@ -28121,7 +28041,7 @@ public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -28308,7 +28228,7 @@ public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex() @@ -28423,7 +28343,7 @@ public virtual ReindexResponse Reindex() /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -28610,7 +28530,7 @@ public virtual ReindexResponse Reindex() /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex(Action configureRequest) @@ -28726,7 +28646,7 @@ public virtual ReindexResponse Reindex(Action configur /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -28913,7 +28833,7 @@ public virtual ReindexResponse Reindex(Action configur /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -29026,7 +28946,7 @@ public virtual Task ReindexAsync(ReindexRequestDescr /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -29213,7 +29133,7 @@ public virtual Task ReindexAsync(ReindexRequestDescr /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(CancellationToken cancellationToken = default) { @@ -29327,7 +29247,7 @@ public virtual Task ReindexAsync(CancellationToken c /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -29514,7 +29434,7 @@ public virtual Task ReindexAsync(CancellationToken c /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -29629,7 +29549,7 @@ public virtual Task ReindexAsync(Action /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -29816,7 +29736,7 @@ public virtual Task ReindexAsync(Actionelasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -29929,7 +29849,7 @@ public virtual Task ReindexAsync(ReindexRequestDescriptor descr /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -30116,7 +30036,7 @@ public virtual Task ReindexAsync(ReindexRequestDescriptor descr /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(CancellationToken cancellationToken = default) { @@ -30230,7 +30150,7 @@ public virtual Task ReindexAsync(CancellationToken cancellation /// done /// /// - /// ** Throttling** + /// Throttling /// /// /// Set requests_per_second to any positive decimal number (1.4, 6, 1000, for example) to throttle the rate at which reindex issues batches of index operations. @@ -30417,7 +30337,7 @@ public virtual Task ReindexAsync(CancellationToken cancellation /// These must be specified in the elasticsearch.yml file, with the exception of the secure settings, which you add in the Elasticsearch keystore. /// It is not possible to configure SSL in the body of the reindex request. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -30443,7 +30363,7 @@ public virtual Task ReindexAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequest request) @@ -30468,7 +30388,7 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequ /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequest request, CancellationToken cancellationToken = default) { @@ -30492,7 +30412,7 @@ public virtual Task ReindexRethrottleAsync(ReindexRet /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequestDescriptor descriptor) @@ -30517,7 +30437,7 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequ /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id taskId) @@ -30543,7 +30463,7 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elast /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) @@ -30570,7 +30490,7 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elast /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -30594,7 +30514,7 @@ public virtual Task ReindexRethrottleAsync(ReindexRet /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { @@ -30619,7 +30539,7 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// Rethrottling that slows down the query will take effect after completing the current batch. /// This behavior prevents scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { @@ -30636,7 +30556,7 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequest request) @@ -30652,7 +30572,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTem /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequest request, CancellationToken cancellationToken = default) { @@ -30667,7 +30587,7 @@ public virtual Task RenderSearchTemplateAsync(Rend /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) @@ -30683,7 +30603,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Rend /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate() @@ -30700,7 +30620,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate() /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action> configureRequest) @@ -30718,7 +30638,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Acti /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) @@ -30734,7 +30654,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTem /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate() @@ -30751,7 +30671,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate() /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action configureRequest) @@ -30769,7 +30689,7 @@ public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -30784,7 +30704,7 @@ public virtual Task RenderSearchTemplateAsync /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) { @@ -30800,7 +30720,7 @@ public virtual Task RenderSearchTemplateAsync /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -30817,7 +30737,7 @@ public virtual Task RenderSearchTemplateAsync /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -30832,7 +30752,7 @@ public virtual Task RenderSearchTemplateAsync(Rend /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) { @@ -30848,7 +30768,7 @@ public virtual Task RenderSearchTemplateAsync(Canc /// /// Render a search template as a search request body. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -30861,9 +30781,19 @@ public virtual Task RenderSearchTemplateAsync(Acti /// /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. + /// + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequest request) @@ -30875,9 +30805,19 @@ public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. + /// + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequest request, CancellationToken cancellationToken = default) { @@ -30888,9 +30828,19 @@ public virtual Task> ScriptsPainlessExec /// /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequestDescriptor descriptor) @@ -30902,9 +30852,19 @@ public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. + /// + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. + /// + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute() @@ -30917,9 +30877,19 @@ public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. + /// + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(Action> configureRequest) @@ -30933,9 +30903,19 @@ public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ScriptsPainlessExecuteAsync(ScriptsPainlessExecuteRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -30946,9 +30926,19 @@ public virtual Task> ScriptsPainlessExec /// /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. /// - /// Learn more about this API in the Elasticsearch documentation. + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. + /// + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ScriptsPainlessExecuteAsync(CancellationToken cancellationToken = default) { @@ -30960,9 +30950,19 @@ public virtual Task> ScriptsPainlessExec /// /// /// Run a script. + /// + /// /// Runs a script and returns a result. + /// Use this API to build and test scripts, such as when defining a script for a runtime field. + /// This API requires very few dependencies and is especially useful if you don't have permissions to write documents on a cluster. + /// + /// + /// The API uses several contexts, which control how scripts are run, what variables are available at runtime, and what the return type is. + /// + /// + /// Each context requires a script, but additional parameters depend on the context you're using for that script. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ScriptsPainlessExecuteAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -30993,7 +30993,7 @@ public virtual Task> ScriptsPainlessExec /// /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScrollResponse Scroll(ScrollRequest request) @@ -31023,7 +31023,7 @@ public virtual ScrollResponse Scroll(ScrollRequest request /// /// IMPORTANT: Results from a scrolling search reflect the state of the index at the time of the initial search request. Subsequent indexing or document changes only affect later search and scroll requests. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> ScrollAsync(ScrollRequest request, CancellationToken cancellationToken = default) { @@ -31060,7 +31060,7 @@ public virtual Task> ScrollAsync(ScrollRequ /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search(SearchRequest request) @@ -31098,7 +31098,7 @@ public virtual SearchResponse Search(SearchRequest request /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(SearchRequest request, CancellationToken cancellationToken = default) { @@ -31135,7 +31135,7 @@ public virtual Task> SearchAsync(SearchRequ /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search(SearchRequestDescriptor descriptor) @@ -31173,7 +31173,7 @@ public virtual SearchResponse Search(SearchRequestDescript /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search(Elastic.Clients.Elasticsearch.Indices? indices) @@ -31212,7 +31212,7 @@ public virtual SearchResponse Search(Elastic.Clients.Elast /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -31252,7 +31252,7 @@ public virtual SearchResponse Search(Elastic.Clients.Elast /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search() @@ -31291,7 +31291,7 @@ public virtual SearchResponse Search() /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search(Action> configureRequest) @@ -31331,7 +31331,7 @@ public virtual SearchResponse Search(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(SearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -31368,7 +31368,7 @@ public virtual Task> SearchAsync(SearchRequ /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -31406,7 +31406,7 @@ public virtual Task> SearchAsync(Elastic.Cl /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -31445,7 +31445,7 @@ public virtual Task> SearchAsync(Elastic.Cl /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(CancellationToken cancellationToken = default) { @@ -31483,7 +31483,7 @@ public virtual Task> SearchAsync(Cancellati /// If different PIT IDs are used, slices can overlap and miss documents. /// This situation can occur because the splitting criterion is based on Lucene document IDs, which are not stable across changes to the index. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -31687,7 +31687,7 @@ public virtual Task> SearchAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) @@ -31890,7 +31890,7 @@ public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(SearchMvtRequest request, CancellationToken cancellationToken = default) { @@ -32092,7 +32092,7 @@ public virtual Task SearchMvtAsync(SearchMvtRequest request, /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor) @@ -32295,7 +32295,7 @@ public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) @@ -32499,7 +32499,7 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) @@ -32704,7 +32704,7 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) @@ -32908,7 +32908,7 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest) @@ -33113,7 +33113,7 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsea /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor) @@ -33316,7 +33316,7 @@ public virtual SearchMvtResponse SearchMvt(SearchMvtRequestDescriptor descriptor /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) @@ -33520,7 +33520,7 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action configureRequest) @@ -33725,7 +33725,7 @@ public virtual SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -33927,7 +33927,7 @@ public virtual Task SearchMvtAsync(SearchMvtReques /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) { @@ -34130,7 +34130,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -34334,7 +34334,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) { @@ -34537,7 +34537,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -34741,7 +34741,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -34943,7 +34943,7 @@ public virtual Task SearchMvtAsync(SearchMvtRequestDescriptor /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, CancellationToken cancellationToken = default) { @@ -35146,7 +35146,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// To compute the H3 resolution for each precision, Elasticsearch compares the average density of hexagonal bins at each resolution with the average density of tile bins at each zoom level. /// Elasticsearch uses the H3 resolution that is closest to the corresponding geotile density. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, Action configureRequest, CancellationToken cancellationToken = default) { @@ -35168,7 +35168,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(SearchShardsRequest request) @@ -35189,7 +35189,7 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequest request) /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(SearchShardsRequest request, CancellationToken cancellationToken = default) { @@ -35209,7 +35209,7 @@ public virtual Task SearchShardsAsync(SearchShardsRequest /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) @@ -35230,7 +35230,7 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequestD /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) @@ -35252,7 +35252,7 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elas /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -35275,7 +35275,7 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elas /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards() @@ -35297,7 +35297,7 @@ public virtual SearchShardsResponse SearchShards() /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Action> configureRequest) @@ -35320,7 +35320,7 @@ public virtual SearchShardsResponse SearchShards(Action /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) @@ -35341,7 +35341,7 @@ public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor d /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices) @@ -35363,7 +35363,7 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.I /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest) @@ -35386,7 +35386,7 @@ public virtual SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.I /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards() @@ -35408,7 +35408,7 @@ public virtual SearchShardsResponse SearchShards() /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(Action configureRequest) @@ -35431,7 +35431,7 @@ public virtual SearchShardsResponse SearchShards(Action /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -35451,7 +35451,7 @@ public virtual Task SearchShardsAsync(SearchSha /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -35472,7 +35472,7 @@ public virtual Task SearchShardsAsync(Elastic.C /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -35494,7 +35494,7 @@ public virtual Task SearchShardsAsync(Elastic.C /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) { @@ -35515,7 +35515,7 @@ public virtual Task SearchShardsAsync(Cancellat /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -35537,7 +35537,7 @@ public virtual Task SearchShardsAsync(Action /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -35557,7 +35557,7 @@ public virtual Task SearchShardsAsync(SearchShardsRequestD /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -35578,7 +35578,7 @@ public virtual Task SearchShardsAsync(Elastic.Clients.Elas /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -35600,7 +35600,7 @@ public virtual Task SearchShardsAsync(Elastic.Clients.Elas /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) { @@ -35621,7 +35621,7 @@ public virtual Task SearchShardsAsync(CancellationToken ca /// /// If the Elasticsearch security features are enabled, you must have the view_index_metadata or manage index privilege for the target data stream, index, or alias. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SearchShardsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -35635,7 +35635,7 @@ public virtual Task SearchShardsAsync(Action /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequest request) @@ -35648,7 +35648,7 @@ public virtual SearchTemplateResponse SearchTemplate(Searc /// /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchTemplateAsync(SearchTemplateRequest request, CancellationToken cancellationToken = default) { @@ -35660,7 +35660,7 @@ public virtual Task> SearchTemplateAsync /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequestDescriptor descriptor) @@ -35673,7 +35673,7 @@ public virtual SearchTemplateResponse SearchTemplate(Searc /// /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices) @@ -35687,7 +35687,7 @@ public virtual SearchTemplateResponse SearchTemplate(Elast /// /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest) @@ -35702,7 +35702,7 @@ public virtual SearchTemplateResponse SearchTemplate(Elast /// /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate() @@ -35716,7 +35716,7 @@ public virtual SearchTemplateResponse SearchTemplate() /// /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(Action> configureRequest) @@ -35731,7 +35731,7 @@ public virtual SearchTemplateResponse SearchTemplate(Actio /// /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -35743,7 +35743,7 @@ public virtual Task> SearchTemplateAsync /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, CancellationToken cancellationToken = default) { @@ -35756,7 +35756,7 @@ public virtual Task> SearchTemplateAsync /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchTemplateAsync(Elastic.Clients.Elasticsearch.Indices? indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -35770,7 +35770,7 @@ public virtual Task> SearchTemplateAsync /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) { @@ -35783,7 +35783,7 @@ public virtual Task> SearchTemplateAsync /// Run a search with a search template. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -35805,7 +35805,7 @@ public virtual Task> SearchTemplateAsync - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) @@ -35826,7 +35826,7 @@ public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(TermsEnumRequest request, CancellationToken cancellationToken = default) { @@ -35846,7 +35846,7 @@ public virtual Task TermsEnumAsync(TermsEnumRequest request, /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) @@ -35867,7 +35867,7 @@ public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) @@ -35889,7 +35889,7 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsea /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -35912,7 +35912,7 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsea /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum() @@ -35934,7 +35934,7 @@ public virtual TermsEnumResponse TermsEnum() /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(Action> configureRequest) @@ -35957,7 +35957,7 @@ public virtual TermsEnumResponse TermsEnum(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) @@ -35978,7 +35978,7 @@ public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index) @@ -36000,7 +36000,7 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexNa /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) @@ -36023,7 +36023,7 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexNa /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -36043,7 +36043,7 @@ public virtual Task TermsEnumAsync(TermsEnumReques /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -36064,7 +36064,7 @@ public virtual Task TermsEnumAsync(Elastic.Clients /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -36086,7 +36086,7 @@ public virtual Task TermsEnumAsync(Elastic.Clients /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(CancellationToken cancellationToken = default) { @@ -36107,7 +36107,7 @@ public virtual Task TermsEnumAsync(CancellationTok /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -36129,7 +36129,7 @@ public virtual Task TermsEnumAsync(Action - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -36149,7 +36149,7 @@ public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -36170,7 +36170,7 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// info /// The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -36250,7 +36250,7 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TermVectorsRequest request) @@ -36329,7 +36329,7 @@ public virtual TermVectorsResponse Termvectors(TermVectorsRequestrouting only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TermVectorsRequest request, CancellationToken cancellationToken = default) { @@ -36407,7 +36407,7 @@ public virtual Task TermvectorsAsync(TermVectors /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TermVectorsRequestDescriptor descriptor) @@ -36486,7 +36486,7 @@ public virtual TermVectorsResponse Termvectors(TermVectorsRequestDesc /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) @@ -36566,7 +36566,7 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -36647,7 +36647,7 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index) @@ -36727,7 +36727,7 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -36808,7 +36808,7 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TDocument document) @@ -36888,7 +36888,7 @@ public virtual TermVectorsResponse Termvectors(TDocument document) /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TDocument document, Action> configureRequest) @@ -36969,7 +36969,7 @@ public virtual TermVectorsResponse Termvectors(TDocument document, Ac /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -37049,7 +37049,7 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -37130,7 +37130,7 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.Id? id) @@ -37210,7 +37210,7 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -37291,7 +37291,7 @@ public virtual TermVectorsResponse Termvectors(TDocument document, El /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.Id? id) @@ -37371,7 +37371,7 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest) @@ -37452,7 +37452,7 @@ public virtual TermVectorsResponse Termvectors(Elastic.Clients.Elasti /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -37530,7 +37530,7 @@ public virtual Task TermvectorsAsync(TermVectors /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -37609,7 +37609,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -37689,7 +37689,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -37768,7 +37768,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -37848,7 +37848,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -37927,7 +37927,7 @@ public virtual Task TermvectorsAsync(TDocument d /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -38007,7 +38007,7 @@ public virtual Task TermvectorsAsync(TDocument d /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -38086,7 +38086,7 @@ public virtual Task TermvectorsAsync(TDocument d /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -38166,7 +38166,7 @@ public virtual Task TermvectorsAsync(TDocument d /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -38245,7 +38245,7 @@ public virtual Task TermvectorsAsync(TDocument d /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -38325,7 +38325,7 @@ public virtual Task TermvectorsAsync(TDocument d /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Id? id, CancellationToken cancellationToken = default) { @@ -38404,7 +38404,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// By default, when requesting term vectors of artificial documents, a shard to get the statistics from is randomly selected. /// Use routing only to hit a particular shard. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task TermvectorsAsync(Elastic.Clients.Elasticsearch.Id? id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -38454,7 +38454,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(UpdateRequest request) @@ -38503,7 +38503,7 @@ public virtual UpdateResponse Update(Upd /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(UpdateRequest request, CancellationToken cancellationToken = default) { @@ -38551,7 +38551,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(UpdateRequestDescriptor descriptor) @@ -38600,7 +38600,7 @@ public virtual UpdateResponse Update(Upd /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) @@ -38650,7 +38650,7 @@ public virtual UpdateResponse Update(Ela /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -38701,7 +38701,7 @@ public virtual UpdateResponse Update(Ela /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(TDocument document) @@ -38751,7 +38751,7 @@ public virtual UpdateResponse Update(TDo /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(TDocument document, Action> configureRequest) @@ -38802,7 +38802,7 @@ public virtual UpdateResponse Update(TDo /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) @@ -38852,7 +38852,7 @@ public virtual UpdateResponse Update(TDo /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) @@ -38903,7 +38903,7 @@ public virtual UpdateResponse Update(TDo /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.Id id) @@ -38953,7 +38953,7 @@ public virtual UpdateResponse Update(TDo /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -39004,7 +39004,7 @@ public virtual UpdateResponse Update(TDo /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.Id id) @@ -39054,7 +39054,7 @@ public virtual UpdateResponse Update(Ela /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) @@ -39105,7 +39105,7 @@ public virtual UpdateResponse Update(Ela /// The _source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(UpdateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -39153,7 +39153,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -39202,7 +39202,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -39252,7 +39252,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, CancellationToken cancellationToken = default) { @@ -39301,7 +39301,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -39351,7 +39351,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -39400,7 +39400,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -39450,7 +39450,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -39499,7 +39499,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(TDocument document, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -39549,7 +39549,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -39598,7 +39598,7 @@ public virtual Task> UpdateAsync_source field must be enabled to use this API. /// In addition to _source, you can access the following variables through the ctx map: _index, _type, _id, _version, _routing, and _now (the current timestamp). /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> UpdateAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -39765,7 +39765,7 @@ public virtual Task> UpdateAsyncctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequest request) @@ -39931,7 +39931,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequest request) /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(UpdateByQueryRequest request, CancellationToken cancellationToken = default) { @@ -40096,7 +40096,7 @@ public virtual Task UpdateByQueryAsync(UpdateByQueryReque /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) @@ -40262,7 +40262,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryReque /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices) @@ -40429,7 +40429,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.El /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) @@ -40597,7 +40597,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.El /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery() @@ -40764,7 +40764,7 @@ public virtual UpdateByQueryResponse UpdateByQuery() /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(Action> configureRequest) @@ -40932,7 +40932,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(Actionctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) @@ -41098,7 +41098,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescripto /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices) @@ -41265,7 +41265,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) @@ -41433,7 +41433,7 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -41598,7 +41598,7 @@ public virtual Task UpdateByQueryAsync(UpdateB /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -41764,7 +41764,7 @@ public virtual Task UpdateByQueryAsync(Elastic /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -41931,7 +41931,7 @@ public virtual Task UpdateByQueryAsync(Elastic /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(CancellationToken cancellationToken = default) { @@ -42097,7 +42097,7 @@ public virtual Task UpdateByQueryAsync(Cancell /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -42264,7 +42264,7 @@ public virtual Task UpdateByQueryAsync(Action< /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -42429,7 +42429,7 @@ public virtual Task UpdateByQueryAsync(UpdateByQueryReque /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -42595,7 +42595,7 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El /// Setting any other field in ctx is an error. /// This API enables you to only modify the source of matching documents; you cannot move them. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -42613,7 +42613,7 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequest request) @@ -42630,7 +42630,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQ /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequest request, CancellationToken cancellationToken = default) { @@ -42646,7 +42646,7 @@ public virtual Task UpdateByQueryRethrottleAsyn /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequestDescriptor descriptor) @@ -42663,7 +42663,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQ /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Id taskId) @@ -42681,7 +42681,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest) @@ -42700,7 +42700,7 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -42716,7 +42716,7 @@ public virtual Task UpdateByQueryRethrottleAsyn /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, CancellationToken cancellationToken = default) { @@ -42733,7 +42733,7 @@ public virtual Task UpdateByQueryRethrottleAsyn /// Change the number of requests per second for a particular update by query operation. /// Rethrottling that speeds up the query takes effect immediately but rethrotting that slows down the query takes effect after completing the current batch to prevent scroll timeouts. /// - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Id taskId, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs index aaec84a9912..4647b0cb2f8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Analyzers.g.cs @@ -153,9 +153,6 @@ public AnalyzersDescriptor() : base(new Analyzers()) public AnalyzersDescriptor Kuromoji(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Kuromoji(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Kuromoji(string analyzerName, KuromojiAnalyzer kuromojiAnalyzer) => AssignVariant(analyzerName, kuromojiAnalyzer); - public AnalyzersDescriptor Language(string analyzerName) => AssignVariant(analyzerName, null); - public AnalyzersDescriptor Language(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); - public AnalyzersDescriptor Language(string analyzerName, LanguageAnalyzer languageAnalyzer) => AssignVariant(analyzerName, languageAnalyzer); public AnalyzersDescriptor Latvian(string analyzerName) => AssignVariant(analyzerName, null); public AnalyzersDescriptor Latvian(string analyzerName, Action configure) => AssignVariant(analyzerName, configure); public AnalyzersDescriptor Latvian(string analyzerName, LatvianAnalyzer latvianAnalyzer) => AssignVariant(analyzerName, latvianAnalyzer); @@ -290,8 +287,6 @@ public override IAnalyzer Read(ref Utf8JsonReader reader, Type typeToConvert, Js return JsonSerializer.Deserialize(ref reader, options); case "kuromoji": return JsonSerializer.Deserialize(ref reader, options); - case "language": - return JsonSerializer.Deserialize(ref reader, options); case "latvian": return JsonSerializer.Deserialize(ref reader, options); case "lithuanian": @@ -434,9 +429,6 @@ public override void Write(Utf8JsonWriter writer, IAnalyzer value, JsonSerialize case "kuromoji": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.KuromojiAnalyzer), options); return; - case "language": - JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.LanguageAnalyzer), options); - return; case "latvian": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.LatvianAnalyzer), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs deleted file mode 100644 index 00a6d5a7171..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs +++ /dev/null @@ -1,131 +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.Fluent; -using Elastic.Clients.Elasticsearch.Serialization; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Analysis; - -public sealed partial class LanguageAnalyzer : IAnalyzer -{ - [JsonInclude, JsonPropertyName("language")] - public Elastic.Clients.Elasticsearch.Analysis.Language Language { get; set; } - [JsonInclude, JsonPropertyName("stem_exclusion")] - public ICollection StemExclusion { get; set; } - [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } - [JsonInclude, JsonPropertyName("stopwords_path")] - public string? StopwordsPath { get; set; } - - [JsonInclude, JsonPropertyName("type")] - public string Type => "language"; - - [JsonInclude, JsonPropertyName("version")] - public string? Version { get; set; } -} - -public sealed partial class LanguageAnalyzerDescriptor : SerializableDescriptor, IBuildableDescriptor -{ - internal LanguageAnalyzerDescriptor(Action configure) => configure.Invoke(this); - - public LanguageAnalyzerDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Analysis.Language LanguageValue { get; set; } - private ICollection StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } - private string? StopwordsPathValue { get; set; } - private string? VersionValue { get; set; } - - public LanguageAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysis.Language language) - { - LanguageValue = language; - return Self; - } - - public LanguageAnalyzerDescriptor StemExclusion(ICollection stemExclusion) - { - StemExclusionValue = stemExclusion; - return Self; - } - - public LanguageAnalyzerDescriptor Stopwords(ICollection? stopwords) - { - StopwordsValue = stopwords; - return Self; - } - - public LanguageAnalyzerDescriptor StopwordsPath(string? stopwordsPath) - { - StopwordsPathValue = stopwordsPath; - return Self; - } - - public LanguageAnalyzerDescriptor Version(string? version) - { - VersionValue = version; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - writer.WritePropertyName("language"); - JsonSerializer.Serialize(writer, LanguageValue, options); - writer.WritePropertyName("stem_exclusion"); - JsonSerializer.Serialize(writer, StemExclusionValue, options); - if (StopwordsValue is not null) - { - writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); - } - - if (!string.IsNullOrEmpty(StopwordsPathValue)) - { - writer.WritePropertyName("stopwords_path"); - writer.WriteStringValue(StopwordsPathValue); - } - - writer.WritePropertyName("type"); - writer.WriteStringValue("language"); - if (!string.IsNullOrEmpty(VersionValue)) - { - writer.WritePropertyName("version"); - writer.WriteStringValue(VersionValue); - } - - writer.WriteEndObject(); - } - - LanguageAnalyzer IBuildableDescriptor.Build() => new() - { - Language = LanguageValue, - StemExclusion = StemExclusionValue, - Stopwords = StopwordsValue, - StopwordsPath = StopwordsPathValue, - Version = VersionValue - }; -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs index e32a1cbe1ac..53730ee4415 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/Normalizers.g.cs @@ -122,7 +122,7 @@ public override void Write(Utf8JsonWriter writer, INormalizer value, JsonSeriali } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(NormalizerInterfaceConverter))] public partial interface INormalizer diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs index bcaf721928d..afdf28b261f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AsyncSearch/AsyncSearch.g.cs @@ -31,7 +31,7 @@ public sealed partial class AsyncSearch { /// /// - /// Partial aggregations results, coming from the shards that have already completed the execution of the query. + /// Partial aggregations results, coming from the shards that have already completed running the query. /// /// [JsonInclude, JsonPropertyName("aggregations")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs index ff080b07f17..050d5e5b837 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ByteSize.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ByteSize : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/WaitForNodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/WaitForNodes.g.cs new file mode 100644 index 00000000000..add166ec8d1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/WaitForNodes.g.cs @@ -0,0 +1,42 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.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.Cluster; + +public sealed partial class WaitForNodes : Union +{ + public WaitForNodes(string Waitfornodes) : base(Waitfornodes) + { + } + + public WaitForNodes(int Waitfornodes) : base(Waitfornodes) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs index 3b0b5da0aaf..89adf68ac97 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Context.g.cs @@ -34,7 +34,7 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; /// /// Text or location that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Context : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs index 1cac0049899..4d04637e38e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs @@ -89,7 +89,7 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "indices_boost") { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); + variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); continue; } @@ -475,7 +475,7 @@ public sealed partial class MultisearchBody /// Boosts the _score of documents from specified indices. /// /// - public ICollection>? IndicesBoost { get; set; } + public ICollection>? IndicesBoost { get; set; } /// /// @@ -641,7 +641,7 @@ public MultisearchBodyDescriptor() : base() private Elastic.Clients.Elasticsearch.Core.Search.Highlight? HighlightValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } private Action> HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private ICollection? KnnValue { get; set; } private Elastic.Clients.Elasticsearch.KnnSearchDescriptor KnnDescriptor { get; set; } private Action> KnnDescriptorAction { get; set; } @@ -860,7 +860,7 @@ public MultisearchBodyDescriptor Highlight(Action /// - public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) + public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1657,7 +1657,7 @@ public MultisearchBodyDescriptor() : base() private Elastic.Clients.Elasticsearch.Core.Search.Highlight? HighlightValue { get; set; } private Elastic.Clients.Elasticsearch.Core.Search.HighlightDescriptor HighlightDescriptor { get; set; } private Action HighlightDescriptorAction { get; set; } - private ICollection>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private ICollection? KnnValue { get; set; } private Elastic.Clients.Elasticsearch.KnnSearchDescriptor KnnDescriptor { get; set; } private Action KnnDescriptorAction { get; set; } @@ -1876,7 +1876,7 @@ public MultisearchBodyDescriptor Highlight(Action /// - public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) + public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs index 8de32585af1..80f3cf046bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricDiscountedCumulativeGain.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGain { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricDiscountedCumulativeGain /// /// Discounted cumulative gain (DCG) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricDiscountedCumulativeGainDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs index 18c31ca04f5..ed1e38da5a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricExpectedReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricExpectedReciprocalRank /// /// Expected Reciprocal Rank (ERR) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricExpectedReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs index a5db8520c2f..4142b74fd66 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricMeanReciprocalRank.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRank { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricMeanReciprocalRank /// /// Mean Reciprocal Rank /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricMeanReciprocalRankDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs index ddf8cc6549e..c18e37df6ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricPrecision.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecision { @@ -64,7 +64,7 @@ public sealed partial class RankEvalMetricPrecision /// /// Precision at K (P@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricPrecisionDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs index 36a07ea83d2..5652cb85ac5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalMetricRecall.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.Core.RankEval; /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecall { @@ -56,7 +56,7 @@ public sealed partial class RankEvalMetricRecall /// /// Recall at K (R@k) /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class RankEvalMetricRecallDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs index 1cb7f9ff331..03d87f4ee20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ScriptsPainlessExecute/PainlessContextSetup.g.cs @@ -31,7 +31,7 @@ public sealed partial class PainlessContextSetup { /// /// - /// Document that’s temporarily indexed in-memory and accessible from the script. + /// Document that's temporarily indexed in-memory and accessible from the script. /// /// [JsonInclude, JsonPropertyName("document")] @@ -39,8 +39,14 @@ public sealed partial class PainlessContextSetup /// /// - /// Index containing a mapping that’s compatible with the indexed document. + /// Index containing a mapping that's compatible with the indexed document. /// You may specify a remote index by prefixing the index with the remote cluster alias. + /// For example, remote1:my_index indicates that you want to run the painless script against the "my_index" index on the "remote1" cluster. + /// This request will be forwarded to the "remote1" cluster if you have configured a connection to that remote cluster. + /// + /// + /// NOTE: Wildcards are not accepted in the index expression for this endpoint. + /// The expression *:myindex will return the error "No such remote cluster" and the expression logs* or remote1:logs* will return the error "index not found". /// /// [JsonInclude, JsonPropertyName("index")] @@ -71,7 +77,7 @@ public PainlessContextSetupDescriptor() : base() /// /// - /// Document that’s temporarily indexed in-memory and accessible from the script. + /// Document that's temporarily indexed in-memory and accessible from the script. /// /// public PainlessContextSetupDescriptor Document(object document) @@ -82,8 +88,14 @@ public PainlessContextSetupDescriptor Document(object document) /// /// - /// Index containing a mapping that’s compatible with the indexed document. + /// Index containing a mapping that's compatible with the indexed document. /// You may specify a remote index by prefixing the index with the remote cluster alias. + /// For example, remote1:my_index indicates that you want to run the painless script against the "my_index" index on the "remote1" cluster. + /// This request will be forwarded to the "remote1" cluster if you have configured a connection to that remote cluster. + /// + /// + /// NOTE: Wildcards are not accepted in the index expression for this endpoint. + /// The expression *:myindex will return the error "No such remote cluster" and the expression logs* or remote1:logs* will return the error "index not found". /// /// public PainlessContextSetupDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) @@ -164,7 +176,7 @@ public PainlessContextSetupDescriptor() : base() /// /// - /// Document that’s temporarily indexed in-memory and accessible from the script. + /// Document that's temporarily indexed in-memory and accessible from the script. /// /// public PainlessContextSetupDescriptor Document(object document) @@ -175,8 +187,14 @@ public PainlessContextSetupDescriptor Document(object document) /// /// - /// Index containing a mapping that’s compatible with the indexed document. + /// Index containing a mapping that's compatible with the indexed document. /// You may specify a remote index by prefixing the index with the remote cluster alias. + /// For example, remote1:my_index indicates that you want to run the painless script against the "my_index" index on the "remote1" cluster. + /// This request will be forwarded to the "remote1" cluster if you have configured a connection to that remote cluster. + /// + /// + /// NOTE: Wildcards are not accepted in the index expression for this endpoint. + /// The expression *:myindex will return the error "No such remote cluster" and the expression logs* or remote1:logs* will return the error "index not found". /// /// public PainlessContextSetupDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs index f896031d7d9..0a271f5f3ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs @@ -36,7 +36,7 @@ public sealed partial class InnerHits [JsonInclude, JsonPropertyName("explain")] public bool? Explain { get; set; } [JsonInclude, JsonPropertyName("fields")] - [JsonConverter(typeof(SingleOrManyFieldsConverter))] + [JsonConverter(typeof(FieldsConverter))] public Elastic.Clients.Elasticsearch.Fields? Fields { get; set; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs index fb98faedc6a..a33e8ed2b5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/AutoFollowStats.g.cs @@ -31,12 +31,37 @@ public sealed partial class AutoFollowStats { [JsonInclude, JsonPropertyName("auto_followed_clusters")] public IReadOnlyCollection AutoFollowedClusters { get; init; } + + /// + /// + /// The number of indices that the auto-follow coordinator failed to automatically follow. + /// The causes of recent failures are captured in the logs of the elected master node and in the auto_follow_stats.recent_auto_follow_errors field. + /// + /// [JsonInclude, JsonPropertyName("number_of_failed_follow_indices")] public long NumberOfFailedFollowIndices { get; init; } + + /// + /// + /// The number of times that the auto-follow coordinator failed to retrieve the cluster state from a remote cluster registered in a collection of auto-follow patterns. + /// + /// [JsonInclude, JsonPropertyName("number_of_failed_remote_cluster_state_requests")] public long NumberOfFailedRemoteClusterStateRequests { get; init; } + + /// + /// + /// The number of indices that the auto-follow coordinator successfully followed. + /// + /// [JsonInclude, JsonPropertyName("number_of_successful_follow_indices")] public long NumberOfSuccessfulFollowIndices { get; init; } + + /// + /// + /// An array of objects representing failures by the auto-follow coordinator. + /// + /// [JsonInclude, JsonPropertyName("recent_auto_follow_errors")] public IReadOnlyCollection RecentAutoFollowErrors { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs index f0a6e69d15d..7ce7bef96f5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowIndexStats.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowIndexStats { + /// + /// + /// The name of the follower index. + /// + /// [JsonInclude, JsonPropertyName("index")] public string Index { get; init; } + + /// + /// + /// An array of shard-level following task statistics. + /// + /// [JsonInclude, JsonPropertyName("shards")] public IReadOnlyCollection Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs index f7ac41cadec..66a9dd21f7c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndex.g.cs @@ -29,14 +29,43 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowerIndex { + /// + /// + /// The name of the follower index. + /// + /// [JsonInclude, JsonPropertyName("follower_index")] public string FollowerIndexValue { get; init; } + + /// + /// + /// The name of the index in the leader cluster that is followed. + /// + /// [JsonInclude, JsonPropertyName("leader_index")] public string LeaderIndex { get; init; } + + /// + /// + /// An object that encapsulates cross-cluster replication parameters. If the follower index's status is paused, this object is omitted. + /// + /// [JsonInclude, JsonPropertyName("parameters")] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowerIndexParameters? Parameters { get; init; } + + /// + /// + /// The remote cluster that contains the leader index. + /// + /// [JsonInclude, JsonPropertyName("remote_cluster")] public string RemoteCluster { get; init; } + + /// + /// + /// The status of the index following: active or paused. + /// + /// [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.CrossClusterReplication.FollowerIndexStatus Status { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs index 06ff51f8ada..95d202cef15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/FollowerIndexParameters.g.cs @@ -29,24 +29,88 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class FollowerIndexParameters { + /// + /// + /// The maximum number of outstanding reads requests from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_read_requests")] - public int MaxOutstandingReadRequests { get; init; } + public long? MaxOutstandingReadRequests { get; init; } + + /// + /// + /// The maximum number of outstanding write requests on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_outstanding_write_requests")] - public int MaxOutstandingWriteRequests { get; init; } + public int? MaxOutstandingWriteRequests { get; init; } + + /// + /// + /// The maximum number of operations to pull per read from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_operation_count")] - public int MaxReadRequestOperationCount { get; init; } + public int? MaxReadRequestOperationCount { get; init; } + + /// + /// + /// The maximum size in bytes of per read of a batch of operations pulled from the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("max_read_request_size")] - public string MaxReadRequestSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; init; } + + /// + /// + /// The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when + /// retrying. + /// + /// [JsonInclude, JsonPropertyName("max_retry_delay")] - public Elastic.Clients.Elasticsearch.Duration MaxRetryDelay { get; init; } + public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; init; } + + /// + /// + /// The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be + /// deferred until the number of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_count")] - public int MaxWriteBufferCount { get; init; } + public int? MaxWriteBufferCount { get; init; } + + /// + /// + /// The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will + /// be deferred until the total bytes of queued operations goes below the limit. + /// + /// [JsonInclude, JsonPropertyName("max_write_buffer_size")] - public string MaxWriteBufferSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; init; } + + /// + /// + /// The maximum number of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_operation_count")] - public int MaxWriteRequestOperationCount { get; init; } + public int? MaxWriteRequestOperationCount { get; init; } + + /// + /// + /// The maximum total bytes of operations per bulk write request executed on the follower. + /// + /// [JsonInclude, JsonPropertyName("max_write_request_size")] - public string MaxWriteRequestSize { get; init; } + public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; init; } + + /// + /// + /// The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index. + /// When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics. + /// Then the follower will immediately attempt to read from the leader again. + /// + /// [JsonInclude, JsonPropertyName("read_poll_timeout")] - public Elastic.Clients.Elasticsearch.Duration ReadPollTimeout { get; init; } + public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs index ecddd169e73..4489372dca5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ReadException.g.cs @@ -29,10 +29,27 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class ReadException { + /// + /// + /// The exception that caused the read to fail. + /// + /// [JsonInclude, JsonPropertyName("exception")] public Elastic.Clients.Elasticsearch.ErrorCause Exception { get; init; } + + /// + /// + /// The starting sequence number of the batch requested from the leader. + /// + /// [JsonInclude, JsonPropertyName("from_seq_no")] public long FromSeqNo { get; init; } + + /// + /// + /// The number of times the batch has been retried. + /// + /// [JsonInclude, JsonPropertyName("retries")] public int Retries { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs index c14f686d4c2..a37e0bf1c4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CrossClusterReplication/ShardStats.g.cs @@ -29,70 +29,240 @@ namespace Elastic.Clients.Elasticsearch.CrossClusterReplication; public sealed partial class ShardStats { + /// + /// + /// The total of transferred bytes read from the leader. + /// This is only an estimate and does not account for compression if enabled. + /// + /// [JsonInclude, JsonPropertyName("bytes_read")] public long BytesRead { get; init; } + + /// + /// + /// The number of failed reads. + /// + /// [JsonInclude, JsonPropertyName("failed_read_requests")] public long FailedReadRequests { get; init; } + + /// + /// + /// The number of failed bulk write requests on the follower. + /// + /// [JsonInclude, JsonPropertyName("failed_write_requests")] public long FailedWriteRequests { get; init; } [JsonInclude, JsonPropertyName("fatal_exception")] public Elastic.Clients.Elasticsearch.ErrorCause? FatalException { get; init; } + + /// + /// + /// The index aliases version the follower is synced up to. + /// + /// [JsonInclude, JsonPropertyName("follower_aliases_version")] public long FollowerAliasesVersion { get; init; } + + /// + /// + /// The current global checkpoint on the follower. + /// The difference between the leader_global_checkpoint and the follower_global_checkpoint is an indication of how much the follower is lagging the leader. + /// + /// [JsonInclude, JsonPropertyName("follower_global_checkpoint")] public long FollowerGlobalCheckpoint { get; init; } + + /// + /// + /// The name of the follower index. + /// + /// [JsonInclude, JsonPropertyName("follower_index")] public string FollowerIndex { get; init; } + + /// + /// + /// The mapping version the follower is synced up to. + /// + /// [JsonInclude, JsonPropertyName("follower_mapping_version")] public long FollowerMappingVersion { get; init; } + + /// + /// + /// The current maximum sequence number on the follower. + /// + /// [JsonInclude, JsonPropertyName("follower_max_seq_no")] public long FollowerMaxSeqNo { get; init; } + + /// + /// + /// The index settings version the follower is synced up to. + /// + /// [JsonInclude, JsonPropertyName("follower_settings_version")] public long FollowerSettingsVersion { get; init; } + + /// + /// + /// The starting sequence number of the last batch of operations requested from the leader. + /// + /// [JsonInclude, JsonPropertyName("last_requested_seq_no")] public long LastRequestedSeqNo { get; init; } + + /// + /// + /// The current global checkpoint on the leader known to the follower task. + /// + /// [JsonInclude, JsonPropertyName("leader_global_checkpoint")] public long LeaderGlobalCheckpoint { get; init; } + + /// + /// + /// The name of the index in the leader cluster being followed. + /// + /// [JsonInclude, JsonPropertyName("leader_index")] public string LeaderIndex { get; init; } + + /// + /// + /// The current maximum sequence number on the leader known to the follower task. + /// + /// [JsonInclude, JsonPropertyName("leader_max_seq_no")] public long LeaderMaxSeqNo { get; init; } + + /// + /// + /// The total number of operations read from the leader. + /// + /// [JsonInclude, JsonPropertyName("operations_read")] public long OperationsRead { get; init; } + + /// + /// + /// The number of operations written on the follower. + /// + /// [JsonInclude, JsonPropertyName("operations_written")] public long OperationsWritten { get; init; } + + /// + /// + /// The number of active read requests from the follower. + /// + /// [JsonInclude, JsonPropertyName("outstanding_read_requests")] public int OutstandingReadRequests { get; init; } + + /// + /// + /// The number of active bulk write requests on the follower. + /// + /// [JsonInclude, JsonPropertyName("outstanding_write_requests")] public int OutstandingWriteRequests { get; init; } + + /// + /// + /// An array of objects representing failed reads. + /// + /// [JsonInclude, JsonPropertyName("read_exceptions")] public IReadOnlyCollection ReadExceptions { get; init; } + + /// + /// + /// The remote cluster containing the leader index. + /// + /// [JsonInclude, JsonPropertyName("remote_cluster")] public string RemoteCluster { get; init; } + + /// + /// + /// The numerical shard ID, with values from 0 to one less than the number of replicas. + /// + /// [JsonInclude, JsonPropertyName("shard_id")] public int ShardId { get; init; } + + /// + /// + /// The number of successful fetches. + /// + /// [JsonInclude, JsonPropertyName("successful_read_requests")] public long SuccessfulReadRequests { get; init; } + + /// + /// + /// The number of bulk write requests run on the follower. + /// + /// [JsonInclude, JsonPropertyName("successful_write_requests")] public long SuccessfulWriteRequests { get; init; } [JsonInclude, JsonPropertyName("time_since_last_read")] public Elastic.Clients.Elasticsearch.Duration? TimeSinceLastRead { get; init; } + + /// + /// + /// The number of milliseconds since a read request was sent to the leader. + /// When the follower is caught up to the leader, this number will increase up to the configured read_poll_timeout at which point another read request will be sent to the leader. + /// + /// [JsonInclude, JsonPropertyName("time_since_last_read_millis")] public long TimeSinceLastReadMillis { get; init; } [JsonInclude, JsonPropertyName("total_read_remote_exec_time")] public Elastic.Clients.Elasticsearch.Duration? TotalReadRemoteExecTime { get; init; } + + /// + /// + /// The total time reads spent running on the remote cluster. + /// + /// [JsonInclude, JsonPropertyName("total_read_remote_exec_time_millis")] public long TotalReadRemoteExecTimeMillis { get; init; } [JsonInclude, JsonPropertyName("total_read_time")] public Elastic.Clients.Elasticsearch.Duration? TotalReadTime { get; init; } + + /// + /// + /// The total time reads were outstanding, measured from the time a read was sent to the leader to the time a reply was returned to the follower. + /// + /// [JsonInclude, JsonPropertyName("total_read_time_millis")] public long TotalReadTimeMillis { get; init; } [JsonInclude, JsonPropertyName("total_write_time")] public Elastic.Clients.Elasticsearch.Duration? TotalWriteTime { get; init; } + + /// + /// + /// The total time spent writing on the follower. + /// + /// [JsonInclude, JsonPropertyName("total_write_time_millis")] public long TotalWriteTimeMillis { get; init; } + + /// + /// + /// The number of write operations queued on the follower. + /// + /// [JsonInclude, JsonPropertyName("write_buffer_operation_count")] public long WriteBufferOperationCount { get; init; } + + /// + /// + /// The total number of bytes of operations currently queued for writing. + /// + /// [JsonInclude, JsonPropertyName("write_buffer_size_in_bytes")] public Elastic.Clients.Elasticsearch.ByteSize WriteBufferSizeInBytes { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs index b4e3ea5b141..a2cb6f15d4d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs @@ -31,4 +31,6 @@ public sealed partial class ExecuteEnrichPolicyStatus { [JsonInclude, JsonPropertyName("phase")] public Elastic.Clients.Elasticsearch.Enrich.EnrichPolicyPhase Phase { get; init; } + [JsonInclude, JsonPropertyName("step")] + public string? Step { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs index dae02bf828f..43cb6da6262 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs @@ -532,272 +532,6 @@ public override void Write(Utf8JsonWriter writer, KuromojiTokenizationMode value } } -[JsonConverter(typeof(LanguageConverter))] -public enum Language -{ - [EnumMember(Value = "Turkish")] - Turkish, - [EnumMember(Value = "Thai")] - Thai, - [EnumMember(Value = "Swedish")] - Swedish, - [EnumMember(Value = "Spanish")] - Spanish, - [EnumMember(Value = "Sorani")] - Sorani, - [EnumMember(Value = "Russian")] - Russian, - [EnumMember(Value = "Romanian")] - Romanian, - [EnumMember(Value = "Portuguese")] - Portuguese, - [EnumMember(Value = "Persian")] - Persian, - [EnumMember(Value = "Norwegian")] - Norwegian, - [EnumMember(Value = "Latvian")] - Latvian, - [EnumMember(Value = "Italian")] - Italian, - [EnumMember(Value = "Irish")] - Irish, - [EnumMember(Value = "Indonesian")] - Indonesian, - [EnumMember(Value = "Hungarian")] - Hungarian, - [EnumMember(Value = "Hindi")] - Hindi, - [EnumMember(Value = "Greek")] - Greek, - [EnumMember(Value = "German")] - German, - [EnumMember(Value = "Galician")] - Galician, - [EnumMember(Value = "French")] - French, - [EnumMember(Value = "Finnish")] - Finnish, - [EnumMember(Value = "Estonian")] - Estonian, - [EnumMember(Value = "English")] - English, - [EnumMember(Value = "Dutch")] - Dutch, - [EnumMember(Value = "Danish")] - Danish, - [EnumMember(Value = "Czech")] - Czech, - [EnumMember(Value = "Cjk")] - Cjk, - [EnumMember(Value = "Chinese")] - Chinese, - [EnumMember(Value = "Catalan")] - Catalan, - [EnumMember(Value = "Bulgarian")] - Bulgarian, - [EnumMember(Value = "Brazilian")] - Brazilian, - [EnumMember(Value = "Basque")] - Basque, - [EnumMember(Value = "Armenian")] - Armenian, - [EnumMember(Value = "Arabic")] - Arabic -} - -internal sealed class LanguageConverter : JsonConverter -{ - public override Language Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "Turkish": - return Language.Turkish; - case "Thai": - return Language.Thai; - case "Swedish": - return Language.Swedish; - case "Spanish": - return Language.Spanish; - case "Sorani": - return Language.Sorani; - case "Russian": - return Language.Russian; - case "Romanian": - return Language.Romanian; - case "Portuguese": - return Language.Portuguese; - case "Persian": - return Language.Persian; - case "Norwegian": - return Language.Norwegian; - case "Latvian": - return Language.Latvian; - case "Italian": - return Language.Italian; - case "Irish": - return Language.Irish; - case "Indonesian": - return Language.Indonesian; - case "Hungarian": - return Language.Hungarian; - case "Hindi": - return Language.Hindi; - case "Greek": - return Language.Greek; - case "German": - return Language.German; - case "Galician": - return Language.Galician; - case "French": - return Language.French; - case "Finnish": - return Language.Finnish; - case "Estonian": - return Language.Estonian; - case "English": - return Language.English; - case "Dutch": - return Language.Dutch; - case "Danish": - return Language.Danish; - case "Czech": - return Language.Czech; - case "Cjk": - return Language.Cjk; - case "Chinese": - return Language.Chinese; - case "Catalan": - return Language.Catalan; - case "Bulgarian": - return Language.Bulgarian; - case "Brazilian": - return Language.Brazilian; - case "Basque": - return Language.Basque; - case "Armenian": - return Language.Armenian; - case "Arabic": - return Language.Arabic; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, Language value, JsonSerializerOptions options) - { - switch (value) - { - case Language.Turkish: - writer.WriteStringValue("Turkish"); - return; - case Language.Thai: - writer.WriteStringValue("Thai"); - return; - case Language.Swedish: - writer.WriteStringValue("Swedish"); - return; - case Language.Spanish: - writer.WriteStringValue("Spanish"); - return; - case Language.Sorani: - writer.WriteStringValue("Sorani"); - return; - case Language.Russian: - writer.WriteStringValue("Russian"); - return; - case Language.Romanian: - writer.WriteStringValue("Romanian"); - return; - case Language.Portuguese: - writer.WriteStringValue("Portuguese"); - return; - case Language.Persian: - writer.WriteStringValue("Persian"); - return; - case Language.Norwegian: - writer.WriteStringValue("Norwegian"); - return; - case Language.Latvian: - writer.WriteStringValue("Latvian"); - return; - case Language.Italian: - writer.WriteStringValue("Italian"); - return; - case Language.Irish: - writer.WriteStringValue("Irish"); - return; - case Language.Indonesian: - writer.WriteStringValue("Indonesian"); - return; - case Language.Hungarian: - writer.WriteStringValue("Hungarian"); - return; - case Language.Hindi: - writer.WriteStringValue("Hindi"); - return; - case Language.Greek: - writer.WriteStringValue("Greek"); - return; - case Language.German: - writer.WriteStringValue("German"); - return; - case Language.Galician: - writer.WriteStringValue("Galician"); - return; - case Language.French: - writer.WriteStringValue("French"); - return; - case Language.Finnish: - writer.WriteStringValue("Finnish"); - return; - case Language.Estonian: - writer.WriteStringValue("Estonian"); - return; - case Language.English: - writer.WriteStringValue("English"); - return; - case Language.Dutch: - writer.WriteStringValue("Dutch"); - return; - case Language.Danish: - writer.WriteStringValue("Danish"); - return; - case Language.Czech: - writer.WriteStringValue("Czech"); - return; - case Language.Cjk: - writer.WriteStringValue("Cjk"); - return; - case Language.Chinese: - writer.WriteStringValue("Chinese"); - return; - case Language.Catalan: - writer.WriteStringValue("Catalan"); - return; - case Language.Bulgarian: - writer.WriteStringValue("Bulgarian"); - return; - case Language.Brazilian: - writer.WriteStringValue("Brazilian"); - return; - case Language.Basque: - writer.WriteStringValue("Basque"); - return; - case Language.Armenian: - writer.WriteStringValue("Armenian"); - return; - case Language.Arabic: - writer.WriteStringValue("Arabic"); - return; - } - - writer.WriteNullValue(); - } -} - [JsonConverter(typeof(NoriDecompoundModeConverter))] public enum NoriDecompoundMode { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.ScriptsPainlessExecute.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.ScriptsPainlessExecute.g.cs new file mode 100644 index 00000000000..2ffee2651c1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.ScriptsPainlessExecute.g.cs @@ -0,0 +1,189 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.ScriptsPainlessExecute; + +[JsonConverter(typeof(PainlessContextConverter))] +public enum PainlessContext +{ + /// + /// + /// Treats scripts as if they were run inside a script_score function in a function_score query. + /// + /// + [EnumMember(Value = "score")] + Score, + /// + /// + /// The default context if no other context is specified. + /// + /// + [EnumMember(Value = "painless_test")] + PainlessTest, + /// + /// + /// The context for long numeric fields. The script returns a sorted list of long values. + /// + /// + [EnumMember(Value = "long_field")] + LongField, + /// + /// + /// The context for keyword fields. The script returns a sorted list of string values. + /// + /// + [EnumMember(Value = "keyword_field")] + KeywordField, + /// + /// + /// The context for ip fields. The script returns a sorted list of IP addresses. + /// + /// + [EnumMember(Value = "ip_field")] + IpField, + /// + /// + /// The context for geo-point fields. emit takes two double parameters, the latitude and longitude values, and the script returns an object in GeoJSON format containing the coordinates for the geo point. + /// + /// + [EnumMember(Value = "geo_point_field")] + GeoPointField, + /// + /// + /// Treats scripts as if they were run inside a script query. + /// + /// + [EnumMember(Value = "filter")] + Filter, + /// + /// + /// The context for double numeric fields. The script returns a sorted list of double values. + /// + /// + [EnumMember(Value = "double_field")] + DoubleField, + /// + /// + /// The context for date fields. emit takes a long value and the script returns a sorted list of dates. + /// + /// + [EnumMember(Value = "date_field")] + DateField, + /// + /// + /// The context for composite runtime fields. The script returns a map of values. + /// + /// + [EnumMember(Value = "composite_field")] + CompositeField, + /// + /// + /// The context for boolean fields. The script returns a true or false response. + /// + /// + [EnumMember(Value = "boolean_field")] + BooleanField +} + +internal sealed class PainlessContextConverter : JsonConverter +{ + public override PainlessContext Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "score": + return PainlessContext.Score; + case "painless_test": + return PainlessContext.PainlessTest; + case "long_field": + return PainlessContext.LongField; + case "keyword_field": + return PainlessContext.KeywordField; + case "ip_field": + return PainlessContext.IpField; + case "geo_point_field": + return PainlessContext.GeoPointField; + case "filter": + return PainlessContext.Filter; + case "double_field": + return PainlessContext.DoubleField; + case "date_field": + return PainlessContext.DateField; + case "composite_field": + return PainlessContext.CompositeField; + case "boolean_field": + return PainlessContext.BooleanField; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, PainlessContext value, JsonSerializerOptions options) + { + switch (value) + { + case PainlessContext.Score: + writer.WriteStringValue("score"); + return; + case PainlessContext.PainlessTest: + writer.WriteStringValue("painless_test"); + return; + case PainlessContext.LongField: + writer.WriteStringValue("long_field"); + return; + case PainlessContext.KeywordField: + writer.WriteStringValue("keyword_field"); + return; + case PainlessContext.IpField: + writer.WriteStringValue("ip_field"); + return; + case PainlessContext.GeoPointField: + writer.WriteStringValue("geo_point_field"); + return; + case PainlessContext.Filter: + writer.WriteStringValue("filter"); + return; + case PainlessContext.DoubleField: + writer.WriteStringValue("double_field"); + return; + case PainlessContext.DateField: + writer.WriteStringValue("date_field"); + return; + case PainlessContext.CompositeField: + writer.WriteStringValue("composite_field"); + return; + case PainlessContext.BooleanField: + writer.WriteStringValue("boolean_field"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs index e515e745ac1..f8cf197e618 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs @@ -38,7 +38,9 @@ public enum EnrichPolicyPhase [EnumMember(Value = "FAILED")] Failed, [EnumMember(Value = "COMPLETE")] - Complete + Complete, + [EnumMember(Value = "CANCELLED")] + Cancelled } internal sealed class EnrichPolicyPhaseConverter : JsonConverter @@ -56,6 +58,8 @@ public override EnrichPolicyPhase Read(ref Utf8JsonReader reader, Type typeToCon return EnrichPolicyPhase.Failed; case "COMPLETE": return EnrichPolicyPhase.Complete; + case "CANCELLED": + return EnrichPolicyPhase.Cancelled; } ThrowHelper.ThrowJsonException(); @@ -78,6 +82,9 @@ public override void Write(Utf8JsonWriter writer, EnrichPolicyPhase value, JsonS case EnrichPolicyPhase.Complete: writer.WriteStringValue("COMPLETE"); return; + case EnrichPolicyPhase.Cancelled: + writer.WriteStringValue("CANCELLED"); + return; } writer.WriteNullValue(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs index 26f7df4182d..500969396ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.IndexManagement.g.cs @@ -329,6 +329,41 @@ public override void Write(Utf8JsonWriter writer, ManagedBy value, JsonSerialize } } +[JsonConverter(typeof(ModeEnumConverter))] +public enum ModeEnum +{ + [EnumMember(Value = "upgrade")] + Upgrade +} + +internal sealed class ModeEnumConverter : JsonConverter +{ + public override ModeEnum Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "upgrade": + return ModeEnum.Upgrade; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ModeEnum value, JsonSerializerOptions options) + { + switch (value) + { + case ModeEnum.Upgrade: + writer.WriteStringValue("upgrade"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(NumericFielddataFormatConverter))] public enum NumericFielddataFormat { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs index ab0a177455b..d883e91d3ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs @@ -28,6 +28,1399 @@ namespace Elastic.Clients.Elasticsearch.Inference; +[JsonConverter(typeof(AlibabaCloudServiceTypeConverter))] +public enum AlibabaCloudServiceType +{ + [EnumMember(Value = "alibabacloud-ai-search")] + AlibabacloudAiSearch +} + +internal sealed class AlibabaCloudServiceTypeConverter : JsonConverter +{ + public override AlibabaCloudServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "alibabacloud-ai-search": + return AlibabaCloudServiceType.AlibabacloudAiSearch; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AlibabaCloudServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case AlibabaCloudServiceType.AlibabacloudAiSearch: + writer.WriteStringValue("alibabacloud-ai-search"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AlibabaCloudTaskTypeConverter))] +public enum AlibabaCloudTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "space_embedding")] + SpaceEmbedding, + [EnumMember(Value = "rerank")] + Rerank, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class AlibabaCloudTaskTypeConverter : JsonConverter +{ + public override AlibabaCloudTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return AlibabaCloudTaskType.TextEmbedding; + case "space_embedding": + return AlibabaCloudTaskType.SpaceEmbedding; + case "rerank": + return AlibabaCloudTaskType.Rerank; + case "completion": + return AlibabaCloudTaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AlibabaCloudTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case AlibabaCloudTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case AlibabaCloudTaskType.SpaceEmbedding: + writer.WriteStringValue("space_embedding"); + return; + case AlibabaCloudTaskType.Rerank: + writer.WriteStringValue("rerank"); + return; + case AlibabaCloudTaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AmazonBedrockServiceTypeConverter))] +public enum AmazonBedrockServiceType +{ + [EnumMember(Value = "amazonbedrock")] + Amazonbedrock +} + +internal sealed class AmazonBedrockServiceTypeConverter : JsonConverter +{ + public override AmazonBedrockServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "amazonbedrock": + return AmazonBedrockServiceType.Amazonbedrock; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AmazonBedrockServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case AmazonBedrockServiceType.Amazonbedrock: + writer.WriteStringValue("amazonbedrock"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AmazonBedrockTaskTypeConverter))] +public enum AmazonBedrockTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class AmazonBedrockTaskTypeConverter : JsonConverter +{ + public override AmazonBedrockTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return AmazonBedrockTaskType.TextEmbedding; + case "completion": + return AmazonBedrockTaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AmazonBedrockTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case AmazonBedrockTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case AmazonBedrockTaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AnthropicServiceTypeConverter))] +public enum AnthropicServiceType +{ + [EnumMember(Value = "anthropic")] + Anthropic +} + +internal sealed class AnthropicServiceTypeConverter : JsonConverter +{ + public override AnthropicServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "anthropic": + return AnthropicServiceType.Anthropic; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AnthropicServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case AnthropicServiceType.Anthropic: + writer.WriteStringValue("anthropic"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AnthropicTaskTypeConverter))] +public enum AnthropicTaskType +{ + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class AnthropicTaskTypeConverter : JsonConverter +{ + public override AnthropicTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "completion": + return AnthropicTaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AnthropicTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case AnthropicTaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AzureAiStudioServiceTypeConverter))] +public enum AzureAiStudioServiceType +{ + [EnumMember(Value = "azureaistudio")] + Azureaistudio +} + +internal sealed class AzureAiStudioServiceTypeConverter : JsonConverter +{ + public override AzureAiStudioServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "azureaistudio": + return AzureAiStudioServiceType.Azureaistudio; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AzureAiStudioServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case AzureAiStudioServiceType.Azureaistudio: + writer.WriteStringValue("azureaistudio"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AzureAiStudioTaskTypeConverter))] +public enum AzureAiStudioTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class AzureAiStudioTaskTypeConverter : JsonConverter +{ + public override AzureAiStudioTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return AzureAiStudioTaskType.TextEmbedding; + case "completion": + return AzureAiStudioTaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AzureAiStudioTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case AzureAiStudioTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case AzureAiStudioTaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AzureOpenAIServiceTypeConverter))] +public enum AzureOpenAIServiceType +{ + [EnumMember(Value = "azureopenai")] + Azureopenai +} + +internal sealed class AzureOpenAIServiceTypeConverter : JsonConverter +{ + public override AzureOpenAIServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "azureopenai": + return AzureOpenAIServiceType.Azureopenai; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AzureOpenAIServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case AzureOpenAIServiceType.Azureopenai: + writer.WriteStringValue("azureopenai"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(AzureOpenAITaskTypeConverter))] +public enum AzureOpenAITaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class AzureOpenAITaskTypeConverter : JsonConverter +{ + public override AzureOpenAITaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return AzureOpenAITaskType.TextEmbedding; + case "completion": + return AzureOpenAITaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, AzureOpenAITaskType value, JsonSerializerOptions options) + { + switch (value) + { + case AzureOpenAITaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case AzureOpenAITaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(CohereEmbeddingTypeConverter))] +public enum CohereEmbeddingType +{ + [EnumMember(Value = "int8")] + Int8, + [EnumMember(Value = "float")] + Float, + [EnumMember(Value = "byte")] + Byte +} + +internal sealed class CohereEmbeddingTypeConverter : JsonConverter +{ + public override CohereEmbeddingType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "int8": + return CohereEmbeddingType.Int8; + case "float": + return CohereEmbeddingType.Float; + case "byte": + return CohereEmbeddingType.Byte; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CohereEmbeddingType value, JsonSerializerOptions options) + { + switch (value) + { + case CohereEmbeddingType.Int8: + writer.WriteStringValue("int8"); + return; + case CohereEmbeddingType.Float: + writer.WriteStringValue("float"); + return; + case CohereEmbeddingType.Byte: + writer.WriteStringValue("byte"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(CohereInputTypeConverter))] +public enum CohereInputType +{ + [EnumMember(Value = "search")] + Search, + [EnumMember(Value = "ingest")] + Ingest, + [EnumMember(Value = "clustering")] + Clustering, + [EnumMember(Value = "classification")] + Classification +} + +internal sealed class CohereInputTypeConverter : JsonConverter +{ + public override CohereInputType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "search": + return CohereInputType.Search; + case "ingest": + return CohereInputType.Ingest; + case "clustering": + return CohereInputType.Clustering; + case "classification": + return CohereInputType.Classification; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CohereInputType value, JsonSerializerOptions options) + { + switch (value) + { + case CohereInputType.Search: + writer.WriteStringValue("search"); + return; + case CohereInputType.Ingest: + writer.WriteStringValue("ingest"); + return; + case CohereInputType.Clustering: + writer.WriteStringValue("clustering"); + return; + case CohereInputType.Classification: + writer.WriteStringValue("classification"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(CohereServiceTypeConverter))] +public enum CohereServiceType +{ + [EnumMember(Value = "cohere")] + Cohere +} + +internal sealed class CohereServiceTypeConverter : JsonConverter +{ + public override CohereServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "cohere": + return CohereServiceType.Cohere; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CohereServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case CohereServiceType.Cohere: + writer.WriteStringValue("cohere"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(CohereSimilarityTypeConverter))] +public enum CohereSimilarityType +{ + [EnumMember(Value = "l2_norm")] + L2Norm, + [EnumMember(Value = "dot_product")] + DotProduct, + [EnumMember(Value = "cosine")] + Cosine +} + +internal sealed class CohereSimilarityTypeConverter : JsonConverter +{ + public override CohereSimilarityType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "l2_norm": + return CohereSimilarityType.L2Norm; + case "dot_product": + return CohereSimilarityType.DotProduct; + case "cosine": + return CohereSimilarityType.Cosine; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CohereSimilarityType value, JsonSerializerOptions options) + { + switch (value) + { + case CohereSimilarityType.L2Norm: + writer.WriteStringValue("l2_norm"); + return; + case CohereSimilarityType.DotProduct: + writer.WriteStringValue("dot_product"); + return; + case CohereSimilarityType.Cosine: + writer.WriteStringValue("cosine"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(CohereTaskTypeConverter))] +public enum CohereTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "rerank")] + Rerank, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class CohereTaskTypeConverter : JsonConverter +{ + public override CohereTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return CohereTaskType.TextEmbedding; + case "rerank": + return CohereTaskType.Rerank; + case "completion": + return CohereTaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CohereTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case CohereTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case CohereTaskType.Rerank: + writer.WriteStringValue("rerank"); + return; + case CohereTaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(CohereTruncateTypeConverter))] +public enum CohereTruncateType +{ + [EnumMember(Value = "START")] + Start, + [EnumMember(Value = "NONE")] + None, + [EnumMember(Value = "END")] + End +} + +internal sealed class CohereTruncateTypeConverter : JsonConverter +{ + public override CohereTruncateType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "START": + return CohereTruncateType.Start; + case "NONE": + return CohereTruncateType.None; + case "END": + return CohereTruncateType.End; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CohereTruncateType value, JsonSerializerOptions options) + { + switch (value) + { + case CohereTruncateType.Start: + writer.WriteStringValue("START"); + return; + case CohereTruncateType.None: + writer.WriteStringValue("NONE"); + return; + case CohereTruncateType.End: + writer.WriteStringValue("END"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(ElasticsearchServiceTypeConverter))] +public enum ElasticsearchServiceType +{ + [EnumMember(Value = "elasticsearch")] + Elasticsearch +} + +internal sealed class ElasticsearchServiceTypeConverter : JsonConverter +{ + public override ElasticsearchServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "elasticsearch": + return ElasticsearchServiceType.Elasticsearch; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ElasticsearchServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case ElasticsearchServiceType.Elasticsearch: + writer.WriteStringValue("elasticsearch"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(ElasticsearchTaskTypeConverter))] +public enum ElasticsearchTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "sparse_embedding")] + SparseEmbedding, + [EnumMember(Value = "rerank")] + Rerank +} + +internal sealed class ElasticsearchTaskTypeConverter : JsonConverter +{ + public override ElasticsearchTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return ElasticsearchTaskType.TextEmbedding; + case "sparse_embedding": + return ElasticsearchTaskType.SparseEmbedding; + case "rerank": + return ElasticsearchTaskType.Rerank; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ElasticsearchTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case ElasticsearchTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case ElasticsearchTaskType.SparseEmbedding: + writer.WriteStringValue("sparse_embedding"); + return; + case ElasticsearchTaskType.Rerank: + writer.WriteStringValue("rerank"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(ElserServiceTypeConverter))] +public enum ElserServiceType +{ + [EnumMember(Value = "elser")] + Elser +} + +internal sealed class ElserServiceTypeConverter : JsonConverter +{ + public override ElserServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "elser": + return ElserServiceType.Elser; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ElserServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case ElserServiceType.Elser: + writer.WriteStringValue("elser"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(ElserTaskTypeConverter))] +public enum ElserTaskType +{ + [EnumMember(Value = "sparse_embedding")] + SparseEmbedding +} + +internal sealed class ElserTaskTypeConverter : JsonConverter +{ + public override ElserTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "sparse_embedding": + return ElserTaskType.SparseEmbedding; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, ElserTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case ElserTaskType.SparseEmbedding: + writer.WriteStringValue("sparse_embedding"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(GoogleAiServiceTypeConverter))] +public enum GoogleAiServiceType +{ + [EnumMember(Value = "googleaistudio")] + Googleaistudio +} + +internal sealed class GoogleAiServiceTypeConverter : JsonConverter +{ + public override GoogleAiServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "googleaistudio": + return GoogleAiServiceType.Googleaistudio; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GoogleAiServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case GoogleAiServiceType.Googleaistudio: + writer.WriteStringValue("googleaistudio"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(GoogleAiStudioTaskTypeConverter))] +public enum GoogleAiStudioTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "completion")] + Completion +} + +internal sealed class GoogleAiStudioTaskTypeConverter : JsonConverter +{ + public override GoogleAiStudioTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return GoogleAiStudioTaskType.TextEmbedding; + case "completion": + return GoogleAiStudioTaskType.Completion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GoogleAiStudioTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case GoogleAiStudioTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case GoogleAiStudioTaskType.Completion: + writer.WriteStringValue("completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(GoogleVertexAIServiceTypeConverter))] +public enum GoogleVertexAIServiceType +{ + [EnumMember(Value = "googlevertexai")] + Googlevertexai +} + +internal sealed class GoogleVertexAIServiceTypeConverter : JsonConverter +{ + public override GoogleVertexAIServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "googlevertexai": + return GoogleVertexAIServiceType.Googlevertexai; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GoogleVertexAIServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case GoogleVertexAIServiceType.Googlevertexai: + writer.WriteStringValue("googlevertexai"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(GoogleVertexAITaskTypeConverter))] +public enum GoogleVertexAITaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "rerank")] + Rerank +} + +internal sealed class GoogleVertexAITaskTypeConverter : JsonConverter +{ + public override GoogleVertexAITaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return GoogleVertexAITaskType.TextEmbedding; + case "rerank": + return GoogleVertexAITaskType.Rerank; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, GoogleVertexAITaskType value, JsonSerializerOptions options) + { + switch (value) + { + case GoogleVertexAITaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case GoogleVertexAITaskType.Rerank: + writer.WriteStringValue("rerank"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(HuggingFaceServiceTypeConverter))] +public enum HuggingFaceServiceType +{ + [EnumMember(Value = "hugging_face")] + HuggingFace +} + +internal sealed class HuggingFaceServiceTypeConverter : JsonConverter +{ + public override HuggingFaceServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "hugging_face": + return HuggingFaceServiceType.HuggingFace; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, HuggingFaceServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case HuggingFaceServiceType.HuggingFace: + writer.WriteStringValue("hugging_face"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(HuggingFaceTaskTypeConverter))] +public enum HuggingFaceTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding +} + +internal sealed class HuggingFaceTaskTypeConverter : JsonConverter +{ + public override HuggingFaceTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return HuggingFaceTaskType.TextEmbedding; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, HuggingFaceTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case HuggingFaceTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(JinaAIServiceTypeConverter))] +public enum JinaAIServiceType +{ + [EnumMember(Value = "jinaai")] + Jinaai +} + +internal sealed class JinaAIServiceTypeConverter : JsonConverter +{ + public override JinaAIServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "jinaai": + return JinaAIServiceType.Jinaai; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, JinaAIServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case JinaAIServiceType.Jinaai: + writer.WriteStringValue("jinaai"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(JinaAISimilarityTypeConverter))] +public enum JinaAISimilarityType +{ + [EnumMember(Value = "l2_norm")] + L2Norm, + [EnumMember(Value = "dot_product")] + DotProduct, + [EnumMember(Value = "cosine")] + Cosine +} + +internal sealed class JinaAISimilarityTypeConverter : JsonConverter +{ + public override JinaAISimilarityType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "l2_norm": + return JinaAISimilarityType.L2Norm; + case "dot_product": + return JinaAISimilarityType.DotProduct; + case "cosine": + return JinaAISimilarityType.Cosine; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, JinaAISimilarityType value, JsonSerializerOptions options) + { + switch (value) + { + case JinaAISimilarityType.L2Norm: + writer.WriteStringValue("l2_norm"); + return; + case JinaAISimilarityType.DotProduct: + writer.WriteStringValue("dot_product"); + return; + case JinaAISimilarityType.Cosine: + writer.WriteStringValue("cosine"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(JinaAITaskTypeConverter))] +public enum JinaAITaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "rerank")] + Rerank +} + +internal sealed class JinaAITaskTypeConverter : JsonConverter +{ + public override JinaAITaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return JinaAITaskType.TextEmbedding; + case "rerank": + return JinaAITaskType.Rerank; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, JinaAITaskType value, JsonSerializerOptions options) + { + switch (value) + { + case JinaAITaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case JinaAITaskType.Rerank: + writer.WriteStringValue("rerank"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(JinaAITextEmbeddingTaskConverter))] +public enum JinaAITextEmbeddingTask +{ + [EnumMember(Value = "search")] + Search, + [EnumMember(Value = "ingest")] + Ingest, + [EnumMember(Value = "clustering")] + Clustering, + [EnumMember(Value = "classification")] + Classification +} + +internal sealed class JinaAITextEmbeddingTaskConverter : JsonConverter +{ + public override JinaAITextEmbeddingTask Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "search": + return JinaAITextEmbeddingTask.Search; + case "ingest": + return JinaAITextEmbeddingTask.Ingest; + case "clustering": + return JinaAITextEmbeddingTask.Clustering; + case "classification": + return JinaAITextEmbeddingTask.Classification; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, JinaAITextEmbeddingTask value, JsonSerializerOptions options) + { + switch (value) + { + case JinaAITextEmbeddingTask.Search: + writer.WriteStringValue("search"); + return; + case JinaAITextEmbeddingTask.Ingest: + writer.WriteStringValue("ingest"); + return; + case JinaAITextEmbeddingTask.Clustering: + writer.WriteStringValue("clustering"); + return; + case JinaAITextEmbeddingTask.Classification: + writer.WriteStringValue("classification"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(MistralServiceTypeConverter))] +public enum MistralServiceType +{ + [EnumMember(Value = "mistral")] + Mistral +} + +internal sealed class MistralServiceTypeConverter : JsonConverter +{ + public override MistralServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "mistral": + return MistralServiceType.Mistral; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, MistralServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case MistralServiceType.Mistral: + writer.WriteStringValue("mistral"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(MistralTaskTypeConverter))] +public enum MistralTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding +} + +internal sealed class MistralTaskTypeConverter : JsonConverter +{ + public override MistralTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return MistralTaskType.TextEmbedding; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, MistralTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case MistralTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(OpenAIServiceTypeConverter))] +public enum OpenAIServiceType +{ + [EnumMember(Value = "openai")] + Openai +} + +internal sealed class OpenAIServiceTypeConverter : JsonConverter +{ + public override OpenAIServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "openai": + return OpenAIServiceType.Openai; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, OpenAIServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case OpenAIServiceType.Openai: + writer.WriteStringValue("openai"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(OpenAITaskTypeConverter))] +public enum OpenAITaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "completion")] + Completion, + [EnumMember(Value = "chat_completion")] + ChatCompletion +} + +internal sealed class OpenAITaskTypeConverter : JsonConverter +{ + public override OpenAITaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return OpenAITaskType.TextEmbedding; + case "completion": + return OpenAITaskType.Completion; + case "chat_completion": + return OpenAITaskType.ChatCompletion; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, OpenAITaskType value, JsonSerializerOptions options) + { + switch (value) + { + case OpenAITaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case OpenAITaskType.Completion: + writer.WriteStringValue("completion"); + return; + case OpenAITaskType.ChatCompletion: + writer.WriteStringValue("chat_completion"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(TaskTypeConverter))] public enum TaskType { @@ -38,7 +1431,9 @@ public enum TaskType [EnumMember(Value = "rerank")] Rerank, [EnumMember(Value = "completion")] - Completion + Completion, + [EnumMember(Value = "chat_completion")] + ChatCompletion } internal sealed class TaskTypeConverter : JsonConverter @@ -56,6 +1451,8 @@ public override TaskType Read(ref Utf8JsonReader reader, Type typeToConvert, Jso return TaskType.Rerank; case "completion": return TaskType.Completion; + case "chat_completion": + return TaskType.ChatCompletion; } ThrowHelper.ThrowJsonException(); @@ -78,6 +1475,79 @@ public override void Write(Utf8JsonWriter writer, TaskType value, JsonSerializer case TaskType.Completion: writer.WriteStringValue("completion"); return; + case TaskType.ChatCompletion: + writer.WriteStringValue("chat_completion"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(WatsonxServiceTypeConverter))] +public enum WatsonxServiceType +{ + [EnumMember(Value = "watsonxai")] + Watsonxai +} + +internal sealed class WatsonxServiceTypeConverter : JsonConverter +{ + public override WatsonxServiceType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "watsonxai": + return WatsonxServiceType.Watsonxai; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, WatsonxServiceType value, JsonSerializerOptions options) + { + switch (value) + { + case WatsonxServiceType.Watsonxai: + writer.WriteStringValue("watsonxai"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(WatsonxTaskTypeConverter))] +public enum WatsonxTaskType +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding +} + +internal sealed class WatsonxTaskTypeConverter : JsonConverter +{ + public override WatsonxTaskType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return WatsonxTaskType.TextEmbedding; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, WatsonxTaskType value, JsonSerializerOptions options) + { + switch (value) + { + case WatsonxTaskType.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; } writer.WriteNullValue(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs index 6e2a0890436..d8faf45b48b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Ingest.g.cs @@ -318,6 +318,69 @@ public override void Write(Utf8JsonWriter writer, JsonProcessorConflictStrategy } } +[JsonConverter(typeof(PipelineSimulationStatusOptionsConverter))] +public enum PipelineSimulationStatusOptions +{ + [EnumMember(Value = "success")] + Success, + [EnumMember(Value = "skipped")] + Skipped, + [EnumMember(Value = "error_ignored")] + ErrorIgnored, + [EnumMember(Value = "error")] + Error, + [EnumMember(Value = "dropped")] + Dropped +} + +internal sealed class PipelineSimulationStatusOptionsConverter : JsonConverter +{ + public override PipelineSimulationStatusOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "success": + return PipelineSimulationStatusOptions.Success; + case "skipped": + return PipelineSimulationStatusOptions.Skipped; + case "error_ignored": + return PipelineSimulationStatusOptions.ErrorIgnored; + case "error": + return PipelineSimulationStatusOptions.Error; + case "dropped": + return PipelineSimulationStatusOptions.Dropped; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, PipelineSimulationStatusOptions value, JsonSerializerOptions options) + { + switch (value) + { + case PipelineSimulationStatusOptions.Success: + writer.WriteStringValue("success"); + return; + case PipelineSimulationStatusOptions.Skipped: + writer.WriteStringValue("skipped"); + return; + case PipelineSimulationStatusOptions.ErrorIgnored: + writer.WriteStringValue("error_ignored"); + return; + case PipelineSimulationStatusOptions.Error: + writer.WriteStringValue("error"); + return; + case PipelineSimulationStatusOptions.Dropped: + writer.WriteStringValue("dropped"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(ShapeTypeConverter))] public enum ShapeType { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index 97f25205c22..e19a96d62bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -150,7 +150,26 @@ public enum DenseVectorIndexOptionsType /// /// [EnumMember(Value = "flat")] - Flat + Flat, + /// + /// + /// This utilizes the HNSW algorithm in addition to automatic binary quantization for scalable approximate kNN + /// search with element_type of float. + /// + /// + /// This can reduce the memory footprint by nearly 32x at the cost of some accuracy. + /// + /// + [EnumMember(Value = "bbq_hnsw")] + BbqHnsw, + /// + /// + /// This utilizes a brute-force search algorithm in addition to automatically quantizing to binary vectors. + /// Only supports element_type of float. + /// + /// + [EnumMember(Value = "bbq_flat")] + BbqFlat } internal sealed class DenseVectorIndexOptionsTypeConverter : JsonConverter @@ -172,6 +191,10 @@ public override DenseVectorIndexOptionsType Read(ref Utf8JsonReader reader, Type return DenseVectorIndexOptionsType.Hnsw; case "flat": return DenseVectorIndexOptionsType.Flat; + case "bbq_hnsw": + return DenseVectorIndexOptionsType.BbqHnsw; + case "bbq_flat": + return DenseVectorIndexOptionsType.BbqFlat; } ThrowHelper.ThrowJsonException(); @@ -200,6 +223,12 @@ public override void Write(Utf8JsonWriter writer, DenseVectorIndexOptionsType va case DenseVectorIndexOptionsType.Flat: writer.WriteStringValue("flat"); return; + case DenseVectorIndexOptionsType.BbqHnsw: + writer.WriteStringValue("bbq_hnsw"); + return; + case DenseVectorIndexOptionsType.BbqFlat: + writer.WriteStringValue("bbq_flat"); + return; } writer.WriteNullValue(); @@ -403,6 +432,8 @@ public enum FieldType RankFeature, [EnumMember(Value = "percolator")] Percolator, + [EnumMember(Value = "passthrough")] + Passthrough, [EnumMember(Value = "object")] Object, [EnumMember(Value = "none")] @@ -457,6 +488,8 @@ public enum FieldType DateNanos, [EnumMember(Value = "date")] Date, + [EnumMember(Value = "counted_keyword")] + CountedKeyword, [EnumMember(Value = "constant_keyword")] ConstantKeyword, [EnumMember(Value = "completion")] @@ -504,6 +537,8 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.RankFeature; case "percolator": return FieldType.Percolator; + case "passthrough": + return FieldType.Passthrough; case "object": return FieldType.Object; case "none": @@ -558,6 +593,8 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.DateNanos; case "date": return FieldType.Date; + case "counted_keyword": + return FieldType.CountedKeyword; case "constant_keyword": return FieldType.ConstantKeyword; case "completion": @@ -618,6 +655,9 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Percolator: writer.WriteStringValue("percolator"); return; + case FieldType.Passthrough: + writer.WriteStringValue("passthrough"); + return; case FieldType.Object: writer.WriteStringValue("object"); return; @@ -699,6 +739,9 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Date: writer.WriteStringValue("date"); return; + case FieldType.CountedKeyword: + writer.WriteStringValue("counted_keyword"); + return; case FieldType.ConstantKeyword: writer.WriteStringValue("constant_keyword"); return; @@ -967,6 +1010,8 @@ public enum RuntimeFieldType Keyword, [EnumMember(Value = "ip")] Ip, + [EnumMember(Value = "geo_shape")] + GeoShape, [EnumMember(Value = "geo_point")] GeoPoint, [EnumMember(Value = "double")] @@ -994,6 +1039,8 @@ public override RuntimeFieldType Read(ref Utf8JsonReader reader, Type typeToConv return RuntimeFieldType.Keyword; case "ip": return RuntimeFieldType.Ip; + case "geo_shape": + return RuntimeFieldType.GeoShape; case "geo_point": return RuntimeFieldType.GeoPoint; case "double": @@ -1026,6 +1073,9 @@ public override void Write(Utf8JsonWriter writer, RuntimeFieldType value, JsonSe case RuntimeFieldType.Ip: writer.WriteStringValue("ip"); return; + case RuntimeFieldType.GeoShape: + writer.WriteStringValue("geo_shape"); + return; case RuntimeFieldType.GeoPoint: writer.WriteStringValue("geo_point"); return; @@ -1102,6 +1152,55 @@ public override void Write(Utf8JsonWriter writer, SourceFieldMode value, JsonSer } } +[JsonConverter(typeof(SubobjectsConverter))] +public enum Subobjects +{ + [EnumMember(Value = "true")] + True, + [EnumMember(Value = "false")] + False, + [EnumMember(Value = "auto")] + Auto +} + +internal sealed class SubobjectsConverter : JsonConverter +{ + public override Subobjects Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "true": + return Subobjects.True; + case "false": + return Subobjects.False; + case "auto": + return Subobjects.Auto; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, Subobjects value, JsonSerializerOptions options) + { + switch (value) + { + case Subobjects.True: + writer.WriteStringValue("true"); + return; + case Subobjects.False: + writer.WriteStringValue("false"); + return; + case Subobjects.Auto: + writer.WriteStringValue("auto"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(SyntheticSourceKeepEnumConverter))] public enum SyntheticSourceKeepEnum { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs deleted file mode 100644 index fdb9af07820..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Watcher.g.cs +++ /dev/null @@ -1,85 +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.Core; -using Elastic.Clients.Elasticsearch.Serialization; -using Elastic.Transport; -using System; -using System.Runtime.Serialization; -using System.Text; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Watcher; - -[JsonConverter(typeof(ActionStatusOptionsConverter))] -public enum ActionStatusOptions -{ - [EnumMember(Value = "throttled")] - Throttled, - [EnumMember(Value = "success")] - Success, - [EnumMember(Value = "simulated")] - Simulated, - [EnumMember(Value = "failure")] - Failure -} - -internal sealed class ActionStatusOptionsConverter : JsonConverter -{ - public override ActionStatusOptions Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - var enumString = reader.GetString(); - switch (enumString) - { - case "throttled": - return ActionStatusOptions.Throttled; - case "success": - return ActionStatusOptions.Success; - case "simulated": - return ActionStatusOptions.Simulated; - case "failure": - return ActionStatusOptions.Failure; - } - - ThrowHelper.ThrowJsonException(); - return default; - } - - public override void Write(Utf8JsonWriter writer, ActionStatusOptions value, JsonSerializerOptions options) - { - switch (value) - { - case ActionStatusOptions.Throttled: - writer.WriteStringValue("throttled"); - return; - case ActionStatusOptions.Success: - writer.WriteStringValue("success"); - return; - case ActionStatusOptions.Simulated: - writer.WriteStringValue("simulated"); - return; - case ActionStatusOptions.Failure: - writer.WriteStringValue("failure"); - return; - } - - writer.WriteNullValue(); - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs index 467552231b7..343bea7624a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Fuzziness.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch; /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Fuzziness : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs new file mode 100644 index 00000000000..3c019ebf2ce --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/CreateFrom.g.cs @@ -0,0 +1,315 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class CreateFrom +{ + /// + /// + /// Mappings overrides to be applied to the destination index (optional) + /// + /// + [JsonInclude, JsonPropertyName("mappings_override")] + public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsOverride { get; set; } + + /// + /// + /// If index blocks should be removed when creating destination index (optional) + /// + /// + [JsonInclude, JsonPropertyName("remove_index_blocks")] + public bool? RemoveIndexBlocks { get; set; } + + /// + /// + /// Settings overrides to be applied to the destination index (optional) + /// + /// + [JsonInclude, JsonPropertyName("settings_override")] + public Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsOverride { get; set; } +} + +public sealed partial class CreateFromDescriptor : SerializableDescriptor> +{ + internal CreateFromDescriptor(Action> configure) => configure.Invoke(this); + + public CreateFromDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsOverrideValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingsOverrideDescriptor { get; set; } + private Action> MappingsOverrideDescriptorAction { get; set; } + private bool? RemoveIndexBlocksValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsOverrideValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsOverrideDescriptor { get; set; } + private Action> SettingsOverrideDescriptorAction { get; set; } + + /// + /// + /// Mappings overrides to be applied to the destination index (optional) + /// + /// + public CreateFromDescriptor MappingsOverride(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappingsOverride) + { + MappingsOverrideDescriptor = null; + MappingsOverrideDescriptorAction = null; + MappingsOverrideValue = mappingsOverride; + return Self; + } + + public CreateFromDescriptor MappingsOverride(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingsOverrideValue = null; + MappingsOverrideDescriptorAction = null; + MappingsOverrideDescriptor = descriptor; + return Self; + } + + public CreateFromDescriptor MappingsOverride(Action> configure) + { + MappingsOverrideValue = null; + MappingsOverrideDescriptor = null; + MappingsOverrideDescriptorAction = configure; + return Self; + } + + /// + /// + /// If index blocks should be removed when creating destination index (optional) + /// + /// + public CreateFromDescriptor RemoveIndexBlocks(bool? removeIndexBlocks = true) + { + RemoveIndexBlocksValue = removeIndexBlocks; + return Self; + } + + /// + /// + /// Settings overrides to be applied to the destination index (optional) + /// + /// + public CreateFromDescriptor SettingsOverride(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settingsOverride) + { + SettingsOverrideDescriptor = null; + SettingsOverrideDescriptorAction = null; + SettingsOverrideValue = settingsOverride; + return Self; + } + + public CreateFromDescriptor SettingsOverride(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsOverrideValue = null; + SettingsOverrideDescriptorAction = null; + SettingsOverrideDescriptor = descriptor; + return Self; + } + + public CreateFromDescriptor SettingsOverride(Action> configure) + { + SettingsOverrideValue = null; + SettingsOverrideDescriptor = null; + SettingsOverrideDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MappingsOverrideDescriptor is not null) + { + writer.WritePropertyName("mappings_override"); + JsonSerializer.Serialize(writer, MappingsOverrideDescriptor, options); + } + else if (MappingsOverrideDescriptorAction is not null) + { + writer.WritePropertyName("mappings_override"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingsOverrideDescriptorAction), options); + } + else if (MappingsOverrideValue is not null) + { + writer.WritePropertyName("mappings_override"); + JsonSerializer.Serialize(writer, MappingsOverrideValue, options); + } + + if (RemoveIndexBlocksValue.HasValue) + { + writer.WritePropertyName("remove_index_blocks"); + writer.WriteBooleanValue(RemoveIndexBlocksValue.Value); + } + + if (SettingsOverrideDescriptor is not null) + { + writer.WritePropertyName("settings_override"); + JsonSerializer.Serialize(writer, SettingsOverrideDescriptor, options); + } + else if (SettingsOverrideDescriptorAction is not null) + { + writer.WritePropertyName("settings_override"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsOverrideDescriptorAction), options); + } + else if (SettingsOverrideValue is not null) + { + writer.WritePropertyName("settings_override"); + JsonSerializer.Serialize(writer, SettingsOverrideValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class CreateFromDescriptor : SerializableDescriptor +{ + internal CreateFromDescriptor(Action configure) => configure.Invoke(this); + + public CreateFromDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsOverrideValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor MappingsOverrideDescriptor { get; set; } + private Action MappingsOverrideDescriptorAction { get; set; } + private bool? RemoveIndexBlocksValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? SettingsOverrideValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor SettingsOverrideDescriptor { get; set; } + private Action SettingsOverrideDescriptorAction { get; set; } + + /// + /// + /// Mappings overrides to be applied to the destination index (optional) + /// + /// + public CreateFromDescriptor MappingsOverride(Elastic.Clients.Elasticsearch.Mapping.TypeMapping? mappingsOverride) + { + MappingsOverrideDescriptor = null; + MappingsOverrideDescriptorAction = null; + MappingsOverrideValue = mappingsOverride; + return Self; + } + + public CreateFromDescriptor MappingsOverride(Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor descriptor) + { + MappingsOverrideValue = null; + MappingsOverrideDescriptorAction = null; + MappingsOverrideDescriptor = descriptor; + return Self; + } + + public CreateFromDescriptor MappingsOverride(Action configure) + { + MappingsOverrideValue = null; + MappingsOverrideDescriptor = null; + MappingsOverrideDescriptorAction = configure; + return Self; + } + + /// + /// + /// If index blocks should be removed when creating destination index (optional) + /// + /// + public CreateFromDescriptor RemoveIndexBlocks(bool? removeIndexBlocks = true) + { + RemoveIndexBlocksValue = removeIndexBlocks; + return Self; + } + + /// + /// + /// Settings overrides to be applied to the destination index (optional) + /// + /// + public CreateFromDescriptor SettingsOverride(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettings? settingsOverride) + { + SettingsOverrideDescriptor = null; + SettingsOverrideDescriptorAction = null; + SettingsOverrideValue = settingsOverride; + return Self; + } + + public CreateFromDescriptor SettingsOverride(Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor descriptor) + { + SettingsOverrideValue = null; + SettingsOverrideDescriptorAction = null; + SettingsOverrideDescriptor = descriptor; + return Self; + } + + public CreateFromDescriptor SettingsOverride(Action configure) + { + SettingsOverrideValue = null; + SettingsOverrideDescriptor = null; + SettingsOverrideDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MappingsOverrideDescriptor is not null) + { + writer.WritePropertyName("mappings_override"); + JsonSerializer.Serialize(writer, MappingsOverrideDescriptor, options); + } + else if (MappingsOverrideDescriptorAction is not null) + { + writer.WritePropertyName("mappings_override"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Mapping.TypeMappingDescriptor(MappingsOverrideDescriptorAction), options); + } + else if (MappingsOverrideValue is not null) + { + writer.WritePropertyName("mappings_override"); + JsonSerializer.Serialize(writer, MappingsOverrideValue, options); + } + + if (RemoveIndexBlocksValue.HasValue) + { + writer.WritePropertyName("remove_index_blocks"); + writer.WriteBooleanValue(RemoveIndexBlocksValue.Value); + } + + if (SettingsOverrideDescriptor is not null) + { + writer.WritePropertyName("settings_override"); + JsonSerializer.Serialize(writer, SettingsOverrideDescriptor, options); + } + else if (SettingsOverrideDescriptorAction is not null) + { + writer.WritePropertyName("settings_override"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.IndexSettingsDescriptor(SettingsOverrideDescriptorAction), options); + } + else if (SettingsOverrideValue is not null) + { + writer.WritePropertyName("settings_override"); + JsonSerializer.Serialize(writer, SettingsOverrideValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index bde86c5aa76..af6ef53abc5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -34,10 +34,32 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// public sealed partial class DataStreamLifecycle { + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } + + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } } /// @@ -57,13 +79,26 @@ public DataStreamLifecycleDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } private Action DownsamplingDescriptorAction { get; set; } + private bool? EnabledValue { get; set; } + /// + /// + /// If defined, every document added to this data stream will be stored at least for this time frame. + /// Any time after this duration the document could be deleted. + /// When empty, every document in this data stream will be stored indefinitely. + /// + /// public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) { DataRetentionValue = dataRetention; return Self; } + /// + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + /// public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) { DownsamplingDescriptor = null; @@ -88,6 +123,18 @@ public DataStreamLifecycleDescriptor Downsampling(Action + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + public DataStreamLifecycleDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -113,6 +160,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DownsamplingValue, options); } + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index faa19347cfc..4177ca74ce4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -53,6 +53,15 @@ public sealed partial class DataStreamLifecycleWithRollover [JsonInclude, JsonPropertyName("downsampling")] public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } + /// + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + /// /// /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. @@ -82,6 +91,7 @@ public DataStreamLifecycleWithRolloverDescriptor() : base() private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } private Action DownsamplingDescriptorAction { get; set; } + private bool? EnabledValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditions? RolloverValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditionsDescriptor RolloverDescriptor { get; set; } private Action RolloverDescriptorAction { get; set; } @@ -128,6 +138,18 @@ public DataStreamLifecycleWithRolloverDescriptor Downsampling(Action + /// + /// If defined, it turns data stream lifecycle on/off (true/false) for this data stream. A data stream lifecycle + /// that's disabled (enabled: false) will have no effect on the data stream. + /// + /// + public DataStreamLifecycleWithRolloverDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + /// /// /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting cluster.lifecycle.default.rollover. @@ -184,6 +206,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DownsamplingValue, options); } + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + if (RolloverDescriptor is not null) { writer.WritePropertyName("rollover"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs index f1f55abf69b..68c2b4ced4b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class DataStreamWithLifecycle { [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } [JsonInclude, JsonPropertyName("name")] public string Name { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs index 85cb6c2f4ac..6afbf7711ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -739,7 +739,7 @@ public override void Write(Utf8JsonWriter writer, IndexSettings value, JsonSeria } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// [JsonConverter(typeof(IndexSettingsConverter))] public sealed partial class IndexSettings @@ -840,7 +840,7 @@ public sealed partial class IndexSettings } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor> { @@ -2277,7 +2277,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class IndexSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs index 98ed5d32891..7a5fe9311bd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MappingLimitSettings.g.cs @@ -31,7 +31,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettings { @@ -59,7 +59,7 @@ public sealed partial class MappingLimitSettings /// /// Mapping Limit Settings /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class MappingLimitSettingsDescriptor : SerializableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs new file mode 100644 index 00000000000..0a2c954c0c5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/MigrateReindex.g.cs @@ -0,0 +1,125 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class MigrateReindex +{ + /// + /// + /// Reindex mode. Currently only 'upgrade' is supported. + /// + /// + [JsonInclude, JsonPropertyName("mode")] + public Elastic.Clients.Elasticsearch.IndexManagement.ModeEnum Mode { get; set; } + + /// + /// + /// The source index or data stream (only data streams are currently supported). + /// + /// + [JsonInclude, JsonPropertyName("source")] + public Elastic.Clients.Elasticsearch.IndexManagement.SourceIndex Source { get; set; } +} + +public sealed partial class MigrateReindexDescriptor : SerializableDescriptor +{ + internal MigrateReindexDescriptor(Action configure) => configure.Invoke(this); + + public MigrateReindexDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.IndexManagement.ModeEnum ModeValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.SourceIndex SourceValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.SourceIndexDescriptor SourceDescriptor { get; set; } + private Action SourceDescriptorAction { get; set; } + + /// + /// + /// Reindex mode. Currently only 'upgrade' is supported. + /// + /// + public MigrateReindexDescriptor Mode(Elastic.Clients.Elasticsearch.IndexManagement.ModeEnum mode) + { + ModeValue = mode; + return Self; + } + + /// + /// + /// The source index or data stream (only data streams are currently supported). + /// + /// + public MigrateReindexDescriptor Source(Elastic.Clients.Elasticsearch.IndexManagement.SourceIndex source) + { + SourceDescriptor = null; + SourceDescriptorAction = null; + SourceValue = source; + return Self; + } + + public MigrateReindexDescriptor Source(Elastic.Clients.Elasticsearch.IndexManagement.SourceIndexDescriptor descriptor) + { + SourceValue = null; + SourceDescriptorAction = null; + SourceDescriptor = descriptor; + return Self; + } + + public MigrateReindexDescriptor Source(Action configure) + { + SourceValue = null; + SourceDescriptor = null; + SourceDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("mode"); + JsonSerializer.Serialize(writer, ModeValue, options); + if (SourceDescriptor is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceDescriptor, options); + } + else if (SourceDescriptorAction is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.IndexManagement.SourceIndexDescriptor(SourceDescriptorAction), options); + } + else + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs new file mode 100644 index 00000000000..96d07a9e320 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/SourceIndex.g.cs @@ -0,0 +1,59 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class SourceIndex +{ + [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } +} + +public sealed partial class SourceIndexDescriptor : SerializableDescriptor +{ + internal SourceIndexDescriptor(Action configure) => configure.Invoke(this); + + public SourceIndexDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.IndexName IndexValue { get; set; } + + public SourceIndexDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + IndexValue = index; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs new file mode 100644 index 00000000000..d90d45e1be5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusError.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class StatusError +{ + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("message")] + public string Message { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs new file mode 100644 index 00000000000..1c5dbab3a8f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/StatusInProgress.g.cs @@ -0,0 +1,38 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class StatusInProgress +{ + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("reindexed_doc_count")] + public long ReindexedDocCount { get; init; } + [JsonInclude, JsonPropertyName("total_doc_count")] + public long TotalDocCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs new file mode 100644 index 00000000000..ecccc08ea9a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AdaptiveAllocations.g.cs @@ -0,0 +1,131 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AdaptiveAllocations +{ + /// + /// + /// Turn on adaptive_allocations. + /// + /// + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// + /// The maximum number of allocations to scale to. + /// If set, it must be greater than or equal to min_number_of_allocations. + /// + /// + [JsonInclude, JsonPropertyName("max_number_of_allocations")] + public int? MaxNumberOfAllocations { get; set; } + + /// + /// + /// The minimum number of allocations to scale to. + /// If set, it must be greater than or equal to 0. + /// If not defined, the deployment scales to 0. + /// + /// + [JsonInclude, JsonPropertyName("min_number_of_allocations")] + public int? MinNumberOfAllocations { get; set; } +} + +public sealed partial class AdaptiveAllocationsDescriptor : SerializableDescriptor +{ + internal AdaptiveAllocationsDescriptor(Action configure) => configure.Invoke(this); + + public AdaptiveAllocationsDescriptor() : base() + { + } + + private bool? EnabledValue { get; set; } + private int? MaxNumberOfAllocationsValue { get; set; } + private int? MinNumberOfAllocationsValue { get; set; } + + /// + /// + /// Turn on adaptive_allocations. + /// + /// + public AdaptiveAllocationsDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + /// + /// + /// The maximum number of allocations to scale to. + /// If set, it must be greater than or equal to min_number_of_allocations. + /// + /// + public AdaptiveAllocationsDescriptor MaxNumberOfAllocations(int? maxNumberOfAllocations) + { + MaxNumberOfAllocationsValue = maxNumberOfAllocations; + return Self; + } + + /// + /// + /// The minimum number of allocations to scale to. + /// If set, it must be greater than or equal to 0. + /// If not defined, the deployment scales to 0. + /// + /// + public AdaptiveAllocationsDescriptor MinNumberOfAllocations(int? minNumberOfAllocations) + { + MinNumberOfAllocationsValue = minNumberOfAllocations; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (MaxNumberOfAllocationsValue.HasValue) + { + writer.WritePropertyName("max_number_of_allocations"); + writer.WriteNumberValue(MaxNumberOfAllocationsValue.Value); + } + + if (MinNumberOfAllocationsValue.HasValue) + { + writer.WritePropertyName("min_number_of_allocations"); + writer.WriteNumberValue(MinNumberOfAllocationsValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs new file mode 100644 index 00000000000..84676285672 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudServiceSettings.g.cs @@ -0,0 +1,299 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AlibabaCloudServiceSettings +{ + /// + /// + /// A valid API key for the AlibabaCloud AI Search API. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The name of the host address used for the inference task. + /// You can find the host address in the API keys section of the documentation. + /// + /// + [JsonInclude, JsonPropertyName("host")] + public string Host { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search. + /// By default, the alibabacloud-ai-search service sets the number of requests allowed per minute to 1000. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The name of the model service to use for the inference task. + /// The following service IDs are available for the completion task: + /// + /// + /// + /// + /// ops-qwen-turbo + /// + /// + /// + /// + /// qwen-turbo + /// + /// + /// + /// + /// qwen-plus + /// + /// + /// + /// + /// qwen-max ÷ qwen-max-longcontext + /// + /// + /// + /// + /// The following service ID is available for the rerank task: + /// + /// + /// + /// + /// ops-bge-reranker-larger + /// + /// + /// + /// + /// The following service ID is available for the sparse_embedding task: + /// + /// + /// + /// + /// ops-text-sparse-embedding-001 + /// + /// + /// + /// + /// The following service IDs are available for the text_embedding task: + /// + /// + /// ops-text-embedding-001 + /// ops-text-embedding-zh-001 + /// ops-text-embedding-en-001 + /// ops-text-embedding-002 + /// + /// + [JsonInclude, JsonPropertyName("service_id")] + public string ServiceId { get; set; } + + /// + /// + /// The name of the workspace used for the inference task. + /// + /// + [JsonInclude, JsonPropertyName("workspace")] + public string Workspace { get; set; } +} + +public sealed partial class AlibabaCloudServiceSettingsDescriptor : SerializableDescriptor +{ + internal AlibabaCloudServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AlibabaCloudServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private string HostValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string ServiceIdValue { get; set; } + private string WorkspaceValue { get; set; } + + /// + /// + /// A valid API key for the AlibabaCloud AI Search API. + /// + /// + public AlibabaCloudServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The name of the host address used for the inference task. + /// You can find the host address in the API keys section of the documentation. + /// + /// + public AlibabaCloudServiceSettingsDescriptor Host(string host) + { + HostValue = host; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search. + /// By default, the alibabacloud-ai-search service sets the number of requests allowed per minute to 1000. + /// + /// + public AlibabaCloudServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public AlibabaCloudServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public AlibabaCloudServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The name of the model service to use for the inference task. + /// The following service IDs are available for the completion task: + /// + /// + /// + /// + /// ops-qwen-turbo + /// + /// + /// + /// + /// qwen-turbo + /// + /// + /// + /// + /// qwen-plus + /// + /// + /// + /// + /// qwen-max ÷ qwen-max-longcontext + /// + /// + /// + /// + /// The following service ID is available for the rerank task: + /// + /// + /// + /// + /// ops-bge-reranker-larger + /// + /// + /// + /// + /// The following service ID is available for the sparse_embedding task: + /// + /// + /// + /// + /// ops-text-sparse-embedding-001 + /// + /// + /// + /// + /// The following service IDs are available for the text_embedding task: + /// + /// + /// ops-text-embedding-001 + /// ops-text-embedding-zh-001 + /// ops-text-embedding-en-001 + /// ops-text-embedding-002 + /// + /// + public AlibabaCloudServiceSettingsDescriptor ServiceId(string serviceId) + { + ServiceIdValue = serviceId; + return Self; + } + + /// + /// + /// The name of the workspace used for the inference task. + /// + /// + public AlibabaCloudServiceSettingsDescriptor Workspace(string workspace) + { + WorkspaceValue = workspace; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + writer.WritePropertyName("host"); + writer.WriteStringValue(HostValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("service_id"); + writer.WriteStringValue(ServiceIdValue); + writer.WritePropertyName("workspace"); + writer.WriteStringValue(WorkspaceValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs new file mode 100644 index 00000000000..a7a4405ab8b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AlibabaCloudTaskSettings.g.cs @@ -0,0 +1,127 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AlibabaCloudTaskSettings +{ + /// + /// + /// For a sparse_embedding or text_embedding task, specify the type of input passed to the model. + /// Valid values are: + /// + /// + /// + /// + /// ingest for storing document embeddings in a vector database. + /// + /// + /// + /// + /// search for storing embeddings of search queries run against a vector database to find relevant documents. + /// + /// + /// + /// + [JsonInclude, JsonPropertyName("input_type")] + public string? InputType { get; set; } + + /// + /// + /// For a sparse_embedding task, it affects whether the token name will be returned in the response. + /// It defaults to false, which means only the token ID will be returned in the response. + /// + /// + [JsonInclude, JsonPropertyName("return_token")] + public bool? ReturnToken { get; set; } +} + +public sealed partial class AlibabaCloudTaskSettingsDescriptor : SerializableDescriptor +{ + internal AlibabaCloudTaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AlibabaCloudTaskSettingsDescriptor() : base() + { + } + + private string? InputTypeValue { get; set; } + private bool? ReturnTokenValue { get; set; } + + /// + /// + /// For a sparse_embedding or text_embedding task, specify the type of input passed to the model. + /// Valid values are: + /// + /// + /// + /// + /// ingest for storing document embeddings in a vector database. + /// + /// + /// + /// + /// search for storing embeddings of search queries run against a vector database to find relevant documents. + /// + /// + /// + /// + public AlibabaCloudTaskSettingsDescriptor InputType(string? inputType) + { + InputTypeValue = inputType; + return Self; + } + + /// + /// + /// For a sparse_embedding task, it affects whether the token name will be returned in the response. + /// It defaults to false, which means only the token ID will be returned in the response. + /// + /// + public AlibabaCloudTaskSettingsDescriptor ReturnToken(bool? returnToken = true) + { + ReturnTokenValue = returnToken; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(InputTypeValue)) + { + writer.WritePropertyName("input_type"); + writer.WriteStringValue(InputTypeValue); + } + + if (ReturnTokenValue.HasValue) + { + writer.WritePropertyName("return_token"); + writer.WriteBooleanValue(ReturnTokenValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs new file mode 100644 index 00000000000..47e259452cd --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockServiceSettings.g.cs @@ -0,0 +1,295 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AmazonBedrockServiceSettings +{ + /// + /// + /// A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests. + /// + /// + [JsonInclude, JsonPropertyName("access_key")] + public string AccessKey { get; set; } + + /// + /// + /// The base model ID or an ARN to a custom model based on a foundational model. + /// The base model IDs can be found in the Amazon Bedrock documentation. + /// Note that the model ID must be available for the provider chosen and your IAM user must have access to the model. + /// + /// + [JsonInclude, JsonPropertyName("model")] + public string Model { get; set; } + + /// + /// + /// The model provider for your deployment. + /// Note that some providers may support only certain task types. + /// Supported providers include: + /// + /// + /// + /// + /// amazontitan - available for text_embedding and completion task types + /// + /// + /// + /// + /// anthropic - available for completion task type only + /// + /// + /// + /// + /// ai21labs - available for completion task type only + /// + /// + /// + /// + /// cohere - available for text_embedding and completion task types + /// + /// + /// + /// + /// meta - available for completion task type only + /// + /// + /// + /// + /// mistral - available for completion task type only + /// + /// + /// + /// + [JsonInclude, JsonPropertyName("provider")] + public string? Provider { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Watsonx. + /// By default, the watsonxai service sets the number of requests allowed per minute to 120. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The region that your model or ARN is deployed in. + /// The list of available regions per model can be found in the Amazon Bedrock documentation. + /// + /// + [JsonInclude, JsonPropertyName("region")] + public string Region { get; set; } + + /// + /// + /// A valid AWS secret key that is paired with the access_key. + /// For informationg about creating and managing access and secret keys, refer to the AWS documentation. + /// + /// + [JsonInclude, JsonPropertyName("secret_key")] + public string SecretKey { get; set; } +} + +public sealed partial class AmazonBedrockServiceSettingsDescriptor : SerializableDescriptor +{ + internal AmazonBedrockServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AmazonBedrockServiceSettingsDescriptor() : base() + { + } + + private string AccessKeyValue { get; set; } + private string ModelValue { get; set; } + private string? ProviderValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string RegionValue { get; set; } + private string SecretKeyValue { get; set; } + + /// + /// + /// A valid AWS access key that has permissions to use Amazon Bedrock and access to models for inference requests. + /// + /// + public AmazonBedrockServiceSettingsDescriptor AccessKey(string accessKey) + { + AccessKeyValue = accessKey; + return Self; + } + + /// + /// + /// The base model ID or an ARN to a custom model based on a foundational model. + /// The base model IDs can be found in the Amazon Bedrock documentation. + /// Note that the model ID must be available for the provider chosen and your IAM user must have access to the model. + /// + /// + public AmazonBedrockServiceSettingsDescriptor Model(string model) + { + ModelValue = model; + return Self; + } + + /// + /// + /// The model provider for your deployment. + /// Note that some providers may support only certain task types. + /// Supported providers include: + /// + /// + /// + /// + /// amazontitan - available for text_embedding and completion task types + /// + /// + /// + /// + /// anthropic - available for completion task type only + /// + /// + /// + /// + /// ai21labs - available for completion task type only + /// + /// + /// + /// + /// cohere - available for text_embedding and completion task types + /// + /// + /// + /// + /// meta - available for completion task type only + /// + /// + /// + /// + /// mistral - available for completion task type only + /// + /// + /// + /// + public AmazonBedrockServiceSettingsDescriptor Provider(string? provider) + { + ProviderValue = provider; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Watsonx. + /// By default, the watsonxai service sets the number of requests allowed per minute to 120. + /// + /// + public AmazonBedrockServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public AmazonBedrockServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public AmazonBedrockServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The region that your model or ARN is deployed in. + /// The list of available regions per model can be found in the Amazon Bedrock documentation. + /// + /// + public AmazonBedrockServiceSettingsDescriptor Region(string region) + { + RegionValue = region; + return Self; + } + + /// + /// + /// A valid AWS secret key that is paired with the access_key. + /// For informationg about creating and managing access and secret keys, refer to the AWS documentation. + /// + /// + public AmazonBedrockServiceSettingsDescriptor SecretKey(string secretKey) + { + SecretKeyValue = secretKey; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("access_key"); + writer.WriteStringValue(AccessKeyValue); + writer.WritePropertyName("model"); + writer.WriteStringValue(ModelValue); + if (!string.IsNullOrEmpty(ProviderValue)) + { + writer.WritePropertyName("provider"); + writer.WriteStringValue(ProviderValue); + } + + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("region"); + writer.WriteStringValue(RegionValue); + writer.WritePropertyName("secret_key"); + writer.WriteStringValue(SecretKeyValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs new file mode 100644 index 00000000000..a155da4a86a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AmazonBedrockTaskSettings.g.cs @@ -0,0 +1,163 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AmazonBedrockTaskSettings +{ + /// + /// + /// For a completion task, it sets the maximum number for the output tokens to be generated. + /// + /// + [JsonInclude, JsonPropertyName("max_new_tokens")] + public int? MaxNewTokens { get; set; } + + /// + /// + /// For a completion task, it is a number between 0.0 and 1.0 that controls the apparent creativity of the results. + /// At temperature 0.0 the model is most deterministic, at temperature 1.0 most random. + /// It should not be used if top_p or top_k is specified. + /// + /// + [JsonInclude, JsonPropertyName("temperature")] + public float? Temperature { get; set; } + + /// + /// + /// For a completion task, it limits samples to the top-K most likely words, balancing coherence and variability. + /// It is only available for anthropic, cohere, and mistral providers. + /// It is an alternative to temperature; it should not be used if temperature is specified. + /// + /// + [JsonInclude, JsonPropertyName("top_k")] + public float? TopK { get; set; } + + /// + /// + /// For a completion task, it is a number in the range of 0.0 to 1.0, to eliminate low-probability tokens. + /// Top-p uses nucleus sampling to select top tokens whose sum of likelihoods does not exceed a certain value, ensuring both variety and coherence. + /// It is an alternative to temperature; it should not be used if temperature is specified. + /// + /// + [JsonInclude, JsonPropertyName("top_p")] + public float? TopP { get; set; } +} + +public sealed partial class AmazonBedrockTaskSettingsDescriptor : SerializableDescriptor +{ + internal AmazonBedrockTaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AmazonBedrockTaskSettingsDescriptor() : base() + { + } + + private int? MaxNewTokensValue { get; set; } + private float? TemperatureValue { get; set; } + private float? TopKValue { get; set; } + private float? TopPValue { get; set; } + + /// + /// + /// For a completion task, it sets the maximum number for the output tokens to be generated. + /// + /// + public AmazonBedrockTaskSettingsDescriptor MaxNewTokens(int? maxNewTokens) + { + MaxNewTokensValue = maxNewTokens; + return Self; + } + + /// + /// + /// For a completion task, it is a number between 0.0 and 1.0 that controls the apparent creativity of the results. + /// At temperature 0.0 the model is most deterministic, at temperature 1.0 most random. + /// It should not be used if top_p or top_k is specified. + /// + /// + public AmazonBedrockTaskSettingsDescriptor Temperature(float? temperature) + { + TemperatureValue = temperature; + return Self; + } + + /// + /// + /// For a completion task, it limits samples to the top-K most likely words, balancing coherence and variability. + /// It is only available for anthropic, cohere, and mistral providers. + /// It is an alternative to temperature; it should not be used if temperature is specified. + /// + /// + public AmazonBedrockTaskSettingsDescriptor TopK(float? topK) + { + TopKValue = topK; + return Self; + } + + /// + /// + /// For a completion task, it is a number in the range of 0.0 to 1.0, to eliminate low-probability tokens. + /// Top-p uses nucleus sampling to select top tokens whose sum of likelihoods does not exceed a certain value, ensuring both variety and coherence. + /// It is an alternative to temperature; it should not be used if temperature is specified. + /// + /// + public AmazonBedrockTaskSettingsDescriptor TopP(float? topP) + { + TopPValue = topP; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MaxNewTokensValue.HasValue) + { + writer.WritePropertyName("max_new_tokens"); + writer.WriteNumberValue(MaxNewTokensValue.Value); + } + + if (TemperatureValue.HasValue) + { + writer.WritePropertyName("temperature"); + writer.WriteNumberValue(TemperatureValue.Value); + } + + if (TopKValue.HasValue) + { + writer.WritePropertyName("top_k"); + writer.WriteNumberValue(TopKValue.Value); + } + + if (TopPValue.HasValue) + { + writer.WritePropertyName("top_p"); + writer.WriteNumberValue(TopPValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs new file mode 100644 index 00000000000..dbcbb53c1cc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicServiceSettings.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AnthropicServiceSettings +{ + /// + /// + /// A valid API key for the Anthropic API. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Anthropic documentation for the list of supported models. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Anthropic. + /// By default, the anthropic service sets the number of requests allowed per minute to 50. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } +} + +public sealed partial class AnthropicServiceSettingsDescriptor : SerializableDescriptor +{ + internal AnthropicServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AnthropicServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private string ModelIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + + /// + /// + /// A valid API key for the Anthropic API. + /// + /// + public AnthropicServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Anthropic documentation for the list of supported models. + /// + /// + public AnthropicServiceSettingsDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Anthropic. + /// By default, the anthropic service sets the number of requests allowed per minute to 50. + /// + /// + public AnthropicServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public AnthropicServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public AnthropicServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs new file mode 100644 index 00000000000..1f778e14099 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AnthropicTaskSettings.g.cs @@ -0,0 +1,161 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AnthropicTaskSettings +{ + /// + /// + /// For a completion task, it is the maximum number of tokens to generate before stopping. + /// + /// + [JsonInclude, JsonPropertyName("max_tokens")] + public int MaxTokens { get; set; } + + /// + /// + /// For a completion task, it is the amount of randomness injected into the response. + /// For more details about the supported range, refer to Anthropic documentation. + /// + /// + [JsonInclude, JsonPropertyName("temperature")] + public float? Temperature { get; set; } + + /// + /// + /// For a completion task, it specifies to only sample from the top K options for each subsequent token. + /// It is recommended for advanced use cases only. + /// You usually only need to use temperature. + /// + /// + [JsonInclude, JsonPropertyName("top_k")] + public int? TopK { get; set; } + + /// + /// + /// For a completion task, it specifies to use Anthropic's nucleus sampling. + /// In nucleus sampling, Anthropic computes the cumulative distribution over all the options for each subsequent token in decreasing probability order and cuts it off once it reaches the specified probability. + /// You should either alter temperature or top_p, but not both. + /// It is recommended for advanced use cases only. + /// You usually only need to use temperature. + /// + /// + [JsonInclude, JsonPropertyName("top_p")] + public float? TopP { get; set; } +} + +public sealed partial class AnthropicTaskSettingsDescriptor : SerializableDescriptor +{ + internal AnthropicTaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AnthropicTaskSettingsDescriptor() : base() + { + } + + private int MaxTokensValue { get; set; } + private float? TemperatureValue { get; set; } + private int? TopKValue { get; set; } + private float? TopPValue { get; set; } + + /// + /// + /// For a completion task, it is the maximum number of tokens to generate before stopping. + /// + /// + public AnthropicTaskSettingsDescriptor MaxTokens(int maxTokens) + { + MaxTokensValue = maxTokens; + return Self; + } + + /// + /// + /// For a completion task, it is the amount of randomness injected into the response. + /// For more details about the supported range, refer to Anthropic documentation. + /// + /// + public AnthropicTaskSettingsDescriptor Temperature(float? temperature) + { + TemperatureValue = temperature; + return Self; + } + + /// + /// + /// For a completion task, it specifies to only sample from the top K options for each subsequent token. + /// It is recommended for advanced use cases only. + /// You usually only need to use temperature. + /// + /// + public AnthropicTaskSettingsDescriptor TopK(int? topK) + { + TopKValue = topK; + return Self; + } + + /// + /// + /// For a completion task, it specifies to use Anthropic's nucleus sampling. + /// In nucleus sampling, Anthropic computes the cumulative distribution over all the options for each subsequent token in decreasing probability order and cuts it off once it reaches the specified probability. + /// You should either alter temperature or top_p, but not both. + /// It is recommended for advanced use cases only. + /// You usually only need to use temperature. + /// + /// + public AnthropicTaskSettingsDescriptor TopP(float? topP) + { + TopPValue = topP; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("max_tokens"); + writer.WriteNumberValue(MaxTokensValue); + if (TemperatureValue.HasValue) + { + writer.WritePropertyName("temperature"); + writer.WriteNumberValue(TemperatureValue.Value); + } + + if (TopKValue.HasValue) + { + writer.WritePropertyName("top_k"); + writer.WriteNumberValue(TopKValue.Value); + } + + if (TopPValue.HasValue) + { + writer.WritePropertyName("top_p"); + writer.WriteNumberValue(TopPValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs new file mode 100644 index 00000000000..6fe27ea846d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioServiceSettings.g.cs @@ -0,0 +1,281 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AzureAiStudioServiceSettings +{ + /// + /// + /// A valid API key of your Azure AI Studio model deployment. + /// This key can be found on the overview page for your deployment in the management section of your Azure AI Studio account. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The type of endpoint that is available for deployment through Azure AI Studio: token or realtime. + /// The token endpoint type is for "pay as you go" endpoints that are billed per token. + /// The realtime endpoint type is for "real-time" endpoints that are billed per hour of usage. + /// + /// + [JsonInclude, JsonPropertyName("endpoint_type")] + public string EndpointType { get; set; } + + /// + /// + /// The model provider for your deployment. + /// Note that some providers may support only certain task types. + /// Supported providers include: + /// + /// + /// + /// + /// cohere - available for text_embedding and completion task types + /// + /// + /// + /// + /// databricks - available for completion task type only + /// + /// + /// + /// + /// meta - available for completion task type only + /// + /// + /// + /// + /// microsoft_phi - available for completion task type only + /// + /// + /// + /// + /// mistral - available for completion task type only + /// + /// + /// + /// + /// openai - available for text_embedding and completion task types + /// + /// + /// + /// + [JsonInclude, JsonPropertyName("provider")] + public string Provider { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Azure AI Studio. + /// By default, the azureaistudio service sets the number of requests allowed per minute to 240. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The target URL of your Azure AI Studio model deployment. + /// This can be found on the overview page for your deployment in the management section of your Azure AI Studio account. + /// + /// + [JsonInclude, JsonPropertyName("target")] + public string Target { get; set; } +} + +public sealed partial class AzureAiStudioServiceSettingsDescriptor : SerializableDescriptor +{ + internal AzureAiStudioServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AzureAiStudioServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private string EndpointTypeValue { get; set; } + private string ProviderValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string TargetValue { get; set; } + + /// + /// + /// A valid API key of your Azure AI Studio model deployment. + /// This key can be found on the overview page for your deployment in the management section of your Azure AI Studio account. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public AzureAiStudioServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The type of endpoint that is available for deployment through Azure AI Studio: token or realtime. + /// The token endpoint type is for "pay as you go" endpoints that are billed per token. + /// The realtime endpoint type is for "real-time" endpoints that are billed per hour of usage. + /// + /// + public AzureAiStudioServiceSettingsDescriptor EndpointType(string endpointType) + { + EndpointTypeValue = endpointType; + return Self; + } + + /// + /// + /// The model provider for your deployment. + /// Note that some providers may support only certain task types. + /// Supported providers include: + /// + /// + /// + /// + /// cohere - available for text_embedding and completion task types + /// + /// + /// + /// + /// databricks - available for completion task type only + /// + /// + /// + /// + /// meta - available for completion task type only + /// + /// + /// + /// + /// microsoft_phi - available for completion task type only + /// + /// + /// + /// + /// mistral - available for completion task type only + /// + /// + /// + /// + /// openai - available for text_embedding and completion task types + /// + /// + /// + /// + public AzureAiStudioServiceSettingsDescriptor Provider(string provider) + { + ProviderValue = provider; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Azure AI Studio. + /// By default, the azureaistudio service sets the number of requests allowed per minute to 240. + /// + /// + public AzureAiStudioServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public AzureAiStudioServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public AzureAiStudioServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The target URL of your Azure AI Studio model deployment. + /// This can be found on the overview page for your deployment in the management section of your Azure AI Studio account. + /// + /// + public AzureAiStudioServiceSettingsDescriptor Target(string target) + { + TargetValue = target; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + writer.WritePropertyName("endpoint_type"); + writer.WriteStringValue(EndpointTypeValue); + writer.WritePropertyName("provider"); + writer.WriteStringValue(ProviderValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("target"); + writer.WriteStringValue(TargetValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs new file mode 100644 index 00000000000..19e7f325819 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureAiStudioTaskSettings.g.cs @@ -0,0 +1,189 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AzureAiStudioTaskSettings +{ + /// + /// + /// For a completion task, instruct the inference process to perform sampling. + /// It has no effect unless temperature or top_p is specified. + /// + /// + [JsonInclude, JsonPropertyName("do_sample")] + public float? DoSample { get; set; } + + /// + /// + /// For a completion task, provide a hint for the maximum number of output tokens to be generated. + /// + /// + [JsonInclude, JsonPropertyName("max_new_tokens")] + public int? MaxNewTokens { get; set; } + + /// + /// + /// For a completion task, control the apparent creativity of generated completions with a sampling temperature. + /// It must be a number in the range of 0.0 to 2.0. + /// It should not be used if top_p is specified. + /// + /// + [JsonInclude, JsonPropertyName("temperature")] + public float? Temperature { get; set; } + + /// + /// + /// For a completion task, make the model consider the results of the tokens with nucleus sampling probability. + /// It is an alternative value to temperature and must be a number in the range of 0.0 to 2.0. + /// It should not be used if temperature is specified. + /// + /// + [JsonInclude, JsonPropertyName("top_p")] + public float? TopP { get; set; } + + /// + /// + /// For a text_embedding task, specify the user issuing the request. + /// This information can be used for abuse detection. + /// + /// + [JsonInclude, JsonPropertyName("user")] + public string? User { get; set; } +} + +public sealed partial class AzureAiStudioTaskSettingsDescriptor : SerializableDescriptor +{ + internal AzureAiStudioTaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AzureAiStudioTaskSettingsDescriptor() : base() + { + } + + private float? DoSampleValue { get; set; } + private int? MaxNewTokensValue { get; set; } + private float? TemperatureValue { get; set; } + private float? TopPValue { get; set; } + private string? UserValue { get; set; } + + /// + /// + /// For a completion task, instruct the inference process to perform sampling. + /// It has no effect unless temperature or top_p is specified. + /// + /// + public AzureAiStudioTaskSettingsDescriptor DoSample(float? doSample) + { + DoSampleValue = doSample; + return Self; + } + + /// + /// + /// For a completion task, provide a hint for the maximum number of output tokens to be generated. + /// + /// + public AzureAiStudioTaskSettingsDescriptor MaxNewTokens(int? maxNewTokens) + { + MaxNewTokensValue = maxNewTokens; + return Self; + } + + /// + /// + /// For a completion task, control the apparent creativity of generated completions with a sampling temperature. + /// It must be a number in the range of 0.0 to 2.0. + /// It should not be used if top_p is specified. + /// + /// + public AzureAiStudioTaskSettingsDescriptor Temperature(float? temperature) + { + TemperatureValue = temperature; + return Self; + } + + /// + /// + /// For a completion task, make the model consider the results of the tokens with nucleus sampling probability. + /// It is an alternative value to temperature and must be a number in the range of 0.0 to 2.0. + /// It should not be used if temperature is specified. + /// + /// + public AzureAiStudioTaskSettingsDescriptor TopP(float? topP) + { + TopPValue = topP; + return Self; + } + + /// + /// + /// For a text_embedding task, specify the user issuing the request. + /// This information can be used for abuse detection. + /// + /// + public AzureAiStudioTaskSettingsDescriptor User(string? user) + { + UserValue = user; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DoSampleValue.HasValue) + { + writer.WritePropertyName("do_sample"); + writer.WriteNumberValue(DoSampleValue.Value); + } + + if (MaxNewTokensValue.HasValue) + { + writer.WritePropertyName("max_new_tokens"); + writer.WriteNumberValue(MaxNewTokensValue.Value); + } + + if (TemperatureValue.HasValue) + { + writer.WritePropertyName("temperature"); + writer.WriteNumberValue(TemperatureValue.Value); + } + + if (TopPValue.HasValue) + { + writer.WritePropertyName("top_p"); + writer.WriteNumberValue(TopPValue.Value); + } + + if (!string.IsNullOrEmpty(UserValue)) + { + writer.WritePropertyName("user"); + writer.WriteStringValue(UserValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs new file mode 100644 index 00000000000..0781eb8f1ba --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs @@ -0,0 +1,253 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AzureOpenAIServiceSettings +{ + /// + /// + /// A valid API key for your Azure OpenAI account. + /// You must specify either api_key or entra_id. + /// If you do not provide either or you provide both, you will receive an error when you try to create your model. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string? ApiKey { get; set; } + + /// + /// + /// The Azure API version ID to use. + /// It is recommended to use the latest supported non-preview version. + /// + /// + [JsonInclude, JsonPropertyName("api_version")] + public string ApiVersion { get; set; } + + /// + /// + /// The deployment name of your deployed models. + /// Your Azure OpenAI deployments can be found though the Azure OpenAI Studio portal that is linked to your subscription. + /// + /// + [JsonInclude, JsonPropertyName("deployment_id")] + public string DeploymentId { get; set; } + + /// + /// + /// A valid Microsoft Entra token. + /// You must specify either api_key or entra_id. + /// If you do not provide either or you provide both, you will receive an error when you try to create your model. + /// + /// + [JsonInclude, JsonPropertyName("entra_id")] + public string? EntraId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Azure. + /// The azureopenai service sets a default number of requests allowed per minute depending on the task type. + /// For text_embedding, it is set to 1440. + /// For completion, it is set to 120. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The name of your Azure OpenAI resource. + /// You can find this from the list of resources in the Azure Portal for your subscription. + /// + /// + [JsonInclude, JsonPropertyName("resource_name")] + public string ResourceName { get; set; } +} + +public sealed partial class AzureOpenAIServiceSettingsDescriptor : SerializableDescriptor +{ + internal AzureOpenAIServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AzureOpenAIServiceSettingsDescriptor() : base() + { + } + + private string? ApiKeyValue { get; set; } + private string ApiVersionValue { get; set; } + private string DeploymentIdValue { get; set; } + private string? EntraIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string ResourceNameValue { get; set; } + + /// + /// + /// A valid API key for your Azure OpenAI account. + /// You must specify either api_key or entra_id. + /// If you do not provide either or you provide both, you will receive an error when you try to create your model. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public AzureOpenAIServiceSettingsDescriptor ApiKey(string? apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The Azure API version ID to use. + /// It is recommended to use the latest supported non-preview version. + /// + /// + public AzureOpenAIServiceSettingsDescriptor ApiVersion(string apiVersion) + { + ApiVersionValue = apiVersion; + return Self; + } + + /// + /// + /// The deployment name of your deployed models. + /// Your Azure OpenAI deployments can be found though the Azure OpenAI Studio portal that is linked to your subscription. + /// + /// + public AzureOpenAIServiceSettingsDescriptor DeploymentId(string deploymentId) + { + DeploymentIdValue = deploymentId; + return Self; + } + + /// + /// + /// A valid Microsoft Entra token. + /// You must specify either api_key or entra_id. + /// If you do not provide either or you provide both, you will receive an error when you try to create your model. + /// + /// + public AzureOpenAIServiceSettingsDescriptor EntraId(string? entraId) + { + EntraIdValue = entraId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Azure. + /// The azureopenai service sets a default number of requests allowed per minute depending on the task type. + /// For text_embedding, it is set to 1440. + /// For completion, it is set to 120. + /// + /// + public AzureOpenAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public AzureOpenAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public AzureOpenAIServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The name of your Azure OpenAI resource. + /// You can find this from the list of resources in the Azure Portal for your subscription. + /// + /// + public AzureOpenAIServiceSettingsDescriptor ResourceName(string resourceName) + { + ResourceNameValue = resourceName; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(ApiKeyValue)) + { + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + } + + writer.WritePropertyName("api_version"); + writer.WriteStringValue(ApiVersionValue); + writer.WritePropertyName("deployment_id"); + writer.WriteStringValue(DeploymentIdValue); + if (!string.IsNullOrEmpty(EntraIdValue)) + { + writer.WritePropertyName("entra_id"); + writer.WriteStringValue(EntraIdValue); + } + + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("resource_name"); + writer.WriteStringValue(ResourceNameValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs new file mode 100644 index 00000000000..968dc57a31d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAITaskSettings.g.cs @@ -0,0 +1,75 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class AzureOpenAITaskSettings +{ + /// + /// + /// For a completion or text_embedding task, specify the user issuing the request. + /// This information can be used for abuse detection. + /// + /// + [JsonInclude, JsonPropertyName("user")] + public string? User { get; set; } +} + +public sealed partial class AzureOpenAITaskSettingsDescriptor : SerializableDescriptor +{ + internal AzureOpenAITaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AzureOpenAITaskSettingsDescriptor() : base() + { + } + + private string? UserValue { get; set; } + + /// + /// + /// For a completion or text_embedding task, specify the user issuing the request. + /// This information can be used for abuse detection. + /// + /// + public AzureOpenAITaskSettingsDescriptor User(string? user) + { + UserValue = user; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(UserValue)) + { + writer.WritePropertyName("user"); + writer.WriteStringValue(UserValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs new file mode 100644 index 00000000000..7d27fae4824 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereServiceSettings.g.cs @@ -0,0 +1,269 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class CohereServiceSettings +{ + /// + /// + /// A valid API key for your Cohere account. + /// You can find or create your Cohere API keys on the Cohere API key settings page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// For a text_embedding task, the types of embeddings you want to get back. + /// Use byte for signed int8 embeddings (this is a synonym of int8). + /// Use float for the default float embeddings. + /// Use int8 for signed int8 embeddings. + /// + /// + [JsonInclude, JsonPropertyName("embedding_type")] + public Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType? EmbeddingType { get; set; } + + /// + /// + /// For a completion, rerank, or text_embedding task, the name of the model to use for the inference task. + /// + /// + /// + /// + /// For the available completion models, refer to the Cohere command docs. + /// + /// + /// + /// + /// For the available rerank models, refer to the Cohere rerank docs. + /// + /// + /// + /// + /// For the available text_embedding models, refer to Cohere embed docs. + /// + /// + /// + /// + /// The default value for a text embedding task is embed-english-v2.0. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string? ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Cohere. + /// By default, the cohere service sets the number of requests allowed per minute to 10000. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The similarity measure. + /// If the embedding_type is float, the default value is dot_product. + /// If the embedding_type is int8 or byte, the default value is cosine. + /// + /// + [JsonInclude, JsonPropertyName("similarity")] + public Elastic.Clients.Elasticsearch.Inference.CohereSimilarityType? Similarity { get; set; } +} + +public sealed partial class CohereServiceSettingsDescriptor : SerializableDescriptor +{ + internal CohereServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public CohereServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType? EmbeddingTypeValue { get; set; } + private string? ModelIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereSimilarityType? SimilarityValue { get; set; } + + /// + /// + /// A valid API key for your Cohere account. + /// You can find or create your Cohere API keys on the Cohere API key settings page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public CohereServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// For a text_embedding task, the types of embeddings you want to get back. + /// Use byte for signed int8 embeddings (this is a synonym of int8). + /// Use float for the default float embeddings. + /// Use int8 for signed int8 embeddings. + /// + /// + public CohereServiceSettingsDescriptor EmbeddingType(Elastic.Clients.Elasticsearch.Inference.CohereEmbeddingType? embeddingType) + { + EmbeddingTypeValue = embeddingType; + return Self; + } + + /// + /// + /// For a completion, rerank, or text_embedding task, the name of the model to use for the inference task. + /// + /// + /// + /// + /// For the available completion models, refer to the Cohere command docs. + /// + /// + /// + /// + /// For the available rerank models, refer to the Cohere rerank docs. + /// + /// + /// + /// + /// For the available text_embedding models, refer to Cohere embed docs. + /// + /// + /// + /// + /// The default value for a text embedding task is embed-english-v2.0. + /// + /// + public CohereServiceSettingsDescriptor ModelId(string? modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Cohere. + /// By default, the cohere service sets the number of requests allowed per minute to 10000. + /// + /// + public CohereServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public CohereServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public CohereServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The similarity measure. + /// If the embedding_type is float, the default value is dot_product. + /// If the embedding_type is int8 or byte, the default value is cosine. + /// + /// + public CohereServiceSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Inference.CohereSimilarityType? similarity) + { + SimilarityValue = similarity; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + if (EmbeddingTypeValue is not null) + { + writer.WritePropertyName("embedding_type"); + JsonSerializer.Serialize(writer, EmbeddingTypeValue, options); + } + + if (!string.IsNullOrEmpty(ModelIdValue)) + { + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + } + + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + if (SimilarityValue is not null) + { + writer.WritePropertyName("similarity"); + JsonSerializer.Serialize(writer, SimilarityValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.g.cs new file mode 100644 index 00000000000..efa920b1560 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CohereTaskSettings.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class CohereTaskSettings +{ + /// + /// + /// For a text_embedding task, the type of input passed to the model. + /// Valid values are: + /// + /// + /// + /// + /// classification: Use it for embeddings passed through a text classifier. + /// + /// + /// + /// + /// clustering: Use it for the embeddings run through a clustering algorithm. + /// + /// + /// + /// + /// ingest: Use it for storing document embeddings in a vector database. + /// + /// + /// + /// + /// search: Use it for storing embeddings of search queries run against a vector database to find relevant documents. + /// + /// + /// + /// + /// IMPORTANT: The input_type field is required when using embedding models v3 and higher. + /// + /// + [JsonInclude, JsonPropertyName("input_type")] + public Elastic.Clients.Elasticsearch.Inference.CohereInputType? InputType { get; set; } + + /// + /// + /// For a rerank task, return doc text within the results. + /// + /// + [JsonInclude, JsonPropertyName("return_documents")] + public bool? ReturnDocuments { get; set; } + + /// + /// + /// For a rerank task, the number of most relevant documents to return. + /// It defaults to the number of the documents. + /// If this inference endpoint is used in a text_similarity_reranker retriever query and top_n is set, it must be greater than or equal to rank_window_size in the query. + /// + /// + [JsonInclude, JsonPropertyName("top_n")] + public int? TopN { get; set; } + + /// + /// + /// For a text_embedding task, the method to handle inputs longer than the maximum token length. + /// Valid values are: + /// + /// + /// + /// + /// END: When the input exceeds the maximum input token length, the end of the input is discarded. + /// + /// + /// + /// + /// NONE: When the input exceeds the maximum input token length, an error is returned. + /// + /// + /// + /// + /// START: When the input exceeds the maximum input token length, the start of the input is discarded. + /// + /// + /// + /// + [JsonInclude, JsonPropertyName("truncate")] + public Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? Truncate { get; set; } +} + +public sealed partial class CohereTaskSettingsDescriptor : SerializableDescriptor +{ + internal CohereTaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public CohereTaskSettingsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.CohereInputType? InputTypeValue { get; set; } + private bool? ReturnDocumentsValue { get; set; } + private int? TopNValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? TruncateValue { get; set; } + + /// + /// + /// For a text_embedding task, the type of input passed to the model. + /// Valid values are: + /// + /// + /// + /// + /// classification: Use it for embeddings passed through a text classifier. + /// + /// + /// + /// + /// clustering: Use it for the embeddings run through a clustering algorithm. + /// + /// + /// + /// + /// ingest: Use it for storing document embeddings in a vector database. + /// + /// + /// + /// + /// search: Use it for storing embeddings of search queries run against a vector database to find relevant documents. + /// + /// + /// + /// + /// IMPORTANT: The input_type field is required when using embedding models v3 and higher. + /// + /// + public CohereTaskSettingsDescriptor InputType(Elastic.Clients.Elasticsearch.Inference.CohereInputType? inputType) + { + InputTypeValue = inputType; + return Self; + } + + /// + /// + /// For a rerank task, return doc text within the results. + /// + /// + public CohereTaskSettingsDescriptor ReturnDocuments(bool? returnDocuments = true) + { + ReturnDocumentsValue = returnDocuments; + return Self; + } + + /// + /// + /// For a rerank task, the number of most relevant documents to return. + /// It defaults to the number of the documents. + /// If this inference endpoint is used in a text_similarity_reranker retriever query and top_n is set, it must be greater than or equal to rank_window_size in the query. + /// + /// + public CohereTaskSettingsDescriptor TopN(int? topN) + { + TopNValue = topN; + return Self; + } + + /// + /// + /// For a text_embedding task, the method to handle inputs longer than the maximum token length. + /// Valid values are: + /// + /// + /// + /// + /// END: When the input exceeds the maximum input token length, the end of the input is discarded. + /// + /// + /// + /// + /// NONE: When the input exceeds the maximum input token length, an error is returned. + /// + /// + /// + /// + /// START: When the input exceeds the maximum input token length, the start of the input is discarded. + /// + /// + /// + /// + public CohereTaskSettingsDescriptor Truncate(Elastic.Clients.Elasticsearch.Inference.CohereTruncateType? truncate) + { + TruncateValue = truncate; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (InputTypeValue is not null) + { + writer.WritePropertyName("input_type"); + JsonSerializer.Serialize(writer, InputTypeValue, options); + } + + if (ReturnDocumentsValue.HasValue) + { + writer.WritePropertyName("return_documents"); + writer.WriteBooleanValue(ReturnDocumentsValue.Value); + } + + if (TopNValue.HasValue) + { + writer.WritePropertyName("top_n"); + writer.WriteNumberValue(TopNValue.Value); + } + + if (TruncateValue is not null) + { + writer.WritePropertyName("truncate"); + JsonSerializer.Serialize(writer, TruncateValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs new file mode 100644 index 00000000000..715cae0e947 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionResult.g.cs @@ -0,0 +1,39 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// The completion result object +/// +/// +public sealed partial class CompletionResult +{ + [JsonInclude, JsonPropertyName("result")] + public string Result { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs new file mode 100644 index 00000000000..322215450f5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionTool.g.cs @@ -0,0 +1,135 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// A list of tools that the model can call. +/// +/// +public sealed partial class CompletionTool +{ + /// + /// + /// The function definition. + /// + /// + [JsonInclude, JsonPropertyName("function")] + public Elastic.Clients.Elasticsearch.Inference.CompletionToolFunction Function { get; set; } + + /// + /// + /// The type of tool. + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; set; } +} + +/// +/// +/// A list of tools that the model can call. +/// +/// +public sealed partial class CompletionToolDescriptor : SerializableDescriptor +{ + internal CompletionToolDescriptor(Action configure) => configure.Invoke(this); + + public CompletionToolDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.CompletionToolFunction FunctionValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CompletionToolFunctionDescriptor FunctionDescriptor { get; set; } + private Action FunctionDescriptorAction { get; set; } + private string TypeValue { get; set; } + + /// + /// + /// The function definition. + /// + /// + public CompletionToolDescriptor Function(Elastic.Clients.Elasticsearch.Inference.CompletionToolFunction function) + { + FunctionDescriptor = null; + FunctionDescriptorAction = null; + FunctionValue = function; + return Self; + } + + public CompletionToolDescriptor Function(Elastic.Clients.Elasticsearch.Inference.CompletionToolFunctionDescriptor descriptor) + { + FunctionValue = null; + FunctionDescriptorAction = null; + FunctionDescriptor = descriptor; + return Self; + } + + public CompletionToolDescriptor Function(Action configure) + { + FunctionValue = null; + FunctionDescriptor = null; + FunctionDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of tool. + /// + /// + public CompletionToolDescriptor Type(string type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FunctionDescriptor is not null) + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, FunctionDescriptor, options); + } + else if (FunctionDescriptorAction is not null) + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.CompletionToolFunctionDescriptor(FunctionDescriptorAction), options); + } + else + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, FunctionValue, options); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue(TypeValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs new file mode 100644 index 00000000000..b2b93b3c2db --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoice.g.cs @@ -0,0 +1,135 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// Controls which tool is called by the model. +/// +/// +public sealed partial class CompletionToolChoice +{ + /// + /// + /// The tool choice function. + /// + /// + [JsonInclude, JsonPropertyName("function")] + public Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunction Function { get; set; } + + /// + /// + /// The type of the tool. + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; set; } +} + +/// +/// +/// Controls which tool is called by the model. +/// +/// +public sealed partial class CompletionToolChoiceDescriptor : SerializableDescriptor +{ + internal CompletionToolChoiceDescriptor(Action configure) => configure.Invoke(this); + + public CompletionToolChoiceDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunction FunctionValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunctionDescriptor FunctionDescriptor { get; set; } + private Action FunctionDescriptorAction { get; set; } + private string TypeValue { get; set; } + + /// + /// + /// The tool choice function. + /// + /// + public CompletionToolChoiceDescriptor Function(Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunction function) + { + FunctionDescriptor = null; + FunctionDescriptorAction = null; + FunctionValue = function; + return Self; + } + + public CompletionToolChoiceDescriptor Function(Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunctionDescriptor descriptor) + { + FunctionValue = null; + FunctionDescriptorAction = null; + FunctionDescriptor = descriptor; + return Self; + } + + public CompletionToolChoiceDescriptor Function(Action configure) + { + FunctionValue = null; + FunctionDescriptor = null; + FunctionDescriptorAction = configure; + return Self; + } + + /// + /// + /// The type of the tool. + /// + /// + public CompletionToolChoiceDescriptor Type(string type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FunctionDescriptor is not null) + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, FunctionDescriptor, options); + } + else if (FunctionDescriptorAction is not null) + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.CompletionToolChoiceFunctionDescriptor(FunctionDescriptorAction), options); + } + else + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, FunctionValue, options); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue(TypeValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs new file mode 100644 index 00000000000..7d184dc5234 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolChoiceFunction.g.cs @@ -0,0 +1,79 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// The tool choice function. +/// +/// +public sealed partial class CompletionToolChoiceFunction +{ + /// + /// + /// The name of the function to call. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; set; } +} + +/// +/// +/// The tool choice function. +/// +/// +public sealed partial class CompletionToolChoiceFunctionDescriptor : SerializableDescriptor +{ + internal CompletionToolChoiceFunctionDescriptor(Action configure) => configure.Invoke(this); + + public CompletionToolChoiceFunctionDescriptor() : base() + { + } + + private string NameValue { get; set; } + + /// + /// + /// The name of the function to call. + /// + /// + public CompletionToolChoiceFunctionDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs new file mode 100644 index 00000000000..3a81d7bee79 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolFunction.g.cs @@ -0,0 +1,159 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// The completion tool function definition. +/// +/// +public sealed partial class CompletionToolFunction +{ + /// + /// + /// A description of what the function does. + /// This is used by the model to choose when and how to call the function. + /// + /// + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; set; } + + /// + /// + /// The name of the function. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// + /// The parameters the functional accepts. This should be formatted as a JSON object. + /// + /// + [JsonInclude, JsonPropertyName("parameters")] + public object? Parameters { get; set; } + + /// + /// + /// Whether to enable schema adherence when generating the function call. + /// + /// + [JsonInclude, JsonPropertyName("strict")] + public bool? Strict { get; set; } +} + +/// +/// +/// The completion tool function definition. +/// +/// +public sealed partial class CompletionToolFunctionDescriptor : SerializableDescriptor +{ + internal CompletionToolFunctionDescriptor(Action configure) => configure.Invoke(this); + + public CompletionToolFunctionDescriptor() : base() + { + } + + private string? DescriptionValue { get; set; } + private string NameValue { get; set; } + private object? ParametersValue { get; set; } + private bool? StrictValue { get; set; } + + /// + /// + /// A description of what the function does. + /// This is used by the model to choose when and how to call the function. + /// + /// + public CompletionToolFunctionDescriptor Description(string? description) + { + DescriptionValue = description; + return Self; + } + + /// + /// + /// The name of the function. + /// + /// + public CompletionToolFunctionDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + /// + /// + /// The parameters the functional accepts. This should be formatted as a JSON object. + /// + /// + public CompletionToolFunctionDescriptor Parameters(object? parameters) + { + ParametersValue = parameters; + return Self; + } + + /// + /// + /// Whether to enable schema adherence when generating the function call. + /// + /// + public CompletionToolFunctionDescriptor Strict(bool? strict = true) + { + StrictValue = strict; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(DescriptionValue)) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(DescriptionValue); + } + + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + if (ParametersValue is not null) + { + writer.WritePropertyName("parameters"); + JsonSerializer.Serialize(writer, ParametersValue, options); + } + + if (StrictValue.HasValue) + { + writer.WritePropertyName("strict"); + writer.WriteBooleanValue(StrictValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolType.g.cs new file mode 100644 index 00000000000..add26c76566 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/CompletionToolType.g.cs @@ -0,0 +1,42 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.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.Inference; + +public sealed partial class CompletionToolType : Union +{ + public CompletionToolType(string String) : base(String) + { + } + + public CompletionToolType(Elastic.Clients.Elasticsearch.Inference.CompletionToolChoice Object) : base(Object) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs new file mode 100644 index 00000000000..366a2055b9c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContentObject.g.cs @@ -0,0 +1,101 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// An object style representation of a single portion of a conversation. +/// +/// +public sealed partial class ContentObject +{ + /// + /// + /// The text content. + /// + /// + [JsonInclude, JsonPropertyName("text")] + public string Text { get; set; } + + /// + /// + /// The type of content. + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; set; } +} + +/// +/// +/// An object style representation of a single portion of a conversation. +/// +/// +public sealed partial class ContentObjectDescriptor : SerializableDescriptor +{ + internal ContentObjectDescriptor(Action configure) => configure.Invoke(this); + + public ContentObjectDescriptor() : base() + { + } + + private string TextValue { get; set; } + private string TypeValue { get; set; } + + /// + /// + /// The text content. + /// + /// + public ContentObjectDescriptor Text(string text) + { + TextValue = text; + return Self; + } + + /// + /// + /// The type of content. + /// + /// + public ContentObjectDescriptor Type(string type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("text"); + writer.WriteStringValue(TextValue); + writer.WritePropertyName("type"); + writer.WriteStringValue(TypeValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs new file mode 100644 index 00000000000..ab912f77424 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchServiceSettings.g.cs @@ -0,0 +1,223 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class ElasticsearchServiceSettings +{ + /// + /// + /// Adaptive allocations configuration details. + /// If enabled is true, the number of allocations of the model is set based on the current load the process gets. + /// When the load is high, a new model allocation is automatically created, respecting the value of max_number_of_allocations if it's set. + /// When the load is low, a model allocation is automatically removed, respecting the value of min_number_of_allocations if it's set. + /// If enabled is true, do not set the number of allocations manually. + /// + /// + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocations? AdaptiveAllocations { get; set; } + + /// + /// + /// The deployment identifier for a trained model deployment. + /// When deployment_id is used the model_id is optional. + /// + /// + [JsonInclude, JsonPropertyName("deployment_id")] + public string? DeploymentId { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// It can be the ID of a built-in model (for example, .multilingual-e5-small for E5) or a text embedding model that was uploaded by using the Eland client. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// + /// The total number of allocations that are assigned to the model across machine learning nodes. + /// Increasing this value generally increases the throughput. + /// If adaptive allocations are enabled, do not set this value because it's automatically set. + /// + /// + [JsonInclude, JsonPropertyName("num_allocations")] + public int? NumAllocations { get; set; } + + /// + /// + /// The number of threads used by each model allocation during inference. + /// This setting generally increases the speed per inference request. + /// The inference process is a compute-bound process; threads_per_allocations must not exceed the number of available allocated processors per node. + /// The value must be a power of 2. + /// The maximum value is 32. + /// + /// + [JsonInclude, JsonPropertyName("num_threads")] + public int NumThreads { get; set; } +} + +public sealed partial class ElasticsearchServiceSettingsDescriptor : SerializableDescriptor +{ + internal ElasticsearchServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public ElasticsearchServiceSettingsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocations? AdaptiveAllocationsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocationsDescriptor AdaptiveAllocationsDescriptor { get; set; } + private Action AdaptiveAllocationsDescriptorAction { get; set; } + private string? DeploymentIdValue { get; set; } + private string ModelIdValue { get; set; } + private int? NumAllocationsValue { get; set; } + private int NumThreadsValue { get; set; } + + /// + /// + /// Adaptive allocations configuration details. + /// If enabled is true, the number of allocations of the model is set based on the current load the process gets. + /// When the load is high, a new model allocation is automatically created, respecting the value of max_number_of_allocations if it's set. + /// When the load is low, a model allocation is automatically removed, respecting the value of min_number_of_allocations if it's set. + /// If enabled is true, do not set the number of allocations manually. + /// + /// + public ElasticsearchServiceSettingsDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocations? adaptiveAllocations) + { + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsValue = adaptiveAllocations; + return Self; + } + + public ElasticsearchServiceSettingsDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocationsDescriptor descriptor) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsDescriptor = descriptor; + return Self; + } + + public ElasticsearchServiceSettingsDescriptor AdaptiveAllocations(Action configure) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The deployment identifier for a trained model deployment. + /// When deployment_id is used the model_id is optional. + /// + /// + public ElasticsearchServiceSettingsDescriptor DeploymentId(string? deploymentId) + { + DeploymentIdValue = deploymentId; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// It can be the ID of a built-in model (for example, .multilingual-e5-small for E5) or a text embedding model that was uploaded by using the Eland client. + /// + /// + public ElasticsearchServiceSettingsDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// The total number of allocations that are assigned to the model across machine learning nodes. + /// Increasing this value generally increases the throughput. + /// If adaptive allocations are enabled, do not set this value because it's automatically set. + /// + /// + public ElasticsearchServiceSettingsDescriptor NumAllocations(int? numAllocations) + { + NumAllocationsValue = numAllocations; + return Self; + } + + /// + /// + /// The number of threads used by each model allocation during inference. + /// This setting generally increases the speed per inference request. + /// The inference process is a compute-bound process; threads_per_allocations must not exceed the number of available allocated processors per node. + /// The value must be a power of 2. + /// The maximum value is 32. + /// + /// + public ElasticsearchServiceSettingsDescriptor NumThreads(int numThreads) + { + NumThreadsValue = numThreads; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AdaptiveAllocationsDescriptor is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsDescriptor, options); + } + else if (AdaptiveAllocationsDescriptorAction is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocationsDescriptor(AdaptiveAllocationsDescriptorAction), options); + } + else if (AdaptiveAllocationsValue is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsValue, options); + } + + if (!string.IsNullOrEmpty(DeploymentIdValue)) + { + writer.WritePropertyName("deployment_id"); + writer.WriteStringValue(DeploymentIdValue); + } + + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + if (NumAllocationsValue.HasValue) + { + writer.WritePropertyName("num_allocations"); + writer.WriteNumberValue(NumAllocationsValue.Value); + } + + writer.WritePropertyName("num_threads"); + writer.WriteNumberValue(NumThreadsValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs new file mode 100644 index 00000000000..87d5785c80a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElasticsearchTaskSettings.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class ElasticsearchTaskSettings +{ + /// + /// + /// For a rerank task, return the document instead of only the index. + /// + /// + [JsonInclude, JsonPropertyName("return_documents")] + public bool? ReturnDocuments { get; set; } +} + +public sealed partial class ElasticsearchTaskSettingsDescriptor : SerializableDescriptor +{ + internal ElasticsearchTaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public ElasticsearchTaskSettingsDescriptor() : base() + { + } + + private bool? ReturnDocumentsValue { get; set; } + + /// + /// + /// For a rerank task, return the document instead of only the index. + /// + /// + public ElasticsearchTaskSettingsDescriptor ReturnDocuments(bool? returnDocuments = true) + { + ReturnDocumentsValue = returnDocuments; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ReturnDocumentsValue.HasValue) + { + writer.WritePropertyName("return_documents"); + writer.WriteBooleanValue(ReturnDocumentsValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs new file mode 100644 index 00000000000..b70c35b612a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ElserServiceSettings.g.cs @@ -0,0 +1,175 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class ElserServiceSettings +{ + /// + /// + /// Adaptive allocations configuration details. + /// If enabled is true, the number of allocations of the model is set based on the current load the process gets. + /// When the load is high, a new model allocation is automatically created, respecting the value of max_number_of_allocations if it's set. + /// When the load is low, a model allocation is automatically removed, respecting the value of min_number_of_allocations if it's set. + /// If enabled is true, do not set the number of allocations manually. + /// + /// + [JsonInclude, JsonPropertyName("adaptive_allocations")] + public Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocations? AdaptiveAllocations { get; set; } + + /// + /// + /// The total number of allocations this model is assigned across machine learning nodes. + /// Increasing this value generally increases the throughput. + /// If adaptive allocations is enabled, do not set this value because it's automatically set. + /// + /// + [JsonInclude, JsonPropertyName("num_allocations")] + public int NumAllocations { get; set; } + + /// + /// + /// The number of threads used by each model allocation during inference. + /// Increasing this value generally increases the speed per inference request. + /// The inference process is a compute-bound process; threads_per_allocations must not exceed the number of available allocated processors per node. + /// The value must be a power of 2. + /// The maximum value is 32. + /// + /// + /// info + /// If you want to optimize your ELSER endpoint for ingest, set the number of threads to 1. If you want to optimize your ELSER endpoint for search, set the number of threads to greater than 1. + /// + /// + [JsonInclude, JsonPropertyName("num_threads")] + public int NumThreads { get; set; } +} + +public sealed partial class ElserServiceSettingsDescriptor : SerializableDescriptor +{ + internal ElserServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public ElserServiceSettingsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocations? AdaptiveAllocationsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocationsDescriptor AdaptiveAllocationsDescriptor { get; set; } + private Action AdaptiveAllocationsDescriptorAction { get; set; } + private int NumAllocationsValue { get; set; } + private int NumThreadsValue { get; set; } + + /// + /// + /// Adaptive allocations configuration details. + /// If enabled is true, the number of allocations of the model is set based on the current load the process gets. + /// When the load is high, a new model allocation is automatically created, respecting the value of max_number_of_allocations if it's set. + /// When the load is low, a model allocation is automatically removed, respecting the value of min_number_of_allocations if it's set. + /// If enabled is true, do not set the number of allocations manually. + /// + /// + public ElserServiceSettingsDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocations? adaptiveAllocations) + { + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsValue = adaptiveAllocations; + return Self; + } + + public ElserServiceSettingsDescriptor AdaptiveAllocations(Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocationsDescriptor descriptor) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptorAction = null; + AdaptiveAllocationsDescriptor = descriptor; + return Self; + } + + public ElserServiceSettingsDescriptor AdaptiveAllocations(Action configure) + { + AdaptiveAllocationsValue = null; + AdaptiveAllocationsDescriptor = null; + AdaptiveAllocationsDescriptorAction = configure; + return Self; + } + + /// + /// + /// The total number of allocations this model is assigned across machine learning nodes. + /// Increasing this value generally increases the throughput. + /// If adaptive allocations is enabled, do not set this value because it's automatically set. + /// + /// + public ElserServiceSettingsDescriptor NumAllocations(int numAllocations) + { + NumAllocationsValue = numAllocations; + return Self; + } + + /// + /// + /// The number of threads used by each model allocation during inference. + /// Increasing this value generally increases the speed per inference request. + /// The inference process is a compute-bound process; threads_per_allocations must not exceed the number of available allocated processors per node. + /// The value must be a power of 2. + /// The maximum value is 32. + /// + /// + /// info + /// If you want to optimize your ELSER endpoint for ingest, set the number of threads to 1. If you want to optimize your ELSER endpoint for search, set the number of threads to greater than 1. + /// + /// + public ElserServiceSettingsDescriptor NumThreads(int numThreads) + { + NumThreadsValue = numThreads; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AdaptiveAllocationsDescriptor is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsDescriptor, options); + } + else if (AdaptiveAllocationsDescriptorAction is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.AdaptiveAllocationsDescriptor(AdaptiveAllocationsDescriptorAction), options); + } + else if (AdaptiveAllocationsValue is not null) + { + writer.WritePropertyName("adaptive_allocations"); + JsonSerializer.Serialize(writer, AdaptiveAllocationsValue, options); + } + + writer.WritePropertyName("num_allocations"); + writer.WriteNumberValue(NumAllocationsValue); + writer.WritePropertyName("num_threads"); + writer.WriteNumberValue(NumThreadsValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs new file mode 100644 index 00000000000..10635f7aaeb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleAiStudioServiceSettings.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class GoogleAiStudioServiceSettings +{ + /// + /// + /// A valid API key of your Google Gemini account. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Google documentation for the list of supported models. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Google AI Studio. + /// By default, the googleaistudio service sets the number of requests allowed per minute to 360. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } +} + +public sealed partial class GoogleAiStudioServiceSettingsDescriptor : SerializableDescriptor +{ + internal GoogleAiStudioServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public GoogleAiStudioServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private string ModelIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + + /// + /// + /// A valid API key of your Google Gemini account. + /// + /// + public GoogleAiStudioServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Google documentation for the list of supported models. + /// + /// + public GoogleAiStudioServiceSettingsDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Google AI Studio. + /// By default, the googleaistudio service sets the number of requests allowed per minute to 360. + /// + /// + public GoogleAiStudioServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public GoogleAiStudioServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public GoogleAiStudioServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs new file mode 100644 index 00000000000..71852081f27 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAIServiceSettings.g.cs @@ -0,0 +1,197 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class GoogleVertexAIServiceSettings +{ + /// + /// + /// The name of the location to use for the inference task. + /// Refer to the Google documentation for the list of supported locations. + /// + /// + [JsonInclude, JsonPropertyName("location")] + public string Location { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Google documentation for the list of supported models. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// + /// The name of the project to use for the inference task. + /// + /// + [JsonInclude, JsonPropertyName("project_id")] + public string ProjectId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Google Vertex AI. + /// By default, the googlevertexai service sets the number of requests allowed per minute to 30.000. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// A valid service account in JSON format for the Google Vertex AI API. + /// + /// + [JsonInclude, JsonPropertyName("service_account_json")] + public string ServiceAccountJson { get; set; } +} + +public sealed partial class GoogleVertexAIServiceSettingsDescriptor : SerializableDescriptor +{ + internal GoogleVertexAIServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public GoogleVertexAIServiceSettingsDescriptor() : base() + { + } + + private string LocationValue { get; set; } + private string ModelIdValue { get; set; } + private string ProjectIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string ServiceAccountJsonValue { get; set; } + + /// + /// + /// The name of the location to use for the inference task. + /// Refer to the Google documentation for the list of supported locations. + /// + /// + public GoogleVertexAIServiceSettingsDescriptor Location(string location) + { + LocationValue = location; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Google documentation for the list of supported models. + /// + /// + public GoogleVertexAIServiceSettingsDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// The name of the project to use for the inference task. + /// + /// + public GoogleVertexAIServiceSettingsDescriptor ProjectId(string projectId) + { + ProjectIdValue = projectId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Google Vertex AI. + /// By default, the googlevertexai service sets the number of requests allowed per minute to 30.000. + /// + /// + public GoogleVertexAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public GoogleVertexAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public GoogleVertexAIServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// A valid service account in JSON format for the Google Vertex AI API. + /// + /// + public GoogleVertexAIServiceSettingsDescriptor ServiceAccountJson(string serviceAccountJson) + { + ServiceAccountJsonValue = serviceAccountJson; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("location"); + writer.WriteStringValue(LocationValue); + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + writer.WritePropertyName("project_id"); + writer.WriteStringValue(ProjectIdValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("service_account_json"); + writer.WriteStringValue(ServiceAccountJsonValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs new file mode 100644 index 00000000000..b1b06bd7361 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/GoogleVertexAITaskSettings.g.cs @@ -0,0 +1,99 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class GoogleVertexAITaskSettings +{ + /// + /// + /// For a text_embedding task, truncate inputs longer than the maximum token length automatically. + /// + /// + [JsonInclude, JsonPropertyName("auto_truncate")] + public bool? AutoTruncate { get; set; } + + /// + /// + /// For a rerank task, the number of the top N documents that should be returned. + /// + /// + [JsonInclude, JsonPropertyName("top_n")] + public int? TopN { get; set; } +} + +public sealed partial class GoogleVertexAITaskSettingsDescriptor : SerializableDescriptor +{ + internal GoogleVertexAITaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public GoogleVertexAITaskSettingsDescriptor() : base() + { + } + + private bool? AutoTruncateValue { get; set; } + private int? TopNValue { get; set; } + + /// + /// + /// For a text_embedding task, truncate inputs longer than the maximum token length automatically. + /// + /// + public GoogleVertexAITaskSettingsDescriptor AutoTruncate(bool? autoTruncate = true) + { + AutoTruncateValue = autoTruncate; + return Self; + } + + /// + /// + /// For a rerank task, the number of the top N documents that should be returned. + /// + /// + public GoogleVertexAITaskSettingsDescriptor TopN(int? topN) + { + TopNValue = topN; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AutoTruncateValue.HasValue) + { + writer.WritePropertyName("auto_truncate"); + writer.WriteBooleanValue(AutoTruncateValue.Value); + } + + if (TopNValue.HasValue) + { + writer.WritePropertyName("top_n"); + writer.WriteNumberValue(TopNValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs new file mode 100644 index 00000000000..fdd23949de8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/HuggingFaceServiceSettings.g.cs @@ -0,0 +1,163 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class HuggingFaceServiceSettings +{ + /// + /// + /// A valid access token for your HuggingFace account. + /// You can create or find your access tokens on the HuggingFace settings page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Hugging Face. + /// By default, the hugging_face service sets the number of requests allowed per minute to 3000. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The URL endpoint to use for the requests. + /// + /// + [JsonInclude, JsonPropertyName("url")] + public string Url { get; set; } +} + +public sealed partial class HuggingFaceServiceSettingsDescriptor : SerializableDescriptor +{ + internal HuggingFaceServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public HuggingFaceServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string UrlValue { get; set; } + + /// + /// + /// A valid access token for your HuggingFace account. + /// You can create or find your access tokens on the HuggingFace settings page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public HuggingFaceServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Hugging Face. + /// By default, the hugging_face service sets the number of requests allowed per minute to 3000. + /// + /// + public HuggingFaceServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public HuggingFaceServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public HuggingFaceServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The URL endpoint to use for the requests. + /// + /// + public HuggingFaceServiceSettingsDescriptor Url(string url) + { + UrlValue = url; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("url"); + writer.WriteStringValue(UrlValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs index 4e6406fc6aa..8426fab8966 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/InferenceChunkingSettings.g.cs @@ -36,16 +36,8 @@ public sealed partial class InferenceChunkingSettings { /// /// - /// Chunking configuration object - /// - /// - [JsonInclude, JsonPropertyName("chunking_settings")] - public Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettings { get; set; } - - /// - /// - /// Specifies the maximum size of a chunk in words - /// This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy) + /// The maximum size of a chunk in words. + /// This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy). /// /// [JsonInclude, JsonPropertyName("max_chunk_size")] @@ -53,9 +45,9 @@ public sealed partial class InferenceChunkingSettings /// /// - /// Specifies the number of overlapping words for chunks - /// Only for word chunking strategy - /// This value cannot be higher than the half of max_chunk_size + /// The number of overlapping words for chunks. + /// It is applicable only to a word chunking strategy. + /// This value cannot be higher than half the max_chunk_size value. /// /// [JsonInclude, JsonPropertyName("overlap")] @@ -63,9 +55,9 @@ public sealed partial class InferenceChunkingSettings /// /// - /// Specifies the number of overlapping sentences for chunks - /// Only for sentence chunking strategy - /// It can be either 1 or 0 + /// The number of overlapping sentences for chunks. + /// It is applicable only for a sentence chunking strategy. + /// It can be either 1 or 0. /// /// [JsonInclude, JsonPropertyName("sentence_overlap")] @@ -73,36 +65,11 @@ public sealed partial class InferenceChunkingSettings /// /// - /// The service type - /// - /// - [JsonInclude, JsonPropertyName("service")] - public string Service { get; set; } - - /// - /// - /// Settings specific to the service - /// - /// - [JsonInclude, JsonPropertyName("service_settings")] - public object ServiceSettings { get; set; } - - /// - /// - /// Specifies the chunking strategy - /// It could be either sentence or word + /// The chunking strategy: sentence or word. /// /// [JsonInclude, JsonPropertyName("strategy")] public string? Strategy { get; set; } - - /// - /// - /// Task settings specific to the service and task type - /// - /// - [JsonInclude, JsonPropertyName("task_settings")] - public object? TaskSettings { get; set; } } /// @@ -118,50 +85,15 @@ public InferenceChunkingSettingsDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? ChunkingSettingsValue { get; set; } - private Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor ChunkingSettingsDescriptor { get; set; } - private Action ChunkingSettingsDescriptorAction { get; set; } private int? MaxChunkSizeValue { get; set; } private int? OverlapValue { get; set; } private int? SentenceOverlapValue { get; set; } - private string ServiceValue { get; set; } - private object ServiceSettingsValue { get; set; } private string? StrategyValue { get; set; } - private object? TaskSettingsValue { get; set; } - - /// - /// - /// Chunking configuration object - /// - /// - public InferenceChunkingSettingsDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettings? chunkingSettings) - { - ChunkingSettingsDescriptor = null; - ChunkingSettingsDescriptorAction = null; - ChunkingSettingsValue = chunkingSettings; - return Self; - } - - public InferenceChunkingSettingsDescriptor ChunkingSettings(Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor descriptor) - { - ChunkingSettingsValue = null; - ChunkingSettingsDescriptorAction = null; - ChunkingSettingsDescriptor = descriptor; - return Self; - } - - public InferenceChunkingSettingsDescriptor ChunkingSettings(Action configure) - { - ChunkingSettingsValue = null; - ChunkingSettingsDescriptor = null; - ChunkingSettingsDescriptorAction = configure; - return Self; - } /// /// - /// Specifies the maximum size of a chunk in words - /// This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy) + /// The maximum size of a chunk in words. + /// This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy). /// /// public InferenceChunkingSettingsDescriptor MaxChunkSize(int? maxChunkSize) @@ -172,9 +104,9 @@ public InferenceChunkingSettingsDescriptor MaxChunkSize(int? maxChunkSize) /// /// - /// Specifies the number of overlapping words for chunks - /// Only for word chunking strategy - /// This value cannot be higher than the half of max_chunk_size + /// The number of overlapping words for chunks. + /// It is applicable only to a word chunking strategy. + /// This value cannot be higher than half the max_chunk_size value. /// /// public InferenceChunkingSettingsDescriptor Overlap(int? overlap) @@ -185,9 +117,9 @@ public InferenceChunkingSettingsDescriptor Overlap(int? overlap) /// /// - /// Specifies the number of overlapping sentences for chunks - /// Only for sentence chunking strategy - /// It can be either 1 or 0 + /// The number of overlapping sentences for chunks. + /// It is applicable only for a sentence chunking strategy. + /// It can be either 1 or 0. /// /// public InferenceChunkingSettingsDescriptor SentenceOverlap(int? sentenceOverlap) @@ -198,30 +130,7 @@ public InferenceChunkingSettingsDescriptor SentenceOverlap(int? sentenceOverlap) /// /// - /// The service type - /// - /// - public InferenceChunkingSettingsDescriptor Service(string service) - { - ServiceValue = service; - return Self; - } - - /// - /// - /// Settings specific to the service - /// - /// - public InferenceChunkingSettingsDescriptor ServiceSettings(object serviceSettings) - { - ServiceSettingsValue = serviceSettings; - return Self; - } - - /// - /// - /// Specifies the chunking strategy - /// It could be either sentence or word + /// The chunking strategy: sentence or word. /// /// public InferenceChunkingSettingsDescriptor Strategy(string? strategy) @@ -230,36 +139,9 @@ public InferenceChunkingSettingsDescriptor Strategy(string? strategy) return Self; } - /// - /// - /// Task settings specific to the service and task type - /// - /// - public InferenceChunkingSettingsDescriptor TaskSettings(object? taskSettings) - { - TaskSettingsValue = taskSettings; - return Self; - } - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (ChunkingSettingsDescriptor is not null) - { - writer.WritePropertyName("chunking_settings"); - JsonSerializer.Serialize(writer, ChunkingSettingsDescriptor, options); - } - else if (ChunkingSettingsDescriptorAction is not null) - { - writer.WritePropertyName("chunking_settings"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.InferenceChunkingSettingsDescriptor(ChunkingSettingsDescriptorAction), options); - } - else if (ChunkingSettingsValue is not null) - { - writer.WritePropertyName("chunking_settings"); - JsonSerializer.Serialize(writer, ChunkingSettingsValue, options); - } - if (MaxChunkSizeValue.HasValue) { writer.WritePropertyName("max_chunk_size"); @@ -278,22 +160,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(SentenceOverlapValue.Value); } - writer.WritePropertyName("service"); - writer.WriteStringValue(ServiceValue); - writer.WritePropertyName("service_settings"); - JsonSerializer.Serialize(writer, ServiceSettingsValue, options); if (!string.IsNullOrEmpty(StrategyValue)) { writer.WritePropertyName("strategy"); writer.WriteStringValue(StrategyValue); } - if (TaskSettingsValue is not null) - { - writer.WritePropertyName("task_settings"); - JsonSerializer.Serialize(writer, TaskSettingsValue, options); - } - writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs new file mode 100644 index 00000000000..889f5a416c9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAIServiceSettings.g.cs @@ -0,0 +1,199 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class JinaAIServiceSettings +{ + /// + /// + /// A valid API key of your JinaAI account. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// For a rerank task, it is required. + /// For a text_embedding task, it is optional. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string? ModelId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from JinaAI. + /// By default, the jinaai service sets the number of requests allowed per minute to 2000 for all task types. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// For a text_embedding task, the similarity measure. One of cosine, dot_product, l2_norm. + /// The default values varies with the embedding type. + /// For example, a float embedding type uses a dot_product similarity measure by default. + /// + /// + [JsonInclude, JsonPropertyName("similarity")] + public Elastic.Clients.Elasticsearch.Inference.JinaAISimilarityType? Similarity { get; set; } +} + +public sealed partial class JinaAIServiceSettingsDescriptor : SerializableDescriptor +{ + internal JinaAIServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public JinaAIServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private string? ModelIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAISimilarityType? SimilarityValue { get; set; } + + /// + /// + /// A valid API key of your JinaAI account. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public JinaAIServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// For a rerank task, it is required. + /// For a text_embedding task, it is optional. + /// + /// + public JinaAIServiceSettingsDescriptor ModelId(string? modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from JinaAI. + /// By default, the jinaai service sets the number of requests allowed per minute to 2000 for all task types. + /// + /// + public JinaAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public JinaAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public JinaAIServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// For a text_embedding task, the similarity measure. One of cosine, dot_product, l2_norm. + /// The default values varies with the embedding type. + /// For example, a float embedding type uses a dot_product similarity measure by default. + /// + /// + public JinaAIServiceSettingsDescriptor Similarity(Elastic.Clients.Elasticsearch.Inference.JinaAISimilarityType? similarity) + { + SimilarityValue = similarity; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + if (!string.IsNullOrEmpty(ModelIdValue)) + { + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + } + + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + if (SimilarityValue is not null) + { + writer.WritePropertyName("similarity"); + JsonSerializer.Serialize(writer, SimilarityValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs new file mode 100644 index 00000000000..8e0158af4c4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/JinaAITaskSettings.g.cs @@ -0,0 +1,175 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class JinaAITaskSettings +{ + /// + /// + /// For a rerank task, return the doc text within the results. + /// + /// + [JsonInclude, JsonPropertyName("return_documents")] + public bool? ReturnDocuments { get; set; } + + /// + /// + /// For a text_embedding task, the task passed to the model. + /// Valid values are: + /// + /// + /// + /// + /// classification: Use it for embeddings passed through a text classifier. + /// + /// + /// + /// + /// clustering: Use it for the embeddings run through a clustering algorithm. + /// + /// + /// + /// + /// ingest: Use it for storing document embeddings in a vector database. + /// + /// + /// + /// + /// search: Use it for storing embeddings of search queries run against a vector database to find relevant documents. + /// + /// + /// + /// + [JsonInclude, JsonPropertyName("task")] + public Elastic.Clients.Elasticsearch.Inference.JinaAITextEmbeddingTask? Task { get; set; } + + /// + /// + /// For a rerank task, the number of most relevant documents to return. + /// It defaults to the number of the documents. + /// If this inference endpoint is used in a text_similarity_reranker retriever query and top_n is set, it must be greater than or equal to rank_window_size in the query. + /// + /// + [JsonInclude, JsonPropertyName("top_n")] + public int? TopN { get; set; } +} + +public sealed partial class JinaAITaskSettingsDescriptor : SerializableDescriptor +{ + internal JinaAITaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public JinaAITaskSettingsDescriptor() : base() + { + } + + private bool? ReturnDocumentsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.JinaAITextEmbeddingTask? TaskValue { get; set; } + private int? TopNValue { get; set; } + + /// + /// + /// For a rerank task, return the doc text within the results. + /// + /// + public JinaAITaskSettingsDescriptor ReturnDocuments(bool? returnDocuments = true) + { + ReturnDocumentsValue = returnDocuments; + return Self; + } + + /// + /// + /// For a text_embedding task, the task passed to the model. + /// Valid values are: + /// + /// + /// + /// + /// classification: Use it for embeddings passed through a text classifier. + /// + /// + /// + /// + /// clustering: Use it for the embeddings run through a clustering algorithm. + /// + /// + /// + /// + /// ingest: Use it for storing document embeddings in a vector database. + /// + /// + /// + /// + /// search: Use it for storing embeddings of search queries run against a vector database to find relevant documents. + /// + /// + /// + /// + public JinaAITaskSettingsDescriptor Task(Elastic.Clients.Elasticsearch.Inference.JinaAITextEmbeddingTask? task) + { + TaskValue = task; + return Self; + } + + /// + /// + /// For a rerank task, the number of most relevant documents to return. + /// It defaults to the number of the documents. + /// If this inference endpoint is used in a text_similarity_reranker retriever query and top_n is set, it must be greater than or equal to rank_window_size in the query. + /// + /// + public JinaAITaskSettingsDescriptor TopN(int? topN) + { + TopNValue = topN; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ReturnDocumentsValue.HasValue) + { + writer.WritePropertyName("return_documents"); + writer.WriteBooleanValue(ReturnDocumentsValue.Value); + } + + if (TaskValue is not null) + { + writer.WritePropertyName("task"); + JsonSerializer.Serialize(writer, TaskValue, options); + } + + if (TopNValue.HasValue) + { + writer.WritePropertyName("top_n"); + writer.WriteNumberValue(TopNValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs new file mode 100644 index 00000000000..e5754f71e76 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs @@ -0,0 +1,215 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// An object representing part of the conversation. +/// +/// +public sealed partial class Message +{ + /// + /// + /// The content of the message. + /// + /// + [JsonInclude, JsonPropertyName("content")] + public Elastic.Clients.Elasticsearch.Inference.MessageContent? Content { get; set; } + + /// + /// + /// The role of the message author. + /// + /// + [JsonInclude, JsonPropertyName("role")] + public string Role { get; set; } + + /// + /// + /// The tool call that this message is responding to. + /// + /// + [JsonInclude, JsonPropertyName("tool_call_id")] + public Elastic.Clients.Elasticsearch.Id? ToolCallId { get; set; } + + /// + /// + /// The tool calls generated by the model. + /// + /// + [JsonInclude, JsonPropertyName("tool_calls")] + public ICollection? ToolCalls { get; set; } +} + +/// +/// +/// An object representing part of the conversation. +/// +/// +public sealed partial class MessageDescriptor : SerializableDescriptor +{ + internal MessageDescriptor(Action configure) => configure.Invoke(this); + + public MessageDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.MessageContent? ContentValue { get; set; } + private string RoleValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? ToolCallIdValue { get; set; } + private ICollection? ToolCallsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ToolCallDescriptor ToolCallsDescriptor { get; set; } + private Action ToolCallsDescriptorAction { get; set; } + private Action[] ToolCallsDescriptorActions { get; set; } + + /// + /// + /// The content of the message. + /// + /// + public MessageDescriptor Content(Elastic.Clients.Elasticsearch.Inference.MessageContent? content) + { + ContentValue = content; + return Self; + } + + /// + /// + /// The role of the message author. + /// + /// + public MessageDescriptor Role(string role) + { + RoleValue = role; + return Self; + } + + /// + /// + /// The tool call that this message is responding to. + /// + /// + public MessageDescriptor ToolCallId(Elastic.Clients.Elasticsearch.Id? toolCallId) + { + ToolCallIdValue = toolCallId; + return Self; + } + + /// + /// + /// The tool calls generated by the model. + /// + /// + public MessageDescriptor ToolCalls(ICollection? toolCalls) + { + ToolCallsDescriptor = null; + ToolCallsDescriptorAction = null; + ToolCallsDescriptorActions = null; + ToolCallsValue = toolCalls; + return Self; + } + + public MessageDescriptor ToolCalls(Elastic.Clients.Elasticsearch.Inference.ToolCallDescriptor descriptor) + { + ToolCallsValue = null; + ToolCallsDescriptorAction = null; + ToolCallsDescriptorActions = null; + ToolCallsDescriptor = descriptor; + return Self; + } + + public MessageDescriptor ToolCalls(Action configure) + { + ToolCallsValue = null; + ToolCallsDescriptor = null; + ToolCallsDescriptorActions = null; + ToolCallsDescriptorAction = configure; + return Self; + } + + public MessageDescriptor ToolCalls(params Action[] configure) + { + ToolCallsValue = null; + ToolCallsDescriptor = null; + ToolCallsDescriptorAction = null; + ToolCallsDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ContentValue is not null) + { + writer.WritePropertyName("content"); + JsonSerializer.Serialize(writer, ContentValue, options); + } + + writer.WritePropertyName("role"); + writer.WriteStringValue(RoleValue); + if (ToolCallIdValue is not null) + { + writer.WritePropertyName("tool_call_id"); + JsonSerializer.Serialize(writer, ToolCallIdValue, options); + } + + if (ToolCallsDescriptor is not null) + { + writer.WritePropertyName("tool_calls"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, ToolCallsDescriptor, options); + writer.WriteEndArray(); + } + else if (ToolCallsDescriptorAction is not null) + { + writer.WritePropertyName("tool_calls"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.ToolCallDescriptor(ToolCallsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (ToolCallsDescriptorActions is not null) + { + writer.WritePropertyName("tool_calls"); + writer.WriteStartArray(); + foreach (var action in ToolCallsDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.ToolCallDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (ToolCallsValue is not null) + { + writer.WritePropertyName("tool_calls"); + JsonSerializer.Serialize(writer, ToolCallsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MessageContent.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MessageContent.g.cs new file mode 100644 index 00000000000..fdd13c4d05c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MessageContent.g.cs @@ -0,0 +1,42 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.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.Inference; + +public sealed partial class MessageContent : Union> +{ + public MessageContent(string String) : base(String) + { + } + + public MessageContent(IReadOnlyCollection Object) : base(Object) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs new file mode 100644 index 00000000000..9bcc7330678 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/MistralServiceSettings.g.cs @@ -0,0 +1,191 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class MistralServiceSettings +{ + /// + /// + /// A valid API key of your Mistral account. + /// You can find your Mistral API keys or you can create a new one on the API Keys page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The maximum number of tokens per input before chunking occurs. + /// + /// + [JsonInclude, JsonPropertyName("max_input_tokens")] + public int? MaxInputTokens { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Mistral models documentation for the list of available text embedding models. + /// + /// + [JsonInclude, JsonPropertyName("model")] + public string Model { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the Mistral API. + /// By default, the mistral service sets the number of requests allowed per minute to 240. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } +} + +public sealed partial class MistralServiceSettingsDescriptor : SerializableDescriptor +{ + internal MistralServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public MistralServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private int? MaxInputTokensValue { get; set; } + private string ModelValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + + /// + /// + /// A valid API key of your Mistral account. + /// You can find your Mistral API keys or you can create a new one on the API Keys page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public MistralServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The maximum number of tokens per input before chunking occurs. + /// + /// + public MistralServiceSettingsDescriptor MaxInputTokens(int? maxInputTokens) + { + MaxInputTokensValue = maxInputTokens; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the Mistral models documentation for the list of available text embedding models. + /// + /// + public MistralServiceSettingsDescriptor Model(string model) + { + ModelValue = model; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from the Mistral API. + /// By default, the mistral service sets the number of requests allowed per minute to 240. + /// + /// + public MistralServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public MistralServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public MistralServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + if (MaxInputTokensValue.HasValue) + { + writer.WritePropertyName("max_input_tokens"); + writer.WriteNumberValue(MaxInputTokensValue.Value); + } + + writer.WritePropertyName("model"); + writer.WriteStringValue(ModelValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs new file mode 100644 index 00000000000..0be518d5b96 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAIServiceSettings.g.cs @@ -0,0 +1,255 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class OpenAIServiceSettings +{ + /// + /// + /// A valid API key of your OpenAI account. + /// You can find your OpenAI API keys in your OpenAI account under the API keys section. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// The number of dimensions the resulting output embeddings should have. + /// It is supported only in text-embedding-3 and later models. + /// If it is not set, the OpenAI defined default for the model is used. + /// + /// + [JsonInclude, JsonPropertyName("dimensions")] + public int? Dimensions { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the OpenAI documentation for the list of available text embedding models. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// + /// The unique identifier for your organization. + /// You can find the Organization ID in your OpenAI account under Settings > Organizations. + /// + /// + [JsonInclude, JsonPropertyName("organization_id")] + public string? OrganizationId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from OpenAI. + /// The openai service sets a default number of requests allowed per minute depending on the task type. + /// For text_embedding, it is set to 3000. + /// For completion, it is set to 500. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The URL endpoint to use for the requests. + /// It can be changed for testing purposes. + /// + /// + [JsonInclude, JsonPropertyName("url")] + public string? Url { get; set; } +} + +public sealed partial class OpenAIServiceSettingsDescriptor : SerializableDescriptor +{ + internal OpenAIServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public OpenAIServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private int? DimensionsValue { get; set; } + private string ModelIdValue { get; set; } + private string? OrganizationIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string? UrlValue { get; set; } + + /// + /// + /// A valid API key of your OpenAI account. + /// You can find your OpenAI API keys in your OpenAI account under the API keys section. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public OpenAIServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// The number of dimensions the resulting output embeddings should have. + /// It is supported only in text-embedding-3 and later models. + /// If it is not set, the OpenAI defined default for the model is used. + /// + /// + public OpenAIServiceSettingsDescriptor Dimensions(int? dimensions) + { + DimensionsValue = dimensions; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the OpenAI documentation for the list of available text embedding models. + /// + /// + public OpenAIServiceSettingsDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// The unique identifier for your organization. + /// You can find the Organization ID in your OpenAI account under Settings > Organizations. + /// + /// + public OpenAIServiceSettingsDescriptor OrganizationId(string? organizationId) + { + OrganizationIdValue = organizationId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from OpenAI. + /// The openai service sets a default number of requests allowed per minute depending on the task type. + /// For text_embedding, it is set to 3000. + /// For completion, it is set to 500. + /// + /// + public OpenAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public OpenAIServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public OpenAIServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The URL endpoint to use for the requests. + /// It can be changed for testing purposes. + /// + /// + public OpenAIServiceSettingsDescriptor Url(string? url) + { + UrlValue = url; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + if (DimensionsValue.HasValue) + { + writer.WritePropertyName("dimensions"); + writer.WriteNumberValue(DimensionsValue.Value); + } + + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + if (!string.IsNullOrEmpty(OrganizationIdValue)) + { + writer.WritePropertyName("organization_id"); + writer.WriteStringValue(OrganizationIdValue); + } + + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + if (!string.IsNullOrEmpty(UrlValue)) + { + writer.WritePropertyName("url"); + writer.WriteStringValue(UrlValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs new file mode 100644 index 00000000000..3fcaf5ad0e4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/OpenAITaskSettings.g.cs @@ -0,0 +1,75 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class OpenAITaskSettings +{ + /// + /// + /// For a completion or text_embedding task, specify the user issuing the request. + /// This information can be used for abuse detection. + /// + /// + [JsonInclude, JsonPropertyName("user")] + public string? User { get; set; } +} + +public sealed partial class OpenAITaskSettingsDescriptor : SerializableDescriptor +{ + internal OpenAITaskSettingsDescriptor(Action configure) => configure.Invoke(this); + + public OpenAITaskSettingsDescriptor() : base() + { + } + + private string? UserValue { get; set; } + + /// + /// + /// For a completion or text_embedding task, specify the user issuing the request. + /// This information can be used for abuse detection. + /// + /// + public OpenAITaskSettingsDescriptor User(string? user) + { + UserValue = user; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(UserValue)) + { + writer.WritePropertyName("user"); + writer.WriteStringValue(UserValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs new file mode 100644 index 00000000000..aede0858428 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RankedDocument.g.cs @@ -0,0 +1,46 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// The rerank result object representing a single ranked document +/// id: the original index of the document in the request +/// relevance_score: the relevance_score of the document relative to the query +/// text: Optional, the text of the document, if requested +/// +/// +public sealed partial class RankedDocument +{ + [JsonInclude, JsonPropertyName("index")] + public int Index { get; init; } + [JsonInclude, JsonPropertyName("relevance_score")] + public float RelevanceScore { get; init; } + [JsonInclude, JsonPropertyName("text")] + public string? Text { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs new file mode 100644 index 00000000000..fbea94d0037 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RateLimitSetting.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class RateLimitSetting +{ + /// + /// + /// The number of requests allowed per minute. + /// + /// + [JsonInclude, JsonPropertyName("requests_per_minute")] + public int? RequestsPerMinute { get; set; } +} + +public sealed partial class RateLimitSettingDescriptor : SerializableDescriptor +{ + internal RateLimitSettingDescriptor(Action configure) => configure.Invoke(this); + + public RateLimitSettingDescriptor() : base() + { + } + + private int? RequestsPerMinuteValue { get; set; } + + /// + /// + /// The number of requests allowed per minute. + /// + /// + public RateLimitSettingDescriptor RequestsPerMinute(int? requestsPerMinute) + { + RequestsPerMinuteValue = requestsPerMinute; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (RequestsPerMinuteValue.HasValue) + { + writer.WritePropertyName("requests_per_minute"); + writer.WriteNumberValue(RequestsPerMinuteValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs new file mode 100644 index 00000000000..ba0929db1ea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs @@ -0,0 +1,371 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class RequestChatCompletion +{ + /// + /// + /// The upper bound limit for the number of tokens that can be generated for a completion request. + /// + /// + [JsonInclude, JsonPropertyName("max_completion_tokens")] + public long? MaxCompletionTokens { get; set; } + + /// + /// + /// A list of objects representing the conversation. + /// + /// + [JsonInclude, JsonPropertyName("messages")] + public ICollection Messages { get; set; } + + /// + /// + /// The ID of the model to use. + /// + /// + [JsonInclude, JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// + /// A sequence of strings to control when the model should stop generating additional tokens. + /// + /// + [JsonInclude, JsonPropertyName("stop")] + public ICollection? Stop { get; set; } + + /// + /// + /// The sampling temperature to use. + /// + /// + [JsonInclude, JsonPropertyName("temperature")] + public float? Temperature { get; set; } + + /// + /// + /// Controls which tool is called by the model. + /// + /// + [JsonInclude, JsonPropertyName("tool_choice")] + public Elastic.Clients.Elasticsearch.Inference.CompletionToolType? ToolChoice { get; set; } + + /// + /// + /// A list of tools that the model can call. + /// + /// + [JsonInclude, JsonPropertyName("tools")] + public ICollection? Tools { get; set; } + + /// + /// + /// Nucleus sampling, an alternative to sampling with temperature. + /// + /// + [JsonInclude, JsonPropertyName("top_p")] + public float? TopP { get; set; } +} + +public sealed partial class RequestChatCompletionDescriptor : SerializableDescriptor +{ + internal RequestChatCompletionDescriptor(Action configure) => configure.Invoke(this); + + public RequestChatCompletionDescriptor() : base() + { + } + + private long? MaxCompletionTokensValue { get; set; } + private ICollection MessagesValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.MessageDescriptor MessagesDescriptor { get; set; } + private Action MessagesDescriptorAction { get; set; } + private Action[] MessagesDescriptorActions { get; set; } + private string? ModelValue { get; set; } + private ICollection? StopValue { get; set; } + private float? TemperatureValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CompletionToolType? ToolChoiceValue { get; set; } + private ICollection? ToolsValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.CompletionToolDescriptor ToolsDescriptor { get; set; } + private Action ToolsDescriptorAction { get; set; } + private Action[] ToolsDescriptorActions { get; set; } + private float? TopPValue { get; set; } + + /// + /// + /// The upper bound limit for the number of tokens that can be generated for a completion request. + /// + /// + public RequestChatCompletionDescriptor MaxCompletionTokens(long? maxCompletionTokens) + { + MaxCompletionTokensValue = maxCompletionTokens; + return Self; + } + + /// + /// + /// A list of objects representing the conversation. + /// + /// + public RequestChatCompletionDescriptor Messages(ICollection messages) + { + MessagesDescriptor = null; + MessagesDescriptorAction = null; + MessagesDescriptorActions = null; + MessagesValue = messages; + return Self; + } + + public RequestChatCompletionDescriptor Messages(Elastic.Clients.Elasticsearch.Inference.MessageDescriptor descriptor) + { + MessagesValue = null; + MessagesDescriptorAction = null; + MessagesDescriptorActions = null; + MessagesDescriptor = descriptor; + return Self; + } + + public RequestChatCompletionDescriptor Messages(Action configure) + { + MessagesValue = null; + MessagesDescriptor = null; + MessagesDescriptorActions = null; + MessagesDescriptorAction = configure; + return Self; + } + + public RequestChatCompletionDescriptor Messages(params Action[] configure) + { + MessagesValue = null; + MessagesDescriptor = null; + MessagesDescriptorAction = null; + MessagesDescriptorActions = configure; + return Self; + } + + /// + /// + /// The ID of the model to use. + /// + /// + public RequestChatCompletionDescriptor Model(string? model) + { + ModelValue = model; + return Self; + } + + /// + /// + /// A sequence of strings to control when the model should stop generating additional tokens. + /// + /// + public RequestChatCompletionDescriptor Stop(ICollection? stop) + { + StopValue = stop; + return Self; + } + + /// + /// + /// The sampling temperature to use. + /// + /// + public RequestChatCompletionDescriptor Temperature(float? temperature) + { + TemperatureValue = temperature; + return Self; + } + + /// + /// + /// Controls which tool is called by the model. + /// + /// + public RequestChatCompletionDescriptor ToolChoice(Elastic.Clients.Elasticsearch.Inference.CompletionToolType? toolChoice) + { + ToolChoiceValue = toolChoice; + return Self; + } + + /// + /// + /// A list of tools that the model can call. + /// + /// + public RequestChatCompletionDescriptor Tools(ICollection? tools) + { + ToolsDescriptor = null; + ToolsDescriptorAction = null; + ToolsDescriptorActions = null; + ToolsValue = tools; + return Self; + } + + public RequestChatCompletionDescriptor Tools(Elastic.Clients.Elasticsearch.Inference.CompletionToolDescriptor descriptor) + { + ToolsValue = null; + ToolsDescriptorAction = null; + ToolsDescriptorActions = null; + ToolsDescriptor = descriptor; + return Self; + } + + public RequestChatCompletionDescriptor Tools(Action configure) + { + ToolsValue = null; + ToolsDescriptor = null; + ToolsDescriptorActions = null; + ToolsDescriptorAction = configure; + return Self; + } + + public RequestChatCompletionDescriptor Tools(params Action[] configure) + { + ToolsValue = null; + ToolsDescriptor = null; + ToolsDescriptorAction = null; + ToolsDescriptorActions = configure; + return Self; + } + + /// + /// + /// Nucleus sampling, an alternative to sampling with temperature. + /// + /// + public RequestChatCompletionDescriptor TopP(float? topP) + { + TopPValue = topP; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MaxCompletionTokensValue.HasValue) + { + writer.WritePropertyName("max_completion_tokens"); + writer.WriteNumberValue(MaxCompletionTokensValue.Value); + } + + if (MessagesDescriptor is not null) + { + writer.WritePropertyName("messages"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, MessagesDescriptor, options); + writer.WriteEndArray(); + } + else if (MessagesDescriptorAction is not null) + { + writer.WritePropertyName("messages"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.MessageDescriptor(MessagesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (MessagesDescriptorActions is not null) + { + writer.WritePropertyName("messages"); + writer.WriteStartArray(); + foreach (var action in MessagesDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.MessageDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("messages"); + JsonSerializer.Serialize(writer, MessagesValue, options); + } + + if (!string.IsNullOrEmpty(ModelValue)) + { + writer.WritePropertyName("model"); + writer.WriteStringValue(ModelValue); + } + + if (StopValue is not null) + { + writer.WritePropertyName("stop"); + JsonSerializer.Serialize(writer, StopValue, options); + } + + if (TemperatureValue.HasValue) + { + writer.WritePropertyName("temperature"); + writer.WriteNumberValue(TemperatureValue.Value); + } + + if (ToolChoiceValue is not null) + { + writer.WritePropertyName("tool_choice"); + JsonSerializer.Serialize(writer, ToolChoiceValue, options); + } + + if (ToolsDescriptor is not null) + { + writer.WritePropertyName("tools"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, ToolsDescriptor, options); + writer.WriteEndArray(); + } + else if (ToolsDescriptorAction is not null) + { + writer.WritePropertyName("tools"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.CompletionToolDescriptor(ToolsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (ToolsDescriptorActions is not null) + { + writer.WritePropertyName("tools"); + writer.WriteStartArray(); + foreach (var action in ToolsDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.CompletionToolDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (ToolsValue is not null) + { + writer.WritePropertyName("tools"); + JsonSerializer.Serialize(writer, ToolsValue, options); + } + + if (TopPValue.HasValue) + { + writer.WritePropertyName("top_p"); + writer.WriteNumberValue(TopPValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs new file mode 100644 index 00000000000..6013bd91957 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/SparseEmbeddingResult.g.cs @@ -0,0 +1,34 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class SparseEmbeddingResult +{ + [JsonInclude, JsonPropertyName("embedding")] + public IReadOnlyDictionary Embedding { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs new file mode 100644 index 00000000000..282caf0213b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCall.g.cs @@ -0,0 +1,157 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// A tool call generated by the model. +/// +/// +public sealed partial class ToolCall +{ + /// + /// + /// The function that the model called. + /// + /// + [JsonInclude, JsonPropertyName("function")] + public Elastic.Clients.Elasticsearch.Inference.ToolCallFunction Function { get; set; } + + /// + /// + /// The identifier of the tool call. + /// + /// + [JsonInclude, JsonPropertyName("id")] + public Elastic.Clients.Elasticsearch.Id Id { get; set; } + + /// + /// + /// The type of the tool call. + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; set; } +} + +/// +/// +/// A tool call generated by the model. +/// +/// +public sealed partial class ToolCallDescriptor : SerializableDescriptor +{ + internal ToolCallDescriptor(Action configure) => configure.Invoke(this); + + public ToolCallDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Inference.ToolCallFunction FunctionValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.ToolCallFunctionDescriptor FunctionDescriptor { get; set; } + private Action FunctionDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Id IdValue { get; set; } + private string TypeValue { get; set; } + + /// + /// + /// The function that the model called. + /// + /// + public ToolCallDescriptor Function(Elastic.Clients.Elasticsearch.Inference.ToolCallFunction function) + { + FunctionDescriptor = null; + FunctionDescriptorAction = null; + FunctionValue = function; + return Self; + } + + public ToolCallDescriptor Function(Elastic.Clients.Elasticsearch.Inference.ToolCallFunctionDescriptor descriptor) + { + FunctionValue = null; + FunctionDescriptorAction = null; + FunctionDescriptor = descriptor; + return Self; + } + + public ToolCallDescriptor Function(Action configure) + { + FunctionValue = null; + FunctionDescriptor = null; + FunctionDescriptorAction = configure; + return Self; + } + + /// + /// + /// The identifier of the tool call. + /// + /// + public ToolCallDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + IdValue = id; + return Self; + } + + /// + /// + /// The type of the tool call. + /// + /// + public ToolCallDescriptor Type(string type) + { + TypeValue = type; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FunctionDescriptor is not null) + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, FunctionDescriptor, options); + } + else if (FunctionDescriptorAction is not null) + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.ToolCallFunctionDescriptor(FunctionDescriptorAction), options); + } + else + { + writer.WritePropertyName("function"); + JsonSerializer.Serialize(writer, FunctionValue, options); + } + + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + writer.WritePropertyName("type"); + writer.WriteStringValue(TypeValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs new file mode 100644 index 00000000000..89e949f910f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ToolCallFunction.g.cs @@ -0,0 +1,101 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +/// +/// +/// The function that the model called. +/// +/// +public sealed partial class ToolCallFunction +{ + /// + /// + /// The arguments to call the function with in JSON format. + /// + /// + [JsonInclude, JsonPropertyName("arguments")] + public string Arguments { get; set; } + + /// + /// + /// The name of the function to call. + /// + /// + [JsonInclude, JsonPropertyName("name")] + public string Name { get; set; } +} + +/// +/// +/// The function that the model called. +/// +/// +public sealed partial class ToolCallFunctionDescriptor : SerializableDescriptor +{ + internal ToolCallFunctionDescriptor(Action configure) => configure.Invoke(this); + + public ToolCallFunctionDescriptor() : base() + { + } + + private string ArgumentsValue { get; set; } + private string NameValue { get; set; } + + /// + /// + /// The arguments to call the function with in JSON format. + /// + /// + public ToolCallFunctionDescriptor Arguments(string arguments) + { + ArgumentsValue = arguments; + return Self; + } + + /// + /// + /// The name of the function to call. + /// + /// + public ToolCallFunctionDescriptor Name(string name) + { + NameValue = name; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("arguments"); + writer.WriteStringValue(ArgumentsValue); + writer.WritePropertyName("name"); + writer.WriteStringValue(NameValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs new file mode 100644 index 00000000000..1a677c9852a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/WatsonxServiceSettings.g.cs @@ -0,0 +1,233 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Inference; + +public sealed partial class WatsonxServiceSettings +{ + /// + /// + /// A valid API key of your Watsonx account. + /// You can find your Watsonx API keys or you can create a new one on the API keys page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + [JsonInclude, JsonPropertyName("api_key")] + public string ApiKey { get; set; } + + /// + /// + /// A version parameter that takes a version date in the format of YYYY-MM-DD. + /// For the active version data parameters, refer to the Wastonx documentation. + /// + /// + [JsonInclude, JsonPropertyName("api_version")] + public string ApiVersion { get; set; } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models. + /// + /// + [JsonInclude, JsonPropertyName("model_id")] + public string ModelId { get; set; } + + /// + /// + /// The identifier of the IBM Cloud project to use for the inference task. + /// + /// + [JsonInclude, JsonPropertyName("project_id")] + public string ProjectId { get; set; } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Watsonx. + /// By default, the watsonxai service sets the number of requests allowed per minute to 120. + /// + /// + [JsonInclude, JsonPropertyName("rate_limit")] + public Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimit { get; set; } + + /// + /// + /// The URL of the inference endpoint that you created on Watsonx. + /// + /// + [JsonInclude, JsonPropertyName("url")] + public string Url { get; set; } +} + +public sealed partial class WatsonxServiceSettingsDescriptor : SerializableDescriptor +{ + internal WatsonxServiceSettingsDescriptor(Action configure) => configure.Invoke(this); + + public WatsonxServiceSettingsDescriptor() : base() + { + } + + private string ApiKeyValue { get; set; } + private string ApiVersionValue { get; set; } + private string ModelIdValue { get; set; } + private string ProjectIdValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? RateLimitValue { get; set; } + private Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor RateLimitDescriptor { get; set; } + private Action RateLimitDescriptorAction { get; set; } + private string UrlValue { get; set; } + + /// + /// + /// A valid API key of your Watsonx account. + /// You can find your Watsonx API keys or you can create a new one on the API keys page. + /// + /// + /// IMPORTANT: You need to provide the API key only once, during the inference model creation. + /// The get inference endpoint API does not retrieve your API key. + /// After creating the inference model, you cannot change the associated API key. + /// If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key. + /// + /// + public WatsonxServiceSettingsDescriptor ApiKey(string apiKey) + { + ApiKeyValue = apiKey; + return Self; + } + + /// + /// + /// A version parameter that takes a version date in the format of YYYY-MM-DD. + /// For the active version data parameters, refer to the Wastonx documentation. + /// + /// + public WatsonxServiceSettingsDescriptor ApiVersion(string apiVersion) + { + ApiVersionValue = apiVersion; + return Self; + } + + /// + /// + /// The name of the model to use for the inference task. + /// Refer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models. + /// + /// + public WatsonxServiceSettingsDescriptor ModelId(string modelId) + { + ModelIdValue = modelId; + return Self; + } + + /// + /// + /// The identifier of the IBM Cloud project to use for the inference task. + /// + /// + public WatsonxServiceSettingsDescriptor ProjectId(string projectId) + { + ProjectIdValue = projectId; + return Self; + } + + /// + /// + /// This setting helps to minimize the number of rate limit errors returned from Watsonx. + /// By default, the watsonxai service sets the number of requests allowed per minute to 120. + /// + /// + public WatsonxServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSetting? rateLimit) + { + RateLimitDescriptor = null; + RateLimitDescriptorAction = null; + RateLimitValue = rateLimit; + return Self; + } + + public WatsonxServiceSettingsDescriptor RateLimit(Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor descriptor) + { + RateLimitValue = null; + RateLimitDescriptorAction = null; + RateLimitDescriptor = descriptor; + return Self; + } + + public WatsonxServiceSettingsDescriptor RateLimit(Action configure) + { + RateLimitValue = null; + RateLimitDescriptor = null; + RateLimitDescriptorAction = configure; + return Self; + } + + /// + /// + /// The URL of the inference endpoint that you created on Watsonx. + /// + /// + public WatsonxServiceSettingsDescriptor Url(string url) + { + UrlValue = url; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("api_key"); + writer.WriteStringValue(ApiKeyValue); + writer.WritePropertyName("api_version"); + writer.WriteStringValue(ApiVersionValue); + writer.WritePropertyName("model_id"); + writer.WriteStringValue(ModelIdValue); + writer.WritePropertyName("project_id"); + writer.WriteStringValue(ProjectIdValue); + if (RateLimitDescriptor is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitDescriptor, options); + } + else if (RateLimitDescriptorAction is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Inference.RateLimitSettingDescriptor(RateLimitDescriptorAction), options); + } + else if (RateLimitValue is not null) + { + writer.WritePropertyName("rate_limit"); + JsonSerializer.Serialize(writer, RateLimitValue, options); + } + + writer.WritePropertyName("url"); + writer.WriteStringValue(UrlValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs index 66ef214621d..66bdee60b54 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InferenceProcessor.g.cs @@ -63,6 +63,16 @@ public sealed partial class InferenceProcessor [JsonInclude, JsonPropertyName("ignore_failure")] public bool? IgnoreFailure { get; set; } + /// + /// + /// If true and any of the input fields defined in input_ouput are missing + /// then those missing fields are quietly ignored, otherwise a missing field causes a failure. + /// Only applies when using input_output configurations to explicitly list the input fields. + /// + /// + [JsonInclude, JsonPropertyName("ignore_missing")] + public bool? IgnoreMissing { get; set; } + /// /// /// Contains the inference type and its options. @@ -71,6 +81,16 @@ public sealed partial class InferenceProcessor [JsonInclude, JsonPropertyName("inference_config")] public Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? InferenceConfig { get; set; } + /// + /// + /// Input fields for inference and output (destination) fields for the inference results. + /// This option is incompatible with the target_field and field_map options. + /// + /// + [JsonInclude, JsonPropertyName("input_output")] + [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Ingest.InputConfig))] + public ICollection? InputOutput { get; set; } + /// /// /// The ID or alias for the trained model, or the ID of the deployment. @@ -119,9 +139,14 @@ public InferenceProcessorDescriptor() : base() private IDictionary? FieldMapValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } private Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? InferenceConfigValue { get; set; } private Elastic.Clients.Elasticsearch.Ingest.InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } private Action> InferenceConfigDescriptorAction { get; set; } + private ICollection? InputOutputValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor InputOutputDescriptor { get; set; } + private Action InputOutputDescriptorAction { get; set; } + private Action[] InputOutputDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Id ModelIdValue { get; set; } private ICollection? OnFailureValue { get; set; } private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } @@ -176,6 +201,19 @@ public InferenceProcessorDescriptor IgnoreFailure(bool? ignoreFailure return Self; } + /// + /// + /// If true and any of the input fields defined in input_ouput are missing + /// then those missing fields are quietly ignored, otherwise a missing field causes a failure. + /// Only applies when using input_output configurations to explicitly list the input fields. + /// + /// + public InferenceProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + /// /// /// Contains the inference type and its options. @@ -205,6 +243,48 @@ public InferenceProcessorDescriptor InferenceConfig(Action + /// + /// Input fields for inference and output (destination) fields for the inference results. + /// This option is incompatible with the target_field and field_map options. + /// + /// + public InferenceProcessorDescriptor InputOutput(ICollection? inputOutput) + { + InputOutputDescriptor = null; + InputOutputDescriptorAction = null; + InputOutputDescriptorActions = null; + InputOutputValue = inputOutput; + return Self; + } + + public InferenceProcessorDescriptor InputOutput(Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor descriptor) + { + InputOutputValue = null; + InputOutputDescriptorAction = null; + InputOutputDescriptorActions = null; + InputOutputDescriptor = descriptor; + return Self; + } + + public InferenceProcessorDescriptor InputOutput(Action configure) + { + InputOutputValue = null; + InputOutputDescriptor = null; + InputOutputDescriptorActions = null; + InputOutputDescriptorAction = configure; + return Self; + } + + public InferenceProcessorDescriptor InputOutput(params Action[] configure) + { + InputOutputValue = null; + InputOutputDescriptor = null; + InputOutputDescriptorAction = null; + InputOutputDescriptorActions = configure; + return Self; + } + /// /// /// The ID or alias for the trained model, or the ID of the deployment. @@ -329,6 +409,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreFailureValue.Value); } + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + if (InferenceConfigDescriptor is not null) { writer.WritePropertyName("inference_config"); @@ -345,6 +431,35 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, InferenceConfigValue, options); } + if (InputOutputDescriptor is not null) + { + writer.WritePropertyName("input_output"); + JsonSerializer.Serialize(writer, InputOutputDescriptor, options); + } + else if (InputOutputDescriptorAction is not null) + { + writer.WritePropertyName("input_output"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor(InputOutputDescriptorAction), options); + } + else if (InputOutputDescriptorActions is not null) + { + writer.WritePropertyName("input_output"); + if (InputOutputDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in InputOutputDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor(action), options); + } + + if (InputOutputDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (InputOutputValue is not null) + { + writer.WritePropertyName("input_output"); + SingleOrManySerializationHelper.Serialize(InputOutputValue, writer, options); + } + writer.WritePropertyName("model_id"); JsonSerializer.Serialize(writer, ModelIdValue, options); if (OnFailureDescriptor is not null) @@ -406,9 +521,14 @@ public InferenceProcessorDescriptor() : base() private IDictionary? FieldMapValue { get; set; } private string? IfValue { get; set; } private bool? IgnoreFailureValue { get; set; } + private bool? IgnoreMissingValue { get; set; } private Elastic.Clients.Elasticsearch.Ingest.InferenceConfig? InferenceConfigValue { get; set; } private Elastic.Clients.Elasticsearch.Ingest.InferenceConfigDescriptor InferenceConfigDescriptor { get; set; } private Action InferenceConfigDescriptorAction { get; set; } + private ICollection? InputOutputValue { get; set; } + private Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor InputOutputDescriptor { get; set; } + private Action InputOutputDescriptorAction { get; set; } + private Action[] InputOutputDescriptorActions { get; set; } private Elastic.Clients.Elasticsearch.Id ModelIdValue { get; set; } private ICollection? OnFailureValue { get; set; } private Elastic.Clients.Elasticsearch.Ingest.ProcessorDescriptor OnFailureDescriptor { get; set; } @@ -463,6 +583,19 @@ public InferenceProcessorDescriptor IgnoreFailure(bool? ignoreFailure = true) return Self; } + /// + /// + /// If true and any of the input fields defined in input_ouput are missing + /// then those missing fields are quietly ignored, otherwise a missing field causes a failure. + /// Only applies when using input_output configurations to explicitly list the input fields. + /// + /// + public InferenceProcessorDescriptor IgnoreMissing(bool? ignoreMissing = true) + { + IgnoreMissingValue = ignoreMissing; + return Self; + } + /// /// /// Contains the inference type and its options. @@ -492,6 +625,48 @@ public InferenceProcessorDescriptor InferenceConfig(Action + /// + /// Input fields for inference and output (destination) fields for the inference results. + /// This option is incompatible with the target_field and field_map options. + /// + /// + public InferenceProcessorDescriptor InputOutput(ICollection? inputOutput) + { + InputOutputDescriptor = null; + InputOutputDescriptorAction = null; + InputOutputDescriptorActions = null; + InputOutputValue = inputOutput; + return Self; + } + + public InferenceProcessorDescriptor InputOutput(Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor descriptor) + { + InputOutputValue = null; + InputOutputDescriptorAction = null; + InputOutputDescriptorActions = null; + InputOutputDescriptor = descriptor; + return Self; + } + + public InferenceProcessorDescriptor InputOutput(Action configure) + { + InputOutputValue = null; + InputOutputDescriptor = null; + InputOutputDescriptorActions = null; + InputOutputDescriptorAction = configure; + return Self; + } + + public InferenceProcessorDescriptor InputOutput(params Action[] configure) + { + InputOutputValue = null; + InputOutputDescriptor = null; + InputOutputDescriptorAction = null; + InputOutputDescriptorActions = configure; + return Self; + } + /// /// /// The ID or alias for the trained model, or the ID of the deployment. @@ -616,6 +791,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreFailureValue.Value); } + if (IgnoreMissingValue.HasValue) + { + writer.WritePropertyName("ignore_missing"); + writer.WriteBooleanValue(IgnoreMissingValue.Value); + } + if (InferenceConfigDescriptor is not null) { writer.WritePropertyName("inference_config"); @@ -632,6 +813,35 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, InferenceConfigValue, options); } + if (InputOutputDescriptor is not null) + { + writer.WritePropertyName("input_output"); + JsonSerializer.Serialize(writer, InputOutputDescriptor, options); + } + else if (InputOutputDescriptorAction is not null) + { + writer.WritePropertyName("input_output"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor(InputOutputDescriptorAction), options); + } + else if (InputOutputDescriptorActions is not null) + { + writer.WritePropertyName("input_output"); + if (InputOutputDescriptorActions.Length != 1) + writer.WriteStartArray(); + foreach (var action in InputOutputDescriptorActions) + { + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.Ingest.InputConfigDescriptor(action), options); + } + + if (InputOutputDescriptorActions.Length != 1) + writer.WriteEndArray(); + } + else if (InputOutputValue is not null) + { + writer.WritePropertyName("input_output"); + SingleOrManySerializationHelper.Serialize(InputOutputValue, writer, options); + } + writer.WritePropertyName("model_id"); JsonSerializer.Serialize(writer, ModelIdValue, options); if (OnFailureDescriptor is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs new file mode 100644 index 00000000000..6a9c5c7a64b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/InputConfig.g.cs @@ -0,0 +1,70 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Ingest; + +public sealed partial class InputConfig +{ + [JsonInclude, JsonPropertyName("input_field")] + public string InputField { get; set; } + [JsonInclude, JsonPropertyName("output_field")] + public string OutputField { get; set; } +} + +public sealed partial class InputConfigDescriptor : SerializableDescriptor +{ + internal InputConfigDescriptor(Action configure) => configure.Invoke(this); + + public InputConfigDescriptor() : base() + { + } + + private string InputFieldValue { get; set; } + private string OutputFieldValue { get; set; } + + public InputConfigDescriptor InputField(string inputField) + { + InputFieldValue = inputField; + return Self; + } + + public InputConfigDescriptor OutputField(string outputField) + { + OutputFieldValue = outputField; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("input_field"); + writer.WriteStringValue(InputFieldValue); + writer.WritePropertyName("output_field"); + writer.WriteStringValue(OutputFieldValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs similarity index 93% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs index 5b3cad876d6..e4784f026dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineSimulation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/PipelineProcessorResult.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.Ingest; -public sealed partial class PipelineSimulation +public sealed partial class PipelineProcessorResult { [JsonInclude, JsonPropertyName("description")] public string? Description { get; init; } @@ -40,7 +40,7 @@ public sealed partial class PipelineSimulation [JsonInclude, JsonPropertyName("processor_type")] public string? ProcessorType { get; init; } [JsonInclude, JsonPropertyName("status")] - public Elastic.Clients.Elasticsearch.Watcher.ActionStatusOptions? Status { get; init; } + public Elastic.Clients.Elasticsearch.Ingest.PipelineSimulationStatusOptions? Status { get; init; } [JsonInclude, JsonPropertyName("tag")] public string? Tag { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs index 0fdf45f2322..e83271eb4b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/SimulateDocumentResult.g.cs @@ -34,5 +34,5 @@ public sealed partial class SimulateDocumentResult [JsonInclude, JsonPropertyName("error")] public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; init; } [JsonInclude, JsonPropertyName("processor_results")] - public IReadOnlyCollection? ProcessorResults { get; init; } + public IReadOnlyCollection? ProcessorResults { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs index 8ef6b7429e7..9349a9ba848 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs @@ -91,6 +91,14 @@ public sealed partial class KnnQuery [JsonInclude, JsonPropertyName("query_vector_builder")] public Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilder { get; set; } + /// + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + [JsonInclude, JsonPropertyName("rescore_vector")] + public Elastic.Clients.Elasticsearch.RescoreVector? RescoreVector { get; set; } + /// /// /// The minimum similarity for a vector to be considered a match @@ -123,6 +131,9 @@ public KnnQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } private Action QueryVectorBuilderDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVector? RescoreVectorValue { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVectorDescriptor RescoreVectorDescriptor { get; set; } + private Action RescoreVectorDescriptorAction { get; set; } private float? SimilarityValue { get; set; } /// @@ -281,6 +292,35 @@ public KnnQueryDescriptor QueryVectorBuilder(Action + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + public KnnQueryDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVector? rescoreVector) + { + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = null; + RescoreVectorValue = rescoreVector; + return Self; + } + + public KnnQueryDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVectorDescriptor descriptor) + { + RescoreVectorValue = null; + RescoreVectorDescriptorAction = null; + RescoreVectorDescriptor = descriptor; + return Self; + } + + public KnnQueryDescriptor RescoreVector(Action configure) + { + RescoreVectorValue = null; + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = configure; + return Self; + } + /// /// /// The minimum similarity for a vector to be considered a match @@ -372,6 +412,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); } + if (RescoreVectorDescriptor is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorDescriptor, options); + } + else if (RescoreVectorDescriptorAction is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RescoreVectorDescriptor(RescoreVectorDescriptorAction), options); + } + else if (RescoreVectorValue is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorValue, options); + } + if (SimilarityValue.HasValue) { writer.WritePropertyName("similarity"); @@ -403,6 +459,9 @@ public KnnQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } private Action QueryVectorBuilderDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVector? RescoreVectorValue { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVectorDescriptor RescoreVectorDescriptor { get; set; } + private Action RescoreVectorDescriptorAction { get; set; } private float? SimilarityValue { get; set; } /// @@ -561,6 +620,35 @@ public KnnQueryDescriptor QueryVectorBuilder(Action + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + public KnnQueryDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVector? rescoreVector) + { + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = null; + RescoreVectorValue = rescoreVector; + return Self; + } + + public KnnQueryDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVectorDescriptor descriptor) + { + RescoreVectorValue = null; + RescoreVectorDescriptorAction = null; + RescoreVectorDescriptor = descriptor; + return Self; + } + + public KnnQueryDescriptor RescoreVector(Action configure) + { + RescoreVectorValue = null; + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = configure; + return Self; + } + /// /// /// The minimum similarity for a vector to be considered a match @@ -652,6 +740,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); } + if (RescoreVectorDescriptor is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorDescriptor, options); + } + else if (RescoreVectorDescriptorAction is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RescoreVectorDescriptor(RescoreVectorDescriptorAction), options); + } + else if (RescoreVectorValue is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorValue, options); + } + if (SimilarityValue.HasValue) { writer.WritePropertyName("similarity"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs index effdb6f24c5..600e64302b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnRetriever.g.cs @@ -86,6 +86,14 @@ public sealed partial class KnnRetriever [JsonInclude, JsonPropertyName("query_vector_builder")] public Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilder { get; set; } + /// + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + [JsonInclude, JsonPropertyName("rescore_vector")] + public Elastic.Clients.Elasticsearch.RescoreVector? RescoreVector { get; set; } + /// /// /// The minimum similarity required for a document to be considered a match. @@ -117,6 +125,9 @@ public KnnRetrieverDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } private Action QueryVectorBuilderDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVector? RescoreVectorValue { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVectorDescriptor RescoreVectorDescriptor { get; set; } + private Action RescoreVectorDescriptorAction { get; set; } private float? SimilarityValue { get; set; } /// @@ -244,6 +255,35 @@ public KnnRetrieverDescriptor QueryVectorBuilder(Action + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + public KnnRetrieverDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVector? rescoreVector) + { + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = null; + RescoreVectorValue = rescoreVector; + return Self; + } + + public KnnRetrieverDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVectorDescriptor descriptor) + { + RescoreVectorValue = null; + RescoreVectorDescriptorAction = null; + RescoreVectorDescriptor = descriptor; + return Self; + } + + public KnnRetrieverDescriptor RescoreVector(Action configure) + { + RescoreVectorValue = null; + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = configure; + return Self; + } + /// /// /// The minimum similarity required for a document to be considered a match. @@ -321,6 +361,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); } + if (RescoreVectorDescriptor is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorDescriptor, options); + } + else if (RescoreVectorDescriptorAction is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RescoreVectorDescriptor(RescoreVectorDescriptorAction), options); + } + else if (RescoreVectorValue is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorValue, options); + } + if (SimilarityValue.HasValue) { writer.WritePropertyName("similarity"); @@ -351,6 +407,9 @@ public KnnRetrieverDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } private Action QueryVectorBuilderDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVector? RescoreVectorValue { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVectorDescriptor RescoreVectorDescriptor { get; set; } + private Action RescoreVectorDescriptorAction { get; set; } private float? SimilarityValue { get; set; } /// @@ -478,6 +537,35 @@ public KnnRetrieverDescriptor QueryVectorBuilder(Action + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + public KnnRetrieverDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVector? rescoreVector) + { + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = null; + RescoreVectorValue = rescoreVector; + return Self; + } + + public KnnRetrieverDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVectorDescriptor descriptor) + { + RescoreVectorValue = null; + RescoreVectorDescriptorAction = null; + RescoreVectorDescriptor = descriptor; + return Self; + } + + public KnnRetrieverDescriptor RescoreVector(Action configure) + { + RescoreVectorValue = null; + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = configure; + return Self; + } + /// /// /// The minimum similarity required for a document to be considered a match. @@ -555,6 +643,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); } + if (RescoreVectorDescriptor is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorDescriptor, options); + } + else if (RescoreVectorDescriptorAction is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RescoreVectorDescriptor(RescoreVectorDescriptorAction), options); + } + else if (RescoreVectorValue is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorValue, options); + } + if (SimilarityValue.HasValue) { writer.WritePropertyName("similarity"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs index a3a664f8101..7521b527360 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnSearch.g.cs @@ -94,6 +94,14 @@ public sealed partial class KnnSearch [JsonInclude, JsonPropertyName("query_vector_builder")] public Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilder { get; set; } + /// + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + [JsonInclude, JsonPropertyName("rescore_vector")] + public Elastic.Clients.Elasticsearch.RescoreVector? RescoreVector { get; set; } + /// /// /// The minimum similarity for a vector to be considered a match @@ -126,6 +134,9 @@ public KnnSearchDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } private Action QueryVectorBuilderDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVector? RescoreVectorValue { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVectorDescriptor RescoreVectorDescriptor { get; set; } + private Action RescoreVectorDescriptorAction { get; set; } private float? SimilarityValue { get; set; } /// @@ -304,6 +315,35 @@ public KnnSearchDescriptor QueryVectorBuilder(Action + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + public KnnSearchDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVector? rescoreVector) + { + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = null; + RescoreVectorValue = rescoreVector; + return Self; + } + + public KnnSearchDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVectorDescriptor descriptor) + { + RescoreVectorValue = null; + RescoreVectorDescriptorAction = null; + RescoreVectorDescriptor = descriptor; + return Self; + } + + public KnnSearchDescriptor RescoreVector(Action configure) + { + RescoreVectorValue = null; + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = configure; + return Self; + } + /// /// /// The minimum similarity for a vector to be considered a match @@ -405,6 +445,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); } + if (RescoreVectorDescriptor is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorDescriptor, options); + } + else if (RescoreVectorDescriptorAction is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RescoreVectorDescriptor(RescoreVectorDescriptorAction), options); + } + else if (RescoreVectorValue is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorValue, options); + } + if (SimilarityValue.HasValue) { writer.WritePropertyName("similarity"); @@ -438,6 +494,9 @@ public KnnSearchDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryVectorBuilder? QueryVectorBuilderValue { get; set; } private Elastic.Clients.Elasticsearch.QueryVectorBuilderDescriptor QueryVectorBuilderDescriptor { get; set; } private Action QueryVectorBuilderDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVector? RescoreVectorValue { get; set; } + private Elastic.Clients.Elasticsearch.RescoreVectorDescriptor RescoreVectorDescriptor { get; set; } + private Action RescoreVectorDescriptorAction { get; set; } private float? SimilarityValue { get; set; } /// @@ -616,6 +675,35 @@ public KnnSearchDescriptor QueryVectorBuilder(Action + /// + /// Apply oversampling and rescoring to quantized vectors * + /// + /// + public KnnSearchDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVector? rescoreVector) + { + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = null; + RescoreVectorValue = rescoreVector; + return Self; + } + + public KnnSearchDescriptor RescoreVector(Elastic.Clients.Elasticsearch.RescoreVectorDescriptor descriptor) + { + RescoreVectorValue = null; + RescoreVectorDescriptorAction = null; + RescoreVectorDescriptor = descriptor; + return Self; + } + + public KnnSearchDescriptor RescoreVector(Action configure) + { + RescoreVectorValue = null; + RescoreVectorDescriptor = null; + RescoreVectorDescriptorAction = configure; + return Self; + } + /// /// /// The minimum similarity for a vector to be considered a match @@ -717,6 +805,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, QueryVectorBuilderValue, options); } + if (RescoreVectorDescriptor is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorDescriptor, options); + } + else if (RescoreVectorDescriptorAction is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.RescoreVectorDescriptor(RescoreVectorDescriptorAction), options); + } + else if (RescoreVectorValue is not null) + { + writer.WritePropertyName("rescore_vector"); + JsonSerializer.Serialize(writer, RescoreVectorValue, options); + } + if (SimilarityValue.HasValue) { writer.WritePropertyName("similarity"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs index 20423691083..04ea475f469 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AdaptiveAllocationsSettings.g.cs @@ -29,10 +29,99 @@ namespace Elastic.Clients.Elasticsearch.MachineLearning; public sealed partial class AdaptiveAllocationsSettings { + /// + /// + /// If true, adaptive_allocations is enabled + /// + /// [JsonInclude, JsonPropertyName("enabled")] - public bool Enabled { get; init; } + public bool Enabled { get; set; } + + /// + /// + /// Specifies the maximum number of allocations to scale to. + /// If set, it must be greater than or equal to min_number_of_allocations. + /// + /// [JsonInclude, JsonPropertyName("max_number_of_allocations")] - public int? MaxNumberOfAllocations { get; init; } + public int? MaxNumberOfAllocations { get; set; } + + /// + /// + /// Specifies the minimum number of allocations to scale to. + /// If set, it must be greater than or equal to 0. + /// If not defined, the deployment scales to 0. + /// + /// [JsonInclude, JsonPropertyName("min_number_of_allocations")] - public int? MinNumberOfAllocations { get; init; } + public int? MinNumberOfAllocations { get; set; } +} + +public sealed partial class AdaptiveAllocationsSettingsDescriptor : SerializableDescriptor +{ + internal AdaptiveAllocationsSettingsDescriptor(Action configure) => configure.Invoke(this); + + public AdaptiveAllocationsSettingsDescriptor() : base() + { + } + + private bool EnabledValue { get; set; } + private int? MaxNumberOfAllocationsValue { get; set; } + private int? MinNumberOfAllocationsValue { get; set; } + + /// + /// + /// If true, adaptive_allocations is enabled + /// + /// + public AdaptiveAllocationsSettingsDescriptor Enabled(bool enabled = true) + { + EnabledValue = enabled; + return Self; + } + + /// + /// + /// Specifies the maximum number of allocations to scale to. + /// If set, it must be greater than or equal to min_number_of_allocations. + /// + /// + public AdaptiveAllocationsSettingsDescriptor MaxNumberOfAllocations(int? maxNumberOfAllocations) + { + MaxNumberOfAllocationsValue = maxNumberOfAllocations; + return Self; + } + + /// + /// + /// Specifies the minimum number of allocations to scale to. + /// If set, it must be greater than or equal to 0. + /// If not defined, the deployment scales to 0. + /// + /// + public AdaptiveAllocationsSettingsDescriptor MinNumberOfAllocations(int? minNumberOfAllocations) + { + MinNumberOfAllocationsValue = minNumberOfAllocations; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue); + if (MaxNumberOfAllocationsValue.HasValue) + { + writer.WritePropertyName("max_number_of_allocations"); + writer.WriteNumberValue(MaxNumberOfAllocationsValue.Value); + } + + if (MinNumberOfAllocationsValue.HasValue) + { + writer.WritePropertyName("min_number_of_allocations"); + writer.WriteNumberValue(MinNumberOfAllocationsValue.Value); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs index 7521192e9fc..1683cd486a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/InferenceConfigCreate.g.cs @@ -53,6 +53,7 @@ internal InferenceConfigCreate(string variantName, object variant) public static InferenceConfigCreate Classification(Elastic.Clients.Elasticsearch.MachineLearning.ClassificationInferenceOptions classificationInferenceOptions) => new InferenceConfigCreate("classification", classificationInferenceOptions); public static InferenceConfigCreate FillMask(Elastic.Clients.Elasticsearch.MachineLearning.FillMaskInferenceOptions fillMaskInferenceOptions) => new InferenceConfigCreate("fill_mask", fillMaskInferenceOptions); + public static InferenceConfigCreate LearningToRank(Elastic.Clients.Elasticsearch.MachineLearning.LearningToRankConfig learningToRankConfig) => new InferenceConfigCreate("learning_to_rank", learningToRankConfig); public static InferenceConfigCreate Ner(Elastic.Clients.Elasticsearch.MachineLearning.NerInferenceOptions nerInferenceOptions) => new InferenceConfigCreate("ner", nerInferenceOptions); public static InferenceConfigCreate PassThrough(Elastic.Clients.Elasticsearch.MachineLearning.PassThroughInferenceOptions passThroughInferenceOptions) => new InferenceConfigCreate("pass_through", passThroughInferenceOptions); public static InferenceConfigCreate QuestionAnswering(Elastic.Clients.Elasticsearch.MachineLearning.QuestionAnsweringInferenceOptions questionAnsweringInferenceOptions) => new InferenceConfigCreate("question_answering", questionAnsweringInferenceOptions); @@ -114,6 +115,13 @@ public override InferenceConfigCreate Read(ref Utf8JsonReader reader, Type typeT continue; } + if (propertyName == "learning_to_rank") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + if (propertyName == "ner") { variantValue = JsonSerializer.Deserialize(ref reader, options); @@ -191,6 +199,9 @@ public override void Write(Utf8JsonWriter writer, InferenceConfigCreate value, J case "fill_mask": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.FillMaskInferenceOptions)value.Variant, options); break; + case "learning_to_rank": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.LearningToRankConfig)value.Variant, options); + break; case "ner": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.NerInferenceOptions)value.Variant, options); break; @@ -257,6 +268,8 @@ private InferenceConfigCreateDescriptor Set(object variant, string va public InferenceConfigCreateDescriptor Classification(Action configure) => Set(configure, "classification"); public InferenceConfigCreateDescriptor FillMask(Elastic.Clients.Elasticsearch.MachineLearning.FillMaskInferenceOptions fillMaskInferenceOptions) => Set(fillMaskInferenceOptions, "fill_mask"); public InferenceConfigCreateDescriptor FillMask(Action configure) => Set(configure, "fill_mask"); + public InferenceConfigCreateDescriptor LearningToRank(Elastic.Clients.Elasticsearch.MachineLearning.LearningToRankConfig learningToRankConfig) => Set(learningToRankConfig, "learning_to_rank"); + public InferenceConfigCreateDescriptor LearningToRank(Action> configure) => Set(configure, "learning_to_rank"); public InferenceConfigCreateDescriptor Ner(Elastic.Clients.Elasticsearch.MachineLearning.NerInferenceOptions nerInferenceOptions) => Set(nerInferenceOptions, "ner"); public InferenceConfigCreateDescriptor Ner(Action configure) => Set(configure, "ner"); public InferenceConfigCreateDescriptor PassThrough(Elastic.Clients.Elasticsearch.MachineLearning.PassThroughInferenceOptions passThroughInferenceOptions) => Set(passThroughInferenceOptions, "pass_through"); @@ -329,6 +342,8 @@ private InferenceConfigCreateDescriptor Set(object variant, string variantName) public InferenceConfigCreateDescriptor Classification(Action configure) => Set(configure, "classification"); public InferenceConfigCreateDescriptor FillMask(Elastic.Clients.Elasticsearch.MachineLearning.FillMaskInferenceOptions fillMaskInferenceOptions) => Set(fillMaskInferenceOptions, "fill_mask"); public InferenceConfigCreateDescriptor FillMask(Action configure) => Set(configure, "fill_mask"); + public InferenceConfigCreateDescriptor LearningToRank(Elastic.Clients.Elasticsearch.MachineLearning.LearningToRankConfig learningToRankConfig) => Set(learningToRankConfig, "learning_to_rank"); + public InferenceConfigCreateDescriptor LearningToRank(Action configure) => Set(configure, "learning_to_rank"); public InferenceConfigCreateDescriptor Ner(Elastic.Clients.Elasticsearch.MachineLearning.NerInferenceOptions nerInferenceOptions) => Set(nerInferenceOptions, "ner"); public InferenceConfigCreateDescriptor Ner(Action configure) => Set(configure, "ner"); public InferenceConfigCreateDescriptor PassThrough(Elastic.Clients.Elasticsearch.MachineLearning.PassThroughInferenceOptions passThroughInferenceOptions) => Set(passThroughInferenceOptions, "pass_through"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs new file mode 100644 index 00000000000..5d74ff45bf5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/LearningToRankConfig.g.cs @@ -0,0 +1,142 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class LearningToRankConfig +{ + [JsonInclude, JsonPropertyName("default_params")] + public IDictionary? DefaultParams { get; set; } + [JsonInclude, JsonPropertyName("feature_extractors")] + public ICollection>? FeatureExtractors { get; set; } + [JsonInclude, JsonPropertyName("num_top_feature_importance_values")] + public int NumTopFeatureImportanceValues { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate(LearningToRankConfig learningToRankConfig) => Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate.LearningToRank(learningToRankConfig); +} + +public sealed partial class LearningToRankConfigDescriptor : SerializableDescriptor> +{ + internal LearningToRankConfigDescriptor(Action> configure) => configure.Invoke(this); + + public LearningToRankConfigDescriptor() : base() + { + } + + private IDictionary? DefaultParamsValue { get; set; } + private ICollection>? FeatureExtractorsValue { get; set; } + private int NumTopFeatureImportanceValuesValue { get; set; } + + public LearningToRankConfigDescriptor DefaultParams(Func, FluentDictionary> selector) + { + DefaultParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public LearningToRankConfigDescriptor FeatureExtractors(ICollection>? featureExtractors) + { + FeatureExtractorsValue = featureExtractors; + return Self; + } + + public LearningToRankConfigDescriptor NumTopFeatureImportanceValues(int numTopFeatureImportanceValues) + { + NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DefaultParamsValue is not null) + { + writer.WritePropertyName("default_params"); + JsonSerializer.Serialize(writer, DefaultParamsValue, options); + } + + if (FeatureExtractorsValue is not null) + { + writer.WritePropertyName("feature_extractors"); + JsonSerializer.Serialize(writer, FeatureExtractorsValue, options); + } + + writer.WritePropertyName("num_top_feature_importance_values"); + writer.WriteNumberValue(NumTopFeatureImportanceValuesValue); + writer.WriteEndObject(); + } +} + +public sealed partial class LearningToRankConfigDescriptor : SerializableDescriptor +{ + internal LearningToRankConfigDescriptor(Action configure) => configure.Invoke(this); + + public LearningToRankConfigDescriptor() : base() + { + } + + private IDictionary? DefaultParamsValue { get; set; } + private ICollection>? FeatureExtractorsValue { get; set; } + private int NumTopFeatureImportanceValuesValue { get; set; } + + public LearningToRankConfigDescriptor DefaultParams(Func, FluentDictionary> selector) + { + DefaultParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public LearningToRankConfigDescriptor FeatureExtractors(ICollection>? featureExtractors) + { + FeatureExtractorsValue = featureExtractors; + return Self; + } + + public LearningToRankConfigDescriptor NumTopFeatureImportanceValues(int numTopFeatureImportanceValues) + { + NumTopFeatureImportanceValuesValue = numTopFeatureImportanceValues; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DefaultParamsValue is not null) + { + writer.WritePropertyName("default_params"); + JsonSerializer.Serialize(writer, DefaultParamsValue, options); + } + + if (FeatureExtractorsValue is not null) + { + writer.WritePropertyName("feature_extractors"); + JsonSerializer.Serialize(writer, FeatureExtractorsValue, options); + } + + writer.WritePropertyName("num_top_feature_importance_values"); + writer.WriteNumberValue(NumTopFeatureImportanceValuesValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs new file mode 100644 index 00000000000..f74810c30d3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/QueryFeatureExtractor.g.cs @@ -0,0 +1,200 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class QueryFeatureExtractor +{ + [JsonInclude, JsonPropertyName("default_score")] + public float? DefaultScore { get; set; } + [JsonInclude, JsonPropertyName("feature_name")] + public string FeatureName { get; set; } + [JsonInclude, JsonPropertyName("query")] + public Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } +} + +public sealed partial class QueryFeatureExtractorDescriptor : SerializableDescriptor> +{ + internal QueryFeatureExtractorDescriptor(Action> configure) => configure.Invoke(this); + + public QueryFeatureExtractorDescriptor() : base() + { + } + + private float? DefaultScoreValue { get; set; } + private string FeatureNameValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action> QueryDescriptorAction { get; set; } + + public QueryFeatureExtractorDescriptor DefaultScore(float? defaultScore) + { + DefaultScoreValue = defaultScore; + return Self; + } + + public QueryFeatureExtractorDescriptor FeatureName(string featureName) + { + FeatureNameValue = featureName; + return Self; + } + + public QueryFeatureExtractorDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public QueryFeatureExtractorDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public QueryFeatureExtractorDescriptor Query(Action> configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DefaultScoreValue.HasValue) + { + writer.WritePropertyName("default_score"); + writer.WriteNumberValue(DefaultScoreValue.Value); + } + + writer.WritePropertyName("feature_name"); + writer.WriteStringValue(FeatureNameValue); + if (QueryDescriptor is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryDescriptor, options); + } + else if (QueryDescriptorAction is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); + } + else + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class QueryFeatureExtractorDescriptor : SerializableDescriptor +{ + internal QueryFeatureExtractorDescriptor(Action configure) => configure.Invoke(this); + + public QueryFeatureExtractorDescriptor() : base() + { + } + + private float? DefaultScoreValue { get; set; } + private string FeatureNameValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action QueryDescriptorAction { get; set; } + + public QueryFeatureExtractorDescriptor DefaultScore(float? defaultScore) + { + DefaultScoreValue = defaultScore; + return Self; + } + + public QueryFeatureExtractorDescriptor FeatureName(string featureName) + { + FeatureNameValue = featureName; + return Self; + } + + public QueryFeatureExtractorDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public QueryFeatureExtractorDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public QueryFeatureExtractorDescriptor Query(Action configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DefaultScoreValue.HasValue) + { + writer.WritePropertyName("default_score"); + writer.WriteNumberValue(DefaultScoreValue.Value); + } + + writer.WritePropertyName("feature_name"); + writer.WriteStringValue(FeatureNameValue); + if (QueryDescriptor is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryDescriptor, options); + } + else if (QueryDescriptorAction is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.QueryDsl.QueryDescriptor(QueryDescriptorAction), options); + } + else + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs index 9532c4a0e49..7f6531fe31e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TextClassificationInferenceOptions.g.cs @@ -65,6 +65,8 @@ public sealed partial class TextClassificationInferenceOptions /// [JsonInclude, JsonPropertyName("tokenization")] public Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? Tokenization { get; set; } + [JsonInclude, JsonPropertyName("vocabulary")] + public Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary? Vocabulary { get; set; } public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate(TextClassificationInferenceOptions textClassificationInferenceOptions) => Elastic.Clients.Elasticsearch.MachineLearning.InferenceConfigCreate.TextClassification(textClassificationInferenceOptions); } @@ -88,6 +90,9 @@ public TextClassificationInferenceOptionsDescriptor() : base() private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig? TokenizationValue { get; set; } private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfigDescriptor TokenizationDescriptor { get; set; } private Action TokenizationDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.Vocabulary? VocabularyValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor VocabularyDescriptor { get; set; } + private Action VocabularyDescriptorAction { get; set; } /// /// @@ -151,6 +156,30 @@ public TextClassificationInferenceOptionsDescriptor Tokenization(Action configure) + { + VocabularyValue = null; + VocabularyDescriptor = null; + VocabularyDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -188,6 +217,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, TokenizationValue, options); } + if (VocabularyDescriptor is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyDescriptor, options); + } + else if (VocabularyDescriptorAction is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.MachineLearning.VocabularyDescriptor(VocabularyDescriptorAction), options); + } + else if (VocabularyValue is not null) + { + writer.WritePropertyName("vocabulary"); + JsonSerializer.Serialize(writer, VocabularyValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs index e3dc630aebf..c673b24c44e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TokenizationConfig.g.cs @@ -55,6 +55,7 @@ internal TokenizationConfig(string variantName, object variant) public static TokenizationConfig BertJa(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("bert_ja", nlpBertTokenizationConfig); public static TokenizationConfig Mpnet(Elastic.Clients.Elasticsearch.MachineLearning.NlpBertTokenizationConfig nlpBertTokenizationConfig) => new TokenizationConfig("mpnet", nlpBertTokenizationConfig); public static TokenizationConfig Roberta(Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => new TokenizationConfig("roberta", nlpRobertaTokenizationConfig); + public static TokenizationConfig XlmRoberta(Elastic.Clients.Elasticsearch.MachineLearning.XlmRobertaTokenizationConfig xlmRobertaTokenizationConfig) => new TokenizationConfig("xlm_roberta", xlmRobertaTokenizationConfig); public bool TryGet([NotNullWhen(true)] out T? result) where T : class { @@ -122,6 +123,13 @@ public override TokenizationConfig Read(ref Utf8JsonReader reader, Type typeToCo continue; } + if (propertyName == "xlm_roberta") + { + variantValue = JsonSerializer.Deserialize(ref reader, options); + variantNameValue = propertyName; + continue; + } + throw new JsonException($"Unknown property name '{propertyName}' received while deserializing the 'TokenizationConfig' from the response."); } @@ -149,6 +157,9 @@ public override void Write(Utf8JsonWriter writer, TokenizationConfig value, Json case "roberta": JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig)value.Variant, options); break; + case "xlm_roberta": + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.MachineLearning.XlmRobertaTokenizationConfig)value.Variant, options); + break; } } @@ -195,6 +206,8 @@ private TokenizationConfigDescriptor Set(object variant, string varia public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); public TokenizationConfigDescriptor Roberta(Action configure) => Set(configure, "roberta"); + public TokenizationConfigDescriptor XlmRoberta(Elastic.Clients.Elasticsearch.MachineLearning.XlmRobertaTokenizationConfig xlmRobertaTokenizationConfig) => Set(xlmRobertaTokenizationConfig, "xlm_roberta"); + public TokenizationConfigDescriptor XlmRoberta(Action configure) => Set(configure, "xlm_roberta"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -255,6 +268,8 @@ private TokenizationConfigDescriptor Set(object variant, string variantName) public TokenizationConfigDescriptor Mpnet(Action configure) => Set(configure, "mpnet"); public TokenizationConfigDescriptor Roberta(Elastic.Clients.Elasticsearch.MachineLearning.NlpRobertaTokenizationConfig nlpRobertaTokenizationConfig) => Set(nlpRobertaTokenizationConfig, "roberta"); public TokenizationConfigDescriptor Roberta(Action configure) => Set(configure, "roberta"); + public TokenizationConfigDescriptor XlmRoberta(Elastic.Clients.Elasticsearch.MachineLearning.XlmRobertaTokenizationConfig xlmRobertaTokenizationConfig) => Set(xlmRobertaTokenizationConfig, "xlm_roberta"); + public TokenizationConfigDescriptor XlmRoberta(Action configure) => Set(configure, "xlm_roberta"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs similarity index 65% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs index f660ec1cfd7..d9aee39f10f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationListItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelAssignmentRoutingStateAndReason.g.cs @@ -25,39 +25,24 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.SearchApplication; +namespace Elastic.Clients.Elasticsearch.MachineLearning; -public sealed partial class SearchApplicationListItem +public sealed partial class TrainedModelAssignmentRoutingStateAndReason { /// /// - /// Analytics collection associated to the Search Application + /// The reason for the current state. It is usually populated only when the + /// routing_state is failed. /// /// - [JsonInclude, JsonPropertyName("analytics_collection_name")] - public string? AnalyticsCollectionName { get; init; } + [JsonInclude, JsonPropertyName("reason")] + public string? Reason { get; init; } /// /// - /// Indices that are part of the Search Application + /// The current routing state. /// /// - [JsonInclude, JsonPropertyName("indices")] - public IReadOnlyCollection Indices { get; init; } - - /// - /// - /// Search Application name - /// - /// - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } - - /// - /// - /// Last time the Search Application was updated - /// - /// - [JsonInclude, JsonPropertyName("updated_at_millis")] - public long UpdatedAtMillis { get; init; } + [JsonInclude, JsonPropertyName("routing_state")] + public Elastic.Clients.Elasticsearch.MachineLearning.RoutingState RoutingState { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs index c1a941f530a..ded2f529b3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelConfig.g.cs @@ -141,6 +141,8 @@ public sealed partial class TrainedModelConfig /// [JsonInclude, JsonPropertyName("model_type")] public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelType? ModelType { get; init; } + [JsonInclude, JsonPropertyName("platform_architecture")] + public string? PlatformArchitecture { get; init; } [JsonInclude, JsonPropertyName("prefix_strings")] public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelPrefixStrings? PrefixStrings { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs index e8ee05e782a..1960487201e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/TrainedModelDeploymentNodesStats.g.cs @@ -106,8 +106,8 @@ public sealed partial class TrainedModelDeploymentNodesStats /// The number of inference requests that were not processed because the queue was full. /// /// - [JsonInclude, JsonPropertyName("rejection_execution_count")] - public int? RejectionExecutionCount { get; init; } + [JsonInclude, JsonPropertyName("rejected_execution_count")] + public int? RejectedExecutionCount { get; init; } /// /// @@ -115,7 +115,7 @@ public sealed partial class TrainedModelDeploymentNodesStats /// /// [JsonInclude, JsonPropertyName("routing_state")] - public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignmentRoutingTable RoutingState { get; init; } + public Elastic.Clients.Elasticsearch.MachineLearning.TrainedModelAssignmentRoutingStateAndReason RoutingState { get; init; } /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs new file mode 100644 index 00000000000..1dc33d7f968 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/XlmRobertaTokenizationConfig.g.cs @@ -0,0 +1,179 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.MachineLearning; + +public sealed partial class XlmRobertaTokenizationConfig +{ + /// + /// + /// Should the tokenizer lower case the text + /// + /// + [JsonInclude, JsonPropertyName("do_lower_case")] + public bool? DoLowerCase { get; set; } + + /// + /// + /// Maximum input sequence length for the model + /// + /// + [JsonInclude, JsonPropertyName("max_sequence_length")] + public int? MaxSequenceLength { get; set; } + + /// + /// + /// Tokenization spanning options. Special value of -1 indicates no spanning takes place + /// + /// + [JsonInclude, JsonPropertyName("span")] + public int? Span { get; set; } + + /// + /// + /// Should tokenization input be automatically truncated before sending to the model for inference + /// + /// + [JsonInclude, JsonPropertyName("truncate")] + public Elastic.Clients.Elasticsearch.MachineLearning.TokenizationTruncate? Truncate { get; set; } + + /// + /// + /// Is tokenization completed with special tokens + /// + /// + [JsonInclude, JsonPropertyName("with_special_tokens")] + public bool? WithSpecialTokens { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig(XlmRobertaTokenizationConfig xlmRobertaTokenizationConfig) => Elastic.Clients.Elasticsearch.MachineLearning.TokenizationConfig.XlmRoberta(xlmRobertaTokenizationConfig); +} + +public sealed partial class XlmRobertaTokenizationConfigDescriptor : SerializableDescriptor +{ + internal XlmRobertaTokenizationConfigDescriptor(Action configure) => configure.Invoke(this); + + public XlmRobertaTokenizationConfigDescriptor() : base() + { + } + + private bool? DoLowerCaseValue { get; set; } + private int? MaxSequenceLengthValue { get; set; } + private int? SpanValue { get; set; } + private Elastic.Clients.Elasticsearch.MachineLearning.TokenizationTruncate? TruncateValue { get; set; } + private bool? WithSpecialTokensValue { get; set; } + + /// + /// + /// Should the tokenizer lower case the text + /// + /// + public XlmRobertaTokenizationConfigDescriptor DoLowerCase(bool? doLowerCase = true) + { + DoLowerCaseValue = doLowerCase; + return Self; + } + + /// + /// + /// Maximum input sequence length for the model + /// + /// + public XlmRobertaTokenizationConfigDescriptor MaxSequenceLength(int? maxSequenceLength) + { + MaxSequenceLengthValue = maxSequenceLength; + return Self; + } + + /// + /// + /// Tokenization spanning options. Special value of -1 indicates no spanning takes place + /// + /// + public XlmRobertaTokenizationConfigDescriptor Span(int? span) + { + SpanValue = span; + return Self; + } + + /// + /// + /// Should tokenization input be automatically truncated before sending to the model for inference + /// + /// + public XlmRobertaTokenizationConfigDescriptor Truncate(Elastic.Clients.Elasticsearch.MachineLearning.TokenizationTruncate? truncate) + { + TruncateValue = truncate; + return Self; + } + + /// + /// + /// Is tokenization completed with special tokens + /// + /// + public XlmRobertaTokenizationConfigDescriptor WithSpecialTokens(bool? withSpecialTokens = true) + { + WithSpecialTokensValue = withSpecialTokens; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DoLowerCaseValue.HasValue) + { + writer.WritePropertyName("do_lower_case"); + writer.WriteBooleanValue(DoLowerCaseValue.Value); + } + + if (MaxSequenceLengthValue.HasValue) + { + writer.WritePropertyName("max_sequence_length"); + writer.WriteNumberValue(MaxSequenceLengthValue.Value); + } + + if (SpanValue.HasValue) + { + writer.WritePropertyName("span"); + writer.WriteNumberValue(SpanValue.Value); + } + + if (TruncateValue is not null) + { + writer.WritePropertyName("truncate"); + JsonSerializer.Serialize(writer, TruncateValue, options); + } + + if (WithSpecialTokensValue.HasValue) + { + writer.WritePropertyName("with_special_tokens"); + writer.WriteBooleanValue(WithSpecialTokensValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs index 3823bc9de08..bf6a2024081 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/BooleanProperty.g.cs @@ -44,6 +44,8 @@ public sealed partial class BooleanProperty : IProperty public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } [JsonInclude, JsonPropertyName("ignore_above")] public int? IgnoreAbove { get; set; } + [JsonInclude, JsonPropertyName("ignore_malformed")] + public bool? IgnoreMalformed { get; set; } [JsonInclude, JsonPropertyName("index")] public bool? Index { get; set; } @@ -56,13 +58,25 @@ public sealed partial class BooleanProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("null_value")] public bool? NullValue { get; set; } + [JsonInclude, JsonPropertyName("on_script_error")] + public Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptError { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("script")] + public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } [JsonInclude, JsonPropertyName("synthetic_source_keep")] public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } + /// + /// + /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. + /// + /// + [JsonInclude, JsonPropertyName("time_series_dimension")] + public bool? TimeSeriesDimension { get; set; } + [JsonInclude, JsonPropertyName("type")] public string Type => "boolean"; } @@ -84,12 +98,18 @@ public BooleanPropertyDescriptor() : base() private Action FielddataDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } + private bool? IgnoreMalformedValue { get; set; } private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private bool? NullValueValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) { @@ -165,6 +185,12 @@ public BooleanPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + public BooleanPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) + { + IgnoreMalformedValue = ignoreMalformed; + return Self; + } + public BooleanPropertyDescriptor Index(bool? index = true) { IndexValue = index; @@ -188,6 +214,12 @@ public BooleanPropertyDescriptor NullValue(bool? nullValue = true) return Self; } + public BooleanPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Mapping.OnScriptError? onScriptError) + { + OnScriptErrorValue = onScriptError; + return Self; + } + public BooleanPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) { PropertiesValue = properties; @@ -208,6 +240,30 @@ public BooleanPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Script? script) + { + ScriptDescriptor = null; + ScriptDescriptorAction = null; + ScriptValue = script; + return Self; + } + + public BooleanPropertyDescriptor Script(Elastic.Clients.Elasticsearch.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public BooleanPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public BooleanPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -220,6 +276,17 @@ public BooleanPropertyDescriptor SyntheticSourceKeep(Elastic.Clients. return Self; } + /// + /// + /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. + /// + /// + public BooleanPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -275,6 +342,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } + if (IgnoreMalformedValue.HasValue) + { + writer.WritePropertyName("ignore_malformed"); + writer.WriteBooleanValue(IgnoreMalformedValue.Value); + } + if (IndexValue.HasValue) { writer.WritePropertyName("index"); @@ -293,12 +366,34 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(NullValueValue.Value); } + if (OnScriptErrorValue is not null) + { + writer.WritePropertyName("on_script_error"); + JsonSerializer.Serialize(writer, OnScriptErrorValue, options); + } + if (PropertiesValue is not null) { writer.WritePropertyName("properties"); JsonSerializer.Serialize(writer, PropertiesValue, 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.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -311,6 +406,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); } + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + writer.WritePropertyName("type"); writer.WriteStringValue("boolean"); writer.WriteEndObject(); @@ -340,6 +441,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o return null; } + private Elastic.Clients.Elasticsearch.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.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + BooleanProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -349,12 +474,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Fielddata = BuildFielddata(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, + IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, + OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, + Script = BuildScript(), Store = StoreValue, - SyntheticSourceKeep = SyntheticSourceKeepValue + SyntheticSourceKeep = SyntheticSourceKeepValue, + TimeSeriesDimension = TimeSeriesDimensionValue }; } @@ -375,12 +504,18 @@ public BooleanPropertyDescriptor() : base() private Action FielddataDescriptorAction { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } private int? IgnoreAboveValue { get; set; } + private bool? IgnoreMalformedValue { get; set; } private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private bool? NullValueValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } public BooleanPropertyDescriptor Boost(double? boost) { @@ -456,6 +591,12 @@ public BooleanPropertyDescriptor IgnoreAbove(int? ignoreAbove) return Self; } + public BooleanPropertyDescriptor IgnoreMalformed(bool? ignoreMalformed = true) + { + IgnoreMalformedValue = ignoreMalformed; + return Self; + } + public BooleanPropertyDescriptor Index(bool? index = true) { IndexValue = index; @@ -479,6 +620,12 @@ public BooleanPropertyDescriptor NullValue(bool? nullValue = true) return Self; } + public BooleanPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Mapping.OnScriptError? onScriptError) + { + OnScriptErrorValue = onScriptError; + return Self; + } + public BooleanPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) { PropertiesValue = properties; @@ -499,6 +646,30 @@ public BooleanPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public BooleanPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -511,6 +682,17 @@ public BooleanPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsear return Self; } + /// + /// + /// For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false. + /// + /// + public BooleanPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -566,6 +748,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(IgnoreAboveValue.Value); } + if (IgnoreMalformedValue.HasValue) + { + writer.WritePropertyName("ignore_malformed"); + writer.WriteBooleanValue(IgnoreMalformedValue.Value); + } + if (IndexValue.HasValue) { writer.WritePropertyName("index"); @@ -584,12 +772,34 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(NullValueValue.Value); } + if (OnScriptErrorValue is not null) + { + writer.WritePropertyName("on_script_error"); + JsonSerializer.Serialize(writer, OnScriptErrorValue, options); + } + if (PropertiesValue is not null) { writer.WritePropertyName("properties"); JsonSerializer.Serialize(writer, PropertiesValue, 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.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -602,6 +812,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); } + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + writer.WritePropertyName("type"); writer.WriteStringValue("boolean"); writer.WriteEndObject(); @@ -631,6 +847,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o return null; } + private Elastic.Clients.Elasticsearch.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.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + BooleanProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -640,11 +880,15 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Fielddata = BuildFielddata(), Fields = FieldsValue, IgnoreAbove = IgnoreAboveValue, + IgnoreMalformed = IgnoreMalformedValue, Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, + OnScriptError = OnScriptErrorValue, Properties = PropertiesValue, + Script = BuildScript(), Store = StoreValue, - SyntheticSourceKeep = SyntheticSourceKeepValue + SyntheticSourceKeep = SyntheticSourceKeepValue, + TimeSeriesDimension = TimeSeriesDimensionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs new file mode 100644 index 00000000000..858ebeacba5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CountedKeywordProperty.g.cs @@ -0,0 +1,361 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Mapping; + +public sealed partial class CountedKeywordProperty : IProperty +{ + [JsonInclude, JsonPropertyName("dynamic")] + public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } + [JsonInclude, JsonPropertyName("fields")] + public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } + [JsonInclude, JsonPropertyName("ignore_above")] + public int? IgnoreAbove { get; set; } + [JsonInclude, JsonPropertyName("index")] + public bool? Index { get; set; } + + /// + /// + /// Metadata about the field. + /// + /// + [JsonInclude, JsonPropertyName("meta")] + public IDictionary? Meta { get; set; } + [JsonInclude, JsonPropertyName("properties")] + public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "counted_keyword"; +} + +public sealed partial class CountedKeywordPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor +{ + internal CountedKeywordPropertyDescriptor(Action> configure) => configure.Invoke(this); + + public CountedKeywordPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private bool? IndexValue { get; set; } + private IDictionary? MetaValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + + public CountedKeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public CountedKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public CountedKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + public CountedKeywordPropertyDescriptor Index(bool? index = true) + { + IndexValue = index; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public CountedKeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public CountedKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public CountedKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (IndexValue.HasValue) + { + writer.WritePropertyName("index"); + writer.WriteBooleanValue(IndexValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("counted_keyword"); + writer.WriteEndObject(); + } + + CountedKeywordProperty IBuildableDescriptor.Build() => new() + { + Dynamic = DynamicValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Index = IndexValue, + Meta = MetaValue, + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue + }; +} + +public sealed partial class CountedKeywordPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CountedKeywordPropertyDescriptor(Action configure) => configure.Invoke(this); + + public CountedKeywordPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private bool? IndexValue { get; set; } + private IDictionary? MetaValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + + public CountedKeywordPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public CountedKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public CountedKeywordPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + public CountedKeywordPropertyDescriptor Index(bool? index = true) + { + IndexValue = index; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public CountedKeywordPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public CountedKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public CountedKeywordPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public CountedKeywordPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (IndexValue.HasValue) + { + writer.WritePropertyName("index"); + writer.WriteBooleanValue(IndexValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("counted_keyword"); + writer.WriteEndObject(); + } + + CountedKeywordProperty IBuildableDescriptor.Build() => new() + { + Dynamic = DynamicValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Index = IndexValue, + Meta = MetaValue, + Properties = PropertiesValue, + SyntheticSourceKeep = SyntheticSourceKeepValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs index b674b09bf8e..e318c6209dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateNanosProperty.g.cs @@ -58,10 +58,14 @@ public sealed partial class DateNanosProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("null_value")] public DateTimeOffset? NullValue { get; set; } + [JsonInclude, JsonPropertyName("on_script_error")] + public Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptError { get; set; } [JsonInclude, JsonPropertyName("precision_step")] public int? PrecisionStep { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("script")] + public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } [JsonInclude, JsonPropertyName("synthetic_source_keep")] @@ -90,8 +94,12 @@ public DateNanosPropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private DateTimeOffset? NullValueValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } @@ -180,6 +188,12 @@ public DateNanosPropertyDescriptor NullValue(DateTimeOffset? nullValu return Self; } + public DateNanosPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Mapping.OnScriptError? onScriptError) + { + OnScriptErrorValue = onScriptError; + return Self; + } + public DateNanosPropertyDescriptor PrecisionStep(int? precisionStep) { PrecisionStepValue = precisionStep; @@ -206,6 +220,30 @@ public DateNanosPropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Script? script) + { + ScriptDescriptor = null; + ScriptDescriptorAction = null; + ScriptValue = script; + return Self; + } + + public DateNanosPropertyDescriptor Script(Elastic.Clients.Elasticsearch.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DateNanosPropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DateNanosPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -287,6 +325,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, NullValueValue, options); } + if (OnScriptErrorValue is not null) + { + writer.WritePropertyName("on_script_error"); + JsonSerializer.Serialize(writer, OnScriptErrorValue, options); + } + if (PrecisionStepValue.HasValue) { writer.WritePropertyName("precision_step"); @@ -299,6 +343,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, 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.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -316,6 +376,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.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.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DateNanosProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -329,8 +413,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, + OnScriptError = OnScriptErrorValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, + Script = BuildScript(), Store = StoreValue, SyntheticSourceKeep = SyntheticSourceKeepValue }; @@ -355,8 +441,12 @@ public DateNanosPropertyDescriptor() : base() private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private DateTimeOffset? NullValueValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } @@ -445,6 +535,12 @@ public DateNanosPropertyDescriptor NullValue(DateTimeOffset? nullValue) return Self; } + public DateNanosPropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Mapping.OnScriptError? onScriptError) + { + OnScriptErrorValue = onScriptError; + return Self; + } + public DateNanosPropertyDescriptor PrecisionStep(int? precisionStep) { PrecisionStepValue = precisionStep; @@ -471,6 +567,30 @@ public DateNanosPropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DateNanosPropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -552,6 +672,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, NullValueValue, options); } + if (OnScriptErrorValue is not null) + { + writer.WritePropertyName("on_script_error"); + JsonSerializer.Serialize(writer, OnScriptErrorValue, options); + } + if (PrecisionStepValue.HasValue) { writer.WritePropertyName("precision_step"); @@ -564,6 +690,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, 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.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -581,6 +723,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteEndObject(); } + private Elastic.Clients.Elasticsearch.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.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DateNanosProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -594,8 +760,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Index = IndexValue, Meta = MetaValue, NullValue = NullValueValue, + OnScriptError = OnScriptErrorValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, + Script = BuildScript(), Store = StoreValue, SyntheticSourceKeep = SyntheticSourceKeepValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs index aa0ba132652..9146ef89eb4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DateProperty.g.cs @@ -62,10 +62,14 @@ public sealed partial class DateProperty : IProperty public IDictionary? Meta { get; set; } [JsonInclude, JsonPropertyName("null_value")] public DateTimeOffset? NullValue { get; set; } + [JsonInclude, JsonPropertyName("on_script_error")] + public Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptError { get; set; } [JsonInclude, JsonPropertyName("precision_step")] public int? PrecisionStep { get; set; } [JsonInclude, JsonPropertyName("properties")] public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("script")] + public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } [JsonInclude, JsonPropertyName("synthetic_source_keep")] @@ -98,8 +102,12 @@ public DatePropertyDescriptor() : base() private string? LocaleValue { get; set; } private IDictionary? MetaValue { get; set; } private DateTimeOffset? NullValueValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } @@ -218,6 +226,12 @@ public DatePropertyDescriptor NullValue(DateTimeOffset? nullValue) return Self; } + public DatePropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Mapping.OnScriptError? onScriptError) + { + OnScriptErrorValue = onScriptError; + return Self; + } + public DatePropertyDescriptor PrecisionStep(int? precisionStep) { PrecisionStepValue = precisionStep; @@ -244,6 +258,30 @@ public DatePropertyDescriptor Properties(Action Script(Elastic.Clients.Elasticsearch.Script? script) + { + ScriptDescriptor = null; + ScriptDescriptorAction = null; + ScriptValue = script; + return Self; + } + + public DatePropertyDescriptor Script(Elastic.Clients.Elasticsearch.ScriptDescriptor descriptor) + { + ScriptValue = null; + ScriptDescriptorAction = null; + ScriptDescriptor = descriptor; + return Self; + } + + public DatePropertyDescriptor Script(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DatePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -347,6 +385,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, NullValueValue, options); } + if (OnScriptErrorValue is not null) + { + writer.WritePropertyName("on_script_error"); + JsonSerializer.Serialize(writer, OnScriptErrorValue, options); + } + if (PrecisionStepValue.HasValue) { writer.WritePropertyName("precision_step"); @@ -359,6 +403,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, 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.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -400,6 +460,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o return null; } + private Elastic.Clients.Elasticsearch.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.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DateProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -415,8 +499,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Locale = LocaleValue, Meta = MetaValue, NullValue = NullValueValue, + OnScriptError = OnScriptErrorValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, + Script = BuildScript(), Store = StoreValue, SyntheticSourceKeep = SyntheticSourceKeepValue }; @@ -445,8 +531,12 @@ public DatePropertyDescriptor() : base() private string? LocaleValue { get; set; } private IDictionary? MetaValue { get; set; } private DateTimeOffset? NullValueValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.OnScriptError? OnScriptErrorValue { get; set; } private int? PrecisionStepValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + private Elastic.Clients.Elasticsearch.ScriptDescriptor ScriptDescriptor { get; set; } + private Action ScriptDescriptorAction { get; set; } private bool? StoreValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } @@ -565,6 +655,12 @@ public DatePropertyDescriptor NullValue(DateTimeOffset? nullValue) return Self; } + public DatePropertyDescriptor OnScriptError(Elastic.Clients.Elasticsearch.Mapping.OnScriptError? onScriptError) + { + OnScriptErrorValue = onScriptError; + return Self; + } + public DatePropertyDescriptor PrecisionStep(int? precisionStep) { PrecisionStepValue = precisionStep; @@ -591,6 +687,30 @@ public DatePropertyDescriptor Properties(Action configure) + { + ScriptValue = null; + ScriptDescriptor = null; + ScriptDescriptorAction = configure; + return Self; + } + public DatePropertyDescriptor Store(bool? store = true) { StoreValue = store; @@ -694,6 +814,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, NullValueValue, options); } + if (OnScriptErrorValue is not null) + { + writer.WritePropertyName("on_script_error"); + JsonSerializer.Serialize(writer, OnScriptErrorValue, options); + } + if (PrecisionStepValue.HasValue) { writer.WritePropertyName("precision_step"); @@ -706,6 +832,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, PropertiesValue, 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.ScriptDescriptor(ScriptDescriptorAction), options); + } + else if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + if (StoreValue.HasValue) { writer.WritePropertyName("store"); @@ -747,6 +889,30 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o return null; } + private Elastic.Clients.Elasticsearch.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.ScriptDescriptor(ScriptDescriptorAction); + if ((object)descriptor is IBuildableDescriptor buildableFromAction) + { + return buildableFromAction.Build(); + } + } + + return null; + } + DateProperty IBuildableDescriptor.Build() => new() { Boost = BoostValue, @@ -762,8 +928,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Locale = LocaleValue, Meta = MetaValue, NullValue = NullValueValue, + OnScriptError = OnScriptErrorValue, PrecisionStep = PrecisionStepValue, Properties = PropertiesValue, + Script = BuildScript(), Store = StoreValue, SyntheticSourceKeep = SyntheticSourceKeepValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs index b511d9b0955..47a5cbf3bb9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DenseVectorIndexOptions.g.cs @@ -55,7 +55,7 @@ public sealed partial class DenseVectorIndexOptions /// The number of candidates to track while assembling the list of nearest neighbors for each new node. /// /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// Only applicable to hnsw, int8_hnsw, bbq_hnsw, and int4_hnsw index types. /// /// [JsonInclude, JsonPropertyName("ef_construction")] @@ -66,7 +66,7 @@ public sealed partial class DenseVectorIndexOptions /// The number of neighbors each node will be connected to in the HNSW graph. /// /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// Only applicable to hnsw, int8_hnsw, bbq_hnsw, and int4_hnsw index types. /// /// [JsonInclude, JsonPropertyName("m")] @@ -123,7 +123,7 @@ public DenseVectorIndexOptionsDescriptor ConfidenceInterval(float? confidenceInt /// The number of candidates to track while assembling the list of nearest neighbors for each new node. /// /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// Only applicable to hnsw, int8_hnsw, bbq_hnsw, and int4_hnsw index types. /// /// public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) @@ -137,7 +137,7 @@ public DenseVectorIndexOptionsDescriptor EfConstruction(int? efConstruction) /// The number of neighbors each node will be connected to in the HNSW graph. /// /// - /// Only applicable to hnsw, int8_hnsw, and int4_hnsw index types. + /// Only applicable to hnsw, int8_hnsw, bbq_hnsw, and int4_hnsw index types. /// /// public DenseVectorIndexOptionsDescriptor m(int? m) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs index fa40241afaa..1eb62dab99f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/DynamicTemplate.g.cs @@ -47,7 +47,7 @@ internal DynamicTemplate(string variantName, object variant) internal string VariantName { get; } public static DynamicTemplate Mapping(Elastic.Clients.Elasticsearch.Mapping.IProperty property) => new DynamicTemplate("mapping", property); - public static DynamicTemplate Runtime(Elastic.Clients.Elasticsearch.Mapping.IProperty property) => new DynamicTemplate("runtime", property); + public static DynamicTemplate Runtime(Elastic.Clients.Elasticsearch.Mapping.RuntimeField runtimeField) => new DynamicTemplate("runtime", runtimeField); [JsonInclude, JsonPropertyName("match")] public ICollection? Match { get; set; } @@ -160,7 +160,7 @@ public override DynamicTemplate Read(ref Utf8JsonReader reader, Type typeToConve if (propertyName == "runtime") { - variantValue = JsonSerializer.Deserialize(ref reader, options); + variantValue = JsonSerializer.Deserialize(ref reader, options); variantNameValue = propertyName; continue; } @@ -233,7 +233,7 @@ public override void Write(Utf8JsonWriter writer, DynamicTemplate value, JsonSer JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Mapping.IProperty)value.Variant, options); break; case "runtime": - JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Mapping.IProperty)value.Variant, options); + JsonSerializer.Serialize(writer, (Elastic.Clients.Elasticsearch.Mapping.RuntimeField)value.Variant, options); break; } } @@ -324,7 +324,8 @@ public DynamicTemplateDescriptor UnmatchMappingType(ICollection Mapping(Elastic.Clients.Elasticsearch.Mapping.IProperty property) => Set(property, "mapping"); - public DynamicTemplateDescriptor Runtime(Elastic.Clients.Elasticsearch.Mapping.IProperty property) => Set(property, "runtime"); + public DynamicTemplateDescriptor Runtime(Elastic.Clients.Elasticsearch.Mapping.RuntimeField runtimeField) => Set(runtimeField, "runtime"); + public DynamicTemplateDescriptor Runtime(Action> configure) => Set(configure, "runtime"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { @@ -470,7 +471,8 @@ public DynamicTemplateDescriptor UnmatchMappingType(ICollection? unmatch } public DynamicTemplateDescriptor Mapping(Elastic.Clients.Elasticsearch.Mapping.IProperty property) => Set(property, "mapping"); - public DynamicTemplateDescriptor Runtime(Elastic.Clients.Elasticsearch.Mapping.IProperty property) => Set(property, "runtime"); + public DynamicTemplateDescriptor Runtime(Elastic.Clients.Elasticsearch.Mapping.RuntimeField runtimeField) => Set(runtimeField, "runtime"); + public DynamicTemplateDescriptor Runtime(Action configure) => Set(configure, "runtime"); protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs index 2c10ba3ebc0..9c2ed20b244 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/GeoShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Mapping; /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapeProperty : IProperty { @@ -53,6 +53,8 @@ public sealed partial class GeoShapeProperty : IProperty public bool? IgnoreMalformed { get; set; } [JsonInclude, JsonPropertyName("ignore_z_value")] public bool? IgnoreZValue { get; set; } + [JsonInclude, JsonPropertyName("index")] + public bool? Index { get; set; } /// /// @@ -81,7 +83,7 @@ public sealed partial class GeoShapeProperty : IProperty /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -99,6 +101,7 @@ public GeoShapePropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private bool? IgnoreMalformedValue { get; set; } private bool? IgnoreZValueValue { get; set; } + private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -168,6 +171,12 @@ public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = t return Self; } + public GeoShapePropertyDescriptor Index(bool? index = true) + { + IndexValue = index; + return Self; + } + /// /// /// Metadata about the field. @@ -274,6 +283,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } + if (IndexValue.HasValue) + { + writer.WritePropertyName("index"); + writer.WriteBooleanValue(IndexValue.Value); + } + if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -325,6 +340,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, + Index = IndexValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, @@ -339,7 +355,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The geo_shape data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles /// and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class GeoShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { @@ -357,6 +373,7 @@ public GeoShapePropertyDescriptor() : base() private int? IgnoreAboveValue { get; set; } private bool? IgnoreMalformedValue { get; set; } private bool? IgnoreZValueValue { get; set; } + private bool? IndexValue { get; set; } private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.GeoOrientation? OrientationValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -426,6 +443,12 @@ public GeoShapePropertyDescriptor IgnoreZValue(bool? ignoreZValue = true) return Self; } + public GeoShapePropertyDescriptor Index(bool? index = true) + { + IndexValue = index; + return Self; + } + /// /// /// Metadata about the field. @@ -532,6 +555,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(IgnoreZValueValue.Value); } + if (IndexValue.HasValue) + { + writer.WritePropertyName("index"); + writer.WriteBooleanValue(IndexValue.Value); + } + if (MetaValue is not null) { writer.WritePropertyName("meta"); @@ -583,6 +612,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o IgnoreAbove = IgnoreAboveValue, IgnoreMalformed = IgnoreMalformedValue, IgnoreZValue = IgnoreZValueValue, + Index = IndexValue, Meta = MetaValue, Orientation = OrientationValue, Properties = PropertiesValue, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs index 32b66e7cd6f..64cd58475dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ObjectProperty.g.cs @@ -53,7 +53,7 @@ public sealed partial class ObjectProperty : IProperty [JsonInclude, JsonPropertyName("store")] public bool? Store { get; set; } [JsonInclude, JsonPropertyName("subobjects")] - public bool? Subobjects { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.Subobjects? Subobjects { get; set; } [JsonInclude, JsonPropertyName("synthetic_source_keep")] public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } @@ -77,7 +77,7 @@ public ObjectPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } - private bool? SubobjectsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Subobjects? SubobjectsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public ObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -161,7 +161,7 @@ public ObjectPropertyDescriptor Store(bool? store = true) return Self; } - public ObjectPropertyDescriptor Subobjects(bool? subobjects = true) + public ObjectPropertyDescriptor Subobjects(Elastic.Clients.Elasticsearch.Mapping.Subobjects? subobjects) { SubobjectsValue = subobjects; return Self; @@ -224,10 +224,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } - if (SubobjectsValue.HasValue) + if (SubobjectsValue is not null) { writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); + JsonSerializer.Serialize(writer, SubobjectsValue, options); } if (SyntheticSourceKeepValue is not null) @@ -272,7 +272,7 @@ public ObjectPropertyDescriptor() : base() private IDictionary? MetaValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } private bool? StoreValue { get; set; } - private bool? SubobjectsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Subobjects? SubobjectsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } public ObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) @@ -356,7 +356,7 @@ public ObjectPropertyDescriptor Store(bool? store = true) return Self; } - public ObjectPropertyDescriptor Subobjects(bool? subobjects = true) + public ObjectPropertyDescriptor Subobjects(Elastic.Clients.Elasticsearch.Mapping.Subobjects? subobjects) { SubobjectsValue = subobjects; return Self; @@ -419,10 +419,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(StoreValue.Value); } - if (SubobjectsValue.HasValue) + if (SubobjectsValue is not null) { writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); + JsonSerializer.Serialize(writer, SubobjectsValue, options); } if (SyntheticSourceKeepValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs new file mode 100644 index 00000000000..35e13c3499d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/PassthroughObjectProperty.g.cs @@ -0,0 +1,482 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Mapping; + +public sealed partial class PassthroughObjectProperty : IProperty +{ + [JsonInclude, JsonPropertyName("copy_to")] + [JsonConverter(typeof(SingleOrManyFieldsConverter))] + public Elastic.Clients.Elasticsearch.Fields? CopyTo { get; set; } + [JsonInclude, JsonPropertyName("dynamic")] + public Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? Dynamic { get; set; } + [JsonInclude, JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + [JsonInclude, JsonPropertyName("fields")] + public Elastic.Clients.Elasticsearch.Mapping.Properties? Fields { get; set; } + [JsonInclude, JsonPropertyName("ignore_above")] + public int? IgnoreAbove { get; set; } + + /// + /// + /// Metadata about the field. + /// + /// + [JsonInclude, JsonPropertyName("meta")] + public IDictionary? Meta { get; set; } + [JsonInclude, JsonPropertyName("priority")] + public int? Priority { get; set; } + [JsonInclude, JsonPropertyName("properties")] + public Elastic.Clients.Elasticsearch.Mapping.Properties? Properties { get; set; } + [JsonInclude, JsonPropertyName("store")] + public bool? Store { get; set; } + [JsonInclude, JsonPropertyName("synthetic_source_keep")] + public Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeep { get; set; } + [JsonInclude, JsonPropertyName("time_series_dimension")] + public bool? TimeSeriesDimension { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "passthrough"; +} + +public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor +{ + internal PassthroughObjectPropertyDescriptor(Action> configure) => configure.Invoke(this); + + public PassthroughObjectPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Fields? CopyToValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } + private bool? EnabledValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private IDictionary? MetaValue { get; set; } + private int? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } + + public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) + { + CopyToValue = copyTo; + return Self; + } + + public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public PassthroughObjectPropertyDescriptor Priority(int? priority) + { + PriorityValue = priority; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Store(bool? store = true) + { + StoreValue = store; + return Self; + } + + public PassthroughObjectPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + + public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CopyToValue is not null) + { + writer.WritePropertyName("copy_to"); + JsonSerializer.Serialize(writer, CopyToValue, options); + } + + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (StoreValue.HasValue) + { + writer.WritePropertyName("store"); + writer.WriteBooleanValue(StoreValue.Value); + } + + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("passthrough"); + writer.WriteEndObject(); + } + + PassthroughObjectProperty IBuildableDescriptor.Build() => new() + { + CopyTo = CopyToValue, + Dynamic = DynamicValue, + Enabled = EnabledValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Meta = MetaValue, + Priority = PriorityValue, + Properties = PropertiesValue, + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, + TimeSeriesDimension = TimeSeriesDimensionValue + }; +} + +public sealed partial class PassthroughObjectPropertyDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PassthroughObjectPropertyDescriptor(Action configure) => configure.Invoke(this); + + public PassthroughObjectPropertyDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Fields? CopyToValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } + private bool? EnabledValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? FieldsValue { get; set; } + private int? IgnoreAboveValue { get; set; } + private IDictionary? MetaValue { get; set; } + private int? PriorityValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } + private bool? StoreValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? SyntheticSourceKeepValue { get; set; } + private bool? TimeSeriesDimensionValue { get; set; } + + public PassthroughObjectPropertyDescriptor CopyTo(Elastic.Clients.Elasticsearch.Fields? copyTo) + { + CopyToValue = copyTo; + return Self; + } + + public PassthroughObjectPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) + { + DynamicValue = dynamic; + return Self; + } + + public PassthroughObjectPropertyDescriptor Enabled(bool? enabled = true) + { + EnabledValue = enabled; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.Properties? fields) + { + FieldsValue = fields; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Fields(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + FieldsValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor IgnoreAbove(int? ignoreAbove) + { + IgnoreAboveValue = ignoreAbove; + return Self; + } + + /// + /// + /// Metadata about the field. + /// + /// + public PassthroughObjectPropertyDescriptor Meta(Func, FluentDictionary> selector) + { + MetaValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public PassthroughObjectPropertyDescriptor Priority(int? priority) + { + PriorityValue = priority; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.Properties? properties) + { + PropertiesValue = properties; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor descriptor) + { + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Properties(Action> configure) + { + var descriptor = new Elastic.Clients.Elasticsearch.Mapping.PropertiesDescriptor(); + configure?.Invoke(descriptor); + PropertiesValue = descriptor.PromisedValue; + return Self; + } + + public PassthroughObjectPropertyDescriptor Store(bool? store = true) + { + StoreValue = store; + return Self; + } + + public PassthroughObjectPropertyDescriptor SyntheticSourceKeep(Elastic.Clients.Elasticsearch.Mapping.SyntheticSourceKeepEnum? syntheticSourceKeep) + { + SyntheticSourceKeepValue = syntheticSourceKeep; + return Self; + } + + public PassthroughObjectPropertyDescriptor TimeSeriesDimension(bool? timeSeriesDimension = true) + { + TimeSeriesDimensionValue = timeSeriesDimension; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (CopyToValue is not null) + { + writer.WritePropertyName("copy_to"); + JsonSerializer.Serialize(writer, CopyToValue, options); + } + + if (DynamicValue is not null) + { + writer.WritePropertyName("dynamic"); + JsonSerializer.Serialize(writer, DynamicValue, options); + } + + if (EnabledValue.HasValue) + { + writer.WritePropertyName("enabled"); + writer.WriteBooleanValue(EnabledValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, options); + } + + if (IgnoreAboveValue.HasValue) + { + writer.WritePropertyName("ignore_above"); + writer.WriteNumberValue(IgnoreAboveValue.Value); + } + + if (MetaValue is not null) + { + writer.WritePropertyName("meta"); + JsonSerializer.Serialize(writer, MetaValue, options); + } + + if (PriorityValue.HasValue) + { + writer.WritePropertyName("priority"); + writer.WriteNumberValue(PriorityValue.Value); + } + + if (PropertiesValue is not null) + { + writer.WritePropertyName("properties"); + JsonSerializer.Serialize(writer, PropertiesValue, options); + } + + if (StoreValue.HasValue) + { + writer.WritePropertyName("store"); + writer.WriteBooleanValue(StoreValue.Value); + } + + if (SyntheticSourceKeepValue is not null) + { + writer.WritePropertyName("synthetic_source_keep"); + JsonSerializer.Serialize(writer, SyntheticSourceKeepValue, options); + } + + if (TimeSeriesDimensionValue.HasValue) + { + writer.WritePropertyName("time_series_dimension"); + writer.WriteBooleanValue(TimeSeriesDimensionValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("passthrough"); + writer.WriteEndObject(); + } + + PassthroughObjectProperty IBuildableDescriptor.Build() => new() + { + CopyTo = CopyToValue, + Dynamic = DynamicValue, + Enabled = EnabledValue, + Fields = FieldsValue, + IgnoreAbove = IgnoreAboveValue, + Meta = MetaValue, + Priority = PriorityValue, + Properties = PropertiesValue, + Store = StoreValue, + SyntheticSourceKeep = SyntheticSourceKeepValue, + TimeSeriesDimension = TimeSeriesDimensionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs index 9cf52241069..4d44b0128db 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/Properties.g.cs @@ -96,6 +96,11 @@ public PropertiesDescriptor() : base(new Properties()) public PropertiesDescriptor ConstantKeyword(Elastic.Clients.Elasticsearch.PropertyName propertyName, ConstantKeywordProperty constantKeywordProperty) => AssignVariant(propertyName, constantKeywordProperty); public PropertiesDescriptor ConstantKeyword(Expression> propertyName) => AssignVariant, ConstantKeywordProperty>(propertyName, null); public PropertiesDescriptor ConstantKeyword(Expression> propertyName, Action> configure) => AssignVariant, ConstantKeywordProperty>(propertyName, configure); + public PropertiesDescriptor CountedKeyword(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, CountedKeywordProperty>(propertyName, null); + public PropertiesDescriptor CountedKeyword(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, CountedKeywordProperty>(propertyName, configure); + public PropertiesDescriptor CountedKeyword(Elastic.Clients.Elasticsearch.PropertyName propertyName, CountedKeywordProperty countedKeywordProperty) => AssignVariant(propertyName, countedKeywordProperty); + public PropertiesDescriptor CountedKeyword(Expression> propertyName) => AssignVariant, CountedKeywordProperty>(propertyName, null); + public PropertiesDescriptor CountedKeyword(Expression> propertyName, Action> configure) => AssignVariant, CountedKeywordProperty>(propertyName, configure); public PropertiesDescriptor DateNanos(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, DateNanosProperty>(propertyName, null); public PropertiesDescriptor DateNanos(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, DateNanosProperty>(propertyName, configure); public PropertiesDescriptor DateNanos(Elastic.Clients.Elasticsearch.PropertyName propertyName, DateNanosProperty dateNanosProperty) => AssignVariant(propertyName, dateNanosProperty); @@ -236,6 +241,11 @@ public PropertiesDescriptor() : base(new Properties()) public PropertiesDescriptor Object(Elastic.Clients.Elasticsearch.PropertyName propertyName, ObjectProperty objectProperty) => AssignVariant(propertyName, objectProperty); public PropertiesDescriptor Object(Expression> propertyName) => AssignVariant, ObjectProperty>(propertyName, null); public PropertiesDescriptor Object(Expression> propertyName, Action> configure) => AssignVariant, ObjectProperty>(propertyName, configure); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); + public PropertiesDescriptor PassthroughObject(Elastic.Clients.Elasticsearch.PropertyName propertyName, PassthroughObjectProperty passthroughObjectProperty) => AssignVariant(propertyName, passthroughObjectProperty); + public PropertiesDescriptor PassthroughObject(Expression> propertyName) => AssignVariant, PassthroughObjectProperty>(propertyName, null); + public PropertiesDescriptor PassthroughObject(Expression> propertyName, Action> configure) => AssignVariant, PassthroughObjectProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName) => AssignVariant, PercolatorProperty>(propertyName, null); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName, Action> configure) => AssignVariant, PercolatorProperty>(propertyName, configure); public PropertiesDescriptor Percolator(Elastic.Clients.Elasticsearch.PropertyName propertyName, PercolatorProperty percolatorProperty) => AssignVariant(propertyName, percolatorProperty); @@ -339,6 +349,8 @@ public override IProperty Read(ref Utf8JsonReader reader, Type typeToConvert, Js return JsonSerializer.Deserialize(ref reader, options); case "constant_keyword": return JsonSerializer.Deserialize(ref reader, options); + case "counted_keyword": + return JsonSerializer.Deserialize(ref reader, options); case "date_nanos": return JsonSerializer.Deserialize(ref reader, options); case "date": @@ -395,6 +407,8 @@ public override IProperty Read(ref Utf8JsonReader reader, Type typeToConvert, Js return JsonSerializer.Deserialize(ref reader, options); case "object": return JsonSerializer.Deserialize(ref reader, options); + case "passthrough": + return JsonSerializer.Deserialize(ref reader, options); case "percolator": return JsonSerializer.Deserialize(ref reader, options); case "point": @@ -458,6 +472,9 @@ public override void Write(Utf8JsonWriter writer, IProperty value, JsonSerialize case "constant_keyword": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.ConstantKeywordProperty), options); return; + case "counted_keyword": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.CountedKeywordProperty), options); + return; case "date_nanos": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.DateNanosProperty), options); return; @@ -542,6 +559,9 @@ public override void Write(Utf8JsonWriter writer, IProperty value, JsonSerialize case "object": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.ObjectProperty), options); return; + case "passthrough": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.PassthroughObjectProperty), options); + return; case "percolator": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Mapping.PercolatorProperty), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs index 3570e56eb3f..dbb7ddd3292 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/RuntimeField.g.cs @@ -92,6 +92,8 @@ public sealed partial class RuntimeField /// [JsonInclude, JsonPropertyName("type")] public Elastic.Clients.Elasticsearch.Mapping.RuntimeFieldType Type { get; set; } + + public static implicit operator Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate(RuntimeField runtimeField) => Elastic.Clients.Elasticsearch.Mapping.DynamicTemplate.Runtime(runtimeField); } public sealed partial class RuntimeFieldDescriptor : SerializableDescriptor> diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs index 1c11744d207..087a4a8751a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/ShapeProperty.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch.Mapping; /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapeProperty : IProperty { @@ -79,7 +79,7 @@ public sealed partial class ShapeProperty : IProperty /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor>, IBuildableDescriptor { @@ -323,7 +323,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// The shape data type facilitates the indexing of and searching with arbitrary x, y cartesian shapes such as /// rectangles and polygons. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class ShapePropertyDescriptor : SerializableDescriptor, IBuildableDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs index ced1bb98c0a..5a73b5245ae 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs @@ -40,7 +40,7 @@ public sealed partial class TypeMapping [JsonInclude, JsonPropertyName("dynamic_date_formats")] public ICollection? DynamicDateFormats { get; set; } [JsonInclude, JsonPropertyName("dynamic_templates")] - public ICollection>? DynamicTemplates { get; set; } + public ICollection>? DynamicTemplates { get; set; } [JsonInclude, JsonPropertyName("enabled")] public bool? Enabled { get; set; } [JsonInclude, JsonPropertyName("_field_names")] @@ -62,7 +62,7 @@ public sealed partial class TypeMapping [JsonInclude, JsonPropertyName("_source")] public Elastic.Clients.Elasticsearch.Mapping.SourceField? Source { get; set; } [JsonInclude, JsonPropertyName("subobjects")] - public bool? Subobjects { get; set; } + public Elastic.Clients.Elasticsearch.Mapping.Subobjects? Subobjects { get; set; } } public sealed partial class TypeMappingDescriptor : SerializableDescriptor> @@ -82,7 +82,7 @@ public TypeMappingDescriptor() : base() private bool? DateDetectionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } + private ICollection>? DynamicTemplatesValue { get; set; } private bool? EnabledValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesField? FieldNamesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } @@ -103,7 +103,7 @@ public TypeMappingDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.SourceField? SourceValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SourceFieldDescriptor SourceDescriptor { get; set; } private Action SourceDescriptorAction { get; set; } - private bool? SubobjectsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Subobjects? SubobjectsValue { get; set; } public TypeMappingDescriptor AllField(Elastic.Clients.Elasticsearch.Mapping.AllField? allField) { @@ -171,7 +171,7 @@ public TypeMappingDescriptor DynamicDateFormats(ICollection? return Self; } - public TypeMappingDescriptor DynamicTemplates(ICollection>? dynamicTemplates) + public TypeMappingDescriptor DynamicTemplates(ICollection>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; @@ -341,7 +341,7 @@ public TypeMappingDescriptor Source(Action Subobjects(bool? subobjects = true) + public TypeMappingDescriptor Subobjects(Elastic.Clients.Elasticsearch.Mapping.Subobjects? subobjects) { SubobjectsValue = subobjects; return Self; @@ -516,10 +516,10 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, SourceValue, options); } - if (SubobjectsValue.HasValue) + if (SubobjectsValue is not null) { writer.WritePropertyName("subobjects"); - writer.WriteBooleanValue(SubobjectsValue.Value); + JsonSerializer.Serialize(writer, SubobjectsValue, options); } writer.WriteEndObject(); @@ -543,7 +543,7 @@ public TypeMappingDescriptor() : base() private bool? DateDetectionValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } private ICollection? DynamicDateFormatsValue { get; set; } - private ICollection>? DynamicTemplatesValue { get; set; } + private ICollection>? DynamicTemplatesValue { get; set; } private bool? EnabledValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesField? FieldNamesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.FieldNamesFieldDescriptor FieldNamesDescriptor { get; set; } @@ -564,7 +564,7 @@ public TypeMappingDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.SourceField? SourceValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SourceFieldDescriptor SourceDescriptor { get; set; } private Action SourceDescriptorAction { get; set; } - private bool? SubobjectsValue { get; set; } + private Elastic.Clients.Elasticsearch.Mapping.Subobjects? SubobjectsValue { get; set; } public TypeMappingDescriptor AllField(Elastic.Clients.Elasticsearch.Mapping.AllField? allField) { @@ -632,7 +632,7 @@ public TypeMappingDescriptor DynamicDateFormats(ICollection? dynamicDate return Self; } - public TypeMappingDescriptor DynamicTemplates(ICollection>? dynamicTemplates) + public TypeMappingDescriptor DynamicTemplates(ICollection>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; @@ -802,7 +802,7 @@ public TypeMappingDescriptor Source(Action /// Text that we want similar documents for or a lookup to a document's field for the text. /// -/// Learn more about this API in the Elasticsearch documentation. +/// Learn more about this API in the Elasticsearch documentation. /// public sealed partial class Like : Union { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs new file mode 100644 index 00000000000..5435924029f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/RescoreVector.g.cs @@ -0,0 +1,69 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class RescoreVector +{ + /// + /// + /// Applies the specified oversample factor to k on the approximate kNN search + /// + /// + [JsonInclude, JsonPropertyName("oversample")] + public float Oversample { get; set; } +} + +public sealed partial class RescoreVectorDescriptor : SerializableDescriptor +{ + internal RescoreVectorDescriptor(Action configure) => configure.Invoke(this); + + public RescoreVectorDescriptor() : base() + { + } + + private float OversampleValue { get; set; } + + /// + /// + /// Applies the specified oversample factor to k on the approximate kNN search + /// + /// + public RescoreVectorDescriptor Oversample(float oversample) + { + OversampleValue = oversample; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("oversample"); + writer.WriteNumberValue(OversampleValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs index 645430c37b4..7dc4df34f85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplication.g.cs @@ -35,7 +35,7 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("analytics_collection_name")] - public Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionName { get; set; } + public string? AnalyticsCollectionName { get; init; } /// /// @@ -43,15 +43,15 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("indices")] - public ICollection Indices { get; set; } + public IReadOnlyCollection Indices { get; init; } /// /// - /// Search Application name. + /// Search Application name /// /// [JsonInclude, JsonPropertyName("name")] - public Elastic.Clients.Elasticsearch.Name Name { get; set; } + public string Name { get; init; } /// /// @@ -59,7 +59,7 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("template")] - public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; set; } + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; init; } /// /// @@ -67,129 +67,5 @@ public sealed partial class SearchApplication /// /// [JsonInclude, JsonPropertyName("updated_at_millis")] - public long UpdatedAtMillis { get; set; } -} - -public sealed partial class SearchApplicationDescriptor : SerializableDescriptor -{ - internal SearchApplicationDescriptor(Action configure) => configure.Invoke(this); - - public SearchApplicationDescriptor() : base() - { - } - - private Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionNameValue { get; set; } - private ICollection IndicesValue { get; set; } - private Elastic.Clients.Elasticsearch.Name NameValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? TemplateValue { get; set; } - private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor TemplateDescriptor { get; set; } - private Action TemplateDescriptorAction { get; set; } - private long UpdatedAtMillisValue { get; set; } - - /// - /// - /// Analytics collection associated to the Search Application. - /// - /// - public SearchApplicationDescriptor AnalyticsCollectionName(Elastic.Clients.Elasticsearch.Name? analyticsCollectionName) - { - AnalyticsCollectionNameValue = analyticsCollectionName; - return Self; - } - - /// - /// - /// Indices that are part of the Search Application. - /// - /// - public SearchApplicationDescriptor Indices(ICollection indices) - { - IndicesValue = indices; - return Self; - } - - /// - /// - /// Search Application name. - /// - /// - public SearchApplicationDescriptor Name(Elastic.Clients.Elasticsearch.Name name) - { - NameValue = name; - return Self; - } - - /// - /// - /// Search template to use on search operations. - /// - /// - public SearchApplicationDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? template) - { - TemplateDescriptor = null; - TemplateDescriptorAction = null; - TemplateValue = template; - return Self; - } - - public SearchApplicationDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor descriptor) - { - TemplateValue = null; - TemplateDescriptorAction = null; - TemplateDescriptor = descriptor; - return Self; - } - - public SearchApplicationDescriptor Template(Action configure) - { - TemplateValue = null; - TemplateDescriptor = null; - TemplateDescriptorAction = configure; - return Self; - } - - /// - /// - /// Last time the Search Application was updated. - /// - /// - public SearchApplicationDescriptor UpdatedAtMillis(long updatedAtMillis) - { - UpdatedAtMillisValue = updatedAtMillis; - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - writer.WriteStartObject(); - if (AnalyticsCollectionNameValue is not null) - { - writer.WritePropertyName("analytics_collection_name"); - JsonSerializer.Serialize(writer, AnalyticsCollectionNameValue, options); - } - - writer.WritePropertyName("indices"); - JsonSerializer.Serialize(writer, IndicesValue, options); - writer.WritePropertyName("name"); - JsonSerializer.Serialize(writer, NameValue, options); - if (TemplateDescriptor is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateDescriptor, options); - } - else if (TemplateDescriptorAction is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor(TemplateDescriptorAction), options); - } - else if (TemplateValue is not null) - { - writer.WritePropertyName("template"); - JsonSerializer.Serialize(writer, TemplateValue, options); - } - - writer.WritePropertyName("updated_at_millis"); - writer.WriteNumberValue(UpdatedAtMillisValue); - writer.WriteEndObject(); - } + public long UpdatedAtMillis { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs new file mode 100644 index 00000000000..923ead8239e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SearchApplication/SearchApplicationParameters.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.SearchApplication; + +public sealed partial class SearchApplicationParameters +{ + /// + /// + /// Analytics collection associated to the Search Application. + /// + /// + [JsonInclude, JsonPropertyName("analytics_collection_name")] + public Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionName { get; set; } + + /// + /// + /// Indices that are part of the Search Application. + /// + /// + [JsonInclude, JsonPropertyName("indices")] + public ICollection Indices { get; set; } + + /// + /// + /// Search template to use on search operations. + /// + /// + [JsonInclude, JsonPropertyName("template")] + public Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? Template { get; set; } +} + +public sealed partial class SearchApplicationParametersDescriptor : SerializableDescriptor +{ + internal SearchApplicationParametersDescriptor(Action configure) => configure.Invoke(this); + + public SearchApplicationParametersDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Name? AnalyticsCollectionNameValue { get; set; } + private ICollection IndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? TemplateValue { get; set; } + private Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor TemplateDescriptor { get; set; } + private Action TemplateDescriptorAction { get; set; } + + /// + /// + /// Analytics collection associated to the Search Application. + /// + /// + public SearchApplicationParametersDescriptor AnalyticsCollectionName(Elastic.Clients.Elasticsearch.Name? analyticsCollectionName) + { + AnalyticsCollectionNameValue = analyticsCollectionName; + return Self; + } + + /// + /// + /// Indices that are part of the Search Application. + /// + /// + public SearchApplicationParametersDescriptor Indices(ICollection indices) + { + IndicesValue = indices; + return Self; + } + + /// + /// + /// Search template to use on search operations. + /// + /// + public SearchApplicationParametersDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplate? template) + { + TemplateDescriptor = null; + TemplateDescriptorAction = null; + TemplateValue = template; + return Self; + } + + public SearchApplicationParametersDescriptor Template(Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor descriptor) + { + TemplateValue = null; + TemplateDescriptorAction = null; + TemplateDescriptor = descriptor; + return Self; + } + + public SearchApplicationParametersDescriptor Template(Action configure) + { + TemplateValue = null; + TemplateDescriptor = null; + TemplateDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (AnalyticsCollectionNameValue is not null) + { + writer.WritePropertyName("analytics_collection_name"); + JsonSerializer.Serialize(writer, AnalyticsCollectionNameValue, options); + } + + writer.WritePropertyName("indices"); + JsonSerializer.Serialize(writer, IndicesValue, options); + if (TemplateDescriptor is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateDescriptor, options); + } + else if (TemplateDescriptorAction is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, new Elastic.Clients.Elasticsearch.SearchApplication.SearchApplicationTemplateDescriptor(TemplateDescriptorAction), options); + } + else if (TemplateValue is not null) + { + writer.WritePropertyName("template"); + JsonSerializer.Serialize(writer, TemplateValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs index 3be8e4dec8a..3f6062507e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivileges.g.cs @@ -51,7 +51,6 @@ public sealed partial class IndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.IndexName))] public ICollection Names { get; set; } /// @@ -186,7 +185,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + JsonSerializer.Serialize(writer, NamesValue, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) @@ -314,7 +313,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + JsonSerializer.Serialize(writer, NamesValue, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs index 61c9a3199b2..d397625f8ba 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RemoteIndicesPrivileges.g.cs @@ -64,7 +64,6 @@ public sealed partial class RemoteIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.IndexName))] public ICollection Names { get; set; } /// @@ -218,7 +217,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + JsonSerializer.Serialize(writer, NamesValue, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) @@ -365,7 +364,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } writer.WritePropertyName("names"); - SingleOrManySerializationHelper.Serialize(NamesValue, writer, options); + JsonSerializer.Serialize(writer, NamesValue, options); writer.WritePropertyName("privileges"); JsonSerializer.Serialize(writer, PrivilegesValue, options); if (QueryValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs index 5bacdaccaa6..00564aac314 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivileges.g.cs @@ -51,7 +51,6 @@ public sealed partial class UserIndicesPrivileges /// /// [JsonInclude, JsonPropertyName("names")] - [SingleOrManyCollectionConverter(typeof(string))] public IReadOnlyCollection Names { get; init; } /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs index 24f858b5113..bb69d3f9cf8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Checkpointing.g.cs @@ -31,12 +31,14 @@ public sealed partial class Checkpointing { [JsonInclude, JsonPropertyName("changes_last_detected_at")] public long? ChangesLastDetectedAt { get; init; } - [JsonInclude, JsonPropertyName("changes_last_detected_at_date_time")] - public DateTimeOffset? ChangesLastDetectedAtDateTime { get; init; } + [JsonInclude, JsonPropertyName("changes_last_detected_at_string")] + public DateTimeOffset? ChangesLastDetectedAtString { get; init; } [JsonInclude, JsonPropertyName("last")] public Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats Last { get; init; } [JsonInclude, JsonPropertyName("last_search_time")] public long? LastSearchTime { get; init; } + [JsonInclude, JsonPropertyName("last_search_time_string")] + public DateTimeOffset? LastSearchTimeString { get; init; } [JsonInclude, JsonPropertyName("next")] public Elastic.Clients.Elasticsearch.TransformManagement.CheckpointStats? Next { get; init; } [JsonInclude, JsonPropertyName("operations_behind")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs new file mode 100644 index 00000000000..a56be1801e0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformHealthIssue.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.TransformManagement; + +public sealed partial class TransformHealthIssue +{ + /// + /// + /// Number of times this issue has occurred since it started + /// + /// + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + + /// + /// + /// Details about the issue + /// + /// + [JsonInclude, JsonPropertyName("details")] + public string? Details { get; init; } + [JsonInclude, JsonPropertyName("first_occurence_string")] + public DateTimeOffset? FirstOccurenceString { get; init; } + + /// + /// + /// The timestamp this issue occurred for for the first time + /// + /// + [JsonInclude, JsonPropertyName("first_occurrence")] + public long? FirstOccurrence { get; init; } + + /// + /// + /// A description of the issue + /// + /// + [JsonInclude, JsonPropertyName("issue")] + public string Issue { get; init; } + + /// + /// + /// The type of the issue + /// + /// + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs index 90f6734a7e4..f840350d509 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformStatsHealth.g.cs @@ -29,6 +29,13 @@ namespace Elastic.Clients.Elasticsearch.TransformManagement; public sealed partial class TransformStatsHealth { + /// + /// + /// If a non-healthy status is returned, contains a list of issues of the transform. + /// + /// + [JsonInclude, JsonPropertyName("issues")] + public IReadOnlyCollection? Issues { get; init; } [JsonInclude, JsonPropertyName("status")] public Elastic.Clients.Elasticsearch.HealthStatus Status { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs index 264bced8522..a6f099babd1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/TransformSummary.g.cs @@ -44,6 +44,8 @@ public sealed partial class TransformSummary /// [JsonInclude, JsonPropertyName("create_time")] public long? CreateTime { get; init; } + [JsonInclude, JsonPropertyName("create_time_string")] + public DateTimeOffset? CreateTimeString { get; init; } /// /// From b3ce87bc8fcc87a57a9e4d9716eb164ffdd6e6f0 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Thu, 22 May 2025 22:02:55 +0200 Subject: [PATCH 28/28] Regenerate client --- .../Api/Cluster/ClusterStatsResponse.g.cs | 8 + .../DeleteTemplateRequest.g.cs | 2 + .../IndexManagement/GetTemplateRequest.g.cs | 4 +- .../IndexManagement/PutTemplateRequest.g.cs | 6 +- .../ChatCompletionUnifiedRequest.g.cs | 28 + .../Api/Inference/PutAlibabacloudRequest.g.cs | 14 - .../Inference/PutAmazonbedrockRequest.g.cs | 14 - .../Api/Inference/PutAnthropicRequest.g.cs | 14 - .../Inference/PutAzureaistudioRequest.g.cs | 14 - .../Api/Inference/PutAzureopenaiRequest.g.cs | 14 - .../Api/Inference/PutCohereRequest.g.cs | 14 - .../Inference/PutGoogleaistudioRequest.g.cs | 14 - .../Inference/PutGooglevertexaiRequest.g.cs | 14 - .../Api/Inference/PutHuggingFaceRequest.g.cs | 14 - .../Api/Inference/PutInferenceRequest.g.cs | 10 - .../Api/Inference/PutJinaaiRequest.g.cs | 14 - .../Api/Inference/PutJinaaiResponse.g.cs | 2 +- .../Api/Inference/PutMistralRequest.g.cs | 14 - .../Api/Inference/PutOpenaiRequest.g.cs | 14 - .../Api/Inference/PutWatsonxRequest.g.cs | 14 - .../Client/ElasticsearchClient.Indices.g.cs | 60 +- .../Client/ElasticsearchClient.Inference.g.cs | 900 +++--------------- .../Types/Analysis/ApostropheTokenFilter.g.cs | 73 ++ .../Types/Analysis/ArabicAnalyzer.g.cs | 9 +- .../ArabicNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/ArmenianAnalyzer.g.cs | 9 +- .../Analysis/AsciiFoldingTokenFilter.g.cs | 10 + .../Types/Analysis/BasqueAnalyzer.g.cs | 9 +- .../Types/Analysis/BengaliAnalyzer.g.cs | 9 +- .../Types/Analysis/BrazilianAnalyzer.g.cs | 9 +- .../Types/Analysis/BulgarianAnalyzer.g.cs | 9 +- .../Types/Analysis/CatalanAnalyzer.g.cs | 9 +- .../Types/Analysis/ChineseAnalyzer.g.cs | 9 +- .../Types/Analysis/CjkAnalyzer.g.cs | 9 +- .../Types/Analysis/CjkBigramTokenFilter.g.cs | 127 +++ .../Types/Analysis/CjkWidthTokenFilter.g.cs | 73 ++ .../Types/Analysis/ClassicTokenFilter.g.cs | 73 ++ .../Analysis/CommonGramsTokenFilter.g.cs | 75 ++ .../Types/Analysis/ConditionTokenFilter.g.cs | 21 + .../Types/Analysis/CzechAnalyzer.g.cs | 9 +- .../Types/Analysis/DanishAnalyzer.g.cs | 9 +- .../Analysis/DecimalDigitTokenFilter.g.cs | 73 ++ .../Analysis/DelimitedPayloadTokenFilter.g.cs | 21 + .../DictionaryDecompounderTokenFilter.g.cs | 87 +- .../Types/Analysis/DutchAnalyzer.g.cs | 9 +- .../Types/Analysis/EdgeNGramTokenFilter.g.cs | 43 + .../Types/Analysis/ElisionTokenFilter.g.cs | 42 + .../Types/Analysis/EnglishAnalyzer.g.cs | 9 +- .../Types/Analysis/EstonianAnalyzer.g.cs | 9 +- .../Types/Analysis/FingerprintAnalyzer.g.cs | 9 +- .../Analysis/FingerprintTokenFilter.g.cs | 21 + .../Types/Analysis/FinnishAnalyzer.g.cs | 9 +- .../Analysis/FlattenGraphTokenFilter.g.cs | 73 ++ .../Types/Analysis/FrenchAnalyzer.g.cs | 9 +- .../Types/Analysis/GalicianAnalyzer.g.cs | 9 +- .../Types/Analysis/GermanAnalyzer.g.cs | 9 +- .../GermanNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/GreekAnalyzer.g.cs | 9 +- .../Types/Analysis/HindiAnalyzer.g.cs | 9 +- .../HindiNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/HungarianAnalyzer.g.cs | 9 +- .../Types/Analysis/HunspellTokenFilter.g.cs | 134 ++- .../HyphenationDecompounderTokenFilter.g.cs | 152 ++- .../Analysis/IcuNormalizationCharFilter.g.cs | 16 + .../IndicNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/IndonesianAnalyzer.g.cs | 9 +- .../Types/Analysis/IrishAnalyzer.g.cs | 9 +- .../Types/Analysis/ItalianAnalyzer.g.cs | 9 +- .../Types/Analysis/JaStopTokenFilter.g.cs | 90 ++ .../Types/Analysis/KeepTypesTokenFilter.g.cs | 34 +- .../Types/Analysis/KeepWordsTokenFilter.g.cs | 38 + .../Analysis/KeywordMarkerTokenFilter.g.cs | 51 + .../Analysis/KeywordRepeatTokenFilter.g.cs | 73 ++ .../Types/Analysis/LatvianAnalyzer.g.cs | 9 +- .../Types/Analysis/LengthTokenFilter.g.cs | 21 + .../Analysis/LimitTokenCountTokenFilter.g.cs | 21 + .../Types/Analysis/LithuanianAnalyzer.g.cs | 9 +- .../Types/Analysis/LowercaseTokenFilter.g.cs | 20 +- .../Types/Analysis/MinHashTokenFilter.g.cs | 183 ++++ .../Analysis/MultiplexerTokenFilter.g.cs | 21 + .../Types/Analysis/NGramTokenFilter.g.cs | 32 + .../Analysis/NoriPartOfSpeechTokenFilter.g.cs | 10 + .../Types/Analysis/NorwegianAnalyzer.g.cs | 9 +- .../Types/Analysis/PatternAnalyzer.g.cs | 9 +- .../Analysis/PatternCaptureTokenFilter.g.cs | 21 + .../Analysis/PatternReplaceTokenFilter.g.cs | 48 +- .../Types/Analysis/PersianAnalyzer.g.cs | 9 +- .../PersianNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/PortugueseAnalyzer.g.cs | 9 +- .../Types/Analysis/PredicateTokenFilter.g.cs | 10 + .../Types/Analysis/RomanianAnalyzer.g.cs | 9 +- .../Types/Analysis/RussianAnalyzer.g.cs | 9 +- .../ScandinavianFoldingTokenFilter.g.cs | 73 ++ .../ScandinavianNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/SerbianAnalyzer.g.cs | 9 +- .../SerbianNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/ShingleTokenFilter.g.cs | 85 +- .../Types/Analysis/SnowballAnalyzer.g.cs | 9 +- .../Types/Analysis/SnowballTokenFilter.g.cs | 10 + .../Types/Analysis/SoraniAnalyzer.g.cs | 9 +- .../SoraniNormalizationTokenFilter.g.cs | 73 ++ .../Types/Analysis/SpanishAnalyzer.g.cs | 9 +- .../Types/Analysis/StandardAnalyzer.g.cs | 9 +- .../Analysis/StemmerOverrideTokenFilter.g.cs | 21 + .../Types/Analysis/StopAnalyzer.g.cs | 9 +- .../Types/Analysis/StopTokenFilter.g.cs | 54 +- .../_Generated/Types/Analysis/StopWords.g.cs | 49 + .../Types/Analysis/SwedishAnalyzer.g.cs | 9 +- .../Analysis/SynonymGraphTokenFilter.g.cs | 91 +- .../Types/Analysis/SynonymTokenFilter.g.cs | 91 +- .../Types/Analysis/ThaiAnalyzer.g.cs | 9 +- .../Types/Analysis/TokenFilters.g.cs | 144 +++ .../Types/Analysis/TruncateTokenFilter.g.cs | 10 + .../Types/Analysis/TurkishAnalyzer.g.cs | 9 +- .../Types/Analysis/UniqueTokenFilter.g.cs | 10 + .../WordDelimiterGraphTokenFilter.g.cs | 165 ++++ .../Analysis/WordDelimiterTokenFilter.g.cs | 143 +++ .../_Generated/Types/Cluster/CCSStats.g.cs | 57 ++ .../Types/Cluster/CCSUsageClusterStats.g.cs | 55 ++ .../Types/Cluster/CCSUsageStats.g.cs | 127 +++ .../Types/Cluster/CCSUsageTimeValue.g.cs | 55 ++ .../Types/Cluster/RemoteClusterInfo.g.cs | 151 +++ .../Types/Core/Search/ShardProfile.g.cs | 2 +- .../Types/Enums/Enums.Analysis.g.cs | 429 ++++++++- .../Types/Enums/Enums.Inference.g.cs | 42 + .../Inference/RequestChatCompletion.g.cs | 4 + .../Types/QueryDsl/MoreLikeThisQuery.g.cs | 15 +- .../Types/Snapshot/SnapshotShardFailure.g.cs | 2 +- 128 files changed, 4495 insertions(+), 1341 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopWords.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs index 75d8dfb2977..1b8d0ef4530 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs @@ -28,6 +28,14 @@ namespace Elastic.Clients.Elasticsearch.Cluster; public sealed partial class ClusterStatsResponse : ElasticsearchResponse { + /// + /// + /// Cross-cluster stats + /// + /// + [JsonInclude, JsonPropertyName("ccs")] + public Elastic.Clients.Elasticsearch.Cluster.CCSStats Ccs { get; init; } + /// /// /// Name of the cluster, based on the cluster name setting. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs index 9636af46a91..a6e506b3b58 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs @@ -52,6 +52,7 @@ public sealed partial class DeleteTemplateRequestParameters : RequestParameters /// /// /// Delete a legacy index template. +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// public sealed partial class DeleteTemplateRequest : PlainRequest @@ -90,6 +91,7 @@ public DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r = /// /// /// Delete a legacy index template. +/// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// public sealed partial class DeleteTemplateRequestDescriptor : RequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs index fccb36b1bfe..395fad7192b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs @@ -57,7 +57,7 @@ public sealed partial class GetTemplateRequestParameters : RequestParameters /// /// -/// Get index templates. +/// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -110,7 +110,7 @@ public GetTemplateRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => /// /// -/// Get index templates. +/// Get legacy index templates. /// Get information about one or more index templates. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index f6c836fd87e..f8d305598df 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -57,7 +57,7 @@ public sealed partial class PutTemplateRequestParameters : RequestParameters /// /// -/// Create or update an index template. +/// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -185,7 +185,7 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r /// /// -/// Create or update an index template. +/// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -426,7 +426,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o /// /// -/// Create or update an index template. +/// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs index e098d734379..ab2f7de336e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs @@ -44,6 +44,20 @@ public sealed partial class ChatCompletionUnifiedRequestParameters : RequestPara /// /// Perform chat completion inference /// +/// +/// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. +/// It only works with the chat_completion task type for openai and elastic inference services. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. +/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. +/// +/// +/// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. +/// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. +/// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. +/// If you use the openai service or the elastic service, use the Chat completion inference API. +/// /// public sealed partial class ChatCompletionUnifiedRequest : PlainRequest, ISelfSerializable { @@ -79,6 +93,20 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// Perform chat completion inference /// +/// +/// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. +/// It only works with the chat_completion task type for openai and elastic inference services. +/// +/// +/// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. +/// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. +/// +/// +/// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. +/// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. +/// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. +/// If you use the openai service or the elastic service, use the Chat completion inference API. +/// /// public sealed partial class ChatCompletionUnifiedRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs index 26ece1ba656..456877a9931 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAlibabacloudRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutAlibabacloudRequestParameters : RequestParameters /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAlibabacloudRequest : PlainRequest { @@ -104,13 +97,6 @@ public PutAlibabacloudRequest(Elastic.Clients.Elasticsearch.Inference.AlibabaClo /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAlibabacloudRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs index 83f68070de1..7bae6bc2523 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAmazonbedrockRequest.g.cs @@ -45,13 +45,6 @@ public sealed partial class PutAmazonbedrockRequestParameters : RequestParameter /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAmazonbedrockRequest : PlainRequest { @@ -112,13 +105,6 @@ public PutAmazonbedrockRequest(Elastic.Clients.Elasticsearch.Inference.AmazonBed /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAmazonbedrockRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs index 87328763959..55a54bdefa3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAnthropicRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutAnthropicRequestParameters : RequestParameters /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAnthropicRequest : PlainRequest { @@ -104,13 +97,6 @@ public PutAnthropicRequest(Elastic.Clients.Elasticsearch.Inference.AnthropicTask /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAnthropicRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs index 17ba45c5d2f..6c6e2f81fa3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureaistudioRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutAzureaistudioRequestParameters : RequestParameter /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAzureaistudioRequest : PlainRequest { @@ -104,13 +97,6 @@ public PutAzureaistudioRequest(Elastic.Clients.Elasticsearch.Inference.AzureAiSt /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAzureaistudioRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs index 22f2036369a..3d85885ac71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutAzureopenaiRequest.g.cs @@ -59,13 +59,6 @@ public sealed partial class PutAzureopenaiRequestParameters : RequestParameters /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAzureopenaiRequest : PlainRequest { @@ -140,13 +133,6 @@ public PutAzureopenaiRequest(Elastic.Clients.Elasticsearch.Inference.AzureOpenAI /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutAzureopenaiRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs index 143e82ed8c7..4a3f4f087c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutCohereRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutCohereRequestParameters : RequestParameters /// /// Create an inference endpoint to perform an inference task with the cohere service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutCohereRequest : PlainRequest { @@ -105,13 +98,6 @@ public PutCohereRequest(Elastic.Clients.Elasticsearch.Inference.CohereTaskType t /// /// Create an inference endpoint to perform an inference task with the cohere service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutCohereRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs index 26e86d4279c..eca77e3ae6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGoogleaistudioRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutGoogleaistudioRequestParameters : RequestParamete /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutGoogleaistudioRequest : PlainRequest { @@ -95,13 +88,6 @@ public PutGoogleaistudioRequest(Elastic.Clients.Elasticsearch.Inference.GoogleAi /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutGoogleaistudioRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs index 39ce1075e60..36697364ce7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutGooglevertexaiRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutGooglevertexaiRequestParameters : RequestParamete /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutGooglevertexaiRequest : PlainRequest { @@ -104,13 +97,6 @@ public PutGooglevertexaiRequest(Elastic.Clients.Elasticsearch.Inference.GoogleVe /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutGooglevertexaiRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs index 3ce6c5e5620..15a23d1ac30 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutHuggingFaceRequest.g.cs @@ -86,13 +86,6 @@ public sealed partial class PutHuggingFaceRequestParameters : RequestParameters /// /// /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutHuggingFaceRequest : PlainRequest { @@ -185,13 +178,6 @@ public PutHuggingFaceRequest(Elastic.Clients.Elasticsearch.Inference.HuggingFace /// /// /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutHuggingFaceRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs index 2b49b107239..131b798da4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutInferenceRequest.g.cs @@ -37,11 +37,6 @@ public sealed partial class PutInferenceRequestParameters : RequestParameters /// /// /// Create an inference endpoint. -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -79,11 +74,6 @@ void ISelfSerializable.Serialize(Utf8JsonWriter writer, JsonSerializerOptions op /// /// /// Create an inference endpoint. -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs index fe4820b8438..5c9807d9d4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiRequest.g.cs @@ -45,13 +45,6 @@ public sealed partial class PutJinaaiRequestParameters : RequestParameters /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutJinaaiRequest : PlainRequest { @@ -112,13 +105,6 @@ public PutJinaaiRequest(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType t /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutJinaaiRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs index 8e9dd28df5c..10d85c65ef0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutJinaaiResponse.g.cs @@ -74,5 +74,5 @@ public sealed partial class PutJinaaiResponse : ElasticsearchResponse /// /// [JsonInclude, JsonPropertyName("task_type")] - public Elastic.Clients.Elasticsearch.Inference.TaskType TaskType { get; init; } + public Elastic.Clients.Elasticsearch.Inference.TaskTypeJinaAi TaskType { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs index 1a208604ce4..0f3c960dd6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutMistralRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutMistralRequestParameters : RequestParameters /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutMistralRequest : PlainRequest { @@ -95,13 +88,6 @@ public PutMistralRequest(Elastic.Clients.Elasticsearch.Inference.MistralTaskType /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutMistralRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs index b634ec6e3b0..7b852228e49 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutOpenaiRequest.g.cs @@ -41,13 +41,6 @@ public sealed partial class PutOpenaiRequestParameters : RequestParameters /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutOpenaiRequest : PlainRequest { @@ -104,13 +97,6 @@ public PutOpenaiRequest(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType t /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutOpenaiRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs index 51de1f3ab34..88223e1a412 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/PutWatsonxRequest.g.cs @@ -43,13 +43,6 @@ public sealed partial class PutWatsonxRequestParameters : RequestParameters /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutWatsonxRequest : PlainRequest { @@ -91,13 +84,6 @@ public PutWatsonxRequest(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// -/// -/// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. -/// After creating the endpoint, wait for the model deployment to complete before using it. -/// To verify the deployment status, use the get trained model statistics API. -/// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". -/// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. -/// /// public sealed partial class PutWatsonxRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index a228badba30..93ad33c0811 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -6075,6 +6075,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6088,6 +6089,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest reque /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6100,6 +6102,7 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6113,6 +6116,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescri /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6127,6 +6131,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6142,6 +6147,7 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6154,6 +6160,7 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -6167,6 +6174,7 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// /// /// Delete a legacy index template. + /// IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8. /// /// Learn more about this API in the Elasticsearch documentation. /// @@ -13606,7 +13614,7 @@ public virtual Task GetSettingsAsync(Action /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13623,7 +13631,7 @@ public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13639,7 +13647,7 @@ public virtual Task GetTemplateAsync(GetTemplateRequest req /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13656,7 +13664,7 @@ public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor desc /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13674,7 +13682,7 @@ public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Nam /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13693,7 +13701,7 @@ public virtual GetTemplateResponse GetTemplate(Elastic.Clients.Elasticsearch.Nam /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13711,7 +13719,7 @@ public virtual GetTemplateResponse GetTemplate() /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13730,7 +13738,7 @@ public virtual GetTemplateResponse GetTemplate(Action /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13746,7 +13754,7 @@ public virtual Task GetTemplateAsync(GetTemplateRequestDesc /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13763,7 +13771,7 @@ public virtual Task GetTemplateAsync(Elastic.Clients.Elasti /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13781,7 +13789,7 @@ public virtual Task GetTemplateAsync(Elastic.Clients.Elasti /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -13798,7 +13806,7 @@ public virtual Task GetTemplateAsync(CancellationToken canc /// /// - /// Get index templates. + /// Get legacy index templates. /// Get information about one or more index templates. /// /// @@ -17831,7 +17839,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -17870,7 +17878,7 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -17908,7 +17916,7 @@ public virtual Task PutTemplateAsync(PutTemplateRequest req /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -17947,7 +17955,7 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDesc /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -17987,7 +17995,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18028,7 +18036,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasti /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18067,7 +18075,7 @@ public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor desc /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18107,7 +18115,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18148,7 +18156,7 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18186,7 +18194,7 @@ public virtual Task PutTemplateAsync(PutTemplate /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18225,7 +18233,7 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18265,7 +18273,7 @@ public virtual Task PutTemplateAsync(Elastic.Cli /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18303,7 +18311,7 @@ public virtual Task PutTemplateAsync(PutTemplateRequestDesc /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// @@ -18342,7 +18350,7 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// /// - /// Create or update an index template. + /// Create or update a legacy index template. /// Index templates define settings, mappings, and aliases that can be applied automatically to new indices. /// Elasticsearch applies templates to new indices based on an index pattern that matches the index name. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index 8ac2867117f..55a81bf1bfa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -43,6 +43,20 @@ internal InferenceNamespacedClient(ElasticsearchClient client) : base(client) /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -56,6 +70,20 @@ public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(ChatCompletio /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChatCompletionUnifiedAsync(ChatCompletionUnifiedRequest request, CancellationToken cancellationToken = default) @@ -68,6 +96,20 @@ public virtual Task ChatCompletionUnifiedAsync(Ch /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -81,6 +123,20 @@ public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(ChatCompletio /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -95,6 +151,20 @@ public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clien /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -110,6 +180,20 @@ public virtual ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clien /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChatCompletionUnifiedAsync(ChatCompletionUnifiedRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -122,6 +206,20 @@ public virtual Task ChatCompletionUnifiedAsync(Ch /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId, CancellationToken cancellationToken = default) @@ -135,6 +233,20 @@ public virtual Task ChatCompletionUnifiedAsync(El /// /// Perform chat completion inference /// + /// + /// The chat completion inference API enables real-time responses for chat completion tasks by delivering answers incrementally, reducing response times during computation. + /// It only works with the chat_completion task type for openai and elastic inference services. + /// + /// + /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Azure, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. + /// For built-in models and models uploaded through Eland, the inference APIs offer an alternative way to use and manage trained models. However, if you do not plan to use the inference APIs to use these models or if you want to use non-NLP models, use the machine learning trained model APIs. + /// + /// + /// NOTE: The chat_completion task type is only available within the _stream API and only supports streaming. + /// The Chat completion inference API and the Stream inference API differ in their response structure and capabilities. + /// The Chat completion inference API provides more comprehensive customization options through more fields and function calling support. + /// If you use the openai service or the elastic service, use the Chat completion inference API. + /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Inference.RequestChatCompletion chatCompletionRequest, Elastic.Clients.Elasticsearch.Id inferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -884,11 +996,6 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -907,11 +1014,6 @@ public virtual PutInferenceResponse Put(PutInferenceRequest request) /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -929,11 +1031,6 @@ public virtual Task PutAsync(PutInferenceRequest request, /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -952,11 +1049,6 @@ public virtual PutInferenceResponse Put(PutInferenceRequestDescriptor descriptor /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -976,11 +1068,6 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1001,11 +1088,6 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1025,11 +1107,6 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1050,11 +1127,6 @@ public virtual PutInferenceResponse Put(Elastic.Clients.Elasticsearch.Inference. /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1072,11 +1144,6 @@ public virtual Task PutAsync(PutInferenceRequestDescriptor /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1095,11 +1162,6 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1119,11 +1181,6 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1142,11 +1199,6 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// /// Create an inference endpoint. - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. /// /// /// IMPORTANT: The inference APIs enable you to use certain services, such as built-in machine learning models (ELSER, E5), models uploaded through Eland, Cohere, OpenAI, Mistral, Azure OpenAI, Google AI Studio, Google Vertex AI, Anthropic, Watsonx.ai, or Hugging Face. @@ -1170,13 +1222,6 @@ public virtual Task PutAsync(Elastic.Clients.Elasticsearch /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1193,13 +1238,6 @@ public virtual PutAlibabacloudResponse PutAlibabacloud(PutAlibabacloudRequest re /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAlibabacloudAsync(PutAlibabacloudRequest request, CancellationToken cancellationToken = default) @@ -1215,13 +1253,6 @@ public virtual Task PutAlibabacloudAsync(PutAlibabaclou /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1238,13 +1269,6 @@ public virtual PutAlibabacloudResponse PutAlibabacloud(PutAlibabacloudRequestDes /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1262,13 +1286,6 @@ public virtual PutAlibabacloudResponse PutAlibabacloud(Elastic.Clients.Elasticse /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1287,13 +1304,6 @@ public virtual PutAlibabacloudResponse PutAlibabacloud(Elastic.Clients.Elasticse /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAlibabacloudAsync(PutAlibabacloudRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1309,13 +1319,6 @@ public virtual Task PutAlibabacloudAsync(PutAlibabaclou /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAlibabacloudAsync(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId, CancellationToken cancellationToken = default) @@ -1332,13 +1335,6 @@ public virtual Task PutAlibabacloudAsync(Elastic.Client /// /// Create an inference endpoint to perform an inference task with the alibabacloud-ai-search service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAlibabacloudAsync(Elastic.Clients.Elasticsearch.Inference.AlibabaCloudTaskType taskType, Elastic.Clients.Elasticsearch.Id alibabacloudInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -1360,13 +1356,6 @@ public virtual Task PutAlibabacloudAsync(Elastic.Client /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1387,13 +1376,6 @@ public virtual PutAmazonbedrockResponse PutAmazonbedrock(PutAmazonbedrockRequest /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAmazonbedrockAsync(PutAmazonbedrockRequest request, CancellationToken cancellationToken = default) @@ -1413,13 +1395,6 @@ public virtual Task PutAmazonbedrockAsync(PutAmazonbed /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1440,13 +1415,6 @@ public virtual PutAmazonbedrockResponse PutAmazonbedrock(PutAmazonbedrockRequest /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1468,13 +1436,6 @@ public virtual PutAmazonbedrockResponse PutAmazonbedrock(Elastic.Clients.Elastic /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1497,13 +1458,6 @@ public virtual PutAmazonbedrockResponse PutAmazonbedrock(Elastic.Clients.Elastic /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAmazonbedrockAsync(PutAmazonbedrockRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1523,13 +1477,6 @@ public virtual Task PutAmazonbedrockAsync(PutAmazonbed /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAmazonbedrockAsync(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId, CancellationToken cancellationToken = default) @@ -1550,13 +1497,6 @@ public virtual Task PutAmazonbedrockAsync(Elastic.Clie /// info /// You need to provide the access and secret keys only once, during the inference model creation. The get inference API does not retrieve your access or secret keys. After creating the inference model, you cannot change the associated key pairs. If you want to use a different access and secret key pair, delete the inference model and recreate it with the same name and the updated keys. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAmazonbedrockAsync(Elastic.Clients.Elasticsearch.Inference.AmazonBedrockTaskType taskType, Elastic.Clients.Elasticsearch.Id amazonbedrockInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -1574,13 +1514,6 @@ public virtual Task PutAmazonbedrockAsync(Elastic.Clie /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1597,13 +1530,6 @@ public virtual PutAnthropicResponse PutAnthropic(PutAnthropicRequest request) /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAnthropicAsync(PutAnthropicRequest request, CancellationToken cancellationToken = default) @@ -1619,13 +1545,6 @@ public virtual Task PutAnthropicAsync(PutAnthropicRequest /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1642,13 +1561,6 @@ public virtual PutAnthropicResponse PutAnthropic(PutAnthropicRequestDescriptor d /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1666,13 +1578,6 @@ public virtual PutAnthropicResponse PutAnthropic(Elastic.Clients.Elasticsearch.I /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1691,13 +1596,6 @@ public virtual PutAnthropicResponse PutAnthropic(Elastic.Clients.Elasticsearch.I /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAnthropicAsync(PutAnthropicRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1713,13 +1611,6 @@ public virtual Task PutAnthropicAsync(PutAnthropicRequestD /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAnthropicAsync(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId, CancellationToken cancellationToken = default) @@ -1736,13 +1627,6 @@ public virtual Task PutAnthropicAsync(Elastic.Clients.Elas /// /// Create an inference endpoint to perform an inference task with the anthropic service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAnthropicAsync(Elastic.Clients.Elasticsearch.Inference.AnthropicTaskType taskType, Elastic.Clients.Elasticsearch.Id anthropicInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -1760,13 +1644,6 @@ public virtual Task PutAnthropicAsync(Elastic.Clients.Elas /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1783,13 +1660,6 @@ public virtual PutAzureaistudioResponse PutAzureaistudio(PutAzureaistudioRequest /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureaistudioAsync(PutAzureaistudioRequest request, CancellationToken cancellationToken = default) @@ -1805,13 +1675,6 @@ public virtual Task PutAzureaistudioAsync(PutAzureaist /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1828,13 +1691,6 @@ public virtual PutAzureaistudioResponse PutAzureaistudio(PutAzureaistudioRequest /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1852,13 +1708,6 @@ public virtual PutAzureaistudioResponse PutAzureaistudio(Elastic.Clients.Elastic /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -1877,13 +1726,6 @@ public virtual PutAzureaistudioResponse PutAzureaistudio(Elastic.Clients.Elastic /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureaistudioAsync(PutAzureaistudioRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -1899,13 +1741,6 @@ public virtual Task PutAzureaistudioAsync(PutAzureaist /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureaistudioAsync(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId, CancellationToken cancellationToken = default) @@ -1922,13 +1757,6 @@ public virtual Task PutAzureaistudioAsync(Elastic.Clie /// /// Create an inference endpoint to perform an inference task with the azureaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureaistudioAsync(Elastic.Clients.Elasticsearch.Inference.AzureAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id azureaistudioInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -1964,13 +1792,6 @@ public virtual Task PutAzureaistudioAsync(Elastic.Clie /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2005,13 +1826,6 @@ public virtual PutAzureopenaiResponse PutAzureopenai(PutAzureopenaiRequest reque /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureopenaiAsync(PutAzureopenaiRequest request, CancellationToken cancellationToken = default) @@ -2045,13 +1859,6 @@ public virtual Task PutAzureopenaiAsync(PutAzureopenaiRe /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2086,13 +1893,6 @@ public virtual PutAzureopenaiResponse PutAzureopenai(PutAzureopenaiRequestDescri /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2128,13 +1928,6 @@ public virtual PutAzureopenaiResponse PutAzureopenai(Elastic.Clients.Elasticsear /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2171,13 +1964,6 @@ public virtual PutAzureopenaiResponse PutAzureopenai(Elastic.Clients.Elasticsear /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureopenaiAsync(PutAzureopenaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2211,13 +1997,6 @@ public virtual Task PutAzureopenaiAsync(PutAzureopenaiRe /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureopenaiAsync(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId, CancellationToken cancellationToken = default) @@ -2252,13 +2031,6 @@ public virtual Task PutAzureopenaiAsync(Elastic.Clients. /// /// The list of embeddings models that you can choose from in your deployment can be found in the Azure models documentation. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutAzureopenaiAsync(Elastic.Clients.Elasticsearch.Inference.AzureOpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id azureopenaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -2276,13 +2048,6 @@ public virtual Task PutAzureopenaiAsync(Elastic.Clients. /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2299,13 +2064,6 @@ public virtual PutCohereResponse PutCohere(PutCohereRequest request) /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCohereAsync(PutCohereRequest request, CancellationToken cancellationToken = default) @@ -2321,13 +2079,6 @@ public virtual Task PutCohereAsync(PutCohereRequest request, /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2344,13 +2095,6 @@ public virtual PutCohereResponse PutCohere(PutCohereRequestDescriptor descriptor /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2368,13 +2112,6 @@ public virtual PutCohereResponse PutCohere(Elastic.Clients.Elasticsearch.Inferen /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -2393,13 +2130,6 @@ public virtual PutCohereResponse PutCohere(Elastic.Clients.Elasticsearch.Inferen /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCohereAsync(PutCohereRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -2415,13 +2145,6 @@ public virtual Task PutCohereAsync(PutCohereRequestDescriptor /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCohereAsync(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId, CancellationToken cancellationToken = default) @@ -2438,13 +2161,6 @@ public virtual Task PutCohereAsync(Elastic.Clients.Elasticsea /// /// Create an inference endpoint to perform an inference task with the cohere service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutCohereAsync(Elastic.Clients.Elasticsearch.Inference.CohereTaskType taskType, Elastic.Clients.Elasticsearch.Id cohereInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -3002,13 +2718,6 @@ public virtual Task PutElserAsync(Elastic.Clients.Elasticsearc /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3025,13 +2734,6 @@ public virtual PutGoogleaistudioResponse PutGoogleaistudio(PutGoogleaistudioRequ /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGoogleaistudioAsync(PutGoogleaistudioRequest request, CancellationToken cancellationToken = default) @@ -3047,13 +2749,6 @@ public virtual Task PutGoogleaistudioAsync(PutGooglea /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3070,13 +2765,6 @@ public virtual PutGoogleaistudioResponse PutGoogleaistudio(PutGoogleaistudioRequ /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3094,13 +2782,6 @@ public virtual PutGoogleaistudioResponse PutGoogleaistudio(Elastic.Clients.Elast /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3119,13 +2800,6 @@ public virtual PutGoogleaistudioResponse PutGoogleaistudio(Elastic.Clients.Elast /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGoogleaistudioAsync(PutGoogleaistudioRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3141,13 +2815,6 @@ public virtual Task PutGoogleaistudioAsync(PutGooglea /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGoogleaistudioAsync(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId, CancellationToken cancellationToken = default) @@ -3164,13 +2831,6 @@ public virtual Task PutGoogleaistudioAsync(Elastic.Cl /// /// Create an inference endpoint to perform an inference task with the googleaistudio service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGoogleaistudioAsync(Elastic.Clients.Elasticsearch.Inference.GoogleAiStudioTaskType taskType, Elastic.Clients.Elasticsearch.Id googleaistudioInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -3188,13 +2848,6 @@ public virtual Task PutGoogleaistudioAsync(Elastic.Cl /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3211,13 +2864,6 @@ public virtual PutGooglevertexaiResponse PutGooglevertexai(PutGooglevertexaiRequ /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGooglevertexaiAsync(PutGooglevertexaiRequest request, CancellationToken cancellationToken = default) @@ -3233,13 +2879,6 @@ public virtual Task PutGooglevertexaiAsync(PutGooglev /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3256,13 +2895,6 @@ public virtual PutGooglevertexaiResponse PutGooglevertexai(PutGooglevertexaiRequ /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3280,13 +2912,6 @@ public virtual PutGooglevertexaiResponse PutGooglevertexai(Elastic.Clients.Elast /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3305,13 +2930,6 @@ public virtual PutGooglevertexaiResponse PutGooglevertexai(Elastic.Clients.Elast /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGooglevertexaiAsync(PutGooglevertexaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3327,13 +2945,6 @@ public virtual Task PutGooglevertexaiAsync(PutGooglev /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGooglevertexaiAsync(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId, CancellationToken cancellationToken = default) @@ -3350,13 +2961,6 @@ public virtual Task PutGooglevertexaiAsync(Elastic.Cl /// /// Create an inference endpoint to perform an inference task with the googlevertexai service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutGooglevertexaiAsync(Elastic.Clients.Elasticsearch.Inference.GoogleVertexAITaskType taskType, Elastic.Clients.Elasticsearch.Id googlevertexaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -3419,13 +3023,6 @@ public virtual Task PutGooglevertexaiAsync(Elastic.Cl /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3487,13 +3084,6 @@ public virtual PutHuggingFaceResponse PutHuggingFace(PutHuggingFaceRequest reque /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutHuggingFaceAsync(PutHuggingFaceRequest request, CancellationToken cancellationToken = default) @@ -3554,13 +3144,6 @@ public virtual Task PutHuggingFaceAsync(PutHuggingFaceRe /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3622,13 +3205,6 @@ public virtual PutHuggingFaceResponse PutHuggingFace(PutHuggingFaceRequestDescri /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3691,13 +3267,6 @@ public virtual PutHuggingFaceResponse PutHuggingFace(Elastic.Clients.Elasticsear /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3761,13 +3330,6 @@ public virtual PutHuggingFaceResponse PutHuggingFace(Elastic.Clients.Elasticsear /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutHuggingFaceAsync(PutHuggingFaceRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -3828,13 +3390,6 @@ public virtual Task PutHuggingFaceAsync(PutHuggingFaceRe /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutHuggingFaceAsync(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId, CancellationToken cancellationToken = default) @@ -3896,13 +3451,6 @@ public virtual Task PutHuggingFaceAsync(Elastic.Clients. /// /// /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutHuggingFaceAsync(Elastic.Clients.Elasticsearch.Inference.HuggingFaceTaskType taskType, Elastic.Clients.Elasticsearch.Id huggingfaceInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -3924,13 +3472,6 @@ public virtual Task PutHuggingFaceAsync(Elastic.Clients. /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -3951,13 +3492,6 @@ public virtual PutJinaaiResponse PutJinaai(PutJinaaiRequest request) /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJinaaiAsync(PutJinaaiRequest request, CancellationToken cancellationToken = default) @@ -3977,13 +3511,6 @@ public virtual Task PutJinaaiAsync(PutJinaaiRequest request, /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4004,13 +3531,6 @@ public virtual PutJinaaiResponse PutJinaai(PutJinaaiRequestDescriptor descriptor /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4032,13 +3552,6 @@ public virtual PutJinaaiResponse PutJinaai(Elastic.Clients.Elasticsearch.Inferen /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4061,13 +3574,6 @@ public virtual PutJinaaiResponse PutJinaai(Elastic.Clients.Elasticsearch.Inferen /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJinaaiAsync(PutJinaaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -4087,13 +3593,6 @@ public virtual Task PutJinaaiAsync(PutJinaaiRequestDescriptor /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJinaaiAsync(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId, CancellationToken cancellationToken = default) @@ -4114,13 +3613,6 @@ public virtual Task PutJinaaiAsync(Elastic.Clients.Elasticsea /// To review the available rerank models, refer to https://jina.ai/reranker. /// To review the available text_embedding models, refer to the https://jina.ai/embeddings/. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutJinaaiAsync(Elastic.Clients.Elasticsearch.Inference.JinaAITaskType taskType, Elastic.Clients.Elasticsearch.Id jinaaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -4138,13 +3630,6 @@ public virtual Task PutJinaaiAsync(Elastic.Clients.Elasticsea /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4161,13 +3646,6 @@ public virtual PutMistralResponse PutMistral(PutMistralRequest request) /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMistralAsync(PutMistralRequest request, CancellationToken cancellationToken = default) @@ -4183,13 +3661,6 @@ public virtual Task PutMistralAsync(PutMistralRequest reques /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4206,13 +3677,6 @@ public virtual PutMistralResponse PutMistral(PutMistralRequestDescriptor descrip /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4230,13 +3694,6 @@ public virtual PutMistralResponse PutMistral(Elastic.Clients.Elasticsearch.Infer /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4255,13 +3712,6 @@ public virtual PutMistralResponse PutMistral(Elastic.Clients.Elasticsearch.Infer /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMistralAsync(PutMistralRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -4277,13 +3727,6 @@ public virtual Task PutMistralAsync(PutMistralRequestDescrip /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMistralAsync(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId, CancellationToken cancellationToken = default) @@ -4300,13 +3743,6 @@ public virtual Task PutMistralAsync(Elastic.Clients.Elastics /// /// Creates an inference endpoint to perform an inference task with the mistral service. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutMistralAsync(Elastic.Clients.Elasticsearch.Inference.MistralTaskType taskType, Elastic.Clients.Elasticsearch.Id mistralInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -4324,13 +3760,6 @@ public virtual Task PutMistralAsync(Elastic.Clients.Elastics /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4347,13 +3776,6 @@ public virtual PutOpenaiResponse PutOpenai(PutOpenaiRequest request) /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutOpenaiAsync(PutOpenaiRequest request, CancellationToken cancellationToken = default) @@ -4369,13 +3791,6 @@ public virtual Task PutOpenaiAsync(PutOpenaiRequest request, /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4392,13 +3807,6 @@ public virtual PutOpenaiResponse PutOpenai(PutOpenaiRequestDescriptor descriptor /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4416,13 +3824,6 @@ public virtual PutOpenaiResponse PutOpenai(Elastic.Clients.Elasticsearch.Inferen /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4441,13 +3842,6 @@ public virtual PutOpenaiResponse PutOpenai(Elastic.Clients.Elasticsearch.Inferen /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutOpenaiAsync(PutOpenaiRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -4463,13 +3857,6 @@ public virtual Task PutOpenaiAsync(PutOpenaiRequestDescriptor /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutOpenaiAsync(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId, CancellationToken cancellationToken = default) @@ -4486,13 +3873,6 @@ public virtual Task PutOpenaiAsync(Elastic.Clients.Elasticsea /// /// Create an inference endpoint to perform an inference task with the openai service or openai compatible APIs. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutOpenaiAsync(Elastic.Clients.Elasticsearch.Inference.OpenAITaskType taskType, Elastic.Clients.Elasticsearch.Id openaiInferenceId, Action configureRequest, CancellationToken cancellationToken = default) @@ -4512,13 +3892,6 @@ public virtual Task PutOpenaiAsync(Elastic.Clients.Elasticsea /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4537,13 +3910,6 @@ public virtual PutWatsonxResponse PutWatsonx(PutWatsonxRequest request) /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutWatsonxAsync(PutWatsonxRequest request, CancellationToken cancellationToken = default) @@ -4561,13 +3927,6 @@ public virtual Task PutWatsonxAsync(PutWatsonxRequest reques /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4586,13 +3945,6 @@ public virtual PutWatsonxResponse PutWatsonx(PutWatsonxRequestDescriptor descrip /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4612,13 +3964,6 @@ public virtual PutWatsonxResponse PutWatsonx(Elastic.Clients.Elasticsearch.Infer /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] @@ -4639,13 +3984,6 @@ public virtual PutWatsonxResponse PutWatsonx(Elastic.Clients.Elasticsearch.Infer /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutWatsonxAsync(PutWatsonxRequestDescriptor descriptor, CancellationToken cancellationToken = default) @@ -4663,13 +4001,6 @@ public virtual Task PutWatsonxAsync(PutWatsonxRequestDescrip /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutWatsonxAsync(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId, CancellationToken cancellationToken = default) @@ -4688,13 +4019,6 @@ public virtual Task PutWatsonxAsync(Elastic.Clients.Elastics /// You need an IBM Cloud Databases for Elasticsearch deployment to use the watsonxai inference service. /// You can provision one through the IBM catalog, the Cloud Databases CLI plug-in, the Cloud Databases API, or Terraform. /// - /// - /// When you create an inference endpoint, the associated machine learning model is automatically deployed if it is not already running. - /// After creating the endpoint, wait for the model deployment to complete before using it. - /// To verify the deployment status, use the get trained model statistics API. - /// Look for "state": "fully_allocated" in the response and ensure that the "allocation_count" matches the "target_allocation_count". - /// Avoid creating multiple endpoints for the same model unless required, as each endpoint consumes significant resources. - /// /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutWatsonxAsync(Elastic.Clients.Elasticsearch.Inference.WatsonxTaskType taskType, Elastic.Clients.Elasticsearch.Id watsonxInferenceId, Action configureRequest, CancellationToken cancellationToken = default) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs new file mode 100644 index 00000000000..acbe0903712 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ApostropheTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ApostropheTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "apostrophe"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ApostropheTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ApostropheTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public ApostropheTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ApostropheTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("apostrophe"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ApostropheTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs index 64f5991c499..6c828b1474f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class ArabicAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public ArabicAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public ArabicAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public ArabicAnalyzerDescriptor StemExclusion(ICollection? stemExclusion return Self; } - public ArabicAnalyzerDescriptor Stopwords(ICollection? stopwords) + public ArabicAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..526a5897c66 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArabicNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ArabicNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "arabic_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ArabicNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ArabicNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public ArabicNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ArabicNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("arabic_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ArabicNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs index 3641734436a..93eddd47e12 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ArmenianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class ArmenianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public ArmenianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public ArmenianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public ArmenianAnalyzerDescriptor StemExclusion(ICollection? stemExclusi return Self; } - public ArmenianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public ArmenianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs index cc96201fc6b..e53dc3e199c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/AsciiFoldingTokenFilter.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class AsciiFoldingTokenFilter : ITokenFilter { + /// + /// + /// If true, emit both original tokens and folded tokens. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } @@ -50,6 +55,11 @@ public AsciiFoldingTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, emit both original tokens and folded tokens. Defaults to false. + /// + /// public AsciiFoldingTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs index 9bdabb5b6ef..c30746a8815 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BasqueAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class BasqueAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public BasqueAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public BasqueAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public BasqueAnalyzerDescriptor StemExclusion(ICollection? stemExclusion return Self; } - public BasqueAnalyzerDescriptor Stopwords(ICollection? stopwords) + public BasqueAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs index a9393e534cc..cf3c7c8da92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BengaliAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class BengaliAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public BengaliAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public BengaliAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public BengaliAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public BengaliAnalyzerDescriptor Stopwords(ICollection? stopwords) + public BengaliAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs index edb89e4c735..1df437afd7f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BrazilianAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class BrazilianAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public BrazilianAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public BrazilianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public BrazilianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs index 7d08a972858..4231a6946c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/BulgarianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class BulgarianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public BulgarianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public BulgarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public BulgarianAnalyzerDescriptor StemExclusion(ICollection? stemExclus return Self; } - public BulgarianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public BulgarianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs index d6215912130..33f1ee76822 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CatalanAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class CatalanAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public CatalanAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public CatalanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public CatalanAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public CatalanAnalyzerDescriptor Stopwords(ICollection? stopwords) + public CatalanAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs index 8a70c33dd66..53dae9c0272 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ChineseAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class ChineseAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public ChineseAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public ChineseAnalyzerDescriptor Stopwords(ICollection? stopwords) + public ChineseAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs index 3fb380874ff..10d33d88b86 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class CjkAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public CjkAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public CjkAnalyzerDescriptor Stopwords(ICollection? stopwords) + public CjkAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs new file mode 100644 index 00000000000..1ddbc1863ee --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkBigramTokenFilter.g.cs @@ -0,0 +1,127 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class CjkBigramTokenFilter : ITokenFilter +{ + /// + /// + /// Array of character scripts for which to disable bigrams. + /// + /// + [JsonInclude, JsonPropertyName("ignored_scripts")] + public ICollection? IgnoredScripts { get; set; } + + /// + /// + /// If true, emit tokens in both bigram and unigram form. If false, a CJK character is output in unigram form when it has no adjacent characters. Defaults to false. + /// + /// + [JsonInclude, JsonPropertyName("output_unigrams")] + public bool? OutputUnigrams { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "cjk_bigram"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class CjkBigramTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CjkBigramTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public CjkBigramTokenFilterDescriptor() : base() + { + } + + private ICollection? IgnoredScriptsValue { get; set; } + private bool? OutputUnigramsValue { get; set; } + private string? VersionValue { get; set; } + + /// + /// + /// Array of character scripts for which to disable bigrams. + /// + /// + public CjkBigramTokenFilterDescriptor IgnoredScripts(ICollection? ignoredScripts) + { + IgnoredScriptsValue = ignoredScripts; + return Self; + } + + /// + /// + /// If true, emit tokens in both bigram and unigram form. If false, a CJK character is output in unigram form when it has no adjacent characters. Defaults to false. + /// + /// + public CjkBigramTokenFilterDescriptor OutputUnigrams(bool? outputUnigrams = true) + { + OutputUnigramsValue = outputUnigrams; + return Self; + } + + public CjkBigramTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (IgnoredScriptsValue is not null) + { + writer.WritePropertyName("ignored_scripts"); + JsonSerializer.Serialize(writer, IgnoredScriptsValue, options); + } + + if (OutputUnigramsValue.HasValue) + { + writer.WritePropertyName("output_unigrams"); + writer.WriteBooleanValue(OutputUnigramsValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("cjk_bigram"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + CjkBigramTokenFilter IBuildableDescriptor.Build() => new() + { + IgnoredScripts = IgnoredScriptsValue, + OutputUnigrams = OutputUnigramsValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs new file mode 100644 index 00000000000..803c8760b96 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CjkWidthTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class CjkWidthTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "cjk_width"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class CjkWidthTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal CjkWidthTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public CjkWidthTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public CjkWidthTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("cjk_width"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + CjkWidthTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs new file mode 100644 index 00000000000..78501865887 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ClassicTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ClassicTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "classic"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ClassicTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ClassicTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public ClassicTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ClassicTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("classic"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ClassicTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs index 4f45e01e10e..1db47216b47 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs @@ -29,12 +29,51 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class CommonGramsTokenFilter : ITokenFilter { + /// + /// + /// A list of tokens. The filter generates bigrams for these tokens. + /// Either this or the common_words_path parameter is required. + /// + /// [JsonInclude, JsonPropertyName("common_words")] public ICollection? CommonWords { get; set; } + + /// + /// + /// Path to a file containing a list of tokens. The filter generates bigrams for these tokens. + /// This path must be absolute or relative to the config location. The file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// Either this or the common_words parameter is required. + /// + /// [JsonInclude, JsonPropertyName("common_words_path")] public string? CommonWordsPath { get; set; } + + /// + /// + /// If true, matches for common words matching are case-insensitive. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("ignore_case")] public bool? IgnoreCase { get; set; } + + /// + /// + /// If true, the filter excludes the following tokens from the output: + /// + /// + /// + /// + /// Unigrams for common words + /// + /// + /// + /// + /// Unigrams for terms followed by common words + /// Defaults to false. We recommend enabling this parameter for search analyzers. + /// + /// + /// + /// [JsonInclude, JsonPropertyName("query_mode")] public bool? QueryMode { get; set; } @@ -59,24 +98,60 @@ public CommonGramsTokenFilterDescriptor() : base() private bool? QueryModeValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// A list of tokens. The filter generates bigrams for these tokens. + /// Either this or the common_words_path parameter is required. + /// + /// public CommonGramsTokenFilterDescriptor CommonWords(ICollection? commonWords) { CommonWordsValue = commonWords; return Self; } + /// + /// + /// Path to a file containing a list of tokens. The filter generates bigrams for these tokens. + /// This path must be absolute or relative to the config location. The file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// Either this or the common_words parameter is required. + /// + /// public CommonGramsTokenFilterDescriptor CommonWordsPath(string? commonWordsPath) { CommonWordsPathValue = commonWordsPath; return Self; } + /// + /// + /// If true, matches for common words matching are case-insensitive. Defaults to false. + /// + /// public CommonGramsTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) { IgnoreCaseValue = ignoreCase; return Self; } + /// + /// + /// If true, the filter excludes the following tokens from the output: + /// + /// + /// + /// + /// Unigrams for common words + /// + /// + /// + /// + /// Unigrams for terms followed by common words + /// Defaults to false. We recommend enabling this parameter for search analyzers. + /// + /// + /// + /// public CommonGramsTokenFilterDescriptor QueryMode(bool? queryMode = true) { QueryModeValue = queryMode; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs index b681db39789..9b45bf2ba06 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class ConditionTokenFilter : ITokenFilter { + /// + /// + /// Array of token filters. If a token matches the predicate script in the script parameter, these filters are applied to the token in the order provided. + /// + /// [JsonInclude, JsonPropertyName("filter")] public ICollection Filter { get; set; } + + /// + /// + /// Predicate script used to apply token filters. If a token matches this script, the filters in the filter parameter are applied to the token. + /// + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script Script { get; set; } @@ -55,12 +66,22 @@ public ConditionTokenFilterDescriptor() : base() private Action ScriptDescriptorAction { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Array of token filters. If a token matches the predicate script in the script parameter, these filters are applied to the token in the order provided. + /// + /// public ConditionTokenFilterDescriptor Filter(ICollection filter) { FilterValue = filter; return Self; } + /// + /// + /// Predicate script used to apply token filters. If a token matches this script, the filters in the filter parameter are applied to the token. + /// + /// public ConditionTokenFilterDescriptor Script(Elastic.Clients.Elasticsearch.Script script) { ScriptDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs index 85203810347..11f9702c85b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CzechAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class CzechAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public CzechAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public CzechAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public CzechAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) return Self; } - public CzechAnalyzerDescriptor Stopwords(ICollection? stopwords) + public CzechAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs index 96f1845395b..9fe97952af0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DanishAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class DanishAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public DanishAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public DanishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public DanishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs new file mode 100644 index 00000000000..56216ea7475 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DecimalDigitTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class DecimalDigitTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "decimal_digit"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class DecimalDigitTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal DecimalDigitTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public DecimalDigitTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public DecimalDigitTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("decimal_digit"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + DecimalDigitTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs index 37a5f56a30b..d2103a7baac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DelimitedPayloadTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class DelimitedPayloadTokenFilter : ITokenFilter { + /// + /// + /// Character used to separate tokens from payloads. Defaults to |. + /// + /// [JsonInclude, JsonPropertyName("delimiter")] public string? Delimiter { get; set; } + + /// + /// + /// Data type for the stored payload. + /// + /// [JsonInclude, JsonPropertyName("encoding")] public Elastic.Clients.Elasticsearch.Analysis.DelimitedPayloadEncoding? Encoding { get; set; } @@ -53,12 +64,22 @@ public DelimitedPayloadTokenFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.DelimitedPayloadEncoding? EncodingValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Character used to separate tokens from payloads. Defaults to |. + /// + /// public DelimitedPayloadTokenFilterDescriptor Delimiter(string? delimiter) { DelimiterValue = delimiter; return Self; } + /// + /// + /// Data type for the stored payload. + /// + /// public DelimitedPayloadTokenFilterDescriptor Encoding(Elastic.Clients.Elasticsearch.Analysis.DelimitedPayloadEncoding? encoding) { EncodingValue = encoding; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs index a1cead6976f..02139e990c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs @@ -29,14 +29,35 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class DictionaryDecompounderTokenFilter : ITokenFilter { - [JsonInclude, JsonPropertyName("hyphenation_patterns_path")] - public string? HyphenationPatternsPath { get; set; } + /// + /// + /// Maximum subword character length. Longer subword tokens are excluded from the output. Defaults to 15. + /// + /// [JsonInclude, JsonPropertyName("max_subword_size")] public int? MaxSubwordSize { get; set; } + + /// + /// + /// Minimum subword character length. Shorter subword tokens are excluded from the output. Defaults to 2. + /// + /// [JsonInclude, JsonPropertyName("min_subword_size")] public int? MinSubwordSize { get; set; } + + /// + /// + /// Minimum word character length. Shorter word tokens are excluded from the output. Defaults to 5. + /// + /// [JsonInclude, JsonPropertyName("min_word_size")] public int? MinWordSize { get; set; } + + /// + /// + /// If true, only include the longest matching subword. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("only_longest_match")] public bool? OnlyLongestMatch { get; set; } @@ -45,8 +66,23 @@ public sealed partial class DictionaryDecompounderTokenFilter : ITokenFilter [JsonInclude, JsonPropertyName("version")] public string? Version { get; set; } + + /// + /// + /// A list of subwords to look for in the token stream. If found, the subword is included in the token output. + /// Either this parameter or word_list_path must be specified. + /// + /// [JsonInclude, JsonPropertyName("word_list")] public ICollection? WordList { get; set; } + + /// + /// + /// Path to a file that contains a list of subwords to find in the token stream. If found, the subword is included in the token output. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// Either this parameter or word_list must be specified. + /// + /// [JsonInclude, JsonPropertyName("word_list_path")] public string? WordListPath { get; set; } } @@ -59,7 +95,6 @@ public DictionaryDecompounderTokenFilterDescriptor() : base() { } - private string? HyphenationPatternsPathValue { get; set; } private int? MaxSubwordSizeValue { get; set; } private int? MinSubwordSizeValue { get; set; } private int? MinWordSizeValue { get; set; } @@ -68,30 +103,44 @@ public DictionaryDecompounderTokenFilterDescriptor() : base() private ICollection? WordListValue { get; set; } private string? WordListPathValue { get; set; } - public DictionaryDecompounderTokenFilterDescriptor HyphenationPatternsPath(string? hyphenationPatternsPath) - { - HyphenationPatternsPathValue = hyphenationPatternsPath; - return Self; - } - + /// + /// + /// Maximum subword character length. Longer subword tokens are excluded from the output. Defaults to 15. + /// + /// public DictionaryDecompounderTokenFilterDescriptor MaxSubwordSize(int? maxSubwordSize) { MaxSubwordSizeValue = maxSubwordSize; return Self; } + /// + /// + /// Minimum subword character length. Shorter subword tokens are excluded from the output. Defaults to 2. + /// + /// public DictionaryDecompounderTokenFilterDescriptor MinSubwordSize(int? minSubwordSize) { MinSubwordSizeValue = minSubwordSize; return Self; } + /// + /// + /// Minimum word character length. Shorter word tokens are excluded from the output. Defaults to 5. + /// + /// public DictionaryDecompounderTokenFilterDescriptor MinWordSize(int? minWordSize) { MinWordSizeValue = minWordSize; return Self; } + /// + /// + /// If true, only include the longest matching subword. Defaults to false. + /// + /// public DictionaryDecompounderTokenFilterDescriptor OnlyLongestMatch(bool? onlyLongestMatch = true) { OnlyLongestMatchValue = onlyLongestMatch; @@ -104,12 +153,25 @@ public DictionaryDecompounderTokenFilterDescriptor Version(string? version) return Self; } + /// + /// + /// A list of subwords to look for in the token stream. If found, the subword is included in the token output. + /// Either this parameter or word_list_path must be specified. + /// + /// public DictionaryDecompounderTokenFilterDescriptor WordList(ICollection? wordList) { WordListValue = wordList; return Self; } + /// + /// + /// Path to a file that contains a list of subwords to find in the token stream. If found, the subword is included in the token output. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// Either this parameter or word_list must be specified. + /// + /// public DictionaryDecompounderTokenFilterDescriptor WordListPath(string? wordListPath) { WordListPathValue = wordListPath; @@ -119,12 +181,6 @@ public DictionaryDecompounderTokenFilterDescriptor WordListPath(string? wordList protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (!string.IsNullOrEmpty(HyphenationPatternsPathValue)) - { - writer.WritePropertyName("hyphenation_patterns_path"); - writer.WriteStringValue(HyphenationPatternsPathValue); - } - if (MaxSubwordSizeValue.HasValue) { writer.WritePropertyName("max_subword_size"); @@ -174,7 +230,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o DictionaryDecompounderTokenFilter IBuildableDescriptor.Build() => new() { - HyphenationPatternsPath = HyphenationPatternsPathValue, MaxSubwordSize = MaxSubwordSizeValue, MinSubwordSize = MinSubwordSizeValue, MinWordSize = MinWordSizeValue, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs index 7fdbe496526..71ec20736c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class DutchAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public DutchAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public DutchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public DutchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) return Self; } - public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) + public DutchAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs index 0d2f7137290..0f2cf09a31f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenFilter.g.cs @@ -29,12 +29,35 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class EdgeNGramTokenFilter : ITokenFilter { + /// + /// + /// Maximum character length of a gram. For custom token filters, defaults to 2. For the built-in edge_ngram filter, defaults to 1. + /// + /// [JsonInclude, JsonPropertyName("max_gram")] public int? MaxGram { get; set; } + + /// + /// + /// Minimum character length of a gram. Defaults to 1. + /// + /// [JsonInclude, JsonPropertyName("min_gram")] public int? MinGram { get; set; } + + /// + /// + /// Emits original token when set to true. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } + + /// + /// + /// Indicates whether to truncate tokens from the front or back. Defaults to front. + /// + /// [JsonInclude, JsonPropertyName("side")] public Elastic.Clients.Elasticsearch.Analysis.EdgeNGramSide? Side { get; set; } @@ -59,24 +82,44 @@ public EdgeNGramTokenFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.EdgeNGramSide? SideValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Maximum character length of a gram. For custom token filters, defaults to 2. For the built-in edge_ngram filter, defaults to 1. + /// + /// public EdgeNGramTokenFilterDescriptor MaxGram(int? maxGram) { MaxGramValue = maxGram; return Self; } + /// + /// + /// Minimum character length of a gram. Defaults to 1. + /// + /// public EdgeNGramTokenFilterDescriptor MinGram(int? minGram) { MinGramValue = minGram; return Self; } + /// + /// + /// Emits original token when set to true. Defaults to false. + /// + /// public EdgeNGramTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; return Self; } + /// + /// + /// Indicates whether to truncate tokens from the front or back. Defaults to front. + /// + /// public EdgeNGramTokenFilterDescriptor Side(Elastic.Clients.Elasticsearch.Analysis.EdgeNGramSide? side) { SideValue = side; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs index 746bae05f3f..4373083cf7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs @@ -29,10 +29,32 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class ElisionTokenFilter : ITokenFilter { + /// + /// + /// List of elisions to remove. + /// To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed. + /// For custom elision filters, either this parameter or articles_path must be specified. + /// + /// [JsonInclude, JsonPropertyName("articles")] public ICollection? Articles { get; set; } + + /// + /// + /// If true, elision matching is case insensitive. If false, elision matching is case sensitive. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("articles_case")] public bool? ArticlesCase { get; set; } + + /// + /// + /// Path to a file that contains a list of elisions to remove. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each elision in the file must be separated by a line break. + /// To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed. + /// For custom elision filters, either this parameter or articles must be specified. + /// + /// [JsonInclude, JsonPropertyName("articles_path")] public string? ArticlesPath { get; set; } @@ -56,18 +78,38 @@ public ElisionTokenFilterDescriptor() : base() private string? ArticlesPathValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// List of elisions to remove. + /// To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed. + /// For custom elision filters, either this parameter or articles_path must be specified. + /// + /// public ElisionTokenFilterDescriptor Articles(ICollection? articles) { ArticlesValue = articles; return Self; } + /// + /// + /// If true, elision matching is case insensitive. If false, elision matching is case sensitive. Defaults to false. + /// + /// public ElisionTokenFilterDescriptor ArticlesCase(bool? articlesCase = true) { ArticlesCaseValue = articlesCase; return Self; } + /// + /// + /// Path to a file that contains a list of elisions to remove. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each elision in the file must be separated by a line break. + /// To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed. + /// For custom elision filters, either this parameter or articles must be specified. + /// + /// public ElisionTokenFilterDescriptor ArticlesPath(string? articlesPath) { ArticlesPathValue = articlesPath; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs index bf63091004e..b0cdf807df5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EnglishAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class EnglishAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public EnglishAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public EnglishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public EnglishAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public EnglishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public EnglishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs index a1e4374a3f5..32a64317d0e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EstonianAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class EstonianAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public EstonianAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public EstonianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public EstonianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs index f91086db2f4..b62fe6bf504 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs @@ -36,8 +36,7 @@ public sealed partial class FingerprintAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("separator")] public string Separator { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -59,7 +58,7 @@ public FingerprintAnalyzerDescriptor() : base() private int MaxOutputSizeValue { get; set; } private bool PreserveOriginalValue { get; set; } private string SeparatorValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } private string? VersionValue { get; set; } @@ -81,7 +80,7 @@ public FingerprintAnalyzerDescriptor Separator(string separator) return Self; } - public FingerprintAnalyzerDescriptor Stopwords(ICollection? stopwords) + public FingerprintAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -111,7 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs index 15b0a8f5f96..4f605db1c6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class FingerprintTokenFilter : ITokenFilter { + /// + /// + /// Maximum character length, including whitespace, of the output token. Defaults to 255. Concatenated tokens longer than this will result in no token output. + /// + /// [JsonInclude, JsonPropertyName("max_output_size")] public int? MaxOutputSize { get; set; } + + /// + /// + /// Character to use to concatenate the token stream input. Defaults to a space. + /// + /// [JsonInclude, JsonPropertyName("separator")] public string? Separator { get; set; } @@ -53,12 +64,22 @@ public FingerprintTokenFilterDescriptor() : base() private string? SeparatorValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Maximum character length, including whitespace, of the output token. Defaults to 255. Concatenated tokens longer than this will result in no token output. + /// + /// public FingerprintTokenFilterDescriptor MaxOutputSize(int? maxOutputSize) { MaxOutputSizeValue = maxOutputSize; return Self; } + /// + /// + /// Character to use to concatenate the token stream input. Defaults to a space. + /// + /// public FingerprintTokenFilterDescriptor Separator(string? separator) { SeparatorValue = separator; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs index 26daf3595db..3a3822bd675 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FinnishAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class FinnishAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public FinnishAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public FinnishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public FinnishAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public FinnishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public FinnishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs new file mode 100644 index 00000000000..9589ccac87a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FlattenGraphTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class FlattenGraphTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "flatten_graph"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class FlattenGraphTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal FlattenGraphTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public FlattenGraphTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public FlattenGraphTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("flatten_graph"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + FlattenGraphTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs index 71a3152f6f5..ee535b25918 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FrenchAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class FrenchAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public FrenchAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public FrenchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public FrenchAnalyzerDescriptor StemExclusion(ICollection? stemExclusion return Self; } - public FrenchAnalyzerDescriptor Stopwords(ICollection? stopwords) + public FrenchAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs index f1ddff66f9b..c527f621613 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GalicianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class GalicianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public GalicianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public GalicianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public GalicianAnalyzerDescriptor StemExclusion(ICollection? stemExclusi return Self; } - public GalicianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public GalicianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs index bd0b04a470f..36360078fea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class GermanAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public GermanAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public GermanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public GermanAnalyzerDescriptor StemExclusion(ICollection? stemExclusion return Self; } - public GermanAnalyzerDescriptor Stopwords(ICollection? stopwords) + public GermanAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..47f90b0fb30 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GermanNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class GermanNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "german_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class GermanNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal GermanNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public GermanNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public GermanNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("german_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + GermanNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs index 89b4442eddd..63bb5d5497d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/GreekAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class GreekAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public GreekAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public GreekAnalyzerDescriptor Stopwords(ICollection? stopwords) + public GreekAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs index c3142b0a785..9f7c4f2ccb3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class HindiAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public HindiAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public HindiAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public HindiAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) return Self; } - public HindiAnalyzerDescriptor Stopwords(ICollection? stopwords) + public HindiAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..a22fd7fc2f0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HindiNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class HindiNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "hindi_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class HindiNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal HindiNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public HindiNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public HindiNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("hindi_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + HindiNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs index 1df50363051..308819fb573 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HungarianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class HungarianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public HungarianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public HungarianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public HungarianAnalyzerDescriptor StemExclusion(ICollection? stemExclus return Self; } - public HungarianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public HungarianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs index 5e65fa055e8..5c144677089 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HunspellTokenFilter.g.cs @@ -27,21 +27,122 @@ namespace Elastic.Clients.Elasticsearch.Analysis; +internal sealed partial class HunspellTokenFilterConverter : JsonConverter +{ + public override HunspellTokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + if (reader.TokenType != JsonTokenType.StartObject) + throw new JsonException("Unexpected JSON detected."); + var variant = new HunspellTokenFilter(); + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) + { + if (reader.TokenType == JsonTokenType.PropertyName) + { + var property = reader.GetString(); + if (property == "dedup") + { + variant.Dedup = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "dictionary") + { + variant.Dictionary = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "locale" || property == "lang" || property == "language") + { + variant.Locale = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "longest_only") + { + variant.LongestOnly = JsonSerializer.Deserialize(ref reader, options); + continue; + } + + if (property == "version") + { + variant.Version = JsonSerializer.Deserialize(ref reader, options); + continue; + } + } + } + + return variant; + } + + public override void Write(Utf8JsonWriter writer, HunspellTokenFilter value, JsonSerializerOptions options) + { + writer.WriteStartObject(); + if (value.Dedup.HasValue) + { + writer.WritePropertyName("dedup"); + writer.WriteBooleanValue(value.Dedup.Value); + } + + if (!string.IsNullOrEmpty(value.Dictionary)) + { + writer.WritePropertyName("dictionary"); + writer.WriteStringValue(value.Dictionary); + } + + writer.WritePropertyName("locale"); + writer.WriteStringValue(value.Locale); + if (value.LongestOnly.HasValue) + { + writer.WritePropertyName("longest_only"); + writer.WriteBooleanValue(value.LongestOnly.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("hunspell"); + if (!string.IsNullOrEmpty(value.Version)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(value.Version); + } + + writer.WriteEndObject(); + } +} + +[JsonConverter(typeof(HunspellTokenFilterConverter))] public sealed partial class HunspellTokenFilter : ITokenFilter { - [JsonInclude, JsonPropertyName("dedup")] + /// + /// + /// If true, duplicate tokens are removed from the filter’s output. Defaults to true. + /// + /// public bool? Dedup { get; set; } - [JsonInclude, JsonPropertyName("dictionary")] + + /// + /// + /// One or more .dic files (e.g, en_US.dic, my_custom.dic) to use for the Hunspell dictionary. + /// By default, the hunspell filter uses all .dic files in the <$ES_PATH_CONF>/hunspell/<locale> directory specified using the lang, language, or locale parameter. + /// + /// public string? Dictionary { get; set; } - [JsonInclude, JsonPropertyName("locale")] + + /// + /// + /// Locale directory used to specify the .aff and .dic files for a Hunspell dictionary. + /// + /// public string Locale { get; set; } - [JsonInclude, JsonPropertyName("longest_only")] + + /// + /// + /// If true, only the longest stemmed version of each token is included in the output. If false, all stemmed versions of the token are included. Defaults to false. + /// + /// public bool? LongestOnly { get; set; } - [JsonInclude, JsonPropertyName("type")] public string Type => "hunspell"; - [JsonInclude, JsonPropertyName("version")] public string? Version { get; set; } } @@ -59,24 +160,45 @@ public HunspellTokenFilterDescriptor() : base() private bool? LongestOnlyValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, duplicate tokens are removed from the filter’s output. Defaults to true. + /// + /// public HunspellTokenFilterDescriptor Dedup(bool? dedup = true) { DedupValue = dedup; return Self; } + /// + /// + /// One or more .dic files (e.g, en_US.dic, my_custom.dic) to use for the Hunspell dictionary. + /// By default, the hunspell filter uses all .dic files in the <$ES_PATH_CONF>/hunspell/<locale> directory specified using the lang, language, or locale parameter. + /// + /// public HunspellTokenFilterDescriptor Dictionary(string? dictionary) { DictionaryValue = dictionary; return Self; } + /// + /// + /// Locale directory used to specify the .aff and .dic files for a Hunspell dictionary. + /// + /// public HunspellTokenFilterDescriptor Locale(string locale) { LocaleValue = locale; return Self; } + /// + /// + /// If true, only the longest stemmed version of each token is included in the output. If false, all stemmed versions of the token are included. Defaults to false. + /// + /// public HunspellTokenFilterDescriptor LongestOnly(bool? longestOnly = true) { LongestOnlyValue = longestOnly; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs index 1c225a17a4d..b83a3c73917 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs @@ -29,14 +29,60 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class HyphenationDecompounderTokenFilter : ITokenFilter { + /// + /// + /// Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern file. + /// This path must be absolute or relative to the config location. Only FOP v1.2 compatible files are supported. + /// + /// [JsonInclude, JsonPropertyName("hyphenation_patterns_path")] - public string? HyphenationPatternsPath { get; set; } + public string HyphenationPatternsPath { get; set; } + + /// + /// + /// Maximum subword character length. Longer subword tokens are excluded from the output. Defaults to 15. + /// + /// [JsonInclude, JsonPropertyName("max_subword_size")] public int? MaxSubwordSize { get; set; } + + /// + /// + /// Minimum subword character length. Shorter subword tokens are excluded from the output. Defaults to 2. + /// + /// [JsonInclude, JsonPropertyName("min_subword_size")] public int? MinSubwordSize { get; set; } + + /// + /// + /// Minimum word character length. Shorter word tokens are excluded from the output. Defaults to 5. + /// + /// [JsonInclude, JsonPropertyName("min_word_size")] public int? MinWordSize { get; set; } + + /// + /// + /// If true, do not allow overlapping tokens. Defaults to false. + /// + /// + [JsonInclude, JsonPropertyName("no_overlapping_matches")] + public bool? NoOverlappingMatches { get; set; } + + /// + /// + /// If true, do not match sub tokens in tokens that are in the word list. Defaults to false. + /// + /// + [JsonInclude, JsonPropertyName("no_sub_matches")] + public bool? NoSubMatches { get; set; } + + /// + /// + /// If true, only include the longest matching subword. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("only_longest_match")] public bool? OnlyLongestMatch { get; set; } @@ -45,8 +91,23 @@ public sealed partial class HyphenationDecompounderTokenFilter : ITokenFilter [JsonInclude, JsonPropertyName("version")] public string? Version { get; set; } + + /// + /// + /// A list of subwords to look for in the token stream. If found, the subword is included in the token output. + /// Either this parameter or word_list_path must be specified. + /// + /// [JsonInclude, JsonPropertyName("word_list")] public ICollection? WordList { get; set; } + + /// + /// + /// Path to a file that contains a list of subwords to find in the token stream. If found, the subword is included in the token output. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// Either this parameter or word_list must be specified. + /// + /// [JsonInclude, JsonPropertyName("word_list_path")] public string? WordListPath { get; set; } } @@ -59,39 +120,89 @@ public HyphenationDecompounderTokenFilterDescriptor() : base() { } - private string? HyphenationPatternsPathValue { get; set; } + private string HyphenationPatternsPathValue { get; set; } private int? MaxSubwordSizeValue { get; set; } private int? MinSubwordSizeValue { get; set; } private int? MinWordSizeValue { get; set; } + private bool? NoOverlappingMatchesValue { get; set; } + private bool? NoSubMatchesValue { get; set; } private bool? OnlyLongestMatchValue { get; set; } private string? VersionValue { get; set; } private ICollection? WordListValue { get; set; } private string? WordListPathValue { get; set; } - public HyphenationDecompounderTokenFilterDescriptor HyphenationPatternsPath(string? hyphenationPatternsPath) + /// + /// + /// Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern file. + /// This path must be absolute or relative to the config location. Only FOP v1.2 compatible files are supported. + /// + /// + public HyphenationDecompounderTokenFilterDescriptor HyphenationPatternsPath(string hyphenationPatternsPath) { HyphenationPatternsPathValue = hyphenationPatternsPath; return Self; } + /// + /// + /// Maximum subword character length. Longer subword tokens are excluded from the output. Defaults to 15. + /// + /// public HyphenationDecompounderTokenFilterDescriptor MaxSubwordSize(int? maxSubwordSize) { MaxSubwordSizeValue = maxSubwordSize; return Self; } + /// + /// + /// Minimum subword character length. Shorter subword tokens are excluded from the output. Defaults to 2. + /// + /// public HyphenationDecompounderTokenFilterDescriptor MinSubwordSize(int? minSubwordSize) { MinSubwordSizeValue = minSubwordSize; return Self; } + /// + /// + /// Minimum word character length. Shorter word tokens are excluded from the output. Defaults to 5. + /// + /// public HyphenationDecompounderTokenFilterDescriptor MinWordSize(int? minWordSize) { MinWordSizeValue = minWordSize; return Self; } + /// + /// + /// If true, do not allow overlapping tokens. Defaults to false. + /// + /// + public HyphenationDecompounderTokenFilterDescriptor NoOverlappingMatches(bool? noOverlappingMatches = true) + { + NoOverlappingMatchesValue = noOverlappingMatches; + return Self; + } + + /// + /// + /// If true, do not match sub tokens in tokens that are in the word list. Defaults to false. + /// + /// + public HyphenationDecompounderTokenFilterDescriptor NoSubMatches(bool? noSubMatches = true) + { + NoSubMatchesValue = noSubMatches; + return Self; + } + + /// + /// + /// If true, only include the longest matching subword. Defaults to false. + /// + /// public HyphenationDecompounderTokenFilterDescriptor OnlyLongestMatch(bool? onlyLongestMatch = true) { OnlyLongestMatchValue = onlyLongestMatch; @@ -104,12 +215,25 @@ public HyphenationDecompounderTokenFilterDescriptor Version(string? version) return Self; } + /// + /// + /// A list of subwords to look for in the token stream. If found, the subword is included in the token output. + /// Either this parameter or word_list_path must be specified. + /// + /// public HyphenationDecompounderTokenFilterDescriptor WordList(ICollection? wordList) { WordListValue = wordList; return Self; } + /// + /// + /// Path to a file that contains a list of subwords to find in the token stream. If found, the subword is included in the token output. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// Either this parameter or word_list must be specified. + /// + /// public HyphenationDecompounderTokenFilterDescriptor WordListPath(string? wordListPath) { WordListPathValue = wordListPath; @@ -119,12 +243,8 @@ public HyphenationDecompounderTokenFilterDescriptor WordListPath(string? wordLis protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (!string.IsNullOrEmpty(HyphenationPatternsPathValue)) - { - writer.WritePropertyName("hyphenation_patterns_path"); - writer.WriteStringValue(HyphenationPatternsPathValue); - } - + writer.WritePropertyName("hyphenation_patterns_path"); + writer.WriteStringValue(HyphenationPatternsPathValue); if (MaxSubwordSizeValue.HasValue) { writer.WritePropertyName("max_subword_size"); @@ -143,6 +263,18 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteNumberValue(MinWordSizeValue.Value); } + if (NoOverlappingMatchesValue.HasValue) + { + writer.WritePropertyName("no_overlapping_matches"); + writer.WriteBooleanValue(NoOverlappingMatchesValue.Value); + } + + if (NoSubMatchesValue.HasValue) + { + writer.WritePropertyName("no_sub_matches"); + writer.WriteBooleanValue(NoSubMatchesValue.Value); + } + if (OnlyLongestMatchValue.HasValue) { writer.WritePropertyName("only_longest_match"); @@ -178,6 +310,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o MaxSubwordSize = MaxSubwordSizeValue, MinSubwordSize = MinSubwordSizeValue, MinWordSize = MinWordSizeValue, + NoOverlappingMatches = NoOverlappingMatchesValue, + NoSubMatches = NoSubMatchesValue, OnlyLongestMatch = OnlyLongestMatchValue, Version = VersionValue, WordList = WordListValue, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs index c1e72a28c51..c53341e5a29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IcuNormalizationCharFilter.g.cs @@ -37,6 +37,8 @@ public sealed partial class IcuNormalizationCharFilter : ICharFilter [JsonInclude, JsonPropertyName("type")] public string Type => "icu_normalizer"; + [JsonInclude, JsonPropertyName("unicode_set_filter")] + public string? UnicodeSetFilter { get; set; } [JsonInclude, JsonPropertyName("version")] public string? Version { get; set; } } @@ -51,6 +53,7 @@ public IcuNormalizationCharFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationMode? ModeValue { get; set; } private Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationType? NameValue { get; set; } + private string? UnicodeSetFilterValue { get; set; } private string? VersionValue { get; set; } public IcuNormalizationCharFilterDescriptor Mode(Elastic.Clients.Elasticsearch.Analysis.IcuNormalizationMode? mode) @@ -65,6 +68,12 @@ public IcuNormalizationCharFilterDescriptor Name(Elastic.Clients.Elasticsearch.A return Self; } + public IcuNormalizationCharFilterDescriptor UnicodeSetFilter(string? unicodeSetFilter) + { + UnicodeSetFilterValue = unicodeSetFilter; + return Self; + } + public IcuNormalizationCharFilterDescriptor Version(string? version) { VersionValue = version; @@ -88,6 +97,12 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("type"); writer.WriteStringValue("icu_normalizer"); + if (!string.IsNullOrEmpty(UnicodeSetFilterValue)) + { + writer.WritePropertyName("unicode_set_filter"); + writer.WriteStringValue(UnicodeSetFilterValue); + } + if (!string.IsNullOrEmpty(VersionValue)) { writer.WritePropertyName("version"); @@ -101,6 +116,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o { Mode = ModeValue, Name = NameValue, + UnicodeSetFilter = UnicodeSetFilterValue, Version = VersionValue }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..b18ff370975 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndicNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class IndicNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "indic_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class IndicNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal IndicNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public IndicNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public IndicNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("indic_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + IndicNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs index a970bc92251..e9c4cd734af 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IndonesianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class IndonesianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public IndonesianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public IndonesianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public IndonesianAnalyzerDescriptor StemExclusion(ICollection? stemExclu return Self; } - public IndonesianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public IndonesianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs index eb1d2959527..233ab46c39b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/IrishAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class IrishAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public IrishAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public IrishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public IrishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) return Self; } - public IrishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public IrishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs index f3c6ac186c8..9ec61ff6ca8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ItalianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class ItalianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public ItalianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public ItalianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public ItalianAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public ItalianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public ItalianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs new file mode 100644 index 00000000000..920c1e95a39 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/JaStopTokenFilter.g.cs @@ -0,0 +1,90 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class JaStopTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("stopwords")] + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "ja_stop"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class JaStopTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal JaStopTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public JaStopTokenFilterDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } + private string? VersionValue { get; set; } + + public JaStopTokenFilterDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) + { + StopwordsValue = stopwords; + return Self; + } + + public JaStopTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (StopwordsValue is not null) + { + writer.WritePropertyName("stopwords"); + JsonSerializer.Serialize(writer, StopwordsValue, options); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("ja_stop"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + JaStopTokenFilter IBuildableDescriptor.Build() => new() + { + Stopwords = StopwordsValue, + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs index 3f92d59e42c..d8cc2724484 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs @@ -29,14 +29,24 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class KeepTypesTokenFilter : ITokenFilter { + /// + /// + /// Indicates whether to keep or remove the specified token types. + /// + /// [JsonInclude, JsonPropertyName("mode")] public Elastic.Clients.Elasticsearch.Analysis.KeepTypesMode? Mode { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "keep_types"; + /// + /// + /// List of token types to keep or remove. + /// + /// [JsonInclude, JsonPropertyName("types")] - public ICollection? Types { get; set; } + public ICollection Types { get; set; } [JsonInclude, JsonPropertyName("version")] public string? Version { get; set; } } @@ -50,16 +60,26 @@ public KeepTypesTokenFilterDescriptor() : base() } private Elastic.Clients.Elasticsearch.Analysis.KeepTypesMode? ModeValue { get; set; } - private ICollection? TypesValue { get; set; } + private ICollection TypesValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Indicates whether to keep or remove the specified token types. + /// + /// public KeepTypesTokenFilterDescriptor Mode(Elastic.Clients.Elasticsearch.Analysis.KeepTypesMode? mode) { ModeValue = mode; return Self; } - public KeepTypesTokenFilterDescriptor Types(ICollection? types) + /// + /// + /// List of token types to keep or remove. + /// + /// + public KeepTypesTokenFilterDescriptor Types(ICollection types) { TypesValue = types; return Self; @@ -82,12 +102,8 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WritePropertyName("type"); writer.WriteStringValue("keep_types"); - if (TypesValue is not null) - { - writer.WritePropertyName("types"); - JsonSerializer.Serialize(writer, TypesValue, options); - } - + writer.WritePropertyName("types"); + JsonSerializer.Serialize(writer, TypesValue, options); if (!string.IsNullOrEmpty(VersionValue)) { writer.WritePropertyName("version"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs index 6e78e056980..529f866d850 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs @@ -29,10 +29,30 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class KeepWordsTokenFilter : ITokenFilter { + /// + /// + /// List of words to keep. Only tokens that match words in this list are included in the output. + /// Either this parameter or keep_words_path must be specified. + /// + /// [JsonInclude, JsonPropertyName("keep_words")] public ICollection? KeepWords { get; set; } + + /// + /// + /// If true, lowercase all keep words. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("keep_words_case")] public bool? KeepWordsCase { get; set; } + + /// + /// + /// Path to a file that contains a list of words to keep. Only tokens that match words in this list are included in the output. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break. + /// Either this parameter or keep_words must be specified. + /// + /// [JsonInclude, JsonPropertyName("keep_words_path")] public string? KeepWordsPath { get; set; } @@ -56,18 +76,36 @@ public KeepWordsTokenFilterDescriptor() : base() private string? KeepWordsPathValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// List of words to keep. Only tokens that match words in this list are included in the output. + /// Either this parameter or keep_words_path must be specified. + /// + /// public KeepWordsTokenFilterDescriptor KeepWords(ICollection? keepWords) { KeepWordsValue = keepWords; return Self; } + /// + /// + /// If true, lowercase all keep words. Defaults to false. + /// + /// public KeepWordsTokenFilterDescriptor KeepWordsCase(bool? keepWordsCase = true) { KeepWordsCaseValue = keepWordsCase; return Self; } + /// + /// + /// Path to a file that contains a list of words to keep. Only tokens that match words in this list are included in the output. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break. + /// Either this parameter or keep_words must be specified. + /// + /// public KeepWordsTokenFilterDescriptor KeepWordsPath(string? keepWordsPath) { KeepWordsPathValue = keepWordsPath; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs index 91a70863b7f..e6717da7d20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs @@ -29,13 +29,40 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class KeywordMarkerTokenFilter : ITokenFilter { + /// + /// + /// If true, matching for the keywords and keywords_path parameters ignores letter case. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("ignore_case")] public bool? IgnoreCase { get; set; } + + /// + /// + /// Array of keywords. Tokens that match these keywords are not stemmed. + /// This parameter, keywords_path, or keywords_pattern must be specified. You cannot specify this parameter and keywords_pattern. + /// + /// [JsonInclude, JsonPropertyName("keywords")] [SingleOrManyCollectionConverter(typeof(string))] public ICollection? Keywords { get; set; } + + /// + /// + /// Path to a file that contains a list of keywords. Tokens that match these keywords are not stemmed. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break. + /// This parameter, keywords, or keywords_pattern must be specified. You cannot specify this parameter and keywords_pattern. + /// + /// [JsonInclude, JsonPropertyName("keywords_path")] public string? KeywordsPath { get; set; } + + /// + /// + /// Java regular expression used to match tokens. Tokens that match this expression are marked as keywords and not stemmed. + /// This parameter, keywords, or keywords_path must be specified. You cannot specify this parameter and keywords or keywords_pattern. + /// + /// [JsonInclude, JsonPropertyName("keywords_pattern")] public string? KeywordsPattern { get; set; } @@ -60,24 +87,48 @@ public KeywordMarkerTokenFilterDescriptor() : base() private string? KeywordsPatternValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, matching for the keywords and keywords_path parameters ignores letter case. Defaults to false. + /// + /// public KeywordMarkerTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) { IgnoreCaseValue = ignoreCase; return Self; } + /// + /// + /// Array of keywords. Tokens that match these keywords are not stemmed. + /// This parameter, keywords_path, or keywords_pattern must be specified. You cannot specify this parameter and keywords_pattern. + /// + /// public KeywordMarkerTokenFilterDescriptor Keywords(ICollection? keywords) { KeywordsValue = keywords; return Self; } + /// + /// + /// Path to a file that contains a list of keywords. Tokens that match these keywords are not stemmed. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break. + /// This parameter, keywords, or keywords_pattern must be specified. You cannot specify this parameter and keywords_pattern. + /// + /// public KeywordMarkerTokenFilterDescriptor KeywordsPath(string? keywordsPath) { KeywordsPathValue = keywordsPath; return Self; } + /// + /// + /// Java regular expression used to match tokens. Tokens that match this expression are marked as keywords and not stemmed. + /// This parameter, keywords, or keywords_path must be specified. You cannot specify this parameter and keywords or keywords_pattern. + /// + /// public KeywordMarkerTokenFilterDescriptor KeywordsPattern(string? keywordsPattern) { KeywordsPatternValue = keywordsPattern; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs new file mode 100644 index 00000000000..c6143a08cb9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordRepeatTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class KeywordRepeatTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "keyword_repeat"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class KeywordRepeatTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal KeywordRepeatTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public KeywordRepeatTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public KeywordRepeatTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("keyword_repeat"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + KeywordRepeatTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs index 760fd6484b5..c4e16af4289 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LatvianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class LatvianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public LatvianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public LatvianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public LatvianAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public LatvianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public LatvianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs index c17c99012b9..770d92e6a02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LengthTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class LengthTokenFilter : ITokenFilter { + /// + /// + /// Maximum character length of a token. Longer tokens are excluded from the output. Defaults to Integer.MAX_VALUE, which is 2^31-1 or 2147483647. + /// + /// [JsonInclude, JsonPropertyName("max")] public int? Max { get; set; } + + /// + /// + /// Minimum character length of a token. Shorter tokens are excluded from the output. Defaults to 0. + /// + /// [JsonInclude, JsonPropertyName("min")] public int? Min { get; set; } @@ -53,12 +64,22 @@ public LengthTokenFilterDescriptor() : base() private int? MinValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Maximum character length of a token. Longer tokens are excluded from the output. Defaults to Integer.MAX_VALUE, which is 2^31-1 or 2147483647. + /// + /// public LengthTokenFilterDescriptor Max(int? max) { MaxValue = max; return Self; } + /// + /// + /// Minimum character length of a token. Shorter tokens are excluded from the output. Defaults to 0. + /// + /// public LengthTokenFilterDescriptor Min(int? min) { MinValue = min; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs index 3f1cce4ecc5..937697f794d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LimitTokenCountTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class LimitTokenCountTokenFilter : ITokenFilter { + /// + /// + /// If true, the limit filter exhausts the token stream, even if the max_token_count has already been reached. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("consume_all_tokens")] public bool? ConsumeAllTokens { get; set; } + + /// + /// + /// Maximum number of tokens to keep. Once this limit is reached, any remaining tokens are excluded from the output. Defaults to 1. + /// + /// [JsonInclude, JsonPropertyName("max_token_count")] public int? MaxTokenCount { get; set; } @@ -53,12 +64,22 @@ public LimitTokenCountTokenFilterDescriptor() : base() private int? MaxTokenCountValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, the limit filter exhausts the token stream, even if the max_token_count has already been reached. Defaults to false. + /// + /// public LimitTokenCountTokenFilterDescriptor ConsumeAllTokens(bool? consumeAllTokens = true) { ConsumeAllTokensValue = consumeAllTokens; return Self; } + /// + /// + /// Maximum number of tokens to keep. Once this limit is reached, any remaining tokens are excluded from the output. Defaults to 1. + /// + /// public LimitTokenCountTokenFilterDescriptor MaxTokenCount(int? maxTokenCount) { MaxTokenCountValue = maxTokenCount; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs index 4a5f774ff5d..a26c64de6ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LithuanianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class LithuanianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public LithuanianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public LithuanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public LithuanianAnalyzerDescriptor StemExclusion(ICollection? stemExclu return Self; } - public LithuanianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public LithuanianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs index cdf9aff0505..c48d028542a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LowercaseTokenFilter.g.cs @@ -29,8 +29,13 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class LowercaseTokenFilter : ITokenFilter { + /// + /// + /// Language-specific lowercase token filter to use. + /// + /// [JsonInclude, JsonPropertyName("language")] - public string? Language { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.LowercaseTokenFilterLanguages? Language { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "lowercase"; @@ -47,10 +52,15 @@ public LowercaseTokenFilterDescriptor() : base() { } - private string? LanguageValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.LowercaseTokenFilterLanguages? LanguageValue { get; set; } private string? VersionValue { get; set; } - public LowercaseTokenFilterDescriptor Language(string? language) + /// + /// + /// Language-specific lowercase token filter to use. + /// + /// + public LowercaseTokenFilterDescriptor Language(Elastic.Clients.Elasticsearch.Analysis.LowercaseTokenFilterLanguages? language) { LanguageValue = language; return Self; @@ -65,10 +75,10 @@ public LowercaseTokenFilterDescriptor Version(string? version) protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (!string.IsNullOrEmpty(LanguageValue)) + if (LanguageValue is not null) { writer.WritePropertyName("language"); - writer.WriteStringValue(LanguageValue); + JsonSerializer.Serialize(writer, LanguageValue, options); } writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs new file mode 100644 index 00000000000..0104cf49223 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MinHashTokenFilter.g.cs @@ -0,0 +1,183 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class MinHashTokenFilter : ITokenFilter +{ + /// + /// + /// Number of buckets to which hashes are assigned. Defaults to 512. + /// + /// + [JsonInclude, JsonPropertyName("bucket_count")] + public int? BucketCount { get; set; } + + /// + /// + /// Number of ways to hash each token in the stream. Defaults to 1. + /// + /// + [JsonInclude, JsonPropertyName("hash_count")] + public int? HashCount { get; set; } + + /// + /// + /// Number of hashes to keep from each bucket. Defaults to 1. + /// Hashes are retained by ascending size, starting with the bucket’s smallest hash first. + /// + /// + [JsonInclude, JsonPropertyName("hash_set_size")] + public int? HashSetSize { get; set; } + + [JsonInclude, JsonPropertyName("type")] + public string Type => "min_hash"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } + + /// + /// + /// If true, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if the hash_set_size is 1. If the bucket_count argument is greater than 1, this parameter defaults to true. Otherwise, this parameter defaults to false. + /// + /// + [JsonInclude, JsonPropertyName("with_rotation")] + public bool? WithRotation { get; set; } +} + +public sealed partial class MinHashTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal MinHashTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public MinHashTokenFilterDescriptor() : base() + { + } + + private int? BucketCountValue { get; set; } + private int? HashCountValue { get; set; } + private int? HashSetSizeValue { get; set; } + private string? VersionValue { get; set; } + private bool? WithRotationValue { get; set; } + + /// + /// + /// Number of buckets to which hashes are assigned. Defaults to 512. + /// + /// + public MinHashTokenFilterDescriptor BucketCount(int? bucketCount) + { + BucketCountValue = bucketCount; + return Self; + } + + /// + /// + /// Number of ways to hash each token in the stream. Defaults to 1. + /// + /// + public MinHashTokenFilterDescriptor HashCount(int? hashCount) + { + HashCountValue = hashCount; + return Self; + } + + /// + /// + /// Number of hashes to keep from each bucket. Defaults to 1. + /// Hashes are retained by ascending size, starting with the bucket’s smallest hash first. + /// + /// + public MinHashTokenFilterDescriptor HashSetSize(int? hashSetSize) + { + HashSetSizeValue = hashSetSize; + return Self; + } + + public MinHashTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + /// + /// + /// If true, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if the hash_set_size is 1. If the bucket_count argument is greater than 1, this parameter defaults to true. Otherwise, this parameter defaults to false. + /// + /// + public MinHashTokenFilterDescriptor WithRotation(bool? withRotation = true) + { + WithRotationValue = withRotation; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (BucketCountValue.HasValue) + { + writer.WritePropertyName("bucket_count"); + writer.WriteNumberValue(BucketCountValue.Value); + } + + if (HashCountValue.HasValue) + { + writer.WritePropertyName("hash_count"); + writer.WriteNumberValue(HashCountValue.Value); + } + + if (HashSetSizeValue.HasValue) + { + writer.WritePropertyName("hash_set_size"); + writer.WriteNumberValue(HashSetSizeValue.Value); + } + + writer.WritePropertyName("type"); + writer.WriteStringValue("min_hash"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + if (WithRotationValue.HasValue) + { + writer.WritePropertyName("with_rotation"); + writer.WriteBooleanValue(WithRotationValue.Value); + } + + writer.WriteEndObject(); + } + + MinHashTokenFilter IBuildableDescriptor.Build() => new() + { + BucketCount = BucketCountValue, + HashCount = HashCountValue, + HashSetSize = HashSetSizeValue, + Version = VersionValue, + WithRotation = WithRotationValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs index db6a3e2173d..aad979fce59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class MultiplexerTokenFilter : ITokenFilter { + /// + /// + /// A list of token filters to apply to incoming tokens. + /// + /// [JsonInclude, JsonPropertyName("filters")] public ICollection Filters { get; set; } + + /// + /// + /// If true (the default) then emit the original token in addition to the filtered tokens. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } @@ -53,12 +64,22 @@ public MultiplexerTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// A list of token filters to apply to incoming tokens. + /// + /// public MultiplexerTokenFilterDescriptor Filters(ICollection filters) { FiltersValue = filters; return Self; } + /// + /// + /// If true (the default) then emit the original token in addition to the filtered tokens. + /// + /// public MultiplexerTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs index 1748bca3edd..128e28f3db6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenFilter.g.cs @@ -29,10 +29,27 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class NGramTokenFilter : ITokenFilter { + /// + /// + /// Maximum length of characters in a gram. Defaults to 2. + /// + /// [JsonInclude, JsonPropertyName("max_gram")] public int? MaxGram { get; set; } + + /// + /// + /// Minimum length of characters in a gram. Defaults to 1. + /// + /// [JsonInclude, JsonPropertyName("min_gram")] public int? MinGram { get; set; } + + /// + /// + /// Emits original token when set to true. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } @@ -56,18 +73,33 @@ public NGramTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Maximum length of characters in a gram. Defaults to 2. + /// + /// public NGramTokenFilterDescriptor MaxGram(int? maxGram) { MaxGramValue = maxGram; return Self; } + /// + /// + /// Minimum length of characters in a gram. Defaults to 1. + /// + /// public NGramTokenFilterDescriptor MinGram(int? minGram) { MinGramValue = minGram; return Self; } + /// + /// + /// Emits original token when set to true. Defaults to false. + /// + /// public NGramTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs index f0fed1794fc..563f38e4abe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class NoriPartOfSpeechTokenFilter : ITokenFilter { + /// + /// + /// An array of part-of-speech tags that should be removed. + /// + /// [JsonInclude, JsonPropertyName("stoptags")] public ICollection? Stoptags { get; set; } @@ -50,6 +55,11 @@ public NoriPartOfSpeechTokenFilterDescriptor() : base() private ICollection? StoptagsValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// An array of part-of-speech tags that should be removed. + /// + /// public NoriPartOfSpeechTokenFilterDescriptor Stoptags(ICollection? stoptags) { StoptagsValue = stoptags; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs index 873ae454f84..6be7deb777d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NorwegianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class NorwegianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public NorwegianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public NorwegianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public NorwegianAnalyzerDescriptor StemExclusion(ICollection? stemExclus return Self; } - public NorwegianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public NorwegianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs index 90b4f9f3e43..d8bab06c457 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs @@ -36,8 +36,7 @@ public sealed partial class PatternAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("pattern")] public string Pattern { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "pattern"; @@ -57,7 +56,7 @@ public PatternAnalyzerDescriptor() : base() private string? FlagsValue { get; set; } private bool? LowercaseValue { get; set; } private string PatternValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? VersionValue { get; set; } public PatternAnalyzerDescriptor Flags(string? flags) @@ -78,7 +77,7 @@ public PatternAnalyzerDescriptor Pattern(string pattern) return Self; } - public PatternAnalyzerDescriptor Stopwords(ICollection? stopwords) + public PatternAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -110,7 +109,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs index 67f82afb636..78bc27e0785 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class PatternCaptureTokenFilter : ITokenFilter { + /// + /// + /// A list of regular expressions to match. + /// + /// [JsonInclude, JsonPropertyName("patterns")] public ICollection Patterns { get; set; } + + /// + /// + /// If set to true (the default) it will emit the original token. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } @@ -53,12 +64,22 @@ public PatternCaptureTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// A list of regular expressions to match. + /// + /// public PatternCaptureTokenFilterDescriptor Patterns(ICollection patterns) { PatternsValue = patterns; return Self; } + /// + /// + /// If set to true (the default) it will emit the original token. + /// + /// public PatternCaptureTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs index 91d325d6ee8..a865c48e709 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternReplaceTokenFilter.g.cs @@ -29,12 +29,27 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class PatternReplaceTokenFilter : ITokenFilter { + /// + /// + /// If true, all substrings matching the pattern parameter’s regular expression are replaced. If false, the filter replaces only the first matching substring in each token. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("all")] public bool? All { get; set; } - [JsonInclude, JsonPropertyName("flags")] - public string? Flags { get; set; } + + /// + /// + /// Regular expression, written in Java’s regular expression syntax. The filter replaces token substrings matching this pattern with the substring in the replacement parameter. + /// + /// [JsonInclude, JsonPropertyName("pattern")] public string Pattern { get; set; } + + /// + /// + /// Replacement substring. Defaults to an empty substring (""). + /// + /// [JsonInclude, JsonPropertyName("replacement")] public string? Replacement { get; set; } @@ -54,29 +69,37 @@ public PatternReplaceTokenFilterDescriptor() : base() } private bool? AllValue { get; set; } - private string? FlagsValue { get; set; } private string PatternValue { get; set; } private string? ReplacementValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, all substrings matching the pattern parameter’s regular expression are replaced. If false, the filter replaces only the first matching substring in each token. Defaults to true. + /// + /// public PatternReplaceTokenFilterDescriptor All(bool? all = true) { AllValue = all; return Self; } - public PatternReplaceTokenFilterDescriptor Flags(string? flags) - { - FlagsValue = flags; - return Self; - } - + /// + /// + /// Regular expression, written in Java’s regular expression syntax. The filter replaces token substrings matching this pattern with the substring in the replacement parameter. + /// + /// public PatternReplaceTokenFilterDescriptor Pattern(string pattern) { PatternValue = pattern; return Self; } + /// + /// + /// Replacement substring. Defaults to an empty substring (""). + /// + /// public PatternReplaceTokenFilterDescriptor Replacement(string? replacement) { ReplacementValue = replacement; @@ -98,12 +121,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteBooleanValue(AllValue.Value); } - if (!string.IsNullOrEmpty(FlagsValue)) - { - writer.WritePropertyName("flags"); - writer.WriteStringValue(FlagsValue); - } - writer.WritePropertyName("pattern"); writer.WriteStringValue(PatternValue); if (!string.IsNullOrEmpty(ReplacementValue)) @@ -126,7 +143,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o PatternReplaceTokenFilter IBuildableDescriptor.Build() => new() { All = AllValue, - Flags = FlagsValue, Pattern = PatternValue, Replacement = ReplacementValue, Version = VersionValue diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs index f889fe2782e..34b2b42a509 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class PersianAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public PersianAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public PersianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public PersianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..f41f128fcb0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PersianNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class PersianNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "persian_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class PersianNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal PersianNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public PersianNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public PersianNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("persian_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + PersianNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs index 871b8aefa64..ddcaccb3ab0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PortugueseAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class PortugueseAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public PortugueseAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public PortugueseAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public PortugueseAnalyzerDescriptor StemExclusion(ICollection? stemExclu return Self; } - public PortugueseAnalyzerDescriptor Stopwords(ICollection? stopwords) + public PortugueseAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs index c00bb8ff94f..5d40d198b59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PredicateTokenFilter.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class PredicateTokenFilter : ITokenFilter { + /// + /// + /// Script containing a condition used to filter incoming tokens. Only tokens that match this script are included in the output. + /// + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script Script { get; set; } @@ -52,6 +57,11 @@ public PredicateTokenFilterDescriptor() : base() private Action ScriptDescriptorAction { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Script containing a condition used to filter incoming tokens. Only tokens that match this script are included in the output. + /// + /// public PredicateTokenFilterDescriptor Script(Elastic.Clients.Elasticsearch.Script script) { ScriptDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs index b7b3a587660..53c11767065 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RomanianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class RomanianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public RomanianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public RomanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public RomanianAnalyzerDescriptor StemExclusion(ICollection? stemExclusi return Self; } - public RomanianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public RomanianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs index b1c60d62fb8..773e75e6dbb 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/RussianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class RussianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public RussianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public RussianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public RussianAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public RussianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public RussianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs new file mode 100644 index 00000000000..e6835628340 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianFoldingTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ScandinavianFoldingTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "scandinavian_folding"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ScandinavianFoldingTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ScandinavianFoldingTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public ScandinavianFoldingTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ScandinavianFoldingTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("scandinavian_folding"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ScandinavianFoldingTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..f1992e1bdc6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ScandinavianNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class ScandinavianNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "scandinavian_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class ScandinavianNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal ScandinavianNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public ScandinavianNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public ScandinavianNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("scandinavian_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + ScandinavianNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs index 26cfb2729d5..c9c8957be85 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class SerbianAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public SerbianAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public SerbianAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public SerbianAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public SerbianAnalyzerDescriptor Stopwords(ICollection? stopwords) + public SerbianAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..f4ffba5cf6d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SerbianNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SerbianNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "serbian_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class SerbianNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SerbianNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public SerbianNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public SerbianNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("serbian_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + SerbianNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs index 5ed8c0b8ff2..298d723bd42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ShingleTokenFilter.g.cs @@ -29,16 +29,51 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class ShingleTokenFilter : ITokenFilter { + /// + /// + /// String used in shingles as a replacement for empty positions that do not contain a token. This filler token is only used in shingles, not original unigrams. Defaults to an underscore (_). + /// + /// [JsonInclude, JsonPropertyName("filler_token")] public string? FillerToken { get; set; } + + /// + /// + /// Maximum number of tokens to concatenate when creating shingles. Defaults to 2. + /// + /// [JsonInclude, JsonPropertyName("max_shingle_size")] - public object? MaxShingleSize { get; set; } + public int? MaxShingleSize { get; set; } + + /// + /// + /// Minimum number of tokens to concatenate when creating shingles. Defaults to 2. + /// + /// [JsonInclude, JsonPropertyName("min_shingle_size")] - public object? MinShingleSize { get; set; } + public int? MinShingleSize { get; set; } + + /// + /// + /// If true, the output includes the original input tokens. If false, the output only includes shingles; the original input tokens are removed. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("output_unigrams")] public bool? OutputUnigrams { get; set; } + + /// + /// + /// If true, the output includes the original input tokens only if no shingles are produced; if shingles are produced, the output only includes shingles. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("output_unigrams_if_no_shingles")] public bool? OutputUnigramsIfNoShingles { get; set; } + + /// + /// + /// Separator used to concatenate adjacent tokens to form a shingle. Defaults to a space (" "). + /// + /// [JsonInclude, JsonPropertyName("token_separator")] public string? TokenSeparator { get; set; } @@ -58,43 +93,73 @@ public ShingleTokenFilterDescriptor() : base() } private string? FillerTokenValue { get; set; } - private object? MaxShingleSizeValue { get; set; } - private object? MinShingleSizeValue { get; set; } + private int? MaxShingleSizeValue { get; set; } + private int? MinShingleSizeValue { get; set; } private bool? OutputUnigramsValue { get; set; } private bool? OutputUnigramsIfNoShinglesValue { get; set; } private string? TokenSeparatorValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// String used in shingles as a replacement for empty positions that do not contain a token. This filler token is only used in shingles, not original unigrams. Defaults to an underscore (_). + /// + /// public ShingleTokenFilterDescriptor FillerToken(string? fillerToken) { FillerTokenValue = fillerToken; return Self; } - public ShingleTokenFilterDescriptor MaxShingleSize(object? maxShingleSize) + /// + /// + /// Maximum number of tokens to concatenate when creating shingles. Defaults to 2. + /// + /// + public ShingleTokenFilterDescriptor MaxShingleSize(int? maxShingleSize) { MaxShingleSizeValue = maxShingleSize; return Self; } - public ShingleTokenFilterDescriptor MinShingleSize(object? minShingleSize) + /// + /// + /// Minimum number of tokens to concatenate when creating shingles. Defaults to 2. + /// + /// + public ShingleTokenFilterDescriptor MinShingleSize(int? minShingleSize) { MinShingleSizeValue = minShingleSize; return Self; } + /// + /// + /// If true, the output includes the original input tokens. If false, the output only includes shingles; the original input tokens are removed. Defaults to true. + /// + /// public ShingleTokenFilterDescriptor OutputUnigrams(bool? outputUnigrams = true) { OutputUnigramsValue = outputUnigrams; return Self; } + /// + /// + /// If true, the output includes the original input tokens only if no shingles are produced; if shingles are produced, the output only includes shingles. Defaults to false. + /// + /// public ShingleTokenFilterDescriptor OutputUnigramsIfNoShingles(bool? outputUnigramsIfNoShingles = true) { OutputUnigramsIfNoShinglesValue = outputUnigramsIfNoShingles; return Self; } + /// + /// + /// Separator used to concatenate adjacent tokens to form a shingle. Defaults to a space (" "). + /// + /// public ShingleTokenFilterDescriptor TokenSeparator(string? tokenSeparator) { TokenSeparatorValue = tokenSeparator; @@ -116,16 +181,16 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(FillerTokenValue); } - if (MaxShingleSizeValue is not null) + if (MaxShingleSizeValue.HasValue) { writer.WritePropertyName("max_shingle_size"); - JsonSerializer.Serialize(writer, MaxShingleSizeValue, options); + writer.WriteNumberValue(MaxShingleSizeValue.Value); } - if (MinShingleSizeValue is not null) + if (MinShingleSizeValue.HasValue) { writer.WritePropertyName("min_shingle_size"); - JsonSerializer.Serialize(writer, MinShingleSizeValue, options); + writer.WriteNumberValue(MinShingleSizeValue.Value); } if (OutputUnigramsValue.HasValue) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs index f816558cc40..c0071eba7b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class SnowballAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("language")] public Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage Language { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "snowball"; @@ -51,7 +50,7 @@ public SnowballAnalyzerDescriptor() : base() } private Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage LanguageValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? VersionValue { get; set; } public SnowballAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage language) @@ -60,7 +59,7 @@ public SnowballAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysi return Self; } - public SnowballAnalyzerDescriptor Stopwords(ICollection? stopwords) + public SnowballAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -80,7 +79,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs index 7c4107eeac3..dc34d7fb49d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballTokenFilter.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class SnowballTokenFilter : ITokenFilter { + /// + /// + /// Controls the language used by the stemmer. + /// + /// [JsonInclude, JsonPropertyName("language")] public Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage? Language { get; set; } @@ -50,6 +55,11 @@ public SnowballTokenFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage? LanguageValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Controls the language used by the stemmer. + /// + /// public SnowballTokenFilterDescriptor Language(Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage? language) { LanguageValue = language; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs index af879465e82..97ce9cb30d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class SoraniAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public SoraniAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public SoraniAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public SoraniAnalyzerDescriptor StemExclusion(ICollection? stemExclusion return Self; } - public SoraniAnalyzerDescriptor Stopwords(ICollection? stopwords) + public SoraniAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs new file mode 100644 index 00000000000..681304c187e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SoraniNormalizationTokenFilter.g.cs @@ -0,0 +1,73 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Analysis; + +public sealed partial class SoraniNormalizationTokenFilter : ITokenFilter +{ + [JsonInclude, JsonPropertyName("type")] + public string Type => "sorani_normalization"; + + [JsonInclude, JsonPropertyName("version")] + public string? Version { get; set; } +} + +public sealed partial class SoraniNormalizationTokenFilterDescriptor : SerializableDescriptor, IBuildableDescriptor +{ + internal SoraniNormalizationTokenFilterDescriptor(Action configure) => configure.Invoke(this); + + public SoraniNormalizationTokenFilterDescriptor() : base() + { + } + + private string? VersionValue { get; set; } + + public SoraniNormalizationTokenFilterDescriptor Version(string? version) + { + VersionValue = version; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"); + writer.WriteStringValue("sorani_normalization"); + if (!string.IsNullOrEmpty(VersionValue)) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(VersionValue); + } + + writer.WriteEndObject(); + } + + SoraniNormalizationTokenFilter IBuildableDescriptor.Build() => new() + { + Version = VersionValue + }; +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs index bba23e77175..161488de21b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SpanishAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class SpanishAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public SpanishAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public SpanishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public SpanishAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public SpanishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public SpanishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs index f89bcc5f1ec..a3df0f403a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class StandardAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("max_token_length")] public int? MaxTokenLength { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "standard"; @@ -48,7 +47,7 @@ public StandardAnalyzerDescriptor() : base() } private int? MaxTokenLengthValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) { @@ -56,7 +55,7 @@ public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) return Self; } - public StandardAnalyzerDescriptor Stopwords(ICollection? stopwords) + public StandardAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -74,7 +73,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } writer.WritePropertyName("type"); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs index 51898a85c7d..8d1bb26900c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs @@ -29,8 +29,19 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class StemmerOverrideTokenFilter : ITokenFilter { + /// + /// + /// A list of mapping rules to use. + /// + /// [JsonInclude, JsonPropertyName("rules")] public ICollection? Rules { get; set; } + + /// + /// + /// A path (either relative to config location, or absolute) to a list of mappings. + /// + /// [JsonInclude, JsonPropertyName("rules_path")] public string? RulesPath { get; set; } @@ -53,12 +64,22 @@ public StemmerOverrideTokenFilterDescriptor() : base() private string? RulesPathValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// A list of mapping rules to use. + /// + /// public StemmerOverrideTokenFilterDescriptor Rules(ICollection? rules) { RulesValue = rules; return Self; } + /// + /// + /// A path (either relative to config location, or absolute) to a list of mappings. + /// + /// public StemmerOverrideTokenFilterDescriptor RulesPath(string? rulesPath) { RulesPathValue = rulesPath; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs index 9467b26a75b..690cc55e19d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class StopAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,11 +49,11 @@ public StopAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } private string? VersionValue { get; set; } - public StopAnalyzerDescriptor Stopwords(ICollection? stopwords) + public StopAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -78,7 +77,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs index d1093f2ebef..d6e2abf2495 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs @@ -29,13 +29,36 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class StopTokenFilter : ITokenFilter { + /// + /// + /// If true, stop word matching is case insensitive. For example, if true, a stop word of the matches and removes The, THE, or the. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("ignore_case")] public bool? IgnoreCase { get; set; } + + /// + /// + /// If true, the last token of a stream is removed if it’s a stop word. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("remove_trailing")] public bool? RemoveTrailing { get; set; } + + /// + /// + /// Language value, such as _arabic_ or _thai_. Defaults to _english_. + /// + /// [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } + + /// + /// + /// Path to a file that contains a list of stop words to remove. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each stop word in the file must be separated by a line break. + /// + /// [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -56,28 +79,49 @@ public StopTokenFilterDescriptor() : base() private bool? IgnoreCaseValue { get; set; } private bool? RemoveTrailingValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, stop word matching is case insensitive. For example, if true, a stop word of the matches and removes The, THE, or the. Defaults to false. + /// + /// public StopTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) { IgnoreCaseValue = ignoreCase; return Self; } + /// + /// + /// If true, the last token of a stream is removed if it’s a stop word. Defaults to true. + /// + /// public StopTokenFilterDescriptor RemoveTrailing(bool? removeTrailing = true) { RemoveTrailingValue = removeTrailing; return Self; } - public StopTokenFilterDescriptor Stopwords(ICollection? stopwords) + /// + /// + /// Language value, such as _arabic_ or _thai_. Defaults to _english_. + /// + /// + public StopTokenFilterDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; } + /// + /// + /// Path to a file that contains a list of stop words to remove. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each stop word in the file must be separated by a line break. + /// + /// public StopTokenFilterDescriptor StopwordsPath(string? stopwordsPath) { StopwordsPathValue = stopwordsPath; @@ -108,7 +152,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopWords.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopWords.g.cs new file mode 100644 index 00000000000..2f307b7678e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopWords.g.cs @@ -0,0 +1,49 @@ +// 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.Core; +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.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.Analysis; + +/// +/// +/// Language value, such as arabic or thai. Defaults to english. +/// Each language value corresponds to a predefined list of stop words in Lucene. See Stop words by language for supported language values and their stop words. +/// Also accepts an array of stop words. +/// +/// +public sealed partial class StopWords : Union> +{ + public StopWords(Elastic.Clients.Elasticsearch.Analysis.StopWordLanguage Stopwords) : base(Stopwords) + { + } + + public StopWords(IReadOnlyCollection Stopwords) : base(Stopwords) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs index 1158c84638a..8cd8c96158f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SwedishAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class SwedishAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public SwedishAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public SwedishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public SwedishAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public SwedishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public SwedishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs index 551835d00fa..7e1963b1b61 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs @@ -29,24 +29,62 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class SynonymGraphTokenFilter : ITokenFilter { + /// + /// + /// Expands definitions for equivalent synonym rules. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("expand")] public bool? Expand { get; set; } + + /// + /// + /// Sets the synonym rules format. + /// + /// [JsonInclude, JsonPropertyName("format")] public Elastic.Clients.Elasticsearch.Analysis.SynonymFormat? Format { get; set; } + + /// + /// + /// If true ignores errors while parsing the synonym rules. It is important to note that only those synonym rules which cannot get parsed are ignored. Defaults to the value of the updateable setting. + /// + /// [JsonInclude, JsonPropertyName("lenient")] public bool? Lenient { get; set; } + + /// + /// + /// Used to define inline synonyms. + /// + /// [JsonInclude, JsonPropertyName("synonyms")] public ICollection? Synonyms { get; set; } + + /// + /// + /// Used to provide a synonym file. This path must be absolute or relative to the config location. + /// + /// [JsonInclude, JsonPropertyName("synonyms_path")] public string? SynonymsPath { get; set; } + + /// + /// + /// Provide a synonym set created via Synonyms Management APIs. + /// + /// [JsonInclude, JsonPropertyName("synonyms_set")] public string? SynonymsSet { get; set; } - [JsonInclude, JsonPropertyName("tokenizer")] - public string? Tokenizer { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "synonym_graph"; + /// + /// + /// If true allows reloading search analyzers to pick up changes to synonym files. Only to be used for search analyzers. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("updateable")] public bool? Updateable { get; set; } [JsonInclude, JsonPropertyName("version")] @@ -67,52 +105,80 @@ public SynonymGraphTokenFilterDescriptor() : base() private ICollection? SynonymsValue { get; set; } private string? SynonymsPathValue { get; set; } private string? SynonymsSetValue { get; set; } - private string? TokenizerValue { get; set; } private bool? UpdateableValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Expands definitions for equivalent synonym rules. Defaults to true. + /// + /// public SynonymGraphTokenFilterDescriptor Expand(bool? expand = true) { ExpandValue = expand; return Self; } + /// + /// + /// Sets the synonym rules format. + /// + /// public SynonymGraphTokenFilterDescriptor Format(Elastic.Clients.Elasticsearch.Analysis.SynonymFormat? format) { FormatValue = format; return Self; } + /// + /// + /// If true ignores errors while parsing the synonym rules. It is important to note that only those synonym rules which cannot get parsed are ignored. Defaults to the value of the updateable setting. + /// + /// public SynonymGraphTokenFilterDescriptor Lenient(bool? lenient = true) { LenientValue = lenient; return Self; } + /// + /// + /// Used to define inline synonyms. + /// + /// public SynonymGraphTokenFilterDescriptor Synonyms(ICollection? synonyms) { SynonymsValue = synonyms; return Self; } + /// + /// + /// Used to provide a synonym file. This path must be absolute or relative to the config location. + /// + /// public SynonymGraphTokenFilterDescriptor SynonymsPath(string? synonymsPath) { SynonymsPathValue = synonymsPath; return Self; } + /// + /// + /// Provide a synonym set created via Synonyms Management APIs. + /// + /// public SynonymGraphTokenFilterDescriptor SynonymsSet(string? synonymsSet) { SynonymsSetValue = synonymsSet; return Self; } - public SynonymGraphTokenFilterDescriptor Tokenizer(string? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - + /// + /// + /// If true allows reloading search analyzers to pick up changes to synonym files. Only to be used for search analyzers. Defaults to false. + /// + /// public SynonymGraphTokenFilterDescriptor Updateable(bool? updateable = true) { UpdateableValue = updateable; @@ -164,12 +230,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SynonymsSetValue); } - if (!string.IsNullOrEmpty(TokenizerValue)) - { - writer.WritePropertyName("tokenizer"); - writer.WriteStringValue(TokenizerValue); - } - writer.WritePropertyName("type"); writer.WriteStringValue("synonym_graph"); if (UpdateableValue.HasValue) @@ -195,7 +255,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Synonyms = SynonymsValue, SynonymsPath = SynonymsPathValue, SynonymsSet = SynonymsSetValue, - Tokenizer = TokenizerValue, Updateable = UpdateableValue, Version = VersionValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs index daf926adadd..255d30b86ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs @@ -29,24 +29,62 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class SynonymTokenFilter : ITokenFilter { + /// + /// + /// Expands definitions for equivalent synonym rules. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("expand")] public bool? Expand { get; set; } + + /// + /// + /// Sets the synonym rules format. + /// + /// [JsonInclude, JsonPropertyName("format")] public Elastic.Clients.Elasticsearch.Analysis.SynonymFormat? Format { get; set; } + + /// + /// + /// If true ignores errors while parsing the synonym rules. It is important to note that only those synonym rules which cannot get parsed are ignored. Defaults to the value of the updateable setting. + /// + /// [JsonInclude, JsonPropertyName("lenient")] public bool? Lenient { get; set; } + + /// + /// + /// Used to define inline synonyms. + /// + /// [JsonInclude, JsonPropertyName("synonyms")] public ICollection? Synonyms { get; set; } + + /// + /// + /// Used to provide a synonym file. This path must be absolute or relative to the config location. + /// + /// [JsonInclude, JsonPropertyName("synonyms_path")] public string? SynonymsPath { get; set; } + + /// + /// + /// Provide a synonym set created via Synonyms Management APIs. + /// + /// [JsonInclude, JsonPropertyName("synonyms_set")] public string? SynonymsSet { get; set; } - [JsonInclude, JsonPropertyName("tokenizer")] - public string? Tokenizer { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "synonym"; + /// + /// + /// If true allows reloading search analyzers to pick up changes to synonym files. Only to be used for search analyzers. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("updateable")] public bool? Updateable { get; set; } [JsonInclude, JsonPropertyName("version")] @@ -67,52 +105,80 @@ public SynonymTokenFilterDescriptor() : base() private ICollection? SynonymsValue { get; set; } private string? SynonymsPathValue { get; set; } private string? SynonymsSetValue { get; set; } - private string? TokenizerValue { get; set; } private bool? UpdateableValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Expands definitions for equivalent synonym rules. Defaults to true. + /// + /// public SynonymTokenFilterDescriptor Expand(bool? expand = true) { ExpandValue = expand; return Self; } + /// + /// + /// Sets the synonym rules format. + /// + /// public SynonymTokenFilterDescriptor Format(Elastic.Clients.Elasticsearch.Analysis.SynonymFormat? format) { FormatValue = format; return Self; } + /// + /// + /// If true ignores errors while parsing the synonym rules. It is important to note that only those synonym rules which cannot get parsed are ignored. Defaults to the value of the updateable setting. + /// + /// public SynonymTokenFilterDescriptor Lenient(bool? lenient = true) { LenientValue = lenient; return Self; } + /// + /// + /// Used to define inline synonyms. + /// + /// public SynonymTokenFilterDescriptor Synonyms(ICollection? synonyms) { SynonymsValue = synonyms; return Self; } + /// + /// + /// Used to provide a synonym file. This path must be absolute or relative to the config location. + /// + /// public SynonymTokenFilterDescriptor SynonymsPath(string? synonymsPath) { SynonymsPathValue = synonymsPath; return Self; } + /// + /// + /// Provide a synonym set created via Synonyms Management APIs. + /// + /// public SynonymTokenFilterDescriptor SynonymsSet(string? synonymsSet) { SynonymsSetValue = synonymsSet; return Self; } - public SynonymTokenFilterDescriptor Tokenizer(string? tokenizer) - { - TokenizerValue = tokenizer; - return Self; - } - + /// + /// + /// If true allows reloading search analyzers to pick up changes to synonym files. Only to be used for search analyzers. Defaults to false. + /// + /// public SynonymTokenFilterDescriptor Updateable(bool? updateable = true) { UpdateableValue = updateable; @@ -164,12 +230,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o writer.WriteStringValue(SynonymsSetValue); } - if (!string.IsNullOrEmpty(TokenizerValue)) - { - writer.WritePropertyName("tokenizer"); - writer.WriteStringValue(TokenizerValue); - } - writer.WritePropertyName("type"); writer.WriteStringValue("synonym"); if (UpdateableValue.HasValue) @@ -195,7 +255,6 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o Synonyms = SynonymsValue, SynonymsPath = SynonymsPathValue, SynonymsSet = SynonymsSetValue, - Tokenizer = TokenizerValue, Updateable = UpdateableValue, Version = VersionValue }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs index 6ce5aceb322..2db59757233 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ThaiAnalyzer.g.cs @@ -30,8 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class ThaiAnalyzer : IAnalyzer { [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -47,10 +46,10 @@ public ThaiAnalyzerDescriptor() : base() { } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } - public ThaiAnalyzerDescriptor Stopwords(ICollection? stopwords) + public ThaiAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -68,7 +67,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TokenFilters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TokenFilters.g.cs index 2fa0d6a043c..22db34e9c7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TokenFilters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TokenFilters.g.cs @@ -66,15 +66,33 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) { } + public TokenFiltersDescriptor Apostrophe(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor Apostrophe(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor Apostrophe(string tokenFilterName, ApostropheTokenFilter apostropheTokenFilter) => AssignVariant(tokenFilterName, apostropheTokenFilter); + public TokenFiltersDescriptor ArabicNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor ArabicNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor ArabicNormalization(string tokenFilterName, ArabicNormalizationTokenFilter arabicNormalizationTokenFilter) => AssignVariant(tokenFilterName, arabicNormalizationTokenFilter); public TokenFiltersDescriptor AsciiFolding(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor AsciiFolding(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor AsciiFolding(string tokenFilterName, AsciiFoldingTokenFilter asciiFoldingTokenFilter) => AssignVariant(tokenFilterName, asciiFoldingTokenFilter); + public TokenFiltersDescriptor CjkBigram(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor CjkBigram(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor CjkBigram(string tokenFilterName, CjkBigramTokenFilter cjkBigramTokenFilter) => AssignVariant(tokenFilterName, cjkBigramTokenFilter); + public TokenFiltersDescriptor CjkWidth(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor CjkWidth(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor CjkWidth(string tokenFilterName, CjkWidthTokenFilter cjkWidthTokenFilter) => AssignVariant(tokenFilterName, cjkWidthTokenFilter); + public TokenFiltersDescriptor Classic(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor Classic(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor Classic(string tokenFilterName, ClassicTokenFilter classicTokenFilter) => AssignVariant(tokenFilterName, classicTokenFilter); public TokenFiltersDescriptor CommonGrams(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor CommonGrams(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor CommonGrams(string tokenFilterName, CommonGramsTokenFilter commonGramsTokenFilter) => AssignVariant(tokenFilterName, commonGramsTokenFilter); public TokenFiltersDescriptor Condition(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Condition(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Condition(string tokenFilterName, ConditionTokenFilter conditionTokenFilter) => AssignVariant(tokenFilterName, conditionTokenFilter); + public TokenFiltersDescriptor DecimalDigit(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor DecimalDigit(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor DecimalDigit(string tokenFilterName, DecimalDigitTokenFilter decimalDigitTokenFilter) => AssignVariant(tokenFilterName, decimalDigitTokenFilter); public TokenFiltersDescriptor DelimitedPayload(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor DelimitedPayload(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor DelimitedPayload(string tokenFilterName, DelimitedPayloadTokenFilter delimitedPayloadTokenFilter) => AssignVariant(tokenFilterName, delimitedPayloadTokenFilter); @@ -90,6 +108,15 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) public TokenFiltersDescriptor Fingerprint(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Fingerprint(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Fingerprint(string tokenFilterName, FingerprintTokenFilter fingerprintTokenFilter) => AssignVariant(tokenFilterName, fingerprintTokenFilter); + public TokenFiltersDescriptor FlattenGraph(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor FlattenGraph(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor FlattenGraph(string tokenFilterName, FlattenGraphTokenFilter flattenGraphTokenFilter) => AssignVariant(tokenFilterName, flattenGraphTokenFilter); + public TokenFiltersDescriptor GermanNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor GermanNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor GermanNormalization(string tokenFilterName, GermanNormalizationTokenFilter germanNormalizationTokenFilter) => AssignVariant(tokenFilterName, germanNormalizationTokenFilter); + public TokenFiltersDescriptor HindiNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor HindiNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor HindiNormalization(string tokenFilterName, HindiNormalizationTokenFilter hindiNormalizationTokenFilter) => AssignVariant(tokenFilterName, hindiNormalizationTokenFilter); public TokenFiltersDescriptor Hunspell(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Hunspell(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Hunspell(string tokenFilterName, HunspellTokenFilter hunspellTokenFilter) => AssignVariant(tokenFilterName, hunspellTokenFilter); @@ -108,6 +135,12 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) public TokenFiltersDescriptor IcuTransform(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor IcuTransform(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor IcuTransform(string tokenFilterName, IcuTransformTokenFilter icuTransformTokenFilter) => AssignVariant(tokenFilterName, icuTransformTokenFilter); + public TokenFiltersDescriptor IndicNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor IndicNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor IndicNormalization(string tokenFilterName, IndicNormalizationTokenFilter indicNormalizationTokenFilter) => AssignVariant(tokenFilterName, indicNormalizationTokenFilter); + public TokenFiltersDescriptor JaStop(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor JaStop(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor JaStop(string tokenFilterName, JaStopTokenFilter jaStopTokenFilter) => AssignVariant(tokenFilterName, jaStopTokenFilter); public TokenFiltersDescriptor KeepTypes(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor KeepTypes(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor KeepTypes(string tokenFilterName, KeepTypesTokenFilter keepTypesTokenFilter) => AssignVariant(tokenFilterName, keepTypesTokenFilter); @@ -117,6 +150,9 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) public TokenFiltersDescriptor KeywordMarker(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor KeywordMarker(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor KeywordMarker(string tokenFilterName, KeywordMarkerTokenFilter keywordMarkerTokenFilter) => AssignVariant(tokenFilterName, keywordMarkerTokenFilter); + public TokenFiltersDescriptor KeywordRepeat(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor KeywordRepeat(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor KeywordRepeat(string tokenFilterName, KeywordRepeatTokenFilter keywordRepeatTokenFilter) => AssignVariant(tokenFilterName, keywordRepeatTokenFilter); public TokenFiltersDescriptor KStem(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor KStem(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor KStem(string tokenFilterName, KStemTokenFilter kStemTokenFilter) => AssignVariant(tokenFilterName, kStemTokenFilter); @@ -138,6 +174,9 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) public TokenFiltersDescriptor Lowercase(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Lowercase(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Lowercase(string tokenFilterName, LowercaseTokenFilter lowercaseTokenFilter) => AssignVariant(tokenFilterName, lowercaseTokenFilter); + public TokenFiltersDescriptor MinHash(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor MinHash(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor MinHash(string tokenFilterName, MinHashTokenFilter minHashTokenFilter) => AssignVariant(tokenFilterName, minHashTokenFilter); public TokenFiltersDescriptor Multiplexer(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Multiplexer(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Multiplexer(string tokenFilterName, MultiplexerTokenFilter multiplexerTokenFilter) => AssignVariant(tokenFilterName, multiplexerTokenFilter); @@ -153,6 +192,9 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) public TokenFiltersDescriptor PatternReplace(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor PatternReplace(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor PatternReplace(string tokenFilterName, PatternReplaceTokenFilter patternReplaceTokenFilter) => AssignVariant(tokenFilterName, patternReplaceTokenFilter); + public TokenFiltersDescriptor PersianNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor PersianNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor PersianNormalization(string tokenFilterName, PersianNormalizationTokenFilter persianNormalizationTokenFilter) => AssignVariant(tokenFilterName, persianNormalizationTokenFilter); public TokenFiltersDescriptor Phonetic(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Phonetic(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Phonetic(string tokenFilterName, PhoneticTokenFilter phoneticTokenFilter) => AssignVariant(tokenFilterName, phoneticTokenFilter); @@ -168,12 +210,24 @@ public TokenFiltersDescriptor() : base(new TokenFilters()) public TokenFiltersDescriptor Reverse(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Reverse(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Reverse(string tokenFilterName, ReverseTokenFilter reverseTokenFilter) => AssignVariant(tokenFilterName, reverseTokenFilter); + public TokenFiltersDescriptor ScandinavianFolding(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor ScandinavianFolding(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor ScandinavianFolding(string tokenFilterName, ScandinavianFoldingTokenFilter scandinavianFoldingTokenFilter) => AssignVariant(tokenFilterName, scandinavianFoldingTokenFilter); + public TokenFiltersDescriptor ScandinavianNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor ScandinavianNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor ScandinavianNormalization(string tokenFilterName, ScandinavianNormalizationTokenFilter scandinavianNormalizationTokenFilter) => AssignVariant(tokenFilterName, scandinavianNormalizationTokenFilter); + public TokenFiltersDescriptor SerbianNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor SerbianNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor SerbianNormalization(string tokenFilterName, SerbianNormalizationTokenFilter serbianNormalizationTokenFilter) => AssignVariant(tokenFilterName, serbianNormalizationTokenFilter); public TokenFiltersDescriptor Shingle(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Shingle(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Shingle(string tokenFilterName, ShingleTokenFilter shingleTokenFilter) => AssignVariant(tokenFilterName, shingleTokenFilter); public TokenFiltersDescriptor Snowball(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor Snowball(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor Snowball(string tokenFilterName, SnowballTokenFilter snowballTokenFilter) => AssignVariant(tokenFilterName, snowballTokenFilter); + public TokenFiltersDescriptor SoraniNormalization(string tokenFilterName) => AssignVariant(tokenFilterName, null); + public TokenFiltersDescriptor SoraniNormalization(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); + public TokenFiltersDescriptor SoraniNormalization(string tokenFilterName, SoraniNormalizationTokenFilter soraniNormalizationTokenFilter) => AssignVariant(tokenFilterName, soraniNormalizationTokenFilter); public TokenFiltersDescriptor StemmerOverride(string tokenFilterName) => AssignVariant(tokenFilterName, null); public TokenFiltersDescriptor StemmerOverride(string tokenFilterName, Action configure) => AssignVariant(tokenFilterName, configure); public TokenFiltersDescriptor StemmerOverride(string tokenFilterName, StemmerOverrideTokenFilter stemmerOverrideTokenFilter) => AssignVariant(tokenFilterName, stemmerOverrideTokenFilter); @@ -223,12 +277,24 @@ public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, switch (type) { + case "apostrophe": + return JsonSerializer.Deserialize(ref reader, options); + case "arabic_normalization": + return JsonSerializer.Deserialize(ref reader, options); case "asciifolding": return JsonSerializer.Deserialize(ref reader, options); + case "cjk_bigram": + return JsonSerializer.Deserialize(ref reader, options); + case "cjk_width": + return JsonSerializer.Deserialize(ref reader, options); + case "classic": + return JsonSerializer.Deserialize(ref reader, options); case "common_grams": return JsonSerializer.Deserialize(ref reader, options); case "condition": return JsonSerializer.Deserialize(ref reader, options); + case "decimal_digit": + return JsonSerializer.Deserialize(ref reader, options); case "delimited_payload": return JsonSerializer.Deserialize(ref reader, options); case "dictionary_decompounder": @@ -239,6 +305,12 @@ public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, return JsonSerializer.Deserialize(ref reader, options); case "fingerprint": return JsonSerializer.Deserialize(ref reader, options); + case "flatten_graph": + return JsonSerializer.Deserialize(ref reader, options); + case "german_normalization": + return JsonSerializer.Deserialize(ref reader, options); + case "hindi_normalization": + return JsonSerializer.Deserialize(ref reader, options); case "hunspell": return JsonSerializer.Deserialize(ref reader, options); case "hyphenation_decompounder": @@ -251,12 +323,18 @@ public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, return JsonSerializer.Deserialize(ref reader, options); case "icu_transform": return JsonSerializer.Deserialize(ref reader, options); + case "indic_normalization": + return JsonSerializer.Deserialize(ref reader, options); + case "ja_stop": + return JsonSerializer.Deserialize(ref reader, options); case "keep_types": return JsonSerializer.Deserialize(ref reader, options); case "keep": return JsonSerializer.Deserialize(ref reader, options); case "keyword_marker": return JsonSerializer.Deserialize(ref reader, options); + case "keyword_repeat": + return JsonSerializer.Deserialize(ref reader, options); case "kstem": return JsonSerializer.Deserialize(ref reader, options); case "kuromoji_part_of_speech": @@ -271,6 +349,8 @@ public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, return JsonSerializer.Deserialize(ref reader, options); case "lowercase": return JsonSerializer.Deserialize(ref reader, options); + case "min_hash": + return JsonSerializer.Deserialize(ref reader, options); case "multiplexer": return JsonSerializer.Deserialize(ref reader, options); case "ngram": @@ -281,6 +361,8 @@ public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, return JsonSerializer.Deserialize(ref reader, options); case "pattern_replace": return JsonSerializer.Deserialize(ref reader, options); + case "persian_normalization": + return JsonSerializer.Deserialize(ref reader, options); case "phonetic": return JsonSerializer.Deserialize(ref reader, options); case "porter_stem": @@ -291,10 +373,18 @@ public override ITokenFilter Read(ref Utf8JsonReader reader, Type typeToConvert, return JsonSerializer.Deserialize(ref reader, options); case "reverse": return JsonSerializer.Deserialize(ref reader, options); + case "scandinavian_folding": + return JsonSerializer.Deserialize(ref reader, options); + case "scandinavian_normalization": + return JsonSerializer.Deserialize(ref reader, options); + case "serbian_normalization": + return JsonSerializer.Deserialize(ref reader, options); case "shingle": return JsonSerializer.Deserialize(ref reader, options); case "snowball": return JsonSerializer.Deserialize(ref reader, options); + case "sorani_normalization": + return JsonSerializer.Deserialize(ref reader, options); case "stemmer_override": return JsonSerializer.Deserialize(ref reader, options); case "stemmer": @@ -333,15 +423,33 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial switch (value.Type) { + case "apostrophe": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ApostropheTokenFilter), options); + return; + case "arabic_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ArabicNormalizationTokenFilter), options); + return; case "asciifolding": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.AsciiFoldingTokenFilter), options); return; + case "cjk_bigram": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CjkBigramTokenFilter), options); + return; + case "cjk_width": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CjkWidthTokenFilter), options); + return; + case "classic": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ClassicTokenFilter), options); + return; case "common_grams": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.CommonGramsTokenFilter), options); return; case "condition": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ConditionTokenFilter), options); return; + case "decimal_digit": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.DecimalDigitTokenFilter), options); + return; case "delimited_payload": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.DelimitedPayloadTokenFilter), options); return; @@ -357,6 +465,15 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial case "fingerprint": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.FingerprintTokenFilter), options); return; + case "flatten_graph": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.FlattenGraphTokenFilter), options); + return; + case "german_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.GermanNormalizationTokenFilter), options); + return; + case "hindi_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.HindiNormalizationTokenFilter), options); + return; case "hunspell": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.HunspellTokenFilter), options); return; @@ -375,6 +492,12 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial case "icu_transform": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.IcuTransformTokenFilter), options); return; + case "indic_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.IndicNormalizationTokenFilter), options); + return; + case "ja_stop": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.JaStopTokenFilter), options); + return; case "keep_types": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.KeepTypesTokenFilter), options); return; @@ -384,6 +507,9 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial case "keyword_marker": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.KeywordMarkerTokenFilter), options); return; + case "keyword_repeat": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.KeywordRepeatTokenFilter), options); + return; case "kstem": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.KStemTokenFilter), options); return; @@ -405,6 +531,9 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial case "lowercase": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.LowercaseTokenFilter), options); return; + case "min_hash": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.MinHashTokenFilter), options); + return; case "multiplexer": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.MultiplexerTokenFilter), options); return; @@ -420,6 +549,9 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial case "pattern_replace": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PatternReplaceTokenFilter), options); return; + case "persian_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PersianNormalizationTokenFilter), options); + return; case "phonetic": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.PhoneticTokenFilter), options); return; @@ -435,12 +567,24 @@ public override void Write(Utf8JsonWriter writer, ITokenFilter value, JsonSerial case "reverse": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ReverseTokenFilter), options); return; + case "scandinavian_folding": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ScandinavianFoldingTokenFilter), options); + return; + case "scandinavian_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ScandinavianNormalizationTokenFilter), options); + return; + case "serbian_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SerbianNormalizationTokenFilter), options); + return; case "shingle": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.ShingleTokenFilter), options); return; case "snowball": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SnowballTokenFilter), options); return; + case "sorani_normalization": + JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.SoraniNormalizationTokenFilter), options); + return; case "stemmer_override": JsonSerializer.Serialize(writer, value, typeof(Elastic.Clients.Elasticsearch.Analysis.StemmerOverrideTokenFilter), options); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs index ce8dda3b294..e0e71355a95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TruncateTokenFilter.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class TruncateTokenFilter : ITokenFilter { + /// + /// + /// Character limit for each token. Tokens exceeding this limit are truncated. Defaults to 10. + /// + /// [JsonInclude, JsonPropertyName("length")] public int? Length { get; set; } @@ -50,6 +55,11 @@ public TruncateTokenFilterDescriptor() : base() private int? LengthValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// Character limit for each token. Tokens exceeding this limit are truncated. Defaults to 10. + /// + /// public TruncateTokenFilterDescriptor Length(int? length) { LengthValue = length; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs index 29aad7e4200..aa62eadebde 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/TurkishAnalyzer.g.cs @@ -32,8 +32,7 @@ public sealed partial class TurkishAnalyzer : IAnalyzer [JsonInclude, JsonPropertyName("stem_exclusion")] public ICollection? StemExclusion { get; set; } [JsonInclude, JsonPropertyName("stopwords")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? Stopwords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? Stopwords { get; set; } [JsonInclude, JsonPropertyName("stopwords_path")] public string? StopwordsPath { get; set; } @@ -50,7 +49,7 @@ public TurkishAnalyzerDescriptor() : base() } private ICollection? StemExclusionValue { get; set; } - private ICollection? StopwordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } public TurkishAnalyzerDescriptor StemExclusion(ICollection? stemExclusion) @@ -59,7 +58,7 @@ public TurkishAnalyzerDescriptor StemExclusion(ICollection? stemExclusio return Self; } - public TurkishAnalyzerDescriptor Stopwords(ICollection? stopwords) + public TurkishAnalyzerDescriptor Stopwords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopwords) { StopwordsValue = stopwords; return Self; @@ -83,7 +82,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopwordsValue is not null) { writer.WritePropertyName("stopwords"); - SingleOrManySerializationHelper.Serialize(StopwordsValue, writer, options); + JsonSerializer.Serialize(writer, StopwordsValue, options); } if (!string.IsNullOrEmpty(StopwordsPathValue)) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs index c6dc02b2ffa..fb79a67e409 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/UniqueTokenFilter.g.cs @@ -29,6 +29,11 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class UniqueTokenFilter : ITokenFilter { + /// + /// + /// If true, only remove duplicate tokens in the same position. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("only_on_same_position")] public bool? OnlyOnSamePosition { get; set; } @@ -50,6 +55,11 @@ public UniqueTokenFilterDescriptor() : base() private bool? OnlyOnSamePositionValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, only remove duplicate tokens in the same position. Defaults to false. + /// + /// public UniqueTokenFilterDescriptor OnlyOnSamePosition(bool? onlyOnSamePosition = true) { OnlyOnSamePositionValue = onlyOnSamePosition; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs index fdf70c03155..6b0c6ba445d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs @@ -29,38 +29,127 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class WordDelimiterGraphTokenFilter : ITokenFilter { + /// + /// + /// If true, the filter adjusts the offsets of split or catenated tokens to better reflect their actual position in the token stream. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("adjust_offsets")] public bool? AdjustOffsets { get; set; } + + /// + /// + /// If true, the filter produces catenated tokens for chains of alphanumeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("catenate_all")] public bool? CatenateAll { get; set; } + + /// + /// + /// If true, the filter produces catenated tokens for chains of numeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("catenate_numbers")] public bool? CatenateNumbers { get; set; } + + /// + /// + /// If true, the filter produces catenated tokens for chains of alphabetical characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("catenate_words")] public bool? CatenateWords { get; set; } + + /// + /// + /// If true, the filter includes tokens consisting of only numeric characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("generate_number_parts")] public bool? GenerateNumberParts { get; set; } + + /// + /// + /// If true, the filter includes tokens consisting of only alphabetical characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("generate_word_parts")] public bool? GenerateWordParts { get; set; } + + /// + /// + /// If true, the filter skips tokens with a keyword attribute of true. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("ignore_keywords")] public bool? IgnoreKeywords { get; set; } + + /// + /// + /// If true, the filter includes the original version of any split tokens in the output. This original version includes non-alphanumeric delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } + + /// + /// + /// Array of tokens the filter won’t split. + /// + /// [JsonInclude, JsonPropertyName("protected_words")] public ICollection? ProtectedWords { get; set; } + + /// + /// + /// Path to a file that contains a list of tokens the filter won’t split. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// + /// [JsonInclude, JsonPropertyName("protected_words_path")] public string? ProtectedWordsPath { get; set; } + + /// + /// + /// If true, the filter splits tokens at letter case transitions. For example: camelCase -> [ camel, Case ]. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("split_on_case_change")] public bool? SplitOnCaseChange { get; set; } + + /// + /// + /// If true, the filter splits tokens at letter-number transitions. For example: j2se -> [ j, 2, se ]. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("split_on_numerics")] public bool? SplitOnNumerics { get; set; } + + /// + /// + /// If true, the filter removes the English possessive ('s) from the end of each token. For example: O'Neil's -> [ O, Neil ]. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("stem_english_possessive")] public bool? StemEnglishPossessive { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "word_delimiter_graph"; + /// + /// + /// Array of custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// [JsonInclude, JsonPropertyName("type_table")] public ICollection? TypeTable { get; set; } + + /// + /// + /// Path to a file that contains custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// [JsonInclude, JsonPropertyName("type_table_path")] public string? TypeTablePath { get; set; } [JsonInclude, JsonPropertyName("version")] @@ -92,90 +181,166 @@ public WordDelimiterGraphTokenFilterDescriptor() : base() private string? TypeTablePathValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, the filter adjusts the offsets of split or catenated tokens to better reflect their actual position in the token stream. Defaults to true. + /// + /// public WordDelimiterGraphTokenFilterDescriptor AdjustOffsets(bool? adjustOffsets = true) { AdjustOffsetsValue = adjustOffsets; return Self; } + /// + /// + /// If true, the filter produces catenated tokens for chains of alphanumeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// public WordDelimiterGraphTokenFilterDescriptor CatenateAll(bool? catenateAll = true) { CatenateAllValue = catenateAll; return Self; } + /// + /// + /// If true, the filter produces catenated tokens for chains of numeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// public WordDelimiterGraphTokenFilterDescriptor CatenateNumbers(bool? catenateNumbers = true) { CatenateNumbersValue = catenateNumbers; return Self; } + /// + /// + /// If true, the filter produces catenated tokens for chains of alphabetical characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// public WordDelimiterGraphTokenFilterDescriptor CatenateWords(bool? catenateWords = true) { CatenateWordsValue = catenateWords; return Self; } + /// + /// + /// If true, the filter includes tokens consisting of only numeric characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// public WordDelimiterGraphTokenFilterDescriptor GenerateNumberParts(bool? generateNumberParts = true) { GenerateNumberPartsValue = generateNumberParts; return Self; } + /// + /// + /// If true, the filter includes tokens consisting of only alphabetical characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// public WordDelimiterGraphTokenFilterDescriptor GenerateWordParts(bool? generateWordParts = true) { GenerateWordPartsValue = generateWordParts; return Self; } + /// + /// + /// If true, the filter skips tokens with a keyword attribute of true. Defaults to false. + /// + /// public WordDelimiterGraphTokenFilterDescriptor IgnoreKeywords(bool? ignoreKeywords = true) { IgnoreKeywordsValue = ignoreKeywords; return Self; } + /// + /// + /// If true, the filter includes the original version of any split tokens in the output. This original version includes non-alphanumeric delimiters. Defaults to false. + /// + /// public WordDelimiterGraphTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; return Self; } + /// + /// + /// Array of tokens the filter won’t split. + /// + /// public WordDelimiterGraphTokenFilterDescriptor ProtectedWords(ICollection? protectedWords) { ProtectedWordsValue = protectedWords; return Self; } + /// + /// + /// Path to a file that contains a list of tokens the filter won’t split. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// + /// public WordDelimiterGraphTokenFilterDescriptor ProtectedWordsPath(string? protectedWordsPath) { ProtectedWordsPathValue = protectedWordsPath; return Self; } + /// + /// + /// If true, the filter splits tokens at letter case transitions. For example: camelCase -> [ camel, Case ]. Defaults to true. + /// + /// public WordDelimiterGraphTokenFilterDescriptor SplitOnCaseChange(bool? splitOnCaseChange = true) { SplitOnCaseChangeValue = splitOnCaseChange; return Self; } + /// + /// + /// If true, the filter splits tokens at letter-number transitions. For example: j2se -> [ j, 2, se ]. Defaults to true. + /// + /// public WordDelimiterGraphTokenFilterDescriptor SplitOnNumerics(bool? splitOnNumerics = true) { SplitOnNumericsValue = splitOnNumerics; return Self; } + /// + /// + /// If true, the filter removes the English possessive ('s) from the end of each token. For example: O'Neil's -> [ O, Neil ]. Defaults to true. + /// + /// public WordDelimiterGraphTokenFilterDescriptor StemEnglishPossessive(bool? stemEnglishPossessive = true) { StemEnglishPossessiveValue = stemEnglishPossessive; return Self; } + /// + /// + /// Array of custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// public WordDelimiterGraphTokenFilterDescriptor TypeTable(ICollection? typeTable) { TypeTableValue = typeTable; return Self; } + /// + /// + /// Path to a file that contains custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// public WordDelimiterGraphTokenFilterDescriptor TypeTablePath(string? typeTablePath) { TypeTablePathValue = typeTablePath; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs index b58d41ff412..0ea1ae506d7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs @@ -29,34 +29,111 @@ namespace Elastic.Clients.Elasticsearch.Analysis; public sealed partial class WordDelimiterTokenFilter : ITokenFilter { + /// + /// + /// If true, the filter produces catenated tokens for chains of alphanumeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("catenate_all")] public bool? CatenateAll { get; set; } + + /// + /// + /// If true, the filter produces catenated tokens for chains of numeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("catenate_numbers")] public bool? CatenateNumbers { get; set; } + + /// + /// + /// If true, the filter produces catenated tokens for chains of alphabetical characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("catenate_words")] public bool? CatenateWords { get; set; } + + /// + /// + /// If true, the filter includes tokens consisting of only numeric characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("generate_number_parts")] public bool? GenerateNumberParts { get; set; } + + /// + /// + /// If true, the filter includes tokens consisting of only alphabetical characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("generate_word_parts")] public bool? GenerateWordParts { get; set; } + + /// + /// + /// If true, the filter includes the original version of any split tokens in the output. This original version includes non-alphanumeric delimiters. Defaults to false. + /// + /// [JsonInclude, JsonPropertyName("preserve_original")] public bool? PreserveOriginal { get; set; } + + /// + /// + /// Array of tokens the filter won’t split. + /// + /// [JsonInclude, JsonPropertyName("protected_words")] public ICollection? ProtectedWords { get; set; } + + /// + /// + /// Path to a file that contains a list of tokens the filter won’t split. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// + /// [JsonInclude, JsonPropertyName("protected_words_path")] public string? ProtectedWordsPath { get; set; } + + /// + /// + /// If true, the filter splits tokens at letter case transitions. For example: camelCase -> [ camel, Case ]. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("split_on_case_change")] public bool? SplitOnCaseChange { get; set; } + + /// + /// + /// If true, the filter splits tokens at letter-number transitions. For example: j2se -> [ j, 2, se ]. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("split_on_numerics")] public bool? SplitOnNumerics { get; set; } + + /// + /// + /// If true, the filter removes the English possessive ('s) from the end of each token. For example: O'Neil's -> [ O, Neil ]. Defaults to true. + /// + /// [JsonInclude, JsonPropertyName("stem_english_possessive")] public bool? StemEnglishPossessive { get; set; } [JsonInclude, JsonPropertyName("type")] public string Type => "word_delimiter"; + /// + /// + /// Array of custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// [JsonInclude, JsonPropertyName("type_table")] public ICollection? TypeTable { get; set; } + + /// + /// + /// Path to a file that contains custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// [JsonInclude, JsonPropertyName("type_table_path")] public string? TypeTablePath { get; set; } [JsonInclude, JsonPropertyName("version")] @@ -86,78 +163,144 @@ public WordDelimiterTokenFilterDescriptor() : base() private string? TypeTablePathValue { get; set; } private string? VersionValue { get; set; } + /// + /// + /// If true, the filter produces catenated tokens for chains of alphanumeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// public WordDelimiterTokenFilterDescriptor CatenateAll(bool? catenateAll = true) { CatenateAllValue = catenateAll; return Self; } + /// + /// + /// If true, the filter produces catenated tokens for chains of numeric characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// public WordDelimiterTokenFilterDescriptor CatenateNumbers(bool? catenateNumbers = true) { CatenateNumbersValue = catenateNumbers; return Self; } + /// + /// + /// If true, the filter produces catenated tokens for chains of alphabetical characters separated by non-alphabetic delimiters. Defaults to false. + /// + /// public WordDelimiterTokenFilterDescriptor CatenateWords(bool? catenateWords = true) { CatenateWordsValue = catenateWords; return Self; } + /// + /// + /// If true, the filter includes tokens consisting of only numeric characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// public WordDelimiterTokenFilterDescriptor GenerateNumberParts(bool? generateNumberParts = true) { GenerateNumberPartsValue = generateNumberParts; return Self; } + /// + /// + /// If true, the filter includes tokens consisting of only alphabetical characters in the output. If false, the filter excludes these tokens from the output. Defaults to true. + /// + /// public WordDelimiterTokenFilterDescriptor GenerateWordParts(bool? generateWordParts = true) { GenerateWordPartsValue = generateWordParts; return Self; } + /// + /// + /// If true, the filter includes the original version of any split tokens in the output. This original version includes non-alphanumeric delimiters. Defaults to false. + /// + /// public WordDelimiterTokenFilterDescriptor PreserveOriginal(bool? preserveOriginal = true) { PreserveOriginalValue = preserveOriginal; return Self; } + /// + /// + /// Array of tokens the filter won’t split. + /// + /// public WordDelimiterTokenFilterDescriptor ProtectedWords(ICollection? protectedWords) { ProtectedWordsValue = protectedWords; return Self; } + /// + /// + /// Path to a file that contains a list of tokens the filter won’t split. + /// This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break. + /// + /// public WordDelimiterTokenFilterDescriptor ProtectedWordsPath(string? protectedWordsPath) { ProtectedWordsPathValue = protectedWordsPath; return Self; } + /// + /// + /// If true, the filter splits tokens at letter case transitions. For example: camelCase -> [ camel, Case ]. Defaults to true. + /// + /// public WordDelimiterTokenFilterDescriptor SplitOnCaseChange(bool? splitOnCaseChange = true) { SplitOnCaseChangeValue = splitOnCaseChange; return Self; } + /// + /// + /// If true, the filter splits tokens at letter-number transitions. For example: j2se -> [ j, 2, se ]. Defaults to true. + /// + /// public WordDelimiterTokenFilterDescriptor SplitOnNumerics(bool? splitOnNumerics = true) { SplitOnNumericsValue = splitOnNumerics; return Self; } + /// + /// + /// If true, the filter removes the English possessive ('s) from the end of each token. For example: O'Neil's -> [ O, Neil ]. Defaults to true. + /// + /// public WordDelimiterTokenFilterDescriptor StemEnglishPossessive(bool? stemEnglishPossessive = true) { StemEnglishPossessiveValue = stemEnglishPossessive; return Self; } + /// + /// + /// Array of custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// public WordDelimiterTokenFilterDescriptor TypeTable(ICollection? typeTable) { TypeTableValue = typeTable; return Self; } + /// + /// + /// Path to a file that contains custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters. + /// + /// public WordDelimiterTokenFilterDescriptor TypeTablePath(string? typeTablePath) { TypeTablePathValue = typeTablePath; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs new file mode 100644 index 00000000000..7ad5e2f176c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSStats.g.cs @@ -0,0 +1,57 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class CCSStats +{ + /// + /// + /// Contains remote cluster settings and metrics collected from them. + /// The keys are cluster names, and the values are per-cluster data. + /// Only present if include_remotes option is set to true. + /// + /// + [JsonInclude, JsonPropertyName("clusters")] + public IReadOnlyDictionary? Clusters { get; init; } + + /// + /// + /// Information about ES|QL cross-cluster query usage. + /// + /// + [JsonInclude, JsonPropertyName("_esql")] + public Elastic.Clients.Elasticsearch.Cluster.CCSUsageStats? Esql { get; init; } + + /// + /// + /// Information about cross-cluster search usage. + /// + /// + [JsonInclude, JsonPropertyName("_search")] + public Elastic.Clients.Elasticsearch.Cluster.CCSUsageStats Search { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs new file mode 100644 index 00000000000..ee45adcf5bc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageClusterStats.g.cs @@ -0,0 +1,55 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class CCSUsageClusterStats +{ + /// + /// + /// The total number of cross-cluster search requests for which this cluster was skipped. + /// + /// + [JsonInclude, JsonPropertyName("skipped")] + public int Skipped { get; init; } + + /// + /// + /// Statistics about the time taken to execute requests against this cluster. + /// + /// + [JsonInclude, JsonPropertyName("took")] + public Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue Took { get; init; } + + /// + /// + /// The total number of successful (not skipped) cross-cluster search requests that were executed against this cluster. This may include requests where partial results were returned, but not requests in which the cluster has been skipped entirely. + /// + /// + [JsonInclude, JsonPropertyName("total")] + public int Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs new file mode 100644 index 00000000000..eeb2f5b9a17 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageStats.g.cs @@ -0,0 +1,127 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class CCSUsageStats +{ + /// + /// + /// Statistics about the clients that executed cross-cluster search requests. The keys are the names of the clients, and the values are the number of requests that were executed by that client. Only known clients (such as kibana or elasticsearch) are counted. + /// + /// + [JsonInclude, JsonPropertyName("clients")] + public IReadOnlyDictionary Clients { get; init; } + + /// + /// + /// Statistics about the clusters that were queried in cross-cluster search requests. The keys are cluster names, and the values are per-cluster telemetry data. This also includes the local cluster itself, which uses the name (local). + /// + /// + [JsonInclude, JsonPropertyName("clusters")] + public IReadOnlyDictionary Clusters { get; init; } + + /// + /// + /// Statistics about the reasons for cross-cluster search request failures. The keys are the failure reason names and the values are the number of requests that failed for that reason. + /// + /// + [JsonInclude, JsonPropertyName("failure_reasons")] + public IReadOnlyDictionary FailureReasons { get; init; } + + /// + /// + /// The keys are the names of the search feature, and the values are the number of requests that used that feature. Single request can use more than one feature (e.g. both async and wildcard). + /// + /// + [JsonInclude, JsonPropertyName("features")] + public IReadOnlyDictionary Features { get; init; } + + /// + /// + /// The average number of remote clusters that were queried in a single cross-cluster search request. + /// + /// + [JsonInclude, JsonPropertyName("remotes_per_search_avg")] + public double RemotesPerSearchAvg { get; init; } + + /// + /// + /// The maximum number of remote clusters that were queried in a single cross-cluster search request. + /// + /// + [JsonInclude, JsonPropertyName("remotes_per_search_max")] + public int RemotesPerSearchMax { get; init; } + + /// + /// + /// The total number of cross-cluster search requests (successful or failed) that had at least one remote cluster skipped. + /// + /// + [JsonInclude, JsonPropertyName("skipped")] + public int Skipped { get; init; } + + /// + /// + /// The total number of cross-cluster search requests that have been successfully executed by the cluster. + /// + /// + [JsonInclude, JsonPropertyName("success")] + public int Success { get; init; } + + /// + /// + /// Statistics about the time taken to execute cross-cluster search requests. + /// + /// + [JsonInclude, JsonPropertyName("took")] + public Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue Took { get; init; } + + /// + /// + /// Statistics about the time taken to execute cross-cluster search requests for which the ccs_minimize_roundtrips setting was set to false. + /// + /// + [JsonInclude, JsonPropertyName("took_mrt_false")] + public Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue? TookMrtFalse { get; init; } + + /// + /// + /// Statistics about the time taken to execute cross-cluster search requests for which the ccs_minimize_roundtrips setting was set to true. + /// + /// + [JsonInclude, JsonPropertyName("took_mrt_true")] + public Elastic.Clients.Elasticsearch.Cluster.CCSUsageTimeValue? TookMrtTrue { get; init; } + + /// + /// + /// The total number of cross-cluster search requests that have been executed by the cluster. + /// + /// + [JsonInclude, JsonPropertyName("total")] + public int Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs new file mode 100644 index 00000000000..30b03c2d92c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CCSUsageTimeValue.g.cs @@ -0,0 +1,55 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class CCSUsageTimeValue +{ + /// + /// + /// The average time taken to execute a request, in milliseconds. + /// + /// + [JsonInclude, JsonPropertyName("avg")] + public long Avg { get; init; } + + /// + /// + /// The maximum time taken to execute a request, in milliseconds. + /// + /// + [JsonInclude, JsonPropertyName("max")] + public long Max { get; init; } + + /// + /// + /// The 90th percentile of the time taken to execute requests, in milliseconds. + /// + /// + [JsonInclude, JsonPropertyName("p90")] + public long P90 { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs new file mode 100644 index 00000000000..af3c60beff3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RemoteClusterInfo.g.cs @@ -0,0 +1,151 @@ +// 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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class RemoteClusterInfo +{ + /// + /// + /// The UUID of the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("cluster_uuid")] + public string ClusterUuid { get; init; } + + /// + /// + /// The total number of indices in the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("indices_count")] + public int IndicesCount { get; init; } + + /// + /// + /// Total data set size of all shards assigned to selected nodes, as a human-readable string. + /// + /// + [JsonInclude, JsonPropertyName("indices_total_size")] + public string? IndicesTotalSize { get; init; } + + /// + /// + /// Total data set size, in bytes, of all shards assigned to selected nodes. + /// + /// + [JsonInclude, JsonPropertyName("indices_total_size_in_bytes")] + public long IndicesTotalSizeInBytes { get; init; } + + /// + /// + /// Maximum amount of memory available for use by the heap across the nodes of the remote cluster, as a human-readable string. + /// + /// + [JsonInclude, JsonPropertyName("max_heap")] + public string? MaxHeap { get; init; } + + /// + /// + /// Maximum amount of memory, in bytes, available for use by the heap across the nodes of the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("max_heap_in_bytes")] + public long MaxHeapInBytes { get; init; } + + /// + /// + /// Total amount of physical memory across the nodes of the remote cluster, as a human-readable string. + /// + /// + [JsonInclude, JsonPropertyName("mem_total")] + public string? MemTotal { get; init; } + + /// + /// + /// Total amount, in bytes, of physical memory across the nodes of the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("mem_total_in_bytes")] + public long MemTotalInBytes { get; init; } + + /// + /// + /// The connection mode used to communicate with the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("mode")] + public string Mode { get; init; } + + /// + /// + /// The total count of nodes in the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("nodes_count")] + public int NodesCount { get; init; } + + /// + /// + /// The total number of shards in the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("shards_count")] + public int ShardsCount { get; init; } + + /// + /// + /// The skip_unavailable setting used for this remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("skip_unavailable")] + public bool SkipUnavailable { get; init; } + + /// + /// + /// Health status of the cluster, based on the state of its primary and replica shards. + /// + /// + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.HealthStatus Status { get; init; } + + /// + /// + /// Transport compression setting used for this remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("transport_compress")] + public string TransportCompress { get; init; } + + /// + /// + /// The list of Elasticsearch versions used by the nodes on the remote cluster. + /// + /// + [JsonInclude, JsonPropertyName("version")] + public IReadOnlyCollection Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs index 20cfb6d97b0..c6f685e8465 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/ShardProfile.g.cs @@ -46,5 +46,5 @@ public sealed partial class ShardProfile [JsonInclude, JsonPropertyName("searches")] public IReadOnlyCollection Searches { get; init; } [JsonInclude, JsonPropertyName("shard_id")] - public long ShardId { get; init; } + public int ShardId { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs index 43cb6da6262..37f87b643b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Analysis.g.cs @@ -28,6 +28,62 @@ namespace Elastic.Clients.Elasticsearch.Analysis; +[JsonConverter(typeof(CjkBigramIgnoredScriptConverter))] +public enum CjkBigramIgnoredScript +{ + [EnumMember(Value = "katakana")] + Katakana, + [EnumMember(Value = "hiragana")] + Hiragana, + [EnumMember(Value = "hangul")] + Hangul, + [EnumMember(Value = "han")] + Han +} + +internal sealed class CjkBigramIgnoredScriptConverter : JsonConverter +{ + public override CjkBigramIgnoredScript Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "katakana": + return CjkBigramIgnoredScript.Katakana; + case "hiragana": + return CjkBigramIgnoredScript.Hiragana; + case "hangul": + return CjkBigramIgnoredScript.Hangul; + case "han": + return CjkBigramIgnoredScript.Han; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, CjkBigramIgnoredScript value, JsonSerializerOptions options) + { + switch (value) + { + case CjkBigramIgnoredScript.Katakana: + writer.WriteStringValue("katakana"); + return; + case CjkBigramIgnoredScript.Hiragana: + writer.WriteStringValue("hiragana"); + return; + case CjkBigramIgnoredScript.Hangul: + writer.WriteStringValue("hangul"); + return; + case CjkBigramIgnoredScript.Han: + writer.WriteStringValue("han"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(DelimitedPayloadEncodingConverter))] public enum DelimitedPayloadEncoding { @@ -532,6 +588,55 @@ public override void Write(Utf8JsonWriter writer, KuromojiTokenizationMode value } } +[JsonConverter(typeof(LowercaseTokenFilterLanguagesConverter))] +public enum LowercaseTokenFilterLanguages +{ + [EnumMember(Value = "turkish")] + Turkish, + [EnumMember(Value = "irish")] + Irish, + [EnumMember(Value = "greek")] + Greek +} + +internal sealed class LowercaseTokenFilterLanguagesConverter : JsonConverter +{ + public override LowercaseTokenFilterLanguages Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "turkish": + return LowercaseTokenFilterLanguages.Turkish; + case "irish": + return LowercaseTokenFilterLanguages.Irish; + case "greek": + return LowercaseTokenFilterLanguages.Greek; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, LowercaseTokenFilterLanguages value, JsonSerializerOptions options) + { + switch (value) + { + case LowercaseTokenFilterLanguages.Turkish: + writer.WriteStringValue("turkish"); + return; + case LowercaseTokenFilterLanguages.Irish: + writer.WriteStringValue("irish"); + return; + case LowercaseTokenFilterLanguages.Greek: + writer.WriteStringValue("greek"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(NoriDecompoundModeConverter))] public enum NoriDecompoundMode { @@ -905,6 +1010,8 @@ public enum SnowballLanguage Swedish, [EnumMember(Value = "Spanish")] Spanish, + [EnumMember(Value = "Serbian")] + Serbian, [EnumMember(Value = "Russian")] Russian, [EnumMember(Value = "Romanian")] @@ -917,10 +1024,14 @@ public enum SnowballLanguage Norwegian, [EnumMember(Value = "Lovins")] Lovins, + [EnumMember(Value = "Lithuanian")] + Lithuanian, [EnumMember(Value = "Kp")] Kp, [EnumMember(Value = "Italian")] Italian, + [EnumMember(Value = "Irish")] + Irish, [EnumMember(Value = "Hungarian")] Hungarian, [EnumMember(Value = "German2")] @@ -931,6 +1042,8 @@ public enum SnowballLanguage French, [EnumMember(Value = "Finnish")] Finnish, + [EnumMember(Value = "Estonian")] + Estonian, [EnumMember(Value = "English")] English, [EnumMember(Value = "Dutch")] @@ -942,7 +1055,9 @@ public enum SnowballLanguage [EnumMember(Value = "Basque")] Basque, [EnumMember(Value = "Armenian")] - Armenian + Armenian, + [EnumMember(Value = "Arabic")] + Arabic } internal sealed class SnowballLanguageConverter : JsonConverter @@ -958,6 +1073,8 @@ public override SnowballLanguage Read(ref Utf8JsonReader reader, Type typeToConv return SnowballLanguage.Swedish; case "Spanish": return SnowballLanguage.Spanish; + case "Serbian": + return SnowballLanguage.Serbian; case "Russian": return SnowballLanguage.Russian; case "Romanian": @@ -970,10 +1087,14 @@ public override SnowballLanguage Read(ref Utf8JsonReader reader, Type typeToConv return SnowballLanguage.Norwegian; case "Lovins": return SnowballLanguage.Lovins; + case "Lithuanian": + return SnowballLanguage.Lithuanian; case "Kp": return SnowballLanguage.Kp; case "Italian": return SnowballLanguage.Italian; + case "Irish": + return SnowballLanguage.Irish; case "Hungarian": return SnowballLanguage.Hungarian; case "German2": @@ -984,6 +1105,8 @@ public override SnowballLanguage Read(ref Utf8JsonReader reader, Type typeToConv return SnowballLanguage.French; case "Finnish": return SnowballLanguage.Finnish; + case "Estonian": + return SnowballLanguage.Estonian; case "English": return SnowballLanguage.English; case "Dutch": @@ -996,6 +1119,8 @@ public override SnowballLanguage Read(ref Utf8JsonReader reader, Type typeToConv return SnowballLanguage.Basque; case "Armenian": return SnowballLanguage.Armenian; + case "Arabic": + return SnowballLanguage.Arabic; } ThrowHelper.ThrowJsonException(); @@ -1015,6 +1140,9 @@ public override void Write(Utf8JsonWriter writer, SnowballLanguage value, JsonSe case SnowballLanguage.Spanish: writer.WriteStringValue("Spanish"); return; + case SnowballLanguage.Serbian: + writer.WriteStringValue("Serbian"); + return; case SnowballLanguage.Russian: writer.WriteStringValue("Russian"); return; @@ -1033,12 +1161,18 @@ public override void Write(Utf8JsonWriter writer, SnowballLanguage value, JsonSe case SnowballLanguage.Lovins: writer.WriteStringValue("Lovins"); return; + case SnowballLanguage.Lithuanian: + writer.WriteStringValue("Lithuanian"); + return; case SnowballLanguage.Kp: writer.WriteStringValue("Kp"); return; case SnowballLanguage.Italian: writer.WriteStringValue("Italian"); return; + case SnowballLanguage.Irish: + writer.WriteStringValue("Irish"); + return; case SnowballLanguage.Hungarian: writer.WriteStringValue("Hungarian"); return; @@ -1054,6 +1188,9 @@ public override void Write(Utf8JsonWriter writer, SnowballLanguage value, JsonSe case SnowballLanguage.Finnish: writer.WriteStringValue("Finnish"); return; + case SnowballLanguage.Estonian: + writer.WriteStringValue("Estonian"); + return; case SnowballLanguage.English: writer.WriteStringValue("English"); return; @@ -1072,6 +1209,296 @@ public override void Write(Utf8JsonWriter writer, SnowballLanguage value, JsonSe case SnowballLanguage.Armenian: writer.WriteStringValue("Armenian"); return; + case SnowballLanguage.Arabic: + writer.WriteStringValue("Arabic"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(StopWordLanguageConverter))] +public enum StopWordLanguage +{ + [EnumMember(Value = "_turkish_")] + Turkish, + [EnumMember(Value = "_thai_")] + Thai, + [EnumMember(Value = "_swedish_")] + Swedish, + [EnumMember(Value = "_spanish_")] + Spanish, + [EnumMember(Value = "_sorani_")] + Sorani, + [EnumMember(Value = "_serbian_")] + Serbian, + [EnumMember(Value = "_russian_")] + Russian, + [EnumMember(Value = "_romanian_")] + Romanian, + [EnumMember(Value = "_portuguese_")] + Portuguese, + [EnumMember(Value = "_persian_")] + Persian, + [EnumMember(Value = "_norwegian_")] + Norwegian, + [EnumMember(Value = "_none_")] + None, + [EnumMember(Value = "_lithuanian_")] + Lithuanian, + [EnumMember(Value = "_latvian_")] + Latvian, + [EnumMember(Value = "_italian_")] + Italian, + [EnumMember(Value = "_irish_")] + Irish, + [EnumMember(Value = "_indonesian_")] + Indonesian, + [EnumMember(Value = "_hungarian_")] + Hungarian, + [EnumMember(Value = "_hindi_")] + Hindi, + [EnumMember(Value = "_greek_")] + Greek, + [EnumMember(Value = "_german_")] + German, + [EnumMember(Value = "_galician_")] + Galician, + [EnumMember(Value = "_french_")] + French, + [EnumMember(Value = "_finnish_")] + Finnish, + [EnumMember(Value = "_estonian_")] + Estonian, + [EnumMember(Value = "_english_")] + English, + [EnumMember(Value = "_dutch_")] + Dutch, + [EnumMember(Value = "_danish_")] + Danish, + [EnumMember(Value = "_czech_")] + Czech, + [EnumMember(Value = "_cjk_")] + Cjk, + [EnumMember(Value = "_catalan_")] + Catalan, + [EnumMember(Value = "_bulgarian_")] + Bulgarian, + [EnumMember(Value = "_brazilian_")] + Brazilian, + [EnumMember(Value = "_bengali_")] + Bengali, + [EnumMember(Value = "_basque_")] + Basque, + [EnumMember(Value = "_armenian_")] + Armenian, + [EnumMember(Value = "_arabic_")] + Arabic +} + +internal sealed class StopWordLanguageConverter : JsonConverter +{ + public override StopWordLanguage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "_turkish_": + return StopWordLanguage.Turkish; + case "_thai_": + return StopWordLanguage.Thai; + case "_swedish_": + return StopWordLanguage.Swedish; + case "_spanish_": + return StopWordLanguage.Spanish; + case "_sorani_": + return StopWordLanguage.Sorani; + case "_serbian_": + return StopWordLanguage.Serbian; + case "_russian_": + return StopWordLanguage.Russian; + case "_romanian_": + return StopWordLanguage.Romanian; + case "_portuguese_": + return StopWordLanguage.Portuguese; + case "_persian_": + return StopWordLanguage.Persian; + case "_norwegian_": + return StopWordLanguage.Norwegian; + case "_none_": + return StopWordLanguage.None; + case "_lithuanian_": + return StopWordLanguage.Lithuanian; + case "_latvian_": + return StopWordLanguage.Latvian; + case "_italian_": + return StopWordLanguage.Italian; + case "_irish_": + return StopWordLanguage.Irish; + case "_indonesian_": + return StopWordLanguage.Indonesian; + case "_hungarian_": + return StopWordLanguage.Hungarian; + case "_hindi_": + return StopWordLanguage.Hindi; + case "_greek_": + return StopWordLanguage.Greek; + case "_german_": + return StopWordLanguage.German; + case "_galician_": + return StopWordLanguage.Galician; + case "_french_": + return StopWordLanguage.French; + case "_finnish_": + return StopWordLanguage.Finnish; + case "_estonian_": + return StopWordLanguage.Estonian; + case "_english_": + return StopWordLanguage.English; + case "_dutch_": + return StopWordLanguage.Dutch; + case "_danish_": + return StopWordLanguage.Danish; + case "_czech_": + return StopWordLanguage.Czech; + case "_cjk_": + return StopWordLanguage.Cjk; + case "_catalan_": + return StopWordLanguage.Catalan; + case "_bulgarian_": + return StopWordLanguage.Bulgarian; + case "_brazilian_": + return StopWordLanguage.Brazilian; + case "_bengali_": + return StopWordLanguage.Bengali; + case "_basque_": + return StopWordLanguage.Basque; + case "_armenian_": + return StopWordLanguage.Armenian; + case "_arabic_": + return StopWordLanguage.Arabic; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, StopWordLanguage value, JsonSerializerOptions options) + { + switch (value) + { + case StopWordLanguage.Turkish: + writer.WriteStringValue("_turkish_"); + return; + case StopWordLanguage.Thai: + writer.WriteStringValue("_thai_"); + return; + case StopWordLanguage.Swedish: + writer.WriteStringValue("_swedish_"); + return; + case StopWordLanguage.Spanish: + writer.WriteStringValue("_spanish_"); + return; + case StopWordLanguage.Sorani: + writer.WriteStringValue("_sorani_"); + return; + case StopWordLanguage.Serbian: + writer.WriteStringValue("_serbian_"); + return; + case StopWordLanguage.Russian: + writer.WriteStringValue("_russian_"); + return; + case StopWordLanguage.Romanian: + writer.WriteStringValue("_romanian_"); + return; + case StopWordLanguage.Portuguese: + writer.WriteStringValue("_portuguese_"); + return; + case StopWordLanguage.Persian: + writer.WriteStringValue("_persian_"); + return; + case StopWordLanguage.Norwegian: + writer.WriteStringValue("_norwegian_"); + return; + case StopWordLanguage.None: + writer.WriteStringValue("_none_"); + return; + case StopWordLanguage.Lithuanian: + writer.WriteStringValue("_lithuanian_"); + return; + case StopWordLanguage.Latvian: + writer.WriteStringValue("_latvian_"); + return; + case StopWordLanguage.Italian: + writer.WriteStringValue("_italian_"); + return; + case StopWordLanguage.Irish: + writer.WriteStringValue("_irish_"); + return; + case StopWordLanguage.Indonesian: + writer.WriteStringValue("_indonesian_"); + return; + case StopWordLanguage.Hungarian: + writer.WriteStringValue("_hungarian_"); + return; + case StopWordLanguage.Hindi: + writer.WriteStringValue("_hindi_"); + return; + case StopWordLanguage.Greek: + writer.WriteStringValue("_greek_"); + return; + case StopWordLanguage.German: + writer.WriteStringValue("_german_"); + return; + case StopWordLanguage.Galician: + writer.WriteStringValue("_galician_"); + return; + case StopWordLanguage.French: + writer.WriteStringValue("_french_"); + return; + case StopWordLanguage.Finnish: + writer.WriteStringValue("_finnish_"); + return; + case StopWordLanguage.Estonian: + writer.WriteStringValue("_estonian_"); + return; + case StopWordLanguage.English: + writer.WriteStringValue("_english_"); + return; + case StopWordLanguage.Dutch: + writer.WriteStringValue("_dutch_"); + return; + case StopWordLanguage.Danish: + writer.WriteStringValue("_danish_"); + return; + case StopWordLanguage.Czech: + writer.WriteStringValue("_czech_"); + return; + case StopWordLanguage.Cjk: + writer.WriteStringValue("_cjk_"); + return; + case StopWordLanguage.Catalan: + writer.WriteStringValue("_catalan_"); + return; + case StopWordLanguage.Bulgarian: + writer.WriteStringValue("_bulgarian_"); + return; + case StopWordLanguage.Brazilian: + writer.WriteStringValue("_brazilian_"); + return; + case StopWordLanguage.Bengali: + writer.WriteStringValue("_bengali_"); + return; + case StopWordLanguage.Basque: + writer.WriteStringValue("_basque_"); + return; + case StopWordLanguage.Armenian: + writer.WriteStringValue("_armenian_"); + return; + case StopWordLanguage.Arabic: + writer.WriteStringValue("_arabic_"); + return; } writer.WriteNullValue(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs index d883e91d3ae..c07bd4bc525 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Inference.g.cs @@ -1484,6 +1484,48 @@ public override void Write(Utf8JsonWriter writer, TaskType value, JsonSerializer } } +[JsonConverter(typeof(TaskTypeJinaAiConverter))] +public enum TaskTypeJinaAi +{ + [EnumMember(Value = "text_embedding")] + TextEmbedding, + [EnumMember(Value = "rerank")] + Rerank +} + +internal sealed class TaskTypeJinaAiConverter : JsonConverter +{ + public override TaskTypeJinaAi Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "text_embedding": + return TaskTypeJinaAi.TextEmbedding; + case "rerank": + return TaskTypeJinaAi.Rerank; + } + + ThrowHelper.ThrowJsonException(); + return default; + } + + public override void Write(Utf8JsonWriter writer, TaskTypeJinaAi value, JsonSerializerOptions options) + { + switch (value) + { + case TaskTypeJinaAi.TextEmbedding: + writer.WriteStringValue("text_embedding"); + return; + case TaskTypeJinaAi.Rerank: + writer.WriteStringValue("rerank"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(WatsonxServiceTypeConverter))] public enum WatsonxServiceType { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs index ba0929db1ea..84ad323d4ed 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestChatCompletion.g.cs @@ -40,6 +40,8 @@ public sealed partial class RequestChatCompletion /// /// /// A list of objects representing the conversation. + /// Requests should generally only add new messages from the user (role user). + /// The other message roles (assistant, system, or tool) should generally only be copied from the response to a previous completion request, such that the messages array is built up throughout a conversation. /// /// [JsonInclude, JsonPropertyName("messages")] @@ -131,6 +133,8 @@ public RequestChatCompletionDescriptor MaxCompletionTokens(long? maxCompletionTo /// /// /// A list of objects representing the conversation. + /// Requests should generally only add new messages from the user (role user). + /// The other message roles (assistant, system, or tool) should generally only be copied from the response to a previous completion request, such that the messages array is built up throughout a conversation. /// /// public RequestChatCompletionDescriptor Messages(ICollection messages) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs index 30e777edcfb..617f86a581c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs @@ -162,8 +162,7 @@ public sealed partial class MoreLikeThisQuery /// /// [JsonInclude, JsonPropertyName("stop_words")] - [SingleOrManyCollectionConverter(typeof(string))] - public ICollection? StopWords { get; set; } + public Elastic.Clients.Elasticsearch.Analysis.StopWords? StopWords { get; set; } /// /// @@ -205,7 +204,7 @@ public MoreLikeThisQueryDescriptor() : base() private int? MinWordLengthValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - private ICollection? StopWordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopWordsValue { get; set; } private ICollection? UnlikeValue { get; set; } private long? VersionValue { get; set; } private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } @@ -390,7 +389,7 @@ public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsea /// Any word in this set is ignored. /// /// - public MoreLikeThisQueryDescriptor StopWords(ICollection? stopWords) + public MoreLikeThisQueryDescriptor StopWords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopWords) { StopWordsValue = stopWords; return Self; @@ -517,7 +516,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopWordsValue is not null) { writer.WritePropertyName("stop_words"); - SingleOrManySerializationHelper.Serialize(StopWordsValue, writer, options); + JsonSerializer.Serialize(writer, StopWordsValue, options); } if (UnlikeValue is not null) @@ -566,7 +565,7 @@ public MoreLikeThisQueryDescriptor() : base() private int? MinWordLengthValue { get; set; } private string? QueryNameValue { get; set; } private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - private ICollection? StopWordsValue { get; set; } + private Elastic.Clients.Elasticsearch.Analysis.StopWords? StopWordsValue { get; set; } private ICollection? UnlikeValue { get; set; } private long? VersionValue { get; set; } private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } @@ -751,7 +750,7 @@ public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Routing /// Any word in this set is ignored. /// /// - public MoreLikeThisQueryDescriptor StopWords(ICollection? stopWords) + public MoreLikeThisQueryDescriptor StopWords(Elastic.Clients.Elasticsearch.Analysis.StopWords? stopWords) { StopWordsValue = stopWords; return Self; @@ -878,7 +877,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o if (StopWordsValue is not null) { writer.WritePropertyName("stop_words"); - SingleOrManySerializationHelper.Serialize(StopWordsValue, writer, options); + JsonSerializer.Serialize(writer, StopWordsValue, options); } if (UnlikeValue is not null) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs index 06ff9ad73cc..df380d28815 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Snapshot/SnapshotShardFailure.g.cs @@ -38,7 +38,7 @@ public sealed partial class SnapshotShardFailure [JsonInclude, JsonPropertyName("reason")] public string Reason { get; init; } [JsonInclude, JsonPropertyName("shard_id")] - public string ShardId { get; init; } + public int ShardId { get; init; } [JsonInclude, JsonPropertyName("status")] public string Status { get; init; } } \ No newline at end of file